/**
 * single-hklf_event.php — Event detail page (1u = 1px of the 1920px design).
 *
 * Combines, verbatim, the rules from the handoff's own:
 *  - css/science-article.css   (.ar-* — top/back/tag/title, shared by 18/19/20)
 *  - css/event-detail.css      (.ed-* — info table, agenda tabs; all three kinds)
 *  - css/past-event.css        (.pe-* — past hero/video/gallery/marquee/more-grid)
 *  - css/past-collective.css   (.pc-* — visit schedule/enquiry/video grid/links)
 *
 * .sa-grid/.sa-card themselves are NOT redeclared here — already shared
 * site-wide in resources/css/hklf-common.css. Everything else this template
 * renders (including .ev-card-foot, used by the "More Past Events" cards) is
 * specific to this page and not loaded by any other stylesheet, so it is
 * kept whole here rather than split across files.
 *
 * This build's own additions (not pixel-literal handoff markup) are called
 * out at the bottom: the sizing for the inline <svg> play icon
 * (hklf_svg('play') — swapped in for the handoff's assets/play-button.svg
 * <img>, since this build does not copy decorative raster icons into the
 * Media Library; see this build's report).
 */

/* ---------- science-article.css: .ar-* (back link, tag + title) ---------- */
.ar-page { --u: calc(min(100vw, 1920px) / 1920); background: var(--surface); }
.ar-page ~ .side-tab { display: none; }
.ar-top { width: calc(1560 * var(--u)); margin-inline: auto; padding-top: calc(66 * var(--u)); }
.ar-back:hover, .ar-back:focus-visible { color: var(--text-accent); text-decoration: underline; text-underline-offset: 3px; }
.ar-back { display: inline-flex; align-items: center; gap: calc(8 * var(--u)); font-size: var(--fs-body-md-caps); font-weight: 600; line-height: var(--lh-body); text-transform: uppercase; color: var(--text-accent); transition: gap .2s, color .2s; }
.ar-head { margin-top: calc(22 * var(--u)); display: flex; flex-direction: column; align-items: center; text-align: center; }
.ar-tag { display: inline-flex; align-items: center; height: calc(26 * var(--u)); padding: 0 calc(16 * var(--u)); border-radius: 99px; background: var(--surface-brand); color: var(--text-on-dark); font-size: var(--fs-disclaimer); font-weight: 400; line-height: var(--lh-body); text-transform: uppercase; }
.ar-head h1 { margin-top: calc(14 * var(--u)); max-width: none; font-size: var(--fs-h3); font-weight: 700; line-height: var(--lh-heading); color: var(--text-heading); }

@media (max-width: 1280px) {
  .ar-top { width: min(1560px, 100% - 2 * var(--pad)); padding-top: 32px; }
  .ar-page .ar-head { padding-inline: var(--pad); }
  .ar-back { gap: 8px; }
  .ar-head { margin-top: 20px; }
  .ar-tag { height: 24px; padding: 0 12px; }
  .ar-head h1 { margin-top: 12px; max-width: 760px; line-height: 1.35; }
}

/* ---------- event-detail.css: .ed-* (info table, agenda tabs) ---------- */
.ed-page .ar-head h1 { max-width: none; font-weight: 700; }
.ed-hero { margin: calc(50 * var(--u)) auto 0; width: calc(1042 * var(--u)); }
.ed-hero img { display: block; width: 100%; height: auto; }
.ed-body { width: calc(1280 * var(--u)); margin: calc(52 * var(--u)) auto 0; padding-bottom: calc(130 * var(--u)); color: var(--text-body); }
.ed-body > p { margin-top: calc(24 * var(--u)); font-size: var(--fs-body-md); line-height: var(--lh-body); text-wrap: pretty; }
.ed-body > p:first-child { margin-top: 0; }
/* FB #11016: a block-editor paragraph left empty on purpose (a spacer line,
   same convention as FB #10888's empty <div> rule below) renders as a truly
   empty <p></p> — give it the same one-line height the editor itself shows,
   same reasoning as the shared `:is(.ar-body, .ed-body, ...) div:empty` rule
   further down this cascade (hklf-common.css), for Gutenberg's own empty-
   paragraph markup rather than Outlook's empty-div one.
   FB #11016 follow-up (regression): scoped to `.wp-block-paragraph` — the
   unscoped `.ed-body > p:empty` also matched the `intro` field's own empty
   <p> elements (wpautop around an <h4>, or the browser's own parsing of
   `<p><h4>`), which are not a block-editor spacer and must stay height 0. */
.ed-body > p.wp-block-paragraph:empty { min-height: 1lh; }

/* FB #11016: a quote in the free body gets the same look as a Science News
   article's pull quote (.ar-body blockquote, hklf-single-news.css) — copied
   rather than shared, same per-file convention as this template's other
   duplicated rules (see this file's header comment). */
.ed-body blockquote { margin: calc(40 * var(--u)) 0 0; padding: calc(42 * var(--u)) calc(40 * var(--u)) calc(38 * var(--u)); border-radius: calc(16 * var(--u)); background: var(--surface-muted); border-left: 2px solid var(--border-brand); }
.ed-body blockquote p { font-size: var(--fs-body-md); line-height: var(--lh-body); color: var(--text-body); margin-top: 0; }
.ed-body blockquote:first-child { margin-top: 0; }

/* FB #11016 follow-up: a free-body separator (core/separator) had margin-top
   0 (the theme's base reset); wanted the same space above and below as the
   design's other body breaks, 1px var(--border). */
.ed-body hr { height: 0; margin: calc(48 * var(--u)) 0; border: 0; border-top: 1px solid var(--border); }

.ed-table { margin-top: calc(42 * var(--u)); border: 1px solid var(--border); border-radius: calc(12 * var(--u)); overflow: hidden; }
.ed-row { display: grid; grid-template-columns: calc(261 * var(--u)) minmax(0, 1fr); border-top: 1px solid var(--border); }
.ed-row:first-child { border-top: 0; }
.ed-row > dt { display: flex; align-items: center; padding: calc(18 * var(--u)) calc(20 * var(--u)); background: var(--surface-subtle); border-right: 1px solid var(--border); font-size: var(--fs-body-sm); font-weight: 700; line-height: var(--lh-body); color: var(--text-heading); }
.ed-row > dd { margin: 0; display: flex; align-items: center; min-height: calc(61 * var(--u)); padding: calc(18 * var(--u)) calc(20 * var(--u)); font-size: var(--fs-body-sm); line-height: var(--lh-body); color: var(--text-body); }
.ed-row > dd a { font-weight: 700; color: var(--text-heading); text-decoration: underline; text-underline-offset: 2px; }
.ed-row > dd a:hover { color: var(--text-accent); }

/* FB #10302: a plain content table (e.g. a "Visit Schedule") dropped into
   the event body gets the same box look as `.ed-table` above, plus a
   divider between rows and a bold label row on `--surface-subtle`. */
.ed-body table { width: 100%; margin-top: calc(42 * var(--u)); border: 1px solid var(--border); border-radius: calc(12 * var(--u)); border-collapse: separate; border-spacing: 0; overflow: hidden; }
/* UAT 2026-12-01 (E2): core's table style (`.wp-block-table td, th
   { border: 1px solid }`, in the text colour) drew dark lines round every
   cell. Reset them: light `--border` lines only, a divider between rows and
   between columns (as `.ed-row > dt`), header row on `--surface-subtle`. */
.ed-body table th, .ed-body table td { padding: calc(18 * var(--u)) calc(20 * var(--u)); border: 0; border-top: 1px solid var(--border); font-size: var(--fs-body-sm); line-height: var(--lh-body); color: var(--text-body); text-align: left; vertical-align: top; }
.ed-body table :is(th, td) + :is(th, td) { border-left: 1px solid var(--border); }
.ed-body table > :first-child > tr:first-child > :is(th, td) { border-top: 0; }
.ed-body table th { background: var(--surface-subtle); font-weight: 700; color: var(--text-heading); }
.ed-body table thead th { vertical-align: middle; }
.ed-body table td a { color: var(--text-heading); text-decoration: underline; text-underline-offset: 2px; }
.ed-body table td a:hover { color: var(--text-accent); }
/* FB #11016 follow-up: a block-editor table (core/table) is always wrapped
   in `figure.wp-block-table` — its caption gets the pe-video caption style
   (italic, small, centred) instead of the normal body text style. */
.ed-body figure.wp-block-table figcaption { margin-top: calc(14 * var(--u)); font-size: var(--fs-body-sm); font-style: italic; line-height: var(--lh-body); text-align: center; color: var(--text-body); }
.ed-caps { text-transform: uppercase; }
.ed-venue { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) calc(296 * var(--u)); align-items: center; gap: calc(40 * var(--u)); }
.ed-venue h4 { margin-top: calc(14 * var(--u)); font-size: var(--fs-disclaimer); line-height: var(--lh-body); font-weight: 700; text-transform: uppercase; color: var(--text-heading); }
.ed-venue p + p { margin-top: calc(4 * var(--u)); }
.ed-map { display: block; aspect-ratio: 296 / 222; border-radius: calc(8 * var(--u)); overflow: hidden; }
.ed-map img { width: 100%; height: 100%; object-fit: cover; }

/* FB #11016 follow-up 2: "Register Now" under the info table, upcoming
   events only (this build's own addition — not pixel-literal handoff
   markup, see group_hklf_cpt_event.json's registration_link field). */
.ed-register { margin-top: calc(32 * var(--u)); display: flex; justify-content: center; }

.ed-agenda-title { margin-top: calc(84 * var(--u)); font-size: var(--fs-h4); font-weight: 700; line-height: var(--lh-heading); text-transform: uppercase; color: var(--text-heading); text-align: center; }
.ed-tabs { margin-top: calc(56 * var(--u)); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--color-primary-green); }
.ed-tabs button { height: calc(87 * var(--u)); border: 0; border-radius: calc(8 * var(--u)) calc(8 * var(--u)) 0 0; background: transparent; font: 600 var(--fs-h6-medium)/var(--lh-heading) var(--font); color: var(--text-heading); cursor: pointer; transition: background .2s, color .2s; }
.ed-tabs button:hover { color: var(--text-accent); }
.ed-tabs button[aria-selected="true"] { background: var(--surface-brand); color: var(--text-on-dark); }
.ed-panel { margin-top: calc(62 * var(--u)); display: flex; flex-direction: column; gap: calc(22 * var(--u)); }
.ed-panel[hidden] { display: none; }
.ed-session { padding: calc(20 * var(--u)) calc(40 * var(--u)); border-radius: calc(8 * var(--u)); background: var(--surface-green-strong); text-align: center; color: var(--text-heading); font-size: var(--fs-h6); line-height: var(--lh-heading); }
.ed-session strong { display: block; font-weight: 700; }
.ed-item { padding: calc(20 * var(--u)) calc(40 * var(--u)); border-radius: calc(10 * var(--u)); background: var(--surface-muted); }
.ed-item-head { display: grid; grid-template-columns: calc(340 * var(--u)) minmax(0, 1fr); align-items: start; }
.ed-time, .ed-item-head h4 { font-size: var(--fs-body-md); font-weight: 700; line-height: var(--lh-body); color: var(--text-accent); }
.ed-item-head p { margin-top: calc(4 * var(--u)); font-size: var(--fs-body-sm); line-height: var(--lh-body); color: var(--text-heading); }
.ed-item-head .ed-time { margin-top: 0; font-size: var(--fs-body-md); line-height: var(--lh-body); color: var(--text-accent); }
.ed-item-head h4 { margin: 0; }
.ed-speakers { margin-top: calc(20 * var(--u)); padding-top: calc(20 * var(--u)); border-top: 1px solid var(--border); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: calc(20 * var(--u)) calc(40 * var(--u)); }
.ed-speakers.is-single { grid-template-columns: minmax(0, 1fr); }
.ed-speaker { display: flex; align-items: center; gap: calc(20 * var(--u)); }
.ed-speaker img { flex: none; width: calc(118 * var(--u)); height: calc(120 * var(--u)); border-radius: calc(10 * var(--u)); object-fit: cover; align-self: center; }
.ed-speaker > div { display: flex; flex-direction: column; justify-content: center; align-self: center; }
.ed-speaker h5 { margin: 0; font-size: var(--fs-body-sm); font-weight: 700; line-height: var(--lh-body); color: var(--text-heading); }
.ed-speaker p { margin: 4px 0 0; font-size: var(--fs-body-sm); line-height: var(--lh-body); color: var(--text-heading); }
.ed-speaker p + p { margin-top: 0; }
.ed-bullets { margin: 4px 0 0; padding-left: 1.5em; list-style: disc; font-size: var(--fs-body-sm); line-height: var(--lh-body); color: var(--text-heading); }
.ed-bullets li::marker { font-size: .8em; }
.ed-desc { margin-top: calc(20 * var(--u)); padding-top: calc(20 * var(--u)); border-top: 1px solid var(--border); font-size: var(--fs-body-sm); line-height: var(--lh-body); color: var(--text-heading); }
.ed-desc a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.ed-desc a:hover { color: var(--text-accent); }
/* UAT 2026-12-01 (#25, #54): one disclaimer format on every page, the same
   as `.plg-disclaimer` (Partners): more space above, less below (the
   `.ed-body` bottom padding when the notes close the page). */
.ed-notes { margin-top: max(72px, calc(120 * var(--u))); font-size: var(--fs-body-sm); font-style: italic; line-height: var(--lh-body); color: var(--text-body); }
.ed-body:has(> .ed-notes:last-child) { padding-bottom: max(40px, calc(64 * var(--u))); }
.ed-notes p + p { margin-top: calc(14 * var(--u)); }

@media (max-width: 1280px) {
  .ed-page .ar-head h1 { max-width: 760px; }
  .ed-hero { margin-top: 28px; width: min(1042px, 100% - 2 * var(--pad)); }
  .ed-body { width: min(1280px, 100% - 2 * var(--pad)); margin-top: 32px; padding-bottom: 64px; }
  .ed-body > p { margin-top: 16px; }
  .ed-body blockquote { margin-top: 32px; padding: 24px 20px; border-radius: 12px; }
  .ed-body hr { margin: 32px 0; }
  .ed-table { margin-top: 28px; border-radius: 10px; }
  .ed-body table { margin-top: 28px; border-radius: 10px; }
  .ed-body table th, .ed-body table td { padding: 14px 16px; }
  .ed-row { grid-template-columns: 160px minmax(0, 1fr); }
  .ed-row > dt, .ed-row > dd { padding: 14px 16px; }
  .ed-row > dd { min-height: 0; }
  .ed-venue { grid-template-columns: minmax(0, 1fr) 200px; gap: 20px; }
  .ed-venue h4 { margin-top: 10px; }
  .ed-map { border-radius: 8px; }
  .ed-register { margin-top: 24px; }
  .ed-agenda-title { margin-top: 56px; }
  .ed-tabs { margin-top: 28px; }
  .ed-tabs button { height: 56px; border-radius: 8px 8px 0 0; }
  .ed-panel { margin-top: 28px; gap: 14px; }
  .ed-session { padding: 14px 20px; border-radius: 8px; }
  .ed-item { padding: 16px 20px; border-radius: 10px; }
  .ed-item-head { grid-template-columns: 140px minmax(0, 1fr); }
  .ed-speakers { margin-top: 14px; padding-top: 14px; gap: 14px 24px; }
  .ed-speaker { gap: 14px; }
  .ed-speaker img { width: 72px; height: 72px; border-radius: 8px; }
}
@media (max-width: 760px) {
  .ed-row { grid-template-columns: minmax(0, 1fr); }
  .ed-row > dt { border-right: 0; border-bottom: 1px solid var(--border); }
  .ed-venue { grid-template-columns: minmax(0, 1fr); }
  .ed-item-head { grid-template-columns: minmax(0, 1fr); row-gap: 4px; }
  .ed-speakers { grid-template-columns: minmax(0, 1fr); }
}

/* FB #10302: below 768px a content table scrolls sideways inside its own
   box instead of widening the page — the table itself becomes the
   scrolling box (`display: block` on `table` still lets its rows/cells lay
   out as a table), so no extra markup wrapper is needed. Cell text keeps
   wrapping (no white-space: nowrap) so the table is only as wide as its
   content needs and scrolls by what genuinely doesn't fit, not by whatever
   the longest unwrapped line happens to be. */
@media (max-width: 768px) {
  .ed-body table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  /* FB #11016 follow-up: a block-editor table scrolls inside its own
     `figure.wp-block-table` instead of the page — the figure is the
     scrolling box (keeping the figcaption above outside the scroll area),
     so the table itself goes back to a normal table layout. */
  .ed-body figure.wp-block-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .ed-body figure.wp-block-table table { display: table; overflow-x: visible; width: 100%; }
  /* FB #11016 follow-up 4: WP 7.1's table block defaults to "Fixed width
     table cells" (has-fixed-layout), whose core style
     (wp-includes/blocks/table/style.css: `.wp-block-table .has-fixed-layout`)
     keeps the table at the column width and breaks words mid-word to fit —
     on a narrow phone a 6-column table squeezed to 350px instead of
     scrolling. Undo the fixed layout here so columns keep a readable
     minimum width and the figure (not the words) absorbs the overflow;
     these selectors out-specificity core's (0,2,1) `.wp-block-table
     .has-fixed-layout …` rules. */
  .ed-body figure.wp-block-table table,
  .ed-body figure.wp-block-table table.has-fixed-layout {
    table-layout: auto;
    width: auto;
    min-width: 100%;
  }
  .ed-body figure.wp-block-table th,
  .ed-body figure.wp-block-table td {
    word-break: normal;
    overflow-wrap: normal;
    min-width: 7em;
  }
}

/* ---------- past-event.css: .pe-* (past hero, video, gallery, more grid) ---------- */
.pe-hero { margin: calc(50 * var(--u)) auto 0; width: calc(1042 * var(--u)); aspect-ratio: 1042 / 500; border-radius: calc(16 * var(--u)); overflow: hidden; }
.pe-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pe-page .ed-tabs { border-bottom: 1px solid var(--color-primary-green); }
.pe-page .ed-tabs button[aria-selected="true"] { background: var(--surface-brand); color: var(--text-on-dark); }
.pe-page .ed-tabs button[aria-selected="true"]:hover { color: var(--text-on-dark); }
.pe-page .ed-session strong { font-weight: 600; }
.pe-page .ed-item { padding: calc(20 * var(--u)) calc(38 * var(--u)); }
.pe-label { margin: 1.33em 0; padding: calc(4 * var(--u)) 0 calc(18 * var(--u)); border-bottom: 1px solid var(--border); font-size: var(--fs-body-md); font-weight: 700; line-height: var(--lh-body); color: var(--text-accent); }
.pe-page .ed-item .ed-speakers { margin-top: 0; padding-top: calc(18 * var(--u)); border-top: 0; row-gap: calc(38 * var(--u)); }
.pe-page .ed-speaker { gap: calc(19 * var(--u)); }
.pe-page .ed-speaker img { width: calc(111 * var(--u)); height: calc(113 * var(--u)); }
.pe-page .ed-speaker p { color: var(--text-body); }

.pe-video { margin-top: calc(48 * var(--u)); text-align: center; }
.pe-video h3 { font-size: var(--fs-h6-medium); font-weight: 700; line-height: var(--lh-heading); color: var(--text-heading); }
.pe-video figure { margin: calc(24 * var(--u)) auto 0; width: calc(876 * var(--u)); }
.pe-video-media { position: relative; display: block; width: 100%; aspect-ratio: 876 / 498; border: 0; padding: 0; border-radius: calc(16 * var(--u)); overflow: hidden; background: var(--surface-dark); cursor: pointer; }
.pe-video-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pe-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); color: var(--text-on-dark); display: grid; place-items: center; transition: transform .2s; }
.pe-video-media:hover .pe-play { transform: translate(-50%, -50%) scale(1.15); }
.pe-video-media img.pe-play { width: calc(58 * var(--u)); height: calc(58 * var(--u)); object-fit: contain; }
.pe-video figcaption { margin-top: calc(14 * var(--u)); font-size: var(--fs-body-sm); font-style: italic; line-height: var(--lh-body); color: var(--text-body); }
/* FB #11016 follow-up: a free-body YouTube/Vimeo (core/embed) or uploaded
   video (core/video) holds the provider's own player inline — no poster, no
   lightbox, decision 27 Nov 2026 (a lightbox opened the embed's page URL as
   typed, which YouTube refuses to load in an iframe). Reuses the same box
   (radius, overflow hidden, dark background while the player loads). */
.pe-video-media--embed { cursor: default; }
.pe-video-media--embed iframe, .pe-video-media--embed video { display: block; width: 100%; height: 100%; border: 0; }

/* FB #11016 follow-up: a free-body single image (core/image) — radius like
   the pe-video poster, a click into the shared lightbox (unless the editor
   set its own link), caption in the pe-video caption style. Stays inside the
   `.ed-body` column (no wide/full align). */
.pe-image { margin-top: calc(24 * var(--u)); }
.pe-image a, .pe-image img { display: block; max-width: 100%; height: auto; }
.pe-image img { border-radius: calc(16 * var(--u)); }
.pe-image figcaption { margin-top: calc(14 * var(--u)); font-size: var(--fs-body-sm); font-style: italic; line-height: var(--lh-body); text-align: center; color: var(--text-body); }

.pe-gallery { list-style: none; margin: calc(40 * var(--u)) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: calc(20 * var(--u)); }
.pe-gallery a { display: block; aspect-ratio: 305 / 198; border-radius: calc(12 * var(--u)); overflow: hidden; }
.pe-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.pe-gallery a:hover img { transform: scale(1.04); }
/* FB #11016 follow-up: the gallery's own caption (lost in the first run),
   shown under the grid, before "View All Photo", in the pe-video caption
   style. */
.pe-gallery-caption { margin-top: calc(14 * var(--u)); font-size: var(--fs-body-sm); font-style: italic; line-height: var(--lh-body); text-align: center; color: var(--text-body); }
.pe-marquees { margin-top: calc(40 * var(--u)); display: flex; flex-direction: column; gap: var(--pe-g); --pe-g: calc(20 * var(--u)); }
/* The parent `.ed-panel` is itself a flex column with its own `gap`
   (always on, between every pair of its children) — margin-top here stacks
   on top of that gap rather than replacing it, so it must subtract the
   inherited gap to land on the intended `--pe-g` distance between rows. */
.pe-marquees + .pe-marquees { margin-top: calc(var(--pe-g) - 22 * var(--u)); }
.pe-gallery--slider a { border-radius: calc(16 * var(--u)); }
.pe-marquee { overflow: hidden; container-type: inline-size; }
.pe-gallery--slider { margin: 0; display: flex; width: max-content; gap: var(--pe-g); will-change: transform; }
.pe-gallery--slider li { flex: 0 0 calc((100cqw - 3 * var(--pe-g)) / 4); }
.pe-gallery-foot { margin-top: calc(40 * var(--u)); display: flex; justify-content: center; }
.pe-btn { display: inline-flex; align-items: center; gap: calc(10 * var(--u)); height: calc(50 * var(--u)); padding: 0 calc(32 * var(--u)); border-radius: 0 8px 0 8px; background: var(--surface-brand); color: var(--text-on-dark); font-size: var(--fs-button); line-height: var(--lh-body); font-weight: 600; transition: background .2s, color .2s, box-shadow .2s, gap .2s; }
.pe-btn:hover { background: var(--btn-bg-hover); color: var(--btn-text-hover); box-shadow: inset 0 0 0 2px var(--btn-border-hover); gap: calc(14 * var(--u)); }
.pe-btn svg.lucide { width: calc(16 * var(--u)); height: calc(16 * var(--u)); }
.pe-text { margin-top: calc(48 * var(--u)); display: flex; flex-direction: column; gap: calc(24 * var(--u)); font-size: var(--fs-body-md); line-height: var(--lh-body); color: var(--text-body); text-wrap: pretty; }
.pe-page .ed-body { padding-bottom: calc(120 * var(--u)); }

.pe-more { background: var(--surface-muted); padding: calc(110 * var(--u)) 0 calc(120 * var(--u)); }
.pe-more-inner { width: calc(1560 * var(--u)); margin-inline: auto; }
.pe-more h2 { font-size: var(--fs-h4); font-weight: 700; line-height: var(--lh-heading); color: var(--text-heading); }
.pe-more .sa-grid { margin-top: calc(40 * var(--u)); }
.pe-more .sa-card { min-height: 0; padding-bottom: calc(40 * var(--u)); }
/* UAT 2026-12-01 (E3): the whole event banner, as the Events list cards
   (blocks/hklf-event-grid/event-grid.css). */
.pe-more .sa-card figure { background: var(--surface-subtle); }
.pe-more .sa-card figure img { object-fit: contain; }
.pe-more .sa-card h3 { margin-top: calc(20 * var(--u)); font-size: var(--fs-body-md); font-weight: 700; line-height: var(--lh-body); min-height: 3.4em; }
.ev-card-foot { margin-top: calc(12 * var(--u)); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ev-card-foot time { font-size: var(--fs-body-sm); line-height: var(--lh-body); color: var(--text-body); }
.ev-card-foot .sa-more { margin-top: 0; padding-top: 0; white-space: nowrap; flex: none; }

@media (max-width: 1280px) {
  .pe-hero { margin-top: 28px; width: min(1042px, 100% - 2 * var(--pad)); border-radius: 12px; }
  .pe-page .ed-item { padding: 16px 20px; }
  .pe-label { padding: 0 0 12px; }
  .pe-page .ed-item .ed-speakers { padding-top: 14px; row-gap: 16px; }
  .pe-page .ed-speaker { gap: 14px; }
  .pe-page .ed-speaker img { width: 72px; height: 72px; }
  .pe-video { margin-top: 32px; }
  .pe-video figure { margin-top: 16px; width: min(876px, 100%); }
  .pe-video-media { border-radius: 12px; }
  .pe-video-media img.pe-play { width: 48px; height: 48px; }
  .pe-image { margin-top: 16px; }
  .pe-image img { border-radius: 12px; }
  .pe-gallery { margin-top: 28px; gap: 12px; }
  .pe-gallery a { border-radius: 10px; }
  .pe-marquees { margin-top: 28px; --pe-g: 12px; }
  .pe-marquees + .pe-marquees { margin-top: -2px; }
  .pe-gallery-foot { margin-top: 24px; }
  .pe-btn { height: 44px; padding: 0 24px; gap: 8px; }
  .pe-btn svg.lucide { width: 16px; height: 16px; }
  .pe-text { margin-top: 32px; gap: 14px; }
  .pe-page .ed-body { padding-bottom: 64px; }
  .pe-more { padding: 56px 0 64px; }
  .pe-more-inner { width: min(1560px, 100% - 2 * var(--pad)); }
  .pe-more .sa-grid { margin-top: 24px; gap: 20px; }
}
@media (max-width: 760px) {
  .pe-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pe-gallery--slider li { flex-basis: calc((100cqw - var(--pe-g)) / 2); }
  .pe-more .sa-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .ar-related .sa-card, .pe-more .sa-card { padding: 14px 14px 20px; }
}

/* ---------- past-collective.css: .pc-* (visit schedule, enquiry, video grid, links) ---------- */
.pc-page .pe-hero img { object-position: center 40%; }
.pc-h3 { margin-top: calc(56 * var(--u)); font-size: var(--fs-h6-medium); font-weight: 700; line-height: var(--lh-heading); color: var(--text-heading); }

.pc-sched { margin-top: calc(40 * var(--u)); display: flex; flex-direction: column; gap: calc(20 * var(--u)); list-style: none; padding: 0; }
.pc-row { display: grid; grid-template-columns: calc(138 * var(--u)) calc(300 * var(--u)) calc(480 * var(--u)) calc(200 * var(--u)) minmax(0, 1fr); align-items: start; padding: calc(24 * var(--u)) calc(40 * var(--u)) calc(24 * var(--u)) calc(40 * var(--u)); border-radius: calc(8 * var(--u)); background: var(--surface-muted); font-size: var(--fs-body-sm); line-height: var(--lh-body); color: var(--text-body); }
.pc-row.is-head { align-items: center; min-height: calc(61 * var(--u)); padding-block: calc(18 * var(--u)); background: var(--surface-green-strong); font-weight: 700; color: var(--text-heading); }
.pc-row.is-head > span:last-child { white-space: nowrap; }
.pc-row > span:first-child { padding-left: calc(2 * var(--u)); }
.pc-row:not(.is-head) { color: var(--color-text-dark); }
.pc-row a { color: inherit; text-decoration: underline; text-underline-offset: 2px; word-break: break-all; }
.pc-row a:hover { color: var(--text-accent); }
.pc-cell-label { display: none; }

.pc-enq { margin-top: calc(48 * var(--u)); font-size: var(--fs-body-sm); line-height: var(--lh-body); color: var(--text-body); }
.pc-enq strong { display: block; font-weight: 700; color: var(--text-heading); }
.pc-enq a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.pc-enq a:hover { color: var(--text-accent); }

.pc-page .pc-video { margin-top: calc(100 * var(--u)); text-align: left; }
.pc-page .pc-video figure { margin-top: calc(40 * var(--u)); width: calc(880 * var(--u)); text-align: center; }
.pc-page .pc-video .pe-video-media { aspect-ratio: 880 / 499; }
.pc-page .pc-video + .pe-text { margin-top: calc(48 * var(--u)); }
.pc-page .pe-gallery { margin-top: calc(80 * var(--u)); }
/* Scoped to a direct `.ed-body` child, not just any `.pe-marquees` under
   `.pc-page` — this page's tabbed galleries (nested inside `.ed-panel`)
   must keep the generic sibling-gap rule above, not this larger margin
   meant only for the "Recap Extra Content Blocks" gallery. */
.pc-page .ed-body > .pe-marquees { margin-top: calc(80 * var(--u)); }
/* This page's "Recap Extra Content Blocks" gallery sits directly in
   `.ed-body` (plain block flow, no gap) rather than the tabbed `.ed-panel`
   (a flex column whose own `gap` the generic sibling rule above already
   compensates for) — so here the plain `--pe-g` distance needs no offset. */
.ed-body > .pe-marquees + .pe-marquees { margin-top: var(--pe-g); }
.pc-page .pe-marquee .pe-gallery { margin-top: 0; }
.pc-page .pe-gallery-foot { margin-top: calc(40 * var(--u)); }
.pc-page .pe-gallery-foot + .pe-text { margin-top: calc(40 * var(--u)); }

.pc-vids { list-style: none; margin: calc(40 * var(--u)) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: calc(34 * var(--u)) calc(20 * var(--u)); }
.pc-vids button { position: relative; display: block; width: 100%; aspect-ratio: 305 / 205; padding: 0; border: 0; border-radius: calc(10 * var(--u)); overflow: hidden; background: var(--surface-dark); box-shadow: 0 calc(4 * var(--u)) calc(12 * var(--u)) rgba(0, 0, 0, .12); cursor: pointer; }
.pc-vids button > img:first-child { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.pc-vids button:hover > img:first-child { transform: scale(1.04); }
.pc-vids img.pe-play { width: calc(58 * var(--u)); height: calc(58 * var(--u)); }
.pc-vids button:hover .pe-play { transform: translate(-50%, -50%) scale(1.15); }

.pc-links { margin-top: calc(80 * var(--u)); display: flex; flex-wrap: wrap; align-items: center; gap: calc(16 * var(--u)) calc(40 * var(--u)); }
.pc-links h3 { margin-right: calc(20 * var(--u)); font-size: var(--fs-h6-medium); font-weight: 700; line-height: var(--lh-heading); color: var(--text-heading); }
.pc-links .pe-btn { height: calc(50 * var(--u)); padding: 0 calc(32 * var(--u)); }

@media (max-width: 1280px) {
  .pc-h3 { margin-top: 40px; }
  .pc-sched { margin-top: 20px; gap: 12px; }
  .pc-row { grid-template-columns: 48px minmax(0, 1.1fr) minmax(0, 1.8fr) minmax(0, 0.9fr) 104px; padding: 16px 20px; column-gap: 12px; }
  .pc-row.is-head { min-height: 0; padding-block: 14px; }
  .pc-enq { margin-top: 32px; }
  .pc-page .pc-video { margin-top: 56px; }
  .pc-page .pc-video figure { margin-top: 20px; width: min(880px, 100%); }
  .pc-page .pc-video + .pe-text { margin-top: 32px; }
  .pc-page .pe-gallery { margin-top: 48px; }
  .pc-page .ed-body > .pe-marquees { margin-top: 48px; }
  .ed-body > .pe-marquees + .pe-marquees { margin-top: var(--pe-g); }
  .pc-page .pe-gallery-foot { margin-top: 24px; }
  .pc-page .pe-gallery-foot + .pe-text { margin-top: 28px; }
  .pc-vids { margin-top: 20px; gap: 16px 12px; }
  .pc-vids button { border-radius: 8px; }
  .pc-vids img.pe-play { width: 40px; height: 40px; }
  .pc-links { margin-top: 48px; gap: 12px 16px; }
  .pc-links h3 { margin-right: 8px; }
  .pc-links .pe-btn { height: 44px; padding: 0 20px; }
}
@media (max-width: 760px) {
  .pc-row.is-head { display: none; }
  .pc-row { grid-template-columns: 90px minmax(0, 1fr); row-gap: 6px; }
  .pc-row > span:first-child { grid-column: 1 / -1; font-weight: 700; color: var(--text-heading); }
  .pc-cell-label { display: block; font-weight: 700; color: var(--text-heading); }
  .pc-row > span:not(:first-child) { display: contents; }
  .pc-vids { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- This build's own additions (not pixel-literal handoff markup) ---------- */

/* Sized the same as the handoff's <img class="pe-play">, but applied to the
   inline <svg> from hklf_svg('play') — this theme renders functional UI
   glyphs as inline SVG (resources/php/hklf-helpers.php) rather than copying
   decorative raster icons like assets/play-button.svg into the Media
   Library. */
svg.pe-play { width: calc(58 * var(--u)); height: calc(58 * var(--u)); }
@media (max-width: 1280px) {
  svg.pe-play { width: 48px; height: 48px; }
}
.pc-vids svg.pe-play { width: calc(58 * var(--u)); height: calc(58 * var(--u)); }
@media (max-width: 1280px) {
  .pc-vids svg.pe-play { width: 40px; height: 40px; }
}
