/* ==========================================================================
   STR Intel, Insights article
   "Airbnb's AI Is Now Answering Your Guests' Questions: What Hosts Need to Know"
   Shares tokens, navbar, footer, buttons, FAQ and table patterns with the
   STR Intel homepage / pricing stylesheet and the other Insights articles,
   plus the few article-specific components added at the bottom of this file.
   ========================================================================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --clr-primary: #1a56db;
  --clr-primary-dark: #1244b0;
  --clr-primary-light: #e8effc;
  --clr-accent: #f59e0b;
  --clr-accent-dark: #d97706;
  --clr-bg: #ffffff;
  --clr-surface: #f8fafc;
  --clr-surface-alt: #f1f5f9;
  --clr-border: #e2e8f0;
  --clr-text: #1e293b;
  --clr-text-secondary: #475569;
  --clr-text-light: #64748b;   /* darkened from #94a3b8 for AA contrast on white */
  --clr-success: #16a34a;
  --clr-error: #dc2626;
  --font-heading: 'DM Sans', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'DM Sans', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'DM Mono', 'Fira Code', monospace;
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 20px;
  --sp-6: 24px; --sp-8: 32px; --sp-10: 40px; --sp-12: 48px; --sp-16: 64px;
  --sp-20: 80px; --sp-24: 96px;
  --radius-sm: 6px; --radius-md: 10px; --radius-lg: 16px; --radius-xl: 24px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 14px rgba(0,0,0,.08);
  --shadow-lg: 0 10px 30px rgba(0,0,0,.1);
  --transition: .25s cubic-bezier(.4,0,.2,1);
  --nav-offset: 112px;
}

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

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--clr-text);
  background: var(--clr-bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--clr-primary);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--clr-primary-dark); }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 400;
  background: var(--clr-primary); color: #fff; padding: 10px 18px; border-radius: var(--radius-md);
  font-weight: 600; transition: top var(--transition);
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Container ---------- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--sp-6); }
.container--narrow { max-width: 800px; }
.container--article { max-width: 1060px; }

/* ---------- Utility ---------- */
.text-primary { color: var(--clr-primary); }
.text-red { color: var(--clr-error); }
.text-green { color: var(--clr-success); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  padding: 14px 32px; border: none; border-radius: var(--radius-md);
  cursor: pointer; transition: all var(--transition); text-decoration: none; white-space: nowrap;
}
.btn--primary {
  background: var(--clr-primary); color: #fff;
  box-shadow: 0 2px 8px rgba(26,86,219,.35);
}
.btn--primary:hover {
  background: var(--clr-primary-dark); color: #fff; text-decoration: none;
  transform: translateY(-1px); box-shadow: 0 4px 16px rgba(26,86,219,.4);
}
.btn--outline {
  background: transparent; color: var(--clr-primary); border: 2px solid var(--clr-primary);
}
.btn--outline:hover { background: var(--clr-primary); color: #fff; text-decoration: none; }
.btn--lg { padding: 16px 40px; font-size: 1.1rem; }
.btn--sm { padding: 10px 20px; font-size: .9rem; }


/* ==========================================================================
   READING PROGRESS
   ========================================================================== */
.reading-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 300;
  background: transparent; pointer-events: none;
}
.reading-progress__bar {
  height: 100%; width: 100%; background: var(--clr-accent);
  transform: scaleX(0); transform-origin: 0 50%;
}


/* ==========================================================================
   NAVBAR (shared with STR Intel site)
   ========================================================================== */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--clr-border);
  padding: var(--sp-3) 0;
}
.navbar__inner {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-6);
}
.navbar__logo img { height: 38px; width: auto; }
.navbar__links {
  display: flex; align-items: center; gap: var(--sp-8); list-style: none;
}
.navbar__links > li { position: relative; }
.navbar__links a {
  font-size: .92rem; font-weight: 500; color: var(--clr-text-secondary);
  transition: color var(--transition);
}
.navbar__links a:hover,
.navbar__links a[aria-current="page"] { color: var(--clr-primary); text-decoration: none; }

.navbar__cta { display: flex; align-items: center; gap: var(--sp-4); }
.navbar__toggle {
  display: none; background: none; border: none; cursor: pointer; padding: var(--sp-2);
}
.navbar__toggle svg { width: 26px; height: 26px; stroke: var(--clr-text); }


/* ==========================================================================
   ARTICLE HERO
   ========================================================================== */
.article-hero {
  padding: 40px 0 64px;
  background: linear-gradient(165deg, #f0f5ff 0%, #e8effc 35%, #ffffff 80%);
}
.breadcrumb { margin-bottom: 22px; }
.breadcrumb ol {
  list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px;
  font-size: .84rem; color: var(--clr-text-light);
}
.breadcrumb li + li::before { content: '/'; margin-right: 8px; color: var(--clr-border); }
.breadcrumb a { color: var(--clr-text-secondary); font-weight: 500; }
.breadcrumb a:hover { color: var(--clr-primary); }
.breadcrumb [aria-current="page"] { color: var(--clr-text-light); }

.article-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--clr-primary-light); color: var(--clr-primary);
  font-size: .82rem; font-weight: 600; padding: 6px 14px;
  border-radius: 50px; margin-bottom: 20px;
}
.article-hero h1 {
  font-family: var(--font-heading); font-size: clamp(2rem, 4.6vw, 3.05rem);
  font-weight: 800; line-height: 1.15; letter-spacing: -.015em;
  color: var(--clr-text); margin-bottom: 20px;
}
.article-hero__deck {
  font-size: 1.15rem; line-height: 1.75; color: var(--clr-text-secondary);
  max-width: 720px; margin-bottom: 26px;
}
.article-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px;
  font-size: .88rem; color: var(--clr-text-light); margin-bottom: 28px;
}
.article-meta strong { color: var(--clr-text); font-weight: 600; }
.article-meta__dot { width: 4px; height: 4px; border-radius: 50%; background: var(--clr-border); }
.article-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }


/* ==========================================================================
   STAT GRID
   ========================================================================== */
.stat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: -32px 0 8px; /* cards straddle the hero edge */
  list-style: none; padding: 0; position: relative;
}
.stat-card {
  background: var(--clr-bg); border: 1px solid var(--clr-border); border-radius: var(--radius-lg);
  padding: 20px 18px 18px; box-shadow: var(--shadow-sm); border-top: 3px solid var(--clr-primary);
}
.stat-card--down { border-top-color: var(--clr-error); }
.stat-card--up { border-top-color: var(--clr-success); }
.stat-card--note { border-top-color: var(--clr-accent); }
.stat-card__value {
  display: block; font-family: var(--font-mono); font-size: 1.6rem; font-weight: 700;
  line-height: 1.15; color: var(--clr-text); margin-bottom: 8px; white-space: nowrap;
}
.stat-card--down .stat-card__value { color: var(--clr-error); }
.stat-card--up .stat-card__value { color: var(--clr-success); }
.stat-card--note .stat-card__value { color: var(--clr-accent-dark); }
.stat-card__label { display: block; font-size: .84rem; line-height: 1.5; color: var(--clr-text-secondary); }


/* ==========================================================================
   ARTICLE LAYOUT (TOC + body)
   ========================================================================== */
.article-layout {
  display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px;
  align-items: start; padding: 40px 0 24px;
}
.toc { position: sticky; top: var(--nav-offset); font-size: .88rem; }
.toc__title {
  font-family: var(--font-mono); font-size: .72rem; font-weight: 500; letter-spacing: .12em;
  text-transform: uppercase; color: var(--clr-primary); margin-bottom: 12px;
}
.toc ol { list-style: none; border-left: 2px solid var(--clr-border); }
.toc a {
  display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent;
  color: var(--clr-text-secondary); line-height: 1.4;
}
.toc a:hover { color: var(--clr-primary); }
.toc a.is-active { color: var(--clr-primary); border-left-color: var(--clr-primary); font-weight: 600; }
.toc__cta { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--clr-border); }
.toc__cta p { font-size: .82rem; line-height: 1.55; color: var(--clr-text-secondary); margin-bottom: 12px; }
.toc .toc__cta .btn {
  width: 100%; padding: 11px 16px; font-size: .86rem; white-space: normal; text-align: center;
  color: #fff; margin-left: 0; border-left: 0; line-height: 1.4;
}
.toc .toc__cta .btn:hover { color: #fff; }


/* ==========================================================================
   PROSE
   ========================================================================== */
.prose { min-width: 0; max-width: 740px; }
.prose > section { margin-bottom: 52px; }
.prose h2 {
  font-family: var(--font-heading); font-size: clamp(1.45rem, 3vw, 1.9rem);
  font-weight: 700; line-height: 1.28; letter-spacing: -.01em; color: var(--clr-text);
  margin-bottom: 18px; scroll-margin-top: var(--nav-offset);
}
.prose h3 {
  font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700; line-height: 1.35;
  color: var(--clr-text); margin: 28px 0 10px; scroll-margin-top: var(--nav-offset);
}
.prose p { font-size: 1.05rem; line-height: 1.85; margin-bottom: 18px; color: var(--clr-text); }
.prose strong { font-weight: 700; }
.prose a:not(.btn) {
  color: var(--clr-primary); text-decoration: underline; text-decoration-color: rgba(26,86,219,.35);
  text-underline-offset: 3px; text-decoration-thickness: 1.5px;
}
.prose a:not(.btn):hover { text-decoration-color: currentColor; }
.prose ul, .prose ol.prose-list { margin: 0 0 20px 0; padding-left: 0; list-style: none; }
.prose ul > li {
  position: relative; padding-left: 26px; margin-bottom: 12px; font-size: 1.03rem; line-height: 1.75;
}
.prose ul > li::before {
  content: ''; position: absolute; left: 4px; top: .72em; width: 8px; height: 8px;
  border-radius: 50%; background: var(--clr-primary);
}
.prose em { font-style: italic; }

/* citation superscripts */
.prose sup { line-height: 0; }
.prose sup a:not(.btn) {
  font-family: var(--font-mono); font-size: .72rem; font-weight: 600; text-decoration: none;
  padding: 0 1px; color: var(--clr-primary);
}
.prose sup a:not(.btn):hover { text-decoration: underline; }

.prose .cta-inline { margin: 8px 0 0; }
.prose .cta-inline .btn { font-size: 1rem; }
.prose .btn--primary, .prose .btn--primary:hover { color: #fff; }

/* callout */
.callout {
  margin: 26px 0; padding: 18px 22px; border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: var(--clr-primary-light); border-left: 4px solid var(--clr-primary);
}
.callout p { margin: 0; font-size: 1rem; line-height: 1.75; }
.callout--amber { background: #fffbeb; border-left-color: var(--clr-accent); }


/* ---------- Where direct guests come from: source list ---------- */
.source-list { display: grid; gap: 12px; margin: 0 0 22px; list-style: none; }
.prose .source-list > li {
  position: relative; padding: 14px 18px 14px 18px; margin: 0;
  background: var(--clr-surface); border: 1px solid var(--clr-border); border-radius: var(--radius-md);
  font-size: .98rem; line-height: 1.65;
}
.prose .source-list > li::before { display: none; }
.prose .source-list > li.is-key {
  background: var(--clr-primary-light); border-color: rgba(26,86,219,.35);
}
.source-list__tag {
  display: inline-block; font-family: var(--font-mono); font-size: .68rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; color: var(--clr-primary);
  background: #fff; border: 1px solid rgba(26,86,219,.3); border-radius: 50px;
  padding: 2px 10px; margin-bottom: 6px;
}


/* ---------- Test findings (3 cabins) ---------- */
.finding-list { display: grid; gap: 14px; margin: 0 0 22px; list-style: none; }
.prose .finding-list > li {
  padding: 18px 20px; margin: 0; background: var(--clr-bg); border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); font-size: .98rem; line-height: 1.7;
  border-left: 4px solid var(--clr-border);
}
.prose .finding-list > li::before { display: none; }
.finding-list .is-found { border-left-color: var(--clr-success); }
.finding-list .is-missed { border-left-color: var(--clr-accent); }
.finding-list .is-lost { border-left-color: var(--clr-error); }
.finding__status {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; padding: 3px 11px; border-radius: 50px; margin-bottom: 8px; color: #fff;
}
.is-found .finding__status { background: var(--clr-success); }
.is-missed .finding__status { background: var(--clr-accent-dark); }
.is-lost .finding__status { background: var(--clr-error); }


/* ---------- Numbered audit steps ---------- */
.step-list { counter-reset: step; list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 16px; }
.step-list > li {
  counter-increment: step; position: relative; padding: 0 0 0 54px;
  font-size: 1.02rem; line-height: 1.75; margin: 0;
}
.step-list > li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 38px; height: 38px;
  border-radius: 50%; background: var(--clr-primary); color: #fff;
  font-family: var(--font-mono); font-weight: 700; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
}
.step-list > li strong { display: block; font-size: 1.05rem; margin-bottom: 2px; }


/* ---------- Four-factor blocks ---------- */
.factor { position: relative; padding-left: 56px; margin: 0 0 34px; }
.factor__num {
  position: absolute; left: 0; top: 2px; width: 38px; height: 38px; border-radius: 50%;
  background: var(--clr-primary-light); color: var(--clr-primary);
  font-family: var(--font-mono); font-weight: 700; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
}
.prose .factor h3 { margin-top: 0; }
.factor p:last-child { margin-bottom: 0; }


/* ---------- Table ---------- */
.table-wrap {
  position: relative; /* contains the .sr-only spans so they can't widen the page */
  overflow-x: auto; margin: 0 0 22px; border: 1px solid var(--clr-border);
  border-radius: var(--radius-md); -webkit-overflow-scrolling: touch;
}
.data-table { width: 100%; border-collapse: collapse; font-size: .92rem; background: var(--clr-bg); }
.data-table th, .data-table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--clr-border); }
.data-table thead th {
  background: var(--clr-surface); font-family: var(--font-heading); font-size: .85rem;
  font-weight: 700; color: var(--clr-text); white-space: nowrap;
}
.data-table--compare th:not(:first-child):not(:nth-child(2)),
.data-table--compare td:not(:first-child):not(:nth-child(2)) { text-align: center; }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: var(--clr-surface); }
.data-table td:first-child { font-weight: 600; color: var(--clr-text); }
.data-table td:nth-child(2) { color: var(--clr-text-secondary); }
.cell-yes { color: var(--clr-success); font-weight: 700; font-size: 1.1rem; }
.cell-no { color: var(--clr-text-light); font-size: 1.1rem; }
.data-table .is-free td { background: #f0fdf4; }
.data-table .is-free:hover td { background: #ecfdf5; }


/* ---------- Mid-article teardown band ---------- */
.teardown-band {
  background: var(--clr-primary-light); border-radius: var(--radius-lg);
  padding: 32px 30px; margin: 8px 0 0;
}
.teardown-band h2 { font-size: 1.4rem; margin-bottom: 10px; }
.teardown-band p { color: var(--clr-text-secondary); margin-bottom: 18px; font-size: 1rem; }
.teardown-band .check-list { margin-bottom: 22px; }

.check-list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin: 0 0 20px; }
.prose .check-list > li { position: relative; padding-left: 28px; margin: 0; font-size: .98rem; line-height: 1.65; color: var(--clr-text-secondary); }
.prose .check-list > li::before {
  content: '\2713'; position: absolute; left: 0; top: 0; width: auto; height: auto;
  background: none; border-radius: 0; color: var(--clr-success); font-weight: 700;
}
.fineprint { font-size: .86rem !important; color: var(--clr-text-light) !important; margin: 14px 0 0 !important; }


/* ==========================================================================
   FAQ ACCORDION (shared pattern)
   ========================================================================== */
.faq-list { display: flex; flex-direction: column; border-top: 1px solid var(--clr-border); margin-bottom: 8px; }
.faq-item { border-bottom: 1px solid var(--clr-border); }
.prose .faq-item h3 { margin: 0; font-size: 1rem; }
.faq-item__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: none; border: none; cursor: pointer; text-align: left;
  padding: 18px 4px; font-family: var(--font-heading); font-size: 1.02rem; font-weight: 600;
  line-height: 1.45; color: var(--clr-text);
}
.faq-item__q:hover { color: var(--clr-primary); }
.faq-item__icon {
  flex-shrink: 0; width: 26px; height: 26px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--clr-surface-alt); color: var(--clr-primary);
  font-size: 1.1rem; font-weight: 700; transition: transform var(--transition);
}
.faq-item__q[aria-expanded="true"] .faq-item__icon { transform: rotate(45deg); }
.faq-item__a {
  max-height: 0; overflow: hidden; visibility: hidden;
  transition: max-height var(--transition), visibility var(--transition);
}
.prose .faq-item__a p {
  font-size: .96rem; line-height: 1.75; color: var(--clr-text-secondary);
  padding: 0 4px 20px; margin: 0;
}
.faq-item.is-open .faq-item__a { max-height: 700px; visibility: visible; }


/* ==========================================================================
   ABOUT THIS ANALYSIS + REFERENCES
   ========================================================================== */
.about-box {
  background: var(--clr-surface); border: 1px solid var(--clr-border);
  border-radius: var(--radius-md); padding: 22px 24px;
}
.about-box h2 { font-size: 1.15rem; margin-bottom: 12px; }
.prose .about-box ul > li { font-size: .92rem; line-height: 1.65; color: var(--clr-text-secondary); margin-bottom: 8px; }
.prose .about-box ul > li:last-child { margin-bottom: 0; }
.prose .about-box ul > li::before { background: var(--clr-text-light); width: 6px; height: 6px; top: .75em; }

.refs { list-style: none; counter-reset: ref; margin: 0; padding: 0; display: grid; gap: 4px; }
.refs li {
  counter-increment: ref; position: relative; padding: 8px 12px 8px 44px;
  font-size: .9rem; line-height: 1.6; color: var(--clr-text-secondary); border-radius: var(--radius-sm);
  scroll-margin-top: var(--nav-offset); word-break: break-word;
}
.refs li::before {
  content: '[' counter(ref) ']'; position: absolute; left: 8px; top: 8px;
  font-family: var(--font-mono); font-size: .78rem; font-weight: 500; color: var(--clr-primary);
}
.refs li:target { background: #fffbeb; box-shadow: inset 3px 0 0 var(--clr-accent); }
.refs a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(26,86,219,.35); }


/* ==========================================================================
   RELATED READING
   ========================================================================== */
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related-card {
  display: flex; flex-direction: column; gap: 8px; padding: 20px 18px;
  background: var(--clr-bg); border: 1px solid var(--clr-border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); color: var(--clr-text); transition: box-shadow var(--transition), transform var(--transition);
}
.related-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); color: var(--clr-text); }
.prose a.related-card, .prose a.related-card:hover { text-decoration: none; color: var(--clr-text); }
.related-card:hover .related-card__more { text-decoration: underline; text-underline-offset: 3px; }
.related-card__label {
  font-family: var(--font-mono); font-size: .68rem; font-weight: 500; letter-spacing: .1em;
  text-transform: uppercase; color: var(--clr-primary);
}
.related-card__title { font-family: var(--font-heading); font-size: .98rem; font-weight: 700; line-height: 1.4; }
.related-card__more { margin-top: auto; font-size: .84rem; font-weight: 600; color: var(--clr-primary); }


/* ==========================================================================
   FINAL CTA + ARTICLE FOOT
   ========================================================================== */
.cta-section { padding: 24px 0 64px; }
.blog-cta {
  background: linear-gradient(135deg, var(--clr-primary) 0%, #2563eb 100%);
  border-radius: var(--radius-xl); padding: 56px 40px; text-align: center; color: #fff;
}
.blog-cta__label {
  display: inline-block; font-family: var(--font-mono); font-size: .75rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.75); margin-bottom: 8px;
}
.blog-cta h2 {
  color: #fff; font-family: var(--font-heading); font-size: clamp(1.5rem, 3.4vw, 2rem);
  font-weight: 700; margin: 8px 0 16px; line-height: 1.25;
}
.blog-cta p { font-size: 1.02rem; line-height: 1.7; opacity: .92; max-width: 560px; margin: 0 auto 28px; color: #fff; }
.blog-cta .btn--primary { background: #fff; color: var(--clr-primary); box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.blog-cta .btn--primary:hover { background: var(--clr-primary-light); color: var(--clr-primary-dark); }

.article-foot { border-top: 1px solid var(--clr-border); padding: 28px 0 56px; text-align: center; }
.article-foot__date { font-family: var(--font-mono); font-size: .75rem; color: var(--clr-text-light); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
.article-foot__note { font-size: .82rem; color: var(--clr-text-light); line-height: 1.65; max-width: 640px; margin: 0 auto; }


/* ==========================================================================
   SITE FOOTER (shared with STR Intel site)
   ========================================================================== */
.footer { padding: var(--sp-16) 0 var(--sp-10); background: #0f172a; color: #94a3b8; font-size: .9rem; }
.footer__top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--sp-8);
  padding-bottom: var(--sp-12); border-bottom: 1px solid #1e293b; margin-bottom: var(--sp-8);
}
.footer__brand-name { font-size: 1.1rem; font-weight: 700; color: #e2e8f0; margin-bottom: var(--sp-3); letter-spacing: .01em; }
.footer__brand p { font-size: .85rem; line-height: 1.65; max-width: 280px; color: #94a3b8; }
.footer__col h4 { color: #e2e8f0; font-size: .88rem; font-weight: 700; margin-bottom: var(--sp-4); }
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: var(--sp-2); }
.footer__col a { color: #94a3b8; font-size: .85rem; transition: color var(--transition); }
.footer__col a:hover { color: #e2e8f0; text-decoration: none; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--sp-4); }
.footer__copy { font-size: .82rem; color: #94a3b8; }
.footer__social { display: flex; gap: var(--sp-3); }
.footer__social a {
  display: flex; align-items: center; justify-content: center; width: 34px; height: 34px;
  border-radius: var(--radius-sm); background: #1e293b; color: #94a3b8; transition: all var(--transition);
}
.footer__social a:hover { background: var(--clr-primary); color: #fff; }
.footer__social svg { width: 16px; height: 16px; }


/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .footer__top { grid-template-columns: 1fr 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  .article-layout { grid-template-columns: 1fr; gap: 28px; padding-top: 28px; }
  .toc {
    position: static; background: var(--clr-surface); border: 1px solid var(--clr-border);
    border-radius: var(--radius-md); padding: 18px 20px;
  }
  .toc ol { border-left: none; columns: 2; column-gap: 24px; }
  .toc a { border-left: none; padding: 5px 0; margin-left: 0; break-inside: avoid; }
  .toc a.is-active { border-left: none; }
  .toc__cta { display: none; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  body { font-size: 16px; }
  :root { --nav-offset: 88px; }

  .navbar__links { display: none; }
  .navbar__cta .btn { display: none; }
  .navbar__toggle { display: block; }
  .navbar__links.open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--clr-bg); border-bottom: 1px solid var(--clr-border);
    padding: var(--sp-4) var(--sp-6); box-shadow: var(--shadow-md); z-index: 200;
  }
  .navbar__links.open li { width: 100%; }
  .navbar__links.open a { display: block; padding: var(--sp-3) 0; width: 100%; }

  .btn { white-space: normal; text-align: center; }
  .btn--lg { padding: 14px 24px; font-size: 1rem; }
  .blog-cta .btn, .prose .cta-inline .btn { width: 100%; }

  .article-hero { padding: 28px 0 48px; }
  .article-hero__actions .btn { width: 100%; }
  .stat-grid { margin-top: -24px; }
  .prose p { font-size: 1.02rem; }
  .teardown-band { padding: 26px 20px; }
  .blog-cta { padding: 40px 22px; }
  .data-table th, .data-table td { padding: 10px 8px; font-size: .82rem; }
  .data-table thead th { white-space: normal; line-height: 1.3; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 560px) {
  .article-meta { gap: 4px 14px; }
  .article-meta__dot { display: none; }
  .toc ol { columns: 1; }
  .stat-grid { gap: 12px; }
  .stat-card { padding: 16px 14px 14px; }
  .stat-card__value { font-size: 1.3rem; }
  .factor { padding-left: 0; }
  .factor__num { position: static; margin-bottom: 10px; }
  .step-list > li { padding-left: 48px; }
}

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

@media print {
  .navbar, .reading-progress, .toc, .article-hero__actions, .teardown-band, .cta-section, .footer, .skip-link { display: none !important; }
  .article-layout { grid-template-columns: 1fr; }
  .faq-item__a { max-height: none !important; }
  .stat-grid { margin-top: 24px; }
}


/* ==========================================================================
   ADDITIONS FOR THE NOVEMBER 20 ARTICLE
   Status table (tactic / status / sources), citation clusters, and the
   stacked-card version of the table on small screens.
   ========================================================================== */

/* avoid a one-word last line in headings */
.article-hero h1, .prose h2, .blog-cta h2 { text-wrap: balance; }

/* two or more citations in a row: [3] [11] */
.prose sup a:not(.btn) + a:not(.btn) { margin-left: 4px; }

/* status table */
.data-table--status { table-layout: fixed; }
.data-table--status th:nth-child(1) { width: 27%; }
.data-table--status th:nth-child(2) { width: 22%; }
.data-table--status th:nth-child(3) { width: 51%; }
.data-table--status td { vertical-align: top; line-height: 1.55; overflow-wrap: anywhere; }
.data-table--status td:nth-child(2) { color: var(--clr-text); }
.data-table--status td:nth-child(3) { color: var(--clr-text-secondary); font-weight: 400; }

.status {
  display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .02em;
  padding: 3px 10px; border-radius: 12px; border: 1px solid; line-height: 1.4;
}
.status--red  { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.status--amber { background: #fffbeb; color: #b45309; border-color: #fde68a; }
.status--gray  { background: #f1f5f9; color: #475569; border-color: #cbd5e1; }
.status--green { background: #ecfdf5; color: #15803d; border-color: #a7f3d0; }
.status--blue  { background: var(--clr-primary-light); color: var(--clr-primary-dark); border-color: rgba(26,86,219,.3); }
.status-note { display: block; margin-top: 6px; font-size: .82rem; line-height: 1.45; color: var(--clr-text-secondary); font-weight: 400; }

@media (max-width: 768px) {
  /* each row becomes a card: tactic as the title, then labelled status and sources */
  .data-table--status, .data-table--status tbody, .data-table--status tr, .data-table--status td { display: block; width: 100%; }
  .data-table--status thead {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
  }
  .data-table--status tr { padding: 14px 14px 12px; border-bottom: 1px solid var(--clr-border); }
  .data-table--status tbody tr:last-child { border-bottom: none; }
  .data-table--status td { padding: 4px 0; border: none; font-size: .9rem; }
  .data-table--status td::before {
    content: attr(data-label); display: block; font-family: var(--font-mono); font-size: .66rem; font-weight: 500;
    letter-spacing: .1em; text-transform: uppercase; color: var(--clr-text-light); margin-bottom: 3px;
  }
  .data-table--status td:first-child { font-size: 1rem; padding-bottom: 6px; }
  .data-table--status td:first-child::before { display: none; }
  .data-table--status tbody tr:hover td { background: transparent; }
}

@media (max-width: 560px) {
  /* longer stat values such as "Nearly 2 in 3" may wrap on narrow screens */
  .stat-card__value { white-space: normal; font-size: 1.2rem; }
}


/* ==========================================================================
   ADDITIONS FOR THE AI MARKET AUDIT ARTICLE
   Count tables (briefs, companies, search stages), the re-check table,
   source notes under tables, inline code, and the summary cards.
   ========================================================================== */

/* inline code, e.g. a model ID */
.prose code, .about-box code {
  font-family: var(--font-mono); font-size: .86em; background: var(--clr-surface-alt);
  border: 1px solid var(--clr-border); border-radius: 5px; padding: 1px 6px; white-space: nowrap;
}

/* the italic source line under a table */
.prose .table-note {
  font-size: .86rem; line-height: 1.6; font-style: italic; color: var(--clr-text-secondary);
  margin: -10px 0 24px;
}

/* summary cards: same card as finding-list, with a blue edge */
.finding-list--blue > li { border-left-color: var(--clr-primary); }

/* shared table settings */
.data-table--grid, .data-table--stack { table-layout: fixed; }
.data-table--grid td, .data-table--stack td { vertical-align: top; line-height: 1.5; overflow-wrap: anywhere; }
.data-table--grid th, .data-table--grid td { padding: 12px 10px; }
.data-table--grid th:first-child, .data-table--grid td:first-child { padding-left: 16px; }
.data-table--grid th.num, .data-table--grid td.num { text-align: center; }
.data-table--grid thead th { white-space: normal; line-height: 1.3; vertical-align: bottom; }
.data-table--grid td.num { color: var(--clr-text); font-weight: 500; font-variant-numeric: tabular-nums; }
.data-table--grid td:nth-child(2):not(.num) { color: var(--clr-text-secondary); }

/* total row */
.data-table .row-total td { background: var(--clr-surface); font-weight: 800; color: var(--clr-text); border-top: 2px solid var(--clr-border); }
.data-table .row-total:hover td { background: var(--clr-surface); }

/* briefs: 34 / 6 x 11 */
.data-table--briefs th:nth-child(1) { width: 34%; }
.data-table--briefs th:not(:first-child) { width: 11%; }
.data-table--briefs td:first-child { font-weight: 500; }
.brief-id { font-family: var(--font-mono); font-size: .86em; font-weight: 500; color: var(--clr-primary); }
.nw { white-space: nowrap; }

/* citations in the hero intro */
.article-hero__deck sup { line-height: 0; }
.article-hero__deck sup a {
  font-family: var(--font-mono); font-size: .7rem; font-weight: 600; text-decoration: none; color: var(--clr-primary); padding: 0 1px;
}
.article-hero__deck sup a:hover { text-decoration: underline; }
.article-hero__deck sup a + a { margin-left: 4px; }

/* companies */
.data-table--named th:nth-child(1) { width: 31%; }
.data-table--named th:nth-child(2) { width: 25%; }
.data-table--named th:nth-child(3) { width: 30%; }
.data-table--named th:nth-child(4) { width: 14%; }

/* search stages */
.data-table--stages th:nth-child(1) { width: 40%; }
.data-table--stages th:not(:first-child) { width: 20%; }

/* re-check table */
.data-table--stack th, .data-table--stack td { padding: 12px 12px; }
.data-table--stack td { font-size: .88rem; }
.data-table--stack td:first-child { font-family: var(--font-mono); font-size: .8rem; font-weight: 500; color: var(--clr-primary); }
.data-table--stack td:nth-child(2) { font-weight: 600; color: var(--clr-text); }
.data-table--stack td:nth-child(3) { color: var(--clr-text-secondary); }
.data-table--stack td:nth-child(n+4) { color: var(--clr-text); font-weight: 400; }
.data-table--book th:nth-child(1) { width: 8%; }
.data-table--book th:nth-child(2) { width: 17%; }
.data-table--book th:nth-child(3) { width: 17%; }
.data-table--book th:nth-child(4) { width: 31%; }
.data-table--book th:nth-child(5) { width: 27%; }

@media (max-width: 960px) {
  /* tablet: keep the wide tables readable inside their frame */
  .data-table--grid th, .data-table--grid td { padding: 10px 6px; font-size: .84rem; }
  .data-table--grid th:first-child, .data-table--grid td:first-child { padding-left: 12px; }
}

@media (max-width: 768px) {
  /* count tables: each row becomes a card, the first cell is the title and the rest sit in a labelled grid */
  .data-table--grid, .data-table--grid tbody, .data-table--grid td,
  .data-table--stack, .data-table--stack tbody, .data-table--stack tr, .data-table--stack td { display: block; width: 100%; }
  .data-table--grid thead, .data-table--stack thead {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
  }
  .data-table--grid tr { display: grid; gap: 10px 12px; padding: 14px 14px 12px; border-bottom: 1px solid var(--clr-border); }
  .data-table--grid tbody tr:last-child, .data-table--stack tbody tr:last-child { border-bottom: none; }
  .data-table--grid td { padding: 0; border: none; font-size: .9rem; text-align: left; }
  .data-table--grid td:first-child { grid-column: 1 / -1; padding: 0 0 2px; font-size: .95rem; }
  .data-table--grid td:first-child::before { display: none; }
  .data-table--grid td::before, .data-table--stack td::before {
    content: attr(data-label); display: block; font-family: var(--font-mono); font-size: .62rem; font-weight: 500;
    letter-spacing: .08em; text-transform: uppercase; color: var(--clr-text-light); margin-bottom: 2px;
  }
  .data-table--grid tbody tr:hover td, .data-table--stack tbody tr:hover td { background: transparent; }
  .data-table--grid td.num { text-align: left; }
  .data-table--briefs tr { grid-template-columns: repeat(3, 1fr); }
  .data-table--stages tr { grid-template-columns: repeat(3, 1fr); }
  .data-table--named tr { grid-template-columns: 1.15fr 1.45fr .7fr; }
  .data-table--named td:nth-child(2) { color: var(--clr-text-secondary); }
  .data-table .row-total { background: var(--clr-surface); border-top: 2px solid var(--clr-border); }
  .data-table .row-total td { background: transparent; border-top: none; }

  /* re-check table: labelled lines, like the status table */
  .data-table--stack tr { padding: 14px 14px 12px; border-bottom: 1px solid var(--clr-border); }
  .data-table--stack td { padding: 4px 0; border: none; font-size: .9rem; }
  .data-table--stack td:first-child { font-size: .82rem; }
  .data-table--stack td:first-child::before { display: none; }
}


/* ==========================================================================
   ADDITIONS FOR THE "ASK ABOUT THIS HOME" ARTICLE
   Screenshot figure with caption, and citation links inside stat cards.
   ========================================================================== */

/* screenshot of the feature, framed so the white-edged capture sits on a soft panel */
.prose .figure { margin: 28px 0 30px; }
.figure__frame {
  background: linear-gradient(165deg, #f0f5ff 0%, #e8effc 45%, #ffffff 100%);
  border: 1px solid var(--clr-border); border-radius: var(--radius-lg);
  padding: 28px 24px; box-shadow: var(--shadow-sm);
}
.figure__frame img {
  width: 100%; max-width: 520px; margin: 0 auto;
  border-radius: var(--radius-md); box-shadow: var(--shadow-md);
}
.prose .figure figcaption {
  margin: 12px 4px 0; font-size: .86rem; line-height: 1.6; text-align: center;
  color: var(--clr-text-secondary);
}

/* citations inside the stat cards (they sit outside .prose) */
.stat-card__label sup { line-height: 0; }
.stat-card__label sup a {
  font-family: var(--font-mono); font-size: .68rem; font-weight: 600; text-decoration: none;
  color: var(--clr-primary); padding: 0 1px;
}
.stat-card__label sup a:hover { text-decoration: underline; }
.stat-card__label sup a + a { margin-left: 4px; }

@media (max-width: 560px) {
  .figure__frame { padding: 18px 12px; }
}

/* "what the AI answers from" table: wider middle column for the example questions */
.data-table--ask th:nth-child(1) { width: 24%; }
.data-table--ask th:nth-child(2) { width: 30%; }
.data-table--ask th:nth-child(3) { width: 46%; }
.data-table--ask thead th { white-space: normal; line-height: 1.3; vertical-align: bottom; }
