/* Shared glass header. Section navigation stays in the left chapter rail. */
.site-header{display:block;height:110px;padding:0;gap:0;background:transparent;border:0;backdrop-filter:none;z-index:40;position:sticky;top:0}
.home-page .site-header,.home-page .site-header.is-scrolled{position:fixed;inset:0 0 auto;background:transparent;backdrop-filter:none}
.header-top{height:48px;display:flex;align-items:center;justify-content:space-between;padding:0 27px 0 24px;background:rgba(7,16,29,.42);border-bottom:1px solid #dceeff21;backdrop-filter:blur(9px)}
.site-header .brand{font-family:Marcellus,Georgia,serif;font-size:17px;letter-spacing:.08em;gap:9px;line-height:1;min-width:0;color:#f3f7fc}
.site-header .brand img{width:32px;height:38px;object-fit:contain;filter:brightness(1.15) saturate(1.15) drop-shadow(0 0 8px #82cfff55)}
.site-header .account-links{display:flex!important;flex-direction:row;align-items:center;justify-content:flex-end;position:static;gap:0;padding:0;margin:0;border:0;background:none;backdrop-filter:none;font:600 12px/1 Noto,Arial,sans-serif;letter-spacing:0}
.site-header .account-links>a{display:flex;align-items:center;min-height:34px;padding:0 14px!important;position:relative;text-transform:uppercase;color:#c8d4e0;font-size:12px;white-space:nowrap}
.site-header .account-links>a:last-child{padding-right:0!important}
.site-header .account-links>a+a:before{content:'';position:absolute;left:0;height:11px;width:1px;background:#d4e5f328}
.site-header .account-links>a:after{display:none!important}
.site-header .account-links>a:hover,.site-header .account-links>a:focus-visible{color:white;text-shadow:0 0 14px #acdfff77}
.header-bottom{height:62px;display:flex;align-items:stretch;justify-content:space-between;background:rgba(8,20,38,.46);border-bottom:1px solid #c7e8ff22;backdrop-filter:blur(8px)}
.header-navigation{display:flex;align-items:center;padding-left:28px;min-width:0}
.site-header #primary-navigation{display:flex;flex-direction:row;position:static;gap:31px;align-items:center;padding:0;margin:0;background:none;border:0;backdrop-filter:none;font:600 13px/1.4 Noto,Arial,sans-serif}
.site-header #primary-navigation>a{padding:19px 0!important;color:#e1eaf4;white-space:nowrap;min-height:44px;display:flex;align-items:center}
.site-header #primary-navigation>a:hover{color:white;text-shadow:0 0 12px #8ed0ff66}
.site-header #primary-navigation>.mobile-section-link{display:none}
.header-download{position:relative;isolation:isolate;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;min-width:200px;padding:7px 28px;background:radial-gradient(ellipse at 50% 120%,#44e4ffad,transparent 63%),linear-gradient(115deg,#3759d7,#1e8adb 65%,#5086d9);border:1px solid #cdefff88;border-bottom-color:#a5e8ffcc;border-right:0;box-shadow:inset 0 0 22px #d5efff29,0 0 30px #30b8ff26;color:#fff;overflow:hidden}
.header-download>span:first-child{font:27px/1.05 Marcellus,Georgia,serif;letter-spacing:-.02em;text-shadow:0 1px 3px #17395bb3,0 0 12px #d6f7ff44}
.header-download .download-detail{font:8px/1.4 Noto,Arial,sans-serif;letter-spacing:.11em;text-transform:uppercase;color:#e0f3ff}
.header-download:before{content:'';position:absolute;top:0;left:50%;width:9px;height:9px;transform:translate(-50%,-65%) rotate(45deg);border-right:1px solid white;border-bottom:1px solid white;box-shadow:2px 2px 9px #cefbff66}
.header-download:after{content:'';position:absolute;inset:-50%;pointer-events:none;background:linear-gradient(110deg,transparent 40%,#e3fbff35 50%,transparent 60%);transform:translateX(-80%);transition:transform .6s}
.header-download:hover{color:#fff;background-color:#228cec;box-shadow:inset 0 0 25px #d5efff44,0 0 35px #30b8ff55}
.header-download:hover:after{transform:translateX(80%)}
.site-header #mobile-menu{display:none}
.site-header.menu-open .header-bottom{background:#0b1a2cf2}
.site-utilities{top:128px}
@media(max-width:960px){.header-top{padding-inline:22px}.site-header .brand{font-size:16px}.header-navigation{padding-left:20px}.site-header #primary-navigation{gap:22px;font-size:12px}.header-download{min-width:185px}}
@media(max-width:760px){.site-header{height:104px}.header-top{height:46px;padding-inline:13px}.site-header .brand{font-size:14px;gap:7px;letter-spacing:.06em}.site-header .brand img{width:26px;height:33px}.site-header .account-links>a{font-size:9px;min-height:36px;padding:0 8px!important}.header-bottom{height:58px}.header-navigation{padding-left:13px}.site-header #mobile-menu{display:block;min-width:40px;min-height:40px;padding:0;border:0;background:transparent;font-size:23px;color:#e7f2ff;line-height:1}.site-header #primary-navigation{display:none;position:absolute;left:0;right:0;top:104px;background:#0b1932f5;padding:15px 22px 24px;border-bottom:1px solid #b8d6eb44;backdrop-filter:blur(18px);gap:0;flex-direction:column;align-items:stretch;box-shadow:0 20px 40px #0005}.site-header.menu-open #primary-navigation{display:flex}.site-header #primary-navigation>a,.site-header #primary-navigation>.mobile-section-link{display:flex;font-size:13px;padding:13px 5px!important;min-height:44px;border-bottom:1px solid #a5cee619}.header-download{min-width:169px;padding:5px 17px}.header-download>span:first-child{font-size:25px}.header-download .download-detail{font-size:7px;letter-spacing:.09em}.home-page .social-rail{top:122px;right:17px}.hero{padding-top:155px}.page-main{padding-top:35px}}
@media(max-width:360px){.site-header .brand{font-size:12px;gap:5px}.site-header .brand img{width:23px}.site-header .account-links>a{font-size:8px;padding-inline:7px!important}.header-top{padding-inline:10px}}
.header-bottom{background:transparent;border-bottom:0;backdrop-filter:none;pointer-events:none}.header-navigation,.header-download{pointer-events:auto}.header-navigation{padding-left:24px}.site-header #primary-navigation{display:none}.header-download{flex-direction:row;gap:12px;min-width:210px;margin:10px 25px 0 0;height:52px;padding:8px 15px;border:1px solid #8ed6ff85;border-radius:3px;background:linear-gradient(110deg,#102945d9,#0a182ed9);backdrop-filter:blur(10px);box-shadow:inset 0 0 20px #9bcfff08,0 4px 24px #0003;color:white;justify-content:flex-start;overflow:hidden}.header-download:before{display:none}.header-download>img{width:27px;height:31px;object-fit:contain;filter:brightness(1.15) drop-shadow(0 0 7px #8bd7ff55)}.header-download .download-copy{display:flex;flex-direction:column;gap:3px;text-align:left}.header-download .download-copy>span:first-child{font:600 11px/1.2 Noto,Arial,sans-serif;letter-spacing:.13em;text-transform:uppercase;color:#f4fbff;text-shadow:none}.header-download .download-detail{font:9px/1.2 Noto,Arial,sans-serif;color:#abc8df;letter-spacing:.015em;text-transform:none}.header-download>.icon{width:16px;height:16px;margin-left:auto;transform:rotate(90deg);color:#c5eaff}.header-download:hover{background:#163852df;border-color:#c8eeff;box-shadow:inset 0 0 18px #a7ddff0d,0 0 22px #51baff35}.hero h1{text-transform:uppercase;font-size:clamp(60px,6.3vw,104px);letter-spacing:.005em}.hero h1 em{color:white}.site-utilities{top:135px}
@media(min-width:761px) and (max-height:850px){.hero h1{font-size:clamp(53px,5.4vw,78px)}}
@media(max-width:760px){.header-download{min-width:184px;height:48px;margin:7px 13px 0 0;gap:9px;padding:7px 12px}.header-download>img{width:23px;height:28px}.header-download .download-copy>span:first-child{font-size:10px}.header-download .download-detail{font-size:8px}.header-navigation{padding-left:13px}.site-header #mobile-menu{background:#0b193066;border:1px solid #c0dfff22;border-radius:2px}.site-header.menu-open #primary-navigation{display:flex;pointer-events:auto}.hero h1{font-size:clamp(36px,7.5vw,57px);letter-spacing:0}.home-page .social-rail{top:127px}}
@media(prefers-reduced-motion:reduce){.site-header *{transition:none!important}}

.site-header .account-links [hidden]{display:none!important}
.site-header .account-links [data-header-profile]{display:inline-flex;align-items:center;gap:8px;text-transform:none;max-width:225px;color:#f3f9ff}
[data-header-profile]>svg{width:17px;height:17px;flex:none;fill:none;stroke:currentColor;stroke-width:1.5}
[data-header-name]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:760px){.site-header .account-links [data-header-profile]{max-width:125px;gap:5px}[data-header-profile]>svg{width:14px;height:14px}}
/* The phone menu exposes every chapter, rather than only the first feature. */
.mobile-feature-links{display:none}
@media(max-width:760px){
 .site-header #primary-navigation{max-height:calc(100svh - 104px);overflow-y:auto;overscroll-behavior:contain;background:#10171bf5}
 .site-header .mobile-feature-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px;margin:2px 0 9px;padding:4px 4px 10px;border-bottom:1px solid #bddae329}
 .site-header .mobile-feature-links>a{display:flex;align-items:center;min-height:40px;padding:8px 3px;color:#c9e0e8;font:13px/1.5 Noto,Arial,sans-serif;text-decoration:none;border-bottom:1px solid #c3dae517;white-space:normal}
 .site-header .mobile-feature-links>a:hover,.site-header .mobile-feature-links>a:focus-visible{color:#fff;background:#b9e7f30d}
 .site-header .mobile-feature-links>a:focus-visible{outline:2px solid #bdebf2;outline-offset:2px}
}
@media(max-width:760px){
 .site-header.menu-open #primary-navigation{position:fixed;top:104px;left:12px;right:12px;width:calc(100vw - 24px);max-height:calc(100svh - 116px);box-sizing:border-box;border:1px solid #bcd9e338;background:#10171bf7;z-index:100}
}
@media(max-width:760px){.site-header .header-top .account-links>a{font-size:10px}}
@media(max-width:360px){.site-header .header-top .account-links>a{font-size:9px}}
@media(max-width:760px){.site-header .mobile-feature-links>a[aria-current="location"]{color:#f3fcff;box-shadow:inset 0 -2px #94dfec;background:#badfe908}}
/* Inline actions stay distinguishable without relying on colour alone. */
.inner-page:not(.account-page):not(.membership-page):not(.verification-shell) .page-main p a:not(.button),.faq-section p a{text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}

/* The floating phone menu needs its own space above inner-page content. */
@media(max-width:760px){.inner-page:not(.home-page)>.page-main{padding-top:76px}}

@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* Phone forms keep every action clear; Discord remains in the footer. */
@media(max-width:760px){.inner-page .social-rail{display:none}}

/* The chapter rail hides below 1280px, so tablets need the same direct links. */
@media(min-width:761px) and (max-width:1279px){
 .site-header #mobile-menu{display:block;position:fixed;left:16px;top:66px;width:40px;height:40px;min-width:40px;min-height:40px;padding:0;color:#e7f2ff;font-size:23px;line-height:1;background:#10171bc9;border:1px solid #c0dfff33;border-radius:2px}
 .site-header #primary-navigation{display:none;position:fixed;left:16px;right:auto;top:116px;width:min(460px,calc(100vw - 32px));max-height:calc(100svh - 132px);overflow-y:auto;overscroll-behavior:contain;box-sizing:border-box;padding:15px 22px 22px;margin:0;background:#10171bf7;border:1px solid #bcd9e338;box-shadow:0 20px 40px #0005;backdrop-filter:blur(18px);gap:0;flex-direction:column;align-items:stretch;z-index:100}
 .site-header.menu-open #primary-navigation{display:flex;pointer-events:auto}
 .site-header #primary-navigation>.mobile-section-link{display:flex;font-size:13px;padding:12px 5px!important;min-height:44px;border-bottom:1px solid #a5cee619}
 .site-header .mobile-feature-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px;margin:2px 0 9px;padding:4px 4px 10px;border-bottom:1px solid #bddae329}
 .site-header .mobile-feature-links>a{display:flex;align-items:center;min-height:40px;padding:8px 3px;color:#c9e0e8;font:13px/1.5 Noto,Arial,sans-serif;border-bottom:1px solid #c3dae517;white-space:normal}
 .site-header .mobile-feature-links>a[aria-current="location"]{color:#f3fcff;box-shadow:inset 0 -2px #94dfec;background:#badfe908}
 .inner-page:not(.home-page)>.page-main{padding-top:76px}
}

/* One direct download action stays available throughout the desktop overview. */
@media(min-width:761px){
 .site-header .account-links>.header-download-action{min-height:34px;padding:0 16px!important;margin-right:14px;gap:11px;border:1px solid #b3e9ff88;border-radius:18px;background:linear-gradient(115deg,#164563,#172c4c);box-shadow:inset 0 1px 0 #e3faff1a,0 0 16px #5bcae41a;color:#f4fcff;font-size:12px;letter-spacing:.02em}
 .site-header .account-links>.header-download-action:hover{background:linear-gradient(115deg,#205d80,#203b61);border-color:#d8f5ff}
 .site-header .account-links>.header-download-action:before,.site-header .account-links>.header-download-action:after{display:none!important}
 .site-header .header-download-action>span{font-size:17px;color:#c9f1ff}
}
