@import url('/static/research.css');

.command-page { max-width: 1160px; margin: auto; padding: 58px 40px 28px; }
.command-heading { max-width: 880px; margin-bottom: 36px; }
.eyebrow { color: var(--green); font: 12px/1.6 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.command-page h1 { font: 400 clamp(2rem, 4vw, 2.65rem)/1.3 var(--comic); letter-spacing: 0; margin: 16px 0 22px; }
.command-page h2 { font-size: clamp(1.45rem, 3vw, 1.8rem); font-weight: 650; line-height: 1.25; margin: 8px 0 20px; }
.command-page h3 { font-size: 1.1rem; margin: 36px 0 12px; }
.lead { font-size: 1.18rem; line-height: 1.7; margin-bottom: 24px; }
.scope-note { font-size: .9rem; line-height: 1.7; color: var(--muted); border-left: 3px solid var(--line); padding-left: 17px; max-width: 790px; }
.page-links { display: flex; flex-wrap: wrap; gap: 14px 26px; font-size: .9rem; margin-top: 26px; }
.page-links a, .text-link, .source-links a { text-underline-offset: 5px; }
.audit-section { border-top: 1px solid var(--line); padding-top: 30px; margin-top: 42px; scroll-margin-top: 25px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.section-intro, .methods p { font-size: 1rem; line-height: 1.75; max-width: 880px; }
.status-line { font: 12px/1.7 var(--mono); color: var(--muted); }
.error-message { background: #251613; color: #f0b6a4; border: 2px solid #a26855; padding: 16px 20px; font-size: .95rem; line-height: 1.7; overflow-wrap: anywhere; }
.provenance { font-size: .9rem; color: var(--muted); line-height: 1.7; }
.controls { display: flex; flex-wrap: wrap; gap: 18px 26px; margin: 26px 0 22px; }
.controls label { display: flex; flex: 1 1 220px; max-width: 430px; flex-direction: column; gap: 9px; font-size: .85rem; font-weight: 600; }
.controls select { font-size: .95rem; padding: 12px 36px 12px 12px; border: 2px solid #353535; background: #111; color: var(--ink); min-height: 46px; border-radius: 0; max-width: 100%; }
.controls select:disabled { opacity: .7; }
.solid-button { display: inline-flex; align-items: center; justify-content: center; padding: 11px 17px; min-height: 44px; border: 2px solid #353535; background: #161616; color: var(--ink); box-shadow: none; border-radius: 0; font-size: .85rem; line-height: 1.4; font-weight: 600; text-decoration: none; cursor: pointer; }
.solid-button.secondary { background: #101010; color: var(--ink); }
.solid-button:hover:enabled, .file-button:hover { background: #202020; color: var(--green); }
.solid-button:active:enabled { background: #0d1912; }
.solid-button:disabled { cursor: default; opacity: .5; box-shadow: none; }
.policy-note { border-left: 4px solid #a56e38; padding: 13px 18px; background: #231e13; line-height: 1.7; font-size: .9rem; }
.policy-note.met { border-color: #447960; background: #102018; }
.policy-details { display: flex; flex-wrap: wrap; gap: 17px 30px; margin: 24px 0; }
.policy-details div { min-width: 90px; }
.policy-details dt { color: var(--muted); font-size: .74rem; margin-bottom: 6px; }
.policy-details dd { margin: 0; font: 14px/1.5 var(--mono); }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 26px 0 18px; }
.metric { border: 1px solid var(--line); border-top: 3px solid var(--green); padding: 19px 18px 17px; min-height: 150px; background: var(--wash); }
.metric-value { display: block; color: var(--green); font: 400 clamp(1.6rem, 3vw, 2.1rem)/1.2 var(--comic); margin-bottom: 11px; overflow-wrap: anywhere; }
.metric-label { font-size: .85rem; font-weight: 600; display: block; line-height: 1.5; }
.metric-note { display: block; font-size: .77rem; line-height: 1.6; color: var(--muted); margin-top: 7px; }
.small-note { font-size: .82rem; color: var(--muted); line-height: 1.75; max-width: 930px; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); margin-top: 20px; }
.table-scroll:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
.annotation-details { margin-top: 24px; }
.annotation-details summary { cursor: pointer; color: var(--green); font-size: .9rem; line-height: 1.7; padding-block: 8px; }
.audit-table { border-collapse: collapse; width: 100%; font-size: .8rem; font-variant-numeric: tabular-nums; }
.audit-table caption { text-align: left; padding: 14px 14px 12px; background: var(--wash); color: var(--muted); line-height: 1.6; }
.audit-table th, .audit-table td { text-align: left; padding: 13px 14px; border-top: 1px solid var(--line); line-height: 1.6; }
.audit-table thead { background: var(--wash); }
.audit-table th { font-weight: 600; }
.audit-table tbody th { max-width: 160px; overflow-wrap: anywhere; }
.audit-table td { white-space: nowrap; }
.audit-table td.empty-row { white-space: normal; color: var(--muted); }
.timeline-position { display: flex; align-items: end; gap: 22px; margin: 20px 3px 28px 0; }
.timeline-position label { flex: 1; font-size: .82rem; line-height: 1.5; }
.timeline-position output { margin-left: 8px; font-family: var(--mono); }
.timeline-position input { display: block; width: 100%; margin-top: 12px; accent-color: var(--green); cursor: pointer; }
.timeline-figure { margin: 0; border: 2px solid #353535; background: #080808; padding: 12px 10px; }
.timeline-figure svg { display: block; width: 100%; min-height: 180px; font-family: var(--comic); }
.timeline-figure figcaption { color: var(--muted); font-size: .78rem; line-height: 1.6; padding: 5px 12px; }
.legend { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 22px; font-size: .75rem; line-height: 1.5; margin: 18px 0 16px; }
.legend li { display: flex; align-items: center; gap: 8px; }
.swatch { display: inline-block; width: 14px; height: 14px; border: 1px solid #706976; }
.swatch.idle { background: #284e36; }
.swatch.left { background: #73578e; }
.swatch.right { background: #326b76; }
.swatch.other { background: #6b5532; }
.swatch.unknown { background: #36343b; }
.swatch.gap { background: #694b48; border: 2px dashed #c28f80; }
.marker-key { font-size: 1rem; line-height: 1; }
.marker-key.correct { color: #67e685; }
.marker-key.incorrect { color: #f09b80; }
.file-controls { display: flex; gap: 18px; flex-wrap: wrap; margin: 24px 3px 22px 0; }
.file-button { position: relative; }
.file-button:focus-within { outline: 3px solid #559c80; outline-offset: 4px; }
.file-button input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.source-links { padding-left: 22px; line-height: 1.8; font-size: .9rem; }
.source-links li { margin: 12px 0; overflow-wrap: anywhere; }

@media (min-width: 1100px) {
  .command-page { max-width: 1030px; margin-left: max(223px, calc((100vw - 1240px) / 2 + 207px)); margin-right: 32px; padding: 40px 0 28px; }
}
@media (max-width: 760px) {
  .command-page { padding: 36px 22px 24px; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-heading { flex-direction: column; align-items: start; gap: 4px; }
  .section-heading .solid-button { margin: 4px 0 14px; }
  .controls { gap: 16px; }
  .controls label { max-width: none; }
  .timeline-position { gap: 13px; }
  .timeline-position .solid-button { padding: 10px; }
  .timeline-figure { padding: 12px 2px; }
}
@media (max-width: 420px) {
  .metrics { grid-template-columns: 1fr; }
  .metric { min-height: auto; }
  .timeline-position { flex-wrap: wrap; justify-content: space-between; }
  .timeline-position label { order: -1; flex-basis: 100%; }
  .report-nav nav { gap: 17px; font-size: 13px; }
}
@media print {
  .command-page { max-width: none; padding: 0; }
  .controls, .solid-button, .file-controls, .timeline-position, .page-links, #reuse { display: none; }
  .metrics { grid-template-columns: repeat(3, 1fr); }
  .metric { break-inside: avoid; }
  .table-scroll { overflow: visible; }
}
