/* ============================================================
   Campaign theming — layered ON TOP of reach.css
   Each campaign sets TWO classes on <body>:
     a state   (state-events | state-maintenance)  → status behaviour
     a brand   (brand-pride-of-britain | ...)       → full brand identity
   Campaign pages deliberately drop the generic Reach look (teal hexagons,
   Reach-blue background) and adopt the brand's own production styling.
   ============================================================ */

/* ---- Campaign display face: Bodoni Moda, matching Reach's event sites ---- */
body[class*="brand-"] h1 {
  font-family: "Bodoni Moda", Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.04;
}

body[class*="brand-"] h1 em {
  font-style: italic;
}

/* Hide the generic Reach hexagons on all branded pages — each brand brings
   its own motif instead. */
body[class*="brand-"] .hex {
  display: none;
}

/* The small Reach logo in the header becomes a quiet "part of Reach" mark,
   not the hero brand, on campaign pages. */
body[class*="brand-"] header svg.logo {
  opacity: .8;
  width: 86px;
}

/* Campaign eyebrow / sponsor line */
.campaign-eyebrow {
  display: block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .62);
  margin-top: 10px;
}

/* ---- Brand logo lockup ---- */
.brand-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 22px;
}

.brand-logo img,
.brand-logo svg {
  height: 104px;
  width: auto;
  max-width: min(94%, 560px);
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, .4));
}

.brand-logo.chip img {
  background: #fff;
  padding: 18px 26px;
  border-radius: 16px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .4);
  height: 78px;
}

/* ---- Shared "silk + figure" brand stage used by the Pride family ---- */
.brand-stage,
.brand-stage::before,
.brand-stage::after {
  pointer-events: none;
}

.brand-figure-watermark {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(620px, 90vw);
  height: auto;
  opacity: .06;
  color: #fff;
}

/* =====================================================================
   PRIDE OF BRITAIN  — royal purple, Union-silk, gala glamour
   ===================================================================== */
body.brand-pride-of-britain {
  --accent: #7a3bb0;
  /* POB purple */
  --accent-soft: rgba(122, 59, 176, .20);
  --accent-border: rgba(170, 120, 210, .40);
  --gold: #e8b923;
  background:
    radial-gradient(1200px 620px at 50% -8%, rgba(150, 90, 200, .45) 0%, transparent 60%),
    linear-gradient(165deg, #4a1d6e 0%, #2a0f44 55%, #190827 100%);
}

body.brand-pride-of-britain h1 em {
  color: var(--gold);
}

body.brand-pride-of-britain a.primary {
  background: var(--gold);
  color: #2a2000;
}

body.brand-pride-of-britain .badge,
body.brand-pride-of-britain .badge svg path {
  color: var(--gold);
  stroke: var(--gold);
}

body.brand-pride-of-britain .accent-bar {
  background: var(--gold);
}

/* =====================================================================
   PRIDE OF SCOTLAND  — royal purple + saltire, gold highlights
   ===================================================================== */
body.brand-pride-of-scotland {
  --accent: #6f2da8;
  /* POS purple */
  --accent-soft: rgba(111, 45, 168, .22);
  --accent-border: rgba(160, 110, 210, .40);
  --gold: #f0c23a;
  background:
    radial-gradient(1200px 620px at 50% -8%, rgba(120, 60, 175, .5) 0%, transparent 60%),
    linear-gradient(165deg, #3f1663 0%, #27103c 55%, #160823 100%);
}

body.brand-pride-of-scotland h1 em {
  color: var(--gold);
}

body.brand-pride-of-scotland a.primary {
  background: var(--gold);
  color: #2a2000;
}

body.brand-pride-of-scotland .badge,
body.brand-pride-of-scotland .badge svg path {
  color: var(--gold);
  stroke: var(--gold);
}

body.brand-pride-of-scotland .accent-bar {
  background: var(--gold);
}

/* =====================================================================
   PRIDE OF SPORT  — sky-blue sporting energy (matches the real POS logo)
   ===================================================================== */
body.brand-pride-of-sport {
  --accent: #5aa7dd;
  /* Pride of Sport sky blue (from the real logo) */
  --accent-soft: rgba(90, 167, 221, .18);
  --accent-border: rgba(90, 167, 221, .42);
  --gold: #e8eef4;
  background:
    radial-gradient(1200px 620px at 50% -8%, rgba(90, 167, 221, .30) 0%, transparent 58%),
    linear-gradient(165deg, #123a63 0%, #0c2746 55%, #05131f 100%);
}

body.brand-pride-of-sport h1 em {
  color: var(--accent);
}

body.brand-pride-of-sport a.primary {
  background: var(--accent);
  color: #06233d;
}

body.brand-pride-of-sport .badge,
body.brand-pride-of-sport .badge svg path {
  color: var(--accent);
  stroke: var(--accent);
}

body.brand-pride-of-sport .accent-bar {
  background: var(--accent);
}

/* =====================================================================
   PEOPLE'S PET AWARDS  — warm, playful coral + cream
   ===================================================================== */
body.brand-peoples-pet-awards {
  --accent: #ff7a59;
  /* warm coral */
  --accent-soft: rgba(255, 122, 89, .18);
  --accent-border: rgba(255, 122, 89, .40);
  --gold: #ffd36b;
  background:
    radial-gradient(1200px 620px at 50% -8%, rgba(255, 140, 90, .3) 0%, transparent 58%),
    linear-gradient(165deg, #5a2a3f 0%, #38203a 55%, #1d1226 100%);
}

body.brand-peoples-pet-awards h1 em {
  color: var(--gold);
}

body.brand-peoples-pet-awards a.primary {
  background: var(--accent);
  color: #3a1200;
}

body.brand-peoples-pet-awards .badge,
body.brand-peoples-pet-awards .badge svg path {
  color: var(--accent);
  stroke: var(--accent);
}

body.brand-peoples-pet-awards .accent-bar {
  background: var(--accent);
}

/* =====================================================================
   Curved silk header band — the award-show "draped silk" look with a
   curved bottom edge. Reusable across Pride brands; tints to the brand.
   ===================================================================== */
.silk-header {
  position: relative;
  z-index: 1;
  width: 100%;
  height: clamp(160px, 26vh, 260px);
  overflow: hidden;
  margin-bottom: -40px;
  /* let the hero logo overlap the curve */
  background:
    linear-gradient(115deg,
      color-mix(in srgb, var(--accent) 70%, #000 10%) 0%,
      color-mix(in srgb, var(--accent) 95%, #fff 20%) 35%,
      color-mix(in srgb, var(--accent) 60%, #000 20%) 62%,
      color-mix(in srgb, var(--accent) 90%, #fff 15%) 100%);
  /* soft silk folds */
  box-shadow: inset 0 -30px 60px rgba(0, 0, 0, .35), inset 0 20px 50px rgba(255, 255, 255, .08);
  /* curved bottom edge */
  border-bottom-left-radius: 100% 60px;
  border-bottom-right-radius: 100% 60px;
}

.silk-header::after {
  /* subtle diagonal silk sheen bands */
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(118deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 46px),
    radial-gradient(120% 80% at 70% 0%, rgba(255, 255, 255, .14), transparent 60%);
  mix-blend-mode: screen;
}

/* When a silk header is present, the brand logo sits over the curve */
.silk-header+.hero {
  padding-top: 0;
}

.silk-header+.hero .brand-logo {
  margin-top: -10px;
  position: relative;
  z-index: 3;
}

/* =====================================================================
   Sponsor strip — "in partnership with" sponsor logos, linked out.
   ===================================================================== */
.sponsors {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px 26px;
  margin: 26px auto 0;
  max-width: 680px;
}

.sponsors .label {
  width: 100%;
  text-align: center;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .5);
  margin-bottom: 2px;
}

.sponsors a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .28);
  transition: transform .12s ease, box-shadow .12s ease;
}

.sponsors a:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .36);
}

.sponsors img {
  display: block;
  height: 44px;
  width: auto;
}

/* Full-bleed coloured logos (Mirror, Daily Record) render as clean tiles. */
.sponsors a.tile img {
  height: 46px;
  border-radius: 8px;
}

/* Transparent / line-art logos (e.g. P&O) get a white chip for legibility. */
.sponsors a.chip {
  background: #fff;
  padding: 12px 18px;
}

.sponsors a.chip img {
  height: 26px;
}

/* =====================================================================
   Campaign footer — social links + "part of Reach Events" lockup.
   The brand is front-and-centre in the hero; Reach sits quietly here.
   ===================================================================== */
.campaign-footer {
  position: relative;
  z-index: 2;
  margin-top: 48px;
  padding: 36px clamp(20px, 5vw, 48px) 30px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.socials {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin: 0 0 24px;
}

.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  color: #fff;
  transition: transform .12s ease, background .2s ease, color .2s ease;
}

.socials a:hover {
  transform: translateY(-2px);
  background: var(--accent);
  color: #0d1a24;
}

.socials svg {
  width: 19px;
  height: 19px;
}

.footer-reach {
  margin: 6px 0 14px;
}

.footer-reach .part-of {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .45);
  margin-bottom: 10px;
}

.footer-reach svg.logo-events-lockup {
  width: 128px;
  height: auto;
  opacity: .85;
}

.footer-reach svg .logo-reach,
.footer-reach svg .logo-events {
  fill: #fff;
}

.footer-legal {
  font-size: 12.5px;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(255, 255, 255, .5);
}

.footer-legal a {
  color: rgba(255, 255, 255, .72);
  text-decoration: none;
}

.footer-legal a:hover {
  color: var(--accent);
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin: 14px 0 0;
}

.legal-links a {
  font-size: 12.5px;
  font-weight: 400;
  color: rgba(255, 255, 255, .6);
  text-decoration: none;
}

.legal-links a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* ---- Countdown + capture inherit the brand accent automatically via reach.css vars ---- */

/* ============================================================
   Campaign mobile optimisation
   ============================================================ */

@media (max-width: 640px) {

  /* Brand logo: scale down so long lockups (Pride of Britain/Scotland) fit */
  .brand-logo {
    margin-bottom: 16px;
  }

  .brand-logo img,
  .brand-logo svg {
    height: auto;
    width: 100%;
    max-width: 340px;
  }

  .brand-logo.chip img {
    width: auto;
    height: 60px;
  }

  /* Pride "winged figure" / watermark toned down on small screens */
  .brand-figure-watermark {
    width: 115vw;
    opacity: .05;
  }

  /* Silk header shorter on mobile */
  .silk-header {
    height: clamp(110px, 20vh, 150px);
    margin-bottom: -34px;
  }

  /* Sponsors: smaller logos, tighter gaps */
  .sponsors {
    gap: 10px 14px;
  }

  .sponsors img {
    height: 36px;
  }

  .sponsors a.tile img {
    height: 38px;
  }

  .sponsors a.chip {
    padding: 9px 13px;
  }

  .sponsors a.chip img {
    height: 22px;
  }

  /* Footer: socials wrap, Reach lockup + legal links comfortable */
  .campaign-footer {
    padding: 28px 18px 24px;
  }

  .socials {
    flex-wrap: wrap;
    gap: 12px;
  }

  .footer-reach svg.logo-events-lockup {
    width: 112px;
  }

  .legal-links {
    gap: 6px 16px;
  }

  .legal-links a {
    font-size: 12px;
  }
}

@media (max-width: 380px) {

  .brand-logo img,
  .brand-logo svg {
    max-width: 280px;
  }
}