/* The staging theme builds these as direct children of main. Keep its interactive
   components, reusable page previews and shared footer separate from the cuts. */
.ogh:not(.ogh-home,.ogh-concepts) #main:not(:has(.ogh-v2,#ogh-copy-preview,.ogh-photo-review)) {
  --og-sheet: #e8f0f8;
  --og-white: var(--s0, #fff);
  --og-seam: clamp(36px, 3.5vw, 52px);
  --og-sky: var(--s1, #f3f6fc);
  --og-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 50' preserveAspectRatio='none'%3E%3Cpath fill='black' fill-opacity='.36' d='M0 9L78 4L166 12L241 6L320 14L410 8L492 5L550 12L641 6L723 12L806 5L908 10L1000 4L1100 10L1200 6V50H0Z'/%3E%3Cpath fill='black' fill-opacity='.57' d='M0 22L89 17L176 21L263 16L345 23L433 18L505 24L588 18L673 22L747 15L831 21L912 17L1015 23L1130 17L1200 22V50H0Z'/%3E%3Cpath fill='black' d='M0 36L78 40L164 34L251 37L340 33L437 39L529 34L641 39L732 35L821 41L905 34L1004 37L1103 33L1200 38V50H0Z'/%3E%3C/svg%3E");
}
.ogh:not(.ogh-home,.ogh-concepts) #main:not(:has(.ogh-v2,#ogh-copy-preview,.ogh-photo-review)) > :is(.p-sec,.blk) {
  --og-in: var(--og-white);
  position: relative;
  background-color: var(--og-in) !important;
}
.ogh:not(.ogh-home,.ogh-concepts) #main:not(:has(.ogh-v2,#ogh-copy-preview,.ogh-photo-review)) > :nth-child(odd of :is(.p-sec,.blk):not([hidden])) {
  --og-in: var(--og-sheet);
}
.ogh:not(.ogh-home,.ogh-concepts) #main:not(:has(.ogh-v2,#ogh-copy-preview,.ogh-photo-review)) > .p-sec.t-fb {
  --og-in: var(--fb,#002c7f);
}

/* Reuse the three original, independently drawn SVG shapes at each join.
   A transparent backing lets the actual previous surface show through. */
.ogh:not(.ogh-home,.ogh-concepts) #main:not(:has(.ogh-v2,#ogh-copy-preview,.ogh-photo-review)) > .edge9 {
  --og-in: var(--og-white);
  position: relative;
  z-index: 3;
  margin-top: calc(0px - var(--og-seam));
  height: var(--og-seam);
  isolation: isolate;
  pointer-events: none;
}
.ogh:not(.ogh-home,.ogh-concepts) #main:not(:has(.ogh-v2,#ogh-copy-preview,.ogh-photo-review)) > .edge9:has(+ :nth-child(odd of :is(.p-sec,.blk):not([hidden]))) {
  --og-in: var(--og-sheet);
}
.ogh:not(.ogh-home,.ogh-concepts) #main:not(:has(.ogh-v2,#ogh-copy-preview,.ogh-photo-review)) > .edge9:has(+ .p-sec.t-fb) {
  --og-in: var(--fb,#002c7f);
}
.ogh:not(.ogh-home,.ogh-concepts) #main:not(:has(.ogh-v2,#ogh-copy-preview,.ogh-photo-review)) > .edge9 > svg {
  width: 100%;
  height: var(--og-seam) !important;
  overflow: hidden;
}
.ogh:not(.ogh-home,.ogh-concepts) #main:not(:has(.ogh-v2,#ogh-copy-preview,.ogh-photo-review)) > .edge9 > svg > rect {
  fill: transparent !important;
}
.ogh:not(.ogh-home,.ogh-concepts) #main:not(:has(.ogh-v2,#ogh-copy-preview,.ogh-photo-review)) > .edge9 > svg > polygon[data-e] {
  fill: var(--og-in) !important;
  transform: none;
}
.ogh:not(.ogh-home,.ogh-concepts) #main:not(:has(.ogh-v2,#ogh-copy-preview,.ogh-photo-review)) > .edge9 > svg > polygon[data-e="1"] { fill-opacity: .36; }
.ogh:not(.ogh-home,.ogh-concepts) #main:not(:has(.ogh-v2,#ogh-copy-preview,.ogh-photo-review)) > .edge9 > svg > polygon[data-e="2"] { fill-opacity: .57; }
.ogh:not(.ogh-home,.ogh-concepts) #main:not(:has(.ogh-v2,#ogh-copy-preview,.ogh-photo-review)) > .edge9 > svg > polygon[data-e="3"] { fill-opacity: 1; }

/* A few posts/pages, Apply and the Give hero have no SVG sibling. Lay three
   translucent contours over the preceding surface without adding DOM or
   disturbing its photo shading, breadcrumbs, forms or card controls. */
.ogh:not(.ogh-home,.ogh-concepts) #main:not(:has(.ogh-v2,#ogh-copy-preview,.ogh-photo-review)) > :is(.p-hero,.p-sec,.ghero,.blk) + :is(.p-sec,.blk)::before,
.ogh:not(.ogh-home,.ogh-concepts) #main:not(:has(.ogh-v2,#ogh-copy-preview,.ogh-photo-review)) > :nth-last-child(1 of :is(.p-sec,.blk))::after {
  content: "";
  position: absolute;
  inset: auto 0 100%;
  z-index: 3;
  height: var(--og-seam);
  pointer-events: none;
  background-color: var(--og-in);
  -webkit-mask: var(--og-mask) center / 100% 100% no-repeat;
  mask: var(--og-mask) center / 100% 100% no-repeat;
}
.ogh:not(.ogh-home,.ogh-concepts) #main:not(:has(.ogh-v2,#ogh-copy-preview,.ogh-photo-review)) > :nth-last-child(1 of :is(.p-sec,.blk))::after {
  inset: auto 0 -1px;
  background-color: var(--og-sky);
}
@media (max-width: 700px) {
  .ogh:not(.ogh-home,.ogh-concepts) #main:not(:has(.ogh-v2,#ogh-copy-preview,.ogh-photo-review)) { --og-seam: 31px; }
}

/* The classic theme uses ogh-home for the front page and ogh-staging on this site. */
body.ogh:not(.ogh-home,.home,.pg-home):not(:has(.ogh-v2)) footer.pf {
  --directory-rule: rgb(255 255 255 / 30%);
}
body.ogh:not(.ogh-home,.home,.pg-home):not(:has(.ogh-v2)) footer.pf :is(.pfb,.f16b,.f16c,.f16d) {
  background: #002c7f;
}
body.ogh:not(.ogh-home,.home,.pg-home):not(:has(.ogh-v2)) footer.pf::after {
  content: none;
}
body.ogh:not(.ogh-home,.home,.pg-home):not(:has(.ogh-v2)) footer.pf .f16a.ogh-er {
  display: none;
}
body.ogh:not(.ogh-home,.home,.pg-home):not(:has(.ogh-v2)) footer.pf :is(.f16b,.f16c,.f16d) > .wrap {
  position: relative;
}
body.ogh:not(.ogh-home,.home,.pg-home):not(:has(.ogh-v2)) footer.pf :is(.f16b,.f16c,.f16d) > .wrap::before {
  content: "";
  position: absolute;
  inset: 0 24px auto;
  height: 1px;
  background: var(--directory-rule);
  pointer-events: none;
}
body.ogh:not(.ogh-home,.home,.pg-home):not(:has(.ogh-v2)) footer.pf .f16b .floc9 {
  border-inline-start: 0;
  padding-inline-start: 0;
}
body.ogh:not(.ogh-home,.home,.pg-home):not(:has(.ogh-v2)) footer.pf .f16c > .wrap {
  align-items: center;
  gap: 8px 24px;
  padding-block: 20px 30px;
}
body.ogh:not(.ogh-home,.home,.pg-home):not(:has(.ogh-v2)) footer.pf .f16d > .wrap {
  padding-block: 22px 26px;
}
@media (min-width: 1024px) {
  body.ogh:not(.ogh-home,.home,.pg-home):not(:has(.ogh-v2)) footer.pf .f16b > .wrap > :is(.ogh-flocs,nav) {
    border-inline-start: 1px solid var(--directory-rule);
    padding-inline-start: 22px;
  }
}
@media (min-width: 768px) and (max-width: 1023px) {
  body.ogh:not(.ogh-home,.home,.pg-home):not(:has(.ogh-v2)) footer.pf .f16b .ogh-flocs {
    border-bottom: 1px solid var(--directory-rule);
    padding-bottom: 22px;
  }
}
@media (max-width: 767px) {
  body.ogh:not(.ogh-home,.home,.pg-home):not(:has(.ogh-v2)) footer.pf .f16b > .wrap > :is(.ogh-flocs,nav) {
    border-top: 1px solid var(--directory-rule);
    padding-top: 22px;
  }
}
@media (max-width: 600px) {
  body.ogh:not(.ogh-home,.home,.pg-home):not(:has(.ogh-v2)) footer.pf :is(.f16b,.f16c,.f16d) > .wrap::before {
    inset-inline: 16px;
  }
  body.ogh:not(.ogh-home,.home,.pg-home):not(:has(.ogh-v2)) footer.pf .f16c > .wrap {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 4px 16px;
  }
  body.ogh:not(.ogh-home,.home,.pg-home):not(:has(.ogh-v2)) footer.pf .lgs9-i {
    grid-column: 1 / -1;
    margin-top: 8px;
  }
  body.ogh:not(.ogh-home,.home,.pg-home):not(:has(.ogh-v2)) footer.pf .f16d .by9 {
    flex-direction: column;
    justify-self: center;
    gap: 4px;
  }
}
@media (max-width: 374px) {
  body.ogh:not(.ogh-home,.home,.pg-home):not(:has(.ogh-v2)) footer.pf .f16c > .wrap {
    grid-template-columns: 1fr;
  }
}