:root {
    color-scheme: light;
    --ink: #182b36;
    --muted: #516371;
    --line: #dce5eb;
    --surface: #fff;
    --canvas: #f3f6f8;
    --rail: #102430;
    --accent: #006c63;
    --accent-soft: #dcefeb;
    font: 16px/1.5 "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--canvas); }
a { color: var(--accent); text-underline-offset: .16em; }
a:hover { color: #00463f; }
:focus-visible { outline: 3px solid #148cce; outline-offset: 3px; }
h1, h2, h3, h4, p { margin: 0; }
h1 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); line-height: 1.15; letter-spacing: -.025em; }
h2 { font-size: 1rem; line-height: 1.4; font-weight: 650; }
h3 { font-size: 1.12rem; }
h4 { font-size: .9rem; }
code { font: .81rem/1.5 ui-monospace, Consolas, monospace; overflow-wrap: anywhere; }
section { min-width: 0; }

.shell { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: 100vh; }
.main { width: min(100%, 1500px); margin-inline: auto; padding: 38px clamp(18px, 3.1vw, 48px) 60px; }
.shell-guest { display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; }
.shell-guest .main { max-width: 490px; }
.skip { position: absolute; z-index: 20; top: .5rem; left: .5rem; padding: .5rem .85rem; background: var(--surface); transform: translateY(-180%); }
.skip:focus { transform: none; }
.rail { display: flex; flex-direction: column; min-width: 0; background: var(--rail); color: #b6c8d2; padding: 28px 16px; }
.rail a { color: #c1d0d8; }
.brand { display: flex; gap: .7rem; align-items: center; text-decoration: none; color: inherit; font-size: .9rem; font-weight: 650; }
.rail .brand { color: #f0f8f9; padding: 0 2px 26px; }
.mark { background: #99ded0; color: var(--rail); border-radius: .6rem; width: 2.1rem; height: 2.1rem; display: inline-grid; place-items: center; flex: 0 0 auto; font-size: 1.05rem; font-weight: 800; }
.brand-caption { display: block; font-size: .75rem; color: #abc2cc; font-weight: 400; }
.rail-desktop { display: flex; flex-direction: column; flex: 1; }
.rail-mobile { display: none; }
.rail nav, .nav-group { display: grid; gap: 4px; }
.rail nav { gap: 14px; }
.nav-group p { padding: .3rem .7rem .14rem; color: #b6c8d2; font-size: .75rem; font-weight: 650; }
.rail nav a { display: flex; align-items: center; border-radius: .45rem; padding: .55rem .7rem; text-decoration: none; }
.rail nav a:hover, .rail nav a[aria-current] { color: #edfbf8; background: #24434d; }
.rail nav a[aria-current] { font-weight: 650; box-shadow: inset 3px 0 #99ded0; }
.rail-session { margin-top: auto; padding: 24px .7rem 0; font-size: .85rem; display: flex; justify-content: space-between; gap: .6rem; }
.rail-session .link-button { color: #bdecdf; }

.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 27px; }
.page-head p { margin: .55rem 0 0; }
.page-head .breadcrumbs { margin: 0 0 .45rem; }
.scan-context { display: flex; flex-wrap: wrap; gap: .6rem 1.25rem; margin: 0 0 18px; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: .65rem; background: var(--surface); }
.scan-context dt { color: var(--muted); font-size: .82rem; }
.scan-context dd { margin: 0; font-size: .91rem; font-weight: 650; }
.muted { color: var(--muted); font-size: .9rem; }
.value { font-size: clamp(1.55rem, 2.9vw, 2.3rem); line-height: 1.15; letter-spacing: -.025em; font-weight: 700; font-variant-numeric: tabular-nums; }
.value-unavailable { font-size: 1.08rem; letter-spacing: 0; }
.cards, .split, .stack { display: grid; gap: 16px; }
.cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); margin-bottom: 22px; }
.coverage-cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 155px), 1fr)); gap: 10px; }
.split { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 22px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: .75rem; padding: 20px; }
.card > * + * { margin-top: .65rem; }
.card > .stack { gap: .75rem; }
.cards p { font-size: .85rem; color: var(--muted); }
.card.table-card { padding: 0; }
.card.table-card > * + * { margin-top: 0; }
.overview-empty, .report-filters { margin-bottom: 18px; }
.report-actions { margin-top: 18px; }
.disclosure > summary { color: var(--accent); min-height: 2rem; font-weight: 650; cursor: pointer; }
.disclosure-body { margin-top: .75rem; }
.disclosure-body.split { margin-bottom: 0; }
.disclosure-body section > * + *, .disclosure-body > * + * { margin-top: .55rem; }
.disclosure-body.props > * + * { margin-top: 0; }
.section-title { font-size: 1.4rem; margin-top: 1.15rem; }
.login { padding: clamp(18px, 5vw, 38px); }
.login-brand { margin-bottom: 1.2rem; }

button, .button { width: fit-content; min-height: 2.4rem; border: 1px solid transparent; border-radius: .4rem; padding: .48rem .75rem; color: white; background: var(--accent); cursor: pointer; font: inherit; font-size: .9rem; font-weight: 650; text-decoration: none; display: inline-flex; align-items: center; }
button:hover, .button:hover { color: white; background: #004f47; }
.secondary { color: var(--accent); background: var(--surface); border-color: var(--line); }
.secondary:hover { color: var(--accent); background: var(--accent-soft); }
.link-button { min-height: auto; padding: 0; color: var(--accent); background: transparent; text-decoration: underline; font-weight: 500; border: 0; border-radius: 0; }
.link-button:hover { color: var(--accent); background: transparent; }
label { display: grid; gap: .24rem; max-width: 100%; color: var(--ink); font-size: .87rem; font-weight: 600; }
input, select, textarea { max-width: 100%; min-width: 0; min-height: 2.4rem; border: 1px solid #b9c9d1; border-radius: .4rem; color: var(--ink); background: var(--surface); padding: .43rem .6rem; font: inherit; font-weight: 400; }
textarea { resize: vertical; }
.check { display: flex; align-items: center; gap: .5rem; }
.check input { min-height: auto; accent-color: var(--accent); width: 1.1rem; height: 1.1rem; }
.form-row, .filters, .paging, .chips, .tabs { display: flex; flex-wrap: wrap; align-items: end; gap: .65rem; }
.form-row { margin-bottom: 12px; }
.filters { padding: 14px; }
.report-filters .filters { padding: 0; }
.filters input[type=number] { width: 7rem; }
.filters a { padding-block: .48rem; }
.tabs { margin-bottom: .85rem; }
.tabs a { padding: .5rem .8rem; border: 1px solid transparent; text-decoration: none; border-radius: .4rem; }
.tabs a[aria-current], .tabs a:hover { background: var(--surface); border-color: var(--line); font-weight: 650; }
.paging { border-top: 1px solid var(--line); align-items: center; justify-content: flex-end; padding: 12px 14px; font-size: .85rem; }
.paging span:first-child { margin-right: auto; color: var(--muted); }
.chips, .report-meta { margin-bottom: 12px; }
.chips a { text-decoration: none; display: flex; gap: .3rem; align-items: center; font-size: .88rem; }
.chips a[aria-current] { outline: 1px solid var(--accent); outline-offset: 3px; border-radius: .3rem; }
.report-meta { font-size: .9rem; color: var(--muted); }
.report-note { margin-bottom: .65rem; }

.table-wrap { min-width: 0; overflow-x: auto; }
.table-wrap table { min-width: 45rem; }
.mobile-table-hint { display: none; padding: .55rem .75rem; border-bottom: 1px solid var(--line); }
table { border-collapse: collapse; width: 100%; text-align: left; font-size: .89rem; }
th, td { padding: 12px 14px; vertical-align: top; border-top: 1px solid var(--line); }
th { background: #f7fafb; font-size: .82rem; color: #405663; font-weight: 650; }
tbody tr:hover { background: #f7fbfa; }
.status { display: inline-block; color: #354c59; background: #e9f0f4; border-radius: 1rem; padding: .16rem .56rem; font-weight: 650; font-size: .78rem; }
.status.good { color: #0e604c; background: #ddefe8; }
.status.warn { color: #77520c; background: #fff0cf; }
.status.danger { color: #963326; background: #fce6e2; }
.notice { background: #e4f2ee; color: #16463c; border: 1px solid #bbdcd4; border-radius: .5rem; padding: .65rem .85rem; margin: 0 0 1rem; }
.notice-info { background: #edf4f8; color: #274c5b; border-color: #cbdde6; }
.notice-warning { background: #fff3da; color: #64420b; border-color: #ecd7aa; }
.notice-error { background: #fff0eb; color: #822c24; border-color: #efc8bf; }
.empty { color: var(--muted); padding: 1.15rem; }
.empty > * + *, .card.table-card > .empty > * + * { margin-top: .45rem; }
.block { display: block; }
.props { display: grid; grid-template-columns: minmax(8rem, 1fr) minmax(0, 1.5fr); margin: .8rem 0 0; gap: .35rem .7rem; font-size: .88rem; }
.props dt { color: var(--muted); }
.props dd { margin: 0; overflow-wrap: anywhere; }
.compact { padding-left: 1.1rem; font-size: .9rem; }
.feedback { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(9rem, 1fr) repeat(2, minmax(0, 1fr)); align-items: end; gap: .65rem; }
.proof { max-width: 26rem; font-size: .85rem; }
.proof summary { color: var(--accent); cursor: pointer; }
.proof ul { padding-left: 1.1rem; }
.proof a, .proof-ref { overflow-wrap: anywhere; }
.proof code { display: block; color: var(--muted); }
.tech-detail, .metric-hint { color: var(--muted); font-size: .84rem; }
.tech-detail summary, .metric-hint summary { color: var(--accent); width: fit-content; padding-block: .2rem; cursor: pointer; }
.metric-hint p { margin-top: .35rem; }

@media (max-width: 1020px) {
    .mobile-table-hint { display: block; }
}

@media (max-width: 820px) {
    .shell { display: block; }
    .shell-guest { display: grid; }
    .rail { display: block; position: relative; padding: 9px 16px; }
    .rail .brand { min-height: 44px; padding: 0; margin-right: 5.2rem; }
    .rail-desktop { display: none; }
    .rail-mobile { display: block; }
    .rail-mobile > summary { position: absolute; top: 9px; right: 16px; display: flex; justify-content: center; align-items: center; min-height: 44px; padding: .4rem .8rem; border: 1px solid #65818f; border-radius: .45rem; color: #f0f8f9; cursor: pointer; }
    .rail-mobile[open] nav { margin-top: .65rem; }
    .rail-mobile nav a, .rail-mobile .link-button { min-height: 44px; }
    .rail-session { padding: 7px .7rem 0; align-items: center; }
    .main { padding-top: 24px; }
}

@media (max-width: 590px) {
    .page-head, .split, .feedback { display: grid; grid-template-columns: 1fr; }
    .page-head { align-items: start; gap: .65rem; }
    .page-head .status { justify-self: start; }
    .card { padding: 15px; }
    .overview-cards, .coverage-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .overview-cards > *, .coverage-cards > * { min-width: 0; overflow-wrap: anywhere; }
    .scan-context { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .filters label { min-width: 0; }
    .disclosure > summary, .metric-hint summary, .proof summary, .filters :is(button, input, select), .tabs a, .chips a, .paging a { min-height: 44px; }
    .disclosure > summary { align-content: center; }
    .chips { align-items: stretch; }
    .paging a { display: inline-flex; align-items: center; }
    th, td { padding: 9px; }
}

.research-nav { display: flex; flex-wrap: wrap; gap: .45rem 1.15rem; margin-bottom: 18px; }
.research-nav a { display: inline-flex; align-items: center; min-height: 36px; font-size: .9rem; font-weight: 650; }
.research-lead { border-top: 4px solid var(--accent); }
.research-lead > h2, .research-section > h2 { font-size: 1.25rem; }
.research-overview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; margin-block: 1rem; }
.research-overview > div { background: var(--canvas); border: 1px solid var(--line); border-radius: .45rem; padding: .6rem .75rem; min-width: 0; }
.research-overview strong { display: block; font-size: 1.4rem; line-height: 1.2; }
.research-overview :is(a, span) { font-size: .8rem; color: var(--muted); }
.research-section { margin-top: 20px; scroll-margin-top: 1rem; }
.research-section > .section-title { margin-bottom: .65rem; }
.research-decision-list, .research-subjects { list-style: none; padding: 0; margin-bottom: 0; }
.research-decision-list li { padding: .55rem 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.research-decision-list a { font-weight: 650; margin-right: .55rem; }
.research-subjects { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: .45rem; }
.research-subjects > li { border: 1px solid var(--line); border-radius: .4rem; padding: .5rem .7rem; overflow-wrap: anywhere; }
.research-subjects summary, .source-detail summary { color: var(--accent); cursor: pointer; }
.research-links { display: flex; flex-wrap: wrap; gap: .35rem .85rem; }
.research-recommendation { scroll-margin-top: .75rem; }
.research-recommendation > header { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; padding-bottom: .45rem; border-bottom: 1px solid var(--line); }
.research-proof-list { overflow-wrap: anywhere; }
.table-scroll { min-width: 0; max-width: 100%; overflow-x: auto; }
.research-table caption { text-align: left; }
.comparison-table td:nth-child(3) { white-space: nowrap; }
.research-recommendation, .research-sources { min-width: 0; }
.research-table { text-align: left; font-variant-numeric: tabular-nums; }
.research-table th { font-weight: 650; }
.comparison-table { min-width: 520px; }
.source-table { min-width: 1100px; }
.source-table a { overflow-wrap: anywhere; }
.source-table td a { display: block; }
.research-filters { padding-inline: 0; }
.research-details > .source-detail { border-top: 1px solid var(--line); padding-block: .45rem; }
.source-detail { scroll-margin-top: .75rem; }
.source-detail:target { background: var(--accent-soft); }
.source-detail > * + * { margin-top: .55rem; }
.research-series { margin-inline: 0; max-width: 36rem; }
.research-series div { display: grid; grid-template-columns: minmax(6rem, 1fr) minmax(4rem, 3fr) minmax(2rem, auto); align-items: center; gap: .4rem; }
.research-series meter { width: 100%; accent-color: var(--accent); }
.research-series time { font-size: .85rem; }
.research-series figcaption { font-weight: 650; margin-bottom: .35rem; }

@media (max-width: 590px) {
    .research-nav { gap: .25rem .75rem; }
    .research-nav a, .source-detail summary { min-height: 44px; align-content: center; }
    .research-overview { gap: .25rem; }
    .research-overview > div { padding: .45rem; overflow-wrap: anywhere; }
    .research-overview strong { font-size: 1.2rem; }
    .research-recommendation > header { flex-wrap: wrap; }
    .research-filters label:first-child { width: 100%; }
}
