/* Index board and fact cards (homepage dashboard) ---------------------------
   Colour law: colour only on data (bars, swatches, category hue) or on things
   you can click. Chrome stays neutral. No animation: nothing here is "live". */

.index-board {
  background: #0a0a0c;
  color: #ececea;
  padding: 48px 0;
}
.board-head h2 {
  margin: 0 0 6px;
  font-size: 1.6rem;
  letter-spacing: -0.01em;
  color: #fff;
}
.board-head p {
  margin: 0 0 24px;
  color: #a1a19c;
  max-width: 60ch;
}
.index-board a {
  color: #fff;
  text-decoration-color: #5a5a60;
  text-underline-offset: 3px;
}
.index-board a:hover,
.index-board a:focus-visible {
  text-decoration-color: #fff;
}

.board-num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum';
}

.board-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0 0 24px;
  background: #26262b;
  border: 1px solid #26262b;
  border-radius: 8px;
  overflow: hidden;
}
.board-kpis div {
  background: #121215;
  padding: 14px 16px;
}
.board-kpis dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #a1a19c;
}
.board-kpis dd {
  margin: 4px 0 0;
  font-size: 1.75rem;
  font-weight: 600;
  color: #fff;
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.board-panel {
  margin: 0;
  background: #121215;
  border: 1px solid #26262b;
  border-radius: 8px;
  padding: 16px;
  min-width: 0;
}
.board-panel h3 {
  margin: 0;
  font-size: 1rem;
  color: #fff;
}
.board-note {
  margin: 4px 0 14px;
  font-size: 0.8125rem;
  color: #a1a19c;
}

.board-bars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.board-bars li {
  display: grid;
  grid-template-columns: minmax(0, 11rem) minmax(0, 1fr) 3.5rem;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
}
.board-bar-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.board-bars .board-num {
  text-align: right;
  color: #fff;
}
.board-bar {
  width: 100%;
  height: 10px;
  display: block;
}
.board-bar-track {
  fill: #26262b;
}
.board-bar-fill {
  fill: #8f8f96;
}

.board-stack {
  width: 100%;
  height: 22px;
  display: block;
  border-radius: 4px;
  overflow: hidden;
}
.board-legend {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
  font-size: 0.875rem;
}
.board-legend li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.board-legend .board-num {
  margin-left: auto;
  color: #fff;
}
.board-swatch {
  width: 12px;
  height: 12px;
  flex: none;
  border-radius: 2px;
}
.seg-1 {
  fill: var(--spectrum-3);
}
.seg-2 {
  fill: var(--spectrum-4);
}
.seg-3 {
  fill: var(--spectrum-2);
}
.seg-4 {
  fill: var(--spectrum-1);
}
.seg-5 {
  fill: #6d6df0;
}
.seg-6 {
  fill: #b0b0b6;
}
.seg-unknown {
  fill: #3a3a40;
}

/* Category hues, on data only. Lightened on the dark board for contrast. */
.hue-fill-1 {
  fill: var(--hue-1);
}
.hue-fill-2 {
  fill: var(--hue-2);
}
.hue-fill-3 {
  fill: var(--hue-3);
}
.hue-fill-4 {
  fill: var(--hue-4);
}
.hue-fill-5 {
  fill: var(--hue-5);
}
.hue-fill-6 {
  fill: var(--hue-6);
}
.hue-fill-7 {
  fill: var(--hue-7);
}
.hue-fill-8 {
  fill: var(--hue-8);
}
.hue-fill-9 {
  fill: var(--hue-9);
}
.hue-fill-10 {
  fill: var(--hue-10);
}
.index-board .board-bar-fill {
  filter: brightness(1.45) saturate(1.1);
}

/* Fact cards ------------------------------------------------------------------ */
.hero-board {
  padding: 8px 0 48px;
}
.hero-board-head {
  margin: 0 0 16px;
}
.hero-board-head h2 {
  font-size: 1.125rem;
  margin: 0;
}
.hero-board-head p {
  margin: 4px 0 0;
  font-size: 0.8125rem;
  color: #5c5c58;
}
.fact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.hero-board-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.fact-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fff;
  border: 1px solid #e2e2df;
  border-radius: 8px;
  padding: 16px;
  min-width: 0;
  text-align: left;
}
.fact-card:focus-within,
.fact-card:hover {
  border-color: #b8b8b3;
}
.fact-card-head {
  display: flex;
  gap: 12px;
  align-items: center;
}
.fact-card-title {
  margin: 0;
  font-size: 1rem;
}
.fact-card-title a {
  color: #111113;
  text-decoration: none;
}
.fact-card-title a:hover,
.fact-card-title a:focus-visible {
  color: #1f1fe8;
  text-decoration: underline;
}
.fact-category {
  margin: 2px 0 0;
  font-size: 0.8125rem;
  color: #5c5c58;
}
.fact-desc {
  margin: 0;
  font-size: 0.875rem;
  color: #3a3a37;
}
.fact-caps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.fact-caps li {
  font-size: 0.75rem;
  padding: 2px 8px;
  border: 1px solid #e2e2df;
  border-radius: 999px;
  color: #3a3a37;
}

.fact-list {
  margin: 0;
  display: grid;
  gap: 4px;
  font-size: 0.8125rem;
  border-top: 1px solid #e2e2df;
  padding-top: 10px;
}
.fact-list div {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 8px;
}
.fact-list dt {
  color: #5c5c58;
}
.fact-list dd {
  margin: 0;
  color: #111113;
  overflow-wrap: anywhere;
}
.fact-yes {
  color: #15803d;
  font-weight: 600;
}
.fact-no {
  color: #111113;
  font-weight: 600;
}
.fact-unknown {
  color: #6b6b66;
  font-style: italic;
}
.fact-verified {
  margin: auto 0 0;
  font-size: 0.75rem;
  color: #5c5c58;
}

/* The hero preview is a compact board: facts only. */
.hero-board .fact-desc,
.hero-board .fact-caps {
  display: none;
}

@media (max-width: 900px) {
  .board-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .board-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-board-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .index-board {
    padding: 32px 0;
  }
  .board-bars li {
    grid-template-columns: minmax(0, 1fr) 3rem;
    row-gap: 4px;
  }
  .board-bars .board-bar-label {
    grid-column: 1 / -1;
    white-space: normal;
  }
  .board-kpis dd {
    font-size: 1.375rem;
  }
  .hero-board-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-board-grid .fact-card:nth-child(n + 5) {
    display: none;
  }
}
@media (forced-colors: active) {
  .board-bar-fill,
  .board-stack rect,
  .board-swatch rect {
    fill: CanvasText;
  }
  .board-bar-track {
    fill: Canvas;
    stroke: CanvasText;
  }
}

/* Help me choose ----------------------------------------------------------------- */
.hero-choose {
  margin: 16px 0 0;
  font-size: 0.9375rem;
  color: #3a3a37;
}
.hero-choose a {
  color: #1f1fe8;
}
.choose-layout {
  display: grid;
  grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
.choose-form {
  display: grid;
  gap: 20px;
  background: #fff;
  border: 1px solid #e2e2df;
  border-radius: 8px;
  padding: 20px;
}
.choose-fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.choose-fieldset legend {
  font-weight: 600;
  padding: 0;
}
.choose-hint {
  margin: 2px 0 8px;
  font-size: 0.8125rem;
  color: #5c5c58;
}
.choose-options {
  display: grid;
  gap: 6px;
}
.choose-check {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.9375rem;
  cursor: pointer;
}
.choose-check input {
  width: 18px;
  height: 18px;
  accent-color: #1f1fe8;
}
.choose-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.choose-empty {
  color: #5c5c58;
  border: 1px dashed #e2e2df;
  border-radius: 8px;
  padding: 24px;
  margin: 0;
}
.choose-results .section-header {
  margin-top: 0;
}
.choose-notice {
  background: #fff;
  border: 1px solid #e2e2df;
  border-left: 4px solid #d97706;
  border-radius: 6px;
  padding: 12px 16px;
}
.choose-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.choose-confidence {
  margin: 2px 0 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #3a3a37;
}
.choose-confidence-high {
  color: #15803d;
}
.choose-confidence-partial {
  color: #a16207;
}
.choose-matches div {
  grid-template-columns: 11rem minmax(0, 1fr);
}
.choose-kind {
  display: block;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b6b66;
}
.choose-notes {
  margin: 0;
  padding-left: 18px;
  font-size: 0.8125rem;
  color: #5c5c58;
}
.choose-excluded {
  margin-top: 20px;
  font-size: 0.875rem;
}
.choose-excluded summary {
  cursor: pointer;
  font-weight: 600;
}
.choose-excluded ul {
  margin: 8px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 4px;
}
@media (max-width: 900px) {
  .choose-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 560px) {
  .choose-matches div {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
}

/* Hero: dark discovery board ------------------------------------------------------
   The graphic is decorative (aria-hidden, no text or numbers). A gradient scrim
   sits between it and the copy so the heading, search and links stay readable.
   No animation, so there is nothing for prefers-reduced-motion to switch off. */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 34rem;
  color: #e8ebf2;
  background:
    radial-gradient(circle at 78% 40%, rgb(31 31 232 / 0.28), transparent 55%),
    linear-gradient(160deg, #0d1222 0%, #0a0c14 60%, #08090d 100%);
  border-bottom: 0;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    #0a0c14 0%,
    rgb(10 12 20 / 0.94) 34%,
    rgb(10 12 20 / 0.55) 52%,
    rgb(10 12 20 / 0) 70%
  );
}
.hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  height: 3px;
  background: var(--spectrum);
}
.hero-art {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  width: min(64%, 820px);
  pointer-events: none;
}
.hero-art-svg {
  display: block;
  width: 100%;
  height: 100%;
}
.hero-inner {
  position: relative;
  z-index: 3;
}
.hero-copy {
  max-width: 36rem;
  text-align: left;
}
.hero .eyebrow {
  margin-inline: 0;
  text-align: left;
  color: #7dd3fc;
}
.hero h1 {
  margin: var(--spacing-md) 0;
  color: #ffffff;
}
.hero-subtitle {
  margin: 0 0 var(--spacing-xl);
  color: #b9c0cd;
}
.hero .search-form {
  margin: 0;
  max-width: 36rem;
  border-color: #2a3042;
  box-shadow: 0 12px 40px rgb(0 0 0 / 0.45);
}
.hero-choose {
  color: #c3c9d4;
}
.hero-choose a {
  color: #7dd3fc;
  text-underline-offset: 3px;
}
.hero-choose a:hover,
.hero-choose a:focus-visible {
  color: #ffffff;
}
.hero .hero-stats {
  justify-content: flex-start;
}
.hero .hero-stats dt {
  color: #9aa3b2;
}
.hero .hero-stats dd {
  color: #ffffff;
}

/* Graphic parts. */
.ha-grid-line {
  stroke: rgb(125 211 252 / 0.07);
  stroke-width: 1;
}
.ha-glow-inner {
  stop-color: #22d3ee;
  stop-opacity: 0.16;
}
.ha-glow-outer {
  stop-color: #22d3ee;
  stop-opacity: 0;
}
.ha-link {
  stroke: rgb(125 211 252 / 0.28);
  stroke-width: 1;
}
.ha-node {
  fill: #7dd3fc;
  opacity: 0.55;
}
.ha-node-hot {
  fill: #22d3ee;
  opacity: 0.9;
}
.ha-panel {
  fill: rgb(17 22 38 / 0.88);
  stroke: rgb(125 211 252 / 0.22);
  stroke-width: 1;
}
.ha-line {
  fill: rgb(203 213 225 / 0.22);
}
.ha-line-strong {
  fill: rgb(226 232 240 / 0.55);
}
.ha-mark-yes {
  fill: #22d3ee;
}
.ha-mark-no {
  fill: rgb(203 213 225 / 0.55);
}
.ha-mark-unknown {
  fill: none;
  stroke: rgb(203 213 225 / 0.6);
  stroke-width: 1.5;
  stroke-dasharray: 2 2;
}
.ha-bar-a {
  fill: rgb(96 165 250 / 0.75);
}
.ha-bar-b {
  fill: rgb(34 211 238 / 0.7);
}
.ha-bar-open {
  fill: none;
  stroke: rgb(203 213 225 / 0.45);
  stroke-width: 1;
  stroke-dasharray: 4 3;
}
.ha-divider {
  stroke: rgb(125 211 252 / 0.18);
  stroke-width: 1;
}
.ha-signal {
  opacity: 0.85;
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
  }
  .hero-art {
    width: 100%;
    height: 22rem;
    bottom: auto;
    opacity: 0.8;
  }
  .hero::before {
    background: linear-gradient(
      180deg,
      rgb(10 12 20 / 0.2) 0%,
      rgb(10 12 20 / 0.62) 38%,
      #0a0c14 72%
    );
  }
  .ha-detail {
    display: none;
  }
}
@media (forced-colors: active) {
  .hero-art {
    display: none;
  }
}

/* Attention signals -------------------------------------------------------------- */
.tool-signals {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #e2e2df;
}
.signal-list {
  margin: 0;
  display: grid;
  gap: 12px;
}
.signal-list dt {
  font-size: 0.8125rem;
  color: #5c5c58;
}
.signal-list dd {
  margin: 2px 0 0;
  display: grid;
  gap: 2px;
}
.signal-value {
  font-size: 1.25rem;
  font-weight: 600;
  color: #111113;
}
.signal-period {
  font-size: 0.8125rem;
  color: #3a3a37;
}
.signal-source {
  font-size: 0.8125rem;
  color: #5c5c58;
}
.signal-none {
  margin: 0;
  color: #5c5c58;
  font-style: italic;
}
.signal-note {
  margin: 12px 0 0;
  font-size: 0.8125rem;
  color: #5c5c58;
}
.signal-page .signal-note {
  margin-bottom: 8px;
}
.signal-board-section {
  margin-top: 32px;
}
.signal-board-section h2 {
  font-size: 1.25rem;
  margin: 0 0 12px;
}
.signal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
.signal-table th,
.signal-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #e2e2df;
  text-align: left;
  vertical-align: top;
}
.signal-table thead th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #5c5c58;
}
.signal-table .num {
  text-align: right;
  white-space: nowrap;
}
.signal-table td:last-child {
  color: #5c5c58;
  font-size: 0.8125rem;
  min-width: 14rem;
}
.signal-method {
  margin-top: 40px;
  max-width: 68ch;
}
.signal-method h2 {
  font-size: 1.125rem;
}
.signal-method ul {
  padding-left: 20px;
  display: grid;
  gap: 8px;
  color: #3a3a37;
}
