/* =====================================================================
   GTM Gameplan CONTENT component system
   Shared, CMS-ready styles for Case Studies, the Blog index, and Articles.
   Loaded after base.css + theme-rh-dark.css. Colors/fonts come from theme
   variables; LAFC gold (#C39E6D) is used as the case-study accent.
   No layout-page-specific rules live here; those stay scoped per page.
   ===================================================================== */

:root {
  --gold: #C39E6D;        /* LAFC colorway accent */
  --gold-2: #d8b888;
  --read-measure: 720px;  /* article reading column */
}

/* ---- Page scaffold (clears the fixed pill nav) ---- */
.pagewrap { padding-top: 132px; }
@media (max-width: 820px) { .pagewrap { padding-top: 108px; } }
/* Pages that end in raw text/cards (legal, article) need bottom breathing room
   so content doesn't butt against the footer. Pages ending in a CTA section
   (blog list, newsletter) and the home overlap are intentionally left alone. */
.legal-wrap { padding-bottom: 72px; }

/* ---- Breadcrumbs ---- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 26px; }
.crumbs a { color: var(--muted); transition: color .15s; }
.crumbs a:hover { color: var(--ink); }
.crumbs span[aria-current] { color: var(--ink-2); }
.crumbs .sep { opacity: .5; }

/* ---- Generic eyebrow / kicker (extends base .eyebrow) ---- */
.kicker { color: var(--primary); font-family: var(--font-head); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }

/* ---- AEO answer block: a self-contained 40 to 60 word summary up top ---- */
.answer { background: var(--panel-bg); border: 1px solid var(--line); border-left: 3px solid var(--primary); border-radius: 14px; padding: 20px 24px; color: var(--ink-2); font-size: 17px; line-height: 1.6; }
.answer strong { color: var(--ink); }

/* =====================================================================
   STAT BLOCKS  (shared by case study + article callouts)
   ===================================================================== */
.statband { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.statband--3 { grid-template-columns: repeat(3, 1fr); }
.stat { }
.stat__num { display: block; font-family: var(--font-num); font-weight: 700; font-size: clamp(34px, 4.4vw, 52px); color: var(--gold); line-height: 1; }
.stat__lab { display: block; color: var(--muted); font-size: 13px; margin-top: 10px; text-transform: uppercase; letter-spacing: .05em; line-height: 1.4; }
@media (max-width: 760px) { .statband, .statband--3 { grid-template-columns: repeat(2, 1fr); gap: 22px; } }

/* =====================================================================
   QUOTE / TESTIMONIAL  (shared)
   ===================================================================== */
.quoteblock { border-left: 3px solid var(--gold); padding-left: 26px; }
.quoteblock__text { font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 30px); line-height: 1.32; color: var(--ink); font-weight: 500; }
.person { display: flex; align-items: center; gap: 14px; margin-top: 22px; }
.person__avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); flex: none; }
.person__meta { display: flex; flex-direction: column; line-height: 1.34; }
.person__name { color: var(--ink); font-weight: 700; font-size: 15px; }
.person__title { color: var(--ink-2); font-size: 13px; }
.person__org { color: var(--gold); font-size: 13px; font-weight: 600; }

/* Brand logo chip (e.g. LAFC crest on dark) */
.brandchip { height: 60px; width: auto; display: block; }

/* Reusable warm B&W stadium photo treatment (matches site hue, fades to --bg) */
.stadiumfx { position: relative; overflow: hidden; }
.stadiumfx::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(to bottom, rgba(13,15,19,.25) 0%, rgba(13,15,19,.6) 48%, var(--bg) 88%),
    url('img/stadium-7151514.jpg') center top / cover no-repeat;
  filter: grayscale(1) sepia(.55) brightness(.9) contrast(1.05);
}
.stadiumfx > * { position: relative; z-index: 1; }

/* =====================================================================
   CASE STUDY  (full-page components, prefix cs-)
   ===================================================================== */
.cs-title { font-size: clamp(32px, 4.6vw, 56px); line-height: 1.05; margin: 14px 0 0; }
.cs-dek { color: var(--ink-2); font-size: clamp(17px, 2vw, 20px); line-height: 1.55; margin-top: 18px; max-width: 640px; }
.cs-note { color: var(--muted); font-size: 13px; font-style: italic; margin-top: 14px; }
.cs-section { margin-top: 64px; }
.cs-section__label { font-family: var(--font-head); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.cs-section h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 16px; }
.cs-section p { color: var(--ink-2); font-size: 17px; line-height: 1.7; max-width: 680px; }
.cs-section p + p { margin-top: 16px; }
.cs-steps { list-style: none; display: grid; gap: 16px; margin-top: 26px; }
.cs-step { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; background: var(--panel-bg); border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; }
.cs-step__n { font-family: var(--font-num); font-weight: 700; font-size: 15px; color: var(--primary-ink); background: var(--primary); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; }
.cs-step h3 { font-size: 18px; margin-bottom: 4px; }
.cs-step p { color: var(--ink-2); font-size: 15px; line-height: 1.55; }

/* =====================================================================
   BLOG INDEX  (post cards, filters, tags)
   ===================================================================== */
.bloghead { max-width: 720px; }
.bloghead h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.05; margin: 12px 0 0; }
.bloghead p:not(.kicker) { color: var(--ink-2); font-size: 18px; margin-top: 16px; line-height: 1.55; }

.blogfilter { display: flex; flex-wrap: wrap; gap: 10px; margin: 34px 0 8px; }
.blogfilter__group { margin-top: 22px; }
.blogfilter__group:first-of-type { margin-top: 34px; }
.blogfilter__group .blogfilter { margin: 0; }
.blogfilter__label { display: block; font-family: var(--font-head); font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); opacity: .85; margin: 0 0 11px; }
.chip { font-family: var(--font-head); font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--ink-2); background: var(--panel-bg); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; cursor: pointer; transition: color .15s, border-color .15s, background .15s; }
.chip:hover { color: var(--ink); border-color: var(--primary); }
.chip.is-active { color: var(--primary-ink); background: var(--primary); border-color: var(--primary); }
.blog-empty { text-align: center; color: var(--muted); padding: 56px 0; font-size: 16px; }

.tag { display: inline-block; font-family: var(--font-head); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--primary); }
.taglist { display: flex; flex-wrap: wrap; gap: 10px; }
.taglist .tag::after { content: ""; }

.bloggrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 900px) { .bloggrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .bloggrid { grid-template-columns: 1fr; } }

.post-card { display: flex; flex-direction: column; background: var(--panel-bg); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.post-card:hover { transform: translateY(-4px); border-color: var(--primary); box-shadow: var(--shadow); }
.post-card__media { aspect-ratio: 16 / 9; background: #090b0f center/cover no-repeat; filter: saturate(.9) brightness(.96); position: relative; }
.post-card__cat { position: absolute; top: 12px; left: 12px; font-family: var(--font-head); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--primary-ink); background: var(--primary); border-radius: 999px; padding: 5px 11px; }
.post-card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.post-card__title { font-size: 19px; line-height: 1.25; color: var(--ink); margin-bottom: 10px; }
.post-card:hover .post-card__title { color: var(--primary); }
.post-card__excerpt { color: var(--ink-2); font-size: 14.5px; line-height: 1.55; flex: 1; }
.post-card__meta { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 18px; font-size: 12.5px; color: var(--muted); }
.post-card__meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted); }

/* Featured (large) card */
.post-feature { display: grid; grid-template-columns: 1.1fr 1fr; background: var(--panel-bg); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.post-feature__media { min-height: 320px; background: #090b0f center/cover no-repeat; filter: grayscale(1) sepia(.45) brightness(.9); }
.post-feature__body { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.post-feature__title { font-size: clamp(24px, 2.8vw, 34px); line-height: 1.15; color: var(--ink); margin: 12px 0 14px; }
.post-feature__excerpt { color: var(--ink-2); font-size: 16px; line-height: 1.6; }
.post-feature__by { display: inline-flex; align-items: center; gap: 7px; }
.post-feature__avatar { width: 22px; height: 22px; border-radius: 999px; object-fit: cover; }
@media (max-width: 820px) { .post-feature { grid-template-columns: 1fr; } .post-feature__media { min-height: 200px; } .post-feature__body { padding: 28px; } }

/* List (row) layout option */
.bloglist { display: flex; flex-direction: column; }
.post-row { display: grid; grid-template-columns: 200px 1fr; gap: 26px; padding: 28px 0; border-top: 1px solid var(--line); align-items: center; }
.post-row:first-child { border-top: 0; }
.post-row__media { aspect-ratio: 16/10; border-radius: 12px; background: #090b0f center/cover no-repeat; filter: grayscale(1) sepia(.4) brightness(.92); }
.post-row__title { font-size: 22px; line-height: 1.2; color: var(--ink); margin: 8px 0 10px; }
.post-row:hover .post-row__title { color: var(--primary); }
.post-row__excerpt { color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.post-row__meta { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 12.5px; color: var(--muted); }
@media (max-width: 680px) { .post-row { grid-template-columns: 1fr; gap: 14px; } }

/* =====================================================================
   ARTICLE  (rich editorial typography + furniture)
   ===================================================================== */
.article__head { max-width: var(--read-measure); }
.article__title { font-size: clamp(30px, 4.4vw, 50px); line-height: 1.08; margin: 14px 0 0; }
.article__dek { color: var(--ink-2); font-size: clamp(18px, 2vw, 22px); line-height: 1.5; margin-top: 20px; }
.article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.article__author { display: flex; align-items: center; gap: 12px; }
.article__avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--primary); }
.article__byline { line-height: 1.35; }
.article__byline b { color: var(--ink); font-size: 14px; font-weight: 700; display: block; }
.article__byline span { color: var(--muted); font-size: 13px; }
.article__facts { margin-left: auto; display: flex; gap: 18px; color: var(--muted); font-size: 13px; }
.article__facts time, .article__facts span { white-space: nowrap; }

.article__hero { margin: 40px 0; border-radius: 18px; overflow: hidden; aspect-ratio: 16/7; background: #090b0f center/cover no-repeat; filter: saturate(.9) brightness(.98); }

/* Rich text */
.prose { color: var(--ink-2); font-size: 18px; line-height: 1.78; max-width: var(--read-measure); }
.prose > * + * { margin-top: 1.35em; }
.prose h2 { font-family: var(--font-display); color: var(--ink); font-size: clamp(25px, 2.9vw, 33px); line-height: 1.2; margin-top: 1.9em; }
.prose h3 { color: var(--ink); font-size: 21px; line-height: 1.3; margin-top: 1.6em; }
.prose p { margin-top: 1.1em; }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--ink); text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color .15s, text-decoration-color .15s; }
.prose a:hover { color: var(--primary); text-decoration-color: var(--primary); }
.prose strong { color: var(--ink); font-weight: 700; }
/* Bold inside a link must read as a link, not as standalone emphasis. */
.prose a strong { color: inherit; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-top: .55em; }
.prose li::marker { color: var(--primary); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose figure { margin: 2em 0; }
.prose figure img { width: 100%; border-radius: 14px; display: block; }
.prose figcaption { color: var(--muted); font-size: 13px; margin-top: 10px; text-align: center; }
/* In-body images written as plain markdown ![alt](src). The alt text renders
   as a caption beneath. Same warm, slightly-desaturated treatment as the hero. */
.prose img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: center; border-radius: 14px; display: block; margin: 2em auto .5em; filter: saturate(.9) brightness(.98); }
.prose p:has(img) { text-align: center; margin-bottom: 0; }
/* An italic line immediately after an image renders as its caption. */
.prose p:has(img) + p:has(em) { color: var(--muted); font-size: 13.5px; text-align: center; margin-top: 10px; }
.prose p:has(img) + p:has(em) em { font-style: italic; }
.prose code { font-family: var(--font-num); font-size: .9em; background: var(--panel-bg); border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; color: var(--primary); }

/* Comparison / definition table (AEO-friendly) */
.deftable { width: 100%; border-collapse: collapse; font-size: 15.5px; margin: 1.6em 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; }
.deftable th, .deftable td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.deftable thead th { background: var(--panel-bg); color: var(--ink); font-family: var(--font-head); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.deftable tbody tr:last-child td { border-bottom: 0; }
.deftable td:first-child { color: var(--ink); font-weight: 600; }

/* Pull quote */
.pullquote { border: 0; border-left: 4px solid var(--primary); padding: 6px 0 6px 28px; margin: 2em 0; }
.pullquote p { font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 30px); line-height: 1.3; color: var(--ink); font-weight: 500; }
.pullquote cite { display: block; margin-top: 12px; font-style: normal; color: var(--muted); font-size: 14px; }

/* Key takeaways / TL;DR (extractable answer block) */
.takeaways { background: var(--panel-bg); border: 1px solid var(--line); border-radius: 16px; padding: 26px 28px; margin: 2em 0; }
.takeaways h2 { font-family: var(--font-head); font-size: 13px !important; letter-spacing: .14em; text-transform: uppercase; color: var(--primary); margin: 0 0 14px !important; }
.takeaways ul { list-style: none; padding: 0; display: grid; gap: 12px; }
.takeaways li { position: relative; padding-left: 26px; color: var(--ink-2); font-size: 16px; line-height: 1.5; }
.takeaways li::before { content: ""; position: absolute; left: 0; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }

/* Stat callout inside prose */
.statcallout { display: flex; align-items: baseline; gap: 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; margin: 2em 0; }
.statcallout b { font-family: var(--font-num); font-weight: 700; font-size: clamp(38px, 5vw, 56px); color: var(--primary); line-height: 1; }
.statcallout span { color: var(--ink-2); font-size: 16px; line-height: 1.45; }

/* Table of contents (sticky sidebar option) */
.toc { position: sticky; top: 110px; font-size: 14px; }
.toc__label { font-family: var(--font-head); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.toc a { display: block; color: var(--ink-2); padding: 7px 0 7px 14px; border-left: 2px solid var(--line); transition: color .15s, border-color .15s; }
.toc a:hover { color: var(--ink); border-left-color: var(--primary); }

/* Author box */
.authorbox { display: flex; gap: 18px; align-items: flex-start; background: var(--panel-bg); border: 1px solid var(--line); border-radius: 18px; padding: 26px 28px; margin: 48px 0; max-width: var(--read-measure); }
.authorbox img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid var(--primary); flex: none; }
.authorbox h3 { font-size: 17px; margin-bottom: 2px; }
.authorbox .role { color: var(--primary); font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.authorbox p { color: var(--ink-2); font-size: 14.5px; line-height: 1.6; }

/* Article FAQ (reuses base .faq look but scoped width) */
.article-faq { max-width: var(--read-measure); margin-top: 48px; }
.article-faq h2 { font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 18px; }
.article-faq__item { border-bottom: 1px solid var(--line); padding: 16px 0; }
.article-faq__item summary { font-family: var(--font-head); font-weight: 600; font-size: 17px; color: var(--ink); cursor: pointer; list-style: none; }
.article-faq__item summary::-webkit-details-marker { display: none; }
.article-faq__item summary::after { content: "+"; float: right; color: var(--primary); font-weight: 700; }
.article-faq__item[open] summary::after { content: "\2013"; }
.article-faq__item p { color: var(--ink-2); font-size: 16px; line-height: 1.7; margin-top: 12px; }
/* Smooth open/close (same technique as the homepage .faq), relies on
   html { interpolate-size: allow-keywords } so block-size can animate to auto. */
.article-faq__item::details-content { block-size: 0; overflow: hidden; transition: block-size .28s ease, content-visibility .28s allow-discrete; }
.article-faq__item[open]::details-content { block-size: auto; }

/* Tag filter row + tag pills */
.blogfilter--tags { margin-top: 4px; }
.chip--tag { font-size: 12px; padding: 6px 13px; text-transform: none; letter-spacing: 0; }
.post-card__link { display: flex; flex-direction: column; flex: 1; text-decoration: none; }
.post-card__tags { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 22px 20px; }
.tagpill { font-family: var(--font-head); font-size: 11.5px; font-weight: 600; color: var(--ink-2); background: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; transition: color .15s, border-color .15s; }
.tagpill:hover { color: var(--primary); border-color: var(--primary); }
.taglist .tagpill { font-size: 12.5px; padding: 6px 13px; }

/* Inline content CTA (newsletter / demo nudge) */
.content-cta { background: var(--soft); border: 1px solid var(--line); border-radius: 20px; padding: 36px; text-align: center; margin: 48px 0; }
.content-cta h2 { font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 10px; }
.content-cta p { color: var(--ink-2); font-size: 16px; margin-bottom: 22px; max-width: 520px; margin-left: auto; margin-right: auto; }
.content-cta .kicker { color: var(--primary); margin-bottom: 0; }

/* Bottom-of-blog newsletter CTA (aurora background) */
.nlx { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background-color: var(--footer-bg); margin: 56px 0; }
.nlx--auroragrid { background-image: linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px); background-size: 40px 40px, 40px 40px; }
.nlx__fx { position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(38% 56% at 22% 28%, rgba(34,197,94,.20), transparent 70%), radial-gradient(40% 56% at 78% 72%, rgba(110,180,255,.16), transparent 72%); filter: blur(26px); animation: nlxAurora 13s ease-in-out infinite alternate; }
@keyframes nlxAurora { from { transform: translate3d(-4%,-3%,0) scale(1.05); } to { transform: translate3d(5%,4%,0) scale(1.18); } }
.nlx__inner { position: relative; z-index: 1; text-align: center; max-width: 640px; margin: 0 auto; padding: clamp(36px,5vw,60px); }
.nlx .kicker { color: var(--primary); }
.nlx .bn-h { font-family: var(--font-head); font-weight: 700; font-size: clamp(26px,4vw,40px); line-height: 1.12; letter-spacing: var(--head-ls); color: var(--ink); margin: 10px 0 0; }
.nlx .bn-sub { color: var(--ink-2); font-size: 16px; margin: 14px 0 0; }
.nlx .bn-form { max-width: 520px; margin: 24px auto 0; }
.nlx__consent { color: var(--muted); font-size: 12.5px; line-height: 1.5; max-width: 480px; margin: 12px auto 0; }
.nlx__consent a { color: var(--ink-2); text-decoration: underline; }
.nlx__done { color: var(--ink); font-weight: 600; font-size: 18px; margin: 24px 0 0; }
@media (prefers-reduced-motion: reduce) { .nlx__fx { animation: none; } }


/* Sources list */
.sources { max-width: var(--read-measure); margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
/* When Sources follows the FAQ, the FAQ's last divider is already the boundary —
   don't draw a second line right under the last question. */
.article-faq + .sources { border-top: 0; padding-top: 0; }
.sources h2 { font-family: var(--font-head); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.sources ol { margin: 0; padding-left: 20px; display: grid; gap: 9px; }
.sources li { font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.sources a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.sources a:hover { color: var(--primary); }
.sources__pub { color: var(--muted); }

/* Related posts */
.related { margin-top: 64px; }
.related__label { font-family: var(--font-head); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
.related__list { display: grid; gap: 12px; }
.related__item { display: flex; flex-direction: column; gap: 5px; padding: 18px 20px; background: var(--panel-bg); border: 1px solid var(--line); border-radius: 14px; transition: border-color .15s, transform .15s; }
.related__item:hover { border-color: var(--primary); transform: translateY(-2px); }
.related__cat { font-family: var(--font-head); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--primary); }
.related__title { font-family: var(--font-head); font-size: 17px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.related__item:hover .related__title { color: var(--primary); }
.related__date { font-size: 12.5px; color: var(--muted); }

/* Studio chrome (for the options-preview page) */
.studio-note { position: sticky; top: 92px; z-index: 5; background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 12px 18px; font-size: 13px; color: var(--ink-2); margin-bottom: 30px; }
.studio-note b { color: var(--primary); }

/* Floating layout-option switcher (injected by studio-switch.js on preview pages) */
.optionbar { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 200; display: flex; align-items: center; gap: 6px; background: rgba(20,17,10,.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid var(--line); border-radius: 999px; padding: 8px 10px 8px 16px; box-shadow: 0 16px 44px -14px rgba(0,0,0,.7); max-width: calc(100vw - 24px); }
.optionbar__label { font-family: var(--font-head); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; margin-right: 4px; }
.optionbar a.opt { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-num); font-weight: 700; font-size: 14px; color: var(--ink-2); background: transparent; border: 1px solid var(--line); transition: background .15s, color .15s, border-color .15s; }
.optionbar a.opt:hover { color: var(--ink); border-color: var(--primary); }
.optionbar a.opt.is-active { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.optionbar__all { margin-left: 6px; padding-left: 12px; border-left: 1px solid var(--line); font-family: var(--font-head); font-size: 12px; font-weight: 600; color: var(--primary); white-space: nowrap; }
.optionbar__all:hover { color: var(--primary-2); }
@media (max-width: 520px) { .optionbar__label { display: none; } }

/* Markdown blockquotes / tables inside MDX-rendered prose */
.prose blockquote { border-left: 4px solid var(--primary); padding: 4px 0 4px 26px; margin: 1.8em 0; }
.prose blockquote p { font-family: var(--font-display); font-size: clamp(20px, 2.4vw, 27px); line-height: 1.32; color: var(--ink); font-weight: 500; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; margin: 1.6em 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.prose th, .prose td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.prose thead th { background: var(--panel-bg); color: var(--ink); font-family: var(--font-head); font-size: 13px; letter-spacing: .03em; }

/* ===== Form pages (demo, report, login) ===== */
.demo { padding: 120px 0 80px; }
.demo__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: stretch; }
.demo__pitch { align-self: center; }
.demo__pitch h1 { font-size: clamp(30px, 4vw, 46px); margin-bottom: 18px; }
.demo__pitch .lead { color: var(--ink-2); font-size: 18px; max-width: 460px; margin-bottom: 28px; }
.demo__list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.demo__list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); font-weight: 500; }
.demo__list svg { width: 22px; height: 22px; flex: none; margin-top: 1px; }
.demo__list circle, .demo__list path { fill: none; stroke: var(--primary); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.demo__card { background: var(--panel-bg); border: 1px solid var(--line); border-radius: 20px; padding: 32px; box-shadow: 0 24px 60px -30px rgba(0,0,0,.7); }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--font-head); font-weight: 600; font-size: 14px; color: var(--ink); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; box-sizing: border-box; background: var(--bg); border: 1px solid var(--line);
  border-radius: 11px; color: var(--ink); font-family: var(--font-body); font-size: 15px;
  padding: 12px 14px; transition: border-color .15s, box-shadow .15s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(34,197,94,.15);
}
.field textarea { min-height: 92px; resize: vertical; }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.demo__card .btn { width: 100%; margin-top: 6px; }
.demo__fine { color: var(--muted); font-size: 13px; text-align: center; margin-top: 14px; }
.req { color: var(--primary); }
.demo__done { text-align: center; padding: 24px 8px; }
.demo__done h2 { font-size: 26px; margin-bottom: 10px; }
.demo__done p { color: var(--ink-2); }

/* Live market-scan animation under the report copy (the homepage scanner, framed). */
.report-scan { position: relative; margin-top: 32px; height: 300px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line);
  background:
    radial-gradient(700px 320px at 80% -20%, rgba(34,197,94,.10), transparent 60%),
    linear-gradient(rgba(34,197,94,.04) 1px, transparent 1px) 0 0 / 36px 36px,
    linear-gradient(90deg, rgba(34,197,94,.04) 1px, transparent 1px) 0 0 / 36px 36px,
    var(--soft); }
.report-scan__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

@media (max-width: 820px) {
  .demo { padding: 124px 0 56px; }
  .demo__grid { grid-template-columns: 1fr; gap: 36px; }
  .field--row { grid-template-columns: 1fr; }
  .report-scan { height: 220px; margin-top: 26px; }
}

/* Login */
.login { min-height: 72vh; display: grid; place-items: center; padding: 140px 0 80px; }
.login__card { width: 100%; max-width: 420px; background: var(--panel-bg); border: 1px solid var(--line); border-radius: 20px; padding: 36px; box-shadow: 0 24px 60px -30px rgba(0,0,0,.7); }
.login__card h1 { font-size: 28px; margin-bottom: 6px; }
.login__card .sub { color: var(--ink-2); font-size: 15px; margin-bottom: 26px; }
.login__card .btn { width: 100%; margin-top: 6px; }
.login__row { display: flex; justify-content: flex-end; margin: -6px 0 18px; }
.login__row a { color: var(--ink-2); font-size: 13px; font-weight: 500; }
.login__row a:hover { color: var(--primary); }
.login__alt { text-align: center; color: var(--muted); font-size: 14px; margin-top: 20px; }
.login__alt a { color: var(--ink); font-weight: 600; }
.login__alt a:hover { color: var(--primary); }
@media (max-width: 820px) { .login { padding: 116px 0 56px; } }

/* ===== "Why GTM Gameplan" section layout options (toggleable on home) ===== */
/* A: Before / After */
.wyA { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; margin-top: 14px; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.wyA__side { padding: 34px 36px; }
.wyA__side--old { background: var(--soft); }
.wyA__side--new { background: linear-gradient(180deg, rgba(34,197,94,.05), transparent); }
.wyA__lab { font-family: var(--font-num); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.wyA__side--new .wyA__lab { color: var(--primary); }
.wyA__list { list-style: none; display: grid; gap: 10px; }
.wyA__list li { color: var(--muted); font-size: 15px; }
.wyA__brief { display: grid; gap: 14px; }
.wyA__row { display: grid; grid-template-columns: 54px 1fr; gap: 14px; align-items: start; }
.wyA__k { font-family: var(--font-num); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--primary); padding-top: 3px; }
.wyA__v { color: var(--ink); font-size: 15px; line-height: 1.5; } .wyA__v span { color: var(--ink-2); }
.wyA__arrow { display: grid; place-items: center; padding: 0 8px; color: var(--primary); font-size: 26px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); background: var(--bg); }
@media (max-width: 820px) { .wyA { grid-template-columns: 1fr; } .wyA__arrow { border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 12px; } }
/* B: comparison */
.wyB { margin-top: 18px; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.wyB__row { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.wyB__row:first-child { border-top: 0; }
.wyB__head { background: var(--panel-bg); }
.wyB__cell { padding: 22px 26px; }
.wyB__cell--new { border-left: 2px solid var(--primary); background: rgba(34,197,94,.03); }
.wyB__who { font-family: var(--font-num); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.wyB__cell--new .wyB__who { color: var(--primary); }
.wyB__head .wyB__cell { font-family: var(--font-head); font-weight: 700; font-size: 16px; color: var(--ink); }
.wyB__title { color: var(--ink); font-weight: 600; font-size: 16px; display: block; margin-bottom: 4px; }
.wyB__cell p { color: var(--ink-2); font-size: 14.5px; line-height: 1.5; }
.wyB__cell--old .wyB__title, .wyB__cell--old p { color: var(--muted); }
/* C: funnel */
.wyC { margin-top: 26px; }
.wyC__track { display: grid; grid-template-columns: repeat(4, 1fr); }
.wyC__node { position: relative; padding: 0 18px; text-align: center; }
.wyC__node::before { content: ""; position: absolute; top: 19px; left: -50%; width: 100%; height: 2px; background: linear-gradient(90deg, var(--line), var(--primary)); z-index: 0; }
.wyC__node:first-child::before { display: none; }
.wyC__dot { position: relative; z-index: 1; width: 40px; height: 40px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center; font-family: var(--font-num); font-weight: 700; font-size: 14px; color: var(--primary-ink); background: var(--primary); }
.wyC__node:first-child .wyC__dot { background: var(--panel-bg); color: var(--muted); border: 1px solid var(--line); }
.wyC__stage { font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--ink); margin-bottom: 8px; }
.wyC__node p { color: var(--ink-2); font-size: 13.5px; line-height: 1.5; }
@media (max-width: 760px) { .wyC__track { grid-template-columns: 1fr; gap: 22px; text-align: left; } .wyC__node { display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding: 0; } .wyC__node::before { display: none; } .wyC__dot { margin: 0; } }
/* D: manifesto */
.wyD__list { list-style: none; display: grid; margin-top: 18px; }
.wyD__row { display: grid; grid-template-columns: 86px 1fr; gap: 28px; padding: 28px 0; border-top: 1px solid var(--line); align-items: baseline; }
.wyD__n { font-family: var(--font-num); font-weight: 700; font-size: 22px; color: var(--primary); }
.wyD__row h3 { font-family: var(--font-display); font-size: clamp(22px, 2.8vw, 30px); color: var(--ink); line-height: 1.15; margin-bottom: 8px; }
.wyD__row p { color: var(--ink-2); font-size: 16px; line-height: 1.6; max-width: 640px; }
.wyD__row p .hl2 { color: var(--ink); font-weight: 600; }

/* Inline section switcher control (numbered) injected on .secwrap sections */
.secwrap { position: relative; }
.secvar { position: absolute; top: 14px; right: 16px; z-index: 6; display: flex; align-items: center; gap: 4px; background: rgba(20,17,10,.92); border: 1px solid var(--line); border-radius: 999px; padding: 5px 8px; }
.secvar__label { font-family: var(--font-head); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 0 4px; }
.secvar button { width: 24px; height: 24px; border-radius: 50%; border: 0; cursor: pointer; background: transparent; color: var(--ink-2); font-family: var(--font-num); font-weight: 700; font-size: 12px; }
.secvar button.is-active { background: var(--primary); color: var(--primary-ink); }
.secwrap > .v { display: none; }
.secwrap > .v.is-on { display: block; }

/* ===========================================================
   PROBLEM section layout variants (#problem)
   =========================================================== */
/* 2: numbered editorial rows */
.pr-rows { list-style: none; margin: 8px 0 0; display: grid; }
.pr-row { display: grid; grid-template-columns: 92px 1fr; gap: 28px; align-items: baseline; padding: 28px 0; border-top: 1px solid var(--line); }
.pr-row:first-child { border-top: 0; }
.pr-num { font-family: var(--font-num); font-weight: 700; font-size: 26px; color: var(--primary); }
.pr-row__title { font-family: var(--font-display); font-size: clamp(22px, 2.8vw, 30px); color: var(--ink); line-height: 1.15; margin-bottom: 8px; }
.pr-row__copy { color: var(--ink-2); font-size: 16px; line-height: 1.6; max-width: 640px; }
@media (max-width: 640px) { .pr-row { grid-template-columns: 56px 1fr; gap: 18px; } .pr-num { font-size: 20px; } }
/* 3: by hand vs the engine */
.pr-split { display: grid; grid-template-columns: 1fr 56px 1fr; align-items: stretch; gap: 0; margin-top: 8px; }
.pr-side { border: 1px solid var(--line); border-radius: 18px; padding: 30px 28px; }
.pr-side--engine { border-color: var(--primary); background: rgba(34,197,94,.03); }
.pr-side__tag { font-family: var(--font-num); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pr-side--engine .pr-side__tag { color: var(--primary); }
.pr-side__big { font-family: var(--font-display); font-size: clamp(26px, 3.4vw, 38px); line-height: 1.05; color: var(--ink); margin: 12px 0 10px; }
.pr-side__sub { color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.pr-side__list { list-style: none; margin: 18px 0 0; display: grid; gap: 10px; }
.pr-side__list li { position: relative; padding-left: 20px; color: var(--ink-2); font-size: 14.5px; line-height: 1.45; }
.pr-side__list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.pr-side--engine .pr-side__list li::before { background: var(--primary); }
.pr-split__flip { display: grid; place-items: center; font-size: 24px; color: var(--primary); }
@media (max-width: 760px) { .pr-split { grid-template-columns: 1fr; gap: 14px; } .pr-split__flip { transform: rotate(90deg); padding: 4px 0; } }
/* 4: manifesto */
.pr-manifesto { font-family: var(--font-display); font-size: clamp(26px, 4vw, 46px); line-height: 1.25; color: var(--ink-2); max-width: 18em; margin: 8px auto 0; }
.pr-mark { background: none; color: var(--ink); font-weight: 600; box-shadow: inset 0 -.32em 0 rgba(34,197,94,.22); }

/* ===========================================================
   HOW IT WORKS layout variants (#how)
   =========================================================== */
/* 2: vertical timeline */
.hw-time { list-style: none; margin: 8px auto 0; max-width: 760px; display: grid; }
.hw-time__step { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 24px; padding: 0 0 36px 0; }
.hw-time__step::before { content: ""; position: absolute; left: 31px; top: 46px; bottom: 0; width: 2px; background: linear-gradient(var(--primary), var(--line)); }
.hw-time__step:last-child { padding-bottom: 0; }
.hw-time__step:last-child::before { display: none; }
.hw-time__num { position: relative; z-index: 1; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-num); font-weight: 700; font-size: 18px; color: var(--primary-ink); background: var(--primary); }
.hw-time__body h3 { font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 28px); color: var(--ink); margin: 10px 0 8px; }
.hw-time__body p { color: var(--ink-2); font-size: 16px; line-height: 1.6; }
.hw-time__meta { display: inline-block; margin-top: 12px; font-family: var(--font-num); font-size: 12px; letter-spacing: .04em; color: var(--muted); }
/* 3: three columns */
.hw-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 8px; }
.hw-col { border: 1px solid var(--line); border-radius: 18px; padding: 28px 24px; }
.hw-col__step { font-family: var(--font-num); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); }
.hw-col__title { font-family: var(--font-display); font-size: clamp(24px, 3vw, 32px); color: var(--ink); margin: 8px 0 10px; }
.hw-col__lead { color: var(--ink-2); font-size: 15px; line-height: 1.55; margin-bottom: 16px; }
.hw-col__list { list-style: none; display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 16px; }
.hw-col__list li { position: relative; padding-left: 20px; color: var(--ink-2); font-size: 14px; line-height: 1.45; }
.hw-col__list li::before { content: ""; position: absolute; left: 0; top: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }
@media (max-width: 860px) { .hw-cols { grid-template-columns: 1fr; } }
/* 4: horizontal flow */
.hw-flow { display: grid; grid-template-columns: 1fr 40px 1fr 40px 1fr; align-items: center; gap: 0; margin-top: 8px; }
.hw-flow__node { border: 1px solid var(--line); border-radius: 18px; padding: 28px 24px; text-align: center; }
.hw-flow__num { font-family: var(--font-num); font-weight: 700; font-size: 14px; color: var(--primary-ink); background: var(--primary); width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 14px; }
.hw-flow__title { font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 28px); color: var(--ink); margin-bottom: 8px; }
.hw-flow__text { color: var(--ink-2); font-size: 14.5px; line-height: 1.5; }
.hw-flow__arrow { display: grid; place-items: center; font-size: 24px; color: var(--primary); }
@media (max-width: 860px) { .hw-flow { grid-template-columns: 1fr; gap: 14px; } .hw-flow__arrow { transform: rotate(90deg); } }

/* ===========================================================
   PERSONALIZED layout variants (#personal)
   =========================================================== */
/* 2: one brand, two verdicts */
.pz-split { display: grid; grid-template-columns: 260px 1fr; gap: 26px; align-items: start; margin-top: 8px; }
.pz-split__brand { border: 1px solid var(--line); border-radius: 18px; padding: 26px 24px; }
.pz-split__eyebrow { font-family: var(--font-num); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pz-split__name { display: block; font-family: var(--font-display); font-size: 28px; color: var(--ink); margin: 8px 0 4px; }
.pz-split__cat { color: var(--ink-2); font-size: 14px; }
.pz-split__lanes { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.pz-lane { border: 1px solid var(--line); border-radius: 16px; padding: 22px 22px 24px; }
.pz-lane--win { border-color: var(--primary); background: rgba(34,197,94,.03); }
.pz-lane__head { display: grid; gap: 2px; margin-bottom: 16px; }
.pz-lane__prop { font-family: var(--font-head); font-weight: 700; font-size: 16px; color: var(--ink); }
.pz-lane__sub { color: var(--muted); font-size: 13px; }
.pz-lane__scorewrap { display: flex; align-items: baseline; gap: 8px; }
.pz-lane__score { font-family: var(--font-num); font-weight: 700; font-size: 40px; line-height: 1; color: var(--muted); }
.pz-lane--win .pz-lane__score { color: var(--primary); }
.pz-lane__label { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pz-meter { height: 6px; border-radius: 999px; background: var(--line); margin: 12px 0 14px; overflow: hidden; }
.pz-meter__fill { display: block; height: 100%; border-radius: 999px; background: var(--primary); }
.pz-meter__fill--low { background: var(--muted); }
.pz-lane__why { color: var(--ink-2); font-size: 14.5px; line-height: 1.5; }
.pz-lane__flag { display: inline-block; margin-top: 16px; font-family: var(--font-num); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; background: var(--primary); color: var(--primary-ink); }
.pz-lane__flag--off { background: transparent; border: 1px solid var(--line); color: var(--muted); }
.pz-split__foot { text-align: center; color: var(--ink-2); font-size: 15px; line-height: 1.6; max-width: 620px; margin: 26px auto 0; }
@media (max-width: 820px) { .pz-split { grid-template-columns: 1fr; } .pz-split__lanes { grid-template-columns: 1fr; } }
/* 3: inputs to output */
.pz-flow { display: grid; grid-template-columns: 1fr 56px 1.2fr; align-items: center; gap: 0; margin-top: 8px; }
.pz-flow__inputs { list-style: none; display: grid; gap: 12px; }
.pz-input { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; display: grid; gap: 3px; }
.pz-input__k { font-family: var(--font-num); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--primary); }
.pz-input__v { color: var(--ink-2); font-size: 14.5px; }
.pz-flow__pipe { position: relative; height: 2px; background: linear-gradient(90deg, var(--line), var(--primary)); }
.pz-flow__pulse { position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.pz-flow__out { border: 1px solid var(--primary); background: rgba(34,197,94,.03); border-radius: 18px; padding: 26px 26px 28px; }
.pz-out__eyebrow { font-family: var(--font-num); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); }
.pz-out__ranks { list-style: none; display: grid; gap: 8px; margin: 14px 0 18px; }
.pz-out__ranks li { display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.pz-out__ranks li:first-child { border-top: 0; }
.pz-out__pos { font-family: var(--font-num); font-weight: 700; color: var(--muted); }
.pz-out__brand { color: var(--ink); font-weight: 600; font-size: 15px; }
.pz-out__score { font-family: var(--font-num); font-weight: 700; font-size: 18px; color: var(--primary); }
.pz-out__words { border-left: 2px solid var(--primary); margin: 0; padding: 4px 0 4px 16px; color: var(--ink-2); font-size: 14.5px; line-height: 1.55; font-style: normal; }
.pz-out__stamp { display: block; margin-top: 16px; font-family: var(--font-num); font-size: 12px; letter-spacing: .04em; color: var(--muted); }
@media (max-width: 820px) { .pz-flow { grid-template-columns: 1fr; gap: 16px; } .pz-flow__pipe { width: 2px; height: 40px; justify-self: center; background: linear-gradient(var(--line), var(--primary)); } }
/* 4: punchy duo */
.pz-duo { display: grid; grid-template-columns: 1fr 48px 1fr; align-items: stretch; gap: 0; margin-top: 8px; }
.pz-duo__col { border: 1px solid var(--line); border-radius: 18px; padding: 30px 28px; display: flex; flex-direction: column; }
.pz-duo__col--good { border-color: var(--primary); background: rgba(34,197,94,.03); }
.pz-duo__tag { font-family: var(--font-num); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pz-duo__col--good .pz-duo__tag { color: var(--primary); }
.pz-duo__quote { color: var(--ink-2); font-size: 16px; line-height: 1.6; margin: 16px 0; flex: 1; }
.pz-duo__col--good .pz-duo__quote { color: var(--ink); }
.pz-duo__verdict { font-family: var(--font-num); font-size: 13px; letter-spacing: .04em; }
.pz-duo__verdict--bad { color: var(--muted); }
.pz-duo__verdict--good { color: var(--primary); }
.pz-duo__vs { display: grid; place-items: center; font-family: var(--font-num); color: var(--muted); }
@media (max-width: 760px) { .pz-duo { grid-template-columns: 1fr; gap: 14px; } .pz-duo__vs { padding: 4px 0; } }

/* ===========================================================
   WHO IT'S FOR layout variants (#who)
   =========================================================== */
/* 2: editorial list */
.whlist { list-style: none; margin: 8px auto 0; max-width: 760px; display: grid; }
.whlist__row { display: grid; grid-template-columns: 56px 1fr auto; align-items: baseline; gap: 20px; padding: 20px 0; border-top: 1px solid var(--line); }
.whlist__row:first-child { border-top: 0; }
.whlist__num { font-family: var(--font-num); font-weight: 700; font-size: 16px; color: var(--primary); }
.whlist__name { font-family: var(--font-head); font-weight: 700; font-size: clamp(18px, 2.2vw, 22px); color: var(--ink); }
.whlist__desc { color: var(--muted); font-size: 14px; text-align: right; }
@media (max-width: 600px) { .whlist__row { grid-template-columns: 40px 1fr; } .whlist__desc { grid-column: 2; text-align: left; } }
/* 3: pill cloud */
.whcloud { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 12px 0 0; }
.whpill { display: inline-block; padding: 14px 24px; border: 1px solid var(--line); border-radius: 999px; font-family: var(--font-head); font-weight: 600; font-size: clamp(16px, 2vw, 22px); color: var(--ink); }
.whcloud li:nth-child(2n) .whpill { border-color: var(--primary); color: var(--primary); }
.whcloud__note { text-align: center; color: var(--ink-2); font-size: 15px; margin-top: 24px; }
/* 4: statement */
.whstate { font-family: var(--font-display); font-size: clamp(26px, 4vw, 46px); line-height: 1.3; color: var(--ink-2); text-align: center; margin: 8px auto 0; }
.whmark { background: none; color: var(--ink); font-weight: 600; box-shadow: inset 0 -.3em 0 rgba(34,197,94,.22); }

/* =========================================================
   Article layout: full-bleed cover hero + sticky rail
   (combines the v3 cover with the v2 sidebar TOC/share)
   ========================================================= */
.pagewrap.artblog { padding-top: 0; max-width: none; }
.artblog article { display: block; }

/* ---- Full-bleed cover hero ---- */
.cover { position: relative; min-height: min(80vh, 700px); display: flex; align-items: flex-end; overflow: hidden; background: var(--bg); }
.cover__bg { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center 28%; filter: saturate(.85) brightness(.5); transform: scale(1.02); }
.cover__scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none; background:
  linear-gradient(to bottom, rgba(13,15,19,.5) 0%, rgba(13,15,19,.25) 30%, rgba(13,15,19,.8) 76%, var(--bg) 100%),
  radial-gradient(120% 90% at 50% 132%, rgba(34,197,94,.16) 0%, rgba(34,197,94,0) 60%); }
.cover__inner { position: relative; z-index: 2; width: 100%; max-width: 1080px; margin: 0 auto; padding: 150px 28px 60px; }
.cover .crumbs { color: rgba(255,255,255,.7); margin-bottom: 26px; }
.cover .crumbs a { color: rgba(255,255,255,.7); }
.cover .crumbs a:hover { color: #fff; }
.cover .crumbs span[aria-current] { color: #fff; }
.cover .crumbs .sep { color: rgba(255,255,255,.4); }
.cover__title { font-family: var(--font-display); color: #fff; font-weight: 600; font-size: clamp(34px, 6vw, 76px); line-height: 1.04; letter-spacing: -.012em; margin: 0; max-width: 18ch; text-shadow: 0 2px 40px rgba(0,0,0,.5); }
.cover__dek { color: rgba(255,255,255,.92); font-size: clamp(17px, 2vw, 22px); line-height: 1.5; margin: 22px 0 0; max-width: 60ch; text-shadow: 0 1px 24px rgba(0,0,0,.45); }
.cover__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 30px; }
.cover__author { display: flex; align-items: center; gap: 13px; }
.cover__avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 2px solid var(--primary); flex: none; }
.cover__byline { line-height: 1.35; }
.cover__byline b { color: #fff; font-size: 14.5px; font-weight: 700; display: block; }
.cover__byline span { color: rgba(255,255,255,.72); font-size: 13px; }
.cover__facts { display: flex; gap: 18px; color: rgba(255,255,255,.72); font-size: 13px; margin-left: 6px; padding-left: 18px; border-left: 1px solid rgba(255,255,255,.22); }
.cover__facts time, .cover__facts span { white-space: nowrap; }

/* ---- Sticky rail + reading column ---- */
.artblog__body { display: grid; grid-template-columns: 232px minmax(0, var(--read-measure)); gap: 64px; justify-content: center; padding-top: 52px; padding-bottom: 72px; }
.artblog__railinner { position: sticky; top: 120px; }
.artblog__rail .toc { position: static; top: auto; }
.artblog__share { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.artblog__share-label { font-family: var(--font-head); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.artblog__share-links { display: flex; flex-wrap: wrap; gap: 10px; }
.artblog__share-links a { font-family: var(--font-head); font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--ink-2); background: var(--panel-bg); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; transition: color .15s, border-color .15s; }
.artblog__share-links a:hover { color: var(--ink); border-color: var(--primary); }
.artblog__read { min-width: 0; }
.artblog__read .prose, .artblog__read .authorbox, .artblog__read .article-faq, .artblog__read .sources, .artblog__read .takeaways, .artblog__read .taglist { max-width: none; }
.artblog .prose h2 { scroll-margin-top: 110px; }

/* Glowing green takeaway bullets */
.takeaways li::before { box-shadow: 0 0 10px 1px rgba(34,197,94,.6); }

/* Related grid below both columns */
.artblog .related { margin: 60px auto 0; max-width: var(--read-measure); }
.related__list--grid { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 980px) {
  .artblog__body { grid-template-columns: 1fr; gap: 0; }
  .artblog__rail { margin-bottom: 30px; }
  .artblog__railinner { position: static; top: auto; }
  .artblog__share { display: none; }
  .related__list--grid { grid-template-columns: 1fr; }
  .cover__inner { padding: 128px 22px 44px; }
  .cover__facts { margin-left: 0; padding-left: 0; border-left: 0; }
}
