:root {
  color-scheme: light dark;
  --page: #f7f1e3;
  --surface: #fffaf0;
  --ink: #0b2e24;
  --muted: #4f6258;
  --line: #cbd0c3;
  --accent: #18533d;
  --on-accent: #fffaf0;
  --notice: #efe5cb;
  --focus: #936025;
  --radius: 12px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --page: #0b241d;
    --surface: #12352a;
    --ink: #f7f1e3;
    --muted: #b8cbbd;
    --line: #466153;
    --accent: #d9b565;
    --on-accent: #0b2e24;
    --notice: #303827;
    --focus: #e4c781;
  }
}
* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; background: var(--page); color: var(--ink); font: 17px/1.7 system-ui, sans-serif; }
a { color: var(--accent); text-underline-offset: .2em; text-decoration-thickness: 1px; overflow-wrap: anywhere; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 5px; border-radius: 3px; }
main:focus { outline: none; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.16; letter-spacing: -.04em; margin-bottom: 18px; }
h2 { font-size: 1.45rem; line-height: 1.3; letter-spacing: -.02em; margin-bottom: 16px; }
h3 { font-size: 1.06rem; line-height: 1.5; margin-bottom: 8px; }
p { margin-bottom: 18px; }
strong { font-weight: 650; }
.site-header, main, .site-footer { max-width: 1100px; margin-inline: auto; padding-inline: max(28px, env(safe-area-inset-left)) max(28px, env(safe-area-inset-right)); }
.site-header { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; flex-shrink: 0; }
.brand span { font: 600 32px/1 Georgia, serif; letter-spacing: -.04em; }
.brand img { border-radius: 9px; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 8px 26px; align-items: center; font-size: .9rem; }
.site-header nav a { min-height: 44px; display: inline-flex; align-items: center; color: var(--muted); text-decoration: none; }
.site-header nav a[aria-current] { color: var(--ink); text-decoration: underline; text-underline-offset: 8px; font-weight: 650; }
main { padding-top: 48px; padding-bottom: 40px; }
.page-heading { max-width: 760px; }
.page-heading p { color: var(--muted); font-size: 1.12rem; line-height: 1.6; max-width: 58ch; margin-bottom: 30px; }
.draft-notice { display: flex; gap: 20px; padding: 16px 20px; background: var(--notice); border-radius: var(--radius); margin-bottom: 40px; font-size: .86rem; line-height: 1.55; }
.draft-notice strong { white-space: nowrap; }
.document-grid { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 56px; align-items: start; }
.contents { position: sticky; top: 24px; font-size: .9rem; }
.contents p { font-weight: 650; margin-bottom: 8px; }
.contents a { display: block; padding: 8px 0; min-height: 44px; text-decoration: none; }
.contents a:hover { text-decoration: underline; }
.document { max-width: 68ch; min-width: 0; }
.document section { margin-bottom: 44px; scroll-margin-top: 24px; }
.document section + section { border-top: 1px solid var(--line); padding-top: 32px; }
.document p, .document li { overflow-wrap: anywhere; }
.document ul, .document ol { margin: 0 0 20px; padding-left: 1.3em; }
.document li { margin-bottom: 12px; padding-left: 5px; }
.facts { margin: 20px 0 0; }
.facts dt { color: var(--muted); font-size: .8rem; margin-top: 16px; }
.facts dd { white-space: pre-line; margin: 3px 0 0; overflow-wrap: anywhere; }
.field-placeholder { font-family: ui-monospace, monospace; font-size: .9rem; }
.contact-block, .action-block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin: 24px 0; }
.contact-block h2, .action-block h2 { margin-bottom: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 20px; border-radius: 8px; background: var(--accent); color: var(--on-accent); font-size: .94rem; font-weight: 650; text-decoration: none; text-align: center; }
.button:hover { filter: brightness(.95); text-decoration: underline; }
.fine-print, .contact-pending { color: var(--muted); font-size: .87rem; margin: 14px 0 0; }
.contact-pending strong { display: block; color: var(--ink); margin-bottom: 5px; }
.help-list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); padding: 0 0 0 4px; }
summary { cursor: pointer; font-weight: 650; padding: 18px 20px 18px 0; min-height: 56px; line-height: 1.5; }
details > p, details > ul { padding: 0 12px 0 20px; }
details > p:last-child { margin-bottom: 24px; }
.site-footer { display: flex; gap: 18px 28px; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 26px; padding-bottom: max(38px, env(safe-area-inset-bottom)); font-size: .81rem; }
.site-footer p { color: var(--muted); margin: 0; }
.site-footer a { min-height: 44px; display: inline-flex; align-items: center; }
.skip-link { position: absolute; left: 20px; top: -120px; z-index: 1; padding: 12px 18px; background: var(--surface); }
.skip-link:focus { top: 12px; }
@media (max-width: 767px) {
  .site-header, main, .site-footer { padding-inline: max(20px, env(safe-area-inset-left)) max(20px, env(safe-area-inset-right)); }
  .site-header { align-items: flex-start; flex-direction: column; padding-top: 20px; padding-bottom: 8px; gap: 12px; }
  .site-header nav { width: 100%; justify-content: space-between; gap: 6px 12px; }
  main { padding-top: 32px; }
  .page-heading p { font-size: 1rem; }
  .draft-notice { flex-direction: column; gap: 4px; margin-bottom: 28px; }
  .document-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .contents { position: static; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
  .contents a { display: inline-flex; margin-right: 18px; align-items: center; }
  .contact-block, .action-block { padding: 22px 18px; }
  .document section { margin-bottom: 32px; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: 5px; }
}
@media print {
  :root { color-scheme: light; --page: #fff; --ink: #111; --muted: #333; --line: #aaa; --accent: #111; --surface: #fff; --notice: #eee; }
  body { font-size: 11pt; }
  .site-header nav, .contents, .site-footer, .skip-link { display: none; }
  .document-grid { display: block; }
  .document { max-width: none; }
  .document section, .contact-block, .action-block { break-inside: avoid; }
  .button { color: var(--ink); background: none; padding-left: 0; }
}
