@import './golden-tokens.css';

html{scrollbar-gutter:stable}
/* A shared outer frame for the app and standalone public documents. */
body :is(.wrap,.legal-shell){
 box-sizing:border-box;
 width:100%;
 max-width:calc(var(--layout-width) + 2 * var(--page-gutter));
 margin-inline:auto;
 padding-inline:var(--page-gutter);
}
/* Long-form text stays readable inside the common page frame. */
body .legal-paper>:is(p,ul,h1,h2,h3){max-width:var(--reading-width)}
body .num-report p,body .num-prose{max-width:var(--reading-width)}
body.standalone-document{max-width:none;padding:0}
body.standalone-document>.legal-shell{padding-block:var(--space-2) var(--space-3)}

/* Public content follows one start-aligned rail in both languages. */
:root{--public-panel-padding:var(--space-3)}
@media screen{
 body :is(main.wrap,.legal-paper){text-align:start}
 body .refresh-page .refresh-hero{align-items:start}
 body .refresh-page .forecast-sample{align-self:start;padding:var(--public-panel-padding)}
 body .refresh-page .forecast-final{text-align:start}
 body .refresh-page .forecast-final h2{margin-inline:0}
 body .refresh-page button[data-forecast-start]{display:flex;width:min(100%,calc(var(--reading-width) / var(--phi)));max-width:100%;justify-content:center;text-align:center}
 body .refresh-page .num-steps{align-items:stretch}
 body .refresh-page .num-steps .num-card{margin:0;padding:var(--public-panel-padding);text-align:start}
 body .refresh-page .num-feature-grid .num-card,
 body .refresh-page .forecast-month-sample,
 body .num-report :is(.num-panel,.num-card,.prediction-panel),
 body .payment-panel,body .legal-paper{padding:var(--public-panel-padding)}
 body .confirmation{text-align:start}
 body .confirmation :is(p,.text-link){margin-inline:0}
 body .confirmation>svg{margin-inline:0}
}
@media screen and (max-width:1100px){:root{--public-panel-padding:var(--space-2)}}
@media screen and (max-width:700px){
 body .forecast-footer-links,body .legal-footer nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:var(--space-2);row-gap:var(--space-1);justify-items:start;width:100%}
 body .legal-footer{flex-direction:column;align-items:flex-start}
 body .legal-footer nav a{padding-inline:0}
}



/* Language choice lives in the footer, with a native keyboard-accessible select. */
body .footer-bottom{flex-wrap:wrap}
body .language-dropdown{display:inline-flex;align-items:center;gap:var(--space-1);margin:0;color:#C7B4DB;font-size:var(--font-small)}
body .language-dropdown select{min-width:140px;max-width:100%;min-height:44px;padding:8px 13px;border:1px solid #9676BA70;border-radius:var(--radius-control);background:#21162F;color:#F5EDE5;font:inherit;line-height:1.4;cursor:pointer;color-scheme:dark}
body .language-dropdown select:focus-visible{outline:2px solid #C7B4DB;outline-offset:3px}

@media print{
 body :is(.wrap,.legal-shell){max-width:none;width:100%;padding-inline:0}
 body .legal-paper>:is(p,ul,h1,h2,h3){max-width:none}
}

/* Section copy fills the shared frame; the hero keeps its responsive two-column layout. */
@media screen{
 body :is(.guide-article-layout,.zodiac-detail-layout),
 body .refresh-page :is(.num-feature-grid,.num-steps,.forecast-benefits){grid-template-columns:minmax(0,1fr)}
 body .refresh-page :is(.hero-copy,.forecast-sample,.num-lead,.forecast-month-sample),
 body .refresh-page .refresh-hero h1,
 body .refresh-page .refresh-hero .num-lead,
 body .refresh-page>.num-section h2,
 body .refresh-page>.num-section>p,
 body .refresh-page .num-faq p,
 body main.wrap.num-section .num-section :is(h2,p),
 body .num-report :is(p,.num-prose),
 body .forecast-footer-note,
 body .portal-editorial-heading :is(h1,p),
 body .portal-article p,
 body .international-content .portal-article,
 body .legal-paper>:is(p,ul,h1,h2,h3){width:100%;max-width:none}
}
