/**
 * Retro Recordings XR — Studios History Page Styles
 *
 * Component CSS for page-studios-history.php. Loaded only on that template.
 * Card grid mirrors the shared archive pattern (240px media / 1fr content,
 * stacking at 700px) used by tape-machines.css and microphones.css.
 *
 * @package    RetroRecordingsXR
 * @since      2.2.0
 */

/* ─── Hero ───────────────────────────────────────────────────── */

.sh-hero {
    background: #1a1a1a;
    padding: 88px 24px 56px;
}

.sh-hero-inner {
    max-width: 60rem;
    margin: 0 auto;
}

.sh-kicker {
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #d4a574;
    margin: 0 0 12px;
}

.sh-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 5vw, 3.25rem);
    line-height: 1.1;
    color: #f4e4d7;
    margin: 0 0 20px;
}

.sh-standfirst {
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(244, 228, 215, 0.72);
    max-width: 44rem;
    margin: 0;
}

/* ─── Era jump bar ───────────────────────────────────────────── */

.sh-erabar {
    position: sticky;
    top: var(--rrxr-header-height, 52px);
    z-index: 40;
    background: #1a1a1a;
    border-top: 1px solid rgba(212, 165, 116, 0.15);
    border-bottom: 1px solid rgba(212, 165, 116, 0.15);
    padding: 10px 24px;
}

.sh-erabar-inner {
    max-width: 80rem;
    margin: 0 auto;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}

.sh-erabar-inner::-webkit-scrollbar { display: none; }

.sh-erapill {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 14px;
    border: 1px solid rgba(212, 165, 116, 0.25);
    border-radius: 2px;
    text-decoration: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.sh-erapill:hover {
    border-color: rgba(212, 165, 116, 0.6);
    background: rgba(212, 165, 116, 0.06);
}

.sh-erapill-span {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    color: rgba(244, 228, 215, 0.5);
    white-space: nowrap;
}

.sh-erapill-title {
    font-size: 0.82rem;
    color: #d4a574;
    white-space: nowrap;
}

/* ─── Era block ──────────────────────────────────────────────── */

.sh-main {
    background: #1a1a1a;
    padding: 0 24px 80px;
}

.sh-era {
    max-width: 72rem;
    margin: 0 auto;
    padding: 64px 0 24px;
    border-bottom: 1px solid rgba(212, 165, 116, 0.12);
    scroll-margin-top: calc(var(--rrxr-header-height, 52px) + 64px);
}

.sh-era:not(:has(~ .sh-era)) { border-bottom: 0; }

.sh-era-head { max-width: 46rem; margin: 0 0 36px; }

.sh-era-span {
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    color: #d4a574;
    margin: 0 0 8px;
}

.sh-era-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    color: #f4e4d7;
    margin: 0 0 16px;
}

.sh-era-intro {
    font-size: 0.98rem;
    line-height: 1.75;
    color: rgba(244, 228, 215, 0.72);
    margin: 0 0 12px;
}

.sh-era-count {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(244, 228, 215, 0.4);
    margin: 0;
}

.sh-era--unassigned {
    border: 1px solid #a33;
    padding: 24px;
    margin-bottom: 32px;
}

/* ─── Cards ──────────────────────────────────────────────────── */

.sh-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.sh-card {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 0 1.75rem;
    padding: 1.25rem;
    border: 1px solid rgba(212, 165, 116, 0.15);
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.015);
}

.sh-card-media { position: relative; align-self: start; }

.sh-card-media img,
.sh-card-noimage {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 2px;
}

.sh-card-noimage { background: rgba(244, 228, 215, 0.05); }

.sh-card-credit {
    position: absolute;
    right: 6px;
    bottom: 6px;
    font-size: 0.6rem;
    line-height: 1.2;
    padding: 2px 5px;
    border-radius: 2px;
    background: rgba(0, 0, 0, 0.6);
    color: rgba(244, 228, 215, 0.75);
}

.sh-card-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.2rem;
    color: #f4e4d7;
    margin: 0 0 6px;
}

.sh-card-meta {
    font-size: 0.8rem;
    color: rgba(244, 228, 215, 0.5);
    margin: 0 0 12px;
}

.sh-card-flag { margin-right: 6px; }

.sh-card-note {
    font-size: 0.92rem;
    line-height: 1.65;
    color: rgba(244, 228, 215, 0.8);
    margin: 0 0 14px;
}

.sh-card-link {
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    color: #d4a574;
    text-decoration: none;
    border-bottom: 1px solid rgba(212, 165, 116, 0.35);
}

.sh-card-link:hover { border-bottom-color: #d4a574; }

/* ─── Outro ──────────────────────────────────────────────────── */

.sh-outro {
    max-width: 72rem;
    margin: 0 auto;
    padding: 56px 0 0;
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
}

.sh-outro-link {
    display: inline-block;
    margin-right: 28px;
    font-size: 0.92rem;
    color: #d4a574;
    text-decoration: none;
    border-bottom: 1px solid rgba(212, 165, 116, 0.35);
}

/* ─── Mobile ─────────────────────────────────────────────────── */

@media (max-width: 700px) {
    .sh-hero { padding: 56px 18px 36px; }
    .sh-main { padding: 0 18px 56px; }
    .sh-era  { padding: 40px 0 16px; }

    .sh-card {
        grid-template-columns: 1fr;
        gap: 14px 0;
    }
}
