/* ==========================================================================
   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; gap: var(--sp-3); min-width: 0; }
.topbar-back { flex-shrink: 0; font-weight: 700; letter-spacing: .01em; font-size: 12.5px; }
.topbar a { color: var(--gold-300); transition: color var(--trans); }
.topbar a:hover { color: var(--gold-500); text-decoration: none; }

.admin-toplinks-wrap {
  position: relative;
  margin-left: auto;
  flex-shrink: 0;
}
.admin-toplinks-toggle {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--r-pill);
  background: rgba(255,255,255,.08);
  color: var(--gold-200);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .03em;
  cursor: pointer;
  white-space: nowrap;
}
.admin-toplinks-toggle svg { flex-shrink: 0; transition: transform var(--trans); }
.admin-toplinks-wrap.open .admin-toplinks-toggle svg { transform: rotate(180deg); }
.admin-toplinks {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: flex-end;
  min-width: 0;
}
.admin-toplinks a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  color: var(--gold-200);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  text-decoration: none;
  white-space: nowrap;
}
.admin-toplinks a:hover,
.admin-toplinks a.active {
  color: #fff;
  text-decoration: none;
}
.admin-toplinks__logout {
  color: var(--gold-300) !important;
}
.admin-toplinks__logout svg { flex-shrink: 0; }

/* ==========================================================================
   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);
}
.header-search { display: flex; gap: 8px; margin: 10px 0 2px; }
.header-search input {
  flex: 1; min-width: 0; min-height: 40px; border: 0; border-radius: 8px;
  padding: 8px 12px; font: inherit; background: #fff; color: var(--neutral-900, #1c2b24);
}
.header-search button {
  flex: none; min-height: 40px; padding: 8px 14px; border: 0; border-radius: 8px;
  background: var(--gold-300); color: var(--blue-800); font: inherit; font-weight: 650; cursor: pointer;
}
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.search-group { font-size: 18px; margin: var(--sp-5) 0 var(--sp-2); }
.lang-switch { display: flex; gap: 6px; flex: none; }
.lang-switch a {
  color: var(--gold-300); font-size: 13px; line-height: 1; text-decoration: none;
  border: 1px solid transparent; border-radius: 999px; padding: 6px 8px;
}
.lang-switch a[aria-current="true"] { color: #fff; border-color: var(--gold-300); }
.lang-note { margin-top: var(--sp-4); color: var(--text-muted); }
.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-top-label.active { color: #fff; font-weight: 600; }

.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 minmax(0, 1fr);
  align-items: start;
  max-width: 1240px;
  margin: 0 auto;
  padding: var(--sp-5) var(--sp-6) var(--sp-6);
  gap: var(--sp-5);
  min-width: 0;
}
.page-layout.page-layout--solo { grid-template-columns: minmax(0, 1fr); }

/* 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-branch { display: flex; align-items: stretch; }
.sidemenu-branch .sidemenu-btn { flex: 1; width: auto; }
.sidemenu-expand {
  width: 42px; flex: none; border: none; background: none; color: var(--text-subtle);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.sidemenu-expand:hover { background: var(--blue-50); color: var(--blue-700); }

.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,
.sidemenu-sub a.active { background: var(--blue-50); color: var(--blue-700); text-decoration: none; }
.sidemenu-sub a:hover::before,
.sidemenu-sub a.active::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:empty { display: none; }
.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);
}
.page-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  margin-bottom: var(--sp-4);
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-subtle);
  max-width: 100%;
}
.page-breadcrumb__link {
  color: var(--text-muted);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.page-breadcrumb__link:hover { color: var(--blue-700); text-decoration: none; }
.page-breadcrumb__text,
.page-breadcrumb__current {
  color: var(--text-muted);
  overflow-wrap: anywhere;
}
.page-breadcrumb__current { color: var(--text); font-weight: 500; }
.page-breadcrumb__sep { color: var(--neutral-300); flex: none; }
.page-content .sec-block > .section-title {
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}
.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-empty {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--neutral-50);
  color: var(--text-muted);
  padding: var(--sp-5);
  font-size: 15px;
  line-height: 1.5;
}
.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-date__value { display: block; font-size: 14px; font-weight: 600; letter-spacing: 0; color: var(--blue-700); }

.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,
.news-card .richtext-fragment  { 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; }
.hc-section--single .hc-slide { padding-left: var(--sp-7); padding-right: var(--sp-7); }

@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 > .richtext-fragment {
  color: var(--text-muted); font-size: 15.5px;
  line-height: 1.65; margin-bottom: var(--sp-5);
  max-width: 52ch;
}
.hc-text .richtext-fragment p {
  margin: 0;
}

/* 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-image: var(--image-full, none);
  background-size: cover;
  background-position: center;
}
@media (max-width: 1024px) {
  .hc-image--photo {
    background-image: var(--image-thumb, var(--image-full, none));
  }
}
.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-social { display: flex; gap: 12px; }
.footer-social a { color: var(--gold-300); }
.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 minmax(0, 1fr); }
}
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .map-inner   { grid-template-columns: 1fr; }
  .page-layout { grid-template-columns: 200px minmax(0, 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) {
  .topbar--admin .topbar-address {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
  }
  .topbar--admin .admin-toplinks { flex-shrink: 0; gap: 12px; }

  .page-layout {
    grid-template-columns: minmax(0, 1fr);
    padding: var(--sp-4);
    gap: var(--sp-4);
  }
  .page-sidemenu { display: none; }
  .sec-block { padding: var(--sp-4); min-width: 0; }
  .page-breadcrumb { font-size: 11px; margin-bottom: var(--sp-3); }
  .data-table-tools { align-items: stretch; }
  .data-table-search { width: 100%; flex: 1 1 100%; }
  .data-table-count { margin-left: 0; }
  .page-content .sec-block > .section-title {
    font-size: 24px;
    line-height: 1.2;
    margin-bottom: var(--sp-3);
  }
  .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-x: hidden;
    overflow-y: auto;
    padding-top: 0;
    box-shadow: var(--shadow-md);
    z-index: 300;
    max-width: 100vw;
    -webkit-overflow-scrolling: touch;
  }
  #main-nav.open { display: flex; }
  /* Long labels: wrap instead of nowrap (avoids horizontal page scroll) */
  #main-nav a,
  .nav-top-label,
  .nav-sub-section,
  .nav-sub-section--leaf {
    white-space: normal;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
  }
  #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; flex-shrink: 0; margin-left: auto; }
  .header-brand-inner { gap: var(--sp-3); min-width: 0; }
  .brand { flex: 1; min-width: 0; gap: var(--sp-3); }
  .brand-crest { width: 40px; height: 40px; }
  .brand-text { min-width: 0; }
  .brand-text .l1 { font-size: 15px; }
  .brand-text .l2 { font-size: 9px; letter-spacing: .04em; }
  .header-nav-inner { position: relative; }
  .contact-banner { padding: var(--sp-6) 0; }
  .contact-banner .wrap { flex-direction: column; align-items: flex-start; }
  .contact-banner h2 {
    font-size: 22px;
    line-height: 1.25;
    overflow-wrap: break-word;
  }
  footer { padding: var(--sp-6) 0 var(--sp-4); }
  .footer-brand .l1 {
    font-size: 17px;
    line-height: 1.3;
    overflow-wrap: break-word;
  }
  .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; min-width: 0; max-width: 100%; }
  .nav-top-row {
    display: grid; grid-template-columns: minmax(0, 1fr) 48px 48px;
    align-items: stretch;
    border-bottom: 1px solid rgba(255,255,255,.07);
    min-width: 0;
  }
  #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;
    min-width: 0;
  }
  #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,
  .nav-item.active .nav-top-row { background: rgba(255,255,255,.06); }
  .nav-item.active .nav-top-row { box-shadow: inset 0 -2px 0 var(--gold-500); }

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

  /* Sub-menu items — #main-nav a base rule uses 14px padding; override with higher specificity */
  #main-nav .nav-sub .nav-sub-section {
    display: block;
    padding: 8px var(--sp-5) 4px var(--sp-5);
    font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    color: var(--gold-300); border-top: 1px solid rgba(255,255,255,.05);
    line-height: 1.4;
  }
  #main-nav .nav-sub .nav-sub-section:first-child { border-top: none; }

  #main-nav .nav-sub a {
    display: block;
    padding: 9px var(--sp-5);
    font-size: 13px; font-weight: 400;
    color: rgba(255,255,255,.65);
    border-bottom: 1px solid rgba(255,255,255,.04);
    min-width: 0;
    line-height: 1.4;
  }
  #main-nav .nav-sub a::before { display: none; }
  #main-nav .nav-sub a:last-child { border-bottom: none; }
  #main-nav .nav-sub a:hover { color: #fff; background: rgba(255,255,255,.06); text-decoration: none; }
  #main-nav .nav-sub a.nav-sub-section {
    padding: 8px var(--sp-5) 4px var(--sp-5);
    font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    color: var(--gold-300);
    border-top: 1px solid rgba(255,255,255,.05);
    border-bottom: none;
  }

  #main-nav .nav-sub .nav-sub-section--leaf {
    display: block;
    padding: 10px var(--sp-5);
    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);
    line-height: 1.4;
  }
  #main-nav .nav-sub 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); }

  /* Topbar — prevent long address from forcing horizontal scroll */
  .topbar { font-size: 10px; padding: 5px 0; }
  .topbar .wrap { gap: var(--sp-2); min-width: 0; }
  .topbar-address {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
  }
  .topbar a { flex-shrink: 0; font-size: 10px; }
  .topbar--admin .topbar-address { display: none; }

  /* Header brand — compact title on narrow phones */
  .header-brand-bar { padding: var(--sp-2) 0; }
  .header-brand-inner { gap: var(--sp-2); }
  .brand { gap: 8px; }
  .brand .brand-crest { width: 34px; height: auto; max-height: 40px; }
  .brand-text .l1 {
    font-size: 11.5px;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }
  .brand-text .l2 {
    font-size: 7.5px;
    letter-spacing: .03em;
    margin-top: 2px;
    line-height: 1.3;
  }
  .nav-toggle { padding: 6px; }
  .nav-toggle span { width: 20px; margin: 4px 0; }

  .page-layout { padding: var(--sp-3); }
  .sec-block { padding: var(--sp-3); }
  .page-breadcrumb { font-size: 10px; gap: 3px 5px; }
  .page-breadcrumb__end { display: none; }
  .page-content .sec-block > .section-title {
    font-size: 20px;
    line-height: 1.25;
    letter-spacing: 0;
  }

  .contact-banner { padding: var(--sp-5) 0; }
  .contact-banner h2 { font-size: 18px; }
  .contact-banner p { font-size: 13px; }
  footer { padding: var(--sp-5) 0 var(--sp-4); }
  .footer-brand .l1 { font-size: 15px; }
  .footer-brand .l2 { font-size: 9px; margin-bottom: var(--sp-3); }
  .footer-brand p { font-size: 12px; }
  .footer-bottom { font-size: 10px; }
}

/* ==========================================================================
   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);
  min-width: 0;
  max-width: 100%;
}
.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);
}
h1.page-heading { font-size: 32px; margin-top: var(--sp-4); }
.search-results { list-style: none; padding: 0; margin: 0; }
.search-results li { padding: 12px 0; border-bottom: 1px solid var(--border); }
.search-results a { font-weight: 600; }
.search-kind { display: block; color: var(--text-muted); font-size: 12px; }
.search-trail { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; margin: 0; }
.search-trail span { color: var(--text-muted); font-size: 13px; font-weight: 500; }
.search-trail__sep { color: var(--neutral-300); }
.home-hero {
  position: relative;
  display: flex;
  align-items: stretch;
  min-height: calc(100svh - 168px);
  overflow: hidden;
  background: #f8f6f2;
}
.home-hero__map { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 78% center; }
.home-hero__copy {
  position: relative; z-index: 1; width: 100%;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding-top: var(--sp-7); padding-bottom: var(--sp-8);
}
.home-hero__place {
  margin: 0 0 8px;
  color: var(--blue-700);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.home-hero h1 {
  max-width: 16ch;
  margin: 0 0 12px;
  color: var(--blue-900);
  font-family: var(--font-serif);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 500;
  line-height: 1.05;
}
.home-hero .home-lead { max-width: 34rem; color: var(--neutral-800); font-size: 18px; }
.home-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.home-layout { position: relative; z-index: 1; margin-top: -48px; padding-top: 0; }
@media (max-width: 768px) {
  .home-hero { min-height: 78svh; align-items: flex-end; }
  .home-hero h1 { font-size: 36px; }
  .home-hero .home-lead { font-size: 16px; }
  .home-hero__copy { justify-content: flex-end; padding-top: var(--sp-6); padding-bottom: 72px; }
  .home-hero__map { object-position: right center; }
  .home-hero::before {
    content: "";
    position: absolute; inset: 0; z-index: 0;
    background: linear-gradient(180deg, rgba(248, 246, 242, .05), rgba(248, 246, 242, .9) 72%);
  }
}
.home-front { display: flex; flex-direction: column; gap: var(--sp-5); }
.home-lead, .home-hours, .home-note { margin: 0; }
.home-hours { font-weight: 600; }
.home-note { color: var(--text-muted); }
.home-front .qa-card h2 { font-size: 15px; font-weight: 600; color: var(--text); line-height: 1.3; margin: 0; }
.home-front .news-header { margin-bottom: 0; }
.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 {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.tbl-wrap .ds-table {
  width: 100%;
  min-width: 760px;
}
.data-table-block {
  display: grid;
  gap: var(--sp-3);
}
.data-table-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  flex-wrap: wrap;
  min-width: 0;
}
.data-table-search {
  min-width: min(100%, 320px);
}
.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-wrap[hidden] {
  display: none !important;
}
.data-table-more {
  min-width: 180px;
}
.data-table-more[hidden] {
  display: none !important;
}
.ds-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  table-layout: fixed;
}
.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; }
.ds-table .tbl-cell--index { width: 70px; white-space: nowrap; }
.ds-table .tbl-cell--date { width: 165px; white-space: nowrap; }
.ds-table .tbl-cell--number { width: 120px; white-space: nowrap; }
.ds-table .tbl-cell--docs { width: 190px; white-space: nowrap; }
.ds-table .tbl-cell--text { min-width: 0; }
.tbl-cell-text {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tbl-cell--text .tbl-cell-text[title] {
  cursor: help;
}
.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 picture {
  display: block;
  width: 100%;
  height: 100%;
}
.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
   ========================================================================== */
.legal-notice { max-width: 46rem; }
.legal-notice h1 {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 var(--sp-4);
}
.legal-notice h2 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  margin: var(--sp-6) 0 var(--sp-3);
}
.legal-notice p,
.legal-notice li { font-size: 16px; line-height: 1.6; color: var(--text); }
.legal-notice p { margin: 0 0 var(--sp-3); }
.legal-notice ul { margin: 0 0 var(--sp-3) 1.2em; }
.legal-notice a { color: var(--text-link); }
.citizen-form { max-width: 40rem; margin-top: var(--sp-6); }
.citizen-form h1,
.citizen-form h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 var(--sp-3);
}
.citizen-form h1 { font-size: 32px; }
.citizen-form h2 { font-size: 22px; }
.citizen-form p,
.citizen-form .hint { font-size: 16px; line-height: 1.6; }
.citizen-form .hint { color: var(--text-muted); margin: 6px 0 0; }
.citizen-form .field { margin: 0 0 var(--sp-4); }
.citizen-form label { display: block; font-weight: 600; margin-bottom: 6px; }
.citizen-form .required { color: #9b2c2c; }
.citizen-form input,
.citizen-form textarea {
  width: 100%;
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-elevated);
  color: var(--text);
}
.citizen-form button { margin-top: var(--sp-3); }
.citizen-note { padding: 12px 14px; border-radius: 8px; margin: 0 0 var(--sp-4); }
.citizen-note--ok { background: #eef6ee; }
.citizen-note--err { background: #fdecec; }
.citizen-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.richtext {
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--text);
}
.richtext *,
.richtext-fragment * {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal !important;
}
.richtext p { margin: 0; }
.richtext li p { margin: 0; }
.richtext h1,
.richtext h2,
.richtext h3  {
  font-family: var(--font-serif); font-size: 19px; font-weight: 500;
  color: var(--text); margin: 0;
  padding-bottom: var(--sp-2); border-bottom: 2px solid var(--blue-100);
}
.richtext h1 { font-size: 26px; }
.richtext h2 { font-size: 22px; }
.richtext ul, .richtext ol {
  margin: 0 0 0 var(--sp-6);
  display: flex; flex-direction: column; gap: .2em;
}
.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; }
.richtext-fragment {
  display: block;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.richtext-fragment > * {
  margin: 0;
}
.richtext-fragment > p:empty {
  min-height: 1.65em;
}
.richtext-fragment > :is(blockquote, h1, h2, h3, h4, ul, ol) + *,
.richtext-fragment > * + :is(blockquote, h1, h2, h3, h4, ul, ol) {
  margin-top: .65em;
}
.richtext-fragment ul,
.richtext-fragment ol {
  padding-left: 1.35rem;
}
.richtext-fragment blockquote {
  border-left: 3px solid var(--blue-300);
  padding-left: .9rem;
  color: var(--text-muted);
}
.ql-align-center { text-align: center; }
.ql-align-right { text-align: right; }
.ql-align-justify { text-align: justify; }

/* ==========================================================================
   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;
  max-width: 100%;
  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;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
/* Explicit contrast colors avoid filter-induced stacking and fixed-position bugs. */
body.a11y-high-contrast {
  --text:#000; --text-muted:#222; --text-subtle:#222; --text-link:#000;
  --bg:#fff; --bg-elevated:#fff; --border:#000; --border-strong:#000;
  --blue-50:#fff; --blue-100:#eee; --blue-200:#aaa; --blue-300:#555; --blue-400:#333;
  --blue-500:#000; --blue-600:#000; --blue-700:#000; --blue-800:#000; --blue-900:#000;
  --gold-50:#fff; --gold-100:#eee; --gold-200:#ccc; --gold-300:#fff; --gold-400:#555;
  --gold-500:#000; --gold-600:#000; --gold-700:#000; --gold-800:#000; --gold-900:#000;
  color:#000; background:#fff;
}
body.a11y-high-contrast :is(.header-brand-bar,.topbar,footer,.contact-banner,.cta-card,.sidemenu-header,.a11y-header) {
  background:#000 !important; color:#fff !important;
}
body.a11y-high-contrast :is(.header-brand-bar,.topbar,footer,.contact-banner,.cta-card,.sidemenu-header,.a11y-header) :is(p,span,strong,h1,h2,h3,h4,h5,h6,a,small,div,li) { color:#fff !important; }
body.a11y-high-contrast :is(button,.btn,[type="submit"],[type="button"],[type="reset"]) {
  background:#000 !important; color:#fff !important; border:2px solid #fff !important;
  outline:1px solid #000;
}
body.a11y-high-contrast :is(button,.btn,[type="submit"],[type="button"],[type="reset"]):hover {
  text-decoration:underline; text-underline-offset:3px;
}
body.a11y-high-contrast :is(thead,th) {
  background:#000 !important; color:#fff !important; border-color:#fff !important;
}
body.a11y-high-contrast th :is(a,span,div,strong) { color:#fff !important; }
body.a11y-high-contrast :is(.cta-card,.contact-banner,.header-brand-bar,footer) a:not(.btn) { text-decoration:underline; }
body.a11y-high-contrast :is(.nav-top-link.active,.sidemenu-item.active,.a11y-profile-card.active) { border-color:#000 !important; font-weight:700; }
body.a11y-high-contrast :is(a,button,input,textarea,select,summary,[tabindex]):focus-visible {
  outline:3px solid #000 !important; outline-offset:3px; box-shadow:0 0 0 6px #fff !important;
}
body.a11y-reduced-color img { filter:saturate(.65); }
body.a11y-focus *, body.a11y-focus *::before, body.a11y-focus *::after {
  animation:none !important; transition:none !important; scroll-behavior:auto !important;
}
body.a11y-focus :is(a,button,input,textarea,select,summary,[tabindex]):focus-visible { outline-width:5px; outline-offset:5px; }
body.a11y-readable :is(p,li,dt,dd,label,input,textarea,button,a,td,th,summary) {
  line-height:1.8 !important; letter-spacing:.025em !important; word-spacing:.08em !important;
}
body.a11y-highlight-links a {
  outline:2px solid var(--blue-700); outline-offset:2px;
  text-decoration:underline !important; text-underline-offset:3px;
}
body.a11y-motor :is(a,button,input:not([type="hidden"]),select,summary) {
  min-height:48px; min-width:48px;
}
body.a11y-motor a { display:inline-flex; align-items:center; }
body.a11y-motor :is(.richtext,.richtext-fragment,.announcement-detail__body) a { display:inline-block; padding:10px 4px; }
.a11y-panel[hidden] { display:none !important; }
.a11y-panel { width:400px; max-width:100vw; padding-bottom:env(safe-area-inset-bottom,0px); }
.a11y-icon-btn { min-width:44px; min-height:44px; }
.a11y-toggle { min-width:44px; min-height:44px; display:inline-flex; align-items:center; justify-content:center; }
.a11y-profile-desc { line-height:1.6; }
.a11y-tool-btn { min-height:44px; }
body :is(a,button,input,textarea,select,summary,[tabindex]):focus-visible {
  outline:3px solid var(--blue-500); outline-offset:3px; box-shadow:0 0 0 2px #fff;
}
.a11y-tool-btn:disabled,.a11y-toggle-input:disabled + .a11y-toggle-track { opacity:.55; cursor:not-allowed; }
@media(max-width:420px) { .a11y-panel { width:100vw; max-width:100vw; } }

/* ==========================================================================
   HOMEPAGE SECTIONS — quicklinks reuse .qa-grid; stats strip; CTA media
   (added for editable homepage section blocks)
   ========================================================================== */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.stat-strip__item {
  padding: var(--sp-5);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 6px;
}
.stat-strip__item:last-child { border-right: none; }
.stat-strip__icon {
  width: 34px; height: 34px; margin-bottom: 4px;
  border-radius: var(--r-md);
  background: var(--blue-50); border: 1px solid var(--blue-100);
  color: var(--blue-700);
  display: flex; align-items: center; justify-content: center;
}
.stat-strip__icon svg { width: 18px; height: 18px; }
.stat-strip__value {
  font-family: var(--font-serif);
  font-size: 30px; font-weight: 500; line-height: 1; color: var(--blue-800);
}
.stat-strip__label {
  font-family: var(--font-sans);
  font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-muted);
}
@media (max-width: 640px) {
  .stat-strip__item { border-right: none; border-bottom: 1px solid var(--border); }
  .stat-strip__item:last-child { border-bottom: none; }
}

/* CTA card with an optional image (mayor message) */
.cta-card--media {
  display: grid; grid-template-columns: 200px 1fr; gap: var(--sp-6);
  align-items: center; padding: var(--sp-6);
}
.cta-card__media img {
  width: 100%; aspect-ratio: 1/1; object-fit: cover;
  border-radius: var(--r-lg); border: 1px solid oklch(1 0 0 / .15);
  display: block;
}
.cta-card__text { color: oklch(0.94 0.028 250 / .78); font-size: 14px; line-height: 1.65; margin-bottom: var(--sp-5); }
.cta-card__text p { margin: 0 0 8px; }
.cta-card__text p:last-child { margin-bottom: 0; }
@media (max-width: 700px) {
  .cta-card--media { grid-template-columns: 1fr; text-align: left; }
  .cta-card__media img { max-width: 140px; }
}

.admin-toplinks button.admin-toplinks__logout { font:inherit;color:inherit;background:none;border:0;cursor:pointer;display:inline-flex;align-items:center;gap:6px; }

.person-card{display:grid;grid-template-columns:96px minmax(0,1fr);gap:16px;align-items:center;margin-top:var(--sp-5);padding:18px;border:1px solid var(--border);border-radius:var(--r-lg);background:var(--bg-elevated)}
.person-card:not(:has(img)){grid-template-columns:minmax(0,1fr)}
.person-card img{width:96px;height:96px;object-fit:cover;border-radius:12px;background:#e7eef5}
.person-card h2{margin:0 0 4px;font-size:22px}
.person-card p{margin:3px 0;color:var(--text-muted)}
.person-card__role{color:var(--text);font-weight:650}
.deadline-card{display:flex;gap:18px;align-items:center;margin-top:var(--sp-5);padding:18px 20px;border:1px solid var(--blue-100);border-radius:var(--r-lg);background:var(--blue-50)}
.deadline-card__date{font-family:var(--font-serif);font-size:28px;line-height:1.05;color:var(--blue-800);min-width:7.2rem}
.deadline-card h2{margin:0 0 4px;font-size:20px}
.deadline-card p{margin:0;color:var(--text-muted)}
.hours-list{margin-top:var(--sp-5);border:1px solid var(--border);border-radius:var(--r-lg);overflow:hidden;background:var(--bg-elevated)}
.hours-list .sec-title{margin:0;padding:14px 16px;border-bottom:1px solid var(--border)}
.hours-row{display:grid;grid-template-columns:minmax(90px,160px) 1fr;gap:12px;padding:12px 16px;border-top:1px solid var(--border)}
.hours-row:first-of-type{border-top:0}
.hours-row span{color:var(--text-muted)}
.faq-list{margin-top:var(--sp-5)}
.faq-item{border-top:1px solid var(--border);padding:12px 0}
.faq-item summary{cursor:pointer;font-weight:650}
.faq-item .richtext-fragment{margin-top:8px;color:var(--text-muted)}
.video-frame{margin-top:var(--sp-5)}
.video-frame iframe{width:100%;aspect-ratio:16/9;border:0;border-radius:var(--r-lg);background:#102033}
.video-link{display:inline-flex;align-items:center;min-height:44px;padding:0 16px;border-radius:10px;background:var(--blue-800);color:#fff;text-decoration:none}
.mini{display:grid;gap:5px;height:54px;padding:8px;border-radius:8px;background:#f4f7fb;border:1px solid #e3ebf3}
.mini i{display:block;height:6px;border-radius:4px;background:#c5d2df}
.mini-text i:last-child,.mini-story i:last-child{width:62%}
.mini-story i:first-child{height:18px;width:46%;background:#d5e4f5}
.mini-docs i,.mini-news i{height:9px}
.mini-docs i{background:linear-gradient(90deg,#e0b15a 0 16px,#d5dee8 16px)}
.mini-news i{background:linear-gradient(90deg,#8fb59a 0 22px,#d5dee8 22px)}
.mini-photos{grid-template-columns:1.4fr 1fr 1fr}
.mini-photos i{height:auto}
.mini-person{grid-template-columns:22px 1fr;align-content:center}
.mini-person i:first-child{grid-row:span 2;height:28px;border-radius:50%;background:#d5e4f5}
.mini-schedule i{background:linear-gradient(90deg,#b7c6d6 0 34%,transparent 34% 42%,#d5dee8 42%)}
.mini-deadline i:first-child{height:16px;width:42%;background:#c9d8ea}
.mini-faq i:nth-child(odd){width:78%;background:#b7c6d6}
.mini-video i:first-child{height:28px;background:#d5e0ea}
.mini-links{grid-template-columns:1fr 1fr}
.mini-links i{height:16px;border-radius:5px;background:#d5e4f5}
.mini-cta i:first-child{height:14px;width:70%;background:#d7e3c8}
.mini-stats{grid-template-columns:1fr 1fr 1fr}
.mini-stats i{height:22px;background:#d5e4f5}
.mini-carousel i:first-child{height:28px}
.mini-table i{height:8px;background:repeating-linear-gradient(90deg,#c5d2df 0 18px,#fff 18px 22px)}
.mini-recipe{grid-template-columns:1fr}
.mini-recipe i:nth-child(1){height:8px;width:70%}
.mini-recipe i:nth-child(2){height:14px;background:#e7f0e4}
@media(max-width:640px){.person-card{grid-template-columns:1fr}.person-card img{width:72px;height:72px}.deadline-card{flex-direction:column;align-items:flex-start}}

.public-download-toast{position:fixed;z-index:10001;left:50%;bottom:28px;transform:translateX(-50%);width:max-content;max-width:calc(100vw - 40px);box-sizing:border-box;padding:16px 22px;border-radius:var(--r-md,8px);background:var(--blue-900,#12304d);color:#fff;font-size:15px;line-height:1.5;box-shadow:0 8px 28px #0003;text-align:left}.public-download-toast[hidden]{display:none}

/* Standalone visual sections on the public-information landing page. */
:is(.page-content--public-information, .page-content--landing) .sec-block:has(> .cta-card),
:is(.page-content--public-information, .page-content--landing) .stat-strip-block {
  border: 0;
  box-shadow: none;
  background: transparent;
  padding: 0;
}

/* Soft blue panels keep the public-information page light and readable. */
:is(.page-content--public-information, .page-content--landing) .cta-card {
  background: linear-gradient(135deg, rgb(0 82 185 / 8%), rgb(0 82 185 / 3%));
}
:is(.page-content--public-information, .page-content--landing) .cta-card h3 {
  color: var(--blue-900);
}
:is(.page-content--public-information, .page-content--landing) .cta-card__text,
:is(.page-content--public-information, .page-content--landing) .cta-card__text p {
  color: var(--text);
}
:is(.page-content--public-information, .page-content--landing) .cta-card .section-eyebrow {
  color: var(--blue-700) !important;
}
:is(.page-content--public-information, .page-content--landing) .cta-card__text a {
  color: var(--blue-700);
  text-decoration: underline;
}

/* Contact landing: clear contact options and an accessible, responsive form. */
.contact-intro { margin:var(--sp-5) 0; max-width:65ch; }
.contact-intro p { margin-top:var(--sp-3); color:var(--text-muted); line-height:1.7; }
.contact-detail-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:var(--sp-4); }
.contact-detail-card { display:flex; flex-direction:column; align-items:flex-start; gap:10px; padding:24px; border:1px solid var(--border); border-radius:var(--r-lg); background:var(--neutral-0); text-decoration:none; color:var(--text); min-width:0; transition:background .15s,border-color .15s; }
.contact-detail-card:hover { background:var(--blue-50); border-color:var(--blue-200); }
.contact-detail-icon { display:inline-flex; align-items:center; justify-content:center; width:42px; height:42px; flex-shrink:0; border-radius:var(--r-sm); background:var(--blue-50); color:var(--blue-700); }
.contact-detail-icon svg { width:22px; height:22px; }
.contact-detail-label { font-size:12px; text-transform:uppercase; letter-spacing:.06em; color:var(--text-muted); }
.contact-detail-card strong { color:var(--blue-900); overflow-wrap:anywhere; font-size:16px; }
.contact-detail-card > span:last-child { font-size:13px; color:var(--text-muted); }
.contact-hours { display:flex; align-items:center; flex-wrap:wrap; gap:var(--sp-4); padding:24px; margin-top:var(--sp-4); background:var(--blue-50); border-radius:var(--r-lg); }
.contact-hours p { margin:4px 0 0; color:var(--text-muted); }
.contact-hours .btn { margin-left:auto; }
.page-content--contact .citizen-form--contact { background:linear-gradient(135deg,rgb(0 82 185 / 5%),rgb(0 82 185 / 2%)); border:0; border-radius:var(--r-lg); padding:clamp(20px,4vw,40px); margin-top:var(--sp-6); }
.citizen-form--contact .citizen-form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 var(--sp-4); }
.citizen-form--contact .citizen-form-wide { grid-column:1/-1; }
.citizen-form--contact input,.citizen-form--contact textarea { background:var(--neutral-0); width:100%; min-width:0; }
.citizen-form--contact { scroll-margin-top:180px; max-width:none; }
@media (max-width:900px) { .contact-detail-grid { grid-template-columns:1fr; } }
@media (max-width:600px) { .citizen-form--contact .citizen-form-grid { grid-template-columns:1fr; } .contact-hours .btn { margin-left:0; } }

/* Quick-link sections are unframed; only their individual cards have borders. */
.sec-block.sec-block--quicklinks {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

/* Announcement archive and individual publication pages. */
.announcement-section { margin-top:var(--sp-5); }
.announcement-list { display:grid; gap:var(--sp-4); margin-top:var(--sp-4); }
.announcement-card { border:1px solid var(--border); border-radius:var(--r-lg); background:var(--neutral-0); padding:clamp(20px,3vw,30px); }
.announcement-card__meta { display:flex; align-items:center; flex-wrap:wrap; gap:12px; color:var(--text-muted); font-size:13px; margin-bottom:14px; }
.announcement-card__tag { background:var(--blue-50); color:var(--blue-700); padding:5px 10px; border-radius:var(--r-sm); font-weight:600; }
.announcement-card h3 { margin:0 0 12px; font-size:clamp(18px,2vw,22px); line-height:1.45; font-weight:600; overflow-wrap:anywhere; }
.announcement-card h3 a { color:var(--blue-900); text-decoration:none; }
.announcement-card h3 a:hover { text-decoration:underline; text-underline-offset:4px; }
.announcement-card__excerpt { color:var(--text-muted); font-size:15px; line-height:1.7; margin:0; }
.announcement-card__actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:20px; }
.announcement-detail { margin-top:var(--sp-5); }
.announcement-detail__body { margin:24px 0; font-size:17px; line-height:1.8; overflow-wrap:anywhere; }
.announcement-detail__body > * { margin:0; }
.announcement-detail__body > * + * { margin-top:1em; }
.announcement-detail__body ul { list-style:disc; padding-left:1.5em; }
.announcement-detail__body ol { list-style:decimal; padding-left:1.5em; }
.announcement-detail__body li + li { margin-top:.6em; }
.announcement-detail__body li > p + p { margin-top:.6em; }
.announcement-detail__body a { color:var(--text-link); text-decoration:underline; text-underline-offset:3px; }
.announcement-detail__issuer { color:var(--text-muted); }
.announcement-detail__fields { display:flex; flex-wrap:wrap; gap:16px 36px; padding:20px 0; border-top:1px solid var(--border); margin:24px 0; }
.announcement-detail__fields dt { color:var(--text-muted); font-size:13px; }
.announcement-detail__fields dd { margin:6px 0 0; font-weight:600; }
.announcement-detail__attachments { background:var(--blue-50); border-radius:var(--r-lg); padding:24px; margin:24px 0; }
.announcement-detail__attachments h2 { font-size:22px; margin:0 0 10px; }
.announcement-detail__attachments p { margin:0 0 16px; line-height:1.6; }
.announcement-back { display:inline-block; margin-top:16px; color:var(--blue-700); text-underline-offset:4px; }
@media(max-width:600px) { .announcement-card__actions .btn { width:100%; justify-content:center; } }

.announcement-section { scroll-margin-top:180px; }
.announcement-tools { display:flex; align-items:flex-end; flex-wrap:wrap; justify-content:space-between; gap:16px; margin:20px 0; }
.announcement-tools label { display:grid; gap:8px; font-size:14px; font-weight:600; flex:1 1 280px; max-width:480px; }
.announcement-search { width:100%; padding:12px 14px; font:inherit; border:1px solid var(--border-strong); border-radius:var(--r-sm); background:var(--neutral-0); color:var(--text); }
.announcement-count { margin:0 0 12px; color:var(--text-muted); font-size:13px; }
.announcement-pagination { display:flex; align-items:center; justify-content:center; gap:16px; margin-top:24px; flex-wrap:wrap; font-size:14px; }
.announcement-pagination button:disabled { opacity:.45; cursor:default; }
.announcement-tools[hidden], .announcement-pagination[hidden], .announcement-card[hidden] { display:none; }

/* Friendly, standalone 404 page using the institution's visual identity. */
.not-found-page { min-height:100vh; min-height:100svh; display:flex; flex-direction:column; background:radial-gradient(ellipse at 15% 30%,var(--blue-50),transparent 60%),var(--bg); }
.not-found-header { padding:24px clamp(20px,5vw,72px); border-bottom:1px solid var(--border); background:var(--neutral-0); }
.not-found-brand { display:inline-flex; align-items:center; gap:14px; color:var(--blue-900); text-decoration:none; }
.not-found-brand img { object-fit:contain; flex-shrink:0; }
.not-found-brand strong { display:block; font-size:15px; line-height:1.4; }
.not-found-brand small { display:block; margin-top:5px; color:var(--text-muted); font-size:12px; }
.not-found-main { flex:1; display:grid; place-items:center; padding:48px 24px; }
.not-found-content { width:min(100%,650px); }
.not-found-code { font-family:var(--font-sans); font-size:clamp(88px,18vw,144px); line-height:1; font-weight:700; letter-spacing:-.06em; color:var(--blue-200); margin-bottom:24px; }
.not-found-label { font-size:12px; letter-spacing:.06em; text-transform:uppercase; color:var(--blue-700); font-weight:600; margin:0 0 12px; }
.not-found-content h1 { font-family:var(--font-serif); font-size:clamp(30px,5vw,44px); font-weight:500; line-height:1.15; color:var(--blue-900); margin:0 0 20px; }
.not-found-description { color:var(--text-muted); font-size:16px; line-height:1.8; margin:0; max-width:60ch; }
.not-found-search { margin-top:32px; }
.not-found-search label { display:block; font-size:14px; font-weight:600; margin-bottom:10px; }
.not-found-search > div { display:flex; gap:10px; }
.not-found-search input { flex:1; width:100%; min-width:0; padding:14px 16px; font:inherit; border:1px solid var(--border-strong); border-radius:var(--r-sm); color:var(--text); background:var(--neutral-0); }
.not-found-actions { display:flex; flex-wrap:wrap; align-items:center; gap:20px; margin-top:24px; }
.not-found-contact { color:var(--blue-700); font-size:14px; text-underline-offset:4px; }
.not-found-footer { padding:20px 24px; text-align:center; font-size:12px; color:var(--text-muted); }
@media(max-width:480px) { .not-found-search > div { flex-direction:column; } .not-found-actions { align-items:stretch; flex-direction:column; gap:18px; } .not-found-actions .btn { justify-content:center; } .not-found-main { padding:36px 22px; } }

/* Homepage news cards: dates and text share the full width on phones. */
.home-front .news-list { gap:16px; }
.home-front .news-card { border:1px solid var(--border); border-radius:var(--r-lg); padding:24px; gap:20px; background:var(--bg-elevated); }
.home-front .news-card:last-child { border-bottom:1px solid var(--border); }
.home-front .news-card h3 { font-size:18px; line-height:1.45; overflow-wrap:anywhere; }
.home-front .news-card p { margin:10px 0 0; line-height:1.65; }
.home-news-read { display:inline-flex; align-items:center; gap:8px; margin-top:16px; font-size:14px; font-weight:600; color:var(--blue-700); }
.home-front .news-header > div { min-width:0; flex:1; }
@media (max-width:700px) {
  .qa-card { text-align:center; align-items:center; }
  .qa-card .qa-icon { margin-left:auto; margin-right:auto; }
  .qa-card :is(h2,h3,p) { width:100%; }
  .qa-card .qa-arrow { justify-content:center; }
  .home-front { gap:24px; }
  .home-front .news-header { flex-direction:column; align-items:stretch; gap:12px; }
  .home-front .news-header .section-title { width:100%; font-size:30px; line-height:1.15; }
  .home-front .news-header .view-all { align-self:flex-start; font-size:14px; padding:6px 0; }
  .home-front .news-card { grid-template-columns:minmax(0,1fr); padding:20px; gap:12px; }
  .home-front .news-date__value { font-size:13px; }
  .home-front .news-card h3 { font-size:18px; margin:0; line-height:1.5; }
  .home-front .news-card p { font-size:15px; line-height:1.7; }
  .home-front .qa-grid { gap:12px; }
  .home-front .qa-card { padding:20px 12px; }
  .home-front .qa-card h2 { font-size:15px; line-height:1.45; }
  .home-front .qa-card p { font-size:13px; line-height:1.6; }
}
@media (max-width:360px) {
  .home-front .qa-grid { grid-template-columns:minmax(0,1fr); }
}

/* Announcement details follow one reading column, without nested panels. */
.page-content--announcement .page-heading { font-size:clamp(24px,3vw,32px); line-height:1.35; max-width:42ch; overflow-wrap:anywhere; margin-bottom:12px; }
.page-content--announcement .announcement-detail { margin-top:0; }
.announcement-detail__date { margin:0 0 24px; font-size:13px; line-height:1.6; color:var(--text-muted); }
.page-content--announcement .announcement-detail__body { font-size:16px; line-height:1.8; margin:0 0 24px; max-width:75ch; }
.page-content--announcement .announcement-detail__fields { display:grid; gap:10px; border:0; padding:0; margin:20px 0; }
.page-content--announcement .announcement-detail__fields > div { display:flex; flex-wrap:wrap; gap:6px 12px; align-items:baseline; }
.page-content--announcement .announcement-detail__fields dt { font-size:14px; }
.page-content--announcement .announcement-detail__fields dt::after { content:':'; }
.page-content--announcement .announcement-detail__fields dd { margin:0; font-size:14px; }
.page-content--announcement .announcement-detail__attachments { background:transparent; border-radius:0; padding:24px 0 0; margin:28px 0 0; border-top:1px solid var(--border); }
.page-content--announcement .announcement-detail__attachments h2 { font-size:18px; font-weight:600; line-height:1.4; margin:0 0 12px; }
.announcement-files { list-style:none; padding:0; margin:0; }
.announcement-files li { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:14px 0; border-bottom:1px solid var(--border); }
.announcement-file-name { min-width:0; overflow-wrap:anywhere; font-size:14px; line-height:1.6; }
.announcement-files .btn { flex-shrink:0; }
.page-content--announcement .announcement-back { margin-top:28px; font-size:14px; line-height:1.6; }
@media(max-width:600px) {
 .page-content--announcement .page-heading { font-size:24px; line-height:1.4; }
 .announcement-files li { flex-direction:column; align-items:flex-start; gap:10px; }
 .announcement-files .btn { min-height:44px; }
}

/* Each attachment is one compact, full-width touch target. */
.page-content--announcement .announcement-detail__attachments { padding-top:20px; margin-top:24px; }
.page-content--announcement .announcement-detail__attachments h2 { font-size:16px; margin-bottom:12px; }
.announcement-files { display:grid; gap:10px; }
.announcement-files li { display:block; padding:0; border:0; }
.announcement-file { display:flex; align-items:center; gap:12px; width:100%; min-height:60px; padding:14px 16px; border:1px solid var(--border); border-radius:var(--r-sm); background:var(--bg-elevated); color:var(--text); text-align:left; font:inherit; cursor:pointer; }
.announcement-file:hover { border-color:var(--blue-400); background:var(--blue-50); }
.announcement-file-icon { display:flex; align-items:center; flex-shrink:0; color:var(--blue-700); }
.announcement-file .announcement-file-name { flex:1; min-width:0; font-size:14px; line-height:1.5; }
.announcement-file-arrow { flex-shrink:0; color:var(--blue-700); font-size:20px; }
@media(max-width:600px) {
 .announcement-file { padding:12px; gap:10px; min-height:56px; }
 .page-content--announcement .announcement-back { margin-top:24px; }
}

/* Mobile navigation: one disclosure button and an explicit section-page link. */
.nav-section-home { display:none; }
@media (max-width:768px) {
  #main-nav .nav-top-row { display:block; }
  #main-nav .nav-sub-toggle { display:flex; justify-content:space-between; align-items:center; gap:16px; width:100%; min-height:56px; padding:16px var(--sp-5); border:0; text-align:left; font:inherit; font-size:16px; font-weight:600; color:#fff; background:transparent; }
  #main-nav .nav-sub-toggle > span { min-width:0; overflow-wrap:anywhere; }
  #main-nav .nav-sub-toggle .nav-sub-chevron { color:inherit; }
  #main-nav .nav-sub .nav-section-home { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:48px; margin:12px 16px; padding:12px 14px; border:1px solid rgba(255,255,255,.3); border-radius:var(--r-sm); background:rgba(255,255,255,.07); color:#fff; font-size:14px; line-height:1.5; font-weight:600; }
  #main-nav .nav-sub > a:not(.nav-section-home) { padding-left:32px; min-height:44px; line-height:1.5; }
}

/* Mayor's introduction and letter, with a comfortable reading measure. */
.page-content--leadership .page-heading { font-size:clamp(28px,3vw,36px); margin-bottom:24px; }
.page-content--leadership .person-card { background:var(--blue-50); border:0; padding:24px; margin:0 0 28px; border-radius:var(--r-md); }
.page-content--leadership .person-card :is(h1,h2) { font-family:var(--font-serif); font-size:clamp(23px,3vw,30px); line-height:1.3; font-weight:500; margin:0 0 8px; color:var(--blue-900); }
.page-content--leadership .person-card .person-card__role { font-size:14px; font-weight:500; color:var(--text-muted); margin:0; }
.page-content--leadership .richtext { max-width:70ch; margin-top:0 !important; font-size:16px; line-height:1.85; }
.page-content--leadership .richtext p { margin:0 0 20px; }
.page-content--leadership .richtext p:first-child { font-weight:600; }
.page-content--mayor .richtext p:nth-last-child(-n+3) { margin-bottom:4px; }
.page-content--mayor .richtext p:last-child { color:var(--text-muted); font-size:14px; }
@media(max-width:600px) {
 .page-content--leadership .person-card { padding:20px; margin-bottom:24px; }
 .page-content--leadership .richtext { font-size:16px; line-height:1.8; }
}
