
.u-span-all { grid-column: 1 / -1; }

.u-hidden   { display: none; }

.u-sr-only {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}
.u-nowrap   { white-space: nowrap; }

.u-rule {
    border: 0;
    border-top: 1px solid var(--border-color);
    margin: 1.5rem 0;
}

.u-chips {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.u-row {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}
.u-row:last-child { border-bottom: 0; }

.ui-state {
    padding: 1rem;
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
}

.ui-state--boxed {
    background: var(--bg-body);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
}

.ui-state--boxed-card {
    padding: 3rem;
    background: var(--bg-card);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
    font-style: normal;
}

.ui-state--error {
    color: var(--accent-danger);
    font-style: normal;
    padding: 2rem;
}

.ui-section {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.ui-label {
    font-size: var(--fs-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin: 0 0 0.5rem;
}

.ui-label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    margin: 0 0 0.5rem;
}
.ui-label-row .ui-label { margin: 0; }

.ui-subtitle {
    font-weight: 600;
    margin: 0 0 0.4rem;
}

.ui-title-note {
    font-size: var(--fs-xs);
    font-weight: 400;
    color: var(--text-muted);
}

.ui-link {
    color: var(--primary-color);
    cursor: pointer;
}
.ui-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.ui-link-more {
    color: var(--primary-color);
    font-size: 0.85em;
    white-space: nowrap;
}
.ui-link-more:hover { text-decoration: underline; }

.ui-link-ext {
    color: var(--primary-color);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.9em;
}
.ui-link-ext:hover { text-decoration: underline; }

.data-table--compact th,
.data-table--compact td { padding: 0.5rem; }

.data-table--auto th { width: auto; }

.data-table--top th,
.data-table--top td { vertical-align: top; }

.data-table .num,
.u-num { text-align: right; font-variant-numeric: tabular-nums; }

.u-w-15 { width: 15%; }
.u-w-20 { width: 20%; }
.u-w-25 { width: 25%; }
.u-w-30 { width: 30%; }
.u-w-35 { width: 35%; }
.u-w-40 { width: 40%; }
.u-w-50 { width: 50%; }

.pageTabs,
.met-tabs {
    display: flex; flex-wrap: wrap; gap: .25rem;
    margin-bottom: 1.25rem;
    border-bottom: 2px solid var(--border-color, #e5e7eb);
}

/* Colours are TOKENS, not the slate hexes that used to be here: this strip
   sits on a card in both themes, and #64748b / #334155 / #cbd5e1 only ever
   worked on the light one. */
.pageTab,
.met-tab {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .7rem 1.1rem; margin-bottom: -2px;
    background: none; border: none; border-bottom: 2px solid transparent;
    font-size: var(--fs-md); font-weight: 600; color: var(--text-muted); cursor: pointer;
    text-decoration: none;
    transition: color .15s, border-color .15s;
}

.pageTab:hover,
.met-tab:hover { color: var(--text-main); border-bottom-color: var(--border-color); }

.pageTab.is-active,
.met-tab.is-active { color: var(--primary-color); border-bottom-color: var(--primary-color); }

.pageTab i,
.met-tab i { opacity: .7; }

.fadb-svg {
    width: 1em;
    height: 1em;
    display: inline-block;
    vertical-align: -.125em;
    flex: none;
}

.fadb-icon-empty { flex: none; }
