/* CAE — NEWS LIBRARY (/news/) PAGE FIXES, 2026-09-29 (news2).  HAND-AUTHORED, PAGE-SCOPED.
 * =============================================================================================
 * Enqueued by functions.php on /news/ and its tab sibling /events/ (the News | Events strip swaps
 * the library in place). Every rule starts from the News library's own compiled section classes,
 * which no other page emits, so the sheet is inert everywhere else. Values are FRAME px (the site
 * presents at zoom 0.8). Kate Shawver, ClickUp 869ew29p6. Companion: assets/js/fix-news-cae.js.
 * ============================================================================================= */

/* ── 1. THE APPLIED-FILTERS PANEL (90120270085270) ─────────────────────────────────────────────
 * "The applied filter/terms panel that shows me the applied search terms in bubbles and clear
 * filter link are missing. It's supposed to show underneath the Search and Filters".
 * Markup: inc/cae-records-grid.php cae_recgrid_applied_panel_html(). Geometry: the design
 * system's own applied row, Banner-FilterSearchDropdown 3266:484007 -> Frame 1261152161: a
 * light-cream (#F7F4E2) strip 100 tall, the chips row 46 tall centred in it (27 above), chips
 * gap 11; "Filter Button" 3114:238470: white ground, 1px secondary-blue (#567B8E) stroke,
 * radius 50, padding 7 / 14, gap 10, label Acumin Pro Condensed 400 24/32 secondary-blue, the
 * 26 px close disc; "Clear Search" action 3691:134121: 20 px circled x + Acumin Pro 400 20/28
 * secondary-blue, gap 8, on the row's right end. The strip spans the filter row's width
 * (the section is the 1200 content column) and sits 24 under it, INSIDE the two dividers that
 * frame the filter block (the section is a flex column: the panel is appended last by the
 * renderer and the closing divider is ordered after it). */
.cae-website-redesign-cae-flow-news-library-frame-1261152170-generic:has(> .cae-recgrid-applied) > hr:last-of-type {
  order: 1;
}
/* (869f139ue 2026-10-14) The row's look itself moved to records-grid-cae.css "THE APPLIED-TERMS ROW, EVERY
 * FILTERED LIST", unkeyed, so every filtered list shares it; the rules that stood here (same values) are retired. */
/* Hot / focused: the chip takes its own ink as ground (the button family's filled variant); the
 * disc's white x stays legible on it. No underline (Kate's global link rule). */


/* ── 2. THE MAGNIFIER IS THE SEARCH BUTTON, ON A TAN DISC (90120270085700) ───────────────────
 * "Put a tan circle behind the magnifier icon and make that the button to execute a search".
 * Markup: <button type=submit class=cae-recgrid-search__go> around the drawn 24 px glyph
 * (inc/cae-records-grid.php, iconSubmit). Disc 40 in the site's Tertiary Tan (#D7BD92, the tan
 * the news-card thumbnails and the team placeholder sit on), centred on the drawn glyph's own
 * position: the form's 16 inline inset is cut to 8 on that side and the disc overhangs the
 * 28 content height (the field's line) by 6 each way, so the control keeps its drawn
 * 387 x 54.5 box and the row its height. Hover and
 * keyboard focus: the button family's filled state — evergreen ground, glyph white; RULE 1a's
 * 4 px arrow nudge (kate-global-rules-cae.css) is for arrows, so the glyph stays centred. */
.cae-website-redesign-cae-flow-news-library-frame-1261152170-generic form.cae-recgrid-search .cae-recgrid-search__go {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  margin-block: -6px;
  margin-inline: 0 -8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background-color: var(--wp--preset--color--tertiary-tan, #d7bd92);
  color: inherit;
  cursor: pointer;
  transition: background-color 180ms ease;
}
.cae-website-redesign-cae-flow-news-library-frame-1261152170-generic form.cae-recgrid-search .cae-recgrid-search__go .button-icon,
.cae-website-redesign-cae-flow-news-library-frame-1261152170-generic form.cae-recgrid-search:hover .cae-recgrid-search__go .button-icon,
.cae-website-redesign-cae-flow-news-library-frame-1261152170-generic form.cae-recgrid-search:focus-visible .cae-recgrid-search__go .button-icon {
  display: block;
  margin: 0;
  transform: none;
  transition: filter 180ms ease;
}
.cae-website-redesign-cae-flow-news-library-frame-1261152170-generic form.cae-recgrid-search .cae-recgrid-search__go:hover,
.cae-website-redesign-cae-flow-news-library-frame-1261152170-generic form.cae-recgrid-search .cae-recgrid-search__go:focus-visible {
  background-color: var(--wp--preset--color--primary-evergreen, #004f39);
}
.cae-website-redesign-cae-flow-news-library-frame-1261152170-generic form.cae-recgrid-search .cae-recgrid-search__go:hover .button-icon,
.cae-website-redesign-cae-flow-news-library-frame-1261152170-generic form.cae-recgrid-search .cae-recgrid-search__go:focus-visible .button-icon {
  filter: brightness(0) invert(1);
}
.cae-website-redesign-cae-flow-news-library-frame-1261152170-generic form.cae-recgrid-search .cae-recgrid-search__go:focus-visible {
  outline: 3px solid var(--wp--preset--color--green, #c5e3bf);
  outline-offset: 2px;
}

/* ── 3. LOAD MORE: one more group glides open below (90120270085913) ─────────────────────────
 * "keep me where I am with the new results gliding open below me". The script opens the next
 * `.cae-prod-more` band (12 cards) with .is-cae-news-open — the same subgrid the CSS-only
 * floor gives an opened band (records-grid-cae.css) — glides its height from 0, and hides the
 * pill once the last band is open. The checkbox floor still works with JavaScript off. */
.cae-website-redesign-cae-flow-news-library-section-generic .cae-recgrid-more-list.cae-recgrid-flow-rows > .cae-prod-more.is-cae-news-open {
  display: grid;
  grid-template-columns: subgrid;
  gap: var(--cae-recgrid-gap, 24px);
  align-items: stretch;
  margin: 0;
  padding: 0;
  width: auto;
}
.cae-website-redesign-cae-flow-news-library-section-generic .cae-recgrid-more-list.cae-recgrid-flow-rows > .cae-prod-more.is-cae-news-gliding {
  transition: height 450ms ease, opacity 450ms ease;
}
.cae-website-redesign-cae-flow-news-library-section-generic .cae-recgrid-more-list.cae-recgrid-flow-rows.is-cae-news-all-open > .cae-prod-more-btn {
  display: none;
}
.cae-website-redesign-cae-flow-news-library-section-generic .cae-recgrid-more-list > .cae-prod-more-btn:focus-visible {
  outline: 3px solid var(--wp--preset--color--green, #c5e3bf);
  outline-offset: 4px;
}
@media (prefers-reduced-motion: reduce) {
  .cae-website-redesign-cae-flow-news-library-frame-1261152170-generic form.cae-recgrid-search .cae-recgrid-search__go,
  .cae-website-redesign-cae-flow-news-library-section-generic .cae-recgrid-more-list.cae-recgrid-flow-rows > .cae-prod-more.is-cae-news-gliding {
    transition: none;
  }
}

/* ── 4. WHOLE CARD CLICKS THROUGH ON A PHONE TOO (Kate 2026-10-10 "Why aren't the post cards
 * clicking to the news posts?") ──────────────────────────────────────────────────────────────
 * The card's title link stretches over the card with ::after (kate-news-cae.css section 3), whose
 * containing block must be the card. Below 600 mobile-cae.css section 3 turns every emitted column
 * inside a card position:relative, so the ::after stopped at the title's own column: photo and
 * card corners did not click at 390 (measured: photo + corner FAIL, date OK; 1440/1024 OK). The
 * columns that hold the title link go back to static here; the card stays the containing block. */
@media (max-width: 599.98px) {
  .wp-site-blocks:not(#cae-m) .cae-website-redesign-cae-flow-news-library-section-generic .cae-recgrid-flow-rows [class*="__card-figma-generic-card-"] div:has(a.cae-recgrid__member-link) {
    position: static;
  }
}

/* ── 5. SEARCH + FILTER ROW SHARES THE GRID'S EDGES (Kate 2026-10-10 "the left and right edges of
 * the grid should line up with the left and right edges of results and search and filters
 * above") ────────────────────────────────────────────────────────────────────────────────────
 * The three controls kept their drawn 387 px each plus two 24 px gaps (1209) inside a 1201 px
 * row, so By Program ran 6.8 px past the grid's right edge at 1440 and 1024; on a phone each
 * stacked control kept 387 design px and stopped 40 px short of the grid's right edge at 390.
 * From 600 up the three share the row equally (gaps unchanged); below 600 each takes the row's
 * full width. The left edge, the dividers and the "N Results" line already sit on the grid. */
.wp-site-blocks:not(#cae-m) .cae-website-redesign-cae-flow-news-library-frame-1261152170-generic .wp-block-group:has(> .wp-block-buttons form.cae-recgrid-filter) > .wp-block-buttons {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
  max-width: none;
}
.wp-site-blocks:not(#cae-m) .cae-website-redesign-cae-flow-news-library-frame-1261152170-generic .wp-block-group:has(> .wp-block-buttons form.cae-recgrid-filter) > .wp-block-buttons > .wp-block-button,
.wp-site-blocks:not(#cae-m) .cae-website-redesign-cae-flow-news-library-frame-1261152170-generic .wp-block-group:has(> .wp-block-buttons form.cae-recgrid-filter) > .wp-block-buttons > .wp-block-button > form {
  flex: 1 1 auto;
  width: 100%;
  max-width: none;
}
@media (max-width: 599.98px) {
  .wp-site-blocks:not(#cae-m) .cae-website-redesign-cae-flow-news-library-frame-1261152170-generic .wp-block-group:has(> .wp-block-buttons form.cae-recgrid-filter) > .wp-block-buttons {
    flex: 0 0 100%;
  }
}
