/* ==========================================================================
   ERROR PAGES  (P2-14i)

   errors.500 / 404 / 429 / 503, rendered by resources/views/errors/partials/page.blade.php. Loaded
   after v4.css, which supplies the --lz-* tokens and the .lz-card / .lz-btn primitives; the brand's
   own palette arrives as `.v4-page` overrides after both. This file holds layout only and no colour
   literal: every colour is a token, every tint a color-mix on one. A new filename is also the cache
   bust (asset() has no version token and Cloudflare keeps the old file).
   ========================================================================== */

.v4-page.lz-error {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.v4-page.lz-error .lz-error__main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
}

/* Wide enough for the support sentence to sit in about two lines on a desktop (D-P2-297); a phone is narrower than the
   cap, so its card stays full width. */
.v4-page.lz-error .lz-error__card {
    width: 100%;
    max-width: 700px;
    padding: 40px;
    text-align: center;
    box-shadow: var(--lz-shadow-md);
}

.v4-page.lz-error .lz-error__logo {
    height: 36px;
    width: auto;
    max-width: 180px;
    margin: 0 auto 28px;
    object-fit: contain;
}

.v4-page.lz-error .lz-error__wordmark {
    display: block;
    margin-bottom: 28px;
    font-family: var(--lz-display);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--lz-teal-deep);
    overflow-wrap: anywhere;
}

.v4-page.lz-error .lz-error__heading {
    margin-bottom: 12px;
    font-family: var(--lz-display);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--lz-teal-deep);
    overflow-wrap: anywhere;
}

.v4-page.lz-error .lz-error__text {
    margin-bottom: 28px;
    font-size: 17px;
    line-height: 1.5;
    color: var(--lz-mute);
    overflow-wrap: anywhere;
}

.v4-page.lz-error .lz-error__text a,
.v4-page.lz-error .lz-error__support a {
    font-weight: 600;
    color: var(--lz-teal);
    text-decoration: underline;
    text-underline-offset: 3px;
    white-space: nowrap;
}

.v4-page.lz-error .lz-error__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.v4-page.lz-error .lz-error__actions .lz-btn {
    justify-content: center;
    min-height: 48px;
    padding: 14px 22px;
    font-size: 15px;
}

.v4-page.lz-error .lz-error__support {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--lz-line);
    font-size: 14px;
    color: var(--lz-mute);
}

.v4-page.lz-error :focus-visible {
    outline: 3px solid var(--lz-teal-deep);
    outline-offset: 2px;
}

@media (max-width: 600px) {
    .v4-page.lz-error .lz-error__card { padding: 28px 20px; }
    .v4-page.lz-error .lz-error__heading { font-size: 24px; }
    .v4-page.lz-error .lz-error__actions { flex-direction: column; }
    .v4-page.lz-error .lz-error__actions .lz-btn { width: 100%; }
}
