/* ============================================================
   CityUHK Alumni Homecoming 2026 — custom styles (Template 3.0)
   "United in Motion"

   Loaded AFTER the CDN cityu.base.css / custom.css, so rules here win.
   Scope component rules with `.cityu` for specificity against the CDN base;
   the two blocks that are deliberately unscoped are marked below.

   Palette: the CDN's `theme-color-green` supplies the template chrome
   (menu gradient #37a699 → #13858d, #eaffff sitemap/footer tint, #117379 table
   heads). The CDN also hard-codes a *red/orange* accent for links, the
   heading underline and the card accent bars — §3 re-points those at green so the
   site reads green rather than red. §1 declares the sport-poster accents from the
   Homecoming 2026 key visual (cyan / yellow / orange / teal / purple); these are
   the page's accent voice (§6 stat strip, §7-8 cards, §13 ribbon) rather than a
   faint decoration.

   ⚠️ KEEP TOP-LEVEL RULES TOP-LEVEL. Every rule below the file header (except the
   deliberately nested @media blocks) must be a sibling, never a child, of another
   rule: modern browsers parse a nested rule as `ancestor descendant`, so a single
   missing `}` silently re-scopes *every remaining rule* to the previous selector
   and the whole stylesheet becomes dead code. That exact bug shipped once (an
   unclosed `.cityu .header-gradient` rule at §3 killed §4-§12, so the live home
   page rendered with CDN defaults only: no stat strip, no colour).
   `scripts/check-css.js` guards this and runs first in `pnpm build`:
     pnpm --filter hc2026-express check:css
   ============================================================ */

:root {
  /* Template green (mirrors the CDN theme-color-green values). `-600` is the
     CDN's deep green (#117379 — dark card body / table head) rather than the
     menu-gradient end (#13858d) because the former clears AA on white (~5.6:1)
     when used as the link / text accent, exactly as the pink -600 did. */
  --hc-green-600: #117379;
  --hc-green-500: #37a699;
  --hc-green-tint: #eaffff;

  /* Hero-ramp accents — sampled from the Homecoming 2026 key visual, which runs
     green (top) → yellow → orange with red-orange script and magenta ribbon
     confetti. Every decorative cycle (§1 ribbon, §6 stat cards, §7/§8/§13/§15
     markers and accents) follows this ramp; template chrome stays
     `theme-color-green`. */
  --hc-yellow: #ffd400;
  --hc-orange: #f5821f;
  --hc-red: #ef4123;
  --hc-magenta: #d6336e;

  /* Deep variants — the ramp accents above are too light to carry white text;
     these clear AA (≥ 4.5:1) so they can be used as block backgrounds
     (stat strip §6, programme markers §7, ribbon §13) without darkening the
     whole palette. */
  --hc-orange-700: #c2570f;
  --hc-red-700: #b3241a;
  --hc-magenta-700: #a8215a;

  --hc-ink: #1b1b2f;

  /* Accent gradient used by every Homecoming-decorated element */
  --hc-accent-gradient: linear-gradient(to right, var(--hc-green-500) 0%, var(--hc-green-600) 100%);

  /* The hero-ramp ribbon (stat band, menu ribbon, section panels): the key
     visual read top-to-bottom — green → yellow → orange → red → magenta.
     `--hc-ribbon-gradient` is the static form; `--hc-ribbon-loop` is the same
     five hard-stop blocks written as a *repeating* gradient with a 50% period,
     which is what makes the marquee seamless: with `background-size: 200% 100%`
     the repeat period equals exactly one container width, so animating
     `background-position` 0% → 100% walks the pattern by precisely one
     repetition and lands on an identical image. See §6 `.hc2026-stat-strip-bars`. */
  --hc-ribbon-gradient: linear-gradient(
    to right,
    var(--hc-green-500) 0 20%,
    var(--hc-yellow) 20% 40%,
    var(--hc-orange) 40% 60%,
    var(--hc-red) 60% 80%,
    var(--hc-magenta) 80% 100%
  );

  --hc-ribbon-loop: repeating-linear-gradient(
    to right,
    var(--hc-green-500) 0 10%,
    var(--hc-yellow) 10% 20%,
    var(--hc-orange) 20% 30%,
    var(--hc-red) 30% 40%,
    var(--hc-magenta) 40% 50%
  );

  /* Section tints (alternating panels, §13) */
  --hc-tint-teal: #eefaf8;
  --hc-tint-yellow: #fffaea;
  --hc-tint-green: #e8f6f4;

  /* Arrow glyph used by the CDN's circular buttons, re-tinted at a green gradient */
  --hc-arrow-white: url("https://template.cityu.edu.hk/template/v3/image/icon/btn-arrow-white.svg");
  --hc-arrow-gradient: url("https://template.cityu.edu.hk/template/v3/image/icon/btn-arrow-gradient.svg");
}

/* ============================================================
   2. Template-critical rules
   ============================================================ */

/* Template-critical: <a class="button"> clips on mobile without this. */
.cityu .button {
  display: inline-block;
}

/* Template-critical: do NOT set `display` on .cityu-backtotop —
   cityu.base.js toggles it inline (block/none). */

/* Breadcrumb spacing */
.cityu .cityu-breadcrumb {
  margin-bottom: 50px;
}

/* ============================================================
   3. Green accent overrides (the CDN's hard-coded red/orange)
   ============================================================ */

/* Links — CDN: `.cityu a { color: #cc103c }`. #117379 on white ≈ 5.6:1 (AA). */
.cityu a {
  color: var(--hc-green-600);
}

.cityu a:hover,
.cityu a:focus {
  color: var(--hc-green-500);
}

/* Heading underline rule — CDN gradient is orange → red. The deep green *text*
   colour (#03555a) already comes from `theme-color-green`. */
.cityu .heading-underline::after {
  background-image: var(--hc-accent-gradient);
}

/* Card accent bars — CDN: `linear-gradient(to right, #da562b 31%, #ca2052 100%)`
   on `.card-body::before` of component-card-1/4 and `.spotlightSwiper`. */
.cityu .component-card-1 .component-content .card .card-body::before,
.cityu .component-card-4 .component-content .card .card-body::before,
.cityu .spotlightSwiper .card-body::before {
  background-image: var(--hc-accent-gradient);
}

/* Circular hover arrows — the CDN swaps in the white glyph over an orange→red
   gradient. Re-reference the CDN glyph so only the gradient changes. */
.cityu .component-card-1 .component-content .card:hover .card-body::after,
.cityu .component-card-4 .component-content .card:hover .card-body::after,
.cityu .spotlightSwiper .card a:hover .card-body::after {
  background-image: var(--hc-arrow-white), var(--hc-accent-gradient);
  background-position: center center;
}

/* `component-card-2` (the vertical card grid used by the `events` index) carries
   the same hard-coded red/orange accent and hover arrow, but was missing from
   the rules above — every card-2 page would otherwise render in CDN colours.
   Same selectors as the CDN, later source order. */
.cityu .component-card-2 .component-content .card .card-body::before {
  background-image: var(--hc-accent-gradient);
}

.cityu .component-card-2 .component-content .card:not(.card-style-2):hover .card-body::after {
  background-image: var(--hc-arrow-white), var(--hc-accent-gradient);
  background-position: center center;
}

/* Header-gradient headings inside rendered post bodies */
.cityu .header-gradient,
.cityu .text-gradient {
  background-image: var(--hc-accent-gradient);
  color: #03555a;
}

/* ============================================================
   4. Home page rhythm, card date line, notice titles
   The CDN already draws the accent bar and the circular corner arrow for
   `.spotlightSwiper` (component-carousel-1) and `.component-card-4`; §3 only
   re-tints them. Everything here is additive.
   ============================================================ */

.cityu .spotlightSwiper .card-date,
.cityu .component-card-4 .component-content .card .card-body .card-date {
  color: #747474;
  font-size: 16px;
  line-height: 26px;
  margin: 6px 0 0;
}

/* The CDN card body is a fixed 152px (3-line title, no date). Grow it by the
   date's line-height so long titles are not clipped, keeping every slide the
   same height. Only applies when a date is actually rendered. */
.cityu .spotlightSwiper .card-body:has(.card-date) {
  height: 184px;
  padding-bottom: 30px;
}

/* Notice cards: the CDN styles `.card-text` for component-card-1/4 but has no
   `.card-title` rule there, so the h3 falls back to Bootstrap's 28px heading.
   Use the template's card-title scale (18px/26px — as in component-card-2 and
   `.spotlightSwiper`) so the notice titles match the rest of the template. */
.cityu .hc2026-card-notice .card .card-body .card-title {
  color: #272727;
  font-size: 18px;
  font-weight: 500;
  line-height: 26px;
  margin-bottom: 0;
}

/* Vertical rhythm between the stacked home-page sections (siblings inside one
   `col-12` column). The home stack is now notice → programme → supporters; the
   carousel pairings are kept for list pages that still render a slider. */
.cityu .component-carousel-1 + .component-carousel-1,
.cityu .component-carousel-1 + .hc2026-programme,
.cityu .hc2026-card-notice + .hc2026-programme,
.cityu .hc2026-programme + .hc2026-supporters,
.cityu .hc2026-card-notice + .component-carousel-1 {
  margin-top: 70px;
}
/* ============================================================
   5. Hero — full-bleed photo, flush with the stat strip
   The home hero is the stock component (`component-rotating-banner-3`), exactly
   as convo-express renders it: the CMS `Hero` slides (`hero_list_query`) are the
   whole hero. The bespoke "United in Motion" masthead — poster field, white scrim,
   rotating sunburst, arcs, confetti, floating pictograms, slogan lockup, event
   meta, CTA and the rAF parallax — was reverted on request. See the memory bank
   for the motion-threshold notes if it is ever revisited.

   Two CDN decorations and one CDN script behaviour made the photo look like a
   rounded card floating on a white page instead of a full-bleed header, so they
   are neutralised here:

   1. `.media-banner-wrap::after` paints the CDN's **white**
      `image/home/media-banner-footer.svg` over the hero's bottom `7.8125vw`:

          M1855.5 71.7 C… 0 150 H1920 V0 C… Z   fill="white"

      Full height at the right edge (a white vertical bar), tapering to zero
      height at the left, with the curve between them reading as a "rounded mask"
      cut out of the photo's bottom-right. Measured on live at 1440px: the first
      white pixel is y=892 at x=1430 but y=958 at x=240, while the stat-strip
      ribbon sits at y=970 — i.e. the wedge, not the image, was the white.
   2. `.swiper-pagination-wrap` is `position: relative` under the banner, so the
      bullets sat *below* the slide and held the photo ~49px (220-260px at the
      mobile breakpoints) off the stat strip.
   3. Above 2048px the CDN's `.container.container-fluid { max-width: 2048px }`
      stops the photo dead centre of a wider viewport, so the page background
      shows either side; and the slide box is `aspect-ratio: 1920/1000` while the
      artwork is 2048x880, so `object-fit: cover` cropped ~10.6% off each side.
      The `@media (min-width: 2049px)` block at the end of this section fixes
      both. See "Ultra-wide" in the app README for the measurement recipe.

   Not styling, but CDN-script-driven and part of the same surface: the slide
   title. `script.js` copies the active slide's `.slide-content` innerHTML into
   `.media-banner-wrap > .content` — and that copy is the only *visible* one
   (the copy inside the slide is `display: none`) — so a CMS title lands on top
   of artwork that already carries the Homecoming lockup. Hidden below.

   Scoped to `component-rotating-banner-3`, which only the home page sets as
   `heroClass`, so aro-express / convo-express keep the stock polygon banner.
   Each selector carries one class more than the CDN rule it overrides (and this
   sheet loads last), so no `!important` is needed — except the ultra-wide
   `:has()` rule, which has to out-specify the compound
   `.container.container-fluid` and so carries three.
   ============================================================ */

/* The white SVG wedge. */
.cityu .component-rotating-banner-3 .media-banner-wrap::after {
  display: none;
}

/* No reserved strip under the slide: the overlay carries the title and the
   bottom gradient, so the bullets can float over it. */
.cityu .component-rotating-banner-3 .mediaBannerSwiper {
  padding-bottom: 0;
}

.cityu .component-rotating-banner-3 .mediaBannerSwiper .swiper-pagination-wrap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  /* Above the `z-index: 2` gradient overlay, or the bullets are neither
     visible nor clickable. */
  z-index: 6;
}

/* ≤1199.98px the CDN swaps the wrap's background for the orange→red
   `image/home/media-banner-polygon-bg-mob.svg`. With the reserved strip gone
   that polygon covers the whole (short) mobile slide, so keep the desktop
   bottom gradient at every breakpoint — the darkened lower edge the title
   needs to stay legible. No-op on desktop. */
.cityu .component-rotating-banner-3 .media-banner-wrap {
  background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 0.8) 100%);
  background-size: 100% auto;
  background-position: left bottom;
  background-repeat: no-repeat;
}

/* The slide title, repainted by the CDN script into the banner footer strip.
   `script.js` copies the *active* slide's `.slide-content` innerHTML —
   `<h2>{{title}}</h2>` plus, when the post carries `link`/`body`, the
   `a.banner-btn-more` CTA — into `.media-banner-wrap > .content.container-max`
   and adds `.show` (on init, and again 500ms after `slideChange`). That copy is
   the only *visible* slide title: the original inside the slide is
   `display: none` (CDN `custom.css`, `.cityu .mediaBannerSwiper .swiper-slide
   .slide-content`). Measured live at 1440x1000: the copy renders as a white
   38px `<h2>` at rect [30, 730, 956, 48] — bottom-left of the photo.

   It is redundant here: the artwork carries its own lockup ("UNITED IN Motion /
   CityUHK Homecoming 2026 / 2026.12.12 10:00-18:00" on hero1; "Meet CityUHK
   Sport Stars" + athlete names on hero2), and the overlay paints straight over
   it — on hero2, "Baldwin Chan Ho-wah" sits at x 39-52%, y 78%, inside the
   overlay's 2-68% x 73-78% band. The CMS Hero rows still hold placeholder names
   ("Hero1", "Hero2"), which is what made this read as a bug rather than a
   caption.

   The `h2` only, never `.content`: that wrapper is the only place the optional
   `Read More` CTA is visible (its copy inside the slide is hidden), so hiding
   the wrapper would silently drop the CTA for any future Hero row with a
   `link`/`body` (`hero_list_query` resolves `url` from exactly those). Scoped to
   the home hero — the inner-page banners are `cityu-hero-static`, whose title is
   a separate `.component-banner-title > h1`, and stay as they are. CDN rule is
   `.cityu .media-banner-wrap h2` (0,2,1) vs (0,4,1) here, and this sheet loads
   last, so no `!important`. */
.cityu .component-rotating-banner-3 .media-banner-wrap .content h2 {
  display: none;
}

/* Ultra-wide (>= 2049px). Two CDN constraints stop the photo being full-bleed
   there, both above the 2048px design width of the artwork:
     1. `.container.container-fluid { max-width: 2048px }` caps the hero's parent
        container, so the photo stops centre-screen and the page background shows
        beside it (measured at 2560: image edges at 256/2305, i.e. 256px of white
        each side).
     2. The slide box is `aspect-ratio: 1920/1000` + `object-fit: cover`, so the
        2048x880 artwork is scaled to fill a taller box and clipped horizontally
        (cropH 0 but ~10.6% lost per side; at 2560 the visible artwork went
        2305-256 = 2049px wide for a 2048px-wide source, and the sides were cut).
   Fix = lift the cap, match the box to the artwork's true ratio (2048/880), and
   widen the overlay strip (`.container-max`, 1700px) so the bullets keep tracking
   the photo edges instead of drifting inboard.

   `:has()` keeps this off every other banner: `cityu-hero-static` (the
   announcements / open-to-all / college-school-events pages) nests its
   `.container.container-fluid` inside `.section-content` and never contains a
   `.component-rotating-banner-3`, so it keeps the stock 2048px cap.
   Below 2049px the whole block is inert — those breakpoints are byte-identical
   to before. Note the tradeoffs at this size: the 2048x880 artwork is upscaled
   (1.87x at 3840) and the hero's height now follows the full container width
   (width x 880/2048: 874px at 2049, 1094px at 2560, 1478px at 3440, 1644px at
   3840 — the probe reports ~6px less because a 15px scrollbar shrinks docW);
   re-export the artwork at ~3840x1650 if crispness matters. */
@media (min-width: 2049px) {
  .cityu section.section-banner > .container.container-fluid:has(.component-rotating-banner-3) {
    max-width: none;
  }

  .cityu .component-rotating-banner-3 .mediaBannerSwiper .swiper-slide {
    aspect-ratio: 2048 / 880;
  }

  .cityu .component-rotating-banner-3 .mediaBannerSwiper .swiper-pagination-wrap {
    max-width: none;
  }
}

/* Ribbon base for the stat strip: position it on the band edge and run the
   seamless five-colour marquee. §6 below carries the per-strip overrides. */
.hc2026-stat-strip-bars {
  position: absolute;
  left: -6%;
  right: -6%;
  bottom: -6px;
  height: 68px;
  transform: skewY(-3deg);
  background-image: var(--hc-ribbon-loop);
  background-size: 200% 100%;
  animation: hc2026-ribbon-scroll 14s linear infinite;
}

/* ============================================================
   6. Stat strip — key facts on the colour band
   The band keeps a poster gradient (not flat ink) and every fact sits on its own
   saturated block. Block colours are the §1 deep variants, which clear AA with
   white text; the yellow block takes ink text instead.
   ============================================================ */

.hc2026-stat-strip {
  position: relative;
  /* z-index above the sibling `.section-bg` layers (they sit at -1). */
  z-index: 1;
  overflow: hidden;
  /* Plain design value — the reserve no longer has to out-run the CDN's overlap.
     It used to be `max(280px, 12vw + 50px)` because `.section-wrap` carries
     `z-index: 18` and a negative top margin (`-230px`, switched to `-12vw` at
     `@media screen and (min-width: 2049px)`) whose white `.section-bg` then
     painted OVER this strip's purple band. That overlap is now zeroed for the
     one wrap that follows the strip (see the `+ .section-wrap` rules below), so
     this reserve only decides how much purple shows under the cards — and, as a
     side effect, the band's box no longer grows with the viewport (it measured
     617px at 1736px wide but 848px at 3840px before).
     ⚠️ If anything is ever inserted between the strip and that wrap, the CDN's
     `-230px` overlap comes back and this must return to > 230px. */
  padding: 56px 0 72px;
  color: #fff;
  background:
    radial-gradient(60% 120% at 8% 0%, rgba(255, 212, 0, 0.32) 0%, rgba(255, 212, 0, 0) 60%),
    radial-gradient(60% 120% at 92% 100%, rgba(245, 130, 31, 0.35) 0%, rgba(245, 130, 31, 0) 62%),
    /* Hero echo: the key visual runs green (top) → orange (bottom), and this
       band sits flush under it — so the band holds deep green in its top-left
       third and warms to deep burnt orange at the bottom-right. All stops stay
       dark enough for the white title / countdown / card text (lightest stop
       #a34a0e ≈ 5.1:1 on white, AA). */
    linear-gradient(120deg, #062f33 0%, #0d6157 30%, #7a3a10 68%, #a34a0e 100%);
}

/* No white skirt under the band. The CDN pulls EVERY `.section-wrap` up by
   `margin-top: -230px` and re-adds it as `padding-top: 230px`
   (`custom.css:1563`; `-12vw` under `@media screen and (min-width: 2049px)`,
   `:6153`), so the wrap's absolutely-positioned white `.section-bg` (`top: 0`)
   begins 230px above the section content and paints over the tail of the
   previous band. Because the pair cancels for the *content*, zeroing both on this
   one wrap removes the skirt without moving the section content by a pixel —
   only the `.section-bg`'s top edge drops to the strip's bottom edge. Three
   classes beat both CDN forms (including the `min-width: 2049px` variant), so no
   `!important` and no `max()`-tracking of `12vw` is needed.
   Structural (adjacent sibling), not CMS-driven: no layout push required. */
.cityu .hc2026-stat-strip + .section-wrap {
  margin-top: 0;
  padding-top: 0;
}

/* The CDN's `.section-content` carries `padding-top: 100px` (50px at
   ≤767.98px), sized for a section that sweeps over a band. With the skirt gone
   that is pure air between the band and the first panel, so tighten it to the
   strip's own top padding. Same three classes, so it also beats the mobile rule. */
.cityu .hc2026-stat-strip + .section-wrap .section-content {
  padding-top: 56px;
}

.hc2026-stat-strip-bars {
  height: 10px;
  bottom: auto;
  top: 0;
  transform: none;
  opacity: 1;
}

.hc2026-stat-strip-title {
  margin: 0 0 26px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}

/* Stats cards render above the countdown, so the countdown's separation now
   comes from a top margin; the strip's own bottom padding closes the band. */
.hc2026-countdown {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
  margin-bottom: 0;
}

.hc2026-countdown-unit {
  min-width: 104px;
  padding: 14px 18px;
  text-align: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.hc2026-countdown-unit strong {
  display: block;
  font-size: 34px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.hc2026-countdown-unit small {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.hc2026-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* One saturated block per fact; the colour cycle comes from :nth-child so the
   partial needs no per-item data. */
.hc2026-stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 22px 20px;
  border-radius: 18px;
  background: var(--hc-stat-bg, var(--hc-green-600));
  color: var(--hc-stat-fg, #fff);
  box-shadow: 0 14px 30px rgba(27, 27, 47, 0.28);
  animation: hc2026-rise 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hc2026-stat:nth-child(1) { --hc-stat-bg: var(--hc-green-600); }
.hc2026-stat:nth-child(2) { --hc-stat-bg: var(--hc-orange-700); animation-delay: 0.08s; }
.hc2026-stat:nth-child(3) { --hc-stat-bg: var(--hc-red-700); animation-delay: 0.16s; }
.hc2026-stat:nth-child(4) { --hc-stat-bg: var(--hc-yellow); --hc-stat-fg: var(--hc-ink); animation-delay: 0.24s; }

/* The poster's stacked-bar motif, reduced to a thin edge per block. */
.hc2026-stat::before {
  content: "";
  display: block;
  width: 42px;
  height: 5px;
  margin-bottom: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
}

.hc2026-stat:nth-child(4)::before {
  background: rgba(27, 27, 47, 0.28);
}

.hc2026-stat-value {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.1;
}

.hc2026-stat-value small {
  font-size: 0.55em;
  margin-left: 2px;
}

.hc2026-stat-label {
  font-size: 15px;
  line-height: 1.5;
  color: inherit;
  opacity: 0.88;
}
/* ============================================================
   7. Programme list — one section per College / School
   ============================================================ */

.cityu .hc2026-programme-group + .hc2026-programme-group {
  margin-top: 56px;
}

.cityu .hc2026-group-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 26px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--hc-green-600);
}

.cityu .hc2026-group-title::before {
  content: "";
  display: block;
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  background-color: var(--hc-green-500);
}

.cityu .hc2026-programme-list {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cityu .hc2026-programme-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  background: #fff;
  border: 1px solid #f0e6ec;
  border-left: 6px solid var(--hc-green-500);
  border-radius: 14px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.cityu .hc2026-programme-item:hover {
  box-shadow: 0 12px 30px rgba(172, 40, 111, 0.12);
  transform: translateY(-2px);
}

.cityu .hc2026-programme-info {
  flex: 1 1 22rem;
  min-width: 0;
}

.cityu .hc2026-programme-title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  line-height: 26px;
  color: #272727;
}

.cityu .hc2026-programme-organiser {
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 1.6;
  color: #747474;
}

.cityu .hc2026-programme-date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--hc-green-600);
}

.cityu .hc2026-programme-desc {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.6;
  color: #4a4a4a;
}

.cityu .hc2026-programme-desc p:last-child {
  margin-bottom: 0;
}

.cityu .hc2026-programme-action {
  flex: 0 0 auto;
}

.cityu .hc2026-programme-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid var(--hc-green-500);
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  color: var(--hc-green-600);
  transition: all 0.2s ease;
}

.cityu .hc2026-programme-link:hover,
.cityu .hc2026-programme-link:focus {
  background-image: var(--hc-accent-gradient);
  border-color: transparent;
  color: #fff;
}

/* Inert placeholder — the target is `#` because the row has no usable link. */
.cityu .hc2026-programme-link[aria-disabled="true"] {
  opacity: 0.55;
  cursor: default;
}

/* ============================================================
   8. Supporters panel — rich-text partner links
   There is no POSTS `Sponsor` type: the home page renders
   `cityu/cityu-content-rich-text` with `styleClass: hc2026-supporters`, so these
   rules style the demo list that ARO later replaces with the real partner copy.
   ============================================================ */

.cityu .hc2026-supporters-list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cityu .hc2026-supporters-list li {
  margin: 0;
}

.cityu .hc2026-supporters-list a {
  display: inline-block;
  padding: 14px 22px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(27, 27, 47, 0.06);
  box-shadow: 0 8px 18px rgba(27, 27, 47, 0.06);
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cityu .hc2026-supporters-list a:hover,
.cityu .hc2026-supporters-list a:focus {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(27, 27, 47, 0.12);
}

/* ============================================================
   9. Pagination — green active page
   ============================================================ */

.cityu .component-list-pagination .component-content nav > .active {
  color: var(--hc-green-600);
}

.cityu .component-list-pagination .component-content nav > a:hover,
.cityu .component-list-pagination .component-content nav > a:focus {
  color: var(--hc-green-600);
}

/* ============================================================
   10. Responsive
   ============================================================ */

@media (max-width: 991.98px) {
  .hc2026-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {

  .hc2026-stats {
    grid-template-columns: minmax(0, 1fr);
  }

  .hc2026-programme-item {
    padding: 18px 18px;
  }

  .hc2026-programme-action {
    width: 100%;
  }

  .cityu .hc2026-programme-link {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hc2026-programme-item,
  .hc2026-supporters-list a,
  .hc2026-countdown-unit {
    transition: none !important;
    transform: none !important;
  }
}
/* ============================================================
   11. UNSCORED — Card Gallery for multi-attachment posts
   Rendered by `components/hc2026-card-gallery`, which routes/homecoming.js
   injects when a post has 2+ files in `media`. Ported from aro-express
   (public/aro/alumni/css/custom-v3.css §10-11) so both apps keep the same
   contract for identical partial markup. Left unscoped: none of these classes
   exist in the CDN stylesheet, so there is nothing to out-specific — and without
   them the PDF/video placeholder tiles have no height at all.
   ============================================================ */

.gallerySwiper {
  padding-bottom: 50px !important;
}

.gallerySwiper .card.gallery-card {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  background: #000;
}

.gallerySwiper .card-img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  display: block;
  width: 100%;
}

.gallerySwiper .gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.gallerySwiper .gallery-zoom-icon {
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, 0.92) url(../image/icon/icon-eye.svg) center center no-repeat;
  background-size: 28px;
  border-radius: 50%;
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.gallerySwiper .card:hover .card-img {
  transform: scale(1.08);
  opacity: 0.8;
}

.gallerySwiper .card:hover .gallery-overlay {
  opacity: 1;
}

.gallerySwiper .card:hover .gallery-zoom-icon {
  transform: scale(1);
}

.gallerySwiper .card:hover .card-media-placeholder {
  opacity: 0.85;
}

.component-card-gallery .component-content {
  position: relative;
}

.component-card-gallery .component-content .swiper-button-next,
.component-card-gallery .component-content .swiper-button-prev {
  background: #fff url(../image/icon/swiper-button-arrow.svg) calc(50% + 3px) center no-repeat;
  background-size: auto 23px;
  border: #DBDBDB 1px solid;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  margin-top: -67px;
  transition: all 0.2s ease;
}

.component-card-gallery .component-content .swiper-button-prev {
  transform: rotate(180deg);
}

.component-card-gallery .component-content .swiper-button-next:hover,
.component-card-gallery .component-content .swiper-button-prev:hover {
  background: #F9F9F9 url(../image/icon/swiper-button-arrow.svg) calc(50% + 3px) center no-repeat;
  background-size: auto 23px;
}

.component-card-gallery .component-content .swiper-button-next::after,
.component-card-gallery .component-content .swiper-button-prev::after {
  content: none;
}

/* Gallery card media placeholders for video/PDF */
.card-media-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 10px;
}

.card-media-video {
  background: linear-gradient(135deg, #1b1b2f 0%, #114b4e 50%, var(--hc-green-600) 100%);
}

.card-media-pdf {
  background: linear-gradient(135deg, #0f3a3d 0%, #16706a 50%, var(--hc-green-500) 100%);
}

.media-icon {
  font-size: 42px;
  line-height: 1;
  display: block;
}

.card-media-video .media-icon {
  color: #fff;
  width: 56px;
  height: 56px;
  border: 3px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  padding-left: 4px;
}

.media-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.media-placeholder-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  padding: 8px 12px;
  font-size: 14px;
  text-align: center;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* ============================================================
   12. UNSCORED — Lightbox for the card gallery
   Displays the attachment full-screen: image in <img>, video in <video>, PDF in
   an <iframe> (this is the multi-PDF post fix). The partial moves
   #galleryLightbox to <body>, so these rules must stay unscoped.
   ============================================================ */

.gallery-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: auto;
}

.gallery-lightbox-content {
    position: relative;
    width: 90vw;
    height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.gallery-lightbox-media {
    width: 100%;
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.gallery-lightbox-media img,
.gallery-lightbox-media video {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.gallery-lightbox-media iframe {
    width: 100%;
    height: 100%;
    background: #fff;
}

.gallery-lightbox-caption {
    width: 100%;
    flex-shrink: 0;
    color: #fff;
    background: rgba(0, 0, 0, 0.6);
    padding: 15px 20px;
    font-size: 18px;
    font-weight: 500;
    text-align: center;
    backdrop-filter: blur(5px);
    pointer-events: auto;
}

/* Hide header and lock scroll when lightbox is open */
body.gallery-lightbox-open {
    overflow: hidden !important;
}

body.gallery-lightbox-open header {
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Lightbox nav buttons */
.gallery-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.15) url(../image/icon/swiper-button-arrow.svg) calc(50% + 2px) center no-repeat;
    background-size: auto 22px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    filter: brightness(10);
}

.gallery-lightbox-nav:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.gallery-lightbox-prev {
    left: 30px;
    transform: translateY(-50%) rotate(180deg);
}

.gallery-lightbox-next {
    right: 30px;
}

@media (max-width: 767.98px) {
    .gallery-lightbox-nav {
        width: 44px;
        height: 44px;
    }

    .gallery-lightbox-prev {
        left: 12px;
    }

    .gallery-lightbox-next {
        right: 12px;
    }
}
/* ============================================================
   13. UNSCORED — Premium chatbot (opt-in via HC2026_CHATBOT_URL)
   Ported from aro-express (`§9`); the accent is re-pointed from red/orange to
   the Homecoming green/orange so the trigger matches the site.
   ============================================================ */

:root {
    --chatbot-primary: var(--hc-green-600);
    --chatbot-secondary: var(--hc-orange);
    --chatbot-glass: rgba(255, 255, 255, 0.72);
    --chatbot-blur: 12px;
    --chatbot-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.chatbot-container {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 1050;
    pointer-events: none;
}

.chatbot-container * {
    pointer-events: auto;
}

.chatbot-trigger-wrapper {
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
}

.chatbot-trigger {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--chatbot-secondary), var(--chatbot-primary));
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(172, 40, 111, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: chatbot-pulse 2s infinite ease-in-out;
}

.chatbot-trigger:hover,
.chatbot-trigger:focus {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 32px rgba(172, 40, 111, 0.45);
}

.chatbot-window {
    position: fixed;
    right: 30px;
    bottom: -700px;
    width: 420px;
    max-width: calc(100vw - 60px);
    height: 600px;
    max-height: calc(100vh - 100px);
    background: var(--chatbot-glass);
    backdrop-filter: blur(var(--chatbot-blur));
    -webkit-backdrop-filter: blur(var(--chatbot-blur));
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--chatbot-shadow);
    transition: all 0.7s cubic-bezier(0.19, 1, 0.22, 1);
    opacity: 0;
    transform: translateY(20px) scale(0.95);
}

.chatbot-container.is-open .chatbot-window {
    bottom: 30px;
    opacity: 1;
    transform: translateY(0) scale(1);
}

.chatbot-container.is-open .chatbot-trigger-wrapper {
    opacity: 0;
    transform: scale(0.5) rotate(-90deg);
    pointer-events: none;
}

.chatbot-header {
    background: linear-gradient(135deg, var(--chatbot-secondary), var(--chatbot-primary));
    height: 64px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
}

.chatbot-header-title {
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.02em;
}

.chatbot-close {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.chatbot-close:hover,
.chatbot-close:focus {
    background: rgba(255, 255, 255, 0.3);
}

.chatbot-body {
    flex: 1;
    background: transparent;
}

.chatbot-body iframe {
    width: 100%;
    height: 100%;
    border: none;
}

@keyframes chatbot-pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@media (max-width: 576px) {
    .chatbot-container {
        right: 20px;
        bottom: 20px;
    }

    .chatbot-window {
        right: 20px;
        width: calc(100vw - 40px);
        height: min(600px, calc(100vh - 40px));
        border-radius: 16px;
    }

    .chatbot-container.is-open .chatbot-window {
        bottom: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .chatbot-trigger {
        animation: none;
    }
}

/* ============================================================
   13. Poster vibrancy — menu ribbon, section panels, colour cycling,
       empty states
   Homecoming-only decoration layered on top of §4/§7/§8. Unscoped where the
   class is Homecoming-only (`.hc2026-*`), `.cityu`-scoped where it competes
   with a CDN class — and always with a higher specificity than the rule it
   overrides, so load order is not the only thing holding it up.
   ============================================================ */

/* --- The five-poster-colour ribbon under the main menu -------------------- */
.cityu-menu::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 5px;
  background: var(--hc-ribbon-gradient);
  background-size: 200% 100%;
  animation: hc2026-gradient-pan 7s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 5;
}

/* --- Section background: a soft poster tint instead of flat white --------- */
/* `.section-bg` is an absolute child that paints over `.section-wrap`, so the
   tint belongs there, not on the wrapper. */
.cityu .section-light .section-bg {
  background-color: #fff;
  background-image: linear-gradient(180deg, #fff 0%, #f0faf8 38%, #f2fbfa 74%, #fff 100%);
}

/* --- Home sections read as their own tinted panels ------------------------ */
.cityu .hc2026-programme,
.cityu .hc2026-card-notice,
.cityu .hc2026-supporters {
  position: relative;
  padding: 34px 32px 36px;
  border-radius: 22px;
  overflow: hidden;
}

.cityu .hc2026-programme { background: var(--hc-tint-teal); }
.cityu .hc2026-card-notice { background: var(--hc-tint-green); }
.cityu .hc2026-supporters { background: var(--hc-tint-yellow); }

/* Ribbon edge on each panel. */
.cityu .hc2026-programme::before,
.cityu .hc2026-card-notice::before,
.cityu .hc2026-supporters::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: var(--hc-ribbon-gradient);
}

/* Panel headings take the multi-colour rule instead of the flat green one. */
.cityu .hc2026-programme .heading-underline::after,
.cityu .hc2026-card-notice .heading-underline::after,
.cityu .hc2026-supporters .heading-underline::after {
  background-image: var(--hc-ribbon-gradient);
}

/* --- Colour cycling: group markers, programme rows, notice accents -------- */
.cityu .hc2026-programme-groups > .hc2026-programme-group:nth-child(3n+1) .hc2026-group-title::before {
  background-color: var(--hc-green-600);
}

.cityu .hc2026-programme-groups > .hc2026-programme-group:nth-child(3n+2) .hc2026-group-title::before {
  background-color: var(--hc-orange-700);
}

.cityu .hc2026-programme-groups > .hc2026-programme-group:nth-child(3n) .hc2026-group-title::before {
  background-color: var(--hc-red-700);
}

.cityu .hc2026-programme-list > .hc2026-programme-item:nth-child(4n+1) { border-left-color: var(--hc-green-500); }
.cityu .hc2026-programme-list > .hc2026-programme-item:nth-child(4n+2) { border-left-color: var(--hc-yellow); }
.cityu .hc2026-programme-list > .hc2026-programme-item:nth-child(4n+3) { border-left-color: var(--hc-orange-700); }
.cityu .hc2026-programme-list > .hc2026-programme-item:nth-child(4n)   { border-left-color: var(--hc-red-700); }

.cityu .hc2026-card-notice .row > .col:nth-child(4n+1) .card .card-body::before { background-image: linear-gradient(to right, var(--hc-green-500), var(--hc-green-600)); }
.cityu .hc2026-card-notice .row > .col:nth-child(4n+2) .card .card-body::before { background-image: linear-gradient(to right, var(--hc-yellow), var(--hc-orange)); }
.cityu .hc2026-card-notice .row > .col:nth-child(4n+3) .card .card-body::before { background-image: linear-gradient(to right, var(--hc-red-700), var(--hc-red)); }
.cityu .hc2026-card-notice .row > .col:nth-child(4n)   .card .card-body::before { background-image: linear-gradient(to right, var(--hc-magenta-700), var(--hc-magenta)); }

.cityu .hc2026-card-notice .card {
  border-radius: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cityu .hc2026-card-notice .card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(27, 27, 47, 0.12);
}

/* --- Empty state --------------------------------------------------------- */
/* A CMS-driven section with no rows must look intentional, not blank. */
.hc2026-empty {
  margin: 0;
  padding: 30px 26px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px dashed rgba(27, 27, 47, 0.16);
  font-size: 17px;
  line-height: 1.6;
  color: #5a5a6b;
}
/* --- Key Event Highlight panel (home page rich-text block) ---------------- */
/* Tinted poster panel like the other §13 home panels, distinct from the flat
   Supporters yellow. The panel + ribbon edge + ribbon heading-underline follow
   the grouped §13 recipe above; these rules are self-contained (the block is a
   one-off, so it does not join the grouped selectors). `margin-bottom` separates
   it from the "Open to All" slider panel that follows in the same section. */
.cityu .hc2026-highlight {
  position: relative;
  padding: 34px 32px 36px;
  margin-bottom: 44px;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(150deg, #fff3f8 0%, #fffaea 100%);
}

.cityu .hc2026-highlight::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: var(--hc-ribbon-gradient);
}

.cityu .hc2026-highlight .heading-underline::after {
  background-image: var(--hc-ribbon-gradient);
}

.cityu .hc2026-highlight p {
  font-size: 17px;
  line-height: 1.65;
  color: #4a4a5c;
  margin-bottom: 22px;
}

/* Schedule rows: white rounded rows with a time chip + event name. */
.cityu .hc2026-highlight-schedule {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* One aligned chip column. `nowrap` keeps the chip beside the event text even
   when the event wraps to two lines (the book talk), and `flex-start` keeps it
   level with the first line instead of floating mid-row. */
.cityu .hc2026-highlight-schedule li {
  display: flex;
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.88);
  border-radius: 14px;
  border-left: 5px solid var(--hc-green-500);
  box-shadow: 0 4px 14px rgba(27, 27, 47, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cityu .hc2026-highlight-schedule li:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(27, 27, 47, 0.12);
}

/* Colour-cycled left accents, matching the §13 programme-marker cycle
   (hero-ramp order: green → orange → red → magenta). */
.cityu .hc2026-highlight-schedule > li:nth-child(4n+2) { border-left-color: var(--hc-orange-700); }
.cityu .hc2026-highlight-schedule > li:nth-child(4n+3) { border-left-color: var(--hc-red-700); }
.cityu .hc2026-highlight-schedule > li:nth-child(4n)   { border-left-color: var(--hc-magenta-700); }

/* Time chip: deep 700 variants carry white text at AA contrast. A fixed 150px
   basis (border-box, so padding is included) gives every pill the same width and
   a shared left edge; 24-hour strings fit (`18:00 – 21:00` ≈ 104px). */
.cityu .hc2026-highlight-time {
  flex: 0 0 150px;
  padding: 6px 0;
  border-radius: 999px;
  background: var(--hc-green-600);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-align: center;
  white-space: nowrap;
}

.cityu .hc2026-highlight-schedule > li:nth-child(4n+2) .hc2026-highlight-time { background: var(--hc-orange-700); }
.cityu .hc2026-highlight-schedule > li:nth-child(4n+3) .hc2026-highlight-time { background: var(--hc-red-700); }
.cityu .hc2026-highlight-schedule > li:nth-child(4n)   .hc2026-highlight-time { background: var(--hc-magenta-700); }

.cityu .hc2026-highlight-event {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--hc-ink);
}

/* --- Page intro: unpanelled copy above the Programme panel ---------------- */
/* The rich-text block that opens the home section: title, tagline, the
   date/time/venue facts and the supplied "United in Motion" paragraphs.
   Deliberately NOT a second tinted panel — `.hc2026-highlight` directly below is
   the section's card, and two adjacent panels would read as one broken layout.
   The green left rule ties the copy to it instead. §6 keeps the stat-strip wrap
   at `margin-top: 0`, so the 44px bottom margin is the only separation. */
.cityu .hc2026-intro {
  position: relative;
  margin: 0 0 44px;
  padding-left: 28px;
  border-left: 6px solid var(--hc-green-500);
}

/* Body copy spans the full row width, like the remark footnote. An earlier
   `72ch` cap wrapped every paragraph at ~640px and left the right half of the
   section empty. */
.cityu .hc2026-intro p {
  max-width: none;
  margin-bottom: 18px;
  font-size: 17px;
  line-height: 1.7;
  color: #4a4a5c;
}

.cityu .hc2026-intro p:last-child {
  margin-bottom: 0;
}

.cityu .hc2026-intro .hc2026-intro-tagline {
  margin-bottom: 22px;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--hc-green-600);
}

/* Facts as tinted chips. `--hc-green-600` on `--hc-green-tint` is ~5.6:1 (AA) —
   the light ramp accents are never used behind text. */
.cityu .hc2026-intro .hc2026-intro-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}

.cityu .hc2026-intro .hc2026-intro-meta li {
  padding: 7px 16px;
  border: 1px solid rgba(17, 115, 121, 0.18);
  border-radius: 999px;
  background: var(--hc-green-tint);
  font-size: 15px;
  color: var(--hc-ink);
}

.cityu .hc2026-intro .hc2026-intro-meta strong {
  color: var(--hc-green-600);
}

@media (max-width: 576px) {
  .cityu .hc2026-highlight {
    padding: 26px 20px 28px;
  }

  .cityu .hc2026-highlight-schedule li {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  /* Stacked rows: the pill hugs its time instead of holding the 150px column. */
  .cityu .hc2026-highlight-time {
    flex: 0 0 auto;
    padding: 6px 14px;
  }

  .cityu .hc2026-intro {
    padding-left: 18px;
    border-left-width: 4px;
  }

  .cityu .hc2026-intro p {
    font-size: 16px;
  }

  .cityu .hc2026-intro .hc2026-intro-tagline {
    font-size: 18px;
  }

  .cityu .hc2026-intro .hc2026-intro-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* --- Empty state --------------------------------------------------------- */

/* ============================================================
   14. Keyframes (shared)
   Kept after the hero revert: the stat-strip ribbon marquee, the stat-block
   entrance and the menu-ribbon gradient pan. The hero-only keyframes (sunburst
   spin, arc breathing, confetti drift, pictogram float, colour aurora, sheen,
   word reveal, scroll cue, ken burns) were removed with the masthead.
   ============================================================ */

/* Ribbon marquee. One full `background-position` cycle equals exactly one
   repetition of `--hc-ribbon-loop` at `background-size: 200% 100%`, so the loop
   is seamless — a plain 0% → 100% linear, no `alternate` needed. */
@keyframes hc2026-ribbon-scroll {
  from { background-position: 0% 50%; }
  to   { background-position: 100% 50%; }
}

/* Entrance used by the stat blocks. */
@keyframes hc2026-rise {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Gradient pan for the menu ribbon. `alternate` keeps it seamless — a linear
   loop would jump at 100%. */
@keyframes hc2026-gradient-pan {
  from { background-position: 0% 50%; }
  to   { background-position: 100% 50%; }
}

/* --- Reduced motion: disable every remaining Homecoming animation ---------- */
/* The decoration stays (it is static composition), only the motion goes. */
@media (prefers-reduced-motion: reduce) {
  .hc2026-stat-strip-bars,
  .hc2026-stat,
  .cityu-menu::after {
    animation: none !important;
  }
}

/* ============================================================
   15. Vibrant event card slider (Featured Programmes / open-to-all /
       College-School events)
   The component (`components/hc2026-card-slider` + `hc2026-slider-card`) reuses
   the §13 `.hc2026-programme` panel/tint/ribbon/group-marker styling; everything
   below is the slider-and-card layer only. `.hc2026Slider` is app-owned (NOT the
   CDN's `.spotlightSwiper`) because the CDN auto-inits spotlights with
   `loop + autoplay`; the arrows/pagination are appended by
   `public/homecoming/2026/js/script.js`.

   Vibrant colour: each slide sets a `--hc-card-accent` pair from the poster
   palette, consumed by the card's top ribbon, organiser line, date pill and
   corner arrow. Background-carrying elements use the deep 700 variants (or the
   accent over white) so text keeps AA contrast.
   ============================================================ */

/* Poster-tinted panel, stronger than the §13 flat teal tint. Declared after §13
   with the same specificity, so source order wins. */
.cityu .hc2026-card-slider {
  background: linear-gradient(158deg, #eefaf8 0%, #e8f6f4 55%, #fffaea 100%);
}

/* The CDN reserves 84px under `.component-carousel-1 .component-content`; the
   track reserves its own strip for the pagination, so drop the double reserve. */
.cityu .hc2026-card-slider .component-content {
  padding-bottom: 0;
}

.cityu .hc2026-card-slider .hc2026Slider {
  padding-bottom: 48px;
}

/* Controls are only meaningful when the group can scroll; `watchOverflow` sets
   the lock classes on a group with one card. */
.cityu .hc2026-card-slider .swiper-button-lock,
.cityu .hc2026-card-slider .swiper-pagination-lock {
  display: none !important;
}

/* The CDN draws the round arrows at `margin-top: -67px`, tuned for the stock
   card; the image half of our card is a little taller, so re-centre them. */
.cityu .hc2026-card-slider .component-content .swiper-button-next,
.cityu .hc2026-card-slider .component-content .swiper-button-prev {
  margin-top: -72px;
}

/* Green pagination bullet instead of the CDN's orange-red (mirrors §9). */
.cityu .hc2026-card-slider .swiper-pagination-horizontal .swiper-pagination-bullet-active {
  background-color: var(--hc-green-600);
}

/* --- Per-card accent (4-colour hero-ramp cycle) ---------------------------- */
.cityu .hc2026-card-slider .swiper-slide:nth-child(4n+1) {
  --hc-card-accent: var(--hc-green-600);
  --hc-card-accent-2: var(--hc-green-500);
}

.cityu .hc2026-card-slider .swiper-slide:nth-child(4n+2) {
  --hc-card-accent: var(--hc-orange-700);
  --hc-card-accent-2: var(--hc-orange);
}

.cityu .hc2026-card-slider .swiper-slide:nth-child(4n+3) {
  --hc-card-accent: var(--hc-red-700);
  --hc-card-accent-2: var(--hc-red);
}

.cityu .hc2026-card-slider .swiper-slide:nth-child(4n) {
  --hc-card-accent: var(--hc-magenta-700);
  --hc-card-accent-2: var(--hc-magenta);
}

/* --- Card ----------------------------------------------------------------- */
.cityu .hc2026-card-slider .hc2026-slider-card {
  position: relative;
  height: 100%;
  background: #fff;
  border: 1px solid rgba(27, 27, 47, 0.08);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(27, 27, 47, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Colour-block ribbon across the top of every card. */
.cityu .hc2026-card-slider .hc2026-slider-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  height: 6px;
  background-image: linear-gradient(to right, var(--hc-card-accent, var(--hc-green-600)), var(--hc-card-accent-2, var(--hc-green-500)));
}

.cityu .hc2026-card-slider .hc2026-slider-card a {
  display: block;
  height: 100%;
  color: var(--hc-ink);
  text-decoration: none;
}

.cityu .hc2026-card-slider .hc2026-slider-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 46px rgba(27, 27, 47, 0.16);
}

/* --- Media ---------------------------------------------------------------- */
.cityu .hc2026-card-slider .hc2026-slider-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, var(--hc-card-accent, var(--hc-green-600)) 0%, var(--hc-card-accent-2, var(--hc-green-500)) 100%);
}

.cityu .hc2026-card-slider .hc2026-slider-media .card-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.cityu .hc2026-card-slider .hc2026-slider-card:hover .hc2026-slider-media .card-img {
  transform: scale(1.06);
}

.cityu .hc2026-card-slider .hc2026-slider-media-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 56px;
}

/* --- Body: organiser, title, date pill ------------------------------------ */
.cityu .hc2026-card-slider .hc2026-slider-card .card-body {
  /* Right padding keeps a long title clear of the corner arrow. */
  padding: 22px 70px 26px 22px;
  height: auto;
  background: #fff;
  background-image: none;
}

.cityu .hc2026-card-slider .hc2026-slider-organiser {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--hc-card-accent, var(--hc-green-600));
}

.cityu .hc2026-card-slider .hc2026-slider-card .card-title {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 700;
  line-height: 26px;
  color: #272727;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cityu .hc2026-card-slider .hc2026-slider-card .card-date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background-image: linear-gradient(to right, var(--hc-card-accent, var(--hc-green-600)), var(--hc-card-accent-2, var(--hc-green-500)));
}

/* --- Corner arrow --------------------------------------------------------- */
.cityu .hc2026-card-slider .hc2026-slider-arrow {
  position: absolute;
  right: 18px;
  bottom: 20px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #f0f0f0;
  border-radius: 50%;
  background: #fff;
  color: var(--hc-card-accent, var(--hc-green-600));
  font-size: 24px;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.cityu .hc2026-card-slider .hc2026-slider-card:hover .hc2026-slider-arrow {
  border-color: transparent;
  background-image: linear-gradient(to right, var(--hc-card-accent, var(--hc-green-600)), var(--hc-card-accent-2, var(--hc-green-500)));
  color: #fff;
}

/* Inert placeholder — the target is `#` because the row has no usable link. */
.cityu .hc2026-card-slider .hc2026-slider-card a[aria-disabled="true"] {
  cursor: default;
}

.cityu .hc2026-card-slider .hc2026-slider-card a[aria-disabled="true"] .hc2026-slider-arrow {
  opacity: 0.55;
}

/* --- Responsive ----------------------------------------------------------- */
@media (max-width: 575.98px) {
  .cityu .hc2026-card-slider .component-content .swiper-button-next,
  .cityu .hc2026-card-slider .component-content .swiper-button-prev {
    display: none;
  }

  .cityu .hc2026-card-slider .hc2026-slider-card .card-body {
    padding-right: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cityu .hc2026-card-slider .hc2026-slider-card,
  .cityu .hc2026-card-slider .hc2026-slider-media .card-img,
  .cityu .hc2026-card-slider .hc2026-slider-arrow {
    transition: none !important;
    transform: none !important;
  }
}

/* ============================================================
   Floating figure without caption — round the bottom corners
   (CDN gives .component-content-8/-9 img a 15px 15px 0 0 radius,
   assuming a rounded .image-caption overlays the bottom; without
   a caption the bottom corners stay square)
   ============================================================ */
.cityu .component-content-8 .component-image.no-caption img,
.cityu .component-content-9 .component-image.no-caption img {
    border-radius: 15px;
}

/* ============================================================
   16. Events index — `component-card-2` grid grouped by start-time session
   The component (`components/hc2026-card-event`) reuses the §13
   `.hc2026-programme` panel, group-title and ribbon styling; everything below
   is the card-body layer only. Card-2 supplies the 4:3 `card-img-top`, the
   accent bar and the circular hover arrow (re-tinted in §3).
   ============================================================ */

.cityu .hc2026-event-list .component-content .card .card-body {
  /* Four lines instead of the stock title + copy: organiser, title, date,
     eligibility. A little more room keeps a 2-line title from crowding the
     eligibility line into the corner arrow. */
  min-height: 258px;
  padding: 34px 22px 30px;
}

.cityu .hc2026-event-list .hc2026-event-organiser {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--hc-green-600);
}

.cityu .hc2026-event-list .component-content .card .card-body .card-title {
  margin: 0 0 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cityu .hc2026-event-list .hc2026-event-meta {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 23px;
  color: #272727;
}

.cityu .hc2026-event-list .hc2026-event-meta i {
  flex: 0 0 auto;
  font-size: 16px;
  line-height: 23px;
  color: var(--hc-green-600);
}

.cityu .hc2026-event-list .hc2026-event-meta:last-child {
  margin-bottom: 0;
}

.cityu .hc2026-event-list .hc2026-event-eligibility {
  font-size: 14px;
  color: #555;
}

/* Long eligibility text: max two lines keeps every card in a row the same
   height without hiding the date line. */
.cityu .hc2026-event-list .hc2026-event-eligibility span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Image-less rows still reserve the 4:3 slot with a quiet poster glyph. */
.cityu .hc2026-event-list .hc2026-event-media-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: var(--hc-tint-green);
  color: var(--hc-green-500);
  font-size: 48px;
}

/* 4-colour accent cycle, matching §13 notices and §15 slides. The extra
   `.hc2026-event-list`/`:nth-child` specificity beats the §3 base rule. */
.cityu .hc2026-event-list .row > .col:nth-child(4n+1) .card .card-body::before {
  background-image: linear-gradient(to right, var(--hc-green-500), var(--hc-green-600));
}

.cityu .hc2026-event-list .row > .col:nth-child(4n+2) .card .card-body::before {
  background-image: linear-gradient(to right, var(--hc-yellow), var(--hc-orange));
}

.cityu .hc2026-event-list .row > .col:nth-child(4n+3) .card .card-body::before {
  background-image: linear-gradient(to right, var(--hc-red-700), var(--hc-red));
}

.cityu .hc2026-event-list .row > .col:nth-child(4n) .card .card-body::before {
  background-image: linear-gradient(to right, var(--hc-magenta-700), var(--hc-magenta));
}

/* Inert placeholder — the row has no usable link target. */
.cityu .hc2026-event-list .card .card-cover-link[aria-disabled="true"] {
  cursor: default;
}

/* --- Standing remark under every Event rundown ---------------------------- */
/* The ARO programme-change disclaimer, appended to each Event page's
   `mainContent` as a `cityu/cityu-content-rich-text` block with
   `styleClass: hc2026-remark`. A footnote, not a panel: a hairline above and
   15px muted copy read as legal text instead of another content card. #555 on
   white is ≈7.5:1 (AA). Declared after §13 so `.hc2026-remark p` wins the
   equal-specificity tie against `.hc2026-highlight p` by source order. */
.cityu .hc2026-remark {
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid rgba(27, 27, 47, 0.14);
}

.cityu .hc2026-remark p {
  max-width: none;
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: #555;
}

.cityu .hc2026-remark strong {
  color: var(--hc-ink);
}

@media (max-width: 575.98px) {
  .cityu .hc2026-remark {
    margin-top: 28px;
  }
}

/* ============================================================
   17. Event detail — info panel beside the 4:3 cover
   The route pushes `components/hc2026-event-overview` (panel + cover) before
   the body. The panel shows the structured event record; the cover uses the
   `full` rendition and keeps the source 4:3 ratio (no crop).
   ============================================================ */

.cityu .hc2026-event-overview {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
  margin: 0 0 42px;
}

.cityu .hc2026-event-overview--text-only {
  grid-template-columns: minmax(0, 1fr);
}

.cityu .hc2026-event-cover {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  border-radius: 16px;
  background: var(--hc-tint-green);
  box-shadow: 0 12px 30px rgba(27, 27, 47, 0.10);
}

.cityu .hc2026-event-cover img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0;
}

/* --- Info panel ----------------------------------------------------------- */
.cityu .hc2026-event-info {
  position: relative;
  min-width: 0;
  padding: 32px 30px 30px;
  background: var(--hc-tint-green);
  border: 1px solid rgba(17, 115, 121, 0.16);
  border-radius: 16px;
  overflow: hidden;
}

.cityu .hc2026-event-info::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: var(--hc-ribbon-gradient);
}

.cityu .hc2026-event-info-title {
  margin: 0 0 20px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--hc-green-600);
}

.cityu .hc2026-event-info-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
}

.cityu .hc2026-event-info-item {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  font-size: 15px;
  line-height: 24px;
}

.cityu .hc2026-event-info-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-weight: 700;
  color: #03555a;
}

.cityu .hc2026-event-info-label i {
  flex: 0 0 auto;
  font-size: 16px;
  color: var(--hc-green-500);
}

.cityu .hc2026-event-info-value {
  margin: 0;
  color: #272727;
  overflow-wrap: anywhere;
}

.cityu .hc2026-event-info-cta {
  margin-top: 24px;
}

/* The `event_enquiry` column is rich text (multi-line). Normalise paragraph and
   list spacing so it aligns with the other value rows. */
.cityu .hc2026-event-info-rich p,
.cityu .hc2026-event-info-rich ul,
.cityu .hc2026-event-info-rich ol {
  margin: 0 0 6px;
}

.cityu .hc2026-event-info-rich p:last-child,
.cityu .hc2026-event-info-rich ul:last-child,
.cityu .hc2026-event-info-rich ol:last-child {
  margin-bottom: 0;
}

.cityu .hc2026-event-info-rich ul,
.cityu .hc2026-event-info-rich ol {
  padding-left: 1.2em;
}

.cityu .hc2026-event-info-rich li + li {
  margin-top: 2px;
}

.cityu .hc2026-event-info-rich a {
  color: var(--hc-green-600);
  text-decoration: underline;
}

/* --- Responsive ----------------------------------------------------------- */
@media (max-width: 991.98px) {
  .cityu .hc2026-event-overview {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Keep the visual anchor first on a stacked layout. */
  .cityu .hc2026-event-cover {
    order: -1;
  }
}

@media (max-width: 575.98px) {
  .cityu .hc2026-event-info {
    padding: 28px 22px 24px;
  }

  .cityu .hc2026-event-info-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cityu .hc2026-event-list .card,
  .cityu .hc2026-event-cover,
  .cityu .hc2026-event-info {
    transition: none !important;
    transform: none !important;
  }
}

/* --- Inlined post details on one page -------------------------------------
   `fun-zone` renders two POSTS rows through `components/hc2026-post-detail`, so
   two `.hc2026-event-overview` blocks and two title blocks sit in the **same**
   section. `hc2026-event-overview` already ends 42px below its cover, so the
   seam only needs a top rule on the second detail — this keeps the page to one
   section (a new section here would re-trigger the CDN's 230px
   `.section-wrap` skirt, see §6). */
.cityu .hc2026-post-detail + .hc2026-post-detail {
  margin-top: clamp(40px, 6vw, 72px);
  padding-top: clamp(40px, 6vw, 72px);
  border-top: 1px solid rgba(17, 115, 121, 0.16);
}

/* The first detail's title block is followed by the overview, which already
   carries the bottom margin; nothing to trim there. Keep the seam's inner
   spacing identical on mobile where the cover stacks above the panel. */
@media (max-width: 575.98px) {
  .cityu .hc2026-post-detail + .hc2026-post-detail {
    margin-top: 40px;
    padding-top: 40px;
  }
}

