.se-error-page {
    padding-top: clamp(48px, 8vw, 96px);
    padding-bottom: clamp(56px, 9vw, 112px);
}

.se-error-panel {
    display: grid;
    justify-items: center;
    text-align: center;
    gap: 0;
    color: var(--se-dark);
}

.se-error-panel__code {
    margin: 0;
    color: var(--se-primary);
    font-family: var(--se-font-heading);
    font-size: clamp(4.5rem, 14vw, 7.5rem);
    font-weight: 650;
    letter-spacing: -0.06em;
    line-height: 0.9;
}

.se-error-panel__title {
    margin: 1.25rem 0 0;
    color: var(--se-dark);
    font-family: var(--se-font-heading);
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    font-weight: 650;
    line-height: 1.2;
}

.se-error-panel__text {
    max-width: 34rem;
    margin: 1rem 0 0;
    color: var(--se-muted);
    font-size: 1.05rem;
    line-height: 1.65;
}

.se-error-search {
    width: 100%;
    max-width: 32rem;
    margin: 2rem 0 0;
    text-align: left;
}

.se-error-search__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.se-error-search__row {
    display: flex;
    gap: 0;
    border: 1px solid var(--se-border);
    background: #fff;
}

.se-error-search input[type="search"] {
    flex: 1;
    min-width: 0;
    margin: 0;
    border: 0;
    padding: 0.9rem 1rem;
    font: inherit;
    color: var(--se-text);
    background: transparent;
}

.se-error-search input[type="search"]:focus {
    outline: none;
}

.se-error-search__row:focus-within {
    outline: 3px solid var(--se-primary);
    outline-offset: 4px;
    border-color: var(--se-primary);
}

.se-error-search button {
    flex: 0 0 auto;
    margin: 0;
    border: 0;
    border-left: 1px solid var(--se-border);
    background: var(--se-primary);
    color: #fff;
    font: inherit;
    font-weight: 700;
    letter-spacing: -0.02em;
    padding: 0.9rem 1.35rem;
    cursor: pointer;
}

.se-error-search button:hover {
    background: var(--se-primary-dark);
}

.se-error-panel__actions {
    margin-top: 1.75rem;
    justify-content: center;
}

.se-error-explore {
    width: 100%;
    margin-top: 2.75rem;
}

.se-error-explore__title {
    margin: 0 0 1rem;
    color: var(--se-muted);
    font-size: 0.95rem;
}

.se-error-explore__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.se-error-explore__list a {
    color: var(--se-dark);
    font-weight: 650;
    text-decoration: none;
}

.se-error-explore__list a:hover {
    color: var(--se-primary);
    text-decoration: underline;
}

@media (max-width: 600px) {
    .se-error-search__row {
        flex-direction: column;
    }

    .se-error-search button {
        border-left: 0;
        border-top: 1px solid var(--se-border);
        width: 100%;
    }

    .se-error-panel__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .se-error-panel__actions .wp-block-button,
    .se-error-panel__actions .wp-block-button__link {
        width: 100%;
    }
}
