/* Consolidated sanctions page */
body.sanctions { overflow: auto; height: auto; min-height: 100vh; display: block; background: var(--surface-2, var(--surface)); }
body.sanctions .topbar { position: sticky; top: 0; z-index: 5; }
.sanctions {
  --sx-seq: #2a78d6;              /* the one hue: sanctions, in this year */
  --sx-prev: #86b6ef;             /* the same hue, lighter: the year before */
  --sx-on-seq: #ffffff;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sanctions { --sx-seq: #3987e5; --sx-prev: #184f95; --sx-on-seq: #ffffff; } }
:root[data-theme="dark"] .sanctions { --sx-seq: #3987e5; --sx-prev: #184f95; --sx-on-seq: #ffffff; }

#sx { max-width: 1120px; margin: 0 auto; padding: 20px 20px 80px; font-size: 14px; line-height: 1.5; color: var(--ink); }
.sx-loading { color: var(--ink-3); }
.sx-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 16px; }
.sx-hero h1 { font-size: 22px; margin: 0 0 4px; letter-spacing: -.01em; }
.sx-lede { margin: 0; color: var(--ink-2); max-width: 70ch; }
.sx-years button { min-width: 64px; }

.sx-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-bottom: 14px; }
.sx-tile { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; cursor: default; }
.sx-tile-l { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
.sx-tile-v { font-size: 26px; font-weight: 700; letter-spacing: -.02em; margin: 2px 0; font-variant-numeric: tabular-nums; }
.sx-tile-s { font-size: 12px; color: var(--ink-3); }

.sx-card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px 16px; margin-bottom: 14px; }
.sx-card h2 { font-size: 16px; margin: 0 0 4px; }
.sx-card h3 { font-size: 12px; font-weight: 600; color: var(--ink-2); margin: 10px 0 6px; }
.sx-note { font-size: 12.5px; color: var(--ink-3); margin: 0 0 10px; max-width: 95ch; }
.sx-meta { font-size: 12px; color: var(--ink-3); }
.sx-legend { display: flex; gap: 14px; font-size: 12px; color: var(--ink-2); margin: 2px 0 6px; }
.sx-legend .sw { display: inline-block; width: 12px; height: 8px; border-radius: 2px; margin-right: 5px; vertical-align: middle; }
.sw.cur { background: var(--sx-seq); } .sw.prev { background: var(--sx-prev); }
.sx-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 760px) { .sx-pair { grid-template-columns: 1fr; } }

.sx-bars { display: grid; gap: 4px; }
.sx-bar-row { display: grid; grid-template-columns: 160px 1fr 82px; align-items: center; gap: 8px; padding: 2px 0; border-radius: 4px; }
.sx-bar-row:hover { background: var(--accent-soft); }
.sx-bar-l { font-size: 12.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx-bar-track { position: relative; height: 16px; display: grid; grid-template-rows: 10px 4px; row-gap: 2px; }
.sx-bar { display: block; height: 100%; min-width: 0; border-radius: 0 4px 4px 0; }
.sx-bar.cur { background: var(--sx-seq); }
.sx-bar.prev { background: var(--sx-prev); border-radius: 0 2px 2px 0; }
.sx-bar-v { font-size: 12px; text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); }
.sx-bar-v.zero { color: var(--ink-3); }

.sx-table-wrap { overflow-x: auto; }
.sx-table { border-collapse: collapse; width: 100%; font-size: 12.5px; }
.sx-table th, .sx-table td { padding: 5px 8px; border-bottom: 1px solid var(--line-2); text-align: left; white-space: nowrap; }
/* a table fits its card, never scrolled sideways: a long name, provision or list wraps onto a second line, while
   figures, dates and the authority tags stay on one */
.sx-table td:not(.num):not(.ee-date) { white-space: normal; }
.sx-table .ee-reg, .sx-table .ee-st { white-space: nowrap; }
@media (max-width: 1200px) { .sx-table td.ee-date { white-space: normal; min-width: 76px; } }
.sx-table thead th { font-size: 11px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; position: sticky; top: 0; background: var(--surface); }
.sx-table th.sortable { cursor: pointer; } .sx-table th.sortable:hover, .sx-table th.on { color: var(--accent); }
.sx-table th.on::after { content: ' ↓'; }
.sx-table tbody th { font-weight: 500; }
.sx-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.sx-table td.strong { font-weight: 700; }
.sx-heat td.num { min-width: 44px; }
.sx-eea { font-size: 9.5px; font-weight: 700; color: var(--ink-3); border: 1px solid var(--line); border-radius: 3px; padding: 0 3px; margin-left: 5px; }
.sx-filters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.sx-q { padding: 5px 9px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); min-width: 240px; font: inherit; font-size: 13px; }
.sx-sources { margin: 6px 0 10px; padding-left: 20px; }
.sx-sources li { margin: 4px 0; }
.sx-file { font-size: 12px; margin-left: 4px; }

.sx-tip { position: fixed; z-index: 50; max-width: 340px; background: var(--ink); color: var(--surface); font-size: 12px; line-height: 1.45; padding: 7px 9px; border-radius: 6px; pointer-events: none; box-shadow: 0 4px 16px rgba(0,0,0,.18); }
.sx-tip .sx-tip-h { font-weight: 700; margin-bottom: 2px; }

/* ---- dashboard: filters | totals over the map */
.sanctions { --sx-lo: #cde2fb; --sx-hi: #0d366b; --sx-zero: #e9e6df; --sx-land: #f3f1ec; --sx-border: #ffffff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sanctions { --sx-lo: #1b3557; --sx-hi: #9ec5f4; --sx-zero: #2b2f36; --sx-land: #22262c; --sx-border: #15171b; } }
:root[data-theme="dark"] .sanctions { --sx-lo: #1b3557; --sx-hi: #9ec5f4; --sx-zero: #2b2f36; --sx-land: #22262c; --sx-border: #15171b; }
.sx-dash { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 14px; margin-bottom: 14px; align-items: start; }
@media (max-width: 820px) { .sx-dash { grid-template-columns: 1fr; } }
.sx-filt { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; position: sticky; top: 58px; max-height: calc(100vh - 72px); overflow: auto; }
.sx-fg { margin-bottom: 14px; }
.sx-fh { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; display: flex; justify-content: space-between; }
.sx-fa { text-transform: none; letter-spacing: 0; font-weight: 400; }
.sx-fa .linkish { font-size: 11.5px; }
.sx-yearseg { display: flex; } .sx-yearseg button { flex: 1; }
.sx-radio, .sx-check { display: flex; align-items: baseline; gap: 6px; font-size: 12.5px; padding: 3px 4px; border-radius: 5px; cursor: pointer; color: var(--ink-2); }
.sx-radio:hover, .sx-check:hover { background: var(--accent-soft); }
.sx-radio.on { color: var(--ink); font-weight: 600; background: var(--accent-soft); }
.sx-check.empty { color: var(--ink-3); }
.sx-unit { margin-left: auto; font-size: 10px; color: var(--ink-3); border: 1px solid var(--line); border-radius: 3px; padding: 0 3px; font-weight: 400; }
.sx-dash-r { display: grid; gap: 14px; min-width: 0; }
.sx-tot { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; }
.sx-tot.sel { border-color: var(--sx-seq); box-shadow: 0 0 0 1px var(--sx-seq) inset; }
.sx-tot-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2); margin-bottom: 8px; }
.sx-tot-row { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.sx-big-v { font-size: 26px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.sx-big-l { font-size: 11.5px; color: var(--ink-3); }
.sx-split { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.sx-split-i { font-size: 12px; padding: 2px 8px; border: 1px solid var(--line); border-radius: 99px; color: var(--ink-2); }
.sx-map { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.sx-svg { display: block; width: 100%; height: auto; max-height: 72vh; }
.sx-svg path.ctx { fill: var(--sx-land); stroke: var(--line); stroke-width: .6; }
.sx-svg .ms { stroke: var(--sx-border); stroke-width: .9; cursor: pointer; transition: opacity .12s; }
.sx-svg .ms:hover { stroke: var(--ink); stroke-width: 1.4; }
.sx-svg .ms.sel { stroke: var(--ink); stroke-width: 2.2; }
.sx-svg .ms:focus { outline: none; stroke: var(--accent); stroke-width: 2; }
.sx-svg circle.dot { stroke: var(--ink-3); stroke-width: 1; }
.sx-svg text.val { font: 600 13px var(--sans, Inter, sans-serif); fill: var(--ink); text-anchor: middle; pointer-events: none; paint-order: stroke; stroke: var(--surface); stroke-width: 3px; }
.sx-svg text.val.on { fill: #fff; stroke: none; }
.sx-maplegend { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 11.5px; color: var(--ink-2); padding: 6px 4px 0; }
.sx-lz i { display: inline-block; width: 12px; height: 10px; background: var(--sx-zero); border-radius: 2px; margin-right: 4px; vertical-align: middle; }
.sx-lg { display: inline-grid; grid-template-columns: auto auto; grid-template-rows: 10px auto; column-gap: 0; min-width: 160px; }
.sx-lg i { grid-column: 1 / 3; height: 10px; border-radius: 2px; background: linear-gradient(90deg, var(--sx-lo), var(--sx-hi)); }
.sx-lg span:last-child { text-align: right; }
.sx-svg .hatch-bg { fill: var(--sx-zero); }
.sx-svg .hatch-ln { stroke: var(--ink-3); stroke-width: 1.4; opacity: .55; }
.sx-lz i { background: repeating-linear-gradient(45deg, var(--sx-zero) 0 3px, color-mix(in srgb, var(--ink-3) 55%, var(--sx-zero)) 3px 4.4px) !important; }
/* labels on the map */
#sx { max-width: 1360px; }
.sx-dash { grid-template-columns: 232px minmax(0, 1fr); }
.sx-svg { max-height: none; }
.sx-svg text.lab { font: 12px var(--sans, Inter, sans-serif); text-anchor: middle; fill: var(--ink); cursor: pointer; paint-order: stroke; stroke: color-mix(in srgb, var(--surface) 75%, transparent); stroke-width: 2.5px; }
.sx-svg text.lab .code { font-size: 9.5px; font-weight: 600; letter-spacing: .04em; fill: var(--ink-2); }
.sx-svg text.lab .v { font-weight: 700; font-size: 12.5px; }
.sx-svg text.lab.on { stroke: none; } .sx-svg text.lab.on .code, .sx-svg text.lab.on .v { fill: #fff; }
.sx-svg polyline.leader { fill: none; stroke: var(--ink-3); stroke-width: .8; opacity: .7; }
.sx-svg polyline.leader.hot { stroke: var(--ink); opacity: 1; stroke-width: 1.3; }
.sx-svg text.call { font: 12.5px var(--sans, Inter, sans-serif); fill: var(--ink-2); cursor: pointer; }
.sx-svg text.call.L { text-anchor: end; }
.sx-svg text.call .v { font-weight: 700; fill: var(--ink); }
.sx-svg text.call:hover .name, .sx-svg text.call.hot .name { fill: var(--accent); }
.sx-svg rect.sw { stroke: var(--line); stroke-width: .6; }
.sx-svg .ms.hot { stroke: var(--ink); stroke-width: 1.4; }
.sx-svg text.lab { font-size: 15px; }
.sx-svg text.lab .code { font-size: 11.5px; }
.sx-svg text.lab .v { font-size: 16.5px; }
.sx-svg text.call { font-size: 16px; }
.sx-svg rect.sw { transform-box: fill-box; }

/* ---- charts below the map: one colour per act (validated categorical palette, fixed order) */
.sanctions { --c1: #2a78d6; --c2: #eb6834; --c3: #1baf7a; --c4: #eda100; --c5: #e87ba4; --c6: #008300; --c7: #4a3aa7; --c-other: #a8a49a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sanctions { --c1: #3987e5; --c2: #d95926; --c3: #199e70; --c4: #c98500; --c5: #d55181; --c6: #008300; --c7: #9085e9; --c-other: #6f6c66; } }
:root[data-theme="dark"] .sanctions { --c1: #3987e5; --c2: #d95926; --c3: #199e70; --c4: #c98500; --c5: #d55181; --c6: #008300; --c7: #9085e9; --c-other: #6f6c66; }
.sx-grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; margin-bottom: 14px; }
.sx-grid2 > .sx-card { margin-bottom: 0; }
@media (max-width: 860px) { .sx-grid2 { grid-template-columns: 1fr; } }
.sx-donut-wrap { display: grid; grid-template-columns: 190px 1fr; gap: 18px; align-items: center; }
@media (max-width: 520px) { .sx-donut-wrap { grid-template-columns: 1fr; } }
.sx-donut { width: 190px; height: 190px; }
.sx-donut .slice { stroke: var(--surface); stroke-width: 2; cursor: default; }
.sx-donut .slice:hover { opacity: .85; }
.sx-donut .dc-v { font: 700 19px var(--sans, Inter, sans-serif); fill: var(--ink); text-anchor: middle; }
.sx-donut .dc-l { font: 10px var(--sans, Inter, sans-serif); fill: var(--ink-3); text-anchor: middle; }
.sx-dleg { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.sx-dleg li { display: grid; grid-template-columns: 12px 1fr auto auto; gap: 8px; align-items: center; font-size: 12.5px; }
.sx-dleg i { width: 10px; height: 10px; border-radius: 2px; }
.sx-beside { margin: 12px 0 0; padding: 10px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: 12.5px; color: var(--ink-2); }
.sx-beside h3 { margin: 0 0 2px; }
.sx-beside p { margin: 0 0 3px; }
.sx-sc { margin: 0; display: grid; gap: 16px 28px; }
.sx-sc.two { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, auto); grid-auto-flow: column; }   /* each side top to bottom, its rows level with the other's */
@media (max-width: 860px) { .sx-sc.two { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; } }
.sx-sc > .sx-note { margin: 0; }
.sx-sc h3:first-child { margin-top: 0; }
.sx-note.sx-after { margin-top: 8px; }
.sx-hls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 4px 0 16px; }
@media (max-width: 700px) { .sx-hls { grid-template-columns: 1fr; } }
.sx-hl { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.sx-hl-v { font-size: 26px; font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; color: var(--ink); }
.sx-hl-l { font-size: 12.5px; color: var(--ink-2); }
.sx-hl-s { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.sx-parts { display: flex; gap: 2px; height: 20px; border-radius: 4px; overflow: hidden; margin: 0 0 10px; }
.sx-parts span { display: block; min-width: 2px; }
.sx-sc .sx-dleg + h3 { margin-top: 18px; }
.sx-dleg .n { color: var(--ink-2); } .sx-dleg .p { color: var(--ink-3); font-variant-numeric: tabular-nums; text-align: right; } .sx-dleg .v { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; min-width: 52px; }
.sx-legend .sw { width: 10px; height: 10px; }
.sx-stack { display: grid; gap: 3px; margin-top: 6px; }
.sx-stack-row { display: grid; grid-template-columns: 150px 1fr 80px; gap: 8px; align-items: center; padding: 2px 4px; border-radius: 4px; cursor: pointer; }
.sx-stack-row:hover { background: var(--accent-soft); }
.sx-stack-row.sel { background: var(--accent-soft); outline: 1px solid var(--sx-seq); }
.sx-stack-track { display: flex; height: 14px; gap: 2px; }
.sx-stack-track .stk { display: block; flex: 0 1 auto; height: 100%; min-width: 7px; }   /* small amounts still show as a short bar */
.sx-stack-track .stk:last-child { border-radius: 0 4px 4px 0; }
.sx-bar-track.one { display: block; height: 14px; }
.sx-bar-track.one .sx-bar { height: 14px; }
.sx-prov .sx-bar-row { grid-template-columns: 210px 1fr 110px; }
.sx-prov .sx-bar-l a { color: var(--accent-2); text-decoration: none; }
.sx-prov .sx-bar-l a:hover { text-decoration: underline; }
.sx-ms { color: var(--ink-3); font-weight: 400; }
.sx-more { margin-top: 12px; border-top: 1px solid var(--line-2); padding-top: 8px; }
.sx-more > summary { cursor: pointer; font-size: 12.5px; color: var(--accent-2); }
.sx-embed { margin-top: 8px; }
.sx-svg rect.inset { fill: none; stroke: var(--line); stroke-dasharray: 4 3; }
.sx-card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.sx-card-h h2 { margin: 0; }
.sx-yearmini button { padding: 2px 10px; font-size: 12px; }

/* ---- layout: the filters stay on the left all the way down */
.sx-layout { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 14px; align-items: start; }
.sx-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; min-width: 0; }   /* (one column, never wider than the page: a long bank name in a bar label had widened it past the window) */
.sx-main > .sx-card, .sx-main > .sx-grid2 { margin-bottom: 0; }
.sx-layout > .sx-filt { position: sticky; top: 58px; max-height: calc(100vh - 70px); overflow: auto; }
@media (max-width: 820px) { .sx-layout { grid-template-columns: 1fr; } .sx-layout > .sx-filt { position: static; max-height: none; } }
.sx-fg { margin-bottom: 12px; }
.sx-radio, .sx-check { padding: 2px 4px; font-size: 12px; }
/* the Member States, as a grid of codes */
.sx-msgrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; }
.sx-ms-b { font: 600 11px var(--sans, Inter, sans-serif); padding: 3px 0; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--ink-3); cursor: pointer; }
.sx-ms-b.on { background: var(--accent-soft); color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.sx-ms-b.eea { font-style: italic; }
.sx-ms-b:hover { border-color: var(--accent); }
/* the map: States left out, and the card a click opens */
.sanctions { --sx-off: #f1efea; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sanctions { --sx-off: #24282e; } }
:root[data-theme="dark"] .sanctions { --sx-off: #24282e; }
.sx-svg .ms.off { cursor: default; opacity: .7; }
.sx-map { position: relative; }
.sx-mapcard { position: absolute; z-index: 4; width: 230px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 6px 24px rgba(0,0,0,.16); padding: 10px 12px; font-size: 12.5px; }
.sx-mc-h { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.sx-mc-x { margin-left: auto; border: 0; background: none; color: var(--ink-3); cursor: pointer; font-size: 13px; }
.sx-mc-v { font-size: 24px; font-weight: 700; letter-spacing: -.02em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.sx-mc-l { color: var(--ink-3); font-size: 11.5px; }
.sx-mc-row { display: flex; justify-content: space-between; color: var(--ink-2); margin: 6px 0; padding-bottom: 6px; border-bottom: 1px solid var(--line-2); }
.sx-mc-acts { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.sx-mc-acts li { display: grid; grid-template-columns: 10px 1fr auto; gap: 7px; align-items: center; }
.sx-mc-acts i { width: 9px; height: 9px; border-radius: 2px; }
.sx-sel { width: 100%; padding: 5px 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); font: 12.5px var(--sans, Inter, sans-serif); }
.sx-actgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.sx-act-b { display: flex; align-items: center; gap: 5px; padding: 3px 6px; text-align: left; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx-act-b i { flex: none; width: 8px; height: 8px; border-radius: 2px; opacity: .35; }
.sx-act-b.on i { opacity: 1; }
.sx-act-b.empty:not(.on) { opacity: .6; }
/* one type for every Member State code; the map is for reading, not clicking */
.sx-ms-b.eea { font-style: normal; }
.sx-svg .ms, .sx-svg text.lab, .sx-svg text.call { cursor: default; }
.sx-yearfix { display: inline-block; padding: 4px 12px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 13px; }
.sx-yeartag { font-size: 12px; font-weight: 600; color: var(--ink-3); border: 1px solid var(--line); border-radius: 99px; padding: 1px 9px; }
/* the three pies at the bottom */
.sx-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.sx-grid3 > .sx-card { margin-bottom: 0; }
.sx-grid3 .sx-donut-wrap { grid-template-columns: 1fr; justify-items: center; gap: 10px; }
.sx-grid3 .sx-dleg { width: 100%; }
@media (max-width: 1100px) { .sx-grid3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .sx-grid3 { grid-template-columns: 1fr; } }

/* ---- total fines, year on year: a waterfall (diverging pair: blue up, red down; totals in the deep sequential step) */
.sanctions { --wf-up: #2a78d6; --wf-down: #e34948; --wf-total: #0d366b; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sanctions { --wf-up: #3987e5; --wf-down: #e66767; --wf-total: #86b6ef; } }
:root[data-theme="dark"] .sanctions { --wf-up: #3987e5; --wf-down: #e66767; --wf-total: #86b6ef; }
.sx-chg-hero { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; margin: 4px 0 6px; }
.sx-chg-hero .from { font-size: 22px; font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.sx-chg-hero .arr { font-size: 20px; color: var(--ink-3); }
.sx-chg-hero .to { font-size: 30px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.sx-chg-hero .pct { font-size: 14px; font-weight: 700; padding: 2px 8px; border-radius: 99px; }
.sx-chg-hero .pct.up { color: var(--wf-up); background: color-mix(in srgb, var(--wf-up) 12%, transparent); }
.sx-chg-hero .pct.down { color: var(--wf-down); background: color-mix(in srgb, var(--wf-down) 12%, transparent); }
.sx-chg-hero .sx-note { flex-basis: 100%; margin: 0; }
/* use the width of the screen */
#sx { max-width: min(1720px, 100%); padding-left: 24px; padding-right: 24px; }
.sx-lede { max-width: none; }
/* the three pies line up: title, note, chart and legend on the same rows */
.sx-grid3 > .sx-card { display: grid; grid-template-rows: subgrid; grid-row: span 3; row-gap: 0; }
.sx-grid3 .sx-donut-wrap { align-content: start; }
/* total fines: two bars split by State, joined by faint bands */
.sx-rb { display: block; width: 100%; height: auto; margin-top: 6px; overflow: visible; }
.sx-rb text { font-family: var(--sans, Inter, sans-serif); }
.sx-rb .yl { font-size: 14px; font-weight: 700; fill: var(--ink-2); }
.sx-rb .yl.y1 { fill: var(--ink); }
.sx-rb .tot { font-size: 16px; font-weight: 700; fill: var(--ink-3); font-variant-numeric: tabular-nums; }
.sx-rb .tot.y1 { font-size: 18px; fill: var(--ink); }
.sx-rb .seg { stroke: var(--surface); stroke-width: 1.5; }
.sx-rb .seg.y0 { fill: color-mix(in srgb, var(--wf-total) 38%, var(--surface)); }
.sx-rb .seg.y1 { fill: var(--wf-total); }
.sx-rb .band { opacity: .07; transition: opacity .12s; }
.sx-rb .st.up .band { fill: var(--wf-up); } .sx-rb .st.down .band { fill: var(--wf-down); }
.sx-rb .st.mv .band { opacity: .15; }
.sx-rb .st:hover .band { opacity: .45; }
.sx-rb .st:hover .seg { filter: brightness(1.25); }
/* the most-infringed provisions: teal (no act wears it), deeper for more */
.sanctions { --pv-hi: #0e9790; --pv-lo: #a9e3de; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sanctions { --pv-hi: #3fcfc4; --pv-lo: #14514d; } }
:root[data-theme="dark"] .sanctions { --pv-hi: #3fcfc4; --pv-lo: #14514d; }
/* the filters: room to breathe */
.sx-layout { grid-template-columns: 268px minmax(0, 1fr); gap: 18px; }
.sx-layout > .sx-filt { padding: 18px 18px 8px; }
.sx-fg { margin-bottom: 20px; }
.sx-fh { margin-bottom: 9px; }
.sx-sel { padding: 7px 8px; font-size: 13px; }
.sx-actgrid { gap: 6px; }
.sx-act-b { padding: 6px 8px; gap: 7px; font-size: 12px; }
.sx-msgrid { gap: 5px; }
.sx-ms-b { padding: 5px 0; font-size: 11.5px; border-radius: 5px; }
.sx-yearfix { padding: 5px 14px; }
.sx-act-b { padding-left: 12px; gap: 8px; }
.sx-yearseg { display: flex; width: 100%; } .sx-yearseg button { flex: 1; padding: 6px 0; font-size: 13px; font-weight: 600; }
.sx-layout { grid-template-columns: 300px minmax(0, 1fr); } .sx-act-b { overflow: visible; }
/* a touch smaller overall (95%), closer to the MISP tracker */
#sx { zoom: .95; }
.sx-src-year { margin-top: 10px; } .sx-src-year .sx-fh { margin-bottom: 2px; }
/* phones: the filters stack above the charts (the column widths set above would otherwise win) */
@media (max-width: 820px) { .sx-layout { grid-template-columns: minmax(0, 1fr); } .sx-layout > .sx-filt { position: static; max-height: none; } #sx { padding-left: 16px; padding-right: 16px; } }

/* every year in the year-on-year chart: the bands into the chosen year a little stronger, colour per step */
.sx-rb .band.up { fill: var(--wf-up); } .sx-rb .band.down { fill: var(--wf-down); }
.sx-rb .band.cur { opacity: .1; }
.sx-chg-hero small { font-size: 11px; font-weight: 600; color: var(--ink-3); letter-spacing: 0; margin-left: 2px; }
.sx-chg-hero .pct { font-size: 12px; }

/* the totals year by year: each year its label over its figure, the chosen year on a soft tint with a rule of its colour
   beneath; between two years a fine arrow in the colour of the change, carrying it */
.sx-yoy { display: flex; align-items: center; flex-wrap: wrap; row-gap: 8px; margin: 2px 0 14px; }
.sx-yoy-pair { display: flex; align-items: center; }
.sx-yoy-yr { display: flex; flex-direction: column; gap: 1px; padding: 6px 12px 7px; border-radius: 8px; }
.sx-yoy-yr .y { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.sx-yoy-yr .v { font-size: 22px; font-weight: 600; line-height: 1.15; letter-spacing: -.01em; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.sx-yoy-yr.cur { background: color-mix(in oklab, var(--wf-total) 7%, var(--surface)); box-shadow: inset 0 -2px 0 var(--wf-total); border-radius: 8px 8px 2px 2px; }
.sx-yoy-yr.cur .y { color: var(--wf-total); font-weight: 700; }
.sx-yoy-yr.cur .v { font-size: 28px; font-weight: 700; color: var(--ink); }
.sx-yoy-step { --c: var(--wf-up); position: relative; display: flex; align-items: center; justify-content: center; min-width: 84px; height: 24px; padding: 0 12px 0 4px; }
.sx-yoy-step.down { --c: var(--wf-down); }
.sx-yoy-step::before { content: ''; position: absolute; left: 4px; right: 9px; top: 50%; height: 1.5px; margin-top: -.75px; background: color-mix(in oklab, var(--c) 45%, var(--surface)); }
.sx-yoy-step::after { content: ''; position: absolute; right: 4px; top: 50%; width: 6px; height: 6px; margin-top: -3.5px; border-top: 1.5px solid color-mix(in oklab, var(--c) 45%, var(--surface)); border-right: 1.5px solid color-mix(in oklab, var(--c) 45%, var(--surface)); transform: rotate(45deg); }
.sx-yoy-step .pct { position: relative; font-size: 11.5px; font-weight: 700; padding: 1px 7px; border-radius: 99px; color: var(--c); background: color-mix(in oklab, var(--c) 11%, var(--surface)); font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .sx-yoy-yr { padding: 5px 9px; } .sx-yoy-yr .v { font-size: 18px; } .sx-yoy-yr.cur .v { font-size: 22px; } .sx-yoy-step { min-width: 66px; } }

/* the largest changes into the chosen year, under the chart (one line, the same height every year) */
.sx-movers { margin: 6px 0 0; display: flex; flex-wrap: nowrap; align-items: center; gap: 6px; min-height: 22px; white-space: nowrap; overflow-x: auto; scrollbar-width: none; contain: inline-size; }   /* one line, scrolled sideways on a narrow screen (and never widening the page) */
.sx-movers .chip { font-size: 12px; padding: 1px 8px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-variant-numeric: tabular-nums; cursor: default; }
.sx-movers .chip .up { color: var(--wf-up); font-weight: 600; } .sx-movers .chip .down { color: var(--wf-down); font-weight: 600; }
.sx-movers .chip.gone { border-style: dashed; } .sx-movers .chip small { font-size: 11px; color: var(--ink-3); }

/* (ECB Sanctions) the year-on-year chart's labels, and the sanctions no longer published */
.sx-rb .mvl { font-size: 12px; text-anchor: middle; font-variant-numeric: tabular-nums; }
.sx-rb .mvl .cc { font-weight: 700; fill: var(--ink-2); }
.sx-rb .mvl .up { fill: var(--wf-up); font-weight: 600; } .sx-rb .mvl .down { fill: var(--wf-down); font-weight: 600; }
.sx-gone { margin: 4px 0 0; } .sx-gone b { color: var(--wf-down); font-weight: 600; } .sx-gone span { cursor: default; }
