:root {
  --ink: #17202b;
  --muted: #566372;
  --navy: #17365d;
  --navy-dark: #102844;
  --line: #cbd2da;
  --line-dark: #919dab;
  --paper: #ffffff;
  --wash: #f4f6f8;
  --wash-blue: #edf2f7;
  --warning: #7a4d08;
  --warning-bg: #fff8e8;
  --danger: #8a2b2b;
  --danger-bg: #fff2f2;
  --success: #285b3b;
  --success-bg: #eef7f1;
  --content-width: 72rem;
  --measure: 76ch;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scroll-behavior: auto;
  scroll-padding-top: 1rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--navy);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

a:hover {
  color: var(--navy-dark);
  text-decoration-thickness: 0.13em;
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #e0a72f;
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -6rem;
  z-index: 10;
  padding: 0.65rem 0.85rem;
  background: var(--navy-dark);
  color: #ffffff;
}

.skip-link:focus {
  top: 1rem;
}

.report-header,
.report-nav,
.report-layout,
.report-footer {
  width: min(calc(100% - 2rem), var(--content-width));
  margin-inline: auto;
}

.report-header {
  padding: 2.4rem 0 1.6rem;
  border-bottom: 3px solid var(--navy);
}

.report-kicker,
.eyebrow {
  margin: 0 0 0.45rem;
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  line-height: 1.35;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
  color: var(--navy-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.22;
  text-wrap: balance;
}

h1 {
  max-width: 24ch;
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.7rem);
  letter-spacing: -0.018em;
}

h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
}

h3 {
  margin: 1.65rem 0 0.55rem;
  font-size: 1.22rem;
}

h4 {
  margin: 1.35rem 0 0.45rem;
  font-size: 1.05rem;
}

p,
ul,
ol,
dl,
blockquote {
  max-width: var(--measure);
}

p {
  margin: 0.65rem 0 1rem;
}

ul,
ol {
  margin: 0.65rem 0 1.1rem;
  padding-left: 1.4rem;
}

li + li {
  margin-top: 0.35rem;
}

.report-subtitle,
.dek {
  max-width: 62ch;
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.12rem;
}

.report-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  margin: 1.2rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.report-meta dt {
  font-weight: 700;
}

.report-meta dd {
  margin: 0;
}

.report-nav {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.report-nav ul {
  display: flex;
  max-width: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  list-style: none;
}

.report-nav a {
  color: inherit;
}

.report-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(13.5rem, 17rem);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
  padding: 2.25rem 0 4rem;
}

.report-main,
article {
  min-width: 0;
}

.report-main > section,
article > section {
  padding: 0 0 2.6rem;
  margin: 0 0 2.6rem;
  border-bottom: 1px solid var(--line);
}

.report-main > section:last-child,
article > section:last-child {
  border-bottom: 0;
}

.summary,
.abstract {
  padding: 1.2rem 1.35rem;
  border-left: 4px solid var(--navy);
  background: var(--wash-blue);
}

.summary > :first-child,
.abstract > :first-child,
.callout > :first-child,
.side-note > :first-child {
  margin-top: 0;
}

.summary > :last-child,
.abstract > :last-child,
.callout > :last-child,
.side-note > :last-child {
  margin-bottom: 0;
}

.hypothesis {
  max-width: var(--measure);
  padding: 1rem 0 1rem 1.2rem;
  border-left: 3px solid var(--line-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
}

.methods-list,
.workflow-list {
  counter-reset: report-step;
  max-width: var(--measure);
  padding: 0;
  list-style: none;
}

.methods-list > li,
.workflow-list > li {
  position: relative;
  min-height: 2.1rem;
  padding: 0.1rem 0 1rem 2.7rem;
  counter-increment: report-step;
}

.methods-list > li::before,
.workflow-list > li::before {
  position: absolute;
  left: 0;
  top: 0;
  width: 1.85rem;
  height: 1.85rem;
  border: 1px solid var(--navy);
  color: var(--navy);
  content: counter(report-step);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.75rem;
  text-align: center;
}

.results {
  border-top: 4px solid var(--navy);
  padding-top: 1.5rem;
}

.results-intro {
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
}

.result-block,
[data-result-primary] {
  margin: 1.65rem 0 2.25rem;
  padding-top: 1.1rem;
  border-top: 2px solid var(--line-dark);
}

.result-block > h3,
[data-result-primary] > h3 {
  margin-top: 0;
}

.result-grid,
.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 1rem 1.5rem;
  margin: 1.25rem 0;
}

.result-stat,
.metric {
  padding: 0.85rem 0;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line);
}

.result-stat strong,
.metric strong,
.metric-value {
  display: block;
  color: var(--navy-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}

.result-stat span,
.metric span,
.metric-label {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

.table-wrap {
  max-width: 100%;
  margin: 1.35rem 0 1.75rem;
  overflow-x: auto;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

table {
  width: 100%;
  min-width: 38rem;
  border-collapse: collapse;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

caption {
  padding: 0.75rem 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.98rem;
  font-weight: 700;
  text-align: left;
}

th,
td {
  padding: 0.62rem 0.7rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--wash-blue);
  color: var(--navy-dark);
  font-size: 0.8rem;
  letter-spacing: 0.025em;
  line-height: 1.35;
}

tbody tr:nth-child(even) {
  background: var(--wash);
}

tbody tr:last-child td,
tbody tr:last-child th {
  border-bottom: 0;
}

td[data-label]::before {
  display: none;
}

figure {
  max-width: 100%;
  margin: 1.5rem 0 2rem;
}

figure img,
figure svg {
  border: 1px solid var(--line);
}

figcaption,
.table-note,
.figure-note {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.callout,
.limitation-note {
  max-width: var(--measure);
  margin: 1.25rem 0;
  padding: 0.95rem 1.1rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--navy);
  background: var(--wash);
}

.callout.warning,
.limitation-note {
  border-left-color: var(--warning);
  background: var(--warning-bg);
}

.callout.danger {
  border-left-color: var(--danger);
  background: var(--danger-bg);
}

.callout.success {
  border-left-color: var(--success);
  background: var(--success-bg);
}

.side-column {
  position: sticky;
  top: 1rem;
}

.side-note {
  margin: 0 0 1.5rem;
  padding: 0 0 0 1rem;
  border-left: 2px solid var(--line-dark);
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.52;
}

.side-note h2,
.side-note h3 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.025em;
}

.status {
  display: inline-block;
  padding: 0.12rem 0.42rem;
  border: 1px solid currentColor;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.035em;
  line-height: 1.45;
  text-transform: uppercase;
}

.status.caution {
  color: var(--warning);
}

.status.research-only {
  color: var(--danger);
}

.download-panel {
  margin: 1.8rem 0;
  padding: 1.25rem 0;
  border-top: 2px solid var(--navy);
  border-bottom: 1px solid var(--line-dark);
}

.download-panel h3 {
  margin-top: 0;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  align-items: baseline;
}

.download-link,
.button-link {
  display: inline-block;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--navy);
  background: var(--navy);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.download-link:hover,
.button-link:hover {
  background: var(--navy-dark);
  color: #ffffff;
}

.secondary-link {
  background: var(--paper);
  color: var(--navy);
}

code,
kbd,
pre {
  font-family: Consolas, "Liberation Mono", monospace;
  font-size: 0.88em;
}

code,
kbd {
  padding: 0.08rem 0.25rem;
  background: var(--wash);
}

pre {
  max-width: 100%;
  padding: 1rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--wash);
  color: var(--ink);
  line-height: 1.5;
  white-space: pre;
}

.references {
  color: var(--muted);
  font-size: 0.86rem;
}

.references li {
  padding-left: 0.15rem;
}

.report-footer {
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--line-dark);
  color: var(--muted);
  font-size: 0.82rem;
}

/* Semantic report shell used by the published document. */
.report-shell {
  width: min(calc(100% - 2rem), var(--content-width));
  margin: 2rem auto;
  border: 1px solid var(--line);
  background: var(--paper);
}

.report-shell > .report-header,
.report-shell > main,
.report-shell > footer {
  width: auto;
  margin-inline: 0;
  padding-right: clamp(1.25rem, 4vw, 4.5rem);
  padding-left: clamp(1.25rem, 4vw, 4.5rem);
}

.report-shell > .report-header {
  padding-top: clamp(2rem, 5vw, 3.25rem);
  padding-bottom: 1.75rem;
}

.report-type,
.section-label,
.download-label {
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.085em;
  line-height: 1.4;
  text-transform: uppercase;
}

.report-type,
.section-label,
.download-label,
.metadata,
.figure-note,
.small,
.report-shell nav,
.report-shell footer {
  font-family: Arial, Helvetica, sans-serif;
}

.report-type,
.section-label,
.download-label {
  margin: 0 0 0.4rem;
}

.subtitle {
  max-width: 62ch;
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
}

.metadata {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.75rem 0 0;
  font-size: 0.86rem;
}

.metadata div {
  padding-top: 0.65rem;
  border-top: 1px solid var(--line);
}

.metadata dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.metadata dd {
  margin: 0.15rem 0 0;
}

.report-shell > nav {
  padding: 0.85rem clamp(1.25rem, 4vw, 4.5rem);
  border-bottom: 1px solid var(--line);
  background: var(--wash);
  color: var(--muted);
  font-size: 0.88rem;
}

.report-shell > nav strong {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--ink);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.report-shell > nav ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.25rem;
  max-width: none;
  margin: 0;
  padding-left: 1.15rem;
}

.report-shell > main {
  padding-top: 0.25rem;
  padding-bottom: 3.5rem;
}

.report-shell > main > section {
  padding-top: 2.75rem;
  scroll-margin-top: 1rem;
}

.report-shell > main > section + section {
  margin-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.lede {
  max-width: var(--measure);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
}

.structured-abstract {
  display: grid;
  grid-template-columns: 10rem minmax(0, 1fr);
  max-width: var(--measure);
  margin: 1.4rem 0 0;
  border-top: 1px solid var(--line-dark);
}

.structured-abstract dt,
.structured-abstract dd {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}

.structured-abstract dt {
  padding-right: 1rem;
  color: var(--navy-dark);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
}

.structured-abstract dd {
  margin: 0;
}

.plain-summary,
.interpretation,
.warning-box,
.method-note,
.download-box {
  max-width: var(--measure);
  margin: 1.4rem 0;
  padding: 1rem 1.15rem;
  border-left: 4px solid var(--navy);
  background: var(--wash-blue);
}

.plain-summary > :first-child,
.interpretation > :first-child,
.warning-box > :first-child,
.method-note > :first-child,
.download-box > :first-child {
  margin-top: 0;
}

.plain-summary > :last-child,
.interpretation > :last-child,
.warning-box > :last-child,
.method-note > :last-child,
.download-box > :last-child {
  margin-bottom: 0;
}

.warning-box {
  border-left-color: var(--warning);
  background: var(--warning-bg);
}

.warning-box strong {
  color: var(--warning);
}

.clinical-stop {
  border-left-color: var(--danger);
  background: var(--danger-bg);
}

.clinical-stop strong {
  color: var(--danger);
}

.method-note {
  border-left-color: var(--line-dark);
  background: var(--wash);
}

.question-list,
.numbered-findings,
.future-list,
.limitations-list,
.validation-steps,
.reference-list {
  padding-left: 1.4rem;
}

.question-list li,
.numbered-findings li,
.future-list li,
.limitations-list li,
.validation-steps li,
.reference-list li {
  margin: 0.65rem 0;
  padding-left: 0.2rem;
}

.question-list strong,
.future-list strong {
  color: var(--navy);
}

.study-flow {
  max-width: var(--measure);
  margin: 1.2rem 0;
  padding: 0.95rem 1.1rem;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line);
  background: var(--wash);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.9rem;
}

.study-flow span {
  color: var(--navy);
  font-weight: 700;
}

.two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.panel {
  padding: 1rem 0;
  border-top: 2px solid var(--line-dark);
  border-bottom: 1px solid var(--line);
}

.panel > :first-child {
  margin-top: 0;
}

.table-region {
  max-width: 100%;
  margin: 1.25rem 0 0.6rem;
  overflow-x: auto;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.result-number {
  color: var(--navy);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.key-number {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.risk-table td:last-child {
  max-width: 38rem;
  text-align: left;
  white-space: normal;
}

details {
  max-width: var(--measure);
  margin: 1.25rem 0;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line);
}

summary {
  padding: 0.75rem 0;
  cursor: pointer;
  color: var(--navy-dark);
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
}

details > div {
  padding: 0 0 0.8rem;
}

.download-box {
  border-top: 1px solid var(--line);
  border-right: 0;
  border-bottom: 1px solid var(--line);
}

.download-actions a {
  display: inline-block;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--navy);
  background: var(--navy);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.download-actions a:hover {
  background: var(--navy-dark);
  color: #ffffff;
}

.download-actions a.secondary {
  background: var(--paper);
  color: var(--navy);
}

.small {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.report-shell > footer {
  padding-top: 1.35rem;
  padding-bottom: 1.65rem;
  border-top: 1px solid var(--line-dark);
  background: var(--wash);
  color: var(--muted);
  font-size: 0.8rem;
}

.report-shell > footer p {
  margin: 0.25rem 0;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 52rem) {
  .report-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .metadata,
  .two-column,
  .structured-abstract {
    grid-template-columns: 1fr;
  }

  .structured-abstract dt {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .structured-abstract dd {
    padding-top: 0.2rem;
  }

  .side-column {
    position: static;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 38rem) {
  body {
    font-size: 0.96rem;
  }

  .report-header,
  .report-nav,
  .report-layout,
  .report-footer {
    width: min(calc(100% - 1.25rem), var(--content-width));
  }

  .report-header {
    padding-top: 1.6rem;
  }

  .report-shell {
    width: 100%;
    margin: 0;
    border-right: 0;
    border-left: 0;
  }

  h1 {
    font-size: 2rem;
  }

  .report-nav ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-shell > nav ol {
    display: block;
  }

  .report-shell > nav li {
    margin: 0.2rem 0;
  }

  .summary,
  .abstract {
    padding: 1rem;
  }

  .download-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .download-link,
  .button-link {
    text-align: center;
  }
}

@media print {
  :root {
    --ink: #000000;
    --muted: #333333;
    --navy: #000000;
    --navy-dark: #000000;
    --line: #b8b8b8;
    --line-dark: #707070;
    --paper: #ffffff;
    --wash: #ffffff;
    --wash-blue: #ffffff;
  }

  @page {
    margin: 18mm 16mm;
  }

  body {
    font-size: 10pt;
    line-height: 1.45;
  }

  .report-header,
  .report-layout,
  .report-footer {
    width: 100%;
  }

  .report-shell {
    width: 100%;
    margin: 0;
    border: 0;
  }

  .report-nav,
  .report-shell > nav,
  .skip-link,
  .no-print,
  .download-actions {
    display: none !important;
  }

  .report-layout {
    display: block;
    padding: 1rem 0 0;
  }

  .report-shell > .report-header,
  .report-shell > main,
  .report-shell > footer {
    padding-right: 0;
    padding-left: 0;
  }

  .side-column {
    position: static;
    margin-top: 1.5rem;
  }

  .report-main > section,
  article > section {
    break-inside: auto;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
  }

  h1,
  h2,
  h3,
  h4,
  figure,
  table,
  .callout,
  .result-block,
  [data-result-primary] {
    break-inside: avoid;
  }

  h1 {
    font-size: 21pt;
  }

  h2 {
    font-size: 15pt;
  }

  a {
    color: #000000;
  }

  .references a[href^="http"]::after {
    content: " (" attr(href) ")";
    overflow-wrap: anywhere;
    font-size: 0.8em;
  }

  .table-wrap {
    overflow: visible;
  }

  table {
    min-width: 0;
    font-size: 8.5pt;
  }
}

/* Candidate evidence explorer: restrained scientific application styles. */
.explorer-page {
  background: var(--wash);
}

.explorer-header,
.explorer-main,
.explorer-footer {
  width: min(calc(100% - 2rem), 92rem);
  margin-inline: auto;
}

.explorer-header {
  padding: 2.5rem clamp(1rem, 3vw, 3rem) 1.75rem;
  border-right: 1px solid var(--line);
  border-bottom: 4px solid var(--navy);
  border-left: 1px solid var(--line);
  background: var(--paper);
}

.explorer-header h1 {
  max-width: 30ch;
}

.explorer-return {
  margin: 1.25rem 0 0;
  font-size: 0.9rem;
}

.explorer-main {
  padding: 0 clamp(1rem, 3vw, 3rem) 3rem;
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: var(--paper);
}

.explorer-main > section {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--line);
}

.explorer-main > section:last-child {
  border-bottom: 0;
}

.explorer-metrics,
.candidate-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 1.4rem 0;
  border: 1px solid var(--line);
  background: var(--line);
}

.explorer-metrics > div,
.candidate-status-grid > div {
  padding: 0.9rem 1rem;
  background: var(--paper);
}

.explorer-metrics strong,
.candidate-status-grid strong {
  display: block;
  color: var(--navy-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.explorer-metrics span,
.candidate-status-grid span,
.preview-metric span {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.private-map-control {
  display: flex;
  max-width: var(--measure);
  padding: 1rem;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
  align-items: center;
  border: 1px solid var(--line-dark);
  background: var(--wash);
}

.private-map-control label {
  width: 100%;
  color: var(--navy-dark);
  font-weight: 700;
}

.private-map-control p {
  width: 100%;
  margin: 0;
}

.explorer-controls {
  display: grid;
  grid-template-columns: repeat(5, minmax(9.5rem, 1fr));
  gap: 0.75rem;
  margin: 1.25rem 0 0.8rem;
  padding: 1rem;
  border: 1px solid var(--line);
  background: var(--wash);
}

.explorer-controls label {
  color: var(--navy-dark);
  font-size: 0.78rem;
  font-weight: 700;
}

.explorer-controls input,
.explorer-controls select,
.private-map-control input {
  width: 100%;
  min-height: 2.45rem;
  margin-top: 0.3rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--line-dark);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 0.88rem;
}

button,
.link-button {
  min-height: 2.4rem;
  padding: 0.48rem 0.75rem;
  border: 1px solid var(--navy);
  border-radius: 0;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
}

.primary-button,
.link-button.primary-button {
  background: var(--navy);
  color: #ffffff;
}

.secondary-button,
.link-button.secondary-button {
  background: var(--paper);
  color: var(--navy);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.link-button {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.result-count {
  color: var(--muted);
  font-size: 0.86rem;
}

.explorer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(17rem, 22rem);
  gap: 1.5rem;
  align-items: start;
}

.candidate-table-region {
  max-height: 46rem;
  overflow: auto;
  border: 1px solid var(--line-dark);
}

.candidate-table {
  min-width: 56rem;
}

.candidate-table thead {
  position: sticky;
  top: 0;
  z-index: 1;
}

.candidate-table th {
  background: var(--wash-blue);
}

.candidate-row {
  cursor: pointer;
}

.candidate-row:hover,
.candidate-row:focus,
.candidate-row:focus-within {
  outline: 2px solid var(--navy);
  outline-offset: -2px;
  background: #e9f0f5;
}

.candidate-name-button {
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--navy);
  font-weight: 700;
  text-align: left;
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.14em;
}

.empty-table {
  padding: 2rem;
  color: var(--muted);
  text-align: center;
}

.evidence-score {
  display: inline-block;
  min-width: 4.2rem;
  padding: 0.18rem 0.35rem;
  border: 1px solid currentColor;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.score-strongest {
  color: #7a3f00;
  background: #fff1dc;
}

.score-priority {
  color: #76570b;
  background: #fff8e8;
}

.score-limited {
  color: #4d5965;
  background: #f0f3f5;
}

.score-lower {
  color: #68727d;
  background: #f7f8f9;
}

.candidate-preview {
  position: sticky;
  top: 1rem;
  min-height: 18rem;
  padding: 1rem;
  border-top: 3px solid var(--navy);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: var(--paper);
}

.candidate-preview h3 {
  margin-top: 0;
}

.preview-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 0.9rem 0;
}

.preview-metric {
  padding: 0.65rem;
  border: 1px solid var(--line);
}

.preview-metric strong {
  display: block;
  color: var(--navy-dark);
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
}

.preview-loci {
  overflow-wrap: anywhere;
  font-size: 0.78rem;
}

.preview-actions,
.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.score-method-grid,
.score-breakdown,
.filter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.score-method-grid > div,
.score-breakdown > div,
.filter-block {
  padding-top: 0.5rem;
  border-top: 2px solid var(--line-dark);
}

.candidate-dialog {
  width: min(calc(100% - 2rem), 72rem);
  max-height: calc(100vh - 2rem);
  padding: 0;
  overflow: auto;
  border: 1px solid var(--line-dark);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
}

.candidate-dialog::backdrop {
  background: rgba(15, 27, 40, 0.58);
}

.dialog-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  padding: 1rem 1.25rem;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
  border-bottom: 3px solid var(--navy);
  background: var(--paper);
}

.dialog-header h2 {
  margin: 0;
}

.dialog-close {
  min-width: 2.4rem;
  padding: 0.2rem 0.6rem;
  background: var(--paper);
  color: var(--navy);
  font-size: 1.45rem;
  line-height: 1;
}

#dialog-content {
  padding: 1.25rem;
}

.dialog-section {
  margin: 1.5rem 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line-dark);
}

.candidate-definitions {
  display: grid;
  grid-template-columns: minmax(10rem, 16rem) minmax(0, 1fr);
  max-width: none;
  margin: 1.25rem 0;
  border-top: 1px solid var(--line);
}

.candidate-definitions dt,
.candidate-definitions dd {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
}

.candidate-definitions dt {
  padding-right: 1rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.candidate-definitions dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.compact-definitions {
  font-size: 0.88rem;
}

.evidence-bar-row {
  display: grid;
  grid-template-columns: minmax(10rem, 15rem) minmax(8rem, 1fr);
  gap: 0.35rem 1rem;
  margin: 0.9rem 0;
  align-items: center;
}

.evidence-bar-label {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.86rem;
}

.evidence-bar-track {
  height: 0.65rem;
  border: 1px solid var(--line-dark);
  background: var(--wash);
}

.evidence-bar-fill {
  display: block;
  height: 100%;
  background: var(--navy);
}

.evidence-bar-row p {
  grid-column: 1 / -1;
  margin: 0;
}

.filter-tags {
  display: flex;
  padding: 0;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
}

.filter-tags li {
  margin: 0;
  padding: 0.22rem 0.45rem;
  border: 1px solid var(--line-dark);
  background: var(--wash);
  font-size: 0.78rem;
}

.igv-handoff {
  padding: 1rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--navy);
  background: var(--wash-blue);
}

.explorer-footer {
  padding: 1.4rem clamp(1rem, 3vw, 3rem) 2rem;
  border: 1px solid var(--line);
  background: var(--wash);
  color: var(--muted);
  font-size: 0.8rem;
}

.explorer-footer p {
  margin: 0.25rem 0;
}

@media (max-width: 70rem) {
  .explorer-controls {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .explorer-grid {
    grid-template-columns: 1fr;
  }

  .candidate-preview {
    position: static;
  }
}

@media (max-width: 48rem) {
  .explorer-metrics,
  .candidate-status-grid,
  .score-method-grid,
  .score-breakdown,
  .filter-grid {
    grid-template-columns: 1fr 1fr;
  }

  .explorer-controls {
    grid-template-columns: 1fr 1fr;
  }

  .candidate-definitions,
  .evidence-bar-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 34rem) {
  .explorer-header,
  .explorer-main,
  .explorer-footer {
    width: 100%;
    border-right: 0;
    border-left: 0;
  }

  .explorer-metrics,
  .candidate-status-grid,
  .score-method-grid,
  .score-breakdown,
  .filter-grid,
  .explorer-controls {
    grid-template-columns: 1fr;
  }

  .private-map-control,
  .preview-actions,
  .dialog-actions {
    align-items: stretch;
    flex-direction: column;
  }
}

@media print {
  .explorer-controls,
  .private-map-control,
  .preview-actions,
  .dialog-actions,
  .candidate-dialog {
    display: none !important;
  }

  .explorer-page,
  .explorer-header,
  .explorer-main,
  .explorer-footer {
    width: 100%;
    border: 0;
    background: #ffffff;
  }

  .explorer-grid {
    display: block;
  }

  .candidate-table-region {
    max-height: none;
    overflow: visible;
  }
}
