﻿
/* ==========================================================================
   1. ROOT VARIABLES
   ========================================================================== */

:root {
    --dp-text: #1f2937;
    --dp-text-hover: #111827;
    --dp-text-muted: #6b7280;
    --dp-active: #111827;
    --dp-active-bg: rgba(14,165,233,.08);
    --dp-active-bar: #0ea5e9;
    --dp-focus: rgba(14,165,233,.35);
    --dp-divider: rgba(0,0,0,.06);
    --dp-black: #000;
    --dp-white: #fff;
    --dp-radius: 30px;
    --dp-logo-gap: clamp(3rem, 5vw, 5rem);
    --dp-logo-speed: 28s; /* increase to slow further */
}

body,
html {
    font-family: "Aktiv Grotesk", aktiv-grotesk, sans-serif !important;
}

/* ==========================================================================
   2. GLOBAL LAYOUT / FOUNDATIONS
   ========================================================================== */

html {
    scroll-behavior: smooth;
    overflow-y: scroll;
}

.dp-divider {
    height: 1px;
    width: 100%;
    background: rgba(0,0,0,0.06);
    margin: 2rem 0;
}

.doc-content {
    padding-top: 1rem;
}

.doc-heading {
    position: relative;
}

    .doc-heading .heading-anchor {
        opacity: 0;
        margin-left: 8px;
        text-decoration: none;
        color: #888;
        font-size: 0.8rem;
        transition: opacity 0.15s ease;
    }

    .doc-heading:hover .heading-anchor {
        opacity: 1;
    }

/* ==========================================================================
   3. NAVBAR (Stable, Non‑Shrinking Logo)
   ========================================================================== */

#mainNav {
    transition: box-shadow 0.25s ease, padding 0.25s ease;
    backdrop-filter: blur(6px);
    min-height: 90px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 0 0 rgba(0,0,0,0);
}

/* Brand container */
#mainNav .navbar-brand {
    padding: .375rem 0;
    font-size: 1rem; /* fixed size */
    transition: opacity 0.25s ease;
    opacity: 1; /* no fade down when scrolled */
}

.navbar-brand .brand-label {
    padding-left: 110px; 
}

.brand-label-strong {
    font-size: 1.35rem;
    font-weight: 650;
    letter-spacing: 0.3px;
    color: #000 !important;
    opacity: 0.97;
    cursor: default;
    user-select: none;
    margin-left: 6px;
}


/* Logo — fixed size (no shrink on scroll) */
.dp-logo {
    height: 48px; /* fixed */
    width: auto;
    display: block;
    opacity: 1;
    transform: none;
    transition: none; /* avoid anim jitter */
}

/* Unscrolled */
#mainNav.nav-unscrolled {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
    box-shadow: none;
}

/* Scrolled — keep only padding + shadow. Do NOT change brand or logo sizes */
#mainNav.nav-scrolled {
    padding-top: 0.35rem !important;
    padding-bottom: 0.35rem !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

    /* Prevent any brand size/opacity change on scroll */
    #mainNav.nav-unscrolled .navbar-brand,
    #mainNav.nav-scrolled .navbar-brand {
        font-size: 1rem;
        opacity: 1;
    }

    /* Explicitly prevent logo changes on scroll */
    #mainNav.nav-scrolled .dp-logo {
        height: 48px;
        opacity: 1;
        transform: none;
    }

/* Nav links */
#mainNav .nav-link {
    color: #444 !important;
    font-weight: 500;
    padding: 0.65rem 1rem;
    margin: 0 0.25rem;
    transition: color 0.2s ease, background 0.2s ease;
    line-height: 1.25;
}

    #mainNav .nav-link:hover,
    #mainNav .nav-link:focus {
        color: #000 !important;
        background: rgba(0,0,0,0.08);
        border-radius: 4px;
    }

/* CTA */
#mainNav .navbar-nav:last-child .nav-link {
    font-weight: 600;
    color: #000 !important;
    padding-left: 0.9rem;
    padding-right: 0.9rem;
    border-radius: 4px;
}

    #mainNav .navbar-nav:last-child .nav-link:hover {
        background: rgba(0,0,0,0.06);
    }

/* Divider before CTA */
.nav-sep {
    display: inline-block;
    width: 1px;
    height: 20px;
    background: rgba(0,0,0,0.12);
    vertical-align: middle;
}

/* ==========================================================================
   4. LEFT SIDEBAR — TREE NAVIGATION
   ========================================================================== */

.docs-sidebar .sidebar-scroll {
    max-height: calc(100vh - 90px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: .25rem;
}

/* Section heading toggle */
.sidebar-group-toggle {
    display: flex;
    align-items: center;
    gap: .5rem;
    text-decoration: none;
    padding: .25rem 0;
    color: var(--dp-text-muted);
    cursor: pointer;
}

    .sidebar-group-toggle:hover,
    .sidebar-group-toggle:focus {
        color: var(--dp-text);
    }

    /* Chevron */
    .sidebar-group-toggle .chev {
        width: 10px;
        height: 10px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(-45deg);
        transition: transform .2s ease;
        margin-left: .25rem;
    }

    .sidebar-group-toggle[aria-expanded="true"] .chev {
        transform: rotate(45deg);
    }

/* Bottom divider between groups */
.sidebar-section + .sidebar-section {
    margin-top: .5rem;
    padding-top: .5rem;
    border-top: 1px solid var(--dp-divider);
}

/* Subnavigation (collapsible content) */
.nav-sub {
    margin-left: 1.25rem;
    padding-left: .25rem;
    border-left: 1px dashed rgba(0,0,0,0.12);
}

/* Sidebar links */
.docs-sidebar .nav-link {
    display: block;
    color: var(--dp-text) !important;
    text-decoration: none;
    padding: .35rem .75rem .35rem 1rem;
    border-radius: .375rem;
    position: relative;
    font-weight: 400;
}

    .docs-sidebar .nav-link:hover {
        background: rgba(0,0,0,.03);
        color: var(--dp-text-hover) !important;
    }

    /* Active */
    .docs-sidebar .nav-link.active {
        color: var(--dp-active) !important;
        background: rgba(165, 26, 69, 0.08);
        font-weight: 600;
    }

        .docs-sidebar .nav-link.active::before {
            content: "";
            position: absolute;
            left: 0.375rem;
            top: 50%;
            transform: translateY(-50%);
            height: 70%;
            width: 3px;
            background: rgb(165, 26, 69);
            border-radius: 2px;
        }

/* ==========================================================================
   5. RIGHT TOC
   ========================================================================== */

.toc-nav {
    font-size: .9rem;
}

    .toc-nav ul {
        padding-left: 0;
        margin: 0;
        list-style: none;
    }

    .toc-nav li {
        margin: 2px 0;
    }

.toc-link {
    display: block;
    color: var(--dp-text);
    text-decoration: none;
    padding: .35rem .75rem .35rem 1rem;
    border-radius: .375rem;
    position: relative;
    font-weight: 400;
}

    .toc-link:hover {
        background: rgba(0,0,0,.03);
        color: var(--dp-text-hover);
    }

    .toc-link.is-active {
        color: var(--dp-active) !important;
        background: rgba(165, 26, 69, 0.08);
        font-weight: 600;
    }

        .toc-link.is-active::before {
            content: "";
            position: absolute;
            left: 0.375rem;
            top: 50%;
            transform: translateY(-50%);
            height: 70%;
            width: 3px;
            background: rgb(165, 26, 69);
            border-radius: 2px;
        }

/* TOC indent */
.toc-depth-3 .toc-link {
    padding-left: 1.25rem;
}


/* Sticky TOC panel */
#toc {
    /* Allow the panel to size naturally without scrollbars */
    overflow: visible;
    /* Remove artificial height constraint */
    max-height: none;
    /* Ensure long headings do not wrap strangely */
    white-space: normal;
}


/* Scroll margin for headings */
.doc-content h2,
.doc-content h3 {
    scroll-margin-top: 96px;
}

/* ==========================================================================
   6. HERO
   ========================================================================== */

.hero {
    width: 100%;
    min-height: 50vh;
    background: url("../img/hero.png") center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: #fff;
    text-align: left;
}

.hero-text {
    padding: 5vh 5vw;
    max-width: 70ch;
}

.hero h1 {
    font-size: clamp(2rem, 3vw, 4rem);
    border-radius: 4px;
    line-height: 1.2;
    margin-bottom: 0.7em;
}

.hero h2 {
    font-size: clamp(1rem, 1.5vw, 4rem);
    border-radius: 4px;
    line-height: 1.5;
    margin-bottom: 0.7em;
}

.hero-button {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 24px;
    background-color: #fff;
    color: #000;
    border: 2px solid transparent;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

    .hero-button:hover {
        background-color: transparent;
        color: #fff;
        border: 2px solid #fff;
    }

/* ==========================================================================
   7. CARDS
   ========================================================================== */

/* Grid layout */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 380px));
    gap: 35px;
    margin-bottom: 35px;
    justify-content: center; /* center the grid */
    text-align: center; /* text centered */
}

/* Responsive layouts */
@media (max-width: 768px) {
    .card-container {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) and (max-width: 1200px) {
    .card-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Card box */
.card {
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    border-radius: 0; /* keep square */
    transition: transform .2s ease, box-shadow .2s ease;
}


    /* Card image */
    .card img {
        width: 40%;
        height: 150px;
        margin: 0 auto 10px;
        padding-top: 20px;
        object-fit: contain;
    }

/* Card content */
.card-content {
    padding: 15px 20px 10px;
    text-align: center;
    flex-grow: 1;
}

    .card-content h3 {
        margin-bottom: 12px;
        font-size: 20px;
        font-weight: 600;
    }

    .card-content h4 {
        margin-bottom: 14px;
        font-size: 15px;
        font-weight: 600;
        color: #000;
    }

    .card-content p {
        font-size: 14px;
        color: #555;
        line-height: 1.5;
        margin-bottom: 18px;
    }

/* Footer clean + no shading */
.card-footer {
    padding: 0;
    background: none !important;
    border: none !important;
    text-align: center;
}

    /* Anchor wraps button but shouldn't stretch visually */
    .card-footer a {
        display: block;
        width: 100%;
        text-decoration: none;
    }

    /* Full-width, square button */
    .card-footer button {
        width: 100% !important; /* full width */
        padding: 12px;
        background: #000;
        color: #fff;
        border: none;
        border-radius: 0 !important; /* square */
        font-size: 16px;
        cursor: pointer;
        transition: background .3s ease;
    }

        .card-footer button:hover {
            background: #333;
        }

/* Icon */
.contact-icon {
    width: 28px;
    height: 28px;
    vertical-align: text-bottom;
    opacity: .95;
}


contact-email a,
.contact-email {
    font-size: 1.1rem;
    font-weight: 600;
    color: #000 !important;
    text-decoration: underline;
    text-underline-offset: 4px;
}

    .contact-email a:hover,
    .contact-email:hover {
        color: #A51A45 !important;
        text-decoration-thickness: 2px;
    }


/* Card hover lift */
.contact-card {
    transition: transform .2s ease, box-shadow .2s ease;
}

    .contact-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(0,0,0,0.10);
    }


/* ==========================================================================
   8. FEATURE GRID & TILES
   ========================================================================== */
.dp-feature-card {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 16px;
    transition: all .2s ease;
}

    .dp-feature-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    }

.dp-feature-icon {
    width: 64px;
    height: 64px;
    opacity: 0.9;
}

section h2 {
    font-size: 2rem;
    color: #111827;
}

section p.lead {
    color: #4b5563;
}

.dp-tile {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 12px;
    transition: all .2s ease;
}

    .dp-tile:hover {
        transform: translateY(-4px);
        box-shadow: 0 6px 24px rgba(0,0,0,0.06);
    }

.dp-step-number {
    display: inline-block;
    width: 78px;
    height: 78px;
    border-radius: 50%;
    color: #fff;
    line-height: 78px;
    font-weight: 700;
    font-size: 1.25rem;
}

.dp-step-brand1 {
    background: #85225E;
}

.dp-step-brand2 {
    background: #A51A45;
}

.dp-step-brand3 {
    background: #C15739;
}

.dp-step-brand4 {
    background: #D8A824;
}

/* ==========================================================================
   9. CONTENT WRAPPER — layout + typography
   ========================================================================== */



.content-wrapper {
    /* LAYOUT — match live portal */
    max-width: 1440px;
    margin: 0 auto;
    padding-left: 10px;
    padding-right: 10px;
    font-family: "Aktiv Grotesk", aktiv-grotesk, sans-serif;
    color: var(--dp-text);
    line-height: 1.55;
}



@media (min-width: 1600px) {
    .content-wrapper {
        max-width: 1440px;
    }
}


    /* ---------------------------------------------
   Paragraphs (corporate scale)
---------------------------------------------- */
    .content-wrapper p {
        font-size: 1.125rem; /* Larger, matches corporate */
        font-weight: 400;
        margin-bottom: 1.4rem;
    }

        .content-wrapper p.lead {
            font-size: 1.28rem; /* Matches DP promo pages */
            font-weight: 400;
            line-height: 1.55;
        }

    /* ---------------------------------------------
   Headings – Corporate proportions
---------------------------------------------- */
    .content-wrapper h1 {
        font-size: clamp(2.4rem, 2.2rem + 1vw, 3.2rem);
        font-weight: 700;
        margin-top: 0.35em; /* Much tighter */
        margin-bottom: 0.5em;
        letter-spacing: -0.5px;
    }

    .content-wrapper h2 {
        font-size: clamp(1.8rem, 1.6rem + 0.8vw, 2.3rem);
        font-weight: 700;
        margin-top: 0.35em;
        margin-bottom: 0.5em;
        letter-spacing: -0.3px;
    }

    .content-wrapper h3 {
        font-size: 1.35rem;
        font-weight: 600;
        margin-top: 0.25em;
        margin-bottom: 0.5em;
    }

    .content-wrapper h4 {
        font-size: 1.15rem;
        font-weight: 600;
        margin-top: 0.25em;
        margin-bottom: 0.4em;
    }

    /* ---------------------------------------------
   Links (corporate colouring)
---------------------------------------------- */
    .content-wrapper a {
        color: #A51A45;
        text-decoration: underline;
        text-underline-offset: 3px;
    }

        .content-wrapper a:hover {
            text-decoration-thickness: 2px;
            color: #8F173B;
        }


/* ==========================================================================
   11. ANIMATION (Fade‑In)
   ========================================================================== */

.fade-in-section {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

    .fade-in-section.visible {
        opacity: 1;
        transform: translateY(0);
    }

/* ==========================================================================
   12. UTILITIES
   ========================================================================== */

.position-sticky {
    max-height: calc(100vh - 90px);
    overflow-y: auto;
}

.sticky-offset-90 {
    top: 90px;
}

/* ============================================================
   13. CODE WIDGET — framed code blocks + Copy button
   ============================================================ */

.code-block {
    position: relative;
    background: #f8fafc;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin: 1rem 0;
    font-family: Consolas, Menlo, monospace;
    font-size: .9rem;
    overflow-x: auto;
}

    .code-block pre {
        margin: 0;
        white-space: pre;
    }

    .code-block .code-lang {
        position: absolute;
        top: 6px;
        right: 12px;
        font-size: .75rem;
        background: rgba(0,0,0,0.08);
        padding: 2px 6px;
        border-radius: 4px;
        color: var(--dp-text);
    }

.code-copy-btn {
    position: absolute;
    top: 6px;
    right: 60px;
    background: #e5e7eb;
    color: #374151;
    border: none;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: .75rem;
    cursor: pointer;
    transition: background .2s ease;
}

    .code-copy-btn:hover {
        background: #d1d5db;
    }

/* ============================================
   14. DOCUMENT HEADER (non-TOC H2)
   ============================================ */

.doc-intro-block {
    margin-bottom: 2.5rem;
}

.doc-intro-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #111827;
}

.doc-intro-desc {
    font-size: 1.15rem;
    color: #4b5563;
    max-width: 65ch;
    margin-top: .5rem;
}

.doc-intro-subhead {
    margin-top: 1.75rem;
    font-size: 1.35rem;
    font-weight: 600;
    color: #111827;
    /* mimic H2 but not an actual H2 */
    padding-bottom: .3rem;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}



/* ============================================
   15. RELATED GUIDES (fixed height only)
   ============================================ */

.related-guides {
    display: block;
}

    /* Make Bootstrap columns flex so cards stretch evenly */
    .related-guides .col,
    .related-guides .col-md-6 {
        display: flex; /* allows inner .related-card to stretch to equal height */
    }

/* Base card (unchanged visuals) */
.related-card {
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: #fff;
    transition: all 0.15s ease;
    text-decoration: none;
    color: inherit !important;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 160px; /* you can adjust to taste */
    padding: 1.25rem;
}

    .related-card:hover {
        border-color: var(--dp-primary);
        box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
        background: rgba(165, 26, 69, 0.08); /* match TOC active bg */
        color: var(--dp-active);
        text-decoration: none;
    }

    /* Text spacing (unchanged) */
    .related-card h4 {
        margin-bottom: .5rem;
    }

/* Description (just natural flow, top-aligned) */
.related-card__desc {
    margin-top: .25rem;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* ------------------------------------------------------------
   16. DYNAMIC PLANNER CORPORATE BUTTON THEME
   Clean Bootstrap 5 override
   Scope: .content-wrapper only (hero-button unaffected)
   ------------------------------------------------------------ */

/* Base button styling for all .btn types */
.content-wrapper a.btn,
.content-wrapper button.btn,
.content-wrapper .btn {
    /* Bootstrap variable override path */
    --bs-btn-color: var(--dp-white);
    --bs-btn-bg: var(--dp-black);
    --bs-btn-border-color: var(--dp-black);
    --bs-btn-hover-color: var(--dp-black);
    --bs-btn-hover-bg: var(--dp-white);
    --bs-btn-hover-border-color: var(--dp-black);
    /* Explicit properties */
    color: var(--dp-white);
    background-color: var(--dp-black);
    border: 2px solid var(--dp-black);
    border-radius: var(--dp-radius);
    padding: 0.65rem 1.15rem;
    letter-spacing: 0.2px;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

    /* Hover state */
    .content-wrapper a.btn:hover,
    .content-wrapper button.btn:hover,
    .content-wrapper .btn:hover {
        color: var(--dp-black);
        background-color: var(--dp-white);
        border-color: var(--dp-black);
    }

/* Outline variants */
.content-wrapper a.btn-outline-primary,
.content-wrapper button.btn-outline-primary,
.content-wrapper a.btn-outline-dark,
.content-wrapper button.btn-outline-dark {
    --bs-btn-color: var(--dp-black);
    --bs-btn-border-color: var(--dp-black);
    --bs-btn-hover-color: var(--dp-white);
    --bs-btn-hover-bg: var(--dp-black);
    --bs-btn-hover-border-color: var(--dp-black);
    color: var(--dp-black);
    background: transparent;
    border: 2px solid var(--dp-black);
    border-radius: var(--dp-radius);
}

    .content-wrapper a.btn-outline-primary:hover,
    .content-wrapper button.btn-outline-primary:hover,
    .content-wrapper a.btn-outline-dark:hover,
    .content-wrapper button.btn-outline-dark:hover {
        color: var(--dp-white);
        background-color: var(--dp-black);
        border-color: var(--dp-black);
    }

/* Large buttons */
.content-wrapper .btn-lg {
    padding: 0.9rem 1.4rem;
    font-weight: 600;
    border-radius: var(--dp-radius);
}

/* Focus ring */
.content-wrapper .btn:focus,
.content-wrapper .btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(0,0,0,.15);
}


/* Remove underline from all corporate buttons (anchor-based or wrapped) */
.content-wrapper a.btn,
.content-wrapper a[class*="btn-"],
.content-wrapper a:has(button),
.content-wrapper .btn {
    text-decoration: none !important;
}


.btn-dp-primary {
    border-color: var(--dp-black) !important;
}


/* ==========================================================
   17. NAVBAR CTA — Match DP corporate button typography exactly
   ========================================================== */

#mainNav .btn-nav-cta {
    font-family: aktiv-grotesk, sans-serif !important;
    font-weight: 500 !important;
    font-style: normal;
    font-size: 1rem;
    background-color: #000;
    color: #fff;
    border: 2px solid #000;
    border-radius: 30px;
    padding: 0.55rem 1.1rem;
    line-height: 1.2;
    letter-spacing: 0.2px;
    transition: all .2s ease;
    margin-left: 1rem;
}

    #mainNav .btn-nav-cta:hover {
        background-color: #fff;
        color: #000;
        border-color: #000;
        text-decoration: none;
    }

/* ==========================================================
   18. DYNAMIC PLANNER — TOP NAV BAR (Corporate Match)
   ========================================================== */

/* Base font applied to ALL nav links */
#mainNav .navbar-nav .nav-link {
    font-family: aktiv-grotesk, sans-serif !important;
    font-weight: 500 !important;
    font-style: normal;
    font-size: 1rem;
    color: #000 !important;
    padding: 0.75rem 1rem;
    background: transparent !important;
    transition: color .2s ease;
}

    /* Hover state — corporate behaviour */
    #mainNav .navbar-nav .nav-link:hover,
    #mainNav .navbar-nav .nav-link:focus {
        color: #a51a46 !important;
        background-color: transparent !important;
    }

    /* Active (optional) */
    #mainNav .navbar-nav .nav-link.active {
        color: #a51a46 !important;
        background-color: transparent !important;
    }

/* Spacing between nav items — match DP header */
#mainNav .navbar-nav .nav-item {
    margin-left: 0.25rem;
    margin-right: 0.25rem;
}

@media (min-width: 992px) {
    #mainNav .navbar-nav .nav-item {
        margin-left: 0.75rem;
        margin-right: 0.75rem;
    }
}

/* ==========================================================
   19. HARD LOCK (Defend against JS inline styles)
   ========================================================== */

/* If navbar-shrink.js applies inline style or extra classes, keep logo size fixed */
#mainNav .dp-logo {
    height: 48px !important;
    transform: none !important;
    opacity: 1 !important;
}

/* ========================================= */
/* 20. Capability sections – corporate layout    */
/* ========================================= */

.dp-capability {
    max-width: 900px;
    margin: 0 auto;
}

.dp-capability-illustration {
    max-width: 320px; /* ✅ smaller, illustrative */
    width: 100%;
    height: auto;
}

.dp-capability-content {
    max-width: 560px; /* ✅ readable line length */
    margin: 0 auto;
}

    .dp-capability-content ul li {
        margin-bottom: 0.35rem;
    }

/* Mobile rhythm */
@media (max-width: 576px) {
    .dp-divider {
        margin: 2rem 0;
    }
}



.dp-cap-card {
    padding: 1.75rem 1.25rem;
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: .75rem;
    background: #fff;
}

    .dp-cap-card img,
    .dp-cap-card svg {
        width: 72px;
        height: auto;
        opacity: .95;
    }

    .dp-cap-card .btn-sm {
        padding: .45rem .85rem;
        font-weight: 500;
    }


/* ========================================= */
/* 21. Footer                               */
/* ========================================= */
/* Compact black footer strip */
.dp-footer {
    background: #000;
    color: #fff;
    padding: 0.75rem 0 1rem 0; /* reduced height */
}

    /* Reduce line spacing inside */
    .dp-footer .dp-footer-line {
        line-height: 1.2;
        margin-bottom: 0.35rem;
    }

    /* Footer links */
    .dp-footer a {
        color: #fff !important;
        text-decoration: none;
        margin-right: 0.75rem;
        font-size: 0.85rem; /* slightly smaller for compact layout */
    }

        .dp-footer a:last-child {
            margin-right: 0;
        }

        .dp-footer a:hover {
            text-decoration: underline;
            text-underline-offset: 3px;
        }

    /* Reduce text size of copyright line */
    .dp-footer small,
    .dp-footer {
        font-size: 0.85rem;
    }



/* =========================================
   22. Logo Strip – seamless across cycles
   ========================================= */

.dp-logo-strip {
    position: relative;
    overflow: hidden;
    padding-block: 1.5rem;
}

/* Animated wrapper: contains two identical sets side-by-side */
.dp-logo-track {
    display: flex;
    width: max-content;
    will-change: transform;
    animation: dp-marquee var(--dp-logo-speed) linear infinite;
    transform: translateZ(0); /* avoid sub-pixel jitter */
    /* IMPORTANT: no gap or padding-left here */
}

/* One set of logos; duplicated twice in markup */
.dp-logo-set {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: var(--dp-logo-gap); /* inter-item spacing inside a set */
    margin: 0;
    padding: 0;
}

    /* Add the same gap between sets by giving the last item a right margin.
   This keeps the total "set width" consistent and makes -50% exact. */
    .dp-logo-set .dp-logo-item:last-child {
        margin-right: var(--dp-logo-gap);
    }

.dp-logo-item {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    opacity: .9;
    transition: opacity .2s ease-in-out, transform .2s ease-in-out;
}

    .dp-logo-item:hover {
        opacity: 1;
        transform: translateY(-2px);
    }

    .dp-logo-item img {
        height: 80px; /* adjust to taste (80–110px) */
        width: auto;
        filter: grayscale(.1);
        opacity: .95;
    }

/* Move by exactly half the wrapper width (one full set) */
@keyframes dp-marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* Pause on hover/focus for accessibility */
.dp-logo-strip:hover .dp-logo-track,
.dp-logo-strip:focus-within .dp-logo-track {
    animation-play-state: paused;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .dp-logo-track {
        animation: none;
    }
}

/* =========================================
   23. Callout
   ========================================= */

.dp-callout {
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    border-left: 4px solid transparent;
    border-radius: 4px;
    background: rgba(0,0,0,0.03);
}

.dp-callout__title {
    font-weight: 600;
    margin-bottom: .25rem;
}

/* Variants */
.dp-callout--info {
    border-left-color: #0ea5e9;
    background: rgba(14,165,233,.08);
}

.dp-callout--tip {
    border-left-color: #22c55e;
    background: rgba(34,197,94,.08);
}

.dp-callout--important {
    border-left-color: #a51a45;
    background: rgba(165,26,69,.08);
}

.dp-callout--warning {
    border-left-color: #d97706;
    background: rgba(217,119,6,.1);
}


/* ==========================================================================
   24. GLOSSARY (A–Z)
   ========================================================================== */

/* Anchor targets shouldn't sit under sticky navbar */
.dp-glossary__section {
    scroll-margin-top: 96px; /* align with your existing heading scroll-margin */
}

.dp-glossary__lead {
    max-width: 75ch;
}

/* A–Z navigation */
.dp-az {
    margin: 1.25rem 0 2rem;
}

.dp-az__list {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.dp-az__item {
    margin: 0;
    padding: 0;
}

.dp-az__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    padding: .35rem .6rem;
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 999px;
    background: var(--dp-white);
    color: var(--dp-text);
    text-decoration: none;
    font-weight: 600;
    line-height: 1;
    transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}

    .dp-az__link:hover {
        background: rgba(0,0,0,0.03);
        color: var(--dp-text-hover);
        border-color: rgba(0,0,0,0.18);
    }

    .dp-az__link:focus,
    .dp-az__link:focus-visible {
        outline: none;
        box-shadow: 0 0 0 0.25rem var(--dp-focus);
    }

    /* Disabled letters */
    .dp-az__link[aria-disabled="true"] {
        opacity: .45;
        cursor: not-allowed;
        pointer-events: none;
    }

/* Glossary list */
.dp-glossary__list {
    margin: 0;
    padding: 0;
}

    .dp-glossary__list dt {
        font-weight: 700;
        margin-top: 0.9rem;
        padding-top: 0.9rem;
        border-top: 1px solid var(--dp-divider);
        color: var(--dp-text);
    }

        .dp-glossary__list dt:first-child {
            margin-top: 0;
            padding-top: 0;
            border-top: none;
        }

    .dp-glossary__list dd {
        margin: .25rem 0 0;
        color: var(--dp-text-muted);
    }

/* Back to top link */
.dp-glossary__backtop {
    margin-top: 1rem;
}

    .dp-glossary__backtop a {
        display: inline-flex;
        align-items: center;
        gap: .35rem;
        text-decoration: none;
        font-weight: 600;
    }

        .dp-glossary__backtop a:hover {
            text-decoration: underline;
            text-underline-offset: 3px;
        }

/* Screen-reader only (safe utility) */
.dp-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}
