/* ─────────────────────────────────────────────────────────────
   GwinnettPulse — Two-color column
   Baltic Blue background · White type · Fraunces + DM Sans
   ───────────────────────────────────────────────────────────── */

:root {
  --bg: #ECECE9;              /* neutral warm-grey page — cards lift off it */
  --fg: #0A2140;              /* Gwinnett deep navy — primary type, headers, brand */
  --fg-mute: #525A6B;         /* muted navy-grey */
  --fg-soft: #969BA6;          /* soft secondary */
  --rule: #E6E6E2;             /* neutral hairline */
  --rule-soft: #EDEDEA;        /* near-invisible neutral divider */
  --accent: #A8503A;           /* warm terracotta — the one spot color (lead bar, badge, links) */

  /* One typeface across the whole site — Inter. (The script logo G is the only exception.) */
  --serif-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --serif: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --text-max: 960px;
  --content-max: 1080px;
  --wide-max: 1240px;

  --radius-md: 12px;
  --radius-full: 999px;

  --card: #FFFFFF;            /* clean white cards */
  --card-edge: #E4E4E0;       /* neutral hairline edge */
  --card-lip: 0 0 0 0 rgba(0, 0, 0, 0);   /* no-op (kept so box-shadow lists stay valid) */
  /* Real elevation — soft, layered, premium */
  --card-shadow: 0 1px 2px rgba(20, 24, 33, 0.05), 0 6px 16px -4px rgba(20, 24, 33, 0.10), 0 14px 34px -8px rgba(20, 24, 33, 0.08);
  --card-shadow-hover: 0 2px 4px rgba(20, 24, 33, 0.06), 0 12px 26px -6px rgba(20, 24, 33, 0.14), 0 24px 50px -12px rgba(20, 24, 33, 0.14);
  /* Paper texture removed for a clean flat look */
  --paper-grain: none;
  --paper-mottle: none;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
}

body {
  min-height: 100vh;
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Plain cream table — the paper texture lives only on the cards that sit on it */
  background: var(--bg);
}

/* No italics anywhere — single clean sans, upright everywhere. */
em, i, cite, address { font-style: normal; }

/* ── City hub pages + the homepage "browse by city" nav ──────── */
.city-intro {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.6;
  color: var(--fg-mute);
  text-align: center;
  max-width: 60ch;
  margin: 0 auto 36px;
}
.city-intro strong { color: var(--fg); font-weight: 600; }

.city-nav {
  max-width: var(--wide-max);
  margin: 8px auto 0;
  padding: 30px 0 6px;
  border-top: 1px solid var(--rule-soft);
}
.city-nav-label {
  display: block;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-soft);
  margin-bottom: 16px;
}
.city-nav-links { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.city-link {
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.city-link:hover { text-decoration: underline; }
.city-link.is-current { color: var(--fg-soft); cursor: default; }

/* ── Masthead ────────────────────────────────────────────────── */
.masthead {
  padding: 24px 32px 0;
}

.masthead-inner {
  max-width: var(--wide-max);
  margin: 0 auto;
}

.masthead-logo {
  display: block;
  text-align: center;
  text-decoration: none;
  color: var(--fg);
  padding: 32px 0 10px;
}

/* ── Logo: script Estonia "G" (chalk edge) + Inter wordmark ──── */
.logo-main {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  font-family: var(--sans);
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1;
  color: var(--fg);
  white-space: nowrap;
}

.logo-filter { position: absolute; width: 0; height: 0; }

.logo-g {
  font-family: 'Estonia', cursive;
  font-size: 2.8em;
  line-height: 0;
  margin-right: 0.01em;
  transform: translateY(0.05em);
  filter: url(#g-chalk);
}

.masthead-tagline {
  text-align: center;
  font-family: var(--serif);
  font-style: normal;
  font-size: 17px;
  color: var(--fg-mute);
  padding-bottom: 20px;
}

.masthead-nav {
  display: flex;
  justify-content: center;
  gap: 36px;
  padding: 20px 0;
  border-top: 1px solid var(--rule);
}

.nav-link {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-mute);
  text-decoration: none;
  padding: 4px 0;
  transition: color 150ms ease;
}

.nav-link:hover,
.nav-link.active { color: var(--fg); }

.nav-link.nav-cta {
  background: var(--fg);
  color: var(--bg);
  padding: 8px 18px;
  border-radius: var(--radius-full);
}

.nav-link.nav-cta:hover {
  background: var(--fg);
  color: var(--bg);
  opacity: 0.9;
}

/* ── Column ─────────────────────────────────────────────────── */
.column-page {
  padding: 48px 32px 80px;
  max-width: var(--wide-max);
  margin: 0 auto;
  transition: opacity 180ms ease, transform 180ms ease;
}

.column-page.is-swapping {
  opacity: 0;
  transform: translateY(8px);
}

.column {
  max-width: var(--text-max);
  margin: 0 auto;
}

/* Week picker — horizontal scroll, never wraps */
.week-picker {
  display: flex;
  gap: 8px;
  margin-bottom: 56px;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--rule) transparent;
  -webkit-overflow-scrolling: touch;
  padding: 4px 0 12px;
  /* Fade only the right edge to hint at scrollability */
  mask-image: linear-gradient(to right, black 0, black calc(100% - 32px), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, black 0, black calc(100% - 32px), transparent 100%);
}

.week-picker::-webkit-scrollbar {
  height: 6px;
}

.week-picker::-webkit-scrollbar-track {
  background: transparent;
}

.week-picker::-webkit-scrollbar-thumb {
  background: var(--rule);
  border-radius: 3px;
}

.week-pill {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg);
  background: transparent;
  text-decoration: none;
  padding: 8px 16px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-full);
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
  font: inherit;
  font-size: 12px;
}

.week-pill:hover { border-color: var(--fg); }

.week-pill.active {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}

.column-headline {
  font-family: var(--serif);
  font-size: clamp(32px, 4.6vw, 50px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-align: center;
  text-wrap: balance;
  margin: 0 0 28px;
  color: var(--fg);
  font-variation-settings: "opsz" 144;
  max-width: 22ch;
  margin-left: auto;
  margin-right: auto;
}

.column-headline em {
  font-style: normal;
  font-weight: 400;
}

.byline {
  text-align: center;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--fg-mute);
  margin-bottom: 48px;
}

.byline strong {
  color: var(--fg);
  font-weight: 600;
}

/* Stat strip */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 0 auto 56px;
  max-width: var(--content-max);
}

.stat {
  text-align: center;
  padding: 8px 0;
}

.stat + .stat {
  border-left: 1px solid var(--rule-soft);
}

.stat-value {
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 600;
  color: var(--fg);
  line-height: 1.2;
  margin-bottom: 8px;
  font-variation-settings: "opsz" 60;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.stat-label {
  font-family: var(--sans);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-mute);
  font-weight: 600;
}

/* Body */
.column-body {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.7;
  font-weight: 400;
  color: var(--fg);
  font-variation-settings: "opsz" 14;
}

.column-body p { margin: 0 0 26px; }

.column-body strong {
  color: var(--fg);
  font-weight: 600;
}

.column-body em { font-style: normal; font-weight: 600; }

.lede {
  font-size: 21px;
  line-height: 1.55;
}

.column-body h2 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 56px 0 20px;
  font-variation-settings: "opsz" 144;
}

/* Stories */
.stories {
  margin: 32px 0 48px;
}

/* ── Lead story — featured treatment ────────────────────────── */
.story-lead {
  position: relative;
  padding: 32px 0 36px 32px;
  margin: 0 0 56px;
  border-left: 4px solid var(--fg);
}

.lead-eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--fg);
  margin-bottom: 14px;
}

.lead-body {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.5;
  font-weight: 400;
  color: var(--fg);
  margin: 0;
  font-variation-settings: "opsz" 60;
  text-wrap: pretty;
}

.lead-body strong {
  font-weight: 700;
  color: var(--fg);
}

.story-link {
  display: inline-block;
  margin-top: 4px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1.5px solid color-mix(in srgb, var(--accent) 45%, transparent);
  padding-bottom: 1px;
}

.story-link:hover { opacity: 0.7; }

/* Whole-story clickable wraps (important cards + brief items) */
.story-link-wrap {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: opacity 150ms ease;
}

.story-link-wrap:hover { opacity: 0.6; }

/* ── Section heading (shared between Important + Brief) ─────── */
.section-heading {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--fg);
  margin: 0 0 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--fg);
}

/* ── Important stories — 3-column grid, mid-prominence ──────── */
.important-section {
  margin: 40px 0;
}

.important-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 36px;
}

.story-important {
  padding-top: 4px;
}

.important-eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg);
  margin-bottom: 8px;
}

.important-body {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.5;
  font-weight: 400;
  color: var(--fg);
  margin: 0;
}

.important-body strong {
  font-weight: 600;
  color: var(--fg);
}

/* ── Brief section — section heading + 2-column grid ────────── */
.brief-section {
  margin-top: 40px;
}

.brief-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 40px;
}

.brief-item {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule-soft);
  color: var(--fg);
}

.brief-item strong {
  font-weight: 600;
  color: var(--fg);
}

.brief-lead {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg);
  margin-bottom: 4px;
}

.brief-prose {
  display: block;
  color: var(--fg-mute);
}

@media (max-width: 900px) {
  .important-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .important-list { grid-template-columns: 1fr; }
  .brief-list { grid-template-columns: 1fr; }
  .story-lead { padding-left: 20px; }
  .lead-body { font-size: 20px; }
}

.pull-quote {
  font-family: var(--serif);
  font-style: normal;
  font-size: 28px;
  line-height: 1.35;
  color: var(--fg);
  text-align: center;
  margin: 48px 0;
  font-weight: 400;
  padding: 0 20px;
  font-variation-settings: "opsz" 144;
  opacity: 0.88;
}

/* City bars */
.city-bars { margin: 32px 0; }

.city-bar {
  display: grid;
  grid-template-columns: 120px 1fr 140px;
  gap: 16px;
  align-items: center;
  margin-bottom: 14px;
  font-family: var(--sans);
  font-size: 13px;
}

.city-bar:last-child { margin-bottom: 0; }

.city-bar-name {
  font-weight: 600;
  color: var(--fg);
}

.city-bar-track {
  height: 8px;
  background: var(--rule-soft);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.city-bar-fill {
  height: 100%;
  background: var(--fg);
  border-radius: var(--radius-full);
}

.city-bar-value {
  color: var(--fg-mute);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Featured project — outlined panel, no fill */
.featured-project {
  border: 1px solid var(--rule);
  padding: 36px;
  border-radius: var(--radius-md);
  margin: 56px 0;
}

.featured-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--fg-mute);
  margin-bottom: 10px;
}

.featured-title {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
  margin: 0 0 6px;
  line-height: 1.1;
  color: var(--fg);
  font-variation-settings: "opsz" 144;
}

.featured-meta {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--fg-mute);
  margin-bottom: 28px;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px 28px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}

.featured-grid > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fp-label {
  font-family: var(--sans);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-soft);
  font-weight: 600;
}

.fp-value {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 400;
  color: var(--fg);
  font-variation-settings: "opsz" 14;
}

.signoff {
  font-style: normal;
  margin-top: 48px !important;
  color: var(--fg-mute);
}

.signoff-name {
  font-family: var(--serif);
  font-size: 22px;
  font-style: normal;
  color: var(--fg);
  margin: 4px 0 0 !important;
  font-variation-settings: "opsz" 144;
}

/* ── Subscribe ──────────────────────────────────────────────── */
.subscribe-card {
  max-width: var(--text-max);
  margin: 96px auto 0;
  padding: 48px 40px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  text-align: center;
}

.subscribe-eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--fg-mute);
  font-weight: 700;
  margin-bottom: 14px;
}

.subscribe-card h3 {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  color: var(--fg);
  font-variation-settings: "opsz" 144;
}

.subscribe-card p {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--fg-mute);
  margin: 0 0 28px;
}

.subscribe-form {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.subscribe-form input {
  flex: 1;
  min-width: 220px;
  padding: 14px 20px;
  font-family: var(--sans);
  font-size: 15px;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: var(--radius-full);
  color: var(--fg);
  outline: none;
  transition: border-color 150ms ease;
}

.subscribe-form input::placeholder { color: var(--fg-soft); }

.subscribe-form input:focus { border-color: var(--fg); }

.btn-3d {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  padding: 14px 28px;
  background: var(--fg);
  color: var(--bg);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: opacity 150ms ease;
}

.btn-3d:hover { opacity: 0.9; }

.subscribe-meta {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--fg-soft);
  margin-top: 14px;
}

/* ── View all permits link + table page ─────────────────────── */
.view-all {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--rule-soft);
  text-align: center;
  font-style: normal !important;
  color: var(--fg) !important;
}

.all-back {
  margin-bottom: 24px;
}

.all-headline {
  font-family: var(--serif-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 8px 0 32px;
  color: var(--fg);
}

.all-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.all-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 14px;
}

.all-table thead th {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-mute);
  text-align: left;
  padding: 12px 12px 8px;
  border-bottom: 2px solid var(--fg);
  white-space: nowrap;
}

.all-table tbody td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--rule-soft);
  vertical-align: top;
  color: var(--fg);
}

.all-table tbody tr:hover { background: var(--rule-soft); }

.all-table .cell-cost { font-weight: 600; white-space: nowrap; }
.all-table .cell-type { color: var(--fg-mute); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; white-space: nowrap; }
.all-table .cell-project a { color: var(--fg); text-decoration: none; font-weight: 500; }
.all-table .cell-project a:hover { text-decoration: underline; }
.all-table .cell-sqft, .all-table .cell-zone { text-align: right; font-variant-numeric: tabular-nums; }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  margin-top: 32px;
  padding: 40px 32px 32px;
}

.footer-inner {
  max-width: var(--wide-max);
  margin: 0 auto;
  text-align: center;
}

/* Button Gwinnett sign-off — embossed cream-on-cream bas-relief */
.footer-signoff {
  margin: 4px 0 36px;
}

.footer-est {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--fg-soft);
  margin-top: 8px;
}

.footer-meta {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--fg-soft);
  margin: 24px auto 14px;
  max-width: 560px;
  line-height: 1.6;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 820px) {
  .stat-strip { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }
  .stat + .stat { border-left: none; }
  .stat:nth-child(even) { border-left: 1px solid var(--rule-soft); }

  .featured-grid { grid-template-columns: repeat(2, 1fr); }

  .masthead-nav { gap: 20px; font-size: 12px; }
}

@media (max-width: 560px) {
  .column-page { padding: 48px 20px 64px; }
  .masthead { padding: 20px 20px 0; }
  .city-bar { grid-template-columns: 80px 1fr 100px; font-size: 11px; }
  .subscribe-card { padding: 36px 24px; }
  .subscribe-card h3 { font-size: 26px; }
  .featured-project { padding: 28px 22px; }
  .featured-title { font-size: 26px; }
}

/* ─────────────────────────────────────────────────────────────
   Issue-card grid (home)
   ───────────────────────────────────────────────────────────── */
.grid-page {
  position: relative;
  padding: 28px 32px 96px;
  max-width: var(--wide-max);
  margin: 0 auto;
}

/* Courthouse anchored to the far bottom-right corner — clears the card columns so a
   future 6th card never sits on top of it; bleeds gently off the right edge as a corner accent. */
.page-courthouse {
  display: none;
  position: absolute;
  left: auto;
  right: -230px;
  bottom: -200px;
  width: 460px;
  max-width: 46%;
  height: auto;
  z-index: 0;
  opacity: 0.2;
  filter: grayscale(1);
  pointer-events: none;
}

.grid-hero {
  text-align: center;
  max-width: 820px;
  margin: 20px auto 60px;
}

.grid-hero-title {
  font-family: var(--serif-display);
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
  color: var(--fg);
  font-variation-settings: "opsz" 144;
  text-wrap: balance;
}

.grid-hero-title em { font-style: normal; font-weight: inherit; }

.grid-hero-sub {
  font-family: var(--serif);
  font-style: normal;
  font-size: clamp(16px, 2vw, 19px);
  color: var(--fg-mute);
  margin: 0 auto;
  max-width: 560px;
  line-height: 1.5;
}

/* ── Lead story: the newest week, featured above the archive ──── */
.hero-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 56px;
  background-color: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: 20px;
  padding: 48px 52px;
  margin-bottom: 46px;
  overflow: hidden;
  cursor: pointer;
}

.hero-seal-bg {
  display: none;
  position: absolute;
  right: -64px;
  top: 50%;
  transform: translateY(-50%);
  width: 380px;
  height: 380px;
  color: var(--fg);
  opacity: 0.045;
  z-index: 0;
  pointer-events: none;
}
.hero-seal-bg .card-mark { width: 100%; height: 100%; }

.hero-main {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.hero-badge {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #FFFFFF;
  background: var(--accent);
  padding: 5px 11px;
  border-radius: 6px;
}

.hero-kicker-meta {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--fg-soft);
}

.hero-headline {
  font-family: var(--serif-display);
  font-size: clamp(30px, 3.5vw, 44px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  color: var(--fg);
  font-variation-settings: "opsz" 144;
  text-wrap: balance;
}

.hero-headline em { font-style: normal; font-weight: inherit; }
.hero-headline a { color: inherit; text-decoration: none; }

.hero-dek {
  font-family: var(--serif);
  font-style: normal;
  font-size: 18px;
  line-height: 1.55;
  color: var(--fg-mute);
  margin: 0 0 28px;
  max-width: 48ch;
}

.hero-readmore {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
}

.hr-arrow { transition: transform 180ms ease; }
.hero-readmore:hover .hr-arrow { transform: translateX(4px); }

.hero-side {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid var(--rule-soft);
  padding-left: 48px;
}

.hero-cities { margin: 0; gap: 13px; }
.hero-cities .card-city { grid-template-columns: 100px 1fr 30px; font-size: 12.5px; }
.hero-cities .cc-track { height: 6px; }

.hero-foot {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--rule-soft);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-mute);
  font-variant-numeric: tabular-nums;
}

/* Section divider that re-frames the grid below as the archive */
.archive-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 4px 0 24px;
}
.archive-label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-soft);
  white-space: nowrap;
}
.archive-head::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rule);
}

.card-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.issue-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 320px;
  padding: 28px 28px 24px;
  background-color: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: var(--fg);
  cursor: pointer;
  box-shadow: var(--card-shadow);
  transition: transform 220ms cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 220ms ease;
}

.issue-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--card-shadow-hover);
}
.hero-card {
  box-shadow: var(--card-shadow);
  transition: transform 220ms cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 220ms ease;
}
.hero-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--card-shadow-hover);
}
@media (prefers-reduced-motion: reduce) {
  .issue-card:hover, .hero-card:hover { transform: none; }
}

.card-link {
  color: inherit;
  text-decoration: none;
}

/* Big faint civic-seal watermark behind the card content */
.card-seal-bg {
  display: none;
  position: absolute;
  right: -30px;
  top: -28px;
  width: 224px;
  height: 224px;
  color: var(--fg);
  opacity: 0.06;
  z-index: 0;
  pointer-events: none;
}

.card-seal-bg .card-mark { width: 100%; height: 100%; }

/* Foreground content sits above the watermark */
.card-fg {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Header: tier label + date */
.card-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 22px;
}

.card-tier {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--fg);
}

.card-date {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-soft);
}

.card-headline {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  color: var(--fg);
  font-variation-settings: "opsz" 80;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 57px;
}

.card-headline em { font-style: normal; font-weight: inherit; }

.card-dek {
  font-family: var(--serif);
  font-style: normal;
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg-mute);
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 70px;
}

/* Compact top-3 city spread — the "where the money's going" pillar */
.card-cities {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 4px 0 8px;
}

.card-city {
  display: grid;
  grid-template-columns: 82px 1fr 26px;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 11.5px;
}

.cc-name {
  color: var(--fg-mute);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cc-track {
  height: 5px;
  background: var(--rule-soft);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.cc-fill {
  display: block;
  height: 100%;
  width: var(--cc-w);          /* no-JS / default: full width */
  background: var(--fg);
  opacity: 0.6;                /* crisper than before */
  border-radius: var(--radius-full);
}

/* The week's leading city gets the terracotta — one warm spot of color in every card's data */
.card-cities .card-city:first-child .cc-fill { background: var(--accent); opacity: 0.92; }

/* When JS is on, bars start empty and grow to their value as the card scrolls in. */
body.js-anim .cc-fill { width: 0; transition: width 720ms cubic-bezier(0.22, 0.61, 0.36, 1); }
body.js-anim .issue-card.in-view .cc-fill,
body.js-anim .hero-card.in-view .cc-fill { width: var(--cc-w); }
@media (prefers-reduced-motion: reduce) {
  body.js-anim .cc-fill { transition: none; width: var(--cc-w); }
}

.cc-val {
  text-align: right;
  color: var(--fg-soft);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.card-foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--rule-soft);
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--fg-mute);
  font-variant-numeric: tabular-nums;
}

/* Columnist signature — small authored cue, kept quiet so it doesn't shout */
.card-byline {
  font-family: var(--serif);
  font-style: normal;
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0;
  color: var(--fg-soft);
  white-space: nowrap;
}

.hero-foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

/* Old-style figures in the prose — typeset, not UI. Data digits stay lining/tabular. */
.card-headline, .card-dek,
.hero-headline, .hero-dek,
.column-headline, .lead-body, .column-body {
  font-feature-settings: "onum" 1, "pnum" 1;
}

.card-bottom {
  margin-top: auto;
}


/* Detail-view back link (replaces the old week-pill picker) */
.detail-back { margin-bottom: 28px; }

.back-link {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-mute);
  text-decoration: none;
}

.back-link:hover { color: var(--fg); }

/* ── In-page week detail (replaces the feed; the only thing showing) ── */
/* When a detail is open, hide the feed so only the detail card displays. */
.grid-page.feed-hidden > .hero-card,
.grid-page.feed-hidden > .archive-head,
.grid-page.feed-hidden > .card-grid,
.grid-page.feed-hidden > .page-courthouse { display: none; }

.detail-panel {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto;
  background-color: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: 18px;
  padding: 56px 64px 52px;
  box-shadow: var(--card-shadow);
  animation: panelRise 220ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.panel-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: var(--rule-soft);
  color: var(--fg-mute);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 150ms ease, color 150ms ease;
  z-index: 2;
}
.panel-close:hover { background: var(--rule); color: var(--fg); }

.panel-loading {
  text-align: center;
  color: var(--fg-soft);
  font-family: var(--sans);
  padding: 56px 0;
}

/* A small tier/issue kicker above the detail headline, tying it to the card. */
.detail-kicker {
  text-align: center;
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-soft);
  margin-bottom: 14px;
}

/* The detail content fills the focused reading card. */
.detail-panel .column { max-width: 100%; margin: 0; }
.detail-panel .column-headline { font-size: clamp(25px, 3.2vw, 34px); margin-bottom: 14px; }
.detail-panel .byline { margin-bottom: 34px; }
.detail-panel .stat-strip { margin: 0 0 38px; gap: 0; max-width: 100%; }
.detail-panel .view-all { margin-bottom: 0; }

@keyframes panelRise { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-card { grid-template-columns: 1fr; gap: 32px; padding: 40px 40px; }
  .hero-side { border-left: none; padding-left: 0; border-top: 1px solid var(--rule-soft); padding-top: 28px; }
  .hero-seal-bg { right: -120px; opacity: 0.035; }
}
@media (max-width: 560px) {
  .card-grid { grid-template-columns: 1fr; gap: 22px; }
  .grid-page { padding: 24px 20px 72px; }
  .issue-card { min-height: 0; padding: 28px 26px 24px; }
  .hero-card { padding: 32px 26px; margin-bottom: 34px; }
  .detail-panel { padding: 34px 24px 32px; }
  .detail-panel .stat-strip { grid-template-columns: repeat(2, 1fr); }
}
