/* =====================================================================
   Udruženje urologa u Bosni i Hercegovini (UUBiH)
   Visual system - "Pečat" / official-seal identity.
   ---------------------------------------------------------------------
   Brand-true palette: navy #213568 + pale-blue disc #E1EDF8 (sampled from
   the official seal). Oswald (display) + Source Sans 3 (body) + Arimo
   (wordmark, matching the seal ring-text). No build step, no framework.
   Class names are Grav-friendly (modular sections / shared partials).
   ===================================================================== */

/* ----------------------------- Tokens ----------------------------- */
:root {
  /* Brand core (sampled from official logo) */
  --navy:        #213568; /* primary brand navy */
  --navy-700:    #1b2c5a; /* hover / pressed navy */
  --navy-deep:   #18274f; /* deep navy surface */
  --ink:         #11203f; /* deepest navy - footer, headings */
  --tint:        #E1EDF8; /* pale-blue inner disc - brand secondary */
  --tint-2:      #EEF4FC; /* lighter pale blue */
  --sky:         #CFE0F4; /* soft blue line on tint */
  --accent:      #2C6BB0; /* clinical azure - links, small accents */
  --accent-700:  #235a96;

  /* Neutrals (cool) */
  --paper:       #F4F7FC; /* page background */
  --surface:     #FFFFFF; /* raised surface */
  --surface-2:   #F2F6FC; /* recessed surface */
  --border:      #DCE5F2; /* default border */
  --border-2:    #C8D6EA; /* stronger border */
  --hair:        #E7EEF8; /* hairline rule */
  --text:        #36435E; /* body text (slate-navy) */
  --muted:       #687A9A; /* muted text */
  --faint:       #93A1BC; /* faint labels */

  /* On dark */
  --on-navy:        #EAF1FB;
  --on-navy-muted:  #A9BAD8;
  --on-navy-faint:  #98A9CC;
  --accent-on-navy: #84B4EC;

  /* Radii */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 22px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-soft: 0 1px 2px rgba(17,32,63,.04), 0 12px 28px -20px rgba(17,32,63,.22);
  --shadow-lift: 0 2px 6px rgba(17,32,63,.06), 0 26px 50px -30px rgba(17,32,63,.34);
  --shadow-navy: 0 30px 70px -34px rgba(17,32,63,.55);

  /* Layout */
  --container: 1200px;
  --container-wide: 1320px;
  --space-section: clamp(3.75rem, 6vw, 6.5rem);
  --gutter: clamp(1.25rem, 4vw, 2.5rem);

  /* Type */
  --font-display: "Oswald", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-wordmark: "Arimo", Arial, "Helvetica Neue", sans-serif;

  /* Fluid scale */
  --t-display: clamp(2.6rem, 1.7rem + 4.1vw, 4.6rem);
  --t-h1:      clamp(2.1rem, 1.5rem + 2.6vw, 3.25rem);
  --t-h2:      clamp(1.7rem, 1.25rem + 1.9vw, 2.5rem);
  --t-h3:      clamp(1.22rem, 1.05rem + 0.7vw, 1.5rem);
  --t-lead:    clamp(1.12rem, 1.0rem + 0.55vw, 1.36rem);
  --t-body:    1.0625rem;
  --t-small:   0.94rem;
  --t-label:   0.78rem;
}

/* ----------------------------- Reset ------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
body {
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: 1.66;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
input, textarea, select, button { font: inherit; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3, h4, h5 {
  font-family: var(--font-display); font-weight: 600; line-height: 1.12;
  letter-spacing: .002em; color: var(--ink); text-wrap: balance;
}
p { text-wrap: pretty; }
strong, b { font-weight: 700; }
::selection { background: var(--navy); color: #fff; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

/* --------------------------- Utilities ---------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--wide { max-width: var(--container-wide); }
.skip-link {
  position: fixed; top: 0; left: 50%; transform: translate(-50%, -120%);
  background: var(--ink); color: #fff; padding: .7rem 1.2rem; border-radius: 0 0 var(--r-md) var(--r-md);
  z-index: 200; font-weight: 600; transition: transform .2s ease;
}
.skip-link:focus { transform: translate(-50%, 0); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Eyebrow - Oswald caps with a brand tick */
.eyebrow {
  font-family: var(--font-display); font-size: var(--t-label); font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: var(--navy);
  display: inline-flex; align-items: center; gap: .7rem; line-height: 1;
}
.eyebrow::before { content: ""; width: 1.9rem; height: 2px; background: var(--accent); flex: none; }
.eyebrow--plain::before { display: none; }
.eyebrow--accent { color: var(--accent); }
.eyebrow--on-navy { color: var(--on-navy-muted); }
.eyebrow--on-navy::before { background: var(--accent-on-navy); }

/* Figure / reference tag */
.fig-tag {
  font-family: var(--font-display); font-size: var(--t-label); letter-spacing: .14em;
  text-transform: uppercase; color: var(--faint); font-weight: 500;
}

/* Buttons */
.btn {
  --bg: var(--navy); --fg: #fff; --bd: var(--navy);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.6rem; min-height: 50px; font-family: var(--font-body);
  font-weight: 600; font-size: 1rem; letter-spacing: .005em;
  background: var(--bg); color: var(--fg); border: 1.5px solid var(--bd);
  border-radius: var(--r-sm);
  transition: transform .18s ease, background .2s ease, box-shadow .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-soft); }
.btn:active { transform: translateY(0); }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn--primary { --bg: var(--navy); --fg: #fff; --bd: var(--navy); }
.btn--primary:hover { --bg: var(--navy-700); --bd: var(--navy-700); }
.btn--accent { --bg: var(--accent); --fg: #fff; --bd: var(--accent); }
.btn--accent:hover { --bg: var(--accent-700); --bd: var(--accent-700); }
.btn--ghost { --bg: transparent; --fg: var(--navy); --bd: var(--border-2); }
.btn--ghost:hover { --bg: rgba(33,53,104,.05); --bd: var(--navy); --fg: var(--navy); }
.btn--on-navy { --bg: rgba(255,255,255,.06); --fg: var(--on-navy); --bd: rgba(169,186,216,.4); }
.btn--on-navy:hover { --bg: rgba(255,255,255,.12); --bd: var(--on-navy); --fg: #fff; }
.btn--white { --bg: #fff; --fg: var(--navy); --bd: #fff; }
.btn--white:hover { --bg: var(--tint); --bd: var(--tint); }
.btn--quiet { --bg: transparent; --fg: var(--muted); --bd: transparent; min-height: auto; padding: .5rem .1rem;
  text-decoration: underline; text-decoration-color: var(--border-2); text-underline-offset: 4px; }
.btn--quiet:hover { --fg: var(--ink); box-shadow: none; transform: none; }
.btn--block { width: 100%; }
.btn--sm { min-height: 42px; padding: .55rem 1.1rem; font-size: .94rem; }

/* Link with arrow */
.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem; font-weight: 600;
  color: var(--navy); font-size: .98rem;
}
.link-arrow svg { width: 16px; height: 16px; color: var(--accent); transition: transform .2s ease; }
.link-arrow:hover { color: var(--ink); }
.link-arrow:hover svg { transform: translateX(4px); }

/* Status pill */
.pill {
  display: inline-flex; align-items: center; gap: .45rem; font-family: var(--font-display);
  font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 500;
  padding: .32rem .7rem; border-radius: var(--r-pill); border: 1px solid var(--border-2);
  color: var(--muted); background: var(--surface);
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }
.pill--soon::before { background: var(--faint); }
.pill--live::before { background: #2E9E6B; }
.pill--on-navy { color: var(--on-navy-muted); border-color: rgba(169,186,216,.3); background: rgba(255,255,255,.05); }

/* Tag */
.tag {
  font-family: var(--font-display); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); font-weight: 500;
}

/* Tag badge (news) */
.tag-badge { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-display); font-size: .78rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.tag-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--navy); flex: none; }
.tag-badge--edu::before { background: var(--accent); }
.tag-badge--res::before { background: #5E8CC2; }

/* ------------------------- Section header ------------------------- */
.section { padding-block: var(--space-section); position: relative; }
.section--tight { padding-block: clamp(2.5rem, 4.5vw, 4rem); }
.section--tint { background: var(--tint-2); border-block: 1px solid var(--sky); }
.section--surface { background: var(--surface); }
.section--navy { background: var(--navy); color: var(--on-navy); }
.section-header { max-width: 62ch; margin-bottom: clamp(1.75rem, 3.5vw, 2.6rem); }
.section-header .eyebrow { margin-bottom: 1.1rem; }
.section-header h2 { font-size: var(--t-h2); }
.section-header > p:not(.eyebrow) { font-size: var(--t-lead); color: var(--muted); margin-top: .9rem; line-height: 1.6; }
.section--navy .section-header h2 { color: #fff; }
.section--navy .section-header p { color: var(--on-navy-muted); }
.section-head-row {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem;
  flex-wrap: wrap; margin-bottom: clamp(1.75rem, 3.5vw, 2.4rem);
  border-bottom: 1px solid var(--hair); padding-bottom: 1.1rem;
}
.section-head-row .section-header { margin-bottom: 0; }

/* Hairline rule with brand node */
.brand-rule { height: 1px; background: var(--hair); position: relative; }
.brand-rule::before { content: ""; position: absolute; left: 0; top: -3px; width: 7px; height: 7px;
  border-radius: 50%; background: var(--accent); }

/* ============================================================
   HEADER  (Grav partial: templates/partials/header.html.twig)
   ============================================================ */
.site-header-wrap { position: sticky; top: 0; z-index: 90; }

/* Utility bar */
.utility-bar {
  background: var(--ink); color: var(--on-navy-muted);
  font-size: .86rem; border-bottom: 1px solid rgba(255,255,255,.06);
}
.utility-bar .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 44px; }
.utility-left { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.utility-right { display: flex; align-items: center; gap: 1.6rem; }
.um-label { font-family: var(--font-display); font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--on-navy-faint); }
.um-extra { color: var(--on-navy-muted); transition: color .2s ease; display: inline-flex; align-items: center; gap: .45rem; }
.um-extra svg { color: var(--accent-on-navy); }
.um-extra:hover, .utility-bar a:hover { color: #fff; }

/* Site version switcher (NOT a language toggle) */
.site-version-switcher {
  display: inline-flex; align-items: center; gap: 1px; padding: 3px;
  background: rgba(255,255,255,.06); border-radius: var(--r-pill); border: 1px solid rgba(255,255,255,.08);
}
.site-version-switcher a {
  font-size: .78rem; font-weight: 600; padding: .28rem .8rem; border-radius: var(--r-pill);
  color: var(--on-navy-muted); transition: background .2s ease, color .2s ease;
}
.site-version-switcher a[aria-current="true"] { background: #fff; color: var(--navy); }
.site-version-switcher a:not([aria-current="true"]):hover { color: #fff; }

/* Main header */
.site-header {
  background: rgba(255,255,255,.88); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; gap: 1.4rem; min-height: 82px; }

.brand { display: inline-flex; align-items: center; gap: .8rem; flex: none; }
.brand__mark { width: 50px; height: 50px; flex: none; display: block; }
.brand__mark img, .brand__mark svg { width: 100%; height: 100%; }
.brand__name { display: flex; flex-direction: column; line-height: 1.12; }
.brand__name b { font-family: var(--font-wordmark); font-weight: 700; font-size: 1.06rem; color: var(--navy);
  letter-spacing: .01em; white-space: nowrap; }
.brand__name span { font-family: var(--font-display); font-size: .72rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--muted); margin-top: 3px; font-weight: 500; }

.primary-nav { margin-left: auto; }
.primary-nav > ul { display: flex; align-items: center; gap: .1rem; }
.primary-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: .55rem .7rem; border-radius: var(--r-sm);
  font-size: .96rem; font-weight: 600; color: var(--text); position: relative; transition: color .2s ease; white-space: nowrap;
}
.primary-nav a:hover { color: var(--navy); }
.primary-nav a[aria-current="page"] { color: var(--navy); }
.primary-nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: .7rem; right: .7rem; bottom: .3rem; height: 2px;
  background: var(--accent); border-radius: 2px;
}
/* The generic ".primary-nav a" colour rule above is more specific than ".btn",
   so a CTA <a class="btn"> inside the drawer would lose its white-on-navy text.
   Keep buttons on their own --fg. */
.primary-nav a.btn,
.primary-nav a.btn:hover { color: var(--fg); }
.header-cta { flex: none; }
.nav-close, .nav-toggle { display: none; }
/* Drawer-only chrome - hidden on desktop, revealed inside the mobile drawer */
.nav-drawer-head, .nav-drawer-foot { display: none; }

.nav-toggle {
  width: 48px; height: 48px; border-radius: var(--r-sm); border: 1.5px solid var(--border-2);
  display: none; place-items: center; margin-left: auto; background: var(--surface); color: var(--ink);
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-backdrop {
  position: fixed; inset: 0; background: rgba(17,32,63,.5); backdrop-filter: blur(2px);
  opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease; z-index: 95;
}
body.nav-open .nav-backdrop { opacity: 1; visibility: visible; }

/* ================================ HERO ============================
   Grav modular section: templates/modular/hero.html.twig          */
.hero { background: var(--paper); position: relative; overflow: hidden;
  padding-top: clamp(2.5rem, 4.5vw, 4.25rem); padding-bottom: var(--space-section); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 55% at 85% 0%, rgba(225,237,248,.8), transparent 70%),
    radial-gradient(50% 50% at 0% 100%, rgba(225,237,248,.5), transparent 70%);
}
.hero .container { position: relative; z-index: 1; }
.hero__grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2.5rem, 5vw, 5rem); align-items: center;
  min-height: clamp(520px, 58vh, 660px);
}
.hero__eyebrow { margin-bottom: 1.5rem; }
.hero h1 { font-size: var(--t-display); font-weight: 600; letter-spacing: -.01em; line-height: 1.02; }
.hero h1 .accent { color: var(--navy); display: block; }
.hero__subtitle { font-size: var(--t-lead); color: var(--ink); margin-top: 1.5rem; font-weight: 400; max-width: 46ch; line-height: 1.5; }
.hero__body { color: var(--muted); margin-top: 1rem; max-width: 52ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.1rem; }
.hero__trust { margin-top: 2.5rem; padding-top: 1.6rem; border-top: 1px solid var(--hair); }
.hero__trust-label { font-family: var(--font-display); font-size: .77rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--faint); margin-bottom: 1rem; font-weight: 500; }
.trust-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem 1.4rem; }
.trust-strip li { display: flex; align-items: center; gap: .6rem; font-size: .92rem; font-weight: 600; color: var(--text); }
.trust-strip svg { width: 19px; height: 19px; color: var(--accent); flex: none; }

/* Hero visual - official seal showcase */
.hero-visual { position: relative; display: grid; place-items: center; isolation: isolate; }
.hero-visual__panel {
  position: relative; width: 100%; aspect-ratio: 1 / 1; max-width: 520px; border-radius: var(--r-xl);
  background: radial-gradient(125% 125% at 28% 12%, #2a447e 0%, var(--navy) 58%, var(--navy-deep) 100%);
  box-shadow: var(--shadow-navy); overflow: hidden; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.06);
}
.hero-visual__panel::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.08) 1px, transparent 0);
  background-size: 26px 26px; opacity: .6;
}
.hero-visual__panel::after {
  content: ""; position: absolute; width: 132%; aspect-ratio: 1; border-radius: 50%;
  border: 1px solid rgba(132,180,236,.18); top: -55%; right: -45%;
}
.hero-visual__seal { position: relative; z-index: 2; width: 74%; filter: drop-shadow(0 18px 40px rgba(0,0,0,.35)); }
.hero-visual__seal svg, .hero-visual__seal img { width: 100%; height: auto; }
/* floating fact chips */
.hero-chip {
  position: absolute; z-index: 3; background: rgba(255,255,255,.96); backdrop-filter: blur(6px);
  border: 1px solid var(--border); border-radius: var(--r-md); padding: .65rem .9rem;
  box-shadow: var(--shadow-lift); display: flex; flex-direction: column; gap: .1rem; min-width: 0;
}
.hero-chip span { font-family: var(--font-display); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.hero-chip b { font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); font-weight: 600; line-height: 1.1; }
.hero-chip--a { top: 9%; left: -4%; animation: floatA 9s ease-in-out infinite; }
.hero-chip--b { bottom: 11%; right: -5%; animation: floatB 10s ease-in-out infinite; }
@keyframes floatA { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes floatB { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .hero-chip { animation: none !important; } }

/* ===================== QUICK ACCESS (navy index) =================
   Grav modular: templates/modular/quick-links.html.twig          */
.quick-access { background: var(--navy); color: var(--on-navy); position: relative; overflow: hidden; }
.quick-access .section-header h2 { color: #fff; }
.quick-access .section-header p { color: var(--on-navy-muted); }
.quick-access .eyebrow { color: var(--on-navy-muted); }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid rgba(169,186,216,.22); position: relative; z-index: 1; }
.quick-card {
  padding: 2.1rem 1.8rem 1.8rem 0; position: relative; display: flex; flex-direction: column;
  border-right: 1px solid rgba(169,186,216,.16); transition: background .25s ease; min-height: 262px;
}
.quick-card:not(:first-child) { padding-left: 1.9rem; }
.quick-card:last-child { border-right: none; }
.quick-card:hover { background: rgba(255,255,255,.04); }
.quick-card__icon { width: 34px; height: 34px; display: grid; place-items: center; color: var(--accent-on-navy); margin: 0 0 1rem; }
.quick-card__icon svg { width: 27px; height: 27px; }
.quick-card h3 { color: #fff; font-size: var(--t-h3); margin-bottom: .5rem; font-weight: 500; }
.quick-card p { color: var(--on-navy-muted); font-size: 1.0rem; margin-bottom: 1.3rem; line-height: 1.55; }
.quick-card .link-arrow { color: var(--on-navy); margin-top: auto; font-size: .76rem; font-family: var(--font-display);
  letter-spacing: .1em; text-transform: uppercase; font-weight: 500; }
.quick-card .link-arrow svg { color: var(--accent-on-navy); }
.quick-card .link-arrow:hover { color: #fff; }

/* ====================== FEATURED EVENT ===========================
   Grav modular: templates/modular/featured-event.html.twig       */
.event-feature { display: grid; grid-template-columns: 1.45fr 1fr; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-soft); }
.event-feature--solo { grid-template-columns: 1fr; }
.event-feature__body { padding: clamp(1.8rem, 4vw, 3rem); display: flex; flex-direction: column; }
.event-feature__head { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.4rem; flex-wrap: wrap; }
.event-feature h2 { font-size: var(--t-h2); margin-bottom: 1rem; }
.event-feature__text { color: var(--muted); font-size: var(--t-lead); max-width: 54ch; line-height: 1.6; }
.event-feature__meta { display: flex; align-items: flex-start; gap: .7rem; margin: 1.5rem 0; padding: 1rem 1.2rem;
  background: var(--tint-2); border-radius: var(--r-sm); border-left: 3px solid var(--accent); }
.event-feature__meta svg { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 3px; }
.event-feature__meta p { font-size: .96rem; color: var(--muted); }
.event-feature__cta { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-top: auto; }
/* programme stub side */
.event-feature__stub { background: var(--navy); color: var(--on-navy); padding: clamp(1.6rem, 3.5vw, 2.4rem);
  position: relative; display: flex; flex-direction: column; gap: .9rem; overflow: hidden; }
.event-feature__stub-title { font-family: var(--font-display); font-size: .76rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-on-navy); padding-bottom: 1rem; border-bottom: 1px solid rgba(169,186,216,.2); margin-bottom: .3rem; }
.stub-row { display: flex; flex-direction: column; gap: .25rem; }
.stub-row dt { font-family: var(--font-display); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-navy-faint); }
.stub-row dd { font-family: var(--font-body); font-weight: 600; color: #fff; font-size: 1.05rem; }
.stub-row dd.soon { font-weight: 400; font-size: .92rem; color: var(--on-navy-muted); }
.stub-divider { height: 1px; background: rgba(169,186,216,.16); }
.stub-list { display: contents; }

/* ========================= LATEST NEWS ==========================
   Grav modular: templates/modular/latest-news.html.twig          */
.news-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.news-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 1.6rem; display: flex; flex-direction: column; gap: .8rem; transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.news-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); border-color: var(--border-2); }
.news-card__top { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.news-card__date { font-family: var(--font-display); font-size: .76rem; color: var(--faint); letter-spacing: .1em; text-transform: uppercase; }
.news-card h3 { font-size: 1.32rem; line-height: 1.22; font-weight: 500; }
.news-card p { color: var(--muted); font-size: 1.0rem; line-height: 1.55; }
.news-card .link-arrow { margin-top: auto; font-size: .96rem; }
.news-card__media { margin: -1.6rem -1.6rem .2rem; aspect-ratio: 16/9; overflow: hidden; border-radius: var(--r-lg) var(--r-lg) 0 0; }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; }
.news-card__media--logo { background: var(--tint-2); border-bottom: 1px solid var(--sky); }
.news-card__media--logo a { display: grid; place-items: center; width: 100%; height: 100%; padding: .6rem; }
.news-card__media--logo img { width: auto; height: 64%; max-height: 132px; object-fit: contain; }

/* =================== GUIDELINES (publication index) =============
   Grav modular: templates/modular/guidelines.html.twig           */
.guidelines { background: var(--surface); border-block: 1px solid var(--border); }
.resource-layout { display: grid; grid-template-columns: .82fr 1.6fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.resource-aside > p:not(.eyebrow) { color: var(--muted); margin-top: 1rem; font-size: .97rem; }
.resource-aside .eyebrow { margin-bottom: 1rem; }
.resource-aside h2 { font-size: var(--t-h2); }
.resource-note { margin-top: 1.6rem; padding: 1.1rem 1.2rem; background: var(--tint-2);
  border-left: 3px solid var(--accent); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.resource-note b { display: block; font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); margin-bottom: .35rem; font-weight: 600; }
.resource-note p { font-size: .9rem; color: var(--muted); margin: 0; }
/* publication index rows */
.pub-index { border-top: 1px solid var(--border-2); }
.pub-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1.5rem;
  padding: 1.65rem .3rem; border-bottom: 1px solid var(--hair); transition: background .2s ease; }
.pub-row:hover { background: var(--surface-2); }
.pub-row__main { min-width: 0; }
.pub-row__type { font-family: var(--font-display); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: .35rem; }
.pub-row__main b { display: block; font-family: var(--font-display); font-weight: 500; font-size: 1.28rem; color: var(--ink); line-height: 1.25; }
.pub-row__main span.desc { font-size: 1.0rem; color: var(--muted); display: block; margin-top: .3rem; line-height: 1.55; }
.pub-row__status { align-self: start; padding-top: .2rem; }

/* document rows (About → Dokumenti) */
.resource-list { border-top: 1px solid var(--border-2); }
.resource-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.2rem;
  padding: 1.3rem .3rem; border-bottom: 1px solid var(--hair); transition: background .2s ease; }
.resource-row:hover { background: var(--surface-2); }
.resource-row__file { width: 42px; height: 50px; flex: none; border-radius: var(--r-sm); background: var(--tint-2);
  border: 1px solid var(--sky); display: grid; place-items: center; }
.resource-row__file svg { width: 18px; height: 18px; color: var(--accent); }
.resource-row__main b { display: block; font-family: var(--font-display); font-weight: 500; font-size: 1.14rem; color: var(--ink); }
.resource-row__main span { font-size: .92rem; color: var(--muted); }
.resource-row__ext { font-family: var(--font-display); font-size: .76rem; color: var(--faint); letter-spacing: .08em; text-transform: uppercase; }
.resource-row a.resource-row__ext, a.resource-row { color: inherit; }

/* ===================== EDUCATION (pathway) =======================
   Grav modular: templates/modular/education.html.twig            */
.education { background: var(--paper); }
.education-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.education-intro { position: sticky; top: 106px; }
.education-intro .eyebrow { margin-bottom: 1rem; }
.education-intro h2 { font-size: var(--t-h2); }
.education-intro > p:not(.eyebrow) { color: var(--muted); font-size: var(--t-lead); margin-top: .9rem; line-height: 1.6; max-width: 40ch; }
.education-track { display: grid; grid-template-columns: auto 1fr; gap: 2rem; position: relative; padding-bottom: 3rem; }
.education-track:last-child { padding-bottom: 0; }
.education-track__rail { display: flex; flex-direction: column; align-items: center; }
.education-track__node {
  width: 56px; height: 56px; flex: none; border-radius: 50%; background: var(--surface);
  border: 1px solid var(--sky); display: grid; place-items: center; color: var(--accent); z-index: 2; box-shadow: var(--shadow-soft);
}
.education-track__node svg { width: 24px; height: 24px; }
.education-track__line { width: 2px; flex: 1; background: var(--sky); margin-top: 2px; }
.education-track:last-child .education-track__line { display: none; }
.education-track__body { padding-top: .65rem; }
.education-track__head { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: .45rem; }
.education-track h3 { font-size: var(--t-h3); font-weight: 500; }
.education-track p { color: var(--muted); margin-top: .5rem; max-width: 64ch; line-height: 1.62; font-size: 1.06rem; }

/* ===================== ABOUT INTRO (home) ========================= */
.about-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(2rem, 5vw, 4rem); align-items: stretch; }
.about-lead { align-self: center; }
.about-lead .eyebrow { margin-bottom: 1.1rem; }
.about-lead h2 { font-size: var(--t-h2); }
.about-lead p { color: var(--muted); margin-top: 1.1rem; line-height: 1.7; max-width: 54ch; }
.about-lead p.lead { font-size: var(--t-lead); color: var(--ink); margin-top: 1.2rem; }
.about-lead__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.about-focus { position: relative; overflow: hidden; display: flex; border-radius: var(--r-xl);
  padding: clamp(1.8rem, 3.2vw, 2.6rem); color: var(--on-navy); box-shadow: var(--shadow-navy);
  background: radial-gradient(130% 130% at 100% 0%, #2a447e 0%, var(--navy) 55%, var(--navy-deep) 100%); }
.about-focus::before { content: ""; position: absolute; inset: 0; z-index: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.06) 1px, transparent 0); background-size: 26px 26px; }
.about-focus__seal { position: absolute; right: -14%; bottom: -18%; width: 290px; opacity: .1; z-index: 0; }
.about-focus__seal img { width: 100%; height: auto; }
.about-focus__inner { position: relative; z-index: 1; display: flex; flex-direction: column; flex: 1; width: 100%; }
.about-focus .eyebrow { margin-bottom: 1.5rem; }
.check-list { display: flex; flex-direction: column; gap: 1.05rem; }
.check-list li { display: flex; gap: .8rem; align-items: flex-start; color: #fff; font-size: 1.1rem; line-height: 1.35; font-weight: 500; }
.check-list svg { width: 22px; height: 22px; flex: none; color: var(--accent-on-navy); margin-top: 2px; }
.about-focus__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.4rem; margin-top: auto;
  padding-top: 1.6rem; border-top: 1px solid rgba(169,186,216,.2); }
.about-focus__facts > div { display: flex; flex-direction: column; gap: .15rem; }
.about-focus__facts span { font-family: var(--font-display); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-navy-faint); }
.about-focus__facts b { font-family: var(--font-display); font-weight: 500; font-size: 1.18rem; color: #fff; }

/* ========================== CONTACT ==============================
   Grav modular: templates/modular/contact.html.twig              */
.contact { background: var(--navy); color: var(--on-navy); }
.contact h2, .contact .section-header h2 { color: #fff; }
.contact .contact-intro p { color: var(--on-navy-muted); }
.contact .eyebrow { color: var(--on-navy-muted); }
.contact-layout { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.contact-intro > p:not(.eyebrow) { color: var(--on-navy-muted); font-size: var(--t-lead); max-width: 44ch; line-height: 1.6; }
.contact-details { margin-top: 2rem; display: flex; flex-direction: column; }
.contact-detail { display: flex; align-items: center; gap: 1.1rem; padding: 1.2rem 0; border-top: 1px solid rgba(169,186,216,.18); }
.contact-detail:last-child { border-bottom: 1px solid rgba(169,186,216,.18); }
.contact-detail__icon { width: 44px; height: 44px; flex: none; display: grid; place-items: center;
  color: var(--accent-on-navy); border: 1px solid rgba(169,186,216,.22); border-radius: var(--r-sm); }
.contact-detail__icon svg { width: 19px; height: 19px; }
.contact-detail dt { font-family: var(--font-display); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-navy-faint); margin-bottom: .2rem; }
.contact-detail dd { font-weight: 600; color: #fff; font-size: 1.04rem; }
.contact-detail dd a:hover { color: var(--accent-on-navy); }
/* form */
.contact-form { background: var(--surface); border-radius: var(--r-lg); padding: clamp(1.5rem, 3vw, 2.2rem);
  box-shadow: var(--shadow-lift); border: 1px solid var(--border); }
.contact-form__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem;
  padding-bottom: 1.1rem; border-bottom: 1px solid var(--hair); }
.contact-form__head b { font-family: var(--font-display); font-size: 1.25rem; color: var(--ink); font-weight: 500; }
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-size: .9rem; font-weight: 600; color: var(--text); margin-bottom: .5rem; }
.field label .req { color: var(--accent); }
.field input, .field textarea, .field select {
  width: 100%; padding: .9rem 1rem; border: 1.5px solid var(--border-2); border-radius: var(--r-sm);
  background: var(--paper); color: var(--text); font-size: 1rem; transition: border-color .2s ease, background .2s ease;
}
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); background: #fff; outline: none; }
.field textarea { resize: vertical; min-height: 130px; }

/* ============================ FOOTER =============================
   Grav partial: templates/partials/footer.html.twig              */
.site-footer { background: var(--ink); color: var(--on-navy-muted); padding-top: clamp(3rem, 5vw, 4.5rem); }
.footer-top { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr) 1.05fr; gap: 2rem; padding-bottom: 2.8rem;
  border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-brand .brand__name b { color: #fff; }
.footer-brand .brand__name span { color: var(--on-navy-faint); }
.footer-brand > p { font-size: 1.0rem; color: var(--on-navy-muted); margin-top: 1.2rem; max-width: 36ch; line-height: 1.65; }
.footer-brand .brand__mark { width: 46px; height: 46px; }
.footer-nav h4 { font-family: var(--font-display); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-on-navy); margin-bottom: 1.2rem; font-weight: 500; }
.footer-nav ul { display: flex; flex-direction: column; gap: .65rem; }
.footer-nav a { font-size: 1.0rem; color: var(--on-navy-muted); transition: color .2s ease; }
.footer-nav a:hover { color: #fff; }
.footer-version .site-version-switcher { background: rgba(255,255,255,.06); }
.footer-bottom { padding-block: 1.6rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-bottom p { font-size: .86rem; color: var(--on-navy-faint); }
.footer-bottom .demo-note { font-family: var(--font-display); font-size: .8rem; letter-spacing: .04em; }

/* ===================== INNER PAGE HEADERS ========================= */
.page-hero { background: var(--navy); color: var(--on-navy); position: relative; overflow: hidden;
  padding-block: clamp(2.75rem, 6vw, 5rem); }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.06) 1px, transparent 0);
  background-size: 28px 28px;
}
.page-hero__seal {
  position: absolute; right: -6%; top: 50%; transform: translateY(-50%); z-index: 0;
  width: clamp(260px, 34vw, 460px); opacity: .1; pointer-events: none;
}
.page-hero__seal img, .page-hero__seal svg { width: 100%; height: auto; }
.page-hero .container { position: relative; z-index: 2; }
.page-hero__inner { max-width: 64ch; }
.breadcrumb { display: flex; align-items: center; gap: .5rem; font-family: var(--font-display); font-size: .8rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--on-navy-faint); margin-bottom: 1.5rem; }
.breadcrumb a:hover { color: var(--accent-on-navy); }
.breadcrumb svg { width: 13px; height: 13px; }
.breadcrumb ol { display: flex; align-items: center; gap: .5rem; }
.breadcrumb .sep { color: var(--on-navy-faint); }
.page-hero h1 { color: #fff; font-size: var(--t-h1); font-weight: 600; }
.page-hero .eyebrow { margin-bottom: 1.1rem; }
.page-hero__lead { color: var(--on-navy-muted); font-size: var(--t-lead); margin-top: 1.2rem; max-width: 56ch; line-height: 1.6; }

/* page layout with optional sidebar */
.page-layout { display: grid; grid-template-columns: 232px 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.page-nav { position: sticky; top: 106px; }
.page-nav__label { font-family: var(--font-display); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--faint); margin-bottom: 1rem; font-weight: 500; }
.page-nav ul { display: flex; flex-direction: column; gap: .1rem; border-left: 1px solid var(--border); }
.page-nav a { display: block; padding: .55rem .95rem; font-size: .96rem; color: var(--muted); margin-left: -1px;
  border-left: 2px solid transparent; transition: color .2s ease, border-color .2s ease; }
.page-nav a:hover { color: var(--navy); }
.page-nav a.is-active { color: var(--ink); border-left-color: var(--accent); font-weight: 600; }

.prose { max-width: 72ch; }
.prose h2 { font-size: var(--t-h2); margin-bottom: 1rem; }
.prose h3 { font-size: var(--t-h3); margin-top: 1.8rem; margin-bottom: .6rem; font-weight: 500; }
.prose .eyebrow { margin-bottom: 1rem; }
.prose .eyebrow + h2 { margin-top: 1rem; }
.prose p { color: var(--text); margin-bottom: 1rem; line-height: 1.7; }
.prose p.lead { font-size: var(--t-lead); color: var(--muted); line-height: 1.6; }
.prose ul.bullets { display: flex; flex-direction: column; gap: .65rem; margin: 1rem 0 1.5rem; }
.prose ul.bullets li { position: relative; padding-left: 1.7rem; color: var(--text); }
.prose ul.bullets li::before { content: ""; position: absolute; left: 0; top: .62em; width: 9px; height: 9px;
  border-radius: 50%; border: 2px solid var(--accent); }
/* Markdown body content (news articles, default pages) - generic lists/links/emphasis */
.prose ul:not(.bullets), .prose ol { margin: 1rem 0 1.6rem; padding-left: 1.5rem; color: var(--text); }
.prose ul:not(.bullets) { list-style: disc; }
.prose ol { list-style: decimal; }
.prose ul:not(.bullets) li, .prose ol li { margin-bottom: .5rem; line-height: 1.65; padding-left: .25rem; }
.prose ul:not(.bullets) li:last-child, .prose ol li:last-child { margin-bottom: 0; }
.prose ul:not(.bullets) li::marker, .prose ol li::marker { color: var(--accent); }
.prose a:not(.btn) { color: var(--accent-700); text-decoration: underline; text-underline-offset: 2px; }
.prose a:not(.btn):hover { color: var(--accent); }
.prose strong { font-weight: 600; color: var(--ink); }
.prose blockquote { margin: 1.3rem 0; padding: .5rem 0 .5rem 1.2rem; border-left: 3px solid var(--accent); color: var(--muted); font-style: italic; }
.content-block { margin-top: clamp(2.75rem, 5vw, 4.5rem); }
.content-block:first-child { margin-top: 0; }

/* info cards */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; margin: 1.4rem 0;
  border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.info-card { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 1.5rem; }
.info-card__num { font-family: var(--font-display); font-size: .82rem; color: var(--accent); letter-spacing: .12em; font-weight: 600; }
.info-card h3 { font-size: 1.18rem; margin: .6rem 0 .45rem; font-weight: 500; }
.info-card h3:first-child { margin-top: 0; }
.info-card p { font-size: .96rem; color: var(--muted); line-height: 1.5; }
.seal-card { display: flex; gap: 1.4rem; align-items: center; padding: 1.6rem; margin-top: 1.6rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); }
.seal-card img { flex: none; width: 120px; height: 120px; }
.seal-card--solo { justify-content: center; padding: 2.4rem 1.6rem; }
.seal-card--solo img { width: 240px; height: 240px; max-width: 72%; }

/* membership tier cards */
.tier-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin: 1.4rem 0; }
.tier-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 1.7rem; display: flex; flex-direction: column; }
.tier-card--feature { background: var(--navy); color: var(--on-navy); border-color: var(--navy); }
.tier-card--feature h3, .tier-card--feature .tier-card__price { color: #fff; }
.tier-card--feature p { color: var(--on-navy-muted); }
.tier-card__label { font-family: var(--font-display); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.tier-card--feature .tier-card__label { color: var(--accent-on-navy); }
.tier-card h3 { font-size: var(--t-h3); margin: .7rem 0 .4rem; font-weight: 500; }
.tier-card__price { font-family: var(--font-display); font-size: .9rem; color: var(--muted); margin-bottom: .9rem; letter-spacing: .02em; }
.tier-card--feature .tier-card__price { color: var(--on-navy-muted); }
.tier-card p { font-size: .96rem; color: var(--muted); margin-bottom: 1.2rem; line-height: 1.5; }
.tier-card .link-arrow, .tier-card .pill { margin-top: auto; align-self: flex-start; }
.tier-card ul.bullets { display: flex; flex-direction: column; gap: .5rem; margin: 0 0 1.2rem; }
.tier-card ul.bullets li { position: relative; padding-left: 1.5rem; font-size: .96rem; color: inherit; }
.tier-card ul.bullets li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--accent); }
.tier-card--feature ul.bullets li::before { border-color: var(--accent-on-navy); }

/* steps */
.steps { counter-reset: step; display: grid; gap: 1px; margin: 1.4rem 0; background: var(--border);
  border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: start; background: var(--surface); padding: 1.4rem 1.5rem; }
.step__num { counter-increment: step; width: 38px; height: 38px; flex: none; border-radius: 50%; background: var(--tint);
  color: var(--navy); display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; }
.step__num::before { content: counter(step); }
.step b { display: block; font-family: var(--font-display); font-size: 1.16rem; color: var(--ink); margin-bottom: .3rem; font-weight: 500; }
.step p { font-size: .96rem; color: var(--muted); line-height: 1.5; }

/* CTA block */
.cta-block { background: var(--navy); color: var(--on-navy); border-radius: var(--r-lg); padding: clamp(2rem, 5vw, 3.2rem);
  position: relative; overflow: hidden; display: grid; grid-template-columns: 1.5fr auto; gap: 2rem; align-items: center; }
.cta-block::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.06) 1px, transparent 0); background-size: 26px 26px;
}
.cta-block__seal { position: absolute; right: -4%; top: 50%; transform: translateY(-50%); width: 280px; opacity: .12; z-index: 0; }
.cta-block__body { position: relative; z-index: 2; }
.cta-block .eyebrow { margin-bottom: 1rem; }
.cta-block h2 { color: #fff; font-size: var(--t-h2); }
.cta-block p { color: var(--on-navy-muted); margin-top: .8rem; max-width: 48ch; line-height: 1.6; }
.cta-block__actions { position: relative; z-index: 2; display: flex; flex-direction: column; gap: .7rem; }

/* event list */
.event-list { border-top: 1px solid var(--border-2); }
.event-row { display: grid; grid-template-columns: auto 1fr auto; gap: 1.7rem; align-items: center;
  padding: 1.5rem .3rem; border-bottom: 1px solid var(--hair); transition: background .2s ease; }
a.event-row:hover { background: var(--surface-2); }
.event-row__date { text-align: center; min-width: 70px; background: var(--tint-2); border: 1px solid var(--sky);
  border-radius: var(--r-sm); padding: .6rem .4rem; }
.event-row__date b { display: block; font-family: var(--font-display); font-size: 1.6rem; color: var(--navy); line-height: 1; font-weight: 600; }
.event-row__date span { font-family: var(--font-display); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.event-row__main h3 { font-size: var(--t-h3); margin-bottom: .3rem; font-weight: 500; }
.event-row__main p { font-size: .96rem; color: var(--muted); line-height: 1.5; }
.event-row__meta { display: flex; align-items: center; gap: .5rem; }

/* archive empty state */
.empty-state { text-align: center; padding: clamp(2.5rem, 6vw, 3.5rem); border: 1px dashed var(--border-2);
  border-radius: var(--r-md); background: var(--surface); }
.empty-state svg { width: 38px; height: 38px; color: var(--faint); margin: 0 auto 1rem; }
.empty-state b { font-family: var(--font-display); font-size: 1.22rem; color: var(--ink); display: block; margin-bottom: .4rem; font-weight: 500; }
.empty-state p { color: var(--muted); font-size: .94rem; max-width: 44ch; margin: 0 auto; line-height: 1.55; }

/* generic card grid (patients etc.) */
.card-grid { display: grid; gap: 1.4rem; }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1.7rem;
  transition: box-shadow .2s ease, transform .2s ease; }
.card:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.card h3 { font-size: var(--t-h3); margin: .8rem 0 .5rem; font-weight: 500; }
.card p { color: var(--muted); font-size: 1.0rem; line-height: 1.6; }
.pc-icon { width: 44px; height: 44px; display: grid; place-items: center; color: var(--accent);
  background: var(--tint-2); border: 1px solid var(--sky); border-radius: var(--r-sm); }
.pc-icon svg { width: 22px; height: 22px; }

.content-grid { display: grid; grid-template-columns: 1.6fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.aside { display: flex; flex-direction: column; gap: 1.2rem; position: sticky; top: 106px; }
.aside-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1.5rem; }
.aside-card.tint { background: var(--tint-2); border-color: var(--sky); }
.aside-card h3 { font-size: 1.18rem; margin-bottom: .5rem; font-weight: 500; }
.aside-card p { color: var(--muted); font-size: .98rem; line-height: 1.6; margin-bottom: 1rem; }
.aside-card p:last-child { margin-bottom: 0; }

/* ===================== STAT STRIP ================================ */
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 1.5rem; }
.stat__num { font-family: var(--font-display); font-size: 2.2rem; font-weight: 600; color: var(--navy); line-height: 1; }
.stat__label { color: var(--muted); font-size: .96rem; margin-top: .5rem; }
.section--navy .stat { background: rgba(255,255,255,.05); border-color: rgba(169,186,216,.18); }
.section--navy .stat__num { color: #fff; }
.section--navy .stat__label { color: var(--on-navy-muted); }

/* ============== EVENT / WORKSHOP DETAIL (programme) ============== */
.detail-layout { display: grid; grid-template-columns: 1fr 320px; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.detail-figure { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-soft); }
.detail-figure img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.news-logo { margin: 0 0 1.8rem; padding: clamp(1.8rem, 5vw, 2.8rem); background: var(--tint-2); border: 1px solid var(--sky); border-radius: var(--r-lg); display: grid; place-items: center; }
.news-logo img { width: clamp(140px, 40vw, 200px); height: auto; }
.detail-figcaption { font-family: var(--font-display); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--faint); margin-top: .7rem; }

/* programme timeline */
.programme { border-top: 1px solid var(--border-2); margin-top: 1.4rem; }
.prog-row { display: grid; grid-template-columns: 120px 1fr; gap: 1.4rem; padding: 1.35rem .2rem;
  border-bottom: 1px solid var(--hair); }
.prog-row__time { font-family: var(--font-display); font-weight: 500; font-size: 1.02rem; color: var(--accent); letter-spacing: .02em; }
.prog-row__main h3 { font-family: var(--font-display); font-size: 1.18rem; color: var(--ink); font-weight: 500; margin-bottom: .35rem; }
.prog-row__main p { font-size: .96rem; color: var(--muted); line-height: 1.55; }
.prog-row__main .who { font-size: .9rem; color: var(--accent-700); font-weight: 600; margin-top: .35rem; display: block; }
.prog-row--break { background: var(--surface-2); }

/* speaker cards */
.speaker-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; margin-top: 1.4rem; }
.speaker { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1.5rem; display: flex; gap: 1rem; align-items: flex-start; }
.speaker__avatar { width: 52px; height: 52px; flex: none; border-radius: 50%; background: var(--tint); color: var(--navy);
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; border: 1px solid var(--sky); }
.speaker b { display: block; font-family: var(--font-display); font-weight: 500; font-size: 1.14rem; color: var(--ink); }
.speaker div span { font-size: .92rem; color: var(--muted); display: block; margin-top: .2rem; }
.speaker .role { color: var(--accent-700); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; font-family: var(--font-display); margin-top: .4rem; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.4rem; }
.gallery a, .gallery figure, .gallery__item { display: block; width: 100%; padding: 0; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--border); background: none; }
.gallery__item { cursor: zoom-in; }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .35s ease; display: block; }
.gallery a:hover img, .gallery__item:hover img, .gallery__item:focus-visible img { transform: scale(1.05); }
.gallery__item:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Lightbox (event gallery modal) */
.lightbox { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: clamp(1rem, 4vw, 3rem); background: rgba(11,20,40,.93); opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__stage { margin: 0; display: flex; max-width: min(1100px, 92vw); max-height: 86vh; }
.lightbox__img { max-width: 100%; max-height: 86vh; width: auto; height: auto; object-fit: contain; border-radius: var(--r-sm); box-shadow: 0 30px 80px rgba(0,0,0,.55); background: var(--navy); }
.lightbox__close, .lightbox__nav { position: absolute; display: grid; place-items: center; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); color: #fff; cursor: pointer; border-radius: 50%; transition: background .2s ease, border-color .2s ease; }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,.22); border-color: rgba(255,255,255,.5); }
.lightbox__close:focus-visible, .lightbox__nav:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lightbox__close { top: clamp(1rem,3vw,1.6rem); right: clamp(1rem,3vw,1.6rem); width: 44px; height: 44px; }
.lightbox__close svg { width: 22px; height: 22px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); width: 50px; height: 50px; }
.lightbox__nav svg { width: 26px; height: 26px; }
.lightbox__nav--prev { left: clamp(.6rem,2.5vw,1.8rem); }
.lightbox__nav--next { right: clamp(.6rem,2.5vw,1.8rem); }
.lightbox__counter { position: absolute; bottom: clamp(1rem,3vw,1.6rem); left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.72); font-size: .85rem; letter-spacing: .08em; }
body.lightbox-open { overflow: hidden; }
@media (max-width: 600px) { .lightbox__nav { width: 42px; height: 42px; } .lightbox__nav svg { width: 22px; height: 22px; } }

/* sidebar detail card */
.detail-aside { position: sticky; top: 106px; display: flex; flex-direction: column; gap: 1.2rem; }
.detail-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1.6rem; box-shadow: var(--shadow-soft); }
.detail-card h3 { font-size: 1.2rem; margin-bottom: 1rem; font-weight: 500; }
.detail-card dl { display: flex; flex-direction: column; }
.detail-card .d-row { padding: .8rem 0; border-top: 1px solid var(--hair); display: flex; flex-direction: column; gap: .15rem; }
.detail-card .d-row:first-of-type { border-top: none; padding-top: 0; }
.detail-card dt { font-family: var(--font-display); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.detail-card dd { font-weight: 600; color: var(--ink); }
.detail-card .btn { margin-top: 1.2rem; }
.sponsor-card { background: var(--tint-2); border: 1px solid var(--sky); border-radius: var(--r-lg); padding: 1.4rem; text-align: center; }
.sponsor-card span { font-family: var(--font-display); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: .5rem; }
.sponsor-card b { font-family: var(--font-display); font-size: 1.3rem; color: var(--navy); font-weight: 600; }
.sponsor-card small { display: block; color: var(--muted); margin-top: .3rem; font-size: .88rem; }

/* statute document */
.statute-doc { max-width: 76ch; }
.statute-doc h2 { font-size: var(--t-h3); margin: 2.2rem 0 .8rem; padding-top: 1.6rem; border-top: 1px solid var(--hair); font-weight: 600; }
.statute-doc h2:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.statute-doc h3 { font-family: var(--font-display); font-size: 1.05rem; color: var(--navy); font-weight: 600; margin: 1.4rem 0 .4rem; letter-spacing: .02em; }
.statute-doc p { margin-bottom: .9rem; color: var(--text); }
.statute-doc ul { display: flex; flex-direction: column; gap: .5rem; margin: .6rem 0 1.2rem; }
.statute-doc ul li { position: relative; padding-left: 1.6rem; color: var(--text); }
.statute-doc ul li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 1px; background: var(--accent); }

/* ====================== PRESS KIT =============================== */
.asset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.2rem; }
.asset-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.asset-card--wide { grid-column: 1 / -1; }
.asset-card__preview { min-height: 190px; display: grid; place-items: center; padding: 1.8rem; border-bottom: 1px solid var(--hair); }
.asset-card__preview img { width: auto; max-width: 86%; max-height: 150px; display: block; }
.asset-card__preview.is-tint { background: var(--tint-2); }
.asset-card__preview.is-navy { background: var(--navy); }
.asset-card__preview.is-white { background: #fff; }
.asset-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.2rem; }
.asset-card__name { font-family: var(--font-display); font-weight: 500; font-size: 1.04rem; color: var(--ink); }
.asset-card__name span { display: block; font-family: var(--font-body); font-weight: 400; font-size: .82rem; color: var(--muted); margin-top: .15rem; }
.asset-dl { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--font-display); font-weight: 500; font-size: .8rem;
  letter-spacing: .08em; text-transform: uppercase; color: var(--accent); white-space: nowrap; }
.asset-dl svg { width: 15px; height: 15px; }
.asset-dl:hover { color: var(--accent-700); }

.swatch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1rem; }
.swatch { border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; background: var(--surface); }
.swatch__chip { height: 108px; }
.swatch__info { padding: .85rem 1rem; }
.swatch__name { font-family: var(--font-display); font-weight: 500; color: var(--ink); font-size: 1rem; }
.swatch__hex { font-size: .9rem; color: var(--muted); letter-spacing: .03em; margin-top: .15rem; text-transform: uppercase; }

.type-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.2rem; }
.type-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1.6rem 1.7rem; }
.type-card__glyph { font-size: 3.2rem; line-height: 1; color: var(--navy); }
.type-card--oswald .type-card__glyph { font-family: var(--font-display); font-weight: 600; }
.type-card--source .type-card__glyph { font-family: var(--font-body); font-weight: 600; }
.type-card--arimo  .type-card__glyph { font-family: var(--font-wordmark); font-weight: 700; }
.type-card__name { font-family: var(--font-display); font-weight: 500; font-size: 1.2rem; color: var(--ink); margin-top: 1rem; }
.type-card__role { color: var(--accent-700); font-family: var(--font-display); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin-top: .35rem; }
.type-card__specimen { color: var(--muted); margin-top: .6rem; font-size: 1.05rem; letter-spacing: .01em; }
.type-card--oswald .type-card__specimen { font-family: var(--font-display); }
.type-card--source .type-card__specimen { font-family: var(--font-body); }
.type-card--arimo  .type-card__specimen { font-family: var(--font-wordmark); }

/* usage rules */
.rule-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.rule { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1.4rem 1.5rem; }
.rule__icon { width: 44px; height: 44px; border-radius: 50%; background: var(--tint); color: var(--navy);
  display: grid; place-items: center; border: 1px solid var(--sky); margin-bottom: 1rem; }
.rule__icon svg { width: 21px; height: 21px; }
.rule b { display: block; font-family: var(--font-display); font-weight: 500; font-size: 1.08rem; color: var(--ink); margin-bottom: .3rem; }
.rule p { color: var(--muted); font-size: .94rem; line-height: 1.5; }

/* ====================== RESPONSIVE =============================== */
@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-visual { order: -1; max-width: 420px; margin-inline: auto; }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-card { border-bottom: 1px solid rgba(169,186,216,.16); }
  .quick-card:nth-child(2) { border-right: none; }
  .news-board { grid-template-columns: 1fr 1fr; }
  .resource-layout, .contact-layout, .content-grid, .detail-layout, .education-layout, .about-grid { grid-template-columns: 1fr; }
  .education-intro { position: static; }
  .about-lead { align-self: start; }
  .event-feature { grid-template-columns: 1fr; }
  .detail-aside, .aside, .page-nav { position: static; }
  .footer-top { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .page-layout { grid-template-columns: 1fr; }
  .page-nav { display: none; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .trust-strip { grid-template-columns: 1fr 1fr; }
  .cta-block { grid-template-columns: 1fr; }
  .cta-block__actions { flex-direction: row; flex-wrap: wrap; }
}

/* Header -> mobile drawer */
@media (max-width: 1180px) {
  .nav-toggle { display: grid; }
  /* The mobile drawer (.primary-nav) is position:fixed. The header's backdrop-filter
     would otherwise establish a containing block and trap the drawer inside the ~64px
     header bar, so the menu appears not to open. Drop the filter on mobile. */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(255,255,255,.97); }
  .header-cta { display: none; }
  .primary-nav {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(88vw, 380px);
    background: var(--surface); z-index: 96; transform: translateX(100%); visibility: hidden;
    transition: transform .3s cubic-bezier(.4,0,.2,1), visibility .3s ease; margin: 0; padding: 1.25rem;
    display: flex; flex-direction: column; overflow-y: auto; box-shadow: -20px 0 50px -20px rgba(17,32,63,.4);
  }
  body.nav-open .primary-nav { transform: translateX(0); visibility: visible; }
  body.nav-open { overflow: hidden; }
  /* .primary-nav (z-index 96) lives inside .site-header-wrap, whose own z-index:90
     forms a stacking context — so the drawer can't beat the body-level .nav-backdrop
     (z-index 95) and taps land on the overlay. While the menu is open, lift the
     whole header-wrap above the backdrop so the drawer is reachable. */
  body.nav-open .site-header-wrap { z-index: 100; }
  .nav-drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem;
    padding-bottom: 1.25rem; border-bottom: 1px solid var(--border); }
  .nav-drawer-head .brand__name b { color: var(--navy); }
  .nav-close { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-sm); border: 1.5px solid var(--border-2); }
  .nav-close svg { width: 20px; height: 20px; }
  .primary-nav > ul { flex-direction: column; align-items: stretch; gap: .1rem; }
  .primary-nav > ul a { min-height: 52px; padding: .7rem .9rem; font-size: 1.06rem; border-radius: var(--r-sm); }
  .primary-nav > ul a[aria-current="page"] { background: var(--tint-2); }
  .primary-nav > ul a[aria-current="page"]::after { display: none; }
  .nav-drawer-foot { margin-top: auto; padding-top: 1.5rem; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 1rem; }
  .nav-drawer-foot .drawer-version { display: flex; flex-direction: column; gap: .6rem; }
  .drawer-version__label { font-family: var(--font-display); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
  .nav-drawer-foot .site-version-switcher { background: var(--surface-2); border-color: var(--border); align-self: flex-start; }
  .nav-drawer-foot .site-version-switcher a { color: var(--muted); }
  .nav-drawer-foot .site-version-switcher a[aria-current="true"] { background: var(--navy); color: #fff; }
  .utility-bar { display: none; }
}

@media (max-width: 560px) {
  .news-board, .card-grid.cols-2, .card-grid.cols-3, .gallery, .stat-strip, .trust-strip, .quick-grid { grid-template-columns: 1fr; }
  .quick-card { padding: 1.6rem 0; border-right: none; }
  .prog-row { grid-template-columns: 1fr; gap: .4rem; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* === Grav Form plugin output → match .contact-form design === */
.contact-form .form-field { margin-bottom: 1.2rem; }
.contact-form .form-field label { display: block; font-size: .9rem; font-weight: 600; color: var(--text); margin-bottom: .5rem; }
.contact-form .form-field label .required { color: var(--accent); }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%; padding: .9rem 1rem; border: 1.5px solid var(--border-2); border-radius: var(--r-sm);
  background: var(--paper); color: var(--text); font-size: 1rem; font-family: var(--font-body);
  transition: border-color .2s ease, background .2s ease;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--faint); }
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { border-color: var(--accent); background: #fff; outline: none; }
.contact-form textarea { min-height: 130px; resize: vertical; }
.contact-form .form-input-wrapper { width: 100%; }
.contact-form .buttons, .contact-form .form-buttons { margin-top: .4rem; }
/* Form submission feedback (success / error banner - Grav renders div.notices) */
.message-band { margin-top: 1.3rem; }
.message-band .notices:last-child { margin-bottom: 0; }
.notices { margin: 0 0 1.4rem; padding: .95rem 1.15rem; border-radius: var(--r-sm); border: 1px solid; font-size: .98rem; line-height: 1.5; display: flex; gap: .6rem; align-items: flex-start; }
.notices p { margin: 0; }
.notices::before { font-weight: 700; flex: none; line-height: 1.5; }
.notices.success, .notices.green { background: #e9f7ef; border-color: #a8ddbd; color: #1c6b3f; }
.notices.success::before, .notices.green::before { content: "✓"; }
.notices.error, .notices.red { background: #fdecec; border-color: #f1b4b4; color: #9b1c1c; }
.notices.error::before, .notices.red::before { content: "!"; }
.notices.warning, .notices.yellow { background: #fef6e7; border-color: #f2da9f; color: #8a5a00; }
.notices.warning::before, .notices.yellow::before { content: "!"; }

/* Basic captcha (image + reload + input) */
.contact-form .basic-captcha .form-input-wrapper { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.contact-form .basic-captcha .form-input-addon { display: inline-flex; align-items: center; gap: .5rem; }
.contact-form .basic-captcha .form-input-addon img { height: 48px; width: auto; border: 1.5px solid var(--border-2); border-radius: var(--r-sm); background: #fff; }
.contact-form .basic-captcha input { flex: 1 1 160px; width: auto; }
.contact-form .reload-captcha-button { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; flex: 0 0 auto; padding: 0; border: 1.5px solid var(--border-2); border-radius: var(--r-sm); background: var(--paper); color: var(--accent-700); cursor: pointer; transition: background .2s ease, border-color .2s ease; }
.contact-form .reload-captcha-button:hover { background: #fff; border-color: var(--accent); }
.contact-form .reload-captcha-button svg { width: 18px; height: 18px; }

/* === Membership application page (full-width form) === */
.apply-intro { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(1.4rem, 4vw, 2.5rem); align-items: start; margin-bottom: clamp(1.8rem, 4vw, 2.6rem); }
.apply-intro__main h3 { font-family: var(--font-display); font-size: var(--t-h3); font-weight: 500; color: var(--ink); margin-bottom: .7rem; }
.apply-intro__main p { color: var(--muted); line-height: 1.65; margin-bottom: 1rem; max-width: 64ch; }
.apply-intro__note { background: var(--tint-2); border: 1px solid var(--sky); border-left: 3px solid var(--accent); border-radius: 0 var(--r-sm) var(--r-sm) 0; padding: 1.3rem 1.45rem; }
.apply-intro__note-label { display: inline-flex; align-items: center; gap: .45rem; font-family: var(--font-display); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-700); margin-bottom: .55rem; }
.apply-intro__note-label svg { width: 15px; height: 15px; }
.apply-intro__note p { color: var(--text); font-size: .95rem; line-height: 1.6; margin: 0; }

.application-form form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(1rem, 2.5vw, 1.6rem); }
.application-form .form-field:has(.basic-captcha) { grid-column: 1 / -1; }
.application-form .buttons { grid-column: 1 / -1; }

@media (max-width: 760px) {
  .apply-intro { grid-template-columns: 1fr; }
  .application-form form { grid-template-columns: 1fr; }
}
