/* Public report, responsive table, and keyboard-accessibility refinements. */
:focus-visible {
  outline: 3px solid #6aa83a;
  outline-offset: 3px;
}

.step-grid {
  grid-template-columns: repeat(3, 1fr);
}

.vmx,
.cvenum {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-variant-numeric: tabular-nums;
}

.vmx { min-width: 700px; }
.cvenum { min-width: 940px; }

.vmx th,
.vmx td {
  padding: 10px 12px;
  text-align: center;
  border: 1px solid rgba(128, 128, 128, .28);
}

.vmx th:first-child,
.vmx td:first-child,
.vmx td:last-child { text-align: left; }
.vmx .pos { background: rgba(40, 160, 90, .16); color: #1b7a44; font-weight: 700; }
.vmx .def { color: #6f7878; font-style: italic; }

.cvenum th,
.cvenum td {
  padding: 11px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(128, 128, 128, .25);
  vertical-align: top;
  font-size: 13px;
}

.cvenum th { font: 500 11px var(--mono); letter-spacing: .03em; }
.cvenum code { font-size: .85em; }
.section-ink .vmx .pos { color: #9ee66e; }
.section-ink .vmx .def { color: #bdc8c8; }
.result-table-wrap { scrollbar-color: #708a75 transparent; }
.result-table-wrap:focus-visible { outline-offset: 5px; }

.report-links {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.report-links a {
  display: block;
  padding: 14px 16px;
  border: 1px solid rgba(128, 128, 128, .3);
  border-radius: 10px;
  color: inherit;
}

.report-links a:hover { border-color: #5b9c2d; background: rgba(91, 156, 45, .06); }
.report-links a .ext { float: right; opacity: .65; }
.report-links a small { display: block; opacity: .72; margin-top: 4px; }
.report-links a.primary { border-width: 2px; border-color: rgba(91, 156, 45, .55); }
.report-links.compact { grid-template-columns: repeat(3, 1fr); }

.comparison-chart {
  margin: 24px 0 34px;
  border-top: 1px solid rgba(255, 255, 255, .16);
}

.comparison-chart-row {
  display: grid;
  grid-template-columns: minmax(190px, 1.15fr) minmax(280px, 2.4fr) 76px;
  gap: 22px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
}

.comparison-chart-label strong,
.comparison-chart-label span { display: block; }
.comparison-chart-label strong { font: 700 14px var(--mono); color: #b6f55f; }
.comparison-chart-label span { margin-top: 5px; font-size: 12px; color: #bdc8c8; }

.repeat-bars { display: grid; gap: 7px; }
.repeat-bars > div {
  display: grid;
  grid-template-columns: 25px minmax(120px, 1fr) 38px;
  gap: 8px;
  align-items: center;
}
.repeat-bars span,
.repeat-bars strong { font: 600 11px var(--mono); }
.repeat-bars span { color: #9eaaaa; }
.repeat-bars strong { text-align: right; color: #f5f7ef; }
.repeat-bars i { display: block; height: 9px; background: rgba(255, 255, 255, .1); }
.repeat-bars i b { display: block; height: 100%; background: #8dca52; }
.comparison-median { text-align: right; }
.comparison-median span,
.comparison-median strong { display: block; }
.comparison-median span { font: 500 10px var(--mono); color: #9eaaaa; text-transform: uppercase; }
.comparison-median strong { margin-top: 3px; font: 700 23px var(--mono); color: #b6f55f; }
.chart-axis {
  display: flex;
  justify-content: space-between;
  margin: 8px 96px 0 calc(190px + 22px + 33px);
  color: #9eaaaa;
  font: 500 11px var(--mono);
}
.comparison-table { min-width: 900px; }
.comparison-table td:first-child small { display: block; margin-top: 4px; color: #7c8787; }

.stage-chart {
  display: flex;
  min-height: 58px;
  margin-top: 20px;
  overflow: hidden;
  background: rgba(128, 128, 128, .12);
}
.stage-chart > span {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 8px 10px;
  color: #101820;
}
.stage-chart b { font: 700 18px var(--mono); }
.stage-chart em { overflow: hidden; font: 600 10px var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.stage-migrated { background: #a9df70; }
.stage-historical_verified { background: #80b9c4; }
.stage-linked { background: #e0c26a; }
.stage-deferred { background: #d69a69; }
.stage-excluded { background: #b6b9b4; }
.stage-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 14px 0 28px;
  padding: 0;
  list-style: none;
}
.stage-legend li { display: grid; grid-template-columns: 10px auto auto; gap: 7px; align-items: center; font-size: 12px; }
.stage-legend i { width: 10px; height: 10px; background: currentColor; }
.stage-legend li.stage-migrated { color: #588b2c; background: none; }
.stage-legend li.stage-historical_verified { color: #3e808d; background: none; }
.stage-legend li.stage-linked { color: #967820; background: none; }
.stage-legend li.stage-deferred { color: #a05b2d; background: none; }
.stage-legend li.stage-excluded { color: #747a72; background: none; }
.stage-legend span { color: inherit; }
.stage-legend strong { color: #243039; font: 600 11px var(--mono); }
.compact-callout { margin-top: 24px; }
.public-cve-table { min-width: 1320px; }

.case-link { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; color: inherit; }
.case-link span { color: #8dca52; font: 600 10px var(--mono); white-space: nowrap; }

.general-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 20px;
}
.metric-panel { min-width: 0; }
.metric-panel h3 { margin-bottom: 16px; font-size: 18px; }
.metric-panel h3 small { display: block; margin-top: 4px; color: #778181; font: 500 10px var(--mono); }
.metric-row {
  display: grid;
  grid-template-columns: 66px minmax(100px, 1fr) 62px;
  gap: 8px;
  align-items: center;
  min-height: 31px;
}
.metric-row > span,
.metric-row > strong { font: 600 10px var(--mono); }
.metric-row > strong { text-align: right; }
.diverging-track { position: relative; display: block; height: 9px; background: rgba(80, 92, 92, .1); }
.diverging-track::after { content: ""; position: absolute; top: -3px; bottom: -3px; left: 50%; width: 1px; background: #73807d; }
.diverging-track b { position: absolute; top: 0; height: 100%; width: var(--size); }
.diverging-track b.positive { left: 50%; background: #6ca83c; }
.diverging-track b.negative { right: 50%; background: #bf704f; }
.diverging-axis { display: grid; grid-template-columns: 1fr 1px 1fr; margin: 9px 62px 0 74px; color: #76817e; font: 500 10px var(--mono); }
.diverging-axis span:last-child { text-align: right; }
.diverging-axis i { background: #73807d; }

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.evidence-grid article { padding: 22px; border-top: 3px solid #83be4d; background: rgba(128, 128, 128, .055); }
.evidence-grid span { color: #65963c; font: 600 10px var(--mono); }
.evidence-grid h3 { margin: 14px 0 10px; font-size: 18px; overflow-wrap: anywhere; }
.evidence-grid p { font-size: 13px; color: #6e7777; }
.case-repeat-chart { display: grid; gap: 12px; margin: 20px 0 30px; }
.case-repeat-chart > div { display: grid; grid-template-columns: 32px minmax(160px, 1fr) 48px; gap: 10px; align-items: center; }
.case-repeat-chart span,
.case-repeat-chart strong { font: 600 11px var(--mono); }
.case-repeat-chart strong { text-align: right; color: #b6f55f; }
.case-repeat-chart i { height: 12px; background: rgba(255, 255, 255, .1); }
.case-repeat-chart i b { display: block; height: 100%; background: #8dca52; }
.section-ink .stat-grid article { color: var(--ink); }
.smoke-stat-grid { row-gap: 12px; }
.smoke-stat-grid strong { font-size: clamp(23px, 2.5vw, 35px); overflow-wrap: anywhere; }
.arm-result-table { width: 100%; min-width: 920px; border-collapse: collapse; text-align: right; }
.arm-result-table th,
.arm-result-table td { padding: 15px 14px; border-bottom: 1px solid #3b4c50; font-size: 12px; }
.arm-result-table th { color: #a5b6b8; background: #19272d; font: 500 10px var(--mono); letter-spacing: .03em; }
.arm-result-table th:first-child,
.arm-result-table th:nth-child(2),
.arm-result-table td:first-child,
.arm-result-table td:nth-child(2) { text-align: left; }
.arm-result-table tbody tr:last-child td { border-bottom: 0; }
.arm-result-table tbody tr:nth-child(3n) td { border-bottom-color: #738283; }
.arm-label { display: inline-block; min-width: 34px; padding: 4px 7px; text-align: center; font: 700 10px var(--mono); }
.arm-b0 { color: #d3dcdd; background: #3c4a50; }
.arm-b1 { color: #d8edc3; background: #395635; }
.arm-b2 { color: #18220f; background: #9bd55d; }
.paired-summary { margin-top: 72px; }
.arm-status-table { min-width: 720px; text-align: left; }
.arm-status-table td:nth-child(2) { color: #d9e7c9; font-weight: 700; }
.arm-target-figure { padding: 28px 30px 24px; border: 1px solid #44585d; background: #142229; }
.chart-heading { display: flex; justify-content: space-between; gap: 30px; align-items: end; }
.chart-heading h3 { margin: 0; font-size: 22px; }
.chart-heading p { max-width: 520px; margin: 0; color: #a6b7b8; font-size: 12px; }
.arm-target-legend { display: flex; flex-wrap: wrap; gap: 18px; margin: 24px 0 20px; color: #b9c8c9; font: 600 10px var(--mono); }
.arm-target-legend span { display: flex; gap: 7px; align-items: center; }
.arm-target-legend i { width: 18px; height: 7px; }
.arm-target-chart { display: grid; gap: 22px; }
.arm-target-chart article { display: grid; grid-template-columns: 34px 1fr; gap: 18px; align-items: start; }
.arm-target-chart h3 { margin: 5px 0 0; color: #dce7e8; font: 700 11px var(--mono); }
.arm-target-chart article > div { display: grid; gap: 8px; }
.arm-target-chart article > div > div { display: grid; grid-template-columns: 42px minmax(160px, 1fr) 48px; gap: 10px; align-items: center; }
.arm-target-chart article > div > div > i { display: block; height: 10px; background: rgba(255, 255, 255, .08); }
.arm-target-chart article > div > div > i b { display: block; min-width: 0; height: 100%; }
.arm-target-chart strong { color: #f2f5ec; text-align: right; font: 700 11px var(--mono); }
.arm-bar-b0 { display: block; background: #64747a; }
.arm-bar-b1 { display: block; background: #668d50; }
.arm-bar-b2 { display: block; background: #a0dc5c; }
.arm-axis { display: flex; justify-content: space-between; margin: 12px 58px 0 104px; color: #829092; font: 500 9px var(--mono); }
.metric-table-disclosure { margin-top: 18px; border: 1px solid #44585d; }
.metric-table-disclosure summary { cursor: pointer; padding: 14px 18px; color: #dce8e7; font-size: 12px; font-weight: 700; }
.metric-table-disclosure[open] summary { border-bottom: 1px solid #44585d; }
.metric-table-disclosure .result-table-wrap { border: 0; }
.paired-summary .stat-grid article.metric-positive { border-top: 4px solid #77b844; }
.paired-summary .stat-grid article.metric-negative { border-top: 4px solid #c47555; }
.paired-summary .stat-grid article.metric-neutral { border-top: 4px solid #8d9998; }
.rq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.rq-card { min-height: 190px; padding: 26px; border: 1px solid var(--line); background: #fff; }
.rq-card > div { display: flex; justify-content: space-between; gap: 18px; align-items: start; }
.rq-card span { color: #5d6a6b; font: 600 11px var(--mono); }
.rq-card b { flex: none; padding: 5px 8px; font: 700 10px var(--mono); }
.rq-card p { margin: 42px 0 0; color: #526060; font-size: 14px; }
.rq-card.tone-supported { border-top: 4px solid #72a940; }
.rq-card.tone-supported b { color: #2f662f; background: #e3f1d8; }
.rq-card.tone-unsupported { border-top: 4px solid #bc6c4c; }
.rq-card.tone-unsupported b { color: #7f3d29; background: #f4e1d9; }
.rq-card.tone-limited { border-top: 4px solid #c89747; }
.rq-card.tone-limited b { color: #75551f; background: #f2e8cc; }
.rq-card.tone-pending { border-top: 4px solid #829092; }
.rq-card.tone-pending b { color: #536160; background: #e5e9e7; }
.claim-boundary { display: grid; grid-template-columns: 150px 1fr; gap: 24px; margin-top: 16px; padding: 22px 26px; border-left: 4px solid #6d9e42; background: #e8eee3; }
.claim-boundary strong { font: 700 11px var(--mono); }
.claim-boundary p { margin: 0; color: #526159; font-size: 13px; }
.case-overview-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.case-overview-card { display: flex; min-height: 280px; padding: 22px; border: 1px solid var(--line); background: #fff; flex-direction: column; }
.case-overview-card > div:first-child { display: flex; justify-content: space-between; gap: 12px; color: #68834f; font: 600 9px var(--mono); }
.case-overview-card > div:first-child b { color: #52615f; text-align: right; }
.case-overview-card h3 { margin: 28px 0 2px; font: 700 22px var(--mono); letter-spacing: -.05em; }
.case-overview-card > p { margin: 0 0 20px; color: #687473; font-size: 12px; }
.case-overview-card dl { margin: auto 0 20px; }
.case-overview-card dl div { display: flex; justify-content: space-between; gap: 15px; padding: 8px 0; border-top: 1px solid #e1e5df; }
.case-overview-card dt,
.case-overview-card dd { margin: 0; font-size: 11px; }
.case-overview-card dd { color: #6f7978; text-align: right; }
.case-overview-card dd.supported { color: #39712f; font-weight: 700; }
.case-overview-card > a { display: flex; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--ink); font-size: 12px; font-weight: 800; }

.research-timeline { position: relative; margin-top: 20px; }
.research-timeline::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(150px + 25px); width: 1px; background: rgba(80, 92, 92, .25); }
.timeline-entry {
  position: relative;
  display: grid;
  grid-template-columns: 150px 50px minmax(0, 1fr);
  min-height: 104px;
}
.timeline-entry > div:first-child { padding-top: 5px; text-align: right; }
.timeline-entry time,
.timeline-entry code { display: block; }
.timeline-entry time { color: #5d6767; font: 600 11px var(--mono); }
.timeline-entry code { margin-top: 5px; color: #8b9492; font-size: 10px; }
.timeline-dot { z-index: 1; justify-self: center; width: 13px; height: 13px; margin-top: 6px; border: 3px solid #f6f7f1; border-radius: 50%; background: #73aa43; }
.timeline-dot.category-holdout,
.timeline-dot.category-verdict { background: #d3944f; }
.timeline-dot.category-cve { background: #6eabb7; }
.timeline-entry > div:last-child { padding: 0 0 28px 5px; }
.timeline-entry h3 { margin: 0 0 8px; font-size: 19px; }
.timeline-entry p { max-width: 760px; color: #677170; font-size: 14px; }

@media (max-width: 950px) {
  .report-links.compact { grid-template-columns: 1fr; }
  .step-grid { grid-template-columns: repeat(2, 1fr); }
  .comparison-chart-row { grid-template-columns: minmax(160px, .9fr) minmax(240px, 2fr) 66px; gap: 14px; }
  .chart-axis { margin-left: calc(160px + 14px + 33px); margin-right: 80px; }
  .general-metric-grid { grid-template-columns: 1fr; }
  .metric-row { grid-template-columns: 110px minmax(160px, 1fr) 70px; }
  .evidence-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rq-grid { grid-template-columns: 1fr; }
  .case-overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .step-grid { grid-template-columns: 1fr; }
  .vmx { min-width: 620px; }
  .cvenum { min-width: 850px; }
  .comparison-chart-row { grid-template-columns: 1fr; gap: 12px; }
  .comparison-median { display: flex; gap: 8px; align-items: baseline; justify-content: flex-end; }
  .chart-axis { display: none; }
  .stage-chart { min-height: 44px; }
  .stage-chart > span { padding: 6px 4px; }
  .stage-chart em { display: none; }
  .stage-chart b { font-size: 14px; }
  .public-cve-table { min-width: 1180px; }
  .evidence-grid { grid-template-columns: 1fr; }
  .case-overview-grid { grid-template-columns: 1fr; }
  .arm-target-figure { padding: 22px 16px; }
  .chart-heading { align-items: start; flex-direction: column; gap: 8px; }
  .arm-target-chart article { grid-template-columns: 28px 1fr; gap: 8px; }
  .arm-target-chart article > div > div { grid-template-columns: 38px minmax(90px, 1fr) 38px; gap: 7px; }
  .arm-axis { margin-left: 74px; margin-right: 45px; }
  .claim-boundary { grid-template-columns: 1fr; gap: 8px; }
  .timeline-entry { grid-template-columns: 76px 30px minmax(0, 1fr); }
  .research-timeline::before { left: calc(76px + 15px); }
  .timeline-entry h3 { font-size: 16px; }
  .timeline-entry p { font-size: 13px; }
  .timeline-entry time { font-size: 9px; }
  .metric-row { grid-template-columns: 66px minmax(100px, 1fr) 62px; }
}
