/* Shared mobile baseline. Desktop styles remain in their original modules. */
.mobile-editor-tools,.mobile-editor-actions{display:contents}
.mobile-editor-tools-toggle{display:none}
@media(max-width:820px),(pointer:coarse) and (max-width:1100px){
 html .mobile-editor-tools{display:block;position:fixed;right:max(10px,env(safe-area-inset-right));bottom:calc(var(--keyboard-inset,0px) + max(10px,env(safe-area-inset-bottom)));z-index:90}
 html .mobile-editor-tools-toggle{display:block;min-width:68px;min-height:44px;padding:8px 12px;border:1px solid var(--paper,#ead09c);background:#193f42;color:var(--paper,#ead09c);font:700 13px/1.2 'DM Sans',sans-serif;cursor:pointer}
 html .mobile-editor-actions{display:none;position:absolute;right:0;bottom:calc(100% + 8px);width:max-content;max-width:calc(100vw - 24px);padding:8px;gap:8px;border:1px solid var(--line-strong,rgba(234,208,156,.45));background:#101313;box-shadow:0 6px 24px #0008}
 html .mobile-editor-tools.is-open .mobile-editor-actions{display:flex;flex-direction:column}
 html .mobile-editor-actions .page-editor-launch,html .mobile-editor-actions .visitor-preview-toggle{position:static;max-width:none;width:100%;min-height:44px;margin:0;padding:10px 14px;box-shadow:none;font-size:14px;white-space:normal}
 html body.page-editing .mobile-editor-tools,html body:has(dialog[open]) .mobile-editor-tools{display:none}
 html body.has-mobile-editor-tools::after{content:'';display:block;height:calc(64px + env(safe-area-inset-bottom))}
}
@media(max-width:820px),(pointer:coarse) and (max-width:1100px){
 html{--mobile-height:100dvh;--mobile-top:0px;--keyboard-inset:0px}
 html .masthead .nav-links{top:100%;max-height:calc(var(--mobile-height) - 80px);overflow-y:auto}
 html .masthead .nav-links a,html .menu-button{min-height:44px}
 html .wrap,html .hero-copy,html .section-head,html .album-dialog-copy{min-width:0;max-width:100%;overflow-wrap:anywhere}
 html .hero-actions{flex-wrap:wrap}
 html .sun-home-teaser{margin-inline:auto;text-align:left}
 html .news-dialog .news-post-nav .news-button,html .news-dialog .news-media-strip button,html .news-expand-copy,html .news-year,html .news-read{min-width:44px;min-height:44px}
 html .news-dialog .news-dialog-bar{flex-wrap:wrap;min-height:44px;padding-left:max(.35rem,env(safe-area-inset-left));padding-right:max(.35rem,env(safe-area-inset-right))}
 html .news-dialog .news-read-post{white-space:normal}
 html .news-dialog[data-view="video"]{width:100%;max-width:100%;max-height:var(--mobile-height);border:0}
 html .news-dialog .news-media-strip{overscroll-behavior-x:contain}
 html #video-dialog{max-height:var(--mobile-height);width:100%;max-width:none;border:0}
 html #album-dialog{max-height:calc(var(--mobile-height) - 16px);overflow:auto}
 html .album-dialog-bar{position:sticky;top:0;z-index:2;background:#111113;padding:.5rem .75rem}
 html .album-dialog-close,html .dialog-close,html .page-editor-dialog-close{width:44px;height:44px;flex-shrink:0}
 html #lyrics .lyrics-stream-button{width:44px;height:44px}
 html .album-stream-icons{gap:.6rem}
 html .album-stream-icons a{min-width:44px;min-height:44px}
 html #lyrics .lyrics-album-art{gap:.75rem}
 html .news-editor,html .page-editor-dialog{position:fixed;top:calc(var(--mobile-top) + 8px);bottom:auto;left:0;right:0;margin:0 auto;width:calc(100% - 16px);max-height:calc(var(--mobile-height) - 16px);overflow:auto;overscroll-behavior:contain;scroll-padding-block:4rem}
 html .page-editor-dialog-head{position:sticky;top:0;z-index:2;background:#101313}
 html .page-editor-dialog-actions{flex-wrap:wrap}
 html .page-editor-dialog input,html .page-editor-dialog textarea,html .page-editor-dialog select,html .news-editor input,html .news-editor textarea,html .news-editor select,html .news-rich,html body.page-editing [contenteditable="true"]{font-size:16px}
 html .page-editor-dialog button,html .page-editor-bar button,html .page-editor-bar select{min-height:44px}
 html .page-editor-bar{bottom:calc(var(--keyboard-inset) + max(4px,env(safe-area-inset-bottom)));max-height:35dvh;overflow:auto}
 html .page-editor-launch,html .visitor-preview-toggle{bottom:calc(var(--keyboard-inset) + max(10px,env(safe-area-inset-bottom)));min-height:44px;font-size:13px;padding:.65rem .55rem;max-width:46vw}
 html .news-link-row{grid-template-columns:minmax(0,1fr);gap:.5rem}
 html .news-field,html .page-editor-dialog label{min-width:0}
 html .news-editor-images{grid-template-columns:repeat(2,minmax(0,1fr))}
 html .page-editor-revisions{max-height:45dvh}
 html .page-editor-revision{flex-wrap:wrap;overflow-wrap:anywhere}
 html .sun-story-page .lightbox{height:var(--mobile-height);max-height:var(--mobile-height)}
}
@media(max-width:600px){
 html #lyrics .lyrics-cover-item{padding-bottom:3rem}
 html #album-dialog .album-dialog-body{padding:.85rem;gap:1rem}
 html #album-dialog .album-dialog-cover{max-width:min(100%,260px)}
 html .news-form{padding:.85rem}
}
/* v116: phone layout and touch refinements, isolated from desktop. */
@media(max-width:820px){
 html .masthead .nav-links .social-link{width:44px;height:44px;flex:0 0 44px}
 html .masthead .header-socials{gap:.65rem}
 html .lyric-video-trigger{min-width:44px;min-height:44px;flex-shrink:0}
 html .small-button,html .hero-discover,html .back-link{min-height:44px;display:inline-flex;align-items:center;justify-content:center}
 html .news-dialog .news-close{min-width:44px;min-height:44px}
 html .news-year-scroller>.news-button{min-height:44px}
}
@media(max-width:600px){
 html .hero .cover{width:min(calc(100% - 20px),440px);box-shadow:7px 7px 0 var(--red,#b54630),14px 14px 0 rgba(25,63,66,.7)}
 html .hero-grid{gap:1.5rem}
 html .hero{padding-bottom:2.5rem}
 html .hero-actions{gap:.65rem;margin-top:1.25rem}
 html .hero-actions .button{flex:1 1 110px;max-width:240px}
 html .hero-discover{margin-top:1rem}
 html .sun-home-teaser{margin-top:1rem;gap:.75rem}
 html main>section.content:not(#news){padding-bottom:2.5rem}
 html .section-head{gap:.85rem;margin-bottom:1.5rem}
 html .booking-item{grid-template-columns:minmax(0,1fr);grid-template-areas:"title" "copy" "actions";gap:.65rem;padding:1.25rem 0}
 html .booking-actions{display:flex;flex-direction:row;flex-wrap:wrap;gap:.6rem}
 html .booking-actions .small-button{flex:1 1 140px;white-space:normal;text-align:center}
 html .coaching-copy{padding:1.25rem}
 html .support{padding-block:2.5rem}
 html .support-inner{padding:1.25rem;gap:1.25rem;min-width:0}
 html .support h2{font-size:clamp(2rem,9vw,3.4rem);overflow-wrap:anywhere}
 html .paypal-button{gap:.6rem;padding:.8rem;min-width:0}
 html .paypal-button>span{min-width:0;overflow-wrap:anywhere}
 html .contact{padding-block:3rem}
 html .contact h2{font-size:clamp(2.5rem,11vw,4rem)}
 html .archive-heading{min-width:0}
 html .archive-heading>div,html .archive-link-label{min-width:0}
 html .archive-heading h1,html .archive-feature h3{overflow-wrap:anywhere}
 html .archive-heading>.archive-logo{flex-shrink:0}
 html .story-drawer>summary::after{flex-shrink:0}
 html .news-history-row{flex-wrap:wrap;gap:.6rem}
 html .news-history-row>*{min-width:0;overflow-wrap:anywhere}
}
@media(max-width:420px){
 html .archive-heading{flex-direction:column;align-items:flex-start;gap:.75rem}
 html .archive-feature{grid-template-columns:1fr;gap:.5rem}
 html .archive-feature-icon{justify-items:start;min-height:0}
 html .archive-feature-copy{min-width:0}
 html .sun-story-title{align-items:flex-start;gap:.75rem}
 html .sun-story-title::before{width:52px;height:52px}
 html .sun-story-title>div{min-width:0}
 html .sun-story-title h1{font-size:2rem;overflow-wrap:anywhere}
}
/* v117: refinements from the owner's iPhone screenshots. */
@media(max-width:600px){
 html .hero-copy h1{font-size:clamp(2.7rem,13vw,3.9rem);margin-bottom:1rem}
 html .masthead .nav-links.open{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.4rem .75rem;padding:.65rem 1rem 1rem}
 html .masthead .nav-links>a{display:flex;align-items:center;min-height:44px;padding:.65rem .55rem}
 html .masthead .nav-links>.header-socials{grid-column:1/-1;margin-top:.35rem;padding-top:.65rem}
 html .news-dialog .news-dialog-bar .news-close{width:44px;height:44px;min-width:44px;flex:0 0 44px;padding:0;border:0;font-size:0;line-height:1}
 html .news-dialog .news-close::before{content:"×";font:400 30px/1 Arial,sans-serif}
 html .news-dialog:not([data-view="video"]) .news-detail>h2{padding-right:3.25rem;min-height:44px;display:flex;align-items:center}
}
/* Landscape: reserve compact controls, preserve 16:9, no cropping. */
@media(orientation:landscape) and (max-height:600px) and (max-width:820px),
       (orientation:landscape) and (max-height:600px) and (pointer:coarse){
 html .news-dialog[data-view="video"]{width:min(100%,calc((var(--mobile-height) - 108px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) * 16 / 9));max-height:var(--mobile-height)}
 html #video-dialog{width:min(100%,calc((var(--mobile-height) - env(safe-area-inset-top) - env(safe-area-inset-bottom)) * 16 / 9))}
 html #video-dialog .dialog-video{max-height:none}
 html .news-dialog[data-view="video"] .news-media-strip{padding-block:.2rem}
 html .news-fit-stage>.news-main-photo{max-height:calc(var(--mobile-height) - 108px)}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}html .playlist-item,html .album-stream-icons a{transition:none}}

/* v129: reserve site controls above the player, outside YouTube controls. */
@media(max-width:820px),(pointer:coarse) and (max-width:1100px){
 html #video-dialog{position:fixed;box-sizing:border-box;padding:0;width:min(100%,calc((var(--mobile-height) - 44px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) * 16 / 9));max-height:calc(var(--mobile-height) - env(safe-area-inset-top) - env(safe-area-inset-bottom));overflow:hidden}
 html #video-dialog .dialog-bar{position:static;box-sizing:border-box;height:44px;min-height:44px;padding:0;justify-content:flex-end;background:#101313;border:0}
 html #video-dialog .dialog-close{display:grid;place-items:center;box-sizing:border-box;width:44px;height:44px;padding:0;margin:0;line-height:1;background:#101313}
 html #video-dialog .dialog-video{position:static;aspect-ratio:16/9;max-height:none}
 html #video-dialog .dialog-video>.playback-action{position:absolute;top:0;left:8px;bottom:auto;transform:none;box-sizing:border-box;margin:0;height:44px;min-height:44px;max-width:calc(100% - 60px);padding:4px 8px;border:0;background:#101313;font-size:14px;line-height:1.2}
}

/* v123: video layout fixes from iPhone screenshots. */
@media(max-width:600px){
 html #videos .video-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.4rem}
 html #videos .video-tab{min-width:0;min-height:44px;padding:.6rem .25rem;font-size:clamp(14px,4vw,17px);letter-spacing:.02em}
 html #videos .playlist-drawer summary{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.25rem .65rem;padding:.65rem 1rem;min-height:52px}
 html #videos .playlist-drawer summary>span:first-child{min-width:0;line-height:1.3}
 html #videos .playlist-drawer summary::after{grid-column:2;grid-row:1;margin:0;flex-shrink:0}
 html #videos .playlist-strip{grid-auto-flow:row;grid-auto-columns:auto;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem;padding:.75rem;overflow:visible}
 html #videos .playlist-item{display:block;min-width:0;width:100%}
 html #videos .playlist-thumb{width:100%;height:auto;aspect-ratio:16/9}
 html #videos .playlist-item-copy{min-height:0;padding:.55rem;gap:.4rem}
 html #videos .playlist-title{font-size:.85rem;line-height:1.35}
 html .news-dialog .news-close .news-close-label{display:none}
 html .news-dialog .news-dialog-bar .news-close{display:grid;place-items:center;overflow:hidden;white-space:nowrap;box-sizing:border-box}
 html .news-dialog[data-view="video"] .news-dialog-bar{flex-wrap:nowrap;padding:0 .35rem;gap:.5rem;min-height:44px}
 html .news-dialog[data-view="video"] .news-dialog-bar .news-read-post{flex:1 1 auto;min-width:0;text-align:left;padding:.4rem .5rem;font-size:14px}
 html .news-dialog[data-view="video"] .news-dialog-bar .news-close{flex:0 0 44px;width:44px;height:44px;padding:0;border:0;font-size:0;line-height:1}
}

/* Short touch screens: leave room for the music, including in landscape. */
@media (pointer:coarse) and (orientation:landscape) and (max-height:500px) and (max-width:1100px){
 html .masthead .nav{min-height:52px;gap:12px;padding-block:4px}
 html .masthead .wordmark{font-size:1.1rem}
 html .masthead .menu-button{min-height:44px;padding:6px 12px;font-size:14px}
 html .masthead .nav-links{max-height:calc(var(--mobile-height) - 56px)}
 html #lyrics.lyrics-tabbed .lyrics-album-art{display:grid;grid-template-columns:56px minmax(0,1fr) auto;grid-template-areas:"cover meta streams";gap:12px;padding:12px;align-items:center}
 html body #lyrics.lyrics-tabbed .lyrics-album-art>.album-cover-button{grid-area:cover;width:56px;margin:0}
 html #lyrics.lyrics-tabbed .lyrics-album-meta{grid-area:meta}
 html #lyrics.lyrics-tabbed .lyrics-album-meta h3{font-size:1.25rem;line-height:1.15;margin:4px 0;overflow-wrap:anywhere}
 html #lyrics.lyrics-tabbed .lyrics-album-label{font-size:.65rem;letter-spacing:.06em}
 html #lyrics.lyrics-tabbed .album-stream-icons{grid-area:streams;width:auto;gap:6px;max-width:228px;flex-wrap:wrap;margin:0}
 html #lyrics.lyrics-tabbed .album-stream-icons a{width:44px;height:44px;padding:5px}
 html #lyrics.lyrics-tabbed .album-stream-icons a[data-service="amazon"]{width:78px}
}

/* Tap-opened video: no reserved toolbar, only a compact close overlay. */
@media(max-width:820px),(pointer:coarse) and (max-width:1100px){
 html #video-dialog{width:min(100%,calc((var(--mobile-height) - env(safe-area-inset-top) - env(safe-area-inset-bottom)) * 16 / 9));border:0}
 html #video-dialog .dialog-bar{position:absolute;top:0;right:0;height:44px;min-height:0;width:44px;padding:0;background:transparent;z-index:3}
 html #video-dialog .dialog-close{background:rgba(16,19,19,.72);border:0}
 html #video-dialog .dialog-video{position:relative;aspect-ratio:16/9}
 html #video-dialog .dialog-video>.playback-action{top:4px;left:4px;height:36px;min-height:36px;max-width:calc(100% - 56px);padding:4px 8px;background:rgba(16,19,19,.82);font-size:13px}
}

