/* Shared hierarchy; loaded after the existing brand and layout styles. */
body>header{height:auto!important;min-height:88px;display:flex;align-items:center;gap:20px;overflow:visible;padding-top:14px;padding-bottom:14px}
header .top-nav{display:flex;gap:6px;align-items:center;justify-content:center;margin-left:auto;flex-wrap:nowrap;order:0;width:auto}
.top-nav>a,.top-nav summary{display:block;padding:11px 12px;color:#343633;font-weight:800;font-size:14px;line-height:1.3;text-decoration:none;white-space:nowrap;border-radius:12px;cursor:pointer;position:relative}
.top-nav summary{list-style:none}.top-nav summary::-webkit-details-marker{display:none}.top-nav summary::after{content:'⌄';font-size:12px;margin-left:6px}
.top-nav>a:hover,.top-nav summary:hover,.top-nav details[open]>summary{background:#eee8de}
.top-nav>a[aria-current],.top-nav .nav-current>summary{color:#1467d8;background:#eaf2ff}
.top-nav a::after{display:none!important}.top-nav details{position:relative;border:0;margin:0;padding:0;background:none}
.nav-dropdown{position:absolute;top:calc(100% + 10px);left:0;min-width:230px;max-width:min(300px,90vw);padding:9px;background:#fffdf9;border:1px solid #ded7cb;border-radius:18px;box-shadow:0 14px 36px #352c2629;z-index:110}
.nav-dropdown a{display:flex;flex-direction:column;gap:3px;padding:11px 13px;margin:0;border-radius:11px;text-decoration:none;color:#20211f;font-size:14px;font-weight:800;white-space:normal}
.nav-dropdown a:hover,.nav-dropdown a[aria-current]{background:#eaf2ff;color:#1467d8}.nav-dropdown small{font-weight:400;color:#62615e;font-size:12px;line-height:1.4}
header>.secondary{order:0;flex-shrink:0;margin-left:0;max-width:200px}
.top-nav summary:focus-visible{outline:3px solid #1467d8;outline-offset:2px}
.home-hub{margin:20px 0 40px;position:relative}.home-hub>h2{font-size:28px;margin:0 0 8px}.home-hub>p{margin:0 0 22px;line-height:1.6}
.hub-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.hub-card{padding:24px;border:1px solid #ddd7cd;background:#fffdf9;border-radius:24px;box-shadow:0 5px 0 #e7dfd3}.hub-card h3{margin:0 0 8px;font-size:23px}.hub-card>p{line-height:1.65;font-size:14px;margin:0 0 18px}.hub-links{display:flex;flex-direction:column;gap:8px}.hub-links a{display:flex;justify-content:space-between;gap:12px;padding:12px 14px;background:#edf5ff;border-radius:12px;text-decoration:none;color:#145db9;font-weight:800;font-size:14px}.hub-card:nth-child(2) .hub-links a{background:#edf7ef;color:#26784d}.hub-card:nth-child(3) .hub-links a{background:#fff1d3;color:#88620a}.hub-links a::after{content:'↗'}
.classification-switch{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin:0 0 28px}.classification-switch a{padding:10px 20px;background:#eee8de;border-radius:14px;text-decoration:none;font-weight:800;color:#62615e}.classification-switch a[aria-current]{background:#1467d8;color:#fff}
@media(max-width:1120px){body>header{flex-wrap:wrap;gap:8px 16px}header>.brand{order:0}header>.secondary{order:1;margin-left:auto}header .top-nav{order:2;width:100%;margin:0;justify-content:center}}
@media(max-width:650px){body>header{min-height:0;padding-top:10px;padding-bottom:8px}header .top-nav{justify-content:space-between;gap:2px;flex-wrap:nowrap}.top-nav>a,.top-nav summary{font-size:11px;padding:10px 5px}.top-nav summary::after{margin-left:3px;font-size:10px}.top-nav .nav-dropdown{position:fixed;top:auto;left:var(--page-gutter,16px);right:var(--page-gutter,16px);max-width:none;min-width:0;margin-top:8px}.hub-grid{grid-template-columns:1fr}.hub-card{padding:20px}.home-hub>h2{font-size:25px}header>.secondary{max-width:145px}}
@media(min-width:1000px){#home>.home-hub{grid-column:1/-1;grid-row:4}#home>.features{grid-row:5}#home>.seo-guide{grid-row:6}}

.top-nav>a,.top-nav summary{min-height:44px;box-sizing:border-box;display:flex;align-items:center}

/* The phone uses the same five destinations as the Android app. */
.mobile-bottom-nav,.mobile-utility-links,.mobile-home-play,.mobile-play-heading,.mobile-play-more{display:none}
.navigation-hub{padding-top:clamp(28px,5vw,64px);padding-bottom:52px;min-height:60vh}.navigation-hub>div{max-width:1100px;margin:auto}.navigation-hub h1{font-size:clamp(34px,5vw,58px);margin:12px 0 16px}.navigation-hub>div>p{max-width:640px;line-height:1.7;margin-bottom:28px}.navigation-hub .hub-card{display:flex;flex-direction:column}.navigation-hub .hub-card .hub-links{margin-top:auto}
@media(max-width:800px){
 body.has-mobile-navigation{padding-bottom:calc(92px + env(safe-area-inset-bottom,0px))}
 body.has-mobile-navigation>header{min-height:72px!important;flex-wrap:nowrap;gap:10px;padding-top:12px;padding-bottom:12px}
 body.has-mobile-navigation>header .top-nav{display:none!important}
 body.has-mobile-navigation>header .theme-tools{margin-left:auto}
 body.has-mobile-navigation:not(.mobile-room-active)>header .account-header-button{display:none!important}
 body.has-mobile-navigation>header .brand{font-size:clamp(18px,4.8vw,25px)!important;gap:7px}
 body.has-mobile-navigation>header .brand-logo{width:34px;height:34px}
 .mobile-bottom-nav{position:fixed;inset:auto 0 0;z-index:120;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:end;gap:3px;min-height:82px;padding:8px max(8px,env(safe-area-inset-left,0px)) calc(8px + env(safe-area-inset-bottom,0px)) max(8px,env(safe-area-inset-right,0px));background:var(--surface,#fffdf9);border-top:1px solid var(--theme-line,#ded7cd);box-shadow:0 -5px 24px #20211f0c}
 .mobile-nav-item{min-width:0;min-height:64px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:7px 2px 5px;border-radius:15px;color:var(--theme-muted,#62615e);font:800 11px/1.2 Nunito,system-ui,sans-serif;text-decoration:none;white-space:nowrap;touch-action:manipulation}
 .mobile-nav-item svg{width:24px;height:24px;flex-shrink:0}
 .mobile-nav-item[aria-current=page]{color:var(--theme-accent,#1467d8);background:var(--surface-2,#f4f0e9)}
 .mobile-nav-item:focus-visible{outline:3px solid var(--theme-accent,#1467d8);outline-offset:-3px}
 .mobile-nav-play{padding-top:0;background:transparent!important;font-size:12px;font-weight:900;color:var(--text,#20211f);gap:4px}
 .mobile-play-tile{position:relative;display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:7px;width:55px;height:55px;margin-top:-14px;background:var(--surface,#fffdf9);border:1px solid var(--theme-line,#ded7cd);border-radius:17px;box-shadow:0 4px 0 #00000015,0 4px 12px #0000000d;transform:rotate(-5deg)}
 .mobile-play-tile i{display:block;width:100%;height:100%;min-width:0;margin:0;border-radius:5px;background:#ed3048;box-shadow:inset 0 2px 0 #ffffff40}.mobile-play-tile i:nth-child(2){background:#1467d8}.mobile-play-tile i:nth-child(3){background:#28a65f}.mobile-play-tile i:nth-child(4){background:#ffce32}
 .mobile-nav-play .mobile-play-arrow{position:absolute;top:14px;left:14px;width:26px;height:26px;filter:drop-shadow(0 1px 2px #0005)}
 .mobile-nav-play[aria-current=page] .mobile-play-tile{border-color:var(--theme-accent,#1467d8);box-shadow:0 0 0 3px #1467d825,0 4px 0 #00000015}
 .mobile-utility-links{display:flex;flex-wrap:wrap;justify-content:center;gap:10px 18px;padding:20px var(--page-gutter,16px);border-top:1px solid var(--theme-line,#ded7cd);margin-top:20px}
 .mobile-utility-links a{min-height:44px;display:flex;align-items:center;color:var(--theme-muted,#62615e);font-size:12px;font-weight:800;text-decoration:none}
 .mobile-home-play{display:inline-flex;justify-content:center;min-height:52px;margin-top:18px;text-decoration:none;min-width:210px}
 body.has-mobile-navigation:not(.mobile-play-page) #home>.home-grid{display:none}
 body.has-mobile-navigation.mobile-play-page #home>:not(.home-grid):not(.mobile-play-heading):not(.mobile-play-more){display:none}
 body.has-mobile-navigation.mobile-play-page #home::before,body.has-mobile-navigation.mobile-play-page #home::after{display:none}
 body.mobile-play-page .mobile-play-heading{display:block;padding:26px 0 18px}.mobile-play-heading h1{font-size:34px;line-height:1.15;margin:12px 0}.mobile-play-heading p{font-size:15px;line-height:1.6;margin:0}
 body.mobile-play-page .mobile-play-more{display:block;padding:26px 0 16px}.mobile-play-more h2{font-size:25px;margin:12px 0 16px}.mobile-play-more .hub-links{display:grid;grid-template-columns:1fr 1fr}.mobile-play-more .hub-links a{align-items:center;min-height:58px;font-size:13px}
 body.mobile-room-active{padding-bottom:0}body.mobile-room-active .mobile-utility-links{display:none}
 body.has-mobile-navigation #toast{bottom:calc(102px + env(safe-area-inset-bottom,0px))}body.mobile-room-active #toast{bottom:25px}
 .navigation-hub .hub-grid{grid-template-columns:1fr}.navigation-hub{padding-top:26px}.navigation-hub .hub-card{padding:22px}
 html:has(#native-progress-style) .mobile-bottom-nav,html:has(#native-progress-style) .mobile-utility-links{display:none!important}
 html:has(#native-progress-style) body.has-mobile-navigation{padding-bottom:0!important}
}
