:root { color-scheme: light; --ink: #153d4e; --muted: #46616f; --border: #cbd9df; --paper: #f5f8fa; --link: #075d80; }
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); font: 16px/1.6 system-ui, sans-serif; background: var(--paper); }
a { color: var(--link); text-underline-offset: .18em; }
:focus-visible { outline: 3px solid #a66b00; outline-offset: 2px; }
main:focus { outline: none; }
header { background: var(--ink); color: #fff; padding: .8rem clamp(1rem, 4vw, 4rem); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; }
header a { color: #fff; font-weight: 700; margin-right: 1rem; }
main { max-width: 1500px; margin: auto; padding: clamp(1rem, 3vw, 2.5rem); }
h1 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); line-height: 1.15; margin: .3rem 0 .8rem; }
h2 { font-size: 1.25rem; margin: 1.6rem 0 .5rem; }
h3 { font-size: 1rem; margin: 1rem 0 .3rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .07em; font-size: .82rem; font-weight: 700; color: var(--muted); margin: 0; }
.lead { font-size: 1.1rem; max-width: 80ch; }
.overview { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 560px), 1fr)); gap: 1rem; }
figure { margin: 0; background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: .6rem; }
img, .svg-holder svg { display: block; width: 100%; height: auto; }
.stage { position: relative; }
.hotspot { position: absolute; border-radius: 6px; border: 2px solid transparent; }
.hotspot:hover, .hotspot:focus-visible { border-color: #a66b00; background: rgb(255 193 7 / 18%); }
.search { display: block; margin: 1.5rem 0 0; font-weight: 600; }
.search input { font: inherit; padding: .35rem .6rem; width: min(100%, 26rem); border: 1px solid var(--border); border-radius: 6px; }
.topics { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: .8rem; }
.topics > li { background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: .8rem 1rem; }
.topics > li { padding: 0; }
.topics > li:has(.card[open]) { grid-column: 1 / -1; }
.card { margin: 0; padding: .8rem 1rem; }
.card summary { list-style: none; display: flex; gap: .5rem; align-items: baseline; }
.card summary::-webkit-details-marker { display: none; }
.card summary::before { content: "▸"; color: var(--link); }
.card[open] summary::before { content: "▾"; }
.card summary h3 { margin: 0; color: var(--link); }
.card summary:hover h3 { text-decoration: underline; }
.card-summary { margin: .4rem 0 0; color: var(--muted); font-size: .92rem; }
.preview-image { display: block; margin: .8rem 0; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.preview-image img { max-height: 70vh; object-fit: contain; }
.preview h4 { margin: .8rem 0 .2rem; }
.preview dt { font-weight: 700; margin-top: .4rem; }
.preview dd { margin: 0; }
.coverage, .hint { color: var(--muted); font-size: .92rem; }
.fs-bar { display: flex; justify-content: flex-end; align-items: center; gap: .4rem; margin-bottom: .4rem; }
.fs-bar button { font-size: .9rem; }
.fs-tools { display: none; align-items: center; gap: .4rem; }
.fs-hint { color: var(--muted); font-size: .85rem; margin-right: .4rem; }
@media (max-width: 700px) { .fs-hint { display: none; } }
.fs.active { background: #fff; padding: .5rem; display: flex; flex-direction: column; height: 100%; }
.fs.maximized { position: fixed; inset: 0; z-index: 10; }
.fs.active .fs-tools { display: flex; }
.fs.active .fs-view { flex: 1; min-height: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; touch-action: none; cursor: grab; }
.fs.active.zoomed .fs-view:active { cursor: grabbing; }
.fs.active .fs-view > * { transform-origin: 0 0; flex: none; }
/* keep the 3:2 picture inside the screen so the clickable labels stay aligned */
.fs.active .stage { width: min(100vw - 1rem, (100vh - 4rem) * 1.5) !important; margin: 0; user-select: none; }
.fs.active .zoomable { max-height: none; border: 0; overflow: visible; background: none; }
.topics strong { margin-right: .3rem; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-bottom: .5rem; }
button { font: inherit; padding: .25rem .8rem; border: 1px solid var(--border); border-radius: 6px; background: #fff; color: var(--ink); cursor: pointer; }
.filters { border: 1px solid var(--border); border-radius: 6px; background: #fff; margin: 0 0 .6rem; display: flex; flex-wrap: wrap; gap: .2rem 1rem; }
.explorer { display: grid; grid-template-columns: minmax(0, 1fr) 18rem; gap: .8rem; align-items: start; }
@media (max-width: 900px) { .explorer { grid-template-columns: minmax(0, 1fr); } }
.zoomable { overflow: auto; max-height: 80vh; background: #fff; border: 1px solid var(--border); border-radius: 8px; }
.info { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: .2rem 1rem; font-size: .93rem; }
.info h2 { margin-top: .8rem; font-size: 1.05rem; }
.info ul { padding-left: 1.1rem; margin: .2rem 0; }
.node[role="button"] { cursor: pointer; }
.node, .edge { transition: opacity .15s; }
.node.dim, .edge.dim { opacity: .15; }
.edge.off { opacity: .04; }
.node.selected path, .node.selected polygon, .node.selected rect, .node:focus-visible path, .node:focus-visible rect { stroke: #a66b00; stroke-width: 3.5; }
@media (prefers-reduced-motion: reduce) { .node, .edge { transition: none; } }
.notice { border-left: 4px solid #a66b00; background: #fff7e6; padding: .1rem 1rem .4rem; margin-top: 1rem; }
.notice h2 { margin-top: .6rem; }
.badge { display: inline-block; font-size: .75rem; font-weight: 700; border-radius: 999px; padding: 0 .55rem; border: 1px solid currentcolor; white-space: nowrap; }
.badge.read { color: #1d6b45; }
.badge.record { color: #815100; }
.badge.search, .badge.unsupported, .badge.contradicted { color: #9c3d22; }
.badge.not_reviewed { color: #46616f; }
.badge.direct { color: #1d6b45; }
.badge.partial { color: #815100; }
.evidence { margin: 0; display: inline-block; vertical-align: top; }
.evidence ul { font-size: .88rem; }
table { border-collapse: collapse; width: 100%; background: #fff; }
th, td { text-align: left; vertical-align: top; padding: .4rem .7rem; border-bottom: 1px solid var(--border); }
th { background: #e8f0f3; }
.table-scroll { overflow: auto; }
details { margin: 1rem 0; }
summary { cursor: pointer; font-weight: 600; }
.pager { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--border); margin-top: 2rem; padding-top: 1rem; }
footer { border-top: 1px solid var(--border); color: var(--muted); font-size: .88rem; padding: 1rem clamp(1rem, 4vw, 4rem); }
.skip { position: absolute; left: 1rem; top: -5rem; background: #fff; padding: .5rem; }
.skip:focus { top: 0; }
body:has(.fs.maximized) { overflow: hidden; }
.draft { margin: 0; padding: .6rem clamp(1rem, 4vw, 4rem); background: #fff7e6; border-bottom: 3px solid #a66b00; }
