/* ============================================================
   LAWTECH DIGEST — The Critic-style design
   White bg · Orange accent · Playfair Display + Source Serif 4 + Inter
   ============================================================ */

:root {
  --orange:    #bf4316;   /* The Critic warm orange/rust accent */
  --navy:      #172845;   /* footer + admin */
  --bg:        #ffffff;
  --text:      #1a1a1a;
  --muted:     #666666;
  --rule:      #e2e2e2;
  --rule-dark: #c0c0c0;
  --danger:    #c0392b;
  --success:   #1e6a45;
  --placeholder-bg: #2a3b52;  /* dark blue-grey for missing images */
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; }

body {
  background: #F2F1EF;
  color: var(--text);
  font-family: 'Source Serif 4', Georgia, serif;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

.wide-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ============================================================
   HEADER
   ============================================================ */

.site-header {
  background: rgba(236, 236, 234, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid var(--rule);
}

/* Compact nav logo (visible only when scrolled on desktop) */
.nav-compact-logo {
  display: none;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
  margin-right: 1rem;
  white-space: nowrap;
}
.nav-compact-logo-icon {
  height: 22px;
  width: 22px;
  border-radius: 50%;
  object-fit: cover;
  transition: transform 0.1s;
}
.nav-compact-logo:hover .nav-compact-logo-icon {
  animation: coin-spin 0.8s ease-in-out forwards;
}
.nav-compact-logo-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.01em;
}

/* Compact search in nav — hidden until scrolled */
.nav-compact-search-item { display: none; }

/* Scrolled state — desktop only */
.site-header.scrolled .header-top { display: none; }
.site-header.scrolled .nav-compact-logo { display: flex; }
.site-header.scrolled .nav-compact-search-item { display: flex; align-items: center; }

/* Logo row */
.header-top {
  padding: 0.9rem 0 0.7rem;
  border-bottom: 1px solid var(--rule);
}

.header-top-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 300;
}
.nav-icon-btn.header-search-btn,
.nav-icon-btn.header-hamburger-btn {
  border: none;
}
.header-search-btn {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 40px;
}
.header-hamburger-btn {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 40px;
}

.site-logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -1px;
  line-height: 1;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: font-size 0.25s ease;
}
.logo-icon {
  height: 48px; width: 48px; display: block; object-fit: cover; border-radius: 50%;
  transition: transform 0.1s, height 0.25s ease, width 0.25s ease;
}
.site-logo:hover .logo-icon {
  animation: coin-spin 0.8s ease-in-out forwards;
}
@keyframes coin-spin {
  0%   { transform: rotateY(0deg); }
  30%  { transform: rotateY(180deg); }
  60%  { transform: rotateY(360deg); }
  80%  { transform: rotateY(420deg); }
  90%  { transform: rotateY(390deg); }
  100% { transform: rotateY(360deg); }
}
.logo-first { font-style: italic; font-weight: 400; }
.logo-second { font-weight: 900; }
.site-logo:hover { color: var(--orange); }

.header-tagline {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Nav strip */
.main-nav {
  background: transparent;
  position: relative;
}

.nav-inner {
  display: flex;
  align-items: stretch;
  justify-content: center;
  min-height: 40px;
  border-bottom: 1px solid var(--rule);
}

.nav-links {
  display: flex;
  list-style: none;
  align-items: center;
  flex-wrap: nowrap;
  overflow: visible;
  gap: 0;
}

.nav-links a {
  display: block;
  font-family: 'Libre Franklin', system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  padding: 0 0.9rem;
  white-space: nowrap;
  line-height: 40px;
  border-right: 1px solid var(--rule);
  transition: color 0.15s;
}
.nav-links li:first-child a { border-left: 1px solid var(--rule); }
.nav-links a:hover { color: #fff; background: var(--orange); }
.nav-item-dropdown:hover > a { color: #fff !important; background: var(--orange) !important; }
.nav-links a.active { color: inherit; background: transparent; }
.nav-links a.active:hover { color: #fff; background: var(--orange); }
.nav-links a.nav-highlight { color: var(--orange); }

/* Nav hover dropdowns */
.nav-item-dropdown { position: relative; }
.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--orange);
  border: none;
  min-width: 300px;
  z-index: 200;
  list-style: none;
  margin: 0;
  padding: 0.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
}
.nav-item-dropdown:hover .nav-dropdown { display: grid; }
.nav-dropdown li a,
.nav-dropdown li a:first-child {
  display: block;
  padding: 0.4rem 1rem;
  font-family: 'Libre Franklin', system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  border: none !important;
  text-align: center;
}
.nav-dropdown li a:hover { color: #fff; background: rgba(0,0,0,0.15); }
.nav-dropdown--categories li a,
.nav-dropdown--categories li a:first-child { text-align: left !important; }

/* Archive year headings */
.archive-year-heading {
  font-family: 'Libre Franklin', system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.4rem;
  margin: 2rem 0 1rem;
}

/* Right side of nav */
.nav-right {
  display: flex;
  align-items: center;
  gap: 0;
  margin-left: auto;
  flex-shrink: 0;
}

.nav-login {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 0.9rem;
  border-left: 1px solid var(--rule);
  line-height: 40px;
  white-space: nowrap;
  transition: color 0.15s;
}
.nav-login:hover { color: var(--text); }

.nav-icon-btn {
  background: none;
  border: none;
  border-left: 1px solid var(--rule);
  padding: 0 0.75rem;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
  transition: color 0.15s, background 0.15s;
}
.nav-icon-btn:hover { color: var(--orange); background: #fafafa; }
.nav-icon-btn[aria-expanded="true"] { color: var(--orange); }


/* Search bar (drop-down strip) */
.search-bar {
  border-bottom: 2px solid var(--orange);
  background: rgba(234, 227, 223, 0.75);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.search-bar.open { max-height: 60px; }

.search-bar-form {
  display: flex;
  align-items: center;
  padding: 0.6rem 0;
  gap: 0;
}
.search-bar-input {
  flex: 1;
  border: none;
  border-bottom: 1px solid var(--rule);
  outline: none;
  padding: 0.35rem 0.5rem;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.4);
}
.search-bar-input::placeholder { color: var(--muted); }
.search-bar-submit {
  background: var(--orange);
  color: #fff;
  border: none;
  padding: 0.4rem 1rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  margin-left: 0.8rem;
}
.search-bar-submit:hover { background: #a33810; }
.search-bar-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--muted);
  cursor: pointer;
  padding: 0 0.5rem;
  line-height: 1;
}
.search-bar-close:hover { color: var(--text); }

/* Nav drawer — right-side panel */
.nav-drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 900;
}
.nav-drawer-overlay.open { display: block; }

.nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  background: rgba(23, 40, 69, 0.93);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 901;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
}
.nav-drawer.open { transform: translateX(0); }

/* Close button row */
.drawer-close-row {
  display: flex;
  align-items: center;
  padding: 1.25rem 1.5rem 0.5rem;
}
.drawer-close-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.75);
  font-size: 1.35rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.15s;
}
.drawer-close-btn:hover { color: #fff; }

.drawer-search {
  padding: 0.75rem 1.5rem 1rem;
}
.drawer-search-form {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  overflow: hidden;
}
.drawer-search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.9rem;
  padding: 0.55rem 0.75rem;
}
.drawer-search-input::placeholder { color: rgba(255,255,255,0.45); }
.drawer-search-btn {
  background: none;
  border: none;
  border-left: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.65);
  padding: 0.55rem 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: color 0.15s;
}
.drawer-search-btn:hover { color: #fff; }

/* Nav items */
.drawer-nav {
  list-style: none;
  padding: 0.5rem 0 0;
  margin: 0;
  flex: 1;
}
.drawer-nav-item {
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.drawer-nav-item:first-child {
  border-top: 1px solid rgba(255,255,255,0.1);
}
.drawer-nav-link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.4rem;
  padding: 1rem 1.5rem;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1rem;
  font-weight: 400;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: color 0.15s;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
}
.drawer-nav-link:hover { color: var(--orange); }

/* Expand arrow */
.drawer-arrow {
  display: inline-flex;
  align-items: center;
  transition: transform 0.25s ease;
  color: rgba(255,255,255,0.5);
}
.drawer-arrow svg { display: block; }
.drawer-nav-item.expanded .drawer-arrow { transform: rotate(180deg); }

/* Categories submenu */
.drawer-sub {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.drawer-nav-item.expanded .drawer-sub { max-height: 1200px; }
.drawer-sub-item {
  border-top: 1px solid rgba(255,255,255,0.06);
}
.drawer-sub-link {
  display: block;
  padding: 0.7rem 1.5rem 0.7rem 2.25rem;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color 0.15s;
}
.drawer-sub-link:hover { color: var(--orange); }


/* ============================================================
   MAIN CONTENT
   ============================================================ */

.site-main { padding-bottom: 4rem; background-color: #F2F1EF; }
.page-article .site-main { background-color: #fff; padding-bottom: 0; }
.page-article .related-section {
  background: #F2F1EF;
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
  padding: 2rem calc(50vw - 580px) 4rem;
  box-sizing: border-box;
}

/* Compact tiles in related section */
.page-article .related-section .card-image-link { aspect-ratio: 4 / 2.2; }
.page-article .related-section .card-title { font-size: 0.95rem; margin-top: 0.4rem; margin-bottom: 0.5rem; }
.page-article .related-section .card-body { padding: 0.65rem 0.75rem 0.9rem; }
.page-article .related-section .card-meta { font-size: 0.72rem; }

/* ============================================================
   HERO — 50/50 split (image left, text right)
   ============================================================ */

.hero {
  display: grid;
  grid-template-columns: 6fr 6fr;
  min-height: 462px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 0;
  background-color: rgba(255, 255, 255, 0.4);
  position: relative;
  overflow: hidden;
  transition: background-color 0.2s ease;
}
.hero:hover { background-color: rgba(191, 67, 22, 0.12); }

.hero-image-link { display: block; overflow: hidden; position: relative; z-index: 1; }

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-image-link:hover .hero-img { transform: none; }

.hero-img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 462px;
  background: var(--placeholder-bg);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}

.hero-content {
  padding: 2.5rem 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  align-items: center;
  text-align: center;
  border-right: 1px solid var(--rule);
}

.hero-title-link { text-decoration: none; margin-bottom: auto; }
.hero-title-link::after { content: ''; position: absolute; inset: 0; z-index: 0; }

.hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.4rem;
  font-weight: 400;
  line-height: 1.7;
  line-height: 1.15;
  color: var(--text);
  letter-spacing: -0.3px;
  margin: 0;
}
.hero-title-link:hover .hero-title { color: var(--orange); text-decoration: underline; }
.hero .card-category { position: relative; z-index: 1; margin-bottom: auto; }

.hero-excerpt {
  font-size: 1rem;
  line-height: 1.7;
  font-style: italic;
  color: var(--muted);
}

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin-top: auto;
}

.hero-author {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 0.75rem;
  font-style: italic;
  color: var(--text);
}
.hero-source {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 0.75rem;
  font-style: italic;
  font-weight: 600;
  color: var(--navy);
}
.hero-source::before { content: ' · '; color: var(--muted); }
.hero-date {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 0.75rem;
  font-style: italic;
  color: var(--muted);
}
.hero-date::before { content: ' · '; }

.hero-audio-wrap { display: flex; justify-content: center; position: relative; z-index: 2; margin-top: 1rem; width: 100%; }
.hero-audio-player {
  margin: 0;
  padding: 0.6rem 1.2rem 0.6rem 2%;
  position: relative;
  z-index: 2;
  background: linear-gradient(to right, transparent calc(2% + 38px + 0.9rem), rgba(0,0,0,0.06) calc(2% + 38px + 0.9rem));
  border-radius: 4px;
  width: 90%;
}

#heroAudioCurrent { margin-left: 1rem; }

.hero-listen-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 auto;
  padding: 0.35rem 0.9rem;
  border: 1px solid rgba(0,0,0,0.2);
  background: transparent;
  border-radius: 2rem;
  font-family: 'Libre Franklin', system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--mid);
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  cursor: pointer;
}
.hero-listen-btn:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

.hero-meta-cat {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
}

/* ============================================================
   SECTION HEADING
   ============================================================ */

.section-header {
  padding: 1.8rem 0 0.5rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid rgba(26, 26, 26, 0.05);
  text-align: center;
  position: relative;
  z-index: 2;
  background: #F2F1EF;
}

.section-header--page {
  padding-top: 2rem;
  display: flex;
  align-items: baseline;
  gap: 1rem;
}

.section-title {
  font-family: 'Libre Franklin', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange);
}

.section-count {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.7rem;
  color: var(--muted);
}

/* ============================================================
   ARTICLE CATEGORY LABEL (orange, above titles)
   ============================================================ */

.card-category {
  display: inline-block;
  position: relative;
  z-index: 1;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.3rem;
  line-height: 1;
}
.card-category:hover { color: #a33810; }
.card-category--lg { font-size: 0.7rem; margin-bottom: 0.5rem; }

/* ============================================================
   ARTICLE GRID — 3 columns
   ============================================================ */

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2%;
  border-left: none;
  margin-bottom: 2rem;
  isolation: isolate;
}

.article-grid--3 { margin-top: 1.5rem; }

/* Wide 4th card + event promo tile */
.article-grid--with-event .grid-card--wide {
  grid-column: span 2;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 7;
}
.article-grid--with-event .grid-card--wide .card-image-link {
  position: absolute;
  inset: 0;
  aspect-ratio: unset;
  width: 100%;
  height: 100%;
}
.article-grid--with-event .grid-card--wide .card-img,
.article-grid--with-event .grid-card--wide .card-img-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Black overlay */
.article-grid--with-event .grid-card--wide .card-image-link::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}
/* Card body centred over image */
.article-grid--with-event .grid-card--wide .card-body {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
  background: none;
}
.article-grid--with-event .grid-card--wide .card-category { color: rgba(255,255,255,0.8); }
.article-grid--with-event .grid-card--wide .card-title { color: #fff; font-size: 1.79rem; }
.article-grid--with-event .grid-card--wide .tile-share { margin-top: 0.75rem; }
.article-grid--with-event .grid-card--wide .card-meta,
.article-grid--with-event .grid-card--wide .card-source,
.article-grid--with-event .grid-card--wide .card-date,
.article-grid--with-event .grid-card--wide .card-meta-sep { color: rgba(255,255,255,0.75); }
.article-grid--with-event .grid-card--wide .tile-share .share-btn { color: rgba(255,255,255,0.8); }
.article-grid--with-event .grid-card--wide .tile-share .share-btn:hover { color: #fff; }
.article-grid--with-event .grid-card--wide .share-copied { color: #fff; }
/* Event tile matches row height automatically (same grid row) */
.article-grid--with-event .event-promo-tile { max-height: none; overflow: auto; }
.event-promo-tile {
  background: #fff !important;
  border: 1px solid var(--orange);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0;
  position: relative;
}
.event-promo-tile:hover { background: #fff !important; }
.event-promo-label {
  font-family: 'Libre Franklin', system-ui, sans-serif;
  font-size: 0.714rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  background: rgba(191, 67, 22, 0.1);
  display: inline-block;
  align-self: center;
  padding: 0.25rem 0.75rem;
  margin-top: 0;
}
.event-promo-body {
  flex: 1;
  padding: 0.75rem 1.25rem 0.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
}
.event-promo-title-link { text-decoration: none; }
.event-promo-title-link:hover .event-promo-title { color: var(--orange); text-decoration: underline; }
.event-promo-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin: 0;
}
.event-promo-date,
.event-promo-location {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0;
}
.event-promo-desc {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 0.82rem;
  color: var(--text);
  line-height: 1.5;
  margin: 0;
}
.event-promo-share {
  border-top: 1px solid rgba(191,67,22,0.12);
  padding: 0.6rem 1rem 0.75rem;
  justify-content: center;
  margin: 0;
}
@media (max-width: 860px) {
  .article-grid--with-event .grid-card--wide { grid-column: span 1; }
}

/* Card summary — hidden in grid, shown in list */
.card-summary {
  display: none;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.55;
  margin: 0.4rem 0 0;
}

/* View toolbar */
.view-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1rem 0 0.25rem;
}
.view-toolbar-left { display: flex; align-items: center; gap: 0.4rem; }
.view-toolbar-right { display: flex; gap: 0.4rem; }

.month-picker {
  font-family: 'Libre Franklin', system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--rule-dark);
  padding: 0.4rem 2rem 0.4rem 0.75rem;
  border-radius: 3px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23666'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
  background-size: 8px;
  transition: border-color 0.15s;
}
.month-picker:focus { outline: none; border-color: var(--navy); }
.view-btn {
  width: 32px;
  height: 32px;
  border: 1px solid var(--rule-dark);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  transition: all 0.15s;
}
.view-btn.active, .view-btn:hover {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

/* List view overrides — desktop only */
@media (min-width: 641px) {
  .list-view .article-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .list-view .grid-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--rule);
    background: transparent;
  }
  .list-view .card-image-link {
    flex-shrink: 0;
    width: 140px;
  }
  .list-view .card-img,
  .list-view .card-img-placeholder {
    width: 140px;
    height: 90px;
    object-fit: cover;
  }
  .list-view .card-body {
    flex: 1;
    padding: 0;
    text-align: left;
  }
  .list-view .card-summary { display: block; }
  .list-view .card-title { font-size: 1rem; }
}

/* Hide toolbar on mobile */
@media (max-width: 640px) {
  .view-toolbar { display: none; }
}

.grid-card {
  background-color: rgba(191, 67, 22, 0.12);
  overflow: hidden;
  transition: background-color 0.2s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}
.grid-card:hover { background-color: #e2c3c5; }
.grid-card:hover .card-title { text-decoration: underline; }

.card-image-link {
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: var(--placeholder-bg);
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.card-image-link:hover .card-img { transform: scale(1.04); }

.card-img-placeholder {
  width: 100%;
  height: 100%;
  background: var(--placeholder-bg);
  display: flex;
  align-items: flex-end;
  padding: 0.8rem;
}

.placeholder-label {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

.card-body {
  padding: 0.9rem 1rem 1.2rem;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-title-link { text-decoration: none; }
.card-title-link::after { content: ''; position: absolute; inset: 0; z-index: 0; }

.card-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  margin-top: 0.6rem;
  margin-bottom: 0.8rem;
}
.card-title-link:hover .card-title { color: var(--orange); text-decoration: underline; }

.card-author {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 0.72rem;
  font-style: italic;
  color: var(--muted);
  margin-top: 0.2rem;
}

.card-meta {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 0.72rem;
  font-style: italic;
  color: var(--muted);
  margin-top: 0.3rem;
}
.card-date { color: var(--muted); }
.card-source { color: var(--navy); font-weight: 600; }
.card-meta-sep { margin: 0 0.3rem; color: var(--muted); }

/* ============================================================
   ARTICLE PAGE
   ============================================================ */

.article-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 2.5rem 2rem 0;
  background-color: #ffffff;
}

.article-header { margin-bottom: 1.5rem; text-align: center; }

.article-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  letter-spacing: -0.5px;
  margin: 3% 0 0.8rem;
}

.article-byline {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1rem;
  font-style: italic;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 5%;
}
.byline-author { font-weight: 600; color: var(--text); }
.byline-sep { color: var(--rule-dark); }
.byline-source { color: var(--muted); }
.byline-date { color: var(--muted); }

.article-hero-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  margin-bottom: 2rem;
}

/* Audio player */
.audio-player {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 0 0 1rem;
  padding: 0.4rem 0;
}
.audio-play-btn {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.18);
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.audio-play-btn:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}
.audio-time {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  color: var(--mid);
  flex-shrink: 0;
  min-width: 2.8rem;
  text-align: center;
}
.audio-track {
  flex: 1;
  height: 3px;
  background: var(--rule);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}
.audio-progress {
  height: 100%;
  width: 0%;
  background: var(--orange);
  border-radius: 2px;
  pointer-events: none;
  transition: width 0.1s linear;
}
.audio-track:hover .audio-progress { background: var(--ink); }
.audio-listen-label {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.9rem;
  font-weight: 700;
  font-style: italic;
  color: var(--mid);
}
.audio-time--hidden,
.audio-track--hidden { display: none; }

.article-body {
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--text);
  padding-top: 1rem;
  margin-bottom: 2rem;
}
.article-body p + p { margin-top: 1rem; }

.article-body p:first-of-type::first-letter,
.article-content p:first-of-type::first-letter {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 0.8;
  float: left;
  margin-right: 0.1em;
  margin-top: 0.05em;
  color: var(--text);
}

.article-content p { margin-top: 1.2rem; }
.article-content::after { content: ''; display: table; clear: both; }
.article-content [data-callout] { padding: 1.6rem 2rem !important; }
.article-content p:first-child { margin-top: 0; }
.article-content h2 { font-family: var(--serif); font-size: 1.4rem; font-weight: 700; margin: 2rem 0 0.5rem; }
.article-content h3 { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; margin: 1.5rem 0 0.4rem; }
.article-content ul, .article-content ol { margin: 1rem 0 1rem 1.5rem; }
.article-content li { margin-bottom: 0.4rem; }
.article-content blockquote { border-left: 3px solid var(--orange); margin: 1.5rem 0; padding: 0.5rem 1.2rem; color: var(--mid); font-style: italic; }

.article-share {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin: 0.75rem 0 calc(0.65rem + 2%);
}
.article-share:not(.tile-share) .share-bar-icons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  padding-bottom: calc(0.65rem + 2%);
}
.article-share:not(.tile-share) .share-bar-icons::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% + 1.5rem);
  height: 1px;
  background: var(--rule);
}
.article-share:not(.tile-share) .share-copied {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 120%;
  white-space: nowrap;
}
.tile-share {
  margin: auto 0 0;
  padding-top: 0.75rem;
  position: relative;
  z-index: 1;
  flex-direction: row;
  justify-content: center;
}
.tile-share .share-btn { width: 24px; height: 24px; }
.tile-share .share-copied { font-size: 0.72rem; }
.hero .tile-share { margin-top: 0; }
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: var(--muted);
  border: 1px solid var(--rule);
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s;
}
.share-btn:hover { color: var(--orange); border-color: var(--orange); }
.share-copied {
  font-size: 0.75rem;
  color: var(--orange);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.share-copied.visible { opacity: 1; }

/* Prev / Next article navigation */
.article-prev-next {
  margin: 2.5rem 0;
  padding: 1.8rem 0;
}
.article-prev-next-inner {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 2rem;
  align-items: start;
}
.apn-divider {
  background: var(--rule);
  height: 100%;
  min-height: 60px;
}
.apn-col--next { text-align: right; }
.apn-link {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-decoration: none;
  color: var(--ink);
}
.apn-label {
  font-family: 'Libre Franklin', system-ui, sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
}
.apn-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--orange);
  transition: transform 0.2s ease;
  display: inline-block;
}
.apn-col--prev .apn-link:hover .apn-title { transform: translateX(-6px); text-decoration: underline; }
.apn-col--next .apn-link:hover .apn-title { transform: translateX(6px); text-decoration: underline; }
.apn-author {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.75rem;
  color: var(--mid);
}
@media (max-width: 600px) {
  .article-prev-next { margin: 1.5rem 0; padding: 1rem 0; }
  .article-prev-next-inner { grid-template-columns: 1fr 1px 1fr; gap: 0.75rem; }
  .apn-label { font-size: 0.55rem; }
  .apn-title { font-size: 0.78rem; }
  .apn-author { display: none; }
}

.article-source {
  border-top: 1px solid var(--rule);
  padding-top: 1.5rem;
}

.btn-source {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.7rem 1.4rem;
  text-decoration: none;
  transition: background 0.15s;
}
.btn-source:hover { background: #a33810; color: #fff; }

.article-cta {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}
.article-cta-link {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1rem;
  font-style: italic;
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.article-cta-link:hover { color: #a33810; }
.article-cta-btn { margin-top: 0; }

.related-section {
  margin-top: 3rem;
  margin-left: -2rem;
  margin-right: -2rem;
  padding: 2rem 2rem 4rem;
  background-color: #F3F0ED;
}

/* ============================================================
   SEARCH PAGE
   ============================================================ */

.search-standalone {
  display: flex;
  gap: 0;
  margin: 1.5rem 0 2rem;
}
.search-standalone-input {
  flex: 1;
  border: 1px solid var(--rule);
  border-right: none;
  padding: 0.65rem 1rem;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1rem;
  color: var(--text);
  outline: none;
}
.search-standalone-input:focus { border-color: var(--orange); }
.search-standalone-btn {
  background: var(--orange);
  color: #fff;
  border: none;
  padding: 0.65rem 1.2rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}
.search-standalone-btn:hover { background: #a33810; }

/* ============================================================
   ARTICLES CONTAINER
   ============================================================ */

#articlesContainer { padding-bottom: 0; }

/* ============================================================
   PAGINATION
   ============================================================ */

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2rem;
  margin-bottom: 0;
  padding: 0.5rem 0;
  border-top: 1px solid var(--rule);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.8rem;
}
.pagination-link { font-weight: 700; color: var(--orange); }
.pagination-link:hover { color: #a33810; }
.pagination-info { color: var(--muted); }

/* ============================================================
   EVENTS PAGE
   ============================================================ */

.event-card { display: flex; flex-direction: column; overflow: hidden; }
.event-card .card-body { text-align: left; }
.event-card .card-summary { display: block; }
.event-card .article-share { margin-bottom: 0.25rem; position: relative; z-index: 1; flex-direction: row; flex-wrap: wrap; justify-content: flex-start; gap: 0.4rem; }
.event-card-link { position: relative; z-index: 1; }
.event-card .card-title-link { color: inherit; text-decoration: none; }
.event-card:hover .card-title-link { color: var(--orange); text-decoration: underline; }
.event-cal-btn { position: absolute; bottom: 0.6rem; right: 0.6rem; z-index: 1; color: var(--muted); opacity: 0.5; transition: opacity 0.2s, color 0.2s; line-height: 0; }
.event-cal-btn:hover { opacity: 1; color: var(--navy); }

.event-card-date {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--orange);
  margin: 0 0 0.5rem 0;
}

.event-card--past { opacity: 0.65; }
.event-card--past .event-card-date { color: var(--muted); }

.event-card-title { margin-top: 0; }

.event-card-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--orange);
  text-decoration: none;
  position: relative;
  z-index: 1;
}
.event-card-link:hover { text-decoration: underline; }

/* ============================================================
   VIDEO PAGE
   ============================================================ */
.video-page-header { display: flex; flex-direction: column; align-items: center; gap: 1rem; padding: 1.5rem 0 1rem; border-bottom: 2px solid #000; margin-bottom: 0; text-align: center; }
.video-search-form { display: flex; align-items: center; gap: 0.5rem; }
.video-search-input { font-family: 'Inter', system-ui, sans-serif; font-size: 0.85rem; padding: 0.45rem 0.75rem; border: 1px solid #c8cdd8; outline: none; width: 220px; }
.video-search-input:focus { border-color: var(--navy); }
.video-search-select {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.85rem;
  padding: 0.45rem 2.2rem 0.45rem 0.75rem;
  border: 1px solid #c8cdd8;
  outline: none;
  color: #2c2a27;
  background: #fff;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231e3a5f' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  transition: border-color 0.12s;
}
.video-search-select:focus { border-color: var(--navy); }
.video-search-btn { font-family: 'Inter', system-ui, sans-serif; font-size: 0.78rem; font-weight: 700; padding: 0.45rem 1rem; background: var(--navy); color: #fff; border: none; cursor: pointer; }
.video-search-clear { font-family: 'Inter', system-ui, sans-serif; font-size: 0.78rem; color: var(--muted); text-decoration: none; }
.video-search-clear:hover { color: var(--navy); }
.video-search-result { font-family: 'Inter', system-ui, sans-serif; font-size: 0.85rem; color: var(--muted); margin: 0.75rem 0 0; }
.card-image-link { position: relative; display: block; }
.video-play-badge { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 44px; height: 44px; background: rgba(0,0,0,0.65); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; pointer-events: none; padding-left: 3px; }

/* ============================================================
   EMAIL BULLETIN
   ============================================================ */
.bulletin-page { max-width: 640px; margin: 0 auto; padding: 3rem 0; }
.bulletin-hero { text-align: center; margin-bottom: 2.5rem; border-bottom: 2px solid #000; padding-bottom: 2rem; }
.bulletin-hero .bulletin-label { font-family: 'Inter', system-ui, sans-serif; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange); margin-bottom: 0.75rem; }
.bulletin-title { font-family: 'Playfair Display', Georgia, serif; font-size: 2.6rem; font-weight: 900; color: var(--navy); line-height: 1.15; margin: 0 0 0.8rem; }
.bulletin-subtitle { font-family: 'Source Serif 4', Georgia, serif; font-size: 1.05rem; color: var(--muted); line-height: 1.6; margin: 0; }
.bulletin-form-wrap { background: #f7f8fa; border: 1px solid #e2e5ec; padding: 2rem; margin-bottom: 2.5rem; }
.bulletin-form { display: flex; flex-direction: column; gap: 1.1rem; }
.bulletin-field { display: flex; flex-direction: column; gap: 0.35rem; }
.bulletin-label-field { font-family: 'Inter', system-ui, sans-serif; font-size: 0.78rem; font-weight: 700; color: var(--navy); }
.bulletin-input { font-family: 'Inter', system-ui, sans-serif; font-size: 0.95rem; color: #2c2a27; background: #fff; border: 1px solid #c8cdd8; padding: 0.65rem 0.85rem; outline: none; width: 100%; transition: border-color 0.12s; box-sizing: border-box; }
.bulletin-input:focus { border-color: var(--navy); }
.bulletin-optional { font-weight: 400; color: var(--muted); font-size: 0.72rem; margin-left: 0.3rem; }
.bulletin-categories { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.4rem 1rem; margin-top: 0.25rem; }
.bulletin-cat-label { display: flex; align-items: center; gap: 0.45rem; font-family: 'Inter', system-ui, sans-serif; font-size: 0.85rem; color: var(--text); cursor: pointer; line-height: 1.4; }
.bulletin-cat-label input { margin: 0; flex-shrink: 0; accent-color: var(--orange); }
.bulletin-consent { display: flex; align-items: flex-start; gap: 0.5rem; }
.bulletin-check-label { display: flex; align-items: flex-start; gap: 0.55rem; font-family: 'Inter', system-ui, sans-serif; font-size: 0.85rem; color: var(--text); cursor: pointer; line-height: 1.5; }
.bulletin-check-label input { margin-top: 0.2rem; flex-shrink: 0; accent-color: var(--orange); }
.bulletin-submit { font-family: 'Inter', system-ui, sans-serif; font-size: 0.88rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; background: var(--orange); color: #fff; border: none; padding: 0.85rem 2rem; cursor: pointer; transition: background 0.15s; align-self: flex-start; }
.bulletin-submit:hover { background: #a33810; }
.bulletin-unsub { font-family: 'Inter', system-ui, sans-serif; font-size: 0.72rem; color: var(--muted); margin: 0; line-height: 1.5; }
.bulletin-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; border-top: 1px solid #e2e5ec; padding-top: 2rem; }
.bulletin-feature { text-align: center; }
.bulletin-feature-icon { color: var(--orange); font-size: 0.6rem; display: block; margin-bottom: 0.5rem; }
.bulletin-feature h3 { font-family: 'Inter', system-ui, sans-serif; font-size: 0.82rem; font-weight: 700; color: var(--navy); margin: 0 0 0.4rem; }
.bulletin-feature p { font-family: 'Source Serif 4', Georgia, serif; font-size: 0.85rem; color: var(--muted); margin: 0; line-height: 1.5; }
@media (max-width: 640px) { .bulletin-features { grid-template-columns: 1fr; } .bulletin-title { font-size: 2rem; } }
.bulletin-body .site-main { background-image: url('../missive.png'); background-size: cover; background-position: center top; background-repeat: no-repeat; background-attachment: fixed; }
.bulletin-body .bulletin-page { position: relative; }
.bulletin-body .bulletin-hero .bulletin-label { color: #f5c89a; text-shadow: 0 1px 4px rgba(0,0,0,0.7); }
.bulletin-body .bulletin-title { color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,0.65), 0 1px 2px rgba(0,0,0,0.5); }
.bulletin-body .bulletin-subtitle { color: #f0ece4; text-shadow: 0 1px 5px rgba(0,0,0,0.7); }
.bulletin-body .bulletin-hero { background: rgba(0,0,0,0.18); border-bottom-color: rgba(255,255,255,0.25); padding: 1.5rem 1rem; }
.bulletin-body .bulletin-features { border-top-color: rgba(255,255,255,0.25); }
.bulletin-body .bulletin-feature-icon { color: #f5c89a; text-shadow: 0 1px 3px rgba(0,0,0,0.5); }
.bulletin-body .bulletin-feature h3 { color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,0.65); }
.bulletin-body .bulletin-feature p { color: #e8e2d8; text-shadow: 0 1px 4px rgba(0,0,0,0.65); }
.bulletin-body .bulletin-form-wrap { background: rgba(247, 248, 250, 0.92); }

/* Coming soon pages */
.coming-soon-body { padding: 3rem 0; text-align: center; }
.coming-soon-text { font-family: 'Source Serif 4', Georgia, serif; font-size: 1.1rem; color: var(--muted); }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
/* ---- About hero ---- */
.about-hero {
  position: relative;
  margin: 0 calc(-50vw + 50%);
  max-height: 520px;
  overflow: hidden;
}
.about-hero-img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.about-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.18) 55%, transparent 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 3rem 2rem;
}
.about-hero-quote {
  max-width: 680px;
  text-align: center;
  margin: 0;
}
.about-hero-quote p {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.75rem;
  font-weight: 400;
  font-style: italic;
  color: #fff;
  line-height: 1.5;
  margin: 0 0 0.6rem;
}
.about-hero-quote cite {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  font-style: normal;
}

/* ---- About article body ---- */
.about-article {
  max-width: 760px;
  margin: 0 auto;
  padding: 2.5rem 2rem 4rem;
}
.about-article-header {
  margin-bottom: 2rem;
  text-align: center;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1.5rem;
}
.about-article-label {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 0.6rem;
}
.about-article-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  margin: 0 0 0.6rem;
}
.about-article-byline {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1rem;
  font-style: italic;
  color: var(--muted);
  margin: 0;
}
.about-article-body p {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text);
  margin: 0 0 1.4rem;
}
.about-article-body p:first-of-type::first-letter {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 4rem;
  font-weight: 700;
  float: left;
  line-height: 0.8;
  margin: 0.1em 0.1em 0 0;
  color: var(--navy);
}
.about-contact-line { margin-top: 2rem !important; }


/* ---- Contact page ---- */
.contact-page { max-width: 600px; margin: 0 auto; padding: 2rem 0 4rem; }
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 2rem; }
.contact-field { display: flex; flex-direction: column; gap: 0.4rem; }
.contact-label { font-family: 'Inter', system-ui, sans-serif; font-size: 0.78rem; font-weight: 700; color: var(--navy); }
.contact-input { font-family: 'Source Serif 4', Georgia, serif; font-size: 1rem; color: var(--text); background: #fff; border: 1px solid var(--rule-dark); padding: 0.55rem 0.75rem; outline: none; transition: border-color 0.2s; }
.contact-input:focus { border-color: var(--navy); }
.contact-textarea { resize: vertical; min-height: 160px; }
.contact-submit { align-self: flex-start; font-family: 'Inter', system-ui, sans-serif; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; background: var(--navy); color: #fff; border: none; padding: 0.7rem 1.8rem; cursor: pointer; transition: background 0.2s; }
.contact-submit:hover { background: var(--orange); }
.contact-success { margin-top: 2rem; padding: 1.25rem 1.5rem; background: #f0f7f2; border-left: 3px solid var(--success); font-family: 'Source Serif 4', Georgia, serif; color: var(--success); }
.contact-error { font-family: 'Inter', system-ui, sans-serif; font-size: 0.85rem; color: var(--danger); margin: 0; }
@media (max-width: 680px) {
  .about-hero-img { height: 340px; }
  .about-hero-quote p { font-size: 1.25rem; }
  .about-article-title { font-size: 2rem; }
  .about-article { padding: 1.5rem 1rem 3rem; }
}

/* ============================================================
   FLASH MESSAGES
   ============================================================ */

.flash-messages { padding: 1rem 0 0; }
.flash {
  padding: 0.7rem 1rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  border-left: 3px solid;
}
.flash--success { background: #eaf5ee; border-color: var(--success); color: var(--success); }
.flash--error   { background: #fdecea; border-color: var(--danger);  color: var(--danger); }

/* ============================================================
   EMPTY STATE
   ============================================================ */

.empty-state {
  grid-column: 1 / -1;
  color: var(--muted);
  font-style: italic;
  padding: 3rem 0;
  font-family: 'Inter', system-ui, sans-serif;
}

.empty-page { text-align: center; padding: 6rem 0; }
.empty-page-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 5rem;
  font-weight: 900;
  color: var(--rule-dark);
}
.empty-page-text { color: var(--muted); margin: 1rem 0 2rem; font-family: 'Inter', system-ui, sans-serif; }

/* ============================================================
   NEWSLETTER BAND
   ============================================================ */

.newsletter-band {
  background-color: var(--navy);
  padding: 4rem 2rem;
}

.newsletter-band-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 3rem;
}

.newsletter-logo {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  opacity: 0.9;
}

.newsletter-band-text {
  flex: 1;
}

.newsletter-band-heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.7rem;
  font-weight: 700;
  font-style: italic;
  color: #fff;
  margin-bottom: 0.5rem;
}

.newsletter-band-sub {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
}

.newsletter-band-form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex-shrink: 0;
  width: 280px;
}

.newsletter-band-input {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  padding: 0.6rem 0.9rem;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 0.9rem;
  border-radius: 2px;
  outline: none;
  transition: border-color 0.15s;
}
.newsletter-band-input::placeholder { color: rgba(255,255,255,0.35); }
.newsletter-band-input:focus { border-color: rgba(255,255,255,0.5); }

.newsletter-band-btn {
  background: var(--orange);
  color: #fff;
  border: none;
  padding: 0.7rem 1.2rem;
  font-family: 'Libre Franklin', system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.15s;
}
.newsletter-band-btn:hover { background: #a33810; }

@media (max-width: 900px) {
  .newsletter-band-inner { flex-direction: column; text-align: center; gap: 1.5rem; }
  .newsletter-band-form { width: 100%; max-width: 360px; }
}

/* ============================================================
   FOOTER — dark navy, 3-column (The Critic / LRB style)
   ============================================================ */

.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.65);
  padding: 3rem 0 0;
  margin-top: 0;
  font-family: 'Inter', system-ui, sans-serif;
  position: relative;
  overflow: hidden;
}
.site-footer::after {
  content: '';
  position: absolute;
  right: -5%;
  bottom: -20%;
  width: 420px;
  height: 420px;
  background: url('/static/hermes.jpg') center / cover no-repeat;
  border-radius: 50%;
  opacity: 0.08;
  filter: grayscale(100%);
  pointer-events: none;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.footer-col-heading {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1.2rem;
}

.footer-col-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col-links a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  transition: color 0.15s;
}
.footer-col-links a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
}

.footer-bottom-left {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.footer-logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  font-style: italic;
}
.footer-logo:hover { color: rgba(255,255,255,0.75); }

.footer-copy {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.3);
}

.footer-top-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.55);
  transition: all 0.15s;
  flex-shrink: 0;
}
.footer-top-btn:hover {
  border-color: rgba(255,255,255,0.6);
  color: #fff;
  background: rgba(255,255,255,0.08);
}

#secretAdminBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  font-size: 0.8rem;
  color: rgba(0,0,0,0.15);
  text-decoration: none;
  user-select: none;
  z-index: 9999;
  line-height: 1;
}
#secretAdminBtn:hover { color: rgba(0,0,0,0.3); }

.footer-bottom-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-social {
  display: flex;
  gap: 0.5rem;
}

.social-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.55);
  transition: all 0.15s;
  flex-shrink: 0;
}
.social-icon:hover {
  border-color: rgba(255,255,255,0.6);
  color: #fff;
  background: rgba(255,255,255,0.08);
}
.footer-admin-btn {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
}

/* ============================================================
   ADMIN (unchanged)
   ============================================================ */

.admin-body { background: #f0f2f5; font-family: 'Inter', system-ui, sans-serif; }

.admin-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 100vh;
}

.admin-sidebar {
  background: var(--navy);
  color: #fff;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}

.admin-brand {
  display: block;
  padding: 1.5rem 1.2rem 1.2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  text-decoration: none;
}
.admin-brand-name {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}
.admin-brand-sub {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-top: 0.2rem;
}

.admin-nav { flex: 1; padding: 1rem 0; }
.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1.2rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: all 0.12s;
}
.admin-nav-link:hover, .admin-nav-link.active { background: rgba(255,255,255,0.1); color: #fff; }
.admin-nav-icon { font-size: 0.45rem; opacity: 0.5; }
.admin-sidebar-footer { border-top: 1px solid rgba(255,255,255,0.1); padding: 0.5rem 0; }
.admin-nav-link--logout { color: rgba(255,100,100,0.7); }
.admin-nav-link--logout:hover { color: #ff8080; background: rgba(255,0,0,0.08); }

.admin-main { display: flex; flex-direction: column; min-width: 0; }
.admin-topbar {
  background: #fff;
  border-bottom: 1px solid #dde1e8;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 10;
}
.admin-page-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
}
.topbar-actions { display: flex; gap: 0.6rem; align-items: center; }
.admin-content { padding: 2rem; flex: 1; }

.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 2rem; }
.stat-card { background: #fff; border: 1px solid #dde1e8; padding: 1.5rem 1.5rem 1.2rem; border-top: 3px solid var(--navy); }
.stat-number { display: block; font-family: 'Playfair Display', Georgia, serif; font-size: 2.5rem; font-weight: 700; color: var(--navy); line-height: 1; margin-bottom: 0.3rem; }
.stat-label { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: #8f8e84; }

.admin-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: start; }
.admin-two-col--narrow { grid-template-columns: 420px 420px; }
.admin-panel { background: #fff; border: 1px solid #dde1e8; }
.admin-panel--form { padding: 1.5rem; }
.panel-header { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.2rem; border-bottom: 1px solid #dde1e8; }
.panel-title { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy); }
.panel-link { font-size: 0.78rem; color: var(--navy); }

.admin-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.admin-table th { background: #f8f9fb; border-bottom: 1px solid #dde1e8; padding: 0.6rem 1rem; text-align: left; font-weight: 600; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: #8f8e84; }
.admin-table td { padding: 0.65rem 1rem; border-bottom: 1px solid #eef0f4; vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: #fafbfc; }
.td-title { max-width: 320px; }
.td-title-link { color: #2c2a27; font-weight: 500; }
.td-title-link:hover { color: var(--orange); }
.td-date { white-space: nowrap; color: #8f8e84; }
.td-actions { white-space: nowrap; }
.td-center { text-align: center; }
.td-url { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.td-empty { color: #8f8e84; font-style: italic; padding: 1.5rem 1rem; text-align: center; }

.btn { display: inline-block; font-family: 'Inter', system-ui, sans-serif; font-size: 0.82rem; font-weight: 600; padding: 0.55rem 1.1rem; cursor: pointer; border: none; text-decoration: none; transition: all 0.12s; letter-spacing: 0.03em; }
.btn--primary   { background: var(--navy); color: #fff; }
.btn--primary:hover { background: #0d1f36; color: #fff; }
.btn--secondary { background: #fff; color: var(--navy); border: 1px solid #a8a49c; }
.btn--secondary:hover { background: var(--navy); color: #fff; }
.btn--ghost     { background: transparent; color: #8f8e84; border: 1px solid #d4d0c9; }
.btn--ghost:hover { background: #f7f5f0; color: #2c2a27; }
.btn--sm        { font-size: 0.75rem; padding: 0.35rem 0.8rem; }
.btn--full      { width: 100%; text-align: center; }

.tbl-btn { display: inline-block; font-family: 'Inter', system-ui, sans-serif; font-size: 0.72rem; font-weight: 600; color: var(--navy); background: none; border: 1px solid #dde1e8; padding: 0.25rem 0.6rem; cursor: pointer; margin-right: 0.3rem; text-decoration: none; }
.tbl-btn:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.tbl-btn--danger { color: var(--danger); }
.tbl-btn--danger:hover { background: var(--danger); border-color: var(--danger); color: #fff; }
.tbl-btn--img-ok { color: #2a7a2a; border-color: #b8ddb8; }
.tbl-btn--img-ok:hover { background: #2a7a2a; border-color: #2a7a2a; color: #fff; }
.tbl-btn--img-missing { color: #999; border-color: #ddd; border-style: dashed; }
.tbl-btn--img-missing:hover { background: #666; border-color: #666; color: #fff; border-style: solid; }
.star-btn { background: none; border: none; font-size: 1.1rem; cursor: pointer; color: #d4d0c9; padding: 0; line-height: 1; }
.star-btn--on { color: #c9a84c; }
.star-btn:hover { color: #c9a84c; }

.admin-form { display: flex; flex-direction: column; gap: 1.2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.35rem; }
.form-group--check { flex-direction: row; align-items: center; gap: 0.6rem; }
.form-label { font-size: 0.78rem; font-weight: 600; color: var(--navy); }
.required { color: var(--danger); }
.form-optional { color: #8f8e84; font-weight: 400; }
.form-input, .form-select, .form-textarea { font-family: 'Inter', system-ui, sans-serif; font-size: 0.88rem; color: #2c2a27; background: #fff; border: 1px solid #c8cdd8; padding: 0.55rem 0.75rem; outline: none; width: 100%; transition: border-color 0.12s; box-sizing: border-box; }
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--navy); }
.form-select, select.form-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231e3a5f' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.2rem;
  cursor: pointer;
}
.form-input--sm { width: 200px; }
.form-select--sm { width: 160px; }
.form-textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.form-hint { font-size: 0.72rem; color: #8f8e84; line-height: 1.5; }


/* Rich text editor */
.rte-toolbar { display: flex; align-items: center; gap: 2px; padding: 0.35rem 0.5rem; background: #f3f4f6; border: 1px solid #c8cdd8; border-bottom: none; }
.rte-btn { background: none; border: 1px solid transparent; padding: 0.2rem 0.55rem; font-size: 0.82rem; cursor: pointer; color: #2c2a27; border-radius: 3px; line-height: 1.4; }
.rte-btn:hover { background: #e4e6ec; border-color: #b0b5c0; }
.rte-sep { width: 1px; height: 18px; background: #c8cdd8; margin: 0 4px; }
div.rte-editor { min-height: 260px; line-height: 1.7; overflow-y: auto; word-break: break-word; }
div.rte-editor:focus { border-color: var(--navy); outline: none; }
div.rte-editor:empty:before { content: attr(data-placeholder); color: #a0a0a0; pointer-events: none; }
div.rte-editor a { color: var(--navy); text-decoration: underline; }
.check-label { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; cursor: pointer; }
.form-actions { display: flex; gap: 0.75rem; align-items: center; padding-top: 0.5rem; }
.panel-filters { display: flex; justify-content: space-between; align-items: center; padding: 0.8rem 1rem; border-bottom: 1px solid #dde1e8; background: #f8f9fb; }
.panel-section { padding: 1.25rem 1.25rem 0; }
.panel-section--bordered { border-bottom: 1px solid #dde1e8; padding-bottom: 1.25rem; margin-bottom: 0.5rem; }
.panel-section-heading { font-size: 0.85rem; font-weight: 700; color: var(--navy); margin: 0 0 0.35rem; text-transform: uppercase; letter-spacing: 0.04em; }
.panel-section-desc { font-size: 0.8rem; color: #666; margin: 0 0 0.9rem; line-height: 1.5; }
.keyword-add-form { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; }
.keyword-add-form .form-input { width: 240px; }
.keyword-add-form .form-select { width: 220px; }
.keyword-cat-heading { font-size: 0.78rem; font-weight: 700; color: var(--navy); text-transform: uppercase; letter-spacing: 0.05em; margin: 0 0 0.5rem; }
.kw-chip { font-family: 'Inter', monospace; font-size: 0.8rem; background: #eef0f5; color: var(--navy); padding: 0.15rem 0.5rem; border-radius: 2px; }
.filter-form { display: flex; gap: 0.5rem; align-items: center; }
.filter-count { font-size: 0.75rem; color: #8f8e84; }
.admin-pagination { display: flex; gap: 1rem; align-items: center; justify-content: center; padding: 1rem; border-top: 1px solid #dde1e8; font-size: 0.82rem; color: #8f8e84; }
.badge { display: inline-block; font-size: 0.65rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.15rem 0.45rem; margin-right: 0.3rem; }
.badge--featured { background: #fef8e7; color: #c9a84c; border: 1px solid #c9a84c; }
.badge--active   { background: #eaf5ee; color: #1e6a45; border: 1px solid #1e6a45; }
.badge--inactive { background: #f7f7f7; color: #8f8e84; border: 1px solid #d4d0c9; }

.login-body { background: #f0f2f5; display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.login-wrap { width: 100%; max-width: 380px; padding: 2rem; }
.login-card { background: #fff; border-top: 4px solid var(--navy); padding: 2.5rem; }
.login-brand { display: block; font-family: 'Playfair Display', Georgia, serif; font-size: 1.6rem; font-weight: 900; color: var(--navy); margin-bottom: 0.2rem; text-decoration: none; }
.login-sub { font-family: 'Inter', system-ui, sans-serif; font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: #8f8e84; margin-bottom: 1.8rem; }
.login-form { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.5rem; }
.login-hint { font-family: 'Inter', system-ui, sans-serif; font-size: 0.72rem; color: #8f8e84; margin-top: 1rem; text-align: center; }
.login-hint code { background: #f0f2f5; padding: 0.1rem 0.3rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-content { border-right: none; border-bottom: 1px solid var(--rule); padding: 1.5rem; }
  .hero-img-placeholder { min-height: 280px; }
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .admin-two-col { grid-template-columns: 1fr; }
  .admin-two-col--narrow { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-inner { display: none; }
}

@media (max-width: 640px) {
  .wide-container { padding: 0 1rem; }
  .page-article .article-page { padding-left: 0.75rem; padding-right: 0.75rem; }
  .site-logo { font-size: 2.4rem; }
  .header-top-inner { justify-content: center; }
  .header-tagline { display: none; }
  .article-grid { grid-template-columns: 1fr; gap: 1%; }
  .article-grid { margin-bottom: 1rem; }
  .site-main { padding-bottom: 3rem; }
  .hero-title { font-size: 1.7rem; }
  .article-title { font-size: 1.9rem; }
  .footer-cols { grid-template-columns: 1fr; gap: 1.5rem; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { position: relative; height: auto; }
  .stats-row { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  [data-callout] { display: none !important; }
  .page-article .related-section .article-grid { margin-left: 2%; margin-right: 2%; }
  .header-search-btn { display: none; }
  .header-top { padding: 0.35rem 0; border-bottom: 1px solid var(--orange); }
  .site-logo { font-size: 1.5rem; }
  .logo-icon { height: 30px; width: 30px; }
  .main-nav { display: none; }
  .header-top-inner { justify-content: center; position: relative; }
  .header-hamburger-btn { left: 0; }
  .header-search-btn { display: none; }
}

/* ============================================================
   ARCHIVE
   ============================================================ */
.archive-page { max-width: 860px; margin: 0 auto; padding: 2rem 0 6rem; }
.archive-hero { border-bottom: 2px solid #000; padding-bottom: 1.5rem; margin-bottom: 2rem; text-align: center; }
.archive-hero-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.4rem; }
.archive-back { font-family: 'Inter', system-ui, sans-serif; font-size: 0.78rem; font-weight: 600; color: var(--muted); text-decoration: none; display: block; text-align: left; margin-bottom: 0.75rem; }
.archive-back:hover { color: var(--navy); }
.archive-title { font-family: 'Playfair Display', Georgia, serif; font-size: 2.4rem; font-weight: 900; color: var(--navy); margin: 0 0 0.4rem; }
.archive-subtitle { font-family: 'Source Serif 4', Georgia, serif; font-size: 1rem; color: var(--muted); margin: 0; }
.archive-empty { font-family: 'Inter', system-ui, sans-serif; color: var(--muted); padding: 2rem 0; }

/* Archive index grid */
.archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: #e2e5ec; border: 1px solid #e2e5ec; }
.archive-month-card { background: #fff; padding: 1.25rem 1.5rem; text-decoration: none; display: flex; flex-direction: column; gap: 0.3rem; transition: background 0.12s; }
.archive-month-card:hover { background: #f5f6f9; }
.archive-month-label { font-family: 'Playfair Display', Georgia, serif; font-size: 1.1rem; font-weight: 700; color: var(--navy); }
.archive-month-count { font-family: 'Inter', system-ui, sans-serif; font-size: 0.78rem; color: var(--muted); }

/* Archive month view */
.archive-day-heading { font-family: 'Inter', system-ui, sans-serif; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #000; padding: 1.25rem 0 0.6rem; border-top: 1px solid #e2e5ec; margin-top: 0.5rem; text-align: center; }
.archive-day-heading:first-of-type { border-top: none; margin-top: 0; }
.archive-list { display: flex; flex-direction: column; }
.archive-row { display: grid; grid-template-columns: 100px 1fr; gap: 1rem; padding: 0.75rem 0.5rem; border-bottom: 1px solid #f0f0f0; align-items: flex-start; transition: background-color 0.2s ease; }
.archive-row:hover { background-color: rgba(191, 67, 22, 0.12); }
.archive-row-thumb { display: block; width: 100px; height: 65px; overflow: hidden; flex-shrink: 0; }
.archive-row-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.archive-row-body { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; overflow: hidden; }
.archive-row-title { font-family: 'Playfair Display', Georgia, serif; font-size: 1.15rem; font-weight: 700; color: var(--text); text-decoration: none; line-height: 1.3; word-break: break-word; overflow-wrap: break-word; }
.archive-row-title:hover { color: var(--orange); text-decoration: underline; }
.archive-row-meta { font-family: 'Inter', system-ui, sans-serif; font-size: 0.72rem; color: var(--muted); margin: 0; }

@media (max-width: 640px) {
  .archive-grid { grid-template-columns: repeat(2, 1fr); }
  .archive-row { grid-template-columns: 1fr; }
  .archive-row-thumb { width: 100%; height: 140px; }
}

/* ============================================================
   NAV BADGE
   ============================================================ */
.nav-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; background: var(--orange); color: #fff; font-size: 0.65rem; font-weight: 700; border-radius: 9px; margin-left: 0.4rem; line-height: 1; }

/* ============================================================
   REVIEW PAGE
   ============================================================ */
.review-tabs { display: flex; gap: 0.25rem; }
.review-tab { font-family: 'Inter', system-ui, sans-serif; font-size: 0.8rem; font-weight: 600; padding: 0.4rem 1rem; border: 1px solid #d1d5de; background: #f5f6f8; color: var(--muted); cursor: pointer; transition: all 0.12s; }
.review-tab:hover { background: #eaecf1; color: var(--navy); }
.review-tab.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.review-tab-count { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 4px; background: rgba(255,255,255,0.25); border-radius: 9px; font-size: 0.65rem; font-weight: 700; margin-left: 0.35rem; }
.review-tab.active .review-tab-count { background: rgba(255,255,255,0.3); }

.review-toolbar { display: flex; align-items: center; gap: 1rem; padding: 0.65rem 1rem; background: #f5f6f9; border-bottom: 2px solid #e2e5ec; }
.review-select-all-label { display: flex; align-items: center; gap: 0.45rem; font-family: 'Inter', system-ui, sans-serif; font-size: 0.8rem; font-weight: 600; color: var(--navy); cursor: pointer; }
.review-toolbar .rev-btn--publish:disabled,
.review-toolbar .rev-btn--trash:disabled { opacity: 0.4; cursor: not-allowed; }
.review-list { display: flex; flex-direction: column; gap: 0; }
.review-card { display: grid; grid-template-columns: 90px 1fr auto; align-items: center; gap: 1rem; padding: 0.85rem 1rem; border-bottom: 1px solid #e8eaef; background: #fff; transition: background 0.1s; }
.review-card--checkable { grid-template-columns: 24px 90px 1fr auto; }
.review-card-check { display: flex; align-items: center; justify-content: center; }
.review-card-check input { width: 15px; height: 15px; cursor: pointer; accent-color: var(--navy); }
.review-card:hover { background: #f9fafb; }
.review-card--trashed { opacity: 0.7; }

.review-card-thumb { width: 90px; height: 58px; overflow: hidden; background: #e8eaef; flex-shrink: 0; }
.review-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.review-card-thumb--empty { background: #e8eaef; }

.review-card-body { min-width: 0; }
.review-card-title { font-family: 'Inter', system-ui, sans-serif; font-size: 0.9rem; font-weight: 600; color: var(--navy); text-decoration: none; line-height: 1.35; display: block; margin-bottom: 0.25rem; }
.review-card-title:hover { text-decoration: underline; }
.review-card-meta { font-family: 'Inter', system-ui, sans-serif; font-size: 0.72rem; color: var(--muted); display: flex; align-items: center; flex-wrap: wrap; gap: 0.25rem; margin-bottom: 0.3rem; }
.review-meta-sep { color: #ccc; }
.review-card-summary { font-family: 'Source Serif 4', Georgia, serif; font-size: 0.8rem; color: var(--muted); margin: 0; line-height: 1.45; }

.review-card-actions { display: flex; flex-direction: column; gap: 0.3rem; align-items: flex-end; flex-shrink: 0; }
.rev-btn { font-family: 'Inter', system-ui, sans-serif; font-size: 0.72rem; font-weight: 600; padding: 0.3rem 0.75rem; border: none; cursor: pointer; text-decoration: none; display: inline-block; text-align: center; white-space: nowrap; transition: opacity 0.12s; }
.rev-btn:hover { opacity: 0.82; }
.rev-btn--publish { background: #1a7a3c; color: #fff; }
.rev-btn--trash { background: #f0f0f0; color: #c0392b; border: 1px solid #e0e0e0; }
.rev-btn--delete { background: #c0392b; color: #fff; }
.rev-btn--unpublish { background: #f0f0f0; color: var(--navy); border: 1px solid #e0e0e0; }
.rev-btn--edit { background: transparent; color: var(--navy); border: 1px solid #c8cdd8; }
.rev-btn--llm { background: #f5f0ff; color: #6b3fa0; border: 1px solid #c9b8e8; }
.rev-btn--llm:hover { background: #ede5ff; }

.llm-result {
  margin-top: 0.6rem;
  background: #f9f7ff;
  border: 1px solid #c9b8e8;
  border-radius: 4px;
  padding: 0.6rem 0.75rem;
}
.llm-result-text {
  font-size: 0.85rem;
  color: var(--text);
  margin: 0 0 0.5rem;
  line-height: 1.6;
  white-space: pre-wrap;
}
.llm-result-actions { display: flex; gap: 0.4rem; }

.review-empty { padding: 3rem 1rem; text-align: center; font-family: 'Inter', system-ui, sans-serif; font-size: 0.9rem; color: var(--muted); background: #fff; }

/* Category filter bar */
.filter-btn {
  height: 32px;
  border: 1px solid var(--rule-dark);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-radius: 3px;
  transition: all 0.15s;
  padding: 0 0.65rem;
  font-family: 'Libre Franklin', system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.filter-btn.active, .filter-btn:hover {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.filter-bar {
  display: none;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.6rem 0 0.25rem;
  border-top: 1px solid var(--rule);
  margin-top: 0.5rem;
}
.filter-bar.open { display: flex; }
.filter-pill {
  font-family: 'Libre Franklin', system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--rule-dark);
  border-radius: 3px;
  padding: 0.3rem 0.7rem;
  cursor: pointer;
  transition: all 0.15s;
}
.filter-pill:hover {
  border-color: var(--navy);
  color: var(--navy);
}
.filter-pill.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.grid-card.cat-hidden { display: none !important; }

/* System prompt callout */
.system-prompt {
  position: relative;
  background: #f3f4f6;
  border: 1px solid #e2e4e8;
  border-left: 3px solid var(--navy);
  border-radius: 5px;
  padding: 1rem 3rem 1rem 1.1rem;
  margin: 1.5rem 0;
  font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', 'Menlo', monospace;
  font-size: 0.82rem;
  line-height: 1.65;
  color: #2a2d35;
  white-space: pre-wrap;
  word-break: break-word;
}
.system-prompt::before {
  content: 'System Prompt';
  display: block;
  font-family: 'Libre Franklin', system-ui, sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.6rem;
  opacity: 0.7;
}
.system-prompt-copy {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  background: transparent;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  padding: 0.25rem 0.3rem;
  cursor: pointer;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  line-height: 1;
}
.system-prompt-copy:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.system-prompt-copy.copied {
  background: #16a34a;
  border-color: #16a34a;
  color: #fff;
}

/* ============================================================
   HERO CAROUSEL
   ============================================================ */

.hero-carousel {
  position: relative;
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}

/* Each slide stacks; active slide is in normal flow (sets height) */
.hero-carousel .hero {
  border-bottom: none;
  margin-bottom: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
  position: absolute;
  top: 0; left: 0;
  width: 100%;
}
.hero-carousel .hero.active {
  opacity: 1;
  pointer-events: auto;
  position: relative;
}

/* Prev / Next arrows */
.hero-carousel-prev,
.hero-carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--navy);
  opacity: 0.55;
  transition: opacity 0.15s;
}
.hero-carousel-prev:hover,
.hero-carousel-next:hover {
  opacity: 1;
}
.hero-carousel-prev { left: 0.5rem; }
.hero-carousel-next { right: 0.5rem; }
.hero-carousel-dots { display: none; }

@media (max-width: 900px) {
  .hero-carousel-prev { left: 0.5rem; }
  .hero-carousel-next { right: 0.5rem; }
}

/* ── Hero carousel text drop-in ─────────────────────────────────────────── */
@keyframes heroDropIn {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-slide.active .card-category {
  animation: heroDropIn 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
  animation-delay: 0.2s;
}

.hero-slide.active .hero-title {
  animation: heroDropIn 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
  animation-delay: 0.32s;
}

.hero-slide.active .hero-excerpt {
  animation: heroDropIn 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
  animation-delay: 0.5s;
}

/* ============================================================
   SETTINGS MENU + DARK MODE
   ============================================================ */

/* ── Header layout grouping ── */
.header-right-group {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.header-right-group .header-search-btn {
  position: static;
  transform: none;
}

/* ── Settings toggle button ── */
.settings-menu {
  position: relative;
}
.settings-toggle {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.6rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Libre Franklin', system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  border-radius: 3px;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
.settings-toggle:hover,
.settings-menu:hover .settings-toggle {
  color: var(--text);
  background: rgba(0,0,0,0.05);
}

/* ── Dropdown panel ── */
.settings-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  min-width: 140px;
  overflow: hidden;
  z-index: 500;
}
.settings-menu:hover .settings-dropdown,
.settings-dropdown.open {
  display: block;
}
.settings-opt {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.65rem 1rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Libre Franklin', system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text);
  text-align: left;
  transition: background 0.12s, color 0.12s;
}
.settings-opt:hover {
  background: rgba(191, 67, 22, 0.07);
  color: var(--orange);
}
.settings-opt.active {
  color: var(--orange);
  font-weight: 600;
}
.settings-opt.active::after {
  content: '✓';
  margin-left: auto;
  font-size: 0.7rem;
}

/* ============================================================
   DARK MODE  — applied via [data-theme="dark"] on <html>
   ============================================================ */

[data-theme="dark"] {
  --bg:        #111111;
  --text:      #dcdcdc;
  --muted:     #888888;
  --rule:      #2c2c2c;
  --rule-dark: #3a3a3a;
  --orange:    #d4602a;
  --navy:      #6b9fd4;
  --placeholder-bg: #1c2535;
}

[data-theme="dark"] body {
  background: #111111;
  color: var(--text);
}

/* Header */
[data-theme="dark"] .site-header {
  background: rgba(14, 14, 14, 0.92);
  border-bottom-color: var(--rule);
}
[data-theme="dark"] .header-top {
  border-bottom-color: var(--rule);
}
[data-theme="dark"] .nav-icon-btn {
  color: var(--text);
}
[data-theme="dark"] .nav-icon-btn:hover {
  background: rgba(255,255,255,0.07);
  color: var(--orange);
}
[data-theme="dark"] .site-logo {
  color: var(--text);
}
[data-theme="dark"] .logo-second { color: var(--muted); }

/* Nav strip */
[data-theme="dark"] .main-nav {
  background: rgba(14,14,14,0.92);
  border-bottom-color: var(--rule);
}
[data-theme="dark"] .nav-links a {
  color: var(--text);
  border-right-color: var(--rule);
}
[data-theme="dark"] .nav-links li:first-child a {
  border-left-color: var(--rule);
}
[data-theme="dark"] .nav-links a:hover,
[data-theme="dark"] .nav-item-dropdown:hover > a {
  background: var(--orange);
  color: #fff !important;
}
[data-theme="dark"] .nav-links a.active {
  color: var(--text);
  background: transparent;
}
[data-theme="dark"] .nav-dropdown {
  background: #1a1a1a;
  border-color: var(--rule);
  box-shadow: 0 4px 14px rgba(0,0,0,0.5);
}
[data-theme="dark"] .nav-dropdown li a {
  color: var(--text);
}
[data-theme="dark"] .nav-dropdown li a:hover {
  background: var(--orange);
  color: #fff;
}

/* Search bar */
[data-theme="dark"] .search-bar {
  background: rgba(26, 26, 26, 0.98);
  border-bottom-color: var(--rule);
}
[data-theme="dark"] .search-bar-input {
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border-color: var(--rule);
}
[data-theme="dark"] .search-bar-input::placeholder { color: var(--muted); }

/* Settings dropdown */
[data-theme="dark"] .settings-toggle {
  color: var(--muted);
}
[data-theme="dark"] .settings-toggle:hover,
[data-theme="dark"] .settings-menu:hover .settings-toggle {
  color: var(--text);
  background: rgba(255,255,255,0.07);
}
[data-theme="dark"] .settings-dropdown {
  background: #1e1e1e;
  border-color: var(--rule);
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
}
[data-theme="dark"] .settings-opt {
  color: var(--text);
}
[data-theme="dark"] .settings-opt:hover {
  background: rgba(212, 96, 42, 0.12);
  color: var(--orange);
}

/* Main content */
[data-theme="dark"] .site-main {
  background-color: #111111;
}
[data-theme="dark"] .article-page {
  background-color: #111111;
}
[data-theme="dark"] .related-section {
  background-color: #111111;
}

/* Hero */
[data-theme="dark"] .hero {
  background-color: rgba(255,255,255,0.02);
  border-bottom-color: var(--rule);
}
[data-theme="dark"] .hero:hover {
  background-color: rgba(212, 96, 42, 0.08);
}
[data-theme="dark"] .hero-carousel {
  border-bottom-color: var(--rule);
}
[data-theme="dark"] .hero-content {
  border-right-color: var(--rule);
}
[data-theme="dark"] .hero-title { color: var(--text); }
[data-theme="dark"] .hero-excerpt { color: var(--muted); }
[data-theme="dark"] .hero-source { color: var(--navy); }
[data-theme="dark"] .hero-date,
[data-theme="dark"] .hero-author { color: var(--muted); }
[data-theme="dark"] .hero-carousel-prev,
[data-theme="dark"] .hero-carousel-next { color: var(--text); opacity: 0.5; }
[data-theme="dark"] .hero-carousel-prev:hover,
[data-theme="dark"] .hero-carousel-next:hover { opacity: 1; }

/* Section headers */
[data-theme="dark"] .section-header {
  background: #111111;
  border-bottom-color: var(--rule);
}
[data-theme="dark"] .section-title { color: var(--text); }

/* Cards */
[data-theme="dark"] .grid-card {
  background-color: #111111;
}
[data-theme="dark"] .grid-card:hover {
  background-color: #1e1e1e;
}
[data-theme="dark"] .card-title { color: var(--text); }
[data-theme="dark"] .card-title-link:hover .card-title {
  color: var(--orange);
}
[data-theme="dark"] .card-summary { color: var(--muted); }
[data-theme="dark"] .card-source { color: var(--navy); }
[data-theme="dark"] .card-date,
[data-theme="dark"] .card-meta-sep { color: var(--muted); }
[data-theme="dark"] .card-img-placeholder,
[data-theme="dark"] .hero-img-placeholder { background: #1c2535; }
[data-theme="dark"] .card-category { color: var(--orange); }
[data-theme="dark"] .card-category:hover { color: #e07040; }

/* View toolbar & filter */
[data-theme="dark"] .view-toolbar {
  border-bottom-color: var(--rule);
  background: #111111;
}
[data-theme="dark"] .view-btn,
[data-theme="dark"] .filter-btn { color: var(--muted); border-color: var(--rule); }
[data-theme="dark"] .view-btn:hover,
[data-theme="dark"] .filter-btn:hover { color: #fff; background: rgba(212,96,42,0.5); border-color: var(--orange); }
[data-theme="dark"] .view-btn.active,
[data-theme="dark"] .filter-btn.active { background: var(--orange); color: #fff; border-color: var(--orange); }
[data-theme="dark"] .filter-bar {
  background: #111111;
  border-bottom-color: var(--rule);
}
[data-theme="dark"] .filter-pill {
  background: rgba(255,255,255,0.05);
  border-color: var(--rule);
  color: var(--muted);
}
[data-theme="dark"] .filter-pill:hover { color: var(--text); border-color: var(--text); }
[data-theme="dark"] .filter-pill.active {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
}
[data-theme="dark"] .month-picker {
  background: #1a1a1a;
  color: var(--text);
  border-color: var(--rule);
}

/* Article page */
[data-theme="dark"] .article-title { color: var(--text); }
[data-theme="dark"] .article-hero-img { filter: brightness(0.9); }
[data-theme="dark"] .byline-author { color: var(--text); }
[data-theme="dark"] .byline-source { color: var(--muted); }
[data-theme="dark"] .byline-date { color: var(--muted); }
[data-theme="dark"] .byline-sep { color: var(--rule-dark); }
[data-theme="dark"] .article-body p,
[data-theme="dark"] .article-content p { color: var(--text); }
[data-theme="dark"] .article-body h2,
[data-theme="dark"] .article-body h3,
[data-theme="dark"] .article-body h4 { color: var(--text); }
[data-theme="dark"] .article-body a { color: var(--navy); }
[data-theme="dark"] .article-body a:hover { color: var(--orange); }

/* System prompt — keep monospace style, adapt colours */
[data-theme="dark"] .system-prompt {
  background: #181c24;
  border-color: #2c3040;
  border-left-color: var(--navy);
  color: #b8c0cc;
}
[data-theme="dark"] .system-prompt::before {
  color: var(--navy);
}
[data-theme="dark"] .system-prompt-copy {
  border-color: #3a3f50;
  color: var(--muted);
}
[data-theme="dark"] .system-prompt-copy:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

/* Share buttons */
[data-theme="dark"] .tile-share .share-btn { color: var(--muted); }
[data-theme="dark"] .tile-share .share-btn:hover { color: var(--orange); }

/* Newsletter band */
[data-theme="dark"] .newsletter-band {
  background: #0d0d0d;
  border-top-color: var(--rule);
}
[data-theme="dark"] .newsletter-band-heading { color: var(--text); }
[data-theme="dark"] .newsletter-band-sub { color: var(--muted); }
[data-theme="dark"] .newsletter-band-input {
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border-color: var(--rule);
}
[data-theme="dark"] .newsletter-band-input::placeholder { color: var(--muted); }

/* Footer */
[data-theme="dark"] .site-footer {
  background: #0a0a0a;
  border-top-color: var(--rule);
}
[data-theme="dark"] .footer-copy,
[data-theme="dark"] .footer-tagline { color: var(--muted); }
[data-theme="dark"] .social-icon { color: var(--muted); }
[data-theme="dark"] .social-icon:hover { color: var(--text); }
[data-theme="dark"] .footer-top-btn { color: var(--muted); }
[data-theme="dark"] .footer-top-btn:hover { color: var(--text); }

/* Pagination */
[data-theme="dark"] .pagination-link { color: var(--navy); }
[data-theme="dark"] .pagination-info { color: var(--muted); }

/* CTA button */
[data-theme="dark"] .article-cta-btn {
  background: var(--navy);
  color: #fff;
}
[data-theme="dark"] .article-cta-btn:hover {
  background: #5a8fc4;
}

/* Flash messages */
[data-theme="dark"] .flash { background: #1e1e1e; border-color: var(--rule); color: var(--text); }

/* Mobile */
@media (max-width: 600px) {
  .settings-toggle { font-size: 0.65rem; padding: 0.3rem 0.45rem; }
}

/* ============================================================
   IBM 286 MODE — Green phosphor terminal aesthetic
   ============================================================ */

[data-theme="ibm286"] {
  --bg:            #0a0a0a;
  --text:          #33ff33;
  --muted:         #1a7a1a;
  --rule:          #0d3d0d;
  --rule-dark:     #1a5c1a;
  --orange:        #66ff66;
  --navy:          #66ff66;
  --placeholder-bg:#050505;
}

[data-theme="ibm286"],
[data-theme="ibm286"] html,
[data-theme="ibm286"] body,
[data-theme="ibm286"] .site-main { background: #0a0a0a !important; }

[data-theme="ibm286"] * {
  border-radius: 0 !important;
  box-shadow: none !important;
}

[data-theme="ibm286"] body {
  background: #0a0a0a;
  color: #33ff33;
  font-family: 'IBM Plex Mono', 'Courier New', monospace;
  letter-spacing: 0.03em;
}

/* Scanlines overlay */
[data-theme="ibm286"] body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(0,0,0,0.08) 0px,
    rgba(0,0,0,0.08) 1px,
    transparent 1px,
    transparent 3px
  );
  pointer-events: none;
  z-index: 99999;
}

/* Header */
[data-theme="ibm286"] .site-header {
  background: #050505;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid #1a5c1a;
}
[data-theme="ibm286"] .header-top { border-bottom-color: #0d3d0d; }
[data-theme="ibm286"] .logo-first  { color: #66ff66; font-family: 'IBM Plex Mono', monospace; text-transform: uppercase; }
[data-theme="ibm286"] .logo-second { color: #33ff33; font-family: 'IBM Plex Mono', monospace; text-transform: uppercase; }
[data-theme="ibm286"] .nav-icon-btn { color: #33ff33; }
[data-theme="ibm286"] .nav-icon-btn:hover { color: #66ff66; background: rgba(51,255,51,0.08); }

/* Nav */
[data-theme="ibm286"] .main-nav { background: #050505; border-bottom: 1px solid #1a5c1a; }
[data-theme="ibm286"] .nav-links a {
  color: #33ff33;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-right-color: #0d3d0d;
}
[data-theme="ibm286"] .nav-links li:first-child a { border-left-color: #0d3d0d; }
[data-theme="ibm286"] .nav-links a:hover,
[data-theme="ibm286"] .nav-item-dropdown:hover > a { background: #33ff33; color: #0a0a0a !important; }
[data-theme="ibm286"] .nav-links a.active { color: #33ff33; background: transparent; }
[data-theme="ibm286"] .nav-dropdown { background: #050505; border: 1px solid #1a5c1a; }
[data-theme="ibm286"] .nav-dropdown li a { color: #33ff33; font-family: 'IBM Plex Mono', monospace; font-size: 0.72rem; text-transform: uppercase; }
[data-theme="ibm286"] .nav-dropdown li a:hover { background: #33ff33; color: #0a0a0a; }

/* Search */
[data-theme="ibm286"] .search-bar { background: #050505; border-bottom: 1px solid #1a5c1a; }
[data-theme="ibm286"] .search-bar-input { background: #0a0a0a; border-color: #1a5c1a; color: #33ff33; font-family: 'IBM Plex Mono', monospace; text-transform: uppercase; }
[data-theme="ibm286"] .search-bar-input::placeholder { color: #1a5c1a; }
[data-theme="ibm286"] .search-bar-submit { background: #33ff33; color: #0a0a0a; font-family: 'IBM Plex Mono', monospace; text-transform: uppercase; border-color: #33ff33; }
[data-theme="ibm286"] .search-bar-close { color: #33ff33; }

/* Settings dropdown */
[data-theme="ibm286"] .settings-toggle { color: #33ff33; font-family: 'IBM Plex Mono', monospace; text-transform: uppercase; }
[data-theme="ibm286"] .settings-toggle:hover,
[data-theme="ibm286"] .settings-menu:hover .settings-toggle { color: #66ff66; background: rgba(51,255,51,0.08); }
[data-theme="ibm286"] .settings-dropdown { background: #050505; border-color: #1a5c1a; }
[data-theme="ibm286"] .settings-opt { color: #33ff33; font-family: 'IBM Plex Mono', monospace; text-transform: uppercase; font-size: 0.72rem; }
[data-theme="ibm286"] .settings-opt:hover { background: #33ff33; color: #0a0a0a; }
[data-theme="ibm286"] .settings-opt.active { color: #66ff66; font-weight: normal; }

/* Hero */
[data-theme="ibm286"] .hero { background: #050505; }
[data-theme="ibm286"] .hero:hover { background: #050505; }
[data-theme="ibm286"] .hero-carousel { border-bottom: 1px solid #1a5c1a; }
[data-theme="ibm286"] .hero-title { color: #66ff66; font-family: 'IBM Plex Mono', monospace; font-size: 2rem; line-height: 1.2; text-transform: uppercase; letter-spacing: 0.04em; }
[data-theme="ibm286"] .hero-excerpt { color: #33ff33; font-family: 'IBM Plex Mono', monospace; font-size: 0.88rem; text-transform: uppercase; letter-spacing: 0.03em; }
[data-theme="ibm286"] .hero-date,
[data-theme="ibm286"] .hero-author { color: #1a7a1a; font-family: 'IBM Plex Mono', monospace; text-transform: uppercase; }
[data-theme="ibm286"] .hero-source { color: #66ff66; font-family: 'IBM Plex Mono', monospace; }
[data-theme="ibm286"] .hero-carousel-prev,
[data-theme="ibm286"] .hero-carousel-next { color: #33ff33; }
[data-theme="ibm286"] .hero-carousel-prev:hover,
[data-theme="ibm286"] .hero-carousel-next:hover { color: #66ff66; }
[data-theme="ibm286"] .card-category { color: #66ff66; font-family: 'IBM Plex Mono', monospace; text-transform: uppercase; letter-spacing: 0.1em; }
[data-theme="ibm286"] .card-category:hover { color: #99ff99; }

/* Section header */
[data-theme="ibm286"] .section-header { background: #0a0a0a; border-bottom: 1px solid #1a5c1a; }
[data-theme="ibm286"] .section-title { color: #66ff66; font-family: 'IBM Plex Mono', monospace; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.15em; }

/* Cards */
[data-theme="ibm286"] .grid-card { background: #050505; border: 1px solid #0d3d0d; }
[data-theme="ibm286"] .grid-card:hover { background: #0d0d0d; border-color: #33ff33; }
[data-theme="ibm286"] .card-title { color: #66ff66; font-family: 'IBM Plex Mono', monospace; font-size: 0.88rem; text-transform: uppercase; letter-spacing: 0.04em; }
[data-theme="ibm286"] .card-title-link:hover .card-title { color: #99ff99; }
[data-theme="ibm286"] .card-summary { color: #33ff33; font-family: 'IBM Plex Mono', monospace; text-transform: uppercase; font-size: 0.78rem; }
[data-theme="ibm286"] .card-date,
[data-theme="ibm286"] .card-meta-sep { color: #1a7a1a; font-family: 'IBM Plex Mono', monospace; }
[data-theme="ibm286"] .card-source { color: #66ff66; font-family: 'IBM Plex Mono', monospace; }
[data-theme="ibm286"] .card-img-placeholder,
[data-theme="ibm286"] .hero-img-placeholder { background: #050505; border: 1px solid #0d3d0d; }

/* View toolbar */
[data-theme="ibm286"] .view-toolbar { background: #050505; border-color: #0d3d0d; }
[data-theme="ibm286"] .view-btn,
[data-theme="ibm286"] .filter-btn { color: #33ff33; border-color: #0d3d0d; }
[data-theme="ibm286"] .view-btn:hover,
[data-theme="ibm286"] .filter-btn:hover { background: #33ff33; color: #0a0a0a; border-color: #33ff33; }
[data-theme="ibm286"] .view-btn.active,
[data-theme="ibm286"] .filter-btn.active { background: #66ff66; color: #0a0a0a; border-color: #66ff66; }
[data-theme="ibm286"] .filter-bar { background: #050505; border-color: #0d3d0d; }
[data-theme="ibm286"] .filter-pill { background: #050505; border-color: #0d3d0d; color: #33ff33; font-family: 'IBM Plex Mono', monospace; text-transform: uppercase; font-size: 0.65rem; }
[data-theme="ibm286"] .filter-pill:hover { border-color: #66ff66; color: #66ff66; }
[data-theme="ibm286"] .filter-pill.active { background: #66ff66; color: #0a0a0a; border-color: #66ff66; }

/* Article page */
[data-theme="ibm286"] .page-article .site-main,
[data-theme="ibm286"] .article-page { background: #0a0a0a !important; border: none; }
[data-theme="ibm286"] .article-title { color: #66ff66; font-family: 'IBM Plex Mono', monospace; font-size: 1.6rem; text-transform: uppercase; letter-spacing: 0.04em; line-height: 1.3; }
[data-theme="ibm286"] .article-hero-img { filter: url(#ibm-2bit); image-rendering: pixelated; }
[data-theme="ibm286"] .byline-author { color: #66ff66; font-family: 'IBM Plex Mono', monospace; text-transform: uppercase; }
[data-theme="ibm286"] .byline-source,
[data-theme="ibm286"] .byline-date,
[data-theme="ibm286"] .byline-sep { color: #1a7a1a; font-family: 'IBM Plex Mono', monospace; }
[data-theme="ibm286"] .article-body p,
[data-theme="ibm286"] .article-content p { color: #33ff33; font-family: 'IBM Plex Mono', monospace; text-transform: uppercase; font-size: 0.88rem; line-height: 1.8; }
[data-theme="ibm286"] .article-body h2,
[data-theme="ibm286"] .article-body h3,
[data-theme="ibm286"] .article-body h4 { color: #66ff66; font-family: 'IBM Plex Mono', monospace; text-transform: uppercase; letter-spacing: 0.08em; }
[data-theme="ibm286"] .article-body a { color: #99ff99; text-decoration: underline; }
[data-theme="ibm286"] .article-body a:hover { color: #ccffcc; }

/* System prompt */
[data-theme="ibm286"] .system-prompt { background: #050505; border: 1px solid #0d3d0d; border-left: 3px solid #66ff66; color: #33ff33; font-family: 'IBM Plex Mono', monospace; }
[data-theme="ibm286"] .system-prompt::before { color: #66ff66; }
[data-theme="ibm286"] .system-prompt-copy { background: #0a0a0a; border-color: #0d3d0d; color: #33ff33; }
[data-theme="ibm286"] .system-prompt-copy:hover { background: #33ff33; color: #0a0a0a; }

/* Related / more-in section */
[data-theme="ibm286"] .related-section,
[data-theme="ibm286"] .page-article .related-section { background: #050505 !important; border-top: 1px solid #1a5c1a; }

/* White-background elements */
[data-theme="ibm286"] .section-header,
[data-theme="ibm286"] .event-promo-tile,
[data-theme="ibm286"] .event-promo-tile:hover,
[data-theme="ibm286"] .archive-month-card,
[data-theme="ibm286"] .archive-month-card:hover,
[data-theme="ibm286"] .bulletin-input,
[data-theme="ibm286"] .contact-input,
[data-theme="ibm286"] .form-input,
[data-theme="ibm286"] .form-select,
[data-theme="ibm286"] .form-textarea,
[data-theme="ibm286"] .login-card,
[data-theme="ibm286"] .stat-card,
[data-theme="ibm286"] .admin-panel,
[data-theme="ibm286"] .review-card,
[data-theme="ibm286"] .month-picker { background: #0a0a0a !important; color: #33ff33 !important; border-color: #0d3d0d !important; }

/* Share buttons */
[data-theme="ibm286"] .tile-share .share-btn { color: #1a7a1a; }
[data-theme="ibm286"] .tile-share .share-btn:hover { color: #66ff66; }

/* Newsletter */
[data-theme="ibm286"] .newsletter-band { background: #050505; border-top: 1px solid #1a5c1a; }
[data-theme="ibm286"] .newsletter-band-heading { color: #66ff66; font-family: 'IBM Plex Mono', monospace; text-transform: uppercase; letter-spacing: 0.1em; }
[data-theme="ibm286"] .newsletter-band-sub { color: #33ff33; font-family: 'IBM Plex Mono', monospace; text-transform: uppercase; font-size: 0.82rem; }
[data-theme="ibm286"] .newsletter-band-input { background: #0a0a0a; border-color: #1a5c1a; color: #33ff33; font-family: 'IBM Plex Mono', monospace; }
[data-theme="ibm286"] .newsletter-band-input::placeholder { color: #1a7a1a; }
[data-theme="ibm286"] .newsletter-band-btn { background: #33ff33; color: #0a0a0a; font-family: 'IBM Plex Mono', monospace; text-transform: uppercase; border-color: #33ff33; }
[data-theme="ibm286"] .newsletter-band-btn:hover { background: #66ff66; }

/* Footer */
[data-theme="ibm286"] .site-footer { background: #050505; border-top: 1px solid #1a5c1a; }
[data-theme="ibm286"] .footer-col-heading { color: #66ff66; font-family: 'IBM Plex Mono', monospace; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.72rem; }
[data-theme="ibm286"] .footer-col-links a { color: #33ff33; font-family: 'IBM Plex Mono', monospace; text-transform: uppercase; font-size: 0.78rem; }
[data-theme="ibm286"] .footer-col-links a:hover { color: #66ff66; }
[data-theme="ibm286"] .footer-copy,
[data-theme="ibm286"] .footer-tagline { color: #1a7a1a; font-family: 'IBM Plex Mono', monospace; text-transform: uppercase; font-size: 0.72rem; }
[data-theme="ibm286"] .footer-logo { color: #66ff66; font-family: 'IBM Plex Mono', monospace; text-transform: uppercase; }
[data-theme="ibm286"] .social-icon { color: #33ff33; }
[data-theme="ibm286"] .social-icon:hover { color: #66ff66; }
[data-theme="ibm286"] .footer-top-btn { color: #33ff33; }
[data-theme="ibm286"] .footer-top-btn:hover { color: #66ff66; }

/* Pagination */
[data-theme="ibm286"] .pagination-link { color: #66ff66; font-family: 'IBM Plex Mono', monospace; }
[data-theme="ibm286"] .pagination-info { color: #33ff33; font-family: 'IBM Plex Mono', monospace; }

/* Flash */
[data-theme="ibm286"] .flash { background: #050505; border-color: #1a5c1a; color: #33ff33; font-family: 'IBM Plex Mono', monospace; }

/* CTA */
[data-theme="ibm286"] .article-cta-btn { background: #33ff33; color: #0a0a0a; font-family: 'IBM Plex Mono', monospace; text-transform: uppercase; }
[data-theme="ibm286"] .article-cta-btn:hover { background: #66ff66; }

/* 2-bit green images */
[data-theme="ibm286"] img {
  filter: url(#ibm-2bit);
  image-rendering: pixelated;
}

/* Typewriter cursor */
@keyframes ibmBlink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
.ibm-cursor {
  display: inline;
  animation: ibmBlink 0.65s step-end infinite;
  font-family: 'IBM Plex Mono', 'Courier New', monospace;
  color: #33ff33;
  margin-left: 1px;
}

/* Disable drop-in animation on hero in IBM mode (typewriter handles it) */
[data-theme="ibm286"] .hero-slide.active .hero-title,
[data-theme="ibm286"] .hero-slide.active .hero-excerpt { animation: none; }

/* ============================================================
   WARHOL — Andy Warhol pop art aesthetic
   ============================================================ */

[data-theme="warhol"] {
  --bg:        #FFFEF0;
  --text:      #000000;
  --muted:     #333333;
  --rule:      #000000;
  --rule-dark: #000000;
  --orange:    #FF2D7B;
  --navy:      #CC44FF;
  --placeholder-bg: #FFEE00;
}

[data-theme="warhol"] * { border-radius: 0 !important; }

[data-theme="warhol"] body {
  background: #FFFEF0;
  color: #000000;
  font-family: 'Inter', system-ui, sans-serif;
}

/* Header */
[data-theme="warhol"] .site-header {
  background: #000000;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 3px solid #FF2D7B;
}
[data-theme="warhol"] .header-top { border-bottom: 2px solid #333333; }
[data-theme="warhol"] .logo-first  { color: #FFEE00; font-family: 'Anton', Impact, sans-serif; text-transform: uppercase; }
[data-theme="warhol"] .logo-second { color: #FF2D7B; font-family: 'Anton', Impact, sans-serif; text-transform: uppercase; }
[data-theme="warhol"] .nav-icon-btn { color: #FFEE00; }
[data-theme="warhol"] .nav-icon-btn:hover { color: #FF2D7B; background: rgba(255,45,123,0.15); }

/* Nav */
[data-theme="warhol"] .main-nav { background: #000000; border-bottom: 3px solid #FFEE00; }
[data-theme="warhol"] .nav-links a {
  color: #FFEE00;
  font-family: 'Anton', Impact, sans-serif;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-right-color: #333333;
}
[data-theme="warhol"] .nav-links li:first-child a { border-left-color: #333333; }
[data-theme="warhol"] .nav-links a:hover,
[data-theme="warhol"] .nav-item-dropdown:hover > a { background: #FF2D7B; color: #FFEE00 !important; }
[data-theme="warhol"] .nav-links a.active { color: #FF2D7B; background: transparent; }
[data-theme="warhol"] .nav-dropdown { background: #000000; border: 2px solid #FF2D7B; }
[data-theme="warhol"] .nav-dropdown li a { color: #FFEE00; font-family: 'Anton', Impact, sans-serif; text-transform: uppercase; }
[data-theme="warhol"] .nav-dropdown li a:hover { background: #FF2D7B; color: #FFEE00; }

/* Search */
[data-theme="warhol"] .search-bar { background: #000000; border-bottom: 3px solid #FF2D7B; }
[data-theme="warhol"] .search-bar-input { background: #111111; border-color: #FF2D7B; color: #FFEE00; font-family: 'Anton', Impact, sans-serif; text-transform: uppercase; }
[data-theme="warhol"] .search-bar-input::placeholder { color: #555555; }
[data-theme="warhol"] .search-bar-submit { background: #FF2D7B; color: #FFEE00; font-family: 'Anton', Impact, sans-serif; text-transform: uppercase; border-color: #FF2D7B; }
[data-theme="warhol"] .search-bar-close { color: #FFEE00; }

/* Settings */
[data-theme="warhol"] .settings-toggle { color: #FFEE00; font-family: 'Anton', Impact, sans-serif; text-transform: uppercase; }
[data-theme="warhol"] .settings-toggle:hover,
[data-theme="warhol"] .settings-menu:hover .settings-toggle { color: #FF2D7B; background: rgba(255,45,123,0.15); }
[data-theme="warhol"] .settings-dropdown { background: #000000; border-color: #FF2D7B; }
[data-theme="warhol"] .settings-opt { color: #FFEE00; font-family: 'Anton', Impact, sans-serif; text-transform: uppercase; }
[data-theme="warhol"] .settings-opt:hover { background: #FF2D7B; color: #FFEE00; }
[data-theme="warhol"] .settings-opt.active { color: #FF2D7B; }

/* Hero - each slide gets its own Warhol colour */
[data-theme="warhol"] .hero-carousel { border-bottom: 3px solid #000000; }
[data-theme="warhol"] .hero-slide:nth-child(1) { background: #FF2D7B; }
[data-theme="warhol"] .hero-slide:nth-child(2) { background: #00D9FF; }
[data-theme="warhol"] .hero-slide:nth-child(3) { background: #FFEE00; }
[data-theme="warhol"] .hero-slide:nth-child(4) { background: #CC44FF; }
[data-theme="warhol"] .hero-slide:nth-child(5) { background: #FF8800; }
[data-theme="warhol"] .hero-slide:nth-child(6) { background: #44FF88; }
[data-theme="warhol"] .hero { background: transparent; border: none; }
[data-theme="warhol"] .hero:hover { background: transparent; }
[data-theme="warhol"] .hero-content { background: transparent; border-top: none; }
[data-theme="warhol"] .hero-title {
  color: #000000;
  font-family: 'Anton', Impact, sans-serif;
  font-size: 3.6rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
[data-theme="warhol"] .hero-title-link:hover .hero-title { color: #000000; text-decoration: underline; }
[data-theme="warhol"] .hero-excerpt { color: #000000; font-weight: 700; font-size: 0.92rem; text-transform: uppercase; letter-spacing: 0.03em; }
[data-theme="warhol"] .hero-date,
[data-theme="warhol"] .hero-author { color: rgba(0,0,0,0.6); font-weight: 700; text-transform: uppercase; font-size: 0.72rem; }
[data-theme="warhol"] .hero-source { color: #000000; font-weight: 700; }
[data-theme="warhol"] .hero-carousel-prev,
[data-theme="warhol"] .hero-carousel-next { color: #000000; }
[data-theme="warhol"] .hero-carousel-prev:hover,
[data-theme="warhol"] .hero-carousel-next:hover { color: #FF2D7B; }
[data-theme="warhol"] .card-category { color: #000000; font-family: 'Anton', Impact, sans-serif; text-transform: uppercase; letter-spacing: 0.1em; font-weight: normal; }
[data-theme="warhol"] .card-category:hover { color: #000000; text-decoration: underline; }

/* Section headers */
[data-theme="warhol"] .section-header { background: #000000; border-bottom: 3px solid #FF2D7B; padding: 0.7rem 0; }
[data-theme="warhol"] .section-title { color: #FFEE00; font-family: 'Anton', Impact, sans-serif; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.15em; }

/* Cards — rotating pop-art backgrounds */
[data-theme="warhol"] .grid-card { border: 2px solid #000000; }
[data-theme="warhol"] .grid-card:hover { filter: brightness(1.06); }
[data-theme="warhol"] .grid-card:nth-child(6n+1) { background: #FF2D7B; }
[data-theme="warhol"] .grid-card:nth-child(6n+2) { background: #00D9FF; }
[data-theme="warhol"] .grid-card:nth-child(6n+3) { background: #FFEE00; }
[data-theme="warhol"] .grid-card:nth-child(6n+4) { background: #CC44FF; }
[data-theme="warhol"] .grid-card:nth-child(6n+5) { background: #FF8800; }
[data-theme="warhol"] .grid-card:nth-child(6n+6) { background: #44FF88; }
[data-theme="warhol"] .card-body { border-top: 2px solid #000000; }
[data-theme="warhol"] .card-title { color: #000000; font-family: 'Anton', Impact, sans-serif; font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.03em; }
[data-theme="warhol"] .card-title-link:hover .card-title { color: #000000; text-decoration: underline; }
[data-theme="warhol"] .card-summary { color: #000000; font-weight: 700; font-size: 0.8rem; text-transform: uppercase; }
[data-theme="warhol"] .card-date,
[data-theme="warhol"] .card-meta-sep { color: rgba(0,0,0,0.55); font-weight: 700; font-size: 0.7rem; text-transform: uppercase; }
[data-theme="warhol"] .card-source { color: #000000; font-weight: 700; }
[data-theme="warhol"] .card-img-placeholder { background: #FFEE00; border-bottom: 2px solid #000000; }
[data-theme="warhol"] .tile-share .share-btn { color: rgba(0,0,0,0.45); }
[data-theme="warhol"] .tile-share .share-btn:hover { color: #FF2D7B; }

/* View toolbar */
[data-theme="warhol"] .view-toolbar { background: #000000; border-color: #000000; }
[data-theme="warhol"] .view-btn,
[data-theme="warhol"] .filter-btn { color: #FFEE00; border-color: #444444; font-family: 'Anton', Impact, sans-serif; }
[data-theme="warhol"] .view-btn:hover,
[data-theme="warhol"] .filter-btn:hover { background: #FF2D7B; color: #FFEE00; border-color: #FF2D7B; }
[data-theme="warhol"] .view-btn.active,
[data-theme="warhol"] .filter-btn.active { background: #FFEE00; color: #000000; border-color: #FFEE00; }
[data-theme="warhol"] .filter-bar { background: #000000; border-color: #333333; }
[data-theme="warhol"] .filter-pill { background: #000000; border-color: #444444; color: #FFEE00; font-family: 'Anton', Impact, sans-serif; text-transform: uppercase; letter-spacing: 0.08em; }
[data-theme="warhol"] .filter-pill:hover { border-color: #FF2D7B; color: #FF2D7B; }
[data-theme="warhol"] .filter-pill.active { background: #FF2D7B; color: #FFEE00; border-color: #FF2D7B; }

/* Article page */
[data-theme="warhol"] .page-article .site-main { background: #FFFEF0 !important; }
[data-theme="warhol"] .article-page { background: #FFFEF0 !important; border: 2px solid #000000; }
[data-theme="warhol"] .article-title { color: #000000; font-family: 'Anton', Impact, sans-serif; font-size: 3rem; text-transform: uppercase; letter-spacing: 0.02em; line-height: 1.05; }
[data-theme="warhol"] .byline-author { color: #000000; font-family: 'Anton', Impact, sans-serif; text-transform: uppercase; }
[data-theme="warhol"] .byline-source,
[data-theme="warhol"] .byline-date { color: #333333; font-weight: 700; text-transform: uppercase; }
[data-theme="warhol"] .byline-sep { color: #000000; }
[data-theme="warhol"] .article-body p,
[data-theme="warhol"] .article-content p { color: #000000; font-size: 1rem; line-height: 1.75; }
[data-theme="warhol"] .article-body h2,
[data-theme="warhol"] .article-body h3,
[data-theme="warhol"] .article-body h4 { color: #000000; font-family: 'Anton', Impact, sans-serif; text-transform: uppercase; }
[data-theme="warhol"] .article-body a { color: #FF2D7B; text-decoration: underline; }
[data-theme="warhol"] .article-body a:hover { color: #CC44FF; }

/* System prompt */
[data-theme="warhol"] .system-prompt { background: #FFEE00; border: 2px solid #000000; border-left: 5px solid #FF2D7B; color: #000000; }
[data-theme="warhol"] .system-prompt::before { color: #FF2D7B; font-family: 'Anton', Impact, sans-serif; }
[data-theme="warhol"] .system-prompt-copy { background: #000000; border-color: #000000; color: #FFEE00; }
[data-theme="warhol"] .system-prompt-copy:hover { background: #FF2D7B; color: #FFEE00; }

/* Related section */
[data-theme="warhol"] .related-section,
[data-theme="warhol"] .page-article .related-section { background: #000000 !important; border-top: 3px solid #FF2D7B; }

/* White-background overrides */
[data-theme="warhol"] .section-header { background: #000000 !important; }
[data-theme="warhol"] .event-promo-tile { background: #FFEE00 !important; border: 2px solid #000000 !important; }
[data-theme="warhol"] .event-promo-tile:hover { background: #FF2D7B !important; }
[data-theme="warhol"] .archive-month-card { background: #FF2D7B !important; color: #000000 !important; border: 2px solid #000000 !important; }
[data-theme="warhol"] .archive-month-card:hover { background: #FFEE00 !important; }
[data-theme="warhol"] .bulletin-input,
[data-theme="warhol"] .contact-input,
[data-theme="warhol"] .form-input,
[data-theme="warhol"] .form-select,
[data-theme="warhol"] .form-textarea { background: #FFFEF0 !important; color: #000000 !important; border: 2px solid #000000 !important; }
[data-theme="warhol"] .login-card { background: #FFEE00 !important; border: 3px solid #000000 !important; color: #000000 !important; }
[data-theme="warhol"] .stat-card,
[data-theme="warhol"] .admin-panel,
[data-theme="warhol"] .review-card,
[data-theme="warhol"] .month-picker { background: #FFFEF0 !important; border: 2px solid #000000 !important; color: #000000 !important; }

/* Newsletter */
[data-theme="warhol"] .newsletter-band { background: #FF2D7B; border-top: 3px solid #000000; }
[data-theme="warhol"] .newsletter-band-heading { color: #FFEE00; font-family: 'Anton', Impact, sans-serif; text-transform: uppercase; letter-spacing: 0.05em; }
[data-theme="warhol"] .newsletter-band-sub { color: #000000; font-weight: 700; text-transform: uppercase; font-size: 0.85rem; }
[data-theme="warhol"] .newsletter-band-input { background: #FFFEF0; border: 2px solid #000000; color: #000000; }
[data-theme="warhol"] .newsletter-band-input::placeholder { color: #555555; }
[data-theme="warhol"] .newsletter-band-btn { background: #000000; color: #FFEE00; font-family: 'Anton', Impact, sans-serif; text-transform: uppercase; }
[data-theme="warhol"] .newsletter-band-btn:hover { background: #FFEE00; color: #000000; }

/* Footer */
[data-theme="warhol"] .site-footer { background: #000000; border-top: 3px solid #FF2D7B; }
[data-theme="warhol"] .footer-col-heading { color: #FF2D7B; font-family: 'Anton', Impact, sans-serif; text-transform: uppercase; letter-spacing: 0.1em; }
[data-theme="warhol"] .footer-col-links a { color: #FFEE00; font-family: 'Anton', Impact, sans-serif; text-transform: uppercase; }
[data-theme="warhol"] .footer-col-links a:hover { color: #FF2D7B; }
[data-theme="warhol"] .footer-copy,
[data-theme="warhol"] .footer-tagline { color: #555555; text-transform: uppercase; font-size: 0.72rem; }
[data-theme="warhol"] .footer-logo { color: #FFEE00; font-family: 'Anton', Impact, sans-serif; text-transform: uppercase; }
[data-theme="warhol"] .social-icon { color: #FFEE00; }
[data-theme="warhol"] .social-icon:hover { color: #FF2D7B; }
[data-theme="warhol"] .footer-top-btn { color: #FFEE00; }
[data-theme="warhol"] .footer-top-btn:hover { color: #FF2D7B; }

/* Pagination */
[data-theme="warhol"] .pagination-link { color: #FF2D7B; font-family: 'Anton', Impact, sans-serif; }
[data-theme="warhol"] .pagination-info { color: #333333; font-weight: 700; text-transform: uppercase; }
[data-theme="warhol"] .flash { background: #FFEE00; border: 2px solid #000000; color: #000000; font-weight: 700; }
[data-theme="warhol"] .article-cta-btn { background: #FF2D7B; color: #FFEE00; font-family: 'Anton', Impact, sans-serif; text-transform: uppercase; }
[data-theme="warhol"] .article-cta-btn:hover { background: #CC44FF; color: #FFEE00; }

/* Images — cyan→pink duotone silkscreen effect */
[data-theme="warhol"] img { filter: url(#warhol-img); }
[data-theme="warhol"] .logo-icon,
[data-theme="warhol"] .nav-compact-logo-icon { filter: none; }

/* ============================================================
   NO WAY OUT — Amber phosphor terminal aesthetic
   ============================================================ */

[data-theme="nwo"] {
  --bg:            #0a0a0a;
  --text:          #FF8C00;
  --muted:         #7A3B00;
  --rule:          #3D1F00;
  --rule-dark:     #5C2E00;
  --orange:        #FFB300;
  --navy:          #FFB300;
  --placeholder-bg:#050505;
}

[data-theme="nwo"],
[data-theme="nwo"] html,
[data-theme="nwo"] body,
[data-theme="nwo"] .site-main { background: #0a0a0a !important; }

[data-theme="nwo"] * {
  border-radius: 0 !important;
  box-shadow: none !important;
}

[data-theme="nwo"] body {
  background: #0a0a0a;
  color: #FF8C00;
  font-family: 'IBM Plex Mono', 'Courier New', monospace;
  letter-spacing: 0.03em;
}

[data-theme="nwo"] body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(0,0,0,0.08) 0px,
    rgba(0,0,0,0.08) 1px,
    transparent 1px,
    transparent 3px
  );
  pointer-events: none;
  z-index: 99999;
}

[data-theme="nwo"] .site-header {
  background: #050505;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid #5C2E00;
}
[data-theme="nwo"] .header-top { border-bottom-color: #3D1F00; }
[data-theme="nwo"] .logo-first  { color: #FFB300; font-family: 'IBM Plex Mono', monospace; text-transform: uppercase; }
[data-theme="nwo"] .logo-second { color: #FF8C00; font-family: 'IBM Plex Mono', monospace; text-transform: uppercase; }
[data-theme="nwo"] .nav-icon-btn { color: #FF8C00; }
[data-theme="nwo"] .nav-icon-btn:hover { color: #FFB300; background: rgba(255,140,0,0.08); }

[data-theme="nwo"] .main-nav { background: #050505; border-bottom: 1px solid #5C2E00; }
[data-theme="nwo"] .nav-links a {
  color: #FF8C00;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-right-color: #3D1F00;
}
[data-theme="nwo"] .nav-links li:first-child a { border-left-color: #3D1F00; }
[data-theme="nwo"] .nav-links a:hover,
[data-theme="nwo"] .nav-item-dropdown:hover > a { background: #FF8C00; color: #0a0a0a !important; }
[data-theme="nwo"] .nav-links a.active { color: #FF8C00; background: transparent; }
[data-theme="nwo"] .nav-dropdown { background: #050505; border: 1px solid #5C2E00; }
[data-theme="nwo"] .nav-dropdown li a { color: #FF8C00; font-family: 'IBM Plex Mono', monospace; font-size: 0.72rem; text-transform: uppercase; }
[data-theme="nwo"] .nav-dropdown li a:hover { background: #FF8C00; color: #0a0a0a; }

[data-theme="nwo"] .search-bar { background: #050505; border-bottom: 1px solid #5C2E00; }
[data-theme="nwo"] .search-bar-input { background: #0a0a0a; border-color: #5C2E00; color: #FF8C00; font-family: 'IBM Plex Mono', monospace; text-transform: uppercase; }
[data-theme="nwo"] .search-bar-input::placeholder { color: #5C2E00; }
[data-theme="nwo"] .search-bar-submit { background: #FF8C00; color: #0a0a0a; font-family: 'IBM Plex Mono', monospace; text-transform: uppercase; border-color: #FF8C00; }
[data-theme="nwo"] .search-bar-close { color: #FF8C00; }

[data-theme="nwo"] .settings-toggle { color: #FF8C00; font-family: 'IBM Plex Mono', monospace; text-transform: uppercase; }
[data-theme="nwo"] .settings-toggle:hover,
[data-theme="nwo"] .settings-menu:hover .settings-toggle { color: #FFB300; background: rgba(255,140,0,0.08); }
[data-theme="nwo"] .settings-dropdown { background: #050505; border-color: #5C2E00; }
[data-theme="nwo"] .settings-opt { color: #FF8C00; font-family: 'IBM Plex Mono', monospace; text-transform: uppercase; font-size: 0.72rem; }
[data-theme="nwo"] .settings-opt:hover { background: #FF8C00; color: #0a0a0a; }
[data-theme="nwo"] .settings-opt.active { color: #FFB300; font-weight: normal; }

[data-theme="nwo"] .hero { background: #050505; }
[data-theme="nwo"] .hero:hover { background: #050505; }
[data-theme="nwo"] .hero-carousel { border-bottom: 1px solid #5C2E00; }
[data-theme="nwo"] .hero-title { color: #FFB300; font-family: 'IBM Plex Mono', monospace; font-size: 2rem; line-height: 1.2; text-transform: uppercase; letter-spacing: 0.04em; }
[data-theme="nwo"] .hero-excerpt { color: #FF8C00; font-family: 'IBM Plex Mono', monospace; font-size: 0.88rem; text-transform: uppercase; letter-spacing: 0.03em; }
[data-theme="nwo"] .hero-date,
[data-theme="nwo"] .hero-author { color: #7A3B00; font-family: 'IBM Plex Mono', monospace; text-transform: uppercase; }
[data-theme="nwo"] .hero-source { color: #FFB300; font-family: 'IBM Plex Mono', monospace; }
[data-theme="nwo"] .hero-carousel-prev,
[data-theme="nwo"] .hero-carousel-next { color: #FF8C00; }
[data-theme="nwo"] .hero-carousel-prev:hover,
[data-theme="nwo"] .hero-carousel-next:hover { color: #FFB300; }
[data-theme="nwo"] .card-category { color: #FFB300; font-family: 'IBM Plex Mono', monospace; text-transform: uppercase; letter-spacing: 0.1em; }
[data-theme="nwo"] .card-category:hover { color: #FFCC44; }

[data-theme="nwo"] .section-header { background: #0a0a0a; border-bottom: 1px solid #5C2E00; }
[data-theme="nwo"] .section-title { color: #FFB300; font-family: 'IBM Plex Mono', monospace; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.15em; }

[data-theme="nwo"] .grid-card { background: #050505; border: 1px solid #3D1F00; }
[data-theme="nwo"] .grid-card:hover { background: #0d0d0d; border-color: #FF8C00; }
[data-theme="nwo"] .card-title { color: #FFB300; font-family: 'IBM Plex Mono', monospace; font-size: 0.88rem; text-transform: uppercase; letter-spacing: 0.04em; }
[data-theme="nwo"] .card-title-link:hover .card-title { color: #FFCC44; }
[data-theme="nwo"] .card-summary { color: #FF8C00; font-family: 'IBM Plex Mono', monospace; text-transform: uppercase; font-size: 0.78rem; }
[data-theme="nwo"] .card-date,
[data-theme="nwo"] .card-meta-sep { color: #7A3B00; font-family: 'IBM Plex Mono', monospace; }
[data-theme="nwo"] .card-source { color: #FFB300; font-family: 'IBM Plex Mono', monospace; }
[data-theme="nwo"] .card-img-placeholder,
[data-theme="nwo"] .hero-img-placeholder { background: #050505; border: 1px solid #3D1F00; }

[data-theme="nwo"] .view-toolbar { background: #050505; border-color: #3D1F00; }
[data-theme="nwo"] .view-btn,
[data-theme="nwo"] .filter-btn { color: #FF8C00; border-color: #3D1F00; }
[data-theme="nwo"] .view-btn:hover,
[data-theme="nwo"] .filter-btn:hover { background: #FF8C00; color: #0a0a0a; border-color: #FF8C00; }
[data-theme="nwo"] .view-btn.active,
[data-theme="nwo"] .filter-btn.active { background: #FFB300; color: #0a0a0a; border-color: #FFB300; }
[data-theme="nwo"] .filter-bar { background: #050505; border-color: #3D1F00; }
[data-theme="nwo"] .filter-pill { background: #050505; border-color: #3D1F00; color: #FF8C00; font-family: 'IBM Plex Mono', monospace; text-transform: uppercase; font-size: 0.65rem; }
[data-theme="nwo"] .filter-pill:hover { border-color: #FFB300; color: #FFB300; }
[data-theme="nwo"] .filter-pill.active { background: #FFB300; color: #0a0a0a; border-color: #FFB300; }

[data-theme="nwo"] .page-article .site-main,
[data-theme="nwo"] .article-page { background: #0a0a0a !important; border: none; }
[data-theme="nwo"] .article-title { color: #FFB300; font-family: 'IBM Plex Mono', monospace; font-size: 1.6rem; text-transform: uppercase; letter-spacing: 0.04em; line-height: 1.3; }
[data-theme="nwo"] .article-hero-img { filter: url(#nwo-2bit); image-rendering: pixelated; }
[data-theme="nwo"] .byline-author { color: #FFB300; font-family: 'IBM Plex Mono', monospace; text-transform: uppercase; }
[data-theme="nwo"] .byline-source,
[data-theme="nwo"] .byline-date,
[data-theme="nwo"] .byline-sep { color: #7A3B00; font-family: 'IBM Plex Mono', monospace; }
[data-theme="nwo"] .article-body p,
[data-theme="nwo"] .article-content p { color: #FF8C00; font-family: 'IBM Plex Mono', monospace; text-transform: uppercase; font-size: 0.88rem; line-height: 1.8; }
[data-theme="nwo"] .article-body h2,
[data-theme="nwo"] .article-body h3,
[data-theme="nwo"] .article-body h4 { color: #FFB300; font-family: 'IBM Plex Mono', monospace; text-transform: uppercase; letter-spacing: 0.08em; }
[data-theme="nwo"] .article-body a { color: #FFCC44; text-decoration: underline; }
[data-theme="nwo"] .article-body a:hover { color: #FFE080; }

[data-theme="nwo"] .system-prompt { background: #050505; border: 1px solid #3D1F00; border-left: 3px solid #FFB300; color: #FF8C00; font-family: 'IBM Plex Mono', monospace; }
[data-theme="nwo"] .system-prompt::before { color: #FFB300; }
[data-theme="nwo"] .system-prompt-copy { background: #0a0a0a; border-color: #3D1F00; color: #FF8C00; }
[data-theme="nwo"] .system-prompt-copy:hover { background: #FF8C00; color: #0a0a0a; }

[data-theme="nwo"] .related-section,
[data-theme="nwo"] .page-article .related-section { background: #050505 !important; border-top: 1px solid #5C2E00; }

[data-theme="nwo"] .section-header,
[data-theme="nwo"] .event-promo-tile,
[data-theme="nwo"] .event-promo-tile:hover,
[data-theme="nwo"] .archive-month-card,
[data-theme="nwo"] .archive-month-card:hover,
[data-theme="nwo"] .bulletin-input,
[data-theme="nwo"] .contact-input,
[data-theme="nwo"] .form-input,
[data-theme="nwo"] .form-select,
[data-theme="nwo"] .form-textarea,
[data-theme="nwo"] .login-card,
[data-theme="nwo"] .stat-card,
[data-theme="nwo"] .admin-panel,
[data-theme="nwo"] .review-card,
[data-theme="nwo"] .month-picker { background: #0a0a0a !important; color: #FF8C00 !important; border-color: #3D1F00 !important; }

[data-theme="nwo"] .tile-share .share-btn { color: #7A3B00; }
[data-theme="nwo"] .tile-share .share-btn:hover { color: #FFB300; }

[data-theme="nwo"] .newsletter-band { background: #050505; border-top: 1px solid #5C2E00; }
[data-theme="nwo"] .newsletter-band-heading { color: #FFB300; font-family: 'IBM Plex Mono', monospace; text-transform: uppercase; letter-spacing: 0.1em; }
[data-theme="nwo"] .newsletter-band-sub { color: #FF8C00; font-family: 'IBM Plex Mono', monospace; text-transform: uppercase; font-size: 0.82rem; }
[data-theme="nwo"] .newsletter-band-input { background: #0a0a0a; border-color: #5C2E00; color: #FF8C00; font-family: 'IBM Plex Mono', monospace; }
[data-theme="nwo"] .newsletter-band-input::placeholder { color: #7A3B00; }
[data-theme="nwo"] .newsletter-band-btn { background: #FF8C00; color: #0a0a0a; font-family: 'IBM Plex Mono', monospace; text-transform: uppercase; border-color: #FF8C00; }
[data-theme="nwo"] .newsletter-band-btn:hover { background: #FFB300; }

[data-theme="nwo"] .site-footer { background: #050505; border-top: 1px solid #5C2E00; }
[data-theme="nwo"] .footer-col-heading { color: #FFB300; font-family: 'IBM Plex Mono', monospace; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.72rem; }
[data-theme="nwo"] .footer-col-links a { color: #FF8C00; font-family: 'IBM Plex Mono', monospace; text-transform: uppercase; font-size: 0.78rem; }
[data-theme="nwo"] .footer-col-links a:hover { color: #FFB300; }
[data-theme="nwo"] .footer-copy,
[data-theme="nwo"] .footer-tagline { color: #7A3B00; font-family: 'IBM Plex Mono', monospace; text-transform: uppercase; font-size: 0.72rem; }
[data-theme="nwo"] .footer-logo { color: #FFB300; font-family: 'IBM Plex Mono', monospace; text-transform: uppercase; }
[data-theme="nwo"] .social-icon { color: #FF8C00; }
[data-theme="nwo"] .social-icon:hover { color: #FFB300; }
[data-theme="nwo"] .footer-top-btn { color: #FF8C00; }
[data-theme="nwo"] .footer-top-btn:hover { color: #FFB300; }

[data-theme="nwo"] .pagination-link { color: #FFB300; font-family: 'IBM Plex Mono', monospace; }
[data-theme="nwo"] .pagination-info { color: #FF8C00; font-family: 'IBM Plex Mono', monospace; }
[data-theme="nwo"] .flash { background: #050505; border-color: #5C2E00; color: #FF8C00; font-family: 'IBM Plex Mono', monospace; }
[data-theme="nwo"] .article-cta-btn { background: #FF8C00; color: #0a0a0a; font-family: 'IBM Plex Mono', monospace; text-transform: uppercase; }
[data-theme="nwo"] .article-cta-btn:hover { background: #FFB300; }

[data-theme="nwo"] img { filter: url(#nwo-2bit); image-rendering: pixelated; }

[data-theme="nwo"] .hero-slide.active .hero-title,
[data-theme="nwo"] .hero-slide.active .hero-excerpt { animation: none; }

/* ============================================================
   C64 MODE — Commodore 64 aesthetic
   ============================================================ */

[data-theme="c64"] {
  --bg:            #3535CE;
  --text:          #7878F8;
  --muted:         #5050CC;
  --rule:          #4848DE;
  --rule-dark:     #5A5AEE;
  --orange:        #AAAAFF;
  --navy:          #AAAAFF;
  --placeholder-bg:#2020B0;
}

[data-theme="c64"],
[data-theme="c64"] html,
[data-theme="c64"] body,
[data-theme="c64"] .site-main {
  background: #3535CE !important;
}

[data-theme="c64"] * {
  border-radius: 0 !important;
  box-shadow: none !important;
}

[data-theme="c64"] body {
  background: #3535CE;
  color: #7878F8;
  font-family: 'VT323', 'Courier New', monospace;
  letter-spacing: 0.04em;
}

/* Header */
[data-theme="c64"] .site-header {
  background: #2020AA;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 2px solid #7878F8;
}
[data-theme="c64"] .header-top { border-bottom-color: #4848DE; }
[data-theme="c64"] .logo-first  { color: #AAAAFF; font-family: 'VT323', monospace; }
[data-theme="c64"] .logo-second { color: #7878F8; font-family: 'VT323', monospace; }
[data-theme="c64"] .nav-icon-btn { color: #7878F8; }
[data-theme="c64"] .nav-icon-btn:hover { color: #AAAAFF; background: rgba(170,170,255,0.12); }

/* Nav strip */
[data-theme="c64"] .main-nav { background: #2020AA; border-bottom: 2px solid #7878F8; }
[data-theme="c64"] .nav-links a {
  color: #7878F8;
  font-family: 'VT323', monospace;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-right-color: #4848DE;
}
[data-theme="c64"] .nav-links li:first-child a { border-left-color: #4848DE; }
[data-theme="c64"] .nav-links a:hover,
[data-theme="c64"] .nav-item-dropdown:hover > a { background: #7878F8; color: #2020AA !important; }
[data-theme="c64"] .nav-links a.active { color: #7878F8; background: transparent; }
[data-theme="c64"] .nav-dropdown { background: #2020AA; border: 2px solid #7878F8; }
[data-theme="c64"] .nav-dropdown li a { color: #7878F8; font-family: 'VT323', monospace; text-transform: uppercase; }
[data-theme="c64"] .nav-dropdown li a:hover { background: #7878F8; color: #2020AA; }

/* Search bar */
[data-theme="c64"] .search-bar { background: #2020AA; border-bottom: 2px solid #7878F8; }
[data-theme="c64"] .search-bar-input {
  background: #3535CE;
  border-color: #7878F8;
  color: #7878F8;
  font-family: 'VT323', monospace;
  text-transform: uppercase;
}
[data-theme="c64"] .search-bar-input::placeholder { color: #5050CC; }
[data-theme="c64"] .search-bar-submit { background: #7878F8; color: #2020AA; font-family: 'VT323', monospace; text-transform: uppercase; border-color: #7878F8; }
[data-theme="c64"] .search-bar-close { color: #7878F8; }

/* Settings dropdown */
[data-theme="c64"] .settings-toggle { color: #7878F8; font-family: 'VT323', monospace; text-transform: uppercase; }
[data-theme="c64"] .settings-toggle:hover,
[data-theme="c64"] .settings-menu:hover .settings-toggle { color: #AAAAFF; background: rgba(170,170,255,0.1); }
[data-theme="c64"] .settings-dropdown { background: #2020AA; border-color: #7878F8; }
[data-theme="c64"] .settings-opt { color: #7878F8; font-family: 'VT323', monospace; text-transform: uppercase; }
[data-theme="c64"] .settings-opt:hover { background: #7878F8; color: #2020AA; }
[data-theme="c64"] .settings-opt.active { color: #AAAAFF; font-weight: normal; }

/* Hero */
[data-theme="c64"] .hero { background: #2828B8; }
[data-theme="c64"] .hero:hover { background: #2828B8; }
[data-theme="c64"] .hero-carousel { border-bottom: 2px solid #7878F8; }
[data-theme="c64"] .hero-title { color: #AAAAFF; font-family: 'VT323', monospace; font-size: 3.2rem; line-height: 1.05; text-transform: uppercase; letter-spacing: 0.04em; }
[data-theme="c64"] .hero-excerpt { color: #7878F8; font-family: 'VT323', monospace; font-size: 1.15rem; text-transform: uppercase; }
[data-theme="c64"] .hero-date,
[data-theme="c64"] .hero-author { color: #5050CC; font-family: 'VT323', monospace; text-transform: uppercase; }
[data-theme="c64"] .hero-source { color: #AAAAFF; }
[data-theme="c64"] .hero-carousel-prev,
[data-theme="c64"] .hero-carousel-next { color: #7878F8; }
[data-theme="c64"] .hero-carousel-prev:hover,
[data-theme="c64"] .hero-carousel-next:hover { color: #AAAAFF; }
[data-theme="c64"] .card-category { color: #AAAAFF; font-family: 'VT323', monospace; text-transform: uppercase; letter-spacing: 0.1em; }
[data-theme="c64"] .card-category:hover { color: #CCCCFF; }

/* Section header */
[data-theme="c64"] .section-header { border-bottom: 2px solid #7878F8; }
[data-theme="c64"] .section-title { color: #AAAAFF; font-family: 'VT323', monospace; font-size: 1.4rem; text-transform: uppercase; letter-spacing: 0.12em; }

/* Cards */
[data-theme="c64"] .grid-card { background: #2828B8; border: 1px solid #4848DE; }
[data-theme="c64"] .grid-card:hover { background: #3030CC; border-color: #7878F8; }
[data-theme="c64"] .card-title { color: #AAAAFF; font-family: 'VT323', monospace; font-size: 1.15rem; text-transform: uppercase; letter-spacing: 0.04em; }
[data-theme="c64"] .card-title-link:hover .card-title { color: #CCCCFF; }
[data-theme="c64"] .card-summary { color: #7878F8; font-family: 'VT323', monospace; text-transform: uppercase; }
[data-theme="c64"] .card-date,
[data-theme="c64"] .card-meta-sep { color: #5050CC; font-family: 'VT323', monospace; }
[data-theme="c64"] .card-source { color: #AAAAFF; }
[data-theme="c64"] .card-img-placeholder,
[data-theme="c64"] .hero-img-placeholder { background: #2020AA; }

/* View toolbar */
[data-theme="c64"] .view-toolbar { background: #2828B8; border-color: #4848DE; }
[data-theme="c64"] .view-btn,
[data-theme="c64"] .filter-btn { color: #7878F8; border-color: #4848DE; }
[data-theme="c64"] .view-btn:hover,
[data-theme="c64"] .filter-btn:hover { background: #7878F8; color: #2020AA; border-color: #7878F8; }
[data-theme="c64"] .view-btn.active,
[data-theme="c64"] .filter-btn.active { background: #AAAAFF; color: #2020AA; border-color: #AAAAFF; }
[data-theme="c64"] .filter-bar { background: #2828B8; border-color: #4848DE; }
[data-theme="c64"] .filter-pill { background: #2020AA; border-color: #4848DE; color: #7878F8; font-family: 'VT323', monospace; text-transform: uppercase; }
[data-theme="c64"] .filter-pill:hover { border-color: #AAAAFF; color: #AAAAFF; }
[data-theme="c64"] .filter-pill.active { background: #AAAAFF; color: #2020AA; border-color: #AAAAFF; }

/* Article page */
[data-theme="c64"] .article-page { background: #2828B8; border: 1px solid #4848DE; }
[data-theme="c64"] .article-title { color: #AAAAFF; font-family: 'VT323', monospace; font-size: 2.6rem; text-transform: uppercase; letter-spacing: 0.04em; line-height: 1.1; }
[data-theme="c64"] .article-hero-img { filter: brightness(0.85) saturate(0.5) hue-rotate(200deg); }
[data-theme="c64"] .byline-author { color: #AAAAFF; font-family: 'VT323', monospace; text-transform: uppercase; }
[data-theme="c64"] .byline-source,
[data-theme="c64"] .byline-date,
[data-theme="c64"] .byline-sep { color: #5050CC; font-family: 'VT323', monospace; }
[data-theme="c64"] .article-body p,
[data-theme="c64"] .article-content p { color: #7878F8; font-family: 'VT323', monospace; text-transform: uppercase; font-size: 1.15rem; line-height: 1.65; }
[data-theme="c64"] .article-body h2,
[data-theme="c64"] .article-body h3,
[data-theme="c64"] .article-body h4 { color: #AAAAFF; font-family: 'VT323', monospace; text-transform: uppercase; letter-spacing: 0.08em; }
[data-theme="c64"] .article-body a { color: #CCCCFF; text-decoration: underline; }
[data-theme="c64"] .article-body a:hover { color: #FFFFFF; }

/* System prompt */
[data-theme="c64"] .system-prompt { background: #2020AA; border: 1px solid #4848DE; border-left: 3px solid #AAAAFF; color: #7878F8; font-family: 'VT323', monospace; }
[data-theme="c64"] .system-prompt::before { color: #AAAAFF; }
[data-theme="c64"] .system-prompt-copy { background: #2828B8; border-color: #4848DE; color: #7878F8; }
[data-theme="c64"] .system-prompt-copy:hover { background: #AAAAFF; color: #2020AA; }

/* Related section */
[data-theme="c64"] .related-section { background: #2020AA; border-top: 2px solid #7878F8; }

/* Share buttons */
[data-theme="c64"] .tile-share .share-btn { color: #5050CC; }
[data-theme="c64"] .tile-share .share-btn:hover { color: #AAAAFF; }

/* Newsletter */
[data-theme="c64"] .newsletter-band { background: #2020AA; border-top: 2px solid #7878F8; }
[data-theme="c64"] .newsletter-band-heading { color: #AAAAFF; font-family: 'VT323', monospace; text-transform: uppercase; letter-spacing: 0.1em; }
[data-theme="c64"] .newsletter-band-sub { color: #7878F8; font-family: 'VT323', monospace; text-transform: uppercase; }
[data-theme="c64"] .newsletter-band-input { background: #3535CE; border-color: #7878F8; color: #7878F8; font-family: 'VT323', monospace; }
[data-theme="c64"] .newsletter-band-input::placeholder { color: #5050CC; }
[data-theme="c64"] .newsletter-band-btn { background: #AAAAFF; color: #2020AA; font-family: 'VT323', monospace; text-transform: uppercase; border-color: #AAAAFF; }
[data-theme="c64"] .newsletter-band-btn:hover { background: #CCCCFF; }

/* Footer */
[data-theme="c64"] .site-footer { background: #2020AA; border-top: 2px solid #7878F8; }
[data-theme="c64"] .footer-col-heading { color: #AAAAFF; font-family: 'VT323', monospace; text-transform: uppercase; letter-spacing: 0.1em; }
[data-theme="c64"] .footer-col-links a { color: #7878F8; font-family: 'VT323', monospace; text-transform: uppercase; }
[data-theme="c64"] .footer-col-links a:hover { color: #AAAAFF; }
[data-theme="c64"] .footer-copy,
[data-theme="c64"] .footer-tagline { color: #5050CC; font-family: 'VT323', monospace; text-transform: uppercase; }
[data-theme="c64"] .footer-logo { color: #AAAAFF; font-family: 'VT323', monospace; text-transform: uppercase; }
[data-theme="c64"] .social-icon { color: #7878F8; }
[data-theme="c64"] .social-icon:hover { color: #AAAAFF; }
[data-theme="c64"] .footer-top-btn { color: #7878F8; }
[data-theme="c64"] .footer-top-btn:hover { color: #AAAAFF; }

/* Pagination */
[data-theme="c64"] .pagination-link { color: #AAAAFF; font-family: 'VT323', monospace; }
[data-theme="c64"] .pagination-info { color: #7878F8; font-family: 'VT323', monospace; }

/* Flash */
[data-theme="c64"] .flash { background: #2020AA; border-color: #7878F8; color: #7878F8; font-family: 'VT323', monospace; }

/* CTA button */
[data-theme="c64"] .article-cta-btn { background: #AAAAFF; color: #2020AA; font-family: 'VT323', monospace; text-transform: uppercase; }
[data-theme="c64"] .article-cta-btn:hover { background: #CCCCFF; }

/* 3-bit images */
[data-theme="c64"] img {
  filter: url(#c64-3bit);
  image-rendering: pixelated;
}

/* Kill all remaining white/light backgrounds */
[data-theme="c64"] .section-header,
[data-theme="c64"] .page-article .site-main,
[data-theme="c64"] .article-page,
[data-theme="c64"] .page-article .related-section,
[data-theme="c64"] .event-promo-tile,
[data-theme="c64"] .event-promo-tile:hover,
[data-theme="c64"] .archive-month-card,
[data-theme="c64"] .archive-month-card:hover,
[data-theme="c64"] .bulletin-input,
[data-theme="c64"] .contact-input,
[data-theme="c64"] .form-input,
[data-theme="c64"] .form-select,
[data-theme="c64"] .form-textarea,
[data-theme="c64"] .login-card,
[data-theme="c64"] .stat-card,
[data-theme="c64"] .admin-panel,
[data-theme="c64"] .review-card,
[data-theme="c64"] .month-picker { background: #3535CE !important; color: #7878F8 !important; border-color: #4848DE !important; }
