/* Keep the document as the vertical scroller; constrain flex/grid children. */
html{scrollbar-gutter:stable}
body{min-width:0}
main,header,.hero-copy,.hero-art,.panel,.filter-wrap,.search,.search input,.featured>div,.tool-links a,.tool-links a>div,.card-copy,footer>*,.section-head>*{min-width:0}
.hero,.tool-links,.apps-grid,footer{min-width:0}
.filters,.saved-list{max-width:100%;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
.saved-list,.suggestions,dialog{scrollbar-width:thin;scrollbar-color:var(--muted) var(--surface)}
.personal-tabs{flex-wrap:wrap}
.destination,.tool-links a,.app-card h3,.featured h2,footer p{overflow-wrap:anywhere}
.suggestions{overflow-x:hidden;overscroll-behavior-y:contain}
dialog{overscroll-behavior-y:contain}
body:has(dialog[open]){overflow:hidden}
/* Phone defaults. Larger screens progressively restore spacious layouts. */
html{scroll-padding-top:126px}body{padding-bottom:env(safe-area-inset-bottom)}header{padding:8px 12px;gap:8px;flex-wrap:wrap}.brand{gap:6px;margin-right:auto}.brand b{font-size:21px}.brand small{font-size:9px;letter-spacing:1.8px}.logo{width:35px;height:39px}#menu{display:block;width:44px;height:44px;font-size:23px}#theme.theme-select{width:76px;max-width:76px;font-size:12px;padding:8px 5px}header>nav{display:none;order:6;flex-wrap:wrap;width:100%;margin:0}header.open>nav{display:flex}header>nav a,header>nav button{min-height:44px;font-size:13px;padding:12px}.search{order:5;flex-basis:100%;max-width:none;min-height:46px;border-radius:12px}.search input{font-size:16px;height:46px}.search kbd{display:none}.search>span{font-size:24px}.suggestions{max-height:45dvh}.suggestions b{font-size:14px}.suggestions small{font-size:12px}.suggestions button{min-height:60px}.suggestions img{width:40px;height:40px}body.searching .search{position:relative;top:auto;left:auto;right:auto;width:100%;max-width:none}.search:focus-within{border-color:var(--blue)}main{padding:10px 10px 0}.hero{display:block;min-height:0;border-radius:16px}.hero-copy{display:block;padding:16px}.hero h1{font-size:clamp(25px,6.8vw,32px);line-height:1.12;letter-spacing:-.8px}.hero-copy .eyebrow{font-size:8px!important;letter-spacing:1.5px;margin-bottom:7px!important}.hero h2{font-size:12px;line-height:1.5;letter-spacing:0;margin:8px 0}.hero-copy>p:not(.eyebrow){display:none}.hero-art{display:none}.actions{margin-top:12px;gap:8px;display:grid;grid-template-columns:1.15fr 1fr}.actions a{padding:11px 8px;min-height:44px;font-size:11px;border-radius:10px;white-space:normal;text-align:center}.panel{padding:14px 10px;margin-top:12px;border-radius:16px;scroll-margin-top:126px}.section-head{margin:0 2px 8px;gap:8px}.section-head h2{font-size:20px;letter-spacing:-.4px}.section-head h2 span{font-size:23px}.section-head button{padding:10px 4px;font-size:11px}.filters{gap:6px;padding:3px 0 6px}.filters button{padding:9px 12px;font-size:12px;min-height:44px}.result-count{font-size:12px;margin:5px 0 10px}.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.card{min-height:254px;border-radius:12px}.card-top{padding:1px 3px 0 8px}.category{font-size:10px;padding:3px 5px}.favorite{height:44px;width:44px;font-size:21px}.card-img{height:65px;width:90px;margin:0 auto 6px}.card-copy{padding:0 9px}.card h3{font-size:14px;line-height:1.2;min-height:34px}.card p{font-size:12px;line-height:1.35;min-height:30px;margin:4px 0 7px}.destination{font-size:10px;line-height:1.4;gap:2px;margin-bottom:7px}.destination .shared{display:block;width:100%;font-weight:normal}.card-actions{display:grid;grid-template-columns:1fr 44px 44px;gap:2px;padding:4px;border-top:1px solid var(--line)}.card-actions a{grid-column:1/-1;grid-row:2;min-height:44px;font-size:13px}.card-actions button{grid-row:1;width:44px;height:44px;min-width:44px}.card-actions button:first-of-type{grid-column:2}.card-actions button:last-of-type{grid-column:3}.personal .section-head h2{font-size:18px}.personal-tabs{margin:8px 0;gap:0}.personal-tabs button{padding:10px 8px;font-size:12px}.saved-empty{padding:3px;font-size:12px}.saved-empty b{font-size:13px}.local-note{font-size:10px;max-width:90px}.featured{padding:14px;margin-top:12px;border-radius:16px;gap:12px;flex-wrap:wrap}.featured img{width:54px;height:54px}.featured>div{min-width:180px}.featured h2{font-size:17px}.featured p{font-size:12px;line-height:1.4;margin:5px 0}.featured .primary{width:100%;font-size:13px;min-height:44px;padding:11px}.tool-links{grid-template-columns:1fr;gap:9px}.tool-links a{padding:13px;min-height:88px;font-size:14px}.apps-grid{grid-template-columns:1fr;gap:9px}.app-card{padding:13px;gap:12px;flex-wrap:nowrap}.app-card img{width:48px;height:48px;flex-shrink:0}.app-card>div{min-width:0;flex:1;flex-basis:auto}.app-card h3{font-size:14px}.app-card p{font-size:12px;line-height:1.4}.app-card .primary{width:auto;min-width:70px;font-size:11px;padding:12px 8px;flex-shrink:0}.bottom-nav{position:fixed;bottom:0;left:0;right:0;z-index:19;display:flex;justify-content:space-around;background:var(--surface);border-top:1px solid var(--line);padding:5px 4px max(5px,env(safe-area-inset-bottom))}.bottom-nav a{flex:1;min-width:0;min-height:50px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;font-size:11px;color:var(--muted);border-radius:10px}.bottom-nav span{font-size:23px}.bottom-nav .active{background:var(--soft);color:var(--blue);font-weight:bold}.back-top{bottom:calc(76px + env(safe-area-inset-bottom));right:14px}.toast{bottom:calc(78px + env(safe-area-inset-bottom));font-size:13px}footer{grid-template-columns:1fr 1fr;padding:26px 10px calc(90px + env(safe-area-inset-bottom));gap:20px}.footer-brand,.footer-message{grid-column:1/-1}.footer-message{text-align:left!important;font-size:17px!important}dialog{width:calc(100% - 16px);max-height:calc(100dvh - 32px);padding:22px;border-radius:18px}dialog h2{font-size:23px}dialog .detail-icon{width:75px;height:75px;margin-bottom:10px}.detail-actions{display:grid;grid-template-columns:1fr 1fr}.detail-actions a{grid-column:1/-1}.detail-actions button{padding:11px 7px;font-size:12px}.related button{font-size:12px}.filters button,.saved-item,.bottom-nav a{touch-action:manipulation}
@media(max-width:359px){.brand b{font-size:19px}.brand small{letter-spacing:1px}.logo{width:29px}.hero h1{font-size:25px}.grid{grid-template-columns:1fr}.card{display:grid;grid-template-columns:90px 1fr;min-height:0}.card-top{grid-column:1/-1}.card-img{grid-column:1;align-self:center;margin:0 auto;height:75px;width:82px}.card-copy{grid-column:2;padding:4px 10px}.card h3{min-height:0;font-size:15px}.card p{min-height:0}.card-actions{grid-column:1/-1;display:flex}.card-actions a{flex:1;order:0}.card-actions button{flex:none}.app-card{flex-wrap:wrap}.app-card>div{flex:1}.app-card .primary{width:100%}.personal-tabs button{font-size:11px;padding:10px 6px}.actions{grid-template-columns:1fr 1fr}}
@media(min-width:480px){.card-actions{display:flex}.card-actions a{order:0;flex:1}.card-actions button{flex:none}.card{min-height:245px}.card-img{height:80px;width:105px}.hero-copy{padding:20px}.hero h1{font-size:34px}.apps-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.app-card{flex-wrap:wrap}.app-card>div{flex:1}.app-card .primary{width:100%}}
@media(min-width:768px){html{scroll-padding-top:145px}main{padding:16px}.hero{display:grid;grid-template-columns:1.1fr 1fr}.hero-copy{padding:28px;display:flex;justify-content:center;flex-direction:column}.hero-copy>p:not(.eyebrow){display:block;font-size:14px}.hero h1{font-size:38px}.hero h2{font-size:16px}.hero-art{display:block;height:320px}.actions{display:flex;flex-wrap:wrap}.actions a{font-size:13px;padding:12px 18px}.panel{padding:20px;scroll-margin-top:145px}.grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.card{display:flex;min-height:292px}.card-img{height:92px;width:120px;margin:3px auto 9px}.card-copy{padding:0 14px}.card h3{font-size:15px;min-height:38px}.card p{font-size:13px;min-height:36px}.destination{font-size:11px}.card-actions{display:flex;padding:6px}.card-actions a{order:0}.card-actions button{flex:none}.section-head h2{font-size:23px}.personal .section-head h2{font-size:22px}.personal-tabs button{font-size:13px;padding:12px 16px}.featured{flex-wrap:nowrap;padding:22px;gap:20px}.featured img{width:76px;height:76px}.featured h2{font-size:22px}.featured .primary{width:auto;white-space:nowrap;padding:12px 20px}.tool-links{grid-template-columns:repeat(3,minmax(0,1fr))}.tool-links a{flex-wrap:wrap}.bottom-nav{display:none}.back-top{bottom:24px}.toast{bottom:28px}footer{grid-template-columns:2fr 1fr 1fr;padding:35px 18px}.footer-brand{grid-column:auto}.footer-message{grid-column:1/-1}.app-card{padding:17px}dialog{max-width:540px;padding:28px}dialog .detail-icon{width:96px;height:96px}.detail-actions{display:flex}.detail-actions a{grid-column:auto}}
@media(min-width:1101px){header{flex-wrap:nowrap;padding:12px 22px;gap:12px}.brand b{font-size:28px}.brand small{font-size:11px;letter-spacing:2.3px}.logo{width:52px;height:52px}.search{order:0;flex-basis:auto;max-width:360px;flex:1;min-width:180px}.search input{font-size:13px}.search kbd{display:block}#menu{display:none}header>nav{display:flex;order:0;width:auto;flex-wrap:nowrap;margin-left:auto}header>nav a,header>nav button{padding:12px 8px;font-size:12px}#theme.theme-select{width:85px;max-width:85px}.hero-copy{padding:34px}.hero h1{font-size:clamp(40px,3.2vw,54px)}.hero h2{font-size:18px}.hero-art{height:350px}.grid{grid-template-columns:repeat(5,minmax(0,1fr))}.panel{scroll-margin-top:105px}.tool-links a{flex-wrap:nowrap}.apps-grid{grid-template-columns:repeat(4,minmax(0,1fr))}footer{grid-template-columns:2fr 1fr 1fr 1.5fr}.footer-message{grid-column:auto;text-align:right!important}html{scroll-padding-top:105px}}
@media(min-width:1400px){.grid{grid-template-columns:repeat(6,minmax(0,1fr))}header>nav a,header>nav button{padding:12px 11px;font-size:13px}.hero{grid-template-columns:1fr 1fr}}
