:root {
  --bg-deep: #090c14;
  --bg-card: rgba(15, 22, 34, 0.88);
  --border-subtle: rgba(244, 240, 232, 0.11);
  --border-strong: rgba(244, 240, 232, 0.24);

  --text-primary: #f5f2eb;
  --text-secondary: #cbc8bf;
  --text-muted: #8c95a6;

  --parchment: #e9dcc3;
  --crimson: #d61f2c;
  --crimson-bright: #ef2b39;
  --medical-blue: #38bdf8;
  --amber: #eab308;

  --font-display: 'Unbounded', 'Segoe UI', system-ui, sans-serif;
  --font-editorial: 'Playfair Display', Georgia, serif;
  --font-sans: 'Manrope', 'Segoe UI', system-ui, sans-serif;

  --radius-md: 16px;
  --radius-lg: 22px;
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.66;
  color: var(--text-primary);
  background:
    radial-gradient(ellipse 75% 45% at 15% 0%, rgba(214, 31, 44, 0.16), transparent 55%),
    radial-gradient(ellipse 65% 45% at 88% 12%, rgba(56, 189, 248, 0.12), transparent 55%),
    var(--bg-deep);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

button {
  font: inherit;
  color: inherit;
}

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

[hidden] {
  display: none !important;
}

.container {
  width: min(1220px, 100% - 32px);
  margin-inline: auto;
}

/* PROGRESS BAR */
.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 100;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.read-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--crimson), var(--parchment), var(--medical-blue));
}

/* HEADER */
.topbar {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(9, 12, 20, 0.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 70px;
}

.brand-cluster {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex-shrink: 0;
}

.portal-back-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-strong);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--parchment);
  white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.portal-back-pill:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--crimson-bright);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 7px;
  background: var(--crimson);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.9rem;
  box-shadow: 0 4px 16px rgba(214, 31, 44, 0.35);
}

.brand-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-meta strong {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: var(--parchment);
}

.brand-meta span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.mode-switch {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 3px;
  flex-shrink: 0;
}

.mode-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.mode-btn:hover {
  color: #fff;
}

.mode-btn.active {
  background: linear-gradient(135deg, var(--crimson), #9f121e);
  color: #fff;
  box-shadow: 0 4px 14px rgba(214, 31, 44, 0.4);
}

.mode-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* SHARED */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pill-crimson {
  background: rgba(214, 31, 44, 0.22);
  border: 1px solid rgba(239, 43, 57, 0.45);
  color: #ffc8cc;
}

.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-lg);
}

.btn-crimson,
.btn-outline,
.btn-copy-post,
.btn-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: transform 0.16s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-crimson {
  padding: 12px 20px;
  border: 1px solid rgba(239, 43, 57, 0.55);
  background: linear-gradient(135deg, var(--crimson), #a5131f);
  color: #fff;
  box-shadow: 0 10px 26px rgba(214, 31, 44, 0.35);
}

.btn-crimson:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(239, 43, 57, 0.45);
}

.btn-outline {
  padding: 11px 18px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--parchment);
}

.btn-outline:hover {
  border-color: var(--parchment);
  background: rgba(255, 255, 255, 0.09);
}

.btn-text {
  background: transparent;
  border: 0;
  padding: 6px 10px;
  color: #ff949c;
  font-size: 0.84rem;
}

.btn-text:hover {
  color: #fff;
}

/* HERO */
.report-hero {
  padding: 40px 0 48px;
  border-bottom: 1px solid var(--border-subtle);
}

.kicker-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.meta-date {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 28px;
  align-items: center;
}

.hero-copy h1 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.7vw, 2.3rem);
  line-height: 1.22;
}

.hero-lead {
  margin: 0 0 22px;
  font-size: 1.04rem;
  color: var(--text-secondary);
}

.credits-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}

.credit-item {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
}

.credit-label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.credit-item strong {
  font-size: 0.84rem;
  color: var(--parchment);
}

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

.photo-card {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background: #070a11;
  box-shadow: var(--shadow-lg);
}

.photo-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.zoomable {
  cursor: zoom-in;
}

.photo-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 26px 16px 12px;
  background: linear-gradient(to top, rgba(6, 9, 15, 0.94), rgba(6, 9, 15, 0.55) 60%, transparent);
  font-size: 0.82rem;
  color: var(--text-primary);
}

.cap-tag {
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(214, 31, 44, 0.28);
  border: 1px solid rgba(239, 43, 57, 0.45);
  color: #ffd0d4;
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
}

/* BODY SECTION */
.report-body-section {
  padding: 46px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.signal-box {
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(125deg, rgba(214, 31, 44, 0.14), rgba(15, 22, 34, 0.92));
  border: 1px solid rgba(239, 43, 57, 0.38);
  margin-bottom: 28px;
}

.signal-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  color: #ffc5ca;
  margin-bottom: 8px;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--crimson-bright);
  box-shadow: 0 0 10px var(--crimson-bright);
}

.signal-box blockquote {
  margin: 0;
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: clamp(1.06rem, 1.6vw, 1.3rem);
  color: #fff;
}

.story-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 24px;
  align-items: start;
}

.story-prose h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--parchment);
}

.story-prose h3 {
  margin: 22px 0 10px;
  font-family: var(--font-display);
  font-size: 1rem;
  color: #93c5fd;
}

.story-prose p {
  margin: 0 0 14px;
  color: var(--text-secondary);
}

.story-closing {
  margin-top: 18px;
  padding-left: 14px;
  border-left: 3px solid var(--crimson);
  color: var(--parchment);
  font-weight: 600;
}

.side-stack {
  display: grid;
  gap: 20px;
}

.info-title {
  font-family: var(--font-display);
  font-size: 0.78rem;
  color: var(--parchment);
  margin-bottom: 14px;
}

.info-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.info-list > div {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}

.info-list > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.info-list dt {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.info-list dd {
  margin: 2px 0 0;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-primary);
}

/* INTERVIEW */
.interview-section {
  padding: 46px 0;
}

.interview-head h2 {
  margin: 10px 0 8px;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.interview-head p {
  margin: 0 0 22px;
  color: var(--text-secondary);
}

.dialogue-list {
  display: grid;
  gap: 14px;
  margin-bottom: 26px;
}

.dialogue-turn {
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
}

.turn-tsn {
  background: rgba(214, 31, 44, 0.1);
  border-color: rgba(239, 43, 57, 0.28);
}

.turn-ems {
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.26);
}

.speaker-tag {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--parchment);
  margin-bottom: 6px;
}

.dialogue-turn p {
  margin: 0;
  color: var(--text-primary);
}

.share-post-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--border-subtle);
}

.share-post-bar strong {
  display: block;
  font-size: 0.94rem;
}

.share-post-bar span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.btn-copy-post {
  padding: 10px 16px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.btn-copy-post:hover {
  border-color: var(--crimson-bright);
}

.btn-copy-post.copied {
  background: #2f855a;
  border-color: transparent;
}

.btn-copy-post svg {
  width: 16px;
  height: 16px;
}

/* EMS BANNER */
.ems-banner {
  border-top: 1px solid rgba(239, 43, 57, 0.4);
  background: linear-gradient(90deg, rgba(165, 19, 31, 0.95), rgba(15, 22, 36, 0.96));
  padding: 16px 0;
}

.ems-banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.82rem;
}

.ems-banner strong {
  font-family: var(--font-display);
  font-size: 0.78rem;
  color: #fff;
}

.ems-banner span {
  color: rgba(255, 255, 255, 0.85);
}

/* BROADSHEET HD VIEW */
.broadsheet-view {
  padding: 40px 0 64px;
}

.broadsheet-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.broadsheet-toolbar h2 {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.broadsheet-stage {
  display: flex;
  justify-content: center;
}

.broadsheet-figure {
  position: relative;
  margin: 0;
  max-width: 960px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
}

.broadsheet-figure img {
  width: 100%;
  height: auto;
}

.zoom-hint {
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(9, 12, 20, 0.84);
  border: 1px solid var(--border-strong);
  font-size: 0.76rem;
  font-weight: 700;
  color: #fff;
}

/* FOOTER */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: #05080f;
  padding: 24px 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

/* LIGHTBOX & TOAST */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(4, 7, 13, 0.92);
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  padding: 24px;
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 22px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-content {
  max-width: 96vw;
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.7);
}

.lightbox-content p {
  margin: 0;
  color: var(--parchment);
  font-size: 0.92rem;
  text-align: center;
}

.toast {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 260;
  padding: 12px 18px;
  border-radius: 12px;
  background: #101926;
  border: 1px solid var(--crimson-bright);
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  box-shadow: var(--shadow-lg);
}

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

@media (max-width: 640px) {
  html {
    scroll-padding-top: 118px;
  }

  .topbar-inner {
    flex-wrap: wrap;
    padding: 10px 0;
    min-height: auto;
    gap: 8px;
  }

  .brand-cluster {
    width: 100%;
    justify-content: space-between;
  }

  .brand {
    min-width: 0;
    flex-shrink: 1;
  }

  .portal-back-pill {
    padding: 5px 10px;
    font-size: 0.72rem;
  }

  .brand-meta strong {
    font-size: 0.68rem;
  }

  .brand-meta span {
    display: none;
  }

  .mode-switch {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .mode-btn {
    justify-content: center;
    padding: 7px 8px;
    font-size: 0.72rem;
  }

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

  .report-hero {
    padding: 28px 0 36px;
  }

  .glass-card {
    padding: 18px;
  }
}
