/* Page-scoped hand fix, TEAM BIO pages (every single team_members post, /about-cae/team/<name>/),
 * Kate 869ext9h9 (2026-09-28 evening review). Enqueued only on is_singular('team_members'); every rule is
 * also scoped to body.single-team_members. Design px (the site presents at zoom 0.8). The page's base paint
 * is records-cae.css §3.3 / §3.5 (shared, untouched); this sheet overrides it on the bio pages only.
 * Frame 3776:39607 CAE-WhoWeAre-Staff-Detail-v8 (page-runs/kate-teambio-3776-39607). */

@media (min-width: 1024px) {

  /* (1) Kate 90120270139496 "There's a gap between the main banner and the bottom line of header menu that
   * shouldn't be there". The header's bottom rule (navbar band ::after, 1.25 high, 1.5 above the band's
   * bottom) was followed by 1.5 of band white plus the hero's own 1 px top margin (records-cae.css §3.3, the
   * frame's 204 -> 205 white): 2.5 design px of white between the rule and the green. The banner now starts
   * on the rule's bottom edge. */
  body.single-team_members .cae-website-redesign-record-detail.cae-website-redesign-record-detail--team-members > .cae-website-redesign-record-detail__hero {
    margin-top: -1.5px;
  }
}

@media (min-width: 1024px) {

  /* (2) Kate 90120270139564 "The main banner background should extend full width to each browser edge".
   * The banner's ground (green over the cream strip, the cream circle behind the portrait) was painted on the
   * hero box itself, which is the 1440 design canvas (144 -> 1296 CSS px at a 1440 viewport). The ground now
   * lives on a ::before that runs to both browser edges (the site's full-bleed idiom: 50vw / 0.8 each side of
   * the 1440 canvas); the portrait, name, title and contact lines keep their drawn canvas positions (94 / 571).
   * The circle keeps its drawn centre on the canvas, so beyond the canvas edge it is no longer cut off.
   * --cae-tb-bleed = design px from the canvas edge to the browser edge (0 at 1024-1152 viewports). */
  body.single-team_members .cae-website-redesign-record-detail--team-members {
    --cae-tb-bleed: max(0px, 50vw / 0.8 - 720px);
  }

  body.single-team_members .cae-website-redesign-record-detail.cae-website-redesign-record-detail--team-members > .cae-website-redesign-record-detail__hero {
    display: flow-root; /* overflow: clip is not a block formatting context: keep the title's top margin inside */
    isolation: isolate;
    overflow-x: visible;
    overflow-y: clip;
    background-image: none;
  }

  body.single-team_members .cae-website-redesign-record-detail.cae-website-redesign-record-detail--team-members > .cae-website-redesign-record-detail__hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    bottom: 0;
    left: calc(-1 * var(--cae-tb-bleed));
    right: calc(-1 * var(--cae-tb-bleed));
    pointer-events: none;
    /* (6) Kate Shawver 2026-10-13: "on the bio page put light green in the area left to the image running to
     * browser edge". Top layer: light green (theme green #C5E3BF) from the browser edge to the portrait's drawn
     * left edge (5.875rem = the figure's left: 94), full banner height. */
    background-image:
      linear-gradient(to right, var(--wp--preset--color--green, #c5e3bf) 0 calc(var(--cae-tb-bleed) + 5.875rem), transparent calc(var(--cae-tb-bleed) + 5.875rem)),
      radial-gradient(circle 18.125rem at calc(var(--cae-tb-bleed) + 8.3125rem) 14.1875rem,
        var(--wp--preset--color--light-cream) 0 100%, transparent 100%),
      linear-gradient(to bottom,
        var(--wp--preset--color--primary-evergreen) 0 19.375rem,
        var(--wp--preset--color--light-cream) 19.375rem 26.375rem);
  }
}

@media (min-width: 1024px) {

  /* (3) Kate 90120270139605 "The prev/next tabs should be anchored to the left and right edges of the browser
   * and move up/down content well as the user scrolls up/down". The frame draws the two 119x108 tabs on the
   * 1440 artboard's edges, tops level with the Q&A column (506 below the banner top); served, they sat on the
   * CANVAS edges (144 / 1296 CSS px at a 1440 viewport) and scrolled away with the page. Now: the tab track
   * spans the content well (from the Q&A column's top to main's bottom padding) and reaches both browser
   * edges; each tab is sticky at the viewport's vertical middle, so it starts at its drawn place, travels
   * with the reader through the bio, and stops at the content well's end (it never enters the header, the
   * CTA band or the footer). */
  body.single-team_members .cae-website-redesign-record-detail--team-members > .cae-website-redesign-record-nav.cae-website-redesign-record-nav--team-members {
    top: 31.625rem;
    bottom: 2.75rem;
    left: calc(-1 * var(--cae-tb-bleed));
    right: calc(-1 * var(--cae-tb-bleed));
    align-items: flex-start;
    z-index: 2;
  }

  body.single-team_members .cae-website-redesign-record-nav--team-members > .cae-website-redesign-record-nav__item.cae-website-redesign-record-nav__item {
    position: sticky;
    top: calc(50vh / 0.8 - 3.375rem);
    align-self: flex-start;
  }
}

/* (4) Kate 90120270139635 "add light grey BG to the prev/next tabs on hover": #EBEBEB over 180 ms, reduced motion
 * without the fade. Since 2026-10-10 (ClickUp 869ew2cqg) part of the shared record-nav--edge modifier in
 * records-cae.css, which the bio's nav carries, so the bios and the event pages cannot drift. */

/* (5) Kate 90120270139716 "Put this CTA banner block on all the Team bio pages" (her attachment: the BECOME PART OF
 * CAE'S COMMUNITY band as served on Current Openings, /about-cae/careers/). templates/single-team_members.html
 * includes the Current Openings CTA PATTERN itself (patterns/cae-aboutus-jobsandvolunteering-currentopportunities-
 * v4-cta-titlewithtext.php) after <main>, so the copy, the Why Work at CAE button and the staff photo have one
 * source; its 1440 paint is the pattern's own (style.css, unscoped). The Current Openings page sheet
 * (fix-employment-cae.css (2), (2b) and the photo crop, scoped to that page's body class) is mirrored here for
 * the bio pages: the pill sizes to its label on one line, the photo is cover-cropped at its centre, and at
 * 1024-1151 the 1440 split is kept (green text half 51.875 %, photo right, 407 tall) instead of the shared
 * sheet's stacked band. The 56 seam above the footer is the site standard (kate-global-rules-cae.css). */
body.single-team_members .cae-website-redesign-cae-aboutus-jobsandvolunteering-currentopportunities-v4-cta-titlewithtext-generic__button-figma-bound-button-i12011-134102-5089-68744-3129-87429 .wp-block-button__link {
  width: auto;
  white-space: nowrap;
}

body.single-team_members section.cae-website-redesign-cae-aboutus-jobsandvolunteering-currentopportunities-v4-cta-titlewithtext-generic > .cae-website-redesign-cae-aboutus-jobsandvolunteering-currentopportunities-v4-cta-titlewithtext-generic__media-figma-image-i12011-134102-5089-68745 > img {
  object-position: center;
}

@media (min-width: 1024px) and (max-width: 1151.98px) {
  body.single-team_members section.cae-website-redesign-cae-aboutus-jobsandvolunteering-currentopportunities-v4-cta-titlewithtext-generic {
    display: block;
    min-height: 407px;
    padding: 0;
    background-color: var(--wp--preset--color--primary-evergreen);
  }
  body.single-team_members section.cae-website-redesign-cae-aboutus-jobsandvolunteering-currentopportunities-v4-cta-titlewithtext-generic > .cae-website-redesign-cae-aboutus-jobsandvolunteering-currentopportunities-v4-cta-titlewithtext-generic__column-figma-generic-column-i12011-134102-8152-98997 {
    position: absolute;
    left: 80px;
    top: 48px;
    width: calc(51.875% - 120px);
  }
  body.single-team_members section.cae-website-redesign-cae-aboutus-jobsandvolunteering-currentopportunities-v4-cta-titlewithtext-generic > .cae-website-redesign-cae-aboutus-jobsandvolunteering-currentopportunities-v4-cta-titlewithtext-generic__media-figma-image-i12011-134102-5089-68745 {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 51.875%;
    right: 0;
    width: auto;
    height: auto;
    margin: 0;
  }
  body.single-team_members section.cae-website-redesign-cae-aboutus-jobsandvolunteering-currentopportunities-v4-cta-titlewithtext-generic > .cae-website-redesign-cae-aboutus-jobsandvolunteering-currentopportunities-v4-cta-titlewithtext-generic__media-figma-image-i12011-134102-5089-68745 > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
}

/* (6) THE CTA BAND IS INSIDE <main> (Kate 1amzwvgdu6f 2026-12-02, qa59 follow-up: "the bio-page green CTA band moved
 * inside main in the bio template"). templates/single-team_members.html now includes the band as main's last child
 * (before, it sat between </main> and the footer, and on phones her qa59 script moved it in and refitted it). Inside main
 * the band would sit inside main's side and bottom padding, and the edge tabs' track would run over it, so:
 *   - main's bottom padding goes (on phones the qa59 script zeroed it; from 782 it moves above the band: band margin =
 *     the old padding + the band's own 56 seam: 3.5rem below 1024, records-cae.css; 2.75rem from 1024);
 *   - below 1024 the band takes back main's side padding (25px below 600, 2rem from 600; main's own padding at those
 *     widths) so it runs edge to edge as it did outside main, and the phone bleed scripts find it already full width;
 *   - from 1024 the tab track ends where the bio ends (band 407 px tall from 1024: style.css and (5) above).
 * Measured box for box against the band placed after main at 390 / 800 / 1023 / 1100 / 1440 / 1920 (relmore-1202). */
body.single-team_members .cae-website-redesign-record-detail.cae-website-redesign-record-detail--team-members:has(> section.cae-website-redesign-cae-aboutus-jobsandvolunteering-currentopportunities-v4-cta-titlewithtext-generic) {
  padding-bottom: 0 !important;
}
@media (max-width: 1023.98px) {
  body.single-team_members .cae-website-redesign-record-detail--team-members > section.cae-website-redesign-cae-aboutus-jobsandvolunteering-currentopportunities-v4-cta-titlewithtext-generic {
    margin-left: -25px;
    margin-right: -25px;
    width: auto;
    max-width: none;
  }
}
@media (min-width: 600px) and (max-width: 1023.98px) {
  body.single-team_members .cae-website-redesign-record-detail--team-members > section.cae-website-redesign-cae-aboutus-jobsandvolunteering-currentopportunities-v4-cta-titlewithtext-generic {
    margin-left: -2rem;
    margin-right: -2rem;
  }
}
@media (min-width: 782px) {
  body.single-team_members .cae-website-redesign-record-detail--team-members > section.cae-website-redesign-cae-aboutus-jobsandvolunteering-currentopportunities-v4-cta-titlewithtext-generic {
    margin-top: calc(3.5rem + 56px);
  }
}
@media (min-width: 1024px) {
  body.single-team_members .cae-website-redesign-record-detail--team-members > section.cae-website-redesign-cae-aboutus-jobsandvolunteering-currentopportunities-v4-cta-titlewithtext-generic {
    margin-top: calc(2.75rem + 56px);
  }
  body.single-team_members .cae-website-redesign-record-detail.cae-website-redesign-record-detail--team-members:has(> section.cae-website-redesign-cae-aboutus-jobsandvolunteering-currentopportunities-v4-cta-titlewithtext-generic) > .cae-website-redesign-record-nav.cae-website-redesign-record-nav--team-members {
    bottom: calc(2.75rem + 56px + 407px);
  }
}
