/* TFT What's On — front-end styles.

   Three blocks in one wrapper: cards, calendar, weekly fixtures. They render
   inside Elementor sections that already set their own typography, so almost
   everything here is sized in `em` and inherits colour rather than declaring
   it.

   ⚠️ There is NO <button> override block in this file, deliberately. The 85
   `!important` rules documented in TFT-PROJECT-INSTRUCTIONS.md are a STAFF
   PORTAL theme problem; this site runs hello-elementor, tft-opening-hours
   needed no override, and every action here is an <a> anyway.

   Colour reinforces but never carries meaning alone — every chip states its
   name and every legend key is a word, so the calendar survives greyscale and
   a screen reader.

   Mobile: below 600px the grid is REPLACED by a dated agenda list. Seven
   columns at 380px is unreadable and most of this traffic is phones. It is
   CSS-only on purpose — making it depend on JavaScript would be a second way
   for the page to fail. */

.won { text-align: left; }

/* ── Sections ── */
.won-block { margin: 0 0 2.2em; }
.won-block:last-child { margin-bottom: 0; }

.won-block-title {
  margin: 0 0 .7em;
  padding-bottom: .35em;
  border-bottom: 2px solid currentColor;
  font-size: 1.05em;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .02em;
  text-align: left;
  text-transform: uppercase;
}

/* ── Block 1: Coming up ── */
/* ⚠️ `auto-fill`, NOT `auto-fit` (v1.20.1, WON-FIX-1). `auto-fit` COLLAPSES
   the empty tracks, so with one event the lone card took the whole row and its
   4:3 picture stretched to ~840px tall — the fish and chips poster that filled
   the screen (Leigh, 25 Nov 2026). `auto-fill` keeps the empty tracks, so with
   1, 2 or 3 events each card is the width of one of four, left-aligned. Phone
   is unchanged: under ~480px only one 230px track fits either way. Same idiom
   as `.won-dl-grid` below. */
.won-cards {
  display: grid;
  gap: 1.2em;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

.won-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, .1);
  border-radius: 3px;
  background: rgba(255, 255, 255, .55);
}
/* ⚠️ The ASPECT RATIO LIVES ON THE CONTAINER, not on the <img>.
   Setting it on `.won-card-image` looked right and did not hold: card images
   rendered at four different heights on the live listing (Leigh, 16 Sep), which
   with a full-width brand band on the bottom edge reads as plain broken. An
   `img` rule from the theme or Elementor can beat an `img` rule of ours; it
   cannot beat a box it does not know exists. Do not move this back onto the
   image. */
.won-card-media {
  display: block;
  position: relative;
  /* ⚠️ 4:3, NOT 16:9 — changed 17 Sep 2026 after measuring the real photos.
     Foodie Friday cards show the trader's own phone photos, and NOT ONE of them
     is near 16:9: four traders are portrait at 0.67-0.80, one is square, and
     only two have 4:3. Asking a 0.67 portrait for a 16:9 crop throws away 62%
     of its height and keeps a centred band - which is how a burger shot ended
     up rendering as a white wall and two skewers. At 4:3 that portrait keeps
     56% instead of 42%, and the 4:3 photos fit with no crop at all.
     WON posters are unaffected: they are generated in a real 4:3 crop too, and
     tft_won_card_image_url() selects it. */
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #F2F5F5;
}

/* THE BAND — on EVERY card, never empty (phase 9).
   It began as Foodie Friday branding: the pill was too quiet (Leigh, 16 Sep),
   an aggregated card carries the TRADER's logo and cuisine, so the night it
   belongs to has to compete with that rather than hide from it. It then became
   the thing that makes a row of cards look like one designed object — which is
   why a card without one now reads as the odd one out, and why it carries the
   category's words when there is no mark to show.

   ⚠️ ONE STRIP, ONE COLOUR, WHICHEVER CONTENT IT HOLDS. The height, padding
   and ground are identical for a logo and for words, because the point of the
   band is that the row is uniform — a band that changes size per card is worse
   than no band. And NOT colour-coded by category: the calendar chips already
   colour by source (§20.5) and two colour systems on one page compete. The
   band is a label, not a status.

   `min-height` rather than height, so the two kinds of content cannot disagree
   about the strip they sit in: the mark is 22px and the text line-box is
   shorter, and without a floor the text cards would come out ~6px smaller than
   the branded ones — the exact defect this is here to prevent. */
.won-card-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 38px;
  padding: .5rem .6rem;
  background: #1A363A;
  pointer-events: none;
}
.won-card-brand img { display: block; width: auto; height: 22px; }
/* The text half. Uppercase and letterspaced so it reads as a strip rather than
   as a stray line of copy, and clipped to one line — `bandLabel` is capped at
   24 characters on write, and a two-line band would change the card's height. */
.won-card-brand-label {
  display: block;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #FFFFFF;
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-align: center;
}
@media (max-width: 600px) {
  .won-card-brand { min-height: 32px; padding: .4rem .5rem; }
  .won-card-brand img { height: 18px; }
  .won-card-brand-label { font-size: .66rem; letter-spacing: .1em; }
}
.won-card-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  /* WON posters are produced as a real 16:9 crop, so `cover` loses nothing. */
  object-fit: cover;
}

/* ⚠️ LETTERBOXING IS DECIDED BY WHAT THE PICTURE IS, NOT BY WHICH SOURCE IT
   CAME FROM. Until v1.8.1 this was `.won-source-foodie .won-card-image`, which
   was right only while every Foodie Friday card carried the TRADER's logo —
   square for one, wide for another, never 16:9 — and cropping somebody else's
   wordmark in half is not ours to do.

   Phase 7 makes the portal prefer a FOOD PHOTO over the logo, and a photograph
   can be cropped safely and should fill the frame. So the class is now driven
   by the payload's `imageKind` (see tft_won_image_fit_class()): a logo
   letterboxes, everything else covers. Tying it back to the source would
   letterbox every food photo the moment somebody re-read this rule as "Foodie
   Friday = contain". The band across the bottom makes a letterbox read as
   deliberate either way. */
.won-card-image-contain { object-fit: contain; }
.won-card-body { padding: .9em 1em 1.1em; }

.won-card-date {
  margin: 0 0 .15em;
  font-size: .78em;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  opacity: .75;
}
.won-card-title { margin: 0 0 .25em; font-size: 1.15em; line-height: 1.25; }
.won-card-title a { text-decoration: none; }
.won-card-title a:hover,
.won-card-title a:focus { text-decoration: underline; }
.won-card-time { margin: 0 0 .4em; font-size: .85em; opacity: .8; }
.won-card-summary { margin: 0; font-size: .92em; line-height: 1.45; }
/* v1.21.0 (XMAS-WEB-1): the date's price text, on range cards only
   ([whats_on from to]). Its own line under the summary, a touch heavier —
   "Strictly ticket only" is the one thing a customer must not miss. */
.won-card-price { margin: .45em 0 0; font-size: .88em; font-weight: 600; line-height: 1.4; }
.won-card-actions { margin: .8em 0 0; }

/* The downloads indicator — a count, not a list and not an icon (brief §6).
   ⚠️ `em` and `opacity`, NOT the `--won-*` tokens. `tft_won_card()` renders on
   the LISTING as well as inside the detail page's "Also coming up" strip — the
   same shared-card property §28.2's brand badge relies on — and those tokens
   are declared on `.won-single-main`, which the listing page does not have. A
   var() that resolves on one page and drops on the other is how a card ends up
   looking right everywhere it was tested and wrong where it was not. */
.won-card-downloads {
  margin: .35em 0 0;
  font-size: .72em;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .65;
}

/* A cancelled event stays visible; it just stops shouting. */
.won-card-cancelled .won-card-media { opacity: .5; }
.won-card-cancelled .won-card-title { text-decoration: line-through; }

/* ── Notices ── */
.won-notice {
  margin: .6em 0 0;
  padding: .45em .6em;
  border-left: 3px solid currentColor;
  font-size: .88em;
  line-height: 1.4;
}
.won-notice-cancelled   { border-color: #a32020; background: #fbe9e9; color: #7d1a1a; }
.won-notice-rescheduled { border-color: #e0a63a; background: #fdf0d5; color: #7a4f00; }

/* ── Actions. <a>, never <button>. ── */
.won-button {
  display: inline-block;
  padding: .5em 1.1em;
  border-radius: 2px;
  background: #1f1f1f;
  color: #fff;
  font-size: .88em;
  font-weight: 600;
  letter-spacing: .03em;
  text-decoration: none;
  text-transform: uppercase;
}
.won-button:hover,
.won-button:focus { background: #000; color: #fff; text-decoration: none; }
.won-link { font-weight: 600; }

/* ── Block 2: the calendar ── */
.won-cal-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .5em;
}
.won-cal-head .won-block-title { flex: 1 1 auto; }

.won-cal-nav {
  display: flex;
  align-items: baseline;
  gap: .7em;
  padding-bottom: .35em;
  font-size: .9em;
}
.won-cal-month { font-weight: 700; min-width: 8.5em; text-align: center; }
.won-cal-nav a { text-decoration: none; font-weight: 600; }
.won-cal-nav a:hover,
.won-cal-nav a:focus { text-decoration: underline; }
.won-cal-disabled { opacity: .3; }

.won-cal { width: 100%; border-collapse: collapse; table-layout: fixed; }
.won-cal th {
  padding: .35em .25em;
  border: 0;
  font-size: .72em;
  font-weight: 700;
  letter-spacing: .06em;
  text-align: left;
  text-transform: uppercase;
  opacity: .7;
}
.won-cal-cell {
  height: 5.6em;
  padding: .3em;
  border: 1px solid rgba(0, 0, 0, .09);
  vertical-align: top;
  overflow: hidden;
}
.won-cal-empty { background: rgba(0, 0, 0, .025); border-color: rgba(0, 0, 0, .05); }
.won-cal-past .won-cal-daynum { opacity: .45; }
.won-cal-past .won-chip { opacity: .55; }
.won-cal-today { box-shadow: inset 0 0 0 2px #1f1f1f; }
.won-cal-unknown { background: repeating-linear-gradient(45deg, rgba(0,0,0,.02) 0 6px, transparent 6px 12px); }

.won-cal-daynum { display: block; font-size: .78em; font-weight: 700; line-height: 1.4; }
.won-cal-todaytag {
  display: inline-block;
  margin-left: .3em;
  padding: 0 .35em;
  border-radius: 2px;
  background: #1f1f1f;
  color: #fff;
  font-size: .82em;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.won-cal-chips { display: flex; flex-direction: column; gap: 2px; margin-top: .2em; }

/* ── Chips. Truncate with an ellipsis; never wrap a cell to two lines. ── */
.won-chip {
  display: block;
  padding: .1em .35em;
  border-left: 3px solid currentColor;
  border-radius: 2px;
  font-size: .72em;
  line-height: 1.5;
  text-decoration: none;
}
.won-chip-label {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
a.won-chip:hover,
a.won-chip:focus { text-decoration: underline; }

.won-chip-won     { border-color: #1f4f8a; background: #e8f0fa; color: #14355e; }
.won-chip-foodie  { border-color: #8a5a00; background: #fdf0d5; color: #6b4600; }
.won-chip-weekly  { border-color: #4a6b4f; background: #eaf2eb; color: #2f4a34; }
.won-chip-cancelled .won-chip-label { text-decoration: line-through; }

.won-cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: .4em .8em;
  margin: .8em 0 0;
  font-size: .78em;
}
.won-key { padding-left: .5em; border-left: 3px solid currentColor; }
.won-key-won    { border-color: #1f4f8a; }
.won-key-foodie { border-color: #8a5a00; }
.won-key-weekly { border-color: #4a6b4f; }

/* ── Mobile agenda. Hidden on desktop; replaces the grid below 600px. ── */
.won-agenda { display: none; }

@media (max-width: 599px) {
  .won-cal { display: none; }

  .won-agenda {
    display: block;
    margin: .6em 0 0;
    padding: 0;
    list-style: none;
  }
  .won-agenda-row {
    display: flex;
    gap: .8em;
    padding: .55em 0;
    border-top: 1px solid rgba(0, 0, 0, .09);
  }
  .won-agenda-row:first-child { border-top: 0; }
  .won-agenda-date {
    flex: 0 0 4.6em;
    font-size: .82em;
    font-weight: 700;
    line-height: 1.7;
    text-transform: uppercase;
  }
  .won-agenda-chips { flex: 1 1 auto; display: flex; flex-direction: column; gap: 3px; }
  .won-agenda-chips .won-chip { font-size: .85em; padding: .2em .5em; }
  .won-agenda-today .won-agenda-date { text-decoration: underline; }
  .won-agenda-quiet { display: block; font-size: .9em; opacity: .8; }

  .won-cal-head { flex-direction: column; align-items: stretch; }
  .won-cal-nav { justify-content: space-between; }
}

/* ── Block 3: Every week at The Ferry ── */
.won-weekly-list { margin: 0; padding: 0; list-style: none; }
.won-weekly-item {
  display: flex;
  gap: 1em;
  padding: .9em 0;
  border-top: 1px solid rgba(0, 0, 0, .09);
}
.won-weekly-item:first-child { border-top: 0; padding-top: 0; }
.won-weekly-image {
  flex: 0 0 92px;
  width: 92px;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 2px;
}
.won-weekly-body { flex: 1 1 auto; }
.won-weekly-when {
  margin: 0 0 .1em;
  font-size: .78em;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  opacity: .75;
}
.won-weekly-title { margin: 0 0 .25em; font-size: 1.1em; line-height: 1.25; }
.won-weekly-summary { margin: 0; font-size: .92em; line-height: 1.45; }
.won-weekly-note { margin: .3em 0 0; font-size: .86em; font-style: italic; opacity: .85; }
.won-weekly-actions { margin: .5em 0 0; font-size: .88em; }

@media (max-width: 599px) {
  .won-weekly-image { flex-basis: 68px; width: 68px; }
}

/* ── Detail page ── */

/* ══════════════════════════════════════════════════════════════════════════
   DETAIL PAGE  /whatson/<slug>/   — rebuilt 15 Sep 2026

   Unlike the blocks above (which render inside Elementor sections that set
   their own type), this is a STANDALONE page, so it declares its own colour
   and sizing. The tokens are the site's OWN Elementor kit values, read from
   post-4.css — not invented:
       primary #2A686E · secondary #1A363A · accent #F3D1A3 · text #2F2F2F
       Gilda Display (display) · Roboto (body) · 1140px container
   If the kit ever changes, these need changing with it.

   Body links are teal here, NOT the kit's global #0020FF bold. On a long
   read that blue is jarring; this is a deliberate, scoped deviation.
   ══════════════════════════════════════════════════════════════════════════ */

.won-single-main {
  --won-primary: #2A686E;
  --won-dark: #1A363A;
  --won-accent: #F3D1A3;
  --won-text: #2F2F2F;
  --won-muted: #6B7A7C;
  --won-line: #E3EAEA;
  padding: 0 0 4rem;
  color: var(--won-text);
  font-family: "Roboto", system-ui, sans-serif;
}

/* ── Hero ── */
.won-hero {
  background: var(--won-dark);
  background-image: radial-gradient(circle at 78% -10%, rgba(243,209,163,.16), transparent 58%);
  color: #fff;
  padding: 2.4rem 1.2rem 4.6rem;
}
.won-hero-inner { max-width: 1140px; margin: 0 auto; }

.won-hero-back {
  display: inline-block;
  margin-bottom: 1.6rem;
  color: var(--won-accent) !important;
  font-size: .82rem;
  font-weight: 600 !important;
  letter-spacing: .09em;
  text-transform: uppercase;
  text-decoration: none;
}
.won-hero-back:hover { text-decoration: underline; }

.won-hero-date {
  margin: 0 0 .5rem;
  color: var(--won-accent);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.won-hero-title {
  margin: 0;
  color: #fff;
  font-family: "Gilda Display", Georgia, serif;
  font-size: clamp(2.1rem, 5.2vw, 3.6rem);
  font-weight: 400;
  line-height: 1.08;
}
.won-hero-time {
  display: inline-block;
  margin: 1rem 0 0;
  padding: .34rem .9rem;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 999px;
  font-size: .92rem;
  letter-spacing: .02em;
}

/* ── Shell ── */
.won-single { max-width: 1140px; margin: 0 auto; padding: 0 1.2rem; }

/* Poster lifts into the hero — the one bit of visual drama the page gets. */
.won-poster {
  margin: -3.2rem 0 2.6rem;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(26,54,58,.26);
  background: #fff;
}
.won-poster img { display: block; width: 100%; height: auto; }

/* ── Two columns ── */
.won-single-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 21rem;
  gap: 3rem;
  align-items: start;
}

.won-lede {
  margin: 0 0 1.4rem;
  color: var(--won-dark);
  font-family: "Roboto Slab", Georgia, serif;
  font-size: 1.22rem;
  line-height: 1.55;
}

/* Generous leading matters more here than anywhere: legacy descriptions are
   <br>-separated, so there is no paragraph spacing to do the work. */
.won-single-body { font-size: 1.05rem; line-height: 1.95; }
.won-single-body p { margin: 0 0 1.3rem; }
.won-single-body p:last-child { margin-bottom: 0; }
.won-single-body a {
  color: var(--won-primary) !important;
  font-weight: 500 !important;
  text-decoration: underline;
  text-underline-offset: .18em;
}
.won-single-body a:hover { color: var(--won-dark) !important; }
.won-single-body ul, .won-single-body ol { margin: 0 0 1.3rem 1.2rem; }
.won-single-body li { margin-bottom: .45rem; }
.won-single-body img { max-width: 100%; height: auto; border-radius: 8px; }

/* ── Details card ── */
.won-col-aside { position: sticky; top: 1.5rem; }
.won-info {
  border: 1px solid var(--won-line);
  border-top: 4px solid var(--won-primary);
  border-radius: 12px;
  padding: 1.5rem 1.4rem;
  background: #FBFDFD;
}
.won-info-title {
  margin: 0 0 1rem;
  color: var(--won-dark);
  font-family: "Gilda Display", Georgia, serif;
  font-size: 1.32rem;
  font-weight: 400;
}
.won-info-list { margin: 0; }
.won-info-list dt {
  color: var(--won-muted);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.won-info-list dd {
  margin: .18rem 0 1rem;
  font-size: .98rem;
  line-height: 1.5;
}
.won-info-list dd:last-of-type { margin-bottom: 0; }

/* ── The Real Ale Festival's food (v1.15.0, BEER-2-FIX-1 B24b) ──
   A row of the details card: one line per day, the "when" on its own line
   and never wrapped ("Friday 17:00–20:00" must not break at the dash), the
   trader under it. Words arrive from the portal; nothing here knows a day. */
.won-food { margin: 0; padding: 0; list-style: none; }
.won-food li { margin: 0 0 .45rem; }
.won-food li:last-child { margin-bottom: 0; }
.won-food-when { display: block; font-weight: 700; white-space: nowrap; }
.won-food-trader { display: block; }

/* ── Buttons ── */
.won-cta {
  display: inline-block;
  margin-top: 1.3rem;
  padding: .82rem 1.5rem;
  border: 2px solid var(--won-primary);
  border-radius: 999px;
  background: var(--won-primary);
  color: #fff !important;
  font-size: .95rem;
  font-weight: 600 !important;
  text-align: center;
  text-decoration: none;
}
.won-cta:hover { background: var(--won-dark); border-color: var(--won-dark); }
.won-cta-ghost { background: transparent; color: var(--won-primary) !important; }
.won-cta-ghost:hover { background: var(--won-primary); color: #fff !important; }

/* ── Downloads (phase 6, rebuilt phase 7) ──

   ⚠️ A BLOCK UNDER THE DESCRIPTION, NEVER A ROW IN THE STICKY CARD. Phase 6
   put up to three inside "The details" and spilled the rest; phase 7 makes the
   block the only placement, because a beer list is content people want to LOOK
   at rather than a footnote in a sidebar. It also permanently retires the
   sticky-overflow hazard: `.won-col-aside` is `position: sticky`, and a sticky
   element taller than the viewport stops sticking.

   ⚠️ THESE ARE `.won-dl-*`, NOT `.won-card-*`, AND THE PREFIX MATTERS. They use
   the `--won-*` tokens, which are declared on `.won-single-main` — this block
   only ever renders on the detail page, so that is safe. A `.won-card-*` class
   is NOT: `tft_won_card()` renders on the LISTING too, where those tokens do
   not exist, and a var() that resolves on one page and drops on the other is
   how a card ends up looking right everywhere it was tested (§29.6, §28.2). */
.won-downloads-block { margin-top: 2.8rem; }
.won-downloads-title {
  margin: 0 0 1.1rem;
  color: var(--won-dark);
  font-family: "Gilda Display", Georgia, serif;
  font-size: 1.7rem;
  font-weight: 400;
}

.won-dl-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}

.won-dl-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--won-line);
  border-radius: 12px;
  background: #fff;
  color: var(--won-dark) !important;
  text-decoration: none !important;
  font-weight: 400 !important;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.won-dl-card:hover,
.won-dl-card:focus {
  border-color: var(--won-primary);
  box-shadow: 0 6px 18px rgba(26, 54, 58, .12);
}

/* The preview. A fixed box with the image contained inside it, so a portrait
   A4 beer list and a landscape menu sit in the same grid without one of them
   being cropped to a strip. `contain` on a document is the whole point — the
   top of a page is not a better crop than the page. */
.won-dl-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  padding: .5rem;
  border-bottom: 1px solid var(--won-line);
  background: #F2F5F5;
}
.won-dl-thumb img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 2px 8px rgba(26, 54, 58, .14);
}

/* ⚠️ THE PLACEHOLDER IS CSS AND TEXT, AND MUST NOT BECOME AN ICON. The phase 6
   brief forbade adding an icon font for this and phase 7 says it still holds.
   A webfont that fails to load renders as a tofu box; the word "PDF" cannot. */
.won-dl-thumb-empty {
  color: var(--won-primary);
  font-family: "Roboto", system-ui, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: .14em;
  opacity: .55;
}

.won-dl-text { display: block; padding: .8rem .9rem .95rem; }
.won-dl-label {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.35;
}
/* The same muted, letterspaced treatment as a `dt`, because it is the same
   kind of information: a label for the thing above it. */
.won-dl-meta {
  display: block;
  margin-top: .25rem;
  color: var(--won-muted);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* ── The Real Ale Festival beer list (v1.14.0, BEER-3) ──

   The festival sheet's order — number block, beer, brewery, ABV, style,
   VE / GF only where yes, descriptor — in large, plain type for older
   customers reading on a phone at the bar. `.won-beer*`, detail page only,
   so the `--won-*` tokens are safe (same reasoning as `.won-dl-*`).

   ⚠️ NO STYLE MAP HERE. The style word and its colour arrive in the payload;
   the colour is a dot beside the word, so no text sits on an unknown
   background and nothing needs to know which styles exist. */
.won-beers { margin-top: 2.8rem; }
.won-beers-title {
  margin: 0 0 1rem;
  color: var(--won-dark);
  font-family: "Gilda Display", Georgia, serif;
  font-size: 1.7rem;
  font-weight: 400;
}
.won-beers-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: .8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.won-beer {
  display: flex;
  gap: .9rem;
  align-items: flex-start;
  margin: 0;
  padding: .9rem 1rem 1rem .9rem;
  border: 1px solid var(--won-line);
  border-radius: 12px;
  background: #fff;
}
.won-beer-num {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 10px;
  background: var(--won-primary);
  color: #fff;
  font-family: "Roboto Slab", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1;
}
.won-beer-main { min-width: 0; flex: 1 1 auto; }
.won-beers .won-beer-name {
  margin: .1rem 0 0;
  color: var(--won-dark);
  font-family: "Roboto", system-ui, sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.25;
  text-transform: none;
}
.won-beer-brewery {
  margin: .15rem 0 0;
  color: var(--won-muted);
  font-size: .95rem;
  font-weight: 500;
}
.won-beer-facts {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem .5rem;
  align-items: center;
  margin: .55rem 0 0;
}
.won-beer-abv { color: var(--won-dark); font-size: 1rem; font-weight: 700; }
.won-beer-style {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .15rem .55rem .15rem .45rem;
  border: 1px solid var(--won-line);
  border-radius: 999px;
  color: var(--won-dark);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.won-beer-dot { display: inline-block; width: .7rem; height: .7rem; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.won-beer-diet {
  display: inline-block;
  padding: .15rem .45rem;
  border-radius: 6px;
  color: #fff;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .05em;
}
.won-beer-ve { background: #2F7D2B; }
.won-beer-gf { background: #B35F00; }
.won-beer-desc {
  margin: .55rem 0 0;
  color: var(--won-text);
  font-size: 1.02rem;
  line-height: 1.55;
}
/* The pump clip (BEER-CLIP-1): a fixed small box at the card's right, the
   whole clip shown (contain — clips are round, tall or wide), never cropped.
   Absent when the beer has no clip, so nothing reserves its space. */
.won-beers .won-beer-clip {
  flex: none;
  display: block;
  width: 5rem;
  height: 5rem;
  max-width: none;
  margin: 0;
  object-fit: contain;
  border-radius: 8px;
}
@media (min-width: 900px) {
  .won-beers-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
}

/* ── Also coming up ── */
.won-more { margin-top: 3.6rem; padding-top: 2.4rem; border-top: 1px solid var(--won-line); }
.won-more-title {
  margin: 0 0 1.4rem;
  color: var(--won-dark);
  font-family: "Gilda Display", Georgia, serif;
  font-size: 1.7rem;
  font-weight: 400;
}
.won-more-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }

.won-single-foot { margin: 2.6rem 0 0; text-align: center; }

/* ── Mobile ── */
@media (max-width: 860px) {
  .won-single-cols { grid-template-columns: 1fr; gap: 2rem; }
  /* Details before the long read on a phone — someone checking "is it on
     tonight?" should not have to scroll past nine lines of copy first. */
  .won-col-aside { position: static; order: -1; }
  .won-more-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .won-hero { padding: 1.8rem 1.1rem 3.6rem; }
  .won-poster { margin: -2.4rem 0 2rem; border-radius: 10px; }
  .won-single-body { font-size: 1rem; line-height: 1.85; }
  /* TWO columns at 380px, not one. `auto-fill, minmax(210px, …)` would drop to
     a single column and give one beer list a card the height of the screen;
     two 150px cards still show a legible preview and keep the block scannable
     as a block. */
  .won-dl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
  .won-dl-text { padding: .6rem .65rem .7rem; }
  .won-dl-label { font-size: .92rem; }
  .won-downloads-title { font-size: 1.45rem; }
  .won-beers-title { font-size: 1.45rem; }
  .won-beer { gap: .75rem; padding: .8rem .85rem .9rem .75rem; }
  .won-beer-num { width: 2.6rem; height: 2.6rem; font-size: 1.25rem; }
  .won-beers .won-beer-clip { width: 4.25rem; height: 4.25rem; }
}

/* ══════════════════════════════════════════════════════════════════════════
   THE PROMOTED BANNER  [whats_on_banner]  — phase 8, 17 Sep 2026

   ⚠️ NOT A CARD, AND SHARES NOTHING WITH ONE. Phase 9 put a band on every
   card (`.won-card-brand`: #1A363A, full-width strip, uppercase). A banner
   reusing that would read as a card stretched sideways, and would make the
   same strip mean two different things on one page. Own classes, own scale,
   own ground.

   Like the detail page (and unlike the three blocks above), this can be
   dropped into any Elementor section, so it declares its own colour and type
   rather than inheriting whatever the section sets. Tokens are the site's OWN
   kit values, read from post-4.css — not invented:
       primary #2A686E · secondary #1A363A · accent #F3D1A3 · text #2F2F2F
       Gilda Display (display) · Roboto (body)

   The picture sits UNDER a scrim, because copy has to stay legible over a
   photograph nobody has vetted for contrast.
   ══════════════════════════════════════════════════════════════════════════ */

.won-banner {
  --won-primary: #2A686E;
  --won-dark: #1A363A;
  --won-accent: #F3D1A3;
  font-family: "Roboto", system-ui, sans-serif;
}

/* ⚠️ THE ROW IS NOT DEFINED HERE ANY MORE. `.won-banner-static` also carries
   `.tft-panel-row` from the shared mu-plugin stylesheet, which owns the gap,
   the wrapping and the width panels stack at. This block used to be a grid
   with its own 760px breakpoint, and Foodie Friday had 640px and the games
   panel 900px — three panels on one homepage stacking at three widths. The
   `won-banner-of-N` classes stay as the hook the layout below keys off. */

/* ⚠️ EQUAL HEIGHTS ACROSS A ROW. Two panels whose titles wrap differently
   ended up different heights, which is the defect phase 9 spent a whole phase
   removing from the cards (§32.3). The slide stretches, the panel fills it,
   and `.tft-panel-body` absorbs the difference so the two buttons land on one
   baseline. */
.won-banner-slide { display: flex; min-width: 0; }

/* ── The panel ─────────────────────────────────────────────────────────────
   Radius, clipping, full height and the flex column all come from
   `.tft-panel`. What is left here is the module's own: its ground, its type
   and how tall it wants to be.

   ⚠️ IT IS TALLER THAN IT WAS. The banner was 224px on the live homepage
   against 289px and 368px for the two panels below it — the most important
   thing on the page was also the smallest. */
.won-banner-item {
  min-height: 20rem;
  background: var(--won-dark);
  color: #fff !important;
  text-decoration: none !important;
}
/* ⚠️ THE GLOW IS FOR THE PANEL WITH NO POSTER, AND ONLY THAT ONE. It exists
   so a panel with no artwork is not a flat dark rectangle — and where there
   IS artwork it was doing two kinds of harm. It is centred at 88% across, so
   it sat entirely underneath the picture and was never seen; and it lifted
   the ground just left of the picture, so the blend along that edge — which
   starts from `--won-dark` — met a ground that was no longer `--won-dark`
   and left a visible step exactly where the seam was being removed.
   Same `:has()` test as the type sizing below, so there is one signal for
   "this panel has a picture" and not two to keep in step. */
.won-banner-item:not(:has(.won-banner-media)) {
  background-image: radial-gradient(circle at 88% -20%, rgba(243, 209, 163, .18), transparent 62%);
}
.won-banner-item:hover .won-banner-cta { background: #fff; }
.won-banner-item:focus-visible { outline: 3px solid var(--won-accent); outline-offset: 2px; }

/* ── The accent strip ──────────────────────────────────────────────────────
   ⚠️ THIS IS THE FEATURE. "It doesn't call out that an event is coming up"
   was the whole brief, and a strip across the top says it before the eye
   reaches any words. It is present on every panel, with a picture or without
   one — it is not decoration hung off the artwork.

   Cream ground, dark type: the kit's accent used as a ground rather than as
   small text on a dark panel, which is what made the old banner read as a
   dark rectangle. */
.won-banner-strip {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: .75rem;
  /* ⚠️ THE SHARED PADDING, READ RATHER THAN RETYPED. The strip is full bleed
     but its words have to line up with the copy underneath them, so it takes
     the inset from the shared box instead of naming 28px a second time. */
  padding: .6rem var(--tft-panel-pad-x, 1.5rem);
  background: var(--won-accent);
  color: var(--won-dark);
}
.won-banner-spotlight {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  line-height: 1.4;
  text-transform: uppercase;
}

/* ── Copy beside poster ────────────────────────────────────────────────────
   One promoted event gets the whole width, and that is the case this split
   is for. Two, three or a carousel-worth are each far too narrow to divide
   again, so they stack — see the `won-banner-of-N` rules below. */
.won-banner-main {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
}

/* ⚠️ CENTRED DOWN THE COLUMN, and that is a decision about this panel rather
   than about panels. The shared box says the contents sit together and the
   slack falls at the bottom as padding — right for two panels standing side
   by side, wrong here, because the poster beside this copy is full height and
   top-aligned copy left the whole difference pooled in the bottom-left corner
   against it. Centred, the copy reads against the middle of the artwork and
   the slack is split. Compared in the harness at 1280px before it was kept. */
.won-banner-body {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

/* ── The poster ────────────────────────────────────────────────────────────
   ⚠️ A POSTER, NOT A WATERMARK. It used to be the panel's background at
   `opacity: .5` under a gradient scrim, so a strong piece of artwork read as
   texture and the panel read as a dark rectangle with small text on it.
   Nothing is printed over it now and nothing is faded.

   ⚠️ THE ASPECT RATIO IS ON THE BOX, NOT ON THE `<img>`, for the same reason
   as the cards (§31.1): a theme or Elementor `img` rule can beat an `img`
   rule of ours and cannot beat a box it does not know about. */
.won-banner-media {
  position: relative;
  display: block;
  flex: 0 0 42%;
  align-self: stretch;
  min-width: 0;
  overflow: hidden;
}

/* ── Where the poster meets the panel ──────────────────────────────────────
   ⚠️ THIS IS THE SEAM, AND IT IS NOT A GAP. With the picture filling its
   block the block's ground is its own — and the artwork's ground is a lighter
   teal than `--won-dark`, so two teals still met along a hard vertical line
   and the poster went on reading as a rectangle pasted onto the panel (Leigh,
   18 Sep). Nothing about padding or fit was ever going to fix that; the edge
   itself is the fault.

   So the panel's own ground is laid back over the leading edge of the picture
   and falls away, and the join stops being a line. `transparent` as the far
   stop is safe: gradients interpolate premultiplied, so it fades to nothing
   rather than through grey.

   ⚠️ SIDE BY SIDE ONLY. Stacked — two or three promoted dates, a carousel,
   or any panel on a phone — the picture already runs the full width of the
   panel and meets the copy along a horizontal band edge, which reads as a
   band and not as a pasted rectangle. A fade was tried there too and the
   render settled it: it took the bottom third of the artwork with it, and on
   this poster that is the pub's name. Nothing to fix, so nothing applied. */
.won-banner-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to right, var(--won-dark), transparent 34%);
}
/* ⚠️ ABSOLUTE, AND FOR A MEASURED REASON. `height: 100%` on this class is
   (0,1,0) and Elementor ships `.elementor img { height: auto }` at (0,1,1), so
   ours loses and the poster rendered at its natural 16:9 — 265px inside a
   285px box. The 20px of panel ground left underneath is what read as "the
   poster doesn't reach the bottom" and, because it falls inside the item's
   `radial-gradient` corner, as a second teal at a seam (Leigh, 18 Sep).

   ⚠️ AND `position: absolute; inset: 0` DOES NOT RESCUE IT — that was tried
   and measured at 265px still. The rule that fills an absolutely positioned
   box with `top` and `bottom` both set is for NON-replaced elements; an
   `<img>` is replaced, so `height: auto` resolves to its intrinsic height and
   the over-constrained `bottom` is simply dropped.

   So `height` has to win outright, and the one honest way to do that here is
   to name the parent: (0,2,0) beats (0,1,1) without an `!important` this site
   has no need of. The absolute positioning stays because it is right on its
   own terms — the picture is then out of flow, so the box's height comes only
   from the panel (stretched by the row here, `aspect-ratio` when the panel
   stacks) and never from what is inside it. */
.won-banner-media > .won-banner-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* The kicker says WHAT KIND of night this is — the same two-kinds-of-content
   rule as the card band, and deliberately not the same look: accent type on
   the panel's own ground, never a dark strip.
   ⚠️ IT STAYS ON THE DARK GROUND. The branded branch renders the Foodie
   Fridays mark, which is a white wordmark; on the cream strip above it would
   be invisible. */
.won-banner-kicker {
  display: block;
  margin: 0 0 .55rem;
  color: var(--won-accent);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.won-banner-kicker-mark img { display: block; width: auto; height: 24px; }

.won-banner-date {
  display: block;
  margin: 0 0 .3rem;
  color: #fff;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .92;
}
.won-banner-title {
  display: block;
  color: #fff;
  font-family: "Gilda Display", Georgia, serif;
  font-size: clamp(1.7rem, 3.4vw, 2.8rem);
  font-weight: 400;
  line-height: 1.1;
}
.won-banner-summary {
  display: block;
  margin: .5rem 0 0;
  max-width: 46ch;
  color: rgba(255, 255, 255, .88);
  font-size: .95rem;
  line-height: 1.45;
  /* One line of summary, as the brief asks — truncated rather than allowed to
     push the panel out of shape on a phone. */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* ⚠️ SOLID, NOT AN OUTLINE. It is the only thing on the panel meant to be
   clicked, and an outlined pill on a dark ground was the quietest element in
   the design. Shape, padding and the 44px hit area come from
   `.tft-panel-cta`; this is the colour and the letterforms, which are the
   module's. */
.won-banner-cta {
  margin: 1.4rem 0 0;
  background: var(--won-accent);
  color: var(--won-dark);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: background .18s ease;
}

/* ⚠️ NO POSTER IS NOT A DEGRADED PANEL. With nothing beside it the title IS
   the artwork, so it is allowed to be bigger and the summary to run wider —
   otherwise a full-width panel is small type against a large void. `:has()`
   rather than a class set in PHP: the markup already says whether there is a
   picture, and a second signal is a second thing to keep in step. A browser
   without `:has()` simply gets the standard size. */
.won-banner-item:not(:has(.won-banner-media)) .won-banner-title {
  font-size: clamp(2rem, 5vw, 3.4rem);
}
.won-banner-item:not(:has(.won-banner-media)) .won-banner-summary {
  max-width: 62ch;
  font-size: 1.05rem;
}

/* ── More than one promoted date ───────────────────────────────────────────
   Two or three panels in a row — and every panel in a carousel — are already
   narrow, so the copy-beside-poster split becomes two cramped columns. They
   stack instead, picture first: strip, artwork, then the words. */
.won-banner-of-2 .won-banner-main,
.won-banner-of-3 .won-banner-main,
.won-banner-carousel .won-banner-main {
  flex-direction: column;
}
.won-banner-of-2 .won-banner-media,
.won-banner-of-3 .won-banner-media,
.won-banner-carousel .won-banner-media {
  flex: 0 0 auto;
  order: -1;
  width: 100%;
  aspect-ratio: 16 / 9;
}
.won-banner-of-2 .won-banner-media::after,
.won-banner-of-3 .won-banner-media::after,
.won-banner-carousel .won-banner-media::after {
  background: none;
}

/* ── 4+ : the overflow case ────────────────────────────────────────────────
   CSS scroll-snap, so swipe, trackpad, scrollbar and keyboard all work with
   no JavaScript at all. The script adds the dots and autoplay and nothing
   else — if it never loads, this is still a usable carousel. */
.won-banner-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 90%;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: .25rem;
}
/* The shared stacking width, and the only breakpoint this file now uses. */
@media (min-width: 780px) {
  .won-banner-track { grid-auto-columns: 48%; }
}
.won-banner-track > .won-banner-slide { scroll-snap-align: start; }
.won-banner-track:focus-visible { outline: 3px solid var(--won-accent); outline-offset: 3px; }

.won-banner-dots {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin: .75rem 0 0;
}
/* Real buttons with real labels. The label is visually hidden, never absent —
   "slide 3 of 6" is not what a promoted event is called. */
.won-banner-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 1px solid var(--won-primary);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}
.won-banner-dot.is-current { background: var(--won-primary); }
.won-banner-dot-label {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ⚠️ MOTION IS OPT-IN AND THE READER'S PREFERENCE WINS. The script refuses to
   autoplay under this query; this is the second half of the same promise, for
   the scrolling the browser does itself. */
@media (prefers-reduced-motion: reduce) {
  .won-banner-track { scroll-behavior: auto; }
  .won-banner-cta { transition: none; }
}

/* ⚠️ ONE BREAKPOINT, AND IT IS THE SHARED ONE. Padding is not repeated here —
   `.tft-panel-body` already narrows it below 780px, in the one file that says
   what "below 780px" means. */
@media (max-width: 779px) {
  .won-banner-item { min-height: 0; }
  /* The full-width single panel stacks too: 360px is not two columns. */
  .won-banner-main { flex-direction: column; }
  .won-banner-media {
    flex: 0 0 auto;
    order: -1;
    width: 100%;
    aspect-ratio: 16 / 9;
  }
  .won-banner-media::after {
    background: none;
  }
}
