:root {
  --ink: var(--color-neutral-solid-gray-900);
  --muted: var(--color-neutral-solid-gray-700);
  --line: var(--color-neutral-solid-gray-200);
  --rule: var(--color-neutral-solid-gray-420);
  --key: var(--color-primitive-green-1000);
  --surface: var(--color-neutral-solid-gray-50);
}

*, *::before, *::after { box-sizing: border-box; }
html { color: var(--ink); background: var(--color-neutral-white); }
body { margin: 0; font-family: var(--font-family-sans); font-size: 1rem; line-height: 1.7; letter-spacing: 0; }
a { color: var(--key); text-underline-offset: .2em; overflow-wrap: anywhere; }
a:hover { text-decoration-thickness: .125em; }
a:focus-visible {
  outline: 3px solid var(--color-neutral-black);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--color-primitive-yellow-300);
  border-radius: 2px;
}
main:focus:not(:focus-visible) { outline: none; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: absolute; z-index: 1; top: .5rem; left: .5rem; padding: .375rem .75rem; background: var(--color-neutral-white); }
.frame { width: min(100% - 3rem, 63rem); margin-inline: auto; }
.masthead { border-top: 4px solid var(--key); border-bottom: 1px solid var(--line); }
.masthead-inner { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 3rem; font-size: .875rem; font-weight: 700; }
.prototype { flex: none; color: var(--muted); border: 1px solid var(--line); padding: .0625rem .5rem; border-radius: 4px; font-size: .75rem; }
.page-head { padding-block: 2rem .75rem; }
.place { margin: 0 0 .375rem; color: var(--muted); font-size: .875rem; font-weight: 700; }
h1, h2, h3 { margin: 0; line-height: 1.4; }
h1 { display: flex; align-items: flex-start; gap: .625rem; font-size: 2.125rem; }
h1 img { flex: none; object-fit: contain; margin-block-start: .25rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.125rem; }
.lead { max-width: 43em; margin: .625rem 0 0; }
.meta { margin: .5rem 0 0; color: var(--muted); font-size: .8125rem; }

.section-nav { display: flex; flex-wrap: wrap; gap: .125rem 1.5rem; margin-block: .25rem 1.5rem; border-bottom: 1px solid var(--line); }
.section-nav a { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 700; font-size: .9375rem; }

.chapter { padding-bottom: 1.75rem; }
.chapter + .chapter { border-top: 1px solid var(--line); padding-top: 1.75rem; }
.chapter h2 { padding-inline-start: .75rem; border-inline-start: 3px solid var(--key); }
.chapter-content { padding-inline-start: calc(.75rem + 3px); }
.topic { margin-top: 1.125rem; scroll-margin-block-start: 1rem; }
.topic + .topic { margin-top: 1.75rem; }
.topic p { margin: .375rem 0 .625rem; }
.facts { margin: .5rem 0 0; }
.facts > div { display: grid; grid-template-columns: minmax(11rem, 22%) minmax(0, 1fr); gap: .125rem 1rem; border-top: 1px solid var(--line); padding-block: .625rem; }
.facts > div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; }
.facts a, .sources { font-size: .875rem; }
.dads-table.comparison { --_padding: .625rem .75rem; letter-spacing: 0; line-height: 1.5; }
.comparison .dads-table__table { width: 100%; table-layout: fixed; border-bottom: 1px solid var(--rule); }
.comparison .dads-table__col-header { background: var(--surface); border-bottom: 1px solid var(--rule); }
.comparison .dads-table__col-header:first-child { width: 54%; }
.comparison tbody tr + tr { border-top: 1px solid var(--line); }
.comparison td small { color: var(--muted); white-space: nowrap; font-size: .8125rem; }
.procedure-table { margin-block: .875rem 1.5rem; }
.procedure-table .dads-table__col-header:first-child { width: 7rem; }
.procedure-table .dads-table__col-header { border-bottom-color: var(--color-neutral-black); }
.topic .note { color: var(--muted); font-size: .875rem; margin-top: .625rem; }
.office-address { color: var(--muted); }
.footer { border-top: 1px solid var(--line); padding-block: 1rem 1.5rem; margin: 0; }

@media (max-width: 40rem) {
  .frame { width: min(100% - 2rem, 63rem); }
  h1 { font-size: 1.625rem; }
  h2 { font-size: 1.3125rem; }
  .page-head { padding-top: 1.375rem; }
  .section-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
  .chapter-content { padding-inline-start: 0; }
  .facts > div { grid-template-columns: minmax(0, 1fr); }
  .dads-table.comparison { --_padding: .5rem .375rem; font-size: .875rem; }
  .comparison .dads-table__col-header:first-child { width: 48%; }
  .comparison .dads-table__col-header:last-child { width: 31%; }
  .comparison td small { font-size: .75rem; }
  .procedure-table .dads-table__col-header:first-child { width: 4.375rem; }
  .procedure-table .dads-table__col-header:last-child { width: auto; }
}

@media print {
  .frame { width: 100%; }
  .skip-link, .masthead, .section-nav { display: none; }
  h2, h3 { break-after: avoid; }
  .facts > div, .comparison tr { break-inside: avoid; }
}
