/* =========================================================
   VIVA ALMERÍA — DESIGN SYSTEM v2
   Mediterranean editorial: sun-faded stone, whitewash, sea and terracotta.
   One display face (Cormorant Garamond, self-hosted), system serif for reading,
   system sans for utility text. No JavaScript.
   ========================================================= */

/* 01. Tokens ---------------------------------------------- */
@font-face {
  font-family: "Cormorant";
  src: url("/fonts/cormorant-garamond-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face { /* metric-matched fallback keeps layout stable while the display face loads */
  font-family: "Cormorant Fallback";
  src: local("Georgia"), local("Times New Roman");
  size-adjust: 86%;
  ascent-override: 106%;
  descent-override: 33%;
}
:root {
  --ink: #17212b;
  --ink-2: #33404c;
  --muted: #5f6870;
  --navy: #173047;
  --navy-2: #1f3c57;
  --blue: #236b8e;
  --sea: #4b95b8;
  --terra: #b4482b;
  --terra-2: #9a3a20;
  --ochre: #c78a42;
  --ochre-ink: #8a5a1c;
  --sand: #e7d8c5;
  --sand-2: #efe5d6;
  --paper: #f8f5ef;
  --white: #fcfaf6;
  --olive: #74775b;
  --line: #e2d8ca;
  --line-2: #d3c6b3;

  --display: "Cormorant", "Cormorant Fallback", Georgia, serif;
  --serif: "Iowan Old Style", "Charter", "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 78rem;
  --text: 42rem;
  --gutter: clamp(1rem, 4.5vw, 2.5rem);
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(23, 33, 43, .05), 0 6px 18px -10px rgba(23, 33, 43, .22);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* 02. Reset ----------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 1rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.09375rem/1.7 var(--serif); overflow-wrap: break-word; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; text-decoration-color: rgba(35, 107, 142, .45); transition: color .2s var(--ease), text-decoration-color .2s var(--ease); }
a:hover { color: var(--navy); text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--ochre); outline-offset: 3px; border-radius: 3px; }
figure { margin: 0; }
ul, ol { padding-left: 1.25rem; }
svg { flex: none; }

/* 03. Typography ------------------------------------------ */
h1, h2, h3, h4 { color: var(--ink); text-wrap: balance; margin: 0; }
h1 { font: 600 clamp(2.5rem, 6.2vw, 4.25rem)/1.02 var(--display); letter-spacing: -.012em; }
h2 { font: 600 clamp(1.75rem, 3.6vw, 2.5rem)/1.1 var(--display); letter-spacing: -.005em; }
h3 { font: 700 1.15rem/1.3 var(--serif); }
h4 { font: 700 1rem/1.35 var(--serif); }
.eyebrow { font: 600 .74rem/1.2 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--terra); margin: 0 0 .9rem; }
.eyebrow--light { color: #f1c79a; }
.lede, .dek { font: 400 1.22rem/1.55 var(--serif); color: var(--ink-2); margin: 0; max-width: 40rem; }
.meta, .muted { font: .84rem/1.45 var(--sans); color: var(--muted); }
@media (min-width: 64rem) {
  body { font-size: 1.1875rem; line-height: 1.72; }
  .lede, .dek { font-size: 1.32rem; }
}

/* 04. Layout ---------------------------------------------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
main { display: block; }
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section--tint { background: var(--sand-2); }
.section--line { border-top: 1px solid var(--line); }
.section__head { display: flex; align-items: end; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: clamp(1.4rem, 3vw, 2.2rem); }
.section__head h2 { max-width: 34rem; }
.more { font: 600 .92rem/1.2 var(--sans); color: var(--terra); text-decoration: none; display: inline-flex; align-items: center; gap: .45rem; padding: .5rem 0; }
.more svg { width: 1.05rem; height: 1.05rem; transition: transform .25s var(--ease); }
.more:hover { color: var(--terra-2); }
.more:hover svg { transform: translateX(4px); }

/* Article + rail (place pages, guides) */
.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; padding-bottom: clamp(2.5rem, 6vw, 4rem); }
@media (min-width: 64rem) {
  .layout { grid-template-columns: minmax(0, var(--text)) 17.5rem; justify-content: space-between; column-gap: clamp(3rem, 6vw, 6rem); }
  .layout .sticky { position: sticky; top: 1.5rem; }
}
.prose { max-width: var(--text); }
.prose p { margin: 1.1rem 0 0; }
.prose > :first-child, .prose > .histnote + p { margin-top: 0; }
.prose > .histnote + h2 { margin-top: .4rem; }
.prose h2 + p, .prose h3 + p, .prose h2 + figure + p { margin-top: .9rem; }
.prose h2 { margin-top: 2.8rem; scroll-margin-top: 1rem; }
.prose h3 { margin-top: 2rem; }
.prose ul, .prose ol { margin: 1.1rem 0 0; }
.prose li + li { margin-top: .5rem; }
.prose li::marker { color: var(--terra); }

/* 05. Header ---------------------------------------------- */
.skip { position: absolute; left: -999px; top: 0; z-index: 20; background: var(--ink); color: #fff; padding: .6rem 1rem; }
.skip:focus { left: .5rem; top: .5rem; }
.mast { position: relative; z-index: 5; background: var(--white); border-bottom: 1px solid var(--line); }
.mast__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.6rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; color: var(--ink); text-decoration: none; }
.brand svg { width: 2.35rem; height: 2.35rem; color: var(--terra); }
.brand__text { display: flex; flex-direction: column; }
.brand__word { font: 600 1.7rem/1 var(--display); letter-spacing: .005em; }
.brand__tag { font: 600 .62rem/1.2 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: .3rem; }
.brand:hover { color: var(--ink); }
.brand:hover svg { color: var(--terra-2); }
.mast--over { position: absolute; top: 0; left: 0; right: 0; background: transparent; border-bottom-color: transparent; }
.mast--over .brand, .mast--over .brand:hover { color: #fff; }
.mast--over .brand svg { color: #f1c79a; }
.mast--over .brand__tag { color: rgba(255, 255, 255, .78); }

/* 06. Navigation ------------------------------------------ */
.nav ul { display: flex; gap: clamp(1rem, 2.2vw, 2.1rem); list-style: none; margin: 0; padding: 0; }
.nav a { position: relative; display: inline-block; padding: .6rem 0; font: 500 .98rem/1.2 var(--sans); letter-spacing: .02em; color: var(--ink-2); text-decoration: none; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: .25rem; height: 1.5px; background: var(--terra); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:hover { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); }
.nav a[aria-current] { color: var(--ink); }
.mast--over .nav a { color: rgba(255, 255, 255, .9); }
.mast--over .nav a:hover, .mast--over .nav a[aria-current] { color: #fff; }
.mast--over .nav a::after { background: #f1c79a; }
.menu { display: none; }
.menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; padding: 0 .85rem; border: 1px solid var(--line-2); border-radius: var(--radius-sm); font: 600 .9rem/1 var(--sans); color: var(--ink); background: var(--white); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary svg { width: 1.15rem; height: 1.15rem; }
.menu .ico-close { display: none; }
.menu[open] .ico-open { display: none; }
.menu[open] .ico-close { display: inline; }
.menu ul { list-style: none; margin: 0; padding: .5rem 0; }
.menu a { display: flex; justify-content: space-between; align-items: center; padding: .85rem 0; border-bottom: 1px solid var(--line); font: 600 1.05rem/1.2 var(--sans); color: var(--ink); text-decoration: none; }
.menu a[aria-current] { color: var(--terra); }
.menu__panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 0 var(--gutter) 1rem; }
.mast--over .menu summary { background: rgba(23, 48, 71, .55); color: #fff; border-color: rgba(255, 255, 255, .35); }
@media (max-width: 63.99rem) {
  .nav { display: none; }
  .menu { display: block; }
  .mast__in { min-height: 4rem; }
  .brand svg { width: 2rem; height: 2rem; }
  .brand__word { font-size: 1.5rem; }
}
@media (max-width: 30rem) { .brand__tag { display: none; } }

/* Breadcrumbs */
.crumbs { font: .84rem/1.4 var(--sans); color: var(--muted); padding-top: 1.5rem; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem; }
.crumbs li + li::before { content: "/"; margin-right: .3rem; color: var(--line-2); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--terra); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink-2); }

/* 07. Hero (home) ------------------------------------------ */
.hero { position: relative; background: var(--navy); color: #fff; overflow: hidden; isolation: isolate; }
.hero__media { position: relative; }
.hero__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23, 48, 71, .72) 0%, rgba(23, 48, 71, 0) 34%, rgba(23, 48, 71, 0) 55%, rgba(23, 48, 71, .92) 100%); }
.hero__cap { position: absolute; right: var(--gutter); bottom: 1rem; z-index: 2; margin: 0; display: flex; align-items: center; gap: .4rem; font: 600 .8rem/1.3 var(--sans); color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .45); }
.hero__cap svg { width: 1rem; height: 1rem; }
.hero__in { position: relative; z-index: 2; padding-top: 1.8rem; padding-bottom: 2.6rem; }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 9vw, 5rem); font-weight: 500; line-height: 1; }
.hero__lede { font: 400 1.12rem/1.6 var(--serif); color: rgba(255, 255, 255, .88); margin: 1.2rem 0 0; max-width: 34rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0 0; }
@media (min-width: 64rem) {
  .hero { min-height: clamp(36rem, 82vh, 44rem); display: flex; align-items: center; }
  .hero__media { position: absolute; inset: 0 0 0 auto; width: min(64vw, 1000px); }
  .hero__media img { height: 100%; aspect-ratio: auto; }
  .hero__media::after { background: linear-gradient(90deg, var(--navy) 0%, rgba(23, 48, 71, .55) 22%, rgba(23, 48, 71, 0) 55%), linear-gradient(180deg, rgba(23, 48, 71, .55) 0%, rgba(23, 48, 71, 0) 26%); }
  .hero__in { width: 100%; padding-top: 7.5rem; padding-bottom: 4.5rem; }
  .hero__text { max-width: 36rem; }
  .hero__lede { font-size: 1.24rem; }
  .hero__cap { bottom: 1.6rem; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .6rem; min-height: 3rem; padding: .8rem 1.35rem; border-radius: var(--radius-sm); font: 600 .98rem/1 var(--sans); letter-spacing: .01em; text-decoration: none; transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease); }
.btn svg { width: 1.1rem; height: 1.1rem; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--primary { background: var(--terra); color: #fff; border: 1px solid var(--terra); }
.btn--primary:hover { background: var(--terra-2); border-color: var(--terra-2); color: #fff; }
.btn--ghost { color: #fff; border: 1px solid rgba(255, 255, 255, .55); }
.btn--ghost:hover { background: rgba(255, 255, 255, .1); border-color: #fff; color: #fff; }
.btn--line { color: var(--ink); border: 1px solid var(--line-2); background: transparent; }
.btn--line:hover { border-color: var(--ink); color: var(--ink); }

/* 08. Editorial components --------------------------------- */
/* exploration strip */
.strip { background: var(--white); border-bottom: 1px solid var(--line); }
.strip ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; }
.strip li + li { border-top: 1px solid var(--line); }
.strip a { display: grid; grid-template-columns: 2.4rem 1fr; gap: .2rem .95rem; padding: 1.15rem 0; color: var(--ink); text-decoration: none; }
.strip svg { grid-row: span 2; width: 2rem; height: 2rem; color: var(--ochre-ink); margin-top: .15rem; transition: transform .3s var(--ease), color .3s; }
.strip strong { font: 600 1.25rem/1.15 var(--display); }
.strip span { font: .86rem/1.4 var(--sans); color: var(--muted); }
.strip a:hover svg { color: var(--terra); transform: translateY(-2px); }
@media (min-width: 48rem) {
  .strip ul { grid-template-columns: repeat(2, 1fr); }
  .strip li + li { border-top: 0; }
  .strip li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .strip a { padding: 1.4rem 1.2rem 1.4rem 0; }
}
@media (min-width: 64rem) {
  .strip ul { grid-template-columns: repeat(4, 1fr); }
  .strip li:nth-child(n+3) { border-top: 0; }
  .strip li + li a { border-left: 1px solid var(--line); padding-left: 1.4rem; }
}

/* photographic tiles (destination cards) */
.dest { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.dest a { position: relative; display: block; border-radius: var(--radius); overflow: hidden; color: #fff; text-decoration: none; background: var(--navy); box-shadow: var(--shadow); isolation: isolate; }
.dest img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s var(--ease); }
@media (min-width: 64rem) { .dest img { aspect-ratio: 1 / 1; } }
.dest a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23, 33, 43, 0) 45%, rgba(23, 33, 43, .82) 100%); }
.dest .dest__body { position: absolute; left: 1.1rem; right: 3.4rem; bottom: 1rem; z-index: 2; }
.dest strong { display: block; font: 600 1.75rem/1.05 var(--display); }
.dest span { display: block; font: .84rem/1.35 var(--sans); color: rgba(255, 255, 255, .86); margin-top: .3rem; }
.dest .arrow { position: absolute; right: 1rem; bottom: 1.1rem; z-index: 2; width: 2.1rem; height: 2.1rem; border: 1px solid rgba(255, 255, 255, .7); border-radius: 50%; display: grid; place-items: center; transition: background .25s var(--ease), transform .25s var(--ease); }
.dest .arrow svg { width: 1rem; height: 1rem; }
.dest a:hover img { transform: scale(1.03); }
.dest a:hover .arrow { background: var(--terra); border-color: var(--terra); transform: translateX(2px); }

/* mosaic: one large feature, two supporting, one horizontal */
.mosaic { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.story { display: block; color: var(--ink); text-decoration: none; }
.story figure { overflow: hidden; border-radius: var(--radius); background: var(--sand); max-width: var(--w, 100%); }
.story img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s var(--ease); }
.story:hover img { transform: scale(1.025); }
.story__body { padding: .9rem 0 0; }
.story h3 { font: 600 1.6rem/1.1 var(--display); color: var(--ink); }
.story p { font: .95rem/1.55 var(--sans); color: var(--muted); margin: .45rem 0 0; }
.story:hover h3 { color: var(--terra); }
.story--wide figure { display: grid; }
@media (min-width: 48rem) {
  .mosaic { grid-template-columns: repeat(2, 1fr); }
  .story--lead { grid-column: 1 / -1; }
  .story--wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1.1fr 1fr; gap: 1.5rem; align-items: center; }
  .story--wide .story__body { padding: 0; }
}
@media (min-width: 64rem) {
  .mosaic { grid-template-columns: 1.35fr 1fr; grid-template-rows: auto auto; }
  .story--lead { grid-column: 1; grid-row: 1 / span 2; }
  .story--lead img { aspect-ratio: 4 / 3; }
  .story--lead h3 { font-size: 2.2rem; }
  .story--wide { grid-column: 1 / -1; grid-template-columns: 1fr 1.2fr; }
  .story--wide img { aspect-ratio: 16 / 9; }
}

/* split feature (coast) */
.split { display: grid; gap: 1.6rem; align-items: center; }
.split figure { border-radius: var(--radius); overflow: hidden; }
.split figcaption, .fig-cap { font: .8rem/1.4 var(--sans); color: var(--muted); margin-top: .55rem; }
.split__body p { margin: 1rem 0 0; color: var(--ink-2); }
.namelist { list-style: none; margin: 1.3rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.namelist a { display: inline-block; padding: .42rem .75rem; border: 1px solid var(--line-2); border-radius: 4px; font: 500 .86rem/1.2 var(--sans); color: var(--ink-2); text-decoration: none; background: var(--white); transition: border-color .2s, color .2s; }
.namelist a:hover { border-color: var(--terra); color: var(--terra); }
@media (min-width: 64rem) { .split { grid-template-columns: 1.15fr 1fr; gap: 3.5rem; } .split--rev { grid-template-columns: 1fr 1.15fr; } .split--rev figure { order: 2; } }

/* landscape tiles */
.lands { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; grid-template-columns: 1fr; }
.lands a { display: block; height: 100%; padding: 1.5rem 1.4rem 1.6rem; background: var(--white); color: var(--ink); text-decoration: none; transition: background .25s; }
.lands a:hover { background: var(--paper); }
.lands .n { display: block; font: 500 3rem/1 var(--display); color: var(--terra); }
.lands strong { display: block; font: 600 1.45rem/1.15 var(--display); margin-top: .5rem; }
.lands span { display: block; font: .9rem/1.5 var(--sans); color: var(--muted); margin-top: .4rem; }
@media (min-width: 48rem) { .lands { grid-template-columns: repeat(3, 1fr); } }

/* quiet practical list */
.quiet { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
.quiet li { border-bottom: 1px solid var(--line); }
.quiet a { display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem; padding: 1.05rem 0; color: var(--ink); text-decoration: none; }
.quiet strong { font: 600 1.08rem/1.3 var(--serif); }
.quiet span { grid-column: 1; font: .9rem/1.45 var(--sans); color: var(--muted); }
.quiet svg { grid-row: 1 / span 2; grid-column: 2; align-self: center; width: 1.1rem; height: 1.1rem; color: var(--muted); transition: transform .25s var(--ease), color .25s; }
.quiet a:hover strong { color: var(--terra); }
.quiet a:hover svg { transform: translateX(4px); color: var(--terra); }
.badge { display: inline-block; margin-left: .5rem; padding: .18rem .42rem; border: 1px solid var(--line-2); border-radius: 3px; font: 600 .64rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); vertical-align: .2em; }

/* figures inside articles: low-resolution archive photos are never stretched */
.prose figure.inset { margin: .4rem 0 1.4rem; }
.prose figure.inset img, .prose figure.lead img { border-radius: var(--radius-sm); }
.prose figcaption, figure figcaption { font: .8rem/1.4 var(--sans); color: var(--muted); margin-top: .5rem; }
@media (min-width: 40rem) {
  .prose figure.inset { float: right; width: min(46%, var(--w, 450px)); margin: .35rem 0 1.2rem 1.8rem; }
  .prose h2 { clear: both; }
}

/* 09. Cards (related places) -------------------------------- */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.2rem 1.1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 12.5rem), 1fr)); }
.tile a { display: block; color: var(--ink); text-decoration: none; }
.tile figure { border-radius: var(--radius-sm); overflow: hidden; background: var(--sand); aspect-ratio: 4 / 3; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.tile .ph { width: 100%; height: 100%; display: grid; place-items: center; font: 500 3rem/1 var(--display); color: var(--ochre-ink); background: linear-gradient(135deg, var(--sand) 0%, var(--sand-2) 100%); }
.tile strong { display: block; font: 600 1.32rem/1.15 var(--display); margin-top: .65rem; }
.tile span { display: block; font: .86rem/1.45 var(--sans); color: var(--muted); margin-top: .25rem; }
.tile a:hover img { transform: scale(1.03); }
.tile a:hover strong { color: var(--terra); }
@media (max-width: 30rem) {
  .tiles { grid-template-columns: 1fr; gap: 0; }
  .tile a { display: grid; grid-template-columns: 6.2rem 1fr; gap: .2rem .9rem; padding: .75rem 0; border-bottom: 1px solid var(--line); }
  .tile figure { grid-row: span 2; }
  .tile strong { margin-top: 0; font-size: 1.25rem; }
}
.tlist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.tlist li { padding: .9rem 0; border-bottom: 1px solid var(--line); }
.tlist a { font-weight: 700; }
.tlist p { margin: .2rem 0 0; font: .9rem/1.5 var(--sans); color: var(--muted); }

/* 10. Place pages ------------------------------------------- */
.phero { display: grid; gap: 1.6rem; padding: 1.4rem 0 2rem; align-items: center; }
.phero h1 { margin: 0; }
.phero .lede { margin-top: 1.1rem; }
.phero figure img { border-radius: var(--radius); box-shadow: var(--shadow); }
.phero figcaption { margin-top: .55rem; }
.phero__map { background: var(--sand-2); border-radius: var(--radius); padding: 1rem; }
@media (min-width: 64rem) {
  .phero { align-items: end; }
  .phero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; padding: 2rem 0 2.6rem; }
  .phero--small { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
  .phero figure { justify-self: end; width: 100%; }
  .phero--small figure { max-width: var(--w, 450px); }
}
.factrail { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10.5rem), 1fr)); margin: 0 0 2.4rem; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.factrail div { padding: .9rem 1rem .95rem 0; }
.factrail dt { font: 600 .68rem/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.factrail dd { margin: .35rem 0 0; font: 500 .98rem/1.35 var(--sans); color: var(--ink); }
.factrail dd a { color: var(--ink); }
.factrail dd a:hover { color: var(--terra); }
@media (min-width: 48rem) { .factrail div + div { border-left: 1px solid var(--line); padding-left: 1rem; } }
.related { clear: both; margin-top: 3rem; }
.related > h2 { font-size: clamp(1.6rem, 3vw, 2rem); margin: 2.6rem 0 1.2rem; }
.related > h2:first-child { margin-top: 0; }
.related .rel-inline { font: .95rem/1.6 var(--sans); color: var(--ink-2); }
.nearby-band { background: var(--sand-2); padding: clamp(2.2rem, 5vw, 3.4rem) 0; border-top: 1px solid var(--line); }
.nearby-band h2 { margin-bottom: 1.4rem; }

/* rail boxes */
.box { margin-bottom: 2.2rem; font: .92rem/1.5 var(--sans); }
.box > h2, .box__h { font: 600 .7rem/1.2 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin: 0 0 .8rem; padding-bottom: .6rem; border-bottom: 1px solid var(--line-2); }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: t; }
.toc li { counter-increment: t; padding: .35rem 0; }
.toc li::before { content: counter(t, decimal-leading-zero); font: 600 .72rem/1 var(--sans); color: var(--terra); margin-right: .6rem; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--terra); text-decoration: underline; }
.facts { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }

/* 11. Maps ----------------------------------------------------- */
.locator svg { width: 100%; height: auto; display: block; }
.locator .land { fill: var(--sand); stroke: var(--sand); stroke-width: 150; stroke-linejoin: round; }
.locator .land-edge { fill: none; stroke: var(--line-2); stroke-width: 4; stroke-dasharray: 2 16; stroke-linecap: round; }
.locator .d { fill: var(--olive); opacity: .55; }
.locator .c { fill: var(--sea); opacity: .85; }
.locator .near { fill: var(--navy); }
.locator .tie { stroke: var(--navy); stroke-width: 5; opacity: .35; stroke-dasharray: 10 12; }
.locator .halo { fill: var(--terra); opacity: .18; }
.locator .here { fill: var(--terra); stroke: var(--white); stroke-width: 8; }
.locator text { font: 600 58px var(--sans); fill: var(--ink); paint-order: stroke; stroke: var(--sand); stroke-width: 16px; stroke-linejoin: round; }
.locator text.t-here { font: 600 112px var(--display); fill: var(--terra-2); }
.locator text.t-ref { font-weight: 500; fill: var(--muted); font-size: 50px; }
.locator a:hover circle { fill: var(--terra); opacity: 1; }
.locator__note { font: .76rem/1.45 var(--sans); color: var(--muted); margin: .6rem 0 0; }
.locator__key { display: flex; flex-wrap: wrap; gap: .3rem .9rem; font: .76rem/1.3 var(--sans); color: var(--muted); margin: .5rem 0 0; padding: 0; list-style: none; }
.locator__key i { display: inline-block; width: .6rem; height: .6rem; border-radius: 50%; margin-right: .35rem; vertical-align: -.02em; }
.locator--big text { font-size: 44px; stroke-width: 12px; }

/* 12. Historical content --------------------------------------- */
.histnote { display: flex; gap: .6rem; align-items: flex-start; margin: 0 0 2rem; padding: .7rem 0 .75rem; border-top: 1px solid var(--ochre); font: .86rem/1.5 var(--sans); color: var(--muted); max-width: var(--text); }
.histnote svg { width: 1rem; height: 1rem; color: var(--ochre-ink); margin-top: .15rem; }
.histnote b { font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: .68rem; color: var(--ochre-ink); margin-right: .5rem; }
.histguide { margin: 0 0 2.4rem; padding: 1.3rem 1.4rem 1.35rem; background: var(--white); border: 1px solid var(--line-2); border-top: 3px solid var(--navy); border-radius: 0 0 var(--radius-sm) var(--radius-sm); max-width: var(--text); font: .95rem/1.6 var(--sans); color: var(--ink-2); }
.histguide .eyebrow { color: var(--navy); margin-bottom: .45rem; display: flex; align-items: center; gap: .5rem; }
.histguide .eyebrow svg { width: 1rem; height: 1rem; }
.histguide strong { display: block; font: 600 1.45rem/1.2 var(--display); color: var(--ink); margin-bottom: .45rem; }
.histguide p { margin: 0; }
.then { margin: 1.8rem 0; padding: .95rem 1.15rem 1rem; border-left: 2px solid var(--ochre); background: var(--sand-2); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font: .9rem/1.55 var(--sans); color: var(--ink-2); max-width: var(--text); }
.then .then-title, .then summary { font: 600 .68rem/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ochre-ink); margin: 0 0 .55rem; }
.then summary { cursor: pointer; margin: 0; list-style-position: inside; }
.then[open] summary { margin-bottom: .55rem; }
.then ul { margin: 0; padding-left: 1rem; }
.then li + li { margin-top: .35rem; }
.then li::marker { color: var(--ochre); }
details.source { clear: both; max-width: var(--text); margin-top: 3rem; border-top: 1px solid var(--line); padding-top: .8rem; font: .82rem/1.55 var(--sans); color: var(--muted); }
details.source summary { cursor: pointer; display: inline-flex; align-items: center; gap: .4rem; font: 600 .68rem/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); list-style: none; }
details.source summary::-webkit-details-marker { display: none; }
details.source summary::before { content: "+"; font: 400 1rem/1 var(--sans); }
details.source[open] summary::before { content: "–"; }
details.source p { margin: .55rem 0 0; }
details.source code { font-size: .78rem; background: var(--sand-2); padding: .05rem .3rem; border-radius: 3px; overflow-wrap: anywhere; }

/* hubs */
.hubhero { display: grid; gap: 2rem; padding: 1.6rem 0 2.4rem; align-items: center; }
.hubhero__stats { list-style: none; margin: 1.6rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .8rem 2rem; }
.hubhero__stats b { display: block; font: 500 2.4rem/1 var(--display); color: var(--terra); }
.hubhero__stats li { font: .84rem/1.3 var(--sans); color: var(--muted); }
.hubhero figure img { border-radius: var(--radius); box-shadow: var(--shadow); }
.hubhero__map { background: var(--sand-2); border-radius: var(--radius); padding: 1rem 1rem .8rem; }
@media (min-width: 64rem) { .hubhero { grid-template-columns: 1fr 1.05fr; gap: 4rem; padding: 2.2rem 0 3rem; } }
.az { display: flex; flex-wrap: wrap; gap: .25rem; list-style: none; margin: 0 0 1.6rem; padding: 0; font: 600 .9rem/1 var(--sans); }
.az a { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border: 1px solid var(--line-2); border-radius: 4px; text-decoration: none; color: var(--ink-2); background: var(--white); }
.az a:hover { border-color: var(--terra); color: var(--terra); }
.index { columns: 1; column-gap: 2.5rem; }
.index section { break-inside: avoid; padding: 0 0 1.1rem; }
.index h3 { font: 500 2rem/1 var(--display); color: var(--terra); margin: 0 0 .4rem; scroll-margin-top: 1rem; }
.index ul { list-style: none; margin: 0; padding: 0; }
.index li { padding: .5rem 0; border-bottom: 1px solid var(--line); }
.index a { font: 700 1.02rem/1.3 var(--serif); text-decoration: none; color: var(--ink); }
.index a:hover { color: var(--terra); }
.index p { margin: .15rem 0 0; font: .86rem/1.45 var(--sans); color: var(--muted); }
@media (min-width: 48rem) { .index { columns: 2; } }
@media (min-width: 72rem) { .index { columns: 3; } }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0; padding: 0; }
.chips a { display: inline-block; padding: .4rem .7rem; border-radius: 4px; background: var(--white); border: 1px solid var(--line); font: 500 .86rem/1.2 var(--sans); color: var(--ink-2); text-decoration: none; }
.chips a:hover { border-color: var(--terra); color: var(--terra); }
.notes { display: grid; gap: 2rem 2.2rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.note-card { scroll-margin-top: 1rem; }
.note-card figure { border-radius: var(--radius-sm); overflow: hidden; background: var(--sand); aspect-ratio: 4 / 3; margin-bottom: .9rem; max-width: var(--w, 100%); }
.note-card figure img { width: 100%; height: 100%; object-fit: cover; }
.note-card .ph, .gallery .ph { width: 100%; height: 100%; display: grid; place-items: center; font: 500 3.4rem/1 var(--display); color: var(--ochre-ink); background: linear-gradient(135deg, var(--sand) 0%, var(--sand-2) 100%); }
.guide-cards { max-width: 40rem; }
.note-card h3 { font: 600 1.55rem/1.1 var(--display); }
.note-card p { margin: .5rem 0 0; font-size: 1rem; line-height: 1.6; color: var(--ink-2); }
.note-card .near { font: .84rem/1.4 var(--sans); color: var(--muted); }
.note-card .then { margin: .9rem 0 0; }
.gallery { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); }
.gallery li { scroll-margin-top: 1rem; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); }
.gallery strong { display: block; font: 600 1.25rem/1.15 var(--display); margin-top: .55rem; }
.gallery span { font: .84rem/1.4 var(--sans); color: var(--muted); }

/* legacy v1 class names still produced by some templates */
.page-head { padding: 1.4rem 0 2rem; max-width: 50rem; }
.page-head .dek { margin-top: 1rem; }
.kicker { font: 600 .74rem/1.2 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--terra); margin: 0 0 .9rem; }
.tags { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.tags li { font: 500 .78rem/1 var(--sans); letter-spacing: .04em; padding: .42rem .6rem; border: 1px solid var(--line-2); border-radius: 3px; color: var(--ink-2); background: var(--white); }
.entries { list-style: none; margin: 0 0 2rem; padding: 0; }
.entries li { padding: .9rem 0; border-bottom: 1px solid var(--line); }
.entries a { font: 600 1.3rem/1.2 var(--display); }
.entries p { margin: .2rem 0 0; font: .9rem/1.5 var(--sans); color: var(--muted); }
.short-notes article { padding: 1rem 0 1.4rem; border-bottom: 1px solid var(--line); }
.short-notes article::after { content: ""; display: block; clear: both; }
.short-notes h3 { font: 600 1.45rem/1.15 var(--display); }
.short-notes p { margin: .5rem 0 0; }
.short-notes .near { font: .84rem/1.4 var(--sans); color: var(--muted); }
.short-notes figure.inset { float: right; width: min(40%, 200px); margin: .3rem 0 .8rem 1.2rem; }
.short-notes figure.inset img { border-radius: var(--radius-sm); }
.picks { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); }
.picks img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: .5rem; }
.picks strong, .picks a { font: 600 1.2rem/1.2 var(--display); }
.picks p { margin: .2rem 0 0; font: .86rem/1.45 var(--sans); color: var(--muted); }
.table-wrap { overflow-x: auto; margin: 1rem 0 2rem; }
table.phrases { width: 100%; border-collapse: collapse; font: .95rem/1.45 var(--sans); }
table.phrases th { text-align: left; font: 600 .68rem/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding: .6rem .7rem; border-bottom: 1px solid var(--ink); }
table.phrases td { padding: .7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.phrases td:nth-child(2) { font: 600 1.25rem/1.25 var(--display); color: var(--navy); }
table.phrases tr:hover td { background: var(--white); }
@media (max-width: 40rem) {
  table.phrases thead { display: none; }
  table.phrases tr { display: block; padding: .7rem 0; border-bottom: 1px solid var(--line); }
  table.phrases td { display: block; border: 0; padding: .1rem 0; }
}
.prose--wide { max-width: 50rem; }
.rel-inline { font: .95rem/1.6 var(--sans); }

/* 13. Related content (guides list) ------------------------------ */
.guide-cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); list-style: none; margin: 0; padding: 0; }
.guide-cards a { display: block; height: 100%; padding: 1.3rem 1.3rem 1.4rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; transition: border-color .25s, transform .25s var(--ease); }
.guide-cards a:hover { border-color: var(--line-2); transform: translateY(-2px); }
.guide-cards strong { display: block; font: 600 1.5rem/1.15 var(--display); }
.guide-cards span { display: block; margin-top: .45rem; font: .9rem/1.5 var(--sans); color: var(--muted); }
.guide-cards .more { margin-top: .6rem; }

/* Things-to-do hub: typographic feature panel + tiles */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mosaic--feature { display: grid; gap: 1.8rem; grid-template-columns: 1fr; }
.fpanel { display: flex; flex-direction: column; gap: .2rem; padding: clamp(1.4rem, 3vw, 2.2rem); background: var(--navy); color: rgba(255, 255, 255, .88); border-radius: var(--radius); text-decoration: none; }
.fpanel h3 { font: 500 clamp(2rem, 4vw, 2.8rem)/1.05 var(--display); color: #fff; }
.fpanel p { font: 400 1.05rem/1.6 var(--serif); margin: .8rem 0 0; }
.fpanel .eyebrow { margin: 0 0 .5rem; }
.fpanel figure { margin-top: 1.4rem; max-width: min(100%, var(--w, 350px)); }
.fpanel figure img { border-radius: var(--radius-sm); }
.fpanel .more { color: #f1c79a; margin-top: 1rem; }
.fpanel:hover h3 { color: #f1c79a; }
.fpanel:hover .more svg { transform: translateX(4px); }
.mosaic__side .tiles { grid-template-columns: repeat(auto-fill, minmax(min(100%, 11rem), 1fr)); }
@media (min-width: 64rem) { .mosaic--feature { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: start; } }
.narrow { max-width: 46rem; }
.story--wide .eyebrow { margin-bottom: .4rem; }

/* in-page jump bar (hubs) */
.jump { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; margin: 0 0 2rem; font: .86rem/1.3 var(--sans); }
.jump > span { font: 600 .68rem/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.jump ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; }
.jump a { display: inline-block; padding: .35rem 0; color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--line-2); }
.jump a:hover { color: var(--terra); border-color: var(--terra); }

/* stories without a qualifying photo, and photos never wider than their source */
.story--text { display: block; max-width: 46rem; padding: 1.6rem 1.7rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.story--text .story__body { padding: 0; }
.story--text .more { margin-top: .6rem; }

/* no qualifying photograph: designed as a text card, never a placeholder image */
.note-card--text { border-top: 2px solid var(--ochre); padding-top: 1rem; }
.tile--text a { border-top: 2px solid var(--line-2); padding-top: .8rem; }
.tile--text strong { margin-top: 0; }
@media (max-width: 30rem) { .tile--text a { display: block; border-top: 0; } }

/* 14. Footer ----------------------------------------------------- */
.foot { background: var(--navy); color: rgba(255, 255, 255, .78); margin-top: clamp(3rem, 8vw, 5rem); font: .92rem/1.6 var(--sans); }
.foot__in { display: grid; gap: 2rem; padding-top: 3rem; padding-bottom: 2.2rem; }
.foot .brand, .foot .brand:hover { color: #fff; }
.foot .brand svg { color: #f1c79a; }
.foot .brand__tag { color: rgba(255, 255, 255, .6); }
.foot__about { margin: 1rem 0 0; max-width: 24rem; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .2rem 2rem; }
.foot ul a { display: inline-block; padding: .4rem 0; color: #fff; text-decoration: none; }
.foot ul a:hover { color: #f1c79a; text-decoration: underline; }
.foot__base { border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 1.1rem; padding-bottom: 1.4rem; font-size: .82rem; color: rgba(255, 255, 255, .6); }
.foot__base p { margin: 0; }
@media (min-width: 48rem) { .foot__in { grid-template-columns: 1.3fr 1fr; } .foot ul { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.main--home { padding-bottom: 0; }

/* 15. Responsive helpers ------------------------------------------- */
@media (max-width: 30rem) {
  h1 { font-size: clamp(2.35rem, 11vw, 2.9rem); }
  .lede, .dek { font-size: 1.12rem; }
  .btn { width: 100%; justify-content: center; }
  .factrail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .factrail div:nth-child(2n) { border-left: 1px solid var(--line); padding-left: .8rem; }
  .factrail div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* 16. Accessibility ------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .mast, .foot, .menu, .locator, .nearby-band, .skip { display: none; }
  body { background: #fff; }
}
