/* wikiAE (/wikiae/): documentation home. Follows the brand guide: one accent blue (#2252CC), navy bands (#0C1830 -> #091223), 1 px borders,
   pill buttons, Sora / Work Sans / IBM Plex Mono, "Bientôt" in grey Plex Mono. Scroll-linked effects are enabled by assets/js/wikiae.js
   (class wk-js) and never when the visitor prefers reduced motion: the page is then a plain, complete document. */
:root { --wk-navy-1: #0C1830; --wk-navy-2: #0A1428; --wk-navy-3: #091223; --wk-navy-raised: #101E38; --wk-navy-border: #1E3155; --wk-blue-pale: #A0BEFF; }
.wk { background: var(--bg); }
.wk-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wk-skip { position: absolute; left: -999px; top: 8px; z-index: 2000; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 100px; }
.wk-skip:focus { left: 8px; color: #fff; }
.wk-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 1500; pointer-events: none; }
.wk-progress i { display: block; height: 100%; width: 0; background: var(--accent); }
.wk-nav-tag { margin-left: 8px; padding: 2px 9px; border: 1px solid var(--border); border-radius: 100px; font: 600 11px 'IBM Plex Mono', monospace; color: var(--accent); letter-spacing: .02em; }
.wk-i { flex: none; }
.wk-eyebrow { margin: 0 0 14px; font: 600 12px 'Work Sans', sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--wk-blue-pale); }
.wk-eyebrow-ink { color: var(--accent); }
.wk-muted { color: var(--text-muted); font-size: 16px; line-height: 1.65; max-width: 62ch; margin: 0; }
.wk-sub { color: rgba(255, 255, 255, .74); font-size: clamp(16px, 2vw, 20px); line-height: 1.6; margin: 0 auto; max-width: 62ch; }
.wk-sub-narrow { max-width: 54ch; margin-left: 0; }

/* ---- 1. hero ---- */
.wk-hero { position: relative; background: linear-gradient(180deg, var(--wk-navy-1), var(--wk-navy-2) 55%, var(--wk-navy-3)); color: #fff; }
.wk-stick { position: relative; min-height: 100vh; display: grid; place-items: center; overflow: hidden; padding: 96px var(--gutter); }
.wk-grid { position: absolute; inset: -40px; background-image: radial-gradient(circle, rgba(160, 190, 255, .35) 1px, transparent 1.4px); background-size: 34px 34px; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 10%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 10%, transparent 75%); animation: wk-drift 60s linear infinite; }
@keyframes wk-drift { to { background-position: 340px 170px; } }
.wk-hero-copy { position: relative; z-index: 2; text-align: center; max-width: 920px; width: 100%; will-change: transform, opacity; }
.wk-hero h1 { margin: 0 0 20px; font: 700 clamp(40px, 7.4vw, 88px)/1.04 'Sora', sans-serif; letter-spacing: -.02em; color: #fff; text-wrap: balance; }
.wk-search { position: relative; max-width: 620px; margin: 34px auto 0; }
.wk-search input { width: 100%; height: 58px; padding: 0 22px 0 54px; border-radius: 100px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .96); color: var(--text); font: 400 16px 'Work Sans', sans-serif; box-shadow: 0 18px 50px -24px rgba(0, 0, 0, .6); }
.wk-search input:focus { outline: 3px solid var(--wk-blue-pale); outline-offset: 2px; }
.wk-search-ico { position: absolute; left: 20px; top: 19px; color: var(--accent); }
.wk-results { position: absolute; z-index: 5; left: 0; right: 0; top: 66px; margin: 0; padding: 8px; list-style: none; text-align: left; background: #fff; border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 24px 60px -28px rgba(0, 0, 0, .55); color: var(--text); }
.wk-results[hidden] { display: none; }
.wk-results li a, .wk-results li.is-soon, .wk-results li.is-empty { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 14px; border-radius: 12px; color: var(--text); font-size: 15px; }
.wk-results li a:hover, .wk-results li a:focus-visible { background: var(--bg-soft); color: var(--accent); outline: none; }
.wk-results small { font: 500 11px 'IBM Plex Mono', monospace; color: var(--text-muted); white-space: nowrap; }
.wk-results li.is-soon, .wk-results li.is-empty { color: var(--text-muted); }
.wk-scroll { margin: 40px 0 0; font: 500 12px 'IBM Plex Mono', monospace; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.wk-scroll span { display: block; width: 1px; height: 34px; margin: 12px auto 0; background: linear-gradient(var(--wk-blue-pale), transparent); animation: wk-pulse 2.4s ease-in-out infinite; }
@keyframes wk-pulse { 0%, 100% { opacity: .25; transform: scaleY(.6); } 50% { opacity: 1; transform: scaleY(1); } }
.wk-sheet { position: relative; z-index: 3; width: min(720px, 100%); margin-top: 48px; background: var(--wk-navy-raised); border: 1px solid var(--wk-navy-border); border-radius: 18px; padding: 0 0 8px; box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .8); }
.wk-sheet-bar { display: flex; align-items: center; gap: 7px; padding: 14px 18px; border-bottom: 1px solid var(--wk-navy-border); }
.wk-sheet-bar i { width: 9px; height: 9px; border-radius: 50%; background: #2B4272; }
.wk-sheet-bar span { margin-left: 10px; font: 500 12px 'IBM Plex Mono', monospace; color: rgba(255, 255, 255, .6); }
.wk-sheet ul { list-style: none; margin: 0; padding: 6px 10px 2px; }
.wk-sheet li { display: grid; grid-template-columns: 28px auto 1fr; align-items: center; gap: 12px; padding: 11px 10px; border-radius: 10px; color: #fff; }
.wk-sheet li img { border-radius: 7px; }
.wk-sheet li strong { font: 600 15px 'Sora', sans-serif; }
.wk-sheet li span { color: rgba(255, 255, 255, .55); font-size: 13.5px; text-align: right; }
.wk-js.wk-wide .wk-hero { height: 250vh; }
.wk-js.wk-wide .wk-hero .wk-stick { position: sticky; top: 0; height: 100vh; min-height: 0; padding-top: 70px; padding-bottom: 40px; display: block; }
.wk-js.wk-wide .wk-hero-copy { position: absolute; left: 50%; top: 50%; width: min(920px, calc(100% - 2 * var(--gutter))); transform: translate(-50%, calc(-50% - var(--p, 0) * 12vh)) scale(calc(1 - var(--p, 0) * .24)); opacity: calc(1 - var(--p, 0) * 1.7); }
.wk-js.wk-wide .wk-sheet { position: absolute; left: 50%; bottom: 0; margin: 0; transform: translate(-50%, calc((1 - var(--sp, 0)) * 78vh)); opacity: calc(var(--sp, 0) * 1.4); }

/* ---- 2. manifest ---- */
.wk-manifest { background: var(--bg); }
.wk-stick-light { background: var(--bg); }
.wk-words { max-width: 980px; margin: 0; font: 700 clamp(30px, 5.4vw, 64px)/1.14 'Sora', sans-serif; letter-spacing: -.02em; color: var(--text); text-wrap: balance; }
.wk-words .wk-w { display: inline; }
.wk-js.wk-wide .wk-manifest { height: 230vh; }
.wk-js.wk-wide .wk-manifest .wk-stick { position: sticky; top: 0; height: 100vh; min-height: 0; }

/* ---- 3. applications ---- */
.wk-apps { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.wk-stick-soft { background: var(--bg-soft); display: block; padding: 88px 0 72px; min-height: 0; }
.wk-apps-head { padding: 0 var(--gutter); max-width: 1160px; margin: 0 auto 34px; }
.wk-apps-head h2 { margin: 0 0 12px; font: 700 clamp(30px, 4.6vw, 52px)/1.08 'Sora', sans-serif; letter-spacing: -.02em; }
.wk-track { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; padding: 0 var(--gutter); max-width: 1256px; margin: 0 auto; }
.wk-app { display: flex; flex-direction: column; gap: 18px; padding: 26px; background: #fff; border: 1px solid var(--border); border-radius: 18px; transition: border-color .2s, transform .2s, box-shadow .2s; }
.wk-app:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 18px 40px -26px rgba(34, 82, 204, .45); }
.wk-app header { display: flex; gap: 14px; align-items: flex-start; }
.wk-app header img { border-radius: 11px; border: 1px solid var(--border); flex: none; }
.wk-app h3 { margin: 0; font: 600 20px 'Sora', sans-serif; }
.wk-app header p { margin: 4px 0 0; color: var(--text-muted); font-size: 14px; line-height: 1.5; }
.wk-topics { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; flex: 1; }
.wk-topics li a, .wk-topics li.is-soon { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--border); font-size: 14.5px; color: var(--text); }
.wk-topics li a:hover { color: var(--accent); }
.wk-topics li.is-soon { color: var(--text-muted); }
.wk-topics em, .wk-roadlist em { font: 500 11px 'IBM Plex Mono', monospace; font-style: normal; color: var(--text-faint); letter-spacing: .02em; white-space: nowrap; }
.wk-app-link { font-weight: 600; font-size: 14.5px; }
.wk-js.wk-wide .wk-apps { height: var(--wk-h, 320vh); }
.wk-js.wk-wide .wk-stick-soft { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: 70px 0 30px; }
.wk-js.wk-wide .wk-apps-head { margin-bottom: 28px; width: 100%; }
.wk-js.wk-wide .wk-track { display: flex; flex-wrap: nowrap; gap: 20px; width: max-content; max-width: none; margin: 0; padding: 0 var(--gutter) 0 max(var(--gutter), calc((100vw - 1160px) / 2 + var(--gutter))); will-change: transform; }
.wk-js.wk-wide .wk-app { width: min(360px, 78vw); flex: none; }

/* ---- 4. three ways in ---- */
.wk-steps { background: var(--bg); }
.wk-steps-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 90px); align-items: center; max-width: 1160px; margin: 0 auto; width: 100%; }
.wk-steps-copy h2 { margin: 0 0 24px; font: 700 clamp(30px, 4.6vw, 52px)/1.08 'Sora', sans-serif; letter-spacing: -.02em; }
.wk-dots { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.wk-dots li { display: flex; align-items: center; gap: 14px; padding: 8px 0; font: 600 17px 'Sora', sans-serif; color: var(--text-faint); opacity: .55; transition: opacity .3s, color .3s; }
.wk-dots li span { font: 500 12px 'IBM Plex Mono', monospace; }
.wk-dots li.is-on { opacity: 1; color: var(--accent); }
.wk-panels { display: grid; }
.wk-panel { grid-area: 1 / 1; padding: 34px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 18px; align-self: center; }
.wk-panel h3 { margin: 6px 0 10px; font: 700 clamp(26px, 3.4vw, 40px)/1.1 'Sora', sans-serif; letter-spacing: -.01em; }
.wk-lead { font: 600 18px 'Sora', sans-serif; margin: 0 0 12px; color: var(--text); }
.wk-panel p { color: var(--text-muted); line-height: 1.65; font-size: 15.5px; margin: 0 0 10px; }
.wk-kick { font: 500 12px 'IBM Plex Mono', monospace !important; color: var(--accent) !important; margin: 14px 0 0 !important; }
.wk-ico { width: 46px; height: 46px; border-radius: 12px; display: inline-grid; place-items: center; background: rgba(34, 82, 204, .09); color: var(--accent); }
.wk-ico-lg { width: 62px; height: 62px; border-radius: 16px; }
.wk-js.wk-wide .wk-steps { height: 330vh; }
.wk-js.wk-wide .wk-steps .wk-stick { position: sticky; top: 0; height: 100vh; min-height: 0; }
.wk-js.wk-wide .wk-panel { opacity: 0; transform: translateY(26px) scale(.98); transition: opacity .45s ease, transform .45s ease; pointer-events: none; }
.wk-js.wk-wide .wk-panel.is-on { opacity: 1; transform: none; pointer-events: auto; }
.wk-panel { margin-bottom: 16px; }
.wk-js.wk-wide .wk-panel { margin-bottom: 0; }
.wk-panels { display: block; }
.wk-js.wk-wide .wk-panels { display: grid; }
@media (max-width: 899px) { .wk-steps-grid { grid-template-columns: minmax(0, 1fr); } .wk-steps .wk-stick { padding: 72px var(--gutter); } .wk-dots { display: none; } }

/* ---- 5. guides ---- */
.wk-section { padding-top: 88px; padding-bottom: 88px; }
.wk-section h2 { margin: 0 0 14px; font: 700 clamp(30px, 4.6vw, 52px)/1.08 'Sora', sans-serif; letter-spacing: -.02em; }
.wk-guides { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 36px; }
@media (max-width: 899px) { .wk-guides { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .wk-guides { grid-template-columns: minmax(0, 1fr); } }
.wk-guide { display: flex; flex-direction: column; gap: 8px; padding: 24px; background: #fff; border: 1px solid var(--border); border-radius: 16px; color: var(--text); transition: transform .2s, border-color .2s, box-shadow .2s; }
.wk-guide:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 16px 36px -26px rgba(34, 82, 204, .5); color: var(--text); }
.wk-guide h3 { margin: 10px 0 0; font: 600 17px 'Sora', sans-serif; }
.wk-guide p { margin: 0; color: var(--text-muted); font-size: 14.5px; line-height: 1.55; flex: 1; }
.wk-more { font-weight: 600; font-size: 14px; color: var(--accent); }

/* ---- 6. technology ---- */
.wk-tech-band { background: radial-gradient(ellipse 80% 90% at 85% 0%, #16294f, transparent 60%), linear-gradient(180deg, var(--wk-navy-1), var(--wk-navy-3)); color: #fff; padding: 96px 0 104px; overflow: hidden; }
.wk-tech-band h2 { margin: 0 0 14px; font: 700 clamp(30px, 4.6vw, 52px)/1.08 'Sora', sans-serif; letter-spacing: -.02em; color: #fff; }
.wk-techs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 44px; }
@media (max-width: 999px) { .wk-techs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .wk-techs { grid-template-columns: minmax(0, 1fr); } }
.wk-tech { display: flex; flex-direction: column; gap: 8px; padding: 26px; background: var(--wk-navy-raised); border: 1px solid var(--wk-navy-border); border-radius: 18px; color: #fff; translate: 0 var(--py, 0px); transition: border-color .2s; }
.wk-tech:hover { border-color: var(--wk-blue-pale); color: #fff; }
.wk-tech .wk-ico { background: rgba(160, 190, 255, .12); color: var(--wk-blue-pale); }
.wk-tech h3 { margin: 12px 0 0; font: 600 19px 'Sora', sans-serif; }
.wk-tech p { margin: 0; color: rgba(255, 255, 255, .66); font-size: 14.5px; line-height: 1.55; flex: 1; }
.wk-tech .wk-more { color: var(--wk-blue-pale); }

/* ---- 7. roadmap ---- */
.wk-road { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 6vw, 80px); align-items: center; }
@media (max-width: 899px) { .wk-road { grid-template-columns: minmax(0, 1fr); } }
.wk-road-copy .btn-primary { display: inline-block; margin-top: 26px; }
.wk-roadlist { list-style: none; margin: 0; padding: 0; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 18px; }
.wk-roadlist li { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 22px; border-top: 1px solid var(--border); font-size: 15.5px; }
.wk-roadlist li:first-child { border-top: 0; }
.wk-roadlist a { font-weight: 600; font-size: 13px; }

/* ---- reveal (once per element, brand guide: 18 px, 0.6 s) ---- */
.wk-js [data-wk-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.wk-js [data-wk-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .wk-grid, .wk-scroll span { animation: none; }
  .wk-app, .wk-guide, .wk-tech { transition: none; }
}
html[data-motion="reduce"] .wk-grid, html[data-motion="reduce"] .wk-scroll span { animation: none; }
@media (max-width: 640px) { .wk-stick { padding-top: 84px; } .wk-app { padding: 20px; } .wk-nav-tag { display: none; } }

/* ---- Documentation pages (/wikiae/<app>/ and articles) ---- */
.wd { background: var(--bg); }
.wd-main { padding-bottom: 96px; }
.wd-wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.wd-crumbs { margin: 0 0 14px; font: 500 12.5px 'IBM Plex Mono', monospace; color: var(--text-faint); }
.wd-crumbs a { color: var(--text-muted); } .wd-crumbs a:hover { color: var(--accent); } .wd-crumbs span { margin: 0 4px; }
/* hub */
.wd-hub-head { background: linear-gradient(180deg, var(--wk-navy-1), var(--wk-navy-3)); color: #fff; padding: 64px 0 56px; }
.wd-hub-head .wd-crumbs, .wd-hub-head .wd-crumbs a { color: rgba(255,255,255,.62); }
.wd-hub-title { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.wd-hub-title img { width: 64px; height: 64px; border-radius: 16px; background: #fff; }
.wd-hub-title h1 { margin: 0; font: 700 clamp(34px, 5vw, 56px)/1.05 'Sora', sans-serif; letter-spacing: -.02em; color: #fff; }
.wd-hub-title p { margin: 8px 0 0; max-width: 60ch; color: rgba(255,255,255,.76); font-size: 17px; line-height: 1.55; }
.wd-hub-links { display: flex; align-items: center; gap: 18px; margin-top: 26px; }
.wd-count { font: 500 12.5px 'IBM Plex Mono', monospace; color: rgba(255,255,255,.62); }
.wd-hub-body { padding-top: 56px; display: grid; gap: 52px; }
.wd-sec h2 { margin: 0; font: 700 clamp(22px, 3vw, 30px)/1.15 'Sora', sans-serif; letter-spacing: -.015em; }
.wd-sec-intro { margin: 8px 0 0; color: var(--text-muted); font-size: 15.5px; max-width: 62ch; }
.wd-cards { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.wd-cards a { position: relative; display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 20px 44px 20px 20px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); color: inherit; text-decoration: none; transition: border-color .2s, transform .2s, box-shadow .2s; }
.wd-cards a:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(14,22,48,.08); }
.wd-cards strong { font: 600 16px/1.3 'Sora', sans-serif; }
.wd-cards span { font-size: 13.5px; line-height: 1.55; color: var(--text-muted); }
.wd-cards em { position: absolute; right: 18px; top: 20px; font-style: normal; color: var(--accent); }
/* article layout */
.wd-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr) 210px; gap: 48px; padding-top: 44px; align-items: start; }
.wd-side { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow: auto; padding-right: 8px; font-size: 14px; }
.wd-side-app { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font: 700 16px 'Sora', sans-serif; color: var(--text); text-decoration: none; }
.wd-side-app img { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--border); background: #fff; }
.wd-side-sec { margin-bottom: 18px; }
.wd-side-sec p { margin: 0 0 6px; font: 600 11px 'IBM Plex Mono', monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); }
.wd-side-sec ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--border); }
.wd-side-sec a { display: block; padding: 5px 0 5px 12px; margin-left: -1px; border-left: 2px solid transparent; color: var(--text-muted); text-decoration: none; line-height: 1.4; }
.wd-side-sec a:hover { color: var(--text); }
.wd-side-sec a[aria-current] { color: var(--accent); border-left-color: var(--accent); font-weight: 600; }
.wd-article { min-width: 0; max-width: 740px; }
.wd-article h1 { margin: 0; font: 700 clamp(30px, 4.4vw, 46px)/1.1 'Sora', sans-serif; letter-spacing: -.02em; }
.wd-lead { margin: 16px 0 0; font-size: 19px; line-height: 1.55; color: var(--text); font-weight: 500; }
.wd-meta { margin: 14px 0 0; padding-bottom: 20px; border-bottom: 1px solid var(--border); font: 500 12.5px 'IBM Plex Mono', monospace; color: var(--text-faint); }
.wd-body { padding-top: 12px; }
.wd-body h2 { margin: 40px 0 10px; font: 700 23px/1.2 'Sora', sans-serif; letter-spacing: -.01em; scroll-margin-top: 90px; }
.wd-body p, .wd-body li { font-size: 16.5px; line-height: 1.75; color: #2f3441; }
.wd-body p { margin: 0 0 14px; }
.wd-body ul, .wd-body ol { margin: 0 0 16px; padding-left: 22px; }
.wd-body li { margin-bottom: 5px; }
.wd-body a { font-weight: 600; }
.wd-code { margin: 14px 0 18px; padding: 16px 18px; border-radius: 12px; background: var(--wk-navy-2); color: #DCE6FF; font: 500 13.5px/1.7 'IBM Plex Mono', monospace; overflow-x: auto; white-space: pre; }
.wd-table { width: 100%; border-collapse: collapse; margin: 14px 0 20px; font-size: 14.5px; display: block; overflow-x: auto; }
.wd-table th, .wd-table td { text-align: left; padding: 10px 14px; border: 1px solid var(--border); vertical-align: top; line-height: 1.55; }
.wd-table th { background: var(--bg-soft); font-weight: 600; }
.wd-table td:first-child { font-family: 'IBM Plex Mono', monospace; font-size: 13px; white-space: nowrap; color: var(--accent); }
.wd-callout { margin: 18px 0; padding: 14px 18px; border-left: 3px solid var(--accent); border-radius: 0 12px 12px 0; background: rgba(34,82,204,.06); }
.wd-callout, .wd-body .wd-callout { font-size: 15px !important; }
.wd-related { margin-top: 36px; padding: 20px 22px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg-soft); }
.wd-related h2 { margin: 0 0 10px; font: 600 12px 'IBM Plex Mono', monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); }
.wd-related ul { margin: 0; padding-left: 18px; } .wd-related li { margin-bottom: 4px; font-size: 15px; }
.wd-note { margin: 28px 0 0; font-size: 13px; line-height: 1.6; color: var(--text-faint); }
.wd-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 32px; }
.wd-pager a { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1px solid var(--border); border-radius: 14px; color: var(--text); text-decoration: none; font-weight: 600; line-height: 1.35; }
.wd-pager a:hover { border-color: var(--accent); }
.wd-pager a span { font: 500 12px 'IBM Plex Mono', monospace; color: var(--text-faint); }
.wd-pager .next { text-align: right; }
.wd-toc { position: sticky; top: 84px; font-size: 13.5px; }
.wd-toc p { margin: 0 0 8px; font: 600 11px 'IBM Plex Mono', monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); }
.wd-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--border); }
.wd-toc a { display: block; padding: 4px 0 4px 12px; margin-left: -1px; border-left: 2px solid transparent; color: var(--text-muted); text-decoration: none; line-height: 1.4; }
.wd-toc a.is-on { color: var(--accent); border-left-color: var(--accent); }
.wd-help { display: block; margin-top: 18px; padding: 0 !important; border: 0 !important; font-weight: 600; color: var(--accent) !important; }
[data-wd-reveal] { opacity: 1; }
.wd-js [data-wd-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s cubic-bezier(.2,.6,.2,1), transform .6s cubic-bezier(.2,.6,.2,1); }
.wd-js [data-wd-reveal].is-in { opacity: 1; transform: none; }
@media (max-width: 1100px) { .wd-layout { grid-template-columns: 230px minmax(0, 1fr); } .wd-toc { display: none; } }
@media (max-width: 800px) {
  .wd-layout { grid-template-columns: 1fr; gap: 24px; padding-top: 28px; }
  .wd-side { position: static; max-height: none; order: 2; padding: 20px 0 0; border-top: 1px solid var(--border); }
  .wd-article { order: 1; }
  .wd-pager { grid-template-columns: 1fr; } .wd-pager .next { text-align: left; }
  .wd-hub-head { padding: 44px 0 40px; }
}
@media (prefers-reduced-motion: reduce) { .wd-js [data-wd-reveal] { opacity: 1; transform: none; transition: none; } }
html[data-motion="reduce"] .wd-js [data-wd-reveal] { opacity: 1; transform: none; transition: none; }

/* ---- wikiAE sub-bar: applications as tabs + instant search, sticky on every documentation page ---- */
.wd-bar { position: sticky; top: 0; z-index: 800; background: rgba(255,255,255,.92); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--border); }
.wd-bar-in { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: 18px; height: 54px; }
.wd-bar-home { flex: none; font: 700 14px 'Sora', sans-serif; color: var(--accent); }
.wd-tabs { flex: 1; display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.wd-tabs::-webkit-scrollbar { display: none; }
.wd-tabs a { display: inline-flex; align-items: center; gap: 7px; padding: 7px 9px; border-radius: 100px; font-size: 13.5px; font-weight: 500; color: var(--text-muted); white-space: nowrap; }
.wd-tabs a img { width: 18px; height: 18px; border-radius: 5px; background: #fff; }
.wd-tabs a:hover { background: var(--bg-soft); color: var(--text); }
.wd-tabs a[aria-current] { background: rgba(34,82,204,.1); color: var(--accent); font-weight: 600; }
.wd-search { position: relative; flex: none; width: 230px; }
.wd-search > svg { position: absolute; left: 12px; top: 11px; color: var(--text-faint); }
.wd-search input { width: 100%; height: 36px; padding: 0 34px 0 34px; border: 1px solid var(--border); border-radius: 100px; background: var(--bg-soft); font: 400 13.5px 'Work Sans', sans-serif; color: var(--text); }
.wd-search input:focus { outline: 2px solid var(--accent); outline-offset: 1px; background: #fff; }
.wd-search kbd { position: absolute; right: 10px; top: 8px; padding: 1px 6px; border: 1px solid var(--border); border-radius: 6px; font: 500 11px 'IBM Plex Mono', monospace; color: var(--text-faint); background: #fff; }
.wd-results { position: absolute; right: 0; top: 44px; width: min(420px, 92vw); margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 24px 60px rgba(14,22,48,.18); max-height: 70vh; overflow: auto; }
.wd-results a { display: block; padding: 9px 12px; border-radius: 9px; color: var(--text); line-height: 1.35; }
.wd-results a:hover, .wd-results a:focus, .wd-results a.is-sel { background: var(--bg-soft); outline: none; }
.wd-results small { display: block; font: 500 11px 'IBM Plex Mono', monospace; color: var(--text-faint); letter-spacing: .04em; text-transform: uppercase; }
.wd-results .wd-none { padding: 12px; color: var(--text-muted); font-size: 14px; }
.wd-side, .wd-toc { top: 70px; }
.wd-body h2 { scroll-margin-top: 76px; }
@media (max-width: 800px) {
  .wd-bar-in { height: auto; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; gap: 8px 12px; }
  .wd-tabs { order: 3; flex-basis: 100%; }
  .wd-search { flex: 1; width: auto; }
  .wd-search kbd { display: none; }
  .wd-bar-home { order: 1; }
  .wd-search { order: 2; }
}
.wd-hub-head { position: relative; isolation: isolate; background-image: linear-gradient(180deg, rgba(12,24,48,.78), rgba(9,18,35,.94)), var(--wd-photo, none); background-size: cover; background-position: center 40%; }

/* Screenshots inside the articles */
.wd-shots { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; margin: 26px 0 30px; }
.wd-shot { margin: 0; flex: 0 1 auto; }
.wd-shot img { display: block; width: 100%; height: auto; border-radius: 22px; border: 1px solid var(--border); background: var(--bg-soft); box-shadow: 0 24px 50px -30px rgba(11, 18, 36, 0.45); }
.wd-shot figcaption { margin-top: 10px; font-size: 13px; line-height: 1.45; color: var(--text-faint); }
.wd-shot--phone { width: min(250px, 100%); }
.wd-shot--tablet { width: min(430px, 100%); }
.wd-shot--wide { width: min(100%, 640px); }
.wd-shot--thumb { width: min(180px, 46%); }
.wd-shot--thumb figcaption { font-size: 12px; }
.wd-shot--wide img, .wd-shot--tablet img { border-radius: 16px; }
@media (max-width: 560px) { .wd-shots { justify-content: center; } .wd-shot--phone { width: min(230px, 80%); } }

/* ---- Mobile and tablet ---- */
.wd-body table, .wd-body .wd-table { max-width: 100%; }
.wd-body pre { max-width: 100%; overflow-x: auto; }
.wd-side-d > summary { list-style: none; cursor: pointer; }
.wd-side-d > summary::-webkit-details-marker { display: none; }
.wd-side-sum { display: none; }
@media (max-width: 800px) {
  /* the sub-bar scrolls away with the page: the reading space matters more than a sticky bar */
  .wd-bar { position: static; }
  .wd-bar-in { padding-top: 10px; padding-bottom: 6px; }
  .wd-tabs { flex-basis: 100%; margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter) 4px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); }
  .wd-tabs a { padding: 8px 12px; font-size: 14px; }
  .wd-body table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .wd-body h2 { scroll-margin-top: 16px; }
  .wd-side-sum { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg-soft); font: 600 15px 'Sora', sans-serif; color: var(--text); }
  .wd-side-sum::after { content: '+'; font-size: 20px; color: var(--accent); }
  .wd-side-d[open] > .wd-side-sum::after { content: '−'; }
  .wd-side-d[open] > .wd-side-sum { margin-bottom: 14px; }
  .wd-side-app { display: none; }
  .wd-article h1 { font-size: clamp(28px, 8.4vw, 38px); line-height: 1.1; }
  .wd-hub-head h1 { font-size: clamp(34px, 10vw, 46px); }
  .wd-cards { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 801px) and (max-width: 1100px) { .wd-shots { gap: 14px; } }
/* home (static on small screens): comfortable spacing, no empty scroll */
@media (max-width: 899px) {
  .wk-stick { min-height: 0; padding: 88px var(--gutter) 64px; }
  .wk-hero .wk-stick { padding-top: 72px; }
  .wk-words { font-size: clamp(26px, 7.4vw, 40px); }
  .wk-sheet { margin: 36px auto 0; }
  .wk-track { grid-template-columns: minmax(0, 1fr); }
}

/* ---- Mobile header of the wiki: brand pill, roomy search field, app chips ---- */
@media (max-width: 800px) {
  .wd-bar { background: linear-gradient(180deg, #F4F7FF 0%, #FFFFFF 100%); border-bottom: 1px solid var(--border); }
  .wd-bar-in { gap: 12px 10px; padding-top: 14px; padding-bottom: 12px; }
  .wd-bar-home { display: inline-flex; align-items: center; height: 44px; padding: 0 14px; border-radius: 14px; background: var(--accent); color: #fff; font: 700 14px 'Sora', sans-serif; letter-spacing: -.01em; box-shadow: 0 10px 22px -12px rgba(34, 82, 204, .75); }
  .wd-search input { height: 44px; padding: 0 16px 0 42px; border-radius: 14px; border: 1px solid #DCE3F2; background: #fff; font-size: 15px; box-shadow: 0 10px 24px -18px rgba(14, 22, 48, .45); }
  .wd-search > svg { left: 15px; top: 14px; width: 17px; height: 17px; color: var(--accent); }
  .wd-tabs { gap: 8px; padding: 2px var(--gutter) 6px; scroll-snap-type: x proximity; scroll-padding: 0 var(--gutter); }
  .wd-tabs li { scroll-snap-align: start; flex: none; }
  .wd-tabs a { height: 42px; gap: 9px; padding: 0 15px 0 7px; border-radius: 13px; border: 1px solid #E2E7F3; background: #fff; color: #3A4660; font-weight: 600; font-size: 14px; box-shadow: 0 8px 18px -16px rgba(14, 22, 48, .6); transition: background .2s, color .2s, border-color .2s; }
  .wd-tabs a img { width: 28px; height: 28px; padding: 3px; border-radius: 9px; background: #EEF3FF; }
  .wd-tabs a[aria-current] { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 12px 24px -12px rgba(34, 82, 204, .8); }
  .wd-tabs a[aria-current] img { background: #fff; }
  .wd-results { position: fixed; left: 12px; right: 12px; top: 120px; width: auto; max-height: 60vh; }
}
html[data-theme="dark"] .wd-bar { background: linear-gradient(180deg, #121A2B, #0F141C); }
@media (max-width: 800px) {
  html[data-theme="dark"] .wd-search input { background: #151B22; border-color: #2A323D; }
  html[data-theme="dark"] .wd-tabs a { background: #151B22; border-color: #2A323D; color: #D8DEEA; }
  html[data-theme="dark"] .wd-tabs a img { background: #fff; }
  html[data-theme="dark"] .wd-tabs a[aria-current] { background: var(--accent); border-color: var(--accent); color: #fff; }
}

/* ---- Hub header and cards: a little more depth (all sizes) ---- */
.wd-hub-head::after { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(520px 260px at 12% 8%, rgba(74, 120, 255, .38), transparent 70%), radial-gradient(420px 240px at 95% 100%, rgba(126, 160, 255, .22), transparent 70%); pointer-events: none; }
.wd-hub-title img { border-radius: 20px; background: #fff; padding: 4px; box-shadow: 0 18px 36px -14px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .18); }
.wd-count { display: inline-flex; align-items: center; padding: 7px 13px; border-radius: 100px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); color: rgba(255, 255, 255, .85); }
.wd-cards a { background: linear-gradient(180deg, #fff, #FAFBFF); box-shadow: 0 14px 30px -26px rgba(14, 22, 48, .55); }
.wd-cards em { display: grid; place-items: center; width: 28px; height: 28px; right: 14px; top: 16px; border-radius: 50%; background: rgba(34, 82, 204, .09); transition: background .2s, color .2s, transform .2s; }
.wd-cards a:hover em { background: var(--accent); color: #fff; transform: translateX(2px); }
.wd-sec > h2 { position: relative; padding-left: 14px; }
.wd-sec > h2::before { content: ''; position: absolute; left: 0; top: .22em; bottom: .22em; width: 4px; border-radius: 4px; background: linear-gradient(180deg, var(--accent), #7EA0FF); }
html[data-theme="dark"] .wd-cards a { background: #151B22; }
