:root {
  color-scheme: light;
  --m-canvas: #e5e5e5;
  --m-ink: #202020;
  --m-muted: #666;
  --m-blue: #0066ff;
  --m-nav-active: #0055d4;
  --m-rule: #cdcdcd;
  --m-space: 24px;
  --m-sidebar: 192px;
}
* { box-sizing: border-box; }
html { scroll-padding-top: var(--m-space); }
body { margin: 0; color: var(--m-ink); background: var(--m-canvas); font-family: "Helvetica Neue", "PingFang SC", sans-serif; font-size: 14px; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--m-blue); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -80px; left: 24px; z-index: 10; background: #fff; padding: 16px; }
.skip-link:focus { top: 16px; }
.m-nav { position: fixed; inset: 24px auto 24px 24px; width: var(--m-sidebar); display: flex; flex-direction: column; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--m-rule) transparent; }
.m-back { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; width: fit-content; color: var(--m-muted); font-size: 11px; transition: color 150ms; }
.m-back > span { font-size: 16px; line-height: 1; }
.m-back:hover { color: var(--m-ink); }
.m-brand { margin: 24px 0 28px; }
.m-brand strong { font-size: 16px; line-height: 1.5; font-weight: 500; letter-spacing: .01em; white-space: nowrap; }
.m-chapters { display: grid; border-left: 1px solid var(--m-rule); }
.m-chapters a { position: relative; display: flex; align-items: center; gap: 10px; min-height: 34px; padding: 6px 4px 6px 14px; color: #444; font-size: 12px; font-weight: 300; line-height: 1.5; transition: color 150ms, background 150ms; }
.m-chapters a::before { position: absolute; content: ""; left: -1px; top: calc(50% - 8px); width: 2px; height: 16px; background: transparent; transition: background 150ms; }
.m-chapters a span { flex: 0 0 16px; color: var(--m-muted); font-size: 10px; font-variant-numeric: tabular-nums; }
.m-chapters a:hover { background: #ffffff38; color: var(--m-ink); }
.m-chapters a[aria-current="location"] { color: var(--m-nav-active); }
.m-chapters a[aria-current="location"]::before { background: var(--m-blue); }
.m-chapters a[aria-current="location"] span { color: inherit; }
.m-pages { margin-left: calc(var(--m-sidebar) + 48px); padding: 24px 24px 0 0; }
.m-page { position: relative; margin: 0 auto 8px; max-width: 1920px; aspect-ratio: 16 / 9; background: #f6f6f6; scroll-margin-top: 24px; }
.m-page-link { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.m-page img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.m-zoom { width: calc(100vw - 32px); height: calc(100dvh - 32px); max-width: none; max-height: none; padding: 0; border: 0; background: var(--m-canvas); color: var(--m-ink); }
.m-zoom::backdrop { background: #000b; }
.m-zoom[open] { display: flex; flex-direction: column; }
.m-zoom-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; padding: 8px 16px; background: #fff; }
.m-zoom-bar p { margin: 0; font-size: 13px; }
.m-zoom-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.m-zoom-actions button, .m-zoom-actions a, .m-zoom-actions select { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; max-width: 100%; padding: 8px 12px; background: #fff; color: inherit; border: 1px solid #ddd; border-radius: 3px; font: inherit; font-size: 12px; cursor: pointer; }
.m-zoom-actions select:focus-visible { outline: 3px solid var(--m-blue); outline-offset: 4px; }
.m-zoom-actions select[hidden] { display: none; }
.m-zoom-actions button:hover, .m-zoom-actions a:hover { background: #f0f0f0; }
.m-zoom-viewport { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 16px; }
.m-zoom-image { display: block; width: min(100%, var(--m-image-width, 1920px)); height: auto; margin: 0 auto; }
.m-zoom[data-detail="true"] .m-zoom-image { width: var(--m-image-width, 1920px); max-width: none; }
body:has(.m-zoom[open]) { overflow: hidden; }
@media (max-width: 1000px) {
  :root { --m-space: 16px; }
  html { scroll-padding-top: 126px; }
  .m-nav { position: sticky; z-index: 2; inset: 0 auto auto; width: 100%; padding: 8px 16px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 0 16px; overflow: visible; background: var(--m-canvas); border-bottom: 1px solid #ccc; }
  .m-back { min-height: 44px; font-size: 12px; }
  .m-brand { margin: 0; justify-self: end; text-align: right; }
  .m-brand strong { font-size: 14px; letter-spacing: 0; }
  .m-chapters { grid-column: 1 / -1; display: flex; gap: 4px; overflow-x: auto; padding: 4px 0 0; border-left: 0; scrollbar-width: thin; }
  .m-chapters a { flex: 0 0 auto; min-height: 44px; white-space: nowrap; gap: 8px; padding-inline: 10px; }
  .m-chapters a::before { inset: auto 10px 0; width: auto; height: 2px; }
  .m-pages { margin-left: 0; padding: 16px 16px 0; }
  .m-page { margin-bottom: 8px; scroll-margin-top: 126px; }
  .m-zoom { width: 100vw; height: 100dvh; }
  .m-zoom-bar { padding: 8px; }
  .m-zoom-viewport { padding: 8px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
@page { size: 16in 9in; margin: 0; }
@media print {
  html, body { background: #fff; }
  .m-nav, .m-zoom, .skip-link { display: none !important; }
  .m-pages { margin: 0; padding: 0; }
  .m-page { width: 100%; max-width: none; height: 100vh; margin: 0; break-inside: avoid; break-after: page; }
  .m-page:last-of-type { break-after: auto; }
  .m-page-link, .m-page img { height: 100%; width: 100%; object-fit: contain; }
}
