/* BedtimeSleepCalculator theme v18: Twilight. Midnight ink, moon gold, ember rose. Token override layer. */
:root{--fd:'Bricolage Grotesque','Plus Jakarta Sans',system-ui,sans-serif;--fb:'Plus Jakarta Sans',Inter,system-ui,sans-serif;--font-display:var(--fd);--font-body:var(--fb);--moon:#F5C76B;--moon-hi:#FFD98A;--ember:#F08A7E;--dusk:#2B2F86;--ink:#070C1C}
html[data-theme=dark]{--bg:#070C1C;--bg2:#0E1632;--bg-2:#0E1632;--bg3:rgba(173,190,255,.06);--bg-3:#16214A;--bg-card:rgba(173,190,255,.07);--bg-glass:rgba(173,190,255,.05);--br:rgba(173,190,255,.15);--t1:#F4F6FF;--t2:#C9D1EE;--t3:#97A3CC;--t4:#7582AD;--v-card:#0F1838;--v-card2:#16214A;--v-line:rgba(173,190,255,.17);--v-tx:#F4F6FF;--v-mu:#C3CCE8;--v-link:#A9C0FF;--v-ac:#F5C76B;--v-ac2:#F08A7E;--v-glow:rgba(245,199,107,.16)}
html[data-theme=light]{--bg:#F6F7FC;--bg2:#FFFFFF;--bg-2:#EEF1FA;--bg3:#EEF1FA;--bg-3:#E4E9F6;--bg-card:#FFFFFF;--bg-glass:rgba(49,66,196,.04);--br:#DCE1F0;--t1:#0A1130;--t2:#283153;--t3:#4A5478;--t4:#5F6A8F;--v-card:#FFFFFF;--v-card2:#EEF1FA;--v-line:#DAE0EF;--v-tx:#0A1130;--v-mu:#36406A;--v-link:#3142C4;--v-ac:#4452E0;--v-ac2:#C2553F;--v-glow:rgba(49,66,196,.14)}
body{font-family:var(--fb);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
h1,h2,h3,.section-title,.art-header h1,.v15-hero h1{font-family:var(--fd);letter-spacing:-.022em}
html[data-theme=dark] body:not(:has(.hero)){background:radial-gradient(900px 500px at 85% -5%,rgba(43,47,134,.35),transparent 60%),#070C1C}
/* glass header */
html[data-theme=dark] header:not(.art-header):not(.v15-hero){background:rgba(7,12,28,.78)!important;border-bottom:1px solid rgba(173,190,255,.12)!important;backdrop-filter:blur(18px) saturate(1.5);-webkit-backdrop-filter:blur(18px) saturate(1.5)}
html[data-theme=light] header:not(.art-header):not(.v15-hero){background:rgba(255,255,255,.82)!important;border-bottom:1px solid #E3E7F3!important;backdrop-filter:blur(18px) saturate(1.5);-webkit-backdrop-filter:blur(18px) saturate(1.5)}
/* primary actions in moon gold */
.bsc-cta-btn,.nav-cta,.v15-btn,.calc-btn,.cta-btn,.bsct button.bsct-go,.bsct-go,#calcBtn{background:linear-gradient(180deg,#FFDD94,#F5C76B)!important;color:#2A1B00!important;border:0!important;box-shadow:0 10px 26px -12px rgba(245,199,107,.75),inset 0 1px 0 rgba(255,255,255,.5)!important;font-weight:800!important}
.bsc-cta-btn:hover,.nav-cta:hover,.v15-btn:hover,.calc-btn:hover,.cta-btn:hover,.bsct button.bsct-go:hover{filter:brightness(1.06);transform:translateY(-1px)}
.nav-cta:focus-visible,.v15-btn:focus-visible,.calc-btn:focus-visible,.cta-btn:focus-visible{outline:3px solid #fff;outline-offset:2px}
/* twilight hero (article and converted pages) */
body .art-header,body .v15-hero{border:1px solid rgba(173,190,255,.2);background:radial-gradient(120% 62% at 50% 118%,rgba(255,150,120,.95) 0%,rgba(245,199,107,.7) 24%,rgba(245,199,107,0) 66%),radial-gradient(1.2px 1.2px at 10% 20%,#fff,transparent 60%),radial-gradient(1px 1px at 24% 52%,rgba(255,255,255,.75),transparent 60%),radial-gradient(1.4px 1.4px at 41% 16%,#fff,transparent 60%),radial-gradient(1px 1px at 58% 38%,rgba(255,255,255,.8),transparent 60%),radial-gradient(1.2px 1.2px at 71% 14%,#fff,transparent 60%),radial-gradient(1px 1px at 84% 44%,rgba(255,255,255,.7),transparent 60%),linear-gradient(180deg,#050915 0%,#0D1440 46%,#1E2369 78%,#3A2F6E 100%);box-shadow:0 30px 60px -38px rgba(5,9,21,.95)}
body .art-header::after,body .v15-hero::after{content:"";position:absolute;top:24px;right:26px;width:46px;height:46px;border-radius:50%;background:radial-gradient(circle at 34% 32%,#FFF8E0,#F5C76B 62%,#D8A03E);box-shadow:0 0 0 10px rgba(245,199,107,.10),0 0 46px 6px rgba(245,199,107,.42);z-index:-1}
body .art-header h1,body .v15-hero h1{text-shadow:0 2px 24px rgba(5,9,21,.55)}
body .art-header .art-cat{background:rgba(245,199,107,.14);border-color:rgba(245,199,107,.4);color:#FFE2A0!important}
body .art-header .art-intro,body .v15-hero .v15-lede{color:#EEF1FF}
@media(max-width:600px){body .art-header::after,body .v15-hero::after{width:34px;height:34px;top:18px;right:18px}}
/* headings in article body: type only, no bars */
body .art-body h2,body .v15-sec h2{border:0;padding-left:0;font-size:clamp(1.45rem,1.4vw + 1.1rem,1.95rem);line-height:1.18}
body .art-body h2::before,body .art-body h2::after,body .v15-sec h2::before,body .v15-sec h2::after{display:none!important}
/* tool card and results */
body .v15-tool{border-radius:22px;border:1px solid var(--v-line);background:linear-gradient(180deg,var(--v-card),var(--v-card2) 160%)}
body .v15-tool::before{background:linear-gradient(90deg,#F5C76B,#F08A7E 50%,#6E6BFF)}
body .v15-out .v15-stat:first-child{background:radial-gradient(120% 120% at 100% 0%,rgba(245,199,107,.22),transparent 55%),linear-gradient(150deg,#0D1440,#2B2F86)}
body .v15-out .v15-stat:first-child b{color:var(--moon-hi)}
body .v15-table tr.best td:first-child{box-shadow:inset 4px 0 0 var(--moon)}
body .v15-table tr.best td{background:rgba(245,199,107,.12)}
body .v15-card:hover,body .v15-card:focus-visible{border-color:var(--moon);box-shadow:0 14px 30px -18px rgba(245,199,107,.55)}
body .v15-card .ico{background:rgba(245,199,107,.14);color:var(--moon)}
html[data-theme=light] body .v15-card .ico{background:#EEF1FA;color:#3142C4}
body .v15-callout{border-left-color:var(--moon)}
/* links */
html[data-theme=dark] main a:not(.v15-card):not(.v15-btn){text-decoration-color:rgba(245,199,107,.55)}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

/* header, menu, tools bar, footer: one system, AA contrast in both themes */
.bsc-logo-moon svg{width:1.45em;height:1.45em}
html[data-theme=dark] .bsc-logo-moon{color:#FFD98A!important}
html[data-theme=light] .bsc-logo-moon{color:#3142C4!important}
.bsc-logo-text{font-family:var(--fd);font-weight:800;letter-spacing:-.02em}
html[data-theme=dark] .bsc-logo-text{color:#F4F6FF}
html[data-theme=light] .bsc-logo-text{color:#0A1130}
.bsc-logo-tag{font-weight:700}
html[data-theme=dark] .bsc-logo-tag{color:#C9D1EE!important;border-color:rgba(173,190,255,.3)!important;background:rgba(173,190,255,.08)!important}
html[data-theme=light] .bsc-logo-tag{color:#283153!important;border-color:#CBD3EA!important;background:#F1F4FC!important}
.bsc-nav-btn,.bsc-desktop-nav>a{font-weight:700;border-radius:10px;transition:background .15s,color .15s}
html[data-theme=dark] .bsc-nav-btn,html[data-theme=dark] .bsc-desktop-nav>a{color:#DDE4FA!important}
html[data-theme=light] .bsc-nav-btn,html[data-theme=light] .bsc-desktop-nav>a{color:#1B2447!important}
html[data-theme=dark] .bsc-nav-btn:hover,html[data-theme=dark] .bsc-nav-btn[aria-expanded=true],html[data-theme=dark] .bsc-desktop-nav>a:hover{background:rgba(245,199,107,.14)!important;color:#FFE2A0!important}
html[data-theme=light] .bsc-nav-btn:hover,html[data-theme=light] .bsc-nav-btn[aria-expanded=true],html[data-theme=light] .bsc-desktop-nav>a:hover{background:#EEF1FC!important;color:#3142C4!important}
.bsc-nav-btn:focus-visible,.bsc-desktop-nav a:focus-visible,.bsc-dropdown a:focus-visible,.bsc-mob-link:focus-visible{outline:3px solid #F5C76B;outline-offset:2px}
html[data-theme=dark] .bsc-dropdown{background:#0B1230!important;border:1px solid rgba(173,190,255,.2)!important;box-shadow:0 30px 70px -20px rgba(0,0,0,.85)!important;backdrop-filter:blur(18px)}
html[data-theme=light] .bsc-dropdown{background:#FFFFFF!important;border:1px solid #DDE2F2!important;box-shadow:0 30px 60px -24px rgba(40,50,110,.3)!important}
.bsc-dropdown{border-radius:20px!important;padding:20px 22px!important;gap:26px!important;min-width:680px!important}
.bsc-drop-col{min-width:190px}
.bsc-dropdown a{white-space:nowrap;border-radius:10px;padding:8px 10px;font-weight:600}
html[data-theme=dark] .bsc-dropdown a{color:#DDE4FA!important}
html[data-theme=light] .bsc-dropdown a{color:#1B2447!important}
html[data-theme=dark] .bsc-dropdown a:hover{background:rgba(245,199,107,.13)!important;color:#FFE2A0!important}
html[data-theme=light] .bsc-dropdown a:hover{background:#EEF1FC!important;color:#3142C4!important}
html[data-theme=dark] .bsc-drop-head{color:#A4B1D8!important;border-bottom-color:rgba(173,190,255,.16)!important}
html[data-theme=light] .bsc-drop-head{color:#4A5478!important;border-bottom-color:#E1E6F4!important}
.bsc-dropdown svg{color:#F5C76B;stroke:currentColor}
html[data-theme=light] .bsc-dropdown svg{color:#4452E0}
/* mobile menu */
html[data-theme=dark] .bsc-mobile-nav{background:#070C1C!important}
html[data-theme=light] .bsc-mobile-nav{background:#FFFFFF!important}
html[data-theme=dark] .bsc-mob-link{color:#E6EBFF!important}
html[data-theme=light] .bsc-mob-link{color:#141C40!important}
.bsc-mob-link{border-radius:12px;font-weight:600}
html[data-theme=dark] .bsc-mob-section>*:first-child,html[data-theme=dark] .bsc-mob-head{color:#A4B1D8}
/* homepage tools bar */
.tools-quick-bar{backdrop-filter:blur(14px)}
html[data-theme=dark] .tools-quick-bar{background:rgba(11,18,48,.9)!important;border-color:rgba(173,190,255,.14)!important}
html[data-theme=light] .tools-quick-bar{background:#FFFFFF!important;border-color:#E1E6F4!important}
html[data-theme=dark] .tqb-link{color:#DDE4FA!important}
html[data-theme=light] .tqb-link{color:#1B2447!important}
html[data-theme=dark] .tqb-label{color:#A4B1D8!important}
html[data-theme=light] .tqb-label{color:#4A5478!important}
html[data-theme=dark] .tqb-link.tqb-active,html[data-theme=dark] .tqb-link:hover{background:rgba(245,199,107,.15)!important;color:#FFE2A0!important}
html[data-theme=light] .tqb-link.tqb-active,html[data-theme=light] .tqb-link:hover{background:#EEF1FC!important;color:#3142C4!important}
/* footer */
.bsc-footer{background:linear-gradient(180deg,#0B1230 0%,#050915 100%)!important;border-top:1px solid rgba(173,190,255,.16)!important;color:#C9D1EE!important}
.bsc-footer h4{color:#FFFFFF!important;letter-spacing:.06em}
.bsc-footer .fcol a,.bsc-footer .fdesc{color:#B5C0E6!important}
.bsc-footer .fcol a:hover,.bsc-footer .fsoc a:hover{color:#FFE2A0!important;border-color:#F5C76B!important}
.bsc-footer .fbrand{font-family:var(--fd)}
.bsc-footer .fbrand span{color:#F5C76B!important}
.bsc-footer .fbottom,.bsc-footer .fdisc{color:#A4B1D8!important}
.bsc-footer .fsoc a{border-color:rgba(173,190,255,.35)!important;color:#DDE4FA!important}
@media(max-width:860px){.bsc-dropdown{min-width:0!important}}

/* alignment: one shared content width for header, tools bar, homepage sections and footer */
html body .bsc-nav-wrap,html body .tqb-inner,html body .bsc-footer .fwrap,html body .hx-hero .hx-hero-grid,html body .hx-intro>.container,html body .hx-sec>.container{max-width:1240px;margin-left:auto;margin-right:auto;padding-left:24px;padding-right:24px;box-sizing:border-box}
html body .hx-hero .hero-badge{align-self:flex-start;justify-self:start;margin-left:0!important;margin-right:auto!important}
html body .hx-hero-copy{display:flex;flex-direction:column;align-items:flex-start}
@media(max-width:860px){html body .bsc-nav-wrap,html body .tqb-inner,html body .bsc-footer .fwrap,html body .hx-hero .hx-hero-grid,html body .hx-intro>.container,html body .hx-sec>.container{padding-left:16px;padding-right:16px}html body .hx-hero-copy{display:contents}}
body:has(.hx-hero) .container,body:has(.hx-hero) #bsc-app .container{max-width:1240px!important;padding-left:24px!important;padding-right:24px!important}
@media(max-width:860px){body:has(.hx-hero) .container,body:has(.hx-hero) #bsc-app .container{padding-left:16px!important;padding-right:16px!important}}
html body .hx-proof,html body .hx-proof li,html body .hx-proof div{text-align:left!important;justify-content:flex-start!important}
html body .hx-proof *{text-align:left!important}
html body .hx-proof li{align-items:flex-start!important}html body .hx-proof svg{margin-top:2px}
/* the article hero is always a night sky card, so every text node inside it stays light in both themes */
html body .art-header *:not(.art-cat):not(.art-cat *){color:#E3EAFF!important}
html body .art-header h1.art-h1,html body .art-header h1,html body .art-header strong,html body .art-header b{color:#fff!important}
html body .art-header *:is(h1,strong,b):not(.art-cat):not(.art-cat *){color:#fff!important}
html body .art-header .art-excerpt{background:rgba(255,255,255,.07)!important;border-left-color:#F5C76B!important}
/* homepage steps strip follows the theme (home.css assumed a dark strip in the light theme) */
html[data-theme=light] body .hero-step-label{color:#111827!important}
html[data-theme=light] body .hero-step-sub{color:#475569!important}
html[data-theme=light] body .hero-step-arrow{color:#2563eb!important}
html[data-theme=dark] body .hero-step-label{color:#E2E8F0!important}
html[data-theme=dark] body .hero-step-sub{color:#A9B7CC!important}
/* v15 hero is also a night sky card in both themes */
html body .v15-hero *:not(.v15-badge):not(.v15-badge *):not(a):not(button){color:#E3EAFF!important}
html body .v15-hero h1{color:#fff!important}
/* homepage feature cards and stats strip: one width, centred, readable in both themes */
body .hero-who{max-width:800px;margin-left:auto;margin-right:auto}
body .hero-stats{display:grid!important;grid-template-columns:repeat(4,1fr)!important;width:100%!important;max-width:800px!important;margin:0 auto 48px!important;border-radius:14px!important;overflow:hidden}
body .hero-stats .stat{text-align:center;padding:18px 12px;border-right:1px solid var(--br);border-bottom:0}
body .hero-stats .stat:last-child{border-right:0}
body .hero-stats .stat-num{display:block;font-size:1.5rem;line-height:1.1}
body .hero-stats .stat-label{display:block;margin-top:6px;font-size:.72rem;font-weight:600;letter-spacing:.04em}
html[data-theme=light] body .hero-stats{background:#fff!important;border:1px solid #c7d2fe!important;box-shadow:0 1px 6px rgba(30,64,175,.08)!important;backdrop-filter:none!important}
html[data-theme=light] body .hero-stats .stat{border-right-color:#e0e7ff}
html[data-theme=light] body .hero-stats .stat-num{color:#1E3A8A!important}
html[data-theme=light] body .hero-stats .stat-label{color:#475569!important}
html[data-theme=dark] body .hero-stats{background:rgba(255,255,255,.06)!important;border:1px solid rgba(255,255,255,.13)!important}
html[data-theme=dark] body .hero-stats .stat{border-right-color:rgba(255,255,255,.12)}
html[data-theme=dark] body .hero-stats .stat-num{color:#fff!important}
html[data-theme=dark] body .hero-stats .stat-label{color:#B4C0D6!important}
@media(max-width:600px){body .hero-stats{grid-template-columns:1fr 1fr!important}body .hero-stats .stat{border-bottom:1px solid var(--br)}body .hero-stats .stat:nth-child(2n){border-right:0}body .hero-stats .stat:nth-last-child(-n+2){border-bottom:0}html[data-theme=light] body .hero-stats .stat{border-bottom-color:#e0e7ff}html[data-theme=dark] body .hero-stats .stat{border-bottom-color:rgba(255,255,255,.12)}}
/* homepage audience cards and stats: same width as the hero, stacked card layout, theme colours */
html body .hero-who,html body .hero-stats{max-width:1240px!important;width:100%!important;margin-left:auto!important;margin-right:auto!important}
html body .hero-who{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:16px!important;margin-top:36px!important;margin-bottom:28px!important}
html body .hero-who-card{flex-direction:column!important;align-items:flex-start!important;gap:14px!important;padding:22px 22px 24px!important;border-radius:16px!important;height:100%;transition:transform .18s,border-color .18s,box-shadow .18s}
html body .hero-who-card:hover{transform:translateY(-2px)}
html body .hero-who-icon{display:inline-flex!important;align-items:center;justify-content:center;width:44px;height:44px;border-radius:12px;font-size:0!important;margin:0!important;flex-shrink:0}
html body .hero-who-icon .ic{width:22px;height:22px}
html body .hero-who-title{font-size:1.02rem!important;line-height:1.25;margin:0 0 6px!important}
html body .hero-who-desc{font-size:.9rem!important;line-height:1.6}
html[data-theme=light] body .hero-who-icon{background:#E0E7FF;color:#3730A3}
html[data-theme=light] body .hero-who-title{color:#0F172A!important}
html[data-theme=light] body .hero-who-desc{color:#475569!important}
html[data-theme=dark] body .hero-who-icon{background:rgba(245,199,107,.14);color:#F5C76B}
html[data-theme=dark] body .hero-who-title{color:#F1F5F9!important}
html[data-theme=dark] body .hero-who-desc{color:#B4C0D6!important}
html body .hero-stats .stat{padding:22px 14px}
html body .hero-stats .stat-num{font-size:1.75rem}
html body .hero-stats .stat-label{text-transform:none;letter-spacing:.01em;font-size:.82rem}
@media(max-width:1000px){html body .hero-who{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:560px){html body .hero-who{grid-template-columns:1fr!important}html body .hero-who-card{flex-direction:row!important;align-items:center!important}}
/* decorative moon sits in the hero and scrolls away, it no longer floats over content */
html body .moon{position:absolute!important;z-index:0!important;pointer-events:none}
html body .hx-intro .hero-how-row{max-width:860px!important;margin-left:auto!important;margin-right:auto!important}
