/* Muve — phone layer (11/20). Loaded last on every page (postbuild.py), so at equal specificity it wins over page css.
   Part 1: the phone menu sheet (.pm, markup from chrome.py drawer(), behaviour in mobile.js).
   Part 2: site-wide phone fixes (buttons, small labels, stacking, overflow). */

/* ---------- 1. phone menu sheet ---------- */
.drawer.pm { padding: 0; gap: 0; background: var(--paper); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.drawer.pm[open] { display: block; }
.pm [hidden] { display: none !important; }
.pm__in { min-height: 100%; display: flex; flex-direction: column; }
/* top: brand + close stay pinned while the list scrolls */
.pm__top { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px;
  padding: max(8px, env(safe-area-inset-top)) var(--px) 8px; background: color-mix(in srgb, var(--paper) 92%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 1px 0 rgba(11, 27, 51, .08); }
.pm__x { position: relative; width: 48px; height: 48px; border-radius: 14px; background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(11, 27, 51, .12); }
.pm__x i::before, .pm__x i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 1.75px; margin: -.875px 0 0 -9px; background: currentColor; border-radius: 2px; rotate: 45deg; }
.pm__x i::after { rotate: -45deg; }
.pm__x:active { background: var(--ink); color: var(--paper); }

/* search: the same dropdown as the top bar (assist.js wires every .tb__search), on a light field */
.pm .pm__search { position: relative; width: auto; margin: 14px var(--px) 6px; flex: none; }
.pm .pm__search input { width: 100%; height: 50px; padding: 0 16px 0 46px; border-radius: 14px; border: 0; background: var(--white); color: var(--ink);
  font: 400 1rem/1 var(--font); box-shadow: inset 0 0 0 1px rgba(11, 27, 51, .14); -webkit-appearance: none; appearance: none; }
.pm .pm__search input::placeholder { color: var(--ink-3); }
.pm .pm__search input:focus-visible { outline: none; background: #ffffff; box-shadow: inset 0 0 0 2px var(--blue-ink); }
.pm .pm__search .ic { left: 16px; width: 18px; height: 18px; color: var(--ink-3); }
.pm .pm__search .as-sx { left: 0; right: 0; width: auto; max-height: 60vh; background-image: radial-gradient(120% 60% at 0% 0%, color-mix(in srgb, var(--violet, #6a4cff) 7%, transparent), transparent 70%), radial-gradient(90% 50% at 100% 100%, color-mix(in srgb, var(--cyan, #1fb6d9) 6%, transparent), transparent 70%); }   /* 11/20 craft FLAT_FLOOD: the tall phone search panel gets the site's soft colour depth instead of a flat fill */

/* top rows: big, quiet, a hue cell and a chevron */
.pm__nav { padding: 6px var(--px) 8px; }
.pm__sec { border-bottom: 1px solid rgba(11, 27, 51, .1); }
.pm__row { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px; padding: 0 2px; text-align: left; background: none; border: 0; color: var(--ink);
  font: 300 1.625rem/1.1 var(--font); letter-spacing: -.03em; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pm__row > span { flex: 1; min-width: 0; }
.pm__cell { width: 12px; height: 12px; flex: none; background: var(--hue); transition: rotate var(--t-panel) var(--ease-out); }
.pm__row[aria-expanded="true"] { font-weight: 400; }
.pm__row[aria-expanded="true"] .pm__cell { rotate: 45deg; }
.pm__chev { position: relative; width: 36px; height: 36px; flex: none; border-radius: 50%; background: rgba(11, 27, 51, .05); transition: background-color var(--t-hover) var(--ease-out); }
.pm__chev::before { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -6px 0 0 -4px; border-right: 1.75px solid currentColor; border-bottom: 1.75px solid currentColor; rotate: 45deg; transition: rotate var(--t-panel) var(--ease-out), margin var(--t-panel) var(--ease-out); }
[aria-expanded="true"] > .pm__chev { background: var(--ink); color: var(--paper); }
[aria-expanded="true"] > .pm__chev::before { rotate: 225deg; margin-top: -2px; }
.pm__row:active, .pm__catbtn:active { background: rgba(11, 27, 51, .06); }
.pm__row:focus-visible, .pm__catbtn:focus-visible { outline: 2px solid var(--blue-ink); outline-offset: 2px; border-radius: 12px; }
.pm__panel { padding: 2px 0 18px; animation: pm-in 260ms var(--ease-out); }
@keyframes pm-in { from { opacity: 0; translate: 0 -6px; } }

/* What we do: six category cards, each opens to its overview + sub-services */
.pm__cats { display: grid; gap: 8px; }
.pm__cat { background: var(--white); border-radius: 16px; box-shadow: inset 0 0 0 1px rgba(11, 27, 51, .08), 0 1px 2px rgba(11, 27, 51, .05); overflow: hidden; }
.pm__catbtn { display: grid; grid-template-columns: 36px minmax(0, 1fr) 36px; align-items: center; gap: 14px; width: 100%; min-height: 64px; padding: 12px 12px 12px 14px;
  text-align: left; background: none; border: 0; color: var(--ink); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pm__t { display: grid; gap: 2px; min-width: 0; }
.pm__t b { font-size: 1.0625rem; font-weight: 500; letter-spacing: -.015em; line-height: 1.25; }
.pm__t > span { font-size: .875rem; line-height: 1.4; color: var(--ink-2); }
.pm__catbtn[aria-expanded="true"] { box-shadow: inset 0 -1px 0 rgba(11, 27, 51, .08); }
.pm__catbtn[aria-expanded="true"] .ic-tile { background: var(--hue-ink); color: #ffffff; box-shadow: none; }
.pm__kids { list-style: none; margin: 0; padding: 6px 12px 10px 64px; display: grid; animation: pm-in 220ms var(--ease-out);
  background: linear-gradient(var(--hue), var(--hue)) 31px 12px / 2px calc(100% - 24px) no-repeat; }
.pm__kids a { display: flex; align-items: center; min-height: 48px; font-size: 1rem; line-height: 1.3; color: var(--ink); text-decoration: none; border-radius: 10px; padding: 0 10px; margin-inline: -10px; }
.pm__kids .pm__hub a { gap: 8px; font-weight: 500; color: var(--hue-ink); }
.pm__kids a:active { background: var(--paper); }
.pm__kids a[aria-current] { font-weight: 500; color: var(--hue-ink); background: color-mix(in srgb, var(--hue) 10%, #ffffff); }
.pm__kids a:focus-visible { outline: 2px solid var(--hue-ink); outline-offset: -2px; }

/* other panels: icon rows like the desktop mega menu */
.pm__list { display: grid; gap: 2px; }
.pm__a { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; align-items: center; min-height: 64px; padding: 10px 12px; border-radius: 14px; color: var(--ink); text-decoration: none; }
.pm__a:active, .pm__a[aria-current] { background: var(--white); box-shadow: inset 0 0 0 1px rgba(11, 27, 51, .08); }
.pm__a:focus-visible { outline: 2px solid var(--blue-ink); outline-offset: -2px; }
.pm__label { margin: 8px 2px 10px; font: 500 .75rem/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.pm__list + .pm__label { margin-top: 18px; }
.pm__sites { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pm__site { display: grid; gap: 2px; align-content: start; padding: 6px 6px 10px; border-radius: 14px; background: var(--white); color: var(--ink); text-decoration: none; box-shadow: inset 0 0 0 1px rgba(11, 27, 51, .08); }
.pm__site img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 9px; background: var(--paper-2); margin-bottom: 6px; }
.pm__site b { padding: 0 4px; font-size: .9375rem; font-weight: 500; letter-spacing: -.01em; line-height: 1.25; }
.pm__site small { padding: 0 4px; font-size: .8125rem; line-height: 1.35; color: var(--ink-3); }
.pm__site:active, .pm__site[aria-current] { box-shadow: inset 0 0 0 2px var(--orange-ink); }
.pm__site:focus-visible { outline: 2px solid var(--blue-ink); outline-offset: 2px; }
.pm__more { display: grid; margin-top: 10px; }
.pm__more a { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 2px; font-size: 1rem; font-weight: 500; color: var(--blue-ink); text-decoration: none; }
.pm__more a:focus-visible { outline: 2px solid var(--blue-ink); outline-offset: 2px; border-radius: 8px; }

.pm__feat { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 4px 14px; align-items: start; margin: 18px var(--px) 0; padding: 16px; border-radius: 16px;
  background: var(--white); color: var(--ink); text-decoration: none; box-shadow: inset 0 0 0 1px rgba(11, 27, 51, .08), var(--sh-1); }
.pm__feat .ic-tile { grid-row: span 3; }
.pm__feat .mega__k { font-size: .75rem; }
.pm__feat b { font-size: 1.0625rem; font-weight: 500; letter-spacing: -.015em; line-height: 1.3; }
.pm__feat .mega__go { margin-top: 2px; }
.pm__feat:active { box-shadow: inset 0 0 0 2px var(--amber-ink); }
.pm__feat:focus-visible { outline: 2px solid var(--blue-ink); outline-offset: 2px; }
.pm__talk { margin: 18px var(--px) 22px; font-size: .9375rem; color: var(--ink-2); }
.pm__talk a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; color: var(--ink); white-space: nowrap; }
/* the two actions ride pinned to the bottom of the sheet */
.drawer.pm .pm__cta { position: sticky; bottom: 0; margin: auto 0 0; padding: 12px var(--px) max(14px, env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--paper) 94%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.drawer.pm .pm__cta .btn { gap: 8px; min-width: 0; padding-inline: 10px; }
.drawer.pm .pm__cta .ic { width: 18px; height: 18px; }
@media (max-width: 340px) { .drawer.pm .pm__cta { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .pm__panel, .pm__kids { animation: none; } .pm__cell, .pm__chev::before { transition: none; } }
.pm__kids li:not(.pm__hub):not(:has(a)) { display: flex; align-items: center; min-height: 48px; font-size: 1rem; color: var(--ink-3); }

/* ---------- 2. site-wide phone fixes (11/20 mobile check) ---------- */

/* 2a. Links and controls that were set in mono capitals ("VISIT RICHARDSON-BUILDERS.COM", "PLAY IT AGAIN", "ADD TO MY LIST")
   read like code and wrapped badly on a phone. They take the button style: the UI font, as written, at a readable size.
   Mono capitals stay for small eyebrow labels only. (Found by a computed-style scan of all pages, 11/20.) */
:is(.dom, .live__dom, .cs__dom, .cf__dom, .pc__dom, .ta-pc__dom, .br-case__live, .stmt__proof a, .plate__pick, .sv-pause, .ubtn,
    [class$="__again"], .label > a.link, .dx__ok, .dx__hold, .qb__ok, .deck__ok, .job__ok, .rq__ok, .rq__re, .alert__btn, .cal__go,
    .sync__reset, .wk__go, .wk__btn, .dn__play, .rmap__all, .sfw__tab) {
  font-family: var(--font); text-transform: none; letter-spacing: -.005em; font-weight: 500; }
:is(.dom, .live__dom, .cs__dom, .cf__dom, .pc__dom, .ta-pc__dom, .br-case__live, .stmt__proof a, .plate__pick, .label > a.link) { font-size: .9375rem; }
:is(.sv-pause, .ubtn, [class$="__again"], .dx__ok, .dx__hold, .qb__ok, .deck__ok, .job__ok, .rq__ok, .rq__re, .alert__btn, .cal__go, .sync__reset, .wk__go, .wk__btn, .dn__play, .rmap__all, .sfw__tab) { font-size: .875rem; }
.label > a.link { letter-spacing: 0; }

@media (max-width: 760px) {
  /* 2b. "Read the story →" links: when the words wrap, the arrow rode alone at the far right. It now follows the last word. */
  /* now handled at every width in fx.css (.next: arrow follows the last word, never alone) */

  /* 2c. hero ribbon: on a phone the copy and the buttons stack where the ribbon falls, so it crossed button labels and
     line ends. The ribbon now fades in only below the top half of the hero (behind the picture, not the words), and
     outline buttons sit on a solid fill.
     X 11/20: this mask is now only the fallback (no JS, or a hero without [data-hero-art]). Where fx.js can find the art it
     makes the ribbon a full-strength band behind the art instead (.mesh.is-band in fx.css, which outranks this rule). */
  .phero > .mesh:not(.mesh--glow) { -webkit-mask-image: linear-gradient(to bottom, transparent 0, transparent 50%, #000 82%); mask-image: linear-gradient(to bottom, transparent 0, transparent 50%, #000 82%); }
  .phero .btn--line { --b-bg: var(--white); }

  /* 2d. the closing band's bar mark was ~0.8 of a screen on its own */
  .foot .close__side .cellbars { width: 132px; height: auto; }
  .foot .close__side .cellbars--mark { width: 64px; }
  .foot .close__side { justify-items: start; }

  /* 2e. footer: four link lists ran ~2 screens; on a phone each group folds (mobile.js adds the toggles) */
  .foot__cols { grid-template-columns: minmax(0, 1fr); gap: 0; padding-block: 12px 28px; }
  .foot__col.is-acc h2 { margin: 0; }
  .foot__acc { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 56px; padding: 0; background: none; border: 0;
    border-bottom: 1px solid rgba(246, 243, 234, .14); color: var(--paper); font: 500 .8125rem/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; text-align: left; cursor: pointer; }
  .foot__acc::after { content: ""; width: 8px; height: 8px; margin: -4px 4px 0 0; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; rotate: 45deg; transition: rotate var(--t-panel) var(--ease-out), margin var(--t-panel) var(--ease-out); }
  .foot__acc[aria-expanded="true"]::after { rotate: 225deg; margin-top: 4px; }
  .foot__acc:focus-visible { outline: 2px solid var(--paper); outline-offset: 2px; }
  .foot__col.is-acc ul { padding: 6px 0 14px; }
  .foot__col.is-acc ul[hidden] { display: none; }

  /* 2f. sideways scrollers (chip rows, tab strips) cut off at the screen edge with no sign they move: they fade at the edge
     that has more (mobile.js marks them .is-sx and tracks the scroll position) */
  .is-sx:not(.sx-end) { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent); }
  .is-sx.sx-mid { -webkit-mask-image: linear-gradient(90deg, transparent, #000 32px, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(90deg, transparent, #000 32px, #000 calc(100% - 44px), transparent); }
  .is-sx.sx-end.sx-mid { -webkit-mask-image: linear-gradient(90deg, transparent, #000 32px); mask-image: linear-gradient(90deg, transparent, #000 32px); }

  /* 2g. card rails: sets of big cards that stacked into screens of scrolling become one swipeable row (86% wide so the next
     card shows), each card snapping into place. Pages: home (what we do, how it works), about, ai, ai-work, clients, giving, marketing, what-we-do,
     plans, products, social. The cards themselves are unchanged; the decorative .mesh layer stays behind. */
  :is(.m-rail, .bn-sec .bn, .how .how__list, .ab-prom__grid, .aio__grid, ul.plates, .cl-grid, .gv-grid, .bento, .prm, .four, .se-bento) { display: flex !important; flex-wrap: nowrap !important; align-items: flex-start; grid-template-columns: none; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--px);
    margin-inline: calc(var(--px) * -1); padding: 6px var(--px) 18px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  :is(.m-rail, .bn-sec .bn, .how .how__list, .ab-prom__grid, .aio__grid, ul.plates, .cl-grid, .gv-grid, .bento, .prm, .four, .se-bento)::-webkit-scrollbar { display: none; }
  :is(.m-rail, .bn-sec .bn, .how .how__list, .ab-prom__grid, .aio__grid, ul.plates, .cl-grid, .gv-grid, .bento, .prm, .four, .se-bento) > :not(.mesh) { flex: 0 0 min(86%, 360px); min-width: 0; scroll-snap-align: start; margin: 0 !important; }
  :is(.m-rail, .bn-sec .bn, .how .how__list, .ab-prom__grid, .aio__grid, ul.plates, .cl-grid, .gv-grid, .bento, .prm, .four, .se-bento) .reveal { opacity: 1; translate: none; }
  .rail-dots { display: flex; justify-content: center; gap: 8px; margin-top: 2px; }
  .rail-dots i { width: 8px; height: 8px; background: rgba(11, 27, 51, .2); transition: background-color var(--t-hover) var(--ease-out), width var(--t-hover) var(--ease-out); }
  .rail-dots i.is-on { width: 22px; background: var(--hue-ink, var(--ink)); }
  :where(.skew--navy, .band-navy, .how) .rail-dots i { background: rgba(255, 255, 255, .35); }
  :where(.skew--navy, .band-navy, .how) .rail-dots i.is-on { background: #ffffff; }
}
@media (max-width: 760px) {
  /* the how-it-works progress line belonged to the four-across desktop row */
  .how .how__line { display: none; }
  .how .how__list { padding-top: 26px; }
  /* home, one week: the sticky demo's cover strip sat over the headline's last line */
  .wk-sec .sec-head { margin-bottom: 24px; }
  /* home, tools orbit: at phone size the named chips collided as the ring turned (Mailchimp over Google Calendar); the names
     are listed in the paragraph above, so the ring shows each tool's logo only */
  .orb__tile b { font-size: 0; gap: 0; padding: 8px; border-radius: 10px; }
  .orb__tile i { width: 22px; height: 22px; }
}
@media (max-width: 480px) {
  /* mobile-apps hero: the office card was squeezed beside the phone until its labels cut off ("Elm Court …", "THE OF…");
     on a phone-sized screen the office card sits under the phone */
  .sv-hero .duo { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .sv-hero .duo > :first-child { width: min(62%, 240px); }
  .sv-hero .duo__desk { margin: 14px 0 0; width: 100%; }
  .sv-hero .duo__body { padding: 12px 14px; }
}
/* 2h. type floor on phones (--text-xs, 12px): demo labels on the newer pages were set at 9–11px (scan of every page at
   390, 11/20). Labels sit on the 12px rung; nothing is shrunk, these only grow. Applies at every width (the gate checks 1280 too). */
@media (min-width: 1px) {
  .agr__tool, .bh__tag, .sh__cap, .agl__st, .bw__day > small, .pick__n, .ags__tick, .cal__dow > span, .cal__key, .doc__l, .kbd__label, .mtr__to, .ready__k,
  .rh__place, .swatch__k, .tally__w > small, .shot__out > figcaption, .shot__src > figcaption, .desk__st, .ready__sk, .agj__lane > span,
  .kbd__cite, .kbs__t > b, .mdr__badge, .mtc__h > span, .mtc__sp, .mtf__mock > span, .vault__k, .vault__lk > span, .vault__roof > span,
  .vnode > span, .wk__rain, .ib__steps > i, .jar__label, .pbb__days > b, .plate__art > b, .rh__tag > span, .ib__lanes > li, .tray__you > span,
  main[data-page="muve-reviews"] dt, main[data-page="muve-stays"] dt, main[data-page="ai-documents"] dt, main[data-page="ai-documents"] li > span,
  main[data-page="ai-meetings"] li > b, main[data-page="ai-inbox"] li > em, main[data-page="ai-quotes"] li > small, main[data-page="what-we-do"] p > em {
    font-size: max(.75rem, 1em) !important; }
}
.pm__site .shot { border-radius: 9px; margin-bottom: 6px; box-shadow: none; }

/* muve-front-office hero demo (P0, 11/20 audit): under 560px the stops list and the call card stack in one column inside
   the gutter, and the card keeps its height while the demo steps so the page below does not jump */
@media (max-width: 560px) {
  .rail__body { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 12px 14px 14px; }
  .rail__card { min-height: 260px; translate: none; }
  .rail__line { display: none; }
  .rail__stops { grid-auto-rows: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .rail__stop { min-height: 52px; padding: 6px 8px; border-radius: 10px; background: var(--paper); }
}

/* S1 (11/20 audit): on a phone the top bar + nav took 104px of every screen. The navy bar tucks away while you scroll down
   and comes back the moment you scroll up (mobile.js sets html.tb-up); the white nav with the menu stays. */
@media (max-width: 760px) {
  .tb { transition: translate 240ms var(--ease-out); }
  .nav { transition: top 240ms var(--ease-out), background-color var(--t-hover) var(--ease-out), box-shadow var(--t-hover) var(--ease-out); }
  html.tb-up .tb { translate: 0 -100%; }
  html.tb-up .nav { top: 0; }
}
@media (max-width: 760px) and (prefers-reduced-motion: reduce) { .tb, .nav { transition: none; } }

/* S9: the top bar's claim button is a full 44px target; the Start page confirms the offer you clicked */
@media (pointer: coarse) { .tb .tb__cta { min-height: 44px; } }
.offer-note { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 10px 14px; border-radius: 12px; background: color-mix(in srgb, var(--green) 14%, #ffffff); color: var(--ink); font-size: .9375rem; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--green-ink) 30%, transparent); }
.offer-note i { width: 10px; height: 10px; flex: none; background: var(--green-ink); }

/* case pages (all eight, 11/20 audit): on a phone the device trio pinned for ~2.5 screens of nearly the same picture. Under
   760px it is shown once, and the three captures glide down the page on a slow timer instead of the scroll. */
@media (max-width: 760px) {
  .trio { height: auto; }
  .trio__stage, .cs--page .trio__stage { position: static; height: auto; padding-block: 44px 48px; }
  .trio__rail { display: none; }
  .trio .dev__view img { animation: trio-glide 22s ease-in-out infinite alternate; }
}
@keyframes trio-glide { from { object-position: 50% 0%; } to { object-position: 50% 100%; } }
@media (prefers-reduced-motion: reduce) { .trio .dev__view img { animation: none; } }
/* work-thg: the meta row was narrower and indented unlike the other case pages */
.cs--page .cs__meta { width: 100%; margin-inline: 0; }

/* work-rentals hero (11/20 audit): at phone size the hanging tags covered the phones and the two place labels ran into each
   other. The tags repeat what the copy says (six bedrooms, minutes to WEC), so they step out; each place label keeps to
   its own half. Work page: the filter chips wrap instead of running off the edge. */
@media (max-width: 560px) {
  .rh__tag { display: none; }
  .rh__place { max-width: calc(100% - 20px); white-space: normal; font-family: var(--font); text-transform: none; letter-spacing: 0; line-height: 1.25; }
  .idx-bar__group { flex-wrap: wrap; overflow: visible; }
  .idx-bar__group.is-sx { -webkit-mask-image: none; mask-image: none; }
}
/* hero buttons: one rule on phones (some pages made them full width, others not) */
@media (max-width: 480px) {
  .phero__cta { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .phero__cta .btn { width: 100%; justify-content: center; white-space: normal; text-align: center; min-height: 48px; padding-block: 12px; line-height: 1.3; border-radius: var(--r-pill); }
}

/* touch targets under 44px (11/20 audit): the inbox switch keeps its look but gains a transparent 6px border (44 x 68 to
   tap); calendar days, sync cells and source highlights reach 44px tall on touch screens */
@media (pointer: coarse) {
  .rl__sw { box-sizing: content-box; border: 6px solid transparent; background-clip: padding-box; margin: -6px; }
  .cal__d { aspect-ratio: auto; min-height: 44px; }
  .sync__c, .src__hl { aspect-ratio: auto; min-height: 44px; }
}
.foot__reach { display: none; }
@media (max-width: 760px) {
  .foot__reach { display: flex; flex-wrap: wrap; gap: 4px 20px; padding: 6px 0 10px; }
  .foot__reach a { display: inline-flex; align-items: center; min-height: 44px; color: var(--paper); font-size: 1.0625rem; font-weight: 400; text-decoration: underline; text-decoration-color: rgba(246, 243, 234, .4); text-underline-offset: 4px; }
}

/* back to top (mobile.js): a 44px round button left of the Ask Muve button */
.to-top { position: fixed; z-index: 74; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--white); color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(11, 27, 51, .16), 0 8px 20px -8px rgba(11, 27, 51, .4); animation: pm-in 200ms var(--ease-out); }
.to-top[hidden] { display: none; }
.to-top:active { background: var(--ink); color: var(--paper); }
.to-top:focus-visible { outline: 2px solid var(--blue-ink); outline-offset: 2px; }
@media (min-width: 761px) { .to-top { display: none !important; } }

/* One breadcrumb (11/20 mobile audit, every width): pages had drawn it four ways (plain, white pill, two-line pill, and a
   phone rule that hid "What we do"). It is one quiet line of text now: every crumb shown, wrapping like a sentence,
   links underlined. On touch screens the links get a 44px target from vertical padding, which doesn't move the line. */
main nav.crumb[aria-label="Breadcrumb"] { display: block !important; padding-bottom: 0 !important; text-align: left !important;
  background: none !important; box-shadow: none !important; border-radius: 0 !important; white-space: normal !important; overflow: visible !important;
  font: 400 .875rem/1.5 var(--font) !important; letter-spacing: 0 !important; text-transform: none !important; color: var(--ink-2) !important; }
main nav.crumb[aria-label="Breadcrumb"]:not(.wrap) { width: auto !important; max-width: 100% !important; padding-inline: 0 !important; }
main nav.crumb[aria-label="Breadcrumb"] .crumb__in { display: inline-block !important; max-width: calc(100% + 20px) !important; margin: 0 -10px !important; padding: 2px 10px !important; border-radius: 8px;
  background: color-mix(in srgb, var(--paper) 94%, transparent); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
main nav.crumb[aria-label="Breadcrumb"] :is(a, span):not(.crumb__in) { display: inline !important; min-height: 0 !important; min-width: 0 !important; margin: 0 !important; padding: 0 !important; white-space: normal !important;
  font: inherit !important; letter-spacing: inherit !important; text-transform: none !important; }
main nav.crumb[aria-label="Breadcrumb"] a { color: var(--ink-2) !important; text-decoration: underline !important; text-decoration-color: color-mix(in srgb, var(--ink-2) 45%, transparent) !important; text-underline-offset: 3px; }
main nav.crumb[aria-label="Breadcrumb"] a:hover { color: var(--ink) !important; text-decoration-color: currentColor !important; }
main nav.crumb[aria-label="Breadcrumb"] a:focus-visible { outline: 2px solid var(--blue-ink); outline-offset: 2px; border-radius: 3px; }
main nav.crumb[aria-label="Breadcrumb"] [aria-current="page"] { color: var(--ink) !important; }
@media (pointer: coarse) { main nav.crumb[aria-label="Breadcrumb"] a { padding-block: 13px !important; } }

/* drifting rows on phones (11/20, "I never want things cut off"): a ticker always has a chip half off the screen edge
   ("Building permi…"). Under 760px every [data-marquee] row stands still and wraps, like the reduced-motion version, and
   the doubled copy fx.js adds for the loop steps out. */
@media (max-width: 760px) {
  [data-marquee] { flex-wrap: wrap; -webkit-mask-image: none !important; mask-image: none !important; overflow: visible; }
  [data-marquee] > * { animation: none !important; flex: 1 1 100%; flex-wrap: wrap; min-width: 0; max-width: 100%; justify-content: flex-start; gap: 8px; }
  [data-marquee] > * > * { max-width: 100%; white-space: normal; }
  [data-marquee] > [aria-hidden="true"] { display: none !important; }
}

/* line icons: the stroke settings postbuild.py strips from every svg.ic, here too, for the Work page (which doesn't load site.css) */
:where(svg.ic) { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
