/* Phase 2 layer for the logged-in app: simplified home, steadier bottom bar, readable type,
   map view switch. Loaded after interface_studio.css so it can refine it. */

/* Large home actions */
.citizen-home .home-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 18px}
.citizen-home .home-action{display:flex;align-items:center;gap:14px;min-height:80px;padding:14px 18px;border:1px solid var(--line);border-radius:16px;background:var(--paper,#fff);color:var(--ink);font:inherit;font-weight:400;text-align:start;text-decoration:none;cursor:pointer;touch-action:manipulation}
.citizen-home .home-action svg{width:34px;height:34px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.citizen-home .home-action-copy{display:flex;flex-direction:column;gap:2px;min-width:0}
.citizen-home .home-action-copy strong{font-size:1.1rem;line-height:1.6}
.citizen-home .home-action-copy span{font-size:.85rem;line-height:1.7;color:var(--muted)}
.citizen-home .home-action-primary{background:#123f36;border-color:#123f36;color:#fff}
.citizen-home .home-action-primary .home-action-copy span{color:#e1eee6}
.citizen-home .home-action:focus-visible{outline:3px solid #b88a2e;outline-offset:3px}
@media(hover:hover) and (pointer:fine){.citizen-home .home-action:not(.home-action-primary):hover{border-color:var(--accent)}}
@media(max-width:900px){.citizen-home .home-actions{grid-template-columns:1fr;gap:10px}.citizen-home .home-action{min-height:72px}}

/* Calmer hero on phones: the map action above replaces the duplicate link and scene art */
@media(max-width:700px){
  .market-studio .market-editorial{min-height:0}
  .market-studio .market-editorial-scene,.market-studio .editorial-map-link,.market-studio .market-wayfinding{display:none}
  .market-studio .market-editorial-copy{padding:22px 20px}
  .market-studio .market-editorial h1{font-size:1.7rem;margin:8px 0}
  .market-studio .market-editorial-description{font-size:1rem}
}

/* Readable type: 16px body copy and form controls on phones (also stops iOS focus zoom) */
@media(max-width:700px){
  body.market-studio{font-size:16px}
  .market-studio .muted,.market-studio .small{font-size:.9rem}
}
@media(max-width:900px),(pointer:coarse){
  html body :is(input:not([type=checkbox],[type=radio],[type=file],[type=range]),select,textarea){font-size:max(16px,1rem)!important}
}

/* Bottom bar: solid, fixed, safe-area aware, never more than four controls */
@media(max-width:620px){
  .market-studio #application .service-directory{background:#fcfaf4;z-index:30;box-shadow:0 -4px 16px #16372a1f}
  .handheld-shortcuts button,.market-studio #directory-toggle{min-height:56px;font-size:.8rem;font-weight:600;color:#33503f}
  .handheld-shortcuts button[aria-current=page]{background:#d8e6d6;color:#123f36;box-shadow:inset 0 3px 0 #123f36}
}

/* 2D / 3D map switch */
.map-mode-bar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:8px 14px}
.map-mode-bar button{min-height:48px;padding:8px 18px}
.map-mode-bar p{margin:0;font-size:.9rem;color:var(--market-muted,var(--muted))}

/* Theme switch sits next to the profile button */
.site-header .theme-toggle{margin-inline-start:auto;flex-shrink:0}
@media(max-width:620px){.site-header{flex-wrap:wrap}}
