:root {
  color-scheme: light;
  --page-bg: #f5f6f8;
  --surface: #ffffff;
  --surface-muted: #f0f2f5;
  --text: #17181c;
  --muted: #60646c;
  --border: #dfe2e7;
  --accent: #5b55da;
  --accent-strong: #4540bd;
  --accent-soft: #efefff;
  --success-soft: #edf8f2;
  --success-border: #c7e8d5;
  --warning-soft: #fff8e8;
  --warning-border: #ecd9a7;
  --focus: #27239f;
  --shadow: 0 18px 54px rgba(24, 28, 38, 0.08);
  --radius-lg: 22px;
  --radius-md: 14px;
  --content: 820px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at top left, rgba(91, 85, 218, 0.08), transparent 34rem),
    var(--page-bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
}

a {
  color: var(--accent-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--focus) 72%, transparent);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  transform: translateY(-180%);
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
}

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

.site-header {
  padding: 26px 20px 0;
}

.site-header__inner,
.page-shell,
.site-footer__inner {
  width: min(100%, calc(var(--content) + 40px));
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-size: 15px;
  font-weight: 760;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand__mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border));
  border-radius: 11px;
  background: linear-gradient(145deg, var(--accent-soft), #ffffff);
  color: var(--accent-strong);
  font-size: 18px;
  font-weight: 850;
  box-shadow: 0 8px 20px rgba(69, 64, 189, 0.12);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
  font-size: 14px;
}

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

.site-nav a.is-current {
  color: var(--accent-strong);
}

.page-shell {
  padding: 34px 20px 48px;
}

.document {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.document__hero {
  padding: clamp(28px, 6vw, 54px) clamp(22px, 6vw, 58px) clamp(26px, 5vw, 42px);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #ffffff, #fbfbfe);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 780;
  letter-spacing: 0.085em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--text);
  line-height: 1.18;
  letter-spacing: -0.025em;
}

h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(32px, 6.4vw, 52px);
  font-weight: 820;
}

h2 {
  margin: 0 0 14px;
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 780;
}

h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 760;
}

.lead {
  max-width: 700px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2.5vw, 20px);
  line-height: 1.62;
}

.updated {
  display: inline-flex;
  align-items: center;
  margin: 24px 0 0;
  padding: 7px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.3;
}

.language-control {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.language-control select {
  min-height: 40px;
  max-width: 220px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  padding: 0 34px 0 12px;
  font: inherit;
}

.language-control select:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--focus) 35%, transparent);
  outline-offset: 2px;
}

.document__body {
  padding: clamp(24px, 5vw, 48px) clamp(22px, 6vw, 58px) clamp(34px, 6vw, 58px);
}

.summary {
  margin: 0 0 38px;
  padding: 20px 22px;
  border: 1px solid var(--success-border);
  border-radius: var(--radius-md);
  background: var(--success-soft);
}

.summary p {
  margin: 0;
}

.section {
  scroll-margin-top: 24px;
}

.section + .section {
  margin-top: 38px;
  padding-top: 38px;
  border-top: 1px solid var(--border);
}

p {
  margin: 0 0 16px;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 14px 0 18px;
  padding-left: 1.25em;
}

li + li {
  margin-top: 8px;
}

strong {
  font-weight: 760;
}

.path {
  display: inline;
  padding: 0.12em 0.38em;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface-muted);
  font-size: 0.92em;
  font-weight: 700;
  white-space: normal;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.note {
  margin: 22px 0 0;
  padding: 18px 20px;
  border: 1px solid var(--warning-border);
  border-radius: var(--radius-md);
  background: var(--warning-soft);
  color: color-mix(in srgb, var(--text) 88%, #6b5200);
}

.note p {
  margin: 0;
}

.contact-card {
  margin: 22px 0 8px;
  padding: clamp(20px, 4vw, 28px);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--border));
  border-radius: var(--radius-md);
  background: var(--accent-soft);
}

.contact-card__label {
  margin: 0 0 9px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.contact-link {
  display: inline-block;
  overflow-wrap: anywhere;
  color: var(--accent-strong);
  font-size: clamp(19px, 4vw, 25px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.contact-card__hint {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.help-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.help-card {
  min-width: 0;
  padding: 19px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fcfcfd;
}

.help-card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.site-footer {
  padding: 0 20px 30px;
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 2px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
}

.footer-nav a {
  font-weight: 650;
}

.noscript-note {
  max-width: var(--content);
  margin: 0 auto 30px;
  padding: 0 20px;
  color: var(--muted);
  font-size: 14px;
}

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

  .site-header {
    padding: 18px 16px 0;
  }

  .site-header__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .language-control {
    align-items: stretch;
    flex-direction: column;
  }

  .language-control select {
    width: 100%;
    max-width: none;
  }

  .page-shell {
    padding: 22px 12px 34px;
  }

  .document {
    border-radius: 18px;
  }

  .document__hero,
  .document__body {
    padding-left: 20px;
    padding-right: 20px;
  }

  .help-grid {
    grid-template-columns: 1fr;
  }

  .contact-link {
    font-size: 17px;
  }

  .site-footer {
    padding: 0 16px 24px;
  }

  .site-footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-nav {
    justify-content: flex-start;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --page-bg: #121318;
    --surface: #191b21;
    --surface-muted: #22252c;
    --text: #f4f5f7;
    --muted: #b5b8c1;
    --border: #343740;
    --accent: #aaa6ff;
    --accent-strong: #c6c3ff;
    --accent-soft: #252448;
    --success-soft: #172a21;
    --success-border: #315a43;
    --warning-soft: #2c2618;
    --warning-border: #63552d;
    --focus: #c6c3ff;
    --shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
  }

  body {
    background:
      radial-gradient(circle at top left, rgba(170, 166, 255, 0.1), transparent 34rem),
      var(--page-bg);
  }

  .brand__mark,
  .document__hero {
    background: linear-gradient(145deg, #242641, var(--surface));
  }

  .help-card {
    background: #1c1e25;
  }
}

@media print {
  :root {
    --page-bg: #ffffff;
    --surface: #ffffff;
    --text: #000000;
    --muted: #333333;
    --border: #bbbbbb;
    --accent: #000000;
    --accent-strong: #000000;
    --accent-soft: #ffffff;
    --success-soft: #ffffff;
    --success-border: #999999;
    --warning-soft: #ffffff;
    --warning-border: #999999;
    --shadow: none;
  }

  body {
    background: #ffffff;
    font-size: 12pt;
  }

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

  .page-shell {
    width: 100%;
    max-width: none;
    padding: 0;
  }

  .document {
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .document__hero,
  .document__body {
    padding: 0;
  }

  .document__hero {
    padding-bottom: 20pt;
  }

  .section + .section {
    break-before: auto;
  }

  a {
    color: #000000;
    text-decoration: underline;
  }
}
