/* =========================================================================
   All Hazards Hour — theme styles
   Design tokens ported 1:1 from the original Tailwind config.
   ========================================================================= */

:root {
  /* Brand teal (logo ring) */
  --ahh-brand-50:  #edfafa;
  --ahh-brand-100: #d5f5f6;
  --ahh-brand-200: #a8eaec;
  --ahh-brand-300: #6dd8dd;
  --ahh-brand-400: #2ebcc8;
  --ahh-brand-500: #1a9faa;
  --ahh-brand-600: #157f8b;
  --ahh-brand-700: #156571;
  --ahh-brand-800: #165259;
  --ahh-brand-900: #16444b;
  --ahh-brand-950: #0a2c32;

  /* Hazard orange-red (radiation symbol) */
  --ahh-hazard-400: #ff6542;
  --ahh-hazard-500: #e8472a;
  --ahh-hazard-900: #762217;

  /* Dark navy field */
  --ahh-navy-800: #152034;
  --ahh-navy-850: #111929;
  --ahh-navy-900: #0d1622;
  --ahh-navy-950: #080f18;

  /* Neutrals */
  --ahh-white:     #ffffff;
  --ahh-text:      #f8fafc;
  --ahh-slate-300: #cbd5e1;
  --ahh-slate-400: #94a3b8;
  --ahh-slate-500: #64748b;
  --ahh-slate-600: #475569;

  /* Translucent tints used throughout the original design */
  --ahh-line:         rgba(22, 68, 75, 0.4);   /* brand-900/40 */
  --ahh-line-soft:    rgba(22, 68, 75, 0.3);   /* brand-900/30 */
  --ahh-line-faint:   rgba(22, 68, 75, 0.2);   /* brand-900/20 */
  --ahh-card:         rgba(17, 25, 41, 0.6);   /* navy-850/60 */
  --ahh-card-faint:   rgba(17, 25, 41, 0.4);   /* navy-850/40 */
  --ahh-accent-tint:  rgba(46, 188, 200, 0.1); /* brand-400/10 */
  --ahh-accent-edge:  rgba(46, 188, 200, 0.2); /* brand-400/20 */
  --ahh-accent-edge2: rgba(46, 188, 200, 0.3); /* brand-400/30 */
  --ahh-hazard-tint:  rgba(232, 71, 42, 0.1);
  --ahh-hazard-edge:  rgba(232, 71, 42, 0.2);

  --ahh-container: 80rem;   /* max-w-7xl */
  --ahh-narrow:    56rem;   /* max-w-4xl */
  --ahh-radius:    0.75rem;
  --ahh-header-h:  4rem;

  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------------------------------------------------------------- reset */

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

body {
  margin: 0;
  background-color: var(--ahh-navy-900);
  color: var(--ahh-text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

body.ahh-player-active { padding-bottom: 5rem; }

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

a { color: var(--ahh-brand-300); text-decoration: none; }
a:hover { color: var(--ahh-brand-200); }

button { font: inherit; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--ahh-brand-400);
  outline-offset: 2px;
  border-radius: 4px;
}

* { scrollbar-width: thin; scrollbar-color: #1a3044 transparent; }
*::-webkit-scrollbar { width: 6px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: #1a3044; border-radius: 3px; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

.ahh-site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.ahh-main { flex: 1 1 auto; }

.ahh-container {
  max-width: var(--ahh-container);
  margin-inline: auto;
  padding-inline: 1rem;
}

.ahh-container--narrow { max-width: var(--ahh-narrow); }

@media (min-width: 640px) { .ahh-container { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .ahh-container { padding-inline: 2rem; } }

/* --------------------------------------------------------------- header */

.ahh-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background-color: rgba(8, 15, 24, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ahh-line);
}

.ahh-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--ahh-header-h);
  gap: 1rem;
}

.ahh-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--ahh-white);
}

.ahh-brand:hover { color: var(--ahh-white); }

.ahh-brand__mark {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.ahh-brand:hover .ahh-brand__mark { transform: scale(1.05); }

.ahh-brand__name {
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: none;
}

@media (min-width: 640px) { .ahh-brand__name { display: block; } }

.ahh-nav { display: none; align-items: center; gap: 0.25rem; }
@media (min-width: 768px) { .ahh-nav { display: flex; } }

.ahh-nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ahh-nav a {
  display: block;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ahh-slate-300);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.ahh-nav a:hover {
  color: var(--ahh-white);
  background-color: var(--ahh-navy-800);
}

.ahh-nav .current-menu-item > a,
.ahh-nav .current_page_item > a,
.ahh-nav .current-menu-parent > a,
.ahh-nav .ahh-nav__item--active > a {
  background-color: var(--ahh-accent-tint);
  color: var(--ahh-brand-300);
}

.ahh-header__actions { display: flex; align-items: center; gap: 0.5rem; }

.ahh-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border: 0;
  background: transparent;
  color: var(--ahh-slate-400);
  border-radius: 0.5rem;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.ahh-icon-btn:hover {
  color: var(--ahh-brand-300);
  background-color: var(--ahh-navy-800);
}

.ahh-menu-toggle { display: inline-flex; }
@media (min-width: 768px) { .ahh-menu-toggle { display: none; } }
.ahh-menu-toggle:hover { color: var(--ahh-white); }
.ahh-menu-toggle .ahh-icon--close { display: none; }
.ahh-menu-toggle[aria-expanded="true"] .ahh-icon--close { display: block; }
.ahh-menu-toggle[aria-expanded="true"] .ahh-icon--open { display: none; }

.ahh-mobile-nav {
  display: none;
  border-top: 1px solid var(--ahh-line);
  background-color: var(--ahh-navy-950);
}

.ahh-mobile-nav.is-open { display: block; }
@media (min-width: 768px) { .ahh-mobile-nav.is-open { display: none; } }

.ahh-mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0.75rem 1rem;
}

.ahh-mobile-nav li + li { margin-top: 0.25rem; }

.ahh-mobile-nav a {
  display: block;
  padding: 0.625rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ahh-slate-300);
}

.ahh-mobile-nav a:hover {
  color: var(--ahh-white);
  background-color: var(--ahh-navy-800);
}

.ahh-mobile-nav .current-menu-item > a,
.ahh-mobile-nav .current_page_item > a {
  background-color: var(--ahh-accent-tint);
  color: var(--ahh-brand-300);
}

/* --------------------------------------------------------- search modal */

.ahh-search-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  padding: 6rem 1rem 1rem;
  background-color: rgba(8, 15, 24, 0.85);
  backdrop-filter: blur(6px);
}

.ahh-search-modal.is-open { display: block; }

.ahh-search-modal__panel {
  max-width: 40rem;
  margin-inline: auto;
  background-color: var(--ahh-navy-850);
  border: 1px solid var(--ahh-line);
  border-radius: var(--ahh-radius);
  padding: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}

.ahh-search-form { display: flex; align-items: center; gap: 0.75rem; }

.ahh-search-form input[type="search"] {
  flex: 1;
  min-width: 0;
  background-color: var(--ahh-navy-800);
  border: 1px solid var(--ahh-line);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  color: var(--ahh-white);
  font-size: 1rem;
}

.ahh-search-form input[type="search"]::placeholder { color: var(--ahh-slate-500); }
.ahh-search-form input[type="search"]:focus {
  outline: none;
  border-color: var(--ahh-accent-edge2);
}

.ahh-search-modal__hint {
  margin: 0.75rem 0 0;
  font-size: 0.75rem;
  color: var(--ahh-slate-500);
}

/* -------------------------------------------------------------- buttons */

.ahh-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 1.5rem;
  border-radius: var(--ahh-radius);
  font-weight: 700;
  font-size: 1rem;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.ahh-btn--primary {
  background-color: var(--ahh-brand-400);
  color: var(--ahh-navy-950);
  box-shadow: 0 10px 15px -3px rgba(26, 159, 170, 0.2);
}

.ahh-btn--primary:hover {
  background-color: var(--ahh-brand-300);
  color: var(--ahh-navy-950);
}

.ahh-btn--ghost {
  border-color: var(--ahh-slate-600);
  color: var(--ahh-white);
  font-weight: 500;
  background: transparent;
}

.ahh-btn--ghost:hover {
  border-color: rgba(46, 188, 200, 0.6);
  background-color: var(--ahh-navy-800);
  color: var(--ahh-white);
}

/* ------------------------------------------------------- section header */

.ahh-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.ahh-eyebrow::before {
  content: "";
  display: block;
  height: 1px;
  width: 2rem;
  background-color: var(--ahh-brand-400);
}

.ahh-eyebrow span {
  color: var(--ahh-brand-300);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.ahh-page-head { margin-bottom: 2.5rem; }

.ahh-page-head h1 {
  margin: 0;
  font-size: clamp(1.875rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--ahh-white);
  line-height: 1.15;
}

.ahh-page-head__desc {
  margin: 0.5rem 0 0;
  color: var(--ahh-slate-400);
  font-size: 1.125rem;
}

.ahh-section { padding-block: 4rem; }

.ahh-section--band {
  background-color: rgba(17, 25, 41, 0.5);
  border-block: 1px solid var(--ahh-line-soft);
}

.ahh-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.ahh-section__head h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ahh-white);
}

.ahh-section__head p {
  margin: 0.25rem 0 0;
  color: var(--ahh-slate-400);
}

.ahh-textlink {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ahh-brand-300);
  white-space: nowrap;
}

/* ----------------------------------------------------------------- hero */

.ahh-hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--ahh-header-h);
}

.ahh-hero__bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse at top right, rgba(22, 68, 75, 0.3), transparent 60%),
    radial-gradient(ellipse at bottom left, rgba(118, 34, 23, 0.15), transparent 60%),
    linear-gradient(to bottom right, var(--ahh-navy-950), var(--ahh-navy-900) 50%, var(--ahh-navy-850));
}

.ahh-hero__horizon {
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background-image: linear-gradient(to right, transparent, rgba(46, 188, 200, 0.4), transparent);
}

.ahh-hero__inner {
  position: relative;
  padding-block: 5rem;
  width: 100%;
}

.ahh-hero__grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .ahh-hero__grid { grid-template-columns: 1fr 1fr; }
}

.ahh-hero__eyebrow { margin-bottom: 1.5rem; }

.ahh-hero h1 {
  margin: 0;
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  font-weight: 800;
  color: var(--ahh-white);
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.ahh-hero h1 .ahh-hero__accent {
  display: block;
  color: var(--ahh-brand-400);
}

.ahh-hero__lede {
  margin: 1.5rem 0 0;
  font-size: 1.125rem;
  color: var(--ahh-slate-300);
  line-height: 1.7;
  max-width: 32rem;
}

.ahh-hero__actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.ahh-hazard-row {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
}

.ahh-hazard-row__item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.ahh-hazard-row__item span {
  font-size: 0.75rem;
  color: var(--ahh-slate-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ahh-hazard-row__item svg { width: 1rem; height: 1rem; }

.ahh-icon--brand { color: var(--ahh-brand-300); }
.ahh-icon--hazard { color: var(--ahh-hazard-500); }

/* Radar logo cluster */

.ahh-hero__figure { display: none; }

@media (min-width: 1024px) {
  .ahh-hero__figure {
    display: flex;
    justify-content: center;
    align-items: center;
  }
}

.ahh-radar { position: relative; }

.ahh-radar__ring {
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  border: 1px solid rgba(46, 188, 200, 0.3);
  animation: ahh-radar-ping 2.4s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.ahh-radar__ring--delay { animation-delay: 1.2s; }

.ahh-radar__ticks {
  position: absolute;
  inset: -1rem;
  border-radius: 9999px;
  border: 2px dashed rgba(22, 68, 75, 0.5);
}

.ahh-radar__logo {
  position: relative;
  width: 20rem;
  height: 20rem;
  border-radius: 9999px;
  object-fit: cover;
  box-shadow: 0 25px 50px -12px rgba(26, 159, 170, 0.1);
  outline: 4px solid var(--ahh-navy-850);
}

.ahh-radar__badge {
  position: absolute;
  width: 3rem;
  height: 3rem;
  background-color: var(--ahh-navy-850);
  border: 1px solid rgba(22, 82, 89, 0.5);
  border-radius: var(--ahh-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
}

.ahh-radar__badge svg { width: 1.5rem; height: 1.5rem; }
.ahh-radar__badge--tl { top: -0.5rem; left: -0.5rem; }
.ahh-radar__badge--tr { top: -0.5rem; right: -0.5rem; }
.ahh-radar__badge--bl { bottom: -0.5rem; left: -0.5rem; }
.ahh-radar__badge--br { bottom: -0.5rem; right: -0.5rem; }
.ahh-radar__badge--l  { top: 50%; left: -1.5rem; transform: translateY(-50%); }
.ahh-radar__badge--r  { top: 50%; right: -1.5rem; transform: translateY(-50%); }

@keyframes ahh-radar-ping {
  0%   { transform: scale(0.8); opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 0; }
}

@keyframes ahh-wave-pulse {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 0.8; }
}

.ahh-wave-pulse { animation: ahh-wave-pulse 3s ease-in-out infinite; }

/* -------------------------------------------------------- episode cards */

.ahh-episode-list { display: grid; gap: 1rem; }

.ahh-episode-card {
  display: block;
  background-color: var(--ahh-card);
  border: 1px solid var(--ahh-line-soft);
  border-radius: var(--ahh-radius);
  padding: 1.25rem;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.ahh-episode-card:hover {
  background-color: var(--ahh-navy-850);
  border-color: rgba(21, 101, 113, 0.4);
}

.ahh-episode-card__row { display: flex; align-items: flex-start; gap: 1rem; }

.ahh-play-btn {
  flex: 0 0 auto;
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--ahh-navy-800);
  color: var(--ahh-slate-300);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.ahh-episode-card:hover .ahh-play-btn,
.ahh-play-btn:hover,
.ahh-play-btn.is-playing {
  background-color: var(--ahh-brand-400);
  color: var(--ahh-navy-950);
}

.ahh-play-btn svg { width: 1.25rem; height: 1.25rem; }
.ahh-play-btn .ahh-icon--pause { display: none; }
.ahh-play-btn.is-playing .ahh-icon--pause { display: block; }
.ahh-play-btn.is-playing .ahh-icon--play { display: none; }

.ahh-episode-card__body { flex: 1 1 auto; min-width: 0; }

.ahh-episode-card__meta-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.ahh-ep-number {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ahh-brand-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ahh-ep-season { font-size: 0.75rem; color: var(--ahh-slate-500); }

.ahh-episode-card__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ahh-white);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ahh-episode-card:hover .ahh-episode-card__title { color: var(--ahh-brand-300); }

.ahh-episode-card__excerpt {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  color: var(--ahh-slate-400);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ahh-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 0.75rem;
}

.ahh-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  color: var(--ahh-slate-500);
}

.ahh-meta svg { width: 0.875rem; height: 0.875rem; }

/* Season filter pills */

.ahh-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.ahh-filters > svg { width: 1rem; height: 1rem; color: var(--ahh-slate-500); }

.ahh-pill {
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ahh-slate-400);
  border: 1px solid transparent;
  background: transparent;
}

.ahh-pill:hover { color: var(--ahh-white); background-color: var(--ahh-navy-800); }

.ahh-pill.is-active {
  background-color: var(--ahh-accent-tint);
  color: var(--ahh-brand-300);
  border-color: var(--ahh-accent-edge2);
}

/* ------------------------------------------------------ single episode */

.ahh-page-body { padding-top: calc(var(--ahh-header-h) + 2rem); padding-bottom: 8rem; }

.ahh-backlink {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ahh-slate-400);
  margin-bottom: 2rem;
}

.ahh-backlink:hover { color: var(--ahh-white); }
.ahh-backlink svg { width: 1rem; height: 1rem; }

.ahh-episode-header { margin-bottom: 2rem; }

.ahh-episode-header h1 {
  margin: 0;
  font-size: clamp(1.875rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--ahh-white);
  line-height: 1.2;
}

.ahh-episode-header .ahh-meta-row { margin-top: 1rem; }
.ahh-episode-header .ahh-meta { font-size: 0.875rem; color: var(--ahh-slate-400); }
.ahh-episode-header .ahh-meta svg { width: 1rem; height: 1rem; }

.ahh-play-panel {
  background-color: var(--ahh-card);
  border: 1px solid var(--ahh-line-soft);
  border-radius: var(--ahh-radius);
  padding: 1.25rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.ahh-play-panel .ahh-play-btn {
  width: 3.5rem;
  height: 3.5rem;
  background-color: var(--ahh-brand-400);
  color: var(--ahh-navy-950);
}

.ahh-play-panel .ahh-play-btn:hover { background-color: var(--ahh-brand-300); }
.ahh-play-panel .ahh-play-btn svg { width: 1.5rem; height: 1.5rem; }

.ahh-play-panel__label { margin: 0; font-weight: 500; color: var(--ahh-white); }
.ahh-play-panel__sub { margin: 0; font-size: 0.875rem; color: var(--ahh-slate-400); }
.ahh-play-panel__share { margin-left: auto; }

.ahh-episode-section { margin-bottom: 2rem; }

.ahh-episode-section h2 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ahh-white);
  margin: 0 0 0.75rem;
}

.ahh-episode-nav {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--ahh-line-soft);
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .ahh-episode-nav { grid-template-columns: 1fr 1fr; }
}

.ahh-episode-nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background-color: var(--ahh-card);
  border: 1px solid var(--ahh-line-soft);
  border-radius: var(--ahh-radius);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.ahh-episode-nav a:hover {
  background-color: var(--ahh-navy-850);
  border-color: rgba(21, 101, 113, 0.4);
}

.ahh-episode-nav a.ahh-episode-nav__next {
  text-align: right;
  justify-content: flex-end;
}

.ahh-episode-nav svg { width: 1.25rem; height: 1.25rem; color: var(--ahh-slate-500); flex: 0 0 auto; }
.ahh-episode-nav a:hover svg { color: var(--ahh-brand-300); }
.ahh-episode-nav__label { margin: 0 0 0.125rem; font-size: 0.75rem; color: var(--ahh-slate-500); }
.ahh-episode-nav__title {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ahh-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ahh-episode-nav a:hover .ahh-episode-nav__title { color: var(--ahh-brand-300); }

/* ------------------------------------------------------- editable prose */

.ahh-prose { color: var(--ahh-slate-300); line-height: 1.75; }

.ahh-prose > *:first-child { margin-top: 0; }
.ahh-prose > *:last-child { margin-bottom: 0; }

.ahh-prose p { margin: 0 0 1.25rem; }

.ahh-prose h1,
.ahh-prose h2,
.ahh-prose h3,
.ahh-prose h4,
.ahh-prose h5,
.ahh-prose h6 {
  color: var(--ahh-white);
  font-weight: 700;
  line-height: 1.25;
  margin: 2.5rem 0 1rem;
}

.ahh-prose h1 { font-size: 2rem; }
.ahh-prose h2 { font-size: 1.5rem; }
.ahh-prose h3 { font-size: 1.25rem; font-weight: 600; }
.ahh-prose h4 { font-size: 1.0625rem; font-weight: 600; }

.ahh-prose a { color: var(--ahh-brand-300); text-decoration: underline; text-underline-offset: 2px; }
.ahh-prose a:hover { color: var(--ahh-brand-200); }

.ahh-prose strong { color: var(--ahh-white); }

.ahh-prose ul,
.ahh-prose ol { margin: 0 0 1.25rem; padding-left: 1.5rem; }
.ahh-prose li { margin-bottom: 0.375rem; }

.ahh-prose blockquote {
  margin: 1.75rem 0;
  padding: 0.25rem 0 0.25rem 1.25rem;
  border-left: 3px solid var(--ahh-brand-400);
  color: var(--ahh-slate-300);
  font-style: italic;
}

.ahh-prose blockquote cite {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  font-style: normal;
  color: var(--ahh-slate-500);
}

.ahh-prose hr {
  border: 0;
  height: 1px;
  background-image: linear-gradient(to right, transparent, var(--ahh-brand-800), transparent);
  margin: 3rem 0;
}

.ahh-prose img,
.ahh-prose figure { border-radius: var(--ahh-radius); }
.ahh-prose figure { margin: 2rem 0; }

.ahh-prose figcaption {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: var(--ahh-slate-500);
  text-align: center;
}

.ahh-prose code {
  background-color: var(--ahh-navy-850);
  border: 1px solid var(--ahh-line-soft);
  border-radius: 0.375rem;
  padding: 0.125rem 0.375rem;
  font-size: 0.875em;
  color: var(--ahh-brand-200);
}

.ahh-prose pre {
  background-color: var(--ahh-navy-950);
  border: 1px solid var(--ahh-line-soft);
  border-radius: var(--ahh-radius);
  padding: 1.25rem;
  overflow-x: auto;
}

.ahh-prose pre code { background: none; border: 0; padding: 0; color: var(--ahh-slate-300); }

.ahh-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.75rem 0;
  font-size: 0.9375rem;
}

.ahh-prose th,
.ahh-prose td {
  border: 1px solid var(--ahh-line-soft);
  padding: 0.625rem 0.875rem;
  text-align: left;
}

.ahh-prose th { background-color: var(--ahh-navy-850); color: var(--ahh-white); font-weight: 600; }

/* Core block support */

.ahh-prose .wp-block-image { margin: 2rem 0; }
.ahh-prose .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  background-color: var(--ahh-brand-400);
  color: var(--ahh-navy-950);
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: var(--ahh-radius);
  text-decoration: none;
}
.ahh-prose .wp-block-button__link:hover { background-color: var(--ahh-brand-300); color: var(--ahh-navy-950); }
.ahh-prose .is-style-outline .wp-block-button__link {
  background: transparent;
  color: var(--ahh-white);
  border: 1px solid var(--ahh-slate-600);
}
.ahh-prose .wp-block-separator {
  border: 0;
  height: 1px;
  background-image: linear-gradient(to right, transparent, var(--ahh-brand-800), transparent);
}
.ahh-prose .wp-block-quote { border-left: 3px solid var(--ahh-brand-400); }
.ahh-prose .wp-block-group,
.ahh-prose .wp-block-columns { margin-block: 2rem; }

.ahh-prose .alignwide {
  width: min(100vw - 2rem, 72rem);
  margin-inline: calc(50% - min(50vw - 1rem, 36rem));
  max-width: none;
}

.ahh-prose .alignfull {
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  max-width: none;
}

.ahh-prose .alignleft { float: left; margin: 0.5rem 1.5rem 1rem 0; }
.ahh-prose .alignright { float: right; margin: 0.5rem 0 1rem 1.5rem; }
.ahh-prose .aligncenter { margin-inline: auto; }

/* ------------------------------------------------------- feature cards */

.ahh-cards {
  display: grid;
  gap: 1.5rem;
  margin-block: 2.5rem;
}

@media (min-width: 640px) {
  .ahh-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ahh-cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.ahh-card {
  background-color: var(--ahh-card);
  border: 1px solid var(--ahh-line-soft);
  border-radius: var(--ahh-radius);
  padding: 1.25rem;
}

.ahh-card__icon,
.ahh-badge-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--ahh-accent-tint);
  border: 1px solid var(--ahh-accent-edge);
  color: var(--ahh-brand-400);
  margin-bottom: 0.75rem;
}

.ahh-card__icon svg,
.ahh-badge-icon svg { width: 1.25rem; height: 1.25rem; }

.ahh-card__icon--hazard,
.ahh-badge-icon--hazard {
  background-color: var(--ahh-hazard-tint);
  border-color: var(--ahh-hazard-edge);
  color: var(--ahh-hazard-500);
}

.ahh-card h3 { margin: 0 0 0.5rem; color: var(--ahh-white); font-size: 1rem; font-weight: 600; }
.ahh-card p { margin: 0; font-size: 0.875rem; color: var(--ahh-slate-400); line-height: 1.6; }

.ahh-section-title-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.ahh-section-title-row .ahh-badge-icon { margin-bottom: 0; flex: 0 0 auto; }
.ahh-section-title-row .ahh-eyebrow { margin-bottom: 0; }
.ahh-section-title-row .ahh-eyebrow::before { width: 1.5rem; }
.ahh-section-title-row .ahh-eyebrow span { font-size: 0.75rem; }
.ahh-section-title-row h1,
.ahh-section-title-row h2 {
  margin: 0.25rem 0 0;
  color: var(--ahh-white);
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 700;
  line-height: 1.15;
}

/* ------------------------------------------------------------- footer */

.ahh-footer {
  background-color: var(--ahh-navy-950);
  border-top: 1px solid var(--ahh-line);
}

.ahh-footer__grid {
  display: grid;
  gap: 2rem;
  padding-block: 3rem;
}

@media (min-width: 768px) {
  .ahh-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.ahh-footer__about { margin: 0; font-size: 0.875rem; color: var(--ahh-slate-400); line-height: 1.7; }
.ahh-footer .ahh-brand { margin-bottom: 1rem; }

.ahh-footer h2 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ahh-white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 1rem;
}

.ahh-footer ul { list-style: none; margin: 0; padding: 0; }
.ahh-footer li + li { margin-top: 0.5rem; }

.ahh-footer a {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: var(--ahh-slate-400);
}

.ahh-footer a:hover { color: var(--ahh-brand-300); }
.ahh-footer a svg { width: 0.875rem; height: 0.875rem; flex: 0 0 auto; }

.ahh-footer__bottom {
  margin-top: 2.5rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
  border-top: 1px solid var(--ahh-line);
  text-align: center;
}

.ahh-footer__bottom p { margin: 0; font-size: 0.875rem; color: var(--ahh-slate-500); }

/* ------------------------------------------------------- audio player */

.ahh-player {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 55;
  background-color: var(--ahh-navy-950);
  border-top: 1px solid rgba(22, 82, 89, 0.5);
  box-shadow: 0 -25px 50px -12px rgba(0, 0, 0, 0.5);
  transform: translateY(100%);
  transition: transform 0.25s ease;
}

.ahh-player.is-active { transform: translateY(0); }

.ahh-player__row {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 4rem;
}

@media (min-width: 640px) { .ahh-player__row { height: 5rem; } }

.ahh-player__toggle {
  flex: 0 0 auto;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 9999px;
  background-color: var(--ahh-brand-400);
  color: var(--ahh-navy-950);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ahh-player__toggle:hover { background-color: var(--ahh-brand-300); }
.ahh-player__toggle svg { width: 1.25rem; height: 1.25rem; }
.ahh-player__toggle .ahh-icon--pause { display: none; }
.ahh-player.is-playing .ahh-player__toggle .ahh-icon--pause { display: block; }
.ahh-player.is-playing .ahh-player__toggle .ahh-icon--play { display: none; }

.ahh-player__body { flex: 1 1 auto; min-width: 0; }

.ahh-player__title {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ahh-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ahh-player__title a { color: inherit; }
.ahh-player__title a:hover { color: var(--ahh-brand-300); }

.ahh-player__scrub {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.ahh-player__time { font-size: 0.75rem; color: var(--ahh-slate-400); flex: 0 0 auto; font-variant-numeric: tabular-nums; }

.ahh-player__track {
  flex: 1 1 auto;
  height: 0.375rem;
  background-color: var(--ahh-navy-800);
  border-radius: 9999px;
  cursor: pointer;
  position: relative;
}

.ahh-player__fill {
  height: 100%;
  width: 0;
  background-color: var(--ahh-brand-400);
  border-radius: 9999px;
  position: relative;
}

.ahh-player__fill::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translate(50%, -50%);
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 9999px;
  background-color: var(--ahh-white);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.ahh-player__track:hover .ahh-player__fill { background-color: var(--ahh-brand-300); }
.ahh-player__track:hover .ahh-player__fill::after { opacity: 1; }

.ahh-player__volume { display: none; align-items: center; gap: 0.5rem; flex: 0 0 auto; }
@media (min-width: 640px) { .ahh-player__volume { display: flex; } }

.ahh-player__volume button {
  border: 0;
  background: none;
  color: var(--ahh-slate-400);
  padding: 0.375rem;
  display: flex;
}

.ahh-player__volume button:hover { color: var(--ahh-white); }
.ahh-player__volume svg { width: 1rem; height: 1rem; }

.ahh-player__volume input[type="range"] {
  width: 5rem;
  height: 0.25rem;
  appearance: none;
  background-color: var(--ahh-navy-800);
  border-radius: 9999px;
  cursor: pointer;
}

.ahh-player__volume input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 9999px;
  background-color: var(--ahh-white);
}

.ahh-player__volume input[type="range"]::-moz-range-thumb {
  width: 0.75rem;
  height: 0.75rem;
  border: 0;
  border-radius: 9999px;
  background-color: var(--ahh-white);
}

.ahh-player__close {
  border: 0;
  background: none;
  color: var(--ahh-slate-500);
  padding: 0.375rem;
  display: flex;
  flex: 0 0 auto;
}

.ahh-player__close:hover { color: var(--ahh-white); }
.ahh-player__close svg { width: 1rem; height: 1rem; }

/* ------------------------------------------------- subscribe / platform */

.ahh-platforms {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.ahh-platforms a {
  padding: 0.625rem 1.25rem;
  background-color: var(--ahh-navy-800);
  border: 1px solid rgba(22, 82, 89, 0.5);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ahh-slate-300);
  transition: all 0.15s ease;
}

.ahh-platforms a:hover {
  background-color: var(--ahh-navy-850);
  border-color: rgba(46, 188, 200, 0.4);
  color: var(--ahh-brand-300);
}

.ahh-center { text-align: center; }
.ahh-center h2 { font-size: 1.5rem; font-weight: 700; color: var(--ahh-white); margin: 0 0 0.75rem; }
.ahh-center > p { color: var(--ahh-slate-400); margin: 0 0 2rem; }

/* ---------------------------------------------------- sponsor + panels */

.ahh-panel {
  background-color: var(--ahh-card);
  border: 1px solid var(--ahh-line-soft);
  border-radius: 1rem;
  padding: 2rem;
}

@media (min-width: 640px) { .ahh-panel { padding: 2.5rem; } }

.ahh-panel--center { text-align: center; display: flex; flex-direction: column; align-items: center; }

.ahh-panel__logo { height: 5rem; width: auto; object-fit: contain; margin-bottom: 1.5rem; }

.ahh-panel h2 { font-size: 1.5rem; font-weight: 700; color: var(--ahh-white); margin: 0 0 1rem; }

.ahh-note {
  margin-top: 3rem;
  background-color: var(--ahh-card-faint);
  border: 1px solid var(--ahh-line-faint);
  border-radius: var(--ahh-radius);
  padding: 1.5rem;
  text-align: center;
}

.ahh-note .ahh-badge-icon { margin-inline: auto; margin-bottom: 0.75rem; }
.ahh-note h3 { font-size: 1.125rem; font-weight: 600; color: var(--ahh-white); margin: 0 0 0.5rem; }
.ahh-note p { margin: 0; font-size: 0.875rem; color: var(--ahh-slate-400); }

/* ------------------------------------------------------- host / avatar */

.ahh-host { display: flex; flex-direction: column; gap: 1.5rem; }
@media (min-width: 640px) { .ahh-host { flex-direction: row; align-items: flex-start; } }

.ahh-host__photo {
  width: 7rem;
  height: 7rem;
  border-radius: var(--ahh-radius);
  object-fit: cover;
  flex: 0 0 auto;
}

.ahh-host__placeholder {
  width: 7rem;
  height: 7rem;
  border-radius: var(--ahh-radius);
  background-color: var(--ahh-navy-800);
  border: 1px solid var(--ahh-line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ahh-slate-500);
  flex: 0 0 auto;
}

.ahh-host__placeholder svg { width: 3rem; height: 3rem; }
.ahh-host h3 { margin: 0 0 0.75rem; font-size: 1.25rem; font-weight: 700; color: var(--ahh-white); }

.ahh-social { display: flex; align-items: center; gap: 0.75rem; margin-top: 1rem; }
.ahh-social a { padding: 0.5rem; color: var(--ahh-slate-400); border-radius: 0.5rem; display: flex; }
.ahh-social a:hover { color: var(--ahh-brand-300); background-color: var(--ahh-navy-800); }
.ahh-social svg { width: 1.25rem; height: 1.25rem; }

/* -------------------------------------------------------- topic tiles */

.ahh-topics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (min-width: 640px) { .ahh-topics { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .ahh-topics { grid-template-columns: repeat(7, minmax(0, 1fr)); } }

.ahh-topic {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background-color: var(--ahh-card-faint);
  border: 1px solid var(--ahh-line-faint);
  border-radius: 0.5rem;
  transition: border-color 0.2s ease;
}

.ahh-topic:hover { border-color: rgba(21, 101, 113, 0.4); }
.ahh-topic svg { width: 1.25rem; height: 1.25rem; color: var(--ahh-brand-300); }
.ahh-topic span { font-size: 0.75rem; color: var(--ahh-slate-400); text-align: center; line-height: 1.3; }

.ahh-subhead {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ahh-slate-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 1rem;
}

/* --------------------------------------------------- empty / 404 / misc */

.ahh-empty { text-align: center; padding-block: 4rem; }

.ahh-empty__icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.5rem;
  background-color: var(--ahh-navy-800);
  border: 1px solid var(--ahh-line);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ahh-slate-500);
}

.ahh-empty__icon svg { width: 2rem; height: 2rem; }
.ahh-empty h2 { font-size: 1.5rem; font-weight: 700; color: var(--ahh-white); margin: 0 0 0.75rem; }
.ahh-empty p { color: var(--ahh-slate-400); max-width: 28rem; margin-inline: auto; }

.ahh-count { margin-top: 2rem; text-align: center; font-size: 0.875rem; color: var(--ahh-slate-500); }

.ahh-pagination {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.ahh-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding-inline: 0.75rem;
  border-radius: 0.5rem;
  background-color: var(--ahh-card);
  border: 1px solid var(--ahh-line-soft);
  color: var(--ahh-slate-300);
  font-size: 0.875rem;
  font-weight: 500;
}

.ahh-pagination .page-numbers:hover { border-color: var(--ahh-accent-edge2); color: var(--ahh-brand-300); }

.ahh-pagination .page-numbers.current {
  background-color: var(--ahh-accent-tint);
  border-color: var(--ahh-accent-edge2);
  color: var(--ahh-brand-300);
}

/* Search results list */

.ahh-result {
  display: block;
  padding: 1.25rem;
  background-color: var(--ahh-card);
  border: 1px solid var(--ahh-line-soft);
  border-radius: var(--ahh-radius);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.ahh-result:hover { background-color: var(--ahh-navy-850); border-color: rgba(21, 101, 113, 0.4); }
.ahh-result h2 { margin: 0.25rem 0 0.5rem; font-size: 1.0625rem; font-weight: 600; color: var(--ahh-white); }
.ahh-result:hover h2 { color: var(--ahh-brand-300); }
.ahh-result p { margin: 0; font-size: 0.875rem; color: var(--ahh-slate-400); }
.ahh-result__kind { font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ahh-brand-400); font-weight: 700; }

/* Comments (kept minimal, matching the palette) */

.ahh-comments { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--ahh-line-soft); }
.ahh-comments h2 { font-size: 1.25rem; color: var(--ahh-white); }
.ahh-comments input[type="text"],
.ahh-comments input[type="email"],
.ahh-comments input[type="url"],
.ahh-comments textarea {
  width: 100%;
  background-color: var(--ahh-navy-850);
  border: 1px solid var(--ahh-line-soft);
  border-radius: 0.5rem;
  padding: 0.625rem 0.875rem;
  color: var(--ahh-white);
}
.ahh-comments .submit {
  background-color: var(--ahh-brand-400);
  color: var(--ahh-navy-950);
  border: 0;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: var(--ahh-radius);
}

/* WordPress admin bar offset */

body.admin-bar .ahh-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .ahh-header { top: 46px; } }

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
