.mobile-menu-toggle{display:none}
@media(max-width:900px){
 html{scroll-padding-top:100px}
 body{overflow-wrap:break-word}
 .wrap{width:calc(100% - 36px);max-width:720px}
 .fitness-rails{display:none}
 .header .header-inner{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;padding:12px 0;min-height:70px}
 .header .brand{align-self:center;left:0;position:static}
 .header .brand img{width:150px;height:auto;max-width:100%}
 .mobile-menu-toggle{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 14px;border:1px solid var(--line);border-radius:8px;color:var(--ink);background:var(--white);font:inherit}
 .header .nav{width:100%;flex-basis:100%;display:flex;justify-content:center;gap:4px;max-height:65svh;overflow:auto}
 .mobile-nav-ready .header .nav{display:none}
 .mobile-nav-ready .header .nav.is-open{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 .header .nav a{padding:12px 8px;min-height:44px;text-align:center;white-space:normal}
 .promise-strip .wrap{display:flex;flex-wrap:wrap;gap:6px 12px;padding-top:8px;padding-bottom:8px;justify-content:center;text-align:center}
 .promise-strip .desktop-note{display:none}
 .hero,.page-top,.split,.three,.edition-grid,.support-grid,.reading{grid-template-columns:minmax(0,1fr);gap:24px}
 .hero,.page-top{padding-top:28px;padding-bottom:32px}
 h1,.page-top .page-intro h1{font-size:clamp(34px,7vw,52px);letter-spacing:-1.5px;overflow-wrap:normal}
 h2,.section-heading h2{font-size:28px}
 .lead{font-size:17px;line-height:1.6}
 .section{padding:36px 0}
 .hero-gallery{min-width:0;border-radius:32px 12px;padding:16px}
 .gallery-stage{height:440px}
 .hero-art{min-height:480px}
 .band{padding:26px 22px;display:flex;flex-direction:column;gap:14px;align-items:flex-start}
 .band h2{font-size:28px}
 .toolbar{display:flex;flex-wrap:wrap;gap:10px}
 .toolbar .search{min-width:0;flex:1 1 210px;width:100%;font-size:16px}
 input,select,textarea{max-width:100%;font-size:16px}
 .table-box{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
 .feature-layout{display:block;position:static}
 .feature-pin-track{min-height:0}
 .feature-side{position:static;max-height:none;overflow:visible;margin-bottom:20px;padding:0}
 .feature-side .eyebrow{position:static}
 .feature-side a{display:inline-block;padding:10px 12px 10px 0;min-height:44px;margin-right:6px}
 .feature-scroll{max-height:none;overflow:visible;padding:0;scroll-padding-top:100px}
 .feature-group{scroll-margin-top:100px}
 .feature-group h2{font-size:26px}
 .feature-group table{min-width:0;table-layout:fixed;width:100%}
 .feature-group th,.feature-group td{padding:12px 10px;font-size:14px;overflow-wrap:anywhere}
 .feature-group th:first-child,.feature-group td:first-child{width:38%}
 .status-banner{display:grid;grid-template-columns:1fr;gap:22px;padding:24px}
 .week{grid-template-columns:1fr;gap:12px;padding:24px 0}
 .week h2{font-size:25px}
 .footer-top,.footer-bottom{display:flex;flex-direction:column;align-items:flex-start;gap:20px}
 .footer-links,.socials{display:flex;flex-wrap:wrap;gap:8px}
 .footer-links a,.social{min-height:44px;display:inline-flex;align-items:center}
 .demo-layout{display:flex!important;flex-direction:column!important;gap:22px!important;padding-bottom:30px!important}
 .pixel-demo{position:relative!important;top:auto!important;width:min(100%,390px)!important;max-width:390px!important;align-self:center!important;order:0!important;grid-row:auto!important;grid-column:auto!important}
 .demo-screen{width:100%;height:auto!important;aspect-ratio:1008/2244;max-height:none!important;min-height:0!important}
 .demo-guide{position:static!important;width:100%!important;display:block!important;order:1!important}
 .demo-links{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .demo-links button{min-height:44px;white-space:normal}
 .demo-intro{padding-top:28px}
}
@media(max-width:380px){.wrap{width:calc(100% - 28px)}.header .brand img{width:136px}.gallery-stage{height:390px}.feature-group th,.feature-group td{padding:10px 8px}.card{padding:20px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* Approved compact anchored mobile menu. Size follows the longest title. */
@media(max-width:900px){
 .header .header-inner{position:relative}
 .mobile-nav-ready .header .nav{position:absolute;top:calc(100% - 4px);right:0;left:auto;width:max-content;max-width:calc(100vw - 36px);min-width:0;flex-basis:auto;z-index:30;padding:5px;border:1px solid var(--line);border-radius:10px;background:var(--white);box-shadow:0 8px 22px #102e571c;max-height:calc(100svh - 100px);overflow-y:auto;gap:0;margin:0;justify-content:stretch}
 .mobile-nav-ready .header .nav.is-open{display:flex;flex-direction:column;grid-template-columns:none;align-items:stretch}
 .mobile-nav-ready .header .nav a{text-align:left;white-space:nowrap;padding:8px 12px;min-height:38px;font-size:14px;line-height:22px;display:block;width:auto;margin:0}
}

/* One shared desktop header geometry prevents layout jumps between pages. */
@media(min-width:901px){
 .header .header-inner{width:calc(100% - 48px);max-width:1440px;min-height:88px;display:grid!important;grid-template-columns:150px minmax(0,1fr);gap:20px!important;padding:10px 0!important;align-items:center}
 .header .brand{position:static!important;left:auto!important;transform:none!important;align-self:center!important;grid-column:1}
 .header .brand img{width:150px!important;height:auto}
 .header .nav{position:static!important;grid-column:2;width:auto!important;max-width:100%;justify-self:center;display:flex;flex-wrap:nowrap!important;gap:2px!important;margin:0!important}
 .header .nav a{font-size:13px;padding:10px 7px!important;white-space:nowrap}
}

/* Account shortcuts sit together; main navigation links remain unchanged. */
.header .website-account-actions{position:absolute;right:0;top:8px;display:flex;align-items:center;gap:8px;z-index:2}
.header .website-account-actions .account-login{position:static;display:inline-flex;align-items:center;justify-content:center;min-height:40px;box-sizing:border-box}
.header .website-connect-shortcut,.header .website-beta-shortcut{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:6px 12px;border:1px solid var(--blue);border-radius:8px;color:var(--blue);background:var(--white);font-size:14px;font-weight:700}
.header .website-connect-shortcut[hidden]{display:none!important}
.header .website-account-signed-in{width:40px;padding:7px!important}
.header .website-account-signed-in svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
@media(min-width:901px){.header .header-inner:has(.website-account-actions){padding-top:48px!important}}
@media(max-width:900px){.header .website-account-actions{position:static;margin-left:auto}.header .header-inner:has(.website-account-actions){column-gap:8px}.header .mobile-menu-toggle{order:3}.header .brand:has(~.website-account-actions .website-account-signed-in) img{width:120px}.header .website-connect-shortcut,.header .website-beta-shortcut{padding:6px 8px}}

.header .website-beta-shortcut[aria-current=page]{background:var(--soft)}
