/* ============================================================
   sv-resources.css
   Securevision — Resources Stylesheet
   Version: 1.2 — May 2026

   SCOPE: All /resources/ pages.
   Load on every resource page alongside sv-shared.css.
   Do NOT load on insights articles, portfolio pages, solutions
   pages, systems pages, or any other page type.

   Load order in <head>:
     <link rel="stylesheet" href="/sv-shared.css">
     <link rel="stylesheet" href="/sv-resources.css">
     <script src="/site-config.js"></script>

   WHAT THIS FILE OWNS:
   - Legacy guide components (Section A) — extracted from
     sv-shared.css Section 33. Support existing 7 resource guides
     until retrofitted to the new .rg- standard.
   - New resource guide layout system (Sections B–D) — the
     .rg- scoped classes for all new guides going forward.
   - Checklist UI components (Section E) — moved from
     sv-shared.css Section 34. All .cl- classes.
   - Resources hub components (Section F) — extracted from
     /resources/index.html inline <style> block. All hub-specific
     classes: .quick-card, .guide-card-link, .guide-meta,
     .filter-btn, .resource-link, .video-thumbnail, .trade-grid,
     .faq-hub-grid, etc.
   - Related guides grid (Section G) — .guides-related-grid,
     a namespaced alias of .insights-related-grid for use on
     /resources/guides/ pages. Driven by nav-footer.js renderer.

   WHAT THIS FILE DOES NOT TOUCH:
   - sv-shared.css global classes (nav, footer, buttons,
     heroes, CTAs, grids, .card, .container, etc.)
   - sv-insights.css classes
   - Any portfolio, systems, or solutions page classes

   STRIP FROM sv-shared.css WHEN THIS FILE IS IN PLACE:
   Remove lines 7627–8183 (Section 33: Long-form content
   layout). The .layout-with-sidebar duplicate at lines
   354–449 should also be removed — the canonical definition
   lives in sv-shared Section 6 (lines 7920–7987).
   The blog-img-wrap usage in _template-systems-standard.html
   (line 308) must be updated before stripping — that page
   should use a different image class.

   VERSION HISTORY:
   v1.0  May 2026   Created. Extracted from sv-shared.css
                    Section 33. New Section B (.rg-) added.
   v1.1  May 2026   Section E added: Checklist UI components
                    moved from sv-shared.css Section 34.
                    Section F added: Resources hub components
                    extracted from /resources/index.html inline
                    <style> block (~410 lines). Scope updated
                    from guides-only to all /resources/ pages.
                    New utility classes: .guide-card-img replaces
                    inline style on guide card images; .brand-label
                    replaces inline style on product library brand
                    labels; .faq-hub-grid replaces .faq-grid to
                    avoid collision with sv-shared Section 28
                    canonical FAQ component; .support-card-wa
                    replaces inline border style using --accent-green.
   v1.2  May 2026   Section G added: Related Guides Grid.
                    .guides-related-grid — namespaced 3-column
                    grid for guide page related content. Driven
                    by Related Guides auto-renderer in nav-footer.js
                    reading SECUREVISION.guides[] registry in
                    site-config.js.
   ============================================================ */


/* ============================================================
   SECTION A: LEGACY GUIDE COMPONENTS
   Extracted from sv-shared.css Section 33.
   Supports existing 7 resource guides as-is.
   These classes will be retired as each guide is retrofitted
   to the new .rg- standard. Do not use on new guides.
   ============================================================ */

/* ── A1. Typography — guide-page scoped ─────────────────────
   Requires <body class="guide-page"> on the page.
   Overrides global body text size for guide reading comfort.  */

.guide-page main p {
    font-size: 16px !important;
    line-height: 1.8;
    margin-bottom: 24px;
    color: var(--text-gray);
}

.guide-page main li {
    font-size: 16px !important;
    line-height: 1.6;
    margin-bottom: 12px;
    color: var(--text-gray);
}

.guide-page .lead {
    font-size: 18px !important;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 48px;
}


/* ── A2. Subsection headings ─────────────────────────────────
   Left accent border driven by --page-accent, set per guide. */

.subsection {
    margin-top: 64px;
}

.subsection h3 {
    font-size: 24px !important;
    margin-bottom: 32px;
    color: var(--text-dark);
    border-left: 5px solid var(--page-accent) !important;
    padding-left: 24px;
}


/* ── A3. Layout — 65/35 text/image proportions ───────────────
   .blog-row: non-wrapping grid, text left, image right.
   .blog-row-wrap: float variant, text wraps around image.    */

.blog-row {
    display: grid;
    grid-template-columns: 13fr 7fr;
    gap: 40px;
    margin-bottom: 40px;
    align-items: flex-start;
}

.blog-row-wrap {
    display: block;
    margin-bottom: 40px;
}

.blog-row-wrap .blog-img-wrap {
    float: right;
    width: 35%;
    margin-left: 40px;
    margin-bottom: 24px;
}

.blog-row-wrap::after {
    content: "";
    display: table;
    clear: both;
}


/* ── A4. Image wrappers ──────────────────────────────────────
   Base wrapper: 16:9, full width of its container.
   .blog-img-square modifier: forces 1:1 aspect ratio.
   NOTE: blog-img-wrap is also used in _template-systems-
   standard.html — do not remove from this file until that
   template is updated to use a different class.              */

.blog-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 24px;
}

.blog-img-wrap img,
.component-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-img-wrap.blog-img-square {
    aspect-ratio: 1 / 1;
}

.blog-img-wrap img.blog-img-square,
.component-card img.blog-img-square {
    aspect-ratio: 1 / 1;
}

.img-contain img {
    object-fit: contain !important;
    padding: 24px;
}

.blog-img-caption {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 12px;
    font-style: italic;
    text-align: center;
    display: block;
    line-height: 1.4;
}


/* ── A5. Component and case study cards ──────────────────────
   Numbered component cards for "system anatomy" sections.
   Case study cards for real-world deployment examples.       */

.component-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.component-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.component-number {
    width: 40px;
    height: 40px;
    background: var(--page-accent);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.case-study-card {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 32px;
    height: 100%;
    border: 1px solid var(--border-light);
}

.case-study-card strong {
    color: var(--page-accent);
    display: block;
    margin-bottom: 12px;
    font-size: 15px;
}

.badge-phase {
    background: var(--page-accent);
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 12px;
}


/* ── A6. Recommendation box ──────────────────────────────────
   Blue left-border panel for Securevision recommendations.  */

.recommendation-box {
    background: #f0f7ff;
    border-left: 6px solid var(--page-accent);
    padding: 32px;
    border-radius: 4px;
    margin: 40px 0;
}


/* ── A7. Data tables ─────────────────────────────────────────
   Responsive wrapper + styled comparison table.             */

.blog-table-wrap {
    margin: 40px 0;
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid var(--border-light);
}

.blog-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: var(--white);
}

.blog-table th {
    background: var(--bg-light);
    padding: 16px;
    text-align: left;
    border-bottom: 2px solid var(--border-light);
    color: var(--text-dark);
    font-weight: 700;
}

.blog-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-gray);
    vertical-align: top;
}

.blog-table tr:nth-child(even) {
    background: #fafbfc;
}


/* ── A8. Stat grid ───────────────────────────────────────────
   Used in hero or intro sections for key statistics.        */

.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 56px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 32px;
    border-radius: 12px;
    text-align: center;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: #5b9ee1;
    display: block;
    margin-bottom: 8px;
    font-family: 'Montserrat', sans-serif;
}

.stat-label {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: block;
}

.stat-desc {
    font-size: 13px;
    opacity: 0.8;
    line-height: 1.4;
}


/* ── A9. Author bio strip ────────────────────────────────────
   Compact author byline used below the guide hero.          */

.author-bio-strip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 0 32px 0;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 40px;
}

.author-bio-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.author-bio-name {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.3;
}

.author-bio-credentials {
    display: block;
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.4;
}


/* ── A10. Trust grid ─────────────────────────────────────────
   4-column trust badge row used on some guide pages.        */

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.trust-icon {
    font-size: 24px;
    flex-shrink: 0;
    opacity: 0.9;
}

.trust-text {
    display: flex;
    flex-direction: column;
}

.trust-text strong {
    display: block;
    font-size: 13px;
    color: var(--text-dark);
    line-height: 1.3;
}

.trust-text span {
    display: block;
    font-size: 11px;
    color: var(--text-light);
    line-height: 1.4;
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}


/* ── A11. Legacy responsive ──────────────────────────────────
   Covers the old blog-row, blog-img-wrap, stat-grid classes
   at tablet and mobile breakpoints.                         */

@media (max-width: 991px) {
    .blog-row {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .blog-row-wrap .blog-img-wrap {
        float: none;
        width: 100%;
        margin-left: 0;
        margin-bottom: 24px;
    }

    .blog-img-wrap {
        aspect-ratio: 16 / 9;
        height: auto;
        min-height: 220px;
    }

    .blog-img-wrap.blog-img-square {
        aspect-ratio: 1 / 1;
        width: 100%;
        max-width: 400px;
        margin: 0 auto 24px;
    }

    .stat-grid {
        grid-template-columns: 1fr;
    }

    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 24px;
    }
}

@media (max-width: 480px) {
    .author-bio-strip {
        gap: 10px;
    }

    .author-bio-photo {
        width: 36px;
        height: 36px;
    }

    .trust-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ── END SECTION A ───────────────────────────────────────────── */


/* ============================================================
   SECTION B: NEW RESOURCE GUIDE LAYOUT SYSTEM
   The .rg- scoped class system for all new resource guides.
   Use these classes on new guides. Retrofit existing guides
   one at a time as each is standardised.

   All classes are prefixed .rg- and scoped inside
   .rg-layout. Nothing here can affect any other page type.
   ============================================================ */

/* ── B1. Page layout ─────────────────────────────────────────
   Desktop: 280px sidebar LEFT + 1fr content RIGHT.
   Left sidebar signals "reference document — navigate it"
   and differentiates resource guides from insights articles
   which use sidebar right.                                   */

.rg-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    grid-template-areas: "sidebar content";
    gap: 64px;
    align-items: start;
    padding: 64px 0 120px;
    /* max-width and horizontal centering handled by parent .container */
}


/* ── B2. Sidebar ─────────────────────────────────────────────
   Sticky: stays in view as reader scrolls content.
   max-height + overflow-y handles guides with 15+ entries.  */

.rg-sidebar {
    grid-area: sidebar;
    position: sticky;
    top: 100px;
    align-self: start;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
}

.rg-toc {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 28px 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}


/* ── B3. TOC title and list ──────────────────────────────────
   Desktop: static label, no toggle.
   Mobile: accordion trigger — see B10 responsive block.     */

.rg-toc-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--page-accent);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--bg-light);
    cursor: default;
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rg-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rg-toc-list li {
    margin-bottom: 4px;
}

.rg-toc-list a {
    display: block;
    text-decoration: none;
    color: var(--text-light);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    padding: 5px 8px;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s, padding-left 0.15s;
}

.rg-toc-list a:hover {
    color: var(--page-accent);
    background: var(--bg-light);
    padding-left: 12px;
}

.rg-toc-list a.active {
    color: var(--page-accent);
    background: var(--bg-light);
    font-weight: 700;
    padding-left: 12px;
}

/* Founder card inside rg-toc — full sizing to match insights sidebar */
.rg-toc .founder-card {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
}

.rg-toc .founder-card .fc-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.rg-toc .founder-card .fc-head img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.rg-toc .founder-card .fc-head strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-dark);
}

.rg-toc .founder-card .fc-head span {
    display: block;
    font-size: 0.75rem;
    color: var(--text-light);
    white-space: nowrap;
}

.rg-toc .founder-card .fc-head .sv-years-experience {
    display: inline;
}

.rg-toc .founder-card p {
    font-size: 0.85rem !important;
    color: var(--text-gray, var(--text-light));
    line-height: 1.6;
    margin-bottom: 16px;
}

.rg-toc .founder-card .fc-wa-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-green);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.875rem;
}


/* ── B4. Content area ────────────────────────────────────────
   min-width: 0 prevents grid blowout on long content.
   Each section gets vertical padding + bottom border divider.
   Grey sections bleed edge-to-edge within the column.       */

.rg-content {
    grid-area: content;
    min-width: 0;
}

.rg-content section {
    padding: 72px 0;
    border-bottom: 1px solid var(--border-light);
}

.rg-content section:last-of-type {
    border-bottom: none;
}

.rg-content section.rg-section--grey {
    background: var(--bg-light);
    margin-left: -32px;
    margin-right: -32px;
    padding-left: 32px;
    padding-right: 32px;
    border-radius: 12px;
    border-bottom: 1px solid var(--border-light);
}

/* Clearfix — ensures floated images never bleed into
   the following section                                     */
.rg-content section::after {
    content: '';
    display: table;
    clear: both;
}

/* Eyebrow labels inside guide content — use accent colour  */
.rg-content .eyebrow {
    color: var(--page-accent);
}

/* Body text — matches insights .prose p typography exactly */
.rg-content p {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 24px;
}

.rg-content p:last-child {
    margin-bottom: 0;
}

.rg-content ul,
.rg-content ol {
    font-family: 'Inter', sans-serif;
    margin-bottom: 24px;
    padding-left: 22px;
    color: var(--text-gray);
}

.rg-content li {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 12px;
    color: var(--text-gray);
}

.rg-content strong {
    color: var(--text-dark);
    font-weight: 600;
}

/* Subsection h3 — left accent border, overrides any global
   h3 rule. !important needed to beat sv-shared specificity. */
.rg-content .subsection h3 {
    border-left: 4px solid var(--page-accent) !important;
    padding-left: 20px !important;
}


/* ── B5. Hero author bio strip ───────────────────────────────
   Sits at the bottom of .hero-high-impact on guide pages.
   Distinct from .hero-byline (insights articles).          */

.rg-hero-author {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.rg-hero-author-photo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.25);
    flex-shrink: 0;
}

.rg-hero-author-name {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}

.rg-hero-author-credentials {
    display: block;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
}


/* ── B6. Images ──────────────────────────────────────────────
   Three variants, all based on .rg-img-wrap:

   Default          — full-width, 16:9
   --float          — float right, 4:3, text wraps left
   --card           — 16:9, used inside .rg-component-card

   All images: .webp, loading="lazy"
   All stored in /images/resources/guides/[topic]/          */

.rg-img-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
    margin-bottom: 32px;
    background: var(--bg-light);
}

.rg-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Float-right: 4:3, text wraps around.
   Always use inside <figure class="rg-figure--float"> so the
   caption stays attached below the image, not in the text flow. */
.rg-img-wrap--float {
    width: 100%;
    aspect-ratio: 4 / 3;
    margin: 0;
}

/* Figure wrapper — this is what floats, keeping image + caption together */
.rg-figure--float {
    float: right;
    width: 38%;
    margin: 4px 0 28px 36px;
}

/* Component card image: 16:9, no extra margin or shadow */
.rg-img-wrap--card {
    width: 100%;
    aspect-ratio: 16 / 9;
    margin-bottom: 0;
    box-shadow: none;
    flex-shrink: 0;
}

/* Caption — below any image variant */
.rg-img-caption,
.rg-content p.rg-img-caption {
    display: block;
    font-size: 12px !important;
    font-style: italic;
    font-family: 'Inter', sans-serif;
    color: #64748b;
    text-align: center;
    line-height: 1.5;
    margin-top: 8px;
    margin-bottom: 0;
    padding: 0 4px;
}

/* Caption inside a figure float — left-aligned to match image width */
.rg-figure--float .rg-img-caption {
    text-align: left;
    padding: 0;
}


/* ── B7. Component cards ─────────────────────────────────────
   Numbered card: circle + heading on top,
   65/35 text-image grid below.
   The h3 inside .rg-component-header cancels the subsection
   border-left rule so it does not inherit that styling.     */

.rg-component-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 36px;
    margin-bottom: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.rg-component-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.rg-component-number {
    width: 40px;
    height: 40px;
    background: var(--page-accent);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 17px;
    flex-shrink: 0;
}

.rg-component-header h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    border-left: none !important;
    padding-left: 0 !important;
}

.rg-component-body {
    display: block;
}

.rg-component-body .rg-img-wrap--card {
    float: right;
    width: 38%;
    margin: 4px 0 16px 32px;
}

.rg-component-text {
    overflow: visible;
}

.rg-component-body::after {
    content: '';
    display: table;
    clear: both;
}

.rg-component-text p:last-child {
    margin-bottom: 0;
}


/* ── B8. Callout, recommendation, and verdict boxes ──────────
   Three distinct visual weights for annotations:

   .rg-callout        — light grey bg, thin accent border.
                        Mid-section annotations: KEY POINT,
                        SITE EXPERIENCE, DESIGN RULE, etc.

   .rg-recommendation — blue bg, thick accent border.
                        Engineering recommendations and
                        planning guidance.

   .rg-verdict        — dark navy bg, white text.
                        Securevision's definitive position.
                        Used once per guide, near the end.   */

.rg-callout {
    background: var(--bg-light);
    border-left: 4px solid var(--page-accent);
    border-radius: 0 8px 8px 0;
    padding: 24px 28px;
    margin: 32px 0;
}

.rg-callout-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--page-accent);
    margin-bottom: 10px;
    display: block;
}

.rg-callout p:last-child {
    margin-bottom: 0;
}

.rg-recommendation {
    background: #f0f7ff;
    border-left: 5px solid var(--page-accent);
    border-radius: 0 8px 8px 0;
    padding: 28px 32px;
    margin: 40px 0;
}

.rg-recommendation-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--page-accent);
    margin-bottom: 10px;
    display: block;
}

.rg-recommendation p:last-child {
    margin-bottom: 0;
}

.rg-verdict {
    background: #0E1A2B;
    border-radius: 8px;
    padding: 32px 36px;
    margin: 48px 0;
}

.rg-verdict-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 12px;
    display: block;
}

.rg-verdict p {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 16px !important;
    line-height: 1.8;
    margin-bottom: 0 !important;
}


/* ── B9. Data tables ─────────────────────────────────────────
   Dark navy header row — upgrade from legacy light grey.
   First column is bold for feature/label rows.
   min-width on table prevents column collapse on mobile.    */

.rg-table-wrap {
    width: 100%;
    overflow-x: auto;
    border-radius: 10px;
    border: 1px solid var(--border-light);
    margin: 40px 0;
    -webkit-overflow-scrolling: touch;
}

.rg-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: var(--white);
    min-width: 480px;
}

.rg-table thead th {
    background: #0E1A2B;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 14px 16px;
    text-align: left;
    border-bottom: none;
}

.rg-table thead th:first-child {
    border-radius: 10px 0 0 0;
}

.rg-table thead th:last-child {
    border-radius: 0 10px 0 0;
}

.rg-table tbody td {
    padding: 14px 16px;
    color: var(--text-gray);
    border-bottom: 1px solid var(--border-light);
    vertical-align: top;
    line-height: 1.6;
}

.rg-table tbody tr:last-child td {
    border-bottom: none;
}

.rg-table tbody tr:nth-child(even) td {
    background: #fafbfc;
}

.rg-table tbody td:first-child {
    font-weight: 600;
    color: var(--text-dark);
}


/* ── B10. Responsive ─────────────────────────────────────────
   992px: sidebar becomes sticky accordion bar above content.
          TOC title becomes tappable toggle.
          Founder card hidden — saves space in slim bar.

   640px: floated images unfloat and go full width.
          Component cards stack vertically.
          Boxes tighten padding.

   JS requirement: the accordion toggle adds/removes the
   class .rg-toc-open on both .rg-toc-title and .rg-toc-list.
   The JS block lives in each guide page before </body>.     */

@media (max-width: 992px) {

    /* Single column — sidebar stacks above content */
    .rg-layout {
        grid-template-columns: 1fr;
        grid-template-areas:
            "sidebar"
            "content";
        gap: 0;
        padding-top: 0;
    }

    /* Sidebar: full-width sticky bar under the nav */
    .rg-sidebar {
        position: sticky;
        top: 68px;
        z-index: 800;
        max-height: none;
        overflow: visible;
        background: var(--white);
        border-bottom: 2px solid var(--border-light);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
    }

    /* TOC panel: strip card styling, go full-width */
    .rg-toc {
        background: var(--white);
        border: none;
        border-radius: 0;
        padding: 0 24px;
        box-shadow: none;
    }

    /* TOC title: becomes accordion trigger */
    .rg-toc-title {
        font-size: 13px;
        padding: 14px 0;
        margin-bottom: 0;
        border-bottom: none;
        cursor: pointer;
        color: var(--page-accent);
        letter-spacing: 1px;
    }

    /* Chevron: appears on mobile only */
    .rg-toc-title::after {
        content: '▼';
        font-size: 10px;
        opacity: 0.6;
        transition: transform 0.25s ease;
        flex-shrink: 0;
        margin-left: 8px;
    }

    /* Chevron rotates when open */
    .rg-toc-title.rg-toc-open::after {
        transform: rotate(180deg);
    }

    /* TOC list: hidden until toggled */
    .rg-toc-list {
        display: none;
        padding: 12px 0 16px;
        border-top: 1px solid var(--border-light);
        max-height: 55vh;
        overflow-y: auto;
    }

    /* TOC list: visible when open */
    .rg-toc-list.rg-toc-open {
        display: block;
    }

    .rg-toc-list li {
        margin-bottom: 2px;
    }

    .rg-toc-list a {
        padding: 7px 8px;
        font-size: 14px;
    }

    /* Founder card: hidden in slim mobile bar */
    .rg-toc .founder-card {
        display: none;
    }

    /* Content: restore padding after zero-gap layout */
    .rg-content {
        padding-top: 48px;
    }

    .rg-content section {
        padding: 48px 0;
    }

    /* Grey sections: tighter bleed on mobile */
    .rg-content section.rg-section--grey {
        margin-left: -24px;
        margin-right: -24px;
        padding-left: 24px;
        padding-right: 24px;
        border-radius: 0;
    }
}

@media (max-width: 640px) {

    /* Figure float: unfloat, go full-width */
    .rg-figure--float {
        float: none;
        width: 100%;
        margin: 0 0 24px 0;
    }

    /* Float image inside figure: switch to 16:9 on mobile */
    .rg-figure--float .rg-img-wrap--float {
        aspect-ratio: 16 / 9;
    }

    /* Caption: centred on mobile */
    .rg-figure--float .rg-img-caption {
        text-align: center;
    }

    /* Component card body: unfloat image on mobile, stack vertically */
    .rg-component-body .rg-img-wrap--card {
        float: none;
        width: 100%;
        margin: 0 0 20px 0;
    }

    /* Tighten card and box padding */
    .rg-component-card {
        padding: 24px 20px;
    }

    .rg-callout,
    .rg-recommendation {
        padding: 20px;
    }

    .rg-verdict {
        padding: 24px 20px;
    }
}

/* Button margin-top helper — for buttons inside rg-recommendation boxes */
.rg-btn-mt {
    margin-top: 20px;
    display: inline-block;
}

/* ── END SECTION B ───────────────────────────────────────────── */


/* ============================================================
   SECTION C: HERO CLASSES FOR RESOURCE GUIDE PAGES

   ONE shared hero class for all resource guides: .hero-guide
   The directional gradient runs left (dark) to right (light)
   because all hero text is left-aligned. The dark left edge
   ensures legibility regardless of the background image.

   Background image is set per page via the one permitted
   inline style on the <header> element:
     style="background-image: url('/images/resources/guides/[topic]/hero-[slug].webp');"

   The dark navy var(--hero-bg) fallback shows while the
   image loads or if no image has been set yet.

   LEGACY HERO CLASSES — retire on retrofit:
   The individual per-guide hero classes below (hero-alarm,
   hero-cctv, hero-access, hero-vehicle, hero-intercom,
   hero-telephony) are kept here for backward compatibility
   with the 6 existing guides. Remove each one as its guide
   is retrofitted to the .hero-guide standard.
   ============================================================ */

/* ── C1. Shared hero — all resource guides ───────────────────  */

.hero-guide {
    background:
        linear-gradient(
            to right,
            rgba(0, 0, 0, 0.78) 0%,
            rgba(0, 0, 0, 0.45) 50%,
            rgba(0, 0, 0, 0.10) 100%
        ),
        var(--hero-bg, #0E1A2B);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Tier 4 — guide article pages only (body.guide-page).
   Overrides hero-high-impact padding and title sizing to fit 35vh.
   Excludes resources/index.html which has no .guide-page body class. */
.guide-page .hero-guide {
    min-height: 35vh;
    padding: 56px 0 48px;
}

.guide-page .hero-guide .hero-title-main {
    font-size: clamp(24px, 3.5vw, 42px) !important;
    margin: 0 0 16px 0 !important;
}

.guide-page .hero-guide .hero-subtitle-main {
    font-size: clamp(14px, 1.1vw, 17px) !important;
    margin: 0 0 28px 0 !important;
    line-height: 1.6 !important;
}

.guide-page .hero-guide .eyebrow-light {
    margin-bottom: 16px;
}

.guide-page .hero-guide .rg-hero-author {
    margin-top: 24px;
    padding-top: 20px;
}


/* ── C2. Legacy per-guide hero classes — retire on retrofit ──  */

.hero-alarm {
    background:
        linear-gradient(to right, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.45) 50%, rgba(0,0,0,0.10) 100%),
        linear-gradient(135deg, #1a0a0a 0%, #2d1515 100%);
    background-size: cover;
    background-position: center;
}

.hero-cctv {
    background:
        linear-gradient(to right, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.45) 50%, rgba(0,0,0,0.10) 100%),
        linear-gradient(135deg, #0a0e1a 0%, #0e1a2b 100%);
    background-size: cover;
    background-position: center;
}

.hero-access {
    background:
        linear-gradient(to right, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.45) 50%, rgba(0,0,0,0.10) 100%),
        linear-gradient(135deg, #0a1a1a 0%, #0d2626 100%);
    background-size: cover;
    background-position: center;
}

.hero-vehicle {
    background:
        linear-gradient(to right, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.45) 50%, rgba(0,0,0,0.10) 100%),
        linear-gradient(135deg, #1a0f00 0%, #2d1f00 100%);
    background-size: cover;
    background-position: center;
}

.hero-intercom {
    background:
        linear-gradient(to right, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.45) 50%, rgba(0,0,0,0.10) 100%),
        linear-gradient(135deg, #0a1a14 0%, #0d2620 100%);
    background-size: cover;
    background-position: center;
}

.hero-telephony {
    background:
        linear-gradient(to right, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.45) 50%, rgba(0,0,0,0.10) 100%),
        linear-gradient(135deg, #0f0a1a 0%, #1a0d2b 100%);
    background-size: cover;
    background-position: center;
}

/* ── END SECTION C ───────────────────────────────────────────── */



/* ============================================================
   SECTION D: GUIDE HUB CARD SYSTEM

   Owns the guides index page grid and all card sub-components.
   The guides index page loads resources.css alongside sv-shared.css.

   Architecture:
     .guides-grid                  — CSS grid container
     .guide-card-link              — <a> wrapper, stretches to full cell
     .guide-card                   — card shell, flex column
     .guide-card-img-wrap          — 16:9 image container
     .guide-card-body              — flex column, grows to fill card
     .guide-badge                  — absolute label over image
     .guide-meta                   — read-time + arrow row
     .guide-card hr                — divider above related link
     .guide-related-link           — bottom of card link
     .guide-card--placeholder      — dimmed coming-soon state
     .hub-links-grid / hub-link-item — Section 3 resource hub links
   ============================================================ */

/* ── D1. Grid ─────────────────────────────────────────────── */

.guides-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    width: 100%;
    margin-top: 48px;
}

@media (max-width: 1024px) {
    .guides-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .guides-grid {
        grid-template-columns: 1fr;
    }
}


/* ── D2. Link wrapper — fills the grid cell completely ───── */

.guide-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;           /* makes the child guide-card fill height */
    flex-direction: column;
    min-height: 0;           /* prevents overflow in grid context */
}


/* ── D3. Card shell ───────────────────────────────────────── */

.guide-card {
    position: relative;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex: 1;                 /* fills the guide-card-link flex container */
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.guide-card:hover {
    border-color: var(--primary-blue);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 86, 179, 0.08);
}


/* ── D4. Card image ───────────────────────────────────────── */

.guide-card-img-wrap {
    width: 100%;
    position: relative;
    padding-top: 56.25%;     /* 16:9 ratio — reliable across all flex/grid contexts */
    overflow: hidden;
    background: var(--bg-light);
    flex-shrink: 0;
}

.guide-card-img-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.guide-card:hover .guide-card-img-wrap img {
    transform: scale(1.05);
}


/* ── D5. Card body — grows to fill remaining height ────────── */

.guide-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.guide-card h3 {
    font-size: 16px;
    line-height: 1.4;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.guide-card p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-gray);
    margin-bottom: 0;
    flex-grow: 1;            /* pushes meta row to bottom of body */
}

.guide-card hr {
    margin: 16px 0;
    border: 0;
    border-top: 1px solid var(--border-light);
    flex-shrink: 0;
}


/* ── D6. Badge — absolute over image ─────────────────────── */

.guide-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 1;
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 4px;
    background: rgba(0, 86, 179, 0.92);
    color: #fff;
}


/* ── D7. Meta row — read time + arrow ────────────────────── */

.guide-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border-light);
    flex-shrink: 0;
}

.guide-read-time {
    font-size: 12px;
    color: var(--text-light);
}

.guide-read-link {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-blue);
}


/* ── D8. Related system link — bottom of card ────────────── */

.guide-related-link {
    font-size: 12px;
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s;
    flex-shrink: 0;
}

.guide-related-link:hover {
    color: var(--primary-blue);
}


/* ── D9. Placeholder state ────────────────────────────────── */

.guide-card--placeholder {
    opacity: 0.4;
    pointer-events: none;
    cursor: default;
}


/* ── D10. Hub links grid (Section 3) ─────────────────────── */

.hub-links-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hub-link-item {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    padding: 12px 16px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    transition: border-color 0.2s, color 0.2s;
}

.hub-link-item:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

/* ── END SECTION D ───────────────────────────────────────────── */

/* ============================================================
   sv-resources.css — Section E: Checklist UI Components
   Moved from sv-shared.css Section 34 — May 2026.
   For use on: /resources/checklists/*.html pages.
   Interactive diagnostic checklist with section scoring.
   ============================================================ */

/* ── E1. Page layout ── */
.cl-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 56px;
    align-items: flex-start;
    padding: 56px 0;
}

/* ── E2. Progress navigation sidebar ── */
.cl-progress-nav {
    position: sticky;
    top: 100px;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.cl-progress-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
}

.cl-progress-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cl-progress-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: color 0.2s;
    text-decoration: none;
    color: var(--text-light);
}

.cl-progress-item:last-child {
    border-bottom: none;
}

.cl-progress-item:hover {
    color: var(--page-accent, var(--primary-blue));
}

.cl-progress-item.active {
    color: var(--page-accent, var(--primary-blue));
    font-weight: 600;
}

.cl-progress-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--border-light);
    background: var(--white);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-light);
    transition: all 0.2s;
}

.cl-progress-item.complete .cl-progress-dot {
    background: var(--page-accent, var(--primary-blue));
    border-color: var(--page-accent, var(--primary-blue));
    color: var(--white);
}

.cl-progress-item.active .cl-progress-dot {
    border-color: var(--page-accent, var(--primary-blue));
    color: var(--page-accent, var(--primary-blue));
}

.cl-progress-label {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    line-height: 1.4;
    flex: 1;
}

.cl-progress-count {
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 700;
    color: var(--text-light);
    white-space: nowrap;
}

/* ── E3. Section structure ── */
.cl-main {
    min-width: 0;
}

.cl-section {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    margin-bottom: 32px;
    overflow: hidden;
    scroll-margin-top: 100px;
}

.cl-section-header {
    padding: 32px 40px 28px;
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-light);
}

.cl-section-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--page-accent, var(--primary-blue));
    color: var(--white);
    border-radius: 50%;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
}

.cl-section-eyebrow {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--page-accent, var(--primary-blue));
    margin-bottom: 6px;
    display: block;
}

.cl-section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 8px;
}

.cl-section-desc {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
    line-height: 1.6;
}

.cl-questions {
    padding: 8px 0;
}

/* ── E4. Question rows ── */
.cl-question {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 40px;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: background 0.15s;
}

.cl-question:last-child {
    border-bottom: none;
}

.cl-question:hover {
    background: var(--bg-light);
}

.cl-question.checked {
    background: rgba(0, 86, 179, 0.03);
}

.cl-question.checked .cl-check {
    background: var(--page-accent, var(--primary-blue));
    border-color: var(--page-accent, var(--primary-blue));
}

.cl-question.checked .cl-check::after {
    opacity: 1;
}

.cl-check {
    width: 22px;
    height: 22px;
    border: 2px solid var(--border-light);
    border-radius: 5px;
    flex-shrink: 0;
    margin-top: 2px;
    position: relative;
    transition: all 0.15s;
    background: var(--white);
}

.cl-check::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: 2px solid var(--white);
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.15s;
}

.cl-question-body {
    flex: 1;
}

.cl-question-text {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.5;
    margin-bottom: 4px;
}

.cl-question-note {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.5;
    margin: 0;
}

/* ── E5. Score bar & bands ── */
.cl-score-bar {
    padding: 28px 40px;
    background: var(--bg-light);
    border-top: 2px solid var(--border-light);
}

.cl-score-bar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.cl-score-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-light);
}

.cl-score-count {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
}

.cl-score-track {
    height: 8px;
    background: var(--border-light);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
}

.cl-score-fill {
    height: 100%;
    background: var(--page-accent, var(--primary-blue));
    border-radius: 4px;
    transition: width 0.4s ease;
    width: 0%;
}

.cl-score-bands {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.cl-band {
    padding: 16px;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    background: var(--white);
    opacity: 0.5;
    transition: opacity 0.3s;
}

.cl-band.active {
    opacity: 1;
    border-color: currentColor;
}

.cl-band-low  { color: #c05621; }
.cl-band-low.active  { background: #fff7f0; }
.cl-band-mid  { color: #b7791f; }
.cl-band-mid.active  { background: #fffdf0; }
.cl-band-high { color: #276749; }
.cl-band-high.active { background: #f0fff4; }

.cl-band-range {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.cl-band-title {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.cl-band-desc {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: var(--text-gray);
    line-height: 1.5;
    margin: 0;
}

/* ── E6. Final score & CTA strip ── */
.cl-final-score {
    background: var(--white);
    border: 2px solid var(--page-accent, var(--primary-blue));
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    margin-top: 40px;
}

.cl-final-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 64px;
    font-weight: 800;
    color: var(--page-accent, var(--primary-blue));
    line-height: 1;
    margin-bottom: 8px;
}

.cl-final-total {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 20px;
}

.cl-final-band-label {
    display: inline-block;
    padding: 6px 20px;
    border-radius: 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.cl-final-band-label.low  { background: #fff7f0; color: #c05621; }
.cl-final-band-label.mid  { background: #fffdf0; color: #b7791f; }
.cl-final-band-label.high { background: #f0fff4; color: #276749; }

.cl-final-desc {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto 32px;
}

.cl-cta-strip {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    padding-top: 28px;
    border-top: 1px solid var(--border-light);
    margin-top: 28px;
}

/* ── E7. Responsive ── */
@media (max-width: 992px) {
    .cl-layout {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 32px 0;
    }

    .cl-progress-nav {
        position: static;
        display: none;
    }

    .cl-section-header,
    .cl-question,
    .cl-score-bar {
        padding-left: 24px;
        padding-right: 24px;
    }

    .cl-score-bands {
        grid-template-columns: 1fr;
    }

    .cl-final-score {
        padding: 28px 24px;
    }

    .cl-final-number {
        font-size: 48px;
    }
}

/* ── END Section E (Checklist UI) ────────────────────────────── */


/* ============================================================
   sv-resources.css — Section F: Resources Hub Components
   Extracted from /resources/index.html inline <style> block.
   For use on: /resources/index.html only.
   Load alongside sv-shared.css; no other page needs this section.
   ============================================================ */

/* ── F1. Hero trust badge ── */
.hero-trust-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 24px;
    color: #fff;
    letter-spacing: 0.5px;
}

/* ── F2. Quick access grid (hero) ── */
.quick-access-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-top: 48px;
}

.quick-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px 16px;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    transition: var(--transition);
}

.quick-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
}

.quick-card .icon {
    font-size: 24px;
    margin-bottom: 12px;
    display: block;
}

.quick-card strong {
    display: block;
    font-size: 14px;
    color: #fff;
    margin-bottom: 4px;
}

.quick-card span {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
}

/* ── F3. Guide card meta strip ── */
.guide-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 11px;
    font-weight: 600;
}

.meta-author {
    color: var(--primary-blue);
}

.meta-update {
    color: #2e7d32;
}

.guide-footer-meta {
    margin: 20px 0;
    padding-top: 15px;
    border-top: 1px solid var(--border-light);
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 12px;
    color: var(--text-light);
}

/* ── F4. Clickable guide card wrapper ── */
.guide-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.guide-card-link > .card {
    display: flex;
    flex-direction: column;
    flex: 1;
    height: 100%;
}

.guide-card-link > .card > p {
    flex-grow: 1;
}

.guide-card-link > .card > .guide-footer-meta {
    margin-top: auto;
}

.guide-card-link:hover .card h3 {
    color: var(--primary-blue);
}

/* ── F5. Guide card image ── */
.guide-card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 24px;
    display: block;
}

/* ── F6. Filter row (product library & videos) ── */
.filter-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.filter-btn {
    background: #fff;
    border: 1px solid var(--border-light);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-blue);
    color: #fff;
    border-color: var(--primary-blue);
}

/* ── F7. Brand label (product library cards) ── */
.brand-label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 12px;
    letter-spacing: 1px;
}

/* ── F8. Resource download links grid ── */
.resource-links {
    list-style: none;
    margin-top: 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.resource-link {
    font-size: 12px;
    text-decoration: none;
    color: var(--text-gray);
    padding: 6px 10px;
    background: var(--bg-light);
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: 0.2s;
}

.resource-link:hover {
    background: #e2e8f0;
    color: var(--primary-blue);
}

/* ── F9. Video thumbnails ── */
.video-thumbnail {
    position: relative;
    background: #f1f5f9;
    aspect-ratio: 16/9;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-overlay {
    width: 48px;
    height: 48px;
    background: var(--primary-blue);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    z-index: 2;
}

.vid-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
}

.vid-source {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--white);
    color: var(--text-dark);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.vid-title {
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.vid-meta {
    font-size: 12px;
    color: var(--text-light);
    margin: 0;
}

/* Video thumbnail variant — dark bg (e.g. NotebookLM audio guides) */
.video-thumbnail--dark {
    background: #0f172a;
}

/* Play overlay variant — audio (light blue) */
.play-overlay--audio {
    background: #5b9ee1;
}

/* ── F9b. Support card icon ── */
.card-icon {
    font-size: 32px;
    margin-bottom: 20px;
    display: block;
}

/* ── F10. Gating notice box ── */
.notice-box {
    background: #fff9e6;
    border: 1px solid #ffeeba;
    padding: 24px;
    border-radius: 8px;
    margin-bottom: 48px;
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.notice-icon {
    font-size: 24px;
}

.notice-text {
    font-size: 14px;
    color: #856404;
    line-height: 1.6;
}

/* ── F11. Trade / professional download grid ── */
.trade-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.trade-category {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 32px;
}

.trade-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.trade-head .icon {
    font-size: 24px;
}

.trade-head h3 {
    font-size: 18px;
    margin: 0;
}

.download-item {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--bg-light);
}

.download-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.download-name {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.download-meta {
    display: block;
    font-size: 11px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.download-btn {
    font-size: 12px;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.download-btn:hover {
    text-decoration: underline;
}

/* ── F12. FAQ grid and cards ── */
.faq-search-wrap {
    max-width: 600px;
    margin: 0 auto 40px;
    display: flex;
    gap: 12px;
}

.faq-search {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: 0.2s;
}

.faq-search:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}

.faq-hub-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.faq-card {
    background: #fff;
    padding: 32px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
}

.faq-card h3 {
    font-size: 17px;
    margin-bottom: 12px;
    color: var(--text-dark);
    line-height: 1.4;
}

.faq-card p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.7;
    margin: 0;
}

.faq-category {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-blue);
    margin-bottom: 8px;
}

/* ── F13. Support card inline accent border ── */
.support-card-wa {
    border: 1px solid var(--accent-green) !important;
}

/* ── F14. Section anchor scroll offset ── */
section[id] {
    scroll-margin-top: 80px;
}

/* ── F15. Responsive ── */
@media (max-width: 992px) {
    .quick-access-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .trade-grid,
    .faq-hub-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .quick-access-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .trade-grid,
    .faq-hub-grid {
        grid-template-columns: 1fr;
    }
}

/* ── END Section F (Resources Hub) ───────────────────────────── */


/* ============================================================
   SECTION G: RELATED GUIDES GRID
   Used at the bottom of every /resources/guides/[guide].html
   page. Alias of .insights-related-grid (sv-insights.css) —
   same 3-column layout, namespaced for the guides context.
   Hard cap of 3 columns. Cards rendered by the Related Guides
   auto-renderer in nav-footer.js; styled via .nav-card in
   sv-shared.css.

   Do NOT use .insights-related-grid on guide pages — keep
   the namespace clean so guide and insight styles can diverge
   independently if needed in future.
   ============================================================ */

.guides-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

@media (max-width: 992px) {
  .guides-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .guides-related-grid {
    grid-template-columns: 1fr;
  }
}

/* ── END SECTION G (Related Guides Grid) ─────────────────────── */

/* ── END resources.css ───────────────────────────────────────── */

/* ── Extracted from calculators.html ── */
/* ── Matches guides-index card pattern exactly ── */
    .calc-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 28px;
      margin-top: 40px;
    }
    @media (max-width: 700px) { .calc-grid { grid-template-columns: 1fr; } }

    .calc-card {
      display: flex;
      flex-direction: column;
      text-decoration: none;
      color: inherit;
      border-radius: 12px;
      overflow: hidden;
      border: 1.5px solid var(--border-light);
      background: #fff;
      box-shadow: 0 2px 8px rgba(0,0,0,0.06);
      transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .calc-card:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 24px rgba(0,0,0,0.06);
      border-color: var(--primary-blue);
    }

    /* Image with colour overlay — no actual photo needed, uses CSS gradient */
    .calc-card-img {
      width: 100%;
      aspect-ratio: 16/9;
      object-fit: cover;
      display: block;
    }
    .calc-card-img-placeholder {
      width: 100%;
      aspect-ratio: 16/9;
      display: flex;
      align-items: center;
      justify-content: center;
      background: var(--card-bg, #0056b3);
      position: relative;
      overflow: hidden;
    }
    .calc-card-img-placeholder::before {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, transparent 60%);
    }
    .calc-card-img-icon {
      font-size: 56px;
      position: relative;
      z-index: 1;
      opacity: 0.9;
    }

    .calc-card-body {
      padding: 22px 24px 24px;
      display: flex;
      flex-direction: column;
      flex-grow: 1;
    }
    .calc-card-meta {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 12px;
      flex-wrap: wrap;
      gap: 6px;
    }
    .calc-card-type {
      font-family: 'Montserrat', sans-serif;
      font-size: 10px; font-weight: 700;
      letter-spacing: 2px; text-transform: uppercase;
      color: var(--primary-blue);
    }
    .calc-card-tag {
      font-family: 'Inter', sans-serif;
      font-size: 11px; color: var(--text-light);
    }
    .calc-card-title {
      font-family: 'Montserrat', sans-serif;
      font-size: 17px; font-weight: 700;
      color: var(--text-dark);
      margin: 0 0 10px; line-height: 1.4;
    }
    .calc-card-desc {
      font-family: 'Inter', sans-serif;
      font-size: 13px; color: var(--text-gray);
      line-height: 1.7; margin: 0 0 16px; flex-grow: 1;
    }
    .calc-outputs {
      background: var(--bg-light);
      border: 1px solid var(--border-light);
      border-radius: 8px;
      padding: 14px 16px;
      margin-bottom: 16px;
    }
    .calc-outputs-label {
      font-family: 'Montserrat', sans-serif;
      font-size: 10px; font-weight: 700;
      letter-spacing: 1.5px; text-transform: uppercase;
      color: var(--text-light); margin-bottom: 8px; display: block;
    }
    .calc-output-item {
      font-family: 'Inter', sans-serif;
      font-size: 12px; color: var(--text-gray);
      padding: 3px 0; display: flex; align-items: center; gap: 6px;
    }
    .calc-card-footer {
      display: flex; align-items: center;
      justify-content: space-between;
      padding-top: 14px;
      border-top: 1px solid var(--border-light);
      margin-top: auto;
    }
    .calc-card-stat {
      font-family: 'Inter', sans-serif;
      font-size: 12px; color: var(--text-light);
    }
    .calc-card-cta {
      font-family: 'Montserrat', sans-serif;
      font-size: 12px; font-weight: 700;
      color: var(--primary-blue);
      text-transform: uppercase; letter-spacing: 0.5px;
    }

    /* ── Disclaimer box ── */
    .calc-disclaimer {
      background: #fff;
      border: 1.5px solid var(--border-light);
      border-left: 4px solid #dd6b20;
      border-radius: 10px;
      padding: 20px 24px;
      margin-top: 40px;
      display: flex;
      gap: 14px;
      align-items: flex-start;
    }
    .calc-disclaimer-icon { font-size: 22px; flex-shrink: 0; }
    .calc-disclaimer p {
      font-family: 'Inter', sans-serif;
      font-size: 13px; color: var(--text-gray);
      line-height: 1.7; margin: 0;
    }
    .calc-disclaimer strong { color: var(--text-dark); }

/* ── Extracted from checklists.html ── */
.cl-card {
      display: flex;
      flex-direction: column;
      padding: 32px;
      text-decoration: none;
      color: inherit;
      border-top: 4px solid var(--primary-blue);
      transition: transform 0.2s, box-shadow 0.2s;
    }
    .cl-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 8px 28px rgba(0,0,0,0.12);
    }
    .cl-icon { font-size: 32px; margin-bottom: 16px; display: block; }
    .cl-type {
      font-family: 'Montserrat', sans-serif;
      font-size: 10px; font-weight: 700;
      letter-spacing: 2px; text-transform: uppercase;
      color: var(--primary-blue); margin-bottom: 8px; display: block;
    }
    .cl-title {
      font-family: 'Montserrat', sans-serif;
      font-size: 18px; font-weight: 700;
      color: var(--text-dark); margin: 0 0 10px; line-height: 1.3;
    }
    .cl-desc {
      font-family: 'Inter', sans-serif;
      font-size: 13px; color: var(--text-gray);
      line-height: 1.7; flex-grow: 1; margin: 0 0 20px;
    }
    .cl-footer {
      display: flex; align-items: center;
      justify-content: space-between;
      padding-top: 16px; border-top: 1px solid var(--border-light);
      margin-top: auto;
    }
    .cl-meta { font-family: 'Inter', sans-serif; font-size: 12px; color: var(--text-light); }
    .cl-cta {
      font-family: 'Montserrat', sans-serif; font-size: 12px;
      font-weight: 700; color: var(--primary-blue);
      text-transform: uppercase; letter-spacing: 0.5px;
    }
    .cl-how-step { display: flex; gap: 16px; align-items: flex-start; }
    .cl-step-num {
      width: 36px; height: 36px; border-radius: 50%;
      background: var(--primary-blue); color: #fff;
      font-family: 'Montserrat', sans-serif; font-size: 14px; font-weight: 700;
      display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    }
    .cl-how-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 40px; margin-top: 40px; }
    @media(max-width:768px){ .cl-how-grid{ grid-template-columns:1fr; gap:24px; } }
    @media(max-width:900px){ .grid-3{ grid-template-columns:repeat(2,1fr); } }
    @media(max-width:540px){ .grid-3{ grid-template-columns:1fr; } }

/* ── Extracted from faq.html ── */
/* ── FAQ accordion ── */
    .faq-group {
      margin-bottom: 56px;
    }
    .faq-group:last-child { margin-bottom: 0; }

    .faq-group-header {
      display: flex;
      align-items: center;
      gap: 14px;
      padding-bottom: 16px;
      border-bottom: 2px solid var(--border-light);
      margin-bottom: 8px;
    }
    .faq-group-icon { font-size: 22px; }
    .faq-group-title {
      font-family: 'Montserrat', sans-serif;
      font-size: 18px;
      font-weight: 700;
      color: var(--text-dark);
      margin: 0;
    }
    .faq-group-count {
      font-family: 'Inter', sans-serif;
      font-size: 12px;
      color: var(--text-light);
      margin-left: auto;
    }

    /* Accordion item */
    .faq-item {
      border-bottom: 1px solid var(--border-light);
    }
    .faq-item:first-of-type { border-top: 1px solid var(--border-light); }

    .faq-question {
      width: 100%;
      background: none;
      border: none;
      padding: 20px 0;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
      cursor: pointer;
      text-align: left;
    }
    .faq-question-text {
      font-family: 'Montserrat', sans-serif;
      font-size: 15px;
      font-weight: 600;
      color: var(--text-dark);
      line-height: 1.4;
    }
    .faq-question:hover .faq-question-text {
      color: var(--primary-blue);
    }
    .faq-chevron {
      flex-shrink: 0;
      width: 24px;
      height: 24px;
      border-radius: 50%;
      background: var(--bg-light);
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background 0.2s, transform 0.25s;
    }
    .faq-item.open .faq-chevron {
      background: var(--primary-blue);
      transform: rotate(180deg);
    }
    .faq-chevron svg { transition: stroke 0.2s; }
    .faq-item.open .faq-chevron svg { stroke: #fff; }

    .faq-answer {
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.3s ease;
    }
    .faq-item.open .faq-answer {
      max-height: 600px;
    }
    .faq-answer-inner {
      padding: 0 0 24px 0;
    }
    .faq-answer-inner p {
      font-family: 'Inter', sans-serif;
      font-size: 14px;
      color: var(--text-gray);
      line-height: 1.8;
      margin: 0 0 12px;
    }
    .faq-answer-inner p:last-child { margin-bottom: 0; }
    .faq-answer-inner a {
      color: var(--primary-blue);
      font-weight: 600;
    }

    /* ── Jump nav ── */
    .faq-jump-nav {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      margin-top: 32px;
    }
    .faq-jump-btn {
      font-family: 'Montserrat', sans-serif;
      font-size: 12px;
      font-weight: 700;
      letter-spacing: 0.5px;
      border: 1.5px solid var(--border-light);
      background: #fff;
      color: var(--text-light);
      border-radius: 20px;
      padding: 7px 18px;
      cursor: pointer;
      text-decoration: none;
      transition: 0.15s;
    }
    .faq-jump-btn:hover {
      background: var(--primary-blue);
      border-color: var(--primary-blue);
      color: #fff;
    }

    /* ── Still have questions box ── */
    .faq-contact-box {
      display: flex;
      align-items: center;
      gap: 20px;
      background: #fff;
      border: 1.5px solid #CBD5E0;
      border-left: 4px solid var(--primary-blue);
      border-radius: 12px;
      padding: 24px 28px;
      flex-wrap: wrap;
    }
    .faq-contact-icon { font-size: 32px; flex-shrink: 0; }
    .faq-contact-text { flex: 1; min-width: 200px; }
    .faq-contact-text h4 {
      font-family: 'Montserrat', sans-serif;
      font-size: 15px; font-weight: 700;
      color: var(--text-dark); margin: 0 0 4px;
    }
    .faq-contact-text p {
      font-family: 'Inter', sans-serif;
      font-size: 13px; color: var(--text-light);
      line-height: 1.6; margin: 0;
    }

/* ── Extracted from guides.html ── */
/* ── Guide card — reuse existing guide-card-link pattern ── */
    .guide-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 28px;
      margin-top: 40px;
    }
    @media (max-width: 960px) { .guide-grid { grid-template-columns: repeat(2, 1fr); } }
    @media (max-width: 580px) { .guide-grid { grid-template-columns: 1fr; } }

    /* ── Author intro strip ── */
    .author-strip {
      display: flex;
      gap: 20px;
      align-items: flex-start;
      background: #fff;
      border: 1.5px solid var(--border-light);
      border-left: 4px solid var(--primary-blue);
      border-radius: 12px;
      padding: 24px 28px;
      margin-top: 40px;
    }
    .author-avatar {
      width: 56px; height: 56px;
      border-radius: 50%;
      background: var(--primary-blue);
      color: #fff;
      font-family: 'Montserrat', sans-serif;
      font-size: 20px;
      font-weight: 700;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }
    .author-text h4 {
      font-family: 'Montserrat', sans-serif;
      font-size: 15px;
      font-weight: 700;
      color: var(--text-dark);
      margin: 0 0 4px;
    }
    .author-text p {
      font-family: 'Inter', sans-serif;
      font-size: 13px;
      color: var(--text-light);
      line-height: 1.6;
      margin: 0;
    }

    /* ── Category filter tabs ── */
    .guide-filter {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      margin-top: 32px;
    }
    .gf-btn {
      font-family: 'Montserrat', sans-serif;
      font-size: 12px;
      font-weight: 700;
      letter-spacing: 0.5px;
      border: 1.5px solid var(--border-light);
      background: #fff;
      color: var(--text-light);
      border-radius: 20px;
      padding: 7px 18px;
      cursor: pointer;
      transition: 0.15s;
    }
    .gf-btn:hover, .gf-btn.active {
      background: var(--primary-blue);
      border-color: var(--primary-blue);
      color: #fff;
    }

    /* ── Guide card ── */
    .guide-card {
      display: flex;
      flex-direction: column;
      text-decoration: none;
      color: inherit;
      border-radius: 12px;
      overflow: hidden;
      border: 1.5px solid var(--border-light);
      background: #fff;
      box-shadow: 0 2px 8px rgba(0,0,0,0.06);
      transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .guide-card:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 24px rgba(0,0,0,0.06);
      border-color: var(--primary-blue);
    }
    .guide-card-img {
      width: 100%;
      aspect-ratio: 16/9;
      object-fit: cover;
      display: block;
    }
    .guide-card-body {
      padding: 22px 24px 24px;
      display: flex;
      flex-direction: column;
      flex-grow: 1;
    }
    .guide-card-meta {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 12px;
      flex-wrap: wrap;
      gap: 6px;
    }
    .guide-card-author {
      font-family: 'Inter', sans-serif;
      font-size: 11px;
      color: var(--text-light);
    }
    .guide-card-updated {
      font-family: 'Inter', sans-serif;
      font-size: 11px;
      color: var(--text-light);
    }
    .guide-card-title {
      font-family: 'Montserrat', sans-serif;
      font-size: 16px;
      font-weight: 700;
      color: var(--text-dark);
      margin: 0 0 10px;
      line-height: 1.4;
    }
    .guide-card-desc {
      font-family: 'Inter', sans-serif;
      font-size: 13px;
      color: var(--text-gray);
      line-height: 1.7;
      margin: 0 0 16px;
      flex-grow: 1;
    }
    .guide-card-footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding-top: 14px;
      border-top: 1px solid var(--border-light);
      margin-top: auto;
    }
    .guide-card-time {
      font-family: 'Inter', sans-serif;
      font-size: 12px;
      color: var(--text-light);
    }
    .guide-card-badge {
      font-family: 'Montserrat', sans-serif;
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 0.5px;
      text-transform: uppercase;
      color: var(--primary-blue);
      background: #e8f0fe;
      border-radius: 20px;
      padding: 3px 10px;
    }
    .guide-card-cta {
      font-family: 'Montserrat', sans-serif;
      font-size: 12px;
      font-weight: 700;
      color: var(--primary-blue);
      text-transform: uppercase;
      letter-spacing: 0.5px;
      margin-top: 16px;
      display: inline-block;
    }

/* ── Extracted from index.html ── */
/* ── Long resource card — image left, text right ── */
    .res-row {
      display: grid;
      grid-template-columns: 340px 1fr;
      gap: 0;
      background: #fff;
      border: 1.5px solid #CBD5E0;
      border-radius: 16px;
      overflow: hidden;
      box-shadow: 0 2px 10px rgba(0,0,0,0.07);
      margin-bottom: 32px;
      transition: box-shadow 0.2s, transform 0.2s;
    }
    .res-row:hover {
      box-shadow: 0 8px 32px rgba(0,0,0,0.12);
      transform: translateY(-3px);
    }
    .res-row:last-child { margin-bottom: 0; }

    .res-row-img {
      position: relative;
      overflow: hidden;
      background: #0E1A2B;
    }
    .res-row-img img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      opacity: 0.9;
      transition: opacity 0.3s, transform 0.3s;
    }
    .res-row:hover .res-row-img img {
      opacity: 1;
      transform: scale(1.03);
    }
    .res-row-img-overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(to right, rgba(14,26,43,0.3), transparent);
      pointer-events: none;
    }
    .res-row-cat {
      position: absolute;
      top: 20px;
      left: 20px;
      font-family: 'Montserrat', sans-serif;
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 2px;
      text-transform: uppercase;
      color: #fff;
      background: var(--row-colour, var(--primary-blue));
      border-radius: 20px;
      padding: 5px 14px;
    }

    .res-row-body {
      padding: 36px 40px;
      display: flex;
      flex-direction: column;
      border-left: 4px solid var(--row-colour, var(--primary-blue));
    }
    .res-row-title {
      font-family: 'Montserrat', sans-serif;
      font-size: 22px;
      font-weight: 700;
      color: var(--text-dark);
      margin: 0 0 14px;
      line-height: 1.3;
    }
    .res-row-desc {
      font-family: 'Inter', sans-serif;
      font-size: 14px;
      color: var(--text-gray);
      line-height: 1.8;
      margin: 0 0 20px;
      flex-grow: 1;
    }
    .res-row-who {
      font-family: 'Inter', sans-serif;
      font-size: 13px;
      color: var(--text-light);
      line-height: 1.6;
      margin: 0 0 24px;
      padding: 14px 16px;
      background: var(--bg-light);
      border-radius: 8px;
      border-left: 3px solid var(--row-colour, var(--primary-blue));
    }
    .res-row-who strong {
      font-weight: 600;
      color: var(--text-dark);
    }
    .res-row-stats {
      display: flex;
      gap: 20px;
      flex-wrap: wrap;
      margin-bottom: 24px;
    }
    .res-row-stat {
      font-family: 'Inter', sans-serif;
      font-size: 12px;
      color: var(--text-light);
      display: flex;
      align-items: center;
      gap: 5px;
    }
    .res-row-footer {
      display: flex;
      align-items: center;
      gap: 16px;
      flex-wrap: wrap;
      margin-top: auto;
    }

    /* ── Intro section ── */
    .res-intro-grid {
      display: grid;
      grid-template-columns: 1fr 1fr 1fr;
      gap: 24px;
      margin-top: 40px;
    }
    .res-intro-item {
      display: flex;
      gap: 14px;
      align-items: flex-start;
    }
    .res-intro-icon {
      font-size: 24px;
      flex-shrink: 0;
      margin-top: 2px;
    }
    .res-intro-item h4 {
      font-family: 'Montserrat', sans-serif;
      font-size: 14px;
      font-weight: 700;
      color: var(--text-dark);
      margin: 0 0 6px;
    }
    .res-intro-item p {
      font-family: 'Inter', sans-serif;
      font-size: 13px;
      color: var(--text-light);
      line-height: 1.6;
      margin: 0;
    }

    /* ── Responsive ── */
    @media (max-width: 900px) {
      .res-row { grid-template-columns: 1fr; }
      .res-row-img { height: 220px; }
      .res-intro-grid { grid-template-columns: 1fr; gap: 20px; }
    }
    @media (max-width: 600px) {
      .res-row-body { padding: 24px 20px; }
      .res-row-title { font-size: 18px; }
    }

/* ── Extracted from library.html ── */
/* ── Library category cards — extend .card ── */
    .lib-cat-card {
      display: flex;
      flex-direction: column;
      padding: 32px;
      text-decoration: none;
      color: inherit;
      border: 1.5px solid #CBD5E0;
      box-shadow: 0 2px 8px rgba(0,0,0,0.08);
      border-top: 3px solid transparent;
      background: #fff;
    }
    .lib-cat-card:hover {
      border-color: var(--cat-colour, var(--primary-blue));
      border-top-color: var(--cat-colour, var(--primary-blue));
      box-shadow: 0 8px 28px rgba(0,0,0,0.13);
    }
    .lib-cat-icon {
      font-size: 28px;
      margin-bottom: 16px;
      display: block;
      line-height: 1;
    }
    .lib-cat-num {
      font-family: 'Montserrat', sans-serif;
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 2px;
      text-transform: uppercase;
      color: var(--cat-colour, var(--primary-blue));
      margin-bottom: 6px;
      display: block;
    }
    .lib-cat-title {
      font-family: 'Montserrat', sans-serif;
      font-size: 17px;
      font-weight: 700;
      color: var(--text-dark);
      margin: 0 0 10px;
      line-height: 1.3;
    }
    .lib-cat-brands {
      font-family: 'Inter', sans-serif;
      font-size: 13px;
      color: var(--text-light);
      line-height: 1.7;
      flex-grow: 1;
      margin: 0 0 20px;
    }
    .lib-cat-footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding-top: 16px;
      border-top: 1px solid var(--border-light);
      margin-top: auto;
    }
    .lib-cat-count {
      font-family: 'Inter', sans-serif;
      font-size: 12px;
      color: var(--text-light);
    }
    .lib-cat-cta {
      font-family: 'Montserrat', sans-serif;
      font-size: 12px;
      font-weight: 700;
      color: var(--cat-colour, var(--primary-blue));
      display: flex;
      align-items: center;
      gap: 4px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    /* ── How to use steps ── */
    .lib-steps {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 40px;
      margin-top: 40px;
    }
    @media (max-width: 768px) {
      .lib-steps { grid-template-columns: 1fr; gap: 24px; }
    }
    .lib-step {
      display: flex;
      gap: 16px;
      align-items: flex-start;
    }
    .lib-step-num {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background: var(--primary-blue);
      color: #fff;
      font-family: 'Montserrat', sans-serif;
      font-size: 14px;
      font-weight: 700;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }
    .lib-step h4 {
      font-family: 'Montserrat', sans-serif;
      font-size: 14px;
      font-weight: 700;
      color: var(--text-dark);
      margin: 0 0 6px;
    }
    .lib-step p {
      font-family: 'Inter', sans-serif;
      font-size: 13px;
      color: var(--text-light);
      line-height: 1.6;
      margin: 0;
    }

    /* ── Asset pills ── */
    .asset-pill-row {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      margin-top: 20px;
    }
    .asset-pill {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      font-family: 'Inter', sans-serif;
      font-size: 13px;
      font-weight: 500;
      color: var(--text-gray);
      background: #fff;
      border: 1px solid var(--border-light);
      border-radius: 20px;
      padding: 6px 14px;
    }

    /* ── Equal height rows + responsive ── */
    .grid-3 { grid-auto-rows: 1fr; }
    .lib-cat-card { height: 100%; }
    @media (max-width: 900px) {
      .grid-3 { grid-template-columns: repeat(2, 1fr); }
    }
    @media (max-width: 540px) {
      .grid-3 { grid-template-columns: 1fr; grid-auto-rows: auto; }
    }

/* ── Extracted from training-videos.html ── */
/* ── Video card ── */
    .vid-card {
      display: flex;
      flex-direction: column;
      background: #fff;
      border: 1.5px solid var(--border-light);
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 2px 8px rgba(0,0,0,0.06);
      transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
      text-decoration: none;
      color: inherit;
    }
    .vid-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 10px 32px rgba(0,0,0,0.12);
      border-color: var(--primary-blue);
    }
    .vid-card--coming {
      opacity: 0.65;
      pointer-events: none;
      cursor: default;
    }
    .vid-card--coming:hover {
      transform: none;
      box-shadow: 0 2px 8px rgba(0,0,0,0.06);
      border-color: var(--border-light);
    }

    /* Thumbnail */
    .vid-thumb {
      position: relative;
      aspect-ratio: 16/9;
      background: #0E1A2B;
      overflow: hidden;
      cursor: pointer;
    }
    .vid-thumb img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      opacity: 0.85;
      transition: opacity 0.2s;
    }
    .vid-thumb:hover img { opacity: 1; }
    .vid-play-btn {
      position: absolute;
      top: 50%; left: 50%;
      transform: translate(-50%, -50%);
      width: 52px; height: 52px;
      background: rgba(255,255,255,0.92);
      border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      pointer-events: none;
      transition: transform 0.2s, background 0.2s;
    }
    .vid-thumb:hover .vid-play-btn {
      background: #fff;
      transform: translate(-50%, -50%) scale(1.08);
    }
    .vid-play-btn svg { margin-left: 3px; }
    .vid-thumb iframe {
      width: 100%; aspect-ratio: 16/9;
      border: none; display: block;
    }

    /* Coming soon thumb */
    .vid-thumb-placeholder {
      aspect-ratio: 16/9;
      background: linear-gradient(135deg, #1a2942 0%, #0E1A2B 100%);
      display: flex; flex-direction: column;
      align-items: center; justify-content: center;
      gap: 10px;
    }
    .vid-thumb-placeholder-icon { font-size: 36px; opacity: 0.5; }
    .vid-thumb-placeholder-label {
      font-family: 'Montserrat', sans-serif;
      font-size: 11px; font-weight: 700;
      letter-spacing: 2px; text-transform: uppercase;
      color: rgba(255,255,255,0.4);
    }

    /* Badges on thumb */
    .vid-badge-source {
      position: absolute;
      top: 10px; left: 10px;
      font-family: 'Montserrat', sans-serif;
      font-size: 10px; font-weight: 700;
      background: rgba(255,255,255,0.92);
      color: var(--text-dark);
      border-radius: 4px;
      padding: 3px 8px;
    }
    .vid-badge-duration {
      position: absolute;
      bottom: 10px; right: 10px;
      font-family: 'Montserrat', sans-serif;
      font-size: 11px; font-weight: 700;
      background: rgba(0,0,0,0.7);
      color: #fff;
      border-radius: 4px;
      padding: 3px 8px;
    }
    .vid-badge-coming {
      position: absolute;
      top: 10px; right: 10px;
      font-family: 'Montserrat', sans-serif;
      font-size: 10px; font-weight: 700;
      letter-spacing: 1px;
      background: #dd6b20;
      color: #fff;
      border-radius: 4px;
      padding: 3px 8px;
    }

    /* Card body */
    .vid-card-body {
      padding: 18px 20px 20px;
      display: flex;
      flex-direction: column;
      flex-grow: 1;
    }
    .vid-card-cat {
      font-family: 'Montserrat', sans-serif;
      font-size: 10px; font-weight: 700;
      letter-spacing: 1.5px; text-transform: uppercase;
      color: var(--primary-blue); margin-bottom: 6px; display: block;
    }
    .vid-card-title {
      font-family: 'Montserrat', sans-serif;
      font-size: 15px; font-weight: 700;
      color: var(--text-dark); margin: 0 0 8px; line-height: 1.4;
    }
    .vid-card-desc {
      font-family: 'Inter', sans-serif;
      font-size: 12px; color: var(--text-gray);
      line-height: 1.6; margin: 0; flex-grow: 1;
    }
    .vid-card-footer {
      display: flex; align-items: center;
      justify-content: space-between;
      padding-top: 12px; border-top: 1px solid var(--border-light);
      margin-top: 14px;
    }
    .vid-card-audience {
      font-family: 'Inter', sans-serif;
      font-size: 11px; color: var(--text-light);
    }

    /* ── Section header strip ── */
    .vid-section-header {
      display: flex;
      align-items: center;
      gap: 16px;
      padding-bottom: 16px;
      border-bottom: 2px solid var(--border-light);
      margin-bottom: 28px;
    }
    .vid-section-icon { font-size: 24px; }
    .vid-section-title {
      font-family: 'Montserrat', sans-serif;
      font-size: 18px; font-weight: 700;
      color: var(--text-dark); margin: 0 0 2px;
    }
    .vid-section-desc {
      font-family: 'Inter', sans-serif;
      font-size: 12px; color: var(--text-light); margin: 0;
    }

    /* ── Grid ── */
    .vid-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 24px;
      margin-bottom: 56px;
    }
    @media (max-width: 900px) { .vid-grid { grid-template-columns: repeat(2, 1fr); } }
    @media (max-width: 540px) { .vid-grid { grid-template-columns: 1fr; } }

    /* ── YouTube CTA box ── */
    .yt-cta {
      display: flex;
      align-items: center;
      gap: 20px;
      background: #fff;
      border: 1.5px solid #CBD5E0;
      border-left: 4px solid #FF0000;
      border-radius: 12px;
      padding: 24px 28px;
      margin-bottom: 56px;
      flex-wrap: wrap;
    }
    .yt-cta-icon { font-size: 36px; flex-shrink: 0; }
    .yt-cta-text { flex: 1; min-width: 200px; }
    .yt-cta-text h4 {
      font-family: 'Montserrat', sans-serif;
      font-size: 15px; font-weight: 700;
      color: var(--text-dark); margin: 0 0 4px;
    }
    .yt-cta-text p {
      font-family: 'Inter', sans-serif;
      font-size: 13px; color: var(--text-light);
      line-height: 1.6; margin: 0;
    }
    .btn-youtube {
      background: #FF0000; color: #fff;
      border: none; border-radius: 8px;
      font-family: 'Montserrat', sans-serif;
      font-size: 13px; font-weight: 700;
      padding: 12px 24px;
      text-decoration: none;
      white-space: nowrap;
      transition: background 0.2s;
    }
    .btn-youtube:hover { background: #cc0000; }

/* ============================================================
   SECTION H: GUIDE SHARE STRIP
   Social sharing row displayed at end of every resource guide,
   above the Related Technical Guides section.

   Four buttons: LinkedIn · WhatsApp · Copy Link · Google Preferred
   All URLs generated dynamically from window.location.href.
   JS inline in each guide HTML file — no external dependency.
   ============================================================ */

/* ── H1. Share strip container ── */

.rg-share {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 28px 0;
  margin: 0 0 8px;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.rg-share-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-light);
  margin-right: 4px;
  white-space: nowrap;
}

/* ── H2. Share buttons — base ── */

.rg-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  white-space: nowrap;
  line-height: 1;
}

.rg-share-btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

/* ── H3. Individual button colours ── */

.rg-share-btn-linkedin {
  background: #0A66C2;
  color: #fff;
}

.rg-share-btn-whatsapp {
  background: #25D366;
  color: #fff;
}

.rg-share-btn-copy {
  background: var(--light-bg, #f4f6f8);
  color: var(--text-dark);
  border: 1px solid var(--border-light);
}

.rg-share-btn-copy.copied {
  background: #16a34a;
  color: #fff;
  border-color: #16a34a;
}

.rg-share-btn-google {
  background: #fff;
  color: #444;
  border: 1px solid #dadce0;
}

.rg-share-btn-google:hover {
  background: #f8f9fa;
  border-color: #c6c6c6;
  opacity: 1;
}

/* ── H4. Icon sizing inside buttons ── */

.rg-share-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ── H5. LinkedIn link in hero author block ── */

.rg-hero-author-linkedin {
  display: inline-block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #0A66C2;
  text-decoration: none;
  letter-spacing: 0.2px;
}

.rg-hero-author-linkedin:hover {
  text-decoration: underline;
}

/* ── H6. Responsive — stack on mobile ── */

@media (max-width: 600px) {
  .rg-share {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .rg-share-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ── END SECTION H (Guide Share Strip) ───────────────────────── */

/* ============================================================
   FAQ Component
   Defined in sv-solutions.css — duplicated here so
   resources pages render it correctly.
   ============================================================ */

.faq-item {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.faq-item:hover {
    border-color: var(--page-accent, var(--primary-blue));
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.faq-grid--single {
    grid-template-columns: 1fr;
}

.faq-grid .faq-item {
    padding: 28px 32px;
}

.faq-grid .faq-question {
    font-family: 'Montserrat', sans-serif;
    font-size: 17px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.4;
    padding-left: 34px;
}

.faq-grid .faq-question::before {
    content: 'Q';
    display: inline-block;
    width: 24px;
    height: 24px;
    background: var(--page-accent, var(--primary-blue));
    color: #fff;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    line-height: 24px;
    margin-left: -34px;
    margin-right: 10px;
    vertical-align: middle;
    flex-shrink: 0;
}

.faq-grid .faq-answer {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.7;
    margin: 0;
    padding-left: 34px;
}

@media (max-width: 768px) {
    .faq-grid {
        grid-template-columns: 1fr;
    }
    .faq-grid .faq-item {
        padding: 24px;
    }
}

/* ── END FAQ Component ──────────────────────────────────────── */

/* ── Hub Utilities ─────────────────────────────────────────── */

.nav-card {
    display: block;
    padding: 18px 20px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    transition: border-color 0.2s;
}

.nav-card:hover {
    border-color: var(--primary-blue);
}

.faq-list-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 28px 32px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.faq-list-number {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-blue, #0056b3);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.faq-list-question {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 10px 0;
    text-align: left;
}

.faq-list-answer {
    font-size: 15px;
    color: #475569;
    line-height: 1.7;
    margin: 0;
    text-align: left;
}
