/* ==========================================================================
   ZestNordicNoodl — Contemporary Nordic European Travel Editorial
   Palette: Fjord Teal #397C72 · Eucalyptus #A9C6B7 · Harbour Gold #D8B66D
            Nordic Mist #F3F5F0 · Surface #FFFFFF · Text #263532
            Muted #7C8B84 · Border #DDE5DE
   ========================================================================== */

:root {
  --primary: #397C72;
  --primary-dark: #2c6159;
  --secondary: #A9C6B7;
  --secondary-soft: #e3eee8;
  --accent: #D8B66D;
  --accent-soft: #f4ead2;
  --bg: #F3F5F0;
  --surface: #FFFFFF;
  --surface-glass: rgba(255, 255, 255, 0.72);
  --text: #263532;
  --muted: #7C8B84;
  --muted-strong: #56655e;
  --border: #DDE5DE;
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --radius-sm: 10px;
  --radius: 22px;
  --radius-lg: 34px;
  --shadow-soft: 0 10px 30px -18px rgba(38, 53, 50, 0.35);
  --shadow: 0 24px 60px -30px rgba(38, 53, 50, 0.38);
  --max: 1240px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 92% -10%, rgba(169, 198, 183, 0.35), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(216, 182, 109, 0.12), transparent 60%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--primary-dark); text-underline-offset: 3px; }
a:hover { color: var(--primary); }

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.6rem, 6.5vw, 5.8rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.55rem); }
p { margin: 0 0 1em; }

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

.skip-link {
  position: absolute;
  left: 1rem; top: -60px;
  background: var(--text); color: #fff;
  padding: .6rem 1rem; border-radius: 8px;
  z-index: 100; text-decoration: none;
}
.skip-link:focus { top: 1rem; color: #fff; }

.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.section { padding: clamp(3.5rem, 7vw, 6.5rem) 0; }
.section-tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .78rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--primary-dark);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px; background: var(--accent);
}

.lede {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1.9vw, 1.5rem);
  line-height: 1.5;
  color: var(--muted-strong);
  max-width: 44ch;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2rem; align-items: end;
  margin-bottom: 2.6rem;
}
.section-head p { color: var(--muted-strong); max-width: 52ch; margin: 0; }

/* ----------------------------------------------------------------------
   Header — intentionally NON-sticky (scrolls away with the document)
   ---------------------------------------------------------------------- */
.site-header {
  position: relative; /* never fixed or sticky */
  z-index: 20;
  border-bottom: 1px solid var(--border);
  background: rgba(243, 245, 240, 0.85);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding: 1.1rem 0;
}
.brand {
  display: inline-flex; align-items: center; gap: .7rem;
  text-decoration: none; color: var(--text);
}
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-name { font-family: var(--serif); font-size: 1.45rem; letter-spacing: -.01em; }
.brand-name span { color: var(--primary); font-style: italic; }
.brand-tag {
  display: block; font-family: var(--sans);
  font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted-strong);
}

.site-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: .35rem; align-items: center;
}
.site-nav a {
  display: inline-block; padding: .5rem .9rem;
  font-size: .94rem; font-weight: 500;
  color: var(--text); text-decoration: none;
  border-radius: 999px;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.site-nav a:hover { background: var(--secondary-soft); color: var(--primary-dark); }
.site-nav a[aria-current="page"] { background: var(--text); color: #fff; }

.nav-toggle {
  display: none;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; padding: .5rem 1rem;
  font: 600 .9rem var(--sans); color: var(--text); cursor: pointer;
}

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; width: 100%; }
  .site-nav.is-open { display: block; }
  .header-inner { flex-wrap: wrap; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: .5rem 0 1rem; }
  .site-nav a { display: block; }
}

/* ----------------------------------------------------------------------
   Buttons, chips, labels
   ---------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .78rem 1.25rem;
  border-radius: 999px;
  font: 600 .92rem/1.2 var(--sans);
  text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease), color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 10px 22px -12px rgba(57, 124, 114, .8); }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--secondary); color: var(--primary-dark); background: #fbfcfa; }
.btn-gold { background: var(--accent); color: var(--text); }
.btn-gold:hover { background: #cfa955; color: var(--text); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.chip-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  border: 1px solid var(--border);
  background: var(--surface-glass);
  color: var(--text);
  padding: .48rem .95rem;
  border-radius: 999px;
  font: 500 .86rem var(--sans);
  cursor: pointer;
  transition: all .22s var(--ease);
}
.chip:hover { border-color: var(--secondary); background: var(--secondary-soft); }
.chip[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: #fff; }

.label {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .24rem .65rem;
  border-radius: 999px;
  font: 600 .7rem/1.4 var(--sans);
  letter-spacing: .08em; text-transform: uppercase;
  background: var(--secondary-soft); color: var(--primary-dark);
}
.label-gold { background: var(--accent-soft); color: #6b5320; }
.label-dark { background: var(--text); color: #fff; }
.label-outline { background: transparent; border: 1px solid var(--border); color: var(--muted-strong); }

/* ----------------------------------------------------------------------
   Hero — "Nordic Travel Drift"
   ---------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(4rem, 8vw, 7rem);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
.hero-copy { position: relative; z-index: 3; }
.hero h1 { margin-bottom: .3em; }
.hero h1 em { font-style: italic; color: var(--primary); }
.hero-sub { font-family: var(--serif); font-size: clamp(1.15rem, 2vw, 1.45rem); color: var(--muted-strong); max-width: 40ch; }

.rotator-line {
  display: flex; align-items: center; gap: .6rem;
  font-size: .9rem; color: var(--muted-strong); margin: 1.4rem 0 1.6rem;
}
.rotator-word {
  display: inline-block;
  font-weight: 600; color: var(--primary-dark);
  border-bottom: 2px solid var(--accent);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.rotator-word.is-swapping { opacity: 0; transform: translateY(6px); }

.search-panel {
  display: flex; gap: .5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .4rem .4rem .4rem 1.2rem;
  box-shadow: var(--shadow-soft);
  max-width: 560px;
}
.search-panel:focus-within { border-color: var(--primary); }
.search-panel input {
  flex: 1; border: 0; background: transparent;
  font: 400 1rem var(--sans); color: var(--text); min-width: 0;
}
.search-panel input:focus { outline: none; }
.search-panel input::placeholder { color: var(--muted); }
.search-hint { font-size: .82rem; color: var(--muted-strong); margin-top: .7rem; }

.hero-visual {
  position: relative;
  min-height: 560px;
}
.drift-layer {
  position: absolute;
  transform: translate3d(var(--dx, 0px), var(--dy, 0px), 0);
  transition: transform .9s var(--ease);
  will-change: transform;
}
.drift-float { animation: floatSoft 11s ease-in-out infinite; }
.drift-layer:nth-child(2) .drift-float { animation-delay: -3s; animation-duration: 13s; }
.drift-layer:nth-child(3) .drift-float { animation-delay: -6s; animation-duration: 9s; }
.drift-layer:nth-child(4) .drift-float { animation-delay: -2s; animation-duration: 15s; }

.drift-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--secondary-soft);
  border: 6px solid var(--surface);
}
.drift-photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.78) sepia(.08) contrast(1.02); }

.layer-fjord-main { top: 0; right: 4%; width: 62%; }
.layer-fjord-main .drift-photo { aspect-ratio: 4 / 5; border-radius: 160px 160px var(--radius-lg) var(--radius-lg); }
.layer-train-window { bottom: 4%; left: 0; width: 44%; }
.layer-train-window .drift-photo { aspect-ratio: 1; border-radius: 50%; }
.layer-cafe-street { bottom: 0; right: 0; width: 34%; }
.layer-cafe-street .drift-photo { aspect-ratio: 3 / 4; }
.layer-compass { top: 6%; left: 4%; width: 32%; opacity: .9; }

.floating-note {
  position: absolute; z-index: 4;
  background: var(--surface-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 16px;
  padding: .85rem 1rem;
  font-size: .82rem; line-height: 1.45;
  box-shadow: var(--shadow-soft);
  max-width: 230px;
}
.floating-note strong { display: block; font-family: var(--serif); font-size: 1.05rem; font-weight: 500; }
.note-one { top: 40%; left: 26%; }
.note-two { top: 8%; right: 0; }

.organic-blob {
  position: absolute; z-index: 0; pointer-events: none;
  border-radius: 50% 42% 58% 46% / 48% 56% 44% 52%;
  filter: blur(2px);
}
.blob-a { width: 520px; height: 520px; right: -120px; top: -80px; background: radial-gradient(circle at 30% 30%, rgba(169, 198, 183, .55), rgba(169, 198, 183, 0) 70%); }
.blob-b { width: 340px; height: 340px; left: -120px; bottom: -80px; background: radial-gradient(circle at 50% 50%, rgba(216, 182, 109, .25), rgba(216, 182, 109, 0) 70%); }

@keyframes floatSoft {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(.6deg); }
}
@keyframes spinSlow { to { transform: rotate(360deg); } }
.compass-spin { animation: spinSlow 60s linear infinite; transform-origin: center; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 440px; }
  .section-head { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .hero-visual { min-height: 360px; }
  .floating-note { display: none; }
}

/* Page hero (sub-pages) */
.page-hero { padding: clamp(3rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3rem); position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); max-width: 18ch; }

.breadcrumb { font-size: .84rem; color: var(--muted-strong); margin-bottom: 1.4rem; }
.breadcrumb a { color: var(--muted-strong); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: .4rem; color: var(--muted); }

/* ----------------------------------------------------------------------
   Travel guide cards
   ---------------------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.6rem;
}
.card-grid.featured {
  grid-template-columns: 1.3fr 1fr 1fr;
}
.card-grid.featured .research-card:first-child { grid-row: span 2; }
.card-grid.featured .research-card:first-child .card-media { aspect-ratio: 4 / 4.2; }
@media (max-width: 1000px) {
  .card-grid.featured { grid-template-columns: 1fr 1fr; }
  .card-grid.featured .research-card:first-child { grid-row: auto; grid-column: span 2; }
  .card-grid.featured .research-card:first-child .card-media { aspect-ratio: 16 / 9; }
}
@media (max-width: 640px) {
  .card-grid.featured { grid-template-columns: 1fr; }
  .card-grid.featured .research-card:first-child { grid-column: auto; }
}

.research-card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--surface-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s;
}
.research-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--secondary); }
.card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; margin: 0; background: var(--secondary-soft); }
.card-media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.8) sepia(.06);
  transition: transform .9s var(--ease), filter .5s;
}
.research-card:hover .card-media img { transform: scale(1.06); filter: saturate(.95) sepia(0); }
.card-media .label { position: absolute; top: 1rem; left: 1rem; }
.card-body { display: flex; flex-direction: column; gap: .7rem; padding: 1.4rem 1.4rem 1.5rem; flex: 1; }
.card-meta { display: flex; flex-wrap: wrap; gap: .4rem; }
.card-body h3 { margin: 0; }
.card-body p { color: var(--muted-strong); font-size: .96rem; margin: 0; }
.card-facts { font-size: .82rem; color: var(--muted-strong); border-top: 1px dashed var(--border); padding-top: .7rem; margin-top: auto; }
.card-facts strong { color: var(--text); font-weight: 600; }
.card-actions { display: flex; flex-wrap: wrap; gap: .55rem; padding-top: .4rem; }
.card-actions .btn { flex: 1 1 auto; padding: .7rem 1rem; font-size: .86rem; }

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1.5rem;
  border: 1px dashed var(--secondary);
  border-radius: var(--radius);
  background: var(--surface-glass);
  color: var(--muted-strong);
}

.results-meta { font-size: .9rem; color: var(--muted-strong); margin: 0 0 1.4rem; }

/* Toolbar (listings) */
.toolbar {
  display: grid; gap: 1.2rem;
  background: var(--surface-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-soft);
}
.toolbar-row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.toolbar .search-panel { flex: 1 1 340px; max-width: none; box-shadow: none; }
.select-wrap { display: flex; align-items: center; gap: .6rem; font-size: .9rem; color: var(--muted-strong); }
.select-wrap select {
  font: 500 .92rem var(--sans); color: var(--text);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; padding: .6rem 1rem; cursor: pointer;
}

/* ----------------------------------------------------------------------
   Key numbers & explainers
   ---------------------------------------------------------------------- */
.evidence-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem;
}
@media (max-width: 1000px) { .evidence-strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .evidence-strip { grid-template-columns: 1fr; } }
.evidence-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex; flex-direction: column; gap: .6rem;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.evidence-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.evidence-figure { font-family: var(--serif); font-size: 2.6rem; line-height: 1; color: var(--primary); }
.evidence-card p { font-size: .92rem; color: var(--muted-strong); margin: 0; }
.evidence-card .source { font-size: .78rem; margin-top: auto; }

.explainer {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start;
}
@media (max-width: 900px) { .explainer { grid-template-columns: 1fr; } }
.pathway { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; counter-reset: step; }
.pathway li {
  position: relative;
  display: grid; grid-template-columns: 64px 1fr; gap: 1rem; align-items: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
}
.pathway-icon {
  width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--secondary-soft);
}
.pathway h3 { font-size: 1.2rem; margin-bottom: .25rem; }
.pathway p { font-size: .94rem; color: var(--muted-strong); margin: 0; }

.ladder { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 900px) { .ladder { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .ladder { grid-template-columns: 1fr; } }
.ladder-step {
  border-radius: var(--radius);
  padding: 1.4rem;
  border: 1px solid var(--border);
  background: var(--surface);
}
.ladder-step:nth-child(1) { background: var(--text); color: #fff; border-color: var(--text); }
.ladder-step:nth-child(1) p { color: #d9e3de; }
.ladder-step:nth-child(2) { background: var(--secondary-soft); }
.ladder-step:nth-child(3) { background: var(--accent-soft); }
.ladder-step h3 { font-size: 1.15rem; }
.ladder-step p { font-size: .9rem; margin: 0; color: var(--muted-strong); }

.article-list { display: grid; gap: 0; border-top: 1px solid var(--border); }
.article-row {
  display: grid; grid-template-columns: 120px 1fr auto; gap: 1.5rem; align-items: center;
  padding: 1.5rem 0; border-bottom: 1px solid var(--border);
  text-decoration: none; color: var(--text);
  transition: padding .35s var(--ease), background .35s;
}
.article-row:hover { padding-left: .8rem; color: var(--text); background: linear-gradient(90deg, rgba(169, 198, 183, .18), transparent); }
.article-row .num { font-family: var(--serif); font-size: 2rem; color: var(--accent); }
.article-row h3 { margin: 0 0 .2rem; }
.article-row p { margin: 0; color: var(--muted-strong); font-size: .94rem; }
@media (max-width: 640px) { .article-row { grid-template-columns: 1fr; gap: .4rem; } }

.notice-panel {
  display: grid; grid-template-columns: auto 1fr; gap: 1.2rem;
  background: var(--accent-soft);
  border: 1px solid #ead9b0;
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
}
.notice-panel p { margin: 0 0 .5rem; font-size: .96rem; }
.notice-panel p:last-child { margin: 0; }
.notice-icon { width: 42px; height: 42px; flex: none; }

/* ----------------------------------------------------------------------
   Editorial prose (guide, detail, legal)
   ---------------------------------------------------------------------- */
.editorial-layout {
  display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem);
}
@media (max-width: 900px) { .editorial-layout { grid-template-columns: 1fr; } }
.toc {
  align-self: start;
  border-left: 2px solid var(--border);
  padding-left: 1.1rem;
  font-size: .9rem;
}
.toc h2 { font-family: var(--sans); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-strong); font-weight: 600; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--primary); }

.prose { max-width: 74ch; }
.prose h2 { margin-top: 2.6rem; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.8rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .45rem; }
.prose blockquote, .pull-note {
  margin: 2rem 0;
  padding: 1.3rem 1.5rem;
  border-left: 3px solid var(--accent);
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--serif); font-size: 1.15rem;
}
.prose table, .data-table {
  width: 100%; border-collapse: collapse;
  font-size: .92rem; margin: 1.4rem 0;
  background: var(--surface); border-radius: var(--radius-sm); overflow: hidden;
}
.prose th, .prose td, .data-table th, .data-table td {
  text-align: left; padding: .75rem .9rem; border-bottom: 1px solid var(--border); vertical-align: top;
}
.prose th, .data-table th { background: var(--secondary-soft); font-weight: 600; }

.annotation {
  float: right; width: 260px; margin: .3rem -40px 1.2rem 2rem;
  background: var(--surface-glass); border: 1px solid var(--border);
  border-radius: 18px; padding: 1rem 1.1rem; font-size: .86rem; color: var(--muted-strong);
  box-shadow: var(--shadow-soft);
}
.annotation strong { display: block; color: var(--text); font-family: var(--serif); font-size: 1rem; font-weight: 500; margin-bottom: .3rem; }
@media (max-width: 1100px) { .annotation { float: none; width: auto; margin: 1.4rem 0; } }

.editorial-figure { margin: 2rem 0; }
.editorial-figure img { border-radius: var(--radius); width: 100%; aspect-ratio: 16 / 8; object-fit: cover; filter: saturate(.8) sepia(.06); }
.editorial-figure figcaption { font-size: .84rem; color: var(--muted-strong); margin-top: .6rem; }

/* Detail page */
.detail-hero {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
@media (max-width: 900px) { .detail-hero { grid-template-columns: 1fr; } }
.detail-hero .card-meta { margin-bottom: 1rem; }
.detail-figure { margin: 0; position: relative; }
.detail-figure img { border-radius: 200px 200px var(--radius-lg) var(--radius-lg); aspect-ratio: 4 / 4.4; object-fit: cover; width: 100%; box-shadow: var(--shadow); filter: saturate(.82) sepia(.06); }
.detail-figure figcaption { font-size: .82rem; color: var(--muted-strong); margin-top: .7rem; }
.detail-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.6rem; }

.fact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.fact { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 1rem 1.1rem; }
.fact dt { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-strong); font-weight: 600; }
.fact dd { margin: .3rem 0 0; font-size: .95rem; }

.study-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 1.2rem 0;
  transition: box-shadow .35s var(--ease);
}
.study-card:hover { box-shadow: var(--shadow-soft); }
.study-card h3 { margin: 0 0 .7rem; }
.study-card dl { display: grid; grid-template-columns: 150px 1fr; gap: .4rem 1rem; margin: 0 0 .8rem; font-size: .93rem; }
.study-card dt { font-weight: 600; color: var(--muted-strong); }
.study-card dd { margin: 0; }
@media (max-width: 560px) { .study-card dl { grid-template-columns: 1fr; } .study-card dd { margin-bottom: .5rem; } }

.gallery {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1rem;
}
.gallery figure { margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--secondary-soft); }
.gallery figure:first-child { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform .9s var(--ease); filter: saturate(.8) sepia(.06); }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption { font-size: .8rem; padding: .6rem .8rem; color: var(--muted-strong); background: var(--surface); }
@media (max-width: 700px) { .gallery { grid-template-columns: 1fr 1fr; } .gallery figure:first-child { grid-column: span 2; grid-row: auto; } }

.reference-list { padding-left: 1.2rem; font-size: .92rem; }
.reference-list li { margin-bottom: .75rem; }
.reference-list .ref-meta { color: var(--muted-strong); }

.related-links { display: flex; flex-wrap: wrap; gap: .6rem; }

/* Legal / about */
.info-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; margin: 2rem 0; }
.info-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; }
.info-card h3 { font-size: 1.15rem; }
.info-card p { font-size: .94rem; color: var(--muted-strong); margin: 0; }
.placeholder-flag {
  display: inline-block; margin-left: .35rem;
  font: 600 .66rem var(--sans); letter-spacing: .08em; text-transform: uppercase;
  background: var(--accent-soft); color: #6b5320; border-radius: 6px; padding: .12rem .4rem; vertical-align: middle;
}
.contact-form { display: grid; gap: 1rem; max-width: 560px; }
.contact-form label { font-weight: 600; font-size: .9rem; display: grid; gap: .35rem; }
.contact-form input, .contact-form textarea, .contact-form select {
  font: 400 1rem var(--sans); color: var(--text);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: .8rem 1rem;
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
.form-status { font-size: .9rem; color: var(--primary-dark); min-height: 1.4em; }

/* ----------------------------------------------------------------------
   Footer
   ---------------------------------------------------------------------- */
.site-footer {
  background: var(--text);
  color: #dfe7e2;
  padding: 4rem 0 2rem;
  margin-top: 3rem;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: ""; position: absolute; right: -160px; top: -160px; width: 420px; height: 420px;
  border-radius: 50%; background: radial-gradient(circle, rgba(169, 198, 183, .18), transparent 70%);
}
.site-footer a { color: #f3f5f0; }
.site-footer a:hover { color: var(--accent); }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem;
  padding-bottom: 2.5rem; border-bottom: 1px solid rgba(221, 229, 222, .16);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .brand { color: #fff; }
.footer-brand .brand-tag { color: #b9c8c0; }
.footer-brand p { font-size: .92rem; color: #c3d0c9; margin-top: 1rem; }
.site-footer h2 { font-family: var(--sans); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; font-weight: 600; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; font-size: .93rem; }
.site-footer address { font-style: normal; font-size: .92rem; line-height: 1.7; color: #dfe7e2; }
.footer-notices { display: grid; gap: 1rem; padding: 2rem 0; font-size: .86rem; line-height: 1.6; color: #c9d5cf; }
.footer-notices p { margin: 0; }
.footer-notices .mandatory {
  border: 1px solid rgba(216, 182, 109, .45);
  background: rgba(216, 182, 109, .08);
  border-radius: 14px; padding: 1rem 1.2rem; color: #ecf1ee;
}
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .82rem; color: #aebdb5; padding-top: 1.2rem; border-top: 1px solid rgba(221, 229, 222, .16); }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: #f3f5f0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-button:hover { color: var(--accent); }

/* ----------------------------------------------------------------------
   Cookie consent
   ---------------------------------------------------------------------- */
.cookie-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 90;
  max-width: 760px; margin-inline: auto;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.4rem 1.5rem;
  transform: translateY(20px); opacity: 0;
  transition: transform .45s var(--ease), opacity .45s var(--ease);
}
.cookie-banner.is-visible { transform: translateY(0); opacity: 1; }
.cookie-banner h2 { font-size: 1.3rem; margin-bottom: .4rem; }
.cookie-banner p { font-size: .9rem; color: var(--muted-strong); margin-bottom: .9rem; }
.cookie-options { display: grid; gap: .6rem; margin: 0 0 1rem; padding: 1rem; border-radius: 14px; background: var(--bg); border: 1px solid var(--border); }
.cookie-options[hidden] { display: none; }
.cookie-options label { display: flex; gap: .7rem; align-items: flex-start; font-size: .88rem; }
.cookie-options input { margin-top: .25rem; accent-color: var(--primary); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cookie-actions .btn { padding: .65rem 1.05rem; font-size: .86rem; }

/* ----------------------------------------------------------------------
   Reveal animations (progressive: only hidden when JS is active)
   ---------------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal-img { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--ease); }
.js .reveal-img.is-visible { clip-path: inset(0 0 0 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal, .js .reveal-img { opacity: 1; transform: none; clip-path: none; }
  .drift-layer { transform: none !important; }
}