/* ── Static Page Layout ── */

.sn-page {
    padding: 48px 0 64px;
}

.sn-page__container {
    max-width: var(--sn-container, 1140px);
    margin: 0 auto;
    padding: 0 24px;
}

.sn-page__header {
    margin-bottom: 36px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--sn-border);
}

.sn-page__title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--sn-text-primary);
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin: 0;
}

/* ── Prose: block editor content styling ── */
.sn-prose {
    font-size: var(--sn-font-size);
    line-height: var(--sn-line-height);
    color: var(--sn-text-body);
}

.sn-prose h2 {
    font-size: 1.5rem;
    font-weight: var(--sn-weight-heading);
    color: var(--sn-text-primary);
    margin: 40px 0 16px;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.sn-prose h3 {
    font-size: 1.25rem;
    font-weight: var(--sn-weight-heading);
    color: var(--sn-text-primary);
    margin: 32px 0 12px;
    line-height: 1.35;
}

.sn-prose h4 {
    font-size: 1.0625rem;
    font-weight: var(--sn-weight-heading);
    color: var(--sn-text-primary);
    margin: 24px 0 8px;
    line-height: 1.4;
}

.sn-prose p {
    margin: 0 0 16px;
}

.sn-prose a {
    color: var(--sn-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color var(--sn-transition);
}

.sn-prose a:hover {
    color: var(--sn-primary-dark);
}

.sn-prose ul,
.sn-prose ol {
    margin: 0 0 20px;
    padding-left: 24px;
}

.sn-prose li {
    margin-bottom: 6px;
}

.sn-prose ul li::marker {
    color: var(--sn-primary);
}

.sn-prose ol li::marker {
    color: var(--sn-primary);
    font-weight: 700;
}

.sn-prose blockquote {
    margin: 24px 0;
    padding: 16px 24px;
    background: var(--sn-primary-soft);
    border-radius: var(--sn-radius-sm);
    font-style: italic;
    color: var(--sn-text-secondary);
}

.sn-prose blockquote p:last-child {
    margin-bottom: 0;
}

.sn-prose strong {
    color: var(--sn-text-primary);
    font-weight: var(--sn-weight-strong);
}

.sn-prose hr {
    border: none;
    border-top: 1px solid var(--sn-border);
    margin: 32px 0;
}

.sn-prose img {
    max-width: 100%;
    height: auto;
    border-radius: var(--sn-radius);
}

.sn-prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 0.9375rem;
}

.sn-prose table th,
.sn-prose table td {
    padding: 10px 14px;
    border: 1px solid var(--sn-border);
    text-align: left;
}

.sn-prose table th {
    background: var(--sn-primary-soft);
    font-weight: 700;
    color: var(--sn-text-primary);
}

.sn-prose table tbody tr:hover {
    background: var(--sn-surface-hover);
}

/* ── WordPress block editor alignments ── */
.sn-prose .alignwide {
    margin-left: -48px;
    margin-right: -48px;
    max-width: calc(100% + 96px);
}

.sn-prose .alignfull {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    max-width: 100vw;
    width: 100vw;
}

/* ── WP Columns block ── */
.sn-prose .wp-block-columns {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
}

.sn-prose .wp-block-column {
    flex: 1;
}

/* ── WP Separator ── */
.sn-prose .wp-block-separator {
    border: none;
    border-top: 2px solid var(--sn-border);
    margin: 40px auto;
    max-width: 120px;
}

.sn-prose .wp-block-separator.is-style-wide {
    max-width: 100%;
}

/* ================================================================
   404 Page
   ================================================================ */

.sn-404 {
    padding-bottom: 72px;
}

.sn-404__hero {
    text-align: center;
    padding: 72px 24px 56px;
    background: linear-gradient(180deg, var(--sn-primary-soft) 0%, transparent 100%);
}

.sn-404__visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

.sn-404__number {
    font-size: 8rem;
    font-weight: 900;
    color: var(--sn-primary);
    line-height: 1;
    letter-spacing: -0.04em;
    opacity: 0.25;
}

.sn-404__reel {
    font-size: 5rem;
    line-height: 1;
    animation: sn404Spin 3s ease-in-out infinite;
}

@keyframes sn404Spin {
    0%, 100% { transform: rotateY(0deg);   }
    50%       { transform: rotateY(180deg); }
}

.sn-404__title {
    font-size: 2.25rem;
    font-weight: 900;
    color: var(--sn-text-primary);
    letter-spacing: -0.03em;
    margin: 0 0 12px;
    line-height: 1.15;
}

.sn-404__subtitle {
    font-size: 1rem;
    color: var(--sn-text-secondary);
    line-height: 1.65;
    max-width: 480px;
    margin: 0 auto 32px;
}

/* Search */
.sn-404__search {
    max-width: 440px;
    margin: 0 auto 28px;
}

.sn-404__search-wrap {
    display: flex;
    border: 1.5px solid var(--sn-border-strong);
    border-radius: var(--sn-radius-full);
    background: var(--sn-card-bg);
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sn-404__search-wrap:focus-within {
    border-color: var(--sn-primary);
    box-shadow: 0 0 0 3px var(--sn-primary-soft);
}

.sn-404__search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 16px;
    font-size: 0.9375rem;
    font-family: var(--sn-font);
    color: var(--sn-text-primary);
    outline: none;
}

.sn-404__search-input::placeholder {
    color: var(--sn-text-muted);
}

.sn-404__search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    background: var(--sn-gradient);
    border: none;
    color: #fff;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.sn-404__search-btn:hover {
    opacity: 0.85;
}

/* Quick links */
.sn-404__links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Slots suggestion grid */
.sn-404__slots {
    max-width: var(--sn-container);
    margin: 0 auto;
    padding: 0 24px;
}

.sn-404__section-title {
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--sn-text-primary);
    letter-spacing: -0.02em;
    margin: 0 0 20px;
}

.sn-404__slots-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}

/* ── Dark mode ── */
[data-theme="dark"] .sn-404__hero {
    background: linear-gradient(180deg, rgba(91, 108, 255, 0.1) 0%, transparent 100%);
}

[data-theme="dark"] .sn-404__search-wrap {
    background: var(--sn-card-bg);
    border-color: var(--sn-border);
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .sn-404__slots-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .sn-404__number  { font-size: 5rem; }
    .sn-404__reel    { font-size: 3.5rem; }
    .sn-404__title   { font-size: 1.75rem; }

    .sn-404__slots-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .sn-page {
        padding: 32px 0 48px;
    }

    .sn-page__title {
        font-size: 1.625rem;
    }

    .sn-prose h2 {
        font-size: 1.3125rem;
    }

    .sn-prose h3 {
        font-size: 1.125rem;
    }

    .sn-prose .wp-block-columns {
        flex-direction: column;
    }

    .sn-prose .alignwide {
        margin-left: -12px;
        margin-right: -12px;
        max-width: calc(100% + 24px);
    }
}
