/* CTS Secure theme: the tokens of proposal 6c-4 (Sardar, security-tool #6814), dark only (#6752).
   Near-black neutrals and the flat left menu of his VoiceStudio picture (#6750), blue accent for the main action,
   amber for states and warnings. One set of tokens, no light set, no switch.
   Link it first on every page:   <link rel="stylesheet" href="shared/theme.css">   (../shared/theme.css from a folder)
   Tokens:
   --bg page · --surface card · --surface-2 raised/hover/track · --field input · --line border · --tint accent-tinted fill
   --text body · --heading titles · --muted secondary text (≥ 4.5:1 on --surface and --bg)
   --acc accent fill · --acc-ink text on --acc · --acc-text accent as text/icon (≥ 4.5:1 on --surface)
   --nav-* the menu · --nav-on-wash the active row (blue wash fading right; no left bar since 2 Nov, Sardar #13656)
   --yel · --yel-hi · --yel-ink the yellow Feedback button
   --ok · --warn-bg --warn-ink --warn-line · --font --font-head --font-mono · --radius --radius-lg · --shadow --shadow-pop
   --ease · --motion (200 ms, the menu icon motion) */
:root {
  --bg:#0b0b0b; --surface:#141414; --surface-2:#1d1d1d; --field:#101010; --line:#262626; --tint:#10162a;
  --text:#dadada; --heading:#ffffff; --muted:#939393;
  --acc:#4263c2; --acc-ink:#ffffff; --acc-text:#9089f9;
  --nav-bg:#111111; --nav-text:#dadada; --nav-muted:#939393; --nav-head:#ffffff; --nav-hover:rgba(255,255,255,.045);
  --nav-card:#141414; --nav-on-bg:#1e1e1e; --nav-on-text:#ffffff; --nav-on-icon:#9089f9;
  --nav-on-wash:linear-gradient(90deg, rgba(66,99,194,.30), rgba(66,99,194,.08) 70%, transparent);
  --yel:#f2c230; --yel-hi:#f7d04f; --yel-ink:#1b1500;   /* the Feedback button (Sardar #8768): yellow, dark text (≈ 11:1) */
  --ok:#4ade80; --warn-bg:#211a06; --warn-ink:#e3bb3c; --warn-line:#5c4510;
  --paper:#fff; --paper-ink:#1f1f1f; --paper-line:#d4d4d4; --paper-head:#f1f1f1; --paper-dim:#5f6368; --paper-grip:#9aa0a6;   /* a sheet of an Excel file (fileshare): white in both themes, as paper is */
  --font:"Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --font-head:var(--font); --font-mono:var(--font);
  --radius:10px; --radius-lg:14px; --shadow:none; --shadow-pop:0 10px 28px rgba(0,0,0,.28);
  --ease:cubic-bezier(.2,.7,.2,1); --motion:200ms;
  /* DESIGN.md: the seven type roles (font shorthands), the three control heights, the chosen state of a tab or a row (never the accent fill; what is on, a switch or a pressed segment, is the accent), the danger text */
  --t-display:700 28px/1.2 var(--font); --t-title:600 20px/1.25 var(--font); --t-section:600 16px/1.3 var(--font); --t-strong:600 14px/1.4 var(--font);
  --t-body:400 14px/1.5 var(--font); --t-small:400 12.5px/1.4 var(--font); --t-label:700 11px/1.3 var(--font); --t-help:var(--t-small);
  --ctl:36px; --ctl-s:30px; --ctl-l:44px; --badge:20px; --pad:20px; --pick:#262a36; --pick-line:#3a4258; --danger:#f0a3a3;
  color-scheme:dark;
}
@media (max-width: 860px), (max-height: 520px) and (pointer: coarse) {   /* the phone column of DESIGN.md's tables */
  :root { --t-display:700 26px/1.2 var(--font); --t-section:600 18px/1.3 var(--font); --t-strong:600 15px/1.4 var(--font); --t-body:400 15px/1.5 var(--font);
    --t-small:400 13px/1.4 var(--font); --t-label:700 13px/1.3 var(--font); --t-help:400 15px/1.45 var(--font); --ctl:44px; --ctl-s:44px; --pad:16px; }
}
@media (pointer: coarse) { :root { --ctl:44px; --ctl-s:44px; } }   /* a finger at any width (a tablet lying down): the desk's type and layout, the phone's control heights */

/* the base every shell page shares; a guide page that links this file gets the same */
html { background:var(--bg); }
body { background:var(--bg); color:var(--text); font-family:var(--font); -webkit-font-smoothing:antialiased; font-feature-settings:"cv11", "tnum"; }
::selection { background:rgba(66,99,194,.45); color:#fff; }
/* a double tap on a control never zooms the page (Sardar #8983); the 3D canvases keep their own touch-action */
button, a, summary, label, select, input, textarea, [role="button"], [role="tab"] { touch-action:manipulation; }

/* line icons (24 × 24, stroke = currentColor): ic() in shared/nav.js */
.ic { width:20px; height:20px; flex:none; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }


/* ---------- the phone type scale (Sardar #8709), one rule for every page that links this file ----------
   Phone (< 860 px): reading text never under 15 px; labels, tags and the small caps lines 13 px; section headings and card titles one
   step (2 px or more) up; every tap target 44 px. The page title in the header (20 px semibold) is shared/nav.css.
   The extra `body` raises each rule over the page's own css, which loads after this file. Nothing changes above 860 px.
   A page on the standard (DESIGN.md) says <body class="... ui"> and is not reached by these rules: its sizes are the --t-* roles.
   When every page says it, this block and the class go. */
@media (max-width: 860px), (max-height: 520px) and (pointer: coarse) {
  body:not(.ui) .page h1, body:not(.ui) #app h1 { font-size:28px; }
  body:not(.ui) .page h2 { font-size:24px; }                                  /* Settings: a view's heading, 22 → 24 */
  body:not(.ui) .shead h2, body:not(.ui) .shead h3 { font-size:20px; }                 /* section heading, 17 → 20 */
  body:not(.ui) .cont h2, body:not(.ui) .sim h2 { font-size:22px; }                    /* card title on Home 20 → 22, on Simulators 18 → 22 */
  body:not(.ui) #app .name, body:not(.ui) .quick b, body:not(.ui) .vgrid b { font-size:18px; }  /* guide card title 16 → 18, quick-link title 15 → 18 */
  body:not(.ui) [data-cts-page][data-cts-page] :is(small, .type, .open, .vn, .n, .sub, label, p, .btn, .snav a), body:not(.ui) .shead a { font-size:15px; }
  body:not(.ui) .info p.spec { font-size:15px; }                               /* the 3D viewer's model line */
  body:not(.ui) [data-cts-page][data-cts-page] :is(.eyebrow, .kick, .kicker, .cat, .tag), body:not(.ui) .hint, body:not(.ui) .info .k { font-size:13px; }
  body:not(.ui) .tab, body:not(.ui) .snav a { min-height:44px; }
  body:not(.ui) .shead a { min-height:44px; }
  body:not(.ui) .cts-cmdf { height:44px; }
  body:not(.ui) .cts-cmdf input { height:100%; }
}
