:root {
  --bg: #fbfaf7; --fg: #1d1d1b; --muted: #5f5e59; --line: #dcd9d0;
  --accent: #1f5f8b; --notice: #f3ecd6;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #161615; --fg: #e8e6e1; --muted: #a3a19b; --line: #34332f;
          --accent: #7fb6dc; --notice: #2c2818; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 1.0625rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  hyphens: auto; overflow-wrap: break-word;
}
header.site, main, footer.site { max-width: 44rem; margin: 0 auto; padding: 0 1rem; }
header.site { display: flex; justify-content: space-between; padding-top: 1.25rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
footer.site { margin-top: 3rem; padding-top: 1rem; padding-bottom: 2rem; border-top: 1px solid var(--line); font-size: .9rem; }
footer.site nav { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
a { color: var(--accent); text-underline-offset: .15em; }
a:hover { text-decoration-thickness: 2px; }
h1 { font-size: 1.9rem; line-height: 1.2; margin: 1.75rem 0 .5rem; }
h2 { font-size: 1.35rem; margin: 2.25rem 0 .5rem; padding-top: .5rem; border-top: 1px solid var(--line); }
h3 { font-size: 1.1rem; margin: 1.5rem 0 .25rem; }
.meta { color: var(--muted); font-size: .9rem; margin-top: 0; }
.notice { background: var(--notice); padding: .6rem .85rem; border-radius: 4px; font-size: .95rem; }
.toc ol { padding-left: 1.25rem; }
address { font-style: normal; }
table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; font-size: .95rem; }
th, td { border: 1px solid var(--line); padding: .35rem .5rem; text-align: left; vertical-align: top; }
.status { display: none; padding: .6rem .85rem; border-radius: 4px; border-left: 4px solid var(--accent); background: var(--notice); }
.status:target { display: block; }
.status.error { border-left-color: #b3261e; }
.contact .error { padding: .4rem .75rem; border-left: 4px solid #b3261e; }
.contact label { display: block; font-weight: 600; margin-bottom: .2rem; }
.contact input[type=text], .contact input[type=email], .contact textarea {
  width: 100%; font: inherit; color: var(--fg); background: var(--bg);
  border: 1px solid var(--line); border-radius: 4px; padding: .45rem .55rem;
}
.contact textarea { resize: vertical; min-height: 10rem; }
.contact small { color: var(--muted); }
.contact button { font: inherit; padding: .45rem 1rem; border-radius: 4px; border: 1px solid var(--accent); background: var(--accent); color: var(--bg); cursor: pointer; }
.contact button:disabled { opacity: .55; cursor: not-allowed; }
.contact .captcha { border: 1px dashed var(--line); border-radius: 4px; padding: .25rem .85rem .85rem; margin: 1rem 0; }
.contact .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
/* Fallback in case the CSP blocks reCAPTCHA's inline styles. */
#cf-captcha-widget textarea { display: none; }
[hidden] { display: none !important; }
@media print { header.site nav { display: none; } body { background: #fff; color: #000; } }
