/* ============================================================
   Rokin — MOBILE APP LAYOUT
   Linked after mobile.css, so it wins where the two overlap.

   This is deliberately NOT "the desktop site, narrower". The phone
   design is an app: a fixed bottom tab bar, a stripped header, a
   card-first marketplace, and per-screen layouts that differ from
   their desktop counterparts. mobile.css remains what it always was
   — defensive responsive overrides that stop things overflowing.
   This file is the design.

   Breakpoint is 760px, not the 840px of mobile.css. A bottom tab bar
   on an 800px tablet reads as a mistake; 760 keeps it to phones and
   small tablets in portrait, and leaves mobile.css's 840 tier doing
   its existing reflow job in between.

   The bar is injected by js/mobile-app.js. Page-specific rules key off
   body[data-page="…"], which that script sets.

   RULE INHERITED FROM mobile.css: nothing may make the page wider than
   the viewport.
   ============================================================ */

/* Everything js/mobile-app.js injects is hidden by default and only shown
   inside the phone breakpoint below. These four rules are the ONLY thing
   standing between the desktop site and a stray bell, Filters button and
   back link appearing on it — putting them inside the media query (which is
   where they started) leaves desktop with no rule at all, so the browser
   default wins and the controls render. */
.mnav,
.mbell,
.mfilter-toggle,
.mseller-back,
.mlot-head,
.mloc-pin,
.mloc-sheet { display: none; }

@media (max-width: 760px) {

  /* ── 1. Header ───────────────────────────────────────────────
     The mock header is a single white bar: Rokin lockup left, bell
     right. No link row, no "List a Bull" CTA — those destinations
     live in the bottom bar now. mobile.css turns .nav-links into a
     horizontally scrolling strip; on a phone we drop it entirely. */

  /* :not(.mnav) is load-bearing. The bottom tab bar is itself a <nav>, so a
     bare `nav` selector also styles it — it inherited top:0 and
     height:56px!important from here, and a fixed element given BOTH top and
     bottom resolves to top, pinning the tab bar to the top of the screen.
     Same shared-selector trap as the `.hero` bugs in Plan.md §13.12/§13.13. */
  nav:not(.mnav), .top-nav {
    position: sticky; top: 0; z-index: 900;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap !important;
    gap: 12px;
    height: 56px !important;
    padding: 0 16px !important;
    background: var(--white) !important;
    border-bottom: 1px solid var(--border);
    row-gap: 0;
  }

  nav:not(.mnav) .nav-links, .top-nav .nav-links { display: none !important; }
  nav:not(.mnav) .nav-actions .btn-primary,
  .top-nav .nav-actions .btn-primary { display: none !important; }

  nav:not(.mnav) .nav-actions, .top-nav .nav-actions {
    margin-left: 0;
    display: flex; align-items: center; gap: 10px;
  }

  .brand-lockup { height: 26px !important; width: auto !important; }

  /* index.html's nav is absolutely positioned and transparent so the
     hero photo runs behind it, and it uses the LIGHT lockup. Forcing a
     white bar there would put a white logo on white. */
  body[data-page="index.html"] nav:not(.mnav) {
    position: absolute !important;
    background: transparent !important;
    border-bottom: 0;
  }

  /* ── 2. Bottom tab bar ──────────────────────────────────────── */

  .mnav {
    display: flex;
    /* top:auto is explicit, not redundant: any page <style> with a bare
       `nav { top: 0 }` would otherwise reach this element too. */
    position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 1000;
    height: auto !important;
    align-items: flex-end;
    justify-content: space-around;
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -2px 14px rgba(34, 33, 75, 0.07);
  }

  .mnav-item {
    flex: 1 1 0;
    min-width: 0;
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    text-decoration: none;
    color: var(--navy-light, #6b6a8f);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.01em;
    padding: 2px 0;
    -webkit-tap-highlight-color: transparent;
  }

  .mnav-item svg { width: 22px; height: 22px; display: block; }
  .mnav-label {
    max-width: 100%;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }

  .mnav-item.is-active { color: var(--accent); }

  /* Centre tab: a raised disc carrying the Rokin mark. It sits above the
     bar's top edge, so the bar needs no extra height — the disc overhangs. */
  .mnav-primary { position: relative; }
  .mnav-disc {
    width: 52px; height: 52px;
    margin-top: -26px;
    border-radius: 50%;
    background: var(--accent);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 16px rgba(73, 66, 206, 0.38);
    border: 3px solid var(--white);
  }
  .mnav-disc img { width: 26px; height: 26px; display: block; }
  .mnav-primary.is-active .mnav-disc { background: var(--navy); }

  /* Content must clear the fixed bar. */
  body.has-mnav { padding-bottom: 78px; }

  /* ── 3. Mobile search field ─────────────────────────────────
     A pill under the header on the list screens. */
  .search-bar {
    margin: 12px 16px !important;
    background: var(--cream, #f4f3f8);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 9px 14px;
    display: flex; align-items: center; gap: 8px;
  }
  .search-bar input {
    border: 0; background: transparent; width: 100%;
    font-size: 14px; outline: none;
  }
}

/* ============================================================
   PER-SCREEN MOBILE LAYOUTS
   Each of these differs structurally from its desktop counterpart,
   which is the point: the phone design is not a narrow desktop.
   ============================================================ */

@media (max-width: 760px) {

  /* ── MARKETPLACE ─────────────────────────────────────────────
     Mock: header, a search row, then a two-column card grid.
     No hero, no stats band, no map panel. */

  body[data-page="catalogue.html"] .hero,
  body[data-page="catalogue.html"] .stats-bar,
  body[data-page="catalogue.html"] .hero-stats-bar { display: none !important; }

  /* The sidebar map was an explicit "remove on mobile" item: it pushed the
     listings a full screen down, and the pins are too small to hit. State
     filtering stays available through the State select. */
  body[data-page="catalogue.html"] .sidebar-map-wrap,
  body[data-page="catalogue.html"] .sidebar-card:has(.sidebar-map-wrap) { display: none !important; }

  /* Sidebar becomes a collapsible block above the grid rather than a column. */
  body[data-page="catalogue.html"] .layout,
  body[data-page="catalogue.html"] .main-layout {
    display: block !important;
  }
  body[data-page="catalogue.html"] .sidebar {
    position: static !important;
    width: auto !important;
    height: auto !important;
    max-height: none !important;
    border-right: 0 !important;
    padding: 0 16px !important;
  }

  /* TWO COLUMNS. The desktop grid is minmax(260px,1fr), which can only ever
     produce one column at 390px — this is the explicit backlog item. */
  .listing-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    padding: 0 16px;
    margin-bottom: 1.5rem !important;
  }

  .listing-card { min-width: 0; }
  .listing-card .listing-img-wrap { aspect-ratio: 4 / 3; overflow: hidden; }
  .listing-card .listing-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
  .listing-body { padding: 9px 10px 11px !important; }
  .listing-name { font-size: 13px !important; line-height: 1.25; }
  .listing-price { font-size: 14px !important; }

  /* At two-up there is no room for five tags; keep the three that identify
     the animal and drop the rest rather than letting them wrap to four rows. */
  .listing-meta { gap: 4px !important; }
  .listing-tag-lineage, .listing-tag-genetics { display: none !important; }
  /* nowrap is not cosmetic: at two-up these boxes are ~70px wide and
     "Spin Left" breaks to "Spin / Left", "5 yrs" to "5 / yrs". Same fault
     Plan.md §13.13 fixed on the live-auctions table. */
  .listing-tag {
    font-size: 10px !important; padding: 2px 6px !important;
    white-space: nowrap !important;
  }
  .listing-meta { flex-wrap: wrap; }
  .listing-timer { font-size: 10px !important; }
  .listing-weight { font-size: 10px !important; }

  /* ── SELLERS ─────────────────────────────────────────────────
     Desktop is a two-panel view: a scrolling seller list beside a
     scrolling detail panel, inside a scrolling page. That is the
     "three separately scrolling tabs" problem. On mobile it becomes
     one list; tapping a seller pushes the detail over it. */

  body[data-page="consignors.html"] .page-wrap {
    display: block !important;
  }
  body[data-page="consignors.html"] .left-panel {
    position: static !important;
    height: auto !important;
    overflow: visible !important;
    border-right: 0 !important;
  }
  /* max-height is the load-bearing one. mobile.css:189 caps this list at
     45vh with its own overflow-y:auto — that inner scroll, inside the page
     scroll, beside the detail panel's scroll, IS the "three separately
     scrolling tabs" this screen was reported for. Releasing overflow without
     releasing max-height is worse than neither: the rows escape a 380px box
     and paint straight over the footer. */
  body[data-page="consignors.html"] .seller-list {
    overflow: visible !important;
    max-height: none !important;
    height: auto !important;
    flex: none !important;
  }
  /* The detail panel is hidden until a seller is chosen, then covers the
     screen. Without this it sits under the list as a second scroll region. */
  body[data-page="consignors.html"] .right-panel {
    display: none !important;
  }
  body[data-page="consignors.html"].seller-open .right-panel {
    display: block !important;
    position: fixed !important;
    inset: 0 0 71px 0;
    height: auto !important;
    z-index: 950;
    overflow-y: auto !important;
    top: 0 !important;
  }
  body[data-page="consignors.html"].seller-open .left-panel,
  body[data-page="consignors.html"].seller-open nav:not(.mnav),
  body[data-page="consignors.html"].seller-open .hero { display: none !important; }

  /* Back control, injected by js/mobile-app.js with the panel. */
  .mseller-back {
    position: sticky; top: 0; z-index: 5;
    display: flex; align-items: center; gap: 8px;
    width: 100%;
    padding: 12px 16px;
    background: var(--white);
    border: 0; border-bottom: 1px solid var(--border);
    font-family: 'Archivo', sans-serif;
    font-size: 14px; font-weight: 600; color: var(--navy);
    cursor: pointer;
  }
  .mseller-back svg { width: 18px; height: 18px; }

  /* Ranked rows, as in the mock. */
  body[data-page="consignors.html"] .slc {
    padding: 12px 16px !important;
    gap: 12px !important;
  }
  body[data-page="consignors.html"] .hero { padding: 1.25rem 16px !important; }
  body[data-page="consignors.html"] .hero h1 { font-size: 24px !important; }
  body[data-page="consignors.html"] .hero-stats { display: none !important; }

  /* ── PROFILE ────────────────────────────────────────────────
     Mock: identity block, then a 2×2 grid of stat tiles. */
  body[data-page="app-profile.html"] .bids-grid,
  body[data-page="app-profile.html"] .summary-row,
  body[data-page="app-profile.html"] .stats-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  /* ── LOT ────────────────────────────────────────────────────
     The buy/bid actions become a bar docked above the tab bar, so
     they are reachable without scrolling to the end of the page. */
  body[data-page="lot.html"] .thumbnails { gap: 6px !important; }
  body[data-page="lot.html"] .tree-outer { padding-bottom: 8px; }
}

@media (max-width: 760px) {

  /* ── Header bell (injected) ─────────────────────────────────
     Replaces the desktop avatar + CTA. Account reaches via the Profile tab. */
  .mbell {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px;
    color: var(--navy);
    text-decoration: none;
  }
  .mbell svg { width: 21px; height: 21px; }
  nav:not(.mnav) .avatar-wrap, .top-nav .avatar-wrap { display: none !important; }

  /* ── Collapsible marketplace filters (injected) ─────────────
     Closed by default so the grid is the first thing on the page. */
  body[data-page="catalogue.html"] .mfilter-toggle {
    display: inline-flex; align-items: center; gap: 7px;
    margin: 0 16px 12px;
    padding: 9px 16px;
    background: var(--white);
    border: 1px solid var(--border-hover, #d5d3e2);
    font-family: 'Archivo', sans-serif;
    font-size: 13px; font-weight: 600; color: var(--navy);
    cursor: pointer;
  }
  .mfilter-toggle svg { width: 15px; height: 15px; }
  body[data-page="catalogue.html"] .sidebar { display: none !important; }
  body[data-page="catalogue.html"].mfilters-open .sidebar { display: block !important; }
  body[data-page="catalogue.html"].mfilters-open .mfilter-toggle {
    background: var(--navy); border-color: var(--navy); color: var(--white);
  }

  /* ── Search row ─────────────────────────────────────────────
     One pill. The desktop layout puts a filled Search button inside it,
     which at 390px eats half the field. */
  body[data-page="catalogue.html"] .search-section { padding: 12px 0 !important; }
  /* :not(.mloc-pin) matters. This rule was written for the Search button, but
     the location pin is also a <button> inside .search-bar — it inherited
     `padding: 7px 14px !important`, and with box-sizing:border-box on a 34px
     button that leaves a 6px content box, so the 20px icon rendered 6px wide.
     Third instance of the same trap in this file (see nav:not(.mnav)). */
  .search-bar button:not(.mloc-pin), .search-bar .btn-primary {
    padding: 7px 14px !important;
    font-size: 13px !important;
    border-radius: 999px !important;
    flex-shrink: 0;
  }
}

@media (max-width: 760px) {

  /* ── LOT: contextual header ─────────────────────────────────
     The mock replaces the site header on this screen with
     back / title / bookmark / share. */
  .mlot-head {
    display: flex; align-items: center; gap: 4px;
    position: sticky; top: 0; z-index: 920;
    height: 52px;
    padding: 0 6px 0 4px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
  }
  .mlot-title {
    flex: 1;
    text-align: center;
    font-size: 15px; font-weight: 600; color: var(--navy);
    /* Centred between the back button and the two trailing buttons; the
       -34px offsets the single leading button so the label sits true. */
    margin-left: -34px;
  }
  .mlot-btn {
    width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    background: none; border: 0; padding: 0;
    color: var(--navy); cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .mlot-btn svg { width: 20px; height: 20px; }
  .mlot-btn.is-on { color: var(--accent); }
  .mlot-btn.is-on svg { fill: currentColor; }

  /* The site header is redundant once the contextual one is present. */
  body.has-mlot-head nav:not(.mnav) { display: none !important; }
  body[data-page="lot.html"] .breadcrumb,
  body[data-page="event-lot.html"] .breadcrumb { display: none !important; }

  /* ── LOT: single column + docked actions ───────────────────── */
  body[data-page="lot.html"] .layout,
  body[data-page="event-lot.html"] .layout {
    display: block !important;
  }
  body[data-page="lot.html"] .page-wrap { padding: 0 0 16px !important; }

  /* Buy/Bid dock above the tab bar so they are reachable without scrolling
     to the end of a long page. The page's OWN buttons are moved here rather
     than duplicated, so their handlers and labels stay the single source. */
  body[data-page="lot.html"] .action-section {
    position: fixed; left: 0; right: 0; bottom: 71px; z-index: 940;
    display: flex !important; flex-direction: row !important;
    gap: 10px;
    margin: 0 !important;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    background: var(--white);
    border-top: 1px solid var(--border);
    box-shadow: 0 -2px 14px rgba(34, 33, 75, 0.08);
  }
  body[data-page="lot.html"] .action-section .btn-buy-now,
  body[data-page="lot.html"] .action-section .btn-place-bid {
    flex: 1 1 0; min-width: 0;
    margin: 0 !important;
    padding: 13px 10px !important;
    font-size: 14px !important;
    white-space: nowrap;
  }
  /* Watchlist is the bookmark in the contextual header now. */
  body[data-page="lot.html"] .action-section .btn-watch { display: none !important; }
  /* Content must clear BOTH bars. */
  body[data-page="lot.html"].has-mnav { padding-bottom: 146px; }

  /* The page's own overlay bookmark/share duplicate the contextual header's.
     Two sets of the same two controls, 60px apart, on the same screen. */
  body.has-mlot-head .hero-actions { display: none !important; }

  /* .hero-image is a 4/3 box with a #222 fill. The gallery images are 3/2, so
     cover crops rather than letterboxes — but any image that fails to load,
     or a taller box than the art, shows as a black band. Matching the box to
     the art on mobile removes the band entirely. */
  body[data-page="lot.html"] .hero-image {
    aspect-ratio: auto !important;
    background: var(--cream) !important;
    margin-bottom: 0 !important;
  }
  body[data-page="lot.html"] .hero-image img {
    width: 100%; height: auto; display: block; object-fit: contain;
  }

  /* The moved panel sits flush under the gallery. */
  body[data-page="lot.html"] .detail-panel {
    border: 0 !important;
    padding: 16px !important;
    margin: 0 !important;
  }
  body[data-page="lot.html"] .countdown-row { gap: 6px !important; }
  body[data-page="lot.html"] .similar-grid,
  body[data-page="lot.html"] #similarGrid {
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
  }
}

@media (max-width: 760px) {

  /* ── PROFILE ────────────────────────────────────────────────
     Mock: identity block, a 2×2 grid of stat tiles, then full-width
     settings rows with chevrons. */

  body[data-page="app-profile.html"] .layout,
  body[data-page="app-profile.html"] .profile-layout { display: block !important; }

  body[data-page="app-profile.html"] .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    padding: 0 16px;
  }
  body[data-page="app-profile.html"] .stat-card { padding: 16px 14px !important; min-width: 0; }

  /* 36px is a desktop size. "$1,152,000" at 36px is ~215px wide and the tile
     is ~175px at 390px viewport, so the figure ran straight out of its card. */
  body[data-page="app-profile.html"] .stat-number {
    font-size: 22px !important;
    overflow-wrap: anywhere;
  }
  body[data-page="app-profile.html"] .stat-label { font-size: 11px !important; }

  /* The settings links are a horizontal row on desktop; at 390px the second
     item was sliced at the viewport edge. Stack them, which is also what the
     mock shows. */
  body[data-page="app-profile.html"] .sidebar-nav {
    display: flex !important;
    flex-direction: column !important;
  }
  body[data-page="app-profile.html"] .sidebar-nav-item {
    width: 100%;
    justify-content: flex-start;
    gap: 12px;
  }
  body[data-page="app-profile.html"] .sidebar-nav-label { flex: 1; min-width: 0; }

  body[data-page="app-profile.html"] .sidebar,
  body[data-page="app-profile.html"] aside.sidebar {
    position: static !important;
    width: auto !important;
    height: auto !important;
  }
  body[data-page="app-profile.html"] .main { padding: 0 !important; }
}

@media (max-width: 760px) {

  /* ── INBOX ──────────────────────────────────────────────────
     .two-panel is a 400px + 1fr grid. The fixed 400px track alone
     exceeds a 390px viewport, so both panels ran off the right edge.
     Stacked, the list reads first and the detail follows. */
  body[data-page="app-inbox.html"] .two-panel {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  body[data-page="app-inbox.html"] .message-list-panel {
    border-right: 0 !important;
    border-bottom: 1px solid var(--border);
    max-height: none !important;
    overflow-y: visible !important;
  }
  body[data-page="app-inbox.html"] .inbox-wrap { padding: 16px 16px 24px !important; }

  /* ── ORDER TRACKING ─────────────────────────────────────────
     Mock: "Arriving today", the lot card, the route map, then the
     progress stepper. */
  body[data-page="app-order.html"] .layout {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px !important;
  }
  /* .order-card-inner is the flex row — .order-card is only its wrapper, so
     stacking has to target the inner element. .order-card-image is a fixed
     200px beside flexible text: at 390px that left the text ~230px and every
     label wrapped to three or four lines, as well as overhanging the edge.
     Photo on top, details beneath. */
  body[data-page="app-order.html"] .order-card-inner {
    flex-direction: column-reverse !important;
  }
  body[data-page="app-order.html"] .order-card-image {
    width: 100% !important;
    flex-shrink: 1 !important;
  }
  body[data-page="app-order.html"] .order-card-body { padding: 18px 16px !important; }
  body[data-page="app-order.html"] .order-card-details { gap: 10px 20px !important; }
  body[data-page="app-order.html"] .order-card-title { font-size: 20px !important; }
  body[data-page="app-order.html"] .order-card-image img {
    height: auto !important; aspect-ratio: 16 / 10; object-fit: cover;
  }

  body[data-page="app-order.html"] .page-wrap,
  body[data-page="app-transactions.html"] .page-wrap { padding: 16px !important; }
}

@media (max-width: 760px) {

  /* ── Location sheet ─────────────────────────────────────────
     Trigger pin in the search row; sheet slides up over the grid. */

  .mloc-pin {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; flex-shrink: 0;
    background: none; border: 0; padding: 0;
    color: var(--navy); cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  /* Two overrides, both needed because this button sits inside .search-bar:
     flex-shrink or the page's flex layout squashes the icon to 6px wide, and
     an explicit colour because `.search-bar svg { color: var(--text-muted) }`
     out-specifies the colour inherited from .mloc-pin and renders it grey. */
  .mloc-pin svg {
    width: 20px; height: 20px;
    flex-shrink: 0;
    color: var(--navy);
  }

  /* The sheet stays display:flex once open; visibility is driven by the
     body class so the panel can transition rather than snap. */
  .mloc-sheet { display: none; }
  body.mloc-open .mloc-sheet {
    display: block;
    position: fixed; inset: 0; z-index: 1100;
  }
  .mloc-backdrop {
    position: absolute; inset: 0;
    background: rgba(20, 19, 44, 0.55);
    animation: mloc-fade 0.18s ease;
  }
  @keyframes mloc-fade { from { opacity: 0; } to { opacity: 1; } }

  .mloc-panel {
    position: absolute; left: 0; right: 0; bottom: 0;
    max-height: 88vh; overflow-y: auto;
    background: var(--white);
    padding: 8px 16px calc(18px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -8px 30px rgba(20, 19, 44, 0.28);
    animation: mloc-up 0.22s cubic-bezier(.22,.8,.3,1);
  }
  @keyframes mloc-up { from { transform: translateY(100%); } to { transform: none; } }

  .mloc-grab {
    width: 38px; height: 4px; margin: 4px auto 10px;
    background: var(--border-hover, #d5d3e2); border-radius: 999px;
  }
  .mloc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .mloc-title { font-size: 16px; font-weight: 700; color: var(--navy); }
  .mloc-x {
    width: 34px; height: 34px; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    background: none; border: 0; color: var(--text-muted); cursor: pointer;
  }
  .mloc-x svg { width: 18px; height: 18px; }

  .mloc-map {
    margin: 12px 0 10px;
    background: var(--cream);
    border: 1px solid var(--border);
    padding: 8px;
  }
  .mloc-svg { width: 100%; height: auto; display: block; }
  /* Inactive states must not look tappable — only the five with listings are. */
  .mloc-svg .map-state { cursor: default; }
  .mloc-svg .map-state-active { cursor: pointer; }

  .mloc-status {
    font-size: 13px; color: var(--text-secondary);
    min-height: 19px; margin-bottom: 12px;
  }

  .mloc-locate {
    width: 100%;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 16px;
    background: var(--accent); border: 0; color: var(--white);
    font: 600 15px 'Archivo', sans-serif; cursor: pointer;
  }
  .mloc-locate svg { width: 17px; height: 17px; }

  .mloc-clear {
    width: 100%; margin-top: 8px; padding: 11px 16px;
    background: none; border: 1px solid var(--border-hover, #d5d3e2);
    color: var(--navy); font: 500 14px 'Archivo', sans-serif; cursor: pointer;
  }

  /* The sheet owns the screen while open. */
  body.mloc-open { overflow: hidden; }
  body.mloc-open .mnav { display: none; }
}
