@font-face {
  font-family: "Onest";
  src: url("fonts/onest-latin-wght-400-800-v11.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: "Unbounded";
  src: url("fonts/unbounded-latin-wght-600-800-v12.woff2") format("woff2");
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
}

@font-face {
  font-family: "Aileron";
  src: url("fonts/Aileron-Thin.otf") format("opentype");
  font-style: normal;
  font-weight: 100;
  font-display: swap;
}

@font-face {
  font-family: "Aileron";
  src: url("fonts/Aileron-Regular.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Aileron";
  src: url("fonts/Aileron-Bold.otf") format("opentype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Caveat";
  src: url("fonts/caveat-latin-wght-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #f6f3fb;
  --muted: #b6afc5;
  --paper: #15121e;
  --canvas: #0b0a10;
  --surface-elevated: #15121e;
  --line: rgba(255, 255, 255, 0.11);
  --night: #0b0a10;
  --night-soft: #191321;
  --lavender: #d1a3ff;
  --lavender-soft: #251b31;
  --coral: #d1a3ff;
  --coral-soft: #2b1b34;
  --mint: #d1a3ff;
  --mint-soft: #1f1828;
  --link: #d1a3ff;
  --link-hover: #e0c0ff;
  --reference: #15121e;
  --meter-track: #30273a;
  --success-text: #d7cae5;
  --success-line: #5b466d;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
  --masthead-bg: rgba(11, 10, 16, 0.93);
  --masthead-ink: #ffffff;
  --masthead-muted: rgba(255, 255, 255, 0.72);
  --masthead-control-bg: rgba(255, 255, 255, 0.1);
  --masthead-control-line: rgba(255, 255, 255, 0.22);
  --masthead-control-icon: rgba(255, 255, 255, 0.56);
  --masthead-control-active-bg: #d1a3ff;
  --masthead-control-active-ink: #0b0a10;
  --progress-track: rgba(255, 255, 255, 0.16);
  --hero-field:
    radial-gradient(circle at 15% 18%, rgba(209, 163, 255, 0.25), transparent 31rem),
    radial-gradient(circle at 46% 112%, rgba(116, 67, 143, 0.34), transparent 36rem),
    linear-gradient(135deg, #0b0a10 0%, #1b1028 53%, #3b2348 100%);
  --hero-blend: linear-gradient(90deg, rgba(13, 8, 19, 0.98) 0%, rgba(26, 14, 37, 0.94) 29%, rgba(72, 40, 88, 0.7) 49%, rgba(44, 27, 53, 0.3) 73%, rgba(11, 10, 16, 0.08) 100%);
  --hero-mobile-blend: linear-gradient(180deg, rgba(16, 9, 23, 0.22) 0%, rgba(38, 21, 49, 0.5) 46%, rgba(11, 10, 16, 0.94) 100%);
  --hero-panel-bg: rgba(15, 10, 22, 0.12);
  --hero-panel-bg-mobile: rgba(15, 10, 22, 0.12);
  --hero-panel-line: rgba(209, 163, 255, 0.22);
  --hero-panel-shadow: 0 20px 50px rgba(8, 6, 22, 0.5), 0 4px 16px rgba(8, 6, 22, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  --hero-ink: #ffffff;
  --hero-muted: rgba(255, 255, 255, 0.82);
  --hero-meta: rgba(255, 255, 255, 0.76);
  --hero-link: #ffffff;
  --hero-accent: #d1a3ff;
  --hero-chip-bg: rgba(209, 163, 255, 0.14);
  --hero-chip-line: rgba(209, 163, 255, 0.28);
  --hero-image-filter: saturate(0.92) contrast(1.03);
  --radius: 16px;
  --reading: 68ch;
  --ui-font: "Aileron", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --article-font: "Aileron", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --accent-font: "Caveat", cursive;
  --brand-font: "Aileron", ui-sans-serif, sans-serif;
}

:root[data-theme="light"] {
  color-scheme: light;
  --ink: #182033;
  --muted: #596175;
  --paper: #fffdf8;
  --canvas: #f3f1f7;
  --surface-elevated: #ffffff;
  --line: #dcd9e8;
  --lavender-soft: #eeeaff;
  --coral-soft: #fff0ec;
  --mint-soft: #eaf8f3;
  --link: #4a35a8;
  --link-hover: #2e1f78;
  --reference: #ebe8f1;
  --meter-track: #e5e1ec;
  --success-text: #25634f;
  --success-line: #a7dac9;
  --shadow: 0 22px 70px rgba(31, 24, 68, 0.13);
  --masthead-bg: rgba(255, 253, 248, 0.94);
  --masthead-ink: #182033;
  --masthead-muted: #596175;
  --masthead-control-bg: #eeeaff;
  --masthead-control-line: #cbc3e2;
  --masthead-control-icon: #6b6478;
  --masthead-control-active-bg: #d1a3ff;
  --masthead-control-active-ink: #201229;
  --progress-track: rgba(74, 53, 168, 0.14);
  --hero-field:
    radial-gradient(circle at 14% 16%, rgba(209, 163, 255, 0.32), transparent 30rem),
    radial-gradient(circle at 47% 112%, rgba(255, 255, 255, 0.86), transparent 36rem),
    linear-gradient(135deg, #fffdf8 0%, #f3ecf8 52%, #ded1ec 100%);
  --hero-blend: linear-gradient(90deg, rgba(255, 253, 248, 0.99) 0%, rgba(250, 246, 252, 0.97) 29%, rgba(238, 226, 247, 0.82) 49%, rgba(238, 226, 247, 0.34) 71%, rgba(255, 255, 255, 0.04) 100%);
  --hero-mobile-blend: linear-gradient(180deg, rgba(255, 253, 248, 0.08) 0%, rgba(238, 226, 247, 0.46) 46%, rgba(255, 253, 248, 0.96) 100%);
  --hero-panel-bg: rgba(255, 253, 248, 0.12);
  --hero-panel-bg-mobile: rgba(255, 253, 248, 0.12);
  --hero-panel-line: rgba(74, 53, 168, 0.18);
  --hero-panel-shadow: 0 20px 50px rgba(58, 35, 78, 0.24), 0 4px 16px rgba(58, 35, 78, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.76);
  --hero-ink: #182033;
  --hero-muted: #3f4658;
  --hero-meta: #4f5669;
  --hero-link: #3f2b92;
  --hero-accent: #4a35a8;
  --hero-chip-bg: rgba(209, 163, 255, 0.3);
  --hero-chip-line: rgba(74, 53, 168, 0.16);
  --hero-image-filter: saturate(0.84) contrast(0.94) brightness(1.07);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

:target { scroll-margin-top: 6rem; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--canvas);
  font-family: var(--ui-font);
  font-size: 18px;
  line-height: 1.76;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--link);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover { color: var(--link-hover); }

.ron-widget {
  display: block;
  width: 100%;
  height: 52px;
  border: 0;
  margin: 1.5rem 0;
  color-scheme: normal;
  transition: height 0.28s ease;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
  border-radius: 6px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -5rem;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  color: white;
  background: var(--night);
  border-radius: 0.5rem;
}

.skip-link:focus { top: 1rem; }

.progress-track {
  position: fixed;
  inset: 0 0 auto;
  z-index: 90;
  height: 4px;
  background: var(--progress-track);
}

.progress-fill {
  display: block;
  width: 0;
  height: 100%;
  background: var(--lavender);
  transition: width 100ms linear;
}

.masthead {
  position: sticky;
  top: 0;
  z-index: 80;
  color: var(--masthead-ink);
  background: var(--masthead-bg);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  font-family: var(--brand-font);
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 6rem), 75rem);
  min-height: 80px;
  margin-inline: auto;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--masthead-ink);
  font-family: "Unbounded", "Onest", sans-serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.035em;
  text-decoration: none;
  white-space: nowrap;
}

.brand:hover { color: var(--masthead-ink); }

.brand img { display: block; flex: none; border-radius: 10px; }

.masthead-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.82rem;
  font-weight: 720;
}

.masthead-nav a { color: var(--masthead-muted); text-decoration: none; }
.masthead-nav a:hover { color: var(--masthead-ink); }
.masthead-nav .guides-link { color: var(--masthead-ink); }

.masthead-nav .button {
  padding: 0.55rem 0.85rem;
  color: var(--night);
  background: var(--mint);
  border-radius: 8px;
}

.masthead-nav .button:hover { color: var(--night); background: white; }

.theme-select {
  min-height: 38px;
  padding: 0.44rem 2rem 0.44rem 0.7rem;
  color: var(--masthead-ink);
  background-color: var(--masthead-control-bg);
  border: 1px solid var(--masthead-control-line);
  border-radius: 999px;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 750;
  cursor: pointer;
}

.theme-select option { color: #17142f; background: white; }

.theme-switch {
  display: grid;
  grid-template-columns: repeat(2, 1.8rem);
  gap: 0.15rem;
  padding: 0.2rem;
  background: var(--masthead-control-bg);
  border: 1px solid var(--masthead-control-line);
  border-radius: 999px;
}

.theme-switch__option {
  display: grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  padding: 0;
  color: var(--masthead-control-icon);
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.theme-switch__option:hover { color: var(--masthead-ink); }

.theme-switch__option[aria-pressed="true"] {
  color: var(--masthead-control-active-ink);
  background: var(--masthead-control-active-bg);
  box-shadow: 0 2px 8px rgba(8, 6, 22, 0.24);
}

.theme-switch__option svg {
  width: 0.9rem;
  height: 0.9rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--hero-ink);
  background: var(--hero-field);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 6rem), 75rem);
  margin-inline: auto;
  padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(2.5rem, 6vw, 4.5rem);
}

.hero--split {
  min-height: clamp(31rem, 60vw, 42rem);
  background: var(--hero-field);
}

.hero-backdrop {
  position: absolute;
  inset: 0 0 0 36%;
  z-index: 0;
  display: block;
  overflow: hidden;
}

.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 46%;
  filter: var(--hero-image-filter);
}

.hero--split::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--hero-blend);
}

.hero--split .hero-inner {
  display: flex;
  align-items: center;
  min-height: inherit;
  padding-block: clamp(2.25rem, 6vw, 5rem);
}

.hero-copy {
  width: min(100%, 44rem);
  padding: clamp(1.4rem, 4vw, 2.4rem);
  background: var(--hero-panel-bg);
  border: 1px solid var(--hero-panel-line);
  border-radius: 16px;
  box-shadow: var(--hero-panel-shadow);
  -webkit-backdrop-filter: blur(6px) saturate(115%);
  backdrop-filter: blur(6px) saturate(115%);
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--lavender);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.7;
  text-transform: uppercase;
}

.hero-copy .eyebrow {
  color: var(--hero-accent);
  font-weight: 400;
}

h1, h2, h3 { line-height: 1.09; text-wrap: balance; }

h1 {
  max-width: 15ch;
  margin: 0;
  font-family: var(--article-font);
  font-size: clamp(2.25rem, 4.1vw, 3.45rem);
  font-weight: 700;
  letter-spacing: -0.052em;
}

.deck {
  max-width: 42rem;
  margin: 1.5rem 0 1.35rem;
  color: var(--hero-muted);
  font-family: var(--article-font);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.55;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 1.1rem;
  color: var(--hero-meta);
  font-size: 0.8rem;
  font-weight: 670;
}

.meta a { color: var(--hero-link); }

.meta .length-badge,
.variant-badge {
  padding: 0.34rem 0.62rem;
  color: var(--hero-ink);
  background: var(--hero-chip-bg);
  border: 1px solid var(--hero-chip-line);
  border-radius: 999px;
}

.hero-media {
  width: min(calc(100% - 2rem), 70rem);
  margin: -1.5rem auto 0;
}

.hero-media figure { margin: 0; }

.hero-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 8.5;
  object-fit: cover;
  border: 8px solid var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-media--compact img {
  aspect-ratio: 16 / 6.7;
  object-position: center 48%;
}

.hero-media figcaption {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  text-align: right;
}

.trust-note {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.2rem;
  width: min(calc(100% - 2rem), 58rem);
  margin: 2rem auto -1rem;
  padding: 1.15rem 1.3rem;
  color: var(--ink);
  background: var(--surface-elevated);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 12px 36px rgba(31, 24, 68, 0.07);
  font-size: 0.84rem;
  line-height: 1.55;
}

.trust-note p { margin: 0; }
.trust-note strong { display: block; margin-bottom: 0.2rem; }
.trust-note .research-note { color: var(--muted); }

.research-strip {
  width: min(calc(100% - 2rem), 58rem);
  margin: 1.25rem auto -1rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
  text-align: center;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, var(--reading)) 12rem;
  justify-content: center;
  gap: clamp(2rem, 6vw, 5rem);
  width: min(calc(100% - 6rem), 70rem);
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 6.5rem) 0;
}

.layout--solo { grid-template-columns: minmax(0, var(--reading)); }

.article-copy {
  font-family: var(--article-font);
  font-size: 1.035rem;
  line-height: 1.72;
}

.article-copy > :first-child { margin-top: 0; }
.article-copy p { margin: 0 0 1.35rem; }

.article-copy h2 {
  margin: 3.2rem 0 1rem;
  font-family: var(--article-font);
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  scroll-margin-top: 6rem;
}

.article-copy h3 {
  margin: 2.25rem 0 0.75rem;
  font-family: var(--article-font);
  font-size: 1.14rem;
  letter-spacing: -0.015em;
}

.article-copy ul,
.article-copy ol { margin: 0 0 1.5rem; padding-left: 1.25rem; }
.article-copy li { margin: 0.52rem 0; padding-left: 0.3rem; }
.article-copy li::marker { color: var(--link); font-weight: 800; }

.app-store-cta { margin: 1.5rem 0 1.35rem; }

.app-store-badge {
  display: inline-block;
  width: 180px;
  max-width: 100%;
  height: 60px;
  padding: 0;
  background: transparent url("/assets/badges/app-store.svg") center / contain no-repeat;
  border: 0;
  border-radius: 10px;
  vertical-align: top;
}

.app-store-badge:disabled { opacity: 1; cursor: default; }

.table-scroll {
  margin: 0 0 1.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-scroll table {
  width: 100%;
  min-width: 38rem;
  border: 1px solid var(--line);
  border-collapse: collapse;
}

.table-scroll th,
.table-scroll td {
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.table-scroll thead th { background: var(--lavender-soft); }
.table-scroll tbody th { width: 11rem; }

.compact-list li { margin-block: 0.3rem; }

.article-faq {
  margin: 0 0 2rem;
  border-top: 1px solid var(--line);
}

.article-faq details { border-bottom: 1px solid var(--line); }

.article-faq summary {
  position: relative;
  padding: 1rem 2.5rem 1rem 0;
  font-family: var(--article-font);
  font-size: 1.14rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}

.article-faq summary::-webkit-details-marker { display: none; }

.article-faq summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 0.35rem;
  color: var(--link);
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1;
  transform: translateY(-50%);
}

.article-faq details[open] summary::after { content: "\2212"; }

.article-faq details > p {
  margin: 0;
  padding: 0 2.5rem 1rem 0;
  color: var(--muted);
}

sup a { font-size: 0.68rem; font-weight: 700; text-decoration: none; }

.answer-card,
.plan-card,
.adjust-card {
  margin: 1.5rem 0 2rem;
  padding: clamp(1.25rem, 4vw, 2rem);
  border-radius: 18px;
}

.answer-card { background: var(--lavender-soft); border: 1px solid color-mix(in srgb, var(--lavender) 52%, var(--line)); }
.plan-card { background: var(--mint-soft); border: 1px solid color-mix(in srgb, var(--mint) 58%, var(--line)); }
.adjust-card { background: var(--coral-soft); border: 1px solid color-mix(in srgb, var(--coral) 42%, var(--line)); }

.answer-card .label,
.plan-card .label,
.adjust-card .label {
  display: block;
  margin-bottom: 0.65rem;
  font-family: var(--ui-font);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.015em;
}

.article-reader--short .answer-card .label { font-size: 1.52rem; }

.answer-card p:last-child,
.plan-card p:last-child,
.adjust-card p:last-child { margin-bottom: 0; }

.source-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 1rem 0 1.5rem;
}

.source-grid section {
  padding: 1rem;
  background: var(--surface-elevated);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(31, 24, 68, 0.04);
}

.source-grid .source-name {
  display: block;
  margin: 0 0 0.65rem;
  color: var(--link);
  font-family: var(--ui-font);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.01em;
  line-height: 1.35;
}

.source-grid strong {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.84rem;
  line-height: 1.35;
  white-space: nowrap;
}

.source-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.5;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 1rem 0 1.35rem;
  overflow: hidden;
  border-radius: 12px;
}

.timeline div {
  min-height: 6rem;
  padding: 0.8rem;
  color: var(--ink);
  background: var(--surface-elevated);
  border-right: 1px solid var(--line);
  font-size: 0.82rem;
  line-height: 1.35;
}

.timeline div:last-child { border-right: 0; }
.timeline strong { display: block; margin-bottom: 0.3rem; font-family: var(--ui-font); font-size: 0.72rem; }

.article-reader--short .timeline { grid-template-columns: 1fr 1.3fr 1fr; }

.article-reader--short .timeline div {
  display: flex;
  min-height: 7rem;
  flex-direction: column;
  justify-content: center;
  font-size: clamp(0.8rem, 1.533vw, 0.967rem);
  line-height: 1.2;
}

.article-reader--short .timeline div:nth-child(2) { white-space: nowrap; }

.article-reader--short .timeline strong {
  display: inline-block;
  align-self: flex-start;
  width: fit-content;
  margin-bottom: 0.45rem;
  padding: 0.08rem 0.45rem;
  color: var(--night);
  background: var(--lavender);
  border-radius: 0.35rem;
  font-size: clamp(1rem, 1.8vw, 1.25rem);
}

.prep-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0 0 1.5rem !important;
  padding: 0 !important;
  list-style: none;
}

.prep-list li {
  display: grid;
  grid-template-columns: 6px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  column-gap: 1rem;
  row-gap: 0.45rem;
  margin: 0;
  padding: 0.25rem 0;
  border: 0;
}

.prep-list li::before {
  content: "";
  grid-column: 1;
  grid-row: 2;
  background: var(--lavender);
}

.prep-list strong {
  grid-column: 2;
  grid-row: 1;
  width: fit-content;
  margin: 0;
  font-family: var(--article-font);
  font-size: 0.78rem;
}

.prep-list span {
  grid-column: 2;
  grid-row: 2;
}

.article-reader--short .prep-list strong {
  display: table;
  padding: 0.08rem 0.45rem;
  color: var(--night);
  background: var(--lavender);
  border-radius: 0.35rem;
  font-size: 0.9rem;
}

.adjust-list {
  margin: 0 0 1.5rem !important;
  padding: clamp(1.1rem, 3vw, 1.5rem) !important;
  background: var(--coral-soft);
  border: 1px solid color-mix(in srgb, var(--coral) 38%, var(--line));
  border-left: 4px solid var(--coral);
  border-radius: 18px;
  list-style: none;
}

.adjust-list li {
  margin: 0;
  padding: 0.75rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--coral) 24%, transparent);
}

.adjust-list li:first-child { padding-top: 0; }
.adjust-list li:last-child { padding-bottom: 0; border-bottom: 0; }

.action-list {
  padding: 0;
  list-style-position: outside;
}

.action-list:not(.action-list--numbered) { list-style: none; }

.action-list li {
  margin: 0 0 0.8rem;
  padding: 0.85rem 1rem;
  background: var(--surface-elevated);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(31, 24, 68, 0.04);
}

.action-list--numbered { counter-reset: action; list-style: none; }

.action-list--numbered li {
  position: relative;
  padding-left: 3.5rem;
  counter-increment: action;
}

.action-list--numbered li::before {
  content: counter(action);
  position: absolute;
  top: 0.85rem;
  left: 1rem;
  display: grid;
  place-items: center;
  width: 1.65rem;
  height: 1.65rem;
  color: var(--night);
  background: var(--mint);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 850;
}

.timer-option {
  padding-left: 1rem;
  border-left: 3px solid var(--mint);
}

.article-reader--short .timer-option { border-left-width: 6px; }

.pull-quote {
  margin: 2.6rem 0;
  padding: 0 1.5rem;
  font-family: var(--article-font);
  font-size: clamp(1.45rem, 3vw, 1.95rem);
  line-height: 1.35;
  text-align: center;
}

.word-milestone {
  position: relative;
  margin: 4rem 0;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.015em;
  text-align: center;
}

.word-milestone::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  z-index: -1;
  height: 1px;
  background: var(--coral);
}

.word-milestone span {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: var(--canvas);
  border: 1px solid var(--coral);
  border-radius: 999px;
}

.finish-marker {
  margin: 3.5rem 0 0;
  padding: 1rem;
  color: var(--success-text);
  background: var(--mint-soft);
  border: 1px solid var(--success-line);
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 800;
  text-align: center;
  letter-spacing: 0;
}

.count-status {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.68rem;
  font-weight: 680;
  letter-spacing: 0;
  text-transform: none;
}

.count-status[data-valid="false"] { color: var(--coral); }

.references {
  margin-top: 4rem;
  padding: clamp(1.4rem, 4vw, 2.25rem);
  background: var(--reference);
  border-radius: 18px;
  font-size: 0.84rem;
  line-height: 1.55;
}

.references h2 { margin: 0 0 0.4rem; font-size: 1.45rem; }
.references .count-note { margin: 0 0 1rem; color: var(--muted); }
.references ol { margin: 0; padding-left: 1.2rem; }
.references li { margin: 0.75rem 0; padding-left: 0.25rem; }

.related-reading {
  margin-top: 2rem;
  padding: clamp(1.25rem, 4vw, 2rem);
  background: var(--surface-elevated);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.related-reading .eyebrow { color: var(--link); }
.related-reading h2 { margin: 0 0 0.8rem; font-size: 1.45rem; }
.related-reading ul { display: flex; flex-wrap: wrap; gap: 0.65rem 1.2rem; margin: 0; padding: 0; list-style: none; }

.article-reader--short .hero-copy .eyebrow,
.article-reader--short .hero-copy .meta,
.article-reader--short .article-copy sup a,
.article-reader--short .references,
.article-reader--short .references h2,
.article-reader--short .related-reading > .eyebrow {
  font-family: var(--accent-font);
}

.article-reader--short .hero-copy .eyebrow,
.article-reader--short .related-reading > .eyebrow {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.025em;
  text-transform: none;
}

.draft-banner {
  position: relative;
  z-index: 100;
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.6rem 1rem;
  color: #17142f;
  background: #ffd98c;
  border-bottom: 2px solid #9d6212;
  font-size: 0.82rem;
  line-height: 1.35;
  text-align: center;
}

.draft-banner strong { text-transform: uppercase; letter-spacing: 0.04em; }

.sidebar { position: relative; }

.article-toc {
  position: sticky;
  top: 92px;
  padding: 0.25rem 0 0.25rem 1.1rem;
  border-left: 1px solid var(--line);
  font-family: var(--ui-font);
  font-size: 0.74rem;
  line-height: 1.35;
}

.article-toc > strong {
  display: block;
  margin-bottom: 0.8rem;
  font-size: 0.82rem;
}

.article-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.article-toc li + li { margin-top: 0.65rem; }

.article-toc a {
  display: block;
  color: var(--muted);
  text-decoration: none;
}

.article-toc a:hover,
.article-toc a:focus-visible { color: var(--link); }

.word-meter {
  position: sticky;
  top: 92px;
  padding: 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(31, 24, 68, 0.07);
  font-size: 0.75rem;
}

.word-meter strong { display: block; margin-bottom: 0.2rem; font-size: 1.45rem; line-height: 1; }

.meter-scale {
  position: relative;
  height: 240px;
  margin: 1rem 0 0.25rem;
  background: var(--meter-track);
  border-radius: 999px;
}

.meter-fill {
  position: absolute;
  inset: auto 0 0;
  height: 0;
  background: linear-gradient(0deg, var(--coral), var(--lavender));
  border-radius: inherit;
}

.meter-tick {
  position: absolute;
  left: 1rem;
  color: var(--muted);
  white-space: nowrap;
}

.meter-tick::before {
  content: "";
  position: absolute;
  top: 0.6em;
  right: calc(100% + 0.35rem);
  width: 0.55rem;
  height: 1px;
  background: var(--muted);
}

.meter-tick--top { top: -0.55rem; }
.meter-tick--800 { bottom: calc(66.666% - 0.55rem); color: var(--coral); font-weight: 800; }
.meter-tick--zero { bottom: -0.55rem; }

.site-footer {
  padding: 2rem 0;
  color: var(--muted);
  background: var(--canvas);
  border-top: 1px solid var(--line);
  font-family: var(--brand-font);
  font-size: 0.76rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(calc(100% - 6rem), 75rem);
  margin: auto;
}

.footer-inner p { margin: 0; }
.footer-brand { font-size: 14px; }
.footer-inner a { color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.4rem; }
.footer-links a { display: inline-flex; min-height: 2rem; align-items: center; }

.listing-main {
  width: min(calc(100% - 6rem), 70rem);
  min-height: calc(100vh - 9rem);
  margin-inline: auto;
  padding: clamp(3rem, 8vw, 6rem) 0;
}

.listing-hero {
  max-width: 52rem;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.listing-hero .eyebrow { color: var(--link); }
.listing-hero h1 { max-width: 13ch; font-size: clamp(2.25rem, 4.1vw, 3.45rem); }
.listing-hero > p:last-child { max-width: 54ch; color: var(--muted); font-size: 1.12rem; }

.topic-links {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin: -1.5rem 0 2.5rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.86rem;
}

.topic-links ul { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.topic-links a { display: block; padding: 0.3rem 0.7rem; background: var(--lavender-soft); border-radius: 999px; text-decoration: none; }

.article-grid { display: grid; gap: 1.5rem; }

.article-card {
  display: grid;
  grid-template-columns: minmax(12rem, 0.8fr) minmax(0, 1.2fr);
  overflow: hidden;
  background: var(--surface-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: none;
}

.article-card__image { min-height: 17rem; overflow: hidden; background: var(--night); }
.article-card__image picture { display: block; width: 100%; height: 100%; }
.article-card__image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.article-card__copy { align-self: center; padding: clamp(1.3rem, 4vw, 2.3rem); }
.article-card__copy .eyebrow { color: var(--link); }
.article-card h2 { margin: 0 0 0.8rem; font-size: clamp(1.6rem, 4vw, 2.5rem); }
.article-card h2 a { color: var(--ink); text-decoration: none; }
.article-card h2 a:hover { color: var(--link); }
.article-card__copy > p { margin: 0 0 1rem; }
.article-card .card-meta { margin: 0; color: var(--muted); font-size: 0.78rem; }

.pagination {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.pagination-link {
  justify-self: start;
  min-width: 5rem;
  padding: 0.65rem 0.9rem;
  color: var(--ink);
  background: var(--surface-elevated);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.pagination-link--next { justify-self: end; }
.pagination-link:not(.pagination-link--disabled):hover { color: var(--link); border-color: var(--link); }
.pagination-link--disabled { visibility: hidden; }
.pagination-status { color: var(--muted); font-size: 0.82rem; white-space: nowrap; }

.empty-state {
  max-width: 42rem;
  padding: 1.5rem;
  color: var(--muted);
  background: var(--surface-elevated);
  border: 1px dashed var(--line);
  border-radius: 16px;
}

.error-page {
  width: min(calc(100% - 6rem), 52rem);
  min-height: calc(100vh - 9rem);
  margin-inline: auto;
  padding: clamp(5rem, 12vw, 9rem) 0;
}

.error-page .eyebrow { color: var(--coral); }
.error-page h1 { margin-bottom: 1rem; }
.error-page p:not(.eyebrow) { max-width: 40rem; color: var(--muted); }
.text-button { display: inline-block; margin-top: 1rem; padding: 0.7rem 1rem; color: var(--night); background: var(--mint); border-radius: 999px; font-weight: 800; text-decoration: none; }
.text-button:hover { color: var(--night); background: white; }

@media (max-width: 850px) {
  .masthead-inner,
  .hero-inner,
  .layout,
  .listing-main,
  .error-page,
  .footer-inner { width: calc(100% - 3rem); }
  .layout { grid-template-columns: minmax(0, var(--reading)); }
  .sidebar { display: none; }
  .masthead-nav a:not(.button):not(.guides-link) { display: none; }
}

@media (min-width: 851px) {
  .article-reader--short .article-copy h3,
  .article-reader--short .article-copy strong,
  .article-reader--short .article-copy b,
  .article-reader--short .answer-card .label,
  .article-reader--short .plan-card .label,
  .article-reader--short .adjust-card .label,
  .article-reader--short .source-grid .source-name,
  .article-reader--short .timeline strong,
  .article-reader--short .prep-list strong { font-weight: 700; }

  .article-reader--short .answer-card .label,
  .article-reader--short .plan-card .label,
  .article-reader--short .adjust-card .label,
  .article-reader--short .source-grid .source-name,
  .article-reader--short .timeline strong { font-family: var(--article-font); }

  .article-reader--short .hero-copy .eyebrow,
  .article-reader--short .related-reading > .eyebrow { font-size: 1.404rem; }

  .article-reader--short .hero-copy .meta { font-size: 1.44rem; }

  .article-reader--short .references { font-size: 1.512rem; }

  .article-reader--short .references h2 { font-size: 2.61rem; }

  .hero-backdrop {
    inset: 0 0 0 40%;
  }

  .hero-backdrop img { object-position: left 46%; }
}

@media (min-width: 651px) and (max-width: 850px) {
  .hero-backdrop {
    inset: 0 0 0 38%;
  }

  .hero-backdrop img { object-position: 10% 46%; }

  .hero-copy {
    width: min(78%, 36rem);
  }
}

@media (max-width: 650px) {
  body { font-size: 16.5px; line-height: 1.7; }
  .masthead-inner,
  .hero-inner,
  .layout,
  .listing-main,
  .error-page,
  .footer-inner { width: calc(100% - 2.5rem); }
  .masthead-inner { min-height: 70px; }
  .masthead-nav { gap: 0.5rem; }
  .masthead-nav .button { display: none; }
  .theme-select { min-height: 44px; max-width: 8.5rem; }
  .hero--split { min-height: 34rem; }
  .hero-backdrop { inset: 0; opacity: 0.9; }
  .hero-backdrop img { object-position: 61% center; }
  .hero--split::after {
    background: var(--hero-mobile-blend);
  }
  .hero--split .hero-inner { align-items: end; padding-block: 2rem; }
  .hero-copy { padding: 1.25rem; background: var(--hero-panel-bg-mobile); border-radius: 16px; }
  h1 { font-size: clamp(2rem, 9vw, 2.65rem); }
  .trust-note { grid-template-columns: 1fr; margin-top: 1.35rem; }
  .source-grid { grid-template-columns: 1fr; }
  .source-grid strong { white-space: normal; }
  .prep-list { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .timeline div { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .article-reader--short .timeline { grid-template-columns: 1fr; }
  .article-reader--short .timeline div { min-height: auto; }
  .article-reader--short .timeline div:nth-child(2) { white-space: normal; }
  .timeline div:last-child { border-bottom: 0; }
  .footer-inner { flex-wrap: wrap; }
  .footer-inner p { display: none; }
  .footer-links { width: 100%; }
  .pagination { gap: 0.5rem; }
  .pagination-link { min-width: 0; padding-inline: 0.75rem; }
  .word-milestone { margin: 3rem 0; }
  .article-card { grid-template-columns: 1fr; }
  .article-card__image { min-height: 13rem; }
  .draft-banner { flex-direction: column; gap: 0.1rem; }
}

@media (max-width: 540px) {
  .brand { gap: 8px; font-size: 14px; }
  .brand img { width: 31px; height: 31px; }
  .footer-brand { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .progress-fill { transition: none; }
  .ron-widget { transition: none; }
}

@media print {
  :root { color-scheme: light; }
  .masthead, .progress-track, .sidebar, .trust-note, .research-strip { display: none; }
  body { color: #182033; background: white; font-size: 11pt; }
  .layout { display: block; width: auto; padding: 2rem 0; }
  .hero { min-height: 0; color: black; background: white; }
  .hero::before, .hero::after, .hero-backdrop { display: none; }
  .hero-inner { padding: 2rem 0; }
  .hero-copy { width: auto; padding: 0; background: none; border: 0; box-shadow: none; backdrop-filter: none; }
  .deck, .meta { color: #444; }
  .hero-media { margin-top: 0; }
  .hero-media img { border-color: white; box-shadow: none; }
  a { color: black; }
}
