/* ============================================================
   Hrvatsko numizmatičko društvo — redizajn
   Klasično / muzejski. Topli neutralni tonovi, monokromatski.
   Tip: Newsreader (serif) + Public Sans (sans).
   ============================================================ */

:root {
  /* Warm neutral paper palette */
  --paper:        #faf7f1;
  --paper-2:      #f2ede4;
  --paper-3:      #ebe4d8;
  --card:         #ffffff;
  --ink:          #1b1916;
  --ink-soft:     #423d35;
  --muted:        #6f685d;
  --muted-2:      #8a8275;
  --line:         #e6ded1;
  --line-strong:  #d6cbb9;
  --accent:       #1b1916;       /* monokromatski crni akcent */
  --accent-faint: #f0ebe1;
  --focus:        #3a6ea5;

  /* Type */
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans:  "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Rhythm */
  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 56px);
  --radius: 4px;
  --radius-lg: 8px;

  /* Shadows — soft, museum-quiet */
  --shadow-1: 0 1px 2px rgba(27,25,22,.04), 0 2px 8px rgba(27,25,22,.04);
  --shadow-2: 0 4px 14px rgba(27,25,22,.07), 0 1px 3px rgba(27,25,22,.05);

  --header-h: 116px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.65;
  font-weight: 400;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

::selection { background: #1b1916; color: #faf7f1; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 2px;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1.1em; text-wrap: pretty; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 820px; margin-inline: auto; padding-inline: var(--gutter); }

.eyebrow {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============================================================
   SKIP LINK
   ============================================================ */
.skip-link {
  position: absolute; left: 12px; top: -100px;
  background: var(--ink); color: var(--paper);
  padding: 12px 18px; border-radius: 4px; z-index: 200;
  font-weight: 700; transition: top .15s;
}
.skip-link:focus { top: 12px; }

/* ============================================================
   TOP BAR (utility: language + search)
   ============================================================ */
.topbar {
  background: var(--ink);
  color: #d9d2c6;
  font-size: 14px;
}
.topbar .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 40px; gap: 16px;
}
.topbar a { color: #d9d2c6; text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar-left { display: flex; align-items: center; gap: 18px; }
.topbar-tag { letter-spacing: .04em; color: #b8b0a2; }
.topbar-right { display: flex; align-items: center; gap: 6px; }

.lang-switch { display: flex; align-items: center; gap: 2px; }
.lang-btn {
  background: none; border: 0; color: #b8b0a2; cursor: pointer;
  font-family: var(--sans); font-weight: 700; font-size: 13px;
  letter-spacing: .06em; padding: 6px 9px; border-radius: 4px;
}
.lang-btn:hover { color: #fff; background: rgba(255,255,255,.08); }
.lang-btn.active { color: var(--ink); background: var(--paper); }
.lang-sep { color: #5a554c; }

.topbar-search {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px; padding: 5px 14px; color: #d9d2c6; cursor: pointer;
  font-family: var(--sans); font-size: 13px;
}
.topbar-search:hover { background: rgba(255,255,255,.14); }

/* ============================================================
   HEADER / MASTHEAD
   ============================================================ */
.masthead {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 100;
}
.masthead.scrolled { box-shadow: var(--shadow-1); }

.masthead-inner {
  display: flex; align-items: center; gap: 22px;
  min-height: 92px;
}
.brand {
  display: flex; align-items: center; gap: 16px;
  text-decoration: none; color: var(--ink);
  margin-right: auto;
}
.brand-seal {
  width: 60px; height: 60px; flex: none;
  transition: transform .4s cubic-bezier(.2,.7,.2,1);
}
.brand:hover .brand-seal { transform: rotate(-8deg); }
.brand-text { display: flex; flex-direction: column; gap: 4px; }
.brand-name {
  font-family: var(--serif); font-weight: 600; line-height: 1.12;
  font-size: clamp(18px, 2.2vw, 24px); letter-spacing: -.01em; max-width: 18ch;
}
.brand-sub {
  font-family: var(--sans); font-weight: 600; font-size: 11.5px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}

/* Desktop nav */
.mainnav { display: flex; align-items: stretch; gap: 2px; }
.navitem { position: relative; display: flex; align-items: stretch; }
.navlink {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--sans); font-weight: 600; font-size: 15px;
  color: var(--ink-soft); text-decoration: none;
  padding: 10px 13px; border-radius: 6px; cursor: pointer;
  border: 0; background: none; white-space: nowrap;
  transition: background .15s, color .15s;
}
.navlink .caret {
  width: 7px; height: 7px; border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px);
  opacity: .5; transition: transform .2s;
}
.navlink:hover { background: var(--paper-2); color: var(--ink); }
.navitem.active > .navlink { color: var(--ink); }
.navitem.active > .navlink::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px;
  height: 2px; background: var(--ink); border-radius: 2px;
}
.navitem.open .navlink .caret { transform: rotate(225deg) translateY(2px); }

/* Dropdown */
.dropdown {
  position: absolute; top: calc(100% + 6px); left: 0;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-2);
  padding: 8px; min-width: 268px; z-index: 120;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .16s, transform .16s, visibility .16s;
}
.navitem.open .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: block; padding: 9px 12px; border-radius: 6px;
  text-decoration: none; color: var(--ink-soft); font-size: 15px; font-weight: 500;
}
.dropdown a:hover { background: var(--paper-2); color: var(--ink); }
.dropdown .sub { padding-left: 12px; }
.dropdown .sub a { font-size: 14px; color: var(--muted); padding: 7px 12px; }
.dropdown .sub a::before { content: "— "; color: var(--line-strong); }
.dropdown .grouphead {
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted-2); font-weight: 700; padding: 10px 12px 4px;
}

/* Mobile toggle */
.nav-toggle {
  display: none; align-items: center; gap: 9px;
  background: none; border: 1px solid var(--line-strong); border-radius: 8px;
  padding: 10px 14px; cursor: pointer; font-family: var(--sans);
  font-weight: 700; font-size: 15px; color: var(--ink);
}
.nav-toggle .bars { width: 18px; height: 13px; position: relative; }
.nav-toggle .bars span {
  position: absolute; left: 0; right: 0; height: 2px; background: var(--ink);
  transition: .25s;
}
.nav-toggle .bars span:nth-child(1) { top: 0; }
.nav-toggle .bars span:nth-child(2) { top: 5.5px; }
.nav-toggle .bars span:nth-child(3) { top: 11px; }

/* ============================================================
   MOBILE DRAWER
   ============================================================ */
.drawer-scrim {
  position: fixed; inset: 0; background: rgba(27,25,22,.45);
  z-index: 150; opacity: 0; visibility: hidden;
}
.drawer-scrim.open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 90vw);
  background: var(--paper); z-index: 160; transform: translateX(100%); visibility: hidden;
  display: flex; flex-direction: column; box-shadow: -8px 0 30px rgba(0,0,0,.18);
}
.drawer.open { transform: translateX(0); visibility: visible; }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter); border-bottom: 1px solid var(--line);
}
.drawer-head .brand-name { font-size: 19px; }
.drawer-close {
  background: none; border: 1px solid var(--line-strong); border-radius: 8px;
  width: 44px; height: 44px; cursor: pointer; font-size: 24px; line-height: 1;
  color: var(--ink); display: grid; place-items: center;
}
.drawer-body { overflow-y: auto; padding: 10px var(--gutter) 40px; flex: 1; }
.drawer-group { border-bottom: 1px solid var(--line); }
.drawer-row {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  background: none; border: 0; padding: 16px 2px; cursor: pointer;
  font-family: var(--sans); font-weight: 600; font-size: 18px; color: var(--ink);
  text-align: left; text-decoration: none;
}
.drawer-row .caret {
  width: 9px; height: 9px; border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted); transform: rotate(45deg);
  transition: transform .2s;
}
.drawer-group.open .drawer-row .caret { transform: rotate(225deg); }
.drawer-sub {
  display: none; padding: 0 2px 14px;
}
.drawer-group.open .drawer-sub { display: block; }
.drawer-sub a {
  display: block; padding: 11px 14px; text-decoration: none;
  color: var(--ink-soft); font-size: 16px; font-weight: 500;
  border-left: 2px solid var(--line); margin-left: 4px;
}
.drawer-sub a:hover, .drawer-sub a.active { color: var(--ink); border-color: var(--ink); }
.drawer-sub .deep { padding-left: 30px; font-size: 15px; color: var(--muted); }
.drawer-lang { display: flex; gap: 4px; margin-top: 22px; }
.drawer-lang .lang-btn { border: 1px solid var(--line-strong); color: var(--ink-soft); }
.drawer-lang .lang-btn.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-weight: 700; font-size: 16px;
  padding: 13px 24px; border-radius: 999px; cursor: pointer;
  text-decoration: none; border: 1.5px solid transparent;
  transition: transform .15s, background .15s, box-shadow .15s, color .15s;
}
.btn:active { transform: translateY(1px); }
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: #000; box-shadow: var(--shadow-2); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); background: var(--paper-2); }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }

.textlink {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 700; text-decoration: none; color: var(--ink);
  border-bottom: 2px solid var(--line-strong); padding-bottom: 1px;
  transition: border-color .15s;
}
.textlink:hover { border-color: var(--ink); }
.textlink .arrow { transition: transform .2s; }
.textlink:hover .arrow { transform: translateX(3px); }

/* ============================================================
   PLACEHOLDER (image slots)
   ============================================================ */
.ph {
  position: relative; overflow: hidden; background: var(--paper-2);
  border: 1px solid var(--line); border-radius: var(--radius);
  display: grid; place-items: center;
  background-image: repeating-linear-gradient(
    -45deg, transparent 0 11px, rgba(27,25,22,.035) 11px 12px);
}
.ph-label {
  font-family: var(--sans); font-size: 12px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted-2); font-weight: 700;
  background: var(--paper); border: 1px solid var(--line);
  padding: 5px 11px; border-radius: 999px; text-align: center;
}
.ph-coin {
  border-radius: 50%;
  background-image: repeating-radial-gradient(
    circle at 50% 50%, transparent 0 6px, rgba(27,25,22,.04) 6px 7px);
}

/* ============================================================
   HERO VARIANTS
   ============================================================ */
.hero { position: relative; }

/* shared hero notice strip */
.notice-band { padding: clamp(28px,4vw,44px) 0; background: var(--paper); }
.notice {
  background: var(--accent-faint); border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg); padding: 16px 20px;
  display: flex; gap: 14px; align-items: flex-start;
  font-size: 15.5px; color: var(--ink-soft);
}
.notice .mark {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--ink); color: var(--paper); display: grid; place-items: center;
  font-family: var(--serif); font-weight: 700; font-size: 16px;
}

/* Variant A — Centered classic (refined) */
.heroA { position: relative; padding: clamp(56px, 8vw, 104px) 0 clamp(40px,5vw,64px); text-align: center; overflow: hidden; }
.heroA .wrap { position: relative; z-index: 1; }
/* concentric guilloché rings echoing the seal's beaded border */
.heroA-deco {
  position: absolute; left: 50%; top: clamp(18px, 4vw, 56px);
  transform: translateX(-50%);
  width: min(760px, 116vw); aspect-ratio: 1; pointer-events: none; z-index: 0;
  background: repeating-radial-gradient(circle at 50% 50%,
    transparent 0 21px, rgba(27,25,22,.055) 21px 22px);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 24%, transparent 62%);
  mask-image: radial-gradient(circle at 50% 50%, #000 24%, transparent 62%);
}
.heroA .seal-wrap { position: relative; width: max-content; margin: 0 auto 34px; }
.heroA .seal-lg { width: clamp(116px, 15vw, 172px); height: auto; display: block;
  filter: drop-shadow(0 6px 18px rgba(27,25,22,.12)); }
.heroA .overline {
  display: block; font-family: var(--sans); font-weight: 700; font-size: 13px;
  letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px;
}
.heroA h1 { font-size: clamp(34px, 5.6vw, 60px); font-weight: 500; line-height: 1.08; max-width: 16ch; margin-inline: auto; }
.heroA .estd {
  display: inline-flex; align-items: center; gap: 16px; margin: 22px 0 24px;
  font-family: var(--serif); font-style: italic; font-size: clamp(17px,2vw,21px); color: var(--muted);
}
.heroA .estd::before, .heroA .estd::after {
  content: ""; width: clamp(28px,5vw,52px); height: 1px; background: var(--line-strong);
}
.heroA .estd .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--line-strong); }
.heroA .lead { max-width: 620px; margin: 0 auto 32px; font-size: clamp(17px,2vw,20px); color: var(--ink-soft); }
.heroA .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
/* quiet quick-access metadata bar */
.hero-meta {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: clamp(14px, 3vw, 38px); margin-top: clamp(34px,5vw,52px);
  padding-top: clamp(26px,4vw,38px); border-top: 1px solid var(--line);
  max-width: 760px; margin-inline: auto;
}
.hero-meta a, .hero-meta div {
  display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink-soft);
  font-size: 15px;
}
.hero-meta a { transition: color .15s; }
.hero-meta a:hover { color: var(--ink); }
.hero-meta .mk { font-family: var(--sans); font-weight: 700; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); }
.hero-meta .vv { font-family: var(--serif); font-weight: 600; }
.hero-meta a .arrow { transition: transform .2s; }
.hero-meta a:hover .arrow { transform: translateX(3px); }

/* (Varijante B i C uklonjene — koristi se samo Klasična.) */

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: clamp(44px, 6vw, 84px) 0; }
.section.alt { background: var(--paper-2); border-block: 1px solid var(--line); }
.section.ink { background: var(--ink); color: #e9e2d6; }
.section.ink h2, .section.ink h3 { color: #fff; }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; margin-bottom: clamp(28px, 4vw, 48px); flex-wrap: wrap;
}
.section-head h2 { font-size: clamp(26px, 3.6vw, 40px); font-weight: 500; }
.section-head .eyebrow { display: block; margin-bottom: 12px; }

/* ============================================================
   CARD GRIDS
   ============================================================ */
.grid { display: grid; gap: clamp(18px, 2.4vw, 28px); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s, border-color .25s;
}
a.card { text-decoration: none; color: inherit; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--line-strong); }
.card .ph { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.card-kicker { font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.card-title { font-family: var(--serif); font-size: 21px; font-weight: 600; line-height: 1.2; }
.card-excerpt { font-size: 15.5px; color: var(--muted); margin: 0; }
.card-foot { margin-top: auto; padding-top: 8px; font-weight: 700; font-size: 14.5px; display: inline-flex; align-items: center; gap: 7px; }

/* Featured news (editorial lead) */
.news-featured {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 0;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; text-decoration: none; color: inherit;
  margin-bottom: clamp(22px,3vw,34px);
  transition: box-shadow .25s, border-color .25s, transform .25s;
}
.news-featured:hover { box-shadow: var(--shadow-2); border-color: var(--line-strong); }
.news-featured .ph { border: 0; border-radius: 0; border-right: 1px solid var(--line); min-height: 100%; aspect-ratio: auto; }
.news-featured .nf-body { padding: clamp(26px,3.4vw,52px); display: flex; flex-direction: column; gap: 14px; align-self: center; }
.news-featured .nf-tag { display: inline-flex; align-items: center; gap: 10px; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.news-featured .nf-tag .lead-pill { background: var(--ink); color: var(--paper); padding: 4px 11px; border-radius: 999px; letter-spacing: .1em; }
.news-featured h3 { font-size: clamp(25px,3vw,36px); font-weight: 600; line-height: 1.1; }
.news-featured .nf-body p { font-size: 17px; color: var(--ink-soft); margin: 0; }
.news-featured .nf-foot { margin-top: 6px; font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; gap: 8px; }
.news-featured:hover .nf-foot .arrow { transform: translateX(3px); }
.news-featured .nf-foot .arrow { transition: transform .2s; }

/* News list (editorial rows) */
.newsrow {
  display: grid; grid-template-columns: 150px 1fr; gap: 26px;
  padding: 26px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit;
  align-items: start;
}
.newsrow:first-child { border-top: 1px solid var(--line); }
.newsrow .date { font-family: var(--serif); color: var(--muted); font-size: 16px; }
.newsrow .date b { display: block; font-size: 30px; color: var(--ink); font-weight: 600; }
.newsrow h3 { font-size: 24px; font-weight: 600; margin-bottom: 8px; transition: color .15s; }
.newsrow:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.newsrow p { color: var(--muted); font-size: 16px; margin: 0; }
.newsrow .tag {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); border: 1px solid var(--line-strong);
  border-radius: 999px; padding: 3px 10px; margin-bottom: 10px;
}

/* Quick links / info tiles */
.tile {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px; text-decoration: none; color: inherit;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-1); border-color: var(--line-strong); }
.tile .num { font-family: var(--serif); font-size: 15px; color: var(--muted); font-weight: 600; }
.tile h3 { font-size: 22px; font-weight: 600; }
.tile p { font-size: 15px; color: var(--muted); margin: 0; }
.tile .go { margin-top: auto; padding-top: 12px; font-weight: 700; font-size: 14.5px; display: inline-flex; gap: 7px; align-items: center; }

/* Info strip (meeting / hours) */
.factstrip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.factstrip .fact { background: var(--card); padding: 28px; }
.factstrip .fact .k { font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.factstrip .fact .v { font-family: var(--serif); font-size: 22px; font-weight: 600; }
.factstrip .fact .v small { display: block; font-family: var(--sans); font-size: 14px; font-weight: 400; color: var(--muted); margin-top: 4px; }

/* ============================================================
   PAGE HEADER (subpages)
   ============================================================ */
.pagehead { padding: clamp(34px,5vw,64px) 0 clamp(20px,3vw,34px); border-bottom: 1px solid var(--line); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }
.breadcrumb .sep { color: var(--line-strong); }
.breadcrumb .cur { color: var(--ink); font-weight: 600; }
.pagehead h1 { font-size: clamp(30px, 5vw, 54px); font-weight: 500; }
.pagehead .deck { font-size: clamp(17px,2vw,20px); color: var(--ink-soft); max-width: 680px; margin-top: 16px; }

/* Layout with sidebar for sections */
.pagewrap { display: grid; grid-template-columns: 250px minmax(0,1fr); gap: clamp(28px,4vw,56px); padding: clamp(34px,5vw,56px) 0 clamp(56px,8vw,96px); }
.sidenav { position: sticky; top: calc(var(--header-h) + 16px); align-self: start; }
.sidenav h4 { font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; font-family: var(--sans); font-weight: 700; }
.sidenav h4 a { display: inline; padding: 0; border: 0; border-radius: 0; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; text-decoration: none; background: none; }
.sidenav h4 a:hover { color: var(--ink); text-decoration: underline; }
.sidenav h4 a.active { color: var(--ink); }
.sidenav a {
  display: block; padding: 9px 14px; text-decoration: none; color: var(--ink-soft);
  font-size: 15.5px; font-weight: 500; border-left: 2px solid var(--line); border-radius: 0 6px 6px 0;
}
.sidenav a:hover { background: var(--paper-2); color: var(--ink); }
.sidenav a.active { color: var(--ink); font-weight: 700; border-color: var(--ink); background: var(--paper-2); }
.sidenav a.deep { padding-left: 28px; font-size: 14.5px; color: var(--muted); }

/* ============================================================
   PROSE
   ============================================================ */
.prose { max-width: 720px; font-size: 18px; }
.prose > *:first-child { margin-top: 0; }
.prose h2 { font-size: 30px; font-weight: 600; margin: 1.8em 0 .5em; }
.prose h3 { font-size: 23px; font-weight: 600; margin: 1.5em 0 .4em; }
.prose p { margin: 0 0 1.1em; color: var(--ink-soft); }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.3em; color: var(--ink-soft); }
.prose li { margin-bottom: .5em; }
.prose a:not(.btn):not(.textlink) { color: var(--ink); text-underline-offset: 3px; }
.prose blockquote {
  margin: 1.4em 0; padding: 6px 0 6px 24px; border-left: 3px solid var(--ink);
  font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--ink);
}
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose figure { margin: 1.6em 0; }
.prose figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; text-align: center; }

/* Definition / committee tables */
.people { display: grid; gap: 12px; }
.person { display: flex; align-items: baseline; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.person .role { flex: none; width: 190px; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.person .name { font-family: var(--serif); font-size: 20px; font-weight: 600; }

/* Publication / catalogue grid item */
.pubcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.pubcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.pubcard .ph { aspect-ratio: 3/4; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.pubcard .pb { padding: 16px 18px 20px; }
.pubcard .pb .y { font-size: 13px; color: var(--muted); font-weight: 700; letter-spacing: .08em; }
.pubcard .pb h3 { font-size: 18px; font-weight: 600; margin-top: 4px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px,4vw,56px); }
.contact-item { padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-item .k { font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 6px; }
.contact-item .v { font-size: 19px; font-family: var(--serif); }
.contact-item a { color: var(--ink); }
.form-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.form-field label { font-weight: 700; font-size: 14.5px; }
.form-field input, .form-field textarea {
  font-family: var(--sans); font-size: 17px; padding: 13px 16px;
  border: 1.5px solid var(--line-strong); border-radius: 8px; background: var(--card); color: var(--ink);
}
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--ink); }
.mapph { aspect-ratio: 16/10; border-radius: var(--radius-lg); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--ink); color: #c9c1b3; padding: clamp(48px,6vw,76px) 0 32px; }
.footer a { color: #c9c1b3; text-decoration: none; }
.footer a:hover { color: #fff; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: clamp(28px,4vw,52px); padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand { display: flex; gap: 16px; align-items: flex-start; }
.footer-brand .seal { width: 64px; height: 64px; flex: none; filter: invert(1) brightness(1.6); opacity: .92; }
.footer-brand .fb-name { font-family: var(--serif); color: #fff; font-size: 21px; font-weight: 600; line-height: 1.15; }
.footer-brand p { font-size: 14.5px; margin-top: 12px; color: #a39a8b; max-width: 34ch; }
.footer-col h4 { color: #fff; font-family: var(--sans); font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: 15px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 26px; flex-wrap: wrap; font-size: 13.5px; color: #8a8275; }
.footer-bottom .links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-ministry { display: flex; align-items: center; gap: 14px; margin-top: 26px; }
.footer-ministry-logo { width: auto; height: 76px; max-width: 150px; object-fit: contain; background: #fff; padding: 8px 14px; border-radius: 8px; flex: none; }
.footer-ministry small { color: #8a8275; font-size: 13px; max-width: 26ch; }

/* ============================================================
   SUBPAGE COMPONENTS (deep polish)
   ============================================================ */

/* Page header — eyebrow + optional aside */
.pagehead .ph-eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px;
  font-family: var(--sans); font-weight: 700; font-size: 12.5px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.pagehead .ph-eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--line-strong); }
.pagehead .ph-grid { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end; }
.pagehead .ph-aside { display: flex; gap: 26px; padding-bottom: 4px; }
.pagehead .ph-aside .pa { text-align: right; }
.pagehead .ph-aside .pa .k { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); font-weight: 700; }
.pagehead .ph-aside .pa .v { font-family: var(--serif); font-size: 22px; font-weight: 600; }

/* Intro lead for sections */
.section-intro { font-size: clamp(17px,2vw,20px); color: var(--ink-soft); max-width: 680px; margin: 0 0 clamp(28px,4vw,40px); }

/* Featured issue (latest publication) */
.issue-featured {
  display: grid; grid-template-columns: 280px 1fr; gap: clamp(26px,4vw,52px);
  align-items: center; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(22px,3vw,36px); margin-bottom: clamp(28px,4vw,44px);
  box-shadow: var(--shadow-1);
}
.issue-featured .cover { aspect-ratio: 3/4; box-shadow: var(--shadow-2); border-radius: 3px; }
.issue-featured .if-kicker { font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.issue-featured h3 { font-size: clamp(26px,3vw,38px); font-weight: 600; margin: 10px 0 6px; }
.issue-featured .if-meta { color: var(--muted); margin: 0 0 18px; }
.issue-featured .if-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Issue / publication card with hover overlay */
.pubcard { position: relative; }
.pubcard .ph { position: relative; }
.pubcard .pc-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--ink); color: var(--paper); font-size: 11px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px;
}
.pubcard .pb .meta-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; color: var(--muted); font-size: 13.5px; }
.pubcard .pb .view { margin-top: 12px; font-weight: 700; font-size: 14px; display: inline-flex; gap: 7px; align-items: center; color: var(--ink); }
.pubcard:hover .pb .view .arrow { transform: translateX(3px); }
.pubcard .pb .view .arrow { transition: transform .2s; }

/* Timeline (history) */
.timeline { position: relative; margin: 8px 0; padding-left: 0; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding: 0 0 clamp(28px,4vw,40px) 48px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item .tl-dot {
  position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--card); border: 2px solid var(--ink); display: grid; place-items: center;
}
.tl-item .tl-dot::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.tl-item .tl-year { font-family: var(--serif); font-size: 26px; font-weight: 600; line-height: 1; margin-bottom: 8px; }
.tl-item h3 { font-size: 20px; font-weight: 600; margin-bottom: 6px; }
.tl-item p { color: var(--muted); margin: 0; font-size: 16px; }

/* Roster (committees) */
.roster { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.member {
  display: flex; align-items: center; gap: 16px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px 18px;
  transition: border-color .2s, box-shadow .2s; min-width: 0;
}
.member > span:last-child { min-width: 0; }
.member:hover { border-color: var(--line-strong); box-shadow: var(--shadow-1); }
.monogram {
  flex: none; width: 50px; height: 50px; border-radius: 50%;
  background: var(--paper-2); border: 1px solid var(--line-strong);
  display: grid; place-items: center; font-family: var(--serif); font-weight: 600;
  font-size: 19px; color: var(--ink-soft);
}
.member.lead .monogram { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.member .m-name { font-family: var(--serif); font-size: 18px; font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; }
.member .m-role { font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-top: 3px; }
.roster-group { margin-bottom: clamp(32px,4vw,48px); }
.roster-group > h2 { font-size: 26px; font-weight: 600; margin-bottom: 8px; }
.roster-group > .rg-sub { color: var(--muted); margin: 0 0 20px; font-size: 15px; }

/* Acquisitions log (prinove) */
.acq-list { border-top: 1px solid var(--line); }
.acq-row {
  display: grid; grid-template-columns: 110px 1fr auto; gap: 20px; align-items: center;
  padding: 18px 4px; border-bottom: 1px solid var(--line);
}
.acq-row .acq-date { font-family: var(--serif); color: var(--muted); font-size: 15px; }
.acq-row .acq-title { font-weight: 600; font-size: 17px; }
.acq-row .acq-title small { display: block; color: var(--muted); font-weight: 400; font-size: 14px; margin-top: 2px; }
.acq-row .acq-type { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 999px; padding: 4px 11px; white-space: nowrap; }

/* Contact cards + icons */
.contact-cards { display: grid; gap: 14px; }
.cc {
  display: flex; gap: 16px; align-items: flex-start; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px 20px;
  min-width: 0;
}
.cc > span:last-child { min-width: 0; }
.cc .cc-ic { flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--paper-2); border: 1px solid var(--line-strong); display: grid; place-items: center; }
.cc .cc-ic svg { width: 19px; height: 19px; stroke: var(--ink-soft); }
.cc .cc-k { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 4px; }
.cc .cc-v { font-family: var(--serif); font-size: 19px; font-weight: 600; overflow-wrap: anywhere; }
.cc .cc-v a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.cc .cc-v a:hover { border-color: var(--ink); }

/* Event (INCC) */
.event-meta { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; margin: clamp(24px,3vw,36px) 0; }
.event-meta .em { background: var(--card); padding: 24px; }
.event-meta .em .k { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 8px; }
.event-meta .em .v { font-family: var(--serif); font-size: 21px; font-weight: 600; }
.program { border-top: 1px solid var(--line); margin-top: 8px; }
.program .pr {
  display: grid; grid-template-columns: 120px 1fr; gap: 22px; padding: 18px 4px;
  border-bottom: 1px solid var(--line); align-items: baseline;
}
.program .pr .time { font-family: var(--serif); font-weight: 600; color: var(--ink); font-size: 17px; }
.program .pr h4 { font-size: 18px; font-weight: 600; }
.program .pr p { color: var(--muted); margin: 4px 0 0; font-size: 15px; }

/* Article (news detail) */
.article-meta { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; color: var(--muted); flex-wrap: wrap; }
.article-tag { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; border: 1px solid var(--line-strong); border-radius: 999px; padding: 4px 12px; color: var(--ink-soft); }
.related-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(16px,2vw,24px); margin-top: 20px; }

/* Membership tiers */
.tiers { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin: 8px 0 4px; }
.tier { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; display: flex; flex-direction: column; gap: 8px; }
.tier.feature { border-color: var(--ink); box-shadow: var(--shadow-2); }
.tier .t-name { font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.tier .t-price { font-family: var(--serif); font-size: 34px; font-weight: 600; }
.tier .t-price small { font-family: var(--sans); font-size: 14px; font-weight: 400; color: var(--muted); }
.tier ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.tier ul li { font-size: 15px; color: var(--ink-soft); padding-left: 22px; position: relative; }
.tier ul li::before { content: ""; position: absolute; left: 0; top: 8px; width: 9px; height: 5px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg); }

@media (max-width: 920px) {
  .issue-featured { grid-template-columns: 200px 1fr; }
  .event-meta { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: repeat(2,1fr); }
  .tiers { grid-template-columns: 1fr; }
  .pagehead .ph-grid { grid-template-columns: 1fr; }
  .pagehead .ph-aside { display: none; }
}
@media (max-width: 640px) {
  .roster { grid-template-columns: 1fr; }
  .issue-featured { grid-template-columns: 1fr; text-align: center; }
  .issue-featured .cover { max-width: 200px; margin-inline: auto; }
  .issue-featured .if-actions { justify-content: center; }
  .acq-row { grid-template-columns: 1fr auto; gap: 6px 14px; }
  .acq-row .acq-date { grid-column: 1 / -1; order: -1; }
  .program .pr { grid-template-columns: 1fr; gap: 4px; }
  .related-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   ANIMATIONS — gentle, reduced-motion aware
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .drawer.open { animation: drawerIn .32s cubic-bezier(.2,.7,.2,1); }
  .reveal { opacity: 0; transform: translateY(16px); }
  .reveal.in { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
  .reveal.d1 { transition-delay: .06s; }
  .reveal.d2 { transition-delay: .12s; }
  .reveal.d3 { transition-delay: .18s; }
  .reveal.d4 { transition-delay: .24s; }
}
@keyframes drawerIn { from { transform: translateX(12%); } to { transform: translateX(0); } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1180px) {
  .mainnav { display: none; }
  .nav-toggle { display: inline-flex; }
  .topbar-tag { display: none; }
}
@media (max-width: 920px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .pagewrap { grid-template-columns: 1fr; }
  .sidenav { position: static; display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
  .sidenav h4 { width: 100%; }
  .sidenav a { border-left: 0; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; }
  .sidenav a.deep { padding-left: 14px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .factstrip { grid-template-columns: 1fr; }
  .news-featured { grid-template-columns: 1fr; }
  .news-featured .ph { border-right: 0; border-bottom: 1px solid var(--line); aspect-ratio: 16/9; min-height: 0; }
  .hero-meta { gap: 18px 30px; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .newsrow { grid-template-columns: 1fr; gap: 8px; }
  .newsrow .date { display: flex; align-items: baseline; gap: 8px; }
  .newsrow .date b { font-size: 20px; }
  .person { flex-direction: column; gap: 4px; }
  .person .role { width: auto; }
  .footer-top { grid-template-columns: 1fr; }
  .brand-sub { display: none; }
  .masthead-inner { min-height: 76px; }
  .hero-meta { flex-direction: column; align-items: center; gap: 16px; text-align: center; }
  .hero-meta a, .hero-meta div { justify-content: center; }
  .heroA .estd::before, .heroA .estd::after { width: 22px; }
}
