/* Site header, navigation, breadcrumbs, 404/error page and static page text.
   Phase 8: trimmed to the 48 rules the public pages use (rule-by-rule coverage of all 15 pages in both
   themes, start and playing states, mobile menu open). The full pre-Phase-8 file (365 rules, 35 KB) is in
   storage/backups/project-20261121-pre-phase8.zip; most of it styled the pre-shell game pages. */
.site-header { position: sticky; z-index: 50; top: 0; border-bottom: 1px solid color-mix(in srgb, var(--rb-border) 78%, transparent); background: var(--rb-header); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.site-header__inner { display: flex; min-height: 76px; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand__image { display: block; width: auto; max-width: min(140px, 42vw); height: auto; max-height: 50px; margin: 0; padding: 0; object-fit: contain; }
.site-nav { display: flex; align-items: center; gap: 34px; margin-left: auto; margin-right: 37px; }
.site-nav__link { position: relative; color: var(--rb-text-muted); font-size: 14px; font-weight: 650; transition: color .18s; }
.site-nav__link:hover, .site-nav__link.is-active { color: var(--rb-text); }
.site-nav__link.is-active::after { position: absolute; right: 0; bottom: -28px; left: 0; height: 2px; border-radius: 2px; background: var(--rb-primary); content: ""; }
.site-nav__mobile-actions { display: none; }
.nav-toggle { display: none; }
.site-main { min-height: 70vh; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: var(--rb-primary); font-size: 12px; font-weight: 800; letter-spacing: .13em; line-height: 1.4; text-transform: uppercase; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 23px; }
.eyebrow--quiet { color: var(--rb-text-muted); } /* Phase 10: subtle was 3.05:1 */
.breadcrumb-wrap { padding-top: 18px; }
.not-found-section { display: flex; min-height: 65vh; flex-direction: column; align-items: center; justify-content: center; padding-top: 50px; padding-bottom: 70px; text-align: center; }
.not-found-mark { margin-bottom: 12px; color: var(--rb-violet); font-size: clamp(60px, 12vw, 100px); font-weight: 850; letter-spacing: -.09em; line-height: 1; opacity: .75; } /* Phase 10: .23 gave 1.4:1; decorative (aria-hidden) but now 3.5:1 light, 6.2:1 dark */
.not-found-section h1 { margin: 12px 0 6px; color: var(--rb-text); font-size: clamp(34px, 6vw, 48px); font-weight: 780; letter-spacing: -.065em; line-height: 1.1; }
.not-found-section p { max-width: 430px; margin: 0 0 21px; color: var(--rb-text-muted); }
@media (max-width: 991.98px) {
    .site-nav { gap: 24px; margin-right: 22px; }
}
@media (max-width: 767.98px) {
    .site-header__inner { min-height: 68px; }
    .nav-toggle { display: flex; width: 40px; height: 40px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; order: 3; padding: 0; border: 1px solid var(--rb-border); border-radius: 12px; background: var(--rb-surface); }
    .nav-toggle span { width: 16px; height: 2px; border-radius: 2px; background: var(--rb-text); transition: transform .18s, opacity .18s; }
    .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(7px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-7px) rotate(-45deg); }
    .site-nav { position: absolute; top: calc(100% + 1px); right: 0; left: 0; display: flex; visibility: hidden; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 9px 22px 19px; border-bottom: 1px solid var(--rb-border); background: var(--rb-surface); box-shadow: var(--rb-shadow-card); opacity: 0; transform: translateY(-8px); transition: opacity .18s, transform .18s, visibility .18s; }
    .site-nav.is-open { visibility: visible; opacity: 1; transform: translateY(0); }
    .site-nav__link { padding: 12px 3px; border-bottom: 1px solid var(--rb-border); }
    .site-nav__link.is-active::after { display: none; }
    .site-nav__mobile-actions { display: block; padding-top: 13px; }
}
@media (max-width: 575.98px) {
    .site-header__inner { padding-right: 16px; padding-left: 16px; }
    .eyebrow { font-size: 12px; } /* Phase 10: was 10px (below the 12px minimum) */
    .btn-primary--large { min-height: 50px; }
    .section-heading { align-items: flex-start; flex-direction: column; gap: 8px; margin-bottom: 18px; }
}
.site-header { border-bottom-color: var(--rb-border); }
.site-header__inner { min-height: 68px; }
.site-nav { gap: clamp(20px, 3vw, 34px); }
.site-nav__link { min-height: 44px; display: inline-flex; align-items: center; font-weight: 650; }
.site-nav__link.is-active::after { bottom: -12px; height: 3px; }
.nav-toggle { min-width: 44px; min-height: 44px; cursor: pointer; }
.breadcrumb-wrap { padding-top: 14px; padding-bottom: 8px; }
.static-page-content { color: var(--rb-text-muted); font-size: 17px; line-height: 1.8; }
.static-page-content h2, .static-page-content h3, .static-page-content h4 { margin: 2rem 0 .75rem; color: var(--rb-text); font-family: var(--rb-font-heading); line-height: 1.25; }
.static-page-content h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); }
.static-page-content h3 { font-size: clamp(1.2rem, 2.5vw, 1.45rem); }
.static-page-content ul, .static-page-content ol { padding-left: 1.5rem; margin: 0 0 1.4rem; }
.static-page-content li + li { margin-top: .35rem; }
.static-page-content a { color: var(--rb-primary); text-decoration-thickness: .08em; text-underline-offset: .18em; }
.static-page-content blockquote { padding: .9rem 1.2rem; border-left: 3px solid var(--rb-accent); background: var(--rb-surface-soft); border-radius: 0 10px 10px 0; }
.static-page-content table { width: 100%; margin: 1.2rem 0; border-collapse: collapse; }
.static-page-content th, .static-page-content td { padding: .7rem .8rem; border: 1px solid var(--rb-border); text-align: left; }
@media (max-width: 767.98px) {
    .site-header__inner { min-height: 64px; }
    .brand__image { max-width: min(128px, 40vw); max-height: 30px; }
    .site-nav { margin: 0; }
    .site-nav__link { min-height: 48px; }
}
@media (max-width: 575.98px) {
    .static-page-content { font-size: 16px; }
}

/* Phase 10: 44px touch target for the contact form submit button. */
.contact-form-card .btn { min-height: 44px; padding-inline: 1.25rem; }
.contact-form-card .turnstile-widget { margin-bottom: 1rem; }
