/* ─── VARIABLES ─────────────────────────────────────────────── */
:root {
  --black:   #0a0a0a;
  --dark:    #111111;
  --panel:   #161616;
  --border:  #2a2a2a;
  --mid:     #888888;
  --light:   #cccccc;
  --white:   #f0ede8;
  --gold:    #C9A86C;
  --gold-lt: #DFC08A;
}

/* ─── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  background: var(--black);
  color: var(--light);
  font-family: 'Barlow', sans-serif;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100vw;
}

/* ─── HEADER ─────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2.5rem;
  background: linear-gradient(to bottom, rgba(10,10,10,0.95), transparent);
}
.site-header div {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--mid);
}

/* ─── HERO ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 70vh;
  min-height: 420px;
  overflow: hidden;
  background: var(--dark);
  width: 100%;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 22%;
  display: block;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(to right, rgba(10,10,10,0.75) 35%, rgba(10,10,10,0.15) 100%),
    linear-gradient(to top, rgba(10,10,10,1) 0%, transparent 55%);
  z-index: 1;
}
.hero-title {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 12%;
  transform: translateX(-50%);
  width: min(62%, 780px);
  height: auto;
  display: block;
  pointer-events: none;
  filter: drop-shadow(0 4px 18px rgba(0,0,0,0.55));
}
.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding: 0 2.5rem 3rem;
  max-width: 900px;
}
.hero-tagline { display: none; }
.hero-tagline p {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 0.5rem;
}
.hero-tagline h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--white);
  line-height: 1.05;
  opacity: 0.35;
}

/* ─── TITLE BLOCK ────────────────────────────────────────────── */
.title-block {
  background: var(--black);
  padding: 3rem 2.5rem 0;
  max-width: 900px;
  margin: 0 auto;
}
.eyebrow {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.film-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 300;
  letter-spacing: 0.3em;
  color: var(--white);
  line-height: 1;
  margin-bottom: 1.5rem;
}
.meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem 3rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}
.meta-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}
.meta-value {
  font-family: 'Barlow', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--white);
}

/* ─── TAB NAV ────────────────────────────────────────────────── */
.tab-nav {
  background: var(--black);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.tab-nav-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2.5rem;
  display: flex;
  gap: 0;
}
.tab-btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 1.1rem 1.5rem 1rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.tab-btn:hover { color: var(--light); }
.tab-btn.active {
  color: var(--white);
  border-bottom-color: var(--gold);
}

/* ─── TAB PANELS ─────────────────────────────────────────────── */
.tab-content { background: var(--black); min-height: 60vh; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.panel-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 2.5rem 6rem;
}

.section-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1.5rem;
}
.section-desc {
  font-size: 15px;
  color: #aaaaaa;
  max-width: 560px;
  line-height: 1.75;
  margin-bottom: 3.5rem;
}

/* ─── STATS GRID ─────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-bottom: 4rem;
}
.stat-card {
  background: var(--panel);
  padding: 2rem;
}
.stat-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.stat-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat-value.stat-daterange { font-size: 1.5rem; white-space: nowrap; }
.stat-sub {
  font-size: 12px;
  color: #999999;
  line-height: 1.4;
}

/* ─── CHANNEL TABLE ──────────────────────────────────────────── */
.channel-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
}
.channel-table th {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
}
.channel-table td {
  padding: 0.9rem 1rem;
  font-size: 14px;
  color: #cccccc;
  border-bottom: 1px solid var(--border);
}
.channel-table tr:last-child td { border-bottom: none; }
.channel-table tr:hover td { background: rgba(255,255,255,0.02); }

/* ─── STATUS BADGES ──────────────────────────────────────────── */
.status-live {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #6db87a;
  background: rgba(109,184,122,0.12);
  padding: 0.3rem 0.6rem;
  border-radius: 2px;
  white-space: nowrap;
}
.status-upcoming {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(184,149,90,0.12);
  padding: 0.3rem 0.6rem;
  border-radius: 2px;
  white-space: nowrap;
}
.status-pending {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #8eb4d4;
  background: rgba(142,180,212,0.12);
  padding: 0.3rem 0.6rem;
  border-radius: 2px;
  white-space: nowrap;
}
.status-complete {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #888;
  background: rgba(255,255,255,0.06);
  padding: 0.3rem 0.6rem;
  border-radius: 2px;
  white-space: nowrap;
}

/* ─── CHANNEL BLOCKS (AUDIO) ─────────────────────────────────── */
.channel-block {
  border: 1px solid var(--border);
  margin-bottom: 2rem;
}
.channel-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--panel);
}
.station-logo {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
}
.station-logo.on-light {
  background: #fff;
  padding: 3px;
}
.channel-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
}
.channel-meta {
  font-size: 12px;
  color: var(--mid);
  flex: 1;
}

.spots-group {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  max-width: 100%;
}
.spots-group:last-child { border-bottom: none; }
.spots-group-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.group-dates {
  color: #8a8578;
  font-size: 0.85em;
  letter-spacing: 0.05em;
  text-transform: none;
}

.spot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.spot-row:last-child { border-bottom: none; padding-bottom: 0; }
.spot-info { flex: 1; }
.spot-title {
  font-size: 13px;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 0.2rem;
}
.spot-desc {
  font-size: 11px;
  color: var(--mid);
}

/* ─── AUDIO PLAYER ───────────────────────────────────────────── */
audio { display: none; }

.custom-player {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 300px;
  flex-shrink: 0;
}
.custom-player.is-disabled {
  opacity: 0.4;
  pointer-events: none;
}
.custom-player.is-disabled .play-btn {
  border-style: dashed;
  cursor: default;
}
.custom-player.is-disabled .player-time {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
}
.play-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
  font-size: 11px;
  padding-left: 2px;
}
.play-btn:hover { background: var(--gold); color: var(--black); }
.play-btn.playing { background: var(--gold); color: var(--black); }
.player-track {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.player-progress {
  width: 100%;
  height: 2px;
  background: var(--border);
  border-radius: 1px;
  cursor: pointer;
  position: relative;
}
.player-bar {
  height: 100%;
  background: var(--gold);
  border-radius: 1px;
  width: 0%;
  pointer-events: none;
}
.player-time {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 9px;
  letter-spacing: 0.15em;
  color: var(--mid);
}

/* ─── PLACEHOLDER ────────────────────────────────────────────── */
.placeholder-block .channel-header {
  border-bottom: none;
}
.placeholder-header {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #666666;
  padding: 1.5rem 1.5rem 0;
}
.placeholder-note {
  padding: 0.75rem 1.5rem 2rem;
  font-size: 13px;
  font-family: 'Barlow', sans-serif;
  letter-spacing: 0;
  text-transform: none;
  color: #555555;
  text-align: left;
  line-height: 1.6;
}

/* ─── FOOTER ─────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 2.5rem;
  display: flex;
  justify-content: space-between;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid);
  max-width: 100%;
}

/* ─── PREVIEW GRID ───────────────────────────────────────────── */
.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 0.5rem;
}
.preview-item img {
  width: 100%;
  display: block;
  border: 1px solid var(--border);
}
.preview-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid);
  margin-top: 0.5rem;
}

/* ─── MAP EMBED ──────────────────────────────────────────────── */
.map-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0a0a0a;
}
.map-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ─── WEEK SUB-BLOCK ─────────────────────────────────────────── */
.week-block {
  border-top: 1px solid var(--border);
}
.week-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.5rem;
  background: rgba(201, 168, 108, 0.04);
  border-bottom: 1px solid var(--border);
}
.week-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.week-dates {
  font-size: 11px;
  color: var(--mid);
  flex: 1;
  letter-spacing: 0.04em;
}

/* ─── COLLAPSE TOGGLE (Location Lists) ──────────────────────── */
.collapse-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid var(--border);
  color: var(--mid);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 7px 14px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.collapse-toggle:hover:not([disabled]) {
  color: var(--gold);
  border-color: var(--gold);
}
.collapse-toggle .toggle-arrow {
  font-size: 9px;
  transition: transform 0.2s;
}
.collapse-toggle.open .toggle-arrow {
  transform: rotate(180deg);
}
.collapse-content {
  display: none;
  margin-top: 14px;
}
.collapse-content.open {
  display: block;
}

@media (max-width: 700px) {
  .preview-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-value.stat-daterange { font-size: 1rem; }
  .spot-row { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .audio-player { width: 100%; }
  .custom-player { width: 100%; }
  .script-toggle { align-self: flex-start; }
  .script-text { margin-top: 0; }
  .site-header {
    background: rgba(10,10,10,0.98);
    padding: 0.75rem 1.25rem;
  }
  .hero {
    height: 42vh;
    min-height: 260px;
    margin-top: 44px;
  }
  .hero-img {
    object-position: 50% 0%;
  }
  .hero-title {
    width: 82%;
    bottom: 18%;
  }
  .tab-nav {
    top: 44px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .tab-nav-inner { padding: 0 1rem; min-width: max-content; max-width: none; margin: 0; }
  .film-title { letter-spacing: 0.15em; }
  .panel-inner { padding: 3rem 1.25rem 5rem; }
  .title-block { padding: 2rem 1.25rem 0; }
  .site-footer { flex-direction: column; gap: 0.5rem; }
  .channel-header {
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: flex-start;
  }
  .channel-name {
    width: auto;
    flex: 1 1 0;
    min-width: 0;
  }
  .station-logo {
    width: 32px;
    height: 32px;
  }
  .channel-meta {
    flex: 1 1 100%;
    line-height: 1.5;
  }
  .channel-header > .status-live,
  .channel-header > .status-complete,
  .channel-header > .status-upcoming,
  .channel-header > .status-pending {
    align-self: flex-start;
  }

  /* ── Run log: keep date/time/length cells from wrapping ── */
  .run-log-table td:nth-child(1),
  .run-log-table td:nth-child(2),
  .run-log-table td:nth-child(3) {
    white-space: nowrap;
  }
  /* Wild-posting list (3-col: # / Neighborhood / Address) — let the address wrap */
  .run-log-table.wildposting-list td:nth-child(3) {
    white-space: normal;
  }

  /* ── Channel Mix table → card layout (6 cols don't fit) ── */
  .channel-mix-table thead { display: none; }
  .channel-mix-table tbody { display: block; }
  .channel-mix-table tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
  }
  .channel-mix-table tr:last-child { border-bottom: none; }
  .channel-mix-table td {
    display: block;
    padding: 0;
    border-bottom: none;
    font-size: 12px;
    white-space: normal;
  }
  /* Channel name — full row, prominent */
  .channel-mix-table td:nth-child(1) {
    grid-column: 1 / -1;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 500;
    color: var(--white);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
  }
  /* Metric cells with inline labels via ::before */
  .channel-mix-table td:nth-child(2)::before { content: 'Impressions · '; color: var(--gold); font-family: 'Barlow Condensed', sans-serif; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; }
  .channel-mix-table td:nth-child(3)::before { content: 'Clicks · '; color: var(--gold); font-family: 'Barlow Condensed', sans-serif; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; }
  .channel-mix-table td:nth-child(4)::before { content: 'CTR · '; color: var(--gold); font-family: 'Barlow Condensed', sans-serif; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; }
  .channel-mix-table td:nth-child(5)::before { content: 'Spend · '; color: var(--gold); font-family: 'Barlow Condensed', sans-serif; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; }
  /* Notable column — full row, italic, muted */
  .channel-mix-table td:nth-child(6) {
    grid-column: 1 / -1;
    color: var(--mid);
    font-style: italic;
    font-size: 11px;
    margin-top: 0.15rem;
  }

  /* ── Mobile table → card layout ── */
  .channel-table thead { display: none; }
  .channel-table tbody { display: block; }
  .channel-table tr {
    display: flex;
    flex-direction: column;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    gap: 0.35rem;
  }
  .channel-table tr:last-child { border-bottom: none; }
  .channel-table td {
    display: block;
    padding: 0;
    border-bottom: none;
    font-size: 13px;
  }
  /* Channel name — prominent */
  .channel-table td:nth-child(1) {
    font-weight: 500;
    color: var(--white);
    font-size: 14px;
  }
  /* Partner — gold, small */
  .channel-table td:nth-child(2) {
    color: var(--gold);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }
  /* Flight + Investment — inline on one line */
  .channel-table td:nth-child(3),
  .channel-table td:nth-child(4) {
    display: inline;
    color: var(--mid);
    font-size: 12px;
  }
  .channel-table td:nth-child(3)::after {
    content: ' · ';
    color: var(--border);
  }
  /* Status — full width */
  .channel-table td:nth-child(5) {
    margin-top: 0.25rem;
  }
}

/* ─── LIGHTBOX ───────────────────────────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.92);
  cursor: pointer;
}
.lightbox-content {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.lightbox-content img {
  cursor: zoom-out;
  max-width: 90vw;
  max-height: 82vh;
  object-fit: contain;
  display: block;
  box-shadow: 0 0 80px rgba(0,0,0,0.8);
}
.lightbox-caption {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--mid);
}
.lightbox-close {
  position: fixed;
  top: 1.5rem;
  right: 2rem;
  background: none;
  border: none;
  color: var(--mid);
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 2;
  transition: color 0.2s;
}
.lightbox-close:hover { color: var(--white); }
.preview-item img {
  cursor: zoom-in;
  transition: opacity 0.2s;
}
.preview-item img:hover { opacity: 0.85; }
.creative-shot {
  cursor: zoom-in;
  transition: opacity 0.2s;
}
.creative-shot:hover { opacity: 0.85; }
.lightbox-content {
  overflow-y: auto;
  overscroll-behavior: contain;
}
.lightbox-content::-webkit-scrollbar { width: 8px; }
.lightbox-content::-webkit-scrollbar-thumb {
  background: rgba(201,168,108,0.35);
  border-radius: 4px;
}
.lightbox-content img.tall {
  max-height: none;
  width: min(90vw, 620px);
}

/* ─── RUN LOG TABLE ──────────────────────────────────────────── */
.run-log-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5rem;
  font-size: 12px;
}
.run-log-table th {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
}
.run-log-table td {
  padding: 0.5rem 0.75rem;
  color: var(--light);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 12px;
}
.run-log-table tr.date-row td {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(201, 168, 108, 0.06);
  padding: 0.55rem 0.75rem;
  border-top: 1px solid rgba(201, 168, 108, 0.25);
  border-bottom: 1px solid rgba(201, 168, 108, 0.25);
}
.run-log-table tr.total-row td {
  background: rgba(201, 168, 108, 0.08);
  color: var(--gold);
  font-size: 13px;
  padding: 0.7rem 0.75rem;
  border-top: 1px solid var(--gold);
  border-bottom: none;
}
.run-log-table tr.total-row:hover td { background: rgba(201, 168, 108, 0.12); }
.run-log-table tr:last-child td { border-bottom: none; }
.run-log-table tr:hover td { background: rgba(255,255,255,0.02); }

/* ─── CHANNEL LOGOS ──────────────────────────────────────────── */
.channel-logo {
  height: 32px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  opacity: 0.9;
}

/* Script toggle */
.script-toggle {
  display: inline-flex;
  align-self: center;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  background: none;
  border: 1px solid var(--border);
  color: var(--mid);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 10px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.script-toggle:hover {
  color: var(--gold);
  border-color: var(--gold);
}
.script-toggle .toggle-arrow {
  font-size: 9px;
  transition: transform 0.2s;
}
.script-toggle.open .toggle-arrow {
  transform: rotate(180deg);
}
.script-text {
  display: none;
  flex-basis: 100%;
  width: 100%;
  margin-top: 10px;
  padding: 14px 16px;
  background: #111;
  border-left: 2px solid var(--gold);
  font-family: 'Barlow', sans-serif;
  font-size: 12px;
  font-weight: 300;
  color: #aaa;
  line-height: 1.7;
  letter-spacing: 0.02em;
}
.script-text.open {
  display: block;
}

/* Lightbox navigation */
.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 1px solid rgba(201, 168, 108, 0.4);
  color: var(--gold);
  font-size: 24px;
  width: 48px;
  height: 48px;
  cursor: pointer;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, background 0.2s;
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(201, 168, 108, 0.1);
  border-color: var(--gold);
}

/* KPI table Total Spend divider */
.run-log-table tr:last-child td {
  border-top: 1px solid var(--border);
  padding-top: 10px;
}



/* ─── CATBIRD MODULE ALIASES ─────────────────────────────────── */
/* Catbird variable names mapped onto the Ask E. Jean token set */
:root {
  --bg: var(--black);
  --bg-raised: #141414;
  --bg-subtle: #1a1a1a;
  --text-primary: var(--white);
  --text-secondary: #a8a29a;
  --text-muted: var(--mid);
  --gold-soft: rgba(201, 168, 108, 0.3);
  --gold-faint: rgba(201, 168, 108, 0.12);
  --border-soft: rgba(245, 240, 232, 0.08);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Barlow', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ─── WILD POSTING / OOH MODULE (ported from Catbird) ────────── */
.neighborhoods {
    background: var(--bg-subtle);
    border-top: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
}

.neighborhood-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.neighborhood-list span {
    font-family: var(--font-display);
    font-size: 1.15rem;
    padding: 0.6rem 1.25rem;
    border: 1px solid var(--border);
    color: var(--text-primary);
    background: var(--bg);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: baseline;
    gap: 0.6rem;
}

.neighborhood-list span:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.neighborhood-list span em {
    font-family: var(--font-body);
    font-style: normal;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--gold);
    font-variant-numeric: tabular-nums;
    padding-left: 0.6rem;
    border-left: 1px solid var(--gold-soft);
}

.footprint-intro {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    max-width: 700px;
}

.footprint-subhead {
    font-family: var(--font-body);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-weight: 500;
}

.location-table-wrapper {
    border: 1px solid var(--border-soft);
    overflow-x: auto;
}

.list-toggle {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    width: 100%;
    background: var(--bg-subtle);
    border: 1px solid var(--border-soft);
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-primary);
    text-align: left;
    transition: all 0.25s ease;
    margin-bottom: 0;
}

.list-toggle:hover {
    background: var(--bg);
    border-color: var(--border);
}

.list-toggle .toggle-arrow {
    color: var(--gold);
    font-size: 1rem;
    line-height: 1;
    transition: transform 0.25s ease;
    display: inline-block;
}

.list-toggle[aria-expanded="true"] .toggle-arrow {
    transform: rotate(90deg);
}

.list-toggle .toggle-label {
    flex: 1;
    font-weight: 500;
}

.list-toggle .toggle-count {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 0.95rem;
    text-transform: none;
    letter-spacing: 0.02em;
    color: var(--text-secondary);
    font-weight: 400;
}

.list-collapse {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    margin-bottom: 3rem;
}

.list-collapse.open {
    max-height: 5000px;
}

.list-collapse .location-table-wrapper {
    border-top: none;
}

.location-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-body);
    font-size: 0.9rem;
}

.location-table thead {
    background: var(--bg-subtle);
    border-bottom: 1px solid var(--border);
}

.location-table th {
    padding: 1rem 1.25rem;
    text-align: left;
    font-family: var(--font-body);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 500;
}

.location-table td {
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid var(--border-soft);
    color: var(--text-primary);
    font-weight: 300;
}

    .location-table tbody tr:hover {
        background: var(--bg-subtle);
    }

.location-table tbody tr {
    -webkit-tap-highlight-color: transparent;
}

.location-table tbody tr:last-child td {
    border-bottom: none;
}

.location-table .col-num {
    width: 60px;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
    text-align: center;
}

.location-table .col-neighborhood {
    width: 38%;
    color: var(--text-secondary);
    font-style: italic;
    font-family: var(--font-display);
    font-size: 1rem;
}

.location-table td.col-neighborhood,
.location-table tbody td:nth-child(2) {
    color: var(--text-secondary);
    font-style: italic;
    font-family: var(--font-display);
    font-size: 1rem;
}

.location-table .col-address {
    color: var(--text-primary);
}

.location-table.master-list .col-week {
    width: 110px;
    text-align: center;
}

.location-table.master-list th.col-week {
    color: var(--gold) !important;
}

.week-tag {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    font-weight: 500;
    padding: 0.25rem 0.55rem;
    border: 1px solid;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.week-tag.week-one {
    color: var(--text-secondary);
    border-color: var(--border);
    background: transparent;
}

.week-tag.week-two {
    color: var(--gold);
    border-color: var(--gold-soft);
    background: var(--gold-faint);
}

.week-tag.week-both {
    color: var(--gold);
    border-color: var(--gold);
    background: var(--gold-faint);
    font-weight: 600;
}

.week-tag.week-three {
    color: var(--text-primary);
    border-color: var(--gold-soft);
    background: var(--gold-faint);
}

.week-tag.week-four {
    color: var(--text-primary);
    border-color: var(--gold);
    background: transparent;
}

.week-tag.week-multi {
    color: var(--gold);
    border-color: var(--gold);
    background: var(--gold-faint);
    font-weight: 600;
}

.location-section-header td {
    background: var(--bg) !important;
    color: var(--gold) !important;
    font-family: var(--font-display) !important;
    font-style: italic !important;
    font-size: 1.35rem !important;
    letter-spacing: 0.04em;
    text-transform: none;
    text-align: left;
    padding: 1.75rem 1.25rem 0.85rem !important;
    border-top: none !important;
    border-bottom: 1px solid var(--gold-soft) !important;
    font-weight: 400;
}

.location-section-header:first-child td {
    padding-top: 0.85rem !important;
}

.location-section-header:hover td {
    background: var(--bg) !important;
}

.weekly-section {
    background: var(--bg);
}

.week-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin-bottom: 3rem;
    border: 1px solid var(--border-soft);
}

.week-tab {
    background: var(--bg);
    border: none;
    border-right: 1px solid var(--border-soft);
    padding: 1.5rem 1rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-family: var(--font-body);
    color: var(--text-secondary);
    position: relative;
}

.week-tab:last-child {
    border-right: none;
}

.week-tab:hover {
    background: var(--bg-subtle);
    color: var(--text-primary);
}

.week-tab.active {
    background: var(--bg-subtle);
    color: var(--text-primary);
}

.week-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gold);
}

.week-number {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 400;
}

.week-dates {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.week-status {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 0.25rem 0.6rem;
    border: 1px solid;
    font-weight: 500;
    margin-top: 0.25rem;
}

.week-panel {
    display: none;
    animation: fadeIn 0.4s ease;
}

.week-panel.active {
    display: block;
}

.week-header {
    margin-bottom: 2rem;
}

.week-header h3 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.week-count {
    font-family: var(--font-body);
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 500;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.week-intro {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 700px;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.photo-item {
    cursor: pointer;
    overflow: hidden;
    border: 1px solid var(--border-soft);
    transition: all 0.3s ease;
    background: var(--bg-subtle);
}

.photo-item:hover {
    border-color: var(--gold-soft);
    transform: translateY(-2px);
}

.photo-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.photo-item:hover img {
    transform: scale(1.03);
}

.photo-caption {
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-soft);
}

.caption-num {
    display: inline-block;
    color: var(--gold);
    font-variant-numeric: tabular-nums;
    font-weight: 500;
    margin-right: 0.5rem;
    letter-spacing: 0.05em;
}

    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }

    .week-tabs {
        grid-template-columns: 1fr 1fr;
    }

    .week-tab {
        border-right: 1px solid var(--border-soft);
        border-bottom: 1px solid var(--border-soft);
    }

    .week-tab:nth-child(2n) {
        border-right: none;
    }

    .week-tab:nth-last-child(-n+2) {
        border-bottom: none;
    }

    .location-table {
        font-size: 0.8rem;
    }

    .location-table th,
    .location-table td {
        padding: 0.7rem 0.75rem;
    }

    .location-table .col-num {
        width: 40px;
    }

    .location-table.master-list .col-week {
        width: 100px;
    }

    .week-tag.week-multi {
        padding: 0.25rem 0.4rem;
        letter-spacing: 0.1em;
    }

    .location-table .col-neighborhood,
    .location-table tbody td:nth-child(2) {
        font-size: 0.85rem;
    }

    .week-tabs {
        grid-template-columns: 1fr;
    }

    .week-tab {
        border-right: none;
        border-bottom: 1px solid var(--border-soft);
    }

    .week-tab:last-child {
        border-bottom: none;
    }

    .neighborhood-list span {
        font-size: 1rem;
        padding: 0.5rem 1rem;
    }

    .photo-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .photo-item img {
        height: auto;
        max-height: 60vh;
    }

    .location-table th,
    .location-table td {
        padding: 0.6rem 0.5rem;
        font-size: 0.75rem;
    }

    .location-table .col-num,
    .location-table tbody td:first-child:not([colspan]) {
        display: none;
    }

    .location-table.master-list .col-week {
        width: 80px;
    }

    .week-tag {
        font-size: 0.6rem;
        padding: 0.2rem 0.4rem;
        letter-spacing: 0.1em;
    }

    .week-tag.week-multi {
        padding: 0.2rem 0.3rem;
        letter-spacing: 0.05em;
        white-space: normal;
        line-height: 1.4;
        max-width: 100%;
    }

.market-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.market-title {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 400;
    color: var(--text-primary);
    letter-spacing: -0.005em;
}

.market-meta {
    font-family: var(--font-body);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 500;
    white-space: nowrap;
}

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

.market-section + .market-section {
    padding-top: 4rem;
    border-top: 1px solid var(--border-soft);
}

.photo-grid-placeholder {
    padding: 4rem 2rem;
    text-align: center;
    background: var(--bg-subtle);
    border: 1px dashed var(--border);
}

.photo-grid-placeholder p {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.15rem;
    color: var(--text-muted);
}

.week-status.status-pending::before {
    background: var(--text-muted) !important;
}

    .market-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .market-title {
        font-size: 1.75rem;
    }

/* ─── STATUS PILLS — full state set ──────────────────────────── */
.pill {
  display: inline-block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 3px;
  border: 1px solid;
  white-space: nowrap;
}
.pill-scheduled { color:#8a8578; border-color:rgba(138,133,120,0.35); background:rgba(138,133,120,0.08); }
.pill-production{ color:#C9A86C; border-color:rgba(201,168,108,0.35); background:rgba(201,168,108,0.10); }
.pill-live      { color:#4ade80; border-color:rgba(74,222,128,0.30);  background:rgba(74,222,128,0.08); }
.pill-complete  { color:#4ade80; border-color:rgba(74,222,128,0.30);  background:rgba(74,222,128,0.08); }
.pill-pending   { color:#a8a29a; border-color:rgba(168,162,154,0.30); background:rgba(168,162,154,0.06); }

/* ─── OWNER GROUP (radio sub-grouping) ───────────────────────── */
.owner-group { margin-bottom: 2.75rem; }
.owner-group-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  padding-bottom: 10px;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}
.owner-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.owner-meta {
  font-family: 'Barlow', sans-serif;
  font-size: 12px;
  color: var(--mid);
}

/* ─── AWAITING-PROOF PLACEHOLDER ─────────────────────────────── */
.awaiting {
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 2rem 1.5rem;
  text-align: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--mid);
  margin: 1rem 0;
}
.awaiting-sub {
  display: block;
  margin-top: 8px;
  font-family: 'Barlow', sans-serif;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
  color: #6b655e;
}

/* ─── PANEL GRID (digital bulletins) ─────────────────────────── */
.panel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.panel-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel);
}
.panel-card img { width: 100%; height: 190px; object-fit: cover; display: block; cursor: pointer; }
.panel-card-body { padding: 14px 16px 16px; }
.panel-card-market {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--white);
}
.panel-card-id { float: right; font-family:'Barlow Condensed',sans-serif; font-size:10px; letter-spacing:0.15em; color: var(--mid); }
.panel-card-loc { font-size: 13px; color: var(--light); margin-top: 6px; }
.panel-card-spec { font-size: 11px; color: var(--mid); margin-top: 6px; }

/* ─── CREATOR CARDS ──────────────────────────────────────────── */
.creator-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 1.5rem; margin-top:1.5rem; }
.creator-card { border:1px solid var(--border); border-radius:8px; padding:1.5rem; background:var(--panel); }
.creator-name { font-family:'Cormorant Garamond',serif; font-size:1.5rem; color:var(--white); }
.creator-handle { font-family:'Barlow Condensed',sans-serif; font-size:11px; letter-spacing:0.18em; text-transform:uppercase; color:var(--gold); margin-top:4px; }
.creator-meta { font-size:13px; color:var(--mid); margin-top:10px; line-height:1.7; }
.post-row { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:12px 0; border-bottom:1px solid var(--border); flex-wrap:wrap; }
.post-row:last-child { border-bottom:none; }
.post-label { font-size:13px; color:var(--light); }
.post-when { font-family:'Barlow Condensed',sans-serif; font-size:11px; letter-spacing:0.15em; text-transform:uppercase; color:var(--mid); }
