/* Shared sticky top bar (docs/DESIGN.md: turquoise #00ADEF, pink #EC008B, green #19b091, cream #FDF5E6). */
:root {
    --blue: #00adef;
    --pink: #ec008b;
    --teal: #19b091;
    --cream: #fdf5e6;
    --dark: #1a1a1a;
}

.site-top-wrap {
    position: sticky;
    top: 0;
    z-index: 100;
}

/* When body has horizontal padding, use site-top-wrap--inset-bleed on site-top-wrap for full-width bar. */
.site-top-wrap--inset-bleed {
    margin-left: -16px;
    margin-right: -16px;
}

.site-top-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 18px;
    padding: 12px 18px 14px;
    background: var(--teal);
    color: var(--cream);
    box-shadow: 0 4px 0 rgba(0, 173, 239, 0.35);
}

.site-top-tagline {
    margin: 0;
    max-width: 18rem;
    font-size: clamp(0.78rem, 2.3vw, 0.9rem);
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.25;
    text-transform: lowercase;
    opacity: 0.95;
}

.site-top-tagline a {
    color: inherit;
    text-decoration: none;
}

.site-top-tagline a:hover {
    text-decoration: none;
    opacity: 1;
    filter: brightness(1.08);
}

.site-top-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 8px;
    flex: 1 1 auto;
    min-width: min(100%, 16rem);
}

.site-top-nav-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px 10px;
}

.site-top-nav a {
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: lowercase;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 999px;
    border: none;
    color: var(--cream);
    background: rgba(255, 255, 255, 0.22);
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s, transform 0.12s, filter 0.12s, box-shadow 0.15s;
}

@media (min-width: 720px) {
    .site-top-nav a {
        font-size: 0.8rem;
        padding: 9px 16px;
    }
}

.site-top-nav a:hover {
    filter: brightness(1.07);
}

.site-top-nav a:active {
    transform: scale(0.97);
}

.site-top-nav a.nav-home {
    background: rgba(253, 245, 230, 0.95);
    color: var(--dark);
}

.site-top-nav a.nav-home:hover {
    background: #fff;
    filter: none;
}

.site-top-nav a.nav-app {
    background: var(--cream);
    color: var(--pink);
}

.site-top-nav a.nav-app:hover {
    background: #fff;
    filter: none;
}

.site-top-nav a.nav-resources {
    background: var(--cream);
    color: var(--blue);
}

.site-top-nav a.nav-resources:hover {
    background: #fff;
    filter: none;
}

/* 7 day challenge: solid brand pink (bold block, DESIGN.md) */
.site-top-nav a.nav-listen-challenge {
    background: var(--pink);
    color: #fff;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.12);
}

.site-top-nav a.nav-listen-challenge:hover {
    background: #ff1a9c;
    filter: none;
}

.site-top-nav a.nav-listen-challenge[aria-current="page"] {
    box-shadow: 0 0 0 3px rgba(253, 245, 230, 0.55), 0 2px 0 rgba(0, 0, 0, 0.12);
}

/* Spotify-style podcast CTA (DESIGN.md: keep bar readable on teal) */
.site-top-nav a.nav-interview {
    background: #1ed760;
    color: #121212;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.18);
}

.site-top-nav a.nav-interview:hover {
    background: #3fe87a;
    filter: none;
}

.site-top-nav a.nav-interview:active {
    transform: scale(0.97);
}

.site-top-nav a[aria-current="page"] {
    box-shadow: 0 0 0 3px rgba(253, 245, 230, 0.55);
}

.site-top-nav a.nav-interview[aria-current="page"] {
    box-shadow: 0 0 0 3px rgba(18, 18, 18, 0.35), 0 2px 0 rgba(0, 0, 0, 0.18);
}

.site-top-nav a.nav-home[aria-current="page"] {
    box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.35);
}

@media (max-width: 560px) {
    .site-top-bar {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        padding: 12px 16px 14px;
    }

    .site-top-tagline {
        max-width: none;
    }

    .site-top-nav {
        align-items: center;
    }

    .site-top-nav-row {
        justify-content: center;
    }
}

@media (max-width: 380px) {
    .site-top-nav a {
        font-size: 0.7rem;
        padding: 7px 11px;
    }
}
