/* =========================================================================
   Recent Closings page — scoped styles.
   Tokens sampled from the brand (see design handoff). Everything is scoped
   under .rc-page so it never leaks into the shared header / nav / footer,
   which use the site's existing Bootstrap + Inter styling.
   ========================================================================= */

/* Full-bleed gray behind the whole page. .rc-page itself is capped at
   1200px and centred, so putting the background on it only painted the
   centre column and left white gutters either side. This wrapper spans the
   full window width; .rc-page keeps doing the centring. */
.rc-page-bg { background: #FAFAFA; }

.rc-page {
  /* ---- brand blues ---- */
  --ql-sky:   #25ABF1;
  --ql-blue:  #1882E3;
  --ql-blue-text: #1556C4; /* blue TEXT on light; --ql-blue stays for fills */
  --ql-deep:  #0B5FB8;
  --ql-ink:   #0A2540;
  --ql-blue-50:  #EAF6FE;
  --ql-blue-700: #0B5FB8;
  --ql-gradient: linear-gradient(135deg, var(--ql-sky) 0%, var(--ql-blue) 60%, var(--ql-deep) 100%);

  /* ---- neutrals (cool, blue-shifted) ---- */
  --ql-white:  #FFFFFF;
  --ql-cloud:  #F7FAFC;
  --ql-mist:   #EEF3F8;
  --ql-line:   #DCE4ED;
  --ql-line-2: #C2CEDC;
  --ql-muted:  #5E6E80;
  --ql-text:   #2A3B52;
  --ql-heading:#0A2540;

  /* green for amount pills + transaction bars — the site's label/success green */
  --ql-money:  #4EBF56;

  /* ---- foreground tokens ---- */
  --fg-1: var(--ql-heading);
  --fg-2: var(--ql-text);
  --fg-3: var(--ql-muted);

  /* ---- radius ---- */
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  /* ---- shadows (navy-tinted, low spread) ---- */
  --shadow-sm: 0 2px 6px rgba(10, 37, 64, 0.06), 0 1px 2px rgba(10, 37, 64, 0.05);
  --shadow-md: 0 6px 18px rgba(10, 37, 64, 0.08), 0 2px 6px rgba(10, 37, 64, 0.05);
  --shadow-lg: 0 18px 40px rgba(10, 37, 64, 0.12), 0 4px 12px rgba(10, 37, 64, 0.06);
  --shadow-brand: 0 10px 24px rgba(24, 130, 227, 0.30);

  /* ---- type: match the site (Inter) ---- */
  --font-display: "Inter", "Helvetica", "Arial", sans-serif;
  --font-body:    "Inter", "Helvetica", "Arial", sans-serif;

  max-width: 1200px;
  margin: 0 auto;
  /* generous top padding so content clears the site's absolute nav bar + breathing room */
  padding: 154px 24px 64px !important;
  background: transparent;
  font-family: var(--font-body);
  color: var(--fg-2);
  -webkit-font-smoothing: antialiased;
}

.rc-page *,
.rc-page *::before,
.rc-page *::after { box-sizing: border-box; }

/* ---------------------------------------------------------------- header */
/* Both tab headers share the same grid cell so the toggle never jumps. */
.rc-head { text-align: center; margin-bottom: 40px; display: grid; grid-template-columns: 1fr; }
/* The two tab headings carry no class, so they inherited theme.min.css's bare
   h1 rule (3.14285714em against the 14px root = 44px) — a third "big heading"
   size alongside the site's 42px and the invest page's old 46px. Pinned to
   .bl-h2's clamp. Yoni's call, Sept 7 2026. .rc-head h1 is (0,1,1) so it beats
   the theme's bare h1 (0,0,1). line-height deliberately NOT set: the theme's is
   1.318em, relative to the h1's own size, so it rescales by itself. */
.rc-head h1 { font-size: clamp(28px, 3.4vw, 42px); }
.rc-head .lead { max-width: 1140px; margin-left: auto; margin-right: auto; }
.rc-head__inner { max-width: 720px; }
/* Both headers overlap in row 1; toggle is centered at row 2. */
.rc-head__closings, .rc-head__numbers { grid-row: 1; grid-column: 1; }
/* Override [hidden] so both stay in layout — the taller one sets the row height. */
.rc-head__closings[hidden], .rc-head__numbers[hidden] {
  display: block !important;
  visibility: hidden;
  pointer-events: none;
}
/* Both tabs now use the same badge, so no offset needed. */
.rc-head__numbers { padding-top: 0; }
/* Toggle is a grid item in rc-head — prevent it from stretching to column width. */
.rc-head .rc-toggle { grid-row: 2; grid-column: 1; justify-self: center; }

/* "lent on over" stat trio */
.rc-trio {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 5vw, 60px);
  flex-wrap: wrap;
  margin: 42px auto 2px;
}
.rc-trio__item { text-align: center; }
.rc-trio__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.02em;
  line-height: 1;
  color: #252525;
}
.rc-trio__lbl { font: 500 13.5px var(--font-body); color: var(--fg-3); margin-top: 9px; }
.rc-trio__div { width: 1px; height: 44px; background: var(--ql-line); }
.rc-eyebrow {
  font: 700 12px/1 var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ql-blue-text);
}
.rc-headline {
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--fg-1);
  text-wrap: balance;
}
.rc-sub {
  margin: 16px auto 0;
  max-width: 620px;
  font: 500 19px/1.55 var(--font-body);
  color: var(--fg-2);
}

/* --------------------------------------------------------------- toggle */
.rc-toggle {
  margin-top: 48px;
  display: inline-flex;
  background: var(--ql-mist);
  border: 1px solid var(--ql-line);
  border-radius: var(--radius-pill);
  padding: 4px;
  gap: 4px;
}
.rc-toggle__btn {
  border: none;
  cursor: pointer;
  border-radius: var(--radius-pill);
  padding: 10px 20px;
  font: 600 14.5px var(--font-display);
  white-space: nowrap;
  height: auto;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  color: var(--fg-3);
  box-shadow: none;
  transition: all 180ms cubic-bezier(.4,0,.2,1);
}
.rc-toggle__btn.is-active {
  background: #fff;
  color: var(--ql-blue-text);
  box-shadow: var(--shadow-sm);
}

/* ----------------------------------------------------------- card grid */
.rc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}
.rc-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--ql-line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  font-family: var(--font-body);
}
.rc-card__photo {
  position: relative;
  height: 220px;
  flex: 0 0 220px;
  background: var(--ql-mist);
  overflow: hidden;
}
.rc-card__photo img,
.rc-card__photo picture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;   /* bias slightly toward the top so building tops aren't cropped */
  display: block;
}
.rc-pill-amount {
  position: absolute;
  top: 14px;
  left: 14px;
  border-radius: var(--radius-pill);
  padding: 5px 11px;
  font: 700 13px var(--font-display);
  letter-spacing: 0;
  background: var(--ql-ink);   /* navy ink — high contrast on any photo */
  color: #fff;
  box-shadow: 0 2px 8px rgba(10,37,64,.35);
  white-space: nowrap;
  z-index: 2;
}
.rc-card__body {
  position: relative;
  padding: 16px 16px 19px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}
.rc-loc {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -.01em;
  color: #252525;            /* match the site's heading color */
  line-height: 1.2;
  text-wrap: balance;
}
.rc-type {
  display: flex;
  align-items: center;
  gap: 6px;
  font: 600 12.5px var(--font-body);
  letter-spacing: 0;
  color: var(--fg-3);        /* quiet gray; photo carries the color */
  margin-top: 1px;
}
.rc-card__footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  row-gap: 6px;
  margin-top: 2px;
  font: 500 13px var(--font-body);
  color: var(--fg-3);
}
.rc-card__footer > span:not(.rc-fast) { white-space: nowrap; }
.rc-dot {
  flex-shrink: 0;
  width: 3px;
  height: 3px;
  border-radius: var(--radius-pill);
  background: var(--ql-line-2);
}
/* "fast close" highlight pill — absolutely placed in a corner of the white box,
   so it never changes the card's height */
.rc-fast {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #FFF1E0;
  color: #B45309;
  font: 700 11px var(--font-body);
  letter-spacing: .01em;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

/* Every closing with a recorded day count gets a badge. The warm tone is
   reserved for 10 days and under, so the genuinely fast ones still stand out
   instead of every card shouting equally. Slower closings keep the same shape
   and the flame, in the neutral tone. */
.rc-fast--steady { background: #EEF3F8; color: #5E6E80; }

/* ---------------------------------------------------- transparency band */
.rc-mission {
  max-width: 720px;
  margin: 64px auto 0;
  text-align: center;
}
.rc-mission__eyebrow {
  font: 700 12px var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--main-color, #1e83ef);
}
.rc-mission__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.01em;
  color: #252525;
  margin: 10px 0 0;
}
.rc-mission__body {
  font: 500 16.5px/1.65 var(--font-body);
  color: var(--fg-2);
  margin: 14px auto 0;
}

/* -------------------------------------------------------------- Final CTA (full-width) */
.rc-final-cta {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: 56px;
  background: linear-gradient(160deg, #1882E3 0%, #0B5FB8 100%);
  text-align: center;
  position: relative;
}
.rc-final-cta__wave-top { display: block; width: 100%; height: 60px; margin-bottom: -2px; background: #fff; }
.rc-final-cta__wave-bot { display: block; width: 100%; height: 60px; margin-top: -2px; background: #fff; }
.rc-final-cta__body { padding: 56px 32px 60px; }
.rc-final-cta__eyebrow { font: 600 12px/1 var(--font-display); letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.65); margin: 0 0 16px; }
.rc-final-cta__h { font: 800 clamp(30px,4.5vw,58px)/1.05 var(--font-display); letter-spacing: -.03em; color: #fff; margin: 0 0 18px; }
.rc-final-cta__sub { font: 500 17px/1.6 var(--font-body); color: rgba(255,255,255,.8); margin: 0 0 36px; }
.rc-final-cta__btns { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.rc-final-cta__btn {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: var(--radius-pill);
  padding: 16px 32px;
  font: 600 16px var(--font-display);
  text-decoration: none;
  transition: opacity .15s, transform .15s;
}
.rc-final-cta__btn:hover { opacity: .9; transform: translateY(-1px); text-decoration: none; }
.rc-final-cta__btn--primary { background: #fff; color: var(--ql-blue-700); }
.rc-final-cta__btn--primary:hover { color: var(--ql-blue-700); }
.rc-final-cta__btn--ghost { background: rgba(255,255,255,.15); color: #fff; border: 1.5px solid rgba(255,255,255,.5); }
.rc-final-cta__btn--ghost:hover { color: #fff; background: rgba(255,255,255,.25); }
@media (max-width: 560px) {
  .rc-final-cta__body { padding: 44px 20px 48px; }
  .rc-final-cta__btns { flex-direction: column; }
  .rc-final-cta__btn { width: 100%; max-width: 300px; justify-content: center; }
}

/* ---------------------------------------------------------------- stats */
.rc-stats { display: flex; flex-direction: column; gap: 22px; }
.rc-sstrip { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.rc-stat {
  background: var(--ql-ink);
  border-radius: 16px;
  padding: 24px 26px;
  color: #fff;
}
.rc-stat__num { font: 600 30px var(--font-display); letter-spacing: -0.02em; line-height: 1; white-space: nowrap; }
.rc-stat__lbl { font: 500 13px var(--font-body); color: rgba(255,255,255,0.65); margin-top: 8px; }

.rc-s2col { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.rc-panel {
  background: #fff;
  border: 1px solid var(--ql-line);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.rc-panel__head { margin-bottom: 22px; }
.rc-panel__title { margin: 0; font: 600 19px var(--font-display); color: var(--fg-1); }
.rc-panel__sub { font: 500 13.5px var(--font-body); color: var(--fg-3); margin-top: 4px; }

.rc-bars { display: flex; flex-direction: column; gap: 16px; }
.rc-bar {
  display: grid;
  grid-template-columns: 172px 1fr 52px;
  align-items: center;
  gap: 16px;
}
.rc-bar__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 600 14.5px var(--font-body);
  color: var(--fg-1);
  min-width: 0;
}
.rc-bar__label span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-bar__track { height: 12px; border-radius: var(--radius-pill); background: var(--ql-mist); overflow: hidden; }
.rc-bar__fill {
  height: 100%;
  width: 0;
  border-radius: var(--radius-pill);
  background: var(--ql-gradient);
  transition: width 600ms cubic-bezier(.4,0,.2,1);
}
.rc-bar__fill--green { background: var(--ql-money); }
.rc-bar__fill--blue  { background: var(--ql-blue); }
.rc-bar__val { font: 600 15px var(--font-display); color: var(--fg-1); text-align: right; }
.rc-footnote { margin: 4px 0 0; font: 500 13px var(--font-body); color: var(--fg-3); }

/* ----------------------------------------------------------- responsive */
@media (max-width: 880px) {
  .rc-sstrip { grid-template-columns: 1fr 1fr; }
  .rc-s2col  { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .rc-page { padding: 124px 16px 64px; }
  .rc-bar  { grid-template-columns: 120px 1fr 44px; gap: 10px; }
  .rc-trio__div { display: none; }
  .rc-trio { gap: 22px 36px; }
}

/* ============================ By the numbers (.bn) ============================ */
.bn-wrap { font-family: var(--font-body); }
.bn__head { text-align: center; }
.bn__eyebrow { font: 700 12px var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--main-color, #1e83ef); }

/* ---- "Live data" status pill (By the numbers header) ---- */
.bn-live {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 3rem;
}
.bn-live__pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px;
  border-radius: 999px;
  background: #EAF2FF;
  border: 1px solid #CFE0FF;
  color: var(--ql-blue-text);
  font: 700 12.5px var(--font-body);
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.bn-live__dot {
  position: relative;
  width: 9px;
  height: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.bn-live__dot::before,
.bn-live__dot > i {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ql-blue);
}
.bn-live__dot::before {
  animation: bn-live-ring 1.6s ease-out infinite;
}
@keyframes bn-live-ring {
  0%   { transform: scale(.6); opacity: .7; }
  100% { transform: scale(2.8); opacity: 0; }
}
.bn-live__note {
  font: 400 13.5px var(--font-body);
  color: var(--ql-muted);
  white-space: nowrap;
}
@media (prefers-reduced-motion: reduce) {
  .bn-live__dot::before { animation: none; opacity: 0; }
}
.bn__h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(28px,3.6vw,40px); letter-spacing: -.02em; color: #252525; margin: 12px 0 0; line-height: 1.1; }
.bn__lead { font: 500 16.5px/1.7 var(--font-body); color: var(--fg-2); max-width: 760px; margin: 16px auto 0; }

.bn__stats { display: grid; grid-template-columns: repeat(auto-fit,minmax(150px,1fr)); gap: 13px; margin-top: 34px; }
.bn__stat { background: var(--ql-ink); border-radius: 13px; padding: 26px 18px 24px; color: #fff; }
.bn__stat-num { font: 800 24px var(--font-display); letter-spacing: -.02em; line-height: 1; }
.bn__stat-lbl { font: 500 12px var(--font-body); color: #A9B6CC; margin-top: 6px; line-height: 1.35; }

.bn__grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 22px; }
.bn__panel { background: #fff; border: 1px solid var(--ql-line); border-radius: 16px; padding: 24px 26px; box-shadow: var(--shadow-sm); }
.bn__phead { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.bn__ptitle { font: 800 18px var(--font-display); color: #252525; margin: 0; display: flex; align-items: center; }
.bn__psub { font: 500 13px var(--font-body); color: var(--fg-3); margin: 3px 0 16px; }
.bn__pval { text-align: right; white-space: nowrap; }
.bn__pval b { font: 800 26px var(--font-display); letter-spacing: -.02em; color: #0B5FB8; display: block; line-height: 1; }
.bn__pval span { font: 600 11px var(--font-body); color: var(--fg-3); }
.bn__legend { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; font: 600 13px var(--font-body); color: #3a4a5e; }
.bn__dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; vertical-align: middle; }
.bn__bars { display: flex; flex-direction: column; gap: 11px; }
.bn__bar { display: grid; grid-template-columns: 88px 1fr 26px; align-items: center; gap: 12px; font: 600 13px var(--font-body); color: #3a4a5e; }
.bn__track { height: 11px; border-radius: 999px; background: var(--ql-mist); overflow: hidden; }
.bn__fill { height: 100%; border-radius: 999px; }
.bn__stack { display: flex; height: 28px; border-radius: 8px; overflow: hidden; font: 700 11.5px var(--font-body); color: #fff; }
.bn__stack div { display: flex; align-items: center; justify-content: center; }

/* info tooltip */
.bn__info { position: relative; display: inline-flex; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--ql-line-2); color: var(--fg-3); font: italic 700 10px serif; align-items: center; justify-content: center; cursor: help; margin-left: 9px; flex: 0 0 auto; }
.bn__info::after { content: attr(data-tip); position: absolute; bottom: 150%; left: 50%; transform: translateX(-50%); width: 250px; background: #0A2540; color: #fff; font: 500 12.5px/1.55 var(--font-body); padding: 11px 13px; border-radius: 9px; opacity: 0; visibility: hidden; transition: opacity .15s; z-index: 20; box-shadow: 0 10px 24px rgba(10,37,64,.28); text-align: left; font-style: normal; letter-spacing: 0; }
.bn__info::before { content: ''; position: absolute; bottom: 150%; left: 50%; transform: translate(-50%,90%); border: 6px solid transparent; border-top-color: #0A2540; opacity: 0; visibility: hidden; transition: opacity .15s; z-index: 20; }
.bn__info:hover::after, .bn__info:hover::before { opacity: 1; visibility: visible; }

/* where-we-lend flag leaderboard */
.bn__lead-grid { column-count: 3; column-gap: 36px; margin-top: 2px; }
.bn__lrow { break-inside: avoid; display: flex; align-items: center; gap: 11px; padding: 9px 0; border-bottom: 1px solid var(--ql-line); }
.bn__rk { font: 700 12px var(--font-body); color: var(--ql-line-2); width: 16px; flex: 0 0 auto; text-align: right; }
.bn__flag { width: 26px; height: 20px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(10,37,64,.10); flex: 0 0 auto; }
.bn__lnm { font: 600 14px var(--font-body); color: #3a4a5e; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bn__lct { font: 800 17px var(--font-display); color: #0B5FB8; flex: 0 0 auto; }

/* 100% loan purpose */
.bn__cash { display: grid; grid-template-columns: auto 1fr; gap: 30px; align-items: center; background: #fff; border: 1px solid var(--ql-line); border-radius: 16px; padding: 28px 32px; margin-top: 22px; box-shadow: var(--shadow-sm); }
.bn__cash-num { font-family: var(--font-display); font-weight: 800; font-size: clamp(56px,8vw,82px); line-height: .9; letter-spacing: -.03em; color: #1e83ef; }
.bn__cash-kicker { font: 700 12px var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--main-color, #1e83ef); }
.bn__cash-title { font: 800 20px var(--font-display); color: #252525; margin: 6px 0 9px; display: flex; align-items: center; gap: 9px; }
.bn__cash-title::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #1e83ef; flex: 0 0 auto; }
.bn__cash-body { font: 500 15px/1.7 var(--font-body); color: var(--fg-2); }

/* decade band — dark strip */
.bn__decade { margin-top: 28px; background: #fff; border: 1px solid var(--ql-line); border-radius: 18px; padding: 64px 44px 64px; text-align: center; }
.bn__decade-title-wrap { display: flex; align-items: center; justify-content: center; gap: 28px; margin: 0 0 32px; }
.bn__decade-center { flex: 1 1 auto; min-width: 0; max-width: 560px; text-align: center; }
.bn__decade-h { font: 800 clamp(26px,3.2vw,42px)/1.1 var(--font-display); letter-spacing: -.025em; color: #0A2540; margin: 0; }
.bn__decade-desc { font: 500 15px/1.65 var(--font-body); color: var(--ql-muted); margin: 16px 0 0; }
.bn__laurel { color: #C9A84C; flex: 0 0 auto; opacity: 0.92; }
.bn__laurel svg { width: 86px; height: 161px; display: block; }
.bn__dstats { display: grid; grid-template-columns: repeat(3,1fr); max-width: 800px; margin: 0 auto; gap: 1px; background: var(--ql-line); border-radius: 10px; overflow: hidden; border: 1px solid var(--ql-line); }
.bn__dstat { background: #FAFAFA; padding: 26px 16px; }
.bn__dnum { font: 800 clamp(22px,2.8vw,34px) var(--font-display); letter-spacing: -.02em; color: #0A2540; line-height: 1; }
.bn__dlbl { font: 500 12px var(--font-body); color: var(--ql-muted); margin-top: 8px; line-height: 1.4; }
.bn__decade-focus { font: 800 clamp(20px,2.3vw,30px)/1.2 var(--font-display); letter-spacing: -.02em; color: #0A2540; margin: 28px 0 0; }

/* ---- why this page exists (transparency / values) ---- */
.bn__why { margin-top: 28px; border-radius: 18px; padding: 50px 44px 38px; background: #0A2540; border: 1px solid rgba(255,255,255,.12); text-align: center; }
/* Eyebrow is a pill, not loose blue text (Sept 7, 2026). The translucent
   white fill + hairline border is the SAME treatment as the icon tiles in
   the navy CTA band directly below this section, so the two navy blocks
   read as one family. display:inline-block is what shrinks the pill to the
   text; the parent .bn__why is text-align:center, so it self-centres. */
.bn__why-eyebrow { display: inline-flex; align-items: center; font: 700 12.5px/normal var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: #0A2540; background: #fff; border: none; border-radius: var(--radius-pill, 999px); padding: 7px 15px; margin-bottom: 16px; }
.bn__why-stmt-h { font: 800 clamp(22px,2.7vw,29px)/1.18 var(--font-display); letter-spacing: -.025em; color: #fff; margin: 0 auto; max-width: 580px; }

.bn__why-cols { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 40px; text-align: left; }
.bn__why-col { padding: 0 30px; }
.bn__why-col + .bn__why-col { border-left: 1px solid rgba(255,255,255,.12); }
/* Ghosted white, not blue. 01/02/03 are ordinals, not content — at full
   white they compete with the headline. .42 composites to ~3.8:1 on navy,
   over the 3:1 minimum for text this size. opacity is reset to 1 so the
   alpha is set in one place only. */
.bn__why-num { font: 800 30px/1 var(--font-display); color: rgba(255,255,255,.42); opacity: 1; letter-spacing: .01em; }
.bn__why-title { font: 700 16px var(--font-body); letter-spacing: -.01em; color: #fff; margin-top: 13px; }
.bn__why-body { font: 400 14px/1.6 var(--font-body); color: #A9B6CC; margin: 8px 0 0; }

.bn__why-foot { margin: 36px 0 0; padding-top: 38px; border-top: 1px solid rgba(255,255,255,.12); font: 400 12px/1.5 var(--font-body); color: #A9B6CC; white-space: nowrap; }

/* ---------------------------------------------------------------------
   .bn__why--light — the ORIGINAL light-blue-tinted card, kept for brokers.php.
   Background is #F7FAFC, NOT white. Verified against the live site Sept 7 2026
   (live serves recent-closings.css?v=20260619c, older than every local backup,
   which is why the local backups show var(--ql-cloud) instead).

   Sept 6 2026 this block was turned navy, which was right for the Recent
   Closings page (it needed to break up a long run of white). On brokers.php
   it isn't wanted: Yoni's call, Sept 7 2026 — same content, two pages, and
   he's fine with them not matching. Navy is the base; brokers opts out by
   adding .bn__why--light in inc/_by-the-numbers.php.

   ONE DELIBERATE DIFFERENCE from the pre-Sept-6 original: the eyebrow and
   the 01/02/03 use --ql-blue-text (#1556C4), not --ql-blue (#267FFD).
   Brand blue as text on white measures 3.79:1 and fails; that was fixed
   sitewide on Sept 6 and restoring the old value here would undo it.
   Everything else is byte-for-byte the original.

   No pill on this variant — plain blue label, the way it was.
   --------------------------------------------------------------------- */
.bn__why--light { background: #F7FAFC; border: 1px solid var(--ql-line); }
.bn__why--light .bn__why-eyebrow { display: block; background: none; border: 0; border-radius: 0; padding: 0; margin-bottom: 12px; font-size: 12px; letter-spacing: .16em; color: var(--ql-blue-text); }
.bn__why--light .bn__why-stmt-h { color: var(--ql-heading); }
.bn__why--light .bn__why-col + .bn__why-col { border-left: 1px solid var(--ql-line); }
.bn__why--light .bn__why-num { color: var(--ql-blue-text); opacity: .9; }
.bn__why--light .bn__why-title { color: var(--ql-heading); }
.bn__why--light .bn__why-body { color: var(--ql-muted); }
.bn__why--light .bn__why-foot { border-top: 1px solid var(--ql-line); color: var(--ql-muted); }
/* 720px, matching the base .bn__why-cols stacking breakpoint above — NOT 760.
   Between 720 and 760 the columns are still side-by-side, so flipping the
   divider from left to top in that band would drop the vertical rules. */
@media (max-width: 720px) {
  .bn__why--light .bn__why-col + .bn__why-col { border-left: 0; border-top: 1px solid var(--ql-line); }
}

@media (max-width: 1040px) {
  .bn__why-foot { white-space: normal; }
}
@media (max-width: 720px) {
  .bn__why { padding: 36px 22px; }
  .bn__why-cols { grid-template-columns: 1fr; margin-top: 24px; }
  .bn__why-col { padding: 0 0 30px; }
  .bn__why-col + .bn__why-col { border-left: 0; border-top: 1px solid rgba(255,255,255,.12); padding-top: 30px; }
  .bn__why-foot { margin-top: 30px; }
}

/* testimonials embed */
.bn__testimonials-wrap {
  margin-top: 56px;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding-top: 72px;
  padding-bottom: 80px;
  background: #FAFAFA;
  border-bottom: 1px solid #ebebeb;
}
.bn__foot { font: 500 13px var(--font-body); color: var(--fg-3); text-align: center; margin-top: 30px; }

/* break the CTA section out of the max-width container */
#get-in-touch-phone2 {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: 96px;
  position: relative;
}

/* state bar chart (Where we lend redesign) */
.bn__sbar { display:flex; align-items:center; gap:8px; padding:6px 0; border-bottom:1px solid var(--ql-line); }
.bn__sbar:last-child { border-bottom:none; }
.bn__srk  { font:700 11px var(--font-body); color:var(--fg-3); width:14px; text-align:right; flex:0 0 auto; }
.bn__snm  { font:500 13px var(--font-body); color:var(--fg-1); width:126px; flex:0 0 auto; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.bn__strack { flex:1; height:9px; background:var(--ql-mist); border-radius:999px; overflow:hidden; }
.bn__sfill  { height:100%; border-radius:999px; background:linear-gradient(to right,#6FBEF7,#0B5FB8); }
.bn__spct { font:700 12px var(--font-body); color:#0B5FB8; width:38px; text-align:right; flex:0 0 auto; }
.bn__sflag { display:inline-block; width:18px; height:13px; border-radius:2px; flex:0 0 auto; background:#DCE4ED center/cover no-repeat; }

/* cash-out mini (replaces donut in row 1 left) */
.bn__cash-mini { display:flex; align-items:center; gap:22px; margin-top:12px; }
.bn__cash-mini-num { font-family:var(--font-display); font-weight:800; font-size:clamp(52px,6vw,68px); line-height:.9; letter-spacing:-.03em; color:#1e83ef; flex:0 0 auto; }

/* bigger donut panel — legend stacks above the chart */
.bn__donut-top { display:flex; flex-direction:column; align-items:center; gap:14px; }
.bn__donut-top .bn__legend { grid-template-columns:1fr 1fr; width:100%; }

/* what we lend on — donut left, type list right */
.bn__panel--donut { display:flex; flex-direction:column; }
.bn__panel--donut .bn__donut-split { flex:1; }
.bn__donut-split { display:flex; align-items:center; gap:18px; margin-top:10px; }
.bn__tleg        { display:grid; grid-template-columns:1fr auto; gap:9px 14px; flex:1; align-content:center; }
.bn__tleg-row    { display:contents; }
.bn__tleg-row > span:first-child { display:flex; align-items:center; gap:6px; font:500 13px var(--font-body); color:var(--fg-1); }
.bn__tleg-icon { width:15px; height:15px; flex:0 0 auto; color:var(--fg-2); opacity:.7; }
.bn__tleg-pct    { font:700 13px var(--font-body); color:var(--ql-muted); text-align:right; align-self:center; }

/* loan purpose — fraction stat */
.bn__panel--lp    { display:flex; flex-direction:column; }
.bn__lp-frac      { display:flex; align-items:center; gap:22px; margin-top:14px; flex:1; }
.bn__lp-frac-num  {
  font-family:var(--font-display); font-weight:900;
  font-size:clamp(44px,5.5vw,62px); line-height:.9;
  letter-spacing:-.04em; white-space:nowrap; flex:0 0 auto;
  background:linear-gradient(150deg,#25ABF1 0%,#1e83ef 50%,#0B5FB8 100%);
  -webkit-background-clip:text; -webkit-text-fill-color:transparent;
  background-clip:text; color:transparent;
}
.bn__lp-frac-title { font:700 16px/1.3 var(--font-body); color:var(--fg-1); margin-bottom:8px; }
.bn__lp-frac-body  { font:500 14px/1.7 var(--font-body); color:var(--fg-2); margin:0; }

/* donut hover tooltip */
.bn__donut-tip {
  position:fixed; pointer-events:none; z-index:200;
  background:#fff; border-radius:11px;
  box-shadow:0 8px 28px rgba(10,37,64,.13), 0 2px 8px rgba(10,37,64,.07);
  padding:10px 14px 10px 16px; border-left:4px solid #1e83ef;
  min-width:148px; opacity:0;
  transform:translateY(5px) scale(0.96);
  transition:opacity .14s ease, transform .14s ease;
}
.bn__donut-tip.is-visible { opacity:1; transform:translateY(0) scale(1); }
.bn__donut-tip__type { font:700 13px/1.3 var(--font-body); color:var(--ql-heading); }
.bn__donut-tip__sub  { font:500 12px/1.4 var(--font-body); color:var(--ql-muted); margin-top:3px; }

@media (max-width: 820px) { .bn__grid2 { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .bn__lead-grid { column-count: 2; } }
@media (max-width: 680px) {
  .bn__decade { padding: 36px 24px 28px; }
  .bn__decade-title-wrap { gap: 16px; }
  .bn__laurel svg { width: 52px; height: 97px; }
  .bn__dstats { grid-template-columns: 1fr; }
}
@media (max-width: 620px) { .bn__cash { grid-template-columns: 1fr; gap: 8px; text-align: center; } .bn__cash-title { justify-content: center; } }
@media (max-width: 420px) {
  .bn__decade { padding: 28px 16px 24px; }
  .bn__decade-title-wrap { gap: 10px; }
  .bn__laurel svg { width: 38px; height: 71px; }
}
@media (max-width: 480px) { .bn__lead-grid { column-count: 1; } }

/* =====================================================================
   MOBILE REFINEMENTS — desktop layout is intentionally untouched.
   Every rule below is inside a mobile media query.
   ===================================================================== */

/* Lead text: full sentence on desktop, tighter sentence on phones. */
.rc-lead--short { display: none; }

@media (max-width: 560px) {
  /* (1) & (4) Raise the whole page up under the shorter mobile nav.
         !important is required: the base .rc-page rule sets its padding with
         !important to clear the desktop nav, which is absolutely positioned.
         On phones that nav is in flow, so none of that clearance is needed. */
  .rc-page { padding-top: 36px !important; }
  .rc-head { margin-bottom: 26px; }
  .rc-head__closings[hidden], .rc-head__numbers[hidden] { display: none !important; }

  /* (2) Show the short lead (no forced <br>) and hide the long one. */
  .rc-lead--full  { display: none; }
  .rc-lead--short { display: inline; }
  .rc-head .lead  { font-size: 15.5px; line-height: 1.5; max-width: 94%; }

  /* (3) Underline tabs on mobile — drop the grey pill for a clean tab bar with
         a blue indicator under the active tab. No dead space. (Mobile only.) */
  .rc-toggle { margin-top: 18px; background: none; border: none; border-radius: 0;
               border-bottom: 1.5px solid var(--ql-line); padding: 0; gap: 0; }
  .rc-toggle__btn { border-radius: 0; background: none; box-shadow: none;
                    padding: 11px 18px; font-size: 14px; }
  .rc-toggle__btn.is-active { color: var(--ql-blue-text); background: none;
                    box-shadow: inset 0 -2.5px 0 var(--ql-blue); }

  /* (4) Property-type donut: stack the chart over its legend so the legend
         no longer gets shoved to the right and stretch the page wide. */
  .bn__donut-split { flex-direction: column; align-items: stretch; gap: 14px; }
  .bn__donut-split svg { margin: 0 auto; }
  .bn__tleg { width: 100%; }
}

@media (max-width: 400px) {
  .rc-page { padding-top: 30px !important; }
}

/* (4) Decade band: float the gold laurels to the top corners so they frame
       just the heading, letting the description run full width below. */
@media (max-width: 680px) {
  .bn__decade-title-wrap { position: relative; gap: 0; }
  .bn__decade-center { max-width: 100%; }
  .bn__decade-h { padding: 0 58px; }
  .bn__decade-desc { padding: 0; }
  .bn__laurel { position: absolute; top: 0; }
  .bn__laurel--left  { left: 0; }
  .bn__laurel--right { right: 0; }
}
@media (max-width: 420px) {
  .bn__decade-h { padding: 0 46px; }
}

/* =====================================================================
   INTEREST RATE / POINTS — round 3: dropped the vertical column-chart
   idea entirely. With only 3-4 buckets the bars sat too far apart and
   looked sparse, and the green accent didn't match anything else on the
   site. These two panels now reuse the exact .bn__stack/.bn__legend
   markup that "Loan size" already uses above (same blue palette) — no
   new component needed, so no new CSS lives here anymore either.
   ===================================================================== */

/* Loan term — honest placeholder panel, deliberately NOT shaped like a
   precise data distribution since loan-level term data isn't tracked yet
   (per Yoni: "vast majority are 12 month terms" — a general pattern, not
   a computed figure). Full-width band, big stat on the left, plain-
   language note on the right so it reads as directionally true rather
   than pretending to be as precise as the panels next to it. */
.bn__term-band {
  /* Round — now sits inside a .bn__grid2 row next to the "Where deals
     come from" donut instead of standing full-width on its own; the grid
     itself already provides the top margin, so a margin-top here would
     have pushed this panel down out of alignment with its neighbor. */
  background: #fff;
  border: 1px solid var(--ql-line);
  border-radius: 16px;
  padding: 26px 30px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.bn__term-num {
  flex: 0 0 auto;
  text-align: center;
  padding-right: 28px;
  border-right: 1px solid var(--ql-line);
}
.bn__term-num b {
  display: block;
  font: 800 44px var(--font-display);
  letter-spacing: -.02em;
  color: #0B5FB8;
  line-height: 1;
}
.bn__term-num span {
  display: block;
  font: 700 12px var(--font-body);
  color: var(--fg-3);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.bn__term-body { flex: 1 1 auto; min-width: 0; }
.bn__term-title { font: 800 16px var(--font-display); color: #252525; margin: 0 0 5px; }
.bn__term-desc { font: 500 13.5px/1.6 var(--font-body); color: var(--fg-3); margin: 0; }
.bn__term-note { display: inline-block; margin-top: 9px; font: 600 11.5px var(--font-body); color: var(--fg-3); background: var(--ql-cloud); border: 1px solid var(--ql-line); border-radius: 999px; padding: 4px 10px; }

@media (max-width: 640px) {
  .bn__term-band { flex-direction: column; align-items: flex-start; gap: 16px; }
  .bn__term-num { border-right: none; padding-right: 0; padding-bottom: 16px; border-bottom: 1px solid var(--ql-line); width: 100%; text-align: left; }
}

/* ==========================================================================
   "See more of our recent closings" gate — rebuilt 2026-09-06.
   Opened by the 2 / 3 / 4 pagination links under the closing cards.

   NOTE: these rules are deliberately NOT scoped under .rc-page, unlike the
   rest of this file. The theme's modal script can relocate .modal-container
   out of its original parent, which would put this markup outside .rc-page
   and break both the scoping and the --ql-* custom properties defined on it.
   Colours below are literal hex for the same reason.
   ========================================================================== */
.rc-gate { background: #0A2540; border-radius: 20px; padding: 46px 44px 38px; text-align: center; font-family: 'Inter', Arial, sans-serif; }
.rc-gate__icon { width: 46px; height: 46px; border-radius: 12px; background: rgba(38,127,253,.18); display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.rc-gate__h { font-weight: 900; font-size: clamp(22px,2.6vw,30px); letter-spacing: -.02em; line-height: 1.15; color: #fff; margin: 0 0 12px; }
.rc-gate__p { font-size: 16px; line-height: 1.6; color: #A9B6CC; max-width: 460px; margin: 0 auto 26px; }

.rc-gate__row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; max-width: 620px; margin: 0 auto; }
.rc-gate__input { height: 50px !important; margin: 0 !important; border: 1px solid #DCE4ED !important; border-radius: 10px; background: #fff !important; padding: 0 15px; font-size: 16px; color: #2A3B52 !important; font-family: inherit; box-sizing: border-box; }
.rc-gate__input::placeholder { color: #5E6E80; font-size: 15px; }
.rc-gate__input:focus { outline: none; border-color: var(--ql-blue-text) !important; background: #fff !important; box-shadow: 0 0 0 3px rgba(38,127,253,.18); }
.rc-gate__btn { height: 50px !important; width: auto !important; margin: 0 !important; padding: 0 30px !important; border: none; border-radius: 10px; background: #267FFD; color: #fff; font: 700 15px 'Inter', Arial, sans-serif; cursor: pointer; line-height: normal; transition: background .15s ease, transform .15s ease, box-shadow .15s ease; }
.rc-gate__btn:hover { background: #1556C4; transform: translateY(-3px); box-shadow: 0 8px 28px rgba(38,127,253,.38); }
.rc-gate__btn[disabled] { opacity: .7; cursor: default; }

.rc-gate__turnstile { margin: 14px auto 0; max-width: 620px; }
.rc-gate__fine { font-size: 12px; line-height: 1.6; color: #A9B6CC; margin: 16px 0 0; }
.rc-gate__fine a { color: #A9B6CC; text-decoration: underline; }
.rc-gate__fine a:hover { color: #fff; }

.rc-gate__success { padding: 8px 0 4px; }
.rc-gate__success-icon { width: 54px; height: 54px; border-radius: 50%; background: rgba(22,163,123,.16); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.rc-gate__success-h { font-weight: 800; font-size: 21px; color: #fff; margin-bottom: 8px; }
.rc-gate__success-p { font-size: 15px; line-height: 1.6; color: #A9B6CC; margin: 0; }

@media (max-width: 640px) {
  .rc-gate { padding: 34px 22px 30px; border-radius: 16px; }
  .rc-gate__row { grid-template-columns: minmax(0,1fr); }
  .rc-gate__btn { width: 100% !important; }
}
