/* ============================================================
   Fix Hudson Link — packet.css
   Shared stylesheet for the editorial / report-style pages:
   /report, /stories, /press, /foil.
   Lifted from the Weber meeting packet HTML draft so the web
   pages print identically to the source PDFs.
   ============================================================ */

:root {
  --ink: #0A0A0A;
  --ink-soft: #4A4A4A;
  --muted: #8A8A8A;
  --bg: #FFFFFF;
  --cream: #FFFFFF;
  --paper: #FFFFFF;
  --brand: #1742B6;
  --brand-dark: #102F87;
  --accent: #1742B6;
  --accent-soft: rgba(23,66,182,0.1);
  --red: #E11D48;
  --amber: #F59E0B;
  --green: #059669;
  --line: #E5E5E5;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  font-size: 16px;
}
h1, h2, h3, h4, .display { font-family: 'Inter Tight', sans-serif; letter-spacing: -0.025em; font-weight: 800; }

/* ---------- Site-wide slim nav (matches home page) ---------- */
.site-nav {
  background: rgba(255,255,255,0.92);
  color: var(--ink);
  padding: 1.1rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 1400px;
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(12px);
  font-family: 'Inter', sans-serif;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.82rem;
  font-weight: 500;
}
.site-nav .nav-logo {
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.95rem; font-weight: 700;
  color: var(--ink); text-decoration: none;
  letter-spacing: -0.005em;
  display: inline-flex; align-items: center; gap: 0.5rem;
  text-transform: uppercase;
}
.site-nav .nav-logo::before {
  content: ''; width: 7px; height: 7px;
  background: var(--accent); border-radius: 50%;
}
.site-nav .nav-links {
  display: flex; gap: 2rem; align-items: center; flex-wrap: wrap;
}
.site-nav .nav-links a {
  color: var(--ink-soft); text-decoration: none;
  border-bottom: none; padding-bottom: 0;
  transition: color 0.15s;
}
.site-nav .nav-links a:hover { color: var(--ink); }
.site-nav .nav-links a.active { color: var(--accent); }
.site-nav .nav-links a.nav-report-btn {
  background: var(--ink); color: #fff;
  padding: 0.6rem 1.15rem; border-radius: 4px;
  font-weight: 600; font-size: 0.8rem;
  transition: background 0.15s;
}
.site-nav .nav-links a.nav-report-btn:hover { background: var(--accent); color: #fff; }
@media (max-width: 720px) {
  .site-nav { padding: 0.85rem 1.5rem; gap: 1rem; }
  .site-nav .nav-links { gap: 1rem; }
}

/* ---------- Page containers (one = one printable US Letter) ---------- */
.page {
  max-width: 8.5in;
  margin: 0 auto 2rem;
  background: var(--paper);
  padding: 0.75in;
  min-height: 11in;
  box-shadow: none; border: 1px solid var(--line);
  position: relative;
}
.page:first-of-type { margin-top: 2rem; }

/* ---------- Top ribbon ---------- */
.ribbon {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.5rem;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.ribbon .wordmark { color: var(--brand); }
.ribbon .section-label { color: var(--muted); }

/* ---------- Section openers ---------- */
.section-open { margin-top: 0; }
.section-open .kicker {
  color: var(--accent);
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.section-open h1 {
  font-size: 3.5rem;
  line-height: 1;
  margin: 0.5rem 0 1rem;
  color: var(--ink);
}
.section-open .dek {
  font-size: 1.2rem;
  color: var(--ink-soft);
  line-height: 1.4;
  max-width: 45rem;
}

/* ---------- Heads ---------- */
h2.sect {
  font-size: 1.9rem;
  margin: 2rem 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}
h2.sect .num {
  color: var(--accent);
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}
h3.sub { font-size: 1.25rem; margin: 1.5rem 0 0.5rem; color: var(--accent); font-weight: 700; }

p { margin: 0 0 0.85rem; color: var(--ink-soft); }
p.lead { font-size: 1.15rem; color: var(--ink); line-height: 1.5; }
strong { color: var(--ink); font-weight: 700; }
a { color: var(--brand); }

/* ---------- Mega stats ---------- */
.mega-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}
.mega-stat {
  padding: 1.75rem 1.5rem;
  border-radius: 6px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  position: relative;
}
.mega-stat.red, .mega-stat.amber, .mega-stat.brand { border-top-color: var(--accent); }
.mega-stat .number {
  font-family: 'Inter Tight', sans-serif;
  font-size: 4rem;
  font-weight: 800;
  line-height: 0.9;
  color: var(--ink);
  letter-spacing: -0.03em;
}
.mega-stat.red .number, .mega-stat.amber .number, .mega-stat.brand .number { color: var(--ink); }
.mega-stat .label {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 0.5rem;
  line-height: 1.3;
  font-weight: 500;
}

/* ---------- Pull quote ---------- */
.mega-quote {
  margin: 2rem 0;
  padding: 2rem;
  background: var(--ink);
  color: var(--cream);
  border-radius: 2px;
  position: relative;
}
.mega-quote::before {
  content: "\201C";
  position: absolute;
  top: -0.5rem;
  left: 1rem;
  font-size: 6rem;
  color: var(--accent);
  font-family: Georgia, serif;
  line-height: 1;
}
.mega-quote .text {
  font-family: 'Inter Tight', sans-serif;
  font-size: 1.6rem;
  line-height: 1.35;
  font-weight: 500;
  padding-left: 3rem;
}
.mega-quote .attrib {
  margin-top: 1rem;
  padding-left: 3rem;
  color: var(--accent);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}

/* ---------- Callouts ---------- */
.callout {
  border-left: 6px solid var(--accent);
  padding: 1rem 1.25rem;
  background: #FFF4ED;
  margin: 1.5rem 0;
  border-radius: 0 2px 2px 0;
}
.callout.blue {
  border-left-color: var(--brand);
  background: #EEF2FF;
}
.callout .label {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 700;
  color: var(--accent);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.callout.blue .label { color: var(--brand); }
.callout p { color: var(--ink); margin: 0 0 0.5rem; }
.callout p:last-child { margin-bottom: 0; }
.callout ul.tight { margin-bottom: 0; }

/* ---------- Tables ---------- */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.92rem;
}
thead th {
  background: var(--ink);
  color: var(--cream);
  text-align: left;
  padding: 0.7rem 0.75rem;
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
tbody td {
  padding: 0.7rem 0.75rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}
tbody tr:nth-child(even) { background: var(--bg); }
tbody td.route { font-weight: 700; color: var(--ink); font-family: 'Inter Tight', sans-serif; }
tbody td.bad { color: var(--red); font-weight: 600; }
tbody td.warn { color: var(--amber); font-weight: 600; }

/* ---------- Story block ---------- */
.story {
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(14, 26, 43, 0.04);
}
.story .story-tag {
  display: inline-block;
  background: var(--ink);
  color: var(--cream);
  padding: 0.3rem 0.7rem;
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 700;
  border-radius: 2px;
  margin-bottom: 0.75rem;
}
.story h3 {
  font-size: 1.6rem;
  margin: 0 0 0.25rem;
  color: var(--ink);
}
.story .byline {
  color: var(--muted);
  font-style: italic;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* ---------- Screenshot row ---------- */
.screens {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}
.screen-card { text-align: center; }
.screen-card img {
  width: 100%;
  border: 3px solid var(--ink);
  border-radius: 4px;
  display: block;
}
.screen-card .cap {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 600;
  color: var(--ink);
  margin-top: 0.5rem;
  font-size: 0.9rem;
}
.screen-card .time { color: var(--accent); font-weight: 700; }

/* ---------- Single image ---------- */
.single-img {
  text-align: center;
  margin: 1.5rem 0;
}
.single-img img {
  max-width: 60%;
  border: 3px solid var(--ink);
  border-radius: 4px;
}
.single-img .cap {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-style: italic;
}

/* ---------- Impact grid ---------- */
.impact-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0;
  margin: 1rem 0 1.5rem;
  border: 2px solid var(--ink);
  border-radius: 2px;
  overflow: hidden;
}
.impact-grid .item, .impact-grid .cost {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
}
.impact-grid .item { color: var(--ink-soft); font-size: 0.92rem; }
.impact-grid .cost {
  background: #FFF4ED;
  color: var(--accent);
  font-family: 'Inter Tight', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  justify-content: flex-end;
  min-width: 8rem;
}
.impact-grid .item:last-of-type, .impact-grid .cost:last-of-type { border-bottom: none; }

/* ---------- Outlet card (press page) ---------- */
.outlet {
  border: 2px solid var(--ink);
  border-radius: 4px;
  padding: 1.25rem 1.5rem;
  margin: 1.25rem 0;
  background: var(--paper);
  box-shadow: 4px 4px 0 var(--ink);
  position: relative;
}
.outlet .status {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 2px;
  margin-left: 0.5rem;
  vertical-align: middle;
  color: white;
}
.status.published { background: var(--green); }
.status.progress { background: var(--amber); }
.status.dev { background: var(--brand); }
.outlet .outlet-name {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--ink);
}
.outlet .byline {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0.25rem 0 0.75rem;
}
.outlet .headline {
  font-style: italic;
  font-weight: 600;
  color: var(--ink);
  font-size: 1.05rem;
  margin: 0.5rem 0 0.75rem;
}
.outlet a { color: var(--brand); word-break: break-all; font-size: 0.85rem; }

/* ---------- Number tag ---------- */
.numtag {
  display: inline-block;
  background: var(--accent);
  color: var(--paper);
  font-family: 'Inter Tight', sans-serif;
  font-weight: 700;
  padding: 0.15rem 0.6rem;
  border-radius: 2px;
  font-size: 0.85rem;
}

/* ---------- Bullets ---------- */
ul.tight { margin: 0.5rem 0 1rem; padding-left: 1.2rem; }
ul.tight li { color: var(--ink-soft); margin-bottom: 0.35rem; }

/* ---------- Route chart ---------- */
.route-chart { margin: 1rem 0 1.5rem; }
.route-bar {
  display: grid;
  grid-template-columns: 4rem 1fr 5rem;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
  font-family: 'Inter Tight', sans-serif;
}
.route-bar .r-label { font-weight: 700; font-size: 1rem; color: var(--ink); }
.route-bar .r-track {
  height: 28px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.route-bar .r-fill { height: 100%; background: var(--red); }
.route-bar .r-fill.amber { background: var(--amber); }
.route-bar .r-fill.brand { background: var(--brand); }
.route-bar .r-fill.muted { background: var(--muted); }
.route-bar .r-text {
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-weight: 600;
}

/* ---------- Page footer ---------- */
.page-footer {
  margin-top: 2rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
}

/* ---------- Print bar (screen only) ---------- */
.print-bar {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 1000;
  background: var(--ink);
  color: var(--cream);
  padding: 0.75rem 1rem;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.85rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.print-bar button {
  background: var(--accent);
  color: var(--paper);
  border: none;
  padding: 0.5rem 1rem;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 700;
  border-radius: 2px;
  cursor: pointer;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.8rem;
}
.print-bar button:hover { background: #E64A0F; }

/* ---------- Site footer (screen only) ---------- */
.site-footer {
  max-width: 8.5in;
  margin: 2rem auto 3rem;
  padding: 0 0.75in;
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.site-footer a { color: var(--muted); text-decoration: underline; }
.site-footer a:hover { color: var(--ink); }

/* ---------- Print ---------- */
@media print {
  body { background: white; }
  .page {
    box-shadow: none;
    margin: 0;
    padding: 0.6in 0.55in;
    min-height: auto;
    page-break-after: always;
  }
  .page:last-of-type { page-break-after: auto; }
  .no-print,
  .site-nav,
  .print-bar,
  .site-footer { display: none !important; }
}
