/* cae-website-redesign-theme-site-overlay-timeline-standard-cae: assets/css/timeline-standard-cae.css */
/* CAE — the timeline standard (the About Us: History timeline block, shared).
 *
 * KATE SHAWVER, Farm Connex - History (ClickUp 869ew6tcu, 90120270141351, 2026-09-28), verbatim:
 * "You have to update this page so that the timeline matches everything we set as design and
 * usability conventions here: http://10.0.0.98:18192/about-cae/history/ — it should be the same
 * block". The conventions she set on About Us: History (ClickUp 869ew12gd, 2026-09-27/28) lived
 * in that page's own sheet (about-history-cae.css) keyed on its compiled band class, so no second
 * timeline could reach them. The ones that are not About-specific are PROMOTED here, keyed only on
 * the timeline / lightbox idioms' own attributes (the scroll-state surface's
 * [data-cae-timeline-entry] / [data-cae-timeline-rail-label], the lightbox surface's
 * [data-cae-lightbox-control] and its <dialog class="cae-lightbox">) and on no node id.
 *
 * ROUTES. Enqueued (functions.php) only on the timelines that follow this standard:
 * /about-cae/history/ and /programs-places/farm-connex/history/. Atkins Field Community Green
 * Space and VFF Our Story also declare the scroll-state idiom but have their own Kate rulings and
 * were not asked to change; each joins by adding its route to that one enqueue line.
 *
 * What stays per page (it is geometry of one compiled frame, not a convention): About's 2025 rail
 * slot, the Annual Reports band margin, its banner bolds; Farm Connex's card positions (its frame
 * places the four entries absolutely, so the 24 gap is restated there against that layout —
 * fix-farmconnex-cae.css F1) and its rail below 1152.
 * The page presents at zoom 0.8, so every authored length here is a design (frame) px. */

/* ── 1. A 24 px white gap between postcards ──────────────────────────────────────────────────
 * Kate 869ew12gd 90120270140723 "add a white gap between each timeline postcard". */
[data-cae-timeline-entry][data-cae-timeline-surface]:not([data-cae-timeline-index="0"]) {
  margin-top: 24px;
}

/* ── 2. View Larger: no underline, the yellow magnifier beside it, dark green on hover ────────
 * Kate 869ew12gd 90120269573038 "remove underlines under view larger and add a magnifier icon in
 * yellow next to them"; 90120270137892 "change the magnifier icon to dark green on hover next to
 * View larger". The glyph is the design's own global search icon used as a mask so it paints in
 * Primary Butter Yellow #F2A518, Primary Evergreen #004F39 while hovered / keyboard-focused.
 * A compiled pattern that still carries the drawn inline underline span (<span style="text-
 * decoration: underline;">) loses it here: an inline style needs the !important. */
[data-cae-timeline-entry] [data-cae-lightbox-control] {
  text-decoration: none;
}

[data-cae-timeline-entry] [data-cae-lightbox-control] [style*="underline"] {
  text-decoration: none !important;
}

[data-cae-timeline-entry] [data-cae-lightbox-control]::before {
  content: "";
  display: inline-block;
  width: 1.1em;
  height: 1.1em;
  margin-inline-end: 8px;
  vertical-align: -0.2em;
  background-color: var(--wp--preset--color--primary-butter-yellow, #f2a518);
  -webkit-mask: url("../../cae-global-icon-search-i11364-226733-12293-346247.svg?ver=260878674") center / contain no-repeat;
  mask: url("../../cae-global-icon-search-i11364-226733-12293-346247.svg?ver=260878674") center / contain no-repeat;
  transition: background-color 0.2s ease;
}

[data-cae-timeline-entry] [data-cae-lightbox-control]:hover::before,
[data-cae-timeline-entry] [data-cae-lightbox-control]:focus-visible::before {
  background-color: var(--wp--preset--color--primary-evergreen, #004f39);
}

/* ── 3. Links in the posts and their pop-ups bold ─────────────────────────────────────────────
 * Kate 869ew12gd 90120270137903 "make the links in teh timeline posts bold": 400 -> 700. */
[data-cae-timeline-entry] a,
[data-cae-lightbox-caption] a {
  font-weight: var(--wp--custom--font-weights--p-1-bold, 700);
}

/* ── 4./5. retired 2026-10-10 (ClickUp 869f13bf1): the pop-up's control hover and filmstrip rules went with the
 * <dialog class="cae-lightbox">; every gallery now opens Kate's lightbox (assets/js/cae-gallery-lightbox.js). */

/* ── 6. The rail: every row one large hotspot — RETIRED 2026-10-17 (lane historynav-1017) ──────
 * Kate 869ew12gd 90120269572948 "the hotpot for the timeline nav should extend in large insivible
 * block over year and dot" was answered here with a FIXED 200 x 144 ::before drawn for About
 * History's spacing. Kate 869fjfcy8 (2026-10-17) "AROUND THE ENTIRE TEXT AND CIRCLE SECTION" for
 * ANY history slider: the fixed box piled up on Vermont Farm Fund History (labels not positioned)
 * and Community Green Space never had it. The block is now measured per row by
 * assets/interact/timeline-scroll.js and drawn by assets/interact/timeline-scroll.css on every
 * timeline. */

/* ── 5. Thumbnail: credit only, magnifier at the right under it ───────────────────────────────
 * Kate 869fdvgd4 (History Timeline, 2026-10-07, "for both History timelines"):
 * "on the thumbnail don't show the caption just show the credit" -- media-lightbox.js wraps the
 * thumbnail figcaption into .cae-lightbox__thumb-caption + .cae-lightbox__thumb-credit; the caption
 * half is hidden here (the markup keeps it, the pop-up still shows caption and credit).
 * "remove the View Larger text and anchor the magnifier icon to the right side under the thumbnail"
 * -- the control's words are cleared by the same script; the control keeps its 28 design-px row
 * (the entry height does not move) and its yellow/Evergreen magnifier, 24 px, flush right with the
 * thumbnail's right edge, the same 12 px under it the words sat. The whole item stays the button. */
[data-cae-timeline-entry] .cae-lightbox__thumb-caption {
  display: none;
}

[data-cae-timeline-entry] [data-cae-lightbox-control] {
  display: block;
  height: 28px;
  line-height: 0;
  text-align: right;
}

[data-cae-timeline-entry] [data-cae-lightbox-control]::before {
  width: 24px;
  height: 24px;
  margin: 0;
  vertical-align: top;
}

/* ── 6. About Us - History: a postcard photo whose PhotoShelter page publishes a caption but no credit ──
 * (Kate's sitewide rule 2026-10-07: every PhotoShelter image carries its published caption and credit; text from
 * caeassist PACKET-159). The caption rides in the photo's <figcaption> exactly as on Farm Connex History, so the
 * pop-up shows it under the enlarged photo; on the thumbnail only a "Credit: ..." half shows (section 5), and none of
 * these photos publishes a credit, so the emptied figcaption takes no space and the entry keeps its height. */
body.cae-page--cae-flow-about-history-v5 [data-cae-timeline-entry] figure > figcaption:not(:has(.cae-lightbox__thumb-credit:not(:empty))) {
  display: none;
}
