body.article-mode {
  --background: #100f0d;
  --panel: #1a1814;
  --panel-raised: #211e19;
  --cream: #f7f0e4;
  --muted: #c2b7a7;
  --gold: #e6c58e;
  --line: #39322a;
  --focus-ring: #f7d5a0;
  --article-width: 860px;
  --article-inset: clamp(18px, 4.7vw, 43px);
  --article-paper: #171511;
  --article-rule: #393125;
  --article-head: #100f0deF;
  background: var(--background);
}

.article-mode .site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 8;
  background: var(--article-head);
  border-color: #392f20;
  backdrop-filter: blur(10px);
}

.article-mode .site-footer > .shell {
  width: min(var(--article-width), calc(100% - 32px));
}

.article-mode .header-inner {
  width: min(1048px, calc(100% - 32px));
  min-height: 83px;
}

.article-mode .brand {
  color: #f5ead6;
  font-size: clamp(1.25rem, 3.3vw, 1.7rem);
}

.article-mode .brand-mark {
  border-color: #7e633d;
  border-radius: 7px;
  background: linear-gradient(140deg, #514028, #261e16);
}

.article-mode .header-actions {
  gap: clamp(6px, 1.5vw, 14px);
}

.article-mode .contents-button {
  min-height: 44px;
  padding-inline: 14px;
  border: 1px solid #ead29d;
  border-radius: 999px;
  background: linear-gradient(180deg, #ecd39e, #d7b377);
  color: #241a12;
  box-shadow: inset 0 1px #ffebbe88;
}

.article-mode .contents-button:hover {
  border-color: #f0d9aa;
  background: linear-gradient(180deg, #f3dfb4, #ddbd85);
  color: #241a12;
}

.article-mode .contents-button .button-icon {
  width: 16px;
  height: 16px;
  border: 0;
  color: inherit;
}

.article-mode .language-switch {
  background: #1c1814;
  border-color: #40372a;
}

.article-mode .language-switch button[aria-pressed="true"] {
  color: #efd3a0;
  background: #362b1d;
  border-color: #80653d;
}

.article-mode .skip-link:focus {
  z-index: 11;
}

.article-mode .article-shell {
  width: min(var(--article-width), calc(100% - 32px));
  margin-inline: auto;
  min-width: 0;
  padding-block: clamp(18px, 4vw, 30px) 50px;
}

.article-hero {
  margin-bottom: clamp(42px, 6.5vw, 80px);
  border: 1px solid var(--article-rule);
  border-radius: 18px;
  background: var(--article-paper);
}

.cover-art {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .8fr);
  align-items: center;
  min-height: clamp(250px, 53.3vw, 484px);
  padding: clamp(22px, 6.4vw, 60px);
  gap: 12px;
  isolation: isolate;
  overflow: hidden;
  border-radius: 17px 17px 0 0;
  background:
    radial-gradient(ellipse at 76% 37%, #7d532e53, transparent 65%),
    radial-gradient(ellipse at 0 100%, #5b2e193b, transparent 45%),
    linear-gradient(140deg, #35281c, #211912 65%, #120f0c);
}

.cover-art::before,
.cover-art::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  pointer-events: none;
}

.cover-art::before {
  background:
    repeating-linear-gradient(0deg, transparent 0 3px, #ffdea809 3px 4px),
    repeating-linear-gradient(110deg, transparent 0 14px, #edba6c0c 14px 15px);
  mask-image: linear-gradient(125deg, #000, #0000 77%);
}

.cover-art::after {
  inset: auto -20% -62% 26%;
  height: 120%;
  border: 1px solid #f0c4882e;
  border-radius: 50%;
  box-shadow:
    0 0 0 16px #f0c48810,
    0 0 0 32px #f0c4880a,
    0 0 0 50px #f0c48808,
    0 0 0 74px #f0c48806;
  transform: rotate(-19deg);
}

.cover-type {
  position: relative;
  z-index: 1;
  min-width: 0;
  color: #fff1d6;
  font: 700 clamp(3.1rem, 8.7vw, 7.9rem)/.83 var(--heading);
  letter-spacing: -.03em;
  text-transform: uppercase;
  text-shadow: 0 7px 38px #0e0b08a0;
}

.cover-type :where(span, strong, em) {
  display: block;
}

.cover-type > :is(strong, em) {
  white-space: nowrap;
}

.cover-type :where(em, .cover-accent) {
  color: #e1b97c;
  font-style: normal;
  background: linear-gradient(#f6deb0 15%, #c99857);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cover-type :where(small, .cover-kicker, .cover-brand) {
  display: block;
  margin: 0 0 clamp(11px, 2.2vw, 22px);
  color: #e6c58e;
  font: 700 clamp(.66rem, 1.5vw, .88rem)/1.25 var(--text);
  letter-spacing: .19em;
}

.cover-type :where(p, .cover-caption, .cover-subtitle) {
  display: block;
  margin: clamp(13px, 2.6vw, 24px) 0 0;
  color: #dbc5a1;
  font: 650 clamp(.62rem, 1.65vw, .95rem)/1.28 var(--text);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.cover-type :where(h1, h2, div) {
  margin: 0;
  font: inherit;
}

.cover-bubbles {
  position: relative;
  align-self: stretch;
  min-width: 0;
  isolation: isolate;
}

.cover-bubbles::before {
  content: "";
  position: absolute;
  inset: 16% -14% 4% -9%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(ellipse, #b48a4c35, transparent 69%);
}

.cover-bubbles svg:not(.button-icon) {
  width: 100%;
  height: auto;
  align-self: center;
}

.cover-bubbles > :is(.cover-bubble-back, .cover-bubble-front) {
  display: flex;
  position: absolute;
  z-index: 1;
  place-content: center;
  align-items: center;
  justify-content: center;
  inset: 22% 4% auto auto;
  width: min(87%, 210px);
  aspect-ratio: 1.42;
  border: 2px solid #a77f50;
  border-radius: clamp(12px, 3vw, 28px);
  background: linear-gradient(158deg, #b18a56, #53402b 31%, #2d2119 66%, #65471f);
  color: #f5d7a2;
  transform: rotate(-13deg);
  box-shadow: inset 0 0 0 2px #d3a56a5e, inset 0 2px 3px #fff4d092, 0 13px 22px #100a07bd;
}

.cover-bubbles > :is(.cover-bubble-back, .cover-bubble-front)::after {
  position: absolute;
  right: 15%;
  bottom: -10%;
  z-index: -1;
  width: 22%;
  height: 23%;
  content: "";
  border-right: 2px solid #a77f50;
  border-bottom: 2px solid #a77f50;
  border-radius: 0 0 7% 0;
  background: #2e2117;
  transform: skew(0, -37deg);
}

.cover-bubbles > .cover-bubble-front {
  inset: 48% 22% auto auto;
  z-index: 2;
  width: min(77%, 190px);
  gap: clamp(5px, 1.3vw, 13px);
  background: linear-gradient(151deg, #e1bd85, #997349 33%, #4a3321 76%, #6c4b2f);
  border-color: #d7a970;
  transform: rotate(11deg);
}

.cover-bubbles > .cover-bubble-front::after {
  right: auto;
  left: 17%;
  border-color: #d7a970;
  background: #523724;
}

.cover-bubble-front i {
  width: clamp(5px, 1.25vw, 14px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 26%, #fff2cb, #ebc68e 39%, #9c6b3f 91%);
  box-shadow: 0 2px 4px #2b1c13b3;
}

.article-intro {
  padding: clamp(22px, 5vw, 43px) var(--article-inset) clamp(28px, 5vw, 40px);
}

.article-intro h1 {
  margin: 9px 0 14px;
  color: var(--cream);
  font: 700 clamp(2.12rem, 5.6vw, 3.38rem)/.99 var(--text);
  letter-spacing: -.048em;
  text-wrap: balance;
}

.article-intro p:not(.story-kicker, .story-label, .eyebrow) {
  max-width: 56ch;
  margin: 0 0 17px;
  color: var(--muted);
  font-size: clamp(.98rem, 2.4vw, 1.11rem);
}

.article-intro .button {
  margin-top: 5px;
}

.article-intro .button:not(.button-secondary),
.story-cta .button:not(.button-secondary) {
  border-radius: 999px;
}

.story-page,
.story-section,
.story-card,
.story-shot,
.story-widget {
  min-width: 0;
}

.story-section {
  padding: clamp(22px, 3vw, 30px) 0 0;
  margin-top: clamp(44px, 6.5vw, 80px);
  scroll-margin-top: 98px;
  border-top: 1px solid var(--article-rule);
}

.story-basics {
  padding-top: 0;
  border-top: 0;
}

.story-section:is(#start, #pair, #signal, #analysis, #result) .story-section-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: clamp(12px, 3vw, 32px);
  align-items: start;
}

.story-section:is(#start, #pair, #signal, #analysis, #result) .story-section-header::before {
  grid-row: 1 / span 2;
  grid-column: 1;
  color: var(--gold);
  font: 650 clamp(2.9rem, 7.6vw, 5.2rem)/.84 var(--heading);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.06em;
}

#start .story-section-header::before { content: "01" / ""; }
#pair .story-section-header::before { content: "02" / ""; }
#signal .story-section-header::before { content: "03" / ""; }
#analysis .story-section-header::before { content: "04" / ""; }
#result .story-section-header::before { content: "05" / ""; }

.story-section:is(#start, #pair, #signal, #analysis, #result) .story-section-header :is(.story-kicker, .story-section-title) {
  grid-column: 2;
}

.story-section:is(#start, #pair, #signal, #analysis, #result) .story-kicker::before {
  content: none;
}

.story-section :is(p, ul, ol):last-child {
  margin-bottom: 0;
}

.story-label,
.story-kicker,
.article-intro .eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--gold);
  margin: 0 0 10px;
  font: 750 .72rem/1.42 var(--text);
  text-transform: uppercase;
  letter-spacing: .16em;
}

.story-kicker::before {
  width: 25px;
  height: 1px;
  flex: 0 0 auto;
  background: #b39360;
  content: "";
}

.story-heading,
.story-section-title {
  margin: 0 0 12px;
  color: var(--cream);
  font: 700 clamp(1.75rem, 4.4vw, 3.15rem)/1.02 var(--text);
  letter-spacing: -.044em;
}

.story-lead,
.story-section-note {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.6;
  font-size: clamp(.94rem, 2.6vw, 1.0625rem);
}

.story-section-note {
  margin: 15px 0 0;
  font-size: .9rem;
}

.story-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(16px, 4.2vw, 36px);
  margin-top: 21px;
}

.story-split .story-shot {
  margin: 0;
}

.story-copy .story-lead {
  margin-bottom: 8px;
}

.story-copy .story-explanation {
  margin-top: 8px;
}

.story-columns,
.story-grid,
.story-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.story-card,
.story-field {
  min-width: 0;
  padding: clamp(13px, 2.7vw, 19px);
  border: 1px solid #43392b;
  border-radius: 9px;
  background: #211d17;
}

.story-card h3,
.story-card h4,
.story-field strong,
.story-field dd {
  margin: 0 0 5px;
  color: #f6e8d1;
  font: 700 clamp(1.23rem, 3vw, 1.55rem)/1.1 var(--heading);
}

.story-card p,
.story-field p,
.story-field dt {
  margin: 0;
  color: var(--muted);
  font-size: .88rem;
}

.story-card-icon .button-icon,
.story-card-icon > svg,
.story-shot-label .button-icon,
.story-shot-label > svg,
.story-field > svg,
.story-section-note > svg {
  width: 18px;
  height: 18px;
  border: 0;
  color: var(--gold);
}

.story-card-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 8px;
  border: 1px solid #584731;
  border-radius: 7px;
  background: #382c1e;
}

.story-nav,
.story-route {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  margin: 17px 0 0;
  padding: 0;
  list-style: none;
}

.story-nav :is(li, a),
.story-route :is(li, a) {
  min-width: 0;
}

.story-nav a,
.story-route a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  min-height: 64px;
  padding: 8px 10px;
  border: 1px solid #3e3326;
  border-radius: 7px;
  background: #1c1914;
  color: #e6dbca;
  font-size: .83rem;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
}

.story-nav a:hover,
.story-route a:hover {
  color: #fff3dc;
  border-color: #9e7848;
  background: #292015;
}

.story-nav-number {
  color: var(--gold);
  font-size: .71rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: .08em;
}

.story-shot,
.story-visual {
  min-width: 0;
  margin: 18px 0 0;
  overflow: hidden;
  border: 1px solid #42372a;
  border-radius: 10px;
  background: #201b15;
}

.story-shot-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border-bottom: 1px solid #3d3428;
  color: #e1c28c;
  background: #262016;
  font: 700 .72rem/1.3 var(--text);
  text-transform: uppercase;
  letter-spacing: .1em;
}

.story-shot-body {
  min-width: 0;
  padding: clamp(13px, 4vw, 28px);
  background:
    radial-gradient(ellipse at 6% 0%, #48342255, transparent 58%),
    #1e1914;
}

.story-caption,
.story-shot > figcaption:not(.story-shot-label) {
  padding: 10px 13px;
  border-top: 1px solid #3c3227;
  margin: 0;
  color: var(--muted);
  font-size: .82rem;
}

.story-telegram {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #1c1d23;
  box-shadow: 0 10px 24px #0a0a0b60;
}

.story-telegram-header {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 55px;
  padding: 8px 13px;
  color: #f1f0ed;
  background: #24252d;
  font-weight: 700;
}

.story-telegram-header small {
  display: block;
  color: #adacb6;
  font-weight: 400;
  line-height: 1.2;
}

.story-avatar {
  display: inline-grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border: 1px solid #b09060;
  border-radius: 50%;
  color: #f5dcae;
  background: linear-gradient(140deg, #73522d, #3b2b1c);
}

.story-avatar svg {
  width: 16px;
  height: 16px;
  border: 0;
}

.story-telegram-thread {
  min-width: 0;
  padding: 15px 12px 17px;
  background-color: #191a21;
  background-image: radial-gradient(circle at center, #cac0ae15 1px, transparent 1.3px);
  background-size: 17px 17px;
}

.story-message {
  width: fit-content;
  min-width: 0;
  max-width: 100%;
  padding: 8px 11px 7px;
  border: 1px solid #46444d;
  border-radius: 3px 10px 10px 10px;
  background: #2d2e38;
  color: #f6f2ec;
  box-shadow: 0 3px 7px #0a0a0b36;
}

.story-message > :where(p, dl) {
  margin: 0 0 6px;
}

.story-section-note > svg {
  margin-inline-end: 6px;
  vertical-align: -.225em;
}

.story-field > svg {
  margin-bottom: 5px;
}

.story-message-time {
  display: block;
  margin: 4px 0 0;
  color: #bdb5ab;
  text-align: end;
  font-size: .71rem;
  font-variant-numeric: tabular-nums;
}

.story-field-grid {
  margin: 12px 0 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.story-cta {
  padding: var(--article-inset);
  border: 1px solid var(--article-rule);
  border-radius: 15px;
  background: radial-gradient(ellipse at 50% 0%, #312317, #191611 85%);
}

.story-cta > h3 {
  margin: 0 0 18px;
  color: var(--cream);
  font: 700 clamp(1.75rem, 4.4vw, 2.85rem)/1.04 var(--heading);
  text-align: center;
  text-wrap: balance;
}

.story-cta-emblem {
  display: grid;
  place-items: center;
  width: fit-content;
  margin: 0 auto 16px;
}

.story-cta-emblem .brand-mark {
  transform: scale(1.18);
  box-shadow: 0 6px 17px #100b07a1;
}

.story-cta .resource-guide {
  align-items: stretch;
}

.story-cta .resource-card {
  border-color: #493b2b;
  background: #221c15;
}

.story-cta .resource-card h3 {
  color: #f6e7d0;
}

.story-footer,
.article-mode .site-footer {
  background: #15120f;
  border-color: #393126;
}

.article-mode #lesson {
  --lesson-panel: #1c1914;
  --lesson-panel-light: #241e16;
  --lesson-line: #463c2d;
  --lesson-gold: var(--gold);
  --lesson-muted: var(--muted);
  --lesson-text: var(--cream);
}

.article-mode #lesson .story-widget {
  margin-top: clamp(10px, 2.3vw, 18px);
}

.article-mode .story-widget > :where(.lesson-body, .lesson-wrap),
.article-mode #lesson .lesson-wrap {
  gap: 11px;
}

.article-mode #lesson .story-widget .lesson-nav {
  position: static;
  inset: auto;
  z-index: auto;
  width: auto;
  margin: 14px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

@media (max-width: 700px) {
  .article-mode #lesson .story-widget .lesson-split {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 650px) {
  .article-mode .header-inner { min-height: 60px; }
  .cover-art {
    min-height: clamp(220px, 52vw, 340px);
    padding: clamp(13px, 4.1vw, 27px);
    gap: 6px;
  }
  .cover-type { font-size: clamp(2.35rem, 8.5vw, 4.35rem); }
  .cover-type :where(small, .cover-kicker, .cover-brand) { letter-spacing: .11em; }
  .cover-type :where(p, .cover-caption, .cover-subtitle) { letter-spacing: .08em; }
  .story-section { scroll-margin-top: 71px; }
  .story-nav, .story-route { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 430px) {
  body.article-mode { --article-inset: 15px; }
  .article-mode .header-inner,
  .article-mode .article-shell,
  .article-mode .site-footer > .shell {
    width: calc(100% - 24px);
  }
  .article-mode .contents-button {
    min-width: 40px;
    padding-inline: 11px;
  }
  .article-mode .brand-mark {
    width: 30px;
    height: 30px;
  }
  .article-mode .language-switch button {
    min-width: 34px;
    min-height: 40px;
  }
  .cover-art { min-height: 190px; }
  .story-nav, .story-route {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .story-columns, .story-grid { grid-template-columns: 1fr; }
  .story-field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story-shot-body:not(.story-telegram) { padding: 10px; }
}

/* Keep the original editorial rhythm on small screens. */
.article-mode:has(#lesson) .site-footer { padding-bottom: 0; }
.article-intro h1:focus,
.story-section-title:focus { outline: none; }
.story-next { margin-top: 18px; }

.story-explanation {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: clamp(.94rem, 2.6vw, 1.0625rem);
  line-height: 1.65;
}

.story-chart .story-shot-body {
  padding: 10px;
}

.story-chart .price-chart {
  margin: 0;
}

.story-chart .price-chart canvas {
  display: block;
  max-width: 100%;
  border-radius: 6px;
}

.story-result-summary {
  margin-top: 14px;
  padding: clamp(15px, 3vw, 24px);
  border: 1px solid #5f4b31;
  border-radius: 10px;
  background: #221c15;
  color: var(--muted);
}

.story-result-summary :is(strong, h3) {
  color: var(--gold);
}

.story-result-summary h3 {
  margin: 0 0 6px;
  font: 700 clamp(1.32rem, 3.2vw, 1.8rem)/1.12 var(--heading);
}

.story-result-summary p { margin: 0; }

.story-team-grid { margin-block: 18px; }
.story-team-grid .story-card { border-color: #493b2b; }

.reference-trainer {
  --trainer-line: #4a3c2b;
  display: grid;
  min-width: 0;
  margin-top: 22px;
  overflow: hidden;
  border: 1px solid var(--trainer-line);
  border-radius: 15px;
  background: #191612;
}

.reference-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  border-bottom: 1px solid var(--trainer-line);
  background: #211b14;
}

.reference-tab {
  min-width: 0;
  min-height: 64px;
  padding: 7px 8px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: var(--muted);
  background: transparent;
  font: 700 clamp(.74rem, 1.6vw, .96rem)/1.25 var(--text);
  white-space: normal;
  cursor: pointer;
}

.reference-tab:hover {
  color: var(--cream);
  background: #302419;
}

.reference-tab[aria-selected="true"] {
  border-bottom-color: #d8b477;
  color: #ffe2a9;
  background: #473421;
  box-shadow: none;
}

.reference-tab-number {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 1.35rem;
  height: 1.35rem;
  margin-inline-end: 3px;
  border: 1px solid #8e673f;
  border-radius: 50%;
  color: var(--gold);
  font-size: .76em;
  font-variant-numeric: tabular-nums;
}

.reference-tab .button-icon {
  width: 17px;
  height: 17px;
  margin-inline-end: 4px;
  color: var(--gold);
  vertical-align: -.19em;
}

.reference-trainer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  min-width: 0;
}

.reference-phone-wrap {
  min-width: 0;
  height: 100%;
  padding: clamp(18px, 4.2vw, 36px);
  display: grid;
  align-content: center;
  justify-items: center;
  background: radial-gradient(ellipse at 50% 45%, #422f225e, transparent 67%), #161310;
}

.reference-phone {
  position: relative;
  width: min(100%, 302px);
  margin: 0;
  min-width: 0;
  padding: 7px;
  border: 1px solid #685b47;
  border-radius: 29px;
  background: linear-gradient(160deg, #39342c, #151414 58%, #4c4232);
  box-shadow: inset 0 0 0 1px #afa08830, 0 14px 28px #0009;
}

.reference-screen {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 23px 8px 11px;
  border: 1px solid #10141e;
  border-radius: 23px;
  color: #f3f4f8;
  background: #171b27;
}

.reference-screen::before,
.reference-screen::after {
  position: absolute;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  content: "";
}

.reference-screen::before {
  inset-block-start: 6px;
  width: 55px;
  height: 12px;
  border-radius: 999px;
  background: #0b0c10;
}

.reference-screen::after {
  inset-block-end: 3px;
  width: 38px;
  height: 2px;
  border-radius: 999px;
  background: #f0f2fa8c;
}

.reference-screen-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 4px 8px;
  padding: 2px 0 6px;
  color: #f0f3fc;
  font-size: .73rem;
  line-height: 1.2;
}

.reference-screen-top span {
  padding: 3px 5px;
  border: 1px solid #4d576f;
  border-radius: 4px;
  color: #c5d0e6;
  background: #242c3e;
}

.reference-phone-bottom,
.reference-direction-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}

.reference-phone-bottom .reference-phone-field {
  display: grid;
  align-content: start;
  margin-block: 0;
}

.reference-direction-row span {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  min-height: 28px;
  padding: 3px 4px;
  border: 1px solid #579772;
  border-radius: 5px;
  color: #d5ffdf;
  background: #245739;
  font-size: .71rem;
}

.reference-direction-row span:last-child {
  border-color: #a4616a;
  color: #ffe1e5;
  background: #653844;
}

.reference-direction-row .button-icon {
  width: 13px;
  height: 13px;
  padding: 0;
  border: 0;
  background: transparent;
}

.reference-phone-field {
  display: flex;
  gap: 5px 9px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  min-width: 0;
  min-height: 33px;
  margin-block: 4px;
  padding: 4px 6px;
  border: 1px solid #363d50;
  border-radius: 5px;
  background: #23293a;
  color: #d6dbea;
  font: 550 clamp(.7rem, 1.38vw, .82rem)/1.25 var(--text);
}

.reference-phone-field strong {
  color: #f0f3fc;
}

.reference-phone-field:is([data-active]:not([data-active="false"]), .is-active) {
  border-color: #e1bb70;
  outline: 1px solid #e1bb70;
  outline-offset: 1px;
  background: #3e3526;
  color: #ffe1a8;
}

.reference-phone-field:is([data-active]:not([data-active="false"]), .is-active) strong {
  color: #fff0ce;
}

.reference-screen .price-chart {
  margin-block: 4px;
}

.reference-screen canvas {
  display: block;
  max-width: 100%;
  border-radius: 4px;
}

.reference-device-note {
  margin: 15px 0 0;
  color: #ad9d83;
  font-size: .77rem;
  text-align: center;
}

.reference-panel {
  min-width: 0;
  align-self: stretch;
  display: grid;
  align-content: center;
  gap: 12px;
  padding: clamp(17px, 4vw, 37px);
  border-inline-start: 1px solid var(--trainer-line);
  text-align: center;
}

.reference-panel p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(.88rem, 2vw, 1rem);
  line-height: 1.55;
}

.reference-panel :is(.story-kicker, .story-label) {
  justify-content: center;
  color: var(--gold);
  font-size: .72rem;
}

.reference-panel :is(h3, h4) {
  margin: 0;
  color: var(--cream);
  font: 700 clamp(1.55rem, 3.6vw, 2.35rem)/1.02 var(--heading);
}

.reference-panel strong {
  color: var(--cream);
}

.reference-trainer-nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-width: 0;
  padding: 11px 14px;
  border-top: 1px solid var(--trainer-line);
  color: var(--gold);
  text-align: center;
  font-size: .8rem;
  font-variant-numeric: tabular-nums;
}

.reference-trainer-nav button {
  min-width: 0;
  min-height: 43px;
  padding: 6px 9px;
  border: 1px solid #80623e;
  border-radius: 7px;
  color: #ffdfa9;
  background: #392a1d;
  font: 700 clamp(.76rem, 1.65vw, .9rem)/1.2 var(--text);
  cursor: pointer;
}

.reference-trainer-nav button:not(:disabled):hover {
  border-color: #b8894b;
  background: #4d3825;
}

.reference-trainer-nav button:disabled {
  opacity: .48;
  cursor: default;
}

.reference-trainer-nav button .button-icon {
  width: 16px;
  height: 16px;
  vertical-align: -.2em;
}

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

  .reference-trainer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .reference-panel {
    border-inline-start: 0;
    border-top: 1px solid var(--trainer-line);
  }
}

@media (max-width: 400px) {
  .reference-tab {
    min-height: 44px;
    padding-inline: 2px;
    overflow-wrap: anywhere;
  }

  .reference-tab-number {
    display: flex;
    margin: 0 auto 3px;
    width: 1.15rem;
    height: 1.15rem;
  }

  .reference-tab .button-icon {
    display: none;
  }

  .reference-trainer-nav {
    padding-inline: 8px;
  }
}

.cover-art {
  background:
    radial-gradient(ellipse at 72% 38%, #62472832, transparent 58%),
    linear-gradient(145deg, #242019 0%, #14120f 50%, #0c0b09);
}

.cover-art::after { opacity: .28; }

.cover-bubbles > :is(.cover-bubble-back, .cover-bubble-front) {
  border: 3px solid #c8a56b;
  background: linear-gradient(150deg, #1b1812, #0f0e0c 82%);
  box-shadow: inset 0 0 0 1px #775c393f, inset 0 2px 4px #ffda9e62, 0 11px 24px #050403c9, 0 0 0 1px #f0dba28c;
}

.cover-bubbles > .cover-bubble-back { inset-inline-end: 15%; transform: rotate(-11deg); }
.cover-bubbles > .cover-bubble-front { inset-inline-end: 2%; transform: rotate(4deg); }
.cover-bubbles > .cover-bubble-back::after { left: 13%; right: auto; transform: skew(0, -37deg); }
.cover-bubbles > .cover-bubble-front::after { right: 15%; left: auto; transform: skew(0, 37deg); }
.cover-bubbles > :is(.cover-bubble-back, .cover-bubble-front)::after { background: #161411; border-color: #c8a56b; }

.article-mode #lesson #article-widget-3 .signal-fragments {
  grid-template-columns: repeat(auto-fit, minmax(min(118px, 100%), 1fr));
}

@media (min-width: 1000px) {
  .cover-art { padding-inline: 43px; }
  .cover-type { font-size: clamp(6.1rem, 9.5vw, 8rem); }
  .cover-type :where(strong, em) { transform: scaleX(.86); transform-origin: left center; }
  .cover-type :where(small, .cover-brand) { font-size: 1.32rem; letter-spacing: .12em; }
  .cover-type :where(p, .cover-subtitle) { font-size: 1.02rem; }
}
