/* ==========================================================================
   Mesquite Oasis Lodge & RV Park — design system
   West Texas: bone-white paper, mesquite ink, desert sun orange + gold
   ========================================================================== */

:root {
  /* Type */
  --font-display: 'Bespoke Slab', 'Bitter', Georgia, serif;
  --font-body: 'General Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --text-xs: clamp(0.75rem, 0.72rem + 0.15vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.85rem + 0.15vw, 0.9375rem);
  --text-base: clamp(1rem, 0.97rem + 0.2vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1.05rem + 0.4vw, 1.375rem);
  --text-xl: clamp(1.5rem, 1.3rem + 1vw, 2.125rem);
  --text-2xl: clamp(2rem, 1.6rem + 2.2vw, 3.25rem);
  --text-hero: clamp(2.15rem, 1.7rem + 2.3vw, 3.5rem);

  /* Color */
  --bone: #FBF7F1;
  --paper: #FFFFFF;
  --sand: #F2E9DC;
  --border: #E4D8C7;
  --border-strong: #CFBEA6;
  --ink: #191411;
  --ink-2: #3D332C;
  --muted: #6E6055;
  --orange: #E8701A;
  --orange-dk: #C25A0F;
  --gold: #F8B517;
  --deep: #241C16;
  --deep-2: #34281F;
  --green: #2F6B3C;
  --green-bg: #EAF3EB;

  /* Space */
  --s1: 0.25rem;
  --s2: 0.5rem;
  --s3: 0.75rem;
  --s4: 1rem;
  --s5: 1.5rem;
  --s6: 2rem;
  --s7: 3rem;
  --s8: 4rem;
  --s9: 6rem;
  --s10: 8rem;

  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(25, 20, 17, .06), 0 2px 8px rgba(25, 20, 17, .05);
  --shadow: 0 2px 4px rgba(25, 20, 17, .06), 0 12px 32px rgba(25, 20, 17, .09);
  --shadow-lg: 0 4px 8px rgba(25, 20, 17, .07), 0 24px 60px rgba(25, 20, 17, .14);

  --wrap: 1180px;
  --wrap-narrow: 780px;
  --section-y: clamp(3.5rem, 7vw, 7rem);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.12; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-family: var(--font-display); font-weight: 700; font-size: var(--text-2xl); }
h2 { font-family: var(--font-display); font-weight: 700; font-size: var(--text-xl); }
h3 { font-family: var(--font-body); font-weight: 600; font-size: var(--text-lg); line-height: 1.25; letter-spacing: -0.01em; }
h4 { font-family: var(--font-body); font-weight: 600; font-size: var(--text-base); }
p { text-wrap: pretty; }

a { color: var(--orange-dk); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

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

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.wrap--narrow { max-width: var(--wrap-narrow); }
.section { padding-block: var(--section-y); }
.section--sand { background: var(--sand); }
.section--paper { background: var(--paper); }
.section--deep { background: var(--deep); color: #E9E0D6; }
.section--deep h2, .section--deep h3, .section--deep h4 { color: #FFF; }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

.eyebrow {
  font-size: var(--text-xs); font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--orange-dk); margin-bottom: var(--s3);
}
.section--deep .eyebrow { color: var(--gold); }
.lede { font-size: var(--text-lg); line-height: 1.5; color: var(--ink-2); max-width: 62ch; }
.section--deep .lede { color: #D8CCBF; }
.muted { color: var(--muted); }
.small { font-size: var(--text-sm); }
.xs { font-size: var(--text-xs); }
.center { text-align: center; }
.mt-2 { margin-top: var(--s2); } .mt-3 { margin-top: var(--s3); } .mt-4 { margin-top: var(--s4); }
.mt-5 { margin-top: var(--s5); } .mt-6 { margin-top: var(--s6); } .mt-7 { margin-top: var(--s7); }
.mb-4 { margin-bottom: var(--s4); } .mb-5 { margin-bottom: var(--s5); } .mb-6 { margin-bottom: var(--s6); }

.grid { display: grid; gap: clamp(1rem, 2.5vw, 2rem); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.split { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split--wide-left { grid-template-columns: 1.15fr .85fr; } }

/* ---------- Buttons ---------- */
.btn {
  white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--font-body); font-size: var(--text-sm); font-weight: 600; line-height: 1;
  padding: 0.95em 1.5em; border-radius: var(--radius); border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer; text-align: center;
  transition: transform .18s cubic-bezier(.16,1,.3,1), background-color .18s, border-color .18s, box-shadow .18s, color .18s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--orange); color: #fff; box-shadow: 0 2px 0 var(--orange-dk); }
.btn--primary:hover { background: var(--orange-dk); color: #fff; }
.btn--gold { background: var(--gold); color: #2A1F08; box-shadow: 0 2px 0 #C88E06; }
.btn--gold:hover { background: #E8A70C; color: #2A1F08; }
.btn--ghost { border-color: var(--border-strong); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); background: rgba(25,20,17,.04); color: var(--ink); }
.btn--onDark { border-color: rgba(255,255,255,.45); color: #fff; background: rgba(255,255,255,.06); }
.btn--onDark:hover { background: rgba(255,255,255,.16); border-color: #fff; color: #fff; }
.btn--lg { font-size: var(--text-base); padding: 1.05em 1.9em; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s3); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(251, 247, 241, .92);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}
.header__bar { display: flex; align-items: center; gap: var(--s4); min-height: 68px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; margin-right: auto; flex-shrink: 0; }
.brand__mark { width: 38px; height: 38px; flex-shrink: 0; }
.brand__txt { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; color: var(--ink); letter-spacing: -.01em; }
.brand__sub { font-size: .625rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.nav { display: none; align-items: center; gap: clamp(.4rem, 1.2vw, 1.1rem); }
@media (min-width: 1024px) { .nav { display: flex; } }
.nav a {
  font-size: var(--text-sm); font-weight: 500; color: var(--ink-2); text-decoration: none;
  padding: .45rem .1rem; border-bottom: 2px solid transparent; white-space: nowrap;
}
.nav a:hover { color: var(--orange-dk); border-bottom-color: var(--orange); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--orange); font-weight: 600; }
.header__cta { display: none; }
@media (min-width: 620px) { .header__cta { display: inline-flex; } }

.hamburger {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: none; border: 1.5px solid var(--border-strong); border-radius: 8px;
  width: auto; padding: .5rem .7rem; cursor: pointer; color: var(--ink);
  font-family: var(--font-body); font-size: var(--text-xs); font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}
@media (min-width: 1024px) { .hamburger { display: none; } }
.hamburger svg { width: 18px; height: 18px; }

.mobilenav { display: none; border-top: 1px solid var(--border); padding: var(--s3) 0 var(--s5); }
.mobilenav.is-open { display: block; }
@media (min-width: 1024px) { .mobilenav, .mobilenav.is-open { display: none; } }
.mobilenav a {
  display: block; padding: .8rem .25rem; font-size: var(--text-base); font-weight: 500;
  color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--border);
}
.mobilenav a[aria-current="page"] { color: var(--orange-dk); font-weight: 600; }

/* announcement strip */
.strip {
  background: var(--deep); color: #F0E6DA; font-size: var(--text-xs); font-weight: 500;
  letter-spacing: .01em; padding: .55rem 0;
}
.strip__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .4rem 1.4rem; text-align: center; }
@media (max-width: 860px) { .strip__hours { display: none; } }
@media (max-width: 620px) { .strip { font-size: .6875rem; } }
.strip a { color: var(--gold); font-weight: 600; text-decoration: none; }
.strip a:hover { color: #fff; text-decoration: underline; }
.strip__dot { width: 6px; height: 6px; border-radius: 50%; background: #57C46A; flex-shrink: 0; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--deep); overflow: hidden; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  object-position: 50% 72%; opacity: .7; }
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(175deg, rgba(20,15,12,.86) 0%, rgba(20,15,12,.6) 45%, rgba(20,15,12,.55) 68%, rgba(20,15,12,.92) 100%);
}
.hero__body { position: relative; z-index: 2; padding-block: clamp(3.25rem, 8vw, 6.5rem); max-width: 50rem; }
.hero h1 { color: #fff; font-size: var(--text-hero); letter-spacing: -.025em; }
.hero__sub { color: #EADFD2; font-size: var(--text-lg); margin-top: var(--s5); max-width: 38rem; }
.hero__badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: var(--s5); }
.hero .btn-row { margin-top: var(--s6); }
.hero__foot {
  position: relative; z-index: 2; border-top: 1px solid rgba(255,255,255,.16);
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px 0;
}
@media (min-width: 760px) { .hero__foot { grid-template-columns: repeat(4, 1fr); } }
.hero__stat { padding: var(--s5) var(--s4) var(--s5) 0; }
.hero__stat b { display: block; font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--gold); line-height: 1.1; }
.hero__stat span { font-size: var(--text-xs); color: #CBBEAF; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; }

.pill {
  display: inline-flex; align-items: center; gap: .4em;
  font-size: var(--text-xs); font-weight: 600; letter-spacing: .04em;
  padding: .4em .8em; border-radius: 100px; border: 1px solid var(--border-strong);
  background: var(--paper); color: var(--ink-2);
}
.pill--onDark { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.28); color: #F3EAE0; }
.pill--gold { background: rgba(248,181,23,.15); border-color: rgba(248,181,23,.5); color: var(--gold); }
.pill--green { background: var(--green-bg); border-color: #BEDCC4; color: var(--green); }

/* page header (interior pages) */
.pagehead { background: var(--deep); color: #E9E0D6; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.pagehead h1 { color: #fff; font-size: var(--text-2xl); max-width: 30ch; }
.pagehead p { color: #CDBFB1; margin-top: var(--s4); max-width: 58ch; font-size: var(--text-lg); line-height: 1.5; }
.crumbs { font-size: var(--text-xs); color: #A99A8B; margin-bottom: var(--s4); letter-spacing: .04em; }
.crumbs a { color: #CDBFB1; text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }

/* ---------- Cards ---------- */
.card {
  background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 2.5vw, 1.85rem); box-shadow: var(--shadow-sm);
}
.card--flat { box-shadow: none; }
.card--pad-lg { padding: clamp(1.5rem, 3.5vw, 2.5rem); }
a.card { text-decoration: none; color: inherit; display: block; transition: transform .2s cubic-bezier(.16,1,.3,1), box-shadow .2s, border-color .2s; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--border-strong); color: inherit; }

/* rate card */
.rate {
  background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.rate__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--sand); }
.rate__media img { width: 100%; height: 100%; object-fit: cover; }
.rate__body { padding: clamp(1.25rem, 2.5vw, 1.75rem); display: flex; flex-direction: column; flex: 1; }
.rate__name { font-family: var(--font-display); font-weight: 700; font-size: 1.32rem; color: var(--ink); }
.rate__meta { font-size: var(--text-sm); color: var(--muted); margin-top: .2rem; }
.rate__prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin: var(--s5) 0 var(--s4); }
.rate__price { background: var(--bone); border: 1px solid var(--border); border-radius: 8px; padding: .7rem .5rem; text-align: center; }
.rate__price b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--ink); line-height: 1.15; }
.rate__price span { font-size: .6875rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.rate__price--best { background: rgba(248,181,23,.14); border-color: rgba(248,181,23,.55); }
.rate ul { list-style: none; padding: 0; margin: 0 0 var(--s5); font-size: var(--text-sm); }
.rate ul li { padding-left: 1.5rem; position: relative; margin-bottom: .4rem; color: var(--ink-2); }
.rate ul li::before {
  content: ''; position: absolute; left: 0; top: .48em; width: 13px; height: 7px;
  border-left: 2px solid var(--green); border-bottom: 2px solid var(--green);
  transform: rotate(-45deg);
}
.rate .btn { margin-top: auto; }

/* table */
.tablewrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--paper); }
table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); min-width: 540px; }
caption { text-align: left; padding: var(--s4) var(--s5) 0; font-weight: 600; color: var(--ink); font-size: var(--text-base); }
th, td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
thead th {
  font-size: var(--text-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  font-weight: 700; background: var(--bone); white-space: nowrap;
}
tbody tr:last-child td { border-bottom: none; }
td b { color: var(--ink); }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
th.num { text-align: right; }

/* steps */
.steps { counter-reset: step; display: grid; gap: var(--s5); }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--s6) var(--s5) var(--s5); }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -18px; left: var(--s5);
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--orange); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
  display: grid; place-items: center; box-shadow: 0 2px 0 var(--orange-dk);
}
.step h3 { margin-bottom: var(--s2); }
.step p { font-size: var(--text-sm); color: var(--muted); }
.step .btn { margin-top: var(--s4); }
.section--deep .step { background: var(--deep-2); border-color: rgba(255,255,255,.14); }
.section--deep .step p { color: #C6B8AA; }

/* amenity list */
.amenities { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem 1.5rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.amenities li { position: relative; padding-left: 1.6rem; font-size: var(--text-sm); }
.amenities li::before {
  content: ''; position: absolute; left: 0; top: .5em; width: 13px; height: 7px;
  border-left: 2px solid var(--orange); border-bottom: 2px solid var(--orange); transform: rotate(-45deg);
}
.section--deep .amenities li::before { border-color: var(--gold); }

/* figure / gallery */
figure { margin: 0; }
figure img { border-radius: var(--radius-lg); width: 100%; }
figcaption { font-size: var(--text-xs); color: var(--muted); margin-top: var(--s3); }
.gal { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.gal figure { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--sand); }
/* Every tile gets the SAME explicit height, so a .wide figure (2 columns) is simply
   twice as wide rather than taller. Deriving height from the image aspect ratio left
   blank strips under the narrow tiles when the row stretched to the wide one. */
.gal figure { height: clamp(190px, 21vw, 290px); }
.gal img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover;
  display: block; border-radius: var(--radius);
  transition: transform .5s cubic-bezier(.16,1,.3,1); }
.gal figure:hover img { transform: scale(1.04); }
.gal figcaption {
  position: absolute; inset: auto 0 0 0; margin: 0; padding: 1.6rem .8rem .7rem;
  background: linear-gradient(transparent, rgba(20,15,12,.82)); color: #fff; font-weight: 500;
}
.gal .wide { grid-column: span 2; }
@media (max-width: 560px) { .gal .wide { grid-column: span 1; } }

/* callout / notice */
.notice {
  border-left: 4px solid var(--orange); background: var(--paper); border-radius: 0 var(--radius) var(--radius) 0;
  padding: var(--s5); border-top: 1px solid var(--border); border-right: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.notice--gold { border-left-color: var(--gold); background: #FFFBF0; }
.notice--green { border-left-color: var(--green); background: var(--green-bg); }
.notice h3, .notice h4 { margin-bottom: var(--s2); }
.notice p + p { margin-top: var(--s3); }

/* FAQ */
details {
  background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 0; margin-bottom: .6rem;
}
details[open] { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
summary {
  cursor: pointer; padding: 1.05rem 3rem 1.05rem 1.25rem; font-weight: 600; color: var(--ink);
  list-style: none; position: relative; font-size: var(--text-base);
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ''; position: absolute; right: 1.25rem; top: 1.45rem; width: 9px; height: 9px;
  border-right: 2px solid var(--orange); border-bottom: 2px solid var(--orange);
  transform: rotate(45deg); transition: transform .2s;
}
details[open] summary::after { transform: rotate(-135deg); }
.faq__a { padding: 0 1.25rem 1.25rem; font-size: var(--text-sm); color: var(--ink-2); }
.faq__a p + p { margin-top: var(--s3); }

/* prose (legal pages) */
.prose { max-width: 72ch; }
.prose h2 { font-size: var(--text-lg); font-family: var(--font-body); font-weight: 700; margin-top: var(--s7); margin-bottom: var(--s3); }
.prose h3 { font-size: var(--text-base); font-weight: 700; margin-top: var(--s5); margin-bottom: var(--s2); }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol { margin-bottom: var(--s4); font-size: var(--text-base); }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li { margin-bottom: .4rem; }
.prose strong { color: var(--ink); }
.toc { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--s5); }
.toc ol { margin: 0; padding-left: 1.2rem; font-size: var(--text-sm); }
.toc li { margin-bottom: .3rem; }

/* dl info */
.dl { display: grid; gap: 0; margin: 0; }
.dl > div { display: grid; grid-template-columns: 1fr; gap: .1rem; padding: .85rem 0; border-bottom: 1px solid var(--border); }
@media (min-width: 560px) { .dl > div { grid-template-columns: 12rem 1fr; gap: 1rem; align-items: baseline; } }
.dl dt { font-size: var(--text-sm); font-weight: 600; color: var(--muted); }
.dl dd { margin: 0; color: var(--ink-2); }
.dl dd b { color: var(--ink); }

/* review */
.quote { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--s6); }
.quote blockquote { margin: 0; font-size: var(--text-lg); line-height: 1.5; color: var(--ink); font-family: var(--font-display); font-weight: 400; }
.quote cite { display: block; margin-top: var(--s4); font-size: var(--text-sm); font-style: normal; color: var(--muted); }

/* ---------- Footer ---------- */
.footer { background: var(--deep); color: #BDAE9F; padding-block: var(--s8) var(--s6); font-size: var(--text-sm); }
.footer__grid { display: grid; gap: var(--s6); grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.footer h4 { color: #fff; font-size: var(--text-xs); letter-spacing: .12em; text-transform: uppercase; margin-bottom: var(--s4); font-weight: 700; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: .55rem; }
.footer a { color: #D3C6B8; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__brand img { width: 190px; margin-bottom: var(--s4); }
.footer__policy {
  margin-top: clamp(2.5rem, 5vw, 3.75rem);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, .26);
}
.footer__policy p {
  display: flex;
  gap: var(--space-4);
  align-items: baseline;
  flex-wrap: wrap;
  font-size: var(--text-sm);
  line-height: 1.7;
  max-width: 100ch;
}
.footer__policy-link {
  flex: none;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.footer__policy span { opacity: .82; }
@media (max-width: 620px) {
  .footer__policy p { gap: var(--space-2); }
}

.footer__policy {
  margin-top: clamp(2.5rem, 5vw, 3.75rem);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, .26);
}
.footer__policy p {
  display: flex;
  gap: var(--space-4);
  align-items: baseline;
  flex-wrap: wrap;
  font-size: var(--text-sm);
  line-height: 1.7;
  max-width: 100ch;
}
.footer__policy-link {
  flex: none;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.footer__policy span { opacity: .82; }
@media (max-width: 620px) {
  .footer__policy p { gap: var(--space-2); }
}

.footer__legal {
  margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid rgba(255,255,255,.14);
  display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between; align-items: center;
  font-size: var(--text-xs); color: #9C8E80;
}
.footer__legal nav { display: flex; flex-wrap: wrap; gap: .6rem 1.25rem; }

/* sticky mobile action bar */
.actionbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 70;
  display: grid; grid-template-columns: 1fr 1fr; gap: .5rem;
  padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom));
  background: rgba(251,247,241,.96); backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
}
.actionbar .btn { padding: .85em 1em; }
@media (min-width: 620px) { .actionbar { display: none; } }
@media (max-width: 619px) { body { padding-bottom: 4.75rem; } }

.skiplink {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: .75rem 1.25rem; border-radius: 0 0 8px 0; font-size: var(--text-sm);
}
.skiplink:focus { left: 0; color: #fff; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* items awaiting owner confirmation (preview only — remove before launch) */
.todo {
  display: inline-block; background: #FFF3CD; border: 1px dashed #C9A227; color: #6B4E00;
  font-size: var(--text-xs); font-weight: 600; padding: .1em .5em; border-radius: 4px;
}

/* ghost buttons sitting on the dark section must invert */
.section--deep .btn--ghost,
.pagehead .btn--ghost,
.hero .btn--ghost {
  border-color: rgba(255,255,255,.45); color: #fff; background: rgba(255,255,255,.06);
}
.section--deep .btn--ghost:hover,
.pagehead .btn--ghost:hover,
.hero .btn--ghost:hover { background: rgba(255,255,255,.18); border-color: #fff; color: #fff; }

/* ---- responsive tables: stack into labelled rows on small screens ---- */
@media (max-width: 720px) {
  .tablewrap { overflow-x: visible; border: 0; background: none; border-radius: 0; }
  .tablewrap table {
    min-width: 0; width: 100%; max-width: 100%; table-layout: fixed;
    border-collapse: separate; border-spacing: 0 0.75rem; font-size: var(--text-sm);
  }
  /* header text is carried into each cell via data-label, so the row can be removed
     outright — visually-hidden thead cannot be clipped reliably (table-header-group
     ignores overflow) and its nowrap text forces the table wider than the viewport */
  .tablewrap thead { display: none; }
  .tablewrap caption { max-width: 100%; }
  .tablewrap tbody td, .tablewrap tbody th { overflow-wrap: anywhere; }
  .tablewrap tbody td code { overflow-wrap: break-word; }
  .tablewrap caption {
    display: block; text-align: left; padding: 0 0 .6rem; font-weight: 600;
    color: var(--ink); font-size: var(--text-sm);
  }
  .tablewrap tbody tr {
    display: block; background: var(--paper); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: .35rem .95rem .8rem; box-shadow: var(--shadow-sm);
  }
  /* Default stacked cell: label on its own line above the value. Block (not flex) is
     deliberate -- a flex td turns every inline child (<code>, <a>, <strong>) into its own
     flex item, which shreds prose cells into columns. Only .num cells, which hold short
     numeric strings, use the two-column treatment. */
  .tablewrap tbody td {
    display: block; width: auto; padding: .45rem 0; border: 0;
    border-bottom: 1px solid var(--border-soft); text-align: left; white-space: normal;
  }
  .tablewrap tbody td.num {
    display: flex; gap: 1rem; align-items: baseline; justify-content: space-between;
    text-align: right;
  }
  .tablewrap tbody td:last-child { border-bottom: 0; }
  .tablewrap tbody td::before {
    content: attr(data-label); display: block; margin-bottom: .15rem;
    font-size: .6875rem; letter-spacing: .06em; text-transform: uppercase;
    font-weight: 600; color: var(--muted); text-align: left;
  }
  .tablewrap tbody td.num::before { display: inline; flex: 0 0 auto; max-width: 48%; margin: 0; }
  .tablewrap tbody td:not([data-label])::before { content: none; }
  .tablewrap tbody td.num { text-align: right; }
  /* first cell of each stacked row reads as the card title */
  .tablewrap tbody td:first-child {
    display: block; text-align: left; font-size: var(--text-base);
    padding-top: .55rem; padding-bottom: .55rem;
  }
  .tablewrap tbody td:first-child::before { display: block; margin-bottom: .15rem; }
}
