/* hdrfix.css — header clip + overflow fixes (loaded last). 2026-10-19 */
/* 1) fullbuild.css gave every .wrap a 96px bottom pad when logged in (meant for the bottom tab bar). On the header that
      squeezed the content box to 0px, so the logo, search and nav rendered ~25px above the top edge. Keep the pad on <main> only. */
body.has-tabs header.nav .wrap, body.has-tabs main .wrap, body.has-tabs .footer .wrap { padding-bottom: 0 !important; }
header.nav .wrap { box-sizing: border-box; min-height: 72px; height: 72px; padding-top: 0; padding-bottom: 0; }
header.nav .wrap > * { min-width: 0; }
header.nav .logo { flex: 0 1 auto; min-width: 0; overflow: visible; }
header.nav .nav-search { flex: 1 1 260px; min-width: 0; max-width: 360px; }
header.nav .nav-right { flex: 0 0 auto; min-width: 0; gap: 4px; }
/* 2) nav links: real hit areas + spacing that doesn't depend on flex gap (older Safari ignores gap on flex) */
header.nav .nav-right > a:not(.btn), header.nav .fb-worknav a { display: inline-flex; align-items: center; padding: 8px 10px; border-radius: 10px; line-height: 1.1; white-space: nowrap; }
header.nav .nav-right > * + *, header.nav .fb-worknav a + a { margin-left: 2px; }
header.nav .fb-worknav { align-items: center; gap: 2px; margin-right: 4px; }
header.nav .nav-right > a:not(.btn):hover, header.nav .fb-worknav a:hover { background: rgba(255,255,255,.06); }
header.nav .nav-right .btn { white-space: nowrap; }
@media (max-width: 760px) {
  header.nav .wrap { height: 62px; min-height: 62px; gap: 8px; }
  header.nav .nav-right > a:not(.btn) { padding: 8px 7px; }
}
/* 3) small phones: the logged-out header was 398px wide (Sign up free clipped at 360-390) */
@media (max-width: 430px) {
  header.nav .wrap { padding-left: 12px; padding-right: 12px; gap: 6px; }
  header.nav .logo.has-svg { height: 40px; }
  header.nav .vs-word-head { font-size: 1.12rem !important; }
  header.nav .lmv-vs-lockup { gap: 5px; }
  header.nav .nav-right { gap: 0; }
  header.nav .nav-right > a:not(.btn) { padding: 8px 6px; font-size: .88rem; }
  header.nav .nav-right .btn { padding: 9px 12px; font-size: .84rem; }
  header.nav .nav-search-ico { padding: 6px 4px !important; }
}
@media (max-width: 374px) {
  header.nav .vs-word-head { font-size: 1rem !important; }
  header.nav .nav-right .btn { padding: 8px 10px; font-size: .8rem; }
}

/* ---- profile layout fixes ---- */
/* name column was squeezed to ~80px because the owner note made the actions column very wide */
.profile .biz-id { grid-template-columns: 140px minmax(0, 1fr) auto; }
.profile .biz-id > div:nth-child(2) { min-width: 0; }
.profile .biz-actions { max-width: 460px; justify-content: flex-end; align-items: center; }
.profile .biz-actions .own-note { flex: 1 1 100%; max-width: 360px; margin-left: auto; text-align: right; }
.profile .biz-name h1 { word-break: normal; overflow-wrap: anywhere; }
@media (max-width: 760px) { .profile .biz-id { grid-template-columns: 1fr; } .profile .biz-actions { max-width: none; justify-content: flex-start; } .profile .biz-actions .own-note { max-width: none; margin-left: 0; text-align: left; } }
/* service-area ZIPs: compact pills (they stretched to the height of the "+52 more" control) */
.area .zips { align-items: center; gap: 6px; }
.area .zipc { display: inline-flex; align-items: center; height: 28px; padding: 0 11px; border-radius: 999px; line-height: 1; white-space: nowrap; }
.area .zip-more { display: contents; }
.area .zip-more > summary { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; border: 1px dashed var(--border-strong); cursor: pointer; font-size: .8rem; font-weight: 700; white-space: nowrap; list-style: none; }
.area .zip-more > summary::-webkit-details-marker { display: none; }
.area .zip-more > summary::before, .area .zip-more > summary::marker { content: none; }
/* follower / following / friends tiles: one even row */
.profile .stats { align-items: stretch; gap: 10px; }
.profile .stats .stat { display: flex; flex-direction: column; justify-content: center; min-width: 96px; margin: 0; vertical-align: top; }
/* before & after owner toolbar: always its own row under the title, never over the box */
#portfolio > h2 { margin-bottom: 10px; }
#portfolio .ob-share { position: relative; z-index: 1; clear: both; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; }
#portfolio .ob-share .btn { margin: 0; }
#portfolio .ob-share-note { flex: 1 1 100%; margin: 2px 0 0; }
/* section headers: title left, action link right, same row */
.sec-head, .card-head, .h-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
/* dashboard cards: title + action link on one row; hero text + button side by side (no stray heading margins) */
.dash-card .dash-head { display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 12px; }
.dash-card .dash-head > h2 { margin: 0 !important; flex: 1 1 auto; min-width: 0; }
.dash-card .dash-head > a, .dash-card .dash-head > .link { flex: none; margin: 0 0 0 12px; white-space: nowrap; }
.dash-hero { display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; }
.dash-hero > div { flex: 1 1 auto; min-width: 0; } .dash-hero > .btn, .dash-hero > a.btn { flex: none; margin-left: 12px; }
.dash-hero h2, .dash-hero h1 { margin: 0 !important; }
@media (max-width: 480px) { .dash-hero { flex-wrap: wrap; } .dash-hero > .btn, .dash-hero > a.btn { margin-left: 0; } }
/* cover banner: keep it visible when aspect-ratio isn't supported (older Safari collapsed it to 0px) */
@supports not (aspect-ratio: 1 / 1) { .profile .cover-pro.c2 { height: 0 !important; padding-top: 33.333%; } }
/* phones: taller banner so the tagline sits under the artwork instead of on top of it */
@media (max-width: 600px) {
  .profile .cover-pro.c2 { aspect-ratio: 16 / 9 !important; }
  @supports not (aspect-ratio: 1 / 1) { .profile .cover-pro.c2 { padding-top: 56.25% !important; } }
  .profile .cover-pro.c2 img { object-position: center top !important; height: 66% !important; }
  .profile .cover-pro.c2 .tagline { top: auto !important; bottom: 8px !important; left: auto !important; right: 10px !important; max-width: calc(100% - 140px); text-align: right; }
  .profile .cover-pro.c2 .tagline .script { display: inline-block; }
  .profile .cover-pro.c2 .tagline p { font-size: .8rem; margin-top: 4px; line-height: 1.25; }
}

/* Guest booking (Oct 20): keep "Continue as guest" clear of the fixed bottom bar on phones. */
@media (max-width:899px){
  body.has-tabs main:has(form[action="/book/guest"]){padding-bottom:calc(88px + env(safe-area-inset-bottom))}
  form[action="/book/guest"] .form-actions{scroll-margin-bottom:calc(88px + env(safe-area-inset-bottom))}
  form[action="/book/guest"] .form-actions .btn{white-space:normal;height:auto;min-height:48px;line-height:1.25;padding:12px 16px}
  body:has(form[action="/book/guest"] :is(input,select,textarea):focus) nav.tabbar{display:none!important}
}

/* ===== Audit 1021 fixes (staging) ===== */
/* (3) Legal pages: plain bold section headings, brighter body text, wrap long headings */
/* Terms/Privacy/Detailer H1: Montserrat (not brand script) — staging 2026-10-23 midday */
html body h1.lg-h:not(#_) { --lmv-font-head: Montserrat, system-ui, sans-serif; font-family: Montserrat, system-ui, sans-serif !important; font-weight: 800 !important; font-style: normal !important; text-shadow: none !important; filter: none !important; letter-spacing: -0.01em !important; font-size: clamp(1.5rem, 4vw, 2rem) !important; line-height: 1.25 !important; color: #f2f2f4 !important; white-space: normal !important; overflow: visible !important; overflow-wrap: anywhere; text-overflow: clip !important; }
html body .lg-sec h2.lg-sh:not(#_) { --lmv-font-head: Montserrat, system-ui, sans-serif; font-family: Montserrat, system-ui, sans-serif !important; font-weight: 700 !important; font-style: normal !important; text-shadow: none !important; filter: none !important; letter-spacing: 0 !important; font-size: 1.12rem !important; line-height: 1.3 !important; color: #f2f2f4 !important; white-space: normal !important; overflow: visible !important; overflow-wrap: anywhere; text-overflow: clip !important; }
.lg-txt, .lg-txt p, .lg-txt li, .lg-only, .lg-upd, .lg-pe, .lg-pe p { color: #cfcfd6 !important; }
.lg-txt small, .lg-txt .dim, .lg-pe small { color: #b4b4bd !important; }
/* (4) Find: sentence-case, neutral soft tags; results grid fills the width */
.v3-svcs .v2-svc { text-transform: none !important; letter-spacing: 0 !important; font-weight: 600 !important; font-size: .8rem !important; color: #dcdce2 !important; background: rgba(255,255,255,.06) !important; border: 1px solid rgba(255,255,255,.12) !important; border-radius: 999px !important; padding: 4px 10px !important; box-shadow: none !important; }
.v3-svcs .v2-svc::before { content: none !important; }
.v3-svcs .v2-svc::first-letter { text-transform: uppercase; }
.v3-svcs .v2-svc.hit { background: rgba(255,255,255,.16) !important; color: #fff !important; }
.v3-results { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)) !important; }
/* (5) Profile counts: one quiet line */
.profile .stats { justify-content: flex-start !important; display: flex !important; flex-wrap: wrap !important; align-items: baseline !important; gap: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; padding: 0 !important; margin: 10px 0 14px !important; grid-template-columns: none !important; }
.profile .stats .stat { display: inline-flex !important; flex-direction: row !important; align-items: baseline !important; gap: 5px !important; min-height: 0 !important; height: auto !important; padding: 0 !important; margin: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; width: auto !important; flex: 0 0 auto !important; }
.profile .stats .stat + .stat::before { content: "·"; color: #8a8a94; margin: 0 9px; }
.profile .stats .stat b { font-size: 1rem !important; font-weight: 700 !important; color: #f2f2f4 !important; }
.profile .stats .stat span { font-size: .95rem !important; color: #b8b8c0 !important; text-transform: none !important; letter-spacing: 0 !important; }
/* (8) Desktop profile banner: cap height */
@media (min-width: 900px) { html body .profile .cover-pro.c2 { max-height: 220px !important; height: 220px !important; aspect-ratio: auto !important; padding-top: 0 !important; overflow: hidden !important; } html body .profile .cover-pro.c2 img { position: absolute !important; inset: 0 !important; height: 100% !important; width: 100% !important; object-fit: cover !important; object-position: center !important; } }
/* (10) Search filter chips: right-edge fade cue on phones */
@media (max-width: 700px) { .sx-tabs { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); padding-right: 28px; } }
