/* ============================================
   TINSEL NEWS — Ghost Theme Styles
   v1.0.0 — Dense & Authoritative (NYT-inspired)
   ============================================ */

/* --- VARIABLES --- */
:root {
  --black: #0a0a0a;
  --off-black: #121212;
  --white: #ffffff;
  --signal: #d63031;
  --text-primary: #121212;
  --text-secondary: #555555;
  --text-meta: #999999;
  --text-muted: #bbbbbb;
  --rule-light: #dfdfdf;
  --rule-section: #000000;
  --bg-dark: #0a0a0a;
  --gh-font-heading: 'Playfair Display', Georgia, serif;
  --gh-font-body: 'DM Sans', -apple-system, sans-serif;
  --font-display: var(--gh-font-heading);
  --font-body: var(--gh-font-body);
  --font-mono: 'JetBrains Mono', monospace;
  --max-width: 1200px;
  --content-width: 680px;
  --wide-width: 960px;
}

/* --- RESET --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text-primary);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
ul, ol {
  list-style: none;
}

/* --- UTILITY --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.sr-only:focus {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
  clip-path: none;
  white-space: normal;
  padding: 8px 16px;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  z-index: 200;
  display: block;
  text-align: center;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 2px solid #000;
  transition: box-shadow 0.2s;
}
.site-header.scrolled {
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.site-logo-heading {
  margin: 0;
  padding: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}
.site-logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: -0.04em;
  color: #000;
  display: flex;
  align-items: baseline;
  line-height: 1;
}
.logo-news {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal);
  margin-left: 6px;
  position: relative;
  top: -0.15em;
}

/* Navigation */
.site-nav {
  display: flex;
  align-items: center;
}
.site-nav ul {
  display: flex;
  align-items: center;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav li {
  flex-shrink: 0;
}
.site-nav a {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color 0.15s;
  white-space: nowrap;
}
.site-nav a:hover {
  color: #000;
}
.site-nav a[aria-current="page"],
.site-nav a.nav-current {
  color: #000;
}

/* Header right */
.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.header-date {
  font-family: var(--font-body);
  font-size: 0.65rem;
  color: var(--text-meta);
}
.subscribe-btn {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #000;
  color: #fff;
  padding: 6px 14px;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}
.subscribe-btn:hover {
  background: #333;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--black);
  margin: 4px 0;
  transition: all 0.2s ease;
}

/* ============================================
   TICKER
   ============================================ */
.ticker {
  background: var(--bg-dark);
  color: #fff;
  overflow: hidden;
  padding: 7px 0;
  display: flex;
  align-items: center;
}
.ticker-label {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--signal);
  padding: 0 20px 0 28px;
  flex-shrink: 0;
}
.ticker-divider {
  width: 1px;
  height: 12px;
  background: #333;
  flex-shrink: 0;
}
.ticker-scroll {
  display: flex;
  gap: 32px;
  animation: ticker-scroll 50s linear infinite;
  white-space: nowrap;
  padding-left: 20px;
}
.ticker-item {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 400;
  color: #ccc;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.ticker-item a {
  color: #ccc;
  transition: color 0.15s;
}
.ticker-item:hover,
.ticker-item a:hover {
  color: #fff;
}
.ticker-dot {
  width: 3px;
  height: 3px;
  background: var(--signal);
  border-radius: 50%;
  flex-shrink: 0;
}
@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-scroll {
    animation: none;
    overflow-x: auto;
  }
}

/* ============================================
   PAGE CONTENT WRAPPER
   ============================================ */
.page-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

/* ============================================
   LEAD STORY + SIDEBAR
   ============================================ */
.lead-section {
  display: grid;
  grid-template-columns: 1fr 1px 320px;
  gap: 28px;
  padding: 28px 0 24px;
  border-bottom: 1px solid var(--rule-light);
}
.lead-image-link {
  display: block;
  margin-bottom: 16px;
}
.lead-image {
  width: 100%;
  height: auto;
  border-radius: 4px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.lead-tag {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 700;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.lead-tag a {
  color: #888;
  transition: color 0.15s;
}
.lead-tag a:hover {
  color: var(--text-primary);
}
.lead-headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.lead-headline a {
  color: inherit;
  transition: color 0.15s;
}
.lead-headline a:hover {
  color: #333;
}
.lead-deck {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 580px;
  margin-bottom: 10px;
}
.lead-meta {
  font-family: var(--font-body);
  font-size: 0.65rem;
  color: var(--text-meta);
  display: flex;
  gap: 6px;
}
.lead-meta .live-badge {
  color: var(--signal);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Vertical divider */
.divider-vertical {
  background: var(--rule-light);
}

/* Sidebar headlines */
.sidebar-headlines {
  padding-top: 4px;
}
.sidebar-label {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--text-meta);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.sh-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--rule-light);
}
.sh-item:first-of-type {
  padding-top: 0;
}
.sh-item:last-child {
  border-bottom: none;
}
.sh-tag {
  font-family: var(--font-body);
  font-size: 0.55rem;
  font-weight: 700;
  color: var(--text-meta);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 3px;
}
.sh-tag a {
  color: var(--text-meta);
  transition: color 0.15s;
}
.sh-tag a:hover {
  color: var(--text-primary);
}
.sh-item h4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.85rem;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.sh-item h4 a {
  color: inherit;
  transition: color 0.15s;
}
.sh-item h4 a:hover {
  color: var(--text-secondary);
}
.sh-time {
  font-family: var(--font-body);
  font-size: 0.55rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* ============================================
   SECTION DIVIDER + HEADER
   ============================================ */
.section-divider {
  border: none;
  border-top: 1px solid var(--rule-section);
  margin-top: 32px;
}
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 10px 0 16px;
}
.section-title {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-primary);
}
.section-more {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--text-meta);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.15s;
}
.section-more:hover {
  color: #000;
}

/* ============================================
   HEADLINE LIST (Latest section)
   ============================================ */
.headline-list {
  /* container for headline items */
}
.hl-item {
  padding: 14px 0;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}
.hl-item:last-child {
  border-bottom: 1px solid var(--rule-light);
}
.hl-content {
  flex: 1;
}
.hl-tag {
  font-family: var(--font-body);
  font-size: 0.55rem;
  font-weight: 700;
  color: var(--text-meta);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}
.hl-tag a {
  color: var(--text-meta);
  transition: color 0.15s;
}
.hl-tag a:hover {
  color: var(--text-primary);
}
.hl-item h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.hl-item h4 a {
  color: inherit;
  transition: color 0.15s;
}
.hl-item h4 a:hover {
  color: var(--text-secondary);
}
.hl-excerpt {
  font-size: 0.78rem;
  color: #666;
  line-height: 1.45;
}
.hl-time {
  font-family: var(--font-body);
  font-size: 0.55rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex-shrink: 0;
  min-width: 50px;
  text-align: right;
  padding-top: 2px;
}

/* ============================================
   PHOTO GRID (2-col with images)
   ============================================ */
.photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.photo-card {
  /* container */
}
.photo-card-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #e8e5df;
  margin-bottom: 12px;
}
.photo-card-tag {
  font-family: var(--font-body);
  font-size: 0.55rem;
  font-weight: 700;
  color: var(--text-meta);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.photo-card-tag a {
  color: var(--text-meta);
  transition: color 0.15s;
}
.photo-card-tag a:hover {
  color: var(--text-primary);
}
.photo-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.photo-card h3 a {
  color: inherit;
  transition: color 0.15s;
}
.photo-card h3 a:hover {
  color: var(--text-secondary);
}
.photo-card .pc-excerpt {
  font-size: 0.78rem;
  color: #666;
  line-height: 1.45;
  margin-bottom: 6px;
}
.photo-card .pc-meta {
  font-family: var(--font-body);
  font-size: 0.6rem;
  color: var(--text-meta);
}

/* ============================================
   OPINION STRIP
   ============================================ */
.opinion-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.opinion-card .oc-tag {
  font-family: var(--font-body);
  font-size: 0.55rem;
  font-weight: 700;
  color: var(--signal);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.opinion-card h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.opinion-card h4 a {
  color: inherit;
  transition: color 0.15s;
}
.opinion-card h4 a:hover {
  color: var(--text-secondary);
}
.opinion-card .oc-excerpt {
  font-size: 0.75rem;
  color: #666;
  line-height: 1.4;
  margin-bottom: 6px;
}
.opinion-card .oc-byline {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* ============================================
   FEATURE STORY (large image + text)
   ============================================ */
.feature-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}
.feature-story.flipped {
  direction: rtl;
}
.feature-story.flipped > * {
  direction: ltr;
}
.feature-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #e0ddd7;
}
.feature-tag {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--text-meta);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.feature-tag a {
  color: var(--text-meta);
  transition: color 0.15s;
}
.feature-tag a:hover {
  color: var(--text-primary);
}
.feature-text h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.feature-text h3 a {
  color: inherit;
  transition: color 0.15s;
}
.feature-text h3 a:hover {
  color: var(--text-secondary);
}
.feature-text p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 8px;
}
.feature-meta {
  font-family: var(--font-body);
  font-size: 0.65rem;
  color: var(--text-meta);
}

/* ============================================
   4-COL IMAGE STRIP
   ============================================ */
.four-col-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 24px;
}
.strip-card-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #e8e5df;
  margin-bottom: 10px;
}
.strip-card-tag {
  font-family: var(--font-body);
  font-size: 0.5rem;
  font-weight: 700;
  color: var(--text-meta);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 3px;
}
.strip-card-tag a {
  color: var(--text-meta);
  transition: color 0.15s;
}
.strip-card-tag a:hover {
  color: var(--text-primary);
}
.strip-card h4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.82rem;
  line-height: 1.25;
  color: var(--text-primary);
}
.strip-card h4 a {
  color: inherit;
  transition: color 0.15s;
}
.strip-card h4 a:hover {
  color: var(--text-secondary);
}
.strip-card .sc-meta {
  font-family: var(--font-body);
  font-size: 0.5rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ============================================
   NEWSLETTER CTA
   ============================================ */
.newsletter-cta {
  background: var(--bg-dark);
  color: #fff;
  padding: 40px 32px;
  margin: 40px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.newsletter-text h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 4px;
}
.newsletter-text p {
  font-size: 0.8rem;
  color: #888;
}
.newsletter-form {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.newsletter-form input {
  padding: 10px 14px;
  border: 1px solid #333;
  background: transparent;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.8rem;
  width: 240px;
  outline: none;
}
.newsletter-form input::placeholder {
  color: #555;
}
.newsletter-form input:focus {
  border-color: #555;
}
.newsletter-form button {
  padding: 10px 20px;
  background: var(--signal);
  color: #fff;
  border: none;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s;
}
.newsletter-form button:hover {
  background: #c0292a;
}

/* ============================================
   POST CARD (reusable component)
   ============================================ */
.post-card {
  display: flex;
  flex-direction: column;
}
.post-card .post-image-wrap {
  overflow: hidden;
  margin-bottom: 10px;
}
.post-card .post-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.post-card .post-image-wrap:hover .post-image {
  transform: scale(1.02);
}
.post-card.no-image .post-card-placeholder {
  display: none;
}
.post-card-tag {
  font-family: var(--font-body);
  font-size: 0.55rem;
  font-weight: 700;
  color: var(--text-meta);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.post-card-tag a {
  color: var(--text-meta);
  transition: color 0.15s;
}
.post-card-tag a:hover {
  color: var(--text-primary);
}
.post-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.25;
  margin: 4px 0 6px;
}
.post-title a {
  color: inherit;
  transition: color 0.15s;
}
.post-title a:hover {
  color: var(--text-secondary);
}
.post-excerpt {
  font-size: 0.85rem;
  line-height: 1.5;
  color: #666;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-meta {
  font-family: var(--font-body);
  font-size: 0.6rem;
  color: var(--text-meta);
  margin-top: 8px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* ============================================
   POST GRID (tag pages, author pages, related, page 2+)
   ============================================ */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px 48px;
}

/* ============================================
   ARTICLE PAGE (.post-template)
   ============================================ */
.article-header {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 40px 28px 24px;
}
.article-section-tag {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--signal);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  display: inline-block;
}
.article-section-tag a {
  color: var(--signal);
  transition: color 0.15s;
}
.article-section-tag a:hover {
  color: var(--text-primary);
}
.article-header h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.2rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 16px;
}
.article-deck {
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 20px;
}
.article-byline-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: var(--text-meta);
  padding-top: 16px;
  border-top: 1px solid var(--rule-light);
}
.article-byline-bar a {
  color: var(--text-primary);
  font-weight: 600;
}
.article-byline-bar a:hover {
  color: var(--signal);
}
.article-byline-sep {
  color: var(--text-muted);
}

/* Feature image */
.article-feature-image {
  max-width: var(--wide-width);
  margin: 24px auto 0;
  padding: 0 28px;
}
.article-feature-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 4px;
}
.article-feature-image figcaption {
  font-family: var(--font-body);
  font-size: 0.65rem;
  color: var(--text-meta);
  text-align: center;
  margin-top: 8px;
  letter-spacing: 0.02em;
}

/* Article body */
.article-body {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 32px 28px 48px;
}
.gh-content {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--off-black);
}
.gh-content p {
  margin-bottom: 1.4em;
}
.gh-content h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.25;
  margin: 2em 0 0.6em;
  color: var(--text-primary);
}
.gh-content h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.3;
  margin: 1.6em 0 0.5em;
  color: var(--text-primary);
}
.gh-content h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.35;
  margin: 1.4em 0 0.4em;
  color: var(--text-primary);
}
.gh-content h5 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 1.2em 0 0.4em;
  color: var(--text-primary);
}
.gh-content h6 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 1em 0 0.4em;
  color: var(--text-secondary);
}
.gh-content a {
  color: #2d5bf0;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.gh-content a:hover {
  color: var(--signal);
}
.gh-content blockquote {
  border-left: 3px solid var(--signal);
  padding: 4px 0 4px 20px;
  margin: 1.6em 0;
  font-style: italic;
  color: var(--text-secondary);
}
.gh-content blockquote p:last-child {
  margin-bottom: 0;
}
.gh-content figure {
  margin: 2em 0;
}
.gh-content figure img {
  width: 100%;
}
.gh-content figcaption {
  font-family: var(--font-body);
  font-size: 0.65rem;
  color: var(--text-meta);
  text-align: center;
  margin-top: 8px;
}
.gh-content ul, .gh-content ol {
  padding-left: 1.5em;
  margin-bottom: 1.4em;
}
.gh-content ul {
  list-style: disc;
}
.gh-content ol {
  list-style: decimal;
}
.gh-content li {
  margin-bottom: 0.4em;
}
.gh-content code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: #f4f4f4;
  padding: 2px 6px;
  border-radius: 3px;
}
.gh-content pre {
  background: var(--bg-dark);
  color: #e0e0e0;
  padding: 20px;
  overflow-x: auto;
  margin: 1.6em 0;
  border-radius: 4px;
  font-size: 0.85rem;
  line-height: 1.6;
}
.gh-content pre code {
  background: none;
  padding: 0;
  border-radius: 0;
  color: inherit;
  font-size: inherit;
}
.gh-content hr {
  border: none;
  border-top: 1px solid var(--rule-light);
  margin: 2.5em 0;
}

/* Ghost Koenig card width classes (required by gscan) */
.kg-width-wide {
  max-width: var(--wide-width);
  margin-left: auto;
  margin-right: auto;
}
.kg-width-full {
  max-width: none;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  width: 100vw;
}
.kg-width-wide img,
.kg-width-full img {
  width: 100%;
}

/* Ghost custom font support */
.has-custom-body-font {
  font-family: var(--gh-font-body, var(--font-body));
}
.has-custom-title-font .post-title,
.has-custom-title-font .lead-headline,
.has-custom-title-font .sidebar-headline {
  font-family: var(--gh-font-title, var(--font-display));
}

/* Topic tags (displayed after article body) */
.article-topic-tags {
  max-width: var(--content-width);
  margin: 32px auto 0;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.topic-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 12px;
  border: 1px solid var(--rule-light);
  border-radius: 3px;
  color: var(--gray-dark, #555);
  text-decoration: none;
  transition: all 0.15s;
}
.topic-tag:hover {
  border-color: var(--black);
  color: var(--black);
  background: rgba(0, 0, 0, 0.03);
}
.topic-tag-primary {
  border-color: var(--signal, #d63031);
  color: var(--signal, #d63031);
}
.topic-tag-primary:hover {
  background: var(--signal, #d63031);
  color: #fff;
}

/* Author box */
.author-box {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 24px 28px;
  display: flex;
  gap: 16px;
  border-top: 1px solid var(--rule-light);
}
.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.author-info h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
}
.author-info h4 a {
  color: inherit;
  transition: color 0.15s;
}
.author-info h4 a:hover {
  color: var(--signal);
}
.author-info p {
  font-size: 0.8rem;
  color: var(--text-meta);
  line-height: 1.45;
  margin-top: 2px;
}

/* Related posts divider */
.related-section-header {
  max-width: var(--max-width);
  margin: 32px auto 0;
  padding: 0 28px;
  border-top: 1px solid var(--rule-section);
}
.related-section-inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 10px 0 16px;
}
.related-section-inner h2 {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-primary);
}
.related-section-inner .section-more {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--text-meta);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.15s;
}
.related-section-inner .section-more:hover {
  color: #000;
}

/* ============================================
   TAG / SECTION PAGES
   ============================================ */
.tag-header {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 28px 32px;
}
.tag-header h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2rem;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.tag-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.5;
}

/* ============================================
   AUTHOR PAGE
   ============================================ */
.author-header {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 28px 32px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.author-header-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.author-header-text h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.8rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.author-bio {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 480px;
}
.author-social {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}
.author-social a {
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: var(--text-meta);
  transition: color 0.15s;
}
.author-social a:hover {
  color: var(--signal);
}

/* ============================================
   STATIC PAGE
   ============================================ */
.single-page .page-header {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 48px 28px 24px;
}
.single-page .page-header h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2rem;
  color: var(--text-primary);
}
.single-page .page-feature-image {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 0 28px;
}
.single-page .page-feature-image img {
  width: 100%;
}

/* ============================================
   ERROR PAGE
   ============================================ */
.error-page {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 80px 28px;
  text-align: center;
}
.error-code {
  font-family: var(--font-display);
  font-size: 6rem;
  font-weight: 900;
  color: #e8e5df;
}
.error-message {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin: 16px 0 32px;
}
.error-link {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--signal);
  transition: color 0.15s;
}
.error-link:hover {
  color: var(--text-primary);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  border-top: 2px solid #000;
  padding: 40px 28px 32px;
  margin-top: 48px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-brand .footer-logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.3rem;
  letter-spacing: -0.04em;
  margin-bottom: 8px;
  display: inline-flex;
  align-items: baseline;
}
.footer-brand .footer-logo .fn {
  font-family: var(--font-mono);
  font-size: 0.45rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal);
  margin-left: 5px;
}
.footer-brand p {
  font-size: 0.78rem;
  color: #888;
  max-width: 280px;
}
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-meta);
  margin-bottom: 12px;
}
.footer-col a {
  display: block;
  font-size: 0.78rem;
  color: #444;
  margin-bottom: 8px;
  transition: color 0.15s;
}
.footer-col a:hover {
  color: #000;
}
.footer-bottom {
  border-top: 1px solid var(--rule-light);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
}
.footer-bottom p {
  font-family: var(--font-body);
  font-size: 0.6rem;
  color: var(--text-meta);
}
.footer-bottom a {
  transition: color 0.15s;
}
.footer-bottom a:hover {
  color: var(--signal);
}

/* ============================================
   CROSS-SITE SECTION (From Tinsel Magazine)
   ============================================ */
.crosssite-section {
  margin-top: 1rem;
}
.crosssite-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.crosssite-card.photo-card h3 {
  font-size: 0.95rem;
}
@media (max-width: 900px) {
  .crosssite-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .crosssite-grid { grid-template-columns: 1fr; }
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 28px;
  display: flex;
  justify-content: center;
  gap: 24px;
}
.pagination a {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--signal);
  transition: color 0.15s;
}
.pagination a:hover {
  color: var(--text-primary);
}

/* ============================================
   THROUGH THE LENS — Media Analysis Feature
   ============================================ */
.ttl-badge {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--off-black);
  padding: 5px 12px;
  display: inline-block;
  margin-bottom: 16px;
}
.ttl-explainer {
  max-width: var(--content-width);
  margin: 0 auto 32px;
  padding: 16px 20px;
  border-left: 3px solid var(--off-black);
  background: #f8f8f8;
}
.ttl-explainer p {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}
/* TTL article body: outlet names as subheadings get distinct styling */
.ttl-article .gh-content h2 {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--rule-light);
  padding-bottom: 8px;
  margin-top: 36px;
  margin-bottom: 16px;
}
.ttl-article .gh-content blockquote {
  border-left: 3px solid var(--off-black);
  padding: 12px 20px;
  margin: 20px 0;
  background: #fafafa;
  font-size: 0.95rem;
}
.ttl-article .gh-content blockquote p {
  font-style: italic;
  color: var(--text-secondary);
}

/* ============================================
   RESPONSIVE — TABLET (max-width: 900px)
   ============================================ */
@media (max-width: 900px) {
  /* Lead section goes single col */
  .lead-section {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .divider-vertical {
    display: none;
  }
  .sidebar-headlines {
    padding-top: 20px;
    border-top: 1px solid var(--rule-light);
    margin-top: 20px;
  }

  /* Photo grid stays 2-col */

  /* 4-col strip becomes 2-col */
  .four-col-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Opinion strip: 2 col */
  .opinion-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Feature story single col */
  .feature-story {
    grid-template-columns: 1fr;
  }
  .feature-story.flipped {
    direction: ltr;
  }

  /* Post grid: 2 cols */
  .post-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Footer: 2 col */
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  /* Article headline size */
  .article-header h1 {
    font-size: 1.8rem;
  }

  /* Author header stack */
  .author-header {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  .author-social {
    justify-content: center;
  }
}

/* ============================================
   RESPONSIVE — MOBILE (max-width: 640px)
   ============================================ */
@media (max-width: 640px) {
  /* Header: hide nav, show hamburger */
  .site-nav {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
  .site-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 2px solid #000;
    padding: 16px 28px;
    gap: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    z-index: 99;
  }
  .header-date {
    display: none;
  }
  .subscribe-btn {
    font-size: 0.5rem;
    padding: 5px 10px;
  }

  /* Ticker label hidden */
  .ticker-label {
    display: none;
  }
  .ticker-divider {
    display: none;
  }

  /* Lead headline smaller */
  .lead-headline {
    font-size: 1.5rem;
  }

  /* Everything single col */
  .photo-grid {
    grid-template-columns: 1fr;
  }
  .opinion-strip {
    grid-template-columns: 1fr;
  }
  .four-col-strip {
    grid-template-columns: 1fr 1fr;
  }
  .feature-story {
    grid-template-columns: 1fr;
  }

  /* Post grid single col */
  .post-grid {
    grid-template-columns: 1fr;
  }

  /* Newsletter CTA stack */
  .newsletter-cta {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
  }
  .newsletter-form {
    flex-direction: column;
    width: 100%;
  }
  .newsletter-form input {
    width: 100%;
  }

  /* Article headline */
  .article-header h1 {
    font-size: 1.6rem;
  }

  /* Footer single col */
  .footer-top {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }

  /* Tag/author header */
  .tag-header h1 {
    font-size: 1.6rem;
  }

  /* Page padding adjustments */
  .page-content {
    padding: 0 20px;
  }
  .header-inner {
    padding: 0 20px;
  }
  .site-footer {
    padding: 32px 20px 24px;
  }
  .post-grid {
    padding: 0 20px 48px;
  }
}
