/* Public pages share the homepage palette; tool logic and print content stay local. */
@media screen{
  .site-restyled [hidden]{display:none!important}
  body.site-restyled{
    --paper:#131b2e;--paper-2:#222c43;--surface:#1b243b;--surface-2:#222c43;--white:#1b243b;
    --field:#131b2e;--field-2:#222c43;--navy:#131b2e;--navy2:#222c43;--navy-2:#222c43;
    --ink:#eef0f4;--ink-2:#acb3c0;--ink-3:#a8b0bf;--muted:#acb3c0;--soft:#222c43;
    --inv:#eef0f4;--inv-2:#acb3c0;--inv-3:#a8b0bf;--inv-muted:#acb3c0;
    --line:rgba(187,197,217,.2);--line-2:rgba(187,197,217,.38);--rule:rgba(187,197,217,.2);--rule-2:rgba(187,197,217,.38);--rule-inv:rgba(187,197,217,.2);
    --accent:#a7c7e7;--accent-inv:#a7c7e7;--copper:#a7c7e7;--copper-2:#a7c7e7;--copper-light:#a7c7e7;--copper-text:#a7c7e7;--copper-soft:rgba(167,199,231,.1);
    --btn-bg:#a7c7e7;--btn-bg-hover:#bcd6f0;--btn-fg:#1c2539;--good:#abcae9;--good-text:#abcae9;--green:#abcae9;--down:#efb1a9;--down-text:#efb1a9;--warn:#e5ca83;
    --cm-danger:#efb1a9;--shadow:none;--shadow-sm:none;color-scheme:dark;
    background:#131b2e;color:#eef0f4;
  }
  .site-restyled h1,.site-restyled h2{font-weight:400;letter-spacing:-0.014em}
  .site-restyled :is(.hero,.seg-hero,.blog-hero,.masthead){background:radial-gradient(ellipse at 86% 12%,rgba(89,101,124,.2),transparent 62%),radial-gradient(ellipse at 20% 95%,rgba(96,135,174,.08),transparent 60%),#131b2e;color:#eef0f4}
  .site-restyled :is(.hero h1,.seg-h1,.blog-hero h1){font-family:var(--serif);font-size-adjust:none;font-weight:400;font-size:clamp(2.7rem,5.8vw,5rem);line-height:1.04;letter-spacing:-0.018em}
  .site-restyled :is(.hero h1,.seg-h1) em{color:#a7c7e7}
  .site-restyled :is(.hero .lede,.seg-lede,.standfirst){font-family:var(--sans);font-size-adjust:.51;font-size:1rem;line-height:1.8;color:#acb3c0}
  .site-restyled :is(.eyebrow,.cm-eyebrow,.wp-ref,.kicker){color:#a7c7e7}
  .site-restyled :is(header.site,header.site-header,header.header,body>header){background:rgba(19,27,46,.94);color:#eef0f4;border-bottom:1px solid rgba(187,197,217,.2);backdrop-filter:blur(16px)}
  .site-restyled :is(.nav-links,nav.main){color:#acb3c0}
  .site-restyled :is(.nav-links a,nav.main a){color:#acb3c0}
  .site-restyled :is(.nav-links a,nav.main a):hover{color:#eef0f4}
  .site-restyled :is(.nav-actions .btn-primary,.nav-cta,.navcta,.header-book){color:#eef0f4;background:transparent;border:1px solid rgba(187,197,217,.25);border-radius:4px;box-shadow:none}
  .site-restyled :is(.brand,.wordmark,.brand-name){color:#eef0f4}
  .site-restyled :is(.brand .mark,.brand .mk){color:#eef0f4}
  .site-restyled :is(.brand .mark,.brand .mk) rect:not(:first-child){fill:#416588}
  .site-restyled :is(.brand .wordmark span,.brand .wm span){color:#acb3c0}
  .site-restyled :is(.icon-btn,.hamburger,.menu-button,.burger){color:#eef0f4;border-color:rgba(187,197,217,.25);min-height:44px;min-width:44px}
  .site-restyled :is(.btn-primary,:where(a,button).action,.button,.btn:not(.btn-ghost):not(.btn-secondary),.cm-primary){background:#a7c7e7;color:#1c2539;border-color:#a7c7e7;border-radius:5px;box-shadow:none}
  .site-restyled :is(.btn-ghost,.btn-secondary){color:#eef0f4;border-color:rgba(187,197,217,.38);background:transparent;border-radius:5px}
  .site-restyled :is(.btn,:where(a,button).action,.button){white-space:normal}
  .site-restyled :is(.card,.box,.post-card,.return-card,.download-card,.method-card,.sample-note,.sample-notes,.judgment,.limit,.sheet,.capture,.profile-card,.detail-card,.q-layer,.q-opts,.offer,.next,.handoff){background:linear-gradient(145deg,rgba(43,53,74,.65),rgba(27,36,59,.95));border-color:rgba(187,197,217,.23);border-radius:14px;box-shadow:none}
  .site-restyled :is(.post-card,.return-card,.download-card,.method-card,.box){border:1px solid rgba(187,197,217,.23)}
  .site-restyled :is(.band,.sample,.conversation,.fit,.book,.contents,.first-use,.example,.teardown,.results){background:#1b243b;color:#eef0f4;border-color:rgba(187,197,217,.2)}
  .site-restyled .sample-paper{background:#eff1f6;border-color:rgba(187,197,217,.3);border-radius:8px;overflow:hidden}
  .site-restyled :is(.progress-shell){background:rgba(19,27,46,.96)}
  .site-restyled :is(.route .btn-primary,.assessment-actions .btn-primary){color:#1c2539}
  .site-restyled :is(.form-status.error){color:#efb1a9}
  .site-restyled :is(input:not([type=radio]):not([type=checkbox]),select,textarea){background:#1b243b;color:#eef0f4;border-color:rgba(187,197,217,.38);border-radius:5px}
  .site-restyled :is(input,select,textarea)::placeholder{color:#acb3c0;opacity:1}
  .site-restyled :is(.q-opt,.opt,.toolrm,.chip){color:#eef0f4;border-color:rgba(187,197,217,.3)}
  .site-restyled :is(.q-opt,.opt,.toolrm,.chip):hover{background:#2b364b;border-color:#a7c7e7}
  .site-restyled :is(.q-opt[aria-pressed=true],.opt[aria-pressed=true]){background:rgba(167,199,231,.13);border-color:#a7c7e7;color:#eef0f4}
  .site-restyled .flag.ok{color:#abcae9;border-color:#abcae9}
  .site-restyled .wp-find .wpFlag.ok{color:#abcae9;background:rgba(171,202,233,.12)}
  .site-restyled .answer input:focus-visible+label{outline:2px solid #a7c7e7;outline-offset:4px}
  .site-restyled :is(a,button,input,select,textarea,summary):focus-visible{outline:2px solid #a7c7e7;outline-offset:4px}
  .site-restyled .skip{background:#a7c7e7;color:#1c2539}
  .site-restyled :is(.calendar-frame,.embed){background:#eff1f6;border-radius:14px}
  .site-restyled .measurement-choices button{background:#222c43;color:#eef0f4;border-color:rgba(187,197,217,.38)}
  .site-restyled footer{background:#131b2e;color:#acb3c0;border-color:rgba(187,197,217,.2)}
  .site-restyled footer a{color:#c3c9d4}
  .site-restyled .meta{color:#acb3c0}
  .site-restyled .article :is(.pull,.cta){border-color:#a7c7e7;background:#1b243b;color:#eef0f4;border-radius:12px}
  .site-restyled .star-controls{padding-top:18px}
  .site-restyled .legal-intro{margin-bottom:32px;padding-top:20px}
  .site-restyled .legal-intro .star-controls{margin-inline:0}
  .site-restyled .legal-intro h1{font-size:clamp(3rem,6vw,5rem)}
  #byram-capacity-map{--cm-danger:#efb1a9}
  .site-restyled #byram-capacity-map :is(.cm-error,.cm-example-item,.cm-next){background:#222c43;border-color:rgba(187,197,217,.23);border-radius:10px}
  .site-restyled #byram-capacity-map :is(button,.cm-button){background:#222c43;color:#eef0f4;border-color:rgba(187,197,217,.38);border-radius:5px}
  .site-restyled #byram-capacity-map :is(button.cm-primary,.cm-button.cm-primary){background:#a7c7e7;color:#1c2539;border-color:#a7c7e7}
  .site-restyled #byram-capacity-map :is(input,select,textarea){background:#1b243b;color:#eef0f4}
  .site-restyled #byram-capacity-map button.motion-toggle{min-height:36px;padding:6px 12px;border-radius:30px;background:rgba(19,27,46,.86);color:#bfc6d2;font-size:11px;font-weight:500;line-height:1.4}
  .site-restyled #byram-capacity-map h1{font-size:clamp(2.7rem,5.5vw,4.5rem);font-weight:400;line-height:1.05;letter-spacing:-0.016em}
  .site-restyled #cm-form{padding:24px;border:1px solid rgba(187,197,217,.23);border-radius:14px;background:linear-gradient(145deg,rgba(43,53,74,.65),rgba(27,36,59,.95));margin-top:26px}
  .site-restyled header :is(.nav-actions .btn.btn-primary,.nav-cta,.navcta,.header-book){background:transparent;color:#eef0f4;border:1px solid rgba(187,197,217,.25);border-radius:4px;box-shadow:none}
  @media(max-width:920px){.site-restyled :is(.nav-links,nav.main){background:#131b2e}.site-restyled .nav-actions .btn{width:auto}}
  @media(max-width:600px){.site-restyled :is(.hero h1,.seg-h1,.blog-hero h1){font-size:clamp(2.35rem,10vw,3rem)}.site-restyled .star-controls{margin-bottom:12px}.site-restyled #cm-form{padding:20px 16px}}
}
