/* neofit-20261203: makes /neo one screen (no page scroll) and moves the injected "Related offers" block
   (lib/related-offers.js) + related guides + footer links into an in-screen drawer.
   Loaded ONLY by /neo (neo.html). Every rule is scoped by html.nf-on (set by a tiny head script), so if JS is off the page just behaves as before.
   Rollback: ~/staging/neofit-20261203/rollback.sh */

/* 1) Page: exactly one screen. The injected blocks are moved into the drawer by neo-fit.js; until then they are hidden. */
html.nf-on body > .site-footer,
html.nf-on body > nav.bsrl,
html.nf-on body > #bremo-related-offers { display: none; }
html.nf-on .page { height: 100vh; height: 100svh; min-height: 0; }

/* 2) Neo logo = biggest thing on the page (desktop) */
html.nf-on img.partner-logo[src*="neo-wordmark"] {
  --nf-logo-h: min(172px, 21.5vh);
  height: var(--nf-logo-h); max-height: none;
  width: calc(var(--nf-logo-h) * 66 / 20); max-width: 100%;
  margin: 6px 0 8px;
}
@media (min-width: 721px) {
  html.nf-on .headline { font-size: 48px; line-height: 1.08; width: 760px; }
  html.nf-on .foot { padding-right: 330px; }  /* keep the disclosure clear of the fixed "Daily progress" pill */
  html.nf-on .foot .text-link { display: none; }  /* same drawer as "See the offer details" above */
  html.nf-on .support { max-width: 640px; font-size: 19px; margin-top: 6px; }
  html.nf-on .kicker { margin-bottom: 6px; }
  html.nf-on .offer-block { margin-top: 12px; }
}

/* 3) Main button states the offer; the condition sits right under it */
html.nf-on .pill--offer { font-size: 24px; font-weight: 700; }
html.nf-on .btn-note {
  margin: 8px 0 0; font-size: 17px; line-height: 1.35; font-weight: 600; color: var(--color-ink);
}
html.nf-on .offer-block .btn-note { order: 1; }
html.nf-on .more-links { align-items: center; gap: 10px 18px; margin-top: 8px; }
html.nf-on .more-links .pill--small { min-height: 40px; padding: 6px 18px; font-size: 14px; font-weight: 600; }
html.nf-on .condition { margin-top: 8px; font-size: 15px; }

/* 4) Related-offers drawer: restyle the injected block to fit a 420px side drawer */
html.nf-on #nf-related-offers:empty::before { content: "Loading related offers\2026"; color: var(--color-muted); font-size: 14px; }
html.nf-on .drawer__body #bremo-related-offers { margin: 0; padding: 0; max-width: none; width: 100%; font-size: 14px; }
html.nf-on .drawer__body #bremo-related-offers .bro-box { padding: 14px 14px 10px; }
html.nf-on .drawer__body #bremo-related-offers .bro-grid { grid-template-columns: 1fr; }
html.nf-on .drawer__body nav.bsrl { padding: 0; max-width: none; background: transparent; }
html.nf-on .drawer__body nav.bsrl { margin-top: 20px; }
html.nf-on .drawer__body nav.bsrl h2 { font-size: 18px !important; margin: 0 0 10px; }
html.nf-on .drawer__body .bsrl-grid { grid-template-columns: 1fr; }
html.nf-on .drawer__body .bsrl-grid a { font-size: 13.5px; padding: 10px 12px; }
html.nf-on .drawer__body .nf-foot { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--color-hairline); color: var(--color-muted); font-size: 13px; }
html.nf-on .drawer__body .nf-foot a { color: var(--color-ink); }

@media (max-width: 720px) {
  html.nf-on img.partner-logo[src*="neo-wordmark"] { width: 100%; height: auto; margin: 14px 0 10px; align-self: stretch; }
  html.nf-on .headline { font-size: 30px; line-height: 1.12; }
  html.nf-on .support { font-size: 16px; }
  html.nf-on .pill--offer { font-size: 21px; }
  html.nf-on .btn-note { font-size: 15px; margin-top: 6px; }
  html.nf-on .more-links { display: flex !important; }
  /* keep the small print clear of the floating offer card at the bottom right */
  html.nf-on .story { flex: 0 0 auto; }
  html.nf-on .offer-block .code-row { margin-top: 2px; }
  html.nf-on .code-chip { margin-top: 4px; }
  html.nf-on .condition { margin-top: 6px; }
  html.nf-on .more-links { margin-top: 6px; }
  html.nf-on .foot { padding-top: 8px; }
  html.nf-on .foot .text-link { display: none; }
}
