/* EJPH — Express Journalism Pulse Hub
   Dark-first news aesthetic · electric blue accent */

:root {
  --bg: #0a0a0a;
  --bg-elevated: #121212;
  --bg-panel: #161616;
  --fg: #f2f2f2;
  --fg-muted: #a3a3a3;
  --fg-dim: #6b6b6b;
  --accent: #00a3ff;
  --accent-dim: rgba(0, 163, 255, 0.15);
  --accent-glow: rgba(0, 163, 255, 0.35);
  --signal: #ff2d55;
  --line: #2a2a2a;
  --radius: 4px;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-condensed: "Arial Narrow", "Helvetica Condensed", "Franklin Gothic Medium", system-ui, sans-serif;
  --max: 68rem;
  --header-h: 3.75rem;
  --space: clamp(1rem, 4vw, 2rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pulse-line::after,
  .status-dot {
    animation: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover { color: #5cc4ff; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--space);
  top: -100%;
  z-index: 100;
  background: var(--accent);
  color: #000;
  padding: 0.5rem 1rem;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 0.5rem;
}

.container {
  width: min(100% - 2 * var(--space), var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--fg);
}

.logo-img {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
  border-radius: 0.35rem;
  display: block;
}

.logo:hover { color: var(--fg); }

.logo-mark {
  font-family: var(--font-condensed);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  line-height: 1;
  color: var(--fg);
}

.logo-text {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--fg-muted);
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--fg);
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: currentColor;
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before { top: -5px; }
.nav-toggle-bars::after { top: 5px; }

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.nav-menu a:hover { color: var(--fg); }

.nav-cta {
  color: var(--accent) !important;
  font-weight: 600;
}

/* Mobile nav drawer */
@media (max-width: 719px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--line);
    padding: 1rem var(--space) 1.25rem;
    flex-direction: column;
    gap: 0.75rem;
  }

  .nav-menu.is-open {
    display: flex;
  }
}

@media (min-width: 720px) {
  .nav-toggle { display: none; }

  .nav-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
  }
}

/* Hero */
.hero {
  padding: clamp(3rem, 10vw, 6rem) 0 clamp(3.5rem, 8vw, 5rem);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, var(--accent-dim), transparent 60%),
    var(--bg);
}

.hero-inner {
  max-width: 42rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.monogram-wrap {
  margin-bottom: 1.25rem;
}

.monogram {
  margin: 0;
  font-family: var(--font-condensed);
  font-weight: 800;
  font-size: clamp(4.5rem, 18vw, 8rem);
  letter-spacing: 0.04em;
  line-height: 0.9;
  color: var(--fg);
}

.pulse-line {
  position: relative;
  height: 2px;
  margin-top: 0.85rem;
  max-width: 12rem;
  background: var(--line);
  overflow: hidden;
}

.pulse-line::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 40%;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: pulse-sweep 2.4s ease-in-out infinite;
}

@keyframes pulse-sweep {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(280%); }
}

.tagline {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--fg);
}

.one-liner {
  margin: 0 0 0.5rem;
  color: var(--fg-muted);
  max-width: 36rem;
}

.alt-tagline {
  margin: 0 0 1.75rem;
  font-size: 0.95rem;
  color: var(--fg-dim);
  font-style: italic;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.25rem;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.btn-primary {
  background: var(--accent);
  color: #001018;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: #33b5ff;
  color: #001018;
}

.btn-ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--fg-muted);
  color: var(--fg);
}

.station-id {
  padding: 1rem 1.15rem;
  border-left: 2px solid var(--accent);
  background: var(--bg-panel);
  max-width: 36rem;
}

.station-id-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.station-id p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--fg-muted);
  font-style: italic;
}

/* Sections */
.section {
  padding: clamp(3rem, 8vw, 5rem) 0;
  border-bottom: 1px solid var(--line);
}

.section-head {
  margin-bottom: 2rem;
  max-width: 36rem;
}

.section-head h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.65rem, 4vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-lead {
  margin: 0;
  color: var(--fg-muted);
}

/* Shows */
.show-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .show-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.show-card {
  padding: 1.35rem 1.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-top: 2px solid var(--accent);
}

.show-code {
  display: block;
  font-family: var(--font-condensed);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.show-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  font-weight: 700;
}

.show-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--fg-muted);
}

/* Pipeline */
.pipeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  counter-reset: none;
}

.pipeline li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
  align-items: start;
}

.pipeline li:last-child {
  border-bottom: 1px solid var(--line);
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  font-family: var(--font-condensed);
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

.pipeline h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
}

.pipeline p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--fg-muted);
}

@media (min-width: 800px) {
  .pipeline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .pipeline li {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.25rem;
    background: var(--bg-elevated);
    grid-template-columns: auto 1fr;
  }

  .pipeline li:last-child {
    border-bottom: 1px solid var(--line);
  }
}

/* Credibility */
.credibility {
  background: var(--bg-elevated);
}

.cred-panel {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  background: var(--bg);
  border-radius: var(--radius);
  max-width: 42rem;
}

.cred-list {
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

.cred-list li {
  margin-bottom: 1rem;
  color: var(--fg-muted);
  padding-left: 0;
}

.cred-list li:last-child { margin-bottom: 0; }

.cred-list strong {
  color: var(--fg);
  display: block;
  margin-bottom: 0.2rem;
}

.cred-foot {
  margin: 0;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--fg-dim);
}

/* Status */
.status-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  max-width: 28rem;
  margin-bottom: 1.5rem;
}

.status-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-dim);
  flex-shrink: 0;
  animation: status-pulse 2s ease-in-out infinite;
}

@keyframes status-pulse {
  0%, 100% { box-shadow: 0 0 0 4px var(--accent-dim); }
  50% { box-shadow: 0 0 0 8px transparent; }
}

.status-label {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.status-value {
  margin: 0.15rem 0 0;
  font-weight: 600;
  color: var(--fg);
}

.status-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 28rem;
}

.status-checklist li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--fg-muted);
}

.check { color: var(--accent); font-weight: 700; }
.pending { color: var(--fg-dim); }

/* Contact */
.contact-panel {
  max-width: 28rem;
}

.contact-email {
  margin: 0 0 1.75rem;
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 700;
}

.contact-email a {
  text-decoration: none;
  color: var(--fg);
  border-bottom: 2px solid var(--accent);
}

.contact-email a:hover {
  color: var(--accent);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.contact-form label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-top: 0.5rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  font: inherit;
  font-size: 1rem;
  color: var(--fg);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--fg-dim);
}

.contact-form input:hover,
.contact-form textarea:hover {
  border-color: var(--fg-dim);
}

.form-note {
  margin: 0.75rem 0 0.5rem;
  font-size: 0.85rem;
  color: var(--fg-dim);
}

.contact-form .btn {
  align-self: flex-start;
  margin-top: 0.25rem;
}

/* Footer */
.site-footer {
  padding: 2.5rem 0 3rem;
  background: var(--bg);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-brand .logo-mark {
  display: block;
  margin-bottom: 0.35rem;
}

.footer-brand p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--fg-dim);
}

.footer-tag {
  margin: 0;
  font-weight: 600;
  color: var(--fg-muted);
}

.footer-copy {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  color: var(--fg-dim);
}

@media (min-width: 600px) {
  .footer-inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
  }

  .footer-copy {
    width: 100%;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
  }
}

/* Hero badges */
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.badge-live {
  color: var(--accent);
  border-color: rgba(0, 163, 255, 0.45);
  background: var(--accent-dim);
}

.badge-soon {
  color: var(--fg-muted);
  background: var(--bg-panel);
}

/* Global Pulse feed */
.live-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.85rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.9rem;
}

.live-strip-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
  flex-shrink: 0;
  animation: status-pulse 2s ease-in-out infinite;
}

.live-strip-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.live-strip-value {
  color: var(--fg-muted);
  font-weight: 500;
}

.live-strip-scope {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.pulse-feed {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-elevated);
}

.pulse-slot {
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  gap: 0.85rem;
  align-items: center;
  padding: 0.95rem 1.1rem;
  border-bottom: 1px solid var(--line);
}

.pulse-slot:last-child {
  border-bottom: none;
}

.pulse-rank {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  font-family: var(--font-condensed);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--accent);
  border: 1px solid rgba(0, 163, 255, 0.35);
  border-radius: var(--radius);
  background: var(--accent-dim);
}

.pulse-slot-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.pulse-slot-title {
  font-weight: 600;
  color: var(--fg);
  letter-spacing: 0.01em;
}

.pulse-slot-meta {
  font-size: 0.8rem;
  color: var(--fg-dim);
}

.pulse-note {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--fg-dim);
  max-width: 40rem;
}

/* Local desks grid */
.desks {
  background: var(--bg-elevated);
}

.desk-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
}

@media (min-width: 480px) {
  .desk-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 720px) {
  .desk-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1000px) {
  .desk-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.desk-card {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 0.35rem 0.5rem;
  padding: 0.9rem 0.95rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: default;
  user-select: none;
}

.desk-name {
  grid-column: 1;
  grid-row: 1;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--fg);
  line-height: 1.25;
}

.desk-lang {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  font-family: var(--font-condensed);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 0.15rem 0.4rem;
  border: 1px solid rgba(0, 163, 255, 0.3);
  border-radius: var(--radius);
  background: var(--accent-dim);
}

.desk-badge {
  grid-column: 1 / -1;
  grid-row: 2;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

@media (prefers-reduced-motion: reduce) {
  .live-strip-dot {
    animation: none !important;
  }
}


/* Older archive under Global Pulse */
.pulse-older-wrap {
  margin-top: 1.75rem;
}

.pulse-older-wrap[hidden] {
  display: none !important;
}

.pulse-older-heading {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.pulse-date {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.pulse-older .pulse-slot-title {
  color: var(--fg-muted);
}

.pulse-older .pulse-slot {
  grid-template-columns: 6.5rem 1fr;
}

.pulse-older .pulse-rank.pulse-date {
  width: auto;
  min-width: 5.75rem;
  padding: 0 0.35rem;
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  font-weight: 700;
}


/* Brand logo assets */
.hero-logo {
  display: block;
  width: min(100%, 42rem);
  height: auto;
  margin: 0 auto 1.25rem;
  border-radius: 0.5rem;
}

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

.footer-logo {
  width: 2.25rem;
  height: 2.25rem;
  object-fit: contain;
  border-radius: 0.3rem;
  flex-shrink: 0;
}
