/* Mansion Access bottom bar for the static pages (/, /aboutus, /BrandedResidences), rendered by /aboutus/bottom-nav.js.
   Same look as the app bar (app/shell.css .x-tabs); own .ma-bn class names so it can't clash with a page's own classes.
   Arrows sit in their own gutters (arrow | scroller | arrow) and hide at their ends. */
:root { --ma-bn-h: calc(74px + env(safe-area-inset-bottom, 0px)); }
html:has(body.has-ma-bn-sub) { --ma-bn-h: calc(116px + env(safe-area-inset-bottom, 0px)); }
body.has-ma-bn-sub { --ma-bn-h: calc(116px + env(safe-area-inset-bottom, 0px)); } /* same, for browsers without :has() */
body.has-ma-bn { padding-bottom: var(--ma-bn-h); }
html:has(body.has-ma-bn) { scroll-padding-bottom: var(--ma-bn-h); }
.ma-bn { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; display: flex; align-items: center; justify-content: center; gap: 4px; min-height: 68px; box-sizing: border-box; margin: 0; padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--stroke, #343b7f); font-family: var(--geist, "Geist", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif); color: var(--fg, #fff); background-color: var(--bg, #2F3A45); background-image: linear-gradient(var(--nav-tint, rgb(0 0 0 / 0.18)), var(--nav-tint, rgb(0 0 0 / 0.18))); }
.ma-bn[hidden] { display: none; }
.ma-bn__scroll { position: relative; flex: 0 1 auto; min-width: 0; display: flex; gap: 4px; margin: 0; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 2px; scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; padding: 2px; }
.ma-bn__scroll::-webkit-scrollbar { display: none; height: 0; }
.ma-bn__arrow { flex: none; display: grid; place-items: center; width: 32px; height: 48px; margin: 0; padding: 0; border-radius: 12px; border: 1px solid var(--panel-line, #2c336d); background: var(--panel, #232957); color: var(--fg, #fff); cursor: pointer; }
.ma-bn__arrow:hover { box-shadow: inset 0 0 0 100px var(--hover-wash, rgb(255 255 255 / 0.07)); }
.ma-bn__arrow:focus-visible { outline: 2px solid var(--fg, #fff); outline-offset: 1px; }
.ma-bn__arrow[data-hide] { visibility: hidden; pointer-events: none; }
.ma-bn__tab { flex: none; width: 104px; scroll-snap-align: start; display: grid; justify-items: center; align-content: center; gap: 2px; min-height: 56px; margin: 0; padding: 4px; box-sizing: border-box; border-radius: 12px; color: var(--muted, #a0a1b1); font: 400 12px/1.15 var(--geist, "Geist", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif); letter-spacing: 0; text-transform: none; text-align: center; text-decoration: none; }
/* Icon tint per tab hue. light-dark() is iOS Safari 17.5+ / Chrome 123+; a var() declaration using it is dropped at computed time
   on older phones, and the icon fell back to the tab's near-white text colour (owner 2026-11-08 22:18 "icons ... are all white").
   hsl() fallback first; light-dark() only where supported. */
.ma-bn__tab svg { display: block; width: 20px; height: 20px; color: hsl(var(--ti-h, 0), 72%, 64%); }
@supports (color: light-dark(#000, #fff)) and (color: oklch(0.5 0.1 0)) {
  .ma-bn__tab svg { color: light-dark(oklch(0.44 0.16 var(--ti-h, 0)), oklch(0.80 0.14 var(--ti-h, 0))); }
}
.ma-bn__tab > span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; max-width: 100%; overflow-wrap: normal; word-break: normal; }
.ma-bn__tab:hover { box-shadow: inset 0 0 0 100px var(--hover-wash, rgb(255 255 255 / 0.07)); color: var(--muted, #a0a1b1); }
.ma-bn__tab[aria-current="page"] { color: var(--fg, #fff); background: var(--panel-line, #2c336d); font-weight: 500; }
.ma-bn__tab:focus-visible { outline: 2px solid var(--fg, #fff); outline-offset: -2px; }
/* About Us Page Navigation band (owner 2026-11-04 12:21), only on / and /aboutus: sits right above the bar, darker than it
   (the bar colour mixed 65% toward black, so the white links keep >= 7:1 in both themes); scrolls sideways when narrow. */
.ma-bn-sub { position: absolute; left: 0; right: 0; bottom: 100%; display: flex; justify-content: safe center; gap: 4px; height: 42px; box-sizing: border-box; margin: 0; padding: 5px 8px; overflow-x: auto; scrollbar-width: none; border-top: 1px solid rgb(255 255 255 / 0.14); background: #111; }
/* The #111 fallback above used to sit in the same rule as the color-mix() line; a var() declaration always wins at parse time, so
   on browsers without color-mix() (iOS Safari < 16.2) the band computed to transparent (owner 2026-11-08 22:18). Mix only where supported. */
@supports (color: color-mix(in srgb, red 50%, blue)) { .ma-bn-sub { background: color-mix(in srgb, var(--bg, #2F3A45) 35%, #000); } }
.ma-bn-sub::-webkit-scrollbar { display: none; height: 0; }
.ma-bn-sub a { flex: none; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 999px; color: #fff; font: 500 13px/1 var(--geist, "Geist", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif); text-decoration: none; white-space: nowrap; }
.ma-bn-sub a:hover { background: rgb(255 255 255 / 0.12); }
.ma-bn-sub a:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
@media (max-width: 480px) { .ma-bn { gap: 2px; padding-inline: 4px; } .ma-bn__arrow { width: 28px; } .ma-bn__tab { width: 100px; } }
@media print { .ma-bn { display: none; } body.has-ma-bn { padding-bottom: 0; } }
