:root {
  color-scheme: light;
  --navy: #10243a;
  --ink: #152c41;
  --muted: #496071;
  --teal: #0f766e;
  --line: #c7d5db;
  --paper: #fff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); }
header { background: var(--navy); color: #fff; }
.bar, main { max-width: 54rem; margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.bar { min-height: 4rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .25rem 1rem; padding-block: .4rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: inherit; text-decoration: none; font-size: 1.35rem; font-weight: 700; letter-spacing: -.035em; }
.brand img, .brand svg { display: block; width: 2rem; height: 2rem; object-fit: contain; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem; }
nav a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: .25rem .6rem; color: #e3edf1; text-decoration: none; }
nav a[aria-current="page"] { color: #fff; font-weight: 650; text-decoration: underline; text-decoration-color: #5eead4; text-decoration-thickness: .15em; text-underline-offset: .35em; }
nav a:hover { text-decoration: underline; }
main { padding-block: clamp(1.75rem, 5vw, 3.5rem) 3rem; }
h1, h2, summary { line-height: 1.35; }
h1 { margin: 0; font-size: clamp(1.9rem, 5vw, 2.65rem); letter-spacing: -.035em; }
.intro { margin: .65rem 0 1.6rem; color: var(--muted); max-width: 65ch; }
#faq-search label { display: block; margin-bottom: .4rem; font-weight: 650; }
#query { display: block; width: 100%; max-width: 34rem; min-height: 2.9rem; border: 1px solid #798d98; border-radius: .4rem; padding: .55rem .8rem; background: #fff; color: var(--ink); font: inherit; }
#result { margin: .65rem 0 0; color: var(--muted); }
#result:empty { margin: 0; }
section[data-faq-group] { margin-block-start: 2rem; }
h2 { margin: 0 0 .65rem; font-size: clamp(1.2rem, 3vw, 1.42rem); }
details { border-top: 1px solid var(--line); scroll-margin-block-start: 1rem; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { padding: .9rem .25rem; font-weight: 600; cursor: pointer; overflow-wrap: anywhere; }
summary::marker { color: var(--teal); }
summary:hover { color: var(--teal); }
details[open] > summary { color: var(--teal); }
details p { margin: 0 0 1rem; padding-inline: 1.35rem .5rem; overflow-wrap: anywhere; }
#support { margin-top: 2.25rem; border-inline-start: 3px solid var(--teal); padding: .9rem 1rem; background: #f1f7f7; overflow-wrap: anywhere; }
#support > :first-child { margin-top: 0; }
#support > :last-child { margin-bottom: 0; }
main a { color: #075f59; text-underline-offset: .16em; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
header :focus-visible { outline-color: #5eead4; }

@media print {
  body { color: #000; font-size: 10.5pt; }
  header { background: #fff; color: #000; }
  .bar, main { max-width: none; padding: 0; }
  .bar { min-height: 0; }
  nav, #faq-search, #result { display: none !important; }
  main { margin-top: .75rem; }
  h1 { font-size: 18pt; }
  h2 { font-size: 13pt; break-after: avoid; }
  .intro { margin: .35rem 0; }
  section[data-faq-group] { display: block !important; margin-top: 1rem; }
  details { display: block !important; break-inside: avoid; }
  details::details-content { display: block; content-visibility: visible; }
  details > summary { color: #000 !important; list-style: none; padding: .4rem 0; }
  details > summary::marker { content: ""; }
  details p { padding: 0; margin-bottom: .5rem; }
  #support { background: none; margin-top: 1rem; break-inside: avoid; }
}
