:root {
  --ink: #16242b;
  --ink-soft: #526168;
  --paper: #fbfcfa;
  --surface: #ffffff;
  --line: #dfe5e2;
  --line-strong: #c7d0cc;
  --teal: #0f766e;
  --teal-dark: #0b5853;
  --teal-pale: #e5f3ef;
  --amber: #c87913;
  --amber-pale: #fff4dd;
  --red: #b43b36;
  --red-pale: #fff0ee;
  --blue: #2f68a6;
  --blue-pale: #edf5fc;
  --shadow: 0 16px 40px rgba(22, 36, 43, 0.1);
  --header-h: 70px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 22px);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

body.menu-open,
body.lightbox-open {
  overflow: hidden;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

.reading-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: 3px;
  background: transparent;
}

.reading-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--amber);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 clamp(18px, 4vw, 64px);
  border-bottom: 1px solid rgba(199, 208, 204, 0.86);
  background: rgba(251, 252, 250, 0.92);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: white;
  background: var(--teal);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
}

.brand-copy {
  display: grid;
  line-height: 1.25;
}

.brand-copy strong {
  font-size: 15px;
}

.brand-copy small {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 11px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(280px, 30vw);
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink-soft);
}

.search-box:focus-within {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-pale);
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
}

.menu-button,
.sidebar-head button {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.menu-button {
  display: none;
  min-width: 56px;
  height: 40px;
  padding: 0 13px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
}

.intro-band {
  position: relative;
  overflow: hidden;
  color: white;
  background: #163c3b;
}

.intro-band::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255,255,255,0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.14) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(90deg, transparent 0, black 65%, black 100%);
}

.intro-inner {
  position: relative;
  width: min(1260px, calc(100% - 40px));
  min-height: 390px;
  margin: 0 auto;
  padding: 62px 0 42px;
}

.intro-copy {
  max-width: 700px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.eyebrow {
  color: #8ed5c9;
}

.intro-copy h1 {
  max-width: 680px;
  margin: 0;
  font-family: "Songti SC", "STSong", serif;
  font-size: clamp(38px, 5.4vw, 68px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: 0;
}

.intro-lead {
  max-width: 620px;
  margin: 22px 0 26px;
  color: #d7e8e3;
  font-size: 17px;
}

.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 5px;
  background: #f0aa3c;
  color: #1d2a2d;
  text-decoration: none;
  font-weight: 800;
}

.route-map {
  position: absolute;
  top: 72px;
  right: 0;
  display: grid;
  gap: 3px;
  width: 320px;
}

.route-label {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  font-weight: 700;
}

.route-label span {
  color: #f4b64e;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

.route-map i {
  width: 1px;
  height: 14px;
  margin-left: 34px;
  background: rgba(255, 255, 255, 0.45);
}

.intro-stats {
  position: absolute;
  right: 0;
  bottom: 38px;
  display: flex;
  margin: 0;
}

.intro-stats div {
  min-width: 105px;
  padding-left: 18px;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.intro-stats dt {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 20px;
  font-weight: 800;
}

.intro-stats dd {
  margin: 0;
  color: #bad4ce;
  font-size: 12px;
}

.page-shell {
  display: grid;
  grid-template-columns: 230px minmax(0, 950px);
  gap: clamp(38px, 5vw, 74px);
  align-items: start;
  width: min(1260px, calc(100% - 40px));
  margin: 0 auto;
}

.sidebar {
  position: sticky;
  top: calc(var(--header-h) + 22px);
  max-height: calc(100vh - var(--header-h) - 44px);
  padding: 20px 0;
  overflow: auto;
}

.sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px 12px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
}

.sidebar-head button {
  display: none;
  width: 34px;
  height: 34px;
  border-radius: 5px;
  font-size: 24px;
  line-height: 1;
}

.sidebar nav {
  display: grid;
}

.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 43px;
  padding: 5px 12px;
  border-left: 2px solid transparent;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 13px;
  font-weight: 650;
}

.sidebar nav a span {
  color: #89969b;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
}

.sidebar nav a:hover,
.sidebar nav a.is-active {
  border-left-color: var(--teal);
  background: var(--teal-pale);
  color: var(--teal-dark);
}

.sidebar nav a.is-active span {
  color: var(--teal);
}

.sidebar-note {
  margin: 22px 10px 0;
  padding: 14px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 12px;
}

.sidebar-note strong {
  color: var(--ink);
}

.sidebar-note p {
  margin: 5px 0 0;
}

.sidebar-scrim {
  display: none;
}

.tutorial {
  min-width: 0;
  padding-bottom: 40px;
}

.guide-section {
  padding: 82px 0 22px;
  border-bottom: 1px solid var(--line);
}

.guide-section[hidden] {
  display: none;
}

.section-heading {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 24px;
  align-items: start;
  margin-bottom: 34px;
}

.section-index {
  padding-top: 7px;
  color: var(--teal);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  font-weight: 800;
}

.section-kicker {
  color: var(--amber);
}

.section-heading h2 {
  margin: 0;
  font-family: "Songti SC", "STSong", serif;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.2;
  letter-spacing: 0;
}

.section-heading > div:last-child > p:last-child {
  max-width: 680px;
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 16px;
}

.content-grid.split {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  gap: 28px;
  align-items: start;
}

.prose-block {
  padding: 4px 0;
}

.prose-block.compact {
  max-width: 720px;
}

.prose-block h3,
.option-list h3,
.target-block h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.4;
}

.prose-block > p {
  margin: 10px 0 0;
  color: var(--ink-soft);
}

.note {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 14px;
  margin: 20px 0;
  padding: 16px 18px;
  border-left: 3px solid;
  border-radius: 0 5px 5px 0;
  font-size: 14px;
}

.note strong {
  font-size: 12px;
  letter-spacing: 0.06em;
}

.note p {
  margin: 0;
}

.note.info {
  border-color: var(--blue);
  background: var(--blue-pale);
}

.note.warning {
  border-color: var(--amber);
  background: var(--amber-pale);
}

.note.danger {
  border-color: var(--red);
  background: var(--red-pale);
}

.shot {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  box-shadow: 0 10px 26px rgba(22, 36, 43, 0.07);
  cursor: zoom-in;
}

.shot::after {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 5px;
  content: "+";
  color: white;
  background: rgba(22, 36, 43, 0.76);
  font-size: 21px;
  line-height: 1;
  opacity: 0;
  transition: opacity 160ms ease;
}

.shot:hover::after,
.shot:focus-within::after {
  opacity: 1;
}

.shot img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #f3f5f4;
}

.shot.portrait img {
  aspect-ratio: 4 / 3;
}

.shot figcaption {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 12px;
}

.shot figcaption span {
  flex: 0 0 auto;
  color: var(--teal);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 800;
}

.shot-grid {
  display: grid;
  gap: 24px;
  margin-top: 26px;
}

.shot-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.shot-grid .wide {
  grid-column: 1 / -1;
}

.mode-switch {
  display: inline-flex;
  gap: 4px;
  margin: 0 0 24px 86px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f0f3f1;
}

.mode-switch button {
  min-height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  font-weight: 700;
}

.mode-switch button.is-active {
  background: var(--surface);
  color: var(--teal-dark);
  box-shadow: 0 2px 8px rgba(22, 36, 43, 0.08);
}

.tab-panel {
  margin-left: 86px;
}

.step-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.step-list li {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 10px;
  min-height: 126px;
  padding: 19px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.step-list li > span,
.target-head > span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--teal-pale);
  color: var(--teal);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 800;
}

.step-list p {
  margin: 5px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.step-list.horizontal {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 30px;
}

.step-list.horizontal li {
  min-height: 150px;
}

.option-list {
  display: grid;
  gap: 0;
  margin: 0 0 28px 86px;
  border-top: 1px solid var(--line);
}

.option-list.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-left: 1px solid var(--line);
}

.option-list article {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 15px;
  padding: 20px 16px;
  border-bottom: 1px solid var(--line);
}

.option-list.two-col article {
  border-right: 1px solid var(--line);
}

.option-list article > span {
  color: var(--amber);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 800;
}

.option-list p {
  margin: 5px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.definition-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 24px 0 28px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.definition-list div {
  padding: 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.definition-list dt {
  margin-bottom: 7px;
  font-weight: 800;
}

.definition-list dd {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.tip-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 24px 0;
}

.tip-row p {
  margin: 0;
  padding: 16px 18px;
  border-left: 3px solid var(--teal);
  background: var(--teal-pale);
  color: var(--ink-soft);
  font-size: 14px;
}

.tip-row strong {
  display: block;
  color: var(--ink);
}

.priority-line {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  margin-bottom: 26px;
  padding: 10px 16px;
  overflow-x: auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  font-size: 13px;
}

.priority-line > span {
  margin-right: auto;
  color: var(--ink-soft);
}

.priority-line i {
  color: var(--amber);
  font-style: normal;
}

.key-values {
  margin: 18px 0 0;
}

.key-values div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.key-values dt {
  font-size: 13px;
  font-weight: 800;
}

.key-values dd {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.target-block {
  margin: 32px 0;
  padding-top: 28px;
  border-top: 1px solid var(--line-strong);
}

.target-head {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: start;
  margin-bottom: 20px;
}

.target-head p {
  margin: 5px 0 0;
  color: var(--ink-soft);
}

.formula {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 4px 18px;
  margin: 28px 0;
  padding: 22px;
  border: 1px solid #acd0c8;
  background: var(--teal-pale);
}

.formula span {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  background: var(--teal);
  color: white;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 800;
}

.formula p {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.completion-line {
  display: grid;
  grid-template-columns: 1fr 40px 1fr;
  align-items: center;
  margin: 6px 0 30px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.completion-line > div {
  padding: 24px;
}

.completion-line span {
  color: var(--amber);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 800;
}

.completion-line strong {
  display: block;
  margin-top: 6px;
}

.completion-line p {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.completion-line > i {
  color: var(--teal);
  font-style: normal;
  text-align: center;
}

.faq-section details {
  border-top: 1px solid var(--line-strong);
}

.faq-section details:last-of-type {
  border-bottom: 1px solid var(--line-strong);
}

.faq-section summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 4px;
  cursor: pointer;
  list-style: none;
}

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

.faq-section summary::after {
  margin-left: auto;
  content: "+";
  color: var(--teal);
  font-size: 23px;
}

.faq-section details[open] summary::after {
  content: "−";
}

.faq-section summary span {
  color: var(--amber);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
}

.faq-body {
  padding: 0 0 28px 38px;
}

.faq-body > p,
.faq-body > ol {
  max-width: 760px;
  color: var(--ink-soft);
}

.faq-body .shot {
  margin-top: 22px;
}

.search-empty {
  margin-top: 80px;
  padding: 32px;
  border: 1px solid var(--line);
  text-align: center;
}

.search-empty p {
  margin: 6px 0 0;
  color: var(--ink-soft);
}

.page-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 34px 0 12px;
}

.page-footer p {
  margin: 3px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.page-footer a {
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.lightbox {
  width: min(96vw, 1500px);
  max-width: none;
  height: min(92vh, 980px);
  max-height: none;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 7px;
  background: #101719;
  color: white;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
}

.lightbox::backdrop {
  background: rgba(8, 13, 15, 0.82);
  backdrop-filter: blur(5px);
}

.lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  padding: 0 12px 0 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.lightbox-bar p {
  margin: 0;
  overflow: hidden;
  color: #d4dddd;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lightbox-bar button,
.lightbox-stage button {
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  cursor: pointer;
}

.lightbox-bar button {
  width: 38px;
  height: 38px;
  font-size: 25px;
}

.lightbox-stage {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  gap: 12px;
  align-items: center;
  height: calc(100% - 60px);
  padding: 14px;
}

.lightbox-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lightbox-stage button {
  width: 48px;
  height: 48px;
  font-size: 36px;
  line-height: 1;
}

@media (max-width: 1080px) {
  .route-map,
  .intro-stats {
    display: none;
  }

  .page-shell {
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 34px;
  }
}

@media (max-width: 820px) {
  :root {
    --header-h: 62px;
  }

  .site-header {
    padding: 0 16px;
  }

  .brand-copy small {
    display: none;
  }

  .search-box {
    width: min(210px, 42vw);
  }

  .menu-button {
    display: block;
  }

  .intro-inner {
    min-height: 360px;
    padding-top: 52px;
  }

  .intro-copy h1 {
    font-size: 44px;
  }

  .page-shell {
    display: block;
    width: min(100% - 32px, 760px);
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 90;
    width: min(310px, 86vw);
    max-height: none;
    padding: 18px 12px;
    background: var(--paper);
    box-shadow: var(--shadow);
    transform: translateX(-105%);
    transition: transform 200ms ease;
  }

  .sidebar.is-open {
    transform: translateX(0);
  }

  .sidebar-head button {
    display: block;
  }

  .sidebar-scrim {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: block;
    background: rgba(8, 18, 20, 0.44);
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms ease;
  }

  .sidebar-scrim.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .guide-section {
    padding-top: 62px;
  }

  .section-heading {
    grid-template-columns: 44px 1fr;
    gap: 12px;
  }

  .content-grid.split,
  .definition-list,
  .shot-grid.two,
  .option-list.two-col {
    grid-template-columns: 1fr;
  }

  .shot-grid .wide {
    grid-column: auto;
  }

  .mode-switch,
  .tab-panel,
  .option-list {
    margin-left: 56px;
  }

  .definition-list div {
    min-height: auto;
  }

  .step-list.horizontal {
    grid-template-columns: 1fr;
  }

  .step-list.horizontal li {
    min-height: 110px;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 15px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-copy {
    display: none;
  }

  .header-actions {
    flex: 1;
    justify-content: flex-end;
  }

  .search-box {
    width: min(100%, 220px);
  }

  .intro-inner {
    width: calc(100% - 32px);
    min-height: 410px;
    padding: 48px 0 38px;
  }

  .intro-copy h1 {
    font-size: 38px;
  }

  .intro-lead {
    font-size: 15px;
    line-height: 1.7;
  }

  .section-heading {
    display: block;
    margin-bottom: 25px;
  }

  .section-index {
    padding: 0 0 8px;
  }

  .section-heading h2 {
    font-size: 31px;
  }

  .mode-switch,
  .tab-panel,
  .option-list {
    margin-left: 0;
  }

  .mode-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .step-list,
  .step-list.horizontal,
  .tip-row {
    grid-template-columns: 1fr;
  }

  .step-list li {
    min-height: 0;
  }

  .note {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .shot-grid {
    gap: 18px;
  }

  .shot img,
  .shot.portrait img {
    aspect-ratio: auto;
    min-height: 160px;
  }

  .priority-line > span {
    display: none;
  }

  .plan-copy {
    display: block;
  }

  .formula {
    grid-template-columns: 1fr;
  }

  .formula span {
    grid-row: auto;
  }

  .completion-line {
    grid-template-columns: 1fr;
  }

  .completion-line > i {
    transform: rotate(90deg);
  }

  .faq-body {
    padding-left: 0;
  }

  .page-footer {
    align-items: flex-start;
    gap: 18px;
  }

  .lightbox {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
  }

  .lightbox-stage {
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    gap: 4px;
    padding: 8px;
  }

  .lightbox-stage button {
    width: 36px;
    height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .sidebar,
  .sidebar-scrim,
  .reading-progress,
  .primary-link,
  .shot::after {
    display: none !important;
  }

  .intro-band {
    color: var(--ink);
    background: white;
  }

  .intro-inner {
    min-height: auto;
    padding: 30px 0;
  }

  .intro-lead,
  .eyebrow {
    color: var(--ink-soft);
  }

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

  .guide-section {
    break-inside: avoid;
  }

  .shot {
    box-shadow: none;
  }
}
