
/* Theme and comfortable mobile reading */
:root{color-scheme:light;--surface:#fff;--selected:#eaf0e8;--cover:#eceee6}
:root[data-theme=dark]{color-scheme:dark;--ink:#edf4ef;--muted:#bbc9c0;--paper:#141e1a;--line:#42574b;--green:#b4d9bd;--gold:#dfbd82;--surface:#202e26;--selected:#304638;--cover:#34443a}
body{font-size:16px;line-height:1.6}aside,header button,.search,#chips button,.card,dialog,.product-strip a,.cta.secondary{background:var(--surface);color:var(--ink)}
nav button.active,nav button:hover,.product-contact{background:var(--selected)}.cover,#pdf{background:var(--cover)}.intro{background:radial-gradient(ellipse at 100% 10%,var(--selected),transparent 60%)}
.eyebrow,.tag,.meta,.nav-label{color:var(--muted)}.meta{border-color:var(--line)}h1 em{color:var(--green)}.cta,#chips button.active,#toast,.mark{background:var(--green);color:var(--paper)}.cover span{background:var(--surface);color:var(--ink)}
header{height:auto;min-height:90px;gap:12px;flex-wrap:wrap;padding-top:16px;padding-bottom:16px}header>span,header>.product-brand{margin-right:auto}.theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:8px 14px!important;border-radius:24px!important;font-size:16px!important;letter-spacing:0;white-space:nowrap}
button,a,input{touch-action:manipulation}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid var(--gold);outline-offset:3px}.search:focus-within{outline:3px solid var(--gold);outline-offset:3px}input{color:var(--ink);font-size:16px}.card p{font-size:15px}.card h3{font-size:20px}.tag,.meta,.result-line{font-size:13px}.actions button,.actions a{font-size:15px;min-height:44px;display:inline-flex;align-items:center}.actions{gap:12px;flex-wrap:wrap}#chips button{font-size:14px;min-height:44px}.intro>p{font-size:18px}.stats{font-size:14px;flex-wrap:wrap}.stats b{font-size:20px}.note h3{font-size:17px}.note p,footer{font-size:14px}.product-contact p{font-size:17px}.contact-note{font-size:14px!important}.resource-link{font-size:18px;gap:16px}.resource-link span{font-size:15px}.product-strip a,.cta{font-size:16px}.viewer-tools,.viewer-tools button,.mobile-hint,.viewer-foot,.viewer-head small{font-size:14px}.viewer-tools{flex-wrap:wrap}.viewer-tools a,.viewer-tools button,.viewer-head button{min-height:44px;display:inline-flex;align-items:center}.viewer-head button{background:var(--selected);color:var(--ink)}
@media(max-width:650px){body{font-size:18px;line-height:1.7}aside{padding:18px 20px}.brand{font-size:20px}.brand small{font-size:12px}header{padding:16px 20px;gap:12px;min-height:80px}header>span{font-size:12px;letter-spacing:1px;width:100%}header button{font-size:15px;min-height:48px}header>.product-brand{width:100%;font-size:20px}.intro,.library{padding:32px 20px}h1{font-size:clamp(38px,10vw,52px);letter-spacing:-1px;line-height:1.12}.intro>p{font-size:20px;line-height:1.8}.eyebrow{font-size:13px;letter-spacing:1px}.stats{gap:14px 24px;font-size:16px}.stats b{font-size:22px}.section-top h2,h2{font-size:29px;line-height:1.3}.search{min-height:52px}input{font-size:18px;min-width:0;width:100%}#chips{gap:10px}#chips button{font-size:16px;padding:10px 16px;min-height:48px}.result-line{font-size:14px;gap:12px;flex-wrap:wrap}.grid{gap:24px}.card-body{padding:24px}.card h3{font-size:23px;line-height:1.4}.card p{font-size:18px;line-height:1.8;min-height:0}.tag,.meta{font-size:15px}.cover span{font-size:13px}.actions button,.actions a{font-size:16px;min-height:48px}.note{margin:0 20px 32px}.note h3{font-size:20px}.note p,footer{font-size:16px;line-height:1.8}footer{margin:0 20px 28px;flex-direction:column}.product-strip a{font-size:18px;min-height:48px;width:100%}.cta{font-size:18px;display:block;text-align:center;margin-right:0}.product-contact{padding:28px 20px}.product-contact p{font-size:18px}.resource-link{flex-direction:column;gap:6px}.viewer-head{gap:12px}.viewer-head h2{font-size:21px}.viewer-tools{gap:12px;padding:12px 16px;font-size:16px}.viewer-tools button{font-size:16px;margin-left:0}.mobile-hint,.viewer-foot{font-size:15px}.viewer-head small{font-size:14px}dialog{width:100%;max-width:100%;height:100dvh;max-height:100dvh;margin:0;border-radius:0}#pdf{height:calc(100% - 250px);padding:8px}.theme-toggle{min-height:48px}}
@media print{:root,:root[data-theme=dark]{color-scheme:light;--ink:#000;--muted:#333;--paper:#fff;--surface:#fff;--line:#bbb;--green:#173c36}.theme-toggle{display:none!important}}
