/* venue-feature — the lead venue, per the copy doc: "full-width feature, large
   image, copy over or beside it".

   Beside it, not over it. Copy over a photograph is what produced Pastel #131,
   #132, #135, #137, #139 and #143 on this site, and a venue module carries a
   name, a line, a paragraph, a pick and a button, which is far more than a
   scrim can reliably hold up. The photo gets half the page and the copy sits
   beside it on the ground colour.

   The section's own inner is unwrapped rather than bled with viewport units:
   .sec__inner is already the full page width here once its max-width and
   padding come off, so there is nothing to measure against the window and no
   scrollbar rounding to go wrong. */
.venue .venue__inner {
  max-width: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
}
.venue--photo-right .venue__photo,
.venue--photo-right .venue__stage { order: 2; }

/* No aspect ratio and no radius: it is a full-height panel flush to the page
   edge, so its height comes from the copy beside it with a floor of its own for
   when the copy is short. */
.venue__photo {
  display: block;
  min-height: clamp(400px, 40vw, 620px);
  background: var(--gray-100) center / cover no-repeat;
}

/* ---- slider ---------------------------------------------------------- */
/* One slide per view, which is what keeps the script small: slide i is always
   at i * clientWidth. The track scrolls and snaps on its own, so with no JS it
   is still a swipeable strip rather than a dead stack. */
.venue__stage { position: relative; display: flex; flex-direction: column; min-width: 0; }
.venue__media { position: relative; overflow: hidden; flex: 1; }
.venue__track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.venue__track::-webkit-scrollbar { display: none; }
.venue__track:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }
.venue__slide {
  position: relative;
  flex: 0 0 100%;
  scroll-snap-align: start;
}
.venue__slide .venue__photo { height: 100%; }

/* The caption sits on the photo, so it gets a gradient of its own rather than
   relying on the picture being dark where the words land. */
.venue__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 56px 24px 20px;
  font-size: var(--fs-body-sm);
  line-height: 1.4;
  color: var(--color-white);
  background: linear-gradient(#0000, #000000b8);
}

/* ---- chrome ---------------------------------------------------------- */
/* Bleed lays the controls over the photo, because the photo runs to the page
   edge and there is no margin under it to put them in. Panel sits them below,
   which is where the design has them. */
.venue__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  /* Deliberately NOT flex-wrap: wrap. It was added as a backstop against the
     row overflowing and made things worse: wrapping is preferred over
     shrinking, so at 375px the counter and arrows dropped onto a second line
     the moment the segments' max-content exceeded the row, even though they
     had plenty of shrink left. The 8px floor on the segments covers every
     gallery on the site (ten at most) with headroom to about fourteen on a
     phone, and keeps the controls on one line. */
}
.venue--bleed .venue__controls {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 20px;
  pointer-events: none;
}
.venue--bleed .venue__progress,
.venue--bleed .venue__nav { pointer-events: auto; }
.venue--panel .venue__controls { margin-top: 20px; }

/* Segments rather than dots: with four slides a row of bars reads as progress
   through a set, which is what the counter beside it is also saying.

   They SHRINK, which the fixed 36px they started as did not. Four slides is
   what this was drawn for; the Bullpen has ten, and ten segments at 36px with
   nine 8px gaps is 432px of progress bar in a 335px column. The row pushed
   the counter and the arrows out of the stage, the stage overflowed the
   section, and the whole document became side-scrollable on a phone: 517px
   of scroll width in a 375px viewport. Nothing clipped it because a scroller
   clips its own track, not its siblings.

   Capped at the original 36px so a four-slide panel is unchanged, with a
   floor so a long set stays visible rather than collapsing to hairlines. */
/* The segments GROW from a small basis up to the old 36px, rather than
   starting at 36px and shrinking. Shrinking looked equivalent and was not:
   with a shrinkable child the row resolved its auto basis to min-content, so
   the segments sat at their 8px floor even at 1440 where 583px was going
   spare. Growing from 8px to a 36px cap gives the original look wherever
   there is room and degrades on its own where there is not. */
.venue__progress { display: flex; gap: 8px; flex: 1 1 auto; min-width: 0; }
.venue__seg {
  flex: 1 1 8px;
  min-width: 8px;
  max-width: 36px;
  height: 3px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: var(--gray-300);
  cursor: pointer;
  transition: background var(--transition-fast);
}
/* The counter and arrows keep their size; the segments give way instead. */
.venue__nav { flex: 0 0 auto; }
.venue__seg[aria-selected="true"] { background: var(--color-navy); }
.venue--bleed .venue__seg { background: #ffffff59; }
.venue--bleed .venue__seg[aria-selected="true"] { background: var(--color-white); }

.venue__nav { display: flex; align-items: center; gap: 12px; }
.venue__counter { color: var(--text-subtle); font-variant-numeric: tabular-nums; }
.venue__arrow {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--gray-300);
  color: var(--color-navy);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast), opacity var(--transition-fast);
}
.venue__arrow:hover:not(:disabled) { background: var(--color-navy); color: var(--color-white); }
.venue__arrow:disabled { opacity: .35; cursor: default; }
.venue--bleed .venue__arrow {
  background: #00000066;
  box-shadow: none;
  color: var(--color-white);
}
.venue--bleed .venue__arrow:hover:not(:disabled) { background: #000000a6; }

/* The caption sits at the bottom of the photo. In bleed the controls are down
   there too, so it gets out of their way. */
.venue--bleed .venue__media:has(+ .venue__controls:not([hidden])) .venue__caption { padding-bottom: 72px; }

/* ---- contained panel ------------------------------------------------- */
/* The venue's own page: copy on the left at a reading measure, the photo in a
   rounded panel beside it. The section's inner gets its normal page gutters
   back, which the bleed layout above takes away. */
.venue--panel .venue__inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: var(--space-section-y) var(--margin);
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 56px;
  align-items: center;
}
.venue--panel .venue__body { padding: 0; justify-content: flex-start; }
.venue--panel .venue__media { border-radius: var(--radius-card); }
.venue--panel .venue__photo { min-height: clamp(380px, 36vw, 560px); }
/* The caption is set in the display face here, over a gradient of its own,
   with a rule under it. Same reasoning as everywhere else on this site: white
   type on an unknown photograph needs something behind it. */
.venue--panel .venue__caption {
  font-family: var(--font-display-condensed);
  font-weight: var(--weight-poster-heavy);
  font-size: var(--fs-h3);
  line-height: 1.1;
  text-transform: uppercase;
  padding: 72px 28px 24px;
}
.venue--panel .venue__caption::after {
  content: "";
  display: block;
  margin-top: 18px;
  height: 1px;
  background: #ffffff4d;
}

/* The back link above the name, as on the hero it replaces. */
.venue__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
  color: var(--color-navy);
  transition: color var(--transition-fast);
}
.venue__back:hover { color: var(--accent-deep); }
.tone--navy .venue__back { color: var(--color-white); }

/* The pick on a venue page is three lines, not two: the label, the dish, and
   what is in it. It takes the full column width here, but NOT a different
   skin: stripping it back to hairline rules is what made the same object look
   like three different things across the site (Pastel #158, #173). */
.venue--panel .venue__pick {
  width: 100%;
}
/* The dish is the one thing in the pick anybody repeats out loud, so it is a
   step above the copy around it rather than the 18px --fs-h3. */
.venue__pick-name {
  font-family: var(--font-display);
  font-weight: var(--weight-poster-heavy);
  font-size: clamp(20px, 1.6vw, 26px);
  line-height: 1.15;
  color: var(--color-white);
}

.venue__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(40px, 4vw, 72px) var(--margin);
}
/* The copy column is half the page, which on a wide display is far past a
   comfortable measure, so the running text is capped inside it. Scoped to the
   prose: capping the name as well held a display-sized title to a body measure
   and was part of why it came out small. */
.venue__copy,
.venue__headline { max-width: 46ch; }

/* The venue name is the title of its page, so it is set on the poster scale
   rather than the heading scale. --fs-h1 is 26px here, a step for a heading
   inside content; the hero is 40 and a section headline clamps to 56, and this
   sits above both of those jobs. */
.venue__name {
  margin: 0;
  font-family: var(--font-display-condensed);
  font-weight: var(--weight-poster-heavy);
  font-size: clamp(42px, 4.6vw, 76px);
  line-height: .98;
  letter-spacing: -.005em;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--color-navy);
}
.venue__headline {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: var(--fs-h3);
  line-height: 1.25;
  color: var(--color-navy);
  text-wrap: balance;
}
.venue__copy { margin: 16px 0 0; color: var(--text-muted); }

/* The facts strip: one pair per row, between the favourite and the button.

   Exactly one rule sits at each boundary. The strip owns a top and a bottom
   rule; where the favourite sits directly above it the favourite already drew
   that line, so the strip drops its own rather than the two stacking into a
   heavier double. Rows divide with a top rule on every row but the first, so
   no row draws a line its neighbour has already drawn. */
.venue__facts {
  margin: 0;
  width: 100%;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
/* The pick no longer ends in a hairline, so the facts strip keeps its own
   top rule. Suppressing it here is what would leave a gap, not a double. */
.venue--bleed .venue__facts { margin-top: 26px; }

.venue__fact { padding: 14px 0; }
.venue__fact + .venue__fact { border-top: 1px solid var(--rule); }

.venue__fact-label { margin: 0 0 4px; padding: 0; border: 0; color: var(--text-subtle); }
.venue__fact-value {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: var(--fs-body-sm);
  line-height: 1.45;
  color: var(--color-navy);
  /* A phone number and an email in one value have no spaces to wrap at. */
  overflow-wrap: anywhere;
}

/* The doc calls this Secondary Copy and gives every venue one. It is a
   recommendation rather than a fact, so it is set apart from the paragraph
   above it rather than reading as more of it. */
/* Solid navy with an accent rule down the edge, matching .region-card__fav
   exactly so the favourite on a card and the favourite on a venue page are
   recognisably the same thing. The tint it replaces was 3% navy on a cream
   ground, a difference of about four levels, which reads as nothing: "it
   blends in right now" on the board, twice. */
.venue__pick {
  margin: 26px 0 0;
  padding: 16px 18px;
  border-left: 3px solid var(--accent);
  background: var(--color-navy);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.venue__pick-label { color: var(--color-white); }
.venue__pick-value { font-size: var(--fs-body-sm); line-height: 1.5; color: var(--color-white); }

.venue__cta { margin-top: 28px; }

.tone--navy .venue__name,
.tone--navy .venue__headline,
.tone--navy .venue__fact-value,
.tone--navy .venue__pick-value { color: var(--color-white); }
.tone--navy .venue__pick { background: #ffffff14; }
/* NOT --accent-decor: this property resolves it to navy, which on the navy
   tone's translucent panel is navy on navy. */
.tone--navy .venue__pick-label { color: var(--color-white); }

/* One column below the split. The photo leads whichever side it was given, so
   a right-hand photo does not end up under the copy on a phone. */
@media (max-width: 599px) {
  /* Last of the width to give back before the segments hit their floor. */
  .venue__progress { gap: 5px; }
  .venue__controls { gap: 14px; }
}

@media (max-width: 900px) {
  .venue .venue__inner { grid-template-columns: 1fr; }
  .venue--photo-right .venue__photo,
  .venue--photo-right .venue__stage { order: 0; }
  .venue__photo { min-height: 300px; }
  .venue--bleed .venue__controls { left: 16px; right: 16px; bottom: 14px; }
  .venue--panel .venue__inner { grid-template-columns: 1fr; gap: 28px; padding: var(--space-section-y) var(--margin); }
  .venue__name { font-size: clamp(38px, 11vw, 60px); }
  .venue__seg { width: 28px; }
  .venue__body { padding: 32px var(--margin) 40px; }
  .venue__body > * { max-width: none; }
}
