/* ==========================================================================
   Residential / Size: "Built for the size of your home."
   Design: Danny's ad landing page v3 (section.pr#pricing, css/styles.css PRICING block + animations.css), ported to
   the site breakpoints: desktop >= 1440, tablet 810 to 1439.98, phone <= 809.98.
   Root attribute data-state = open tab (custom | studio | 1br | 2br | 3br); every [data-for] element shows only for
   its tab. JS (30-size.js) adds .is-js: sliding tab indicator, count-up, fades, device image scale.
   ========================================================================== */

/* ---------- Desktop (>= 1440px), and the base for every breakpoint ---------- */
.nf-res-size {
  --nf-res-size-reg: "SF Pro Display Regular", "Nafas Inter", sans-serif;
  --nf-res-size-med: "SF Pro Display Medium", "Nafas Inter", sans-serif;
  --nf-res-size-green: #91c851;
  --nf-res-size-green-ink: #365e08;
  --nf-res-size-grey-bg: #f5f5f5;
  --nf-res-size-grey-600: #616161;
  --nf-res-size-grey-500: #9e9e9e;
  --nf-res-size-out-expo: cubic-bezier(.16, 1, .3, 1);
  --nf-res-size-out-cubic: cubic-bezier(.33, 1, .68, 1);
  /* spring-ui of the source page (settles in about 520ms) */
  --nf-res-size-spring: cubic-bezier(.33, 1, .68, 1);
  /* header reveal (source: fade up 16px, 600ms, out-expo; tabs 80ms later) */
  --nf-reveal-from-transform: translateY(16px);
  --nf-reveal-duration: .6s;
  --nf-reveal-ease: cubic-bezier(.16, 1, .3, 1);

  position: relative; display: block; width: 100%;
  background-color: #fff; color: #000;
}
@supports (transition-timing-function: linear(0, 1)) {
  .nf-res-size {
    --nf-res-size-spring: linear(0, 0.0281, 0.0973, 0.1892, 0.2909, 0.3937, 0.4918, 0.5817, 0.6616, 0.7308, 0.7896, 0.8385, 0.8785, 0.9106, 0.9361, 0.9558, 0.9709, 0.9821, 0.9903, 0.996, 1, 1.0025, 1.004, 1.0048, 1.005, 1.0049, 1.0046, 1.0041, 1.0036, 1.0031, 1.0026, 1.0022, 1);
  }
}
/* one element per tab: only the open tab's copy, price, photo and device row show */
.nf-res-size:not([data-state="custom"]) [data-for="custom"],
.nf-res-size:not([data-state="studio"]) [data-for="studio"],
.nf-res-size:not([data-state="1br"]) [data-for="1br"],
.nf-res-size:not([data-state="2br"]) [data-for="2br"],
.nf-res-size:not([data-state="3br"]) [data-for="3br"] { display: none !important; }

.nf-res-size__wrap {
  display: flex; flex-direction: column; align-items: center; gap: 40px;
  width: 100%; max-width: 1560px; margin: 0 auto; padding: 80px 60px;
}

/* Header: title + tab strip */
.nf-res-size__head { display: flex; flex-direction: column; gap: 20px; width: 100%; }
.nf-res-size__title {
  width: 100%; margin: 0;
  font: 400 52px/62.4px var(--nf-font-sfns-text); letter-spacing: normal; color: #000;
  /* regular weight, the same font as "Real Stories from Clean Air Zone Members." (Danny 2026-10-27; live: Medium 500),
     and its 1.2 line height (Nathan 2026-11-12; was 1.1) */
}
.nf-res-size__tabs {
  position: relative; display: flex; align-items: center; gap: 20px;
  overflow-x: auto; overflow-y: hidden; scrollbar-width: none;
  --nf-reveal-delay: 80ms;
}
.nf-res-size__tabs::-webkit-scrollbar { display: none; }
.nf-res-size__tab {
  box-sizing: border-box; display: block; flex: none; padding: 8px;
  font: 500 16px/22.4px var(--nf-res-size-med); letter-spacing: .64px; color: var(--nf-res-size-grey-600);
  white-space: nowrap; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: color 200ms var(--nf-res-size-out-cubic);
}
.nf-res-size__tab.is-on { color: #000; }
.nf-res-size:not(.is-js) .nf-res-size__tab.is-on { box-shadow: inset 0 -2px 0 var(--nf-res-size-green); }
.nf-res-size__tab-short { display: none; }
.nf-res-size__tab:focus-visible { outline: 2px solid var(--nf-res-size-green); outline-offset: -2px; }
@media (hover: hover) { .nf-res-size__tab:hover { color: #000; } }
/* green indicator: one bar that travels between tabs (JS sets top, width and translateX) */
.nf-res-size__ind {
  position: absolute; left: 0; top: 0; width: 0; height: 2px; display: none;
  background-color: var(--nf-res-size-green); pointer-events: none; will-change: transform, width;
}
.nf-res-size.is-js .nf-res-size__ind { display: block; }
.nf-res-size__ind.is-go {
  transition: transform 520ms var(--nf-res-size-spring), width 520ms var(--nf-res-size-spring);
}

/* Row: media (photo card + device tiles) | plan info */
.nf-res-size__row {
  display: flex; align-items: center; justify-content: center; gap: 48px;
  width: 100%; height: 740px;
}
.nf-res-size__media {
  flex: 1 1 0; min-width: 0; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
}
.nf-res-size__card {
  position: relative; flex: 1 1 0; width: 100%; min-height: 0;
  border-radius: 20px; background-color: var(--nf-res-size-grey-bg); overflow: hidden;
}
.nf-res-size__photo {
  position: absolute; top: 50px; left: 50px; width: calc(100% - 100px); height: calc(100% - 100px);
  max-width: none; object-fit: contain;
}
.nf-res-size__photo--cover { top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 20px; }

.nf-res-size__devices {
  flex: none; display: flex; align-items: center; justify-content: center; gap: 16px;
  width: 100%; height: 212px;
  --nf-res-size-s: 1;
}
.nf-res-size__devices--four { height: 153px; }
.nf-res-size__device {
  position: relative; flex: 1 1 0; min-width: 0; height: 100%; padding: 24px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  border-radius: 20px; background-color: var(--nf-res-size-grey-bg);
}
.nf-res-size__device img {
  flex: none; max-width: none; object-fit: cover;
  width: calc(var(--w) * var(--nf-res-size-s) * var(--nf-res-size-k, 1) * 1px); height: calc(var(--h) * var(--nf-res-size-s) * var(--nf-res-size-k, 1) * 1px);
  transform: translate(var(--nf-res-size-dx, 0px), var(--nf-res-size-dy, 0px));
}

.nf-res-size__info { flex: 1 1 0; min-width: 0; height: 100%; display: flex; flex-direction: column; }

/* Plans panel (Studio, 1BR, 2BR, 3BR): one even 32px gap between blocks */
.nf-res-size__plans-panel { display: flex; flex-direction: column; align-items: stretch; gap: 32px; width: 100%; }
.nf-res-size[data-state="custom"] .nf-res-size__plans-panel { display: none; }

.nf-res-size__plans { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.nf-res-size__plan { display: flex; align-items: flex-start; gap: 18px; padding: 20px 0; }
.nf-res-size__plan:first-child { padding-top: 0; }
.nf-res-size__plan:last-child { padding-bottom: 0; }
.nf-res-size__plan + .nf-res-size__plan { border-top: 1px solid #b2b2b2; }
.nf-res-size__icon { flex: none; display: block; width: 36px; height: 36px; }
.nf-res-size__plan-text { flex: 1; min-width: 0; }
.nf-res-size__plan-name { font: 500 18px/22px var(--nf-res-size-med); color: #000; }
.nf-res-size__plan-note { margin-top: 4px; font: 400 16px/20px var(--nf-res-size-reg); color: var(--nf-res-size-grey-600); }
.nf-res-size__save { font-family: var(--nf-res-size-med); color: var(--nf-res-size-green-ink); }
/* Monthly setup fee, highlighted (Danny 2026-10-23): Monthly only, Annual has none. */
.nf-res-size__fee { font-family: var(--nf-res-size-med); color: #000; white-space: nowrap; }
/* Annual: "Save ... / year. No setup fee." on one line (Danny 2026-10-23). On rows too narrow for it (small phones)
   "No setup fee." wraps under the saving without an indent: the box starts one space to the left and clip-path hides that strip. */
.nf-res-size__plan-text--annual { --gap: 5px; display: flex; flex-wrap: wrap; align-items: baseline; margin-left: calc(-1 * var(--gap)); clip-path: inset(0 0 0 var(--gap)); }
.nf-res-size__plan-text--annual .nf-res-size__plan-name { flex: 0 0 calc(100% - var(--gap)); }
.nf-res-size__plan-text--annual .nf-res-size__plan-name, .nf-res-size__plan-text--annual .nf-res-size__save { margin-left: var(--gap); }
.nf-res-size__no-fee { white-space: nowrap; padding-left: var(--gap); }
.nf-res-size__plan-price { flex: none; text-align: end; }
.nf-res-size__amt { font: 500 28px/33.6px var(--nf-res-size-med); color: #000; white-space: nowrap; }
.nf-res-size__per { margin-top: 4px; font: 400 16px/20px var(--nf-res-size-reg); color: var(--nf-res-size-grey-500); }
/* "From" before the price (Danny 2026-11-18): regular weight, the grey of "a month"; outside the [data-for] spans so the count-up leaves it alone */
.nf-res-size__from { margin-right: 6px; font: 400 16px/20px var(--nf-res-size-reg); color: var(--nf-res-size-grey-500); }

.nf-res-size__points { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.nf-res-size__point { position: relative; display: flex; align-items: center; gap: 10px; padding: 14px 0; }
.nf-res-size__point:first-child { padding-top: 0; }
.nf-res-size__point:last-child { padding-bottom: 0; }
.nf-res-size__point::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 99px; background-color: #000; }
.nf-res-size__point:not(:last-child)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background-color: #b2b2b2; pointer-events: none;
}
.nf-res-size__point-text { flex: 1; font: 400 21px/25.2px var(--nf-res-size-reg); color: #000; }

.nf-res-size__arrow { flex: none; display: block; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.nf-res-size__join {
  align-self: flex-start; display: flex; align-items: center; gap: 4px; width: fit-content;
  padding: 14px 0; margin: -14px 0; color: #000; cursor: pointer;
  transition: opacity 200ms var(--nf-res-size-out-cubic);
}
.nf-res-size__join-text { font: 400 21px/25.2px var(--nf-res-size-reg); text-decoration: underline; text-underline-offset: 3px; }


/* Buttons */
.nf-res-size__ctas { display: flex; align-items: flex-start; column-gap: 16px; row-gap: 32px; }
.nf-res-size__btn {
  flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  height: 54px; padding: 16px 24px; border-radius: 32px; color: #000; white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.nf-res-size__btn-text { font: 400 21px/25.2px var(--nf-res-size-reg); }
.nf-res-size__btn--member {
  width: 316px; background-color: var(--nf-res-size-green);
  transition: transform 150ms var(--nf-res-size-out-cubic), opacity 150ms;
}
.nf-res-size__btn--member:active { transform: scale(.97); }
.nf-res-size__btn--expert .nf-res-size__btn-text { text-decoration: underline; }
.nf-res-size__join:focus-visible, .nf-res-size__c-link:focus-visible, .nf-res-size__btn:focus-visible {
  outline: 2px solid var(--nf-res-size-green); outline-offset: 2px;
}

/* Custom Home panel */
.nf-res-size__custom { display: none; width: 100%; }
.nf-res-size[data-state="custom"] .nf-res-size__custom { display: block; }
.nf-res-size__c-title { margin: 0 0 12px; font: 500 40px/44px var(--nf-res-size-med); color: #000; }
.nf-res-size__c-lede { max-width: 56ch; font: 400 20px/24px var(--nf-res-size-reg); color: var(--nf-res-size-grey-600); }
.nf-res-size__fits {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px;
  margin: 32px 0 0; padding: 0; list-style: none;
}
.nf-res-size__fit-icon { display: block; width: 36px; height: 36px; }
.nf-res-size__fit-name { margin-top: 14px; font: 500 18px/22px var(--nf-res-size-med); color: #000; }
.nf-res-size__fit-desc { margin-top: 4px; font: 400 16px/20px var(--nf-res-size-reg); color: var(--nf-res-size-grey-600); }
.nf-res-size__c-points { margin: 18px 0 0; padding: 0; list-style: none; }   /* + 14px top padding of the first bullet = 32 */
.nf-res-size__c-point { position: relative; padding: 14px 0 14px 16px; }
.nf-res-size__c-point + .nf-res-size__c-point { box-shadow: inset 0 1px 0 #c4c4c4; }
.nf-res-size__c-point::before {
  content: ""; position: absolute; left: 0; top: 23.6px; width: 6px; height: 6px; border-radius: 99px; background-color: #000;
}
.nf-res-size__c-point-text { font: 400 21px/25.2px var(--nf-res-size-reg); color: #000; }
.nf-res-size__c-link {
  display: flex; align-items: center; gap: 4px; width: fit-content; margin: 18px 0 0 1px;
  color: #000; cursor: pointer; transition: opacity 200ms var(--nf-res-size-out-cubic);
}
.nf-res-size__c-link-text { font: 400 21px/25.2px var(--nf-res-size-reg); text-decoration: underline; text-underline-offset: 3px; }
.nf-res-size__ctas--custom { width: 100%; margin-top: 32px; }

@media (hover: hover) {
  .nf-res-size__join:hover, .nf-res-size__c-link:hover { opacity: .7; }
}
@media (prefers-reduced-motion: reduce) {
  .nf-res-size__ind.is-go { transition: none; }
  .nf-res-size__btn--member:active { transform: none; opacity: .85; }
}

/* Custom Home layout: the photo keeps its 636:512 shape and stays in view while the copy scrolls */
.nf-res-size[data-state="custom"] .nf-res-size__row { height: auto; align-items: flex-start; }
.nf-res-size[data-state="custom"] .nf-res-size__media { position: sticky; top: 104px; height: auto; }   /* 24px below our 80px fixed nav, which reappears on scroll up */
.nf-res-size[data-state="custom"] .nf-res-size__card { flex: none; height: auto; aspect-ratio: 636 / 512; }
.nf-res-size[data-state="custom"] .nf-res-size__info { height: auto; }

/* ---------- Tablet and phone (<= 1439.98px) ---------- */
@media (max-width: 1439.98px) {
  .nf-res-size__wrap { align-items: stretch; gap: 24px; padding: 80px 0; }
  .nf-res-size__head { gap: 31px; padding: 0 60px; }
  .nf-res-size__tabs { gap: 8px; margin: 0 -60px; padding: 0 60px; }
  .nf-res-size__row { flex-direction: column; height: auto; gap: 40px; padding: 0 60px; }
  .nf-res-size__media, .nf-res-size__info { flex: none; width: 100%; height: auto; }
  .nf-res-size__card { flex: none; height: 514px; }
  .nf-res-size__devices { height: 210px; }
  .nf-res-size__devices--four { height: 153px; }
  .nf-res-size[data-state="custom"] .nf-res-size__media { position: static; }
}

/* ---------- Phone (<= 809.98px) ---------- */
@media (max-width: 809.98px) {
  .nf-res-size__wrap { padding: 32px 0; }
  .nf-res-size__head { gap: 18px; padding: 0 16px; }
  .nf-res-size__title { font-size: 28px; line-height: 33.6px; }
  .nf-res-size__tabs { gap: 4px; margin: 0 -16px; padding: 0 16px; }
  .nf-res-size__tab-long { display: none; }
  .nf-res-size__tab-short { display: inline; }
  .nf-res-size__row { gap: 16px; padding: 0; }
  .nf-res-size__media { gap: 8px; padding: 0 16px; }
  .nf-res-size__card { height: 206px; border-radius: 15px; }
  .nf-res-size__photo { top: 16px; left: 16px; width: calc(100% - 32px); height: calc(100% - 32px); }
  .nf-res-size__photo--cover { top: 0; left: 0; width: 100%; height: 100%; border-radius: 15px; }
  .nf-res-size[data-state="custom"] .nf-res-size__card { aspect-ratio: 361 / 206; }
  .nf-res-size__devices { gap: 8px; height: 114px; }
  .nf-res-size__devices--four { height: 82px; }
  .nf-res-size__device { padding: 12px; border-radius: 15px; }
  .nf-res-size__info { padding: 0 16px; }

  .nf-res-size__plans-panel { gap: 24px; }
  .nf-res-size__plan { gap: 14px; padding: 14px 0; }
  .nf-res-size__icon { width: 28px; height: 28px; margin-top: -2px; }
  .nf-res-size__plan-name { font-size: 15px; line-height: 18px; }
  .nf-res-size__plan-note { margin-top: 2px; font-size: 13px; line-height: 16px; }
  .nf-res-size__amt { font-size: 20px; line-height: 24px; }
  .nf-res-size__per { margin-top: 2px; font-size: 13px; line-height: 16px; }
  .nf-res-size__from { margin-right: 4px; font-size: 13px; line-height: 16px; }
  .nf-res-size__point { gap: 20px; padding: 12px 0; }
  .nf-res-size__point:not(:last-child)::after { left: 26px; }
  .nf-res-size__point-text { font-size: 16px; line-height: 19.2px; }
  .nf-res-size__join { padding: 17px 0; margin: -17px 0; }
  .nf-res-size__join-text { font-size: 15px; line-height: 18px; text-underline-offset: 2px; }
  .nf-res-size__arrow { margin: -3px 0; }

  .nf-res-size__ctas { flex-direction: column; align-items: stretch; gap: 12px; }
  .nf-res-size__btn { height: 35px; padding: 0 16px; }
  .nf-res-size__btn-text { font-size: 15px; line-height: 18px; }
  .nf-res-size__btn--member { align-self: center; width: calc(100vw - 112px); max-width: 100%; margin: 0 auto; }
  .nf-res-size__btn--expert { height: 24px; padding: 0; justify-content: center; }

  .nf-res-size__c-title { margin-bottom: 8px; font-size: 24px; line-height: 26.4px; }
  .nf-res-size__c-lede { font-size: 15px; line-height: 19.5px; }
  .nf-res-size__fits { grid-template-columns: 1fr; gap: 18px; margin-top: 24px; }
  .nf-res-size__fit { display: flex; align-items: flex-start; gap: 14px; }
  .nf-res-size__fit-icon { flex: none; width: 28px; height: 28px; margin-top: -2px; }
  .nf-res-size__fit-name { margin-top: 0; font-size: 15px; line-height: 18px; }
  .nf-res-size__fit-desc { margin-top: 2px; font-size: 13px; line-height: 16px; }
  .nf-res-size__c-points { margin-top: 24px; }
  .nf-res-size__c-point { margin-bottom: 12px; padding: 0 0 13px 26px; }
  .nf-res-size__c-point + .nf-res-size__c-point { box-shadow: none; }
  .nf-res-size__c-point::after { content: ""; position: absolute; left: 26px; right: 0; bottom: 0; height: 1px; background-color: #c4c4c4; }
  .nf-res-size__c-point:last-child { margin-bottom: 0; padding-bottom: 0; }
  .nf-res-size__c-point:last-child::after { display: none; }
  .nf-res-size__c-point::before { top: 6.6px; }
  .nf-res-size__c-point-text { font-size: 16px; line-height: 19.2px; }
  .nf-res-size__c-link { margin: 24px 0 0 2px; }
  .nf-res-size__c-link-text { font-size: 15px; line-height: 18px; text-underline-offset: 2px; }
  .nf-res-size__ctas--custom { margin-top: 24px; }
}

/* ==========================================================================
   "What happens after you join" pop-up (ad page version 3, #m-join), moved to <body> by js/30-size.js.
   Desktop / tablet: centred card, scrim fades, card fades and scales from 0.96 on the spring. Phone: bottom sheet
   that slides up (500ms sheet ease), as the source.
   ========================================================================== */
.nf-res-size-join {
  --nf-res-size-reg: "SF Pro Display Regular", "Nafas Inter", sans-serif;
  --nf-res-size-green: #91c851;
  --nf-res-size-out-cubic: cubic-bezier(.33, 1, .68, 1);
  --nf-res-size-in-cubic: cubic-bezier(.32, 0, .67, 0);
  --nf-res-size-spring: cubic-bezier(.33, 1, .68, 1);
  --nf-res-size-sheet: cubic-bezier(.3, 1.1, .4, 1);
  --nf-res-size-inter: "Nafas Inter", sans-serif;
  position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px;
  visibility: hidden; pointer-events: none; transition: visibility 0s linear 200ms;
}
@supports (transition-timing-function: linear(0, 1)) {
  .nf-res-size-join {
    --nf-res-size-spring: linear(0, 0.0281, 0.0973, 0.1892, 0.2909, 0.3937, 0.4918, 0.5817, 0.6616, 0.7308, 0.7896, 0.8385, 0.8785, 0.9106, 0.9361, 0.9558, 0.9709, 0.9821, 0.9903, 0.996, 1, 1.0025, 1);
    --nf-res-size-sheet: linear(0, 0 4%, .06 8%, .215 12%, .399 16%, .571 20%, .716 24%, .827 28%, .906 32%, .958 36%, .99 40%, 1.006 44%, 1.012 48%, 1.011 52%, 1.008 56%, 1.004 64%, 1 76%, 1);
  }
}
.nf-res-size-join[hidden] { display: none; }
.nf-res-size-join.is-open { visibility: visible; pointer-events: auto; transition: visibility 0s; }
.nf-res-size-join__bk { position: absolute; inset: 0; background: rgba(0, 0, 0, .8); opacity: 0; transition: opacity 200ms var(--nf-res-size-in-cubic); }
.nf-res-size-join.is-open .nf-res-size-join__bk { opacity: 1; transition: opacity 300ms var(--nf-res-size-out-cubic); }
.nf-res-size-join__card {
  position: relative; width: 998px; max-width: 100%; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow: auto;
  display: flex; flex-direction: column; gap: 48px; padding: 48px; border-radius: 30px; background: #fff; color: #000;
  opacity: 0; transform: scale(.96); transition: opacity 200ms var(--nf-res-size-in-cubic), transform 200ms var(--nf-res-size-in-cubic);
}
.nf-res-size-join.is-open .nf-res-size-join__card { opacity: 1; transform: none; transition: opacity 300ms var(--nf-res-size-out-cubic), transform 520ms var(--nf-res-size-spring); }
.nf-res-size-join__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.nf-res-size-join__title { margin: 0; font: 500 30px/34.5px var(--nf-res-size-inter); }
.nf-res-size-join__lede { margin: 8px 0 0; font: 400 20px/25px var(--nf-res-size-inter); color: rgba(0, 0, 0, .6); }
.nf-res-size-join__x { flex: none; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.nf-res-size-join__x svg { width: 19px; height: 19px; }
.nf-res-size-join__x:focus-visible, .nf-res-size-join .nf-res-size__btn:focus-visible { outline: 2px solid var(--nf-res-size-green); outline-offset: 2px; }
.nf-res-size-join__steps { display: flex; flex-direction: column; gap: 24px; margin: 0; padding: 0; list-style: none; }
.nf-res-size-join__step { display: flex; gap: 24px; }
.nf-res-size-join__n {
  flex: none; width: 59px; height: 59px; display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(0, 0, 0, .3); border-radius: 30px; font: 500 25px/28.75px var(--nf-res-size-inter);
}
.nf-res-size-join__c { flex: 1; display: flex; flex-direction: column; gap: 24px; padding-top: 15px; }
.nf-res-size-join__h { margin: 0; font: 500 25px/28.75px var(--nf-res-size-inter); }
.nf-res-size-join__p { margin: 16px 0 0; font: 400 20px/25px var(--nf-res-size-inter); color: rgba(0, 0, 0, .6); }
.nf-res-size-join__hr { margin: 0; border: 0; height: 1px; background: rgba(0, 0, 0, .55); }
.nf-res-size-join__btns { display: flex; flex-wrap: wrap; align-items: center; gap: 0; }
.nf-res-size-join__btns .nf-res-size__btn--member { width: auto; }   /* as the source pop-up: the button sizes to its label (the section's is 316px) */
@media (max-width: 809.98px) {
  .nf-res-size-join { align-items: flex-end; padding: 0; }
  .nf-res-size-join__card {
    width: 100%; max-width: none; max-height: calc(100% - 24px); gap: 32px; border-radius: 30px 30px 0 0;
    padding: 24px 24px calc(24px + env(safe-area-inset-bottom, 0px));
    opacity: 1; transform: translateY(720px); transition: transform 500ms var(--nf-res-size-sheet);
  }
  .nf-res-size-join.is-open .nf-res-size-join__card { opacity: 1; transform: none; transition: transform 500ms var(--nf-res-size-sheet); }
  .nf-res-size-join__top { gap: 16px; }
  .nf-res-size-join__title { font: 500 22px/25.3px var(--nf-res-size-inter); letter-spacing: -.03em; }
  .nf-res-size-join__lede { margin-top: 9px; font: 500 15px/23px var(--nf-res-size-inter); letter-spacing: -.03em; }
  .nf-res-size-join__x svg { width: 16px; height: 16px; }
  .nf-res-size-join__steps { gap: 17px; }
  .nf-res-size-join__step { gap: 12px; }
  .nf-res-size-join__n { width: 31px; height: 31px; border: 1px solid rgba(0, 0, 0, .5); border-radius: 16px; font: 500 15px/25px var(--nf-res-size-inter); letter-spacing: -.02em; }
  .nf-res-size-join__c { padding-top: 2px; gap: 17px; }
  .nf-res-size-join__h { font: 500 20px/25px var(--nf-res-size-inter); letter-spacing: -.02em; }
  .nf-res-size-join__p { margin-top: 10px; font: 400 15px/20px var(--nf-res-size-inter); }
  /* a hairline that never rounds away to nothing on phones */
  .nf-res-size-join__hr { background: #000; transform: scaleY(.5); transform-origin: 0 0; }
  .nf-res-size-join__btns { flex-direction: column; align-items: center; gap: 12px; }
  .nf-res-size-join__btns .nf-res-size__btn--member { width: calc(100vw - 112px); max-width: 100%; align-self: center; }
  .nf-res-size-join__btns .nf-res-size__btn--expert { align-self: stretch; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .nf-res-size-join__card, .nf-res-size-join.is-open .nf-res-size-join__card { transform: none !important; }
}

/* tab strip swipes left and right on tablet and phone; the swipe stays in the strip (see showTab in 30-size.js) */
.nf-res-size__tabs { overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }


/* Narrow tablets use the short tab labels ("1BR + Living Room"): with the long ones the strip is 960px wide and
   "Custom Home" sat off screen at 810 (QC 2026-10-28). The strip still swipes if a language needs more room. */
@media (min-width: 810px) and (max-width: 999.98px) {
  .nf-res-size__tab-long { display: none; }
  .nf-res-size__tab-short { display: inline; }
}
