/* Fidelity helpers for the 10 new-site pages. No copy or design changes.
   Stops theme/Bricks typography leaks from winning inside .oc-root, without
   overriding locked component or media-query sizes. Screenshot .shot pin
   matches the locked render helper. */
@font-face{font-family:"Inter";src:url("/wp-content/uploads/offerco/fonts/inter-latin-subset.ttf") format("truetype");font-weight:100 900;font-style:normal;font-display:swap}

body.oc-new-site .oc-root,
body.oc-new-site .oc-root *,
body.oc-new-site .oc-root *::before,
body.oc-new-site .oc-root *::after{box-sizing:border-box}
body.oc-new-site .oc-root{
  margin:0;
  font-family:"Inter",sans-serif;
  font-weight:400;
  font-size:18px;
  line-height:1.6;
  letter-spacing:normal;
  color:#1a1a1a;
  background:#fff;
  overflow-x:hidden;
  -webkit-text-size-adjust:100%;
}
body.oc-new-site .oc-root img{display:block;max-width:100%;height:auto}
/* The img height:auto reset is more specific than .logo img{height:30px} and
   was blowing the 1024px-wide logo up, wrapping the nav. Keep the locked sizes. */
body.oc-new-site .oc-root .logo{flex:0 0 auto}
body.oc-new-site .oc-root .logo img{
  height:30px;
  width:auto;
  max-width:none;
  max-height:30px;
}
body.oc-new-site .oc-root .ftop .logo img{height:28px;max-height:28px}
body.oc-new-site .oc-root .nav a{white-space:nowrap}
@media(max-width:600px){
  body.oc-new-site .oc-root .top .logo img{height:24px;max-height:24px}
}
body.oc-new-site .oc-root p{margin:0}
body.oc-new-site .oc-root p.rev-cta{margin-top:1.25rem;text-align:center}
body.oc-new-site .oc-root h1,
body.oc-new-site .oc-root h2,
body.oc-new-site .oc-root h3,
body.oc-new-site .oc-root h4,
body.oc-new-site .oc-root h5,
body.oc-new-site .oc-root h6{margin:0;font-family:"Inter",sans-serif}

/* Same screenshot pin as the locked mockups (class + --vh set only at capture). */
body.shot .cw,
.oc-root.shot .cw,
.shot .cw{position:absolute;bottom:auto;top:calc(var(--vh) - 24px - var(--cw-h))}
body.shot .cw:not(.open),
.oc-root.shot .cw:not(.open),
.shot .cw:not(.open){--cw-h:60px}
body.shot .cw.open,
.oc-root.shot .cw.open,
.shot .cw.open{--cw-h:674px}
body.shot .cw.open .panel,
.oc-root.shot .cw.open .panel,
.shot .cw.open .panel{max-height:none}
@media(max-width:600px){
  body.shot .cw:not(.open),
  .oc-root.shot .cw:not(.open),
  .shot .cw:not(.open){--cw-h:56px;top:calc(var(--vh) - 16px - 56px)}
  body.shot .cw.open,
  .oc-root.shot .cw.open,
  .shot .cw.open{top:0;height:var(--vh);right:0;left:0;bottom:auto}
}

/* v20261117zk: site-wide title-to-body gap.
   body.oc-new-site .oc-root p{margin:0} in this file was overriding the
   section title margins in home/chrome CSS. One token: --oc-title-gap (12px). */
body.oc-new-site .oc-root{--oc-title-gap:12px}
body.oc-new-site .oc-root .steps h3 + p,
body.oc-new-site .oc-root .card h3 + p,
body.oc-new-site .oc-root .band h2 + p,
body.oc-new-site .oc-root .benefits h3 + p,
body.oc-new-site .oc-root #benefits .cb3 p{
  margin-top:var(--oc-title-gap);
}
body.oc-new-site .oc-root .about .title-line{margin-top:var(--oc-title-gap)}
body.oc-new-site .oc-root .helps li strong,
body.oc-new-site .oc-root .bridge h2,
body.oc-new-site .oc-root .opt-panel .opt-subh,
body.oc-new-site .oc-root .opt-pc h4{
  margin-bottom:var(--oc-title-gap);
}
/* Keep designed gaps that are already larger than 12px (hero lead, about body). */
body.oc-new-site .oc-root .hero .lead{margin-top:1.25rem}
@media(max-width:560px){body.oc-new-site .oc-root .hero .lead{margin-top:.9rem}}
body.oc-new-site .oc-root .about p.body{margin-top:1.1rem}

/* v20261117zl: one site-wide gap from each section H2 to the intro/body
   text directly under it. Replaces the 12px lock on section h2 → p.sub only.
   Card/step/banner 12px, hero lead, and About hero/title-line stay as they are. */
body.oc-new-site{--oc-section-title-gap:22px}
body.oc-new-site .oc-root{--oc-section-title-gap:22px}
@media(max-width:600px){
  body.oc-new-site{--oc-section-title-gap:18px}
  body.oc-new-site .oc-root{--oc-section-title-gap:18px}
}
body.oc-new-site .oc-root .head p.sub,
body.oc-new-site .oc-root h2 + p.grating{
  margin-top:var(--oc-section-title-gap);
}
/* Home chat intro has an inline margin-top:.75rem; override so it matches. */
body.oc-new-site .oc-root .chat-copy > p.sub{
  margin-top:var(--oc-section-title-gap) !important;
}
/* When the section head has no intro paragraph and the next sibling is
   body copy (not a card grid or accordion), use the same gap instead of
   the larger .head margin-bottom. */
body.oc-new-site .oc-root .head:not(:has(p.sub)):has(+ .why-copy),
body.oc-new-site .oc-root .head:not(:has(p.sub)):has(+ .prose){
  margin-bottom:var(--oc-section-title-gap);
}
/* Legal section H2 → following body (p, ul, or table). Keep the top margin. */
body.oc-new-site .oc-page-legal article.legal h2{
  margin-bottom:var(--oc-section-title-gap);
}
