/* =========================================================
   Base
   Carbon (assets/vendor/carbon/carbon.css) supplies the reset, the
   IBM Plex type, the colour tokens (--cds-*) for light and dark, and the
   components. This file holds the few page-wide rules the console adds.
========================================================= */

:root {
    --console-content-width: 75rem;
    --console-nav-width: 16rem;
    --console-header-height: 3rem;
}

body {
    min-height: 100vh;
    background-color: var(--cds-background);
    color: var(--cds-text-primary);
    font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 0.875rem;
    line-height: 1.42857;
    letter-spacing: 0.16px;
}

[hidden] {
    display: none !important;
}

img,
svg {
    display: block;
}

img {
    user-select: none;
    -webkit-user-drag: none;
}

/* Emphasis is a half step, not bold, so a page of names and values stays even. */

strong,
b {
    font-weight: 500;
}

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

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

ul,
ol {
    list-style: none;
}

table {
    border-collapse: collapse;
    width: 100%;
}

/* =========================================================
   Utilities
========================================================= */

.visually-hidden,
.cds--visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.muted {
    color: var(--cds-text-secondary);
}

.small {
    font-size: 0.75rem;
    line-height: 1rem;
    letter-spacing: 0.32px;
}

.numeric {
    font-variant-numeric: tabular-nums;
}

.nowrap {
    white-space: nowrap;
}

.stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.row-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.noscript {
    padding: 2.5rem;
    text-align: center;
}

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