:root {
  color-scheme: light dark;
  --background: #eef3f7;
  --surface: #ffffff;
  --surface-soft: #f7fafc;
  --text: #15212d;
  --muted: #526170;
  --border: #d6e0e8;
  --accent: #1268a7;
  --accent-strong: #0a4d7d;
  --accent-soft: #e5f2fb;
  --summary: #edf8f1;
  --summary-border: #a8d5b6;
  --shadow: 0 22px 60px rgb(21 50 73 / 10%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-size: 17px;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--accent);
  overflow-wrap: anywhere;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-strong);
}

a:focus-visible,
[tabindex="0"]:focus-visible {
  border-radius: 5px;
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.site-header,
.site-footer {
  width: min(100% - 32px, 1040px);
  margin-inline: auto;
}

.site-header {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 780;
  letter-spacing: 0.025em;
  text-decoration: none;
  white-space: nowrap;
}

.language-switcher {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.language-switcher a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 12px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 650;
  text-decoration: none;
}

.language-switcher a[aria-current="page"] {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.home-shell,
.document-shell {
  width: min(100% - 32px, 900px);
  margin-inline: auto;
}

.home-shell {
  min-height: calc(100vh - 190px);
  display: grid;
  align-items: center;
}

.hero {
  padding: clamp(36px, 7vw, 76px) 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hero h1,
.document-header h1 {
  margin: 0;
  font-size: clamp(2.25rem, 7vw, 4.7rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.hero h1 span {
  color: var(--muted);
}

.lede {
  max-width: 680px;
  margin: 24px 0 30px;
  color: var(--muted);
  font-size: clamp(1.02rem, 2.3vw, 1.22rem);
}

.language-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.resource-heading {
  margin: clamp(2.75rem, 7vw, 4.5rem) 0 1.25rem;
  max-width: 26ch;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.18;
}

.governance-cards {
  margin-top: 0;
}

.language-card {
  min-height: 118px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--text);
  text-decoration: none;
}

.language-card:hover {
  border-color: var(--accent);
  color: var(--text);
  transform: translateY(-2px);
}

.language-card strong {
  font-size: 1.18rem;
}

.language-card span {
  color: var(--muted);
  font-size: 0.92rem;
}

.document-shell {
  padding-bottom: 52px;
}

article {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.document-header,
.policy-content > section,
.policy-content > ul,
.policy-content > p {
  padding-inline: clamp(22px, 5vw, 54px);
}

.document-header {
  border-bottom: 1px solid var(--border);
  padding-block: clamp(34px, 7vw, 72px);
  background: linear-gradient(150deg, var(--accent-soft), var(--surface) 72%);
}

.document-header h1 {
  max-width: 760px;
  font-size: clamp(2.15rem, 6vw, 4rem);
}

.policy-content > ul:first-child {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
  margin: 0;
  padding-block: 28px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-soft);
  list-style: none;
}

.policy-content > ul:first-child li {
  margin: 0;
}

.policy-content > section {
  padding-block: clamp(28px, 5vw, 50px);
  scroll-margin-top: 20px;
}

.policy-content > section + section {
  border-top: 1px solid var(--border);
}

.policy-content > section[data-section-key="summary"] {
  border-left: 6px solid var(--summary-border);
  background: var(--summary);
}

h2,
h3 {
  line-height: 1.32;
  letter-spacing: -0.018em;
}

h2 {
  margin: 0 0 20px;
  font-size: clamp(1.45rem, 3vw, 1.9rem);
}

h3 {
  margin: 32px 0 12px;
  font-size: 1.18rem;
}

p,
ul,
ol {
  margin-top: 0;
  margin-bottom: 1.08em;
}

li + li {
  margin-top: 0.5em;
}

code {
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 0.06em 0.32em;
  background: var(--surface-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
  overflow-wrap: anywhere;
}

.table-wrap {
  overflow-x: auto;
  margin: 20px 0 26px;
  border: 1px solid var(--border);
  border-radius: 13px;
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 0.92rem;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--surface-soft);
}

tbody tr:last-child td {
  border-bottom: 0;
}

.site-footer {
  padding: 8px 0 30px;
  color: var(--muted);
  font-size: 0.86rem;
  text-align: center;
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .site-header {
    padding-block: 12px;
    align-items: flex-start;
    flex-direction: column;
  }

  .language-switcher {
    width: 100%;
    justify-content: flex-start;
  }

  .language-cards,
  .policy-content > ul:first-child {
    grid-template-columns: 1fr;
  }

  article {
    border-radius: 20px;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0d151c;
    --surface: #14212b;
    --surface-soft: #192a36;
    --text: #edf5fa;
    --muted: #b1c1cd;
    --border: #304451;
    --accent: #73c3fa;
    --accent-strong: #a5d9fb;
    --accent-soft: #17374c;
    --summary: #183226;
    --summary-border: #4f9f6c;
    --shadow: 0 22px 60px rgb(0 0 0 / 24%);
  }

  .language-switcher a[aria-current="page"] {
    color: #07131b;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .language-card:hover {
    transform: none;
  }
}

@media print {
  :root {
    color-scheme: light;
  }

  body {
    background: #ffffff;
    color: #000000;
    font-size: 11pt;
  }

  .site-header,
  .site-footer {
    display: none;
  }

  .document-shell {
    width: 100%;
  }

  article {
    border: 0;
    box-shadow: none;
  }
}
