.public-error {
    position: relative;
    display: grid;
    min-height: clamp(32rem, 72vh, 48rem);
    place-items: center;
    overflow: hidden;
    padding: clamp(2rem, 6vw, 5rem) 1rem;
    isolation: isolate;
}

.public-error__ambient {
    position: absolute;
    z-index: -1;
    width: min(46rem, 92vw);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(49, 91, 137, 0.2), rgba(49, 91, 137, 0.04) 46%, transparent 72%);
    filter: blur(8px);
}

.public-error__card {
    position: relative;
    width: min(42rem, 100%);
    padding: clamp(2rem, 5vw, 4rem);
    overflow: hidden;
    border: 1px solid rgba(34, 52, 77, 0.12);
    border-radius: 1.5rem;
    text-align: center;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 253, 0.96));
    box-shadow: 0 28px 70px rgba(20, 38, 62, 0.15);
}

.public-error__status {
    position: absolute;
    top: -0.4rem;
    right: 1rem;
    color: rgba(34, 52, 77, 0.055);
    font-size: clamp(5rem, 14vw, 9rem);
    font-weight: 800;
    line-height: 1;
}

.public-error__icon {
    display: grid;
    width: 3.5rem;
    height: 3.5rem;
    margin: 0 auto 1.25rem;
    place-items: center;
    border-radius: 1rem;
    color: #e26d46;
    background: rgba(226, 109, 70, 0.1);
}

.public-error__icon svg {
    width: 1.75rem;
    fill: currentColor;
}

.public-error__eyebrow {
    margin: 0 0 0.65rem;
    color: #315b89;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.public-error h1 {
    margin: 0;
    color: #172b46;
    font-size: clamp(1.75rem, 4vw, 2.65rem);
    font-weight: 700;
}

.public-error__message {
    max-width: 34rem;
    margin: 1rem auto 1.6rem;
    color: #60728a;
    font-size: 1rem;
    line-height: 1.75;
}

.public-error__action {
    display: inline-flex;
    min-height: 3rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.85rem;
    padding: 0.75rem 1.35rem;
    color: #fff;
    font-weight: 750;
    text-decoration: none;
    background: #22344d;
    box-shadow: 0 12px 28px rgba(34, 52, 77, 0.2);
    transition: transform 160ms ease, background-color 160ms ease;
}

.public-error__action:hover,
.public-error__action:focus-visible {
    color: #fff;
    background: #315b89;
    transform: translateY(-2px);
}

.public-error__reference {
    margin: 1.4rem 0 0;
    color: #8190a3;
    font-size: 0.75rem;
}

.public-error__reference code {
    color: inherit;
}
