/* M6 13 Nov 2026: dark copy of assets/p1.css (colours remapped by build/remap_dark.py; layout unchanged) */
/* Phase 1 + compare + score ring (Saffron Light). Loaded after saffron.css. */
:root{--c-compare:#ef5379;--c-feed:#2ba9ee;--c-events:#d754e4}
html body [data-k=compare]{--k:var(--c-compare)}html body [data-k=feed]{--k:var(--c-feed)}html body [data-k=events]{--k:var(--c-events)}
body.sec-compare{--sec:var(--c-compare)}body.sec-feed{--sec:var(--c-feed)}body.sec-events{--sec:var(--c-events)}
html body :is(.sec-compare,.sec-feed,.sec-events) .r0-h1{box-shadow:inset 4px 0 0 var(--sec);padding-left:14px}
html body :is(.sec-feed,.sec-events) .r0-card{border-top:2px solid var(--sec)}
html body :is(.sec-compare,.sec-feed,.sec-events,.sec-learn) .r0-filters button[aria-pressed=true]{background:var(--sec);border-color:var(--sec);color:#04201d}
/* 8 short nav names fit from 900px */
@media(min-width:900px){html body .nm-nav a{padding:0 8px;font-size:14px}}
@media(min-width:900px) and (max-width:1199px){html body .nm-signin{display:none}}
/* Score ring: arc = score% of a full circle */
.nm-score{position:relative;display:inline-block;flex:0 0 auto}
.nm-score svg{display:block}
.nm-score-t{position:absolute;left:0;right:0;top:0;aspect-ratio:1;display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1}
.nm-score-t b{font-size:15px;font-weight:600;color:var(--text)}
.nm-score-t span{font-size:12px;color:var(--muted);margin-top:2px}
.vs-card .nm-score-t b{font-size:14px}
/* Country header: compact */
.nm-chead{display:grid;grid-template-columns:1fr auto;gap:10px 14px;align-items:center;padding:14px 16px}
.nm-chead-id{display:flex;gap:10px;align-items:center;min-width:0}
.nm-chead-flag:empty{display:none}
.nm-chead h1{font-size:clamp(22px,4vw,30px)!important;line-height:1.15;margin:0}
.nm-chead-pts{margin-top:4px;font-size:13px;color:var(--text2)}
.nm-chead-pts .mono{font-weight:600;color:var(--text)}
.nm-chead-note{grid-column:1/-1}
/* World numbers table */
.wn-table th[scope=row]{font-weight:600;min-width:150px}
.wn-lbl,.wn-yr{display:block;font-size:12px;font-weight:400;color:var(--muted);margin-top:2px}
.wn-src{font-size:12px;color:var(--muted);min-width:180px}
.wn-sources{margin:8px 0;padding-left:18px;font-size:14px;line-height:1.6}
/* Compare */
.p1-meta{font-size:13px;color:var(--text2);margin:0 0 14px}
.vs-bar{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:8px 0 12px}
.vs-bar h2{margin:0}.vs-bar select{width:auto;min-width:200px;min-height:44px}
.vs-head{display:grid;grid-template-columns:1fr auto 1fr;gap:10px;align-items:center;margin-bottom:12px}
.vs-card{display:flex;justify-content:space-between;align-items:center;gap:10px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-card,14px);padding:12px;min-width:0}
.vs-card.hl{border-color:var(--hl);background:var(--hlbg)}
.vs-card a{display:inline-flex;min-height:44px;align-items:center}
.vs-name{font-weight:600;font-size:16px;color:var(--text)}
.vs-x{font-size:13px;color:var(--muted);font-weight:600}
.vs-table td.lead{color:var(--green);font-weight:700}
.vs-table tr.grp th{background:var(--surface2);font-size:12px;text-transform:uppercase;letter-spacing:.05em;color:var(--text2)}
.cmp-table thead button{all:unset;cursor:pointer;display:inline-flex;align-items:center;min-height:44px;font-weight:600;color:var(--text);white-space:nowrap}
.cmp-table thead button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.cmp-table th[scope=row] a{display:inline-flex;min-height:44px;align-items:center}
.cmp-table tr.hl td,.cmp-table tr.hl th{background:var(--hlbg)}
.cmp-score{display:inline-flex;gap:8px;align-items:center}.cmp-score .nm-bar{width:64px}
.cmp-wrap{max-height:none}
.cmp-table th[scope=row]{position:sticky;left:0;background:var(--surface);z-index:1}
@media(max-width:640px){.vs-head{grid-template-columns:1fr}.vs-x{display:none}.cmp-score .nm-bar{display:none}}
/* Phase 1 cards */
.p1-grid{align-items:start}
.p1-card h3{font-size:17px!important;margin:8px 0 4px!important}
.p1-card p{font-size:14px!important;margin:4px 0}
.p1-top{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.p1-org{color:var(--muted)!important;font-size:13px!important;display:block}
.p1-st{font-size:12px;font-weight:700;border-radius:6px;padding:2px 8px;background:var(--surface2);color:var(--text2)}
.p1-st.soon{background:#182033;color:#e35f5f}.p1-st.open{background:#1a2236;color:#46d27e}.p1-st.closed{background:var(--surface3);color:var(--text2)}
.p1-dl{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:10px 0}.p1-dl dt{font-size:12px;color:var(--muted);text-transform:uppercase;letter-spacing:.05em}.p1-dl dd{margin:2px 0 0;font-size:14px;color:var(--text)}
.p1-go{margin:6px 0}
.p1-acts{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}
.p1-chk{display:inline-block;font-size:12px;font-weight:600;border-radius:6px;padding:2px 8px;margin-top:6px}
.p1-chk.ok{background:#1a2236;color:#46d27e}.p1-chk.part{background:var(--hlbg);color:#ee7b2b}.p1-chk.no{background:#182033;color:#e35f5f}
.p1-flag{font-size:13px!important;color:var(--text2)!important;border-left:3px solid var(--hl);padding-left:8px;margin:6px 0 0!important}
.p1-next{padding-left:18px;line-height:1.7}
.p1-evlist{display:grid;gap:12px}
.p1-ev{display:grid;grid-template-columns:84px 1fr;gap:14px}
.p1-date{background:var(--surface2);border-radius:10px;padding:10px 6px;text-align:center;align-self:start}
.p1-date b{display:block;font-size:18px;color:var(--text)}.p1-date span{font-size:12px;color:var(--muted)}
@media(max-width:480px){.p1-ev{grid-template-columns:1fr}.p1-date{display:flex;gap:8px;justify-content:flex-start;align-items:baseline;padding:6px 10px}}
.p1-pgrid{display:grid;gap:14px;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr))}
.p1-pgrp h3{font-size:15px;margin:0 0 6px;color:var(--text2)}
.p1-portals{list-style:none;padding:0;margin:0;display:grid;gap:8px}
.p1-portals li{background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:10px 12px;font-size:14px;color:var(--text2)}
.p1-portals a{font-weight:600}
.p1-fee{display:inline-block;font-size:12px;font-weight:700;border-radius:6px;padding:2px 8px;white-space:nowrap}
.p1-fee.free{background:#1a2236;color:#46d27e}.p1-fee.paid{background:var(--hlbg);color:#ee7b2b}.p1-fee.unk{background:var(--surface3);color:var(--text2)}
.p1-courses th[scope=row] a{font-weight:600}
.p1-courses td,.p1-courses th{vertical-align:top}
@media(max-width:640px){.p1-courses thead{display:none}.p1-courses,.p1-courses tbody,.p1-courses tr,.p1-courses td,.p1-courses th{display:block;width:100%}.p1-courses tr{border-bottom:1px solid var(--line);padding:10px 0}.p1-courses td,.p1-courses th{border:0!important;padding:3px 0!important}
 .p1-courses td:nth-of-type(1)::before{content:"Learning: ";font-size:12px;color:var(--muted)}.p1-courses td:nth-of-type(2)::before{content:"Certificate: ";font-size:12px;color:var(--muted)}}
/* row headers read as text, not column headers */
html body .nm-table tbody th[scope=row]{position:static;background:var(--surface);color:var(--text);text-transform:none;letter-spacing:0;font-size:14px;white-space:normal;font-weight:600}
html body .cmp-table tbody th[scope=row]{position:sticky;left:0;z-index:1;min-width:120px}
html body .cmp-table tbody tr.hl th[scope=row],html body .cmp-table tbody tr.hl td{background:var(--hlbg)}
html body .nm-table tbody tr.grp th{position:static}
.nm-tablewrap{max-width:100%}
.vs-table td.gap{white-space:nowrap}
@media(max-width:640px){.vs-table .gap{display:none}.vs-table td,.vs-table th{padding:8px!important}}
.nm-score-c{display:block;text-align:center;font-size:12px;color:var(--muted);margin-top:2px}
.p1-courses th[scope=row] a,.p1-portals a,.p1-next a{display:inline-flex;min-height:44px;align-items:center}
.wn-lbl a,.wn-src a{display:inline-flex;min-height:44px;min-width:44px;align-items:center}
.wn-lbl{margin-top:0}
html body :is(.wn-table,.vs-table,.cmp-table) td.n{white-space:nowrap}
.vs-table .wn-yr{white-space:normal}
@media(max-width:640px){
 html body .wn-table thead{display:none}
 html body .wn-table tr{display:grid;grid-template-columns:1fr 1fr 1fr;gap:2px 10px;border-bottom:1px solid var(--line);padding:10px 12px}
 html body .wn-table tbody th[scope=row]{grid-column:1/-1;padding:0 0 4px!important;border:0!important;min-width:0}
 html body .wn-table td{padding:0!important;text-align:left!important;border:0!important}
 html body .wn-table td[data-l]::before{content:attr(data-l);display:block;font-family:var(--font-sans,inherit);font-size:12px;color:var(--muted);white-space:normal}
 html body .wn-table td.wn-src{grid-column:1/-1;min-width:0}
 html body .wn-table .wn-lbl{display:none}
}
.cmp-table thead button,.cmp-table th[scope=row] a{min-width:44px}
/* Section sub-navigation (Opps, Countries) */
.nm-subnav{border-bottom:1px solid var(--line);background:var(--surface)}
.nm-subnav .nm-wrap{display:flex;gap:4px;overflow-x:auto;scrollbar-width:none}
.nm-subnav .nm-wrap::-webkit-scrollbar{display:none}
.nm-subnav a{display:inline-flex;align-items:center;min-height:44px;padding:0 12px;white-space:nowrap;font-size:14px;font-weight:600;color:var(--text2);text-decoration:none}
.nm-subnav a[aria-current=page]{color:var(--sec,var(--accent));box-shadow:inset 0 -2px 0 var(--sec,var(--accent))}
/* Reports (ported from the reports-s1 local build, re-coloured for Saffron Light) */
:root{--c-reports:#ee642b}
html body [data-k=reports]{--k:var(--c-reports)}
body.sec-reports{--sec:var(--c-reports)}
html body .sec-reports .r0-h1{box-shadow:inset 4px 0 0 var(--sec);padding-left:14px}
html body .sec-reports .r0-card{border-top:2px solid var(--sec)}
html body .rp-table{width:100%;border-collapse:collapse;margin:10px 0;font-size:var(--t-card,14px)}
html body .rp-table th,html body .rp-table td{text-align:left;vertical-align:top;padding:8px 6px;border-top:1px solid var(--line);color:var(--text2)}
html body .rp-table th{color:var(--muted);font-weight:500;width:38%}
@media (max-width:480px){html body .rp-table th,html body .rp-table td{display:block;width:auto;padding:4px 0}html body .rp-table th{border-top:1px solid var(--line);padding-top:8px}html body .rp-table td{border-top:0}}
html body .r0-metric .v small{font-size:12px;color:var(--muted);font-weight:400}
html body .rp-verdict{font-weight:600;font-size:var(--t-lead,16px);line-height:1.3}
html body .rp-verdict.go{color:var(--c-opps)}html body .rp-verdict.cond{color:#ee7c2b}html body .rp-verdict.no{color:#e65b5b}
html body .sec-reports .r0-btn.primary{background:var(--c-reports);border-color:var(--c-reports);color:#04201d}
html body .rp-interest,html body .rp-link{border-color:var(--c-reports);color:var(--c-reports)}
/* Score box (country page, Score tab) */
.sbox{display:grid;grid-template-columns:auto 1fr;gap:16px 20px;align-items:center}
.sbox .nm-score-t b{font-size:24px}
.sbox-h{font-size:17px;font-weight:600;color:var(--text);margin:0}
.sbox-meta{font-size:13px;color:var(--text2);margin:2px 0 0;line-height:1.5}
.sbox-bars{grid-column:1/-1;display:grid;gap:8px}
.sbar{display:grid;grid-template-columns:110px 1fr 44px;gap:10px;align-items:center;font-size:14px;color:var(--text2)}
.sbar .trk,.cbar .trk{position:relative;height:10px;background:var(--surface3);border-radius:999px;overflow:hidden}
.sbar .trk i,.cbar .trk i{position:absolute;left:0;top:0;bottom:0;background:var(--accent);border-radius:999px}
.sbar .mono{text-align:right;color:var(--text)}
.sbox-foot{grid-column:1/-1;font-size:12px;color:var(--muted);margin:0}
.cbars{display:grid;gap:10px}
.cbar-top{display:flex;justify-content:space-between;gap:8px;font-size:14px}
.cbar-top b{color:var(--text)}.cbar-top .mono{color:var(--text)}
.cbar.hl .trk i{background:var(--hl)}
.nm-chead-bar{grid-column:1/-1}
@media(max-width:480px){.sbar{grid-template-columns:92px 1fr 40px}.sbox{grid-template-columns:1fr}.sbox .nm-score{display:none}}
@media(min-width:481px){.nm-chead-bar{display:none}}
/* Compare 2-4 countries (Fig 1-2 of the phase plan) */
.cx-eyebrow{text-transform:uppercase;letter-spacing:.08em;margin:0}
.cx-top{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:12px}
.cx-acts{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.cx-chips{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:4px 0 14px}
.cx-chip{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 14px;border-radius:999px;border:1px solid var(--accent);background:#182033;color:var(--accent2);font-weight:600;font-size:14px;cursor:pointer}
.cx-chip.in{cursor:default;background:#1a2236}
.cx-chip .cx-sub{display:inline;margin:0}
.cx-add{min-height:44px;border-radius:999px;border:1px solid var(--line2);background:var(--surface);padding:0 14px;font:inherit;font-size:14px;color:var(--text)}
.cx-sub{display:block;font-size:12px;color:var(--muted);line-height:1.45;margin-top:2px;font-weight:400}
.cx-sub.in{display:inline;color:var(--text2)}
.cx-sub a{color:var(--accent2)}
.cx-v{font-family:var(--font-mono,ui-monospace,monospace);font-weight:600;font-size:16px;color:var(--text)}
.cx-na{font-size:14px;color:var(--text2);font-style:italic}
.cx-bar{display:block;height:8px;border-radius:999px;background:var(--surface3);margin-top:8px;position:relative;overflow:hidden}
.cx-bar i{position:absolute;left:0;top:0;bottom:0;background:var(--accent);border-radius:999px}
.cx-iso{display:inline-block;font-family:var(--font-mono,monospace);font-size:12px;background:var(--surface2);border:1px solid var(--line);border-radius:4px;padding:0 4px;color:var(--text2)}
.cx-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:14px}
.cx-table th,.cx-table td{padding:12px;border-bottom:1px solid var(--line);vertical-align:top;text-align:left}
.cx-table thead th{font-size:15px;font-weight:600;color:var(--text);background:var(--surface)}
.cx-table thead th:first-child,.cx-table tbody th{width:24%;background:var(--surface2);font-weight:600;color:var(--text)}
.cx-table .ind{background:#182033!important;box-shadow:inset 3px 0 0 var(--accent)}
.cx-card{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:12px 14px;margin-bottom:10px}
.cx-card h3{font-size:16px;margin:0 0 2px;color:var(--text)}
.cx-line{display:grid;grid-template-columns:72px 1fr;gap:10px;padding:8px;border-radius:8px}
.cx-line.ind{background:#182033}
.cx-b{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:6px}
.cx-swipe{flex:0 0 86%;scroll-snap-align:start}
.cx-swipe.ind{border-color:var(--accent);background:#182033}
.cx-m{padding:8px 0;border-top:1px solid var(--line)}
@media(min-width:768px){.cx-a,.cx-b,.cx-view{display:none!important}}
@media(max-width:767px){.cx-desk{display:none}.cx[data-view=a] .cx-b{display:none}.cx[data-view=b] .cx-a{display:none}}
@media print{.nm-hd,.nm-bnav,.nm-ft,.nm-disc,.nm-subnav,.cx-acts,.cx-view,.cx-add,#sets,.cmp-wrap{display:none!important}.cx-desk{display:block!important}.cx-a,.cx-b{display:none!important}}
.cx-ix{color:var(--text2)}.cx-ix b{color:var(--text)}
.cx-sub.in{margin-left:4px}
.p1-lab{display:inline-block;font-size:12px;font-weight:700;border-radius:6px;padding:2px 8px}
.p1-lab.free{background:#1a2236;color:#46d27e}.p1-lab.mix{background:var(--hlbg);color:#ee7b2b}.p1-lab.paid{background:#182033;color:#e35f5f}.p1-lab.unk{background:var(--surface3);color:var(--text2)}
@media(max-width:640px){.p1-courses td:nth-of-type(1)::before{content:""}.p1-courses td:nth-of-type(2)::before{content:"Learning: ";font-size:12px;color:var(--muted)}.p1-courses td:nth-of-type(3)::before{content:"Certificate: ";font-size:12px;color:var(--muted)}}
.cx-val{margin:0}
/* t92: old-data chip (amber), RR score card */
.nm-old{display:inline-block;font-size:12px;line-height:1.3;font-weight:600;color:#ee7a2b;background:#372a15;border:1px solid #f0c98d;border-radius:999px;padding:1px 8px;margin-left:4px;white-space:nowrap;vertical-align:middle}
.rr-card .rr-top{display:flex;gap:16px;align-items:center;flex-wrap:wrap}
.rr-num{font:600 34px/1 var(--mono,ui-monospace,monospace);color:var(--text)}
.rr-num small{font-size:14px;color:var(--muted);font-weight:500}
.rr-parts{list-style:none;margin:12px 0 0;padding:0}
.rr-parts li{padding:10px 0;border-top:1px solid var(--line)}
.rr-parts .rr-h{display:flex;justify-content:space-between;gap:12px;font-weight:600;font-size:14px}
.rr-parts .trk{display:block;height:8px;background:#1a2236;border-radius:99px;margin:6px 0;overflow:hidden}
.rr-parts .trk i{display:block;height:100%;background:#0f766e;border-radius:99px}
.rr-parts p{margin:2px 0 0;font-size:13px;color:var(--text2,#c4cede)}
.rr-parts .rr-s{font-size:12px;color:var(--muted)}
.rr-parts .rr-s a{display:inline-block;min-height:24px}
.tr-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
@media (max-width:720px){.tr-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.p1-st.upcoming{background:#152937;color:#2ea5ea}
