/* App-style looks for ROASOD's Adverts, Chill Side and Bible pages.
   iOS look: SF font, soft grouped surfaces, translucent bars, grabber on sheets.
   Android look: Material 3 shapes, tonal chips, filled fields, FAB, bigger sheet corners.
   Tablet/fold layout rules live in each page; the narrow cover-screen rules are at the bottom. */
html[data-platform="ios"]{--font:-apple-system,BlinkMacSystemFont,"SF Pro Text","Inter",system-ui,sans-serif;--accent:#0a7aff}
html[data-platform="ios"] body{font-family:var(--font);-webkit-font-smoothing:antialiased}
html[data-platform="ios"] h1{font-size:2.15rem;font-weight:800;letter-spacing:-.025em}
html[data-platform="ios"] .pill{background:rgba(120,120,128,.16);font-weight:600}
html[data-platform="ios"] .pill.on{background:var(--accent);color:#fff}
html[data-platform="ios"] .go,html[data-platform="ios"] .btn{border-radius:14px;font-weight:600}
html[data-platform="ios"] .f,html[data-platform="ios"] input.f,html[data-platform="ios"] select.f,html[data-platform="ios"] .field{background:rgba(118,118,128,.12);border:0;border-radius:11px}
html[data-platform="ios"] .bar{background:rgba(250,250,252,.72);-webkit-backdrop-filter:saturate(180%) blur(22px);backdrop-filter:saturate(180%) blur(22px);border-top:.5px solid rgba(0,0,0,.22);box-shadow:none}
html[data-theme="dark"][data-platform="ios"] .bar{background:rgba(20,22,30,.72);border-top-color:rgba(255,255,255,.18)}
html[data-platform="ios"] .ctl{-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px)}
html[data-platform="ios"] #reader,html[data-platform="ios"] .hit,html[data-platform="ios"] .tile,html[data-platform="ios"] .card,html[data-platform="ios"] .votd{border:0;border-radius:16px;box-shadow:none}
html[data-platform="ios"] .sheet{border-radius:14px 14px 0 0}
html[data-platform="ios"] .sheet::before{content:"";display:block;width:36px;height:5px;border-radius:3px;background:rgba(128,128,140,.45);margin:7px auto 0}
html[data-platform="ios"] .ib{background:rgba(60,60,67,.55)}
html[data-platform="ios"] .post{border-radius:99px;font-weight:700}
html[data-platform="ios"] .nav{border:0;background:rgba(120,120,128,.16)}

html[data-platform="android"]{--font:Roboto,"Google Sans","Inter",system-ui,sans-serif;--accent:#1d5fe0}
html[data-platform="android"] body{font-family:var(--font)}
html[data-platform="android"] h1{font-weight:600;letter-spacing:0}
html[data-platform="android"] .pill{border-radius:10px;background:transparent;border:1px solid rgba(128,134,160,.55);font-weight:500;padding:8px 14px}
html[data-platform="android"] .pill.on{background:color-mix(in srgb,var(--accent) 22%,transparent);border-color:transparent;color:var(--fg)}
html[data-platform="android"] .pill.main{border:0;border-radius:20px;background:var(--accent);color:#fff;box-shadow:0 2px 6px rgba(0,0,0,.28)}
html[data-platform="android"] .go,html[data-platform="android"] .btn{border-radius:22px;font-weight:600;letter-spacing:.01em;box-shadow:0 1px 3px rgba(0,0,0,.3)}
html[data-platform="android"] .btn.ghost{box-shadow:none}
html[data-platform="android"] .f,html[data-platform="android"] input.f,html[data-platform="android"] select.f,html[data-platform="android"] .field{border:0;border-bottom:2px solid var(--accent);border-radius:12px 12px 0 0;background:rgba(128,134,160,.14)}
html[data-platform="android"] .bar{background:color-mix(in srgb,var(--accent) 7%,var(--card));border-top:0;box-shadow:0 -2px 10px rgba(0,0,0,.18)}
html[data-platform="android"] #reader,html[data-platform="android"] .hit,html[data-platform="android"] .tile,html[data-platform="android"] .card,html[data-platform="android"] .votd{border-radius:20px;border:0;box-shadow:0 1px 3px rgba(0,0,0,.2),0 1px 2px rgba(0,0,0,.14)}
html[data-platform="android"] .sheet{border-radius:28px 28px 0 0}
html[data-platform="android"] .ib{border-radius:16px}
html[data-platform="android"] .nav{border-radius:14px}
html[data-platform="android"] .post{position:fixed;right:16px;bottom:calc(20px + env(safe-area-inset-bottom));height:56px;border-radius:18px;padding:0 20px;box-shadow:0 6px 16px rgba(0,0,0,.4);z-index:25;background:var(--accent);color:#fff}
html[data-platform="android"] .pill:active,html[data-platform="android"] .btn:active,html[data-platform="android"] .go:active{filter:brightness(.88)}

/* tablets and unfolded foldables */
@media (min-width:700px){html[data-platform="ios"] .sheet{border-radius:18px}html[data-platform="ios"] .sheet::before{display:none}}
/* Z Fold cover screen, Z Flip small screens and any very narrow window */
@media (max-width:380px){
  .top .t{display:none}.top>div{gap:6px;padding-left:8px;padding-right:8px}.ib{width:34px;height:34px}.post{padding:8px 11px}
  .rail{right:6px;gap:12px}.rail svg{width:26px;height:26px}.info{right:56px}
  .wrap{padding-left:10px;padding-right:10px}h1{font-size:1.3rem}
  .bar>div{gap:6px}.pill{padding:7px 10px;font-size:.8rem}.sw{width:26px;height:26px}
}
@media (max-width:300px){.top .ib:nth-of-type(3){display:none}.legal,.sub{font-size:.7rem}}
