@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("./fonts/Montserrat-VariableFont_wght.ttf") format("truetype-variations");
}

:root {
  --navy: #104070;
  --red: #c12525;
  --red-dark: #a01e1e;
  --blue: #dfedfd;
  --blue-soft: #eef2f9;
  --paper: #f6f9fd;
  --white: #fff;
  --fg: #0e2e54;
  --muted: #3b5775;
  --soft: #6e829b;
  --line: #d6e2f0;
  --shadow: 0 4px 14px rgba(16, 64, 112, 0.08), 0 1px 2px rgba(16, 64, 112, 0.05);
  --shadow-lg: 0 18px 44px rgba(16, 64, 112, 0.16), 0 2px 8px rgba(16, 64, 112, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--fg);
  background: var(--paper);
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
}

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

button,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(16, 64, 112, 0.18);
}

.mini-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(16px, 3vw, 34px);
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--line);
}

.mini-topbar img {
  width: 138px;
  max-height: 38px;
  object-fit: contain;
  display: block;
}

.issue-mark {
  color: var(--navy);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reader-shell {
  display: grid;
  grid-template-columns: clamp(148px, 12vw, 180px) minmax(0, 860px) clamp(292px, 22vw, 350px);
  gap: 20px;
  align-items: start;
  justify-content: center;
  padding: 20px clamp(16px, 3vw, 34px) 34px;
}

.toc-rail,
.guide-rail {
  position: sticky;
  top: 76px;
  max-height: calc(100vh - 92px);
  display: grid;
  gap: 12px;
  overflow-y: auto;
  padding-right: 4px;
  align-content: start;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--red);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.toc-list {
  display: grid;
  gap: 7px;
}

.toc-list a {
  display: block;
  padding: 11px 12px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 780;
}

.toc-list a.active,
.toc-list a:hover {
  color: var(--navy);
  background: var(--white);
  border-color: var(--line);
  box-shadow: var(--shadow);
}

.toc-group {
  display: grid;
  gap: 6px;
}

.toc-parent {
  color: var(--navy) !important;
  font-weight: 850 !important;
}

.toc-children {
  display: grid;
  gap: 4px;
  padding-left: 12px;
}

.toc-children a {
  min-height: 34px;
  padding: 8px 10px;
  border-radius: 11px;
  color: var(--soft);
  font-size: 12px;
  font-weight: 740;
  position: relative;
  padding-right: 28px;
}

.toc-children a.done::after {
  content: "✓";
  position: absolute;
  right: 9px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: #1e7f4f;
  font-size: 11px;
  font-weight: 900;
}

.magazine-scroll {
  min-width: 0;
}

.mobile-toc {
  display: none;
}

.page-stack {
  display: grid;
  gap: 22px;
}

.pdf-page {
  scroll-margin-top: 76px;
  display: grid;
  place-items: center;
  padding: clamp(14px, 2.2vw, 24px);
  border-radius: 24px;
  background: var(--blue);
}

.page-visual {
  position: relative;
  width: min(100%, 820px);
}

.pdf-page picture {
  display: block;
  width: 100%;
}

.pdf-page img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2482 / 3510;
  border-radius: 12px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
}

.pdf-link-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.pdf-link-hotspot {
  position: absolute;
  display: block;
  border-radius: 8px;
  background: rgba(207, 37, 41, 0);
  outline: 0 solid rgba(207, 37, 41, 0);
  pointer-events: auto;
  transition: background 0.16s ease, outline-color 0.16s ease, box-shadow 0.16s ease;
}

.pdf-link-hotspot span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.pdf-link-hotspot:hover,
.pdf-link-hotspot:focus-visible {
  background: rgba(207, 37, 41, 0.1);
  outline: 3px solid rgba(207, 37, 41, 0.8);
  box-shadow: 0 0 0 8px rgba(207, 37, 41, 0.08);
}

.mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 5px;
  border-radius: 999px;
  background: var(--blue-soft);
}

.mode-switch button {
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

.mode-switch button.active {
  color: var(--navy);
  background: var(--white);
  box-shadow: var(--shadow);
}

.guide-card,
.reward-card {
  padding: clamp(18px, 1.6vw, 22px);
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.guide-rail > .guide-card:only-child,
.guide-rail > .mode-switch + .guide-card:last-child {
  min-height: calc(100vh - 150px);
}

.reward-card {
  display: grid;
  gap: 9px;
}

.reward-card h1 {
  margin: 0;
  color: var(--navy);
  font-size: 25px;
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.guide-card h2,
.reward-card h2 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 22px;
  line-height: 1.18;
}

.reward-card h2 {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.35;
  font-weight: 750;
}

.reward-card h3 {
  margin: 0;
  color: var(--red);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.guide-card p,
.reward-card p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
}

.reward-card p {
  margin-bottom: 0;
}

.reward-subtext {
  color: var(--muted) !important;
  font-size: 13px !important;
  line-height: 1.45;
}

.question {
  padding: 15px;
  border-radius: 16px;
  background: var(--blue-soft);
}

.question strong {
  display: block;
  margin-bottom: 12px;
  color: var(--navy);
}

.options {
  display: grid;
  gap: 8px;
}

.options button {
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--fg);
  background: var(--white);
  text-align: left;
  font-size: 13px;
  font-weight: 760;
}

.options button.selected {
  color: var(--fg);
}

.options button.correct {
  color: #176b43;
  background: #eaf7f0;
  border-color: #1e7f4f;
}

.options button.incorrect {
  color: var(--red);
  background: #fff1f1;
  border-color: var(--red);
}

.options button:disabled {
  cursor: default;
}

.reveal {
  margin-top: 12px;
  padding: 12px;
  border-radius: 13px;
  color: var(--muted);
  background: var(--white);
  font-size: 13px;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  padding: 12px 16px;
  border-radius: 18px;
  color: var(--white);
  background: var(--red);
  font-size: 14px;
  font-weight: 850;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cta:hover {
  background: var(--red-dark);
}

.cta.secondary {
  color: var(--navy);
  background: var(--blue-soft);
}

.cta.disabled {
  color: var(--soft);
  background: var(--blue-soft);
  pointer-events: none;
}

.reward-card .cta.disabled {
  display: none;
}

.reward-progress {
  display: grid;
  gap: 8px;
  margin: 8px 0 4px;
  padding: 12px;
  border-radius: 16px;
  background: var(--blue-soft);
}

.reward-progress-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.reward-progress-top span {
  color: var(--navy);
  font-size: 13px;
  font-weight: 850;
}

.reward-progress-top strong {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-align: right;
}

.reward-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #d9e5f2;
}

.reward-track span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1e7f4f, var(--red));
  transition: width 260ms ease;
}

.reward-track.mini {
  margin: 10px 0 14px;
}

.reward-milestones {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--soft);
  font-size: 10px;
  font-weight: 800;
}

.link-action {
  display: inline-flex;
  margin-top: 10px;
  color: var(--red);
  font-size: 13px;
  font-weight: 850;
}

.quick-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.quick-links a,
.quick-links button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 14px;
  color: var(--white);
  background: var(--red);
  font-size: 14px;
  font-weight: 850;
  white-space: nowrap;
}

.mini-test-badge {
  width: 100%;
  min-height: 46px;
  margin: 6px 0 4px;
  border: 1px solid rgba(193, 37, 37, 0.22);
  border-radius: 18px;
  color: var(--red);
  background: #fff6f6;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.article-choice-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.next-reading {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.next-reading strong {
  color: var(--navy);
  font-size: 14px;
}

.next-reading button {
  min-height: 48px;
  display: grid;
  gap: 3px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--fg);
  background: var(--blue-soft);
  text-align: left;
  font-size: 14px;
  font-weight: 820;
}

.next-reading button,
.article-choice-list button {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.next-reading span {
  color: var(--red);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.completion-note {
  padding: 12px;
  border-radius: 14px;
  background: var(--blue-soft);
}

.gift-burst {
  animation: gift-pop 520ms ease both;
}

@keyframes gift-pop {
  0% {
    transform: scale(0.96);
    box-shadow: 0 0 0 rgba(193, 37, 37, 0);
  }
  55% {
    transform: scale(1.03);
    box-shadow: 0 16px 34px rgba(193, 37, 37, 0.28);
  }
  100% {
    transform: scale(1);
  }
}

.article-choice-list button {
  min-height: 52px;
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--fg);
  background: var(--blue-soft);
  text-align: left;
  font-size: 14px;
  font-weight: 820;
}

.article-choice-list span {
  color: var(--red);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.guide-step-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.mini-action {
  min-height: 40px;
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--navy);
  background: var(--blue-soft);
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}

.mini-action.primary {
  color: var(--white);
  background: var(--red);
  border-color: var(--red);
}

.reward-card.unlocked {
  background: #fff6f6;
  border: 1px solid rgba(193, 37, 37, 0.24);
}

.mobile-guide {
  display: none;
}

.floating-actions {
  position: fixed;
  right: clamp(12px, 2vw, 22px);
  bottom: clamp(14px, 2vw, 24px);
  z-index: 50;
  display: grid;
  gap: 10px;
  justify-items: end;
  pointer-events: none;
}

.float-shell {
  pointer-events: auto;
  position: relative;
  width: min(320px, calc(100vw - 34px));
  max-width: 320px;
  height: 58px;
  transition: width 200ms ease, transform 180ms ease;
}

.float-collapse {
  position: absolute;
  left: 12px;
  top: 50%;
  z-index: 2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  font-size: 28px;
  font-weight: 950;
  line-height: 1;
  transform: translateY(-50%);
  transition: background 160ms ease, transform 160ms ease;
}

.float-collapse:hover,
.float-collapse:focus-visible {
  background: rgba(255, 255, 255, 0.24);
  transform: translateY(-50%) translateX(2px);
}

.float-item {
  position: relative;
  height: 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px;
  align-items: center;
  width: 100%;
  border-radius: 999px;
  box-shadow: 0 18px 46px rgba(193, 37, 37, 0.22), 0 5px 14px rgba(16, 64, 112, 0.12);
  overflow: hidden;
  transform-origin: right center;
  transition: width 200ms ease, grid-template-columns 200ms ease, transform 180ms ease, box-shadow 180ms ease;
  isolation: isolate;
}

.float-item::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.18) 34%, transparent 62%);
  transform: translateX(-115%);
  animation: floatShine 3.8s ease-in-out infinite;
}

.float-item:hover,
.float-item:focus-visible {
  transform: translateX(-4px) scale(1.015);
  box-shadow: 0 22px 52px rgba(193, 37, 37, 0.28), 0 6px 16px rgba(16, 64, 112, 0.16);
}

.float-item span {
  min-width: 0;
  padding: 0 14px 0 64px;
  color: inherit;
  font-size: 18px;
  font-weight: 950;
  white-space: nowrap;
  opacity: 1;
  transform: translateX(0);
  transition: opacity 140ms ease, transform 140ms ease;
}

.float-item b {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  justify-self: end;
  border-radius: 999px;
  color: var(--white);
  background: rgba(16, 64, 112, 0.26);
  font-size: 22px;
  font-weight: 850;
  transform: none;
}

.float-item.muted {
  color: #111;
  background: rgba(205, 196, 198, 0.9);
}

.float-item.red {
  color: var(--white);
  background: linear-gradient(135deg, var(--red), #df2b2f);
}

.float-item.red b {
  font-size: 20px;
}

.float-shell.is-collapsed {
  width: 54px;
  height: 54px;
}

.float-shell.is-collapsed .float-collapse {
  opacity: 0;
  pointer-events: none;
}

.float-shell.is-collapsed .float-item {
  height: 54px;
  grid-template-columns: 0fr 54px;
  box-shadow: var(--shadow-lg);
}

.float-shell.is-collapsed .float-item span {
  opacity: 0;
  transform: translateX(12px);
  padding: 0;
}

.float-shell.is-collapsed .float-item b {
  width: 54px;
  height: 54px;
  background: var(--navy);
  box-shadow: 0 14px 30px rgba(16, 64, 112, 0.3);
  animation: ctaWiggle 1.7s ease-in-out infinite;
}

@keyframes floatShine {
  0%, 55% {
    transform: translateX(-115%);
  }
  78%, 100% {
    transform: translateX(115%);
  }
}

@keyframes ctaWiggle {
  0%, 72%, 100% {
    transform: rotate(0deg) scale(1);
  }
  78% {
    transform: rotate(-8deg) scale(1.06);
  }
  84% {
    transform: rotate(8deg) scale(1.08);
  }
  90% {
    transform: rotate(-5deg) scale(1.04);
  }
  96% {
    transform: rotate(4deg) scale(1.02);
  }
}

@media (max-width: 1120px) {
  .reader-shell {
    grid-template-columns: minmax(0, 1fr);
    padding: 14px clamp(12px, 3vw, 22px) calc(min(34vh, 280px) + 76px);
  }

  .toc-rail,
  .guide-rail {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .toc-rail {
    display: none;
  }

  .guide-rail {
    display: none;
  }

  .mobile-toc {
    position: sticky;
    top: 56px;
    z-index: 20;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px 0 14px;
    background: var(--paper);
  }

  .mobile-toc a {
    flex: 0 0 auto;
    padding: 9px 12px;
    border-radius: 999px;
    color: var(--navy);
    background: var(--white);
    border: 1px solid var(--line);
    font-size: 12px;
    font-weight: 850;
  }

  .mobile-guide {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    z-index: 40;
    display: block;
    max-height: min(34vh, 280px);
    overflow: auto;
    padding: 14px;
    border: 1px solid rgba(214, 226, 240, 0.9);
    border-radius: 20px;
    background: var(--white);
    box-shadow: var(--shadow-lg);
  }

  .mobile-guide h2 {
    font-size: 18px;
    line-height: 1.18;
  }

  .mobile-guide p {
    font-size: 13px;
  }

  .mobile-guide .question {
    padding: 12px;
  }

  .mobile-guide .options {
    gap: 7px;
  }

  .mobile-guide .options button {
    min-height: 38px;
    padding: 9px 10px;
    font-size: 12px;
  }

  .mobile-guide .mode-switch,
  .mobile-guide .reward-card {
    display: none;
  }

  .floating-actions {
    right: 10px;
    bottom: 12px;
    top: auto;
    gap: 8px;
  }

  .float-shell {
    width: min(260px, calc(100vw - 24px));
    height: 52px;
  }

  .float-collapse {
    left: 10px;
    width: 30px;
    height: 30px;
    font-size: 24px;
  }

  .float-item {
    height: 52px;
    grid-template-columns: minmax(0, 1fr) 52px;
    border-radius: 999px;
  }

  .float-item span {
    display: block;
    padding-left: 52px;
    font-size: 15px;
  }

  .float-item b {
    width: 52px;
    height: 52px;
    transform: none;
    font-size: 17px;
  }

  .float-shell.is-collapsed,
  .float-shell.is-collapsed .float-item {
    width: 48px;
    height: 48px;
  }

  .float-shell.is-collapsed .float-item {
    grid-template-columns: 0fr 48px;
  }

  .float-shell.is-collapsed .float-item b {
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 640px) {
  .mini-topbar {
    height: 54px;
    padding-inline: 14px;
  }

  .mini-topbar img {
    width: 118px;
  }

  .issue-mark {
    font-size: 11px;
  }

  .reader-shell {
    padding: 8px 8px calc(min(36vh, 260px) + 72px);
  }

  .page-stack {
    gap: 14px;
  }

  .pdf-page {
    padding: 6px;
    border-radius: 16px;
  }

  .pdf-page img {
    border-radius: 9px;
  }

  .mobile-toc {
    top: 54px;
    gap: 6px;
    padding: 8px 0 10px;
  }

  .mobile-toc a {
    padding: 8px 10px;
    font-size: 11px;
  }

  .mobile-guide {
    left: 8px;
    right: 8px;
    max-height: min(36vh, 260px);
    padding: 12px;
    border-radius: 18px;
  }

  .mobile-guide h2 {
    margin-bottom: 8px;
    font-size: 16px;
  }

  .mobile-guide p,
  .reveal {
    font-size: 12px;
  }

  .quick-links {
    gap: 7px;
  }

  .quick-links a,
  .quick-links button,
  .mini-test-badge,
  .cta,
  .mini-action {
    min-height: 38px;
    padding: 9px 10px;
    border-radius: 13px;
    font-size: 11px;
  }

  .article-choice-list button,
  .next-reading button {
    min-height: 42px;
    padding: 9px 10px;
    font-size: 12px;
  }

  .guide-step-actions {
    gap: 6px;
  }

  .floating-actions {
    right: 8px;
    bottom: 8px;
    gap: 6px;
  }

  .float-collapse {
    width: 34px;
    height: 34px;
  }

  .float-shell {
    width: min(226px, calc(100vw - 18px));
    height: 48px;
  }

  .float-item {
    height: 48px;
  }

  .float-item span {
    font-size: 13px;
    padding-left: 48px;
  }

  .float-item b {
    width: 48px;
    height: 48px;
  }

  .float-shell.is-collapsed,
  .float-shell.is-collapsed .float-item,
  .float-shell.is-collapsed .float-item b {
    width: 44px;
    height: 44px;
  }
}

/* Email unlock layer: keep the reader UI unchanged, only gate pages after the first sample. */
.pdf-page.locked-by-email {
  position: relative;
  max-height: 560px;
  overflow: hidden;
}

.pdf-page.locked-by-email img {
  filter: blur(8px);
  opacity: 0.42;
  transform: scale(0.992);
}

.pdf-page.locked-by-email::after {
  content: "Nhập email để đọc tiếp miễn phí";
  position: absolute;
  left: clamp(18px, 5vw, 42px);
  right: clamp(18px, 5vw, 42px);
  bottom: clamp(18px, 5vw, 42px);
  min-height: 54px;
  display: grid;
  place-items: center;
  padding: 0 18px;
  border-radius: 999px;
  color: #fff;
  background: var(--red);
  box-shadow: var(--shadow-lg);
  font-weight: 900;
  text-align: center;
}

body.reader-unlocked .pdf-page.locked-by-email {
  max-height: none;
}

body.reader-unlocked .pdf-page.locked-by-email img {
  filter: none;
  opacity: 1;
  transform: none;
}

.toc-list a[data-page-locked="true"]::after,
.mobile-toc a[data-page-locked="true"]::after {
  content: " 🔒";
  font-size: 12px;
  opacity: 0.75;
}

.toc-list a.done[data-page-locked="true"]::after {
  content: "✓";
}

.email-inline-gate {
  scroll-margin-top: 76px;
}

.email-unlock-card {
  display: grid;
  gap: 8px;
  padding: clamp(18px, 2vw, 24px);
  border: 1px solid rgba(193, 37, 37, 0.18);
  border-radius: 24px;
  background: linear-gradient(180deg, #fff 0%, #fff7f7 100%);
  box-shadow: var(--shadow);
}

.email-unlock-card h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(21px, 2.2vw, 28px);
  line-height: 1.2;
}

.email-unlock-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.58;
}

.email-unlock-form {
  display: grid;
  gap: 9px;
  margin-top: 6px;
}

.email-unlock-form input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 16px;
  color: var(--navy);
  background: #fff;
  font-weight: 750;
}

.email-unlock-form button {
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--red);
  font-weight: 900;
}

.email-error {
  color: var(--red) !important;
  font-size: 12px !important;
  font-weight: 850;
}

.options.needs-answer {
  border-radius: 18px;
  box-shadow: 0 0 0 3px rgba(204, 37, 43, 0.16);
}

/* Reader UI fixes 2026-07-17: logo link + guided label two lines. */
.brand-home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.mode-switch button span,
.quick-links button[data-select-mode="guided"] span {
  display: block;
  line-height: 1.08;
}

.mode-switch button[data-mode="guided"],
.quick-links button[data-select-mode="guided"] {
  white-space: normal;
}

/* Reader guided label final split. */
.mode-switch button[data-mode="guided"],
.quick-links button[data-select-mode="guided"] {
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  white-space: normal !important;
  line-height: 1.08 !important;
}

.mode-switch button[data-mode="guided"] span,
.quick-links button[data-select-mode="guided"] span {
  display: block !important;
  width: 100% !important;
  line-height: 1.08 !important;
}
