/* Public layout corrections, 2026-08-18.
 *
 * This file deliberately owns the shared blue/graphite palette, document
 * record grid, and shell alignment. It does not reintroduce a global
 * page-composition layer, change component variants, or add decorative
 * surfaces.
 */

.public-shell {
    --av-color-success: var(--workbench-blue);
    --color-success: var(--workbench-blue);
    --success: var(--workbench-blue);
}

/* Success is an operational state, not a second visual identity. */
.public-shell .assistant-status-mini--ok,
.public-shell .status-chip--ok,
.public-shell .tone-badge--ok,
.public-shell .avds-status-badge--health {
    border-color: color-mix(in srgb, var(--workbench-blue) 30%, var(--workbench-rule));
    background: var(--workbench-blue-soft);
    color: var(--workbench-blue-dark);
}

/* A document has one visible left edge.  Supporting material may use the
 * full record measure; prose is narrower only at its right edge so it keeps a
 * comfortable line length without starting a second, centred rail. */
.public-page--document .container.document-shell--reading {
    width: min(1024px, calc(100% - 48px));
    max-width: 1024px;
}

.public-page--document :is(
    .doc-breadcrumbs,
    .doc-header,
    .doc-record-surface,
    .doc-source-row,
    .doc-provenance,
    .doc-evidence-passport,
    .av-evidence-reading__actions,
    .doc-use-note,
    .doc-context-panel,
    .document-editorial-brief,
    .doc-reading-controls,
    .document-reading-grid--single,
    .doc-use-workspace
) {
    width: 100%;
    max-width: none;
    margin-inline: 0;
}

.public-page--document .doc-record-surface :is(
    .doc-source-row,
    .doc-provenance,
    .doc-evidence-passport,
    .av-evidence-reading__actions
) {
    width: auto;
    max-width: none;
    margin-inline: 0;
}

.public-page--document .document-reading-grid--single .document-reading-main {
    width: 100%;
    max-width: none;
}

.public-page--document .doc-full-text {
    width: min(100%, 820px);
    max-width: 820px;
    margin: 28px 0 0;
    padding-top: 16px;
    border-top: 1px solid var(--workbench-rule-strong);
}

/* The public shell is one compact command bar, not two unrelated rows pushed
 * to the edges of an ultra-wide viewport. */
@media (min-width: 1181px) {
    .public-shell .site-header > .container {
        width: min(1440px, calc(100% - 48px));
        max-width: 1440px;
    }

    .public-shell .nav-links--global .nav-link {
        font-size: 0.9375rem;
    }

    .public-shell .speaker-tab,
    .public-shell .nav.nav--sectioned .corpus-nav-links .nav-link {
        font-size: 0.875rem;
    }
}

/* The footer is part of the application shell: one bounded directory, a
 * stable contact in the identity block, and readable link groups. */
.public-shell .footer-shell {
    width: min(1200px, calc(100% - 48px));
    max-width: 1200px;
    padding: 32px 0 28px;
}

.public-shell .footer-row {
    grid-template-columns: minmax(250px, 0.9fr) minmax(0, 2.35fr);
    gap: 32px 64px;
}

.public-shell .footer-meta {
    align-content: start;
}

.public-shell .footer-title {
    max-width: 360px;
    font-size: 0.9375rem;
}

.public-shell .footer-nav {
    gap: 28px;
    font-size: 0.875rem;
}

.public-shell .footer-nav-heading {
    color: var(--workbench-text-secondary);
    font-size: 0.75rem;
}

.public-shell .footer-nav-links {
    gap: 8px;
}

.public-shell .footer-nav a,
.public-shell .footer-contact {
    min-height: 30px;
    font-size: 0.875rem;
}

.public-page--document .doc-full-text .doc-body,
.public-page--document .doc-full-text .doc-body p {
    width: 100%;
    max-width: none;
    margin-inline: 0;
}

/* There is one divider before the reading column. */
.public-page--document .doc-fulltext-header {
    margin-bottom: 12px;
    padding-top: 0;
    border-top: 0;
}

@media (max-width: 620px) {
    .public-page--document .container.document-shell--reading {
        width: min(calc(100% - 32px), 1024px);
    }

    .public-page--document .doc-full-text {
        width: 100%;
        max-width: none;
        margin-top: 20px;
    }

    .public-shell .footer-shell {
        width: min(calc(100% - 32px), 1200px);
        padding: 24px 0 20px;
    }
}
