/* AIForgeLab rev 3 (ported from the Compass / VidLab rev 3 system, 27 Nov 2026).
   New file only: the inline site CSS, qa.css and pick-card.css are untouched. Scoped to body.rd.
   Forge brand: dark surfaces + gold accent (--color-accent). Gold fill is used only for the one primary CTA
   (the quick-answer button); every other buy button on the page is a gold outline.
   Promo strips (Higgsfield 75%, PlayPeach BF, BF home line) carry their own markup/inline styles and are not restyled. */
body.rd{--rd-radius:14px;--rd-gap:24px;--rd-quiet-border:color-mix(in oklab,var(--color-accent) 55%,var(--color-border))}
/* pick-card.css reads --surface/--text/--accent..., which Forge never sets, so the card falls back to a blue accent.
   On redesigned pages, feed it the Forge palette. */
body.rd .pick-card{--surface:var(--color-surface);--text:var(--color-text);--muted:var(--color-text-muted);--border:var(--color-border);--accent:var(--color-accent);--accent-ink:var(--color-accent-text);--shadow:none}
/* folds */
body.rd details.rd-more{margin:12px 0 0;border-top:1px solid var(--color-border)}
body.rd details.rd-more > summary{cursor:pointer;list-style:none;padding:10px 0;font-weight:700;font-size:.92rem;color:var(--color-accent);display:flex;align-items:center}
body.rd details.rd-more > summary::-webkit-details-marker{display:none}
body.rd details.rd-more > summary::before{content:"+";display:inline-block;width:1.2em;font-weight:800}
body.rd details.rd-more[open] > summary::before{content:"−"}
body.rd details.rd-more > .rd-more__body{padding-bottom:8px}
/* one solid CTA: secondary buy buttons go to a calm outline (links, rel and text unchanged) */
body.rd :is(.q161-cont .hero-actions,.featured-card,.honorable-mention,.rd-hero-pick,.review-cta-row,.verdict-box,.q161-cont.review-header) .btn-primary,
body.rd .rd-hero-pick .pick-card__cta,body.rd .q161-cont .pick-card__cta{
  background:transparent!important;color:var(--color-accent)!important;border:1.5px solid var(--rd-quiet-border)!important;box-shadow:none!important}
body.rd :is(.q161-cont .hero-actions,.featured-card,.honorable-mention,.review-cta-row,.verdict-box) .btn-primary:hover{background:var(--color-accent-muted)!important;transform:none}
/* 44px tap targets in <main> (promo strips and sticky bar excluded) */
body.rd main :is(.btn,.pick-card__cta,.qa-box__cta,details.rd-more > summary,.filter-btn):not([class*="hf-bf"] *):not([class*="pp-bf"] *):not([class*="q253"] *){min-height:44px;box-sizing:border-box}
body.rd main :is(a.btn,.pick-card__cta,.qa-box__cta):not([class*="hf-bf"] *):not([class*="pp-bf"] *):not([class*="q253"] *){display:inline-flex;align-items:center;justify-content:center}
/* sticky bar only after the reader has passed the quick answer card */
body.rd.rd-sticky-gated:not(.rd-past-verdict) :is(.qa-sticky,.mobile-review-cta){display:none!important}

/* ===== homepage ===== */
body.rd-home section.q161-head.hero{padding-top:16px;padding-bottom:4px}
body.rd-home section.q161-head .hero-badge{background:transparent;border:0;padding:0;margin-bottom:12px;color:var(--color-text-muted)}
body.rd-home section.q161-head h1{font-size:clamp(2rem,4.2vw,3.1rem);margin-bottom:10px}
body.rd-home .bf-home-line,body.rd-home .prices-checked{text-align:center}
body.rd-home .rd-hero-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:var(--rd-gap);align-items:start;width:min(calc(100% - 44px),1180px);max-width:none;margin:18px auto 8px;padding:0}
body.rd-home .rd-hero-grid > .qa-box{margin:0!important;max-width:none;width:auto;background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--rd-radius);box-shadow:none}
body.rd-home .rd-hero-pick .pick-card{margin:0;max-width:none;border:1px solid var(--color-border);border-radius:var(--rd-radius);background:var(--color-bg)}
body.rd-home .rd-hero-pick .pick-card__runner{margin:10px 2px 0;font-size:.9rem;color:var(--color-text-muted)}
body.rd-home section.q161-cont.hero{padding-top:20px;padding-bottom:24px}
body.rd-home section.q161-cont .hero-answer{max-width:820px;margin-left:auto;margin-right:auto}
body.rd-home .use-case-card{box-shadow:none}
body.rd-home .featured-card{box-shadow:none}
body.rd-home .page-section{padding-top:48px;padding-bottom:48px}
/* reviewer box now sits above the FAQ */
body.rd-home #page-home > div:has(> .reviewer-box){width:min(calc(100% - 44px),820px);margin:32px auto 0}
@media(max-width:900px){
 body.rd-home .rd-hero-grid{grid-template-columns:1fr}
 body.rd-home .rd-hero-grid > .qa-box{display:flex;flex-direction:column}
 body.rd-home .rd-hero-grid > .qa-box > *{order:3}
 body.rd-home .rd-hero-grid > .qa-box > .qa-box__title{order:0}
 body.rd-home .rd-hero-grid > .qa-box > .qa-box__cta{order:1;margin:4px 0 12px;width:100%}
 body.rd-home .rd-hero-grid > .qa-box > .qa-box__grid{order:2}
}
@media(max-width:640px){
 body.rd-home section.q161-head.hero{padding-top:24px}
 body.rd-home section.q161-head h1{font-size:1.9rem}
 body.rd-home .bf-home-line,body.rd-home .prices-checked{text-align:left}
}

/* ===== review pages ===== */
body.rd-review article.review-page > aside.qa-box{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--rd-radius);box-shadow:none}
body.rd-review article.review-page > aside.qa-box{display:flex;flex-direction:column}
body.rd-review article.review-page > aside.qa-box > *{order:3}
body.rd-review article.review-page > aside.qa-box > .qa-box__title{order:0}
body.rd-review article.review-page > aside.qa-box > .qa-box__cta{order:1;margin:4px 0 14px;align-self:flex-start}
body.rd-review article.review-page > aside.qa-box > .qa-box__grid{order:2}
body.rd-review .q161-cont.review-header .pick-card{max-width:none;box-shadow:none}
body.rd-review .verdict-box,body.rd-review .trust-panel{box-shadow:none}
body.rd-review #what-we-verified details.rd-more{border-top:0;margin-top:0}
@media(max-width:640px){
 body.rd-review article.review-page > aside.qa-box > .qa-box__cta{width:100%;align-self:stretch}
}

/* ===== guides: best-of, category, alternatives (body.rd-guide), added for the rollout; pilot rules above are unchanged ===== */
body.rd-guide main section.hero{padding-top:28px;padding-bottom:12px}
body.rd-guide main :is(section.hero,header.article-hero,.q161-head) h1{font-size:clamp(1.9rem,4vw,2.8rem);line-height:1.12}
body.rd-guide main p.rd-qa{max-width:72ch;font-size:1.02rem;line-height:1.6;padding:14px 16px;margin-top:12px;background:var(--color-surface)!important;border:1px solid var(--color-border)!important;border-radius:var(--rd-radius)}
body.rd-guide main .card,body.rd-guide main .platform-card,body.rd-guide main .pick-card,body.rd-guide main .featured-card{box-shadow:none}
body.rd-guide main .card:hover,body.rd-guide main .platform-card:hover{transform:none;box-shadow:none}
body.rd-guide main aside.qa-box{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--rd-radius);box-shadow:none}
/* one solid CTA per page: the quick-answer / pick-card button, or the first card in the first grid.
   Every other buy button is a gold outline (link, rel and text unchanged). */
body.rd-guide main :is(.btn.primary,.btn-primary):not(.qa-box__cta),
body.rd-guide:has(.qa-box__cta) main .pick-card__cta{background:transparent!important;color:var(--color-accent)!important;border:1.5px solid var(--rd-quiet-border)!important;box-shadow:none!important}
body.rd-guide:not(:has(.qa-box__cta)):not(:has(.pick-card__cta)) main section.section:not(section.section ~ section.section) .grid > .card:first-child .btn.primary,
body.rd-guide:not(:has(.qa-box__cta)):not(:has(.pick-card__cta)) main div.disclosure + section.section .grid > .card:first-child .btn.primary{background:var(--color-accent)!important;color:var(--color-accent-text)!important;border-color:var(--color-accent)!important}
body.rd-guide main .pick-card__cta{display:inline-flex;align-items:center;justify-content:center;padding:10px 18px;border-radius:10px;font-weight:700;text-decoration:none}
body.rd-guide:not(:has(.qa-box__cta)) main .pick-card__cta{background:var(--color-accent);color:var(--color-accent-text)}
body.rd-guide main .card .actions{gap:8px}
body.rd-guide.rd-sticky-gated:not(.rd-past-verdict) :is(.qa-sticky,.mobile-review-cta,.mobile-sticky-cta,.sticky-cta,[class*="sticky-cta"]){display:none!important}
@media(max-width:640px){
 body.rd-guide main section.hero{padding-top:16px}
 body.rd-guide main :is(section.hero,header.article-hero) h1{font-size:1.75rem}
 body.rd-guide p.rd-qa{font-size:.95rem;padding:12px 14px}
 body.rd-guide main .notice,body.rd-guide main div.disclosure{font-size:.85rem;padding:10px 12px}
 body.rd-guide main section.section{padding-top:20px}
 body.rd-guide main section.section > h2{font-size:1.45rem;margin-bottom:10px}
 /* first card in each grid: buy button straight under the tool name */
 body.rd-guide main .grid > .card{display:flex;flex-direction:column}
 body.rd-guide main .grid > .card > *{order:3}
 body.rd-guide main .grid > .card > :is(.tag,h3){order:0}
 body.rd-guide main .grid > .card > .actions{order:1;margin:6px 0 4px}
 body.rd-guide main .grid > .card .actions .btn{flex:1 1 auto}
 /* pick card + qa box: button first */
 body.rd-guide main .pick-card{display:flex;flex-direction:column}
 body.rd-guide main .pick-card > *{order:3}
 body.rd-guide main .pick-card > .pick-card__header{order:0}
 body.rd-guide main .pick-card > .pick-card__actions{order:1}
 body.rd-guide main .pick-card > .pick-card__disclosure{order:2}
 body.rd-guide main .pick-card__cta{width:100%}
 body.rd-guide main aside.qa-box{display:flex;flex-direction:column}
 body.rd-guide main aside.qa-box > *{order:3}
 body.rd-guide main aside.qa-box > .qa-box__title{order:0}
 body.rd-guide main aside.qa-box > .qa-box__cta{order:1;width:100%;margin:4px 0 12px}
}
/* rollout: tighter mobile hero, buy button before "Read Review" inside a card, 44px FAQ rows */
body.rd-guide main section.hero{padding-bottom:0}
body.rd-guide main section.hero + .disclosure,body.rd-guide main section.hero ~ .disclosure{margin-top:12px}
body.rd-guide main .card .actions > a[href^="/go/"]{order:-1}
body.rd:not(.rd-home):not(.rd-review) main details:not(.rd-more) > summary{min-height:44px;display:flex;align-items:center;box-sizing:border-box}
body.rd:not(.rd-home):not(.rd-review) main details:not(.rd-more) > summary::-webkit-details-marker{display:none}
@media(max-width:640px){
 body.rd-guide main .breadcrumb{margin-bottom:8px}
 body.rd-guide main section.hero .eyebrow{margin-bottom:6px}
 body.rd-guide main section.hero h1{margin-bottom:8px}
 body.rd-guide main section.hero > p{margin-top:4px;margin-bottom:4px}
 body.rd-guide main p.rd-qa{margin:10px 0 0}
 body.rd-guide main .notice{margin-top:10px}
 body.rd-guide main section.section{padding-top:16px;margin-top:0}
 body.rd-guide main .grid > .card{padding:14px 16px}
 body.rd-guide main header.article-hero{padding-top:12px}
 body.rd-guide main header.article-hero .article-meta{margin-bottom:6px}
 body.rd-guide main header.article-hero > p{margin-top:6px;margin-bottom:6px}
 body.rd-guide main header.article-hero .pick-card{margin-top:10px;padding:14px 16px;gap:.6rem}
}

/* ===== reviews with the live Quick Verdict box (body.rd-review-v; the Higgsfield review keeps its pilot rules) ===== */
body.rd-review-v .rd-verdict{box-shadow:none;border:1px solid var(--color-border);border-radius:var(--rd-radius);background:var(--color-surface)}
body.rd-review-v .verdict-top-cta .btn{min-width:200px}
/* one solid CTA: the verdict's top button; the repeat in the decision box and the CTA rows go quiet */
body.rd-review-v main :is(.decision-box,.review-cta-row,.related-grid,.review-section) .btn-primary{background:transparent!important;color:var(--color-accent)!important;border:1.5px solid var(--rd-quiet-border)!important;box-shadow:none!important}
body.rd-review-v .trust-panel{box-shadow:none}
body.rd-review-v .trust-panel details.rd-more{border-top:0;margin-top:4px}
body.rd-review-v.rd-sticky-gated:not(.rd-past-verdict) :is(.qa-sticky,.mobile-review-cta){display:none!important}
@media(max-width:640px){
 body.rd-review-v .review-header{margin-bottom:10px}
 body.rd-review-v .review-header h1{font-size:1.75rem;line-height:1.15}
 body.rd-review-v .rd-verdict{padding:16px}
 body.rd-review-v .verdict-top-cta{margin:8px 0 12px}
 body.rd-review-v .verdict-top-cta .btn{width:100%}
}
/* verdict box: the main buy button sits right under the score on every width (source order unchanged) */
body.rd-review-v .rd-verdict{display:flex;flex-direction:column}
body.rd-review-v .rd-verdict > *{order:2}
body.rd-review-v .rd-verdict > .verdict-header{order:0}
body.rd-review-v .rd-verdict > .verdict-top-cta{order:1}
body.rd-review-v .rd-verdict:not(:has(> .verdict-top-cta)) > a.btn-primary{order:1;align-self:flex-start;margin:8px 0 12px}
body.rd-review-v .rd-verdict:has(> .verdict-top-cta) > a.btn-primary{background:transparent!important;color:var(--color-accent)!important;border:1.5px solid var(--rd-quiet-border)!important;box-shadow:none!important;align-self:flex-start}
body.rd-review-v .rd-verdict > a.btn-primary + p{order:2}
@media(max-width:640px){body.rd-review-v .rd-verdict:not(:has(> .verdict-top-cta)) > a.btn-primary{align-self:stretch}}
body.rd-review-v article.review-page > aside.reviewer-box{margin-top:24px}
/* the verdict's own main button stays the one solid CTA (overrides the pilot's quiet rule for .verdict-box) */
body.rd-review-v .rd-verdict > .verdict-top-cta .btn-primary,
body.rd-review-v .rd-verdict:not(:has(> .verdict-top-cta)) > a.btn-primary{background:var(--color-accent)!important;color:var(--color-accent-text)!important;border:1.5px solid var(--color-accent)!important}

/* older "wrap" template pages (body.rd-wrap) name their palette --accent/--surface/--line/...; map it to the Forge names used above */
body.rd-wrap{--color-accent:var(--accent);--color-accent-text:#211806;--color-surface:var(--surface);--color-border:var(--line);--color-bg:var(--bg);--color-text:var(--text);--color-text-muted:var(--muted);--color-accent-muted:color-mix(in oklab,var(--accent) 14%,transparent);--rd-quiet-border:color-mix(in oklab,var(--accent) 55%,var(--line))}
/* comparison pages: the intro paragraph keeps its live look (only tagged rd-qa), so nothing moves down */
body.rd-guide main p.intro.rd-qa{max-width:none;font-size:inherit;line-height:inherit;padding:0;margin:revert-layer;background:none!important;border:0!important;border-radius:0}
