/* ==========================================================================
   GRC — Shared page shell (module-agnostic)
   Prefer these wrappers for new pages; legacy layouts continue to work.
   ========================================================================== */

.grc-page {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    min-width: 0;
}

.grc-page__header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-3) var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--border-light, var(--border));
}

.grc-page__title {
    font-family: var(--font-primary);
    font-size: var(--font-page-title, var(--font-3xl));
    font-weight: var(--font-semibold, 600);
    line-height: var(--leading-tight, 1.2);
    color: var(--text-strong, var(--text));
    margin: 0;
}

.grc-page__subtitle,
.grc-page__description {
    font-size: var(--font-meta, var(--font-sm));
    line-height: var(--leading-normal, 1.4);
    color: var(--text-muted);
    margin: var(--space-1) 0 0;
    max-width: 52rem;
}

.grc-page__toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2) var(--space-3);
}

.grc-content-container {
    max-width: var(--content-max, 1280px);
    margin-inline: auto;
    width: 100%;
    padding-inline: 0;
}

.content-area .grc-content-container {
    max-width: none;
}

.grc-section {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.grc-section__title {
    font-size: var(--font-section-title, var(--font-xl));
    font-weight: var(--font-semibold, 600);
    line-height: var(--leading-tight, 1.2);
    color: var(--text-strong, var(--text));
    margin: 0;
}

.grc-panel {
    background: var(--surface, var(--white));
    border: 1px solid var(--border-light, var(--border));
    border-radius: var(--radius-card, 0);
    box-shadow: none;
}

.grc-panel__body {
    padding: var(--space-4);
}

.grc-panel__ftr {
    padding: var(--space-3) var(--space-4);
    border-top: 1px solid var(--border-light, var(--border));
}

/* KPI strip (non-dashboard modules) */
.grc-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
    gap: var(--space-3);
}

.grc-kpi-tile {
    background: var(--surface, var(--white));
    border: 1px solid var(--border-light, var(--border));
    border-radius: var(--radius-card, 0);
    padding: var(--space-3) var(--space-4);
    min-height: 5.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--space-1);
}

.grc-kpi-tile__label {
    font-size: var(--font-table-helper, 11px);
    font-weight: var(--font-semibold, 600);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    line-height: var(--leading-tight, 1.2);
}

.grc-kpi-tile__value {
    font-size: var(--font-section-title, var(--font-xl));
    font-weight: var(--font-semibold, 600);
    line-height: var(--leading-tight, 1.2);
    color: var(--text-strong, var(--text));
}
