/* Shared presentation for low-interaction root pages. */
.core-content-page,
.sitemap-page {
    padding-top: 0;
}

.core-content-container,
.sitemap-container {
    max-width: none;
    margin: 0 auto;
    padding: 0 0 clamp(3rem, 7vw, 5.5rem);
}

.core-content-container {
    width: min(100% - 2rem, 1100px);
}

.sitemap-container {
    width: min(100% - 2rem, 1040px);
}

.breadcrumb {
    position: static;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    width: min(100% - 2rem, 1040px);
    min-height: 32px;
    margin: 0 auto 0.75rem;
    padding: 0;
    color: var(--text-muted-warm, #9b9788);
    font-size: 0.78rem;
    line-height: 1.55;
    letter-spacing: 0;
}

.core-content-page .breadcrumb {
    width: min(100% - 2rem, 1100px);
}

.breadcrumb a {
    color: var(--gold-pale);
    text-decoration: none;
    opacity: 0.78;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.breadcrumb a:hover {
    color: var(--gold-light);
    text-decoration: none;
    opacity: 1;
}

.breadcrumb a:focus-visible,
.core-content-page a:focus-visible,
.sitemap-page a:focus-visible,
.error-page a:focus-visible {
    outline: 2px solid var(--gold-light);
    outline-offset: 4px;
}

.breadcrumb-separator {
    color: rgba(212, 175, 55, 0.32);
    user-select: none;
}

.breadcrumb-current {
    min-width: 0;
    color: var(--text-muted-warm, #9b9788);
    overflow-wrap: anywhere;
}

.core-content-page .content-hero,
.sitemap-hero {
    max-width: 820px;
    margin: 0 0 clamp(1.75rem, 4vw, 3rem);
    padding: 0 0 clamp(1.5rem, 3vw, 2.25rem);
    border: 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.22);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    text-align: left;
}

.core-content-page .content-hero h1,
.sitemap-hero h1 {
    max-width: 820px;
    margin: 0 0 0.55rem;
    color: var(--text-warm, #e8e4d9);
    font-size: 2.25rem;
    line-height: 1.32;
    letter-spacing: 0;
}

.core-content-page .content-hero .subtitle,
.sitemap-hero .subtitle {
    max-width: 760px;
    margin: 0;
    color: var(--gold-pale);
    font-size: 1rem;
    line-height: 1.65;
    opacity: 0.72;
}

.core-content-page .content-hero .content-meta {
    margin: 0.55rem 0 0;
    color: var(--text-muted-warm, #9b9788);
    font-size: 0.78rem;
    line-height: 1.55;
    letter-spacing: 0;
}

.core-content-page .section {
    margin: 0;
    padding: clamp(1.5rem, 3vw, 2.25rem) 0;
    border: 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.14);
    border-radius: 0;
    background: transparent;
}

.core-content-page .section:first-of-type {
    padding-top: 0;
}

.core-content-page .section h2,
.sitemap-section h2 {
    margin: 0 0 0.9rem;
    color: var(--gold);
    font-size: 1.25rem;
    line-height: 1.45;
    letter-spacing: 0;
}

.core-content-page .section p,
.core-content-page .section ul {
    max-width: none;
    margin: 0 0 0.85rem;
    color: var(--text-warm, #e8e4d9);
    font-size: 0.96rem;
    line-height: 1.9;
    opacity: 0.84;
}

.core-content-page .content-hero,
.core-content-page .content-hero h1,
.core-content-page .content-hero .subtitle {
    max-width: none;
}

.core-content-page .section ul {
    padding-left: 1.45rem;
}

.core-content-page .section li {
    margin-bottom: 0.4rem;
}

.core-content-page .section a {
    color: var(--gold-light);
    text-underline-offset: 0.2em;
}

.core-content-page .section strong {
    color: var(--text-warm, #e8e4d9);
}

.sitemap-section {
    margin: 0;
    padding: clamp(1.35rem, 3vw, 2rem) 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.14);
}

.sitemap-section:first-of-type {
    padding-top: 0;
}

.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 1.5rem;
}

.sitemap-link {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 42px;
    padding: 0.48rem 1.35rem 0.48rem 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.08);
    border-radius: 0;
    background: transparent;
    color: var(--gold-pale);
    font-size: 0.82rem;
    line-height: 1.5;
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: color 0.2s ease;
}

.sitemap-link::after {
    content: '\2192';
    position: absolute;
    right: 0.15rem;
    color: rgba(212, 175, 55, 0.42);
    transition: color 0.2s ease, transform 0.2s ease;
}

.sitemap-link:hover {
    background: transparent;
    color: var(--gold-light);
}

.sitemap-link:hover::after {
    color: var(--gold-light);
    transform: translateX(3px);
}

.error-page {
    width: min(100% - 2rem, 760px);
    min-height: min(70vh, 660px);
    margin: 0 auto;
    padding: clamp(4.5rem, 10vw, 8rem) 0 clamp(3.5rem, 8vw, 6rem);
    text-align: left;
}

.error-code {
    margin: 0 0 0.8rem;
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0;
}

.error-title {
    max-width: 680px;
    margin: 0 0 0.8rem;
    color: var(--text-warm, #e8e4d9);
    font-size: 2.35rem;
    line-height: 1.32;
    letter-spacing: 0;
}

.error-desc {
    max-width: 610px;
    margin: 0 0 2rem;
    color: var(--text-warm, #e8e4d9);
    font-size: 0.96rem;
    line-height: 1.85;
    opacity: 0.74;
}

.error-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 1.5rem;
    max-width: 680px;
    margin: 0;
    border-top: 1px solid rgba(212, 175, 55, 0.16);
}

.error-link {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0.7rem 1.5rem 0.7rem 0;
    border: 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 0;
    background: transparent;
    color: var(--gold-pale);
    font-size: 0.88rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.error-link::after {
    content: '\2192';
    position: absolute;
    right: 0.15rem;
    color: rgba(212, 175, 55, 0.52);
    transition: color 0.2s ease, transform 0.2s ease;
}

.error-link:hover,
.error-link.primary,
.error-link.primary:hover {
    border-color: rgba(212, 175, 55, 0.1);
    background: transparent;
    color: var(--gold-light);
}

.error-link:hover::after {
    color: var(--gold-light);
    transform: translateX(3px);
}

@media (max-width: 760px) {
    .sitemap-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 1rem;
    }
}

@media (max-width: 600px) {
    .core-content-container,
    .sitemap-container,
    .core-content-page .breadcrumb,
    .breadcrumb,
    .error-page {
        width: min(100% - 1.5rem, 1040px);
    }

    .breadcrumb {
        gap: 0.42rem;
        margin-bottom: 0.65rem;
        font-size: 0.74rem;
    }

    .core-content-page .content-hero,
    .sitemap-hero {
        margin-bottom: 1.35rem;
        padding-bottom: 1.35rem;
    }

    .core-content-page .content-hero h1,
    .sitemap-hero h1,
    .error-title {
        font-size: 1.55rem;
    }

    .core-content-page .section,
    .sitemap-section {
        padding: 1.35rem 0;
    }

    .core-content-page .section h2,
    .sitemap-section h2 {
        font-size: 1.15rem;
    }

    .core-content-page .section p,
    .core-content-page .section ul {
        font-size: 0.92rem;
        line-height: 1.82;
    }

    .sitemap-grid,
    .error-links {
        grid-template-columns: 1fr;
    }

    .error-page {
        min-height: auto;
        padding-top: 4rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .breadcrumb a,
    .sitemap-link,
    .sitemap-link::after,
    .error-link,
    .error-link::after {
        transition: none;
    }
}
