/* =====================================================================
   RSI · enterrsi.si · rsi-plus.css (v1.6.0, Nov 2026)
   Additions on top of site.css: grouped navigation, the Rogue Incident
   Database, the Rogue Scale, the Control Map, the RSI Clock, Contain It
   and the home spotlight. Uses the site.css tokens only.
   ===================================================================== */
:root {
  --sev1: #a9b8cc; --sev2: #4fa3ff; --sev3: #ffd27a; --sev4: #ff8a3d; --sev5: #ff4d5e;
  --st-in-force: #4fa3ff; --st-passed: #5fe3a6; --st-voluntary: #ffb45e; --st-proposed: #cfd6e0; --st-stalled: #ff7a8f;
  --amber: #ff9a3c;
}

/* ---------- grouped navigation ---------- */
.nav-groups .ng { position: relative; }
.ng-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 10px; border: 0; background: none; cursor: pointer;
  font-family: var(--f-mono); font-size: 12.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  color: var(--mute); transition: color .25s; white-space: nowrap; position: relative;
}
.ng-btn::after {
  content: ""; position: absolute; left: 10px; right: 24px; bottom: 4px; height: 1px;
  background: linear-gradient(90deg, var(--ion), var(--nebula)); transform: scaleX(0); transform-origin: left; transition: transform .35s;
}
.ng-chev { width: 11px; height: 11px; transition: transform .25s; flex: none; }
.ng-btn:hover, .ng.open .ng-btn, .ng.cur .ng-btn { color: var(--ice); }
.ng.cur .ng-btn::after, .ng-btn:hover::after { transform: scaleX(1); }
.ng.open .ng-chev { transform: rotate(180deg); }
.ng-h { display: none; }
.nav .ng-menu a { text-transform: none; letter-spacing: 0; }
.nav .ng-menu a b { display: block; font-family: var(--f-body); font-size: 15px; font-weight: 700; letter-spacing: .01em; color: var(--ice); }
.nav .ng-menu a small { display: block; font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; color: var(--dim); margin-top: 2px; white-space: normal; }

@media (min-width: 1140px) {
  .burger { display: none !important; }
  .hdr-cta { margin-left: 0; }
  .nav.nav-groups {
    position: static; flex-direction: row; align-items: center; gap: clamp(0px, .5vw, 8px); margin-left: auto;
    padding: 0; background: none; border: 0; max-height: none; overflow: visible;
    opacity: 1; visibility: visible; transform: none; transition: none;
  }
  .nav.nav-groups > a.ng-link { padding: 10px 10px; border-bottom: 0; font-size: 12.5px; }
  .nav.nav-groups > a.ng-link::after { display: block; }
  .nav.nav-groups > a.ng-link[aria-current="page"] { color: var(--ice); }
  .ng-menu {
    position: absolute; top: calc(100% + 10px); left: 50%; z-index: 60; width: 300px;
    display: grid; gap: 2px; padding: 8px;
    background: rgba(8, 9, 11, .97); border: 1px solid var(--line-2); border-radius: 14px;
    box-shadow: 0 24px 60px -18px rgba(0, 0, 0, .9), 0 0 0 1px rgba(79, 163, 255, .06);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    opacity: 0; visibility: hidden; transform: translate(-50%, -6px); transition: opacity .2s, transform .2s, visibility 0s .2s;
  }
  .ng-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
  .ng.open .ng-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .2s, transform .2s; }
  .nav .ng-menu a { display: block; padding: 10px 12px; border-radius: 10px; border: 1px solid transparent; }
  .nav .ng-menu a::after { display: none; }
  .nav .ng-menu a:hover, .nav .ng-menu a:focus-visible { background: rgba(79, 163, 255, .08); border-color: rgba(79, 163, 255, .25); }
  .nav .ng-menu a[aria-current] { background: rgba(255, 255, 255, .04); border-color: var(--line); }
  .nav .ng-menu a[aria-current] b { color: var(--ion); }
}
@media (min-width: 1140px) and (max-width: 1280px) {
  .ng-btn, .nav.nav-groups > a.ng-link { padding-inline: 8px; letter-spacing: .1em; }
  .hdr-cta { gap: 8px; }
}
@media (max-width: 1139.98px) {
  .nav.nav-groups { gap: 0; padding-top: 4px; background: #050608; }
  .nav-groups .ng { padding: 14px 0 10px; border-bottom: 1px solid var(--line); }
  .ng-btn { display: none; }
  .ng-h { display: block; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--ion); margin-bottom: 4px; }
  .ng-menu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; }
  .nav .ng-menu a { padding: 11px 4px; border-bottom: 1px solid var(--line); }
  .nav .ng-menu a:nth-last-child(-n+2):nth-child(odd), .nav .ng-menu a:last-child { border-bottom: 0; }
  .nav .ng-menu a:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .nav .ng-menu a b { font-size: 15px; }
  .nav .ng-menu a[aria-current] b { color: var(--ion); }
  .nav .ng-menu a small { font-size: 10.5px; }
  .nav.nav-groups > a.ng-link { padding: 15px 4px; }
  .nav.nav-groups > a.ng-link:last-child { border-bottom: 0; }
}
@media (max-width: 380px) {
  .ng-menu { grid-template-columns: minmax(0, 1fr); }
  .nav .ng-menu a:nth-last-child(-n+2):nth-child(odd) { border-bottom: 1px solid var(--line); }
}

/* ---------- footer: brand plus four link columns ---------- */
.ftr-col a[aria-current="page"] { color: var(--ice); }

/* ---------- shared: badges ---------- */
.sev {
  display: inline-flex; align-items: center; gap: 8px; flex: none; white-space: nowrap;
  padding: 4px 11px 4px 4px; border-radius: 999px; border: 1px solid var(--sc, var(--line-2));
  background: color-mix(in srgb, var(--sc, #fff) 10%, transparent);
  font-family: var(--f-mono); font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ice);
}
.sev i { font-style: normal; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--sc); color: #0a0605; font-size: 12px; letter-spacing: 0; }
.sev-1 { --sc: var(--sev1); } .sev-2 { --sc: var(--sev2); } .sev-3 { --sc: var(--sev3); } .sev-4 { --sc: var(--sev4); } .sev-5 { --sc: var(--sev5); }
.sev.big { font-size: 13px; padding: 6px 16px 6px 6px; }
.sev.big i { width: 30px; height: 30px; font-size: 15px; }
.tag {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-2);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute);
}
.tag.real { border-color: rgba(255, 77, 94, .55); color: #ffc2c8; }
.tag.lab { border-color: rgba(79, 163, 255, .45); color: #cfe5ff; }
.stb { --sc: var(--line-2); display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; padding: 4px 10px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--sc) 60%, transparent); font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ice); background: color-mix(in srgb, var(--sc) 12%, transparent); }
.stb::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sc); flex: none; }
.st-in-force { --sc: var(--st-in-force); } .st-passed { --sc: var(--st-passed); } .st-voluntary { --sc: var(--st-voluntary); }
.st-proposed { --sc: var(--st-proposed); } .st-stalled { --sc: var(--st-stalled); } .st-none { --sc: #3a3f48; }

/* ---------- shared: metric strip in the hero (centered, animated) ---------- */
.facts .num { min-width: 0; }
.facts dd small { font-family: var(--f-mono); font-size: .55em; color: var(--mute); margin-left: .3em; letter-spacing: .06em; }
.wide-lead { max-width: 92ch; }

/* ---------- shared: grid cards never grow past their column ---------- */
.cite-grid > .card, .cite-grid > .stack, .inc-grid .card, .rc-hist-card, .rl-chart-card, .cm-map-card, .cm-panel, .f-grid > .card,
.us-grid > .card, .intl-grid > .card, .lv-body, .lv-ex, .ms-col, .ms-head, .cite-box, .formula, .rel a.card, .pn a.card { grid-template-columns: minmax(0, 1fr); }
.cite-grid > .stack { align-content: start; }
.card .cta-row { justify-content: center; }
.card > .stb, .card > .sev, .rel a.card > .sev, .card .stb { justify-self: start; align-self: flex-start; }
.inc-grid { align-items: stretch; }
.inc-grid > .stack { grid-template-rows: auto 1fr; }

/* ---------- shared: cite box, downloads ---------- */
.cite-box { border: 1px solid var(--line-2); border-radius: var(--r); background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .01)); padding: clamp(18px, 2.4vw, 28px); display: grid; gap: 14px; min-width: 0; }
.cite-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cite-top .k { color: var(--ion); }
.cite-text { font-family: var(--f-mono); font-size: 14px; line-height: 1.7; color: var(--ice); overflow-wrap: anywhere; }
.cite-note { font-size: 14.5px; color: var(--dim); }
.cite-copy.ok { border-color: var(--ok); }
.dl-row { display: flex; flex-wrap: wrap; gap: 12px; }
.dl-row .btn { flex: 1 1 200px; }
.cite-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(14px, 2vw, 24px); align-items: stretch; }
.cite-grid > .card { display: grid; gap: 14px; align-content: start; }
.cite-grid > .card > * + * { margin-top: 0; }
@media (max-width: 900px) { .cite-grid { grid-template-columns: minmax(0, 1fr); } }
.code-snip { display: block; width: 100%; max-width: 100%; overflow-x: 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.6; color: #d9e6f5; white-space: pre; }

/* ---------- Rogue Incident Database: timeline chart drawn to scale ---------- */
.rl-chart-card { padding: clamp(16px, 2.2vw, 28px); display: grid; gap: 16px; }
.rl-chart-card > * + * { margin-top: 0; }
.rl-scroll { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; }
.rl-chart { display: block; width: 100%; min-width: 900px; height: auto; }
.rl-chart .yl { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; fill: var(--dim); text-transform: uppercase; }
.rl-chart .xl { font-family: var(--f-mono); font-size: 12px; fill: var(--mute); }
.rl-chart .grid { stroke: rgba(214, 222, 235, .08); stroke-width: 1; }
.rl-chart .yr { stroke: rgba(214, 222, 235, .14); stroke-width: 1; stroke-dasharray: 2 4; }
.rl-chart .dot { stroke: #050506; stroke-width: 1.5; transition: opacity .25s, r .2s; cursor: pointer; }
.rl-chart a:hover .dot, .rl-chart a:focus .dot { r: 9; }
.rl-chart .dot.off { opacity: .1; }
.rl-chart .d1 { fill: var(--sev1); } .rl-chart .d2 { fill: var(--sev2); } .rl-chart .d3 { fill: var(--sev3); } .rl-chart .d4 { fill: var(--sev4); } .rl-chart .d5 { fill: var(--sev5); }
.rl-chart .real { stroke: #fff; stroke-width: 1.6; }
.rl-hint { font-size: 13.5px; color: var(--dim); text-align: center; }
@media (min-width: 960px) { .rl-hint.sm { display: none; } }
.rl-years { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: clamp(4px, .8vw, 10px); align-items: end; height: 150px; }
.rl-years .yc { display: grid; grid-template-rows: minmax(0, 1fr) auto auto; gap: 6px; height: 100%; justify-items: center; min-width: 0; }
.rl-years .ys { width: min(42px, 100%); display: flex; flex-direction: column-reverse; border-radius: 6px 6px 2px 2px; overflow: hidden; height: var(--h); transition: height 1.4s cubic-bezier(.2, .7, .2, 1); align-self: end; }
.js .rl-years:not(.on) .ys { height: 0; }
.rl-years .ys i { display: block; height: var(--p); }
.rl-years .yn { font-family: var(--f-mono); font-size: 12px; color: var(--ice); }
.rl-years .yd { font-family: var(--f-mono); font-size: 11px; color: var(--dim); }
.ys .s1 { background: var(--sev1); } .ys .s2 { background: var(--sev2); } .ys .s3 { background: var(--sev3); } .ys .s4 { background: var(--sev4); } .ys .s5 { background: var(--sev5); }
@media (max-width: 560px) { .rl-years .yd { font-size: 9.5px; } .rl-years .yn { font-size: 11px; } }

/* ---------- Rogue Incident Database: filters and list ---------- */
.flt { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)) auto; gap: 10px; align-items: end; margin-bottom: 18px; }
.flt label { display: grid; gap: 6px; min-width: 0; font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.flt select, .flt input {
  width: 100%; min-width: 0; min-height: 46px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--ctl-line); background: var(--ctl);
  color: var(--ice); font-family: var(--f-body); font-size: 15px; font-weight: 600; letter-spacing: 0; text-transform: none;
}
.flt select { appearance: none; -webkit-appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%23b8bec8' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 12px; }
.flt input::placeholder { color: var(--dim); font-weight: 500; }
.flt select:focus, .flt input:focus { outline: 2px solid var(--ion); outline-offset: 1px; border-color: var(--ion); }
.flt .btn { min-height: 46px; }
.flt-count { font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); margin-bottom: 14px; text-align: center; }
.flt .btn { order: 9; }
@media (max-width: 1100px) { .flt { grid-template-columns: repeat(4, minmax(0, 1fr)); } .flt .f-q { grid-column: span 3; } .flt .btn { order: 0; } }
@media (max-width: 640px) { .flt { grid-template-columns: repeat(2, minmax(0, 1fr)); } .flt .f-q { grid-column: 1 / -1; } .flt .btn { order: 9; grid-column: 1 / -1; } }
.inc-list { list-style: none; display: grid; gap: 10px; }
.inc-row { display: grid; grid-template-columns: 116px minmax(0, 1fr) auto; gap: 8px 22px; align-items: center; padding: 16px 20px; 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 .25s, transform .25s; position: relative; }
.inc-row:hover { border-color: rgba(79, 163, 255, .45); transform: translateY(-2px); }
.inc-row time { font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .08em; color: var(--ion); text-transform: uppercase; }
.inc-row .ir-t { display: grid; gap: 4px; min-width: 0; }
.inc-row .ir-t a { color: var(--ice); text-decoration: none; font-weight: 700; font-size: 16.5px; line-height: 1.35; }
.inc-row .ir-t a::after { content: ""; position: absolute; inset: 0; border-radius: 14px; }
.inc-row .ir-t a:focus-visible { outline: none; }
.inc-row .ir-t a:focus-visible::after { outline: 2px solid var(--ion); outline-offset: 2px; }
.inc-row .ir-m { font-size: 14px; color: var(--dim); }
.inc-row .ir-b { display: flex; gap: 8px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
@media (max-width: 760px) {
  .inc-row { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .inc-row .ir-b { justify-content: flex-start; order: -1; }
  .inc-row time { order: -2; }
}
.empty-note { text-align: center; color: var(--mute); padding: 30px; border: 1px dashed var(--line-2); border-radius: 14px; }

/* ---------- context stat cards (centered metrics) ---------- */
.ctx-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.ctx-grid > .card { grid-column: span 2; text-align: center; display: grid; gap: 12px; justify-items: center; align-content: start; }
.ctx-grid > .card:nth-child(-n+2) { grid-column: span 3; }
.ctx-grid > .card > * + * { margin-top: 0; }
.ctx-v { font-family: var(--f-display); font-size: clamp(30px, 3.4vw, 46px); line-height: 1.1; background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.ctx-l { font-weight: 700; font-size: 16.5px; color: var(--ice); }
.ctx-grid .body-copy { font-size: 15px; }
.ctx-src { font-size: 13.5px; color: var(--dim); }
.ctx-src a { color: var(--ion); }
@media (max-width: 900px) {
  .ctx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ctx-grid > .card, .ctx-grid > .card:nth-child(-n+2) { grid-column: span 1; }
  .ctx-grid > .card:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 560px) { .ctx-grid { grid-template-columns: minmax(0, 1fr); } .ctx-grid > .card:last-child:nth-child(odd) { grid-column: auto; } }

/* ---------- scale strip (five levels in one row) ---------- */
.scale-strip { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.scale-strip li { position: relative; border: 1px solid var(--line); border-radius: 14px; padding: 16px 12px 14px; text-align: center; display: grid; gap: 6px; justify-items: center; background: linear-gradient(180deg, color-mix(in srgb, var(--sc) 9%, transparent), transparent); }
.scale-strip li::before { content: ""; position: absolute; left: 14px; right: 14px; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: var(--sc); }
.scale-strip .sn { font-family: var(--f-display); font-size: clamp(22px, 2.4vw, 32px); line-height: 1; color: var(--sc); }
.scale-strip .sl { font-weight: 700; font-size: 15.5px; }
.scale-strip .sc { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.scale-strip li.now { border-color: var(--sc); box-shadow: 0 0 0 1px var(--sc), 0 16px 40px -22px var(--sc); }
.scale-strip li.now::after { content: "This case"; position: absolute; top: -10px; padding: 2px 9px; border-radius: 999px; background: var(--sc); color: #0b0605; font-family: var(--f-mono); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.scale-strip a { color: inherit; text-decoration: none; display: grid; gap: 6px; justify-items: center; }
@media (max-width: 640px) {
  .scale-strip { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .scale-strip li { grid-column: span 2; }
  .scale-strip li:nth-child(4) { grid-column: 2 / span 2; }
  .scale-strip li:nth-child(5) { grid-column: 4 / span 2; }
}

/* ---------- incident page ---------- */
.inc-hero-badges { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.inc-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(14px, 2vw, 24px); align-items: start; }
.inc-grid > .stack > .card, .inc-grid > .card { display: grid; gap: 14px; align-content: start; }
.inc-grid .card > * + * { margin-top: 0; }
@media (max-width: 900px) { .inc-grid { grid-template-columns: minmax(0, 1fr); } }
.why-card { border-color: color-mix(in srgb, var(--sc) 55%, transparent); background: radial-gradient(500px 200px at 0% 0%, color-mix(in srgb, var(--sc) 14%, transparent), transparent 70%), var(--panel); }
.src-list { list-style: none; display: grid; gap: 12px; }
.src-list li { display: grid; gap: 3px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .015); min-width: 0; }
.src-list a { color: var(--ice); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.src-list a:hover { color: var(--ion); }
.src-list .sm { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; color: var(--dim); text-transform: uppercase; }
.pn { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.pn a.card { display: grid; gap: 8px; text-decoration: none; align-content: start; }
.pn a.card > * + * { margin-top: 0; }
.pn a.card:hover { border-color: rgba(79, 163, 255, .45); transform: translateY(-3px); }
.pn .nx { text-align: right; justify-items: end; }
.pn .k { color: var(--ion); }
.pn .t { font-weight: 700; color: var(--ice); line-height: 1.4; }
@media (max-width: 640px) { .pn { grid-template-columns: minmax(0, 1fr); } .pn .nx { text-align: left; justify-items: start; } }
.rel a.card { display: flex; flex-direction: column; gap: 12px; text-decoration: none; }
.rel a.card > * + * { margin-top: 0; }
.rel a.card:hover { border-color: rgba(79, 163, 255, .45); transform: translateY(-3px); }
.rel .t { font-weight: 700; color: var(--ice); line-height: 1.4; }
.rel .link-arrow { margin-top: auto; }

/* ---------- Rogue Scale page ---------- */
.lv-list { display: grid; gap: clamp(14px, 2vw, 22px); }
.lv { display: grid; grid-template-columns: 150px minmax(0, 1fr) minmax(0, 1fr); gap: clamp(16px, 3vw, 40px); align-items: start; border-color: color-mix(in srgb, var(--sc) 40%, transparent); background: radial-gradient(600px 220px at 0% 0%, color-mix(in srgb, var(--sc) 12%, transparent), transparent 70%), linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .008)); scroll-margin-top: calc(var(--hdr) + var(--tick) + 24px); }
.lv > * + * { margin-top: 0 !important; }
.lv-n { display: grid; justify-items: center; gap: 8px; text-align: center; }
.lv-n b { font-family: var(--f-display); font-weight: 400; font-size: clamp(54px, 6vw, 84px); line-height: 1; color: var(--sc); text-shadow: 0 0 34px color-mix(in srgb, var(--sc) 45%, transparent); }
.lv-n span { font-family: var(--f-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.lv-body { display: grid; gap: 12px; align-content: start; }
.lv-ex { display: grid; gap: 10px; align-content: start; }
.lv-ex ul { list-style: none; display: grid; gap: 8px; }
.lv-ex li a { color: var(--ice); text-decoration: none; font-weight: 600; font-size: 15px; line-height: 1.45; display: block; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, .015); }
.lv-ex li a:hover { border-color: color-mix(in srgb, var(--sc) 60%, transparent); }
.lv-ex li small { display: block; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; color: var(--dim); text-transform: uppercase; margin-top: 2px; font-weight: 500; }
@media (max-width: 1000px) { .lv { grid-template-columns: 110px minmax(0, 1fr); } .lv-ex { grid-column: 1 / -1; } }
@media (max-width: 560px) { .lv { grid-template-columns: minmax(0, 1fr); } .lv-n { grid-template-columns: auto auto; justify-content: start; align-items: center; } .lv-n b { font-size: 48px; } }
.steps-q { list-style: none; display: grid; gap: 10px; counter-reset: q; }
.steps-q li { counter-increment: q; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .02); }
.steps-q li::before { content: counter(q); width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-family: var(--f-mono); font-weight: 600; color: var(--ion); border: 1px solid var(--line-2); }
.steps-q p { color: var(--mute); }
.steps-q p strong { color: var(--ice); }
@media (max-width: 640px) { .steps-q li { grid-template-columns: 36px minmax(0, 1fr); } .steps-q li .sev { grid-column: 2; justify-self: start; } }
.badge-demo { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; padding: 22px; border-radius: 14px; border: 1px dashed var(--line-2); background: #07080a; }

/* ---------- Control Map ---------- */
.cm-filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: clamp(16px, 2vw, 22px); }
.cm-filters .ftab i { width: 10px; height: 10px; border-radius: 50%; background: var(--sc, var(--mute)); flex: none; }
.cm-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(14px, 2vw, 24px); }
.cm-map-card { padding: clamp(10px, 1.6vw, 20px); display: grid; gap: 12px; align-content: start; }
.cm-map-card > * + * { margin-top: 0; }
.cm-svg { display: block; width: 100%; height: auto; max-height: 620px; }
.cm-svg path { stroke: #050506; stroke-width: .45; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.cm-svg .nd path { fill: #1b1e24; transition: fill .2s; }
.cm-svg .nd path:hover { fill: #262a32; }
.cm-svg .j { cursor: pointer; outline: none; }
.cm-svg .j path, .cm-svg .j circle { fill: var(--sc); transition: fill .2s, opacity .25s, filter .25s; }
.cm-svg .j:hover path, .cm-svg .j:hover circle, .cm-svg .j:focus-visible path, .cm-svg .j:focus-visible circle { filter: brightness(1.25) drop-shadow(0 0 6px var(--sc)); }
.cm-svg .j.sel path, .cm-svg .j.sel circle { stroke: #fff; stroke-width: 1.4; filter: drop-shadow(0 0 8px var(--sc)); }
.cm-svg .j.dim path, .cm-svg .j.dim circle { opacity: .18; }
.cm-svg .j circle { stroke: #fff; stroke-width: 1.2; }
.cm-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.cm-legend span { display: inline-flex; align-items: center; gap: 7px; }
.cm-legend i { width: 11px; height: 11px; border-radius: 3px; background: var(--sc); }
.cm-note { font-size: 13.5px; color: var(--dim); text-align: center; }
.cm-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; gap: 18px clamp(20px, 4vw, 56px); align-items: start; scroll-margin: calc(var(--hdr) + var(--tick) + 16px); }
.cm-panel > * + * { margin-top: 0; }
.cm-pl, .cm-pr { display: grid; gap: 14px; align-content: start; min-width: 0; }
.cm-pl .stb { justify-self: start; }
@media (max-width: 860px) { .cm-panel { grid-template-columns: minmax(0, 1fr) !important; } }
.jrows { display: grid; gap: 12px; }
.jrow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 16px clamp(20px, 4vw, 56px); align-items: start; padding: clamp(18px, 2.2vw, 26px); border: 1px solid var(--line); border-radius: var(--r); background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .008)); }
.jr-l, .jr-r { display: grid; gap: 10px; align-content: start; min-width: 0; }
.jrow .h3 a { color: var(--ice); text-decoration: none; }
.jrow .h3 a:hover { color: var(--ion); }
.jrow .body-copy { font-size: 15.5px; }
.jr-r .ms-mini li, .cm-pr .ms-mini li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .02); }
.jr-r .ms-mini li:first-child, .cm-pr .ms-mini li:first-child { padding-top: 11px; border-top: 1px solid var(--line); }
.jr-r .ms-mini li .stb, .cm-pr .ms-mini li .stb { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.jr-r .ms-mini li b, .cm-pr .ms-mini li b, .jr-r .ms-mini li small, .cm-pr .ms-mini li small { grid-column: 1; }
@media (max-width: 480px) { .jr-r .ms-mini li, .cm-pr .ms-mini li { grid-template-columns: minmax(0, 1fr); } .jr-r .ms-mini li .stb, .cm-pr .ms-mini li .stb { grid-column: 1; grid-row: auto; justify-self: start; } }
@media (max-width: 860px) { .jrow { grid-template-columns: minmax(0, 1fr); } }
.cm-panel .h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(20px, 2vw, 26px); }
.cm-panel .ms-mini { list-style: none; display: grid; gap: 8px; }
.cm-panel .ms-mini li { display: grid; gap: 6px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .02); }
.cm-panel .ms-mini b { font-weight: 700; font-size: 15px; }
.cm-panel .ms-mini small { font-size: 13px; color: var(--dim); }
.cm-panel .stb { justify-self: start; }
.us-grid > .card, .intl-grid > .card { display: grid; gap: 12px; align-content: start; }
.us-grid > .card > * + *, .intl-grid > .card > * + * { margin-top: 0; }
.us-grid .h3 a, .intl-grid .h3 a { color: var(--ice); text-decoration: none; }
.us-grid .h3 a:hover, .intl-grid .h3 a:hover { color: var(--ion); }
.ms-mini { list-style: none; display: grid; gap: 8px; }
.ms-mini li { display: grid; gap: 4px; padding-top: 10px; border-top: 1px solid var(--line); }
.ms-mini li:first-child { border-top: 0; padding-top: 0; }
.ms-mini b { font-weight: 700; font-size: 15px; color: var(--ice); }
.ms-mini small { font-size: 13.5px; color: var(--dim); }
.ms-mini .stb { justify-self: start; }
.up-list { list-style: none; display: grid; gap: 10px; }
.up-list li { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 8px 22px; align-items: center; padding: 16px 20px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .02); }
.up-list li.soon { border-color: rgba(255, 154, 60, .55); background: linear-gradient(90deg, rgba(255, 154, 60, .1), rgba(255, 154, 60, .01)); }
.up-list time { font-family: var(--f-mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ion); }
.up-list li.soon time { color: var(--amber); }
.up-list .ul-t { display: grid; gap: 4px; min-width: 0; }
.up-list .ul-t b { color: var(--ice); }
.up-list .ul-t a { color: var(--ice); text-decoration: none; font-weight: 700; }
.up-list .ul-t a:hover { color: var(--ion); }
.up-list .ul-t small { color: var(--mute); font-size: 14.5px; }
.up-list .ul-d { font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); text-align: right; white-space: nowrap; }
@media (max-width: 760px) { .up-list li { grid-template-columns: minmax(0, 1fr); padding: 16px; } .up-list .ul-d { text-align: left; } }
table.data.cm-table td, table.data.cm-table th { padding: 13px 14px; }
table.data.cm-table td:first-child { font-weight: 600; }
table.data.cm-table a { color: var(--ice); }
table.data.cm-table a:hover { color: var(--ion); }
table.data .nowrap { white-space: nowrap; }
.cm-table-wrap { max-height: none; }
table.data.labs td:nth-child(2) a { color: var(--ion); }
.ms-cards { display: grid; gap: clamp(14px, 2vw, 22px); }
.ms-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px clamp(18px, 3vw, 40px); align-items: start; }
.ms-card > * + * { margin-top: 0 !important; }
.ms-card .ms-head { grid-column: 1 / -1; display: grid; gap: 10px; }
.ms-card .ms-head .h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(19px, 2vw, 25px); }
.ms-card .ms-full { color: var(--dim); font-size: 14.5px; }
.ms-col { display: grid; gap: 12px; align-content: start; min-width: 0; }
.ms-col .k { color: var(--ion); }
.ms-dates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 440px) { .ms-dates { grid-template-columns: minmax(0, 1fr); } }
.ms-dates div { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; display: grid; gap: 2px; text-align: center; }
.ms-dates dt { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.ms-dates dd { font-family: var(--f-mono); font-size: 13.5px; color: var(--ice); }
.ms-dates .next { grid-column: 1 / -1; border-color: rgba(255, 154, 60, .5); }
.ms-dates .next dd { color: var(--amber); }
.ms-dates .next p { font-size: 13.5px; color: var(--mute); }
@media (max-width: 900px) { .ms-card { grid-template-columns: minmax(0, 1fr); } }
.jlinks { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.jlinks a { text-decoration: none; }
.jlinks a.chip:hover { border-color: var(--ion); color: var(--ice); }

/* ---------- RSI Clock ---------- */
.rc-hero { padding-bottom: clamp(70px, 8vw, 120px); }
.rc-stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 64px); align-items: center; margin-top: clamp(10px, 2vw, 24px); }
.rc-face-wrap { position: relative; width: min(520px, 100%); justify-self: center; aspect-ratio: 1; }
.rc-face-wrap::before { content: ""; position: absolute; inset: -6%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 154, 60, .16), rgba(79, 163, 255, .07) 60%, transparent 72%); filter: blur(10px); z-index: -1; }
.rc-shine { position: absolute; inset: 0; border-radius: 50%; pointer-events: none; -webkit-mask: radial-gradient(closest-side, transparent 90%, #000 91%, #000 98%, transparent 99%); mask: radial-gradient(closest-side, transparent 90%, #000 91%, #000 98%, transparent 99%); background: conic-gradient(from 0deg, transparent 0deg, rgba(255, 255, 255, .0) 40deg, rgba(255, 255, 255, .85) 60deg, rgba(255, 255, 255, 0) 80deg, transparent 360deg); animation: rcShine 7s linear infinite; mix-blend-mode: screen; }
@keyframes rcShine { to { transform: rotate(360deg); } }
.rc-svg { display: block; width: 100%; height: 100%; overflow: visible; }
.rc-svg .tk { stroke: rgba(214, 222, 235, .35); stroke-width: 1.4; }
.rc-svg .tk.b { stroke: rgba(236, 241, 248, .8); stroke-width: 2.6; }
.rc-svg .tk.hot { stroke: var(--amber); }
.rc-svg .lbl { font-family: var(--f-mono); font-size: 11px; letter-spacing: .2em; fill: var(--mute); text-transform: uppercase; }
.rc-svg .num12 { font-family: var(--f-display); font-size: 22px; fill: #ffd2a6; }
.rc-hand { transform-origin: 200px 200px; transition: transform 2.4s cubic-bezier(.2, .8, .2, 1); }
.js .rc-svg:not(.on) .rc-hand.m { transform: rotate(0deg) !important; }
.js .rc-svg:not(.on) .rc-hand.h { transform: rotate(330deg) !important; }
.rc-arc { transition: stroke-dashoffset 2.4s cubic-bezier(.2, .8, .2, 1); }
.js .rc-svg:not(.on) .rc-arc { stroke-dashoffset: var(--arc-len) !important; }
.rc-read { display: grid; gap: 16px; justify-items: center; text-align: center; }
.rc-big { display: flex; align-items: baseline; justify-content: center; gap: 14px; flex-wrap: wrap; }
.rc-big .rc-min { font-family: var(--f-display); font-size: clamp(76px, 11vw, 150px); line-height: .95; background: linear-gradient(180deg, #fff 0%, #ffe2c2 38%, #ff9a3c 60%, #ffd2a6 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 30px rgba(255, 154, 60, .35)); font-variant-numeric: tabular-nums; }
.rc-big .u { font-family: var(--f-display); font-size: clamp(16px, 1.8vw, 24px); color: var(--ice); text-align: left; line-height: 1.35; }
.rc-event { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; padding: 10px 18px; border-radius: 999px; border: 1px solid rgba(255, 154, 60, .6); background: rgba(255, 154, 60, .1); font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #ffd2a6; }
.rc-event b { color: #fff; font-weight: 600; }
.rc-event .live-dot { background: var(--amber); }
.rc-kv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; border: 1px solid var(--line); border-radius: var(--r); background: rgba(7, 8, 10, .6); }
.rc-kv > div { padding: 14px 10px; display: grid; gap: 4px; justify-items: center; text-align: center; min-width: 0; }
.rc-kv > div + div { border-left: 1px solid var(--line); }
.rc-kv dd { font-family: var(--f-display); font-size: clamp(14px, 1.45vw, 20px); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rc-kv dd small { font-family: var(--f-mono); font-size: .55em; color: var(--mute); margin-left: .25em; }
@media (max-width: 900px) { .rc-stage { grid-template-columns: minmax(0, 1fr); } .rc-face-wrap { width: min(420px, 100%); } }
@media (max-width: 420px) { .rc-kv { grid-template-columns: minmax(0, 1fr); } .rc-kv > div + div { border-left: 0; border-top: 1px solid var(--line); } }
.rc-inputs { list-style: none; display: grid; gap: 12px; }
.rc-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.5fr) 92px; gap: 10px 24px; align-items: center; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .008)); }
.rc-in .ri-n { display: grid; gap: 4px; min-width: 0; }
.rc-in .ri-n b { font-size: 16.5px; }
.rc-in .ri-n small { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.rc-in .ri-bar { display: grid; gap: 8px; min-width: 0; }
.rc-in .ri-bar p { font-size: 13.5px; color: var(--mute); line-height: 1.5; }
.rc-in .ri-v { text-align: center; display: grid; gap: 2px; }
.rc-in .ri-v b { font-family: var(--f-display); font-size: 24px; font-weight: 400; font-variant-numeric: tabular-nums; }
.rc-in .ri-v small { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; color: var(--dim); text-transform: uppercase; }
.rbar { position: relative; height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.rbar i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); border-radius: 999px; transition: width 1.6s cubic-bezier(.2, .7, .2, 1); }
.js .rbar:not(.on) i { width: 0; }
.rbar { container-type: inline-size; }
.rbar i { background: linear-gradient(90deg, var(--ion) 0, #cfd6e0 55cqw, var(--amber) 100cqw); }
@media (max-width: 760px) { .rc-in { grid-template-columns: minmax(0, 1fr) 80px; } .rc-in .ri-bar { grid-column: 1 / -1; grid-row: 2; } }
.rc-total { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 18px 20px; border: 1px solid rgba(255, 154, 60, .5); border-radius: 14px; background: linear-gradient(90deg, rgba(255, 154, 60, .1), rgba(255, 154, 60, .01)); margin-top: 12px; }
.rc-total b { font-family: var(--f-display); font-weight: 400; font-size: clamp(22px, 2.4vw, 30px); color: #ffd2a6; }
.rc-hist-card { display: grid; gap: 16px; }
.rc-hist-card > * + * { margin-top: 0; }
.rc-hist { display: block; width: 100%; height: auto; }
.rc-hist .gl { stroke: rgba(214, 222, 235, .08); }
.rc-hist .ax { font-family: var(--f-mono); font-size: 11px; fill: var(--dim); }
.rc-hist .ln { fill: none; stroke: var(--amber); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.rc-hist .ar { fill: url(#rcg); opacity: .5; }
.rc-hist .pt { fill: #fff; stroke: var(--amber); stroke-width: 3; }
.rc-hist .mv { stroke: rgba(255, 154, 60, .55); stroke-dasharray: 3 4; }
.rc-days { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.rc-days a { text-decoration: none; }
.rc-days a.chip:hover { border-color: var(--amber); color: var(--ice); }
.rc-moves { list-style: none; display: grid; gap: 10px; }
.rc-moves li { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 8px 22px; align-items: center; padding: 16px 20px; border-radius: 14px; border: 1px solid rgba(255, 154, 60, .45); background: linear-gradient(90deg, rgba(255, 154, 60, .08), transparent); }
.rc-moves time { font-family: var(--f-mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--amber); }
.rc-moves p { color: var(--mute); }
.rc-moves b.to { font-family: var(--f-display); font-weight: 400; font-size: 20px; color: #ffd2a6; white-space: nowrap; }
@media (max-width: 760px) { .rc-moves li { grid-template-columns: minmax(0, 1fr); } }
.formula { display: grid; gap: 14px; }
.formula .code-snip { white-space: pre-wrap; overflow-wrap: anywhere; }
.f-grid > .card { display: grid; gap: 10px; align-content: start; }
.f-grid > .card > * + * { margin-top: 0; }
.f-grid .w { font-family: var(--f-display); font-size: 30px; line-height: 1; background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent; }
.embed-demo { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; align-items: center; padding: 24px; border-radius: 14px; border: 1px dashed var(--line-2); background: #07080a; min-height: 140px; }

/* ---------- home spotlight ---------- */
.spot a.card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; text-decoration: none; min-height: 100%; }
.spot a.card > * + * { margin-top: 0; }
.spot a.card:hover { transform: translateY(-4px); border-color: rgba(255, 154, 60, .5); }
.spot .peek { display: flex; align-items: baseline; justify-content: center; gap: 10px; white-space: nowrap; font-family: var(--f-display); font-size: clamp(30px, 3vw, 42px); line-height: 1.05; color: var(--ice); font-variant-numeric: tabular-nums; }
.spot .peek .num { background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent; }
.spot .peek small { font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; color: var(--dim); text-transform: uppercase; }
.spot .new { padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(255, 154, 60, .5); color: #ffd2a6; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; }
.spot .body-copy { font-size: 15.5px; }
.spot a.card > .link-arrow { margin-top: auto; padding-top: 6px; }

/* ---------- Contain It page ---------- */
.ci-section { padding-bottom: clamp(48px, 6vw, 88px); }
.ci-page .page-hero { padding-bottom: clamp(36px, 5vw, 64px); }
.ci-app { scroll-margin-top: calc(var(--hdr) + var(--tick) + 16px); }

@media (prefers-reduced-motion: reduce) {
  .rc-shine { animation: none; opacity: .4; }
  .rl-years .ys { transition: none; }
}
.code-snip.wrap { white-space: pre-wrap; word-break: break-all; }

/* =====================================================================
   enterrsi.si v1.7.0 additions (appended to rsi-plus.css by build.py):
   the Containment Board, the RSI Encyclopedia and the language menu.
   Uses the site.css tokens only.
   ===================================================================== */

/* ---------- grade chips (A green, B blue, C amber, D orange, F red) ---------- */
.gr {
  --gc: #a9b8cc;
  display: inline-grid; place-items: center; min-width: 42px; height: 30px; padding: 0 9px; border-radius: 9px;
  font-family: var(--f-display); font-size: 13.5px; line-height: 1; letter-spacing: .02em; color: #050506; background: var(--gc);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22), 0 8px 22px -10px var(--gc); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.gr-a { --gc: #5fe3a6; } .gr-b { --gc: #4fa3ff; } .gr-c { --gc: #ffb45e; } .gr-d { --gc: #ff8a3d; } .gr-f { --gc: #ff4d5e; }
.gr.big { min-width: 66px; height: 50px; padding: 0 12px; font-size: 21px; border-radius: 13px; }
.facts dd .gr { font-size: 13.5px; }
.facts dd .gr.big { font-size: 20px; }
.js .cb-anim .gr { opacity: 0; transform: translateY(6px) scale(.7); }
.js .cb-anim.on .gr { opacity: 1; transform: none; transition: opacity .45s ease, transform .55s cubic-bezier(.2, .9, .3, 1.25); transition-delay: calc(var(--gi, 0) * 45ms); }

/* ---------- the board ---------- */
.cb-sort { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-bottom: clamp(16px, 2vw, 22px); }
.cb-sort .k { width: 100%; text-align: center; margin-bottom: 2px; }
.cb-sort .ftab { min-height: 38px; padding: 6px 14px; font-size: 14px; }
.cb-wrap { border: 1px solid var(--line); border-radius: var(--r); background: rgba(255, 255, 255, .015); overflow: hidden; }
.cb-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.cb-table th.c-lab { width: 21%; } .cb-table th.c-all { width: 11%; } .cb-table th.c-g { width: 12.2%; }
.cb-table th { font-family: var(--f-mono); font-size: 10.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); padding: 16px 8px; text-align: center; border-bottom: 1px solid var(--line); vertical-align: bottom; }
.cb-table td { padding: 14px 8px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.cb-table tbody tr:last-child td { border-bottom: 0; }
.cb-table tbody tr { transition: background .25s; }
.cb-table tbody tr:hover { background: rgba(79, 163, 255, .045); }
.cb-table th.c-lab, .cb-table td.c-lab { text-align: left; padding-left: 4px; }
.cb-table th.c-rank, .cb-table td.c-rank { width: 64px; }
.cb-table td.c-lab a { color: var(--ice); font-weight: 700; font-size: 17px; text-decoration: none; }
.cb-table td.c-lab a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.cb-table td.c-lab small { display: block; margin-top: 4px; color: var(--dim); font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.cb-rk { font-family: var(--f-display); font-size: 15px; color: var(--dim); }
.cb-table tbody tr:first-child .cb-rk { color: var(--ice); }
.c-all .gpa { display: block; margin-top: 7px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; color: var(--dim); white-space: nowrap; }
.c-all .gpa .num { color: var(--mute); }
.cb-l { display: none; }
.cb-key { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; margin-top: 16px; color: var(--dim); font-size: 13.5px; }
.cb-key span { display: inline-flex; align-items: center; gap: 8px; }
.cb-key .gr { min-width: 30px; height: 24px; font-size: 12px; border-radius: 7px; box-shadow: none; }
@media (max-width: 1060px) {
  .cb-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .cb-table, .cb-table tbody { display: block; }
  .cb-table tbody tr { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px 8px; padding: 18px clamp(14px, 3vw, 24px); border-bottom: 1px solid var(--line); }
  .cb-table tbody tr:last-child { border-bottom: 0; }
  .cb-table td { display: block; padding: 0; border: 0; }
  .cb-table td.c-rank { grid-column: 1; grid-row: 1; width: auto; align-self: center; text-align: left; }
  .cb-table td.c-lab { grid-column: 1 / 5; grid-row: 1; padding-left: 44px; align-self: center; }
  .cb-table td.c-rank { position: relative; z-index: 1; width: 40px; }
  .cb-table td.c-all { grid-column: 5; grid-row: 1; justify-self: end; text-align: center; }
  .cb-table td.c-g { grid-row: 2; display: grid; justify-items: center; gap: 7px; align-content: start; }
  .cb-l { display: block; font-size: 11.5px; line-height: 1.25; color: var(--dim); text-align: center; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: anywhere; order: 2; }
  .cb-table .gr.big { min-width: 56px; height: 42px; font-size: 18px; }
}
@media (max-width: 560px) {
  .cb-table tbody tr { gap: 0 8px; }
  .cb-table td.c-lab { padding-bottom: 12px; }
  .cb-table td.c-g { grid-column: 1 / -1; grid-row: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); }
  .cb-l { order: 0; text-align: left; font-size: 14px; color: var(--mute); overflow-wrap: normal; hyphens: manual; -webkit-hyphens: manual; }
  .cb-table .c-g .gr { min-width: 40px; height: 28px; font-size: 13px; }
}

.cb-tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 16px); }
.cb-tile { display: grid; justify-items: center; align-content: start; gap: 10px; text-align: center; padding: clamp(18px, 2vw, 24px) 14px; border: 1px solid var(--line); border-radius: var(--r); background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .008)); }
.cb-tile .k { min-height: 3.3em; display: grid; place-items: center; line-height: 1.6; }
.cb-avg { font-family: var(--f-display); font-size: clamp(28px, 3vw, 40px); line-height: 1; font-variant-numeric: tabular-nums; }
.cb-avg .num { background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cb-eq { display: inline-flex; align-items: center; gap: 8px; color: var(--dim); font-size: 13px; }
.cb-best { color: var(--mute); font-size: 13.5px; display: grid; justify-items: center; gap: 6px; }
.cb-best > span:first-child { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.cb-best .gr, .cb-eq .gr { min-width: 34px; height: 24px; font-size: 12px; border-radius: 7px; }
@media (max-width: 1100px) { .cb-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cb-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.cb-rubrics { display: grid; gap: 12px; }
.cb-rub .qa-a { max-width: none; }
.cb-grading { list-style: none; display: grid; gap: 12px; margin-top: 4px; }
.cb-grading li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 14px; align-items: start; }
.cb-grading .gr { min-width: 40px; height: 28px; font-size: 13px; }
.cb-grading p { color: var(--mute); }
.cb-notes { margin-top: clamp(16px, 2vw, 22px); }
.cb-notes .card { display: grid; gap: 12px; align-content: start; }

/* lab report card */
.cb-crits { display: grid; gap: clamp(12px, 1.6vw, 18px); }
.cb-crit { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: clamp(18px, 2.4vw, 32px); padding: clamp(20px, 2.4vw, 30px); border: 1px solid var(--line); border-radius: var(--r); background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .008)); }
.cc-g { display: grid; justify-items: center; align-content: center; gap: 12px; text-align: center; padding-right: clamp(10px, 2vw, 24px); border-right: 1px solid var(--line); }
.cc-rub { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ion); text-decoration: none; }
.cc-rub:hover { text-decoration: underline; text-underline-offset: 4px; }
.cc-why { display: grid; gap: 10px; align-content: start; }
.cc-why .cc-sk { margin-top: 8px; }
.cc-why .src-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 10px; }
.cc-band { color: var(--dim); font-size: 14.5px; line-height: 1.6; border-top: 1px solid var(--line); padding-top: 10px; }
.cc-band strong { color: var(--mute); }
@media (max-width: 1000px) { .cb-crit { grid-template-columns: 170px minmax(0, 1fr); } }
@media (max-width: 640px) { .cb-crit { grid-template-columns: minmax(0, 1fr); } .cc-g { border-right: 0; padding-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 16px; } }
.cb-glance .card { display: grid; gap: 12px; align-content: start; }
.cb-models { display: grid; justify-items: center; gap: 12px; margin-bottom: clamp(18px, 2vw, 24px); }
.cb-models a.chip { color: var(--ice); text-decoration: none; font-size: 13px; }
.cb-models a.chip:hover { border-color: var(--ion); }
.ez-models a { color: var(--ice); text-decoration: none; }
.ez-models a:hover { text-decoration: underline; text-underline-offset: 4px; }
.cb-pol { list-style: none; display: grid; gap: 14px; }
.cb-pol li { display: grid; gap: 6px; }
.cb-pol a { color: var(--ice); text-decoration: none; }
.cb-pol small { color: var(--dim); font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .06em; }
.cb-empty { display: grid; gap: 14px; justify-items: center; text-align: center; padding: clamp(24px, 3vw, 36px); }
.cb-more { text-align: center; margin-top: 18px; }
.cb-rlist { list-style: none; columns: 2 340px; column-gap: clamp(20px, 3vw, 40px); }
.cb-rlist li { break-inside: avoid; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cb-rlist a { color: var(--ice); text-decoration: none; }
.cb-rlist a:hover { text-decoration: underline; text-underline-offset: 4px; }
.cb-rlist .cb-jn { margin-left: auto; color: var(--dim); font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.cb-j { padding: clamp(18px, 2vw, 24px); border: 1px solid var(--line); border-radius: var(--r); background: rgba(255, 255, 255, .02); display: grid; gap: 12px; align-content: start; }
.cb-j h4 { font-size: 17px; }
.cb-j h4 a { color: var(--ice); text-decoration: none; }
.cb-j h4 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.cb-j .ms-mini li { grid-template-columns: auto minmax(0, 1fr); align-items: center; }
.cite-grid .pn { grid-template-columns: minmax(0, 1fr); align-content: start; }
.cite-grid .pn .nx { text-align: left; justify-items: start; }

/* ---------- the encyclopedia ---------- */
.ez-flt { display: grid; gap: 14px; justify-items: center; margin-bottom: 18px; }
.ez-flt .f-q { display: grid; gap: 8px; width: min(640px, 100%); font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.ez-flt input { width: 100%; min-height: 48px; padding: 10px 16px; border-radius: 12px; border: 1px solid var(--ctl-line); background: var(--ctl); color: var(--ice); font: 500 16px/1.2 var(--f-body); }
.ez-flt input:focus { outline: 2px solid var(--ion); outline-offset: 2px; }
.ez-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.ez-tabs .ftab { min-height: 38px; padding: 6px 14px; font-size: 14px; }
.ez-az { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0 auto 14px; max-width: 920px; }
.ez-az a, .ez-az span { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; font-family: var(--f-display); font-size: 13px; text-decoration: none; }
.ez-az a { color: var(--ice); border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); }
.ez-az a:hover, .ez-az a:focus-visible { border-color: var(--ion); color: #fff; }
.ez-az a.off { opacity: .32; pointer-events: none; }
.ez-az span { color: var(--dim); opacity: .35; }
.ez-index { display: grid; gap: clamp(14px, 1.8vw, 20px); margin-top: 8px; }
.ez-group { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: clamp(14px, 2vw, 24px); padding: clamp(16px, 2vw, 22px); border: 1px solid var(--line); border-radius: var(--r); background: rgba(255, 255, 255, .015); scroll-margin-top: calc(var(--hdr) + var(--tick) + 20px); }
.ez-l { font-family: var(--f-display); font-size: clamp(30px, 3.4vw, 44px); line-height: 1; background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent; text-align: center; }
.ez-list { list-style: none; display: grid; }
.ez-item { display: grid; grid-template-columns: minmax(0, 300px) 92px minmax(0, 1fr); gap: 6px 18px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ez-item:first-child { padding-top: 2px; }
.ez-item:last-child { border-bottom: 0; padding-bottom: 2px; }
.ez-n { color: var(--ice); font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.ez-n:hover { text-decoration: underline; text-underline-offset: 4px; }
.ez-d { color: var(--mute); font-size: 14.5px; line-height: 1.55; }
.ez-c { justify-self: start; padding: 3px 9px; border-radius: 999px; border: 1px solid currentColor; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.ez-term { color: #8ec5ff; } .ez-lab { color: #7ff0bb; } .ez-model { color: #ffc98a; } .ez-law { color: #cfd6e0; } .ez-event { color: #ffab6e; } .ez-incident { color: #ff9aa9; }
@media (max-width: 900px) {
  .ez-item { grid-template-columns: minmax(0, 1fr) auto; }
  .ez-d { grid-column: 1 / -1; }
}
@media (max-width: 560px) { .ez-group { grid-template-columns: minmax(0, 1fr); } .ez-l { text-align: left; } }

.ez-art { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.ez-main { display: grid; gap: clamp(26px, 3vw, 36px); }
.ez-sec { display: grid; gap: 12px; }
.ez-sec > .h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(19px, 1.9vw, 24px); letter-spacing: .01em; }
.ez-sec .body-copy { font-size: 17px; line-height: 1.75; }
.ez-sec .ticks li { font-size: 16px; }
.ez-sec .body-copy a, .ez-sec .ticks a, .ez-d a { color: var(--ion); }
.ez-side { display: grid; gap: 16px; align-content: start; }
@media (min-width: 1001px) { .ez-side.stick { position: sticky; top: calc(var(--hdr) + var(--tick) + 24px); } }
.facts-table dd .stb { white-space: normal; text-align: left; }
.ez-side .card { display: grid; gap: 12px; align-content: start; }
.ez-side .jlinks { justify-content: flex-start; }
.ez-facts .facts-table dd a { color: var(--ion); }
.ez-from { display: inline; margin-left: 4px; color: var(--dim); font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; white-space: normal; }
.ez-from a { color: var(--dim); }
.ez-from a:hover { color: var(--ice); }
.ez-chip { align-items: center; }
.ez-chip span { font-family: var(--f-body); font-size: 13.5px; letter-spacing: 0; color: var(--ice); text-transform: none; }
.ez-chip b { font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.ez-chip:hover { border-color: var(--ion); }
.ez-grades { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 4px; }
.ez-grades li { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 12px 6px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .02); }
.ez-grades .k { font-size: 10px; letter-spacing: .08em; line-height: 1.35; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: anywhere; }
.ez-laws li p { grid-column: 1 / -1; margin-top: 4px; }
.ez-laws a { color: var(--ice); text-decoration: none; }
.ez-laws a:hover { text-decoration: underline; text-underline-offset: 4px; }
.ez-cards.ez-one { display: grid; grid-template-columns: minmax(0, 1fr); }
.ez-cards .body-copy { font-size: 15px; }
.ez-main .faq { display: grid; gap: 10px; }
@media (max-width: 1000px) { .ez-art { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .ez-grades { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; } .ez-grades li { padding: 10px 2px; } .ez-grades .gr { min-width: 36px; height: 26px; font-size: 12px; padding: 0 5px; } }
@media (max-width: 380px) { .ez-grades .k { font-size: 9px; letter-spacing: .02em; } }

/* home spotlight: six cards in three columns */
.grid-3.spot.six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grid-3.spot.six { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid-3.spot.six { grid-template-columns: minmax(0, 1fr); } }

/* ---------- language menu (header on desktop, inside the phone menu) ---------- */
.lang { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--ctl-line); background: var(--ctl); color: var(--ice); font-family: var(--f-mono); font-size: 12px; font-weight: 600; letter-spacing: .1em;
  transition: border-color .2s, background .2s;
}
.lang-btn:hover, .lang.open .lang-btn { border-color: var(--ion); background: var(--ctl-hi); }
.lang-btn img, .lang-menu img { width: 22px; height: 16px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(255, 255, 255, .18); flex: none; }
.lang-btn .ng-chev { width: 12px; height: 12px; transition: transform .25s; }
.lang.open .lang-btn .ng-chev { transform: rotate(180deg); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 80; min-width: 230px; padding: 8px; display: none;
  border: 1px solid var(--line-2); border-radius: 14px; background: rgba(10, 11, 14, .97); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 24px 60px -18px rgba(0, 0, 0, .8);
}
.lang.open .lang-menu { display: grid; gap: 2px; }
.lang-menu a { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--mute); text-decoration: none; font-size: 15px; }
.lang-menu a:hover, .lang-menu a:focus-visible { background: rgba(79, 163, 255, .1); color: var(--ice); outline: none; }
.lang-menu a[aria-current] { color: var(--ice); background: rgba(255, 255, 255, .05); }
.lang-menu a small { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; color: var(--dim); }
.lang-m { display: none; }
@media (max-width: 1139.98px) {
  .hdr-cta .lang { display: none; }
  .lang-m { display: block; padding: 18px 0 6px; border-top: 1px solid var(--line); margin-top: 6px; }
  .lang-m .ng-h { display: block; }
  .lang-m .lang-list { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .lang-m .lang-list a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); color: var(--mute); text-decoration: none; font-family: var(--f-body); font-size: 14.5px; font-weight: 600; letter-spacing: 0; text-transform: none; }
  .lang-m .lang-list a::after { display: none; }
  .lang-m .lang-list li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .lang-m .lang-list a[aria-current] { border-color: var(--ion); color: var(--ice); background: rgba(79, 163, 255, .08); }
  .lang-m .lang-list img { width: 22px; height: 16px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(255, 255, 255, .18); flex: none; }
}
@media (max-width: 520px) { .lang-m .lang-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 521px) and (max-width: 1139.98px) { .lang-m .lang-list li:last-child:nth-child(odd) { grid-column: auto; } }

/* glossary terms link to their encyclopedia entries */
.gloss dt a.gl-link { color: inherit; text-decoration: none; }
.gloss dt a.gl-link:hover, .gloss dt a.gl-link:focus-visible { text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--ion); }

/* header fit for longer menu words (rsi-nav.js adds .tight, then .tighter, only when the row would overflow) */
@media (min-width: 1140px) {
  .hdr-in.tight .ng-btn, .hdr-in.tight .nav.nav-groups > a.ng-link { padding-inline: 6px; letter-spacing: .06em; }
  .hdr-in.tight .hdr-cta .btn-sm { font-size: 0; gap: 0; padding-inline: 14px; }
  .hdr-in.tight .hdr-cta .btn-sm .live-dot { margin: 0; }
  .hdr-in.tighter .ng-btn, .hdr-in.tighter .nav.nav-groups > a.ng-link { padding-inline: 4px; letter-spacing: .02em; font-size: 11.5px; }
  .hdr-in.tighter .lang-btn span { display: none; }
  .hdr-in.tighter .hdr-cta { gap: 6px; }
}
