/* Site-wide preview of the Power Hour redesign (PM project 3, CP2, Rick approved 2026-10-27).
 * EVERY rule is scoped to html.ph-next, which js/ph-site.js sets only when preview is on,
 * so visitors see the pages exactly as before. Colors follow style.css variables, so dark mode follows. */

/* Room for the tab bar */
html.ph-next body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }

/* Cleaner header: flat cream bar, thin rule, no heavy shadow */
html.ph-next .site-header { background: var(--cream, #faf5f0); box-shadow: none; border-bottom: 1px solid var(--tan, #e6d5c3); }
html.ph-next .site-header .tagline { display: none; }

/* Content as soft cards (topic pages + lesson pages) */
html.ph-next .container > section, html.ph-next .panel, html.ph-next header.doc {
    background: var(--white, #fff); border: 1px solid var(--tan, #e6d5c3); border-radius: 14px;
    box-shadow: 0 2px 10px rgba(60, 40, 20, .08); }
html.ph-next .panel, html.ph-next header.doc { padding: 18px 18px; }
html.ph-next h1, html.ph-next h2 { color: var(--brown-dark, #4a3828); }
html.ph-next a { text-decoration-color: rgba(90, 122, 74, .5); }

/* Lesson handouts have no dark mode of their own (no style.css), so the preview leaves them light. */

/* Bottom tab bar, same look as the home preview (css/ph-next.css .ph-tabs) */
html.ph-next .ph-stabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 8600; display: flex; justify-content: space-around;
    padding: 6px 0 calc(6px + env(safe-area-inset-bottom)); background: var(--cream, #faf5f0); border-top: 1px solid var(--tan, #e6d5c3); }
html.ph-next .ph-stabs a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
    color: var(--brown-light, #8a7560); font-family: 'Inter', sans-serif; font-size: .68rem; text-decoration: none; padding: 2px 0; }
html.ph-next .ph-stabs .ph-tab-icon { font-size: 1.35rem; line-height: 1; }
html.ph-next .ph-stabs .ph-tab-on { color: #5a7a4a; font-weight: 600; }
.ph-stabs { display: none; }
html.ph-next .ph-stabs { display: flex; }
@media print { html.ph-next .ph-stabs { display: none !important; } html.ph-next body { padding-bottom: 0; } }

/* ===== Music page: Spotify-style dark list, ONLY in dark mode (Rick 2026-10-28: music must follow the light/dark switch like every page) ===== */
html.ph-next body.ph-music.dark-mode { --cream: #121212; --tan-light: #1e1e1e; --tan: #2a2a2a; --white: #181818;
    --brown-dark: #ffffff; --brown-text: #e0e0e0; --brown-light: #a7a7a7; --brown-accent: #5a9a4a;
    background: #121212; color: #e0e0e0; }
html.ph-next body.ph-music.dark-mode .site-header { background: #121212; border-bottom-color: #2a2a2a; }
html.ph-next body.ph-music.dark-mode .site-header * { color: #fff; }
html.ph-next body.ph-music.dark-mode .site-footer { background: #121212; color: #a7a7a7; border-top-color: #2a2a2a; }
html.ph-next body.ph-music.dark-mode .music-page h1 { color: #fff; font-family: 'Inter', sans-serif; font-weight: 700; font-size: 1.9rem; }
html.ph-next body.ph-music.dark-mode .np { background: linear-gradient(180deg, #2e4a28 0%, #181818 100%); border: 0; border-radius: 10px; }
html.ph-next body.ph-music.dark-mode .np-title { color: #fff; font-family: 'Inter', sans-serif; }
html.ph-next body.ph-music.dark-mode .np-btn, html.ph-next body.ph-music.dark-mode .kbtn, html.ph-next body.ph-music.dark-mode .sbtn,
html.ph-next body.ph-music.dark-mode .abtn { background: transparent; border-color: #535353; color: #fff; }
html.ph-next body.ph-music.dark-mode .np-btn:hover, html.ph-next body.ph-music.dark-mode .kbtn:hover, html.ph-next body.ph-music.dark-mode .sbtn:hover { background: #2a2a2a; }
html.ph-next body.ph-music.dark-mode .np-btn.primary, html.ph-next body.ph-music.dark-mode .np-btn.on { background: #5a9a4a; border-color: #5a9a4a; color: #fff; }
/* Album rows: art square + title, like a Spotify playlist row */
html.ph-next body.ph-music.dark-mode .album-head { color: #fff; font-family: 'Inter', sans-serif; font-weight: 700; border-top: 0;
    margin: 18px 0 4px; padding: 8px; border-radius: 8px; align-items: center; }
html.ph-next body.ph-music.dark-mode .album-head:hover { background: #1e1e1e; }
html.ph-next body.ph-music.dark-mode .album-head::before { content: ''; flex-shrink: 0; width: 52px; height: 52px; border-radius: 4px;
    background: url(../img/tiles/music.jpg) center / cover, #2e4a28; box-shadow: 0 4px 12px rgba(0,0,0,.5); transform: none !important; }
html.ph-next body.ph-music.dark-mode details[open] > .album-head { background: #1e1e1e; }
/* Compact track rows */
html.ph-next body.ph-music.dark-mode .track { padding: 8px 10px; border-bottom: 0; border-radius: 6px; gap: 10px; }
html.ph-next body.ph-music.dark-mode .track:hover { background: #2a2a2a; }
html.ph-next body.ph-music.dark-mode .track.playing { background: #2a2a2a; }
html.ph-next body.ph-music.dark-mode .track.playing .track-title, html.ph-next body.ph-music.dark-mode .track.playing .track-num { color: #6fbf5a; }
html.ph-next body.ph-music.dark-mode .track-title { color: #fff; font-family: 'Inter', sans-serif; font-weight: 500; font-size: .95rem; }
html.ph-next body.ph-music.dark-mode .track-style, html.ph-next body.ph-music.dark-mode .track-time, html.ph-next body.ph-music.dark-mode .track-num,
html.ph-next body.ph-music.dark-mode .album-count, html.ph-next body.ph-music.dark-mode .subtitle { color: #a7a7a7; }
html.ph-next body.ph-music.dark-mode .ph-stabs { background: #121212; border-top-color: #2a2a2a; }
html.ph-next body.ph-music.dark-mode .ph-stabs a { color: #a7a7a7; }
html.ph-next body.ph-music.dark-mode .ph-stabs .ph-tab-on { color: #fff; }
/* Archive nav strip + search (js/archive-nav.js) on the dark music page */
html.ph-next body.ph-music.dark-mode .archive-nav-bar, html.ph-next body.ph-music.dark-mode .archive-global-search-wrap,
html.ph-next body.ph-music.dark-mode .disclaimer-banner { background: #121212 !important; border-color: #2a2a2a !important; }
html.ph-next body.ph-music.dark-mode .archive-nav-tile { color: #e0e0e0 !important; }
html.ph-next body.ph-music.dark-mode .archive-nav-tile.active { background: #2a2a2a !important; }
html.ph-next body.ph-music.dark-mode .archive-global-search input { background: #2a2a2a !important; color: #fff !important; border-color: #3a3a3a !important; }
/* Pre-existing dark-mode bug on the topic pages (live today, found in CP2): series titles use --tan-light,
   which is near-black in dark mode, so they vanish. Fixed here in preview; carries over at the switch. */
html.ph-next body.dark-mode .series-name { color: var(--brown-dark); }
html.ph-next body.dark-mode .expand-all-btn { color: var(--brown-light); border-color: var(--brown-light); }
/* About sheet on the dark music page (its own light background is hard-coded in music.html) */
html.ph-next body.ph-music.dark-mode .about-sheet, html.ph-next body.ph-music.dark-mode .about-top { background: #181818 !important; color: #e0e0e0; border-color: #2a2a2a !important; }
html.ph-next body.ph-music.dark-mode .about-sheet * { border-color: #2a2a2a; }
html.ph-next body.ph-music.dark-mode .about-title { color: #fff; }
html.ph-next body.ph-music.dark-mode .about-lead, html.ph-next body.ph-music.dark-mode .about-sources { color: #a7a7a7; }
html.ph-next body.ph-music.dark-mode .about-close { background: transparent !important; color: #fff !important; border-color: #535353 !important; }
html.ph-next body.ph-music.dark-mode .about-sheet a { color: #6fbf5a; }

/* Album and collection covers on the music page (preview only, Rick 2026-10-28) */
html.ph-next body.ph-music summary.album-head { display: flex; align-items: center; gap: 12px; }
html.ph-next body.ph-music .ph-acover { width: 56px; height: 56px; object-fit: cover; border-radius: 4px; flex: 0 0 56px; box-shadow: 0 2px 6px rgba(0,0,0,.4); }
html.ph-next body.ph-music li.track { align-items: center; }
html.ph-next body.ph-music .track-main { display: flex; align-items: center; gap: 10px; }
html.ph-next body.ph-music .ph-sthumb { width: 40px; height: 40px; object-fit: cover; border-radius: 3px; flex: 0 0 40px; }
/* One cover per album row (Rick 2026-10-28): the guitar placeholder before the real cover is gone in both modes */
html.ph-next body.ph-music .album-head::before { content: none !important; display: none !important; }
html.ph-next body.ph-music .album-head { align-items: center; }
/* In-place radio bar on every page (Rick 2026-10-28): sits just above the tab bar */
html.ph-next .ph-radio { display: none; position: fixed; left: 8px; right: 8px; bottom: calc(64px + env(safe-area-inset-bottom)); z-index: 8501;
    align-items: center; gap: 6px; padding: 8px 10px; border-radius: 12px; background: #3b2f25; color: #faf5f0; box-shadow: 0 4px 16px rgba(0,0,0,.3); font-size: .9rem; }
html.ph-next .ph-radio.on { display: flex; }
html.ph-next .ph-radio .ph-radio-now { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.ph-next .ph-radio button { background: transparent; border: 1px solid rgba(250,245,240,.35); color: #faf5f0; border-radius: 8px; padding: 4px 8px; font-size: 1rem; line-height: 1; }
html.ph-next .ph-radio.resume { background: #5a7a4a; }
