/* ==========================================================================
   CAE — NEWS POSTS + IMPACT STORIES — GLOBAL BODY RULES
   Scope: every single News post (/news-events/news/*) and every single
   Impact Story (/impact/stories/*)
   Goal: post bodies render exactly like the Impact Story design, no matter
   what was pasted in during migration (Word, Google Docs, Gmail, Drupal,
   Squarespace, Jetpack).
   Prepared by 3Lane Marketing — Nov 2026
   ========================================================================== */
 
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content {
  --news-body:   #606055;  /* primary-granite-gray — body text          */
  --news-cap:    #767769;  /* caption gray (same as Impact Stories)     */
  --news-green:  #004F39;  /* primary-evergreen — headings, links       */
  --news-rule:   #E1DDDC;  /* neutral-color-2 — dividers, table lines   */
  --news-cream:  #F7F4E2;  /* light-cream — same as post title bar      */
  --news-frost:  #F3F5F7;  /* light-gray "frost" — contain thumbnails   */
  --news-flow:   var(--news-desk-flow);     /* space between paragraphs = one line of text */
  --news-media:  40px;     /* space above and below media blocks        */
  /* desktop type, kept here once: RULE 12 overrides the type below 782px, and post-conventions-cae.js part D2 measures the
     phone's photo/text rows in this desktop type (.cae-news-pair.is-desk) so a phone shows the desktop panels */
  --news-desk-fs:   22px;
  --news-desk-lh:   33px;
  --news-desk-flow: 22px;
 
  font-family: "Acumin Pro", sans-serif;
  font-size: var(--news-desk-fs);
  line-height: var(--news-desk-lh);
  color: var(--news-body);
}
 
/* --------------------------------------------------------------------------
   RULE 1 — Pasted formatting never wins
   Inline fonts, sizes, colours, highlights, line-heights and spacing from
   Word / Google Docs / Gmail are ignored. Bold and italic are kept.
   -------------------------------------------------------------------------- */
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content
  :is(p, li, span, div, td, th, a, strong, b, em, i, u, font, h1, h2, h3, h4, h5, h6, blockquote)[style] {
  font-family: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
  color: inherit !important;
  background-color: transparent !important;
  font-variant: normal !important;
  letter-spacing: inherit !important;
  white-space: normal !important;
  text-align: left !important;
  -webkit-text-stroke-width: 0 !important;
}
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content
  :is(p, li, span, blockquote, h1, h2, h3, h4, h5, h6)[style]:not(.has-background) {
  padding: 0 !important;
}
/* (pasted margins are overridden by the !important spacing in Rule 2) */
 
/* WordPress colour / size presets picked in the old editor */
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content
  :is(.has-text-color, .has-inline-color, [class*="-color"]):not(.has-background) {
  color: inherit !important;
}
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content
  :is(.has-small-font-size, .has-medium-font-size, .has-large-font-size,
      .has-x-large-font-size, .has-huge-font-size, .sqsrte-large, .MsoNormal) {
  font-size: inherit !important;
  line-height: inherit !important;
  font-family: inherit !important;
}
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content
  :is(.text-align-center, .has-text-align-center, .has-text-align-right) {
  text-align: left !important;
}
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content
  .has-drop-cap::first-letter {
  float: none !important;
  font-size: inherit !important;
  line-height: inherit !important;
  margin: 0 !important;
  font-weight: inherit !important;
}
 
/* A paragraph that had a background colour becomes the site's cream callout */
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content
  p.has-background {
  background: var(--news-cream) !important;
  color: var(--news-body) !important;
  padding: 24px 32px !important;
}
 
/* --------------------------------------------------------------------------
   RULE 2 — One vertical rhythm
   32px between text blocks, 40px around media; nothing else adds space.
   -------------------------------------------------------------------------- */
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content > * {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content > * + * {
  margin-top: var(--news-flow) !important;
}
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content >
  :is(.cae-news-quotes, .cae-news-photo.is-full, .wp-block-buttons, .cae-news-table-wrap, .wp-block-gallery, .tiled-gallery, .wp-block-jetpack-tiled-gallery,
      .wp-block-jetpack-slideshow, .cae-news-gallery, .wp-block-embed, .wp-block-video,
      .wp-block-audio, .wp-block-columns, .wp-block-table, table, hr, .wp-block-separator,
      blockquote, .wp-block-quote, .wp-block-pullquote) {
  margin-top: var(--news-media) !important;
  margin-bottom: var(--news-media) !important;
}
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content > :first-child { margin-top: 0 !important; }
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content > :last-child  { margin-bottom: 0 !important; }
 
/* Safety net — spacer paragraphs left over after cleanup never take up room */
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content
  :is(p:empty, div:empty) {
  display: none !important;
}
 
/* --------------------------------------------------------------------------
   RULE 3 — Headings
   H2 = Impact Story H2. H3–H6 share one sub-heading style.
   Any H1 inside the body is shown as an H2 (the post title is the only H1).
   -------------------------------------------------------------------------- */
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content :is(h1, h2) {
  font-family: "Acumin Pro Condensed", sans-serif !important;
  font-weight: 900 !important;
  font-size: var(--wp--preset--font-size--h-2-semibold, 40px) !important;
  line-height: 1.2 !important;
  color: var(--news-green) !important;
  text-transform: none;
  margin-top: 48px !important;
}
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content :is(h3, h4, h5, h6) {
  font-family: "Acumin Pro Condensed", sans-serif !important;
  font-weight: 700 !important;
  font-size: var(--wp--preset--font-size--h-3-semibold, 30px) !important;
  line-height: 1.25 !important;
  color: var(--news-green) !important;
  margin-top: 40px !important;
}
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content
  > :is(h1, h2, h3, h4, h5, h6) + * {
  margin-top: 16px !important;
}
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content
  :is(h1, h2, h3, h4, h5, h6) :is(strong, b, span) {
  font-weight: inherit !important;
}
 
/* --------------------------------------------------------------------------
   RULE 4 — In-text links: ONE treatment everywhere (body, quotes, captions,
   callouts, lists, tables) — dark green, bold, upright, underlined;
   underline disappears on hover, colour stays.
   -------------------------------------------------------------------------- */
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content a:not(.wp-block-button__link):not(.cae-button):not(.cae-news-gallery a):not(.cae-pc-zoom) {
  color: var(--news-green) !important;
  font-weight: 700 !important;
  font-style: normal !important;
  text-transform: none !important;
  font-family: inherit !important;
  font-size: inherit !important;
  text-decoration: underline !important;
  text-decoration-thickness: 1px !important;
  text-underline-offset: 3px !important;
  text-decoration-color: currentColor !important;
  background: none !important;
  overflow-wrap: anywhere;
}
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content a:not(.wp-block-button__link):not(.cae-button):not(.cae-news-gallery a):is(:hover, :focus-visible) {
  text-decoration: none !important;
  color: var(--news-green) !important;
}
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content a:not(.wp-block-button__link) :is(span, strong, b, em, i, u, font) {
  font-weight: 700 !important;
  font-style: normal !important;
  color: inherit !important;
  text-decoration: inherit !important;
}
 
/* --------------------------------------------------------------------------
   RULE 5 — Lists
   -------------------------------------------------------------------------- */
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content :is(ul, ol) {
  padding-left: 1.4em;
}
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content li + li {
  margin-top: 8px;
}
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content li > :is(ul, ol) {
  margin-top: 8px;
}
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content li[style] {
  font-weight: inherit !important;
}
 
/* --------------------------------------------------------------------------
   RULE 6 — Dividers
   -------------------------------------------------------------------------- */
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content :is(hr, .wp-block-separator) {
  border: 0 !important;
  border-top: 1px solid var(--news-rule) !important;
  background: none !important;
  height: 0 !important;
  width: 100% !important;
  max-width: none !important;
  opacity: 1 !important;
}
 
/* --------------------------------------------------------------------------
   RULE 7 — Single in-body photos: text wraps around them, and they use the
   sitewide in-page photo treatment ([data-cae-photo]: "?" ring that opens
   the caption, credit on the photo bottom-right, magnifier → lightbox).
   The component's own CSS/JS handles the ring, caption and credit; this file
   only places the photo in the text.
   -------------------------------------------------------------------------- */
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content {
  display: flow-root;            /* body always contains its floats */
}
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content > :is(figure.wp-block-image, .wp-block-image, figure.caption, .caption-drupal-entity, .wp-caption, figure.aligncenter, figure.alignleft, figure.alignright, .field-image, .embedded-entity, .cae-news-photo) {
  float: left !important;                 /* odd photos: LEFT (lead photo is on the right) */
  clear: both !important;
  width: 46% !important;
  max-width: 46% !important;
  margin: 6px 40px 20px 0 !important;     /* never touches the text */
  text-align: left !important;
}
/* Photos ALWAYS alternate sides: 1st left, 2nd right, 3rd left …
   The cleanup script adds is-wrap-left / is-wrap-right to each single photo
   in order (galleries and full-width photos don't count). */
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content > :is(figure.wp-block-image, .wp-block-image, figure.caption, .caption-drupal-entity, .wp-caption, figure.aligncenter, figure.alignleft, figure.alignright, .field-image, .embedded-entity, .cae-news-photo).is-wrap-right {
  float: right !important;
  margin: 6px 0 20px 40px !important;
}
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content > :is(figure.wp-block-image, .wp-block-image, figure.caption, .caption-drupal-entity, .wp-caption, figure.aligncenter, figure.alignleft, figure.alignright, .field-image, .embedded-entity, .cae-news-photo).is-wrap-left {
  float: left !important;
  margin: 6px 40px 20px 0 !important;
}
/* Portrait photos are narrower so they don't make a tall skinny text column */
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content > :is(figure.wp-block-image, .wp-block-image, figure.caption, .caption-drupal-entity, .wp-caption, figure.aligncenter, figure.alignleft, figure.alignright, .field-image, .embedded-entity, .cae-news-photo):has(img.is-portrait) {
  width: 34% !important;
  max-width: 34% !important;
}
/* Small originals (< 400px wide) float at their own size */
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content > :is(figure.wp-block-image, .wp-block-image, figure.caption, .caption-drupal-entity, .wp-caption, figure.aligncenter, figure.alignleft, figure.alignright, .field-image, .embedded-entity, .cae-news-photo):has(img.is-small) {
  width: auto !important;
  max-width: 46% !important;
}
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content > :is(figure.wp-block-image, .wp-block-image, figure.caption, .caption-drupal-entity, .wp-caption, figure.aligncenter, figure.alignleft, figure.alignright, .field-image, .embedded-entity, .cae-news-photo) img {
  display: block;
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  border-radius: 0 !important;
}
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content > :is(figure.wp-block-image, .wp-block-image, figure.caption, .caption-drupal-entity, .wp-caption, figure.aligncenter, figure.alignleft, figure.alignright, .field-image, .embedded-entity, .cae-news-photo):has(img.is-small) img { width: auto !important; }
/* Rounded / pill-cropped images from the old editor are switched off */
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content :is(.is-style-rounded, .is-style-circle-mask) img {
  border-radius: 0 !important;
}
/* Cream callout boxes and lists sit BESIDE a photo instead of running under it */
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content > :is(p.has-background, ul, ol) {
  display: flow-root;
}
/* Full-width blocks never wrap beside a photo */
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content > :is(hr, .wp-block-separator, .wp-block-gallery, .cae-news-gallery, .tiled-gallery,
      .wp-block-jetpack-tiled-gallery, .wp-block-jetpack-slideshow, .coblocks-gallery,
      .wp-block-embed, .wp-block-video, .wp-block-audio, .wp-block-columns, .wp-block-table,
      .cae-news-table-wrap, table, blockquote, .wp-block-quote, .wp-block-pullquote,
      .wp-block-buttons, .cae-pdf-postcard) {
  clear: both !important;
}
/* A photo straight after a heading or at the very end doesn't leave a gap */
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content > :is(figure.wp-block-image, .wp-block-image, figure.caption, .caption-drupal-entity, .wp-caption, figure.aligncenter, figure.alignleft, figure.alignright, .field-image, .embedded-entity, .cae-news-photo):last-child { margin-bottom: 0 !important; }
/* Fallback caption style, only for photos not yet converted to the component */
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content > :is(figure.wp-block-image, .wp-block-image, figure.caption, .caption-drupal-entity, .wp-caption, figure.aligncenter, figure.alignleft, figure.alignright, .field-image, .embedded-entity, .cae-news-photo) > figcaption:not(.cae-photo__cap) {
  font-family: "Acumin Pro", sans-serif !important;
  font-size: 18px !important;
  line-height: 26px !important;
  font-weight: 400 !important;
  font-style: normal !important;
  color: var(--news-cap) !important;
  text-align: left !important;
  margin-top: 12px !important;
  padding: 0 !important;
  background: none !important;
}
/* --------------------------------------------------------------------------
   Kate Shawver, "CAE Dev Notes: Story and News Photo Rules" (ClickUp 869ew340f
   + 869ew2ark, 2026-11-12), Fixes 1 and 2, verbatim. After the float rules
   above, before the phone rule below, so the phone rule keeps priority.
   -------------------------------------------------------------------------- */
/* FIX 1 — Postcard frame (not just the photo) lines up with the first line of text.
   Base float rule = margin-top 6px for a bare image; the postcard adds 16px of
   padding above the photo, so the frame needs 6 + 16 = 22px. */
:is(.cae-website-redesign-record-detail--news,
    .cae-website-redesign-record-detail--case-study)
  .cae-website-redesign-record-detail__content > figure.cae-postcard.cae-postcard--float {
  margin-top: 22px !important;
}
/* Lane adaptation of FIX 1 (flagged in the lane's PROVE.md; Kate's rule above is unchanged). Her 22px equals the
   paragraph gap (--news-flow), so the frame meets the first line when the photo follows text. After a media block
   (40px margin, the list in the media-spacing rule above) the float already sits below that margin, and 22px put the
   frame 17.6px (presented) below the first line of its paragraph: 27 photos sitewide at 1440. 0 lines it up.
   Wrapping widths only, so the phone rule keeps priority. */
@media (min-width: 782px) {
  :is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content >
    :is(.cae-news-quotes, .cae-news-photo.is-full, .wp-block-buttons, .cae-news-table-wrap, .wp-block-gallery, .tiled-gallery, .wp-block-jetpack-tiled-gallery,
        .wp-block-jetpack-slideshow, .cae-news-gallery, .wp-block-embed, .wp-block-video,
        .wp-block-audio, .wp-block-columns, .wp-block-table, table, hr, .wp-block-separator,
        blockquote, .wp-block-quote, .wp-block-pullquote) + figure.cae-postcard.cae-postcard--float {
    margin-top: 0 !important;
  }
}
/* FIX 2 — Every photo starts level with the paragraph after it.
   The block just before a photo is stretched until any earlier floated photo has
   ended, so a photo is never pushed down into the middle of the next paragraph. */
:is(.cae-website-redesign-record-detail--news,
    .cae-website-redesign-record-detail--case-study)
  .cae-website-redesign-record-detail__content
  > :not(figure):has(+ :is(figure.cae-postcard--float, .cae-news-photo.is-full))::after {
  content: "";
  display: block;
  clear: both;
}
/* Phones and small tablets: no wrapping, photo full width between paragraphs */
@media (max-width: 781px) {
  :is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content > :is(figure.wp-block-image, .wp-block-image, figure.caption, .caption-drupal-entity, .wp-caption, figure.aligncenter, figure.alignleft, figure.alignright, .field-image, .embedded-entity, .cae-news-photo),
  :is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content > :is(figure.wp-block-image, .wp-block-image, figure.caption, .caption-drupal-entity, .wp-caption, figure.aligncenter, figure.alignleft, figure.alignright, .field-image, .embedded-entity, .cae-news-photo).is-wrap-left,
  :is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content > :is(figure.wp-block-image, .wp-block-image, figure.caption, .caption-drupal-entity, .wp-caption, figure.aligncenter, figure.alignleft, figure.alignright, .field-image, .embedded-entity, .cae-news-photo).is-wrap-right,
  :is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content > :is(figure.wp-block-image, .wp-block-image, figure.caption, .caption-drupal-entity, .wp-caption, figure.aligncenter, figure.alignleft, figure.alignright, .field-image, .embedded-entity, .cae-news-photo):has(img.is-portrait),
  :is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content > :is(figure.wp-block-image, .wp-block-image, figure.caption, .caption-drupal-entity, .wp-caption, figure.aligncenter, figure.alignleft, figure.alignright, .field-image, .embedded-entity, .cae-news-photo):has(img.is-small) {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: var(--news-media) 0 !important;
  }
}
 
/* --------------------------------------------------------------------------
   RULE 8 — Every gallery type becomes ONE grid
   (wp-block-gallery, Jetpack tiled gallery, Jetpack slideshow, CoBlocks
   masonry → .cae-news-gallery in the cleanup pass). Fallback selectors are
   included so the grid still applies before the markup is converted.
   -------------------------------------------------------------------------- */
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content
  :is(.cae-news-gallery, .wp-block-gallery, .wp-block-jetpack-tiled-gallery .tiled-gallery__gallery, .coblocks-gallery) {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 16px !important;
  width: 100% !important;
  padding: 0 !important;
  list-style: none !important;
}
/* Column count follows the number of photos: 1 → full width, 2 or 4 → 2 columns, else 3 */
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content
  :is(.cae-news-gallery, .wp-block-gallery, .coblocks-gallery):is(:has(> :nth-child(2):last-child), :has(> :nth-child(4):last-child)) {
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important; /* 2 or 4 photos: each spans half the row */
}
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content
  :is(.cae-news-gallery, .wp-block-gallery, .coblocks-gallery):has(> :only-child) {
  grid-template-columns: 1fr !important;
}
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content
  :is(.cae-news-gallery, .wp-block-gallery, .coblocks-gallery):has(> :only-child) > * { aspect-ratio: auto !important; }
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content
  :is(.cae-news-gallery, .wp-block-gallery, .coblocks-gallery):has(> :only-child) img { height: auto !important; }
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content
  :is(.cae-news-gallery, .wp-block-gallery, .coblocks-gallery) > :is(figure, li, .wp-block-image) {
  width: 100% !important;
  max-width: none !important;
  flex: none !important;
  margin: 0 !important;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
}
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content
  :is(.cae-news-gallery, .wp-block-gallery, .coblocks-gallery) img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 0 !important;
}
/* Tiles with text on them, or portrait shots, are padded on frost, never cropped */
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content
  .cae-news-gallery > figure.is-contain {
  background: var(--news-frost);
}
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content
  .cae-news-gallery > figure.is-contain img {
  object-fit: contain !important;
}
/* Gallery captions live in the lightbox, not on the tile */
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content
  :is(.cae-news-gallery, .wp-block-gallery, .coblocks-gallery) figure figcaption {
  display: none !important;
}
@media (max-width: 781px) {
  :is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content
    :is(.cae-news-gallery, .wp-block-gallery, .coblocks-gallery) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 479px) {
  :is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content
    :is(.cae-news-gallery, .wp-block-gallery, .coblocks-gallery) {
    grid-template-columns: 1fr !important;
  }
}
 
/* --------------------------------------------------------------------------
   RULE 9 — Columns blocks
   -------------------------------------------------------------------------- */
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content .wp-block-columns {
  gap: 32px !important;
}
@media (max-width: 781px) {
  :is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content .wp-block-columns {
    flex-direction: column !important;
  }
  :is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content .wp-block-column {
    flex-basis: 100% !important;
  }
}
 
/* --------------------------------------------------------------------------
   RULE 10 — Tables
   -------------------------------------------------------------------------- */
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content .cae-news-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content table {
  width: 100% !important;
  border-collapse: collapse !important;
  font-size: 18px;
  line-height: 26px;
}
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content :is(td, th) {
  border: 1px solid var(--news-rule) !important;
  padding: 12px 16px !important;
  vertical-align: top !important;
  text-align: left !important;
  width: auto !important;
  height: auto !important;
}
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content
  :is(th, thead td, tr:first-child > td:only-of-type) {
  background: var(--news-cream) !important;
  font-weight: 700;
}
 
/* --------------------------------------------------------------------------
   RULE 11 — Video, audio and embeds
   -------------------------------------------------------------------------- */
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content
  :is(iframe, video, .wp-block-embed__wrapper iframe) {
  display: block;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9;
  border: 0;
}
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content audio {
  display: block;
  width: 100%;
}
/* Migration placeholders are never shown to the public */
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content
  :is(.cae-news-embed-removed, .jetpack-slideshow-noscript, broadstreet-zone, broadstreet-zone-container) {
  display: none !important;
}
 
/* --------------------------------------------------------------------------
   RULE 12 — Mobile type
   -------------------------------------------------------------------------- */
@media (max-width: 781px) {
  :is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content {
    font-size: 18px;
    line-height: 28px;
    --news-flow: 18px;
    --news-media: 32px;
  }
  :is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content :is(figcaption, .wp-caption-text) {
    font-size: 16px !important;
    line-height: 24px !important;
  }
}
 
/* --------------------------------------------------------------------------
   RULE 13 — Quotes = the sitewide Community Voices quote card
   (Community Connections). Consecutive quotes share one cream panel; a photo
   that belongs with a quote sits inside the card on the left.
   -------------------------------------------------------------------------- */
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content > .cae-news-quotes {
  clear: both !important;
  background: var(--news-cream);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content .cae-news-quote {
  margin: 0 !important;
  background: #fff;
  padding: 40px 48px 36px 72px;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  column-gap: 40px;
  position: relative;
}
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content .cae-news-quote.has-photo {
  grid-template-columns: minmax(0, 38%) minmax(0, 1fr);
  padding-left: 40px;
}
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content .cae-news-quote.has-photo > .cae-news-photo {
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  grid-row: 1 / span 2;
}
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content .cae-news-quote__text {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  position: relative;
  font-family: "Acumin Pro", sans-serif !important;
  font-size: 22px !important;
  line-height: 32px !important;
  font-style: normal !important;
  color: var(--news-body) !important;
}
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content .cae-news-quote__text p { margin: 0 !important; font-style: normal !important; }
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content .cae-news-quote__text p + p { margin-top: 16px !important; }
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content .cae-news-quote__text :is(em, i) { font-style: normal !important; }
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content .cae-news-quote__text::before {
  content: "\201C";
  position: absolute;
  left: -44px;
  top: -30px;
  font-family: "Bookman Press Sans", serif;
  font-size: 120px;
  line-height: 128px;
  color: var(--wp--preset--color--primary-brick, #B15533);
}
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content .cae-news-quote__text p:last-child::after {
  content: "\201D";
  font-family: "Bookman Press Sans", serif;
  font-size: 48px;
  line-height: 0;
  vertical-align: -0.35em;
  margin-left: 4px;
  color: var(--wp--preset--color--primary-brick, #B15533);
}
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content .cae-news-quote__by {
  margin: 20px 0 0 !important;
  padding-top: 16px;
  border-top: 1px solid var(--wp--preset--color--gray, #C7C6C6);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content .cae-news-quote__name {
  font-family: "Acumin Pro", sans-serif;
  font-size: 18px; line-height: 24px; font-weight: 600;
  color: var(--wp--preset--color--primary-brick, #B15533);
}
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content .cae-news-quote__role {
  font-family: "Acumin Pro", sans-serif;
  font-size: 18px; line-height: 24px; font-weight: 400;
  color: var(--news-body);
}
@media (max-width: 781px) {
  :is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content > .cae-news-quotes { padding: 16px; }
  :is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content .cae-news-quote, :is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content .cae-news-quote.has-photo {
    grid-template-columns: 1fr; padding: 48px 24px 28px; row-gap: 24px;
  }
  :is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content .cae-news-quote.has-photo > .cae-news-photo { grid-row: auto; }
  :is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content .cae-news-quote__text { font-size: 18px !important; line-height: 28px !important; }
  :is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content .cae-news-quote__text::before { left: -4px; top: -64px; font-size: 96px; }
}
 
/* --------------------------------------------------------------------------
   RULE 14 — Buttons = the site's yellow pill button (same size as every
   other site button, e.g. "Browse All Stories & News")
   -------------------------------------------------------------------------- */
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content > .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 16px; clear: both !important; }
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content .wp-block-button__link {
  display: inline-flex !important; align-items: center; gap: 8px;
  background: var(--wp--preset--color--primary-butter-yellow, #F2A518) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 40px !important;
  padding: 12px 24px 11px !important;
  font-family: "CAE Button Cond", "Acumin Pro Condensed", sans-serif !important;
  font-size: 20px !important; line-height: 1.4 !important; font-weight: 400 !important;
  font-style: normal !important; text-transform: none !important;
  text-decoration: none !important; width: auto !important;
}
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content .wp-block-button__link::after { content: "\203A"; font-size: 1.3em; line-height: 0; }
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content .wp-block-button__link:is(:hover, :focus-visible) { filter: brightness(0.95); }
 
/* --------------------------------------------------------------------------
   RULE 15 — Intro + photo states set by the cleanup
   -------------------------------------------------------------------------- */
/* No usable intro text: Impact Story layout (dateline, then photo full width) */
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-post-intro--stacked {
  display: block !important;
}
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-post-intro--stacked > figure {
  float: none !important;
  width: min-content !important;   /* white holder hugs the photo; caption wraps to the photo width */
  min-width: min(100%, 480px) !important;
  max-width: 100% !important;
  margin: 24px auto 0 !important;
}
/* A photo with no text after it to wrap around stays full width */
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content > .cae-news-photo.is-full {
  float: none !important;
  clear: both !important;
  width: 100% !important;
  max-width: 100% !important;
}
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content > .cae-news-photo.is-full:has(img.is-portrait) { width: 60% !important; max-width: 60% !important; margin-left: auto !important; margin-right: auto !important; }
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content > .cae-news-photo.is-full:has(img.is-small) { width: auto !important; }
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content .cae-news-photo--nocap { padding-bottom: 16px !important; }
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content .cae-news-gallery__item a { display: block; width: 100%; height: 100%; }
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content > .cae-news-gallery__caption { margin-top: -24px !important; font-size: 18px; line-height: 26px; color: var(--news-cap); }
 
/* Intro: dateline + intro text together, vertically centred beside the lead photo */
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-post-intro:not(.cae-post-intro--stacked) > .cae-post-intro__text {
  grid-column: 1 !important;
  grid-row: 2 !important;          /* the template's middle (auto) row: space / text / space */
  align-self: center !important;
}
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-post-intro:not(.cae-post-intro--stacked) > figure {
  grid-row: 1 / -1 !important;     /* photo spans all three rows */
}
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-post-intro__lede {
  margin: 0 !important;
  font-family: "Acumin Pro", sans-serif !important;
  font-size: 22px !important;
  line-height: 33px !important;
  font-weight: 400 !important;
  color: var(--wp--preset--color--primary-granite-gray, #606055) !important;
  background: none !important;
  padding: 0 !important;
}
/* Tiny icons / emoji images stay inline at text size */
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content img.cae-news-emoji {
  display: inline !important;
  width: 1.1em !important;
  height: 1.1em !important;
  vertical-align: -0.15em !important;
  margin: 0 0.1em !important;
  float: none !important;
}
 
/* Long words / URLs never push past the column */
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content :is(p, li, td, figcaption, a, em, strong) { overflow-wrap: anywhere; }
/* Intro may hold more than one short paragraph */
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-post-intro__lede + .cae-post-intro__lede { margin-top: 16px !important; }
 
/* Lead photo never taller than 560px; a portrait lead sits centred in its white holder */
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-post-intro > figure img {
  max-height: 560px !important;
  width: auto !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  display: block !important;
  object-fit: contain;
}
/* Small full-width photos: the white holder shrinks to the photo, centred */
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content > .cae-news-photo.is-full:has(img.is-small) {
  width: fit-content !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
/* Preformatted blocks that hold prose wrap like text (cleanup turns them into paragraphs) */
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content pre { white-space: pre-wrap !important; font-family: inherit !important; font-size: inherit !important; }
 
/* News photos keep their natural shape inside the postcard holder (the site's
   postcard thumbnail crop is for cards, not for photos in an article) */
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content .cae-news-photo .cae-jcf-pc__photo {
  height: auto !important;
  aspect-ratio: auto !important;
  padding: 0 !important;
}
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content .cae-news-photo .cae-jcf-pc__photo img {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
}
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content .cae-news-photo:has(img.is-small) .cae-jcf-pc__photo img { width: auto !important; max-width: 100% !important; }
/* Full-width portrait photos are capped so they don't fill the screen */
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content > .cae-news-photo.is-full:has(img.is-portrait) .cae-jcf-pc__photo img { max-height: 560px !important; width: auto !important; margin: 0 auto !important; }
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content > .cae-news-photo.is-full:has(img.is-portrait) { width: fit-content !important; max-width: 100% !important; }
 
/* Gallery rows always fill the width: 3 per row; a last row of 2 shares the row; a last single photo spans the row */
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content :is(.cae-news-gallery, .wp-block-gallery, .wp-block-jetpack-tiled-gallery .tiled-gallery__gallery, .coblocks-gallery) { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; }
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content :is(.cae-news-gallery, .wp-block-gallery, .coblocks-gallery) > * { grid-column: span 2 !important; }
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content :is(.cae-news-gallery, .wp-block-gallery, .coblocks-gallery) > :is(:last-child:nth-child(3n+2), :nth-last-child(2):nth-child(3n+1)) { grid-column: span 3 !important; }
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content :is(.cae-news-gallery, .wp-block-gallery, .coblocks-gallery) > :last-child:nth-child(3n+1) { grid-column: span 6 !important; aspect-ratio: 16 / 9 !important; }
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content :is(.cae-news-gallery, .wp-block-gallery, .coblocks-gallery):is(:has(> :nth-child(2):last-child), :has(> :nth-child(4):last-child)) > * { grid-column: span 3 !important; aspect-ratio: 4 / 3 !important; }
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content :is(.cae-news-gallery, .wp-block-gallery, .coblocks-gallery):has(> :only-child) > * { grid-column: 1 / -1 !important; aspect-ratio: auto !important; }
/* Phones and tablets (781px and below): every gallery is 2 across and a last odd photo spans the row, the way the 2- and
   4-photo galleries already render. The 2-column template names the same selector list as the 6-column one above,
   Jetpack's two-class selector included: with a shorter list it loses on specificity, the 6-column template stays, and
   each tile of a 3-, 5- or 6-photo gallery shrinks to one sixth of the row. The desktop last-row spans (span 3, span 6)
   out-rank the plain reset, so they are reset with their own selectors; left in a 2-column grid they add empty tracks. */
@media (max-width: 781px) {
  :is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content :is(.cae-news-gallery, .wp-block-gallery, .wp-block-jetpack-tiled-gallery .tiled-gallery__gallery, .coblocks-gallery) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  :is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content :is(.cae-news-gallery, .wp-block-gallery, .coblocks-gallery) > * { grid-column: auto !important; aspect-ratio: 4 / 3 !important; }
  :is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content :is(.cae-news-gallery, .wp-block-gallery, .coblocks-gallery) > :is(:last-child:nth-child(3n+2), :nth-last-child(2):nth-child(3n+1), :last-child:nth-child(3n+1)) { grid-column: auto !important; aspect-ratio: 4 / 3 !important; }
  :is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content :is(.cae-news-gallery, .wp-block-gallery, .coblocks-gallery) > :last-child:nth-child(odd) { grid-column: 1 / -1 !important; aspect-ratio: 16 / 9 !important; }
}
@media (max-width: 479px) {
  :is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content :is(.cae-news-gallery, .wp-block-gallery, .coblocks-gallery) > :last-child:nth-child(odd) { aspect-ratio: 4 / 3 !important; }
}
 
@media (max-width: 781px) {
  :is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content :is(.cae-news-gallery, .wp-block-gallery, .coblocks-gallery):is(:has(> :nth-child(2):last-child), :has(> :nth-child(4):last-child)) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  :is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content :is(.cae-news-gallery, .wp-block-gallery, .coblocks-gallery):is(:has(> :nth-child(2):last-child), :has(> :nth-child(4):last-child)) > * { grid-column: auto !important; }
}
 
/* ** note ** paragraphs = the cream callout (same as old highlighted paragraphs) */
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content p.cae-news-note {
  background: var(--news-cream) !important;
  padding: 24px 32px !important;
  display: flow-root;
}
 
/* ==========================================================================
   Photo height cap: no in-article photo is ever taller than 560px
   (same cap as the lead photo). Floated photos are already limited by their
   width (46%, portrait 34%); full-width photos are capped here and centred.
   ========================================================================== */
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content > .cae-news-photo .cae-jcf-pc__photo img {
  max-height: 560px !important;
  width: auto !important;
  max-width: 100% !important;
  margin: 0 auto !important;
}
/* ...and wrapped photos (is-wrap-left / is-wrap-right) are never cropped by it (Kate 1amzwvgd1qv: wrapped photos show at
   their NATURAL ratio, never cropped; her asks apply at every width). The cap reached them below 761px, where
   post-conventions-cae.css stacks them at 100% width with object-fit cover: a 2:3 portrait at 390 lost 60 of its 508
   screen px, and at 760 every stacked photo, landscapes too, was cut to 448. Beside text their width is the limit (the
   note above). Stacked, the 560px limit is kept the way full-width portraits keep it, by WIDTH: the figure is narrowed
   and centred so the photo is at most 560px tall at its own ratio (--cae-photo-ar = natural width / height, written on
   the figure by inc/cae-news-post-global.php). Content-box so the limit is the photo's width whatever the postcard's
   padding; no --cae-photo-ar = no limit (100 x 560px), never a crop. */
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content > .cae-news-photo:is(.is-wrap-left, .is-wrap-right) .cae-jcf-pc__photo img {
  max-height: none !important;
}
@media (max-width: 760px) {
  :is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content > figure.cae-postcard.cae-postcard--float.cae-news-photo:is(.is-wrap-left, .is-wrap-right) {
    box-sizing: content-box !important;
    width: auto !important;
    max-width: calc(560px * var(--cae-photo-ar, 100)) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}
 
/* Full-width (is-full) photos: the white ring hugs the photo instead of stretching across the
   column. The one-line caption must not set the width (it is truncated with "…" anyway). */
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content > .cae-news-photo.is-full {
  width: fit-content !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content > .cae-news-photo.is-full .cae-jcf-pc__caption {
  width: 0 !important;
  min-width: 100% !important;
  box-sizing: border-box;
}
/* A photo the wrap rule drops to full width (is-unfloated, written by inc/cae-news-post-global.php: Kate 1amzwvgd1qv "If no
   paragraph follows, drop the float and show it full width"; "no photo centered alone") spans the body column at its natural
   ratio, at every width: no 560px height cap, no portrait narrowing, never cropped. Its caption stays on it (the photo's own
   "?" ring). Photos full width for another reason (the last thing in the body) keep the rules above. */
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content > figure.cae-postcard.cae-news-photo.is-full.is-unfloated {
  float: none !important;
  clear: both !important;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content > figure.cae-postcard.cae-news-photo.is-full.is-unfloated .cae-jcf-pc__photo {
  width: 100% !important;
  max-width: 100% !important;
}
:is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content > figure.cae-postcard.cae-news-photo.is-full.is-unfloated .cae-jcf-pc__photo img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  margin: 0 !important;
}

/* ==== PHOTO ROWS, CENTRED PAIRS, GREY PANELS (Kate 1amzwvgd1qv, ClickUp 2026-11-23 00:22Z / 00:23Z / 00:31Z and the 00:33Z
   hand-off). Single-post templates only: every selector starts with the body template class (body.single-news,
   body.single-case_study) and the record-detail content area. Computed rules, no post is named.
   ROWS (div.cae-news-row, built by inc/cae-news-post-global.php from a one-row 2-3 photo layout table, plus a portrait float
   next to a 2-photo row): one justified row. Each card grows by its photo's ratio (--cae-photo-ar, natural width / height)
   from a zero content basis; content-box keeps the card's padding out of the share, so every photo gets the same height and
   its own natural width; nothing is cropped (height auto). The card, "?" ring and zoom pill are the shared postcard
   (photo-postcard-cae.js / .css). Phones (<= 760px): the row stacks, each photo at most 560px tall at its own ratio, centred,
   as the stacked floats are. ==== */
:is(body.single-news, body.single-case_study) :is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content > .cae-news-row {
  display: flex; flex-wrap: nowrap; align-items: flex-start; gap: 24px; clear: both; margin-top: 40px !important; margin-bottom: 40px !important;
}
:is(body.single-news, body.single-case_study) :is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content > .cae-news-row > figure.cae-postcard.cae-news-row__item.cae-news-row__item {
  flex: var(--cae-photo-ar, 1.5) 1 0px !important; box-sizing: content-box !important;
  width: auto !important; min-width: 0 !important; max-width: none !important; margin: 0 !important; float: none !important;
}
:is(body.single-news, body.single-case_study) :is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content > .cae-news-row > figure.cae-news-row__item > .cae-jcf-pc__photo { height: auto !important; width: 100% !important; }
:is(body.single-news, body.single-case_study) :is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content > .cae-news-row > figure.cae-news-row__item > .cae-jcf-pc__photo img {
  position: static !important; display: block !important; width: 100% !important; height: auto !important; max-width: none !important;
  max-height: none !important; aspect-ratio: auto !important; object-fit: fill !important; margin: 0 !important;
}
@media (max-width: 760px) {
  :is(body.single-news, body.single-case_study) :is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content > .cae-news-row { flex-direction: column; align-items: center; }
  :is(body.single-news, body.single-case_study) :is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content > .cae-news-row > figure.cae-postcard.cae-news-row__item.cae-news-row__item {
    flex: none !important; width: auto !important; max-width: calc(560px * var(--cae-photo-ar, 100)) !important; align-self: stretch;
    margin: 0 auto !important;
  }
}
/* PAIRS (div.cae-news-pair, built by assets/js/post-conventions-cae.js part D2 after fonts and images load, and again on resize):
   a float photo whose paragraph is no taller than the photo card (ring, card and pill included) sits beside it as two
   columns, text vertically centred, the card at its float width (--cae-pair-card: 40% of the column, a portrait
   min(32%, 300px)), never shrunk. is-panel: the paragraph is <= 85% of the card height -> on the #E7ECEF (med-gray) panel,
   square corners, 32px padding, 40px above and below. is-right: the photo on the right. is-measure: the script's measuring
   state (top-aligned, never painted). A white pair keeps the body's own flow spacing (--news-flow); a panel and a row take
   40px above and below (!important: the body's "> *" flow and transparent-background rules are !important). Phones: only panels are kept, the photo stacked above the text inside the panel; the script measures them on the desktop column in the desktop type (is-measure.is-desk, --news-desk-*), so a phone shows the desktop panels.
   No JS: no pair is built and the photos wrap as before. */
:is(body.single-news, body.single-case_study) :is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content > .cae-news-pair {
  display: flex; flex-direction: row; align-items: center; gap: 40px; clear: both; box-sizing: border-box;
}
:is(body.single-news, body.single-case_study) :is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content > .cae-news-pair.is-right { flex-direction: row-reverse; }
:is(body.single-news, body.single-case_study) :is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content > .cae-news-pair.is-measure { align-items: flex-start; }
/* FIX 2's clearfix (::after, on a block followed by a floated photo) would be a third flex item in a pair and add a second
   40px gap, so the painted text column came out 40px narrower than the column the script measured (Pies for People: measured
   0.928, painted 1.103). A pair clears both itself and holds no float, so it needs no clearfix. */
:is(body.single-news, body.single-case_study) :is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content > .cae-news-pair::after { content: none !important; display: none !important; }
:is(body.single-news, body.single-case_study) :is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content > .cae-news-pair.is-measure.is-desk {
  font-size: var(--news-desk-fs) !important; line-height: var(--news-desk-lh) !important; --news-flow: var(--news-desk-flow);
}
:is(body.single-news, body.single-case_study) :is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content > .cae-news-pair.is-panel {
  background: #E7ECEF !important; background-color: #E7ECEF !important; border-radius: 0 !important; padding: 32px !important;
  margin-top: 40px !important; margin-bottom: 40px !important;
}
:is(body.single-news, body.single-case_study) :is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content > .cae-news-pair > figure.cae-postcard.cae-news-photo.cae-news-photo {
  float: none !important; flex: 0 0 var(--cae-pair-card, 40%) !important; width: var(--cae-pair-card, 40%) !important;
  max-width: none !important; min-width: 0 !important; margin: 0 !important; box-sizing: border-box !important;
  align-self: center !important; /* the shared postcard is align-self: flex-start; a pair centres card and text on each other */
}
:is(body.single-news, body.single-case_study) :is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content > .cae-news-pair > figure.cae-news-photo > .cae-jcf-pc__photo { height: auto !important; width: 100% !important; }
:is(body.single-news, body.single-case_study) :is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content > .cae-news-pair > figure.cae-news-photo > .cae-jcf-pc__photo img {
  position: static !important; display: block !important; width: 100% !important; height: auto !important; max-width: none !important;
  max-height: none !important; aspect-ratio: auto !important; object-fit: fill !important; margin: 0 !important;
}
:is(body.single-news, body.single-case_study) :is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content > .cae-news-pair > .cae-news-pair__text { flex: 1 1 0px; min-width: 0; }
:is(body.single-news, body.single-case_study) :is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content > .cae-news-pair > .cae-news-pair__text > :first-child { margin-top: 0 !important; }
:is(body.single-news, body.single-case_study) :is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content > .cae-news-pair > .cae-news-pair__text > :last-child { margin-bottom: 0 !important; }
@media (max-width: 760px) {
  :is(body.single-news, body.single-case_study) :is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content > .cae-news-pair:not(.is-measure) { flex-direction: column; align-items: stretch; gap: 24px; }
  :is(body.single-news, body.single-case_study) :is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content > .cae-news-pair:not(.is-measure) > figure.cae-postcard.cae-news-photo.cae-news-photo {
    flex: none !important; box-sizing: content-box !important; width: auto !important;
    max-width: calc(560px * var(--cae-photo-ar, 100)) !important; margin: 0 auto !important; align-self: center;
  }
  :is(body.single-news, body.single-case_study) :is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content > .cae-news-pair:not(.is-measure) > .cae-news-pair__text { flex: none; }
}
