/* ===== SITE THEME - EDIT ONLY HERE TO RESTYLE THE WHOLE SITE ===== */
:root {
  --ink: #11091f;
  --panel: #1b0b30;
  --raised: #241038;
  --line: rgba(191, 64, 255, 0.38);
  --text: #f7f2ff;
  --muted: #cbb8e6;
  --blue: #bf40ff;
  --blue-deep: #a020f0;
  --coral: #bf40ff;
  --coral-deep: #a020f0;
  --download: #a020f0;
  --download-deep: #7a12c4;
  --glow: rgba(191, 64, 255, 0.45);
  --font-display: "Sora", "Outfit", ui-sans-serif, sans-serif;
  --font-body: "Outfit", ui-sans-serif, sans-serif;
  --mast-h: 64px;
  --rail-w: 232px;
  --frame: 1280px;
  --gutter: 1.5rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  overflow-x: clip;
}
body.lightbox-open { overflow: hidden; }
img { max-width: 100%; height: auto; }
a { color: var(--blue); }
a:hover { color: var(--blue-deep); }
h1, h2, h3, .brand strong, .top-go, .float-go, .pill, .eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
}
h1, h2, h3 { line-height: 1.05; letter-spacing: -0.03em; margin: 0 0 0.7rem; }
h1 { font-size: clamp(2.35rem, 4.4vw, 4.25rem); line-height: 0.98; max-width: 16em; }
h2 { font-size: clamp(1.65rem, 2.3vw, 2.25rem); line-height: 1.12; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
.skip-link {
  position: absolute;
  left: 0.8rem;
  top: -3rem;
  background: var(--blue);
  color: #fff;
  padding: 0.45rem 0.7rem;
  z-index: 80;
}
.skip-link:focus { top: 0.7rem; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: var(--rail-w) 1fr auto auto;
  align-items: center;
  min-height: var(--mast-h);
  background: #f7f4ef;
  border-bottom: 1px solid var(--line);
  overflow: visible;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  height: 100%;
  min-height: var(--mast-h);
  padding: 0 1rem;
  text-decoration: none;
  color: var(--text);
  background: transparent;
  border-right: 0;
}
.brand img { width: 40px; height: 40px; object-fit: contain; }
.brand strong { display: block; font-size: 1.05rem; letter-spacing: -0.03em; }
.brand em { display: block; font-style: normal; font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.top-note { margin: 0; padding: 0 1.4rem; color: var(--muted); font-size: 0.92rem; }
.sidenav-btn {
  display: none;
  margin: 0 0.6rem;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
}
.top-go, .float-go, .pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
}
.top-go, .float-go {
  background: var(--download);
  color: #fff;
  margin-right: 1rem;
  padding: 0.48rem 0.95rem;
  box-shadow: none;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.top-go:hover, .float-go:hover { background: var(--download-deep); color: #fff; box-shadow: none; }
.top-go:active, .float-go:active, .pill:active { transform: translateY(1px); }
.float-go { position: fixed; left: 0.85rem; bottom: 0.85rem; z-index: 45; margin: 0; width: calc(var(--rail-w) - 1.7rem); }
.sidenav {
  position: fixed;
  top: var(--mast-h);
  left: 0;
  bottom: 0;
  width: var(--rail-w);
  padding: 1.3rem 0.85rem 2rem;
  background: #fff;
  border-right: 1px solid var(--line);
  overflow: auto;
  z-index: 40;
}
.sidenav-label { margin: 0 0.7rem 0.7rem; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--coral); }
.sidenav nav { display: grid; gap: 0.25rem; }
.sidenav a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  border: 1px solid transparent;
}
.sidenav a:hover { color: var(--text); background: transparent; }
.sidenav a[aria-current="page"] { color: var(--text); border-color: transparent; background: transparent; box-shadow: inset 3px 0 0 var(--blue); }
.stage { margin-left: var(--rail-w); min-height: calc(100vh - var(--mast-h)); }
.stage section[id], .stage article[id] { scroll-margin-top: calc(var(--mast-h) + 12px); }
.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.5rem;
  align-items: center;
  min-height: 78vh;
  padding: 3.2rem 4vw 3rem;
  background:
    radial-gradient(ellipse at 15% 20%, rgba(76, 141, 255, 0.28), transparent 46%),
    radial-gradient(ellipse at 80% 70%, rgba(255, 106, 69, 0.16), transparent 42%),
    #0b1016 url("media/wash-10.avif") center/cover no-repeat;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(7, 11, 16, 0.94) 0%, rgba(7, 11, 16, 0.78) 46%, rgba(7, 11, 16, 0.5) 100%);
  pointer-events: none;
}
.hero-copy, .hero-art { position: relative; z-index: 1; }
.eyebrow { margin: 0 0 0.8rem; color: var(--coral); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; }
.deck { max-width: 42rem; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.3rem; }
.pill { padding: 0.8rem 1.15rem; }
.pill-solid { background: var(--blue); color: #fff; }
.pill-solid:hover { background: var(--blue-deep); color: #fff; box-shadow: none; }
.pill-ghost { background: transparent; color: var(--text); border-color: #1c1f26; }
.pill-ghost:hover { background: #1c1f26; color: #fff; }
.enlarge { display: block; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.hero-art img { width: min(520px, 100%); margin-left: auto; display: block; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.45)); }
.slab { padding: 4.2rem 4vw; }
.slab-tight { width: min(760px, 100%); margin: 0 auto; }
.prose { max-width: 68ch; }
.edition-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.6rem; }
.edition {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.15rem 1.15rem 1.25rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.edition:hover { transform: translateY(-3px); border-color: rgba(76, 141, 255, 0.7); box-shadow: 0 16px 40px -24px var(--glow); }
.edition-main { border-color: rgba(255, 106, 69, 0.55); }
.badge { margin: 0; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--coral); }
.badge-hot { color: #ffd0c4; }
.edition-id { display: flex; gap: 0.7rem; align-items: center; }
.edition-id img { width: 42px; height: 54px; object-fit: contain; }
.edition ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.35rem; }
.edition li::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 0.45rem; background: var(--blue); border-radius: 2px; }
.suite-apps { margin: 0.2rem 0 0; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.edition .pill { margin-top: auto; align-self: flex-start; }
.flag { display: inline-block; margin-left: 0.35rem; padding: 0.05rem 0.4rem; border-radius: 4px; background: #e7eefc; color: #1e3a8a; font-size: 0.68rem; letter-spacing: 0.04em; text-transform: uppercase; }
.stories {
  display: grid;
  grid-template-columns: minmax(200px, 320px) 1fr;
  gap: 1.2rem;
  align-items: center;
  padding: 3rem 4vw;
  background: transparent;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.story-poster img { width: 100%; border-radius: 16px; box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.8); }
.story-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.story-head h2 { margin: 0; }
.story-nav { display: flex; gap: 0.4rem; }
.story-nav button, .lightbox-x {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
}
.stories > div { min-width: 0; }
.story-window { overflow: hidden; margin-top: 0.8rem; min-width: 0; }
.story-track { display: flex; gap: 0.8rem; transition: transform 0.35s ease; }
.story-card { flex: 0 0 calc((100% - 1.6rem) / 3); min-width: 0; background: var(--raised); border: 1px solid rgba(150, 186, 224, 0.22); border-radius: 14px; padding: 1rem; }
.story-card p { margin: 0 0 0.8rem; }
.story-card h3 { margin: 0; font-size: 1.02rem; }
.story-meta { margin: 0.2rem 0 0; color: var(--muted); font-size: 0.92rem; }
.story-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 0.9rem; }
.lane-pips { display: flex; gap: 0.35rem; }
.lane-pips button { width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; background: #445066; cursor: pointer; }
.lane-pips button[aria-current="true"] { background: var(--coral); }
.pair { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2rem; align-items: start; }
dl.spec-list { margin: 0; background: var(--raised); border: 1px solid var(--line); border-radius: 16px; padding: 0.3rem 1.1rem 0.5rem; }
dl.spec-list div { padding: 0.8rem 0; border-top: 1px solid var(--line); }
dl.spec-list div:first-child { border-top: 0; }
dl.spec-list dt { font-family: var(--font-display); font-weight: 700; }
dl.spec-list dd { margin: 0.2rem 0 0; color: var(--muted); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
table { width: 100%; min-width: 720px; border-collapse: collapse; }
th, td { text-align: left; vertical-align: top; padding: 0.8rem 0.9rem; border-bottom: 1px solid var(--line); }
th { font-family: var(--font-display); background: #f3f0ea; color: var(--text); }
caption { caption-side: bottom; text-align: left; color: var(--muted); padding: 0.8rem 0.9rem; }
.logo-strip { background: #f4f7fb; color: #17202b; padding: 3.2rem 4vw; text-align: center; }
.logo-strip h2, .logo-strip p { color: #17202b; }
.logo-strip .deck { color: #3d4b5c; margin-inline: auto; }
.logo-line { list-style: none; padding: 0; margin: 1.6rem 0 0.2rem; display: flex; flex-wrap: nowrap; justify-content: space-between; align-items: center; gap: 1.1rem; min-width: 0; }
.logo-line li { flex: 1 1 0; min-width: 0; display: flex; justify-content: center; }
.logo-line img { width: auto; max-width: 100%; height: auto; object-fit: contain; }
.logo-line img.logo-tall { max-height: 64px; }
.logo-line img.logo-wide { max-height: 34px; }
.marquee { overflow: hidden; padding-bottom: 1rem; }
.marquee-track { display: flex; gap: 1rem; width: max-content; animation: ticker 90s linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
@keyframes ticker { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
.quote {
  width: min(22rem, 78vw);
  background: var(--raised);
  border-top: 3px solid var(--blue);
  border-radius: 14px;
  padding: 1rem;
}
.quote:nth-child(even) { border-top-color: var(--coral); }
.quote p { margin: 0 0 0.7rem; }
.quote cite { display: block; font-style: normal; color: var(--muted); font-size: 0.95rem; }
.accordion { background: var(--raised); border: 1px solid var(--line); border-radius: 14px; margin: 0 0 0.65rem; padding: 0 0.95rem; }
.accordion h3 { margin: 0; text-align: left; }
.accordion button { width: 100%; text-align: left; background: transparent; border: 0; padding: 1rem 0; cursor: pointer; font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; color: var(--text); }
.accordion-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.28s ease; }
.accordion-panel.is-open { grid-template-rows: 1fr; }
.accordion-body { overflow: hidden; }
.accordion-body p { color: var(--muted); }
.price-set .accordion button { box-shadow: inset 3px 0 0 var(--blue); padding-left: 0.8rem; }
.setup-set .accordion button { box-shadow: inset 3px 0 0 var(--coral); padding-left: 0.8rem; }
.trust-set .accordion button { box-shadow: inset 3px 0 0 var(--blue); padding-left: 0.8rem; }
.endcap {
  background: #120d18 url("media/wash-19.avif") center/cover no-repeat;
  padding: 3.2rem 1.25rem;
}
.endcap-card { width: min(42rem, 100%); margin: 0 auto; background: #0e0e12; color: #fff; text-align: center; border-radius: 18px; padding: 2.2rem 1.5rem; }
.endcap-card p { color: #e6e6ea; }
.intro {
  position: relative;
  overflow: hidden;
  padding: 3.4rem 4vw 2.8rem;
  background: #f3efe8 url("media/wash-10.avif") right center / cover no-repeat;
}
.intro::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #f6f3ee 0%, rgba(246, 243, 238, 0.94) 48%, rgba(246, 243, 238, 0.2) 100%); }
.intro-copy { position: relative; z-index: 1; width: min(40rem, 100%); }
.trail { width: min(1120px, calc(100% - 2.5rem)); margin: 0.8rem auto 0; font-size: 0.95rem; }
.trail ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0; margin: 0; }
.trail li:not(:last-child)::after { content: "/"; margin-left: 0.4rem; color: var(--muted); }
.index-list { list-style: none; padding: 0.85rem; margin: 0; display: grid; gap: 0.2rem; background: var(--raised); border: 1px solid var(--line); border-radius: 16px; }
.index-list a { text-decoration: none; display: block; padding: 0.45rem 0.6rem; border-radius: 8px; }
.index-list a:hover { background: rgba(76, 141, 255, 0.12); }
.lesson { display: grid; grid-template-columns: 16rem 1fr; gap: 1.4rem; align-items: start; }
.lesson-nav { position: sticky; top: calc(var(--mast-h) + 12px); }
.lesson article { background: var(--raised); border: 1px solid var(--line); border-radius: 16px; padding: 1.2rem 1.3rem 1.05rem; margin: 0 0 1rem; }
.lesson .quote { width: auto; }
.step-list { padding-left: 1.2rem; }
.step-list li { margin: 0 0 0.55rem; }
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.card { background: var(--raised); border: 1px solid var(--line); border-radius: 16px; padding: 1.2rem 1.25rem; color: var(--text); }
.slab > .card + .card { margin-top: 0.85rem; }
.card:hover { border-color: rgba(76, 141, 255, 0.65); }
.history { list-style: none; margin: 1rem 0 0; padding: 1.1rem 1.1rem 0.2rem 1.1rem; background: var(--raised); border: 1px solid var(--line); border-radius: 16px; }
.history li { border-left: 2px solid var(--line); padding: 0 0 1.4rem 1.1rem; position: relative; }
.history li::before { content: ""; position: absolute; left: -5px; top: 0.35rem; width: 8px; height: 8px; background: var(--coral); }
.tint-slab { background: transparent; }
.link-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.link-grid a { display: block; height: 100%; background: var(--raised); border: 1px solid var(--line); border-radius: 16px; padding: 1.15rem 1.2rem; text-decoration: none; font-family: var(--font-display); font-weight: 700; color: var(--text); }
.link-grid a:hover { border-color: var(--blue); color: var(--blue); }
.foot { background: #121418; border-top: 0; padding: 2.75rem 4vw 5.5rem; color: #e7e4de; }
.foot p { color: #c8c4bc; }
.foot a { color: #dbe4ff; }
.foot a:hover { color: #fff; }
.foot-logo { width: 160px; height: auto; }
.logo-color { width: min(225px, 100%); }
.lightbox { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.82); z-index: 70; display: grid; place-items: center; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(92vw, 1100px); max-height: 86vh; }
.lightbox-x { position: absolute; top: 1rem; right: 1rem; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
@media (max-width: 980px) {
  .sidenav-btn { display: inline-flex; order: 2; }
  .topbar { grid-template-columns: minmax(0, 1fr) auto auto auto; }
  .brand { order: 1; min-width: 0; border-right: 0; background: transparent; padding-inline: 0.7rem; }
  .brand em { display: none; }
  .top-note { display: none; }
  .top-go { order: 3; margin-right: 0.55rem; padding: 0.42rem 0.7rem; font-size: 0.8rem; white-space: nowrap; }
  .hero { min-height: 0; padding-bottom: 1.4rem; }
  .sidenav { transform: translateX(-105%); transition: transform 0.25s ease; }
  .sidenav.is-open { transform: none; }
  .stage { margin-left: 0; }
  .float-go { left: auto; right: 0.85rem; width: auto; }
  .sidenav.is-open ~ .float-go { visibility: hidden; }
  .hero, .pair, .stories, .edition-row, .spec-grid, .lesson { grid-template-columns: 1fr; }
  .story-card { flex-basis: 100%; }
  .lesson-nav { position: static; }
  .logo-line { flex-wrap: wrap; justify-content: center; }
  .link-grid { grid-template-columns: 1fr; }
  .hero-art img { margin: 0 auto; max-height: 26vh; width: auto; }
}
@media (max-width: 420px) {
  .brand img { width: 32px; height: 32px; }
  .brand strong { font-size: 0.92rem; }
  .top-go { margin-right: 0.4rem; padding-inline: 0.55rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track, .edition, .accordion-panel, .story-track { animation: none; transition: none; }
  .marquee { overflow-x: auto; }
  .marquee-track { width: auto; }
}
.lang-slot { position: relative; margin-right: 0.55rem; z-index: 80; }
.lang-btn {
  background: transparent;
  color: var(--text);
  border: 1px solid #d5d0c7;
  border-radius: 999px;
  padding: 0.42rem 0.85rem;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  white-space: nowrap;
}
.lang-btn::after { content: " \25BE"; font-size: 0.72em; color: var(--text); }
.lang-menu {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  z-index: 80;
  min-width: 11.5rem;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}
.lang-menu[hidden] { display: none; }
.lang-menu a {
  display: block;
  padding: 0.5rem 0.7rem;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
}
.lang-menu a:hover, .lang-menu a[aria-current="true"] { background: rgba(76, 141, 255, 0.16); }
.lang-foot { display: flex; flex-wrap: wrap; gap: 0.45rem 0.9rem; margin: 0.4rem 0 0.8rem; }
.lang-foot a { color: #dbe4ff; text-decoration: none; }
.lang-foot a:hover, .lang-foot a[aria-current="true"] { color: #fff; }
html[lang="ru"] .pill { padding: 0.98rem 1.45rem; }
html[lang="ru"] .top-go, html[lang="ru"] .float-go { padding: 0.7rem 1.25rem; }
html[lang="ru"] .lang-btn { padding: 0.5rem 0.95rem; }
html[lang="zh-CN"] {
  --font-display: "Noto Sans SC", "Syne", sans-serif;
  --font-body: "Noto Sans SC", "Outfit", sans-serif;
}
html[lang="zh-CN"] .sidenav a,
html[lang="zh-CN"] .sidenav-label,
html[lang="zh-CN"] .top-go,
html[lang="zh-CN"] .lang-btn,
html[lang="zh-CN"] .lang-menu a,
html[lang="zh-CN"] .foot nav a,
html[lang="zh-CN"] .index-list a {
  letter-spacing: 0.14em;
}
html[lang="zh-CN"] h1,
html[lang="zh-CN"] h2,
html[lang="zh-CN"] h3,
html[lang="zh-CN"] .brand strong { letter-spacing: 0.04em; }
html[lang="ar"] {
  --font-display: "Noto Sans Arabic", "Syne", sans-serif;
  --font-body: "Noto Sans Arabic", "Outfit", sans-serif;
}
html[dir="rtl"] .sidenav { left: auto; right: 0; border-right: 0; border-left: 1px solid var(--line); }
html[dir="rtl"] .stage { margin-left: 0; margin-right: var(--rail-w); }
html[dir="rtl"] .brand { border-right: 0; border-left: 1px solid var(--line); }
html[dir="rtl"] .top-go { margin-right: 0; margin-left: 1rem; }
html[dir="rtl"] .lang-slot { margin-right: 0; margin-left: 0.55rem; }
html[dir="rtl"] .lang-menu { right: auto; left: 0; }
html[dir="rtl"] .float-go { left: auto; right: 0.85rem; }
html[dir="rtl"] .sidenav a[aria-current="page"] { box-shadow: inset -3px 0 0 var(--coral); }
html[dir="rtl"] th, html[dir="rtl"] td, html[dir="rtl"] caption { text-align: right; }
html[dir="rtl"] .hero::after {
  background: linear-gradient(270deg, rgba(7, 11, 16, 0.94) 0%, rgba(7, 11, 16, 0.78) 46%, rgba(7, 11, 16, 0.5) 100%);
}
.topbar-flat { grid-template-columns: auto minmax(0, 1fr) auto auto; }
.topbar-flat .top-note { display: none; }
.topbar-flat .brand { width: auto; }
.topbar-flat .sidenav {
  position: static;
  top: auto;
  left: auto;
  bottom: auto;
  width: auto;
  min-width: 0;
  padding: 0 0.35rem;
  background: transparent;
  border: 0;
  overflow: visible;
  z-index: auto;
}
.topbar-flat .sidenav-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.topbar-flat .sidenav nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.1rem; }
.topbar-flat .sidenav a { padding: 0.4rem 0.72rem; white-space: nowrap; }
.topbar-flat .sidenav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--blue); background: transparent; border-color: transparent; }
body:has(.topbar-flat) .stage { margin-left: 0; }
body:has(.topbar-flat) .float-go { left: auto; right: 1rem; width: auto; }
body:has(.sidenav.is-open) .float-go { visibility: hidden; }
@media (max-width: 980px) {
  .topbar-flat { grid-template-columns: minmax(0, 1fr) auto auto auto; }
  .topbar-flat .sidenav-btn { order: 2; }
  .topbar-flat .lang-slot { order: 3; }
  .topbar-flat .top-go { order: 4; }
  .topbar-flat .sidenav {
    order: 5;
    position: fixed;
    top: var(--mast-h);
    left: 0;
    bottom: 0;
    width: min(280px, 88vw);
    padding: 1.1rem 0.85rem 2rem;
    background: #fff;
    border-right: 1px solid var(--line);
    overflow: auto;
    z-index: 40;
    transform: translateX(-105%);
  }
  .topbar-flat .sidenav.is-open { transform: none; }
  .topbar-flat .sidenav nav { display: grid; }
  .topbar-flat .sidenav-label { position: static; width: auto; height: auto; margin: 0 0.7rem 0.7rem; clip: auto; overflow: visible; }
}
@media (max-width: 980px) {
  html[dir="rtl"] .stage { margin-right: 0; }
  html[dir="rtl"] .sidenav { transform: translateX(105%); }
  html[dir="rtl"] .sidenav.is-open { transform: none; }
  html[dir="rtl"] .brand { border-left: 0; }
  html[dir="rtl"] .float-go { right: auto; left: 0.85rem; visibility: visible; }
  html[dir="rtl"] .sidenav.is-open ~ .float-go { visibility: hidden; }
}

/* Homepage only. Other pages keep the shared dark theme. */
body.front {
  --ink: #11091f;
  --panel: #1b0b30;
  --raised: #241038;
  --line: rgba(191, 64, 255, 0.38);
  --text: #f7f2ff;
  --muted: #cbb8e6;
  --blue: #bf40ff;
  --blue-deep: #a020f0;
  --coral: #bf40ff;
  --glow: rgba(191, 64, 255, 0.45);
  --font-display: "Sora", "Outfit", sans-serif;
  --font-body: "Outfit", sans-serif;
  --mast-h: 64px;
  --frame: 1280px;
  --gutter: 1.5rem;
  background: var(--ink);
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.65;
}
body.front h1,
body.front h2,
body.front h3 { text-wrap: balance; letter-spacing: -0.038em; }
body.front h1 { font-size: clamp(2.35rem, 4.4vw, 4.25rem); line-height: 0.98; max-width: 9.2em; }
body.front h2 { font-size: clamp(1.65rem, 2.3vw, 2.25rem); line-height: 1.12; }
body.front h3 { font-size: 1.12rem; letter-spacing: -0.02em; }
body.front a { color: var(--blue); }
body.front a:hover { color: var(--blue-deep); }
body.front .topbar-flat,
body.front .hero,
body.front .slab,
body.front .stories,
body.front .logo-strip,
body.front .endcap,
body.front .foot {
  padding-left: max(var(--gutter), calc((100% - var(--frame)) / 2));
  padding-right: max(var(--gutter), calc((100% - var(--frame)) / 2));
}
body.front .topbar {
  background: #f7f4ef;
  border-bottom: 1px solid var(--line);
}
body.front .brand {
  background: transparent;
  border-right: 0;
  padding: 0 0.85rem 0 0;
  gap: 0.55rem;
}
body.front .brand em { letter-spacing: 0.08em; font-size: 0.68rem; }
body.front .topbar-flat .sidenav nav { gap: 0.15rem; }
body.front .topbar-flat .sidenav a {
  color: #3c424c;
  border-radius: 0;
  padding: 0.35rem 0.7rem;
  font-size: 0.95rem;
  font-weight: 500;
}
body.front .topbar-flat .sidenav a:hover { color: var(--text); background: transparent; }
body.front .topbar-flat .sidenav a[aria-current="page"] {
  color: var(--text);
  background: transparent;
  border-color: transparent;
  box-shadow: inset 0 -2px 0 var(--blue);
}
body.front .top-go,
body.front .float-go {
  background: var(--download);
  color: #fff;
  margin-right: 0;
  padding: 0.48rem 0.95rem;
  box-shadow: none;
  font-size: 0.92rem;
}
body.front .top-go:hover,
body.front .float-go:hover { background: var(--download-deep); color: #fff; box-shadow: none; }
body.front .lang-slot { margin-right: 0.7rem; }
body.front .lang-btn {
  background: transparent;
  color: var(--text);
  border-color: #d5d0c7;
  padding: 0.38rem 0.75rem;
}
body.front .lang-btn::after { color: var(--text); }
body.front .lang-menu {
  background: #fff;
  border-color: var(--line);
  box-shadow: 0 16px 40px rgba(23, 25, 30, 0.12);
}
body.front .lang-menu a { color: var(--text); }
body.front .lang-menu a:hover,
body.front .lang-menu a[aria-current="true"] { background: #eef2fb; color: var(--text); }
body.front .hero {
  min-height: 0;
  grid-template-columns: minmax(0, 620px) minmax(260px, 1fr);
  gap: 2.5rem;
  align-items: center;
  padding-top: 4.25rem;
  padding-bottom: 4.5rem;
  background: #f3efe8 url("media/wash-10.avif") right center / cover no-repeat;
}
body.front .hero::after {
  background: linear-gradient(90deg, #f6f3ee 0%, #f6f3ee 46%, rgba(246, 243, 238, 0.35) 68%, rgba(246, 243, 238, 0) 84%);
}
body.front .eyebrow {
  color: var(--coral);
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  margin-bottom: 0.85rem;
}
body.front .deck,
body.front .prose { max-width: 40rem; color: var(--muted); }
body.front .hero .deck { max-width: 36rem; font-size: 1.12rem; line-height: 1.55; }
body.front .hero-actions { gap: 0.7rem; margin-top: 1.5rem; }
body.front .pill { padding: 0.78rem 1.2rem; font-size: 0.98rem; box-shadow: none; transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease; }
body.front .pill-solid { background: var(--blue); color: #fff; border-color: var(--blue); }
body.front .pill-solid:hover { background: var(--blue-deep); color: #fff; box-shadow: none; }
body.front .pill-ghost { background: transparent; color: var(--text); border-color: #1c1f26; }
body.front .pill-ghost:hover { background: #1c1f26; color: #fff; }
body.front .hero-art img { width: min(460px, 100%); filter: none; }
body.front .slab { padding-top: 4.75rem; padding-bottom: 4.75rem; }
body.front #suite-compare { padding-top: 0.25rem; }
body.front .edition-row { gap: 1.15rem; margin-top: 1.75rem; align-items: stretch; }
body.front .edition {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: none;
  padding: 1.25rem 1.2rem 1.35rem;
}
body.front .edition:hover { transform: none; border-color: #c8c2b8; box-shadow: none; }
body.front .edition-main { border-color: #17191e; }
body.front .badge { color: var(--coral); letter-spacing: 0.06em; }
body.front .badge-hot {
  display: inline-block;
  width: fit-content;
  background: #17191e;
  color: #fff;
  padding: 0.18rem 0.45rem;
  border-radius: 4px;
}
body.front .edition li::before { background: var(--blue); border-radius: 50%; }
body.front .flag { background: #e7eefc; color: #1e3a8a; }
body.front .stories {
  background: transparent;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}
body.front .story-poster img { border-radius: 8px; box-shadow: 0 12px 28px rgba(23, 25, 30, 0.12); }
body.front .story-nav button {
  background: #fff;
  color: var(--text);
  border-color: var(--line);
}
body.front .story-nav button:hover { border-color: #17191e; }
body.front .story-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}
body.front .lane-pips button { background: #d4cfc6; }
body.front .lane-pips button[aria-current="true"] { background: var(--blue); }
body.front .pair { gap: 3rem; align-items: start; }
body.front .pair > div { max-width: 38rem; }
body.front dl.spec-list {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}
body.front dl.spec-list div { padding: 0.95rem 0; border-top: 1px solid var(--line); }
body.front .table-wrap { background: #fff; border-radius: 8px; }
body.front th { background: #f3f0ea; color: var(--text); }
body.front td { color: #2a2e36; }
body.front .logo-strip {
  background: #f4f1eb;
  padding-top: 3.25rem;
  padding-bottom: 3.25rem;
}
body.front .logo-strip h2,
body.front .logo-strip p { color: var(--text); }
body.front .logo-strip .deck { color: var(--muted); max-width: 36rem; }
body.front .quote {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  border-radius: 8px;
}
body.front .quote:nth-child(even) { border-top-color: var(--blue); }
body.front .slab-tight { width: min(720px, 100%); }
body.front .accordion {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 0;
}
body.front .accordion button { color: var(--text); font-size: 1.05rem; }
body.front .accordion-body p { color: var(--muted); }
body.front .endcap {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}
body.front .endcap-card {
  width: min(40rem, 100%);
  background: #fff;
  color: var(--text);
  border-radius: 12px;
  padding: 2.4rem 1.75rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}
body.front .endcap-card p { color: var(--muted); }
body.front .foot {
  background: #121418;
  color: #e7e4de;
  border-top: 0;
  padding-top: 2.75rem;
  padding-bottom: 5.5rem;
}
body.front .foot p { color: #c8c4bc; max-width: 42rem; }
body.front .foot a,
body.front .lang-foot a { color: #dbe4ff; }
body.front .foot a:hover,
body.front .lang-foot a:hover,
body.front .lang-foot a[aria-current="true"] { color: #fff; }
body.front .foot nav[aria-label="Footer"] { display: flex; flex-wrap: wrap; gap: 0.35rem 1.1rem; }
body.front .foot nav[aria-label="Footer"] a { text-decoration: none; }
body.front :focus-visible { outline-color: var(--blue); }
@media (max-width: 980px) {
  body.front .hero { grid-template-columns: 1fr; padding-top: 2.4rem; padding-bottom: 2.2rem; }
  body.front .hero::after { background: linear-gradient(180deg, rgba(246, 243, 238, 0.94) 0%, rgba(246, 243, 238, 0.82) 70%, rgba(246, 243, 238, 0.55) 100%); }
  body.front .hero-art img { margin: 0 auto; max-height: 280px; width: auto; }
  body.front h1 { font-size: clamp(2.15rem, 10vw, 3rem); }
  body.front .topbar-flat .sidenav {
    background: #fff;
    border-right: 1px solid var(--line);
  }
  body.front .topbar-flat .sidenav a { padding: 0.7rem 0.75rem; }
  body.front .topbar-flat .sidenav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--blue); }
  body.front .logo-line { flex-wrap: wrap; justify-content: center; gap: 1.25rem 1.5rem; }
  body.front .logo-line li { flex: 0 1 40%; }
}
@media (max-width: 520px) {
  body.front .brand span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  body.front .topbar-flat { column-gap: 0.35rem; }
  body.front .top-go { padding: 0.42rem 0.65rem; font-size: 0.78rem; }
  body.front .lang-slot { margin-right: 0.25rem; }
}

.topbar-flat,
.slab,
.intro,
.stories,
.logo-strip,
.endcap,
.foot,
.trail {
  padding-left: max(var(--gutter), calc((100% - var(--frame)) / 2));
  padding-right: max(var(--gutter), calc((100% - var(--frame)) / 2));
}
.trail { width: auto; margin: 1rem 0 0; }
body:not(.front) h1::after,
body:not(.front) h2::after {
  content: "";
  display: block;
  width: 4.25rem;
  height: 4px;
  margin-top: 0.85rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), #c2410c);
}
body:not(.front) .slab,
body:not(.front) .foot { position: relative; }
body:not(.front) .slab::before,
body:not(.front) .foot::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 0;
  left: max(var(--gutter), calc((100% - var(--frame)) / 2));
  right: max(var(--gutter), calc((100% - var(--frame)) / 2));
  height: 11px;
  transform: translateY(-50%);
  background:
    linear-gradient(#d5cec3, #d5cec3) left center / calc(50% - 16px) 1px no-repeat,
    linear-gradient(#d5cec3, #d5cec3) right center / calc(50% - 16px) 1px no-repeat,
    linear-gradient(135deg, transparent 42%, var(--blue) 42% 58%, transparent 58%) center / 9px 9px no-repeat;
}
body:not(.front) .foot::before {
  background:
    linear-gradient(rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.72)) left center / calc(50% - 16px) 1px no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.72)) right center / calc(50% - 16px) 1px no-repeat,
    linear-gradient(#fff, #fff) center / 9px 9px no-repeat;
}
body:not(.front) .intro .deck {
  border-left: 3px solid var(--blue);
  padding-left: 1rem;
}
body:not(.front) .card,
body:not(.front) .lesson article,
body:not(.front) .index-list,
body:not(.front) .history,
body:not(.front) .link-grid a,
body:not(.front) .accordion,
body:not(.front) .table-wrap {
  box-shadow: 0 14px 32px rgba(23, 25, 30, 0.07);
}
body:not(.front) .card,
body:not(.front) .lesson article,
body:not(.front) .accordion {
  border-left: 3px solid var(--blue);
  border-radius: 12px;
}
body:not(.front) .eyebrow { letter-spacing: 0.14em; font-size: 0.72rem; }
html[dir="rtl"] .topbar-flat .sidenav { left: auto; right: auto; border: 0; }
html[dir="rtl"] body:has(.topbar-flat) .stage { margin-right: 0; }
@media (max-width: 980px) {
  html[dir="rtl"] .topbar-flat .sidenav { right: 0; left: auto; border-left: 1px solid var(--line); transform: translateX(105%); }
  html[dir="rtl"] .topbar-flat .sidenav.is-open { transform: none; }
  body:not(.front) .intro::after { background: linear-gradient(180deg, rgba(246, 243, 238, 0.94), rgba(246, 243, 238, 0.55)); }
}
@media (max-width: 520px) {
  .topbar-flat .brand span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .topbar-flat { column-gap: 0.35rem; }
  .top-go { padding: 0.42rem 0.65rem; font-size: 0.78rem; }
}

body.front h1::after,
body.front h2::after {
  content: "";
  display: block;
  width: 4.25rem;
  height: 4px;
  margin-top: 0.85rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), #c2410c);
  transform-origin: left center;
  animation: home-rule 0.7s ease both;
}
body.front .logo-strip h2::after,
body.front .endcap h2::after {
  margin-right: auto;
  margin-left: auto;
  transform-origin: center;
}
@keyframes home-rule {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
body.front .slab,
body.front .stories,
body.front .logo-strip,
body.front .endcap,
body.front .foot { position: relative; }
body.front .slab::before,
body.front .stories::before,
body.front .logo-strip::before,
body.front .endcap::before,
body.front .foot::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 0;
  left: max(var(--gutter), calc((100% - var(--frame)) / 2));
  right: max(var(--gutter), calc((100% - var(--frame)) / 2));
  height: 11px;
  transform: translateY(-50%);
  background:
    linear-gradient(#d5cec3, #d5cec3) left center / calc(50% - 16px) 1px no-repeat,
    linear-gradient(#d5cec3, #d5cec3) right center / calc(50% - 16px) 1px no-repeat,
    linear-gradient(135deg, transparent 42%, var(--blue) 42% 58%, transparent 58%) center / 9px 9px no-repeat;
}
body.front .endcap::before,
body.front .foot::before {
  background:
    linear-gradient(rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.72)) left center / calc(50% - 16px) 1px no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.72)) right center / calc(50% - 16px) 1px no-repeat,
    linear-gradient(#fff, #fff) center / 9px 9px no-repeat;
}
body.front .stories { border-top: 0; border-bottom: 0; }
body.front #suite-compare { padding-top: 4.75rem; }
body.front .hero .deck {
  border-left: 3px solid var(--blue);
  padding: 0.15rem 0 0.15rem 1rem;
}
body.front .prose,
body.front .pair > div > p,
body.front .logo-strip .deck {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: 12px;
  padding: 0.95rem 1.1rem;
  box-shadow: 0 12px 28px rgba(23, 25, 30, 0.06);
}
body.front .logo-strip .deck {
  padding-bottom: 0.95rem;
  text-align: left;
}
body.front .edition,
body.front .story-card,
body.front .table-wrap,
body.front .quote,
body.front dl.spec-list,
body.front .accordion,
body.front .endcap-card {
  box-shadow: 0 14px 32px rgba(23, 25, 30, 0.07);
}
body.front dl.spec-list {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.35rem 1.15rem 0.55rem;
}
body.front .edition,
body.front .story-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
body.front .edition:hover,
body.front .story-card:hover {
  transform: translateY(-4px);
  border-color: #c9d4ef;
  box-shadow: 0 18px 36px rgba(29, 78, 216, 0.12);
}
body.front .edition-main { border-top: 3px solid var(--blue); }
body.front .accordion {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: 12px;
  padding: 0 1rem;
  margin-bottom: 0.75rem;
}
@media (prefers-reduced-motion: reduce) {
  body.front h1::after,
  body.front h2::after,
  body.front .edition,
  body.front .story-card { animation: none; transition: none; }
}
a.pill[href="download.html"],
a.pill[href="#"] {
  background: var(--download);
  border-color: var(--download);
  color: #fff;
}
a.pill[href="download.html"]:hover,
a.pill[href="#"]:hover {
  background: var(--download-deep);
  border-color: var(--download-deep);
  color: #fff;
}

body.front h2,
body.front .prose,
body.front .logo-strip .deck,
body.front .pair > div,
body.front .foot p {
  margin-left: auto;
  margin-right: auto;
}
body.front h2::after {
  margin-left: auto;
  margin-right: auto;
  transform-origin: center;
}
body.front .eyebrow,
body.front h2,
body.front h3,
body.front .prose,
body.front .pair,
body.front .edition,
body.front .story-head,
body.front .slab-tight,
body.front .table-wrap,
body.front caption,
body.front th,
body.front td,
body.front dl.spec-list,
body.front .foot {
  text-align: center;
}
body.front .prose,
body.front .pair > div > p,
body.front .logo-strip .deck {
  border-left-width: 1px;
  border-top: 3px solid var(--blue);
  text-align: center;
}
body.front .hero .eyebrow,
body.front .hero h1,
body.front .hero .deck { text-align: start; }
body.front .hero .deck {
  margin-left: 0;
  margin-right: 0;
  border-top: 0;
  border-left: 3px solid var(--blue);
  padding: 0.15rem 0 0.15rem 1rem;
}
body.front .edition-id {
  flex-direction: column;
  align-items: center;
  text-align: center;
}
body.front .badge-hot,
body.front .edition .pill { margin-left: auto; margin-right: auto; }
body.front .edition .pill { align-self: center; }
body.front .stories {
  grid-template-columns: 1fr;
  justify-items: center;
}
body.front .story-poster { width: min(320px, 100%); }
body.front .stories > div { width: 100%; }
body.front .story-head {
  flex-direction: column;
  align-items: center;
}
body.front .story-foot { justify-content: center; }
body.front .pair {
  grid-template-columns: 1fr;
  justify-items: center;
}
body.front .pair > div { max-width: 40rem; }
body.front dl.spec-list { width: min(40rem, 100%); }
body.front .accordion h3,
body.front .accordion button,
body.front .accordion-body p { text-align: center; }
body.front .accordion { border-left-width: 1px; border-top: 3px solid var(--blue); }
body.front .foot-logo { display: block; margin-left: auto; margin-right: auto; }
body.front .foot nav[aria-label="Footer"],
body.front .lang-foot { justify-content: center; }

.trail ol { justify-content: center; }
.intro { text-align: center; }
.intro::after {
  background: radial-gradient(ellipse at center, rgba(246, 243, 238, 0.94) 0%, rgba(246, 243, 238, 0.72) 46%, rgba(246, 243, 238, 0.28) 100%);
}
.intro-copy { margin-inline: auto; }
.intro-copy::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 8%;
  width: 22rem;
  height: 14rem;
  background: radial-gradient(circle, rgba(29, 78, 216, 0.16), rgba(194, 65, 12, 0.08) 46%, transparent 72%);
  filter: blur(6px);
  animation: page-glow 7s ease-in-out infinite alternate;
  pointer-events: none;
}
.intro .eyebrow,
.intro h1,
.intro .deck { animation: page-rise 0.7s ease both; }
.intro h1 { animation-delay: 0.08s; }
.intro .deck { animation-delay: 0.16s; }
body:not(.front) .intro h1::after {
  margin-inline: auto;
  transform-origin: center;
  animation: home-rule 0.7s ease 0.2s both;
}
body:not(.front) .intro .deck {
  margin: 1.15rem auto 0;
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  border-radius: 12px;
  padding: 1rem 1.15rem;
  background: #fff;
  box-shadow: 0 14px 32px rgba(23, 25, 30, 0.07);
  text-align: center;
  position: relative;
  overflow: hidden;
}
body:not(.front) .intro .deck::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 32%, rgba(255, 255, 255, 0.45) 50%, transparent 68%);
  transform: translateX(-120%);
  animation: page-sheen 1.5s ease 0.7s both;
  pointer-events: none;
}
@keyframes page-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes page-glow {
  from { transform: translateX(-62%) scale(0.94); opacity: 0.65; }
  to { transform: translateX(-38%) scale(1.06); opacity: 1; }
}
@keyframes page-sheen {
  from { transform: translateX(-120%); }
  to { transform: translateX(120%); }
}
@media (prefers-reduced-motion: reduce) {
  .intro .eyebrow,
  .intro h1,
  .intro .deck,
  .intro-copy::before,
  body:not(.front) .intro h1::after,
  body:not(.front) .intro .deck::after { animation: none; }
}
html[lang="zh-CN"] body.front {
  --font-display: "Noto Sans SC", "Sora", sans-serif;
  --font-body: "Noto Sans SC", "Outfit", sans-serif;
}
html[lang="ar"] body.front {
  --font-display: "Noto Sans Arabic", "Sora", sans-serif;
  --font-body: "Noto Sans Arabic", "Outfit", sans-serif;
}
.card,
.lesson article,
.accordion,
.index-list,
.link-grid a,
body.front .prose,
body.front .pair > div > p,
body.front .logo-strip .deck,
body.front .edition,
body.front .story-card,
body.front .quote,
body.front dl.spec-list,
body.front .endcap-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.history,
.table-wrap {
  position: relative;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.card::before,
.lesson article::before,
.accordion::before,
.index-list::before,
.history::before,
.link-grid a::before,
.table-wrap::before,
body.front .prose::before,
body.front .pair > div > p::before,
body.front .logo-strip .deck::before,
body.front .edition::before,
body.front .story-card::before,
body.front .quote::before,
body.front dl.spec-list::before,
body.front .endcap-card::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset-inline-start: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--blue), #c2410c);
  transform-origin: top;
  animation: box-edge 0.55s ease both;
  pointer-events: none;
}
.card::after,
.lesson article::after,
.accordion::after,
.index-list::after,
.link-grid a::after,
body.front .prose::after,
body.front .pair > div > p::after,
body.front .logo-strip .deck::after,
body.front .edition::after,
body.front .story-card::after,
body.front .quote::after,
body.front dl.spec-list::after,
body.front .endcap-card::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(110deg, transparent 32%, rgba(255, 255, 255, 0.55) 50%, transparent 68%);
  transform: translateX(-130%);
  pointer-events: none;
}
.card:hover,
.lesson article:hover,
.accordion:hover,
.index-list:hover,
.link-grid a:hover,
.table-wrap:hover,
body.front .prose:hover,
body.front .pair > div > p:hover,
body.front .logo-strip .deck:hover,
body.front .edition:hover,
body.front .story-card:hover,
body.front .quote:hover,
body.front dl.spec-list:hover,
body.front .endcap-card:hover {
  transform: translateY(-4px);
  border-color: #c9d4ef;
  box-shadow: 0 18px 36px rgba(29, 78, 216, 0.14);
}
.card:hover::after,
.lesson article:hover::after,
.accordion:hover::after,
.index-list:hover::after,
.link-grid a:hover::after,
body.front .prose:hover::after,
body.front .pair > div > p:hover::after,
body.front .logo-strip .deck:hover::after,
body.front .edition:hover::after,
body.front .story-card:hover::after,
body.front .quote:hover::after,
body.front dl.spec-list:hover::after,
body.front .endcap-card:hover::after {
  animation: page-sheen 0.85s ease;
}
@keyframes box-edge {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}
@media (prefers-reduced-motion: reduce) {
  .card,
  .lesson article,
  .accordion,
  .index-list,
  .history,
  .link-grid a,
  .table-wrap,
  body.front .prose,
  body.front .pair > div > p,
  body.front .logo-strip .deck,
  body.front .edition,
  body.front .story-card,
  body.front .quote,
  body.front dl.spec-list,
  body.front .endcap-card,
  .card::before,
  .lesson article::before,
  .accordion::before,
  .card:hover::after { animation: none; transition: none; }
}

.brand-panel { display: contents; }
.topbar .brand { background: #fff; border-inline-end: 1px solid var(--line); }

/* Violet shell: sidebar, glow, and dark surfaces for every language. */
@keyframes orb-drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(18px, -14px, 0) scale(1.06); }
}
@keyframes rise-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
body, body.front {
  background:
    radial-gradient(720px 360px at 78% -8%, rgba(160, 32, 240, 0.42), transparent 62%),
    radial-gradient(540px 320px at 8% 18%, rgba(191, 64, 255, 0.18), transparent 58%),
    #11091f;
  color: #f7f2ff;
}
.topbar, .topbar-flat, body.front .topbar-flat {
  position: fixed;
  inset: 0 auto 0 0;
  width: 252px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
  padding: 0.9rem 0.75rem 1.1rem;
  background: linear-gradient(180deg, #1b0b30 0%, #11091f 100%);
  border-right: 1px solid rgba(191, 64, 255, 0.45);
  border-bottom: 0;
  box-shadow: 12px 0 40px rgba(80, 0, 140, 0.28);
  z-index: 50;
  overflow: auto;
  grid-template-columns: none;
}
.brand-panel, body.front .brand-panel {
  display: block;
  padding: 0.85rem 0.7rem 0.95rem;
  margin-bottom: 0.35rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.topbar .brand, .topbar-flat .brand, body.front .brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: auto;
  min-height: 0;
  padding: 0;
  background: transparent;
  border: 0;
  color: #fff;
  text-decoration: none;
}
.brand strong { color: #fff; font-size: 0.98rem; letter-spacing: 0.01em; }
.brand em { display: block; color: #d7b4ff; font-style: normal; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }
.sidenav-btn { display: none; }
.topbar-flat .sidenav, body.front .topbar-flat .sidenav {
  position: static;
  inset: auto;
  width: auto;
  transform: none;
  display: block;
  flex: 1;
  padding: 0.4rem 0.15rem;
  background: transparent;
  border: 0;
  overflow: visible;
}
.topbar-flat .sidenav-label, body.front .topbar-flat .sidenav-label {
  position: static;
  width: auto;
  height: auto;
  margin: 0.2rem 0.55rem 0.45rem;
  clip: auto;
  overflow: visible;
  color: #bf40ff;
  letter-spacing: 0.16em;
}
.topbar-flat .sidenav nav, body.front .topbar-flat .sidenav nav {
  display: grid;
  gap: 0.2rem;
}
.topbar-flat .sidenav a, body.front .topbar-flat .sidenav a {
  display: block;
  padding: 0.62rem 0.75rem;
  border-radius: 12px;
  color: #f4ecff;
  white-space: normal;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.topbar-flat .sidenav a:hover, body.front .topbar-flat .sidenav a:hover {
  color: #fff;
  background: rgba(191, 64, 255, 0.16);
}
.topbar-flat .sidenav a[aria-current="page"], body.front .topbar-flat .sidenav a[aria-current="page"] {
  color: #fff;
  background: rgba(160, 32, 240, 0.28);
  box-shadow: inset 3px 0 0 #bf40ff;
}
.topbar-flat .lang-slot, .topbar-flat .top-go, body.front .top-go, body.front .float-go {
  margin-top: 0.35rem;
}
.top-go, .float-go, .pill-solid, body.front .pill-solid, body.front .top-go, body.front .float-go {
  background: linear-gradient(90deg, #a020f0, #bf40ff);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 0 22px rgba(191, 64, 255, 0.45);
}
.top-go:hover, .float-go:hover, .pill-solid:hover, body.front .pill-solid:hover, body.front .top-go:hover, body.front .float-go:hover {
  background: #bf40ff;
  color: #fff;
  box-shadow: 0 0 28px rgba(191, 64, 255, 0.7);
}
.pill-ghost, body.front .pill-ghost {
  color: #fff;
  border-color: rgba(191, 64, 255, 0.7);
  background: transparent;
}
.pill-ghost:hover, body.front .pill-ghost:hover {
  background: rgba(191, 64, 255, 0.2);
  color: #fff;
}
body:has(.topbar-flat) .stage, body.front .stage { margin-left: 252px; }
.hero, body.front .hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 0;
  padding: 3.2rem 1.5rem 2rem;
  background: transparent;
  overflow: hidden;
}
.hero::before, body.front .hero::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: 8%;
  top: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(191, 64, 255, 0.55), transparent 68%);
  filter: blur(2px);
  animation: orb-drift 9s ease-in-out infinite;
  pointer-events: none;
}
.hero::after, body.front .hero::after { display: none; }
.hero-copy, .intro-copy, body.front .hero-copy {
  position: relative;
  z-index: 1;
  max-width: 46rem;
  margin-inline: auto;
  animation: rise-in 0.7s ease both;
}
.hero-actions, body.front .hero-actions { justify-content: center; }
.hero-art, body.front .hero-art { position: relative; z-index: 1; width: 100%; }
.hero-art img, body.front .hero-art img {
  width: min(560px, 100%);
  margin: 0.4rem auto 0;
  filter: drop-shadow(0 24px 40px rgba(160, 32, 240, 0.35));
}
h1, h2, h3, body.front h1, body.front h2, body.front h3 { color: #fff; }
.card, .edition, .story-card, .accordion, .lesson article, .spec-list, .table-wrap, .index-list, .history, .link-grid a, .quote,
body.front .edition, body.front .story-card, body.front .accordion, body.front .quote, body.front dl.spec-list {
  background: #1b0b30;
  color: #f7f2ff;
  border: 1px solid rgba(191, 64, 255, 0.38);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}
.edition:hover, .story-card:hover, .card:hover, .link-grid a:hover {
  transform: translateY(-4px);
  border-color: #bf40ff;
  box-shadow: 0 18px 36px rgba(160, 32, 240, 0.28);
}
th, body.front th { background: #2a1244; color: #fff; }
td, caption, .deck, .prose, .muted, body.front .deck, body.front .prose { color: #cbb8e6; }
.logo-strip, body.front .logo-strip { background: #160a24; color: #f7f2ff; }
.flag, body.front .flag { background: rgba(191, 64, 255, 0.2); color: #f3e8ff; }
.intro, body.front .intro {
  text-align: center;
  background: transparent;
}
.intro::after, body.front .intro::after { display: none; }
.intro-copy, body.front .intro-copy { margin-inline: auto; }
.endcap, body.front .endcap { background: transparent; }
.endcap-card, body.front .endcap-card {
  background: linear-gradient(180deg, #2a1048, #1b0b30);
  border: 1px solid rgba(191, 64, 255, 0.5);
  box-shadow: 0 0 32px rgba(160, 32, 240, 0.28);
}
.foot, body.front .foot { background: #0c0716; color: #ddd0f0; }
.lang-menu, body.front .lang-menu { background: #1b0b30; border: 1px solid rgba(191, 64, 255, 0.45); }
.lang-menu a, body.front .lang-menu a { color: #f7f2ff; }
.lang-menu a:hover, .lang-menu a[aria-current="true"], body.front .lang-menu a[aria-current="true"] {
  background: rgba(191, 64, 255, 0.22);
  color: #fff;
}
html[dir="rtl"] .topbar-flat, html[dir="rtl"] body.front .topbar-flat {
  inset: 0 0 0 auto;
  border-right: 0;
  border-left: 1px solid rgba(191, 64, 255, 0.45);
}
html[dir="rtl"] body:has(.topbar-flat) .stage, html[dir="rtl"] body.front .stage { margin-left: 0; margin-right: 252px; }
html[dir="rtl"] .topbar-flat .sidenav a[aria-current="page"] { box-shadow: inset -3px 0 0 #bf40ff; }
@media (max-width: 980px) {
  .topbar, .topbar-flat, body.front .topbar-flat {
    inset: 0 0 auto 0;
    width: auto;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    overflow: visible;
  }
  .sidenav-btn, .topbar-flat .sidenav-btn { display: inline-flex; }
  .brand-panel { flex: 1; margin: 0; padding: 0.45rem 0.6rem; }
  .topbar-flat .sidenav, body.front .topbar-flat .sidenav {
    position: fixed;
    top: 76px;
    left: 0;
    bottom: 0;
    width: min(280px, 88vw);
    padding: 1rem 0.8rem;
    background: #1b0b30;
    border-right: 1px solid rgba(191, 64, 255, 0.45);
    transform: translateX(-105%);
    z-index: 60;
    overflow: auto;
  }
  .topbar-flat .sidenav.is-open, body.front .topbar-flat .sidenav.is-open { transform: none; }
  html[dir="rtl"] .topbar-flat .sidenav { left: auto; right: 0; transform: translateX(105%); }
  html[dir="rtl"] .topbar-flat .sidenav.is-open { transform: none; }
  body:has(.topbar-flat) .stage, body.front .stage, html[dir="rtl"] body.front .stage, html[dir="rtl"] body:has(.topbar-flat) .stage {
    margin-left: 0;
    margin-right: 0;
    padding-top: 5.2rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero::before, .hero-copy, .edition, .story-card, .card { animation: none; transition: none; }
}

/* Every page: the same chrome sits across the top instead of the left rail. */
body { --mast-h: 84px; }
body .topbar.topbar-flat {
  inset: 0 0 auto 0;
  width: 100%;
  height: auto;
  min-height: var(--mast-h);
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.75rem;
  padding: 0.4rem max(1rem, calc((100% - var(--frame)) / 2));
  overflow: visible;
  border-right: 0;
  border-bottom: 1px solid rgba(191, 64, 255, 0.45);
  box-shadow: 0 10px 36px rgba(80, 0, 140, 0.32);
}
body .brand-panel {
  margin: 0;
  padding: 0.28rem 0.55rem;
  flex: 0 0 auto;
}
body .sidenav-btn,
body.front .sidenav-btn { display: none; }
body .topbar-flat .sidenav,
body.front .topbar-flat .sidenav {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  padding: 0;
  overflow: visible;
}
body .topbar-flat .sidenav-label,
body.front .topbar-flat .sidenav-label {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
body .topbar-flat .sidenav nav,
body.front .topbar-flat .sidenav nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.1rem;
}
body .topbar-flat .sidenav a,
body.front .topbar-flat .sidenav a {
  display: inline-block;
  padding: 0.42rem 0.72rem;
  white-space: nowrap;
}
body .topbar-flat .sidenav a[aria-current="page"],
body.front .topbar-flat .sidenav a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 #bf40ff;
}
body .topbar-flat .lang-slot,
body .top-go {
  margin-top: 0;
  flex: 0 0 auto;
}
body:has(.topbar-flat) .stage { margin-left: 0; margin-right: 0; padding-top: var(--mast-h); }
html[dir="rtl"] body .topbar-flat {
  inset: 0 0 auto 0;
  border-left: 0;
  border-right: 0;
  border-bottom: 1px solid rgba(191, 64, 255, 0.45);
}
html[dir="rtl"] body:has(.topbar-flat) .stage { margin-left: 0; margin-right: 0; padding-top: var(--mast-h); }
html[dir="rtl"] body .topbar-flat .sidenav a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 #bf40ff;
}
@media (max-width: 980px) {
  body .topbar.topbar-flat,
  body.front .topbar.topbar-flat {
    flex-wrap: wrap;
    min-height: 0;
    padding: 0.55rem 0.75rem;
  }
  body .sidenav-btn,
  body.front .sidenav-btn { display: inline-flex; order: 2; }
  body .brand-panel,
  body.front .brand-panel { flex: 1; }
  body .topbar-flat .lang-slot,
  body.front .topbar-flat .lang-slot { order: 3; }
  body .top-go,
  body.front .top-go { order: 4; }
  body .topbar-flat .sidenav,
  body.front .topbar-flat .sidenav {
    position: fixed;
    top: 76px;
    left: 0;
    bottom: 0;
    width: min(280px, 88vw);
    height: auto;
    display: block;
    flex: none;
    padding: 1rem 0.8rem;
    background: #1b0b30;
    border-right: 1px solid rgba(191, 64, 255, 0.45);
    transform: translateX(-105%);
    z-index: 60;
    overflow: auto;
    justify-content: flex-start;
  }
  body .topbar-flat .sidenav.is-open,
  body.front .topbar-flat .sidenav.is-open { transform: none; }
  body .topbar-flat .sidenav nav,
  body.front .topbar-flat .sidenav nav { display: grid; flex-direction: column; }
  body .topbar-flat .sidenav a,
  body.front .topbar-flat .sidenav a { display: block; white-space: normal; padding: 0.7rem 0.75rem; }
  body .topbar-flat .sidenav a[aria-current="page"],
  body.front .topbar-flat .sidenav a[aria-current="page"] { box-shadow: inset 3px 0 0 #bf40ff; }
  body .topbar-flat .sidenav-label,
  body.front .topbar-flat .sidenav-label {
    position: static;
    width: auto;
    height: auto;
    margin: 0 0.7rem 0.7rem;
    clip: auto;
    overflow: visible;
  }
  body:has(.topbar-flat) .stage,
  body.front .stage { padding-top: 5.2rem; }
  html[dir="rtl"] body .topbar-flat .sidenav {
    left: auto;
    right: 0;
    border-right: 0;
    border-left: 1px solid rgba(191, 64, 255, 0.45);
    transform: translateX(105%);
  }
  html[dir="rtl"] body .topbar-flat .sidenav.is-open { transform: none; }
  html[dir="rtl"] body .topbar-flat .sidenav a[aria-current="page"] {
    box-shadow: inset -3px 0 0 #bf40ff;
  }
}

/* Keep the top bar solid and taller than the content offset so titles and tables stay visible. */
body.front { --mast-h: 112px; }
html { scroll-padding-top: 112px; }
body .topbar.topbar-flat,
body.front .topbar.topbar-flat {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  height: auto;
  background: #11091f;
  box-shadow: 0 12px 32px rgba(8, 0, 20, 0.55);
}
body:has(.topbar-flat) .stage,
body.front .stage { padding-top: var(--mast-h); }
.hero,
body.front .hero { overflow: visible; }
body.front .hero { padding-top: 2.6rem; }
body.front h1 { line-height: 1.08; }
.stage section[id],
.stage article[id],
.stage h1,
.stage h2,
.table-wrap { scroll-margin-top: 128px; }
.story-foot,
.lane-pips { position: relative; z-index: 1; }
@media (max-width: 980px) {
  body:has(.topbar-flat) .stage,
  body.front .stage { padding-top: 5.4rem; }
}

/* Soft lights and a faint grid sit behind every page. */
@keyframes wash-shift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-24px, 18px, 0) scale(1.06); }
}
@keyframes grid-drift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 0 72px, 72px 0; }
}
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
body::before {
  background:
    radial-gradient(460px 300px at 14% 22%, rgba(191, 64, 255, 0.32), transparent 70%),
    radial-gradient(560px 360px at 86% 6%, rgba(160, 32, 240, 0.4), transparent 68%),
    radial-gradient(420px 280px at 72% 82%, rgba(191, 64, 255, 0.18), transparent 72%),
    radial-gradient(260px 200px at 28% 68%, rgba(120, 40, 220, 0.16), transparent 70%);
  animation: wash-shift 18s ease-in-out infinite alternate;
}
body::after {
  background-image:
    linear-gradient(rgba(191, 64, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(191, 64, 255, 0.07) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at 50% 20%, #000 10%, transparent 72%);
  animation: grid-drift 22s linear infinite;
}
.stage { position: relative; z-index: 1; }
body .topbar.topbar-flat,
body.front .topbar.topbar-flat {
  background:
    radial-gradient(220px 90px at 7% 50%, rgba(191, 64, 255, 0.42), transparent 72%),
    radial-gradient(180px 70px at 92% 40%, rgba(160, 32, 240, 0.28), transparent 70%),
    #11091f;
}
body .topbar.topbar-flat::before {
  content: "";
  position: absolute;
  width: 240px;
  height: 90px;
  left: 2%;
  top: 50%;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(191, 64, 255, 0.45), transparent 68%);
  filter: blur(10px);
  transform: translateY(-50%);
  animation: orb-drift 9s ease-in-out infinite;
  pointer-events: none;
}
body .brand-panel,
body .topbar-flat .lang-slot,
body .top-go { position: relative; z-index: 1; }
@media (min-width: 981px) {
  body .topbar-flat .sidenav { position: relative; z-index: 1; }
}
@media (prefers-reduced-motion: reduce) {
  body::before,
  body::after,
  body .topbar.topbar-flat::before { animation: none; }
}

/* Feature bands were full-bleed, so their text sat on the viewport edge. */
.band,
.ink-band {
  position: relative;
  padding: 4.2rem max(var(--gutter), calc((100% - var(--frame)) / 2));
}
body.front .hero-art {
  display: flex;
  justify-content: center;
  width: 100%;
}
body.front .hero-art .enlarge {
  display: block;
  width: fit-content;
  margin-inline: auto;
}
body.front .hero-art img {
  display: block;
  width: min(560px, 100%);
  margin-inline: auto;
}
body:not(.front) .slab::before,
body:not(.front) .band::before,
body:not(.front) .ink-band::before,
body:not(.front) .foot::before {
  background:
    linear-gradient(rgba(191, 64, 255, 0.55), rgba(191, 64, 255, 0.55)) left center / calc(50% - 16px) 1px no-repeat,
    linear-gradient(rgba(191, 64, 255, 0.55), rgba(191, 64, 255, 0.55)) right center / calc(50% - 16px) 1px no-repeat,
    linear-gradient(135deg, transparent 42%, #bf40ff 42% 58%, transparent 58%) center / 9px 9px no-repeat;
}