:root {
  --green: #046A38; --green-deep: #0b3d24; --green-mid: #12633b; --red: #DA291C; --red-ink: #B3190F; --gold: #FFCC00; --gold-ink: #7a5a00; --azulejo: #1F4E9C;
  --ink: #14201A; --paper: #FAF7F0; --card: #ffffff; --muted: #4a574e; --line: #e2dccb; --line2: #eee9dc;
  --navy: var(--green-deep); --navy2: var(--green-mid); --accent: #046A38; --accent-ink: #fff; --alert: var(--red-ink); --alert-bg: #fdeceb; --warn: #6e4f00; --warn-bg: #fff3c7; --info-bg: #eef2f8;
  --chip: #ede8d9; --bar: var(--green); --bar2: var(--gold); --bar3: var(--azulejo);
  --nav-ink: #eaf3ec; --nav-muted: #b9d3c0;
  --radius: 10px; --shadow: 0 1px 2px rgba(20,32,26,.06), 0 4px 14px rgba(20,32,26,.06); --shadow-hover: 0 2px 4px rgba(20,32,26,.08), 0 10px 26px rgba(20,32,26,.14);
  --serif: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Georgia, serif; --sans: Inter, "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}
html:root[data-theme="dark"] {
  --paper: #0f1612; --card: #17211b; --ink: #ece9dc; --muted: #a7b3a8; --line: #2b382f; --line2: #233027;
  --navy: #06180e; --navy2: #0f4a28; --accent: #5fcf86; --accent-ink: #04210f; --alert: #ff8f84; --alert-bg: #3a1b18; --warn: #f2c96b; --warn-bg: #352b12; --info-bg: #1b2636;
  --chip: #233027; --bar: #4fb878; --bar2: #FFCC00; --bar3: #6d9bea; --gold-ink: #FFCC00; --shadow: 0 1px 2px rgba(0,0,0,.4); --shadow-hover: 0 8px 24px rgba(0,0,0,.5);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.5 var(--sans); font-feature-settings: "tnum"; }
a { color: var(--accent); text-underline-offset: 2px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0 0 .5rem; letter-spacing: -.005em; font-weight: 700; }
h1 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); } h2 { font-size: 1.3rem; margin-top: 1.8rem; } h3 { font-size: 1.02rem; }
p { margin: 0 0 .8rem; }
.small { font-size: .84rem; } .muted { color: var(--muted); } .num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
/* header */
.utility { background: var(--navy); color: var(--nav-muted); font-size: .76rem; } .utility .wrap { display: flex; justify-content: space-between; gap: 12px; padding-top: 6px; padding-bottom: 6px; } #freshness { text-align: right; } .utility .wrap { align-items: center; }
.masthead { background: var(--card); box-shadow: 0 1px 0 var(--line); position: sticky; top: 0; z-index: 30; }
.mast { display: flex; align-items: center; gap: 22px; padding-top: 10px; padding-bottom: 10px; }
.wordmark { display: flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; white-space: nowrap; flex: none; }
.wordmark .wm-txt { display: block; font: 800 1.45rem/1 var(--sans); letter-spacing: -.02em; } .wordmark .wm-txt span { color: var(--green); }
.wordmark small { display: block; font: 600 .62rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 5px; }
.search { flex: 1; min-width: 0; position: relative; display: flex; max-width: 640px; margin-left: auto; }
.search input { flex: 1; min-width: 0; font: inherit; padding: .6rem .95rem; border: 1.5px solid var(--line); border-right: 0; border-radius: 999px 0 0 999px; background: var(--paper); color: var(--ink); }
.search input:focus, .herosearch input:focus { outline: 3px solid color-mix(in srgb, var(--gold) 70%, transparent); outline-offset: 0; border-color: var(--green); }
.search button, .herosearch button { font: inherit; font-weight: 700; padding: 0 1.3rem; border: 0; background: var(--red); color: #fff; border-radius: 0 999px 999px 0; cursor: pointer; } .search button:hover, .herosearch button:hover { background: #b92318; }
.results { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-hover); max-height: 70vh; overflow: auto; z-index: 50; border-radius: var(--radius); color: var(--ink); text-align: left; }
.results h4 { margin: 0; padding: 8px 14px 4px; font: 700 .68rem var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: var(--paper); }
.results a { display: block; padding: 8px 14px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line2); } .results a:hover { background: var(--info-bg); }
.results a small { display: block; color: var(--muted); }
.follow-link { text-decoration: none; color: var(--ink); font-size: .88rem; font-weight: 600; white-space: nowrap; border: 1.5px solid var(--line); border-radius: 999px; padding: .42rem .8rem; flex: none; } .follow-link:hover { border-color: var(--green); } .follow-link b { background: var(--green); color: #fff; border-radius: 10px; padding: 1px 8px; margin-left: 4px; font-size: .78rem; }
.mainnav { background: var(--navy); border-top: 3px solid; border-image: linear-gradient(90deg, var(--green) 0 40%, var(--red) 40% 100%) 1; } .mainnav .wrap { display: flex; flex-wrap: wrap; }
.mainnav a { color: var(--nav-ink); text-decoration: none; padding: .7rem 1rem; font-size: .9rem; font-weight: 600; border-bottom: 3px solid transparent; } .mainnav a:hover { background: var(--navy2); }
.mainnav a.on { border-bottom-color: var(--gold); color: #fff; background: var(--navy2); }
.menu-btn { display: none; margin-left: auto; font: inherit; font-weight: 600; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px; padding: .4rem .9rem; }
body.is-home .search { visibility: hidden; }
@media (max-width: 860px) {
  .mast { flex-wrap: wrap; gap: 10px; } .wordmark small { display: none; } .search { order: 3; flex-basis: 100%; max-width: none; } body.is-home .search { display: none; } .menu-btn { display: block; margin-left: 0; } .follow-link { margin-left: 0; } .menu-btn { margin-left: auto; }
  .mainnav { display: none; } .nav-open .mainnav { display: block; } .mainnav .wrap { flex-direction: column; padding: 0; } .mainnav a { border-bottom: 1px solid var(--navy2); }
  .utility .wrap { flex-direction: column; gap: 0; } #freshness { text-align: left; }
}
main.wrap { padding-top: 26px; padding-bottom: 56px; min-height: 70vh; }
.foot { background: var(--navy); color: var(--nav-muted); font-size: .84rem; padding: 0; border-top: 4px solid var(--gold); } .foot a { color: var(--gold); }
.foot .foot-grid { display: grid; grid-template-columns: 1.1fr 2fr; gap: 32px; padding: 30px 0 22px; align-items: start; }
.foot .foot-brand { display: flex; align-items: center; gap: 12px; color: #fff; font: 800 1.25rem/1 var(--sans); letter-spacing: -.02em; } .foot .foot-brand small { display: block; font: 600 .62rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-top: 5px; }
.foot p { margin: 0 0 .6rem; max-width: 80ch; } .foot b { color: #fff; }
.foot .gh-link { display: inline-flex; align-items: center; gap: .4em; vertical-align: middle; } .foot .foot-bar { border-top: 1px solid rgba(255,255,255,.14); padding: 12px 0; font-size: .78rem; }
@media (max-width: 760px) { .foot .foot-grid { grid-template-columns: 1fr; gap: 14px; } }
/* page structure */
.crumbs { font-size: .82rem; color: var(--muted); margin-bottom: 10px; } .crumbs a { color: var(--muted); }
.pagehead { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.kicker { font: 700 .72rem system-ui; text-transform: uppercase; letter-spacing: .1em; color: var(--alert); margin-bottom: 4px; }
.lead { font-size: 1.02rem; color: var(--muted); max-width: 70ch; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px; margin-bottom: 16px; } .panel > h2:first-child, .panel > h3:first-child { margin-top: 0; }
.cols { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; } .cols3 { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.side { display: grid; gap: 20px; grid-template-columns: 250px 1fr; align-items: start; }
@media (max-width: 900px) { .cols, .cols3, .side { grid-template-columns: 1fr; } }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 16px; }
.kpi { background: var(--card); padding: 12px 14px; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 8px; } .kpi b { display: block; font: 700 1.55rem var(--serif); letter-spacing: -.01em; } .kpi span { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.rail { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 12px 0; position: sticky; top: 150px; } .rail h4 { margin: 4px 16px 6px; font: 700 .7rem system-ui; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.rail a { display: flex; justify-content: space-between; gap: 8px; padding: 5px 16px; color: var(--ink); text-decoration: none; font-size: .9rem; } .rail a:hover { background: var(--paper); } .rail a.on { background: var(--navy); color: #fff; } .rail a span { color: var(--muted); font-size: .8rem; } .rail a.on span { color: var(--nav-muted); }
/* tables */
.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; } .tbl th { text-align: left; font: 700 .7rem system-ui; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 8px 10px; border-bottom: 2px solid var(--navy); white-space: nowrap; background: var(--card); position: sticky; top: 0; }
.tbl th.num { text-align: right; } .tbl th a { color: inherit; text-decoration: none; } .tbl th a.on { color: var(--ink); }
.tbl td { padding: 8px 10px; border-bottom: 1px solid var(--line2); vertical-align: top; } .tbl tr:hover td { background: color-mix(in srgb, var(--info-bg) 55%, transparent); }
.tbl td a { color: var(--ink); font-weight: 600; text-decoration: none; } .tbl td a:hover { color: var(--accent); text-decoration: underline; }
.tblwrap { overflow-x: auto; }
.tag { display: inline-block; font-size: .72rem; padding: 1px 8px; border-radius: 3px; background: var(--chip); color: var(--ink); margin-right: 4px; white-space: nowrap; }
.tag.red { background: var(--alert-bg); color: var(--alert); } .tag.amber { background: var(--warn-bg); color: var(--warn); } .tag.blue { background: var(--info-bg); }
.meter { display: inline-block; width: 64px; height: 7px; background: var(--line2); border-radius: 4px; vertical-align: middle; overflow: hidden; margin-right: 6px; } .meter i { display: block; height: 100%; background: var(--bar2); }
/* toolbar, buttons */
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; align-items: center; }
input, select, button.btn { font: inherit; padding: .45rem .65rem; border: 1px solid var(--line); border-radius: 6px; background: var(--card); color: var(--ink); }
button.btn { cursor: pointer; font-weight: 600; } button.btn:hover { border-color: var(--navy); } button.btn.primary { background: var(--green); color: #fff; border-color: var(--green); } button.btn.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.pager { display: flex; gap: 8px; align-items: center; justify-content: center; margin-top: 12px; }
/* flags */
.flag { display: flex; gap: 12px; padding: 10px 12px; border-radius: 6px; margin-bottom: 8px; border-left: 4px solid var(--warn); background: var(--warn-bg); } .flag.info { border-color: var(--azulejo); background: var(--info-bg); }
.flag b { display: block; } .flag p { margin: 0; font-size: .88rem; }
.note { background: var(--info-bg); border-radius: 6px; padding: 10px 14px; font-size: .88rem; margin: 0 0 14px; } .note.warn { background: var(--warn-bg); color: var(--warn); }
/* charts */
.barchart { display: flex; align-items: flex-end; gap: 4px; height: 150px; padding-top: 8px; } .barchart .col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; min-width: 0; position: relative; }
.barchart .b { background: var(--bar); border-radius: 2px 2px 0 0; position: relative; min-height: 1px; } .barchart .b i { position: absolute; left: 0; right: 0; bottom: 0; background: var(--bar2); display: block; }
.barchart .lbl { font-size: .66rem; color: var(--muted); text-align: center; margin-top: 3px; }
.legend { font-size: .78rem; color: var(--muted); display: flex; gap: 14px; margin-top: 6px; } .legend i { display: inline-block; width: 10px; height: 10px; margin-right: 5px; border-radius: 2px; vertical-align: -1px; }
/* misc */
.list a.item { display: block; padding: 9px 0; border-bottom: 1px solid var(--line2); color: var(--ink); text-decoration: none; } .list a.item:hover b { color: var(--accent); } .list a.item small { color: var(--muted); display: block; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin-bottom: 18px; } .tile { background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--green); border-radius: 6px; padding: 14px; text-decoration: none; color: var(--ink); } .tile:hover { border-top-color: var(--alert); } .tile b { font: 700 1.05rem var(--serif); display: block; } .tile span { font-size: .84rem; color: var(--muted); }
.tabs { display: flex; gap: 2px; border-bottom: 2px solid var(--line); margin-bottom: 14px; flex-wrap: wrap; } .tabs a, .tabs button { border: 0; background: none; font: inherit; font-weight: 600; padding: .55rem .9rem; color: var(--muted); cursor: pointer; text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -2px; } .tabs .on { color: var(--ink); border-bottom-color: var(--alert); }
.empty { text-align: center; color: var(--muted); padding: 2rem 0; }
.person { display: flex; gap: 12px; align-items: center; } .avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); } .card { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; } .card.link { text-decoration: none; color: inherit; display: block; } .card.link:hover { border-color: var(--navy); }
.chip { display: inline-block; background: var(--chip); border-radius: 3px; padding: 1px 8px; font-size: .76rem; margin: 0 4px 4px 0; } .chip.dot::before { content: ""; display: inline-block; width: .6em; height: .6em; border-radius: 50%; background: var(--c, var(--accent)); margin-right: .4em; }
.row { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line2); } .row:last-child { border: 0; } .row .when { flex: 0 0 74px; color: var(--muted); font-size: .82rem; } .row .what { flex: 1; min-width: 0; } .row a { text-decoration: none; color: var(--ink); } .row a:hover { color: var(--accent); }
/* calendar & timeline (parliament) */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; } .cal .h { background: var(--chip); text-align: center; font-size: .72rem; padding: 6px 0; color: var(--muted); text-transform: uppercase; }
.cal .d { background: var(--card); min-height: 86px; padding: 4px; font-size: .74rem; cursor: pointer; overflow: hidden; } .cal .d.out { opacity: .45; } .cal .d.today { outline: 2px solid var(--alert); outline-offset: -2px; } .cal .d.sel { background: var(--info-bg); } .cal .d .n { font-weight: 700; }
.cal .ev { margin-top: 2px; padding: 1px 4px; border-radius: 3px; background: var(--chip); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-left: 3px solid var(--c); } .cal .more { color: var(--muted); } .cal .dots { display: none; }
@media (max-width: 640px) { .cal .d { min-height: 44px; } .cal .ev { display: none; } .cal .dots { display: flex; gap: 2px; flex-wrap: wrap; } .cal .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--c); } }
.detail { white-space: pre-line; color: var(--muted); font-size: .9rem; margin-top: .3rem; }
.timeline { list-style: none; margin: 1rem 0; padding: 0 0 0 18px; border-left: 2px solid var(--line); } .timeline li { position: relative; padding: 0 0 16px 14px; } .timeline li::before { content: ""; position: absolute; left: -26px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--c, var(--navy)); border: 2px solid var(--paper); } .timeline .future::before { background: var(--paper); border-color: var(--c, var(--navy)); } .timeline time { font-size: .8rem; color: var(--muted); display: block; }
.flow { counter-reset: s; display: grid; gap: 10px; } .flow .s { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px 12px 52px; position: relative; } .flow .s::before { counter-increment: s; content: counter(s); position: absolute; left: 14px; top: 12px; width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: #fff; text-align: center; line-height: 26px; font-weight: 700; font-size: .85rem; }
.pow { border-left: 6px solid var(--c); } .pow ul { margin: .3rem 0 1rem; padding-left: 1.2rem; } .pow li { margin-bottom: .35rem; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 1rem 0; } .stat { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; } .stat b { display: block; font: 700 1.5rem var(--serif); } .stat span { color: var(--muted); font-size: .8rem; }
.back { display: inline-block; margin-bottom: .6rem; text-decoration: none; font-size: .9rem; }
svg text { fill: currentColor; } table:not(.tbl) { border-collapse: collapse; width: 100%; font-size: .92rem; } table:not(.tbl) th, table:not(.tbl) td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line2); vertical-align: top; } table:not(.tbl) th { color: var(--muted); font-size: .76rem; text-transform: uppercase; }
.tabs button.on { color: var(--ink); border-bottom-color: var(--alert); }

/* mobile: nothing may force horizontal page scroll (QA #19) */
.toolbar > * { max-width: 100%; min-width: 0; }
select, input { max-width: 100%; }
@media (max-width: 640px) { .toolbar select, .toolbar input { flex: 1 1 100%; } .kpis { grid-template-columns: 1fr 1fr; } main { overflow-x: hidden; } }

/* grouped navigation */
.mainnav .grp { position: relative; }
.grp-btn { font: inherit; font-size: .9rem; font-weight: 500; color: var(--nav-ink); background: none; border: 0; border-bottom: 3px solid transparent; padding: .62rem .95rem; cursor: pointer; }
.grp:hover .grp-btn, .grp.open .grp-btn { background: var(--navy2); } .grp.on .grp-btn { border-bottom-color: var(--gold); color: #fff; background: var(--navy2); }
.mainnav .menu { display: none; position: absolute; left: 0; top: 100%; min-width: 230px; background: var(--card); border: 1px solid var(--line); border-top: 0; box-shadow: 0 12px 28px rgba(0,0,0,.22); z-index: 40; border-radius: 0 0 8px 8px; }
.grp:hover .menu, .grp:focus-within .menu, .grp.open .menu { display: block; }
.mainnav .menu a { display: block; color: var(--ink); border-bottom: 1px solid var(--line2); padding: .55rem .95rem; background: none; } .mainnav .menu a:hover { background: var(--info-bg); } .mainnav .menu a.on { background: var(--navy); color: #fff; border-bottom-color: var(--line2); }
@media (max-width: 860px) { .grp-btn { width: 100%; text-align: left; border-bottom: 1px solid var(--navy2); } .mainnav .menu { position: static; box-shadow: none; border: 0; border-radius: 0; background: var(--navy2); } .mainnav .menu a { color: var(--nav-ink); border-bottom-color: var(--navy); padding-left: 1.6rem; } .mainnav .menu a.on { background: var(--navy); } .grp:hover .menu { display: none; } .grp.open .menu { display: block; } }

/* wide data tables scroll inside their panel instead of clipping (QA-2 #17) */
.panel .tblwrap, .tblwrap { overflow-x: auto; max-width: 100%; }
.aut-tbl th, .aut-tbl td { white-space: nowrap; }

/* roadmap */
.road { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; margin-bottom: 16px; }
@media (max-width: 960px) { .road { grid-template-columns: 1fr; } }
.road-col { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; border-top: 4px solid var(--navy); }
.road-col.now { border-top-color: var(--accent); } .road-col.next { border-top-color: var(--warn); } .road-col.done { border-top-color: var(--navy2); }
.road-col h2 { margin: 0 0 2px; font-size: 1.15rem; } .road-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--navy); margin-right: 8px; }
.road-col.now .road-dot { background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: road-pulse 1.8s infinite; } .road-col.next .road-dot { background: var(--warn); }
@keyframes road-pulse { 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.road-item { border-top: 1px solid var(--line2); padding: 10px 0; } .road-item:first-of-type { border-top: 0; } .road-item p { margin: 3px 0 0; font-size: .88rem; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .road-col.now .road-dot { animation: none; } }

/* design layer */
body { font: 15px/1.55 var(--sans); overflow-x: clip; }
h1, h2, h3 { font-family: var(--serif); letter-spacing: -.01em; }
h2 { font-size: 1.35rem; margin-top: 2rem; }
.panel > h2:first-child, h2.sec { position: relative; padding-bottom: .55rem; margin-bottom: .9rem; margin-top: 0; }
.panel > h2:first-child::after, h2.sec::after, .cols > .panel > h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 44px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--red) 0 60%, var(--gold) 60% 100%); }
.panel h2 { position: relative; padding-bottom: .55rem; margin-bottom: .9rem; }
.kicker { font: 800 .72rem var(--sans); letter-spacing: .12em; color: var(--alert); }
.pagehead { border-bottom: 0; padding-bottom: 6px; margin-bottom: 18px; position: relative; } .pagehead::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--green) 0 40%, var(--red) 40% 85%, var(--gold) 85%); border-radius: 2px; opacity: .9; }
.pagehead h1 { padding-bottom: 6px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; margin-bottom: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; transition: transform .15s, box-shadow .15s, border-color .15s; }
.card.link:hover { border-color: var(--green); box-shadow: var(--shadow-hover); transform: translateY(-2px); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--azulejo); outline-offset: 2px; }

.hero { position: relative; width: 100vw; margin: -26px 0 0 calc(50% - 50vw); background: var(--green-deep) linear-gradient(115deg, var(--green-deep) 0%, #0d5230 62%, #12663c 100%); color: #fff; overflow: hidden; border-bottom: 5px solid var(--gold); padding: 0; }
.hero::before { content: ""; position: absolute; inset: 0 0 0 auto; width: 52%; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Crect width='64' height='64' fill='none'/%3E%3Cpath d='M32 3 61 32 32 61 3 32Z' fill='none' stroke='%23fff' stroke-opacity='.16' stroke-width='1.5'/%3E%3Cpath d='M32 14c3 11 7 15 18 18-11 3-15 7-18 18-3-11-7-15-18-18 11-3 15-7 18-18Z' fill='%231F4E9C' fill-opacity='.55' stroke='%23fff' stroke-opacity='.3'/%3E%3Ccircle cx='32' cy='32' r='3.2' fill='%23FFCC00' fill-opacity='.85'/%3E%3Ccircle cx='0' cy='0' r='3' fill='%23fff' fill-opacity='.14'/%3E%3Ccircle cx='64' cy='0' r='3' fill='%23fff' fill-opacity='.14'/%3E%3Ccircle cx='0' cy='64' r='3' fill='%23fff' fill-opacity='.14'/%3E%3Ccircle cx='64' cy='64' r='3' fill='%23fff' fill-opacity='.14'/%3E%3C/svg%3E"); background-size: 64px 64px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 70%); mask-image: linear-gradient(90deg, transparent, #000 70%); opacity: .55; pointer-events: none; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: linear-gradient(90deg, var(--green) 0 40%, var(--red) 40% 100%); }
.hero-in { position: relative; max-width: 1240px; margin: 0 auto; padding: 54px 20px 46px; }
.hero .kicker { color: var(--gold); }
.hero h1 { font-size: clamp(2rem, 5.2vw, 3.6rem); line-height: 1.05; max-width: 21ch; margin: .2rem 0 .8rem; color: #fff; font-weight: 800; letter-spacing: -.02em; }
.hero .lead { color: #d6e6d9; font-size: 1.08rem; max-width: 62ch; margin-bottom: 1.4rem; }
.herosearch { position: relative; display: flex; max-width: 680px; box-shadow: 0 8px 28px rgba(0,0,0,.3); border-radius: 999px; }
.herosearch input { flex: 1; min-width: 0; font: inherit; font-size: 1.05rem; padding: .95rem 1.3rem; border: 3px solid transparent; border-right: 0; border-radius: 999px 0 0 999px; background: #fff; color: #14201A; }
.herosearch button { font-size: 1.02rem; padding: 0 1.8rem; }
.hero-hint { margin: 14px 0 0; font-size: .86rem; color: #bcd5c3; } .hero-hint a { color: var(--gold); font-weight: 600; margin: 0 2px; }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi { background: var(--card); padding: 14px 16px; border: 1px solid var(--line); border-top: 4px solid var(--green); border-radius: var(--radius); box-shadow: var(--shadow); }
.kpi:nth-child(3n+2) { border-top-color: var(--red); } .kpi:nth-child(3n) { border-top-color: var(--azulejo); } .kpi:nth-child(4n) { border-top-color: var(--gold); }
.kpi b { display: block; font: 800 1.7rem/1.1 var(--serif); letter-spacing: -.02em; color: var(--ink); } .kpi span { display: block; margin-top: 4px; font-size: .74rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.kpis.strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-hover); margin: -30px 0 28px; position: relative; overflow: hidden; }
.kpis.strip .kpi { border: 0; border-radius: 0; box-shadow: none; border-left: 1px solid var(--line); padding: 18px 20px; background: transparent; } .kpis.strip .kpi:first-child { border-left: 0; }
.kpis.strip .kpi b { font-size: clamp(1.5rem, 2.6vw, 2.25rem); color: var(--green); } .kpis.strip .kpi:nth-child(even) b { color: var(--red-ink); } .kpis.strip .kpi:nth-child(5) b { color: var(--azulejo); }
@media (max-width: 860px) { .kpis.strip { grid-template-columns: repeat(2, 1fr); margin-top: -22px; } .kpis.strip .kpi { border-left: 0; border-top: 1px solid var(--line); } .kpis.strip .kpi:nth-child(-n+2) { border-top: 0; } .kpis.strip .kpi:nth-child(even) { border-left: 1px solid var(--line); } .kpis.strip .kpi:last-child { grid-column: 1 / -1; border-left: 0; } .hero-in { padding: 34px 20px 44px; } .hero::before { width: 100%; opacity: .35; } }
@media (max-width: 480px) { .herosearch input { padding: .8rem 1rem; font-size: 1rem; } .herosearch button { padding: 0 1.1rem; } .hero .lead { font-size: 1rem; } }

.novidades { margin-bottom: 26px; } .novgrid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.novgrid .card { position: relative; border-top: 5px solid var(--green); padding-top: 18px; display: flex; flex-direction: column; }
.novgrid .card:nth-child(4n+2) { border-top-color: var(--red); } .novgrid .card:nth-child(4n+3) { border-top-color: var(--azulejo); } .novgrid .card:nth-child(4n) { border-top-color: var(--gold); }
.novgrid .card h3 { font-size: 1.1rem; margin: 6px 0 4px; } .novgrid .card p { margin: 0 0 10px; flex: 1; } .cardnum { font-size: .9rem; color: var(--green); } .novgrid .card:nth-child(4n+2) .cardnum { color: var(--red-ink); } .novgrid .card:nth-child(4n+3) .cardnum { color: var(--azulejo); } .novgrid .card:nth-child(4n) .cardnum { color: var(--gold-ink); }
.badge-new { display: inline-block; align-self: flex-start; font: 800 .64rem var(--sans); letter-spacing: .1em; text-transform: uppercase; background: var(--red); color: #fff; padding: 3px 9px; border-radius: 999px; box-shadow: inset 0 -2px 0 var(--gold); }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-bottom: 24px; }
.tile { background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--green); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s, border-color .15s; }
.tile:hover { border-left-color: var(--red); box-shadow: var(--shadow-hover); transform: translateY(-2px); } .tile b { font: 700 1.05rem var(--serif); display: block; margin-bottom: 2px; } .tile span { font-size: .84rem; color: var(--muted); }

.tbl th { background: var(--card); color: var(--muted); border-bottom: 2px solid var(--green); z-index: 2; }
.tbl tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--paper) 70%, var(--card)); } .tbl tr:hover td { background: color-mix(in srgb, var(--gold) 16%, var(--card)) !important; }
.tblwrap { max-height: 78vh; overflow: auto; } .panel .tblwrap { max-height: 520px; }
.tbl td a:hover { color: var(--green); }
.tag { border-radius: 999px; padding: 2px 10px; font-weight: 600; } .tag.blue { background: #e4ecf8; color: #17407f; } .tag.red { background: var(--alert-bg); color: var(--alert); } .tag.amber { background: var(--warn-bg); color: var(--warn); }
.meter { height: 8px; width: 70px; } .meter i { background: var(--red); }
button.btn, .btn { border-radius: 999px; padding: .5rem 1rem; font-weight: 700; } button.btn.primary, a.btn.primary { background: var(--green); border-color: var(--green); } button.btn.primary:hover { background: var(--green-deep); } button.btn:hover { border-color: var(--green); }
a.btn { display: inline-block; text-decoration: none; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); } a.btn:hover { border-color: var(--green); }
button.btn.on { background: var(--green); border-color: var(--green); color: #fff; }
input, select { border-radius: 8px; border: 1.5px solid var(--line); }

.barchart { height: 170px; gap: 5px; } .barchart .b { background: var(--green); border-radius: 3px 3px 0 0; } .barchart .col:hover .b { background: var(--green-deep); } .barchart .b i { background: var(--gold); }
.legend { gap: 16px; flex-wrap: wrap; } .legend i { border-radius: 3px; width: 12px; height: 12px; }
.rail { border-radius: var(--radius); box-shadow: var(--shadow); } .rail a.on { background: var(--green); } .rail a:hover { background: var(--info-bg); }
.tabs { border-bottom-color: var(--line); } .tabs .on, .tabs button.on { color: var(--green); border-bottom-color: var(--red); }
.row a:hover, .list a.item:hover b { color: var(--green); }
.flag { border-radius: 8px; } .flag.info { border-color: var(--azulejo); }
.note { border-left: 4px solid var(--azulejo); } .note.warn { border-left-color: var(--gold); }
.road-col { border-radius: var(--radius); box-shadow: var(--shadow); border-top-width: 5px; } .road-col.now { border-top-color: var(--green); } .road-col.next { border-top-color: var(--gold); } .road-col.done { border-top-color: var(--azulejo); } .road-col.now .road-dot { background: var(--green); box-shadow: 0 0 0 0 var(--green); } .road-col.next .road-dot { background: var(--gold); } .road-col.done .road-dot { background: var(--azulejo); }
.stat, .flow .s, .cal { border-radius: var(--radius); }
.avatar { background: var(--green); }
.grp-btn { font-weight: 600; } .grp:hover .grp-btn, .grp.open .grp-btn { background: var(--navy2); }
.mainnav .menu { border-radius: 0 0 var(--radius) var(--radius); border: 1px solid var(--line); border-top: 3px solid var(--gold); padding: 4px 0; } .mainnav .menu a { color: var(--ink); font-weight: 500; padding: .6rem 1.1rem; border-bottom: 0; } .mainnav .menu a:hover { background: var(--info-bg); color: var(--green); } .mainnav .menu a.on { background: var(--green); color: #fff; }
@media (max-width: 860px) { .mainnav .menu { background: var(--navy2); border: 0; padding: 0; } .mainnav .menu a { color: var(--nav-ink); } .mainnav .menu a:hover { background: var(--navy); color: #fff; } }
@media (max-width: 640px) { main.wrap { padding-top: 18px; } .kpis.strip .kpi b { font-size: 1.35rem; } .kpis.strip .kpi { padding: 14px; } .hero { margin-top: -18px; } .kpis:not(.strip) { grid-template-columns: 1fr 1fr; } }
.cols > *, .cols3 > *, .side > *, .grid > * { min-width: 0; }
.cols, .cols3, .side { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .cols3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .side { grid-template-columns: 250px minmax(0, 1fr); }
@media (max-width: 900px) { .cols, .cols3, .side { grid-template-columns: minmax(0, 1fr); } }

html { overflow-x: clip; }
html:root[data-theme="dark"] { --red-ink: #ff8f84; --green-text: #5fcf86; --azulejo-text: #8db3f2; }
html:root[data-theme="dark"] .kpis.strip .kpi b, html:root[data-theme="dark"] .cardnum { color: var(--green-text); }
html:root[data-theme="dark"] .kpis.strip .kpi:nth-child(even) b, html:root[data-theme="dark"] .novgrid .card:nth-child(4n+2) .cardnum { color: var(--red-ink); }
html:root[data-theme="dark"] .kpis.strip .kpi:nth-child(5) b, html:root[data-theme="dark"] .novgrid .card:nth-child(4n+3) .cardnum { color: var(--azulejo-text); }
html:root[data-theme="dark"] .tag.blue { background: #1b2a44; color: #a9c4f5; }
html:root[data-theme="dark"] .tbl tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--card) 85%, #fff 3%); }
html:root[data-theme="dark"] .tbl th { border-bottom-color: var(--bar); }
html:root[data-theme="dark"] button.btn.primary, html:root[data-theme="dark"] button.btn.on, html:root[data-theme="dark"] .rail a.on, html:root[data-theme="dark"] .avatar { background: var(--navy2); color: #fff; }
@media print {
  .utility, .mainnav, .masthead .search, .menu-btn, .follow-link, .hero::before, .toolbar, .pager { display: none !important; }
  body { background: #fff; color: #000; } .panel, .card, .kpi { box-shadow: none; break-inside: avoid; } .masthead { position: static; }
  .tblwrap, .panel .tblwrap { max-height: none; overflow: visible; } a { color: #000; }
}
select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--azulejo); outline-offset: 2px; }
.mainnav a:focus-visible, .grp-btn:focus-visible { outline-color: var(--gold); outline-offset: -3px; }
.aut-vbars { overflow-x: auto; max-width: 100%; } @media (max-width: 640px) { .aut-vbars .c { min-width: 18px; } }
.mainnav .grp { display: inline-flex; align-items: stretch; }
.mainnav .grp-link { display: inline-flex; align-items: center; padding: .62rem .2rem .62rem .95rem; color: var(--nav-ink); text-decoration: none; font-size: .9rem; font-weight: 600; border-bottom: 3px solid transparent; }
.mainnav .grp-link:hover, .mainnav .grp-link:focus-visible, .mainnav .grp-link.on { background: var(--navy2); color: #fff; }
.mainnav .grp-link.on, .mainnav .grp.on .grp-link { border-bottom-color: var(--gold); }
.mainnav .grp .grp-btn { padding-left: .45rem; padding-right: .75rem; }
.mainnav .menu a.menu-story { font-weight: 700; }
@media (max-width: 860px) { .mainnav .grp { display: flex; flex-wrap: wrap; } .mainnav .grp-link { flex: 1 1 0; border-bottom: 1px solid var(--navy2); padding-left: .95rem; } .mainnav .grp .grp-btn { width: auto; flex: 0 0 3.2rem; text-align: center; } .mainnav .grp .menu { flex-basis: 100%; } }

.sk-b { background: linear-gradient(90deg, var(--ed-hair, #e4ddc8) 25%, var(--ed-paper2, #f2ecdd) 50%, var(--ed-hair, #e4ddc8) 75%); background-size: 200% 100%; animation: sk-sh 1.4s linear infinite; border-radius: 2px; }
@keyframes sk-sh { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .sk-b { animation: none; } }
.sk { display: block; } .sk-page, .sk-gen { padding: 28px 0; min-height: 60vh; }
.sk-kick { height: 12px; width: 140px; margin-bottom: 14px; } .sk-h { height: 38px; width: min(560px, 80%); margin-bottom: 16px; } .sk-l { height: 16px; width: min(720px, 100%); margin: 10px 0; }
.sk-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 24px 0; } .sk-c { height: 120px; margin-bottom: 14px; } .sk-t { height: 220px; }
@media (max-width: 760px) { .sk-grid { grid-template-columns: 1fr; } }
.sk-boot .sk-ed, .sk-boot .sk-gen { display: none; } html.h-home .sk-boot .sk-ed { display: block; } html:not(.h-home) .sk-boot .sk-gen { display: block; }
.sk-ed { min-height: 80vh; } .sk-bar { height: 34px; margin: 10px 0; } .sk-date { height: 22px; margin: 8px 0; } .sk-tick { height: 32px; margin: 0 0 18px; }
.sk-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.15fr) minmax(0, 1fr); gap: 36px; } .sk-hero { height: 200px; margin-bottom: 14px; }
@media (max-width: 900px) { .sk-cols { grid-template-columns: 1fr; } .sk-cols > div:first-child, .sk-cols > div:last-child { display: none; } }
#ed-plate.sk-plate { min-height: 218px; } @media (max-width: 1100px) { #ed-plate.sk-plate { min-height: 127px; } }
@media (min-width: 761px) { .mainnav .wrap { min-height: 43px; } }
body:has(#app > .sk) .foot { visibility: hidden; }
#app:has(> .sk) { min-height: 100vh; }
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .14s; }
  .masthead { view-transition-name: masthead; }
  ::view-transition-group(masthead) { animation: none; }
}
.ed .band, .ed .band2, .ed .colophon { content-visibility: auto; contain-intrinsic-size: auto 520px; }
