/* ============================================================
   THE RECORD — Main Stylesheet
   E&E Media Services LLC
   Design based on the-record-v5.html
   ============================================================ */

/* ─── Variables ──────────────────────────────────────────── */
:root {
  --black:       #1a1a1a;
  --near-black:  #222;
  --dark-gray:   #333;
  --medium-gray: #555;
  --light-gray:  #999;
  --border-gray: #ddd;
  --subtle-gray: #f0efed;
  --paper:       #fafaf8;
  --white:       #fff;
  --accent:      #c41e1e;
  --accent-dark: #a01818;
  --accent-light:#f5eaea;

  --serif:       'Playfair Display', Georgia, serif;
  --body-serif:  'Source Serif 4', Georgia, serif;
  --sans:        'Outfit', -apple-system, sans-serif;

  --max-width:     1280px;
  --content-width: 1140px;
  --nav-height:    40px;

  color-scheme: light dark;
}

/* ─── Dark Mode ──────────────────────────────────────────── */
[data-theme="dark"] {
  --black:       #e8e6e3;
  --near-black:  #ddd;
  --dark-gray:   #ccc;
  --medium-gray: #aaa;
  --light-gray:  #8f8f8f;
  --border-gray: #333;
  --subtle-gray: #1e1e1e;
  --paper:       #141414;
  --white:       #1a1a1a;
  --accent:      #e85454;
  --accent-dark: #f07070;
  --accent-light:#2a1515;
  color-scheme: dark;
}
[data-theme="dark"] img { filter: brightness(0.92); }
[data-theme="dark"] .masthead-logo-img { filter: invert(1); }
[data-theme="dark"] .utility-bar { background: #0d0d0d; }
/* Footer is a dark surface in BOTH modes. In light mode .site-footer uses
   var(--near-black) (#222); in dark mode that token inverts to #ddd, which
   turned the whole footer light-gray. Pin it to a tinted near-black. The old
   rule targeted the wrong class (.footer, not .site-footer) so never applied. */
[data-theme="dark"] .site-footer { background: #121214; }
[data-theme="dark"] .rates-table thead tr { background: #2a0c0c; color: #fff; }
[data-theme="dark"] .ticker-bar { background: var(--accent); }
[data-theme="dark"] blockquote { border-left-color: var(--accent); }
[data-theme="dark"] .hero-image-wrap img { filter: brightness(0.88); }
[data-theme="dark"] .masthead-grid .staff-card img { filter: brightness(0.85) grayscale(15%); }

/* ─── Skip Link (a11y) ───────────────────────────────────── */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--accent);
  color: #fff;
  padding: 10px 18px;
  font-family: var(--sans);
  font-size: 14px;
  text-decoration: none;
}
.skip-link:focus {
  left: 8px;
  top: 8px;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* ─── No-image handling: text-forward, never broken/voids ────
   Images are optional. When absent we DON'T reserve a grey box or
   placeholder — the layout collapses cleanly to a typographic
   treatment (newspaper-appropriate). */

/* Single article with no hero image: the byline meta border-bottom
   + the share-bar border-top would stack into an ugly "double rule"
   with a gap. Collapse to a single divider (the share-bar's). */
.no-hero .article-detail-meta { border-bottom: none; padding-bottom: 6px; margin-bottom: 14px; }

/* Variety stack row with no thumbnail: headline takes full width
   instead of leaving an empty 100px image column over the text. */
.stack-item--no-img { grid-template-columns: 1fr; }

/* ─── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body-serif);
  background: var(--paper);
  color: var(--black);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; cursor: pointer; }
img { max-width: 100%; display: block; height: auto; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ─── Utility Bar ─────────────────────────────────────────── */
.utility-bar {
  background: #1a1a1a;
  color: #fff;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 6px 0;
}
.utility-bar .inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.utility-bar a { color: rgba(255,255,255,0.7); transition: color 0.2s; }
.utility-bar a:hover { color: #fff; }
.utility-links { display: flex; gap: 16px; align-items: center; }
.dark-mode-toggle {
  background: none; border: none; color: rgba(255,255,255,0.7);
  cursor: pointer; padding: 2px; display: flex; align-items: center;
  transition: color 0.2s;
}
.dark-mode-toggle:hover { color: #fff; }
.dark-mode-toggle .icon-moon { display: none; }
[data-theme="dark"] .dark-mode-toggle .icon-sun { display: none; }
[data-theme="dark"] .dark-mode-toggle .icon-moon { display: block; }

/* ─── Masthead ────────────────────────────────────────────── */
.masthead {
  background: var(--white);
  padding: 18px 0 14px;
  text-align: center;
  border-bottom: 1px solid var(--border-gray);
}
.masthead .inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.masthead-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 6px;
}
/* Date always far-left; location + weather always grouped far-right.
   Exactly two flex children, so positions never shift whether or not
   the weather chip is present. */
.masthead-top-right {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}
.masthead-meta {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--light-gray);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.masthead-wx {
  color: var(--light-gray);
  text-decoration: none;
  transition: color 0.2s;
}
.masthead-wx:hover { color: var(--accent); }
.masthead-logo {
  padding: 2px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  display: block;
}
.masthead-logo-img {
  display: block;
  margin: 0 auto;
  width: 380px;
  max-width: 90%;
  height: auto;
}
.masthead-the-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: -4px;
  justify-content: center;
}
.masthead-the-rule { width: 120px; height: 1.5px; background: var(--black); }
.the-text {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 900;
  color: var(--black);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  line-height: 1;
}
.masthead-record {
  font-family: var(--serif);
  font-size: 82px;
  font-weight: 900;
  color: var(--black);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  line-height: 0.9;
  display: block;
}
.masthead-schools {
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dark-gray);
  margin-top: 6px;
  display: block;
}
.masthead-rule {
  width: 100%;
  height: 3px;
  background: var(--black);
  margin: 10px 0 0;
  position: relative;
}
.masthead-rule::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0; right: 0;
  height: 1px;
  background: var(--black);
}

/* ─── Nav ────────────────────────────────────────────────── */
.main-nav {
  background: var(--white);
  border-bottom: 1px solid var(--border-gray);
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  box-shadow: 0 1px 3px rgba(0,0,0,0);
  transition: box-shadow 0.3s, height 0.25s ease;
}
.main-nav.scrolled { box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.main-nav .inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}
.main-nav ul { display: flex; list-style: none; align-items: center; height: 100%; }
.main-nav li { height: 100%; display: flex; align-items: center; }
.main-nav a {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dark-gray);
  padding: 0 14px;
  height: 100%;
  display: flex;
  align-items: center;
  transition: color 0.2s;
  position: relative;
}
.main-nav a:hover { color: var(--accent); }
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 14px; right: 14px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}
.main-nav a:hover::after { transform: scaleX(1); }
.nav-divider {
  width: 1px;
  height: 16px;
  background: var(--border-gray);
  flex-shrink: 0;
}
/* Mobile hamburger */
.nav-toggle {
  display: none;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--black);
  margin: 4px 0;
  transition: all 0.25s;
}

/* ─── Ticker ─────────────────────────────────────────────── */
.ticker-bar {
  background: var(--accent);
  color: var(--white);
  padding: 7px 0;
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.ticker-bar .inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
}
.ticker-label {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(0,0,0,0.25);
  padding: 3px 10px;
  border-radius: 2px;
  white-space: nowrap;
  flex-shrink: 0;
}
.ticker-track { overflow: hidden; flex: 1; }
.ticker-text {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  white-space: nowrap;
  display: inline-block;
  animation: tickerScroll 40s linear infinite;
}
@keyframes tickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── Content Wrapper ─────────────────────────────────────── */
.content-wrapper {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Hero ───────────────────────────────────────────────── */
.hero-section {
  padding: 28px 0 24px;
  border-bottom: 1px solid var(--border-gray);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
}
.hero-image-wrap {
  position: relative;
  overflow: hidden;
  margin-bottom: 14px;
  background: var(--subtle-gray);
}
.hero-image-wrap img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform 0.4s ease;
  aspect-ratio: 16 / 9;
  will-change: transform;
}
.hero-image-wrap:hover img { transform: scale(1.02); }
.hero-image-caption {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--light-gray);
  margin-top: 6px;
  font-style: italic;
}
.hero-category {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.hero-headline {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--black);
  margin-bottom: 10px;
  transition: color 0.2s;
}
.hero-main a:hover .hero-headline { color: var(--accent-dark); }
.hero-deck {
  font-family: var(--body-serif);
  font-size: 17px;
  line-height: 1.55;
  color: var(--medium-gray);
  margin-bottom: 18px;
}
.hero-byline {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--light-gray);
  letter-spacing: 0.02em;
}
.hero-byline .author { color: var(--accent); font-weight: 600; }

/* ─── Sidebar ────────────────────────────────────────────── */
.hero-sidebar {
  border-left: 1px solid var(--border-gray);
  padding-left: 24px;
}
.sidebar-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.sidebar-label .arrow { font-size: 14px; font-weight: 400; margin-left: 4px; }
.sidebar-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-gray);
  display: flex;
  gap: 10px;
  align-items: flex-start;
  transition: background 0.15s;
  border-radius: 3px;
}
.sidebar-item:last-child { border-bottom: none; }
.sidebar-item:hover {
  background: var(--subtle-gray);
  margin: 0 -6px;
  padding: 10px 6px;
}
.sidebar-item-number {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 800;
  color: var(--border-gray);
  line-height: 1;
  flex-shrink: 0;
  min-width: 28px;
}
/* Flex child must be allowed to shrink or long headlines overflow the
   viewport on mobile (classic flexbox min-width:auto trap). */
.sidebar-item-content {
  flex: 1 1 auto;
  min-width: 0;
}
.sidebar-item-category {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--light-gray);
  margin-bottom: 2px;
}
.sidebar-item-headline {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--near-black);
  transition: color 0.2s;
  overflow-wrap: anywhere;
}
.sidebar-item:hover .sidebar-item-headline { color: var(--accent); }
.sidebar-item-byline {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--light-gray);
  margin-top: 3px;
}
.sidebar-item-byline .author { color: var(--accent); font-weight: 500; }

/* ─── Section Headers ─────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 26px 0 14px;
}
.section-header h2 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}
.section-header h2 .arrow { font-size: 16px; line-height: 1; font-weight: 400; }
.section-header .line { flex: 1; height: 1px; background: var(--border-gray); }

/* ─── 3-Column Grid (News, Sports) ───────────────────────── */
.article-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-bottom: 1px solid var(--border-gray);
  padding-bottom: 24px;
}
.article-card {
  padding: 0 22px;
  border-right: 1px solid var(--border-gray);
  display: block;
}
.article-card:first-child { padding-left: 0; }
.article-card:last-child { border-right: none; padding-right: 0; }
.article-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  margin-bottom: 14px;
  transition: opacity 0.3s;
  background: var(--subtle-gray);
  display: block;
}
.article-card:hover .article-card-image { opacity: 0.92; }
.article-card-category {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 5px;
}
.article-card-headline {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--near-black);
  margin-bottom: 6px;
  transition: color 0.2s;
}
.article-card:hover .article-card-headline { color: var(--accent-dark); }
.article-card-deck {
  font-family: var(--body-serif);
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--medium-gray);
  margin-bottom: 8px;
}
.article-card-byline {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--light-gray);
}
.article-card-byline .author { color: var(--accent); font-weight: 500; }

/* Text-only card (no image) — clean top accent */
.article-card--text-only {
  border-top: 3px solid var(--accent);
  padding-top: 14px;
}
.article-card--text-only .article-card-headline {
  font-size: 18px;
}

/* Legacy placeholder — hide */
.card-no-image { display: none; }

/* ─── Variety Feature Row ─────────────────────────────────── */
.feature-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-gray);
}
.feature-main-image {
  width: 100%;
  height: 310px;
  object-fit: cover;
  margin-bottom: 12px;
  background: var(--subtle-gray);
  display: block;
}
.feature-stack { display: flex; flex-direction: column; }
.stack-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-gray);
  align-items: start;
  transition: background 0.15s;
  border-radius: 3px;
}
.stack-item:last-child { border-bottom: none; }
.stack-item:hover { background: var(--subtle-gray); margin: 0 -8px; padding: 12px 8px; }
.stack-item-thumb {
  width: 100px;
  height: 70px;
  object-fit: cover;
  background: var(--subtle-gray);
  display: block;
}
.stack-item-headline {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--near-black);
  transition: color 0.2s;
}
.stack-item:hover .stack-item-headline { color: var(--accent); }
.stack-item-byline {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--light-gray);
  margin-top: 4px;
}
.stack-item-byline .author { color: var(--accent); font-weight: 500; }

/* ─── Opinion Grid ────────────────────────────────────────── */
.opinion-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-gray);
}
.opinion-card {
  padding: 0 22px;
  border-right: 1px solid var(--border-gray);
  display: block;
}
.opinion-card:first-child { padding-left: 0; }
.opinion-card:last-child { border-right: none; padding-right: 0; }
.opinion-quote {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  display: block;
  color: var(--accent);
  /* The “ glyph sits high in its 1em line-box; the lower ~45% is empty
     (no ink). A negative margin-bottom lets the headline tuck right
     under the visible mark without overlapping it. */
  margin: 0 0 -12px;
}
.opinion-headline {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  font-style: italic;
  line-height: 1.3;
  color: var(--near-black);
  margin-bottom: 6px;
  transition: color 0.2s;
}
.opinion-card:hover .opinion-headline { color: var(--accent-dark); }
.opinion-deck {
  font-family: var(--body-serif);
  font-size: 14px;
  line-height: 1.5;
  color: var(--medium-gray);
  margin-bottom: 8px;
}
.opinion-byline {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--light-gray);
}
.opinion-byline .author { color: var(--accent); font-weight: 500; }

/* ─── Archive Page ────────────────────────────────────────── */
.archive-header {
  padding: 32px 0 20px;
  border-bottom: 2px solid var(--black);
  margin-bottom: 28px;
}
.archive-header .cat-name {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.archive-header h1 {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 700;
}
/* Masonry flow: image and text-only cards pack with no row-aligned voids
   (a grid forces every row to the tallest card → big gaps under short
   text cards). Columns keep newest-first reading down each column. */
.archive-grid {
  column-count: 3;
  column-gap: 28px;
  padding-bottom: 40px;
}
.archive-card {
  display: inline-block;
  width: 100%;
  margin: 0 0 30px;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
}
.archive-card--text-only {
  border-top: 3px solid var(--accent);
  padding-top: 12px;
}
.archive-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 10px;
  background: var(--subtle-gray);
  display: block;
  transition: opacity 0.2s;
}
.archive-card:hover .archive-card-image { opacity: 0.9; }
.archive-card-headline {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--near-black);
  margin-bottom: 6px;
  transition: color 0.2s;
}
.archive-card:hover .archive-card-headline { color: var(--accent); }
.archive-card-deck {
  font-family: var(--body-serif);
  font-size: 14px;
  color: var(--medium-gray);
  line-height: 1.5;
  margin-bottom: 6px;
}
.archive-card-byline {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--light-gray);
}

/* Archive Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 20px 0 40px;
  font-family: var(--sans);
}
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--dark-gray);
  border: 1px solid var(--border-gray);
  white-space: nowrap;
  transition: all 0.15s;
}
.pagination .prev,
.pagination .next { font-size: 12px; letter-spacing: 0.3px; }
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination .current { background: var(--accent); color: var(--white); border-color: var(--accent); }
.pagination .dots { border: none; padding: 0 4px; }

/* ─── Single Article ──────────────────────────────────────── */
.article-container { max-width: 760px; margin: 0 auto; padding: 36px 24px 60px; }
.article-back {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
  padding: 6px 0;
  transition: opacity 0.2s;
}
.article-back:hover { opacity: 0.7; }
.article-back svg { width: 16px; height: 16px; }

/* Breadcrumb (Home › Section › Title) — replaces the old back link */
.article-breadcrumb { margin: 0 0 22px; }
.article-breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--light-gray);
}
.article-breadcrumb li { display: inline-flex; align-items: center; }
.article-breadcrumb li + li::before {
  content: "\203A"; /* › */
  margin: 0 8px;
  color: var(--border-gray);
}
.article-breadcrumb a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.article-breadcrumb a:hover { text-decoration: underline; }
.article-breadcrumb li[aria-current="page"] {
  color: var(--medium-gray);
  max-width: 60vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.meta-updated { color: var(--medium-gray); font-weight: 600; }
.meta-readtime { color: var(--light-gray); }
.article-detail-category {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.article-detail-title {
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 700;
  line-height: 1.12;
  color: var(--black);
  margin-bottom: 14px;
}
.article-detail-deck {
  font-family: var(--body-serif);
  font-size: 20px;
  line-height: 1.5;
  color: var(--medium-gray);
  margin-bottom: 16px;
}
.article-detail-meta {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--light-gray);
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-gray);
  line-height: 1.6;
}
.article-detail-meta a { color: var(--accent); }
.article-detail-meta span { white-space: nowrap; }
.article-detail-meta .author { color: var(--accent); font-weight: 600; }
.article-detail-hero { width: 100%; margin-bottom: 6px; }
.article-detail-hero img { width: 100%; aspect-ratio: 740 / 480; max-height: 480px; object-fit: cover; cursor: zoom-in; }
.article-detail-body img { cursor: zoom-in; }
.article-detail-caption {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--light-gray);
  font-style: italic;
  margin-bottom: 28px;
}
.article-detail-body {
  font-family: var(--body-serif);
  font-size: 18px;
  line-height: 1.75;
  color: var(--dark-gray);
}
.article-detail-body p { margin-bottom: 20px; }
.article-detail-body img { width: 100%; margin: 24px 0; }
.article-detail-body h2, .article-detail-body h3 {
  font-family: var(--serif);
  margin: 28px 0 12px;
}

/* ─── Author Page ─────────────────────────────────────────── */
.author-header {
  padding: 36px 0 24px;
  border-bottom: 2px solid var(--black);
  margin-bottom: 32px;
}
.author-label {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--light-gray);
  margin-bottom: 8px;
}
.author-name {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 700;
  color: var(--black);
}
.author-post-count {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--light-gray);
  margin-top: 8px;
}

/* ─── Static Page ─────────────────────────────────────────── */

/* Clean white header — centered title + red rule */
.page-header {
  padding: 56px 24px 0;
  text-align: center;
}
.page-title {
  font-family: var(--serif);
  font-size: 46px;
  font-weight: 700;
  color: var(--black);
  margin: 0;
  line-height: 1.1;
}
.page-title-rule {
  width: 40px;
  height: 2px;
  background: var(--accent);
  margin: 18px auto 0;
}

/* Container */
.page-container { max-width: 800px; margin: 0 auto; padding: 44px 24px 72px; }

/* Content typography */
.page-content {
  font-family: var(--body-serif);
  font-size: 17px;
  line-height: 1.8;
  color: var(--dark-gray);
}
.page-content p { margin-bottom: 20px; }
.page-content h2 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--black);
  margin: 48px 0 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--black);
}
.page-content h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--black);
  margin: 36px 0 12px;
}
.page-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.page-content a:hover { color: #a01818; }
.page-content ul { margin: 0 0 20px 20px; }
.page-content li { margin-bottom: 6px; }
.page-content strong { color: var(--black); }

/* ─── Page Lede (opening paragraph) ───────────────────────── */
.page-lede {
  font-family: var(--body-serif);
  font-size: 20px;
  line-height: 1.7;
  color: var(--black);
  margin-bottom: 36px;
}

/* Editorial blockquote */
.page-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 24px;
  margin: 32px 0;
  font-family: var(--body-serif);
  font-size: 19px;
  font-style: italic;
  line-height: 1.7;
  color: var(--dark-gray);
}
.page-content blockquote p { margin: 0; }

/* Section divider */
.page-content hr { border: none; border-top: 1px solid #e0e0de; margin: 44px 0; }

/* ═══════════════════════════════════════════════════════════
   ABOUT PAGE — Clean Editorial (Crimson-inspired)
   White bg, no hero, typographic staff masthead, red accent
   ═══════════════════════════════════════════════════════════ */

/* Header uses shared .page-header / .page-title / .page-title-rule above */

/* Body */
.about-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* Lede — slightly larger, sets the tone */
.about-content .page-lede {
  font-size: 19px;
  line-height: 1.75;
  color: var(--black);
  margin-bottom: 40px;
}

/* Section headings — red underline rule (Crimson pattern) */
.about-content.page-content h2 {
  font-size: 24px;
  margin: 52px 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent);
}

/* Blockquote — simple left accent, not dramatic */
.about-content.page-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 2px 0 2px 24px;
  margin: 28px 0;
  font-size: 18px;
  font-style: italic;
  line-height: 1.7;
  color: var(--dark-gray);
}
.about-content.page-content blockquote::before { display: none; }
.about-content.page-content blockquote p { margin: 0; }

/* HR — thin rule, generous spacing */
.about-content.page-content hr {
  border: none;
  border-top: 1px solid #e0e0de;
  margin: 52px 0;
}

/* ─── Staff Board — even, contained bio cards ─────────────── */
.staff-board { margin: 28px 0 44px; }

/* One uniform card component. Leadership = same card, larger, 2-up. */
.staff-lead,
.staff-cards {
  display: grid;
  align-items: stretch;          /* every card in a row = equal height */
}
.staff-lead {
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}
.staff-cards {
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
}

.sc {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
  padding: 30px 24px 28px;
  background: var(--paper);
  border: 1px solid var(--border-gray);
  border-top: 3px solid var(--accent);
}

.sc-photo {
  width: 124px;
  height: 124px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--subtle-gray);
  filter: grayscale(12%);
  margin-bottom: 18px;
  flex-shrink: 0;
}
.sc-lead .sc-photo { width: 168px; height: 168px; }
.sc-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 40px;
  color: var(--light-gray);
}

.sc-body { display: flex; flex-direction: column; flex: 1 1 auto; width: 100%; }
.sc-role {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.sc-name {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
  color: var(--black);
  margin: 0 0 12px;
  line-height: 1.18;
}
.sc-lead .sc-name { font-size: 26px; }
.sc-meta {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--medium-gray);
  margin: 0 auto 3px;
  line-height: 1.55;
  max-width: 30ch;
}
.sc-home { color: var(--light-gray); }
.sc-prev {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--light-gray);
  margin: 7px auto 0;
  max-width: 30ch;
  line-height: 1.5;
}
.sc-ff {
  font-family: var(--body-serif);
  font-style: italic;
  font-size: 13.5px;
  color: var(--dark-gray);
  margin: auto auto 0;            /* anchor to card bottom -> even rows */
  padding-top: 16px;
  max-width: 32ch;
  line-height: 1.5;
}

/* Clickable staff cards → author page. Whole card is the link. */
a.sc {
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
a.sc:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.06);
}
a.sc:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
a.sc .sc-name { transition: color 0.15s ease; }
a.sc:hover .sc-name { color: var(--accent); }
@media (prefers-reduced-motion: reduce) {
  a.sc, a.sc .sc-name { transition: none; }
}

@media (max-width: 760px) {
  .staff-lead { grid-template-columns: 1fr; gap: 18px; margin-bottom: 18px; }
  .staff-cards { grid-template-columns: 1fr; gap: 18px; }
  .sc { padding: 26px 20px; }
  .sc-photo, .sc-lead .sc-photo { width: 116px; height: 116px; }
  .sc-name, .sc-lead .sc-name { font-size: 21px; }
}

/* ─── Author Profile (Star-Tribune-style persistent author page) ──
   Editorial masthead, NOT a card: headshot + identity over a strong
   rule, exactly like .archive-header. Reuses the approved staff-card
   headshot + accent-kicker language so it reads as one system. */
.author-profile {
  padding: 38px 0 24px;
  border-bottom: 2px solid var(--black);
  margin-bottom: 30px;
}
.author-profile-inner {
  display: grid;
  grid-template-columns: 152px 1fr;
  gap: 32px;
  align-items: start;
}
.author-pic {
  width: 152px;
  height: 152px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--subtle-gray);
  filter: grayscale(12%);
}
.author-pic--ph {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 54px;
  color: var(--light-gray);
  border: 1px solid var(--border-gray);
}
.author-id { min-width: 0; }
.author-kicker {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.author-name {
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 700;
  line-height: 1.06;
  color: var(--black);
  margin: 0 0 14px;
}
.author-bio {
  font-family: var(--body-serif);
  font-size: 17px;
  line-height: 1.62;
  color: var(--near-black);
  max-width: 62ch;
  margin: 0 0 14px;
}
.author-facts {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-width: 62ch;
  margin: 0 0 14px;
}
.author-fact {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--dark-gray);
}
.author-fact .lbl {
  font-weight: 700;
  color: var(--medium-gray);
}
.author-ff {
  font-family: var(--body-serif);
  font-style: italic;
  font-size: 15px;
  color: var(--dark-gray);
}
.author-ff .lbl {
  font-style: normal;
  font-family: var(--sans);
}
.author-count {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--light-gray);
  margin: 4px 0 0;
}
[data-theme="dark"] .author-pic { filter: brightness(0.85) grayscale(15%); }

/* Collective byline / shared byline: no person column. */
.author-profile--collective .author-profile-inner { grid-template-columns: 1fr; }
.author-bylinks {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.95;
  max-width: 64ch;
  margin: 0 0 14px;
}
.author-bylinks .author-link { color: var(--accent); font-weight: 600; }
.author-bylinks .author-link:hover { text-decoration: underline; }

@media (max-width: 760px) {
  .author-profile { padding: 28px 0 20px; }
  .author-profile-inner {
    grid-template-columns: 1fr;
    gap: 18px;
    justify-items: start;
  }
  .author-pic, .author-pic--ph { width: 116px; height: 116px; }
  .author-pic--ph { font-size: 40px; }
  .author-name { font-size: 31px; }
  .author-bio { font-size: 16px; }
}

/* ─── About Responsive ────────────────────────────────────── */
@media (max-width: 768px) {
  .about-body { padding: 36px 20px 60px; }
  .about-content.page-content h2 { font-size: 22px; margin-top: 40px; }
  .masthead-grid { grid-template-columns: repeat(3, 1fr); gap: 24px 16px; }
}
@media (max-width: 480px) {
  .masthead-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 12px; }
  .masthead-grid .staff-card.lead img { width: 80px; height: 80px; }
}

/* ─── Staff Grid (kept for other pages) ──────────────────── */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 28px;
  margin: 32px 0 48px;
}
.staff-card {
  text-align: center;
  padding: 20px 12px;
}
.staff-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 14px;
  display: block;
  filter: grayscale(20%);
}
.staff-name {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--black);
  margin: 0 0 4px;
}
.staff-title {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  margin: 0 0 8px;
}
.staff-bio {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--light-gray);
  line-height: 1.5;
  margin: 0;
}

/* Adviser callout */
.staff-adviser {
  text-align: center;
  padding: 20px;
  margin-top: 8px;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--dark-gray);
  border-top: 1px solid #e8e8e6;
}
.staff-adviser strong { color: var(--black); }

/* ─── Rates Table ─────────────────────────────────────────── */
.rates-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 15px;
  margin: 20px 0 32px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e8e8e6;
}
.rates-table thead tr {
  background: var(--black);
  color: #fff;
}
.rates-table th {
  padding: 14px 18px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.rates-table td {
  padding: 14px 18px;
  border-bottom: 1px solid #e8e8e6;
}
.rates-table tbody tr:nth-child(even) { background: #f8f8f6; }
.rates-table tbody tr:hover { background: #f0f0ee; }
.rates-table .price { font-weight: 600; color: var(--black); }

/* ─── Contact details ─────────────────────────────────────── */
.contact-details {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 2;
  color: var(--dark-gray);
  margin: 8px 0 24px;
}
.contact-details strong { color: var(--black); }
.social-inline { font-family: var(--sans); font-size: 15px; margin: 8px 0 24px; }
.social-inline a { margin-right: 16px; }

/* ─── Highlight Box ───────────────────────────────────────── */
.highlight-box {
  border-left: 4px solid var(--accent);
  background: #f8f8f6;
  padding: 24px 28px;
  margin: 28px 0;
  border-radius: 0 6px 6px 0;
}
.highlight-box p { margin: 0; font-family: var(--sans); font-size: 15px; line-height: 1.7; color: var(--dark-gray); }
.highlight-box strong { color: var(--black); }



/* ─── Address Block ───────────────────────────────────────── */
.address-block {
  border-left: 4px solid var(--accent);
  padding: 16px 20px;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.8;
  color: var(--dark-gray);
  margin: 16px 0 28px;
}


/* ─── Policy Sections ─────────────────────────────────────── */
.policy-section {
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid #e8e8e6;
}
.policy-section:last-child { border-bottom: none; }
.policy-date {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--light-gray);
  margin-bottom: 28px;
}

/* ─── Search ──────────────────────────────────────────────── */
.search-header { padding: 32px 0 20px; }
.search-header h1 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 6px;
}
.search-header p { font-family: var(--sans); font-size: 13px; color: var(--light-gray); }
.search-results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-bottom: 40px;
}
.search-form-wrap { padding: 24px 0; }
.search-form-wrap input[type="search"] {
  width: 100%;
  font-family: var(--sans);
  font-size: 15px;
  padding: 10px 16px;
  border: 2px solid var(--border-gray);
  background: var(--white);
  color: var(--black);
  outline: none;
  transition: border-color 0.2s;
}
.search-form-wrap input[type="search"]:focus { border-color: var(--accent); }

/* ─── 404 ─────────────────────────────────────────────────────
   NOTE: container class is .nf404, NOT .error404 — WordPress adds
   `error404` as a <body> class, so a bare .error404 rule would clamp
   the whole document (header/footer) to this width. */
.nf404 { max-width: 880px; margin: 0 auto; padding: 64px 0 72px; }
.error404-head { border-bottom: 2px solid var(--black); padding-bottom: 26px; margin-bottom: 28px; }
.error404-kicker {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.error404-title {
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 700;
  line-height: 1.05;
  color: var(--black);
  margin: 0 0 14px;
}
.error404-lede {
  font-family: var(--body-serif);
  font-size: 18px;
  line-height: 1.55;
  color: var(--near-black);
  max-width: 60ch;
  margin: 0;
}
.error404-search { margin-bottom: 22px; }
.error404-sections {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}
.error404-pill {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--near-black);
  border: 1px solid var(--border-gray);
  padding: 9px 16px;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.error404-pill:hover { border-color: var(--accent); color: var(--accent); }
.error404-pill--home { border-color: var(--accent); color: var(--accent); }
.error404-pill:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.error404-latest-title {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--light-gray);
  border-bottom: 1px solid var(--border-gray);
  padding-bottom: 10px;
  margin-bottom: 18px;
}
.error404-latest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px 26px;
}
.error404-story { display: flex; flex-direction: column; gap: 6px; }
.error404-story-cat {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.error404-story-headline {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--near-black);
  transition: color 0.15s ease;
}
.error404-story:hover .error404-story-headline { color: var(--accent); }
.error404-story-date {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--light-gray);
}
@media (max-width: 760px) {
  .nf404 { padding: 40px 0 52px; }
  .error404-latest-grid { grid-template-columns: 1fr; gap: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .error404-pill, .error404-story-headline { transition: none; }
}
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--white);
  padding: 12px 28px;
  transition: background 0.2s;
}
.btn:hover { background: var(--accent-dark); }

/* ─── Footer ──────────────────────────────────────────────── */
.site-footer {
  background: var(--near-black);
  color: rgba(255,255,255,0.6);
  margin-top: 40px;
  padding: 36px 0 20px;
}
.footer-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 20px;
}
.footer-brand .footer-logo-text {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  color: rgba(255,255,255,0.72);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.footer-brand p {
  font-family: var(--sans);
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
}
.footer-col h3 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.62);
  margin-bottom: 12px;
}
.footer-col a {
  display: block;
  font-family: var(--sans);
  font-size: 14px;
  color: rgba(255,255,255,0.74);
  padding: 3px 0;
  transition: color 0.2s;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-copyright {
  font-family: var(--sans);
  font-size: 12px;
  color: rgba(255,255,255,0.55);
}
.footer-copyright a {
  color: rgba(255,255,255,0.35);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ─── Animations ──────────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
  .ticker-text { animation: none; }
}

/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .masthead-record { font-size: 64px; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-sidebar {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--border-gray);
    padding-top: 18px;
  }
  .article-grid-3 { grid-template-columns: 1fr; gap: 20px; }
  .article-card { padding: 0; border-right: none; border-bottom: 1px solid var(--border-gray); padding-bottom: 18px; }
  .article-card:last-child { border-bottom: none; }
  .feature-row { grid-template-columns: 1fr; }
  .opinion-grid { grid-template-columns: 1fr; gap: 20px; }
  .opinion-card { padding: 0; border-right: none; border-bottom: 1px solid var(--border-gray); padding-bottom: 14px; }
  .opinion-card:last-child { border-bottom: none; }
  .hero-headline { font-size: 28px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 24px; }
  .archive-grid { column-count: 2; }
  .search-results-grid { grid-template-columns: 1fr 1fr; }
  .article-detail-title { font-size: 32px; }
}

@media (max-width: 768px) {
  .article-grid-3 { grid-template-columns: 1fr 1fr; gap: 20px; }
  .article-card:nth-child(2) { border-right: none; }
  .opinion-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .opinion-card:nth-child(2) { border-right: none; }
  .search-results-grid { grid-template-columns: 1fr 1fr; }
  .archive-grid { column-count: 2; }
  .article-detail-title { font-size: 30px; }
}

@media (max-width: 768px) {
  /* ─── Compact mobile masthead ──────────────────────────── */
  /* Hide utility bar completely */
  .utility-bar { display: none; }

  /* Collapse masthead: tight single-line brand bar */
  .masthead {
    padding: 10px 0 0;
    border-bottom: none;
  }
  .masthead .inner { padding: 0 16px; }
  .masthead-top { display: none; }
  .masthead-the-row { margin-bottom: -2px; }
  .masthead-the-rule { width: 60px; }
  .the-text { font-size: 14px; letter-spacing: 0.3em; }
  .masthead-record { font-size: 36px; line-height: 1; }
  .masthead-schools {
    font-size: 7.5px;
    letter-spacing: 0.18em;
    margin-top: 3px;
  }
  .masthead-logo-img {
    width: 240px;
  }
  .masthead-rule {
    height: 2.5px;
    margin: 6px 0 0;
  }
  .masthead-rule::after { bottom: -3px; }
  .utility-bar + .masthead { padding-top: 8px; }

  /* ─── Nav bar tighter ──────────────────────────────────── */
  .nav-divider { display: none; }
  .main-nav { height: 42px; }
  .main-nav .inner { min-height: 42px; }
  /* Ever-so-slightly thicker once scrolled (mobile only). */
  .main-nav.scrolled { height: 47px; }
  .main-nav.scrolled .inner { min-height: 47px; }

  /* ─── Hero section ─────────────────────────────────────── */
  .hero-image-wrap img { height: 220px; }
  .hero-headline { font-size: 24px; }
  .hero-deck { font-size: 15px; }
  .stack-item { grid-template-columns: 80px 1fr; }

  /* ─── Article reading experience ───────────────────────── */
  .article-detail-title {
    font-size: 28px;
    line-height: 1.15;
    margin-bottom: 12px;
  }
  .article-detail-deck {
    font-size: 17px;
    line-height: 1.5;
  }
  .article-detail-body {
    font-size: 17px;
    line-height: 1.8;
  }
  .article-detail-body p {
    margin-bottom: 22px;
  }
  .article-detail-meta {
    font-size: 12px;
    padding-bottom: 16px;
    margin-bottom: 20px;
  }

  /* ─── Grids → single column ────────────────────────────── */
  .article-grid-3 { grid-template-columns: 1fr; gap: 16px; }
  .article-card { padding: 0; border-right: none; border-bottom: 1px solid var(--border-gray); padding-bottom: 16px; }
  .article-card:last-child { border-bottom: none; }
  .opinion-grid { grid-template-columns: 1fr; gap: 16px; }
  .opinion-card { padding: 0; border-right: none; border-bottom: 1px solid var(--border-gray); padding-bottom: 14px; }
  .opinion-card:last-child { border-bottom: none; }
  .archive-grid { column-count: 1; }
  .search-results-grid { grid-template-columns: 1fr; }

  /* ─── Touch targets (restore generous sizing for mobile) ─ */
  .main-nav a { min-height: 48px; display: flex; align-items: center; padding: 0 20px; }
  .sidebar-item { padding: 14px 0; gap: 12px; }
  .sidebar-item:hover { margin: 0 -8px; padding: 14px 8px; }
  .search-filter-pill { min-height: 44px; display: inline-flex; align-items: center; }
  .pagination a, .pagination .current { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }

  /* ─── Share buttons ────────────────────────────────────── */
  .share-btns-row { width: 100%; }
  .share-btn-lg { flex: 1; justify-content: center; min-width: 0; padding: 10px 12px; }
  .article-share-bar { gap: 8px; flex-wrap: wrap; }
  .article-share-bottom { padding-top: 16px; }

  /* ─── Footer ───────────────────────────────────────────── */
  .footer-top { grid-template-columns: 1fr; gap: 20px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ============================================================
   SEARCH — Nav Toggle, Overlay, Live Results, Category Filters
   ============================================================ */

/* ─── Nav Search Toggle Button ────────────────────────────── */
.nav-search-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-left: 12px;
  padding: 0;
  background: none;
  border: none;
  color: var(--dark-gray);
  cursor: pointer;
  transition: color 0.2s;
  flex-shrink: 0;
}
.nav-search-toggle:hover { color: var(--accent); }
.nav-search-toggle svg { display: block; }

/* ─── Search Overlay ──────────────────────────────────────── */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(26, 26, 26, 0.6);
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.search-overlay.active {
  opacity: 1;
  visibility: visible;
}
.search-overlay-inner {
  width: 100%;
  max-width: 680px;
  background: var(--white);
  border-radius: 4px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transform: translateY(-12px);
  transition: transform 0.25s ease;
}
.search-overlay.active .search-overlay-inner {
  transform: translateY(0);
}

/* ─── Search Form Inside Overlay ──────────────────────────── */
.search-overlay-form {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-gray);
  gap: 12px;
}
.search-overlay-icon {
  color: var(--light-gray);
  flex-shrink: 0;
}
.search-overlay-form input[type="search"] {
  flex: 1;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 400;
  color: var(--black);
  border: none;
  outline: none;
  background: transparent;
  padding: 4px 0;
}
.search-overlay-form input[type="search"]::placeholder {
  color: var(--light-gray);
}
/* Remove default search input styling */
.search-overlay-form input[type="search"]::-webkit-search-cancel-button,
.search-overlay-form input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}
.search-overlay-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  background: none;
  border: none;
  color: var(--light-gray);
  cursor: pointer;
  transition: color 0.2s;
  flex-shrink: 0;
}
.search-overlay-close:hover { color: var(--black); }

/* ─── Live Search Results Dropdown ────────────────────────── */
.live-search-results {
  max-height: 420px;
  overflow-y: auto;
}
.live-search-loading,
.live-search-empty {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--light-gray);
  padding: 20px;
  text-align: center;
}
.live-search-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 20px;
  text-decoration: none;
  color: inherit;
  transition: background 0.12s;
  border-bottom: 1px solid var(--subtle-gray);
}
.live-search-item:last-of-type {
  border-bottom: none;
}
.live-search-item:hover,
.live-search-item.active {
  background: var(--subtle-gray);
}
.live-search-thumb {
  width: 72px;
  height: 50px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
  background: var(--subtle-gray);
}
.live-search-thumb-placeholder {
  width: 72px;
  height: 50px;
  background: var(--subtle-gray);
  border-radius: 2px;
  flex-shrink: 0;
}
.live-search-item-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.live-search-cat {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.live-search-title {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--near-black);
}
.live-search-title mark {
  background: var(--accent-light);
  color: var(--accent-dark);
  padding: 0 1px;
  border-radius: 1px;
}
.live-search-meta {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--light-gray);
}
.live-search-view-all {
  display: block;
  padding: 14px 20px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-align: center;
  border-top: 1px solid var(--border-gray);
  transition: background 0.12s;
}
.live-search-view-all:hover,
.live-search-view-all.active {
  background: var(--accent-light);
}

/* ─── Category Filter Pills (Search Results Page) ─────────── */
.search-category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 24px;
}
.search-filter-pill {
  display: inline-block;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dark-gray);
  padding: 6px 16px;
  border: 1.5px solid var(--border-gray);
  border-radius: 2px;
  transition: all 0.15s;
  text-decoration: none;
}
.search-filter-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.search-filter-pill.active {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

/* ─── Search Responsive Overrides ─────────────────────────── */
@media (max-width: 900px) {
  .search-overlay { padding-top: 40px; }
  .search-overlay-inner { max-width: 95vw; margin: 0 12px; }
}
@media (max-width: 600px) {
  .search-overlay { padding-top: 0; align-items: flex-start; }
  .search-overlay-inner {
    max-width: 100%;
    margin: 0;
    border-radius: 0;
    min-height: 100vh;
  }
  .search-overlay-form { padding: 12px 16px; }
  .search-overlay-form input[type="search"] { font-size: 16px; }
  .live-search-item { padding: 10px 16px; gap: 10px; }
  .live-search-thumb,
  .live-search-thumb-placeholder { width: 56px; height: 40px; }
  .nav-search-toggle { margin-left: 6px; width: 32px; height: 32px; }
  .search-category-filters { gap: 6px; }
  .search-filter-pill { font-size: 11px; padding: 5px 12px; }
}


/* ─── Writers List ──────────────────────────────────────── */
.writers-subtitle {
  font-family: var(--body-serif);
  color: var(--medium-gray);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}
.writers-search-wrap {
  margin-bottom: 1.5rem;
}
.writers-search {
  width: 100%;
  max-width: 420px;
  padding: 10px 16px;
  font-family: var(--sans);
  font-size: 0.95rem;
  border: 1px solid var(--border-gray);
  border-radius: 6px;
  background: var(--white);
  outline: none;
  transition: border-color 0.2s;
}
.writers-search:focus {
  border-color: var(--accent);
}
.writers-letters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 1rem;
}
.writers-letter-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid var(--border-gray);
  border-radius: 4px;
  transition: background 0.15s, color 0.15s;
}
.writers-letter-link:hover {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.writers-count {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--light-gray);
  margin-bottom: 2rem;
}
.writers-letter-group {
  margin-bottom: 2rem;
}
.writers-letter-heading {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.3rem;
  margin-bottom: 0.75rem;
}
.writers-letter-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 6px 24px;
}
.writer-item {
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--dark-gray);
  padding: 4px 0;
  transition: color 0.15s;
}
.writer-item:hover {
  color: var(--accent);
}

@media (max-width: 600px) {
  .writers-letter-list {
    grid-template-columns: 1fr 1fr;
  }
  .writers-letter-link { width: 28px; height: 28px; font-size: 0.8rem; }
}


/* ─── Contact Form ──────────────────────────────────────── */
.record-contact-form {
  max-width: 600px;
  margin: 1.5rem 0;
}
.form-row {
  margin-bottom: 1.25rem;
}
.form-row label {
  display: block;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--dark-gray);
  margin-bottom: 0.4rem;
}
.form-row label .required {
  color: var(--accent);
}
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 10px 14px;
  font-family: var(--body-serif);
  font-size: 0.95rem;
  border: 1px solid var(--border-gray);
  border-radius: 4px;
  background: var(--white);
  outline: none;
  transition: border-color 0.2s;
}
.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--accent);
}
.form-row textarea {
  resize: vertical;
}
.form-submit {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--accent);
  border: none;
  padding: 12px 32px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}
.form-submit:hover {
  background: var(--accent-dark);
}
.contact-alert {
  padding: 12px 16px;
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}
.contact-success {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}
.contact-error {
  background: #ffebee;
  color: #c62828;
  border: 1px solid #ef9a9a;
}

/* ─── Author Links ──────────────────────────────────────── */
.author-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s;
}
.author-link:hover {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ─── Footer Social Icons ───────────────────────────────── */
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}
.footer-social a {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.5);
  transition: all 0.25s;
  padding: 0 !important;
}
.footer-social a:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}
.footer-social svg {
  width: 18px;
  height: 18px;
}

/* ─── Article Share Bar ──────────────────────────────────── */
.article-share-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  margin-bottom: 24px;
  border-top: 1px solid var(--border-gray);
  border-bottom: 1px solid var(--border-gray);
}
.share-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--light-gray);
  margin-right: 4px;
}
.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--medium-gray);
  background: var(--subtle-gray);
  transition: all 0.2s;
  position: relative;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
}
.share-btn:hover {
  color: var(--white);
  background: var(--accent);
}
.copy-tooltip {
  position: absolute;
  top: -32px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--black);
  color: var(--white);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.copy-tooltip.show { opacity: 1; }

/* Bottom share bar */
.article-share-bottom {
  margin-top: 32px;
  margin-bottom: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  border-top: 2px solid var(--black);
  border-bottom: none;
  padding-top: 20px;
}
.article-share-bottom .share-label {
  font-size: 13px;
  color: var(--dark-gray);
}
.share-btns-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.share-btn-lg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--dark-gray);
  background: var(--subtle-gray);
  border: 1px solid var(--border-gray);
  border-radius: 6px;
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  position: relative;
}
.share-btn-lg:hover {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

/* Article tags */
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border-gray);
}
.article-tag {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--medium-gray);
  background: var(--subtle-gray);
  padding: 5px 14px;
  border-radius: 20px;
  transition: all 0.2s;
}
.article-tag:hover {
  background: var(--accent);
  color: var(--white);
}

/* Related / Latest sections */
.article-related,
.article-latest {
  padding: 0 0 20px;
}
.article-related {
  border-top: 1px solid var(--border-gray);
}

/* ─── Dedicated Search Page ──────────────────────────────── */
.search-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 36px 24px 60px;
}
.search-page-title {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 20px;
}
.search-page-form { margin-bottom: 20px; }
.search-page-input-wrap {
  display: flex;
  align-items: center;
  background: var(--white);
  border: 2px solid var(--border-gray);
  border-radius: 8px;
  padding: 4px 4px 4px 16px;
  transition: border-color 0.2s;
}
.search-page-input-wrap:focus-within { border-color: var(--accent); }
.search-page-icon { color: var(--light-gray); flex-shrink: 0; }
.search-page-input-wrap input[type="search"] {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--body-serif);
  font-size: 18px;
  padding: 12px;
  background: transparent;
  -webkit-appearance: none;
}
.search-page-submit {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--white);
  border: none;
  padding: 12px 28px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}
.search-page-submit:hover { background: var(--accent-dark); }
.search-page-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.search-page-meta {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--light-gray);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-gray);
}

/* List-style results */
.search-results-list { display: flex; flex-direction: column; }
.search-result-item {
  display: flex;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border-gray);
}
.search-result-text { flex: 1; min-width: 0; }
.search-result-cat {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-block;
  margin-bottom: 6px;
}
.search-result-cat:hover { color: var(--accent-dark); }
.search-result-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--black);
  display: block;
  margin-bottom: 8px;
  transition: color 0.15s;
}
.search-result-title:hover { color: var(--accent); }
.search-result-excerpt {
  font-family: var(--body-serif);
  font-size: 15px;
  line-height: 1.55;
  color: var(--medium-gray);
  margin-bottom: 10px;
}
.search-result-byline {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--light-gray);
}
.search-result-date { margin-left: 4px; }
.search-result-date::before { content: ' \00B7  '; }
.search-result-image { flex-shrink: 0; width: 200px; height: 140px; }
.search-result-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

/* Empty / no results states */
.search-empty-state,
.search-no-results {
  text-align: center;
  padding: 40px 0;
}
.search-empty-state p,
.search-no-results p {
  font-family: var(--body-serif);
  font-size: 16px;
  color: var(--medium-gray);
  margin-bottom: 20px;
}
.search-no-results h2 {
  font-family: var(--serif);
  font-size: 24px;
  margin-bottom: 8px;
}
.search-suggestions {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}
.search-suggestions-label {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--light-gray);
}

@media (max-width: 600px) {
  .search-result-item { flex-direction: column-reverse; gap: 12px; }
  .search-result-image { width: 100%; height: 200px; }
  .search-result-title { font-size: 18px; }
  .search-page-input-wrap { flex-direction: column; padding: 8px; gap: 8px; }
  .search-page-submit { width: 100%; }
  .search-page-input-wrap input[type="search"] { padding: 8px; }
}

/* ─── Mobile Hamburger Nav ───────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 12px 10px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}
.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--dark-gray);
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu overlay backdrop */
.mobile-menu-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.mobile-menu-backdrop.active {
  opacity: 1;
}

/* Side panel drawer — opens from LEFT (same side as hamburger) */
.mobile-side-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  max-width: 80vw;
  height: 100%;
  background: var(--white);
  z-index: 1001;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
}
.mobile-side-panel.open {
  transform: translateX(0);
}
.mobile-side-panel-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 52px;
  border-bottom: 1px solid var(--border-gray);
  min-height: 60px;
}
.mobile-side-panel-header .panel-title {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  /* serif fallback used only in spoof mode (no logo image) */
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--black);
}
.mobile-side-panel-header .panel-title:hover,
.mobile-side-panel-header .panel-title:focus-visible {
  color: var(--accent);
}
.panel-logo-img {
  display: block;
  height: 30px;
  width: auto;
  max-width: 180px;
}
[data-theme="dark"] .panel-logo-img { filter: invert(1); }

/* Anchor-jump landing offset so #staff isn't hidden under the header. */
#staff { scroll-margin-top: 90px; }

/* Mobile dark-mode toggle (panel) — mobile has no utility bar. */
.mobile-side-panel-theme {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: auto;
  padding: 16px 24px;
  background: none;
  border: none;
  border-top: 1px solid var(--border-gray);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--black);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s, color 0.15s;
}
.mobile-side-panel-theme:hover { background: var(--subtle-gray); color: var(--accent); }
.mobile-side-panel-theme .mtp-ic {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mobile-side-panel-theme .mtp-ic svg { display: block; }
.mobile-side-panel-theme .mtp-sun { display: none; }            /* light → show moon */
[data-theme="dark"] .mobile-side-panel-theme .mtp-moon { display: none; }
[data-theme="dark"] .mobile-side-panel-theme .mtp-sun { display: block; } /* dark → show sun */
.mobile-side-panel-theme .mtp-l-light { display: none; }
[data-theme="dark"] .mobile-side-panel-theme .mtp-l-dark { display: none; }
[data-theme="dark"] .mobile-side-panel-theme .mtp-l-light { display: inline; }
.mobile-side-panel-close {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--medium-gray);
  font-size: 24px;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
  border-radius: 4px;
  transition: background 0.15s;
}
.mobile-side-panel-close:hover {
  background: var(--subtle-gray);
}
.mobile-side-panel-nav {
  list-style: none;
  padding: 8px 0;
  margin: 0;
  flex: 1;
}
.mobile-side-panel-nav li {
  display: block;
}
.mobile-side-panel-nav a {
  display: block;
  padding: 14px 24px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--black);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  border-left: 3px solid transparent;
}
.mobile-side-panel-nav a:hover,
.mobile-side-panel-nav a:active {
  background: var(--subtle-gray);
  color: var(--accent);
  border-left-color: var(--accent);
}
.mobile-side-panel-date {
  padding: 10px 24px 12px;
  font-family: var(--sans);
  font-size: 11px;
  color: var(--light-gray);
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border-gray);
}
.mobile-side-panel-footer {
  padding: 16px 12px;
  border-top: 1px solid var(--border-gray);
  font-family: var(--sans);
  /* Always one line: scale with viewport so it fits the 280px / 80vw panel
     on any phone width; nowrap + ellipsis is the hard floor. */
  font-size: clamp(9px, 3vw, 11px);
  color: var(--light-gray);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 768px) {
  .nav-hamburger { display: flex; }
  .main-nav .inner {
    justify-content: space-between;
    padding: 0 16px;
  }

  /* Hide desktop nav links on mobile */
  .main-nav ul { display: none; }
  .nav-divider { display: none; }
  .nav-search-toggle { margin-left: auto; }

  /* Body scroll lock when menu open */
  body.nav-menu-open { overflow: hidden; }
  body.nav-menu-open .nav-hamburger { visibility: hidden; }
}

/* ─── Image Placeholder (legacy, hidden) ──────────────────── */

/* ─── Page Responsive ─────────────────────────────────────── */
@media (max-width: 768px) {
  .page-title { font-size: 36px; }
  .staff-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
  .info-cards { grid-template-columns: 1fr 1fr; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .social-links-row { flex-wrap: wrap; }
  .pricing-card { padding: 28px 24px; }
}
@media (max-width: 480px) {
  .page-title { font-size: 30px; }
  .page-title-rule { width: 30px; }
}
@media (max-width: 600px) {
  .page-header { padding: 40px 24px 0; }
  .page-container { padding: 32px 16px 48px; }
  .staff-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .staff-card { padding: 20px 12px; }
  .staff-photo { width: 80px; height: 80px; }
  .info-cards { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .social-links-row { flex-direction: column; }
  .social-link { justify-content: center; }
  .rates-table { font-size: 13px; }
  .rates-table th, .rates-table td { padding: 10px 10px; }
  .page-cta { padding: 28px 20px; }
  .pricing-price { font-size: 36px; }
}

/* ─── Image Lightbox ─────────────────────────────────────── */
.image-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  cursor: zoom-out;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.image-lightbox.active {
  opacity: 1;
  visibility: visible;
}
.image-lightbox img {
  max-width: 95vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}
.image-lightbox.active img {
  transform: scale(1);
}
.image-lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 1;
}
.image-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
}
.image-lightbox-caption {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--sans);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  text-align: center;
  line-height: 1.4;
}

/* ─── Print ───────────────────────────────────────────────── */
@media print {
  .utility-bar, .main-nav, .ticker-bar, .search-overlay,
  .mobile-side-panel, .mobile-menu-backdrop, .nav-hamburger,
  .hero-sidebar, .article-share-bar, .article-share-bottom,
  .footer, footer, .pagination { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .masthead { border: none; padding: 10px 0; }
  .hero-image-wrap img { height: auto; max-height: 300px; }
  a { color: #000; text-decoration: underline; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #666; }
  .article-detail-body { max-width: 100%; }
}
