/* [SEO, 2026-08-09] Extracted from Docs.razor's inline <style> block so the new standalone
   /docs/* topic pages (DocsTopicLayout.razor and its content pages) can reuse the exact same
   look without duplicating ~160 lines of CSS per file. Docs.razor itself now links this file
   too instead of carrying its own copy. */

.docs-layout { display: flex; height: 100vh; overflow: hidden; background: #0a0c10; color: #e2e8f0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
.docs-sidebar-col { width: 260px; flex-shrink: 0; background: #0d1017; border-right: 1px solid rgba(255,255,255,0.07); overflow-y: auto; height: 100%; padding: 1.25rem 0; display: flex; flex-direction: column; }
.docs-main-col { flex: 1; min-width: 0; overflow-y: auto; height: 100%; padding: 2rem 3rem 6rem; }
.docs-section { max-width: 860px; }
@media (max-width: 900px) { .docs-sidebar-col { display: none; } .docs-main-col { padding: 1rem 1.25rem 4rem; } }

/* Section filter bar — shown when landing from an external hash link */
#docs-filter-bar {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.55rem 0.85rem; margin-bottom: 1.5rem;
    background: rgba(99,102,241,0.08); border: 1px solid rgba(99,102,241,0.22);
    border-radius: 10px;
}
#docs-filter-back {
    background: none; border: none; color: #818cf8; font-size: 0.78rem;
    font-weight: 600; cursor: pointer; padding: 0; white-space: nowrap;
    transition: color 0.15s;
}
#docs-filter-back:hover { color: #a5b4fc; }
#docs-filter-label {
    font-size: 0.78rem; color: #94a3b8;
    border-left: 1px solid rgba(255,255,255,0.1); padding-left: 0.75rem;
}

/* Sidebar */
.docs-logo { display: flex; align-items: center; gap: 0.5rem; padding: 0 1rem 1rem; font-size: 0.95rem; font-weight: 800; color: #f1f5f9; border-bottom: 1px solid rgba(255,255,255,0.07); margin-bottom: 0.75rem; }
.docs-logo-icon { width: 28px; height: 28px; line-height: 0; display: flex; align-items: center; justify-content: center; }
.docs-search { margin: 0 0.75rem 0.75rem; position: relative; }
.docs-search input { width: 100%; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; padding: 0.4rem 0.75rem 0.4rem 2rem; font-size: 0.78rem; color: #e2e8f0; outline: none; }
.docs-search input::placeholder { color: var(--text-dim); }
.docs-search .search-icon { position: absolute; left: 0.5rem; top: 50%; transform: translateY(-50%); color: var(--text-dim); font-size: 0.7rem; pointer-events: none; }
.docs-back-home { display: flex; align-items: center; gap: 0.45rem; margin: 0.5rem 1rem 0.75rem; font-size: 0.75rem; color: var(--text-dim); text-decoration: none; transition: color 0.15s; }
.docs-back-home:hover { color: #a5b4fc; }
.docs-back-home i { font-size: 0.7rem; }
.docs-nav-group { margin-bottom: 0.25rem; }
.docs-nav-group-title { padding: 0.5rem 1rem 0.25rem; font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); }
.docs-nav-link { display: block; padding: 0.3rem 1rem 0.3rem 1.25rem; font-size: 0.78rem; color: #94a3b8; text-decoration: none; border-left: 2px solid transparent; transition: all 0.15s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; background: none; border-top: none; border-right: none; border-bottom: none; width: 100%; text-align: left; }
.docs-nav-link:hover { color: #e2e8f0; background: rgba(255,255,255,0.04); border-left-color: rgba(255,255,255,0.2); }
.docs-nav-link.active { color: #818cf8; border-left-color: #818cf8; background: rgba(99,102,241,0.08); }
.docs-nav-link.hidden { display: none; }
.docs-pdf-bar { margin-top: auto; padding: 0.75rem; border-top: 1px solid rgba(255,255,255,0.07); display: flex; flex-direction: column; gap: 0.4rem; }
.docs-pdf-btn { background: rgba(99,102,241,0.12); border: 1px solid rgba(99,102,241,0.3); color: #818cf8; border-radius: 8px; padding: 0.4rem 0.75rem; font-size: 0.75rem; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 0.4rem; transition: all 0.15s; }
.docs-pdf-btn:hover { background: rgba(99,102,241,0.2); }

/* Tier filter */
.docs-tier-filter { margin: 0 0.75rem 0.5rem; padding: 0.5rem 0.6rem; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); border-radius: 8px; }
.docs-tier-filter-label { font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); margin-bottom: 0.35rem; display: block; }
.tier-pills { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.tier-pill { padding: 0.15rem 0.5rem; border-radius: 20px; font-size: 0.62rem; font-weight: 700; cursor: pointer; border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.03); color: var(--text-muted); transition: all 0.15s; }
.tier-pill:hover { color: #cbd5e1; border-color: rgba(255,255,255,0.2); }
.tier-pill.active { border-color: #6366f1; color: #818cf8; background: rgba(99,102,241,0.15); }
.tier-pill.tier-0.active { background: rgba(52,211,153,0.1); border-color: #34d399; color: #34d399; }
.tier-pill.tier-1.active { background: rgba(99,102,241,0.15); border-color: #6366f1; color: #818cf8; }
.tier-pill.tier-2.active { background: rgba(251,191,36,0.1); border-color: #f59e0b; color: #fbbf24; }
.tier-pill.tier-3.active { background: rgba(239,68,68,0.1); border-color: #ef4444; color: #f87171; }

/* Content */
.docs-section { margin-bottom: 3.5rem; padding-top: 0.5rem; }
.docs-section h2 { font-size: 1.5rem; font-weight: 800; color: #f1f5f9; margin: 0 0 0.5rem; letter-spacing: -0.02em; }
.docs-section h3 { font-size: 1.1rem; font-weight: 700; color: #e2e8f0; margin: 1.75rem 0 0.6rem; }
.docs-section h4 { font-size: 0.9rem; font-weight: 700; color: #cbd5e1; margin: 1.25rem 0 0.4rem; }
.docs-section p { font-size: 0.88rem; line-height: 1.75; color: #94a3b8; margin: 0 0 0.85rem; }
.docs-section ul, .docs-section ol { font-size: 0.88rem; line-height: 1.75; color: #94a3b8; padding-left: 1.4rem; margin: 0 0 0.85rem; }
.docs-section li { margin-bottom: 0.25rem; }
.docs-section strong { color: #e2e8f0; font-weight: 600; }
.docs-section a { color: #818cf8; text-decoration: none; }
.docs-section a:hover { text-decoration: underline; }
.eyebrow { display: inline-block; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #818cf8; background: rgba(99,102,241,0.12); border: 1px solid rgba(99,102,241,0.25); border-radius: 20px; padding: 2px 10px; margin-bottom: 0.6rem; }
.divider { border: none; border-top: 1px solid rgba(255,255,255,0.07); margin: 2.5rem 0; }

/* Screenshots */
.docs-img { width: 100%; border-radius: 10px; border: 1px solid rgba(255,255,255,0.08); margin: 0.75rem 0 1.25rem; display: block; box-shadow: 0 4px 24px rgba(0,0,0,0.4); }
.docs-img-caption { font-size: 0.72rem; color: var(--text-dim); text-align: center; margin: -0.75rem 0 1.25rem; font-style: italic; }

/* Code blocks */
.code-block { background: #0d1117; border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; padding: 1rem 1.25rem; margin: 0.75rem 0 1rem; position: relative; overflow-x: auto; }
.code-block pre { margin: 0; font-size: 0.78rem; line-height: 1.7; font-family: 'Fira Code', 'Consolas', monospace; color: #e2e8f0; white-space: pre; }
.code-lang { position: absolute; top: 0.5rem; right: 2.5rem; font-size: 0.62rem; font-weight: 700; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.06em; }
.copy-btn { position: absolute; top: 0.4rem; right: 0.5rem; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 5px; color: var(--text-dim); cursor: pointer; padding: 2px 6px; font-size: 0.68rem; transition: all 0.15s; }
.copy-btn:hover { color: #e2e8f0; background: rgba(255,255,255,0.12); }
.c-kw { color: #c792ea; } .c-str { color: #c3e88d; } .c-num { color: #f78c6c; }
.c-key { color: #82aaff; } .c-cm { color: #546e7a; font-style: italic; } .c-op { color: #89ddff; }
.c-fn { color: #82aaff; } .c-url { color: #c3e88d; text-decoration: underline; }

/* Callouts */
.callout { border-radius: 10px; padding: 0.85rem 1rem; margin: 1rem 0; display: flex; gap: 0.75rem; font-size: 0.83rem; line-height: 1.6; }
.callout-icon { flex-shrink: 0; font-size: 1rem; margin-top: 1px; }
.callout-body strong { display: block; margin-bottom: 2px; font-size: 0.8rem; }
.callout-info { background: rgba(99,102,241,0.08); border: 1px solid rgba(99,102,241,0.25); color: #a5b4fc; }
.callout-warn { background: rgba(251,191,36,0.08); border: 1px solid rgba(251,191,36,0.25); color: #fde68a; }
.callout-danger { background: rgba(248,113,113,0.08); border: 1px solid rgba(248,113,113,0.25); color: #fca5a5; }
.callout-success { background: rgba(52,211,153,0.08); border: 1px solid rgba(52,211,153,0.25); color: #6ee7b7; }

/* Chips & badges */
.chip { display: inline-flex; align-items: center; gap: 0.3rem; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 20px; padding: 3px 10px; font-size: 0.72rem; color: #94a3b8; margin-right: 0.35rem; margin-bottom: 0.35rem; }
.badge-get { background: rgba(52,211,153,0.12); color: #34d399; border-radius: 4px; padding: 1px 6px; font-size: 0.7rem; font-weight: 700; font-family: monospace; }
.badge-post { background: rgba(99,102,241,0.15); color: #818cf8; border-radius: 4px; padding: 1px 6px; font-size: 0.7rem; font-weight: 700; font-family: monospace; }
.badge-del { background: rgba(248,113,113,0.12); color: #f87171; border-radius: 4px; padding: 1px 6px; font-size: 0.7rem; font-weight: 700; font-family: monospace; }
.badge-put { background: rgba(251,191,36,0.12); color: #fbbf24; border-radius: 4px; padding: 1px 6px; font-size: 0.7rem; font-weight: 700; font-family: monospace; }
.endpoint-row { display: flex; align-items: baseline; gap: 0.6rem; font-size: 0.82rem; padding: 0.45rem 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.endpoint-path { font-family: monospace; color: #e2e8f0; }
.endpoint-desc { color: var(--text-dim); font-size: 0.76rem; }

/* Tables */
.docs-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; margin: 0.75rem 0 1.25rem; }
.docs-table th { text-align: left; padding: 0.5rem 0.75rem; color: var(--text-dim); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; border-bottom: 1px solid rgba(255,255,255,0.08); }
.docs-table td { padding: 0.55rem 0.75rem; color: #94a3b8; border-bottom: 1px solid rgba(255,255,255,0.05); vertical-align: top; }
.docs-table td:first-child { color: #e2e8f0; font-weight: 600; font-family: monospace; font-size: 0.8rem; }
.docs-table tr:last-child td { border-bottom: none; }

/* Group intro feature grid */
.docs-feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0.75rem; margin: 1.25rem 0 1rem; }
.docs-feature-card { display: flex; gap: 0.85rem; align-items: flex-start; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07); border-radius: 10px; padding: 0.9rem 1rem; font-size: 0.82rem; color: #94a3b8; line-height: 1.55; }
.docs-feature-card strong { display: block; color: #e2e8f0; font-size: 0.83rem; margin-bottom: 0.2rem; }
.docs-feature-card-icon { width: 32px; height: 32px; border-radius: 8px; background: rgba(99,102,241,0.12); border: 1px solid rgba(99,102,241,0.2); color: #818cf8; font-size: 0.85rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
/* Callout boxes */
.docs-callout { padding: 0.75rem 1rem; border-radius: 8px; font-size: 0.82rem; line-height: 1.6; margin: 1rem 0; }
.docs-callout-green { background: rgba(34,197,94,0.06); border: 1px solid rgba(34,197,94,0.18); color: #4ade80; }
.docs-callout-green a { color: #4ade80; text-decoration: underline; }
.docs-callout-blue { background: rgba(99,102,241,0.06); border: 1px solid rgba(99,102,241,0.18); color: #818cf8; }

/* Step flow */
.step-flow { display: flex; flex-direction: column; gap: 0; margin: 1rem 0; }
.step-item { display: flex; gap: 1rem; }
.step-num { width: 28px; height: 28px; border-radius: 50%; background: rgba(99,102,241,0.15); border: 1px solid rgba(99,102,241,0.3); color: #818cf8; font-size: 0.75rem; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }
.step-line { width: 1px; background: rgba(99,102,241,0.2); margin: 0 0 0 13px; height: 1.5rem; }
.step-body { flex: 1; padding-bottom: 1.25rem; }
.step-title { font-size: 0.88rem; font-weight: 700; color: #e2e8f0; margin-bottom: 0.3rem; }
.step-desc { font-size: 0.82rem; color: #94a3b8; line-height: 1.6; }

/* Plan cards — [CSS collision fix, 2026-08-20] These class names (plan-name/plan-price/...)
   coincidentally match PricingCards.razor's real pricing-card markup, and since docs.css is
   linked globally in index.html (not scoped to /docs routes — see the [SEO, 2026-08-09] note
   below), the old bare selectors leaked onto the actual /pricing page and shrank the real price
   display to this snippet's small docs-mockup size. This docs snippet is always rendered inside
   .plan-grid (see SecurityAdminSection.razor); PricingCards.razor never uses that wrapper class —
   scoping every selector under it disambiguates the two without touching either component's markup. */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.75rem; margin: 1rem 0; }
.plan-grid .plan-card { border-radius: 12px; padding: 1rem; border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.03); }
.plan-grid .plan-card.highlight { border-color: rgba(99,102,241,0.4); background: rgba(99,102,241,0.06); }
.plan-grid .plan-name { font-size: 0.82rem; font-weight: 800; color: #f1f5f9; margin-bottom: 0.25rem; }
.plan-grid .plan-price { font-size: 1.3rem; font-weight: 800; color: #818cf8; }
.plan-grid .plan-price span { font-size: 0.7rem; color: var(--text-dim); font-weight: 400; }
.plan-grid .plan-features { margin-top: 0.75rem; font-size: 0.75rem; color: #94a3b8; line-height: 1.8; }
.plan-grid .plan-feature-item { display: flex; align-items: center; gap: 0.4rem; }
.plan-grid .plan-feature-item i { color: #34d399; font-size: 0.65rem; }

/* Pool visualiser */
.pool-bar-wrap { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; padding: 1rem; margin: 1rem 0; }
.pool-bar-label { display: flex; justify-content: space-between; font-size: 0.75rem; color: #94a3b8; margin-bottom: 0.4rem; }
.pool-bar { height: 8px; border-radius: 4px; background: rgba(255,255,255,0.08); overflow: hidden; margin-bottom: 0.5rem; }
.pool-bar-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg,#6366f1,#34d399); transition: width 0.4s; }
.pool-bar-fill.warn { background: linear-gradient(90deg,#fbbf24,#f97316); }
.pool-bar-fill.danger { background: #f87171; }
.pool-legend { display: flex; gap: 1rem; font-size: 0.72rem; color: var(--text-dim); }
.pool-legend span { display: flex; align-items: center; gap: 0.3rem; }
.pool-legend .dot { width: 8px; height: 8px; border-radius: 2px; }

/* UI mockup */
.ui-key { font-family: monospace; background: rgba(99,102,241,0.1); border: 1px solid rgba(99,102,241,0.2); border-radius: 6px; padding: 0.3rem 0.65rem; color: #818cf8; font-size: 0.8rem; letter-spacing: 0.05em; }
.ui-badge-green { background: rgba(52,211,153,0.12); color: #34d399; border-radius: 20px; padding: 2px 8px; font-size: 0.7rem; font-weight: 700; }
.ui-badge-red { background: rgba(248,113,113,0.12); color: #f87171; border-radius: 20px; padding: 2px 8px; font-size: 0.7rem; font-weight: 700; }

/* [SEO, 2026-08-09] New for the standalone /docs/* topic pages (DocsTopicLayout.razor) — not
   used by the original monolithic /docs page, which has its own always-visible sidebar instead. */
.docs-topic-crumb { font-size: 0.78rem; color: var(--text-dim); margin-bottom: 1.25rem; display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.docs-topic-crumb a { color: #818cf8; text-decoration: none; }
.docs-topic-crumb a:hover { text-decoration: underline; }
.docs-topic-crumb .sep { color: #4b5563; }
/* [SEO fix, Phase 8 follow-up, 2026-08-10] Every /docs/* topic page needs exactly one real <h1> —
   was missing entirely (content started at <h2>, title only existed as <title>/breadcrumb text). */
.docs-topic-h1 { font-size: 1.9rem; font-weight: 800; color: #f1f5f9; letter-spacing: -0.02em; margin: 0 0 1.25rem; }
.docs-topic-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.07); }
.docs-topic-nav a { flex: 1; max-width: 48%; padding: 0.85rem 1rem; border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; text-decoration: none; color: #94a3b8; font-size: 0.82rem; transition: all 0.15s; }
.docs-topic-nav a:hover { border-color: rgba(99,102,241,0.35); color: #e2e8f0; background: rgba(99,102,241,0.05); }
.docs-topic-nav a.next { text-align: right; margin-left: auto; }
.docs-topic-nav .dir-label { display: block; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-dim); margin-bottom: 0.2rem; }
.docs-topic-mobile-toggle { display: none; }
.docs-layout .docs-main-col { padding: 2.5rem clamp(1.25rem, 5vw, 6rem) 5rem; }
.docs-main-col > * { max-width: 860px; }
.docs-layout .docs-section p, .docs-layout .docs-section li { font-size: .96rem; color: #a8b3c4; }
.docs-layout .docs-section { scroll-margin-top: 1.5rem; }
.docs-layout .eyebrow { display: none; }
.docs-layout .docs-feature-grid { gap: .5rem 1.5rem; }
.docs-layout .docs-feature-card { background: none; border: none; padding: .75rem 0; }
.docs-layout .docs-nav-group-title { font-size: .8rem; text-transform: none; letter-spacing: 0; padding: .85rem 1rem .5rem; cursor: pointer; color: #cbd5e1; }
.docs-layout .docs-nav-link { font-size: .84rem; white-space: normal; padding-top: .45rem; padding-bottom: .45rem; }
.docs-layout .docs-sdk-link { padding-left: 2rem; }
.docs-layout .docs-search input { padding-left: .75rem; font-size: .85rem; }
.docs-layout .docs-logo a { color: #f1f5f9; text-decoration: none; }
.docs-layout .docs-logo span { color: #818cf8; font-weight: 500; }
.docs-layout .docs-pdf-bar { gap: .65rem; margin-top: 1.5rem; }
.docs-layout .docs-pdf-bar label { font-size: .78rem; color: #a8b3c4; }
.docs-layout .docs-pdf-bar select { background: #0d1017; color: #e2e8f0; border: 1px solid #263041; border-radius: 5px; padding: .45rem; }
.docs-layout .docs-search-results p { padding: .5rem 1rem; font-size: .85rem; color: #a8b3c4; }
.docs-layout :focus-visible { outline: 2px solid #a5b4fc; outline-offset: 3px; }
.docs-layout .docs-lead { font-size: 1.08rem; line-height: 1.7; color: #a8b3c4; margin: 0 0 2rem; }
.docs-start { padding: 1.5rem 0 2rem; border-top: 1px solid #263041; border-bottom: 1px solid #263041; margin-bottom: 2.5rem; }
.docs-start h2, .docs-index-topics h2 { font-size: 1.15rem; color: #e2e8f0; margin: 0 0 .75rem; }
.docs-start p { color: #a8b3c4; line-height: 1.7; }
.docs-start a { color: #a5b4fc; display: inline-block; margin: .5rem 1.5rem 0 0; }
.docs-start .docs-primary-link { background: #6366f1; border-radius: 6px; padding: .7rem 1rem; color: white; text-decoration: none; }
.docs-index-topics { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.docs-index-link { display: block; padding: .7rem 0; color: #a5b4fc; text-decoration: none; }
.docs-index-link strong { font-size: .95rem; font-weight: 600; }
.docs-index-link span { display: block; color: #a8b3c4; font-size: .84rem; line-height: 1.6; margin-top: .2rem; }
.docs-index-link:hover strong { text-decoration: underline; }
.docs-on-page { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; padding: 1rem 0 1.25rem; margin: 0 0 2rem; border-block: 1px solid #263041; font-size: .83rem; }
.docs-on-page strong { flex-basis: 100%; font-weight: 600; color: #a8b3c4; }
.docs-on-page a { color: #a5b4fc; }
.docs-sidebar-close { display: none; }
.docs-layout .docs-table { display: block; overflow-x: auto; }
.docs-layout .code-block { padding-top: 2rem; }
.docs-layout .step-body { min-width: 0; }
.docs-layout p code { overflow-wrap: anywhere; }
@media (max-width: 600px) { .docs-index-topics { grid-template-columns: 1fr; gap: 1.5rem; } }
@media (max-width: 900px) {
    .docs-topic-mobile-toggle {
        display: flex; align-items: center; gap: 0.5rem; width: 100%;
        background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
        color: #e2e8f0; border-radius: 8px; padding: 0.6rem 0.9rem; font-size: 0.82rem;
        font-weight: 600; margin-bottom: 1rem; position: sticky; top: 0.75rem; z-index: 20;
    }
    .docs-sidebar-col.docs-topic-sidebar { position: fixed; inset: 0; width: 100%; z-index: 30; display: none; }
    .docs-sidebar-col.docs-topic-sidebar.open { display: flex; }
    .docs-sidebar-close { display: block; margin: 0 .75rem 1rem; padding: .65rem; color: #e2e8f0; background: #20263a; border: 1px solid #818cf8; border-radius: 6px; }
}
