:root {
  color-scheme: light;
  --ink: #172b2b;
  --muted: #536665;
  --line: #d7e1de;
  --paper: #f5f8f6;
  --surface: #fff;
  --green: #08765b;
  --green-dark: #075744;
  --lime: #d9f276;
  --coral: #a63b30;
  --coral-soft: #fff1ed;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Avenir Next', Avenir, 'Segoe UI', sans-serif;
  line-height: 1.65;
  text-size-adjust: 100%;
}

body {
  margin: 0;
}

a {
  color: var(--green-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--coral);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 12px max(24px, calc((100vw - 1120px) / 2));
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.brand {
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  width: 32px;
  height: auto;
  margin-right: 8px;
  vertical-align: middle;
}

.header-tools,
.legal-nav,
.language-switch {
  display: flex;
  align-items: center;
  gap: 8px;
}

.legal-nav a {
  padding: 8px 10px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.legal-nav a[aria-current='page'] {
  background: #e7f2ee;
}

.language-switch {
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
}

.language-switch button {
  min-width: 38px;
  min-height: 34px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
}

.language-switch button[aria-pressed='true'] {
  background: var(--green-dark);
  color: white;
}

.document {
  width: min(100% - 40px, 920px);
  margin: 0 auto;
  padding: 62px 0 84px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.2;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 42px;
  font-weight: 500;
}

.lede {
  max-width: 740px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.version {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.draft-notice {
  margin: 28px 0 38px;
  padding: 16px 18px;
  border-left: 4px solid var(--coral);
  background: var(--coral-soft);
  color: #61251f;
  font-size: 14px;
}

.draft-notice strong {
  display: block;
  margin-bottom: 4px;
}

.document-content {
  padding-top: 4px;
}

.document-content section {
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.document-content h2 {
  margin: 0 0 12px;
  font-size: 21px;
}

.document-content h3 {
  margin: 20px 0 7px;
  font-size: 16px;
}

.document-content p {
  margin: 10px 0;
}

.document-content ul,
.document-content ol {
  margin: 10px 0;
  padding-left: 24px;
}

.document-content li {
  margin: 7px 0;
  padding-left: 3px;
}

.document-content li::marker {
  color: var(--green);
}

.placeholder {
  padding: 1px 4px;
  background: var(--lime);
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
}

.site-footer {
  padding: 24px max(24px, calc((100vw - 1120px) / 2));
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
}

.site-footer p {
  margin: 5px 0;
}

[hidden] {
  display: none !important;
}

@media (max-width: 700px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px 16px;
    padding: 14px 18px;
  }

  .header-tools {
    width: 100%;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .language-switch {
    gap: 2px;
  }

  .language-switch button {
    min-width: 34px;
  }

  .document {
    width: min(100% - 36px, 920px);
    padding: 42px 0 60px;
  }

  h1 {
    font-size: 32px;
  }

  .lede {
    font-size: 16px;
  }
}
