:root {
    /* "Vault" — same palette as the theme-vault-default doc every new tenant is seeded
       with (workers/provisioning) and DV's own site. Only used before that theme's fetch
       resolves, or if it's ever missing entirely — applyTheme()/applyDvTheme() overwrite
       these at runtime with whatever's actually configured. */
    --bg: #0b0b0d;
    --surface: rgba(138, 138, 143, 0.06);
    --surface-hover: rgba(138, 138, 143, 0.1);
    /* Soft borders (owner, 2026-11-14): the theme's accent at half strength over its background,
       so every theme gets a calm border in its own color. Hover/focus stay full --accent. */
    --border: color-mix(in srgb, var(--accent) 50%, var(--bg));
    /* The old border gray, kept for fills (placeholders, inactive slide dots). */
    --fill-muted: rgba(138, 138, 143, 0.18);
    --text: #bbbbbb;
    --subheading: #a8a8ad;
    --body-text: #c9c9cc;
    --accent: #c9a24b;
    --accent-text: #bbbbbb;
    /* Derived from --accent itself (relative color, not a fresh hex) so hover/active always
       read as a real shift even when a theme doesn't supply its own accentHover/accentActive --
       most real tenant themes don't (confirmed 2026-09-27: 4 of 5 on dvtenant left these null,
       which made hover/active collapse to plain --accent with no visible state change at all).
       JS still overwrites these when a theme *does* supply real values (Ivory does), since an
       inline style on :root always wins over this stylesheet default. */
    --accent-hover: var(--accent);
    --accent-active: var(--accent);
    /* Matches dv-style.css's fallback exactly -- missing entirely before this port
       (2026-09-02), so .empty-state--error/.pcf-status--error had no real color. */
    --danger: #c94b4b;
    /* Also missing entirely before this port -- used in 5+ places already in this file with
       no fallback, resolving to nothing/black. Same value dv-style.css and --subheading here
       already both use; not theme-driven (never set dynamically in either app.js). */
    --muted-text: #a8a8ad;
    --display: Arial, -apple-system, BlinkMacSystemFont, sans-serif;
    /* Accessibility audit (2026-09-22, matching band-website-project's own fix) -- a visible
       focus ring, theme-aware since it's derived from --accent (which applyTheme() overwrites
       at runtime). Used wherever a focus style previously just removed the outline with no
       real replacement. */
    --focus-ring: 0 0 0 3px color-mix(in srgb, var(--accent) 45%, transparent);
}

* {
    box-sizing: border-box;
}

/* The one fixed anchor point in the whole file -- everything else, including body itself, is
   em from here down. 20px, matching the established base this whole file's em values are
   already written against (CSS-UI-STANDARDS.md/WORKFLOW.md: "1em = 20px"). Without this, body's
   own em would resolve against the browser's uncontrolled default instead (usually 16px, not
   guaranteed) -- pinning it here is what actually fixes the 2026-09-09 regression, not
   abandoning em. Matches dv-style.css's own copy of this fix (2026-09-10). */
html {
    font-size: 20px; /* Base for every screen; never change it (owner, 2026-11-24). Sizes per screen are set in em on body. */
    /* iPhone (WebKit, also inside Chrome) enlarges text on its own and widens pages; and nothing
       should ever make a page slide sideways on a phone (owner, 2026-11-01). */
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    overflow-x: clip;
}

body {
    margin: 0;
    /* Text size per screen in em, phone first (owner, 2026-11-24): 20px phone, 22px tablet, 24px computer. */
    font-size: 1em;
    /* Master rule: site text is Nunito Sans (replaced Avenir, owner 2026-11-04); the band's font set is the fallback. */
    font-family: "Nunito Sans", var(--font-body, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
    font-weight: 300;
    background: var(--bg);
    color: var(--text);
    line-height: 2;
}
@media (min-width: 641px) {
    body {
        font-size: 1.1em;
    }
}
@media (min-width: 1101px) {
    body {
        font-size: 1.2em;
    }
}

a {
    color: inherit;
    text-decoration: none;
}

/* Header/logo + nav — .site-bar wraps both in the HTML, stacked as two rows: a big centered
   logo row on top, a thin nav row underneath with an accent underline stripe. */
.site-bar {
    display: flex;
    flex-direction: column;
    margin: 0;
}

.site-header {
    display: flex;
    justify-content: center;
    background: var(--header-bg, #000); /* theme Header color (owner, 2026-11-15) */
    padding: 20px 0;
}

/* Header image (owner, 2026-11-02): covers the whole header, centered. */
.site-header.has-header-image {
    background-size: cover;
    background-position: center;
}

.site-name-text {
    color: #bbbbbb;
    font-family: var(--display);
    font-size: 2.5em;
    text-decoration: none;
    padding: 20px;
    text-align: center;
    /* A long one-word name (e.g. a domain) breaks instead of widening the page (owner, 2026-11-10). */
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: anywhere;
}

/* Band name style choices (Dashboard Logo section, owner 2026-11-08). Phone first: small is
   0.85em on phones, 1.75em from tablet up. */
.site-name-text--small { font-size: 0.85em; }
@media (min-width: 781px) { .site-name-text--small { font-size: 1.75em; } }
.site-name-text--large { font-size: clamp(2.5em, 9vw, 3.5em); }
.site-name-text--xlarge { font-size: clamp(2.5em, 11vw, 4.5em); }
.site-name-text--body-font { font-family: var(--font-body, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif); }
.site-name-text--caps { text-transform: uppercase; letter-spacing: 0.05em; }
.site-header--left { justify-content: flex-start; }
.site-header--left .site-name-text { text-align: left; }

.site-logo {
    height: 250px;
    width: auto;
    /* Never wider than 300px; the picture keeps its shape (owner, 2026-11-20). */
    max-width: 300px;
    object-fit: contain;
    display: block;
}

/* Height reserved unconditionally (not toggled via JS or :empty) so the bar never pops in
   after first paint and shifts everything below it down — confirmed as a real mis-click
   cause in testing 2026-08-23: a click aimed at the Log out button's pre-shift position
   landed on the wrong element once the bar populated a moment later. */
.site-auth-status {
    min-height: 39px;
    text-align: center;
    padding: 10px 16px;
    margin: 0 0 16px;
    color: var(--body-text);
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-sizing: border-box;
}

.site-auth-status a {
    color: var(--accent);
}

/* Nav — its own row below the big logo, centered, with an accent underline stripe. Site
   name and nav links stack (name on top, links below), not side by side. */
.site-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 18px 16px;
    border-bottom: 3px solid var(--border);
}

.site-nav .brand {
    font-family: var(--display);
    letter-spacing: 0.02em;
    font-size: 0.65em;
    text-transform: uppercase;
}

.site-nav .links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 20px;
}

/* Mobile nav overflow (found in a responsiveness audit, 2026-09-22) -- .site-nav's fixed
   64px side padding alone ate ~128px of a 375px phone viewport, and .links had no wrap, so
   the nav items ran off both edges instead of fitting. No hamburger/drawer menu exists in
   this nav at all, so the fix is CSS-only: shrink the side padding and let links wrap onto a
   second line (already centered) instead of overflowing. */
@media (min-width: 641px) {
    .site-nav {
        padding: 18px 64px;
    }
    .site-nav .links {
        gap: 24px;
    }
}

.site-nav .links a {
    color: var(--body-text);
    font-size: 0.65em;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: color 0.15s ease;
}

.site-nav .links a:hover,
.site-nav .links a:focus-visible,
.site-nav .links a.active {
    color: var(--accent);
}

/* Menu with Media and Pages groups and a phone panel, DV's menu style (owner, 2026-11-22; copied from
   dv-style.css, band variables). Phone first: a Menu button slides the menu in from the right;
   900px and up, links sit in one row and a group opens a list. Hover changes the color only, no
   underline. */
.nav-menu-btn,
.nav-menu-close,
.nav-group-btn {
    background: none;
    border: 0;
    color: inherit;
    font: inherit;
    cursor: pointer;
}
.nav-menu-btn,
.nav-menu-close {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.4em 0.9em;
    font-size: 0.65em;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--body-text);
}
.nav-menu-close {
    align-self: flex-end;
}
.nav-scrim {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}
.site-nav .links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(80vw, 20em);
    box-sizing: border-box;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0;
    padding: 1em 1.5em 1.5em;
    background: var(--bg);
    border-left: 1px solid var(--border);
    overflow-y: auto;
    z-index: 1000;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 300ms cubic-bezier(.4, 0, .2, 1), visibility 300ms;
}
.site-nav.menu-open .links {
    transform: none;
    visibility: visible;
}
.site-nav .links > a,
.nav-group-list a {
    padding: 0.7em 0;
    border-bottom: 1px solid var(--border);
}
.nav-group-btn {
    padding: 0.7em 0 0.3em;
    text-align: left;
    font-size: 0.65em;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    cursor: default;
}
.nav-group-list {
    display: flex;
    flex-direction: column;
    padding-left: 1em;
}
.nav-group-list a {
    color: var(--body-text);
    font-size: 0.65em;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: color 0.15s ease;
}
.nav-group-list a:hover,
.nav-group-list a:focus-visible,
.nav-group-list a.active {
    color: var(--accent);
}
@media (min-width: 900px) {
    .nav-menu-btn,
    .nav-menu-close,
    .nav-scrim {
        display: none;
    }
    .site-nav .links {
        position: static;
        width: auto;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 24px;
        padding: 0;
        background: none;
        border: 0;
        overflow: visible;
        transform: none;
        visibility: visible;
        transition: none;
    }
    .site-nav .links > a,
    .nav-group-btn {
        position: relative;
        padding: 0.3em 0;
        border: 0;
    }
    .nav-group-btn {
        display: block;
        cursor: pointer;
        color: var(--body-text);
        transition: color 0.15s ease;
    }
    .nav-group-btn::after {
        content: " \25BE";
    }
    .nav-group-btn:hover,
    .nav-group-btn.active,
    .nav-group-btn[aria-expanded="true"] {
        color: var(--accent);
    }
    .nav-group {
        position: relative;
    }
    .nav-group-list {
        position: absolute;
        top: 100%;
        left: -1em;
        min-width: 11em;
        padding: 0.5em 1em;
        background: var(--bg);
        border: 1px solid var(--border);
        border-radius: 8px;
        opacity: 0;
        transform: translateY(-6px);
        visibility: hidden;
        transition: opacity 200ms cubic-bezier(.4, 0, .2, 1), transform 200ms cubic-bezier(.4, 0, .2, 1), visibility 200ms;
        z-index: 1000;
    }
    .nav-group:hover .nav-group-list,
    .nav-group:focus-within .nav-group-list,
    .nav-group-btn[aria-expanded="true"] + .nav-group-list {
        opacity: 1;
        transform: none;
        visibility: visible;
    }
    .nav-group-list a {
        border: 0;
        padding: 0.4em 0;
    }
}
@media (prefers-reduced-motion: reduce) {
    .site-nav .links,
    .nav-group-list {
        transition: none;
    }
}

/* Skip-to-content link (accessibility audit, 2026-09-22, matching band-website-project's own
   fix) -- visually hidden off-screen until keyboard-focused, then jumps a screen-reader/
   keyboard user straight past the header/nav to #main-content. */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 1000;
    background: var(--accent);
    color: var(--accent-text);
    padding: 12px 20px;
    border-radius: 0 0 8px 0;
    font-size: 0.7em;
    text-decoration: none;
}

.skip-link:focus {
    left: 0;
}

/* Turnstile widget (signup/login/contact) -- centered under whatever form it follows, same
   treatment everywhere it appears. */
.cf-turnstile {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

/* Layout */
main {
    max-width: var(--content-max-width, 880px);
    margin: 0 auto;
    /* No gap above or below the content panel on any screen (owner, 2026-11-23). The panel is
       .page-content (see main > .page-content::after); its own padding is the room inside it. */
    padding: 0 24px;
}

/* Pages that open with the full-width slideshow (home, custom pages): no top gap between the
   nav and the slideshow (owner, 2026-10-10). Only while the slideshow is actually showing --
   a hidden one (style="display:none") keeps the normal spacing. */
main:has(> .hero-slider-bleed:first-child > .hero-slider:not([style*="none"])) {
    padding-top: 0;
}

/* Custom pages only (page.html) -- the actual content wrapper inside <main>, nested padding on
   top of main's own (intentional, matches DV's real page exactly). Missing entirely before
   this port (2026-09-02). */
.page-content {
    padding: 30px 10px 60px;
}

/* Tablet: more room at the sides (owner, 2026-11-24). */
@media (min-width: 641px) {
    .page-content {
        padding-left: 30px;
        padding-right: 30px;
    }
}

@media (min-width: 1101px) {
    .page-content {
        padding: 30px 60px 60px;
    }
}

/* Master rule: buttons and form fields use the site's own font. Browsers otherwise give them
   their own default font, which is why the Shows header line wasn't in the site font. */
/* Every text box grows as you type (owner, 2026-11-22). Browsers without field-sizing keep the set size. */
textarea {
    field-sizing: content;
}

button, input, select, textarea {
    font-family: inherit;
}

h1 {
    /* Every page's title in the same spot: top, left-aligned (owner, 2026-10-29). */
    text-align: left;
    margin: 0 0 0.6em;
    font-family: var(--display);
    font-weight: 300;
    font-size: 2em;
    /* Phones: a title that wraps keeps its lines close (owner, 2026-11-14). */
    line-height: 1.2;
    /* --accent-active is only set by JS when a tenant's theme doc has that optional field
       (app.js's applyTheme) -- most existing tenants haven't set it, so this falls back to
       the always-defined --accent instead of resolving to nothing (found 2026-09-09, before
       this shipped anywhere -- would have made titles invisible on most tenant sites). */
    color: var(--accent-active, var(--accent));
    text-transform: lowercase;
    margin: 0 0 8px;
}
@media (min-width: 641px) {
    h1 {
        line-height: inherit;
    }
}

.page-subtitle {
    color: var(--body-text);
    margin: 0 0 40px;
}

/* Listen page hero image: below the title like the other pages, not under it (owner,
   2026-11-13). Nothing shows when there's no image. */
.listen-hero:empty {
    display: none;
}
.listen-hero {
    margin: 0 0 30px;
    border-radius: 8px;
    overflow: hidden;
}
.listen-hero img {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: cover;
    display: block;
}

/* Sub-headings within page content (Pricing/Bulk Search's "What's included", "Add-ons", etc).
   Plain element selector, not a class -- every h2 inside .page-content gets this
   automatically, no need to remember to tag each one. Same visual family as .page-title --
   var(--display) (Arial), lowercase, accent color -- just smaller since it's a section
   heading, not the page's own title. Not ".section-heading" -- that class name is already
   taken by studio.html's unrelated Studio-panel Label styling (frontend/studio-app.js), scoped
   to #studio-root. */
.page-content h2 {
    font-family: var(--display);
    font-weight: 300;
    font-size: 1em;
    color: var(--accent-active, var(--accent));
    text-transform: lowercase;
    margin: 0 0 12px;
}

#about-content p {
    color: var(--body-text);
    line-height: 1.6;
}

/* Content box — optional tenant-editable text above the discography listing
   (discographyPageContent.contentBox in the Studio). Hidden entirely when unset. */
/* Matches dv-style.css's real recipe exactly (owner direction 2026-09-02: "use dv-main's page
   css") -- box-shadow, no border. Previously diverged (border-based) for no recorded reason;
   this affects the discography page's own content-box too, not just custom pages, per the
   same "consistent across every tenant" direction as the content-max-width port. */
.content-box {
    background: var(--surface);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    /* Phone: 15px on the sides (owner, 2026-11-23); 30px from tablet up. */
    padding: 30px 15px;
    margin-bottom: 32px;
    color: var(--body-text);
    line-height: 1.65;
    white-space: pre-line;
}

@media (min-width: 641px) {
    .content-box {
        padding: 30px;
    }
}

.content-box h2:first-child {
    margin-top: 0;
}

.content-box p:last-child {
    margin: 0;
}

/* An inline link inside body copy (content-box/row-content paragraphs), e.g. Pricing's link
   to Bulk Search. */
.text-link {
    color: var(--accent);
    text-decoration: none;
}
.text-link:hover,
.accent-link:hover,
.rich-text a:hover {
    /* Lighter than the accent, like DV's hover (owner, 2026-11-22). */
    color: color-mix(in srgb, var(--accent) 55%, white);
}

.row-content ul {
    padding-left: 20px;
}

.text-center {
    text-align: center;
}

/* Strips browser default <button> chrome for a button styled via .button (e.g. Bulk Search's
   Buy Now, which must be a real <button> for form validation, not an <a>). */
.button-reset {
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.mt-16 {
    margin-top: 16px;
}

.text-danger {
    color: var(--danger);
}

.text-subheading {
    color: var(--subheading);
}

.text-sm {
    font-size: 0.65em;
}

.mt-8 {
    margin-top: 8px;
}

/* Promoted from signup.html's own local <style> block (2026-09-22) -- login.html needed the
   exact same two classes, not worth duplicating locally in a second file. */
.accent-link {
    color: var(--accent);
}

/* Links have no underline anywhere; they change color on hover (owner, 2026-11-22). */
.accent-link,
#auth-status a {
    text-decoration: none;
}

.login-link-line {
    font-size: 0.7em;
    color: var(--subheading);
}

.form-status-note {
    margin-top: 16px;
    font-size: 0.7em;
}

/* Search */
.search-bar {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.65em;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    margin-bottom: 28px;
}

.search-bar:focus {
    outline: none;
    border-color: var(--accent);
}

.search-bar::placeholder {
    color: #999;
}

/* Artwork slider — a horizontal, browsable strip of release covers above the accordion.
   Hidden entirely (empty, no display) when no release has artwork. */
.artwork-slider-wrap {
    display: none;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
}

/* Gallery-specific -- #gallery-wrap (page.html) reuses .artwork-slider-wrap above, shared with
   Discography's own artwork slider (#artwork-slider-wrap). Scoped to the ID, not the shared
   class, so this gap above the gallery doesn't also shift Discography's slider. */
#gallery-wrap {
    margin-top: 30px;
}

.artwork-slider {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    /* Sideways only: without this, overflow-y computes to auto too and the strip also
       scrolls up/down a few pixels on phones. */
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 4px;
    flex: 1;
    scrollbar-width: none;
}

.artwork-slider::-webkit-scrollbar {
    display: none;
}

.artwork-slide {
    flex: 0 0 auto;
    width: 120px;
    height: 120px;
    scroll-snap-align: start;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: none;
    border: none;
    padding: 0;
    text-align: left;
    font: inherit;
    color: inherit;
}

.artwork-slide img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
    transition: border-color 0.15s ease;
}

.artwork-slide:hover img {
    border-color: var(--accent);
}

.artwork-slide .slide-title {
    font-size: 0.65em;
    color: var(--subheading);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.slider-btn {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-size: 0.65em;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: var(--surface-hover);
    border-color: var(--accent);
}

/* At the end of a photo strip: dimmed, does nothing (owner, 2026-11-11). */
.slider-btn:disabled {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
}

@media (min-width: 641px) {
    .artwork-slide {
        width: 160px;
        height: auto;
    }
    .artwork-slide img {
        width: 160px;
        height: 160px;
    }
}

/* Accordion */
.accordion {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.accordion-item {
    /* No drop shadow (owner trying it without, 2026-11-01; was 0 4px 0px rgba(0, 0, 0, 0.3)). */
    border-radius: 8px;
    background: var(--surface);
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 18px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    color: var(--text);
    font-size: 0.7em;
}

.accordion-header:hover {
    background: var(--surface-hover);
}

.accordion-header .artwork-thumb {
    width: 100px;
    height: 100px;
    border-radius: 4px;
    object-fit: cover;
    background: var(--fill-muted);
    flex-shrink: 0;
}

/* Placeholder for missing/broken images (app.js emptyImage + error handler). Sized per spot below. */
.img-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--fill-muted);
    color: var(--accent);
    border-radius: 6px;
    flex-shrink: 0;
}

.img-empty svg {
    width: 35%;
    height: 35%;
}

.accordion-header .img-empty svg {
    width: 60%;
    height: 60%;
}

.hero-slide .img-empty,
.video-card-thumb .img-empty {
    width: 100%;
    height: 100%;
    border-radius: 0;
}

.gallery-slide .img-empty {
    height: 35vh;
    max-height: 450px;
    aspect-ratio: 4 / 3;
}

.artwork-slide .img-empty {
    width: 160px;
    height: 160px;
}

img.zoomable {
    cursor: zoom-in;
}

.img-popup {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.85);
    cursor: zoom-out;
}

.img-popup img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 6px;
}

.row-image .img-empty {
    width: 100%;
    aspect-ratio: 4 / 3;
    max-height: 450px;
}

.accordion-header .header-text {
    flex: 1;
    min-width: 0;
}

.accordion-header .release-title {
    /* Owner, 2026-10-29: the whole header (title too) in the site font, Avenir, and bigger. */
    font-family: inherit;
    font-size: 1em;
    letter-spacing: 0.01em;
}

.accordion-header .release-meta {
    color: var(--subheading);
    font-size: 1em;
    margin-top: 2px;
}

.accordion-header .chevron {
    color: var(--subheading);
    transition: transform 0.15s ease;
    flex-shrink: 0;
}

.accordion-item.open .chevron {
    transform: rotate(180deg);
}

.accordion-body {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0 18px 18px;
    color: var(--body-text);
    line-height: 1.5;
    font-size: 0.7em;
    transition: max-height 0.3s ease, opacity 0.25s ease;
}

.accordion-item.open .accordion-body {
    /* Room for long lyrics (2000px cut them off). */
    max-height: 8000px;
    opacity: 1;
}

.accordion-body dl {
    /* Smaller than the header again (owner, 2026-10-31: Discography body text too large). */
    font-size: 1em;
    display: grid;
    /* Phone: label on its own line, value under it (owner, 2026-11-23). */
    grid-template-columns: 1fr;
    gap: 4px 12px;
    margin: 0 0 12px;
}

/* Tablet: one entry per line; two per line only on desktop (owner, 2026-11-23). */
/* Tablet: label and value side by side, one entry per line. */
@media (min-width: 641px) {
    .accordion-body dl {
        grid-template-columns: auto 1fr;
    }
}
@media (min-width: 1200px) {
    .accordion-body dl {
        grid-template-columns: auto 1fr auto 1fr;
    }
}

.accordion-body dt {
    color: var(--subheading);
    font-weight: 300;
}

.accordion-body dd {
    margin: 0;
    color: var(--text);
}

.empty-state {
    color: var(--body-text);
    text-align: left;
    padding: 48px 0;
}

.empty-state--error {
    color: var(--danger);
}

/* Player section (local audio and/or streaming platforms) */
.player-section {
    margin-top: 8px;
}

.player-select-label {
    display: block;
    font-size: 1em;
    color: var(--subheading);
    margin-bottom: 8px;
}

.player-select {
    display: block;
    margin-top: 4px;
    font-size: 1em;
    color: var(--text);
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 4px 8px;
}

/* Music provider list styled like its field (owner, 2026-11-10: the browser's own list was
   tiny and off to the side). base-select lets the page style the list; browsers without it
   keep their own. Same as the Dashboard's dropdowns. */
.player-select,
.player-select::picker(select) {
    appearance: base-select;
}
.player-select::picker(select) {
    /* Band sites' page color is --bg (DV's is --background); without it the list was see-through. */
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 4px 0;
}
.player-select option {
    padding: 10px 18px;
}
/* Options slide down as the list opens (owner, 2026-11-13). */
.player-select::picker(select) {
    clip-path: inset(0 0 100% 0);
    opacity: 0;
    transition: clip-path 300ms cubic-bezier(0.2, 0, 0, 1), opacity 300ms cubic-bezier(0.2, 0, 0, 1), overlay 300ms allow-discrete, display 300ms allow-discrete;
}
.player-select:open::picker(select) {
    clip-path: inset(0);
    opacity: 1;
}
@starting-style {
    .player-select:open::picker(select) {
        clip-path: inset(0 0 100% 0);
        opacity: 0;
    }
}
@media (prefers-reduced-motion: reduce) {
    .player-select::picker(select) {
        transition: none;
    }
}

.stream-embed {
    display: block;
    border-radius: 6px;
}

.streaming-link {
    display: inline-block;
    font-size: 1em;
    color: var(--accent-text);
    background: var(--accent);
    padding: 4px 10px;
    border-radius: 999px;
    text-decoration: none;
}

/* Audio files */
.audio-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

/* Compact play/pause/stop player (2026-09-08, matches the same .audio-btn/.audio-buttons
   pattern custom pages' row-audio already uses) -- the native <audio> element stays in the DOM
   for real playback, just visually hidden since it has no `controls` attribute of its own. */
.audio-item audio {
    display: none;
}

.audio-item .audio-buttons {
    margin-bottom: 6px;
}

.audio-item .audio-meta {
    display: flex;
    justify-content: space-between;
    /* Same size as the release fields (0.65em here was about 8px, too small). */
    font-size: 1em;
    color: var(--subheading);
    margin-top: 4px;
}

.audio-item .audio-meta a {
    color: var(--accent);
}

.audio-item .audio-meta .not-downloadable {
    color: var(--subheading);
    font-style: italic;
}

.audio-item .audio-credits {
    color: var(--subheading);
    margin-top: 4px;
}

.release-lyrics {
    margin: 0 0 12px;
}

.release-lyrics summary {
    cursor: pointer;
    color: var(--accent);
}

/* Keeps the band's own line breaks in lyrics. */
.release-lyrics p {
    white-space: pre-line;
    columns: 1;
    column-gap: 32px;
}

@media (min-width: 641px) {
    .release-lyrics p {
        columns: 2;
    }
}
/* Home */
.hero {
    padding: 64px 0;
    text-align: center;
}

.hero h1 {
    /* The band name on the home banner stays centered; page titles are left (owner, 2026-10-29). */
    text-align: center;
    font-family: var(--display);
    font-weight: 300;
    font-size: 2em;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    margin: 0 0 12px;
}

.hero p {
    color: var(--body-text);
    max-width: 520px;
    margin: 0 auto 28px;
}

/* Hero photo (owner, 2026-11-14): the hero block's own photo behind the name and tagline. Phone
   first: a plain cover photo; on big screens the photo stays fixed while the page scrolls over it. */
.hero-photo {
    /* Full width, like the first build's photo bands (owner, 2026-11-14). */
    width: 100vw;
    position: relative;
    left: 50%;
    margin-left: -50vw;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 16px;
    padding-right: 16px;
    isolation: isolate;
    overflow: hidden;
}
/* The hero's name and tagline on the content's 75% black panel, as wide as the content (owner, 2026-11-14). */
.hero-photo::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: min(100vw, 1920px);
    transform: translateX(-50%);
    z-index: -1;
    background: color-mix(in srgb, var(--panel, #000000) 75%, transparent);
}
.hero-photo-band::after {
    content: none;
}
/* Gallery as wide as the slideshow and the panels: full width up to 1920px (owner, 2026-11-14). */
main > .page-content > #gallery-wrap {
    position: relative;
    left: 50%;
    width: min(100vw, 1920px);
    margin-left: calc(min(100vw, 1920px) / -2);
    box-sizing: border-box;
}
/* Callouts in the hero: next show and new release (owner, 2026-11-14). Stacked on phones. */
.hero-callouts {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}
.hero-callout {
    display: flex;
    flex-direction: column;
    width: min(100%, 22em);
    padding: 12px 16px;
    border: 1px solid var(--border);
    background: color-mix(in srgb, var(--panel, #000000) 75%, transparent);
    color: var(--text);
    text-decoration: none;
    text-align: left;
    transition: border-color 0.2s ease;
}
.hero-callout:hover {
    border-color: var(--accent);
}
.hero-callout-label {
    font-size: 0.6em;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
}
.hero-callout-main {
    font-size: 0.9em;
}
.hero-callout-sub {
    font-size: 0.65em;
    opacity: 0.85;
}
@media (min-width: 641px) {
    .hero-callouts {
        flex-direction: row;
        justify-content: center;
    }
}
/* Fixed choice: the photo stays still while the page scrolls over it (big screens only). */
@media (min-width: 1101px) and (prefers-reduced-motion: no-preference) {
    .px-fixed {
        background-attachment: fixed;
    }
}
/* The moving photo layer inside a hero or background box (app.js addParallaxPhoto). */
.px {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 100%;
    z-index: -1;
    background-size: cover;
    background-position: center;
    will-change: transform;
    transition: opacity 0.4s ease;
}
/* Hidden until app.js has set up the background effect (owner, 2026-11-15). */
.px-wait > .px {
    opacity: 0;
}
/* Background effects (owner, 2026-11-15). Slow zoom and Crossfade work on every screen;
   reduced motion keeps the photo still. */
@media (prefers-reduced-motion: no-preference) {
    .px-zoom {
        animation: px-zoom 14s ease-in-out infinite alternate;
    }
    .px-fade {
        transition: opacity 1.5s ease;
    }
}
@keyframes px-zoom {
    from { transform: scale(1); }
    to { transform: scale(1.15); }
}
.px-fade:not(.px-on) {
    opacity: 0;
}
.hero-photo h1,
.hero-photo p {
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}
/* On the panel the theme's own text color reads best (owner, 2026-11-15); photo bands keep white. */
.hero-photo:not(.hero-photo-band) h1,
.hero-photo:not(.hero-photo-band) p {
    color: var(--text);
    text-shadow: none;
}
/* No forced height: the tagline block stays the size it always was, photo or not (owner, 2026-11-15). */
/* Extra hero photos (owner, 2026-11-14): the content sits on one see-through black panel
   (.page-content), with full-width photos behind it that stay fixed on big screens. */
/* Every page's content on the same 75% black panel (owner, 2026-11-14), as wide as the slideshow
   (full width up to 1920px), with any background photos behind it. */
main > .page-content {
    position: relative;
    isolation: isolate;
}
main > .page-content::after {
    content: "";
    position: absolute;
    top: 0;
    /* 2px past the bottom so a rounding gap never shows a strip under the panel (owner, 2026-11-24). */
    bottom: -2px;
    left: 50%;
    width: min(100vw, 1920px);
    transform: translateX(-50%);
    z-index: -1;
    background: color-mix(in srgb, var(--panel, #000000) 75%, transparent);
}
/* Section background photos: hidden on phones, where they can't be made out and only clutter the
   page (owner, 2026-11-28). They start at tablet width. */
.bg-layer {
    display: none;
    position: absolute;
    left: 50%;
    width: 100vw;
    margin-left: -50vw;
    z-index: -2;
    overflow: hidden;
}
@media (min-width: 641px) {
    .bg-layer {
        display: block;
    }
}


.button {
    display: inline-block;
    padding: 12px 24px;
    background: var(--accent);
    color: var(--accent-text);
    border: none;
    border-radius: 8px;
    font-weight: 300;
    font-size: 0.65em;
    cursor: pointer;
    font-family: inherit;
}

/* Shows page ticket links (added 2026-10-04) -- one button per seller, wrapping onto new
   lines on narrow screens. */
.ticket-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

/* Phone first (owner, 2026-11-10): form buttons (Contact, Booking, page contact form) and
   ticket buttons centered on phones; from 641px up they sit at the left as before. */
form .button {
    display: flex;
    width: fit-content;
    margin-inline: auto;
}
.ticket-links {
    justify-content: center;
}
@media (min-width: 641px) {
    form .button {
        display: inline-flex;
        margin-inline: 0;
    }
    .ticket-links {
        justify-content: flex-start;
    }
}

/* Sold out / not on sale yet -- same shape as .button, visibly inactive, not clickable. */
.button-disabled {
    opacity: 0.5;
    cursor: default;
}

/* Free entry / at the door with no link -- plain text, same size as a button label. */
.ticket-note {
    display: inline-block;
    padding: 12px 0;
    /* Same font and size as the page text, not the small serif it was (owner, 2026-10-29). */
    font-family: var(--font-body, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
    font-size: 0.85em;
}

/* Everything below this line was ported verbatim from dv-style.css 2026-09-02 (owner
   direction: shared/consistent styling across every tenant, not a per-tenant fork) --
   previously DV-only, with no equivalent here at all. CSS only for now, inert until the
   generic frontend/page.html + custom-page.js template that uses it is actually built (the
   real .content-box above stays untouched -- it's discography's own, already-decided
   version). */

/* Only the custom page's intro (right after the title) — not discography's content-box,
   which shares the .content-box class but should stay full width. */
#page-intro {
    width: 100%;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 60px;
    font-size: 1em;
    line-height: 1.75em;
    padding: 30px;
}

@media (min-width: 1101px) {
    #page-intro {
        width: 75%;
        text-align: unset;
    }
}

/* Footer — site-wide (globalSettings.socialLinks), rendered by app.js's renderFooter() into
   every page's #site-footer element. */
.site-footer {
    /* No gap above the footer on any screen (owner, 2026-11-23). */
    margin-top: 0;
    padding: 32px 24px 40px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
}

.site-footer .footer-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Page links in two columns (owner, 2026-11-23): left column aligned right, right column aligned
   left (owner, 2026-11-24). Both columns the same width, so the gap between them is the page's
   center (owner, 2026-11-24). */
.site-footer .footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
    align-items: start;
}
.site-footer .footer-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.site-footer .footer-col-left {
    align-items: flex-end;
    text-align: right;
}
.site-footer .footer-col-right {
    align-items: flex-start;
    text-align: left;
}

.site-footer a {
    color: var(--subheading);
    font-size: 0.65em;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
}

/* Social icons in the band's accent color (owner, 2026-11-15). */
.site-footer a.social-icon {
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.footer-newsletter {
    display: flex;
    gap: 8px;
}

.footer-newsletter input {
    padding: 8px 12px;
    font-size: 0.65em;
    background: color-mix(in srgb, var(--bg) 45%, var(--muted, var(--bg)));
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
}

.footer-newsletter input::placeholder {
    color: #999;
}

.footer-newsletter button {
    padding: 8px 16px;
    font-size: 0.65em;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: var(--accent);
    color: var(--accent-text);
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.footer-newsletter-status {
    color: var(--subheading);
    font-size: 0.65em;
}

.footer-newsletter-error {
    display: block;
    color: var(--subheading);
    font-size: 0.65em;
    margin-top: 6px;
}

.site-footer a:hover {
    color: var(--text);
}

.site-footer .footer-label {
    font-size: 0.65em;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--subheading);
}

/* Custom pages (frontend/page.html + custom-page.js) — hero slider, content rows.
   Gallery-placement media reuses .artwork-slider/.artwork-slide, no new CSS needed. */

/* Breaks the hero out of main's content column to span the full viewport width, capped at
   2000px — text/content rows below stay narrow and readable, only the hero goes wide. The
   outer wrapper does the breakout (must not carry its own max-width, or the vw-based margins
   and the cap fight each other and throw off centering); .hero-slider itself just centers
   within that full-bleed space up to the cap. */
.hero-slider-bleed {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}
/* Home hero image (owner, 2026-11-15): one image under the tagline at its actual size, up to
   1620px wide (smaller only on smaller screens), centered. It steps out of the 880px text column. */
.home-hero-image {
    width: 100vw;
    position: relative;
    left: 50%;
    margin-left: -50vw;
}
.home-hero-image img {
    display: block;
    max-width: min(100%, 1920px);
    height: auto;
    margin: 0 auto;
}
/* A border around the hero image everywhere (owner, 2026-11-23). */
.home-hero-image img,
.listen-hero {
    border: 1px solid var(--border);
}
.home-hero-caption {
    max-width: 880px;
    margin: 0 auto;
    padding: 0.75em 1em;
    text-align: center;
    color: var(--muted);
}
/* Home slideshow strip, moved above <main> by home.js (owner, 2026-11-08). */
.slideshow-strip {
    left: auto;
    right: auto;
    margin-left: 0;
    margin-right: 0;
}
/* Content size: the strip (and its color) is only as wide as the content column; the slideshow
   inside stays max 1920px either way. */
.slideshow-strip--content {
    width: auto;
    max-width: var(--content-max-width, 1920px);
    margin-left: auto;
    margin-right: auto;
}
main.after-slideshow-strip {
    padding-top: 0;
}
/* No gap under the slideshow inside the strip (owner, 2026-11-08). */
.slideshow-strip > .hero-slider {
    margin-bottom: 0;
}

.hero-slider {
    position: relative;
    width: 100%;
    /* Slideshow pictures are 16:9, at least 1920 x 1080: the frame is 16:9 too, up to 1920px
       wide, so they fill it at full size (owner, 2026-11-04). Was a 16:6 banner that shrank them. */
    max-width: 1920px;
    margin: 0 auto 30px;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.hero-slider.has-video {
    aspect-ratio: 16/9;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    /* A slow fade between slides, same as the fade gallery (owner, 2026-11-25; was 0.3s, which looked like a cut). */
    transition: opacity 1s ease;
    pointer-events: none;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.hero-slide-embed-wrap {
    width: 100%;
    height: 100%;
    background: var(--background);
}

.hero-slide-embed-wrap iframe,
.hero-slide-embed-wrap video.video-file {
    width: 100%;
    height: 100%;
    display: block;
    border: none;
}

.hero-slider .slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.hero-slider .slider-prev {
    left: 12px;
}

.hero-slider .slider-next {
    right: 12px;
}

.hero-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 2;
}

.hero-dots button {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: var(--fill-muted);
    cursor: pointer;
}

.hero-dots button.active {
    background: var(--accent);
}

.content-rows {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px 60px;
}

@media (min-width: 1101px) {
    .content-rows {
        grid-template-columns: 1fr 1fr;
    }
}

.content-row {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-bottom: 24px;
    border-bottom: 1px solid #999;
}

/* A single content row has no second box to sit beside — span the full grid width so it can
   center itself, but cap its own size to half and center it, rather than leaving it stuck in
   the left column with empty space on the right. Container width is untouched. */
.content-row:nth-child(odd):last-child {
    grid-column: 1 / -1;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 1101px) {
    .content-row:nth-child(odd):last-child {
        width: 75%;
    }
}

/* Image floats left inside the content block, text wraps around it (always left, never
   alternates — flip-flopping sides was removed per feedback). */
.row-image {
    float: none;
    width: fit-content;
    /* Capped so the text beside it keeps most of the row (owner, 2026-10-11) -- was free to
       grow almost full width, squeezing the text to a few words per line. */
    max-width: 100%;
    margin: 0 auto 20px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--surface);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.row-image img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 450px;
}

/* No text in the box (owner, 2026-11-03): the image fills the box, centered, never stretched past
   its own size. */
.row-content.image-only .row-image {
    float: none;
    max-width: 100%;
    width: fit-content;
    margin: 0 auto 16px;
}
/* Same 450px cap as the other content box pictures (owner, 2026-11-03: a no-text box blew
   a 1536px picture up to fill the whole box). */

@media (min-width: 1101px) {
    .row-image {
        float: left;
        width: auto;
        max-width: 40%;
        margin: 0 30px 30px 0;
    }
}

.row-content {
    overflow-wrap: anywhere; /* long web addresses break so text keeps flowing beside the image (owner, 2026-11-28) */
    text-align: left;
    overflow: hidden;
    position: relative;
    color: var(--body-text);
    line-height: 1.75em;
    white-space: pre-line;
    padding-top: 0;
}
@media (min-width: 1101px) {
    .row-content {
        text-align: unset;
    }
}

.row-content.has-audio {
    padding-bottom: 64px;
}

/* Fill the whole panel so the audio player sits at the panel's bottom, level with the panel
   beside it, not right under a short bit of text (owner, 2026-10-11). */
.content-row > .row-content {
    flex: 1;
}

.row-audio {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: fit-content;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.row-audio .fname {
    font-size: 0.65em;
    color: var(--muted-text);
}

.audio-buttons {
    display: flex;
    gap: 8px;
    flex: 0 0 auto;
}

/* Every player button on the site, one look (owner, 2026-11-15, from garykingproject.com/listen):
   plain icons, no fill, square; each turns its color on hover and while it's the current state
   (app.js marks it .is-active): Play green, Pause orange-yellow, Stop red. */
.audio-btn {
    width: 2em;
    height: 1.6em;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    color: var(--text);
    font-size: 1.25em;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* Icons are drawn (app.js AUDIO_ICONS), all the same size: 24px like gkp's. */
.audio-btn svg {
    width: 1.2em;
    height: 1.2em;
    fill: currentColor;
}
.audio-play-btn:hover,
.audio-play-btn.is-active { color: #66BB6A; }
.audio-pause-btn:hover,
.audio-pause-btn.is-active { color: #ffc107; }
.audio-stop-btn:hover,
.audio-stop-btn.is-active { color: #ff0500; }

/* Contact layout form — copied verbatim from frontend/contact.html's inline styles, minus
   the artist/release-count fields (specific to DV's own white-glove contact form). */
.contact-field {
    display: block;
    margin-bottom: 20px;
}

.contact-field label {
    display: block;
    font-size: 0.65em;
    color: var(--muted-text);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.contact-field input,
.contact-field textarea {
    width: 100%;
    padding: 10px 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-size: 0.65em;
    font-family: inherit;
    box-sizing: border-box;
}

/* Page contact form (Contact Form switch on a custom page): same width and label color as the
   DV site's page form and the main Contact page (owner, 2026-10-11). */
#contact-form-wrap {
    max-width: 560px;
    margin: 32px auto 0;
}

#page-contact-form .contact-field label {
    color: var(--subheading);
}

.contact-field textarea {
    resize: vertical;
    min-height: 100px;
}

/* Gallery (custom pages) — fully independent from .artwork-slide/.artwork-slider above,
   deliberately not reused (a Gallery-only sizing change should never leak into Discography's
   own artwork slider). Missed in the first port pass 2026-09-02 -- these five rules simply
   didn't exist here at all, which is why the gallery rendered unstyled. .artwork-slider-wrap
   and .slider-btn above are shared with Discography's slider and were already present. */
.gallery-slider {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 4px;
    flex: 1;
    scrollbar-width: none;
}

.gallery-slider::-webkit-scrollbar {
    display: none;
}

/* Too few images to fill the strip: center them (owner, 2026-11-03). Auto margins, not
   justify-content:center, so a full strip still scrolls from its first image. */
.gallery-slider > :first-child,
.artwork-slider > :first-child {
    margin-left: auto;
}

.gallery-slider > :last-child,
.artwork-slider > :last-child {
    margin-right: auto;
}

/* Was a fixed 450x450 square with object-fit:cover, center-cropping every non-square upload
   regardless of shape (owner discussion 2026-09-06). Fixed height, auto width instead -- a
   normal photo (square, 4:3, 3:2, 16:9) renders uncropped at its own natural width, filling the
   space without distortion. max-width caps how wide any single image can get (a 2:1 image hits
   it right at its natural size, so cover never actually crops a normal upload) -- pure defensive
   fallback for pre-existing wide images already in data from before the panel started rejecting
   new ones over that ratio at upload (studio-app.js's ArrayItemImageThumb maxAspectRatio). */
.gallery-slide {
    flex: 0 0 auto;
    scroll-snap-align: start;
    /* Photo + caption as a table: the photo sets the width and the caption wraps under it, the
       same in every browser incl. iPad/Safari (owner, 2026-11-25). */
    display: table;
}

.gallery-slide img {
    height: 28vh;
    max-height: 220px;
    width: auto;
    border-radius: 6px;
    display: block;
    transition: border-color 0.15s ease;
}

.gallery-slide:hover img {
    border-color: var(--accent);
}

.gallery-slide .slide-title {
    font-size: 0.65em;
    color: var(--muted-text);
    /* Under the photo, as wide as the photo: one line when it fits, wraps only when it's longer
       than the photo, 2 lines at most (owner, 2026-11-24/25). */
    display: table-caption;
    caption-side: bottom;
    padding-top: 8px;
    line-height: 1.5;
    /* Two full lines plus the 8px gap above (the box counts its padding). */
    max-height: calc(3em + 8px);
    overflow: hidden;
}

@media (min-width: 641px) {
    .gallery-slide img {
        height: 35vh;
        max-height: 450px;
    }
}

/* Contact-layout page status message (custom-page.js's renderContactForm). Ported for
   completeness even though the form itself can't actually submit yet on tenant subdomains --
   see custom-page.js's own comment on /api/contact. */
.pcf-status {
    margin-top: 16px;
    font-size: 0.65em;
}

.pcf-status--success,
.pcf-status--error {
    display: inline-block;
    padding: 10px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
}

.pcf-status--success {
    color: var(--text);
}

.pcf-status--error {
    color: var(--danger);
    border-color: var(--danger);
}

/* ===== LISTEN PAGE ===== */
/* Exact port of the reference band-website-project site's own .listen-grid/.embed-container
   rules (frontend/style.css there) -- Spotify + Bandcamp side by side, SoundCloud/Apple Music
   full-width below. var(--surface)/var(--border)/var(--text) are dv-main's equivalents of the
   reference's var(--card-bg)/var(--border)/var(--text-primary) (dv-main's --border is a bare
   color, not a full shorthand like the reference's, hence "1px solid" here). */
.listen-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin: 20px 0;
}

/* Phones: one player per row -- side by side they were ~110px wide and ran off the screen
   (2026-10-27 test). */
@media (min-width: 641px) {
    .listen-grid { grid-template-columns: 1fr 1fr; }
}

/* Player layout picked in the Dashboard (owner, 2026-11-08): side by side (default) or one per row. */
.listen-layout-stacked .listen-grid {
    grid-template-columns: 1fr;
}

.embed-container {
    min-width: 0;
    padding: 20px;
    background: var(--surface);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.embed-container.empty {
    display: none;
}

.embed-container h2 {
    margin: 0 0 15px 0;
    color: var(--text);
    font-size: 1em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.embed-container iframe {
    width: 100%;
    max-width: 100% !important;
    border: 0;
    min-height: 152px;
}

/* ===== VIDEOS PAGE / FADE SLIDESHOW ===== */
#fade-gallery-wrapper {
    position: relative;
    width: 100%;
    /* Same 1920px as the slideshow and the panels (owner, 2026-11-14; was 2000). */
    max-width: 1920px;
    margin: 0 auto 32px;
    background: var(--surface);
    border-radius: 8px;
    overflow: hidden;
}

#fade-gallery {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.fade-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 1s ease;
    z-index: 1;
}

.fade-slide.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 2;
}

.video-wrapper {
    width: 100%;
    height: 100%;
    background: #000;
}

.video-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.slide-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.5);
    color: #bbbbbb;
    font-size: 1.2em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-arrow:hover {
    background: rgba(0, 0, 0, 0.75);
}

.slide-prev { left: 16px; }
.slide-next { right: 16px; }

#slide-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 8px;
}

#slide-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
}

#slide-dots .dot.active {
    background: #fff;
}

.video-grid {
    display: grid;
    /* Phone: one video, full width (owner, 2026-11-23); tablet and up keep 280px cards. */
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 20px 0;
}

@media (min-width: 641px) {
    .video-grid {
        grid-template-columns: repeat(auto-fill, 280px);
    }
}

.video-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.video-card:hover {
    border-color: var(--accent);
}

.video-card-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
}

.video-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Embed Code videos: the host's own player fills the card. */
.video-card-thumb.video-card-embed iframe,
.video-card-thumb.video-card-embed video.video-file {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}

/* TikTok and Instagram players are tall: full height, centered, in every wide frame
   (slideshows, Videos player and cards). */
.hero-slide-embed-wrap iframe.embed-tall,
.fade-slide iframe.embed-tall,
.video-card-thumb.video-card-embed iframe.embed-tall,
.video-wrapper iframe.embed-tall {
    display: block;
    width: auto;
    max-width: 100%;
    height: 100%;
    aspect-ratio: 9 / 16;
    margin: 0 auto;
    border: 0;
}

/* Phones: a slideshow or Videos player with a tall video in it gets a tall frame (up to 80% of
   the screen), so the tall video fills the width; wide slides show space above and below. */
.hero-slider.has-tall,
#fade-gallery.has-tall {
    aspect-ratio: 9 / 16;
    max-height: 80vh;
}
@media (min-width: 641px) {
    .hero-slider.has-tall,
    #fade-gallery.has-tall {
        aspect-ratio: 16 / 9;
        max-height: none;
    }
}

.video-card-content {
    padding: 16px;
}

.video-card-title {
    color: var(--text);
    font-weight: 300;
    margin-bottom: 4px;
}

.video-card-description {
    color: var(--muted-text);
    font-size: 1em;
}

.channel-link-wrap {
    text-align: center;
    margin: 24px 0;
}

/* Credits and dates use the font bundle's "session sheet" face when one is chosen (Dashboard ->
   Fonts, owner 2026-10-10); Classic leaves them on the body font. */
.release-meta,
main dl {
    /* Owner, 2026-10-29: dates and details in the site font (Avenir), not the font set's mono. */
    font-family: inherit;
}

/* Store (2026-10-27): featured products at the bottom of every page's content. Products themselves
   are drawn by Shopify's Buy Button inside its own frames; this only lays out the row around them. */
.featured-products {
    margin-top: 40px;
    padding-top: 30px;
}

.featured-products h2 {
    text-align: center;
    margin: 0 0 20px;
}

/* Shopify products, one Buy Button each: 4 across, 2 on phones. */
.shopify-products {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.shopify-products > div {
    flex: 0 1 calc(50% - 10px);
    min-width: 0;
}

/* Phones: a soft border around each product (owner, 2026-11-14); none on bigger screens. */
.shopify-products > div {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px;
}

@media (min-width: 641px) {
    .shopify-products > div {
        flex-basis: calc(25% - 15px);
        border: none;
        padding: 0;
    }
}

/* Every card in a row as tall as the tallest, so Add to cart lines up at the bottom
   (owner, 2026-11-14; the button is pinned to the bottom inside the frame, app.js). */
.shopify-products > div,
.shopify-products > div > div {
    display: flex;
    flex-direction: column;
}
.shopify-products > div > div,
.shopify-products iframe {
    flex: 1 0 auto;
}

/* Shows and Videos: content centered, at most 1080px wide; the title sits at the left edge of
   that same column (owner, 2026-10-29). */
body:has(#shows-title) #accordion, #video-grid, #channel-link,
body:has(#shows-title) #empty-state, body:has(#videos-title) #empty-state {
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
}
/* The video cards are fixed 280px columns, so center the columns themselves too. */
#video-grid { justify-content: center; }

/* Shows: the poster inside the opened show, 150px wide (owner, 2026-10-29). */
.show-poster {
    width: 150px;
    height: auto;
    display: block;
    margin: 0 0 12px;
    border-radius: 4px;
    cursor: zoom-in;
}

/* Shows: ticket buttons the same size as the show's details (owner, 2026-10-29). */
.ticket-links .button {
    font-size: 1.1em;
}
/* Hover for every site button (owner, 2026-10-29). */
a.button:hover, button.button:hover {
    filter: brightness(1.15);
    cursor: pointer;
}

/* Material-style checkboxes and radio buttons (owner, 2026-11-01): accent-colored outline,
   filled box with a check when ticked, dot when a radio is chosen. */
input[type="checkbox"],
input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    display: inline-grid;
    place-content: center;
    flex-shrink: 0;
    width: 1.1em;
    height: 1.1em;
    margin: 0 0.4em 0 0;
    vertical-align: -0.2em;
    border: 2px solid var(--accent);
    border-radius: 3px;
    background: transparent;
    cursor: pointer;
    transition: background 0.15s;
}
input[type="radio"] {
    border-radius: 50%;
}
input[type="checkbox"]:checked {
    background: var(--accent);
}
input[type="checkbox"]:checked::before {
    content: "";
    width: 0.5em;
    height: 0.28em;
    border-left: 2px solid var(--background);
    border-bottom: 2px solid var(--background);
    transform: translateY(-0.06em) rotate(-45deg);
}
input[type="radio"]:checked::before {
    content: "";
    width: 0.5em;
    height: 0.5em;
    border-radius: 50%;
    background: var(--accent);
}
input[type="checkbox"]:focus-visible,
input[type="radio"]:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Player starts closed: provider dropdown or single button, centered with the player (owner, 2026-11-05). */
.player-section {
    text-align: center;
}

.player-select-label {
    margin-bottom: 0;
}

.player-select,
.player-single-btn {
    font-size: 1em;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 8px;
    width: min(100%, 22em);
    display: block;
    margin: 0 auto;
}

/* The dropdown's text and arrow on one line (owner, 2026-11-10). */
.player-select {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.player-single-btn {
    border: none;
    background: var(--accent);
    color: var(--accent-text);
    cursor: pointer;
}

.player-single-btn[hidden] {
    display: none;
}

.player-close-btn {
    display: block;
    margin: 12px auto 0;
    padding: 8px 18px;
    border: none;
    border-radius: 999px;
    background: var(--accent);
    color: var(--accent-text);
    font-size: 0.9em;
    cursor: pointer;
}

.player-close-btn[hidden] {
    display: none;
}

/* Closed until a provider is chosen, then opens with a fade and a drop-down (owner, 2026-11-05). */
.player-container {
    display: flex;
    justify-content: center;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    /* Material "standard" curve, 300ms (expand/collapse). The script sets max-height to the
       real height of the player, so the whole 300ms is visible instead of finishing early. */
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.player-container.open {
    opacity: 1;
}

.player-container > * {
    margin-top: 12px;
}

.player-container .stream-embed {
    max-width: 640px;
}

.player-container .audio-list {
    width: 100%;
    max-width: 640px;
}

@media (prefers-reduced-motion: reduce) {
    .player-container { transition: none; }
}

/* Discography player look, like Spotify/Apple: each of our tracks sits in a card (10px radius,
   border, theme background) with labeled pill buttons (owner, 2026-11-05). Discography only. */
.player-container .stream-embed {
    border: 1px solid color-mix(in srgb, var(--text) 25%, transparent);
    border-radius: 10px;
}

.player-container .audio-list {
    width: 100%;
    max-width: 640px;
    gap: 12px;
}

.player-container .audio-item {
    padding: 14px 16px;
    border: 1px solid color-mix(in srgb, var(--text) 25%, transparent);
    border-radius: 10px;
    background: var(--bg);
    text-align: left;
}


/* Theme background image (owner, 2026-11-07): fills the screen once and stays put while the
   content scrolls over it. A fixed layer, not background-attachment: fixed (unreliable on iPhone).
   app.js sets --bg-image. */
html {
    background-color: var(--bg);
}
html::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image: none;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
}
/* Only the content column gets the theme color at 80% so text stays readable; the rest shows
   the image fully (owner, 2026-11-07). */
/* Phones show the theme color only: on a small screen the picture can't be made out and only
   clutters the page (owner, 2026-11-28). The image starts at tablet width. */
body,
#main-content {
    background: var(--bg);
}
@media (min-width: 641px) {
    html::before {
        background-image: var(--bg-image, none);
    }
    body {
        background: color-mix(in srgb, var(--bg) var(--body-alpha, 100%), transparent);
    }
    #main-content {
        background: color-mix(in srgb, var(--bg) var(--content-alpha, 100%), transparent);
    }
}

/* Mock-up preview bar (owner, 2026-11-12). */
.mockup-bar {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 8px 16px;
    text-align: center;
    font-size: 0.8em;
    background: var(--accent);
    color: var(--accent-text, #111);
}
.mockup-bar a {
    color: inherit;
    text-decoration: none;
}


/* Rich text from the Dashboard's text box (owner, 2026-11-13): in the band's own font and colors. */
.rich-text p {
    margin: 0 0 0.6em;
}
.rich-text h3 {
    margin: 0.6em 0 0.3em;
    font-size: 1em; /* Same heading size as every other page (owner, 2026-11-27). */
}
/* Three headings, Size (owner, 2026-11-15). */
.rich-text h2,
.rich-text h4 {
    margin: 0.6em 0 0.3em;
    font-family: inherit;
    color: inherit;
    text-transform: none;
}
.rich-text h2 { font-size: 1em; font-weight: 700; }
.rich-text h4 { font-size: 1em; }
/* Large = the band name line on Home (2em), Small = plain text size (owner, 2026-11-15). */
.rt-size-small { font-size: 1em; }
.rt-size-large { font-size: 2em; }
.rt-size-xlarge { font-size: 2.5em; }
.rt-color-accent { color: var(--accent); }
.rich-text ul,
.rich-text ol {
    display: inline-block;
    text-align: left;
    margin: 0.3em 0 0.6em;
    padding-left: 1.4em;
}
.rich-text a {
    color: var(--accent);
    text-decoration: none;
}

/* Soft borders turn full accent while in use (owner, 2026-11-14). */
.player-select:focus-visible,
.footer-newsletter input:focus,
.contact-field input:focus,
.contact-field textarea:focus {
    border-color: var(--accent);
    outline: none;
}

/* Buttons (owner, 2026-11-14, picked from the button preview):
   main actions = accent "icon chip" with an arrow square that nudges on hover;
   other buttons = soft outline whose accent line spins around it on hover. */
.button,
.auth-button:not(.secondary),
.footer-newsletter button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 8px 8px 8px 22px;
    background: var(--accent);
    color: var(--accent-text);
    border: none;
    border-radius: 14px;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
}
.button::after,
.auth-button:not(.secondary)::after,
.footer-newsletter button::after {
    content: "→";
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2em;
    height: 2.2em;
    border-radius: 10px;
    background: var(--accent-text);
    color: var(--accent);
    transition: transform 0.25s cubic-bezier(.22, 1, .36, 1);
}
.button:hover::after,
.auth-button:not(.secondary):hover::after,
.footer-newsletter button:hover::after {
    transform: translateX(3px);
}
/* Sold out / not on sale: no arrow, nothing to click. */
.button-disabled {
    padding: 12px 22px;
}
.button-disabled::after {
    content: none;
}

@property --btn-spin {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}
.button-secondary,
.lp-btn-outline,
.auth-button.secondary,
.player-single-btn,
.player-close-btn {
    position: relative;
    background: transparent;
    color: var(--accent);
    border: none;
    border-radius: 999px;
    text-decoration: none;
    cursor: pointer;
}
/* The outline is drawn here so it can spin: soft at rest, an accent line circling on hover. */
.button-secondary::before,
.lp-btn-outline::before,
.auth-button.secondary::before,
.player-single-btn::before,
.player-close-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: inherit;
    background: var(--border);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
.button-secondary:hover::before,
.lp-btn-outline:hover::before,
.auth-button.secondary:hover::before,
.player-single-btn:hover::before,
.player-close-btn:hover::before {
    background: conic-gradient(from var(--btn-spin), var(--border) 0 60%, var(--accent) 80%, var(--border) 100%);
    animation: btn-spin 3s linear infinite;
}
.button-secondary:hover,
.lp-btn-outline:hover,
.auth-button.secondary:hover,
.player-single-btn:hover,
.player-close-btn:hover {
    box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 35%, transparent);
}
.button-secondary {
    display: inline-block;
    padding: 12px 24px;
    font-family: inherit;
}
@keyframes btn-spin {
    to { --btn-spin: 360deg; }
}
@media (prefers-reduced-motion: reduce) {
    .button::after,
    .auth-button:not(.secondary)::after,
    .footer-newsletter button::after { transition: none; }
    .button-secondary:hover::before,
    .lp-btn-outline:hover::before,
    .auth-button.secondary:hover::before,
    .player-single-btn:hover::before,
    .player-close-btn:hover::before { animation: none; }
}

/* Press page (owner, 2026-11-22): quotes and a list of reviews, articles and downloads. */
#press-subtitle {
    margin-bottom: 0.5em;
}
#press-intro,
#press-content {
    padding: 0.6em 1em;
    margin-bottom: 0.5em;
}
.press-section {
    margin-top: 1em;
    /* A border around each section (owner, 2026-11-23). */
    padding: 1em;
    border: 1px solid var(--border);
    border-radius: 8px;
}
.press-quote {
    margin: 0 0 0.5em;
}
/* A line between items, none after the last one. */
.press-quote:not(:last-child) {
    padding-bottom: 0.5em;
    border-bottom: 1px solid var(--border);
}
.press-quote blockquote {
    margin: 0;
    padding-left: 1em;
    border-left: 2px solid var(--accent);
}
.press-quote blockquote p {
    margin: 0;
}
.press-quote figcaption {
    margin-top: 0.5em;
    padding-left: 1em;
    font-size: 0.85em;
    color: var(--subheading);
}
.press-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.press-list li {
    margin-bottom: 0.5em;
}
#press-articles .press-list li:not(:last-child) {
    padding-bottom: 0.5em;
    border-bottom: 1px solid var(--border);
}
.press-meta {
    font-size: 0.85em;
    color: var(--subheading);
}

/* No gap under the last thing in the content panel (owner, 2026-11-23): the last shown block and
   the last content row lose their bottom margin, so the room below is the panel's own padding. */
.page-content > :not([style*="none"]):not(:has(~ :not([style*="none"]):not(script))),
.content-rows > :last-child {
    margin-bottom: 0;
}
