/* =====================================================
   EPISODES (Oct 2026): homepage latest panel, podcast archive, shared player
   Loaded after main.css on index.html and podcast.html; classes are prefixed pe-
   ===================================================== */

:root {
    --pe-night: #0e0c14;
    --pe-night-2: #1b1724;
    --pe-ink: #16131f;
    --pe-muted: #5f5a6e;
    --pe-line: #e7e3ef;
    --pe-violet: #4c1d95;
    --pe-violet-2: #5b21b6;
    --pe-lilac: #c4b5fd;
    --pe-on-night: #b9b3c8;
}

.pe-meta {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--pe-muted);
    letter-spacing: 0.01em;
    line-height: 1.5;
}

.pe-dot {
    margin: 0 0.4em;
    opacity: 0.5;
}

.pe-desc {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #3b3648;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pe-spotify {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--pe-muted);
    text-decoration: none;
    min-height: 32px;
}

.pe-spotify:hover {
    color: #1a9e4a;
}

.pe-spotify svg {
    width: 16px;
    height: 16px;
    flex: none;
}

.pe-play {
    width: 48px;
    height: 48px;
    flex: none;
    border-radius: 50%;
    border: 0;
    padding: 0;
    background: var(--pe-violet);
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: transform 0.15s ease, background-color 0.15s ease;
}

.pe-play:hover {
    background: var(--pe-violet-2);
    transform: scale(1.06);
}

.pe-play svg {
    width: 20px;
    height: 20px;
}

/* main.css rings every focused button; keep the ring for keyboard users only */
.pe-play:focus:not(:focus-visible),
.pe-big:focus:not(:focus-visible),
.pe-tab:focus:not(:focus-visible),
.pe-ctl:focus:not(:focus-visible) {
    outline: none;
    box-shadow: none;
}

.pe-play:focus-visible,
.pe-big:focus-visible,
.pe-tab:focus-visible,
.pe-ctl:focus-visible,
.pe-readmore:focus-visible {
    outline: 3px solid var(--pe-violet-2);
    outline-offset: 2px;
}

/* ---------- Homepage: latest episode ---------- */

.pe-home {
    background: #ffffff;
    padding: 4rem 0 3.5rem;
}

.pe-hero {
    background: var(--pe-night);
    color: #fff;
    border-radius: 22px;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(260px, 420px) 1fr;
    box-shadow: 0 24px 60px rgba(14, 12, 20, 0.18);
}

.pe-hero.is-loading {
    min-height: 420px;
    background: linear-gradient(110deg, var(--pe-night) 30%, var(--pe-night-2) 50%, var(--pe-night) 70%);
    background-size: 220% 100%;
    animation: pe-shimmer 1.4s linear infinite;
}

@keyframes pe-shimmer {
    to { background-position: -220% 0; }
}

.pe-hero-art img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}

.pe-hero-body {
    padding: 2.25rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.9rem;
    min-width: 0;
}

.pe-kicker {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--pe-lilac);
}

.pe-hero .pe-hero-title {
    margin: 0;
    color: #fff;
    text-align: left;
    font-size: clamp(1.6rem, 3.2vw, 2.4rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.015em;
}

.pe-hero .pe-meta {
    color: var(--pe-on-night);
}

.pe-hero .pe-desc {
    color: #ddd8e8;
    font-size: 0.97rem;
    -webkit-line-clamp: 5;
}

.pe-hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    margin-top: 0.4rem;
}

.pe-big {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: #fff;
    color: var(--pe-night);
    border: 0;
    border-radius: 999px;
    padding: 0.85rem 1.5rem;
    font: inherit;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease;
}

.pe-big:hover {
    transform: translateY(-1px);
}

.pe-big svg {
    width: 16px;
    height: 16px;
}

.pe-hero .pe-spotify {
    color: var(--pe-on-night);
}

.pe-hero .pe-spotify:hover {
    color: #fff;
}

.pe-fallback {
    background: var(--pe-night);
    color: #fff;
    border-radius: 22px;
    padding: 2.5rem 1.5rem;
    text-align: center;
}

.pe-fallback p {
    margin: 0 0 1rem;
    color: #ddd8e8;
}

/* .pe-shelf and .pe-group are <section>s: cancel main.css's 80px section padding */
.pe-shelf {
    margin-top: 2.5rem;
    padding: 0;
}

.pe-shelf-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.pe-shelf-head h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--pe-ink);
}

.pe-shelf-head a {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--pe-violet-2);
    text-decoration: none;
    white-space: nowrap;
}

.pe-shelf-head a:hover {
    text-decoration: underline;
}

.pe-shelf-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 200px;
    gap: 1.1rem;
    overflow-x: auto;
    padding-bottom: 0.75rem;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
}

.pe-tile {
    scroll-snap-align: start;
    min-width: 0;
}

.pe-tile-art {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 1;
    background: var(--pe-night);
}

.pe-tile-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.pe-tile:hover .pe-tile-art img {
    transform: scale(1.04);
}

.pe-play-float {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 44px;
    height: 44px;
    background: #fff;
    color: var(--pe-violet);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.pe-play-float:hover {
    background: #fff;
}

.pe-tile.is-playing .pe-play-float {
    background: var(--pe-violet);
    color: #fff;
}

.pe-tile-title {
    margin: 0.65rem 0 0.2rem;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--pe-ink);
}

.pe-tile .pe-meta {
    font-size: 0.75rem;
}

.pe-home-foot {
    margin-top: 2.25rem;
    text-align: center;
}

/* ---------- Podcast page: archive ---------- */

.pe-archive {
    max-width: 980px;
    margin: 0 auto;
}

.pe-controls {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 1rem;
}

.pe-search {
    position: relative;
    flex: 1;
}

.pe-search svg {
    position: absolute;
    left: 14px;
    top: 50%;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    color: var(--pe-muted);
    pointer-events: none;
}

.pe-search input {
    width: 100%;
    min-height: 48px;
    padding: 0.7rem 1rem 0.7rem 2.6rem;
    border: 1px solid var(--pe-line);
    border-radius: 999px;
    background: #fff;
    font: inherit;
    font-size: 1rem;
    color: var(--pe-ink);
}

.pe-search input:focus {
    outline: none;
    border-color: var(--pe-violet-2);
    box-shadow: 0 0 0 3px rgba(91, 33, 182, 0.15);
}

.pe-selects {
    display: flex;
    gap: 0.75rem;
}

.pe-sort {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--pe-muted);
}

.pe-sort select {
    min-height: 48px;
    padding: 0 2.2rem 0 1rem;
    border: 1px solid var(--pe-line);
    border-radius: 999px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235f5a6e' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0.8rem center / 14px;
    -webkit-appearance: none;
    appearance: none;
    font: inherit;
    font-size: 0.95rem;
    color: var(--pe-ink);
    cursor: pointer;
}

.pe-tabs {
    display: flex;
    gap: 1.75rem;
    overflow-x: auto;
    border-bottom: 1px solid var(--pe-line);
    margin-bottom: 1.25rem;
    scrollbar-width: none;
}

.pe-tabs::-webkit-scrollbar {
    display: none;
}

.pe-tab {
    flex: none;
    border: 0;
    background: none;
    padding: 0.75rem 0 0.85rem;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--pe-muted);
    cursor: pointer;
    box-shadow: inset 0 -3px 0 transparent;
    transition: color 0.15s ease, box-shadow 0.15s ease;
}

.pe-tab:hover {
    color: var(--pe-ink);
}

.pe-tab[aria-pressed="true"] {
    color: var(--pe-ink);
    box-shadow: inset 0 -3px 0 var(--pe-violet);
}

.pe-summary[hidden] {
    display: none;
}

.pe-summary {
    margin: 0.25rem 0 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--pe-muted);
}

.pe-group {
    margin-bottom: 2.25rem;
    padding: 0;
}

.pe-group-head {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    border-bottom: 2px solid var(--pe-ink);
    padding: 1rem 0 0.6rem;
    margin-bottom: 0.25rem;
}

.pe-group-head h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--pe-ink);
    text-align: left;
}

.pe-group-head span {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--pe-muted);
}

.pe-row {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) auto;
    gap: 1.1rem;
    align-items: center;
    padding: 1rem 0.6rem;
    border-bottom: 1px solid var(--pe-line);
    border-radius: 10px;
    transition: background-color 0.15s ease;
}

.pe-row:hover,
.pe-row.is-current {
    background: #fff;
}

.pe-row.is-current {
    box-shadow: inset 3px 0 0 var(--pe-violet-2);
}

.pe-row-img {
    width: 96px;
    height: 96px;
    border-radius: 10px;
    object-fit: cover;
    display: block;
    background: var(--pe-night);
}

.pe-row-title {
    margin: 0 0 0.2rem;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--pe-ink);
}

.pe-row .pe-desc {
    margin-top: 0.4rem;
    -webkit-line-clamp: 2;
}

.pe-row.is-open .pe-desc {
    -webkit-line-clamp: unset;
}

.pe-readmore {
    border: 0;
    background: none;
    padding: 0.25rem 0 0;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--pe-violet-2);
    cursor: pointer;
}

.pe-row-side {
    display: flex;
    align-items: center;
}

/* Spotify sits at the end of the date line, as a quiet text link */
.pe-meta .pe-spotify {
    min-height: 0;
    font-size: inherit;
    gap: 0.3rem;
    vertical-align: bottom;
}

.pe-meta .pe-spotify svg {
    width: 13px;
    height: 13px;
}

.pe-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--pe-muted);
}

.pe-more-wrap {
    text-align: center;
    margin-bottom: 1rem;
}

.pe-more-wrap [hidden] {
    display: none;
}

/* ---------- Shared bottom player ---------- */

.pe-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background: var(--pe-night);
    color: #fff;
    border-top: 1px solid rgba(196, 181, 253, 0.18);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    transform: translateY(110%);
    transition: transform 0.3s ease;
    box-shadow: 0 -12px 32px rgba(0, 0, 0, 0.22);
}

.pe-bar.is-open {
    transform: none;
}

.pe-bar-in {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0.7rem 1rem;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
}

.pe-bar-img {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    object-fit: cover;
    display: block;
}

.pe-bar-title {
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pe-bar-meta {
    font-size: 0.75rem;
    color: var(--pe-on-night);
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pe-bar-track {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.4rem;
    font-size: 0.72rem;
    color: var(--pe-on-night);
    font-variant-numeric: tabular-nums;
}

.pe-bar-track[hidden],
.pe-bar-error[hidden] {
    display: none;
}

.pe-bar-seek {
    flex: 1;
    min-width: 0;
    height: 4px;
    margin: 0;
    border-radius: 999px;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(to right, var(--pe-lilac) var(--progress, 0%), rgba(255, 255, 255, 0.18) var(--progress, 0%));
    cursor: pointer;
}

.pe-bar-seek::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    border: 0;
}

.pe-bar-seek::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    border: 0;
}

.pe-bar-error {
    margin-top: 0.35rem;
    font-size: 0.8rem;
    color: #fca5a5;
}

.pe-bar-error a {
    color: #fff;
}

.pe-bar-ctl {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.pe-ctl {
    background: none;
    border: 1px solid #3a3449;
    color: #fff;
    border-radius: 999px;
    height: 38px;
    min-width: 38px;
    padding: 0 0.7rem;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-grid;
    place-items: center;
}

.pe-ctl:hover {
    border-color: var(--pe-lilac);
}

.pe-ctl svg {
    width: 18px;
    height: 18px;
}

.pe-ctl-main {
    width: 48px;
    height: 48px;
    border: 0;
    padding: 0;
    background: #fff;
    color: var(--pe-night);
}

.pe-ctl-speed {
    min-width: 52px;
}

.pe-ctl-close {
    border-color: transparent;
    color: var(--pe-on-night);
    padding: 0;
}

/* The player replaces the subscribe bar while it is open */
body.has-player .sticky-podcast-bar {
    display: none;
}

body.has-player {
    padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
}

/* ---------- Small screens ---------- */

@media (max-width: 760px) {
    .pe-home {
        padding: 2.5rem 0;
    }

    .pe-hero {
        grid-template-columns: 1fr;
        border-radius: 18px;
    }

    .pe-hero.is-loading {
        min-height: 560px;
    }

    .pe-hero-body {
        padding: 1.5rem 1.35rem 1.75rem;
    }

    .pe-hero .pe-desc {
        -webkit-line-clamp: 4;
    }

    .pe-shelf-row {
        grid-auto-columns: 160px;
    }

    .pe-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .pe-selects {
        gap: 0.5rem;
    }

    .pe-selects .pe-sort {
        flex: 1;
        min-width: 0;
    }

    /* "All parshas" / "Newest first" say what they are; the side labels stay for screen readers */
    .pe-sort span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
    }

    .pe-sort select {
        flex: 1;
        min-width: 0;
    }

    .pe-tabs {
        gap: 1.25rem;
    }

    .pe-row {
        grid-template-columns: 64px minmax(0, 1fr) auto;
        gap: 0.75rem;
        align-items: start;
        padding: 0.9rem 0.25rem;
    }

    .pe-row-img {
        width: 64px;
        height: 64px;
    }

    .pe-row .pe-play {
        width: 42px;
        height: 42px;
        margin-top: 0.75rem;
    }

    .pe-group-head h2 {
        font-size: 1.25rem;
    }

    .pe-bar-in {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 0.4rem 0.75rem;
        padding: 0.6rem 0.9rem;
    }

    .pe-bar-img {
        width: 44px;
        height: 44px;
    }

    .pe-bar-ctl {
        grid-column: 1 / -1;
        justify-content: center;
    }

    body.has-player {
        padding-bottom: calc(150px + env(safe-area-inset-bottom, 0px));
    }
}

@media (prefers-reduced-motion: reduce) {
    .pe-hero.is-loading {
        animation: none;
    }

    .pe-play,
    .pe-big,
    .pe-tile-art img,
    .pe-bar {
        transition: none;
    }
}

/* ---------- Podcast page: slim header (replaces the rainbow hero) ---------- */

.pe-pagehead {
    background: var(--pe-night);
    color: #fff;
    padding: 2.25rem 0 2rem;
}

.pe-pagehead .container {
    max-width: 980px;
}

.pe-pagehead h1 {
    margin: 0 0 0.35rem;
    color: #fff;
    text-align: left;
    font-size: clamp(1.6rem, 3.4vw, 2.3rem);
    font-weight: 800;
    letter-spacing: -0.015em;
}

.pe-pagehead p {
    margin: 0;
    color: var(--pe-on-night);
    font-size: 1rem;
}

.pe-pagehead-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 1.25rem;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--pe-on-night);
}

.pe-pagehead-links a {
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid rgba(196, 181, 253, 0.5);
}

.pe-pagehead-links a:hover {
    border-bottom-color: #fff;
}

.pe-pagehead + .podcast-page-section {
    padding-top: 1.5rem;
}

/* Single episode page */
.pe-row-title a { color: inherit; text-decoration: none; }
.pe-row-title a:hover { text-decoration: underline; }
.pe-ep { padding-top: 32px; padding-bottom: 64px; max-width: 860px; }
.pe-ep-back { display: inline-block; margin-bottom: 20px; color: inherit; opacity: .7; text-decoration: none; }
.pe-ep-top { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: start; }
.pe-ep-cover { width: 220px; height: 220px; border-radius: 16px; object-fit: cover; background: #eee; }
.pe-ep-meta { margin: 0 0 8px; opacity: .7; font-size: .95rem; }
.pe-ep h1 { margin: 0 0 16px; font-size: clamp(1.6rem, 3.4vw, 2.3rem); line-height: 1.2; }
.pe-ep-audio { width: 100%; margin-bottom: 16px; }
.pe-ep-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pe-ep-desc { margin-top: 32px; font-size: 1.08rem; line-height: 1.7; }
@media (max-width: 640px) {
  .pe-ep-top { grid-template-columns: 1fr; }
  .pe-ep-cover { width: 160px; height: 160px; }
}

/* Homepage shelf: five even tiles that fit the width, titles held to two lines */
@media (min-width: 900px) {
    .pe-home .pe-shelf-row {
        grid-auto-flow: row;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        grid-auto-columns: auto;
        overflow: visible;
    }
    .pe-home .pe-tile:nth-child(n+6) { display: none; }
}

.pe-tile-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
}

.pe-home-foot .spotify-browse-btn {
    width: auto;
    display: inline-flex;
    padding: 0.85rem 2rem;
}

/* ---------- Archive finder: sefer, then parsha chips, in one panel ---------- */
.pe-finder {
    border: 1px solid var(--pe-line);
    border-radius: 18px;
    background: #fff;
    margin-bottom: 1.25rem;
    overflow: hidden;
}
.pe-finder-top {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .6rem .6rem .6rem .9rem;
}
.pe-finder .pe-tabs {
    flex: 1;
    min-width: 0;
    gap: .25rem;
    border: 0;
    margin: 0;
}
.pe-finder .pe-tab {
    padding: .55rem 1rem;
    border-radius: 999px;
    box-shadow: none;
    font-size: .95rem;
}
.pe-finder .pe-tab[aria-pressed="true"] {
    background: var(--pe-violet);
    color: #fff;
    box-shadow: none;
}
.pe-finder .pe-search { flex: 0 0 240px; }
.pe-finder .pe-search input { min-height: 42px; font-size: .95rem; }

.pe-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .45rem;
    padding: .85rem .9rem 1rem;
    border-top: 1px solid var(--pe-line);
}
.pe-chips[hidden] { display: none; }
.pe-chips-label {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--pe-muted);
    margin-right: .35rem;
}
.pe-chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .4rem .8rem;
    border: 1px solid var(--pe-line);
    border-radius: 999px;
    background: transparent;
    font: inherit;
    font-size: .88rem;
    font-weight: 600;
    color: var(--pe-ink);
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease;
}
.pe-chip span { font-size: .75rem; font-weight: 600; opacity: .55; }
.pe-chip:hover { border-color: var(--pe-violet-2); }
.pe-chip.is-week::before {
    content: "";
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--pe-violet-2);
}
.pe-chip[aria-pressed="true"] {
    background: var(--pe-ink);
    border-color: var(--pe-ink);
    color: #fff;
}
.pe-chip:focus-visible, .pe-order:focus-visible { outline: 2px solid var(--pe-violet-2); outline-offset: 2px; }

.pe-summary-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .5rem;
}
.pe-summary-row .pe-summary { margin: 0; }
.pe-order {
    margin-left: auto;
    border: 0;
    background: none;
    padding: .25rem 0;
    font: inherit;
    font-size: .875rem;
    font-weight: 600;
    color: var(--pe-violet-2);
    cursor: pointer;
}

@media (max-width: 760px) {
    .pe-finder-top { flex-direction: column; align-items: stretch; padding: .6rem; gap: .5rem; }
    .pe-finder .pe-search { flex: none; }
    .pe-finder .pe-tabs { flex: none; }
}
.pe-finder .pe-tabs { flex: 0 1 auto; }
.pe-finder .pe-tab { padding: .5rem .85rem; }
.pe-finder .pe-search { flex: 1 1 180px; min-width: 160px; max-width: 280px; margin-left: auto; }
@media (max-width: 760px) { .pe-finder .pe-search { max-width: none; margin-left: 0; } }
@media (max-width: 760px) { .pe-finder .pe-search { flex: none; min-width: 0; } }
