/* ==========================================================================
   IPKD Kabupaten Buton — Design System
   Dipakai oleh seluruh halaman publik dan panel administrasi.
   Tema terang / gelap lewat atribut [data-theme] pada elemen <html>.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  --navy-900: #071a30;
  --navy-800: #0b2545;
  --navy-700: #10365c;
  --navy-600: #164a7a;
  --navy-500: #1e5f9c;

  --gold-500: #e9a83a;
  --gold-400: #f2bd5e;
  --gold-300: #f7d089;

  --crimson: #c8102e;
  --teal: #12a4a0;

  --bg: #f5f7fb;
  --bg-elevated: #ffffff;
  --bg-subtle: #eef2f8;
  --bg-inset: #e7edf5;
  --surface: #ffffff;
  --surface-2: #f8fafc;

  --text: #0e1b2c;
  --text-2: #46566c;
  --text-3: #74839a;

  --border: #dfe6ef;
  --border-strong: #cbd5e1;

  --brand: var(--navy-700);
  --brand-strong: var(--navy-800);
  --brand-contrast: #ffffff;
  --accent: var(--gold-500);

  --hero-1: #071a30;
  --hero-2: #10365c;

  --shadow-sm: 0 1px 2px rgba(11, 37, 69, .06), 0 1px 3px rgba(11, 37, 69, .05);
  --shadow-md: 0 6px 18px -6px rgba(11, 37, 69, .16), 0 3px 8px -4px rgba(11, 37, 69, .10);
  --shadow-lg: 0 24px 60px -24px rgba(11, 37, 69, .30), 0 8px 24px -12px rgba(11, 37, 69, .18);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --container: 1200px;
  --header-h: 68px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur: .22s;

  --font: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
}

[data-theme="dark"] {
  --bg: #070f1b;
  --bg-elevated: #0d1826;
  --bg-subtle: #0f1c2d;
  --bg-inset: #132135;
  --surface: #0d1826;
  --surface-2: #101d2f;

  --text: #e8eef7;
  --text-2: #a9b8cd;
  --text-3: #7d8ea6;

  --border: #1c2b40;
  --border-strong: #27394f;

  --brand: #1a4d80;
  --brand-strong: #164a7a;
  --brand-contrast: #ffffff;

  --hero-1: #050d18;
  --hero-2: #0b2545;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md: 0 8px 22px -10px rgba(0, 0, 0, .7);
  --shadow-lg: 0 30px 70px -30px rgba(0, 0, 0, .8);
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}

body.no-scroll { overflow: hidden; }

img, svg, iframe { max-width: 100%; }
iframe { border: 0; }

a { color: var(--brand); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--navy-500); }

h1, h2, h3, h4, h5 {
  margin: 0 0 .5em;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--text);
}

h1 { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.1rem); }
h3 { font-size: clamp(1.15rem, 1rem + .6vw, 1.4rem); }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 1rem; padding-left: 1.3rem; }

hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }

code, kbd { font-family: var(--font-mono); font-size: .9em; background: var(--bg-inset); padding: .1em .4em; border-radius: 5px; }

::selection { background: var(--gold-500); color: #16233a; }

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--gold-500) 75%, white);
  outline-offset: 2px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--gold-500);
  color: #16233a;
  padding: .7rem 1.2rem;
  font-weight: 700;
  border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 3vw, 2rem);
}

.container-narrow { max-width: 900px; }

.section { padding-block: clamp(3rem, 6vw, 5rem); }
.section-sm { padding-block: clamp(2rem, 4vw, 3rem); }
.section-alt { background: var(--bg-subtle); }
.section-head { max-width: 760px; margin-bottom: 2.4rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--navy-600);
  margin-bottom: .9rem;
}
[data-theme="dark"] .section-eyebrow { color: var(--gold-400); }
.section-eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.section-head.center .section-eyebrow::after {
  content: "";
  width: 26px; height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.section-title { margin-bottom: .7rem; }
.section-sub { color: var(--text-2); font-size: 1.03rem; margin: 0; }

.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.flex { display: flex; }
.between { justify-content: space-between; }
.center { align-items: center; }
.wrap { flex-wrap: wrap; }
.gap-sm { gap: .5rem; }
.gap { gap: 1rem; }
.gap-lg { gap: 1.5rem; }
.col { flex-direction: column; }
.grow { flex: 1 1 auto; min-width: 0; }

.muted { color: var(--text-3); }
.text-2 { color: var(--text-2); }
.text-sm { font-size: .9rem; }
.text-xs { font-size: .78rem; }
.strong { font-weight: 700; }
.nowrap { white-space: nowrap; }
.upper { text-transform: uppercase; letter-spacing: .1em; }
.center-text { text-align: center; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-top: 0; margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--surface);
  --btn-fg: var(--text);
  --btn-bd: var(--border-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .72rem 1.3rem;
  font: inherit;
  font-size: .93rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1.5px solid var(--btn-bd);
  border-radius: var(--radius-pill);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: var(--btn-fg); }
.btn:active { transform: translateY(0); }
.btn:disabled, .btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-primary { --btn-bg: var(--navy-700); --btn-fg: #fff; --btn-bd: var(--navy-700); }
.btn-primary:hover { --btn-bg: var(--navy-800); --btn-bd: var(--navy-800); }

.btn-gold { --btn-bg: var(--gold-500); --btn-fg: #17233a; --btn-bd: var(--gold-500); }
.btn-gold:hover { --btn-bg: var(--gold-400); --btn-bd: var(--gold-400); }

.btn-outline { --btn-bg: transparent; --btn-fg: var(--navy-700); --btn-bd: var(--navy-700); }
[data-theme="dark"] .btn-outline { --btn-fg: var(--gold-400); --btn-bd: color-mix(in srgb, var(--gold-400) 55%, transparent); }
.btn-outline:hover { --btn-bg: color-mix(in srgb, var(--navy-700) 8%, transparent); }

.btn-ghost { --btn-bg: transparent; --btn-bd: transparent; --btn-fg: var(--text-2); }
.btn-ghost:hover { --btn-bg: var(--bg-inset); --btn-fg: var(--text); box-shadow: none; }

.btn-danger { --btn-bg: var(--crimson); --btn-fg: #fff; --btn-bd: var(--crimson); }

.btn-sm { padding: .48rem .95rem; font-size: .84rem; }
.btn-lg { padding: .9rem 1.7rem; font-size: 1rem; }
.btn-block { display: flex; width: 100%; }

.btn-icon {
  padding: 0;
  width: 40px; height: 40px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.btn-icon:hover { color: var(--navy-700); border-color: var(--navy-700); transform: translateY(-2px); }
[data-theme="dark"] .btn-icon:hover { color: var(--gold-400); border-color: var(--gold-400); }

/* --------------------------------------------------------------------------
   5. Ticker / running text
   -------------------------------------------------------------------------- */
.ticker {
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, var(--crimson), #9d0c24);
  color: #fff;
  font-size: .8rem;
  overflow: hidden;
  min-height: 34px;
}
.ticker-label {
  flex: 0 0 auto;
  background: rgba(0, 0, 0, .28);
  padding: 0 1rem;
  height: 34px;
  display: flex;
  align-items: center;
  gap: .4rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .68rem;
}
.ticker-track {
  flex: 1 1 auto;
  overflow: hidden;
  white-space: nowrap;
  mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}
.ticker-inner {
  display: inline-block;
  padding-left: 100%;
  animation: ticker-scroll 42s linear infinite;
}
.ticker:hover .ticker-inner { animation-play-state: paused; }
@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* --------------------------------------------------------------------------
   6. Header & navigation
   -------------------------------------------------------------------------- */
.topbar {
  background: var(--navy-900);
  color: rgba(255, 255, 255, .72);
  font-size: .78rem;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 36px;
  flex-wrap: wrap;
}
.topbar-links { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
.topbar a { color: rgba(255, 255, 255, .78); }
.topbar a:hover { color: var(--gold-400); }
.topbar-item { display: inline-flex; align-items: center; gap: .4rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--navy-800) 92%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  transition: box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.site-header.scrolled { box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .8); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  min-height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; gap: .7rem; color: #fff; }
.brand:hover { color: #fff; }
.brand-mark {
  width: 42px; height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, var(--gold-500), #d1801a);
  color: #16233a;
  font-weight: 900;
  font-size: .95rem;
  letter-spacing: -.03em;
  box-shadow: 0 8px 20px -10px rgba(233, 168, 58, .9);
  flex: 0 0 auto;
}
.brand-logo {
  width: 42px; height: 42px;
  border-radius: 13px;
  object-fit: contain;
  background: #fff;
  padding: 5px;
  box-sizing: border-box;
  flex: 0 0 auto;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-eyebrow {
  font-size: .6rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .6);
  font-weight: 700;
}
.brand-title { font-size: 1.05rem; font-weight: 800; letter-spacing: -.01em; }

.nav { display: flex; align-items: center; gap: .15rem; margin-left: auto; }
.nav-link {
  position: relative;
  padding: .55rem .78rem;
  border-radius: 10px;
  font-size: .88rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .82);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.nav-link:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.nav-link.active { color: #fff; }
.nav-link.active::after {
  content: "";
  position: absolute;
  left: .78rem; right: .78rem; bottom: .28rem;
  height: 2px;
  background: var(--gold-500);
  border-radius: 2px;
}

.header-actions { display: flex; align-items: center; gap: .45rem; }
.header-actions .btn-icon {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .14);
  color: rgba(255, 255, 255, .85);
}
.header-actions .btn-icon:hover { background: rgba(255, 255, 255, .16); color: #fff; border-color: rgba(255, 255, 255, .3); }

.menu-toggle { display: none; }

/* Layar sempit (tablet & ponsel): navigasi lengkap diganti laci menu. */
@media (max-width: 1000px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
}
/* Ponsel: CTA header agar tiga tombol ikon tetap muat satu baris. */
@media (max-width: 520px) {
  .header-actions .btn-gold { display: none; }
}

/* Mobile navigation */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(4, 12, 22, .6);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .28s var(--ease), visibility .28s;
}
.mobile-nav.open { opacity: 1; visibility: visible; }
.mobile-panel {
  position: absolute;
  top: 0; right: 0;
  width: min(86vw, 340px);
  height: 100%;
  background: var(--surface);
  padding: 1.2rem;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .32s var(--ease);
  display: flex;
  flex-direction: column;
  gap: .2rem;
  box-shadow: var(--shadow-lg);
}
.mobile-nav.open .mobile-panel { transform: translateX(0); }
.mobile-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.mobile-nav-link {
  padding: .82rem .9rem;
  border-radius: 12px;
  font-weight: 650;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mobile-nav-link:hover, .mobile-nav-link.active { background: var(--bg-inset); color: var(--brand); }
.mobile-divider { height: 1px; background: var(--border); margin: .8rem 0; }

/* Search overlay */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(5, 14, 26, .78);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 12vh 1rem 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s var(--ease), visibility .25s;
}
.search-overlay.open { opacity: 1; visibility: visible; }
.search-card {
  width: min(640px, 100%);
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: translateY(-14px) scale(.985);
  transition: transform .28s var(--ease);
}
.search-overlay.open .search-card { transform: none; }
.search-card form { display: flex; align-items: center; gap: .7rem; padding: 1rem 1.1rem; border-bottom: 1px solid var(--border); }
.search-card input {
  flex: 1;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 1.05rem;
  color: var(--text);
  outline: none;
}
.search-hint { padding: .8rem 1.1rem; font-size: .8rem; color: var(--text-3); display: flex; gap: .5rem; flex-wrap: wrap; }
kbd.k {
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: .05rem .4rem;
  font-size: .72rem;
  background: var(--bg-subtle);
}
.search-suggestions { padding: .4rem 1.1rem 1rem; display: flex; flex-wrap: wrap; gap: .45rem; }

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 460px at 78% -10%, rgba(233, 168, 58, .22), transparent 60%),
    radial-gradient(760px 420px at 8% 110%, rgba(30, 95, 156, .38), transparent 62%),
    linear-gradient(160deg, var(--hero-1), var(--hero-2));
  color: #fff;
  padding-block: clamp(3.2rem, 7vw, 5.4rem);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(1000px 500px at 50% 40%, #000, transparent 78%);
  pointer-events: none;
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .4rem .9rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  font-size: .74rem;
  font-weight: 750;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--gold-300);
  margin-bottom: 1.3rem;
}
.hero-eyebrow .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold-500);
  box-shadow: 0 0 0 4px rgba(233, 168, 58, .25);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(233, 168, 58, .28); }
  50% { box-shadow: 0 0 0 8px rgba(233, 168, 58, 0); }
}
.hero-title { color: #fff; margin-bottom: 1rem; max-width: 15ch; }
.hero-title em { font-style: normal; color: var(--gold-400); }
.hero-lead { color: rgba(255, 255, 255, .82); font-size: 1.06rem; max-width: 56ch; margin-bottom: 1.7rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero .btn-outline { --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, .45); }
.hero .btn-outline:hover { --btn-bg: rgba(255, 255, 255, .12); }

.hero-panel {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 30px 70px -40px rgba(0, 0, 0, .9);
}
.hero-panel-title {
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .62);
  font-weight: 800;
  margin-bottom: 1rem;
}
.hero-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.hero-stat {
  background: rgba(4, 14, 26, .42);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius);
  padding: .95rem 1rem;
}
.hero-stat-value { font-size: 1.65rem; font-weight: 850; letter-spacing: -.03em; color: var(--gold-400); line-height: 1.1; }
.hero-stat-label { font-size: .74rem; color: rgba(255, 255, 255, .68); margin-top: .18rem; }
.hero-progress { margin-top: 1.1rem; font-size: .78rem; color: rgba(255, 255, 255, .7); }
.hero-progress-track { height: 7px; background: rgba(255, 255, 255, .16); border-radius: 999px; overflow: hidden; margin-top: .5rem; }
.hero-progress-fill { height: 100%; background: linear-gradient(90deg, var(--gold-500), #ffd98a); border-radius: 999px; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-title { max-width: none; }
}

/* --------------------------------------------------------------------------
   8. Cards, stats, dimension tiles
   -------------------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.card-pad { padding: clamp(1.1rem, 2.2vw, 1.6rem); }
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--navy-600) 30%, var(--border)); }
.card-title { font-size: 1.02rem; margin-bottom: .4rem; }
.card-text { color: var(--text-2); font-size: .93rem; margin: 0; }
.card-link { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; font-size: .87rem; margin-top: .9rem; }

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
  display: flex;
  gap: .95rem;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
}
.stat-icon {
  width: 44px; height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--navy-600) 12%, transparent);
  color: var(--navy-600);
  flex: 0 0 auto;
}
[data-theme="dark"] .stat-icon { background: rgba(242, 189, 94, .14); color: var(--gold-400); }
.stat-icon.gold { background: color-mix(in srgb, var(--gold-500) 20%, transparent); color: #a9701a; }
[data-theme="dark"] .stat-icon.gold { color: var(--gold-400); }
.stat-icon.red { background: color-mix(in srgb, var(--crimson) 14%, transparent); color: var(--crimson); }
.stat-icon.teal { background: color-mix(in srgb, var(--teal) 16%, transparent); color: var(--teal); }
.stat-value { font-size: 1.6rem; font-weight: 850; letter-spacing: -.03em; line-height: 1.1; }
.stat-label { font-size: .8rem; color: var(--text-3); font-weight: 600; margin-top: .1rem; }

.dim-card { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: .55rem; }
.dim-card::after {
  content: "";
  position: absolute;
  right: -34px; top: -34px;
  width: 110px; height: 110px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--gold-500) 14%, transparent);
  transition: transform .4s var(--ease);
}
.dim-card:hover::after { transform: scale(1.35); }
.dim-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 30px;
  padding: 0 .6rem;
  border-radius: var(--radius-pill);
  background: var(--navy-700);
  color: #fff;
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .08em;
}
.dim-name { font-size: 1rem; font-weight: 780; position: relative; }
.dim-summary { color: var(--text-2); font-size: .89rem; margin: 0; position: relative; }
.dim-foot {
  margin-top: auto;
  padding-top: .8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .78rem;
  color: var(--text-3);
  font-weight: 650;
  position: relative;
}
.dim-count-badge {
  background: color-mix(in srgb, var(--gold-500) 18%, transparent);
  color: #8a5c11;
  padding: .18rem .6rem;
  border-radius: var(--radius-pill);
  font-weight: 750;
}
[data-theme="dark"] .dim-count-badge { color: var(--gold-300); }

/* --------------------------------------------------------------------------
   9. Badges, chips, tags
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .2rem .6rem;
  border-radius: var(--radius-pill);
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .02em;
  background: var(--bg-inset);
  color: var(--text-2);
  border: 1px solid transparent;
}
.badge-gold { background: color-mix(in srgb, var(--gold-500) 20%, transparent); color: #8a5c11; border-color: color-mix(in srgb, var(--gold-500) 40%, transparent); }
.badge-navy { background: color-mix(in srgb, var(--navy-600) 14%, transparent); color: var(--navy-600); border-color: color-mix(in srgb, var(--navy-600) 26%, transparent); }
.badge-red { background: color-mix(in srgb, var(--crimson) 12%, transparent); color: var(--crimson); border-color: color-mix(in srgb, var(--crimson) 28%, transparent); }
.badge-teal { background: color-mix(in srgb, var(--teal) 14%, transparent); color: #0b7c79; border-color: color-mix(in srgb, var(--teal) 30%, transparent); }
.badge-green { background: color-mix(in srgb, #16a34a 14%, transparent); color: #15803d; border-color: color-mix(in srgb, #16a34a 30%, transparent); }
[data-theme="dark"] .badge-green { color: #4ade80; }
[data-theme="dark"] .badge-navy { color: #8fc0f0; }

.chip-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .5rem .95rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  font-size: .85rem;
  font-weight: 650;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.chip:hover { border-color: var(--navy-600); color: var(--navy-600); transform: translateY(-2px); }
.chip.active {
  background: var(--navy-700);
  border-color: var(--navy-700);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.chip-count {
  background: color-mix(in srgb, currentColor 14%, transparent);
  padding: .04rem .45rem;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 800;
}
.chip.active .chip-count { background: rgba(255, 255, 255, .22); }

/* --------------------------------------------------------------------------
   10. Filters & forms
   -------------------------------------------------------------------------- */
.filters {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  display: flex;
  gap: .7rem;
  flex-wrap: wrap;
  align-items: center;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: calc(var(--header-h) + 8px);
  z-index: 30;
}
.search-field { position: relative; flex: 1 1 260px; min-width: 0; }
.search-field svg { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.search-field input { padding-left: 2.6rem; }

.input, .textarea, .select {
  width: 100%;
  font: inherit;
  font-size: .93rem;
  color: var(--text);
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: .72rem .9rem;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--navy-600);
  background: var(--surface);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--navy-600) 16%, transparent);
}
.textarea { min-height: 130px; resize: vertical; }
.select {
  appearance: none;
  padding-right: 2.4rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2374839a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .95rem center;
}
.select.auto { width: auto; min-width: 165px; }

.field { display: flex; flex-direction: column; gap: .38rem; }
.label { font-size: .84rem; font-weight: 700; color: var(--text-2); }
.label .req { color: var(--crimson); }
.hint { font-size: .76rem; color: var(--text-3); }
.error-text { font-size: .79rem; color: var(--crimson); font-weight: 600; }
.input.invalid, .textarea.invalid, .select.invalid { border-color: var(--crimson); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 700px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }

.check { display: flex; align-items: flex-start; gap: .6rem; font-size: .88rem; color: var(--text-2); }
.check input { width: 18px; height: 18px; margin-top: .18rem; accent-color: var(--navy-600); }

.alert {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  padding: .9rem 1.05rem;
  border-radius: var(--radius);
  font-size: .9rem;
  border: 1px solid transparent;
  margin-bottom: 1.2rem;
}
.alert svg { flex: 0 0 auto; margin-top: .12rem; }
.alert-success { background: color-mix(in srgb, #16a34a 12%, var(--surface)); border-color: color-mix(in srgb, #16a34a 34%, transparent); color: #15803d; }
[data-theme="dark"] .alert-success { color: #4ade80; }
.alert-error { background: color-mix(in srgb, var(--crimson) 10%, var(--surface)); border-color: color-mix(in srgb, var(--crimson) 34%, transparent); color: var(--crimson); }
.alert-info { background: color-mix(in srgb, var(--navy-600) 10%, var(--surface)); border-color: color-mix(in srgb, var(--navy-600) 30%, transparent); color: var(--navy-600); }
[data-theme="dark"] .alert-info { color: #8fc0f0; }

/* --------------------------------------------------------------------------
   11. Document list & accordion
   -------------------------------------------------------------------------- */
.year-group { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-sm); }
.year-group + .year-group { margin-top: 1rem; }
.year-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: 1rem 1.15rem;
  background: var(--surface);
  border: 0;
  border-left: 4px solid var(--navy-700);
  font: inherit;
  font-weight: 780;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: background-color var(--dur) var(--ease);
}
.year-head:hover { background: var(--surface-2); }
.year-head .chev { margin-left: auto; color: var(--text-3); transition: transform .28s var(--ease); }
.year-group.open .year-head .chev { transform: rotate(180deg); }
.year-title { font-size: 1.02rem; }
.year-body { display: none; border-top: 1px solid var(--border); background: var(--surface-2); }
.year-group.open .year-body { display: block; animation: fadeDown .3s var(--ease); }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.doc-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.15rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  transition: background-color var(--dur) var(--ease);
}
.doc-item:last-child { border-bottom: 0; }
.doc-item:hover { background: var(--surface-2); }
.doc-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  font-size: .66rem;
  font-weight: 850;
  letter-spacing: .04em;
  background: color-mix(in srgb, var(--crimson) 12%, transparent);
  color: var(--crimson);
  border: 1px solid color-mix(in srgb, var(--crimson) 26%, transparent);
}
.doc-icon.sheet { background: color-mix(in srgb, #16a34a 12%, transparent); color: #15803d; border-color: color-mix(in srgb, #16a34a 28%, transparent); }
.doc-icon.image { background: color-mix(in srgb, var(--navy-600) 12%, transparent); color: var(--navy-600); border-color: color-mix(in srgb, var(--navy-600) 26%, transparent); }
.doc-icon.doc { background: color-mix(in srgb, var(--navy-500) 12%, transparent); color: var(--navy-500); border-color: color-mix(in srgb, var(--navy-500) 26%, transparent); }
.doc-icon.file { background: var(--bg-inset); color: var(--text-2); border-color: var(--border); }
[data-theme="dark"] .doc-icon.sheet { color: #4ade80; }
[data-theme="dark"] .doc-icon.image { color: #7fb6ea; }

.doc-body { min-width: 0; flex: 1 1 auto; }
.doc-title {
  font-size: .97rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 .22rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.doc-title a { color: inherit; }
.doc-title a:hover { color: var(--navy-600); }
[data-theme="dark"] .doc-title a:hover { color: var(--gold-400); }
.doc-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .38rem .7rem;
  font-size: .78rem;
  color: var(--text-3);
}
.doc-meta span { display: inline-flex; align-items: center; gap: .3rem; }
.doc-actions { display: flex; gap: .5rem; flex: 0 0 auto; }

@media (max-width: 720px) {
  .doc-item { flex-wrap: wrap; }
  .doc-actions { width: 100%; }
  .doc-actions .btn { flex: 1; }
}

/* Document cards (grid variant) */
.doc-card {
  display: flex;
  gap: .9rem;
  padding: 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.doc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--navy-600) 30%, var(--border)); }

/* Accordion (FAQ) */
.accordion { display: flex; flex-direction: column; gap: .7rem; }
.acc-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.acc-item.open { border-color: color-mix(in srgb, var(--navy-600) 40%, var(--border)); box-shadow: var(--shadow-sm); }
.acc-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: 1rem 1.15rem;
  background: transparent;
  border: 0;
  font: inherit;
  font-weight: 720;
  font-size: .97rem;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.acc-num {
  width: 30px; height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--bg-inset);
  color: var(--navy-600);
  font-size: .76rem;
  font-weight: 850;
  flex: 0 0 auto;
}
[data-theme="dark"] .acc-num { color: var(--gold-400); }
.acc-icon { margin-left: auto; color: var(--text-3); transition: transform .28s var(--ease); flex: 0 0 auto; }
.acc-item.open .acc-icon { transform: rotate(45deg); color: var(--navy-600); }
.acc-body { display: none; padding: 0 1.15rem 1.15rem 3.3rem; color: var(--text-2); font-size: .93rem; }
.acc-item.open .acc-body { display: block; animation: fadeDown .26s var(--ease); }

/* --------------------------------------------------------------------------
   12. Breadcrumb, page header, tables
   -------------------------------------------------------------------------- */
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; font-size: .8rem; color: var(--text-3); margin-bottom: 1rem; }
.breadcrumb a { color: var(--text-3); }
.breadcrumb a:hover { color: var(--navy-600); }
.breadcrumb .sep { opacity: .5; }
.breadcrumb .current { color: var(--text); font-weight: 650; }

.page-head {
  background:
    radial-gradient(900px 300px at 85% -30%, rgba(233, 168, 58, .18), transparent 62%),
    linear-gradient(150deg, var(--hero-1), var(--hero-2));
  color: #fff;
  padding-block: clamp(2.2rem, 5vw, 3.4rem);
  position: relative;
  overflow: hidden;
}
.page-head::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(760px 320px at 40% 50%, #000, transparent 80%);
  pointer-events: none;
}
.page-head-inner { position: relative; }
.page-head h1 { color: #fff; margin-bottom: .5rem; }
.page-head p { color: rgba(255, 255, 255, .8); margin: 0; max-width: 68ch; }
.page-head .breadcrumb, .page-head .breadcrumb a { color: rgba(255, 255, 255, .68); }
.page-head .breadcrumb .current { color: var(--gold-300); }
.page-head-meta { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.1rem; }

.table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: auto;
  box-shadow: var(--shadow-sm);
}
.table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 620px; }
.table th {
  text-align: left;
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 800;
  padding: .85rem 1rem;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.table td { padding: .9rem 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; color: var(--text-2); }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--surface-2); }
.table td strong { color: var(--text); font-weight: 700; }

/* --------------------------------------------------------------------------
   13. Charts (pure CSS bars)
   -------------------------------------------------------------------------- */
.bar-list { display: flex; flex-direction: column; gap: 1rem; }
.bar-row { display: grid; grid-template-columns: minmax(140px, 34%) 1fr auto; gap: .9rem; align-items: center; }
.bar-label { font-size: .86rem; font-weight: 650; color: var(--text-2); line-height: 1.35; }
.bar-track { height: 12px; background: var(--bg-inset); border-radius: 999px; overflow: hidden; }
.bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--navy-600), var(--navy-500));
  transition: width .9s var(--ease);
  min-width: 4px;
}
.bar-fill.gold { background: linear-gradient(90deg, #d1801a, var(--gold-400)); }
.bar-fill.teal { background: linear-gradient(90deg, #0e8b88, #2fd3ce); }
.bar-value { font-size: .84rem; font-weight: 800; color: var(--text); min-width: 2.6rem; text-align: right; font-variant-numeric: tabular-nums; }

@media (max-width: 620px) {
  .bar-row { grid-template-columns: 1fr auto; }
  .bar-label { grid-column: 1 / -1; }
}

.hbar { display: flex; align-items: flex-end; gap: .55rem; height: 190px; padding-top: .5rem; }
.hbar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .45rem; height: 100%; justify-content: flex-end; }
.hbar-bar {
  width: 100%;
  max-width: 54px;
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, var(--navy-500), var(--navy-700));
  min-height: 5px;
  transition: height .9s var(--ease);
  position: relative;
}
.hbar-bar.gold { background: linear-gradient(180deg, var(--gold-400), #c2790f); }
.hbar-val { font-size: .74rem; font-weight: 800; color: var(--text); }
.hbar-key { font-size: .76rem; color: var(--text-3); font-weight: 650; }

.legend { display: flex; flex-wrap: wrap; gap: .7rem 1.1rem; font-size: .8rem; color: var(--text-2); }
.legend-item { display: inline-flex; align-items: center; gap: .4rem; }
.legend-dot { width: 11px; height: 11px; border-radius: 4px; background: var(--navy-600); }
.legend-dot.gold { background: var(--gold-500); }
.legend-dot.teal { background: var(--teal); }
.legend-dot.muted { background: var(--border-strong); }

/* --------------------------------------------------------------------------
   14. Modal (document preview)
   -------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(4, 12, 22, .72);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(.6rem, 3vw, 2rem);
  animation: fadeIn .2s var(--ease);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  width: min(1000px, 100%);
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: pop .26s var(--ease);
}
@keyframes pop { from { transform: translateY(16px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.modal-title { font-size: .98rem; font-weight: 750; margin: 0; }
.modal-sub { font-size: .78rem; color: var(--text-3); margin: .1rem 0 0; }
.modal-body { flex: 1 1 auto; overflow: auto; background: var(--bg-inset); }
.modal-body iframe { width: 100%; height: min(74vh, 780px); display: block; background: #fff; }
.modal-body img { display: block; margin: 0 auto; max-height: min(74vh, 780px); object-fit: contain; padding: 1rem; }
.modal-foot { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: flex-end; padding: .9rem 1.15rem; border-top: 1px solid var(--border); }

/* --------------------------------------------------------------------------
   15. Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--navy-900); color: rgba(255, 255, 255, .68); margin-top: auto; }
.footer-cta {
  background:
    radial-gradient(700px 240px at 90% -40%, rgba(233, 168, 58, .3), transparent 60%),
    linear-gradient(120deg, var(--navy-700), var(--navy-800));
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  padding-block: clamp(2rem, 4vw, 2.8rem);
}
.footer-cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.3rem; }
.footer-cta h3 { color: #fff; margin: 0 0 .35rem; }
.footer-cta p { color: rgba(255, 255, 255, .78); margin: 0; }

.footer-main { padding-block: clamp(2.4rem, 5vw, 3.6rem); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.footer-brand { display: flex; align-items: center; gap: .7rem; margin-bottom: .9rem; color: #fff; }
.footer-title {
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 850;
  color: var(--gold-400);
  margin: 0 0 .9rem;
}
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .55rem; }
.footer-links a { color: rgba(255, 255, 255, .66); font-size: .9rem; }
.footer-links a:hover { color: var(--gold-400); padding-left: 3px; }
.footer-contact { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .7rem; font-size: .88rem; }
.footer-contact li { display: flex; gap: .6rem; align-items: flex-start; }
.footer-contact svg { flex: 0 0 auto; margin-top: .2rem; color: var(--gold-400); }

.social-row { display: flex; gap: .5rem; margin-top: 1.1rem; }
.social-btn {
  width: 36px; height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .78);
  font-size: .7rem;
  font-weight: 800;
  transition: all var(--dur) var(--ease);
}
.social-btn:hover { background: var(--gold-500); color: #16233a; border-color: var(--gold-500); transform: translateY(-3px); }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding-block: 1.1rem; font-size: .8rem; }
.footer-bottom-inner { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; justify-content: space-between; }

@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }

/* --------------------------------------------------------------------------
   16. Empty states & misc
   -------------------------------------------------------------------------- */
.empty {
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4rem) 1rem;
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  color: var(--text-3);
}
.empty svg { opacity: .5; margin-bottom: .7rem; }
.empty h3 { color: var(--text-2); font-size: 1.05rem; margin-bottom: .3rem; }
.empty p { margin: 0; font-size: .9rem; }

.skeleton {
  background: linear-gradient(90deg, var(--bg-inset) 25%, var(--surface-2) 50%, var(--bg-inset) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.3s infinite;
  border-radius: 8px;
}
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

.divider { height: 1px; background: var(--border); margin: 1.4rem 0; }

.note {
  border-left: 3px solid var(--gold-500);
  background: color-mix(in srgb, var(--gold-500) 8%, var(--surface));
  padding: .85rem 1rem;
  border-radius: 0 12px 12px 0;
  font-size: .87rem;
  color: var(--text-2);
}

.prose { color: var(--text-2); font-size: .97rem; line-height: 1.78; }
.prose > :first-child { margin-top: 0; }
.prose a { color: var(--navy-600); font-weight: 650; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
[data-theme="dark"] .prose a { color: var(--gold-400); }
.prose strong { color: var(--text); }
.prose h2, .prose h3 { margin-top: 1.6rem; color: var(--text); }

.page-shell { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 1 auto; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* Print */
@media print {
  .site-header, .topbar, .ticker, .site-footer, .filters, .btn, .mobile-nav, .search-overlay { display: none !important; }
  body { background: #fff; color: #000; }
  .card, .doc-item, .year-group { box-shadow: none; border-color: #ccc; }
}
