
        *::before,
        *::after {
            box-sizing: border-box;
        }

        * {
            margin: 0;
            padding: 0;
        }

        html {
            width: 100%;
            min-width: 0;
            min-height: 100%;
            scroll-behavior: smooth;
        }

        [hidden] {
            display: none !important;
        }

        /* =========================
    LIGHT THEME
    ========================= */

        :root {
            color-scheme: light;

            --primary: #087bff;
            --primary-hover: #0069df;

            --text: #202123;
            --heading: #202123;
            --muted: #687385;

            --background: #f7f8fa;
            --surface: #ffffff;

            --border: #e5e9ef;
            --hover-bg: #f4f7fb;
            --note-bg: #edf5ff;
            --primary-light: rgba(8, 123, 255, 0.12);

            --shadow: 0 2px 10px rgba(15, 23, 42, 0.035);

            --radius: 12px;
            --page-gutter: clamp(8px, 2.4vw, 32px);
            --page-top: clamp(10px, 2vw, 24px);

            --badge-bg: #fff0c2;
            --badge-text: #705000;
        }

        /* =========================
    DARK THEME
    ========================= */

        body.dark {
            color-scheme: dark;

            --primary: #60a5fa;
            --primary-hover: #93c5fd;

            --text: #eef2f8;
            --heading: #eef2f8;
            --muted: #a4afbe;

            --background: #10151d;
            --surface: #1b2430;

            --border: #344153;
            --hover-bg: #253142;
            --note-bg: #1c3049;
            --primary-light: rgba(59, 130, 246, 0.18);

            --shadow: 0 2px 12px rgba(0, 0, 0, 0.12);

            --badge-bg: #493c19;
            --badge-text: #ffe39a;
        }

        /* =========================
    SYSTEM DARK THEME
    ========================= */

        @media (prefers-color-scheme: dark) {
            body.system {
                color-scheme: dark;

                --primary: #60a5fa;
                --primary-hover: #93c5fd;

                --text: #eef2f8;
                --heading: #eef2f8;
                --muted: #a4afbe;

                --background: #10151d;
                --surface: #1b2430;

                --border: #344153;
                --hover-bg: #253142;
                --note-bg: #1c3049;
                --primary-light: rgba(59, 130, 246, 0.18);

                --shadow: 0 2px 12px rgba(0, 0, 0, 0.12);

                --badge-bg: #493c19;
                --badge-text: #ffe39a;
            }
        }

        /* =========================
    BODY
    ========================= */

        body {
            width: 100%;
            min-width: 0;
            min-height: 100vh;

            background: var(--background);
            color: var(--text);

            font-family:
                -apple-system,
                BlinkMacSystemFont,
                "Segoe UI",
                Roboto,
                "Noto Sans",
                Arial,
                sans-serif;

            font-size: 14px;
            line-height: 1.6;

            overflow-wrap: anywhere;

            transition:
                background 0.2s ease,
                color 0.2s ease;
        }

        button,
        input {
            font: inherit;
        }

        a,
        button,
        input,
        summary {
            -webkit-tap-highlight-color: transparent;
        }

        a {
            color: var(--primary);
        }

        a:hover {
            color: var(--primary-hover);
        }

        /* =========================
    HEADER
    Outside spacing keeps blue
    background away from edges.
    ========================= */

        .guide-header {
            width: auto;
            max-width: none;

            margin:
                var(--page-top) var(--page-gutter) 0;

            padding:
                clamp(17px, 2.5vw, 28px) clamp(14px, 2.5vw, 30px);

            background:
                linear-gradient(125deg,
                    #087bff 0%,
                    #066be5 60%,
                    #0056cc 100%);

            color: #ffffff;

            border-radius: 14px;

            box-shadow:
                0 4px 16px rgba(8, 123, 255, 0.12);
        }

        .guide-header-content {
            display: flex;
            flex-direction: row;
            align-items: center;
            justify-content: flex-start;

            width: 100%;
            min-width: 0;

            gap: clamp(10px, 1.8vw, 18px);

            text-align: left;
        }

        /* =========================
    HEADER ICON
    ========================= */

        .guide-icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;

            flex: 0 0 auto;

            width: clamp(35px, 4vw, 48px);
            height: clamp(35px, 4vw, 48px);

            background: rgba(255, 255, 255, 0.16);
            color: #ffffff;

            border-radius: 12px;
        }

        .guide-icon svg {
            display: block;

            width: clamp(19px, 2.3vw, 26px);
            height: clamp(19px, 2.3vw, 26px);

            flex-shrink: 0;
        }

        .guide-icon i {
            font-size: clamp(16px, 2vw, 22px);
        }

        /* =========================
    HEADER TEXT
    ========================= */

        .guide-header-text {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            justify-content: center;

            flex: 1;
            min-width: 0;

            text-align: left;
        }

        .guide-header h1 {
            margin: 0;

            color: #ffffff;

            font-size: clamp(20px, 2.6vw, 29px);
            font-weight: 720;
            line-height: 1.2;
        }

        .guide-header p {
            margin: 4px 0 0;

            color: rgba(255, 255, 255, 0.88);

            font-size: clamp(11px, 1.25vw, 14px);
            font-weight: 400;
            line-height: 1.5;

            text-align: left;
        }

        /* =========================
    MAIN CONTENT
    ========================= */

        main {
            width: 100%;
            max-width: none;
            min-width: 0;

            margin: 0;

            padding:
                clamp(18px, 2.5vw, 30px) var(--page-gutter) calc(32px + env(safe-area-inset-bottom, 0px));
        }

        /* =========================
    QUICK TOPIC LINKS
    ========================= */

        .topic-navigation {
            display: flex;
            flex-wrap: wrap;

            gap: 8px;

            width: 100%;
            min-width: 0;

            margin-bottom: 22px;
        }

        .topic-navigation a {
            display: inline-flex;
            align-items: center;
            justify-content: center;

            min-width: 0;

            padding: 8px 14px;

            background: var(--surface);
            color: var(--text);

            border: 1px solid var(--border);
            border-radius: 10px;

            font-size: 13px;
            font-weight: 600;
            line-height: 1.5;

            text-align: center;
            text-decoration: none;

            box-shadow: var(--shadow);

            transition:
                background 0.2s ease,
                border-color 0.2s ease,
                color 0.2s ease;
        }

        .topic-navigation a:hover {
            background: var(--hover-bg);
            color: var(--primary);
            border-color: var(--primary);
        }

        /* =========================
    SEARCH
    ========================= */

        .search-label {
            display: block;

            margin-bottom: 8px;

            color: var(--heading);

            font-size: 14px;
            font-weight: 650;
        }

        #guideSearch {
            display: block;

            width: 100%;
            min-width: 0;
            min-height: 46px;

            margin-bottom: 12px;
            padding: 12px 14px;

            background: var(--surface);
            color: var(--text);

            border: 1px solid var(--border);
            border-radius: var(--radius);

            font-size: 16px;
            line-height: 1.5;

            box-shadow: var(--shadow);

            transition:
                border-color 0.2s ease,
                box-shadow 0.2s ease;
        }

        #guideSearch::placeholder {
            color: var(--muted);
            opacity: 1;
        }

        #guideSearch:focus {
            border-color: var(--primary);

            box-shadow:
                0 0 0 3px var(--primary-light);
        }

        /* =========================
    EXPAND / COLLAPSE
    ========================= */

        .guide-tools {
            display: flex;
            flex-wrap: wrap;

            gap: 8px;
            margin-bottom: 20px;
        }

        .guide-tools button {
            min-width: 0;

            padding: 8px 13px;

            background: var(--surface);
            color: var(--text);

            border: 1px solid var(--border);
            border-radius: 9px;

            font-size: 12px;
            font-weight: 600;
            line-height: 1.5;

            cursor: pointer;

            transition:
                background 0.2s ease,
                border-color 0.2s ease;
        }

        .guide-tools button:hover {
            background: var(--hover-bg);
            border-color: var(--primary);
        }

        /* =========================
    NO SEARCH RESULTS
    ========================= */

        .empty-message {
            margin: 12px 0;
            padding: 16px;

            background: var(--surface);
            color: var(--muted);

            border: 1px dashed var(--border);
            border-radius: var(--radius);

            font-size: 13px;
        }

        /* =========================
    GUIDE SECTIONS
    ========================= */

        #guideSections {
            display: flex;
            flex-direction: column;

            gap: 8px;

            width: 100%;
            min-width: 0;
        }

        .guide-topic {
            width: 100%;
            min-width: 0;

            margin: 0;

            background: var(--surface);

            border: 1px solid var(--border);
            border-radius: var(--radius);

            box-shadow: var(--shadow);

            scroll-margin-top: 16px;

            transition:
                background 0.2s ease,
                border-color 0.2s ease;
        }

        .guide-topic[open] {
            border-color: var(--primary);

            box-shadow:
                0 2px 12px var(--primary-light);
        }

        /* =========================
    SECTION TITLE
    ========================= */

        .guide-topic summary {
            display: flex;
            align-items: center;
            justify-content: space-between;

            gap: 12px;

            width: 100%;
            min-width: 0;

            padding:
                clamp(12px, 1.7vw, 18px) clamp(11px, 1.8vw, 20px);

            background: transparent;
            color: var(--text);

            border-radius: inherit;

            font-size: clamp(12px, 1.25vw, 15px);
            font-weight: 600;
            line-height: 1.5;

            text-align: left;
            list-style: none;

            cursor: pointer;
        }

        .guide-topic summary::-webkit-details-marker {
            display: none;
        }

        .guide-topic summary::marker {
            content: "";
        }

        .guide-topic summary::after {
            content: "";

            flex: 0 0 auto;

            width: 8px;
            height: 8px;

            margin-right: 3px;

            border-right: 2px solid var(--primary);
            border-bottom: 2px solid var(--primary);

            transform: rotate(45deg);
            transition: transform 0.2s ease;
        }

        .guide-topic summary:hover {
            background: var(--hover-bg);
        }

        .guide-topic[open] summary {
            color: var(--primary);

            border-bottom: 1px solid var(--border);

            border-bottom-left-radius: 0;
            border-bottom-right-radius: 0;
        }

        .guide-topic[open] summary::after {
            transform: rotate(225deg);
        }

        /* =========================
    SECTION CONTENT
    ========================= */

        .section-body {
            min-width: 0;

            padding:
                12px clamp(11px, 1.8vw, 20px) clamp(14px, 1.7vw, 20px);

            color: var(--muted);

            font-size: clamp(12px, 1.1vw, 14px);
            line-height: 1.75;
        }

        .section-body p {
            margin: 0 0 12px;
        }

        .section-body p:last-child {
            margin-bottom: 0;
        }

        .section-body strong,
        .section-body b {
            color: var(--heading);
            font-weight: 650;
        }

        .section-body ol,
        .section-body ul {
            margin: 0 0 14px;
            padding-left: 22px;
        }

        .section-body li {
            margin: 7px 0;
            padding-left: 2px;
        }

        .section-body a {
            text-underline-offset: 3px;
        }

        /* =========================
    NOTES AND EXAMPLES
    ========================= */

        .note {
            margin: 14px 0;

            padding: 12px 14px;

            background: var(--note-bg);
            color: var(--text);

            border-left: 3px solid var(--primary);
            border-radius: 9px;

            line-height: 1.7;
        }

        .note:last-child {
            margin-bottom: 0;
        }

        .note p {
            margin-bottom: 8px;
        }

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

        /* =========================
    DEVELOPMENT BADGE
    ========================= */

        .development-badge {
            display: inline-block;

            max-width: 100%;

            margin-bottom: 8px;
            padding: 4px 10px;

            background: var(--badge-bg);
            color: var(--badge-text);

            border-radius: 100px;

            font-size: 11px;
            font-weight: 700;
            line-height: 1.5;
        }

        /* =========================
    TABLES
    ========================= */

        .section-body table {
            width: 100%;

            margin: 12px 0 16px;

            border-collapse: collapse;
            table-layout: fixed;

            font-size: inherit;
        }

        .section-body th,
        .section-body td {
            padding: 10px;

            border-bottom: 1px solid var(--border);

            text-align: left;
            vertical-align: top;

            overflow-wrap: anywhere;
        }

        .section-body th {
            background: var(--hover-bg);
            color: var(--heading);

            font-weight: 650;
        }

        .section-body th:first-child,
        .section-body td:first-child {
            width: 30%;
        }

        /* =========================
    ACCESSIBILITY
    ========================= */

        a:focus-visible,
        button:focus-visible,
        input:focus-visible,
        summary:focus-visible {
            outline: 2px solid var(--primary);
            outline-offset: 3px;
        }

        /* =========================
    LARGE DESKTOP
    ========================= */

        @media (min-width: 1200px) {
            :root {
                --page-gutter: clamp(24px, 3vw, 64px);
            }

            .guide-header {
                padding: 26px 30px;
            }
        }

        /* =========================
    TABLET
    ========================= */

        @media (max-width: 900px) {
            :root {
                --page-gutter: clamp(10px, 2vw, 20px);
            }
        }

        /* =========================
    MOBILE
    ========================= */

        @media (max-width: 600px) {
            :root {
                --page-gutter: 12px;
                --page-top: 10px;
            }

            .guide-header {
                padding: 17px 15px;
                border-radius: 13px;
            }

            main {
                padding-top: 20px;
                padding-bottom: 25px;
            }

            .topic-navigation {
                gap: 7px;
                margin-bottom: 18px;
            }

            .topic-navigation a {
                padding: 7px 11px;
                font-size: 12px;
            }

            .guide-tools {
                margin-bottom: 16px;
            }

            .guide-topic summary {
                padding: 12px;
                font-size: 13px;
            }

            .section-body {
                padding: 12px;
                font-size: 12px;
            }

            .note {
                padding: 11px 12px;
            }
        }

        /* =========================
    NARROW PHONES
    ========================= */

        @media (max-width: 360px) {
            :root {
                --page-gutter: 8px;
            }

            .guide-header {
                padding: 13px 11px;
            }

            .guide-header-content {
                gap: 9px;
            }

            .guide-icon {
                width: 33px;
                height: 33px;
            }

            .guide-icon svg {
                width: 19px;
                height: 19px;
            }

            .guide-header h1 {
                font-size: 19px;
            }

            .guide-header p {
                font-size: 11px;
            }

            .guide-topic summary {
                padding: 10px;
                font-size: 12px;
            }

            .section-body {
                padding: 10px;
            }

            .section-body th,
            .section-body td {
                padding: 7px;
            }
        }

        /* =========================
    EXTRA SMALL SCREENS
    Approximately 200px
    ========================= */

        @media (max-width: 260px) {
            :root {
                --page-gutter: 4px;
                --page-top: 5px;
            }

            .guide-header {
                padding: 10px 8px;
                border-radius: 9px;
            }

            .guide-header-content {
                gap: 6px;
            }

            .guide-icon {
                width: 25px;
                height: 25px;
                border-radius: 7px;
            }

            .guide-icon svg {
                width: 15px;
                height: 15px;
            }

            .guide-header h1 {
                font-size: 16px;
            }

            .guide-header p {
                font-size: 10px;
                line-height: 1.4;
            }

            main {
                padding-top: 15px;
                padding-bottom: 18px;
            }

            .topic-navigation {
                gap: 5px;
                margin-bottom: 14px;
            }

            .topic-navigation a {
                padding: 6px 8px;
                border-radius: 8px;
                font-size: 11px;
            }

            .search-label {
                font-size: 12px;
            }

            #guideSearch {
                padding: 10px 8px;
            }

            .guide-tools {
                gap: 5px;
            }

            .guide-tools button {
                padding: 7px 8px;
                font-size: 11px;
            }

            .guide-topic {
                border-radius: 9px;
            }

            .guide-topic summary {
                gap: 8px;
                padding: 9px 8px;
                font-size: 11px;
            }

            .guide-topic summary::after {
                width: 6px;
                height: 6px;
            }

            .section-body {
                padding: 9px 8px;
                font-size: 11px;
            }

            .section-body ol,
            .section-body ul {
                padding-left: 16px;
            }

            .section-body th,
            .section-body td {
                padding: 6px 4px;
            }

            .note {
                padding: 9px 8px;
            }
        }

        /* =========================
    REDUCED MOTION
    ========================= */

        @media (prefers-reduced-motion: reduce) {
            html {
                scroll-behavior: auto;
            }

            *,
            *::before,
            *::after {
                transition: none !important;
                animation: none !important;
            }
        }

        /* =========================
    PRINT
    ========================= */

        @media print {

            body,
            body.dark,
            body.system {
                --text: #000000;
                --heading: #000000;
                --muted: #333333;

                --background: #ffffff;
                --surface: #ffffff;

                --border: #cccccc;
                --primary: #000000;
                --note-bg: #f3f3f3;
                --hover-bg: #f3f3f3;

                --shadow: none;

                color-scheme: light;
            }

            .guide-header {
                margin: 0;
                padding: 12px;

                background: #ffffff;
                color: #000000;

                box-shadow: none;
            }

            .guide-header h1,
            .guide-header p,
            .guide-icon {
                color: #000000;
            }

            .guide-icon {
                background: #eeeeee;
            }

            .topic-navigation,
            .search-label,
            #guideSearch,
            .guide-tools,
            .empty-message {
                display: none !important;
            }

            main {
                padding: 12px;
            }

            .guide-topic {
                break-inside: avoid;
                box-shadow: none;
            }
        }

        /* Prevent horizontal overflow */

        html,
        body {
            width: 100%;
            min-width: 0;
            margin: 0;
            overflow-x: hidden;
        }

        @supports (overflow-x: clip) {

            html,
            body {
                overflow-x: clip;
            }
        }

        *,
        *::before,
        *::after {
            box-sizing: border-box;
        }

        /* Header and content use matching side spacing */

        .guide-header {
            width: auto;
            min-width: 0;
            max-width: none;
            margin-inline: var(--page-gutter, 12px);
        }

        main {
            width: 100%;
            min-width: 0;
            max-width: 100%;
            margin-inline: 0;
            padding-inline: var(--page-gutter, 12px);
        }

        /* Allow nested elements to shrink */

        .guide-header-content,
        .guide-header-text,
        .topic-navigation,
        .guide-tools,
        #guideSections,
        .guide-topic,
        .guide-topic summary,
        .section-body {
            min-width: 0;
            max-width: 100%;
        }

        .topic-navigation,
        .guide-tools {
            flex-wrap: wrap;
        }

        .topic-navigation a,
        .guide-tools button {
            min-width: 0;
            max-width: 100%;
            white-space: normal;
            overflow-wrap: anywhere;
        }

        #guideSearch {
            width: 100%;
            min-width: 0;
            max-width: 100%;
        }

        /* Wrap long text and email addresses */

        .guide-header h1,
        .guide-header p,
        .guide-topic summary,
        .section-body p,
        .section-body li,
        .section-body a,
        .note {
            white-space: normal;
            overflow-wrap: anywhere;
        }

        /* Keep tables and images within their container */

        .section-body table {
            width: 100%;
            max-width: 100%;
            table-layout: fixed;
        }

        .section-body th,
        .section-body td {
            white-space: normal;
            overflow-wrap: anywhere;
        }

        .section-body img,
        .section-body svg,
        .section-body video {
            max-width: 100%;
            height: auto;
        }
