/* Orbit Wiki V3 — shared public collection and reading surfaces. */
:root {
  color-scheme: light;
  --canvas: #f6f8ff;
  --surface: #fff;
  --surface-soft: #f2f5fc;
  --ink: #26344f;
  --ink-secondary: #66738d;
  --ink-faint: #61708a;
  --accent: #4664ed;
  --accent-dark: #344ccc;
  --accent-soft: #edf1ff;
  --purple: #7a61cf;
  --purple-soft: #f0edff;
  --border: #e1e7f3;
  --border-soft: #edf1f8;
  --green: #258366;
  --green-soft: #eaf7f1;
  --amber: #936317;
  --amber-soft: #fff5df;
  --shadow: 0 5px 22px rgb(43 66 126 / 4.5%);
  --shadow-raised: 0 14px 34px rgb(43 66 126 / 9%);
  --sidebar-width: 216px;
  --muted: var(--ink-secondary);
  --line: var(--border);
  --blue: var(--accent);
  --paper: var(--surface);
  --navy: #253654;
  --cyan: #a9c5ff;
  --good: #197355;
  --warn: var(--amber);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; }
h1, h2, h3, h4 { color: var(--ink); font-family: inherit; }
h1, h2, h3, h4, p { margin-top: 0; }
h1 { max-width: none; }
button, input, textarea, select, summary { font: inherit; }
button, a, input, textarea, select, summary { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
button, a, summary { touch-action: manipulation; }
button:disabled, input:disabled, select:disabled { cursor: not-allowed; opacity: .48; }
a { color: var(--accent); text-decoration: none; text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 3px solid #7288f4; outline-offset: 3px; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline-offset: 2px; }
svg { flex-shrink: 0; vertical-align: middle; }
img, video { max-width: 100%; height: auto; }
button svg { width: 18px; height: 18px; }
::selection { color: var(--ink); background: #dbe4ff; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -90px; left: 16px; z-index: 150; padding: 10px 16px; border-radius: 12px; background: var(--accent); color: #fff; }
.skip-link:focus { top: 12px; color: #fff; }

/* Scoped shell rules also neutralize the original article's global navigation. */
.wiki-rail { position: fixed; inset: 0 auto 0 0; z-index: 60; display: flex; flex-direction: column; width: var(--sidebar-width); height: 100dvh; max-height: none; padding: 29px 15px 20px; overflow-y: auto; background: var(--surface); color: var(--ink); border-right: 1px solid var(--border); scrollbar-width: thin; }
.wiki-rail .wiki-brand { display: flex; align-items: center; gap: 11px; margin: 0; padding: 0 5px 30px; border: 0; background: transparent; color: var(--ink); font-size: 19px; font-weight: 750; letter-spacing: -.65px; line-height: 1.3; }
.wiki-rail .wiki-brand:hover { color: var(--ink); text-decoration: none; background: transparent; }
.wiki-brand > span:last-child { min-width: 0; }
.wiki-brand small, .brand-subtitle { display: block; margin-top: 5px; color: var(--ink-faint); font-size: 10px; font-weight: 450; letter-spacing: .15px; }
.logo-mark { position: relative; display: grid; place-items: center; flex-shrink: 0; width: 38px; height: 40px; padding: 0; border: 0; border-radius: 12px; background: var(--accent); color: #fff; box-shadow: 0 5px 12px #4664ed24; font: 25px/1 Georgia, serif; letter-spacing: -1px; transform: none; }
.logo-mark > span { position: absolute; right: 5px; bottom: 4px; color: #dce5ff; font: 16px/1 sans-serif; }
.logo-mark svg { width: 22px; height: 22px; }
.wiki-rail nav, .main-nav { display: grid; gap: 6px; }
.wiki-rail .rail-all, .wiki-rail .rail-category, .wiki-rail .nav-item, .wiki-rail .folder-row { display: flex; align-items: center; gap: 10px; width: 100%; min-width: 0; min-height: 43px; margin: 0; padding: 10px 12px; border: 0; border-radius: 12px; background: transparent; color: var(--ink-secondary); font-size: 13px; font-weight: 450; line-height: 1.65; text-align: left; transition: color .16s, background .16s; }
.wiki-rail .rail-all:hover, .wiki-rail .rail-category:hover, .wiki-rail .nav-item:hover, .wiki-rail .folder-row:hover { background: var(--surface-soft); color: var(--accent); text-decoration: none; }
.wiki-rail .selected, .wiki-rail .nav-item.active, .wiki-rail [aria-current="page"], .wiki-rail .folder-row.active { background: var(--purple-soft); color: #6250b3; font-weight: 650; }
.wiki-rail nav a > svg, .wiki-rail .nav-item > svg, .wiki-rail .folder-row > svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.wiki-rail .rail-category { min-height: 38px; padding-block: 8px; font-size: 12px; }
.wiki-rail .rail-category.child { padding-left: 27px; }
.wiki-rail .rail-category[data-depth="2"] { padding-left: 36px; }
.wiki-rail .rail-category[data-depth="3"] { padding-left: 45px; }
.wiki-rail .rail-category.child::before { content: none; }
.rail-empty { margin: 10px 12px; color: var(--ink-faint); font-size: 11px; }
.rail-count, .nav-count { margin-left: auto; color: var(--ink-faint); font-size: 11px; font-weight: 550; font-variant-numeric: tabular-nums; }
.wiki-rail .selected .rail-count, .wiki-rail .active .nav-count { color: #7462c3; }
.nav-label { margin: 30px 12px 11px; color: var(--ink-faint); font-size: 10px; font-weight: 600; letter-spacing: 1px; }
.rail-note { margin: 35px 7px 22px; padding: 15px 14px 5px; border: 1px solid #e7eafb; border-radius: 16px; background: #f6f7ff; text-align: center; }
.rail-note > span { display: block; color: var(--ink-faint); font-size: 10px; letter-spacing: .2px; }
.rail-note img { display: block; width: 145px; height: 94px; object-fit: contain; margin: 6px auto 0; }
.rail-bottom, .sidebar-footer { margin-top: auto; padding: 22px 7px 0; }
.rail-bottom p, .sidebar-footer p { margin: 9px 5px 0; color: var(--ink-faint); font-size: 11px; line-height: 1.9; }
.rail-edition, .rail-private { display: flex; align-items: center; gap: 7px; color: var(--ink-faint); font-size: 10px; letter-spacing: .2px; }
.rail-private { margin-top: 15px; }
.rail-private svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.wiki-content { min-width: 0; min-height: 100vh; margin-left: var(--sidebar-width); background: var(--canvas); }
.wiki-topbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; height: auto; min-height: 76px; margin: 0; padding: 0 40px; border-bottom: 1px solid var(--border); background: rgb(255 255 255 / 95%); color: var(--ink); backdrop-filter: blur(14px); }
.breadcrumb { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--ink-secondary); font-size: 12px; white-space: nowrap; }
.breadcrumb a { color: var(--ink-faint); }
.breadcrumb > span:last-child { overflow: hidden; text-overflow: ellipsis; color: var(--ink); font-weight: 550; }
.breadcrumb > span:not(:last-child) { color: #8d9bb5; }
.topbar-actions, .account-nav { display: flex; align-items: center; gap: 12px; min-width: 0; }
.account-nav { margin-left: auto; }
.topbar-note, .signed-in-note { color: var(--ink-faint); font-size: 11px; }
.search-trigger { display: flex; align-items: center; gap: 10px; width: clamp(190px, 20vw, 290px); min-height: 40px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 12px; background: #f7f9fe; color: var(--ink-faint); font-size: 12px; text-align: left; }
.search-trigger:hover { border-color: #c3cefa; color: var(--accent); }
.search-trigger > svg { width: 16px; height: 16px; }
.search-trigger kbd { margin-left: auto; }
kbd { padding: 1px 5px; border: 1px solid #e0e6f2; border-radius: 5px; color: var(--ink-faint); background: #fff; font-family: inherit; font-size: 10px; line-height: 1.5; white-space: nowrap; }
.avatar { display: grid; place-items: center; flex-shrink: 0; width: 34px; height: 34px; padding: 0; border: 1px solid #e2e7f7; border-radius: 12px; background: var(--purple-soft); color: #7763bd; font-size: 12px; font-weight: 750; }
.mobile-menu, .icon-button.mobile-menu, .mobile-brand { display: none; }

/* Shared controls. */
.button, .settings-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 9px 15px; border: 1px solid transparent; border-radius: 11px; font-size: 12px; font-weight: 600; line-height: 1.6; white-space: nowrap; transition: background .16s, border-color .16s, box-shadow .16s; }
.button svg { width: 16px; height: 16px; }
.button.primary { border-color: var(--accent); background: var(--accent); color: #fff; box-shadow: 0 4px 9px #4664ed16; }
.button.primary:hover:not(:disabled) { border-color: var(--accent-dark); background: var(--accent-dark); color: #fff; }
.button.secondary, .settings-link { border-color: var(--border); background: var(--surface); color: var(--ink-secondary); }
.button.secondary:hover:not(:disabled), .settings-link:hover { border-color: #c2cdf8; background: #f9faff; color: var(--accent); }
.button.small { min-height: 32px; padding: 5px 11px; border-radius: 9px; font-size: 11px; }
.button.text { padding-inline: 4px; border: 0; background: transparent; color: var(--accent); }
.icon-button { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: var(--ink-faint); transition: background .16s, color .16s; }
.icon-button svg { width: 17px; height: 17px; }
.icon-button:hover, .icon-button.active, .icon-button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); }
.text-link, .read-link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-size: 12px; font-weight: 550; line-height: 1.8; }

/* Collection. */
.library-main { width: 100%; max-width: 1390px; margin: 0 auto; padding: 30px 40px 52px; }
.orbit-hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr); align-items: center; min-height: 280px; margin-bottom: 31px; padding: 28px 38px; border: 1px solid #e0e6ff; border-radius: 20px; background: linear-gradient(115deg, #edf4ff 0%, #eef0ff 54%, #eeeaff 100%); overflow: hidden; }
.hero-copy { position: relative; z-index: 1; min-width: 0; }
.eyebrow, .kicker, .section-kicker { display: block; margin: 0 0 9px; color: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; }
.hero-copy h1 { margin: 0 0 13px; color: #283760; font-size: 48px; font-weight: 800; line-height: 1.12; letter-spacing: -2.5px; }
.hero-copy h1 span { color: var(--accent); }
.hero-copy > p { margin: 0; color: #5d6c87; font-size: 13px; line-height: 1.85; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.hero-buttons .button { min-height: 36px; padding: 7px 13px; font-size: 11px; }
.hero-buttons .secondary { border-color: #d8dff4; background: #ffffffb8; }
.hero-art { position: relative; display: grid; place-items: center; min-width: 0; height: 242px; }
.hero-art > img, .hero-buddy { width: 350px; max-width: 100%; height: 270px; object-fit: contain; }
.orbit-label { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border: 1px solid #fff; border-radius: 11px; background: #ffffffed; color: #626f95; box-shadow: 0 7px 16px #4c66b00d; font-size: 10px; font-weight: 600; white-space: nowrap; }
.orbit-label svg { width: 14px; height: 14px; color: #8d7bc7; }
.orbit-label-a { top: 25px; left: 0; transform: rotate(-5deg); }
.orbit-label-b { right: 0; bottom: 25px; transform: rotate(5deg); }
.hero-star { position: absolute; right: 19px; top: 14px; color: #a294dc; font-size: 25px; }
.library-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 26px; }
.library-heading h1 { margin: 0 0 9px; font-size: 30px; font-weight: 750; letter-spacing: -.9px; line-height: 1.4; }
.library-heading p { margin: 0; color: var(--ink-secondary); font-size: 13px; line-height: 1.85; }
.library-count { display: flex; align-items: baseline; gap: 8px; color: var(--ink-faint); font-size: 11px; }
.library-count strong { color: var(--accent); font-size: 24px; font-weight: 650; }
.library-grid { display: block; min-height: 0; }
.library-aside { display: none; }
.entries, .collection { min-width: 0; }
.list-heading, .collection-header { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 20px; }
.collection-header > div:first-child { display: flex; align-items: baseline; gap: 15px; min-width: 0; }
.collection-header h2, .list-heading h2 { margin: 0; color: var(--ink); font-size: 23px; font-weight: 750; letter-spacing: -.6px; }
.collection-header > div > span, .list-heading > span { color: var(--ink-faint); font-size: 11px; }
.collection-actions { display: flex; align-items: center; gap: 5px; }
.collection-actions > .icon-button { width: 33px; height: 33px; border-radius: 9px; }
.filter-details { position: relative; margin-left: 6px; }
.filter-details > summary { display: flex; align-items: center; gap: 7px; min-height: 33px; padding: 6px 12px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); color: var(--ink-secondary); font-size: 11px; font-weight: 500; cursor: pointer; list-style: none; }
.filter-details > summary::after { content: none; }
.filter-details > summary::-webkit-details-marker { display: none; }
.filter-details[open] > summary, .filter-details > summary:hover { color: var(--accent); border-color: #c1ccfa; background: #f8faff; }
.filter-details > form { position: absolute; top: calc(100% + 11px); right: 0; z-index: 50; display: grid; gap: 16px; width: 264px; max-width: calc(100vw - 32px); padding: 20px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-raised); }
.filter-details label { display: grid; gap: 6px; color: var(--ink-secondary); font-size: 12px; font-weight: 600; }
.filter-details select { width: 100%; min-width: 0; padding: 9px 10px; border: 1px solid var(--border); border-radius: 10px; background: #f8faff; color: var(--ink); }
.library-controls { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.library-controls .search-panel { margin: 0; }
.library-controls .search-input-wrap { min-height: 36px; }
.folder-tabs, .filters { display: flex; align-items: center; gap: 7px; min-width: 0; max-width: 100%; margin: 0; padding: 2px; overflow-x: auto; border: 0; scrollbar-width: thin; }
.folder-tabs a, .filter { display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex-shrink: 0; min-height: 34px; padding: 7px 13px; border: 1px solid transparent; border-radius: 10px; color: var(--ink-secondary); font-size: 11px; white-space: nowrap; }
.folder-tabs a:hover, .filter:hover { color: var(--accent); background: #eef2ff; }
.folder-tabs a.active, .filter.active { color: #fff; border-color: var(--accent); background: var(--accent); font-weight: 650; box-shadow: 0 3px 8px #4664ed18; }
.filter span { font-size: 10px; }
.library-search, .search-input-wrap { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 7px 11px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface); color: var(--ink-faint); }
.library-search { flex-shrink: 0; width: 230px; }
.library-search input, .search-input-wrap input { min-width: 0; width: 100%; padding: 0; border: 0; background: transparent; color: var(--ink); font-size: 12px; }
.library-search input::placeholder, .search-input-wrap input::placeholder { color: var(--ink-faint); }
.library-search:focus-within, .search-input-wrap:focus-within { border-color: #8ba0fa; box-shadow: 0 0 0 3px #4664ed12; }
.library-search svg, .search-input-wrap svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.search-panel { margin-bottom: 24px; }
.search-input-wrap { min-height: 46px; }
.search-panel > p { margin: 8px 0 0; color: var(--ink-faint); font-size: 11px; }
.clear-search { display: grid; place-items: center; flex-shrink: 0; min-width: 30px; min-height: 30px; padding: 0; border: 0; border-radius: 7px; background: var(--surface-soft); color: var(--ink-secondary); }
.search-reset, #active-filter button { padding: 5px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--accent); font-size: 12px; }
#active-filter:not(:empty), .filter-state { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin: 0 0 20px; color: var(--ink-faint); font-size: 12px; }
.article-results, .article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
.article-entry { display: flex; flex-direction: column; min-width: 0; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s, border-color .2s; }
.article-entry:hover { transform: translateY(-3px); border-color: #c6d1fc; box-shadow: var(--shadow-raised); }
.entry-index { display: none; }
.entry-cover, .cover-link { display: block; width: 100%; flex-shrink: 0; color: inherit; }
.card-cover { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 9; min-height: 145px; overflow: hidden; background: #eef2ff; }
.card-cover > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.card-cover > svg { display: block; width: 230px; max-width: 82%; height: auto; }
.cover-architecture, .cover-engineering { background: #eaf0ff; }
.cover-image { background: #f0eaff; }
.cover-knowledge { background: #eaf5f4; }
.card-cover > span, .cover-label { position: absolute; bottom: 12px; left: 16px; right: 16px; color: #67789f; font-size: 8px; font-weight: 600; line-height: 1.5; letter-spacing: 1.2px; }
.category-cover > span { top: 12px; bottom: auto; left: auto; right: 13px; padding: 3px 7px; border-radius: 6px; background: #ffffffc9; color: #667795; letter-spacing: .3px; }
.imported-cover > span { right: auto; padding: 4px 8px; border-radius: 6px; background: #ffffffed; color: #5d6d8e; letter-spacing: .3px; }
.entry-main, .card-body { display: flex; flex: 1; flex-direction: column; min-width: 0; padding: 19px 20px 17px; }
.entry-eyebrow, .card-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 9px; color: var(--ink-faint); font-size: 11px; line-height: 1.65; }
.entry-eyebrow > a { color: var(--ink-faint); }
.entry-eyebrow svg { width: 13px; height: 13px; }
.content-type { margin-left: auto; padding: 2px 6px; border-radius: 5px; background: var(--surface-soft); color: var(--ink-faint); font-size: 9px; }
.status-chip { display: inline-flex; max-width: 100%; padding: 2px 6px; border: 1px solid #eadfca; border-radius: 5px; background: var(--amber-soft); color: var(--amber); font-size: 10px; font-weight: 500; line-height: 1.65; white-space: normal; }
.entry-main h2, .card-title { margin: 0 0 9px; font-size: 17px; font-weight: 700; letter-spacing: -.4px; line-height: 1.55; }
.entry-main h2 a { color: var(--ink); }
.entry-main h2 a:hover { color: var(--accent); }
.entry-description, .card-summary { display: -webkit-box; margin: 0 0 13px; color: var(--ink-secondary); font-size: 12px; line-height: 1.85; overflow: hidden; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.tag-row, .tag-list { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; min-width: 0; }
.tag, .tag-chip { display: inline-flex; align-items: center; max-width: 100%; padding: 3px 7px; border: 0; border-radius: 6px; background: #f2f5fc; color: #60718d; font-size: 10px; line-height: 1.6; }
a.tag:hover, a.tag-chip:hover, .tag-chip.active { color: var(--accent); background: var(--accent-soft); }
.entry-main .tag-row, .card-body .tag-list { margin-bottom: 16px; }
.entry-footer, .card-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 13px; border-top: 1px solid var(--border-soft); color: var(--ink-faint); font-size: 10px; }
.article-entry > .entry-footer { margin: 0 20px 17px; }
.entry-footer .read-link { justify-content: center; min-width: 28px; min-height: 28px; margin-left: auto; padding: 3px 6px; border-radius: 8px; background: var(--surface-soft); color: var(--accent); font-size: 11px; }
.article-results.knowledge-list, body[data-collection-view="list"] .article-results { grid-template-columns: minmax(0, 1fr); gap: 12px; }
.knowledge-list .article-entry, body[data-collection-view="list"] .article-results .article-entry { flex-direction: row; padding: 22px; border-radius: 16px; }
.knowledge-list .entry-cover, body[data-collection-view="list"] .article-results .entry-cover { display: none; }
.knowledge-list .entry-main, body[data-collection-view="list"] .article-results .entry-main { padding: 0; }
.knowledge-list .entry-description, body[data-collection-view="list"] .article-results .entry-description { -webkit-line-clamp: 2; }
.knowledge-list .entry-main .tag-row, body[data-collection-view="list"] .article-results .entry-main .tag-row { margin-bottom: 13px; }
.knowledge-list .article-entry > .entry-footer, body[data-collection-view="list"] .article-results .article-entry > .entry-footer { align-self: flex-end; flex-shrink: 0; margin: 0 0 0 20px; }
.search-snippet, .search-hit p { margin: 12px 0 0; color: var(--ink-secondary); font-size: 12px; line-height: 1.85; }
.search-hit { display: block; border-left: 2px solid #d1dff7; padding-left: 12px; margin-top: 13px; }
.search-hit a { font-size: 11px; }
mark { padding: 0 1px; border-radius: 3px; background: #ffedbc; color: inherit; }
.search-empty { grid-column: 1 / -1; padding: 32px; border: 1px dashed #cdd7f4; border-radius: 16px; background: var(--surface); }
.search-empty h3 { margin-bottom: 8px; font-size: 18px; }
.search-empty p { color: var(--ink-secondary); font-size: 13px; }
.search-loading { grid-column: 1 / -1; color: var(--ink-faint); font-size: 13px; }
.library-end { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 30px; color: var(--ink-faint); }
.library-end p { margin: 0; font-size: 11px; }
.library-end > span { width: 28px; height: 1px; background: var(--border); }
.wiki-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--ink-faint); font-size: 11px; }
.wiki-footer > span:first-child { color: var(--ink-secondary); font: inherit; }

/* Wide reading body and a quiet, compact outline. */
.reading-layout { display: grid; grid-template-columns: minmax(0, 1fr) 188px; align-items: start; gap: 30px; max-width: 1460px; margin: 0 auto; padding: 30px 40px 46px; }
.reading-main { min-width: 0; padding: 31px 34px; border: 1px solid var(--border); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); }
.article-breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 25px; color: var(--ink-faint); font-size: 11px; }
.article-breadcrumb a { color: var(--ink-faint); }
.article-breadcrumb > span { color: #8d9bb5; }
.article-header { margin-bottom: 28px; padding-bottom: 25px; border-bottom: 1px solid var(--border); }
.article-header .entry-eyebrow { margin-bottom: 15px; font-size: 11px; }
.article-header .section-kicker { margin: 0; font-size: 10px; }
.article-header h1, .article-title { max-width: none; margin: 0; font-size: 34px; font-weight: 750; line-height: 1.45; letter-spacing: -1px; text-wrap: balance; }
.article-deck { margin: 14px 0 18px; color: var(--ink-secondary); font-size: 15px; line-height: 1.9; }
.article-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 9px 15px; margin-bottom: 17px; color: var(--ink-faint); font-size: 11px; }
.article-meta a { color: var(--ink-faint); }
.article-header .tag-row { margin-top: 17px; }
.plan-notice { margin-bottom: 26px; padding: 15px 18px; border-left: 3px solid #c49d58; border-radius: 0 10px 10px 0; background: #fff8e9; font-size: 14px; }
.plan-notice > span { display: block; margin-bottom: 5px; color: var(--amber); font-size: 12px; font-weight: 650; }
.plan-notice p { margin: 0; color: #7a6646; font-size: 13px; line-height: 1.85; }
.article-toc { position: sticky; top: 101px; align-self: start; max-height: calc(100dvh - 125px); padding: 12px 0 6px; overflow-y: auto; scrollbar-width: thin; }
.toc-heading { display: flex; justify-content: space-between; gap: 10px; margin: 0 8px 12px; color: var(--ink-secondary); font-size: 11px; font-weight: 650; }
.toc-heading span { color: var(--ink-faint); font-size: 10px; }
.article-toc nav { display: grid; gap: 3px; }
.article-toc nav a { display: flex; align-items: baseline; gap: 9px; padding: 7px 9px; border: 0; border-left: 2px solid transparent; border-radius: 0 8px 8px 0; color: var(--ink-faint); font-size: 11px; font-weight: 450; line-height: 1.75; }
.article-toc nav a span { flex-shrink: 0; color: #7b88a4; font-size: 9px; font-variant-numeric: tabular-nums; }
.article-toc nav a:hover { color: var(--accent); background: #f0f4ff; }
.article-toc nav a.active { color: var(--accent); border-left-color: var(--accent); background: #edf1ff; font-weight: 600; }
.toc-note { margin: 20px 9px 14px; padding-top: 15px; border-top: 1px solid var(--border); color: var(--ink-faint); font-size: 10px; line-height: 1.9; }
.back-top { display: inline-flex; margin-left: 9px; color: var(--ink-faint); font-size: 11px; }
.mobile-contents { display: none; margin: 24px 0; border: 1px solid var(--border); border-radius: 12px; background: #f9faff; }
.mobile-contents > summary { display: flex; justify-content: space-between; gap: 12px; padding: 13px 38px 13px 16px; color: var(--ink-secondary); font-size: 12px; font-weight: 550; }
.mobile-contents > summary::after { right: 15px; }
.mobile-contents .current-section { color: var(--ink-faint); font-size: 10px; }
.mobile-contents nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; padding: 0 16px 16px; }
.mobile-contents nav a { display: flex; gap: 9px; color: var(--ink-faint); font-size: 11px; }
.mobile-contents nav a span { flex-shrink: 0; font-size: 9px; }
.mobile-contents nav a.active { color: var(--accent); font-weight: 600; }
.reading-progress { position: fixed; top: 0; left: var(--sidebar-width); right: 0; height: 3px; z-index: 80; background: transparent; }
.reading-progress > span { display: block; width: 0; height: 100%; background: var(--accent); }

/* Safe Markdown, Mermaid and legacy article components share readable surfaces. */
.article-body { min-width: 0; color: #4c5870; font-size: 16px; line-height: 1.95; overflow-wrap: anywhere; }
.article-body p { margin: 0 0 22px; }
.article-body h2 { margin: 32px 0 16px; color: var(--ink); font-size: 23px; font-weight: 700; letter-spacing: -.5px; line-height: 1.5; scroll-margin-top: 100px; }
.article-body h3 { margin: 26px 0 12px; color: var(--ink); font-size: 18px; font-weight: 650; line-height: 1.65; }
.article-body h4 { margin: 22px 0 10px; color: var(--ink); font-size: 16px; }
.article-body ul, .article-body ol { margin: 0 0 24px; padding-left: 24px; }
.article-body li { margin: 7px 0; padding-left: 2px; }
.article-body strong { color: var(--ink); font-weight: 650; }
.article-body a { color: var(--accent); text-decoration: underline; text-decoration-color: #c0cbf7; text-underline-offset: 3px; }
.article-body a:hover { text-decoration-color: var(--accent); }
.article-body code, .endpoint-value code { padding: 2px 5px; border-radius: 5px; background: #f0f3fc; color: #596ca9; font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; font-size: .86em; }
.article-body hr { height: 1px; margin: 33px 0; border: 0; background: var(--border); }
.article-body .section { margin-top: 44px; scroll-margin-top: 100px; }
.article-body .section-head { display: flex; align-items: start; gap: 12px; margin-bottom: 20px; }
.article-body .section-head h2 { margin: 0; }
.article-body .section-number { margin-top: 4px; padding: 3px 6px; border: 1px solid #d7e1f8; border-radius: 5px; color: #647fbd; font-size: 11px; }
.article-body .label { display: block; margin-bottom: 7px; color: #6176ae; font-size: 11px; font-weight: 650; }
.article-body blockquote, .article-body .note { margin: 24px 0; padding: 17px 20px; border-left: 3px solid #91a4ed; border-radius: 0 12px 12px 0; background: #f2f5ff; color: #5c6c91; font-size: 15px; line-height: 1.9; }
.article-body blockquote > :last-child, .article-body .note p:last-child { margin-bottom: 0; }
.article-body .note.warn { border-left-color: #c49d58; background: #fff8e9; color: #7a6646; }
.article-body .grid-2, .article-body .decision { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.article-body .grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.article-body .card, .article-body .decision { min-width: 0; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); overflow: hidden; }
.article-body .card { padding: 21px; }
.article-body .card h3 { margin: 0 0 9px; font-size: 16px; }
.article-body .card p, .article-body .decision p { margin-bottom: 0; color: var(--ink-secondary); font-size: 14px; line-height: 1.85; }
.article-body .card .mini { display: block; margin-bottom: 12px; color: var(--accent); font-size: 11px; }
.article-body .decision { gap: 0; }
.article-body .decision > div { padding: 21px; }
.article-body .decision > div + div { border-left: 1px solid var(--border); }
.article-body .decision h3 { margin: 0 0 8px; font-size: 16px; }
.article-body .decision .recommended { background: #f0f4ff; }
.article-body .arch { margin: 25px 0; padding: 24px; border: 1px solid #dbe3f8; border-radius: 14px; background: #f3f6ff; color: #465b80; overflow: hidden; }
.article-body .arch-head { display: flex; justify-content: space-between; gap: 18px; padding-bottom: 20px; border-bottom: 1px solid #d9e2f8; color: #667da7; font-size: 11px; }
.article-body .arch-head strong { color: var(--accent); }
.article-body .arch-flow { display: grid; grid-template-columns: minmax(0, 1fr) 38px minmax(0, 1.05fr) 38px minmax(0, 1fr); align-items: center; margin: 25px 0; }
.article-body .node { min-height: 150px; padding: 16px 12px; border: 1px solid #c7d6f4; border-radius: 10px; background: #fff; color: #455a80; }
.article-body .node.gateway { border-color: #aebdff; background: #eaf0ff; }
.article-body .node b { display: block; margin: 5px 0 10px; color: #334d7f; font-size: 17px; }
.article-body .node span { color: #6175b5; font-size: 10px; }
.article-body .node p { margin: 0; color: #5d7195; font-size: 12px; line-height: 1.75; }
.article-body .connector { color: #879bda; font-size: 24px; text-align: center; line-height: 1.5; }
.article-body .connector small { display: block; color: #61769b; font-size: 10px; }
.article-body .arch-bottom { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding-top: 20px; border-top: 1px solid #d9e2f8; font-size: 12px; }
.article-body .arch-bottom p { margin: 0; color: #5d7195; }
.article-body .arch-bottom strong { color: #334d7f; }
.article-body .table-wrap { max-width: 100%; margin: 25px 0 28px; overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); scrollbar-width: thin; }
.article-body table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 13px; line-height: 1.85; }
.article-body th { padding: 12px 15px; background: #f2f5fc; color: #52658c; font-size: 12px; font-weight: 650; text-align: left; }
.article-body td { padding: 13px 15px; border-bottom: 1px solid var(--border-soft); color: var(--ink-secondary); vertical-align: top; }
.article-body td:first-child { color: var(--ink); }
.article-body tr:last-child td { border-bottom: 0; }
.article-body pre, .settings-page pre { max-width: 100%; margin: 0; padding: 20px; overflow-x: auto; background: #f5f7fd; color: #4d6089; font: 13px/1.85 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; white-space: pre; overflow-wrap: normal; tab-size: 2; overscroll-behavior-x: contain; }
.article-body pre code, .settings-page pre code { padding: 0; border: 0; background: transparent; color: inherit; font: inherit; overflow-wrap: normal; }
.article-body .codebox, .settings-page .codebox { margin: 20px 0; border: 1px solid #dfe5f4; border-radius: 12px; overflow: hidden; background: #f5f7fd; }
.article-body .codebar, .settings-page .codebar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 15px; border-bottom: 1px solid #e1e7f5; background: #eef2fb; color: #5e719a; font-size: 11px; }
.copy { min-height: 32px; padding: 4px 10px; border: 1px solid #c8d4ee; border-radius: 7px; background: transparent; color: #536da7; font-size: 11px; }
.copy:hover { color: var(--accent); background: #e4ebff; }
.article-body pre:focus-visible, .settings-page pre:focus-visible, .article-body .table-wrap:focus-visible { outline-offset: -3px; }
summary { cursor: pointer; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 19px; color: var(--accent); font-size: 22px; font-weight: 400; }
details[open] > summary::after { content: "−"; }
.article-body .tool { margin: 14px 0; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); overflow: hidden; }
.article-body .tool summary { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 16px 42px 16px 18px; color: var(--ink); font-size: 14px; font-weight: 600; }
.article-body .tool summary .toolname { color: var(--accent); font-size: 13px; }
.article-body .tool summary .verb { flex-shrink: 0; padding: 3px 7px; border-radius: 5px; background: #edf2fd; color: #61769b; font-size: 10px; }
.article-body .detail-body { padding: 17px 18px 20px; border-top: 1px solid var(--border); }
.article-body .detail-body p { color: var(--ink-secondary); font-size: 15px; }
.article-body .sequence { counter-reset: step; display: grid; gap: 0; margin: 22px 0; padding: 0; list-style: none; }
.article-body .sequence li { position: relative; counter-increment: step; min-height: 60px; margin: 0; padding: 0 0 22px 48px; }
.article-body .sequence li::before { content: counter(step, decimal-leading-zero); position: absolute; top: 1px; left: 0; z-index: 1; display: grid; place-items: center; width: 31px; height: 31px; border-radius: 8px; background: #eaf0ff; color: var(--accent); font-size: 12px; }
.article-body .sequence li::after { content: ""; position: absolute; top: 32px; bottom: 0; left: 15px; border-left: 1px solid #d7e1f8; }
.article-body .sequence li:last-child::after { display: none; }
.article-body .sequence p { margin: 2px 0; color: var(--ink-secondary); font-size: 15px; }
.article-body .timeline { display: grid; gap: 16px; }
.article-body .milestone { display: grid; grid-template-columns: 55px minmax(0, 1fr); border: 1px solid var(--border); border-radius: 12px; background: var(--surface); overflow: hidden; }
.article-body .mile-index { display: grid; place-items: center; background: #edf2fd; color: var(--accent); font-size: 17px; }
.article-body .mile-content { padding: 20px; }
.article-body .mile-content h3 { margin: 0 0 8px; font-size: 16px; }
.article-body .mile-content p { margin: 5px 0; color: var(--ink-secondary); font-size: 14px; }
.article-body .accept { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0; list-style: none; }
.article-body .accept li { position: relative; margin: 0; padding: 17px 18px 17px 43px; border: 1px solid var(--border); border-radius: 10px; background: #fbfcff; font-size: 14px; }
.article-body .accept li::before { content: "□"; position: absolute; top: 12px; left: 17px; color: var(--accent); font-size: 18px; }
.article-body .accept b { display: block; margin-bottom: 2px; }
.article-body .reference-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.article-body .reference-list li { display: flex; align-items: start; gap: 18px; margin: 0; padding: 16px 18px; border: 1px solid var(--border); border-radius: 10px; background: #fbfcff; }
.article-body .ref-id { flex-shrink: 0; margin-top: 4px; color: var(--ink-faint); font-size: 12px; }
.article-body .reference-list a { font-size: 14px; font-weight: 600; }
.article-body .reference-list p { margin: 4px 0 0; color: var(--ink-secondary); font-size: 13px; }
.article-body .state { padding: 4px 7px; border-radius: 5px; background: #edf2fd; color: #526b9b; font-size: 11px; white-space: nowrap; }
.article-body .state.good { background: var(--green-soft); color: var(--green); }
.article-body .state.warn { background: var(--amber-soft); color: var(--amber); }
.article-body .state.bad { background: #fff0f1; color: #a34857; }
.article-body .state-flow { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 20px 0; padding: 20px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.article-body .state-flow i { color: var(--ink-faint); font-style: normal; }
.article-body .subtle { color: var(--ink-secondary); font-size: 14px; }
.article-provenance { margin-top: 35px; padding-top: 22px; border-top: 1px solid var(--border); }
.article-provenance > span { color: var(--ink-secondary); font-size: 12px; }
.article-provenance p { margin: 9px 0 0; color: var(--ink-faint); font-size: 12px; line-height: 1.9; }
.wiki-image { margin: 27px 0; }
.wiki-image img { display: block; max-width: 100%; height: auto; border: 1px solid var(--border); border-radius: 12px; }
.wiki-image figcaption { margin-top: 9px; color: var(--ink-faint); font-size: 11px; line-height: 1.8; }
.wiki-flow { max-width: 100%; margin: 25px 0; padding: 18px; overflow: auto; border: 1px solid var(--border); border-radius: 12px; background: #fbfcff; }
.wiki-flow svg { display: block; max-width: 100%; height: auto; margin: auto; }
.flow-source { color: var(--ink-faint); font-size: 12px; }
.flow-source summary { display: block; padding: 10px 35px 10px 0; font-size: 12px; font-weight: 500; }
.wiki-link { border-bottom: 1px dashed #8fa6e0; }
.article-body .task-list { padding-left: 0; list-style: none; }
.article-body .task-list input { width: 16px; height: 16px; margin-right: 8px; accent-color: var(--accent); }

@media (max-width: 1199px) {
  .article-results, .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wiki-topbar { gap: 15px; padding-inline: 30px; }
  .library-main { padding-inline: 30px; }
  .orbit-hero { padding-inline: 29px; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
  .hero-copy h1 { font-size: 42px; letter-spacing: -2px; }
  .hero-art > img, .hero-buddy { width: 290px; }
  .orbit-label { font-size: 9px; padding: 7px 9px; }
  .reading-layout { padding-inline: 30px; grid-template-columns: minmax(0, 1fr) 165px; gap: 22px; }
  .reading-main { padding: 28px; }
  .article-body .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .article-body .arch-flow { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .article-body .node { min-height: 0; padding: 17px; }
  .article-body .connector { display: flex; align-items: center; justify-content: center; gap: 15px; }
  .article-body .connector .arrow { display: inline-block; transform: rotate(90deg); }
}
@media (max-width: 1099px) {
  .reading-layout { grid-template-columns: minmax(0, 1fr); max-width: 1000px; }
  .article-toc { display: none; }
  .mobile-contents { display: block; }
  .library-controls { flex-wrap: wrap; }
  .library-search { width: 100%; max-width: 320px; }
  .hero-copy h1 { font-size: 38px; letter-spacing: -1.8px; }
  .hero-art > img, .hero-buddy { width: 250px; height: 245px; }
  .breadcrumb > a, .breadcrumb > span:not(:last-child) { display: none; }
}
@media (max-width: 899px) {
  .wiki-rail { z-index: 95; width: var(--sidebar-width); max-width: calc(100vw - 48px); box-shadow: 16px 0 45px #273d761a; transform: translateX(-100%); transition: transform .2s ease; }
  .wiki-rail.is-open { transform: translateX(0); }
  body.nav-open { overflow: hidden; }
  body.nav-open::before { content: ""; position: fixed; inset: 0; z-index: 90; background: #26375c3d; backdrop-filter: blur(3px); }
  .wiki-content { margin-left: 0; }
  .mobile-menu, .icon-button.mobile-menu { display: inline-flex; }
  .wiki-topbar { min-height: 68px; padding-inline: 23px; }
  .breadcrumb { flex-shrink: 1; gap: 7px; }
  .library-main { padding: 24px 23px 40px; }
  .orbit-hero { min-height: 280px; padding: 28px; }
  .hero-copy h1 { font-size: 43px; }
  .hero-art > img, .hero-buddy { width: 300px; }
  .reading-layout { padding: 24px 23px 40px; }
  .reading-progress { left: 0; }
}
@media (max-width: 699px) {
  .article-results, .article-grid { grid-template-columns: minmax(0, 1fr); gap: 19px; }
  .wiki-topbar { min-height: 64px; padding-inline: 16px; gap: 10px; }
  .topbar-actions, .account-nav { gap: 7px; }
  .topbar-note, .signed-in-note { display: none; }
  .settings-link { min-height: 36px; padding: 7px 10px; font-size: 11px; }
  .wiki-topbar .account-nav .settings-link:first-child:not(:only-child) { display: none; }
  .wiki-topbar .import-content { min-height: 36px; padding: 7px 10px; font-size: 11px; }
  .search-trigger { width: 34px; min-height: 34px; padding: 8px; border-color: transparent; background: transparent; }
  .search-trigger > span, .search-trigger kbd, .avatar { display: none; }
  .breadcrumb { font-size: 11px; }
  .library-main { padding: 21px 16px 34px; }
  .orbit-hero { grid-template-columns: minmax(0, 1fr) 145px; min-height: 270px; margin-bottom: 27px; padding: 25px 22px; border-radius: 18px; }
  .hero-copy h1 { font-size: 33px; line-height: 1.18; letter-spacing: -1.5px; }
  .hero-copy > p { font-size: 12px; line-height: 1.9; }
  .hero-copy .eyebrow, .hero-copy .section-kicker { font-size: 8px; letter-spacing: .6px; }
  .hero-buttons { gap: 7px; margin-top: 15px; }
  .hero-buttons .button { min-height: 36px; padding: 6px 9px; font-size: 11px; }
  .hero-art { height: 214px; }
  .hero-art > img, .hero-buddy { width: 195px; max-width: 130%; height: 215px; }
  .orbit-label { gap: 4px; font-size: 8px; padding: 6px 8px; border-radius: 8px; }
  .orbit-label-a { top: 9px; left: -8px; }
  .orbit-label-b { right: -7px; bottom: 12px; }
  .hero-star { top: 30px; right: -5px; font-size: 19px; }
  .library-heading { align-items: flex-start; gap: 15px; }
  .library-heading h1 { font-size: 27px; }
  .library-count { display: none; }
  .collection-header { gap: 9px; margin-bottom: 17px; }
  .collection-header > div:first-child { display: block; }
  .collection-header h2, .list-heading h2 { margin-bottom: 3px; font-size: 21px; }
  .collection-header > div > span, .list-heading > span { font-size: 10px; }
  .collection-actions { gap: 2px; }
  .collection-actions > .icon-button { width: 32px; height: 34px; }
  .library-controls { display: block; }
  .folder-tabs { margin-bottom: 15px; }
  .folder-tabs a, .filter { min-height: 38px; font-size: 12px; }
  .library-search, .library-controls .search-input-wrap { max-width: none; min-height: 42px; }
  .library-search input, .search-input-wrap input { font-size: 16px; }
  .entry-main h2 { font-size: 18px; }
  .entry-description { font-size: 13px; }
  .tag { font-size: 11px; }
  .entry-footer { font-size: 11px; }
  .knowledge-list .article-entry, body[data-collection-view="list"] .article-results .article-entry { display: block; padding: 20px; }
  .knowledge-list .article-entry > .entry-footer, body[data-collection-view="list"] .article-results .article-entry > .entry-footer { margin: 15px 0 0; }
  .reading-layout { padding: 21px 16px 34px; }
  .reading-main { padding: 24px 20px; border-radius: 16px; }
  .article-header h1 { font-size: 29px; letter-spacing: -.7px; }
  .article-deck { font-size: 15px; }
  .article-body { font-size: 16px; }
  .article-body h2 { font-size: 22px; }
  .article-body .grid-2, .article-body .decision, .article-body .arch-bottom, .article-body .accept { grid-template-columns: minmax(0, 1fr); }
  .article-body .decision > div + div { border-left: 0; border-top: 1px solid var(--border); }
  .article-body .arch { padding: 20px; }
  .article-body .card p, .article-body .decision p, .article-body .node p, .article-body .mile-content p { font-size: 14px; }
  .article-body .tool summary { flex-wrap: wrap; }
  .article-body .copy { min-height: 40px; min-width: 52px; }
  .article-body pre { padding: 17px; font-size: 12px; }
  .mobile-contents nav { grid-template-columns: minmax(0, 1fr); }
  .wiki-footer { flex-wrap: wrap; gap: 8px; }
}
@media (max-width: 449px) {
  .orbit-hero { grid-template-columns: minmax(0, 1fr) 105px; padding: 22px 18px; }
  .hero-copy h1 { font-size: 29px; letter-spacing: -1.3px; text-wrap: balance; }
  .hero-copy > p { font-size: 11px; }
  .hero-copy > p br { display: none; }
  .hero-art { height: 195px; }
  .hero-art > img, .hero-buddy { width: 155px; height: 185px; }
  .orbit-label-a { top: 0; left: -12px; }
  .orbit-label-b { right: -10px; bottom: 3px; }
  .hero-buttons { max-width: 195px; }
  .hero-buttons .button { white-space: normal; }
  .article-header h1 { font-size: 27px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .article-entry:hover { transform: none; }
}
@media print {
  .wiki-rail, .wiki-topbar, .article-toc, .mobile-contents, .reading-progress, .copy, .skip-link { display: none !important; }
  .wiki-content { margin-left: 0; }
  .reading-layout { display: block; max-width: none; margin: 0; padding: 0; }
  .reading-main { max-width: none; margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; }
  body { background: #fff; color: #202a41; }
  .article-body { font-size: 11pt; }
  .article-header h1 { font-size: 21pt; }
  .article-header, .article-body .note, .article-body .table-wrap, .article-body .codebox, figure { break-inside: avoid; }
  .article-body pre { white-space: pre-wrap; overflow-wrap: anywhere; }
}
