/* =====================================================================
   specialty-page.css — Build #17 Phase B
   Styles for the new /index.html (specialty-driven homepage) and
   the per-specialty pages under /VO/{CODE}/index.html.

   Layout mirrors /VA/ family page: top strip + 3-column main row.
   Coexists with site.css (header/footer/nav) and player.css.
   ===================================================================== */

/* ----- 5-second pitch ribbon (compact) ----- */
.sp-pitch{
    background: linear-gradient(180deg,#0e2a78 0%, #0e4ccc 65%, #1769e6 100%);
    color:#fff;
    padding: 28px 20px 26px;
    text-align:center;
    position:relative;
    overflow:hidden;
}
.sp-pitch::before{
    content:"";
    position:absolute; inset:0;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(255,255,255,.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(255,255,255,.06) 0%, transparent 50%);
    pointer-events:none;
}
.sp-pitch__inner{
    position:relative;
    max-width: 1100px; margin: 0 auto;
}
.sp-pitch__lead{
    font-size: clamp(15px, 1.7vw, 19px);
    line-height: 1.5;
    margin: 0;
    color: rgba(255,255,255,.96);
}
.sp-pitch__lead strong{ color:#fff; font-weight:700; }
.sp-pitch__lead em{ color:#FACC15; font-style:normal; font-weight:600; }

/* ----- Specialty strip (horizontal selector) ----- */
.sp-area{
    background:#f7f8fb;
    border-bottom: 1px solid #e5e8ef;
    padding: 18px 0 14px;
    position:relative;
}
.sp-strip-wrap{
    position:relative;
    flex: 1 1 auto;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 8px;
    /* Build #17 feedback round 1 / Round 14: when content fits, the inner
       strip is centered via margin:auto. When it doesn't, the wrap scrolls. */
    overflow-x: auto;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
}
.sp-strip-wrap.is-dragging { cursor: grabbing; user-select: none; }
/* Round 15: hide the scrollbar — we already have arrow buttons. */
.sp-strip-wrap{ scrollbar-width: none; -ms-overflow-style: none; }
.sp-strip-wrap::-webkit-scrollbar{ height: 0; width: 0; display: none; }
.sp-strip-wrap::-webkit-scrollbar-thumb{ background: transparent; }
.sp-strip{
    /* Width = exactly the sum of slot widths + gaps. margin:auto then
       horizontally centers the strip inside .sp-strip-wrap. */
    width: max-content;
    max-width: none;
    margin: 0 auto;
    display: flex;
    gap: 12px;
    scroll-behavior: smooth;
    padding: 4px 4px 10px;
}
.sp-strip::-webkit-scrollbar{ height:8px; }
.sp-strip::-webkit-scrollbar-thumb{ background: #cfd5e0; border-radius: 4px; }

.sp-slot{
    flex: 0 0 auto;
    /* Round 14: 10px smaller tile (was 130 → 120) per directive */
    width: 120px;
    background:#fff;
    border: 2px solid #e5e8ef;
    border-radius: 14px;
    padding: 7px 7px 9px;
    cursor:pointer;
    display:flex; flex-direction:column; align-items:center;
    gap:7px;
    transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.sp-slot:hover{
    transform: translateY(-2px);
    border-color: #b9c2d4;
    box-shadow: 0 4px 12px rgba(14,76,204,.12);
}
.sp-slot.is-selected{
    border-color: #0e4ccc;
    box-shadow: 0 0 0 3px rgba(14,76,204,.15), 0 4px 12px rgba(14,76,204,.18);
}
.sp-slot__img{
    /* Round 14: 10px smaller image (was 114×138 → 104×128) */
    width: 104px; height: 128px;
    object-fit: cover;
    border-radius: 8px;
    background:#eef1f6;
    display:block;
}
.sp-slot__label{
    /* Round 12: larger, more legible label */
    font-size: 13.5px;
    font-weight: 700;
    color: #1a2540;
    text-align:center;
    line-height: 1.22;
    max-width: 110px;
}
.sp-slot.is-selected .sp-slot__label{ color:#0e4ccc; }

/* Outer wrapper layout — make .sp-area a flex row so arrows can sit on
   the sides while the wrap takes the middle and scrolls. */
.sp-area{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.sp-arrow{
    /* Round 14: arrows now sit in flex flow alongside the .sp-strip-wrap,
       so they don't overlap the tiles. */
    flex: 0 0 36px;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #d6dbe6;
    color: #0e4ccc;
    font-size: 20px;
    cursor:pointer;
    display:flex; align-items:center; justify-content:center;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    z-index: 2;
    transition: background .15s ease;
    align-self: center;
}
.sp-arrow:hover{ background:#f0f4fc; }
.sp-arrow--left{ margin-left: 6px; }
.sp-arrow--right{ margin-right: 6px; }

/* Mobile select fallback (hidden by default; shown on small screens) */
.sp-area__mobile{ display:none; max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.sp-area__select{
    width: 100%;
    padding: 10px 14px;
    font-size: 16px;
    border-radius: 10px;
    border: 1px solid #d6dbe6;
    background: #fff;
}

/* Action buttons under the strip (audition + quote) */
.sp-area__actions{
    display:flex; gap:12px; flex-wrap:wrap;
    justify-content:center;
    max-width: 1100px;
    margin: 12px auto 0;
    padding: 0 20px;
}
.sp-area__btn{
    display:inline-flex; align-items:center; gap:8px;
    padding: 10px 22px;
    border-radius: 999px;
    font-weight: 700; font-size: 14px;
    text-decoration: none;
    border: 2px solid transparent;
    cursor:pointer;
    transition: transform .12s ease, box-shadow .12s ease;
}
.sp-area__btn:hover{ transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,.12); }
.sp-area__btn--primary{
    background: #0e4ccc; color: #fff; border-color: #0e4ccc;
}
.sp-area__btn--primary:hover{ background: #0a3aa8; }
.sp-area__btn--secondary{
    background: #fff; color: #0e4ccc; border-color: #0e4ccc;
}
.sp-area__btn--secondary:hover{ background: #f0f4fc; }

/* ----- Main row title ----- */
.main-row-title{
    max-width: 1280px;
    margin: 0 auto;
    padding: 22px 20px 4px;
}
.main-row-title h1{
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #1a2540;
    margin: 0;
}

/* ----- 3-column main row (mirrors /VA/) ----- */
.main-row-content{
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px 20px 36px;
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(280px, 1.1fr) minmax(360px, 1.6fr);
    gap: 24px;
    align-items: start;
}

/* Column 1 — hero portrait + brief */
.sp-col1 .sp-portrait-wrap{
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: #eef1f6;
    aspect-ratio: 2 / 3;
    box-shadow: 0 4px 16px rgba(0,0,0,.10);
}
.sp-col1 .sp-portrait-wrap img{
    width: 100%; height: 100%; object-fit: cover; display:block;
}
.sp-shortbio{
    margin-top: 14px;
    padding: 14px 16px;
    background: #f7f8fb;
    border-radius: 10px;
    border-left: 4px solid #0e4ccc;
}
.sp-shortbio p{
    margin: 0 0 10px;
    font-size: 15px; line-height: 1.55;
    color: #2a3554;
}
.sp-shortbio .read-more{
    font-size: 14px;
    color: #0e4ccc;
    font-weight: 600;
    text-decoration: none;
}
.sp-shortbio .read-more:hover{ text-decoration: underline; }

/* Column 2 — what you get bullets + CTAs */
.sp-col2 .voiceprofile-heading{
    font-size: 18px;
    font-weight: 700;
    color: #1a2540;
    margin: 0 0 12px;
}
.sp-col2 .voiceprofile-list{
    list-style: none;
    margin: 0 0 22px;
    padding: 0;
}
.sp-col2 .voiceprofile-list li{
    position: relative;
    padding: 8px 0 8px 26px;
    font-size: 15px;
    line-height: 1.5;
    color: #2a3554;
    border-bottom: 1px solid #eef1f6;
}
.sp-col2 .voiceprofile-list li:last-child{ border-bottom: none; }
.sp-col2 .voiceprofile-list li::before{
    content: "✓";
    position: absolute;
    left: 4px; top: 8px;
    color: #0e4ccc;
    font-weight: 700;
}
.sp-col2__actions{
    display: flex; flex-direction: column; gap: 10px;
}
.sp-col2__btn{
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 700; font-size: 15px;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.sp-col2__btn:hover{ transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,.12); }
.sp-col2__btn--primary{
    background: #0e4ccc; color: #fff; border-color: #0e4ccc;
}
.sp-col2__btn--primary:hover{ background: #0a3aa8; }
.sp-col2__btn--secondary{
    background: #fff; color: #0e4ccc; border-color: #0e4ccc;
}
.sp-col2__btn--secondary:hover{ background: #f0f4fc; }

/* Column 3 — player */
.sp-col3{
    min-width: 0; /* allow grid shrink */
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 6px 0;
}
.sp-col3 .demo-player{
    width: 100%;
    margin: 0;
    border: 4px solid #0e2a78;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
}

/* ----- Family teaser block ----- */
/* Round 7: white background per John, full-width inner so the
   horizontal scroller can extend edge-to-edge. */
.sp-family-teaser{
    background: #fff;
    padding: 40px 0 32px;
    border-top: 1px solid #e5e8ef;
}
.sp-family-teaser__inner{
    /* No max-width — Round 7 wants full body width. The intro text
       inside it is centered/limited via its own children. */
    width: 100%;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
    box-sizing: border-box;
}
.sp-family-teaser__intro {
    /* (optional helper if we ever want a centered narrow column) */
    max-width: 920px;
    margin: 0 auto;
}
.sp-family-teaser__h2{
    font-size: clamp(22px, 2.6vw, 30px);
    font-weight: 800;
    color: #1a2540;
    margin: 0 0 12px;
    letter-spacing: -0.01em;
}
.sp-family-teaser__highlight{ color: #0e4ccc; }
.sp-family-teaser__lead{
    font-size: 16px;
    line-height: 1.6;
    color: #2a3554;
    margin: 0 0 22px;
}
.sp-family-teaser__chips{
    display: flex; flex-wrap: wrap; gap: 10px;
    justify-content: center;
    margin-bottom: 24px;
}
/* Round 6: the chip list is now a fallback. JS hides it (sets hidden attr)
   once the new fam-cards render, but the .sp-family-teaser__chips rule
   above sets display:flex which overrides the browser's [hidden]
   default — so we need an explicit override. */
.sp-family-teaser__chips[hidden] { display: none !important; }
.sp-actor-chip{
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 14px 8px 10px;
    background: #fff;
    border: 2px solid #e5e8ef;
    border-radius: 999px;
    font-weight: 600; font-size: 14px;
    color: #1a2540;
    text-decoration: none;
    transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;
}
.sp-actor-chip:hover{
    transform: translateY(-1px);
    border-color: var(--actor-color, #0e4ccc);
    box-shadow: 0 4px 10px rgba(0,0,0,.08);
}
.sp-actor-chip__dot{
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--actor-color, #0e4ccc);
    flex-shrink: 0;
}
.sp-family-teaser__btn{
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 26px;
    border-radius: 999px;
    background: #0e4ccc; color: #fff;
    font-weight: 700; font-size: 15px;
    text-decoration: none;
    transition: background .12s ease, transform .12s ease;
}
.sp-family-teaser__btn:hover{ background: #0a3aa8; transform: translateY(-1px); }

/* ----- Cross-links section ----- */
/* Round 7: diagonal grey-white-grey gradient. */
.sp-crosslinks-section{
    padding: 30px 20px 24px;
    background: linear-gradient(135deg, #e7ebf2 0%, #ffffff 50%, #e7ebf2 100%);
    border-top: 1px solid #e5e8ef;
    text-align: center;
}
.sp-crosslinks-section h3{
    font-size: 16px;
    font-weight: 600;
    color: #6a7390;
    margin: 0 0 14px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.sp-crosslinks{
    display: flex; flex-wrap: wrap; gap: 10px;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto 16px;
}
.sp-crosslink{
    display: inline-block;
    padding: 8px 16px;
    background: #f7f8fb;
    border: 1px solid #e5e8ef;
    border-radius: 999px;
    font-size: 14px; font-weight: 600;
    color: #0e4ccc;
    text-decoration: none;
    transition: background .12s ease, border-color .12s ease;
}
.sp-crosslink:hover{
    background: #eef4ff;
    border-color: #b8c8ec;
}
.sp-crosslinks__all{
    display: inline-block;
    margin-top: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #6a7390;
    text-decoration: none;
}
.sp-crosslinks__all:hover{ color: #0e4ccc; text-decoration: underline; }

/* ----- Audition modal (placeholder, option C: 2 buttons) ----- */
.audition-modal{
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.audition-modal.is-open{ display: flex; }
.audition-modal__backdrop{
    position: absolute;
    inset: 0;
    background: rgba(10, 18, 40, 0.65);
    backdrop-filter: blur(2px);
    cursor: pointer;
}
.audition-modal__panel{
    position: relative;
    background: #fff;
    border-radius: 14px;
    max-width: 540px;
    width: 100%;
    padding: 32px 28px 26px;
    box-shadow: 0 20px 60px rgba(0,0,0,.35);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}
.audition-modal__close{
    position: absolute;
    top: 10px; right: 12px;
    width: 36px; height: 36px;
    background: transparent;
    border: none;
    font-size: 26px;
    line-height: 1;
    color: #6a7390;
    cursor: pointer;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.audition-modal__close:hover{ background: #f0f3f8; color: #1a2540; }
.audition-modal__panel h2{
    font-size: 24px;
    font-weight: 800;
    color: #1a2540;
    margin: 0 0 8px;
    padding-right: 30px;
}
.audition-modal__lead{
    font-size: 15px;
    line-height: 1.55;
    color: #2a3554;
    margin: 0 0 22px;
}
.audition-modal__options{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 18px;
}
.audition-modal__opt{
    display: flex; flex-direction: column; align-items: center;
    gap: 10px;
    padding: 22px 16px;
    border-radius: 12px;
    text-decoration: none;
    border: 2px solid #e5e8ef;
    background: #fff;
    color: #1a2540;
    text-align: center;
    transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;
}
.audition-modal__opt:hover{
    transform: translateY(-2px);
    border-color: #0e4ccc;
    box-shadow: 0 8px 22px rgba(14,76,204,.16);
}
.audition-modal__opt-icon{
    font-size: 32px;
    line-height: 1;
}
.audition-modal__opt-body strong{
    display: block;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}
.audition-modal__opt-body span{
    display: block;
    font-size: 13px;
    color: #6a7390;
    line-height: 1.4;
}
.audition-modal__footnote{
    font-size: 13px;
    color: #6a7390;
    text-align: center;
    margin: 0;
}
.audition-modal__placeholder-note{
    margin-top: 14px;
    padding: 10px 14px;
    background: #fff8e1;
    border-left: 3px solid #FACC15;
    border-radius: 4px;
    font-size: 12px;
    color: #6a5a00;
    line-height: 1.4;
}

/* ----- Responsive: tablet ----- */
@media (max-width: 1024px) {
    .main-row-content{
        grid-template-columns: 1fr 1fr;
        gap: 22px;
    }
    .sp-col3{ grid-column: 1 / -1; }
}

/* ----- Responsive: mobile ----- */
@media (max-width: 720px) {
    .sp-strip-wrap{ display: none; }
    .sp-area__mobile{ display: block; }
    .sp-arrow{ display: none; }

    .main-row-content{
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .sp-col1 .sp-portrait-wrap{
        max-width: 280px;
        margin: 0 auto;
    }

    .audition-modal__options{
        grid-template-columns: 1fr;
    }
    .audition-modal__panel{
        padding: 28px 22px 22px;
    }

    .sp-area__actions{
        flex-direction: column;
        align-items: stretch;
    }
    .sp-area__btn{ justify-content: center; }
}

/* ----- Voice actors page parity: ensure /VA/ chips also render ----- */
.has-actor-color{
    /* used by face-area.js to apply --actor-color to face strip slots */
}

/* ----- SEO body (specialty pages only) ----- */
.sp-seo-body{
    background: #fff;
    padding: 30px 20px 36px;
    border-top: 1px solid #e5e8ef;
}
.sp-seo-body__inner{
    max-width: 920px;
    margin: 0 auto;
}
.sp-seo-body__h2{
    font-size: clamp(22px, 2.6vw, 30px);
    font-weight: 800;
    color: #1a2540;
    margin: 0 0 18px;
    letter-spacing: -0.01em;
}
.sp-seo-body__why p{
    font-size: 16px;
    line-height: 1.65;
    color: #2a3554;
    margin: 0 0 16px;
}
.sp-seo-body__why a.actor-link{
    color: #0e4ccc;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    font-weight: 600;
}
.sp-seo-body__why a.actor-link:hover{
    text-decoration-style: solid;
    background: rgba(14,76,204,.05);
}
.sp-seo-body__why strong{ color: #1a2540; }
.sp-seo-body__why em{ color: #2a3554; font-style: italic; }

/* ----- Actor page → specialties cross-link section (Build #17 Phase B) ----- */
.actor-specialties{
    background: linear-gradient(180deg, #fff 0%, #f7f8fb 100%);
    padding: 36px 20px 32px;
    border-top: 4px solid var(--actor-color, #0e4ccc);
    margin-top: 12px;
}
.actor-specialties__inner{
    max-width: 920px;
    margin: 0 auto;
    text-align: center;
}
.actor-specialties__h2{
    font-size: clamp(22px, 2.6vw, 28px);
    font-weight: 800;
    color: #1a2540;
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}
.actor-specialties__lead{
    font-size: 16px;
    line-height: 1.55;
    color: #2a3554;
    margin: 0 0 22px;
}
.actor-specialties__chips{
    display: flex; flex-wrap: wrap; gap: 10px;
    justify-content: center;
    margin-bottom: 18px;
}
.actor-spec-chip{
    display: inline-block;
    padding: 9px 18px;
    background: #fff;
    border: 2px solid var(--actor-color, #0e4ccc);
    border-radius: 999px;
    font-size: 14px; font-weight: 600;
    color: var(--actor-color, #0e4ccc);
    text-decoration: none;
    transition: background .12s ease, color .12s ease, transform .12s ease;
}
.actor-spec-chip:hover{
    background: var(--actor-color, #0e4ccc);
    color: #fff;
    transform: translateY(-1px);
}
.actor-specialties__all{
    font-size: 14px;
    color: #6a7390;
    margin: 0;
}
.actor-specialties__all a{
    color: #0e4ccc;
    text-decoration: none;
    font-weight: 600;
}
.actor-specialties__all a:hover{ text-decoration: underline; }

/* ============================================================ */
/* ACTOR PRODUCT CARDS (Round 3)                                */
/* Horizontal-scroll, swipeable card carousel filtered          */
/* by which actors have a demo in this specialty.               */
/* Used on /VO/XX/ specialty pages and /index.html              */
/* ============================================================ */
.sp-actor-cards {
    margin: 30px auto 32px;
    max-width: 1200px;
    padding: 0 16px;
}
.sp-actor-cards__h2 {
    text-align: center;
    font-size: 1.4rem;
    margin: 0 0 6px;
    color: #1a2440;
}
.sp-actor-cards__lead {
    text-align: center;
    color: #5a6478;
    margin: 0 0 16px;
    font-size: 0.95rem;
}
.sp-actor-cards__track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    padding: 8px 6px 18px;
    scrollbar-width: thin;
    scrollbar-color: #c5cbe0 transparent;
}
.sp-actor-cards__track::-webkit-scrollbar { height: 8px; }
.sp-actor-cards__track::-webkit-scrollbar-thumb { background: #c5cbe0; border-radius: 4px; }
.sp-actor-cards__track::-webkit-scrollbar-track { background: transparent; }

.sp-actor-card {
    flex: 0 0 220px;
    scroll-snap-align: start;
    background: #fff;
    border: 2px solid var(--actor-color, #0e4ccc);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(20,30,60,.06);
    transition: transform .18s ease, box-shadow .18s ease;
    text-decoration: none;
    color: inherit;
}
.sp-actor-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(20,30,60,.13);
}
.sp-actor-card__photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    background: #f1f4fa;
}
.sp-actor-card__body {
    padding: 12px 14px 10px;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.sp-actor-card__name {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--actor-color, #0e4ccc);
    line-height: 1.1;
}
.sp-actor-card__role {
    margin: 0;
    font-size: 0.82rem;
    color: #6a7390;
    font-style: italic;
    text-transform: lowercase;
    letter-spacing: 0.2px;
}
.sp-actor-card__actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0 12px 12px;
}
.sp-actor-card__btn {
    display: inline-block;
    text-align: center;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    transition: background .12s, color .12s, opacity .12s;
    line-height: 1.2;
}
.sp-actor-card__btn--primary {
    background: var(--actor-color, #0e4ccc);
    color: #fff;
    border: 2px solid var(--actor-color, #0e4ccc);
}
.sp-actor-card__btn--primary:hover {
    opacity: 0.88;
    color: #fff;
    text-decoration: none;
}
.sp-actor-card__btn--ghost {
    background: #fff;
    color: var(--actor-color, #0e4ccc);
    border: 2px solid var(--actor-color, #0e4ccc);
}
.sp-actor-card__btn--ghost:hover {
    background: var(--actor-color, #0e4ccc);
    color: #fff;
    text-decoration: none;
}
.sp-actor-cards__empty {
    text-align: center;
    color: #6a7390;
    font-style: italic;
    padding: 12px 0;
}

/* Mobile tweaks */
@media (max-width: 760px) {
    .sp-actor-cards { margin: 22px auto 26px; padding: 0 10px; }
    .sp-actor-cards__h2 { font-size: 1.18rem; }
    .sp-actor-cards__lead { font-size: 0.88rem; }
    .sp-actor-card { flex: 0 0 170px; border-radius: 12px; }
    .sp-actor-card__name { font-size: 1rem; }
    .sp-actor-card__role { font-size: 0.78rem; }
    .sp-actor-card__btn { font-size: 0.74rem; padding: 6px 8px; }
}

/* ====================================================================
   Round 6 / Round 7 — "Wait, they're an actual family?" CHARACTER CARDS
   --------------------------------------------------------------------
   Round 7 changes per John:
     • Section bg is now white (handled by .sp-family-teaser above).
     • Track extends to full body width.
     • Peek images layered BEHIND the cards (not floating above).
     • No shadow on peek images.
     • Reduced inner padding so bullet text has more room.
     • No gap between bullets and CTA.
     • "Inner shadow" on the colored name (simulated with text-shadow).
     • Bullets left-aligned with small orange dots.
     • Tap-scroll arrows on the sides (.fam-cards__nav buttons).
     • Mouse-wheel inside the track scrolls horizontally (JS).
   ==================================================================== */
.fam-cards {
    /* Full body width — no max-width per Round 7. */
    position: relative;
    margin: 22px 0 6px;
    width: 100%;
    padding: 0;
    box-sizing: border-box;
}
.fam-cards__track {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    /* Top padding leaves headroom for the peek image that pokes
       above each card; bottom padding clears the card shadow. */
    padding: 96px 18px 24px;
    scrollbar-width: thin;
    scrollbar-color: #c5cbe0 transparent;
    scroll-behavior: smooth;
}
.fam-cards__track::-webkit-scrollbar { height: 8px; }
.fam-cards__track::-webkit-scrollbar-thumb { background: #c5cbe0; border-radius: 4px; }
.fam-cards__track::-webkit-scrollbar-track { background: transparent; }

/* Tap-scroll arrows (Round 7) */
.fam-cards__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #d8dde7;
    box-shadow: 0 4px 14px rgba(20,30,60,.16);
    color: var(--c-blue-dark, #0e2a78);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    z-index: 4;
    transition: background .12s, transform .12s, opacity .12s;
    padding: 0;
}
.fam-cards__nav:hover { background: #f3f6fc; transform: translateY(-50%) scale(1.06); }
.fam-cards__nav:disabled { opacity: 0.28; cursor: default; transform: translateY(-50%) scale(1); }
.fam-cards__nav--prev { left: 8px; }
.fam-cards__nav--next { right: 8px; }
@media (max-width: 760px) {
    .fam-cards__nav { width: 34px; height: 34px; font-size: 18px; }
    .fam-cards__nav--prev { left: 4px; }
    .fam-cards__nav--next { right: 4px; }
}

.fam-card {
    --actor-color: #0e4ccc;
    position: relative;
    flex: 0 0 200px;
    width: 200px;
    height: 300px;
    scroll-snap-align: start;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(20,30,60,.14);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: transform .18s ease, box-shadow .18s ease;
    padding: 0;
    /* Round 8: NO overflow:hidden on the card itself — the peek image is
       absolutely positioned ABOVE the card and must be allowed to extend
       outside. The body section keeps its own border-radius for clipping. */
    overflow: visible;
}
.fam-card:hover,
.fam-card:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(20,30,60,.20);
    text-decoration: none;
}

/* Peek image — Round 7: layered BEHIND the card body. We give the
   image a low z-index and pull the card body forward, so the image
   pokes up from behind the card's top edge rather than floating
   above it. No drop-shadow on the image. */
.fam-card__peek {
    position: absolute;
    top: -95px;          /* Round 14: was -85, moved up 10px */
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 100px;
    object-fit: cover;
    object-position: center top;
    background: #eef3f8;
    border-radius: 10px 10px 0 0;
    box-shadow: none;    /* Round 7: no shadow on peeks */
    z-index: 1;          /* BEHIND card body */
    pointer-events: none;
    transition: transform .18s ease;
}
.fam-card:hover .fam-card__peek {
    transform: translate(-50%, -4px);
}

.fam-card__body {
    /* Round 14: actor name now sits ~5px from the card top per directive.
       The peek image is moved up 10px (top: -95) so it still pokes through
       above the card. */
    position: relative;
    z-index: 2;          /* in front of the peek image */
    background: #fff;
    border-radius: 14px 14px 0 0;
    padding: 5px 10px 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-height: 0;
    margin-top: 0;       /* Round 14: was 38px — name now 5px from top */
}
.fam-card__name {
    font-family: var(--font-heading, Georgia, serif);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--actor-color);
    line-height: 1;
    letter-spacing: 0.2px;
    /* "Inner shadow" effect (Round 7). Real CSS inset text-shadow
       isn't a thing, so we simulate it with a layered shadow:
       a tight light highlight + a subtle dark shadow that look like
       the text is pressed into the card. */
    text-shadow:
        0 1px 0 rgba(255,255,255,.55),
        0 -1px 1px rgba(0,0,0,.18);
}
.fam-card__role {
    font-size: 0.78rem;
    font-style: italic;
    color: #6a7390;
    text-transform: lowercase;
    letter-spacing: 0.2px;
    margin-bottom: 2px;
}
.fam-card__bullets {
    /* Round 7: left-aligned with small orange dots, custom marker. */
    list-style: none;
    padding: 0;
    margin: 4px 0 0;
    font-size: 0.78rem;
    line-height: 1.3;
    color: #2a3245;
    text-align: left;
    flex: 1 1 auto;       /* fill the card so foot sits flush below */
}
.fam-card__bullets li {
    margin: 0 0 3px;
    padding-left: 14px;
    position: relative;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}
.fam-card__bullets li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 0.45em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ea8a2c;  /* orange dots, regardless of actor color */
}

.fam-card__foot {
    /* Round 7: no gap between the last bullet and the CTA. */
    position: relative;
    z-index: 2;
    background: #fff;
    border-radius: 0 0 14px 14px;
    padding: 4px 10px 10px;
    margin-top: 0;
}
.fam-card__cta {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--actor-color);
    color: #fff !important;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.2px;
    box-sizing: border-box;
    transition: opacity .12s, transform .12s;
}
.fam-card:hover .fam-card__cta {
    opacity: 0.92;
}

/* Mobile tweaks */
@media (max-width: 760px) {
    .fam-cards__track { gap: 14px; padding: 88px 14px 20px; }
    .fam-card { flex: 0 0 175px; width: 175px; height: 280px; }
    .fam-card__peek { width: 130px; height: 86px; top: -82px; }
    .fam-card__body { margin-top: 0; padding: 5px 8px 0; }
    .fam-card__name { font-size: 1.22rem; }
    .fam-card__bullets { font-size: 0.74rem; }
}


/* ====================================================================
   Round 7 — "Meet the Fam" peek widget on specialty pages
   --------------------------------------------------------------------
   100×150 cross-fading actor photo placed inside .sp-col2, above the
   action buttons. Feathered edge via a soft mask, 0-saturation, with
   a small "Meet the Fam" caption underneath. Click → smooth-scroll
   to .sp-family-teaser.
   ==================================================================== */
.sp-peek-fam {
    display: block;
    margin: 8px 0 12px auto;       /* bottom-right of the bullet area */
    /* Round 12: +50% size (was 100px) */
    width: 150px;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    text-align: center;
}
.sp-peek-fam__stack {
    display: block;
    position: relative;
    /* Round 12: +50% (was 100×150) */
    width: 150px;
    height: 225px;
    border-radius: 12px;
    overflow: hidden;
    /* Feathered (soft) edge: a radial mask that fades the corners. */
    -webkit-mask-image: radial-gradient(ellipse 90% 90% at center,
                                        #000 56%,
                                        rgba(0,0,0,.65) 78%,
                                        rgba(0,0,0,0) 100%);
            mask-image: radial-gradient(ellipse 90% 90% at center,
                                        #000 56%,
                                        rgba(0,0,0,.65) 78%,
                                        rgba(0,0,0,0) 100%);
}
.sp-peek-fam__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: saturate(0);
    -webkit-filter: saturate(0);
    opacity: 0;
    transition: opacity .9s ease-in-out;
    pointer-events: none;
}
.sp-peek-fam__img.is-active {
    opacity: 1;
}
.sp-peek-fam__caption {
    display: block;
    margin-top: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--c-blue-dark, #0e2a78);
    letter-spacing: 0.3px;
    text-transform: uppercase;
}
.sp-peek-fam:hover .sp-peek-fam__stack {
    box-shadow: 0 4px 14px rgba(20,30,60,.18);
}
.sp-peek-fam:hover .sp-peek-fam__caption {
    text-decoration: underline;
}
@media (max-width: 760px) {
    /* On mobile the bullets column is full-width; center the widget. */
    .sp-peek-fam { margin: 8px auto 12px; }
}

/* ============================================================
   Round 14: Free Custom Audition — full form layout
   ------------------------------------------------------------ */
.audition-modal__panel { max-width: 720px; }
.audition-form { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
.audition-form__row { display: flex; flex-direction: column; gap: 6px; }
.audition-form__row label {
  font-weight: 700;
  color: #0e4ccc;
  font-size: 0.95rem;
}
.audition-form__row label small {
  color: #777;
  font-weight: 400;
  font-size: 0.78rem;
  margin-left: 4px;
}
.audition-form__hint { margin: 0 0 4px; color: #666; font-size: 0.82rem; }
.audition-form__row input[type="text"],
.audition-form__row input[type="email"],
.audition-form__row input[type="file"],
.audition-form__row textarea {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid #cdd6e6;
  border-radius: 6px;
  font: inherit;
  font-size: 0.92rem;
  box-sizing: border-box;
}
.audition-form__row textarea { resize: vertical; min-height: 60px; }

.audition-form__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
  gap: 10px;
}
.audition-form__actor {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 4px 8px;
  background: #fff;
  border: 2px solid #e0e6f5;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color .12s, transform .12s;
}
.audition-form__actor:hover { border-color: #aedaf1; transform: translateY(-1px); }
.audition-form__actor.is-selected {
  border-color: #0e4ccc;
  background: #f0f7ff;
  box-shadow: 0 0 0 2px rgba(14,76,204,.12);
}
.audition-form__actor-img {
  width: 56px; height: 56px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #aedaf1;
  background: #fff;
}
.audition-form__actor-img img { width: 100%; height: 100%; object-fit: cover; }
.audition-form__actor-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: #0e4ccc;
  text-align: center;
  line-height: 1.1;
}

.audition-form__charnames {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.audition-form__charname {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  background: #f7f9ff;
  border: 1px solid #e0e6f5;
  border-radius: 8px;
}
.audition-form__charname-icon {
  flex: 0 0 32px;
  width: 32px; height: 32px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #aedaf1;
  background: #fff;
}
.audition-form__charname-icon img { width: 100%; height: 100%; object-fit: cover; }
.audition-form__charname-actor {
  flex: 0 0 70px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #0e4ccc;
}
.audition-form__charname input[type="text"] {
  flex: 1 1 auto;
  min-width: 0;
  padding: 7px 10px;
  border: 1px solid #cdd6e6;
  border-radius: 6px;
  font-size: 0.88rem;
}

.audition-form__actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 4px;
  flex-wrap: wrap;
}
.audition-form__alt,
.audition-form__submit {
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.92rem;
  border: 2px solid #0e4ccc;
  cursor: pointer;
  transition: background .12s, color .12s, transform .1s;
}
.audition-form__alt { background: #fff; color: #0e4ccc; }
.audition-form__alt:hover { background: #f0f7ff; }
.audition-form__submit { background: #0e4ccc; color: #fff; }
.audition-form__submit:hover { background: #0a3aa8; transform: translateY(-1px); }

@media (max-width: 600px) {
  .audition-modal__panel { padding: 24px 18px 22px; }
  .audition-form__grid { grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); }
  .audition-form__actor-img { width: 48px; height: 48px; }
  .audition-form__charname { flex-wrap: wrap; }
  .audition-form__charname-actor { flex: 0 0 auto; }
  .audition-form__charname input[type="text"] { flex: 1 1 100%; }
}

/* ============================================================
   Round 16 — Specialty pulldown (replaces "Browse other
   specialties" button row + the legacy actor-switchers).
   Reuses the look of the desktop actor-switcher pulldown.
   ============================================================ */
.specialty-switcher {
  display: flex;
  justify-content: center;
  margin: 18px auto 8px;
  max-width: 460px;
  width: 100%;
  position: relative;
}
.specialty-switcher__select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  padding: 14px 44px 14px 18px;
  border: 2px solid #0e4ccc;
  border-radius: 22px;
  background: #fff;
  color: #0e4ccc;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath fill='%230e4ccc' d='M3 5l4 4 4-4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 14px 14px;
  transition: background-color .15s, border-color .15s;
}
.specialty-switcher__select:hover {
  background-color: #f0f4fc;
}
.specialty-switcher__select:focus {
  outline: 3px solid #ff7a18;
  outline-offset: 2px;
}
.specialty-switcher__select option:disabled {
  color: #9aa0b0;
  font-style: italic;
}

/* Round 16 — Specialty face-area: full page width + dotted line. */
.sp-area {
  position: relative;
  /* Was constrained; let it span full viewport */
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}
.sp-area::before {
  /* Decorative SVG dotted line behind the icon row */
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 4px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='4' width='100%25'%3E%3Cline x1='0' y1='2' x2='100%25' y2='2' stroke='%230e4ccc' stroke-width='2' stroke-dasharray='3,7' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: left center;
  transform: translateY(-50%);
  z-index: 0;
  pointer-events: none;
  opacity: .55;
}
.sp-strip-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
}

/* Round 16 — Saturation: 15% on non-selected, 100% on selected.
   .is-active is added by specialty-area.js to the chosen slot. */
.sp-slot {
  filter: saturate(15%);
  transition: filter .25s ease;
}
.sp-slot.is-selected,
.sp-slot:hover,
.sp-slot:focus-within {
  filter: saturate(100%);
}

/* Round 16 — Hide the legacy button-style sp-crosslinks rules in favor of pulldown. */
.sp-crosslinks-section .sp-crosslinks > .sp-crosslink { display: none; }

/* ==================================================================
   Round 17 — home.html refinements
   ================================================================== */

/* Faster crossfade for the peek-fam slideshow (0.9s → 0.5s). */
.sp-peek-fam__img {
    transition: opacity 0.5s ease-in-out !important;
}

/* Remove the dotted blue line BEHIND the specialty strip on home.html
   AND on all specialty pages (Round 21 — user wants a clean strip,
   the connection is now the orange S-curve face-connector). */
.sp-area::before {
    display: none !important;
}

/* Hide the horizontal scrollbar on the family cards row (Meet the Family). */
.fam-cards__track {
    /* Firefox */
    scrollbar-width: none !important;
    /* IE/Edge legacy */
    -ms-overflow-style: none !important;
}
.fam-cards__track::-webkit-scrollbar {
    display: none !important;
    height: 0 !important;
    width: 0 !important;
    background: transparent !important;
}
.fam-cards__track::-webkit-scrollbar-thumb,
.fam-cards__track::-webkit-scrollbar-track {
    background: transparent !important;
    display: none !important;
}

/* Make sure the specialty-connector SVG behaves like face-connector
   (already has .face-connector base class, so it inherits style + behavior).
   This adds an extra safety: keep it strictly behind interactive UI. */
.specialty-connector {
    z-index: 0;
    pointer-events: none;
}
@media (max-width: 720px) {
    .specialty-connector { display: none; }
}

/* ==================================================================
   Round 19 — Fam-card peek crossfade + clip fix
   ================================================================== */

/* Bump the track's top padding so the peek image is never clipped, even
   when hovered (which translates it up an extra 4px). Was 96px. */
.fam-cards__track {
    padding-top: 110px !important;
}

/* Stack peek1 + peek2 in the same spot; only the .is-active one is opaque.
   The 0.5s ease-in-out transition gives a smooth crossfade. */
.fam-card__peek {
    opacity: 0;
    transition: opacity 0.5s ease-in-out, transform .18s ease;
}
.fam-card__peek.is-active {
    opacity: 1;
}
/* Both images live at the same absolute position; transform on hover
   (slide-up) is shared via the parent rule .fam-card:hover .fam-card__peek. */
.fam-card__peek--2 {
    /* Identical positioning to peek1 (top:-95, left:50%, transform:translateX(-50%)).
       Already covered by .fam-card__peek base rule. */
}

/* ====================================================================
 * ROUND 20 (revised) — orange S-curve SVG goes BEHIND body content,
 * and the body bg is dropped to 95% opacity so the line is visible
 * through it. Also mute the H1 glow (was too strong).
 * ==================================================================== */

/* Body area (light-blue header + white body content) — use alpha
   BACKGROUNDS only, not element opacity. Element opacity creates a
   stacking/painting effect that can still make the SVG feel hidden.
   .92 is intentionally visible while still reading as mostly solid. */
.main-row-title {
    background: rgba(184, 219, 255, .92) !important;
}
.main-row-content {
    background: rgba(255, 255, 255, .92) !important;
}

/* SVG curve sits BEHIND everything. The .main-container is z-index:1
   per site.css; the SVG must be z-index:0 (and parent elements must
   not introduce stacking contexts that trap it on top). */
.face-connector.specialty-connector {
    pointer-events: none;
    z-index: 0;
}
.main-row-title   { position: relative; z-index: 1; }
.main-row-content { position: relative; z-index: 1; }

/* Subtle text-shadow so the H1 stays readable when the curve crosses
   under it — but light enough not to read as a "glow effect". */
.main-row-title h1,
.main-row-title__subtitle {
    text-shadow:
        0 1px 2px rgba(255, 255, 255, .9),
        0 0 6px  rgba(255, 255, 255, .6);
}

/* ==================================================================
   Round 27 — final specialty/tablet layout cleanup (loads after site.css)
   ================================================================== */
@media (max-width: 900px) {
  .sp-col1 .sp-portrait-wrap,
  .sp-col1 .sp-portrait-wrap img,
  .sp-col1 picture,
  .sp-col1 picture > img {
    max-width: 300px !important;
  }
  .sp-col1 .sp-portrait-wrap {
    width: min(300px, 100%) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .sp-col1 .sp-portrait-wrap img,
  .sp-col1 picture > img {
    width: 100% !important;
    height: auto !important;
  }
}
@media (min-width: 761px) and (max-width: 899px) {
  .main-row-content {
    display: grid !important;
    grid-template-columns: minmax(220px, 300px) minmax(0, 1fr) !important;
    gap: 18px !important;
    align-items: start !important;
  }
  .main-row-content > .sp-col1 { grid-column: 1 !important; width: 100% !important; max-width: 300px !important; }
  .main-row-content > .sp-col2 {
    grid-column: 2 !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    transform: none !important;
  }
  .main-row-content > .sp-col2 .voiceprofile-list,
  .main-row-content > .sp-col2 .sp-col2__body,
  .main-row-content > .sp-col2 ul,
  .main-row-content > .sp-col2 li {
    max-width: none !important;
    box-sizing: border-box !important;
  }
  .main-row-content > .sp-col3 {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    max-width: 100% !important;
    justify-self: center !important;
    margin: 0 auto !important;
  }
  .main-row-content > .sp-col3 .demo-player,
  .sp-col3 .demo-player,
  #player {
    margin-left: auto !important;
    margin-right: auto !important;
    transform: none !important;
  }
  .sp-family-teaser,
  .sp-family-teaser__inner,
  .fam-cards,
  section[class*="family"],
  section[id*="family"] {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    transform: none !important;
    float: none !important;
    clear: both !important;
  }
  .fam-cards__track { width: 100% !important; max-width: 100% !important; }
}
.fam-cards { position: relative !important; }
.fam-cards__nav {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 5 !important;
}
.fam-cards__nav--prev { left: 6px !important; right: auto !important; }
.fam-cards__nav--next { right: 6px !important; left: auto !important; }
@media (min-width: 721px) {
  .face-connector,
  .face-connector.specialty-connector,
  .specialty-connector { display: block !important; }
}
@media (max-width: 720px) {
  .face-connector,
  .face-connector.specialty-connector,
  .specialty-connector { display: none !important; }
}

/* ==================================================================
   Round 28 — specialty-page layout: slideshow, arrows, family cards, body fill
   ================================================================== */

/* 1. <760: grey-fade slideshow (sp-portrait-wrap) to right of What You Get */
@media (min-width: 761px) and (max-width: 900px) {
  .main-row-content {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(180px, 280px) !important;
    gap: 14px !important;
    align-items: start !important;
  }
  .main-row-content > .sp-col1 {
    grid-column: 2 !important;
    grid-row: 1 !important;
    width: 100% !important;
    max-width: 280px !important;
    justify-self: end !important;
  }
  .main-row-content > .sp-col2 {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    transform: none !important;
  }
  .main-row-content > .sp-col3 {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    width: 100% !important;
    max-width: 100% !important;
    justify-self: center !important;
  }
}

/* 2. <720: grey-fade slideshow in own row beneath What You Get */
@media (max-width: 720px) {
  .main-row-content {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    align-items: start !important;
  }
  .main-row-content > .sp-col1 {
    grid-column: 1 !important;
    grid-row: 2 !important;
    width: 100% !important;
    max-width: 300px !important;
    justify-self: center !important;
    margin: 0 auto !important;
  }
  .main-row-content > .sp-col2 {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .main-row-content > .sp-col3 {
    grid-column: 1 !important;
    grid-row: 3 !important;
    width: 100% !important;
    max-width: 100% !important;
    justify-self: center !important;
  }
}

/* 3. <720: reduce family card width by 20% (200px → 160px), reduce font size */
@media (max-width: 720px) {
  .fam-card {
    flex: 0 0 160px !important;
    width: 160px !important;
    height: 260px !important;
  }
  .fam-card__peek {
    width: 120px !important;
    height: 80px !important;
    top: -78px !important;
  }
  .fam-card__name {
    font-size: 1.1rem !important;
  }
  .fam-card__role {
    font-size: 0.68rem !important;
  }
  .fam-card__bullets {
    font-size: 0.66rem !important;
  }
  .fam-card__bullets li {
    padding: 2px 0 2px 14px !important;
  }
}

/* 4. <901: specialty card scroller arrows stay on left/right of cards
      Override the 720px breakpoint that hides strip-wrap and arrows */
@media (max-width: 900px) and (min-width: 721px) {
  .sp-area {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
  }
  .sp-strip-wrap {
    display: block !important;
    flex: 1 1 auto !important;
    max-width: 1280px !important;
    overflow-x: auto !important;
  }
  .sp-arrow {
    display: flex !important;
    flex: 0 0 36px !important;
    width: 36px !important;
    height: 36px !important;
  }
  .sp-area__mobile {
    display: none !important;
  }
}

/* 5. <620: player full-width, no rounded corners on parent container */
@media (max-width: 620px) {
  .sp-col3,
  .main-row-content > .sp-col3 {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: 50% !important;
    transform: translateX(-50%) !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    border-radius: 0 !important;
  }
  .sp-col3 .demo-player,
  #player {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }
}

/* 6. Body fill to 50% opacity */
.main-row-content {
  background: rgba(255, 255, 255, .50) !important;
}
.sp-family-teaser {
  background: rgba(255, 255, 255, .50) !important;
}
.sp-seo-body {
  background: rgba(255, 255, 255, .50) !important;
}

/* ==================================================================
   Round 29 — specialty arrows/player/full-width browse fixes
   ================================================================== */

/* <=900: Specialty Cards scroller arrows remain left/right of the card strip. */
@media (max-width: 900px) {
  .sp-area {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: nowrap !important;
    gap: 4px !important;
  }
  .sp-strip-wrap {
    display: block !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: 1280px !important;
    order: 2 !important;
    overflow-x: auto !important;
  }
  .sp-arrow {
    display: flex !important;
    position: static !important;
    flex: 0 0 36px !important;
    width: 36px !important;
    height: 36px !important;
    margin: 0 !important;
    transform: none !important;
    align-self: center !important;
  }
  .sp-arrow--left { order: 1 !important; }
  .sp-arrow--right { order: 3 !important; }
  .sp-area__mobile { display: none !important; }
}

/* <=720 can still use mobile select only if arrows/strip are intentionally hidden later; keep requested arrow fix through 900. */

/* <760 home/VO: player full-width; Browse Other Specialties full-width row below player. */
@media (max-width: 760px) {
  body.fvo-page-home .main-row-content,
  body.fvo-page-specialty .main-row-content,
  body[data-page-home="true"] .main-row-content {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }
  body.fvo-page-home .main-row-content > .sp-col3,
  body.fvo-page-specialty .main-row-content > .sp-col3,
  body[data-page-home="true"] .main-row-content > .sp-col3 {
    grid-column: 1 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: 50% !important;
    transform: translateX(-50%) !important;
    padding: 0 !important;
    justify-self: center !important;
  }
  body.fvo-page-home .sp-col3 .demo-player,
  body.fvo-page-specialty .sp-col3 .demo-player,
  body[data-page-home="true"] .sp-col3 .demo-player,
  body.fvo-page-home #player,
  body.fvo-page-specialty #player,
  body[data-page-home="true"] #player {
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 auto !important;
    border-radius: 0 !important;
  }
  body.fvo-page-home .sp-crosslinks-section,
  body.fvo-page-specialty .sp-crosslinks-section,
  body[data-page-home="true"] .sp-crosslinks-section {
    grid-column: 1 !important;
    display: block !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: 50% !important;
    transform: translateX(-50%) !important;
    clear: both !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    box-sizing: border-box !important;
  }
}


/* ==================================================================
   Round 30 — source-built mobile home/VO rows (no viewport shift hack)
   ==================================================================
   The grey-fade family slideshow is .sp-peek-fam inside .sp-col2, not
   .sp-col1. The player and Browse sections also stay in normal document
   flow at <760 so they cannot be shoved left by 100vw/translate rules.
*/
@media (max-width: 760px) {
  body.fvo-page-home .main-row-content,
  body.fvo-page-specialty .main-row-content,
  body[data-page-home="true"] .main-row-content {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 14px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    overflow: visible !important;
  }

  body.fvo-page-home .main-row-content > .sp-col1,
  body.fvo-page-specialty .main-row-content > .sp-col1,
  body[data-page-home="true"] .main-row-content > .sp-col1 {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 100% !important;
    max-width: 300px !important;
    justify-self: center !important;
    margin: 0 auto !important;
  }

  body.fvo-page-home .main-row-content > .sp-col2,
  body.fvo-page-specialty .main-row-content > .sp-col2,
  body[data-page-home="true"] .main-row-content > .sp-col2 {
    grid-column: 1 !important;
    grid-row: 2 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(116px, 150px) !important;
    grid-template-areas:
      "head head"
      "list peek"
      "actions actions" !important;
    column-gap: 12px !important;
    row-gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    transform: none !important;
    box-sizing: border-box !important;
  }
  body.fvo-page-home .sp-col2 .voiceprofile-heading,
  body.fvo-page-specialty .sp-col2 .voiceprofile-heading,
  body[data-page-home="true"] .sp-col2 .voiceprofile-heading { grid-area: head !important; }
  body.fvo-page-home .sp-col2 .voiceprofile-list,
  body.fvo-page-specialty .sp-col2 .voiceprofile-list,
  body[data-page-home="true"] .sp-col2 .voiceprofile-list {
    grid-area: list !important;
    min-width: 0 !important;
    max-width: none !important;
    margin-bottom: 0 !important;
  }
  body.fvo-page-home .sp-col2 .sp-peek-fam,
  body.fvo-page-specialty .sp-col2 .sp-peek-fam,
  body[data-page-home="true"] .sp-col2 .sp-peek-fam {
    grid-area: peek !important;
    align-self: start !important;
    justify-self: end !important;
    width: min(150px, 100%) !important;
    margin: 2px 0 0 !important;
  }
  body.fvo-page-home .sp-col2 .sp-peek-fam__stack,
  body.fvo-page-specialty .sp-col2 .sp-peek-fam__stack,
  body[data-page-home="true"] .sp-col2 .sp-peek-fam__stack {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 2 / 3 !important;
  }
  body.fvo-page-home .sp-col2 .sp-col2__actions,
  body.fvo-page-specialty .sp-col2 .sp-col2__actions,
  body[data-page-home="true"] .sp-col2 .sp-col2__actions { grid-area: actions !important; }

  body.fvo-page-home .main-row-content > .sp-col3,
  body.fvo-page-specialty .main-row-content > .sp-col3,
  body[data-page-home="true"] .main-row-content > .sp-col3 {
    grid-column: 1 !important;
    grid-row: 3 !important;
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 auto !important;
    padding: 0 !important;
    transform: none !important;
    justify-self: stretch !important;
    box-sizing: border-box !important;
  }
  body.fvo-page-home .sp-col3 .demo-player,
  body.fvo-page-specialty .sp-col3 .demo-player,
  body[data-page-home="true"] .sp-col3 .demo-player,
  body.fvo-page-home #player,
  body.fvo-page-specialty #player,
  body[data-page-home="true"] #player {
    width: 100% !important;
    max-width: 760px !important;
    min-width: 0 !important;
    margin: 0 auto !important;
    transform: none !important;
    box-sizing: border-box !important;
  }

  body.fvo-page-home .sp-crosslinks-section,
  body.fvo-page-specialty .sp-crosslinks-section,
  body[data-page-home="true"] .sp-crosslinks-section {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    transform: none !important;
    clear: both !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 620px) {
  body.fvo-page-home .sp-col3 .demo-player,
  body.fvo-page-specialty .sp-col3 .demo-player,
  body[data-page-home="true"] .sp-col3 .demo-player,
  body.fvo-page-home #player,
  body.fvo-page-specialty #player,
  body[data-page-home="true"] #player {
    max-width: 100% !important;
    border-radius: 0 !important;
  }
}

@media (max-width: 720px) {
  body.fvo-page-home .main-row-content > .sp-col2,
  body.fvo-page-specialty .main-row-content > .sp-col2,
  body[data-page-home="true"] .main-row-content > .sp-col2 {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas:
      "head"
      "list"
      "peek"
      "actions" !important;
  }
  body.fvo-page-home .sp-col2 .sp-peek-fam,
  body.fvo-page-specialty .sp-col2 .sp-peek-fam,
  body[data-page-home="true"] .sp-col2 .sp-peek-fam {
    justify-self: center !important;
    width: min(150px, 80vw) !important;
    margin: 8px auto 4px !important;
  }
}
