:root {
  --page: #f5f5f5;
  --paper: #fff;
  --ink: #444;
  --heading: #513847;
  --muted: #626262;
  --line: #e7e7e7;
  --accent: #00d5e0;
  --link: #006c74;
  --tint: #e3f7f8;
  --footer: #393b3c;
  font: 100%/1.6 Arial, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--page);
  scroll-padding-top: 1rem;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--link); text-underline-offset: .16em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 4px; }
a, td, dd, code { overflow-wrap: anywhere; }

.site, .footer { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }
.site { margin-top: 24px; }
.skip { position: absolute; top: -6rem; left: 1rem; background: var(--paper); padding: .6rem; z-index: 1; }
.skip:focus { top: 1rem; }
.header {
  background: var(--paper);
  border-top: 4px solid var(--accent);
  border-radius: 6px 6px 0 0;
  padding: 18px clamp(16px, 4vw, 36px) 0;
}
.masthead, .brand, .utility, .tabs, .next, .footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
.masthead, .next, .footer { justify-content: space-between; }
.masthead { gap: 12px 24px; }
.brand { gap: 10px; color: var(--heading); text-decoration: none; line-height: 1.2; }
.brand:hover strong { text-decoration: underline; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  color: var(--heading);
  background: var(--accent);
  font: bold 28px/1 Georgia, serif;
}
.brand strong, .brand small { display: block; }
.brand strong { font-size: 20px; }
.brand small { font-size: 13px; color: var(--muted); margin-top: 3px; }
.utility, .tabs { gap: 4px 12px; }
.utility { font-size: .875rem; }
.edition { margin: 15px 0 12px; font-size: .875rem; color: var(--muted); }
.tabs { border-top: 1px solid var(--line); padding: 12px 0; gap: 4px; }
.tabs a {
  display: block;
  color: var(--ink);
  padding: 6px 10px;
  border-left: 3px solid transparent;
  border-radius: 3px;
  text-decoration: none;
  font-size: .9375rem;
}
.tabs a:hover, .tabs a[aria-current="page"] { background: var(--tint); color: var(--link); }
.tabs a[aria-current="page"] { border-left-color: var(--accent); font-weight: bold; }

main {
  padding: clamp(18px, 4vw, 36px);
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-inline: 1px solid #eee;
}
h1, h2, h3 { color: var(--heading); font-weight: normal; line-height: 1.25; }
h1 { font-size: clamp(1.8rem, 4vw, 2.1rem); margin: 0 0 .6rem; }
h2 { font-size: 1.5rem; margin: 2.25rem 0 .8rem; border-bottom: 1px solid var(--line); padding-bottom: .45rem; }
h3 { font-size: 1.18rem; margin: 1.5rem 0 .45rem; }
p, ul, ol, dl { margin: .6rem 0 1rem; }
li + li { margin-top: .28rem; }
.lead { font-size: 1.18rem; max-width: 74ch; color: var(--muted); margin-bottom: 1.35rem; }
.muted, figcaption { color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 14px; margin: 1rem 0; }
.card {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: 4px;
  text-decoration: none;
  color: var(--ink);
  background: #fcfcfc;
}
.card strong { display: block; color: var(--heading); margin-bottom: 3px; }
.card:hover, .card:focus-visible { background: var(--tint); }
.card:hover strong { text-decoration: underline; }
.contents, .note, .warning { border-radius: 4px; padding: 12px 16px; margin: 1rem 0 1.4rem; }
.contents { background: #fafafa; border: 1px solid var(--line); }
.contents ul { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; padding: 0; list-style: none; margin: .3rem 0 0; }
.contents li { margin: 0; }
.note { border-left: 4px solid var(--accent); background: var(--tint); }
.warning { border-left: 4px solid #e1aa50; background: #fff5e6; }
.note > :first-child, .warning > :first-child { margin-top: 0; }
.note > :last-child, .warning > :last-child { margin-bottom: 0; }

.fields { margin: .7rem 0 1.4rem; border-top: 1px solid var(--line); }
.fields > div { display: grid; grid-template-columns: minmax(10rem, 1fr) 2.25fr; column-gap: 1.1rem; padding: .64rem .7rem; border-bottom: 1px solid var(--line); }
.fields > div:nth-child(odd) { background: #fafafa; }
.fields dt { font-weight: bold; color: var(--heading); }
.fields dd { margin: 0; min-width: 0; }
.fields dd p { margin: .3rem 0 0; }
.fields dd ul { margin: .4rem 0 .1rem; }
.table-scroll { overflow-x: auto; margin: 1rem 0; }
table { width: 100%; border-collapse: collapse; }
th, td { border-bottom: 1px solid var(--line); text-align: left; padding: .55rem .7rem; vertical-align: top; }
thead th { background: var(--tint); color: var(--heading); }
tbody tr:nth-child(even) { background: #fafafa; }
.numbers { text-align: right; font-variant-numeric: tabular-nums; }
code { font: .88em/1.45 Consolas, "Courier New", monospace; background: #f3f2f2; border-radius: 3px; padding: .12em .28em; }
pre { overflow-x: auto; color: var(--heading); background: #f7f6f6; border: 1px solid var(--line); padding: .75rem; border-radius: 4px; }
pre code { padding: 0; background: none; }
details { margin: 1rem 0; padding: .65rem .85rem; border: 1px solid var(--line); border-radius: 4px; }
summary { color: var(--link); font-weight: bold; cursor: pointer; }

figure { margin: 1.15rem 0 1.45rem; }
.shot { display: block; width: fit-content; max-width: 100%; border: 1px solid #dfe4e5; border-radius: 4px; background: #f3f5f7; }
.shot img { display: block; max-width: 100%; height: auto; border-radius: 3px; }
.shot:hover { border-color: var(--link); }
figcaption { font-size: .875rem; margin-top: .4rem; }
.next { margin-top: 2rem; padding-top: 1rem; gap: .75rem; border-top: 1px solid var(--line); }
.next-end { justify-content: flex-end; }
.button { display: inline-block; padding: .55rem .95rem; border-radius: 4px; background: var(--tint); color: var(--link); font-weight: bold; text-decoration: none; }
.button:hover { background: var(--accent); }
.footer { gap: .45rem 1.1rem; padding: 14px clamp(16px, 4vw, 36px); background: var(--footer); color: #eee; border-radius: 0 0 5px 5px; margin-bottom: 24px; font-size: .875rem; }
.footer a { color: #b4f5f8; }

@media (max-width: 600px) {
  .site, .footer { width: 100%; }
  .site { margin-top: 0; }
  .header, .footer { border-radius: 0; }
  .fields > div { grid-template-columns: 1fr; gap: .15rem; padding-block: .6rem; }
  .tabs a { padding: 5px 7px; }
  th, td { padding-inline: .45rem; }
}

@media print {
  .site { width: 100%; margin: 0; }
  .utility, .tabs, .next, .skip, .footer { display: none; }
  .header, main { border: 0; padding: 0; }
  h2, h3 { break-after: avoid; }
  figure, .fields > div { break-inside: avoid; }
  .shot img { max-height: 21cm; object-fit: contain; }
}
