
@font-face { font-family: "Readex Pro"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("/ui/readex-ar.woff2") format("woff2"); unicode-range: U+0600-06FF,U+0750-077F,U+0870-08FF,U+FB50-FDFF,U+FE70-FEFC; }
@font-face { font-family: "Readex Pro"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("/ui/readex-latin.woff2") format("woff2"); unicode-range: U+0000-00FF,U+2000-206F; }
:root {
  color-scheme: light;
  --bg: #f6f8fd;
  --canvas: #f6f8fd;
  --surface: #ffffff;
  --surface-2: #eef2fa;
  --text: #121a3e;
  --ink: #121a3e;
  --ink-2: #3d4670;
  --ink-3: #636b93;
  --muted: #3d4670;
  --line: rgba(18, 26, 62, 0.1);
  --line-strong: rgba(18, 26, 62, 0.18);
  --accent: #2638a6;
  --blue: #2638a6;
  --blue-2: #3049c2;
  --green: #0f7b6c;
  --gold: #e3a33a;
  --deep: #121b52;
  --font: "Readex Pro", "Segoe UI", Tahoma, system-ui, sans-serif;
}
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-block-start: 88px; -webkit-text-size-adjust: 100%; background: var(--canvas); }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.9; -webkit-font-smoothing: antialiased; }
a { color: var(--blue); text-decoration: none; text-underline-offset: 4px; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
main:focus { outline: none; }
h1,h2,h3,p { margin-block: 0; }
h1,h2,h3 { line-height: 1.5; font-weight: 700; text-wrap: balance; color: var(--ink); }
bdi,code { overflow-wrap: anywhere; }
code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .88em; direction: ltr; unicode-bidi: isolate; }
.wrap { width: min(100% - 40px, 1200px); margin-inline: auto; }
.container { inline-size: min(calc(100% - 40px), 960px); margin-inline: auto; }
.skip-link { position: absolute; z-index: 50; inset-block-start: 12px; inset-inline-start: 16px; padding: 12px 20px; background: var(--blue); color: white; transform: translateY(-180%); border-radius: 14px; font-weight: 600; }
.skip-link:focus { transform: translateY(0); }

/* Navigation */
.nav { position: sticky; inset-block-start: 0; inset-inline: 0; z-index: 40; background: rgba(246, 248, 253, 0.85); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-block-end: 1px solid var(--line); transition: background .2s ease; }
.nav-inner { min-block-size: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; font-size: 20px; color: var(--ink); text-decoration: none; }
.brand svg { flex-shrink: 0; }
.brand-name { font-weight: 700; font-size: 20px; color: var(--ink); letter-spacing: -0.02em; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 500; transition: color .15s ease; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--blue); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-login { color: var(--ink-2); text-decoration: none; font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 999px; transition: color .15s ease; }
.nav-login:hover { color: var(--blue); }
.nav-cta-mobile { display: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; font-family: var(--font); font-weight: 600; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: transform .15s ease, background-color .15s ease; white-space: nowrap; line-height: 1.4; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 4px 14px rgba(38, 56, 166, 0.25); }
.btn-primary:hover { background: var(--blue-2); }
.btn-sm { font-size: 14px; padding: 8px 20px; min-block-size: 40px; }

/* In-page table of contents (no scripts; native details/summary accordion) */
.doc-toc { max-inline-size: 920px; margin-inline: auto; margin-block-start: 32px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.doc-toc summary { display: flex; align-items: center; gap: 10px; padding: 16px 24px; cursor: pointer; list-style: none; font-weight: 600; color: var(--blue); }
.doc-toc summary::-webkit-details-marker { display: none; }
.doc-toc summary::before { content: "☰"; font-size: 15px; }
.doc-toc[open] summary::before { content: "▾"; }
.doc-toc nav { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 4px 24px 20px; }
.doc-toc nav a { font-size: 14.5px; color: var(--ink-2); }
.doc-toc nav a:hover { color: var(--blue); }

/* Document Layout */
.document-layout { max-inline-size: 920px; padding-block: 56px 88px; }
.document-header { padding-block-end: 36px; border-block-end: 1px solid var(--line); }
.document-header h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 700; color: var(--ink); line-height: 1.35; margin: 0; }
.document-intro { margin-block-start: 18px; font-size: 18px; line-height: 1.8; color: var(--ink-2); }
.document-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 28px; margin-block-start: 24px; color: var(--ink-3); font-size: 14px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; color: var(--blue); background: var(--surface-2); padding: 4px 14px; border-radius: 999px; margin-block-end: 14px; border: 1px solid rgba(38, 56, 166, 0.08); }
.document-body { min-inline-size: 0; }
.document-body section { margin-block-start: 36px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 32px 36px; box-shadow: 0 1px 3px rgba(18, 26, 62, 0.04); }
.document-body section h2, .document-body section h3 { margin-block-end: 16px; font-size: 21px; color: var(--ink); }
.document-body p, .document-body li { color: var(--ink-2); line-height: 1.9; font-size: 16px; }
.document-body p + p { margin-block-start: 16px; }
.document-body strong { color: var(--ink); font-weight: 600; }
.document-body ul { padding-inline-start: 24px; margin-block: 0; }
.document-body li + li { margin-block-start: 10px; }
.scope-list { margin-block: 24px; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.scope-list > div { padding: 18px 24px; background: var(--surface-2); }
.scope-list > div + div { border-block-start: 1px solid var(--line); }
.scope-list dt { font-weight: 600; color: var(--ink); }
.scope-list dt code { background: rgba(38, 56, 166, 0.08); color: var(--blue); padding: 3px 10px; border-radius: 6px; font-weight: 600; font-size: 0.9em; }
.scope-list dd { margin-inline: 0; margin-block-start: 8px; color: var(--ink-2); font-size: 15px; }
.english-document { border-block-start: 2px dashed var(--line); padding-block-start: 56px; margin-block-start: 64px; }
.english-document h2 { font-size: 28px; }

/* Footer */
.footer { border-block-start: 1px solid var(--line); background: var(--surface); margin-block-start: 96px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 48px 32px; padding-block: 64px 40px; }
.footer-tag { color: var(--ink-3); font-size: 14px; margin-block-start: 12px; line-height: 1.6; max-width: 260px; }
.footer nav { display: flex; flex-direction: column; gap: 12px; }
.footer nav strong { color: var(--ink); font-size: 14px; font-weight: 700; margin-block-end: 4px; }
.footer nav a { color: var(--ink-2); text-decoration: none; font-size: 14px; transition: color .15s ease; }
.footer nav a:hover { color: var(--blue); }
.footer-bottom { border-block-start: 1px solid var(--line); padding-block: 24px; color: var(--ink-3); font-size: 13px; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .document-body section { padding: 24px; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .document-meta { flex-direction: column; align-items: flex-start; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
