:root {
  --paper: #fbf8f1;
  --mint: #dfeee7;
  --mint-soft: #edf7f1;
  --ink: #241c1b;
  --muted: #766965;
  --line: #eadbd1;
  --red: #a41924;
  --red-deep: #7d2830;
  --wine-soft: #a85860;
  --blush: #f7e6df;
  --blush-soft: #fbefea;
  --cream: #fff8ef;
  --shadow: 0 18px 48px rgba(81, 32, 28, 0.1);
  --sans: Arial, Helvetica, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

body:not(.dev-mode) [data-dev-only] {
  display: none !important;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fffaf5;
  font-family: var(--serif);
  overflow-x: hidden;
}

.masthead {
  align-items: center;
  background: #ffffff;
  border-bottom: 1px solid #eee5df;
  color: var(--ink);
  display: flex;
  gap: clamp(16px, 3vw, 36px);
  justify-content: space-between;
  min-height: 78px;
  padding: 10px clamp(18px, 5vw, 38px);
  position: sticky;
  top: 0;
  z-index: 30;
}

.brand {
  align-items: center;
  color: var(--red);
  display: inline-flex;
  gap: 11px;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark-img {
  display: block;
  height: 54px;
  width: 54px;
}

.brand-wordmark-img {
  display: block;
  height: 34px;
  width: auto;
}

.masthead .brand-wordmark-img,
.site-footer .footer-wordmark-img {
  display: none;
}

.brand-script {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.brand-text {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.site-nav {
  align-items: center;
  display: flex;
  flex: 0 1 auto;
  gap: clamp(14px, 2.6vw, 30px);
  justify-content: flex-end;
  margin-left: auto;
}

.nav-toggle {
  align-items: center;
  background: #fff8f2;
  border: 1px solid rgba(164, 25, 36, 0.18);
  border-radius: 10px;
  display: none;
  flex-direction: column;
  gap: 4px;
  height: 40px;
  justify-content: center;
  padding: 0;
  width: 42px;
}

.nav-toggle span {
  background: var(--red);
  border-radius: 999px;
  display: block;
  height: 2px;
  width: 18px;
}

.site-nav a,
.footer-column a,
.footer-column .footer-static {
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  text-decoration: none;
}

.site-nav a:hover,
.footer-column a:hover {
  color: var(--red);
}

.header-cta {
  background: var(--red);
  border: 1px solid var(--red);
  border-radius: 10px;
  color: white;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  padding: 14px 22px;
  text-decoration: none;
  white-space: nowrap;
}

.header-cta:hover {
  background: var(--red-deep);
}

.launch-offer {
  background: #f11622;
  color: white;
  font-family: var(--serif);
  font-size: clamp(17px, 2.2vw, 24px);
  line-height: 1.25;
  padding: 12px 18px;
  text-align: center;
}

.launch-offer .offer-primary,
.launch-offer .offer-savings,
.launch-offer em {
  display: inline-block;
}

.launch-offer .offer-savings,
.launch-offer em {
  margin-left: 12px;
}

.reader-shell {
  margin: 0 auto;
  max-width: min(1080px, calc(100vw - 520px));
  padding: clamp(36px, 5vw, 72px) 22px 86px;
  position: relative;
}

.story-header {
  background: rgba(255, 252, 247, 0.82);
  border: 1px solid rgba(164, 25, 36, 0.1);
  box-shadow: 0 12px 48px rgba(100, 59, 43, 0.07);
  margin-bottom: 54px;
  padding: clamp(34px, 5vw, 62px);
}

.story-brand-wordmark {
  display: block;
  height: auto;
  margin: 0 auto 28px;
  max-width: min(310px, 70vw);
  width: 100%;
}

.story-brand-link {
  display: inline-block;
  text-decoration: none;
}

.story-header,
.gate,
.end-actions,
.progress,
.dev-error,
.empty {
  border-radius: 18px;
}

.chapters {
  background: rgba(255, 252, 247, 0.56);
  border-radius: 22px;
  padding: clamp(30px, 5vw, 54px);
}

.story-header {
  margin-bottom: 44px;
}

.story-highlights {
  background: rgba(255, 248, 239, 0.82);
  border: 1px solid rgba(164, 25, 36, 0.1);
  margin: 22px 0 0;
  padding: 16px;
}

.story-highlights h2 {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.story-highlights-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.highlight-chip {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  min-width: 0;
  padding: 13px;
}

.highlight-label {
  color: var(--red);
  display: block;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.highlight-chip strong {
  display: block;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.25;
}

.eyebrow {
  color: var(--red);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(58px, 6.6vw, 86px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.93;
  margin: 0 0 18px;
  max-width: 820px;
}

.story-id,
.status,
.controls,
.local-note,
.dev-status {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 13px;
}

.story-id {
  font-size: 16px;
  line-height: 1.55;
  margin: 0 0 30px;
  max-width: 620px;
}

.controls {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.fixture-switcher {
  margin-bottom: 18px;
}

.fixture-mode-link {
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(113, 21, 31, 0.12);
  font-weight: 700;
  padding: 10px 16px;
}

.fixture-mode-link[aria-current="page"] {
  background: var(--red-deep);
  border-color: var(--red-deep);
  color: #fff;
}

.fixture-switcher #skip-typing {
  display: none;
}

.controls label {
  font-weight: 700;
  margin-right: 3px;
}

.dev-status {
  background: #fffdf9;
  border: 1px solid var(--line);
  color: var(--ink);
  line-height: 1.45;
  margin: 0 0 18px;
  overflow: auto;
  padding: 12px;
  white-space: pre-wrap;
}

select,
button,
.download-action {
  border: 1px solid var(--line);
  border-radius: 3px;
  font: inherit;
  padding: 10px 14px;
}

select {
  background: #fffdfa;
  color: var(--ink);
  min-width: 220px;
}

button,
.download-action {
  cursor: pointer;
  font-family: var(--sans);
  font-size: 13px;
  text-decoration: none;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
}

button:disabled,
.download-action.disabled {
  cursor: not-allowed;
  opacity: 0.55;
  pointer-events: none;
}

.secondary {
  background: transparent;
  color: var(--red);
}

.secondary:hover:not(:disabled) {
  border-color: var(--red);
}

.status {
  margin: 0;
}

.preview-email-note {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.55;
  margin: 8px 0 0;
  max-width: 660px;
}

.unlock-notice {
  background: var(--cream);
  border-left: 3px solid var(--red);
  color: var(--red-deep);
  font-family: Arial, sans-serif;
  font-size: 13px;
  line-height: 1.5;
  margin: 20px 0 0;
  padding: 11px 14px;
}

.progress {
  background: linear-gradient(135deg, #fffdf8, var(--mint-soft));
  border: 1px solid rgba(164, 25, 36, 0.12);
  margin: 24px 0 0;
  padding: 22px;
}

.progress-copy h2,
.dev-error h2,
.end-actions h2 {
  font-size: clamp(24px, 4vw, 31px);
  font-weight: 400;
  line-height: 1.18;
  margin: 0 0 8px;
}

.progress-copy p,
.dev-error p {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

.progress-track {
  background: #efe4dc;
  border-radius: 999px;
  height: 8px;
  margin-top: 18px;
  overflow: hidden;
}

.progress-bar {
  background: var(--red);
  border-radius: 999px;
  height: 100%;
  min-width: 6%;
  transition: width 250ms ease;
  width: 6%;
}

.dev-error {
  background: #fff8f4;
  border: 1px solid #e6c6bf;
  margin: 24px 0 0;
  padding: 22px;
}

.dev-error pre {
  background: #211818;
  color: #f7eee8;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  line-height: 1.45;
  margin: 16px 0 0;
  max-height: 180px;
  overflow: auto;
  padding: 14px;
  white-space: pre-wrap;
}

.chapter {
  margin: 0 0 56px;
}

.chapter h2 {
  color: var(--red);
  font-family: var(--sans);
  font-size: clamp(13px, 1vw, 16px);
  letter-spacing: 0.2em;
  margin: 0 0 24px;
  text-transform: uppercase;
}

.chapter-text {
  font-size: clamp(20px, 2.15vw, 24px);
  line-height: 1.78;
  margin: 0;
  white-space: pre-wrap;
}

.chapter-text em {
  font-style: italic;
}

.chapter-text strong {
  font-weight: 600;
}

.cursor::after {
  animation: blink 850ms step-end infinite;
  color: var(--red);
  content: "|";
  margin-left: 2px;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.gate,
.end-actions {
  background: linear-gradient(180deg, #fffdf9, #fff6ed);
  border: 1px solid rgba(164, 25, 36, 0.14);
  box-shadow: var(--shadow);
  margin-top: 26px;
  padding: clamp(30px, 6vw, 50px);
  text-align: center;
}

.gate h2,
.end-actions h2,
.empty h2 {
  font-size: clamp(26px, 5vw, 34px);
  font-weight: 400;
  line-height: 1.18;
  margin: 0 auto 16px;
  max-width: 520px;
}

.gate > p:not(.eyebrow):not(.local-note) {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
  margin: 0 auto 28px;
  max-width: 500px;
}

.continue-full-story {
  background: linear-gradient(135deg, #fffdf8, #edf6f0);
  border: 1px solid rgba(164, 25, 36, 0.14);
  border-radius: 22px;
  box-shadow: var(--shadow);
  margin: 10px 0 30px;
  padding: clamp(28px, 5vw, 42px);
  text-align: center;
}

.continue-full-story h2 {
  font-size: clamp(27px, 4vw, 36px);
  font-weight: 400;
  line-height: 1.12;
  margin: 7px auto 12px;
}

.continue-full-story > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
  margin: 0 auto;
  max-width: 580px;
}

.continue-full-story-link {
  background: var(--red);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(178, 24, 39, 0.18);
  color: #fff;
  display: inline-flex;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 800;
  justify-content: center;
  margin-top: 20px;
  padding: 14px 24px;
  text-decoration: none;
}

.continue-full-story-link:hover,
.continue-full-story-link:focus-visible {
  background: #941421;
  color: #fff;
}

.mock-payment-panel {
  background: rgba(223, 238, 231, 0.68);
  border: 1px solid rgba(164, 25, 36, 0.12);
  border-radius: 16px;
  margin: 20px auto 0;
  max-width: 520px;
  padding: 22px 18px 24px;
}

.mock-payment-panel p {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.45;
  margin: 0 0 14px;
}

.mock-payment-panel .mock-payment-kicker {
  color: var(--red);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mock-payment-panel .secure-checkout-line {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  margin: 12px 0 0;
  text-align: center;
}

.completion-copy {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
  margin: 0 auto;
  max-width: 560px;
}

.unlock {
  background: var(--red);
  border-color: var(--red);
  border-radius: 999px;
  color: white;
  display: inline-flex;
  font-size: 15px;
  justify-content: center;
  line-height: 1.2;
  margin-top: 6px;
  min-width: min(330px, 100%);
  padding: 15px 28px;
}

.unlock:hover:not(:disabled) {
  background: var(--red-deep);
  border-color: var(--red-deep);
}

.local-note {
  margin: 18px 0 0;
}

.action-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 25px auto 0;
  max-width: 620px;
}

.action-grid button,
.action-grid a {
  align-items: center;
  background: #fffdf8;
  border-radius: 999px;
  color: var(--red);
  display: inline-flex;
  justify-content: center;
  min-height: 48px;
}

.action-grid a:first-child,
.action-grid a:nth-child(2) {
  background: var(--red);
  border-color: var(--red);
  color: white;
}

.reader-progress-card {
  background: rgba(255, 252, 247, 0.94);
  border: 1px solid rgba(164, 25, 36, 0.16);
  border-radius: 18px;
  bottom: 28px;
  box-shadow: var(--shadow);
  max-width: 260px;
  padding: 10px;
  position: fixed;
  right: 24px;
  z-index: 25;
  backdrop-filter: blur(12px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.reader-progress-toggle {
  background: var(--red);
  border-color: var(--red);
  border-radius: 999px;
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 10px 12px;
  width: 100%;
}

.reader-progress-body {
  padding: 12px 8px 6px;
}

.reader-progress-kicker,
.reader-progress-detail {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.45;
  margin: 0;
}

.unlock-prompt {
  align-items: center;
  background: #fffaf4;
  border: 1px solid rgba(178, 24, 39, 0.22);
  border-radius: 18px;
  box-shadow: 0 18px 42px rgba(84, 37, 31, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  margin: -2px 0 20px;
  padding: 16px 18px;
}

.unlock-prompt p {
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.45;
  margin: 0;
  max-width: 560px;
}

.unlock-prompt-cta {
  background: var(--red);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(178, 24, 39, 0.18);
  color: #fff;
  flex: 0 0 auto;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 800;
  padding: 11px 16px;
  text-decoration: none;
}

.preview-pending-dialog {
  align-items: center;
  background: rgba(34, 22, 20, 0.62);
  backdrop-filter: blur(3px);
  color: var(--ink);
  display: flex;
  inset: 0;
  justify-content: center;
  overflow-y: auto;
  padding: 16px;
  position: fixed;
  z-index: 1000;
}

.preview-pending-card {
  background: #fffaf4;
  border: 1px solid rgba(178, 24, 39, 0.2);
  border-radius: 24px;
  box-shadow: 0 28px 70px rgba(55, 25, 22, 0.28);
  box-sizing: border-box;
  font-family: var(--sans);
  padding: 34px 32px 30px;
  position: relative;
  text-align: center;
  width: min(520px, 100%);
}

body.preview-pending-open {
  overflow: hidden;
}

.preview-pending-close {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--muted);
  display: inline-flex;
  font-size: 30px;
  height: 42px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  position: absolute;
  right: 13px;
  top: 10px;
  width: 42px;
}

.preview-pending-kicker {
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.preview-pending-card h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 6vw, 38px);
  line-height: 1.08;
  margin: 0 auto 17px;
  max-width: 400px;
}

.preview-pending-card p {
  font-size: 16px;
  line-height: 1.6;
  margin: 0 auto;
  max-width: 425px;
}

.preview-pending-card .preview-pending-reassurance {
  color: var(--muted);
  font-size: 14px;
  margin-top: 12px;
}

.preview-pending-action {
  background: var(--red);
  border: 1px solid var(--red);
  border-radius: 999px;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  margin-top: 24px;
  min-height: 50px;
  padding: 13px 26px;
  width: min(300px, 100%);
}

.preview-pending-action:hover,
.preview-pending-action:focus-visible {
  background: var(--red-deep);
  border-color: var(--red-deep);
}

@media (max-width: 520px) {
  .preview-pending-card {
    border-radius: 20px;
    padding: 32px 22px 24px;
  }
}

.reader-progress-summary {
  display: block;
  margin-bottom: 10px;
}

.reader-progress-steps {
  border-top: 1px solid rgba(164, 25, 36, 0.12);
  display: grid;
}

.reader-progress-step {
  align-items: baseline;
  border-bottom: 1px solid rgba(164, 25, 36, 0.1);
  display: grid;
  column-gap: 16px;
  grid-template-columns: 72px minmax(0, 1fr);
  padding: 8px 0;
}

.reader-progress-step-label {
  color: #c49756;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap;
  text-transform: uppercase;
}

.reader-progress-step strong,
.reader-progress-chapter {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.18;
}

.reader-progress-chapter {
  text-decoration: none;
}

.reader-progress-chapter[href]:hover,
.reader-progress-chapter[href]:focus-visible {
  color: var(--red);
  text-decoration: underline;
}

.reader-progress-chapter[aria-disabled="true"] {
  color: var(--muted);
  cursor: default;
  opacity: 0.76;
}

.reader-progress-steps.is-full-story-navigation {
  max-height: 286px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
  scrollbar-width: thin;
}

.reader-progress-line {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.25;
  margin: 5px 0 7px;
}

.reader-progress-card.is-collapsed .reader-progress-body {
  display: none;
}

.reader-dna-jump {
  background: var(--red);
  border: 1px solid var(--red);
  border-radius: 999px;
  bottom: 18px;
  box-shadow: var(--shadow);
  color: #fff;
  display: none;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 800;
  min-height: 46px;
  padding: 0 15px;
  position: fixed;
  right: 76px;
  z-index: 24;
}

.gate-cards-jump {
  background: #fffdf8;
  border: 1px solid rgba(164, 25, 36, 0.24);
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(84, 37, 31, 0.08);
  color: var(--red);
  display: none;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 800;
  margin: 6px auto 18px;
  min-height: 42px;
  padding: 0 18px;
}

.story-card-rail {
  left: clamp(18px, 2vw, 34px);
  max-height: calc(100vh - 176px);
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 0;
  position: fixed;
  top: 154px;
  width: clamp(242px, 15.4vw, 292px);
  z-index: 18;
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  scrollbar-width: none;
}

.story-card-rail::-webkit-scrollbar {
  display: none;
}

.footer-in-view .reader-progress-card,
.footer-in-view .story-card-rail,
.story-card-rail.is-suppressed {
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  visibility: hidden;
}

.story-card-rail-header {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  margin: 0 auto 16px;
  padding: 0 4px;
  text-align: center;
}

.story-card-rail-header h2 {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.2;
  margin: 0;
}

.story-card-stack {
  display: grid;
  gap: 18px;
}

.story-card-item {
  display: grid;
  gap: 6px;
  width: 100%;
}

.share-card {
  aspect-ratio: 9 / 16;
  background: linear-gradient(160deg, #fffbf4, #f7e4dd 62%, #dfeee7);
  border: 1px solid rgba(164, 25, 36, 0.18);
  border-radius: 12px;
  box-shadow: 0 14px 36px rgba(72, 34, 30, 0.1);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 16px;
  position: relative;
}

.story-card-rail .share-card {
  border-radius: 14px;
  width: 100%;
}

.reader-dna-placement {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  margin: 0 0 34px;
  padding: 0;
}

.reader-dna-placement-header {
  margin: 0 0 14px;
  text-align: center;
}

.reader-dna-placement-header h2 {
  font-size: clamp(30px, 2.9vw, 42px);
  font-weight: 400;
  line-height: 1.1;
  margin: 0 0 8px;
}

.reader-dna-placement-header p:not(.eyebrow) {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.45;
  margin: 0 auto;
  max-width: 620px;
}

.reader-dna-chapter-cue {
  color: var(--red) !important;
  font-size: 13px !important;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-top: 10px !important;
}

.reader-dna-email-cue {
  font-size: 12px !important;
  line-height: 1.4 !important;
  margin-top: 6px !important;
  max-width: 350px !important;
}

.reader-dna-placement-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 2px 2px 12px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.reader-dna-placement-track::-webkit-scrollbar {
  display: none;
}

.reader-dna-placement .story-card-item {
  flex: 0 0 min(250px, 78vw);
  scroll-snap-align: center;
}

.reader-dna-top,
.reader-dna-preview-repeat {
  display: none;
}

.reader-dna-end-carousel {
  margin-top: 36px;
  text-align: center;
}

.reader-dna-end-carousel .reader-dna-placement-header {
  margin-left: auto;
  margin-right: auto;
  max-width: 680px;
  text-align: center;
}

.reader-dna-end-carousel .reader-dna-placement-track {
  justify-content: center;
  overflow: visible;
  padding-bottom: 8px;
}

.reader-dna-end-carousel .story-card-item {
  flex: 0 1 clamp(250px, 18vw, 300px);
}

.reader-dna-card-downloads {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.download-all-cards {
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(113, 21, 31, 0.12);
  font-weight: 800;
  padding-inline: 18px;
}

.qa-live-dna-placeholder {
  align-items: center;
  background: #4b1739;
  border: 0;
  color: #fff8ef;
  display: flex;
  justify-content: center;
  padding: clamp(34px, 3vw, 52px);
}

.qa-live-dna-placeholder.placeholder-dna {
  background: #cdb69e;
  color: #2b1917;
}

.qa-live-dna-placeholder.placeholder-aesthetic {
  background: #244b30;
}

.qa-live-dna-placeholder::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0)),
    radial-gradient(circle at 20% 16%, rgba(255, 255, 255, 0.16), transparent 28%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: inherit;
  content: "";
  inset: clamp(24px, 2.2vw, 36px);
  pointer-events: none;
  position: absolute;
}

.placeholder-dna::before {
  border-color: rgba(74, 45, 35, 0.14);
}

.pending-card-inner {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 1vw, 20px);
  justify-content: center;
  min-height: 100%;
  padding: clamp(72px, 6.4vw, 104px) clamp(50px, 5vw, 82px);
  position: relative;
  text-align: center;
  z-index: 1;
}

.pending-card-eyebrow {
  font-family: var(--sans);
  font-size: clamp(4px, 0.34vw, 6px);
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0;
  max-width: 10.5em;
  text-transform: uppercase;
}

.pending-card-inner h3 {
  font-size: clamp(20px, 1.48vw, 28px);
  font-weight: 400;
  line-height: 1;
  margin: 0;
  max-width: 7em;
}

.pending-card-message {
  font-family: var(--sans);
  font-size: clamp(6px, 0.44vw, 8px);
  line-height: 1.38;
  margin: 0 auto;
  max-width: 14em;
}

.qa-live-generated-dna-card {
  padding: 0;
}

.qa-live-generated-dna-card .generated-card-image {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.story-card-template {
  --card-export-width: 1080;
  --card-export-height: 1920;
}

.export-safe-area,
.share-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
  min-height: 0;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.share-card[data-variant="gothic-romance"] {
  background: linear-gradient(155deg, #2b1b1d, #8e1723 62%, #f1dad5);
}

.share-card[data-variant="soft-fantasy"] {
  background: linear-gradient(155deg, #fffaf4, #dfeee7 58%, #f7e4dd);
}

.share-card[data-variant="luxe-modern"] {
  background: linear-gradient(155deg, #fffaf4, #ead1d1 58%, #fffbf4);
}

.share-card[data-variant="paranormal-moonlit"] {
  background: linear-gradient(155deg, #191823, #78111a 60%, #384157);
}

.share-card::before {
  background: rgba(164, 25, 36, 0.08);
  content: "";
  height: 120px;
  position: absolute;
  right: -42px;
  top: -42px;
  transform: rotate(18deg);
  width: 120px;
}

.share-card-label,
.share-card-mark {
  color: var(--red);
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  margin: 0;
  text-transform: uppercase;
}

.share-card-title {
  font-size: clamp(21px, 2.1vw, 28px);
  font-weight: 400;
  line-height: 1.05;
  margin: 10px 0;
}

.share-card-title.ornate {
  color: var(--red-deep);
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: clamp(30px, 3vw, 42px);
}

.share-card-copy,
.share-card-hook {
  font-size: 13px;
  line-height: 1.35;
  margin: 8px 0;
}

.share-card-hook {
  color: var(--red-deep);
  font-style: italic;
}

.share-card-mark {
  margin-top: auto;
}

.share-card-facts {
  display: grid;
  gap: 5px;
  margin: 0;
}

.share-card-facts.compact {
  gap: 3px;
}

.share-card-facts dt {
  color: var(--red);
  font-family: var(--sans);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.share-card-facts dd {
  font-size: 12px;
  line-height: 1.2;
  margin: 0 0 3px;
}

.story-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 8px 0;
}

.story-card-tags span {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(164, 25, 36, 0.14);
  border-radius: 999px;
  color: var(--red-deep);
  font-family: var(--sans);
  font-size: 9px;
  padding: 4px 7px;
}

.chemistry-card {
  background: linear-gradient(155deg, #fffdf9, #f7e9e4 58%, #eadfda);
}

.chemistry-card-v2 {
  --chemistry-accent: #9f3140;
  --chemistry-accent-soft: rgba(159, 49, 64, 0.1);
  --chemistry-gold: #c99d58;
  --chemistry-ink: #2f2423;
  --chemistry-muted: #7a6865;
  --chemistry-panel: rgba(255, 252, 247, 0.72);
  background:
    radial-gradient(circle at 15% 8%, rgba(255, 255, 255, 0.92), transparent 24%),
    radial-gradient(circle at 86% 13%, rgba(201, 157, 88, 0.18), transparent 20%),
    linear-gradient(160deg, #fffaf1 0%, #f9ece8 54%, #eee4dc 100%);
  border-color: rgba(159, 49, 64, 0.16);
  box-shadow: 0 16px 34px rgba(92, 45, 39, 0.12);
  color: var(--chemistry-ink);
  padding: 15px;
}

.chemistry-card-v2.soft_luxe_light {
  color: var(--chemistry-ink);
}

.chemistry-card-v2::before {
  background:
    linear-gradient(140deg, transparent 0 40%, rgba(201, 157, 88, 0.18) 40% 41%, transparent 41% 100%),
    radial-gradient(circle, rgba(159, 49, 64, 0.08), transparent 62%);
  border-radius: 999px;
  height: 160px;
  opacity: 0.9;
  right: -78px;
  top: -56px;
  transform: rotate(-12deg);
  width: 160px;
}

.chemistry-card-v2.controlled_luxe_dark {
  --chemistry-accent: #d9b66f;
  --chemistry-accent-soft: rgba(217, 182, 111, 0.13);
  --chemistry-gold: #d9b66f;
  --chemistry-ink: #fffaf2;
  --chemistry-muted: #dfd0c8;
  --chemistry-panel: rgba(255, 248, 239, 0.08);
  background:
    radial-gradient(circle at 88% 7%, rgba(217, 182, 111, 0.18), transparent 24%),
    linear-gradient(160deg, #231d1f 0%, #3d292d 58%, #1f252d 100%);
  border-color: rgba(217, 182, 111, 0.34);
}

.chemistry-header {
  margin-bottom: 6px;
  text-align: left;
}

.chemistry-title {
  color: var(--chemistry-ink);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.04;
  margin: 0;
}

.chemistry-subtitle {
  color: var(--chemistry-accent);
  font-size: 11px;
  font-style: italic;
  margin: 4px 0 7px;
}

.chemistry-divider {
  background: linear-gradient(90deg, var(--chemistry-accent), transparent);
  display: block;
  height: 1px;
  margin: 0;
  opacity: 0.5;
  width: 96px;
}

.chemistry-hook {
  color: var(--chemistry-ink);
  font-size: 14px;
  font-style: italic;
  line-height: 1.28;
  margin: 8px 0 9px;
  text-align: left;
}

.chemistry-leads {
  display: grid;
  gap: 8px;
}

.chemistry-lead {
  background: var(--chemistry-panel);
  border: 1px solid color-mix(in srgb, var(--chemistry-accent) 16%, transparent);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.48);
  display: grid;
  gap: 5px 10px;
  grid-template-columns: 46px 1fr;
  padding: 8px;
}

.chemistry-medallion {
  align-items: center;
  align-self: start;
  aspect-ratio: 1;
  background:
    radial-gradient(circle at 36% 28%, rgba(255, 255, 255, 0.78), transparent 28%),
    linear-gradient(145deg, rgba(255, 250, 244, 0.96), var(--chemistry-accent-soft));
  border: 1px solid color-mix(in srgb, var(--chemistry-accent) 32%, transparent);
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(92, 45, 39, 0.1);
  color: var(--chemistry-accent);
  display: flex;
  font-family: var(--serif);
  font-size: 20px;
  justify-content: center;
}

.chemistry-lead-label,
.chemistry-section-label {
  color: var(--chemistry-accent);
  font-family: var(--sans);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.16em;
  margin: 0;
  text-transform: uppercase;
}

.chemistry-lead-name {
  color: var(--chemistry-ink);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.05;
  margin: 2px 0;
}

.chemistry-lead-meta,
.chemistry-lead-personality {
  color: var(--chemistry-muted);
  font-family: var(--sans);
  font-size: 8px;
  line-height: 1.25;
  margin: 0;
}

.chemistry-lead-personality {
  color: var(--chemistry-ink);
  font-style: italic;
  margin-top: 2px;
}

.chemistry-traits {
  display: grid;
  gap: 3px 6px;
  grid-column: 1 / -1;
  grid-template-columns: 58px 1fr;
  margin: 2px 0 0;
}

.chemistry-traits dt {
  color: var(--chemistry-accent);
  font-family: var(--sans);
  font-size: 6px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chemistry-traits dd {
  color: var(--chemistry-ink);
  font-size: 8px;
  line-height: 1.22;
  margin: 0;
}

.chemistry-dynamic {
  background: linear-gradient(135deg, rgba(255, 252, 247, 0.76), color-mix(in srgb, var(--chemistry-accent) 7%, transparent));
  border: 1px solid color-mix(in srgb, var(--chemistry-accent) 14%, transparent);
  border-radius: 12px;
  margin-top: 8px;
  padding: 8px;
}

.chemistry-dynamic-copy {
  color: var(--chemistry-ink);
  font-size: 10px;
  line-height: 1.3;
  margin: 3px 0 0;
}

.chemistry-closing {
  margin-top: 8px;
}

.chemistry-card-v2 .story-card-tags {
  margin: 0 0 6px;
}

.chemistry-card-v2 .story-card-tags span {
  background: rgba(255, 252, 247, 0.72);
  border-color: color-mix(in srgb, var(--chemistry-accent) 17%, transparent);
  color: var(--chemistry-ink);
  font-size: 7px;
  padding: 3px 6px;
}

.chemistry-love-lesson {
  color: var(--chemistry-ink);
  font-size: 10px;
  font-style: italic;
  line-height: 1.28;
  margin: 3px 0 0;
}

.aesthetic-card {
  background: linear-gradient(155deg, #352326, #8f3942 58%, #e7d9d5);
  color: #fff8ef;
}

.aesthetic-card.is-locked {
  background: linear-gradient(155deg, #fffaf5, #f1ddd9 58%, #e5ece7);
  color: var(--ink);
}

.aesthetic-card.is-locked .share-card-label,
.aesthetic-card.is-locked .share-card-mark,
.aesthetic-card.is-locked .share-card-hook {
  color: var(--red-deep);
}

.aesthetic-card.is-locked .story-card-tags span {
  background: rgba(255, 255, 255, 0.68);
  border-color: rgba(164, 25, 36, 0.14);
  color: var(--red-deep);
}

.aesthetic-card .share-card-label,
.aesthetic-card .share-card-mark,
.aesthetic-card .share-card-hook {
  color: #ffd8d1;
}

.aesthetic-card .story-card-tags span {
  background: rgba(255, 248, 239, 0.12);
  border-color: rgba(255, 248, 239, 0.22);
  color: #fff8ef;
}

.aesthetic-lock-panel {
  align-items: center;
  background: rgba(20, 14, 18, 0.42);
  border: 1px solid rgba(255, 248, 239, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 8px 0;
  min-height: 138px;
  padding: 18px;
  text-align: center;
}

.aesthetic-card.is-locked .aesthetic-lock-panel {
  background: rgba(255, 252, 247, 0.72);
  border-color: rgba(164, 25, 36, 0.18);
}

.aesthetic-card.is-locked .aesthetic-lock-label {
  border-color: rgba(164, 25, 36, 0.34);
  color: var(--red-deep);
}

.aesthetic-card.is-locked .aesthetic-lock-copy {
  color: var(--ink);
}

.aesthetic-lock-label {
  border: 1px solid rgba(255, 248, 239, 0.42);
  color: #fff8ef;
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  padding: 6px 10px;
  text-transform: uppercase;
}

.aesthetic-lock-copy {
  color: #fff8ef;
  font-size: 13px;
  line-height: 1.4;
  margin: 15px 0 0;
}

.aesthetic-visual {
  align-items: center;
  aspect-ratio: 9 / 12;
  background:
    linear-gradient(to top, rgba(6, 12, 22, 0.86), transparent 42%),
    radial-gradient(circle at 72% 20%, rgba(255, 232, 186, 0.24), transparent 20%),
    linear-gradient(150deg, #111827, #26364b 54%, #73151e);
  border: 1px solid rgba(255, 248, 239, 0.22);
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 4px 0 10px;
  min-height: 150px;
  overflow: hidden;
  padding: 14px;
  position: relative;
  text-align: center;
}

.aesthetic-visual-moon {
  background: #f1d9a5;
  border-radius: 50%;
  box-shadow: 0 0 28px rgba(241, 217, 165, 0.34);
  height: 44px;
  position: absolute;
  right: 20px;
  top: 18px;
  width: 44px;
}

.aesthetic-visual-water {
  background: repeating-linear-gradient(to bottom, rgba(214, 231, 237, 0.25) 0 1px, transparent 1px 8px);
  bottom: 0;
  height: 42%;
  left: 0;
  position: absolute;
  transform: skewY(-4deg);
  width: 100%;
}

.aesthetic-visual-rose {
  background: var(--red);
  border-radius: 55% 45% 52% 48%;
  bottom: 44px;
  box-shadow: -8px 4px 0 #76121b, 7px 6px 0 #be3340;
  height: 24px;
  position: absolute;
  right: 28px;
  transform: rotate(-16deg);
  width: 24px;
}

.aesthetic-visual-title,
.aesthetic-visual-subtitle {
  color: #fff8ef;
  position: relative;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.aesthetic-visual-title {
  font-size: 22px;
  line-height: 1.05;
  margin-top: auto;
}

.aesthetic-visual-subtitle {
  font-size: 11px;
  line-height: 1.35;
  margin: 10px 0 8px;
}

.qa-live-dna-card.story-dna-card {
  --dna-ink: #fff7ee;
  --dna-gold: #efcd92;
  --dna-muted: #dcc7b1;
  background: #171111;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.42);
  color: var(--dna-ink);
  isolation: isolate;
  overflow: hidden;
  padding: 0;
  position: relative;
}

.qa-live-dna-card.story-dna-card::before {
  content: none;
}

.qa-live-dna-card.qa-live-dna-placeholder {
  align-items: center;
  background: #4b1739;
  border: 0;
  color: #fff8ef;
  display: flex;
  justify-content: center;
  padding: clamp(34px, 3vw, 52px);
}

.qa-live-dna-card.qa-live-dna-placeholder.placeholder-dna {
  background: #cdb69e;
  color: #2b1917;
}

.qa-live-dna-card.qa-live-dna-placeholder.placeholder-aesthetic {
  background: #244b30;
  color: #fff8ef;
}

.qa-live-dna-card.qa-live-dna-placeholder::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0)),
    radial-gradient(circle at 20% 16%, rgba(255, 255, 255, 0.16), transparent 28%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: inherit;
  content: "";
  inset: clamp(24px, 2.2vw, 36px);
  pointer-events: none;
  position: absolute;
}

.qa-live-dna-card .card-bg,
.qa-live-dna-card .image-scrim {
  inset: 0;
  position: absolute;
}

.qa-live-dna-card .card-bg {
  height: 100%;
  object-fit: cover;
  width: 100%;
  z-index: 0;
}

.qa-live-dna-card .image-scrim {
  background: linear-gradient(to bottom, rgba(12, 9, 8, 0.44), rgba(12, 9, 8, 0.03) 38%, rgba(12, 9, 8, 0.22) 68%, rgba(12, 9, 8, 0.68));
  z-index: 1;
}

.qa-live-dna-card .card-inner {
  display: grid;
  grid-template-rows: auto 1fr;
  inset: 0;
  gap: clamp(8px, 0.7vw, 12px);
  padding: clamp(11px, 0.85vw, 16px);
  position: absolute;
  z-index: 2;
}

.qa-live-dna-card .consistent-header-zone {
  align-self: start;
  background: rgba(12, 8, 8, 0.5);
  border: 0;
  border-radius: 14px;
  grid-row: 1;
  min-height: 0;
  padding: clamp(7px, 0.62vw, 9px) 8px;
  text-align: center;
}

.qa-live-dna-card .polished-card-header p {
  color: rgba(255, 247, 238, 0.68);
  font-family: var(--sans);
  font-size: clamp(6px, 0.5vw, 8px);
  letter-spacing: 0.02em;
  margin: 0 0 5px;
  text-transform: uppercase;
}

.qa-live-dna-card .polished-card-header h2 {
  font-size: clamp(18px, 1.32vw, 25px);
  line-height: 1.02;
  margin: 0 auto;
  max-width: 230px;
  text-align: center;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.58);
}

.qa-live-dna-card .content-zone {
  align-self: end;
  background: rgba(20, 14, 13, 0.58);
  border: 0;
  border-radius: 19px;
  grid-row: 2;
  margin-bottom: 0;
  padding: clamp(8px, 0.72vw, 12px);
}

.qa-live-dna-card .layout-safe-bottom {
  max-height: 100%;
  overflow: hidden;
}

.qa-live-dna-card .micro {
  color: var(--dna-gold);
  font-family: var(--sans);
  font-size: clamp(6px, 0.54vw, 9px);
  letter-spacing: 0.04em;
  margin: 0 0 6px;
  text-transform: uppercase;
}

.qa-live-dna-card .chemistry-zone h3 {
  font-size: clamp(17px, 1.25vw, 24px);
  line-height: 1.06;
  margin: 0 0 7px;
}

.qa-live-dna-card .leads {
  font-size: clamp(10px, 0.75vw, 13px);
  font-weight: 700;
  margin: 0 0 6px;
}

.qa-live-dna-card .line,
.qa-live-dna-card .closer {
  font-size: clamp(9px, 0.66vw, 12px);
  line-height: 1.24;
  margin: 0 0 6px;
}

.qa-live-dna-card .closer {
  color: #f8dfc2;
  font-style: italic;
  margin: 8px 0 0;
}

.qa-live-dna-card .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.qa-live-dna-card .chips span {
  background: rgba(255, 255, 255, 0.08);
  border: 0;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: clamp(7px, 0.52vw, 9px);
  line-height: 1;
  padding: 5px 7px;
}

.qa-live-dna-card .dna-zone {
  padding-bottom: 8px;
}

.qa-live-dna-card .dna-zone h3 {
  font-size: clamp(16px, 1.15vw, 21px);
  line-height: 1.02;
  margin: 0 0 7px;
}

.qa-live-dna-card .premise {
  font-size: clamp(8px, 0.63vw, 11px);
  line-height: 1.24;
  margin: 0 0 8px;
}

.qa-live-dna-card .dna-grid {
  display: grid;
  gap: 5px;
  grid-template-columns: 1fr 1fr;
}

.qa-live-dna-card .dna-grid div {
  background: rgba(255, 255, 255, 0.075);
  border-radius: 10px;
  min-height: 35px;
  padding: 6px;
}

.qa-live-dna-card .dna-grid span,
.qa-live-dna-card .mood span {
  color: var(--dna-gold);
  display: block;
  font-family: var(--sans);
  font-size: clamp(6px, 0.49vw, 8px);
  letter-spacing: 0;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.qa-live-dna-card .dna-grid strong {
  display: block;
  font-size: clamp(8px, 0.58vw, 10px);
  line-height: 1.18;
}

.qa-live-dna-card .mood {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  font-size: clamp(8px, 0.62vw, 11px);
  line-height: 1.22;
  margin: 7px 0 0;
  padding: 6px;
}

.qa-live-dna-card .locked-center {
  align-self: center;
  background: rgba(21, 15, 14, 0.68);
  border: 0;
  border-radius: 22px;
  grid-row: 2;
  padding: 22px 16px;
  text-align: center;
}

.qa-live-dna-card .lock-mark {
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  height: 34px;
  margin: 0 auto 14px;
  position: relative;
  width: 34px;
}

.qa-live-dna-card .lock-mark::before {
  border: 2px solid #f6d8a5;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  content: "";
  height: 10px;
  left: 10px;
  position: absolute;
  right: 10px;
  top: 8px;
}

.qa-live-dna-card .lock-mark::after {
  background: #f6d8a5;
  border-radius: 3px;
  bottom: 7px;
  content: "";
  height: 13px;
  left: 9px;
  position: absolute;
  right: 9px;
}

.qa-live-dna-card .locked-center p {
  font-size: 17px;
  line-height: 1.25;
  margin: 0 0 12px;
}

.qa-live-dna-card .locked-center span {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: #f1c98f;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0;
  padding: 7px 10px;
  text-transform: uppercase;
}

.qa-live-dna-card.revealed-title-only .card-inner {
  display: flex;
  justify-content: flex-end;
  padding: 14px;
}

.qa-live-dna-card .title-only-reveal {
  align-self: stretch;
  background: rgba(10, 7, 6, 0.48);
  border-radius: 18px;
  margin: 0 auto 14px;
  max-width: calc(100% - 4px);
  padding: 16px 12px 14px;
  text-align: center;
  text-shadow: 0 4px 22px rgba(0, 0, 0, 0.82);
}

.qa-live-dna-card .title-only-reveal h3 {
  font-size: clamp(23px, 1.65vw, 32px);
  line-height: 0.98;
  margin: 0 auto 10px;
  overflow-wrap: anywhere;
}

.qa-live-dna-card .title-only-reveal p {
  color: #ffe4c4;
  font-size: 14px;
  line-height: 1.25;
  margin: 0;
}

.qa-live-dna-card.luxe .content-zone,
.qa-live-dna-card.luxe .locked-center {
  background: rgba(16, 20, 26, 0.58);
}

.qa-live-dna-card.tropical .content-zone,
.qa-live-dna-card.tropical .locked-center {
  background: rgba(30, 35, 24, 0.5);
}

.qa-live-dna-card.harbor .content-zone,
.qa-live-dna-card.harbor .locked-center {
  background: rgba(22, 16, 15, 0.66);
}

.story-card-actions {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: center;
  min-height: 42px;
  padding: 0;
}

.story-card-export-action {
  align-items: center;
  background: #3c3a3a;
  border: 0;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  height: 40px;
  justify-content: center;
  min-width: 40px;
  padding: 0;
  position: relative;
  width: 40px;
}

.story-card-export-action::before {
  border-bottom: 2px solid currentColor;
  border-left: 2px solid currentColor;
  content: "";
  height: 10px;
  margin-top: -3px;
  transform: rotate(-45deg);
  width: 10px;
}

.story-card-export-action::after {
  background: currentColor;
  content: "";
  height: 15px;
  left: 19px;
  position: absolute;
  top: 10px;
  width: 2px;
}

.story-card-export-action:hover,
.story-card-export-action:focus-visible {
  background: var(--red-deep);
  color: #fff8ef;
}

.story-card-export-status {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.site-footer {
  background: #ffffff;
  border-top: 1px solid #eee5df;
  color: var(--ink);
  display: grid;
  gap: clamp(24px, 5vw, 70px);
  grid-template-columns: minmax(220px, 1.3fr) repeat(3, minmax(150px, 0.7fr));
  padding: clamp(54px, 8vw, 96px) clamp(22px, 8vw, 160px);
}

.footer-brand p {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.55;
  margin: 16px 0 0;
  max-width: 360px;
}

.footer-wordmark .brand-text {
  color: var(--ink);
}

.footer-mark-img {
  display: block;
  height: 78px;
  width: 78px;
}

.footer-wordmark-img {
  display: block;
  height: 38px;
  width: auto;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-column h2 {
  color: var(--ink);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  margin: 0 0 3px;
  text-transform: uppercase;
}

.footer-column a,
.footer-column .footer-static {
  color: #bba897;
  font-size: 16px;
}

.social-link {
  align-items: center;
  display: inline-flex;
  gap: 10px;
}

.social-link img {
  height: 40px;
  width: 40px;
}

.empty {
  border: 1px dashed var(--line);
  padding: 45px 25px;
  text-align: center;
}

.hidden {
  display: none;
}

body[data-approved-reader-fixture="true"] .fixture-switcher {
  align-items: center;
}

body[data-approved-reader-fixture="true"] .fixture-mode-link {
  display: inline-flex;
  text-decoration: none;
}

body[data-approved-reader-fixture="true"][data-reader-view="preview"] #preview-fixture,
body[data-approved-reader-fixture="true"][data-reader-view="paid"] #paid-fixture {
  background: var(--red);
  color: #fff8ef;
}

body[data-approved-reader-fixture="true"] .download-action.disabled:not([href]) {
  cursor: not-allowed;
}

@media (max-width: 600px) {
  .masthead {
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    min-height: 0;
    padding: 10px 14px;
  }

  .brand {
    flex: 0 0 auto;
    min-width: 0;
  }

  .brand-mark-img {
    height: 44px;
    width: 44px;
  }

  .brand-wordmark-img {
    height: 28px;
  }

  .nav-toggle {
    display: inline-flex;
    flex: 0 0 auto;
    order: 2;
  }

  .site-nav {
    background: #fff;
    border: 1px solid #eee1da;
    border-radius: 14px;
    box-shadow: 0 18px 42px rgba(84, 37, 31, 0.12);
    display: none;
    gap: 0;
    left: 66px;
    margin-left: 0;
    padding: 8px;
    position: absolute;
    right: auto;
    text-align: left;
    top: calc(100% + 6px);
    width: min(188px, calc(100vw - 86px));
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    border-radius: 10px;
    font-size: 14px;
    padding: 11px 10px;
    text-align: left;
  }

  .header-cta {
    flex: 0 0 auto;
    font-size: 12px;
    margin-left: auto;
    order: 3;
    padding: 9px 13px;
  }

  .launch-offer {
    font-size: 13px;
    line-height: 1.35;
    padding: 9px 14px;
  }

  .launch-offer .offer-primary,
  .launch-offer .offer-savings,
  .launch-offer em {
    display: block;
    margin: 3px 0 0;
  }

  select {
    width: 100%;
  }

  .action-grid {
    grid-template-columns: 1fr;
  }

  .chapters,
  .story-header {
    padding: 22px 18px;
  }

  .reader-shell,
  .story-header,
  .chapters,
  .gate {
    max-width: 100%;
    min-width: 0;
    width: 100%;
  }

  .reader-shell {
    overflow-x: hidden;
    padding-left: 14px;
    padding-right: 14px;
  }

  h1 {
    font-size: clamp(42px, 14vw, 58px);
  }

  .reader-progress-card {
    border-radius: 16px;
    bottom: max(92px, calc(env(safe-area-inset-bottom) + 76px));
    left: 50%;
    max-width: none;
    padding: 10px;
    right: auto;
    top: auto;
    transform: translateX(-50%);
    width: min(238px, calc(100vw - 32px));
    z-index: 100;
  }

  .footer-in-view .reader-progress-card {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%);
    visibility: visible;
  }

  .reader-progress-card.is-collapsed {
    align-items: center;
    border-radius: 999px;
    bottom: max(28px, calc(env(safe-area-inset-bottom) + 12px));
    display: flex;
    height: 48px;
    justify-content: center;
    padding: 0;
    left: auto;
    right: clamp(16px, 6vw, 28px);
    top: auto;
    transform: none;
    width: 48px;
  }

  .reader-progress-card.is-collapsed .reader-progress-toggle {
    border-radius: 999px;
    font-size: 20px;
    height: 100%;
    padding: 0;
    width: 100%;
  }

  .reader-progress-card:not(.is-collapsed) .reader-progress-toggle {
    padding: 7px 10px;
  }

  .reader-progress-body {
    padding: 9px 4px 2px;
  }

  .reader-progress-line {
    font-size: 15px;
  }

  .reader-progress-detail {
    font-size: 11px;
  }

  .reader-progress-card .reader-progress-steps {
    display: none;
  }

  .reader-progress-card.has-full-story-navigation:not(.is-collapsed) {
    max-height: min(63vh, 430px);
  }

  .reader-progress-card.has-full-story-navigation:not(.is-collapsed) .reader-progress-body {
    max-height: calc(min(63vh, 430px) - 62px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 5px;
  }

  .reader-progress-card.has-full-story-navigation:not(.is-collapsed) .reader-progress-steps {
    display: grid;
    max-height: none;
    overflow: visible;
  }

  .reader-progress-card .reader-progress-summary {
    margin-bottom: 0;
  }

  .site-footer {
    grid-template-columns: 1fr;
    padding: 44px 28px;
  }

  .story-highlights-grid {
    grid-template-columns: 1fr;
  }

  .reader-dna-top,
  .reader-dna-preview-repeat {
    display: block;
  }

  .reader-dna-top,
  .reader-dna-preview-repeat {
    margin-top: -2px;
  }

  .reader-dna-placement {
    margin: 0 0 24px;
    overflow-x: hidden;
    padding: 14px;
  }

  .reader-dna-placement-header {
    margin-bottom: 10px;
  }

  .reader-dna-placement-header h2 {
    margin-top: 2px;
  }

  .reader-dna-placement-header p:not(.eyebrow) {
    font-size: 13px;
    line-height: 1.35;
  }

  .reader-dna-chapter-cue {
    font-size: 12px !important;
    margin-top: 11px !important;
  }

  .reader-dna-email-cue {
    font-size: 11px !important;
    line-height: 1.4 !important;
    margin-top: 5px !important;
    max-width: 270px !important;
  }

  .reader-dna-placement-track {
    margin: 0 -14px;
    padding-inline: 14px;
  }

  .reader-dna-placement .story-card-item {
    flex-basis: min(254px, 76vw);
  }

  .reader-dna-end-carousel {
    margin-bottom: 28px;
  }

  .reader-dna-end-carousel .reader-dna-placement-track {
    justify-content: flex-start;
    margin: 0 -14px;
    overflow-x: auto;
    padding-inline: 14px;
  }

  .reader-dna-end-carousel .story-card-item {
    flex: 0 0 min(254px, 76vw);
  }

  .story-card-rail {
    display: none;
  }

  .reader-dna-jump:not(.hidden) {
    display: none;
  }

  .gate-cards-jump {
    align-items: center;
    display: inline-flex;
    justify-content: center;
  }
}

@media (min-width: 601px) and (max-width: 980px) {
  .masthead {
    flex-wrap: wrap;
  }

  .site-nav {
    justify-content: flex-start;
    margin-left: 0;
    order: 3;
    width: 100%;
  }

  .site-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1099px) {
  .reader-shell {
    max-width: 900px;
  }

  .reader-dna-top,
  .reader-dna-preview-repeat {
    display: block;
  }

  .reader-dna-end-carousel .reader-dna-placement-track {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .reader-dna-end-carousel .story-card-item {
    flex: 0 0 min(280px, calc(100vw - 44px));
  }

  .story-card-rail {
    display: none;
    margin: 0 auto 30px;
    max-height: none;
    max-width: 840px;
    overflow: visible;
    padding: 0 22px;
    position: static;
    width: auto;
  }

  .story-card-stack {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding: 2px max(2px, calc((100% - min(280px, calc(100vw - 44px))) / 2)) 12px;
    scroll-padding-inline: max(2px, calc((100% - min(280px, calc(100vw - 44px))) / 2));
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }

  .story-card-item {
    flex: 0 0 min(280px, calc(100vw - 44px));
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }

  .share-card {
    width: 100%;
  }

  .footer-in-view .story-card-rail {
    opacity: 1;
    pointer-events: auto;
    transform: none;
    visibility: visible;
  }
}

@media (min-width: 1100px) and (max-width: 1399px) {
  .reader-shell {
    max-width: min(760px, calc(100vw - 580px));
    padding-left: 18px;
    padding-right: 18px;
  }

  .story-header {
    padding: clamp(34px, 3.8vw, 50px);
  }

  h1 {
    font-size: clamp(54px, 5.2vw, 72px);
    line-height: 0.98;
  }

  .story-brand-wordmark {
    max-width: min(260px, 62vw);
  }

  .chapters {
    padding: clamp(30px, 3.6vw, 44px);
  }

  .chapter-text {
    font-size: clamp(19px, 1.7vw, 22px);
  }

  .story-card-rail {
    top: 178px;
    width: clamp(218px, 16vw, 250px);
  }

  .story-card-rail-header h2 {
    font-size: 16px;
  }

  .reader-progress-card {
    max-width: 236px;
    right: 18px;
  }

  .reader-progress-step {
    column-gap: 14px;
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .reader-progress-line {
    font-size: 15px;
  }

  .story-card-export-status {
    max-width: 100px;
  }
}

@media (min-width: 1100px) {
  .masthead {
    min-height: 66px;
    padding: 8px clamp(18px, 3.2vw, 30px);
  }

  .brand-mark-img {
    height: 44px;
    width: 44px;
  }

  .site-nav {
    gap: clamp(14px, 2vw, 24px);
  }

  .site-nav a {
    font-size: 16px;
  }

  .header-cta {
    border-radius: 9px;
    font-size: 13px;
    padding: 11px 18px;
  }

  .launch-offer {
    font-size: clamp(16px, 1.65vw, 20px);
    padding: 9px 18px;
  }

  .reader-shell {
    max-width: min(820px, calc(100vw - 700px));
    padding-top: clamp(30px, 3.6vw, 52px);
  }

  .story-header {
    margin-bottom: 36px;
    padding: clamp(32px, 3.4vw, 48px);
  }

  .story-brand-wordmark {
    margin-bottom: 22px;
    max-width: min(248px, 58vw);
  }

  .eyebrow {
    font-size: 10px;
    margin-bottom: 11px;
  }

  h1 {
    font-size: clamp(50px, 4.6vw, 68px);
    line-height: 0.99;
    margin-bottom: 16px;
  }

  .story-id {
    font-size: 15px;
    margin-bottom: 24px;
  }

  .story-highlights {
    padding: 14px;
  }

  .highlight-chip {
    padding: 11px;
  }

  .highlight-chip strong {
    font-size: 14px;
  }

  .chapters {
    padding: clamp(28px, 3vw, 42px);
  }

  .chapter {
    margin-bottom: 50px;
  }

  .chapter h2 {
    font-size: clamp(12px, 0.85vw, 14px);
    margin-bottom: 20px;
  }

  .chapter-text {
    font-size: clamp(19px, 1.45vw, 21px);
    line-height: 1.72;
  }

  .story-card-rail {
    left: clamp(18px, 1.8vw, 30px);
    max-height: calc(100vh - 154px);
    top: 138px;
    width: clamp(212px, 13.6vw, 252px);
  }

  .story-card-rail-header {
    margin-bottom: 12px;
  }

  .story-card-rail-header h2 {
    font-size: 15px;
  }

  .story-card-rail-header .eyebrow {
    font-size: 10px;
  }

  .story-card-stack {
    gap: 14px;
  }

  .reader-progress-card {
    max-width: 224px;
    padding: 8px;
    right: 18px;
  }

  .reader-progress-toggle {
    font-size: 11px;
    padding: 8px 10px;
  }

  .reader-progress-body {
    padding: 9px 6px 4px;
  }

  .reader-progress-kicker,
  .reader-progress-detail {
    font-size: 11px;
  }

  .reader-progress-line {
    font-size: 14px;
  }

  .reader-progress-step {
    column-gap: 12px;
    grid-template-columns: 70px minmax(0, 1fr);
    padding: 7px 0;
  }

  .reader-progress-step-label {
    font-size: 9px;
    letter-spacing: 0.06em;
  }

  .reader-progress-step strong,
  .reader-progress-chapter {
    font-size: 12px;
  }

  .reader-shell::before,
  .reader-shell::after {
    background: linear-gradient(to bottom, transparent, rgba(164, 25, 36, 0.14) 9%, rgba(164, 25, 36, 0.14) 91%, transparent);
    content: "";
    pointer-events: none;
    position: absolute;
    top: 0;
    bottom: 34px;
    width: 1px;
  }

  .reader-shell::before {
    left: -42px;
  }

  .reader-shell::after {
    right: -42px;
  }
}

@media (min-width: 1100px) and (max-width: 1399px) {
  .reader-shell {
    max-width: min(740px, calc(100vw - 560px));
  }

  .story-card-rail {
    top: 138px;
    width: clamp(206px, 15vw, 232px);
  }

  .reader-progress-card {
    max-width: 214px;
  }
}
