/* Retained document and guide pages use the current light editorial theme. */
body.polished-home.secondary-page :is(.showcase-main,main#main) { min-width:0; }
body.polished-home.showcase-page .showcase-main { color:var(--ink-text); }
body.polished-home.showcase-page :is(.case-intro,.case-section-intro,.case-lead,.case-next p,.case-roles ul,.case-decisions dd,.case-compare-copy > p) {
  color:var(--ink-text) !important; font-size:16px; line-height:2;
}
body.polished-home.showcase-page :is(.case-caption,.case-credit,.case-viewer figcaption,.role-label,.story-kicker,.case-decisions dt) {
  color:var(--secondary-text) !important; font-size:13px; line-height:1.9;
}
body.polished-home.showcase-page .case-comparison { background:var(--paper-2); }
body.polished-home.showcase-page .case-roles article { background:var(--card); border-color:var(--rule); border-radius:8px; }
body.polished-home.showcase-page .case-tags span { color:var(--secondary-text) !important; border-color:var(--rule); font-size:13px; }
body.polished-home.showcase-page .case-craft { background:#242624; color:#fcfcfa; }
body.polished-home.showcase-page .case-craft :is(p,.section-label,.craft-number) { color:#e0e2dc !important; }
body.polished-home.showcase-page .case-craft .text-link { color:#fcfcfa !important; }
body.polished-home.showcase-page .case-evidence-link :is(span,b) { color:var(--secondary-text) !important; }
body.polished-home.showcase-page .comparison-controls button { background:var(--card); color:var(--ink-text) !important; }
body.polished-home.showcase-page .comparison-controls button[aria-selected="true"] { background:#343933; color:#fff !important; }
body.polished-home.showcase-page .case-next .button-primary { background:transparent; color:var(--ink-text) !important; border-color:var(--rule); }

/* Global rules from the old manuals must not pad the shared menu or footer. */
body.polished-home:is(.manual-page,.product-guide-page) :is(.brand-header,.brand-menu,.brand-footer) .wrap { padding:0; }
body.polished-home:is(.manual-page,.product-guide-page) .brand-footer { font-size:16px; }
body.polished-home:is(.manual-page,.product-guide-page) main { color:var(--ink-text); font-size:16px; line-height:2; }
body.polished-home.manual-page main .wrap { padding:48px 0; }
body.polished-home.manual-page main .section:not(.wrap) { padding:0; }
body.polished-home.manual-page main .hero { text-align:left; padding-top:40px; }
body.polished-home.manual-page main .hero-logo { width:min(300px,100%); height:88px; object-position:left; margin-bottom:24px; }
body.polished-home:is(.manual-page,.product-guide-page) main :is(h1,h2,h3) { font-weight:400; letter-spacing:.01em; text-wrap:pretty; }
body.polished-home:is(.manual-page,.product-guide-page) main h1 { font-size:clamp(28px,4vw,42px); line-height:1.65; margin-bottom:24px; }
body.polished-home:is(.manual-page,.product-guide-page) main h2 { font-size:clamp(24px,3vw,32px); line-height:1.7; margin-bottom:24px; }
body.polished-home:is(.manual-page,.product-guide-page) main h3 { font-size:20px; line-height:1.8; }
body.polished-home:is(.manual-page,.product-guide-page) main :is(.lead,.card p,.feature-grid p,.steps p,.timeline p,.setup p) { font-size:16px; line-height:2; }
body.polished-home:is(.manual-page,.product-guide-page) main :is(.kicker,.eyebrow,.small,.micro,.privacy-note,figcaption,.pricing-note,.manual-link) {
  color:var(--secondary-text) !important; font-size:14px; line-height:1.9;
}
body.polished-home:is(.manual-page,.product-guide-page) main :is(.card,.notice,.toc,.plan,.feature-grid article,.setup li) { border-radius:8px; }
body.polished-home:is(.manual-page,.product-guide-page) main .button { border-radius:3px; min-height:48px; font-size:15px; line-height:1.8; }
body.polished-home:is(.manual-page,.product-guide-page) main .button.primary { background:#343933; color:#fff !important; border-color:#343933; }
body.polished-home.manual-page main .related { background:var(--paper-2); color:var(--ink-text); }
body.polished-home.manual-page main .steps > li > span { background:#343933; color:#fff !important; }
body.polished-home.manual-page main .related .button.secondary { color:var(--ink-text) !important; border-color:var(--ink-text); }
body.polished-home.product-guide-page main .section { max-width:1160px; padding:48px 24px; }
body.polished-home.product-guide-page main .product { max-width:none; padding-inline:max(24px,calc((100% - 1112px)/2)); }
body.polished-home.product-guide-page main .hero { padding-top:40px; }
body.polished-home.product-guide-page main .plan.pro { background:#343933; color:#fff; }
body.polished-home.product-guide-page main .plan-name span { color:#242624 !important; background:#ffd948; }
body.polished-home.product-guide-page main .plan.pro .button { color:#fff !important; }
body.polished-home.product-guide-page .mobile-cta a { border-radius:3px; background:#343933; color:#fff !important; font-size:15px; }
body.polished-home:is(.manual-page,.product-guide-page) main :is(section,[id]) { scroll-margin-top:110px; }
body.polished-home:is(.manual-page,.product-guide-page,.showcase-page,.missing-page-theme) main :is(a,button,summary):focus-visible { outline:2px solid #7a2e3a; outline-offset:4px; }
body.polished-home.missing-page-theme main { width:min(calc(100% - 48px),840px); margin:auto; padding:48px 0 72px; color:var(--ink-text); }
body.polished-home.missing-page-theme main h1 { font-size:28px; line-height:1.7; }
body.polished-home.missing-page-theme main p { font-size:16px; line-height:2; }
body.polished-home.missing-page-theme main .outline-cta { display:flex; width:100%; color:var(--ink-text) !important; border-color:var(--rule); margin-top:16px; }
@media(min-width:768px) {
  body.polished-home.manual-page main .wrap { padding-block:64px; }
  body.polished-home.product-guide-page main .section { padding-block:64px; }
  body.polished-home.missing-page-theme main { padding-block:72px 96px; }
}
@media(max-width:359px) {
  body.polished-home.manual-page main .toc { padding:20px 16px; }
  body.polished-home.product-guide-page main .section { padding-inline:20px; }
  body.polished-home.product-guide-page main .screen-pair { grid-template-columns:1fr; }
}
@media(max-width:760px) {
  body.polished-home.product-guide-page .brand-footer.brand-footer-editorial { padding-bottom:110px; }
}
