/* The share images: fixed-size boards exported as PNG. Light theme only (an image never follows the
   viewer's colour scheme), with the site's own tokens: cool grey ground, white sheet, ink strip,
   ink blue only for Romania, the seven status colours the only warm colour, status carried by form. */

:root {
  --ground: #eef1f5; --sheet: #ffffff; --ink: #121c28; --ink-2: #4f5b6b; --rule: #d6dce4; --edge: #7d8796;
  --strip: #121c28; --strip-ink: #f3f5f8; --strip-ink-2: #aab4c2; --ro: #1d55a6; --ro-wash: #e2ebf8;
  --st-not_due: #dde4ed; --st-due_no_action: #e2ded6; --st-case_closed: #a6cdbf; --st-formal_notice: #f1cd5f;
  --st-reasoned_opinion: #e68f3a; --st-referred: #b44d2a; --st-fines: #8c2828;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--ground); }
body { color: var(--ink); font: 400 22px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-variant-numeric: tabular-nums; }

.board { display: flex; flex-direction: column; overflow: hidden; background: var(--ground); }
.ib-strip { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding: 18px 56px; background: var(--strip); color: var(--strip-ink); font-size: 20px; }
.ib-strip b { font-weight: 650; }
.ib-strip a { color: var(--strip-ink); font-weight: 650; text-decoration: none; letter-spacing: 0.01em; }
.ib-body { flex: 1; display: flex; flex-direction: column; min-height: 0; padding: 40px 56px 0; }
.ib-foot { margin: 0; padding: 16px 56px 26px; border-top: 1px solid var(--rule); font-size: 17px; line-height: 1.4; color: var(--ink-2); }

h1 { margin: 0; font-size: 50px; line-height: 1.08; font-weight: 720; letter-spacing: -0.015em; text-wrap: balance; }
.lead { margin: 14px 0 0; font-size: 25px; line-height: 1.4; max-width: 46ch; }
.lead b { font-weight: 720; }
.note { margin: 0; font-size: 19px; color: var(--ink-2); }
.sheet { background: var(--sheet); border-radius: 6px; padding: 26px 30px; }

/* Status: hue plus form. Filled = an open case, pale = none, dashed = deadline still ahead. */
.st-not_due { background: var(--st-not_due); }
.st-due_no_action { background: var(--st-due_no_action); }
.st-case_closed { background: var(--st-case_closed); }
.st-formal_notice { background: var(--st-formal_notice); }
.st-reasoned_opinion { background: var(--st-reasoned_opinion); }
.st-referred { background: var(--st-referred); color: #fff; }
.st-fines { background: var(--st-fines); color: #fff; }
.sw { display: inline-block; width: 22px; height: 22px; border-radius: 3px; flex: none; box-shadow: inset 0 0 0 1px rgb(18 28 40 / 0.14); }
.sw.st-not_due, .sq.st-not_due { background: var(--st-not_due); box-shadow: none; border: 2px dashed var(--edge); }
.pill { display: inline-block; border-radius: 3px; padding: 2px 12px; font-weight: 650; white-space: nowrap; box-shadow: inset 0 0 0 1px rgb(18 28 40 / 0.14); }

/* Zones and band (I1) */
.zones { display: flex; gap: 4px; margin-top: 34px; }
.zone { min-width: 0; border-top: 3px solid var(--edge); padding-top: 8px; font-size: 20px; line-height: 1.25; color: var(--ink-2); }
.zone b { display: block; font-size: 54px; line-height: 1.05; font-weight: 720; color: var(--ink); letter-spacing: -0.015em; }
.zone.is-open { border-top-color: var(--ink); }
.band { display: flex; gap: 4px; height: 44px; margin-top: 10px; }
.band i { display: block; min-width: 10px; border-radius: 3px; box-shadow: inset 0 0 0 1px rgb(18 28 40 / 0.14); }
.band i.st-not_due { box-shadow: none; border: 2px dashed var(--edge); }

/* Squares, one per directive (I1, I4) */
.squares { display: grid; gap: 5px; }
.sq { display: block; aspect-ratio: 1; border-radius: 3px; box-shadow: inset 0 0 0 1px rgb(18 28 40 / 0.14); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; list-style: none; font-size: 19px; }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend b { font-weight: 700; }

/* The cartogram (I2): Romania ringed in blue, never ranked */
.tilemap { --t: 50px; --g: 5px; display: grid; grid-template-columns: repeat(7, var(--t)); grid-auto-rows: var(--t); gap: var(--g); }
.tile { display: flex; align-items: center; justify-content: center; border-radius: 3px; font-size: 16px; font-weight: 700; letter-spacing: 0.02em; color: var(--ink); box-shadow: inset 0 0 0 1px rgb(18 28 40 / 0.14); }
.tile.st-not_due { box-shadow: none; border: 2px dashed var(--edge); }
.tile.st-referred, .tile.st-fines { color: #fff; }
.tile.is-ro { box-shadow: inset 0 0 0 1px rgb(18 28 40 / 0.14), 0 0 0 3px var(--ground), 0 0 0 6px var(--ro); }
.tile.st-not_due.is-ro { box-shadow: 0 0 0 3px var(--ground), 0 0 0 6px var(--ro); }

/* The ladder (I3) */
.steps { margin: 30px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.step { display: grid; grid-template-columns: 54px minmax(0, 1fr) 150px; gap: 0 22px; align-items: start; background: var(--sheet); border-radius: 6px; padding: 15px 24px; }
.step .n { display: flex; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 3px; font-size: 26px; font-weight: 720; box-shadow: inset 0 0 0 1px rgb(18 28 40 / 0.14); }
.step .n.st-not_due { box-shadow: none; border: 2px dashed var(--edge); }
.step h2 { margin: 0; font-size: 25px; line-height: 1.2; font-weight: 700; }
.step p { margin: 4px 0 0; font-size: 18px; line-height: 1.38; color: var(--ink-2); }
.step .ro { text-align: right; font-size: 17px; line-height: 1.25; color: var(--ink-2); }
.step .ro b { display: block; font-size: 38px; line-height: 1.05; font-weight: 720; color: var(--ro); }
.step .ro b.zero { color: var(--ink-2); }
.steps .gap { margin: 6px 0 0 24px; font-size: 18px; font-weight: 650; color: var(--ink-2); }

/* Buckets of squares (I4) */
.buckets { margin-top: 34px; display: grid; gap: 26px; }
.bucket { display: grid; grid-template-columns: 300px 64px minmax(0, 1fr); gap: 0 18px; align-items: start; }
.bucket .lbl { font-size: 20px; line-height: 1.25; font-weight: 650; }
.bucket .lbl small { display: block; font-size: 17px; font-weight: 400; color: var(--ink-2); }
.bucket .cnt { font-size: 34px; line-height: 1; font-weight: 720; text-align: right; }
.bucket .squares { grid-template-columns: repeat(15, 33px); gap: 5px; }
.bucket.is-deadline { border-top: 3px solid var(--ink); padding-top: 6px; }

/* Case lines (I5) */
.figs { display: flex; gap: 44px; margin-top: 26px; }
.figs div { font-size: 19px; line-height: 1.3; color: var(--ink-2); max-width: 15em; }
.figs b { display: block; font-size: 48px; line-height: 1.05; font-weight: 720; color: var(--ink); letter-spacing: -0.015em; }
.lines { position: relative; flex: 1; margin-top: 56px; min-height: 0; }
.lines .yr { position: absolute; top: 0; bottom: 30px; border-left: 1px solid var(--rule); }
.lines .yr span { position: absolute; bottom: -30px; left: 0; transform: translateX(-50%); font-size: 17px; color: var(--ink-2); }
.lines .yr span.top { bottom: auto; top: -28px; }
.lines .run { position: absolute; left: 0; right: 0; top: 0; bottom: 30px; }
.lines .run i { position: absolute; display: block; border-radius: 2px; min-width: 3px; }
.lines .now { position: absolute; top: 0; bottom: 30px; border-left: 2px solid var(--ink); }
.lines .now span { position: absolute; top: -52px; left: 0; transform: translateX(-50%); font-size: 16px; font-weight: 650; }

/* Infographic 2: the 27 grouped by stage, one row per stage present, Romania first in its group. */
.card-grid { display: grid; grid-template-columns: 370px minmax(0, 1fr); gap: 0 44px; align-items: start; margin-top: -6px; }
.groups { list-style: none; margin: 0; padding: 0; }
.groups li { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 0 14px; align-items: center; padding: 5px 0; border-top: 1px solid var(--rule); }
.groups li:first-child { border-top: 0; padding-top: 0; }
.groups p { display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: baseline; margin: 0; font-size: 17px; line-height: 1.25; color: var(--ink-2); }
.groups p b { color: var(--ink); font-size: 22px; font-weight: 720; }
.groups li.has-ro p { color: var(--ink); }
.groups li > div { display: flex; flex-wrap: wrap; gap: 6px; padding: 3px 0; }
.groups .tile { width: 36px; height: 36px; font-size: 13px; }
/* Romania leads its group: a ring 4px out, inside the 6px gap, so the next tile and row leave it whole. */
.groups .tile.is-ro { box-shadow: inset 0 0 0 1px rgb(18 28 40 / 0.14), 0 0 0 2px var(--ground), 0 0 0 4px var(--ro); }
.groups .tile.st-not_due.is-ro { box-shadow: 0 0 0 2px var(--ground), 0 0 0 4px var(--ro); }
