/* SH v37: first paint, across homepage, docs, download and dynamic account.
 * Remove ONLY the obsolete upper ribbon; never hide the nav containing links.
 */
html, body {margin-top:0!important;padding-top:0!important;}
header:has(nav[aria-label="Main"]) {margin-top:0!important;padding-top:0!important;}
header:has(nav[aria-label="Main"]) > [data-sh-v30-ribbon],
header:has(nav[aria-label="Main"]) > .sh30-hidden-ribbon,
header:has(nav[aria-label="Main"]) > div:first-child:not(:has(a,nav,button,form)) {
  display:none!important;visibility:hidden!important;
  height:0!important;min-height:0!important;max-height:0!important;
  padding:0!important;margin:0!important;border:0!important;
}
/* The backend still owns form, CSRF, validation and registration messages.
 * Only its line-breaking and illustrated background are affected. */
.yt-v11-desc:has(.sh37-desc-break) {
 max-width:36rem!important;width:min(100%,36rem);margin-inline:auto;
}
.sh37-brand-nowrap {white-space:nowrap;}
.yt-v11-backdrop[data-sh37-motion="1"] {pointer-events:none!important;}
.yt-v11-backdrop[data-sh37-motion="1"] > .moon,
.yt-v11-backdrop[data-sh37-motion="1"] > .far,
.yt-v11-backdrop[data-sh37-motion="1"] > .near,
.yt-v11-backdrop[data-sh37-motion="1"] > .fog {
  will-change:translate;
}
@media(max-width:480px) {
 .yt-v11-desc:has(.sh37-desc-break) {font-size:clamp(.85rem,3.5vw,1rem);}
}
@media(prefers-reduced-motion:reduce) {
 .yt-v11-backdrop[data-sh37-motion="1"] > * {will-change:auto!important;translate:0 0!important;}
}
