:root{color-scheme:light;box-sizing:border-box;padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px)}html{scroll-padding-top:env(safe-area-inset-top,0px)}body{margin:0;padding:0;font:14px -apple-system,BlinkMacSystemFont,sans-serif;background:#fff;color:#000}img{max-width:100%}[hidden]:not([hidden=until-found i]){display:none!important}

/* Layout: sticky header with search; goal-first home (themes → goal tiles); list pages with simple filters; tool pages read top-down: what it does → what you need → how to start → project's own docs. */
:root {
  --bg: #f4f6fa;
  --surface: #ffffff;
  --sunk: #eef1f7;
  --ink: #141821;
  --muted: #5a6274;
  --line: #dfe3eb;
  --accent: #2346d8;
  --accent-ink: #ffffff;
  --accent-soft: #e6ebfd;
  --star: #a8700f;
  --lvl-b: #17794a; --lvl-b-bg: #e2f4ea;
  --lvl-s: #9a5a00; --lvl-s-bg: #fbf0dc;
  --lvl-d: #5b47b8; --lvl-d-bg: #ece8fb;
  --warn-bg: #fff5de; --warn-fg: #7a5310;
  --code-bg: #10141c; --code-fg: #e4e8f0; --code-dim: #8b93a6;
  --shadow: 0 1px 2px rgb(20 24 33 / 6%), 0 4px 16px rgb(20 24 33 / 6%);
  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0e1117; --surface: #161a23; --sunk: #12161e; --ink: #e8ebf2; --muted: #9aa2b4; --line: #272d3a;
  --accent: #8ea6ff; --accent-ink: #0e1117; --accent-soft: #1d2540; --star: #e3b04b;
  --lvl-b: #6fd39e; --lvl-b-bg: #133224; --lvl-s: #f0b75e; --lvl-s-bg: #33270f; --lvl-d: #b5a6ff; --lvl-d-bg: #251f45;
  --warn-bg: #2b2414; --warn-fg: #e9c77d; --code-bg: #0a0d13; --code-fg: #e4e8f0; --code-dim: #7d859a;
  --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 4px 16px rgb(0 0 0 / 25%); color-scheme: dark;
} }
:root[data-theme="dark"] {
  --bg: #0e1117; --surface: #161a23; --sunk: #12161e; --ink: #e8ebf2; --muted: #9aa2b4; --line: #272d3a;
  --accent: #8ea6ff; --accent-ink: #0e1117; --accent-soft: #1d2540; --star: #e3b04b;
  --lvl-b: #6fd39e; --lvl-b-bg: #133224; --lvl-s: #f0b75e; --lvl-s-bg: #33270f; --lvl-d: #b5a6ff; --lvl-d-bg: #251f45;
  --warn-bg: #2b2414; --warn-fg: #e9c77d; --code-bg: #0a0d13; --code-fg: #e4e8f0; --code-dim: #7d859a;
  --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 4px 16px rgb(0 0 0 / 25%); color-scheme: dark;
}
* { box-sizing: border-box; }
body { background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 15.5px; line-height: 1.55; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--surface); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
button { font: inherit; }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; letter-spacing: -0.01em; }
.eyebrow { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

/* header */
header.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 6; background: var(--surface); border-bottom: 1px solid var(--line); }
header.top .wrap { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px 22px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; min-width: 0; }
.brand:hover { text-decoration: none; }
.mark { width: 32px; height: 32px; flex: none; }
.brand b { font-family: var(--display); font-size: 1.25rem; line-height: 1; letter-spacing: -0.01em; }
nav.main { display: flex; gap: 4px; }
nav.main a { color: var(--ink); padding: 7px 12px; border-radius: 8px; font-weight: 500; font-size: 0.92rem; }
nav.main a:hover { background: var(--accent-soft); text-decoration: none; }
nav.main a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }
.search { position: relative; min-width: 0; }
.search input { width: 100%; font: inherit; font-size: 1rem; padding: 11px 40px; border: 1px solid var(--line); border-radius: 12px; background: var(--sunk); color: var(--ink); }
.search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); background: var(--surface); }
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input::-webkit-search-cancel-button { display: none; }
.search button.clear { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--muted); font-size: 1.3rem; line-height: 1; cursor: pointer; padding: 6px 10px; }

main { padding-block: 26px 70px; }

/* home */
.hero { display: grid; gap: 14px; padding-block: 10px 30px; max-width: 760px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.04; margin: 0; font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { margin: 0; font-size: 1.08rem; color: var(--muted); max-width: 60ch; }
.try { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 0.88rem; color: var(--muted); }
.pill { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 99px; padding: 6px 13px; font-size: 0.86rem; cursor: pointer; text-decoration: none; }
.pill:hover { border-color: var(--accent); text-decoration: none; }
.pill[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.stats { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 0.88rem; color: var(--muted); }
.stats b { color: var(--ink); font-family: var(--mono); font-weight: 500; font-variant-numeric: tabular-nums; }

section.block { margin-top: 38px; }
section.block > header { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
section.block > header h2 { font-size: 1.55rem; margin: 0; }
section.block > header p { margin: 2px 0 0; color: var(--muted); font-size: 0.92rem; }
.theme { margin-top: 26px; }
.theme h3 { font-size: 1.05rem; margin: 0 0 2px; }
.theme > p { margin: 0 0 10px; color: var(--muted); font-size: 0.88rem; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
a.tile { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 2px 12px; align-items: start; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s; }
a.tile:hover { border-color: var(--accent); transform: translateY(-1px); text-decoration: none; }
.tile .ic { grid-row: 1 / span 2; width: 38px; height: 38px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.tile .ic svg { width: 20px; height: 20px; }
.tile b { font-weight: 600; font-size: 0.98rem; line-height: 1.25; }
.tile small { color: var(--muted); font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
a.card { display: flex; flex-direction: column; gap: 6px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; color: var(--ink); text-decoration: none; min-width: 0; }
a.card:hover { border-color: var(--accent); text-decoration: none; }
a.card b { font-size: 1rem; line-height: 1.3; }
a.card p { margin: 0; color: var(--muted); font-size: 0.88rem; }
a.card .meta { margin-top: auto; padding-top: 6px; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 0.78rem; color: var(--muted); }
.guidecard .num { font-family: var(--mono); font-size: 0.75rem; color: var(--accent); }
details.tech { margin-top: 38px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 4px 16px; }
details.tech summary { cursor: pointer; padding: 12px 0; font-weight: 600; }
details.tech .techlist { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 14px; }

/* chips */
.lvl { display: inline-flex; align-items: center; gap: 5px; font-size: 0.74rem; font-weight: 600; padding: 2px 8px; border-radius: 99px; white-space: nowrap; }
.lvl::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.lvl.b { color: var(--lvl-b); background: var(--lvl-b-bg); }
.lvl.s { color: var(--lvl-s); background: var(--lvl-s-bg); }
.lvl.d { color: var(--lvl-d); background: var(--lvl-d-bg); }
.tag { display: inline-block; font-size: 0.74rem; padding: 1px 8px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); background: none; }
button.tag { cursor: pointer; font: inherit; font-size: 0.74rem; }
button.tag:hover { border-color: var(--accent); color: var(--accent); }
.tag.arch { background: var(--warn-bg); color: var(--warn-fg); border-color: transparent; }
.star { color: var(--star); }

/* list pages */
.pagehead { display: grid; gap: 6px; margin-bottom: 18px; }
.crumbs { font-size: 0.82rem; color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; }
.pagehead h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); margin: 0; line-height: 1.1; }
.pagehead p { margin: 0; color: var(--muted); max-width: 65ch; }
.suggest { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; padding: 10px 14px; background: var(--accent-soft); border-radius: 12px; font-size: 0.9rem; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.filters select { font: inherit; font-size: 0.86rem; padding: 7px 10px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); color: var(--ink); max-width: 100%; }
.filters .count { margin-left: auto; color: var(--muted); font-size: 0.85rem; font-variant-numeric: tabular-nums; }
ol.repos { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
a.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 16px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; color: inherit; text-decoration: none; }
a.row:hover { border-color: var(--accent); text-decoration: none; }
.row .obj { font-weight: 600; font-size: 1.02rem; line-height: 1.3; min-width: 0; overflow-wrap: anywhere; }
.row .who { font-size: 0.82rem; color: var(--muted); min-width: 0; overflow-wrap: anywhere; }
.row .who b { color: var(--ink); font-weight: 500; }
.row .st { grid-row: 1 / span 2; grid-column: 2; text-align: right; font-family: var(--mono); font-size: 0.9rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.row .st small { display: block; color: var(--muted); font-size: 0.7rem; font-family: var(--body); }
.row .pl { grid-column: 1 / -1; color: var(--muted); font-size: 0.9rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.row .chips { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: 0.78rem; color: var(--muted); margin-top: 3px; }
.more { display: flex; justify-content: center; margin-top: 18px; }
.btn { font: inherit; font-size: 0.92rem; font-weight: 600; padding: 10px 18px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; display: inline-flex; gap: 8px; align-items: center; text-decoration: none; }
.btn:hover { border-color: var(--accent); text-decoration: none; }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.empty { padding: 36px 20px; text-align: center; color: var(--muted); background: var(--surface); border: 1px dashed var(--line); border-radius: 14px; }
.picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; margin-bottom: 22px; }

/* tool page */
article.tool { max-width: 860px; }
.back { font-size: 0.88rem; display: inline-flex; gap: 6px; margin-bottom: 14px; background: none; border: 0; color: var(--accent); cursor: pointer; padding: 0; }
article.tool h1 { font-size: clamp(1.7rem, 4.4vw, 2.5rem); line-height: 1.08; margin: 6px 0 8px; }
.ident { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 0.9rem; color: var(--muted); margin-bottom: 14px; }
.ident a { font-family: var(--mono); font-size: 0.86rem; overflow-wrap: anywhere; }
.lede { font-size: 1.08rem; margin: 0 0 18px; max-width: 65ch; }
/* v5: trust checks, Arabic collection, policy */
.tpanel { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 16px 18px; margin: 0 0 18px; }
.tpanel h2 { margin: 0 0 4px; font-size: 1.15rem; }
.tpanel > p.sub { margin: 0 0 12px; color: var(--muted); font-size: .9rem; }
.tchecks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; }
.tc { display: flex; gap: 10px; align-items: flex-start; min-width: 0; }
.tci { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.tc.ok .tci { background: var(--lvl-b-bg); color: var(--lvl-b); }
.tc.warn .tci { background: var(--warn-bg); color: var(--warn-fg); }
.tc.bad .tci { background: #fde4e4; color: #b42318; }
.tc.na .tci { background: var(--sunk); color: var(--muted); }
.tc > div { min-width: 0; }
.tc b.tl { display: block; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.tc p { margin: 2px 0 0; font-size: .93rem; overflow-wrap: anywhere; }
.tc small { display: block; color: var(--muted); font-size: .82rem; margin-top: 3px; }
.devsel { margin-top: 6px; max-width: 100%; font: inherit; font-size: .85rem; padding: 5px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); }
.tfoot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: .88rem; }
.share { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.share span { color: var(--muted); }
.chip-ok { color: var(--lvl-b) !important; } .chip-no { color: #b42318 !important; }
.argrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.arcard { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.arcard p { margin: 0; overflow-wrap: anywhere; } .arcard small { color: var(--muted); }
.arhead { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.cards.two { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.policy .part p { max-width: 72ch; }
@media (max-width: 640px) { .tchecks { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tc.bad .tci { background: #3a1a1a; color: #ff8a80; } :root:not([data-theme="light"]) .chip-no { color: #ff8a80 !important; } }
:root[data-theme="dark"] .tc.bad .tci { background: #3a1a1a; color: #ff8a80; } :root[data-theme="dark"] .chip-no { color: #ff8a80 !important; }
.glance { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin: 0 0 18px; }
.glance div { background: var(--surface); padding: 12px 14px; min-width: 0; }
.glance dt { font-size: 0.7rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 3px; }
.glance dd { margin: 0; font-size: 0.94rem; overflow-wrap: anywhere; }
.glance dd small { display: block; color: var(--muted); font-size: 0.82rem; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
section.part { margin-top: 30px; }
section.part > h2 { font-size: 1.3rem; margin: 0 0 4px; }
section.part > .sub { margin: 0 0 14px; color: var(--muted); font-size: 0.9rem; }
ol.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 12px; }
ol.steps > li { counter-increment: s; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; align-items: start; }
ol.steps > li::before { content: counter(s); width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; display: grid; place-items: center; font-family: var(--mono); }
ol.steps > li > div { min-width: 0; padding-top: 4px; }
ol.steps p { margin: 0 0 6px; }
.needs { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.needs li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; align-items: start; }
.needs svg { width: 20px; height: 20px; color: var(--accent); margin-top: 1px; }
.alt { display: grid; gap: 4px; padding: 14px 16px; background: var(--lvl-b-bg); border-radius: 12px; margin-top: 16px; }
.alt a { font-weight: 600; }
details.docs { margin-top: 30px; border-top: 1px solid var(--line); }
details.docs > summary { cursor: pointer; padding: 16px 0 6px; font-family: var(--display); font-size: 1.3rem; font-weight: 700; list-style: none; display: flex; align-items: center; gap: 10px; }
details.docs > summary::-webkit-details-marker { display: none; }
details.docs > summary::after { content: "Show"; margin-left: auto; font-family: var(--body); font-size: 0.82rem; font-weight: 600; color: var(--accent); }
details.docs[open] > summary::after { content: "Hide"; }
.howto h3 { font-size: 1.05rem; margin: 18px 0 4px; }
.src { font-size: 0.8rem; color: var(--muted); display: block; margin-bottom: 8px; }
.src.gen { display: inline-block; background: var(--warn-bg); color: var(--warn-fg); padding: 2px 8px; border-radius: 6px; }
.md { max-width: 72ch; overflow-wrap: anywhere; min-width: 0; }
.md h4, .md h5 { font-size: 1rem; margin: 16px 0 6px; font-family: var(--body); }
.md h5 { font-size: 0.92rem; color: var(--muted); }
.md p { margin: 8px 0; }
.md ul, .md ol { padding-left: 22px; margin: 8px 0; }
.md li { margin: 3px 0; }
.md blockquote { margin: 10px 0; padding: 4px 14px; border-left: 3px solid var(--line); color: var(--muted); }
code { font-family: var(--mono); font-size: 0.86em; background: var(--sunk); padding: 1px 5px; border-radius: 4px; overflow-wrap: anywhere; }
.codebox { position: relative; margin: 10px 0; background: var(--code-bg); border-radius: 10px; }
.codebox pre { margin: 0; padding: 34px 16px 14px; overflow-x: auto; color: var(--code-fg); font-family: var(--mono); font-size: 0.84rem; line-height: 1.6; }
.codebox pre code { background: none; padding: 0; color: inherit; font-size: inherit; overflow-wrap: normal; }
.codebox .lang { position: absolute; left: 16px; top: 9px; font-family: var(--mono); font-size: 0.7rem; color: var(--code-dim); }
.codebox button { position: absolute; right: 8px; top: 7px; font-size: 0.74rem; color: var(--code-fg); background: #ffffff1a; border: 1px solid #ffffff26; border-radius: 6px; padding: 3px 10px; cursor: pointer; }
.codebox button:hover { background: #ffffff33; }
.tablewrap { overflow-x: auto; margin: 10px 0; }
.md table { border-collapse: collapse; font-size: 0.86rem; }
.md th, .md td { border: 1px solid var(--line); padding: 5px 9px; text-align: left; vertical-align: top; }
.note { font-size: 0.86rem; color: var(--muted); margin: 10px 0 0; }
.notice { padding: 14px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); margin: 0; }
.notice.warn { background: var(--warn-bg); color: var(--warn-fg); border-color: transparent; }
.topics { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 18px; }

/* glossary terms */
button.gl { background: none; border: 0; padding: 0; color: inherit; cursor: help; text-decoration: underline dotted; text-decoration-color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1.5px; font: inherit; }
.pop { position: absolute; z-index: 20; max-width: min(340px, calc(100vw - 32px)); background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 12px 14px; font-size: 0.9rem; }
.pop b { display: block; font-family: var(--display); font-size: 1rem; margin-bottom: 3px; }
.pop p { margin: 0 0 6px; }
.pop a { font-size: 0.82rem; }

/* learn */
.guide { max-width: 720px; }
.guide h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin: 6px 0 6px; line-height: 1.1; }
.guide .lede { color: var(--muted); }
.guide h2 { font-size: 1.15rem; margin: 26px 0 6px; }
.guide p, .guide li { max-width: 68ch; }
.guide ul { padding-left: 20px; display: grid; gap: 6px; }
.guide nav.next { margin-top: 36px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.paths { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.path { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: grid; gap: 8px; align-content: start; }
.path h3 { margin: 0; font-size: 1.05rem; }
.path ol { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-size: 0.92rem; }
.gloss { display: grid; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.gloss div { padding: 14px 16px; border-top: 1px solid var(--line); scroll-margin-top: 140px; }
.gloss div:first-child { border-top: 0; }
.gloss dt { font-weight: 600; }
.gloss dd { margin: 2px 0 0; color: var(--muted); max-width: 70ch; }
.gloss div:target { background: var(--accent-soft); }
.gfilter { width: 100%; max-width: 420px; font: inherit; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); margin-bottom: 14px; }
footer.foot { color: var(--muted); font-size: 0.8rem; padding-block: 0 40px; }
footer.foot p { max-width: 80ch; margin: 4px 0; }


/* v3 features */
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.health { display: inline-flex; align-items: center; gap: 6px; font-size: 0.74rem; font-weight: 600; padding: 2px 8px; border-radius: 99px; white-space: nowrap; }
.health.h3 { color: var(--lvl-b); background: var(--lvl-b-bg); } .health.h2 { color: var(--lvl-s); background: var(--lvl-s-bg); } .health.h1 { color: var(--warn-fg); background: var(--warn-bg); }
.health svg { width: 12px; height: 12px; }
.chip-demo { color: var(--accent); font-weight: 600; }
.chip-warn { color: var(--warn-fg); font-weight: 600; }
.altline { font-size: 0.9rem; color: var(--muted); margin: -6px 0 14px; }
.altline b { color: var(--ink); font-weight: 600; }
.warnbox { display: grid; grid-template-columns: 24px minmax(0,1fr); gap: 10px; padding: 14px 16px; border-radius: 12px; background: var(--warn-bg); color: var(--warn-fg); margin: 0 0 18px; font-size: 0.92rem; }
.warnbox svg { width: 22px; height: 22px; } .warnbox b { display: block; margin-bottom: 2px; } .warnbox p { margin: 0; }
.warnbox small { display: block; margin-top: 6px; opacity: .85; }
.demo-note { font-size: 0.8rem; color: var(--muted); margin: 6px 0 0; }
.cmpbtn { font: inherit; font-size: 0.86rem; font-weight: 600; padding: 10px 14px; border-radius: 11px; border: 1px dashed var(--line); background: none; color: var(--ink); cursor: pointer; }
.cmpbtn[aria-pressed="true"] { border-style: solid; border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.tray { position: fixed; z-index: 8; left: 50%; transform: translateX(-50%); bottom: max(14px, env(safe-area-inset-bottom, 0px)); display: flex; gap: 10px; align-items: center; background: var(--ink); color: var(--bg); padding: 8px 8px 8px 16px; border-radius: 99px; box-shadow: var(--shadow); font-size: 0.9rem; max-width: calc(100vw - 32px); }
.tray a { background: var(--accent); color: var(--accent-ink); padding: 7px 14px; border-radius: 99px; font-weight: 600; white-space: nowrap; }
.tray a:hover { text-decoration: none; }
.tray button { background: none; border: 0; color: inherit; opacity: .75; cursor: pointer; padding: 6px; font: inherit; font-size: 0.85rem; }
.cmp { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; font-size: 0.9rem; }
.cmp th, .cmp td { padding: 11px 14px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; min-width: 170px; }
.cmp tr:first-child th, .cmp tr:first-child td { border-top: 0; }
.cmp th[scope="row"] { min-width: 120px; width: 140px; color: var(--muted); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: .05em; background: var(--sunk); }
.cmp td small { display: block; color: var(--muted); }
.cmpwrap { overflow-x: auto; margin-top: 8px; }
.quiz { max-width: 820px; }
.quiz fieldset { border: 0; padding: 0; margin: 0 0 26px; }
.quiz legend { font-family: var(--display); font-size: 1.2rem; font-weight: 700; margin-bottom: 4px; }
.quiz legend span { font-family: var(--mono); color: var(--accent); font-size: 0.85rem; margin-right: 8px; }
.quiz .sub { color: var(--muted); font-size: 0.88rem; margin: 0 0 10px; }
.opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.opts label { display: grid; grid-template-columns: 20px minmax(0,1fr); gap: 10px; align-items: start; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; font-size: 0.92rem; }
.opts label small { display: block; color: var(--muted); font-size: 0.78rem; }
.opts input { margin: 3px 0 0; accent-color: var(--accent); }
.opts label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.quiz select { font: inherit; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); margin-top: 10px; max-width: 100%; }
.result { display: grid; gap: 12px; }
.rcard { display: grid; gap: 6px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.rcard .rank { font-family: var(--mono); font-size: 0.75rem; color: var(--accent); }
.rcard b { font-size: 1.05rem; }
.rcard ul { margin: 2px 0 0; padding-left: 18px; color: var(--muted); font-size: 0.88rem; }
.walk { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: w; }
.walk li { counter-increment: w; display: grid; grid-template-columns: 132px minmax(0,1fr); gap: 16px; align-items: center; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.walk .ill { width: 132px; height: 88px; border-radius: 10px; background: var(--sunk); display: block; }
.walk h4 { margin: 0 0 3px; font-size: 1rem; font-family: var(--body); }
.walk h4::before { content: counter(w) ". "; color: var(--accent); font-family: var(--mono); }
.walk p { margin: 0; font-size: 0.92rem; }
.walkmeta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.86rem; color: var(--muted); margin: 0 0 12px; }
.walkmeta b { color: var(--ink); font-weight: 600; }
.tipbox { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--accent-soft); font-size: 0.9rem; }
.brandgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.brand-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: grid; gap: 6px; align-content: start; }
.brand-card h3 { margin: 0; font-size: 1.02rem; }
.brand-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 0.9rem; }
.brand-card li small { color: var(--muted); }
.paidline { font-size: 0.9rem; color: var(--muted); margin: 0 0 14px; }
.rise { font-family: var(--mono); font-size: 0.78rem; color: var(--lvl-b); }
.altbanner { padding: 16px; border-radius: 14px; background: var(--accent-soft); margin-bottom: 18px; }
.altbanner h2 { margin: 0 0 4px; font-size: 1.2rem; }
.altbanner p { margin: 0 0 12px; color: var(--muted); font-size: 0.9rem; }
figure.shot { margin: 0 0 18px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); }
figure.shot img { display: block; width: 100%; height: auto; max-height: 460px; object-fit: contain; background: var(--sunk); }
figure.shot figcaption { font-size: 0.78rem; color: var(--muted); padding: 8px 12px; }
.bestlist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; counter-reset: b; }
.bestlist li { counter-increment: b; display: grid; grid-template-columns: 40px minmax(0,1fr); gap: 12px; align-items: start; }
.bestlist li::before { content: counter(b); width: 40px; height: 40px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); font-family: var(--display); font-weight: 800; font-size: 1.2rem; display: grid; place-items: center; }
.bestlist .row { grid-template-columns: minmax(0,1fr) auto; }
.bestwhy { grid-column: 1 / -1; font-size: 0.92rem; color: var(--ink); font-weight: 500; }
.fbbox { display: grid; gap: 12px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.fbbtns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fbbtns button { font: inherit; font-size: 0.9rem; font-weight: 600; padding: 9px 14px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.fbbtns button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.fbbtns button:disabled { opacity: .55; cursor: default; }
.fbcount { font-size: 0.9rem; color: var(--muted); }
.fbbox textarea { font: inherit; font-size: 0.92rem; width: 100%; min-height: 70px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--sunk); color: var(--ink); resize: vertical; }
.tips { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.tips li { padding: 10px 12px; border-radius: 10px; background: var(--sunk); font-size: 0.9rem; overflow-wrap: anywhere; }
.featured { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; }
@media (max-width: 760px) {
  .walk li { grid-template-columns: minmax(0,1fr); }
  .walk .ill { width: 100%; height: 110px; }
  .tray { font-size: 0.84rem; }
}
@media (max-width: 760px) {
  header.top .wrap { grid-template-columns: minmax(0, 1fr) auto; padding-block: 10px; gap: 10px; }
  .search { grid-column: 1 / -1; grid-row: 2; }
  nav.main a { padding: 6px 9px; font-size: 0.86rem; }
  .brand b { font-size: 1.08rem; }
  .mark { width: 28px; height: 28px; }
  main { padding-block: 18px 56px; }
  .tiles { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  a.tile { grid-template-columns: minmax(0, 1fr); padding: 12px; }
  .tile .ic { grid-row: auto; width: 32px; height: 32px; margin-bottom: 4px; }
  .glance { grid-template-columns: minmax(0, 1fr); }
  .filters .count { margin-left: 0; width: 100%; }
  a.row { padding: 12px 14px; }
}
@media (max-width: 380px) { nav.main a.gl-link { display: none; } }
/* RTL + Arabic */
:root { --display: "IBM Plex Sans Arabic", "Bricolage Grotesque", system-ui, sans-serif; --body: "IBM Plex Sans Arabic", "IBM Plex Sans", system-ui, sans-serif; }
body { direction: rtl; }
h1, h2, h3, .eyebrow, .glance dt, .cmp th[scope="row"] { letter-spacing: 0; text-transform: none; }
h1 { line-height: 1.3 !important; }
.search svg { left: auto; right: 13px; } .search button.clear { right: auto; left: 6px; }
.filters .count { margin-left: 0; margin-right: auto; }
.row .st { text-align: left; }
.md, .codebox, .codebox pre, .ident a, .howto .src { direction: ltr; text-align: left; }
code { direction: ltr; unicode-bidi: isolate; }
details.docs > summary::after { margin-left: 0; margin-right: auto; content: "عرض"; } details.docs[open] > summary::after { content: "إخفاء"; }
.codebox .lang { left: auto; right: 16px; } .codebox button { right: auto; left: 8px; }
@media (max-width: 760px) { .filters .count { margin-right: 0; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ---- atlas.verbito.ai: Verbito tokens and the launch UI (appended to the app's own CSS) ---- */
:root { --accent: #7c3aed; --accent-soft: #ede9fe; --bg: #f7f6fb; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0f0d16; --surface: #17141f; --sunk: #13111a; --line: #2a2636; --accent: #a78bfa; --accent-ink: #110d1c; --accent-soft: #261d40;
} }
:root[data-theme="dark"] { --bg: #0f0d16; --surface: #17141f; --sunk: #13111a; --line: #2a2636; --accent: #a78bfa; --accent-ink: #110d1c; --accent-soft: #261d40; }
html, body { overflow-x: clip; }
body { background: var(--bg); }

.vbar { background: var(--sunk); border-bottom: 1px solid var(--line); font-size: 0.84rem; }
.vbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 6px; min-height: 40px; }
.vlogo { font-family: var(--display); font-weight: 800; font-size: 1.02rem; color: var(--ink); letter-spacing: -0.01em; direction: ltr; }
.vlogo span { color: var(--accent); }
.vlogo:hover { text-decoration: none; }
.acct { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.acct > a { font-weight: 600; }
.btn.small { padding: 5px 12px; font-size: 0.82rem; border-radius: 9px; }
.acctmenu { position: relative; }
.acctmenu > button { font: inherit; font-weight: 600; background: none; border: 1px solid var(--line); border-radius: 9px; padding: 4px 10px; color: var(--ink); cursor: pointer; }
.acctmenu .menu { position: absolute; inset-inline-end: 0; top: calc(100% + 6px); z-index: 30; display: grid; gap: 2px; min-width: 220px; padding: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.acctmenu .menu[hidden] { display: none; }
.acctmenu .menu a, .acctmenu .menu button { display: block; padding: 8px 10px; border-radius: 8px; color: var(--ink); text-align: start; font: inherit; background: none; border: 0; cursor: pointer; }
.acctmenu .menu a:hover, .acctmenu .menu button:hover { background: var(--accent-soft); text-decoration: none; }
.acctmenu .who { padding: 6px 10px; color: var(--muted); font-size: 0.8rem; overflow-wrap: anywhere; }

.brand .bname { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.brand .bname b { font-family: var(--display); font-size: 1.2rem; }
.brand .bname small { font-size: 0.72rem; color: var(--muted); font-weight: 600; }

.trialbar { margin: 12px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--accent-soft); color: var(--ink); font-size: 0.9rem; }
.memberline { font-size: 0.92rem; color: var(--ink); background: var(--accent-soft); padding: 8px 12px; border-radius: 10px; margin: 0; }

.lockcard { display: grid; gap: 6px; padding: 18px; border: 1px solid var(--accent); background: var(--accent-soft); border-radius: 14px; }
.lockcard b { font-family: var(--display); font-size: 1.1rem; line-height: 1.25; }
.lockcard p { margin: 0; color: var(--ink); }
.lockcard .actions { margin: 6px 0 0; }
.lockcard.small { padding: 12px 14px; }
.lockcard.small b { font-size: 1rem; }
.lockcard[data-v="402"] { display: none; }
html.lock-402 .lockcard[data-v="401"] { display: none; }
html.lock-402 .lockcard[data-v="402"] { display: grid; }
/* Signed in: hold the card back until the gate has answered, so an entitled visitor never sees it flash. */
html.has-session:not(.lock-401):not(.lock-402) .lockcard { visibility: hidden; }

p.count { color: var(--muted); font-size: 0.85rem; margin: 0 0 10px; }
.faqlist dt { font-weight: 600; margin-top: 14px; }
.faqlist dd { margin: 4px 0 0; color: var(--muted); max-width: 72ch; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; font: inherit; }
.footlinks { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.nlbox { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-top: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font-size: 0.86rem; }
.nlbox[hidden] { display: none; }
.consent { position: fixed; inset-inline: 16px; bottom: max(16px, env(safe-area-inset-bottom, 0px)); z-index: 40; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center;
  max-width: 560px; margin-inline: auto; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); font-size: 0.88rem; }
.tag { display: inline-block; }

@media (max-width: 760px) {
  /* Phone: the mark alone (the link keeps its full name for screen readers); the
     Verbito bar above already carries the brand, and the nav needs the room. */
  .brand .bname { display: none; }
}
.brand .bname b { white-space: nowrap; }
