/* ============================================================
   JERSEY BOYS DASHBOARD — STYLESHEET
   Theatrical dark theme · mobile-first
   ============================================================ */

/* ── Tokens ─────────────────────────────────────────────── */
:root {
    --gold: #c9a84c;
    --gold-light: #e8c96b;
    --gold-dim: #7a6230;
    --gold-faint: rgba(201, 168, 76, 0.1);

    --bg: #0e0d0b;
    --bg-2: #181612;
    --bg-3: #211f1a;
    --surface: #1c1a15;
    --surface-2: #252118;
    --border: rgba(201, 168, 76, 0.16);
    --border-hover: rgba(201, 168, 76, 0.5);
    --text-hi: #f0e8d5;
    --text-mid: #b5a98a;
    --text-lo: #5c5446;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.55);
    --shadow-card: 0 2px 16px rgba(0, 0, 0, 0.45);

    --radius: 10px;
    --gap: 1rem;
}

.theme-light {
    --bg: #f5f0e8;
    --bg-2: #ede7d9;
    --bg-3: #e3dccf;
    --surface: #faf7f1;
    --surface-2: #f0ead9;
    --border: rgba(120, 90, 30, 0.18);
    --border-hover: rgba(120, 90, 30, 0.55);
    --text-hi: #1a1712;
    --text-mid: #5a4e35;
    --text-lo: #b8a98a;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.1);
    --gold-faint: rgba(120, 90, 30, 0.08);
}

/* ── Reset ──────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: "DM Sans", system-ui, sans-serif;
    background: var(--bg);
    color: var(--text-hi);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

.hidden {
    display: none !important;
}

/* ── Header ─────────────────────────────────────────────── */
.site-header {
    position: relative;
    overflow: hidden;
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 1.25rem 1.25rem;
}

@media (min-width: 640px) {
    .site-header {
        padding: 2.5rem 2rem 2rem;
    }
}

.header-inner {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: flex-end;
    gap: 1rem 1.5rem;
    flex-wrap: wrap;
}

.site-logo {
    height: 52px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

@media (min-width: 640px) {
    .site-logo {
        height: 72px;
    }
}

.text-logo-main {
    font-family: "Playfair Display", serif;
    font-weight: 900;
    font-size: 2rem;
    color: var(--gold-light);
    letter-spacing: -0.02em;
    line-height: 1;
    text-shadow: 0 2px 16px rgba(201, 168, 76, 0.35);
}

@media (min-width: 640px) {
    .text-logo-main {
        font-size: 2.6rem;
    }
}

.header-meta {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding-bottom: 0.15rem;
}

.header-subtitle {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-mid);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.header-tagline {
    font-family: "Playfair Display", serif;
    font-size: 1rem;
    color: var(--gold);
    font-style: italic;
}

/* Stage lights */
.stage-lights {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.light {
    position: absolute;
    top: -30px;
    width: 180px;
    height: 300px;
    border-radius: 0 0 100% 100%;
    opacity: 0.06;
    transform-origin: top center;
}

.theme-light .light {
    opacity: 0.03;
}

.l1 {
    left: 5%;
    background: radial-gradient(ellipse, #fff8e0 0%, transparent 70%);
    transform: rotate(-15deg);
}
.l2 {
    left: 25%;
    background: radial-gradient(ellipse, #ffe8a0 0%, transparent 70%);
    transform: rotate(-5deg);
    opacity: 0.08;
}
.l3 {
    left: 60%;
    background: radial-gradient(ellipse, #ffe8a0 0%, transparent 70%);
    transform: rotate(5deg);
    opacity: 0.08;
}
.l4 {
    right: 5%;
    background: radial-gradient(ellipse, #fff8e0 0%, transparent 70%);
    transform: rotate(15deg);
}

/* ── Venue Banner ───────────────────────────────────────── */
.venue-banner {
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
}

.venue-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.25rem;
}

@media (min-width: 640px) {
    .venue-inner {
        padding: 1.25rem 2rem;
    }
}

/* Loading */
.venue-loading {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.8rem;
    color: var(--text-lo);
    padding: 0.25rem 0;
}

.venue-spinner {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid var(--border);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    flex-shrink: 0;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Banner grid — side-by-side on wide, stacked on mobile */
.banner-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 780px) {
    .banner-grid {
        flex-direction: row;
        align-items: flex-start;
        gap: 0;
    }
}

/* ── Week Venue Card ─────────────────────────────────────── */
.week-venue-block {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    flex-shrink: 0;
}

@media (min-width: 780px) {
    .week-venue-block {
        width: 220px;
        min-width: 200px;
        margin-right: 1.5rem;
        border-radius: var(--radius);
    }
}

.week-venue-header {
    padding: 0.55rem 0.9rem 0.4rem;
    border-bottom: 1px solid var(--border);
    background: var(--gold-faint);
}

.week-venue-eyebrow {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
}

.week-venue-address-link {
    display: block;
    padding: 0.75rem 0.9rem 0.8rem;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
    /* Generous touch target */
    min-height: 56px;
}

.week-venue-address-link:hover,
.week-venue-address-link:focus-visible {
    background: var(--surface-2);
    outline: none;
}

.week-venue-name {
    font-family: "Playfair Display", serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-hi);
    line-height: 1.25;
    margin-bottom: 0.2rem;
}

.week-venue-addr {
    font-size: 0.72rem;
    color: var(--text-mid);
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.week-venue-maps-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--gold);
    border: 1px solid rgba(201, 168, 76, 0.3);
    padding: 0.2em 0.55em;
    border-radius: 20px;
    background: var(--gold-faint);
}

/* ── Banner Right (today + upcoming) ────────────────────── */
.banner-right {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

/* ── Today Block ─────────────────────────────────────────── */
.venue-today {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.today-top {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.venue-day-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    background: var(--gold-faint);
    border: 1px solid rgba(201, 168, 76, 0.25);
    padding: 0.15em 0.55em;
    border-radius: 3px;
    flex-shrink: 0;
}

.today-date {
    font-size: 0.82rem;
    color: var(--text-mid);
    font-weight: 400;
}

.today-venue-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
    font-size: 0.75rem;
    color: var(--text-mid);
    text-decoration: none;
    padding: 0.25em 0;
    border-bottom: 1px dashed rgba(201, 168, 76, 0.25);
    width: fit-content;
    transition:
        color 0.15s,
        border-color 0.15s;
}

.today-venue-link:hover {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

.today-venue-link svg {
    flex-shrink: 0;
    opacity: 0.7;
}

/* Show pills */
.venue-shows {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.show-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    font-size: 0.78rem;
    font-weight: 500;
    color: #0e0d0b;
    background: var(--pill-color, var(--gold));
    padding: 0.35em 0.8em;
    border-radius: 20px;
    white-space: nowrap;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
    /* Comfortable touch target */
    min-height: 32px;
}

.show-time {
    font-size: 0.7em;
    opacity: 0.8;
    background: rgba(0, 0, 0, 0.18);
    padding: 0.1em 0.4em;
    border-radius: 10px;
}

.venue-no-events {
    font-size: 0.8rem;
    color: var(--text-lo);
    font-style: italic;
}

/* ── Upcoming strip ──────────────────────────────────────── */
.venue-upcoming-wrap {
    border-top: 1px solid var(--border);
    padding-top: 0.8rem;
}

.upcoming-eyebrow {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-lo);
    margin-bottom: 0.6rem;
}

.venue-upcoming {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    /* Bleed to edge on mobile for scroll affordance */
    margin: 0 -1.25rem;
    padding: 0 1.25rem;
    padding-bottom: 0.25rem;
}

@media (min-width: 640px) {
    .venue-upcoming {
        margin: 0;
        padding: 0;
    }
}

.venue-upcoming::-webkit-scrollbar {
    display: none;
}

.upcoming-day {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding-right: 1.1rem;
    margin-right: 1.1rem;
    min-width: 110px;
    border-right: 1px solid var(--border);
    flex-shrink: 0;
}

.upcoming-day:last-child {
    border-right: none;
    margin-right: 0;
    padding-right: 1.25rem;
}

.upcoming-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-mid);
    white-space: nowrap;
}

.upcoming-venue-link {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-hi);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
    border-bottom: 1px dashed rgba(201, 168, 76, 0.2);
    padding-bottom: 0.1em;
    transition: color 0.15s;
    max-width: 130px;
}

.upcoming-venue-link:hover {
    color: var(--gold);
}

.upcoming-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: 0.1rem;
}

.upcoming-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
    font-size: 0.65rem;
    font-weight: 500;
    color: #0e0d0b;
    background: var(--pill-color, var(--gold));
    padding: 0.25em 0.55em;
    border-radius: 12px;
    white-space: nowrap;
    opacity: 0.85;
}

.upcoming-time {
    font-size: 0.65em;
    opacity: 0.75;
    background: rgba(0, 0, 0, 0.18);
    padding: 0.05em 0.35em;
    border-radius: 8px;
}

/* States */
.venue-error {
    font-size: 0.8rem;
    color: #c97a7a;
    padding: 0.5rem 0;
}

.venue-empty {
    font-size: 0.8rem;
    color: var(--text-lo);
    font-style: italic;
    padding: 0.5rem 0;
}

/* ── Main ───────────────────────────────────────────────── */
.main {
    flex: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 1.5rem 1.25rem 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (min-width: 640px) {
    .main {
        padding: 2.5rem 2rem 3rem;
        gap: 3rem;
    }
}

/* ── Section ────────────────────────────────────────────── */
.section {
    animation: fadeUp 0.45s ease both;
}

.section-heading {
    font-family: "Playfair Display", serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid var(--border);
    position: relative;
}

@media (min-width: 640px) {
    .section-heading {
        font-size: 1.1rem;
    }
}

.section-heading::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 2.5rem;
    height: 2px;
    background: var(--gold);
}

/* ── Card Grid ──────────────────────────────────────────── */
.card-grid {
    display: grid;
    /* 2 columns on small mobile, grows from there */
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

@media (min-width: 480px) {
    .card-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media (min-width: 640px) {
    .card-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 1rem;
    }
}

/* ── Card ───────────────────────────────────────────────── */
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    color: var(--text-hi);
    box-shadow: var(--shadow-card);
    /* iOS tap highlight */
    -webkit-tap-highlight-color: transparent;
    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease;
    animation: fadeUp 0.45s ease both;
}

/* Active state for touch */
.card:active {
    transform: scale(0.97);
    opacity: 0.9;
}

@media (hover: hover) {
    .card:hover {
        transform: translateY(-3px);
        border-color: var(--border-hover);
        box-shadow:
            0 8px 32px rgba(0, 0, 0, 0.45),
            0 0 0 1px var(--gold-dim);
    }
    .card:hover .card-arrow {
        transform: translateX(4px);
        color: var(--gold-light);
    }
}

/* Card media */
.card-media {
    width: 100%;
    height: 90px;
    background: var(--bg-3);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

@media (min-width: 640px) {
    .card-media {
        height: 120px;
    }
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-icon {
    font-size: 2.2rem;
    line-height: 1;
    opacity: 0.85;
    user-select: none;
}

@media (min-width: 640px) {
    .card-icon {
        font-size: 2.8rem;
    }
}

/* Card content */
.card-content {
    padding: 0.75rem 0.9rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex: 1;
}

@media (min-width: 640px) {
    .card-content {
        padding: 1rem 1.1rem;
    }
}

.card-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-hi);
    line-height: 1.3;
}

@media (min-width: 640px) {
    .card-title {
        font-size: 0.95rem;
    }
}

.card-desc {
    font-size: 0.72rem;
    color: var(--text-mid);
    line-height: 1.4;
    flex: 1;
    /* Hide desc on very small screens to save space */
    display: none;
}

@media (min-width: 400px) {
    .card-desc {
        display: block;
    }
}

.card-arrow {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--gold-dim);
    margin-top: auto;
    transition:
        transform 0.18s ease,
        color 0.18s ease;
    align-self: flex-end;
}

/* Badge */
.card-badge {
    position: absolute;
    top: 0.45rem;
    right: 0.45rem;
    background: var(--gold);
    color: #0e0d0b;
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.2em 0.5em;
    border-radius: 3px;
    line-height: 1.6;
    z-index: 2;
}

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    padding: 1rem 1.25rem;
    text-align: center;
}

.footer-text {
    font-size: 0.72rem;
    color: var(--text-lo);
    letter-spacing: 0.05em;
}

/* ── Animations ─────────────────────────────────────────── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Focus styles (accessibility) ───────────────────────── */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
    border-radius: 3px;
}

/* ── Clock ──────────────────────────────────────────────── */
.header-clock {
    margin-left: auto;
    text-align: right;
    flex-shrink: 0;
}

.clock-time {
    font-family: "DM Sans", monospace;
    font-size: 1.6rem;
    font-weight: 300;
    color: var(--gold-light);
    letter-spacing: 0.04em;
    line-height: 1;
    text-shadow: 0 0 20px rgba(201, 168, 76, 0.3);
}

@media (min-width: 640px) {
    .clock-time {
        font-size: 2rem;
    }
}

.clock-date {
    font-size: 0.68rem;
    color: var(--text-mid);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 0.2rem;
    text-align: right;
}

/* ── Disabled card (no URL) ─────────────────────────────── */
.card--disabled {
    opacity: 0.45;
    cursor: default;
    pointer-events: none;
}

.card--disabled .card-media {
    filter: grayscale(0.4);
}

/* ── Countdown Bar ──────────────────────────────────────── */
.cd-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    margin-top: 1rem;
    transition:
        border-color 0.3s,
        background 0.3s;
}

.cd-bar--soon {
    border-color: rgba(201, 168, 76, 0.5);
    background: rgba(201, 168, 76, 0.06);
}

.cd-bar--live {
    border-color: rgba(126, 201, 122, 0.5);
    background: rgba(126, 201, 122, 0.06);
    animation: cd-pulse 2s ease-in-out infinite;
}

@keyframes cd-pulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(126, 201, 122, 0);
    }
    50% {
        box-shadow: 0 0 12px 2px rgba(126, 201, 122, 0.15);
    }
}

.cd-left {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 80px;
    flex-shrink: 0;
}

.cd-label {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
}

.cd-show-name {
    font-size: 0.72rem;
    color: var(--text-mid);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

.cd-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    gap: 0.1rem;
}

.cd-countdown {
    display: flex;
    align-items: center;
    gap: 0.1rem;
    font-family: "DM Sans", monospace;
    font-size: 1.6rem;
    font-weight: 300;
    color: var(--gold-light);
    letter-spacing: 0.05em;
    line-height: 1;
    text-shadow: 0 0 16px rgba(201, 168, 76, 0.25);
}

@media (min-width: 640px) {
    .cd-countdown {
        font-size: 2rem;
    }
}

.cd-bar--live .cd-countdown {
    color: #7ec97a;
    text-shadow: 0 0 16px rgba(126, 201, 122, 0.3);
}

.cd-seg {
    min-width: 2ch;
    text-align: center;
    display: inline-block;
}

.cd-colon {
    opacity: 0.5;
    animation: cd-blink 1s step-end infinite;
    font-size: 0.9em;
    line-height: 1;
    padding-bottom: 0.05em;
}

@keyframes cd-blink {
    0%,
    100% {
        opacity: 0.5;
    }
    50% {
        opacity: 0.15;
    }
}

.cd-until {
    font-size: 0.65rem;
    color: var(--text-lo);
    letter-spacing: 0.06em;
}

.cd-right {
    flex-shrink: 0;
}

.cd-toggles {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: flex-end;
}

.cd-toggle {
    font-family: "DM Sans", sans-serif;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-lo);
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 0.3em 0.7em;
    cursor: pointer;
    transition:
        color 0.15s,
        border-color 0.15s,
        background 0.15s;
    min-height: 28px;
    -webkit-tap-highlight-color: transparent;
}

.cd-toggle:hover,
.cd-toggle:focus-visible {
    color: var(--gold);
    border-color: rgba(201, 168, 76, 0.4);
    outline: none;
}

.cd-toggle.active {
    color: var(--bg);
    background: var(--gold);
    border-color: var(--gold);
}

.cd-toggle--time {
    color: var(--text-mid);
    border-style: dashed;
}

.cd-toggle--time.active {
    background: transparent;
    color: var(--gold);
    border-color: var(--gold);
    border-style: solid;
}

@media (max-width: 480px) {
    .cd-bar {
        padding: 0.65rem 0.85rem;
        gap: 0.65rem;
    }
    .cd-countdown {
        font-size: 1.35rem;
    }
    .cd-show-name {
        max-width: 100px;
    }
}

/* ── Install Banner ─────────────────────────────────────── */
.install-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    padding: 0.9rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.5);
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.34, 1.2, 0.64, 1);
    /* Safe area for iPhone home indicator */
    padding-bottom: calc(0.9rem + env(safe-area-inset-bottom));
}

.install-banner--visible {
    transform: translateY(0);
}

.install-icon img {
    width: 40px;
    height: 40px;
    border-radius: 9px;
    flex-shrink: 0;
}

.install-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.install-text strong {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-hi);
}

.install-text span {
    font-size: 0.72rem;
    color: var(--text-mid);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.install-share-icon {
    display: inline-block;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0 0.3em;
    font-size: 0.85em;
    vertical-align: middle;
}

.install-btn {
    font-family: "DM Sans", sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--bg);
    background: var(--gold);
    border: none;
    border-radius: 20px;
    padding: 0.45em 1.1em;
    cursor: pointer;
    flex-shrink: 0;
    min-height: 36px;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s;
}

.install-btn:hover {
    background: var(--gold-light);
}

.install-dismiss {
    background: transparent;
    border: none;
    color: var(--text-lo);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0.4em;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
    min-width: 32px;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition:
        color 0.15s,
        background 0.15s;
}

.install-dismiss:hover {
    color: var(--text-hi);
    background: var(--surface-2);
}

/* ── Internal Use Banner ────────────────────────────────── */
.internal-banner {
    background: repeating-linear-gradient(
        45deg,
        #1a1200,
        #1a1200 10px,
        #0e0d0b 10px,
        #0e0d0b 20px
    );
    border-bottom: 1px solid rgba(201, 168, 76, 0.3);
    padding: 0.35rem 1.25rem;
    text-align: center;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold-dim);
}

.theme-light .internal-banner {
    background: repeating-linear-gradient(
        45deg,
        #f5f0e0,
        #f5f0e0 10px,
        #ede7d0 10px,
        #ede7d0 20px
    );
    color: #7a6230;
}

/* ── Show Counter ───────────────────────────────────────── */
.show-counter {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    padding: 0.5rem 0.9rem 0.4rem;
    border-top: 1px solid var(--border);
}

.show-counter-label {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-lo);
}

.show-counter-num {
    font-family: "Playfair Display", serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold-light);
    line-height: 1;
}

.show-counter-total {
    font-size: 0.65rem;
    color: var(--text-lo);
    font-family: "DM Sans", sans-serif;
    font-weight: 400;
}

/* ── Next Venue Block ───────────────────────────────────── */
.next-venue-block {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.9rem;
    border-top: 1px solid var(--border);
    background: rgba(201, 168, 76, 0.04);
    flex-wrap: wrap;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.next-venue-block:hover {
    background: rgba(201, 168, 76, 0.09);
}

.next-venue-eyebrow {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-lo);
    flex-shrink: 0;
}

.next-venue-name {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-mid);
    flex: 1;
}

.next-venue-date {
    font-size: 0.65rem;
    color: var(--text-lo);
    flex-shrink: 0;
}

/* ── Weather Badge ──────────────────────────────────────── */
.wx-mount {
    margin-left: auto;
}

.wx-badge {
    font-size: 0.72rem;
    color: var(--text-mid);
    display: inline-flex;
    align-items: center;
    gap: 0.2em;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.15em 0.55em;
}

/* ── Collapsible sections ───────────────────────────────── */
.section-heading--collapsible {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.section-heading--collapsible:hover .section-chevron {
    color: var(--gold-light);
}

.section-chevron {
    font-size: 0.8rem;
    color: var(--gold-dim);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.section-heading--collapsible.is-collapsed .section-chevron {
    transform: rotate(-90deg);
}

.section-grid--collapsed {
    display: none;
}

/* ── Trello ─────────────────────────────────────────────── */
.trello-section {
    margin-bottom: 0;
}

.trello-loading {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.8rem;
    color: var(--text-lo);
    padding: 0.5rem 0;
}

.trello-lists {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.trello-list {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.trello-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0.9rem;
    border-bottom: 1px solid var(--border);
    background: var(--gold-faint);
}

.trello-list-name {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold);
}

.trello-list-count {
    font-size: 0.65rem;
    color: var(--text-lo);
    background: var(--surface-2);
    border-radius: 10px;
    padding: 0.1em 0.5em;
}

.trello-cards {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.trello-card {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.6rem 0.9rem;
    text-decoration: none;
    color: var(--text-hi);
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.trello-card:last-child {
    border-bottom: none;
}

.trello-card:hover {
    background: var(--surface-2);
}

.trello-card-name {
    font-size: 0.82rem;
    font-weight: 400;
    line-height: 1.35;
    color: var(--text-hi);
}

.trello-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem;
}

.trello-label {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #0e0d0b;
    padding: 0.15em 0.45em;
    border-radius: 3px;
    opacity: 0.9;
}

.trello-due {
    font-size: 0.65rem;
    color: var(--text-lo);
}

.trello-due--overdue {
    color: #c97a7a;
    font-weight: 600;
}

@media (max-width: 600px) {
    .trello-lists {
        grid-template-columns: 1fr;
    }
}

/* ── Upcoming day weather ───────────────────────────────── */
.wx-upcoming {
    font-size: 0.62rem;
    color: var(--text-lo);
    margin-top: 0.15rem;
    display: block;
}

/* ── Install footer link ────────────────────────────────── */
.install-footer-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    margin-top: 0.6rem;
    font-family: "DM Sans", sans-serif;
    font-size: 0.68rem;
    color: var(--text-lo);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.3em 0;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.15s;
    letter-spacing: 0.04em;
}

.install-footer-link:hover {
    color: var(--gold);
}

/* ── Install tooltip ────────────────────────────────────── */
.install-tooltip {
    position: fixed;
    z-index: 1000;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.1rem;
    max-width: 280px;
    width: calc(100vw - 2rem);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    animation: fadeUp 0.2s ease both;
}

.install-tooltip strong {
    display: block;
    font-size: 0.85rem;
    color: var(--text-hi);
    margin-bottom: 0.6rem;
}

.install-tooltip ol {
    padding-left: 1.2rem;
    margin-bottom: 0.8rem;
}

.install-tooltip li {
    font-size: 0.78rem;
    color: var(--text-mid);
    line-height: 1.5;
    margin-bottom: 0.25rem;
}

.install-tooltip-close {
    font-family: "DM Sans", sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--bg);
    background: var(--gold);
    border: none;
    border-radius: 20px;
    padding: 0.35em 1em;
    cursor: pointer;
    width: 100%;
}
