/* AYS 2026: mobile-first, quiet design. A shared layer on top of the existing Cloudflare-compatible site. */
:root {font-family:"Avenir Next", Avenir, "Segoe UI", sans-serif; font-size:16px; -webkit-font-smoothing:antialiased}
html[data-theme]{--font-heading:"Iowan Old Style","Baskerville","Palatino Linotype","Book Antiqua",serif;--font-body:"Avenir Next",Avenir,"Segoe UI",sans-serif;--theme-danger:#f2a7a4;scrollbar-color:var(--theme-border) transparent}
html[data-theme="green"]{--theme-page:#091a18;--theme-surface:#102724;--theme-surface-raised:#193831;--theme-text:#ebf0e8;--theme-muted:#a3b8a9;--theme-accent:#b6d5ba;--theme-border:#304941;--theme-accent-soft:#23483c;--theme-contrast:#091a18}
html[data-theme="rose"]{--theme-page:#281f26;--theme-surface:#352a32;--theme-surface-raised:#493841;--theme-text:#f9f0e9;--theme-muted:#d2b9bc;--theme-accent:#f0d7c7;--theme-border:#67515a;--theme-accent-soft:#705761;--theme-contrast:#352a32}
html[data-theme="blue"]{--theme-page:#0b1822;--theme-surface:#142532;--theme-surface-raised:#233949;--theme-text:#eef1ed;--theme-muted:#b0c0c7;--theme-accent:#d0dce1;--theme-border:#3e5563;--theme-accent-soft:#2e4c5e;--theme-contrast:#0b1822}
html[data-theme] body {font-family:var(--font-body)!important;background:var(--theme-page)!important;background-image:none!important;color:var(--theme-text);text-rendering:optimizeLegibility}
html[data-theme] body.has-ays-ui{padding-top:max(58px,env(safe-area-inset-top))!important;padding-bottom:calc(84px + env(safe-area-inset-bottom))!important}
html[data-theme] .theme-switcher{top:max(13px,env(safe-area-inset-top))!important;right:max(20px,env(safe-area-inset-right))!important;padding:2px!important;gap:2px!important;background:transparent!important;border:0!important;box-shadow:none!important;backdrop-filter:none!important;border-radius:0!important}
html[data-theme] .theme-switcher .theme-title{display:none}
html[data-theme] .theme-option{width:30px!important;height:30px!important;min-width:30px!important;min-height:30px!important;padding:4px!important;border-radius:9px!important;background:transparent!important}
html[data-theme] .theme-option[aria-pressed="true"]{background:var(--theme-surface-raised)!important;border-color:var(--theme-border)!important}
html[data-theme] .theme-swatch{width:16px!important;height:16px!important;border-radius:50%!important;box-shadow:none!important}
html[data-theme] .theme-option-name{display:none!important}
html[data-theme] .site-nav{left:0!important;right:0!important;bottom:0!important;transform:none!important;width:100%!important;max-width:none!important;gap:0!important;padding:7px 10px calc(8px + env(safe-area-inset-bottom))!important;border-radius:0!important;border:0!important;border-top:1px solid var(--theme-border)!important;background:var(--theme-page)!important;box-shadow:none!important;backdrop-filter:none!important}
html[data-theme] .site-nav a{flex:1!important;min-height:51px!important;border-radius:8px!important;gap:3px!important;color:var(--theme-muted)!important;font:600 10px/1.2 var(--font-body)!important;background:transparent!important}
html[data-theme] .site-nav a[aria-current="page"]{background:transparent!important;color:var(--theme-accent)!important}
html[data-theme] .site-nav a[aria-current="page"] svg{stroke-width:2.4}
html[data-theme] .site-nav a svg{width:19px!important;height:19px!important}
html[data-theme] :is(a,button,input,textarea,select,summary):focus-visible{outline:2px solid var(--theme-accent)!important;outline-offset:3px!important}
html[data-theme] input,html[data-theme] select{font-family:var(--font-body)!important}
html[data-theme] button{touch-action:manipulation}
html[data-theme] button:disabled{opacity:.5;cursor:not-allowed}
@media(min-width:780px){html[data-theme] body.has-ays-ui{padding-top:70px!important}.site-nav{left:50%!important;transform:translateX(-50%)!important;max-width:550px!important;border:1px solid var(--theme-border)!important;border-bottom:0!important;border-radius:14px 14px 0 0!important}}
@media(prefers-reduced-motion:reduce){html:focus-within{scroll-behavior:auto!important}*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important}}
