/* PropertyInsider.sg — unit matcher quiz (/new-launches/match/)
   Scoped to .fm. Loads after pillar.css. Bedroom hues come from tower-view.css
   ([data-bd] custom properties), which are data colours: never restyle them here.

   The one signature element is the lift panel: the quiz is eight storeys, read
   bottom to top, and each suggested unit is a door plaque with an elevation
   strip marking its storey. Everything around them stays quiet. */

.pillar-page .fm {
  --fm-ivory: #F3F1EC; --fm-paper: #FAF9F6; --fm-garden: #E0DFD2; --fm-moss: #B6B8AB;
  --fm-smoke: #9FA3AD; --fm-night: #3C3E4A; --fm-night-dk: #2C2E38; --fm-ink: #2E3039;
  --fm-mute: #62656F; --fm-line: #D9D8CB; --fm-ease: cubic-bezier(.22,.7,.18,1);
  font-family: 'Source Sans 3', system-ui, sans-serif;
  color: var(--fm-ink);
  font-variant-numeric: tabular-nums lining-nums;
}
.pillar-page .fm *, .pillar-page .fm *::before, .pillar-page .fm *::after { box-sizing: border-box; }
.pillar-page .fm [hidden] { display: none !important; }
.fm-num { font-variant-numeric: tabular-nums lining-nums; }

/* ------------------------------------------------------------- the stage */
.pillar-page .fm-stage { background: var(--fm-garden); padding: 56px 16px 64px; border-bottom: 1px solid var(--fm-line); }
.fm-stage-in { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 232px minmax(0,1fr); gap: 40px; align-items: start; }

/* the lift panel: DOM order is 1..8 for screen readers, drawn bottom-up */
.fm-lift { position: sticky; top: 96px; }
.fm-lift h2 { font: 600 15px/1.3 'Source Sans 3', sans-serif; color: var(--fm-mute); margin: 0 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--fm-night); }
.fm-lift ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column-reverse; position: relative; }
.fm-lift ol::before { content: ''; position: absolute; left: 17px; top: 18px; bottom: 18px; width: 1px; background: var(--fm-moss); }
.fm-lift li { position: relative; }
.fm-floor { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: center; width: 100%; padding: 7px 0; background: none; border: 0; text-align: left; font: inherit; color: var(--fm-ink); cursor: default; }
.fm-floor[data-can="1"] { cursor: pointer; }
.fm-floor .n { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--fm-paper); border: 1px solid var(--fm-moss); font-weight: 600; font-size: 14.5px; color: var(--fm-mute); position: relative; z-index: 1; transition: background-color .3s var(--fm-ease), color .3s, border-color .3s; }
.fm-floor .t { display: block; font-size: 15px; font-weight: 600; line-height: 1.25; }
.fm-floor .a { display: block; font-size: 13.5px; color: var(--fm-mute); line-height: 1.35; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 180px; }
.fm-floor[data-done="1"] .n { background: var(--fm-garden); border-color: var(--fm-night); color: var(--fm-night); }
.fm-floor[aria-current="step"] .n { background: var(--fm-night); border-color: var(--fm-night); color: var(--fm-ivory); box-shadow: 0 0 0 5px rgba(60,62,74,.12); }
.fm-floor[data-skip="1"] .t { color: var(--fm-mute); }
.fm-floor[data-can="1"]:hover .t { text-decoration: underline; text-decoration-color: var(--fm-moss); text-underline-offset: 3px; }
.fm-floor:focus-visible { outline: 2px solid var(--fm-night); outline-offset: 3px; border-radius: 10px; }
.fm-lift .fm-live { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--fm-moss); font-size: 14px; color: var(--fm-mute); line-height: 1.5; }
.fm-live b { display: block; font: 400 30px/1.1 Newsreader, Georgia, serif; color: var(--fm-night); letter-spacing: -.02em; }

/* the question card */
.fm-q { background: var(--fm-paper); border: 1px solid var(--fm-line); border-radius: 22px; padding: 40px 44px 32px; min-height: 460px; display: flex; flex-direction: column; box-shadow: 0 30px 60px -40px rgba(60,62,74,.35); }
.fm-step { font-size: 14.5px; font-weight: 600; color: var(--fm-mute); margin: 0 0 10px; }
.fm-q h2.fm-ask { font: 400 clamp(1.85rem,3.1vw,2.55rem)/1.12 Newsreader, Georgia, serif; letter-spacing: -.022em; font-optical-sizing: auto; margin: 0 0 10px; color: var(--fm-ink); max-width: 24ch; }
.fm-q h2.fm-ask:focus { outline: none; }
.fm-help { font-size: 16.5px; line-height: 1.6; color: var(--fm-mute); margin: 0 0 26px; max-width: 62ch; }
.fm-body { flex: 1; }
.fm-q.is-in .fm-body, .fm-q.is-in .fm-ask, .fm-q.is-in .fm-help { animation: fmIn .45s var(--fm-ease) both; }
.fm-q.is-in .fm-help { animation-delay: .04s; }
.fm-q.is-in .fm-body { animation-delay: .08s; }
@keyframes fmIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* answer tiles (real radios and checkboxes underneath) */
.fm-opts { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; margin: 0; padding: 0; border: 0; }
.fm-opts.one { grid-template-columns: minmax(0,1fr); }
.fm-opts.three { grid-template-columns: repeat(3, minmax(0,1fr)); }
.fm-opts legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.fm-opt { position: relative; display: block; cursor: pointer; }
.fm-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.fm-opt .box { display: grid; grid-template-columns: 1fr 22px; gap: 10px; align-items: start; height: 100%; padding: 16px 18px; border: 1px solid var(--fm-moss); border-radius: 14px; background: #fff; transition: border-color .2s, box-shadow .2s, background-color .2s; }
.fm-opt .tt { display: block; font-size: 17px; font-weight: 600; line-height: 1.3; color: var(--fm-ink); }
.fm-opt .ss { display: block; font-size: 14.5px; line-height: 1.45; color: var(--fm-mute); margin-top: 3px; }
.fm-opt .ct { display: inline-block; margin-top: 7px; font-size: 13px; font-weight: 600; color: var(--fm-night); }
.fm-opt .mk { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--fm-moss); background: #fff; display: grid; place-items: center; margin-top: 1px; transition: background-color .2s, border-color .2s; }
.fm-opt input[type="checkbox"] + .box .mk { border-radius: 6px; }
.fm-opt .mk svg { opacity: 0; transition: opacity .15s; }
.fm-opt:hover .box { border-color: var(--fm-night); }
.fm-opt input:checked + .box { border-color: var(--fm-night); box-shadow: inset 0 0 0 1px var(--fm-night); background: var(--fm-paper); }
.fm-opt input:checked + .box .mk { background: var(--fm-night); border-color: var(--fm-night); }
.fm-opt input:checked + .box .mk svg { opacity: 1; }
.fm-opt input:focus-visible + .box { outline: 2px solid var(--fm-night); outline-offset: 2px; }
.fm-opt input:disabled + .box { opacity: .5; cursor: not-allowed; }
.fm-opt[data-zero="1"] .ct { color: var(--fm-mute); font-weight: 500; }
/* bedroom tiles carry the bedroom hue as a swatch */
.fm-opt .sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; background: var(--c2); border: 1px solid var(--cm); margin-right: 8px; vertical-align: 0; }

/* location: areas grouped by the kind of home on offer */
.fm-tier + .fm-tier { margin-top: 26px; }
.fm-tier-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 0 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--fm-night); }
.fm-tier-h h3 { margin: 0; font: 600 16px/1.3 'Source Sans 3', sans-serif; color: var(--fm-ink); }
.fm-tier-h p { margin: 2px 0 0; font-size: 14px; color: var(--fm-mute); line-height: 1.45; }
.fm-tier-all { flex: none; font: 600 14px/1 'Source Sans 3', sans-serif; padding: 8px 13px; border-radius: 999px; border: 1px solid var(--fm-moss); background: #fff; color: var(--fm-ink); cursor: pointer; }
.fm-tier-all:hover { border-color: var(--fm-night); }
.fm-tier-all:focus-visible { outline: 2px solid var(--fm-night); outline-offset: 2px; }
.fm-tier .fm-opt .tt { font-size: 16px; }
.fm-opt .eg { display: block; margin-top: 4px; font-size: 13.5px; color: var(--fm-ink); }

/* inline follow-ups and forms */
.fm-sub { margin-top: 22px; padding-top: 20px; border-top: 1px dashed var(--fm-moss); }
.fm-sub > h3 { font: 600 16px/1.35 'Source Sans 3', sans-serif; margin: 0 0 12px; color: var(--fm-ink); }
.fm-sub .fm-opts { gap: 10px; }
.fm-sub .fm-opt .box { padding: 12px 14px; }
.fm-sub .fm-opt .tt { font-size: 15.5px; }
.fm-fields { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px 18px; }
.fm-field label { display: block; font-size: 14.5px; font-weight: 600; color: var(--fm-ink); margin-bottom: 6px; }
.fm-field .hint { display: block; font-size: 13px; color: var(--fm-mute); margin-top: 5px; line-height: 1.45; }
.fm-money { display: flex; align-items: center; border: 1px solid var(--fm-moss); border-radius: 12px; background: #fff; transition: border-color .2s; }
.fm-money:focus-within { border-color: var(--fm-night); box-shadow: inset 0 0 0 1px var(--fm-night); }
.fm-money span { padding: 0 0 0 14px; color: var(--fm-mute); font-weight: 600; }
.fm-money input { flex: 1; min-width: 0; border: 0; background: transparent; font: 600 18px/1 'Source Sans 3', sans-serif; font-variant-numeric: tabular-nums; color: var(--fm-ink); padding: 13px 14px 13px 6px; outline: none; }
.fm-money.plain span { display: none; }
.fm-money.plain input { padding-left: 14px; }
.fm-check { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: 15px; line-height: 1.45; cursor: pointer; }
.fm-check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--fm-night); flex: none; }
.fm-err { margin: 12px 0 0; font-size: 14.5px; color: #8A2E2E; font-weight: 600; }
.fm-callout { margin: 18px 0 0; padding: 14px 16px; border-radius: 14px; background: var(--fm-ivory); border: 1px solid var(--fm-line); font-size: 15px; line-height: 1.55; }
.fm-callout b { color: var(--fm-ink); }
.fm-callout.ok { border-color: #9FC5AA; background: #EEF5EF; }
.fm-callout.no { border-color: #D8B4B4; background: #F7EEEE; }
.fm-callout ul { margin: 6px 0 0; padding-left: 18px; }
.fm-callout li { margin: 3px 0; }
.fm-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.fm-quick button { font: 600 14px/1 'Source Sans 3', sans-serif; padding: 8px 13px; border-radius: 999px; border: 1px solid var(--fm-moss); background: #fff; color: var(--fm-ink); cursor: pointer; }
.fm-quick button:hover { border-color: var(--fm-night); }
.fm-quick button:focus-visible { outline: 2px solid var(--fm-night); outline-offset: 2px; }

/* card footer */
.fm-nav { display: flex; align-items: center; gap: 14px; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--fm-line); }
.fm-nav .sp { flex: 1; }
.fm-btn { display: inline-flex; align-items: center; gap: 8px; font: 600 16px/1 'Source Sans 3', sans-serif; padding: 14px 24px; border-radius: 999px; border: 1px solid var(--fm-night); background: var(--fm-night); color: var(--fm-ivory); cursor: pointer; text-decoration: none; transition: background-color .2s, transform .2s var(--fm-ease); }
.fm-btn:hover { background: var(--fm-night-dk); }
.fm-btn:active { transform: translateY(1px); }
.fm-btn:focus-visible { outline: 2px solid var(--fm-night); outline-offset: 3px; }
.fm-btn.ghost { background: transparent; color: var(--fm-night); border-color: var(--fm-moss); }
.fm-btn.ghost:hover { border-color: var(--fm-night); background: #fff; }
.fm-btn[disabled] { opacity: .45; cursor: not-allowed; }
.fm-restart { display: inline-flex; align-items: center; gap: 7px; font: 600 15px/1 'Source Sans 3', sans-serif; padding: 12px 16px; border-radius: 999px; border: 1px solid transparent; background: none; color: var(--fm-mute); cursor: pointer; transition: color .2s, border-color .2s; }
.fm-restart:hover { color: var(--fm-night); border-color: var(--fm-moss); }
.fm-restart:focus-visible { outline: 2px solid var(--fm-night); outline-offset: 2px; }
.fm-tools .fm-btn svg { margin-right: 2px; }
.fm-back { font: 600 15px/1 'Source Sans 3', sans-serif; background: none; border: 0; color: var(--fm-night); cursor: pointer; padding: 8px 0; text-decoration: underline; text-decoration-color: var(--fm-moss); text-underline-offset: 3px; }
.fm-back:hover { text-decoration-color: var(--fm-night); }
.fm-back:focus-visible { outline: 2px solid var(--fm-night); outline-offset: 3px; border-radius: 4px; }
.fm-skip { font-size: 14px; color: var(--fm-mute); }

/* ------------------------------------------------------------- results */
.pillar-page .fm-res { padding: 56px 16px 24px; background: var(--fm-ivory); }
.fm-res-in { max-width: 1120px; margin: 0 auto; }
.fm-res h2 { font: 400 clamp(1.9rem,3.2vw,2.6rem)/1.12 Newsreader, Georgia, serif; letter-spacing: -.022em; margin: 0 0 10px; max-width: 26ch; }
.fm-res h2:focus { outline: none; }
.fm-res .lede { font-size: 17px; line-height: 1.6; color: var(--fm-mute); max-width: 68ch; margin: 0 0 26px; }
.fm-res h3.fm-h { font: 600 15px/1.3 'Source Sans 3', sans-serif; color: var(--fm-mute); margin: 46px 0 16px; padding-bottom: 8px; border-bottom: 1px solid var(--fm-night); }
.fm-res h3.fm-h b { color: var(--fm-ink); }

/* the money strip: one panel, hairline cells (Reading ergonomics §4) */
.fm-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,190px),1fr)); background: var(--fm-paper); border: 1px solid var(--fm-line); border-radius: 18px; overflow: hidden; }
.fm-strip > div { padding: 16px 20px; box-shadow: 1px 0 0 var(--fm-line), 0 1px 0 var(--fm-line); }
.fm-strip .k { display: block; font-size: 13.5px; font-weight: 600; color: var(--fm-mute); margin-bottom: 4px; }
.fm-strip .v { display: block; font-size: clamp(19px,1.9vw,23px); font-weight: 600; color: var(--fm-ink); line-height: 1.15; white-space: nowrap; }
.fm-strip .s { display: block; font-size: 13px; color: var(--fm-mute); margin-top: 4px; line-height: 1.45; }
.fm-strip .main .v { font: 400 clamp(26px,2.6vw,32px)/1.05 Newsreader, Georgia, serif; letter-spacing: -.02em; color: var(--fm-night); }
.fm-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 18px 0 0; }
.fm-tools .fm-btn { padding: 11px 18px; font-size: 15px; }
.fm-notes { margin: 16px 0 0; font-size: 14.5px; color: var(--fm-mute); line-height: 1.6; max-width: 80ch; }
.fm-notes p { margin: 6px 0; }

/* the door plaques */
.fm-picks { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.fm-plq { position: relative; display: grid; grid-template-columns: minmax(0,1fr) 26px; gap: 14px; text-align: left; font: inherit; color: inherit; width: 100%; padding: 20px 18px 18px 22px; border: 1px solid var(--fm-line); border-radius: 18px; background: var(--fm-paper); cursor: pointer; transition: transform .35s var(--fm-ease), box-shadow .35s var(--fm-ease), border-color .2s; }
.fm-plq::before { content: ''; position: absolute; left: 0; top: 178px; bottom: 18px; width: 4px; border-radius: 0 4px 4px 0; background: var(--cm); }
.fm-plq:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -26px rgba(60,62,74,.45); border-color: var(--fm-moss); }
.fm-plq:focus-visible { outline: 2px solid var(--fm-night); outline-offset: 3px; }
.fm-plq .rk { font-size: 13px; font-weight: 600; color: var(--fm-mute); }
.fm-plq .pj { display: block; font-size: 16px; font-weight: 600; color: var(--fm-ink); line-height: 1.3; margin-top: 2px; }
.fm-plq .no { display: block; font: 400 44px/1 Newsreader, Georgia, serif; letter-spacing: -.03em; color: var(--fm-ink); margin: 14px 0 8px; }
.fm-plq .ln { display: block; font-size: 14.5px; color: var(--fm-mute); line-height: 1.45; }
.fm-plq .ln .bd { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--fm-ink); }
.fm-plq .ln .bd i { width: 10px; height: 10px; border-radius: 3px; background: var(--cf); border: 1px solid var(--cm); }
.fm-plq .pr { display: flex; align-items: baseline; gap: 8px; margin-top: 14px; }
.fm-plq .pr b { font-size: 26px; font-weight: 600; color: var(--fm-ink); line-height: 1; }
.fm-est { display: inline-block; font-size: 11.5px; font-weight: 600; line-height: 1; padding: 4px 7px; border: 1px solid var(--fm-moss); border-radius: 999px; color: var(--fm-mute); vertical-align: 2px; }
.fm-est.list { border-color: var(--fm-night); color: var(--fm-night); }
.fm-plq .fm-meter { display: block; margin-top: 10px; }
.fm-plq .fm-meter .fm-bar { display: block; height: 6px; border-radius: 99px; background: var(--fm-garden); overflow: hidden; }
.fm-plq .fm-meter .fm-bar i { display: block; height: 6px; border-radius: 99px; background: var(--fm-night); width: 0; transition: width .9s var(--fm-ease) .2s; }
.fm-meter small { display: block; font-size: 13px; color: var(--fm-mute); margin-top: 5px; }
.fm-plq > span:nth-child(2) { display: block; min-width: 0; }
/* project thumbnail: the render, or the site's OneMap fallback (PI.cardThumb) */
.fm-thumb { display: block; position: relative; overflow: hidden; height: 150px; background: var(--fm-garden); }
.fm-thumb .proj-thumb { display: block; width: 100%; height: 150px; object-fit: cover; transition: transform 1.1s var(--fm-ease); }
.fm-thumb .proj-thumb--map { position: relative; }
.fm-plq .fm-thumb { grid-column: 1 / -1; margin: -20px -18px 2px -22px; border-radius: 17px 17px 0 0; z-index: 1; }
.fm-plq:hover .fm-thumb img.proj-thumb, .fm-soon a.card:hover .fm-thumb img.proj-thumb { transform: scale(1.05); }
.fm-why { display: block; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--fm-line); }
.fm-why > span { display: block; position: relative; padding-left: 16px; font-size: 14.5px; line-height: 1.45; margin: 5px 0; color: var(--fm-ink); }
.fm-why > span::before { content: ''; position: absolute; left: 2px; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--fm-moss); }
.fm-plq .go { display: block; margin-top: 14px; font-size: 14.5px; font-weight: 600; color: var(--fm-night); text-decoration: underline; text-decoration-color: var(--fm-moss); text-underline-offset: 3px; }
.fm-plq:hover .go { text-decoration-color: var(--fm-night); }

/* the elevation strip */
.fm-elev { position: relative; display: block; width: 26px; height: 100%; min-height: 200px; border-radius: 8px; background: repeating-linear-gradient(to top, var(--fm-garden) 0, var(--fm-garden) calc(100% / var(--n, 12) - 1px), var(--fm-paper) calc(100% / var(--n, 12) - 1px), var(--fm-paper) calc(100% / var(--n, 12))); border: 1px solid var(--fm-line); margin: 18px 0; }
.fm-elev i { position: absolute; left: -4px; right: -4px; height: max(7px, calc(100% / var(--n, 12))); border-radius: 3px; background: var(--cf); border: 1.5px solid var(--cm); box-shadow: 0 2px 6px rgba(60,62,74,.22); bottom: var(--at, 0); }
.fm-elev span { position: absolute; left: 50%; transform: translateX(-50%); font-size: 11.5px; font-weight: 600; color: var(--fm-mute); white-space: nowrap; }
.fm-elev .top { top: -19px; }
.fm-elev .low { bottom: -19px; }

/* arrival: the one orchestrated moment */
.fm-res.is-new .fm-plq { animation: fmIn .6s var(--fm-ease) both; }
.fm-res.is-new .fm-plq:nth-child(2) { animation-delay: .07s; } .fm-res.is-new .fm-plq:nth-child(3) { animation-delay: .14s; }
.fm-res.is-new .fm-plq:nth-child(4) { animation-delay: .21s; } .fm-res.is-new .fm-plq:nth-child(5) { animation-delay: .28s; }
.fm-res.is-new .fm-plq:nth-child(6) { animation-delay: .35s; } .fm-res.is-new .fm-plq:nth-child(n+7) { animation-delay: .42s; }

/* every unit, by project */
.fm-all details { border: 1px solid var(--fm-line); border-radius: 16px; background: var(--fm-paper); margin-bottom: 10px; overflow: hidden; }
.fm-all summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 4px 16px; align-items: center; padding: 16px 20px; }
.fm-all summary::-webkit-details-marker { display: none; }
.fm-all summary:focus-visible { outline: 2px solid var(--fm-night); outline-offset: -2px; border-radius: 16px; }
.fm-all summary .nm { font-size: 17px; font-weight: 600; color: var(--fm-ink); }
.fm-all summary .mt { grid-column: 1; font-size: 14px; color: var(--fm-mute); }
.fm-all summary .ct { grid-row: 1 / span 2; grid-column: 2; font-size: 14.5px; font-weight: 600; color: var(--fm-night); text-align: right; }
.fm-all summary .ct::after { content: ''; display: inline-block; width: 8px; height: 8px; margin-left: 10px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
.fm-all details[open] summary .ct::after { transform: rotate(-135deg) translateY(-1px); }
.fm-rows { list-style: none; margin: 0; padding: 0 12px 12px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%,250px),1fr)); gap: 8px; }
.fm-row { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 2px 12px; align-items: center; width: 100%; text-align: left; font: inherit; color: inherit; padding: 11px 13px; border-radius: 12px; border: 1px solid var(--fm-line); background: #fff; cursor: pointer; transition: border-color .2s; }
.fm-row:hover { border-color: var(--fm-night); }
.fm-row:focus-visible { outline: 2px solid var(--fm-night); outline-offset: 2px; }
.fm-row .u { grid-row: 1 / span 2; font: 400 22px/1 Newsreader, Georgia, serif; letter-spacing: -.02em; padding-left: 10px; border-left: 4px solid var(--cm); }
.fm-row .p { font-size: 15.5px; font-weight: 600; }
.fm-row .d { font-size: 13.5px; color: var(--fm-mute); }
.fm-more { margin: 4px 0 0; }

/* previewing soon */
.fm-soon { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%,320px),1fr)); gap: 14px; }
.fm-soon a.card { display: block; padding: 0; overflow: hidden; border: 1px dashed var(--fm-smoke); border-radius: 16px; background: transparent; color: inherit; text-decoration: none; transition: border-color .2s, background-color .2s; }
.fm-soon a.card:hover { border-color: var(--fm-night); background: var(--fm-paper); }
.fm-soon a.card:focus-visible { outline: 2px solid var(--fm-night); outline-offset: 2px; }
.fm-soon .in { display: block; padding: 16px 20px 18px; }
.fm-soon .fm-thumb { border-bottom: 1px dashed var(--fm-smoke); }
.fm-soon .go { display: block; margin-top: 12px; font-size: 14.5px; font-weight: 600; color: var(--fm-night); text-decoration: underline; text-decoration-color: var(--fm-moss); text-underline-offset: 3px; }
.fm-soon .nm { display: block; font-size: 17px; font-weight: 600; }
.fm-soon .mt { display: block; font-size: 14px; color: var(--fm-mute); margin-top: 2px; }
.fm-soon dl { margin: 12px 0 0; font-size: 14.5px; }
.fm-soon dl > div { display: grid; grid-template-columns: 9.5rem minmax(0,1fr); gap: 12px; padding: 5px 0; border-top: 1px solid var(--fm-line); }
.fm-soon dd .fm-est { margin-left: 4px; }
.fm-soon dt { color: var(--fm-mute); }
.fm-soon dd { margin: 0; font-weight: 600; }

.fm-empty { padding: 26px 28px; border: 1px dashed var(--fm-smoke); border-radius: 18px; background: var(--fm-paper); font-size: 16px; line-height: 1.6; }
.fm-empty b { display: block; font: 400 24px/1.2 Newsreader, Georgia, serif; margin-bottom: 6px; }
.fm-empty ul { margin: 8px 0 0; padding-left: 20px; }
.fm-foot { margin: 34px 0 0; padding-top: 16px; border-top: 1px solid var(--fm-line); font-size: 13.5px; color: var(--fm-mute); line-height: 1.65; max-width: 90ch; }

/* ------------------------------------------------------------- the unit sheet */
dialog.fm-sheet { position: fixed; inset: 0; margin: auto; padding: 0; border: 0; border-radius: 22px; width: min(1120px, calc(100vw - 48px)); height: min(800px, calc(100vh - 48px)); max-width: none; max-height: none; background: var(--fm-paper); color: var(--fm-ink); box-shadow: 0 40px 90px -30px rgba(20,22,30,.55); overflow: hidden; }
dialog.fm-sheet::backdrop { background: rgba(44,46,56,.55); backdrop-filter: blur(3px); }
dialog.fm-sheet[open] { animation: fmSheet .35s var(--fm-ease) both; }
@keyframes fmSheet { from { opacity: 0; transform: translateY(16px) scale(.985); } to { opacity: 1; transform: none; } }
html.fm-lock { overflow: hidden; }
.fms { height: 100%; display: grid; grid-template-rows: auto auto minmax(0,1fr); }
.fms-head { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 18px; align-items: center; padding: 20px 24px 16px; border-bottom: 1px solid var(--fm-line); }
.fms-no { font: 400 42px/1 Newsreader, Georgia, serif; letter-spacing: -.03em; padding-left: 14px; border-left: 5px solid var(--cm); }
.fms-id h3 { margin: 0; font: 600 18px/1.3 'Source Sans 3', sans-serif; }
.fms-id p { margin: 3px 0 0; font-size: 14.5px; color: var(--fm-mute); }
.fms-x { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--fm-moss); background: #fff; color: var(--fm-ink); display: grid; place-items: center; cursor: pointer; }
.fms-x:hover { border-color: var(--fm-night); }
.fms-x:focus-visible { outline: 2px solid var(--fm-night); outline-offset: 2px; }
.fms-tabs { display: none; gap: 6px; padding: 10px 16px; border-bottom: 1px solid var(--fm-line); }
.fms-tabs button { flex: 1; font: 600 14.5px/1 'Source Sans 3', sans-serif; padding: 10px 8px; border-radius: 999px; border: 1px solid var(--fm-moss); background: #fff; color: var(--fm-ink); cursor: pointer; }
.fms-tabs button[aria-selected="true"] { background: var(--fm-night); border-color: var(--fm-night); color: var(--fm-ivory); }
.fms-tabs button:focus-visible { outline: 2px solid var(--fm-night); outline-offset: 2px; }
.fms-body { display: grid; grid-template-columns: 400px minmax(0,1fr); min-height: 0; }
.fms-side { overflow-y: auto; padding: 22px 24px 26px; border-right: 1px solid var(--fm-line); overscroll-behavior: contain; }
.fms-price .big { display: flex; align-items: baseline; gap: 10px; }
.fms-price .big b { font: 400 40px/1 Newsreader, Georgia, serif; letter-spacing: -.025em; }
.fms-price .sub { font-size: 14.5px; color: var(--fm-mute); margin: 6px 0 0; line-height: 1.5; }
.fms-sec { margin-top: 22px; }
.fms-sec h4 { font: 600 15px/1.3 'Source Sans 3', sans-serif; color: var(--fm-mute); margin: 0 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--fm-night); }
.fms-dl { margin: 0; display: grid; gap: 0; }
.fms-dl > div { display: grid; grid-template-columns: 9.5rem minmax(0,1fr); gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--fm-line); font-size: 14.5px; line-height: 1.45; }
.fms-dl dt { color: var(--fm-mute); }
.fms-dl dd { margin: 0; font-weight: 600; }
.fms-dl dd small { display: block; font-weight: 400; font-size: 13px; color: var(--fm-mute); }
/* the cost ledger is the one right-aligned exception (Reading ergonomics §1) */
.fms-led > div { grid-template-columns: minmax(0,1fr) auto; }
.fms-led dd { text-align: right; }
.fms-led > div.tot { border-bottom: 0; border-top: 1px solid var(--fm-night); margin-top: -1px; }
.fms-note { font-size: 13.5px; color: var(--fm-mute); line-height: 1.55; margin: 10px 0 0; }
.fms-links { display: grid; gap: 8px; margin-top: 22px; }
.fms-links .fm-btn { justify-content: center; }
.fms { position: relative; }
.fms-plan { display: grid; grid-template-rows: auto minmax(0,1fr); min-height: 0; padding: 14px 22px 18px; background: #fff; }
.fms-mtabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--fm-garden); justify-self: start; margin-bottom: 12px; }
.fms-mtabs:empty { display: none; }
.fms-mtabs button { display: inline-flex; align-items: center; gap: 8px; font: 600 15px/1 'Source Sans 3', sans-serif; padding: 10px 16px; border: 0; border-radius: 999px; background: transparent; color: var(--fm-ink); cursor: pointer; }
.fms-mtabs button span { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: rgba(60,62,74,.1); font-size: 12.5px; }
.fms-mtabs button[aria-selected="true"] { background: var(--fm-night); color: var(--fm-ivory); }
.fms-mtabs button[aria-selected="true"] span { background: rgba(243,241,236,.18); }
.fms-mtabs button:focus-visible { outline: 2px solid var(--fm-night); outline-offset: 2px; }
.fms-mp { display: grid; grid-template-rows: minmax(0,1fr) auto auto auto; min-height: 0; }
.fms-mp[data-mpanel="v"] { display: block; overflow-y: auto; }
.fms-frame { position: relative; min-height: 0; display: grid; place-items: center; border-radius: 14px; background: var(--fm-paper); border: 1px solid var(--fm-line); overflow: hidden; }
.fms-frame img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; transition: opacity .25s; cursor: zoom-in; }
.fms-frame img.loading { opacity: .25; }
.fms-zbtn { position: absolute; right: 14px; bottom: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; font: 600 15px/1 'Source Sans 3', sans-serif; padding: 12px 18px; border-radius: 999px; border: 0; background: var(--fm-night); color: var(--fm-ivory); cursor: pointer; box-shadow: 0 8px 20px -10px rgba(44,46,56,.6); }
.fms-zbtn:hover { background: var(--fm-night-dk); }
.fms-zbtn:focus-visible { outline: 2px solid var(--fm-night); outline-offset: 3px; }
.fms-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--fm-moss); background: rgba(255,255,255,.94); color: var(--fm-ink); display: grid; place-items: center; cursor: pointer; z-index: 2; }
.fms-arrow:hover { border-color: var(--fm-night); }
.fms-arrow:focus-visible { outline: 2px solid var(--fm-night); outline-offset: 2px; }
.fms-arrow.p { left: 10px; } .fms-arrow.n { right: 10px; }
.fms-cap { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; justify-content: space-between; margin: 12px 0 0; font-size: 14.5px; }
.fms-cap b { margin-right: 8px; }
.fms-cap .c { color: var(--fm-mute); font-size: 13.5px; }
.fms-cap .this { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: var(--fm-night); color: var(--fm-ivory); margin-left: 6px; }
.fms-pills { display: flex; gap: 6px; overflow-x: auto; padding: 10px 0 2px; scrollbar-width: thin; }
.fms-pills:empty { display: none; }
.fms-pills button { flex: none; font: 600 13.5px/1 'Source Sans 3', sans-serif; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--fm-moss); background: #fff; color: var(--fm-ink); cursor: pointer; }
.fms-pills button[aria-pressed="true"] { background: var(--fm-night); border-color: var(--fm-night); color: var(--fm-ivory); }
.fms-pills button:focus-visible { outline: 2px solid var(--fm-night); outline-offset: 2px; }
/* virtual tours */
.fms-tours { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.fms-tours a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; border: 1px solid var(--fm-line); border-radius: 14px; background: var(--fm-paper); color: var(--fm-ink); text-decoration: none; transition: border-color .2s; }
.fms-tours a:hover { border-color: var(--fm-night); }
.fms-tours a:focus-visible { outline: 2px solid var(--fm-night); outline-offset: 2px; }
.fms-tours b { display: block; font-size: 16px; }
.fms-tours small { display: block; font-size: 13.5px; color: var(--fm-mute); margin-top: 3px; }
/* the full-size viewer: covers the sheet, click to magnify, move to look around */
.fms-zoom { position: absolute; inset: 0; z-index: 10; background: #fff; display: grid; grid-template-rows: minmax(0,1fr) auto; overflow: hidden; }
.fms-zoom img { width: 100%; height: 100%; object-fit: contain; padding: 18px; cursor: zoom-in; transition: transform .25s var(--fm-ease); min-height: 0; }
.fms-zoom.big img { transform: scale(2.4); cursor: zoom-out; }
.fms-zbar { display: flex; align-items: center; gap: 16px; padding: 12px 18px; border-top: 1px solid var(--fm-line); background: var(--fm-paper); position: relative; z-index: 1; }
.fms-zcap { flex: 1; font-size: 15px; }
.fms-zhint { font-size: 13.5px; color: var(--fm-mute); }
.fms-none { margin: auto; max-width: 42ch; text-align: center; font-size: 15.5px; color: var(--fm-mute); line-height: 1.6; padding: 30px; }
.fms-none a { color: var(--fm-night); font-weight: 600; }

/* ------------------------------------------------------------- responsive */
@media (max-width: 1040px) {
  .fm-picks { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .fms-body { grid-template-columns: 340px minmax(0,1fr); }
}
@media (max-width: 1100px) and (min-width: 641px) {
  .fm-tier .fm-opts.three { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 900px) {
  .fm-stage-in { grid-template-columns: minmax(0,1fr); gap: 18px; }
  .fm-lift { position: static; }
  .fm-lift h2 { display: none; }
  .fm-lift ol { flex-direction: row; justify-content: space-between; }
  .fm-lift ol::before { left: 18px; right: 18px; top: 50%; bottom: auto; width: auto; height: 1px; }
  .fm-floor { grid-template-columns: 36px; padding: 0; }
  .fm-floor .t, .fm-floor .a { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .fm-floor .n { width: 34px; height: 34px; font-size: 14px; }
  .fm-lift .fm-live { margin-top: 12px; padding-top: 0; border-top: 0; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
  .fm-live b { display: inline; font-size: 22px; }
  .fm-q { padding: 28px 24px 24px; min-height: 0; border-radius: 18px; }
  /* tablet and phone: the sheet goes full screen and the side column becomes tabs */
  dialog.fm-sheet { width: 100vw; height: 100dvh; height: 100vh; border-radius: 0; }
  @supports (height: 100dvh) { dialog.fm-sheet { height: 100dvh; } }
  .fms-tabs { display: flex; }
  .fms-body { grid-template-columns: minmax(0,1fr); }
  .fms-side { border-right: 0; }
  .fms-body[data-tab="plan"] .fms-side, .fms-body[data-tab="price"] .fms-plan, .fms-body[data-tab="project"] .fms-plan { display: none; }
  .fms-body[data-tab="price"] .fms-proj, .fms-body[data-tab="project"] .fms-price, .fms-body[data-tab="project"] .fms-cost { display: none; }
  .fms-head { padding: 14px 16px 12px; gap: 12px; }
  .fms-no { font-size: 32px; }
  .fms-plan { padding: 12px 14px 14px; }
  .fms-zbtn { padding: 10px 14px; font-size: 14px; }
  .fms-zhint { display: none; }
}
@media (max-width: 640px) {
  .pillar-page .fm-stage { padding: 28px 12px 36px; }
  .pillar-page .fm-res { padding: 40px 16px 16px; }
  .fm-opts, .fm-opts.three, .fm-fields { grid-template-columns: minmax(0,1fr); }
  .fm-opts.beds { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .fm-picks { grid-template-columns: minmax(0,1fr); }
  .fm-q h2.fm-ask { font-size: 1.75rem; }
  .fm-nav .fm-btn { padding: 13px 20px; }
  .fm-nav { flex-wrap: wrap; gap: 8px; }
  .fm-restart { padding: 10px 8px; }
  .fm-plq .no { font-size: 38px; }
  .fms-dl > div { grid-template-columns: 7.75rem minmax(0,1fr); }
  .fms-led > div { grid-template-columns: minmax(0,1fr) auto; }
  .fm-soon dl > div { grid-template-columns: 7.75rem minmax(0,1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .fm *, .fm *::before, .fm *::after, dialog.fm-sheet[open] { animation: none !important; transition: none !important; }
}
