:root { font-family: Inter, ui-sans-serif, system-ui, sans-serif; color: #1e2428; background: #f8f8f5; font-synthesis: none; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
a { color: inherit; }
.masthead, .page-shell, footer { width: min(1160px, calc(100% - 48px)); margin: 0 auto; }
.masthead { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid #d9dedc; }
.wordmark { font-weight: 800; text-decoration: none; letter-spacing: .02em; }
nav { display: flex; gap: 22px; align-items: center; font-size: .9rem; }
nav a { text-decoration: none; }
.nav-action, .action { background: var(--accent); color: white; padding: 12px 16px; text-decoration: none; font-weight: 700; }
h1 { max-width: 760px; margin: 18px 0 24px; font-size: clamp(2.8rem, 6vw, 5.6rem); line-height: .98; letter-spacing: -.04em; }
.action { display: inline-flex; gap: 24px; margin-top: 20px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; }
.section-heading h2, .notes h2 { max-width: 540px; margin: 0; font-size: clamp(1.8rem, 3vw, 3rem); line-height: 1.08; letter-spacing: -.03em; }
footer { padding: 28px 0 42px; border-top: 1px solid #d9dedc; display: flex; gap: 22px; justify-content: space-between; color: #6d7778; font-size: .78rem; }
footer a { color: var(--accent); }

/* --- Structural layout variants (split/editorial/ledger/lab/common) --- */
/* Tab-style pill nav, used by ledger + lab variants instead of the plain text nav */
.masthead-tabs { min-height: 96px; }
.tab-nav { gap: 10px; }
.tab-pill { padding: 9px 16px; border: 1px solid #d9dedc; border-radius: 999px; font-weight: 600; transition: border-color .15s ease, color .15s ease; }
.tab-pill:hover { border-color: var(--accent); color: var(--accent); }

/* Two-column shell with a sticky on-page TOC sidebar (split + common variants) */
.page-shell { display: block; }
@media (min-width: 900px) {
  .page-shell:has(.page-toc) { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 48px; align-items: start; }
  .page-toc { position: sticky; top: 32px; padding-top: 4px; }
}
.page-toc { display: none; }
@media (min-width: 900px) { .page-toc { display: block; } }
.toc-label { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: #6d7778; margin: 0 0 12px; }
.page-toc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; border-left: 2px solid #d9dedc; padding-left: 16px; }
.page-toc a { color: #5d6668; text-decoration: none; font-size: .88rem; line-height: 1.4; }
.page-toc a:hover { color: var(--accent); }

/* Editorial variant: reversed section-heading rhythm feels denser/magazine-like */
.layout-editorial .section-heading { flex-direction: column; align-items: flex-start; gap: 6px; }

/* Ledger variant: pillar content renders as a bordered fact-ledger table instead of flowing articles */
.pillar-ledger { display: block; border: 1px solid #cbd3d0; }
.pillar-ledger-row { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; padding: 22px 24px; border-bottom: 1px solid #e4e8e6; max-width: none !important; margin: 0 !important; }
.pillar-ledger-row:last-child { border-bottom: none; }
.pillar-ledger-row h2 { margin: 0; font-size: 1.05rem; color: var(--accent); }
@media (max-width: 700px) { .pillar-ledger-row { grid-template-columns: 1fr; } }

/* Lab variant: hero + module cards get extra breathing room and a soft accent backdrop */
.layout-lab .brand-hero { background: var(--accent-soft); padding: 40px 32px; border-bottom: none; }
.layout-lab .pillar-body { padding-top: 40px; }

/* Common variant: single centered column, no ledger/tab treatments, narrower measure */
.layout-common .pillar-body, .layout-common .bonus-card, .layout-common .safety-panel, .layout-common .pros-cons { max-width: 820px; margin-left: auto; margin-right: auto; }

@media (max-width: 760px) {
  .masthead, .page-shell, footer { width: min(100% - 32px, 620px); }
  nav a:not(.nav-action):not(.tab-pill) { display: none; }
  h1 { font-size: clamp(2.7rem, 14vw, 4.4rem); }
  .section-heading { display: block; }
  footer { display: grid; gap: 10px; }
  .pillar-ledger-row { padding: 18px; }
}

/* --- Brand review layout (parasite-SEO pillar/sub pages) --- */
.brand-mention { cursor: pointer; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 2px; }
.brand-hero { padding: 72px 0 56px; border-bottom: 1px solid #d9dedc; }
.brand-hero h1 { cursor: pointer; }
.hero-meta { display: flex; gap: 26px; align-items: center; margin: 8px 0 22px; flex-wrap: wrap; }
.hero-rating { font-size: 1.05rem; color: #d8a11a; letter-spacing: 2px; }
.hero-rating b { color: #1e2428; font-size: 1rem; margin-left: 6px; letter-spacing: 0; }
.hero-users { color: #5d6668; font-size: .92rem; border-left: 2px solid #d9dedc; padding-left: 18px; }
.hero-core { max-width: 640px; color: #45504f; line-height: 1.7; font-size: 1.05rem; }
.pillar-body, .subpage-body { padding: 56px 0; border-bottom: 1px solid #d9dedc; }
.pillar-section, .subpage-body .pillar-section { max-width: 760px; margin: 0 auto 44px; }
.pillar-section:last-child { margin-bottom: 0; }
.pillar-section h2 { font-size: 1.55rem; letter-spacing: -.02em; margin-bottom: 14px; }
.pillar-section p { color: #43504f; line-height: 1.75; font-size: 1.02rem; }
.subpage-body { max-width: 760px; margin: 0 auto; padding: 56px 24px; border-bottom: none; }
.subpage-body > .eyebrow { display: block; margin-bottom: 18px; }
.subpage-body > .eyebrow a { color: var(--accent); text-decoration: none; font-weight: 700; font-size: .85rem; }
.subpage-body h1 { font-size: clamp(2.1rem, 4vw, 3.1rem); cursor: pointer; }
.pros-cons, .bonus-card, .safety-panel { padding: 58px 0; border-bottom: 1px solid #d9dedc; }
.pc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 36px; }
.pc-col h3 { font-size: 1.05rem; margin-bottom: 16px; }
.pc-col ul { margin: 0; padding-left: 20px; color: #45504f; line-height: 1.65; }
.pc-pros h3 { color: #2c6b3f; }
.pc-cons h3 { color: #8a3a2b; }
.pc-col li { margin-bottom: 10px; }
.bonus-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 36px; }
.bonus-grid article { background: var(--accent-soft); padding: 22px; }
.bonus-grid h3 { font-size: .98rem; margin: 0 0 10px; color: var(--accent); }
.bonus-grid p { margin: 0; color: #45504f; line-height: 1.6; font-size: .94rem; }
.safety-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 36px 0 28px; }
.safety-fact { border: 1px solid #d9dedc; padding: 18px 20px; }
.safety-label { display: block; font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: #6d7778; margin-bottom: 6px; }
.safety-value { font-weight: 600; }
.safety-panel > p { max-width: 760px; color: #45504f; line-height: 1.7; }
.subpage-nav { padding: 58px 0; border-bottom: 1px solid #d9dedc; }
.subpage-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-top: 34px; }
.subpage-card { display: block; border: 1px solid #d9dedc; padding: 22px; text-decoration: none; position: relative; transition: border-color .2s ease, transform .2s ease; }
.subpage-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.subpage-card h3 { font-size: 1.02rem; margin: 0 0 8px; padding-right: 24px; }
.subpage-card p { margin: 0; color: #5d6668; font-size: .9rem; line-height: 1.55; }
.subpage-arrow { position: absolute; top: 20px; right: 20px; color: var(--accent); }
.related-links { padding: 40px 0 58px; }
.related-links ul { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 14px; }
.internal-link { color: var(--accent); font-weight: 600; text-decoration: none; }
.internal-link:hover { text-decoration: underline; }
.editorial-disclosure { padding: 26px 0 40px; }
.editorial-disclosure p { max-width: 760px; margin: 0 auto; color: #7c8686; font-size: .8rem; line-height: 1.6; }
.cta-overlay-inner { text-align: center; color: #fff; }
.cta-overlay-spinner { display: inline-block; width: 34px; height: 34px; border: 3px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: cta-spin .8s linear infinite; margin-bottom: 14px; }
.cta-overlay-inner p { margin: 0; font-weight: 600; letter-spacing: .02em; }
@keyframes cta-spin { to { transform: rotate(360deg); } }
@media (max-width: 760px) { .pc-grid, .bonus-grid, .safety-grid { grid-template-columns: 1fr; } .hero-meta { gap: 14px; } }
