.four-o-four.container {
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: calc(100dvh - var(--header-height) - var(--tabs-height) - 2 * var(--breadcrumbs-height));
    min-height: 360px;
}

.four-o-four.container h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0;
}

.four-o-four.container .sorry {
    font-size: 1.125rem;
    font-weight: 100;
    margin: 1rem;
}

.four-o-four.container .sorry .title {
    font-weight: 700;
    white-space: nowrap;
}

.four-o-four.container .report {
    margin-top: 2rem;
    color: gray;
}

.four-o-four.container .content {
    margin: 2rem;
}

.four-o-four.container .variant-change {
    display: none;
}

.four-o-four.container .direct {
    display: block;
}

/* Brand-colored toast for the 404 walk-up. Slides up from below the viewport
   into the bottom-right corner, auto-dismisses, can be closed manually. The
   background uses the variant's brand color (gold for union, purple for flyte)
   via --union-color. Hidden by default; shown by 404.js. */
.four-notice {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 10000;
    /* Fixed width so the toast looks consistent regardless of message length;
       caps to viewport on narrow screens. */
    width: min(22rem, calc(100vw - 2rem));
    padding: 0.75rem 0.875rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    column-gap: 0.75rem;
    align-items: center;
    background: var(--union-color);
    color: #fff;
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.4;
    transform: translateY(calc(100% + 2rem));
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease-out;
}

.four-notice[hidden] {
    display: none;
}

.four-notice.is-visible {
    transform: translateY(0);
    opacity: 1;
}

.four-notice-badge {
    background: rgba(0, 0, 0, 0.22);
    color: #fff;
    padding: 0.375rem 0.55rem;
    border-radius: 6px;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 0.02em;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    align-self: center;
}

.four-notice-body {
    min-width: 0;
}

.four-notice-title {
    margin: 0;
    color: #fff;
    font-weight: 600;
    line-height: 1.3;
}

.four-notice-path {
    margin: 0.125rem 0 0;
    color: #fff;
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
    font-size: 0.78rem;
    opacity: 0.92;
    white-space: nowrap;
    overflow: hidden;
}

.four-notice-tail {
    margin: 0.125rem 0 0;
    color: #fff;
    font-size: 0.78rem;
    opacity: 0.88;
}

.four-notice-close {
    background: transparent;
    border: 0;
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
    align-self: start;
}

.four-notice-close:hover {
    color: #fff;
    background: rgba(0, 0, 0, 0.22);
}

.four-notice-close:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 1px;
}

@media (max-width: 600px) {
    .four-notice {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        width: auto;
    }
}