/* PPN Gloucester. Brand: navy #1B2A4A, orange #C2410C (accessible shade of #E84E0F), blue #0069A6. */
:root {
  --navy: #1B2A4A; --navy-deep: #121D35; --navy-line: #4A5A80;
  --orange: #C2410C; --orange-soft: #FFF4ED; --orange-light: #FFB38A;
  --blue: #0069A6; --blue-dark: #004C78; --blue-light: #4FC3F7; --blue-soft: #EAF6FD;
  --ink: #1B2A4A; --muted: #3A4660; --muted-2: #4A5670;
  --pale: #F4F6FA; --line: #E3E7EF; --line-2: #D5DBE6; --on-navy: #D7DEEA;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: Lato, Arial, Helvetica, sans-serif; color: var(--ink); background: #fff; font-size: 17px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); } a:hover { color: var(--blue-dark); }
h1, h2, h3 { font-weight: 900; }
.wrap { max-width: 1160px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.section { padding-top: 80px; padding-bottom: 80px; }
.pale { background: var(--pale); }
.navy { background: var(--navy); color: #fff; }
.eyebrow { margin: 0 0 10px; color: var(--orange); font-weight: 900; font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase; }
.navy .eyebrow, .hero .eyebrow, .banner .eyebrow { color: var(--blue-light); font-size: 15px; }
.card-next .eyebrow { color: var(--orange); font-size: 14px; }
.h2 { margin: 0 0 16px; font-size: 38px; line-height: 1.15; }
.lead { margin: 0 0 36px; max-width: 680px; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 14px; color: var(--muted-2); }
.row { display: flex; flex-wrap: wrap; gap: 48px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: #fff; padding: 8px 12px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 8px; font-weight: 900; font-size: 17px; text-decoration: none; border: 0; cursor: pointer; font-family: inherit; }
.btn-primary { background: var(--orange); color: #fff; } .btn-primary:hover { background: #A3360A; color: #fff; }
.btn-outline { border: 2px solid var(--navy); color: var(--navy); background: transparent; } .btn-outline:hover { background: var(--navy); color: #fff; }
.btn-ghost { border: 2px solid var(--navy-line); color: #fff; } .btn-ghost:hover { border-color: #fff; color: #fff; }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 18px; }
.btn-block { display: flex; width: 100%; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: #fff; }
.site-header .wrap { padding-top: 18px; padding-bottom: 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.brand img { height: 40px; width: auto; }
.brand span { font-weight: 900; font-size: 20px; border-left: 2px solid var(--line); padding-left: 14px; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; font-size: 16px; font-weight: 700; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--orange); }
.nav .btn { color: #fff; min-height: 44px; padding: 0 20px; font-size: 16px; }

/* Hero */
.hero { background-color: var(--navy); color: #fff; background-size: cover; background-position: center; }
.hero.has-photo { position: relative; overflow: hidden; isolation: isolate; background-color: var(--navy); }
/* Photo layer: taller than the hero so it can drift as the page scrolls (see site.js) */
.hero-bg { position: absolute; left: 0; right: 0; top: -20%; bottom: -20%; z-index: -2; background-image: var(--hero-img); background-size: cover; background-position: center; will-change: transform; }
/* Tint: stronger behind the headline on the left, lighter towards the right */
.hero.has-photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(27,42,74,.84) 0%, rgba(27,42,74,.74) 45%, rgba(27,42,74,.58) 100%); }
@media (max-width: 900px) { .hero.has-photo::before { background: rgba(27,42,74,.80); } }
.hero .wrap { padding-top: 72px; padding-bottom: 80px; display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.hero-copy { flex: 1 1 460px; min-width: 0; }
.hero h1 { margin: 0 0 20px; font-size: 52px; line-height: 1.1; }
.hero-intro { margin: 0 0 28px; font-size: 20px; color: var(--on-navy); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-actions .early { color: var(--orange-light); text-decoration: none; font-weight: 700; font-size: 16px; }

/* Next meetup card */
.card-next { flex: 1 1 380px; min-width: 0; background: #fff; color: var(--ink); border-radius: 16px; padding: 32px; box-shadow: 0 18px 40px rgba(0,0,0,.25); }
.card-next h2 { margin: 0 0 4px; font-size: 30px; line-height: 1.2; }
.card-next .time { margin: 0 0 22px; color: var(--muted-2); }
.speaker-row { display: flex; gap: 16px; align-items: center; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.avatar { flex: 0 0 76px; width: 76px; height: 76px; border-radius: 50%; background: #E8EBF1; display: flex; align-items: center; justify-content: center; font-weight: 900; color: var(--muted-2); font-size: 22px; object-fit: cover; }
.speaker-row .name { margin: 0; font-weight: 900; font-size: 19px; }
.speaker-row .talk { margin: 0; color: var(--muted-2); font-size: 16px; line-height: 1.4; }
.venue-line { margin: 18px 0 22px; font-size: 16px; color: var(--muted-2); }
.offers { display: flex; flex-direction: column; gap: 10px; margin: 0 0 20px; }
.offer { display: flex; gap: 12px; align-items: flex-start; border-radius: 10px; padding: 12px 14px; font-size: 15px; line-height: 1.45; }
.offer p { margin: 0; }
.offer svg { flex: 0 0 22px; margin-top: 2px; }
.offer-early { background: var(--orange-soft); } .offer-friend { background: var(--blue-soft); }
.card-next .note { margin: 12px 0 0; font-size: 14px; color: var(--muted-2); text-align: center; }

/* Dates strip */
.dates { background: var(--pale); border-bottom: 1px solid var(--line); }
.dates .wrap { padding-top: 32px; padding-bottom: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px 40px; }
.dates-intro { flex: 1 1 260px; min-width: 0; }
.dates-intro h2 { margin: 0 0 4px; font-size: 22px; }
.dates-intro p { margin: 0; font-size: 16px; color: var(--muted); }
.dates-intro .annual { margin-top: 8px; font-size: 15px; }
.date-tiles { flex: 2 1 520px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 12px; }
.date-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 92px; background: #fff; border: 1px solid var(--line-2); border-radius: 12px; text-decoration: none; color: var(--ink); padding: 8px; text-align: center; }
.date-tile:hover { border-color: var(--orange); color: var(--ink); }
.date-tile .d { font-size: 30px; font-weight: 900; line-height: 1; }
.date-tile .sfx { font-size: 14px; vertical-align: super; margin-left: 1px; }
.date-tile .m { font-size: 14px; font-weight: 900; letter-spacing: 1.2px; color: var(--orange); }
.date-tile .who { font-size: 12px; color: var(--muted-2); line-height: 1.3; }

/* Talk */
.talk-row { align-items: flex-start; }
.talk-copy { flex: 2 1 520px; min-width: 0; }
.talk-copy p { margin: 0 0 18px; }
.speaker-card { flex: 1 1 300px; min-width: 0; background: var(--pale); border-radius: 16px; padding: 28px; }
.speaker-card .photo { width: 100%; aspect-ratio: 1 / 1; border-radius: 12px; background: var(--line); object-fit: cover; margin-bottom: 20px; display: flex; align-items: center; justify-content: center; color: var(--muted-2); font-weight: 700; }
.speaker-card h3 { margin: 0 0 8px; font-size: 22px; }
.speaker-card p { margin: 0; font-size: 16px; color: var(--muted); }

/* Agenda */
.agenda { flex: 2 1 560px; min-width: 0; margin: 0; padding: 0; list-style: none; background: #fff; border-radius: 16px; overflow: hidden; }
.agenda li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 20px; padding: 22px 26px; border-bottom: 1px solid var(--line); }
.agenda li:last-child { border-bottom: 0; }
.agenda li.hl { background: var(--orange-soft); }
.agenda .t { margin: 0; font-weight: 900; font-size: 16px; color: var(--orange); }
.agenda h3 { margin: 0 0 4px; font-size: 19px; line-height: 1.3; }
.agenda p.d { margin: 0; font-size: 16px; color: var(--muted); }
.who-card { flex: 1 1 280px; min-width: 0; background: #fff; border-radius: 16px; padding: 28px; }
.who-card h3 { margin: 0 0 8px; font-size: 22px; }
.who-card p { margin: 0 0 16px; font-size: 16px; color: var(--muted); }
.who-card p:last-child { margin: 0; }
@media (max-width: 520px) { .agenda li { grid-template-columns: 1fr; gap: 4px; } }

/* Sign-up */
.signup .wrap { padding-top: 56px; padding-bottom: 56px; display: flex; flex-wrap: wrap; gap: 28px 48px; align-items: center; }
.signup-copy { flex: 1 1 420px; min-width: 0; }
.signup-copy h2 { margin: 0 0 8px; font-size: 30px; line-height: 1.2; }
.signup-copy p { margin: 0; color: var(--on-navy); }
.signup form { flex: 1 1 420px; min-width: 0; display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 14px; font-weight: 700; color: var(--on-navy); }
.field input { min-height: 48px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--navy-line); font: inherit; font-size: 16px; }
.signup .fine { flex: 1 1 100%; margin: 0; font-size: 13px; color: #B7C1D6; }
.signup .fine a { color: var(--on-navy); }
.hp { position: absolute; left: -5000px; }

/* Event cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.cards.fill { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.ev { border: 1px solid var(--line); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; gap: 8px; background: #fff; }
.ev .k { margin: 0; font-weight: 900; font-size: 13px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--blue); }
/* Colour-coded by type. Every text colour here passes 4.5:1 on its tint. */
.ev-event { background: #FFF4ED; border-color: #F6D3BD; }
.ev-event .k { color: #A3360A; }
.ev-webinar { background: #EAF6FD; border-color: #C5E3F5; }
.ev-webinar .k { color: #005A8E; }
.ev-guide { background: #ECF7EF; border-color: #C6E6CF; }
.ev-guide .k { color: #1E6B3A; }
.ev a { color: #00527F; } .ev a:hover { color: var(--navy); }
.ev h3 { margin: 0; font-size: 20px; line-height: 1.25; }
.ev .w { margin: 0; font-size: 16px; color: var(--muted); }
.ev a { margin-top: auto; padding-top: 10px; font-weight: 900; font-size: 16px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 32px; }
.section-head > div { flex: 1 1 520px; min-width: 0; }

/* Host */
.host .row { align-items: center; }
.host-photo { flex: 0 0 220px; width: 220px; height: 220px; border-radius: 50%; background: var(--line); object-fit: cover; display: flex; align-items: center; justify-content: center; color: var(--muted-2); font-weight: 700; }
.host-copy { flex: 1 1 460px; min-width: 0; }
.host-copy h2 { margin: 0 0 16px; font-size: 34px; line-height: 1.15; }
.host-copy p { margin: 0 0 16px; } .host-copy p:last-child { margin: 0; }

/* Sponsors */
.sponsors .wrap { padding-top: 48px; padding-bottom: 48px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px 40px; border-bottom: 1px solid var(--line); }
.sponsors h2 { margin: 0 0 4px; font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted-2); }
.sponsors p { margin: 0; font-size: 16px; color: var(--muted); max-width: 760px; }
.sponsor-list { flex: 2 1 520px; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.sponsor { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.sponsor .sp-logo { max-height: 56px; max-width: 200px; width: auto; height: auto; object-fit: contain; align-self: flex-start; }
.sp-person { display: flex; align-items: center; gap: 14px; }
.sp-photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: 0 0 64px; }
.sponsors .sponsor p { margin: 0; max-width: none; }
.sponsors .sp-name { font-weight: 800; color: var(--navy); font-size: 17px; }
.sponsors .sp-role { font-size: 15px; }
.sp-link { font-size: 15px; font-weight: 700; color: #00527F; }
.socials span { font-weight: 700; margin-right: 4px; }
.socials a { display: inline-block; margin: 4px 6px 0 0; padding: 4px 14px; border: 2px solid var(--navy); border-radius: 999px; font-size: 15px; font-weight: 700; color: var(--navy); text-decoration: none; }
.socials a:hover { background: var(--navy); color: #fff; }

/* Venue */
.venue .row { align-items: stretch; }
.venue-copy { flex: 1 1 360px; min-width: 0; }
.venue-copy h2 { margin: 0 0 16px; font-size: 34px; line-height: 1.15; }
.venue .map { flex: 1 1 460px; min-width: 0; align-self: center; border-radius: 16px; border: 1px solid var(--line); }

/* Closing CTA */
.closing .wrap { padding-top: 64px; padding-bottom: 64px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.closing h2 { margin: 0 0 8px; font-size: 32px; line-height: 1.2; }
.closing p { margin: 0; color: var(--on-navy); }
.closing > .wrap > div { flex: 1 1 480px; min-width: 0; }

/* Footer */
.site-footer { background: var(--navy-deep); color: #B7C1D6; font-size: 14px; }
.site-footer .wrap { padding-top: 28px; padding-bottom: 28px; display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; }
.site-footer p { margin: 0; }
.site-footer a { color: var(--on-navy); }

/* Inner page banner */
.banner .wrap { padding-top: 56px; padding-bottom: 48px; }
.banner h1 { margin: 0 0 14px; font-size: 44px; line-height: 1.12; }
.banner p.intro { margin: 0; font-size: 19px; color: var(--on-navy); max-width: 680px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.chips a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; background: #2A3A5E; color: #fff; text-decoration: none; font-weight: 700; font-size: 15px; }
.chips a:hover { background: #34477A; color: #fff; }
.topic { padding: 40px 0 8px; border-bottom: 1px solid var(--line); }
.topic h2 { margin: 0 0 6px; font-size: 30px; line-height: 1.2; }
.topic > p { margin: 0 0 24px; color: var(--muted); max-width: 700px; }
.topic .cards { margin-bottom: 32px; }

/* Travel */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 32px; }
.fact { background: #fff; color: var(--ink); border-radius: 14px; padding: 22px 24px; }
.fact .label { margin: 0 0 4px; font-size: 14px; font-weight: 900; letter-spacing: 1.2px; text-transform: uppercase; color: var(--orange); }
.fact .big { margin: 0 0 4px; font-size: 30px; font-weight: 900; line-height: 1.15; }
.fact p:last-child { margin: 0; font-size: 15px; color: var(--muted); }
.steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 22px; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; counter-increment: step; }
.steps li::before { content: counter(step); width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 900; display: flex; align-items: center; justify-content: center; }
.steps p { margin: 0; }
.prebook { margin-top: 32px; background: var(--orange-soft); border-radius: 14px; padding: 22px 24px; }
.prebook h3 { margin: 0 0 6px; font-size: 20px; }
.prebook p { margin: 0 0 16px; font-size: 16px; color: var(--muted); }
.code-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 0 0 18px; }
.code { font-size: 24px; font-weight: 900; letter-spacing: 2px; padding: 6px 16px; border: 2px dashed var(--orange); border-radius: 8px; background: #fff; }
.copy-btn { min-height: 44px; padding: 0 16px; border-radius: 8px; border: 2px solid var(--navy); background: #fff; color: var(--navy); font: inherit; font-weight: 700; cursor: pointer; }
.map-fig { flex: 1.3 1 480px; min-width: 0; margin: 0; }
.map-fig img { border-radius: 14px; border: 1px solid var(--line); }
.map-fig figcaption { margin-top: 10px; font-size: 14px; color: var(--muted-2); }
.video-box { flex: 1.3 1 480px; min-width: 0; }
.video-box video { display: block; width: min(100%, 420px, calc(80vh * 9 / 16)); height: auto; margin: 0 auto; border-radius: 14px; background: #000; }
.video-link { aspect-ratio: 16 / 9; border-radius: 14px; background: var(--navy); color: #fff; text-decoration: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.video-link:hover { color: #fff; background: #23365F; }
.play { width: 76px; height: 76px; border-radius: 50%; background: var(--orange); display: flex; align-items: center; justify-content: center; }

/* Prose pages */
.prose { max-width: 760px; margin: 0 auto; padding: 56px 24px 80px; line-height: 1.65; }
.prose h1 { margin: 0 0 8px; font-size: 40px; line-height: 1.15; }
.prose h2 { margin: 36px 0 10px; font-size: 24px; }
.prose p { margin: 0 0 18px; }

@media (max-width: 700px) {
  .nav { gap: 10px 16px; font-size: 15px; } .nav .btn { min-height: 40px; padding: 0 14px; }
  .site-header .wrap { padding-top: 14px; padding-bottom: 14px; }
  .hero h1 { font-size: 38px; } .h2 { font-size: 30px; } .banner h1 { font-size: 34px; }
  .section { padding-top: 56px; padding-bottom: 56px; }
  .card-next { padding: 24px; }
  .host-photo { flex-basis: 160px; width: 160px; height: 160px; }
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
