/* App mode + install bar — generated by tools/pwa.mjs, do not edit. Uses each site's own colour variables when it has them. */
html{-webkit-text-size-adjust:100%; text-size-adjust:100%; overflow-x:clip}
img,video,svg,canvas{max-width:100%}
p,li,dd,td,th,h1,h2,h3,h4,figcaption,blockquote{overflow-wrap:break-word}
input,select,textarea{font-size:max(16px,1em)}
a,button,[role="button"],label,summary{touch-action:manipulation; -webkit-tap-highlight-color:transparent}
@media (max-width:767px){
  body{font-size:max(1em,16.5px); line-height:1.6}
  button,.btn,[role="button"],select,input:not([type="checkbox"]):not([type="radio"]):not([type="range"]){min-height:44px}
}
/* installed app: bigger text, room for the notch and home bar, no rubber-band scroll */
@media (display-mode: standalone){
  html{font-size:106.25%}
  body{overscroll-behavior-y:none; padding-left:env(safe-area-inset-left); padding-right:env(safe-area-inset-right)}
  header,.site-header{padding-top:max(env(safe-area-inset-top), 0px)}
  footer,.site-footer,[class*="tabbar"]{padding-bottom:max(env(safe-area-inset-bottom), 0px)}
  .pwa-install{display:none!important}
}
.pwa-install{position:fixed; z-index:9999; left:max(12px, env(safe-area-inset-left)); right:max(12px, env(safe-area-inset-right)); bottom:calc(max(12px, env(safe-area-inset-bottom)) + var(--pwa-offset, 0px)); max-width:460px; margin:0 auto;
  display:flex; align-items:center; gap:12px; padding:12px 12px 12px 14px; border-radius:18px; background:var(--surface, #fff); color:var(--text, #1d1d1d); border:1px solid var(--line, rgba(0,0,0,.12)); box-shadow:0 18px 40px -12px rgba(0,0,0,.35); font:inherit; animation:pwa-in .4s cubic-bezier(.2,.8,.2,1)}
.pwa-install[hidden]{display:none}
.pwa-install img{width:40px; height:40px; border-radius:10px; flex:none}
.pwa-install span{flex:1; min-width:0; line-height:1.3} .pwa-install b{display:block; color:var(--heading, inherit)} .pwa-install small{display:block; color:var(--text-muted, #666); font-size:.85rem}
.pwa-btn{display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:0 18px; border:0; border-radius:999px; background:var(--accent, var(--brand, #222)); color:var(--on-accent, #fff); font:700 .95rem/1 inherit; text-decoration:none; cursor:pointer}
.pwa-x{flex:none; width:40px; height:40px; border:0; border-radius:50%; background:transparent; color:inherit; font-size:1.5rem; line-height:1; cursor:pointer}
.pwa-share-i{display:inline-block; width:14px; height:16px; vertical-align:-2px; border:2px solid currentColor; border-top:0; border-radius:0 0 3px 3px; position:relative; margin:0 2px}
.pwa-share-i::before{content:""; position:absolute; left:50%; top:-7px; width:2px; height:11px; margin-left:-1px; background:currentColor}
.pwa-share{display:none}
@media (max-width:767px){ .pwa-install{--pwa-offset:72px} }
@keyframes pwa-in{from{transform:translateY(20px); opacity:0}}
@media (prefers-reduced-motion:reduce){ .pwa-install{animation:none} }
/* ads (AdSense or other): put each ad in <div class="ad-slot" data-size="banner|rect|leader">…</div>. The slot reserves its space (no jumping
   content), keeps clear of text and the phone's home bar, and is labelled. Ad code itself is never altered or hidden (AdSense policy). */
.ad-slot{display:block; clear:both; box-sizing:border-box; width:100%; max-width:min(100%, 970px); margin:clamp(28px,4vw,44px) auto; padding:8px 0; text-align:center; contain:layout}
.ad-slot::before{content:"Advertisement"; display:block; margin-bottom:6px; font:600 .7rem/1 system-ui, sans-serif; letter-spacing:.1em; text-transform:uppercase; opacity:.55}
.ad-slot[data-size="banner"]{min-height:100px} .ad-slot[data-size="rect"]{min-height:280px; max-width:336px} .ad-slot[data-size="leader"]{min-height:100px}
@media (min-width:768px){ .ad-slot[data-size="leader"]{min-height:110px; max-width:728px} }
.ad-slot ins.adsbygoogle{display:block; margin:0 auto; max-width:100%}
p + .ad-slot,.ad-slot + p,.ad-slot + h2{margin-top:clamp(28px,4vw,44px)}
@media (display-mode: standalone){ .ad-slot{margin-block:32px} body{padding-bottom:max(env(safe-area-inset-bottom), 0px)} }
.pwa-offline{margin:0; min-height:100vh; display:grid; place-items:center; padding:24px; background:var(--bg, #faf7f2); color:var(--text, #222); font:17px/1.6 -apple-system, "Segoe UI", Roboto, Arial, sans-serif; text-align:center}
.pwa-offline main{max-width:420px} .pwa-offline img{border-radius:22px} .pwa-offline h1{margin:16px 0 8px; font-size:1.8rem}
@media (prefers-color-scheme:dark){ .pwa-offline{background:#141312; color:#ece6de} }
