:root { --accent: #598be7; --accent-light: #9bb9f1; color-scheme: light; font-family: 'Noto Sans', sans-serif; font-size: 19px; color: #4a4a4a; background: #FCFCFC; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; line-height: 1.5; }
a { color: var(--accent); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--accent-light); text-decoration: underline; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 24px; padding: 7px 20px; background: #F1F1F1; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); font-size: 16px; }
nav a { color: #4a4a4a; }
nav a { display: inline-flex; align-items: center; padding: 0 4px; }
nav a:hover { color: var(--accent-light); text-decoration: none; }
.icon { display: inline-flex; align-items: center; justify-content: center; width: 1.5em; height: 1.5em; flex-shrink: 0; }
.links a { display: inline-flex; align-items: center; gap: 0.35em; }
main { max-width: 1120px; margin: auto; padding: 0 28px; }
.hero { text-align: center; padding: 57px 0 38px; }
.badge { margin: 10px 0 22px; color: #FA5543; font-size: 19px; font-weight: 600; }
h1 { margin: 0 auto 28px; font-family: 'Google Sans', sans-serif; color: #363636; font-size: clamp(28px, 3.6vw, 50px); letter-spacing: normal; line-height: 1.125; font-weight: 600; text-wrap: balance; }
.authors { display: flex; justify-content: center; flex-wrap: wrap; gap: 5px 20px; font-family: 'Google Sans', sans-serif; font-size: 23.75px; }
.authors span { white-space: nowrap; }
.authors a.author-emphasis { color: var(--accent); }
.authors a.author-emphasis:hover { color: var(--accent-light); }
.affiliations { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 24px; margin-top: 10px; font-family: 'Google Sans', sans-serif; color: #4a4a4a; font-size: 19px; }
sup { font-size: 0.7em; }
.equal { color: #4a4a4a; font-size: 14px; margin: 6px 0; }
.links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.links a { color: white; background: #363636; border-radius: 99px; padding: 7px 22px; font-size: 18px; }
.links a:hover { background: #292929; text-decoration: none; }
.text-section { max-width: 740px; margin: 42px auto 0; scroll-margin-top: 25px; }
h2 { text-align: center; color: #363636; font-size: 30px; font-weight: 600; line-height: 1.125; margin-bottom: 20px; }
.placeholder { text-align: center; color: #7c8792; }
.text-section p { text-align: justify; hyphens: auto; font-size: 16px; line-height: 1.6; }
p.hook { max-width: 1040px; margin: 71px auto 115px; padding: 0 24px; text-align: center; font-family: 'Castoro', 'Times New Roman', Times, serif; font-size: 25px; font-style: italic; font-weight: 400; line-height: 1.78; color: #2b2b2b; text-wrap: balance; }
.hook-text { display: block; text-box: trim-both cap alphabetic; }
.hook-line1 { font-size: 1.17em; }
.hook-emph { font-style: normal; color: #111; padding: 0 0.05em 0.18em; background: linear-gradient(transparent 71%, rgba(89, 139, 231, 0.32) 71%, rgba(89, 139, 231, 0.32) 100%); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.nowrap { white-space: nowrap; }
.quote-mark { font-size: 1.6em; line-height: 0; position: relative; top: 0.22em; color: #9a9a9a; margin: 0 0.06em; }
footer { display: flex; align-items: center; justify-content: center; background: #F1F1F1; padding: 12px 20px; font-size: 19px; }
footer a { display: inline-flex; align-items: center; padding: 0 4px; color: #4a4a4a; }
footer a:hover { color: var(--accent-light); text-decoration: none; }
@media (max-width: 600px) {
  p.hook { font-size: 21px; padding: 0; }
  .nowrap { white-space: normal; }
  main { padding: 0 18px; }
  .hero { padding-top: 36px; }
  h1 { letter-spacing: normal; }
  .desktop-break { display: none; }
  .authors { font-size: 16px; gap: 5px 14px; }
  nav { gap: 20px; }
}
/* Showcase player */
.showcase { max-width: 820px; margin: 0 auto; }
.stage { position: relative; aspect-ratio: 2 / 1; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 10px 34px rgba(0, 0, 0, 0.12); }
.stage-video { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; opacity: 0; transition: opacity 0.45s ease; }
.stage-video.is-active { opacity: 1; }
.stage-caption { position: absolute; left: 12px; top: 12px; display: flex; flex-direction: column; gap: 1px; padding: 5px 10px; border-radius: 8px; background: rgba(15, 20, 30, 0.62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: #fff; pointer-events: none; }
.stage-title { font-family: 'Google Sans', sans-serif; font-size: 15px; font-weight: 600; line-height: 1.2; }
.stage-suite { font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.75; }
.stage-toggle { position: absolute; right: 14px; bottom: 16px; width: 38px; height: 38px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: rgba(15, 20, 30, 0.6); color: #fff; cursor: pointer; transition: background 0.2s; }
.stage-toggle:hover { background: rgba(15, 20, 30, 0.85); }
.stage-toggle:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.stage-toggle svg { width: 18px; height: 18px; fill: currentColor; }
.stage-toggle .icon-play, .stage.is-paused .stage-toggle .icon-pause { display: none; }
.stage.is-paused .stage-toggle .icon-play { display: inline; }
.stage-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(0, 0, 0, 0.08); }
.stage-progress i { display: block; height: 100%; width: 0; background: #FA5543; transition: width 0.25s linear; }
.legend-note { margin: 12px 0 0; text-align: center; font-size: 13.5px; color: #8a8a8a; }
.legend-note .katex { font-size: 1em; }
.legend { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 24px; margin: 14px 0 34px; padding: 0; list-style: none; font-size: 15.5px; color: #5a5a5a; }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.legend svg { width: 20px; height: 20px; }
.legend svg.legend-arrow { width: 32px; height: 20px; }
.legend-label { line-height: 1.4; }
.math { line-height: 1; font-family: 'STIX Two Text', 'Latin Modern Math', 'Cambria Math', 'Times New Roman', serif; font-size: 1.12em; color: #2b2b2b; white-space: nowrap; }
.math i { font-style: italic; }
.math sub { font-size: 0.72em; line-height: 0; vertical-align: -0.3em; margin-left: 0.04em; }
.task-groups { display: grid; gap: 18px; }
.task-group-label { margin: 0 0 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #8a8a8a; }
.task-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.task-thumb { position: relative; display: block; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: #e9e9e9; cursor: pointer; text-align: left; font: inherit; opacity: 0.62; transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s; }
.task-thumb { aspect-ratio: 4 / 3; }
.task-thumb img { display: block; width: 200%; max-width: none; height: auto; transform: translateY(-12.5%); }
.task-thumb span { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 9px 7px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.68)); color: #fff; font-size: 12px; font-weight: 600; line-height: 1.2; }
.task-thumb i { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: #FA5543; }
.task-thumb:hover { opacity: 0.9; transform: translateY(-2px); }
.task-thumb.is-active { opacity: 1; box-shadow: 0 0 0 2px var(--accent), 0 6px 18px rgba(0, 0, 0, 0.14); }
.task-thumb:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
@media (max-width: 600px) {
  .stage { border-radius: 10px; }
  .stage-caption { left: 8px; top: 8px; padding: 5px 9px; }
  .stage-title { font-size: 13px; }
  .stage-suite,   .stage-toggle { width: 30px; height: 30px; right: 8px; bottom: 10px; }
  .legend { font-size: 12px; gap: 4px 14px; }
  .task-row { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .task-thumb span { font-size: 11px; }
}
/* Method stepper */
.method-section { max-width: 820px; margin: 0 auto; scroll-margin-top: 25px; }

.method-steps { display: flex; align-items: flex-end; gap: 14px; }
.method-step { flex: var(--w) 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 0; border: 0; background: none; cursor: pointer; font: inherit; color: inherit; opacity: 0.25; filter: grayscale(0.6); transition: opacity 0.35s ease, filter 0.35s ease; }
.method-arrow { flex: var(--w) 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; opacity: 0.25; transition: opacity 0.35s ease; }
.method-arrow svg { display: block; width: 100%; height: auto; }
.method-arrow-label { font-family: KaTeX_Main, 'Times New Roman', serif; font-size: 40px; fill: #111; }
.method-arrow.is-active { opacity: 1; }
.method-arrow-spacer { visibility: hidden; }
.method-step img { display: block; width: 100%; height: auto; mix-blend-mode: multiply; }
.method-step:hover { opacity: 0.55; filter: grayscale(0.2); }
.method-step.is-active { opacity: 1; filter: none; }
.method-step:focus-visible { outline: 3px solid var(--accent); outline-offset: 6px; border-radius: 8px; }
.method-step-label { display: inline-flex; align-items: center; gap: 7px; font-family: 'Google Sans', sans-serif; font-size: 16px; font-weight: 600; color: #363636; white-space: nowrap; }
.method-step-num, .method-card-num { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #e4e4e4; color: #555; font-size: 12px; font-weight: 700; transition: background 0.35s, color 0.35s; }
.method-step.is-active .method-step-num { background: var(--accent); color: #fff; }
.method-card { display: flex; align-items: center; gap: 12px; margin-top: 30px; padding: 22px 16px; border-radius: 14px; background: #fff; box-shadow: 0 6px 26px rgba(0, 0, 0, 0.07); }
.method-card-body { flex: 1; min-width: 0; text-align: center; }
.method-card-title { display: flex; align-items: center; justify-content: center; gap: 9px; margin: 0; font-family: 'Google Sans', sans-serif; font-size: 19px; font-weight: 600; color: #363636; }
.method-card-num { background: var(--accent); color: #fff; }
.method-eq { min-height: 3.2em; margin: 6px 0 2px; overflow-x: auto; overflow-y: hidden; color: #2b2b2b; }
.method-eq .katex-display { margin: 0.6em 0; }
.method-eq .katex { font-size: 1.02em; }
.method-card-text { max-width: 640px; margin: 0 auto; font-size: 15.5px; line-height: 1.6; color: #5a5a5a; }
.method-nav { flex: none; width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: #f1f1f1; color: #4a4a4a; cursor: pointer; transition: background 0.2s, color 0.2s; }
.method-nav:hover { background: var(--accent); color: #fff; }
.method-nav:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.method-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 600px) {
  .method-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 12px; align-items: end; }
  .method-arrow { display: none; }
  .method-step-label { font-size: 13px; }
  .method-card { padding: 16px 8px; gap: 6px; }
  .method-card-title { font-size: 16px; }
  .method-eq .katex { font-size: 0.92em; }
  .method-nav { width: 32px; height: 32px; }
}
/* Section structure (method, results) */
.method-section h2 { margin: 0 0 6px; text-align: center; font-size: 26px; font-weight: 700; line-height: 1.25; }
.method-section h2 em { font-style: italic; }
.method-section h3 { margin: 30px 0 10px; font-family: 'Google Sans', sans-serif; font-size: 20px; font-weight: 700; color: #363636; }
.method-section h3 em { font-style: italic; }
.section-rule { max-width: 820px; margin: 56px auto; border: 0; border-top: 1px solid #e3e3e3; }
.bullets { margin: 0; padding-left: 22px; }
.bullets li { margin: 6px 0; font-size: 16px; line-height: 1.65; color: #4a4a4a; }
.bullets li::marker { color: #363636; }
.bullets strong { color: #2b2b2b; }
.bullets .katex, .method-card-text .katex, .method-card-title .katex, figcaption .katex { font-size: 1em; }
.eq { margin: 8px 0 8px; overflow-x: auto; overflow-y: hidden; color: #2b2b2b; }
.eq .katex-display { margin: 0.5em 0; }
.eq .katex { font-size: 1.02em; }
.method-section .method-steps { margin-top: 26px; }
.paper-figure { max-width: 800px; margin: 20px auto 0; }
.fig-narrow { max-width: 720px; }
.paper-figure img { display: block; width: 100%; height: auto; mix-blend-mode: multiply; }
.paper-figure figcaption { margin-top: 6px; text-align: center; font-size: 14px; color: #6a6a6a; }
.figure-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 800px; margin: 20px auto 0; }
.figure-pair .paper-figure { margin-top: 0; }
@media (max-width: 600px) {
      .bullets li { font-size: 15px; }
  .method-section h3 { font-size: 18px; }
  .section-rule { margin: 40px auto; }
  .figure-pair { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
strong { font-weight: 700; color: #363636; }
.math-raise { position: relative; top: -0.12em; }
#tldr p { hyphens: manual; }
@media (min-width: 900px) { #tldr p { margin-left: 60px; margin-right: 60px; } }
.showcase-results { margin: 22px 0 6px; }
.method-arrow img { display: block; width: 100%; height: auto; mix-blend-mode: multiply; }
.figure-row { display: flex; gap: 18px; align-items: flex-start; max-width: 706px; margin: 20px auto 0; }
.figure-row .paper-figure { flex: var(--w) 1 0; min-width: 0; margin: 0; }
@media (max-width: 600px) { .figure-row { flex-direction: column; } }
#results h3 { margin-top: 72px; }
#results .showcase-results { margin-top: 0; }

/* Card decks: derivation and geometric interpretation share one layout */
.method-lead { max-width: 780px; margin: 0 0 20px; font-size: 16px; line-height: 1.65; color: #4a4a4a; }
.method-lead .katex, .deck .katex, .deck-card .katex { font-size: 1em; }
.deck { margin-top: 22px; }
.deck-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.deck-tab { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 6px 10px; border: 1px solid #e3e3e3; border-radius: 10px; background: #fff; color: #8a8a8a; font: 600 15px 'Google Sans', sans-serif; cursor: pointer; transition: color .2s, border-color .2s, background .2s; }
.deck-tab:hover { color: #363636; border-color: #cfd8ea; }
.deck-tab.is-active { color: #363636; border-color: var(--accent); background: #f3f7fe; }
.deck-tab.is-active .method-step-num { background: var(--accent); color: #fff; }
.deck-tab:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.deck-card { margin-top: 14px; padding: 22px 28px 16px; border-radius: 14px; background: #fff; box-shadow: 0 6px 26px rgba(0, 0, 0, 0.07); }
.deck-card.method-card { display: block; margin-top: 26px; }
.deck-panel { display: none; }
.deck-panel.is-active { display: block; animation: deck-in .3s ease; }
@keyframes deck-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.deck-title { margin: 0 0 4px; font: 600 18px 'Google Sans', sans-serif; color: #363636; }
.deck-lead, .deck-note { margin: 0; font-size: 16px; line-height: 1.65; color: #4a4a4a; }
.deck-eq { margin: 10px 0; padding: 4px 0; overflow-x: auto; overflow-y: hidden; color: #2b2b2b; text-align: center; }
.deck-eq .katex-display { margin: 0.4em 0; }
.deck-eq .katex { font-size: 1.05em; }
.deck-foot { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 12px; }
.deck-count { min-width: 44px; text-align: center; font-size: 13px; color: #8a8a8a; font-variant-numeric: tabular-nums; }
.deck-foot .method-nav { width: 34px; height: 34px; }
.method-section .method-steps { margin-top: 0; padding: 0 6px; }
@media (max-width: 600px) {
  .deck-tabs { grid-template-columns: 1fr 1fr; }
  .deck-tab { font-size: 13px; }
  .deck-card { padding: 16px 14px 12px; }
}
@media (prefers-reduced-motion: reduce) { .deck-panel.is-active { animation: none; } }
.method-section .paper-figure + .bullets, .figure-pair + .bullets, .figure-row + .bullets { margin-top: 18px; }
.deck-q { margin: 0 0 8px; font: 600 18px 'Google Sans', sans-serif; color: #2b2b2b; }
#method .method-lead { margin-top: 6px; }
.geo-box { margin-top: 18px; padding: 26px 26px 16px; border-radius: 14px; background: #fff; box-shadow: 0 6px 26px rgba(0, 0, 0, 0.07); }
.geo-box .method-steps { padding: 0; }
.geo-detail { margin-top: 22px; padding-top: 18px; border-top: 1px solid #ececec; }
@media (max-width: 600px) { .geo-box { padding: 16px 12px 10px; } }
.geo-detail.method-card { display: block; margin-top: 22px; padding: 18px 2px 0; border-radius: 0; background: none; box-shadow: none; }
.fig-rotation { max-width: 420px; }
.hero .links { margin-top: 18px; }
#results-heading { margin-bottom: 16px; }
#final-remarks { margin-bottom: 80px; }
#final-remarks h2 { margin-bottom: 16px; }
.mark { background: linear-gradient(transparent 62%, rgba(89, 139, 231, 0.3) 62%, rgba(89, 139, 231, 0.3) 96%, transparent 96%); padding: 0 1px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
/* Additional experiments: accordion cards */
#additional .method-lead { margin: 0 0 22px; }
.xp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: stretch; }
.xp-card { display: flex; border-radius: 14px; background: #fff; box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06); border: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.xp-card:hover { box-shadow: 0 6px 22px rgba(0, 0, 0, 0.09); }
.xp-card.is-open { border-color: #9bb9f1; box-shadow: 0 6px 22px rgba(89, 139, 231, 0.18); }
.xp-panel { grid-column: 1 / -1; padding: 18px 24px 16px; border-radius: 14px; background: #fff; box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06); animation: deck-in .3s ease; }
.xp-head { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 84px; padding: 12px 16px 12px 12px; border: 0; background: none; cursor: pointer; text-align: left; font: inherit; color: inherit; border-radius: 14px; }
.xp-head:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.xp-thumb { flex: none; width: 108px; height: 60px; border-radius: 8px; overflow: hidden; background: #fff; border: 1px solid #eee; }
.xp-thumb img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; padding: 3px; box-sizing: border-box; }
.xp-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.xp-num { font: 700 12px 'Google Sans', sans-serif; letter-spacing: .06em; color: var(--accent); }
.xp-title { font: 600 15.5px/1.3 'Google Sans', sans-serif; color: #2b2b2b; }
.xp-title .katex { font-size: 1em; }
.xp-chev { flex: none; width: 22px; height: 22px; fill: none; stroke: #8a8a8a; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s; }
.xp-card.is-open .xp-chev { transform: rotate(180deg); stroke: var(--accent); }
.xp-card .xp-body { display: none; }

.xp-figs { display: flex; gap: 18px; justify-content: center; align-items: flex-start; margin: 6px 0 14px; }
.xp-figs .paper-figure { margin: 0; flex: 1 1 0; min-width: 0; }
.xp-panel[data-kind="std"] .xp-figs .paper-figure { max-width: 440px; }
.xp-panel[data-kind="wide"] .xp-figs .paper-figure { max-width: 680px; }
.xp-panel[data-kind="tall"] .xp-figs .paper-figure { max-width: 340px; }
@media (max-width: 600px) {
  .xp-grid { grid-template-columns: 1fr; }
  .xp-thumb { width: 84px; height: 56px; }
  .xp-panel { padding: 14px; }
  .xp-figs { flex-direction: column; }
}
.xp-panel[data-kind="row"] .xp-figs .paper-figure { flex: var(--w) 1 0; }
.xp-panel[data-kind="row"] .xp-figs { max-width: 706px; margin-left: auto; margin-right: auto; }
.vis-tabs { grid-template-columns: 1fr 1fr; }
.vis-tabs .katex { font-size: 1em; }
.vis-k .paper-figure { max-width: 360px; }
.maze-pills { display: flex; justify-content: center; gap: 8px; margin: 2px 0 14px; flex-wrap: wrap; }
.maze-pill { padding: 6px 14px; border: 1px solid #e0e0e0; border-radius: 99px; background: #fff; color: #6a6a6a; font: 600 14px 'Google Sans', sans-serif; cursor: pointer; transition: all .2s; }
.maze-pill:hover { color: #363636; border-color: #cfd8ea; }
.maze-pill.is-active { color: #fff; background: var(--accent); border-color: var(--accent); }
.maze-view { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-bottom: 14px; }
.maze-colorbar { width: min(440px, 100%); height: auto; mix-blend-mode: multiply; }
.maze-img { display: none; width: min(560px, 100%); height: auto; mix-blend-mode: multiply; }
.maze-img.maze-xtall { width: auto; max-width: 100%; max-height: 640px; }
.maze-img.is-active { display: block; animation: deck-in .3s ease; }
.maze-img.k-img { width: min(476px, 100%); }
#final-heading span { background: linear-gradient(transparent 58%, rgba(224, 49, 49, 0.28) 58%, rgba(224, 49, 49, 0.28) 96%, transparent 96%); padding: 0 3px; }
.xp-group-label { margin: 22px 0 10px; font: 600 12px 'Google Sans', sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #8a8a8a; }
#additional .method-lead + .xp-group-label { margin-top: 0; }
#additional .method-lead, #method > .method-lead { text-align: center; }
#tldr h2 span { background: linear-gradient(transparent 58%, rgba(0, 0, 0, 0.1) 58%, rgba(0, 0, 0, 0.1) 96%, transparent 96%); padding: 0 3px; }
#additional h3.xp-group { margin: 28px 0 12px; }
#additional .method-lead + h3.xp-group { margin-top: 4px; }
@media (max-width: 600px) {
  .deck-eq, .eq, .method-eq { overflow-x: hidden; text-align: center; padding: 4px 0; }
  .deck-eq .katex, .eq .katex, .method-eq .katex { font-size: 1em; }
  .text-section p { text-align: left; hyphens: manual; }
  .deck-tab { justify-content: flex-start; text-align: left; font-size: 13px; padding: 8px 10px; }
  .deck-tab .tab-label { line-height: 1.35; }
  .vis-tabs { grid-template-columns: 1fr; }
  .hook-emph { padding-bottom: 0.12em; }
  .xp-head { gap: 10px; padding: 10px 12px 10px 10px; min-height: 0; }
  .xp-title { font-size: 15px; }
  .maze-pill { font-size: 13px; padding: 5px 11px; }
  .stage-caption { left: 6px; top: 6px; padding: 3px 7px; border-radius: 6px; }
  .stage-title { font-size: 12px; }
  .method-section h2 { font-size: 22px; }
  .method-section h3 { font-size: 18px; }
}
@media (min-width: 601px) {
  .method-step[data-step="0"] .method-step-label, .method-step[data-step="2"] .method-step-label { transform: translateX(-10px); }
}
.legend.maze-legend { margin: -4px 0 18px; font-size: 14.5px; }
.maze-legend svg { width: 16px; height: 16px; }
.maze-legend li svg + svg { margin-left: -3px; }
.maze-imgwrap { position: relative; display: flex; justify-content: center; }
.maze-side { position: absolute; left: calc(100% + 10px); margin: 0; padding: 0; list-style: none; transform: translateY(-50%); display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; color: #5a5a5a; white-space: nowrap; }
.maze-side-top { top: var(--r1); }
.maze-side-bottom { top: var(--r2); }
.maze-side li { display: flex; align-items: center; gap: 6px; }
.maze-side svg { width: 13px; height: 13px; flex: none; }
@media (min-width: 761px) { .maze-stage .maze-img:not(.maze-xtall) { width: min(550px, 100%); } .maze-legend { display: none; } }
@media (max-width: 760px) { .maze-side { display: none; } }
.legend-note + .legend { margin-top: 6px; }
@media (max-width: 600px) { .legend-note { font-size: 12px; } }
