/* Shared accessibility foundations and three public presentation styles. */
:root{--muted:#526159}
:where(button,a,input,select,textarea,summary):focus-visible{outline:3px solid var(--accent-dark);outline-offset:4px;box-shadow:0 0 0 2px white}
input::placeholder,textarea::placeholder{color:#58665e;opacity:1}
.icon-btn{min-width:36px;min-height:36px}.footer button{min-height:32px}
.reader-tools{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin-bottom:20px}
.reader-tools [aria-pressed=true]{background:var(--accent);color:white;border-color:var(--accent)}
.preview-banner{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.theme-preview-button{margin-top:10px;margin-left:6px}
.public-view .nav-item{color:var(--ink)}
.public-view{background:var(--paper);color:var(--ink)}
.public-view .article-row{align-items:flex-start}.public-view .article-row>div:nth-child(2){min-width:0}
.public-view :is(h1,h2,h3,p,.article-content,.metadata,.breadcrumb){overflow-wrap:anywhere}
.public-view .article-link{text-decoration:underline;text-underline-offset:3px}
.theme-classic{--paper:#f4f6f9;--ink:#182b45;--muted:#4e5d70;--line:#cbd5e1}
.theme-classic :is(.panel,.public-hero,.quick,.notice,.btn,.nav-item){border-radius:3px}
.theme-classic .public-hero{background:white;border-top:6px solid var(--accent)}
.theme-classic .public-hero .eyebrow{letter-spacing:1px}
.theme-classic h1{font-family:Georgia,serif;letter-spacing:-.4px}
.theme-classic .article-row .date{background:var(--soft);border-radius:2px}
.theme-classic .panel-header{border-bottom:2px solid var(--accent)}
.theme-modern .public-hero{border-left:5px solid var(--accent)}
.theme-modern .quick{box-shadow:0 3px 10px #14352708}
.theme-friendly{--paper:#fcf8f2;--ink:#382d22;--muted:#65574b;--line:#dfd2c2}
.theme-friendly :is(.panel,.public-hero,.quick,.notice){border-radius:22px}
.theme-friendly .public-hero{padding:40px;background:linear-gradient(110deg,#faf0e2,#fffaf3)}
.theme-friendly .quick{padding:22px;background:#fffdf9}
.theme-friendly .article-row{padding:26px 0}.theme-friendly .date{border-radius:14px}
.theme-friendly .nav-item{border-radius:12px}.theme-friendly .hero-emblem{border:3px solid #e6d1b6}
.reader-large .public-view{font-size:18px}
.reader-large .public-view :is(.nav-item,.quick,.public-hero p,.contact p,.article-row p,.metadata,.notice,.footer,.breadcrumb,.btn,.permalink,.public-history){font-size:16px}
.reader-large .public-view h3{font-size:20px}.reader-large .public-view h2{font-size:25px}
.reader-large dialog :is(.article-content,.metadata,.public-history,.permalink){font-size:18px}
.reader-contrast{--accent:#fff36a;--accent-dark:#fff36a;--soft:#151515;--ink:#fff;--muted:#eee;--line:#fff;--paper:#000;--white:#000;color:#fff;background:#000}
.reader-contrast body{--accent:#fff36a;--accent-dark:#fff36a;--soft:#151515;--ink:#fff;--muted:#eee;--line:#fff;--paper:#000;background:#000;color:#fff}
.reader-contrast :is(.topbar,.sidebar,.panel,.quick,.public-hero,.notice,.metadata,.public-history,dialog,.theme-card,.theme-preview,.login-card,.stat,.search,.promo,.support-card,.switcher,.info-box,.upload-section,th,input,select,textarea){background:#000!important;color:#fff!important;border-color:#fff!important}
.reader-contrast :is(a,.icon-btn,.eyebrow,.nav-item,.article-link,.footer button){color:#fff36a!important}
.reader-contrast :is(.btn,.brand-mark,.nav-item.active,.badge,.reader-tools [aria-pressed=true]){background:#fff36a!important;color:#000!important}
.reader-contrast .btn.secondary{background:#000!important;color:#fff36a!important;border:1px solid #fff36a}
.reader-contrast :is(p,small,.stat-top,.stat-bottom,.account-label,.article-row p){color:#fff!important}
.reader-contrast :is(input,textarea)::placeholder{color:#eee}
.reader-contrast .hero-emblem{background:#000;color:#fff36a;border:2px solid white}
.reader-contrast :focus-visible{outline-color:#fff36a!important;box-shadow:0 0 0 2px #000}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}dialog::backdrop{backdrop-filter:none}}
@media(max-width:480px){.public-view .quick-links{grid-template-columns:1fr}.theme-friendly .public-hero{padding:24px}.public-view .sidebar nav{flex-wrap:wrap;overflow:visible}.public-view .nav-item{white-space:normal;text-align:left}.reader-tools{justify-content:flex-start}.article-row .date{padding:8px;min-width:46px}.public-view .topbar .brand{min-width:0}.public-view .public-selector{max-width:100%}.theme-preview-button{margin-left:0}.modal-head{gap:12px}.modal-head h2{min-width:0;overflow-wrap:anywhere}}
