/* =====================================================================
   RSI · enterrsi.si · rsi-o.css (v1.10.0, Nov 11, 2026)
   The Off Switch Test (runner, board, sandbox, receipts, protocol) and
   Off Switch Day (countdown, checklist, pledge, press page).
   Uses the site.css tokens and the rsi-plus.css / rsi-g.css components.
   ===================================================================== */
:root { --os-ok: #5fe3a6; --os-bad: #ff7a8f; --os-wait: #ffd27a; --os-off: #6b7280; }

/* ---------- live numbers (filled from the API; a shimmer while they load) ---------- */
.os-num { display: inline-block; min-width: 1.2em; font-variant-numeric: tabular-nums; }
.os-num[aria-busy="true"] { width: 2.2em; height: .85em; border-radius: 6px; background: linear-gradient(90deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .14), rgba(255, 255, 255, .05)); background-size: 200% 100%; animation: g-shim 1.6s linear infinite; vertical-align: middle; }
@media (prefers-reduced-motion: reduce) { .os-num[aria-busy="true"] { animation: none; } }
.os-tiles { margin-bottom: clamp(18px, 2.4vw, 28px); }
.os-center { justify-content: center; margin-top: clamp(20px, 2.6vw, 32px); }
.os-hero-cta { margin-top: 4px; }
@media (max-width: 560px) { .os-hero-cta .btn, .os-center .btn { flex: 1 1 100%; } }

/* ---------- state chips ---------- */
.stb.os-current { --sc: var(--os-ok); } .stb.os-failed { --sc: var(--os-bad); } .stb.os-lapsed, .stb.os-changed { --sc: var(--os-off); } .stb.os-wait { --sc: var(--os-wait); }
.body-copy > .stb { margin-right: 8px; vertical-align: 2px; }

/* ---------- what a pass proves, and what it does not ---------- */
.os-proof { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); margin-top: clamp(20px, 2.6vw, 32px); }
.band > .wrap > .sec-head + .os-proof { margin-top: 0; }
.os-pp { padding: clamp(18px, 2.4vw, 30px); border-radius: var(--r); border: 1px solid var(--line); display: grid; gap: 14px; align-content: start; min-width: 0; }
.os-yes { border-color: rgba(95, 227, 166, .38); background: radial-gradient(520px 220px at 0% 0%, rgba(95, 227, 166, .09), transparent 70%), rgba(255, 255, 255, .015); }
.os-no { border-color: rgba(255, 122, 143, .38); background: radial-gradient(520px 220px at 0% 0%, rgba(255, 122, 143, .08), transparent 70%), rgba(255, 255, 255, .015); }
.os-yes .k { color: var(--os-ok); } .os-no .k { color: var(--os-bad); }
.os-pl { list-style: none; display: grid; gap: 12px; }
.os-pl li { position: relative; padding-left: 30px; color: var(--ice); font-size: 16px; line-height: 1.55; }
.os-pl li::before, .os-pl li::after { content: ""; position: absolute; }
.os-yes .os-pl li::before { left: 3px; top: .38em; width: 13px; height: 7px; border-left: 2px solid var(--os-ok); border-bottom: 2px solid var(--os-ok); transform: rotate(-45deg); }
.os-no .os-pl li::before, .os-no .os-pl li::after { left: 1px; top: .72em; width: 16px; height: 2px; background: var(--os-bad); border-radius: 2px; }
.os-no .os-pl li::before { transform: rotate(45deg); } .os-no .os-pl li::after { transform: rotate(-45deg); }
@media (max-width: 820px) { .os-proof { grid-template-columns: minmax(0, 1fr); } }

/* ---------- cards in threes ---------- */
.os-marks { align-items: stretch; }
.os-marks > .card { display: grid; gap: 10px; align-content: start; }
.os-marks > .card > * + * { margin-top: 0; }
.os-results { margin-top: clamp(12px, 1.6vw, 20px); }
@media (max-width: 900px) { .os-marks { grid-template-columns: minmax(0, 1fr); } }
.g-steps li p a, .os-idle a { color: var(--ice); }

/* ---------- the test runner ---------- */
.os-run { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(12px, 1.6vw, 20px); align-items: stretch; }
.os-run > .card { display: grid; gap: 14px; align-content: start; }
.os-run > .os-run-b { grid-template-rows: auto minmax(0, 1fr); align-content: stretch; }
.os-run-b .os-idle { display: grid; place-items: center; height: 100%; }
.os-run > .card > * + *, .os-sbx > .card > * + * { margin-top: 0; }
.os-sbx > .card { display: grid; gap: 12px; align-content: start; }
.os-run .g-pass { margin-bottom: 0; }
.os-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.os-form .btn { min-height: 48px; }
.os-form .g-msg { grid-column: 1 / -1; flex: none; }
.os-find { max-width: 720px; margin-inline: auto; }
#os-aid, #os-find-id, #os-sbx-key { font-family: var(--f-mono); letter-spacing: .04em; }
@media (max-width: 900px) { .os-run { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .os-form { grid-template-columns: minmax(0, 1fr); } }
.os-agent, .os-sbx-agent { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: grid; gap: 10px; background: rgba(255, 255, 255, .02); min-width: 0; }
.os-an { font-family: var(--f-display); font-size: clamp(16px, 1.5vw, 20px); color: var(--ice); overflow-wrap: anywhere; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.os-an small { font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; color: var(--ion); }
.os-kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; font-size: 14.5px; color: var(--mute); align-items: baseline; }
.os-kv dt { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.os-kv dd { min-width: 0; overflow-wrap: anywhere; }
.os-kv a { color: var(--ice); }
.os-hash { display: block; max-width: 100%; overflow-x: auto; white-space: nowrap; font-family: var(--f-mono); font-size: clamp(10.5px, 1.05vw, 13px); color: #d9e6f5; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: #07080a; scrollbar-width: thin; }
.os-kv .os-hash { padding: 4px 8px; font-size: 11.5px; }
.os-note { font-size: 14.5px; color: var(--mute); }
.os-note.err { color: #ffc2c8; } .os-note.ok { color: #c9f6e2; }

/* the live panel: timer, limit bar, four steps */
.os-live { display: grid; gap: 16px; min-width: 0; }
.os-idle { color: var(--dim); text-align: center; padding: clamp(24px, 4vw, 56px) 8px; border: 1px dashed var(--line-2); border-radius: 14px; }
.os-timer { display: flex; align-items: baseline; justify-content: center; gap: 10px; padding-top: 4px; }
.os-tv { font-family: var(--f-display); font-size: clamp(40px, 6vw, 72px); line-height: 1; font-variant-numeric: tabular-nums; background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent; }
.os-tu { font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.os-live.is-pass .os-tv { background: none; color: var(--os-ok); text-shadow: 0 0 32px rgba(95, 227, 166, .35); }
.os-live.is-fail .os-tv { background: none; color: var(--os-bad); text-shadow: 0 0 32px rgba(255, 122, 143, .3); }
.os-bar { position: relative; height: 10px; border-radius: 99px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.os-bar i { position: absolute; inset: 0 auto 0 0; width: var(--p, 0%); border-radius: inherit; background: linear-gradient(90deg, #4fa3ff, #ffd27a 70%, #ff9a3c); transition: width .2s linear; }
.os-live.is-pass .os-bar i { background: var(--os-ok); } .os-live.is-fail .os-bar i { background: var(--os-bad); }
.os-barl { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin-top: -8px; }
.os-verd { text-align: center; font-size: clamp(17px, 1.6vw, 21px); font-weight: 700; color: var(--ice); min-height: 1.5em; }
.os-live.is-pass .os-verd { color: #c9f6e2; } .os-live.is-fail .os-verd { color: #ffc2c8; }
.os-tl { list-style: none; display: grid; gap: 0; }
.os-tl li { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 10px 0; color: var(--dim); font-size: 15px; }
.os-tl li::before { content: ""; grid-row: 1; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-2); justify-self: center; background: var(--void); position: relative; z-index: 1; }
.os-tl li + li::after { content: ""; position: absolute; left: 14px; top: -50%; height: 100%; width: 2px; background: var(--line); }
.os-tl li.on, .os-tl li.good, .os-tl li.bad { color: var(--ice); } .os-tl li.on::before { border-color: var(--ion); background: var(--ion); box-shadow: 0 0 12px rgba(79, 163, 255, .7); }
.os-tl li.now::before { border-color: var(--flare); background: transparent; animation: os-pulse 1.4s ease-in-out infinite; }
.os-tl li.bad::before { border-color: var(--os-bad); background: var(--os-bad); box-shadow: none; }
.os-tl li.good::before { border-color: var(--os-ok); background: var(--os-ok); box-shadow: 0 0 12px rgba(95, 227, 166, .6); }
.os-tl .os-tt { font-family: var(--f-mono); font-size: 12px; color: var(--mute); white-space: nowrap; font-variant-numeric: tabular-nums; }
.os-tl small { grid-column: 2 / -1; font-size: 13.5px; color: var(--dim); }
@keyframes os-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 154, 60, .55); } 50% { box-shadow: 0 0 0 7px rgba(255, 154, 60, 0); } }
@media (prefers-reduced-motion: reduce) { .os-tl li.now::before { animation: none; } .os-bar i { transition: none; } }
.os-live .cta-row { justify-content: center; }
.os-live .cta-row .btn { flex: 1 1 200px; }
.os-log { margin: 0; max-height: 300px; overflow: auto; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: #07080a; font-family: var(--f-mono); font-size: 12.5px; line-height: 1.7; color: #d9e6f5; white-space: pre-wrap; overflow-wrap: anywhere; }
.os-log .ok { color: var(--os-ok); } .os-log .bad { color: var(--os-bad); } .os-log .dim { color: var(--dim); }

/* ---------- the board and the lists of tests ---------- */
.os-rows { list-style: none; display: grid; gap: 10px; }
.os-row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) auto auto; gap: 8px 20px; align-items: center; padding: 14px 18px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .008)); transition: border-color .3s; min-width: 0; }
.os-row:hover { border-color: rgba(79, 163, 255, .45); }
.os-ra { display: grid; gap: 2px; min-width: 0; }
.os-ra a, .os-ra b { color: var(--ice); font-weight: 700; font-size: 17px; text-decoration: none; overflow-wrap: anywhere; }
.os-ra a:hover { text-decoration: underline; }
.os-ra span { font-size: 14px; color: var(--dim); overflow-wrap: anywhere; }
.os-ra span a { font-size: inherit; font-weight: 400; color: var(--mute); }
.os-rs { display: grid; gap: 6px; justify-items: start; min-width: 0; }
.os-rs small { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .04em; color: var(--dim); }
.os-rt { font-family: var(--f-display); font-size: 18px; color: var(--ice); white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
.os-rt small { font-family: var(--f-mono); font-size: 11px; color: var(--mute); margin-left: 4px; }
.os-row .btn { min-height: 40px; padding: 8px 14px; font-size: 14.5px; }
@media (max-width: 860px) { .os-row { grid-template-columns: minmax(0, 1fr) auto; } .os-rs { grid-column: 1; } .os-rt { grid-column: 2; grid-row: 1; } .os-row .btn { grid-column: 1 / -1; } }
.os-recent { margin-top: clamp(22px, 3vw, 36px); display: grid; gap: 12px; }
.os-recent-full { margin-top: clamp(18px, 2.4vw, 28px); }
.os-recent > .k { text-align: center; }
.os-row.sm { grid-template-columns: 110px minmax(0, 1fr) auto auto auto; padding: 10px 16px; }
.os-row.sm time { font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; color: var(--ion); text-transform: uppercase; }
.os-row.sm .os-ra b, .os-row.sm .os-ra a { font-size: 15.5px; }
@media (max-width: 860px) { .os-row.sm { grid-template-columns: minmax(0, 1fr) auto; } .os-row.sm time { grid-column: 1 / -1; } .os-row.sm .os-rs { grid-column: 1; } .os-row.sm .os-rt { grid-column: 2; grid-row: auto; } .os-row.sm .btn { grid-column: 1 / -1; } }

/* ---------- the protocol page ---------- */
.os-spec { display: grid; gap: clamp(12px, 1.6vw, 20px); }
.os-spec > .card { display: grid; gap: 12px; align-content: start; min-width: 0; }
.os-spec > .card > * + * { margin-top: 0; }
.os-code { margin: 0; font-size: 12.5px; tab-size: 2; }
.os-code code { font: inherit; color: inherit; background: none; padding: 0; border: 0; }
.os-code.tall { max-height: 460px; overflow: auto; }
.os-codehead { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; }
.os-times { display: grid; gap: 0; }
.os-times > div { display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr); gap: 6px 18px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.os-times > div:last-child { border-bottom: 0; padding-bottom: 0; } .os-times > div:first-child { padding-top: 0; }
.os-times dt { font-family: var(--f-display); font-size: 15px; color: var(--ice); }
.os-times dd { color: var(--mute); font-size: 15.5px; line-height: 1.55; }
.os-pfacts > div { grid-template-columns: minmax(0, 190px) minmax(0, 1fr); }
.os-pfacts dt { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ion); }
.os-pfacts dd { color: var(--ice); }
@media (max-width: 560px) { .os-times > div, .os-pfacts > div { grid-template-columns: minmax(0, 1fr); } }
.os-ver { margin-top: clamp(16px, 2vw, 24px); display: grid; gap: 10px; }
.os-ver > * + * { margin-top: 0; }
.os-ver a { color: var(--ice); }

/* ---------- receipt pages ---------- */
.os-verdict strong { color: var(--ice); margin-right: 4px; }
.os-v-ok strong { color: var(--os-ok); } .os-v-bad strong { color: var(--os-bad); }
.os-rfacts .os-f-ok dd { color: var(--os-ok); } .os-rfacts .os-f-bad dd { color: var(--os-bad); }
.os-nowline { font-size: 15px; color: var(--mute); }
.os-nowline a { color: var(--ice); }
.os-facts { list-style: none; display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--r); background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .008)); padding: 4px clamp(16px, 2.4vw, 28px); }
.os-facts li { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 4px 20px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: baseline; color: var(--ice); font-size: 16px; min-width: 0; }
.os-facts li:last-child { border-bottom: 0; }
.os-facts .k { color: var(--dim); }
.os-facts li > :not(.k):not(small) { grid-column: 2; min-width: 0; }
.os-facts b { font-weight: 600; font-variant-numeric: tabular-nums; }
.os-two b + b { font-weight: 400; color: var(--mute); margin-left: 10px; }
.os-facts small { grid-column: 2; font-size: 14px; color: var(--dim); }
.os-facts a { color: var(--ice); overflow-wrap: anywhere; }
@media (max-width: 700px) { .os-facts li { grid-template-columns: minmax(0, 1fr); } .os-facts li > :not(.k):not(small), .os-facts small { grid-column: 1; } }
.os-rcheck > .card { gap: 12px; }
.os-rec .code-snip { max-height: 440px; overflow: auto; font-size: 11.5px; }
.os-vlist { list-style: none; display: grid; gap: 8px; font-size: 15px; }
.os-vlist li { position: relative; padding-left: 28px; color: var(--ice); }
.os-vlist li::before { content: ""; position: absolute; left: 3px; top: .34em; width: 13px; height: 7px; border-left: 2px solid var(--os-ok); border-bottom: 2px solid var(--os-ok); transform: rotate(-45deg); }
.os-vlist li.bad { color: #ffc2c8; }
.os-vlist li.bad::before { left: 2px; top: .7em; width: 15px; height: 2px; border: 0; background: var(--os-bad); transform: none; }
.os-vlist li.dim { color: var(--mute); } .os-vlist li.dim::before { border-color: var(--os-off); }

/* ---------- Off Switch Day ---------- */
.os-cd { display: grid; gap: 14px; justify-items: center; text-align: center; padding: clamp(18px, 2.6vw, 30px); border: 1px solid var(--line); border-radius: var(--r); background: radial-gradient(700px 240px at 50% 0%, rgba(255, 154, 60, .12), transparent 70%), rgba(5, 5, 6, .55); }
.os-cd-k { color: var(--flare); }
.os-cd-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(8px, 1.4vw, 16px); width: min(100%, 720px); }
.os-cd-c { display: grid; gap: 6px; padding: clamp(12px, 1.8vw, 20px) 6px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .025); min-width: 0; }
.os-cd-n { font-family: var(--f-display); font-size: clamp(26px, 5vw, 56px); line-height: 1; font-variant-numeric: tabular-nums; background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent; }
.os-cd-c .k { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.os-cd-live { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: clamp(17px, 1.7vw, 22px); color: #ffd9b5; }
.os-cd .cta-row { justify-content: center; }
@media (max-width: 560px) { .os-cd .cta-row .btn { flex: 1 1 100%; } .os-cd-c .k { font-size: 9.5px; letter-spacing: .08em; } }
.os-big { font-size: clamp(17px, 1.45vw, 20px); color: var(--ice); line-height: 1.7; }
.cite-grid .body-copy a, .os-join .body-copy a { color: var(--ice); }
.os-checks li { align-items: start; }
.os-helpbox { margin-top: clamp(20px, 2.6vw, 32px); display: grid; gap: 12px; }
.os-help { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 16px); }
.os-help-i { display: grid; gap: 6px; align-content: start; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .02); min-width: 0; }
.os-help-i .k { color: var(--ion); }
.os-help-i a { color: var(--ice); font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.os-help-d { font-size: 14.5px; color: var(--mute); line-height: 1.5; }
@media (max-width: 1000px) { .os-help { grid-template-columns: repeat(2, minmax(0, 1fr)); } .os-help-i:last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (max-width: 600px) { .os-help { grid-template-columns: minmax(0, 1fr); } }
.os-join > .card { display: grid; gap: 14px; align-content: start; }
.os-join > .card > * + * { margin-top: 0; }
.os-count { text-align: center; display: grid; gap: 6px; justify-items: center; }
.os-count .g-v { font-size: clamp(44px, 6vw, 72px); }
.os-join-a .cta-row { justify-content: center; margin-top: 12px; }
.os-join-a .g-msg { text-align: center; margin-top: 10px; flex: none; }
@media (max-width: 900px) { .os-join { grid-template-columns: minmax(0, 1fr); } }
.os-lastday { margin-bottom: clamp(14px, 2vw, 20px); padding: 14px 18px; border-radius: 14px; border: 1px solid rgba(255, 154, 60, .35); background: rgba(255, 154, 60, .06); color: var(--ice); text-align: center; }

/* ---------- press page ---------- */
.os-words, .os-posts { display: grid; gap: clamp(12px, 1.6vw, 20px); }
.os-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .os-posts { grid-template-columns: minmax(0, 1fr); } }
.os-post { align-content: start; }
.os-post-b { display: flex; flex-wrap: wrap; gap: 8px; }
.os-post .btn svg { width: 15px; height: 15px; }
.os-post-t { font-family: var(--f-body); font-size: 16px; line-height: 1.6; }
.os-say { margin-top: clamp(14px, 2vw, 22px); }

/* ---------- home band ---------- */
.os-band { background: radial-gradient(900px 340px at 50% 0%, rgba(255, 154, 60, .11), transparent 70%), linear-gradient(180deg, rgba(255, 255, 255, .02), transparent); border-block: 1px solid rgba(255, 154, 60, .2); }
.grid-2.spot.os-home { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 700px) { .grid-2.spot.os-home { grid-template-columns: minmax(0, 1fr); } }
