:root {
  color-scheme: light;
  --ink: #172026;
  --muted: #5c6870;
  --line: #d7dde2;
  --paper: #f8faf9;
  --surface: #ffffff;
  --teal: #0f766e;
  --blue: #2457a6;
  --amber: #b7791f;
  --red: #b42318;
  --shadow: 0 16px 38px rgba(23, 32, 38, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

.wrap {
  width: min(1160px, calc(100vw - 40px));
  margin: 0 auto;
}

.masthead {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.masthead-grid {
  min-height: 360px;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.7fr);
  align-items: center;
  gap: 48px;
  padding: 56px 0 48px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  max-width: 780px;
  font-size: clamp(2.4rem, 4.5vw, 4.9rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.lede {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.06rem;
}

.signal-panel,
.mini-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.signal-panel {
  display: grid;
  gap: 1px;
  overflow: hidden;
}

.signal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 86px;
  padding: 20px;
  background: #ffffff;
}

.signal-row span {
  color: var(--muted);
  font-size: 0.9rem;
}

.signal-row strong {
  font-size: 1.45rem;
  color: var(--blue);
}

.band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #eef5f1;
}

.controls-band {
  position: sticky;
  top: 0;
  z-index: 2;
}

.control-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 220px auto auto;
  align-items: end;
  gap: 14px;
  padding: 18px 0;
}

.field {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

input,
select,
button {
  min-height: 42px;
  border: 1px solid #b8c2ca;
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
}

input,
select {
  width: 100%;
  padding: 0 12px;
}

button {
  padding: 0 16px;
  background: var(--ink);
  color: #ffffff;
  font-weight: 760;
  cursor: pointer;
}

button:hover {
  background: #2a343b;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  color: var(--ink);
  white-space: nowrap;
}

.check-row input {
  width: 18px;
  min-height: 18px;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  padding: 42px 0;
}

.section-heading {
  margin-bottom: 18px;
}

.table-wrap {
  overflow-x: auto;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid #e4e8ec;
  text-align: left;
  vertical-align: top;
}

th {
  background: #f2f5f7;
  color: #34424c;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0;
}

td {
  font-size: 0.93rem;
}

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

.priority {
  display: inline-flex;
  align-items: center;
  min-width: 74px;
  justify-content: center;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 0.78rem;
  font-weight: 800;
}

.priority.high {
  background: #ffe7e3;
  color: var(--red);
}

.priority.medium {
  background: #fff3d8;
  color: var(--amber);
}

.priority.low {
  background: #e4f3ef;
  color: var(--teal);
}

.title-cell strong {
  display: block;
  margin-bottom: 2px;
}

.title-cell span,
.source-cell {
  color: var(--muted);
  font-size: 0.84rem;
}

.side-column {
  display: grid;
  align-content: start;
  gap: 16px;
}

.mini-card {
  padding: 18px;
}

.mini-card p,
.mini-card li,
.boundary-note {
  color: var(--muted);
}

.mini-card ul {
  margin: 0;
  padding-left: 18px;
}

.text-link {
  color: var(--blue);
  font-weight: 760;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.boundary-note {
  margin: 14px 0 0;
  font-size: 0.9rem;
}

.evidence-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1fr);
  align-items: center;
  gap: 36px;
  padding: 36px 0;
}

.evidence-grid p {
  color: #40515b;
}

.evidence-bars {
  display: grid;
  gap: 16px;
}

.bar-row {
  display: grid;
  grid-template-columns: 190px 1fr;
  align-items: center;
  gap: 14px;
  color: #40515b;
  font-weight: 720;
}

.bar {
  height: 14px;
  border-radius: 999px;
  background: #d7dde2;
  overflow: hidden;
}

.bar i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
  transition: width 240ms ease;
}

@media (max-width: 860px) {
  .masthead-grid,
  .section-grid,
  .evidence-grid {
    grid-template-columns: 1fr;
  }

  .masthead-grid {
    min-height: auto;
    padding-top: 36px;
  }

  .control-grid {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .check-row {
    justify-content: flex-start;
  }

  .bar-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
