/* ALL41 / SIGNAL v2.0 — design tokens
   Source: 10_Tokens/signal.tokens.css + SIGNAL Brand Guide HE v2.0 */
:root {
  /* Brand palette */
  --signal-navy: #142955;
  --signal-cobalt: #3F52FF;
  --signal-cyan: #55C9FF;
  --signal-citron: #D8FF5A;
  --signal-ice: #F2F6FF;
  --signal-white: #FFFFFF;
  --signal-muted: #536687;
  --signal-divider: #D0D9EB;

  /* Semantic — light (default) */
  --bg: var(--signal-white);
  --surface: var(--signal-ice);
  --card: var(--signal-white);
  --ink: var(--signal-navy);
  --ink-2: var(--signal-muted);
  --line: var(--signal-divider);
  --link: var(--signal-cobalt);
  --mast: var(--signal-navy);
  --mast-2: #1B3366;
  --mast-ink: #F2F6FF;
  --mast-ink-2: #C8D4EC;
  --mast-ink-3: #9FB0D3;
  --cobalt-hover: #2F41F0;

  /* Type */
  --font-he: 'Assistant', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-en: system-ui, -apple-system, 'Segoe UI', sans-serif;
  --signal-heading-weight: 700;
  --signal-body-weight: 400;

  /* Spacing scale (brand guide): 4 8 12 16 24 32 48 64 96 */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;

  /* Shape */
  --signal-logo-desktop: 88px;
  --signal-header-desktop: 144px;
  --signal-card-radius: 24px;
  --signal-dialog-radius: 28px;
  --radius-input: 14px;

  /* Motion */
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --t-press: 120ms;
  --signal-reader-duration: 180ms;
  --t-reveal: 520ms;
}

@media (prefers-reduced-motion: reduce) {
  :root { --signal-reader-duration: 0ms; --t-press: 0ms; --t-reveal: 0ms; }
}

/* ALL41 — site styles. Depends on tokens.css */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-he);
  font-weight: var(--signal-body-weight);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color var(--signal-reader-duration) var(--ease-out), color var(--signal-reader-duration) var(--ease-out);
}
html[lang="en"] body { font-family: var(--font-en); }
img, svg { display: block; max-width: 100%; }
a { color: var(--link); }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 6px; }
.mast :focus-visible { outline-color: var(--signal-citron); }
.en { font-family: var(--font-en); }
.he { font-family: var(--font-he); }
.ltr { direction: ltr; unicode-bidi: isolate; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 50; background: var(--signal-citron); color: var(--signal-navy); padding: 12px 18px; border-radius: 12px; font-weight: 700; text-decoration: none; transition: top var(--t-press) var(--ease-out); }
.skip-link:focus { top: 16px; }

.wrap { max-width: 1200px; margin-inline: auto; padding-inline: clamp(20px, 5vw, 48px); }
.sec { padding-block: clamp(64px, 8vw, 104px); }
.sec-flush-top { padding-top: 0; }
.bg-surface { background: var(--surface); }
.stack { display: flex; flex-direction: column; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; } .gap-5 { gap: 24px; } .gap-6 { gap: 32px; } .gap-7 { gap: 40px; }
.split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.split-even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.split-lead { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.sec-head { display: flex; flex-direction: column; gap: 12px; max-width: 720px; }
.sec-head-row { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }

/* Type */
.eyebrow { font-family: var(--font-en); font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin: 0; }
html[lang="he"] .eyebrow { font-family: var(--font-he); font-size: 15px; font-weight: 700; letter-spacing: .02em; }
.mast .eyebrow { color: var(--signal-cyan); }
.display { font-size: clamp(40px, 5.4vw, 68px); line-height: 1.06; font-weight: 800; margin: 0; text-wrap: balance; }
html[lang="en"] .display { font-weight: 700; letter-spacing: -.02em; }
.h1 { font-size: clamp(36px, 4.4vw, 56px); line-height: 1.08; font-weight: 800; margin: 0; text-wrap: balance; }
.h2 { font-size: clamp(30px, 3.4vw, 40px); line-height: 1.15; font-weight: var(--signal-heading-weight); margin: 0; text-wrap: balance; }
.h3 { font-size: clamp(21px, 2.1vw, 27px); line-height: 1.25; font-weight: 700; margin: 0; }
html[lang="en"] .h2, html[lang="en"] .h3 { font-weight: 600; letter-spacing: -.01em; }
.lead { font-size: clamp(19px, 1.7vw, 22px); line-height: 1.6; margin: 0; }
.body { font-size: 18px; line-height: 1.65; margin: 0; }
.small { font-size: 16px; }
.meta { font-size: 15px; line-height: 1.5; color: var(--ink-2); margin: 0; }
.muted { color: var(--ink-2); }
.mast .lead, .mast .muted-on-dark { color: var(--mast-ink-2); }
.text-link { color: var(--link); font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Masthead */
.mast { background: var(--mast); color: var(--mast-ink); position: relative; overflow: hidden; }
.gridlines { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(to left, rgba(85, 201, 255, .07) 1px, transparent 1px); background-size: calc(100% / 12) 100%; }
/* Division accents */
body { --accent: var(--signal-cobalt); --accent-ink: #FFFFFF; --accent-hover: var(--cobalt-hover); --accent-text: var(--signal-cobalt); --accent-on-dark: var(--signal-cyan); }
body[data-division="research"] { --accent: #3F52FF; --accent-ink: #FFFFFF; --accent-hover: #2F41F0; --accent-text: #3F52FF; --accent-on-dark: #8F9BFF; }
body[data-division="academy"] { --accent: #D8FF5A; --accent-ink: #142955; --accent-hover: #C9F23F; --accent-text: #566600; --accent-on-dark: #D8FF5A; }
body[data-division="consulting"] { --accent: #55C9FF; --accent-ink: #142955; --accent-hover: #3DBBF5; --accent-text: #0A6A94; --accent-on-dark: #55C9FF; }
:root[data-theme="dark"] body { --accent-text: var(--accent-on-dark); }
body[data-division] { --link: var(--accent-text); }
.mast .eyebrow, .mast .accent { color: var(--accent-on-dark); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: var(--accent-hover); }

/* Header */
.topbar { position: relative; z-index: 5; display: flex; align-items: center; gap: 32px; min-height: 104px; }
.brand { display: inline-flex; align-items: center; gap: 18px; color: var(--mast-ink); text-decoration: none; flex: none; }
.brand img { width: 60px; height: auto; }
.brand .brand-tag { display: flex; flex-direction: column; gap: 2px; padding-inline-start: 18px; border-inline-start: 1px solid rgba(242, 246, 255, .18); font-size: 15px; line-height: 1.35; color: var(--mast-ink-2); }
.brand .brand-tag b { color: var(--accent-on-dark); font-family: var(--font-en); font-size: 12px; letter-spacing: .16em; font-weight: 700; }
.mainnav { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0 auto; padding: 0; }
.mainnav > li { position: relative; }
.mainnav a, .mainnav button { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--mast-ink-2); text-decoration: none; font: inherit; font-size: 17px; font-weight: 600; cursor: pointer; transition: color var(--t-press) var(--ease-out), background-color var(--t-press) var(--ease-out); }
html[lang="en"] .mainnav a, html[lang="en"] .mainnav button { font-size: 15px; font-weight: 500; }
.mainnav a:hover, .mainnav button:hover, .mainnav button[aria-expanded="true"] { color: #FFFFFF; background: rgba(242, 246, 255, .07); }
.mainnav a[aria-current="page"], .mainnav button[data-current] { color: #FFFFFF; background: rgba(143, 155, 255, .16); }
.mainnav .chev { transition: transform 200ms var(--ease-out); }
.mainnav button[aria-expanded="true"] .chev { transform: rotate(180deg); }
.tools { display: flex; align-items: center; gap: 10px; flex: none; }
.iconbtn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 999px; border: 1px solid rgba(242, 246, 255, .22); background: transparent; color: var(--mast-ink); cursor: pointer; text-decoration: none; font: 600 13px var(--font-en); transition: border-color var(--t-press) var(--ease-out), transform var(--t-press) var(--ease-out); }
.iconbtn.he { font-family: var(--font-he); font-size: 14px; font-weight: 700; }
.iconbtn:hover { border-color: #F2F6FF; }
.iconbtn:active { transform: scale(.94); }
.iconbtn .i-sun { display: none; }
:root[data-theme="dark"] .iconbtn .i-sun { display: block; }
:root[data-theme="dark"] .iconbtn .i-moon { display: none; }
.menubtn { display: none; gap: 10px; width: auto; padding: 0 16px; font: 700 15px var(--font-he); }
html[lang="en"] .menubtn { font-family: var(--font-en); font-weight: 600; }

/* Topics mega panel */
.mega { position: absolute; top: calc(100% + 12px); inset-inline-start: 50%; transform: translate(50%, -6px); width: min(860px, 92vw); background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: var(--signal-dialog-radius); box-shadow: 0 24px 60px -24px rgba(8, 20, 48, .45); padding: 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; opacity: 0; visibility: hidden; transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out), visibility 0s linear 180ms; z-index: 20; }
html[dir="ltr"] .mega { transform: translate(-50%, -6px); }
.mega.is-open { opacity: 1; visibility: visible; transform: translate(50%, 0); transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out); }
html[dir="ltr"] .mega.is-open { transform: translate(-50%, 0); }
.mega a { display: grid !important; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: start; padding: 14px !important; min-height: 0 !important; border-radius: 16px !important; color: var(--ink) !important; background: transparent !important; }
.mega a:hover { background: var(--surface) !important; }
.mega a .n { font-family: var(--font-en); font-size: 13px; font-weight: 700; color: var(--link); padding-top: 3px; }
.mega a b { display: block; font-size: 17px; margin-bottom: 2px; }
.mega a span span { display: block; font-size: 14px; font-weight: 400; color: var(--ink-2); line-height: 1.45; }
.mega .mega-all { grid-column: 1 / -1; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; display: flex; justify-content: space-between; align-items: center; }

/* Mobile overlay menu */
.overlay { position: fixed; inset: 0; z-index: 60; background: var(--mast); color: var(--mast-ink); overflow-y: auto; opacity: 0; visibility: hidden; transition: opacity 200ms var(--ease-out), visibility 0s linear 200ms; }
.overlay.is-open { opacity: 1; visibility: visible; transition: opacity 200ms var(--ease-out); }
.overlay-top { display: flex; align-items: center; justify-content: space-between; min-height: 76px; }
.overlay-top img { width: 44px; height: auto; }
.ov-list { display: flex; flex-direction: column; padding-block: 8px 16px; }
.ov-list > a, .ov-group > span { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-top: 1px solid rgba(242, 246, 255, .12); color: var(--mast-ink); text-decoration: none; font-size: 24px; font-weight: 700; transform: translateY(10px); opacity: 0; transition: transform 320ms var(--ease-out), opacity 320ms var(--ease-out); transition-delay: calc(var(--i, 0) * 45ms); }
.ov-list > a[aria-current="page"] { color: var(--accent-on-dark); }
.ov-group { display: flex; flex-direction: column; }
.ov-topics { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 14px; transform: translateY(10px); opacity: 0; transition: transform 320ms var(--ease-out) 200ms, opacity 320ms var(--ease-out) 200ms; }
.ov-topics a { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(242, 246, 255, .2); display: inline-flex; align-items: center; color: var(--mast-ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.overlay.is-open .ov-list > a, .overlay.is-open .ov-group > span, .overlay.is-open .ov-topics { transform: none; opacity: 1; }
.ov-tools { display: flex; gap: 10px; align-items: center; padding-block: 16px 32px; border-top: 1px solid rgba(242, 246, 255, .12); }
.ov-tools .btn { flex: 1; }
html.menu-open { overflow: hidden; }

.hero { position: relative; z-index: 1; padding-top: clamp(32px, 6vw, 88px); padding-bottom: clamp(64px, 8vw, 112px); display: flex; flex-direction: column; gap: 28px; }
.hero-compact { padding-top: 24px; padding-bottom: 72px; gap: 20px; }

/* Axes motif */
.axes { display: flex; align-items: center; flex-wrap: wrap; row-gap: 12px; max-width: 640px; }
.axis { font-family: var(--font-en); font-size: 13px; font-weight: 600; letter-spacing: .14em; color: var(--mast-ink); padding: 8px 14px; border: 1px solid rgba(85, 201, 255, .45); border-radius: 999px; }
html[lang="he"] .axis { font-family: var(--font-he); font-size: 15px; letter-spacing: .02em; }
.link-line { flex: 1 1 40px; min-width: 28px; height: 1px; background: linear-gradient(to left, rgba(85, 201, 255, .6), rgba(85, 201, 255, .2)); position: relative; }
.link-line::after { content: ""; position: absolute; inset-inline-start: 50%; top: -3px; width: 7px; height: 7px; border-radius: 2px; background: var(--signal-citron); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: 999px; font: inherit; font-weight: 700; font-size: 17px; text-decoration: none; cursor: pointer; border: 1px solid transparent; white-space: nowrap; transition: transform var(--t-press) var(--ease-out), background-color var(--t-press) var(--ease-out), border-color var(--t-press) var(--ease-out), color var(--t-press) var(--ease-out); }
html[lang="en"] .btn { font-weight: 600; font-size: 16px; }
.btn:active { transform: scale(.97); }
.btn-lg { min-height: 56px; font-size: 18px; }
.btn-primary { background: var(--signal-cobalt); color: #FFFFFF; }
.btn-primary:hover { background: var(--cobalt-hover); }
.btn-ghost { border-color: rgba(242, 246, 255, .35); color: var(--mast-ink); background: transparent; }
.btn-ghost:hover { border-color: #F2F6FF; }
.btn-line { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-line:hover { border-color: var(--ink); }
.btn .arr { display: inline-block; transition: transform 200ms var(--ease-out); }
.btn:hover .arr { transform: translateX(-4px); }
html[dir="ltr"] .btn:hover .arr { transform: translateX(4px); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Tags */
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { display: inline-flex; align-items: center; gap: 8px; min-height: 30px; padding: 0 12px; border-radius: 999px; font-size: 14px; font-weight: 600; background: var(--surface); color: var(--ink); }
.tag-outline { background: transparent; border: 1px solid var(--line); }
.tag i, .key i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; flex: none; }
.c-fact { background: var(--ink); }
.c-interp { background: var(--signal-cobalt); }
.c-assess { background: var(--signal-cyan); }
.c-scen { border: 2px solid var(--ink); background: transparent; }

/* Rows (research list) */
.rows { display: flex; flex-direction: column; border-bottom: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 140px minmax(0, 1fr) 44px; gap: 28px; padding-block: 30px; border-top: 1px solid var(--line); text-decoration: none; color: inherit; align-items: start; }
.row[hidden] { display: none; }
.row-kind { display: flex; flex-direction: column; gap: 6px; padding-top: 4px; }
.row-kind b { font-size: 15px; font-weight: 600; color: var(--ink); }
.row-main { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.row-title { transition: color var(--t-press) var(--ease-out); }
.row:hover .row-title { color: var(--link); }
.go { width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); display: grid; place-items: center; transition: transform 200ms var(--ease-out), border-color var(--t-press) var(--ease-out), color var(--t-press) var(--ease-out); }
.row:hover .go { transform: translateX(-4px); border-color: var(--link); color: var(--link); }
html[dir="ltr"] .row:hover .go { transform: translateX(4px); }

/* Cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--signal-card-radius); padding: 32px; display: flex; flex-direction: column; gap: 16px; text-decoration: none; color: inherit; transition: transform 200ms var(--ease-out), border-color var(--t-press) var(--ease-out); }
a.card:hover, .card-hover:hover { transform: translateY(-3px); border-color: var(--link); }
.card-kicker { font-family: var(--font-en); font-size: 14px; font-weight: 700; letter-spacing: .08em; color: var(--link); }
.card .more { margin-top: auto; font-weight: 700; color: var(--link); }
.panel-soft { background: var(--surface); border-radius: var(--signal-card-radius); padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.panel-line { border: 1px solid var(--line); border-radius: var(--signal-dialog-radius); padding: clamp(24px, 4vw, 40px); background: var(--card); }
.finding { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line); padding-top: 18px; }
.finding .tag { align-self: flex-start; background: var(--card); }

/* Numbered lists */
.numlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.numlist li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; padding-block: 22px; border-top: 1px solid var(--line); }
.numlist .n { font-family: var(--font-en); font-size: 15px; font-weight: 700; color: var(--link); padding-top: 4px; }
.numlist .t { font-size: 21px; font-weight: 700; display: block; margin-bottom: 6px; }
.audience > div { display: flex; flex-direction: column; gap: 10px; border-top: 2px solid var(--ink); padding-top: 20px; }
.audience b { font-size: 20px; }
.svc { display: flex; flex-direction: column; gap: 8px; padding-block: 28px; border-top: 1px solid var(--line); }
.fmt { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; padding-block: 28px; border-top: 1px solid var(--line); }
.fmt:last-child { border-bottom: 1px solid var(--line); }

/* CTA band */
.cta-band { border-radius: var(--signal-dialog-radius); padding: clamp(32px, 5vw, 64px); display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }

/* Daily card */
.daily-card { background: var(--card); color: var(--ink); border-radius: var(--signal-card-radius); overflow: hidden; border: 1px solid var(--line); }
.daily-card header { background: var(--mast-2); color: var(--mast-ink); padding: 20px 28px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.daily-card .inner { padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.daily-card .blk { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--line); padding-top: 16px; }

/* Forms */
.field { display: flex; flex-direction: column; gap: 8px; }
.label { font-size: 15px; font-weight: 600; }
.label .opt-note { font-weight: 400; color: var(--ink-2); }
.input { min-height: 52px; width: 100%; border-radius: var(--radius-input); border: 1px solid var(--line); background: var(--bg); color: var(--ink); padding: 0 16px; font: inherit; font-size: 17px; transition: border-color var(--t-press) var(--ease-out); }
textarea.input { min-height: 140px; padding: 14px 16px; resize: vertical; line-height: 1.6; }
.input:focus { border-color: var(--link); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--link) 20%, transparent); }
.input[aria-invalid="true"] { border-color: #D92D20; }
.mast .input { border-color: rgba(242, 246, 255, .28); background: rgba(242, 246, 255, .06); color: var(--mast-ink); }
.mast .input::placeholder { color: var(--mast-ink-3); }
.mast .input:focus { border-color: var(--signal-cyan); }
.mast .label { color: var(--mast-ink-2); }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.inline-form .field { flex: 1 1 260px; }
.choices { display: flex; gap: 8px; flex-wrap: wrap; border: 0; padding: 0; margin: 0; }
.choices legend { padding: 0; margin-bottom: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); display: inline-flex; align-items: center; font-size: 16px; font-weight: 600; transition: background-color var(--t-press) var(--ease-out), border-color var(--t-press) var(--ease-out), color var(--t-press) var(--ease-out), transform var(--t-press) var(--ease-out); }
.choice:hover span { border-color: var(--ink); }
.choice:active span { transform: scale(.97); }
.choice input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.choice input:focus-visible + span { outline: 2px solid var(--link); outline-offset: 3px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--signal-cobalt); flex: none; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-status { display: flex; flex-direction: column; gap: 12px; padding-block: 24px; animation: fadeUp 260ms var(--ease-out) both; }
.form-status[hidden] { display: none; }
.form-status .dot, .dot { width: 12px; height: 12px; border-radius: 3px; background: var(--signal-cobalt); display: inline-block; }
.mast .form-status .dot { background: var(--signal-citron); }
.form-error { color: #D92D20; font-size: 15px; margin: 0; }
:root[data-theme="dark"] .form-error { color: #FF9C8F; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Filter chips */
.chip { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink); font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: background-color var(--t-press) var(--ease-out), border-color var(--t-press) var(--ease-out), color var(--t-press) var(--ease-out), transform var(--t-press) var(--ease-out); }
.chip:hover { border-color: var(--ink); }
.chip:active { transform: scale(.97); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip .n { font-family: var(--font-en); font-size: 13px; opacity: .7; }
.empty { border: 1px dashed var(--line); border-radius: var(--signal-card-radius); padding: 48px 32px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.empty[hidden] { display: none; }
.layout-aside { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.sticky { position: sticky; top: 24px; }
.key { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.key i { width: 10px; height: 10px; border-radius: 3px; }

/* Tabs */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.step { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px 0 0; background: none; border: 0; border-top: 2px solid var(--line); color: var(--ink-2); font: inherit; text-align: start; cursor: pointer; transition: border-color 200ms var(--ease-out), color var(--t-press) var(--ease-out); }
.step:hover { color: var(--ink); }
.step[aria-selected="true"] { border-color: var(--link); color: var(--ink); }
.step .n { font-family: var(--font-en); font-size: 14px; font-weight: 700; }
.step .t { font-size: 24px; font-weight: 700; }
.tabpanel { background: var(--card); border: 1px solid var(--line); border-radius: var(--signal-card-radius); padding: clamp(24px, 4vw, 40px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
.tabpanel[hidden] { display: none; }
.tabpanel.is-in { animation: fadeUp 220ms var(--ease-out) both; }

/* Accordion */
.faq { border-bottom: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 72px; padding: 16px 0; font-size: 21px; font-weight: 700; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq .pm { width: 32px; height: 32px; flex: none; border-radius: 999px; border: 1px solid var(--line); display: grid; place-items: center; transition: transform 200ms var(--ease-out); }
.faq details[open] .pm { transform: rotate(45deg); }
.faq details[open] p { animation: fadeUp 220ms var(--ease-out) both; }
.faq p { margin: 0 0 24px; max-width: 60ch; }

/* Article */
.progress { position: fixed; top: 0; inset-inline: 0; z-index: 40; height: 3px; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--signal-cyan); transform: scaleX(0); transform-origin: right; }
html[dir="ltr"] .progress span { transform-origin: left; }
.crumbs { margin-bottom: 32px; }
.crumbs a { color: var(--link); text-decoration: none; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 5vw, 80px); align-items: start; }
.article-head { display: flex; flex-direction: column; gap: 20px; max-width: 780px; margin-bottom: 40px; }
.article-dek { font-size: clamp(20px, 1.9vw, 24px); line-height: 1.55; margin: 0; color: var(--ink-2); }
.article-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border-block: 1px solid var(--line); padding-block: 14px; }
.sizebtn { width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink); font-family: var(--font-he); font-weight: 700; cursor: pointer; transition: border-color var(--t-press) var(--ease-out), transform var(--t-press) var(--ease-out); }
.sizebtn:hover { border-color: var(--link); }
.sizebtn:active { transform: scale(.94); }
.sizebtn[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.prose { --prose-size: 20px; font-size: var(--prose-size); line-height: 1.75; max-width: 780px; }
.prose.is-large { --prose-size: 22px; }
.prose > * { margin: 0 0 1.1em; }
.prose h2 { font-size: clamp(26px, 2.6vw, 32px); line-height: 1.2; margin-top: 1.8em; scroll-margin-top: 24px; }
.prose h3 { font-size: clamp(21px, 2vw, 24px); line-height: 1.3; margin-top: 1.5em; scroll-margin-top: 24px; }
.prose h4 { font-size: 19px; margin-top: 1.3em; }
.prose ul, .prose ol { padding-inline-start: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose blockquote { margin-inline: 0; padding: 22px 26px; background: var(--surface); border-radius: var(--signal-card-radius); line-height: 1.65; }
.prose blockquote strong { color: var(--link); }
.prose blockquote p { margin: 0; }
.prose a { text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose pre { direction: ltr; text-align: left; overflow-x: auto; background: var(--surface); border-radius: 16px; padding: 20px; font-size: 14px; line-height: 1.6; }
.prose code { font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; margin: 0 0 1.4em; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.5; }
.prose th, .prose td { text-align: start; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--surface); font-weight: 700; }
.prose td:first-child, .prose th:first-child { min-width: 9ch; }
.prose tr:last-child td { border-bottom: 0; }
.sources { border-top: 1px solid var(--line); padding-top: 28px; max-width: 780px; display: flex; flex-direction: column; gap: 14px; margin-top: 40px; }
.sources ol { margin: 0; padding-inline-start: 22px; display: flex; flex-direction: column; gap: 8px; font-size: 16px; line-height: 1.5; }
.sources a { text-underline-offset: 3px; }
.pager { display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); padding-top: 28px; margin-top: 40px; max-width: 780px; }
.pager a { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: inherit; max-width: 48%; }
.pager a:hover b { color: var(--link); }
.pager b { font-size: 20px; transition: color var(--t-press) var(--ease-out); }
.pager .next { margin-inline-start: auto; text-align: end; }
.side { display: flex; flex-direction: column; gap: 20px; }
.toc { border: 1px solid var(--line); border-radius: var(--signal-card-radius); padding: 20px 12px; display: flex; flex-direction: column; gap: 2px; max-height: calc(100vh - 160px); overflow: auto; }
.toc .eyebrow { padding: 0 12px 10px; }
.toc a { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 8px; padding: 9px 12px; border-radius: 12px; text-decoration: none; color: var(--ink-2); font-size: 15px; line-height: 1.4; transition: background-color var(--t-press) var(--ease-out), color var(--t-press) var(--ease-out); }
.toc a.no-num { grid-template-columns: minmax(0, 1fr); }
.toc a:hover { background: var(--surface); color: var(--ink); }
.toc a[aria-current="page"], .toc a[aria-current="true"] { background: var(--surface); color: var(--ink); font-weight: 700; }
.toc .num { font-family: var(--font-en); font-size: 13px; padding-top: 2px; }
.side-cta { background: var(--mast); color: var(--mast-ink); border-radius: var(--signal-card-radius); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.side-cta p { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.3; }
.notice { border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; font-size: 15px; color: var(--ink-2); line-height: 1.6; }

/* Footer */
.foot a { color: var(--mast-ink-2); text-decoration: none; transition: color var(--t-press) var(--ease-out); }
.foot a:hover { color: #FFFFFF; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.foot-col { display: flex; flex-direction: column; gap: 12px; }
.foot-legal { margin: 0; font-size: 14px; line-height: 1.6; color: var(--mast-ink-3); max-width: 90ch; border-top: 1px solid rgba(242, 246, 255, .14); padding-top: 24px; }
.foot-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--mast-ink-3); }
.motto { font-family: var(--font-en); letter-spacing: .14em; font-weight: 600; color: var(--signal-cyan); }

/* Motion */
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.rise { animation: rise var(--t-reveal) var(--ease-out) both; animation-delay: calc(var(--i, 0) * 70ms); }
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity var(--t-reveal) var(--ease-out), transform var(--t-reveal) var(--ease-out); transition-delay: calc(var(--i, 0) * 60ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

.foot-grid-5 { grid-template-columns: 1.3fr repeat(4, minmax(0, 1fr)); }

/* Research files (cards) */
.files { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.file { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 32px; border-radius: var(--signal-card-radius); border: 1px solid var(--line); background: var(--card); color: inherit; text-decoration: none; transition: transform 200ms var(--ease-out), border-color var(--t-press) var(--ease-out); }
.file:hover { transform: translateY(-3px); border-color: var(--link); }
.file .h3 { transition: color var(--t-press) var(--ease-out); }
.file:hover .h3 { color: var(--link); }
.file .foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.files-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.file-lead { grid-column: 1 / -1; background: var(--mast); color: var(--mast-ink); border-color: transparent; padding: clamp(32px, 4vw, 48px); }
.file-lead .muted, .file-lead .meta { color: var(--mast-ink-2); }
.file-lead .tag { background: rgba(242, 246, 255, .1); color: var(--mast-ink); }
.file-lead .foot { border-color: rgba(242, 246, 255, .14); }
.file-lead:hover .h3 { color: var(--accent-on-dark); }
.file-lead .h3 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.15; }

/* Status: research maturity */
.status { display: inline-flex; align-items: center; gap: 8px; min-height: 30px; padding: 0 12px; border-radius: 999px; font-size: 14px; font-weight: 700; border: 1px solid currentColor; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-final { color: var(--ink); }
.status-cond { color: var(--link); }
.status-wip { color: var(--ink-2); border-style: dashed; }
.mast .status, .file-lead .status { color: var(--mast-ink); }

/* Topic blocks */
.topic-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.topic { display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: var(--signal-card-radius); background: var(--card); border: 1px solid var(--line); text-decoration: none; color: inherit; transition: transform 200ms var(--ease-out), border-color var(--t-press) var(--ease-out); }
.topic:hover { transform: translateY(-3px); border-color: var(--link); }
.topic .n { font-family: var(--font-en); font-size: 14px; font-weight: 700; color: var(--link); }
.topic b { font-size: 21px; line-height: 1.3; }
.topic .count { margin-top: auto; font-size: 15px; color: var(--ink-2); }
.questions { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.questions li { padding: 22px 0; border-top: 1px solid var(--line); font-size: clamp(19px, 1.8vw, 22px); font-weight: 600; line-height: 1.45; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; }
.questions li::before { content: "?"; font-family: var(--font-en); font-weight: 700; color: var(--link); }
.questions li:last-child { border-bottom: 1px solid var(--line); }

/* Services */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.svc-card { display: flex; flex-direction: column; gap: 12px; padding: 26px; border-radius: var(--signal-card-radius); border: 1px solid var(--line); background: var(--card); }
.svc-card .n { font-family: var(--font-en); font-size: 14px; font-weight: 700; color: var(--link); }
.svc-card ul { margin: 6px 0 0; padding-inline-start: 1.1em; color: var(--ink-2); font-size: 16px; line-height: 1.6; }
.standard { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0 32px; }
.standard > div { display: flex; flex-direction: column; gap: 6px; padding-block: 22px; border-top: 2px solid var(--ink); }
.standard b { font-size: 19px; }

/* Daily archive */
.issues { display: flex; flex-direction: column; border-bottom: 1px solid var(--line); }
.issue { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 22px 0; border-top: 1px solid var(--line); text-decoration: none; color: inherit; }
.issue:hover b { color: var(--link); }

/* Report components (from ALL41 report template) */
.prose .cards, .prose .risk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.prose .cards > div, .prose .risk-grid > div { background: var(--surface); border-radius: 18px; padding: 20px; font-size: 16px; line-height: 1.55; }
.prose .cards span, .prose .risk-grid span { display: block; font-family: var(--font-en); font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--link); margin-bottom: 6px; text-transform: uppercase; }
.prose .cards b, .prose .risk-grid b { display: block; font-size: 18px; margin-bottom: 6px; }
.prose .cards p, .prose .risk-grid p { margin: 0; color: var(--ink-2); }
.prose .metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0; border-block: 1px solid var(--line); }
.prose .metric-grid > div { padding: 18px 16px; border-inline-start: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.prose .metric-grid > div:first-child { border-inline-start: 0; }
.prose .metric-grid small { font-size: 13px; color: var(--ink-2); }
.prose .metric-grid b { font-family: var(--font-en); font-size: 28px; line-height: 1.2; }
.prose .metric-grid span { font-size: 13px; color: var(--ink-2); }
.prose .flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-family: var(--font-en); font-size: 14px; }
.prose .flow span { padding: 8px 12px; border-radius: 999px; background: var(--surface); font-weight: 600; }
.prose .flow i { font-style: normal; color: var(--ink-2); }
.prose .equation { direction: ltr; text-align: left; font-family: ui-monospace, Menlo, monospace; font-size: 14px; line-height: 1.7; background: var(--surface); border-radius: 16px; padding: 18px 20px; overflow-x: auto; }
.prose .callout { background: var(--surface); border-radius: 18px; padding: 20px 24px; }
.prose .note { font-size: 16px; color: var(--ink-2); border: 1px dashed var(--line); border-radius: 14px; padding: 14px 18px; }
.prose a.cite { font-family: var(--font-en); font-size: .72em; font-weight: 600; text-decoration: none; vertical-align: .25em; }
.prose .source-list { font-size: 15px; line-height: 1.55; }
.prose td.num { font-family: var(--font-en); text-align: end; white-space: nowrap; }
.report-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0; border-block: 1px solid var(--line); }
.report-meta > div { padding: 14px 16px 14px 0; display: flex; flex-direction: column; gap: 2px; }
.report-meta small { font-size: 13px; color: var(--ink-2); }
.report-meta span { font-size: 15px; font-weight: 600; }
.judgment { background: var(--mast); color: var(--mast-ink); border-radius: var(--signal-card-radius); padding: 24px 28px; font-size: 18px; line-height: 1.65; }
.judgment b { color: var(--accent-on-dark); }

@media (max-width: 1180px) { .brand .brand-tag { display: none; } .mainnav a, .mainnav button { padding: 0 10px; } }
@media (max-width: 1100px) { .files-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .files, .files-3 { grid-template-columns: minmax(0, 1fr); } .issue { grid-template-columns: minmax(0, 1fr); gap: 6px; } }

/* Responsive */
@media (max-width: 900px) {
  .foot-grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid-5 > :first-child { grid-column: 1 / -1; }
  .mainnav, .tools .btn, .tools .iconbtn:not(.menubtn), .brand .brand-tag { display: none; }
  .tools { margin-inline-start: auto; }
  .menubtn { display: inline-flex; }
  .topbar { min-height: 76px; }
  .brand img { width: 44px; }
  .split, .split-even, .split-lead, .layout-aside, .article-layout, .grid-2, .grid-3, .grid-4, .foot-grid, .form-grid, .tabpanel { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .row .go { display: none; }
  .row-kind { flex-direction: row; gap: 12px; }
  .sticky { position: static; }
  .toc { max-height: none; }
  .fmt { grid-template-columns: minmax(0, 1fr); gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 0ms !important; transition-delay: 0ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
@media print {
  .mast, .side, .progress, .pager, .skip-link, footer { display: none !important; }
  body { background: #fff; color: #000; }
  .article-layout { grid-template-columns: 1fr; }
}

/* ===== Institutional layer: sober, flat, editorial ===== */
:root { --signal-card-radius: 4px; --signal-dialog-radius: 6px; --radius-input: 3px; }
body { font-size: 18px; }
.topbar { min-height: 84px; }
.mast:not(.cta-band) { border-bottom: 3px solid var(--accent-on-dark); }
.gridlines { background-image: none; }
.mast:not(.cta-band)::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px; background: rgba(242,246,255,.12); }
.hero { padding-top: clamp(24px, 4vw, 56px); padding-bottom: clamp(48px, 6vw, 80px); gap: 22px; }
.h1 { font-size: clamp(32px, 3.6vw, 46px); line-height: 1.15; font-weight: 700; letter-spacing: -.005em; max-width: 24ch; }
.h2 { font-size: clamp(26px, 2.8vw, 34px); font-weight: 700; padding-top: 18px; border-top: 2px solid var(--ink); }
.mast .h2 { border-top-color: rgba(242,246,255,.4); }
.eyebrow, html[lang="he"] .eyebrow { font-size: 13px; letter-spacing: .1em; font-weight: 700; }
html[lang="he"] .eyebrow { letter-spacing: .02em; }
.lead { font-size: 20px; line-height: 1.6; max-width: 62ch; }
/* buttons & chips: rectangular */
.btn { border-radius: 3px; min-height: 46px; font-size: 16px; letter-spacing: .01em; padding: 0 22px; }
.btn:active { transform: none; }
.chip, .choice span, .tag, .status, .axis, .prose .flow span, .ov-topics a { border-radius: 3px; }
.mainnav a, .mainnav button { border-radius: 3px; font-size: 16px; font-weight: 600; }
.iconbtn, .go, .sizebtn, .faq .pm { border-radius: 3px; }
.link-line::after { background: var(--accent-on-dark); border-radius: 0; }
.link-line { background: rgba(85,201,255,.35); }
/* cards: flat, hairline, no lift */
.card, .file, .topic, .svc-card, .tabpanel, .panel-line, .panel-soft, .daily-card, .toc, .side-cta, .judgment, .cta-band, .empty, .mega { box-shadow: none; }
.mega { box-shadow: 0 12px 32px -16px rgba(8,20,48,.4); }
a.card:hover, .card-hover:hover, .file:hover, .topic:hover { transform: none; border-color: var(--ink); }
.file, .topic, .card, .svc-card { padding: 26px; }
.file, .topic, .svc-card { border-top: 3px solid var(--ink); }
.file-lead { border-top-color: var(--accent-on-dark); }
.panel-soft { background: var(--surface); border: 1px solid var(--line); }
.mega a { border-radius: 3px !important; }
.prose h2 { border-top: 1px solid var(--line); padding-top: .9em; }
.prose blockquote { border-inline-start: 3px solid var(--ink); border-radius: 0; background: var(--surface); }
.prose .cards > div, .prose .risk-grid > div, .prose .callout, .prose .equation, .prose pre, .prose .note, .table-wrap, .notice { border-radius: 3px; }
.cta-band { border-inline-start: 4px solid var(--accent-on-dark); }
.judgment { border-inline-start: 4px solid var(--accent-on-dark); }
.row { padding-block: 24px; }
.row-title { font-weight: 700; }
.status { font-size: 13px; letter-spacing: .04em; font-weight: 700; text-transform: none; }
/* quiet motion */
.reveal { transform: none !important; }
:focus-visible { border-radius: 2px; }

.display { font-size: clamp(34px, 4vw, 52px); line-height: 1.12; font-weight: 700; letter-spacing: -.01em; }
html[lang="en"] .display { font-weight: 600; }
.hero .display { max-width: 22ch !important; }
.hero .lead { color: var(--mast-ink-2); }

/* ===== Visuals ===== */
.cover { display: block; width: 100%; height: 100%; }
.cover-wrap { display: block; aspect-ratio: 16 / 7; margin: -26px -26px 4px; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--signal-navy); }
.file-lead .cover-wrap { aspect-ratio: 16 / 6; }
.row-thumb { display: block; width: 140px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 2px; margin-bottom: 10px; background: var(--signal-navy); }
.row-kind { gap: 4px; }
.hero-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-text { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.hero-visual { min-width: 0; }
.hero-viz { width: 100%; height: auto; max-height: 420px; display: block; }
.topic-badge { display: grid; place-items: center; width: min(100%, 260px); aspect-ratio: 1; margin-inline: auto; border: 1px solid rgba(85,201,255,.4); color: var(--accent-on-dark); position: relative; background: radial-gradient(circle at 50% 50%, rgba(85,201,255,.1), transparent 70%); }
.topic-badge span { position: absolute; top: 12px; inset-inline-end: 14px; font: 700 14px var(--font-en); letter-spacing: .1em; color: var(--mast-ink-3); }
.ico { flex: none; }
.statbar { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.statbar > div { padding: 28px 24px; display: flex; flex-direction: column; gap: 4px; border-inline-start: 1px solid var(--line); }
.statbar > div:first-child { border-inline-start: 0; padding-inline-start: 0; }
.statbar b { font: 600 clamp(32px, 3.4vw, 46px)/1 var(--font-en); letter-spacing: -.02em; color: var(--ink); }
.statbar span { font-size: 15px; color: var(--ink-2); font-weight: 600; }
.topic-ico { display: flex; align-items: center; justify-content: space-between; color: var(--link); }
.topic .topic-ico .n { color: var(--ink-2); }
.svc-top { display: flex; align-items: center; justify-content: space-between; color: var(--link); }
.mega a > .n { display: grid; place-items: center; width: 40px; height: 40px; color: var(--link); background: var(--surface); border-radius: 3px; }
.layers { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; align-items: center; }
.layers li { width: var(--w); }
.layers a { display: flex; align-items: center; gap: 12px; padding: 0 14px; min-height: 34px; background: var(--signal-navy); color: #F2F6FF; text-decoration: none; font-size: 15px; font-weight: 600; border-inline-start: 3px solid var(--signal-cyan); transition: background-color var(--t-press) var(--ease-out), border-color var(--t-press) var(--ease-out); }
.layers a:hover { background: var(--signal-cobalt); border-color: var(--signal-citron); }
.layers .ln { font: 700 12px var(--font-en); letter-spacing: .08em; color: var(--signal-cyan); width: 22px; }
.layers li:last-child a { border-color: var(--signal-citron); }
.layers-cap { text-align: center; margin-top: 14px; }
.ladder { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: end; }
.rung { display: flex; flex-direction: column; gap: 6px; }
.rung .bar { display: block; height: calc(var(--h) * 34px + 18px); border-radius: 2px; margin-bottom: 6px; }
.rung .bar.c-fact { background: var(--ink); }
.rung .bar.c-interp { background: var(--signal-cobalt); }
.rung .bar.c-assess { background: var(--signal-cyan); }
.rung .bar.c-scen { background: transparent; border: 2px dashed var(--ink); }
.rung .small { font-size: 14px; line-height: 1.45; }
@media (max-width: 900px) {
  .hero-split { grid-template-columns: 1fr; }
  .hero-visual { max-width: 420px; }
  .statbar { grid-template-columns: repeat(2, 1fr); }
  .statbar > div:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
  .row-thumb { width: 100px; }
  .layers li { width: 100% !important; }
}
.row-thumb { aspect-ratio: 640 / 300; }
.layers-wrap { max-width: 760px; width: 100%; margin-inline: auto; }
.layers a { min-height: 38px; font-size: 16px; }

/* ===== Photography ===== */
.ph { display: block; position: relative; width: 100%; height: 100%; overflow: hidden; background: var(--signal-navy); }
.ph img { display: block; width: 100%; height: 100%; object-fit: cover; filter: saturate(.82) contrast(1.04); transition: transform 600ms var(--ease-out); }
.ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,41,85,.10), rgba(20,41,85,.38)); mix-blend-mode: multiply; pointer-events: none; }
a:hover > .cover-wrap .ph img, a:hover .row-thumb .ph img { transform: scale(1.04); }
.cover-wrap { aspect-ratio: 16 / 9; }
.file-lead .cover-wrap { aspect-ratio: 21 / 8; }
.topic .cover-wrap { margin: -26px -26px 6px; aspect-ratio: 16 / 10; }
.topic { overflow: hidden; }
.row-thumb { aspect-ratio: 4 / 3; }
.mast-bg { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; }
.mast-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to left, rgba(20,41,85,.96) 0%, rgba(20,41,85,.86) 42%, rgba(20,41,85,.42) 100%), linear-gradient(180deg, rgba(20,41,85,.75) 0, rgba(20,41,85,0) 140px); }
html[dir="ltr"] .mast-bg::after { background: linear-gradient(to right, rgba(20,41,85,.96) 0%, rgba(20,41,85,.86) 42%, rgba(20,41,85,.42) 100%), linear-gradient(180deg, rgba(20,41,85,.75) 0, rgba(20,41,85,0) 140px); }
.hero-photo { padding-top: clamp(40px, 6vw, 96px); padding-bottom: clamp(64px, 9vw, 128px); }
.hero-photo.hero-compact { padding-top: 40px; padding-bottom: 88px; }
.article-cover { margin: 0 0 32px; aspect-ratio: 21 / 9; overflow: hidden; border-radius: 3px; }
@media (max-width: 900px) { .mast-bg::after, html[dir="ltr"] .mast-bg::after { background: rgba(20,41,85,.86); } .article-cover { aspect-ratio: 16 / 9; } }
@media print { .mast-bg, .article-cover { display: none; } }

/* ===== Tighter rhythm + home ===== */
.sec { padding-block: clamp(44px, 5vw, 68px); }
.sec-flush-top { padding-top: 0; }
.gap-7 { gap: 28px; } .gap-6 { gap: 24px; }
.h2 { padding-top: 14px; }
.hero-photo { padding-top: clamp(28px, 4vw, 56px); padding-bottom: clamp(48px, 6vw, 80px); }
.hero-photo.hero-compact { padding-top: 28px; padding-bottom: 56px; }
.hero { gap: 18px; }
.tagline { display: block; font-family: var(--font-en); font-weight: 600; letter-spacing: -.02em; font-size: clamp(40px, 5.2vw, 68px); line-height: 1.05; text-align: start; unicode-bidi: isolate; }
html[dir="rtl"] .tagline { direction: ltr; text-align: right; }
.ind-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.ind { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px 4px; border-inline-start: 1px solid var(--line); }
.ind:first-child { border-inline-start: 0; padding-inline-start: 0; }
.ind .n { font: 700 13px var(--font-en); letter-spacing: .1em; color: var(--link); }
.ind b { font-size: 21px; line-height: 1.3; }
#ind-h { border-top: 0; padding-top: 0; }
.file, .topic, .card, .svc-card { padding: 22px; gap: 10px; }
.cover-wrap { margin: -22px -22px 4px; }
.topic .cover-wrap { margin: -22px -22px 4px; }
.file .body { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.home-gap { height: clamp(44px, 5vw, 68px); }
.cta-band { padding: clamp(24px, 3.5vw, 44px); }
.row { padding-block: 18px; }
@media (max-width: 900px) { .ind-grid { grid-template-columns: 1fr; } .ind { border-inline-start: 0; padding-inline: 0; border-top: 1px solid var(--line); } .ind:first-child { border-top: 0; } }
@media (min-width: 1100px) { .topic-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; } .topic b { font-size: 18px; } }

/* ===== Lime (citron) accents ===== */
body[data-division="research"] { --accent: #D8FF5A; --accent-ink: #142955; --accent-hover: #C9F23F; --accent-on-dark: #D8FF5A; }
.mast:not(.cta-band) { border-bottom-color: var(--signal-citron); }
.h2 { border-top: 0; padding-top: 0; position: relative; }
.sec-head .h2::before, .sec-head-row .h2::before, .split .h2::before { content: ""; display: block; width: 56px; height: 6px; background: var(--signal-citron); margin-bottom: 16px; }
.ind-grid { border-top: 4px solid var(--signal-citron); }
.ind .n { color: var(--ink); background: var(--signal-citron); align-self: flex-start; padding: 3px 8px; }
.file, .topic, .svc-card { border-top: 3px solid var(--signal-citron); }
.file:hover, .topic:hover, a.card:hover { border-color: var(--ink); border-top-color: var(--signal-citron); }
.cta-band { border-inline-start: 6px solid var(--signal-citron); }
.status::before { background: var(--signal-citron); box-shadow: 0 0 0 1px var(--ink); }
.mainnav a[aria-current="page"], .mainnav button[data-current] { box-shadow: inset 0 -3px 0 var(--signal-citron); }
.layers a { border-inline-start-color: var(--signal-citron); }
.eyebrow .div-mark i { background: var(--signal-citron); }
mark { background: var(--signal-citron); color: var(--signal-navy); padding: 0 .12em; }
/* tagline on the left */
.hero-split.hero-photo { position: static; }
.hero-split.hero-photo > * { position: relative; z-index: 1; }
html[dir="rtl"] .hero-split .hero-visual { direction: ltr; }
.tagline { margin: 0; color: #fff; font-family: var(--font-en); font-weight: 600; letter-spacing: -.025em; font-size: clamp(44px, 5.6vw, 84px); line-height: 1.04; text-align: left !important; }
.tagline mark { padding: 0 .14em .04em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hero-split .display { font-size: clamp(28px, 3vw, 40px); }
.mast-bg::after, html[dir="ltr"] .mast-bg::after { background: linear-gradient(rgba(20,41,85,.82), rgba(20,41,85,.9)); }
@media (max-width: 900px) { .hero-split .hero-visual { order: -1; max-width: none; } }
html[dir="rtl"] .sec-head .eyebrow.ltr { direction: rtl; text-align: right; }

/* ===== SIGNAL v2.0 compliance layer (brand guide + signal.tokens.json) ===== */
:root { --signal-card-radius: 24px; --signal-dialog-radius: 28px; --radius-input: 12px; --t-reveal: 180ms; }
/* header 144 / logo 88 on desktop */
.topbar { min-height: var(--signal-header-desktop); }
.brand img { width: var(--signal-logo-desktop); height: auto; }
@media (max-width: 900px) { .topbar { min-height: 88px; } .brand img { width: 56px; } }
/* radii: control 12, card 24, dialog 28 */
.btn, .chip, .choice span, .tag, .status, .axis, .mainnav a, .mainnav button, .iconbtn, .go, .sizebtn, .faq .pm, .ov-topics a, .mega a > .n { border-radius: 12px; }
.mega a { border-radius: 12px !important; }
.prose .cards > div, .prose .risk-grid > div, .prose .callout, .prose .equation, .prose pre, .prose .note, .table-wrap, .notice, .article-cover, .row-thumb { border-radius: 12px; }
.file, .topic, .card, .svc-card { overflow: hidden; }
.prose blockquote { border-radius: 0 12px 12px 0; }
html[dir="rtl"] .prose blockquote { border-radius: 12px 0 0 12px; }
/* citron = short marker only; cobalt = links and emphasis */
body[data-division="research"] { --accent: #3F52FF; --accent-ink: #FFFFFF; --accent-hover: #2F41F0; --accent-on-dark: #55C9FF; }
.mast:not(.cta-band) { border-bottom: 0; }
.mast:not(.cta-band)::after { display: none; }
.file, .topic, .svc-card { border-top: 1px solid var(--line); }
.file:hover, .topic:hover, a.card:hover { border-color: var(--link); }
.file-lead { border-color: transparent; }
.cta-band { border-inline-start: 0; }
.ind-grid { border-top: 1px solid var(--ink); }
.status::before { background: currentColor; box-shadow: none; }
.mainnav a[aria-current="page"], .mainnav button[data-current] { box-shadow: none; background: rgba(242,246,255,.12); }
.layers a { border-inline-start-color: var(--signal-cyan); }
.sec-head .h2::before, .sec-head-row .h2::before, .split .h2::before { width: 32px; height: 4px; margin-bottom: 12px; }
/* type scale: desktop 64 / 36 / 28 / body 20–22; mobile 48 / 27 / 18–23 */
body { font-size: 20px; line-height: 1.6; }
.display, .hero-split .display, .tagline { font-size: clamp(48px, 4.6vw, 64px); line-height: 1.08; font-weight: 700; }
.hero .display { max-width: 12ch !important; }
.h1 { font-size: clamp(36px, 4vw, 48px); }
.h2 { font-size: clamp(27px, 2.8vw, 36px); font-weight: 700; }
.file-lead .h3 { font-size: clamp(27px, 2.6vw, 36px); line-height: 1.2; }
.row-title, .file .h3 { font-size: clamp(24px, 2vw, 28px); line-height: 1.25; }
.lead { font-size: 22px; }
.body, .prose { font-size: 20px; }
@media (max-width: 900px) { body, .body, .prose { font-size: 18px; } .lead { font-size: 20px; } }
/* spacing scale: 4 8 12 16 24 32 48 64 96 */
.sec { padding-block: 64px; }
.sec-flush-top { padding-top: 0; }
.gap-6 { gap: 32px; } .gap-7 { gap: 48px; }
.hero, .hero-text { gap: 24px; }
.hero-photo, .hero-photo.hero-compact { padding-top: 32px; padding-bottom: 64px; }
.file, .topic, .card, .svc-card { padding: 24px; gap: 12px; }
.cover-wrap, .topic .cover-wrap { margin: -24px -24px 8px; }
.ind { padding: 24px 24px 8px; gap: 8px; }
.row { padding-block: 24px; gap: 24px; }
.cta-band { padding: 48px; }
.home-gap { height: 64px; }
.hero-split { gap: 48px; }
@media (max-width: 900px) { .sec { padding-block: 48px; } .cta-band { padding: 32px; } }
/* motion: 120ms press, 180ms enter, transform + opacity only */
.js .reveal { transition: opacity 180ms var(--ease-out); transition-delay: 0ms; }
.ph img { transition: transform 180ms var(--ease-out); }
.go, .card, .file, .topic, .faq .pm { transition-duration: 120ms; }
/* home: topics rail beside editorial rows */
.home-rows { grid-template-columns: minmax(0, 1fr) 280px; gap: 48px; }
.rail { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 24px; }
.rail .eyebrow { padding-bottom: 12px; }
.rail a { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 48px; padding: 8px 12px; border-radius: 12px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 18px; transition: background-color 120ms var(--ease-out); }
.rail a:hover { background: var(--surface); }
.rail a svg { color: var(--link); }
@media (max-width: 900px) { .home-rows { grid-template-columns: minmax(0, 1fr); } .rail { position: static; flex-direction: row; overflow-x: auto; gap: 8px; order: -1; } .rail .eyebrow { display: none; } .rail a { flex: none; border: 1px solid var(--line); } .rail a .meta { display: none; } }

/* ===== v9: research-institute look. Colours, fonts, logo per SIGNAL; corners, spacing, header per owner's taste ===== */
:root { --signal-card-radius: 6px; --signal-dialog-radius: 10px; --radius-input: 6px; --slant: 14%; }
.btn, .chip, .choice span, .tag, .status, .axis, .mainnav a, .mainnav button, .iconbtn, .go, .sizebtn, .faq .pm, .ov-topics a, .mega a > .n, .rail a { border-radius: 6px; }
.mega a { border-radius: 6px !important; }
.prose .cards > div, .prose .risk-grid > div, .prose .callout, .prose .equation, .prose pre, .prose .note, .table-wrap, .notice, .article-cover { border-radius: 6px; }
.topbar { min-height: 120px; }
@media (max-width: 900px) { .topbar { min-height: 80px; } }
.sec { padding-block: 56px; }
.sec-flush-top { padding-top: 0; }
@media (max-width: 900px) { .sec { padding-block: 40px; } }
/* signature: the diagonal of the "4" */
.mast { --cut: 44px; }
body > .mast:not(.cta-band)::after, .mast.has-cut::after { content: ""; display: block; position: absolute; inset-inline: 0; bottom: -1px; height: var(--cut); background: var(--bg); clip-path: polygon(0 100%, 100% 0, 100% 100%); z-index: 2; }
.sec-head .h2::before, .sec-head-row .h2::before, .split .h2::before { width: 26px; height: 12px; margin-bottom: 14px; transform: skewX(-24deg); transform-origin: bottom; }
.eyebrow .div-mark i { display: none; }
.ind .n { transform: skewX(-12deg); }
.fhero { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: center; padding-top: 16px; padding-bottom: 96px; }
.fhero-text { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.brandline { margin: 0 0 16px; font-family: var(--font-en); font-weight: 600; font-size: clamp(22px, 2vw, 28px); letter-spacing: -.01em; color: #fff; text-align: left; }
html[dir="rtl"] .brandline { text-align: right; }
.brandline mark { padding: 2px 8px; }
.fhero .display { font-size: clamp(34px, 3.6vw, 52px); line-height: 1.12; max-width: none !important; }
.fhero .lead { color: var(--mast-ink-2); font-size: 20px; }
.fhero .meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; color: var(--mast-ink-2); margin: 0; }
.fhero .status { color: #fff; }
.fhero-btns { display: flex; gap: 12px; flex-wrap: wrap; padding-top: 8px; }
.fhero-photo { display: block; aspect-ratio: 5 / 4; clip-path: polygon(0 0, 100% 0, calc(100% - var(--slant)) 100%, 0 100%); }
html[dir="ltr"] .fhero-photo { clip-path: polygon(var(--slant) 0, 100% 0, 100% 100%, 0 100%); }
.fhero-photo .ph::after { background: linear-gradient(180deg, rgba(20,41,85,0), rgba(20,41,85,.35)); }
.fhero-photo:hover .ph img { transform: scale(1.03); }
/* deep-research cards: big image with a slanted corner */
.files-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.file .cover-wrap { aspect-ratio: 16 / 9; clip-path: polygon(0 0, 100% 0, 100% 100%, 9% 100%, 0 78%); border-bottom: 0; }
.file { border: 0; border-radius: 0; padding: 0 0 24px; background: transparent; border-bottom: 1px solid var(--line); }
.file .cover-wrap { margin: 0 0 12px; }
.file:hover { border-color: var(--ink); }
.file[hidden] { display: none; }
.file .foot { border-top: 0; padding-top: 0; }
/* dense rows for series posts */
.drows { display: flex; flex-direction: column; border-top: 2px solid var(--ink); }
.drow { display: grid; grid-template-columns: 112px minmax(0, 1fr) minmax(0, 220px) 110px 24px; gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.drow[hidden] { display: none; }
.drow .dn { font: 600 13px var(--font-en); letter-spacing: .06em; color: var(--ink-2); }
html[lang="he"] .drow .dn { font-family: var(--font-he); font-size: 15px; letter-spacing: 0; }
.drow .dt { font-size: 20px; font-weight: 700; line-height: 1.3; transition: color 120ms var(--ease-out); }
.drow .dk, .drow .dd { font-size: 15px; color: var(--ink-2); }
.drow .dg { color: var(--link); transition: transform 120ms var(--ease-out); }
.drow:hover .dt { color: var(--link); }
.drow:hover .dg { transform: translateX(-4px); }
html[dir="ltr"] .drow:hover .dg { transform: translateX(4px); }
.files + .drows { margin-top: 40px; }
@media (max-width: 900px) {
  .fhero { grid-template-columns: 1fr; gap: 24px; padding-bottom: 72px; }
  .fhero-photo { order: -1; aspect-ratio: 16 / 9; }
  .files-2 { grid-template-columns: 1fr; }
  .drow { grid-template-columns: 1fr 24px; gap: 4px 12px; }
  .drow .dn { grid-column: 1 / -1; } .drow .dk { grid-column: 1; } .drow .dd { display: none; } .drow .dg { grid-row: 2; grid-column: 2; }
}
/* subtle motion */
.js .reveal { opacity: 0; transform: translateY(10px); transition: opacity 240ms var(--ease-out), transform 240ms var(--ease-out); transition-delay: calc(var(--i, 0) * 40ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ===== v10: big brand line hero, featured research below ===== */
.bhero { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: end; padding-top: 24px; padding-bottom: 112px; direction: ltr; }
.bigline { margin: 0; color: #fff; font-family: var(--font-en); font-weight: 600; letter-spacing: -.03em; font-size: clamp(52px, 7.4vw, 112px); line-height: 1; text-align: left; }
.bigline mark { display: inline-block; padding: .02em .12em .08em; margin-top: .08em; }
.bhero-text { display: flex; flex-direction: column; gap: 16px; direction: rtl; padding-bottom: 8px; }
html[dir="ltr"] .bhero-text { direction: ltr; }
.bhero .lead { color: var(--mast-ink-2); font-size: 20px; line-height: 1.6; margin: 0; max-width: none; }
.bhero .lead:first-child { color: #fff; }
.feat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: center; text-decoration: none; color: inherit; }
.feat-text { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.feat-title { font-size: clamp(30px, 3.2vw, 46px); line-height: 1.14; font-weight: 700; transition: color 120ms var(--ease-out); }
.feat:hover .feat-title { color: var(--link); }
.feat .lead { font-size: 20px; }
.feat-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.feat:hover .ph img { transform: scale(1.03); }
@media (max-width: 900px) { .bhero { grid-template-columns: 1fr; gap: 24px; padding-bottom: 80px; } .feat { grid-template-columns: 1fr; gap: 20px; } .feat .fhero-photo { order: -1; } }

/* ===== v11: review fixes ===== */
/* diagonal only under a hero; never over the logo on article pages or in the footer */
body > .mast:not(.cta-band)::after, .mast.has-cut::after { content: none; }
.mast:has(.hero, .bhero, .fhero)::after { content: ""; display: block; position: absolute; inset-inline: 0; bottom: -1px; height: var(--cut); background: var(--bg); clip-path: polygon(0 100%, 100% 0, 100% 100%); z-index: 2; }
footer.mast::after, .mast.cta-band::after { content: none !important; }
.hero { padding-bottom: 88px; }
.hero .display { max-width: 20ch !important; font-size: clamp(40px, 4.2vw, 60px); }
/* services cards: 3 across, readable line length */
.svc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 900px) { .svc-grid { grid-template-columns: 1fr; } }
/* about */
.finding .status, .status { align-self: flex-start; width: auto; }
.ladder { min-width: 0; }
.rung { min-width: 0; }
@media (max-width: 600px) { .ladder { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; } .rung .bar { height: 56px; } }
/* dense rows without the repeated date */
.drow { grid-template-columns: 112px minmax(0, 1fr) max-content 24px; }
.drow .dk { white-space: nowrap; }
@media (max-width: 900px) { .drow { grid-template-columns: 1fr 24px; } .drow .dk { white-space: normal; } }
body > header.mast:has(.hero, .bhero, .fhero)::after { content: ""; display: block; position: absolute; inset-inline: 0; bottom: -1px; height: var(--cut); background: var(--bg); clip-path: polygon(0 100%, 100% 0, 100% 100%); z-index: 2; }
.mast:not(header)::after, body > header.mast:not(:has(.hero, .bhero, .fhero))::after { content: none !important; }

/* ===== v12: light only; SIGNAL re-check ===== */
:root { color-scheme: light; }
/* no citron on white: the heading marker is cobalt on light surfaces, citron only on navy */
.sec-head .h2::before, .sec-head-row .h2::before, .split .h2::before { background: var(--signal-cobalt); margin-bottom: 12px; }
.mast .sec-head .h2::before, .mast .sec-head-row .h2::before, .mast .split .h2::before, .mast .h2::before { background: var(--signal-citron); }
.ind .n { background: var(--surface); color: var(--link); }
.form-status .dot { background: var(--signal-cobalt); }
/* logo clear space: at least 20% of the 88px mark before any neighbour */
.brand { gap: 24px; }
.brand .brand-tag { padding-inline-start: 24px; }
/* type scale: page heading 64, featured research 36, research rows 28, body 20–22 */
.hero .display { font-size: clamp(48px, 4.4vw, 64px); max-width: 18ch !important; }
.feat-title { font-size: clamp(27px, 2.6vw, 36px); line-height: 1.2; }
.file .h3 { font-size: clamp(24px, 2vw, 28px); }
.bhero .lead, .feat .lead { font-size: 20px; }
/* spacing scale only: 4 8 12 16 24 32 48 64 96 */
.sec { padding-block: 48px; }
.sec-flush-top { padding-top: 0; }
.hero { padding-bottom: 96px; }
.bhero { gap: 48px; padding-bottom: 96px; }
.drow { padding: 16px 0; }
.files + .drows { margin-top: 48px; }
.fhero-photo + *, .feat { gap: 48px; }
@media (max-width: 900px) { .sec { padding-block: 32px; } .bhero { gap: 24px; padding-bottom: 64px; } .hero { padding-bottom: 64px; } }
/* motion: 120ms press, 180ms enter */
.js .reveal { transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out); transition-delay: 0ms; }

/* After 1989 — page layer on top of ALL41 tokens.css + site.css (SIGNAL v2.0, site v12).
   Layout: navy masthead with the "4" diagonal, light editorial stations, data and films on navy panels. */
:root {
  --risk: #D92D20;
  --risk-soft: #FDECEA;
  --risk-on-dark: #FF7A6B;
  --on-dark-line: rgba(242, 246, 255, .16);
  --on-dark-soft: rgba(242, 246, 255, .07);
  --cyan-dim: rgba(85, 201, 255, .26);
  --film-bg: #0C1A3A;
}
.wrap { padding-left: max(clamp(20px, 5vw, 48px), env(safe-area-inset-left, 0px)); padding-right: max(clamp(20px, 5vw, 48px), env(safe-area-inset-right, 0px)); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 45; background: var(--bg); }
.overlay { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
.num { font-family: var(--font-en); font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
html[dir="rtl"] .num { text-align: right; }
.note-sm { font-size: 15px; line-height: 1.55; color: var(--ink-2); margin: 0; }
.mast .note-sm { color: var(--mast-ink-3); }
.stack > * { min-width: 0; }
h3, h4 { margin: 0; }
button { font-family: inherit; }

/* ---------- Hero ---------- */
.hero-net { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .7; }
.bhero { align-items: center; }
.bhero-text .eyebrow { color: var(--signal-cyan); }
.hero-he { margin: 0; font-size: clamp(27px, 2.8vw, 36px); line-height: 1.2; font-weight: 700; color: #fff; text-wrap: balance; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font-size: 15px; color: var(--mast-ink-2); }
.hero-meta .status { color: #fff; }

/* ---------- Chapter bar ---------- */
.chapbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); border-bottom: 1px solid var(--line); }
.chapbar-in { position: relative; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-block: 8px; }
.chapbar-in::-webkit-scrollbar { display: none; }
.chapbar a { flex: none; min-height: 40px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 6px; font-size: 16px; font-weight: 600; color: var(--ink-2); text-decoration: none; white-space: nowrap; transition: background-color var(--t-press) var(--ease-out), color var(--t-press) var(--ease-out); }
.chapbar a:hover { background: var(--surface); color: var(--ink); }
.chapbar a[aria-current="true"] { background: var(--ink); color: var(--bg); }
section[id], div[id].anchor { scroll-margin-top: 72px; }

/* ---------- Section rhythm ---------- */
.sec-head .lead { color: var(--ink-2); }
.mast .sec-head .lead { color: var(--mast-ink-2); }
.sec-head .h2::before { content: ""; display: block; width: 26px; height: 12px; margin-bottom: 12px; background: var(--signal-cobalt); transform: skewX(-24deg); transform-origin: bottom; }
.mast .sec-head .h2::before { background: var(--signal-citron); }
.sub-h { font-size: clamp(21px, 2.1vw, 27px); line-height: 1.25; font-weight: 700; margin: 0; }
.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 48px; align-items: start; }
.cols-lead { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 32px 48px; align-items: start; }
@media (max-width: 900px) { .cols-2, .cols-lead { grid-template-columns: minmax(0, 1fr); } }
.judgment { font-size: 20px; }
.judgment .eyebrow { color: var(--signal-cyan); margin-bottom: 8px; }
.judgment p { margin: 0; }
.panel { border: 1px solid var(--line); border-radius: var(--signal-dialog-radius); background: var(--card); padding: 24px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.mast .panel { background: var(--on-dark-soft); border-color: var(--on-dark-line); color: var(--mast-ink); }
.panel-title { font-size: 21px; font-weight: 700; line-height: 1.3; margin: 0; }
.kv { display: flex; flex-direction: column; gap: 4px; }
.kv small { font-size: 13px; font-weight: 700; letter-spacing: .02em; color: var(--ink-2); }
.mast .kv small { color: var(--signal-cyan); }
.kv p { margin: 0; font-size: 18px; line-height: 1.55; }
.pill { display: inline-flex; align-items: center; gap: 8px; min-height: 28px; padding: 0 10px; border-radius: 6px; font-size: 13px; font-weight: 700; background: var(--surface); color: var(--ink); white-space: nowrap; }
.mast .pill { background: rgba(242, 246, 255, .1); color: var(--mast-ink); }
.pill.is-up { background: var(--signal-citron); color: var(--signal-navy); }
.pill.is-down { background: var(--risk-on-dark); color: var(--signal-navy); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; padding: 0 14px; font-size: 15px; }
.mast .chip { border-color: rgba(242, 246, 255, .28); color: var(--mast-ink); }
.mast .chip:hover { border-color: #F2F6FF; }
.mast .chip[aria-pressed="true"] { background: var(--signal-cyan); border-color: var(--signal-cyan); color: var(--signal-navy); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.mast .btn-line { border-color: rgba(242, 246, 255, .35); color: var(--mast-ink); }
.mast .btn-line:hover { border-color: #F2F6FF; }
.statbar { border-top: 1px solid var(--line); }
.statbar b { direction: ltr; unicode-bidi: isolate; text-align: right; }
.statbar span { font-size: 15px; line-height: 1.45; }

/* ---------- Findings ---------- */
.findings { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; border-bottom: 1px solid var(--line); }
.findings li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; padding-block: 24px; border-top: 1px solid var(--line); }
.findings li:last-child { grid-column: 1 / -1; }
.findings .n { font: 700 28px/1.1 var(--font-en); color: var(--link); }
.findings b { display: block; font-size: 21px; line-height: 1.3; margin-bottom: 8px; }
.findings p { margin: 0; font-size: 18px; line-height: 1.6; color: var(--ink-2); max-width: 70ch; }
.findings a { display: inline-block; margin-top: 8px; font-size: 16px; font-weight: 700; text-decoration: none; }
.findings a:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 900px) { .findings { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Films ---------- */
.film { margin: 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.film-stage { position: relative; width: 100%; max-width: 100%; aspect-ratio: 16 / 9; background: var(--film-bg); border-radius: var(--signal-dialog-radius); overflow: hidden; }
.film-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.film-big { position: absolute; inset: 0; margin: auto; width: 88px; height: 88px; border-radius: 50%; border: 0; background: var(--signal-citron); color: var(--signal-navy); display: grid; place-items: center; cursor: pointer; transition: transform var(--t-press) var(--ease-out), opacity 180ms var(--ease-out); }
.film-big svg { margin-inline-start: 4px; }
.film-big:hover { transform: scale(1.05); }
.film-big:active { transform: scale(.96); }
.film.is-started .film-big { opacity: 0; pointer-events: none; }
.film-bar { display: flex; align-items: center; gap: 12px; }
.film-btn { width: 44px; height: 44px; flex: none; border-radius: 6px; border: 1px solid var(--line); background: transparent; color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: border-color var(--t-press) var(--ease-out); }
.film-btn:hover { border-color: var(--ink); }
.film-voice[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.film-voice.is-na { opacity: .5; }
.film-note { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.film-seek { flex: 1; min-width: 0; height: 44px; margin: 0; accent-color: var(--signal-cobalt); cursor: pointer; }
.film-time { flex: none; font: 600 14px var(--font-en); font-variant-numeric: tabular-nums; color: var(--ink-2); direction: ltr; }
.film-cap { margin: 0; min-height: 3em; font-size: 20px; font-weight: 600; line-height: 1.5; }
.film figcaption { font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.film-chapters, .film-lang { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.film-lang-l { margin-inline-end: 4px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.film-chapters button, .film-lang button { min-height: 36px; padding: 0 12px; border-radius: 6px; border: 1px solid var(--line); background: transparent; color: var(--ink-2); font-size: 14px; font-weight: 600; cursor: pointer; }
.film-chapters button:hover, .film-lang button:hover { border-color: var(--ink); color: var(--ink); }
.film-chapters button[aria-current="true"] { background: var(--surface); color: var(--ink); border-color: var(--ink); }
.film-lang button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
/* Arabic narration: Assistant has no Arabic letters, so give the caption and the button a matching sans */
.film-cap:lang(ar), .film-lang button:lang(ar) { font-family: 'IBM Plex Sans Arabic', var(--font-he), sans-serif; }
@media (max-width: 600px) { .film-cap { font-size: 18px; min-height: 4.5em; } .film-big { width: 64px; height: 64px; } }

/* ---------- Timeline ---------- */
.tl { display: flex; flex-direction: column; gap: 24px; }
.tl-axis { position: relative; height: 64px; }
.tl-bands { position: absolute; inset-inline: 0; top: 28px; height: 8px; display: flex; gap: 2px; }
.tl-band { border: 0; padding: 0; min-width: 0; background: var(--line); border-radius: 2px; cursor: pointer; transition: background-color var(--t-press) var(--ease-out); }
.tl-band:hover { background: var(--ink-2); }
.tl-band.is-on { background: var(--signal-cobalt); }
.tl-dot { position: absolute; width: 12px; height: 12px; margin-inline-start: -6px; border-radius: 50%; border: 2px solid var(--ink); background: var(--bg); padding: 0; cursor: pointer; transition: transform var(--t-press) var(--ease-out), background-color var(--t-press) var(--ease-out); }
.tl-dot.up { top: 8px; } .tl-dot.down { top: 44px; }
.tl-dot:hover { transform: scale(1.4); background: var(--signal-cyan); }
.tl-dot.is-dim { opacity: .25; }
.tl-dot.is-on { background: var(--signal-cobalt); border-color: var(--signal-cobalt); }
.tl-dot.is-sel { background: var(--signal-cobalt); border-color: var(--signal-cobalt); transform: scale(1.5); }
.tl-ends { display: flex; justify-content: space-between; font: 600 13px var(--font-en); color: var(--ink-2); }
.tl-tabs { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; }
.tl-tab { display: flex; flex-direction: column; gap: 4px; padding: 12px 0 0; border: 0; border-top: 2px solid var(--line); background: none; color: var(--ink-2); font: inherit; text-align: start; cursor: pointer; transition: border-color 180ms var(--ease-out), color var(--t-press) var(--ease-out); }
.tl-tab:hover { color: var(--ink); }
.tl-tab[aria-selected="true"] { border-color: var(--link); color: var(--ink); }
.tl-tab .y { font: 700 13px var(--font-en); letter-spacing: .04em; }
.tl-tab .t { font-size: 16px; font-weight: 700; line-height: 1.3; }
.tl-panel { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 32px 48px; align-items: start; }
.tl-story { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.tl-story .regime { font-size: 15px; font-weight: 700; color: var(--link); margin: 0; }
.tl-story h3 { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.2; }
.tl-story p { margin: 0; font-size: 19px; line-height: 1.65; }
.tl-take { background: var(--surface); padding: 16px 24px; border-radius: 6px; font-size: 18px; line-height: 1.6; }
.tl-take b { color: var(--link); }
.tl-stats { display: flex; flex-wrap: wrap; gap: 24px 32px; border-block: 1px solid var(--line); padding-block: 16px; }
.tl-stats div { display: flex; flex-direction: column; gap: 4px; max-width: 22ch; }
.tl-stats b { font: 600 32px/1 var(--font-en); direction: ltr; unicode-bidi: isolate; text-align: right; }
.tl-stats span { font-size: 14px; line-height: 1.4; color: var(--ink-2); }
.tl-events { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.tl-evlist { display: flex; flex-direction: column; border-top: 2px solid var(--ink); }
.ev { border-bottom: 1px solid var(--line); }
.ev summary { list-style: none; display: grid; grid-template-columns: 72px minmax(0, 1fr) 20px; gap: 12px; align-items: baseline; padding: 14px 0; cursor: pointer; }
.ev summary::-webkit-details-marker { display: none; }
.ev .yr { font: 700 14px var(--font-en); color: var(--ink-2); }
.ev .tt { font-size: 18px; font-weight: 700; line-height: 1.35; transition: color var(--t-press) var(--ease-out); }
.ev summary:hover .tt, .ev[open] .tt { color: var(--link); }
.ev .pm { color: var(--link); font: 700 18px var(--font-en); transition: transform 180ms var(--ease-out); }
.ev[open] .pm { transform: rotate(45deg); }
.ev .why { margin: 0; padding: 0 0 16px; padding-inline-start: 84px; font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.ev .why .pill { margin-inline-end: 8px; margin-bottom: 4px; }
.ev.is-flash summary { background: var(--surface); }
.tl-empty { font-size: 17px; color: var(--ink-2); padding: 16px 0; margin: 0; }
.tl-nav { display: flex; justify-content: space-between; gap: 12px; }
.tl-nav .btn[disabled] { opacity: .3; cursor: default; }
@media (max-width: 900px) {
  .tl-tabs { display: flex; overflow-x: auto; scrollbar-width: none; gap: 16px; }
  .tl-tab { flex: none; width: 132px; }
  .tl-panel { grid-template-columns: minmax(0, 1fr); }
  .ev summary { grid-template-columns: 64px minmax(0, 1fr) 20px; }
  .ev .why { padding-inline-start: 0; }
}

/* ---------- Eight globalizations ---------- */
.seg { display: inline-flex; padding: 4px; gap: 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); max-width: 100%; }
.seg button { min-height: 44px; padding: 0 20px; border: 0; border-radius: 6px; background: transparent; color: var(--ink-2); font-size: 17px; font-weight: 700; cursor: pointer; transition: background-color var(--t-press) var(--ease-out), color var(--t-press) var(--ease-out); }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.seg button[data-mode="threat"][aria-pressed="true"] { background: var(--risk); color: #fff; }
.seg button[data-mode="gain"][aria-pressed="true"] { background: var(--signal-cobalt); color: #fff; }
.ch-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ch { display: flex; flex-direction: column; gap: 12px; padding: 24px; border: 1px solid var(--line); border-radius: var(--signal-dialog-radius); background: var(--card); min-width: 0; transition: border-color 180ms var(--ease-out); }
.ch-top { display: flex; align-items: center; justify-content: space-between; color: var(--signal-cobalt); }
.ch h3 { font-size: 21px; line-height: 1.25; }
.ch .mode { align-self: flex-start; font-size: 13px; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: var(--surface); color: var(--signal-cobalt); }
.ch .txt { margin: 0; font-size: 17px; line-height: 1.55; min-height: 6.2em; }
.ch-grid[data-mode="threat"] .ch { border-color: color-mix(in srgb, var(--risk) 45%, var(--line)); }
.ch-grid[data-mode="threat"] .ch-top { color: var(--risk); }
.ch-grid[data-mode="threat"] .mode { background: var(--risk-soft); color: var(--risk); }
.ch-grid[data-mode="resil"] .ch-top { color: var(--ink); }
.ch-grid[data-mode="resil"] .mode { background: var(--ink); color: var(--bg); }
.ch .more { margin-top: auto; align-self: flex-start; padding: 0; border: 0; background: none; color: var(--link); font-size: 16px; font-weight: 700; cursor: pointer; }
.ch .more:hover { text-decoration: underline; text-underline-offset: 4px; }
.ch.is-open { border-color: var(--ink); box-shadow: inset 0 -4px 0 var(--ink); }
.ch-deep { display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: var(--signal-dialog-radius); background: var(--signal-navy); color: #F2F6FF; }
.ch-deep[hidden] { display: none; }
.ch-deep .eyebrow { color: var(--signal-cyan); }
.ch-deep .body { max-width: 86ch; color: var(--mast-ink-2); line-height: 1.7; }
@media (max-width: 1100px) { .ch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .ch-grid { grid-template-columns: minmax(0, 1fr); } .ch .txt { min-height: 0; } .seg { display: flex; } .seg button { flex: 1; padding: 0 8px; font-size: 16px; } }
.waffle { display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); gap: 4px; direction: rtl; }
.waffle i { aspect-ratio: 1; border-radius: 2px; background: var(--line); }
.waffle i.on { background: var(--signal-cobalt); }
.bigstat { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.bigstat b { font: 600 clamp(48px, 5vw, 64px)/1 var(--font-en); letter-spacing: -.02em; direction: ltr; unicode-bidi: isolate; }
.bigstat span { font-size: 17px; line-height: 1.4; color: var(--ink-2); max-width: 26ch; }
.stack-ai { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; align-items: center; }
.stack-ai li { width: var(--w); min-height: 38px; display: flex; align-items: center; gap: 12px; padding: 0 12px; background: var(--signal-navy); color: #F2F6FF; font-size: 16px; font-weight: 600; }
.stack-ai li:last-child .ln { color: var(--signal-citron); }
.stack-ai .ln { font: 700 12px var(--font-en); letter-spacing: .08em; color: var(--signal-cyan); width: 20px; flex: none; }
@media (max-width: 600px) { .stack-ai li { width: 100% !important; } }
.tools3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--ink); }
.tools3 div { padding: 16px 16px 0 0; display: flex; flex-direction: column; gap: 4px; }
html[dir="rtl"] .tools3 div { padding: 16px 0 0 16px; }
.tools3 b { font-size: 17px; } .tools3 span { font-size: 15px; line-height: 1.45; color: var(--ink-2); }
@media (max-width: 600px) { .tools3 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- System map ---------- */
.sys { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 32px 48px; align-items: start; }
.sysmap { direction: ltr; display: flex; flex-direction: column; gap: 0; min-width: 0; }
.sys-rel { direction: rtl; height: 44px; margin-inline: 16.6%; border: 2px solid var(--ink-2); border-bottom: 0; border-radius: 10px 10px 0 0; display: flex; align-items: flex-start; justify-content: center; gap: 8px; flex-wrap: wrap; }
.sys-rel span { transform: translateY(-50%); background: var(--bg); padding: 0 8px; font-size: 14px; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.bg-surface .sys-rel span { background: var(--surface); }
.sys-grid { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 16px; }
.sys-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.sys-lines line { stroke: var(--ink-2); stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-dasharray: 4 4; }
.sys-lines line.is-on { stroke: var(--signal-cobalt); stroke-width: 2.5; stroke-dasharray: none; }
.sys-node { position: relative; z-index: 1; direction: rtl; display: flex; flex-direction: column; gap: 4px; align-items: center; justify-content: center; text-align: center; min-height: 96px; padding: 12px 8px; border: 2px solid var(--ink); border-radius: var(--signal-dialog-radius); background: var(--card); color: var(--ink); font: inherit; cursor: pointer; min-width: 0; transition: background-color var(--t-press) var(--ease-out), color var(--t-press) var(--ease-out), border-color var(--t-press) var(--ease-out); }
.sys-node b { font-size: 19px; line-height: 1.2; }
.sys-node span { font-size: 13px; line-height: 1.35; color: var(--ink-2); font-weight: 600; }
.sys-node:hover { border-color: var(--signal-cobalt); }
.sys-node[aria-pressed="true"] { background: var(--signal-navy); border-color: var(--signal-navy); color: #F2F6FF; }
.sys-node[aria-pressed="true"] span { color: var(--signal-cyan); }
.sys-core { grid-column: 2; background: var(--signal-cobalt); border-color: var(--signal-cobalt); color: #fff; cursor: default; }
.sys-core span { color: #E3E7FF; }
.sys-detail { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.sys-detail h3 { font-size: clamp(21px, 2.1vw, 27px); line-height: 1.25; }
.sys-detail ul { margin: 0; padding-inline-start: 1.2em; font-size: 17px; line-height: 1.6; }
.sys-detail li { margin-bottom: 4px; }
@media (max-width: 900px) { .sys { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .sys-grid { gap: 32px 8px; } .sys-node { min-height: 80px; padding: 8px 4px; } .sys-node b { font-size: 16px; } .sys-node span { font-size: 12px; } .sys-rel span { font-size: 12px; } }
.actor-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.actor-search { min-height: 40px; width: min(100%, 260px); border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--ink); padding: 0 12px; font: inherit; font-size: 16px; }
.actor-search:focus { outline: none; border-color: var(--link); box-shadow: 0 0 0 3px color-mix(in srgb, var(--link) 20%, transparent); }
.actors { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 0 32px; border-top: 2px solid var(--ink); }
.actor { display: flex; flex-direction: column; gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.actor[hidden] { display: none; }
.actor .tier { font-size: 13px; font-weight: 700; color: var(--link); }
.actor b { font-size: 19px; line-height: 1.3; }
.actor span { font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.fold { border-block: 1px solid var(--line); }
.fold + .fold { border-top: 0; }
.fold > summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding: 12px 0; font-size: 20px; font-weight: 700; cursor: pointer; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary .pm { width: 32px; height: 32px; flex: none; border: 1px solid var(--line); border-radius: 6px; display: grid; place-items: center; font: 700 18px var(--font-en); transition: transform 180ms var(--ease-out); }
.fold[open] > summary .pm { transform: rotate(45deg); }
.fold-body { padding-bottom: 24px; display: flex; flex-direction: column; gap: 16px; }
.mast .fold { border-color: var(--on-dark-line); }
.mast .fold > summary .pm { border-color: rgba(242, 246, 255, .28); }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.tbl th, .tbl td { text-align: start; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { background: var(--surface); font-weight: 700; white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td:first-child { font-weight: 700; min-width: 12ch; }

/* ---------- Democracy ---------- */
.units { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.unit-g { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.unit-g b { font: 600 clamp(48px, 5vw, 64px)/1 var(--font-en); letter-spacing: -.02em; color: #fff; }
.unit-g span { font-size: 17px; font-weight: 700; color: var(--mast-ink-2); }
.dots { display: grid; grid-template-columns: repeat(auto-fill, 12px); gap: 5px; }
.dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--signal-cyan); }
.dots.auto i { background: var(--risk-on-dark); }
@media (max-width: 600px) { .units { gap: 16px; } .dots { grid-template-columns: repeat(auto-fill, 9px); gap: 4px; } .dots i { width: 9px; height: 9px; } }
.facts3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--on-dark-line); }
.facts3 div { display: flex; flex-direction: column; gap: 4px; padding: 16px 0 0; padding-inline-end: 16px; }
.facts3 b { font: 600 32px/1.1 var(--font-en); color: #fff; }
.facts3 span { font-size: 15px; line-height: 1.45; color: var(--mast-ink-2); }
@media (max-width: 600px) { .facts3 { grid-template-columns: minmax(0, 1fr); } }
.axes2 { display: flex; flex-direction: column; gap: 16px; }
.axes2 .row { display: flex; flex-direction: column; gap: 8px; padding: 0; border: 0; }
.axes2 .lab { font-size: 15px; font-weight: 700; color: var(--ink-2); }
.axes2 output { display: block; padding: 16px 24px; border-radius: 6px; background: var(--surface); font-size: 19px; line-height: 1.55; }
.axes2 output b { color: var(--link); }
.chain { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; counter-reset: c; }
.chain-step { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 16px; border: 1px solid var(--line); border-radius: var(--signal-dialog-radius); background: var(--card); min-width: 0; transition: background-color 180ms var(--ease-out), border-color 180ms var(--ease-out); }
.chain-step b { font-size: 17px; line-height: 1.3; }
.chain-step span { font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.chain-step.is-weak { border-color: var(--risk); background: var(--risk-soft); }
.chain-step.is-ok { border-color: var(--signal-cobalt); }
.chain-loop { font-size: 15px; color: var(--ink-2); margin: 0; }
@media (max-width: 900px) { .chain { grid-template-columns: minmax(0, 1fr); } }
.sim { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 48px; align-items: start; }
.sim-toggles { display: flex; flex-direction: column; gap: 0; border-top: 2px solid var(--ink); }
.sim-t { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.sim-t b { font-size: 17px; line-height: 1.35; }
.sim-t small { display: block; font-size: 14px; color: var(--ink-2); font-weight: 400; }
.switch { position: relative; width: 132px; height: 40px; flex: none; border: 1px solid var(--line); border-radius: 6px; background: var(--card); padding: 0; cursor: pointer; display: grid; grid-template-columns: 1fr 1fr; font-size: 14px; font-weight: 700; color: var(--ink-2); overflow: hidden; }
.switch span { display: grid; place-items: center; transition: background-color var(--t-press) var(--ease-out), color var(--t-press) var(--ease-out); }
.switch[aria-pressed="true"] span:first-child { background: var(--signal-cobalt); color: #fff; }
.switch[aria-pressed="false"] span:last-child { background: var(--risk); color: #fff; }
.sim-out { display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: var(--signal-dialog-radius); background: var(--surface); }
.meter { height: 12px; border-radius: 6px; background: var(--line); overflow: hidden; }
.meter i { display: block; height: 100%; width: 100%; background: var(--signal-cobalt); transform-origin: right; transition: transform 320ms var(--ease-out), background-color 180ms var(--ease-out); }
html[dir="ltr"] .meter i { transform-origin: left; }
.sim-out b { font-size: 21px; line-height: 1.3; }
.sim-out p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--ink-2); }
@media (max-width: 900px) { .sim { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Hypotheses ---------- */
.hyp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.hyp { display: flex; flex-direction: column; gap: 8px; padding: 24px; border: 1px solid var(--line); border-radius: var(--signal-dialog-radius); background: var(--card); min-width: 0; }
.hyp .id { font: 700 14px var(--font-en); letter-spacing: .08em; color: var(--link); }
.hyp h3 { font-size: 19px; line-height: 1.3; }
.hyp p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.hyp .verdict { margin-top: auto; align-self: flex-start; }
.hyp.is-lead { border-color: var(--signal-cobalt); border-width: 2px; }
.hyp.is-counter { background: var(--signal-navy); border-color: var(--signal-navy); color: #F2F6FF; }
.hyp.is-counter p { color: var(--mast-ink-2); } .hyp.is-counter .id { color: var(--signal-cyan); }
.hyp.is-counter .pill { background: var(--signal-citron); color: var(--signal-navy); }
@media (max-width: 1100px) { .hyp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .hyp-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Bars (HTML, RTL-native) ---------- */
.bars { display: flex; flex-direction: column; gap: 4px; }
.bar-row { display: grid; grid-template-columns: minmax(120px, 190px) minmax(0, 1fr) 56px; gap: 12px; align-items: center; min-height: 40px; }
.bar-row .lab { font-size: 16px; font-weight: 600; line-height: 1.25; }
.bar-track { position: relative; height: 24px; }
.bar-fill { position: absolute; inset-block: 0; inset-inline-start: 0; width: calc(var(--v) * 1%); background: var(--signal-cyan); border-radius: 0 4px 4px 0; transform-origin: right; }
html[dir="rtl"] .bar-fill { border-radius: 4px 0 0 4px; }
.bar-row.is-low .bar-fill { background: rgba(242, 246, 255, .38); }
.bar-row .val { font: 700 18px var(--font-en); font-variant-numeric: tabular-nums; text-align: end; }
.bar-thr { position: absolute; inset-block: -8px; inset-inline-start: 50%; width: 0; border-inline-start: 2px dashed var(--signal-citron); pointer-events: none; }
.bars-wrap { position: relative; }
.bars-axis { display: grid; grid-template-columns: minmax(120px, 190px) minmax(0, 1fr) 56px; gap: 12px; font: 600 12px var(--font-en); color: var(--mast-ink-3); }
.bars-axis div { display: flex; justify-content: space-between; }
@media (max-width: 600px) { .bar-row, .bars-axis { grid-template-columns: 104px minmax(0, 1fr) 40px; gap: 8px; } .bar-row .lab { font-size: 14px; } }

/* ---------- Game ---------- */
.matrix { display: grid; grid-template-columns: minmax(84px, .9fr) repeat(3, minmax(0, 1fr)); gap: 4px; }
.mx-h { display: grid; place-items: center; text-align: center; padding: 8px 4px; min-height: 56px; background: var(--signal-navy); color: #F2F6FF; font-size: 15px; font-weight: 700; line-height: 1.25; border-radius: 6px; }
.mx-h.is-on { background: var(--signal-cobalt); }
.mx-corner { background: transparent; color: var(--ink-2); font-size: 12px; font-weight: 700; line-height: 1.3; }
.mx-cell { min-height: 72px; display: flex; flex-direction: column; gap: 2px; align-items: center; justify-content: center; border: 2px solid var(--line); border-radius: 6px; background: var(--card); color: var(--ink); cursor: pointer; padding: 4px; transition: border-color var(--t-press) var(--ease-out), background-color var(--t-press) var(--ease-out); }
.mx-cell:hover { border-color: var(--ink); }
.mx-cell .pay { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 10px; font-size: 12px; font-weight: 700; color: var(--ink-2); line-height: 1.2; }
.mx-cell .pay span { display: inline-flex; align-items: baseline; gap: 4px; white-space: nowrap; }
.mx-cell .pay b { font: 700 22px/1 var(--font-en); color: var(--ink); font-variant-numeric: tabular-nums; }
.mx-cell small { font-size: 11px; font-weight: 700; color: var(--ink-2); }
.mx-cell[aria-pressed="true"] { border-color: var(--signal-cobalt); background: var(--surface); }
.mx-cell.is-nash { border-color: var(--signal-navy); background: var(--signal-navy); color: #F2F6FF; }
.mx-cell.is-nash .pay { color: var(--mast-ink-2); } .mx-cell.is-nash .pay b { color: var(--signal-citron); } .mx-cell.is-nash small { color: var(--signal-citron); }
.mx-out { display: flex; flex-direction: column; gap: 12px; }
.mx-out h3 { font-size: 21px; line-height: 1.3; }
.mx-out p { margin: 0; font-size: 18px; line-height: 1.6; }
.mx-out ul { margin: 0; padding-inline-start: 1.2em; font-size: 17px; line-height: 1.6; }
.mx-legend { font-size: 14px; color: var(--ink-2); margin: 0; }
@media (max-width: 600px) { .mx-h { font-size: 13px; } .mx-cell .pay b { font-size: 18px; } .matrix { grid-template-columns: 76px repeat(3, minmax(0, 1fr)); } }
.games { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 0 32px; border-top: 2px solid var(--ink); }
.games div { padding: 16px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.games b { font-size: 18px; line-height: 1.3; } .games span { font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.layers3 { display: flex; flex-direction: column; gap: 8px; }
.layer3 { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 16px; align-items: center; padding: 16px 24px; border-radius: 6px; border: 1px solid var(--on-dark-line); background: var(--on-dark-soft); transition: opacity 180ms var(--ease-out), border-color 180ms var(--ease-out), background-color 180ms var(--ease-out); }
.layer3 b { font-size: 18px; } .layer3 span { font-size: 16px; line-height: 1.5; color: var(--mast-ink-2); }
.layer3.is-off { opacity: .35; }
.layer3.is-hot { border-color: var(--signal-citron); }
.layer3.is-cut { border-color: var(--risk-on-dark); }
@media (max-width: 600px) { .layer3 { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 12px 16px; } }
.eq { display: flex; flex-direction: column; gap: 16px; }
.eq-svg { width: 100%; height: auto; display: block; direction: ltr; }
.eq-range { width: 100%; height: 44px; margin: 0; accent-color: var(--signal-citron); cursor: pointer; }
.eq-ends { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; font-weight: 700; }
.eq-ends span:first-child { color: var(--signal-cyan); } .eq-ends span:last-child { color: var(--risk-on-dark); text-align: end; }
.eq-read { display: flex; flex-direction: column; gap: 4px; min-height: 5.5em; }
.eq-read b { font-size: 21px; color: #fff; } .eq-read span { font-size: 17px; line-height: 1.55; color: var(--mast-ink-2); }
.vs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; border-top: 2px solid var(--ink); }
.vs > div { padding: 16px 0; display: flex; flex-direction: column; gap: 8px; }
.vs b { font-size: 19px; } .vs p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--ink-2); }
@media (max-width: 600px) { .vs { grid-template-columns: minmax(0, 1fr); } .vs > div + div { border-top: 1px solid var(--line); } }

/* ---------- Scenarios ---------- */
.sc-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 32px 48px; align-items: start; }
.sc-rows { display: flex; flex-direction: column; gap: 4px; }
.sc-row { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 12px; align-items: center; padding: 10px 12px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--mast-ink); font: inherit; text-align: start; cursor: pointer; transition: background-color var(--t-press) var(--ease-out), border-color var(--t-press) var(--ease-out); }
.sc-row:hover { background: var(--on-dark-soft); }
.sc-row[aria-pressed="true"] { background: var(--on-dark-soft); border-color: var(--on-dark-line); }
.sc-row .id { font: 700 13px var(--font-en); letter-spacing: .06em; color: var(--signal-cyan); grid-row: 1 / 3; }
.sc-row .nm { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; font-size: 17px; font-weight: 700; line-height: 1.3; }
.sc-row .nm .tr { display: inline-flex; gap: 4px; }
.sc-track { position: relative; height: 22px; display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 12px; align-items: center; }
.sc-plot { position: relative; height: 22px; }
.sc-fill { position: absolute; inset-block: 3px; inset-inline-start: 0; width: calc(var(--v) / 45 * 100%); background: var(--signal-cyan); border-radius: 4px 0 0 4px; }
html[dir="ltr"] .sc-fill { border-radius: 0 4px 4px 0; }
.sc-row[aria-pressed="true"] .sc-fill { background: var(--signal-citron); }
.sc-rng { position: absolute; top: 50%; height: 2px; margin-top: -1px; inset-inline-start: calc(var(--lo) / 45 * 100%); width: calc((var(--hi) - var(--lo)) / 45 * 100%); background: #fff; }
.sc-rng::before, .sc-rng::after { content: ""; position: absolute; top: -5px; width: 2px; height: 12px; background: #fff; }
.sc-rng::before { inset-inline-start: 0; } .sc-rng::after { inset-inline-end: 0; }
.sc-val { font: 700 20px var(--font-en); font-variant-numeric: tabular-nums; white-space: nowrap; text-align: end; }
.sc-val small { font: 600 12px var(--font-en); color: var(--mast-ink-3); margin-inline-start: 6px; }
.sc-detail { display: flex; flex-direction: column; gap: 16px; }
.sc-detail h3 { font-size: clamp(24px, 2.4vw, 30px); line-height: 1.2; color: #fff; }
.sc-detail .big { font: 600 56px/1 var(--font-en); color: var(--signal-citron); letter-spacing: -.02em; }
.sc-detail .big small { font: 600 15px var(--font-en); color: var(--mast-ink-2); letter-spacing: 0; margin-inline-start: 8px; }
.futures { display: grid; grid-template-columns: repeat(25, minmax(0, 1fr)); gap: 4px; }
.futures i { aspect-ratio: 1; border-radius: 50%; background: var(--cyan-dim); transition: background-color 180ms var(--ease-out), transform 180ms var(--ease-out); }
.futures i.on { background: var(--signal-citron); }
.futures i.pick { background: #fff; transform: scale(1.5); }
@media (max-width: 900px) { .sc-layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .sc-track { grid-template-columns: minmax(0, 1fr) 84px; gap: 8px; } .sc-val { font-size: 17px; } .sc-val small { display: block; margin: 0; } .futures { grid-template-columns: repeat(20, minmax(0, 1fr)); } }
.tail { border: 1px solid var(--risk-on-dark); border-radius: var(--signal-dialog-radius); padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.tail .eyebrow { color: var(--risk-on-dark); }
.tail p { margin: 0; font-size: 18px; line-height: 1.6; color: var(--mast-ink-2); }
.tail b { color: #fff; }

/* ---------- Monitoring ---------- */
.heat { display: grid; grid-template-columns: minmax(190px, 2fr) repeat(4, minmax(48px, 1fr)); gap: 4px; }
.heat .hh { font: 700 14px var(--font-en); text-align: center; padding: 8px 0; color: var(--ink-2); }
.heat .rl { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--card); color: var(--ink); font: inherit; font-size: 16px; font-weight: 600; text-align: start; cursor: pointer; line-height: 1.25; transition: border-color var(--t-press) var(--ease-out), background-color var(--t-press) var(--ease-out); }
.heat .rl small { font: 700 11px var(--font-en); color: var(--ink-2); flex: none; }
.heat .rl:hover { border-color: var(--ink); }
.heat .rl[aria-pressed="true"] { background: var(--signal-navy); border-color: var(--signal-navy); color: #F2F6FF; }
.heat .rl[aria-pressed="true"] small { color: var(--signal-cyan); }
.heat .c { display: grid; place-items: center; min-height: 44px; border-radius: 6px; font: 700 14px var(--font-en); }
.heat .c.h { background: var(--signal-cobalt); color: #fff; }
.heat .c.m { background: #DCE2FF; color: var(--signal-navy); }
.heat .c.x { background: transparent; border: 1px dashed var(--line); color: var(--ink-2); font-weight: 600; }
.heat-key { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; color: var(--ink-2); }
.heat-key span { display: inline-flex; align-items: center; gap: 8px; }
.heat-key i { width: 16px; height: 16px; border-radius: 4px; display: inline-block; }
@media (max-width: 600px) { .heat { grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(34px, .5fr)); gap: 3px; } .heat .rl { font-size: 14px; padding: 4px 8px; } .heat .rl small { display: none; } }
.mon { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 32px 48px; align-items: start; }
@media (max-width: 900px) { .mon { grid-template-columns: minmax(0, 1fr); } }
.fals { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border-top: 2px solid var(--ink); }
.fals label { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 18px; line-height: 1.55; cursor: pointer; }
.fals input { width: 22px; height: 22px; margin: 3px 0 0; accent-color: var(--signal-cobalt); }
.fals small { display: block; font-size: 14px; font-weight: 700; color: var(--link); }
.fals-out { padding: 24px; border-radius: var(--signal-dialog-radius); background: var(--signal-navy); color: #F2F6FF; display: flex; flex-direction: column; gap: 8px; position: sticky; top: 80px; }
.fals-out .n { font: 600 56px/1 var(--font-en); color: var(--signal-citron); }
.fals-out b { font-size: 21px; line-height: 1.3; } .fals-out p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--mast-ink-2); }
@media (max-width: 900px) { .fals-out { position: static; } }

/* ---------- Quiz ---------- */
.quiz { max-width: 820px; display: flex; flex-direction: column; gap: 24px; }
.quiz-prog { display: flex; gap: 4px; }
.quiz-prog i { flex: 1; height: 6px; border-radius: 3px; background: var(--on-dark-line); }
.quiz-prog i.done { background: var(--signal-cyan); } .quiz-prog i.cur { background: var(--signal-citron); }
.quiz-q { font-size: clamp(24px, 2.4vw, 30px); font-weight: 700; line-height: 1.25; color: #fff; margin: 0; }
.quiz-opts { display: flex; flex-direction: column; gap: 8px; }
.quiz-opt { min-height: 56px; padding: 12px 20px; border: 1px solid rgba(242, 246, 255, .28); border-radius: 6px; background: transparent; color: var(--mast-ink); font-size: 18px; font-weight: 600; line-height: 1.4; text-align: start; cursor: pointer; transition: border-color var(--t-press) var(--ease-out), background-color var(--t-press) var(--ease-out); }
.quiz-opt:hover:not([disabled]) { border-color: #F2F6FF; background: var(--on-dark-soft); }
.quiz-opt[disabled] { cursor: default; opacity: .6; }
.quiz-opt.is-right { opacity: 1; border-color: var(--signal-citron); background: var(--signal-citron); color: var(--signal-navy); }
.quiz-opt.is-wrong { opacity: 1; border-color: var(--risk-on-dark); color: var(--risk-on-dark); }
.quiz-fb { margin: 0; font-size: 18px; line-height: 1.6; color: var(--mast-ink-2); min-height: 3.2em; }
.quiz-fb b { color: #fff; }
.quiz-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.quiz-score { font: 600 64px/1 var(--font-en); color: var(--signal-citron); }

/* ---------- Method ---------- */
.gates { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.gate { display: flex; flex-direction: column; gap: 4px; padding: 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--card); min-width: 0; }
.gate .id { font: 700 12px var(--font-en); letter-spacing: .08em; color: var(--ink-2); }
.gate b { font-size: 15px; line-height: 1.3; }
.gate .st { align-self: flex-start; font: 700 11px var(--font-en); letter-spacing: .06em; padding: 2px 6px; border-radius: 4px; border: 1px dashed var(--ink-2); color: var(--ink-2); margin-top: 4px; }
.gate.pass .st { border: 0; background: var(--signal-cobalt); color: #fff; }
@media (max-width: 900px) { .gates { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.plain { margin: 0; padding-inline-start: 1.2em; font-size: 18px; line-height: 1.65; }
.plain li { margin-bottom: 6px; }
.use3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; }
.use3 div { border-top: 2px solid var(--ink); padding-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.use3 b { font-size: 19px; } .use3 p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--ink-2); }
@media (max-width: 900px) { .use3 { grid-template-columns: minmax(0, 1fr); gap: 24px; } }
.gloss { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; border-top: 2px solid var(--ink); }
.gloss div { padding: 16px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.gloss b { font-size: 18px; } .gloss small { font: 600 13px var(--font-en); color: var(--link); } .gloss span { font-size: 16px; line-height: 1.55; color: var(--ink-2); }
@media (max-width: 900px) { .gloss { grid-template-columns: minmax(0, 1fr); } }
.srcs { margin: 0; padding-inline-start: 0; list-style: none; direction: ltr; text-align: left; font-family: var(--font-en); font-size: 14px; line-height: 1.55; display: flex; flex-direction: column; gap: 8px; counter-reset: s; }
.srcs li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 8px; overflow-wrap: anywhere; }
.srcs li::before { counter-increment: s; content: counter(s) "."; color: var(--ink-2); font-weight: 600; }
.srcs a { text-underline-offset: 3px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot .brand-foot { width: 60px; height: auto; }
@media print { .chapbar, .film-bar, .film-lang, .film-big { display: none !important; } }


/* HIDE-DAILY-SERVICES (2026-11-26): hidden site-wide until further notice. Delete this block to bring them back. */
li:has(> a[href$="daily/index.html"]), li:has(> a[href$="services.html"]), a[href$="daily/index.html"], a[href$="services.html"] { display: none !important; }

/* MOBILE-NAV-INLINE (2026-11-26): with only two nav links, phones show them in the header row
   instead of a menu button. If Daily and Services come back, delete this block too: four links will not fit. */
@media (max-width: 720px) {
  .topbar .mainnav { display: flex; margin: 0; gap: 0; }
  .topbar .tools .btn { display: inline-flex; min-height: 40px; padding-inline: 12px; font-size: 14px; white-space: nowrap; }
  .topbar .tools .iconbtn:not(.menubtn) { display: inline-grid; width: 40px; height: 40px; }
  .topbar .tools .menubtn { display: none; }
  .topbar .tools { margin-inline-start: auto; gap: 6px; }
  .topbar { gap: 8px; }
  .topbar .mainnav a { padding: 0 8px; font-size: 15px; white-space: nowrap; }
}
@media (max-width: 400px) {
  .topbar .brand img { width: 38px; }
  .topbar .mainnav a { padding: 0 6px; font-size: 14px; }
  .topbar .tools .btn { padding-inline: 10px; font-size: 13px; }
  .topbar .tools .iconbtn:not(.menubtn) { width: 36px; height: 36px; }
  html[lang="en"] .topbar .mainnav a { padding: 0 4px; font-size: 13px; }
  html[lang="en"] .topbar .tools .btn { padding-inline: 8px; }
}
