/* Stage 1 fixes (r14) */
/* Mobile header: MENU label instead of two lines */
.s .menu{width:auto;min-width:64px;padding:0 4px 0 10px;flex-direction:row}
.s .menu span{display:none}
.s .menu::before{content:"MENU";font:600 13px/1 Archivo,sans-serif;letter-spacing:.16em;color:#fff}
.s .menu[aria-expanded="true"]::before{content:"CLOSE"}

/* Down payment chart: label above the bar on phones */
@media(max-width:700px){
  .dbar .r,.s .dbar .r{grid-template-columns:minmax(0,1fr) 104px;grid-template-areas:"n n" "t v";row-gap:8px;column-gap:14px}
  .dbar .r b,.s .dbar .r b{grid-area:n}
  .dbar .r .tr{grid-area:t}
  .dbar .r .v{grid-area:v}
  .dbar .ax,.s .dbar .ax{grid-template-columns:minmax(0,1fr) 104px;column-gap:14px}
  .dbar .ax span:first-child{display:none}
}

/* Commercial calculator: schedule scrolls inside its own box instead of widening the page */
.calc-grid>*{min-width:0}
.amort-wrap{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}

/* Mobile map: police & fire toolbar sits below the area controls */
body.safety-mode .map-wrap .safety-toolbar{margin-top:var(--r14-tl,64px)}
/* Mobile map: area card buttons no longer cover the caption */
@media(max-width:700px){html.mx #area-card .card-actions{position:static;top:auto;right:auto;align-self:end}}
