/* Dodgeball Hub Help: one stylesheet for every page.
   Brand: the app's court red (#c5624e) is the only accent. The memorable piece is the step rail
   in articles (an ordered list drawn as a court line); everything around it stays quiet. */

:root {
  --court: #c5624e;
  --court-strong: #a04d3c;
  --court-soft: #f6e4df;
  --ink: #1f2328;
  --ink-soft: #4a5260;
  --ink-faint: #6b7280;
  --line: #e3e5e8;
  --floor: #f4f5f6;
  --paper: #ffffff;
  --shot-frame: #d9dce0;
  --focus: #c5624e;
  --tip: #2f6f5e;
  --tip-soft: #e3f1ec;
  --warn: #8a5a00;
  --warn-soft: #fbf0d9;

  --font-body: 'Barlow', system-ui, -apple-system, 'Segoe UI', 'Hiragino Sans', 'PingFang SC', 'Apple SD Gothic Neo', 'Noto Sans CJK JP', 'Noto Sans Thai', 'Thonburi', sans-serif;
  --font-display: 'Barlow Condensed', 'Barlow', system-ui, -apple-system, 'Hiragino Sans', 'PingFang SC', 'Apple SD Gothic Neo', 'Noto Sans Thai', 'Thonburi', sans-serif;

  --text-sm: 0.875rem;
  --text-base: 1.0625rem;
  --text-lg: 1.25rem;
  --text-xl: 1.6rem;
  --text-2xl: 2.4rem;
  --text-3xl: clamp(2.4rem, 6vw, 4rem);

  --radius: 10px;
  --topbar: 64px;
  --measure: 46rem;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --court: #e27b65;
    --court-strong: #f09a86;
    --court-soft: #3a2420;
    --ink: #e8eaed;
    --ink-soft: #b4bac4;
    --ink-faint: #8b93a0;
    --line: #2c323a;
    --floor: #15181c;
    --paper: #1c2026;
    --shot-frame: #3a414b;
    --focus: #f09a86;
    --tip: #7fc8b2;
    --tip-soft: #1d2e29;
    --warn: #e9be6a;
    --warn-soft: #302612;
    color-scheme: dark;
  }
}

:root[data-theme='dark'] {
  --court: #e27b65;
  --court-strong: #f09a86;
  --court-soft: #3a2420;
  --ink: #e8eaed;
  --ink-soft: #b4bac4;
  --ink-faint: #8b93a0;
  --line: #2c323a;
  --floor: #15181c;
  --paper: #1c2026;
  --shot-frame: #3a414b;
  --focus: #f09a86;
  --tip: #7fc8b2;
  --tip-soft: #1d2e29;
  --warn: #e9be6a;
  --warn-soft: #302612;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

/* scrollbar-gutter: a short page and a long one keep the same width when the scrollbar comes and goes. */
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--topbar) + 16px); scrollbar-gutter: stable; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--floor);
  color: var(--ink);
  font: 400 var(--text-base)/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

/* Body text only: headings keep their own tight leading. */
body:lang(ja), body:lang(ko), body:lang(zh-Hans), body:lang(zh-Hant), body:lang(zh-HK) { line-height: 1.75; }
body:lang(th) { line-height: 1.8; }
:lang(ja) :is(h1, h2, h3, .lede) { word-break: auto-phrase; }

a { color: var(--court-strong); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:where(a, button, select, input, textarea, summary):focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
kbd { font: 500 0.75rem/1 var(--font-body); padding: 3px 6px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; color: var(--ink-faint); background: var(--paper); }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 6px; }
.skip-link:focus { top: 12px; }

/* ----------------------------------------------------------------------------- top bar */

.topbar { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar-inner { max-width: 1440px; height: var(--topbar); margin: 0 auto; padding: 0 20px; display: flex; align-items: center; gap: 18px; }

.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; flex: none; }
.brand img { border-radius: 50%; }
.brand-name { font: 700 1.2rem/1 var(--font-display); letter-spacing: 0.01em; }
.brand-help { font: 600 1.2rem/1 var(--font-display); color: var(--court); padding-left: 10px; border-left: 2px solid var(--line); }

.guide-nav { display: flex; gap: 4px; margin-left: 12px; }
.guide-nav a { color: var(--ink-soft); text-decoration: none; font-weight: 500; padding: 8px 12px; border-radius: 8px; white-space: nowrap; }
.guide-nav a:hover { color: var(--ink); background: var(--floor); }
.guide-nav a[aria-current] { color: var(--ink); box-shadow: inset 0 -3px 0 var(--court); border-radius: 0; }

.search-trigger { margin-left: auto; display: flex; align-items: center; gap: 10px; min-width: 220px; padding: 8px 10px 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--floor); color: var(--ink-faint); font: inherit; font-size: var(--text-sm); cursor: pointer; }
.search-trigger span { flex: 1; text-align: left; }
.search-trigger:hover { border-color: var(--ink-faint); color: var(--ink-soft); }

.lang { position: relative; display: flex; align-items: center; color: var(--ink-soft); }
.lang svg { position: absolute; left: 8px; pointer-events: none; }
.lang select { appearance: none; font: inherit; font-size: var(--text-sm); color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px 7px 34px; cursor: pointer; max-width: 9.5rem; }

.icon-button { display: inline-grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--ink-soft); cursor: pointer; }
.icon-button:hover { color: var(--ink); border-color: var(--ink-faint); }
.menu-toggle { display: none; }

/* ----------------------------------------------------------------------------- shell */

.shell { max-width: 1440px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: 17rem minmax(0, 1fr) 14rem; gap: 40px; align-items: start; }
.shell.shell-wide { grid-template-columns: minmax(0, 1fr); }

.sidebar { position: sticky; top: var(--topbar); max-height: calc(100vh - var(--topbar)); overflow-y: auto; padding: 28px 4px 40px 0; font-size: var(--text-sm); }
.sidebar ol { list-style: none; margin: 0; padding: 0; }
.sidebar-guide { display: block; font: 700 1.35rem/1.1 var(--font-display); color: var(--ink); text-decoration: none; margin-bottom: 18px; }
.sidebar-section + .sidebar-section { margin-top: 14px; }
.sidebar-section-link { display: block; font-weight: 600; color: var(--ink); text-decoration: none; padding: 4px 0; }
.sidebar-section ol { margin: 4px 0 0 2px; border-left: 2px solid var(--line); }
.sidebar-section ol a { display: block; padding: 5px 10px 5px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink-soft); text-decoration: none; line-height: 1.35; }
.sidebar-section ol a:hover { color: var(--ink); border-left-color: var(--ink-faint); }
.sidebar a[aria-current='page'] { color: var(--court-strong); border-left-color: var(--court); font-weight: 600; }

/* ----------------------------------------------------------------------------- article */

.article { min-width: 0; padding: 32px 0 72px; }
.article-body, .section-page, .guide-page { max-width: var(--measure); }

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: var(--text-sm); color: var(--ink-faint); margin-bottom: 14px; }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--court-strong); text-decoration: underline; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; letter-spacing: 0.005em; color: var(--ink); text-wrap: balance; }
h1 { font-size: var(--text-2xl); margin: 0 0 12px; }
.prose h2 { font-size: var(--text-xl); margin: 48px 0 14px; padding-top: 4px; }
.prose h3 { font-size: var(--text-lg); margin: 32px 0 10px; }
.lede { font-size: var(--text-lg); line-height: 1.5; color: var(--ink-soft); margin: 0 0 20px; max-width: 40rem; text-wrap: pretty; }

.article-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-bottom: 28px; font-size: var(--text-sm); color: var(--ink-faint); }
.button-primary, .button-secondary { display: inline-flex; align-items: center; gap: 8px; font: 600 var(--text-sm)/1 var(--font-body); padding: 10px 16px; border-radius: 8px; text-decoration: none; cursor: pointer; }
.button-primary { background: var(--court); color: #fff; border: 1px solid var(--court); }
.button-primary:hover { background: var(--court-strong); border-color: var(--court-strong); }
.button-secondary { background: var(--paper); color: var(--ink); border: 1px solid var(--line); }
.button-secondary:hover { border-color: var(--ink-faint); }
.button-secondary svg { width: 16px; height: 16px; color: var(--ink-faint); }

.untranslated { font-size: var(--text-sm); color: var(--warn); background: var(--warn-soft); padding: 8px 12px; border-radius: 8px; }

.prose { font-size: var(--text-base); }
.prose p, .prose ul { margin: 0 0 16px; text-wrap: pretty; }
.prose ul { padding-left: 1.3em; }
.prose li + li { margin-top: 6px; }
.prose strong { font-weight: 600; color: var(--ink); }
.prose code { font-size: 0.92em; background: var(--floor); padding: 1px 5px; border-radius: 4px; }

/* The step rail: an ordered list drawn as a court line with large numbers. */
.prose ol { list-style: none; counter-reset: step; margin: 8px 0 32px; padding: 0; }
.prose ol > li { counter-increment: step; position: relative; padding: 0 0 36px 64px; margin: 0; }
.prose ol > li::before {
  content: counter(step);
  position: absolute; left: 0; top: -4px;
  width: 42px; height: 42px; display: grid; place-items: center;
  font: 700 1.5rem/1 var(--font-display);
  color: var(--court-strong); background: var(--paper);
  border: 2px solid var(--court); border-radius: 50%;
}
.prose ol > li::after { content: ''; position: absolute; left: 20px; top: 44px; bottom: 4px; width: 2px; background: repeating-linear-gradient(to bottom, var(--line) 0 8px, transparent 8px 14px); }
.prose ol > li:last-child { padding-bottom: 8px; }
.prose ol > li:last-child::after { display: none; }
.prose ol > li > p:first-child { font-size: 1.1rem; margin-bottom: 14px; padding-top: 4px; }

.shot { display: block; width: 100%; padding: 0; border: 1px solid var(--shot-frame); border-radius: var(--radius); background: var(--paper); overflow: hidden; cursor: zoom-in; box-shadow: 0 1px 0 var(--line), 0 12px 32px -18px rgba(17, 24, 39, 0.35); }
.shot img { display: block; width: 100%; height: auto; }
.shot:hover { border-color: var(--ink-faint); }

.walkthrough { margin: 0 0 36px; border: 1px solid var(--shot-frame); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.walkthrough video { display: block; width: 100%; height: auto; background: #000; }
/* The caption strip: the step being shown, in the article's own words. */
.walkthrough-caption { display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; border-top: 1px solid var(--shot-frame); min-height: 64px; }
.walkthrough-n { display: grid; place-items: center; width: 32px; height: 32px; border: 2px solid var(--court); border-radius: 50%; font: 700 1.1rem/1 var(--font-display); color: var(--court-strong); grid-column: 2; }
.walkthrough-text { grid-column: 3; font-weight: 500; line-height: 1.4; text-wrap: pretty; }
.walkthrough-nav { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--ink-soft); cursor: pointer; }
.walkthrough-nav:hover { color: var(--ink); border-color: var(--ink-faint); }
.walkthrough-nav[data-step-prev] { grid-column: 1; }
.walkthrough-nav[data-step-next] { grid-column: 4; }

.callout { position: relative; margin: 0 0 24px; padding: 14px 16px 14px 18px; border-radius: 8px; border-left: 4px solid var(--tip); background: var(--tip-soft); }
.callout::before { content: attr(data-label); display: block; font-weight: 600; font-size: var(--text-sm); color: var(--tip); margin-bottom: 4px; }
.callout-warning { border-left-color: var(--warn); background: var(--warn-soft); }
.callout-warning::before { color: var(--warn); }
.callout-note { border-left-color: var(--ink-faint); background: var(--paper); border: 1px solid var(--line); border-left-width: 4px; }
.callout-note::before { color: var(--ink-soft); }
.callout p:last-child { margin-bottom: 0; }

/* ----------------------------------------------------------------------------- vote + pager */

.vote { max-width: var(--measure); margin-top: 48px; padding: 28px 0 8px; border-top: 1px solid var(--line); display: grid; justify-items: center; gap: 14px; text-align: center; }
.vote-question { margin: 0; font-weight: 600; }
.vote-buttons { display: flex; justify-content: center; gap: 10px; }
.vote-button { font: 500 var(--text-sm)/1 var(--font-body); padding: 10px 22px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; }
.vote-button:hover { border-color: var(--ink-faint); }
.vote-button[aria-pressed='true'] { border-color: var(--court); color: var(--court-strong); background: var(--court-soft); }
/* The box with its Send button underneath, on the right. */
.vote-comment { display: grid; gap: 8px; width: min(100%, 34rem); }
.vote-comment label { font-size: var(--text-sm); color: var(--ink-soft); }
.vote-comment textarea { font: inherit; font-size: var(--text-sm); padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); resize: vertical; text-align: left; }
.vote-comment .button-primary { justify-self: end; }
.vote-thanks { margin: 0; color: var(--tip); }
.vote-error { margin: 0; color: var(--warn); }

/* Each link is as wide as its own text, previous on the left and next on the right. */
.pager { max-width: var(--measure); display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-top: 24px; }
.pager a { display: grid; gap: 6px; max-width: calc(50% - 8px); padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); text-decoration: none; }
.pager a:hover { border-color: var(--court); }
.pager-next { margin-left: auto; text-align: right; justify-items: end; }
.pager-label { display: inline-flex; align-items: center; gap: 4px; font-size: var(--text-sm); color: var(--ink-faint); }
.pager-label svg { width: 16px; height: 16px; }
.pager-title { font: 700 1.25rem/1.15 var(--font-display); color: var(--ink); }

/* ----------------------------------------------------------------------------- table of contents */

.toc { position: sticky; top: var(--topbar); padding: 32px 0; font-size: var(--text-sm); }
.toc-title { font-weight: 600; color: var(--ink); margin: 0 0 8px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 4px 0 4px 12px; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink-faint); text-decoration: none; line-height: 1.35; }
.toc a:hover, .toc a.is-active { color: var(--ink); border-left-color: var(--court); }

/* ----------------------------------------------------------------------------- lists of tasks */

.task-list { list-style: none; margin: 16px 0 0; padding: 0; counter-reset: task; border-top: 1px solid var(--line); }
.task-list li { counter-increment: task; border-bottom: 1px solid var(--line); }
.task-list a { display: grid; grid-template-columns: 2.4rem 1fr; column-gap: 8px; padding: 14px 4px; text-decoration: none; color: var(--ink); }
.task-list a::before { content: counter(task); grid-row: span 2; font: 700 1.3rem/1.2 var(--font-display); color: var(--ink-faint); }
.task-list a:hover .task-title { color: var(--court-strong); }
.task-title { font-weight: 600; line-height: 1.3; }
.task-summary { color: var(--ink-soft); font-size: var(--text-sm); line-height: 1.45; margin-top: 2px; }

.guide-section { margin-top: 40px; }
.guide-section h2 { font-size: var(--text-xl); margin: 0 0 4px; }
.guide-section h2 a { color: inherit; text-decoration: none; }
.guide-section h2 a:hover { color: var(--court-strong); }
.guide-section > p { color: var(--ink-soft); margin: 0; }

/* ----------------------------------------------------------------------------- home */

/* width, not just max-width: a centred grid item otherwise shrinks to its text, so each language
   gave the home page a different width. */
.home { width: min(100%, 64rem); justify-self: center; padding: 0 0 96px; }
.hero { padding: 72px 0 56px; }
.hero h1 { font-size: var(--text-3xl); line-height: 0.98; max-width: 14ch; margin-bottom: 18px; }
.hero .lede { max-width: 36rem; }
.hero-search { display: flex; align-items: center; gap: 14px; width: min(100%, 40rem); margin-top: 28px; padding: 18px 20px; border: 2px solid var(--ink); border-radius: 14px; background: var(--paper); color: var(--ink-faint); font: inherit; font-size: var(--text-lg); cursor: text; text-align: left; box-shadow: 6px 6px 0 var(--court); transition: box-shadow 0.15s, transform 0.15s; }
.hero-search span { flex: 1; }
.hero-search svg { width: 24px; height: 24px; color: var(--ink); }
.hero-search:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--court); }

.roles h2, .start h2 { font-size: var(--text-xl); margin: 0 0 8px; }
.role-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); border-top: 2px solid var(--ink); }
.role-list li { border-bottom: 1px solid var(--line); }
.role-list li + li { border-left: 1px solid var(--line); }
.role-list a { display: grid; gap: 6px; height: 100%; padding: 20px 20px 24px; text-decoration: none; color: var(--ink); }
.role-list a:hover { background: var(--paper); }
.role-list a:hover .role-title { color: var(--court-strong); }
.role-title { font: 700 1.7rem/1 var(--font-display); }
.role-lede { color: var(--ink-soft); font-size: var(--text-sm); line-height: 1.45; }
.role-count { color: var(--ink-faint); font-size: var(--text-sm); margin-top: auto; padding-top: 8px; }
.start { margin-top: 64px; }
.start > p { color: var(--ink-soft); margin: 0; }

/* ----------------------------------------------------------------------------- dialogs */

dialog { border: none; padding: 0; color: var(--ink); background: var(--paper); }
dialog::backdrop { background: rgba(17, 24, 39, 0.55); backdrop-filter: blur(2px); }

.search-dialog { width: min(42rem, calc(100vw - 32px)); margin: 10vh auto auto; border-radius: 14px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.45); }
.search-form { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.search-form svg { color: var(--ink-faint); }
.search-form input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; color: var(--ink); font: inherit; font-size: var(--text-lg); }
.search-form input::-webkit-search-cancel-button { display: none; }
.search-close { border: none; background: none; padding: 0; cursor: pointer; }
.search-results { list-style: none; margin: 0; padding: 8px; max-height: min(60vh, 32rem); overflow-y: auto; }
.search-results:empty { display: none; }
.search-results a { display: grid; gap: 3px; padding: 10px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.search-results a:hover, .search-results a[aria-selected='true'] { background: var(--floor); }
.search-results a[aria-selected='true'] .result-title { color: var(--court-strong); }
.result-section { font-size: 0.78rem; color: var(--ink-faint); }
.result-title { font-weight: 600; }
.result-excerpt { font-size: var(--text-sm); color: var(--ink-soft); line-height: 1.45; }
.result-excerpt mark { background: var(--court-soft); color: inherit; border-radius: 3px; padding: 0 2px; }
.search-empty { margin: 0; padding: 18px 20px; color: var(--ink-soft); font-size: var(--text-sm); }

.lightbox { max-width: 96vw; max-height: 94vh; background: transparent; overflow: visible; }
.lightbox img { display: block; max-width: 96vw; max-height: 90vh; border-radius: 8px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }
.lightbox-close { position: absolute; top: -14px; right: -14px; width: 36px; height: 36px; border-radius: 50%; border: none; background: var(--paper); color: var(--ink); font-size: 1.4rem; line-height: 1; cursor: pointer; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); }

/* ----------------------------------------------------------------------------- footer */

.site-footer { border-top: 1px solid var(--line); background: var(--paper); }
.footer-inner { max-width: 1440px; margin: 0 auto; padding: 22px 20px; display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: var(--text-sm); }
.footer-inner a { color: var(--ink-soft); }

/* ----------------------------------------------------------------------------- responsive */

@media (max-width: 1180px) {
  /* .shell.shell-wide (two classes) still wins over this for pages without a sidebar. */
  .shell { grid-template-columns: 15rem minmax(0, 1fr); }
  .toc { display: none; }
}

@media (max-width: 900px) {
  .guide-nav { display: none; }
  .menu-toggle { display: inline-grid; }
  .menu-toggle[hidden] { display: none; }
  .search-trigger { min-width: 0; }
  .search-trigger span, .search-trigger kbd { display: none; }
  .search-trigger { padding: 8px; border-radius: 8px; }
  .lang select { width: 2.6rem; padding-right: 0; color: transparent; }
  .lang select option { color: var(--ink); }
  .brand-name { display: none; }
  .brand-help { border-left: none; padding-left: 0; }
  .shell, .shell.shell-wide { grid-template-columns: minmax(0, 1fr); padding: 0 16px; gap: 0; }
  .sidebar { position: fixed; inset: var(--topbar) 0 0 0; z-index: 25; max-height: none; background: var(--paper); padding: 24px 20px 48px; transform: translateX(-100%); transition: transform 0.2s ease; visibility: hidden; }
  .sidebar.is-open { transform: none; visibility: visible; }
  body.menu-open { overflow: hidden; }
  .topbar-inner { gap: 10px; padding: 0 12px; }
  .hero { padding: 40px 0 36px; }
  .role-list li + li { border-left: none; }
  .prose ol > li { padding-left: 52px; }
  .prose ol > li::before { width: 36px; height: 36px; font-size: 1.25rem; }
  .prose ol > li::after { left: 17px; top: 38px; }
  .pager { flex-direction: column; gap: 10px; }
  .pager a { max-width: 100%; }
  .pager-next { align-self: flex-end; }
  h1 { font-size: 2rem; }
}

@media (max-width: 600px) {
  /* On a phone every pixel of screenshot counts: they take the column's full width. */
  .prose ol > li .shot { margin-left: -52px; width: calc(100% + 52px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
  .topbar, .sidebar, .toc, .vote, .pager, .site-footer, .article-actions { display: none; }
  .shell { display: block; }
  .shot { box-shadow: none; break-inside: avoid; }
}
