/* /Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-mqnf7ke6xx] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-mqnf7ke6xx] {
    flex: 1;
}

.sidebar[b-mqnf7ke6xx] {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row[b-mqnf7ke6xx] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-mqnf7ke6xx]  a, .top-row[b-mqnf7ke6xx]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row[b-mqnf7ke6xx]  a:hover, .top-row[b-mqnf7ke6xx]  .btn-link:hover {
        text-decoration: underline;
    }

    .top-row[b-mqnf7ke6xx]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row[b-mqnf7ke6xx] {
        justify-content: space-between;
    }

    .top-row[b-mqnf7ke6xx]  a, .top-row[b-mqnf7ke6xx]  .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-mqnf7ke6xx] {
        flex-direction: row;
    }

    .sidebar[b-mqnf7ke6xx] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-mqnf7ke6xx] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row.auth[b-mqnf7ke6xx]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row[b-mqnf7ke6xx], article[b-mqnf7ke6xx] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

#blazor-error-ui[b-mqnf7ke6xx] {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss[b-mqnf7ke6xx] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-m7u8dpg8vy] {
    appearance: none;
    cursor: pointer;
    width: 3.5rem;
    height: 2.5rem;
    color: white;
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") no-repeat center/1.75rem rgba(255, 255, 255, 0.1);
}

.navbar-toggler:checked[b-m7u8dpg8vy] {
    background-color: rgba(255, 255, 255, 0.5);
}

.top-row[b-m7u8dpg8vy] {
    min-height: 3.5rem;
    background-color: rgba(0,0,0,0.4);
}

.navbar-brand[b-m7u8dpg8vy] {
    font-size: 1.1rem;
}

.bi[b-m7u8dpg8vy] {
    display: inline-block;
    position: relative;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    top: -1px;
    background-size: cover;
}

.bi-house-door-fill-nav-menu[b-m7u8dpg8vy] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-house-door-fill' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 14.5v-3.505c0-.245.25-.495.5-.495h2c.25 0 .5.25.5.5v3.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5Z'/%3E%3C/svg%3E");
}

.bi-plus-square-fill-nav-menu[b-m7u8dpg8vy] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-plus-square-fill' viewBox='0 0 16 16'%3E%3Cpath d='M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2zm6.5 4.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3a.5.5 0 0 1 1 0z'/%3E%3C/svg%3E");
}

.bi-list-nested-nav-menu[b-m7u8dpg8vy] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-list-nested' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4.5 11.5A.5.5 0 0 1 5 11h10a.5.5 0 0 1 0 1H5a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 3 7h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 1 3h10a.5.5 0 0 1 0 1H1a.5.5 0 0 1-.5-.5z'/%3E%3C/svg%3E");
}

.nav-item[b-m7u8dpg8vy] {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

    .nav-item:first-of-type[b-m7u8dpg8vy] {
        padding-top: 1rem;
    }

    .nav-item:last-of-type[b-m7u8dpg8vy] {
        padding-bottom: 1rem;
    }

    .nav-item[b-m7u8dpg8vy]  .nav-link {
        color: #d7d7d7;
        background: none;
        border: none;
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
        width: 100%;
    }

.nav-item[b-m7u8dpg8vy]  a.active {
    background-color: rgba(255,255,255,0.37);
    color: white;
}

.nav-item[b-m7u8dpg8vy]  .nav-link:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

.nav-scrollable[b-m7u8dpg8vy] {
    display: none;
}

.navbar-toggler:checked ~ .nav-scrollable[b-m7u8dpg8vy] {
    display: block;
}

@media (min-width: 641px) {
    .navbar-toggler[b-m7u8dpg8vy] {
        display: none;
    }

    .nav-scrollable[b-m7u8dpg8vy] {
        /* Never collapse the sidebar for wide screens */
        display: block;

        /* Allow sidebar to scroll for tall menus */
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }
}
/* /Components/Pages/Home.razor.rz.scp.css */
/* Immersive home hero — a full-bleed starfield with the Milky Way
   filling the page, a figure-8 three-body animation at the top, and a
   pointer that leads the eye down to the CTA. The sky and the three
   bodies are MainLayout's canvases (`src/hero/heroSky.ts`), shared with
   Discover. */

.home-hero[b-uf8e7ahbt6] {
    position: relative;
    /* Start at the top of the page, over the .content padding. The sky is
       a fixed canvas, so the hero need not reach the sides: a negative
       side margin made it 48 px wider than a phone, which then zoomed
       out to fit. */
    margin: -1.1rem 0 0;
    /* Fill the entire viewport — there's no content below the hero now,
       so stretching to 100vh avoids a seam between the starfield and
       the page background on taller screens. */
    min-height: 100vh;
    display: flex;
    /* Stack the "Rainmaker Software™ presents" header above the
       vignetted hero box. Column direction + centered cross-axis keeps
       both children horizontally centered; justify-content: center
       vertically centers the whole group on the starfield. */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    isolation: isolate; /* one layer over the sky canvas */
}

.home-hero-inner[b-uf8e7ahbt6] {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem 1.5rem;
    max-width: 720px;
}
/* Subtle vignette so text stays legible over the starfield without
   occluding it. `closest-side` keeps it inside the box, so the box's
   edges never show against the lighter Hearth starfield. It sits on its
   own layer so it can fade out with the words. */
.home-hero-inner[b-uf8e7ahbt6]::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(ellipse closest-side at center,
        rgba(var(--io-bg-rgb), 0.55) 0%,
        rgba(var(--io-bg-rgb), 0.25) 55%,
        rgba(var(--io-bg-rgb), 0) 100%);
}

.home-threebody-wrap[b-uf8e7ahbt6] {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.25rem;
    color: rgba(0, 200, 255, 0.55);
}

/* The box the three bodies trace their figure-8 in. They are drawn on
   the bodies canvas over the page, fitted to this box, so they can fly
   on to Discover. */
.home-threebody[b-uf8e7ahbt6] {
    width: 320px;
    height: 150px;
    max-width: 80vw;
    display: block;
}

.home-title[b-uf8e7ahbt6] {
    color: var(--io-text-strong);
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 300;
    letter-spacing: 0.5px;
    margin: 0 0 0.5rem;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.8);
}

.home-lede[b-uf8e7ahbt6] {
    color: rgba(var(--io-text-soft-rgb), 0.78);
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 560px;
    margin: 0 auto 1.75rem;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.9);
}

/* Concept C "sunlit-edge" button language (see
   wwwroot/design/button-concepts/README.md and the .kl-nav-btn / .sb
   rules in app.css). The home CTA is the largest instance of the same
   button vocabulary that runs through the lesson chrome — same firm
   capsule with `border-radius: 4px`, same layered inner-highlight +
   outer drop-shadow stack, same warm radial that bleeds in from past
   the right edge on hover. Scaled up: bigger padding and a slightly
   warmer baseline alpha so it reads as the page's primary action
   without changing its language. */
.home-cta[b-uf8e7ahbt6] {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: inline-block;
    padding: 12px 26px;
    color: #e6f7ff;
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 0.4px;
    text-decoration: none;
    border: 0;
    border-radius: 4px;
    background: linear-gradient(180deg, rgba(130,225,255,0.10) 0%, rgba(90,200,250,0.04) 100%);
    box-shadow:
        inset 0 1px 0 rgba(220,245,255,0.08),
        inset 0 0 0 1px rgba(160,230,250,0.14),
        0 1px 2px rgba(0,0,0,0.55),
        0 2px 10px rgba(0,0,0,0.45);
    transition: color 160ms ease, box-shadow 220ms ease;
}
.home-cta[b-uf8e7ahbt6]::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    border-radius: inherit;
    background: radial-gradient(circle at 110% 50%,
        rgba(255, 240, 210, 0.32) 0%,
        rgba(255, 230, 195, 0.18) 18%,
        rgba(255, 225, 185, 0.08) 38%,
        rgba(255, 220, 175, 0)    62%);
    opacity: 0;
    transition: opacity 280ms ease;
}

/* No `transform: translateY(...)` on hover — the chrome stays put.
   Movement reads as jitter on a row of controls; for the CTA we keep
   the same rule for consistency with the rest of the button language.
   The sunlit-edge wash plus a touch more shadow depth carry the hover. */
.home-cta:hover[b-uf8e7ahbt6],
.home-cta:focus-visible[b-uf8e7ahbt6] {
    color: #ffffff;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.14),
        inset 0 0 0 1px rgba(160,230,250,0.28),
        0 1px 2px rgba(0,0,0,0.55),
        0 3px 14px rgba(0,0,0,0.50);
    outline: none;
}
.home-cta:hover[b-uf8e7ahbt6]::before,
.home-cta:focus-visible[b-uf8e7ahbt6]::before {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .home-cta[b-uf8e7ahbt6]::before { transition: none; }
}

/* On a phone the label used to wrap, which stretched the button to the
   full width with "Mechanics" hanging alone on a second line. It stays
   one centred capsule: a smaller label that shrinks with the screen. */
@media (max-width: 560px) {
    .home-cta[b-uf8e7ahbt6] {
        display: inline-flex;
        align-items: center;
        min-height: 44px;      /* the touch-target minimum */
        white-space: nowrap;
        padding: 0 18px;
        font-size: min(0.92rem, 4vw);
    }
}

/* Feature cards removed — the home page now ends at the hero so the
   starfield reads as the entire landing experience, with the CTA as
   the only call to action. */

/* "Rainmaker Software™ / presents" — a quiet studio-opening header
   that sits ABOVE the vignetted hero box (as a sibling of
   `.home-hero-inner`, not a child), so it reads on the bare
   starfield with only its own text-shadow for legibility. Kept
   faint so it doesn't compete with the "Orbital Mechanics" title,
   but interactive (and brighter) on hover. */
.home-presents[b-uf8e7ahbt6] {
    /* Stack the brand lockup on top and "presents" centered below. */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35em;
    margin: 0 0 1.25rem;
    padding: 0 1rem;
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.3;
    letter-spacing: 0.3px;
    /* On the same layer as `.home-hero-inner`. */
    position: relative;
    z-index: 1;
    color: rgba(var(--io-text-soft-rgb), 0.6);
    /* Heavier shadow than the in-box copy because there's no vignette
       behind this line — the starfield shows through directly. */
    text-shadow: 0 1px 14px rgba(0, 0, 0, 0.95),
                 0 0 4px rgba(0, 0, 0, 0.8);
}

.home-presents-link[b-uf8e7ahbt6] {
    /* Horizontal lockup: mark sits to the left of the wordmark on the
       same baseline, the way a logotype pairs a glyph with text. Row
       flex with centered cross-axis keeps the mark vertically aligned
       with the middle of the wordmark regardless of its em sizing. */
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5em;
    color: rgba(180, 220, 255, 0.8);
    text-decoration: none;
    border-radius: 4px;
    padding: 2px 4px;
    transition: color 0.2s, text-shadow 0.2s;
}

.home-presents-link:hover[b-uf8e7ahbt6],
.home-presents-link:focus-visible[b-uf8e7ahbt6] {
    color: #e6f7ff;
    text-shadow: 0 0 10px rgba(0, 200, 255, 0.45);
    outline: none;
}

.home-presents-logo[b-uf8e7ahbt6] {
    /* Sized relative to the wordmark's em so the mark scales with the
       text and the two always read as one lockup. 2.6em gives the mark
       meaningfully more visual weight than a cap-height glyph would —
       it reads as the primary logomark of the lockup, with the
       wordmark trailing it as a signature. */
    width: 2.6em;
    height: 2.6em;
    flex: none;
    /* Nudge the mark upward so, at this larger size, its optical
       center sits a touch above the wordmark's x-height rather than
       centered on it — lets the eye/raindrop drop toward the text
       instead of floating beside it. */
    transform: translateY(-0.15em);
    /* Brand colors (warm-orange orbit ring / violet almond pupil / cyan
       raindrop — the three-body "rain-is-blue" palette) are baked into
       the referenced SVG itself, not applied here. The mark is now an
       external `<img>` pointing at `wwwroot/img/rainmaker-software-logo.svg`
       (see `DESIGN.md` for the palette rationale), so swapping palettes
       is a single-file change over there. We no longer tint via
       `currentColor`, so the only hover affordance here is the glow. */
    transition: filter 0.2s;
    /* Soft glow so the mark holds up against the starfield without
       the vignette helping it. */
    filter: drop-shadow(0 2px 14px rgba(0, 0, 0, 0.9));
}

.home-presents-link:hover .home-presents-logo[b-uf8e7ahbt6],
.home-presents-link:focus-visible .home-presents-logo[b-uf8e7ahbt6] {
    /* Brighter drop-shadow on hover/focus to signal interactivity
       without disturbing the baked-in brand colors. */
    filter: drop-shadow(0 0 8px rgba(127, 192, 168, 0.55));
}

.home-presents-name[b-uf8e7ahbt6] {
    /* Syne Mono — the brand wordmark typeface. Monospace fallback keeps
       the character shapes close if Google Fonts is unreachable. A small
       negative tracking value tightens the lockup. Explicit bright color
       so the wordmark reads clearly against the starfield without relying
       on the default `<a>` color from `app.css`. */
    color: rgba(230, 240, 255, 0.95);
    font-family: "Syne Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-weight: 500;
    letter-spacing: -0.02em;
    font-size: 1.15em;
}

.home-presents-wordmark[b-uf8e7ahbt6] {
    /* Wraps name + TM so they render on the same line under the big
       mark (the link itself is a column flex). Inherits color from
       `.home-presents-name` via the span's own rule; TM reads as a
       superscript via `vertical-align: super` which works here because
       this wrapper is an inline element (not a flex item). */
    display: inline-block;
    white-space: nowrap;
    /* Same explicit color as the name — guarantees the TM is readable
       even if the global `a` rule tries to pull the link dark. */
    color: rgba(230, 240, 255, 0.95);
}

.home-presents-tm[b-uf8e7ahbt6] {
    /* Literal "TM" letters (not the ™ codepoint, which stacks vertically
       in Syne Mono). Rendered as a small superscript next to the
       wordmark via `vertical-align: super`. Set in Syne Mono — same as
       the wordmark — so the whole lockup reads as one typographic
       unit rather than a system-font superscript glued onto a
       monospace wordmark. */
    font-family: "Syne Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.55em;
    vertical-align: super;
    line-height: 1;
    opacity: 0.8;
    margin-left: 0.15em;
    letter-spacing: 0;
}

.home-presents-verb[b-uf8e7ahbt6] {
    /* "presents" sits on its own line under the brand lockup, centered
       by the parent's `align-items: center`. Italic + lighter weight
       reads as the studio-opening verb tying wordmark → title. */
    font-weight: 300;
    font-style: italic;
    font-size: 0.95em;
    opacity: 0.85;
}

@media (max-width: 480px) {
    .home-presents[b-uf8e7ahbt6] {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }
}

/* The trip to Discover (v1.0.0; see wwwroot/design/discover-transition-concepts/).
   heroSky.ts adds `is-leaving` when the button is pressed: the words fade
   and lift a little, the button and lede first, then the title, then
   "presents", while the three bodies carry on. Nothing scales or
   flashes, and the page moves to /discover once the words are gone.
   Reduced motion never starts the trip. */
.home-hero.is-leaving[b-uf8e7ahbt6] {
    pointer-events: none;
}
.home-hero.is-leaving .home-cta[b-uf8e7ahbt6],
.home-hero.is-leaving .home-lede[b-uf8e7ahbt6],
.home-hero.is-leaving .home-title[b-uf8e7ahbt6],
.home-hero.is-leaving .home-presents[b-uf8e7ahbt6],
.home-hero.is-leaving .home-hero-inner[b-uf8e7ahbt6]::before {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.6s ease-in-out, transform 0.8s ease-in-out;
}
.home-hero.is-leaving .home-hero-inner[b-uf8e7ahbt6]::before { transform: none; }
.home-hero.is-leaving .home-title[b-uf8e7ahbt6] { transition-delay: 0.1s; }
.home-hero.is-leaving .home-presents[b-uf8e7ahbt6] { transition-delay: 0.2s; }
/* /Components/Pages/Lessons/LessonIndex.razor.rz.scp.css */
/* Discover (v1.0.0, concept Journey; see
   wwwroot/design/discover-transition-concepts/): the ten laws in order
   along one line on the frontpage's sky, in the frontpage's type. On wide
   screens the line is a shallow arc and the laws take turns below and
   above it; on narrow ones it runs down the left, one law per row. There
   is no dark pool and no card chrome: each law's text keeps its own dark
   halo. The sky, the three bodies and the line are drawn by
   `src/hero/heroSky.ts`; at rest the bodies dance the eight in the last
   law's symbol. */

.discover[b-19tc461nlb] {
    position: relative;
    z-index: 1;               /* over the sky, under the bodies */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    /* Start at the top of the page, over the .content padding, as the
       frontpage does. */
    margin-top: -1.1rem;
}

/* ── Header ───────────────────────────────────────────────────────── */

.discover-head[b-19tc461nlb] {
    text-align: center;
    padding: 3.4rem 1.5rem 0;
    max-width: 760px;
    margin: 0 auto;
    transition: opacity 0.9s ease-out, transform 0.9s ease-out;
}

.discover-title[b-19tc461nlb] {
    color: var(--io-text-strong);
    font-size: clamp(1.45rem, 3.6vw, 2.4rem);
    font-weight: 300;
    letter-spacing: 0.5px;
    margin: 0 0 0.55rem;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.8);
}

.discover-lede[b-19tc461nlb] {
    color: rgba(var(--io-text-soft-rgb), 0.78);
    font-size: 1.02rem;
    line-height: 1.6;
    max-width: 580px;
    margin: 0 auto;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.9);
}

/* ── The line ─────────────────────────────────────────────────────── */

/* The arc sits in the middle of the room under the header, with a band
   above it that the bodies come in through. */
.journey[b-19tc461nlb] {
    position: relative;
    container-type: inline-size;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: min(100%, 1100px);
    margin: 0 auto;
    padding: 90px 0 2rem;
}

/* heroSky.ts draws the line through the nodes, in this box's px. */
.journey-line[b-19tc461nlb] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
}

.journey-line path[b-19tc461nlb] {
    fill: none;
    stroke: rgba(var(--io-line-rgb), 0.24);
    stroke-width: 1.2;
    /* With pathLength='1', the offset is how much of the line is still to lay. */
    stroke-dasharray: 1 1;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 0.8s ease-out;
}

/* One column per law (`--n` of them), and a law spans two columns less a
   gap, as its neighbours sit on the other side of the line. The arc is a
   parabola that rises `--rise` from its ends to its middle; row 2 is the
   band it runs in, 16 px clear of the laws on both sides. */
.journey-laws[b-19tc461nlb] {
    --sp: calc((100cqi - 40px) / var(--n));
    --card: min(220px, 2 * var(--sp) - 16px);
    --rise: clamp(36px, 5cqi, 60px);
    position: relative;       /* the caption sits under the laws */
    display: grid;
    grid-template-columns: repeat(var(--n), minmax(0, 1fr));
    grid-template-rows: auto calc(var(--rise) + 32px) auto;
    list-style: none;
    margin: 0 0 5rem;         /* room for the caption */
    padding: 0 20px;
}

/* A stop's place on the arc: `--u` runs from −1 to 1 across it, and
   `--lift` is how far up the arc the stop is, from 0 at the ends to 1 in
   the middle. */
.journey-stop[b-19tc461nlb] {
    --u: calc((var(--i) + 0.5 - var(--n) / 2) / (var(--n) / 2));
    --lift: calc(1 - var(--u) * var(--u));
    grid-column: calc(var(--i) + 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-inline: calc((var(--sp) - var(--card)) / 2);
}

/* A law below the line hangs from it, one above stands on it. */
.journey-stop.is-below[b-19tc461nlb] {
    grid-row: 3;
    align-self: start;
    margin-top: calc(-1 * var(--rise) * var(--lift));
}

.journey-stop.is-above[b-19tc461nlb] {
    grid-row: 1;
    align-self: end;
    margin-bottom: calc(var(--rise) * (var(--lift) - 1));
}

/* Where a law meets the line: a dot on it, 16 px off the law. */
.law-node[b-19tc461nlb] {
    position: relative;
    flex: none;
    width: 0;
    height: 0;
}

.law-node[b-19tc461nlb]::before {
    content: "";
    position: absolute;
    left: -2.4px;
    top: -2.4px;
    width: 4.8px;
    height: 4.8px;
    border-radius: 50%;
    background: rgba(var(--io-line-rgb), 0.55);
    transition: opacity 0.5s ease-out;
}

.is-below .law-node[b-19tc461nlb] { margin: -16px 0 16px; }
.is-above .law-node[b-19tc461nlb] { order: 1; margin: 16px 0 -16px; }

/* ── A law: its symbol, number, title and one-line description ────── */

.law[b-19tc461nlb] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    width: 100%;
    padding: 0.4rem 0.3rem;
    border-radius: 6px;
    text-align: center;
    color: inherit;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: opacity 0.7s ease-out;
}

.law-sym[b-19tc461nlb] {
    display: block;
    flex: none;
    width: 104px;
    margin-bottom: 0.25rem;
}

/* The symbols are markup strings, so their insides need ::deep. */
.law-sym[b-19tc461nlb]  .ds-svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
    transition: filter 0.18s ease-out;
}

.law-text[b-19tc461nlb] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    min-width: 0;
}

.law-title[b-19tc461nlb] {
    font-family: var(--io-font-display);
    font-size: 0.92rem;
    letter-spacing: 0.3px;
    color: rgba(var(--io-text-bright-rgb), 0.94);
    transition: color 0.18s ease-out, text-shadow 0.18s ease-out;
}

/* The caption: a law's description shows under the arc while the law is
   pointed at or has keyboard focus, and goes the moment it has neither,
   so it never lingers. */
.law-desc[b-19tc461nlb] {
    position: absolute;
    top: calc(100% + 30px);
    left: 50%;
    width: min(680px, calc(100% - 32px));
    transform: translateX(-50%);
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(var(--io-text-soft-rgb), 0.7);
    opacity: 0;
    pointer-events: none;
}

.law:not(.is-off):focus-visible .law-desc[b-19tc461nlb] {
    opacity: 1;
    transition: opacity 0.25s ease-out;
}

@media (hover: hover) {
    .law:not(.is-off):hover .law-desc[b-19tc461nlb] {
        opacity: 1;
        transition: opacity 0.25s ease-out;
    }
}

/* A dark halo under every law's text instead of a dark pool. */
.law-title[b-19tc461nlb],
.law-desc[b-19tc461nlb] {
    text-shadow: 0 1px 10px rgba(var(--io-bg-rgb), 0.95), 0 0 3px rgba(var(--io-bg-rgb), 0.9);
}

/* Hover and keyboard focus light the symbol, which also runs
   (symbols.ts), and warm the title. */
.law:not(.is-off):hover .law-sym[b-19tc461nlb]  .ds-svg,
.law:not(.is-off):focus-visible .law-sym[b-19tc461nlb]  .ds-svg {
    animation: none;
    filter:
        drop-shadow(0 0 4px rgba(255, 235, 195, 0.55))
        drop-shadow(0 0 12px rgba(255, 225, 175, 0.30))
        brightness(1.12);
}

.law:not(.is-off):hover .law-title[b-19tc461nlb],
.law:not(.is-off):focus-visible .law-title[b-19tc461nlb] {
    color: rgba(255, 248, 230, 1);
    text-shadow:
        0 0 2px rgba(255, 235, 195, 0.85),
        0 0 6px rgba(255, 220, 170, 0.45);
}

.law:focus-visible[b-19tc461nlb] {
    outline: 1px solid rgba(180, 220, 255, 0.6);
    outline-offset: 3px;
}

/* Parts of a symbol that only show while it runs. */
.law-sym[b-19tc461nlb]  .alive {
    opacity: 0;
    transition: opacity 0.25s;
}
.law.is-alive .law-sym[b-19tc461nlb]  .alive {
    opacity: 1;
}

/* The last law's symbol gives way to the bodies, which dance its eight
   live on the canvas above (heroSky.ts). */
.law.is-live .law-sym[b-19tc461nlb]  .ds-svg {
    opacity: 0;
    transition: opacity 0.6s ease-out;
}

/* A law whose lesson is still being built keeps its place, dimmed. */
.law.is-off[b-19tc461nlb] {
    opacity: 0.5;
    cursor: default;
}

/* ── Narrow screens: the line runs down the left ──────────────────── */

@media (max-width: 820px) {
    .journey[b-19tc461nlb] {
        flex: none;
        justify-content: flex-start;
        width: min(100%, 560px);
        padding: 1.4rem 0 2rem;
    }
    .journey-laws[b-19tc461nlb] {
        display: flex;
        flex-direction: column;
        margin: 0;
        padding: 0 0.5rem 0 22px;
    }
    .journey-stop.is-below[b-19tc461nlb],
    .journey-stop.is-above[b-19tc461nlb] {
        flex-direction: row;
        align-self: stretch;
        min-height: 66px;
        margin: 0;
    }
    .is-below .law-node[b-19tc461nlb],
    .is-above .law-node[b-19tc461nlb] {
        order: 0;
        margin: 0 18px 0 0;
    }
    .law[b-19tc461nlb] {
        flex: 1;
        flex-direction: row;
        gap: 0.75rem;
        width: auto;
        min-width: 0;
        padding: 0.2rem 0.3rem;
        text-align: left;
    }
    .law-sym[b-19tc461nlb] {
        width: 64px;
        margin: 0;
    }
    .law-text[b-19tc461nlb] {
        align-items: flex-start;
        gap: 0.1rem;
    }
    .law-desc[b-19tc461nlb] {
        position: static;
        width: auto;
        transform: none;
        font-size: 0.8rem;
        line-height: 1.4;
        color: rgba(var(--io-text-soft-rgb), 0.62);
        opacity: 1;
        pointer-events: auto;
    }
}

@media (max-width: 560px) {
    .discover-head[b-19tc461nlb] { padding-top: 2.5rem; }
    .discover-lede[b-19tc461nlb] { font-size: 0.9rem; line-height: 1.5; }
    .journey-stop.is-below[b-19tc461nlb],
    .journey-stop.is-above[b-19tc461nlb] { min-height: 57px; }
    .law-title[b-19tc461nlb] { font-size: 0.86rem; }
    .law-desc[b-19tc461nlb] { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .law-sym[b-19tc461nlb]  .ds-svg,
    .law-title[b-19tc461nlb],
    .law-desc[b-19tc461nlb] { transition: none; }
}

/* ── On the way from the frontpage ────────────────────────────────────
   heroSky.ts marks MainLayout's bodies canvas `data-arriving` while the
   bodies bring the page in. Until then each part stays hidden: the
   header shows at `is-in`, and a stop at `is-lit`, as the first body
   passes it. The line is laid behind that body (heroSky.ts sets its
   offset). A lit law's lines draw in, its dots and fills fade in, and its
   symbol glows once. Anything that skips the trip just drops
   `data-arriving`, and the rest fades in at once. A direct visit never
   sets it. */

.io-bodies[data-arriving] ~ main .discover-head:not(.is-in)[b-19tc461nlb] {
    opacity: 0;
    transform: translateY(8px);
}

.io-bodies[data-arriving] ~ main .journey-stop:not(.is-lit) .law[b-19tc461nlb],
.io-bodies[data-arriving] ~ main .journey-stop:not(.is-lit) .law-node[b-19tc461nlb]::before {
    opacity: 0;
}

.io-bodies[data-arriving] ~ main .journey-line path[b-19tc461nlb] {
    stroke-dashoffset: 1;
    transition: none;
}

.io-bodies[data-arriving] ~ main .law-sym[b-19tc461nlb]  .ln {
    stroke-dasharray: 1 1;
    stroke-dashoffset: 1;
}
.io-bodies[data-arriving] ~ main .is-lit .law-sym[b-19tc461nlb]  .ln {
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1.1s cubic-bezier(0.35, 0.1, 0.25, 1);
}

.io-bodies[data-arriving] ~ main .journey-stop:not(.is-lit) .law-sym[b-19tc461nlb]  :is(.lnf, .dot, .fl) {
    opacity: 0;
}
.io-bodies[data-arriving] ~ main .is-lit .law-sym[b-19tc461nlb]  :is(.lnf, .dot, .fl) {
    transition: opacity 0.6s ease-out 0.4s;
}

/* The glow outlasts the trip, so it is keyed on `is-lit` alone, which
   only the trip sets. */
.journey-stop.is-lit .law-sym[b-19tc461nlb]  .ds-svg {
    animation: law-lit-b-19tc461nlb 1.8s ease-out;
}

@keyframes law-lit-b-19tc461nlb {
    from {
        filter:
            drop-shadow(0 0 5px rgba(255, 235, 195, 0.8))
            drop-shadow(0 0 16px rgba(255, 225, 175, 0.45))
            brightness(1.4);
    }
    to {
        filter:
            drop-shadow(0 0 0 rgba(255, 235, 195, 0))
            drop-shadow(0 0 0 rgba(255, 225, 175, 0))
            brightness(1);
    }
}
/* /Components/Shared/Breadcrumb.razor.rz.scp.css */
/*
    Discrete breadcrumb bar — top-left corner, fully transparent background.
    Follows the dim-text alpha convention from STYLE_GUIDE.md: the bar
    recedes into whatever is behind it and doesn't compete with lesson content.

    pointer-events are kept ON so the links are clickable, but the bar itself
    carries no visible background or border so it feels invisible until the
    user notices it.
*/

.breadcrumb[b-z7a9b8cdzl] {
    position: fixed;
    top: 12px;
    left: 14px;
    z-index: 900;                        /* below VersionBadge (1000) but above canvas */
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    line-height: 1;
    font-family: system-ui, sans-serif;
    user-select: none;
}

.breadcrumb-logo[b-z7a9b8cdzl] {
    height: 18px;
    width: auto;
    display: block;
    opacity: 0.55;
    transition: opacity 0.15s;
    filter: brightness(0.9);
}

.breadcrumb-home:hover .breadcrumb-logo[b-z7a9b8cdzl],
.breadcrumb-home:focus-visible .breadcrumb-logo[b-z7a9b8cdzl] {
    opacity: 0.9;
}

.breadcrumb-home:focus-visible[b-z7a9b8cdzl] {
    outline: 1px solid rgba(0, 204, 255, 0.5);
    outline-offset: 2px;
    border-radius: 2px;
}

.breadcrumb-sep[b-z7a9b8cdzl] {
    color: rgba(var(--io-text-rgb), 0.25);
    font-weight: 300;
    pointer-events: none;
}

.breadcrumb-link[b-z7a9b8cdzl] {
    color: rgba(var(--io-text-rgb), 0.45);
    text-decoration: none;
    transition: color 0.12s;
    letter-spacing: 0.02em;
}

.breadcrumb-link:hover[b-z7a9b8cdzl],
.breadcrumb-link:focus-visible[b-z7a9b8cdzl] {
    color: rgba(var(--io-text-rgb), 0.85);
    text-decoration: none;
}

.breadcrumb-link:focus-visible[b-z7a9b8cdzl] {
    outline: 1px solid rgba(0, 204, 255, 0.5);
    outline-offset: 2px;
    border-radius: 2px;
}

.breadcrumb-current[b-z7a9b8cdzl] {
    color: rgba(var(--io-text-rgb), 0.30);
    letter-spacing: 0.02em;
    pointer-events: none;
}
/* /Components/Shared/DetailLevelToggle.razor.rz.scp.css */
/* Pinned to the bottom-right corner, opposite of the VersionBadge. Dim by
   default so it doesn't compete with lesson content; slightly brighter on
   hover / focus for discoverability. The tier-specific tints below give
   each of the three states (full / mid / low) its own colour so a click
   produces an immediately visible change at the periphery. */
.detail-toggle[b-ogb4pn88x2] {
    position: fixed;
    bottom: 6px;
    right: 8px;
    z-index: 1000;
    font-family: monospace;
    font-size: 10px;
    line-height: 1;
    letter-spacing: 0.02em;
    color: rgba(var(--io-text-rgb), 0.55);
    background: transparent;
    border: 1px solid rgba(var(--io-text-rgb), 0.18);
    border-radius: 3px;
    padding: 3px 6px;
    cursor: pointer;
    user-select: none;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
    /* Safe against OS-level font scaling on phones. */
    min-height: 24px;
}

.detail-toggle:hover[b-ogb4pn88x2],
.detail-toggle:focus-visible[b-ogb4pn88x2] {
    outline: none;
    /* Colours layered onto the tier tint via the rules below. */
    filter: brightness(1.25);
}

/* Full detail — neutral cool-blue, matches the rest of the chrome. */
.detail-toggle-high[b-ogb4pn88x2] {
    color: rgba(var(--io-text-rgb), 0.7);
    border-color: rgba(var(--io-text-rgb), 0.28);
    background: rgba(var(--io-text-rgb), 0.04);
}

/* Mid detail — warm amber, picking up the same family as the
   `pb-solar` button. Reads as "things have been turned down a notch"
   without being alarming. */
.detail-toggle-med[b-ogb4pn88x2] {
    color: rgba(255, 200, 90, 0.78);
    border-color: rgba(255, 200, 90, 0.36);
    background: rgba(255, 200, 90, 0.05);
}

/* Low detail — cyan, the site's primary accent. Strongest tint so the
   most aggressive reduction is the most clearly signalled. */
.detail-toggle-low[b-ogb4pn88x2] {
    color: rgba(0, 204, 255, 0.78);
    border-color: rgba(0, 204, 255, 0.4);
    background: rgba(0, 204, 255, 0.06);
}
/* /Components/Shared/VersionBadge.razor.rz.scp.css */
.version-badge[b-zfmzred3d7] {
    position: fixed;
    bottom: 6px;
    left: 8px;
    z-index: 1000;
    font-family: monospace;
    font-size: 10px;
    line-height: 1;
    letter-spacing: 0.02em;
    color: rgba(var(--io-text-rgb), 0.28);
    pointer-events: none;
    user-select: none;
}
