:root {
  color: #202a33;
  background: #f4f6f8;
  font-family: Arial, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 0; }
a { color: #155b84; }
a:hover { color: #0c3f5d; }

header {
  align-items: center;
  background: #fff;
  border-bottom: 1px solid #d7dee5;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  padding: 12px clamp(16px, 3vw, 40px);
  position: sticky;
  top: 0;
  z-index: 2;
}
header > a {
  color: #172f3f;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}
nav { align-items: center; display: flex; flex-wrap: wrap; gap: 4px 14px; justify-content: flex-end; }
nav a { text-decoration: none; white-space: nowrap; }
nav form { background: transparent; border: 0; margin: 0; padding: 0; }

main { margin: 0 auto; max-width: 1560px; padding: 28px clamp(16px, 3vw, 40px) 48px; }
h1, h2, h3 { color: #172f3f; line-height: 1.2; }
h1 { font-size: clamp(1.55rem, 2.2vw, 2rem); margin: 0 0 22px; }
h2 { border-bottom: 1px solid #d7dee5; font-size: 1.18rem; margin: 28px 0 12px; padding-bottom: 7px; }
h3 { font-size: 1rem; margin: 18px 0 6px; }
p { margin: 0 0 12px; }
.toolbar { align-items: center; display: flex; flex-wrap: wrap; gap: 12px 20px; justify-content: space-between; }

.button, button {
  background: #176b9b;
  border: 1px solid #17618c;
  border-radius: 5px;
  color: #fff;
  cursor: pointer;
  display: inline-block;
  font: inherit;
  font-weight: 600;
  line-height: 1.25;
  padding: 9px 14px;
  text-decoration: none;
}
.button:hover, button:hover { background: #0f547a; color: #fff; }
.button:focus-visible, button:focus-visible, a:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible { outline: 3px solid #8bc7e8; outline-offset: 2px; }
button:disabled, .button[aria-disabled="true"] { background: #9aa8b2; border-color: #9aa8b2; cursor: not-allowed; }

table { background: #fff; border: 1px solid #d7dee5; border-collapse: collapse; width: 100%; }
th, td { border-bottom: 1px solid #e1e6eb; padding: 11px 12px; text-align: left; vertical-align: top; }
th { background: #eaf0f4; color: #193b50; font-weight: 700; }
tr:last-child td { border-bottom: 0; }
td small, td b + small { color: #667681; display: block; margin-top: 4px; }
td { overflow-wrap: anywhere; }

form { background: #fff; border: 1px solid #d7dee5; border-radius: 6px; margin: 0 0 22px; max-width: 860px; padding: 18px; }
form p { display: flex; flex-direction: column; gap: 5px; margin: 0 0 14px; max-width: 720px; }
form p:last-child { margin-bottom: 0; }
label { color: #294454; font-weight: 600; }
input, textarea, select {
  background: #fff;
  border: 1px solid #aebbc5;
  border-radius: 4px;
  color: #202a33;
  font: inherit;
  max-width: 100%;
  min-width: 0;
  padding: 9px 10px;
}
input[type="checkbox"], input[type="radio"] { min-width: auto; width: auto; }
textarea { min-height: 120px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: #176b9b; box-shadow: 0 0 0 2px #d4edf9; outline: 0; }
.helptext, form small { color: #667681; font-size: .9rem; }
.errorlist { color: #a12626; margin: 0 0 6px; padding-left: 20px; }
.errorlist + input, .errorlist + textarea, .errorlist + select { border-color: #b33a3a; }

.muted { color: #667681; }
.notice { background: #fff6d8; border-left: 4px solid #d3971a; margin: 0 0 16px; padding: 11px 14px; }
.tag { background: #e3eef5; border-radius: 3px; color: #28536b; font-size: .78rem; padding: 3px 6px; }
.source, blockquote { background: #fff; border: 1px solid #d7dee5; border-radius: 5px; margin: 10px 0; padding: 14px 16px; white-space: pre-wrap; overflow-wrap: anywhere; }
blockquote { border-left: 4px solid #8db8cf; color: #344b59; margin-left: 0; }
.question { background: #fff6d8; border-left: 4px solid #d3971a; margin-top: 10px; padding: 10px 12px; }
article { margin: 14px 0 20px; }
details { background: #fff; border: 1px solid #d7dee5; border-radius: 5px; margin: 10px 0; padding: 10px 12px; }
summary { cursor: pointer; font-weight: 600; }

@media (max-width: 800px) {
  header { align-items: flex-start; flex-direction: column; gap: 10px; }
  nav { justify-content: flex-start; }
  main { padding: 20px 12px 36px; }
  form { padding: 14px; }
  table { display: block; max-width: 100%; overflow-x: auto; }
  table tr { width: max-content; }
  th, td { min-width: 120px; }
}

@media (max-width: 430px) {
  :root { font-size: 14px; }
  nav { gap: 7px 12px; }
  nav form, nav button { width: 100%; }
  nav button { text-align: left; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .toolbar form { width: 100%; }
  .toolbar button, .toolbar .button { width: 100%; }
}
