:root {
  color-scheme: light dark;
  --page: #f3f5f7;
  --surface: #ffffff;
  --surface-muted: #e9edf1;
  --text: #16191d;
  --muted: #606870;
  --line: #d8dde3;
  --blue: #0b6edb;
  --blue-strong: #0754a8;
  --green: #137d4e;
  --orange: #b85d00;
  --focus: #ffbf47;
  --shadow: 0 8px 28px rgb(20 32 46 / 8%);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--page);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--page);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.62;
}

a {
  color: var(--blue-strong);
  text-underline-offset: 0.16em;
  text-decoration-thickness: 0.08em;
}

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

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

.skip-link {
  position: fixed;
  z-index: 10;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: #111111;
  background: #ffffff;
  border: 2px solid #111111;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
}

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

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-size: 1.03rem;
  font-weight: 750;
}

.brand img {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgb(20 32 46 / 16%);
}

.site-nav {
  display: flex;
  gap: 18px;
  font-size: 0.88rem;
  font-weight: 650;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  color: var(--blue-strong);
  text-decoration: underline;
}

.site-shell {
  padding-block: 54px 72px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 760;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.2;
  letter-spacing: 0;
}

h1 {
  max-width: 20ch;
  margin-bottom: 16px;
  font-size: clamp(2rem, 7vw, 3.1rem);
}

h2 {
  margin-bottom: 12px;
  font-size: 1.45rem;
}

h3 {
  margin-bottom: 7px;
  font-size: 1.04rem;
}

p,
ul {
  margin-top: 0;
}

.lede {
  max-width: 62ch;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 1.08rem;
}

.meta {
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 0.9rem;
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-block: 34px 48px;
}

.link-card {
  min-height: 148px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  text-decoration: none;
}

.link-card:hover {
  color: var(--text);
  border-color: var(--blue);
  transform: translateY(-1px);
}

.link-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.08rem;
}

.link-card span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.link-card b {
  align-self: flex-end;
  color: var(--blue-strong);
  font-size: 1.25rem;
}

.language-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-block: 26px 42px;
  padding-block: 14px;
  border-block: 1px solid var(--line);
  font-size: 0.92rem;
  font-weight: 650;
}

.content-section {
  padding-block: 30px;
  border-top: 1px solid var(--line);
}

.content-section:first-of-type {
  border-top: 0;
}

.content-section p:last-child,
.content-section ul:last-child {
  margin-bottom: 0;
}

.content-section li + li {
  margin-top: 8px;
}

.callout {
  margin-block: 28px;
  padding: 18px 20px;
  background: color-mix(in srgb, var(--surface-muted) 78%, var(--green) 7%);
  border-left: 4px solid var(--green);
}

.callout.warning {
  background: color-mix(in srgb, var(--surface-muted) 78%, var(--orange) 8%);
  border-left-color: var(--orange);
}

.action-link {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  color: #ffffff;
  background: var(--blue-strong);
  border-radius: 8px;
  font-weight: 720;
  text-decoration: none;
}

.action-link:hover {
  color: #ffffff;
  background: var(--blue);
}

.faq-list {
  margin: 34px 0 46px;
}

.faq-list details {
  padding-block: 18px;
  border-top: 1px solid var(--line);
}

.faq-list details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  cursor: pointer;
  font-weight: 720;
}

.faq-list details p {
  margin: 12px 0 0;
  color: var(--muted);
}

.english-section {
  margin-top: 66px;
  padding-top: 46px;
  border-top: 4px solid var(--text);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-inner {
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 0.84rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a {
  color: var(--muted);
}

@media (max-width: 700px) {
  .header-inner {
    min-height: 68px;
  }

  .brand img {
    width: 42px;
    height: 42px;
  }

  .site-nav {
    display: none;
  }

  .site-shell {
    padding-block: 38px 56px;
  }

  .quick-links {
    grid-template-columns: 1fr;
  }

  .link-card {
    min-height: 118px;
  }

  .footer-inner {
    padding-block: 24px;
    align-items: flex-start;
    flex-direction: column;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #111417;
    --surface: #191d21;
    --surface-muted: #22282e;
    --text: #f4f6f8;
    --muted: #b0b8c0;
    --line: #323941;
    --blue: #76b7ff;
    --blue-strong: #8bc2ff;
    --green: #6ed5a0;
    --orange: #ffb56f;
    --shadow: 0 8px 28px rgb(0 0 0 / 18%);
  }

  .action-link,
  .action-link:hover {
    color: #0b1b2c;
    background: #8bc2ff;
  }
}
