/* ============================================
   Home page (mobile UX direction D "Listen", 2026-08-30)
   Spec: dev/design-review/mobile-ux/explore/explore.html, direction D —
   audio-first, dark editorial hero. Reuses .ed-band (the same duotone
   portrait treatment as every investor profile) rather than a bespoke
   hero, so the home page shares one imagery language with the rest of
   the site instead of inventing a second one.
   ============================================ */

/* Hero actions sit inside a dark .ed-band, so the ghost button needs
   on-inverse ink instead of --fh-ink (invisible on a dark surface). */
.ed-band .fh-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: var(--fh-space-md);
}
.ed-band .fh-btn--ghost {
    color: var(--fh-on-inverse) !important;
    border-color: color-mix(in srgb, var(--fh-on-inverse) 55%, transparent);
}
.ed-band .fh-btn--ghost:hover,
.ed-band .fh-btn--ghost:focus-visible {
    background: color-mix(in srgb, var(--fh-on-inverse) 12%, transparent);
}

.fh-section {
    margin: var(--fh-space-2xl) 0;
}
.fh-section__head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: var(--fh-space-md);
}
.fh-h2 {
    font-family: var(--fh-font-display);
    font-weight: 500;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
    margin: 0;
}
.fh-section__head a {
    font-family: var(--fh-font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--fh-accent-text);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

/* ---- Paper Trail rail ---- */
.fh-rail {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin: 0 calc(-1 * var(--fh-space-lg));
    padding: 4px var(--fh-space-lg) 8px;
    scrollbar-width: none;
}
.fh-rail::-webkit-scrollbar {
    display: none;
}
.fh-rail__ep {
    flex: 0 0 150px;
    scroll-snap-align: start;
    text-decoration: none;
    color: inherit;
}
.fh-rail__art {
    aspect-ratio: 1;
    border-radius: var(--fh-radius-sm);
    background: var(--fh-surface-inverse);
    position: relative;
    overflow: hidden;
    padding: 10px;
    display: grid;
    align-content: space-between;
}
/* The tile art is the episode number, not a photograph. Five tiles once held
   five copies of the same Musk portrait, told apart only by "Ep 1".."Ep 5";
   the number was already doing the work, so it became the artwork. The
   document each episode hinges on names the tile above it. */
.fh-rail__doc {
    position: relative;
    z-index: 1;
    font-family: var(--fh-font-mono);
    font-size: 0.6rem;
    line-height: 1.35;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--fh-on-inverse) 58%, transparent);
}
.fh-rail__n {
    font-family: var(--fh-font-display);
    font-weight: 400;
    font-size: 5.6rem;
    line-height: 0.78;
    letter-spacing: -0.04em;
    /* This numeral is the only place the rail states which episode a tile is,
       so it is read, not decoration, and has to clear AA large-text (3:1)
       against --fh-surface-inverse. 38% measures 3.46:1 on day's #121513;
       night's lighter #1f2622 needs 42% for 3.62:1. Anything near the 20% a
       pure watermark would want fails at about 1.8:1. The band numeral in
       paper-trail.css can sit that low because the kicker beside it already
       spells the episode out. */
    color: color-mix(in srgb, var(--fh-on-inverse) 38%, transparent);
    justify-self: start;
    /* Pulls the numeral's baseline down to the tile's padding edge; the
       display face carries descender room this glyph set never uses. */
    margin-bottom: -6px;
}
[data-theme="night"] .fh-rail__n {
    color: color-mix(in srgb, var(--fh-on-inverse) 42%, transparent);
}
.fh-rail__play {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: var(--fh-accent);
    color: var(--fh-accent-ink);
    display: grid;
    place-items: center;
}
.fh-rail__play svg {
    width: 14px;
    height: 14px;
}
.fh-rail__ep b {
    display: block;
    font-family: var(--fh-font-display);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.2;
    margin: 8px 0 2px;
    letter-spacing: -0.01em;
}
.fh-rail__ep small {
    font-family: var(--fh-font-mono);
    font-size: 0.68rem;
    color: var(--fh-ink-2);
}

/* ---- New this week: feed rows ---- */
.fh-feed__row {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--fh-rule);
    text-decoration: none;
    color: inherit;
    min-height: 44px;
}
.fh-feed__row:last-child {
    border-bottom: 0;
}
.fh-feed__row i {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1.5px solid var(--fh-rule);
    display: grid;
    place-items: center;
    color: var(--fh-accent-text);
    flex-shrink: 0;
}
.fh-feed__row i svg {
    width: 16px;
    height: 16px;
}
.fh-feed__row b {
    display: block;
    font-weight: 500;
}
.fh-feed__row small {
    display: block;
    color: var(--fh-ink-2);
    font-size: 0.85rem;
    margin-top: 2px;
}
.fh-feed__row em {
    font-style: normal;
    font-family: var(--fh-font-mono);
    font-size: 0.78rem;
    color: var(--fh-ink-2);
    white-space: nowrap;
}

/* ---- Get licensed panel ---- */
.fh-panel {
    background: var(--fh-tint);
    border-radius: var(--fh-radius);
    padding: var(--fh-space-lg);
}
.fh-panel > h2 {
    margin: 0 0 4px;
}
.fh-panel > p {
    margin: 0 0 var(--fh-space-sm);
    color: var(--fh-ink-2);
}
.fh-exam-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid color-mix(in srgb, var(--fh-ink) 10%, transparent);
    text-decoration: none;
    color: inherit;
    min-height: 44px;
}
.fh-exam-row b {
    font-weight: 600;
}
.fh-exam-row small {
    display: block;
    color: var(--fh-ink-2);
    font-size: 0.85rem;
}
.fh-exam-row span {
    font-family: var(--fh-font-mono);
    font-size: 0.78rem;
    color: var(--fh-accent-text);
    font-weight: 600;
    white-space: nowrap;
}

@media (min-width: 900px) {
    .fh-rail {
        overflow: visible;
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        margin: 0;
        padding: 0;
    }
    .fh-rail__ep {
        flex: none;
    }
}
