/* Keep the current view and its sources within reach on either reading axis. */
#viewTools { display:flex; flex-wrap:wrap; align-items:center; gap:.25rem 1.1rem; }
#shareView, #frameworkLink, .frameworkEvidence {
  display:inline-flex; align-items:center; min-height:44px; color:var(--accent);
  font:inherit; font-weight:650; text-underline-offset:.2em;
}
#shareView { background:transparent; border:0; padding:0; cursor:pointer; text-decoration:underline; }
#shareStatus { color:var(--muted); font-size:.88rem; overflow-wrap:anywhere; }
#shareStatus input { max-width:100%; padding:.4rem; background:var(--paper); color:var(--ink); }
.mobileFramework, .mobileIndicator { display:none; }
.routePanel > details { border-block-start:1px solid var(--line); }
.routePanel > details > summary { cursor:pointer; padding:.6rem 0; min-height:44px; color:var(--accent); }
#matrix, #differences, #sources, [data-row] { scroll-margin-block-start:1rem; }
:where(a, button, summary, input, [tabindex]):focus-visible { outline:3px solid var(--accent); outline-offset:3px; }

@media(max-width:760px) {
  header .bar { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:.1rem .6rem; padding-block:.5rem .1rem; }
  header .bar .brand { grid-column:1; grid-row:1; }
  header .bar .tools { grid-column:2; grid-row:1; }
  header .bar nav { display:flex; grid-column:1/-1; grid-row:2; flex-wrap:wrap; gap:0 1.15rem; }
  header .bar nav a { display:inline-flex; align-items:center; min-height:42px; font-size:.88rem; }
}

@media(max-width:600px) {
  #tableBox table, #tableBox tbody, #tableBox .evidence, #tableBox .evidence td { display:block; width:100%; min-width:0; }
  #tableBox thead { position:absolute; clip-path:inset(50%); width:1px; height:1px; white-space:nowrap; overflow:hidden; }
  #tableBox tr.row { display:grid; grid-template-columns:minmax(0,1fr); padding:.55rem .65rem .7rem; border-block-end:1px solid var(--line); }
  #tableBox tr.row > th, #tableBox tr.row > td { width:auto; text-align:start; border:0; padding:.22rem 0; }
  #tableBox tr.row > td:not(.rowToggle) { display:grid; grid-template-columns:minmax(0,.95fr) minmax(0,1.25fr); gap:.15rem .5rem; align-items:start; }
  #tableBox .mobileFramework { display:block; grid-column:1; grid-row:1 / span 2; color:var(--muted); font-size:.85rem; font-weight:600; overflow-wrap:anywhere; }
  #tableBox tr.row > td > .status { grid-column:2; justify-self:start; }
  #tableBox tr.row > td > .inlineDifference, #tableBox tr.row > td > .cellScope { grid-column:1/-1; }
  #tableBox tr.row > td.rowToggle { display:none; }
  #tableBox button.standard { position:relative; display:block; width:100%; min-height:44px; padding-inline-end:2.1rem; text-align:start; }
  #tableBox .mobileIndicator { position:absolute; display:inline-flex; align-items:center; justify-content:center; inset-inline-end:0; top:.2rem; width:1.65rem; height:1.65rem; color:var(--accent); }
  #tableBox .mobileIndicator svg { width:1rem; height:1rem; }
  #tableBox button[aria-expanded=true] .mobileIndicator { transform:rotate(180deg); }
  #tableBox .row .inlineDifference { font-size:.93rem; }
  #tableBox .evidence td { padding:.55rem .75rem; }
  #tableBox .evidence > td > div { display:block; }
}
@media(prefers-reduced-motion:reduce){
  html { scroll-behavior:auto !important; }
  .evidence > td > div, .mobileIndicator { animation:none !important; transition:none !important; }
}
.readerNav,.viewTools,.crumbs{display:flex;align-items:center;gap:.5rem 1rem;flex-wrap:wrap}
.readerNav a,.tools a{display:inline-flex;align-items:center;min-height:44px}
.crumbs{margin-block:1.25rem;color:var(--muted);font-size:.91rem}.crumbs i{font-style:normal;color:var(--border)}
.reader{padding-block-end:3.5rem}.reader h1{font-size:clamp(2.4rem,5.2vw,4.8rem);line-height:1.04;max-width:23ch;overflow-wrap:anywhere}.readerLead,.refIntroScope{max-width:74ch;color:var(--muted);font-size:1.07rem}
.directoryGroups{margin-block:2rem;columns:3 16rem;column-gap:3rem}.directoryGroups section{break-inside:avoid;padding:.9rem 0;border-block-start:1px solid var(--line)}
.directoryGroups h2{font-size:1.4rem}.directoryGroups ul,.refSources ul{padding-inline-start:1.25rem;margin:.45rem 0}.directoryGroups a{padding-block:.3rem;display:inline-block}
.reader a,.frameworkEvidence,#frameworkLink{color:var(--accent)}.reader a:hover,.viewTools a:hover{text-decoration-thickness:2px}
.refIntro{padding-block:.75rem 1.15rem}.refCountry,.refMeta,.refPhase,.refDate{color:var(--muted);font-size:.92rem}.refCountry{margin:.45rem 0}
.refAction a{display:inline-flex;align-items:center;min-height:44px;font-weight:650}
.referencePage h2{font-size:clamp(1.7rem,3.3vw,2.55rem);margin-block:1.7rem .6rem}
.refRoutes details,.refLegacy{border-block:1px solid var(--line);padding:.4rem 0}
.refRoutes summary,.refLegacy>summary,.refDetail summary{cursor:pointer;padding:.4rem 0;color:var(--accent)}
.refRoutes ul{padding-inline-start:1.3rem;max-width:87ch}.refRoutes li+li{margin-block-start:1rem}.refRoutes p,.refEvidence p,.refDetail p{margin:.4rem 0}
.refDifferenceLinks{display:flex;flex-wrap:wrap;gap:.2rem .75rem;padding:0;list-style:none}.refDifferenceLinks a{display:inline-block;padding:.25rem 0}
.refTable caption{text-align:start;color:var(--muted);padding-block:.45rem}.refTable th,.refTable td{vertical-align:top}.refTable thead th:first-child{width:34%}.refTable thead th:last-child{width:auto;display:table-cell}
.refTable tr:target{background:var(--active)}.refTable{background:var(--paper)}.refTable .refKey,.refName,.refPhase{display:block}.refKey{font-weight:650}
.refStatus{font-weight:600;color:var(--muted)}.refStatus[data-status=modified],.refStatus[data-status=excluded]{color:var(--accent)}
.refStatus[data-status=listed],.refStatus[data-status=endorsedChanges]{color:#286044}html[data-theme=dark] .refStatus[data-status=listed],html[data-theme=dark] .refStatus[data-status=endorsedChanges]{color:#a6d9b5}
.refLinks,.refCitations,.refScope{overflow-wrap:anywhere}.refScope{color:var(--muted)}.refSr{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden;white-space:nowrap}.refLegacy{margin-block:1rem}
.initialName{font-size:1.5rem;margin-top:1rem}.initialTable thead th:last-child{width:auto}
@media(max-width:600px){.reader h1{letter-spacing:-.035em}.reader .refTable td,.reader .refTable th{padding:10px 8px}.directoryGroups{columns:1}.readerNav{justify-content:flex-end;font-size:.93rem}.reader :where(.refEvidence,.refRoutes,.refDetail){font-size:1rem}.initialTable thead{position:static!important;clip-path:none!important;width:auto!important;display:table-header-group!important}.initialTable thead th:last-child{display:table-cell}.refTable .refName{overflow-wrap:break-word}}
@media(prefers-reduced-motion:no-preference){.refTable tr:target{animation:arrived .45s ease-out}@keyframes arrived{from{background:var(--line)}to{background:var(--active)}}}
.stdSearch kbd{font:normal .8rem/1.3 var(--sans);padding:0 .3em;border:1px solid var(--line);border-radius:2px;color:var(--muted)}
#shareStatus:not(:empty){color:var(--accent)}
@media(min-width:761px){#tableBox thead th{position:sticky;top:0;z-index:1}#tableBox tr[id]{scroll-margin-top:4rem}}
@media(hover:none){.stdSearch kbd{display:none}}
.dataDownloads{padding-block:.75rem;border-block:1px solid var(--line)}.dataDownloads p{max-width:75ch}

html:not([data-atlas-ready]) :is(.selectorStrip,.filters,.tableMeta,#shareView,#theme,.globeFigure,#picker,#sources details){display:none}
.profileJumps{display:flex;flex-wrap:wrap;gap:.15rem 1.2rem;border-block:1px solid var(--line);margin-block:.5rem 1.5rem}
.profileJumps a,.directoryFilter button{display:inline-flex;align-items:center;min-height:44px}
.directoryFilter{max-width:38rem;margin-block:1rem}
.directoryFilter label{display:block;font-weight:650;margin-bottom:.3rem}
.directoryFilter>div{display:flex;align-items:center;gap:.65rem;flex-wrap:wrap}
.directoryFilter input{font:inherit;min-height:44px;min-width:0;flex:1 1 14rem;padding:.35rem .65rem;color:inherit;background:var(--paper);border:1px solid var(--muted);border-radius:.25rem}
.directoryFilter p{margin:.25rem 0;color:var(--muted)}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.new-tab-icon { display: inline-block; inline-size: .92em; block-size: .92em; margin-inline-start: .28em; vertical-align: -.12em; background: currentColor; mask: url("/new-tab-icon.svg") center / contain no-repeat; }
@media (forced-colors: active) { .new-tab-icon { background: LinkText; forced-color-adjust: none; } }

html:not([data-atlas-ready]) .heroGrid{grid-template-columns:1fr}
.atlasGuides,.refFinding,.guidePage section{margin-block:1.75rem}
.atlasGuides ul,.guidePage ul{padding-inline-start:1.25rem}
.atlasGuides li,.guidePage li{margin-block:.55rem}
.atlasGuides a,.refFinding a,.guidePage a{text-underline-offset:.2em}
.guidePage{max-width:62rem}.guidePage h1{max-width:25ch}.guidePage p{max-width:72ch}
.guideScope{color:var(--muted)}.guideSides{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2rem}
.guideSides section{border-block-start:1px solid var(--line);margin-block:1rem;padding-block-start:.75rem}
@media(max-width:600px){.guideSides{grid-template-columns:1fr;gap:0}}

.standardJump:not([hidden]) { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; margin-block: 1rem; }
.standardJump label { font-weight: 650; }
.standardJump select, .standardJump button { max-inline-size: 100%; min-block-size: 44px; font: inherit; color: inherit; background: var(--paper); border: 1px solid var(--muted); border-radius: .25rem; padding: .35rem .65rem; }
.standardJump select { min-inline-size: 0; }
@media print {
  .standardJump:not([hidden]), .readerNav, .profileJumps, .skip, .crumbs, .directoryFilter { display: none; }
  .reader { max-width: none; }
  .reader h2, .reader h3, .reader caption { break-after: avoid; }
  .refTable tr { break-inside: avoid; }
}

.frameworkSummaries { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,23rem),1fr)); gap:.4rem 2rem; }
.frameworkSummaries h2 { margin-block: .5rem .25rem; font: 650 1rem/1.45 var(--sans); }
.frameworkSummaries:has(> :only-child) { display: block; }
.frameworkSummaries .coverageNote { margin-block: .3rem .7rem; }

.peerComparisons h2 { font: 650 1rem/1.5 var(--sans); margin: 0; }
.peerComparisons ul { display: flex; flex-wrap: wrap; gap: 0 1.5rem; padding-inline-start: 1.2rem; margin-block: .25rem .65rem; }
.peerComparisons a { display: inline-flex; align-items: center; min-block-size: 44px; }
#tableBox .initialTable caption { text-align: start; padding-block: .5rem; }
@media (max-width:600px) {
  #tableBox .initialTable { display: table; table-layout: fixed; }
  #tableBox .initialTable tbody { display: table-row-group; }
  #tableBox .initialTable :is(th,td) { width: auto; overflow-wrap: anywhere; }
}

.evidenceSteps {
  display: flex; flex-wrap: wrap; gap: .25rem 1rem;
  margin-block-start: .75rem; padding-block-start: .25rem; border-block-start: 1px solid var(--line);
}
.evidenceSteps button {
  min-block-size: 44px; padding: .35rem .25rem; color: var(--accent);
  text-decoration: underline; text-underline-offset: .2em;
}
.evidenceSteps .next { margin-inline-start: auto; }
#tableBox .standard { scroll-margin-block-start: 1rem; }

.selectorStrip:has(#thirdSlot:not([hidden])) { grid-template-columns: repeat(3,minmax(0,1fr)); }
#thirdSlot[hidden] { display:none; }
#removeThird { color:var(--accent); text-decoration:underline; font-size:.9rem; min-height:44px; }
#thirdChoice { font-size:clamp(1.15rem,2vw,1.65rem); }
.columnScope { margin-block-start:.35rem; line-height:1.45; font-weight:400; }
.columnScope summary { color:#ffd7bb; cursor:pointer; text-decoration:underline; text-underline-offset:.2em; }
#tableBox thead a { color:inherit; }
#tableBox[data-frameworks="3"] thead th:first-child { width:23%; }
@media(max-width:760px) {
  .selectorStrip:has(#thirdSlot:not([hidden])) { grid-template-columns:1fr; }
  .selectorStrip:has(#thirdSlot:not([hidden])) > div + div { border-inline-start:0; border-block-start:1px solid var(--line); }
  .peerSelector > div { flex-wrap:nowrap; }
  #tableBox:is([data-frameworks="2"],[data-frameworks="3"]) { overflow-x:auto; overscroll-behavior-x:contain; }
  #tableBox:is([data-frameworks="2"],[data-frameworks="3"]) table { display:table; border-collapse:separate; border-spacing:0; min-width:39rem; }
  #tableBox[data-frameworks="3"] table { min-width:56rem; }
  #tableBox:is([data-frameworks="2"],[data-frameworks="3"]) thead { position:static; display:table-header-group; clip-path:none; width:auto; height:auto; white-space:normal; overflow:visible; }
  #tableBox:is([data-frameworks="2"],[data-frameworks="3"]) tbody { display:table-row-group; }
  #tableBox:is([data-frameworks="2"],[data-frameworks="3"]) tr { display:table-row; }
  #tableBox:is([data-frameworks="2"],[data-frameworks="3"]) tr > :is(th,td):not(.rowToggle) { display:table-cell; vertical-align:top; padding:.65rem; border-block-end:1px solid var(--line); }
  #tableBox:is([data-frameworks="2"],[data-frameworks="3"]) tr:not(.evidence) > th:first-child { position:sticky; inset-inline-start:0; z-index:1; width:clamp(7.5rem,32vw,11rem); border-inline-end:1px solid var(--border); }
  #tableBox:is([data-frameworks="2"],[data-frameworks="3"]) tbody th { background:var(--paper); }
  #tableBox:is([data-frameworks="2"],[data-frameworks="3"]) :is(.rowToggle,.mobileFramework,.mobileIndicator,thead th[aria-hidden]) { display:none; }
  #tableBox:is([data-frameworks="2"],[data-frameworks="3"]) .standard { padding-inline-end:0; }
  #tableBox:is([data-frameworks="2"],[data-frameworks="3"]) .evidence > td > div { position:sticky; inset-inline-start:.75rem; max-width:min(83vw,40rem); }
}
#routePanels > details > summary { color:var(--accent); cursor:pointer; min-block-size:44px; padding-block:.6rem; }
#routePanels:has(> details) { display:block; }
#scrollHint { display:none; }
@media(max-width:760px) {
  #scrollHint:not([hidden]) { display:block; margin:.25rem 0 .65rem; color:var(--muted); font-size:.9rem; }
}
.rowShare { display:flex; align-items:center; flex-wrap:wrap; gap:.35rem .85rem; }
.rowShare button { min-height:44px; }
.rowShare [role=status] { color:var(--accent); }
.rowShare input { max-width:100%; }
.statusGroup + .statusGroup { margin-block-start:.65rem; padding-block-start:.65rem; border-block-start:1px solid var(--line); }
@media(max-width:600px) {
  #tableBox[data-frameworks="1"] .statusGroup { grid-column:2; }
}

.choice .framework-code { white-space: nowrap; }
