/*
 * hax-about.css — bespoke styling for the /about page redesign (CoWorker design, 2026-05-28).
 *
 * Loaded site-wide from App.razor (this project does NOT use Blazor CSS isolation / .razor.css —
 * every stylesheet is a global file under wwwroot/css/, so the design's requested About.razor.css
 * lives here instead, fully scoped under .about-page to avoid leaking).
 *
 * The page is a tab-style layout with one section visible at a time, driven entirely by the CSS
 * :target selector (the URL hash picks the panel) — NO Blazor interactivity, NO JS. This is what
 * lets /about stay static SSR. :has() handles the active-row styling and the default-to-s1 case;
 * both are supported in all current evergreen browsers (Chrome/Edge 105+, Safari 15.4+, Firefox 121+).
 */

.about-page {
    --about-card: var(--hax-surface-card, #053D2E);
    --about-recessed: rgba(1, 33, 26, 0.5);
    --about-emerald: #10B981;
    --about-lime: #A3E635;
    --about-amber: #F59E0B;
    --about-text: #F8FAFC;
    --about-muted: #A7F3D0;
    --about-border: rgba(167, 243, 208, 0.08);
}

/* ===== Hero ===== */
.about-page .hero {
    position: relative;
    overflow: hidden;
    padding: 40px 48px 28px;
}

.about-page .hero-dots {
    position: absolute;
    top: 0;
    right: 0;
    width: 280px;
    height: 280px;
    background-image: radial-gradient(circle, var(--about-lime) 1px, transparent 1.5px);
    background-size: 22px 22px;
    opacity: 0.08;
    pointer-events: none;
}

.about-page .hero-eyebrow {
    margin: 0 0 12px 0;
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--about-lime);
}

.about-page .hero-title {
    margin: 0;
    max-width: 540px;
    font-size: clamp(28px, 5vw, 44px);
    font-weight: 500;
    line-height: 1.1;
    color: var(--about-text);
}

.about-page .hero-title em {
    font-style: normal;
    color: var(--about-lime);
}

.about-page .hero-subtitle {
    margin: 14px 0 0 0;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--about-muted);
}

/* ===== Two-column layout (desktop) ===== */
.about-page .about-layout {
    position: relative; /* anchor for the absolutely-positioned hidden radios */
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 36px;
    padding: 8px 48px 32px;
}

/* Hidden radio group — drives the visible panel + active nav row via :checked. Visually hidden
   but kept keyboard-focusable (NOT display:none) so arrow keys switch sections. Positioned
   absolute so they don't occupy a grid cell. Clicking a <label for="rN"> toggles its radio —
   pure browser, no navigation, so Blazor's interactive router never intercepts it. */
.about-page .section-radio {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
    pointer-events: none;
}

/* ===== Section nav (left column) ===== */
.about-page .section-nav {
    position: sticky;
    top: 80px; /* clears the fixed MudAppBar */
    align-self: start;
}

.about-page .section-nav-label {
    margin: 0 0 10px 0;
    font-size: 10px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(167, 243, 208, 0.7);
}

.about-page .nav-label-narrow {
    display: none;
}

.about-page .section-nav-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    margin-bottom: 2px;
    border-radius: 8px;
    border-left: 2px solid transparent;
    text-decoration: none;
    color: var(--about-muted);
    cursor: pointer;
    user-select: none;
    transition: background-color 120ms ease-out, color 120ms ease-out;
}

.about-page .section-nav-row:hover {
    background-color: rgba(5, 61, 46, 0.5);
}

.about-page .nav-num {
    font-size: 10px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    color: var(--about-emerald);
}

.about-page .nav-label {
    flex: 1 1 auto;
    font-size: 13px;
    font-weight: 500;
}

.about-page .nav-chevron {
    font-size: 14px;
    line-height: 1;
    color: var(--about-lime);
    opacity: 0;
    transition: opacity 120ms ease-out;
}

/* Active nav row — the checked radio's matching label (r1 checked by default). */
.about-page #r1:checked ~ .section-nav .section-nav-row[for="r1"],
.about-page #r2:checked ~ .section-nav .section-nav-row[for="r2"],
.about-page #r3:checked ~ .section-nav .section-nav-row[for="r3"],
.about-page #r4:checked ~ .section-nav .section-nav-row[for="r4"],
.about-page #r5:checked ~ .section-nav .section-nav-row[for="r5"] {
    background-color: var(--about-card);
    border-left-color: var(--about-lime);
    color: var(--about-text);
}

.about-page #r1:checked ~ .section-nav .section-nav-row[for="r1"] .nav-chevron,
.about-page #r2:checked ~ .section-nav .section-nav-row[for="r2"] .nav-chevron,
.about-page #r3:checked ~ .section-nav .section-nav-row[for="r3"] .nav-chevron,
.about-page #r4:checked ~ .section-nav .section-nav-row[for="r4"] .nav-chevron,
.about-page #r5:checked ~ .section-nav .section-nav-row[for="r5"] .nav-chevron {
    opacity: 1;
}

/* ===== Section panels (right column) ===== */
.about-page .section-panel {
    display: none;
    background-color: var(--about-card);
    border: 1px solid var(--about-border);
    border-radius: 12px;
    padding: 28px 32px;
    min-height: 280px;
}

/* The checked radio reveals its matching panel (r1 checked by default → s1 shows first). */
.about-page #r1:checked ~ .section-panels #s1,
.about-page #r2:checked ~ .section-panels #s2,
.about-page #r3:checked ~ .section-panels #s3,
.about-page #r4:checked ~ .section-panels #s4,
.about-page #r5:checked ~ .section-panels #s5 {
    display: block;
}

.about-page .panel-num {
    margin: 0 0 10px 0;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-variant-numeric: tabular-nums;
    color: var(--about-emerald);
}

.about-page .panel-h2 {
    margin: 0 0 14px 0;
    font-size: 26px;
    font-weight: 500;
    line-height: 1.2;
    color: var(--about-text);
}

.about-page .panel-body {
    margin: 0 0 14px 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.65;
    color: var(--about-muted);
}

.about-page .panel-body:last-child {
    margin-bottom: 0;
}

.about-page .panel-pullquote {
    margin: 18px 0 0 0;
    padding-left: 14px;
    border-left: 3px solid var(--about-lime);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
    color: var(--about-text);
}

/* ===== Discipline tile grid (Section 04) ===== */
.about-page .tile-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 18px;
}

/* Horizontal card layout (operator design 2026-05-29): icon on the left, name + meta stacked to
   its right, vertically centered. Replaces the earlier icon-on-top + LIVE-badge-corner layout. */
.about-page .tile {
    display: flex;
    align-items: center;
    gap: 14px;
    background-color: var(--about-recessed);
    border: 1px solid var(--about-border);
    border-radius: 10px;
    padding: 16px;
}

.about-page .tile-glyph {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.about-page .tile-text {
    min-width: 0;
}

.about-page .tile-name {
    margin: 0 0 2px 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--about-text);
}

.about-page .tile-meta {
    margin: 0;
    font-size: 12px;
    font-weight: 400;
    color: var(--about-muted);
}

/* ===== Sign-up CTA (anonymous-only) ===== */
.about-page .cta-card {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 18px 48px 28px;
    padding: 22px 28px;
    background-color: var(--about-card);
    border: 1px solid var(--about-emerald);
    border-radius: 14px;
}

.about-page .cta-glyph {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 96px;
    line-height: 1;
    color: var(--about-lime);
    opacity: 0.06;
    pointer-events: none;
}

.about-page .cta-text {
    position: relative;
    min-width: 0;
}

.about-page .cta-h2 {
    margin: 0 0 4px 0;
    font-size: 20px;
    font-weight: 500;
    color: var(--about-text);
}

.about-page .cta-body {
    margin: 0;
    font-size: 13px;
    font-weight: 400;
    color: var(--about-muted);
}

.about-page .cta-actions {
    position: relative;
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.about-page .cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 120ms ease-out, border-color 120ms ease-out;
}

.about-page .cta-btn--primary {
    background-color: var(--about-lime);
    color: #01211A;
    border: 1px solid var(--about-lime);
}

.about-page .cta-btn--primary:hover {
    background-color: #b6ee5a;
}

.about-page .cta-btn--secondary {
    background-color: transparent;
    color: var(--about-text);
    border: 1px solid rgba(167, 243, 208, 0.35);
}

.about-page .cta-btn--secondary:hover {
    border-color: var(--about-muted);
    background-color: rgba(167, 243, 208, 0.06);
}

/* ===== Focus visibility (keyboard nav) =====
   Focus lands on the hidden radio; mirror the ring onto its visible label. CTA buttons are
   anchors, so they focus directly. */
.about-page #r1:focus-visible ~ .section-nav .section-nav-row[for="r1"],
.about-page #r2:focus-visible ~ .section-nav .section-nav-row[for="r2"],
.about-page #r3:focus-visible ~ .section-nav .section-nav-row[for="r3"],
.about-page #r4:focus-visible ~ .section-nav .section-nav-row[for="r4"],
.about-page #r5:focus-visible ~ .section-nav .section-nav-row[for="r5"],
.about-page .cta-btn:focus-visible {
    outline: 2px solid var(--about-lime);
    outline-offset: 2px;
}

/* ===== Mobile (< 768px) ===== */
@media (max-width: 767.98px) {
    .about-page .hero {
        padding: 24px 20px 16px;
    }

    .about-page .about-layout {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 0 16px 24px;
    }

    /* Nav becomes a vertical picker above the panel — not sticky, full-width rows. */
    .about-page .section-nav {
        position: static;
        top: auto;
    }

    .about-page .nav-label-wide {
        display: none;
    }

    .about-page .nav-label-narrow {
        display: inline;
    }

    .about-page .section-nav-row {
        padding: 12px 14px; /* ~44px tap target */
    }

    .about-page .section-panel {
        margin: 0;
        padding: 20px;
    }

    .about-page .panel-h2 {
        font-size: 18px;
    }

    /* Horizontal tiles go single-column on phones so the icon + text don't get cramped. */
    .about-page .tile-grid {
        grid-template-columns: 1fr;
    }

    /* CTA stacks, centered, full-width buttons. */
    .about-page .cta-card {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        margin: 14px 16px 24px;
    }

    .about-page .cta-actions {
        flex-direction: column;
    }

    .about-page .cta-btn {
        width: 100%;
    }
}

/* ===== Reduced-motion safety (no transitions for users who opt out) ===== */
@media (prefers-reduced-motion: reduce) {
    .about-page .section-nav-row,
    .about-page .nav-chevron,
    .about-page .cta-btn {
        transition: none;
    }
}
