* { box-sizing: border-box; }
body { margin: 0; }
:root { --content: 1200px; --muted: #495967; }
[hidden] { display: none !important; }
.wrap { width: min(var(--content), calc(100% - 80px)); margin-inline: auto; }
h1,h2,h3,p,fieldset { margin: 0; }
button, input { font: inherit; }
button, .primary-button { cursor: pointer; }
button:focus-visible, a:focus-visible, label:has(input:focus-visible) { outline: 3px solid var(--gc-blue); outline-offset: 4px; }
.bar :focus-visible, .finding :focus-visible { outline-color: white; }
.skip { position: absolute; left: 12px; top: -100px; z-index: 10; background: white; padding: 12px; }
.skip:focus { top: 8px; }
.bar { background: var(--gc-navy); color: white; }
.bar-inner { display: flex; align-items: center; gap: 48px; min-height: 68px; }
.wordmark { width: 144px; height: auto; display: block; }
nav { display: flex; align-self: stretch; align-items: stretch; gap: 28px; }
nav a { color: white; opacity: .79; display: flex; align-items: center; border: 0; border-bottom: 3px solid transparent; padding: 3px 0 0; font-size: .9rem; font-weight: 400; }
nav a[aria-current] { opacity: 1; border-bottom-color: white; }
.local { display: flex; align-items: center; gap: 9px; margin-left: auto; font-size: .84rem; font-weight: 400; }
.local i { width: 8px; height: 8px; border-radius: 100%; background: var(--gc-teal); }
.intro { margin-block: 40px 24px; }
.context, .on-dark-label, .cases legend { font-weight: 500; font-size: .8rem; line-height: 1.45; letter-spacing: .055em; text-transform: uppercase; }
.context { color: var(--muted); }
h1 { font-size: clamp(2.7rem, 4.6vw, 4.1rem); line-height: 1.15; margin: 4px 0 8px; }
.intro > p:last-child { font-size: 1.12rem; color: var(--fg-2); max-width: 810px; }
.cases { padding: 0; border: 0; margin-bottom: 20px; min-width: 0; }
.cases legend { clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; position: absolute; }
.case-list { display: flex; gap: 8px; flex-wrap: wrap; }
.case-choice { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--border-1); border-radius: 8px; font-weight: 500; font-size: .93rem; background: white; cursor: pointer; }
.case-choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.case-choice small, .order-id { font-family: var(--font-mono); font-weight: 400; }
.case-choice small { color: var(--muted); font-size: .8rem; }
.case-choice:has(input:checked) { background: var(--gc-blue); border-color: var(--gc-blue); color: white; }
.case-choice:has(input:checked) small { color: white; }
.board { display: grid; grid-template-columns: minmax(0, 1.95fr) minmax(290px, 1fr); gap: 16px; }
.card, .finding, .brief-card { border-radius: 12px; border: 1px solid var(--border-1); background: white; overflow: hidden; }
.card-head { padding: 20px 24px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card h2,.brief-card h2 { font-size: 1.35rem; font-weight: 500; }
.card-head p { color: var(--muted); font-size: .94rem; margin-top: 4px; }
.map-card { display:flex; flex-direction:column; }
.map-tag { padding: 3px 10px; border-radius: 999px; background: var(--bg-1); color: var(--fg-2); font-size:.8rem; font-weight: 400; }
.map { display: grid; align-items: center; flex: 1; overflow: hidden; background: #dfeaf6; border-block: 1px solid var(--border-1); }
.map svg { width: 100%; height: auto; display: block; }
.arc { fill: none; stroke: var(--gc-blue); stroke-width: 1.5; stroke-dasharray: 5 5; }
.halo { fill: #00cd9130; stroke: #007656; stroke-width: 2; }
.city-box { fill: white; stroke: #bdcad7; }
.city-label { font: 500 16px var(--font-body); fill: var(--gc-navy); }
.geolabel { fill: #77899b; font: 500 10px var(--font-body); letter-spacing: .18em; }
.legend { display: flex; gap: 20px; padding: 12px 24px; flex-wrap: wrap; }
.legend span { display: flex; gap: 8px; align-items: center; color: var(--fg-2); font-size: .85rem; font-weight: 400; }
.key { width: 10px; height: 10px; display: inline-block; }
.square { border-radius: 2px; background: var(--gc-navy); }
.blue { border-radius: 50%; background: var(--gc-blue); }
.ring { border-radius: 50%; border: 2px solid #007656; background: #d9f7ee; }
.finding { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(20px, 2.6vw, 36px); color: white; border-color: var(--gc-navy); background: var(--gc-navy); }
.finding-top { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.order-id { color: #dde5f0; font-size: .81rem; }
.finding h2 { font-size: clamp(1.75rem, 2.85vw, 2.9rem); line-height: 1.13; color: white; margin: 24px 0 12px; }
.finding p { color: white; margin-bottom: 24px; }
.white-button, .primary-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 8px; border: 1px solid transparent; padding: 10px 16px; font-size: .94rem; font-weight: 500; }
.white-button { margin-top: auto; background: white; color: var(--gc-navy); }
.white-button:hover,.primary-button:hover { opacity: .92; }
.primary-button { background: var(--gc-blue); color: white; }
.evidence { margin-top: 16px; }
table { width: 100%; border-collapse: collapse; text-align: left; table-layout: fixed; }
th,td { padding: 13px 24px; border-top: 1px solid var(--border-2); font-size: .95rem; line-height: 1.42; }
thead th { font-size: .81rem; font-weight: 500; color: var(--muted); background: #f8fafc; }
thead th:first-child { width: 24%; }
thead th:nth-child(2) { width: 29%; }
tbody th { font-weight: 500; }
tbody th img { width: 24px; height: 24px; vertical-align: middle; margin-right: 12px; }
footer { display: flex; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; color: var(--muted); margin: 24px 0; font-size: .81rem; }
dialog { width: min(580px, calc(100% - 32px)); border: 1px solid var(--border-1); color: var(--gc-navy); border-radius: 16px; padding: 28px; max-height: 90dvh; }
dialog::backdrop { background: #0a003c80; }
.dialog-top { display: flex; align-items: center; justify-content: space-between; }
.dialog-top button { background: white; border: 1px solid var(--border-1); border-radius: 8px; min-height: 40px; padding: 6px 12px; }
dialog h2 { font-size: 1.8rem; margin-top: 12px; }
dialog h3,.brief-card h3 { font-size: 1.05rem; margin: 16px 0 4px; font-weight: 500; }
dialog p { line-height: 1.5; }
#note-body > p:last-child { font-size: .83rem; color: var(--muted); margin: 20px 0 12px; }
.brief { max-width: 1000px; }
.brief-card { padding: 24px 28px; margin: 16px 0; }
.brief-card h2 { font-size: 1.55rem; margin-bottom: 12px; }
.brief-card p { margin: 8px 0; }
.brief-card a { font-weight: 400; }
.brief-card li { margin-block: 8px; }
.brief-card code { overflow-wrap: anywhere; }
.brief-card pre { padding: 16px; background: var(--gc-light-grey); font-size: .9rem; white-space: pre-wrap; border-radius: 8px; }
.refs { display:flex; flex-wrap:wrap; gap: 6px 18px; font-size:.9rem; }
.options article + article { border-top: 1px solid var(--border-2); padding-top: 4px; margin-top: 18px; }
.brief details summary { font-weight:500; cursor:pointer; color:var(--gc-blue); padding:8px 0; }
@media (max-width: 850px) {
  .wrap { width: calc(100% - 40px); }
  .bar-inner { gap: 28px; }
  .board { grid-template-columns: 1.5fr 1fr; }
  .legend { gap: 8px 16px; }
  .finding-top { flex-wrap: wrap; }
  th,td { padding: 12px; }
}
@media (max-width: 680px) {
  .wrap { width: calc(100% - 32px); }
  .bar-inner { flex-wrap: wrap; gap: 0; padding-top: 16px; }
  .wordmark { width: 124px; }
  .local { order: 2; font-size: .76rem; }
  nav { order: 3; width: 100%; gap: 22px; margin-top: 8px; }
  nav a { padding: 8px 0; }
  .intro { margin: 24px 0 16px; }
  .case-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 4px; }
  .case-choice { display: block; padding: 8px; font-size: .85rem; }
  .case-choice small { display: block; margin-bottom: 2px; }
  .board { grid-template-columns: 1fr; gap: 12px; }
  .card-head { padding: 16px; }
  .legend { padding: 10px 12px; }
  .legend span { font-size: .8rem; }
  .finding h2 { margin: 12px 0 8px; }
  .finding p { margin-bottom: 16px; }
  .geolabel { font-size: 13px; }
  table,tbody,tr,tbody th,td { display: block; width: 100%; }
  thead { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
  tbody tr { border-top: 1px solid var(--border-1); padding: 12px 16px; }
  tbody th,td { border: 0; padding: 4px 0; }
  td::before { content: attr(data-label); display: block; color: var(--muted); font-size: .78rem; font-weight: 500; }
  .brief-card { padding: 18px; }
}
