/*
Theme Name: himo edu
Theme URI: https://valhalla.edu.pl
Author: himo
Description: Shared educational magazine theme. Ten kits, per-site palette.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.2
Text Domain: himo-edu
*/
:root {
  --bg: #f6f4ef;
  --ink: #1c2430;
  --muted: #5c6570;
  --paper: #fffdf8;
  --line: #e4ddd0;
  --accent: #243e73;
  --accent-2: #b0893e;
  --header-bg: #16233f;
  --header-ink: #f7f1e4;
  --serif: "Lora", Georgia, serif;
  --sans: "Inter", "Segoe UI", sans-serif;
  --radius: 14px;
  --measure: 72ch;
}
html[data-palette="forest"] { --accent:#1f4d3a; --accent-2:#c4a35a; --header-bg:#143328; --bg:#f3f6f2; }
html[data-palette="burgundy"] { --accent:#7a2436; --accent-2:#d4b483; --header-bg:#3d121c; --bg:#f8f3f2; }
html[data-palette="amber"] { --accent:#8a4b08; --accent-2:#1f3a5f; --header-bg:#3a2a12; --bg:#fbf6ee; }
html[data-palette="teal"] { --accent:#0f5f66; --accent-2:#e0a45a; --header-bg:#0d3338; --bg:#f2f7f7; }
html[data-palette="indigo"] { --accent:#243e73; --accent-2:#c6a15b; --header-bg:#16233f; --bg:#f5f4f8; }
html[data-palette="charcoal"] { --accent:#222; --accent-2:#b9a07a; --header-bg:#111; --bg:#f4f4f4; }
html[data-palette="rose"] { --accent:#8d3d55; --accent-2:#3d4c6a; --header-bg:#3d2430; --bg:#faf5f6; }
html[data-palette="navy_gold"] { --accent:#14213d; --accent-2:#d4a017; --header-bg:#0d1526; --bg:#f6f5f1; }
html[data-palette="sand"] { --accent:#6b4f3a; --accent-2:#2f5d50; --header-bg:#3e342c; --bg:#f8f4ec; }
html[data-palette="blue_slate"] { --accent:#1e4d6b; --accent-2:#d08c60; --header-bg:#163246; --bg:#f4f7f8; }
html[data-palette="olive"] { --accent:#3f5228; --accent-2:#c47b4a; --header-bg:#24301c; --bg:#f6f4ee; }
html[data-palette="plum"] { --accent:#5c2d6e; --accent-2:#e0a15a; --header-bg:#2a1633; --bg:#f7f3f8; }
html[data-palette="steel"] { --accent:#3a4552; --accent-2:#c46b3a; --header-bg:#1c242c; --bg:#f3f4f6; }
html[data-palette="clay"] { --accent:#8a4a32; --accent-2:#2f4a3c; --header-bg:#3d241c; --bg:#f8f3ee; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-2); }
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.site-header {
  background: var(--header-bg);
  color: var(--header-ink);
}
.site-header a { color: inherit; text-decoration: none; }
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 48px; width: auto; background: #f4efe4; padding: 4px; border-radius: 10px; }
.lang-switch { position: relative; margin-left: 28px; }
.lang-switch summary { list-style: none; cursor: pointer; border: 1px solid rgba(255,255,255,.45); border-radius: 8px; padding: 6px 12px; }
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-menu { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; color: #1c2430; min-width: 150px; border-radius: 10px; padding: 6px; z-index: 20; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.lang-menu ul { list-style: none; margin: 0; padding: 0; }
.lang-menu a { display: block; padding: 6px 8px; color: #1c2430; text-decoration: none; }
.lang-menu ul,
.lang-menu li { list-style: none; margin: 0; padding: 0; }
.lang-menu li::marker { content: ""; }
.menu-toggle,
.lang-switch summary {
  height: 40px;
  min-width: 76px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.45);
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.95rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
.brand-name { font-family: var(--serif); font-size: 1.35rem; letter-spacing: 0.01em; }
.brand-tag { display: block; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.75; }
.nav { display: flex; gap: 18px; align-items: center; font-size: 0.95rem; }
.nav a { opacity: 0.92; }
.lang a { border: 1px solid rgba(255,255,255,.35); padding: 2px 8px; border-radius: 999px; font-size: 0.8rem; }
.lang a.is-active { background: #fff; color: var(--header-bg); }
.menu-toggle { display: none; }
.hero {
  position: relative;
  min-height: 72vh;
  display: grid;
  align-items: end;
  color: #fff;
  background: #1b2433 center/cover no-repeat;
}
.lead { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 28px; align-items: center; }
.lead img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: var(--radius); }
.band { background: var(--header-bg); color: var(--header-ink); }
.band a { color: inherit; }
.card-body h3 { margin-top: 12px; }
@media (max-width: 900px) {
  .lead { grid-template-columns: 1fr; }
  .hero { min-height: 70vh; }
}
.hero-card {
  background: linear-gradient(180deg, transparent, rgba(10,14,22,.78));
  padding: 48px 0 36px;
}
.hero h1 { font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.15; margin: 0 0 8px; max-width: 16ch; }
.kicker { letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.75rem; color: var(--accent-2); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.card h2, .card h3 { font-family: var(--serif); font-size: 1.25rem; margin: 12px 16px 8px; }
.card p { margin: 0 16px 16px; color: var(--muted); }
.card img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.section { padding: 36px 0; }
.layout { display: block; max-width: 760px; }
.entry { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.entry h1 { font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.2; margin-top: 0; }
.entry h2 { font-family: var(--serif); }
.meta { color: var(--muted); font-size: 0.9rem; }
.side, .footer-note { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.site-footer { background: var(--header-bg); color: var(--header-ink); padding: 36px 0 20px; margin-top: 40px; }
.site-footer a { color: inherit; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 20px; }
.crumbs { font-size: 0.85rem; color: var(--muted); margin-bottom: 10px; }
.forum-list { display: grid; gap: 12px; }
.bbp-breadcrumb, #bbpress-forums { font-family: var(--sans); }
html[data-kit="technology_journal"] { --radius: 0px; --serif: var(--sans); }
html[data-kit="technology_journal"] .card { border-radius: 0; border-left: 4px solid var(--accent-2); }
html[data-kit="modern_blog"] .hero { min-height: 280px; }
html[data-kit="modern_blog"] .hero h1 { max-width: 22ch; font-weight: 500; }
html[data-kit="news_portal"] .grid { grid-template-columns: repeat(4, 1fr); }
html[data-kit="academy"] .site-header .bar { justify-content: center; text-align: center; }
html[data-kit="knowledge_hub"] .entry { border-top: 6px solid var(--accent); }
html[data-kit="community_forum"] .card { box-shadow: 0 8px 20px rgba(0,0,0,.06); }
html[data-kit="history_review"] .hero h1 { font-style: italic; }
html[data-kit="wellness_studio"] { --radius: 24px; }
html[data-kit="education_magazine"] .section { padding: 48px 0; }
html[data-kit="professional_brief"] .hero { min-height: 320px; }
html[data-kit="professional_brief"] .brand-name { letter-spacing: 0.04em; text-transform: uppercase; font-size: 1.05rem; }
@media (max-width: 900px) {
  html[data-kit="news_portal"] .grid { grid-template-columns: 1fr; }
  .grid, .layout, .footer-grid { grid-template-columns: 1fr; }
  .nav { display: none; }
  .nav.is-open { display: flex; flex-direction: column; align-items: flex-start; padding-bottom: 12px; }
  .menu-toggle { display: inline-flex; }
  .bar { align-items: center; }
  .lang-switch { margin-left: 8px; }
  .bar { flex-wrap: wrap; }
  .hero { min-height: 70vh; }
}
