/* =========================================================================
   Tenantivo Help Center / Documentation — Design System
   Used by:
     - Views/Home/Help/Docs.cshtml              (documentation listing)
     - Views/Home/Help/Docs/*.cshtml            (individual doc articles)
   Distinct from Blog.css (opinionated articles) and Guides.css (step
   timelines) — this is a screen-by-screen atlas of a process. No numbered
   timeline; each point is a self-contained "screen tile".
   Depends on tokens defined in Public.css (--tv-* variables).
   ========================================================================= */

/* ---------------------------------------------------------------------------
   Accent system
   --------------------------------------------------------------------------- */
.tv-docs,
.tv-docs-accent-brand {
    --tv-docs-grad:      var(--tv-grad-brand);
    --tv-docs-strong:    var(--tv-primary-700);
    --tv-docs-tint:      var(--tv-primary-50);
    --tv-docs-tint-line: var(--tv-primary-100);
    --tv-docs-glow:      var(--tv-shadow-brand);
}
.tv-docs-accent-mint {
    --tv-docs-grad:      linear-gradient(135deg, #059669 0%, #34d399 100%);
    --tv-docs-strong:    #047857;
    --tv-docs-tint:      #ecfdf5;
    --tv-docs-tint-line: #a7f3d0;
    --tv-docs-glow:      0 10px 24px rgba(16, 185, 129, 0.28);
}
.tv-docs-accent-violet {
    --tv-docs-grad:      linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
    --tv-docs-strong:    #6d28d9;
    --tv-docs-tint:      #f5f3ff;
    --tv-docs-tint-line: #ddd6fe;
    --tv-docs-glow:      0 10px 24px rgba(139, 92, 246, 0.28);
}
.tv-docs-accent-amber {
    --tv-docs-grad:      linear-gradient(135deg, #d97706 0%, #fbbf24 100%);
    --tv-docs-strong:    #b45309;
    --tv-docs-tint:      #fffbeb;
    --tv-docs-tint-line: #fde68a;
    --tv-docs-glow:      0 10px 24px rgba(245, 158, 11, 0.28);
}
.tv-docs-accent-cyan {
    --tv-docs-grad:      linear-gradient(135deg, #0891b2 0%, #22d3ee 100%);
    --tv-docs-strong:    #0e7490;
    --tv-docs-tint:      #ecfeff;
    --tv-docs-tint-line: #a5f3fc;
    --tv-docs-glow:      0 10px 24px rgba(34, 211, 238, 0.28);
}
.tv-docs-accent-rose {
    --tv-docs-grad:      linear-gradient(135deg, #e11d48 0%, #fb7185 100%);
    --tv-docs-strong:    #be123c;
    --tv-docs-tint:      #fff1f2;
    --tv-docs-tint-line: #fecdd3;
    --tv-docs-glow:      0 10px 24px rgba(244, 63, 94, 0.28);
}
.tv-docs-accent-slate {
    --tv-docs-grad:      linear-gradient(135deg, #334155 0%, #64748b 100%);
    --tv-docs-strong:    #1e293b;
    --tv-docs-tint:      #f1f5f9;
    --tv-docs-tint-line: #cbd5e1;
    --tv-docs-glow:      0 10px 24px rgba(71, 85, 105, 0.28);
}

/* ============================================================
   HERO — listing + detail
   ============================================================ */
.tv-docs-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(165deg, #0b1220 0%, #111c33 42%, #0b1220 100%);
    color: #fff;
    padding: 3.5rem 0 5rem;
}
.tv-docs-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 12% -10%, rgba(16, 185, 129, 0.28), transparent 55%),
        radial-gradient(ellipse 60% 50% at 92% 20%, rgba(99, 102, 241, 0.22), transparent 50%),
        radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.07) 1px, transparent 0);
    background-size: auto, auto, 22px 22px;
    pointer-events: none;
}
.tv-docs-hero::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent, var(--tv-soft-bg, #f8fafc));
    pointer-events: none;
}
.tv-docs-hero > .container { position: relative; z-index: 2; }

.tv-docs-hero-breadcrumb {
    margin: 0 0 1.25rem;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.5rem;
    font-size: 0.85rem;
    color: rgba(226, 232, 240, 0.75);
}
.tv-docs-hero-breadcrumb a {
    color: rgba(226, 232, 240, 0.92);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
}
.tv-docs-hero-breadcrumb a:hover {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.4);
}
.tv-docs-hero-breadcrumb .sep { color: rgba(255, 255, 255, 0.35); }
.tv-docs-hero-breadcrumb .current { color: #fff; font-weight: 500; }

.tv-docs-hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem 0.35rem 0.45rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.tv-docs-hero-pill-icon {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--tv-docs-grad);
    box-shadow: var(--tv-docs-glow);
    font-size: 0.75rem;
}

.tv-docs-hero-title {
    color: #fff;
    font-size: clamp(1.85rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    max-width: 44rem;
}
.tv-docs-hero-lead {
    font-size: 1.08rem;
    line-height: 1.65;
    color: #e2e8f0;
    max-width: 42rem;
    margin-bottom: 1.5rem;
}

.public-main .tv-docs-hero h1.tv-docs-hero-title  { color: #fff !important; }
.public-main .tv-docs-hero p.tv-docs-hero-lead    { color: #e2e8f0 !important; }

.tv-docs-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    font-size: 0.9rem;
    color: rgba(226, 232, 240, 0.82);
}
.tv-docs-hero-meta .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}
.tv-docs-hero-meta i { opacity: 0.85; }

/* ============================================================
   LISTING GRID
   ============================================================ */
.tv-docs-listing {
    padding: 0 0 4rem;
    margin-top: -2rem;
    position: relative;
    z-index: 3;
}

.tv-docs-card {
    position: relative;
    height: 100%;
    background: #fff;
    border: 1px solid var(--tv-border, #e2e8f0);
    border-radius: 1rem;
    padding: 1.75rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}
.tv-docs-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
    border-color: var(--tv-docs-tint-line);
    color: inherit;
}
.tv-docs-card-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--tv-docs-tint);
    color: var(--tv-docs-strong);
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    border: 1px solid var(--tv-docs-tint-line);
}
.tv-docs-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 0.75rem;
}
.tv-docs-card-meta .pill {
    background: var(--tv-docs-tint);
    color: var(--tv-docs-strong);
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.tv-docs-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.65rem;
    color: #0f172a;
}
.tv-docs-card-excerpt {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.55;
    flex: 1;
    margin-bottom: 1.25rem;
}
.tv-docs-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--tv-docs-strong);
}
.tv-docs-card-footer i { transition: transform 0.2s ease; }
.tv-docs-card:hover .tv-docs-card-footer i { transform: translateX(4px); }

.tv-docs-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: #64748b;
    background: #fff;
    border-radius: 1rem;
    border: 1px dashed #cbd5e1;
}

/* ============================================================
   FLOW STRIP — chain of screens under the hero
   ============================================================ */
.tv-docs-flow {
    position: relative;
    z-index: 3;
    margin-top: -2.25rem;
    margin-bottom: 2rem;
}
.tv-docs-flow-inner {
    background: #fff;
    border: 1px solid var(--tv-border, #e2e8f0);
    border-radius: 1rem;
    box-shadow: 0 10px 32px rgba(15, 23, 42, 0.06);
    padding: 1.1rem 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.5rem;
}
.tv-docs-flow-label {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--tv-docs-strong);
    padding-right: 1rem;
    border-right: 1px solid #e2e8f0;
}
.tv-docs-flow-chain {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    flex: 1;
    min-width: 0;
}
.tv-docs-flow-chain li {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.tv-docs-flow-chain li + li::before {
    content: "\f105"; /* fa-angle-right */
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free";
    font-weight: 900;
    color: #cbd5e1;
    margin-right: 0.35rem;
    font-size: 0.8rem;
}
.tv-docs-flow-chain a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.65rem 0.35rem 0.4rem;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
    text-decoration: none;
    font-size: 0.83rem;
    font-weight: 600;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.tv-docs-flow-chain a:hover {
    background: var(--tv-docs-tint);
    border-color: var(--tv-docs-tint-line);
    color: var(--tv-docs-strong);
    transform: translateY(-1px);
}
.tv-docs-flow-chain .chain-dot {
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--tv-docs-grad);
    color: #fff;
    font-size: 0.65rem;
    box-shadow: var(--tv-docs-glow);
}

@media (max-width: 767.98px) {
    .tv-docs-flow-label {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        width: 100%;
        padding: 0 0 0.75rem;
    }
}

/* ============================================================
   ARTICLE — layout + intro
   ============================================================ */
.tv-docs-article {
    padding: 0 0 5rem;
    position: relative;
    z-index: 3;
}

.tv-docs-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 2.5rem;
    align-items: start;
}
.tv-docs-main { min-width: 0; }

.tv-docs-intro {
    background: #fff;
    border: 1px solid var(--tv-border, #e2e8f0);
    border-radius: 1rem;
    padding: 1.75rem 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}
.tv-docs-intro p {
    margin: 0;
    color: #475569;
    line-height: 1.65;
    font-size: 1.02rem;
}
.tv-docs-intro p + p { margin-top: 0.85rem; }

/* ============================================================
   POINT — the core "screen tile" block
   ============================================================ */
.tv-docs-point {
    position: relative;
    background: #fff;
    border: 1px solid var(--tv-border, #e2e8f0);
    border-radius: 1.15rem;
    padding: 1.75rem 1.9rem 2rem;
    box-shadow: 0 6px 28px rgba(15, 23, 42, 0.05);
    margin-bottom: 1.75rem;
    scroll-margin-top: 6rem;
    overflow: hidden;
}
.tv-docs-point::before {
    content: "";
    position: absolute;
    left: 0; top: 0;
    width: 6px;
    height: 100%;
    background: var(--tv-docs-grad);
    border-top-left-radius: 1.15rem;
    border-bottom-left-radius: 1.15rem;
}

.tv-docs-point-header {
    margin-bottom: 1.5rem;
}
.tv-docs-point-eyebrow {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--tv-docs-strong);
    background: var(--tv-docs-tint);
    border: 1px solid var(--tv-docs-tint-line);
    border-radius: 999px;
    padding: 0.2rem 0.65rem;
    margin-bottom: 0.75rem;
}
.tv-docs-point-title-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0.5rem;
}
.tv-docs-point-glyph {
    width: 2.75rem;
    height: 2.75rem;
    flex-shrink: 0;
    border-radius: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--tv-docs-grad);
    color: #fff;
    font-size: 1.15rem;
    box-shadow: var(--tv-docs-glow);
}
.tv-docs-point-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.01em;
    margin: 0;
    line-height: 1.2;
}
.tv-docs-point-tagline {
    font-size: 1.02rem;
    line-height: 1.55;
    color: #475569;
    margin: 0;
    font-style: italic;
}

/* Two-column "fact" grid — Location / Purpose etc. */
.tv-docs-point-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.tv-docs-fact {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.85rem;
    padding: 1rem 1.1rem;
}
.tv-docs-fact-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--tv-docs-strong);
    margin-bottom: 0.45rem;
}
.tv-docs-fact-label i { font-size: 0.72rem; }
.tv-docs-fact-body {
    margin: 0;
    font-size: 0.96rem;
    line-height: 1.55;
    color: #334155;
}

/* Feature block — used multiple times inside a point */
.tv-docs-feature-block {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px dashed #e2e8f0;
}
.tv-docs-feature-block:first-of-type {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}
.tv-docs-feature-heading {
    font-size: 1.1rem;
    font-weight: 800;
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0 0 0.65rem;
    letter-spacing: -0.01em;
}
.tv-docs-feature-heading i {
    color: var(--tv-docs-strong);
    font-size: 0.95rem;
}
.tv-docs-feature-note {
    margin: 0 0 1rem;
    color: #475569;
    line-height: 1.6;
    font-size: 0.97rem;
}

/* Feature card grid */
.tv-docs-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.85rem;
}
.tv-docs-feature-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.85rem;
    padding: 1rem 1.1rem 1.1rem;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.tv-docs-feature-card:hover {
    border-color: var(--tv-docs-tint-line);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}
.tv-docs-feature-icon {
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 0.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--tv-docs-tint);
    color: var(--tv-docs-strong);
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
    border: 1px solid var(--tv-docs-tint-line);
}
.tv-docs-feature-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.35rem;
    line-height: 1.25;
}
.tv-docs-feature-card p {
    margin: 0;
    font-size: 0.92rem;
    color: #475569;
    line-height: 1.55;
}
.tv-docs-feature-list {
    margin: 0.35rem 0 0;
    padding-left: 1.1rem;
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.55;
}
.tv-docs-feature-list li { margin-bottom: 0.2rem; }
.tv-docs-feature-list li:last-child { margin-bottom: 0; }

/* Metric strip — the KPI tiles that live inside a point */
.tv-docs-metric-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
}
.tv-docs-metric {
    padding: 1rem 1.1rem;
    border-radius: 0.85rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    border-left: 4px solid #cbd5e1;
}
.tv-docs-metric-label {
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #0f172a;
}
.tv-docs-metric-hint {
    font-size: 0.88rem;
    color: #475569;
    line-height: 1.5;
}
.tv-docs-metric--warn {
    background: #fff7ed;
    border-color: #fed7aa;
    border-left-color: #f97316;
}
.tv-docs-metric--warn .tv-docs-metric-label { color: #9a3412; }
.tv-docs-metric--good {
    background: #ecfdf5;
    border-color: #a7f3d0;
    border-left-color: #10b981;
}
.tv-docs-metric--good .tv-docs-metric-label { color: #065f46; }
.tv-docs-metric--soft {
    background: #eff6ff;
    border-color: #bfdbfe;
    border-left-color: #3b82f6;
}
.tv-docs-metric--soft .tv-docs-metric-label { color: #1d4ed8; }

/* Column chip list — describes grid columns in a compact way */
.tv-docs-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.tv-docs-column-chip {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 0.6rem;
    padding: 0.45rem 0.7rem;
    font-size: 0.85rem;
    color: #334155;
    line-height: 1.45;
}
.tv-docs-column-chip strong { color: #0f172a; }

/* Fee split — three columns for Card / ACH / landlord receives */
.tv-docs-fee-split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.85rem;
}
.tv-docs-fee-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.85rem;
    padding: 1rem 1.1rem;
}
.tv-docs-fee-card p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.55;
    color: #475569;
}
.tv-docs-fee-heading {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--tv-docs-strong);
    margin-bottom: 0.4rem;
}
.tv-docs-fee-card--emphasis {
    background: var(--tv-docs-tint);
    border-color: var(--tv-docs-tint-line);
}
.tv-docs-fee-card--emphasis p { color: #334155; }

/* Callout — advisory / warning block */
.tv-docs-callout {
    display: flex;
    gap: 0.85rem;
    padding: 1rem 1.15rem;
    border-radius: 0.75rem;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-left: 4px solid #f59e0b;
    color: #78350f;
    margin: 1.25rem 0 0;
    font-size: 0.95rem;
    line-height: 1.55;
}
.tv-docs-callout-icon {
    width: 2.1rem;
    height: 2.1rem;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    color: #fff;
    font-size: 0.9rem;
}
.tv-docs-callout strong { color: #78350f; }

/* Shots — reuse the guide thumbnail component */
.tv-docs-shots {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px dashed #e2e8f0;
}
.tv-docs-shots-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    margin-bottom: 0.75rem;
}
.tv-docs-shots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 0.85rem;
}
/* Single screenshot: readable width instead of a tiny thumb */
.tv-docs-shots-grid:has(> :only-child) {
    grid-template-columns: minmax(0, min(100%, 640px));
}

/* ============================================================
   Sidebar
   ============================================================ */
.tv-docs-sidebar {
    position: sticky;
    top: 5.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.tv-docs-side-card {
    background: #fff;
    border: 1px solid var(--tv-border, #e2e8f0);
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}
.tv-docs-side-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    margin-bottom: 0.85rem;
}

.tv-docs-toc {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: docs-toc;
}
.tv-docs-toc li {
    counter-increment: docs-toc;
    margin-bottom: 0.35rem;
}
.tv-docs-toc li:last-child { margin-bottom: 0; }
.tv-docs-toc a {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.55rem 0.65rem;
    border-radius: 0.55rem;
    text-decoration: none;
    color: #475569;
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.35;
    transition: background 0.15s ease, color 0.15s ease;
}
.tv-docs-toc a::before {
    content: counter(docs-toc);
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 0.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 800;
    background: #f1f5f9;
    color: #64748b;
    transition: background 0.15s ease, color 0.15s ease;
}
.tv-docs-toc a:hover {
    background: var(--tv-docs-tint);
    color: var(--tv-docs-strong);
}
.tv-docs-toc a:hover::before,
.tv-docs-toc a.is-active::before {
    background: var(--tv-docs-grad);
    color: #fff;
}
.tv-docs-toc a.is-active {
    background: var(--tv-docs-tint);
    color: var(--tv-docs-strong);
    font-weight: 700;
}

.tv-docs-side-cta {
    background: linear-gradient(145deg, #0f172a 0%, #1e293b 100%);
    border-radius: 1rem;
    padding: 1.35rem;
    color: #fff;
}
.tv-docs-side-cta-eyebrow {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(226, 232, 240, 0.7);
}
.tv-docs-side-cta-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0.35rem 0 0.5rem;
    line-height: 1.3;
    color: #fff;
}
.tv-docs-side-cta-text {
    font-size: 0.85rem;
    color: #e2e8f0;
    line-height: 1.5;
    margin-bottom: 1rem;
}
.public-main .tv-docs-side-cta h3.tv-docs-side-cta-title { color: #fff !important; }
.public-main .tv-docs-side-cta p.tv-docs-side-cta-text   { color: #e2e8f0 !important; }
.tv-docs-side-cta .btn {
    width: 100%;
    background: var(--tv-docs-grad);
    border: none;
    color: #fff;
    font-weight: 600;
}

.tv-docs-footer-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

/* ============================================================
   Reuse guide thumbnail component styles (imported via _GuideThumbnail)
   — no overrides needed; the .tv-guide-thumb-* classes are already
   styled by Guides.css, but we load Docs.css standalone so we must
   ship a minimal fallback for the thumbnail block used inside the
   documentation shots grid.
   ============================================================ */
.tv-docs-shots-grid .tv-guide-thumb-wrap { min-width: 0; }
.tv-docs-shots-grid .tv-guide-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 0.65rem;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    padding: 0;
    cursor: default;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.tv-docs-shots-grid .tv-guide-thumb--ready {
    cursor: zoom-in;
    border: none;
    background: #0f172a;
}
.tv-docs-shots-grid .tv-guide-thumb--ready:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.15);
}
.tv-docs-shots-grid .tv-guide-thumb--ready img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: top center;
    display: block;
    background: #0f172a;
}
.tv-docs-shots-grid .tv-guide-thumb-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.45);
    color: #fff;
    font-size: 1.25rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.tv-docs-shots-grid .tv-guide-thumb--ready:hover .tv-guide-thumb-overlay { opacity: 1; }
.tv-docs-shots-grid .tv-guide-thumb--placeholder {
    border-style: dashed;
    border-color: #cbd5e1;
    background: linear-gradient(145deg, #f8fafc 0%, #f1f5f9 100%);
}
.tv-docs-shots-grid .tv-guide-thumb-placeholder-icon {
    font-size: 1.5rem;
    color: #cbd5e1;
    margin-bottom: 0.35rem;
}
.tv-docs-shots-grid .tv-guide-thumb-soon {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #94a3b8;
    margin-top: 0.25rem;
}
.tv-docs-shots-grid .tv-guide-thumb-caption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 0.35rem 0.5rem;
    font-size: 0.68rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.85), transparent);
    line-height: 1.2;
}
.tv-docs-shots-grid .tv-guide-thumb--placeholder .tv-guide-thumb-caption {
    position: static;
    background: none;
    color: #64748b;
    padding: 0.25rem 0.5rem 0;
    font-size: 0.72rem;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 991.98px) {
    .tv-docs-layout {
        grid-template-columns: 1fr;
    }
    .tv-docs-sidebar {
        position: static;
        order: -1;
    }
    .tv-docs-toc {
        display: flex;
        flex-wrap: wrap;
        gap: 0.35rem;
    }
    .tv-docs-toc li { margin-bottom: 0; flex: 1 1 auto; }
    .tv-docs-toc a { font-size: 0.8rem; padding: 0.45rem 0.55rem; }
}

@media (max-width: 575.98px) {
    .tv-docs-point {
        padding: 1.5rem 1.25rem 1.75rem;
    }
    .tv-docs-point-title { font-size: 1.35rem; }
    .tv-docs-point-glyph { width: 2.35rem; height: 2.35rem; font-size: 1rem; }
    .tv-docs-shots-grid { grid-template-columns: 1fr; }
    .tv-docs-shots-grid:has(> :only-child) {
        grid-template-columns: minmax(0, 1fr);
    }
}
