/* Cross-component landing styles. Global (not CSS-isolation scoped) so the Redacted component and
   HeroSection - which render outside Landing's scope - still get these effects, and so the CMS editor
   preview renders redactions identically to the live page. Kept out of wwwroot/css/ because that dir is
   a gitignored Tailwind output. */

/* Oxanium (the display face) and the design tokens now live in the design system's
   app.css @theme block; the old inline-font attribute-selector override that forced
   headings to Oxanium is gone - headings use the font-display token directly. */

/* Redacted / classified text: obscured but still legible, fully revealed on hover. */
.redacted {
    background-color: #0a0a0a;
    color: rgba(255, 255, 255, 0.42);
    border-radius: 2px;
    padding: 0 0.3em;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    filter: blur(0.9px);
    transition: filter 0.25s ease, color 0.25s ease, background-color 0.25s ease;
    cursor: default;
}

/* Pointer devices can hover to reveal, so they keep the heavier "classified" blur at
   rest - the reveal is one mouse-move away. */
@media (hover: hover) {
    .redacted:hover {
        filter: blur(0);
        color: #ffffff;
        background-color: rgba(230, 57, 70, 0.16);
    }
}

/* Touch / no-hover devices can't hover, so the resting state has to be legible on its
   own or the classified words are permanently unreadable (WCAG 1.4.3). Raise the opacity
   to clear AA (~5:1 on #0A0A0A) and drop the blur; a tap toggles the full reveal
   (landing.js initRedactionReveal adds .is-revealed). */
@media (hover: none) {
    .redacted {
        color: rgba(255, 255, 255, 0.48);
        filter: none;
        cursor: pointer;
    }

    .redacted.is-revealed {
        color: #ffffff;
        filter: none;
        background-color: rgba(230, 57, 70, 0.16);
    }
}

/* Status indicators that "connect" on load, then fade to their result. */
.status-reveal {
    transition: opacity 0.28s ease, color 0.28s ease;
}

.status-reveal.pinging {
    animation: status-ping 0.9s ease-in-out infinite;
}

.status-reveal.fading {
    opacity: 0;
}

@keyframes status-ping {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* Keyboard-focus visibility. :focus-visible fires only for keyboard / assistive-tech
   navigation (never a plain mouse click), so this draws a clear brand-red ring for
   keyboard users without changing anything for pointer users. This is a global member-
   client stylesheet, so it sets an app-wide focus baseline for links and buttons. */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--primary, #e63946);
    outline-offset: 3px;
    border-radius: 3px;
}

/* ============================================================
   Mobile navigation - full-screen "briefing" menu.
   On < md the sticky bar collapses its links + auth buttons behind a
   trigger (see Landing.razor: the desktop groups are `hidden md:flex`,
   the trigger + panel are `md:hidden`). Opening reveals a full-screen
   manifest of the same links. Animates on clip-path/opacity/transform
   only, with a reduced-motion fallback.
   ============================================================ */

.nav-trigger {
    appearance: none;
    background: transparent;
    border: 1px solid var(--border, #2c2c2c);
    border-radius: 6px;
    width: 42px;
    height: 42px;
    /* Hidden by default (desktop). Shown only < md via the media query at the bottom
       of this block - done in this stylesheet, not with Tailwind's `md:hidden`, because
       landing.css loads after the Tailwind bundle and would otherwise win the cascade. */
    display: none;
    place-items: center;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.nav-trigger:hover {
    border-color: var(--primary, #e63946);
}

.nav-trigger-bars {
    position: relative;
    width: 18px;
    height: 12px;
}

.nav-trigger-bars span {
    position: absolute;
    left: 0;
    top: 0;
    height: 2px;
    width: 100%;
    background: #ffffff;
    border-radius: 2px;
    transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease;
}

.nav-trigger-bars span:nth-child(2) { top: 5px; width: 70%; }
.nav-trigger-bars span:nth-child(3) { top: 10px; }

.nav-trigger.is-open .nav-trigger-bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-trigger.is-open .nav-trigger-bars span:nth-child(2) { opacity: 0; }
.nav-trigger.is-open .nav-trigger-bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* Lock the page behind the open menu (toggled from landing.js setMenuOpen). */
body.menu-open { overflow: hidden; }

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 100;
    background:
        radial-gradient(120% 70% at 50% 0%, rgba(230, 57, 70, 0.10), transparent 55%),
        var(--surface-base, #0a0a0a);
    padding: 78px 28px 30px;
    /* Hidden entirely at md+ (see media query below); becomes a flex column < md. */
    display: none;
    flex-direction: column;
    clip-path: inset(0 0 100% 0);
    opacity: 0;
    pointer-events: none;
    transition: clip-path 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}

.mobile-menu.is-open {
    clip-path: inset(0 0 0 0);
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(to bottom, transparent 0 2px, rgba(0, 0, 0, 0.18) 3px 4px);
}

.mobile-menu__close {
    position: absolute;
    top: 16px;
    right: 20px;
    z-index: 2;
}

.mobile-menu__head {
    position: relative;
    font-family: 'Geist', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--primary, #e63946);
    margin-bottom: 24px;
}

.mobile-menu__links {
    position: relative;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
}

.mobile-menu__links li { margin: 0 0 4px; }

.mobile-menu__links a {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    text-decoration: none;
    color: #ffffff;
    font-family: 'Oxanium', sans-serif;
    font-weight: 800;
    font-size: 32px;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    padding: 12px 0;
}

.mobile-menu__links .idx {
    font-family: 'Geist', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary, #e63946);
    letter-spacing: 0.1em;
    margin-top: 14px;
    min-width: 26px;
}

.mobile-menu__cta {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.mobile-menu__btn {
    display: block;
    text-align: center;
    text-decoration: none;
    font-family: 'Geist', sans-serif;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 13px;
    padding: 15px;
    border-radius: 6px;
    transition: background-color 0.18s ease, border-color 0.18s ease;
}

.mobile-menu__btn--solid { background: var(--primary, #e63946); color: #ffffff; }
.mobile-menu__btn--solid:hover { background: var(--primary-hover, #f0505c); }
.mobile-menu__btn--ghost { border: 1px solid var(--border, #2c2c2c); color: #ffffff; }
.mobile-menu__btn--ghost:hover { border-color: var(--primary, #e63946); }

.mobile-menu__tele {
    position: relative;
    margin-top: 20px;
    font-family: 'Geist', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: #5f5f5f;
    text-transform: uppercase;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

/* Staggered entrance for the manifest links. */
.mobile-menu.is-open .mobile-menu__links li {
    animation: menu-rise 0.55s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
.mobile-menu.is-open .mobile-menu__links li:nth-child(1) { animation-delay: 0.10s; }
.mobile-menu.is-open .mobile-menu__links li:nth-child(2) { animation-delay: 0.17s; }
.mobile-menu.is-open .mobile-menu__links li:nth-child(3) { animation-delay: 0.24s; }
.mobile-menu.is-open .mobile-menu__links li:nth-child(4) { animation-delay: 0.31s; }

@keyframes menu-rise {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .mobile-menu { transition: opacity 0.15s linear; }
    .mobile-menu.is-open .mobile-menu__links li { animation: none; }
    .nav-trigger-bars span { transition: opacity 0.12s linear; }
}

/* Nav breakpoint = 980px (not Tailwind's `md`). The desktop link + auth groups carry
   `.nav-desktop` (hidden by default, shown >= 981px); the trigger + menu are the inverse
   (<= 980px). Both boundaries live here in one place so they can never overlap, and this
   stylesheet wins the cascade over Tailwind regardless of link order. */
.nav-desktop { display: none; }

@media (min-width: 981px) {
    .nav-desktop { display: flex; }
}

@media (max-width: 980px) {
    .nav-trigger { display: grid; }
    .mobile-menu { display: flex; }
}
