/* The Nations Race, Air Watch, The Tax Break Ledger, The Footprint Ledger and The Reactor Race (siscto.si v1.13.0).
   Built on the Nov 27 desk styles (grid.css, orbit2.css); only what those do not already draw is here. Everything centered. */

/* ---------- a ranked race: one clickable row per entry, built against promised ---------- */
.l2-race { list-style: none; margin: 0; padding: clamp(12px, 2vw, 22px); border: 1px solid var(--line); border-radius: var(--r); background: rgba(255, 255, 255, .02); display: grid; gap: 4px; }
.l2-race > li > a { display: grid; grid-template-columns: 44px minmax(0, 1.2fr) minmax(0, 2fr) minmax(96px, auto); gap: 6px clamp(10px, 1.6vw, 20px); align-items: center; padding: 12px 10px; border-radius: 12px; text-decoration: none; color: inherit; transition: background .2s; }
.l2-race > li > a:hover, .l2-race > li > a:focus-visible { background: rgba(79, 163, 255, .08); }
.l2-rank { font-family: var(--f-display); font-size: 18px; color: var(--ice); text-align: center; font-variant-numeric: tabular-nums; }
.l2-who { display: grid; gap: 2px; text-align: center; min-width: 0; }
.l2-who b { color: var(--ice); font-size: 15px; font-weight: 700; overflow-wrap: anywhere; }
.l2-who small { color: var(--mute); font-size: 12.5px; overflow-wrap: anywhere; }
.l2-meter { display: grid; gap: 6px; min-width: 0; }
.l2-track { position: relative; height: 14px; border-radius: 7px; background: rgba(214, 222, 235, .07); overflow: hidden; }
.l2-track i { position: absolute; inset: 0 auto 0 0; display: block; border-radius: 7px; background: linear-gradient(90deg, rgba(79, 163, 255, .55), var(--ion)); }
.l2-track.met i { background: linear-gradient(90deg, rgba(95, 227, 166, .55), var(--ok)); }
.l2-track.none i { width: 0 !important; }
.l2-track.over::after { content: ""; position: absolute; right: 3px; top: 3px; bottom: 3px; width: 8px; border-radius: 4px; background: #fff; opacity: .85; }
.l2-meter small { color: var(--mute); font-size: 12.5px; text-align: center; overflow-wrap: anywhere; }
.l2-pct { font-family: var(--f-display); font-size: 14px; color: var(--ice); text-align: center; white-space: nowrap; display: grid; gap: 6px; justify-items: center; }
.gq-st-met { color: var(--ok); border-color: rgba(95, 227, 166, .45); }
.gq-st-partly { color: var(--ion); border-color: rgba(79, 163, 255, .45); }
.gq-st-announced { color: var(--mute); }
.gq-st-overdue { color: var(--bad); border-color: rgba(255, 122, 143, .45); }
@media (max-width: 760px) {
  .l2-race > li > a { grid-template-columns: 36px minmax(0, 1fr); grid-template-areas: "r w" "m m" "p p"; text-align: center; }
  .l2-rank { grid-area: r; font-size: 16px; }
  .l2-who { grid-area: w; text-align: left; }
  .l2-meter { grid-area: m; }
  .l2-pct { grid-area: p; grid-auto-flow: column; justify-content: center; align-items: center; gap: 10px; }
}

/* ---------- a two figure card: promised and built side by side, centered ---------- */
.l2-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 2vw, 20px); }
.l2-pair > .card { text-align: center; align-items: center; justify-content: center; padding: clamp(18px, 2.6vw, 28px); }
.l2-pair .gq-big { justify-content: center; }
.l2-pair .body-copy { max-width: 46ch; margin-inline: auto; }
@media (max-width: 700px) { .l2-pair { grid-template-columns: minmax(0, 1fr); } }

/* ---------- a summary in the country's own language ---------- */
.l2-local { text-align: center; padding: clamp(18px, 2.6vw, 30px); display: grid; gap: 10px; justify-items: center; }
.l2-local .body-copy { max-width: 70ch; font-size: clamp(16px, 1.6vw, 18px); line-height: 1.75; }
.l2-local[dir="rtl"] .body-copy { line-height: 1.9; }

/* ---------- the Disclosure Score: ten cells, each one thing published ---------- */
.l2-scores { list-style: none; margin: 0; padding: clamp(12px, 2vw, 22px); border: 1px solid var(--line); border-radius: var(--r); background: rgba(255, 255, 255, .02); display: grid; gap: 4px; }
.l2-scores > li > a { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) 92px; gap: 8px clamp(10px, 1.6vw, 20px); align-items: center; padding: 12px 10px; border-radius: 12px; text-decoration: none; color: inherit; }
.l2-scores > li > a:hover, .l2-scores > li > a:focus-visible { background: rgba(79, 163, 255, .08); }
.l2-cells { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; }
.l2-cells i { height: 14px; border-radius: 4px; background: rgba(214, 222, 235, .07); border: 1px solid var(--line); }
.l2-cells i.on { background: linear-gradient(180deg, var(--ion), rgba(79, 163, 255, .55)); border-color: rgba(79, 163, 255, .6); }
.l2-score-v { font-family: var(--f-display); font-size: 16px; color: var(--ice); text-align: center; white-space: nowrap; }
@media (max-width: 700px) {
  .l2-scores > li > a { grid-template-columns: minmax(0, 1fr) 72px; grid-template-areas: "w v" "c c"; }
  .l2-scores .l2-who { grid-area: w; text-align: left; }
  .l2-scores .l2-cells { grid-area: c; }
  .l2-scores .l2-score-v { grid-area: v; }
}
.l2-checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 8px; }
.l2-checks li { display: grid; gap: 4px; justify-items: center; text-align: center; padding: 12px 10px; border: 1px solid var(--line); border-radius: 12px; font-size: 13.5px; color: var(--mute); }
.l2-checks li b { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.l2-checks li.on b { color: var(--ok); }
.l2-checks li.off b { color: var(--dim); }

/* ---------- a company or deal block ---------- */
.l2-block { display: grid; gap: clamp(14px, 2vw, 22px); text-align: center; justify-items: center; }
.l2-block + .l2-block { margin-top: clamp(28px, 4vw, 48px); padding-top: clamp(28px, 4vw, 48px); border-top: 1px solid var(--line); }
.l2-block > .h3 { font-size: clamp(20px, 2.2vw, 26px); }
.l2-block > .body-copy { max-width: 76ch; }
.l2-block > .gq-table, .l2-block > .gq-tiles, .l2-block > .l2-checks, .l2-block > .gq-facts, .l2-block > .l2-pair, .l2-block > .l2-events { width: 100%; }
.l2-block .cta-row { justify-content: center; }
.l2-anchor { scroll-margin-top: calc(var(--hdr) + var(--tick) + 16px); }

/* ---------- docket events, oldest first ---------- */
.l2-events { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.l2-events li { display: grid; gap: 4px; justify-items: center; text-align: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .02); }
.l2-events time { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; color: var(--ion); }
.l2-events span { color: var(--nebula); font-size: 14.5px; }

/* ---------- live readings: one card per site, filled from the public JSON ---------- */
.l2-readings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 16px); }
.l2-readings > a.card { text-align: center; align-items: center; gap: 10px; padding: 18px; text-decoration: none; color: inherit; }
.l2-readings > a.card .h3 { color: var(--ice); }
.l2-readings > a.card:last-child:nth-child(3n + 1) { grid-column: 1 / -1; }
.l2-readings > a.card:last-child:nth-child(3n + 2) { grid-column: span 2; }
@media (max-width: 900px) {
  .l2-readings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .l2-readings > a.card:last-child:nth-child(3n + 1), .l2-readings > a.card:last-child:nth-child(3n + 2) { grid-column: auto; }
  .l2-readings > a.card:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 560px) { .l2-readings { grid-template-columns: minmax(0, 1fr); } .l2-readings > a.card:last-child:nth-child(odd) { grid-column: auto; } }
.l2-readings dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; width: 100%; }
.l2-readings dl div { display: grid; gap: 2px; justify-items: center; }
.l2-readings dt { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.l2-readings dd { margin: 0; font-family: var(--f-display); font-size: 15px; color: var(--ice); white-space: nowrap; }
.l2-readings dd.jump { color: var(--flare); }
.l2-state { text-align: center; padding: clamp(18px, 2.6vw, 28px); display: grid; gap: 8px; justify-items: center; }
.l2-state .body-copy { max-width: 70ch; }
.l2-state[hidden], .l2-readings[hidden] { display: none; }

/* ---------- wide tables keep codes on one line ---------- */
.l2-mono { font-family: var(--f-mono); font-size: 12.5px; white-space: nowrap; }
.gq-table td.l2-n, .gq-table th.l2-n { text-align: center; font-variant-numeric: tabular-nums; white-space: nowrap; }
.l2-center { text-align: center; }
.l2-center .gq-note { margin-inline: auto; }
@media (prefers-reduced-motion: reduce) { .l2-race > li > a, .l2-scores > li > a { transition: none; } }
.o2-bars + .gq-table, .gq-table + .o2-bars, .o2-bars + .grid { margin-top: clamp(14px, 2vw, 22px); }
