/* ios.css — the Apple layer. Loaded after samay.css / site.css on every page (injected by app.py).
   No Apple design resource was found in the repo, so this is the one token file: SF Pro first,
   Apple's system colours in light and dark, large titles, grouped inset surfaces, 44 px targets,
   safe-area insets, spring easing, translucent blur bars, one set of radii and shadows.
   The brand saffron stays as the app's tint colour, the way Apple apps carry a brand tint. */

:root{
  /* type */
  --ios-font:-apple-system,BlinkMacSystemFont,"SF Pro Text","SF Pro Display","Helvetica Neue","Noto Sans Devanagari","Kohinoor Devanagari",system-ui,sans-serif;
  --ios-mono:ui-monospace,"SF Mono",SFMono-Regular,Menlo,monospace;
  --f-body:var(--ios-font);--f-display:var(--ios-font);--f-data:var(--ios-mono);--f-mono:var(--ios-mono);
  --ios-title-large:34px;--ios-title:28px;--ios-headline:17px;--ios-body:17px;--ios-callout:16px;--ios-footnote:13px;
  /* shape */
  --ios-r-sm:10px;--ios-r-md:14px;--ios-r-lg:20px;
  --ios-shadow:0 1px 2px rgba(0,0,0,.06),0 8px 24px rgba(0,0,0,.08);
  --ios-tap:44px;
  /* motion: a spring-like ease, short */
  --ios-ease:cubic-bezier(.32,.72,0,1);--ios-dur:.28s;
  /* Apple system colours (dark is the default here: night is :root in samay.css) */
  --sys-blue:#0A84FF;--sys-green:#30D158;--sys-red:#FF453A;--sys-orange:#FF9F0A;
  --bg:#000000;--bg-rgb:0,0,0;--bg-2:#1C1C1E;--bg-grad:#000000;--panel:#000000;
  --surf-solid:#1C1C1E;--surf-2:#2C2C2E;--surf-3:#3A3A3C;
  --card:rgba(255,255,255,.07);--card-hi:rgba(255,255,255,.11);
  --line:#38383A;--line-hi:#48484A;
  --text:#FFFFFF;--ink:#FFFFFF;--body-c:#E5E5EA;--muted:#98989F;--mut2:#98989F;--faint:#8E8E93;
  --good:#30D158;--bad:#FF453A;
}
:root[data-theme="light"]{
  --sys-blue:#007AFF;--sys-green:#34C759;--sys-red:#FF3B30;--sys-orange:#FF9500;
  --bg:#F2F2F7;--bg-rgb:242,242,247;--bg-2:#E5E5EA;--bg-grad:#F2F2F7;--panel:#F2F2F7;
  --surf-solid:#FFFFFF;--surf-2:#E9E9EE;--surf-3:#D1D1D6;
  --card:rgba(60,60,67,.06);--card-hi:rgba(60,60,67,.10);
  --line:#D1D1D6;--line-hi:#AEAEB2;
  --text:#000000;--ink:#000000;--body-c:#1C1C1E;--muted:#5C5C61;--mut2:#5C5C61;--faint:#636366;
  --good:#248A3D;--bad:#D70015;
  --ios-shadow:0 1px 2px rgba(0,0,0,.05),0 8px 24px rgba(0,0,0,.06);
}
/* the public shell reads its own names */
:root{--bg2:var(--bg-2);--surface:var(--surf-solid);--surface2:var(--surf-2);--fg:var(--text)}

html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{font-family:var(--ios-font);-webkit-font-smoothing:antialiased;overscroll-behavior-x:none;
  padding-left:env(safe-area-inset-left,0);padding-right:env(safe-area-inset-right,0)}
/* Clip sideways overflow WITHOUT making a scroll container. `overflow-x:hidden` on html AND body (what this
   said until now) turns the body into its own scroll box, which can swallow touch drags and leave the page
   unable to scroll on some phone browsers. `clip` is what the app used before this layer; the fallback is
   body-only for browsers that predate it. */
html,body{overflow-x:clip}
@supports not (overflow:clip){html{overflow-x:visible}body{overflow-x:hidden}}

/* quiet the ground: no aurora, no artwork wash, no comets */
html::before,body::before,.skvsky,.aurora,.dust,.grain,.ambient,.skylayer{display:none!important}
body{background:var(--bg)!important}

/* large title */
main h1,.tpage h1,#title,h1.pg,.rp h1.t{font-family:var(--ios-font)!important;font-size:var(--ios-title-large);font-weight:700;letter-spacing:.37px;line-height:1.15}
h2{font-family:var(--ios-font);font-weight:600;letter-spacing:.2px}
h3{font-family:var(--ios-font);font-weight:600}

/* grouped inset surfaces: one radius, one shadow, no heavy borders */
.spot,.card,.rc,.plain-day,.skv-timeline,.skv-cells>div,.dcard,.blk{border-radius:var(--ios-r-lg)}
.spot,.card,.plain-day{border:0!important;box-shadow:var(--ios-shadow)}
.skv-cells{border-radius:var(--ios-r-lg);overflow:hidden}
input,select,textarea{border-radius:var(--ios-r-md);font-size:var(--ios-body);min-height:var(--ios-tap)}

/* translucent blur bars */
.gnav,.tabs,.nav{background:color-mix(in srgb,var(--surf-solid) 72%,transparent)!important;
  -webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px);border-color:var(--line)}
.gnav{box-shadow:var(--ios-shadow)}

/* controls: 44 px, tap state, spring */
button,a.btn,a.cta,.btn,.pill,[role="button"],.gnav a,.tabs a{min-height:var(--ios-tap);transition:transform var(--ios-dur) var(--ios-ease),opacity var(--ios-dur) var(--ios-ease),background-color var(--ios-dur) var(--ios-ease)}
button:active,a.btn:active,a.cta:active,.btn:active,[role="button"]:active,.gnav a:active,.tabs a:active{opacity:.6}   /* a dimmed press, like UIKit; no scale, so the tap target never changes size */
a,button{-webkit-tap-highlight-color:transparent}

/* chrome is not text: no selection, no callout */
nav,header,footer,button,.gnav,.tabs,.nav,.pill,.chip,.eyebrow,[role="button"],[role="tab"],.skv-lang,.skv-seg,.skvtheme,.skvacct{
  -webkit-user-select:none;user-select:none;-webkit-touch-callout:none}

/* page transitions: a short fade (opacity only: a transform would make tap targets measure fractionally small mid-animation) */
@media (prefers-reduced-motion:no-preference){
  main,.rp,.cp{animation:iosin var(--ios-dur) var(--ios-ease) both}
  @keyframes iosin{from{opacity:0}to{opacity:1}}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}

/* small uppercase labels: SF, not mono-with-tracking */
.eyebrow,.skv-label,.skv-cells .k,.pill-tag,.skvphs{font-family:var(--ios-font)!important;letter-spacing:.02em!important;text-transform:none!important;font-weight:600}

/* the header has to fit at 901-1060 px with a wider system face */
@media (min-width:901px) and (max-width:1100px){
  .nav .wrap{gap:10px}.links{margin-left:4px}.links a,.links button{padding:8px 4px;font-size:14px}.brand{font-size:17px}.nav .r{gap:6px}
}
