/* Discover Delta: homepage prototype
   Tokens and rules: design-system/discover-delta/MASTER.md */

:root {
  --paper: #FAF6EC;
  --paper-2: #F2EBDB;
  --ink: #201C15;
  --ink-soft: #5A5244;
  --ink-faint: #8C826E;      /* inactive place names only (large text, 3.5:1) */
  --line: #E4DAC5;
  --green: #1E7A3C;
  --green-deep: #124D27;
  --red: #E23F22;
  --red-deep: #B92F16;
  --on-dark: #F6F0E2;
  --on-dark-soft: #CFE0D2;
  --btn-green: #124D27;       /* white label 9.9:1 */
  --btn-green-hover: #1E7A3C;
  --scrim: 21 18 13;

  --font-display: "Baloo 2", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;

  --radius-media: 18px;
  --radius-thumb: 12px;
  --radius-pill: 999px;

  --container: 1320px;
  --gutter: 24px;
  --section: 112px;
  --header-h: 72px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #15120D;
    --paper-2: #201C15;
    --ink: #F4EEDF;
    --ink-soft: #C9C0AE;
    --ink-faint: #7D7465;
    --line: #3A3328;
    --green: #5DBB7A;
    --green-deep: #0E3A1D;
    --red: #E23F22;
    --red-deep: #F0553A;
    --btn-green: #1E7A3C;     /* white label 5.4:1 */
    --btn-green-hover: #248A45;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible, .hero :focus-visible, .site-header[data-over-hero] :focus-visible { outline-color: #fff; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section-title { font-size: clamp(1.9rem, 3.4vw, 2.9rem); line-height: 1.08; font-weight: 700; letter-spacing: -0.01em; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: var(--radius-pill);
}
.skip-link:focus { top: 12px; }

/* Buttons and text links ------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font: 700 1.1875rem/1 var(--font-display);   /* 19px bold = large text, keeps white-on-red at AA */
  padding: .72em 1.25em .62em;
  border-radius: var(--radius-pill);
  text-decoration: none; white-space: nowrap; cursor: pointer;
  border: 2px solid transparent;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .1s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-deep); }
.btn-outline { border-color: currentColor; color: inherit; background: transparent; }
.btn-outline:hover { background: rgb(255 255 255 / .12); }
/* Red is reserved for "Join a community". Other actions use these. */
.btn-light { background: var(--on-dark); color: #201C15; }
.btn-light:hover { background: #fff; }
.btn-green { background: var(--btn-green); color: #fff; }
.btn-green:hover { background: var(--btn-green-hover); }

/* Stretched link: the whole card follows .stretched; .on-top links sit above it. */
.stretched::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.on-top { position: relative; z-index: 2; }
.btn-sm { font-size: 1.1875rem; padding: .55em 1.05em .47em; }

.text-link {
  font-weight: 600; color: var(--green); text-decoration: underline;
  text-decoration-thickness: 2px; text-underline-offset: 5px;
}
.text-link:hover { text-decoration-color: currentColor; color: var(--green-deep); }
@media (prefers-color-scheme: dark) { .text-link:hover { color: var(--ink); } }

.kind { font-size: .875rem; font-weight: 600; color: var(--green); }

/* Header -------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  background: var(--paper); color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
  transition: background-color .25s ease, color .25s ease, box-shadow .25s ease;
}
.site-header[data-over-hero] { background: transparent; color: #fff; box-shadow: none; }
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: block; flex: none; }
.brand img { height: 54px; width: auto; }
.logo-reversed { display: none; }
@media (prefers-color-scheme: dark) {
  .logo-color { display: none; }
  .logo-reversed { display: block; }
}
.site-header[data-over-hero] .logo-color { display: none; }
.site-header[data-over-hero] .logo-reversed { display: block; }

.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; gap: 4px; }
.primary-nav a {
  display: block; padding: 10px 12px; font-weight: 500; font-size: .98rem;
  text-decoration: none; border-radius: var(--radius-pill);
}
.primary-nav a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border-radius: var(--radius-pill); color: inherit; background: none; border: 0; cursor: pointer;
  font-size: 1.5rem; text-decoration: none;
}
.icon-btn:hover { background: rgb(128 128 128 / .14); }
.menu-toggle { display: none; }

@media (max-width: 1099px) {
  .primary-nav { display: none; }
  .header-actions { margin-left: auto; }
  .menu-toggle { display: inline-grid; }
}
@media (max-width: 599px) {
  .header-actions .btn { display: none; }
}
@media (max-width: 479px) {
  .brand img { height: 40px; }
}

/* Sticky join bar: phones only, shown by main.js between the hero and the community block */
.mobile-join { display: none; }
@media (max-width: 599px) {
  .mobile-join {
    display: block; position: fixed; inset: auto 0 0; z-index: 40;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: var(--paper); box-shadow: 0 -1px 0 var(--line);
    transform: translateY(110%); transition: transform .25s ease;
  }
  .mobile-join.is-visible { transform: none; }
  .mobile-join .btn { width: 100%; justify-content: center; }
}

.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0; z-index: 49;
  background: var(--paper); color: var(--ink);
  padding: 24px var(--gutter) 40px; overflow-y: auto;
}
.mobile-nav ul { display: grid; gap: 2px; }
.mobile-nav a.nav-big {
  display: block; padding: 12px 0; font: 700 2rem/1.1 var(--font-display); text-decoration: none;
}
.mobile-nav .btn { margin-top: 28px; }
body.menu-open { overflow: hidden; }
body.menu-open .site-header { background: var(--paper); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
body.menu-open .site-header .logo-color { display: block; }
body.menu-open .site-header .logo-reversed { display: none; }
@media (prefers-color-scheme: dark) {
  body.menu-open .site-header .logo-color { display: none; }
  body.menu-open .site-header .logo-reversed { display: block; }
}

/* Hero ---------------------------------------------------------------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(100dvh, 920px);
  display: grid; align-items: end;
  color: #fff; background: #1d2a1f;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 66% 35%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgb(var(--scrim) / .6) 0, rgb(var(--scrim) / 0) 180px),
    linear-gradient(90deg, rgb(var(--scrim) / .82) 0%, rgb(var(--scrim) / .55) 40%, rgb(var(--scrim) / 0) 70%);
}
.hero-copy { padding-block: calc(var(--header-h) + 64px) clamp(64px, 12vh, 128px); max-width: 44rem; }
.hero h1 {
  font-size: clamp(2.6rem, 5.4vw, 4.6rem); line-height: 1.02; font-weight: 800; letter-spacing: -0.02em;
  max-width: 13ch;
}
.hero-sub { margin-top: 20px; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.5; max-width: 34ch; color: #F3EEE3; }
.hero-ctas { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-credit { position: absolute; right: 16px; bottom: 12px; max-width: calc(100% - 32px); margin: 0; font-size: .75rem; line-height: 1.4; color: rgb(255 255 255 / .85); text-align: right; text-shadow: 0 1px 3px rgb(0 0 0 / .7); }
.hero-credit a { color: inherit; text-underline-offset: 2px; }

@media (max-width: 767px) {
  .hero { min-height: 100svh; }
  .hero-media img { object-position: 64% 20%; }
  .hero::after {
    background:
      linear-gradient(180deg, rgb(var(--scrim) / .55) 0, rgb(var(--scrim) / 0) 140px),
      linear-gradient(0deg, rgb(var(--scrim) / .88) 0%, rgb(var(--scrim) / .55) 45%, rgb(var(--scrim) / 0) 78%);
  }
  .hero-copy { padding-bottom: 64px; }
  .hero-credit { left: 16px; right: 16px; text-align: left; bottom: 14px; }
}

/* Doors: bento 1 + 2 ---------------------------------------------------- */
.doors-grid {
  display: grid; gap: 20px;
  grid-template-columns: 7fr 5fr;
  grid-template-rows: minmax(290px, auto) minmax(290px, auto);
}
.door {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: var(--radius-media); text-decoration: none;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 32px;
}
.door h3 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); line-height: 1.08; font-weight: 700; }
.door p { margin-top: 10px; max-width: 42ch; }
.door .door-link {
  margin-top: 18px; font-weight: 600; text-decoration: underline;
  text-decoration-thickness: 2px; text-underline-offset: 5px;
}
.door-photo { color: #fff; }
.door-photo > img {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.door-photo::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgb(var(--scrim) / .82) 0%, rgb(var(--scrim) / .45) 42%, rgb(var(--scrim) / 0) 70%);
}
.door-photo p { color: #EFEADF; }
.door:hover > img, .door:hover .door-side img { transform: scale(1.03); }
.door-links { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.door-links .door-link { color: #fff; }
.door-links .door-link:hover { text-decoration-color: var(--red); }
.door--visit { grid-row: 1 / span 2; min-height: 600px; }

.door--connect {
  background: var(--paper-2); color: var(--ink);
  display: grid; grid-template-columns: 1fr minmax(0, 44%); gap: 24px; align-items: end;
  padding: 0 0 0 32px;
}
.door--connect .door-text { padding-block: 32px; }
.door--connect .door-link { color: var(--green); display: inline-block; }
.door--connect p { color: var(--ink-soft); }
.door-side { align-self: stretch; overflow: hidden; }
.door-side img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }

@media (max-width: 899px) {
  .doors-grid { grid-template-columns: 1fr; grid-template-rows: none; }
  .door--visit { grid-row: auto; min-height: 460px; }
  .door--invest { min-height: 340px; }
  .door { padding: 24px; }
  .door--connect { grid-template-columns: 1fr; padding: 0; }
  .door--connect .door-text { padding: 24px 24px 0; }
  .door-side { height: 220px; }
}

/* Place picker (the signature) ------------------------------------------ */
.places-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; }
.places .section-title { margin-bottom: 28px; }
.place-list { display: grid; }
.place-list button {
  position: relative; display: block; width: 100%; text-align: left;
  background: none; border: 0; cursor: pointer; color: var(--ink-faint);
  font: 800 clamp(2.2rem, 4.6vw, 4rem)/1.08 var(--font-display); letter-spacing: -0.02em;
  padding: 2px 0 2px .78em;
  transition: color .2s ease;
}
.place-list button::before {
  content: ""; position: absolute; left: 0; top: 50%;
  width: .52em; height: .52em; margin-top: -.3em;
  background: url("img/pin-64.png") center / contain no-repeat;
  opacity: 0; transform: scale(.6); transition: opacity .2s ease, transform .2s ease;
}
.place-list button:hover { color: var(--ink-soft); }
.place-list button[aria-pressed="true"] { color: var(--ink); }
.place-list button[aria-pressed="true"]::before { opacity: 1; transform: none; }

.place-stage { display: grid; }
.place-panel {
  grid-area: 1 / 1;
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility 0s linear .25s;
}
.place-panel.is-active { opacity: 1; visibility: visible; transition: opacity .25s ease; }
.place-panel img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-media); background: var(--paper-2); }
.place-photo { display: block; }
.place-caption {
  margin-top: 18px; max-width: 60ch;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 28px;
}
.place-caption p, .place-caption .place-name { flex: 0 0 100%; }
.place-caption p { color: var(--ink-soft); }
.place-name { display: none; }

@media (max-width: 767px) {
  .places-grid { grid-template-columns: 1fr; gap: 0; }
  .place-list { display: none; }
  .place-stage {
    display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); padding-bottom: 8px;
    scrollbar-width: none;
  }
  .place-stage::-webkit-scrollbar { display: none; }
  .place-panel { flex: 0 0 82%; scroll-snap-align: start; opacity: 1; visibility: visible; }
  .place-name { display: block; font-size: 1.9rem; line-height: 1.1; font-weight: 800; margin-top: 14px; }
  .place-caption { margin-top: 6px; flex-direction: column; gap: 8px; }
}

/* Trending now: feature + list ------------------------------------------ */
.trending-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 48px; margin-top: 36px; }
.feature { text-decoration: none; display: block; }
.feature img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-media); }
.feature .kind { display: block; margin-top: 20px; }
.feature h3 { margin-top: 6px; font-size: clamp(1.6rem, 2.6vw, 2.25rem); line-height: 1.1; font-weight: 700; }
.feature p { margin-top: 10px; color: var(--ink-soft); max-width: 56ch; }
.feature .text-link { display: inline-block; margin-top: 16px; }
.feature:hover h3, .trend-item > a:hover h3, .trend-item--split:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }

.trend-list { display: grid; align-content: start; }
.trend-item + .trend-item { border-top: 1px solid var(--line); }
.trend-item > a, .trend-item--split { display: grid; grid-template-columns: 124px 1fr; gap: 20px; padding-block: 22px; text-decoration: none; }
.trend-item:first-child > a, .trend-item--split:first-child { padding-top: 0; }
.trend-item--split { position: relative; }
.trend-item--split h3 a { text-decoration: none; }
.trend-item--split .text-link { display: inline-block; margin-top: 8px; font-size: .98rem; }
.trend-item img { width: 124px; height: 124px; object-fit: cover; border-radius: var(--radius-thumb); }
.trend-item h3 { font-size: 1.35rem; line-height: 1.2; font-weight: 700; margin-top: 2px; }
.trend-item p { margin-top: 6px; color: var(--ink-soft); font-size: .98rem; }

@media (max-width: 899px) {
  .trending-grid { grid-template-columns: 1fr; gap: 36px; }
  .trend-item > a, .trend-item--split { grid-template-columns: 96px 1fr; gap: 16px; }
  .trend-item img { width: 96px; height: 96px; }
}

/* What's on: full-width date rows ---------------------------------------- */
.events-list { margin-top: 32px; }
.event + .event { border-top: 1px solid var(--line); }
.event a {
  display: grid; grid-template-columns: 112px 1fr auto; gap: 24px; align-items: center;
  padding-block: 26px; text-decoration: none;
}
.event-date { display: grid; justify-items: start; }
.event-date .day { font: 800 3.1rem/0.95 var(--font-display); }
.event-date .month { font-size: .95rem; font-weight: 500; color: var(--ink-soft); }
.event h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.15; font-weight: 700; }
.event-meta { margin-top: 6px; display: flex; align-items: center; gap: 8px; color: var(--ink-soft); font-size: .98rem; }
.event-meta img { width: 16px; height: 16px; }
.event .kind { justify-self: end; }
.event a:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.events-more {
  margin-top: 28px; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 32px;
}
.events-more p { color: var(--ink-soft); }

@media (max-width: 639px) {
  .event a { grid-template-columns: 72px 1fr; gap: 16px; }
  .event-date .day { font-size: 2.4rem; }
  .event .kind { grid-column: 2; justify-self: start; margin-top: -8px; }
}

/* Community: the single colour block ------------------------------------ */
.community { background: var(--green-deep); color: var(--on-dark); }
.community-grid { display: grid; grid-template-columns: 6fr 6fr; gap: 64px; align-items: center; }
.community .section-title { max-width: 16ch; }
.community-lead { margin-top: 18px; max-width: 46ch; color: var(--on-dark-soft); font-size: 1.125rem; }
.community-ctas { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.marketplace-note { margin-top: 32px; padding-top: 24px; border-top: 1px solid rgb(255 255 255 / .18); max-width: 50ch; color: var(--on-dark-soft); }
.marketplace-note a { color: #fff; font-weight: 600; text-decoration-thickness: 2px; text-underline-offset: 4px; }

.mosaic { display: block; text-decoration: none; }
.mosaic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mosaic-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-thumb); }
.mosaic-caption { margin-top: 14px; display: flex; align-items: center; gap: 8px; font-weight: 600; }
.mosaic-caption i { font-size: 1.3rem; }
.mosaic:hover .mosaic-caption span { text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 899px) {
  .community-grid { grid-template-columns: 1fr; gap: 48px; }
}

/* Newsletter + footer ---------------------------------------------------- */
.site-footer { background: var(--paper-2); }
.newsletter { display: grid; grid-template-columns: 6fr 6fr; gap: 48px; align-items: end; padding-block: 88px 64px; border-bottom: 1px solid var(--line); }
.newsletter p { margin-top: 12px; color: var(--ink-soft); max-width: 44ch; }
.signup label { display: block; font-weight: 600; margin-bottom: 8px; }
.signup-row { display: flex; gap: 10px; }
.signup input {
  flex: 1; min-width: 0; min-height: 52px; padding: 0 22px;
  border-radius: var(--radius-pill); border: 1.5px solid var(--ink-faint);
  background: var(--paper); color: var(--ink); font: inherit;
}
.signup input::placeholder { color: var(--ink-soft); opacity: 1; }
.signup input:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-color: var(--green); }
.signup input[aria-invalid="true"] { border-color: var(--red-deep); }
.signup-msg { min-height: 1.6em; margin-top: 10px; font-size: .95rem; }
.signup-msg[data-state="error"] { color: #A52A12; }
.signup-msg[data-state="ok"] { color: var(--green); font-weight: 600; }
@media (prefers-color-scheme: dark) { .signup-msg[data-state="error"] { color: #FF8A73; } }

.footer-cols { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 32px; padding-block: 56px; }
.footer-brand img { height: 52px; width: auto; }
.footer-brand p { margin-top: 14px; color: var(--ink-soft); font-size: .95rem; max-width: 30ch; }
.footer-brand .footer-contact { margin-top: 6px; color: var(--ink); font-weight: 500; }
.footer-contact a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; }
.footer-contact a > span { text-decoration: underline; text-underline-offset: 4px; }
.nowrap { white-space: nowrap; }
.footer-contact i { font-size: 1.3rem; color: var(--green); }
.footer-social { margin-top: 16px; display: flex; gap: 4px; margin-left: -10px; }
.footer-col h3 { font: 700 1.05rem/1.3 var(--font-display); margin-bottom: 12px; }
.footer-col ul { display: grid; gap: 8px; }
.footer-col a { text-decoration: none; color: var(--ink-soft); font-size: .98rem; }
.footer-col a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
  padding-block: 24px 40px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .9rem;
}
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-bottom a { color: inherit; }

@media (max-width: 1023px) {
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  :root { --section: 72px; }
  .newsletter { grid-template-columns: 1fr; gap: 24px; padding-block: 64px 48px; }
  .signup-row { flex-direction: column; }
  .signup-row .btn { justify-content: center; }
}
@media (max-width: 479px) {
  :root { --gutter: 16px; }
}

/* Motion: one load moment, gated ----------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-media img { animation: settle 1.4s cubic-bezier(.16, 1, .3, 1) both; }
  .hero-copy > * { animation: rise .8s cubic-bezier(.16, 1, .3, 1) both; }
  .hero-copy > :nth-child(2) { animation-delay: .12s; }
  .hero-copy > :nth-child(3) { animation-delay: .24s; }
}
@keyframes settle { from { transform: scale(1.05); } to { transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation: none !important; }
}

/* ======================================================================
   Place hub template (/visit/{place}). Spec: design-system/discover-delta/pages/place-hub.md
   ====================================================================== */
[hidden] { display: none !important; }

.primary-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: var(--red); }
.mobile-nav a[aria-current="page"] { color: var(--green); }
.btn-outline.btn-ink { color: var(--ink); }
.btn-outline.btn-ink:hover { background: rgb(128 128 128 / .12); }

.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px 0; font-size: .95rem; color: var(--ink-soft); }
.breadcrumb li + li::before { content: "/"; margin: 0 10px; color: var(--ink-faint); }
.breadcrumb a { color: inherit; text-underline-offset: 4px; }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 500; }

/* 1. Hero: the place name is the display element, photo beside it */
.hub-hero { padding-top: calc(var(--header-h) + 28px); }
.page-hub { --section: 96px; }
.hub-hero-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 56px; align-items: center; margin-top: 20px; }
.hub-title { display: grid; gap: 14px; }
.hub-name { font: 800 clamp(4.2rem, 11vw, 9.5rem)/.88 var(--font-display); letter-spacing: -0.035em; }
.hub-sub { font: 500 clamp(1.1rem, 1.6vw, 1.35rem)/1.3 var(--font-body); color: var(--ink-soft); letter-spacing: 0; }
.hub-hook { margin-top: 24px; font-size: clamp(1.125rem, 1.6vw, 1.35rem); line-height: 1.45; max-width: 30ch; }
.hub-ctas { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hub-hero-media img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius-media); background: var(--paper-2); }

/* 2. About + facts */
.hub-about-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 64px; align-items: start; }
.hub-intro { margin-top: 24px; font-size: 1.125rem; line-height: 1.65; max-width: 62ch; }
.hub-intro p + p { margin-top: 1em; }
.facts { margin: 0; display: grid; gap: 22px; padding-top: 8px; }
.facts div { border-top: 1px solid var(--line); padding-top: 14px; }
.facts dt { font-size: .875rem; font-weight: 600; color: var(--green); }
.facts dd { margin: 4px 0 0; font-size: 1.05rem; }

/* 3. Places: filters + listing cards */
.filters { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  min-height: 44px; padding: 8px 18px; border-radius: var(--radius-pill);
  border: 1.5px solid var(--line); background: transparent; color: var(--ink);
  font: 500 .98rem/1 var(--font-body); cursor: pointer; transition: background-color .2s ease, border-color .2s ease;
}
.filter:hover { border-color: var(--ink-faint); }
.filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.place-cards { margin-top: 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px 24px; }
.place-card a { display: block; text-decoration: none; }
.place-card a > img, .photo-missing { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-media); background: var(--paper-2); }
.photo-missing { display: grid; place-content: center; justify-items: center; gap: 10px; color: var(--ink-soft); font-size: .9rem; }
.photo-missing img { width: 96px; height: auto; opacity: .28; }
@media (prefers-color-scheme: dark) { .photo-missing img { filter: brightness(2.4); opacity: .35; } }
.place-card .kind { display: block; margin-top: 16px; }
.place-card h3 { margin-top: 4px; font-size: 1.4rem; line-height: 1.15; font-weight: 700; }
.place-card a:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.place-card p { margin-top: 8px; color: var(--ink-soft); }
.place-card .card-place { display: flex; align-items: center; gap: 6px; font-size: .9rem; }
.card-place img { width: 14px; height: 14px; }
.filter-empty { margin-top: 32px; padding: 32px; border-radius: var(--radius-media); background: var(--paper-2); }
.filter-empty-actions { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }

/* 4. History */
.hub-history-grid { display: grid; grid-template-columns: 6fr 6fr; gap: 56px; align-items: center; }
.hub-history-grid > img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius-media); }
.hub-history-lead { margin: 16px 0 14px; font-size: 1.125rem; max-width: 46ch; }
.accounts-note { margin-top: 28px; padding-left: 16px; border-left: 3px solid var(--green); color: var(--ink-soft); max-width: 52ch; }
.history-links { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* 6. Invest */
.hub-invest-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; }
.hub-invest-lead { margin-top: 16px; font-size: 1.125rem; max-width: 40ch; }
.hub-invest-cta { margin-top: 28px; }

/* 7. Visitor photos empty state (inside the green community block) */
.visitor-empty { border: 1.5px dashed rgb(255 255 255 / .4); border-radius: var(--radius-media); padding: 36px; }
.visitor-empty h3 { font-size: 1.6rem; line-height: 1.15; }
.visitor-empty p { margin-top: 10px; color: var(--on-dark-soft); max-width: 40ch; }
.visitor-empty .btn { margin-top: 22px; }

/* 8. Good to know */
.faq { margin-top: 24px; max-width: 820px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; font: 700 1.3rem/1.25 var(--font-display);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 500 1.8rem/1 var(--font-body); color: var(--green); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 22px; color: var(--ink-soft); max-width: 65ch; }

/* 9. Nearby: compact links, not feature cards */
.nearby { margin-top: 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.nearby a { display: grid; grid-template-columns: 112px 1fr; gap: 18px; align-items: center; text-decoration: none; }
.nearby img { width: 112px; height: 112px; object-fit: cover; border-radius: var(--radius-thumb); grid-row: span 2; }
.nearby h3 { font-size: 1.5rem; line-height: 1.1; align-self: end; }
.nearby p { color: var(--ink-soft); font-size: .98rem; align-self: start; }
.nearby a:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }

.hub-faq, .hub-nearby { padding-block: 80px; }
.hub-nearby { padding-top: 0; }

@media (max-width: 899px) {
  .hub-hero-grid, .hub-about-grid, .hub-history-grid, .hub-invest-grid { grid-template-columns: 1fr; gap: 36px; }
  .hub-hero-media img { aspect-ratio: 4 / 3; }
  .nearby { grid-template-columns: 1fr; gap: 16px; }
  .nearby a { grid-template-columns: 88px 1fr; }
  .nearby img { width: 88px; height: 88px; }
}
@media (max-width: 767px) {
  .hub-faq { padding-block: 56px; }
  .visitor-empty { padding: 26px; }
}

/* Hub content that's optional per place */
.hub-history-grid.no-image { grid-template-columns: 1fr; }
.hub-history-grid.no-image > div { max-width: 760px; }
.trend-item.no-image > a { grid-template-columns: 1fr; }
.events-empty { padding: 26px 0; color: var(--ink-soft); }

/* ======================================================================
   Visit index (/visit)
   ====================================================================== */
.visit-hero { padding-top: calc(var(--header-h) + 28px); }
.visit-hero-grid { display: grid; grid-template-columns: 6fr 6fr; gap: 56px; align-items: center; margin-top: 20px; }
.visit-title { font: 800 clamp(2.8rem, 6vw, 5.2rem)/.95 var(--font-display); letter-spacing: -0.03em; max-width: 11ch; }
.visit-intro { margin-top: 22px; font-size: clamp(1.1rem, 1.5vw, 1.25rem); line-height: 1.5; max-width: 42ch; }
.visit-map-wrap { margin: 0; }
.visit-map { position: relative; aspect-ratio: 826 / 726; }
.visit-map-shape {
  position: absolute; inset: 0; background: var(--green);
  -webkit-mask: url("/img/delta-map-mask.png") center / contain no-repeat;
          mask: url("/img/delta-map-mask.png") center / contain no-repeat;
}
.map-pin {
  position: absolute; left: var(--x); top: var(--y);
  display: flex; align-items: flex-end; gap: 4px; text-decoration: none;
  transform: translate(-14px, -100%);
}
.map-pin img { width: 28px; height: 28px; filter: drop-shadow(0 1px 1px rgb(0 0 0 / .25)); }
.map-pin span {
  font: 700 1.05rem/1 var(--font-display); color: var(--ink);
  background: var(--paper); padding: 5px 10px 3px; border-radius: var(--radius-pill);
  box-shadow: 0 1px 0 var(--line); margin-bottom: 14px;
}
.map-pin--left { flex-direction: row-reverse; transform: translate(calc(-100% + 14px), -100%); }
.map-pin:hover span { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.visit-map-wrap figcaption { margin-top: 10px; font-size: .85rem; color: var(--ink-soft); text-align: right; }

.place-tiles { margin-top: 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 24px; }
.place-tile { display: block; text-decoration: none; }
.place-tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-media); background: var(--paper-2); }
.place-tile h3 { margin-top: 14px; font-size: 1.9rem; line-height: 1.05; font-weight: 800; }
.place-tile p { margin-top: 6px; color: var(--ink-soft); }
.place-tile .tile-count { display: block; margin-top: 8px; font-size: .9rem; font-weight: 600; color: var(--green); }
.place-tile:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }

.filter-selects { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 20px; }
.field label { display: block; margin-bottom: 6px; font-size: .9rem; font-weight: 600; }
.field select {
  min-height: 44px; min-width: 200px; padding: 0 44px 0 18px; border-radius: var(--radius-pill);
  border: 1.5px solid var(--ink-faint); background-color: var(--paper); color: var(--ink); font: inherit; cursor: pointer;
  -webkit-appearance: none; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%;
  background-size: 6px 6px; background-repeat: no-repeat;
}
.field select:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.result-count { margin: 0 0 10px auto; color: var(--ink-soft); font-size: .95rem; }
.filter-clear { background: none; border: 0; padding: 0 0 10px; cursor: pointer; font: inherit; font-weight: 600; }

.plan-facts { margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.plan-facts div { border-top: 1px solid var(--line); padding-top: 14px; }
.plan-facts dt { font-size: .875rem; font-weight: 600; color: var(--green); }
.plan-facts dd { margin: 6px 0 0; font-size: 1.05rem; max-width: 36ch; }

@media (max-width: 999px) {
  .place-tiles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 899px) {
  .visit-hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .visit-map-wrap { max-width: 560px; }
  .plan-facts { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 599px) {
  .place-tiles { grid-template-columns: 1fr; }
  .field, .field select { width: 100%; }
  .result-count { margin-left: 0; }
  .map-pin span { font-size: .9rem; padding: 4px 8px 2px; }
  .map-pin img { width: 22px; height: 22px; }
}

/* ======================================================================
   Destination pages (/visit/{place}/{slug})
   ====================================================================== */
.dest-hero { padding-top: calc(var(--header-h) + 28px); }
.dest-head { margin-top: 24px; max-width: 58rem; }
.dest-title { margin-top: 6px; font: 800 clamp(2.6rem, 6vw, 4.8rem)/.95 var(--font-display); letter-spacing: -0.03em; }
.dest-summary { margin-top: 18px; font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.5; max-width: 60ch; }
.dest-meta { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; color: var(--ink-soft); font-size: .95rem; }
.dest-meta img { width: 16px; height: 16px; margin-right: -12px; }
.dest-checked { color: var(--ink-soft); }

.dest-gallery { margin-top: 32px; display: grid; gap: 12px; }
.dest-gallery img, .dest-gallery .photo-missing { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-media); background: var(--paper-2); }
.dest-gallery.g1 img { aspect-ratio: 16 / 7; }
.dest-gallery.g0 .photo-missing { aspect-ratio: 16 / 4; }
/* minmax(0, …) tracks stop the photos' natural size from stretching the fixed-height grid */
.dest-gallery > * { min-width: 0; min-height: 0; }
.dest-gallery.g2 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); height: clamp(300px, 38vw, 480px); }
.dest-gallery.g3 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); grid-template-rows: repeat(2, minmax(0, 1fr)); height: clamp(320px, 40vw, 520px); }
.dest-gallery.g4, .dest-gallery.g5 { grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); height: clamp(320px, 40vw, 520px); }
.dest-gallery.g3 > :first-child, .dest-gallery.g4 > :first-child, .dest-gallery.g5 > :first-child { grid-row: 1 / span 2; }
.dest-gallery.g4 > :nth-child(4) { grid-column: 2 / span 2; }
.dest-credits { margin-top: 10px; font-size: .82rem; color: var(--ink-soft); }
.dest-credits a { color: inherit; }

.dest-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 64px; align-items: start; }
.dest-article { max-width: 68ch; }
.dest-article > h2, .dest-sources h2 { font: 700 clamp(1.5rem, 2.4vw, 2rem)/1.15 var(--font-display); margin-top: 40px; }
.dest-article > h2:first-child { margin-top: 0; }
.dest-article > p { margin-top: 14px; font-size: 1.0625rem; line-height: 1.7; }
.dest-article .faq { margin-top: 12px; }
.dest-article .history-links { margin-top: 14px; }
.dest-sources { margin-top: 48px; padding-top: 8px; border-top: 1px solid var(--line); }
.dest-sources h2 { font-size: 1.3rem; margin-top: 24px; }
.dest-sources ol { margin: 12px 0 0; padding-left: 1.3em; list-style: decimal; display: grid; gap: 6px; color: var(--ink-soft); font-size: .95rem; }
.dest-sources ol a { color: inherit; text-underline-offset: 3px; }
.dest-sources p { margin-top: 14px; color: var(--ink-soft); font-size: .95rem; }
.dest-researching { padding: 32px; border-radius: var(--radius-media); background: var(--paper-2); }
.dest-researching h2 { font: 700 1.6rem/1.15 var(--font-display); }
.dest-researching p { margin-top: 10px; color: var(--ink-soft); max-width: 55ch; }

.dest-aside { position: sticky; top: calc(var(--header-h) + 24px); }
.plan-card { padding: 28px; border-radius: var(--radius-media); background: var(--paper-2); }
.plan-card h2 { font: 700 1.5rem/1.15 var(--font-display); }
.plan-card .facts { margin-top: 18px; gap: 16px; }
.plan-card .facts dd { font-size: 1rem; }
.plan-card > .btn { margin-top: 22px; width: 100%; justify-content: center; }
.mini-map { margin-top: 22px; }
.mini-map .map-pin span { font-size: .9rem; }
.plan-ask { margin-top: 18px; color: var(--ink-soft); font-size: .95rem; }
.plan-card > .btn-primary { margin-top: 10px; }

.dest-visitors { padding-block: 0 24px; }
.dest-visitors-box { padding: 32px; border-radius: var(--radius-media); border: 1.5px dashed var(--ink-faint); }
.dest-visitors-box h2 { font: 700 1.6rem/1.15 var(--font-display); }
.dest-visitors-box p { margin-top: 8px; color: var(--ink-soft); }
.dest-visitors-box .btn { margin-top: 18px; }
.dest-more-link { margin-top: 28px; }

@media (max-width: 899px) {
  .dest-grid { grid-template-columns: 1fr; gap: 40px; }
  .dest-aside { position: static; }
}
@media (max-width: 767px) {
  .dest-gallery.g2, .dest-gallery.g3, .dest-gallery.g4, .dest-gallery.g5 { height: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; }
  .dest-gallery > :first-child { grid-column: 1 / -1 !important; grid-row: auto !important; aspect-ratio: 4 / 3; }
  .dest-gallery > :not(:first-child) { aspect-ratio: 1; grid-column: auto !important; }
  .dest-gallery.g2 > :nth-child(2) { grid-column: 1 / -1 !important; aspect-ratio: 16 / 9; }
  .dest-gallery.g1 img, .dest-gallery.g0 .photo-missing { aspect-ratio: 4 / 3; }
}

/* ======================================================================
   Invest section (/invest, /invest/{theme}, /invest/opportunities, /invest/contact)
   ====================================================================== */
.stat-grid { margin-top: 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; }
.stat-grid li { padding: 22px 0; border-top: 1px solid var(--line); }
.stat-grid strong { display: block; font: 800 clamp(2.2rem, 4vw, 3.2rem)/1 var(--font-display); color: var(--green); letter-spacing: -0.02em; }
.stat-grid span { display: block; margin-top: 8px; max-width: 28ch; }
.stat-src { margin-left: 4px; font-size: .75rem; vertical-align: super; color: var(--ink-soft); text-decoration: none; }
.stat-src:hover { text-decoration: underline; }
.stat-note { margin-top: 16px; font-size: .9rem; color: var(--ink-soft); }

.tile-map { aspect-ratio: 4 / 3; border-radius: var(--radius-media); background: var(--paper-2); display: grid; place-items: center; padding: 18px 28px; }
.tile-map .visit-map { width: 100%; }
.invest-map { margin: 0; padding: 24px; border-radius: var(--radius-media); background: var(--paper-2); }
.invest-map figcaption { margin-top: 10px; font-size: .85rem; color: var(--ink-soft); text-align: right; }

.invest-how-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; }
.official-note { margin-top: 16px; color: var(--ink-soft); max-width: 46ch; }
.steps { counter-reset: step; display: grid; gap: 22px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 56px 1fr; column-gap: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.steps li::before { content: counter(step); grid-row: span 2; font: 800 2.4rem/1 var(--font-display); color: var(--green); }
.steps h3 { font: 700 1.3rem/1.2 var(--font-display); }
.steps p { margin-top: 4px; color: var(--ink-soft); }
.steps-compact li { grid-template-columns: 40px 1fr; padding-top: 14px; }
.steps-compact li::before { font-size: 1.8rem; }
.steps-compact h3 { font-size: 1.1rem; }

.opps-intro { margin-top: 12px; color: var(--ink-soft); max-width: 60ch; }
.opp-list { margin-top: 28px; display: grid; }
.opp-item { display: grid; grid-template-columns: 1fr auto; gap: 16px 40px; align-items: center; padding: 24px 0; }
.opp-item + .opp-item { border-top: 1px solid var(--line); }
.opp-item .kind { text-decoration: none; }
.opp-item .kind:hover { text-decoration: underline; }
.opp-item h3 { margin-top: 4px; font: 700 1.4rem/1.2 var(--font-display); }
.opp-item p { margin-top: 6px; color: var(--ink-soft); max-width: 70ch; }
.opp-meta { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: .92rem; }
.opp-meta span { display: inline-flex; align-items: center; gap: 6px; }
.opp-meta img { width: 14px; height: 14px; }
.opp-basis { font-size: .9rem; }
.opp-basis a { color: inherit; text-underline-offset: 3px; }
.opps-title { max-width: none; }

.chip-links { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px; }
.chip-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 18px; border-radius: var(--radius-pill); border: 1.5px solid var(--line); text-decoration: none; font-weight: 500; }
.chip-link:hover { border-color: var(--ink-faint); }
.chip-link img { width: 14px; height: 14px; }
.aside-links { margin-top: 14px; display: grid; gap: 10px; }
.theme-facts { padding-block: 0 24px; }

/* Contact / lead form */
.contact-hero { padding-bottom: var(--section); }
.contact-grid { margin-top: 20px; display: grid; grid-template-columns: 6fr 5fr; gap: 64px; align-items: start; }
.contact-intro h2 { margin-top: 36px; font: 700 1.4rem/1.2 var(--font-display); }
.contact-intro .steps { margin-top: 16px; }
.contact-intro .official-note { margin-top: 28px; }
.contact-alt { margin-top: 14px; color: var(--ink-soft); }
.form-card { padding: 32px; border-radius: var(--radius-media); background: var(--paper-2); position: sticky; top: calc(var(--header-h) + 24px); }
.lead-form { display: grid; gap: 18px; }
.form-field label { display: block; margin-bottom: 6px; font-weight: 600; }
.optional { font-weight: 400; color: var(--ink-soft); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; min-height: 48px; padding: 10px 16px; border-radius: 12px;
  border: 1.5px solid var(--ink-faint); background: var(--paper); color: var(--ink); font: inherit;
}
.form-field textarea { min-height: 110px; resize: vertical; }
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--ink-soft); opacity: 1; }
.form-field input:focus-visible, .form-field select:focus-visible, .form-field textarea:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-color: var(--green); }
.form-field [aria-invalid="true"] { border-color: #A52A12; }
.field-error { margin-top: 6px; color: #A52A12; font-size: .92rem; }
.field-error:empty { display: none; }
.field-help { margin-top: 6px; color: var(--ink-soft); font-size: .9rem; }
.form-errors { padding: 12px 16px; border-radius: 12px; background: #FBE3DC; color: #7A1E0C; font-weight: 600; }
@media (prefers-color-scheme: dark) {
  .form-field [aria-invalid="true"] { border-color: #FF8A73; }
  .field-error { color: #FF8A73; }
  .form-errors { background: #3A1A12; color: #FFC2B5; }
}
.form-about { padding: 12px 16px; border-radius: 12px; background: var(--paper); border: 1.5px solid var(--line); }
.form-more summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.form-more .form-field { margin-top: 14px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-submit { justify-content: center; width: 100%; }
.form-submit:disabled { opacity: .7; cursor: progress; }
.form-privacy { font-size: .9rem; color: var(--ink-soft); }
.form-privacy a { color: inherit; }
.form-success h2 { font: 700 1.6rem/1.2 var(--font-display); }
.form-success p { margin: 10px 0 16px; color: var(--ink-soft); }
.form-success:focus { outline: none; }

@media (max-width: 899px) {
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .invest-how-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .form-card { position: static; }
  .opp-item { grid-template-columns: 1fr; }
  .opp-item .btn { justify-self: start; }
}
@media (max-width: 479px) {
  .stat-grid { grid-template-columns: 1fr; }
  .form-card { padding: 22px; }
}

/* Map pins keep their own size wherever the map sits (cards and heroes style their images to fill) */
.visit-map .map-pin img { width: 28px; height: 28px; aspect-ratio: auto; object-fit: contain; border-radius: 0; background: none; }
.visit-map .map-pin span { white-space: nowrap; }
.tile-map .map-pin img { width: 22px; height: 22px; }
.tile-map .map-pin span { font-size: .85rem; padding: 3px 8px 2px; margin-bottom: 10px; }
.form-more summary { gap: 6px; }
.visit-hero + .visit-all { padding-top: 48px; }

/* ======================================================================
   Events (/events, /events/past, /events/{slug}, /events/submit) and the shared date rows
   ====================================================================== */
.event .event-tags { justify-self: end; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.tag-sample { padding: 2px 10px; border-radius: var(--radius-pill); border: 1.5px dashed var(--ink-faint); font-size: .8rem; font-weight: 600; color: var(--ink-soft); }
.event-meta { flex-wrap: wrap; }
.event-when { margin-left: 4px; padding-left: 12px; border-left: 1px solid var(--line); }
.events-list--compact { margin-top: 12px; }
.events-list--compact .event a { padding-block: 18px; }
.events-list--compact .event-date .day { font-size: 2.2rem; }
.events-list--compact .event h3 { font-size: 1.2rem; }
.events-upcoming .filters { margin-top: 20px; }
.events-upcoming .events-list { margin-top: 12px; }

/* Delta's festival year */
.festival-year { margin-top: 28px; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0 36px; }
.festival-year > li { padding: 20px 0 24px; border-top: 1px solid var(--line); }
.festival-year h3 { font: 700 1.5rem/1.1 var(--font-display); color: var(--green); }
.festival-year ul { margin-top: 10px; display: grid; gap: 10px; }
.festival-year a { font-weight: 600; text-underline-offset: 3px; }
.festival-year li span { display: block; font-size: .92rem; color: var(--ink-soft); }

/* Event and festival pages */
.event-title { margin-top: 8px; font: 800 clamp(2.3rem, 4.6vw, 3.9rem)/1 var(--font-display); letter-spacing: -0.02em; max-width: 16ch; }
.event-line { margin-top: 14px; display: flex; align-items: flex-start; gap: 10px; font-weight: 600; font-size: 1.05rem; line-height: 1.45; }
.event-line + .event-line { margin-top: 8px; }
.event-line i { font-size: 1.2rem; color: var(--green); width: 18px; text-align: center; margin-top: 2px; flex: none; }
.event-line img { width: 18px; height: 18px; margin-top: 3px; flex: none; }
.event-summary { margin-top: 20px; font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.5; max-width: 44ch; }
.event-status { margin-top: 18px; padding: 12px 16px; border-radius: 12px; background: var(--paper-2); border-left: 3px solid var(--green); max-width: 46ch; }
.event-status--sample { border-left-color: var(--ink-faint); }
.event-cta-help { margin-top: 12px; color: var(--ink-soft); font-size: .95rem; max-width: 44ch; }
.event-credit { margin-top: 8px; font-size: .8rem; color: var(--ink-soft); }
.event-credit a { color: inherit; }
.event-series { margin-top: 20px; }
.event-hero .hub-hero-media img { aspect-ratio: 4 / 3; object-fit: cover; }

.date-card {
  position: relative; overflow: hidden; aspect-ratio: 4 / 3; border-radius: var(--radius-media); background: var(--paper-2);
  display: grid; align-content: center; justify-items: start; padding: clamp(28px, 5vw, 56px);
}
.date-card-map { position: absolute; right: -4%; bottom: -6%; width: 58%; height: auto; opacity: .1; }
.date-card-small { position: relative; font-weight: 600; font-size: 1.1rem; color: var(--ink-soft); }
.date-card-big { position: relative; font: 800 clamp(5rem, 11vw, 8.5rem)/.9 var(--font-display); color: var(--green); letter-spacing: -0.03em; }
.date-card-place { position: relative; margin-top: 16px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.date-card-place img { width: 18px; height: 18px; }
@media (prefers-color-scheme: dark) { .date-card-map { filter: brightness(2.4); opacity: .14; } }

/* List your event form */
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-field input[type="date"], .form-field input[type="time"] { min-width: 0; }

@media (max-width: 639px) {
  .event .event-tags { grid-column: 2; justify-self: start; justify-content: flex-start; margin-top: -8px; }
  .event-when { margin-left: 0; padding-left: 0; border-left: 0; flex-basis: 100%; }
}
@media (max-width: 479px) {
  .form-row { grid-template-columns: 1fr; }
}

/* ======================================================================
   Community (/community, groups, marketplace, diaspora, stories, forms)
   ====================================================================== */
.hero-proof { margin-top: 18px; color: var(--ink-soft); font-size: .95rem; }
.hero-proof i { font-size: 1.2rem; color: var(--ink); vertical-align: -3px; margin-right: 6px; }
.community-hero .hub-hero-media img { aspect-ratio: 4 / 3; object-fit: cover; }
.community-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.social-links .chip-link i { font-size: 1.15rem; }

/* What you'll find (groups hero) */
.groups-grid { align-items: center; }
.find-card { padding: 32px; border-radius: var(--radius-media); background: var(--paper-2); }
.find-card h2 { font: 700 1.5rem/1.15 var(--font-display); }
.find-list { margin-top: 18px; display: grid; gap: 18px; }
.find-list li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.find-list i { font-size: 1.6rem; color: var(--green); margin-top: 2px; }
.find-list h3 { font: 700 1.15rem/1.2 var(--font-display); }
.find-list p { margin-top: 2px; color: var(--ink-soft); }

/* Associations */
.assoc-list { margin-top: 24px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 36px; }
.assoc-card { padding: 22px 0 26px; border-top: 1px solid var(--line); display: flex; flex-direction: column; align-items: flex-start; }
.assoc-card h3 { margin-top: 4px; font: 700 1.3rem/1.2 var(--font-display); }
.assoc-based { margin-top: 6px; display: flex; align-items: center; gap: 6px; font-size: .92rem; color: var(--ink-soft); }
.assoc-based i { color: var(--red); }
.assoc-card > p:not(.assoc-based) { margin: 10px 0 14px; color: var(--ink-soft); }
.assoc-card .text-link { margin-top: auto; }
.country-title { margin-top: 32px; font: 700 1.4rem/1.2 var(--font-display); color: var(--green); }
.country-title + .assoc-list { margin-top: 10px; }

/* Marketplace */
.market-biz { display: grid; grid-template-columns: 6fr 5fr; gap: 56px; align-items: center; }
.market-biz .hub-ctas { margin-top: 24px; }
.example-card { position: relative; padding: 28px; border-radius: var(--radius-media); border: 1.5px dashed var(--ink-faint); background: var(--paper); display: grid; justify-items: start; gap: 6px; }
.example-card .tag-sample { position: absolute; top: 20px; right: 20px; }
.example-card h3 { font: 700 1.5rem/1.15 var(--font-display); }
.example-card > p { color: var(--ink-soft); }
.example-card .btn { margin-top: 10px; pointer-events: none; gap: 8px; }
.market-safety-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; }
.tick-list { margin-top: 20px; display: grid; gap: 14px; }
.tick-list li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; }
.tick-list i { font-size: 1.35rem; color: var(--green); margin-top: 1px; }
.tick-list--no i { color: #A52A12; }
@media (prefers-color-scheme: dark) { .tick-list--no i { color: #FF8A73; } }

/* Diaspora */
.benefit-grid { margin-top: 28px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 32px; }
.benefit-grid li { padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.benefit-grid i { font-size: 2rem; color: var(--green); }
.benefit-grid h3 { font: 700 1.25rem/1.2 var(--font-display); }
.benefit-grid p { color: var(--ink-soft); }
.diaspora-signup .contact-grid { margin-top: 0; }
.diaspora-signup .visit-intro { max-width: 40ch; }
.example-card .card-place { display: flex; align-items: center; gap: 6px; font-size: .95rem; color: var(--ink-soft); }
.example-card .card-place img { width: 14px; height: 14px; }
.diaspora-signup .official-note { margin-top: 24px; }

/* Stories */
.stories-empty-grid { display: grid; grid-template-columns: 6fr 5fr; gap: 56px; align-items: center; }
.stories-empty { padding: clamp(28px, 5vw, 56px); border-radius: var(--radius-media); background: var(--paper-2); display: grid; justify-items: start; gap: 14px; }
.stories-empty img { width: 96px; height: auto; opacity: .28; }
.stories-empty h2 { font: 700 clamp(1.6rem, 2.6vw, 2.1rem)/1.1 var(--font-display); }
.stories-empty p { color: var(--ink-soft); max-width: 44ch; }
@media (prefers-color-scheme: dark) { .stories-empty img { filter: brightness(2.4); opacity: .35; } }

/* Form: checkboxes */
.check-field { display: grid; grid-template-columns: 24px 1fr; gap: 4px 12px; align-items: start; }
.check-field input, .check-group input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--green); }
.check-field label { margin: 0; font-weight: 500; line-height: 1.45; }
.check-field .field-error { grid-column: 2; }
.check-group { margin: 14px 0 0; padding: 0; border: 0; display: grid; gap: 10px; }
.check-group legend { margin-bottom: 8px; padding: 0; font-weight: 600; }
.check-group label { display: flex; align-items: center; gap: 10px; min-height: 32px; }
.form-field input[type="file"] { padding: 10px 12px; }

@media (max-width: 1099px) {
  .community-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .assoc-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .benefit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; }
}
@media (max-width: 899px) {
  .market-biz, .market-safety-grid, .stories-empty-grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 639px) {
  .community-tiles, .assoc-list, .benefit-grid { grid-template-columns: 1fr; }
  .find-card { padding: 22px; }
}

/* ======================================================================
   History (/history, /history/{slug})
   ====================================================================== */
.history-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.timeline { margin-top: 32px; position: relative; display: grid; gap: 0; max-width: 820px; }
.timeline::before { content: ""; position: absolute; left: 118px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline li { position: relative; display: grid; grid-template-columns: 100px 1fr; gap: 40px; padding: 14px 0; }
.timeline li::before { content: ""; position: absolute; left: 112px; top: 22px; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); border: 3px solid var(--green); }
.tl-year { font: 800 1.35rem/1.2 var(--font-display); color: var(--green); text-align: right; }
.timeline p { padding-top: 2px; }
.timeline .text-link { white-space: nowrap; }
.history-card { position: relative; overflow: hidden; aspect-ratio: 4 / 3; border-radius: var(--radius-media); background: var(--paper-2); display: grid; align-content: center; justify-items: start; gap: 10px; padding: clamp(28px, 5vw, 56px); }
.history-card-title { position: relative; font: 800 clamp(2rem, 4vw, 3.2rem)/1 var(--font-display); color: var(--green); letter-spacing: -0.02em; max-width: 12ch; }
.history-how { display: grid; grid-template-columns: 6fr 5fr; gap: 56px; align-items: start; }
.history-how .dest-sources { margin-top: 0; }
.history-visit { margin-top: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.history-visit .place-card h3 { font-size: 1.2rem; }
.history-entry-hero .hub-hero-media img { aspect-ratio: 4 / 3; object-fit: cover; }
.dest-article h2[id] { scroll-margin-top: calc(var(--header-h) + 24px); }
.accounts-note + .dest-researching { margin-top: 32px; }
@media (max-width: 899px) {
  .history-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .history-how { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 639px) {
  .history-facts, .history-visit { grid-template-columns: 1fr; }
  .timeline::before { left: 7px; }
  .timeline li { grid-template-columns: 1fr; gap: 2px; padding: 12px 0 12px 32px; }
  .timeline li::before { left: 1px; top: 18px; }
  .tl-year { text-align: left; }
}

/* ======================================================================
   Blog / Stories (/blog, /blog/category/{slug}, /blog/{slug})
   ====================================================================== */
.post-grid { margin-top: 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 28px; }
.post-grid:not(.post-grid--plain) > li:first-child { grid-column: 1 / -1; }
.post-grid:not(.post-grid--plain) > li:first-child a { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: 1fr auto auto auto auto 1fr; column-gap: 40px; }
.post-grid:not(.post-grid--plain) > li:first-child img { grid-column: 1; grid-row: 1 / -1; aspect-ratio: 16 / 10; }
.post-grid:not(.post-grid--plain) > li:first-child a > :not(img) { grid-column: 2; }
.post-grid:not(.post-grid--plain) > li:first-child .kind { grid-row: 2; }
.post-grid:not(.post-grid--plain) > li:first-child h3 { grid-row: 3; }
.post-grid:not(.post-grid--plain) > li:first-child p:not(.post-meta) { grid-row: 4; }
.post-grid:not(.post-grid--plain) > li:first-child .post-meta { grid-row: 5; }
.post-grid:not(.post-grid--plain) > li:first-child .kind { margin-top: 0; }
.post-grid:not(.post-grid--plain) > li:first-child h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.08; }
.post-card a { display: block; text-decoration: none; }
.post-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-media); background: var(--paper-2); }
.post-card .kind { display: block; margin-top: 16px; }
.post-card h3 { margin-top: 6px; font: 700 1.45rem/1.15 var(--font-display); }
.post-card a:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.post-card p { margin-top: 8px; color: var(--ink-soft); }
.post-card .post-meta { font-size: .9rem; }
.cat-others-title { margin-top: 56px; font: 700 1.3rem/1.2 var(--font-display); }

.post-head { padding-top: calc(var(--header-h) + 28px); }
.post-head .kind { display: inline-block; margin-top: 18px; text-decoration: none; }
.post-head .kind:hover { text-decoration: underline; }
.post-title { margin-top: 8px; font: 800 clamp(2.4rem, 5.4vw, 4.4rem)/1 var(--font-display); letter-spacing: -0.025em; max-width: 20ch; }
.post-dek { margin-top: 18px; font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.5; max-width: 58ch; color: var(--ink-soft); }
.post-byline { margin-top: 16px; font-size: .95rem; color: var(--ink-soft); }
.post-hero { margin-top: 32px; }
.post-hero img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: var(--radius-media); }
.post-hero figcaption { margin-top: 8px; font-size: .8rem; color: var(--ink-soft); }
.post-hero figcaption a { color: inherit; }
.post-body { margin: 48px auto 0; padding-bottom: var(--section); }
.post-body > p.post-lead { margin-top: 0; font-size: clamp(1.2rem, 1.7vw, 1.4rem); line-height: 1.55; }
.post-places { margin-top: 44px; padding: 22px 24px; border-radius: var(--radius-media); background: var(--paper-2); }
.post-places h2, .post-share h2 { font: 700 1.2rem/1.2 var(--font-display); }
.post-share { margin-top: 36px; }
.post-share ul { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 10px; }
.post-share i { font-size: 1.1rem; }

@media (max-width: 1099px) {
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  .post-grid:not(.post-grid--plain) > li:first-child a { display: block; }
  .post-grid:not(.post-grid--plain) > li:first-child .kind { margin-top: 16px; }
}
@media (max-width: 639px) {
  .post-grid { grid-template-columns: 1fr; }
  .post-hero img { aspect-ratio: 4 / 3; }
}

/* Events grid and calendar -------------------------------------------------- */
.view-switch { margin-top: 20px; display: inline-flex; padding: 4px; gap: 4px; border-radius: var(--radius-pill); background: var(--paper-2); }
.view-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 18px; border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--ink); font: 600 .95rem/1 var(--font-body); cursor: pointer; }
.view-btn i { font-size: 1.15rem; }
.view-btn[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.view-btn:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.events-upcoming .filters { margin-top: 16px; }

.event-grid { margin-top: 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 28px; }
.event-card a { display: block; text-decoration: none; }
.event-card-media { position: relative; }
.event-card-media > img, .event-tile { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-media); background: var(--paper-2); }
.event-tile { position: relative; overflow: hidden; display: grid; place-items: end start; padding: 22px 24px; background: var(--green-deep); }
.event-tile img { position: absolute; right: -8%; bottom: -10%; width: 70%; height: auto; filter: brightness(0) invert(1); opacity: .12; }
.event-tile span { position: relative; font: 800 clamp(1.6rem, 2.4vw, 2.1rem)/1 var(--font-display); color: #fff; max-width: 12ch; }
.event-badge { position: absolute; top: 14px; left: 14px; display: grid; justify-items: center; min-width: 68px; padding: 8px 10px 7px; border-radius: 14px; background: var(--paper); color: var(--ink); box-shadow: 0 2px 10px rgba(32, 28, 21, .12); }
.event-badge .day { font: 800 1.7rem/1 var(--font-display); }
.event-badge .month { margin-top: 2px; font-size: .78rem; font-weight: 600; color: var(--ink-soft); white-space: nowrap; }
.event-card .event-tags { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.event-card h3 { margin-top: 6px; font: 700 1.4rem/1.15 var(--font-display); }
.event-card a:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.event-card .event-meta { margin-top: 8px; }

.calendar { margin-top: 28px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 520px; }
.cal-title { font: 700 1.6rem/1.2 var(--font-display); }
.cal-head .icon-btn { border: 1.5px solid var(--line); border-radius: 50%; }
.cal-head .icon-btn:disabled { opacity: .35; cursor: default; }
.cal-grid { margin-top: 16px; width: 100%; border-collapse: collapse; table-layout: fixed; }
.cal-grid th { padding: 8px 6px; font-size: .85rem; font-weight: 600; color: var(--ink-soft); text-align: left; }
.cal-grid abbr { text-decoration: none; }
.cal-grid td { height: 104px; padding: 6px; vertical-align: top; border: 1px solid var(--line); }
.cal-grid td.cal-empty { background: var(--paper-2); }
.cal-day { display: inline-grid; place-items: center; min-width: 28px; height: 28px; font-weight: 600; font-size: .9rem; border-radius: 50%; }
.cal-grid td.is-today .cal-day { background: var(--ink); color: var(--paper); }
.cal-event { display: block; margin-top: 4px; padding: 3px 8px; border-radius: 8px; background: var(--green); color: #fff; font-size: .78rem; font-weight: 600; line-height: 1.3; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-event:hover { background: var(--green-deep); }
.cal-event:focus-visible { outline: 3px solid var(--ink); outline-offset: 1px; }
.cal-list { margin-top: 24px; max-width: 720px; }
.cal-list h4 { margin-top: 20px; font: 700 1.2rem/1.2 var(--font-display); }
.cal-list ul { margin-top: 8px; }
.cal-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 0; border-top: 1px solid var(--line); }
.cal-list li a { display: grid; grid-template-columns: 150px 1fr; gap: 2px 16px; flex: 1; text-decoration: none; }
.cal-when { grid-row: span 2; font-weight: 600; color: var(--green); }
.cal-name { font-weight: 600; }
.cal-list li a:hover .cal-name { text-decoration: underline; }
.cal-place { font-size: .9rem; color: var(--ink-soft); }
.cal-none { margin-top: 8px; color: var(--ink-soft); }

@media (max-width: 1099px) { .event-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) {
  .event-grid { grid-template-columns: 1fr; }
  .cal-grid td { height: 56px; padding: 3px; }
  .cal-day { min-width: 24px; height: 24px; font-size: .82rem; }
  .cal-event { width: 8px; height: 8px; padding: 0; margin: 4px auto 0; border-radius: 50%; font-size: 0; }
  .cal-grid th { padding: 6px 2px; font-size: .75rem; }
  .cal-list li a { grid-template-columns: 1fr; }
  .cal-when { grid-row: auto; }
}
.event-card .event-meta { flex-wrap: wrap; row-gap: 2px; }
.event-card .event-when { flex-basis: 100%; margin-left: 24px; padding-left: 0; border-left: 0; }

/* ======================================================================
   Merch (/merch, /merch/{slug}, /cart, /checkout, /shipping-returns)
   ====================================================================== */
.merch-hero .hub-hero-media img { aspect-ratio: 1; object-fit: cover; }
.product-grid { margin-top: 28px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 24px; }
.product-card a { display: block; text-decoration: none; }
.product-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-media); background: var(--paper-2); }
.product-tags { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.product-card h3 { margin-top: 6px; font: 700 1.3rem/1.15 var(--font-display); }
.product-card a:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.product-price { margin-top: 6px; font-weight: 600; }
.product-price--big { margin-top: 12px; font: 800 1.6rem/1.2 var(--font-display); }
.swatches { margin-top: 8px; display: flex; gap: 6px; }
.swatch { display: inline-block; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--line); vertical-align: -3px; }
.swatch-ink { background: #201C15; }
.swatch-paper { background: #F6F1E4; }
.swatch-green { background: #1E7A3C; }
.swatch-natural { background: #E2D6BA; }

.product-grid-main { margin-top: 20px; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 56px; align-items: start; }
.product-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-media); background: var(--paper-2); }
.product-info .tag-sample { margin-left: 8px; }
.product-opt { margin: 24px 0 0; padding: 0; border: 0; }
.product-opt legend { padding: 0; margin-bottom: 10px; font-weight: 600; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt > span { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 52px; justify-content: center; padding: 8px 16px; border-radius: var(--radius-pill); border: 1.5px solid var(--line); font-weight: 600; cursor: pointer; }
.opt input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.opt input:focus-visible + span { outline: 3px solid var(--green); outline-offset: 2px; }
.opt input:checked + span .swatch { border-color: var(--paper); }
.product-form { margin-top: 24px; display: grid; gap: 14px; }
.qty-row { display: flex; align-items: center; gap: 14px; }
.qty-row label { font-weight: 600; }
.qty-row input { width: 88px; min-height: 44px; padding: 8px 12px; border-radius: 12px; border: 1.5px solid var(--ink-faint); background: var(--paper); color: var(--ink); font: inherit; }
.product-form .form-submit { gap: 8px; }
.added { font-weight: 600; }
.notify-card { margin-top: 28px; padding: 24px; border-radius: var(--radius-media); background: var(--paper-2); }
.notify-card h2 { font: 700 1.3rem/1.2 var(--font-display); }
.notify-card > p { margin: 6px 0 16px; color: var(--ink-soft); }
.product-sub { margin-top: 32px; font: 700 1.2rem/1.2 var(--font-display); }
.product-details { margin-top: 10px; display: grid; gap: 6px; padding-left: 18px; list-style: disc; color: var(--ink-soft); }
.product-ship { margin-top: 20px; display: flex; align-items: center; gap: 10px; }
.product-ship i { font-size: 1.3rem; color: var(--green); }
.merch-waitlist .contact-grid { margin-top: 0; }

.header-actions a[href="/cart"] { position: relative; }
.bag-count { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font: 700 .7rem/18px var(--font-body); text-align: center; }

.cart { margin-top: 28px; }
.cart-empty p { font-size: 1.1rem; max-width: 52ch; }
.cart-full { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 48px; align-items: start; }
.cart-full[hidden] { display: none; }
.cart-lines { display: grid; }
.cart-line { display: grid; grid-template-columns: 96px 1fr auto auto; gap: 8px 20px; align-items: center; padding: 18px 0; border-top: 1px solid var(--line); }
.cart-line img { width: 96px; height: 96px; object-fit: cover; border-radius: 12px; background: var(--paper-2); }
.cart-line-info { display: grid; gap: 2px; }
.cart-line-info a { font-weight: 600; text-decoration: none; }
.cart-line-info a:hover { text-decoration: underline; }
.cart-line-info span { font-size: .92rem; color: var(--ink-soft); }
.cart-qty { display: inline-flex; align-items: center; gap: 6px; }
.cart-qty .icon-btn { border: 1.5px solid var(--line); border-radius: 50%; width: 36px; height: 36px; }
.cart-qty span { min-width: 20px; text-align: center; font-weight: 600; }
.cart-remove { grid-column: 2; justify-self: start; font-size: .9rem; }
.cart-summary, .order-summary { padding: 24px; border-radius: var(--radius-media); background: var(--paper-2); display: grid; gap: 12px; }
.cart-subtotal { display: flex; justify-content: space-between; font-size: 1.1rem; }
.cart-checkout { justify-content: center; }
.cart-lines--compact .cart-line { grid-template-columns: 64px 1fr auto; }
.cart-lines--compact .cart-line img { width: 64px; height: 64px; }
.order-summary h2, .checkout-sub { font: 700 1.3rem/1.2 var(--font-display); }
.checkout-sub { margin-top: 8px; }
.checkout { margin-top: 28px; }

@media (max-width: 1099px) { .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 899px) {
  .product-grid-main, .cart-full { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 639px) {
  .cart-line { grid-template-columns: 72px 1fr; }
  .cart-line img { width: 72px; height: 72px; grid-row: span 2; }
  .cart-line-total { grid-column: 2; }
  .cart-remove { grid-column: 2; }
}
.cart-remove { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; font-size: .9rem; }
.cart-page, .checkout-page { padding-bottom: var(--section); }
.breadcrumb + .visit-title, .breadcrumb + .contact-grid { margin-top: 28px; }
.checkout-page .checkout { margin-top: 36px; }

/* ======================================================================
   Footer pages (/about, /contact, /advertise, /privacy, /terms)
   ====================================================================== */
.about-hero .hub-hero-media img { aspect-ratio: 4 / 3; object-fit: cover; }
.about-why { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.about-why-text p { font-size: 1.15rem; line-height: 1.65; }
.about-why-text p + p { margin-top: 16px; }
.about-sections { margin-top: 28px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 28px; }
.about-sections li { border-top: 1px solid var(--line); }
.about-sections a { display: block; padding: 20px 0 24px; text-decoration: none; }
.about-sections h3 { font: 700 1.35rem/1.2 var(--font-display); color: var(--green); }
.about-sections a:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.about-sections p { margin-top: 6px; color: var(--ink-soft); }

.contact-ways { margin-top: 24px; display: grid; gap: 12px; max-width: 460px; }
.contact-ways a, .contact-routes a { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.contact-ways a { padding: 16px 20px; border-radius: var(--radius-media); background: var(--paper-2); }
.contact-ways i { font-size: 1.8rem; color: var(--green); }
.contact-ways span span, .contact-routes span span { display: block; color: var(--ink-soft); }
.contact-ways a:hover strong, .contact-routes a:hover strong { text-decoration: underline; }
.contact-routes { margin-top: 12px; display: grid; }
.contact-routes li { border-top: 1px solid var(--line); }
.contact-routes a { padding: 12px 0; }
.contact-routes i { font-size: 1.4rem; color: var(--green); width: 28px; }
.contact-intro .social-links { margin-top: 12px; }

.benefit-grid--five { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }

.legal-draft { margin-top: 20px; }
.legal .dest-article > h2 { scroll-margin-top: calc(var(--header-h) + 24px); }
.legal-list { margin-top: 12px; display: grid; gap: 10px; padding-left: 20px; list-style: disc; font-size: 1.0625rem; line-height: 1.65; }
.legal-toc { margin-top: 12px; display: grid; gap: 8px; padding-left: 20px; list-style: decimal; }

@media (max-width: 1099px) { .about-sections { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 899px) {
  .about-why { grid-template-columns: 1fr; gap: 16px; }
  .benefit-grid--five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 639px) {
  .about-sections, .benefit-grid--five { grid-template-columns: 1fr; }
}
