/* QuickMethodLab — guide article pages (v3.1, senior-first)
   Pairs with lab-home.css (tokens, nav, footer).
   Big type · big blocks · big images · edge-to-edge on mobile. */

/* ───────── shell ───────── */

body.lab-home.wh-guide {
  font-size: 18px;
  line-height: 1.7;
}

.wh-skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 200;
  padding: 12px 20px;
  background: var(--ink);
  color: var(--acid);
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
}

.wh-skip-link:focus { left: 8px; }

.wh-page--article {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad) clamp(40px, 8vw, 88px);
  display: grid;
  gap: var(--gap);
  align-items: start;
}

/* Mobile: article goes edge-to-edge — no side padding, no card chrome */
@media (max-width: 979px) {
  .wh-page--article {
    padding-left: 0;
    padding-right: 0;
    gap: 0;
  }
  .wh-page--article > .wh-breadcrumb {
    padding-left: var(--pad);
    padding-right: var(--pad);
  }
}

@media (min-width: 980px) {
  .wh-page--article {
    grid-template-columns: 248px minmax(0, 1fr) 52px;
  }
  .wh-page--article > .wh-breadcrumb { grid-column: 1 / -1; }
  .wh-page--article > .wh-sidebar { grid-column: 1; grid-row: 2; }
  .wh-page--article > .wh-article { grid-column: 2; grid-row: 2; }
  .wh-page--article > .wh-back-to-top-rail { grid-column: 3; grid-row: 2; }
}

/* breadcrumb */
.wh-breadcrumb {
  padding: 18px 0 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--grey);
}

.wh-breadcrumb a { color: var(--grey); transition: color 0.15s; }
.wh-breadcrumb a:hover { color: var(--ink); }
.wh-breadcrumb [aria-current] { color: var(--ink); font-weight: 600; }
.wh-bc-sep { color: var(--grey-2); margin: 0 4px; }

/* ───────── sidebar toc (desktop only) ───────── */

.wh-sidebar { display: none; }

@media (min-width: 980px) {
  .wh-sidebar {
    display: block;
    position: sticky;
    top: 76px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 20px 18px;
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    isolation: isolate;
  }
}

.wh-sidebar-indicator {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 0;
  z-index: 0;
  height: 0;
  border-radius: 8px;
  background: var(--acid);
  box-shadow: inset 3px 0 0 var(--ink);
  pointer-events: none;
  opacity: 0;
  transform: translateY(0);
  transition:
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    height 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, height;
}

.wh-sidebar-indicator.is-ready {
  opacity: 1;
}

.wh-sidebar-indicator.is-instant {
  transition: none;
}

.wh-sidebar-title {
  position: relative;
  z-index: 1;
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey-2);
}

.wh-sidebar a {
  position: relative;
  z-index: 1;
  display: block;
  padding: 9px 10px;
  margin: 0 -10px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--grey);
  line-height: 1.4;
  background: transparent;
  transition: color 0.32s cubic-bezier(0.22, 1, 0.36, 1), background 0.2s ease;
}

.wh-sidebar a.wh-sidebar-link--child,
.wh-mobile-toc-links a.wh-sidebar-link--child {
  padding-left: 22px;
  font-size: 14px;
  font-weight: 500;
  color: var(--grey-2);
}

.wh-sidebar a:hover { color: var(--ink); background: var(--paper); }

/* Default active — same acid pill (fallback before JS, or reduced motion) */
.wh-sidebar a.is-active {
  color: var(--ink);
  font-weight: 700;
  background: var(--acid);
  box-shadow: inset 3px 0 0 var(--ink);
}

.wh-sidebar a.is-active:hover {
  background: var(--acid);
  color: var(--ink);
}

/* JS on: acid pill slides via .wh-sidebar-indicator; link stays transparent */
.wh-sidebar--animated a.is-active {
  background: transparent;
  box-shadow: none;
}

.wh-sidebar--animated a.is-active:hover {
  background: transparent;
}

.wh-mobile-toc-links a.is-active {
  color: var(--ink);
  font-weight: 700;
  background: var(--acid);
  box-shadow: inset 3px 0 0 var(--ink);
}

.wh-mobile-toc-links a.is-active:hover {
  background: var(--acid);
  color: var(--ink);
}

/* ───────── mobile toc ───────── */

.lab-site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(242, 242, 236, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.wh-guide .lab-nav {
  position: static;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none;
}

.wh-mobile-toc {
  position: relative;
  z-index: 90;
  margin: 0;
  padding: 10px var(--pad) 0;
  background: transparent;
  border-bottom: none;
  border-top: none;
}

@media (min-width: 980px) { .wh-mobile-toc { display: none; } }

.wh-mobile-toc details {
  margin: 0;
  border: 1.5px solid var(--ink);
  border-radius: var(--r-sm);
  background: var(--acid);
  overflow: hidden;
  box-shadow: 0 2px 0 var(--ink);
}

.wh-mobile-toc details[open] {
  margin: 0 0 12px;
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 6px 24px rgba(12, 12, 14, 0.12);
}

.wh-mobile-toc-panel {
  position: relative;
  overflow: hidden;
  border-radius: 0 0 10px 10px;
  background: var(--white);
}

.wh-mobile-toc-scroll {
  max-height: min(60vh, 420px);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.wh-mobile-toc-scroll::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.wh-mobile-toc-fade {
  position: absolute;
  left: 0;
  right: 0;
  height: 40px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 2;
}

.wh-mobile-toc-fade--top {
  top: 0;
  background: linear-gradient(to bottom, var(--white) 0%, rgba(255, 255, 255, 0) 100%);
}

.wh-mobile-toc-fade--bottom {
  bottom: 0;
  background: linear-gradient(to top, var(--white) 0%, rgba(255, 255, 255, 0) 100%);
}

.wh-mobile-toc-panel.is-scrollable .wh-mobile-toc-fade--bottom,
.wh-mobile-toc-panel.can-scroll-down .wh-mobile-toc-fade--bottom {
  opacity: 1;
}

.wh-mobile-toc-panel.can-scroll-up .wh-mobile-toc-fade--top {
  opacity: 1;
}

.wh-mobile-toc-scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 10px;
  z-index: 3;
  transform: translateX(-50%);
  margin: 0;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--grey);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}

.wh-mobile-toc-scroll-hint::before {
  content: "↕ ";
  font-size: 13px;
  color: var(--ink-3);
}

.wh-mobile-toc-panel.is-scrollable .wh-mobile-toc-scroll-hint {
  opacity: 1;
}

.wh-mobile-toc-panel.can-scroll-down .wh-mobile-toc-scroll-hint span::after {
  content: " ↓";
}

.wh-mobile-toc-panel.scrolled-down:not(.can-scroll-down) .wh-mobile-toc-scroll-hint {
  opacity: 0;
}

.wh-mobile-toc-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  margin: 0;
  padding: 0;
  border: none;
  background: rgba(12, 12, 14, 0.18);
  cursor: default;
}

.wh-mobile-toc-backdrop[hidden] {
  display: none !important;
}

body.wh-mobile-toc-open {
  overflow: hidden;
  touch-action: none;
}

body.wh-mobile-toc-open .lab-site-header {
  z-index: 100;
}

body.wh-mobile-toc-open .wh-mobile-toc-scroll {
  touch-action: pan-y;
}

.wh-mobile-toc summary {
  cursor: pointer;
  list-style: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 13px 16px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.02em;
  color: var(--ink);
  background: var(--acid);
  transition: background 0.15s ease;
}

.wh-mobile-toc details:not([open]) summary:active {
  background: color-mix(in srgb, var(--acid-deep) 35%, var(--acid));
}

.wh-mobile-toc summary::-webkit-details-marker { display: none; }

.wh-mobile-toc summary::before {
  content: "☰";
  flex-shrink: 0;
  font-size: 15px;
  line-height: 1;
  font-weight: 700;
  opacity: 0.88;
}

.wh-mobile-toc summary::after {
  content: "↓";
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--acid);
  transition: transform 0.15s, background 0.15s, color 0.15s;
}

.wh-mobile-toc details[open] summary::after { transform: rotate(180deg); }

.wh-mobile-toc details[open] summary {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink-2);
}

.wh-mobile-toc details[open] summary::before {
  opacity: 0.72;
}

.wh-mobile-toc details[open] summary::after {
  background: var(--white);
  color: var(--ink);
  border-color: var(--line);
}

.wh-mobile-toc-links {
  display: grid;
  padding: 4px var(--pad) 44px;
  background: var(--white);
}

.wh-mobile-toc-links a {
  padding: 14px 12px;
  margin: 0 -12px;
  border-radius: 10px;
  font-size: 17px;
  font-weight: 500;
  color: var(--ink-3);
  border-bottom: 1px solid var(--paper-2, #efeae1);
}

.wh-mobile-toc-links a:last-child { border-bottom: none; }
.wh-mobile-toc-links a:active { background: var(--paper); color: var(--ink); }

/* ───────── article card ───────── */

.wh-article {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(22px, 4.5vw, 48px) clamp(18px, 4vw, 56px) clamp(32px, 5vw, 64px);
  min-width: 0;
  --bleed: clamp(18px, 4vw, 56px);
}

@media (max-width: 979px) {
  .wh-article {
    border-left: none;
    border-right: none;
    border-radius: 0;
  }
}

.wh-article h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 8vw, 54px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.wh-byline {
  margin: 0 0 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.5;
  color: var(--grey);
}

.wh-byline-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}

.wh-byline-row--author {
  margin: 0 0 8px;
}

.wh-byline-row--meta {
  margin: 0;
}

.wh-author {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 2px 8px 2px 2px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  vertical-align: middle;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.wh-author:hover {
  border-color: var(--ink-3);
  background: var(--paper);
}

.wh-author-avatar {
  position: relative;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ink);
  border: 1px solid var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wh-author-avatar::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--acid);
  border: 1px solid var(--ink);
  border-radius: 2px;
  transform: rotate(45deg);
}

.wh-author-name {
  padding-right: 1px;
}

.wh-article a.wh-author {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  text-decoration-thickness: initial;
  text-underline-offset: initial;
  text-decoration-color: initial;
}

.wh-article a.wh-author:hover {
  color: var(--ink);
  text-decoration: none;
}

.wh-byline-sep {
  margin: 0;
  color: var(--grey);
  font-weight: 500;
  white-space: nowrap;
}

.wh-meta {
  display: inline;
  margin: 0;
  padding: 0;
  border: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--grey);
  vertical-align: middle;
}

.wh-review-marks {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.wh-review-mark {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  white-space: nowrap;
}

.wh-review-mark-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #1f8a4c;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.wh-intro {
  margin: 0 0 26px;
  font-size: 19px;
  line-height: 1.7;
  color: var(--ink-3);
}

.wh-intro strong { font-weight: 700; }

.wh-article a {
  color: var(--acid-deep);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, var(--acid-deep) 40%, transparent);
  transition: text-decoration-color 0.15s;
}

.wh-article a:hover { text-decoration-color: var(--acid-deep); }

.wh-article h2 {
  font-size: clamp(24px, 5vw, 30px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0 0 16px;
}

/* ───────── hero image — full-bleed on mobile ───────── */

.wh-hero-img {
  width: 100%;
  height: auto;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  margin: 0 0 26px;
}

@media (max-width: 979px) {
  .wh-hero-img {
    display: block;
    width: calc(100% + 2 * var(--bleed));
    max-width: calc(100% + 2 * var(--bleed));
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin-left: 0;
    margin-right: 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
}

/* ───────── info boxes ───────── */

.wh-senior-help,
.wh-supplies {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 20px 22px;
  margin: 0 0 24px;
}

.wh-senior-help h2,
.wh-supplies h2 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
  margin: 0 0 14px;
}

.wh-senior-help ul,
.wh-supplies ul {
  margin: 0;
  padding-left: 22px;
}

.wh-senior-help li,
.wh-supplies li {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-3);
}

.wh-senior-help li:last-child,
.wh-supplies li:last-child { margin-bottom: 0; }

.wh-senior-help li::marker,
.wh-supplies li::marker { color: var(--acid-deep); }

/* ───────── symptom picker ───────── */

.wh-symptom-picker { margin: 0 0 30px; }

.wh-picker-intro {
  margin: 0 0 16px;
  font-size: 17px;
  color: var(--grey);
  line-height: 1.65;
}

.wh-symptom-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--ink);
}

.wh-symptom-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 8px;
  min-height: 64px;
  border-bottom: 1px solid var(--line);
  text-decoration: none !important;
  transition: padding-left 0.18s ease, background 0.15s;
}

.wh-symptom-link:hover { padding-left: 16px; background: var(--paper); }

.wh-symptom-link strong {
  font-size: clamp(18px, 3.4vw, 21px);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  line-height: 1.35;
}

.wh-symptom-link span {
  align-self: flex-start;
  font-size: 15px;
  font-weight: 500;
  color: var(--grey);
  padding: 4px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.wh-symptom-link:hover span {
  background: var(--ink);
  color: var(--acid);
  border-color: var(--ink);
}

@media (min-width: 640px) {
  .wh-symptom-link {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
  }
  .wh-symptom-link span { align-self: auto; white-space: nowrap; }
}

/* scope check */
.wh-scope-check {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 20px 22px;
  margin: 0 0 30px;
}

.wh-scope-check ul { margin: 0; padding-left: 22px; }
.wh-scope-check li { margin-bottom: 10px; font-size: 18px; line-height: 1.65; }

/* ───────── method sections ───────── */

.wh-method {
  margin: 52px 0 0;
  padding-top: 0;
  border-top: none;
}

.wh-method + .wh-method {
  margin-top: 56px;
}

.wh-article h2.wh-method-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  position: relative;
  margin: 0 0 28px;
  padding: 18px 48px 20px 20px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 6px;
  box-shadow: inset 6px 0 0 0 var(--acid);
  font-size: clamp(26px, 5.5vw, 34px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.wh-article h2.wh-method-heading::before {
  content: "Section";
  display: block;
  margin: 0 0 2px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--acid);
  line-height: 1.2;
}

.wh-article h2.wh-method-heading::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 12px;
  height: 12px;
  border: 1.5px solid var(--acid);
  transform: translateY(-50%) rotate(45deg);
  pointer-events: none;
}

.wh-article h2.wh-method-heading span {
  display: block;
  max-width: 42rem;
  font-family: var(--fs);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(16px, 2.8vw, 20px);
  letter-spacing: 0;
  line-height: 1.35;
  color: color-mix(in srgb, var(--acid) 70%, var(--paper));
}

.wh-method--fast-path h2.wh-method-heading::before {
  content: "Main path";
}

.wh-method--branch h2.wh-method-heading {
  background: var(--paper);
  color: var(--ink);
  box-shadow: inset 6px 0 0 0 var(--ink);
  border: 1.5px solid var(--ink);
}

.wh-method--branch h2.wh-method-heading::before {
  content: "Branch";
  color: var(--ink-3);
}

.wh-method--branch h2.wh-method-heading::after {
  border-color: var(--ink);
  opacity: 0.45;
}

.wh-method--branch h2.wh-method-heading span {
  color: var(--grey);
}

@media (max-width: 520px) {
  .wh-article h2.wh-method-heading {
    padding-right: 20px;
  }

  .wh-article h2.wh-method-heading::after {
    display: none;
  }
}

.wh-method-when {
  margin: 0 0 14px;
  font-size: 17px;
  color: var(--grey);
  line-height: 1.6;
}

.wh-phase {
  margin: 30px 0 4px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey-2);
}

/* ───────── step — one big block per step ───────── */

.wh-step {
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.wh-step:last-child { border-bottom: none; }

.wh-step-label {
  display: inline-block;
  padding: 8px 18px;
  background: var(--acid);
  color: var(--ink);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.wh-step-body { min-width: 0; overflow: visible; }

.wh-step-body h3 {
  margin: 0 0 14px;
  font-size: clamp(21px, 4.5vw, 26px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.wh-step-body > p:not(.wh-done):not(.wh-why):not(.wh-note):not(.wh-caption) {
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-3);
  margin: 0 0 14px;
}

/* guard: keep pass-check text light on the dark block */
.wh-step-body > p.wh-done { color: var(--paper); }
.wh-step-body > p.wh-done a { color: var(--acid); }
.wh-step-body > p.wh-done strong { color: var(--white); }

/* figure + caption — image first, big; caption under with acid bar */
.wh-figure {
  margin: 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: visible;
}

.wh-caption {
  order: 2;
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-3);
  line-height: 1.55;
  padding-left: 14px;
  border-left: 3px solid var(--acid);
}

.wh-detail {
  order: 1;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
}

/* full-bleed step images on mobile — center breakout from padded article */
@media (max-width: 979px) {
  .wh-detail:not(.wh-detail--phone):not(.wh-detail--overlay) {
    display: block;
    width: calc(100% + 2 * var(--bleed));
    max-width: calc(100% + 2 * var(--bleed));
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin-left: 0;
    margin-right: 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .wh-detail--phone {
    width: auto;
    max-width: min(320px, 80%);
    position: static;
    left: auto;
    transform: none;
    margin-left: auto;
    margin-right: auto;
    border-radius: var(--r-sm);
    border: 1px solid var(--line);
  }
}

@media (min-width: 980px) {
  .wh-detail--phone { max-width: 300px; }
}

/* why */
.wh-why {
  margin: 0 0 14px;
  padding: 14px 18px;
  background: var(--paper);
  border-radius: var(--r-sm);
  font-family: var(--fs);
  font-style: italic;
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink-3);
}

.wh-why::before {
  content: "Why — ";
  font-family: var(--fd);
  font-style: normal;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--acid-deep);
}

/* substeps — big touch-friendly rows */
.wh-substeps {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  counter-reset: sub;
}

.wh-substeps li {
  counter-increment: sub;
  position: relative;
  padding: 12px 0 12px 42px;
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-3);
  border-bottom: 1px dashed var(--line);
}

.wh-substeps li:last-child { border-bottom: none; }

.wh-substeps li::before {
  content: counter(sub);
  position: absolute;
  left: 0;
  top: 14px;
  width: 28px;
  height: 28px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

/* done — the pass check, biggest signal in the step */
.wh-done {
  margin: 0 0 12px;
  padding: 16px 18px 16px 52px;
  position: relative;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-sm);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.6;
}

.wh-done::before {
  content: "✓";
  position: absolute;
  left: 16px;
  top: 16px;
  width: 26px;
  height: 26px;
  background: var(--acid);
  color: var(--ink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
}

.wh-done a { color: var(--acid); }

/* note — stuck helper */
.wh-note {
  margin: 0;
  padding: 14px 18px;
  border: 2px dashed var(--grey-2);
  border-radius: var(--r-sm);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-3);
}

/* ───────── escalate ───────── */

.wh-escalate {
  margin: 40px 0 0;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r);
  padding: clamp(24px, 4.5vw, 36px) clamp(22px, 4.5vw, 34px);
}

@media (max-width: 979px) {
  .wh-escalate {
    width: calc(100% + 2 * var(--bleed));
    margin-left: calc(-1 * var(--bleed));
    margin-right: calc(-1 * var(--bleed));
    border-radius: 0;
  }
}

.wh-escalate h2 {
  color: var(--paper);
  margin: 0 0 16px;
}

.wh-escalate h2::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 3px;
  background: var(--acid);
  vertical-align: middle;
  margin-right: 12px;
}

.wh-escalate ul { margin: 0; padding-left: 22px; }

.wh-escalate li {
  margin-bottom: 12px;
  font-size: 18px;
  line-height: 1.65;
  color: var(--grey-2);
}

.wh-escalate li:last-child { margin-bottom: 0; }
.wh-escalate li::marker { color: var(--acid); }
.wh-escalate strong { color: var(--paper); }
.wh-escalate a { color: var(--acid); }

/* ───────── exceptions / warnings / tips ───────── */

.wh-exceptions,
.wh-callout {
  margin: 32px 0 0;
  border-radius: var(--r-sm);
  padding: 22px 24px;
  border: 1px solid var(--line);
  background: var(--white);
}

.wh-exceptions { border-left: 4px solid var(--ink); }
.wh-warnings { border-left: 4px solid #c2410c; background: #fdf6f1; border-color: #eeddd0; }
.wh-tips { border-left: 4px solid var(--acid-deep); background: #f7faed; border-color: #e4ecc8; }

.wh-exceptions h2,
.wh-callout h2 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 14px;
}

.wh-warnings h2 { color: #c2410c; }
.wh-tips h2 { color: var(--acid-deep); }

.wh-exceptions ol,
.wh-callout ul {
  margin: 0;
  padding-left: 22px;
}

.wh-exceptions li,
.wh-callout li {
  margin-bottom: 11px;
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-3);
}

.wh-exceptions li:last-child,
.wh-callout li:last-child { margin-bottom: 0; }

/* ───────── faq ───────── */

.wh-faq { margin: 40px 0 0; padding-top: 28px; border-top: 3px solid var(--ink); }

.wh-faq-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.wh-faq-item:last-child { border-bottom: none; }

.wh-faq-q {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.4;
}

.wh-faq-q::before {
  content: "Q";
  font-family: var(--fs);
  font-style: italic;
  color: var(--acid-deep);
  margin-right: 10px;
}

.wh-faq-a {
  margin: 0;
  font-size: 17.5px;
  line-height: 1.7;
  color: var(--ink-3);
}

/* related */
.wh-related {
  margin: 32px 0 0;
  padding: 22px 24px;
  background: var(--paper);
  border-radius: var(--r-sm);
}

.wh-related h2 {
  margin: 0 0 16px;
  font-size: clamp(24px, 4vw, 30px);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.wh-related-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.wh-related-item { margin: 0; }

.wh-related-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.wh-related-card:hover {
  border-color: var(--ink-3);
  box-shadow: 0 12px 28px -22px rgba(16, 18, 16, 0.35);
  transform: translateY(-1px);
}

.wh-related-thumb {
  display: block;
  width: 112px;
  height: 63px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.wh-related-thumb--placeholder {
  background:
    linear-gradient(135deg, var(--line) 0 48%, transparent 48% 52%, var(--line) 52% 100%),
    var(--paper);
}

.wh-related-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.wh-related-title {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}

.wh-related-blurb {
  font-size: 15px;
  line-height: 1.5;
  color: var(--grey);
}

.wh-article a.wh-related-card {
  text-decoration: none;
}

.wh-article a.wh-related-card:hover .wh-related-title {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--acid-deep);
  text-underline-offset: 3px;
}

@media (max-width: 520px) {
  .wh-related-card {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 12px;
  }

  .wh-related-thumb {
    width: 88px;
    height: 50px;
  }

  .wh-related-title { font-size: 16px; }
  .wh-related-blurb { font-size: 14px; }
}

/* comments */
.wh-comments {
  margin: 36px 0 0;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}

.wh-comments h2 {
  margin: 0 0 8px;
  font-size: clamp(24px, 4vw, 30px);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.wh-comments-lead {
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--grey);
}

.wh-comments-empty {
  margin: 0 0 18px;
  font-size: 16px;
  color: var(--grey);
}

.wh-comment {
  margin: 0 0 16px;
  padding: 14px 16px;
  background: var(--paper);
  border-radius: 12px;
}

.wh-comment-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  margin-bottom: 8px;
}

.wh-comment-name {
  font-size: 15px;
  font-weight: 600;
}

.wh-comment-date {
  font-size: 13px;
  color: var(--grey);
}

.wh-comment-body {
  margin: 0;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-3);
  white-space: pre-wrap;
}

.wh-comments-form {
  display: grid;
  gap: 14px;
  margin-top: 8px;
}

.wh-comments-field label,
.wh-comments-captcha label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-3);
}

.wh-comments-field input,
.wh-comments-field textarea,
.wh-comments-captcha input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
}

.wh-comments-field textarea {
  resize: vertical;
  min-height: 110px;
}

.wh-comments-field input:focus,
.wh-comments-field textarea:focus,
.wh-comments-captcha input:focus {
  outline: 3px solid var(--acid-deep);
  outline-offset: 1px;
  border-color: var(--ink-3);
}

.wh-comments-captcha input {
  max-width: 120px;
}

.wh-comments-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.wh-comments-status {
  margin: 0;
  min-height: 1.2em;
  font-size: 15px;
  font-weight: 500;
}

.wh-comments-status.is-ok { color: var(--ink-3); }
.wh-comments-status.is-error { color: #8a2b2b; }

.wh-comments-submit {
  justify-self: start;
  padding: 12px 22px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--acid);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.wh-comments-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -18px rgba(16, 18, 16, 0.35);
}

.wh-comments-submit:disabled {
  opacity: 0.6;
  cursor: wait;
}

@media (max-width: 979px) {
  .wh-comments {
    margin-left: var(--pad);
    margin-right: var(--pad);
  }
}

/* ───────── compare banner ───────── */

.wh-compare-banner {
  margin: 0 0 20px;
  padding: 15px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--acid-deep);
  border-radius: var(--r-sm);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-3);
}

/* ───────── visual (photo/animated composite) ───────── */

.wh-visual { margin: 0 0 16px; }

.wh-visual-composite { position: relative; max-width: 100%; }

.wh-visual-composite .wh-detail--overlay {
  position: absolute;
  inset: 0;
}

.wh-visual-tag {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey-2);
}

/* ───────── reference blocks (wifi guides etc.) ───────── */

.wh-ref-compiled,
.wh-ref-section {
  margin: 32px 0 0;
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}

.wh-ref-lead { font-size: 17px; color: var(--ink-3); line-height: 1.65; }

.wh-reference .wh-ref-kicker,
.wh-ref-kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--acid-deep);
}

.wh-ref-action {
  padding: 14px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 17px;
}

/* lamp cards */
.wh-lamp-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
  margin: 16px 0;
}

@media (min-width: 640px) { .wh-lamp-grid { grid-template-columns: repeat(2, 1fr); } }

.wh-lamp-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 16px 18px;
}

.wh-lamp-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.wh-lamp-card-head h3 { margin: 0; font-size: 17px; font-weight: 600; }

.wh-lamp-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid rgba(0,0,0,0.15);
}

.wh-lamp--blue-solid { background: #2563eb; }
.wh-lamp--blue-flash { background: repeating-linear-gradient(45deg, #2563eb 0 4px, #dbeafe 4px 8px); }
.wh-lamp--orange-flash { background: repeating-linear-gradient(45deg, #ea580c 0 4px, #ffedd5 4px 8px); }
.wh-lamp--orange-blue { background: linear-gradient(90deg, #ea580c 50%, #2563eb 50%); }

.wh-lamp-fig img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--line);
}

/* decision map */
.wh-decision-map { display: grid; gap: 14px; margin: 16px 0; }

.wh-decision-node {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 16px 18px;
}

.wh-decision-node--question { border-left: 4px solid var(--ink); }
.wh-decision-node--outcome { border-left: 4px solid var(--acid-deep); }

.wh-decision-node h3 { margin: 0 0 10px; font-size: 18px; font-weight: 600; }

.wh-decision-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wh-decision-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 15.5px;
  font-weight: 600;
  text-decoration: none !important;
  color: var(--ink) !important;
  transition: background 0.15s, border-color 0.15s;
}

.wh-decision-link:hover { border-color: var(--ink); }

.wh-decision-link--primary { background: var(--ink); color: var(--paper) !important; border-color: var(--ink); }
.wh-decision-link--primary:hover { background: var(--ink-3); }
.wh-decision-link--ok { background: var(--acid); border-color: var(--acid); }
.wh-decision-link--warn { background: #fdf6f1; border-color: #eeddd0; color: #c2410c !important; }
.wh-decision-link--branch { border-style: dashed; }

.wh-decision-arrow { color: var(--grey-2); text-align: center; font-size: 18px; }

/* ref tables */
.wh-ref-table-wrap { overflow-x: auto; margin: 16px 0; }

.wh-ref-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
}

.wh-ref-table th,
.wh-ref-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  line-height: 1.55;
}

.wh-ref-table th {
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.wh-ref-table tr:last-child td { border-bottom: none; }

/* badges */
.wh-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.wh-badge--ok { background: var(--acid); color: var(--ink); }
.wh-badge--warn { background: #fdf0e6; color: #c2410c; }
.wh-badge--no { background: var(--ink); color: var(--paper); }

/* thumbs + series */
.wh-ref-thumb-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 14px 0;
  align-items: flex-start;
}

.wh-ref-thumb {
  margin: 0;
  flex: 0 0 auto;
  max-width: 140px;
}

.wh-ref-thumb img {
  width: 140px;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.wh-series-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  margin: 16px 0;
}

.wh-series-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
}

.wh-series-card img { width: 100%; height: auto; display: block; }
.wh-series-card h3 { margin: 12px 14px 5px; font-size: 16px; font-weight: 600; }
.wh-series-card p { margin: 0 14px 14px; font-size: 14.5px; color: var(--grey); }

/* ref cta */
.wh-ref-cta { margin: 18px 0; }

.wh-ref-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 26px;
  background: var(--ink);
  color: var(--acid) !important;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16.5px;
  text-decoration: none !important;
}

.wh-ref-cta-btn:hover { background: var(--ink-3); }

.wh-ref-banner {
  padding: 15px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--acid-deep);
  border-radius: var(--r-sm);
  font-size: 17px;
  margin: 16px 0;
}

/* ───────── senior audience bump ───────── */

body.wh-audience-senior.wh-guide { font-size: 19px; }

body.wh-audience-senior .wh-intro { font-size: 20px; line-height: 1.75; }

body.wh-audience-senior .wh-step-body > p:not(.wh-done):not(.wh-why):not(.wh-note):not(.wh-caption),
body.wh-audience-senior .wh-substeps li,
body.wh-audience-senior .wh-senior-help li,
body.wh-audience-senior .wh-supplies li,
body.wh-audience-senior .wh-escalate li,
body.wh-audience-senior .wh-exceptions li,
body.wh-audience-senior .wh-callout li {
  font-size: 19px;
  line-height: 1.75;
}

body.wh-audience-senior .wh-why { font-size: 20px; }
body.wh-audience-senior .wh-done { font-size: 18px; }
body.wh-audience-senior .wh-note { font-size: 18px; }
body.wh-audience-senior .wh-caption { font-size: 17px; }
body.wh-audience-senior .wh-faq-a { font-size: 18.5px; }
body.wh-audience-senior .wh-step-body h3 { font-size: clamp(22px, 5vw, 28px); }
body.wh-audience-senior h2.wh-method-heading {
  font-size: clamp(28px, 5.5vw, 36px);
}

/* ───────── image lightbox ───────── */

.wh-zoomable {
  cursor: zoom-in;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  max-width: 100%;
}

.wh-zoomable:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 3px;
}

body.wh-lightbox-open {
  overflow: hidden;
}

.wh-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.wh-lightbox[hidden] {
  display: none !important;
}

.wh-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 12, 14, 0.88);
  cursor: zoom-out;
}

.wh-lightbox-stack {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: min(96vw, 1100px);
  max-height: 92vh;
  pointer-events: auto;
}

.wh-lightbox-img {
  display: block;
  max-width: 96vw;
  max-height: calc(92vh - 56px);
  width: auto;
  height: auto;
  border-radius: var(--r-sm);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  background: var(--white);
  object-fit: contain;
  touch-action: pinch-zoom;
}

.wh-lightbox-close {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0;
  padding: 0;
  border: 2px solid var(--white);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.wh-lightbox-close:hover,
.wh-lightbox-close:focus-visible {
  background: rgba(255, 255, 255, 0.22);
  outline: none;
}

.wh-lightbox-close:active {
  transform: scale(0.96);
}

.wh-lightbox-close span {
  display: block;
  margin-top: -2px;
}

/* ───────── back to top ───────── */

.wh-back-to-top-rail {
  pointer-events: none;
}

.wh-back-to-top {
  --btt-dur: 0.44s;
  --btt-ease-in: cubic-bezier(0.22, 1, 0.36, 1);
  --btt-ease-out: cubic-bezier(0.4, 0, 0.2, 1);
  position: fixed;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: max(20px, env(safe-area-inset-bottom, 0px));
  z-index: 70;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0;
  padding: 0;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: var(--acid);
  color: var(--ink);
  box-shadow: 0 4px 16px rgba(12, 12, 14, 0);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.88);
  filter: blur(6px);
  transition:
    opacity var(--btt-dur) var(--btt-ease-out),
    transform var(--btt-dur) var(--btt-ease-out),
    visibility var(--btt-dur),
    filter var(--btt-dur) var(--btt-ease-out),
    box-shadow var(--btt-dur) var(--btt-ease-out),
    background 0.15s ease;
  will-change: opacity, transform, filter;
}

@media (min-width: 980px) {
  .wh-back-to-top-rail {
    position: relative;
    align-self: stretch;
    min-height: 0;
  }

  .wh-back-to-top {
    position: sticky;
    top: calc(100vh - 96px);
    right: auto;
    bottom: auto;
    left: 2px;
    margin-top: 0;
  }
}

@media (max-width: 979px) {
  .wh-back-to-top-rail {
    position: fixed;
    right: max(16px, env(safe-area-inset-right, 0px));
    bottom: max(20px, env(safe-area-inset-bottom, 0px));
    z-index: 70;
    width: 48px;
    height: 48px;
  }

  .wh-back-to-top {
    position: static;
    left: auto;
  }
}

.wh-back-to-top[hidden] {
  display: none !important;
}

.wh-back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  filter: blur(0);
  box-shadow: 0 8px 28px rgba(12, 12, 14, 0.16);
  pointer-events: auto;
  transition-timing-function: var(--btt-ease-in), var(--btt-ease-in), ease, var(--btt-ease-in), var(--btt-ease-in), ease;
}

.wh-back-to-top.is-hiding {
  pointer-events: none;
}

.wh-back-to-top:hover,
.wh-back-to-top:focus-visible {
  background: color-mix(in srgb, var(--acid-deep) 28%, var(--acid));
  box-shadow: 0 10px 32px rgba(12, 12, 14, 0.2);
}

.wh-back-to-top.is-visible:active {
  transform: translateY(0) scale(0.94);
  transition-duration: 0.12s;
}

.wh-back-to-top span {
  display: block;
  margin-top: -2px;
}

/* ───────── print ───────── */

@media print {
  .lab-nav, .wh-mobile-toc, .wh-sidebar, .lab-footer, .wh-back-to-top { display: none !important; }
  .wh-article { border: none; padding: 0; }
  body.lab-home { background: #fff; }
}
