/* Stone Arch listing page, laid out like a Zillow home page (Kyle 2026-10-20) so it feels familiar,
 * in brand colors only (marketing/brand-guide.md); Caslon headers, Jost body. */
.sal {
  --sal-ivory: #F6F5F0;
  --sal-navy: #2A3A51;
  --sal-forest: #344B43;
  --sal-sky: #9EB0B7;
  --sal-gold: #E1AA2F;
  --sal-rust: #974B25;
  --sal-line: rgba(42, 58, 81, .14);
  --sal-soft: rgba(42, 58, 81, .06);
  --sal-muted: rgba(42, 58, 81, .7);
  --sal-head: "Big Caslon", "Libre Caslon Display", Georgia, serif;
  --sal-body: "Jost", "Optima", "Segoe UI", sans-serif;
  max-width: 1240px; margin: 0 auto; padding: 12px 24px 48px;
  font-family: var(--sal-body); font-weight: 400; color: var(--sal-navy); line-height: 1.55;
}
.sal *, .sal *::before, .sal *::after { box-sizing: border-box; }
.sal p { margin: 0; }
.sal a { color: var(--sal-navy); }
.sal h1, .sal h2, .sal h3 { color: var(--sal-navy); margin: 0; text-transform: none; letter-spacing: 0; }
.sal h2 { font-family: var(--sal-head); font-weight: 400; font-size: 26px; line-height: 1.2; margin-bottom: 16px; }
.sal :focus-visible { outline: 2px solid var(--sal-gold); outline-offset: 2px; }

.sal-btn {
  display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 24px;
  border: 1px solid var(--sal-gold); border-radius: 6px; cursor: pointer; text-decoration: none;
  font: 600 15px var(--sal-body); letter-spacing: .01em; text-transform: none;
}
.sal-btn-gold { background: var(--sal-gold); color: var(--sal-navy) !important; }
.sal-btn-gold:disabled { opacity: .6; cursor: default; }
.sal-btn-navy { background: var(--sal-navy); border-color: var(--sal-navy); color: var(--sal-ivory) !important; }
.sal-btn-outline { background: #fff; border-color: var(--sal-navy); color: var(--sal-navy) !important; }

.sal-stale { margin-bottom: 12px !important; padding: 8px 12px; background: var(--sal-ivory); border-left: 3px solid var(--sal-rust); font-size: 14px; }

/* ---------- Top bar: back, save, share ---------- */
.sal-topbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.sal-back { display: inline-flex; align-items: center; gap: 4px; font-size: 15px; font-weight: 500; text-decoration: none; }
.sal-actions { display: flex; gap: 6px; }
.sal .sal-action {
  display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; margin: 0;
  border: 1px solid transparent !important; border-radius: 6px; background: transparent !important; color: var(--sal-navy) !important;
  font: 500 15px var(--sal-body); cursor: pointer; box-shadow: none !important; min-width: 0; text-transform: none; letter-spacing: 0;
}
.sal .sal-action:hover { background: var(--sal-soft) !important; }
.sal-action.is-on svg { fill: var(--sal-rust); stroke: var(--sal-rust); }

/* ---------- Photos: Zillow-style collage on wide screens, swipe on phones ---------- */
.sal-gallery { position: relative; border-radius: 10px; overflow: hidden; background: var(--sal-soft); }
.sal-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 4 / 3; width: 100%; }
.sal-track::-webkit-scrollbar { display: none; }
.sal-slide { flex: 0 0 100%; margin: 0; scroll-snap-align: center; position: relative; }
.sal .sal-photo-btn { display: block; width: 100%; height: 100%; padding: 0; margin: 0; border: 0 !important; background: none !important; cursor: zoom-in; box-shadow: none !important; border-radius: 0; min-width: 0; }
.sal-photo-btn img { width: 100%; height: 100%; object-fit: cover; display: block; transition: filter .15s; }
.sal-photo-btn:hover img { filter: brightness(.92); }
.sal-nophoto { display: grid; place-items: center; aspect-ratio: 16 / 7; color: var(--sal-muted); letter-spacing: .12em; text-transform: uppercase; font-size: 13px; }
.sal-count { position: absolute; right: 12px; bottom: 12px; padding: 2px 10px; border-radius: 12px; background: rgba(42, 58, 81, .8); color: var(--sal-ivory); font-size: 13px; }
.sal .sal-all {
  position: absolute; right: 14px; bottom: 14px; display: none; align-items: center; gap: 8px; height: 40px; padding: 0 14px; margin: 0;
  border: 1px solid var(--sal-line) !important; border-radius: 6px; background: #fff !important; color: var(--sal-navy) !important;
  font: 600 14px var(--sal-body); cursor: pointer; box-shadow: 0 2px 8px rgba(42, 58, 81, .25) !important; min-width: 0; text-transform: none; letter-spacing: 0;
}
@media (min-width: 900px) {
  .sal-track { display: grid; overflow: hidden; aspect-ratio: auto; height: min(56vw, 520px); gap: 6px; }
  .sal-slide { flex: none; }
  .sal-gallery:not(.has-collage) .sal-slide:not(:first-child) { display: none; }
  .sal-gallery.has-collage .sal-track { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
  .sal-gallery.has-collage .sal-slide:first-child { grid-row: 1 / 3; }
  .sal-gallery.has-collage .sal-slide:nth-child(n+6) { display: none; }
  .sal-count { display: none; }
  .sal .sal-all { display: inline-flex; }
}

/* ---------- Body: content + sticky contact card ---------- */
.sal-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; padding-top: 24px; align-items: start; }

.sal-head { padding-bottom: 16px; }
.sal-head-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 28px; }
.sal-price { font-size: clamp(30px, 4vw, 40px); font-weight: 600; line-height: 1.1; letter-spacing: -.01em; }
.sal ul.sal-keyfacts { display: flex; gap: 22px; margin: 0; padding: 0; list-style: none; font-size: 18px; }
.sal-keyfacts li { margin: 0; color: var(--sal-muted); }
.sal-keyfacts b { display: block; font-size: 24px; line-height: 1.1; font-weight: 600; color: var(--sal-navy); }
.sal .sal-title { margin-top: 8px; font-family: var(--sal-body); font-weight: 400; font-size: 19px; line-height: 1.35; }
.sal-title span { color: var(--sal-navy); }
.sal-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 10px !important; font-size: 15px; }
.sal-status { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; }
.sal-status::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--sal-forest); }
.sal-status.is-pending::before, .sal-status.is-active-under-contract::before { background: var(--sal-gold); }
.sal-status.is-coming-soon::before { background: var(--sal-sky); }
.sal-est { font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }

.sal ul.sal-glance { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin: 8px 0 0; padding: 0; list-style: none; }
.sal-glance li { display: flex; align-items: center; gap: 10px; margin: 0; padding: 12px 14px; border-radius: 8px; background: var(--sal-ivory); font-size: 15px; font-weight: 500; }
.sal-glance svg { flex: none; color: var(--sal-forest); }

.sal-tabs {
  position: sticky; top: 0; z-index: 4; display: flex; gap: 26px; margin: 24px 0 0; padding: 0 2px; overflow-x: auto; scrollbar-width: none;
  background: #fff; border-bottom: 1px solid var(--sal-line);
}
.sal-tabs::-webkit-scrollbar { display: none; }
.sal-tabs a { padding: 14px 0 12px; font-size: 15px; font-weight: 500; white-space: nowrap; text-decoration: none; border-bottom: 3px solid transparent; }
.sal-tabs a:hover { border-bottom-color: var(--sal-gold); }

.sal-section { padding: 32px 0; border-bottom: 1px solid var(--sal-line); scroll-margin-top: 60px; }
.sal-main .sal-section:last-child { border-bottom: 0; }
.sal-overview-meta { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-bottom: 16px !important; font-size: 15px; color: var(--sal-muted); }
.sal-overview-meta b { color: var(--sal-navy); }
.sal-subhead { margin-bottom: 8px !important; font-weight: 600; font-size: 16px; }
.sal-open { margin-bottom: 20px; }
.sal .sal-open ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sal .sal-open li { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; margin: 0; padding: 10px 14px; border-radius: 6px; background: var(--sal-ivory); border-left: 4px solid var(--sal-gold); }
.sal-open em { font-style: normal; font-size: 13px; color: var(--sal-muted); }
.sal-remarks { font-size: 16px; line-height: 1.7; }
.sal-remarks p { margin: 0 0 12px; }
.sal-remarks.is-clamped { max-height: 230px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.sal .sal-more { margin-top: 6px; padding: 0; border: 0 !important; background: none !important; color: var(--sal-navy) !important; font: 600 15px var(--sal-body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; box-shadow: none !important; min-width: 0; }
.sal .sal-more[hidden] { display: none; }
.sal-note { margin-top: 10px !important; font-size: 13px; color: var(--sal-muted); }

/* Facts & features */
.sal-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 36px; }
.sal .sal-group h3 { margin-bottom: 8px; font-family: var(--sal-body); font-size: 17px; font-weight: 600; }
.sal .sal-group ul { margin: 0; padding: 0 0 0 18px; list-style: disc; }
.sal .sal-group li { margin: 0 0 5px; font-size: 15px; line-height: 1.5; }
.sal-group li span { color: var(--sal-muted); }

/* Payment */
.sal-pay { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px; align-items: start; }
.sal-payment { font-size: 32px; font-weight: 600; line-height: 1.1; }
.sal-payment small { font-size: 16px; font-weight: 400; color: var(--sal-muted); }
.sal-bar { display: flex; gap: 2px; height: 12px; margin: 14px 0 12px; border-radius: 6px; overflow: hidden; background: var(--sal-soft); }
.sal .sal-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.sal-legend li { display: flex; align-items: center; gap: 8px; margin: 0; }
.sal-legend i { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.sal-legend b { margin-left: auto; font-weight: 600; }
.sal-legend .sal-legend-note { color: var(--sal-muted); font-size: 13px; }
.sal-mortgage-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sal label > span { display: block; font-size: 13px; font-weight: 500; color: var(--sal-muted); margin-bottom: 4px; }
.sal label > span em { font-style: normal; opacity: .8; }
.sal input:not([type=radio]), .sal select, .sal textarea {
  width: 100%; min-height: 44px; padding: 8px 10px; margin: 0; border: 1px solid rgba(42, 58, 81, .35) !important; border-radius: 6px;
  background: #fff !important; color: var(--sal-navy) !important; font: 400 16px var(--sal-body); box-shadow: none !important;
}
.sal textarea { resize: vertical; }
.sal-map { height: 360px; border-radius: 8px; overflow: hidden; background: var(--sal-ivory); }

/* Contact card */
.sal-side { position: sticky; top: 16px; }
.sal-agent { padding: 20px; border: 1px solid var(--sal-line); border-radius: 10px; background: #fff; box-shadow: 0 6px 24px rgba(42, 58, 81, .12); }
.sal-agent a { color: var(--sal-navy); font-weight: 600; text-decoration: none; }
.sal-agent-id { display: flex; gap: 14px; align-items: center; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--sal-line); }
.sal-agent-id img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; }
.sal-agent-name { font-family: var(--sal-head); font-size: 21px; line-height: 1.2; }
.sal-agent-title { font-size: 13px; color: var(--sal-muted); }
.sal-agent-open { margin-bottom: 12px !important; padding: 8px 12px; border-radius: 6px; background: var(--sal-ivory); font-size: 14px; font-weight: 500; }
.sal-form { display: grid; gap: 12px; }
.sal-choice { display: flex; gap: 8px; }
.sal-choice label { flex: 1; cursor: pointer; position: relative; }
.sal-choice input { position: absolute; opacity: 0; }
.sal .sal-choice span {
  display: flex !important; align-items: center; justify-content: center; height: 46px; margin: 0 !important; padding: 0 6px; border-radius: 6px;
  border: 1px solid var(--sal-navy); color: var(--sal-navy) !important; font-size: 14px !important; font-weight: 600 !important; text-align: center;
}
.sal .sal-choice input:checked + span { background: var(--sal-gold); border-color: var(--sal-gold); }
.sal-choice input:focus-visible + span { outline: 2px solid var(--sal-gold); outline-offset: 2px; }
.sal-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sal-form .sal-btn { width: 100%; }
.sal-form-status { font-size: 14px; min-height: 1em; }
.sal-form-status.is-ok { color: var(--sal-forest); font-weight: 500; }
.sal-form-status.is-error { color: var(--sal-rust); }
.sal-form.is-sent label, .sal-form.is-sent .sal-choice, .sal-form.is-sent button { display: none; }
.sal-consent { font-size: 11px; line-height: 1.5; color: var(--sal-muted); }

/* Nearby homes */
.sal-similar { border-bottom: 0; }
.sal ul.sal-cards { list-style: none; margin: 0; padding: 0 0 8px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; }
.sal-card { margin: 0; scroll-snap-align: start; border-radius: 8px; overflow: hidden; background: #fff; box-shadow: 0 2px 6px rgba(42, 58, 81, .14), 0 0 0 1px rgba(42, 58, 81, .05); }
.sal-card a { display: block; color: inherit; text-decoration: none; }
.sal-card:hover { box-shadow: 0 6px 18px rgba(42, 58, 81, .22), 0 0 0 2px var(--sal-gold); }
.sal-card-photo { display: block; aspect-ratio: 16 / 10; background: var(--sal-sky); }
.sal-card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sal-card-info { display: block; padding: 10px 12px 12px; }
.sal-card-info > span { display: block; }
.sal-card-price { font-size: 20px; font-weight: 600; }
.sal-card-facts, .sal-card-address { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sal-card-courtesy { margin-top: 4px; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--sal-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.sal-fine { padding-top: 16px; border-top: 1px solid var(--sal-line); font-size: 12px; line-height: 1.5; color: var(--sal-muted); display: grid; gap: 6px; }
.sal-courtesy { font-size: 13px; font-weight: 500; color: var(--sal-navy); }

/* Full-screen photo viewer */
.sal-viewer { position: fixed; inset: 0; z-index: 100000; display: flex; flex-direction: column; background: rgba(20, 28, 40, .96); color: var(--sal-ivory); }
.sal-viewer[hidden] { display: none; }
.sal-viewer-bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; font-size: 15px; }
.sal .sal-viewer-close, .sal .sal-viewer-nav {
  display: grid; place-items: center; width: 48px; height: 48px; padding: 0; margin: 0; border: 0 !important; border-radius: 50%;
  background: rgba(246, 245, 240, .12) !important; color: var(--sal-ivory) !important; cursor: pointer; box-shadow: none !important; min-width: 0;
}
.sal-viewer-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; gap: 16px; padding: 0 16px 24px; }
.sal-viewer-stage img { max-width: calc(100% - 140px); max-height: 100%; object-fit: contain; border-radius: 4px; }
html.sal-noscroll, html.sal-noscroll body { overflow: hidden; }

/* Phones: sticky Request a tour / Call bar */
.sal-mobilebar { display: none; }

.sal-gone { text-align: center; padding: 64px 0; display: grid; gap: 16px; justify-items: center; }
.sal-gone h1 { font-family: var(--sal-head); font-weight: 400; font-size: clamp(26px, 4vw, 36px); }
.sal-gone-contact { font-size: 15px; }

@media (max-width: 1099px) {
  .sal-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; }
  .sal-pay { grid-template-columns: 1fr; }
}
@media (max-width: 899px) {
  .sal { padding: 8px 16px 96px; }
  .sal-gallery { margin: 0 -16px; border-radius: 0; }
  .sal-layout { grid-template-columns: minmax(0, 1fr); padding-top: 16px; } /* minmax(0) so wide rows (tabs, nearby homes) scroll instead of widening the page */
  .sal-side { position: static; }
  .sal-groups { grid-template-columns: 1fr; }
  .sal-mortgage-grid { grid-template-columns: 1fr 1fr; }
  .sal-keyfacts { gap: 16px; }
  .sal-viewer-stage { padding: 0 0 16px; }
  .sal-viewer-stage img { max-width: 100%; }
  .sal-viewer-nav { display: none !important; }
  .sal-mobilebar {
    display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -4px 16px rgba(42, 58, 81, .15);
  }
  .sal-mobilebar .sal-btn { flex: 1; }
}

/* ---------- Theme guards ---------- */
/* WPL's "Chosen" script replaces every <select> on the site with its own widget; keep ours native. */
.sal .chosen-container { display: none !important; }
.sal select { display: block !important; }
.sal strong, .sal b { font-family: inherit; }
.sal .sal-btn { box-shadow: none !important; text-shadow: none; min-width: 0; }
.sal .sal-btn-gold, .sal .sal-btn-gold:focus, .sal .sal-btn-gold:hover { background: var(--sal-gold) !important; color: var(--sal-navy) !important; border: 1px solid var(--sal-gold) !important; }
.sal .sal-btn-navy { background: var(--sal-navy) !important; color: var(--sal-ivory) !important; border: 1px solid var(--sal-navy) !important; }
.sal .sal-btn-outline { background: #fff !important; color: var(--sal-navy) !important; border: 1px solid var(--sal-navy) !important; }
.sal .sal-choice input { width: 1px; height: 1px; margin: 0; }
.sal .maplibregl-ctrl-group button, .sal .maplibregl-ctrl-group button:hover {
  width: 29px; height: 29px; padding: 0; margin: 0; border: 0 !important; border-radius: 0; background-color: #fff !important; box-shadow: none !important;
}
.sal .maplibregl-ctrl-group button + button { border-top: 1px solid rgba(42, 58, 81, .15); }

/* Listing pages: plain white page, no theme title bar or breadcrumbs. */
body.stonearch-listing-page { background-color: #fff !important; }
body.stonearch-listing-page .q-breadcrumbs-section { display: none !important; }

/* ---------- Contact card: Zillow-style "Request a tour" / "Contact agent" (Kyle 2026-10-20) ---------- */
.sal-cta { display: grid; gap: 10px; }
.sal-cta .sal-btn { width: 100%; }
.sal-agent.is-expanded .sal-cta .sal-btn-outline { background: var(--sal-soft) !important; }
.sal-agent .sal-form { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--sal-line); }
.sal-agent .sal-form[hidden] { display: none; }
.sal-wide { width: 100%; }

/* Tour pop-up */
.sal-modal { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(20, 28, 40, .55); }
.sal-modal[hidden] { display: none; }
.sal-modal-box { width: 100%; max-width: 520px; max-height: calc(100vh - 32px); overflow-y: auto; padding: 20px 24px 24px; border-radius: 12px; background: #fff; box-shadow: 0 20px 60px rgba(20, 28, 40, .35); }
.sal-modal-head { display: flex; align-items: center; gap: 8px; }
.sal .sal-modal-head h2 { flex: 1; margin: 0; font-size: 26px; }
.sal .sal-modal-close, .sal .sal-modal-back {
  display: grid; place-items: center; width: 40px; height: 40px; padding: 0; margin: 0; border: 0 !important; border-radius: 50%;
  background: transparent !important; color: var(--sal-navy) !important; cursor: pointer; box-shadow: none !important; min-width: 0;
}
.sal .sal-modal-close:hover, .sal .sal-modal-back:hover { background: var(--sal-soft) !important; }
.sal .sal-modal-back[hidden] { display: none; }
.sal-modal-home { margin: 2px 0 16px !important; font-size: 15px; color: var(--sal-muted); }
.sal-tour { display: block; }
.sal-step { display: grid; gap: 12px; }
.sal-step[hidden] { display: none; }
.sal-step-title { margin-top: 6px !important; font-weight: 600; font-size: 16px; }
.sal-seg2 { display: flex; border: 1px solid var(--sal-navy); border-radius: 8px; overflow: hidden; }
.sal-seg2 label { flex: 1; position: relative; cursor: pointer; }
.sal .sal-seg2 input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.sal .sal-seg2 span { display: flex !important; align-items: center; justify-content: center; height: 44px; margin: 0 !important; font-size: 15px !important; font-weight: 600; color: var(--sal-navy) !important; }
.sal .sal-seg2 input:checked + span { background: var(--sal-navy); color: var(--sal-ivory) !important; }
.sal-seg2 input:focus-visible + span { outline: 2px solid var(--sal-gold); outline-offset: -3px; }
.sal-days-wrap { display: flex; align-items: center; gap: 6px; }
.sal .sal-days-nav { display: grid; place-items: center; flex: none; width: 34px; height: 34px; padding: 0; margin: 0; border: 1px solid var(--sal-line) !important; border-radius: 50%; background: #fff !important; color: var(--sal-navy) !important; cursor: pointer; box-shadow: none !important; min-width: 0; }
.sal-days { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; flex: 1; padding: 2px; }
.sal-days::-webkit-scrollbar { display: none; }
.sal .sal-days button {
  flex: 0 0 84px; display: grid; justify-items: center; gap: 0; padding: 10px 4px; margin: 0; scroll-snap-align: start;
  border: 1px solid rgba(42, 58, 81, .3) !important; border-radius: 8px; background: #fff !important; color: var(--sal-navy) !important;
  font: 400 13px var(--sal-body); cursor: pointer; box-shadow: none !important; min-width: 0; text-transform: none; letter-spacing: 0; line-height: 1.3;
}
.sal-days b { font-size: 24px; font-weight: 600; line-height: 1.15; }
.sal-days small { font-size: 13px; color: inherit; }
.sal .sal-days button[aria-checked="true"], .sal .sal-times button[aria-checked="true"] { background: var(--sal-navy) !important; color: var(--sal-ivory) !important; border-color: var(--sal-navy) !important; }
.sal-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; max-height: 210px; overflow-y: auto; padding: 2px; }
.sal .sal-times button {
  height: 42px; padding: 0 6px; margin: 0; border: 1px solid rgba(42, 58, 81, .3) !important; border-radius: 8px; background: #fff !important; color: var(--sal-navy) !important;
  font: 500 14px var(--sal-body); cursor: pointer; box-shadow: none !important; min-width: 0; text-transform: none; letter-spacing: 0;
}
.sal .sal-times .sal-any { grid-column: 1 / -1; }
.sal .sal-btn:disabled { opacity: .45; cursor: not-allowed; }
.sal-picked { padding: 12px 14px; border-radius: 8px; background: var(--sal-ivory); font-size: 15px; }
.sal .sal-change { margin-left: 6px; padding: 0; border: 0 !important; background: none !important; color: var(--sal-navy) !important; font: 600 14px var(--sal-body); text-decoration: underline; cursor: pointer; box-shadow: none !important; min-width: 0; }
.sal-done { text-align: center; padding: 12px 0; }
.sal-done-title { font-family: var(--sal-head); font-size: 26px; }
@media (max-width: 599px) {
  .sal-modal { align-items: flex-end; padding: 0; }
  .sal-modal-box { max-width: none; max-height: 92vh; border-radius: 14px 14px 0 0; padding: 16px 16px calc(20px + env(safe-area-inset-bottom)); }
  .sal-days-nav { display: none !important; }
}
/* Grid children default to min-width:auto, which let the scrolling date row stretch the pop-up. */
.sal-step > *, .sal-days-wrap, .sal-days, .sal-times { min-width: 0; }
.sal-modal-box { overflow-x: hidden; }

@media (max-width: 599px) {
  .sal ul.sal-keyfacts { gap: 14px; font-size: 15px; }
  .sal-keyfacts b { font-size: 20px; }
  .sal ul.sal-glance { grid-template-columns: 1fr 1fr; }
  .sal-glance li { padding: 10px; font-size: 14px; }
}
