/* ==========================================================================
   Venice Water Inform — "Lagoon Atlas" design system
   One stylesheet for the whole site. Light theme on warm paper.
   Sections:
    1. Tokens            9. Island grid          17. Glossary
    2. Reset & base     10. Lagoon map           18. Legal pages
    3. Typography       11. Article layout/TOC   19. Contact form
    4. Layout utils     12. Figures & gallery    20. Consent banner/dialog
    5. Buttons & links  13. Boxes (fact, callout)21. 404
    6. Header & nav     14. Route card           22. Utilities
    7. Hero variants    15. Tables & timeline    23. Motion & print
    8. Numbers band     16. Cards, FAQ, related
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --paper: #F5EFE4;
  --paper-2: #EDE3D1;
  --paper-3: #E4D6BC;
  --paper-light: #FBF8F2;
  --ink: #1D2326;
  --ink-soft: #4A5356;
  --lagoon: #1E5B5A;
  --lagoon-tint: #D7E2DB;
  --canal: #0F3239;
  --red: #A63D2A;
  --ochre: #C8963E;
  --ochre-ink: #7E5A1C;
  --hairline: #CDBFA6;
  --hairline-soft: rgba(205, 191, 166, .5);

  --font-display: 'Cormorant Garamond', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --font-body: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  --radius-sm: 2px;
  --radius: 3px;
  --radius-lg: 4px;

  --container: 76rem;
  --measure: 44rem;
  --gutter: 1rem;

  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --section-pad: clamp(3.25rem, 2rem + 4.5vw, 6.5rem);

  --shadow: 0 1px 0 rgba(29, 35, 38, .04), 0 12px 28px -20px rgba(15, 50, 57, .45);
  --shadow-lg: 0 2px 0 rgba(29, 35, 38, .04), 0 22px 44px -24px rgba(15, 50, 57, .55);

  --wave-lagoon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='12' viewBox='0 0 48 12'%3E%3Cpath d='M0 6 Q12 0 24 6 T48 6' fill='none' stroke='%231E5B5A' stroke-width='1.2'/%3E%3C/svg%3E");
  --wave-ochre: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='12' viewBox='0 0 48 12'%3E%3Cpath d='M0 6 Q12 0 24 6 T48 6' fill='none' stroke='%23C8963E' stroke-width='1.2'/%3E%3C/svg%3E");
  --wave-red: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='12' viewBox='0 0 48 12'%3E%3Cpath d='M0 6 Q12 0 24 6 T48 6' fill='none' stroke='%23A63D2A' stroke-width='1.2'/%3E%3C/svg%3E");
  --wave-footer: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='16' viewBox='0 0 120 16'%3E%3Cpath d='M0 16 V8 C10 2 20 2 30 8 S50 14 60 8 S80 2 90 8 S110 14 120 8 V16 Z' fill='%230F3239'/%3E%3C/svg%3E");
  --chart-grid: linear-gradient(var(--hairline-soft) 1px, transparent 1px), linear-gradient(90deg, var(--hairline-soft) 1px, transparent 1px);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-wrap: break-word;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; }
img { height: auto; display: block; }
figure { margin: 0; }
p, ul, ol, dl, blockquote, h1, h2, h3, h4, h5, h6 { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
hr {
  border: 0;
  height: 12px;
  margin: var(--space-7) 0;
  background: var(--wave-ochre) repeat-x center / 48px 12px;
}
abbr[title] { text-decoration: underline dotted; text-underline-offset: .2em; }
::selection { background: var(--lagoon); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}
:focus:not(:focus-visible) { outline: none; }
[tabindex="-1"]:focus { outline: none; }

/* 3. Typography ------------------------------------------------------------ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.005em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(2.45rem, 1.55rem + 3.4vw, 4.6rem); line-height: 1.02; letter-spacing: -.012em; }
h2 { font-size: clamp(1.85rem, 1.4rem + 1.7vw, 2.75rem); }
h3 { font-size: clamp(1.35rem, 1.2rem + .5vw, 1.6rem); line-height: 1.2; }
h4 {
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
em, i { font-style: italic; }
strong, b { font-weight: 700; }

a {
  color: var(--lagoon);
  text-decoration-line: underline;
  text-decoration-color: var(--ochre);
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
  transition: color .15s ease, text-decoration-color .15s ease;
}
a:hover { color: var(--red); text-decoration-color: var(--red); }

.kicker {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.22rem;
  line-height: 1.2;
  color: var(--red);
  margin-bottom: .55rem;
}
.kicker::before {
  content: "";
  flex: 0 0 1.9rem;
  height: 1px;
  background: var(--ochre);
}
.kicker--plain::before { display: none; }
.kicker--light { color: var(--ochre); }

.lede {
  font-size: clamp(1.12rem, 1.02rem + .4vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 40rem;
}

.numeral {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-variant-numeric: lining-nums;
}

.small, small { font-size: .875rem; }
.muted { color: var(--ink-soft); }

/* 4. Layout ---------------------------------------------------------------- */
.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}
.container--narrow { width: min(100% - 2 * var(--gutter), 48rem); }
.container--wide { width: min(100% - 2 * var(--gutter), 86rem); }

.section { padding-block: var(--section-pad); }
.section--tight { padding-block: clamp(2rem, 1.4rem + 2.5vw, 3.5rem); }
.section--flush-top { padding-top: 0; }
.section--tint { background: var(--paper-2); }
.section--chart {
  background-color: var(--paper-2);
  background-image: var(--chart-grid);
  background-size: 56px 56px;
  background-position: center top;
}
.section--deep {
  background: var(--canal);
  color: var(--paper);
}
.section--deep h2, .section--deep h3 { color: var(--paper); }
.section--deep a { color: var(--paper); text-decoration-color: var(--ochre); }
.section--deep a:hover { color: var(--ochre); }
.section--deep :focus-visible { outline-color: var(--ochre); }

.section-head { margin-bottom: clamp(1.75rem, 1.2rem + 2vw, 3rem); max-width: 46rem; }
.section-head > * + * { margin-top: .75rem; }
.section-head .kicker + h2 { margin-top: 0; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .kicker { justify-content: center; }
.section-head--center .kicker::after {
  content: "";
  flex: 0 0 1.9rem;
  height: 1px;
  background: var(--ochre);
}
.section-head--center .lede { margin-inline: auto; }
.section-head--split { max-width: none; display: grid; gap: 1rem 3rem; align-items: end; }
@media (min-width: 60rem) {
  .section-head--split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .section-head--split > * + * { margin-top: 0; }
}

.flow > * + * { margin-top: var(--flow-space, 1.05em); }

.grid-2 { display: grid; gap: var(--space-6); }
@media (min-width: 48rem) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.split {
  display: grid;
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: center;
}
@media (min-width: 56rem) {
  .split { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
  .split--reverse > :first-child { order: 2; }
}

/* Wave-line section divider */
.wave-rule {
  display: block;
  height: 12px;
  margin: 0;
  border: 0;
  background: var(--wave-lagoon) repeat-x center / 48px 12px;
  opacity: .9;
}
.wave-rule--ochre { background-image: var(--wave-ochre); }
.wave-rule--red { background-image: var(--wave-red); }
.wave-rule--short { width: 9rem; margin-inline: auto; }
.wave-rule--ornament {
  position: relative;
  background:
    var(--wave-lagoon) repeat-x left center / 48px 12px;
  -webkit-mask: linear-gradient(90deg, #000 calc(50% - 2.2rem), transparent calc(50% - 2.2rem), transparent calc(50% + 2.2rem), #000 calc(50% + 2.2rem));
  mask: linear-gradient(90deg, #000 calc(50% - 2.2rem), transparent calc(50% - 2.2rem), transparent calc(50% + 2.2rem), #000 calc(50% + 2.2rem));
}
.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-block: var(--space-6);
  color: var(--ochre);
}
.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 12px;
  background: var(--wave-lagoon) repeat-x center / 48px 12px;
}
.divider svg { width: 22px; height: 22px; flex: none; }

/* Double rule */
.double-rule {
  height: 4px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

/* Corner ticks (chart registration marks) */
.corner-ticks { position: relative; }
.corner-ticks::before {
  content: "";
  position: absolute;
  inset: 7px;
  pointer-events: none;
  --t: var(--ochre);
  background:
    linear-gradient(var(--t), var(--t)) left top / 12px 1px no-repeat,
    linear-gradient(var(--t), var(--t)) left top / 1px 12px no-repeat,
    linear-gradient(var(--t), var(--t)) right top / 12px 1px no-repeat,
    linear-gradient(var(--t), var(--t)) right top / 1px 12px no-repeat,
    linear-gradient(var(--t), var(--t)) left bottom / 12px 1px no-repeat,
    linear-gradient(var(--t), var(--t)) left bottom / 1px 12px no-repeat,
    linear-gradient(var(--t), var(--t)) right bottom / 12px 1px no-repeat,
    linear-gradient(var(--t), var(--t)) right bottom / 1px 12px no-repeat;
}

/* 5. Buttons & link styles ------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 2.9rem;
  padding: .75rem 1.35rem;
  border: 1px solid var(--canal);
  border-radius: var(--radius-sm);
  background: var(--canal);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .13em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--lagoon); border-color: var(--lagoon); color: var(--paper); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--paper-2); color: var(--ink); border-color: var(--ink); }
.btn--light { background: var(--paper); color: var(--canal); border-color: var(--paper); }
.btn--light:hover { background: var(--ochre); border-color: var(--ochre); color: var(--canal); }
.btn--text {
  background: none;
  border-color: transparent;
  color: var(--lagoon);
  padding-inline: .4rem;
  text-decoration: underline;
  text-decoration-color: var(--ochre);
  text-underline-offset: .3em;
}
.btn--text:hover { background: none; border-color: transparent; color: var(--red); }
.btn--small { min-height: 2.5rem; padding: .55rem 1rem; font-size: .74rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--lagoon);
}
.link-arrow::after {
  content: "\2192";
  font-size: 1.1em;
  letter-spacing: 0;
  transition: transform .2s ease;
}
.link-arrow:hover { color: var(--red); }
.link-arrow:hover::after { transform: translateX(3px); }

/* 6. Header & navigation --------------------------------------------------- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -10rem;
  z-index: 200;
  padding: .7rem 1.1rem;
  background: var(--canal);
  color: var(--paper);
  font-weight: 700;
  border-radius: 0 0 var(--radius) var(--radius);
  text-decoration: none;
}
.skip-link:focus { top: 0; color: var(--paper); }

.site-header {
  position: relative;
  z-index: 50;
  background: var(--paper);
}

.masthead {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-areas: "coords brand lang";
  align-items: center;
  gap: 1rem;
  padding-block: 1.15rem .95rem;
}
.masthead__coords {
  grid-area: coords;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.02rem;
  color: var(--ink-soft);
  letter-spacing: .02em;
}
.masthead__lang { grid-area: lang; justify-self: end; }
.masthead__toggle { grid-area: toggle; display: none; }

.wordmark {
  grid-area: brand;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: .2rem;
  color: var(--ink);
  text-decoration: none;
  text-align: center;
}
.wordmark:hover { color: var(--ink); }
.wordmark__row { display: inline-flex; align-items: center; gap: .6rem; }
.wordmark__rose {
  width: 2.35rem;
  height: 2.35rem;
  flex: none;
  color: var(--red);
  transition: transform .6s ease;
}
.wordmark:hover .wordmark__rose { transform: rotate(45deg); }
.wordmark__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.55rem, 1.05rem + 2vw, 2.55rem);
  line-height: 1;
  letter-spacing: .015em;
  white-space: nowrap;
}
.wordmark__name em { font-weight: 500; color: var(--lagoon); }
.wordmark__tag {
  font-family: var(--font-display);
  font-style: italic;
  font-size: .98rem;
  line-height: 1.2;
  color: var(--ink-soft);
}

/* Compass rose colours (inline SVG) */
.rose-dark { fill: currentColor; }
.rose-light { fill: var(--paper); stroke: currentColor; stroke-width: .6; }
.rose-ring { fill: none; stroke: currentColor; stroke-width: .7; }
.rose-ring--dots { stroke-width: .5; stroke-dasharray: .9 1.5; }

/* Language pill */
.lang-switch {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--ink);
  border-radius: 999px;
  overflow: hidden;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  line-height: 1;
}
.lang-switch > a, .lang-switch > span {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: .45rem .8rem .45rem .9rem;
  text-decoration: none;
  color: var(--ink);
}
.lang-switch > * + * { border-left: 1px solid var(--ink); }
.lang-switch > a:hover { background: var(--paper-2); color: var(--red); }
.lang-switch > [aria-current] { background: var(--canal); color: var(--paper); }
.lang-switch > a:focus-visible { outline-offset: -3px; border-radius: 999px; }

/* Masthead rule under the wordmark */
.masthead-rule { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }

/* Main navigation */
.site-nav { border-bottom: 1px solid var(--hairline); }
.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 clamp(1.1rem, .2rem + 1.8vw, 2.4rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav__item { position: relative; display: flex; align-items: center; }
.site-nav__link {
  position: relative;
  display: block;
  padding: 1rem 0;
  font-size: .76rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}
.site-nav__link:hover { color: var(--red); }
.site-nav__link[aria-current="page"],
.site-nav__item:has(.subnav [aria-current="page"]) > .site-nav__link { color: var(--red); }
.site-nav__link[aria-current="page"]::after,
.site-nav__item:has(.subnav [aria-current="page"]) > .site-nav__link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: .3rem;
  width: 5px;
  height: 5px;
  background: var(--ochre);
  transform: translateX(-50%) rotate(45deg);
}

.subnav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  margin-left: .15rem;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
  color: var(--ink-soft);
}
.subnav-toggle:hover { color: var(--red); background: var(--paper-2); }
.subnav-toggle svg { width: .62rem; height: .62rem; transition: transform .2s ease; }
.subnav-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.no-js .subnav-toggle { display: none; }

.subnav {
  display: none;
  margin: 0;
  padding: .45rem;
  list-style: none;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-top: 2px solid var(--lagoon);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-lg);
}
.subnav a {
  display: flex;
  align-items: baseline;
  gap: .6rem;
  padding: .55rem .75rem;
  border-radius: var(--radius-sm);
  font-size: .95rem;
  line-height: 1.3;
  color: var(--ink);
  text-decoration: none;
}
.subnav a:hover { background: var(--paper-2); color: var(--red); }
.subnav a[aria-current="page"] { color: var(--red); background: var(--paper-2); }
.subnav__overview { border-bottom: 1px solid var(--hairline); margin-bottom: .3rem; padding-bottom: .3rem; }
.subnav__overview a { font-family: var(--font-display); font-style: italic; font-size: 1.08rem; }
.subnav__num {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ochre-ink);
  min-width: 1rem;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: .55rem;
  min-height: 2.4rem;
  padding: .4rem .8rem .4rem .65rem;
  border: 1px solid var(--ink);
  border-radius: var(--radius-sm);
  background: transparent;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.nav-toggle:hover { background: var(--paper-2); }
.nav-toggle__icon { position: relative; width: 18px; height: 12px; }
.nav-toggle__icon span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease, top .2s ease;
}
.nav-toggle__icon span:nth-child(1) { top: 0; }
.nav-toggle__icon span:nth-child(2) { top: 5px; }
.nav-toggle__icon span:nth-child(3) { top: 10px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon span:nth-child(1) { top: 5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon span:nth-child(3) { top: 5px; transform: rotate(-45deg); }

@media (min-width: 60rem) {
  .subnav {
    position: absolute;
    top: calc(100% - .25rem);
    left: 50%;
    z-index: 60;
    min-width: 16rem;
    transform: translateX(-50%);
  }
  .site-nav__item:hover > .subnav,
  .site-nav__item.is-open > .subnav,
  .no-js .site-nav__item:focus-within > .subnav { display: block; }
}

@media (max-width: 59.99rem) {
  .masthead {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "toggle . lang" "brand brand brand";
    row-gap: .8rem;
    padding-top: .8rem;
  }
  .masthead__coords { display: none; }
  .js .nav-toggle.masthead__toggle { display: inline-flex; }
  .no-js .masthead { grid-template-areas: "brand brand brand" "lang lang lang"; }
  .no-js .masthead__lang { justify-self: center; }

  .site-nav { border-bottom: 1px solid var(--hairline); }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: block; }
  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    width: min(100% - 2 * var(--gutter), var(--container));
    margin-inline: auto;
    padding-bottom: .5rem;
  }
  .no-js .site-nav__list { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 0 1.25rem; }
  .site-nav__item { flex-wrap: wrap; border-top: 1px solid var(--hairline); }
  .site-nav__item:first-child { border-top: 0; }
  .no-js .site-nav__item { border-top: 0; }
  .site-nav__link { flex: 1; padding: 1.05rem 0; font-size: .8rem; }
  .site-nav__link[aria-current="page"]::after,
  .site-nav__item:has(.subnav [aria-current="page"]) > .site-nav__link::after { left: -.7rem; bottom: auto; top: 50%; transform: translateY(-50%) rotate(45deg); }
  .subnav-toggle { width: 2.75rem; height: 2.75rem; }
  .subnav {
    flex-basis: 100%;
    margin: 0 0 .9rem .15rem;
    padding: .1rem 0 .1rem .8rem;
    border: 0;
    border-left: 2px solid var(--ochre);
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }
  .site-nav__item.is-open > .subnav { display: block; }
  .no-js .subnav { display: none; }
}

/* 7. Hero variants --------------------------------------------------------- */
.hero { position: relative; --overlap: clamp(2.5rem, 10vw, 10.5rem); }
.hero__media { position: relative; margin: 0; background: var(--paper-2); }
.hero__media img {
  width: 100%;
  height: clamp(18rem, 64vh, 41rem);
  object-fit: cover;
}
.hero__media figcaption {
  position: absolute;
  right: var(--gutter);
  top: var(--gutter);
  max-width: min(22rem, 70%);
  padding: .35rem .7rem;
  background: rgba(15, 50, 57, .82);
  color: var(--paper);
  font-family: var(--font-display);
  font-style: italic;
  font-size: .98rem;
  line-height: 1.3;
  border-radius: var(--radius-sm);
}
@media (min-width: 48rem) {
  .hero__media figcaption { top: auto; bottom: 1.1rem; right: 1.25rem; }
}
.hero__body { position: relative; margin-top: calc(-1 * var(--overlap)); }
.hero__card {
  position: relative;
  max-width: 41rem;
  padding: clamp(1.6rem, 1rem + 2.5vw, 2.75rem) clamp(1.3rem, .8rem + 2.5vw, 3rem);
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-top: 3px double var(--ink);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-lg);
}
.hero__title { margin-bottom: .9rem; }
.hero__title em { font-weight: 500; color: var(--lagoon); }
.hero__card .lede { margin-bottom: 1.4rem; }
.hero--page { --overlap: clamp(2rem, 7vw, 6.5rem); }
.hero--page .hero__media img { height: clamp(14rem, 44vh, 28rem); }
.hero--page .hero__card { max-width: 46rem; }
.hero--page .hero__title { font-size: clamp(2.2rem, 1.5rem + 2.6vw, 3.9rem); }
.hero + .section { padding-top: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); }

/* Text-only page head (legal, glossary, contact) */
.page-head {
  position: relative;
  padding-block: clamp(2.5rem, 1.6rem + 3.5vw, 4.75rem) clamp(2rem, 1.4rem + 2.5vw, 3.5rem);
  background-color: var(--paper-2);
  background-image: var(--chart-grid);
  background-size: 56px 56px;
  border-bottom: 1px solid var(--hairline);
}
.page-head__inner > * { max-width: 50rem; }
.page-head h1 { margin-bottom: .85rem; }
.page-head .lede { max-width: 42rem; }
.page-head__meta {
  margin-top: 1.1rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink-soft);
}

/* Breadcrumbs */
.breadcrumb { padding-block: .85rem; font-size: .84rem; }
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .2rem .55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.breadcrumb li { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink-soft); }
.breadcrumb li + li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-top: 1px solid var(--ochre-ink);
  border-right: 1px solid var(--ochre-ink);
  transform: rotate(45deg);
}
.breadcrumb a { color: var(--ink-soft); text-decoration-color: var(--hairline); }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb [aria-current="page"] { color: var(--ink); font-weight: 600; }

/* 8. Numbers band ---------------------------------------------------------- */
.numbers {
  position: relative;
  padding-block: clamp(3rem, 2rem + 4vw, 5.5rem);
  background-color: var(--paper-2);
  background-image: var(--chart-grid);
  background-size: 56px 56px;
}
.numbers::before, .numbers::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 12px;
  background: var(--wave-lagoon) repeat-x center / 48px 12px;
}
.numbers::before { top: -6px; }
.numbers::after { bottom: -6px; }
.numbers__frame { overflow: hidden; }
.numbers__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 0 0 -1px;
  padding: 0;
  list-style: none;
}
.numbers__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.25rem .9rem 1.4rem;
  border-left: 1px solid var(--hairline);
}
.numbers__value {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2.9rem, 2rem + 3.2vw, 4.6rem);
  line-height: .95;
  color: var(--lagoon);
  font-variant-numeric: lining-nums;
  white-space: nowrap;
}
.numbers__value small {
  font-size: .42em;
  font-style: italic;
  color: var(--ochre-ink);
  margin-left: .08em;
  vertical-align: .55em;
}
.numbers__prefix {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.02rem;
  color: var(--ochre-ink);
  margin-bottom: .2rem;
  line-height: 1.3;
  min-height: 1.3em;
}
.numbers__label {
  margin-top: .7rem;
  max-width: 15rem;
  font-size: .92rem;
  line-height: 1.45;
  color: var(--ink-soft);
}
.numbers__note {
  margin-top: 1.75rem;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.02rem;
  color: var(--ink-soft);
}
@media (min-width: 40rem) { .numbers__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 70rem) { .numbers__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

/* 9. Island cards (irregular grid) ---------------------------------------- */
.island-grid {
  display: grid;
  gap: 2.75rem 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 40rem) { .island-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 62rem) {
  .island-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3.5rem 2.5rem; align-items: start; }
  .island-grid > :nth-child(3n + 2) { margin-top: 4.5rem; }
  .island-grid > :nth-child(3n) { margin-top: 1.75rem; }
}
.island-card { position: relative; }
.island-card__media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper-2);
}
.island-card__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .6s ease;
}
@media (min-width: 62rem) {
  .island-grid > :nth-child(3n + 1) .island-card__media img { aspect-ratio: 4 / 5; }
  .island-grid > :nth-child(3n + 2) .island-card__media img { aspect-ratio: 1 / 1; }
  .island-grid > :nth-child(3n) .island-card__media img { aspect-ratio: 5 / 4; }
}
/* 2:1 panoramas keep their shape inside the grid */
.island-grid .island-card .island-card__media--pano img { aspect-ratio: 2 / 1; }
.island-card:hover .island-card__media img { transform: scale(1.035); }
.island-card__num,
.badge-num {
  display: inline-grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--ink);
  box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px var(--ochre);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--red);
}
.island-card__num {
  position: absolute;
  z-index: 2;
  top: -1.1rem;
  left: 1.1rem;
}
.island-card__body { padding-top: 1.1rem; }
.island-card__meta {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ochre-ink);
  margin-bottom: .2rem;
}
.island-card__title { font-size: 1.75rem; margin-bottom: .45rem; }
.island-card__title a { color: var(--ink); text-decoration: none; }
.island-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 3; }
.island-card__title a:hover { color: var(--red); }
.island-card:focus-within { outline: 2px solid var(--red); outline-offset: 6px; border-radius: var(--radius); }
.island-card:focus-within a:focus-visible { outline: none; }
.island-card__text { color: var(--ink-soft); font-size: 1rem; }

/* 10. Schematic lagoon map ------------------------------------------------- */
.map-layout {
  display: grid;
  gap: clamp(2rem, 1rem + 3vw, 4rem);
  align-items: start;
}
@media (min-width: 60rem) { .map-layout { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); } }
.lagoon-map {
  position: relative;
  padding: .7rem;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.lagoon-map svg { display: block; width: 100%; height: auto; }
.lagoon-map figcaption {
  margin-top: .6rem;
  padding: 0 .3rem .15rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--ink-soft);
}
.lm-sea { fill: #CFDDD8; }
.lm-hatch line { stroke: #8FAEAA; stroke-width: .6; }
.lm-land { fill: var(--paper-2); stroke: #B9A88A; stroke-width: .8; }
.lm-water { fill: var(--lagoon-tint); stroke: #8FAEAA; stroke-width: .8; }
.lm-marsh { fill: #C9D3BE; opacity: .9; }
.lm-island { fill: #E7D9BF; stroke: #8C7B5E; stroke-width: .8; }
.lm-city { fill: #E6CB98; stroke: var(--red); stroke-width: 1.1; }
.lm-canal { fill: none; stroke: var(--lagoon); stroke-width: 1.4; stroke-linecap: round; }
.lm-river { fill: none; stroke: #5E8F8C; stroke-width: 1.6; stroke-linecap: round; }
.lm-channel { fill: none; stroke: var(--lagoon); stroke-width: .9; stroke-dasharray: 3 3; opacity: .7; }
.lm-bridge { fill: none; stroke: var(--ink-soft); stroke-width: 1.2; }
.lm-label { font-family: var(--font-body); font-size: 12px; fill: var(--ink); }
.lm-label--city { font-size: 10.5px; font-weight: 700; letter-spacing: 2px; fill: var(--ink); }
.lm-label--island { font-family: var(--font-display); font-size: 15px; font-weight: 600; fill: var(--ink); }
.lm-label--minor { font-family: var(--font-display); font-style: italic; font-size: 13px; fill: var(--ink-soft); }
.lm-label--water { font-family: var(--font-display); font-style: italic; font-size: 21px; fill: var(--lagoon); letter-spacing: 1px; }
.lm-label--sea { font-family: var(--font-display); font-style: italic; font-size: 24px; fill: #4F7C79; letter-spacing: 4px; }
.lm-label--land { font-family: var(--font-body); font-size: 10.5px; font-weight: 700; letter-spacing: 3px; fill: #8C7B5E; }
.lm-label--river { font-family: var(--font-display); font-style: italic; font-size: 13px; fill: #3F6E6B; }
.lm-label--inlet { font-family: var(--font-body); font-size: 10.5px; font-weight: 700; letter-spacing: 1.2px; fill: var(--canal); text-transform: uppercase; }
.lm-tick { stroke: var(--canal); stroke-width: .9; }
.lm-cartouche rect { fill: var(--paper); stroke: var(--ink); stroke-width: .8; }
.lm-cartouche .lm-inner { fill: none; stroke: var(--ochre); stroke-width: .8; }
.lm-cartouche-title { font-family: var(--font-display); font-weight: 600; font-size: 20px; fill: var(--ink); }
.lm-cartouche-note { font-family: var(--font-display); font-style: italic; font-size: 14px; fill: var(--red); }
.lm-rose { color: var(--red); }
.lm-dot { fill: var(--red); stroke: var(--paper); stroke-width: 2.2; transition: fill .15s ease; }
.lm-dot--minor { fill: var(--lagoon); }
.lm-num { font-family: var(--font-body); font-size: 11px; font-weight: 700; fill: var(--paper); pointer-events: none; }
.lm-link { cursor: pointer; text-decoration: none; }
.lm-frame { fill: none; stroke: var(--ink); stroke-width: 1; }
.lm-frame--grad { stroke-width: 3.5; stroke-dasharray: 20 20; }
.lm-frame--fine { stroke-width: .6; }
.lm-frame--grad-bg { fill: none; stroke: var(--paper); stroke-width: 3.5; }
.lm-link:hover .lm-dot, .lm-link:focus-visible .lm-dot { fill: var(--canal); }
.lm-link:hover .lm-label--island, .lm-link:focus-visible .lm-label--island { fill: var(--red); }
.lm-link:focus-visible { outline: none; }
.lm-link:focus-visible .lm-dot { stroke: var(--ochre); stroke-width: 3; }

.map-key {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--hairline);
}
.map-key li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .1rem 1rem;
  align-items: center;
  padding: .8rem 0;
  border-bottom: 1px solid var(--hairline);
}
.map-key .badge-num { width: 2.1rem; height: 2.1rem; font-size: 1.1rem; box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px var(--ochre); grid-row: span 2; }
.map-key a { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; line-height: 1.15; color: var(--ink); text-decoration: none; }
.map-key a:hover { color: var(--red); }
.map-key span.map-key__note { font-size: .92rem; color: var(--ink-soft); line-height: 1.4; }

/* 11. Article layout & table of contents ----------------------------------- */
.article {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  padding-block: clamp(2.5rem, 1.6rem + 3vw, 4.5rem) var(--section-pad);
}
@media (min-width: 64rem) {
  .article { grid-template-columns: 14.5rem minmax(0, 1fr); gap: 4.5rem; }
  .article .toc {
    position: sticky;
    top: 1.5rem;
    align-self: start;
    max-height: calc(100vh - 3rem);
    overflow-y: auto;
  }
}
.article__body { min-width: 0; max-width: var(--measure); }
.article__body--wide { max-width: none; }

.toc {
  padding: 1.1rem 1.2rem 1.2rem;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}
@media (min-width: 64rem) {
  .toc { padding: 0; background: none; border: 0; }
}
.toc__title {
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: .7rem;
}
.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
  border-left: 1px solid var(--hairline);
}
.toc li { counter-increment: toc; }
.toc a {
  display: flex;
  gap: .55rem;
  margin-left: -1px;
  padding: .38rem 0 .38rem .85rem;
  border-left: 2px solid transparent;
  font-size: .92rem;
  line-height: 1.35;
  color: var(--ink-soft);
  text-decoration: none;
}
.toc a::before {
  content: counter(toc, upper-roman) ".";
  flex: none;
  min-width: 1.6rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--ochre-ink);
}
.toc a:hover { color: var(--red); }
.toc a.is-active, .toc a[aria-current="true"] { color: var(--ink); border-left-color: var(--lagoon); font-weight: 600; }

/* Prose */
.prose { font-size: 1.0625rem; }
.prose > * + * { margin-top: 1.1em; }
.prose > h2 {
  margin-top: 2.6em;
  scroll-margin-top: 1.5rem;
}
.prose > h2::before {
  content: "";
  display: block;
  width: 2.75rem;
  height: 2px;
  margin-bottom: .75rem;
  background: var(--ochre);
}
.prose > h2:first-child { margin-top: 0; }
.prose > h3 { margin-top: 2em; scroll-margin-top: 1.5rem; }
.prose > h2 + *, .prose > h3 + * { margin-top: .7em; }
.prose ul:not([class]), .prose ol:not([class]) { padding-left: 1.3rem; }
.prose ul:not([class]) > li + li, .prose ol:not([class]) > li + li { margin-top: .4em; }
.prose ul:not([class]) > li::marker { color: var(--ochre); }
.prose ol:not([class]) > li::marker { font-family: var(--font-display); font-style: italic; color: var(--ochre-ink); }
.prose blockquote:not(.pullquote blockquote) {
  padding-left: 1.2rem;
  border-left: 2px solid var(--ochre);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.45;
}
.dropcap::first-letter {
  float: left;
  margin: .06em .12em 0 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 4.3em;
  line-height: .78;
  color: var(--red);
}
.byline {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem 1rem;
  margin-top: 1rem;
  font-size: .85rem;
  color: var(--ink-soft);
}
.byline > * + *::before { content: "·"; margin-right: 1rem; color: var(--ochre-ink); }

/* 12. Figures & gallery ---------------------------------------------------- */
.figure { margin-block: 2.2rem; }
.figure img { width: 100%; border-radius: var(--radius-sm); background: var(--paper-2); }
.figure figcaption, .figcaption {
  margin-top: .65rem;
  padding-left: .85rem;
  border-left: 1px solid var(--ochre);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.06rem;
  line-height: 1.4;
  color: var(--ink-soft);
}
.figure--medium { max-width: 34rem; margin-inline: auto; }
.figure--framed {
  padding: .6rem .6rem .9rem;
  background: var(--paper-light);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.figure--framed figcaption { border-left: 0; padding-left: .2rem; }
.figure--pano img { aspect-ratio: auto; }
@media (min-width: 64rem) {
  .figure--wide { margin-right: calc(-1 * min(12rem, (100vw - var(--container)) / 2 + 8rem)); }
}
.figure-pair { display: grid; gap: 1rem; margin-block: 2.2rem; }
@media (min-width: 40rem) { .figure-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.figure-pair .figure { margin: 0; }

.gallery { margin-block: 2.5rem; }
.gallery__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.gallery__controls { display: flex; gap: .5rem; }
.gallery__controls[hidden] { display: none; }
.gallery__btn {
  display: inline-grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
}
.gallery__btn:hover { background: var(--canal); color: var(--paper); border-color: var(--canal); }
.gallery__btn:disabled { opacity: .35; cursor: default; background: var(--paper); color: var(--ink); }
.gallery__btn svg { width: 1rem; height: 1rem; }
.gallery__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(80%, 22rem);
  gap: 1rem;
  margin: 0;
  padding: 0 0 1rem;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--hairline) transparent;
  scrollbar-width: thin;
}
.gallery__track:focus-visible { outline-offset: 4px; }
.gallery__item { scroll-snap-align: start; }
.gallery__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); }
.gallery__item figcaption {
  margin-top: .5rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.35;
  color: var(--ink-soft);
}

/* 13. Fact boxes, callouts, pull quotes ------------------------------------ */
.factbox {
  position: relative;
  margin-block: 2rem;
  padding: 1.4rem 1.5rem 1.2rem;
  background: var(--paper-2);
  border: 1px solid var(--hairline);
  border-top: 3px double var(--ink);
  border-radius: 0 0 var(--radius) var(--radius);
}
.factbox__title {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin: 0 0 .8rem;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.45rem;
  line-height: 1.2;
  color: var(--ink);
}
.factbox__title::before { display: none; }
.factbox__title svg { width: 1.3rem; height: 1.3rem; color: var(--red); flex: none; }
.factbox__list { margin: 0; }
.factbox__list > div {
  display: grid;
  grid-template-columns: minmax(0, 11rem) minmax(0, 1fr);
  gap: .2rem 1.2rem;
  padding: .6rem 0;
  border-top: 1px dotted var(--hairline);
}
.factbox__list > div:first-child { border-top: 0; }
.factbox__list dt {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-top: .2rem;
}
.factbox__list dd { margin: 0; font-size: 1rem; line-height: 1.45; }
.factbox__note { margin-top: .8rem; font-size: .86rem; color: var(--ink-soft); }
@media (max-width: 30rem) {
  .factbox__list > div { grid-template-columns: 1fr; }
}
@media (min-width: 75rem) {
  .factbox--float { float: right; width: 19rem; margin: .3rem -3rem 1.2rem 2rem; }
  .factbox--float .factbox__list > div { grid-template-columns: 1fr; }
}

.callout {
  position: relative;
  margin-block: 2rem;
  padding: 1.1rem 1.3rem 1.15rem 1.4rem;
  background: rgba(30, 91, 90, .07);
  border-left: 3px solid var(--lagoon);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.callout > * + * { margin-top: .6em; }
.callout__label {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--lagoon);
}
.callout__label svg { width: 1rem; height: 1rem; }
.callout--warning { background: rgba(166, 61, 42, .07); border-left-color: var(--red); }
.callout--warning .callout__label { color: var(--red); }
.callout--note { background: rgba(200, 150, 62, .12); border-left-color: var(--ochre); }
.callout--note .callout__label { color: var(--ochre-ink); }

.pullquote {
  position: relative;
  margin-block: 2.75rem;
  padding: 1.6rem 0 1.4rem 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--hairline);
}
.pullquote::before {
  content: "\201C";
  position: absolute;
  top: -.55rem;
  left: 0;
  padding-right: .5rem;
  background: var(--paper);
  font-family: var(--font-display);
  font-size: 4.2rem;
  line-height: .8;
  color: var(--ochre);
}
.section--tint .pullquote::before { background: var(--paper-2); }
.pullquote blockquote { margin: 0; }
.pullquote p {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
  line-height: 1.3;
  color: var(--canal);
}
.pullquote figcaption, .pullquote cite {
  display: block;
  margin-top: .9rem;
  font-family: var(--font-body);
  font-style: normal;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* Spec list (inline key–value pairs) */
.spec-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 0;
  margin: 1.5rem 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--hairline);
}
.spec-list > div { padding: .85rem 1rem .9rem 0; }
.spec-list dt { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.spec-list dd { margin: .15rem 0 0; font-family: var(--font-display); font-style: italic; font-size: 1.4rem; line-height: 1.2; color: var(--lagoon); }

/* 14. Route card ("how to get there") -------------------------------------- */
.getting-there {
  margin-block: 2.5rem;
  padding-top: 1.4rem;
  border-top: 3px double var(--ink);
}
.getting-there__title { margin-bottom: .6rem; }
.getting-there > p { color: var(--ink-soft); max-width: 40rem; }
.routes { display: grid; gap: 1.25rem; margin-top: 1.4rem; }

.route-card {
  --stub: 14rem;
  --notch: 11px;
  --rc-bg: var(--paper-light);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--stub);
  background: var(--rc-bg);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.route-card::before, .route-card::after {
  content: "";
  position: absolute;
  right: calc(var(--stub) - var(--notch));
  width: calc(var(--notch) * 2);
  height: calc(var(--notch) * 2);
  border: 1px solid var(--hairline);
  border-radius: 50%;
  background: var(--paper);
}
.route-card::before { top: calc(-1 * var(--notch) - 1px); clip-path: inset(50% 0 0 0); }
.route-card::after { bottom: calc(-1 * var(--notch) - 1px); clip-path: inset(0 0 50% 0); }
.section--tint .route-card::before, .section--tint .route-card::after,
.section--chart .route-card::before, .section--chart .route-card::after { background: var(--paper-2); }
.route-card__main { padding: 1.15rem 1.4rem 1.2rem; }
.route-card__eyebrow {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--red);
}
.route-card__eyebrow svg { width: 1rem; height: 1rem; }
.route-card__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem .75rem;
  margin: .45rem 0 .8rem;
  font-size: clamp(1.35rem, 1.15rem + .8vw, 1.75rem);
  line-height: 1.15;
}
.route-card__from { color: var(--ink-soft); font-weight: 500; }
.route-card__to { color: var(--ink); }
.route-card__arrow {
  position: relative;
  width: 3.2rem;
  height: 12px;
  flex: none;
  background: var(--wave-lagoon) repeat-x left center / 24px 6px;
}
.route-card__arrow::after {
  content: "";
  position: absolute;
  right: -2px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-top: 1.5px solid var(--lagoon);
  border-right: 1.5px solid var(--lagoon);
  transform: translateY(-50%) rotate(45deg);
}
.route-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.75rem;
  margin: 0;
}
.route-card__meta dt {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.route-card__meta dd {
  margin: .1rem 0 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.22rem;
  line-height: 1.2;
  color: var(--lagoon);
}
.route-card__stub {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .35rem;
  padding: 1.1rem 1.2rem 1.15rem 1.4rem;
  background: var(--paper-2);
  border-left: 1.5px dashed var(--hairline);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  font-size: .92rem;
  line-height: 1.45;
}
.route-card__tip-label {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--red);
}
@media (max-width: 40rem) {
  .route-card { grid-template-columns: 1fr; }
  .route-card::before, .route-card::after { display: none; }
  .route-card__stub {
    border-left: 0;
    border-top: 1.5px dashed var(--hairline);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }
}

/* 15. Tables & timeline ---------------------------------------------------- */
.table-wrap {
  margin-block: 2rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background:
    linear-gradient(90deg, var(--paper) 30%, rgba(245, 239, 228, 0)) left / 2rem 100% no-repeat local,
    linear-gradient(270deg, var(--paper) 30%, rgba(245, 239, 228, 0)) right / 2rem 100% no-repeat local,
    linear-gradient(90deg, rgba(29, 35, 38, .12), transparent) left / .75rem 100% no-repeat scroll,
    linear-gradient(270deg, rgba(29, 35, 38, .12), transparent) right / .75rem 100% no-repeat scroll;
}
.table-wrap:focus-visible { outline-offset: 2px; }
.data-table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-size: .95rem;
  line-height: 1.45;
}
.data-table caption {
  caption-side: top;
  padding: .8rem 0 .6rem;
  text-align: left;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ink-soft);
}
.data-table th, .data-table td {
  padding: .7rem .9rem .7rem 0;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--hairline);
}
.data-table thead th {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--ink);
}
.data-table tbody th { font-weight: 700; }
.data-table tbody tr:last-child > * { border-bottom: 0; }
.data-table td.num { font-family: var(--font-display); font-style: italic; font-size: 1.15rem; color: var(--lagoon); white-space: nowrap; }

.timeline {
  position: relative;
  margin: 2rem 0;
  padding: 0;
  list-style: none;
}
.timeline::before {
  content: "";
  position: absolute;
  top: .5rem;
  bottom: .5rem;
  left: calc(var(--tl-date, 6.5rem) + .9rem);
  border-left: 1px dashed var(--lagoon);
}
.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: var(--tl-date, 6.5rem) minmax(0, 1fr);
  gap: 0 2.2rem;
  padding-bottom: 1.8rem;
}
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: "";
  position: absolute;
  top: .55rem;
  left: calc(var(--tl-date, 6.5rem) + .9rem - 6px);
  width: 11px;
  height: 11px;
  border: 1px solid var(--lagoon);
  border-radius: 50%;
  background: var(--paper);
  box-shadow: inset 0 0 0 2.5px var(--paper), inset 0 0 0 6px var(--red);
}
.section--tint .timeline__item::before { background: var(--paper-2); box-shadow: inset 0 0 0 2.5px var(--paper-2), inset 0 0 0 6px var(--red); }
.timeline__date {
  text-align: right;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.55rem;
  line-height: 1.1;
  color: var(--lagoon);
}
.timeline__title { font-size: 1.3rem; margin-bottom: .3rem; }
.timeline__body > * + * { margin-top: .5em; }
.timeline__body p { color: var(--ink-soft); }
@media (max-width: 34rem) {
  .timeline { --tl-date: 0px; padding-left: 1.6rem; }
  .timeline::before { left: .35rem; }
  .timeline__item { grid-template-columns: 1fr; }
  .timeline__item::before { left: calc(-1.6rem + .35rem - 5px); }
  .timeline__date { text-align: left; font-size: 1.35rem; margin-bottom: .2rem; }
}

/* 16. Cards, tips, FAQ, related links, feature blocks --------------------- */
.card-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 40rem) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) {
  .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.section--tint .card, .section--chart .card { background: var(--paper-light); }
.card:hover { border-color: var(--ink-soft); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card:focus-within { outline: 2px solid var(--red); outline-offset: 3px; }
.card:focus-within a:focus-visible { outline: none; }
.card__media { overflow: hidden; background: var(--paper-2); }
.card__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .6s ease; }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 1.15rem 1.25rem 1.3rem; }
.card__kicker {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.02rem;
  color: var(--red);
  margin-bottom: .15rem;
}
.card__title { font-size: 1.55rem; margin-bottom: .45rem; }
.card__title a { color: var(--ink); text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card__text { color: var(--ink-soft); font-size: .98rem; line-height: 1.55; }
.card__more {
  margin-top: auto;
  padding-top: .9rem;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--lagoon);
}
.card__more::after { content: " \2192"; }
.card:hover .card__more { color: var(--red); }
.card--plain .card__body { padding-top: 1.4rem; border-top: 3px double var(--ink); }

/* Practical tips list */
.tips {
  display: grid;
  gap: 0 3rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: tip;
}
@media (min-width: 52rem) { .tips { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tips li {
  counter-increment: tip;
  position: relative;
  padding: 1.15rem 0 1.25rem 3.6rem;
  border-top: 1px solid var(--hairline);
  color: var(--ink-soft);
}
.tips li::before {
  content: counter(tip, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: .85rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2.1rem;
  line-height: 1;
  color: var(--ochre-ink);
}
.tips strong { display: block; color: var(--ink); font-size: 1.05rem; margin-bottom: .2rem; }

/* Lexicon teaser (home) */
.lexicon {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
  gap: 0 2.5rem;
  margin: 0;
}
.lexicon__entry { padding: 1.1rem 0 1.25rem; border-top: 1px solid var(--ink); }
.lexicon__term {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.9rem;
  line-height: 1.1;
  color: var(--lagoon);
}
.lexicon__term small {
  font-family: var(--font-body);
  font-style: normal;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.lexicon__def { margin: .45rem 0 0; color: var(--ink-soft); font-size: .98rem; line-height: 1.55; }

/* FAQ / accordion */
.faq { margin-block: 2rem; border-bottom: 1px solid var(--hairline); }
.faq__item { border-top: 1px solid var(--hairline); }
.faq__q {
  position: relative;
  display: block;
  padding: 1.05rem 3rem 1.05rem 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.32rem;
  line-height: 1.3;
  color: var(--ink);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::marker { content: ""; }
.faq__q::before, .faq__q::after {
  content: "";
  position: absolute;
  right: .6rem;
  top: 50%;
  width: 14px;
  height: 1.5px;
  background: var(--red);
  transition: transform .2s ease;
}
.faq__q::after { transform: rotate(90deg); }
.faq__item[open] > .faq__q::after { transform: rotate(0deg); }
.faq__q:hover { color: var(--red); }
.faq__a { padding: 0 0 1.3rem; color: var(--ink-soft); }
.faq__a > * + * { margin-top: .7em; }

/* Related links */
.related {
  margin-top: var(--space-7);
  padding-top: 1.5rem;
  border-top: 3px double var(--ink);
}
.related__title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.6rem;
  margin-bottom: 1rem;
}
.related__title::before { display: none; }
.related__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 13.5rem), 1fr));
  gap: .9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.related__list li + li { margin-top: 0; }
.related__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: .9rem 1rem 1rem;
  background: var(--paper-light);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  transition: border-color .2s ease, transform .2s ease;
}
.related__link:hover { border-color: var(--lagoon); transform: translateY(-2px); color: var(--ink); }
.related__kicker { font-family: var(--font-display); font-style: italic; font-size: .98rem; color: var(--red); }
.related__name { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; line-height: 1.2; }
.related__name::after { content: " \2192"; color: var(--lagoon); }

/* Feature block (image + text) */
.feature { display: grid; gap: 1.5rem 3rem; align-items: center; }
@media (min-width: 52rem) {
  .feature { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .feature--reverse .feature__media { order: 2; }
}
.feature + .feature { margin-top: clamp(2.5rem, 1.5rem + 3vw, 4rem); }
.feature__media img { width: 100%; border-radius: var(--radius-sm); }
.feature__media figcaption { margin-top: .5rem; font-family: var(--font-display); font-style: italic; color: var(--ink-soft); }
.feature__body > * + * { margin-top: .9rem; }
.feature__body .btn-row { margin-top: 1.3rem; }

/* Intro columns (home "start here") */
.intro-grid { display: grid; gap: 2rem 4rem; }
@media (min-width: 60rem) { .intro-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); } }
.intro-grid__aside {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.45rem, 1.15rem + 1vw, 1.95rem);
  line-height: 1.35;
  color: var(--canal);
}
.intro-grid__aside::before {
  content: "";
  display: block;
  width: 3.5rem;
  height: 12px;
  margin-bottom: 1rem;
  background: var(--wave-red) repeat-x left center / 24px 6px;
}

/* 17. Glossary ------------------------------------------------------------- */
.letter-index {
  position: sticky;
  top: 0;
  z-index: 20;
  margin-bottom: 2rem;
  padding: .6rem 0;
  background: var(--paper);
  border-bottom: 1px solid var(--hairline);
}
.letter-index ul {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.letter-index a, .letter-index span {
  display: inline-grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  text-decoration: none;
}
.letter-index a { color: var(--ink); border: 1px solid var(--hairline); background: var(--paper-light); }
.letter-index a:hover { background: var(--canal); border-color: var(--canal); color: var(--paper); }
.letter-index span { color: var(--hairline); }
.glossary__group { scroll-margin-top: 4.5rem; }
.glossary__group + .glossary__group { margin-top: 2.5rem; }
.glossary__letter {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 3.2rem;
  line-height: 1;
  color: var(--red);
  margin-bottom: .5rem;
}
.glossary__letter::before { display: none; }
.glossary__letter::after { content: ""; flex: 1; height: 12px; background: var(--wave-ochre) repeat-x left center / 48px 12px; }
.glossary { margin: 0; }
.glossary__entry {
  display: grid;
  gap: .3rem 2rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--hairline);
  scroll-margin-top: 4.5rem;
}
@media (min-width: 48rem) { .glossary__entry { grid-template-columns: 13rem minmax(0, 1fr); } }
.glossary__term {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.45rem;
  line-height: 1.2;
}
.glossary__pron, .glossary__pos {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: .82rem;
  color: var(--ink-soft);
  margin-top: .15rem;
}
.glossary__pron { font-style: italic; }
.glossary__def { margin: 0; color: var(--ink-soft); }
.glossary__def > * + * { margin-top: .5em; }
.glossary__see { font-size: .9rem; }

/* 18. Legal pages ---------------------------------------------------------- */
.legal { max-width: 46rem; font-size: 1rem; }
.legal > * + * { margin-top: 1em; }
.legal h2 {
  margin-top: 2.2em;
  font-size: clamp(1.45rem, 1.25rem + .8vw, 1.85rem);
  scroll-margin-top: 1.5rem;
}
.legal h2::before { display: none; }
.legal h3 { margin-top: 1.6em; font-size: 1.2rem; }
.legal ul, .legal ol { padding-left: 1.3rem; }
.legal li + li { margin-top: .35em; }
.legal__updated {
  display: inline-block;
  padding: .3rem .75rem;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.02rem;
  color: var(--ink-soft);
  background: var(--paper-light);
}
.legal dl { margin-top: 1em; }
.legal dt { font-weight: 700; margin-top: .8em; }
.legal dd { margin: .2em 0 0; color: var(--ink-soft); }

/* Credits list (image-credits page) */
.credits { display: grid; gap: 0; margin: 2rem 0; padding: 0; list-style: none; }
.credits__item {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 1.1rem;
  align-items: start;
  padding: 1rem 0;
  border-top: 1px solid var(--hairline);
}
.credits__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); }
.credits__title { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; line-height: 1.25; }
.credits__meta { font-size: .9rem; color: var(--ink-soft); margin-top: .25rem; overflow-wrap: anywhere; }

/* 19. Contact form --------------------------------------------------------- */
.form {
  display: grid;
  gap: 1.15rem;
  max-width: 38rem;
  padding: clamp(1.3rem, 1rem + 1.5vw, 2rem);
  background: var(--paper-light);
  border: 1px solid var(--hairline);
  border-top: 3px double var(--ink);
  border-radius: 0 0 var(--radius) var(--radius);
}
.form__row { display: grid; gap: .4rem; }
.form__label {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
}
.form__input, .form__textarea {
  width: 100%;
  padding: .75rem .85rem;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-bottom: 1px solid var(--ink-soft);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color .15s ease, background-color .15s ease;
}
.form__textarea { min-height: 10rem; resize: vertical; }
.form__input:hover, .form__textarea:hover { border-color: var(--ink-soft); }
.form__input:focus, .form__textarea:focus { outline: 2px solid var(--lagoon); outline-offset: 1px; background: #fff; border-color: var(--lagoon); }
.form__input:user-invalid, .form__textarea:user-invalid { border-color: var(--red); }
.form__hint { font-size: .86rem; color: var(--ink-soft); }
.form__status { min-height: 1.4em; font-size: .92rem; color: var(--lagoon); font-weight: 600; }
.form__status.is-error { color: var(--red); }

.contact-card {
  padding: 1.4rem 1.5rem;
  background: var(--paper-2);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}
.contact-card__email {
  display: inline-block;
  margin-top: .3rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.25rem, 1rem + 1vw, 1.6rem);
  overflow-wrap: anywhere;
}

/* 20. Footer --------------------------------------------------------------- */
.site-footer {
  position: relative;
  margin-top: 16px;
  padding: clamp(3rem, 2rem + 3vw, 4.5rem) 0 1.5rem;
  background: var(--canal);
  color: rgba(245, 239, 228, .86);
  font-size: .95rem;
}
.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -15px;
  height: 16px;
  background: var(--wave-footer) repeat-x left bottom / 120px 16px;
}
.site-footer a { color: var(--paper); text-decoration-color: rgba(200, 150, 62, .6); }
.site-footer a:hover { color: var(--ochre); text-decoration-color: var(--ochre); }
.site-footer :focus-visible { outline-color: var(--ochre); }
.site-footer__inner {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 64rem) { .site-footer__inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, 3fr); gap: 4rem; } }
.site-footer__brand > * + * { margin-top: .9rem; }
.site-footer .wordmark { align-items: flex-start; text-align: left; color: var(--paper); }
.site-footer .wordmark__rose { color: var(--ochre); width: 2rem; height: 2rem; }
.site-footer .wordmark__name { font-size: 1.65rem; white-space: normal; }
.site-footer .wordmark__name em { color: var(--ochre); }
.site-footer .rose-light { fill: var(--canal); }
.site-footer__about { max-width: 24rem; line-height: 1.6; }
.site-footer__email {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  overflow-wrap: anywhere;
}
.site-footer__nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  gap: 2rem 2rem;
}
.site-footer__heading {
  margin-bottom: .8rem;
  padding-bottom: .55rem;
  border-bottom: 1px solid rgba(200, 150, 62, .45);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--ochre);
}
.site-footer__list { margin: 0; padding: 0; list-style: none; }
.site-footer__list li + li { margin-top: .45rem; }
.site-footer__list a { text-decoration: none; }
.site-footer__list a:hover { text-decoration: underline; }
.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 2rem;
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(245, 239, 228, .18);
  font-size: .84rem;
  color: rgba(245, 239, 228, .72);
}
.site-footer__base p { max-width: 48rem; }

/* 21. Consent banner & settings dialog ------------------------------------ */
.consent {
  position: fixed;
  z-index: 150;
  left: var(--gutter);
  right: var(--gutter);
  bottom: var(--gutter);
  max-width: 44rem;
  padding: 1.25rem 1.35rem 1.2rem;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-top: 3px double var(--ink);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 24px 60px -20px rgba(15, 50, 57, .55);
}
.consent[hidden] { display: none; }
@media (min-width: 48rem) { .consent { left: 1.5rem; bottom: 1.5rem; right: auto; } }
.consent__inner { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .3rem 1rem; }
.consent__icon { width: 2.4rem; height: 2.4rem; color: var(--red); grid-row: span 2; }
.consent__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.45rem;
  line-height: 1.2;
  margin-bottom: .25rem;
}
.consent__text p { font-size: .93rem; line-height: 1.55; color: var(--ink-soft); }
.consent__actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: .9rem; }
@media (max-width: 30rem) {
  .consent__inner { grid-template-columns: 1fr; }
  .consent__icon { display: none; }
  .consent__actions .btn { flex: 1 1 auto; }
}

.consent-dialog {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: grid;
  place-items: center;
  padding: var(--gutter);
}
.consent-dialog[hidden] { display: none; }
.consent-dialog__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 50, 57, .58);
}
.consent-dialog__panel {
  position: relative;
  width: min(100%, 35rem);
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  padding: clamp(1.4rem, 1rem + 1.5vw, 2rem);
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-top: 3px double var(--ink);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 30px 80px -24px rgba(0, 0, 0, .55);
}
.consent-dialog__panel > * + * { margin-top: .9rem; }
.consent-dialog__title { font-size: 1.9rem; padding-right: 2.5rem; }
.consent-dialog__intro { color: var(--ink-soft); font-size: .95rem; }
.consent-dialog__close {
  position: absolute;
  top: .9rem;
  right: .9rem;
  display: inline-grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  margin: 0;
  padding: 0;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
}
.consent-dialog__close:hover { background: var(--canal); color: var(--paper); border-color: var(--canal); }
.consent-dialog__close svg { width: .9rem; height: .9rem; }
.consent-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .5rem 1.25rem;
  align-items: start;
  padding: 1rem 0;
  border-top: 1px solid var(--hairline);
}
.consent-option__title { font-family: var(--font-body); font-size: 1rem; font-weight: 700; line-height: 1.3; }
.consent-option__desc { margin-top: .3rem; font-size: .9rem; color: var(--ink-soft); line-height: 1.5; }
.consent-option__state { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--lagoon); }
.consent-dialog__actions { display: flex; flex-wrap: wrap; gap: .6rem; padding-top: 1rem; border-top: 1px solid var(--hairline); }

/* Toggle switch */
.switch { position: relative; display: inline-flex; align-items: center; gap: .6rem; cursor: pointer; }
.switch input {
  position: absolute;
  opacity: 0;
  width: 3rem;
  height: 1.6rem;
  margin: 0;
  cursor: pointer;
}
.switch__track {
  position: relative;
  width: 3rem;
  height: 1.6rem;
  flex: none;
  border: 1px solid var(--ink-soft);
  border-radius: 999px;
  background: var(--paper-2);
  transition: background-color .2s ease, border-color .2s ease;
}
.switch__track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: calc(1.6rem - 6px);
  height: calc(1.6rem - 6px);
  border-radius: 50%;
  background: var(--ink-soft);
  transition: transform .2s ease, background-color .2s ease;
}
.switch input:checked + .switch__track { background: var(--lagoon); border-color: var(--lagoon); }
.switch input:checked + .switch__track::after { transform: translateX(1.4rem); background: var(--paper); }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--red); outline-offset: 3px; }
.switch input:disabled { cursor: not-allowed; }
.switch input:disabled + .switch__track { opacity: .6; }

html.has-dialog { overflow: hidden; }

/* 22. 404 ------------------------------------------------------------------ */
.error-page {
  padding-block: clamp(3rem, 2rem + 5vw, 6.5rem);
  text-align: center;
}
.error-page__code {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(6rem, 4rem + 10vw, 11rem);
  line-height: .9;
  color: var(--lagoon);
  font-variant-numeric: lining-nums;
}
.error-page__rose {
  width: 5.5rem;
  height: 5.5rem;
  margin: 0 auto 1rem;
  color: var(--red);
  animation: drift 6s ease-in-out infinite;
}
@keyframes drift {
  0%, 100% { transform: rotate(-14deg); }
  50% { transform: rotate(22deg); }
}
.error-page__langs {
  display: grid;
  gap: 2rem;
  max-width: 54rem;
  margin: 2.5rem auto 0;
  text-align: left;
}
@media (min-width: 48rem) { .error-page__langs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.error-page__lang {
  padding: 1.5rem 1.6rem 1.6rem;
  background: var(--paper-light);
  border: 1px solid var(--hairline);
  border-top: 3px double var(--ink);
  border-radius: 0 0 var(--radius) var(--radius);
}
.error-page__lang > * + * { margin-top: .8rem; }
.error-page__lang h1, .error-page__lang h2 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); }
.error-page__lang p { color: var(--ink-soft); }
.error-page__links { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; padding: 0; list-style: none; }
html[data-pref-lang="it"] .error-page__lang--it { order: -1; }

/* 23. Utilities ------------------------------------------------------------ */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mt-4 { margin-top: var(--space-4) !important; }
.mt-6 { margin-top: var(--space-6) !important; }
.mb-0 { margin-bottom: 0 !important; }
.nowrap { white-space: nowrap; }
.list-plain { list-style: none; padding: 0; margin: 0; }
.clearfix::after { content: ""; display: table; clear: both; }
main:focus { outline: none; }

/* 24. Motion & print ------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .card:hover, .related__link:hover { transform: none; }
  .card:hover .card__media img, .island-card:hover .island-card__media img { transform: none; }
}

@media print {
  :root { --paper: #fff; --paper-2: #fff; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .site-nav, .masthead__toggle, .masthead__lang, .consent, .consent-dialog, .skip-link,
  .gallery__controls, .toc, .site-footer__nav, .numbers::before, .numbers::after, .site-footer::before { display: none !important; }
  .site-footer { background: none; color: #000; padding-top: 1rem; border-top: 1px solid #000; }
  .site-footer a { color: #000; }
  .hero__media img { height: auto; max-height: 9cm; }
  .hero__body { margin-top: 0; }
  .hero__card { box-shadow: none; border: 0; padding: 0; }
  .article { display: block; }
  .card, .route-card, .factbox, .figure { break-inside: avoid; box-shadow: none; }
  .prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; }
  .section, .numbers { padding-block: 1rem; background: none; }
}
