/* Venue Support (venuesupport.co.uk) — site styles.
   The first half is the design system of proeventsolutions.co.uk, kept in step with it by hand.
   Pro Event Solutions — site styles
   Venue Support: black #0A0A0A and yellow #FCDB35 (the main PES site is charcoal #383838). Montserrat for everything (Will, 10-11-2026: client-facing text is Montserrat).
   Signature: photography dissolves into the surface through the brand's halftone dot grid. */

/* ---------- Fonts (self-hosted variable fonts) ---------- */
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat-VF.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --pes-charcoal: #0a0a0a;  /* Venue Support is black and yellow, as the old site was (Will, 15-11-2026); the main PES site is #383838 */
  --vs-panel: #1a1a1a;      /* bands and cards on the black page */
  --vs-panel-2: #252525;    /* cards that sit on a band */
  --pes-yellow: #fcdb35;
  --pes-white: #ffffff;
  --pes-cream: #fef4c2;
  --pes-grey-700: #747474;
  --pes-grey-500: #9b9b9b;
  --pes-grey-300: #cdcdcd;
  --pes-yellow-300: #fde468;
  --pes-yellow-100: #fef6cd;
  --pes-grey-50: #1a1a1a;   /* lightest charcoal tint: the light band (replaces cream, Chris 10-11-2026) */

  --font-display: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Montserrat", "Helvetica Neue", Arial, sans-serif;

  --text: var(--pes-white);
  --text-muted: #b4b4b4;
  --bg: var(--pes-charcoal);
  --rule: #3a3a3a;
  --focus: var(--pes-yellow);

  --container: 1200px;
  --gutter: clamp(2rem, 5vw, 3rem);
  --section: clamp(4rem, 9vw, 7.5rem);
  --radius: 4px;
  --pill: 999px;
  --dot: 16px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
img, svg, video { max-width: 100%; display: block; }
picture { display: contents; } /* the <img> inside keeps its layout role; <picture> only chooses the format */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5.6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); letter-spacing: -0.01em; }
h4 { font-size: 1.05rem; letter-spacing: 0; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.2em; }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 0.18em; }
a:hover { text-decoration-color: var(--pes-yellow); }
strong { font-weight: 600; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--pes-yellow); color: var(--pes-charcoal); }

/* ---------- Utilities ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 840px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.skip-link {
  position: absolute; left: var(--gutter); top: -100%;
  background: var(--pes-yellow); color: var(--pes-charcoal);
  font: 700 0.85rem var(--font-display); padding: 0.75rem 1rem; border-radius: 0 0 var(--radius) var(--radius);
  z-index: 200; text-decoration: none;
}
.skip-link:focus { top: 0; outline-offset: 0; }
.lede { font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.5; color: var(--text-muted); max-width: 42ch; }
.measure { max-width: 62ch; }
.stack > * + * { margin-top: var(--stack, 1rem); }
.muted { color: var(--text-muted); }
.center { text-align: center; }
.mt-1 { margin-top: 1rem !important; } .mt-2 { margin-top: 1.75rem !important; } .mt-3 { margin-top: 2.5rem !important; }
.mb-0 { margin-bottom: 0 !important; }
.nowrap { white-space: nowrap; }
.h3-lg { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.label { font: 700 0.8rem var(--font-display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }

/* Eyebrow: uppercase label preceded by a single brand dot */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6em;
  font: 700 0.8rem/1 var(--font-display); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-muted); margin: 0 0 1.25rem;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--pes-yellow); flex: none; }
.eyebrow--tight { margin-bottom: 0.5rem; }

/* ---------- Surfaces ---------- */
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: calc(var(--section) * 0.6); }
.surface-dark {
  --text: var(--pes-white); --text-muted: var(--pes-grey-300); --rule: var(--pes-grey-700); --focus: var(--pes-yellow);
  background: var(--pes-charcoal); color: var(--text);
}
/* Light bands are a pale charcoal tint, not cream (Chris, 10-11-2026). Both class names stay so
   templates need no change. A faint charcoal dot field fades in from one corner: the brand
   supergraphic, kept to the edge so it never sits behind copy. */
.surface-cream, .surface-grey { background: var(--vs-panel); overflow: hidden; }
.surface-cream::before, .surface-grey::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(252, 219, 53, 0.16) 0 34%, transparent 36%);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(60% 100% at 100% 0%, #000 0%, transparent 70%);
          mask-image: radial-gradient(60% 100% at 100% 0%, #000 0%, transparent 70%);
}
.surface-grey::before {
  -webkit-mask-image: radial-gradient(60% 100% at 0% 100%, #000 0%, transparent 70%);
          mask-image: radial-gradient(60% 100% at 0% 100%, #000 0%, transparent 70%);
}
.surface-cream > *, .surface-grey > * { position: relative; }
.surface-yellow {
  --text: var(--pes-charcoal); --text-muted: var(--pes-charcoal); --focus: var(--pes-charcoal);
  background: var(--pes-yellow); color: var(--text);
}
.surface-dark .eyebrow { color: var(--pes-yellow); }
.surface-dark .lede { color: var(--pes-grey-300); }

/* Supergraphic: halftone dot field, fading to nothing. Texture only, never behind body copy. */
/* position: relative keeps the dot layer inside the element; without it the footer's dots paint over the first screen of every page */
.has-dots { position: relative; overflow: hidden; }
.has-dots::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.10) 0 34%, transparent 36%);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(70% 90% at 100% 0%, #000 0%, transparent 70%);
          mask-image: radial-gradient(70% 90% at 100% 0%, #000 0%, transparent 70%);
}
.has-dots--bottom::before {
  -webkit-mask-image: radial-gradient(60% 80% at 100% 100%, #000 0%, transparent 70%);
          mask-image: radial-gradient(60% 80% at 100% 100%, #000 0%, transparent 70%);
}
.has-dots > * { position: relative; }

/* On the grey light bands the brand yellow reads well, so dots, rules and steps stay yellow
   (on the old cream they had to switch to charcoal). Decorative shapes only: text stays charcoal. */
.surface-cream .card__body, .surface-grey .card__body { border-top: 4px solid var(--pes-yellow); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  font: 700 0.85rem/1.25 var(--font-display); letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.9em 1.7em; border-radius: var(--pill); border: 2px solid transparent;
  text-decoration: none; cursor: pointer; white-space: normal; text-align: center;
  transition: transform 0.2s var(--ease), background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--pes-yellow); color: var(--pes-charcoal); border-color: var(--pes-yellow); }
.btn--primary:hover { background: var(--pes-yellow-300); border-color: var(--pes-yellow-300); }
.btn--ghost { background: transparent; color: currentColor; border-color: currentColor; }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.08); }
.surface-yellow .btn--ghost:hover, .on-light .btn--ghost:hover { background: rgba(10, 10, 10, 0.08); }
/* Black only shows on the yellow band; anywhere else on this black site the button is yellow. */
.btn--dark { background: var(--pes-yellow); color: var(--pes-charcoal); border-color: var(--pes-yellow); }
.btn--dark:hover { background: var(--pes-yellow-300); border-color: var(--pes-yellow-300); }
.surface-yellow .btn--dark { background: var(--pes-charcoal); color: var(--pes-white); border-color: var(--pes-charcoal); }
.surface-yellow .btn--dark:hover { background: var(--pes-charcoal); border-color: var(--pes-white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: center; }
@media (max-width: 400px) { .page-hero .btn-row .btn { flex: 1 1 100%; } }

/* Text link with a sliding yellow underline */
.link-more {
  display: inline-block; font: 700 0.85rem/1.2 var(--font-display); letter-spacing: 0.04em; text-transform: uppercase;
  text-decoration: none; padding-block: 0.35em; position: relative; color: inherit;
}
.link-more::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%;
  background: var(--pes-yellow); transform: scaleX(0.35); transform-origin: left; transition: transform 0.3s var(--ease);
}
.link-more:hover::after, .link-more:focus-visible::after, .card:hover .link-more::after { transform: scaleX(1); }

/* ---------- Header ---------- */
/* Class names are the ones static/js/main.js toggles (.pes-nav-toggle, .pes-nav-menu.active). */
.pes-nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--pes-charcoal); color: var(--pes-white);
  --focus: var(--pes-yellow);
}
.pes-nav-container { width: 100%; max-width: 1400px; margin-inline: auto; padding-inline: var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 84px; }
.pes-logo { display: inline-flex; align-items: center; flex: none; padding: 0.75rem 0; }
.pes-logo img { height: 30px; width: auto; }
.pes-nav-toggle {
  display: none; background: none; border: 2px solid var(--pes-grey-500); color: var(--pes-white);
  border-radius: var(--pill); padding: 0.55rem 0.9rem; min-height: 48px; font: 700 0.75rem var(--font-display);
  letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; gap: 0.5em; align-items: center;
}
.pes-nav-toggle .bars { display: inline-flex; flex-direction: column; gap: 4px; width: 16px; }
.pes-nav-toggle .bars span { display: block; height: 2px; background: currentColor; transition: transform 0.25s var(--ease), opacity 0.2s; }
.pes-nav-menu { list-style: none; display: flex; align-items: center; gap: 1.75rem; margin: 0; padding: 0; }
.pes-nav-menu a:not(.btn) {
  font: 600 0.9rem var(--font-display); text-decoration: none; color: var(--pes-grey-300);
  padding: 0.5rem 0; position: relative; display: inline-block; white-space: nowrap;
}
.pes-nav-menu a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--pes-yellow); transform: scaleX(0); transform-origin: left; transition: transform 0.25s var(--ease);
}
.pes-nav-menu a:not(.btn):hover, .pes-nav-menu a[aria-current="page"] { color: var(--pes-white); }
.pes-nav-menu a:not(.btn):hover::after, .pes-nav-menu a[aria-current="page"]::after { transform: scaleX(1); }
@media (max-width: 760px) {
  .pes-nav-toggle { display: inline-flex; }
  .pes-nav-container { position: relative; }
  .pes-nav-menu {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--pes-charcoal); flex-direction: column; align-items: stretch; gap: 0;
    padding: 0.5rem var(--gutter) 1.5rem; border-top: 1px solid var(--pes-grey-700);
    box-shadow: 0 20px 40px rgba(10, 10, 10, 0.5);
  }
  .pes-nav-menu.active { display: flex; }
  .pes-nav-menu a:not(.btn) { display: block; padding: 0.85rem 0; border-bottom: 1px solid var(--pes-grey-700); font-size: 1.05rem; }
  .pes-nav-menu a:not(.btn)::after { display: none; }
  .pes-nav-menu .btn { align-self: flex-start; margin-top: 1rem; min-height: 48px; }
  .pes-nav-toggle.active .bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .pes-nav-toggle.active .bars span:nth-child(2) { opacity: 0; }
  .pes-nav-toggle.active .bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
}
.page-hero .btn-row { margin-top: 1.75rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: min(88vh, 860px); display: flex; align-items: center;
}
.hero .container { position: relative; z-index: 2; padding-block: clamp(4rem, 10vw, 7rem); }
.hero__copy { max-width: 680px; }
.hero__copy h1 {
  margin-bottom: 1.25rem;
  /* On narrow screens, shrink just enough for the longest rotating ending ("pop the prosecco")
     to stay on one line beside the gutters. */
  font-size: min(clamp(2.5rem, 5.6vw, 4.5rem), calc((100vw - 2 * var(--gutter)) / 9.4));
}
.hero__copy h1 em { font-style: normal; color: var(--pes-yellow); }
/* Rotating headline ending: the endings swap instantly, in line. They all sit in the same grid
   cell, so the heading is sized to the longest and nothing below it moves. */
.rotator { display: inline-grid; vertical-align: top; }
.rotator__item { grid-area: 1 / 1; visibility: hidden; }
.rotator__item.is-active { visibility: visible; }
.hero__copy .lede { color: var(--pes-grey-300); margin-bottom: 2rem; }
.hero__media { position: absolute; inset: 0 0 0 auto; width: 75%; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% center; }
/* halftone dissolve: solid charcoal, then a field of charcoal dots that thins out, then the photograph */
.hero__media::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image: radial-gradient(circle, var(--pes-charcoal) 0 41%, transparent 43%);
  background-size: var(--dot) var(--dot);
  -webkit-mask-image: linear-gradient(to right, #000 0%, #000 8%, rgba(0, 0, 0, 0.7) 24%, rgba(0, 0, 0, 0.35) 42%, transparent 58%);
          mask-image: linear-gradient(to right, #000 0%, #000 8%, rgba(0, 0, 0, 0.7) 24%, rgba(0, 0, 0, 0.35) 42%, transparent 58%);
}
.hero__media::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(to right, var(--pes-charcoal) 0%, rgba(10, 10, 10, 0.9) 12%, rgba(10, 10, 10, 0.6) 32%, rgba(10, 10, 10, 0.3) 47%, transparent 62%),
    linear-gradient(to top, rgba(10, 10, 10, 0.6) 0%, transparent 30%);
}
@media (max-width: 900px) {
  .hero { min-height: 0; display: block; }
  .hero .container { padding-block: 3.5rem 2.5rem; }
  .hero__media { position: relative; width: 100%; aspect-ratio: 4 / 3; }
  .hero__media::before {
    background-size: 14px 14px;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.6) 30%, transparent 60%);
            mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.6) 30%, transparent 60%);
  }
  .hero__media::after { background: linear-gradient(to bottom, var(--pes-charcoal) 0%, transparent 35%); }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .hero__media::after {
    background:
      linear-gradient(to right, var(--pes-charcoal) 0%, var(--pes-charcoal) 44%, rgba(10, 10, 10, 0.9) 52%, rgba(10, 10, 10, 0.45) 66%, transparent 82%),
      linear-gradient(to top, rgba(10, 10, 10, 0.6) 0%, transparent 30%);
  }
}

/* Page hero (inner pages): compact, dark, with dot texture */
.page-hero { padding-block: clamp(3.5rem, 8vw, 6rem) clamp(3rem, 6vw, 5rem); }
.page-hero h1 { max-width: 18ch; }
.page-hero .lede { margin-top: 0.5rem; }

/* Hero entrance */
@media (prefers-reduced-motion: no-preference) {
  .hero__copy > * { animation: rise 0.7s var(--ease) both; }
  .hero__copy > :nth-child(2) { animation-delay: 0.08s; }
  .hero__copy > :nth-child(3) { animation-delay: 0.16s; }
  .hero__copy > :nth-child(4) { animation-delay: 0.24s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Metrics strip ---------- */
.metrics { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem 0; }
.metrics li { display: flex; align-items: baseline; gap: 0.6rem; padding-inline: clamp(1rem, 2.5vw, 2.25rem); position: relative; }
.metrics li + li::before {
  content: ""; position: absolute; left: -4px; top: 50%; width: 8px; height: 8px; margin-top: -4px;
  border-radius: 50%; background: var(--pes-yellow);
}
.metrics strong { white-space: nowrap; font: 700 clamp(1.6rem, 2.6vw, 2.25rem)/1 var(--font-display); letter-spacing: -0.03em; }
.metrics span { font: 600 0.8rem/1.2 var(--font-display); text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }
@media (max-width: 640px) { .metrics li + li::before { display: none; } .metrics { flex-direction: column; align-items: center; } }

/* What we supply: one line under a hero lede */
.supply-line { margin: 1.25rem 0 0; max-width: 60ch; font: 600 0.95rem/1.6 var(--font-display); color: var(--text); }
.supply-line .label { display: block; margin-bottom: 0.25rem; }
.hero__copy .supply-line { margin: -0.75rem 0 2rem; }
.page-hero .supply-line { margin-bottom: 1.75rem; }
.supply-line__not { display: block; margin-top: 0.35rem; font: 400 0.9rem/1.5 var(--font-body); color: var(--text-muted); }

/* ---------- Grids and cards ---------- */
.grid { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.split { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; grid-template-columns: 1fr; }
.split--top { align-items: start; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--wide-media { grid-template-columns: 5fr 6fr; }
  .split--media-first > .photo { order: -1; }
}

.section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head .lede { margin-top: 0.75rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lede { margin-inline: auto; }
.section-head--split { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.5rem; max-width: none; }

.photo { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--pes-charcoal); margin: 0; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--4x3 { aspect-ratio: 4 / 3; }
.photo--3x2 { aspect-ratio: 3 / 2; }
.photo--16x9 { aspect-ratio: 16 / 9; }
.photo--square { aspect-ratio: 1; }
.photo--tall { aspect-ratio: 4 / 5; }
/* halftone edge on a photo: dots of the surface colour eat into one side */
.photo--halftone-left::before, .photo--halftone-bottom::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background-image: radial-gradient(circle, var(--halftone, var(--pes-charcoal)) 0 40%, transparent 42%);
  background-size: 14px 14px;
}
.photo--halftone-left::before {
  -webkit-mask-image: linear-gradient(to right, #000 0%, rgba(0, 0, 0, 0.5) 30%, transparent 58%);
          mask-image: linear-gradient(to right, #000 0%, rgba(0, 0, 0, 0.5) 30%, transparent 58%);
}
.photo--halftone-bottom::before {
  -webkit-mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0.5) 25%, transparent 50%);
          mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0.5) 25%, transparent 50%);
}
.photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 1.75rem 1rem 0.75rem; font-size: 0.8rem; color: var(--pes-white); background: linear-gradient(to top, rgba(10, 10, 10, 0.92) 0, rgba(10, 10, 10, 0.92) calc(100% - 1.25rem), transparent); }

.card {
  display: flex; flex-direction: column; background: var(--vs-panel); color: var(--pes-white);
  border-radius: var(--radius); overflow: hidden; text-decoration: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  --text-muted: #b4b4b4;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -20px rgba(10, 10, 10, 0.45); }
.card .photo { border-radius: 0; }
/* A card whose heading is the link: the link's ::after stretches over the whole card. */
.card--linked { position: relative; }
.card__link { color: inherit; text-decoration: none; }
.card__link::after { content: ""; position: absolute; inset: 0; z-index: 3; }  /* above the photo and its overlays */
.card__link:focus-visible { outline: none; }
.card--linked:has(.card__link:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.card__body { padding: 1.5rem 1.5rem 1.75rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.card__body h2, .card__body h3 { margin: 0; }
/* A venue name is an h2 on a browse page and an h3 under "All venues"; it looks the same in both. */
.vf-venue-card-name { font-size: 1.25rem; line-height: 1.25; }
.card__body p { color: var(--text-muted); margin: 0; }
.card__body .eyebrow { margin: 0; }
.card__body .link-more { margin-top: auto; padding-top: 0.75rem; }
.surface-cream .card, .surface-grey .card { background: var(--vs-panel-2); }
.section:not(.surface-cream):not(.surface-grey):not(.surface-dark) .card { border: 1px solid rgba(255, 255, 255, 0.08); }

/* Feature list with dot bullets */
.dots { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.7rem; }
.dots li { position: relative; padding-left: 1.5rem; }
.dots li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 9px; height: 9px; border-radius: 50%; background: var(--pes-yellow); }
.dots--2col { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }

/* Attribute grid */
.attributes { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.attributes h3 { font-size: 1.1rem; margin: 0 0 0.35rem; display: flex; align-items: center; gap: 0.6rem; }
.attributes h3::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--pes-yellow); flex: none; }
.attributes p { color: var(--text-muted); margin: 0; }

/* Facts panel (warehouse) */
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
.facts strong { display: block; font: 700 clamp(1.6rem, 2.4vw, 2.1rem)/1 var(--font-display); letter-spacing: -0.03em; }
.facts span { display: block; margin-top: 0.4rem; font: 600 0.8rem var(--font-display); text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }

/* two-up facts for narrow columns */
.facts--2col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.facts a { display: block; color: inherit; text-decoration: none; }
.facts a strong { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.12em; }
.facts a:hover strong { text-decoration-color: var(--pes-yellow); }
.facts a[href^="mailto:"] strong { font-size: 0.8em; overflow-wrap: anywhere; }

/* Definition list (case study facts) */
.dl { display: grid; gap: 1rem 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); margin: 0; }
.dl div { border-top: 3px solid var(--pes-yellow); padding-top: 0.75rem; }
.dl dt { font: 700 0.8rem var(--font-display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
.dl dd { margin: 0.25rem 0 0; font-weight: 500; }

/* Results (case study metrics) */
.results { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 1.25rem 2.5rem; }
.results strong { display: block; font: 700 clamp(2rem, 3.5vw, 3rem)/1 var(--font-display); letter-spacing: -0.03em; color: var(--pes-yellow); }
.results span { font: 600 0.8rem var(--font-display); text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }

/* Chips (events we support) */
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chips li {
  font: 600 0.9rem var(--font-display); padding: 0.6em 1.1em; border-radius: var(--pill);
  border: 1.5px solid var(--rule); background: transparent;
}
/* linked chips: the whole pill is the target, with a border that reads as a control */
.chips li:has(> a) { padding: 0; border-color: var(--pes-grey-700); }
.chips a { display: block; padding: 0.6em 1.1em; border-radius: inherit; }
.surface-dark .chips li { background: transparent; border-color: var(--pes-grey-700); }

/* Testimonials */
.quote { margin: 0; display: flex; flex-direction: column; gap: 1rem; }
.quote blockquote { margin: 0; }
.quote p { font: 500 clamp(1.15rem, 1.7vw, 1.4rem)/1.45 var(--font-body); margin: 0; }
.quote p::before { content: "\201C"; display: block; font: 700 3.5rem/0.6 var(--font-display); color: var(--pes-yellow); margin-bottom: 0.6rem; }
.surface-cream .quote p::before, .surface-grey .quote p::before { color: var(--pes-yellow); }
.quotes { row-gap: 2.5rem; }
.quote figcaption { font: 600 0.85rem var(--font-display); color: var(--text-muted); letter-spacing: 0.02em; }

/* Statement (Built to deliver) */
.statement h2 { font-size: clamp(2.4rem, 5vw, 4rem); max-width: 14ch; }
.statement h2 em { font-style: normal; color: var(--pes-yellow); }
.statement p { font-size: clamp(1.05rem, 1.4vw, 1.2rem); max-width: 52ch; }

/* Alternating service rows */
.service-row { padding-block: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--rule); }
main, section[id], div[id], article[id] { scroll-margin-top: 100px; }
.service-row:first-of-type { border-top: 0; }
.service-row h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); }
.service-row .dots { margin-top: 1.5rem; }

/* Numbered? No. Steps with dots (how we work) */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.steps li { border-top: 3px solid var(--pes-yellow); padding-top: 1rem; }
.steps h3 { font-size: 1.15rem; margin-bottom: 0.4rem; line-height: 1.2; }
.steps h3 a { display: inline-block; padding-block: 0.15em; }
.steps p { color: var(--text-muted); margin: 0; }
.steps--five { gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.steps--five li { display: flex; flex-direction: column; align-items: flex-start; }
.steps--five li p { flex-grow: 1; }
/* line up heading, text and link across the row where subgrid is supported */
@supports (grid-template-rows: subgrid) {
  .steps--five { row-gap: 2rem; }
  .steps--five li { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; justify-items: start; align-content: start; }
  .steps--five li > a { align-self: start; }
}

/* ---------- Enquiry form (the PES Portal embed) ---------- */
/* The fields inside the frame show their own focus ring, so the frame itself doesn't. */
.enquiry-embed iframe:focus, .enquiry-embed iframe:focus-visible { outline: none; }
.form-note { font-size: 0.9rem; color: var(--text-muted); }

/* Contact aside */
.contact-card { display: grid; gap: 1.25rem; padding: 1.75rem; border-radius: var(--radius); }
.contact-card a { text-decoration: none; font: 600 1.05rem var(--font-display); }
.contact-card a:hover { text-decoration: underline; text-decoration-color: var(--pes-yellow); }
.contact-card small { display: block; font: 700 0.8rem var(--font-display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.2rem; }

/* ---------- Footer ---------- */
.site-footer { margin-top: auto; padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; font-size: 0.95rem; }
.site-footer .cols { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); align-items: start; }
@media (min-width: 1000px) { .site-footer .cols { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }
.site-footer h2 { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--pes-yellow); margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.site-footer a { text-decoration: none; color: var(--pes-grey-300); }
.site-footer a:hover { color: var(--pes-white); text-decoration: underline; text-decoration-color: var(--pes-yellow); }
.site-footer .brand img { height: 30px; }
.site-footer .legal { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--pes-grey-700); display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; justify-content: space-between; color: var(--pes-grey-300); font-size: 0.85rem; }
.site-footer .legal__company { max-width: 60ch; margin: 0; }
.site-footer .legal ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.site-footer .legal a, .site-footer .cols a { display: inline-block; padding-block: 0.25rem; }

/* ---------- Cookie notice ---------- */
.cookie-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 150; margin-inline: auto; max-width: 720px;
  background: var(--pes-white); color: var(--pes-charcoal); border-radius: var(--radius);
  box-shadow: 0 20px 50px -20px rgba(10, 10, 10, 0.6); border-top: 4px solid var(--pes-yellow); border-top-left-radius: 0; border-top-right-radius: 0;
  padding: 1rem 1.25rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; font-size: 0.9rem; flex: 1 1 320px; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
/* A button that reads as a footer link ("Cookie settings" reopens the choice) */
.link-button { background: none; border: 0; padding: 0.25rem 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 0.2em; }
.prose .link-button { padding: 0; }

/* ---------- Prose (legal pages) ---------- */
.prose { max-width: 70ch; }
.prose h2 { font-size: 1.5rem; margin-top: 2.5rem; }
.prose h3 { font-size: 1.15rem; margin-top: 1.75rem; }
.prose p, .prose li { font-size: 1.05rem; line-height: 1.65; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li + li { margin-top: 0.35rem; }
.prose .callout { background: var(--vs-panel); border-left: 4px solid var(--pes-yellow); padding: 1.1rem 1.4rem; border-radius: var(--radius); margin: 1.75rem 0; }
.prose .callout p:last-child { margin-bottom: 0; }
.prose .table-wrap { overflow-x: auto; margin: 1.5rem 0; }
.prose .table-wrap:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.prose tbody th { font: inherit; font-weight: 600; text-transform: none; letter-spacing: 0; color: inherit; }
.article-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; color: var(--pes-grey-300); margin-top: 1rem; }
.article-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.article-card { border-top: 3px solid var(--pes-yellow); padding-top: 1.25rem; display: flex; flex-direction: column; gap: 0.6rem; }
.article-card h2 { margin: 0; }
.article-card h2 a { text-decoration: underline; text-decoration-color: var(--pes-yellow); text-decoration-thickness: 2px; text-underline-offset: 0.16em; }
.article-card h2 a:hover, .article-card h2 a:focus-visible { text-decoration-color: currentColor; }
.article-card p { color: var(--text-muted); margin: 0; }
.article-card .eyebrow { margin: 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
.prose th, .prose td { text-align: left; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
.prose th { font: 700 0.75rem var(--font-display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }

/* ---------- Motion safety ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Print ---------- */
@media print {
  .pes-nav, .site-footer, .cookie-consent, .btn, .skip-link, .back-to-top { display: none !important; }
  .surface-dark { background: none; color: #383838; }
}

.cta-band { margin-bottom: 0; align-items: center; }
.cta-band > div:first-child { flex: 1 1 360px; max-width: 560px; }
.cta-band .btn-row { flex: 1 1 auto; min-width: 0; }
.cta-band .eyebrow { color: var(--pes-charcoal); }
.cta-band .eyebrow::before { background: var(--pes-charcoal); }
.service-row .lede { color: var(--text-muted); }

/* ---------- Utilities used by templates (no inline styles: CSP style-src 'self') ---------- */
.mt-0 { margin-top: 0 !important; }
.mb-1 { margin-bottom: 0.4rem !important; }
.pt-2 { padding-top: 1.5rem; }
.my-list { margin: 1.25rem 0 1.75rem !important; }
.small { font-size: 0.95rem; }
.h2-md { font-size: clamp(2rem, 4vw, 3rem) !important; }
.measure-sm { max-width: 640px; }
.measure-md { max-width: 720px; }
.measure-lg { max-width: 860px; }
.w-20ch { max-width: 20ch !important; }
.w-22ch { max-width: 22ch !important; }
.w-56ch { max-width: 56ch !important; }
.metrics--start { justify-content: flex-start; }
.split--gap-lg { gap: clamp(2rem, 5vw, 5rem); }
.photo--halftone-on-white { --halftone: var(--pes-white); }
.chips a { text-decoration: none; }
.chips a:hover { text-decoration: underline; text-decoration-color: var(--pes-yellow); }
.contact-card__title { font-size: 1.25rem; margin: 0; }
.my-2 { margin: 2rem 0 !important; }

/* ==========================================================================
   Venue Support: components this site adds to the PES design system.
   Class names starting vf-/vfd- are hooks for static/js/main.js and the
   gallery script in venue_finder_detail.html; keep them when restyling.
   ========================================================================== */

/* ---------- Flash messages ---------- */
.pes-flashes { max-width: var(--container); margin: 1.25rem auto 0; padding-inline: var(--gutter); display: grid; gap: 0.75rem; }
.pes-flash { padding: 0.9rem 1.1rem; border-radius: var(--radius); border-left: 4px solid var(--pes-grey-500); background: var(--vs-panel); font-weight: 500; }
.pes-flash--success { border-left-color: var(--pes-yellow); }

/* ---------- Cookie choice ---------- */
/* main.js shows this by setting display:block on the element itself. */
.cookie-consent {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 150; margin-inline: auto; max-width: 720px;
  background: var(--pes-white); color: var(--pes-charcoal); border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 20px 50px -20px rgba(10, 10, 10, 0.6); border-top: 4px solid var(--pes-yellow); padding: 1rem 1.25rem;
}
.cookie-content { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.cookie-content p { margin: 0; font-size: 0.9rem; flex: 1 1 320px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- Back to top (button made by main.js) ---------- */
.back-to-top {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 120; width: 48px; height: 48px; border-radius: 50%;
  border: 2px solid var(--pes-yellow); background: var(--pes-charcoal); color: var(--pes-yellow); cursor: pointer;
  display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top svg { width: 22px; height: 22px; }

/* ---------- Home and browse heroes ---------- */
.vf-hero h1 { max-width: 20ch; }
.vf-hero h1 em { font-style: normal; color: var(--pes-yellow); }
.vf-hero .lede { max-width: 56ch; }
.crumb { font: 600 0.85rem var(--font-display); margin: 0 0 1.25rem; color: var(--text-muted); }
.crumb a { text-decoration: none; }
.crumb a:hover { text-decoration: underline; text-decoration-color: var(--pes-yellow); }
.crumb span[aria-hidden] { margin-inline: 0.5em; }

/* ---------- Search ---------- */
.vf-search-container { margin-top: 2rem; max-width: 640px; }
.vf-search-box { position: relative; display: flex; align-items: center; }
.vf-search-icon { position: absolute; left: 1.1rem; width: 20px; height: 20px; color: var(--pes-grey-700); pointer-events: none; }
.vf-search-input {
  width: 100%; font: 500 1rem var(--font-body); color: var(--pes-charcoal); background: var(--pes-white);
  border: 2px solid var(--pes-white); border-radius: var(--pill); padding: 0.95rem 3rem 0.95rem 3.1rem;
}
.vf-search-input::placeholder { color: var(--pes-grey-700); }
.vf-search-input:focus-visible { outline: 3px solid var(--pes-yellow); outline-offset: 2px; }
.vf-search-clear { position: absolute; right: 0.6rem; width: 36px; height: 36px; border: 0; border-radius: 50%; background: none; color: var(--pes-charcoal); cursor: pointer; }
.vf-search-clear svg { width: 18px; height: 18px; margin: auto; }
.vf-search-suggestions { margin-top: 1rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; font: 600 0.85rem var(--font-display); color: var(--pes-grey-300); }
.vf-suggestion { font: inherit; color: var(--pes-white); background: none; border: 1.5px solid var(--pes-grey-700); border-radius: var(--pill); padding: 0.4em 0.9em; cursor: pointer; }
.vf-suggestion:hover { border-color: var(--pes-yellow); }

/* ---------- Venue list ---------- */
.vf-results-count { font: 700 0.8rem var(--font-display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 1.5rem; }
.vf-venues-grid { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.vf-venue-card.hidden { display: none; }
.vf-venue-card-image { position: relative; aspect-ratio: 3 / 2; background: var(--pes-charcoal); overflow: hidden; }
.vf-venue-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.vf-venue-card:hover .vf-venue-card-image img { transform: scale(1.04); }
/* No photo yet: the brand dot field, never a broken image. */
.vf-venue-card-placeholder {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(252, 219, 53, 0.9) 0 34%, transparent 36%); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(90% 120% at 100% 0%, #000 0%, transparent 75%);
          mask-image: radial-gradient(90% 120% at 100% 0%, #000 0%, transparent 75%);
}
.vf-venue-card-capacity { font: 700 0.85rem var(--font-display); color: var(--pes-yellow) !important; }
.vf-venue-card-capacity::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--pes-yellow); margin-right: 0.5em; }
.vf-no-results { text-align: center; padding: 3rem 1rem; }
.vf-no-results svg { width: 48px; height: 48px; margin: 0 auto 1rem; color: var(--pes-grey-500); }
.vf-no-results h3 { margin-bottom: 0.4rem; }
.vf-no-results .btn { margin-top: 1rem; }
.browse-group + .browse-group { margin-top: 2rem; }
.browse-group h3 { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.9rem; }
.chips a[aria-current="page"] { background: var(--pes-yellow); }

/* ---------- Venue page hero ---------- */
.vfd-hero { position: relative; overflow: hidden; isolation: isolate; }
.vfd-hero .container { position: relative; z-index: 2; padding-block: clamp(3.5rem, 8vw, 6rem); }
.vfd-hero-copy { max-width: 640px; }
.vfd-hero h1 { margin-bottom: 1.5rem; }
.vfd-hero .facts { max-width: 520px; margin-bottom: 1.75rem; }
.vfd-hero .chips { margin-bottom: 2rem; }
.vfd-hero .chips li { font-size: 0.8rem; }
.vfd-hero .hero__media { width: 62%; }
@media (max-width: 900px) { .vfd-hero .hero__media { width: 100%; } .vfd-hero .container { padding-block: 3rem 2rem; } }

/* ---------- Gallery ---------- */
.vfd-gallery-section { background: var(--pes-charcoal); padding-bottom: clamp(2rem, 4vw, 3rem); }
.vfd-gallery-carousel { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.vfd-gallery-carousel:focus-visible { outline: 3px solid var(--pes-yellow); outline-offset: 4px; }
.vfd-gallery-viewport { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #2b2b2b; }
.vfd-gallery-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s var(--ease); pointer-events: none; }
.vfd-gallery-slide.active { opacity: 1; pointer-events: auto; }
.vfd-gallery-slide img, .vfd-gallery-slide iframe { width: 100%; height: 100%; object-fit: cover; border: 0; }
.vfd-gallery-slide iframe { position: absolute; inset: 0; z-index: 3; }
.vfd-gallery-gradient { display: none; }
.vfd-gallery-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 4; width: 48px; height: 48px; border-radius: 50%;
  border: 0; background: var(--pes-yellow); color: var(--pes-charcoal); cursor: pointer; display: grid; place-items: center;
}
.vfd-gallery-arrow svg { width: 22px; height: 22px; }
.vfd-gallery-prev { left: 1rem; }
.vfd-gallery-next { right: 1rem; }
.vfd-gallery-counter { position: absolute; left: 1rem; bottom: 1rem; z-index: 4; background: rgba(10, 10, 10, 0.85); color: var(--pes-white); font: 700 0.8rem var(--font-display); letter-spacing: 0.08em; padding: 0.4em 0.8em; border-radius: var(--pill); }
.vfd-gallery-counter-sep { margin-inline: 0.35em; color: var(--pes-yellow); }
.vfd-video-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; width: 84px; height: 84px; border-radius: 50%; border: 0; background: var(--pes-yellow); color: var(--pes-charcoal); cursor: pointer; display: grid; place-items: center; }
.vfd-video-play svg { width: 36px; height: 36px; }
.vfd-video-label { position: absolute; left: 50%; top: calc(50% + 62px); transform: translateX(-50%); z-index: 2; color: var(--pes-white); font: 700 0.85rem var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; }
.vfd-gallery-slide--video::after { content: ""; position: absolute; inset: 0; background: rgba(10, 10, 10, 0.45); }
.vfd-gallery-slide--video.is-playing::after, .vfd-gallery-slide--video.is-playing .vfd-video-play, .vfd-gallery-slide--video.is-playing .vfd-video-label { display: none; }
.vfd-video-fallback { position: absolute; left: 1rem; top: 1rem; z-index: 5; color: var(--pes-white); }
.vfd-gallery-thumbs { margin-top: 0.75rem; overflow-x: auto; scrollbar-width: thin; }
.vfd-gallery-thumbs-track { display: flex; gap: 0.5rem; }
.vfd-gallery-thumb { position: relative; flex: none; width: 96px; aspect-ratio: 3 / 2; padding: 0; border: 2px solid transparent; border-radius: var(--radius); overflow: hidden; background: #2b2b2b; cursor: pointer; opacity: 0.6; }
.vfd-gallery-thumb.active { border-color: var(--pes-yellow); opacity: 1; }
.vfd-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.vfd-gallery-thumb--video svg { position: absolute; inset: 0; margin: auto; width: 24px; height: 24px; color: var(--pes-yellow); }
.vfd-gallery-progress { margin-top: 0.75rem; height: 3px; background: var(--pes-grey-700); border-radius: 2px; overflow: hidden; }
.vfd-gallery-progress-bar { height: 100%; width: 0; background: var(--pes-yellow); }

/* ---------- Venue page body ---------- */
.vfd-description { font-size: 1.1rem; line-height: 1.7; white-space: pre-line; }
.vfd-contact { border: 1px solid var(--rule); }
.vfd-contact dl { margin: 0; display: grid; gap: 1rem; }
.vfd-contact dt { font: 700 0.8rem var(--font-display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.2rem; }
.vfd-contact dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.vfd-contact dd a { display: block; }
/* auto-fill, not auto-fit: a venue with one room gets a card, not a full-width slab. */
.vfd-spaces-grid { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.vfd-space-card { background: var(--vs-panel-2); border-radius: var(--radius); border-top: 4px solid var(--pes-yellow); padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.vfd-space-header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 1rem; }
.vfd-space-name { margin: 0; }
.vfd-space-size { font: 600 0.85rem var(--font-display); color: var(--text-muted); }
.vfd-space-description { margin: 0; color: var(--text-muted); }
.vfd-space-description:empty { display: none; }
.vfd-space-card h4 { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 0.6rem; }
.vfd-space-details { display: grid; gap: 1.25rem; }
.vfd-capacity-table { width: 100%; border-collapse: collapse; }
.vfd-capacity-table th, .vfd-capacity-table td { padding: 0.55rem 0; border-bottom: 1px solid var(--rule); text-align: left; font-weight: 500; }
.vfd-capacity-table td { text-align: right; font: 700 1.05rem var(--font-display); }
.vfd-capacity-table tr:last-child th, .vfd-capacity-table tr:last-child td { border-bottom: 0; }
.vfd-faq { margin: 0; max-width: 780px; }
.vfd-faq dt { font: 700 1.1rem var(--font-display); margin-top: 1.75rem; padding-top: 1.75rem; border-top: 1px solid var(--rule); }
.vfd-faq dt:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.vfd-faq dd { margin: 0.5rem 0 0; color: var(--text-muted); }
.vfd-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; }
.vfd-nav a { text-decoration: none; }
.vfd-nav small { display: block; font: 700 0.8rem var(--font-display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
.vfd-nav strong { font: 700 1.05rem var(--font-display); }
.vfd-nav a:hover strong { text-decoration: underline; text-decoration-color: var(--pes-yellow); text-decoration-thickness: 2px; }
.vfd-nav-next { text-align: right; margin-left: auto; }

/* ---------- Contact form ---------- */
.contact-form { display: grid; gap: 1.1rem; }
.form-group { display: grid; gap: 0.4rem; }
.form-group label { font: 700 0.85rem var(--font-display); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; font: 500 1rem var(--font-body); color: var(--pes-white); background: var(--vs-panel);
  border: 1.5px solid var(--pes-grey-700); border-radius: var(--radius); padding: 0.8rem 0.9rem;
}
.form-group textarea { resize: vertical; min-height: 9rem; }
.form-group input:focus-visible, .form-group select:focus-visible, .form-group textarea:focus-visible { outline: 3px solid var(--pes-yellow); outline-offset: 1px; }
.honeypot { position: absolute; left: -9999px; }
.contact-form .btn { justify-self: start; }

/* ---------- Error pages ---------- */
.error-code { font: 700 clamp(4rem, 12vw, 8rem)/1 var(--font-display); letter-spacing: -0.04em; color: var(--pes-yellow); margin: 0 0 0.5rem; }

/* ---------- Footer extras ---------- */
.footer-social { display: flex; gap: 0.75rem; }
.footer-social a { width: 44px; height: 44px; display: grid !important; place-items: center; border: 1.5px solid var(--pes-grey-700); border-radius: 50%; padding: 0 !important; }
.footer-social a:hover { border-color: var(--pes-yellow); }
.footer-social svg { width: 18px; height: 18px; }
.site-footer .link-button { color: var(--pes-grey-300); }
.site-footer .link-button:hover { color: var(--pes-white); }

/* Kind-of-space pages: the rooms side by side. */
.table-wrap { overflow-x: auto; }
.table-wrap:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.compare-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.compare-table th, .compare-table td { text-align: left; padding: 0.75rem 1rem 0.75rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.compare-table thead th { color: var(--text-muted); font-weight: 600; white-space: nowrap; }
.compare-table tbody th { font-weight: 600; }
.compare-table td:last-child { white-space: nowrap; }
