/* Residence hub — Money Page 360 R1.
 *
 * Page-scoped stylesheet, loaded by the two hub pages and nothing else. It exists so the two owner
 * non-negotiables can be met WITHOUT touching okno-trust.css, which renders the trust block on
 * hundreds of other pages:
 *
 *   H360-01  the desktop team photograph was 200px wide inside a ~1152px column. The shared rule
 *            `.okt--compact .okt__row{grid-template-columns:minmax(180px,200px) minmax(0,1fr)}`
 *            owns that. Rather than widen it globally, the hub pair opts in to `.okt--hub`, which
 *            overrides the track only where that class is present.
 *   H360-02  the reviews sat inside a CLOSED <details> and the provider only loaded on click. The
 *            hub pair renders an always-visible surface instead; these rules give it the same
 *            compact, legible frame the disclosure had.
 *
 * Nothing here restyles `.okt`, `.okt--compact` or `.okt--compact-noreviews` on their own, so every
 * other consumer of the trust component renders byte-identically to before.
 */

/* ---------------------------------------------------------------- hero tertiary action --------- */
/* A text action, not a third button: the UA hero's primary action already ends at y832 in a 844px
   viewport, and another filled control would push it below the fold. */
.rzm-herolink {
  /* BLOCK-level, not inline.
   *
   * As `inline-flex` this sat inside a block container (`.rz-hero__preview`, 526px at 1440) next to
   * an `inline-flex` button 157px wide — so from 768 up the two fitted on one line and the link
   * rendered GLUED to the button's right edge, with zero gap: button 770..926, link 926..1204. Only
   * at 390 did it wrap, which is why a first-fold check at 390 alone did not see it.
   *
   * `flex` makes it a block-level box, so it starts its own line at every width. `width: fit-content`
   * keeps the click target exactly the words it had — a full-width block would silently enlarge it. */
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 6px;
  margin: 12px 0 0;
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 14.5px;
  line-height: 1.45;
  font-weight: 700;
  color: var(--gs-teal, #0d7c6b);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.rzm-herolink:hover { color: var(--gs-teal-d, #0a6558); }
.rzm-herolink:focus-visible { outline: 2px solid var(--gs-teal, #0d7c6b); outline-offset: 3px; border-radius: 4px; }

/* ---------------------------------------------------------------- buyer explainer --------------- */
.rzm-points { display: grid; gap: 14px; margin: 14px 0 0; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) { .rzm-points { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
.rzm-point {
  min-width: 0;
  background: var(--ok-card-surface, #fff);
  border: 1px solid var(--ok-card-line, #e7ecf3);
  border-radius: var(--ok-card-radius, 14px);
  padding: 16px 18px;
}
.rzm-point h3 { margin: 0 0 6px; font-size: 16px; line-height: 1.3; font-weight: 800; color: var(--gs-navy, #0c1e3c); }
.rzm-point p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--ok-ink, #33404f); overflow-wrap: break-word; }
.rzm-foot { margin: 16px 0 0; font-size: 14.5px; line-height: 1.55; color: var(--ok-muted, #5b6472); }

/* ---------------------------------------------------------------- compact contact entry --------- */
.rzm-contact {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px;
  background: var(--ok-card-surface-quiet, #f6f8fb);
  border: 1px solid var(--ok-card-line, #e7ecf3);
  border-radius: var(--ok-card-radius, 14px);
  padding: 16px 18px;
}
.rzm-contact__c { flex: 1 1 320px; min-width: 0; }
.rzm-contact__l { margin: 0 0 4px; font-size: 15.5px; font-weight: 800; color: var(--gs-navy, #0c1e3c); }
.rzm-contact__t { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--ok-ink, #33404f); overflow-wrap: break-word; }

/* ---------------------------------------------------------------- H360-01 desktop team photo ---- */
/* MEASURED, not guessed. The approved photograph is 1600x1000 and the seven people occupy only
   x=430..1180 of it — about 47% of the frame. Everything else is empty studio backdrop. That is why
   a 460px box still read as "a small central group": the people inside rendered at 460 x 0.47 = 216
   CSS px while the box looked large and half the row sat empty.
 *
 * The fix crops the empty backdrop with `object-fit: cover`, which needs no new asset: the approved
 * bytes are served unchanged and nothing is re-encoded. With a square box the cover algorithm keeps
 * the full height and trims the sides, and the arithmetic is fixed by the ratio alone:
 *
 *     visible source window = 1600 - 2 * (800 - 500 * ratio)
 *     ratio 1/1  ->  window x = 300..1300 (1000px)
 *     people          x = 430..1180        -> 130px clear to the left, 120px to the right
 *
 * The window depends only on the ratio, not on the rendered size, so every viewport crops identically
 * and all seven people stay whole at 390, 768, 1024 and 1440. The people now render at 75% of the box
 * instead of 47%: about 330 CSS px at a 440px box against 207 before — and 2.5x what the published full variant
 * renders at its own 280px track. The track is capped at 440 rather than taken wider: the body
 * column holds three facts and a date, roughly four lines, and a 520px-tall row beside four lines
 * of text simply moves the empty space from one side to the other.
 * Modelled and asserted by scripts/group-residence-money360/check-photo-optics.mjs. */
@media (min-width: 1000px) {
  #okno-trust.okt--hub .okt__row { grid-template-columns: minmax(340px, 440px) minmax(0, 1fr); gap: 32px; align-items: center; }
  #okno-trust.okt--hub .okt__media { max-width: 440px; }
}
#okno-trust.okt--hub .okt__pic { aspect-ratio: 1 / 1; display: block; }
#okno-trust.okt--hub .okt__pic img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 50%;   /* subject centre measured at x=805 of 1600, i.e. 50.3% */
  border-radius: 14px;
}
/* Below the desktop breakpoint the block stacks; the same square crop applies, so the group reads
   larger there too. */
@media (max-width: 999px) {
  #okno-trust.okt--hub .okt__media { max-width: 420px; }
}

/* ---------------------------------------------------------------- H360-02 open reviews ---------- */
/* The disclosure is gone; this is the frame it used to provide. Compactness here means LESS CHROME
   AROUND the reviews, never a shorter box around them: the provider renders its own carousel, and
   clipping it would hide third-party content and break the arrows and swipe. So the padding, the
   rule above and the heading shrink, and the slot keeps only a floor to stop the page jumping while
   the carousel arrives — there is no max-height anywhere. */
#okno-trust.okt--hub .okt__rev {
  margin: 14px 0 0;
  border-top: 1px solid var(--ok-card-line, #e7ecf3);
  padding: 12px 0 0;
}
#okno-trust.okt--hub .okt__revh { margin: 0 0 6px; font-size: 15px; font-weight: 800; color: var(--gs-navy, #0c1e3c); }
#okno-trust.okt--hub .okt__revb { margin: 0; }
/* A floor, not a ceiling. Removing it lets the surrounding content jump when the embed lands;
   capping it would clip the reviews. */
#okno-trust.okt--hub .okt__slot { min-height: 200px; }
@media (min-width: 1000px) { #okno-trust.okt--hub .okt__slot { min-height: 240px; } }
#okno-trust.okt--hub .okt__status { margin: 0 0 6px; font-size: 13.5px; color: var(--ok-muted, #5b6472); }
/* When the provider fails the fallback must be readable immediately, next to a working Google link,
   and must not sit inside a tall empty frame. */
#okno-trust.okt--hub .okt__fallback { margin: 0 0 6px; font-size: 14px; line-height: 1.5; color: var(--ok-ink, #33404f); }
#okno-trust.okt--hub .okt__rev:has([data-okt-fallback]:not([hidden])) .okt__slot { min-height: 0; }
#okno-trust.okt--hub .okt__glink { margin: 8px 0 0; font-size: 13.5px; }
#okno-trust.okt--hub .okt__glink a { color: var(--gs-teal, #0d7c6b); font-weight: 700; }

/* Keep a price and its currency symbol on one line. Presentational only: the approved sentence is
   unchanged, the wrapper exists so «150 €» never splits across a line break. */
.rzm-nb { white-space: nowrap; }
