/* sonansu.space — one stylesheet for every page. */

:root {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Songti SC", "STSong", serif;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #86868b;
  --line: #d2d2d7;
  --paper: #fff;
  --paper-2: #f5f5f7;
  --link: #0066cc;
  --nav-h: 48px;
  --max: 1080px;
  --gutter: max(20px, 4vw);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 8px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -.012em;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid #0071e3; outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: #fff; color: #000; padding: 10px 16px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- Global nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 60;
  height: var(--nav-h);
  color: var(--ink);
  background: rgba(250, 250, 252, .78);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, .08);
  transition: background-color .4s, color .4s, border-color .4s;
}
.nav.is-dark { color: #f5f5f7; background: rgba(22, 22, 23, .72); border-color: rgba(255, 255, 255, .08); }
.nav-inner { max-width: 1024px; height: 100%; margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 9px; font-size: 18px; font-weight: 600; letter-spacing: -.02em; text-decoration: none; }
.brand svg { width: 22px; height: 22px; }
.nav-links { display: flex; gap: 28px; margin: 0 0 0 auto; padding: 0; list-style: none; }
.nav-links a { font-size: 13px; text-decoration: none; opacity: .82; transition: opacity .2s; }
.nav-links a:hover, .nav-links a[aria-current="true"] { opacity: 1; }
.lang-switch { display: flex; gap: 2px; padding: 2px; border-radius: 999px; background: rgba(127, 127, 127, .16); }
.lang-switch button { border: 0; background: none; cursor: pointer; font-size: 12px; line-height: 1; padding: 6px 9px; border-radius: 999px; opacity: .78; }
.lang-switch button[aria-pressed="true"] { opacity: 1; background: #fff; color: #1d1d1f; box-shadow: 0 1px 3px rgba(0, 0, 0, .14); }
.nav-toggle { display: none; width: 40px; height: 40px; margin-right: -10px; border: 0; background: none; cursor: pointer; }
.nav-toggle span { display: block; width: 18px; height: 1.5px; margin: 5px auto; background: currentColor; border-radius: 1px; transition: transform .3s var(--ease); }
.nav.open .nav-toggle span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav.open .nav-toggle span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

@media (max-width: 767px) {
  html.nav-open { overflow: hidden; }
  .nav-inner { gap: 14px; }
  .lang-switch { margin-left: auto; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    display: flex; flex-direction: column; gap: 0; margin: 0;
    height: calc(100vh - var(--nav-h)); height: calc(100dvh - var(--nav-h));
    padding: 28px max(40px, var(--gutter)) 40px;
    overflow-y: auto; overscroll-behavior: contain;
    color: #f5f5f7; background: #000;
    visibility: hidden; opacity: 0; transform: translateY(-12px); pointer-events: none;
    transition: opacity .22s var(--ease), transform .28s var(--ease), visibility 0s .28s;
  }
  .nav.open, .nav.open.is-dark { color: #f5f5f7; background: #000; border-color: transparent; }
  .nav.open .nav-links { visibility: visible; opacity: 1; transform: none; pointer-events: auto; transition-delay: 0s; }
  .nav-links li { opacity: 0; transform: translateY(-8px); transition: opacity .18s var(--ease), transform .24s var(--ease); }
  .nav.open .nav-links li { opacity: 1; transform: none; transition-delay: .08s; }
  .nav.open .nav-links li:nth-child(2) { transition-delay: .115s; }
  .nav.open .nav-links li:nth-child(3) { transition-delay: .15s; }
  .nav.open .nav-links li:nth-child(4) { transition-delay: .185s; }
  .nav-links a { display: block; padding: 10px 0; font-size: 30px; line-height: 1.25; font-weight: 600; letter-spacing: -.025em; opacity: 1; }
}

/* ---------- Motion helpers ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .nav, .nav-links, .nav-links li, .nav-toggle span { transition: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* ---------- Shared chapter layout ---------- */
.chapter {
  --c-bg: #fff; --c-ink: #1d1d1f; --c-ink2: #6e6e73; --c-ink3: #86868b;
  --c-accent: #0071e3; --c-on-accent: #fff; --c-link: #0066cc; --c-tile: #f5f5f7;
  position: relative;
  padding: clamp(96px, 13vw, 168px) 0 clamp(88px, 11vw, 150px);
  color: var(--c-ink);
  background: var(--c-bg);
  overflow: clip;
}
.chapter-head { max-width: 1000px; margin: 0 auto; padding: 0 var(--gutter); text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 20px; color: var(--c-ink2); font-size: clamp(19px, 2vw, 24px); font-weight: 600; letter-spacing: -.015em; }
.eyebrow img { width: 52px; height: 52px; border-radius: 23%; box-shadow: 0 6px 18px rgba(0, 0, 0, .14); }
.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .02em; border: 1px solid currentColor; opacity: .9; }
.headline { margin: 0; font-size: clamp(42px, 7vw, 88px); line-height: 1.05; font-weight: 700; letter-spacing: -.028em; }
.subhead { margin: 0; font-size: clamp(32px, 4.6vw, 56px); line-height: 1.08; font-weight: 700; letter-spacing: -.024em; }
.lede { max-width: 760px; margin: 26px auto 0; font-size: clamp(19px, 2.1vw, 23px); line-height: 1.5; color: var(--c-ink2); letter-spacing: -.01em; }
.aside { max-width: 680px; margin: 36px auto 0; padding: 0 var(--gutter); color: var(--c-ink2); font-size: 17px; line-height: 1.6; text-align: center; }
.chapter-head .aside { padding: 0; }
.ctas { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 30px; margin-top: 36px; padding: 0 var(--gutter); }
.chapter-head .ctas { padding: 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 22px; border: 0; border-radius: 999px;
  background: var(--c-accent); color: var(--c-on-accent);
  font-size: 17px; font-weight: 500; text-decoration: none; cursor: pointer;
  transition: filter .2s, transform .2s;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(.97); }
.btn.big { min-height: 56px; padding: 0 34px; font-size: 19px; }
.more { color: var(--c-link); font-size: 17px; text-decoration: none; }
.more::after { content: "\00a0›"; }
.more:hover { text-decoration: underline; }
.platforms { margin: 22px 0 0; padding: 0 var(--gutter); color: var(--c-ink3); font-size: 14px; text-align: center; }
.chapter-head .platforms { padding: 0; }
.fineprint { max-width: 760px; margin: 40px auto 0; padding: 0 var(--gutter); color: var(--c-ink3); font-size: 13px; line-height: 1.55; text-align: center; }
.doc-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin: 22px 0 0; font-size: 15px; }
.doc-links a { color: var(--c-link); text-decoration: none; }
.doc-links a:hover { text-decoration: underline; }

/* Segmented control */
.seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(127, 127, 127, .14); }
.seg button { border: 0; background: none; cursor: pointer; padding: 8px 16px; border-radius: 999px; font-size: 15px; transition: background .25s, box-shadow .25s; }
.seg button[aria-pressed="true"] { background: #fff; color: #1d1d1f; font-weight: 600; box-shadow: 0 1px 4px rgba(0, 0, 0, .14); }

/* A photo shown whole, at its own shape */
.print { margin: 0; }
.print img { width: 100%; height: auto; border-radius: 18px; }
.print figcaption { margin-top: 10px; color: var(--c-ink3); font-size: 12px; text-align: right; }
.photo-credit { position: absolute; right: 16px; bottom: 12px; z-index: 3; margin: 0; color: rgba(255, 255, 255, .62); font-size: 11px; letter-spacing: .02em; text-shadow: 0 1px 2px rgba(0, 0, 0, .4); }

/* Balanced line breaks where supported */
.hero-title, .hero-sub, .headline, .subhead, .lede, .hue-card h3, .doc h2, .doc-head h1 { text-wrap: balance; }
p, li { text-wrap: pretty; }

/* ---------- Home ---------- */
.hero { position: relative; display: grid; place-items: center; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: #05070d; color: #f5f5f7; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .3), rgba(0, 0, 0, .12) 40%, rgba(0, 0, 0, .62)); pointer-events: none; }
.hero-copy { position: relative; z-index: 2; width: min(980px, 100%); padding: var(--nav-h) var(--gutter) 0; text-align: center; }
.hero-kicker { margin: 0 0 6px; font-size: clamp(20px, 2.4vw, 28px); font-weight: 600; color: #d2d2d7; }
.hero-title {
  margin: 0; font-size: clamp(64px, min(17vw, 24vh), 200px); line-height: .95; font-weight: 700; letter-spacing: -.05em;
  background: linear-gradient(180deg, #fff 30%, #b9c3d6 120%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { max-width: 720px; margin: 28px auto 0; font-size: clamp(19px, 2.3vw, 26px); line-height: 1.45; color: #e8e8ed; text-shadow: 0 1px 14px rgba(0, 0, 0, .55); }
.scroll-cue { position: absolute; left: 50%; bottom: 28px; z-index: 2; transform: translateX(-50%); color: #a1a1a6; font-size: 13px; text-decoration: none; }
.scroll-cue::after { content: ""; display: block; width: 9px; height: 9px; margin: 10px auto 0; border-right: 1.5px solid; border-bottom: 1.5px solid; transform: rotate(45deg); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 50% { transform: translateY(5px) rotate(45deg); } }

.ch-eng {
  --c-bg: #0a1120; --c-ink: #edf2fa; --c-ink2: #9eadc4; --c-ink3: #7d8ba3;
  --c-accent: #3ddbb0; --c-on-accent: #04241b; --c-link: #5fe3c0; --c-tile: #111b2e;
}
.ch-eng .eyebrow { color: var(--c-accent); }
.home-eng { background: radial-gradient(ellipse 70% 55% at 50% 0%, #133049 0%, #0a1120 72%); }

.ch-appshome { --c-bg: #f5f5f7; }
.app-icons { display: flex; flex-wrap: wrap; justify-content: center; gap: 26px clamp(24px, 4vw, 48px); max-width: var(--max); margin: clamp(48px, 6vw, 80px) auto 0; padding: 0 var(--gutter); }
.app-icons a { display: flex; flex-direction: column; align-items: center; gap: 12px; text-decoration: none; font-size: 15px; }
.app-icons img { width: clamp(64px, 8vw, 92px); height: auto; aspect-ratio: 1; border-radius: 23%; box-shadow: 0 14px 34px rgba(0, 0, 0, .16); transition: transform .35s var(--ease); }
.app-icons a:hover img { transform: translateY(-5px); }
@media (max-width: 600px) { .app-icons { display: grid; grid-template-columns: repeat(5, auto); justify-content: center; gap: 10px; } .app-icons a { gap: 8px; font-size: 11px; } .app-icons img { width: 56px; } }

.ski-home {
  --paper-snow: #fbf4ea; --draw: #33263a; --pencil: #dccbc2; --ember: #f08a3c;
  --c-bg: #fbf4ea; --c-ink: #33263a; --c-ink2: #6c5b68; --c-ink3: #8d7d88; --c-link: #b4542a;
}
.ski-home .eyebrow { color: #c4612b; }
.slope { max-width: 1120px; margin: clamp(40px, 5vw, 72px) auto 0; padding: 0 var(--gutter); }
.slope svg { width: 100%; height: auto; overflow: visible; color: var(--draw); }
.slope .ridge { fill: none; stroke: #b9a0ad; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.slope .ridge.snowcap { stroke: var(--draw); stroke-width: 2.4; }
.slope-ghost { fill: none; stroke: var(--pencil); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 2 10; }
.slope-ink { fill: none; stroke: var(--draw); stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.slope use[href="#pine"] { color: #2c4a42; }
.spray circle { fill: var(--draw); opacity: 0; }
.moving .spray circle { animation: spray .45s ease-out infinite; }
.moving .spray circle:nth-child(2) { animation-delay: .1s; } .moving .spray circle:nth-child(3) { animation-delay: .2s; } .moving .spray circle:nth-child(4) { animation-delay: .3s; }
@keyframes spray { 0% { opacity: .7; transform: translate(0, 0); } 100% { opacity: 0; transform: translate(-10px, -6px); } }
.ski-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; max-width: 900px; margin: clamp(40px, 5vw, 64px) auto 0; padding: 0 var(--gutter); text-align: center; }
.ski-stats b { display: block; font-size: clamp(40px, 5vw, 64px); line-height: 1.05; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ski-stats .stat > span { display: block; margin-top: 6px; color: var(--c-ink2); }
@media (max-width: 640px) { .ski-stats { grid-template-columns: 1fr; gap: 26px; } }

.contact-sec { --c-bg: #fff; }
.contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 40px; padding: 0 var(--gutter); }
.pill { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: background .2s, border-color .2s; }
.pill:hover { background: var(--paper-2); border-color: #c7c7cc; }
.pill svg { width: 18px; height: 18px; }
.mail-line { margin: 18px 0 0; text-align: center; color: var(--ink-2); font-size: 15px; }
.mail-line a { color: inherit; text-decoration: none; }
.mail-line a:hover { text-decoration: underline; }
.motto { max-width: 640px; margin: 56px auto 0; padding: 0 var(--gutter); color: var(--ink-3); font-size: 17px; font-style: italic; text-align: center; }

/* ---------- Electrical engineering (written for employers) ---------- */
.eng-page { padding-top: calc(var(--nav-h) + clamp(56px, 8vw, 110px)); }
.eng-top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: center; gap: clamp(36px, 6vw, 88px); max-width: 1080px; margin: 0 auto; padding: 0 var(--gutter); }
.eng-intro .kicker { margin: 0 0 16px; color: var(--c-accent); font-size: clamp(17px, 1.8vw, 20px); font-weight: 600; }
.eng-intro .lede { margin: 26px 0 0; }
.eng-intro .ctas { justify-content: flex-start; padding: 0; }
.eng-print { justify-self: end; width: 100%; max-width: 400px; }
.eng-print img { box-shadow: 0 34px 80px rgba(0, 0, 0, .5); }
@media (max-width: 760px) {
  .eng-top { grid-template-columns: 1fr; }
  .eng-print { justify-self: center; max-width: 320px; }
}
.cv { max-width: 1080px; margin: clamp(80px, 10vw, 130px) auto 0; padding: 0 var(--gutter); }
.cv-row { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 30px 0; border-top: 1px solid rgba(160, 190, 230, .16); }
.cv-row:last-child { border-bottom: 1px solid rgba(160, 190, 230, .16); }
.cv dt { padding-top: 4px; color: var(--c-accent); font-size: 15px; font-weight: 600; }
.cv dd { margin: 0; font-size: 19px; line-height: 1.5; }
.cv dd b { display: block; font-size: 24px; letter-spacing: -.015em; }
.cv dd b + span { color: var(--c-ink2); }
.cv dd .more { margin-left: 6px; white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.chips li { padding: 8px 15px; border-radius: 999px; background: var(--c-tile); box-shadow: inset 0 0 0 1px rgba(120, 170, 220, .16); font-size: 15px; }
@media (max-width: 640px) { .cv-row { grid-template-columns: 1fr; gap: 12px; padding: 24px 0; } }
.eng-next { --c-bg: #fff; }
.project { display: grid; grid-template-columns: 64px 1fr; gap: 22px; max-width: 760px; margin: 48px auto 0; padding: 28px 30px; border-radius: 24px; background: #f5f5f7; }
.project img { width: 64px; height: 64px; border-radius: 23%; }
.project h3 { margin: 4px 0 8px; font-size: 24px; letter-spacing: -.015em; }
.project p { margin: 0 0 12px; color: var(--ink-2); font-size: 17px; line-height: 1.55; }
.project .project-meta { margin: 0; color: var(--ink-3); font-size: 14px; }
.project-next { max-width: 760px; margin: 28px auto 0; padding: 0 var(--gutter); color: var(--ink-3); font-size: 15px; text-align: center; }
@media (max-width: 560px) { .project { grid-template-columns: 1fr; margin-left: var(--gutter); margin-right: var(--gutter); } }
.eng-next .tbc { max-width: 760px; margin: 0 auto; padding: 48px 40px; border-radius: 28px; box-shadow: inset 0 0 0 2px #d2d2d7; text-align: center; }
.eng-next .tbc .subhead { color: #86868b; }
.eng-next .tbc p { margin: 16px 0 0; color: var(--ink-2); font-size: 19px; }

/* ---------- Apps ---------- */
.apps-hero { padding-top: calc(var(--nav-h) + clamp(64px, 9vw, 120px)); }

/* Each app keeps its own colours; the policy pages reuse them. */
.ch-hue {
  --c-bg: #f6f0e4; --c-ink: #2b2824; --c-ink2: #625b51; --c-ink3: #7d756a;
  --c-accent: #2b2824; --c-on-accent: #f6f0e4; --c-link: #2a64a0; --c-tile: #fffaf1;
}
.ch-kj {
  --c-bg: #fff; --c-ink: #1d1d1f; --c-ink2: #6e6e73;
  --c-accent: #f58a1f; --c-on-accent: #1d1d1f; --c-link: #b85500; --c-tile: #fff4e8;
}
.ch-kos {
  --c-ink: #f1e6cc; --c-ink2: #c7b593; --c-ink3: #a2916f;
  --c-accent: #d9a752; --c-on-accent: #1b130b; --c-link: #e8bd6c; --c-tile: rgba(255, 236, 200, .06);
  --c-bg: radial-gradient(ellipse 90% 60% at 50% 0%, #3d2815 0%, #17110c 62%);
}
.ch-kos .headline, .ch-kos .subhead { font-family: var(--serif); letter-spacing: -.01em; }
.ch-kos .eyebrow, .ch-kos .lede { color: var(--c-ink2); }
.ch-kos .eyebrow span:first-of-type { color: var(--c-ink); }
.ch-pop {
  --c-ink: #1d1d1f; --c-ink2: #5f5c73; --c-ink3: #7b7890;
  --c-accent: #5048d0; --c-on-accent: #fff; --c-link: #4038bf; --c-tile: rgba(255, 255, 255, .62);
  --c-bg: linear-gradient(180deg, #e8e5fb 0%, #f7e7ef 48%, #dff4f1 100%);
}
.ch-say { --c-bg: #fbfbfd; --c-accent: #4f46e5; --c-on-accent: #fff; --c-link: #4338ca; --c-tile: #fff; }
.ch-fc { --c-bg: linear-gradient(180deg, #eef7fb, #f6fbfa); --c-accent: #2f7fd8; --c-link: #1f66b8; }

/* Huemoji: three things it does, drawn the way the app is drawn */
.hue-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: var(--max); margin: clamp(56px, 7vw, 96px) auto 0; padding: 0 var(--gutter); }
.hue-card { padding: 22px 24px 28px; background: var(--c-tile); border: 2px solid #2b2824; border-radius: 26px 10px 28px 12px / 12px 26px 10px 28px; box-shadow: 5px 6px 0 rgba(43, 40, 36, .1); }
.hue-card:nth-child(2) { border-radius: 12px 28px 10px 26px / 26px 10px 28px 12px; }
.hue-art { width: 100%; height: auto; margin: 0 0 18px; padding: 14px 8px 6px; border-radius: 18px; background: #f6f0e4; overflow: visible; }
.hue-art text { font-family: var(--font); }
.hue-art .hue-t { font-size: 15px; font-weight: 600; }
.hue-art .hue-ticks { font-size: 13px; font-variant-numeric: tabular-nums; }
.hue-art .hue-num { font-size: 19px; font-weight: 700; }
.hue-art .hue-z { font-size: 17px; font-weight: 700; font-style: italic; }
.hue-card h3 { margin: 0 0 8px; font-size: clamp(21px, 2.1vw, 25px); line-height: 1.2; letter-spacing: -.015em; }
.hue-card p { margin: 0; color: var(--c-ink2); font-size: 16px; line-height: 1.55; }
.hue-more { max-width: 720px; margin: 48px auto 0; padding: 0 var(--gutter); color: var(--c-ink2); font-size: 19px; text-align: center; }
@media (max-width: 900px) { .hue-features { grid-template-columns: 1fr; max-width: 520px; } }

/* KuaiJi: three plain points */
.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; max-width: 960px; margin: 56px auto 0; padding: 0 var(--gutter); list-style: none; }
.points li { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; font-size: 17px; line-height: 1.45; }
.points .glyph { width: 34px; height: 34px; color: #f07a0e; }
@media (max-width: 700px) { .points { grid-template-columns: 1fr; gap: 22px; } .points li { flex-direction: row; text-align: left; } .points .glyph { flex: none; } }

/* Kostky: the tour, tavern to castle */
.candle-glow { position: absolute; left: 50%; top: 4%; width: 60vmax; height: 60vmax; transform: translateX(-50%); background: radial-gradient(circle, rgba(255, 170, 70, .16), transparent 60%); pointer-events: none; animation: flicker 4s ease-in-out infinite; }
@keyframes flicker { 30% { opacity: .82; } 55% { opacity: 1; } 75% { opacity: .9; } }
.inspired { max-width: 720px; margin: 20px auto 0; color: var(--c-link); font-family: var(--serif); font-size: clamp(18px, 2vw, 22px); font-style: italic; }
.kos-shot { max-width: 540px; margin: 56px auto 0; padding: 0 var(--gutter); }
.kos-shot img { width: 100%; height: auto; border-radius: 28px; box-shadow: 0 0 0 1px rgba(217, 167, 82, .3), 0 40px 90px rgba(0, 0, 0, .6); }
.ch-kos .doc-links { margin-top: 40px; }

/* Popit: one icon, one button */
.pop-icon { width: 128px; height: 128px; margin: 0 auto 26px; border-radius: 23%; box-shadow: 0 24px 50px rgba(80, 72, 208, .28); }
.ch-pop .eyebrow { margin-bottom: 14px; }
.pop-try { margin: 18px 0 0; color: var(--c-ink2); font-size: 15px; }

/* ---------- Skiing: warm, hand-drawn ---------- */
.paper, .night { position: relative; padding: clamp(84px, 10vw, 136px) 0 clamp(76px, 9vw, 124px); overflow: clip; }
.paper {
  --paper-snow: #fbf4ea; --c-bg: #fbf4ea; --c-ink: #33263a; --c-ink2: #6c5b68; --c-ink3: #8d7d88; --c-link: #b4542a;
  color: var(--c-ink); background: var(--c-bg);
}
.night {
  --c-ink: #fbefe2; --c-ink2: #d4c1cf; --c-ink3: #a996ab;
  color: var(--c-ink);
  background: radial-gradient(ellipse 70% 55% at 50% 112%, rgba(255, 146, 66, .34), transparent 62%), linear-gradient(180deg, #1c1730, #2b2443);
}
.ski-page .footer { border-top: 0; }

.ski-hero { position: relative; height: 100vh; height: 100svh; min-height: 580px; overflow: hidden; background: #221d3a; }
.dusk { position: absolute; inset: 0; width: 100%; height: 100%; }
.ski-hero-copy { position: relative; z-index: 2; padding: calc(var(--nav-h) + clamp(36px, 9vh, 112px)) var(--gutter) 0; color: #fff6ea; text-align: center; }
.ski-hero .headline { font-size: clamp(56px, 9vw, 124px); text-shadow: 0 2px 30px rgba(30, 20, 50, .35); }
@media (max-width: 600px) { .ski-hero { height: 74svh; min-height: 500px; } }
.ski-facts { margin: 16px 0 0; color: #f6dfcf; font-size: clamp(16px, 1.8vw, 20px); font-variant-numeric: tabular-nums; }
.dusk .stars circle { animation: twinkle 3.2s ease-in-out infinite; }
.dusk .stars circle:nth-child(3n) { animation-delay: -1.1s; } .dusk .stars circle:nth-child(3n+1) { animation-delay: -2.2s; }
@keyframes twinkle { 50% { opacity: .35; } }
.flames { transform-box: view-box; transform-origin: 742px 748px; animation: fire 1.7s ease-in-out infinite; }
@keyframes fire { 25% { transform: scale(.95, 1.07); } 50% { transform: scale(1.04, .95); } 75% { transform: scale(.98, 1.04); } }
.fire-glow { animation: glow 2.6s ease-in-out infinite; }
@keyframes glow { 50% { opacity: .72; } }
.sparks circle { transform-box: fill-box; animation: spark 2.4s ease-out infinite; opacity: 0; }
.sparks circle:nth-child(2) { animation-delay: .8s; } .sparks circle:nth-child(3) { animation-delay: 1.6s; }
@keyframes spark { 0% { opacity: 0; transform: translate(0, 10px); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(6px, -46px); } }
.smoke { animation: smoke 5s ease-in-out infinite; }
@keyframes smoke { 50% { opacity: .25; transform: translate(4px, -6px); } }

.season-seg { margin-top: 30px; background: rgba(51, 38, 58, .08); }
.figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px 28px; max-width: 980px; margin: clamp(48px, 6vw, 80px) auto 0; padding: 0 var(--gutter); text-align: center; }
.figure b, .rec-value b { position: relative; display: inline-block; font-size: clamp(46px, 6vw, 76px); line-height: 1.05; font-weight: 700; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.figure b::after { content: ""; position: absolute; left: 4%; right: 4%; bottom: -10px; height: 10px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 10' preserveAspectRatio='none'%3E%3Cpath d='M2 6 Q20 1 38 5 T76 5 T118 4' fill='none' stroke='%23f08a3c' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.figure > span { display: block; margin-top: 16px; color: var(--c-ink2); font-size: 17px; }
@media (max-width: 700px) { .figures { grid-template-columns: 1fr 1fr; gap: 40px 16px; } }

.record-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: var(--max); margin: clamp(44px, 5vw, 68px) auto 0; padding: 0 var(--gutter); }
.record { display: flex; flex-direction: column; gap: 6px; padding: 26px 26px 24px; border: 2px solid rgba(251, 239, 226, .7); border-radius: 20px 8px 22px 10px / 10px 20px 8px 22px; background: rgba(255, 255, 255, .04); }
.record:nth-child(even) { border-radius: 8px 22px 10px 20px / 20px 10px 22px 8px; }
.rec-label { color: var(--c-ink2); font-size: 15px; }
.rec-value { margin: 0; }
.rec-value b { font-size: clamp(40px, 4.6vw, 58px); }
.rec-value small { color: #ffb36b; font-size: 20px; font-weight: 600; }
.record time { color: var(--c-ink3); font-size: 14px; }
@media (max-width: 860px) { .record-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .record-grid { grid-template-columns: 1fr; } }

.areas-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 470px); align-items: start; gap: clamp(28px, 4vw, 48px); max-width: var(--max); margin: clamp(44px, 5vw, 68px) auto 0; padding: 0 var(--gutter); }
.area-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.area {
  display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; align-items: center; gap: 18px; width: 100%;
  padding: 14px 20px 14px 14px; text-align: left; color: var(--c-ink); cursor: pointer;
  background: #fff; border: 2px solid var(--c-ink); border-radius: 18px 6px 20px 8px / 8px 18px 6px 20px; box-shadow: 5px 6px 0 rgba(51, 38, 58, .09);
  transition: background .25s, box-shadow .25s, transform .25s var(--ease);
}
.area-list li:nth-child(even) .area { border-radius: 6px 18px 8px 20px / 18px 8px 20px 6px; }
.area:hover { transform: translate(-1px, -2px); box-shadow: 7px 9px 0 rgba(51, 38, 58, .1); }
.area[aria-pressed="true"] { background: #fff1e0; box-shadow: 5px 6px 0 #f08a3c; }
.area-art { width: 84px; height: auto; overflow: visible; }
.area-art .hill { fill: #f6e5da; stroke: var(--c-ink); stroke-width: 2.4; stroke-linejoin: round; }
.area-art .cap { fill: #fff; stroke: var(--c-ink); stroke-width: 1.6; stroke-linejoin: round; }
.area-art .pole { stroke: var(--c-ink); stroke-width: 2; stroke-linecap: round; }
.area-text, .area-text > span { display: block; }
.area-name { display: flex !important; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: clamp(19px, 2vw, 23px); font-weight: 700; line-height: 1.2; letter-spacing: -.015em; }
.ribbon { padding: 3px 10px; border-radius: 999px; background: #f08a3c; color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.area-resorts { margin-top: 4px; font-size: 16px; font-weight: 500; }
.area-where { margin-top: 3px; color: var(--c-ink2); font-size: 15px; }
.area-seasons { margin-top: 2px; color: var(--c-ink3); font-size: 13px; font-variant-numeric: tabular-nums; }
.area-days { min-width: 56px; text-align: center; }
.area-days b { display: block; font-size: clamp(32px, 3.6vw, 44px); line-height: 1; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.area-days > span { color: var(--c-ink2); font-size: 14px; }

/* The map: a hand-drawn sheet that zooms to the picked ski area */
.atlas { position: sticky; top: calc(var(--nav-h) + 24px); margin: 0; }
.atlas-svg { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1.08; border: 2px solid var(--c-ink); border-radius: 22px 8px 24px 10px / 10px 24px 8px 22px; background: #d8e6e6; box-shadow: 6px 7px 0 rgba(51, 38, 58, .1); }
.atlas .sea { fill: #d8e6e6; }
.atlas .land { fill: #fdf6ec; stroke: #33263a; stroke-width: 1.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.atlas .border { fill: none; stroke: #a9939f; stroke-width: 1.3; stroke-dasharray: 5 5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.atlas .lake { fill: #c9dde0; stroke: #6f93a3; stroke-width: 1.2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.atlas .river { fill: none; stroke: #86aebd; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.atlas .waves path { fill: none; stroke: #9fbcc4; stroke-width: 1.6; stroke-linecap: round; }
#pk path { fill: #f3e2d6; stroke: #5d4b5e; stroke-width: 1.5; stroke-linejoin: round; }
#pk .cap { fill: #fff; stroke-width: 1.1; }
.atlas .peaks.fine { opacity: 0; transition: opacity .6s; }
.atlas.zoomed .peaks.fine { opacity: 1; }
.atlas .hills path { fill: none; stroke: #b49fac; stroke-width: 1.5; stroke-linecap: round; }
.atlas:not(.zoomed) .city.minor { display: none; }
#hut path { stroke: #33263a; stroke-width: 1.5; stroke-linejoin: round; }
#hut .hut-wall { fill: #9a5b3a; }
#hut .hut-roof { fill: none; stroke-width: 2.2; stroke-linecap: round; }
#hut .hut-win { fill: #ffcf6e; stroke-width: 1; }
.atlas text { font-family: var(--font); paint-order: stroke; stroke: #fdf6ec; stroke-width: 4px; stroke-linejoin: round; }
.atlas .city circle { fill: #8d7d88; }
.atlas .city text { fill: #8d7d88; font-size: 12px; }
.atlas .city.home circle { fill: #33263a; }
.atlas .city.home text { fill: #33263a; font-weight: 600; }
.atlas-area { cursor: pointer; }
.atlas-area .flag { transition: opacity .3s; }
.atlas-area .pole { stroke: #33263a; stroke-width: 2; stroke-linecap: round; }
.atlas-area .pennant { stroke: #33263a; stroke-width: 1.2; stroke-linejoin: round; }
.atlas-area .flag circle { fill: #33263a; }
.atlas-area .resorts { display: none; }
.atlas-area .resort text { fill: #33263a; font-size: 13px; font-weight: 700; }
.atlas-area.on .resorts { display: block; }
.atlas.zoomed .atlas-area:not(.on) .flag { opacity: .45; }
.atlas-area.hint .flag { opacity: 1; animation: wave .8s ease-in-out infinite; }
@keyframes wave { 50% { translate: 0 -3px; } }
.atlas-reset {
  position: absolute; left: 14px; top: 14px; padding: 7px 14px; border: 2px solid var(--c-ink); border-radius: 999px;
  background: #fff; color: var(--c-ink); font-size: 14px; font-weight: 600; cursor: pointer;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.atlas.zoomed .atlas-reset { opacity: 1; visibility: visible; }

.prints { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 0 40px; max-width: var(--max); margin: clamp(64px, 8vw, 110px) auto 0; padding: 0 var(--gutter); }
.polaroid { position: relative; width: 100%; max-width: 280px; margin: 0; padding: 12px 12px 40px; background: #fff; box-shadow: 0 18px 40px rgba(51, 38, 58, .18); rotate: -3deg; }
.polaroid + .polaroid { margin-top: 36px; rotate: 4deg; }
.polaroid::before { content: ""; position: absolute; top: -12px; left: 50%; width: 92px; height: 26px; margin-left: -46px; background: rgba(240, 138, 60, .38); rotate: -5deg; }
.polaroid img { display: block; width: 100%; height: auto; }
.prints-credit { flex-basis: 100%; margin: 26px 0 0; color: var(--c-ink3); font-size: 12px; text-align: center; }
@media (max-width: 860px) {
  .areas-layout { grid-template-columns: 1fr; }
  .atlas { grid-row: 1; top: var(--nav-h); z-index: 5; padding: 8px 0 10px; background: var(--c-bg); }
  .atlas-svg { aspect-ratio: 4 / 3; }
  .prints { gap: 0 18px; }
  .polaroid { max-width: min(44%, 240px); }
}
@media (max-width: 560px) {
  .area { grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; padding: 12px 14px 12px 10px; }
  .area-art { width: 56px; }
  .atlas-svg { aspect-ratio: 3 / 2; }
}

.ski-end { padding-top: clamp(60px, 8vw, 100px); text-align: center; }
.end-fire { width: min(420px, 86vw); height: auto; margin: 0 auto; overflow: visible; }
.end-fire .flames { transform-origin: 210px 196px; }
.end-line { margin: 22px 0 0; padding: 0 var(--gutter); font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; letter-spacing: -.015em; }

/* ---------- Footer ---------- */
.footer { padding: 36px 0 28px; background: #f5f5f7; color: #6e6e73; font-size: 12px; line-height: 1.5; border-top: 1px solid #e3e3e8; }
.footer-inner { max-width: 1024px; margin: 0 auto; padding: 0 var(--gutter); }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-bottom: 22px; border-bottom: 1px solid #d2d2d7; }
.footer h2 { margin: 0 0 10px; color: #1d1d1f; font-size: 12px; font-weight: 600; letter-spacing: 0; }
.footer ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.footer a { color: #424245; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer-legal { margin: 16px 0 0; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 10px; }
@media (max-width: 760px) { .footer-cols { grid-template-columns: 1fr 1fr; } }

/* ---------- Policy document pages ---------- */
/* Each app's pages take on its own look; the tokens below are overridden per app. */
.doc-page {
  --doc-bg: #fff; --doc-solid: #fff; --doc-ink: #1d1d1f; --doc-ink2: #6e6e73; --doc-card: #f5f5f7; --doc-line: #e8e8ed;
  --doc-accent: #0066cc; --doc-tab: #f5f5f7; --doc-tab-on: #1d1d1f; --doc-tab-on-ink: #fff; --doc-radius: 18px; --doc-head-font: var(--font);
  background: var(--doc-bg); background-attachment: fixed; color: var(--doc-ink);
}
.doc-ch-hue {
  --doc-bg: #f6f0e4; --doc-solid: #f6f0e4; --doc-ink: #2b2824; --doc-ink2: #625b51; --doc-card: #fffaf1; --doc-line: #e2d6bf;
  --doc-accent: #2a64a0; --doc-tab: #ece2cf; --doc-tab-on: #2b2824; --doc-tab-on-ink: #f6f0e4; --doc-radius: 20px 8px 22px 10px / 10px 20px 8px 22px;
}
.doc-ch-hue .doc .feature, .doc-ch-hue .doc .mode, .doc-ch-hue .doc .type { border: 2px solid #2b2824; box-shadow: 4px 5px 0 rgba(43, 40, 36, .1); }
.doc-ch-kj { --doc-card: #fff4e8; --doc-line: #f4dcc2; --doc-accent: #b85500; --doc-tab: #fff4e8; --doc-tab-on: #f58a1f; --doc-tab-on-ink: #1d1d1f; }
.doc-ch-kj .doc h3 { color: #b85500; }
.doc-ch-pop {
  --doc-bg: linear-gradient(180deg, #ebe8fc 0%, #f8edf3 50%, #e3f5f2 100%); --doc-solid: #f3effa; --doc-card: rgba(255, 255, 255, .72); --doc-line: rgba(80, 72, 208, .16);
  --doc-ink2: #5f5c73; --doc-accent: #4038bf; --doc-tab: rgba(255, 255, 255, .7); --doc-tab-on: #5048d0; --doc-tab-on-ink: #fff; --doc-radius: 26px;
}
.doc-ch-kos {
  --doc-bg: radial-gradient(ellipse 90% 50% at 50% 0%, #3a2614 0%, #17110c 60%); --doc-solid: #1c140d; --doc-ink: #f1e6cc; --doc-ink2: #c7b593;
  --doc-card: rgba(255, 236, 200, .06); --doc-line: rgba(217, 167, 82, .25); --doc-accent: #e8bd6c; --doc-tab: rgba(255, 236, 200, .08);
  --doc-tab-on: #d9a752; --doc-tab-on-ink: #1b130b; --doc-head-font: var(--serif);
}
.doc-ch-kos .doc .feature, .doc-ch-kos .doc .mode, .doc-ch-kos .doc .type, .doc-ch-kos .doc .scoring > span { box-shadow: inset 0 0 0 1px rgba(217, 167, 82, .2); }
.doc-ch-kos .doc .chip { color: #1b130b; }
.doc-ch-say { --doc-bg: #fbfbfd; --doc-solid: #fbfbfd; --doc-card: #fff; --doc-line: #e3e3f3; --doc-accent: #4338ca; --doc-tab: #eef0fb; --doc-tab-on: #4f46e5; }
.doc-ch-say .doc .feature, .doc-ch-say .doc .mode, .doc-ch-say .doc .type { box-shadow: 0 2px 14px rgba(40, 40, 120, .07); }
.doc-head { padding: calc(var(--nav-h) + clamp(48px, 7vw, 88px)) var(--gutter) clamp(36px, 5vw, 56px); text-align: center; color: var(--c-ink); background: var(--c-bg); }
.doc-head .app-icon { width: 92px; height: 92px; margin: 0 auto 20px; border-radius: 23%; box-shadow: 0 14px 34px rgba(0, 0, 0, .18); }
.doc-head .kicker { margin: 0 0 6px; font-size: 19px; font-weight: 600; }
.doc-head h1 { font-family: var(--doc-head-font); margin: 0; font-size: clamp(34px, 5.2vw, 56px); line-height: 1.08; letter-spacing: -.025em; }
.doc-head .switch-page { margin-top: 18px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; }
.doc-head .switch-page a { color: var(--c-link); text-decoration: none; font-size: 15px; }
.doc-head .switch-page a[aria-current="page"] { color: var(--c-ink); font-weight: 600; pointer-events: none; }
.policy-tabs { position: sticky; top: var(--nav-h); z-index: 20; background: color-mix(in srgb, var(--doc-solid) 86%, transparent); -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px); border-bottom: 1px solid var(--doc-line); }
.policy-tabs .inner { display: flex; gap: 6px; max-width: 800px; margin: 0 auto; padding: 10px var(--gutter); overflow-x: auto; scrollbar-width: none; }
.policy-tabs .inner::-webkit-scrollbar { display: none; }
.policy-tabs button { flex: none; border: 0; cursor: pointer; padding: 7px 14px; border-radius: 999px; background: var(--doc-tab); font-size: 14px; color: var(--doc-ink); }
.policy-tabs button[aria-pressed="true"] { background: var(--doc-tab-on); color: var(--doc-tab-on-ink); }
.doc {
  --face-1: #b9daf2; --face-2: #c6e8cf; --face-3: #f1e5c3; --face-4: #f6c9a0; --face-5: #f2a191;
  max-width: 800px; margin: 0 auto; padding: clamp(40px, 6vw, 64px) var(--gutter) clamp(72px, 9vw, 110px);
  font-size: 17px; line-height: 1.68; color: var(--doc-ink);
}
.doc section { display: none; }
.doc section.active { display: block; animation: fadein .4s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } }
.doc h2, .doc h3 { font-family: var(--doc-head-font); }
.doc h2 { margin: 56px 0 14px; font-size: clamp(28px, 3.4vw, 36px); line-height: 1.15; letter-spacing: -.022em; }
.doc section > h2:first-child, .doc .page-head h2 { margin-top: 0; }
.doc h3 { margin: 34px 0 8px; font-size: 21px; line-height: 1.3; letter-spacing: -.015em; }
.doc p { margin: 12px 0; }
.doc ul { margin: 10px 0; padding-left: 1.25em; }
.doc li { margin: 7px 0; }
.doc li::marker { color: var(--doc-ink2); }
.doc strong { font-weight: 600; }
.doc a { color: var(--doc-accent); }
.doc hr { margin: 60px 0; border: 0; border-top: 1px solid var(--doc-line); }
.doc .meta { color: var(--doc-ink2); font-size: 15px; }
.doc .lead { font-size: 19px; color: var(--doc-ink2); }
.doc .fineprint { color: var(--doc-ink2); font-size: 14px; }
.doc .center { text-align: center; }
.doc .note { color: var(--doc-ink2); font-size: 14px; }
.doc .row { display: flex; flex-wrap: wrap; gap: 6px; }
.doc .features, .doc .modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin: 24px 0; }
.doc .feature, .doc .mode { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border-radius: var(--doc-radius); background: var(--doc-card); line-height: 1.45; }
.doc .feature > span, .doc .mode > span { color: var(--doc-ink2); font-size: 15px; }
.doc .chip { display: inline-block; padding: 2px 11px; border-radius: 999px; background: #f1e5c3; font-weight: 600; }
.doc .callout { display: flex; gap: 14px; align-items: flex-start; margin: 26px 0; padding: 16px 20px; border-radius: var(--doc-radius); background: var(--doc-card); box-shadow: inset 3px 0 0 var(--doc-accent); }
.doc .callout .mark { display: grid; place-items: center; flex: none; width: 26px; height: 26px; margin-top: 2px; border-radius: 50%; background: #f5a623; color: #fff; font-weight: 700; font-size: 15px; }
.doc .callout p { margin: 0; }
.doc .types { display: grid; gap: 10px; margin: 20px 0; }
.doc .type { padding: 14px 18px; border-radius: var(--doc-radius); background: var(--doc-card); }
.doc .type dt { font-weight: 600; }
.doc .type dd { margin: 4px 0 0; color: var(--doc-ink2); }
.doc .scoring { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 24px 0 8px; }
.doc .scoring > span { padding: 8px 16px; border-radius: 999px; background: var(--doc-card); font-weight: 500; }
.doc .scoring .pip { margin-right: 4px; font-size: 1.2em; }
.doc details { padding: 16px 0; border-top: 1px solid var(--doc-line); }
.doc details:last-of-type { border-bottom: 1px solid var(--doc-line); }
.doc summary { display: flex; justify-content: space-between; gap: 16px; cursor: pointer; font-weight: 600; list-style: none; }
.doc summary::-webkit-details-marker { display: none; }
.doc summary::after { content: "+"; flex: none; color: var(--doc-ink2); font-weight: 400; font-size: 22px; line-height: 1; }
.doc details[open] summary::after { content: "−"; }
.doc details p { margin: 10px 0 0; color: var(--doc-ink2); }
.doc [data-support] { scroll-margin-top: calc(var(--nav-h) + 70px); }
.doc-foot { max-width: 800px; margin: 0 auto; padding: 0 var(--gutter) clamp(72px, 9vw, 110px); color: var(--doc-ink2); font-size: 14px; }
.doc-foot a { color: var(--doc-accent); text-decoration: none; }

/* ---------- 404 ---------- */
.notfound { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: var(--nav-h) var(--gutter) 40px; text-align: center; }
.notfound b { display: block; font-size: clamp(96px, 18vw, 180px); line-height: 1; letter-spacing: -.06em; }
.notfound { position: relative; overflow: hidden; color: #f5f5f7; background: #000; }
.notfound-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.notfound > div { position: relative; z-index: 1; }
.notfound b { color: rgba(255, 255, 255, .25); }
.notfound .lede { color: #d2d2d7; }
.notfound .more { color: #7cc4ff; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 90; padding: 12px 20px; border-radius: 999px; background: rgba(29, 29, 31, .92); color: #fff; font-size: 15px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); opacity: 0; transform: translate(-50%, 12px); pointer-events: none; transition: opacity .3s, transform .3s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
