/* Site layout contract: mobile <768, tablet >=768, desktop >=1280,
   wide >=1600. Component internals may respond to their own available space. */
:root{--site-max-width:1280px;--site-gutter:8px;--site-gap:16px;--site-header-height:68px}
/* Short pages still fill the viewport; long pages keep the footer in flow. */
body:has(>.site-footer){display:flex;flex-direction:column;min-height:100vh;min-height:100dvh}
body:has(>.site-footer)>:is(main,.site-article-layout){flex:1 0 auto}
body:has(>.site-footer)>:is(.site-header,.site-footer){flex-shrink:0}
@media(min-width:768px){:root{--site-gutter:24px;--site-gap:24px}}
@media(min-width:1280px){:root{--site-gutter:32px}}
@media(min-width:1600px){:root{--site-max-width:1440px;--site-gutter:40px;--site-gap:32px}}
.site-shell{box-sizing:border-box;width:100%;max-width:var(--site-max-width);min-width:0;margin-inline:auto;padding-inline:var(--site-gutter)}
main.site-shell{padding-block:32px}
.site-shell>*{min-width:0}
.site-shell :is(h1,h2,h3){overflow-wrap:anywhere}
.site-breadcrumbs,.site-footer-inner{box-sizing:border-box;width:100%;max-width:var(--site-max-width);margin-inline:auto;padding-inline:var(--site-gutter)}
.site-breadcrumbs{padding-top:16px}
.site-footer-inner{gap:var(--site-gap)}
.music-player{padding-inline:0}
.music-player-row{box-sizing:border-box;width:100%;max-width:var(--site-max-width);padding-inline:var(--site-gutter)}
.site-grid,.site-pair-grid,.site-split-grid,.site-album-grid,.site-hero-grid,.site-release-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--site-gap);min-width:0}
:is(.site-grid,.site-pair-grid,.site-split-grid,.site-album-grid,.site-hero-grid,.site-release-grid)>*{min-width:0;grid-column:auto}
.site-article-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--site-gap);margin-block:24px}
.site-article-layout>main{min-width:0;padding:0;grid-column:auto}
.site-article-layout>.article-sidebar{display:none}
.site-shell .video-list-grid,.site-shell .video-category-grid,.site-shell .video-feature-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--site-gap)}
.site-shell .video-shorts-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--site-gap)}
.site-shell .video-shorts-grid>.video-record{width:100%;min-width:0;max-width:100%}
.site-shell .video-watch-player{width:100%;max-width:1100px;justify-self:center}
.site-shell .video-watch-player.is-short{width:min(100%,360px)}
.site-reading p{max-width:85ch}
.article-body-copy>:is(p,ul,ol,blockquote){max-width:85ch}
@media(min-width:768px){
 .site-article-layout:not(.site-article-layout-single){grid-template-columns:240px minmax(0,1fr)}
 .site-article-layout>.article-sidebar{display:block}
 .site-pair-grid,.site-release-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .site-shell .video-list-grid,.site-shell .video-category-grid,.site-shell .video-feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .site-shell .video-shorts-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(min-width:1280px){
 .site-shell .video-category-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 .site-split-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .site-album-grid,.site-hero-grid{grid-template-columns:minmax(0,2fr) minmax(0,1fr)}
 .site-release-grid,.site-shell .video-list-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 .site-shell .video-shorts-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
 .site-article-layout:not(.site-article-layout-single){grid-template-columns:280px minmax(0,1fr)}
 .site-article-layout-single>main{width:100%;max-width:1000px;justify-self:center}
}
@media(min-width:1600px){
 .site-release-grid,.site-shell .video-list-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
 .site-shell .video-shorts-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
 .site-article-layout:not(.site-article-layout-single){grid-template-columns:300px minmax(0,1fr)}
}

/* Two video/category cards fill the row instead of leaving an empty column. */
@media(min-width:1280px){
 .site-shell :is(.video-category-grid,.video-list-grid):has(>article:nth-child(2):last-child){grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* About panels and their text share one centered reading width. */
.site-shell.about-page{max-width:960px}
.about-page p a{text-decoration-line:underline;text-underline-offset:3px}
