@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

:root {
  color-scheme: light;
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  color: #101a2d;
  background: #f3f7fc;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --page: #f3f7fc;
  --paper: #ffffff;
  --section: #f7faff;
  --section-alt: #eef5ff;
  --ink: #101a2d;
  --muted: #53647c;
  --line: #d6e1ef;
  --blue: #176bff;
  --cyan: #00aeca;
  --notice: #eaf3ff;
  --code: #edf3fb;
  --table-head: #e7f0fc;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  padding: clamp(1rem, 4vw, 3rem) 1rem;
  background:
    radial-gradient(ellipse at 10% 0%, rgb(23 107 255 / 12%), transparent 36rem),
    linear-gradient(145deg, #f7faff 0%, var(--page) 60%, #eaf5fc 100%);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

main {
  width: 100%;
  min-width: 0;
  max-width: 62rem;
  margin: 0 auto;
  padding: clamp(1rem, 5vw, 3.5rem);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: var(--paper);
  box-shadow: 0 1.25rem 3rem rgb(16 26 45 / 9%);
}

header {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

header p,
.language-label {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

header a {
  display: inline-flex;
  margin-top: 0.25rem;
  color: var(--blue);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

h1,
h2,
h3 {
  color: var(--ink);
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  font-weight: 650;
  letter-spacing: normal;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

h1 {
  margin: 0.65rem 0 0.85rem;
  font-size: clamp(2rem, 4.2vw, 2.875rem);
  font-weight: 600;
  line-height: 1.1;
}

h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.75rem, 3vw, 2rem);
  font-weight: 600;
}

h3 {
  margin-top: 1.6rem;
  font-size: 1.2rem;
  font-weight: 600;
}

section {
  margin-top: 1rem;
  padding: clamp(1.1rem, 3vw, 1.75rem);
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--section);
}

section:nth-of-type(even) {
  background: var(--section-alt);
}

section + section {
  margin-top: 1rem;
}

p {
  margin-block: 0.85rem;
}

li {
  margin-block: 0.35rem;
}

ul,
ol {
  padding-left: 1.5rem;
}

.checklist {
  padding-left: 0;
  list-style: none;
}

.checklist li::before {
  margin-right: 0.65rem;
  color: var(--blue);
  content: "□";
  font-weight: 700;
}

.table-scroll {
  max-width: 100%;
  margin-block: 1rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-size: 0.94rem;
}

th,
td {
  padding: 0.7rem;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--table-head);
  font-weight: 600;
}

.notice {
  padding: 1rem 1.1rem;
  border: 1px solid rgb(23 107 255 / 22%);
  border-left: 0.25rem solid var(--blue);
  border-radius: 0.5rem;
  background: var(--notice);
  font-weight: 500;
}

code {
  padding: 0.1rem 0.3rem;
  border-radius: 0.25rem;
  background: var(--code);
  color: var(--ink);
}

:root.dark {
  color-scheme: dark;
  color: #edf4ff;
  background: #071326;
  --page: #071326;
  --paper: #0b1a30;
  --section: #0f203a;
  --section-alt: #122746;
  --ink: #edf4ff;
  --muted: #b1c2da;
  --line: #29415f;
  --blue: #72aaff;
  --cyan: #62d8ed;
  --notice: #102b4a;
  --code: #172d49;
  --table-head: #173252;
}

@media (prefers-color-scheme: dark) {
  :root:not(.light) {
    color-scheme: dark;
    color: #edf4ff;
    background: #071326;
    --page: #071326;
    --paper: #0b1a30;
    --section: #0f203a;
    --section-alt: #122746;
    --ink: #edf4ff;
    --muted: #b1c2da;
    --line: #29415f;
    --blue: #72aaff;
    --cyan: #62d8ed;
    --notice: #102b4a;
    --code: #172d49;
    --table-head: #173252;
  }
}

:root.dark body {
  background:
    radial-gradient(ellipse at 10% 0%, rgb(23 107 255 / 17%), transparent 36rem),
    linear-gradient(145deg, #071326 0%, var(--page) 65%, #0a2037 100%);
}

@media (prefers-color-scheme: dark) {
  :root:not(.light) body {
    background:
      radial-gradient(ellipse at 10% 0%, rgb(23 107 255 / 17%), transparent 36rem),
      linear-gradient(145deg, #071326 0%, var(--page) 65%, #0a2037 100%);
  }
}

:root.dark main {
  box-shadow: 0 1.25rem 3rem rgb(0 0 0 / 24%);
}

@media print {
  :root,
  :root.dark,
  :root.light {
    color-scheme: light;
    --page: #ffffff;
    --paper: #ffffff;
    --section: #ffffff;
    --section-alt: #f6f8fb;
    --ink: #101a2d;
    --muted: #3d4d62;
    --line: #cbd4df;
    --blue: #174eaa;
    --notice: #eef4fc;
    --code: #f2f4f7;
    --table-head: #eef2f7;
  }

  body {
    padding: 0;
    background: #ffffff !important;
    color: #101a2d !important;
  }

  main {
    max-width: none;
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  :root.dark main,
  :root.light main {
    box-shadow: none;
  }

  section {
    break-inside: avoid;
    box-shadow: none;
  }

  .table-scroll {
    overflow: visible;
  }

  table {
    min-width: 0;
  }
}
