/* =====================================================================
   Design tokens — shared by the board and both feedback forms.
   Apple-inspired: system type, grouped surfaces, hairline separators,
   one accent (surgical-scrub teal), semantic status colours only.
   ===================================================================== */
/* Assistant (SIL Open Font License, public/assets/fonts/OFL.txt) — self-hosted, variable weight 200–800 */
@font-face { font-family: "Assistant"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("/assets/fonts/assistant-hebrew.woff2") format("woff2");
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Assistant"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("/assets/fonts/assistant-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Assistant"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("/assets/fonts/assistant-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  color-scheme: light;
  /* Type */
  --font: "Assistant", -apple-system, BlinkMacSystemFont, "Segoe UI", "Arial Hebrew", system-ui, sans-serif;
  --font-display: "Assistant", -apple-system, BlinkMacSystemFont, "Segoe UI", "Arial Hebrew", system-ui, sans-serif;
  --t-large: 34px;   /* large title */
  --t-title1: 28px;
  --t-title2: 22px;
  --t-title3: 19px;
  --t-headline: 17px;
  --t-body: 15px;
  --t-callout: 14px;
  --t-footnote: 13px;
  --t-caption: 12px;

  /* Colour — light */
  --canvas: #f5f5f7;
  --surface: #ffffff;
  --surface-2: #fafafc;
  --surface-sunken: #f0f0f3;
  --fill: rgba(118, 118, 128, 0.12);
  --fill-strong: rgba(118, 118, 128, 0.2);
  --separator: rgba(60, 60, 67, 0.13);
  --separator-strong: rgba(60, 60, 67, 0.22);
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #8e8e93;
  --ink-on-accent: #ffffff;

  --accent: #0b7a75;
  --accent-hover: #09665f;
  --accent-soft: rgba(11, 122, 117, 0.1);
  --accent-ink: #075c58;
  --focus-ring: 0 0 0 4px rgba(11, 122, 117, 0.28);

  --green: #248a3d;  --green-soft: rgba(36, 138, 61, 0.12);
  --orange: #b25000; --orange-soft: rgba(255, 149, 0, 0.16);
  --red: #d70015;    --red-soft: rgba(255, 59, 48, 0.12);
  --blue: #0066cc;   --blue-soft: rgba(0, 113, 227, 0.1);
  --purple: #8944ab; --purple-soft: rgba(175, 82, 222, 0.12);
  --pink: #c4174e;   --pink-soft: rgba(255, 45, 85, 0.1);
  --cyan: #00739a;   --cyan-soft: rgba(50, 173, 230, 0.13);

  /* Materials (glass) */
  --material: rgba(255, 255, 255, 0.72);
  --material-thick: rgba(250, 250, 252, 0.86);
  --material-sidebar: rgba(246, 246, 248, 0.78);
  --blur: saturate(180%) blur(20px);

  /* Shape — radius encodes hierarchy: window > card > control > chip */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 26px;
  --r-pill: 999px;

  /* Elevation */
  --shadow-card: 0 0.5px 0 rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-raised: 0 1px 2px rgba(0, 0, 0, 0.06), 0 4px 14px rgba(0, 0, 0, 0.06);
  --shadow-float: 0 0 0 0.5px rgba(0, 0, 0, 0.06), 0 16px 48px rgba(0, 0, 0, 0.16);

  /* Space (4pt grid) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px; --s-6: 24px; --s-8: 32px; --s-10: 40px; --s-12: 48px;

  /* Motion */
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 160ms;
  --dur: 280ms;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #000000;
  --surface: #1c1c1e;
  --surface-2: #232325;
  --surface-sunken: #121214;
  --fill: rgba(118, 118, 128, 0.24);
  --fill-strong: rgba(118, 118, 128, 0.36);
  --separator: rgba(84, 84, 88, 0.55);
  --separator-strong: rgba(110, 110, 115, 0.7);
  --ink: #f5f5f7;
  --ink-2: #a1a1a6;
  --ink-3: #8e8e93;
  --ink-on-accent: #00201e;

  --accent: #3cc4ba;
  --accent-hover: #5fd3ca;
  --accent-soft: rgba(60, 196, 186, 0.16);
  --accent-ink: #6fdcd3;
  --focus-ring: 0 0 0 4px rgba(60, 196, 186, 0.35);

  --green: #30d158;  --green-soft: rgba(48, 209, 88, 0.16);
  --orange: #ff9f0a; --orange-soft: rgba(255, 159, 10, 0.16);
  --red: #ff453a;    --red-soft: rgba(255, 69, 58, 0.16);
  --blue: #0a84ff;   --blue-soft: rgba(10, 132, 255, 0.18);
  --purple: #bf5af2; --purple-soft: rgba(191, 90, 242, 0.18);
  --pink: #ff375f;   --pink-soft: rgba(255, 55, 95, 0.16);
  --cyan: #64d2ff;   --cyan-soft: rgba(100, 210, 255, 0.16);

  --material: rgba(28, 28, 30, 0.72);
  --material-thick: rgba(30, 30, 32, 0.88);
  --material-sidebar: rgba(24, 24, 26, 0.8);

  --shadow-card: 0 0 0 0.5px rgba(255, 255, 255, 0.06);
  --shadow-raised: 0 0 0 0.5px rgba(255, 255, 255, 0.08), 0 6px 20px rgba(0, 0, 0, 0.5);
  --shadow-float: 0 0 0 0.5px rgba(255, 255, 255, 0.1), 0 20px 60px rgba(0, 0, 0, 0.6);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { min-height: 100%; }
body {
  font-family: var(--font);
  font-size: var(--t-body);
  line-height: 1.47;
  letter-spacing: 0;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.02em; line-height: 1.2; font-weight: 700; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img, svg { display: block; max-width: 100%; }
table { border-collapse: collapse; }
bdi { unicode-bidi: isolate; }
[hidden] { display: none !important; }
::selection { background: var(--accent-soft); }

:focus { outline: none; }
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--r-xs); }

.ico { width: 20px; height: 20px; flex: none; display: inline-block; vertical-align: middle; }
.ico-text { line-height: 1; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.tabular { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
}
