:root {
  color-scheme: light dark;
  --ink: #172226;
  --muted: #5e6b70;
  --paper: #f6f8f6;
  --surface: #ffffff;
  --line: #dce5e1;
  --accent: #087e74;
  --accent-dark: #055e57;
  --accent-soft: #dff4ef;
  --warning: #fff4d8;
  --radius: 18px;
  --shadow: 0 20px 60px rgba(18, 48, 44, .09);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body { margin: 0; color: var(--ink); background: var(--paper); line-height: 1.65; }
a { color: var(--accent-dark); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: .14em; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 10; padding: .7rem 1rem; border-radius: 999px; background: var(--ink); color: white; }
.skip-link:focus { top: 1rem; }
.site-header { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 74px; padding: .8rem clamp(1rem, 4vw, 3rem); border-bottom: 1px solid color-mix(in srgb, var(--line) 82%, transparent); background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(18px); }
.brand { display: inline-flex; align-items: center; gap: .75rem; color: var(--ink); text-decoration: none; }
.brand span:last-child { display: grid; line-height: 1.1; }
.brand small { margin-top: .25rem; color: var(--muted); font-size: .74rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.brand-mark { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 13px; color: white; background: linear-gradient(145deg, #11a99b, #05675f); font-weight: 850; box-shadow: 0 10px 26px rgba(8, 126, 116, .24); }
.brand-mark.large { width: 76px; height: 76px; margin-inline: auto; border-radius: 24px; font-size: 2rem; }
.language-picker { display: flex; align-items: center; gap: .6rem; color: var(--muted); font-size: .82rem; font-weight: 700; }
.language-picker select { padding: .6rem 2rem .6rem .75rem; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); background: var(--surface); font: inherit; }
.page-shell { display: grid; grid-template-columns: minmax(210px, 270px) minmax(0, 780px); justify-content: center; gap: clamp(2rem, 6vw, 5rem); padding: 3rem clamp(1rem, 5vw, 4rem) 6rem; }
.section-navigation { position: sticky; top: 106px; align-self: start; max-height: calc(100vh - 130px); overflow: auto; padding: 1.1rem 1.15rem; border: 1px solid var(--line); border-radius: var(--radius); background: color-mix(in srgb, var(--surface) 82%, transparent); }
.section-navigation > p { margin: 0 0 .7rem; font-size: .76rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.section-navigation ol { display: grid; gap: .28rem; margin: 0; padding: 0; list-style: none; }
.section-navigation a { display: block; padding: .42rem .55rem; border-radius: 9px; color: var(--muted); font-size: .86rem; line-height: 1.3; text-decoration: none; }
.section-navigation a:hover, .section-navigation a:focus-visible { color: var(--accent-dark); background: var(--accent-soft); }
.manual-content { min-width: 0; }
.manual-content > h1 { max-width: 16ch; margin: 0 0 1.2rem; font-size: clamp(2.35rem, 7vw, 4.6rem); line-height: .98; letter-spacing: -.055em; }
.manual-content > h1 + p { padding: 1rem 1.15rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--muted); }
h2 { margin: 3.7rem 0 1rem; padding-top: .35rem; font-size: clamp(1.55rem, 4vw, 2.15rem); line-height: 1.15; letter-spacing: -.025em; }
h3 { margin: 2.2rem 0 .7rem; font-size: 1.25rem; line-height: 1.25; }
.heading-link { margin-left: .45rem; opacity: 0; color: var(--muted); font-size: .8em; text-decoration: none; }
h1:hover .heading-link, h2:hover .heading-link, h3:hover .heading-link, .heading-link:focus { opacity: 1; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1.25rem; padding-left: 1.4rem; }
li { margin: .45rem 0; padding-left: .25rem; }
blockquote { margin: 1.6rem 0; padding: 1rem 1.2rem; border: 1px solid #edd9a5; border-left: 5px solid #d89c22; border-radius: 13px; background: var(--warning); color: #493b1d; }
blockquote p { margin: 0; }
code { padding: .13rem .34rem; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; }
.site-footer { display: flex; justify-content: space-between; gap: 1rem; padding: 2rem clamp(1rem, 5vw, 4rem); border-top: 1px solid var(--line); color: var(--muted); background: var(--surface); font-size: .9rem; }
.site-footer p { margin: 0; }
.language-page { display: grid; min-height: 100vh; place-items: center; padding: 1.25rem; background: radial-gradient(circle at 50% 15%, #d7f4ee 0, transparent 34%), var(--paper); }
.language-card { width: min(680px, 100%); padding: clamp(2rem, 6vw, 4rem); border: 1px solid var(--line); border-radius: 30px; background: var(--surface); box-shadow: var(--shadow); text-align: center; }
.language-card .eyebrow { margin: 1.2rem 0 .2rem; color: var(--accent); font-size: .78rem; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.language-card h1 { margin: 0; font-size: clamp(2.2rem, 8vw, 4.4rem); line-height: 1; letter-spacing: -.05em; }
.language-card > p:not(.eyebrow, .language-support) { max-width: 48ch; margin: 1.2rem auto 1.8rem; color: var(--muted); }
.language-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; }
.language-links a { padding: .9rem; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: var(--paper); font-weight: 750; text-decoration: none; }
.language-links a:hover, .language-links a:focus-visible { border-color: var(--accent); color: var(--accent-dark); background: var(--accent-soft); }
.language-support { margin: 1.7rem 0 0; font-size: .9rem; }
@media (max-width: 820px) {
  .page-shell { grid-template-columns: 1fr; padding-top: 2rem; }
  .section-navigation { position: static; max-height: none; }
  .site-footer { flex-direction: column; }
}
@media (max-width: 520px) {
  .language-picker > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .language-links { grid-template-columns: 1fr; }
  .manual-content > h1 { font-size: 2.55rem; }
}
@media (prefers-color-scheme: dark) {
  :root { --ink: #e9f1ee; --muted: #a9b7b2; --paper: #0d1516; --surface: #142022; --line: #29383a; --accent: #58d7c8; --accent-dark: #79e5d8; --accent-soft: #193d39; --warning: #352d18; --shadow: 0 20px 60px rgba(0, 0, 0, .3); }
  blockquote { color: #f3dfae; border-color: #665326; border-left-color: #d9a238; }
  .language-page { background: radial-gradient(circle at 50% 15%, #153d39 0, transparent 34%), var(--paper); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
