:root {
  --ink: #17211d;
  --muted: #63716b;
  --paper: #f3efe4;
  --surface: rgba(255, 252, 245, 0.9);
  --surface-strong: #ece4d2;
  --line: #d8cfbc;
  --pine: #123d36;
  --teal: #0d786f;
  --blue: #276aa8;
  --red: #b33a2d;
  --gold: #c8871f;
  --green: #4e7d40;
  --shadow: 0 22px 60px rgba(24, 38, 31, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(13, 120, 111, 0.12), transparent 28%),
    linear-gradient(180deg, #faf7ef 0%, var(--paper) 42%, #e8eadf 100%);
  font-family: Georgia, "Times New Roman", serif;
}

button,
select,
input {
  font: inherit;
}

a {
  color: inherit;
}

.shell {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 34px;
  color: #eef8f3;
  background:
    linear-gradient(rgba(18, 61, 54, 0.94), rgba(18, 61, 54, 0.98)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 16px);
}

.brand {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
  align-items: center;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: #10352f;
  background: #f0c76d;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 8px;
  font-family: Verdana, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
}

.brand strong {
  display: block;
  max-width: 160px;
  font-size: 1.05rem;
  line-height: 1.12;
}

.brand small,
.side-note p,
.side-note strong {
  display: block;
}

.brand small {
  margin-top: 7px;
  color: #b7d4ca;
  font-family: Verdana, sans-serif;
  font-size: 0.74rem;
}

.nav-links {
  display: grid;
  gap: 8px;
  font-family: Verdana, sans-serif;
}

.nav-links a {
  padding: 12px 13px;
  color: #dcebe5;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 6px;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.sidebar-contact {
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: 12px 14px;
  color: #10352f;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 6px;
  background: #f0c76d;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
  font-family: Verdana, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.sidebar-contact:hover,
.sidebar-contact:focus-visible {
  background: #f5d88b;
  outline: none;
}

.sidebar-backlink {
  display: block;
  margin-top: 10px;
  padding: 8px 10px;
  color: rgba(255, 255, 255, 0.78);
  font-family: Verdana, sans-serif;
  font-size: 0.72rem;
  text-align: center;
  text-decoration: none;
  border-radius: 6px;
}

.sidebar-backlink:hover,
.sidebar-backlink:focus-visible {
  color: #f0c76d;
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

.side-note {
  margin-top: auto;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.side-note p {
  margin: 0 0 8px;
  color: #f0c76d;
  font-family: Verdana, sans-serif;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.side-note strong {
  font-size: 0.95rem;
  line-height: 1.35;
}

main {
  width: min(100%, 1320px);
  padding: 34px;
}

.topbar,
.panel-heading,
label,
.brand > span {
  min-width: 0;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.hero-copy {
  max-width: 900px;
  margin: 16px 0 0;
  color: #44534d;
  font-size: 1.08rem;
  line-height: 1.6;
}

.hero-notes {
  display: grid;
  gap: 10px;
  max-width: 960px;
  margin-top: 18px;
}

.hero-notes p {
  margin-bottom: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #46554f;
  background: rgba(255, 250, 240, 0.82);
  box-shadow: var(--shadow);
  font-family: Verdana, sans-serif;
  font-size: 0.78rem;
  line-height: 1.55;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--teal);
  font-family: Verdana, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

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

h1 {
  max-width: 980px;
  margin-bottom: 0;
  font-size: clamp(2.1rem, 4vw, 4.7rem);
  line-height: 0.98;
  overflow-wrap: anywhere;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.35rem, 2vw, 2.1rem);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.status-stack {
  display: grid;
  gap: 9px;
  justify-items: end;
}

.status-note,
.status-chip,
.control-panel,
.metric-card,
.panel,
.method-cards article,
.callout-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.status-chip {
  padding: 10px 13px;
  color: var(--pine);
  font-family: Verdana, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  background: #f3d98d;
}

.status-note {
  padding: 8px 11px;
  color: #42554e;
  font-family: Verdana, sans-serif;
  font-size: 0.74rem;
}

.exec-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: center;
  margin: 0 0 18px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 251, 244, 0.92);
  box-shadow: var(--shadow);
}

.exec-summary-copy h2 {
  margin: 6px 0 12px;
  color: var(--pine);
  font-size: 1.45rem;
  line-height: 1.25;
}

.exec-summary-copy p {
  margin: 0 0 10px;
  color: #44534d;
  font-size: 0.98rem;
  line-height: 1.55;
}

.exec-summary-note {
  font-size: 0.82rem !important;
  color: #6a766f !important;
  font-style: italic;
}

.exec-summary-chart {
  margin: 0;
  padding: 14px 16px 10px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.exec-summary-chart svg {
  width: 100%;
  height: auto;
  display: block;
}

.exec-summary-chart figcaption {
  margin-top: 8px;
  color: #6a766f;
  font-family: Verdana, sans-serif;
  font-size: 0.74rem;
  text-align: center;
}

@media (max-width: 900px) {
  .exec-summary {
    grid-template-columns: minmax(0, 1fr);
  }
}

.coverage-banner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 14px;
}

.coverage-banner article {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 251, 244, 0.92);
  box-shadow: var(--shadow);
}

.coverage-banner span,
.coverage-banner p {
  color: var(--muted);
  font-family: Verdana, sans-serif;
}

.coverage-banner span {
  display: block;
  margin-bottom: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.coverage-banner strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.02rem;
}

.coverage-banner p {
  margin-bottom: 0;
  font-size: 0.76rem;
  line-height: 1.55;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}

.metric-card {
  min-height: 162px;
  padding: 18px;
}

.metric-card span,
.metric-card small,
.panel-heading span,
.status-note {
  font-family: Verdana, sans-serif;
}

.metric-card span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.metric-card strong {
  display: block;
  margin: 18px 0 12px;
  font-size: clamp(1.95rem, 4vw, 4.2rem);
  line-height: 0.85;
}

.metric-card small {
  color: var(--muted);
  line-height: 1.45;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.95fr);
  gap: 14px;
  margin-bottom: 14px;
}

.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel {
  padding: 20px;
  overflow: hidden;
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.panel-heading span {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-family: Verdana, sans-serif;
  font-size: 0.74rem;
}

.legend i {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.legend-total {
  background: var(--blue);
}

.legend-signal {
  background: var(--gold);
}

#trendChart {
  width: 100%;
  min-height: 290px;
}

.axis-label {
  fill: #69726c;
  font-family: Verdana, sans-serif;
  font-size: 11px;
}

.grid-line {
  stroke: #ddd5c5;
  stroke-width: 1;
}

.callout-grid {
  display: grid;
  gap: 10px;
}

.callout-card {
  padding: 14px;
}

.callout-card strong {
  display: block;
  margin-bottom: 7px;
  font-size: 1rem;
}

.callout-card p {
  margin-bottom: 0;
  color: #52605a;
  line-height: 1.5;
}

.coverage-list,
.watchlist {
  display: grid;
  gap: 10px;
}

.coverage-row,
.watch-item {
  display: grid;
  gap: 8px;
  padding: 13px;
  border: 1px solid #ded5c5;
  border-radius: 7px;
  background: #fffaf0;
}

.coverage-row header,
.watch-item header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
}

.watch-item strong,
.coverage-row strong,
.watch-item span,
.coverage-row span {
  display: block;
}

.watch-item span,
.coverage-row span,
.coverage-row small {
  color: var(--muted);
  font-family: Verdana, sans-serif;
  font-size: 0.76rem;
}

.bar-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6ddcb;
}

.bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--blue));
}

.bar-fill.signal {
  background: linear-gradient(90deg, var(--gold), var(--red));
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  color: #fff;
  border-radius: 4px;
  font-family: Verdana, sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
}

.tag.high {
  background: var(--red);
}

.tag.medium {
  background: var(--gold);
  color: #20190a;
}

.tag.low {
  background: var(--green);
}

.control-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(130px, 1fr)) auto;
  gap: 12px;
  align-items: end;
  padding: 16px;
  margin: 0 0 18px;
}

.control-panel.compact {
  grid-template-columns: 180px 180px 180px minmax(220px, 1fr) auto;
}

.wide-label {
  grid-column: auto;
}

label span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-family: Verdana, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

select,
input,
.ghost-button {
  width: 100%;
  min-height: 42px;
  border: 1px solid #bfb6a4;
  border-radius: 6px;
  color: var(--ink);
  background: #fffaf0;
}

select,
input {
  padding: 0 12px;
}

.ghost-button {
  padding: 0 16px;
  cursor: pointer;
  color: #fff;
  background: var(--pine);
}

.ghost-button:hover,
.ghost-button:focus-visible {
  background: #0d2f29;
  outline: 2px solid #f0c76d;
  outline-offset: 2px;
}

.ghost-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  background: #7b877f;
}

.table-panel {
  margin-bottom: 14px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
  font-family: Verdana, sans-serif;
  font-size: 0.82rem;
}

th,
td {
  padding: 13px 12px;
  text-align: left;
  border-bottom: 1px solid #ded5c5;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
}

td:first-child {
  font-weight: 700;
}

.issuer-subline {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-family: Verdana, sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  line-height: 1.45;
}

.signal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.signal-pill {
  padding: 4px 7px;
  border: 1px solid #c9bfae;
  border-radius: 4px;
  color: #38453e;
  background: #f7f0e0;
  font-size: 0.68rem;
}

.source-link {
  color: var(--pine);
  font-weight: 700;
  text-decoration: none;
}

.source-link:hover,
.source-link:focus-visible {
  text-decoration: underline;
  outline: none;
}

.table-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-top: 14px;
}

.table-note,
.pager span {
  color: var(--muted);
  font-family: Verdana, sans-serif;
  font-size: 0.76rem;
}

.pager {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

.pager-button {
  width: auto;
  min-width: 108px;
}

.methodology {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 18px;
  padding: 34px 0 20px;
}

.method-copy p {
  max-width: 660px;
  color: #4d5a54;
  font-size: 1.05rem;
  line-height: 1.65;
}

.method-cards {
  display: grid;
  gap: 12px;
}

.method-cards article {
  padding: 18px;
}

.method-cards strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.method-cards p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.sources {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 18px 0 32px;
}

.sources h2 {
  flex-basis: 100%;
  font-size: 1.1rem;
}

.sources a {
  padding: 9px 11px;
  color: var(--pine);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 253, 247, 0.72);
  font-family: Verdana, sans-serif;
  font-size: 0.76rem;
  text-decoration: none;
}

.sources a:hover,
.sources a:focus-visible {
  border-color: var(--teal);
  outline: none;
}

.source-link {
  display: inline-block;
  margin-top: 8px;
  color: var(--blue);
  font-family: Verdana, sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
}

.source-link:hover,
.source-link:focus-visible {
  text-decoration: underline;
  outline: none;
}

.evidence-drawer {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 252, 245, 0.9);
}

.evidence-drawer summary {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  cursor: pointer;
  list-style: none;
}

.evidence-drawer summary::-webkit-details-marker {
  display: none;
}

.summary-label {
  font-family: Verdana, sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
}

.confidence-badge {
  display: inline-flex;
  padding: 4px 8px;
  color: #fff;
  border-radius: 999px;
  background: var(--teal);
  font-family: Verdana, sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.evidence-note {
  margin: 0;
  padding: 0 12px 12px;
  color: var(--muted);
  font-family: Verdana, sans-serif;
  font-size: 0.72rem;
  line-height: 1.5;
}

.evidence-item {
  padding: 0 12px 12px;
  border-top: 1px solid rgba(216, 207, 188, 0.6);
}

.evidence-item strong {
  display: block;
  margin: 10px 0 6px;
  font-family: Verdana, sans-serif;
  font-size: 0.73rem;
}

.evidence-item p {
  margin-bottom: 8px;
  color: #39453f;
  font-size: 0.92rem;
  line-height: 1.5;
}

.contact-section,
.site-footer {
  margin-top: 14px;
  padding: 20px 0 8px;
  border-top: 1px solid rgba(23, 33, 29, 0.12);
}

.contact-section p,
.site-footer p,
.site-footer a {
  font-family: Verdana, sans-serif;
}

.contact-section a,
.site-footer a {
  color: var(--blue);
  text-decoration: none;
}

.contact-section a:hover,
.contact-section a:focus-visible,
.site-footer a:hover,
.site-footer a:focus-visible {
  text-decoration: underline;
  outline: none;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding-bottom: 26px;
}

@media (max-width: 1100px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    padding: 18px 22px;
  }

  .nav-links {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .side-note {
    margin-top: 0;
  }

  .metric-grid,
  .dashboard-grid,
  .coverage-banner,
  .two-up,
  .methodology {
    grid-template-columns: 1fr 1fr;
  }

  .dashboard-grid .trend-panel {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  main {
    padding: 22px 14px;
  }

  h1 {
    font-size: 2.4rem;
  }

  .topbar,
  .panel-heading {
    display: grid;
  }

  .status-stack {
    justify-items: start;
  }

  .nav-links,
  .metric-grid,
  .dashboard-grid,
  .coverage-banner,
  .two-up,
  .methodology,
  .control-panel,
  .control-panel.compact {
    grid-template-columns: 1fr;
  }

  .table-footer {
    display: grid;
  }

  .pager {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .brand {
    grid-template-columns: 48px 1fr;
  }

  .brand-mark {
    width: 48px;
    height: 48px;
  }

  .brand strong {
    max-width: none;
  }

  .site-footer {
    display: grid;
    justify-content: start;
  }
}
