/* Page chrome (light/dark) + the slide subset's defaults. Slides keep their own inline colors in both themes,
   because they follow the print-oriented Hakoishi Design System (white paper). */
:root { --bg: #f3f5f7; --fg: #20252b; --muted: #596675; --rule: #d5dce3; --link: #273d56; --bar: #ffffff; }
@media (prefers-color-scheme: dark) {
  :root { --bg: #15191e; --fg: #e6e9ee; --muted: #9aa5b3; --rule: #2c333c; --link: #a9c1dc; --bar: #1d2228; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: "Source Sans 3", Arial, sans-serif; }
a { color: var(--link); }

.bar { position: sticky; top: 0; z-index: 10; display: flex; gap: 16px; align-items: center; padding: 10px 16px;
  background: var(--bar); border-bottom: 1px solid var(--rule); }
.bar h1 { flex: 1; margin: 0; font: 600 18px/1.3 "Libertinus Serif", Georgia, serif; }
.bar nav { display: flex; gap: 16px; }
.deck { display: flex; flex-direction: column; gap: 24px; padding: 24px 16px; max-width: 1280px; margin: 0 auto; }
.frame { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .12); --s: 0.5; }
.notice { max-width: 1280px; margin: 0 auto; padding: 8px 16px 32px; color: var(--muted); font-size: 14px; line-height: 1.5; }

.toc { max-width: 880px; margin: 0 auto; padding: 32px 16px 8px; font-size: 18px; line-height: 1.5; }
.toc h1 { font: 600 32px/1.25 "Libertinus Serif", Georgia, serif; }
.toc ol { list-style: none; padding: 0; }
.toc li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.toc li span { display: inline-block; min-width: 92px; color: var(--muted); }
.toc small { color: var(--muted); white-space: nowrap; }

/* Slide subset: a fixed 1920x1080 canvas scaled to the frame; every element defaults as the Slides runtime does. */
.frame > section { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; overflow: hidden;
  display: flex; flex-direction: column; transform: scale(var(--s)); transform-origin: 0 0; font-size: 32px; }
.frame section * { margin: 0; }
.frame section div { display: flex; flex-direction: column; min-width: 0; }
.frame section h1 { font-size: 96px; font-weight: 600; line-height: 1.1; }
.frame section h2 { font-size: 64px; font-weight: 600; line-height: 1.15; }
.frame section h3 { font-size: 44px; font-weight: 600; line-height: 1.2; }
.frame section p { line-height: 1.4; overflow-wrap: break-word; }
.frame section ul, .frame section ol { padding-left: 1.3em; }
.frame section hr { border: none; }
.frame section table { border-collapse: collapse; }
.frame section th, .frame section td { border: 1px solid #d5dce3; padding: .35em .6em; text-align: left; vertical-align: top; }
.frame section th { font-weight: 600; }
.frame section x-connector { display: none; }
.frame section svg.connector { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: visible; pointer-events: none; }

@media print {
  @page { size: 1920px 1080px; margin: 0; }
  body { background: #fff; }
  .bar, .notice { display: none; }
  .deck { display: block; padding: 0; max-width: none; }
  .frame { width: 1920px; height: 1080px; aspect-ratio: auto; box-shadow: none; break-after: page; --s: 1 !important; }
}
