/* Library hero and shared offer integration. */
.library-hero{text-align:center;padding:72px 24px 55px;max-width:1160px}
.library-hero h1{font-size:clamp(48px,6vw,80px);font-weight:600;letter-spacing:-.045em;line-height:1.06;color:#fff;margin:24px 0 0;text-wrap:balance}
.library-hero>p{font-size:20px;margin:22px 0 0;color:#989eaa}
.library-title-tag{display:inline-flex;max-width:100%;border-radius:100px;background:#168bf821;overflow:hidden}
.library-announcement{padding:7px 18px;font-size:14px;font-weight:500;line-height:1.5;background:linear-gradient(120deg,#df0c97 0%,#a0d1ff 40%,#fff 50%,#a0d1ff 60%,#df0c97 100%);background-size:400% auto;background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;animation:library-shimmer 10s linear infinite;text-wrap:balance}
@keyframes library-shimmer{from{background-position:200% 0}to{background-position:-200% 0}}
/* Library form-dialog defaults must not alter the shared offer dialog. */
dialog.ha-offer-dialog{padding:0;max-width:560px;width:calc(100% - 32px);background:#07101d;max-height:calc(100dvh - 32px)}
.ha-offer-dialog h2{padding-right:0}.ha-offer-dialog p{margin:0}.ha-offer-dialog .ha-checkout-note{margin-top:12px}.ha-offer-dialog .ha-copy-status{margin-top:6px}
@media(max-width:991px){.library-hero{padding-top:54px;padding-bottom:40px}}
@media(max-width:600px){.library-hero{padding:42px 20px 34px}.library-hero h1{font-size:clamp(40px,9vw,54px);margin-top:20px}.library-hero>p{font-size:17px;margin-top:16px}.library-announcement{font-size:12px;padding:7px 14px}dialog.ha-offer-dialog{width:calc(100% - 24px)}}
@media(prefers-reduced-motion:reduce){.library-announcement{animation:none}}
/* Reserve the sticky offer's geometry before its deferred controller initializes. */
body.library-page:not(.library-shell-ready) #ha-campaign-bar[hidden]{display:block!important;visibility:hidden}
body.library-page:not(.library-shell-ready){--ha-campaign-offset:80px}
body.library-page:not(.library-shell-ready) .nav_wrapper{top:calc(var(--ha-campaign-offset) + var(--home-rem) * 1.125)}
@media(max-width:991px){body.library-page:not(.library-shell-ready){--ha-campaign-offset:64px}body.library-page:not(.library-shell-ready) .nav_wrapper{top:var(--ha-campaign-offset)}}
html:has(body.library-page){scrollbar-gutter:stable}
