/* =========================================================
   Sue's Diner — shared styles for the story + episode pages
   Loaded after styles.css; uses the same palette and type.
   ========================================================= */

[hidden] {
  display: none !important;
}

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

.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(54px, 8vw, 92px) clamp(58px, 8vw, 100px);
  background:
    radial-gradient(circle at 16% 18%, rgba(224, 169, 63, 0.18), transparent 34%),
    radial-gradient(circle at 88% 8%, rgba(192, 48, 60, 0.26), transparent 38%),
    linear-gradient(155deg, #0c2820 0%, var(--green) 52%, #174a3a 100%);
  color: var(--cream);
}

.page-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 15px;
  border-top: 2px solid var(--ink);
  background: repeating-linear-gradient(
    90deg,
    var(--red) 0 30px,
    var(--cream) 30px 60px
  );
}

.page-hero-mark {
  position: absolute;
  top: 50%;
  right: clamp(-16px, 2vw, 44px);
  transform: translateY(-50%) rotate(-7deg);
  font-family: var(--font-display);
  font-size: clamp(12rem, 26vw, 24rem);
  line-height: 0.7;
  color: transparent;
  -webkit-text-stroke: 2px rgba(248, 240, 223, 0.09);
  pointer-events: none;
  user-select: none;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  margin: 4px 0 20px;
  max-width: 15ch;
  font-family: var(--font-display);
  font-size: clamp(2.9rem, 7.2vw, 5.6rem);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: -0.01em;
  color: var(--cream);
  text-wrap: balance;
}

.page-hero h1 em {
  font-family: var(--font-hand);
  font-style: normal;
  font-size: 1.1em;
  font-weight: 700;
  line-height: 0.7;
  letter-spacing: 0;
  color: var(--gold);
}

.page-lede {
  max-width: 64ch;
  margin-bottom: 0;
  color: rgba(248, 240, 223, 0.8);
  font-size: clamp(1rem, 1.5vw, 1.13rem);
  line-height: 1.7;
}

.page-lede em {
  color: var(--cream);
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.page-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid rgba(248, 240, 223, 0.28);
  border-radius: 999px;
  background: rgba(8, 26, 21, 0.24);
  color: var(--gold);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero-footnote {
  max-width: 58ch;
  margin: 16px 0 0;
  color: rgba(248, 240, 223, 0.55);
  font-size: 0.76rem;
  line-height: 1.55;
}

/* ---------- Shared section bits ---------- */

.section.alt {
  background: var(--cream-2);
  border-block: 2px solid rgba(35, 26, 22, 0.12);
}

.section-head .eyebrow {
  margin-bottom: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge-canon,
.badge-aired {
  color: var(--green-2);
  background: rgba(30, 81, 64, 0.08);
}

.badge-lore {
  color: var(--red-dark);
  background: rgba(192, 48, 60, 0.08);
}

.badge-soon {
  color: var(--red-dark);
  background: rgba(192, 48, 60, 0.1);
}

.note-box {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  padding: 18px 20px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: rgba(224, 169, 63, 0.13);
  box-shadow: 4px 4px 0 rgba(35, 26, 22, 0.12);
}

.note-icon {
  font-size: 1.5rem;
  line-height: 1.2;
}

.note-box p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.65;
}

.note-box p + p {
  margin-top: 8px;
}

.note-box strong {
  color: var(--red-dark);
}

/* ---------- Story: intro ---------- */

.story-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(28px, 5vw, 60px);
  align-items: start;
}

.story-copy h2 {
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  font-weight: 400;
  line-height: 1.05;
}

.story-copy p {
  margin-bottom: 14px;
  color: #3d2f28;
  font-size: 1rem;
  line-height: 1.75;
}

.story-copy .story-drop::first-letter {
  float: left;
  padding: 7px 10px 0 0;
  color: var(--red);
  font-family: var(--font-display);
  font-size: 3.5rem;
  line-height: 0.72;
}

.story-copy .source-note {
  margin: 20px 0 0;
  padding-top: 14px;
  border-top: 1px dashed rgba(35, 26, 22, 0.28);
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.6;
}

.fact-card {
  padding: 24px;
  border: 2px solid var(--ink);
  border-top: 9px solid var(--red);
  border-radius: 4px;
  background: var(--paper);
  box-shadow: var(--shadow-card);
}

.fact-card h2 {
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 400;
  line-height: 1.05;
}

.fact-list {
  margin: 0;
}

.fact-list > div {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dashed rgba(35, 26, 22, 0.2);
}

.fact-list dt {
  color: var(--muted);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.11em;
  line-height: 1.6;
  text-transform: uppercase;
}

.fact-list dd {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.5;
}

.fact-quote {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 2px solid var(--ink);
  color: var(--red-dark);
  font-family: var(--font-hand);
  font-size: 1.38rem;
  font-weight: 700;
  line-height: 1.18;
}

/* ---------- Story: timeline ---------- */

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

.timeline li {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 26px;
}

.timeline-year {
  padding-top: 2px;
  color: var(--red-dark);
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.2;
  text-align: right;
}

.timeline-body {
  position: relative;
  padding: 0 0 28px 24px;
  border-left: 3px solid rgba(35, 26, 22, 0.16);
}

.timeline-body::before {
  content: "";
  position: absolute;
  top: 5px;
  left: -8.5px;
  width: 14px;
  height: 14px;
  border: 2px solid var(--cream-2);
  border-radius: 50%;
  background: var(--red);
}

.timeline li:last-child .timeline-body {
  padding-bottom: 0;
  border-left-color: transparent;
}

.timeline-body h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.15;
}

.timeline-body p {
  margin: 0;
  max-width: 68ch;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

/* ---------- Story: people ---------- */

.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(238px, 1fr));
  gap: 18px;
}

.person-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: var(--paper);
  box-shadow: var(--shadow-card);
}

.person-card h3 {
  margin-bottom: 2px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.15;
}

.person-role {
  margin-bottom: 0;
  color: var(--red-dark);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.person-read {
  margin: 12px 0;
  padding: 10px 12px;
  border-left: 3px solid var(--gold);
  background: rgba(224, 169, 63, 0.13);
  font-family: var(--font-hand);
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.28;
}

.person-canon {
  margin: auto 0 0;
  padding-top: 10px;
  border-top: 1px dashed rgba(35, 26, 22, 0.2);
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

/* ---------- Story: ordering + glossary ---------- */

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(30px, 5vw, 64px);
  align-items: start;
}

.split-grid h2 {
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 400;
  line-height: 1.05;
}

.split-intro {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.order-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: order;
}

.order-list li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 13px 15px;
  border: 1.5px solid rgba(35, 26, 22, 0.18);
  border-radius: 3px;
  background: var(--paper);
  font-size: 0.9rem;
  line-height: 1.5;
}

.order-list li + li {
  margin-top: 9px;
}

.order-list li::before {
  content: counter(order, decimal-leading-zero);
  counter-increment: order;
  color: var(--red);
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.3;
}

.glossary {
  margin: 0;
}

.glossary > div {
  padding: 13px 0;
  border-bottom: 1px dashed rgba(35, 26, 22, 0.24);
}

.glossary dt {
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.3;
}

.glossary dd {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(28px, 5vw, 48px);
  border: 2px solid var(--ink);
  border-radius: 5px;
  background:
    radial-gradient(circle at 92% 0%, rgba(224, 169, 63, 0.18), transparent 38%),
    var(--green);
  color: var(--cream);
  box-shadow: var(--shadow-deep);
}

.cta-band h2 {
  margin-bottom: 8px;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  font-weight: 400;
  line-height: 1.02;
}

.cta-band p {
  max-width: 52ch;
  margin: 0;
  color: rgba(248, 240, 223, 0.76);
  font-size: 0.94rem;
  line-height: 1.6;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Episodes: status + toolbar ---------- */

.now-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-bottom: 26px;
  padding: 13px 18px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: var(--green);
  color: rgba(248, 240, 223, 0.84);
  box-shadow: 4px 4px 0 rgba(35, 26, 22, 0.18);
  font-size: 0.86rem;
  line-height: 1.5;
}

.now-banner strong {
  color: var(--gold);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.now-banner em {
  color: var(--cream);
}

.pulse-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(192, 48, 60, 0.55);
  animation: pulse 2.2s ease-out infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 9px rgba(192, 48, 60, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(192, 48, 60, 0);
  }
}

.guide-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.season-filters,
.guide-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.filter-btn .count {
  margin-left: 5px;
  opacity: 0.55;
  font-size: 8px;
  letter-spacing: 0.04em;
}

.guide-status {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.guide-note {
  margin-bottom: 34px;
}

/* ---------- Episodes: seasons + cases ---------- */

.season-block + .season-block {
  margin-top: 46px;
}

.season-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 16px;
  margin-bottom: 16px;
  padding-bottom: 9px;
  border-bottom: 3px solid var(--ink);
}

.season-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 400;
  line-height: 1;
}

.season-head span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.case-list {
  display: grid;
  gap: 18px;
}

.case-card {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 5px;
  background: var(--paper);
  box-shadow: var(--shadow-card);
}

.case-card.is-soon {
  border-style: dashed;
}

.case-rail {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 14px;
  background: var(--green);
  color: rgba(248, 240, 223, 0.68);
  text-align: center;
}

.case-card.is-soon .case-rail {
  background: #17453a;
}

.case-no {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
}

.case-rail small {
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.5;
  text-transform: uppercase;
}

.case-main {
  padding: 20px 24px 22px;
}

.case-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 12px;
  margin-bottom: 3px;
}

.case-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.65rem);
  font-weight: 400;
  line-height: 1.1;
}

.case-meta {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.5;
  text-transform: uppercase;
}

.part {
  padding-top: 12px;
  border-top: 1px dashed rgba(35, 26, 22, 0.24);
}

.part + .part {
  margin-top: 12px;
}

.part-label {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin-bottom: 3px;
}

.part-label strong {
  color: var(--red-dark);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.part-label span {
  color: var(--muted);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.ep-synopsis {
  margin: 0;
  max-width: 74ch;
  color: #3d2f28;
  font-size: 0.93rem;
  line-height: 1.65;
}

.ep-synopsis.tba {
  color: var(--muted);
  font-style: italic;
}

.sue-take {
  margin-top: 15px;
  padding: 10px 14px;
  border-left: 3px solid var(--red);
  background: rgba(192, 48, 60, 0.06);
}

.sue-take strong {
  display: block;
  margin-bottom: 1px;
  color: var(--red-dark);
  font-family: var(--font-hand);
  font-size: 1.08rem;
  font-weight: 700;
}

.sue-take p {
  margin: 0;
  font-family: var(--font-hand);
  font-size: 1.16rem;
  font-weight: 600;
  line-height: 1.3;
}

.spoiler-hint {
  display: none;
  margin: 12px 0 0;
  color: var(--muted);
  font-family: var(--font-hand);
  font-size: 1.16rem;
  font-weight: 600;
}

body.spoiler-free .ep-synopsis {
  display: none;
}

body.spoiler-free .spoiler-hint {
  display: block;
}

.case-card.flash {
  animation: caseFlash 1.5s ease;
}

@keyframes caseFlash {
  0%,
  100% {
    box-shadow: var(--shadow-card);
  }
  28% {
    box-shadow: 0 0 0 5px var(--gold), var(--shadow-card);
  }
}

/* ---------- Episodes: watch strip ---------- */

.watch-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.watch-item {
  padding: 16px 18px;
  border: 1.5px solid rgba(35, 26, 22, 0.2);
  border-radius: 3px;
  background: var(--paper);
}

.watch-item strong {
  display: block;
  margin-bottom: 4px;
  color: var(--red-dark);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.watch-item span {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.show-notes {
  max-width: 72ch;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.65;
}

.show-notes strong {
  color: var(--ink);
}

/* ---------- Footer link ---------- */

.footer-link-strong {
  display: inline-block;
  margin-top: 4px;
  color: var(--gold);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: underline dotted;
  text-underline-offset: 4px;
}

.footer-link-strong:hover {
  color: var(--cream);
}

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .story-intro {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 34px;
  }

  .watch-strip {
    grid-template-columns: 1fr 1fr;
  }

  .watch-item:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 880px) {
  .story-intro,
  .split-grid {
    grid-template-columns: 1fr;
  }

  .fact-card {
    max-width: 560px;
  }

  .page-hero-mark {
    opacity: 0.6;
  }

  .cta-band {
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .case-card {
    grid-template-columns: 1fr;
  }

  .case-rail {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 9px 16px;
    text-align: left;
  }

  .case-no {
    font-size: 1.25rem;
  }

  .case-rail small {
    margin-left: auto;
  }

  .case-main {
    padding: 18px 18px 20px;
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .timeline-year {
    padding-top: 0;
    text-align: left;
  }

  .timeline-body {
    padding: 0 0 22px;
    border-left: 0;
  }

  .timeline-body::before {
    display: none;
  }

  .watch-strip {
    grid-template-columns: 1fr;
  }

  .watch-item:last-child {
    grid-column: auto;
  }
}

@media (max-width: 520px) {
  .page-hero {
    padding-block: 44px 64px;
  }

  .page-hero-mark {
    display: none;
  }

  .page-meta {
    gap: 6px;
  }

  .page-chip {
    padding: 5px 10px;
    font-size: 8px;
  }

  .fact-card {
    padding: 20px 18px;
  }

  .fact-list > div {
    grid-template-columns: 70px minmax(0, 1fr);
  }

  .person-card {
    padding: 18px;
  }

  .guide-toolbar {
    align-items: flex-start;
  }

  .cta-actions .btn {
    flex: 1 1 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pulse-dot,
  .case-card.flash {
    animation: none;
  }
}
