/* TESPAM UK — site styles */
:root {
  --navy: #0E1E45;
  --navy-2: #172B5E;
  --royal: #1F47A8;
  --red: #C8102E;
  --red-dark: #A30D25;
  --ink: #1A2233;
  --muted: #566176;
  --line: #D9DEE8;
  --mist: #EEF1F6;
  --white: #FFFFFF;
  --green: #0A6B3B;
  --serif: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--royal); text-underline-offset: 3px; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--serif); color: var(--navy); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 780px; }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: 10px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* utility bar */
.utility { background: var(--navy); color: #C9D2E6; font-size: 14px; }
.utility__in { display: flex; align-items: center; gap: 20px; min-height: 40px; flex-wrap: wrap; }
.utility__addr { margin: 0; flex: 1 1 auto; }
.utility__mail { color: #fff; text-decoration: none; }
.utility__mail:hover { color: #fff; text-decoration: underline; }
.social { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.social a { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: inherit; }
.social--small a { color: #C9D2E6; }
.social--small a:hover { color: #fff; background: rgba(255,255,255,.1); }

/* masthead */
.masthead { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.masthead__in { display: flex; align-items: center; gap: 24px; min-height: 100px; }
.brand img { height: 84px; width: auto; }
.nav { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { color: var(--navy); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 4px; }
.nav a:hover { background: var(--mist); color: var(--navy); }
.nav a[aria-current] { color: var(--red); }
.navtoggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 6px; width: 46px; height: 42px; padding: 10px; cursor: pointer; }
.navtoggle span { display: block; height: 2px; background: var(--navy); margin: 4px 0; transition: transform .2s; }

/* ticker */
.ticker { display: flex; align-items: stretch; background: var(--red); color: #fff; font-size: 15px; position: relative; z-index: 20; }
.ticker__label { display: flex; align-items: center; gap: 8px; padding: 0 18px; background: var(--red-dark); font-weight: 700; white-space: nowrap; }
.ticker__dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }
.ticker__viewport { flex: 1; overflow: hidden; position: relative; mask-image: linear-gradient(90deg, transparent, #000 30px, #000 calc(100% - 30px), transparent); }
.ticker__track { list-style: none; margin: 0; padding: 0; display: flex; width: max-content; animation: tick var(--dur, 60s) linear infinite; }
.ticker:hover .ticker__track, .ticker.is-paused .ticker__track, .ticker:focus-within .ticker__track { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(-50%); } }
.ticker__track li { display: flex; align-items: center; padding: 11px 0; }
.ticker__track li::after { content: ""; width: 5px; height: 5px; background: rgba(255,255,255,.6); transform: rotate(45deg); margin: 0 26px; }
.ticker__track a { color: #fff; text-decoration: none; white-space: nowrap; }
.ticker__track a:hover { text-decoration: underline; }
.ticker .tag { background: rgba(255,255,255,.18); color: #fff; margin-right: 10px; }
.ticker__pause, .ticker__all { background: var(--red-dark); color: #fff; border: 0; font: 600 14px var(--sans); padding: 0 14px; cursor: pointer; text-decoration: none; display: flex; align-items: center; white-space: nowrap; }
.ticker__pause { border-left: 1px solid rgba(255,255,255,.2); }
.ticker__all:hover, .ticker__pause:hover { background: var(--navy); color: #fff; }

/* tags */
.tag { display: inline-block; font: 600 12px/1 var(--sans); letter-spacing: .02em; padding: 5px 8px; border-radius: 3px; background: var(--mist); color: var(--navy); }
.tag--event { background: #E3E9F8; color: var(--royal); }
.tag--training { background: #E1F1F6; color: #0B5D73; }
.tag--organisation { background: #F6E3E6; color: var(--red-dark); }
.tag--business { background: #F3EEDC; color: #6B5310; }
.tag--report, .tag--reports { background: #E6EEE9; color: var(--green); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 4px; font: 600 16px var(--sans); text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-dark); color: #fff; }
.btn--line { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--line:hover { background: var(--navy); color: #fff; }
.btn--white { background: #fff; color: var(--navy); }
.btn--white:hover { background: var(--mist); color: var(--navy); }
.btn--ghost { border-color: rgba(255,255,255,.6); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.textlink { font-weight: 600; color: var(--royal); }

/* hero */
.hero { background: linear-gradient(180deg, var(--mist), var(--white)); padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); }
.hero__grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero h1 { font-size: clamp(42px, 6.4vw, 76px); letter-spacing: -.01em; margin-bottom: .35em; }
.lead { font-size: clamp(18px, 1.6vw, 20px); color: #37425A; max-width: 60ch; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* the signature element: a London street name plate */
.streetsign {
  position: relative; background: #fff; border: 3px solid #111; outline: 8px solid #fff;
  box-shadow: 0 0 0 9px #C9CED8, 0 24px 40px -18px rgba(14,30,69,.45);
  padding: 22px 26px 26px; display: grid; gap: 4px; max-width: 420px; margin: 0 auto;
  transform: rotate(-1.2deg);
}
.streetsign__borough { font: 600 12px/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: #333; border-bottom: 2px solid #111; padding-bottom: 8px; margin-bottom: 8px; }
.streetsign__name { font: 700 clamp(30px, 3.6vw, 44px)/1.05 var(--sans); text-transform: uppercase; color: #111; letter-spacing: .01em; }
.streetsign__district { font: 700 clamp(26px, 3vw, 36px)/1 var(--sans); color: var(--red); justify-self: end; margin-top: 6px; }
.hero__caption { text-align: center; color: var(--muted); font-size: 15px; margin: 30px auto 0; max-width: 36ch; }

/* sections */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.h-section { font-size: clamp(30px, 3.6vw, 42px); }
.h-page { font-size: clamp(34px, 4.4vw, 50px); }
.h-sub { font-size: 22px; margin-top: 40px; }
.section__intro { color: var(--muted); max-width: 62ch; margin-bottom: 36px; font-size: 18px; }
.h-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* about */
.about { border-top: 1px solid var(--line); }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 24px; border-top: 3px solid var(--navy); }
.role { padding: 28px 32px 8px 0; }
.role + .role { padding-left: 32px; border-left: 1px solid var(--line); }
.role h3 { font-size: 24px; }
.about__note { margin-top: 24px; padding: 16px 20px; background: var(--mist); border-left: 4px solid var(--red); color: #37425A; }

/* lines of work */
.work { background: var(--mist); }
.line { display: grid; grid-template-columns: 200px 1fr; gap: clamp(20px, 4vw, 48px); padding: 36px 0; border-top: 1px solid var(--line); align-items: start; }
.line:last-child { border-bottom: 1px solid var(--line); }
.line__logo { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 18px; display: grid; place-items: center; aspect-ratio: 1; }
.line__logo img { max-height: 160px; width: auto; }
.line__body h3 { font-size: 26px; }
.line__body > p { max-width: 64ch; }
.ticks { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 6px; }
.ticks li { padding-left: 22px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .62em; width: 10px; height: 2px; background: var(--red); }

/* summit */
.summit { background: var(--navy); color: #DCE3F2; padding: clamp(56px, 8vw, 96px) 0; position: relative; overflow: hidden; }
.summit::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 2px, transparent 2px 22px); pointer-events: none; }
.summit__grid { position: relative; display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.summit__date { border: 2px solid rgba(255,255,255,.25); padding: 28px; display: grid; gap: 6px; text-align: left; }
.summit__day { font: 700 clamp(84px, 10vw, 128px)/.9 var(--serif); color: #fff; }
.summit__month { font: 600 22px var(--sans); color: #fff; }
.summit__place { font-size: 15px; color: #B9C4DD; }
.summit__count { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.2); font-weight: 600; color: #fff; min-height: 1.6em; }
.summit h2 { color: #fff; font-size: clamp(28px, 3.4vw, 42px); }
.summit p { max-width: 62ch; font-size: 18px; }
.summit__sub { color: #fff; font: 600 16px var(--sans); margin-top: 24px; }
.flags { display: flex; gap: 6px; margin-bottom: 18px; }
.flags i { width: 42px; height: 6px; border-radius: 3px; }
.f-uk { background: linear-gradient(90deg, #1F47A8 0 50%, #C8102E 50%); }
.f-tr { background: #E30A17; }
.f-sa { background: #0A6B3B; }
.chips { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { border: 1px solid rgba(255,255,255,.35); color: #fff; padding: 6px 12px; border-radius: 999px; font-size: 15px; }
.summit__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* events */
.evlist { list-style: none; padding: 0; margin: 24px 0 0; }
.ev { display: grid; grid-template-columns: 110px 1fr auto; gap: 28px; padding: 28px 0; border-top: 1px solid var(--line); }
.ev:last-child { border-bottom: 1px solid var(--line); }
.ev__date { font: 600 15px var(--sans); color: var(--muted); text-align: center; border: 1px solid var(--line); padding: 12px 6px; align-self: start; border-top: 4px solid var(--red); }
.ev__date span { display: block; font: 700 40px/1 var(--serif); color: var(--navy); margin-bottom: 4px; }
.ev__meta { color: var(--red); font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.ev h3 { font-size: 24px; }
.ev__where { color: var(--muted); }
.ev__img { width: 180px; border-radius: 4px; align-self: start; }
.pastlist { padding-left: 1.2em; color: var(--muted); }
.pastlist span { color: var(--navy); font-weight: 600; }
.empty { color: var(--muted); padding: 24px; background: var(--mist); border-radius: 4px; }

/* notices */
.notices-preview { background: var(--mist); }
.npre { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 24px; border-top: 3px solid var(--navy); }
.npre__item { padding: 24px 28px 8px 0; }
.npre__item + .npre__item { padding-left: 28px; border-left: 1px solid var(--line); }
.npre__item h3 { font-size: 21px; }
.npre__item h3 a { color: var(--navy); text-decoration: none; }
.npre__item h3 a:hover { color: var(--red); text-decoration: underline; }
.ncat { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.pin { font-size: 12px; font-weight: 700; color: var(--red); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 24px; }
.filters a { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--navy); font-weight: 600; font-size: 15px; }
.filters a[aria-current] { background: var(--navy); color: #fff; border-color: var(--navy); }
.nlist { list-style: none; padding: 0; margin: 0; }
.nlist li { padding: 26px 0; border-top: 1px solid var(--line); }
.nlist h2 { font-size: 26px; }
.nlist h2 a { color: var(--navy); text-decoration: none; }
.nlist h2 a:hover { color: var(--red); text-decoration: underline; }
.crumbs a { font-weight: 600; }
.notice h1 { font-size: clamp(32px, 4vw, 46px); }
.notice__img { margin: 24px 0; border-radius: 4px; }
.prose { font-size: 18px; line-height: 1.7; }
.prose h2 { font-size: 24px; margin-top: 1.6em; }

/* network */
.logos { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.logos a { display: grid; grid-template-columns: 110px 1fr; gap: 18px; align-items: center; padding: 22px; background: #fff; text-decoration: none; color: var(--muted); height: 100%; font-size: 15px; }
.logos a:hover { background: var(--mist); }
.logos img { width: 110px; height: 100px; object-fit: contain; }
.logos strong { display: block; color: var(--navy); font-size: 17px; margin-bottom: 2px; }
.network__more { margin-top: 24px; color: var(--muted); }

/* contact */
.contact { border-top: 1px solid var(--line); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); }
address { font-style: normal; font-size: 18px; margin-bottom: 16px; line-height: 1.55; }
.bigmail { font: 700 clamp(22px, 2.4vw, 28px) var(--serif); color: var(--red); }
.contact__transport { color: var(--muted); }
.map { border: 1px solid var(--line); border-radius: 4px; overflow: hidden; aspect-ratio: 16 / 10; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.small { font-size: 14px; margin-top: 8px; }
.form { background: var(--mist); padding: clamp(22px, 4vw, 36px); border-radius: 6px; display: grid; gap: 14px; align-self: start; border-top: 4px solid var(--navy); }
.form h3 { font-size: 24px; margin: 0; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; color: var(--navy); }
.form input[type=text], .form input[type=email], .form select, .form textarea {
  font: 400 16px var(--sans); padding: 11px 12px; border: 1px solid #B9C1D0; border-radius: 4px; background: #fff; color: var(--ink); width: 100%;
}
.form textarea { resize: vertical; }
.form .check { grid-template-columns: 22px 1fr; align-items: start; font-weight: 400; color: var(--ink); }
.form .check input { width: 18px; height: 18px; margin-top: 3px; }
.form .btn { justify-self: start; }
.alert { padding: 12px 14px; border-radius: 4px; margin: 0; }
.alert--ok { background: #E3F2E9; color: #0A5530; border-left: 4px solid var(--green); }
.alert--err { background: #FBE6E9; color: var(--red-dark); border-left: 4px solid var(--red); }

/* footer */
.foot { background: var(--navy); color: #C9D2E6; padding: 56px 0 0; font-size: 15px; }
.foot a { color: #fff; }
.foot h2 { color: #fff; font: 600 16px var(--sans); margin-bottom: 14px; }
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot__brand { display: grid; grid-template-columns: 72px 1fr; gap: 16px; align-items: start; }
.foot__brand img { width: 72px; background: #fff; border-radius: 50%; padding: 6px; }
.foot__links { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.foot__links a { text-decoration: none; }
.foot__links a:hover { text-decoration: underline; }
.social--foot a { background: rgba(255,255,255,.08); color: #fff; width: 40px; height: 40px; }
.social--foot a:hover { background: var(--red); color: #fff; }
.foot__base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.15); margin-top: 40px; padding-top: 18px; padding-bottom: 18px; font-size: 14px; }
.foot__base p { margin: 0; }

/* responsive */
@media (max-width: 1060px) {
  .navtoggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; flex-direction: column; padding: 8px var(--gutter) 16px; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px -12px rgba(14,30,69,.25); }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 8px; border-bottom: 1px solid var(--mist); }
  .masthead__in { position: relative; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .hero__grid, .about__grid, .summit__grid, .contact__grid { grid-template-columns: 1fr; }
  .role, .role + .role { padding: 24px 0 8px; border-left: 0; }
  .role + .role { border-top: 1px solid var(--line); }
  .npre { grid-template-columns: 1fr; }
  .npre__item, .npre__item + .npre__item { padding: 22px 0 6px; border-left: 0; }
  .npre__item + .npre__item { border-top: 1px solid var(--line); }
  .logos { grid-template-columns: 1fr 1fr; }
  .ev { grid-template-columns: 84px 1fr; gap: 18px; }
  .ev__img { grid-column: 2; width: 100%; max-width: 320px; }
  .utility__addr { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .brand img { height: 56px; }
  .masthead__in { min-height: 72px; }
  .line { grid-template-columns: 1fr; }
  .line__logo { width: 140px; aspect-ratio: auto; }
  .line__logo img { max-height: 110px; }
  .logos { grid-template-columns: 1fr; }
  .logos a { grid-template-columns: 80px 1fr; }
  .logos img { width: 80px; height: 72px; }
  .foot__grid { grid-template-columns: 1fr; }
  .ticker__label { padding: 0 10px; }
  .ticker__all { display: none; }
  .streetsign { transform: none; }
  .utility__in { justify-content: space-between; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker__track { animation: none; width: auto; }
  .ticker__viewport { overflow-x: auto; mask-image: none; }
  .ticker__dot { animation: none; }
  .ticker__pause { display: none; }
}
[id] { scroll-margin-top: 120px; }
