:root {
    color-scheme: light dark;
    font-family: Roboto, "Segoe UI", system-ui, -apple-system, sans-serif;
    scroll-behavior: smooth;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--wf-mui-palette-background); color: var(--wf-mui-palette-text); }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible, [role="tab"]:focus-visible { outline: 3px solid var(--wf-mui-palette-primary); outline-offset: 3px; }
code { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
.documentation-brand .wf-mui-navbar-item-link { justify-content: center; min-width: 48px; padding: .2rem .4rem; }
.documentation-brand-logotype { display: block; height: 48px; object-fit: contain; width: auto; }
.documentation-brand-logotype-mobile, .mobile-library-navigation { display: none; }
.desktop-library-navigation { display: flex; }
.theme-mode-toggle { flex: 0 0 auto; }

.documentation-frame {
    display: grid;
    gap: 1rem;
    grid-template-columns: 280px minmax(0, 1fr);
    min-height: 100vh;
    padding-top: 56px;
}
.documentation-content { min-width: 0; }
.section-navigation { min-width: 0; width: 280px; }
.documentation-side-menu {
    height: calc(100dvh - 56px) !important;
    left: 0 !important;
    position: fixed !important;
    top: 56px !important;
    width: 280px;
    z-index: 20;
}
.side-menu-scroll { height: 100%; overflow-y: auto; overscroll-behavior: contain; }
.documentation-menu { height: auto; min-height: 100%; padding-block: .5rem 1rem; }
.documentation-menu > .wf-mui-text { padding-inline: 1rem; }
.documentation-side-menu .wf-mui-side-menu-toggler { display: none; }

.documentation-page { padding: clamp(1rem, 3vw, 2.5rem) 1rem 5rem; }
.section-hero { display: grid; gap: 1rem; overflow: hidden; padding: clamp(1.5rem, 4vw, 3rem); }
.section-hero > * { max-width: 100%; min-width: 0; }
.section-hero h1 { font-size: clamp(2.5rem, 6vw, 5rem) !important; letter-spacing: -.045em !important; margin: 0 !important; }
.section-hero > p { font-size: 1.05rem; line-height: 1.7; margin: 0; max-width: 70ch; }
.section-hero .wf-mui-chip { white-space: normal; width: fit-content; }
.section-stats { display: flex; flex-wrap: wrap; gap: .5rem; }
.overview-grid { align-items: stretch; }
.overview-grid > .wf-mui-item { display: flex; }
.overview-card { display: flex; flex-direction: column; height: 100%; width: 100%; }
.overview-card .wf-mui-card-content { flex: 1; }
.overview-card h5 { margin: 0; }
.add-on-section { display: block; width: 100%; }

/* Ensure add-ons grid uses full width and consistent card sizing */
.add-ons-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.add-ons-grid > .wf-mui-item { display: block; width: 100%; }
.add-on-card { width: 100%; }
.add-on-card .wf-mui-card-header { grid-auto-flow: row; }

@media (min-width: 1200px) {
  /* Keep single-column layout by default; change to repeat(2, 1fr) for two-column */
  .add-ons-grid { grid-template-columns: 1fr; }
}
.add-on-card .wf-mui-card-header { display: grid; gap: .75rem; }
.add-on-card .wf-mui-card-header h2,
.add-on-card .wf-mui-card-content h3 { margin: 0; }
.add-on-card .wf-mui-card-content { display: grid; gap: 1rem; }
.add-on-capabilities { display: grid; gap: .65rem; line-height: 1.6; margin: 0; padding-inline-start: 1.25rem; }
.add-on-install-command { margin: .25rem 0 0; }
.add-on-install-command code { overflow-wrap: anywhere; word-break: break-word; }
.nuget-package-section { min-width: 0; }
.nuget-package-paper { display: grid; gap: 1rem; overflow: hidden; padding: clamp(1.5rem, 4vw, 3rem); }
.nuget-package-paper > .wf-mui-text { margin: 0; }
.nuget-package-grid { margin-top: .5rem; }
.nuget-package-card code { overflow-wrap: anywhere; word-break: break-word; }
.nuget-package-card pre { margin-top: 1rem; }

.catalog-shell { padding-block: clamp(2rem, 5vw, 5rem) 7rem; }
.hero { min-height: 620px; padding: clamp(2rem, 7vw, 6rem); }
.hero > .wf-mui-container { align-items: end; min-height: 500px; }
.hero-copy-column { display: block; }
.kicker, .component-kind { color: var(--wf-mui-palette-primary); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.hero-title { font-size: clamp(3.2rem, 7vw, 7rem) !important; letter-spacing: -.065em !important; line-height: .88 !important; margin: 1rem 0 2rem !important; }
.hero-copy { font-size: clamp(1rem, 2vw, 1.25rem); line-height: 1.7; max-width: 62ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero-stat { display: grid; gap: .6rem; padding: 1.5rem; }
.hero-stat .wf-mui-typo-h3 { margin: 0; }
.hero-stat .wf-mui-typo-body2 { margin: 0 0 .5rem; }

.directory-index { padding: 1rem; }
.directory-index > .wf-mui-text { margin: 0 0 .75rem; }
.directory-index .wf-mui-navbar { flex-wrap: wrap; }
.directory-index .wf-mui-navbar-item { font-family: monospace; font-size: .78rem; }

.icon-gallery { display: grid; gap: 1.25rem; margin-top: 1rem; min-width: 0; }
.icon-gallery-heading { align-items: end; display: flex; gap: 1.5rem; justify-content: space-between; }
.icon-gallery-heading > div { display: grid; gap: .5rem; }
.icon-gallery-heading .wf-mui-text { margin: 0; }
.icon-gallery-search { flex: 0 1 28rem; width: 100%; }
.icon-gallery-grid { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.icon-gallery-item { align-items: center; display: grid; gap: .5rem; justify-items: center; min-width: 0; padding: 1rem; text-align: center; }
.icon-gallery-item .wf-mui-icon { color: var(--wf-mui-palette-primary); }
.icon-gallery-item code, .icon-gallery-item span { max-width: 100%; overflow-wrap: anywhere; }
.icon-gallery-item code { font-size: .75rem; }
.icon-gallery-item span { font-size: .7rem; opacity: .72; }
.icon-gallery-pagination { justify-content: center; }

.component-group-page { min-width: 0; }
.catalog-groups { display: block; min-width: 0; }
.group-heading { display: grid; gap: .75rem; padding: clamp(1.2rem, 3vw, 2.25rem); }
.group-heading h2 { font-size: clamp(2rem, 5vw, 4.5rem) !important; letter-spacing: -.045em !important; line-height: 1 !important; margin: 0 !important; }
.group-heading p { line-height: 1.6; margin: 0; max-width: 70ch; }
.component-list { padding-top: 1rem; }
.component-list > .wf-mui-item { display: block; min-width: 0; }
.component-list article, .component-entry { max-width: 100%; min-width: 0; width: 100%; }
.component-entry { overflow: hidden; }
.entry-title-row { align-items: flex-start; display: flex; gap: 1rem; justify-content: space-between; width: 100%; }
.entry-title-row h3 { margin: .5rem 0 0; }
.entry-summary { line-height: 1.6; margin: 0 0 1.25rem; }
.component-example { max-width: 100%; min-width: 0; overflow: hidden; }
.component-example-tabs > .wf-mui-tab-panel { max-height: none; padding: 0; }
.live-preview { align-items: center; background: var(--wf-mui-palette-background); display: flex; justify-content: center; min-height: 240px; padding: clamp(1.5rem, 4vw, 3rem); position: relative; }
.live-preview > * { max-width: 100%; }
.code-example { background: #1d1b20; min-height: 240px; }
.code-example-label { color: #cac4d0; font-size: .75rem; font-weight: 700; letter-spacing: .08em; padding: 1rem 1.25rem 0; text-transform: uppercase; }
pre { background: #1d1b20; border: 0; border-radius: 0; color: #f5eff7; contain: inline-size; margin: 0; max-width: 100%; min-width: 0; overflow-x: auto; padding: 1.25rem; width: 100%; }
.infrastructure-preview { border: 1px dashed var(--wf-mui-palette-default-border); display: grid; gap: .5rem; max-width: 340px; padding: 1.2rem; }
.infrastructure-preview span { line-height: 1.5; }
.entry-api { margin: 0; max-width: 100%; overflow-x: auto; }
.entry-api:not([open]) > :not(summary) { display: none !important; }
.entry-api summary { cursor: pointer; font-weight: 600; min-height: 52px; padding: 1rem 1.5rem; }
.entry-api .wf-mui-table { margin-top: .5rem; width: 100%; }
.entry-api .wf-mui-table code { color: var(--wf-mui-palette-primary); }
.preview-flex { display: flex; min-width: 260px; }
.contained-appbar { min-height: 70px; overflow: hidden; position: relative; width: 100%; }
.live-preview .preview-appbar,
.live-preview .preview-navbar {
    inset: auto !important;
    position: relative !important;
    width: 100%;
    z-index: 1;
}
.live-preview .preview-appbar { min-height: 64px; }
.live-preview .preview-navbar { flex-wrap: wrap; height: auto; min-height: 48px; }
.preview-appbar-title { padding: 1rem; }
.menu-preview { display: grid; min-width: 220px; }
.native-preview-table { border-collapse: collapse; width: 100%; }
.native-preview-table th, .native-preview-table td { border: 1px solid var(--wf-mui-palette-default-border); padding: .7rem; text-align: left; }

.docs-page { padding: clamp(1rem, 3vw, 2.5rem) 1rem 5rem; }
.docs-intro, .readme-paper { padding: clamp(1.5rem, 5vw, 4rem); }
.docs-intro h1 { font-size: clamp(3rem, 8vw, 7rem) !important; letter-spacing: -.06em !important; margin: .75rem 0 !important; }
.docs-intro > p { font-size: 1.1rem; line-height: 1.7; max-width: 70ch; }
.docs-intro .wf-mui-alert { margin-top: 1.5rem; }
.readme-content { line-height: 1.7; }
.readme-content h1 { display: none; }
.readme-content h2 { border-top: 1px solid var(--wf-mui-palette-default-border); font-size: clamp(1.8rem, 4vw, 3rem); margin-top: 4rem; padding-top: 2rem; }
.readme-content h3 { color: var(--wf-mui-palette-primary); margin-top: 2.5rem; }
.readme-content table { border-collapse: collapse; display: block; overflow-x: auto; }
.readme-content th, .readme-content td { border: 1px solid var(--wf-mui-palette-default-border); padding: .7rem; text-align: left; }
.readme-content :not(pre) > code { color: var(--wf-mui-palette-primary); padding: .12rem .35rem; }
.skill-paper { max-width: 100%; overflow: hidden; }
.skill-content { overflow-wrap: anywhere; }
.skill-download {
    align-items: center;
    background: var(--wf-mui-palette-secondary);
    border-radius: .4rem;
    color: var(--wf-mui-palette-secondary-text);
    display: inline-flex;
    font-weight: 700;
    justify-content: center;
    min-height: 44px;
    padding: .7rem 1rem;
    text-decoration: none;
    width: fit-content;
}
.mcp-section { max-width: 100%; overflow: hidden; padding: clamp(1rem, 3vw, 2rem); }
.mcp-tool-card { max-width: 100%; min-width: 0; overflow: hidden; width: 100%; }
.mcp-tool-card code { overflow-wrap: anywhere; word-break: break-word; }
.site-footer { border-top: 1px solid var(--wf-mui-palette-default-border); padding: 2rem clamp(1rem, 7vw, 8rem); }
.boot-loader {
    background: #141218;
    display: grid;
    gap: 1.5rem;
    min-height: 100vh;
    place-content: center;
    text-align: center;
    transition: opacity .6s ease;
}
.boot-loader .loading-text { color: #e6e0e9; font-size: .95rem; }
.loader-logo { height: 128px; position: relative; width: 128px; margin: 0 auto; }
.loader-logo img { height: 100%; left: 0; object-fit: contain; position: absolute; top: 0; width: 100%; }
.loader-logo .loader-logo-gray { filter: grayscale(100%); }
.loader-logo .loader-logo-color {
    animation: reveal-from-bottom .6s ease-in-out .25s both;
    clip-path: inset(100% 0 0 0);
}
@keyframes reveal-from-bottom {
    from { clip-path: inset(100% 0 0 0); }
    to { clip-path: inset(0 0 0 0); }
}
.loading-bar {
    background: rgba(255, 159, 95, .25);
    border-radius: 999px;
    height: 4px;
    margin: 0 auto;
    overflow: hidden;
    width: 240px;
}
.loading-progress {
    background: var(--wf-mui-palette-primary, #FF9F5F);
    height: 100%;
    transition: width 300ms ease;
    width: 0%;
}
#blazor-error-ui { background: #9e2a2b; bottom: 0; display: none; left: 0; padding: 1rem; position: fixed; right: 0; z-index: 1000; }

@media (prefers-reduced-motion: reduce) {
    .boot-loader { transition: opacity .3s ease; }
    .loader-logo .loader-logo-color {
        animation: none;
        clip-path: inset(0 0 0 0);
    }
    .loading-progress { transition: none; }
}
@media (max-width: 800px) {
    .wf-mui-navbar.library-navigation { flex-wrap: nowrap; height: var(--wf-mui-appbar-height, 64px); padding-inline: .5rem; }
    .library-navigation > .wf-mui-navbar-item { width: auto; }
    .desktop-library-navigation { display: none; }
    .mobile-library-navigation { display: flex; }
    .documentation-brand-logotype-desktop { display: none; }
    .documentation-brand-logotype-mobile { display: block; height: 36px; width: 48px; }
    .documentation-brand .wf-mui-navbar-item-link { min-width: 48px; padding-inline: .25rem; }
    .mobile-navigation-menu { position: relative; }
    .mobile-navigation-menu summary {
        align-items: center;
        cursor: pointer;
        display: flex;
        justify-content: center;
        list-style: none;
        min-height: 44px;
        min-width: 44px;
    }
    .mobile-navigation-menu summary::-webkit-details-marker { display: none; }
    .mobile-navigation-menu > nav {
        background: var(--wf-mui-palette-menu-background);
        border: 1px solid var(--wf-mui-palette-default-border);
        border-radius: .25rem;
        box-shadow: 0 4px 12px rgb(0 0 0 / 15%);
        color: var(--wf-mui-palette-menu-text);
        display: grid;
        min-width: 220px;
        padding: .25rem;
        position: absolute;
        right: 0;
        top: calc(100% + .25rem);
        z-index: calc(var(--wf-mui-zindex-appbar) + 1);
    }
    .mobile-navigation-link, .mobile-theme-toggle {
        align-items: center;
        border-radius: .25rem;
        display: flex;
        gap: .75rem;
        min-height: 44px;
        padding: .5rem .75rem;
        text-decoration: none;
    }
    .mobile-navigation-link:hover, .mobile-theme-toggle:hover { background: var(--wf-mui-palette-action-hover); }
    .mobile-theme-toggle { justify-content: space-between; }
    .documentation-frame { gap: 0; grid-template-columns: 64px minmax(0, 1fr); padding-top: 56px; }
    .section-navigation { width: 64px; }
    .documentation-side-menu {
        height: calc(100dvh - 56px) !important;
        left: 0 !important;
        position: fixed !important;
        top: 56px !important;
    }
    .documentation-side-menu:not(.wf-mui-side-menu-closed) { width: min(280px, calc(100vw - 2rem)) !important; }
    .documentation-side-menu .wf-mui-side-menu-toggler {
        bottom: .5rem;
        display: flex;
        position: absolute;
        right: .5rem;
        top: auto;
        width: auto;
        z-index: 1;
    }
    .side-menu-scroll { padding-bottom: 3.5rem; }
    .section-hero h1 { font-size: clamp(2rem, 10vw, 3rem) !important; overflow-wrap: anywhere; }
    .hero { min-height: auto; padding: 1.25rem; }
    .hero > .wf-mui-container { min-height: auto; }
    .component-example pre code { overflow-wrap: anywhere; white-space: pre-wrap; word-break: break-word; }
    .documentation-page pre code { overflow-wrap: anywhere; white-space: pre-wrap; word-break: break-word; }
    .readme-content :not(pre) > code { overflow-wrap: anywhere; word-break: break-word; }
    .entry-title-row { display: grid; }
    .icon-gallery-heading { align-items: stretch; display: grid; }
    .icon-gallery-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}
