:root {
  color-scheme: light dark;
  --paper: #ffffff;
  --ink: #182322;
  --muted: #526360;
  --line: #dbe3e0;
  --soft: #f3f7f5;
  --accent: #294bc5;
  --highlight: #f2ebaf;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 2rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: 0; overflow-wrap: anywhere; }
a { color: var(--accent); text-underline-offset: .2em; overflow-wrap: anywhere; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; border-radius: 3px; }
.skip { position: absolute; top: -5rem; left: 1rem; padding: .6rem 1rem; background: var(--paper); z-index: 5; }
.skip:focus { top: .5rem; }
.wrap { width: min(100% - 3rem, 1080px); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding-block: 1.3rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.5rem; }
.brand img { width: 30px; height: 30px; }
nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
nav a { font-size: .95rem; text-decoration: none; color: var(--muted); }
nav a[aria-current="page"] { color: var(--accent); text-decoration: underline; font-weight: 650; }
main { padding-block: 3.2rem 4rem; min-height: 65vh; }
.eyebrow { margin: 0 0 .75rem; font-size: .8rem; font-weight: 750; color: var(--accent); text-transform: uppercase; }
h1 { font-size: 2.6rem; line-height: 1.15; margin: 0 0 1rem; font-weight: 760; }
h2 { font-size: 1.35rem; line-height: 1.35; margin: 0 0 .9rem; }
h3 { font-size: 1.05rem; line-height: 1.4; margin: 0 0 .65rem; }
p { margin: 0 0 1rem; }
.lede { font-size: 1.15rem; max-width: 680px; color: var(--muted); }
.meta { color: var(--muted); font-size: .9rem; }
.page-title { padding-bottom: 2rem; border-bottom: 1px solid var(--line); }
.document-grid { display: grid; grid-template-columns: minmax(180px, 230px) minmax(0, 1fr); gap: 3.5rem; padding-top: 2.5rem; }
.contents { align-self: start; position: sticky; top: 2rem; }
.contents p { font-size: .85rem; font-weight: 750; color: var(--muted); }
.contents ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; font-size: .9rem; }
.contents a { text-decoration: none; }
article { min-width: 0; max-width: 740px; }
article section + section { border-top: 1px solid var(--line); padding-top: 2rem; margin-top: 2rem; }
article p:last-child { margin-bottom: 0; }
ul, ol { padding-left: 1.35rem; }
li { padding-left: .2rem; margin-bottom: .65rem; }
.contact-strip { padding: 1.4rem 0; border-bottom: 1px solid var(--line); display: flex; gap: 2rem; justify-content: space-between; align-items: center; }
.contact-strip p { margin: 0; }
.button { display: inline-flex; align-items: center; justify-content: center; padding: .8rem 1.1rem; min-height: 48px; border-radius: 7px; background: var(--accent); color: white; text-decoration: none; font-weight: 650; text-align: center; }
.note { border-left: 3px solid var(--accent); padding: .25rem 0 .25rem 1.1rem; margin-block: 1.5rem; }
.note p { color: var(--muted); }
details { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
details:first-of-type { border-top: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 650; padding-right: .5rem; }
details p { padding-top: .8rem; }
.link-list { list-style: none; padding: 0; margin-top: 2rem; max-width: 740px; }
.link-list li { border-bottom: 1px solid var(--line); padding: 1.5rem 0; margin: 0; }
.link-list a { font-size: 1.3rem; font-weight: 700; }
.link-list p { margin: .4rem 0 0; color: var(--muted); }
.tag { display: inline-block; background: var(--highlight); color: #343b16; padding: .15rem .6rem; border-radius: 4px; font-size: .8rem; font-weight: 600; margin-bottom: 1.5rem; }
.site-footer { border-top: 1px solid var(--line); padding-block: 1.6rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; color: var(--muted); font-size: .9rem; }
.footer-inner p { margin: 0; }
@media (max-width: 700px) {
  .wrap { width: min(100% - 2rem, 1080px); }
  .header-inner { gap: .75rem; align-items: flex-start; flex-wrap: wrap; }
  nav { gap: 1rem; }
  main { padding-block: 2rem 3rem; }
  h1 { font-size: 2.15rem; }
  .document-grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .contents { position: static; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
  .contents ol { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem 1rem; }
  .contact-strip { flex-direction: column; align-items: flex-start; gap: 1rem; }
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #111716; --ink: #f0f5f2; --muted: #afbeb7; --line: #33423d; --soft: #1a2420; --accent: #a7baff; --highlight: #e7dc87; }
  .button { color: #12203e; }
}
@media print {
  .site-header, .site-footer, .contents, .skip, .button { display: none; }
  :root { --paper: white; --ink: black; --muted: #333; --line: #ccc; --accent: #222; }
  .wrap { width: 100%; }
  main { padding: 0; }
  .document-grid { display: block; padding-top: 1rem; }
  article { max-width: none; }
  details { break-inside: avoid; }
}
