:root {
  color-scheme: light;
  --ink: #1a1a1a;
  --muted: #5c5c5c;
  --rule: #d6d1c7;
  --paper: #f7f4ee;
  --sheet: #fffcf7;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body.doc {
  min-height: 100dvh;
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Serif 4", "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, "Times New Roman", serif;
  font-size: 1.125rem;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
  z-index: 10;
}

.skip:focus { left: 12px; }

.doc-top {
  max-width: 42rem;
  margin: 0 auto;
  padding: 28px 24px 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  border-bottom: 1px solid var(--rule);
}

.doc-top .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}

.doc-top .brand img {
  width: 32px;
  height: 32px;
  border-radius: 7px;
}

.doc-top .brand strong {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.doc-top nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}

.doc-top nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
}

.doc-top nav a:hover,
.doc-top nav a.is-active {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lang {
  display: flex;
  gap: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.lang button {
  appearance: none;
  border: 0;
  background: none;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  padding: 0;
}

.lang button.is-active {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.doc-sheet {
  max-width: 42rem;
  margin: 0 auto;
  padding: 48px 24px 96px;
}

.doc-sheet header {
  width: 100%;
  margin-bottom: 2.4rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--ink);
}

.doc-sheet .kicker {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.doc-sheet h1 {
  font-size: 2.15rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.doc-meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.doc-sheet h2 {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 2.4em 0 0.7em;
  scroll-margin-top: 24px;
}

.doc-sheet h3 {
  font-size: 1.02rem;
  font-weight: 600;
  margin: 1.4em 0 0.4em;
}

.doc-sheet p,
.doc-sheet li {
  color: var(--ink);
}

.doc-sheet p + p {
  margin-top: 0.9em;
}

.doc-sheet ul,
.doc-sheet ol {
  margin: 0.7em 0 0.9em 1.3em;
}

.doc-sheet li + li {
  margin-top: 0.35em;
}

.doc-sheet a {
  color: var(--ink);
  text-underline-offset: 3px;
}

.doc-sheet a:hover {
  color: #000;
}

.contents {
  display: block;
  margin: 2.2rem 0 2.2rem;
  padding: 0 0 1.6rem;
  border-bottom: 1px solid var(--rule);
}

.contents h2 {
  display: block;
  margin: 0 0 0.7em;
  font-size: 1.05rem;
}

.contents ol {
  margin-left: 1.3em;
}

.contents a {
  text-decoration: none;
}

.contents a:hover {
  text-decoration: underline;
}

.providers {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
  margin: 1em 0 1.2em;
}

.providers th,
.providers td {
  text-align: left;
  vertical-align: top;
  padding: 8px 12px 8px 0;
  border-bottom: 1px solid var(--rule);
}

.providers th {
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.doc-foot {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 24px 48px;
  color: var(--muted);
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  border-top: 1px solid var(--rule);
  padding-top: 20px;
}

.doc-foot a {
  color: var(--muted);
}

@media (max-width: 640px) {
  body.doc { font-size: 1.05rem; }
  .doc-sheet { padding-top: 32px; }
  .doc-sheet h1 { font-size: 1.75rem; }
}

@media print {
  body.doc { background: #fff; }
  .doc-top, .lang, .skip { display: none !important; }
  .doc-sheet { padding: 0; max-width: none; }
}
