/* ==========================================================================
   Codex — Premium Ghost Documentation Theme
   A clean, developer-friendly documentation theme with three-column layout.
   ========================================================================== */


/* ==========================================================================
   1. CSS Reset
   ========================================================================== */

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

html {
    font-size: 100%;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
    overflow-x: clip;
}

body {
    min-height: 100vh;
    line-height: 1.7;
    overflow-x: clip;
    font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 400;
    color: var(--text);
    background-color: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

input,
button,
textarea,
select {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    background: none;
    border: none;
}

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
    font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 600;
    line-height: 1.3;
}

*:focus-visible {
    outline: 2px solid var(--accent, #0EA5E9);
    outline-offset: 2px;
}

p {
    overflow-wrap: break-word;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

fieldset {
    border: none;
}


/* ==========================================================================
   2. Design Tokens
   ========================================================================== */

:root {
    /* Colors */
    --bg: #FFFFFF;
    --bg-sidebar: #F8FAFC;
    --bg-code: #1E293B;
    --text: #1E293B;
    --text-secondary: #64748B;
    --text-tertiary: #94A3B8;
    --accent: var(--ghost-accent-color, #0EA5E9);
    --accent-hover: #0284C7;
    --accent-subtle: #F0F9FF;
    --success: #16A34A;
    --success-bg: #F0FDF4;
    --warning: #F59E0B;
    --warning-bg: #FFFBEB;
    --error: #EF4444;
    --error-bg: #FEF2F2;
    --info: #0EA5E9;
    --info-bg: #F0F9FF;
    --border: #E2E8F0;
    --border-light: #F1F5F9;
    --code-text: #E2E8F0;

    /* Typography */
    --font-sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;

    --text-xs: 0.875rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;

    /* Spacing */
    --gap-xs: 0.5rem;
    --gap-sm: 1rem;
    --gap: 1.5rem;
    --gap-lg: 2rem;
    --gap-xl: 3rem;
    --gap-2xl: 4rem;

    /* Layout */
    --header-height: 3.5rem;
    --sidebar-width: 280px;
    --toc-width: 240px;
    --container-max: 1200px;
    --container-wide: 1400px;
    --container-narrow: 720px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);

    /* Transitions */
    --transition: 0.2s ease;
    --transition-slow: 0.3s ease;

    /* Radius */
    --radius-sm: 4px;
    --radius: 6px;
    --radius-lg: 8px;
    --radius-xl: 12px;

    /* Ghost Custom Font Support */
    --gh-font-heading: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --gh-font-body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}


/* ==========================================================================
   3. Layout Containers
   ========================================================================== */

.container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--gap);
    padding-right: var(--gap);
}

.container-wide {
    width: 100%;
    max-width: var(--container-wide);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--gap);
    padding-right: var(--gap);
}

.container-narrow {
    width: 100%;
    max-width: var(--container-narrow);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--gap);
    padding-right: var(--gap);
}


/* ==========================================================================
   4. Skip to Content
   ========================================================================== */

.skip-to-content {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    padding: 0.5rem 1rem;
    background: var(--accent);
    color: #fff;
    border-radius: var(--radius);
    font-size: var(--text-sm);
    font-weight: 500;
    transition: top var(--transition);
}

.skip-to-content:focus {
    top: var(--gap-sm);
}


/* ==========================================================================
   5. Reading Progress Bar
   ========================================================================== */

.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 1001;
    background: transparent;
}

.reading-progress-bar {
    height: 100%;
    width: 0;
    background: var(--accent);
    transition: width 0.1s linear;
}


/* ==========================================================================
   6. Site Header
   ========================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    transition: box-shadow var(--transition);
}

.site-header.is-scrolled {
    box-shadow: var(--shadow);
}

.site-header-inner {
    position: relative;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    gap: var(--gap);
}

.site-header-left {
    display: flex;
    align-items: center;
    gap: var(--gap-sm);
    flex-shrink: 0;
}

.site-header-logo img {
    height: 28px;
    width: auto;
}

.site-header-title {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text);
}

.site-header-nav {
    display: none;
}

.site-header-right {
    display: flex;
    align-items: center;
    gap: var(--gap-xs);
}

/* Search Toggle */
.search-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    border-radius: var(--radius);
    color: var(--text-secondary);
    transition: color var(--transition), background-color var(--transition);
}

.search-toggle:hover {
    color: var(--text);
    background: var(--bg-sidebar);
}

/* Header Social Link */
.header-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    border-radius: var(--radius);
    color: var(--text-secondary);
    transition: color var(--transition);
}

.header-social-link:hover {
    color: var(--text);
}

.header-social-link svg {
    width: 20px;
    height: 20px;
}

/* Header Buttons */
.header-btn {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0.375rem 0.875rem;
    font-size: var(--text-sm);
    font-weight: 500;
    border-radius: var(--radius);
    transition: background-color var(--transition), color var(--transition);
}

.header-btn-signin {
    color: var(--text-secondary);
}

.header-btn-signin:hover {
    color: var(--text);
}

.header-btn-signup,
.header-btn-account {
    background: var(--accent);
    color: #fff;
}

.header-btn-signup:hover,
.header-btn-account:hover {
    background: var(--accent-hover);
}

/* Hamburger */
.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    gap: 4px;
    border-radius: var(--radius);
}

.hamburger-line {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--text);
    border-radius: 1px;
    transition: transform var(--transition), opacity var(--transition);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    height: 100dvh;
    z-index: 10000;
    background: var(--bg);
    overflow-y: auto;
    padding: calc(var(--header-height) + var(--gap)) var(--gap) var(--gap);
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.mobile-menu.is-open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-nav .nav-list {
    flex-direction: column;
    gap: 0;
}

.mobile-menu-nav .nav-item a {
    display: block;
    padding: 0.625rem 0;
    font-size: var(--text-base);
    border-bottom: 1px solid var(--border-light);
}

.mobile-menu-actions {
    display: flex;
    gap: var(--gap-xs);
    margin-top: var(--gap);
    padding-top: var(--gap);
    border-top: 1px solid var(--border);
}

/* Desktop Header Nav */
@media (min-width: 768px) {
    .site-header-nav {
        display: flex;
        flex: 1;
        justify-content: center;
    }

    .mobile-menu-toggle {
        display: none;
    }
}


/* ==========================================================================
   7. Navigation
   ========================================================================== */

.nav-list {
    display: flex;
    align-items: center;
    gap: var(--gap-xs);
}

.nav-item a {
    display: inline-flex;
    padding: 0.375rem 0.625rem;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius);
    transition: color var(--transition), background-color var(--transition);
}

.nav-item a:hover,
.nav-current a {
    color: var(--text);
    background: var(--bg-sidebar);
}


/* ==========================================================================
   8. Version Badge
   ========================================================================== */

.version-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    font-size: var(--text-xs);
    font-weight: 500;
    font-family: var(--font-mono);
    color: var(--accent);
    background: var(--accent-subtle);
    border-radius: 999px;
    line-height: 1.5;
}


/* ==========================================================================
   9. Docs Hero (Homepage)
   ========================================================================== */

.docs-hero {
    padding: var(--gap-2xl) 0;
    background: var(--bg-sidebar);
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.docs-hero-inner {
    max-width: 640px;
}

.docs-hero-title {
    font-size: var(--text-3xl);
    font-weight: 700;
    margin-bottom: var(--gap);
    color: var(--text);
}

.docs-hero-search {
    max-width: 480px;
    margin: 0 auto;
}

.docs-hero-search-btn {
    display: flex;
    align-items: center;
    gap: var(--gap-sm);
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    color: var(--text-tertiary);
    font-size: var(--text-sm);
    cursor: pointer;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.docs-hero-search-btn:hover {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-subtle);
}

.docs-hero-search-btn svg {
    flex-shrink: 0;
    color: var(--text-tertiary);
}


/* ==========================================================================
   10. Section Headers
   ========================================================================== */

.section-header {
    margin-bottom: var(--gap-lg);
}

.section-title {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--text);
}

.section-featured,
.section-sections,
.section-latest {
    padding-block: var(--gap-xl);
}

.section-featured + .section-sections {
    padding-top: 0;
}


/* ==========================================================================
   11. Doc Card (Homepage Grid)
   ========================================================================== */

.docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--gap);
}

.doc-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.doc-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow);
}

.doc-card-link {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: var(--gap);
}

.doc-card-tag {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--gap-xs);
}

.doc-card-title {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text);
    margin-bottom: var(--gap-xs);
}

.doc-card-excerpt {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.6;
}

.doc-card-footer {
    margin-top: var(--gap);
    color: var(--accent);
}

.doc-card-footer svg {
    transition: transform var(--transition);
}

.doc-card:hover .doc-card-footer svg {
    transform: translateX(4px);
}


/* ==========================================================================
   12. Section Cards (Tag Grid on Homepage)
   ========================================================================== */

.sections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--gap);
}

.section-card {
    display: flex;
    align-items: flex-start;
    gap: var(--gap-sm);
    padding: var(--gap);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.section-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow);
}

.section-card-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--accent-subtle);
    border-radius: var(--radius);
    color: var(--accent);
}

.section-card-title {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.section-card-description {
    font-size: var(--text-xs);
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0.25rem;
}

.section-card-count {
    font-size: var(--text-xs);
    color: var(--text-tertiary);
}


/* ==========================================================================
   13. Docs List (Latest Updates, Tag Pages)
   ========================================================================== */

.docs-list {
    display: flex;
    flex-direction: column;
}

.docs-list-item {
    border-bottom: 1px solid var(--border-light);
}

.docs-list-item:last-child {
    border-bottom: none;
}

.docs-list-item-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--gap);
    padding: var(--gap-sm) 0;
    transition: background-color var(--transition);
}

.docs-list-item-link:hover {
    background: var(--bg-sidebar);
    margin-left: calc(var(--gap-xs) * -1);
    margin-right: calc(var(--gap-xs) * -1);
    padding-left: var(--gap-xs);
    padding-right: var(--gap-xs);
    border-radius: var(--radius);
}

.docs-list-item-content {
    flex: 1;
    min-width: 0;
}

.docs-list-item-title {
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.docs-list-item-excerpt {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.5;
    max-width: 65ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.docs-list-item-meta {
    display: flex;
    align-items: center;
    gap: var(--gap-sm);
    flex-shrink: 0;
}

.docs-list-item-tag {
    display: inline-flex;
    padding: 0.125rem 0.5rem;
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--accent);
    background: var(--accent-subtle);
    border-radius: 999px;
}

.docs-list-item-date {
    font-size: var(--text-xs);
    color: var(--text-tertiary);
    white-space: nowrap;
}

.docs-list-item-reading-time {
    font-size: var(--text-xs);
    color: var(--text-tertiary);
    white-space: nowrap;
}


/* ==========================================================================
   14. Three-Column Doc Layout (post.hbs)
   ========================================================================== */

.doc-layout {
    display: grid;
    grid-template-columns: 1fr;
    min-height: calc(100vh - var(--header-height));
}

.doc-content {
    padding: var(--gap) var(--gap) var(--gap-2xl);
    max-width: 100%;
    min-width: 0;
}

/* Sidebar Toggle (Mobile) */
.doc-sidebar-toggle {
    position: fixed;
    bottom: var(--gap);
    left: var(--gap);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    transition: background-color var(--transition);
}

.doc-sidebar-toggle:hover {
    background: var(--accent-hover);
}


/* ==========================================================================
   15. Doc Sidebar (Left)
   ========================================================================== */

.doc-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    z-index: 200;
    transform: translateX(-100%);
    transition: transform var(--transition-slow);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.doc-sidebar.is-open {
    transform: translateX(0);
}

.doc-sidebar-inner {
    padding: var(--gap);
}

.doc-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--gap);
    padding-bottom: var(--gap-sm);
    border-bottom: 1px solid var(--border);
}

.doc-sidebar-title {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.doc-sidebar-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    border-radius: var(--radius);
    color: var(--text-secondary);
    transition: color var(--transition);
}

.doc-sidebar-close:hover {
    color: var(--text);
}

/* Sidebar Sections */
.doc-sidebar-section {
    margin-bottom: var(--gap-xs);
}

.doc-sidebar-section-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.375rem 0;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text);
    text-align: left;
}

.doc-sidebar-section-toggle:hover {
    color: var(--accent);
}

.doc-sidebar-section-chevron {
    transition: transform var(--transition);
    flex-shrink: 0;
}

.doc-sidebar-section.is-collapsed .doc-sidebar-section-chevron {
    transform: rotate(-90deg);
}

.doc-sidebar-section-links {
    transition: max-height var(--transition-slow);
    overflow: hidden;
}

.doc-sidebar-section.is-collapsed .doc-sidebar-section-links {
    max-height: 0;
}

.doc-sidebar-link {
    margin: 0;
}

.doc-sidebar-link-anchor {
    display: block;
    padding: 0.25rem 0 0.25rem 0.75rem;
    font-size: var(--text-sm);
    color: var(--text-secondary);
    border-left: 2px solid transparent;
    transition: color var(--transition), border-left-color var(--transition);
    line-height: 1.5;
}

.doc-sidebar-link-anchor:hover {
    color: var(--text);
    border-left-color: var(--border);
}

.doc-sidebar-link-anchor.is-active {
    color: var(--accent);
    border-left-color: var(--accent);
    font-weight: 500;
}


/* ==========================================================================
   16. Doc TOC (Right Sidebar)
   ========================================================================== */

.doc-toc {
    display: none;
}

.doc-toc-inner {
    position: sticky;
    top: calc(var(--header-height) + var(--gap));
    padding: var(--gap) 0;
}

.doc-toc-title {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--gap-sm);
}

.toc-list {
    display: flex;
    flex-direction: column;
}

.toc-item {
    margin: 0;
}

.toc-link {
    display: block;
    padding: 0.25rem 0;
    font-size: var(--text-xs);
    color: var(--text-secondary);
    border-left: 2px solid transparent;
    padding-left: 0.75rem;
    transition: color var(--transition), border-left-color var(--transition);
    line-height: 1.5;
}

.toc-link[data-level="3"] {
    padding-left: 1.5rem;
}

.toc-link:hover {
    color: var(--text);
    border-left-color: var(--border);
}

.toc-link.is-active {
    color: var(--accent);
    border-left-color: var(--accent);
    font-weight: 500;
}


/* ==========================================================================
   17. Breadcrumbs
   ========================================================================== */

.breadcrumbs {
    margin-bottom: var(--gap);
}

.breadcrumbs-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.breadcrumbs-item {
    display: flex;
    align-items: center;
}

.breadcrumbs-item + .breadcrumbs-item::before {
    content: '/';
    margin-right: 0.25rem;
    color: var(--text-tertiary);
}

.breadcrumbs-item a {
    color: var(--text-secondary);
    transition: color var(--transition);
}

.breadcrumbs-item a:hover {
    color: var(--accent);
}

.breadcrumbs-current {
    color: var(--text);
    font-weight: 500;
}


/* ==========================================================================
   18. Doc Content (Article Body)
   ========================================================================== */

.doc-content-header {
    margin-bottom: var(--gap-lg);
}

.doc-content-title {
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--text);
    margin-bottom: var(--gap-xs);
}

.doc-content-meta {
    display: flex;
    align-items: center;
    gap: var(--gap-sm);
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.doc-content-meta time {
    color: var(--text-tertiary);
}


/* ==========================================================================
   19. Ghost Content (gh-content) — Documentation Styles
   ========================================================================== */

.gh-content {
    font-size: var(--text-base);
    line-height: 1.8;
    color: var(--text);
}

.gh-content > * + * {
    margin-top: 1.5em;
}

.gh-content h2 {
    font-size: var(--text-2xl);
    font-weight: 700;
    margin-top: 2.5em;
    margin-bottom: 0.75em;
    padding-top: 0.5em;
    color: var(--text);
}

.gh-content h3 {
    font-size: var(--text-xl);
    font-weight: 600;
    margin-top: 2em;
    margin-bottom: 0.5em;
    color: var(--text);
}

.gh-content h4 {
    font-size: var(--text-lg);
    font-weight: 600;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    color: var(--text);
}

.gh-content h2 + *,
.gh-content h3 + *,
.gh-content h4 + * {
    margin-top: 0;
}

.gh-content p {
    margin-bottom: 0;
}

.gh-content a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color var(--transition);
}

.gh-content a:hover {
    color: var(--accent-hover);
}

.gh-content .btn,
.gh-content .kg-btn {
    text-decoration: none;
}

.gh-content strong {
    font-weight: 600;
}

.gh-content em {
    font-style: italic;
}

/* Lists */
.gh-content ul,
.gh-content ol {
    padding-left: 1.5em;
}

.gh-content ul {
    list-style: disc;
}

.gh-content ol {
    list-style: decimal;
}

.gh-content li {
    margin-bottom: 0.375em;
    line-height: 1.7;
}

.gh-content li > ul,
.gh-content li > ol {
    margin-top: 0.375em;
}

/* Inline Code */
.gh-content code {
    font-family: var(--font-mono);
    font-size: 0.875em;
    padding: 0.125em 0.375em;
    background: var(--bg-sidebar);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
}

/* Code Blocks */
.gh-content pre {
    position: relative;
    background: var(--bg-code);
    border-radius: var(--radius-lg);
    padding: var(--gap);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 1.5em;
    margin-bottom: 1.5em;
    scrollbar-width: thin;
    scrollbar-color: var(--border) var(--bg-code);
}

.gh-content pre::-webkit-scrollbar { width: 6px; height: 6px; }
.gh-content pre::-webkit-scrollbar-track { background: var(--bg-code); border-radius: 3px; }
.gh-content pre::-webkit-scrollbar-thumb { background-color: var(--border); border-radius: 3px; }
.gh-content pre::-webkit-scrollbar-corner { background: var(--bg-code); }

.gh-content pre code {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--code-text);
    background: none;
    border: none;
    padding: 0;
    line-height: 1.6;
    white-space: pre;
}

/* Prism.js overrides — inherit theme surfaces */
.gh-content pre[class*="language-"] {
    background: var(--bg-code);
    border-radius: var(--radius-lg);
    padding: var(--gap);
    overflow-x: auto;
    margin-top: 1.5em;
    margin-bottom: 1.5em;
}

.gh-content code[class*="language-"] {
    background: none;
    color: var(--code-text);
    text-shadow: none;
}

/* Code Copy Button */
.code-copy-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.25rem 0.625rem;
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--text-tertiary);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    cursor: pointer;
    opacity: 0;
    transition: opacity var(--transition), background-color var(--transition), color var(--transition);
}

pre:hover .code-copy-btn {
    opacity: 1;
}

.code-copy-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.code-copy-btn.is-copied {
    color: var(--success);
    border-color: var(--success);
}

/* Blockquotes */
.gh-content blockquote {
    border-left: 3px solid var(--accent);
    padding-left: var(--gap);
    color: var(--text-secondary);
    font-style: italic;
}

.gh-content blockquote.kg-blockquote-alt {
    border-left: none;
    border-right: 3px solid var(--accent);
    padding-left: 0;
    padding-right: var(--gap);
    text-align: right;
    font-size: 1.125em;
}

/* Horizontal Rule */
.gh-content hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2em 0;
}

/* Images */
.gh-content img {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.gh-content figure {
    margin-top: 1.5em;
    margin-bottom: 1.5em;
}

.gh-content figcaption {
    margin-top: 0.5em;
    font-size: var(--text-sm);
    color: var(--text-tertiary);
    text-align: center;
}

/* Tables */
.gh-content table {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    font-size: var(--text-sm);
    margin-top: 1.5em;
    margin-bottom: 1.5em;
}

.gh-content thead {
    background: var(--bg-sidebar);
}

.gh-content th {
    padding: 0.75rem 1rem;
    font-weight: 600;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.gh-content td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-light);
}

.gh-content tbody tr:nth-child(even) {
    background: var(--bg-sidebar);
}

.gh-content tbody tr:last-child td {
    border-bottom: none;
}

/* Responsive Table Wrapper */
.gh-content .kg-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Heading Anchors */
.gh-content .has-anchor {
    position: relative;
}

.heading-anchor {
    display: inline-flex;
    align-items: center;
    margin-left: 0.375rem;
    color: var(--text-tertiary);
    opacity: 0;
    transition: opacity var(--transition), color var(--transition);
    text-decoration: none;
    vertical-align: middle;
}

.has-anchor:hover .heading-anchor {
    opacity: 1;
}

.heading-anchor:hover {
    color: var(--accent);
}


/* ==========================================================================
   20. Ghost Card Styles
   ========================================================================== */

/* Callout Cards */
.kg-callout-card {
    padding: var(--gap);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: flex-start;
    gap: var(--gap-sm);
}

.kg-callout-card-blue {
    background: var(--info-bg);
    border: 1px solid #BAE6FD;
}

.kg-callout-card-green {
    background: var(--success-bg);
    border: 1px solid #BBF7D0;
}

.kg-callout-card-yellow {
    background: var(--warning-bg);
    border: 1px solid #FDE68A;
}

.kg-callout-card-red {
    background: var(--error-bg);
    border: 1px solid #FECACA;
}

.kg-callout-card-grey {
    background: var(--bg-sidebar);
    border: 1px solid var(--border);
}

.kg-callout-card-white {
    background: var(--bg);
    border: 1px solid var(--border);
}

.kg-callout-card-accent {
    background: var(--accent-subtle);
    border: 1px solid var(--accent);
}

.kg-callout-emoji {
    font-size: var(--text-xl);
    line-height: 1.3;
}

.kg-callout-text {
    font-size: var(--text-sm);
    line-height: 1.6;
}

/* Toggle Cards */
.kg-toggle-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.kg-toggle-heading {
    padding: var(--gap-sm) var(--gap);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-sidebar);
}

.kg-toggle-heading h4 {
    font-size: var(--text-base);
    font-weight: 500;
    margin: 0;
}

.kg-toggle-content {
    padding: 0 var(--gap) var(--gap);
}

/* Bookmark Cards */
.kg-bookmark-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color var(--transition);
}

.kg-bookmark-card:hover {
    border-color: var(--accent);
}

.kg-bookmark-container {
    display: flex;
    text-decoration: none;
    color: inherit;
}

.kg-bookmark-content {
    flex: 1;
    padding: var(--gap);
    min-width: 0;
}

.kg-bookmark-title {
    font-size: var(--text-base);
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.25rem;
}

.kg-bookmark-description {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: var(--gap-xs);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.kg-bookmark-metadata {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--text-xs);
    color: var(--text-tertiary);
}

.kg-bookmark-icon {
    width: 16px;
    height: 16px;
}

.kg-bookmark-thumbnail {
    width: 200px;
    flex-shrink: 0;
}

.kg-bookmark-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

/* Button Cards */
.kg-button-card {
    text-align: center;
}

.kg-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.625rem 1.5rem;
    font-size: var(--text-sm);
    font-weight: 600;
    border-radius: var(--radius);
    text-decoration: none;
    transition: background-color var(--transition), color var(--transition);
}

.kg-btn-accent {
    background: var(--accent);
    color: #fff;
}

.kg-btn-accent:hover {
    background: var(--accent-hover);
}

/* Header Cards */
.kg-header-card {
    padding: var(--gap-2xl) var(--gap);
    text-align: center;
    border-radius: var(--radius-lg);
}

.kg-header-card h2 {
    margin-top: 0;
}

/* Image Cards */
.kg-image-card,
.kg-gallery-card {
    margin-top: 1.5em;
    margin-bottom: 1.5em;
}

/* Embed Cards */
.kg-embed-card {
    margin-top: 1.5em;
    margin-bottom: 1.5em;
}

.kg-embed-card iframe {
    width: 100%;
}

.kg-image-card img {
    width: 100%;
}

.kg-width-wide {
    margin-left: -2rem;
    margin-right: -2rem;
    max-width: calc(100% + 4rem);
    width: calc(100% + 4rem);
}

.kg-width-full {
    margin-left: calc(-1 * var(--gap));
    margin-right: calc(-1 * var(--gap));
    max-width: none;
    width: calc(100% + 2 * var(--gap));
}

/* Gallery Cards */
.kg-gallery-container {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.kg-gallery-row {
    display: flex;
    gap: 0.25rem;
}

.kg-gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Video/Audio Cards */
.kg-video-card,
.kg-audio-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

/* File Card */
.kg-file-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--gap);
}

.kg-file-card-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.kg-file-card-title {
    font-weight: 600;
}

.kg-file-card-caption {
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

/* Product Card */
.kg-product-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--gap);
}

.kg-product-card-title {
    font-size: var(--text-lg);
    font-weight: 600;
}

/* Signup Card */
.kg-signup-card {
    border-radius: var(--radius-lg);
    padding: var(--gap-xl) var(--gap);
    text-align: center;
}


/* ==========================================================================
   21. Doc Prev/Next Navigation
   ========================================================================== */

.doc-prev-next {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--gap);
    margin-top: var(--gap-xl);
    padding-top: var(--gap-xl);
    border-top: 1px solid var(--border);
}

.doc-prev-next-link {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: var(--gap);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.doc-prev-next-link:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow);
}

.doc-prev-next-prev {
    text-align: left;
}

.doc-prev-next-next {
    text-align: right;
}

.doc-prev-next-label {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.doc-prev-next-next .doc-prev-next-label {
    justify-content: flex-end;
}

.doc-prev-next-title {
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--accent);
}


/* ==========================================================================
   22. Share Buttons
   ========================================================================== */

.share-buttons {
    display: flex;
    align-items: center;
    gap: var(--gap-sm);
    margin-top: var(--gap-lg);
    padding-top: var(--gap);
    border-top: 1px solid var(--border);
}

.share-label {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.625rem;
    font-size: var(--text-sm);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: color var(--transition), border-color var(--transition);
}

.share-btn:hover {
    color: var(--text);
    border-color: var(--text-secondary);
}

.share-btn svg {
    width: 16px;
    height: 16px;
}


/* ==========================================================================
   23. Comments
   ========================================================================== */

.doc-comments {
    margin-top: var(--gap-xl);
    padding-top: var(--gap-lg);
    border-top: 1px solid var(--border);
}


/* ==========================================================================
   24. Content Gate
   ========================================================================== */

/* Content Gate - Faded Image + Prominent Gate */
.content-gate-wrapper {
    position: relative;
    margin-top: var(--gap);
    padding-bottom: var(--gap-xl);
}

.content-gate {
    text-align: center;
    padding: var(--gap-xl) var(--gap-lg);
    background: var(--bg-sidebar);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    max-width: 560px;
    margin: 0 auto;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.content-gate-lock {
    margin-bottom: var(--gap);
    color: var(--text-secondary);
}

.content-gate h3 {
    font-size: var(--text-xl);
    font-weight: 600;
    margin-bottom: var(--gap-xs);
}

.content-gate p {
    color: var(--text-secondary);
    margin-bottom: var(--gap);
}

.content-gate-button {
    display: inline-flex;
    align-items: center;
    padding: 0.625rem 1.5rem;
    font-weight: 600;
    background: var(--accent);
    color: #fff;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background-color var(--transition);
}

.content-gate-button:hover {
    background: var(--accent-hover);
}

.content-gate-signin {
    margin-top: var(--gap);
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.content-gate-signin a {
    color: var(--accent);
    font-weight: 500;
}


/* ==========================================================================
   25. Member Badge
   ========================================================================== */

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    font-size: var(--text-xs);
    font-weight: 500;
    border-radius: 999px;
    line-height: 1.5;
}

.badge-premium {
    color: var(--warning);
    background: var(--warning-bg);
}

.badge-members {
    color: var(--accent);
    background: var(--accent-subtle);
}


/* ==========================================================================
   26. Tag Page
   ========================================================================== */

.tag-page {
    padding-block: var(--gap-xl);
}

.tag-header {
    margin-bottom: var(--gap-lg);
    padding-bottom: var(--gap-lg);
    border-bottom: 1px solid var(--border);
}

.tag-header-title {
    font-size: var(--text-3xl);
    font-weight: 700;
    margin-bottom: var(--gap-xs);
}

.tag-header-description {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--gap-xs);
}

.tag-header-count {
    font-size: var(--text-sm);
    color: var(--text-tertiary);
}


/* ==========================================================================
   27. Author Page
   ========================================================================== */

.author-header {
    padding-block: var(--gap-xl);
    border-bottom: 1px solid var(--border);
    margin-bottom: var(--gap-xl);
}

.author-header-content {
    display: flex;
    align-items: center;
    gap: var(--gap);
}

.author-header-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
}

.author-header-name {
    font-size: var(--text-2xl);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.author-header-bio {
    font-size: var(--text-base);
    color: var(--text-secondary);
    line-height: 1.6;
}

.author-header-social a {
    font-size: var(--text-sm);
    color: var(--accent);
}


/* ==========================================================================
   28. Pagination
   ========================================================================== */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--gap);
    padding-block: var(--gap-xl);
}

.pagination-prev,
.pagination-next {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--accent);
    transition: color var(--transition);
}

.pagination-prev:hover,
.pagination-next:hover {
    color: var(--accent-hover);
}

.pagination-disabled {
    visibility: hidden;
}

.pagination-status {
    font-size: var(--text-sm);
    color: var(--text-tertiary);
}

.pagination-wrap {
    padding-bottom: var(--gap-xl);
}


/* ==========================================================================
   29. Newsletter CTA
   ========================================================================== */

.newsletter-cta {
    padding-block: var(--gap-xl);
    padding-inline: var(--gap);
    border-top: 1px solid var(--border);
    text-align: center;
}

.newsletter-cta-title {
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.newsletter-cta-description {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-bottom: var(--gap);
}

.subscribe-form-group {
    display: flex;
    gap: var(--gap-xs);
    max-width: 400px;
    margin: 0 auto;
}

.subscribe-form-input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    font-size: var(--text-sm);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
    transition: border-color var(--transition);
}

.subscribe-form-input:focus:not(:focus-visible) {
    outline: none;
}

.subscribe-form-input:focus-visible {
    outline: 2px solid var(--accent, currentColor);
    outline-offset: 2px;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-subtle);
}

.subscribe-form-button {
    padding: 0.5rem 1rem;
    font-size: var(--text-sm);
    font-weight: 500;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background-color var(--transition);
}

.subscribe-form-button:hover {
    background: var(--accent-hover);
}

.subscribe-form-message {
    margin-top: var(--gap-sm);
    font-size: var(--text-sm);
}

.subscribe-form-success {
    display: none;
    color: var(--success);
}

.subscribe-form-error {
    display: none;
    color: var(--error);
}


/* ==========================================================================
   30. Membership CTA
   ========================================================================== */

.membership-cta {
    padding: var(--gap-lg);
    background: var(--accent-subtle);
    border: 1px solid var(--accent);
    border-radius: var(--radius-xl);
    text-align: center;
    margin: var(--gap-lg) 0;
}

.membership-cta-title {
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.membership-cta-description {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-bottom: var(--gap);
}

.membership-cta-button {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.25rem;
    font-weight: 600;
    font-size: var(--text-sm);
    background: var(--accent);
    color: #fff;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background-color var(--transition);
}

.membership-cta-button:hover {
    background: var(--accent-hover);
}


/* ==========================================================================
   31. Auth Pages (Signup, Signin)
   ========================================================================== */

.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding-block: var(--gap-2xl);
}

.auth-card {
    width: 100%;
    max-width: 420px;
    text-align: center;
}

.auth-title {
    font-size: var(--text-2xl);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.auth-description {
    font-size: var(--text-base);
    color: var(--text-secondary);
    margin-bottom: var(--gap-lg);
}

.auth-form {
    text-align: left;
}

.auth-form-group {
    margin-bottom: var(--gap);
}

.auth-form-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.auth-form-input {
    width: 100%;
    padding: 0.625rem 0.75rem;
    font-size: var(--text-base);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
    transition: border-color var(--transition);
}

.auth-form-input:focus:not(:focus-visible) {
    outline: none;
}

.auth-form-input:focus-visible {
    outline: 2px solid var(--accent, currentColor);
    outline-offset: 2px;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-subtle);
}

.auth-form-button {
    width: 100%;
    padding: 0.625rem;
    font-size: var(--text-base);
    font-weight: 600;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background-color var(--transition);
}

.auth-form-button:hover {
    background: var(--accent-hover);
}

.auth-form-message {
    margin-top: var(--gap-sm);
    font-size: var(--text-sm);
    text-align: center;
}

.auth-form-success {
    display: none;
    color: var(--success);
}

.auth-form-error {
    display: none;
    color: var(--error);
}

.auth-footer {
    margin-top: var(--gap);
    font-size: var(--text-sm);
    color: var(--text-secondary);
    text-align: center;
}

.auth-footer a {
    color: var(--accent);
    font-weight: 500;
}

/* Auth Tiers */
.auth-tiers {
    margin-top: var(--gap-lg);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--gap);
}

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

.auth-tier-card {
    padding: var(--gap);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: left;
    display: flex;
    flex-direction: column;
}

.auth-tier-card-featured {
    border-color: var(--accent);
}

.auth-tier-name {
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.auth-tier-description {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-bottom: var(--gap-sm);
}

.auth-tier-price {
    font-size: var(--text-lg);
    font-weight: 700;
    margin-bottom: var(--gap-sm);
}

.auth-tier-benefits {
    list-style: none;
    padding: 0;
}

.auth-tier-benefits li {
    position: relative;
    padding-left: 1.25rem;
    font-size: var(--text-sm);
    margin-bottom: 0.375rem;
}

.auth-tier-benefits li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 6px;
    height: 6px;
    background: var(--success);
    border-radius: 50%;
}

.auth-tier-benefits {
    flex: 1;
}

.auth-tier-button {
    display: block;
    text-align: center;
    padding: 0.625rem 1.25rem;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    margin-top: var(--gap);
    transition: background 0.2s ease;
}

.auth-tier-button:hover {
    background: var(--accent-hover);
}

.auth-tier-button-secondary {
    background: var(--bg-sidebar);
    color: var(--text);
    border: 1px solid var(--border);
}

.auth-tier-button-secondary:hover {
    background: var(--border-light);
}


/* ==========================================================================
   32. Account Page
   ========================================================================== */

.account-page {
    padding-block: var(--gap-2xl);
}

.account-title {
    font-size: var(--text-2xl);
    font-weight: 700;
    margin-bottom: var(--gap-lg);
}

.account-card {
    padding: var(--gap);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: var(--gap-lg);
}

.account-profile {
    display: flex;
    align-items: center;
    gap: var(--gap);
    margin-bottom: var(--gap);
}

.account-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
}

.account-name {
    font-weight: 600;
}

.account-email {
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.account-actions {
    display: flex;
    gap: var(--gap-sm);
}

.account-btn {
    padding: 0.5rem 1rem;
    font-size: var(--text-sm);
    font-weight: 500;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color var(--transition), color var(--transition);
}

.account-btn:hover {
    border-color: var(--text-secondary);
}

.account-btn-portal {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.account-btn-portal:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

.account-section-title {
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--gap-sm);
}

.account-subscription {
    padding: var(--gap);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.account-tier {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--gap-xs) 0;
}

.account-tier-name {
    font-weight: 500;
}

.account-tier-price {
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.account-guest {
    text-align: center;
    padding: var(--gap-2xl) 0;
}

.account-guest p {
    color: var(--text-secondary);
    margin-bottom: var(--gap);
}


/* ==========================================================================
   33. Page Full (Static Pages)
   ========================================================================== */

.page-full {
    padding-block: var(--gap-xl);
    overflow-x: hidden;
    overflow-wrap: break-word;
    word-break: break-word;
}

.page-full-header {
    text-align: center;
    margin-bottom: var(--gap-lg);
}

.page-full-title {
    font-size: var(--text-4xl);
    font-weight: 700;
    margin-bottom: var(--gap-xs);
}

.page-full-excerpt {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.page-full-image {
    margin-bottom: var(--gap-lg);
}

.page-full-image img {
    border-radius: var(--radius-xl);
    width: 100%;
}

.page-full-image figcaption {
    margin-top: 0.5rem;
    text-align: center;
    font-size: var(--text-sm);
    color: var(--text-tertiary);
}

.page-full-content {
    padding-bottom: var(--gap-2xl);
}


/* ==========================================================================
   34. Full-Width Layout
   ========================================================================== */

.doc-layout-fullwidth {
    padding-block: var(--gap-xl);
}

.doc-content-body-wide {
    max-width: none;
}

.page-full-wide .page-full-content {
    max-width: none;
}


/* ==========================================================================
   35. Error Page
   ========================================================================== */

.error-page {
    text-align: center;
    padding-block: var(--gap-2xl);
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.error-code {
    font-size: 6rem;
    font-weight: 700;
    color: var(--border);
    line-height: 1;
    margin-bottom: var(--gap-sm);
}

.error-message {
    font-size: var(--text-2xl);
    font-weight: 600;
    margin-bottom: var(--gap-xs);
}

.error-description {
    font-size: var(--text-base);
    color: var(--text-secondary);
    margin-bottom: var(--gap-lg);
}

.error-link {
    display: inline-flex;
    align-items: center;
    padding: 0.625rem 1.5rem;
    font-weight: 600;
    background: var(--accent);
    color: #fff;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background-color var(--transition);
}

.error-link:hover {
    background: var(--accent-hover);
}


/* ==========================================================================
   36. Footer
   ========================================================================== */

.site-footer {
    border-top: 1px solid var(--border);
    padding: var(--gap) 0;
    background: var(--bg);
}

.site-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--gap);
    flex-wrap: wrap;
}

.site-footer-copyright {
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.site-footer-powered {
    font-size: var(--text-sm);
    color: var(--text-tertiary);
}

.site-footer-powered a {
    color: var(--text-tertiary);
    transition: color var(--transition);
}

.site-footer-powered a:hover {
    color: var(--text-secondary);
}

.site-footer-social {
    display: flex;
    align-items: center;
    gap: var(--gap-sm);
}

.site-footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    color: var(--text-tertiary);
    transition: color var(--transition);
}

.site-footer-social a:hover {
    color: var(--text);
}


/* ==========================================================================
   37. Sidebar Overlay (Mobile)
   ========================================================================== */

body.sidebar-open::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 150;
}

body.menu-open {
    overflow: hidden;
    height: 100dvh;
    touch-action: none;
}


/* ==========================================================================
   37b. Responsive — Mobile Overflow Prevention
   ========================================================================== */

@media (max-width: 639px) {
    .kg-width-wide {
        margin-left: calc(-1 * var(--gap));
        margin-right: calc(-1 * var(--gap));
        max-width: calc(100% + 2 * var(--gap));
        width: calc(100% + 2 * var(--gap));
    }

    .kg-bookmark-container {
        flex-direction: column;
    }

    .kg-bookmark-thumbnail {
        width: 100%;
        height: 160px;
    }

    .gh-content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .site-footer-powered a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }
}


/* ==========================================================================
   38. Responsive — 640px (Small)
   ========================================================================== */

@media (min-width: 640px) {
    .docs-hero-title {
        font-size: var(--text-4xl);
    }

    .doc-prev-next {
        grid-template-columns: 1fr 1fr;
    }

    .docs-list-item-excerpt {
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
}


/* ==========================================================================
   39. Responsive — 768px (Medium)
   ========================================================================== */

@media (min-width: 768px) {
    :root {
        --gap: 2rem;
    }

    .doc-content {
        padding: var(--gap) var(--gap-lg) var(--gap-2xl);
    }
}


/* ==========================================================================
   40. Responsive — 1024px (Large)
   ========================================================================== */

@media (min-width: 1024px) {
    .doc-sidebar {
        position: sticky;
        top: var(--header-height);
        height: calc(100vh - var(--header-height));
        transform: none;
        z-index: auto;
    }

    .doc-sidebar-close {
        display: none;
    }

    .doc-sidebar-toggle {
        display: none;
    }

    .doc-layout {
        grid-template-columns: var(--sidebar-width) 1fr;
    }

    .doc-toc {
        display: block;
    }

    .doc-layout {
        grid-template-columns: var(--sidebar-width) 1fr var(--toc-width);
    }

    .doc-content {
        padding: var(--gap-lg) var(--gap-xl) var(--gap-2xl);
        max-width: none;
    }
}


/* ==========================================================================
   41. Responsive — 1280px (XLarge)
   ========================================================================== */

@media (min-width: 1280px) {
    :root {
        --sidebar-width: 300px;
        --toc-width: 260px;
    }

    .doc-content {
        padding: var(--gap-lg) var(--gap-2xl) var(--gap-2xl);
    }
}


/* ==========================================================================
   42. Print Styles
   ========================================================================== */

@media print {
    .site-header,
    .site-footer,
    .doc-sidebar,
    .doc-toc,
    .doc-sidebar-toggle,
    .doc-prev-next,
    .share-buttons,
    .reading-progress,
    .code-copy-btn,
    .heading-anchor {
        display: none !important;
    }

    .doc-layout {
        display: block;
    }

    .doc-content {
        padding: 0;
        max-width: 100%;
    }

    .gh-content pre {
        white-space: pre-wrap;
        word-wrap: break-word;
    }

    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }
}


/* ==========================================================================
   43. Utilities
   ========================================================================== */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* ==========================================================================
   44. Components Page — Showcase
   ========================================================================== */

/* Layout */
.showcase-section {
    padding-block: var(--gap-2xl);
}

/* Anchor scroll offset for sticky header + nav */
[id] {
    scroll-margin-top: 120px;
}

.showcase-section > h3 {
    font-size: var(--text-xl);
    margin-top: var(--gap-lg);
    margin-bottom: var(--gap);
}

.showcase-description {
    color: var(--text-secondary);
    margin-bottom: var(--gap-xl);
    max-width: 60ch;
}

.section-title {
    font-size: var(--text-3xl);
    margin-bottom: var(--gap-sm);
}

.showcase-block {
    padding: var(--gap-lg);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.showcase-label {
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-tertiary);
    margin-bottom: var(--gap-sm);
}

/* Color Token Swatches */
.showcase-colors {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: var(--gap-sm);
}

.showcase-color {
    aspect-ratio: 2/1;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: flex-end;
    padding: var(--gap-xs);
    border: 1px solid var(--border);
}

.showcase-color span {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    line-height: 1.3;
}

/* Surface Elevation */
.showcase-surfaces {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--gap-sm);
}

.showcase-surface {
    padding: var(--gap-lg);
    border-radius: var(--radius-lg);
    text-align: center;
}

.showcase-surface span {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--text-secondary);
}

/* Typography Specimens */
.type-specimen {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--border);
}

.type-specimen-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: var(--gap-lg);
    align-items: baseline;
    padding: var(--gap) 0;
    border-bottom: 1px solid var(--border);
}

.type-specimen-item:last-child {
    border-bottom: none;
}

.type-specimen-meta {
    display: flex;
    flex-direction: column;
    gap: var(--gap-xs);
}

.type-specimen-label {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.type-specimen-meta code {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--text-tertiary);
    background: none;
    padding: 0;
}

.type-specimen-sample {
    flex: 1;
    min-width: 0;
}

/* Code Block — Editor Style */
.code-block-header {
    display: flex;
    align-items: center;
    gap: var(--gap-xs);
    padding: var(--gap-xs) var(--gap);
    background: #1a2332;
    border-bottom: 1px solid var(--border);
}

.code-block-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.code-block-dot-red { background: #f87171; }
.code-block-dot-yellow { background: #fbbf24; }
.code-block-dot-green { background: #34d399; }

.code-block-filename {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--text-tertiary);
    margin-left: var(--gap-xs);
}

pre.code-highlighted {
    background: var(--bg-code);
    margin: 0;
    padding: var(--gap);
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    line-height: 1.7;
    border: none;
    border-radius: 0;
    color: var(--code-text);
}

pre.code-highlighted code {
    background: none;
    padding: 0;
    font-size: inherit;
    color: inherit;
}

/* Syntax Tokens */
.code-keyword { color: #c084fc; }
.code-function { color: #67e8f9; }
.code-string { color: #34d399; }
.code-comment { color: #52525b; font-style: italic; }
.code-operator { color: #818cf8; }
.code-param { color: #fb923c; }
.code-punctuation { color: #71717a; }

/* Buttons */
.showcase-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-sm);
    align-items: center;
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--gap);
}

.pricing-card {
    padding: var(--gap-lg);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
}

.pricing-card.is-featured {
    border-color: var(--accent);
}

.pricing-card-name {
    font-size: var(--text-xl);
    margin-bottom: var(--gap-xs);
}

.pricing-card-price {
    margin: var(--gap-sm) 0;
}

.pricing-amount {
    font-size: var(--text-4xl);
    font-weight: 800;
}

.pricing-interval {
    color: var(--text-tertiary);
}

.pricing-card-benefits {
    list-style: none;
    padding: 0;
    margin: var(--gap-sm) 0;
    flex: 1;
}

.pricing-card-benefits li {
    padding: var(--gap-xs) 0;
    color: var(--text-secondary);
}

.pricing-card-benefits li::before {
    content: "\2713  ";
    color: var(--success);
}

.pricing-card-button {
    display: block;
    text-align: center;
    padding: 0.625rem var(--gap);
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    margin-top: var(--gap-sm);
    transition: opacity var(--transition);
}

.pricing-card-button:hover {
    opacity: 0.9;
}

/* Carousel */
.showcase-carousel-wrapper {
    position: relative;
}

.showcase-carousel {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    display: flex;
    gap: var(--gap-sm);
    -webkit-overflow-scrolling: touch;
    padding-bottom: var(--gap-xs);
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.showcase-carousel::-webkit-scrollbar {
    display: none;
}

.showcase-carousel-slide {
    flex: 0 0 80%;
    scroll-snap-align: start;
    margin: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
}

.showcase-carousel-slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.showcase-carousel-slide figcaption {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    padding: 0.75rem 1rem;
    background: var(--bg-sidebar);
    border-top: 1px solid var(--border-light);
}

/* Carousel Arrows */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(calc(-50% - 1.5rem));
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: color var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.carousel-arrow:hover {
    color: var(--accent);
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
}

.carousel-arrow-prev {
    left: -20px;
}

.carousel-arrow-next {
    right: -20px;
}

.carousel-arrow svg {
    width: 20px;
    height: 20px;
}

/* Toggle Card State Handling */
.kg-toggle-card[data-kg-toggle-state="close"] .kg-toggle-content {
    display: none;
}

.kg-toggle-card[data-kg-toggle-state="open"] .kg-toggle-card-icon svg {
    transform: rotate(45deg);
}

.kg-toggle-card-icon {
    transition: transform var(--transition);
}

.kg-toggle-card-icon svg {
    width: 20px;
    height: 20px;
    transition: transform var(--transition);
}

/* Doc Grid (for theme cards section) */
.showcase-section .docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--gap);
}

/* Responsive */
@media (max-width: 768px) {
    .type-specimen-item {
        grid-template-columns: 1fr;
        gap: var(--gap-xs);
    }

    .showcase-colors {
        grid-template-columns: repeat(2, 1fr);
    }

    .showcase-surfaces {
        grid-template-columns: 1fr;
    }

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

    .showcase-section .docs-grid {
        grid-template-columns: 1fr;
    }

    .showcase-carousel-slide {
        flex: 0 0 90%;
    }

    .carousel-arrow {
        display: none;
    }

    .showcase-block[style*="grid-template-columns: 1fr 220px"] {
        display: block !important;
    }
}


/* ==========================================================================
   45. Showcase Card Overrides
   ========================================================================== */

.showcase-file-card {
    background: var(--bg-sidebar) !important;
    color: var(--text) !important;
    border: 1px solid var(--border) !important;
}

.showcase-file-card .kg-file-card-container {
    color: var(--text) !important;
}

.showcase-file-card .kg-file-card-title {
    color: var(--text) !important;
}

.showcase-product-card .kg-product-card-container {
    background: var(--bg-sidebar) !important;
    color: var(--text) !important;
    border: 1px solid var(--border) !important;
}

.showcase-product-card .kg-product-card-title {
    color: var(--text) !important;
}

.showcase-member-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}


/* ==========================================================================
   46. Section Navigation (Sticky)
   ========================================================================== */

.section-nav {
    display: flex;
    gap: var(--gap-xs);
    padding: var(--gap-sm) 0;
    margin-bottom: var(--gap);
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.section-nav::-webkit-scrollbar {
    display: none;
}

.section-nav-link {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    padding: var(--gap-xs) var(--gap-sm);
    border-radius: var(--radius);
    white-space: nowrap;
    transition: color var(--transition), background var(--transition);
}

.section-nav-link:hover {
    color: var(--text);
    background: var(--bg-sidebar);
}

@media (min-width: 769px) {
    .section-nav {
        position: sticky;
        top: var(--header-height, 60px);
        z-index: 10;
        background: var(--bg);
    }
}


/* ==========================================================================
   47. Tag / Category Cards
   ========================================================================== */

.tag-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--gap-sm);
}

.tag-card {
    display: flex;
    align-items: center;
    gap: var(--gap-xs);
    padding: var(--gap-sm);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--text);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.tag-card:hover {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-subtle);
}

.tag-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius);
    background: var(--accent-subtle);
    color: var(--accent);
    flex-shrink: 0;
}

.tag-card-name {
    font-size: var(--text-sm);
    font-weight: 600;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tag-card-count {
    font-size: var(--text-xs);
    color: var(--text-tertiary);
    font-family: var(--font-mono);
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .tag-cards-grid {
        grid-template-columns: 1fr 1fr;
    }
}


/* ==========================================================================
   48. Template Directory Grid
   ========================================================================== */

.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--gap-sm);
}

.template-card {
    display: flex;
    flex-direction: column;
    gap: var(--gap-xs);
    padding: var(--gap-sm);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.template-card-filename {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--accent);
    background: var(--accent-subtle);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    align-self: flex-start;
}

.template-card-name {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text);
}

.template-card-desc {
    font-size: var(--text-xs);
    color: var(--text-secondary);
    line-height: 1.5;
}

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


/* ==========================================================================
   49. Back to Top Button
   ========================================================================== */

.back-to-top {
    position: fixed;
    bottom: var(--gap-lg);
    right: var(--gap-lg);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity var(--transition), visibility var(--transition), transform var(--transition), background var(--transition);
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--accent-hover);
}

.back-to-top svg {
    flex-shrink: 0;
}


/* ==========================================================================
   50. TOC Demo Layout
   ========================================================================== */

.showcase-toc-demo {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: var(--gap-xl);
}

@media (max-width: 768px) {
    .showcase-toc-demo {
        grid-template-columns: 1fr;
        gap: var(--gap);
    }
}


/* ==========================================================================
   51. Template Card Links
   ========================================================================== */

.template-card-link {
    display: flex;
    flex-direction: column;
    gap: var(--gap-xs);
    padding: var(--gap-sm);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: inherit;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.template-card-link:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow);
}

.template-card-link .template-card-filename {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--accent);
    background: var(--accent-subtle);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    align-self: flex-start;
}


/* ==========================================================================
   52. Carousel Dots
   ========================================================================== */

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: var(--gap-sm);
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background var(--transition), transform var(--transition);
}

.carousel-dot.is-active {
    background: var(--accent);
    transform: scale(1.25);
}

/* =========================================================================
   Reduced Motion
   ========================================================================= */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
