/* =========================================================
   Preporuka 011 — design system
   DON plava (#15416d), svetla plava podloga, DON crveni akcenat
   ========================================================= */

:root {
  --paper: #f2f6fa;
  --paper-2: #e7eef7;
  --paper-3: #d9e5f2;
  --ink: #0e1c2b;
  --ink-soft: #33465b;
  --muted: #5d6f83;
  --line: #c8d6e5;
  --line-soft: #dce6f1;
  --brand: #15416d;
  --brand-2: #1b4f8a;
  --brand-3: #2a65a8;
  --don-blue: #15416d;
  --don-blue-deep: #0b2a5b;
  --don-blue-soft: #e7eef7;
  --accent: #c8102e;
  --accent-soft: #f7dfe3;
  --white: #ffffff;
  --danger: #a4302a;
  --success: #1f6b4a;
  --radius: 2px;
  --shell: 1240px;
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shadow: 0 18px 50px rgba(11, 42, 91, 0.10);
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--don-blue);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main#sadrzaj {
  background: var(--paper);
  max-width: 1440px;
  margin: 0 auto;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.018em;
  margin: 0 0 0.5em;
  color: var(--ink);
}

p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.2em; }

::selection { background: var(--brand); color: var(--white); }

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

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 28px;
}

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

.skip-link {
  position: fixed;
  top: -60px; left: 16px;
  z-index: 999;
  background: var(--ink);
  color: var(--white);
  padding: 10px 16px;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

/* ---------- typography helpers ---------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 18px;
}
.eyebrow-line {
  display: inline-block;
  width: 34px;
  height: 1px;
  background: currentColor;
}
.eyebrow-light { color: #c9d8f0; }

.page-head {
  padding-top: 52px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}
.page-head h1 {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  max-width: 18ch;
  margin-bottom: 18px;
}
.page-lead {
  max-width: 62ch;
  color: var(--ink-soft);
  font-size: 1.06rem;
  line-height: 1.65;
}
.page-lead a { text-decoration: underline; text-underline-offset: 3px; }

.ranking-band {
  background: var(--don-blue-deep);
  color: #dbe6f2;
  border-bottom: 3px solid var(--accent);
}
.ranking-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-top: 20px;
  padding-bottom: 20px;
}
.ranking-band-copy {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 18px;
}
.ranking-band-label {
  flex: 0 0 auto;
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #9fb6d2;
}
.ranking-band p {
  margin: 0;
  max-width: 84ch;
  font-size: .9rem;
  line-height: 1.55;
  color: #dbe6f2;
}
.ranking-band strong { color: var(--white); font-weight: 600; }
.ranking-band-link {
  flex: 0 0 auto;
  color: var(--white);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .02em;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(255, 255, 255, .45);
}
.ranking-band-link:hover { color: var(--white); border-bottom-color: var(--accent); }

.section { padding: 84px 0; }
.section-tight { padding: 46px 0 84px; }
.section-tinted { background: var(--paper-2); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.section-head h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.9rem);
  margin: 0;
}
.section-head .eyebrow { margin-bottom: 10px; }
.section-note { font-size: 0.82rem; color: var(--muted); }
.section-lead { max-width: 68ch; color: var(--ink-soft); margin-top: -14px; margin-bottom: 34px; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--brand);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, gap .2s ease;
}
.text-link:hover { border-color: currentColor; gap: 12px; }

.meta-dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--muted);
  display: inline-block;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: var(--brand); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--accent); color: var(--white); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-ghost-light { border-color: rgba(255,255,255,.45); color: var(--white); }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-small { padding: 9px 14px; font-size: 0.72rem; }
.btn-full { width: 100%; }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  border-radius: 999px;
}
.badge-partner { color: var(--accent); background: var(--accent-soft); border-color: transparent; }
.badge-rating { color: #6b4a00; background: #fdf6e3; border-color: #e8d9b0; }
.badge-category { color: var(--brand); border-color: var(--line); background: var(--white); }
.badge-best { color: var(--white); background: var(--don-blue); border-color: transparent; }

/* ---------- header ---------- */

.site-header {
  position: relative;
  z-index: 40;
  background: var(--don-blue);
  color: var(--white);
}

.topbar {
  background: var(--don-blue-deep);
  color: #c9d8f0;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 38px;
}
.topbar a { color: var(--white); border-bottom: 1px solid rgba(255,255,255,.4); }
.topbar-note { color: #9fb6d2; }

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0 26px;
  padding-top: 22px;
  padding-bottom: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.brand {
  order: 1;
  display: inline-flex;
  align-items: flex-start;
  gap: 4px;
  line-height: 1;
}
.brand-word {
  font-family: var(--display);
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.site-header .brand-word { color: var(--white); }
.brand-num {
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: var(--accent);
  color: var(--white);
  padding: 3px 4px;
  margin-top: 4px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.main-nav {
  order: 4;
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 22px;
  margin-top: 16px;
  padding: 12px 0 14px;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.main-nav a {
  position: relative;
  padding: 4px 0;
  color: var(--ink-soft);
  white-space: nowrap;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 1px;
  background: var(--brand);
  transition: right .25s ease;
}
.main-nav a:hover::after,
.main-nav a.is-active::after { right: 0; }
.main-nav a.is-active { color: var(--ink); }
.nav-don { color: var(--accent) !important; }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-item-dropdown > .nav-drop-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-caret {
  width: 5px;
  height: 5px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform .2s ease;
}
.nav-item-dropdown:hover .nav-caret,
.nav-item-dropdown:focus-within .nav-caret { transform: rotate(225deg) translateY(-1px); }
.nav-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: -20px;
  z-index: 50;
  width: 620px;
  padding: 18px 18px 14px;
  background: var(--white);
  color: var(--ink);
  border: 1px solid rgba(21, 65, 109, .16);
  box-shadow: 0 22px 50px rgba(11, 42, 91, .18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  pointer-events: none;
}
.nav-dropdown::before {
  content: "";
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  height: 16px;
}
.nav-item-dropdown:hover .nav-dropdown,
.nav-item-dropdown:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.nav-dropdown-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  padding: 0 8px 10px;
  border-bottom: 1px solid var(--line-soft);
}
.nav-dropdown-eyebrow {
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--don-blue);
}
.nav-dropdown-count {
  font-size: .68rem;
  color: var(--muted);
  white-space: nowrap;
}
.nav-dropdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 12px;
}
.main-nav .nav-dropdown a {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 7px 8px;
  border: 0;
  color: var(--ink-soft);
  font-size: .76rem;
  line-height: 1.35;
  white-space: normal;
}
.main-nav .nav-dropdown a::after { display: none; }
.main-nav .nav-dropdown a:hover,
.main-nav .nav-dropdown a:focus-visible,
.main-nav .nav-dropdown a.is-active {
  color: var(--don-blue);
  background: var(--paper);
}
.nav-dropdown-index {
  flex: 0 0 auto;
  padding-top: 1px;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--brand);
}
.main-nav .nav-dropdown-all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding: 10px 8px 2px;
  border-top: 1px solid var(--line-soft);
  color: var(--don-blue) !important;
  font-size: .72rem;
  font-weight: 600;
}
.main-nav .nav-dropdown-all:hover { color: var(--accent) !important; }
.header-search {
  order: 2;
  margin-left: auto;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  padding-bottom: 3px;
  max-width: 200px;
}
.header-search input {
  border: 0;
  background: transparent;
  width: 150px;
  padding: 3px 0;
  font-size: 0.78rem;
  outline: none;
  color: var(--white);
}
.header-search input::placeholder { color: rgba(255, 255, 255, 0.62); }
.header-search button {
  border: 0;
  background: transparent;
  padding: 0;
  display: flex;
  color: var(--white);
}

.nav-toggle {
  order: 3;
  margin-left: auto;
  display: none;
  width: 40px; height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: transparent;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.nav-toggle span:not(.sr-only) { width: 18px; height: 1px; background: var(--white); }

@media (min-width: 1121px) {
  .main-nav { border-top-color: rgba(255, 255, 255, 0.18); }
  .main-nav a { color: rgba(255, 255, 255, 0.82); }
  .main-nav a:hover,
  .main-nav a.is-active { color: var(--white); }
  .main-nav a::after { background: var(--white); }
  .nav-don { color: #ffd6dc !important; }
}

/* ---------- hero ---------- */

.hero { padding: 64px 0 0; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(30px, 5vw, 76px);
  align-items: end;
}
.hero-copy { padding-bottom: 54px; }
.hero h1 {
  font-size: clamp(3rem, 6.6vw, 5.9rem);
  line-height: 0.94;
  letter-spacing: -0.035em;
  max-width: 11ch;
  margin-bottom: 26px;
}
.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--brand);
}
.hero-lead {
  max-width: 46ch;
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 32px;
}

.hero-search {
  display: flex;
  align-items: stretch;
  max-width: 520px;
  border: 1px solid var(--ink);
  background: var(--white);
  margin-bottom: 20px;
}
.hero-search input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 16px 18px;
  font-size: 0.92rem;
  outline: none;
}
.hero-search button {
  border: 0;
  background: var(--ink);
  color: var(--white);
  padding: 0 24px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background .2s ease;
}
.hero-search button:hover { background: var(--brand); }
.hero-search-wide { max-width: 640px; margin-top: 28px; }

.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-tags a {
  font-size: 0.74rem;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  transition: border-color .2s ease, color .2s ease;
}
.hero-tags a:hover { border-color: var(--brand); color: var(--brand); }

.hero-visual { position: relative; }
.hero-visual img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.02);
  background: var(--paper-3);
}
.hero-caption {
  position: absolute;
  left: -26px;
  bottom: 26px;
  right: 26px;
  background: var(--white);
  border-left: 3px solid var(--accent);
  padding: 16px 18px;
  display: flex;
  gap: 14px;
  box-shadow: var(--shadow);
}
.caption-num {
  font-family: var(--display);
  font-size: 1.5rem;
  color: var(--accent);
  line-height: 1;
}
.caption-label {
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.hero-caption a {
  font-family: var(--display);
  font-size: 1.05rem;
  line-height: 1.2;
  display: block;
}

/* ---------- stats ---------- */

.stat-strip {
  margin-top: 56px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: 22px 18px 22px 0;
  border-right: 1px solid var(--line-soft);
}
.stat:last-child { border-right: 0; }
.stat strong {
  display: block;
  font-family: var(--display);
  font-size: 2.1rem;
  font-weight: 500;
  line-height: 1;
  color: var(--brand);
}
.stat span {
  display: block;
  margin-top: 6px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- category grid ---------- */

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.category-card {
  position: relative;
  background: var(--paper);
  padding: 24px 22px 30px;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  transition: background .25s ease, color .25s ease;
}
.category-card:hover { background: var(--brand); color: var(--white); }
.cat-num {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 22px;
}
.category-card:hover .cat-num { color: #c9d8f0; }
.cat-name {
  font-family: var(--display);
  font-size: 1.35rem;
  line-height: 1.1;
  margin-bottom: 10px;
}
.cat-desc {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--muted);
  margin-top: auto;
}
.category-card:hover .cat-desc { color: #c9d8f0; }
.cat-arrow {
  position: absolute;
  top: 22px; right: 20px;
  font-size: 1rem;
  color: var(--muted);
  transition: transform .25s ease, color .25s ease;
}
.category-card:hover .cat-arrow { transform: translateX(4px); color: var(--white); }

/* ---------- lead story ---------- */

.lead-section { background: var(--paper-2); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.lead-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
}
.lead-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--paper-3);
}
.lead-copy h2 {
  font-size: clamp(2rem, 3.8vw, 3.4rem);
  line-height: 1.02;
}
.lead-copy h2 a:hover { color: var(--brand); }
.lead-copy > p { color: var(--ink-soft); font-size: 1.02rem; }
.lead-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.76rem;
  color: var(--muted);
  margin: 18px 0 26px;
}

/* ---------- story list ---------- */

.story-list { display: flex; flex-direction: column; }
.story { border-top: 1px solid var(--line); }
.story:last-child { border-bottom: 1px solid var(--line); }
.story-link {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 30px;
  padding: 26px 0;
  align-items: center;
}
.story-media { overflow: hidden; background: var(--paper-3); }
.story-media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform .5s ease;
}
.story-link:hover .story-media img { transform: scale(1.04); }
.story-body { padding-right: 20px; }
.story-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 8px;
}
.kicker-dot { width: 2px; height: 2px; background: var(--muted); border-radius: 50%; }
.story h3 {
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.15;
  margin-bottom: 8px;
}
.story-link:hover h3 { color: var(--brand); }
.story p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 10px;
  max-width: 70ch;
}
.story-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.72rem;
  color: var(--muted);
}
.story-compact .story-link { grid-template-columns: 200px 1fr; }

/* ---------- place cards ---------- */

.place-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.place-grid-2 { grid-template-columns: repeat(2, 1fr); }
.place-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--brand);
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.place-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.place-media { display: block; margin: -22px -22px 18px; aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-2); }
.place-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.focus-upper { object-position: center 22%; }
.place-card:hover .place-media img { transform: scale(1.03); }
.place-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.place-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}
.place-index {
  font-family: var(--display);
  font-size: 1.05rem;
  color: var(--accent);
}
.place-card h3 {
  font-size: 1.24rem;
  line-height: 1.15;
  margin-bottom: 8px;
}
.place-card h3 a:hover { color: var(--brand); }
.place-tagline { font-size: 0.86rem; color: var(--muted); margin-bottom: 16px; }
.place-rating { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px; margin: -4px 0 14px; font-size: 0.8rem; color: var(--ink-soft); }
.place-star, .rating-value { color: #a9761a; }
.place-rating strong { color: var(--ink); font-weight: 700; }
.place-rating span:last-child { color: var(--muted); }
.rating-source { font-size: 0.7rem; color: var(--muted); }
.place-facts { margin: 0 0 18px; font-size: 0.8rem; }
.place-facts > div {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 10px;
  padding: 7px 0;
  border-top: 1px solid var(--line-soft);
}
.place-facts dt { color: var(--muted); font-size: 0.7rem; letter-spacing: 0.04em; text-transform: uppercase; padding-top: 2px; }
.place-facts dd { margin: 0; color: var(--ink-soft); }
.place-card .text-link { margin-top: auto; }
.place-card-cta {
  background: transparent;
  border: 1px dashed var(--line);
  border-top: 3px solid var(--line);
  align-items: flex-start;
  justify-content: center;
}
.place-card-cta:hover { background: var(--paper-2); box-shadow: none; transform: none; }
.place-card-cta h3 { color: var(--ink); }
.place-card-cta .place-index { font-size: 1.6rem; color: var(--accent); line-height: 1; margin-bottom: 12px; }

/* ---------- disclosure ---------- */

.disclosure {
  margin: 34px 0;
  padding: 20px 22px;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
}
.disclosure-label {
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.disclosure p { margin: 0 0 8px; font-size: 0.86rem; color: #4d3b34; }
.disclosure a { font-size: 0.78rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- principles ---------- */

.principles-section { background: var(--ink); color: #e3ecf7; }
.principles-section h2 { color: var(--white); font-size: clamp(2rem, 3.6vw, 3.2rem); }
.principles-section .eyebrow { color: #9fb6d2; }
.principles-section .section-lead { color: #c9d8f0; }
.principles-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(30px, 6vw, 90px);
}
.principles-list { list-style: none; margin: 0; padding: 0; }
.principles-list li {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid rgba(255,255,255,.14);
}
.principle-num { font-family: var(--display); font-size: 1.1rem; color: var(--accent); }
.principles-list h3 { color: var(--white); font-size: 1.3rem; margin-bottom: 6px; }
.principles-list p { color: #c9d8f0; font-size: 0.88rem; margin: 0; }

/* ---------- CTA ---------- */

.cta-band { background: var(--brand); color: #e3ecf7; padding: 64px 0; }
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.cta-inner h2 { color: var(--white); font-size: clamp(1.8rem, 3vw, 2.7rem); max-width: 20ch; }
.cta-inner p { color: #c9d8f0; max-width: 52ch; margin-bottom: 0; }
.cta-inner .eyebrow { margin-bottom: 10px; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--don-blue-deep);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: #dbe6f2;
  padding-top: 56px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
}
.footer-brand p { font-size: 0.86rem; color: #c9d8f0; max-width: 34ch; }
.footer-small { font-size: 0.75rem !important; }
.brand-footer .brand-word { font-size: 1.9rem; color: var(--white); }
.site-footer h3 {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9fb6d2;
  margin-bottom: 14px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; font-size: 0.84rem; color: #dbe6f2; }
.site-footer li a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 18px;
  padding-bottom: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.72rem;
  color: #9fb6d2;
}

/* ---------- breadcrumbs ---------- */

.breadcrumbs { margin: 26px 0 30px; }
.breadcrumbs ol {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.72rem;
  color: var(--muted);
}
.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: var(--line);
}
.breadcrumbs a:hover { color: var(--brand); text-decoration: underline; }

/* ---------- category page ---------- */

.category-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(30px, 5vw, 70px);
  align-items: start;
}
.chip-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 18px 0 0;
}
.chip-list a {
  display: inline-block;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.76rem;
  color: var(--ink-soft);
  background: var(--white);
  transition: border-color .2s, color .2s;
}
.chip-list a:hover { border-color: var(--brand); color: var(--brand); }
.chip-list-lg a { padding: 9px 16px; font-size: 0.82rem; }

.block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}
.block-head h2 { font-size: 1.6rem; margin: 0; }
.block-head-spaced { margin-top: 54px; }
.block-head-right { display: flex; align-items: center; gap: 16px; }
.section-more { margin-top: 22px; }
.directory-cta { margin: 56px 0 0; padding: 34px; background: var(--paper-2); border: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.directory-cta h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 8px; }
.directory-cta p { margin-bottom: 0; color: var(--ink-soft); font-size: 0.9rem; max-width: 62ch; }
.block-count {
  font-size: 0.72rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 9px;
}

.category-aside { position: sticky; top: 24px; }
.aside-box {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 22px;
  margin-bottom: 18px;
}
.aside-box h2 {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.aside-box p { font-size: 0.86rem; color: var(--ink-soft); }
.aside-box-accent { background: var(--brand); border-color: var(--brand); color: #dbe6f2; }
.aside-box-accent h2 { color: #9fb6d2; }
.aside-box-accent p { color: #c9d8f0; }
.aside-box-accent .text-link { color: var(--white); }
.aside-links { list-style: none; padding: 0; margin: 0; }
.aside-links li { border-top: 1px solid var(--line-soft); }
.aside-links li:first-child { border-top: 0; }
.aside-links a { display: block; padding: 8px 0; font-size: 0.84rem; color: var(--ink-soft); }
.aside-links a:hover { color: var(--brand); }

.empty-state {
  border: 1px dashed var(--line);
  padding: 44px;
  text-align: center;
  background: var(--white);
}
.empty-state h2 { font-size: 1.7rem; }
.empty-state p { color: var(--muted); max-width: 50ch; margin-left: auto; margin-right: auto; }

/* ---------- article ---------- */

.article-head { padding-top: 4px; margin-bottom: 34px; }
.article-head h1 {
  font-size: clamp(2.3rem, 4.8vw, 4.2rem);
  max-width: 22ch;
  line-height: 1.02;
  margin-bottom: 18px;
}
.article-lead {
  font-size: 1.12rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 64ch;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 0.76rem;
  color: var(--muted);
  margin-top: 20px;
}
.article-cover { margin-bottom: 46px; }
.article-cover img {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  background: var(--paper-3);
}
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(30px, 5vw, 80px);
  align-items: start;
}
.article-body { max-width: 760px; }
.article-aside { position: sticky; top: 24px; }
.toc { margin-bottom: 18px; padding: 20px 22px; border: 1px solid var(--line); background: var(--white); }
.toc h2 {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.toc li { counter-increment: toc; border-top: 1px solid var(--line-soft); }
.toc li:first-child { border-top: 0; }
.toc a { display: flex; gap: 10px; padding: 8px 0; font-size: 0.82rem; color: var(--ink-soft); }
.toc a::before { content: counter(toc, decimal-leading-zero); font-size: 0.66rem; color: var(--accent); padding-top: 3px; }
.toc a:hover { color: var(--brand); }

.prose { font-size: 1.02rem; line-height: 1.75; color: #232a2e; }
.prose > p:first-of-type::first-letter {
  float: left;
  font-family: var(--display);
  font-size: 4.1em;
  line-height: 0.78;
  padding: 0.06em 0.1em 0 0;
  color: var(--brand);
}
.prose h2 {
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  margin: 2.1em 0 0.55em;
  padding-top: 0.35em;
  border-top: 1px solid var(--line);
  scroll-margin-top: 24px;
}
.prose h3 {
  font-size: 1.3rem;
  margin: 1.7em 0 0.45em;
  scroll-margin-top: 24px;
}
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 0.45em; }
.prose blockquote {
  margin: 1.8em 0;
  padding: 18px 24px;
  border-left: 3px solid var(--accent);
  background: var(--paper-2);
  font-family: var(--display);
  font-size: 1.2rem;
  line-height: 1.45;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.8em 0;
  font-size: 0.88rem;
}
.prose th {
  text-align: left;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 10px 12px;
  border-bottom: 1px solid var(--ink);
}
.prose td {
  padding: 12px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
.prose th:first-child,
.prose td:first-child { min-width: 150px; }
.prose tr:hover td { background: var(--white); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }

.correction-note {
  margin-top: 40px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 0.82rem;
  color: var(--muted);
}
.correction-note a { color: var(--brand); text-decoration: underline; }
.related-block { margin-top: 56px; }

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) 280px;
  gap: clamp(30px, 5vw, 70px);
  align-items: start;
  margin-top: 40px;
}
.article-page .article-head h1 { max-width: 24ch; }
.page-aside { position: sticky; top: 24px; }

/* ---------- listing profile ---------- */

.profile-head { padding: 10px 0 40px; }
.profile-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: end;
}
.profile-badges { display: flex; gap: 8px; margin-bottom: 16px; }
.profile-head h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.8rem);
  max-width: 20ch;
  margin-bottom: 12px;
}
.profile-tagline { font-size: 1.05rem; color: var(--ink-soft); max-width: 52ch; }
.profile-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.profile-card { background: var(--white); border: 1px solid var(--line); padding: 24px; }
.profile-card h2 {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.profile-card dl { margin: 0; }
.profile-card dl > div {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--line-soft);
  font-size: 0.82rem;
}
.profile-card dt { color: var(--muted); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; padding-top: 2px; }
.profile-card dd { margin: 0; }
.profile-cover { margin-bottom: 46px; }
.profile-cover img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }
.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(30px, 5vw, 70px);
  align-items: start;
}
.profile-aside { position: sticky; top: 24px; }
.services-block { margin-bottom: 34px; }
.services-block h2 {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.service-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.service-chips li {
  font-size: 0.78rem;
  padding: 7px 12px;
  background: var(--white);
  border: 1px solid var(--line);
}
.profile-main .prose > p:first-of-type::first-letter { float: none; font-size: inherit; color: inherit; padding: 0; font-family: inherit; }

/* ---------- DON hub ---------- */

.don-hero { background: var(--brand); color: #dbe6f2; padding: 72px 0 64px; }
.don-hero-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 50px;
  align-items: center;
}
.don-hero h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 5vw, 4.3rem);
  max-width: 17ch;
  margin-bottom: 20px;
}
.don-lead { color: #c9d8f0; max-width: 56ch; font-size: 1.05rem; }
.don-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.don-figure { border-left: 1px solid rgba(255,255,255,.25); padding-left: 40px; }
.don-figure-num {
  display: block;
  font-family: var(--display);
  font-size: 6rem;
  line-height: 0.9;
  color: var(--white);
}
.don-figure-label { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: #9fb6d2; }

.location-list { border-top: 1px solid var(--line); }
.location-row {
  display: grid;
  grid-template-columns: 70px 1fr 50px;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.location-num { font-family: var(--display); font-size: 1.5rem; color: var(--accent); }
.location-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.location-top h3 { font-size: 1.45rem; margin: 0 0 4px; }
.location-top h3 a:hover { color: var(--brand); }
.location-tagline { color: var(--muted); font-size: 0.88rem; margin-bottom: 12px; }
.location-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0;
  font-size: 0.82rem;
}
.location-facts dt { font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.location-facts dd { margin: 0; color: var(--ink-soft); }
.location-link {
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: background .2s, color .2s;
}
.location-link:hover { background: var(--brand); color: var(--white); border-color: var(--brand); }

.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.service-card { background: var(--paper-2); padding: 26px; }
.service-num { font-size: 0.68rem; letter-spacing: 0.12em; color: var(--accent); }
.service-card h3 { font-size: 1.3rem; margin: 16px 0 8px; }
.service-card p { font-size: 0.86rem; color: var(--ink-soft); margin: 0; }
.service-card-accent { background: var(--brand); color: #dbe6f2; }
.service-card-accent h3 { color: var(--white); }
.service-card-accent p { color: #c9d8f0; }


/* ---------- DON featured location ---------- */

.don-feature { background: var(--paper-2); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line); padding: 56px 0; }
.don-feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 60px); align-items: center; }
.don-feature-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--paper-3); }
.don-feature-copy h2 { font-size: clamp(1.9rem, 3.4vw, 3rem); margin-bottom: 10px; }
.don-feature-copy h2 a:hover { color: var(--brand); }
.don-feature-lead { color: var(--ink-soft); max-width: 48ch; }
.don-feature-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 20px 0; }
.don-feature-facts dt { font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.don-feature-facts dd { margin: 0; font-size: 0.84rem; color: var(--ink-soft); }
.chip-static { display: inline-block; padding: 7px 13px; border: 1px solid var(--line); background: var(--white); font-size: 0.76rem; color: var(--ink-soft); }

/* ---------- search ---------- */

.result-count { font-size: 0.78rem; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 26px; }
.search-hints { padding: 20px 0 40px; }
.search-hints h2 { font-size: 1.6rem; }

/* ---------- contact ---------- */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 0.85fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: start;
}
.contact-form-wrap { background: var(--white); border: 1px solid var(--line); padding: clamp(24px, 3vw, 40px); }

/* ---------- forms ---------- */

.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 12px 13px;
  font-size: 0.92rem;
  border-radius: 0;
  transition: border-color .2s ease, background .2s ease;
}
.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--brand);
  background: var(--white);
}
.form-row textarea { resize: vertical; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-2 > div { min-width: 0; }
.form-hint { font-size: 0.72rem; color: var(--muted); margin: 6px 0 0; }
.form-hint code { background: var(--paper-2); padding: 1px 4px; font-size: 0.9em; }
.form-note { font-size: 0.72rem; color: var(--muted); margin: 12px 0 0; }
.form-note a { text-decoration: underline; }
.form-honeypot { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.check-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.84rem;
  color: var(--ink-soft);
  margin: 10px 0;
}
.check-row input { width: auto; margin-top: 3px; accent-color: var(--brand); }

.alert { padding: 13px 16px; margin-bottom: 20px; font-size: 0.86rem; border-left: 3px solid; }
.alert-success { background: #e7f1ea; border-color: var(--success); color: #174a33; }
.alert-error { background: #f7e4e1; border-color: var(--danger); color: #6e211d; }

/* ---------- errors ---------- */

.error-section { padding: 90px 0 110px; }
.error-grid { display: grid; grid-template-columns: 1.4fr 0.6fr; gap: 60px; align-items: start; }
.error-code { font-family: var(--display); font-size: 7rem; line-height: 0.8; color: var(--accent); margin-bottom: 12px; }
.error-section h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); max-width: 16ch; }
.error-actions { display: flex; gap: 10px; margin-top: 26px; }
.error-links { background: var(--white); border: 1px solid var(--line); padding: 24px; }
.error-links h2 { font-size: 1.1rem; }
.error-detail { font-size: 0.75rem; background: var(--paper-2); padding: 12px; overflow: auto; }

/* ---------- admin ---------- */

.admin-body { background: #eef3f9; }
.admin-shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100vh; }
.admin-sidebar {
  background: var(--ink);
  color: #dbe6f2;
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand-admin .brand-word { color: var(--white); font-size: 1.7rem; }
.admin-panel-label { font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase; color: #9fb6d2; margin: 10px 0 26px; }
.admin-nav { display: flex; flex-direction: column; gap: 2px; }
.admin-nav a {
  padding: 10px 12px;
  font-size: 0.84rem;
  color: #dbe6f2;
  border-left: 2px solid transparent;
  transition: background .2s, color .2s, border-color .2s;
}
.admin-nav a:hover { background: rgba(255,255,255,.06); color: var(--white); }
.admin-nav a.is-active { background: rgba(255,255,255,.08); color: var(--white); border-left-color: var(--accent); }
.admin-sidebar-foot { margin-top: auto; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: 0.78rem; }
.admin-sidebar-foot a { color: #9fb6d2; }

.admin-main { min-width: 0; }
.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 14px 34px;
}
.admin-topbar-label { display: block; font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.admin-topbar strong { font-size: 0.88rem; }
.admin-content { padding: 32px 34px 70px; max-width: 1300px; }

.admin-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.admin-page-head h1 { font-size: clamp(1.8rem, 2.8vw, 2.6rem); margin: 0 0 6px; }
.admin-page-head .eyebrow { margin-bottom: 8px; font-size: 10px; }
.admin-page-head .eyebrow a { text-decoration: underline; }
.admin-lead { font-size: 0.88rem; color: var(--muted); margin: 0; }
.admin-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.admin-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 26px; }
.admin-stat { background: var(--white); border: 1px solid var(--line); padding: 18px; }
.admin-stat strong { display: block; font-family: var(--display); font-size: 2rem; line-height: 1; color: var(--brand); }
.admin-stat span { display: block; margin-top: 6px; font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.admin-stat-accent { border-left: 3px solid var(--accent); }

.admin-grid-2 { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 18px; }
.admin-grid-spaced { margin-top: 18px; }
.admin-panel {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 24px;
  margin-bottom: 18px;
}
.admin-panel h2 { font-family: var(--display); font-size: 1.25rem; margin-bottom: 16px; }
.admin-panel-spaced { margin-top: 18px; }
.admin-panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.admin-panel-head h2 { margin: 0; }
.admin-panel-danger { border-color: #e5c4bf; background: #fdf6f4; }

.admin-table { width: 100%; border-collapse: collapse; font-size: 0.84rem; }
.admin-table th {
  text-align: left;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 10px;
  border-bottom: 1px solid var(--ink);
}
.admin-table td { padding: 11px 10px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.admin-table tr:hover td { background: var(--paper); }
.admin-table a { font-weight: 500; }
.admin-table a:hover { color: var(--brand); text-decoration: underline; }
.admin-table small { display: block; color: var(--muted); font-size: 0.7rem; margin-top: 2px; }
.admin-table-wide { min-width: 640px; }
.admin-panel:has(.admin-table-wide) { overflow-x: auto; }
.admin-row-actions { text-align: right; white-space: nowrap; }
.admin-row-actions a { font-size: 0.74rem; color: var(--brand); }

.status {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 999px;
}
.status-published { background: #e3f0e7; color: var(--success); }
.status-draft { background: #e7eef7; color: #5d6f83; }

.admin-message-list { list-style: none; margin: 0; padding: 0; }
.admin-message-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--line-soft);
  font-size: 0.82rem;
}
.admin-message-list li.is-unread strong::before {
  content: "";
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 6px;
  vertical-align: middle;
}
.admin-message-list span { display: block; color: var(--muted); font-size: 0.76rem; }
.admin-message-list time { font-size: 0.72rem; color: var(--muted); white-space: nowrap; }

.admin-steps { margin: 0; padding-left: 1.2em; font-size: 0.88rem; color: var(--ink-soft); }
.admin-steps li { margin-bottom: 10px; }
.admin-steps strong { color: var(--ink); }

.admin-form-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.admin-form-main, .admin-form-side { min-width: 0; }
.admin-form-side { position: sticky; top: 18px; }
.admin-form-foot { display: flex; gap: 10px; margin-top: 8px; }
.admin-danger-zone { margin-top: 16px; }
.textarea-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.82rem; line-height: 1.6; }

.preview-box { margin: 18px 0; border: 1px solid var(--line); }
.preview-head { background: var(--paper-2); padding: 8px 14px; font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.preview-box .prose { padding: 20px; font-size: 0.92rem; }
.preview-box .prose > p:first-of-type::first-letter { float: none; font-size: inherit; padding: 0; }

.message-item { border-top: 1px solid var(--line); padding: 18px 0; }
.message-item:first-child { border-top: 0; }
.message-item.is-unread { border-left: 3px solid var(--accent); padding-left: 14px; }
.message-head { display: flex; justify-content: space-between; gap: 16px; font-size: 0.84rem; }
.message-contact { display: block; color: var(--muted); font-size: 0.76rem; }
.message-item h2 { font-size: 1.05rem; margin: 8px 0 4px; }
.message-body { font-size: 0.88rem; color: var(--ink-soft); white-space: pre-wrap; }
.message-actions { display: flex; gap: 8px; }
.admin-empty { color: var(--muted); font-size: 0.88rem; }

.admin-facts { margin: 0; font-size: 0.82rem; }
.admin-facts > div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line-soft); }
.admin-facts dt { color: var(--muted); }
.admin-facts dd { margin: 0; }
.admin-facts a { color: var(--brand); text-decoration: underline; }

.structure-notes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.structure-notes h3 { font-size: 1.1rem; margin-bottom: 6px; }
.structure-notes p { font-size: 0.84rem; color: var(--ink-soft); margin: 0; }

/* ---------- auth ---------- */

.auth-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: var(--paper-2);
  padding: 30px 18px;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 36px;
}
.auth-card-wide { max-width: 520px; }
.brand-auth { margin-bottom: 26px; }
.auth-card h1 { font-size: 2rem; margin-bottom: 8px; }
.auth-lead { font-size: 0.86rem; color: var(--muted); margin-bottom: 24px; }
.auth-foot { margin: 20px 0 0; font-size: 0.78rem; }
.auth-foot a { color: var(--brand); }

/* ---------- animation ---------- */

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise .7s cubic-bezier(.2,.7,.3,1) both; }
  .hero-copy > *:nth-child(2) { animation-delay: .06s; }
  .hero-copy > *:nth-child(3) { animation-delay: .12s; }
  .hero-copy > *:nth-child(4) { animation-delay: .18s; }
  .hero-copy > *:nth-child(5) { animation-delay: .24s; }
  .hero-visual { animation: fade .9s ease both; animation-delay: .1s; }
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.is-visible { opacity: 1; transform: none; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}
@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---------- responsive ---------- */

@media (max-width: 1120px) {
  .nav-toggle { display: flex; }
  .masthead { position: relative; padding-bottom: 22px; }
  .main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--paper);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-top: 0;
    padding: 8px 28px 18px;
    display: none;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    box-shadow: 0 20px 30px rgba(0,0,0,.06);
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 11px 0; border-bottom: 1px solid var(--line-soft); font-size: 0.9rem; }
  .main-nav a::after { display: none; }
  .nav-item { display: block; }
  .nav-item-dropdown { width: 100%; }
  .nav-item-dropdown > .nav-drop-trigger { width: 100%; justify-content: space-between; }
  .nav-dropdown {
    position: static;
    width: auto;
    padding: 4px 0 10px;
    background: transparent;
    border: 0;
    border-top: 1px solid var(--line-soft);
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }
  .nav-dropdown::before { display: none; }
  .nav-dropdown-head { padding: 8px 0 6px; }
  .nav-dropdown-grid { grid-template-columns: 1fr; gap: 0; }
  .main-nav .nav-dropdown a { padding: 8px 0 8px 6px; border-bottom: 1px solid var(--line-soft); font-size: .84rem; }
  .main-nav .nav-dropdown-all { padding: 10px 0; }
  .header-search { max-width: 150px; }
  .header-search input { width: 110px; }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .place-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-stats { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 980px) {
  .header-search { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 0; }
  .hero-visual img { aspect-ratio: 16 / 10; }
  .hero-caption { left: 16px; right: 16px; bottom: -18px; }
  .stat-strip { margin-top: 44px; }
  .lead-grid, .principles-grid, .contact-layout, .don-hero-grid { grid-template-columns: 1fr; }
  .don-figure { border-left: 0; border-top: 1px solid rgba(255,255,255,.25); padding: 24px 0 0; }
  .don-figure-num { font-size: 4rem; }
  .category-layout, .article-layout, .page-layout, .profile-layout { grid-template-columns: 1fr; }
  .category-aside, .article-aside, .page-aside, .profile-aside { position: static; }
  .article-body { max-width: none; }
  .profile-grid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-form-grid { grid-template-columns: 1fr; }
  .admin-form-side { position: static; }
  .admin-grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .topbar-note { display: none; }
  .ranking-band-inner { align-items: flex-start; flex-direction: column; gap: 12px; padding-top: 18px; padding-bottom: 18px; }
  .ranking-band-copy { display: block; }
  .ranking-band-label { display: block; margin-bottom: 6px; }
  .section { padding: 60px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .story-link, .story-compact .story-link { grid-template-columns: 140px 1fr; gap: 18px; }
  .story p { display: none; }
  .location-row { grid-template-columns: 46px 1fr; }
  .location-link { display: none; }
  .location-facts { grid-template-columns: 1fr; gap: 8px; }
  .don-feature-grid { grid-template-columns: 1fr; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; height: auto; }
  .admin-nav { flex-direction: row; flex-wrap: wrap; }
  .admin-nav a { border-left: 0; border-bottom: 2px solid transparent; }
  .admin-nav a.is-active { border-bottom-color: var(--accent); }
  .admin-sidebar-foot { margin-top: 16px; }
  .admin-content, .admin-topbar { padding-left: 20px; padding-right: 20px; }
  .admin-page-head { flex-direction: column; align-items: flex-start; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .structure-notes { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .shell { padding: 0 18px; }
  .topbar-inner { justify-content: center; }
  .topbar-inner > span:first-child { display: none; }
  .hero { padding-top: 40px; }
  .hero h1 { font-size: clamp(2.6rem, 12vw, 3.6rem); }
  .hero-search { flex-direction: column; border: 0; background: transparent; gap: 8px; }
  .hero-search input { border: 1px solid var(--ink); background: var(--white); }
  .hero-search button { padding: 14px; }
  .category-grid { grid-template-columns: 1fr 1fr; }
  .category-card { min-height: 180px; padding: 18px 16px 22px; }
  .cat-name { font-size: 1.1rem; }
  .cat-desc { font-size: 0.74rem; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .stat:nth-child(odd) { border-right: 1px solid var(--line-soft); }
  .place-grid, .place-grid-2 { grid-template-columns: 1fr; }
  .story-link, .story-compact .story-link { grid-template-columns: 1fr; gap: 14px; }
  .story-media img { aspect-ratio: 16 / 9; }
  .story-body { padding-right: 0; }
  .story p { display: block; }
  .service-grid { grid-template-columns: 1fr; }
  .don-feature-facts { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-bottom { flex-direction: column; gap: 6px; }
  .form-row-2 { grid-template-columns: 1fr; }
  .article-cover img, .profile-cover img { aspect-ratio: 4 / 3; }
  .prose { font-size: 0.98rem; }
  .prose table { display: block; overflow-x: auto; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .error-grid { grid-template-columns: 1fr; gap: 30px; }
  .admin-stats { grid-template-columns: 1fr 1fr; }
  .admin-actions { width: 100%; }
  .admin-actions .btn { flex: 1; }
  .auth-card { padding: 26px 20px; }
}

.category-card-cta { background: var(--ink); color: var(--white); }
.category-card-cta .cat-name { color: var(--white); }
.category-card-cta .cat-desc { color: #c9d8f0; }
.category-card-cta .cat-num { color: #c9d8f0; }
.category-card-cta .cat-arrow { color: var(--white); }
.category-card-cta:hover { background: var(--brand); }
