/* Continuous Translations theme: dark, Inter, purple accents (matches website, docs and app). */
:root {
  color-scheme: dark;
  --bg: #04050f; --bg-2: #080b1a;
  --text: #e8eeff; --muted: #8a94b2; --dim: #4a5270;
  --purple: #7c3aed; --purple-l: #a78bfa; --pink: #ec4899; --cyan: #06b6d4; --blue: #3b82f6;
  --line: rgba(255,255,255,.08); --glass: rgba(255,255,255,.035); --glass-2: rgba(255,255,255,.06);
  --ok: #34d399; --bad: #f87171; --code: rgba(255,255,255,.07);
  --radius: 16px; --nav: 72px; --gap: 28px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', Menlo, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav) + 24px); }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.7 var(--font); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: var(--purple-l); text-decoration: none; } a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
code, .mono { font-family: var(--mono); font-size: .88em; }
code { background: var(--code); padding: 2px 7px; border-radius: 6px; overflow-wrap: anywhere; }
.muted { color: var(--muted); } .big { font-size: 1.4em; } .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
::selection { background: rgba(124,58,237,.45); }
:focus-visible { outline: 2px solid var(--purple-l); outline-offset: 2px; }
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 32px; }

/* background */
.nebula { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); mix-blend-mode: screen; }
.blob-1 { width: 700px; height: 700px; background: radial-gradient(circle, rgba(124,58,237,.25), transparent 70%); top: -250px; left: -150px; animation: d1 22s ease-in-out infinite; }
.blob-2 { width: 500px; height: 500px; background: radial-gradient(circle, rgba(59,130,246,.2), transparent 70%); top: 200px; right: -80px; animation: d2 28s ease-in-out infinite; }
.blob-3 { width: 400px; height: 400px; background: radial-gradient(circle, rgba(6,182,212,.15), transparent 70%); bottom: 0; left: 20%; animation: d3 18s ease-in-out infinite; }
@keyframes d1 { 50% { transform: translate(60px,80px) scale(1.05); } } @keyframes d2 { 50% { transform: translate(-60px,40px) scale(1.08); } } @keyframes d3 { 50% { transform: translate(50px,-50px) scale(1.1); } }
.grain { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .03; background-size: 200px; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
@media (prefers-reduced-motion: reduce) { .blob { animation: none; } html { scroll-behavior: auto; } }
.top-nav, main, .foot { position: relative; z-index: 10; }

/* nav */
.top-nav { position: sticky; top: 0; z-index: 200; height: var(--nav); padding: 0 32px; display: flex; align-items: center; gap: 28px; background: rgba(4,5,15,.78); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--line); }
.nav-logo { display: flex; flex-shrink: 0; } .nav-logo img { height: 42px; width: auto; display: block; }
.tabs { display: flex; gap: 4px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.tabs a { padding: 8px 14px; border-radius: 9px; color: var(--muted); font-size: 14.5px; font-weight: 500; white-space: nowrap; transition: color .2s, background .2s; }
.tabs a:hover { color: var(--text); background: var(--glass-2); text-decoration: none; }
.tabs a.active { color: var(--purple-l); background: rgba(124,58,237,.14); font-weight: 600; }
.nav-right { display: flex; align-items: center; gap: 12px; }
.btn-ghost-nav { color: var(--muted); font-size: 14.5px; font-weight: 500; padding: 8px 12px; border-radius: 9px; } .btn-ghost-nav:hover { color: var(--text); background: var(--glass-2); text-decoration: none; }
.btn-primary-nav { background: linear-gradient(135deg, var(--purple), #4f46e5); color: #fff; font-size: 14.5px; font-weight: 600; padding: 9px 20px; border-radius: 9px; box-shadow: 0 0 22px rgba(124,58,237,.32); white-space: nowrap; } .btn-primary-nav:hover { opacity: .9; text-decoration: none; }
.btn { display: inline-flex; align-items: center; gap: 6px; font: 500 14px var(--font); color: var(--text); background: var(--glass-2); border: 1px solid var(--line); border-radius: 10px; padding: 9px 16px; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: var(--purple-l); text-decoration: none; }

/* search */
.gsearch, .hero-search { position: relative; }
.gsearch input, .hero-search input { font: 15px var(--font); color: var(--text); background: var(--glass-2); border: 1px solid var(--line); border-radius: 10px; outline: none; transition: border-color .2s, background .2s; }
.gsearch input { width: 230px; padding: 9px 34px 9px 14px; }
.gsearch input:focus, .hero-search input:focus { border-color: var(--purple-l); background: rgba(255,255,255,.08); }
.gsearch kbd { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font: 12px var(--mono); color: var(--dim); border: 1px solid var(--line); border-radius: 5px; padding: 0 6px; pointer-events: none; }
.gresults { position: absolute; z-index: 300; left: 0; right: 0; top: calc(100% + 8px); min-width: 340px; background: #0b0e1f; border: 1px solid var(--glass-2); border-radius: 12px; box-shadow: 0 20px 50px rgba(0,0,0,.55); padding: 6px; max-height: 420px; overflow: auto; }
.gsearch .gresults { left: auto; width: 420px; }
.gresults a { display: grid; grid-template-columns: 82px 1fr auto; gap: 12px; align-items: baseline; padding: 9px 12px; border-radius: 8px; color: var(--text); }
.gresults a:hover, .gresults a.on { background: rgba(124,58,237,.18); text-decoration: none; }
.gtype { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--purple-l); font-weight: 600; } .gsub { color: var(--muted); font-size: 13px; } .gnone { padding: 14px; color: var(--muted); }

/* page structure */
.page { padding-top: 40px; padding-bottom: 96px; min-height: calc(100vh - var(--nav)); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 28px; } .crumbs a { color: var(--muted); } .crumbs a:hover { color: var(--text); } .crumbs span[aria-hidden] { color: var(--dim); }
.hero { display: flex; align-items: center; gap: 24px; margin-bottom: 24px; }
.badge { flex: none; width: 88px; height: 88px; display: grid; place-items: center; font-size: 52px; line-height: 1; background: var(--glass); border: 1px solid var(--line); border-radius: 22px; }
.badge .sym { font-size: 40px; font-weight: 700; color: var(--purple-l); }
.hero-text { flex: 1; min-width: 0; }
.hero h1 { font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 800; overflow-wrap: break-word; hyphens: auto; }
.hero .sub { color: var(--muted); font-size: 1.1rem; margin-top: 6px; }
.hero-index .badge { width: 64px; height: 64px; font-size: 34px; border-radius: 18px; } .hero-index h1 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
.lead { max-width: 820px; font-size: 1.1rem; line-height: 1.75; color: #c3cbe3; margin-bottom: 36px; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin-bottom: 56px; }
.fact { background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fact-label { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.fact-value { font-size: 1.45rem; font-weight: 700; letter-spacing: -.02em; overflow-wrap: anywhere; line-height: 1.25; }
.fact-sub { font-size: 13.5px; color: var(--muted); font-family: var(--mono); overflow-wrap: anywhere; }

.doc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; align-items: start; }
.toc { position: sticky; top: calc(var(--nav) + 28px); }
.toc h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); margin-bottom: 12px; }
.toc a { display: block; padding: 7px 14px; margin-left: -14px; color: var(--muted); font-size: 14.5px; border-left: 2px solid var(--line); border-radius: 0 8px 8px 0; margin-left: 0; }
.toc a:hover { color: var(--text); text-decoration: none; } .toc a.active { color: var(--purple-l); border-left-color: var(--purple); background: rgba(124,58,237,.08); font-weight: 600; }
.sec { margin-bottom: 72px; } .sec:last-child { margin-bottom: 0; }
.sec h2 { font-size: 1.7rem; font-weight: 700; margin-bottom: 20px; }
.sec h3 { font-size: 1.05rem; font-weight: 600; margin: 32px 0 14px; } .sec h3:first-child { margin-top: 0; }
.sec-lead { color: var(--muted); margin: -8px 0 20px; }

.panel { background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 32px; min-width: 0; }
.panel + .panel, .panel + h3, .tablewrap + h3 { margin-top: 20px; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 20px; align-items: start; } .split .panel + .panel { margin-top: 0; }
.kv { margin: 0; } .kv > div { display: grid; grid-template-columns: minmax(150px, 34%) minmax(0, 1fr); gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.kv > div:first-child { padding-top: 0; } .kv > div:last-child { border-bottom: 0; padding-bottom: 0; }
.kv dt { color: var(--muted); font-size: 15px; } .kv dd { margin: 0; overflow-wrap: anywhere; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chips li { background: var(--glass-2); border: 1px solid var(--line); border-radius: 99px; padding: 4px 14px; font-size: 14.5px; line-height: 1.6; }
.chips a { color: var(--text); } .chips a:hover { color: var(--purple-l); text-decoration: none; }

.tablewrap { overflow-x: auto; background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius); }
.tablewrap table { width: 100%; border-collapse: collapse; font-size: 15px; }
.tablewrap th { text-align: left; padding: 14px 20px; font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--line); white-space: nowrap; background: rgba(255,255,255,.02); }
.tablewrap td { padding: 14px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tablewrap tbody tr:last-child td { border-bottom: 0; }
.panel .tablewrap { background: none; border: 0; border-radius: 0; margin: 0 -12px; } details .tablewrap { margin-top: 14px; }
.symgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.symgrid div { display: grid; gap: 6px; background: var(--glass); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-size: 13px; } .symgrid code { font-size: 1.3em; width: fit-content; }
.envelope { background: rgba(0,0,0,.25); border: 1px dashed var(--glass-2); border-radius: 12px; padding: 16px 20px; margin-bottom: 20px; font-family: var(--mono); font-size: 14px; line-height: 1.9; }
.exemplar { letter-spacing: .08em; word-spacing: .4em; line-height: 2; }
.tester { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.tester label { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 15px; }
.tester input { font: 15px var(--mono); color: var(--text); background: var(--glass-2); border: 1px solid var(--line); border-radius: 10px; padding: 9px 14px; width: 260px; max-width: 100%; outline: none; } .tester input:focus { border-color: var(--purple-l); }
.result.ok { color: var(--ok); } .result.bad { color: var(--bad); }
details { margin-top: 24px; } summary { cursor: pointer; color: var(--purple-l); font-weight: 500; }

/* list pages */
.tools { display: flex; flex-wrap: wrap; align-items: end; gap: 16px; margin-bottom: 24px; }
.searchbox { flex: 1 1 280px; } .searchbox input { width: 100%; font: 16px var(--font); color: var(--text); background: var(--glass-2); border: 1px solid var(--line); border-radius: 12px; padding: 13px 18px; outline: none; } .searchbox input:focus { border-color: var(--purple-l); }
.filter { display: flex; flex-direction: column; gap: 6px; min-width: 160px; flex: 0 1 200px; } .filter span { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 600; }
.filter select { font: 15px var(--font); color: var(--text); background: var(--glass-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; width: 100%; outline: none; } .filter select:focus { border-color: var(--purple-l); } select option { background: #0b0e1f; }
.tools-end { margin-left: auto; display: flex; align-items: center; gap: 16px; } .count { color: var(--muted); font-size: 14px; }
.bigtable td { padding: 16px 20px; } .bigtable tr[hidden] { display: none; }
.bigtable th button { all: unset; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; } .bigtable th button:hover { color: var(--text); }
.bigtable th[aria-sort="ascending"] button::after { content: "▲"; font-size: 9px; color: var(--purple-l); } .bigtable th[aria-sort="descending"] button::after { content: "▼"; font-size: 9px; color: var(--purple-l); }
.bigtable th[aria-sort] { color: var(--text); }
.bigtable tbody tr:hover td { background: var(--glass); } .bigtable td a { font-weight: 500; }
.num { text-align: right; } .flagsm { margin-right: 10px; font-size: 1.15em; }
.empty { padding: 56px 0; text-align: center; color: var(--muted); }

/* home */
.home-hero { padding: 40px 0 56px; max-width: 880px; } .eyebrow { font-size: 13px; text-transform: uppercase; letter-spacing: .14em; color: var(--purple-l); font-weight: 600; margin-bottom: 18px; }
.home-hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 800; line-height: 1.08; letter-spacing: -.035em; margin-bottom: 24px; }
.grad { background: linear-gradient(135deg, var(--purple-l), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-search { max-width: 620px; } .hero-search input { width: 100%; font-size: 17px; padding: 18px 22px; border-radius: 14px; }
.hero-search .gresults { min-width: 0; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 72px; } .tiles-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); margin-bottom: 0; }
.tile { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 28px; background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); transition: border-color .2s, transform .2s, background .2s; }
.tile:hover { border-color: rgba(167,139,250,.5); background: var(--glass-2); transform: translateY(-2px); text-decoration: none; }
.tile-icon { font-size: 30px; } .tile strong { font-size: 1.25rem; } .tile-count { position: absolute; top: 28px; right: 28px; font: 600 13px var(--mono); color: var(--purple-l); background: rgba(124,58,237,.14); border-radius: 99px; padding: 2px 10px; } .tile .muted { font-size: 14.5px; line-height: 1.6; }
.home-block { margin-bottom: 64px; } .home-block h2 { font-size: 1.5rem; margin-bottom: 20px; } .sources { padding-left: 20px; margin: 0 0 16px; line-height: 2; }

/* footer */
.foot { border-top: 1px solid var(--line); background: rgba(4,5,15,.85); padding: 56px 0 28px; }
.foot-inner { display: flex; justify-content: space-between; gap: 56px; flex-wrap: wrap; } .foot-inner > div:first-child { max-width: 420px; display: flex; flex-direction: column; gap: 16px; font-size: 14.5px; }
.foot-logo img { height: 42px; width: auto; display: block; }
.foot-cols { display: flex; gap: 72px; flex-wrap: wrap; } .foot-cols div { display: flex; flex-direction: column; gap: 10px; } .foot-cols h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); margin-bottom: 4px; }
.foot-cols a { color: var(--muted); font-size: 14.5px; } .foot-cols a:hover { color: var(--text); }
.foot-copy { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--dim); }

/* responsive */
@media (max-width: 1100px) { .doc { grid-template-columns: minmax(0, 1fr); } .toc { display: none; } }
@media (max-width: 900px) { .gsearch, .nav-docs { display: none; } .top-nav { gap: 16px; } }
@media (max-width: 680px) {
  .container { padding: 0 18px; } .top-nav { padding: 0 16px; gap: 12px; height: 64px; --nav: 64px; } .nav-logo img { height: 34px; } .btn-primary-nav { padding: 8px 14px; font-size: 13.5px; }
  .tabs a { padding: 8px 10px; font-size: 14px; } .tabs { mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .page { padding-top: 24px; } .hero { gap: 16px; flex-wrap: wrap; } .hero-actions { order: 3; flex-basis: 100%; } .hero h1 { font-size: 1.9rem; } .hero .sub { font-size: 1rem; } .badge { width: 64px; height: 64px; font-size: 38px; border-radius: 16px; }
  .panel { padding: 22px 20px; } .kv > div { grid-template-columns: 1fr; gap: 4px; }
  .sec { margin-bottom: 52px; } .facts { margin-bottom: 40px; gap: 12px; } .fact { padding: 16px 18px; }
  .tools-end { margin-left: 0; width: 100%; justify-content: space-between; } .filter { flex: 1 1 calc(50% - 8px); min-width: 140px; }
  .wide { display: none; } .bigtable td, .tablewrap th, .tablewrap td { padding: 12px 14px; }
  .gresults a { grid-template-columns: 70px 1fr; } .gsub { display: none; }
  .foot-cols { gap: 40px; }
}
