/* ==========================================================================
   DESIGN TOKENS — from township design system v1.0
   ========================================================================== */
:root {
  /* Primary: institutional blue — anchored at #0052b9 ————————————— */
  --blue-50:  #e6eef8;
  --blue-100: #c2d6f2;
  --blue-200: #93b6e8;
  --blue-300: #5c90da;
  --blue-400: #2e6ecb;
  --blue-500: #0052b9;   /* #0052b9 — primary / links */
  --blue-600: #0047a3;   /* hover state */
  --blue-700: #003d8f;   /* header bg, active buttons */
  --blue-800: #00307a;   /* footer, CTA bg */
  --blue-900: #002060;   /* topbar, deepest bg */

  /* Neutral: warm grays ——————————————————————————————————————————— */
  --neutral-0:   oklch(1     0     0);
  --neutral-50:  oklch(0.985 0.003 80);
  --neutral-100: oklch(0.965 0.005 80);
  --neutral-200: oklch(0.925 0.007 80);
  --neutral-300: oklch(0.86  0.008 80);
  --neutral-400: oklch(0.72  0.009 80);
  --neutral-500: oklch(0.58  0.009 80);
  --neutral-600: oklch(0.46  0.008 80);
  --neutral-700: oklch(0.34  0.008 80);
  --neutral-800: oklch(0.23  0.008 80);
  --neutral-900: oklch(0.14  0.007 80);

  /* Accent: heraldic gold ————————————————————————————————————————— */
  --gold-100: oklch(0.95 0.04 80);
  --gold-300: oklch(0.85 0.10 78);
  --gold-500: oklch(0.74 0.13 75);
  --gold-700: oklch(0.55 0.10 70);

  /* Semantic ——————————————————————————————————————————————————————— */
  --success:    oklch(0.52 0.11 150);
  --success-bg: oklch(0.96 0.03 150);
  --warning:    oklch(0.70 0.13 75);
  --warning-bg: oklch(0.96 0.04 80);
  --danger:     oklch(0.52 0.17 25);
  --danger-bg:  oklch(0.96 0.03 25);

  /* Surfaces ———————————————————————————————————————————————————————*/
  --bg:            var(--neutral-50);
  --bg-elevated:   var(--neutral-0);
  --bg-sunken:     var(--neutral-100);

  /* Text ———————————————————————————————————————————————————————————*/
  --text:          var(--neutral-900);
  --text-muted:    var(--neutral-600);
  --text-subtle:   var(--neutral-500);
  --text-onbrand:  var(--neutral-50);
  --text-link:     var(--blue-600);

  /* Borders ————————————————————————————————————————————————————————*/
  --border:        var(--neutral-200);
  --border-strong: var(--neutral-300);
  --border-brand:  var(--blue-200);

  /* Typography ————————————————————————————————————————————————————*/
  --font-sans:  "Public Sans", ui-sans-serif, system-ui, sans-serif;
  --font-serif: "Source Serif 4", ui-serif, Georgia, serif;
  --font-mono:  "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;

  /* Spacing (4px base) ————————————————————————————————————————————*/
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px; --sp-9: 96px;

  /* Radius ————————————————————————————————————————————————————————*/
  --r-xs: 2px; --r-sm: 4px; --r-md: 6px;
  --r-lg: 10px; --r-xl: 16px; --r-pill: 999px;

  /* Shadows ———————————————————————————————————————————————————————*/
  --shadow-xs: 0 1px 0 0 rgba(0, 32, 96, .04);
  --shadow-sm: 0 1px 2px 0 rgba(0, 32, 96, .07), 0 1px 1px 0 rgba(0, 32, 96, .04);
  --shadow-md: 0 4px 8px -2px rgba(0, 32, 96, .10), 0 2px 4px -2px rgba(0, 32, 96, .06);
  --shadow-lg: 0 16px 32px -12px rgba(0, 32, 96, .20), 0 4px 8px -4px rgba(0, 32, 96, .10);

  --trans: 120ms ease;
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
}
img, svg { display: block; max-width: 100%; }
a { color: var(--text-link); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

/* ==========================================================================
   LAYOUT HELPER
   ========================================================================== */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--sp-6); }

/* Accessibility */
.skip-link {
  position: absolute; top: -100px; left: 1rem;
  background: var(--gold-700); color: var(--neutral-0);
  padding: .5rem 1rem; border-radius: 0 0 var(--r-md) var(--r-md);
  font-weight: 700; font-size: .85rem; z-index: 999;
  transition: top .2s;
}
.skip-link:focus { top: 0; }

/* ==========================================================================
   TOPBAR
   ========================================================================== */
.topbar {
  background: var(--blue-900);
  color: oklch(0.94 0.028 250 / .7);
  font-family: var(--font-sans);
  font-size: 11.5px;
  letter-spacing: .04em;
  padding: 6px 0;
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; }
.topbar a { color: var(--gold-300); transition: color var(--trans); }
.topbar a:hover { color: var(--gold-500); text-decoration: none; }

/* ==========================================================================
   HEADER — single bar: brand left, nav right
   ========================================================================== */
.header-brand-bar {
  background: var(--blue-800);
  padding: var(--sp-3) 0;
  position: sticky; top: 0; z-index: 200;
  box-shadow: var(--shadow-md);
  border-bottom: 3px solid var(--gold-700);
}
.header-brand-inner {
  display: flex; align-items: center; gap: var(--sp-5);
}
.brand { display: flex; align-items: center; gap: var(--sp-4); flex: none; }
.brand-crest {
  width: 48px; height: 48px; flex: none;
  color: var(--gold-300);
}
.brand-text .l1 {
  font-family: var(--font-sans);
  font-size: 19px; font-weight: 600; line-height: 1.15;
  color: var(--neutral-50);
}
.brand-text .l2 {
  font-family: var(--font-sans);
  font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--gold-300); margin-top: 3px;
}

/* Nav — right-aligned, on dark background */
#main-nav { display: flex; gap: 0; margin-left: auto; }
#main-nav a {
  display: inline-block;
  padding: 10px 14px;
  font-size: 13.5px; font-weight: 500;
  color: rgba(255,255,255,.8);
  border-bottom: 2px solid transparent;
  transition: color var(--trans), border-color var(--trans);
  white-space: nowrap;
}
#main-nav a:hover { color: #fff; text-decoration: none; }
#main-nav a.active { color: #fff; border-bottom-color: var(--gold-500); }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  padding: var(--sp-3); margin-left: auto;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: #fff; margin: 5px 0;
  border-radius: 2px; transition: var(--trans);
}

/* ==========================================================================
   PAGE LAYOUT — sticky left sidemenu + right content
   ========================================================================== */
.page-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  align-items: start;
  max-width: 1240px;
  margin: 0 auto;
  padding: var(--sp-5) var(--sp-6) var(--sp-6);
  gap: var(--sp-5);
}

/* Left sidemenu */
.page-sidemenu {
  position: sticky;
  top: calc(72px + var(--sp-5)); /* topbar + combined header height + layout top padding */
  align-self: start;
  max-height: calc(100vh - 72px - var(--sp-5));
  overflow-y: auto;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.page-sidemenu::-webkit-scrollbar { width: 4px; }
.page-sidemenu::-webkit-scrollbar-track { background: transparent; }
.page-sidemenu::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* Sidemenu header */
.sidemenu-header {
  background: var(--gold-500);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 12px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 11px var(--sp-4);
  display: flex; align-items: center; gap: 8px;
  position: sticky; top: 0; z-index: 1;
}

/* Sidemenu items */
.sidemenu-item { border-bottom: 1px solid var(--border); }
.sidemenu-item:last-child { border-bottom: none; }

.sidemenu-btn {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px var(--sp-4);
  font-family: var(--font-sans); font-size: 13.5px; font-weight: 400;
  color: var(--text);
  background: none; border: none; cursor: pointer; text-align: left;
  transition: background var(--trans), color var(--trans);
  gap: var(--sp-3);
  line-height: 1.4;
}
.sidemenu-btn:hover { background: var(--blue-50); color: var(--blue-700); }
.sidemenu-btn.active { color: var(--blue-700); font-weight: 600; background: var(--blue-50); }
.sidemenu-btn--label { cursor: default; font-weight: 600; }
.sidemenu-btn--label:hover { background: none; color: var(--text); }

.sidemenu-arrow {
  width: 16px; height: 16px; flex: none;
  color: var(--text-subtle);
  transition: transform var(--trans);
}
.sidemenu-item.open .sidemenu-arrow { transform: rotate(90deg); }
.sidemenu-item.open .sidemenu-btn { color: var(--blue-700); }

/* Sub-items */
.sidemenu-sub {
  display: none;
  background: var(--bg-sunken);
  border-top: 1px solid var(--border);
}
.sidemenu-item.open .sidemenu-sub { display: block; }
.sidemenu-sub a {
  display: flex; align-items: center; gap: 8px;
  padding: 8px var(--sp-4) 8px 36px;
  font-size: 13px; color: var(--text-muted);
  transition: background var(--trans), color var(--trans);
  border-bottom: 1px solid var(--border);
}
.sidemenu-sub a:last-child { border-bottom: none; }
.sidemenu-sub a::before {
  content: ''; width: 4px; height: 4px; border-radius: 50%;
  background: var(--text-subtle); flex: none;
}
.sidemenu-sub a:hover { background: var(--blue-50); color: var(--blue-700); text-decoration: none; }
.sidemenu-sub a:hover::before { background: var(--blue-700); }
.sidemenu-sub-label {
  display: block;
  padding: 8px var(--sp-4) 4px 36px;
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-subtle);
}

/* Right content column */
.page-content { min-width: 0; }

/* ==========================================================================
   HERO — full-width carousel, no text
   ========================================================================== */
.hero {
  position: relative; overflow: hidden;
  height: 460px;
  background: var(--blue-900);
  /* match page-layout inner width: 1240px container minus 32px padding on each side */
  max-width: calc(1240px - 2 * var(--sp-6));
  margin: var(--sp-4) auto 0;
  border-radius: var(--r-xl);
}

/* Romanian tricolor left bar */
.hero-bar {
  position: absolute; left: 0; top: 0; bottom: 0; width: 5px; z-index: 6;
  background: linear-gradient(to bottom, #002B7F 33%, #FCD116 33% 66%, #CE1126 66%);
}

/* Carousel */
.carousel { position: absolute; inset: 0; }
.carousel-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0;
  transition: opacity .9s ease;
  will-change: opacity;
}
.carousel-slide.active { opacity: 1; }
.carousel-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(0, 32, 96, .38) 0%,
    rgba(0, 32, 96, .58) 100%);
  pointer-events: none;
}

/* Carousel dots */
.carousel-dots {
  position: absolute; bottom: 76px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 5;
}
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: oklch(1 0 0 / .35); border: none; cursor: pointer; padding: 0;
  transition: background var(--trans), transform var(--trans);
}
.dot.active { background: var(--gold-500); transform: scale(1.35); }

/* Stats strip */
.hero-stats {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 5;
  background: rgba(0, 48, 122, .7);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.hero-stats .wrap { display: flex; }
.stat-item {
  flex: 1; padding: var(--sp-4) var(--sp-5);
  border-right: 1px solid oklch(1 0 0 / .1);
  display: flex; flex-direction: column;
}
.stat-item:last-child { border-right: none; }
.stat-value {
  font-family: var(--font-serif);
  font-size: 26px; font-weight: 500; line-height: 1;
  color: var(--neutral-0);
}
.stat-label {
  font-family: var(--font-sans);
  font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
  color: oklch(0.94 0.028 250 / .6); margin-top: 4px;
}

/* ==========================================================================
   SECTION SHARED
   ========================================================================== */
.section-eyebrow {
  font-family: var(--font-sans);
  font-size: 11px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--blue-600);
  display: flex; align-items: center; gap: 8px;
  margin-bottom: var(--sp-3);
}
.section-eyebrow::before {
  content: ''; width: 24px; height: 1px; background: var(--blue-600);
}
.section-title {
  font-family: var(--font-serif);
  font-weight: 500; font-size: 34px; line-height: 1.1;
  letter-spacing: -.01em; color: var(--text);
  margin-bottom: var(--sp-2);
}
.section-subtitle {
  font-size: 17px; line-height: 1.6;
  color: var(--text-muted); max-width: 64ch;
}

/* ==========================================================================
   QUICK ACCESS — service tiles
   ========================================================================== */
.quick-access { padding: var(--sp-7) 0; background: var(--bg-elevated); }
.qa-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: var(--sp-6); flex-wrap: wrap; gap: var(--sp-4);
}
.view-all {
  font-size: 13px; font-weight: 500; color: var(--blue-700);
  display: flex; align-items: center; gap: 4px;
}
.view-all:hover { color: var(--blue-600); text-decoration: none; }

.qa-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--sp-4);
}

/* Tile component (design system) */
.qa-card {
  display: flex; flex-direction: column; gap: var(--sp-3);
  padding: var(--sp-5);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: border-color var(--trans), transform var(--trans), box-shadow var(--trans);
  cursor: pointer;
  text-decoration: none;
}
.qa-card:hover {
  border-color: var(--blue-300);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}
.qa-icon {
  width: 44px; height: 44px; flex: none;
  border-radius: var(--r-md);
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue-700); font-size: 1.15rem;
}
.qa-card h3 {
  font-size: 15px; font-weight: 600; color: var(--text); line-height: 1.3;
}
.qa-card p  { font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.qa-arrow {
  margin-top: auto; font-size: 12px; color: var(--text-subtle);
  display: flex; align-items: center; gap: 4px;
  font-family: var(--font-sans); letter-spacing: .04em;
}
.qa-card:hover .qa-arrow { color: var(--blue-700); }

/* ==========================================================================
   CONTENT SECTION — news + sidebar
   ========================================================================== */
.content-section { padding: var(--sp-7) 0; background: var(--bg); }
.content-grid {
  display: grid; grid-template-columns: 1fr;
  gap: var(--sp-7); align-items: start;
}

/* News header */
.news-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: var(--sp-5);
}

/* News item (design system pattern) */
.news-list { display: flex; flex-direction: column; }
.news-card {
  display: grid; grid-template-columns: 100px 1fr;
  gap: var(--sp-5);
  padding: var(--sp-5) 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: background var(--trans);
}
.news-card:last-child { border-bottom: none; }
.news-card:hover { text-decoration: none; }

.news-date {
  font-family: var(--font-sans);
  font-size: 12px; color: var(--text-muted);
  letter-spacing: .04em;
}
.news-date .day {
  display: block;
  font-family: var(--font-serif);
  font-size: 36px; line-height: 1;
  color: var(--blue-700); font-weight: 500;
  margin-bottom: 3px;
}
.news-date .month { text-transform: uppercase; font-size: 11px; letter-spacing: .1em; }

.news-body {}
.news-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 9px;
  border-radius: var(--r-pill);
  font-size: 11.5px; font-weight: 500;
  background: var(--blue-50); color: var(--blue-700);
  border: 1px solid var(--blue-200);
  margin-bottom: var(--sp-2);
}
.news-tag.warning { background: var(--warning-bg); color: var(--gold-700); border-color: oklch(0.70 0.13 75 / .3); }
.news-tag.success { background: var(--success-bg); color: var(--success); border-color: oklch(0.52 0.11 150 / .25); }

.news-card h3 {
  font-size: 16px; font-weight: 600; color: var(--text);
  margin-bottom: 6px; line-height: 1.4;
}
.news-card:hover h3 { color: var(--blue-700); }
.news-card p  { font-size: 14px; color: var(--text-muted); line-height: 1.55; }
.news-meta {
  margin-top: 8px; font-size: 12px; color: var(--text-subtle);
  display: flex; gap: var(--sp-4);
  font-family: var(--font-sans); letter-spacing: .03em;
}

/* ==========================================================================
   SIDEBAR
   ========================================================================== */
.sidebar { display: flex; flex-direction: column; gap: var(--sp-4); }

.sidebar-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
}
.sidebar-card-head {
  background: var(--blue-800); color: var(--text-onbrand);
  padding: 10px var(--sp-5);
  font-family: var(--font-sans);
  font-size: 10.5px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
  display: flex; align-items: center; gap: 8px;
}
.sidebar-list li { border-bottom: 1px solid var(--border); }
.sidebar-list li:last-child { border-bottom: none; }
.sidebar-list a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px var(--sp-5); font-size: 14px; font-weight: 400;
  color: var(--text);
  transition: background var(--trans), color var(--trans);
}
.sidebar-list a:hover { background: var(--bg-sunken); color: var(--blue-700); text-decoration: none; }
.sidebar-list .arrow { color: var(--text-subtle); font-size: 12px; }

.cta-card {
  background: linear-gradient(135deg, var(--blue-800) 0%, var(--blue-900) 100%);
  border-radius: var(--r-lg);
  padding: var(--sp-6) var(--sp-5);
}
.cta-card h3 { font-family: var(--font-serif); font-weight: 500; font-size: 20px; color: var(--neutral-0); margin-bottom: 8px; line-height: 1.25; }
.cta-card p  { color: oklch(0.94 0.028 250 / .65); font-size: 13px; margin-bottom: var(--sp-5); }

/* ==========================================================================
   BUTTONS (design system)
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-weight: 500; font-size: 14px;
  letter-spacing: .005em; line-height: 1;
  cursor: pointer;
  transition: background var(--trans), border-color var(--trans), color var(--trans), transform var(--trans);
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary   { background: var(--blue-700); color: var(--neutral-50); }
.btn-primary:hover { background: var(--blue-800); }
.btn-secondary { background: var(--neutral-0); color: var(--blue-700); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--blue-700); background: var(--neutral-50); }
.btn-ghost     { background: transparent; color: var(--blue-700); }
.btn-ghost:hover { background: var(--blue-50); }
.btn-accent    { background: var(--gold-700); color: var(--neutral-50); }
.btn-accent:hover { background: oklch(0.48 0.10 70); }
.btn-outline-light { background: transparent; color: var(--neutral-50); border: 1px solid oklch(1 0 0 / .25); }
.btn-outline-light:hover { background: oklch(1 0 0 / .08); }
.btn-lg { padding: 13px 22px; font-size: 15px; }
.btn-sm { padding: 6px 12px; font-size: 13px; }

/* ==========================================================================
   HIGHLIGHTS CAROUSEL
   ========================================================================== */
.hc-section {
  position: relative;
  background: var(--bg-sunken);
  border-radius: var(--r-xl);
  overflow: hidden;
  margin-bottom: var(--sp-6);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.hc-track { position: relative; }

.hc-slide {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-8);
  align-items: center;
  padding: var(--sp-7) 64px;
  animation: hcFadeIn .45s ease;
}
.hc-slide.active { display: grid; }

@keyframes hcFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Text side */
.hc-text .section-title { margin-bottom: var(--sp-3); }
.hc-text p {
  color: var(--text-muted); font-size: 15.5px;
  line-height: 1.65; margin-bottom: var(--sp-5);
  max-width: 52ch;
}

/* Image side — emblem variant */
.hc-image {
  border-radius: var(--r-xl); overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  aspect-ratio: 4/3;
  background: var(--neutral-100);
  position: relative;
}
.hc-image img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: var(--sp-4);
  background: var(--neutral-100);
}

/* Image side — photo variant (slides 2, 3) */
.hc-image--photo {
  background-size: cover;
  background-position: center;
}
.hc-image--photo::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,32,96,.18) 0%, rgba(0,32,96,.04) 100%);
}

/* Badge (reused from old map-badge) */
.map-badge {
  position: absolute; top: var(--sp-4); left: var(--sp-4);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 6px 12px;
  font-family: var(--font-sans); font-size: 11px;
  font-weight: 600; color: var(--blue-700);
  box-shadow: var(--shadow-sm);
  display: flex; align-items: center; gap: 6px;
  z-index: 2;
}

/* Arrow buttons */
.hc-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--blue-700);
  box-shadow: var(--shadow-sm);
  transition: background var(--trans), box-shadow var(--trans);
  z-index: 10;
}
.hc-arrow:hover { background: var(--blue-50); box-shadow: var(--shadow-md); }
.hc-arrow--prev { left: var(--sp-3); }
.hc-arrow--next { right: var(--sp-3); }

/* Dots */
.hc-dots {
  display: flex; gap: 6px;
  justify-content: center;
  padding-bottom: var(--sp-5);
}
.hc-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--neutral-300); border: none; cursor: pointer; padding: 0;
  transition: background var(--trans), transform var(--trans);
}
.hc-dot.active { background: var(--blue-600); transform: scale(1.4); }

.btn-group { display: flex; gap: var(--sp-3); flex-wrap: wrap; }

/* ==========================================================================
   CONTACT BANNER
   ========================================================================== */
.contact-banner {
  background: linear-gradient(135deg, var(--blue-800) 0%, var(--blue-900) 100%);
  padding: var(--sp-8) 0;
}
.contact-banner .wrap {
  display: flex; align-items: center;
  justify-content: space-between; gap: var(--sp-6); flex-wrap: wrap;
}
.contact-banner h2 {
  font-family: var(--font-serif); font-weight: 500; font-size: 28px;
  color: var(--neutral-0); margin-bottom: 6px; line-height: 1.2;
}
.contact-banner p  { color: oklch(0.94 0.028 250 / .65); font-size: 14px; }
.contact-info { display: flex; gap: var(--sp-6); flex-wrap: wrap; }
.contact-item { display: flex; align-items: center; gap: var(--sp-3); }
.contact-item .icon {
  width: 38px; height: 38px;
  background: oklch(1 0 0 / .08);
  border: 1px solid oklch(1 0 0 / .12);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0;
}
.contact-item strong { display: block; color: var(--neutral-0); font-size: 13px; font-weight: 600; }
.contact-item span   { color: oklch(0.94 0.028 250 / .55); font-size: 12px; font-family: var(--font-sans); letter-spacing: .03em; }

/* ==========================================================================
   FOOTER (design system mock-footer)
   ========================================================================== */
footer {
  background: var(--blue-900);
  padding: var(--sp-7) 0 var(--sp-5);
}
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: var(--sp-6);
  padding-bottom: var(--sp-6);
  border-bottom: 1px solid oklch(1 0 0 / .1);
  margin-bottom: var(--sp-5);
}
.footer-brand .l1 {
  font-family: var(--font-serif); font-size: 20px; font-weight: 500;
  color: var(--neutral-50); line-height: 1.25; margin-bottom: 4px;
}
.footer-brand .l2 {
  font-family: var(--font-sans); font-size: 10px; letter-spacing: .05em;
  text-transform: uppercase; color: var(--gold-300); margin-bottom: var(--sp-4);
}
.footer-brand p { color: oklch(0.94 0.028 250 / .45); font-size: 13px; line-height: 1.6; }

.footer-col h4 {
  font-family: var(--font-sans); font-size: 10.5px;
  letter-spacing: .05em; text-transform: uppercase;
  color: var(--gold-300); margin-bottom: var(--sp-3); font-weight: 600;
}
.footer-col ul li { padding: 4px 0; }
.footer-col ul a,
.footer-col ul span {
  color: oklch(0.94 0.028 250 / .55); font-size: 13px;
}
.footer-col ul a {
  transition: color var(--trans);
}
.footer-col ul a:hover { color: var(--neutral-50); text-decoration: none; }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: var(--sp-3);
  font-family: var(--font-sans); font-size: 11px;
  color: oklch(0.94 0.028 250 / .35); letter-spacing: .04em;
}
.footer-bottom a { color: oklch(0.94 0.028 250 / .5); transition: color var(--trans); }
.footer-bottom a:hover { color: var(--neutral-50); text-decoration: none; }
.footer-bottom-links { display: flex; gap: var(--sp-5); }

/* ==========================================================================
   PASSWORDLESS AUTHENTICATION
   ========================================================================== */
.auth-page { min-height: 100vh; background: var(--bg); }
.auth-main {
  min-height: calc(100vh - 104px);
  display: grid;
  place-items: start center;
  padding: clamp(48px, 8vw, 96px) var(--sp-5);
  background:
    linear-gradient(oklch(0.97 0.018 250 / .92), oklch(0.99 0.008 250 / .98)),
    radial-gradient(circle at 20% 10%, var(--blue-100), transparent 45%);
}
.auth-card {
  width: min(100%, 480px);
  padding: clamp(28px, 5vw, 44px);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-lg);
}
.auth-card__eyebrow {
  margin-bottom: var(--sp-3);
  color: var(--blue-700);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.auth-card h1 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-serif);
  font-size: clamp(32px, 6vw, 42px);
  font-weight: 600;
  line-height: 1.1;
}
.auth-card__intro {
  margin: var(--sp-3) 0 var(--sp-5);
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
}
.auth-field { display: grid; gap: var(--sp-2); }
.auth-field label { color: var(--text); font-size: 13px; font-weight: 700; }
.auth-field input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  background: var(--bg-elevated);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  transition: border-color var(--trans), box-shadow var(--trans);
}
.auth-field input:focus {
  outline: none;
  border-color: var(--blue-400);
  box-shadow: 0 0 0 3px oklch(0.52 0.19 250 / .12);
}
.auth-code { font-family: var(--font-mono) !important; font-size: 24px !important; letter-spacing: .34em; text-align: center; }
.auth-submit { width: 100%; justify-content: center; margin-top: var(--sp-4); }
.auth-card__note { margin: var(--sp-5) 0 0; color: var(--text-subtle); font-size: 12px; line-height: 1.55; text-align: center; }
.auth-message { min-height: 0; margin: 0 0 var(--sp-4); font-size: 13px; line-height: 1.5; }
.auth-message:empty { display: none; }
.auth-message--error { color: var(--danger); }
.auth-message--success { color: var(--success); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .page-layout { grid-template-columns: 220px 1fr; }
}
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .map-inner   { grid-template-columns: 1fr; }
  .page-layout { grid-template-columns: 200px 1fr; }
}
body.nav-open { overflow: hidden; }

.nav-close-row { display: none; }

/* Mobile nav — Primărie expandable item */
.nav-item { display: contents; }
.nav-sub { display: none; }

.nav-top-row { display: contents; }
.nav-top-label { display: none; }
#main-nav .nav-page-open { display: none; }
.nav-sub-toggle { display: none; }

@media (max-width: 768px) {
  .page-layout { grid-template-columns: 1fr; }
  .page-sidemenu { display: none; }
  .hero { margin: var(--sp-3) var(--sp-4) 0; max-width: calc(100% - 2 * var(--sp-4)); border-radius: var(--r-lg); height: 340px; }
  .content-grid { grid-template-columns: 1fr; }
  .hero-stats .wrap { flex-wrap: wrap; }
  .stat-item { flex: 1 1 45%; }
  #main-nav {
    display: none; position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    flex-direction: column;
    background: var(--blue-800);
    overflow-y: auto;
    padding-top: 0;
    box-shadow: var(--shadow-md);
    z-index: 250;
  }
  #main-nav.open { display: flex; }
  #main-nav > a { padding: 12px var(--sp-5); border-bottom: 1px solid rgba(255,255,255,.07); }
  #main-nav > a:hover { background: rgba(255,255,255,.06); }
  .nav-toggle { display: block; }
  .header-search { display: none; }
  .header-nav-inner { position: relative; }
  .contact-banner .wrap { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-5); }

  /* Highlights carousel — stack vertically, image on top */
  .hc-slide {
    grid-template-columns: 1fr;
    padding: var(--sp-4);
    gap: var(--sp-4);
  }
  .hc-text { order: 2; }
  .hc-image { order: 1; aspect-ratio: 16/9; }
  .hc-text .section-title { font-size: 24px; }
  /* Centre arrows on the image: padding-top + half of (image-width * 9/16)
     image-width = 100vw - page-padding(64px) - slide-padding(32px) = 100vw - 96px */
  .hc-arrow {
    top: calc(var(--sp-4) + (100vw - 96px) * 9 / 32);
    transform: translateY(-50%);
  }
  .hc-arrow--prev { left: var(--sp-3); }
  .hc-arrow--next { right: var(--sp-3); }
  .hc-dots { padding-bottom: var(--sp-3); }

  /* Nav close row */
  .nav-close-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px var(--sp-5);
    border-bottom: 1px solid rgba(255,255,255,.15);
    flex-shrink: 0;
  }
  .nav-close-row span {
    font-size: 13px; font-weight: 600; letter-spacing: .04em;
    text-transform: uppercase; color: var(--gold-300);
  }
  .nav-close-btn {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    color: #fff; cursor: pointer;
    transition: background var(--trans);
  }
  .nav-close-btn:hover { background: rgba(255,255,255,.2); }

  /* Top-level page link with a separate expand toggle */
  .nav-item { display: flex; flex-direction: column; }
  .nav-top-row {
    display: grid; grid-template-columns: 1fr 48px 48px;
    align-items: stretch;
    border-bottom: 1px solid rgba(255,255,255,.07);
  }
  #main-nav .nav-top-link { display: none; }
  .nav-top-label {
    display: flex; align-items: center;
    padding: 12px var(--sp-5);
    color: rgba(255,255,255,.8);
    font-size: 13.5px; font-weight: 500;
  }
  #main-nav .nav-page-open,
  .nav-sub-toggle {
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; user-select: none;
    color: rgba(255,255,255,.8);
    background: none; border: none; border-left: 1px solid rgba(255,255,255,.12);
    width: 48px; padding: 0;
  }
  .nav-page-open:hover,
  .nav-sub-toggle:hover { background: rgba(255,255,255,.08); }
  .nav-page-open:focus-visible,
  .nav-sub-toggle:focus-visible { outline: 2px solid var(--gold-500); outline-offset: -2px; }
  .nav-sub-toggle .nav-sub-chevron {
    flex-shrink: 0; transition: transform var(--trans);
    color: rgba(255,255,255,.5);
  }
  .nav-item.open .nav-sub-chevron { transform: rotate(90deg); }
  .nav-item.open .nav-top-row { background: rgba(255,255,255,.06); }

  /* Sub-menu panel */
  .nav-sub {
    display: none;
    flex-direction: column;
    background: var(--blue-900);
    border-bottom: 1px solid rgba(255,255,255,.07);
  }
  .nav-item.open .nav-sub { display: flex; }

  /* Section headers inside sub-menu */
  .nav-sub-section {
    padding: 8px var(--sp-5) 4px calc(var(--sp-5) + 12px);
    font-size: 10px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
    color: var(--gold-300); border-top: 1px solid rgba(255,255,255,.05);
  }
  .nav-sub-section:first-child { border-top: none; }

  /* Leaf links inside sub-menu */
  .nav-sub a {
    padding: 9px var(--sp-5) 9px calc(var(--sp-5) + 12px);
    font-size: 13px; color: rgba(255,255,255,.65);
    border-bottom: 1px solid rgba(255,255,255,.04);
    display: flex; align-items: center; gap: 8px;
  }
  .nav-sub a::before {
    content: ''; width: 3px; height: 3px; border-radius: 50%;
    background: rgba(255,255,255,.3); flex: none;
  }
  .nav-sub a:last-child { border-bottom: none; }
  .nav-sub a:hover { color: #fff; background: rgba(255,255,255,.06); text-decoration: none; }
  .nav-sub a:hover::before { background: var(--gold-300); }

  /* Section-only items (no children) */
  .nav-sub-section--leaf {
    padding: 10px var(--sp-5) 10px calc(var(--sp-5) + 12px);
    font-size: 13px; font-weight: 400; letter-spacing: normal; text-transform: none;
    color: rgba(255,255,255,.65);
    border-top: 1px solid rgba(255,255,255,.05);
  }
  span.nav-sub-section--leaf { cursor: default; }
}
@media (max-width: 480px) {
  .footer-grid   { grid-template-columns: 1fr; }
  .qa-grid       { grid-template-columns: 1fr 1fr; }
  .hero          { height: 420px; }
  .btn-group     { flex-direction: column; }
  .wrap          { padding: 0 var(--sp-4); }
}

/* ==========================================================================
   SECTION BLOCKS — shared container for all section types
   ========================================================================== */
.sec-block {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  margin-bottom: var(--sp-5);
}
.sec-block--nopad {
  padding: var(--sp-6) var(--sp-6) 0;
  overflow: hidden;
}
.sec-block-inner { /* used inside nopad blocks for header padding */ }

.sec-label { margin-bottom: var(--sp-4); }

.sec-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 11px;
  border-radius: var(--r-pill);
  font-size: 10.5px; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase;
}
.sec-chip--table   { background: var(--blue-50);  color: var(--blue-700);  border: 1px solid var(--blue-200); }
.sec-chip--gallery { background: oklch(0.95 0.04 280); color: oklch(0.42 0.13 280); border: 1px solid oklch(0.84 0.09 280); }
.sec-chip--carousel{ background: oklch(0.96 0.04 48);  color: oklch(0.48 0.15 48);  border: 1px solid oklch(0.87 0.10 48); }
.sec-chip--ann     { background: var(--success-bg); color: var(--success); border: 1px solid oklch(0.52 0.11 150 / .25); }
.sec-chip--richtext{ background: oklch(0.96 0.03 14);  color: oklch(0.48 0.16 18);  border: 1px solid oklch(0.87 0.08 14); }
.sec-chip--docs    { background: var(--neutral-100); color: var(--neutral-700); border: 1px solid var(--border-strong); }

.sec-hd { margin-bottom: var(--sp-5); }
.sec-title {
  font-family: var(--font-serif);
  font-size: 24px; font-weight: 500; line-height: 1.2;
  color: var(--text); margin-bottom: var(--sp-2);
}
.sec-sub { font-size: 14.5px; color: var(--text-muted); line-height: 1.6; }

.sec-footer {
  margin-top: var(--sp-5);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border);
  display: flex; gap: var(--sp-3); flex-wrap: wrap; align-items: center;
}

/* ==========================================================================
   TABLE SECTION
   ========================================================================== */
.tbl-wrap {
  overflow-x: auto;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
}
.data-table-block {
  display: grid;
  gap: var(--sp-3);
}
.data-table-tools {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-3);
  flex-wrap: wrap;
}
.data-table-search {
  display: grid;
  gap: 6px;
  min-width: min(100%, 320px);
}
.data-table-search span {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}
.data-table-search input {
  width: 100%;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 0 12px;
  color: var(--text);
  background: #fff;
  font: inherit;
}
.data-table-search input:focus {
  outline: 2px solid var(--blue-200);
  border-color: var(--blue-500);
}
.data-table-count {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}
.data-table-empty {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}
.data-table-more-wrap {
  display: flex;
  justify-content: center;
}
.data-table-more {
  min-width: 180px;
}
.ds-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.ds-table th {
  background: var(--blue-800);
  color: var(--neutral-50);
  font-size: 11px; font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase;
  padding: 10px 14px; text-align: left; white-space: nowrap;
}
.ds-table th:first-child { border-radius: var(--r-sm) 0 0 0; }
.ds-table th:last-child  { border-radius: 0 var(--r-sm) 0 0; }
.ds-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}
.ds-table tr:last-child td { border-bottom: none; }
.ds-table tr:nth-child(even) td { background: var(--neutral-50); }
.ds-table tr:hover td { background: var(--blue-50); transition: background var(--trans); }
.ds-table .num { text-align: right; font-family: var(--font-mono); font-size: 13px; }
.tbl-badge {
  display: inline-block; padding: 2px 8px;
  border-radius: var(--r-pill); font-size: 11px; font-weight: 500;
}
.tbl-badge--blue  { background: var(--blue-50);  color: var(--blue-700); }
.tbl-badge--green { background: var(--success-bg); color: var(--success); }
.tbl-badge--gray  { background: var(--neutral-100); color: var(--neutral-600); }

/* ==========================================================================
   GALLERY SECTION
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 160px;
  gap: 8px;
  margin-bottom: var(--sp-4);
}
.gallery-item {
  position: relative; overflow: hidden;
  border-radius: var(--r-md); display: block;
}
.gallery-item--wide { grid-column: span 2; }
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 400ms ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,20,60,.72) 0%, transparent 55%);
  display: flex; align-items: flex-end; padding: 10px 12px;
  opacity: 0; transition: opacity 240ms ease;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span { color: #fff; font-size: 12px; font-weight: 500; }

/* ==========================================================================
   IMAGE CAROUSEL SECTION
   ========================================================================== */
.img-car { position: relative; }
.img-car-slide {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-7);
  align-items: center;
  padding: var(--sp-6) var(--sp-8);
  background: var(--bg-sunken);
  border-top: 1px solid var(--border);
  animation: hcFadeIn .4s ease;
}
.img-car-slide.active { display: grid; }

/* ==========================================================================
   ANNOUNCEMENT CAROUSEL SECTION
   ========================================================================== */
.ann-car-wrap {
  display: flex; align-items: center; gap: var(--sp-3);
}
.ann-car-track {
  display: flex; gap: var(--sp-4);
  overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
  padding: 4px 2px 8px; flex: 1;
}
.ann-car-track::-webkit-scrollbar { display: none; }
.ann-card {
  flex: 0 0 260px;
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: var(--sp-5);
  scroll-snap-align: start;
  display: flex; flex-direction: column; gap: var(--sp-2);
  transition: border-color var(--trans), box-shadow var(--trans);
}
.ann-card:hover { border-color: var(--blue-300); box-shadow: var(--shadow-sm); }
.ann-card-date { font-size: 11.5px; color: var(--text-subtle); letter-spacing: .04em; }
.ann-card-title { font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.35; }
.ann-card-body  { font-size: 13px; color: var(--text-muted); line-height: 1.5; flex: 1; }
.ann-card-link  {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12.5px; font-weight: 500; color: var(--blue-600);
  text-decoration: none; margin-top: var(--sp-1);
}
.ann-card-link:hover { color: var(--blue-700); text-decoration: underline; }
.ann-car-btn {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg-elevated); border: 1px solid var(--border);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: var(--blue-700); box-shadow: var(--shadow-sm);
  transition: background var(--trans), box-shadow var(--trans);
}
.ann-car-btn:hover { background: var(--blue-50); box-shadow: var(--shadow-md); }

/* ==========================================================================
   RICH TEXT SECTION
   ========================================================================== */
.richtext { font-size: 15.5px; line-height: 1.72; color: var(--text); }
.richtext p   { margin-bottom: var(--sp-4); }
.richtext h3  {
  font-family: var(--font-serif); font-size: 19px; font-weight: 500;
  color: var(--text); margin: var(--sp-5) 0 var(--sp-3);
  padding-bottom: var(--sp-2); border-bottom: 2px solid var(--blue-100);
}
.richtext ul, .richtext ol {
  margin: 0 0 var(--sp-4) var(--sp-6);
  display: flex; flex-direction: column; gap: 7px;
}
.richtext ul { list-style: disc; }
.richtext ol { list-style: decimal; }
.richtext li  { font-size: 15px; color: var(--text); }
.richtext blockquote {
  border-left: 4px solid var(--blue-400);
  background: var(--blue-50);
  padding: var(--sp-4) var(--sp-5);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  margin: var(--sp-5) 0; font-style: italic; color: var(--text-muted);
}
.richtext a { color: var(--text-link); text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   DOCUMENT DOWNLOAD SECTION
   ========================================================================== */
.doc-filters {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: var(--sp-4);
}
.doc-filter {
  padding: 5px 14px; border-radius: var(--r-pill);
  border: 1px solid var(--border); background: var(--bg-elevated);
  font-size: 13px; font-weight: 500; color: var(--text-muted);
  cursor: pointer; transition: all var(--trans);
}
.doc-filter:hover { border-color: var(--blue-300); color: var(--blue-700); background: var(--blue-50); }
.doc-filter.active { background: var(--blue-700); color: #fff; border-color: var(--blue-700); }
.doc-list {
  display: flex; flex-direction: column;
  border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden;
}
.doc-item {
  display: flex; align-items: center; gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--border);
  transition: background var(--trans);
}
.doc-item:last-child { border-bottom: none; }
.doc-item:hover { background: var(--bg-sunken); }
.doc-icon {
  flex-shrink: 0; width: 40px; height: 46px;
  border-radius: var(--r-sm);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; font-size: 8px; font-weight: 700; letter-spacing: .04em;
  font-family: var(--font-mono);
}
.doc-icon--pdf { background: oklch(0.96 0.03 20); color: oklch(0.50 0.16 22); border: 1px solid oklch(0.89 0.06 20); }
.doc-icon--doc { background: oklch(0.95 0.03 250); color: oklch(0.42 0.12 250); border: 1px solid oklch(0.85 0.08 250); }
.doc-icon--xls { background: oklch(0.96 0.04 148); color: oklch(0.42 0.12 148); border: 1px solid oklch(0.87 0.08 148); }
.doc-info { flex: 1; min-width: 0; }
.doc-name { font-size: 14px; font-weight: 500; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-meta { font-size: 11.5px; color: var(--text-subtle); margin-top: 2px; }
.doc-dl-btn { flex-shrink: 0; }

/* ==========================================================================
   TABLE ACTION BUTTON
   ========================================================================== */
.tbl-action-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border-radius: var(--r-md);
  border: 1px solid var(--blue-300);
  background: var(--blue-50);
  color: var(--blue-700);
  font-size: 12.5px; font-weight: 500;
  cursor: pointer;
  transition: background var(--trans), border-color var(--trans), box-shadow var(--trans);
  white-space: nowrap;
}
.tbl-action-btn:hover {
  background: var(--blue-100);
  border-color: var(--blue-500);
  box-shadow: var(--shadow-xs);
}
.tbl-action-btn:focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: 2px;
}

/* ==========================================================================
   DOCUMENT MODAL
   ========================================================================== */
.doc-modal-overlay {
  position: fixed; inset: 0; z-index: 970;
  background: rgba(0, 20, 60, .48);
  backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center;
  padding: var(--sp-5);
  opacity: 0; pointer-events: none;
  transition: opacity 220ms ease;
}
.doc-modal-overlay.open {
  opacity: 1; pointer-events: auto;
}
.doc-modal {
  background: var(--bg-elevated);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  width: 100%; max-width: 560px;
  max-height: 85vh;
  display: flex; flex-direction: column;
  transform: translateY(16px) scale(.97);
  transition: transform 240ms cubic-bezier(.32,.72,0,1);
  overflow: hidden;
}
.doc-modal-overlay.open .doc-modal {
  transform: translateY(0) scale(1);
}

.doc-modal-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-5) var(--sp-6);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.doc-modal-title-wrap {
  display: flex; align-items: flex-start; gap: var(--sp-3);
}
.doc-modal-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  background: var(--blue-50); border: 1px solid var(--blue-100);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue-600);
  margin-top: 2px;
}
.doc-modal-eyebrow {
  font-size: 10.5px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-subtle);
  margin-bottom: 3px;
}
.doc-modal-title {
  font-family: var(--font-serif);
  font-size: 18px; font-weight: 500; line-height: 1.3;
  color: var(--text);
}
.doc-modal-close {
  flex-shrink: 0; width: 32px; height: 32px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--bg-sunken);
  color: var(--text-muted);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background var(--trans), color var(--trans);
}
.doc-modal-close:hover { background: var(--neutral-200); color: var(--text); }

.doc-modal-body {
  flex: 1; overflow-y: auto;
  padding: var(--sp-3) 0;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.doc-modal-body .doc-item {
  padding: var(--sp-3) var(--sp-6);
  border-bottom: 1px solid var(--border);
}
.doc-modal-body .doc-item:last-child { border-bottom: none; }
.doc-modal-body .doc-item:hover { background: var(--bg-sunken); }

.doc-modal-footer {
  padding: var(--sp-4) var(--sp-6);
  border-top: 1px solid var(--border);
  display: flex; justify-content: flex-end;
  flex-shrink: 0;
  background: var(--bg-sunken);
}

/* ==========================================================================
   ACCESSIBILITY FAB + PANEL
   ========================================================================== */

/* Floating action button */
.a11y-fab {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 900;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--blue-600);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 52, 143, .35);
  transition: background var(--trans), transform var(--trans), box-shadow var(--trans);
}
.a11y-fab:hover {
  background: var(--blue-700);
  transform: scale(1.07);
  box-shadow: 0 6px 24px rgba(0, 52, 143, .42);
}
.a11y-fab:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 3px;
}

/* Overlay backdrop */
.a11y-overlay {
  position: fixed;
  inset: 0;
  z-index: 950;
  background: rgba(0, 20, 60, .42);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms ease;
}
.a11y-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* Panel */
.a11y-panel {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 960;
  width: 320px;
  max-width: 90vw;
  background: var(--neutral-50);
  box-shadow: 4px 0 40px rgba(0, 20, 60, .22);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 300ms cubic-bezier(.32,.72,0,1);
  overflow: hidden;
}
.a11y-panel.open {
  transform: translateX(0);
}

/* Panel header */
.a11y-header {
  background: var(--blue-600);
  color: #fff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  flex-shrink: 0;
}
.a11y-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .01em;
}
.a11y-header-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.a11y-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.15);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--trans);
}
.a11y-icon-btn:hover { background: rgba(255,255,255,.28); }
.a11y-close-btn { border-color: rgba(255,255,255,.4); }

/* Scrollable body */
.a11y-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.a11y-body::-webkit-scrollbar { width: 8px; }
.a11y-body::-webkit-scrollbar-thumb {
  background: var(--neutral-300);
  border-radius: var(--r-pill);
}

/* Language row */
.a11y-lang-row {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.a11y-lang-btn {
  width: 100%;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background var(--trans);
}
.a11y-lang-btn:hover { background: var(--blue-50); }

/* Section label */
.a11y-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2px;
}
.a11y-info-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-subtle);
  display: flex;
  align-items: center;
  padding: 2px;
  border-radius: var(--r-sm);
  transition: color var(--trans);
}
.a11y-info-btn:hover { color: var(--blue-600); }

/* Profiles grid */
.a11y-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* Profile card */
.a11y-profile-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 14px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color var(--trans), box-shadow var(--trans);
}
.a11y-profile-card:hover {
  border-color: var(--blue-300);
  box-shadow: var(--shadow-sm);
}
.a11y-profile-card.active {
  border-color: var(--blue-500);
  background: var(--blue-50);
}

.a11y-profile-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 4px;
}
.a11y-profile-icon {
  color: var(--blue-500);
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.a11y-profile-card.active .a11y-profile-icon {
  color: var(--blue-700);
}

.a11y-profile-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}
.a11y-profile-desc {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Toggle switch */
.a11y-toggle {
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
}
.a11y-toggle-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.a11y-toggle-track {
  display: block;
  width: 34px;
  height: 19px;
  border-radius: var(--r-pill);
  background: var(--neutral-300);
  position: relative;
  transition: background 200ms ease;
}
.a11y-toggle-input:checked + .a11y-toggle-track {
  background: var(--blue-500);
}
.a11y-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
  transition: transform 200ms ease;
}
.a11y-toggle-input:checked + .a11y-toggle-track .a11y-toggle-thumb {
  transform: translateX(15px);
}
.a11y-toggle-input:focus-visible + .a11y-toggle-track {
  outline: 2px solid var(--blue-500);
  outline-offset: 2px;
}

.a11y-tools {
  display: grid;
  gap: 8px;
}
.a11y-tool-btn {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  text-align: left;
}
.a11y-tool-btn:hover,
.a11y-tool-btn.active {
  border-color: var(--blue-400);
  background: var(--blue-50);
  color: var(--blue-700);
}
.a11y-note {
  margin: 0;
  color: var(--text-muted);
  font-size: 11.5px;
  line-height: 1.5;
}

/* Accessibility body overrides */
body.a11y-no-anim *,
body.a11y-no-anim *::before,
body.a11y-no-anim *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
  scroll-behavior: auto !important;
}
body.a11y-high-contrast > :not(.a11y-fab):not(.a11y-overlay):not(.a11y-panel) {
  filter: contrast(1.5) saturate(1.2);
}
body.a11y-reduced-color > :not(.a11y-fab):not(.a11y-overlay):not(.a11y-panel) {
  filter: saturate(.72);
}
body.a11y-high-contrast.a11y-reduced-color > :not(.a11y-fab):not(.a11y-overlay):not(.a11y-panel) {
  filter: contrast(1.5) saturate(.72);
}
body.a11y-focus .hc-section,
body.a11y-focus footer,
body.a11y-focus .contact-banner {
  opacity: .35;
  pointer-events: none;
}
body.a11y-readable {
  font-size: 18px;
  line-height: 1.8;
  letter-spacing: .02em;
}
body.a11y-large-text {
  font-size: 20px;
}
body.a11y-large-text > :not(.a11y-fab):not(.a11y-overlay):not(.a11y-panel):not(script) {
  zoom: 1.18;
}
body.a11y-highlight-links a {
  outline: 2px solid var(--gold-500);
  outline-offset: 2px;
  text-decoration: underline !important;
}
body.a11y-motor a,
body.a11y-motor button {
  min-height: 48px;
  min-width: 48px;
}
