/* ==========================================================================
   developers.docly.net — site theme (facelift, October 2026)
   Loaded after bootstrap.min.css; replaces theme.css, custom.css and search.css.
   Brand blue #187bb0 kept. Light and dark via the tokens below (theme-init.js sets
   data-theme before first paint). Legacy template classes (docs-wrapper, docs-article,
   section-heading, alert-*, table) are styled here too, so content renders unchanged.
   ========================================================================== */
@view-transition { navigation: auto; }

:root {
    --brand: #187bb0;
    --brand-2: #22a6d6;
    --brand-3: #6d5dfc;
    --ink: #0d1b2a;
    --text: #1f2a37;
    --body: #4a5668;
    --muted: #7a8699;
    --line: #e6eaf0;
    --line-2: #eef1f5;
    --bg: #ffffff;
    --bg-2: #f6f8fb;
    --card: #ffffff;
    --soft: rgba(24, 123, 176, .08);
    --soft-2: rgba(24, 123, 176, .14);
    --code-bg: #0e1726;
    --code-head: #131e30;
    --shadow-sm: 0 1px 2px rgba(13, 27, 42, .06);
    --shadow: 0 1px 2px rgba(13, 27, 42, .05), 0 8px 24px -8px rgba(13, 27, 42, .12);
    --shadow-lg: 0 2px 4px rgba(13, 27, 42, .04), 0 24px 60px -20px rgba(13, 27, 42, .32);
    --radius: 14px;
    --header-h: 64px;
    --ease: cubic-bezier(.2, .8, .2, 1);
    --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    --font-head: "Poppins", var(--font);
    --mono: "Cascadia Code", "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
    color-scheme: light;
}
[data-theme="dark"] {
    --ink: #eef3fa;
    --text: #e4eaf2;
    --body: #aab6c6;
    --muted: #7d8a9c;
    --line: #1f2b3b;
    --line-2: #18222f;
    --bg: #0a111c;
    --bg-2: #0d1623;
    --card: #101a28;
    --soft: rgba(56, 170, 230, .10);
    --soft-2: rgba(56, 170, 230, .18);
    --brand: #3aa9e3;
    --code-bg: #070d16;
    --code-head: #0c1420;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px -10px rgba(0, 0, 0, .6);
    --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, .8);
    color-scheme: dark;
}

/* ---------- base ---------- */
html { scroll-padding-top: calc(var(--header-h) + 24px); }
body {
    margin: 0; background: var(--bg); color: var(--body);
    font: 16px/1.7 var(--font); -webkit-font-smoothing: antialiased;
    transition: background-color .3s, color .3s;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); color: var(--ink); letter-spacing: -.015em; }
h1 p, h2 p, h3 p, h4 p, h5 p, h6 p { display: inline; margin: 0; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
code { font-family: var(--mono); font-size: .875em; color: var(--brand); background: var(--soft); padding: .12em .4em; border-radius: 6px; word-break: normal; }
a > code { color: inherit; }
::selection { background: rgba(34, 166, 214, .25); }
hr { border: 0; height: 1px; background: var(--line); opacity: 1; margin: 2rem 0; }
.text-muted { color: var(--muted) !important; }
.text-info { color: var(--brand-2) !important; }
.text-strike { text-decoration: line-through; }
.well { padding: 1rem 1.15rem; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); }
.fl-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 1100; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--brand), var(--brand-2), var(--brand-3)); pointer-events: none; }
.fl-skip { position: absolute; left: -999px; top: .5rem; z-index: 3000; padding: .5rem 1rem; border-radius: 8px; background: var(--brand); color: #fff; }
.fl-skip:focus { left: .5rem; color: #fff; }

.fl-btn { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem 1.05rem; border-radius: 10px; font-weight: 600; font-size: .9rem; border: 1px solid transparent; transition: transform .2s var(--ease), box-shadow .2s, background .2s; }
.fl-btn:hover { text-decoration: none; transform: translateY(-1px); }
.fl-btn-primary, .btn-primary { background: linear-gradient(180deg, #2390c9, #187bb0); border-color: transparent; color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 6px 16px -6px rgba(24,123,176,.6); }
.fl-btn-primary:hover, .btn-primary:hover { color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 10px 22px -8px rgba(24,123,176,.75); }
.fl-btn-ghost { border-color: var(--line); color: var(--text); background: var(--card); }
kbd, .fl-kbd { display: inline-flex; gap: .2rem; align-items: center; font-family: var(--font); font-size: .72rem; font-weight: 600; color: var(--muted); background: var(--bg-2); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: .1rem .4rem; box-shadow: none; }

/* ---------- header ---------- */
.fl-header {
    position: sticky; top: 0; z-index: 1000; height: var(--header-h);
    background: color-mix(in srgb, var(--bg) 78%, transparent);
    backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s, background .3s;
    view-transition-name: fl-header;
}
.fl-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(13,27,42,.5); }
.fl-home .fl-header:not(.is-scrolled) { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.fl-home .fl-header:not(.is-scrolled) .fl-brand img { filter: brightness(0) invert(1); }
.fl-home .fl-header:not(.is-scrolled) .fl-topnav a, .fl-home .fl-header:not(.is-scrolled) .fl-icon-btn { color: rgba(255,255,255,.85); }
.fl-home .fl-header:not(.is-scrolled) .fl-burger span { background: #fff; }
.fl-home .fl-header:not(.is-scrolled) .fl-search-trigger { opacity: 0; pointer-events: none; transform: translateY(-6px); }
.fl-header-in { height: 100%; max-width: 1480px; margin: 0 auto; padding: 0 1.25rem; display: flex; align-items: center; gap: 1.25rem; }
.fl-brand { display: flex; align-items: center; gap: .6rem; flex: none; }
.fl-brand img { height: 30px; transition: filter .3s; }
.fl-brand-tag { font: 600 .72rem/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--brand); background: var(--soft); padding: .3rem .5rem; border-radius: 6px; }
.fl-home .fl-header:not(.is-scrolled) .fl-brand-tag { color: #fff; background: rgba(255,255,255,.15); }
.fl-brand:hover { text-decoration: none; }
.fl-topnav { display: flex; gap: .25rem; }
.fl-topnav a { position: relative; padding: .45rem .75rem; border-radius: 8px; color: var(--body); font-weight: 500; font-size: .92rem; transition: color .2s, background .2s; }
.fl-topnav a:hover { text-decoration: none; color: var(--ink); background: var(--soft); }
.fl-topnav a.is-active { color: var(--brand); }
.fl-topnav a.is-active::after { content: ""; position: absolute; left: .75rem; right: .75rem; bottom: -12px; height: 2px; border-radius: 2px; background: var(--brand); }
.fl-search-trigger {
    margin-left: auto; display: flex; align-items: center; gap: .6rem; width: min(340px, 30vw);
    padding: .5rem .6rem .5rem .8rem; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2);
    color: var(--muted); font-size: .9rem; cursor: pointer; transition: border-color .2s, box-shadow .2s, opacity .3s, transform .3s var(--ease);
}
.fl-search-trigger:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); box-shadow: 0 0 0 4px var(--soft); }
.fl-search-trigger svg, .fl-hero-search svg, .fl-palette-input svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; flex: none; }
.fl-search-trigger .fl-kbd { margin-left: auto; }
.fl-icon-btn { width: 38px; height: 38px; display: grid; place-items: center; flex: none; border: 0; border-radius: 10px; background: none; color: var(--body); cursor: pointer; transition: background .2s, transform .4s var(--ease); }
.fl-icon-btn:hover { background: var(--soft); }
.fl-icon-btn:active { transform: rotate(-30deg) scale(.9); }
.fl-icon-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.i-sun, [data-theme="dark"] .i-moon { display: none; }
[data-theme="dark"] .i-sun { display: block; }
.fl-burger { display: none; width: 38px; height: 38px; border: 0; background: none; padding: 9px; flex: none; flex-direction: column; justify-content: space-between; }
.fl-burger span { display: block; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .3s var(--ease), opacity .2s; }
.fl-nav-open .fl-burger span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.fl-nav-open .fl-burger span:nth-child(2) { opacity: 0; }
.fl-nav-open .fl-burger span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
.fl-login { flex: none; }

/* ---------- hero ---------- */
.fl-hero { position: relative; margin-top: calc(var(--header-h) * -1); padding: calc(var(--header-h) + 6rem) 1.25rem 6.5rem; overflow: hidden; color: #fff; text-align: center; background: #07182b; isolation: isolate; }
.fl-hero-bg { position: absolute; inset: 0; z-index: -1; }
.fl-grid-lines { position: absolute; inset: -2px; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%); animation: fl-grid 24s linear infinite; }
@keyframes fl-grid { to { background-position: 56px 56px, 56px 56px; } }
.fl-blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; mix-blend-mode: screen; }
.fl-blob.b1 { width: 520px; height: 520px; left: -8%; top: -20%; background: #187bb0; animation: fl-drift1 18s ease-in-out infinite alternate; }
.fl-blob.b2 { width: 460px; height: 460px; right: -6%; top: 10%; background: #6d5dfc; opacity: .4; animation: fl-drift2 22s ease-in-out infinite alternate; }
.fl-blob.b3 { width: 380px; height: 380px; left: 40%; bottom: -35%; background: #22d3ee; opacity: .3; animation: fl-drift1 26s ease-in-out infinite alternate-reverse; }
@keyframes fl-drift1 { to { transform: translate(120px, 60px) scale(1.15); } }
@keyframes fl-drift2 { to { transform: translate(-140px, 40px) scale(.9); } }
.fl-hero-in { position: relative; max-width: 860px; margin: 0 auto; }
.fl-hero-eyebrow { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .8rem; border: 1px solid rgba(255,255,255,.18); border-radius: 99px; background: rgba(255,255,255,.06); font-size: .82rem; color: rgba(255,255,255,.85); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.fl-dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52,211,153,.6); animation: fl-pulse 2.2s infinite; }
@keyframes fl-pulse { 70% { box-shadow: 0 0 0 10px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }
.fl-hero h1 { color: #fff; font-size: clamp(2.2rem, 5.2vw, 3.9rem); line-height: 1.08; font-weight: 700; margin: 1.4rem 0 1.1rem; letter-spacing: -.03em; }
.fl-grad { background: linear-gradient(90deg, #7dd3fc, #22a6d6 35%, #a5b4fc 70%, #7dd3fc); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: fl-shine 8s linear infinite; }
@keyframes fl-shine { to { background-position: 200% center; } }
.fl-hero-sub { font-size: 1.15rem; color: rgba(255,255,255,.72); max-width: 600px; margin: 0 auto 2.2rem; }
.fl-hero-search {
    position: relative; display: flex; align-items: center; gap: .85rem; width: min(640px, 100%); margin: 0 auto;
    padding: 1.05rem 1.1rem 1.05rem 1.35rem; border-radius: 16px; border: 1px solid rgba(255,255,255,.22);
    background: transparent; color: #4a5668; font-size: 1.08rem; text-align: left; cursor: text; isolation: isolate;
    box-shadow: 0 20px 60px -15px rgba(0,0,0,.55); transition: box-shadow .3s, transform .3s var(--ease);
}
/* Glow behind, white face in front - both inside the button's own stacking context, so the entrance
   animation (which creates one) cannot put the glow over the face. */
.fl-hero-search::before { content: ""; position: absolute; inset: -2px; z-index: -2; border-radius: 18px; background: conic-gradient(from var(--a, 0deg), #22a6d6, #6d5dfc, #22d3ee, #22a6d6); filter: blur(10px); opacity: .55; animation: fl-spin 6s linear infinite; }
.fl-hero-search::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 16px; background: rgba(255,255,255,.96); }
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes fl-spin { to { --a: 360deg; } }
.fl-hero-search:hover { transform: translateY(-2px); box-shadow: 0 26px 70px -15px rgba(0,0,0,.6); }
.fl-hero-search svg { width: 22px; height: 22px; color: #187bb0; }
.fl-hero-search .fl-kbd { margin-left: auto; background: #f1f4f8; border-color: #dde3ea; color: #7a8699; }
.fl-typed::after { content: ""; display: inline-block; width: 2px; height: 1.15em; margin-left: 2px; vertical-align: -3px; background: #187bb0; animation: fl-caret 1s steps(1) infinite; }
@keyframes fl-caret { 50% { opacity: 0; } }
.fl-hero-chips { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .5rem; margin-top: 1.4rem; font-size: .85rem; color: rgba(255,255,255,.6); }
.fl-hero-chips button { border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: rgba(255,255,255,.9); border-radius: 99px; padding: .3rem .8rem; font-family: var(--mono); font-size: .8rem; cursor: pointer; transition: background .2s, border-color .2s, transform .2s var(--ease); }
.fl-hero-chips button:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.35); transform: translateY(-2px); }
.fl-stats { display: flex; justify-content: center; gap: clamp(1.5rem, 6vw, 4.5rem); margin-top: 3.2rem; }
.fl-stats div { display: flex; flex-direction: column; }
.fl-stats b { font: 700 2rem/1.1 var(--font-head); color: #fff; font-variant-numeric: tabular-nums; }
.fl-stats span { font-size: .82rem; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .08em; }
.fl-in { opacity: 0; transform: translateY(18px); animation: fl-up .8s var(--ease) forwards; animation-delay: calc(var(--d) * 90ms + 80ms); }
@keyframes fl-up { to { opacity: 1; transform: none; } }
.fl-hero-404 { padding-bottom: 4.5rem; }
.fl-hero-404 h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); }

/* ---------- home sections ---------- */
.fl-wrap { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
.fl-section { padding: 4.5rem 0; }
.fl-section-alt { background: var(--bg-2); border-top: 1px solid var(--line-2); }
.fl-section-head { margin-bottom: 2rem; }
.fl-section-head h2 { font-size: 1.75rem; font-weight: 700; margin: 0 0 .35rem; }
.fl-section-head p { margin: 0; color: var(--muted); }
.fl-start { padding-top: 0; margin-top: -3.2rem; position: relative; z-index: 2; }
.fl-start-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.fl-start-card { position: relative; display: flex; flex-direction: column; gap: .55rem; padding: 1.6rem; border-radius: 18px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-lg); color: var(--body); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s; }
.fl-start-card:hover { text-decoration: none; color: var(--body); transform: translateY(-6px); }
.fl-start-card strong { font: 600 1.2rem var(--font-head); color: var(--ink); }
.fl-start-num { position: absolute; right: 1.2rem; top: .6rem; font: 700 3.2rem/1 var(--font-head); color: var(--line); transition: color .3s; }
.fl-start-card:hover .fl-start-num { color: var(--soft-2); }
.fl-start-go { margin-top: auto; padding-top: .5rem; color: var(--brand); font-weight: 600; font-size: .9rem; }
.fl-start-go svg, .fl-card-foot svg, .fl-more svg { transition: transform .3s var(--ease); }
.fl-start-card:hover .fl-start-go svg, .fl-card:hover .fl-card-foot svg, .fl-more:hover svg { transform: translateX(4px); }

.fl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.fl-card {
    --mx: 50%; --my: 50%;
    position: relative; display: flex; flex-direction: column; gap: .5rem; padding: 1.35rem; border-radius: var(--radius);
    background: var(--card); border: 1px solid var(--line); color: var(--body); box-shadow: var(--shadow-sm);
    transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; overflow: hidden; isolation: isolate;
}
.fl-card::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s; background: radial-gradient(380px circle at var(--mx) var(--my), var(--soft-2), transparent 45%); }
.fl-card:hover { text-decoration: none; color: var(--body); transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); }
.fl-card:hover::before { opacity: 1; }
.fl-card-title { font: 600 1.05rem/1.35 var(--font-head); color: var(--ink); overflow-wrap: anywhere; }
.fl-card-title code { background: none; padding: 0; font-size: .95rem; }
.fl-card-text { font-size: .9rem; line-height: 1.55; color: var(--body); }
.fl-card-foot { margin-top: auto; padding-top: .4rem; display: flex; justify-content: space-between; align-items: center; font-size: .8rem; color: var(--muted); }
.fl-card-foot svg { color: var(--brand); }
.fl-card-ico { width: 42px; height: 42px; display: grid; place-items: center; flex: none; border-radius: 11px; font-size: 1.05rem; background: var(--soft); color: var(--brand); transition: transform .4s var(--ease); }
.fl-card:hover .fl-card-ico, .fl-start-card:hover .fl-card-ico { transform: scale(1.08) rotate(-4deg); }
.fl-ico-fn { background: #e4f1f9; color: #187bb0; } .fl-ico-kb { background: #fcf1df; color: #a8650f; } .fl-ico-guide { background: #e3f4eb; color: #1d8a54; }
.fl-ico-example { background: #f0eafa; color: #6f42c1; } .fl-ico-blog { background: #fdebe2; color: #c2410c; }
[data-theme="dark"] .fl-card-ico, [data-theme="dark"] .fl-hit-ico { background: var(--soft-2) !important; color: var(--brand) !important; }

.fl-split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.fl-feed { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .6rem; }
.fl-feed a { display: grid; gap: .25rem; padding: 1rem 1.15rem; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--body); transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.fl-feed a:hover { text-decoration: none; color: var(--body); transform: translateX(4px); border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); box-shadow: var(--shadow); }
.fl-feed strong { color: var(--ink); font-weight: 600; }
.fl-feed span:not(.fl-pill) { font-size: .88rem; }
.fl-feed .fl-pill { justify-self: start; }
.fl-feed time { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.fl-more { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1rem; font-weight: 600; }

/* ---------- pills / types ---------- */
.fl-pill, .fl-type { display: inline-flex; align-items: center; padding: .18rem .6rem; border-radius: 99px; font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; line-height: 1.5; }
.fl-pill-amber { background: #fdf3dc; color: #925b06; } .fl-pill-blue { background: #e1f0fa; color: #135f8a; }
.fl-pill-red { background: #fde4e4; color: #a12626; } .fl-pill-green { background: #dff5e8; color: #17703f; } .fl-pill-gray { background: #eceff3; color: #4a5668; }
[data-theme="dark"] .fl-pill-amber { background: #3a2a0c; color: #f5c66b; } [data-theme="dark"] .fl-pill-blue { background: #0f2c40; color: #7cc6ee; }
[data-theme="dark"] .fl-pill-red { background: #3c1414; color: #f39b9b; } [data-theme="dark"] .fl-pill-green { background: #0f3020; color: #7ddba6; } [data-theme="dark"] .fl-pill-gray { background: #1c2533; color: #aab6c6; }
.fl-type { background: var(--soft); color: var(--brand); }
.fl-type-kb { background: #fcf1df; color: #a8650f; } .fl-type-guide { background: #e3f4eb; color: #1d8a54; } .fl-type-blog { background: #fdebe2; color: #c2410c; } .fl-type-example { background: #f0eafa; color: #6f42c1; }
[data-theme="dark"] .fl-type { background: var(--soft-2); color: var(--brand); }

/* ---------- docs layout (legacy class names from the templates) ---------- */
.docs-wrapper { display: grid; grid-template-columns: 290px minmax(0, 1fr); max-width: 1480px; margin: 0 auto; min-height: calc(100vh - var(--header-h)); }
.docs-wrapper.has-toc { grid-template-columns: 290px minmax(0, 1fr) 240px; }
.docs-sidebar {
    position: sticky; top: var(--header-h); align-self: start; height: calc(100vh - var(--header-h)); overflow-y: auto;
    padding: 1.5rem 1rem 3rem 1.25rem; border-right: 1px solid var(--line-2);
    scrollbar-width: thin; scrollbar-color: var(--line) transparent; view-transition-name: fl-sidebar;
}
.docs-sidebar .top-search-box { display: none; }
.docs-content { min-width: 0; padding: 2rem clamp(1.25rem, 4vw, 3.5rem) 4rem; }
.docs-content > .container, .docs-content > .fl-crumbs { max-width: 780px; margin-left: auto; margin-right: auto; padding: 0; }
.docs-content.fl-wide > .container, .docs-content.fl-wide > .fl-crumbs { max-width: 1060px; }
.docs-article { view-transition-name: fl-article; }

/* sidebar */
.fl-side-title { display: flex; align-items: center; gap: .6rem; padding: .3rem .5rem; margin-bottom: .75rem; font: 600 .95rem var(--font-head); color: var(--ink); }
a.fl-side-title:hover { text-decoration: none; color: var(--brand); }
.fl-side-ico { width: 28px; height: 28px; display: grid; place-items: center; flex: none; border-radius: 8px; background: var(--soft); color: var(--brand); font-size: .8rem; }
.fl-side-list, .fl-side-list ul { list-style: none; margin: 0; padding: 0; }
.fl-side-link, .fl-group-body a { display: block; padding: .32rem .6rem; border-radius: 8px; color: var(--body); font-size: .89rem; line-height: 1.45; transition: background .15s, color .15s; overflow-wrap: anywhere; }
.fl-side-link:hover, .fl-group-body a:hover { text-decoration: none; background: var(--bg-2); color: var(--ink); }
.fl-side-link.is-active, .fl-group-body a.is-active { background: var(--soft); color: var(--brand); font-weight: 600; }
.fl-side-link svg { width: 1.1em; margin-right: .5rem; opacity: .5; }
.fl-group-body a code { background: none; padding: 0; color: inherit; font-size: .82rem; }
.fl-group-btn { width: 100%; display: flex; align-items: center; gap: .5rem; padding: .45rem .6rem; border: 0; border-radius: 8px; background: none; color: var(--text); font: 600 .89rem var(--font); text-align: left; cursor: pointer; }
.fl-group-btn:hover { background: var(--bg-2); }
.fl-group-btn span:first-child { flex: 1; }
.fl-group-btn > svg { width: 15px; height: 15px; fill: none; stroke: var(--muted); stroke-width: 2.4; transition: transform .3s var(--ease); }
.fl-group.is-open > .fl-group-btn > svg { transform: rotate(90deg); }
.fl-count-pill { font-size: .7rem; font-weight: 600; color: var(--muted); background: var(--bg-2); border-radius: 99px; padding: 0 .45rem; }
.fl-group-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.fl-group.is-open > .fl-group-body { grid-template-rows: 1fr; }
.fl-group-body > ul { overflow: hidden; margin-left: .95rem !important; border-left: 1px solid var(--line); padding-left: .4rem !important; }

/* breadcrumb */
.fl-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; font-size: .82rem; color: var(--muted); margin-bottom: 1.5rem; }
.fl-crumbs a { color: var(--muted); }
.fl-crumbs a:hover { color: var(--brand); }
.fl-crumbs > *:not(:first-child)::before { content: "/"; margin-right: .35rem; color: var(--line); }
.fl-crumbs span { color: var(--text); }

/* page head */
.docs-header, .fl-page-head { margin-bottom: 1.25rem; }
.fl-eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: .8rem; }
.fl-updated { font-size: .8rem; color: var(--muted); margin-left: .25rem; }
.docs-heading, .fl-page-head h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-weight: 700; line-height: 1.15; margin: 0 0 .5rem; letter-spacing: -.025em; overflow-wrap: anywhere; }
.docs-time { display: block; margin-top: .6rem; font: 400 .8rem var(--font); letter-spacing: 0; color: var(--muted); }
.docs-intro, .docs-intro .lead, .fl-lead { font-size: 1.12rem; line-height: 1.7; color: var(--body); font-weight: 400; }
.docs-intro { margin: 1rem 0 2rem; }
.fl-lead { margin-bottom: 1.75rem; }
.docs-intro p:last-child, .fl-lead p:last-child { margin-bottom: 0; }
.lead { font-size: 1.12rem; font-weight: 400; }

/* sections and headings */
.docs-section { position: relative; }
.docs-article h2, .section-heading { font-size: 1.55rem; font-weight: 700; margin: 2.75rem 0 1rem; padding-top: 1.25rem; border-top: 1px solid var(--line-2); scroll-margin-top: calc(var(--header-h) + 20px); }
.docs-article .docs-section .docs-section h3, .docs-article h3 { font-size: 1.2rem; margin: 2rem 0 .75rem; scroll-margin-top: calc(var(--header-h) + 20px); }
.docs-article h4 { font-size: 1.05rem; margin: 1.5rem 0 .5rem; }
.docs-article p, .docs-article li { color: var(--body); }
.docs-article strong { color: var(--text); }
.docs-article ul, .docs-article ol { padding-left: 1.3rem; }
.docs-article li { margin: .25rem 0; }
.docs-article li::marker { color: var(--brand); }
.fl-anchor { position: absolute; margin-left: -1.2em; width: 1.2em; opacity: 0; color: var(--muted); font-weight: 400; transition: opacity .2s; text-decoration: none !important; }
h2:hover > .fl-anchor, h3:hover > .fl-anchor { opacity: 1; }
.docs-article blockquote { margin: 1.5rem 0; padding: 1rem 1.25rem; border-left: 3px solid var(--brand); background: var(--bg-2); border-radius: 0 12px 12px 0; font-style: italic; }
.docs-article blockquote p:last-child { margin: 0; }

/* callouts (content uses the bootstrap alert classes) */
.docs-article .alert { display: flex; gap: .85rem; margin: 1.5rem 0; padding: 1rem 1.15rem; border-radius: 12px; border: 1px solid; font-size: .95rem; }
.docs-article .alert > .fl-callout-ico { margin-top: .3rem; flex: none; }
.docs-article .alert > .fl-callout-body { min-width: 0; flex: 1; }
.docs-article .alert p:last-child { margin-bottom: 0; }
.docs-article .alert-info { background: #eef7fc; border-color: #cfe6f3; color: #24506b; } .alert-info .fl-callout-ico { color: #187bb0; }
.docs-article .alert-warning { background: #fff8e8; border-color: #f6e2b3; color: #6b4b0b; } .alert-warning .fl-callout-ico { color: #d39200; }
.docs-article .alert-success { background: #edf9f2; border-color: #c9ebd6; color: #1c5a37; } .alert-success .fl-callout-ico { color: #1d8a54; }
.docs-article .alert-danger { background: #fdf0f0; border-color: #f4cfcf; color: #7a2323; } .alert-danger .fl-callout-ico { color: #c93636; }
.docs-article .alert p, .docs-article .alert li, .docs-article .alert strong { color: inherit; }
[data-theme="dark"] .docs-article .alert { background: var(--bg-2); border-color: var(--line); color: var(--body); }

/* tables */
.docs-article table.table, .docs-article .fl-table table { --bs-table-bg: transparent; --bs-table-color: var(--body); --bs-table-striped-bg: var(--bg-2); --bs-table-striped-color: var(--body); width: 100%; margin: 1.25rem 0 1.75rem; border: 1px solid var(--line); border-radius: 12px; border-collapse: separate; border-spacing: 0; overflow: hidden; font-size: .9rem; color: var(--body); }
.docs-article .table > :not(caption) > * > * { border: 0; border-bottom: 1px solid var(--line-2); padding: .65rem .9rem; background-color: transparent; color: var(--body); box-shadow: none; }
.docs-article .table thead th, .docs-article .table thead td, .docs-article .table .table-info > * { background: var(--bg-2) !important; color: var(--ink) !important; font-weight: 600; border-bottom: 1px solid var(--line); }
.docs-article .table tbody tr:last-child > * { border-bottom: 0; }
.docs-article .table tbody tr:hover > * { background: var(--bg-2); }
.docs-article .table p { margin: 0; }
.docs-article .table-responsive .table { margin: 0; }
.docs-article .table-responsive { margin: 1.25rem 0 1.75rem; }

/* images */
.docs-article .simplelightbox-gallery img, .docs-article img.img-thumbnail { border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow) !important; background: var(--card); padding: 0; transition: transform .6s var(--ease); }
.docs-article .simplelightbox-gallery a { overflow: hidden; border-radius: 12px; }
.docs-article .simplelightbox-gallery a:hover img { transform: scale(1.02); }

/* ---------- code ---------- */
.docs-code-block { margin: 0; }
.docs-article pre, .docs-code-block pre { margin: 1.25rem 0 1.75rem; padding: 1.1rem 1.25rem; border-radius: 14px; background: var(--code-bg); color: #d6deeb; box-shadow: var(--shadow) !important; max-height: 560px; overflow: auto; }
.docs-article pre code, .hljs { background: none !important; color: #d6deeb; padding: 0; font: .86rem/1.65 var(--mono); white-space: pre; font-variant-ligatures: none; }
.fl-code { margin: 1.25rem 0 1.75rem; border-radius: 14px; overflow: hidden; background: var(--code-bg); box-shadow: var(--shadow); border: 1px solid #1c2940; }
.fl-code pre { margin: 0 !important; border-radius: 0 !important; box-shadow: none !important; background: none; }
.fl-code-bar { display: flex; align-items: center; gap: .75rem; padding: .55rem .75rem .55rem 1rem; background: var(--code-head); border-bottom: 1px solid #1c2940; }
.fl-dots { display: flex; gap: 6px; } .fl-dots i { width: 10px; height: 10px; border-radius: 50%; background: #2a3850; }
.fl-code-lang { font: 600 .72rem var(--font); letter-spacing: .06em; text-transform: uppercase; color: #7f8ea6; }
.fl-copy { margin-left: auto; display: flex; align-items: center; gap: .35rem; padding: .25rem .55rem; border: 1px solid #24334c; border-radius: 7px; background: transparent; color: #9fb0c8; font-size: .75rem; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.fl-copy:hover { background: #1a2740; color: #fff; }
.fl-copy svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fl-copy .i-ok { display: none; stroke-dasharray: 24; stroke-dashoffset: 24; }
.fl-copy.is-done { color: #4ade80; border-color: #1f5136; }
.fl-copy.is-done .i-copy { display: none; } .fl-copy.is-done .i-ok { display: block; animation: fl-draw .4s var(--ease) forwards; }
@keyframes fl-draw { to { stroke-dashoffset: 0; } }
.hljs-keyword, .hljs-selector-tag, .hljs-built_in { color: #c792ea; } .hljs-string { color: #addb67; }
.hljs-number, .hljs-literal { color: #f78c6c; } .hljs-comment { color: #637777; font-style: italic; } .hljs-title, .hljs-title.function_ { color: #82aaff; }
.hljs-attr, .hljs-attribute { color: #ffcb8b; } .hljs-name, .hljs-tag { color: #7fdbca; } .hljs-variable, .hljs-params { color: #d6deeb; } .hljs-property { color: #80cbc4; } .hljs-meta { color: #82aaff; }
.fl-code-note { display: block; margin: -.75rem 0 .5rem; font-size: .82rem; color: var(--muted); }

.fl-tabs { margin: 1rem 0 2rem; }
.fl-tablist { position: relative; display: flex; flex-wrap: wrap; gap: .25rem; border-bottom: 1px solid var(--line); }
.fl-tablist button { position: relative; padding: .55rem .9rem; border: 0; background: none; color: var(--muted); font-weight: 600; font-size: .88rem; cursor: pointer; transition: color .2s; }
.fl-tablist button[aria-selected="true"] { color: var(--brand); }
.fl-tab-ink { position: absolute; bottom: -1px; height: 2px; border-radius: 2px; background: var(--brand); transition: left .35s var(--ease), width .35s var(--ease); }
.fl-tabpanel:not([hidden]) { animation: fl-fade .3s var(--ease); }
.fl-tabpanel > small, .fl-tabpanel > .fl-code-note { display: block; margin: .9rem 0 -.5rem; font-size: .82rem; color: var(--muted); }
@keyframes fl-fade { from { opacity: 0; transform: translateY(4px); } }

/* ---------- function reference ---------- */
.fl-sig { display: inline; font-size: clamp(1.25rem, 2.6vw, 1.75rem); font-weight: 500; letter-spacing: -.01em; background: none; color: var(--ink); padding: 0; overflow-wrap: anywhere; }
.sig-ns { color: var(--muted); } .sig-fn { color: var(--brand); font-weight: 700; } .sig-par { color: var(--muted); } .sig-p { color: var(--ink); } .sig-opt { color: #8b5cf6; }
.fl-params { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-bottom: 1.5rem; }
.fl-param { padding: .95rem 1.15rem; border-bottom: 1px solid var(--line-2); transition: background .15s; }
.fl-param:last-child { border-bottom: 0; }
.fl-param:hover { background: var(--bg-2); }
.fl-param.is-nested { padding-left: 2.3rem; position: relative; }
.fl-param.is-nested::before { content: ""; position: absolute; left: 1.3rem; top: 0; bottom: 0; width: 1px; background: var(--line); }
.fl-param-group { background: var(--bg-2); }
.fl-param-name { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: .25rem; }
.fl-param-name code { font-weight: 600; font-size: .92rem; }
.fl-param-type { font: .78rem var(--mono); color: #8b5cf6; }
.fl-param-opt, .fl-param-req { font-size: .68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.fl-param-req { color: #c2410c; }
.fl-param-desc { font-size: .92rem; }
.fl-param-desc p { margin: 0; }
.fl-returns { padding: 1rem 1.15rem; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line-2); }
.fl-returns p:last-child { margin: 0; }
.fl-seealso { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 0 0 1.5rem; font-size: .88rem; }
.fl-seealso > span { color: var(--muted); font-weight: 600; }
.fl-seealso a { padding: .2rem .65rem; border: 1px solid var(--line); border-radius: 99px; }
.fl-seealso a:hover { text-decoration: none; background: var(--soft); }

/* ---------- KB article ---------- */
.fl-summary { position: relative; margin: 1.5rem 0; padding: 1.35rem 1.5rem 1.35rem 1.6rem; border-radius: 16px; font-size: 1.12rem; line-height: 1.65; color: var(--text); background: linear-gradient(135deg, var(--soft), transparent 70%), var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); overflow: hidden; }
.fl-summary::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(var(--brand-2), var(--brand-3)); }
.fl-summary-label { display: block; margin-bottom: .35rem; font: 700 .72rem var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--brand); }
.fl-applies { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-size: .85rem; color: var(--muted); margin-bottom: 1rem; }
.fl-applies > strong { font-weight: 600; margin-right: .25rem; color: var(--muted); }
.fl-chip { padding: .15rem .6rem; border-radius: 99px; background: var(--bg-2); border: 1px solid var(--line); color: var(--body); font-size: .8rem; }
.fl-kb-flow { list-style: none; padding: 0 !important; margin: 2.5rem 0 0; position: relative; }
.fl-kb-flow::before { content: ""; position: absolute; left: 21px; top: 10px; bottom: 30px; width: 2px; background: linear-gradient(var(--line), var(--line) 80%, transparent); }
.fl-kb-step { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 1.25rem; padding-bottom: 1.5rem; margin: 0 !important; }
.fl-kb-step::marker { content: none; }
.fl-kb-marker { position: relative; z-index: 1; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--card); border: 1px solid var(--line); color: var(--brand); box-shadow: var(--shadow-sm); }
.fl-kb-step:nth-child(1) .fl-kb-marker { color: #a8650f; } .fl-kb-step:nth-child(3) .fl-kb-marker { color: #1d8a54; }
.fl-kb-body { min-width: 0; }
.docs-article .fl-kb-body > h2 { margin: .45rem 0 .75rem; padding: 0; border: 0; font-size: 1.3rem; }
.fl-related { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .75rem; list-style: none; padding: 0 !important; }
.fl-related li { margin: 0; }
.fl-card-sm { height: 100%; padding: 1rem; gap: .35rem; }
.fl-card-sm strong { color: var(--ink); font-size: .95rem; line-height: 1.35; }
.fl-card-sm .fl-pill, .fl-card-kb .fl-pill { align-self: flex-start; }
.fl-reviewed { margin-top: 2.5rem; font-size: .82rem; color: var(--muted); }
/* Category colours: one rule per Category value (see the label mapping in #/KB article.hash). */
.kb-cat-Misconception, .kb-cat-Pitfall { background: #fdf3dc; color: #925b06; }
.kb-cat-ByDesign { background: #e1f0fa; color: #135f8a; }
.kb-cat-Bug, .kb-cat-APIMisuse { background: #fde4e4; color: #a12626; }
.kb-cat-BestPractice { background: #dff5e8; color: #17703f; }
.kb-cat-Clarification { background: #eceff3; color: #4a5668; }
[data-theme="dark"] .kb-cat-Misconception, [data-theme="dark"] .kb-cat-Pitfall { background: #3a2a0c; color: #f5c66b; }
[data-theme="dark"] .kb-cat-ByDesign { background: #0f2c40; color: #7cc6ee; }
[data-theme="dark"] .kb-cat-Bug, [data-theme="dark"] .kb-cat-APIMisuse { background: #3c1414; color: #f39b9b; }
[data-theme="dark"] .kb-cat-BestPractice { background: #0f3020; color: #7ddba6; }
[data-theme="dark"] .kb-cat-Clarification { background: #1c2533; color: #aab6c6; }

/* KB index */
.fl-chipfilter { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0 0 1.5rem; }
.fl-chipfilter button { padding: .35rem .8rem; border-radius: 99px; border: 1px solid var(--line); background: var(--card); color: var(--body); font-size: .85rem; cursor: pointer; transition: all .2s var(--ease); }
.fl-chipfilter button b { margin-left: .25rem; color: var(--muted); font-weight: 600; }
.fl-chipfilter button:hover { border-color: var(--brand); }
.fl-chipfilter button.is-on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.fl-chipfilter button.is-on b { color: inherit; opacity: .7; }
.fl-kb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.fl-card-kb.is-filtered, .fl-topic.is-empty { display: none; }
.docs-article .fl-topic > h2 { display: flex; align-items: baseline; gap: .5rem; }
.fl-topic-count { font: 600 .85rem var(--font); color: var(--muted); }

/* ---------- step-by-step guides ---------- */
.fl-steps { counter-reset: step; }
.fl-steps h3.count { position: relative; padding-left: 3.2rem; min-height: 2.1rem; display: flex; align-items: center; }
.fl-steps h3.count::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 2.1rem; height: 2.1rem; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, var(--brand-2), var(--brand)); color: #fff; font: 700 .9rem var(--font-head); box-shadow: 0 6px 14px -6px rgba(24,123,176,.7); }
.fl-steps .docs-section { padding-left: 3.2rem; position: relative; }
.fl-steps .docs-section > h3.count { margin-left: -3.2rem; }
.fl-steps .docs-section::after { content: ""; position: absolute; left: 1.03rem; top: 4.5rem; bottom: 0; width: 2px; background: var(--line); }
.checkpoint .check { display: none; }

/* ---------- prev / next ---------- */
.fl-prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--line-2); }
.fl-pn { display: flex; flex-direction: column; gap: .2rem; padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); font-weight: 600; transition: border-color .2s, transform .3s var(--ease), box-shadow .3s; overflow-wrap: anywhere; }
.fl-pn small { color: var(--muted); font-weight: 500; font-size: .78rem; }
.fl-pn-next { text-align: right; grid-column: 2; }
.fl-pn:hover { text-decoration: none; color: var(--ink); border-color: var(--brand); box-shadow: var(--shadow); }
.fl-pn-prev:hover { transform: translateX(-3px); } .fl-pn-next:hover { transform: translateX(3px); }

/* ---------- table of contents (built by facelift.js) ---------- */
.fl-toc-in { position: sticky; top: calc(var(--header-h) + 2rem); padding: 2rem 1.25rem 0 0; }
.fl-toc-title { font: 700 .72rem var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .75rem; }
.fl-toc ul { position: relative; list-style: none; padding: 0 0 0 .9rem; margin: 0; border-left: 1px solid var(--line); max-height: calc(100vh - var(--header-h) - 8rem); overflow-y: auto; scrollbar-width: none; }
.fl-toc li a { display: block; padding: .28rem 0; font-size: .84rem; color: var(--muted); line-height: 1.4; transition: color .2s; }
.fl-toc li.lvl-3 a { padding-left: .8rem; font-size: .8rem; }
.fl-toc li a:hover { color: var(--ink); text-decoration: none; }
.fl-toc li a.is-active { color: var(--brand); font-weight: 600; }
.fl-toc-ink { position: absolute; left: -1px; width: 2px; border-radius: 2px; background: var(--brand); transition: top .35s var(--ease), height .35s var(--ease); }

/* ---------- reveal on scroll (only when scripts run, so the content is in the page without JS) ---------- */
@media (scripting: enabled) {
    [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--i, 0) * 45ms); }
    [data-reveal].is-in { opacity: 1; transform: none; }
    .fl-card[data-reveal].is-in { transition: opacity .6s var(--ease) calc(var(--i, 0) * 45ms), transform .3s var(--ease), box-shadow .3s, border-color .3s; }
}

/* ---------- search palette ---------- */
.fl-palette { position: fixed; inset: 0; z-index: 2000; display: flex; justify-content: center; align-items: flex-start; padding: 10vh 1rem 1rem; }
.fl-palette[hidden] { display: none; }
.fl-palette-backdrop { position: absolute; inset: 0; background: rgba(7, 16, 28, .5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fl-fadein .2s ease-out; }
.fl-palette-panel { position: relative; width: min(880px, 100%); max-height: min(680px, 82vh); display: flex; flex-direction: column; border-radius: 18px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 40px 120px -20px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.04); overflow: hidden; animation: fl-pop .28s var(--ease); }
.fl-palette.is-closing .fl-palette-panel { animation: fl-pop-out .16s ease-in forwards; }
.fl-palette.is-closing .fl-palette-backdrop { animation: fl-fadein .16s reverse forwards; }
@keyframes fl-fadein { from { opacity: 0; } }
@keyframes fl-pop { from { opacity: 0; transform: translateY(-12px) scale(.97); } }
@keyframes fl-pop-out { to { opacity: 0; transform: translateY(-6px) scale(.98); } }
.fl-palette-input, .fl-filters, .fl-palette-foot { flex: none; }
.fl-palette-input { display: flex; align-items: center; gap: .75rem; padding: 1rem 1.15rem; border-bottom: 1px solid var(--line); }
.fl-palette-input svg { width: 21px; height: 21px; color: var(--brand); }
.fl-palette-input input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 1.15rem; color: var(--ink); }
.fl-palette-input input::placeholder { color: var(--muted); }
.fl-esc { border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; background: var(--bg-2); color: var(--muted); font-size: .72rem; font-weight: 600; padding: .1rem .45rem; cursor: pointer; }
.fl-palette.is-loading .fl-palette-input { background-image: linear-gradient(90deg, transparent, var(--brand), transparent); background-size: 40% 2px; background-repeat: no-repeat; background-position: -40% 100%; animation: fl-load 1s linear infinite; }
@keyframes fl-load { to { background-position: 140% 100%; } }
.fl-filters { display: flex; gap: .35rem; padding: .6rem 1rem; border-bottom: 1px solid var(--line-2); overflow-x: auto; scrollbar-width: none; }
.fl-filters:empty { display: none; }
.fl-filters button { flex: none; display: flex; align-items: center; gap: .35rem; padding: .28rem .7rem; border: 1px solid var(--line); border-radius: 99px; background: none; color: var(--body); font-size: .8rem; font-weight: 500; cursor: pointer; transition: all .2s var(--ease); }
.fl-filters button b { font-weight: 600; color: var(--muted); font-size: .72rem; }
.fl-filters button:hover { border-color: var(--brand); }
.fl-filters button[aria-selected="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.fl-filters button[aria-selected="true"] b { color: rgba(255,255,255,.8); }
.fl-filters button:disabled { opacity: .4; cursor: default; }
.fl-palette-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 300px; }
.fl-results { overflow-y: auto; padding: .5rem; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.fl-group-label { padding: .6rem .7rem .3rem; font: 700 .68rem var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.fl-hit { position: relative; display: flex; align-items: center; gap: .8rem; padding: .6rem .7rem; border-radius: 10px; color: var(--text); cursor: pointer; animation: fl-hit-in .3s var(--ease) both; animation-delay: calc(var(--i, 0) * 18ms); }
@keyframes fl-hit-in { from { opacity: 0; transform: translateY(5px); } }
.fl-hit:hover { text-decoration: none; color: var(--text); }
.fl-hit.is-active { background: var(--soft); }
.fl-hit.is-active::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--brand); }
.fl-hit-ico { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; font-size: .85rem; background: var(--soft); color: var(--brand); }
.fl-hit-main { min-width: 0; flex: 1; }
.fl-hit-title { display: block; font-weight: 600; font-size: .93rem; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fl-hit-title.is-code { font-family: var(--mono); font-size: .86rem; }
.fl-hit-sub { display: block; font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fl-hit-go { opacity: 0; color: var(--brand); font-size: .85rem; transition: opacity .15s, transform .2s var(--ease); transform: translateX(-4px); }
.fl-hit.is-active .fl-hit-go { opacity: 1; transform: none; }
.fl-hit-more { width: 100%; border: 0; background: none; color: var(--brand); font-weight: 600; font-size: .85rem; padding-left: 3.6rem; text-align: left; }
.fl-palette mark { background: none; color: var(--brand); padding: 0; font-weight: 700; box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--brand) 35%, transparent); }
.fl-preview { border-left: 1px solid var(--line-2); background: var(--bg-2); padding: 1.25rem; overflow-y: auto; }
.fl-preview-in { animation: fl-fade .25s var(--ease); }
.fl-preview h3 { font-size: 1.05rem; margin: .6rem 0 .4rem; line-height: 1.35; word-break: break-word; }
.fl-preview h3.is-code { font-family: var(--mono); font-size: .92rem; color: var(--brand); }
.fl-preview p { font-size: .86rem; line-height: 1.6; margin: 0 0 .8rem; }
.fl-preview-path { font-size: .74rem; color: var(--muted); margin-bottom: .75rem; }
.fl-preview-params { list-style: none; padding: 0; margin: 0 0 .9rem; font-size: .8rem; }
.fl-preview-params li { display: flex; gap: .5rem; padding: .3rem 0; border-top: 1px solid var(--line); }
.fl-preview-params code { background: none; padding: 0; font-size: .8rem; }
.fl-preview-params span { color: #8b5cf6; font-family: var(--mono); margin-left: auto; }
.fl-preview .fl-btn { font-size: .8rem; padding: .4rem .8rem; }
.fl-empty { padding: 3rem 1.5rem; text-align: center; color: var(--muted); }
.fl-empty-art { font-size: 2rem; margin-bottom: .5rem; }
.fl-empty strong { display: block; color: var(--ink); margin-bottom: .25rem; }
.fl-suggest { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin-top: 1rem; }
.fl-suggest button { border: 1px solid var(--line); border-radius: 99px; background: var(--card); color: var(--body); font: .8rem var(--mono); padding: .25rem .7rem; cursor: pointer; }
.fl-suggest button:hover { border-color: var(--brand); color: var(--brand); }
.fl-palette-foot { display: flex; gap: 1.1rem; padding: .55rem 1rem; border-top: 1px solid var(--line); background: var(--bg-2); font-size: .74rem; color: var(--muted); }
.fl-palette-foot kbd { margin-right: .15rem; font-size: .68rem; }
.fl-count { margin-left: auto; }

/* ---------- footer ---------- */
.fl-footer { border-top: 1px solid var(--line); background: var(--bg-2); }
.fl-footer-in { max-width: 1200px; margin: 0 auto; padding: 3.5rem 1.25rem 2rem; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
.fl-footer-brand img { height: 30px; margin-bottom: 1rem; }
[data-theme="dark"] .fl-footer-brand img, [data-theme="dark"] .fl-brand img { filter: brightness(0) invert(1); }
.fl-footer-brand p { font-size: .9rem; max-width: 320px; }
.fl-footer h4 { font: 700 .75rem var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); margin-bottom: .9rem; }
.fl-footer ul { list-style: none; padding: 0; margin: 0; }
.fl-footer li { margin: .35rem 0; }
.fl-footer li a { color: var(--body); font-size: .9rem; }
.fl-footer li a:hover { color: var(--brand); }
.fl-footer-bottom { max-width: 1200px; margin: 0 auto; padding: 1.25rem; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); }
.fl-footer-bottom .fa-heart, .fl-footer-bottom svg { color: #fb866a; }

/* ---------- responsive ---------- */
@media (max-width: 1279.98px) { .docs-wrapper.has-toc { grid-template-columns: 270px minmax(0, 1fr); } .fl-toc { display: none; } .docs-wrapper { grid-template-columns: 270px minmax(0, 1fr); } }
@media (max-width: 991.98px) {
    .fl-topnav, .fl-login { display: none; }
    .fl-burger { display: flex; }
    .docs-wrapper, .docs-wrapper.has-toc { grid-template-columns: minmax(0, 1fr); }
    .docs-sidebar { position: fixed; z-index: 999; top: var(--header-h); bottom: 0; left: 0; width: min(320px, 86vw); height: auto; background: var(--bg); transform: translateX(-100%); transition: transform .35s var(--ease); box-shadow: var(--shadow-lg); }
    .fl-nav-open .docs-sidebar { transform: none; top: calc(var(--header-h) + 52px); }
    .fl-nav-open .fl-topnav {
        display: flex; position: absolute; left: 0; right: 0; top: var(--header-h); height: 52px; z-index: 1001;
        align-items: center; padding: 0 1rem; overflow-x: auto; scrollbar-width: none;
        background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 10px 24px -16px rgba(13,27,42,.5);
        animation: fl-fade .25s var(--ease);
    }
    .fl-nav-open .fl-topnav a { flex: none; color: var(--body) !important; }
    .fl-nav-open .fl-topnav a.is-active { color: var(--brand) !important; }
    .fl-nav-open .fl-topnav a.is-active::after { bottom: 4px; }
    .fl-home.fl-nav-open .fl-header { background: var(--bg); }
    .fl-home.fl-nav-open .fl-header .fl-brand img { filter: none; }
    [data-theme="dark"] .fl-home.fl-nav-open .fl-header .fl-brand img { filter: brightness(0) invert(1); }
    .fl-home.fl-nav-open .fl-header .fl-burger span { background: var(--ink); }
    .fl-start-grid, .fl-split { grid-template-columns: 1fr; }
    .fl-start { margin-top: -2rem; }
    .fl-palette-body { grid-template-columns: minmax(0, 1fr); } .fl-preview { display: none; }
    .fl-footer-in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 575.98px) {
    .fl-search-trigger { width: auto; } .fl-search-trigger span, .fl-search-trigger .fl-kbd { display: none; }
    .fl-hero { padding-top: calc(var(--header-h) + 3.5rem); padding-bottom: 5rem; }
    .fl-hero-search .fl-kbd { display: none; }
    .fl-stats b { font-size: 1.5rem; }
    .fl-palette { padding: 0; } .fl-palette-panel { max-height: 100vh; height: 100%; border-radius: 0; }
    .fl-palette-foot span:not(.fl-count) { display: none; }
    .fl-prevnext { grid-template-columns: 1fr; } .fl-pn-next { grid-column: 1; }
    .fl-brand-tag { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    [data-reveal], .fl-in { opacity: 1 !important; transform: none !important; }
}
