html,
body,
#app {
    min-height: 100%;
    margin: 0;
}

h1 {
    margin: 0 0 1rem;
    font-size: 2rem;
    font-weight: 400;
}

h2 {
    margin: 0 0 1rem;
    font-size: 1.25rem;
    font-weight: 400;
}

h1:focus-visible, h2:focus-visible, h3:focus-visible, h4:focus-visible, h5:focus-visible, h6:focus-visible {
    outline: 2px solid var(--cb-focus);
    outline-offset: 2px;
}


.docs-hero {
    display: grid;
    gap: 1rem;
    max-width: 64rem;
    margin-bottom: 2rem;
}

.docs-hero p,
.docs-lede {
    color: var(--cb-text-secondary);
    font-size: 1rem;
}

.docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: 1rem;
}

.docs-section {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}

.docs-form-grid {
    max-width: 48rem;
}

.docs-theme-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    gap: 1rem;
}

.docs-theme-swatch,
.docs-layer-demo {
    display: grid;
    gap: 0.5rem;
    min-height: 7rem;
    padding: 1rem;
    border: 1px solid var(--cb-border-subtle);
}

.docs-token-compare {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
    gap: 1rem;
}

.docs-token-panel {
    display: grid;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--cb-border-subtle);
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.loading-progress {
    position: absolute;
    display: block;
    width: 8rem;
    height: 8rem;
    inset: 20vh 0 auto 0;
    margin: 0 auto;
}

.loading-progress circle {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 0.6rem;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
}

.loading-progress circle:last-child {
    stroke: #0f62fe;
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: 600;
    font-family: 'IBM Plex Sans', sans-serif;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

.loading-progress-text::after {
    content: var(--blazor-load-percentage-text, "Loading");
}

.docs-props-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.docs-props-table thead {
    background-color: var(--cb-layer-accent);
}

.docs-props-table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--cb-border-subtle);
}

.docs-props-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--cb-border-subtle);
}

.docs-props-table tr:hover {
    background-color: var(--cb-layer-hover);
}

.docs-props-table code {
    background-color: var(--cb-layer-accent);
    padding: 0.125rem 0.375rem;
    border-radius: 2px;
    font-family: 'Courier New', monospace;
    color: var(--cb-text-primary);
}

.docs-required {
    color: var(--cb-support-error);
    font-weight: 600;
    margin-left: 0.25rem;
}

.docs-component-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.docs-category {
    padding: 1.5rem;
    border: 1px solid var(--cb-border-subtle);
    border-radius: 4px;
}

.docs-category h2 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.docs-category p {
    margin: 0 0 1rem 0;
    font-size: 0.875rem;
    color: var(--cb-text-secondary);
}

.docs-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.docs-category li {
    margin: 0;
}

.docs-category a {
    color: var(--cb-interactive);
    text-decoration: none;
    font-size: 0.875rem;
}

.docs-category a:hover {
    text-decoration: underline;
}
