:root {
  color-scheme: light;
  color: #172b38;
  background: #edf4f4;
  font: 17px/1.5 system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
main { width: min(100% - 24px, 930px); margin: 20px auto; }
a, button { color: #07594f; }
button { font: inherit; font-weight: 650; background: white; border: 1px solid #8db5af; border-radius: 8px; padding: 6px 12px; cursor: pointer; }
:focus-visible { outline: 3px solid #13756d; outline-offset: 3px; }
header, .sheet, .contents { background: white; border: 1px solid #c8d8d9; border-radius: 14px; padding: 14px 18px; margin: 12px 0; }
header { border-top: 4px solid #13756d; }
h1 { font-size: clamp(24px, 4vw, 38px); line-height: 1.2; margin: 0; }
h2 { font-size: 17px; margin: 0; }
p { margin: 6px 0 12px; }
.contents { padding-inline-start: 42px; }
.contents li { padding: 5px 0; }
.muted { color: #45606a; font-size: .9em; }
.page-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.page-links a { display: inline-block; background: #edf4f4; border-radius: 6px; padding: 2px 7px; font-variant-numeric: tabular-nums; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.filters a { border-radius: 7px; padding: 4px 9px; background: #edf4f4; }
.filters [aria-current="page"] { background: #07594f; color: white; }
.category { margin-top: 22px; }
#print-status:empty { display: none; }
.sheet { scroll-margin-top: 8px; }
.sheet-header { display: flex; justify-content: space-between; align-items: center; gap: 5px 12px; flex-wrap: wrap; padding-bottom: 8px; }
.page-image { display: block; }
.page-image img { display: block; max-width: 100%; height: auto; }
details { padding-top: 10px; }
summary { color: #07594f; cursor: pointer; }
textarea { display: block; width: 100%; padding: 6px 8px; margin-top: 4px; font: inherit; border: 1px solid #8db5af; border-radius: 6px; resize: vertical; }
@page { size: A4; margin: 5mm; }
@media print {
  :root { background: white; }
  main { width: auto; margin: 0; }
  .screen-only, .sheet[hidden], .print-single .sheet:not(.print-target) { display: none; }
  .sheet { margin: 0; border: 0; padding: 0; height: 286mm; break-after: page; break-inside: avoid; }
  .sheet:last-child, .print-single .print-target { break-after: auto; }
  .page-image, .page-image img { width: 100%; height: 100%; }
  .page-image img { object-fit: contain; }
}
