/* =================================================================
   Brody Preston — Investing in Texas
   Shared stylesheet. See DESIGN-SYSTEM.md for the full rationale.
   ================================================================= */

/* ----- Design tokens ------------------------------------------- */
:root {
  /* Palette — canonical tokens (single source of truth: "Brand kit.html" / DESIGN-SYSTEM.md §2) */
  --espresso: #241C13;   /* text & depth */
  --field: #434C36;      /* anchor / structure: dark sections, secondary buttons */
  --walnut: #5A4A37;     /* warm secondary text */
  --sage: #8B9376;       /* supporting / muted */
  --limestone: #E2DAC8;  /* dividers / surfaces */
  --caliche: #F4EFE3;    /* paper / page background — never pure white */
  --bottle: #586A3C;     /* the single accent: primary buttons, links, key marks */
  --bone: #F7F2E7;       /* light logo/text on dark backgrounds; also raised surfaces */

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;

  /* Layout */
  --maxw: 1120px;
  --maxw-narrow: 760px;
  --radius: 14px;
  --radius-sm: 8px;

  /* Misc */
  --shadow-soft: 0 1px 2px rgba(36, 28, 19, 0.06), 0 8px 24px rgba(36, 28, 19, 0.06);
  --border-hair: 1px solid var(--limestone);
}

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

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

body {
  margin: 0;
  background-color: var(--caliche);
  color: var(--espresso);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--bottle);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--field);
  text-decoration: underline;
}

/* ----- Typography ---------------------------------------------- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--espresso);
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 var(--space-4);
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  letter-spacing: -0.03em;
  font-weight: 600;
}

h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  font-weight: 600;
}

p {
  margin: 0 0 var(--space-4);
}

.lead {
  font-size: 1.2rem;
  color: var(--walnut);
  line-height: 1.6;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bottle);
  margin: 0 0 var(--space-3);
}

.muted {
  color: var(--sage);
}

.accent-dot {
  color: var(--bottle);
}

/* ----- Layout helpers ------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

.container-narrow {
  max-width: var(--maxw-narrow);
}

/* Consistent vertical rhythm on every section, every page (responsive). */
.section {
  padding-block: clamp(56px, 9vw, 96px);
}

/* 1px limestone hairline between every stacked top-level section — a legible
   backstop in addition to the alternating backgrounds. */
main > section + section,
main > article > section + section {
  border-top: 1px solid var(--limestone);
}

.section-tight {
  padding-block: var(--space-8);
}

.section-divider {
  border-top: var(--border-hair);
}

/* Explicit section backgrounds. Adjacent sections must never share one; every
   page carries at least one --field anchor band. --bottle is never a section
   background (accents only). A 1px limestone hairline backstops each boundary
   (see `main > section + section`). */
.bg-caliche {
  background-color: var(--caliche);
}

.bg-limestone {
  background-color: var(--limestone);
}

.bg-field {
  background-color: var(--field);
  color: var(--bone);
}

.bg-field h1,
.bg-field h2,
.bg-field h3,
.bg-field h4 {
  color: var(--bone);
}

.bg-field p {
  color: var(--bone);
}

.bg-field a {
  color: var(--bone);
  text-decoration: underline;
}

.bg-field .eyebrow,
.bg-field .answer-label {
  color: var(--bone);
}

/* The "short answer" rendered inside a field anchor band. */
.bg-field .answer-block {
  background-color: transparent;
  border: none;
  border-left: 3px solid var(--bone);
  border-radius: 0;
  padding: 0 0 0 var(--space-5);
}

.bg-field .answer-block p {
  margin-bottom: 0;
}

/* Cards keep their own light surface + dark text even inside a field band. */
.bg-field .card,
.bg-field .callout,
.bg-field .email-capture {
  color: var(--espresso);
}

.bg-field .card h2,
.bg-field .card h3,
.bg-field .callout h2,
.bg-field .callout h3,
.bg-field .email-capture h2,
.bg-field .email-capture h3 {
  color: var(--espresso);
}

.bg-field .card p,
.bg-field .callout p,
.bg-field .email-capture p {
  color: var(--walnut);
}

.bg-field .email-capture .eyebrow {
  color: var(--bottle);
}


.center {
  text-align: center;
}

.stack > * + * {
  margin-top: var(--space-4);
}

/* ----- Buttons ------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background-color: var(--bottle);
  color: var(--caliche);
  border-color: var(--bottle);
  /* Pronounced layered depth so primary CTAs pop off the page. */
  box-shadow: 0 18px 40px -12px rgba(36, 28, 19, 0.45), 0 6px 14px -8px rgba(36, 28, 19, 0.35);
}

.btn-primary:hover {
  background-color: var(--field);
  border-color: var(--field);
  color: var(--caliche);
  box-shadow: 0 24px 52px -12px rgba(36, 28, 19, 0.55), 0 10px 20px -8px rgba(36, 28, 19, 0.42);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--field);
  border-color: var(--field);
}

.btn-secondary:hover {
  background-color: var(--field);
  color: var(--caliche);
}

/* On dark sections, invert the secondary button */
.on-dark .btn-secondary {
  color: var(--caliche);
  border-color: var(--caliche);
}

.on-dark .btn-secondary:hover {
  background-color: var(--caliche);
  color: var(--field);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* ----- Focus states (accessibility) --------------------------- */
a:focus-visible,
.btn:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.nav-link:focus-visible {
  outline: 3px solid var(--bottle);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--bottle);
  color: var(--caliche);
  padding: var(--space-3) var(--space-4);
  z-index: 100;
}

.skip-link:focus {
  left: var(--space-3);
  top: var(--space-3);
}

/* ----- Header / nav -------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--caliche);
  border-bottom: var(--border-hair);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-3);
}

.brand {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  line-height: 1.05;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

/* Logo mark locked up to the left of the wordmark. Height is ~1.9x the wordmark
   font-size; the width/height attributes on the <img> reserve space so there's
   no layout shift before the SVG loads. */
.brand-mark {
  height: 42px;
  width: auto;
  flex-shrink: 0;
}

@media (max-width: 860px) {
  .brand-mark {
    height: 36px;
  }
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--espresso);
}

.brand-tag {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
  margin-top: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--espresso);
}

.nav-link:hover {
  color: var(--bottle);
  text-decoration: none;
}

.nav-link[aria-current="page"] {
  color: var(--bottle);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  color: var(--espresso);
}

.nav-toggle svg {
  width: 26px;
  height: 26px;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background-color: var(--caliche);
    border-bottom: var(--border-hair);
    padding: var(--space-4) var(--space-5) var(--space-5);
    box-shadow: var(--shadow-soft);
    display: none;
  }

  .nav.is-open {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-link {
    padding-block: var(--space-3);
    border-bottom: var(--border-hair);
  }

  .nav .btn {
    margin-top: var(--space-4);
  }
}

/* ----- Hero ---------------------------------------------------- */
.hero {
  padding-block: clamp(var(--space-8), 9vw, var(--space-9));
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-8);
  align-items: center;
}

.hero-headline {
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 600;
  text-wrap: balance;
  margin-bottom: var(--space-5);
}

.hero-bridge {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--field);
  margin-bottom: var(--space-4);
}

.hero-para {
  font-size: 1.1rem;
  color: var(--walnut);
  max-width: 46ch;
  margin-bottom: var(--space-6);
}

.hero-media {
  align-self: stretch;
}

.hero-media picture {
  display: block;
  height: 100%;
}

.hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .hero-media img {
    height: auto;
    aspect-ratio: 4 / 5;
  }
}

/* ----- Image placeholders -------------------------------------- */
.img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: var(--limestone);
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 14px,
    rgba(67, 76, 54, 0.05) 14px,
    rgba(67, 76, 54, 0.05) 28px
  );
  border: 1px dashed var(--sage);
  border-radius: var(--radius);
  color: var(--field);
  font-size: 0.85rem;
  font-weight: 500;
  padding: var(--space-5);
  min-height: 280px;
  aspect-ratio: 4 / 5;
}

.img-placeholder.wide {
  aspect-ratio: 16 / 9;
  min-height: 0;
}

.img-placeholder.short {
  aspect-ratio: 16 / 7;
  min-height: 0;
}

/* ----- Cards / grids ------------------------------------------- */
.grid {
  display: grid;
  gap: var(--space-5);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

/* ----- About: photo + bio -------------------------------------- */
.about-grid {
  grid-template-columns: 0.45fr 0.55fr;
  gap: var(--space-7);
  align-items: start;
}

.bio-media picture {
  display: block;
}

.bio-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.about-grid .prose p {
  line-height: 1.75;
  margin-bottom: var(--space-4);
}

@media (max-width: 860px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  /* On mobile, text leads and the portrait follows it. */
  .about-grid .bio-media {
    order: 2;
  }
}

.card {
  background-color: var(--bone);
  border: var(--border-hair);
  border-radius: var(--radius);
  padding: var(--space-6);
  /* Soft medium shadow for depth. */
  box-shadow: 0 14px 30px -16px rgba(36, 28, 19, 0.30);
  display: flex;
  flex-direction: column;
}

.card h3 {
  margin-bottom: var(--space-2);
}

.card-link {
  font-weight: 500;
  margin-top: auto;
  padding-top: var(--space-4);
}

.card-num {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--bottle);
  margin-bottom: var(--space-3);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--limestone);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  color: var(--bottle);
}

.card-icon svg {
  width: 22px;
  height: 22px;
}

/* ----- Section headers ----------------------------------------- */
.section-head {
  max-width: 60ch;
  margin-bottom: var(--space-7);
}

.section-head.center {
  margin-inline: auto;
}

/* ----- Dark sections ------------------------------------------- */
.on-dark {
  background-color: var(--field);
  color: var(--caliche);
}

.on-dark h1,
.on-dark h2,
.on-dark h3 {
  color: var(--caliche);
}

.on-dark .eyebrow {
  color: var(--sage);
}

.on-dark p {
  color: var(--limestone);
}

.on-dark a {
  color: var(--caliche);
  text-decoration: underline;
}

/* ----- Trust / steps ------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  counter-reset: step;
}

.steps.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Steps collapse gracefully. The `.steps.cols-4` selector (0,2,0) outranks a
   bare `.steps` (0,1,0), so the responsive rules must also name `.cols-4` to
   win — otherwise the 4-up grid stayed 4 columns on phones and slivered. */
@media (max-width: 900px) {
  .steps,
  .steps.cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .steps,
  .steps.cols-4 {
    grid-template-columns: 1fr;
  }
}

.step {
  border-top: 2px solid var(--bottle);
  padding-top: var(--space-4);
}

.step h3 {
  margin-bottom: var(--space-2);
}

/* ----- YouTube / education strip ------------------------------- */
.video-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

@media (max-width: 860px) {
  .video-strip {
    grid-template-columns: 1fr;
  }
}

.video-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: var(--border-hair);
  background-color: var(--bone);
}

.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
}

.video-thumb .play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background-color: var(--bottle);
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-thumb .play svg {
  width: 22px;
  height: 22px;
  color: var(--caliche);
}

.video-meta {
  padding: var(--space-4) var(--space-5) var(--space-5);
}

.video-meta h3 {
  font-size: 1.1rem;
  margin-bottom: var(--space-1);
}

/* ----- CTA band ------------------------------------------------ */
/* Closing emphasis band — the one feature band per page. Field-olive, not the
   bottle accent (bottle is reserved for small accents: eyebrows, rules, buttons).
   Centered text is the single allowed centered block. */
.cta-band {
  background-color: var(--field);
  color: var(--caliche);
  border-radius: var(--radius);
  padding: clamp(var(--space-6), 5vw, var(--space-8));
  text-align: center;
  /* Deep ambient shadow so the closing band reads as a raised slab. */
  box-shadow: 0 30px 60px -20px rgba(36, 28, 19, 0.50);
}

.cta-band h2 {
  color: var(--caliche);
}

.cta-band p {
  color: var(--caliche);
  opacity: 0.92;
  max-width: 52ch;
  margin-inline: auto;
}

.cta-band .btn-row {
  justify-content: center;
  margin-top: var(--space-5);
}

.cta-band .btn-primary {
  background-color: var(--caliche);
  color: var(--field);
  border-color: var(--caliche);
}

.cta-band .btn-primary:hover {
  background-color: var(--bone);
  border-color: var(--bone);
  color: var(--field);
}

.cta-band .btn-secondary {
  color: var(--caliche);
  border-color: var(--caliche);
}

.cta-band .btn-secondary:hover {
  background-color: var(--caliche);
  color: var(--field);
}

/* ----- Disclaimer / callout ------------------------------------ */
.callout {
  border: var(--border-hair);
  border-left: 4px solid var(--bottle);
  background-color: var(--bone);
  border-radius: var(--radius-sm);
  padding: var(--space-5);
  /* Soft medium shadow for depth. */
  box-shadow: 0 14px 30px -16px rgba(36, 28, 19, 0.30);
}

.callout.prominent {
  border-left-width: 6px;
  background-color: var(--limestone);
}

.callout h3 {
  font-size: 1.1rem;
  margin-bottom: var(--space-2);
}

.callout p:last-child {
  margin-bottom: 0;
}

/* ----- Forms --------------------------------------------------- */
.form-wrap {
  background-color: var(--bone);
  border: var(--border-hair);
  border-radius: var(--radius);
  padding: clamp(var(--space-5), 4vw, var(--space-7));
  box-shadow: var(--shadow-soft);
}

.field {
  margin-bottom: var(--space-4);
}

.field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: var(--space-2);
  color: var(--espresso);
}

.field .req {
  color: var(--bottle);
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--espresso);
  background-color: var(--caliche);
  border: var(--border-hair);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.85rem;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

/* Honeypot — visually hidden but reachable for bots */
.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.form-note {
  font-size: 0.85rem;
  color: var(--sage);
}

/* Inline email-capture block */
.email-capture {
  background-color: var(--bone);
  border: var(--border-hair);
  border-radius: var(--radius);
  padding: clamp(var(--space-5), 4vw, var(--space-7));
}

.email-capture form {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.email-capture input[type="email"] {
  flex: 1 1 240px;
}

@media (max-width: 540px) {
  .email-capture form {
    flex-direction: column;
  }
}

/* ----- Prose (article / long-form) ----------------------------- */
.prose {
  max-width: 68ch;
}

.prose h2 {
  margin-top: var(--space-7);
}

.prose h3 {
  margin-top: var(--space-5);
}

.prose ul,
.prose ol {
  padding-left: 1.4em;
  margin-bottom: var(--space-4);
}

.prose li {
  margin-bottom: var(--space-2);
}

.prose blockquote {
  margin: var(--space-5) 0;
  padding-left: var(--space-4);
  border-left: 3px solid var(--bottle);
  color: var(--walnut);
  font-style: italic;
}

/* ----- Tags / badges ------------------------------------------- */
.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bottle);
  background-color: var(--limestone);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
}

.placeholder-flag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--walnut);
  background-color: var(--limestone);
  border: 1px dashed var(--sage);
  border-radius: 4px;
  padding: 0.1rem 0.45rem;
}

/* ----- Page intro header --------------------------------------- */
.page-intro {
  padding-block: clamp(40px, 7vw, 64px) clamp(28px, 5vw, 48px);
  border-bottom: var(--border-hair);
}

.page-intro .lead {
  max-width: 60ch;
}

/* ----- Footer -------------------------------------------------- */
.site-footer {
  background-color: var(--espresso);
  color: var(--limestone);
  padding-block: var(--space-8) var(--space-6);
  margin-top: var(--space-9);
}

.site-footer a {
  color: var(--limestone);
}

.site-footer a:hover {
  color: var(--caliche);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-7);
  padding-bottom: var(--space-7);
  border-bottom: 1px solid rgba(226, 218, 200, 0.18);
}

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}

.footer-brand .wordmark {
  color: var(--caliche);
}

/* Footer brand lockup — mark + wordmark on the dark footer (uses the bone mark). */
.footer-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.footer-brand .brand-tag {
  color: var(--sage);
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: var(--space-4);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: var(--space-2);
}

.footer-compliance {
  padding-top: var(--space-6);
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--sage);
}

.footer-compliance p {
  margin-bottom: var(--space-3);
}

.footer-compliance .disclaimer {
  color: var(--limestone);
}

.footer-updated {
  font-size: 0.8rem;
  color: var(--sage);
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
  margin-bottom: var(--space-4);
}

.eho-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.8rem;
  color: var(--limestone);
}

.eho-badge svg {
  width: 26px;
  height: 26px;
  color: var(--limestone);
}

/* ----- Breadcrumbs (interior pages) ---------------------------- */
.breadcrumb {
  font-size: 0.85rem;
  margin-bottom: var(--space-4);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--sage);
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  color: var(--sage);
}

.breadcrumb a {
  color: var(--walnut);
}

.breadcrumb [aria-current="page"] {
  color: var(--sage);
}

/* ----- Direct-answer / TL;DR block (AEO) ----------------------- */
/* The quotable, extractable answer that opens strategy pages and articles. */
.answer-block {
  background-color: var(--bone);
  border: var(--border-hair);
  border-left: 4px solid var(--bottle);
  border-radius: var(--radius-sm);
  padding: var(--space-5);
  margin-bottom: var(--space-6);
  /* Left-aligned to the content column, readable measure — never a narrow
     centered card floating mid-page. */
  max-width: 72ch;
}

.answer-block .answer-label {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bottle);
  margin-bottom: var(--space-2);
}

.answer-block p:last-child {
  margin-bottom: 0;
}

/* ----- FAQ (wired to FAQPage JSON-LD) -------------------------- */
.faq {
  max-width: 68ch;
}

.faq-item {
  padding-block: var(--space-5);
  border-top: var(--border-hair);
}

.faq-item:last-child {
  border-bottom: var(--border-hair);
}

.faq-item h3 {
  margin-bottom: var(--space-2);
}

.faq-item p:last-child {
  margin-bottom: 0;
}

/* ----- Article byline / meta ----------------------------------- */
.article-meta {
  color: var(--sage);
  font-size: 0.9rem;
  margin-bottom: 0;
}

.article-meta .byline {
  color: var(--walnut);
  font-weight: 500;
}

/* ----- Data / comparison tables (AI cites these heavily) ------- */
.table-wrap {
  overflow-x: auto;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-5) 0;
  font-size: 0.97rem;
}

.prose th,
.prose td {
  text-align: left;
  padding: var(--space-3) var(--space-4);
  border-bottom: var(--border-hair);
  vertical-align: top;
}

.prose thead th {
  border-bottom: 2px solid var(--bottle);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--walnut);
}

.prose tbody tr:nth-child(even) {
  background-color: var(--bone);
}

/* ----- Stat highlight (quotable data point) -------------------- */
.stat {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--bottle);
  margin-bottom: var(--space-1);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--walnut);
  margin-bottom: 0;
}

/* ----- Utilities ----------------------------------------------- */
.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;
}

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.maxw-narrow { max-width: var(--maxw-narrow); }

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
