/* Jisr shell, Story and Evidence. Tokens come from app.css; sizes scale with the viewport for 720p projectors. */

@font-face {
  font-family: "Noto Kufi Arabic";
  src: url("../vendor/fonts/noto-kufi-arabic-600.woff2") format("woff2");
  font-weight: 600;
  font-display: block;
}

:root {
  --font-ar: "Noto Kufi Arabic", "Inter", sans-serif;
  --st-pad: clamp(14px, 1.6vw, 32px);
}

/* ---- brand ------------------------------------------------------------------------------------------------ */
.brand { text-decoration: none; color: var(--ink-1); }
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo .wordmark { font-weight: 750; font-size: 21px; letter-spacing: 0.01em; }
.logo .arabic { font-family: var(--font-ar); font-weight: 600; font-size: 21px; color: var(--ink-2); padding-left: 10px; border-left: 1px solid var(--line-3); line-height: 1; }
.topbar .brand { flex: none; }
/* the journey bar names the journey; the top bar shows the title only in presentation mode */
.topbar .scn-sub { display: none; }
.topbar .scenario { display: none; }
body.present .topbar .scenario { display: block; }
@media (max-width: 1500px) { body.present .topbar .scenario { display: none; } }
body.present .clock-val { margin-top: 6px; }
body.present .topbar .scn-title { white-space: nowrap; }
.topbar .navseg a { height: 30px; padding: 0 11px; }
.navseg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 9px; overflow: hidden; background: var(--bg-2); flex: none; }
.navseg a { padding: 0 14px; height: 32px; display: inline-flex; align-items: center; color: var(--ink-3); text-decoration: none; font-size: 13px; font-weight: 650; letter-spacing: 0.02em; }
.navseg a + a { border-left: 1px solid var(--line-1); }
.navseg a.on { background: var(--bg-4); color: var(--ink-1); }
.navseg a:hover { color: var(--ink-1); }
.team { font-size: 12px; letter-spacing: 0.16em; font-weight: 700; color: var(--ink-3); }
.team-credit { color: var(--ink-3); font-weight: 650; letter-spacing: 0.12em; }
.chip.small { height: 20px; font-size: 10px; padding: 0 8px; vertical-align: 2px; }

/* ---- shell ------------------------------------------------------------------------------------------------ */
.shell { display: flex; flex-direction: column; height: 100vh; }
.sbar {
  display: flex; align-items: center; gap: 20px; padding: 0 var(--st-pad); height: 64px; flex: none;
  border-bottom: 1px solid var(--line-1); background: linear-gradient(180deg, rgba(14, 19, 27, 0.92), rgba(10, 14, 20, 0.86));
}
.view { flex: 1; min-height: 0; overflow-y: auto; }
.st-loading { padding: 60px; text-align: center; color: var(--ink-3); font-size: 18px; }

/* ---- story ------------------------------------------------------------------------------------------------ */
.storyview { display: flex; flex-direction: column; padding: 12px var(--st-pad) 14px; gap: 10px; overflow: hidden; }
.st-tabs { display: flex; gap: 8px; flex: none; flex-wrap: wrap; }
.st-tab {
  display: inline-flex; align-items: center; gap: 10px; height: 38px; padding: 0 14px 0 6px; border-radius: 10px; border: 1px solid var(--line-2);
  background: var(--bg-2); color: var(--ink-2); cursor: pointer; font-size: 14px; font-weight: 600;
}
.st-tab b { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; background: var(--bg-4); color: var(--ink-2); font-family: var(--font-mono); font-size: 13px; }
.st-tab.on { border-color: rgba(234, 240, 248, 0.5); color: var(--ink-1); background: var(--bg-3); }
.st-tab.on b { background: var(--ink-1); color: var(--bg-0); }
.st-tab.live b i { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-1); animation: pulse 1.6s ease-out infinite; }
.st-tab.live.on b i { background: var(--bg-0); }
.st-stage { flex: 1; min-height: 0; display: grid; grid-template-rows: auto auto auto auto; align-content: center; gap: clamp(10px, 1.8vh, 22px); transition: opacity 0.3s; }
.st-stage.loading { opacity: 0.35; }
.st-hero { display: grid; grid-template-columns: 1fr; }
.st-kicker { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); font-weight: 650; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.st-hero h1 { margin: 4px 0 0; font-size: clamp(26px, 4.2vh, 46px); font-weight: 720; letter-spacing: -0.02em; line-height: 1.05; }
.st-world { margin: 6px 0 0; font-size: clamp(14px, 2.1vh, 21px); color: var(--ink-2); max-width: 75em; line-height: 1.35; }
.st-lead { margin: 8px 0 0; font-size: clamp(15px, 2.2vh, 22px); color: var(--ink-1); line-height: 1.35; padding: 6px 12px; border-left: 3px solid var(--ok); background: rgba(61, 220, 132, 0.07); border-radius: 0 8px 8px 0; display: inline-block; }
.st-lead b { color: var(--ok); margin-right: 4px; }

.st-duel { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; min-height: 0; }
.st-side {
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 10px; min-height: 0; padding: 14px 16px; border-radius: 14px;
  border: 1px solid var(--line-2); background: linear-gradient(180deg, rgba(20, 27, 37, 0.7), rgba(12, 16, 23, 0.7));
}
.st-side.jisr { border-color: rgba(234, 240, 248, 0.42); background: linear-gradient(180deg, rgba(30, 40, 54, 0.8), rgba(14, 19, 27, 0.8)); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35); }
.st-sidehead { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.st-label { font-size: clamp(17px, 2.5vh, 26px); font-weight: 700; letter-spacing: -0.01em; }
.st-side.jisr .st-label::after { content: "Jisr"; font-size: 11px; letter-spacing: 0.12em; font-weight: 750; color: var(--bg-0); background: var(--ink-1); padding: 2px 7px; border-radius: 4px; margin-left: 10px; vertical-align: 4px; text-transform: uppercase; }
.st-note { font-size: clamp(12px, 1.6vh, 15px); color: var(--ink-3); margin-top: 3px; }
.st-count { text-align: right; flex: none; }
.st-cv { font-family: var(--font-mono); font-size: clamp(26px, 4.4vh, 48px); font-weight: 600; color: var(--ok); line-height: 1; font-variant-numeric: tabular-nums; }
.st-cv.bad { color: var(--bad); text-shadow: 0 0 22px var(--bad-glow); }
.st-cl { font-size: 12px; color: var(--ink-3); letter-spacing: 0.04em; margin-top: 4px; }
.st-late { font-size: clamp(12px, 1.6vh, 15px); color: var(--ink-3); margin-top: 6px; }
.st-late.bad { color: var(--warn); }
.st-body { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 16px; min-height: 0; align-items: center; }
.st-video { position: relative; aspect-ratio: 16 / 9; width: 100%; max-height: 100%; border-radius: 10px; overflow: hidden; border: 2px solid var(--line-2); background: #05070a; }
.st-video canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.st-video.frozen { border-color: var(--bad); box-shadow: 0 0 24px var(--bad-glow); }
.st-vbadge { position: absolute; right: 8px; top: 8px; font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; }
.st-vbadge span { padding: 3px 8px; border-radius: 5px; background: rgba(5, 7, 10, 0.75); }
.st-vbadge .ok { color: var(--ok); } .st-vbadge .warn { color: var(--warn); } .st-vbadge .bad { color: #fff; background: var(--bad); }
.st-device { width: 100%; height: auto; aspect-ratio: 380 / 250; overflow: visible; }
.st-device .lk-base { fill: none; stroke-width: 2; opacity: 0.28; }
.st-device .lk-base.down { stroke: var(--ink-4) !important; stroke-dasharray: 3 6; opacity: 0.6; }
.st-device .lk-flow { fill: none; stroke-width: 7; stroke-linecap: round; stroke-dasharray: 2 14; opacity: 0; transition: opacity 0.25s; }
.st-device .lk-flow.on { opacity: 1; }
.st-device .lk-label text { font-family: var(--font-ui); font-size: 17px; font-weight: 650; fill: var(--ink-1); }
.st-device .lk-state { font-family: var(--font-mono); font-size: 13px !important; font-weight: 600 !important; letter-spacing: 0.02em; }
.st-device .lk-state.carrying { fill: var(--ok) !important; }
.st-device .lk-state.ready { fill: var(--ink-3) !important; }
.st-device .lk-state.standby, .st-device .lk-state.testing { fill: var(--warn) !important; }
.st-device .lk-state.down { fill: var(--ink-4) !important; }
.st-device .dev, .st-device .srv { fill: var(--bg-3); stroke: var(--line-3); stroke-width: 1.5; }
.st-device .dev-screen { fill: rgba(61, 220, 132, 0.12); stroke: rgba(61, 220, 132, 0.4); }
.st-device .dev.cut { stroke: var(--bad); stroke-width: 2.5; }
.st-device .dev-screen.cut { fill: rgba(255, 77, 94, 0.25); stroke: var(--bad); }
.st-device .srv-l { stroke: var(--line-3); stroke-width: 3; stroke-linecap: round; }
.st-device .dev-t { font-family: var(--font-ui); font-size: 14px; fill: var(--ink-3); }
.st-status { font-size: clamp(14px, 2vh, 19px); color: var(--ink-2); min-height: 1.4em; }
.st-status b { font-weight: 700; }
.st-status .ok { color: var(--ok); } .st-status .bad { color: var(--bad); } .st-status .warn { color: var(--warn); }

.st-jisr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 12px; align-items: stretch; }
.st-jh { grid-column: 1 / -1; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
.st-col { padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(14, 19, 27, 0.7); transition: border-color 0.4s, background 0.4s; min-height: 0; }
.st-col.fresh { border-color: rgba(234, 240, 248, 0.6); background: rgba(30, 40, 54, 0.9); }
.st-col.idle .st-ct { color: var(--ink-3); }
.st-ck { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); font-weight: 750; }
.st-ct { font-size: clamp(15px, 2.1vh, 21px); font-weight: 600; margin-top: 4px; line-height: 1.3; }
.st-cw { font-size: 13px; color: var(--ink-3); margin-top: 4px; font-family: var(--font-mono); }
.st-then { font-size: clamp(12px, 1.6vh, 15px); color: var(--ink-2); margin-top: 8px; padding-top: 6px; border-top: 1px solid var(--line-1); }
.st-then:empty { display: none; }

.st-time { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; }
.st-play { width: 46px; height: 46px; border-radius: 50%; border: none; background: var(--ink-1); cursor: pointer; position: relative; }
.st-play::before { content: ""; position: absolute; left: 15px; top: 14px; width: 6px; height: 18px; background: var(--bg-0); border-radius: 2px; box-shadow: 10px 0 0 var(--bg-0); }
.st-play.paused::before { left: 18px; top: 13px; width: 0; height: 0; background: none; box-shadow: none; border-left: 15px solid var(--bg-0); border-top: 10px solid transparent; border-bottom: 10px solid transparent; border-radius: 0; }
.st-scrub { width: 100%; height: 46px; cursor: pointer; overflow: visible; }
.st-scrub .track { fill: var(--bg-3); }
.st-scrub .done { fill: rgba(234, 240, 248, 0.25); }
.st-scrub .slowz { fill: rgba(245, 184, 61, 0.14); stroke: rgba(245, 184, 61, 0.45); }
.st-scrub .st-sl { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; fill: var(--warn); text-anchor: middle; font-family: var(--font-ui); font-weight: 650; }
.st-scrub .mo { stroke: var(--ink-1); stroke-width: 2; }
.st-scrub .mol { font-size: 12px; fill: var(--ink-1); font-family: var(--font-ui); font-weight: 650; }
.st-scrub .mo.jisr { stroke: var(--ok); }
.st-scrub .mol.jisr { fill: var(--ok); }
.st-scrub .tk { stroke: var(--line-3); }
.st-scrub .tt { font-size: 10px; fill: var(--ink-4); text-anchor: middle; font-family: var(--font-mono); }
.st-scrub .head { fill: var(--ink-1); stroke: var(--bg-0); stroke-width: 2; }
.st-clock { font-family: var(--font-mono); font-size: 30px; font-weight: 500; min-width: 140px; text-align: right; line-height: 1; }
.st-clock small { font-size: 14px; color: var(--ink-3); margin-left: 3px; }
.st-clock div { font-family: var(--font-ui); font-size: 12px; color: var(--ink-3); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 4px; min-height: 1em; font-weight: 650; }
.st-clock div.slow { color: var(--warn); }

/* ---- in numbers ----------------------------------------------------------------------------------------- */
.st-numbers { flex: 1; min-height: 0; overflow-y: auto; }
.nwrap { max-width: 1500px; margin: 0 auto; padding: 10px 0 30px; }
.nhead { margin: 10px 0 18px; }
.nbig { font-size: clamp(40px, 8vh, 88px); font-weight: 760; letter-spacing: -0.03em; }
.nbig span { color: var(--ink-3); }
.nsub { font-size: clamp(15px, 2.2vh, 21px); color: var(--ink-2); }
.ntiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }
.nt { padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(14, 19, 27, 0.7); }
.nv { font-size: clamp(26px, 4.5vh, 44px); font-weight: 700; letter-spacing: -0.02em; }
.nl { font-size: 14px; color: var(--ink-3); margin-top: 2px; }
.ev-counts .nt { min-width: 0; }
.ev-counts .nv { font-size: clamp(24px, 3.6vh, 38px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-counts .nl { overflow-wrap: anywhere; }
.nwrap h2 { margin: 0; font-size: clamp(20px, 3vh, 30px); }
.nnote { color: var(--ink-3); font-size: 15px; margin: 4px 0 14px; }
.stacks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.stack { padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(14, 19, 27, 0.7); }
.stack h3 { margin: 0 0 8px; font-size: 18px; }
.sj { padding: 8px 0; border-top: 1px solid var(--line-1); }
.sjt { font-size: 13px; color: var(--ink-3); font-weight: 650; letter-spacing: 0.04em; margin-bottom: 4px; }
.stk-row { display: grid; grid-template-columns: minmax(0, 46%) 1fr 70px; gap: 8px; align-items: center; font-size: 14px; padding: 2px 0; }
.stk-l { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); }
.stk-row.jisr .stk-l { color: var(--ink-1); font-weight: 650; }
.stk-b { height: 10px; background: var(--bg-2); border-radius: 4px; overflow: hidden; }
.stk-b i { display: block; height: 100%; background: var(--bad); border-radius: 4px; }
.stk-row.jisr .stk-b i { background: var(--ink-1); }
.stk-v { font-family: var(--font-mono); text-align: right; color: var(--ink-1); }
.sjf { font-size: 13px; color: var(--ok); margin-top: 2px; }
.sjf.same { color: var(--ink-3); }
.sjf.worse { color: var(--warn); }
.snote { margin: 10px 0 0; padding-top: 8px; border-top: 1px solid var(--line-1); font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }

/* ---- evidence ------------------------------------------------------------------------------------------- */
.evidenceview { padding: 18px var(--st-pad) 40px; }
.ev-wrap { max-width: 1680px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; }
.ev-wrap h1 { margin: 0; font-size: clamp(28px, 4.4vh, 46px); letter-spacing: -0.02em; }
.ev-wrap h2 { margin: 0 0 10px; font-size: clamp(19px, 2.6vh, 26px); }
.ev-lead { color: var(--ink-2); font-size: clamp(14px, 2vh, 19px); margin: 4px 0 0; max-width: 70em; }
.ev-counts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.ev-grid { width: 100%; border-collapse: separate; border-spacing: 4px; font-size: 14px; table-layout: fixed; }
.ev-grid col.rl { width: clamp(200px, 18vw, 300px); }
.ev-grid th { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; padding: 4px 8px; text-align: center; }
.ev-grid th.rl { text-align: left; }
.ev-grid td.rl { padding: 6px 10px; white-space: nowrap; font-weight: 600; color: var(--ink-2); }
.ev-grid tr.proposed td.rl { color: var(--ink-1); box-shadow: inset 3px 0 0 var(--proposed); }
.ev-grid tr.reference td.rl { color: var(--ink-3); }
.ev-grid td.c { padding: 0; border-radius: 8px; background: var(--bg-2); }
.ev-grid td.c a { display: block; padding: 8px 10px; color: var(--ink-1); text-decoration: none; font-family: var(--font-mono); text-align: center; border-radius: 8px; border: 1px solid transparent; }
.ev-grid td.c a:hover { border-color: var(--line-3); }
.ev-grid td.c a small { display: block; font-size: 11px; color: var(--ink-3); margin-top: 1px; }
.ev-grid td.c.none a { color: var(--ok); }
.ev-grid td.c.empty { background: transparent; color: var(--ink-4); text-align: center; font-size: 13px; border: 1px dashed var(--line-2); }
.ev-grid td.c.review { background: repeating-linear-gradient(135deg, rgba(245, 184, 61, 0.06) 0 6px, transparent 6px 12px); }
.ev-grid td.c.review a { color: var(--ink-3); }
.ev-grid td.c.review a small { color: var(--warn); }
.ev-review { font-size: 14px !important; color: var(--warn) !important; margin: 0 0 8px !important; }
.ev-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; }
.ev-card { padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(14, 19, 27, 0.7); display: flex; flex-direction: column; gap: 8px; }
.ev-card h3 { margin: 0; font-size: 18px; }
.ev-card .meta { font-size: 13px; color: var(--ink-3); }
.ev-card svg { width: 100%; height: auto; display: block; }
.ev-card a { color: var(--ink-2); font-size: 13px; }
.ev-legs { display: flex; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); }
.ev-legs i { display: inline-block; width: 14px; height: 5px; border-radius: 2px; margin-right: 5px; vertical-align: 2px; }
.ev-find { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 12px; }
.ev-f { padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(14, 19, 27, 0.7); }
.ev-f .area { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); font-weight: 750; }
.ev-f h3 { margin: 4px 0 6px; font-size: 17px; line-height: 1.25; }
.ev-f p { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.45; }
.ev-f .src { margin-top: 8px; font-family: var(--font-mono); font-size: 11px; color: var(--ink-4); }

/* ---- small screens and projectors ------------------------------------------------------------------------ */
@media (max-width: 1500px), (max-height: 820px) {
  .sbar { height: 54px; gap: 14px; }
  .storyview { gap: 8px; padding-top: 8px; }
  .st-tab { height: 32px; font-size: 13px; }
  .st-tab b { width: 22px; height: 22px; font-size: 12px; }
  .st-side { padding: 10px 12px; gap: 6px; }
  .st-col { padding: 8px 12px; }
  .st-cw { font-size: 12px; }
  .st-time { gap: 10px; }
  .st-play { width: 38px; height: 38px; }
  .st-play::before { left: 12px; top: 11px; height: 16px; }
  .st-play.paused::before { left: 15px; top: 10px; }
  .st-clock { font-size: 24px; min-width: 110px; }
  .ntiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stacks { grid-template-columns: 1fr; }
}
@media (max-height: 820px) {
  .st-video { max-height: 24vh; }
  .st-note { display: none; }
  .st-then { font-size: 12px; margin-top: 3px; padding-top: 3px; }
  .st-lead { font-size: 14px; padding: 4px 10px; margin-top: 4px; }
  .st-then { margin-top: 4px; padding-top: 4px; }
  .st-world { font-size: 14px; }
  .st-hero h1 { font-size: 26px; }
  .st-jh { display: none; }
  .st-ct { font-size: 14px; }
  .st-body { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
}

/* ---- Lab with many rows on a short screen: one line per row, the status pill beside the name -------------- */
.lanes.micro .row { flex-grow: 1 !important; }
.lanes.micro .row-label { flex-direction: row; align-items: center; gap: 8px; padding: 0 10px 0 14px; }
.lanes.micro .status-line { display: contents; }
.lanes.micro .status-line .rd, .lanes.micro .tag, .lanes.micro .nstrip, .lanes.micro .leg-badges { display: none; }
.lanes.micro .name-line { order: 1; flex: 1; min-width: 0; }
.lanes.micro .pill { order: 2; height: 16px; font-size: 9px; padding: 0 6px; }
.lanes.micro .rung-title { font-size: 12.5px; }
body.lab-micro .lh-cols span:not(:first-child) { visibility: hidden; }
@media (max-width: 1500px) {
  .topbar .logo .arabic, .topbar .logo .wordmark { display: none; }
  .topbar .seg#speedSeg button:nth-child(1), .topbar .seg#speedSeg button:nth-child(5) { display: none; }
  .jb-tab { padding: 0 12px; font-size: 13px; }
  .jbar { gap: 10px; }
  .jb-more .jb-label { display: none; }
  .jb-more select { max-width: 210px; }
  .topbar #helpBtn { display: none; }
  .topbar .seg.views button { padding: 0 9px; }
}

/* ---- about ---------------------------------------------------------------------------------------------- */
.aboutview { padding: clamp(18px, 3vh, 40px) var(--st-pad) 50px; }
.ab-wrap { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ab-hero { grid-column: 1 / -1; display: flex; align-items: center; gap: 26px; margin-bottom: 8px; }
.ab-hero h1 { margin: 0; font-size: clamp(44px, 8vh, 84px); font-weight: 760; letter-spacing: -0.02em; line-height: 1; }
.ab-ar { font-family: var(--font-ar); font-weight: 600; color: var(--ink-2); margin-left: 14px; }
.ab-tag { margin: 10px 0 0; font-size: clamp(16px, 2.4vh, 22px); color: var(--ink-2); max-width: 44em; }
.ab-card { padding: 18px 22px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(14, 19, 27, 0.7); }
.ab-card h2 { margin: 0 0 10px; font-size: clamp(19px, 2.6vh, 24px); }
.ab-card p, .ab-card li { font-size: clamp(14px, 1.9vh, 17px); color: var(--ink-2); line-height: 1.5; }
.ab-card p { margin: 0 0 10px; }
.ab-card b { color: var(--ink-1); }
.ab-how { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.ab-std { margin: 0; padding-left: 18px; display: grid; gap: 8px; }
.ab-note { color: var(--ink-3) !important; font-size: 14px !important; }
.ab-legs { display: flex; gap: 16px; flex-wrap: wrap; }
.ab-leg { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-1); }
.ab-leg i { width: 22px; height: 8px; border-radius: 2px; }
.ab-members { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
.ab-members li { font-size: clamp(16px, 2.2vh, 20px) !important; color: var(--ink-1) !important; font-weight: 600; }
.ab-members a { color: var(--ink-1); text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 4px; }
.ab-members a:hover { text-decoration-color: var(--ink-1); }
@media (max-width: 1100px) { .ab-wrap { grid-template-columns: 1fr; } }

/* a static copy has no running gym */
body.static #modeChip { cursor: default !important; }
body.static .keys span:last-child { display: none; }
