/* cae-website-redesign-theme-site-overlay-campaign-cae: assets/css/campaign-cae.css */
/*
 * Campaign components (ClickUp 869ew3ut4, Global: Campaign Components), hand-built 2026-10-08
 * from Kate's clickthrough, Figma section 1716:11052 "CAE-FLOW-CampaignTemplate Popup,
 * Announcement Banners, Side boxes-V1" (read-only dump build/sites/cae-website-redesign/
 * page-runs/campaign-components/figma-rest). Six drawn types, one block pattern each
 * (patterns/campaign-*.php, inserter category "CAE Campaigns"):
 *   side box ............ 4609:40605   454 x 398, evergreen, shadow 0 4 32 rgba(0,0,0,.18)
 *   announcement panel .. 1716:11102   1440 x 320, image 667 | evergreen copy column
 *   popup ............... 4612:114931  786 wide modal on a cream 80% scrim (4612:114951)
 *   announcement bar .... 4609:34265   1440 x 112, one line
 *   announcement banner . 4609:36380   1440 x 231, title, two lines, button
 *   cookie notice ....... 13111:106888 brick band with a torn top edge, Accept All / Reject All
 * Lengths are design px (the canvas presents at zoom 0.8, presented-scale-cae.css).
 * Keyed on the components' own classes only; no node keys. Buttons reuse the global
 * arrow hover (kate-global-rules-cae.css: img.button-icon translateX(4px)).
 */
.cae-campaign {
  --cae-campaign-green: #004f39;
  --cae-campaign-gold: #f2a518;
  --cae-campaign-mint: #c5e3bf;
  --cae-campaign-brick: #b15533;
  --cae-campaign-tan: #f5e2a7;
  position: relative;
  box-sizing: border-box;
  color: #fff;
  font-family: var(--wp--preset--font-family--acumin-pro), sans-serif;
  font-size: 20px;
  line-height: 28px;
}
.cae-campaign *,
.cae-campaign *::before,
.cae-campaign *::after { box-sizing: border-box; }
.cae-campaign.is-dismissed { display: none !important; }
.cae-campaign :where(p, h2, ul, figure) { margin: 0; }
.cae-campaign p { font-size: 20px; line-height: 28px; letter-spacing: 0; }
.cae-campaign__title {
  font-family: var(--wp--preset--font-family--bookman-press-sans), serif;
  font-weight: 400;
  font-size: 48px;
  line-height: 56px;
  letter-spacing: 0.96px;
  color: #fff;
  text-transform: none;
}

/* Pill button (Figma "Button": 167 x 51, gold, radius 40, pad 12 24 11 24, gap 10, Acumin Pro Condensed 20/28 white). */
.cae-campaign .wp-block-buttons { display: flex; gap: 11px; margin: 0; }
.cae-campaign .wp-block-button { margin: 0; }
.cae-campaign .wp-block-button__link,
.cae-campaign .cae-campaign__choice {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 51px;
  padding: 12px 24px 11px;
  border-radius: 40px;
  border: 0;
  background: var(--cae-campaign-gold);
  color: #fff;
  font-family: var(--wp--preset--font-family--acumin-pro-condensed), sans-serif;
  font-size: var(--wp--preset--font-size--p-2-regular-acumin-pro-cond);
  line-height: 28px;
  font-weight: 400;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.cae-campaign .wp-block-button__link .button-icon { width: 20px; height: 20px; flex: none; }

/* Close button (Figma "Button-Close": a filled circle with a 44% X). */
.cae-campaign__close {
  --cae-close-size: 32px;
  --cae-close-bg: var(--cae-campaign-gold);
  --cae-close-x: #fff;
  position: absolute;
  width: var(--cae-close-size);
  height: var(--cae-close-size);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--cae-close-bg);
  cursor: pointer;
  z-index: 2;
}
.cae-campaign__close::before,
.cae-campaign__close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(var(--cae-close-size) * 0.56);
  height: 2px;
  border-radius: 1px;
  background: var(--cae-close-x);
  transform: translate(-50%, -50%) rotate(45deg);
}
.cae-campaign__close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.cae-campaign__close:focus-visible,
.cae-campaign .wp-block-button__link:focus-visible,
.cae-campaign__choice:focus-visible,
.cae-campaign__more:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* 1. Side box (4609:40605). The close circle sits centred on the top-right corner. */
.cae-campaign-sidebox {
  width: 454px;
  max-width: 100%;
  min-height: 398px;
  padding: 24px 25px 24px 26px;
  background: var(--cae-campaign-green);
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cae-campaign-sidebox > .cae-campaign__close { top: -16px; right: -16px; }
.cae-campaign-sidebox .cae-campaign__title {
  width: 100%;
  font-size: 30px;
  line-height: 40px;
  letter-spacing: 0;
  text-align: center;
}
.cae-campaign-sidebox .cae-campaign__rule {
  width: 333px;
  max-width: 100%;
  margin: 16px 0 0;
  border: 0;
  border-top: 1px solid #fff;
  opacity: 1;
}
.cae-campaign-sidebox .cae-campaign__list {
  width: 333px;
  max-width: 100%;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cae-campaign-sidebox .cae-campaign__list li {
  position: relative;
  padding-left: 20px;
  font-size: 20px;
  line-height: 28px;
}
.cae-campaign-sidebox .cae-campaign__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cae-campaign-gold);
}
.cae-campaign-sidebox .wp-block-buttons { margin-top: auto; padding-top: 39px; justify-content: center; }

/* 2. Announcement panel (1716:11102): picture 667 of 1440, copy column inset 32. */
.cae-campaign-panel {
  display: grid;
  grid-template-columns: minmax(0, 667fr) minmax(0, 773fr);
  min-height: 320px;
  background: var(--cae-campaign-green);
}
.cae-campaign-panel > .cae-campaign__media { position: relative; margin: 0; min-height: 320px; overflow: hidden; }
.cae-campaign-panel > .cae-campaign__media img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.cae-campaign-panel > .cae-campaign__body { position: relative; padding: 32px 116px 32px 32px; }
.cae-campaign-panel .cae-campaign__close { --cae-close-bg: #fff; --cae-close-x: #598527; top: 44px; right: 42px; }
.cae-campaign-panel .cae-campaign__body > p { max-width: 628px; margin-top: 20px; }
.cae-campaign-panel .wp-block-buttons { margin-top: 45px; }

/* 3. Popup (4612:114931) on its cream 80% scrim (4612:114951). */
.cae-campaign-popup-scrim {
  display: flex;
  justify-content: center;
  padding: 64px 20px;
  background: rgba(247, 244, 226, 0.8);
}
.cae-campaign-popup-scrim.is-overlay,
.cae-campaign-test__overlay .cae-campaign-popup-scrim { position: fixed; inset: 0; z-index: 1000; align-items: center; overflow: auto; }
.cae-campaign-popup {
  width: 786px;
  max-width: 100%;
  background: var(--cae-campaign-green);
  text-align: center;
}
.cae-campaign-popup .cae-campaign__title { padding: 32px 40px 0; }
.cae-campaign-popup > .cae-campaign__media { margin: 32px 40px 0; }
.cae-campaign-popup > .cae-campaign__media img { display: block; width: 100%; aspect-ratio: 706 / 332; height: auto; object-fit: cover; }
.cae-campaign-popup > .cae-campaign__body { padding: 32px 40px; background: var(--cae-campaign-mint); }
.cae-campaign-popup > .cae-campaign__body > p { max-width: 591px; margin: 0 auto; color: #767769; }
.cae-campaign-popup .wp-block-buttons { margin-top: 32px; justify-content: center; }
.cae-campaign-popup > .cae-campaign__foot { position: relative; height: 69px; background: #fff; }
.cae-campaign-popup .cae-campaign__close { --cae-close-size: 40px; --cae-close-bg: var(--cae-campaign-green); top: 15px; left: calc(50% - 20px); }

/* 4 + 5. Announcement bar (4609:34265, one line, 112 tall) and banner (4609:36380, 231 tall). */
.cae-campaign-bar,
.cae-campaign-banner { background: var(--cae-campaign-green); }
.cae-campaign-bar > .cae-campaign__inner,
.cae-campaign-banner > .cae-campaign__inner {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  padding: 42px 168px 42px 157px;
  min-height: 112px;
}
.cae-campaign-bar .cae-campaign__close,
.cae-campaign-banner .cae-campaign__close { --cae-close-size: 48px; right: 120px; top: calc(50% - 24px); }
.cae-campaign-bar p strong,
.cae-campaign-banner .cae-campaign__kicker { font-weight: 700; }
.cae-campaign__more {
  display: inline-block;
  width: 18px;
  height: 10px;
  margin-left: 12px;
  vertical-align: 2px;
  background-color: #fff;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 10'%3E%3Cpath d='M12.6 0.3a1 1 0 0 1 1.4 0l3.7 3.7a1.4 1.4 0 0 1 0 2l-3.7 3.7a1 1 0 0 1-1.4-1.4L14.6 6H1a1 1 0 0 1 0-2h13.6l-2-2.3a1 1 0 0 1 0-1.4z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 10'%3E%3Cpath d='M12.6 0.3a1 1 0 0 1 1.4 0l3.7 3.7a1.4 1.4 0 0 1 0 2l-3.7 3.7a1 1 0 0 1-1.4-1.4L14.6 6H1a1 1 0 0 1 0-2h13.6l-2-2.3a1 1 0 0 1 0-1.4z'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 180ms ease;
}
.cae-campaign__more:is(:hover, :focus-visible) { transform: translateX(4px); }
.cae-campaign-banner > .cae-campaign__inner { padding: 32px 226px 32px 120px; min-height: 231px; }
.cae-campaign-banner .cae-campaign__kicker { margin: 0 0 8px; }
.cae-campaign-banner .wp-block-buttons { margin-top: 24px; }
/* Staff-written messages (Farm Connex announcement, inc/cae-farmconnex-notice-bar.php, ClickUp 1amzwvgcj5q):
 * a link typed inside the message reads white on the evergreen, as the cookie notice's links do; a banner
 * message that also carries a Learn More button is held to the drawn two lines (4609:36380). */
.cae-campaign-bar p a:not(.cae-campaign__more),
.cae-campaign-banner p a { color: #fff; text-decoration: underline; }
.cae-campaign-banner .cae-campaign__message--clamp {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

/* 6. Cookie notice (13111:106888): brick band under a torn top edge (13111:127678, assets/cae-campaign-gdpr-edge.png). */
.cae-campaign-cookie {
  background:
    url("../../cae-campaign-gdpr-edge.png?ver=1089327679") top center / 100% 34px no-repeat,
    linear-gradient(transparent 30px, var(--cae-campaign-brick) 30px);
}
.cae-campaign-cookie > .cae-campaign__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 64px 116px 41px 120px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 27px;
}
.cae-campaign-cookie .cae-campaign__copy { max-width: 892px; }
.cae-campaign-cookie .cae-campaign__kicker { font-weight: 700; margin-bottom: 8px; }
.cae-campaign-cookie a { color: #fff; text-decoration: underline; }
.cae-campaign-cookie .cae-campaign__choices { display: flex; gap: 11px; flex: none; margin-bottom: 9px; }
.cae-campaign-cookie .cae-campaign__choice {
  min-width: 137px;
  padding: 11px 24px 10px;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--cae-campaign-tan);
  color: var(--cae-campaign-tan);
}
.cae-campaign-cookie .cae-campaign__choice:hover { background: var(--cae-campaign-tan); color: var(--cae-campaign-brick); }

/* Showcase page (/support-cae/campaign-components/): each type on its own labelled stage. */
.cae-campaign-showcase { padding: 64px 0 96px; }
.cae-campaign-showcase__intro { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.cae-campaign-showcase__intro h1 {
  margin: 0 0 16px;
  font-family: var(--wp--preset--font-family--bookman-press-sans), serif;
  font-size: 48px;
  line-height: 56px;
  color: #004f39;
}
.cae-campaign-showcase__intro p { margin: 0; font-family: var(--wp--preset--font-family--acumin-pro), sans-serif; font-size: 20px; line-height: 28px; color: #767769; }
.cae-campaign-showcase__label {
  max-width: 1200px;
  margin: 64px auto 16px;
  padding: 0 20px;
  font-family: var(--wp--preset--font-family--acumin-pro-condensed), sans-serif;
  font-size: 24px;
  line-height: 32px;
  color: #004f39;
  text-transform: uppercase;
}
.cae-campaign-showcase__stage { max-width: 1200px; margin: 0 auto; padding: 32px 20px; display: flex; justify-content: flex-end; background: #f7f4e2; }
/* Test pages (/support-cae/campaign-components/<type>/, lane cc6-1117): one component each; the
 * review page lists them. The popup test page floats its popup with the overlay rule above. */
.cae-campaign-showcase__intro a { color: #004f39; text-decoration: underline; }
.cae-campaign-showcase__intro p + p { margin-top: 16px; }
.cae-campaign-showcase__intro .cae-campaign-showcase__tests-title { margin-top: 24px; color: #004f39; }
.cae-campaign-showcase__tests {
  margin: 8px 0 0;
  padding-left: 24px;
  font-family: var(--wp--preset--font-family--acumin-pro), sans-serif;
  font-size: 20px;
  line-height: 32px;
  color: #004f39;
}

/* 1024 canvas and below: copy columns tighten, nothing leaves the viewport. */
@media (max-width: 1279px) {
  .cae-campaign-bar > .cae-campaign__inner { padding-left: 64px; padding-right: 136px; }
  .cae-campaign-banner > .cae-campaign__inner { padding-left: 64px; padding-right: 136px; }
  .cae-campaign-bar .cae-campaign__close,
  .cae-campaign-banner .cae-campaign__close { right: 64px; }
  .cae-campaign-cookie > .cae-campaign__inner { padding-left: 64px; padding-right: 64px; }
  .cae-campaign-panel > .cae-campaign__body { padding-right: 96px; }
  .cae-campaign-panel .cae-campaign__close { right: 32px; }
}
@media (max-width: 781px) {
  .cae-campaign-panel { grid-template-columns: 1fr; }
  .cae-campaign-panel > .cae-campaign__media { min-height: 220px; }
  .cae-campaign-cookie > .cae-campaign__inner { flex-direction: column; align-items: flex-start; padding: 56px 20px 32px; }
  .cae-campaign-bar > .cae-campaign__inner,
  .cae-campaign-banner > .cae-campaign__inner { padding: 32px 88px 32px 20px; }
  .cae-campaign-bar .cae-campaign__close,
  .cae-campaign-banner .cae-campaign__close { right: 20px; }
  .cae-campaign__title { font-size: 34px; line-height: 40px; }
}
