@font-face {
  font-family: "Montserrat";
  src: url("fonts/Montserrat-VariableFont_wght.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --aftel-navy: #123252;
  --aftel-blue: #377fbd;
  --aftel-blue-dark: #245b93;
  --aftel-sky: #eaf4ff;
  --aftel-green: #16803a;
  --aftel-ink: #14263b;
  --aftel-muted: #51677e;
  --aftel-line: #dbe7f4;
  --aftel-paper: #ffffff;
  --aftel-page: #f7fbff;
  --aftel-gold: #d79a2b;
  --aftel-font: Montserrat, Inter, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--aftel-ink);
  background: var(--aftel-page);
  font: 400 16px/1.7 var(--aftel-font);
  letter-spacing: 0;
}
main {
  width: min(980px, calc(100% - 48px));
  margin: 40px auto 64px;
  padding: 40px 44px 44px;
  background: var(--aftel-paper);
  border: 1px solid var(--aftel-line);
  border-radius: 2px;
}
.brandbar {
  display: flex;
  align-items: center;
  min-height: 64px;
  margin: -4px 0 34px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--aftel-line);
}
.brandbar img { width: 142px; height: auto; }
h1, h2, h3 { color: var(--aftel-ink); letter-spacing: 0; }
h1 {
  margin: 0 0 10px;
  font-size: clamp(2.15rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.14;
}
h2 {
  margin: 38px 0 13px;
  padding-top: 16px;
  border-top: 1px solid var(--aftel-line);
  font-size: 1.48rem;
  font-weight: 700;
  line-height: 1.28;
}
h3 { margin: 23px 0 8px; font-size: 1.06rem; font-weight: 600; line-height: 1.35; }
p { margin: 0 0 15px; }
.lead { max-width: 780px; color: var(--aftel-muted); font-size: 1.08rem; font-weight: 400; }
.meta, small { color: var(--aftel-muted); }
a {
  color: var(--aftel-blue-dark);
  font-weight: 600;
  text-decoration-color: rgba(36, 91, 147, .35);
  text-underline-offset: 3px;
}
li + li { margin-top: 7px; }
.summary, .choice {
  margin: 26px 0;
  padding: 24px 26px;
  background: var(--aftel-paper);
  border: 1px solid var(--aftel-line);
  border-radius: 2px;
}
.summary { background: var(--aftel-sky); border-top: 3px solid var(--aftel-blue); }
.summary h2, .choice h2 { margin-top: 0; padding-top: 0; border-top: 0; }
.choice { border-left: 3px solid var(--aftel-blue); }
.choice:first-of-type { border-left-color: var(--aftel-green); }
.example, .notice {
  margin: 19px 0 0;
  padding: 15px 17px;
  background: var(--aftel-sky);
  border: 0;
  border-left: 3px solid var(--aftel-blue);
  border-radius: 0;
}
.notice { border-left-color: var(--aftel-green); }
dl { display: grid; grid-template-columns: 180px 1fr; gap: 9px 20px; }
dt { color: var(--aftel-ink); font-weight: 600; }
dd { margin: 0; }
table { width: 100%; border-collapse: collapse; border: 1px solid var(--aftel-line); }
th, td {
  padding: 11px 12px;
  text-align: left;
  vertical-align: top;
  border: 1px solid var(--aftel-line);
}
th { color: var(--aftel-ink); background: var(--aftel-sky); font-weight: 600; }
.document-footer {
  display: flex;
  gap: 18px;
  margin-top: 44px;
  padding-top: 20px;
  color: var(--aftel-muted);
  border-top: 1px solid var(--aftel-line);
  font-size: 13px;
}

@media (max-width: 680px) {
  body { background: var(--aftel-paper); }
  main { width: 100%; margin: 0; padding: 24px 20px 32px; border: 0; }
  .brandbar { min-height: 58px; margin-bottom: 28px; }
  .brandbar img { width: 126px; }
  h1 { font-size: 2.05rem; }
  dl { grid-template-columns: 1fr; gap: 2px; }
  dd { margin-bottom: 12px; }
  .summary, .choice { padding: 20px; }
  .document-footer { flex-direction: column; }
  table { display: block; overflow-x: auto; }
}

@media print {
  body { background: #fff; font-size: 10.5pt; }
  main { width: auto; margin: 0; padding: 12mm; border: 0; }
  .brandbar { margin-top: 0; }
  h1 { font-size: 25pt; }
  h2 { break-after: avoid; }
  .summary, .choice, table { break-inside: avoid; }
  a { color: inherit; text-decoration: none; }
}
