/* PAGE-SCOPED HAND FIX (2026-09-28): /subscribe/ (Subscribe [Form], ClickUp 869ew3k0t) and
 * /search/ (Global Search and Results, ClickUp 869ew3qn3) ONLY. Enqueued in functions.php for
 * those two page URIs; every rule is also scoped to the page's own body class.
 * Design px throughout (the site presents at zoom 0.8). */

/* ── SUBSCRIBE: panel + photo side by side, one band ─────────────────────────────────────
 * Frame CAE-Subscribe-V6 12805:321690: green panel 'Frame 1261152112' 12805:321693 at (0,122)
 * 1060x849 and photo 'CAE-Subscribe-Image01' 12805:321706 at (1060,122) 380x849 -- same top,
 * same height. Served before this sheet: at >=1160 the photo was lifted onto the panel by a
 * fixed margin-top:-1015px (stacked-bands-cae.css, the subscribe-form block) that no longer
 * matched the panel's rendered height, so the photo sat 23.5 below the panel top and the
 * footer rode 110 up over the panel's bottom (hiding the drawn note strip); below 1160 the
 * idiom is off and the photo stacked under the panel, 380 wide, flush left, with a void to
 * its right. Here the two siblings are a flex row at every width: 1060:380 of the canvas,
 * the photo stretched to the panel's height and cropped by its own object-fit:cover. */
body.cae-page--cae-flow-subscribe-form .wp-site-blocks .wp-block-post-content {
  display: flex;
  flex-direction: row;
  align-items: stretch;
}
body.cae-page--cae-flow-subscribe-form .wp-site-blocks .wp-block-post-content > .cae-website-redesign-cae-flow-subscribe-form-frame-1261152112-generic.cae-website-redesign-cae-flow-subscribe-form-frame-1261152112-generic {
  flex: 0 0 73.6111%; /* 1060 / 1440 */
  box-sizing: border-box;
  min-width: 0;
  width: auto;
  max-width: none;
  margin: 0;
  border-left: 0;
  border-right: 0;
  min-height: 849px;
}
body.cae-page--cae-flow-subscribe-form .wp-site-blocks .wp-block-post-content > .wp-block-cae-website-redesign-cae-flow-subscribe-form-cae-subscribe-image01.wp-block-cae-website-redesign-cae-flow-subscribe-form-cae-subscribe-image01 {
  flex: 1 1 0; /* the remaining 380 / 1440 */
  min-width: 0;
  width: auto;
  max-width: none;
  height: auto;
  min-height: 0;
  margin: 0;
  border-left: 0;
  border-right: 0;
}
body.cae-page--cae-flow-subscribe-form .wp-block-cae-website-redesign-cae-flow-subscribe-form-cae-subscribe-image01 > [class*="__scale-layer"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: none;
}
body.cae-page--cae-flow-subscribe-form .wp-block-cae-website-redesign-cae-flow-subscribe-form-cae-subscribe-image01 > [class*="__scale-layer"] > img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

/* SUBSCRIBE BLEED (2026-10-28, Kate 869ew3k0t, frame 12805:321690: the green panel starts at the frame's left edge and the
 * photo runs to its right edge). At >= 1152 the row is the 1440-design-px canvas, so at 1440 the panel painted from x144
 * presented and the photo stopped at x1296, leaving the canvas surplus white on both sides. Same mechanism as the portal
 * login band (fix-portal-cae.css L2 / L2b): the panel's green is carried to the viewport's left edge by a clipped box-shadow
 * (no layout change), the photo's flex cell takes the right surplus through a negative right margin (it already grows into
 * the row's free space and crops by object-fit: cover), and the panel's children shift left by half the surplus so the
 * form stack is centred on the green the visitor sees. b = --cae-bleed-edge (full-bleed-cae.css, declared on html,
 * WebKit-safe). The 1060 : 380 split inside the canvas, both heights and the tops are unchanged. Below 1152 the canvas
 * already spans the viewport (no surplus) and the gate keeps every rule off. */
@supports (zoom: 0.8) {
  @media (min-width: 1152px) {
    body.cae-page--cae-flow-subscribe-form .wp-site-blocks .wp-block-post-content > .cae-website-redesign-cae-flow-subscribe-form-frame-1261152112-generic.cae-website-redesign-cae-flow-subscribe-form-frame-1261152112-generic {
      box-shadow: 0 0 0 100vmax #004f39;
      clip-path: inset(0 0 0 -100vmax);
    }
    body.cae-page--cae-flow-subscribe-form .wp-block-post-content > .cae-website-redesign-cae-flow-subscribe-form-frame-1261152112-generic > * {
      position: relative;
      left: calc(var(--cae-bleed-edge, 0px) / -2);
    }
    body.cae-page--cae-flow-subscribe-form .wp-site-blocks .wp-block-post-content > .wp-block-cae-website-redesign-cae-flow-subscribe-form-cae-subscribe-image01.wp-block-cae-website-redesign-cae-flow-subscribe-form-cae-subscribe-image01 {
      margin-right: calc(0px - var(--cae-bleed-edge, 0px)) !important;
    }
  }
}

/* The five fields as drawn: 'Frame 1261152241' 12805:321699 puts First Name 12805:321700 and
 * Last Name 12805:321701 side by side (398 + 24 + 398 = 820); Email, the two selects below at
 * full 820; 24 between rows. The form engine stacks every field in one column and its
 * render-time honeypot wrapper (inc/forms-runtime.php:339, an unstyled <div class=
 * "site-form__hp">) is a zero-height flex item that still takes one 24 gap above the first
 * field. Its input still submits under display:none. */
body.cae-page--cae-flow-subscribe-form #site-form-subscribe {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 24px;
}
body.cae-page--cae-flow-subscribe-form #site-form-subscribe > * {
  grid-column: 1 / -1;
}
body.cae-page--cae-flow-subscribe-form #site-form-subscribe > .site-form__field--text {
  grid-column: auto;
}
body.cae-page--cae-flow-subscribe-form #site-form-subscribe > .site-form__hp {
  display: none;
}

/* The note strip 'Frame 1261152312' 12927:228152: (120,863) 820x60, the column's full width
 * (served at its text's width before this). */
body.cae-page--cae-flow-subscribe-form .cae-website-redesign-cae-flow-subscribe-form-frame-1261152112-generic__row-figma-generic-row-12927-228152 {
  align-self: stretch;
  width: auto;
  margin-block-start: 0; /* the drawn 32 above it (831 -> 863) is the panel's own gap; the extra
                            32 margin (style.css, the row's margin-block-start) doubled it */
}

/* Field labels white, as drawn: 'Email *' I12805:321702;1058:474287 and its siblings carry fill
 * #FFFFFF on the evergreen panel. The form engine's default label ink is granite #767769
 * (forms-cae.css .site-form__label, via --form-label-color), which painted #606055-on-#004F39
 * here. The engine's own per-form hook is used, so no other form changes. */
body.cae-page--cae-flow-subscribe-form #site-form-subscribe {
  --form-label-color: var(--wp--preset--color--white, #ffffff);
}

/* ── SEARCH at 1024 (below the compiler's 1151.98 release) ──────────────────────────────
 * Frame CAE-GlobalSearchandResults-V2 5196:133462. At 1440 the served page already matches
 * the frame (SEARCH 5196:133465 and the Form 5196:133466 at x120; EXPLORE POPULAR PAGES
 * 5196:133468 at 120,392; 'menu' 5196:133469 at 120,482; 'Menu' 5196:133473 at 835,482 --
 * the frame draws the two link columns left-aligned under the heading, not centred) and none
 * of these rules applies there. Below 1152 the compiler zeroes the green band's side padding
 * (style.css, the -search-generic @media max-width:1151.98 block: SEARCH and the field ran
 * edge to edge) and turns the two absolutely-placed link columns into wrapping flex items
 * with margin-left 120 / 492 (composition-cae.css), so column 1 doubled its inset to 240 and
 * column 2 wrapped below column 1 at x612. Here: the band keeps its 120 sides, and EXPLORE
 * POPULAR PAGES is a two-track grid -- heading across both, columns side by side on one row
 * with the drawn 34 below the heading, column 2 at the 1440 composition's 835 scaled into
 * the 1280 canvas (835 x 1280 / 1440 = 742.2). */
@media (max-width: 1151.98px) {
  body.cae-page--cae-flow-globalsearchandresults .cae-website-redesign-cae-flow-globalsearchandresults-search-generic.cae-website-redesign-cae-flow-globalsearchandresults-search-generic.cae-website-redesign-cae-flow-globalsearchandresults-search-generic {
    padding-inline-start: 120px;
    padding-inline-end: 120px;
  }
  body.cae-page--cae-flow-globalsearchandresults .cae-website-redesign-cae-flow-globalsearchandresults-frame-1261151797-generic.cae-website-redesign-cae-flow-globalsearchandresults-frame-1261151797-generic {
    display: grid;
    /* track 1 ends where column 2 starts: 835/1440 of the band's width, less the 120 inset;
       the band's content box is its width less 240, so 57.9861% of it + 19.1667 = that. */
    grid-template-columns: calc(57.9861% + 19.1667px) minmax(0, 1fr);
    column-gap: 0;
    row-gap: 34px; /* heading bottom 448 -> menus 482 */
    align-items: start;
    padding-inline-start: 120px;
    padding-inline-end: 120px;
  }
  body.cae-page--cae-flow-globalsearchandresults .cae-website-redesign-cae-flow-globalsearchandresults-frame-1261151797-generic__heading-figma-text-5196-133468.cae-website-redesign-cae-flow-globalsearchandresults-frame-1261151797-generic__heading-figma-text-5196-133468 {
    grid-column: 1 / -1;
    margin: 0;
  }
  body.cae-page--cae-flow-globalsearchandresults .cae-website-redesign-cae-flow-globalsearchandresults-frame-1261151797-generic__column-figma-generic-column-5196-133469.cae-website-redesign-cae-flow-globalsearchandresults-frame-1261151797-generic__column-figma-generic-column-5196-133469,
  body.cae-page--cae-flow-globalsearchandresults .cae-website-redesign-cae-flow-globalsearchandresults-frame-1261151797-generic__column-figma-generic-column-5196-133473.cae-website-redesign-cae-flow-globalsearchandresults-frame-1261151797-generic__column-figma-generic-column-5196-133473 {
    margin: 0;
    max-width: none;
  }
  body.cae-page--cae-flow-globalsearchandresults .cae-website-redesign-cae-flow-globalsearchandresults-frame-1261151797-generic__column-figma-generic-column-5196-133469 > p,
  body.cae-page--cae-flow-globalsearchandresults .cae-website-redesign-cae-flow-globalsearchandresults-frame-1261151797-generic__column-figma-generic-column-5196-133473 > p {
    white-space: nowrap;
  }
  /* the results band (5196:133493, 1200 wide at x120 in the results frame) on the same 120
     inset as the green band above it, rather than a 1200 box centred at x40 */
  body.cae-page--cae-flow-globalsearchandresults .cae-search__results {
    max-width: none;
    width: auto;
    margin-inline: 120px;
  }
}

/* ── SUBSCRIBE, PHONE (mobile3-1009, Kate 2026-10-09 mobile/tablet). The 1060:380 panel | photo row left the panel
 * 287 px wide at 390 with its 120 drawn side padding, so the form ran in a 95 px column and the two-line heading
 * sat over First Name. Below 600 the panel takes the full width with the 20 px phone gutter, the photo follows
 * it at 3:2. */
@media (max-width: 599.98px) {
  body.cae-page--cae-flow-subscribe-form .wp-site-blocks .wp-block-post-content { flex-direction: column; }
  body.cae-page--cae-flow-subscribe-form .wp-site-blocks .wp-block-post-content > .cae-website-redesign-cae-flow-subscribe-form-frame-1261152112-generic.cae-website-redesign-cae-flow-subscribe-form-frame-1261152112-generic {
    flex: 0 0 auto; width: 100%; min-height: 0; padding-left: 25px; padding-right: 25px;
  }
  body.cae-page--cae-flow-subscribe-form .wp-site-blocks .wp-block-post-content > .wp-block-cae-website-redesign-cae-flow-subscribe-form-cae-subscribe-image01.wp-block-cae-website-redesign-cae-flow-subscribe-form-cae-subscribe-image01 {
    flex: 0 0 auto; width: 100%; aspect-ratio: 3 / 2; position: relative;
  }
}

/* ── SUBSCRIBE FORM: FILLED FIELDS + CHOICE ROWS (Kate, ClickUp 1amzwvgctm2, 2026-11-19, the approved mock) ─────────────
 * #site-form-subscribe only, on the #004f39 panel; every width. Kate's reference CSS adapted to this sheet's selectors:
 * (1) A filled text-like control is #CDE9D7 + 2px solid #3F8F62; an empty one stays white with the 1px #C7C6C6 outline.
 *     "Filled" is the control's own state (:not(:placeholder-shown), Kate's selector), so the Email pre-filled from the
 *     footer (kate-global-rules-cae.js footerSubscribe(), ?email=) is green on load with no event. Padding is not
 *     compensated for the wider border: under the site's zoom .8 both widths snap to whole device px (at dpr 1 they are
 *     the same 1 device px; at dpr 2, 1 vs 3), so no fixed padding offsets them at every dpr. On this form
 *     the green REPLACES the global #F2F2F2 / #8A8A8A filled pair (forms-cae.css FILLED-FIELD STATE, 869fh8h8k): the id
 *     outranks its 0,6,0 chain, and the white "empty" rule also covers a control inside a ticked radio fieldset (the
 *     Address Type "Other" fill-in), which the global descendant rule painted grey while still empty.
 * (2) SELECTS (State/Province, Country): green while they hold a value, white on the empty "Select State" placeholder --
 *     the same filled = green rule as the text fields. Kate's :not(select) is there because :placeholder-shown never
 *     matches a select; the select's filled state is read from the engine's is-filled wrapper instead. Only
 *     background-COLOR is set: her `background` shorthand would erase the dropdown chevron (background-image).
 * (3) Every choice row on the form (All, the four newsletters, Submit as a company, Physical Mailings, the Address Type
 *     radios): 8/12 padding, 2px transparent border, radius 5, centred, 12 gap, 8 between rows; a checked row
 *     #CDE9D7 + #3F8F62 with a #004f39 600 label (class or :has(), see CHECKED ROW below); unchecked rows no fill, white
 *     label (forms-cae.css). The box is 20x20
 *     (radio the same, circled); `top: 0` retires the engine's cap-centre offset (forms-cae.css .site-form__choice-control
 *     top: calc(8px - .36em)), the label takes Kate's 1px nudge. The tick keeps the engine's 13/16 of the box.
 * (4) Validation error borders still win (doubled id, above everything here). */
body.cae-page--cae-flow-subscribe-form #site-form-subscribe .site-form__control:placeholder-shown,
body.cae-page--cae-flow-subscribe-form #site-form-subscribe .site-form__field:not(.is-filled) > .site-form__control--select {
  background-color: #ffffff;
  border-color: #c7c6c6;
}
body.cae-page--cae-flow-subscribe-form #site-form-subscribe .site-form__control:not(select):not(:placeholder-shown),
body.cae-page--cae-flow-subscribe-form #site-form-subscribe .site-form__field.is-filled > .site-form__control--select {
  background-color: #CDE9D7;
  border: 2px solid #3F8F62;
}
/* Autofill paints its own fill under the background; the inset cover carries the green instead (forms-cae.css does the
 * same in grey). Separate rules: an engine that does not know one pseudo-class must not drop the other. */
body.cae-page--cae-flow-subscribe-form #site-form-subscribe .site-form__control:not(select):-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #CDE9D7 inset;
  box-shadow: 0 0 0 1000px #CDE9D7 inset;
}
body.cae-page--cae-flow-subscribe-form #site-form-subscribe .site-form__control:not(select):autofill {
  box-shadow: 0 0 0 1000px #CDE9D7 inset;
}
body.cae-page--cae-flow-subscribe-form #site-form-subscribe .site-form__choice-group {
  gap: 8px;
}
body.cae-page--cae-flow-subscribe-form #site-form-subscribe .site-form__choice-option {
  padding: 8px 12px;
  border: 2px solid transparent;
  border-radius: 5px;
  align-items: center;
  background-color: transparent;
  gap: 12px;
  transition: background-color .15s ease, border-color .15s ease;
}
body.cae-page--cae-flow-subscribe-form #site-form-subscribe .site-form__choice-control {
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin: 0;
  flex-shrink: 0;
  top: 0;
}
body.cae-page--cae-flow-subscribe-form #site-form-subscribe .site-form__choice-control--checkbox:checked {
  background-size: 16.25px 16.25px;
}
body.cae-page--cae-flow-subscribe-form #site-form-subscribe .site-form__choice-control--radio:checked {
  box-shadow: inset 0 0 0 4px #ffffff;
}
body.cae-page--cae-flow-subscribe-form #site-form-subscribe .site-form__choice-label {
  line-height: 20px;
  margin: 0;
  padding-top: 2px;
  display: block;
  position: relative;
  top: 1px;
}
/* CHECKED ROW (ClickUp 1amzwvgctm2, Kate's re-test 2026-11-19: a ticked row stayed transparent while its label went
 * #004f39, nearly invisible on the dark panel). Two rules paint it with the same declarations: the is-checked class that
 * kate-global-rules-cae.js keeps in sync with the row's box, and the :has() rule as the fallback without JavaScript. They
 * stay separate rules: an engine that does not know :has() drops only that one. The label's dark green and 600 are set by
 * the SAME rule that paints the row (custom properties the label reads), so the label is never dark on a row that did not
 * turn green; on any other row the label keeps forms-cae.css's white regular. */
body.cae-page--cae-flow-subscribe-form #site-form-subscribe .site-form__choice-option.is-checked {
  background-color: #CDE9D7;
  border-color: #3F8F62;
  --cae-subscribe-choice-label-color: #004f39;
  --cae-subscribe-choice-label-weight: 600;
}
body.cae-page--cae-flow-subscribe-form #site-form-subscribe .site-form__choice-option:has(.site-form__choice-control:checked) {
  background-color: #CDE9D7;
  border-color: #3F8F62;
  --cae-subscribe-choice-label-color: #004f39;
  --cae-subscribe-choice-label-weight: 600;
}
body.cae-page--cae-flow-subscribe-form #site-form-subscribe .site-form__choice-option .site-form__choice-label {
  color: var(--cae-subscribe-choice-label-color, #FFFFFF);
  font-weight: var(--cae-subscribe-choice-label-weight, var(--wp--custom--font-weights--p-2-regular, 400));
}
/* Company Name (1amzwvgcj28) spans the row like Email; the grid's text-field rule above would halve it. */
body.cae-page--cae-flow-subscribe-form #site-form-subscribe > .site-form__field--company-name {
  grid-column: 1 / -1;
}
body.cae-page--cae-flow-subscribe-form #site-form-subscribe#site-form-subscribe .site-form__control[aria-invalid="true"] {
  border-color: var(--wp--preset--color--primary-brick, #a6342e);
}
body.cae-page--cae-flow-subscribe-form #site-form-subscribe#site-form-subscribe .site-form__control:not(:placeholder-shown):user-invalid {
  border-color: var(--wp--preset--color--primary-brick, #a6342e);
}
/* A floating disc steps aside while it would cover a row, field, label or button of the Subscribe form, at every width
 * (ClickUp 1amzwvgcj28 + 1amzwvgctm2). kate-global-rules-cae.js compares each disc's resting box with the form's visible parts
 * on every scroll, resize and form change and sets .cae-floater-aside only while they touch. Faded, not moved and not
 * visibility:hidden: the box stays where the check measures it, the disc stays in the tab order, and a keyboard reader who
 * reaches it sees it again (:focus-within). The trigger of the open accessibility panel is never faded, whatever the class says
 * (focus moves into the panel on open, so :focus-within alone would let it fade again). It replaces the earlier phone-only rule keyed on body.cae-form-engaged, which a
 * touch scroll started outside the form switched off while the form still sat under the discs. */
body.cae-page--cae-flow-subscribe-form > .cae-website-redesign-footer__accessibility-trigger.cae-floater-aside:not(:focus-within):not([aria-expanded="true"]),
body.cae-page--cae-flow-subscribe-form > .cae-website-redesign-footer__back-to-top.cae-floater-aside:not(:focus-within) {
  opacity: 0;
  pointer-events: none;
}
