:root {
  --desk: #d4ccbe;
  --paper: #f6f0e4;
  --paper-2: #fffdf8;
  --ink: #1a2420;
  --muted: #5e584e;
  --rule: #d9d0bf;
  --forest: #243f34;
  --forest-2: #1a2c25;
  --stamp: #a61b1b;
  --up: #0f6a3c;
  --down: #a61b1b;
  --serif: "Iowan Old Style", Palatino, "Palatino Linotype", "Times New Roman", Times, serif;
  --sans: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "SFMono-Regular", ui-monospace, Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--desk);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.55;
}

a { color: var(--forest); }

a:hover { color: var(--stamp); }

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

.skip {
  position: absolute;
  left: 0.5rem;
  top: -4rem;
  background: var(--paper-2);
  color: var(--ink);
  padding: 0.4rem 0.7rem;
  z-index: 20;
}

.skip:focus { top: 0.5rem; }

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

.top, .wrap, .foot-inner {
  width: min(1120px, calc(100% - 1.5rem));
  margin-left: auto;
  margin-right: auto;
}

.top { padding-top: 0.85rem; }

.top-bar {
  display: grid;
  gap: 0.75rem;
  background: var(--forest-2);
  color: var(--paper);
  padding: 0.85rem 0.9rem 0.95rem;
}

.bureau {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.edition {
  margin: 0.15rem 0 0;
  font-size: 1.35rem;
  line-height: 1.1;
}

.edition a { color: var(--paper); text-decoration: none; }

.edition a:hover { color: #f0d0d0; }

.dot { opacity: 0.7; }

.top-meta {
  font-family: var(--sans);
  font-size: 0.86rem;
  line-height: 1.35;
}

.top-meta p { margin: 0; }

.search { position: relative; min-width: 0; }

.search input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem var(--sans);
  padding: 0.55rem 0.65rem;
}

.search input:focus {
  outline: 2px solid #e7c9c9;
  outline-offset: 1px;
}

.search-results {
  position: absolute;
  z-index: 6;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  background: var(--paper-2);
  color: var(--ink);
  border: 1px solid var(--forest);
  display: flex;
  flex-direction: column;
}

.search-results[hidden] { display: none; }

.search-results a, .search-empty {
  padding: 0.5rem 0.65rem;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
  font-family: var(--sans);
  font-size: 0.92rem;
}

.search-results a:hover { background: #efe6d4; }

.search-empty { margin: 0; }

.sheet {
  background: var(--paper);
  border-left: 10px solid var(--stamp);
  box-shadow: 0 1px 0 #cfc6b4, 0 18px 36px rgba(40, 32, 16, 0.08);
  padding: 0.35rem 0.85rem 1.4rem;
  margin-top: 0.7rem;
}

.title-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem 0 0.35rem;
}

.kicker, .field-label, .network-title, .sheet-id {
  font-family: var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-size: 0.72rem;
  margin: 0;
}

.sheet-id { color: var(--forest); margin-top: 0.2rem; }

.stamp {
  flex: 0 0 auto;
  margin: 0.35rem 0.2rem 0.35rem 0;
  transform: rotate(-7deg);
  border: 3px solid var(--stamp);
  color: var(--stamp);
  box-shadow: inset 0 0 0 1px var(--stamp);
  background: rgba(166, 27, 27, 0.05);
  font-family: var(--sans);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.15;
  font-size: 0.78rem;
  padding: 0.45rem 0.6rem;
  max-width: 12rem;
}

.stamp-large {
  display: inline-block;
  font-size: 1.15rem;
  max-width: none;
  padding: 0.7rem 0.9rem;
  margin: 0.4rem 0 0.8rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.35rem 0 0.85rem;
}

.nav a {
  font-family: var(--sans);
  font-size: 0.86rem;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid #c9bfae;
  background: transparent;
  padding: 0.32rem 0.5rem;
  line-height: 1.2;
}

.nav a[aria-current="page"] {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--paper);
}

.nav a:hover { border-color: var(--ink); }

.noscript {
  font-family: var(--sans);
  font-size: 0.92rem;
  background: #efe2c4;
  padding: 0.55rem 0.7rem;
  margin: 0 0 0.8rem;
}

h1 {
  font-size: clamp(1.65rem, 4vw, 2.45rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0.15rem 0 0.45rem;
}

h2 {
  font-size: 1.32rem;
  line-height: 1.25;
  margin: 1.45rem 0 0.35rem;
}

h3 {
  font-size: 1.08rem;
  margin: 1rem 0 0.3rem;
}

p { margin: 0.55rem 0; }

.dek {
  font-size: 1.12rem;
  margin-top: 0;
}

.byline {
  font-family: var(--sans);
  font-size: 0.88rem;
  color: var(--muted);
}

.snap-note, caption {
  font-family: var(--sans);
  font-size: 0.86rem;
  line-height: 1.4;
  color: var(--muted);
  caption-side: bottom;
  text-align: left;
  padding-top: 0.45rem;
}

.metrics {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
  margin: 0.8rem 0 0.3rem;
}

.metric {
  background: var(--paper-2);
  border-top: 3px solid var(--forest);
  padding: 0.55rem 0.65rem 0.65rem;
}

.metric b {
  display: block;
  font-family: var(--mono);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-top: 0.15rem;
}

.metric span, .metric small {
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--muted);
}

.front-grid, .article-grid, .three, .split {
  display: grid;
  gap: 1rem;
}

.rail, .panel {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  padding: 0.7rem 0.75rem 0.85rem;
}

.rail h2, .panel h2 { margin-top: 0.2rem; }

.rail ol, .rail ul, .prose ul, .prose ol { padding-left: 1.15rem; }

.rail li, .prose li { margin: 0.28rem 0; }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.8rem 0 0.35rem;
}

.filters button {
  font-family: var(--sans);
  font-size: 0.86rem;
  background: transparent;
  color: var(--ink);
  border: 1px solid #c9bfae;
  padding: 0.35rem 0.55rem;
  cursor: pointer;
}

.filters button.is-on {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.filter-status {
  font-family: var(--sans);
  font-size: 0.86rem;
  color: var(--muted);
  margin: 0.2rem 0 0.4rem;
}

.table-wrap {
  overflow-x: auto;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

table.sheet-table {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
}

table.mini {
  min-width: 0;
  width: 100%;
}

.sheet-table th {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
  border-bottom: 2px solid var(--forest);
  padding: 0.4rem 0.4rem 0.35rem;
  vertical-align: bottom;
}

.sheet-table td {
  border-bottom: 1px solid #e4dccb;
  padding: 0.42rem 0.4rem;
  vertical-align: top;
}

.sheet-table tbody tr:hover td { background: var(--paper-2); }

.sheet-table tr[hidden] { display: none; }

.num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-align: right;
}

.ticker {
  font-family: var(--mono);
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.up { color: var(--up); }

.down { color: var(--down); }

.map {
  display: block;
  width: 100%;
  margin: 0.6rem 0 0.2rem;
  background: var(--paper-2);
  border: 1px solid var(--rule);
}

.issue-list {
  list-style: none;
  padding: 0;
  margin: 0.4rem 0 0;
}

.issue-list li {
  border-top: 1px solid var(--rule);
  padding: 0.55rem 0;
}

.issue-list a {
  font-weight: 700;
  text-decoration: none;
}

.issue-list p { margin: 0.15rem 0 0; }

.toc {
  border: 1px dashed #c9bfae;
  padding: 0.45rem 0.7rem 0.6rem;
  margin: 0.6rem 0 0.8rem;
  background: rgba(255, 253, 248, 0.65);
}

.toc summary {
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.92rem;
}

.toc ol { margin: 0.4rem 0 0; }

.pull {
  margin: 0.8rem 0;
  padding: 0.2rem 0 0.2rem 0.8rem;
  border-left: 3px solid var(--stamp);
  color: var(--forest-2);
  font-size: 1.12rem;
}

.foot {
  background: var(--forest-2);
  color: var(--paper);
  margin-top: 1.1rem;
  padding: 1.3rem 0 1.8rem;
}

.foot a { color: var(--paper); }

.foot-edition, .disclaimer, .mail { margin: 0.45rem 0; }

.network ul {
  list-style: none;
  padding: 0;
  margin: 0.35rem 0 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
}

.network-title { color: #d9d0bf; }

.disclaimer {
  border-top: 1px solid rgba(243, 239, 228, 0.25);
  padding-top: 0.7rem;
  max-width: 46rem;
}

.mail a {
  font-family: var(--mono);
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

button[data-toc-toggle] {
  font-family: var(--sans);
  font-size: 0.86rem;
  background: transparent;
  color: var(--ink);
  border: 1px solid #c9bfae;
  padding: 0.35rem 0.55rem;
  cursor: pointer;
  display: inline-block;
}

.lost h1 { margin-top: 0.4rem; }

@media (min-width: 700px) {
  .metrics { grid-template-columns: 1fr 1fr; }
  .three { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1000px) {
  .top-bar {
    grid-template-columns: minmax(0, 1.3fr) auto minmax(220px, 320px);
    align-items: end;
    gap: 1rem;
  }

  .metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  .front-grid, .split {
    grid-template-columns: minmax(0, 1.7fr) minmax(240px, 0.85fr);
    align-items: start;
  }

  .article-grid {
    grid-template-columns: minmax(0, 1fr) 290px;
    align-items: start;
  }

  .three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .rail { position: sticky; top: 0.6rem; }

  .sheet { padding: 0.4rem 1.15rem 1.6rem; }
}

@media (max-width: 420px) {
  .stamp { transform: none; letter-spacing: 0.08em; }
  .edition { font-size: 1.2rem; }
  body { font-size: 1.02rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
