/*
 * The masthead on a record that owns several pages.
 *
 * A coverholder is worked on across nine tabs, and the legacy screen names the
 * firm on every one of them. Filament names the section instead, so the name
 * takes the page heading here and everything that qualifies it (the code the
 * rest of the system refers to the firm by, and the states worth pausing over)
 * sits on the same line at a size that does not compete with it.
 *
 * Registered CSS assets are rendered by `@filamentStyles` ahead of the panel
 * theme, so Filament's own rules come later in the cascade than this file.
 * Nothing below overrides a vendor rule, so no extra specificity is needed.
 */
.fi-record-identity {
    align-items: center;
    column-gap: calc(var(--spacing) * 3);
    display: flex;
    flex-wrap: wrap;
    row-gap: calc(var(--spacing) * 2);
}

/*
 * The heading's tight tracking is drawn for a run of words at 24px. It reads as
 * cramped on the short, capitalised strings beside the name, which set their
 * own size anyway.
 */
.fi-record-identity :not(.fi-record-identity-name) {
    letter-spacing: normal;
}

/*
 * The code is a handle rather than a word: three or four letters that appear on
 * policy references and in file names, where they are read a character at a
 * time. Monospaced, so a zero cannot be taken for an O.
 */
.fi-record-identity-code {
    background-color: var(--gray-100);
    border-radius: var(--radius-md);
    color: var(--gray-600);
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    font-weight: var(--font-weight-medium);
    line-height: 1;
    padding: calc(var(--spacing) * 1.5) calc(var(--spacing) * 2);
}

.dark .fi-record-identity-code {
    background-color: var(--gray-800);
    color: var(--gray-300);
}

/*
 * The header and anything qualifying it are one block. Left as separate
 * children of the page container they would be pushed two rems apart, far
 * enough that an alert stops reading as belonging to the record above it.
 */
.fi-record-header {
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing) * 4);
}
