/* Tidehouse shared design system */
:root {
  --ink: #071b25;
  --ink-2: #0b2a37;
  --ink-3: #123d4b;
  --cyan: #79e4e1;
  --cyan-deep: #179a9b;
  --coral: #ff775f;
  --coral-dark: #d8513d;
  --sand: #efe5d2;
  --pearl: #f8f5ee;
  --white: #fff;
  --muted: #61747a;
  --line: rgba(7, 27, 37, .16);
  --shadow: 0 22px 55px rgba(4, 22, 30, .14);
  --radius: 22px;
  --container: min(1180px, calc(100% - 40px));
  --display: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--pearl); font-family: var(--sans); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
main, section, article, div, nav, header, footer, aside, form, fieldset { min-width: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--coral-dark); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 4px; }
[hidden] { display: none !important; }
.container { width: var(--container); margin-inline: auto; }
.section, main > section:not(.hero):not(.article-hero), main > div > section { padding: clamp(64px, 8vw, 116px) max(20px, calc((100% - 1180px) / 2)); }
.section .container, main > section > .container, main > div > section > .container { width: 100%; max-width: 1180px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 999; top: 12px; left: 12px; padding: 10px 16px; color: var(--ink); background: var(--white); border-radius: 7px; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

h1, h2, h3 { margin: 0 0 .55em; color: var(--ink); font-family: var(--display); font-weight: 500; line-height: 1.03; text-wrap: balance; }
h1 { font-size: clamp(3.3rem, 8.6vw, 7.8rem); letter-spacing: -.055em; }
h2 { font-size: clamp(2.3rem, 5vw, 4.6rem); letter-spacing: -.035em; }
h3 { font-size: clamp(1.45rem, 2.3vw, 2rem); line-height: 1.14; }
p { margin: 0 0 1.15em; }
ul, ol { padding-left: 1.25rem; }
.eyebrow { margin-bottom: 1rem; color: var(--cyan-deep); font-size: .72rem; font-weight: 800; letter-spacing: .15em; line-height: 1.35; text-transform: uppercase; }
.eyebrow--light { color: var(--cyan); }
.eyebrow > span { display: inline-block; width: 2.3rem; height: 1px; margin-right: .6rem; vertical-align: middle; background: currentColor; }
.section-heading { max-width: 790px; margin-bottom: clamp(34px, 5vw, 64px); }
.section-heading--compact { margin-bottom: 32px; }
.section-heading > p:last-child { max-width: 680px; color: var(--muted); font-size: 1.08rem; }
.fine-print, .field-hint, small, .meta { color: var(--muted); font-size: .82rem; }

.concept-bar { color: #d9f0ef; background: #041319; font-size: .78rem; }
.concept-bar__inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 38px; }
.concept-bar p { margin: 0; }
.concept-bar a { color: var(--cyan); }
.site-header { position: relative; z-index: 50; color: var(--ink); background: rgba(248,245,238,.97); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; min-height: 82px; }
.site-header > .brand, .site-header > a:first-child { margin: 18px 24px; }
.site-header > nav { margin: 12px 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.brand:hover { color: inherit; }
.brand__mark { width: 43px; height: 43px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 1.5; }
.brand__moon { fill: var(--coral); stroke: none; }
.brand__type { display: grid; line-height: 1.1; }
.brand__type strong, .brand > strong { font-family: var(--display); font-size: 1.35rem; font-weight: 600; }
.brand__type small, .brand > span, .brand > small { margin-top: 3px; color: var(--muted); font-size: .59rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.primary-nav__list, .site-header nav ul { display: flex; align-items: center; gap: 24px; margin: 0; padding: 0; list-style: none; }
.primary-nav a, .primary-nav button, .site-header nav > a, .site-header nav li > a { border: 0; color: inherit; background: none; font-size: .83rem; font-weight: 750; text-decoration: none; }
.nav-menu { position: relative; }
.nav-menu__trigger { padding: 14px 3px; cursor: pointer; }
.nav-menu__panel { position: absolute; top: calc(100% + 15px); right: -30px; display: none; grid-template-columns: repeat(3, minmax(170px, 1fr)); gap: 1px; width: min(690px, 88vw); padding: 1px; color: var(--pearl); background: #31505a; border-radius: 15px; box-shadow: var(--shadow); }
.nav-menu__panel--wide { grid-template-columns: repeat(2, minmax(210px, 1fr)); width: min(600px, 88vw); }
.nav-menu:focus-within .nav-menu__panel, .nav-menu:hover .nav-menu__panel, .nav-menu.is-open .nav-menu__panel { display: grid; }
.nav-menu__panel a { display: grid; grid-template-columns: auto 1fr; gap: 0 12px; padding: 22px; color: var(--pearl); background: var(--ink-2); }
.nav-menu__panel a:first-child { border-radius: 14px 0 0 14px; }
.nav-menu__panel a:last-child { border-radius: 0 14px 14px 0; }
.nav-menu__panel a:hover { color: var(--white); background: var(--ink-3); }
.nav-menu__panel a > span { grid-row: 1 / 3; color: var(--cyan); font-family: var(--display); font-size: 1.25rem; }
.nav-menu__panel strong { font-size: .87rem; }
.nav-menu__panel small { margin-top: 3px; color: #bdd0d3; font-size: .7rem; }
.nav-toggle { display: none; width: 44px; height: 44px; padding: 10px; border: 1px solid var(--line); border-radius: 50%; background: transparent; }
.nav-toggle > span:not(.sr-only) { display: block; width: 20px; height: 2px; margin: 4px auto; background: currentColor; }

.button, button[data-itinerary-add], button[data-filter-reset], form button[type="submit"] { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 13px 22px; border: 1px solid var(--ink); border-radius: 999px; color: var(--pearl); background: var(--ink); font-size: .82rem; font-weight: 800; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.button:hover, button[data-itinerary-add]:hover, form button[type="submit"]:hover { color: var(--white); background: var(--ink-3); transform: translateY(-2px); }
.button--small { min-height: 40px; padding: 10px 17px; }
.button--coral { color: #061b24 !important; background: var(--coral); border-color: var(--coral); }
.button--coral:hover { background: #ff9a85; border-color: #ff9a85; }
.button--glass { color: var(--white); background: rgba(5,25,34,.72); border-color: rgba(255,255,255,.62); backdrop-filter: blur(8px); }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.text-button, [data-filter-reset] { border: 0; color: var(--ink); background: transparent; font-weight: 800; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }

.hero, .hero--image, .hero--home, .article-hero { position: relative; isolation: isolate; min-height: min(780px, 86vh); display: grid; align-items: end; color: var(--white); background: #061b24; }
.hero > img, .hero__media, .hero__media img, .article-hero-media, .article-hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -3; }
.hero::after, .article-hero::after { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(2,17,25,.92) 0%, rgba(3,20,29,.68) 43%, rgba(3,20,29,.18) 78%), linear-gradient(0deg, rgba(3,19,27,.72), transparent 55%); }
.hero__veil { position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(2,17,25,.58), transparent 75%); }
.hero__content, .hero-content { position: relative; z-index: 2; width: var(--container); margin-inline: auto; padding: clamp(78px, 12vw, 150px) 0 clamp(60px, 8vw, 100px); }
.hero .hero__content { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(240px, .55fr); align-items: end; gap: clamp(36px, 7vw, 100px); }
.hero__copy { max-width: 790px; }
.hero h1, .hero h2, .hero h3, .hero p, .hero-content h1, .hero-content p, .article-hero h1, .article-hero p { color: inherit; }
.hero h1 em { color: var(--cyan); font-weight: 400; }
.hero__lede { max-width: 650px; color: #e4f0f0; font-size: clamp(1.04rem, 1.6vw, 1.28rem); }
.hero-note { padding: 24px; background: rgba(3,25,35,.86); border: 1px solid rgba(255,255,255,.28); border-radius: 18px; backdrop-filter: blur(9px); }
.hero-note p { margin: 8px 0 0; color: #d4e6e7; font-size: .82rem; }
.hero-note__number { color: var(--coral); font-family: var(--display); font-size: 3.7rem; line-height: 1; }
.disclosure, .fiction-note { padding: 16px 18px; color: #d9ebeb !important; background: rgba(3,24,33,.88); border-left: 3px solid var(--coral); }

.split, .split-feature, .media-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: center; gap: clamp(38px, 7vw, 90px); }
.split-feature > img, .split-feature__media img, .media-feature > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.split-feature--dark { padding: clamp(34px, 5vw, 68px); color: var(--pearl); background: var(--ink); border-radius: 30px; }
.split-feature--dark h2, .split-feature--dark p { color: inherit; }
.feature-grid, .card-grid, .catalog-grid, .recovery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.5vw, 32px); }
.card-grid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.feature-grid article, .card, .catalog-grid article, .recovery-grid a { min-width: 0; padding: 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 35px rgba(5,25,34,.07); }
.feature-grid article > img, .card > img, .catalog-grid article > img { width: 100%; aspect-ratio: 4 / 3; margin-bottom: 22px; object-fit: cover; border-radius: 13px; }
.card__body { padding: 4px 4px 12px; }
.card--text { padding: 28px; }
.card--link, .recovery-grid a { display: grid; gap: 8px; text-decoration: none; }
.card--link strong, .recovery-grid strong { font-family: var(--display); font-size: 1.35rem; }
.story-stack { display: grid; gap: 34px; }
.story-stack article { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 70px); align-items: center; padding: 28px; background: var(--white); border-radius: var(--radius); }
.story-stack img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; }
dl { margin: 20px 0 0; }
dl > div { display: grid; grid-template-columns: minmax(80px, .32fr) minmax(0, 1fr); gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); }
dt { font-size: .74rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
dd { margin: 0; color: var(--muted); }

.filter-section { color: var(--pearl); background: var(--ink); }
.filter-section h2, .filter-section p, .filter-section legend { color: inherit; }
.filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.filters--species { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.filters fieldset { margin: 0; padding: 18px; border: 1px solid rgba(255,255,255,.22); border-radius: 16px; }
.filters legend { padding: 0 7px; font-size: .76rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.filters button[data-filter] { min-height: 38px; margin: 4px 3px; padding: 7px 11px; color: #d9e8e8; background: transparent; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; cursor: pointer; }
.filters button[data-filter][aria-pressed="true"] { color: var(--ink); background: var(--cyan); border-color: var(--cyan); }
.filter-summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 24px; }
.filter-summary p { margin: 0; }
.filter-summary .text-button { color: var(--cyan); }
.empty-state { margin-bottom: 32px; padding: 34px; text-align: center; background: #e6f3f1; border: 1px solid #b4d8d4; border-radius: var(--radius); }
.species-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.species-card { padding: 0 !important; }
.species-card > img { margin: 0 !important; border-radius: 21px 21px 0 0 !important; }
.species-card__body { padding: 24px; }
.species-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.species-card__top .eyebrow { max-width: 58%; margin: 4px 0 10px; }
.scientific-name { margin-top: -.6rem; color: var(--muted); }
.status { flex: 0 0 auto; padding: 5px 8px; border-radius: 999px; font-size: .64rem; font-weight: 850; line-height: 1.2; }
.status--critical { color: #fff; background: #9f263c; }
.status--endangered { color: #fff; background: #bb4d34; }
.status--vulnerable { color: #2d2100; background: #e9c95a; }
.status--other { color: #103d38; background: #bce8de; }
.inline-key { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 24px 0 0; padding: 0; list-style: none; font-size: .79rem; }
.status-dot { display: inline-block; width: 9px; height: 9px; margin-right: 4px; border-radius: 50%; background: #76cbbd; }
.status-dot--critical { background: #9f263c; }.status-dot--endangered { background: #bb4d34; }.status-dot--vulnerable { background: #d4ad25; }

.table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 15px; background: var(--white); }
table { width: 100%; min-width: 680px; border-collapse: collapse; }
caption { padding: 16px; text-align: left; font-weight: 800; }
th, td { padding: 15px 18px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
thead th { color: var(--pearl); background: var(--ink); }
blockquote { margin: 26px 0; padding: 22px 26px; font-family: var(--display); font-size: 1.35rem; background: #e8f2ef; border-left: 4px solid var(--cyan-deep); }
blockquote cite { display: block; margin-top: 9px; font-family: var(--sans); font-size: .72rem; font-style: normal; }

form { max-width: 780px; }
.form-section form { padding: clamp(24px, 5vw, 52px); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.form-field { margin-bottom: 22px; }
.form-field label, form label { display: block; margin-bottom: 7px; font-weight: 780; }
input, select, textarea { width: 100%; max-width: 100%; padding: 13px 14px; color: var(--ink); background: var(--white); border: 1px solid #8fa1a4; border-radius: 9px; }
textarea { resize: vertical; }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: #b32b3d; box-shadow: 0 0 0 2px rgba(179,43,61,.12); }
.field-error { margin: 5px 0 0; color: #9b1831; font-size: .83rem; font-weight: 700; }
.form-summary, [data-form-success] { margin-bottom: 20px; padding: 16px; border-radius: 10px; }
.form-summary { color: #7d1329; background: #fde8ec; border: 1px solid #edb7c1; }
[data-form-success] { color: #12483e; background: #dff5ee; border: 1px solid #a9dfd3; }

.faq-list, .accordion { max-width: 900px; }
details { padding: 20px 0; border-top: 1px solid var(--line); }
summary { font-family: var(--display); font-size: 1.35rem; font-weight: 600; cursor: pointer; }

.article-hero { min-height: 760px; }
.article-heading { position: relative; z-index: 1; width: min(900px, calc(100% - 40px)); margin: auto auto 0; padding: 80px 0; }
.article-heading .dek { max-width: 750px; font-size: 1.25rem; }
.longform .article-body { display: grid; grid-template-columns: minmax(180px, .3fr) minmax(0, 1fr); gap: clamp(36px, 7vw, 90px); width: min(1040px, calc(100% - 40px)); margin-inline: auto; padding: clamp(60px, 8vw, 110px) 0; }
.article-rail { position: sticky; top: 30px; align-self: start; }
.article-rail ol { font-size: .84rem; }
.article-body > div, .article-prose { max-width: 740px; }
.article-body p { font-size: 1.08rem; }
.article-body figure { margin: 40px 0; }
.article-body figcaption { margin-top: 10px; color: var(--muted); font-size: .82rem; }

.site-footer { padding: 70px 0 24px; color: #cfe0e0; background: #041319; }
.site-footer__grid { display: grid; grid-template-columns: 1.5fr repeat(3, minmax(120px, .6fr)); gap: 42px; }
.site-footer .brand { color: var(--white); }
.site-footer p { max-width: 390px; }
.site-footer nav { display: grid; align-content: start; gap: 8px; }
.site-footer nav strong { margin-bottom: 7px; color: var(--cyan); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.site-footer a { color: #dce8e8; text-decoration: none; }
.site-footer__base { display: flex; justify-content: space-between; gap: 20px; margin-top: 54px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.16); font-size: .76rem; }
.site-footer__base p { margin: 0; }
.site-footer > div:not(.container), .site-footer > nav, .site-footer > p { width: var(--container); margin-inline: auto; }
.site-footer > nav { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 20px; }

@media (max-width: 1040px) {
  .nav-toggle { display: block; margin-left: auto; }
  .primary-nav, .site-header__inner > nav { position: absolute; top: 100%; left: 0; right: 0; display: none; margin: 0; padding: 18px 20px 24px; color: var(--pearl); background: var(--ink); border-top: 1px solid rgba(255,255,255,.14); }
  .primary-nav.is-open, .site-header__inner > nav.is-open { display: block; }
  .primary-nav__list, .site-header nav ul { align-items: stretch; flex-direction: column; gap: 5px; }
  .primary-nav a, .primary-nav button { color: inherit; }
  .nav-menu__trigger { width: 100%; text-align: left; }
  .nav-menu__panel, .nav-menu__panel--wide { position: static; width: 100%; grid-template-columns: 1fr; margin: 4px 0 10px; box-shadow: none; }
  .nav-menu__panel a:first-child, .nav-menu__panel a:last-child { border-radius: 0; }
  .card-grid--four, .filters--species { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 800px) {
  :root { --container: min(100% - 32px, 1180px); }
  .concept-bar__inner { align-items: flex-start; flex-direction: column; gap: 1px; padding-block: 8px; }
  .site-header__inner { min-height: 70px; }
  .brand__mark { width: 38px; height: 38px; }
  .hero, .hero--image, .hero--home, .article-hero { min-height: 650px; }
  .hero::after, .article-hero::after { background: linear-gradient(0deg, rgba(2,17,25,.94) 0%, rgba(3,20,29,.7) 63%, rgba(3,20,29,.35) 100%); }
  .hero .hero__content { grid-template-columns: 1fr; gap: 28px; }
  .hero-note { max-width: 420px; }
  .split, .split-feature, .media-feature, .story-stack article, .longform .article-body { grid-template-columns: 1fr; }
  .split-feature > img:first-child, .media-feature > img:first-child { order: 0; }
  .feature-grid, .card-grid, .catalog-grid, .species-grid, .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-rail { position: static; }
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  h1 { font-size: clamp(2.8rem, 15vw, 4.8rem); }
  h2 { font-size: clamp(2rem, 11vw, 3.3rem); }
  .section, main > section:not(.hero):not(.article-hero), main > div > section { padding: 58px 16px; }
  .feature-grid, .card-grid, .catalog-grid, .species-grid, .filters, .filters--species, .card-grid--four, .site-footer__grid { grid-template-columns: 1fr; }
  .button-row { align-items: stretch; flex-direction: column; }
  .button-row .button { width: 100%; }
  .filter-summary, .site-footer__base { align-items: flex-start; flex-direction: column; }
  .species-card__top { display: block; }
  .species-card__top .eyebrow { max-width: none; }
  dl > div { grid-template-columns: 1fr; gap: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Page and component variants required by the complete experience */
.page--not-found, .page--privacy, .page--sources, .page--accessibility, .page--contact, .page--visit { background: var(--pearl); }
.hero--error { min-height: 620px; }
.hero--error .hero__content { max-width: 1180px; }
.hero--text { min-height: 460px; color: var(--pearl); background: linear-gradient(135deg, var(--ink), var(--ink-3)); }
.hero--text::after { background: radial-gradient(circle at 80% 20%, rgba(121,228,225,.16), transparent 32%), linear-gradient(0deg, rgba(3,19,27,.5), transparent); }
.card-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid--stops { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.form-field--check { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 10px; }
.form-field--check input { width: 20px; margin-top: 5px; }
.form-field--check label { margin: 0; font-weight: 600; }
.hero__current--one, .hero__current--two { position: absolute; z-index: -1; width: clamp(180px, 24vw, 370px); aspect-ratio: 1; border: 1px solid rgba(121,228,225,.28); border-radius: 50%; pointer-events: none; }
.hero__current--one { right: 7%; top: 11%; }
.hero__current--two { right: 20%; bottom: -18%; width: clamp(250px, 34vw, 520px); border-color: rgba(255,119,95,.2); }
.section--sand { background: var(--sand); }
.section--pearl { background: var(--pearl); }
.section-head--split, .section-head--row { display: flex; align-items: end; justify-content: space-between; gap: 32px; }
.section-head--split > *, .section-head--row > * { min-width: 0; }
.path-card--tall { min-height: 540px; display: flex; flex-direction: column; justify-content: flex-end; }
.eyebrow--cyan { color: var(--cyan-deep); }
.feature-card--school { border-top: 4px solid var(--cyan-deep) !important; }
.feature-card--family { border-top: 4px solid var(--coral) !important; }
.button--outline-light { color: var(--white); background: rgba(4,19,25,.52); border-color: rgba(255,255,255,.72); }
.button--outline-light:hover { color: var(--ink); background: var(--white); border-color: var(--white); }
.button--ink { color: var(--white); background: var(--ink); border-color: var(--ink); }
.button--quiet { color: var(--ink); background: transparent; border-color: rgba(7,27,37,.35); }
.button--quiet:hover { color: var(--white); background: var(--ink-3); }
.button--danger { color: var(--white); background: #922c3c; border-color: #922c3c; }
.button--danger:hover { background: #711c2b; border-color: #711c2b; }
.story-card--lead { grid-column: span 2; }
.brand--footer { margin-bottom: 18px; }
.text-link--light { color: var(--cyan); font-weight: 750; }
.text-link--light:hover { color: var(--white); }
.status-dot--other { background: #76cbbd; }

@media (max-width: 1000px) {
  .card-grid--stops { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .card-grid--three, .card-grid--two { grid-template-columns: 1fr; }
  .section-head--split, .section-head--row { align-items: flex-start; flex-direction: column; }
  .story-card--lead { grid-column: auto; }
}
@media (max-width: 560px) {
  .card-grid--stops { grid-template-columns: 1fr; }
  .path-card--tall { min-height: 440px; }
}

/* Acceptance hardening: resilient copy, simple-page heroes, and media-led comparisons */
html, body { width: 100%; max-width: 100%; }
body { overflow-wrap: break-word; }
h1, h2, h3, p, a, button, label, legend, summary, th, td, figcaption { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.site-header__inner, .primary-nav__list, .site-footer__grid, .site-footer__base,
.hero__content, .hero-content, .article-heading, .section-heading,
.feature-grid > *, .card-grid > *, .catalog-grid > *, .recovery-grid > *,
.split > *, .split-feature > *, .media-feature > *, .story-stack > * { min-width: 0; max-width: 100%; }

/* Only the home hero uses the two-column copy/note composition. Interior heroes
   keep their narrative in one readable measure instead of placing each child in
   an independent grid track. */
.hero:not(.hero--home) .hero__content { display: block; }
.hero:not(.hero--home) .hero__content > * { max-width: 760px; }
.hero:not(.hero--home) .hero__content > .button,
.hero:not(.hero--home) .hero__content > button { width: fit-content; }

/* Eyebrows remain identifiable on pale sections and become explicitly light on
   every image or dark-background composition. */
.eyebrow { color: #0b6b70; }
.hero .eyebrow, .article-hero .eyebrow, .filter-section .eyebrow,
.split-feature--dark .eyebrow, .site-footer .eyebrow { color: #a8f4ef; }
.filters button[data-filter] { color: #0b4d54; border-color: rgba(7,27,37,.42); }
.filter-section .filters button[data-filter] { color: #f4ffff; border-color: rgba(255,255,255,.52); }
.filters button[data-filter][aria-pressed="true"] { color: #071b25; }
.hero .button--quiet { color: #f4ffff; background: rgba(4,19,25,.72); border-color: rgba(255,255,255,.62); }

.table-scroll { width: 100%; max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 15px; background: var(--white); }
.sensory-map-composition, .membership-comparison-composition {
  display: grid;
  grid-template-columns: minmax(240px, .62fr) minmax(0, 1.38fr);
  align-items: stretch;
  gap: clamp(24px, 4vw, 48px);
}
.comparison-media { position: relative; min-height: 100%; margin: 0; overflow: hidden; color: var(--white); background: #0b2a37; border-radius: var(--radius); box-shadow: var(--shadow); }
.comparison-media img { width: 100%; height: 100%; min-height: 360px; object-fit: cover; }
.comparison-media figcaption { position: absolute; inset: auto 0 0; margin: 0; padding: 64px 22px 20px; color: #f4ffff; background: linear-gradient(0deg, rgba(3,19,27,.96), rgba(3,19,27,0)); font-size: .84rem; }

@media (max-width: 900px) {
  .sensory-map-composition, .membership-comparison-composition { grid-template-columns: 1fr; }
  .comparison-media img { min-height: 280px; max-height: 440px; }
  .table-wrap, .table-scroll { min-width: 0; max-width: 100%; }
}

@media (max-width: 800px) {
  .site-header__inner { gap: 14px; }
  .brand { min-width: 0; }
  .brand__type { min-width: 0; }
  .brand__type small { overflow-wrap: normal; }
  .primary-nav, .site-header__inner > nav { width: 100%; max-width: 100vw; }
  .hero__content, .hero-content, .article-heading { max-width: calc(100% - 32px); }
}

@media (max-width: 560px) {
  .brand__type small { font-size: .52rem; letter-spacing: .07em; }
  .comparison-media img { min-height: 230px; }
  th, td { padding: 12px 10px; }
}

/* Editorial links, image treatments, and controls shared by the complete site */
.lead { max-width: 720px; color: #36555d; font-size: clamp(1.08rem, 1.8vw, 1.3rem); line-height: 1.6; }
.text-link { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); font-size: .84rem; font-weight: 850; text-decoration: none; }
.text-link::after { content: ""; width: 2rem; height: 1px; margin-left: .2rem; background: currentColor; transform-origin: left; transition: transform .2s ease; }
.text-link:hover::after { transform: scaleX(1.35); }
.text-link > span[aria-hidden="true"] { display: none; }
.media-frame { position: relative; overflow: hidden; background: #cbdad8; border-radius: var(--radius); }
.media-frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; border: 1px solid rgba(255,255,255,.22); border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(4,19,25,.08); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.75,.25,1); }
a:hover .media-frame img { transform: scale(1.025); }
.circle-arrow { display: inline-grid; flex: 0 0 auto; width: 46px; height: 46px; place-items: center; color: var(--ink); background: var(--cyan); border: 0; border-radius: 50%; font-size: 1.05rem; font-weight: 900; text-decoration: none; transition: transform .2s ease, background .2s ease; }
a:hover > .circle-arrow, .circle-arrow:hover { color: var(--ink); background: var(--white); transform: rotate(10deg); }
.itinerary-chip { display: inline-flex; align-items: center; gap: 12px; }
.itinerary-chip__count { display: grid; width: 48px; height: 48px; place-items: center; color: var(--ink); background: var(--cyan); border-radius: 50%; font-family: var(--display); font-size: 1.35rem; }
.itinerary-chip small { display: block; color: inherit; opacity: .7; }
[data-itinerary-list] { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
[data-itinerary-list] li { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 0; border-top: 1px solid var(--line); }
[data-itinerary-list] li > span { min-width: 0; }
[data-itinerary-list] li button { flex: 0 0 auto; padding: 7px 11px; color: #7d1329; background: #fff3f5; border: 1px solid #d8a4ad; border-radius: 999px; font-size: .75rem; font-weight: 800; cursor: pointer; }
[data-itinerary-clear]:disabled { opacity: .48; cursor: not-allowed; }

/* Homepage: moonlit field-station editorial composition */
body[data-page="home"] { background: var(--ink); }
body[data-page="home"] .hero--home { min-height: max(690px, calc(100svh - 120px)); overflow: hidden; }
body[data-page="home"] .hero--home .hero__media img { object-position: center 48%; }
body[data-page="home"] .hero--home::after { background: linear-gradient(90deg, rgba(2,16,23,.96) 0%, rgba(2,17,25,.78) 38%, rgba(2,17,25,.24) 72%), linear-gradient(0deg, rgba(3,19,27,.78), transparent 58%); }
body[data-page="home"] .hero--home .hero__content { padding-bottom: clamp(82px, 9vw, 118px); }
body[data-page="home"] .hero--home h1 { max-width: 760px; color: var(--white); }
.hero-note__index { color: var(--coral); font-size: .67rem; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.hero-note dl { margin-top: 22px; }
.hero-note dl > div { grid-template-columns: minmax(68px,.42fr) 1fr; border-color: rgba(255,255,255,.2); }
.hero-note dt { color: var(--cyan); }
.hero-note dd { color: #e8f2f2; }
.hero__scroll { position: absolute; z-index: 3; bottom: 24px; left: 50%; display: grid; justify-items: center; gap: 7px; color: #d9e8e8; font-size: .62rem; font-weight: 800; letter-spacing: .14em; text-decoration: none; text-transform: uppercase; transform: translateX(-50%); }
.hero__scroll i { display: block; width: 1px; height: 30px; background: linear-gradient(var(--cyan), transparent); }

.discovery-intro { position: relative; }
.discovery-intro::before { content: "01 / DISCOVER"; position: absolute; top: 34px; right: max(20px, calc((100% - 1180px) / 2)); color: rgba(7,27,37,.35); font-size: .65rem; font-weight: 850; letter-spacing: .15em; }
.section-head { margin-bottom: clamp(38px, 6vw, 70px); }
.section-head--split > div:first-child, .section-head--row > div:first-child { flex: 1 1 58%; }
.section-head--split > p, .section-head--split > div:last-child { flex: 0 1 430px; color: #39575e; }
.section-head--row .button { flex: 0 0 auto; }
.path-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); grid-template-rows: repeat(2, minmax(250px, 1fr)); gap: clamp(18px, 2.4vw, 30px); }
.path-card { position: relative; min-width: 0; min-height: 285px; overflow: hidden; color: var(--white); background: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); }
.path-card--tall { grid-row: 1 / 3; min-height: 610px; }
.path-card > a { position: absolute; inset: 0; display: grid; align-items: end; color: inherit; text-decoration: none; }
.path-card__media { position: absolute; inset: 0; border-radius: inherit; }
.path-card__media::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(2,17,25,.94), rgba(2,17,25,.08) 70%); }
.path-card__content { position: relative; z-index: 2; display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 18px; padding: clamp(20px, 3.2vw, 38px); }
.path-card__number { align-self: start; color: var(--cyan); font-family: var(--display); font-size: 1.3rem; }
.path-card__content p { margin: 0 0 3px; color: #d3e4e5; font-size: .68rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.path-card__content h3 { margin: 0; color: var(--white); }

.tide-window { color: #d9e9e9; background: var(--ink); }
.tide-window__grid { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr); align-items: center; gap: clamp(40px, 8vw, 110px); }
.tide-window__media { min-height: 580px; border-radius: 48% 48% 24px 24px / 34% 34% 24px 24px; }
.tide-window__copy h2, .tide-window__copy .lead { color: var(--white); }
.tide-window__copy > p:not(.eyebrow):not(.lead) { color: #b8cdcf; }
.tide-window__copy h2 em { color: var(--cyan); font-weight: 400; }
.tide-window__copy .text-link { color: var(--cyan); }
.depth-tag { position: absolute; right: 18px; bottom: 18px; z-index: 2; min-width: 116px; padding: 16px; color: var(--white); background: rgba(3,24,33,.88); border: 1px solid rgba(255,255,255,.25); border-radius: 14px; backdrop-filter: blur(8px); }
.depth-tag span { display: block; font-family: var(--display); font-size: 1.4rem; }
.depth-tag small { color: #bcd0d2; }
.observation-line { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 14px; margin: 28px 0; padding: 18px 0; border-block: 1px solid rgba(255,255,255,.2); }
.observation-line__orb { width: 38px; height: 38px; border: 1px solid var(--cyan); border-radius: 50%; box-shadow: inset 0 0 0 9px rgba(121,228,225,.08); }
.observation-line strong, .observation-line span { display: block; }
.observation-line strong { color: var(--cyan); font-size: .67rem; letter-spacing: .1em; text-transform: uppercase; }
.observation-line div > span { color: #d7e7e7; }

.conservation-pulse { position: relative; isolation: isolate; min-height: 720px; display: grid; align-items: center; overflow: hidden; color: var(--white); background: #092832; }
.conservation-pulse__media, .conservation-pulse__veil { position: absolute; inset: 0; z-index: -2; }
.conservation-pulse__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.conservation-pulse__veil { z-index: -1; background: linear-gradient(90deg, rgba(3,21,29,.96) 0%, rgba(3,23,31,.74) 50%, rgba(3,23,31,.24) 100%), linear-gradient(0deg, rgba(3,19,27,.5), transparent 50%); }
.conservation-pulse__content { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(260px, .6fr); align-items: end; gap: clamp(44px, 9vw, 130px); }
.conservation-pulse__copy { max-width: 720px; }
.conservation-pulse h2, .conservation-pulse p { color: inherit; }
.conservation-pulse h2 em { color: var(--cyan); font-weight: 400; }
.conservation-pulse__copy > p:not(.eyebrow) { max-width: 650px; color: #d2e2e3; font-size: 1.08rem; }
.pulse-ledger { padding: 26px; background: rgba(3,24,33,.86); border: 1px solid rgba(255,255,255,.26); border-radius: var(--radius); backdrop-filter: blur(9px); }
.pulse-ledger > div { display: grid; grid-template-columns: 70px 1fr; align-items: center; gap: 16px; padding: 16px 0; border-top: 1px solid rgba(255,255,255,.17); }
.pulse-ledger > div:first-child { border-top: 0; }
.pulse-ledger strong { color: var(--coral); font-family: var(--display); font-size: 2.15rem; font-weight: 500; }
.pulse-ledger span { color: #e5efef; font-size: .82rem; }
.pulse-ledger > p { margin: 12px 0 0; color: #adc3c6; font-size: .72rem; }

.programs-preview { color: var(--ink); }
.feature-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(22px, 3vw, 38px); }
.feature-card { min-width: 0; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 16px 46px rgba(5,25,34,.09); }
.feature-card__media { aspect-ratio: 3 / 2; border-radius: 0; }
.feature-card__body { position: relative; padding: clamp(24px, 3vw, 36px); padding-right: 88px; }
.feature-card__body h3 { margin-bottom: .35em; }
.feature-card__body p:not(.meta) { color: #496168; }
.feature-card__body .circle-arrow { position: absolute; right: 28px; bottom: 30px; }

.journal-preview { color: #d6e6e7; background: #071d27; }
.journal-preview h2, .journal-preview h3 { color: var(--white); }
.journal-preview h2 em { color: var(--cyan); font-weight: 400; }
.story-grid { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(280px, .82fr); grid-template-rows: repeat(2, minmax(260px, 1fr)); gap: clamp(18px, 2.4vw, 30px); }
.story-card { min-width: 0; overflow: hidden; background: #0b2a37; border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); }
.story-card--lead { grid-row: 1 / 3; grid-column: auto; }
.story-card > a { display: grid; grid-template-columns: minmax(140px, .72fr) minmax(0, 1fr); height: 100%; color: inherit; text-decoration: none; }
.story-card--lead > a { grid-template-columns: 1fr; grid-template-rows: minmax(320px, 1.1fr) auto; }
.story-card__media { min-height: 100%; border-radius: 0; }
.story-card__body { align-self: center; padding: clamp(22px, 3vw, 36px); }
.story-card__body h3 { margin-bottom: .5em; }
.story-card__body > p:not(.meta) { color: #bcd0d2; }
.story-card .meta { color: var(--cyan); }
.story-card .text-link { color: var(--cyan); }

.plan-visit-cta { color: var(--ink); background: var(--coral); }
.plan-visit-cta__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, .65fr); align-items: center; gap: clamp(38px, 8vw, 110px); }
.plan-visit-cta h2 em { color: #6e1f20; font-weight: 400; }
.plan-visit-cta .eyebrow { color: #5d2520; }
.plan-visit-cta__copy { display: grid; justify-items: start; gap: 18px; }
.plan-visit-cta__copy > p { max-width: 520px; font-size: 1.08rem; }
.plan-visit-cta .itinerary-chip__count { background: var(--pearl); }

/* Canonical footer used on every route */
.site-footer__top { display: grid; grid-template-columns: minmax(230px, .7fr) minmax(280px, 1fr) auto; align-items: center; gap: 38px; padding-bottom: 46px; border-bottom: 1px solid rgba(255,255,255,.15); }
.site-footer__top .brand { margin: 0; }
.site-footer__statement { margin: 0; color: #c8dada; }
.site-footer__grid { grid-template-columns: repeat(3, minmax(120px, .55fr)) minmax(250px, 1.25fr); padding-block: 46px; }
.site-footer__grid > div { display: grid; align-content: start; gap: 8px; }
.site-footer__grid h2 { margin: 0 0 9px; color: var(--cyan); font-family: var(--sans); font-size: .68rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.site-footer__grid a { width: fit-content; font-size: .84rem; }
.site-footer__note { padding: 22px; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.12); border-radius: 16px; }
.site-footer__note p { margin-bottom: 10px; color: #b8ccce; font-size: .8rem; }
.site-footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.15); color: #90aaae; font-size: .7rem; }
.site-footer__bottom p { margin: 0; }

@media (max-width: 940px) {
  .path-grid, .tide-window__grid, .conservation-pulse__content, .plan-visit-cta__grid { grid-template-columns: 1fr; }
  .path-grid { grid-template-rows: none; }
  .path-card--tall { grid-row: auto; min-height: 470px; }
  .path-card:not(.path-card--tall) { min-height: 360px; }
  .tide-window__media { min-height: 480px; }
  .tide-window__copy { max-width: 690px; }
  .conservation-pulse__copy { max-width: 690px; }
  .pulse-ledger { max-width: 560px; }
  .site-footer__top { grid-template-columns: 1fr auto; }
  .site-footer__statement { grid-column: 1 / -1; grid-row: 2; }
  .site-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-footer__note { grid-column: 1 / -1; }
}

@media (max-width: 800px) {
  body[data-page="home"] .hero--home { min-height: 720px; }
  body[data-page="home"] .hero--home .hero__content { padding-top: 70px; }
  body[data-page="home"] .hero--home h1 { font-size: clamp(3rem, 12vw, 5.4rem); }
  .hero__scroll { display: none; }
  .feature-pair, .story-grid { grid-template-columns: 1fr; grid-template-rows: none; }
  .story-card--lead { grid-row: auto; }
  .story-card--lead > a { grid-template-rows: minmax(300px, 52vw) auto; }
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__note { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  body[data-page="home"] .hero--home { min-height: 710px; }
  body[data-page="home"] .hero--home h1 { font-size: clamp(2.75rem, 14vw, 4rem); letter-spacing: -.045em; }
  .path-card--tall, .path-card:not(.path-card--tall) { min-height: 410px; }
  .path-card__content { grid-template-columns: auto 1fr; }
  .path-card__content .circle-arrow { display: none; }
  .tide-window__media { min-height: 390px; border-radius: 42% 42% 20px 20px / 27% 27% 20px 20px; }
  .conservation-pulse { min-height: 790px; }
  .feature-card__body { padding-right: 76px; }
  .story-card:not(.story-card--lead) > a { grid-template-columns: 1fr; }
  .story-card:not(.story-card--lead) .story-card__media { min-height: 240px; }
  .site-footer__top { grid-template-columns: 1fr; justify-items: start; }
  .site-footer__statement { grid-column: auto; grid-row: auto; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .site-footer__note { grid-column: 1 / -1; }
  .site-footer__bottom { align-items: flex-start; flex-direction: column; }
  [data-itinerary-list] li { align-items: flex-start; flex-direction: column; }
}
