/* ============================================================
   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:    44px;
}

/* ─── 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; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ─── Utility Bar ─────────────────────────────────────────── */
.utility-bar {
  background: var(--black);
  color: var(--white);
  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; }

/* ─── 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;
  margin-bottom: 6px;
}
.masthead-meta {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--light-gray);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.masthead-logo {
  padding: 2px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  display: block;
}
.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;
}
.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 20px;
  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: 20px; right: 20px;
  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 0;
  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;
}
.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: 10px;
}
.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: 12px 0;
  border-bottom: 1px solid var(--border-gray);
  display: flex;
  gap: 12px;
  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 -8px;
  padding: 12px 8px;
}
.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;
}
.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;
}
.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: 36px;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 4px;
}
.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;
}
.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 24px;
  padding-bottom: 40px;
}
.archive-card { display: block; }
.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; }
.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);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.article-detail-meta .author { color: var(--accent); font-weight: 600; }
.article-detail-hero { width: 100%; margin-bottom: 6px; }
.article-detail-hero img { width: 100%; 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 Masthead with Photos ──────────────────────────── */
.masthead-text {
  margin: 28px 0 48px;
}

/* Leadership row — larger photos, side by side */
.masthead-leaders {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid #ebebea;
  margin-bottom: 28px;
}
.masthead-leader {
  text-align: center;
}
.masthead-leader img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 14px;
  filter: grayscale(20%);
  background: var(--subtle-gray);
  color: var(--medium-gray);
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.masthead-leader h3 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--accent);
  margin: 0 0 6px;
}
.masthead-leader p {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  color: var(--black);
  margin: 0;
  line-height: 1.3;
}

/* Staff photo placeholder (broken images) */
.masthead-leader .staff-placeholder {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--subtle-gray);
  color: var(--light-gray);
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}
.masthead-position .staff-placeholder {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--subtle-gray);
  color: var(--light-gray);
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Section editors — 2-column grid with small photos */
.masthead-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 32px;
  padding: 20px 0;
  border-bottom: 1px solid #ebebea;
}
.masthead-row:first-child {
  padding-top: 0;
}
.masthead-position {
  display: flex;
  align-items: center;
  gap: 14px;
}
.masthead-position img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  filter: grayscale(20%);
  background: var(--subtle-gray);
  color: var(--medium-gray);
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.masthead-position h3 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--accent);
  margin: 0 0 4px;
}
.masthead-position p {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 400;
  color: var(--black);
  margin: 0;
  line-height: 1.4;
}

/* Support staff — 4-column, smaller photos */
.masthead-row-4 {
  grid-template-columns: 1fr 1fr 1fr 1fr;
}
.masthead-row-4 .masthead-position {
  flex-direction: column;
  text-align: center;
  gap: 8px;
}
.masthead-row-4 .masthead-position img {
  width: 48px;
  height: 48px;
}

.masthead-adviser-line {
  padding-top: 20px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--medium-gray);
}
.masthead-adviser-line strong {
  color: var(--dark-gray);
}

/* ─── About Responsive ────────────────────────────────────── */
@media (max-width: 768px) {
  .about-body { padding: 36px 20px 60px; }
  .about-content.page-content h2 { font-size: 22px; margin-top: 40px; }
  .masthead-leaders { gap: 20px; }
  .masthead-leader img { width: 80px; height: 80px; }
  .masthead-row-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .masthead-leaders { grid-template-columns: 1fr; gap: 24px; }
  .masthead-row { grid-template-columns: 1fr; gap: 16px; }
  .masthead-row-4 { grid-template-columns: 1fr 1fr; }
}

/* ─── 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 ─────────────────────────────────────────────────── */
.not-found {
  text-align: center;
  padding: 80px 24px;
  max-width: 600px;
  margin: 0 auto;
}
.not-found-num {
  font-family: var(--serif);
  font-size: 120px;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 16px;
}
.not-found h2 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
}
.not-found p {
  font-family: var(--body-serif);
  font-size: 16px;
  color: var(--medium-gray);
  margin-bottom: 24px;
}
.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.5);
  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.35);
  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.4);
  margin-bottom: 12px;
}
.footer-col a {
  display: block;
  font-family: var(--sans);
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  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.25);
}
.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 { grid-template-columns: 1fr 1fr; }
  .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 { grid-template-columns: 1fr 1fr; }
  .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-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; }

  /* ─── 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 { grid-template-columns: 1fr; }
  .search-results-grid { grid-template-columns: 1fr; }

  /* ─── Touch targets ────────────────────────────────────── */
  .main-nav a { min-height: 48px; display: flex; align-items: center; }
  .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);
  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 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-gray);
  min-height: 56px;
}
.mobile-side-panel-header .panel-title {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--black);
}
.mobile-side-panel-close {
  width: 36px;
  height: 36px;
  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 24px;
  border-top: 1px solid var(--border-gray);
  font-family: var(--sans);
  font-size: 11px;
  color: var(--light-gray);
  text-align: center;
}

@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;
}
