/* City of Zero PWA v206 — compact, mobile-first visual finishing.
   Pure CSS. Preserve live snapshot content, purchase buttons, prices and all navigation. */

/* A short, clear opening instead of a full-screen welcome card. */
#app.home-mode .home-dashboard{gap:11px}
#app.home-mode .home-masthead{gap:10px;padding:16px;min-height:0}
#app.home-mode .home-masthead-top{margin:0;min-width:0}
#app.home-mode .home-masthead-top h2{margin:2px 0;font-size:clamp(23px,3vw,32px);line-height:1.2}
#app.home-mode .home-masthead-top p{line-height:1.35}
#app.home-mode .home-masthead .home-focus{gap:4px;padding:13px 15px;min-height:0;justify-content:center}
#app.home-mode .home-masthead .home-focus-eyebrow{font-size:10px}
#app.home-mode .home-masthead .home-focus h3{font-size:clamp(18px,2.1vw,23px);margin:2px 0 1px;line-height:1.25}
#app.home-mode .home-masthead .home-focus p{line-height:1.45;font-size:11px}
#app.home-mode .home-masthead .home-focus-cta{margin-top:5px}
#app.home-mode .home-masthead .home-focus-cta button{min-height:44px}
#app.home-mode .home-masthead .home-facts{gap:7px;margin:0;min-width:0}
#app.home-mode .home-masthead .home-facts>div{min-width:0;gap:2px;padding:9px 10px}
#app.home-mode .home-masthead .home-facts small{font-size:10px}
#app.home-mode .home-masthead .home-facts strong{font-size:clamp(16px,2vw,21px);line-height:1.25}
#app.home-mode .home-masthead .home-facts span{font-size:10px;line-height:1.35}

/* The three city entrances remain image-led but do not swallow a viewport. */
#app.home-mode .city-walk{gap:8px}
#app.home-mode .city-walk-title h2{font-size:21px;margin:1px 0}
#app.home-mode .city-walk-title p{font-size:11px;line-height:1.4}
#app.home-mode .city-walk-grid{gap:9px}
#app.home-mode .city-walk-place{min-height:144px;max-height:180px;padding:11px;border-radius:15px}
#app.home-mode .city-walk-place img{object-fit:cover;object-position:center 45%}
#app.home-mode .city-walk-place span{gap:1px}
#app.home-mode .city-walk-place strong{font-size:18px;line-height:1.25}
#app.home-mode .city-walk-place small{font-size:10px;line-height:1.4}

/* Home newspaper teaser: three short stories, not three large purchase cards. */
#app .city-pulse-home{gap:9px;padding:14px;border-radius:17px}
#app .city-pulse-home .city-pulse-head{padding-bottom:8px;gap:9px}
#app .city-pulse-home .city-pulse-head h2{font-size:27px}
#app .city-pulse-home .city-pulse-head p{font-size:11px;line-height:1.4}
#app .city-pulse-home .city-pulse-items{gap:8px}
#app .city-pulse-home .city-pulse-item{min-width:0;border-radius:10px}
#app .city-pulse-home .city-pulse-item-media{height:92px;min-height:0;background-position:center}
#app .city-pulse-home .city-pulse-copy{padding:9px;gap:2px}
#app .city-pulse-home .city-pulse-tags{font-size:10px;flex-wrap:wrap}
#app .city-pulse-home .city-pulse-item h3{font-size:14px;margin:2px 0 0;line-height:1.3}
#app .city-pulse-home .city-pulse-item p{font-size:11px;line-height:1.35;margin:2px 0 5px}
#app .city-pulse-home .city-pulse-action{min-height:44px;width:auto;max-width:100%;padding:8px 10px;font-size:11px;justify-self:start}
#app .city-pulse-home .city-pulse-disclaimer{font-size:10px;margin:0}

/* Newspaper: still a newspaper, with one modest front-page image and dense column briefs. */
#app .city-pulse-page{gap:10px;padding:clamp(12px,1.8vw,19px)}
#app .city-pulse-page .city-pulse-intro{padding-bottom:8px}
#app .city-pulse-page .city-pulse-mast{padding:5px 0}
#app .city-pulse-page .city-pulse-mast h2{font-size:clamp(27px,4vw,42px)}
#app .city-pulse-page .city-pulse-strap{padding-top:6px}
#app .city-pulse-page .city-pulse-lead{padding-bottom:10px}
#app .city-pulse-page .city-pulse-lead-label{margin-bottom:5px}
#app .city-pulse-page .city-pulse-lead .city-pulse-item{gap:12px;align-items:center}
#app .city-pulse-page .city-pulse-lead .city-pulse-item-media{height:154px}
#app .city-pulse-page .city-pulse-lead .city-pulse-copy{gap:4px}
#app .city-pulse-page .city-pulse-lead h3{font-size:clamp(19px,2.6vw,24px);line-height:1.3}
#app .city-pulse-page .city-pulse-lead p{font-size:12px;line-height:1.45}
#app .city-pulse-page .city-pulse-columns{gap:11px}
#app .city-pulse-page .city-pulse-group{gap:5px}
#app .city-pulse-page .city-pulse-group-head{padding:5px 0}
#app .city-pulse-page .city-pulse-group-head h2{font-size:18px}
#app .city-pulse-page .city-pulse-item{gap:7px;padding-bottom:8px}
#app .city-pulse-page .city-pulse-item-media{height:68px}
#app .city-pulse-page .city-pulse-item h3{line-height:1.35}
#app .city-pulse-page .city-pulse-item p{line-height:1.45;margin:0 0 4px}
#app .city-pulse-page .city-pulse-action{min-height:44px}
#app .city-pulse-page .city-pulse-no-image{padding:6px 0 8px}
#app .city-pulse-page .city-pulse-no-image .city-pulse-copy{gap:1px 8px}
#app .city-pulse-page .city-pulse-no-image .city-pulse-action{min-height:44px}
#app .city-pulse-page .city-pulse-more>summary{min-height:44px}
#app .city-pulse-page .city-pulse-disclaimer{font-size:10px;line-height:1.55}

/* Market: shorter banners, metrics, product cards and exchange quote tiles.
   Every real price, seller and purchase action stays visible/clickable. */
#app.market-mode .market-shopping-tabs{margin-bottom:9px;gap:5px}
#app.market-mode .market-shopping-tabs button{min-height:48px;padding:5px 7px}
#app.market-mode .market-shopping-tabs button strong{font-size:14px}
#app.market-mode .market-shopping-tabs button small{margin-top:0;font-size:10px}
#app.market-mode .storefront-masthead{padding:13px 14px 15px;gap:10px;border-radius:17px}
#app.market-mode .storefront-masthead h2{font-size:clamp(21px,4vw,26px);margin:2px 0}
#app.market-mode .storefront-masthead p{font-size:11px;line-height:1.45}
#app.market-mode .storefront-deco{width:49px;min-width:49px;height:49px;border-radius:14px}
#app.market-mode .storefront-deco span{font-size:27px}
#app.market-mode .storefront-overview{gap:6px;margin:8px 0 9px}
#app.market-mode .storefront-overview>div,
#app.market-mode .storefront-bag-link{min-height:57px;padding:6px}
#app.market-mode .storefront-overview>div strong{font-size:20px}
#app.market-mode .storefront-overview span{font-size:10px}
#app.market-mode .storefront-guide{margin:2px 0 9px;font-size:10px}
#app.market-mode .storefront-product{margin-bottom:9px;border-radius:15px}
#app.market-mode .storefront-product-head{gap:9px;padding:10px}
#app.market-mode .market-product-glyph{width:43px;height:43px;min-width:43px;border-radius:12px}
#app.market-mode .market-product-glyph svg{width:23px;height:23px}
#app.market-mode .storefront-product-head h3{font-size:15px}
#app.market-mode .storefront-from{min-width:57px;padding-right:7px}
#app.market-mode .storefront-from strong{font-size:22px}
#app.market-mode .storefront-benefit{padding:8px 11px 6px}
#app.market-mode .storefront-benefit p{margin:0;font-size:11px;line-height:1.5}
#app.market-mode .storefront-benefit-details>summary{min-height:44px;display:flex;align-items:center}
#app.market-mode .storefront-sellers-label{margin:0 11px;padding:5px 0}
#app.market-mode .storefront-sellers{margin:0 7px 7px}
#app.market-mode .storefront-seller{padding:7px 9px;gap:7px}
#app.market-mode .storefront-seller .button{min-height:44px}
#app.market-mode .storefront-more-sellers>summary{min-height:44px;display:flex;align-items:center;justify-content:center}
#app.market-mode .storefront-footer{padding:10px 12px}
#app.market-mode .storefront-footer p{line-height:1.5}
#app.market-mode .exchange-masthead{min-height:0;padding:12px 13px}
#app.market-mode .exchange-masthead-row{min-height:0;margin-top:6px}
#app.market-mode .exchange-masthead-row h2{font-size:22px}
#app.market-mode .exchange-masthead-row p{font-size:11px}
#app.market-mode .exchange-emblem{width:51px;min-width:51px;height:52px}
#app.market-mode .exchange-emblem span{font-size:27px}
#app.market-mode .exchange-emblem small{font-size:7px}
#app.market-mode .exchange-timestamp{margin-top:8px;padding-top:6px}
#app.market-mode .exchange-metrics{padding:7px;gap:5px}
#app.market-mode .exchange-metrics>div{min-height:60px;padding:7px}
#app.market-mode .exchange-metrics>div strong{font-size:20px}
#app.market-mode .exchange-tape-label{padding:9px 11px 4px}
#app.market-mode .exchange-ticker{padding:5px 10px 8px}
#app.market-mode .exchange-ticker-tile{flex-basis:110px;padding:7px 9px}
#app.market-mode .exchange-ticker-tile strong{font-size:21px}
#app.market-mode .exchange-orderbook{margin:0 9px 10px}
#app.market-mode .exchange-orderbook>summary{min-height:46px;padding:8px 10px}
#app.market-mode .exchange-footer{margin:0 9px 10px;padding:9px 11px}
#app.market-mode .exchange-footer p{line-height:1.5}

/* Mobile and narrow-browser first: compact summaries and readable horizontal news. */
@media (min-width:601px) and (max-width:849px){
 #app.home-mode .home-masthead{
  grid-template-areas:"intro stats" "action action";
  grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);
  grid-template-rows:auto auto;gap:9px 12px;padding:13px
 }
 #app.home-mode .home-masthead .home-facts{grid-template-columns:repeat(2,minmax(0,1fr));align-self:center}
 #app.home-mode .home-masthead .home-facts>div{padding:7px;gap:1px}
 #app.home-mode .home-masthead .home-facts strong{font-size:17px}
 #app.home-mode .home-masthead .home-focus{padding:11px 13px}
 #app.home-mode .home-masthead .home-focus-cta button{min-height:44px}
 #app.home-mode .city-walk-place{min-height:126px}
 #app .city-pulse-home .city-pulse-items{grid-template-columns:1fr}
 #app .city-pulse-home .city-pulse-item,
 #app .city-pulse-home .city-pulse-item:first-child{grid-column:auto;grid-template-columns:112px minmax(0,1fr);display:grid}
 #app .city-pulse-home .city-pulse-item-media{height:100%;min-height:90px}
 #app .city-pulse-home .city-pulse-copy{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center}
 #app .city-pulse-home .city-pulse-tags,
 #app .city-pulse-home .city-pulse-item h3,
 #app .city-pulse-home .city-pulse-item p{grid-column:1;min-width:0}
 #app .city-pulse-home .city-pulse-action{grid-column:2;grid-row:1 / span 3;align-self:center}
 #app .city-pulse-page .city-pulse-lead .city-pulse-item{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
 #app .city-pulse-page .city-pulse-lead .city-pulse-item-media{height:152px}
 #app .city-pulse-page .city-pulse-columns{grid-template-columns:1fr}
}
@media (max-width:600px){
 #app.home-mode .home-masthead{
  grid-template-areas:"intro" "action" "stats";
  grid-template-columns:minmax(0,1fr);gap:8px;min-height:0;padding:11px
 }
 #app.home-mode .home-masthead-top h2{font-size:clamp(22px,6vw,26px)}
 #app.home-mode .home-masthead .home-focus{padding:10px 12px}
 #app.home-mode .home-masthead .home-focus h3{font-size:18px}
 #app.home-mode .home-masthead .home-facts{grid-template-columns:repeat(2,minmax(0,1fr))}
 #app.home-mode .home-masthead .home-facts>div{padding:7px}
 #app.home-mode .home-masthead .home-facts strong{font-size:16px}
 #app.home-mode .city-walk-place{min-height:115px;padding:10px}
 #app.home-mode .city-walk-work{min-height:135px}
 #app .city-pulse-home .city-pulse-items{grid-template-columns:1fr}
 #app .city-pulse-home .city-pulse-item{display:grid;grid-template-columns:90px minmax(0,1fr)}
 #app .city-pulse-home .city-pulse-item-media{height:100%;min-height:112px}
 #app .city-pulse-home .city-pulse-copy{display:flex;flex-direction:column;align-items:stretch;gap:2px}
 #app .city-pulse-home .city-pulse-item p{margin:0 0 3px}
 #app .city-pulse-home .city-pulse-action{align-self:flex-start;margin-top:2px}
 #app .city-pulse-page .city-pulse-lead .city-pulse-item{grid-template-columns:1fr}
 #app .city-pulse-page .city-pulse-lead .city-pulse-item-media{height:120px}
 #app .city-pulse-page .city-pulse-lead .city-pulse-copy{gap:3px}
 #app .city-pulse-page .city-pulse-lead .city-pulse-action{width:auto;max-width:100%;margin:2px 0 0}
 #app .city-pulse-page .city-pulse-mast h2{font-size:29px}
 #app .city-pulse-page .city-pulse-columns{grid-template-columns:1fr}
 #app.market-mode .exchange-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}
 #app.market-mode .exchange-metrics>div:last-child:nth-child(3){grid-column:auto}
}
@media (max-width:380px){
 #app.home-mode .city-walk-grid{gap:6px}
 #app.home-mode .city-walk-place{min-height:110px}
 #app.home-mode .city-walk-work{min-height:130px}
 #app .city-pulse-home .city-pulse-item{grid-template-columns:76px minmax(0,1fr)}
 #app .city-pulse-page .city-pulse-no-image .city-pulse-copy{grid-template-columns:minmax(0,1fr) 87px}
 #app .city-pulse-page .city-pulse-no-image .city-pulse-action{width:87px;max-width:87px}
 #app.market-mode .exchange-metrics>div{padding:5px 3px}
 #app.market-mode .exchange-metrics>div strong{font-size:17px}
}
/* Support controls can still be tapped, but stop visually dominating the reading area. */
@media (max-width:849px){
 #app .help-floating,.quick-report-float{
  width:44px;height:44px;min-width:44px;min-height:44px;
  bottom:calc(99px + env(safe-area-inset-bottom,0px));
  opacity:.72;box-shadow:0 4px 12px #0007
 }
 #app .help-floating{right:max(2px,env(safe-area-inset-right,0px))}
 .quick-report-float{left:max(2px,env(safe-area-inset-left,0px))}
 #app .help-floating:is(:hover,:focus-visible,:active),
 .quick-report-float:is(:hover,:focus-visible,:active){opacity:1}
 #app.screen:not(.auth-mode)>.content{
  padding-bottom:calc(145px + env(safe-area-inset-bottom,0px));
  scroll-padding-bottom:calc(145px + env(safe-area-inset-bottom,0px))
 }
}
@media (prefers-reduced-motion:reduce){
 #app.home-mode .city-walk-place img{transition:none}
}
