.export-document { width: min(100% - 48px, 960px); }
.spec-toc { margin: 28px 0; padding: 16px 20px; border: 1px solid var(--line); border-radius: 16px; }
.spec-toc p { margin: 0; font-weight: 600; }
.spec-toc ol { margin: 8px 0 0; padding-left: 24px; }
.spec-toc li { margin: 4px 0; }
.spec-toc a { display: inline-block; padding: 4px 0; }
.export-document h2 { scroll-margin-top: 24px; font-size: 21px; }
.export-document h3 { overflow-wrap: anywhere; }
.export-document hr { margin: 32px 0; border: 0; border-top: 1px solid var(--line); }
.export-document code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; }
.export-document :not(pre) > code { padding: 2px 5px; border-radius: 4px; background: rgba(29, 35, 24, .05); overflow-wrap: anywhere; }
.export-document pre { max-width: 100%; overflow-x: auto; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 255, 255, .7); line-height: 1.8; font-size: 14px; tab-size: 2; }
.spec-table { max-width: 100%; overflow-x: auto; margin: 20px 0; border: 1px solid var(--line); border-radius: 12px; }
.spec-table table { width: 100%; min-width: 580px; border-collapse: collapse; font-size: 14px; line-height: 1.8; }
.spec-table th, .spec-table td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.spec-table th { font-weight: 600; background: rgba(224, 239, 207, .45); }
.spec-table tr:last-child td { border-bottom: 0; }
.spec-table code { white-space: nowrap; }
.spec-table:focus-visible, .export-document pre:focus-visible { outline: 2px solid #357c2c; outline-offset: 3px; }
.spec-footer { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--line); }
@media (max-width: 480px) {
  .export-document h1 { font-size: 25px; }
  .export-document pre { padding: 14px; }
  .spec-toc { padding: 14px 16px; }
}
@media print {
  .site-header, .spec-toc, .spec-footer { display: none; }
  body { background: white; }
  .export-document { width: 100%; margin: 0; padding: 0; border: 0; box-shadow: none; }
  .spec-table { overflow: visible; }
  .spec-table table { min-width: 0; font-size: 10px; }
  .spec-table th, .spec-table td { padding: 6px; overflow-wrap: anywhere; }
  .spec-table code { white-space: normal; }
  .export-document pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 10px; }
}
