/* Live snapshot page (data.html). Shared tokens live in site-shell.css. */
.notice { margin: 0; padding: 14px 18px; border-radius: 12px; border: 2px solid var(--accent-orange); background: #FFF8F1; color: var(--ink-2); }
.notice-live { border-color: var(--navy); background: var(--good-bg); color: var(--navy); }
.tab-panel { display: flex; flex-direction: column; gap: 20px; }
.tab-panel:focus { outline: none; }
.tab-panel[hidden] { display: none !important; }
.space-between { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
.pill-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.plain-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }

/* Filters */
.filters { display: flex; flex-direction: column; gap: 14px; }
.filters-top { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.filters h2:focus { outline: none; }
.more-filters { display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--line); padding-top: 14px; }

/* Hero */
.hero { background: var(--navy); color: #FFFFFF; border-radius: 16px; padding: 26px 28px; display: flex; flex-direction: column; gap: 20px; }
.hero :focus-visible { outline-color: var(--maize); }
.hero-top { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-end; }
.hero-label { margin: 0; font-size: 15px; font-weight: 600; color: var(--head-sub); }
.hero-number { margin: 4px 0; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
#hero-at { font-size: 56px; font-weight: 800; color: var(--maize); line-height: 1; }
.hero-of { font-size: 20px; font-weight: 600; }
.hero-sub { margin: 0; color: #E4ECF4; max-width: 70ch; }
.hero-deadline { display: flex; flex-direction: column; align-items: flex-end; color: var(--head-sub); font-size: 14px; }
.hero-deadline strong { font-size: 30px; font-weight: 800; color: var(--maize); line-height: 1.2; }
.hero-bar { display: flex; height: 18px; border-radius: 9px; overflow: hidden; gap: 2px; background: rgba(255,255,255,.15); }
.hero-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.group-btn {
  display: flex; align-items: center; gap: 12px; border: 1px solid rgba(255,255,255,.45); background: transparent;
  color: #FFFFFF; border-radius: 10px; padding: 10px 14px; min-height: 60px; cursor: pointer; text-align: left;
}
.group-btn:hover { background: rgba(255,255,255,.1); }
.group-btn[aria-pressed="true"] { background: #FFFFFF; color: var(--navy); border-color: #FFFFFF; }
.group-btn .swatch { width: 14px; height: 14px; border-radius: 3px; border: 1px solid #FFFFFF; flex: none; }
.group-btn[aria-pressed="true"] .swatch { border-color: var(--navy); }
.group-text { display: flex; flex-direction: column; line-height: 1.3; }
.group-text span { font-size: 13px; }
.group-count { margin-left: auto; font-weight: 800; font-size: 18px; }
@media (max-width: 600px) { .hero-deadline { align-items: flex-start; } #hero-at { font-size: 44px; } }

/* Progress strip */
.progress-strip { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; padding: 16px 22px; }
.progress-strip h2 { font-size: 16px; }
.progress-strip .pill { font-size: 14px; padding: 5px 12px; }
.strip-link { margin-left: auto; font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; }

/* KPI cards */
.kpi { display: flex; flex-direction: column; gap: 6px; padding: 20px; }
.kpi h3 { margin: 0; font-size: 15px; }
.kpi-value { font-size: 32px; font-weight: 800; color: var(--navy); line-height: 1.2; display: block; }
.ready-stats { gap: 28px; }

/* Lists in panels */
/* Furthest from the goal: rank, full readable name, context, then the score. */
#far-list { gap: 0; }
.far-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 4px 12px; align-items: start; padding: 12px 0; border-top: 1px solid var(--line); }
.far-row:first-child { border-top: 0; padding-top: 4px; }
.far-rank { font-weight: 800; color: var(--muted); font-size: 15px; padding-top: 8px; text-align: center; }
.far-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.far-main .name-btn { padding: 4px 0; min-height: 44px; font-size: 16px; overflow-wrap: anywhere; line-height: 1.35; }
.far-meta { font-size: 14px; color: var(--muted); }
.far-bar { margin-top: 6px; height: 10px; }
.far-score { display: flex; flex-direction: column; align-items: flex-end; text-align: right; padding-top: 6px; white-space: nowrap; }
.far-score strong { font-size: 20px; color: var(--bad); line-height: 1.2; }
.far-score span { font-size: 13px; color: var(--muted); }
.levels { gap: 12px; }
.level-head { display: flex; justify-content: space-between; gap: 8px; font-size: 15px; margin-bottom: 4px; }
.problem-row {
  display: flex; gap: 12px; align-items: center; width: 100%; border: 0; border-top: 1px solid var(--line);
  background: none; padding: 10px 4px; cursor: pointer; text-align: left; color: var(--ink); min-height: 52px; font-size: 15px;
}
.problem-row:hover { background: #F2F5F8; }
.problem-row:hover .problem-name, .cov-row:hover strong, .aud-btn:hover strong, .problem-btn:hover strong { text-decoration: underline; }
.problem-row .problem-name { color: var(--link); }
.level-pill { width: 60px; text-align: center; }
.problem-name { flex: 1; font-weight: 600; }
.problem-nums { text-align: right; font-size: 14px; }

/* Common problems */
.aud-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.aud-btn {
  display: flex; flex-direction: column; gap: 2px; text-align: left; border: 1px solid var(--line-strong); background: var(--card);
  border-radius: 12px; padding: 14px 16px; cursor: pointer; color: var(--ink); min-height: 44px; font-size: 14px;
}
.aud-btn strong { font-size: 16px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.aud-btn[aria-pressed="true"] .chev::after { border-color: #FFFFFF; }
.aud-btn .hint, .problem-btn .hint { color: var(--link); text-decoration: underline; font-size: 13px; }
.aud-btn[aria-pressed="true"] .hint { color: #FFFFFF; }
.group-hint { margin: 0; font-size: 14px; color: #E4ECF4; }
.aud-btn span { color: var(--muted); }
.aud-btn:hover { border-color: var(--navy); background: #F2F5F8; }
.aud-btn[aria-pressed="true"] { background: var(--navy); color: #FFFFFF; border-color: var(--navy); }
.aud-btn[aria-pressed="true"] span { color: #E4ECF4; }
.problems-layout { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.problem-list-card { flex: 1 1 340px; min-width: 0; padding: 20px; }
.problem-detail { flex: 2 1 560px; min-width: 0; gap: 18px; }
.problem-list { gap: 8px; }
.problem-btn {
  display: flex; flex-direction: column; gap: 8px; width: 100%; text-align: left; border: 1px solid var(--line);
  background: var(--card); border-radius: 10px; padding: 12px 14px; cursor: pointer; font-size: 14px; color: var(--ink); min-height: 44px;
}
.problem-btn:hover { border-color: var(--navy); }
.problem-btn[aria-pressed="true"] { border: 2px solid var(--navy); background: #F3F8FD; box-shadow: inset 5px 0 0 var(--navy); }
.problem-btn__top { display: flex; gap: 8px; justify-content: space-between; align-items: flex-start; font-size: 15px; }
.problem-btn .bar { height: 8px; }
.problem-btn__meta { display: flex; gap: 6px; flex-wrap: wrap; font-size: 14px; }
.detail-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
.detail-head h2 { font-size: 22px; font-weight: 800; }
.detail-head h2:focus { outline: none; }
.problem-detail h3, .side-panel h3 { margin: 0 0 8px; font-size: 16px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
/* Share fill: the tint runs to --fill; the % is also in the box's text. */
.stat-box--fill { background: linear-gradient(to right, #DCE7F3 var(--fill, 0%), var(--card) var(--fill, 0%)); }
.stat-pct { font-size: 16px; font-weight: 700; }
.share-table th[scope="row"] { text-align: left; font-weight: 700; }
.share-cell { display: flex; align-items: center; gap: 8px; min-width: 120px; }
.share-cell .bar { flex: 1; height: 10px; }
.share-cell strong { min-width: 48px; text-align: right; }
.stat-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.soft-box { background: var(--soft); border-radius: 12px; padding: 16px 18px; }
.soft-box p { margin: 0 0 8px; }
.soft-box ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.mini-bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.mini-bar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) 44px; gap: 10px; align-items: center; font-size: 14px; }
.mini-bar strong { text-align: right; }
.kv-list { list-style: none; margin: 0; padding: 0; }
.kv-list li { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding: 8px 0; font-size: 15px; }

/* Site table */
.sites-table td:first-child { min-width: 240px; }
.sites-table .pill { margin-left: 4px; }

@media print {
  .tab-panel[hidden] { display: flex !important; }
  .hero { color: #000; background: #fff; border: 1px solid #000; }
}

/* Missing data: a quiet line on the overview, the detail lives in its own tab. */
.subtle-note { margin: 10px 0 0; font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; }
.subtle-note .link-btn { padding: 10px 2px; font-size: 14px; }
.missing-help { border: 1px solid var(--line); border-radius: 10px; padding: 6px 14px; }
.missing-help ul { margin: 6px 0 10px; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; max-width: 80ch; }
