/* BrightonGo: the one stylesheet. Tokens first; keep selector specificity flat.
   Fonts: Inter (text and headings), Fraunces (the written briefing and quotes) and EB Garamond
   (the BrightonGo wordmark, as in the logo), all SIL Open Font Licence, self-hosted. */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Doto";
  src: url("../fonts/doto-latin.woff2") format("woff2");
  font-weight: 900;
  font-display: swap;
}

@font-face {
  font-family: "EB Garamond";
  src: url("../fonts/eb-garamond-latin-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* The BrightonGo logo's navy and gold (the Royal Pavilion brand pack, October 2026; the
     same family as LewesGo). "Go" in the wordmark uses the darker gold that reads on the
     pale header (large text); the logo's own gold is for rules and decoration. */
  --colour-logo-navy: #061c3a;
  --colour-logo-gold: #b88727;
  --colour-logo-gold-bright: #daaa4c;
  /* Station and bus stop boards: amber-yellow LEDs on black */
  --colour-led: #ffc21a;
  --colour-led-dim: #c9951a;
  /* Colour. Every text/background pair used below is at least 4.5:1. */
  --colour-bg: #f4efe5;
  --colour-surface: #ffffff;
  --colour-sunk: #e9e2d3;
  --colour-ink: #102833;
  --colour-ink-muted: #46575e;
  --colour-brand: #0d5f6e;
  --colour-brand-dark: #102833;
  --colour-brand-ink: #ffffff;
  --colour-accent: #efbe50;
  --colour-accent-light: #f6d98f;
  --colour-accent-ink: #1b1a12;
  --colour-navy: #102833;
  --colour-night: #102833;
  --colour-night-ink: #f7f2e6;
  --colour-night-muted: #cfe0e2;
  --colour-downs: #0d5f6e;
  --colour-river: #1c5d8a;
  --colour-link: #0b5a68;
  --colour-link-hover: #102833;
  --colour-focus: #1f5fbf;
  --colour-border: #dcd3c1;

  /* Category colours for event and place cards without a picture. */
  --cat-music: #5b2a86;
  --cat-markets: #1f5f4a;
  --cat-arts: #b3261e;
  --cat-community: #1c5d8a;
  --cat-comedy: #8a4b08;
  --cat-food: #9a3412;
  --cat-family: #0e6e6e;
  --cat-business: #374151;
  --cat-other: #4a4d55;
  --cat-film: #7a1f3d;

  /* Type */
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-heading: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-base: 1.0625rem;
  --text-lg: 1.25rem;
  --text-xl: clamp(1.5rem, 1.3rem + 0.8vw, 1.875rem);
  --text-2xl: clamp(2rem, 1.5rem + 2.4vw, 3rem);
  --text-hero: clamp(2.5rem, 1.6rem + 4.5vw, 4.5rem);
  --leading: 1.6;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;

  --radius: 0.75rem;
  --radius-sm: 0.5rem;
  --radius-pill: 999px;
  --shadow: 0 1px 2px rgb(22 24 29 / 6%), 0 6px 20px rgb(22 24 29 / 8%);
  --shadow-lift: 0 2px 4px rgb(22 24 29 / 8%), 0 14px 32px rgb(22 24 29 / 14%);
  --measure: 68ch;
  --wrap: 76rem;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --pin-featured-poi: #b3261e;
  --pin-arts-heritage: #7a2e8f;
  --pin-food-drink: #9a3412;
  --pin-pubs-breweries: #8a5a00;
  --pin-stay: #0f5a73;
  --pin-shops: #1c5d8a;
  --pin-charity-shops: #a1275e;
  --pin-beauty: #6b3fa0;
  --pin-health: #0e6e5c;
  --pin-services: #374151;
  --pin-estate-agents: #4a5a1f;
  --pin-sport: #0b5d8a;
  --pin-parks-play: #1f6b3a;
  --pin-council-civic: #1f3a8a;
  --pin-schools: #5b4b00;
  --pin-transport: #0f4c5c;
  --pin-bus-stops: #b1450f;
  --pin-taxi: #6b5500;
  --pin-toilets: #2f5d7c;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

/* Jumps to a section or card land below the sticky header. */
[id] {
  scroll-margin-top: 6rem;
}

body {
  margin: 0;
  background: var(--colour-bg);
  color: var(--colour-ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading);
  font-feature-settings: "cv11", "ss01";
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: var(--space-7) 0 var(--space-3);
}

h1 {
  font-size: var(--text-2xl);
  margin-top: var(--space-5);
}

h2 {
  font-size: var(--text-xl);
}

h3 {
  font-size: var(--text-lg);
}

h4 {
  font-size: var(--text-base);
}

p,
ul,
ol {
  max-width: var(--measure);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--colour-link);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--colour-link-hover);
}

:focus-visible {
  outline: 3px solid var(--colour-focus);
  outline-offset: 2px;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.skip-link {
  position: absolute;
  left: var(--space-2);
  top: -3rem;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  background: var(--colour-brand);
  color: var(--colour-brand-ink);
  z-index: 30;
}

.skip-link:focus {
  top: var(--space-2);
}

.lead {
  font-size: var(--text-lg);
  color: var(--colour-ink-muted);
}

.plain-list {
  padding-left: var(--space-5);
}

.plain-list li + li {
  margin-top: var(--space-3);
}

/* Buttons: one class, same specificity as a link, so link styles never win. */
.button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 2.75rem;
  padding: var(--space-2) var(--space-5);
  border: 2px solid var(--colour-brand);
  border-radius: var(--radius-pill);
  background: var(--colour-brand);
  color: var(--colour-brand-ink);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s var(--ease), transform 0.15s var(--ease);
}

.button:hover {
  background: var(--colour-brand-dark);
  border-color: var(--colour-brand-dark);
  color: var(--colour-brand-ink);
  transform: translateY(-1px);
}

.button--secondary {
  background: var(--colour-surface);
  color: var(--colour-brand-dark);
}

.button--secondary:hover {
  background: var(--colour-sunk);
  color: var(--colour-brand-dark);
}

.link-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--colour-link);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

/* Header and menu */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--colour-border);
  background: rgb(255 253 248 / 94%);
  backdrop-filter: saturate(1.4) blur(10px);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-4);
  padding-top: var(--space-2);
  padding-bottom: var(--space-2);
}

.site-name {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 0.6rem;
  margin-right: auto;
  color: var(--colour-logo-navy);
  text-decoration: none;
}

.site-name img {
  display: block;
  width: 3.75rem;
  height: 3.75rem;
  filter: drop-shadow(0 2px 4px rgb(12 25 57 / 25%));
}

/* The Go family logo glint (assets/js/logo-glint.js): one sheen and a tiny star across the
   badge, once per session. The sheen is masked to the badge artwork, so it never shows
   outside the logo or widens the page; the star sits on the Royal Pavilion's main dome. */
.logo-glint {
  --glint-x: 39%;
  --glint-y: 15%;
  --glint-size: 0.7rem;
  position: relative;
  display: block;
  flex: none;
  isolation: isolate;
}

.logo-glint::before,
.logo-glint::after {
  content: "";
  position: absolute;
  pointer-events: none;
  opacity: 0;
}

.logo-glint::before {
  inset: 0;
  z-index: 2;
  background: linear-gradient(115deg, transparent 38%, rgb(255 255 255 / 15%) 45%, rgb(255 255 255 / 86%) 50%, rgb(255 255 255 / 16%) 55%, transparent 62%) 140% 0 / 300% 100% no-repeat;
  mask: url("../img/brand/brightongo-badge.webp") center / contain no-repeat;
  mix-blend-mode: screen;
}

.logo-glint::after {
  left: var(--glint-x);
  top: var(--glint-y);
  z-index: 3;
  width: var(--glint-size);
  aspect-ratio: 1;
  transform: translate(-50%, -50%) scale(0.1);
  background:
    linear-gradient(90deg, transparent 43%, rgb(255 255 255 / 98%) 48%, rgb(255 255 255 / 98%) 52%, transparent 57%),
    linear-gradient(0deg, transparent 43%, rgb(255 255 255 / 98%) 48%, rgb(255 255 255 / 98%) 52%, transparent 57%);
  filter: drop-shadow(0 0 0.25rem rgb(255 255 255 / 80%));
}

.logo-glint.is-glinting::before {
  animation: logo-sheen 760ms cubic-bezier(0.2, 0.7, 0.25, 1) 260ms 1 both;
}

.logo-glint.is-glinting::after {
  animation: logo-star 547ms ease-out 594ms 1 both;
}

@keyframes logo-sheen {
  0% { opacity: 0; background-position: 140% 0; }
  15% { opacity: 0.12; }
  48% { opacity: 0.7; }
  75% { opacity: 0.2; }
  100% { opacity: 0; background-position: -40% 0; }
}

@keyframes logo-star {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.1) rotate(0deg); }
  32% { opacity: 0.95; transform: translate(-50%, -50%) scale(1) rotate(28deg); }
  58% { opacity: 0.85; transform: translate(-50%, -50%) scale(0.76) rotate(45deg); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(0.12) rotate(70deg); }
}

@media (prefers-reduced-motion: reduce) {
  .logo-glint::before,
  .logo-glint::after {
    display: none;
  }
}

.site-name__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.site-name__word {
  font-family: "EB Garamond", Garamond, Georgia, serif;
  font-size: 2.45rem;
  font-weight: 600;
  letter-spacing: -0.005em;
}

.site-name__word span {
  color: var(--colour-logo-gold);
}

.site-name__tag {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.3rem;
  color: var(--colour-logo-navy);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

@media (max-width: 30rem) {
  .site-name {
    gap: 0.45rem;
  }

  .site-name img {
    width: 3.1rem;
    height: 3.1rem;
  }

  .site-name__word {
    font-size: 2rem;
  }

  .site-name__tag {
    font-size: 0.58rem;
    letter-spacing: 0.06em;
  }
}

/* The smallest phones: the name alone, so the menu button stays on the same line. */
/* The tagline sits between two thin gold rules, as in the logo. */
.site-name__tag::before,
.site-name__tag::after {
  content: "";
  flex: none;
  width: 1.1rem;
  height: 1px;
  background: var(--colour-logo-gold-bright);
}

@media (max-width: 30rem) {
  .site-name__tag::before,
  .site-name__tag::after {
    display: none;
  }
}

@media (max-width: 22.5rem) {
  .site-name__tag {
    display: none;
  }
}

@media (min-width: 64rem) {
  .site-name img {
    width: 4.75rem;
    height: 4.75rem;
  }

  .site-name__word {
    font-size: 2.75rem;
  }

  .site-name__tag {
    font-size: 0.82rem;
  }
}

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__list a {
  display: block;
  padding: var(--space-2) 0.6rem;
  border-radius: var(--radius-pill);
  color: var(--colour-ink);
  font-size: var(--text-sm);
  font-weight: 700;
  text-decoration: none;
}

.site-nav__list a:hover {
  background: var(--colour-sunk);
  color: var(--colour-ink);
}

.site-nav__list a[aria-current="page"] {
  background: var(--colour-brand-dark);
  color: var(--colour-night-ink);
}

.social {
  display: flex;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--colour-border);
  border-radius: 50%;
  background: var(--colour-surface);
  color: var(--colour-ink);
}

.social a:hover {
  border-color: var(--colour-brand);
  color: var(--colour-brand);
}

.social svg {
  width: 1.15rem;
  height: 1.15rem;
}

.menu-toggle {
  display: none;
}

/* The menu script adds .has-menu-js; without JavaScript the menu stays open. The full menu
   needs 76rem beside the logo; below that it folds behind the Menu button. */
@media (max-width: 76rem) {
  .has-menu-js .menu-toggle {
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
    padding: var(--space-2) var(--space-4);
    border: 1px solid var(--colour-border);
    border-radius: var(--radius-pill);
    background: var(--colour-surface);
    color: var(--colour-ink);
    font: inherit;
    font-weight: 700;
  }

  .has-menu-js .site-nav {
    display: contents;
  }

  .has-menu-js .site-nav__list {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    order: 5;
    padding: var(--space-2) 0;
  }

  .has-menu-js .site-nav__list.is-open {
    display: flex;
  }

  .has-menu-js .site-nav__list a {
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-base);
  }
}

@media (max-width: 30rem) {
  .site-header .social {
    display: none;
  }
}

/* Footer */
.site-footer {
  margin-top: var(--space-8);
  padding: var(--space-7) 0 var(--space-6);
  background: var(--colour-night);
  color: var(--colour-night-ink);
  font-size: var(--text-sm);
}

.site-footer a,
.site-footer .link-button {
  color: var(--colour-night-ink);
}

.site-footer a:hover {
  color: #ffffff;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  margin: 0 0 var(--space-5);
  padding: 0;
  list-style: none;
}

.site-footer p {
  max-width: 60ch;
  color: #d9d3c7;
}

/* Breadcrumbs and notices */
.crumbs {
  margin-top: var(--space-5);
  font-size: var(--text-sm);
  color: var(--colour-ink-muted);
}

.notice {
  padding: var(--space-4) var(--space-5);
  border-left: 4px solid var(--colour-brand);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--colour-sunk);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem var(--space-3);
  border-radius: var(--radius-pill);
  background: var(--colour-sunk);
  color: var(--colour-ink);
  font-size: var(--text-xs);
  font-weight: 600;
}

.tag--price {
  background: #dff0e6;
  color: #14432f;
}

/* Eyebrows: the small gold capitals above big headings */
.eyebrow {
  margin: 0 0 var(--space-2);
  color: var(--colour-brand);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Page banner: deep green, optionally over a photo. Set with `hero:` in front matter. */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: var(--space-6) 0 var(--space-7);
  background:
    radial-gradient(50rem 22rem at 90% -10%, rgb(255 255 255 / 8%), transparent 70%),
    var(--colour-night);
  color: var(--colour-night-ink);
}

.page-hero--photo {
  padding: var(--space-8) 0;
}

.page-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.page-hero--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgb(10 26 20 / 92%) 0%, rgb(10 26 20 / 78%) 55%, rgb(10 26 20 / 45%) 100%);
}

.page-hero__inner {
  position: relative;
  z-index: 2;
}

.page-hero .eyebrow {
  color: var(--colour-accent-light);
}

.page-hero h1 {
  max-width: 18ch;
  margin: 0 0 var(--space-3);
  font-size: var(--text-hero);
  letter-spacing: -0.035em;
}

.page-hero__lead {
  max-width: 52ch;
  margin: 0;
  color: var(--colour-night-muted);
  font-size: var(--text-lg);
  font-weight: 500;
}

.page-hero .crumbs {
  margin: 0 0 var(--space-4);
  color: var(--colour-night-muted);
}

.page-hero .crumbs a {
  color: var(--colour-night-ink);
}

/* Homepage hero: full width, over a slow crossfading reel of credited photos of Brighton */
.home-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 34rem;
  overflow: hidden;
  padding: var(--space-8) 0 var(--space-7);
  background: var(--colour-night);
  color: #ffffff;
}

@media (min-width: 56rem) {
  .home-hero {
    align-items: center;
    min-height: min(46rem, 82vh);
  }
}

.home-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.home-hero .eyebrow {
  color: var(--colour-accent-light);
}

.home-hero h1 {
  max-width: 13ch;
  overflow-wrap: break-word;
  margin: 0 0 var(--space-4);
  font-size: var(--text-hero);
  letter-spacing: -0.04em;
  text-shadow: 0 2px 18px rgb(0 0 0 / 45%);
}

.home-hero .lead {
  max-width: 44ch;
  color: #eef2ef;
  text-shadow: 0 1px 10px rgb(0 0 0 / 55%);
}

.reel {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Keeps the headline readable over any photo: darker to the left and at the foot. */
.reel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgb(8 22 17 / 88%) 0%, rgb(8 22 17 / 62%) 45%, rgb(8 22 17 / 18%) 100%),
    linear-gradient(0deg, rgb(8 22 17 / 70%) 0%, transparent 45%);
}

.reel__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.6s ease, visibility 1.6s;
}

.reel__slide.is-active {
  opacity: 1;
  visibility: visible;
}

.reel__slide img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transform-origin: 60% 45%;
}

.reel__slide.is-active img {
  animation: reel-drift 9s ease-out both;
}

.reel.is-paused .reel__slide.is-active img {
  animation-play-state: paused;
}

@keyframes reel-drift {
  from {
    transform: scale(1.02) translate3d(0, 0, 0);
  }

  to {
    transform: scale(1.12) translate3d(-1.5%, -1%, 0);
  }
}

.reel__slide .credit {
  z-index: 3;
}

.reel__pause {
  position: absolute;
  right: var(--space-4);
  bottom: 2.2rem;
  z-index: 3;
  min-height: 2.75rem;
  padding: var(--space-2) var(--space-4);
  border: 1px solid rgb(255 255 255 / 55%);
  border-radius: var(--radius-pill);
  background: rgb(8 22 17 / 55%);
  color: #ffffff;
  font: inherit;
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
}

/* On phones the hero text runs to the foot of the photo: the button goes to the top. */
@media (max-width: 55.99rem) {
  .reel__pause {
    top: var(--space-3);
    bottom: auto;
    min-height: 2.5rem;
    padding: var(--space-1) var(--space-3);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reel__slide,
  .reel__slide.is-active img {
    transition: none;
    animation: none;
  }
}

.site-search {
  display: flex;
  gap: var(--space-2);
  max-width: 34rem;
  margin: var(--space-5) 0 var(--space-3);
  padding: var(--space-2);
  border-radius: var(--radius);
  background: var(--colour-surface);
  box-shadow: 0 10px 30px rgb(0 0 0 / 25%);
}

.site-search input {
  flex: 1;
  min-width: 0;
  min-height: 2.75rem;
  padding: 0 var(--space-3);
  border: 0;
  background: none;
  color: var(--colour-ink);
  font: inherit;
}

.button--gold {
  border-color: var(--colour-accent);
  background: var(--colour-accent);
  color: var(--colour-accent-ink);
}

.button--gold:hover {
  border-color: #c38f2f;
  background: #c38f2f;
  color: var(--colour-accent-ink);
}

.chips {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: var(--space-4) 0;
  padding: 0;
  list-style: none;
}

.chips a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: var(--space-2) var(--space-4);
  border: 1px solid rgb(247 242 230 / 35%);
  border-radius: var(--radius-pill);
  background: rgb(247 242 230 / 10%);
  color: var(--colour-night-ink);
  font-size: var(--text-sm);
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s var(--ease);
}

.chips a:hover {
  background: rgb(247 242 230 / 22%);
  color: #ffffff;
}

/* Section bands and headings */
.band {
  padding: var(--space-7) 0;
}

.band--sunk {
  background: var(--colour-sunk);
}

.band--night {
  background: var(--colour-night);
  color: var(--colour-night-ink);
}

.band > .wrap > h2:first-child,
.band > .wrap > .section-head:first-child,
.band > .wrap > .eyebrow + h2 {
  margin-top: 0;
}

.section-title {
  margin: 0 0 var(--space-4);
  font-size: var(--text-2xl);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2) var(--space-4);
  margin-top: var(--space-7);
}

.section-head h2 {
  margin: 0;
}

.section-head a {
  font-weight: 700;
  text-decoration: none;
}

.section-head a:hover {
  text-decoration: underline;
}

.section-note {
  margin: var(--space-1) 0 var(--space-4);
  color: var(--colour-ink-muted);
}

/* Brighton today: a written briefing with the weather and a local fact */
.briefing {
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 60rem) {
  .briefing {
    grid-template-columns: 1.5fr 1fr;
    align-items: start;
  }
}

.briefing__letter {
  padding: var(--space-5) var(--space-5) var(--space-4);
  border-top: 5px solid var(--colour-accent);
  border-radius: var(--radius);
  background: var(--colour-surface);
  box-shadow: var(--shadow);
}

.briefing__letter h2 {
  margin: 0 0 var(--space-1);
  font-size: var(--text-2xl);
}

.briefing__date {
  margin: 0 0 var(--space-4);
  color: var(--colour-ink-muted);
  font-weight: 600;
}

.briefing__letter p {
  font-family: var(--font-serif);
  font-size: 1.1875rem;
  line-height: 1.65;
}

.briefing__letter h3 {
  margin: var(--space-5) 0 var(--space-1);
  color: var(--colour-brand);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.briefing__letter h3 + p {
  margin-top: 0;
}

.briefing__sign {
  color: var(--colour-ink-muted);
  font-style: italic;
}

.briefing__side {
  display: grid;
  gap: var(--space-4);
}

.weather {
  padding: var(--space-5);
  border-radius: var(--radius);
  background: linear-gradient(160deg, #1c5d8a, #123f5f);
  color: #f2f7fb;
  box-shadow: var(--shadow);
}

.weather h2 {
  margin: 0 0 var(--space-3);
  font-size: var(--text-lg);
}

.weather__days {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.weather__days li {
  padding: var(--space-3) var(--space-2);
  border-radius: var(--radius-sm);
  background: rgb(255 255 255 / 10%);
  text-align: center;
}

.weather__day {
  display: block;
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.weather__icon {
  display: block;
  font-size: 1.75rem;
  line-height: 1.4;
}

.weather__temp {
  display: block;
  font-weight: 800;
}

.weather__rain {
  display: block;
  font-size: var(--text-xs);
}

.weather p {
  margin: var(--space-3) 0 0;
  font-size: var(--text-sm);
}

.weather a {
  color: #ffffff;
}

.fact {
  position: relative;
  padding: var(--space-5);
  border-radius: var(--radius);
  background: var(--colour-night);
  color: var(--colour-night-ink);
  box-shadow: var(--shadow);
}

.fact h2 {
  margin: 0 0 var(--space-2);
  color: var(--colour-accent-light);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.fact p {
  margin: 0;
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  line-height: 1.5;
}

.fact .link-button {
  margin-top: var(--space-3);
  color: var(--colour-accent-light);
  font-weight: 700;
}

/* Photo strip: Brighton in pictures */
.scenes {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(15rem, 70%);
  gap: var(--space-3);
  max-width: none;
  margin: 0 calc(-1 * var(--space-4));
  padding: 0 var(--space-4) var(--space-3);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  list-style: none;
}

@media (min-width: 48rem) {
  .scenes {
    grid-auto-flow: row;
    grid-template-columns: repeat(4, 1fr);
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .scenes li:first-child {
    grid-column: span 2;
    grid-row: span 2;
  }
}

.scene {
  position: relative;
  height: 100%;
  min-height: 12rem;
  overflow: hidden;
  border-radius: var(--radius);
  scroll-snap-align: start;
}

.scene img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.scene:hover img {
  transform: scale(1.04);
}

.scene > a {
  position: absolute;
  inset: auto 0 0;
  padding: var(--space-6) var(--space-4) var(--space-3);
  background: linear-gradient(transparent, rgb(8 20 16 / 88%) 45%);
  color: #ffffff;
  text-decoration: none;
}

.scene > a::after {
  content: "";
  position: absolute;
  inset: -40rem 0 0;
}

.scene strong {
  display: block;
  font-size: var(--text-lg);
}

.scene span {
  display: block;
  color: #e6ece8;
  font-size: var(--text-sm);
}

/* Tabs: explore Brighton by category */
.tabs__list {
  display: flex;
  gap: var(--space-2);
  margin: 0 0 var(--space-4);
  padding: 0 0 var(--space-2);
  overflow-x: auto;
}

.tabs__list button {
  flex: none;
  min-height: 2.75rem;
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--colour-border);
  border-radius: var(--radius-pill);
  background: var(--colour-surface);
  color: var(--colour-ink);
  font: inherit;
  font-size: var(--text-sm);
  font-weight: 700;
  cursor: pointer;
}

.tabs__list button[aria-selected="true"] {
  border-color: var(--colour-brand-dark);
  background: var(--colour-brand-dark);
  color: var(--colour-night-ink);
}

.tabs__panel h3 {
  margin-top: var(--space-5);
}

.has-tabs .tabs__panel h3 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.tabs__more {
  margin: var(--space-4) 0 0;
  font-weight: 700;
}

/* Feature links under the tabs */
.features {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  max-width: none;
  margin: 0;
  padding: 0;
  list-style: none;
}

.features li {
  position: relative;
  padding: var(--space-4);
  border-radius: var(--radius);
  background: var(--colour-surface);
  box-shadow: var(--shadow);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.features li:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}

.features a {
  color: var(--colour-ink);
  font-size: var(--text-lg);
  font-weight: 800;
  text-decoration: none;
}

.features a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.features p {
  margin: var(--space-1) 0 0;
  color: var(--colour-ink-muted);
  font-size: var(--text-sm);
}

.features__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: var(--space-2);
  border-radius: 50%;
  background: var(--colour-brand);
  color: #ffffff;
}

.features__icon svg {
  width: 1.3rem;
  height: 1.3rem;
}

/* Tiles: a swipeable row on phones, a grid on wider screens. */
.tiles {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(16rem, 80%);
  gap: var(--space-4);
  max-width: none;
  margin: 0 calc(-1 * var(--space-4)) var(--space-4);
  padding: var(--space-1) var(--space-4) var(--space-4);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 var(--space-4);
  list-style: none;
}

@media (min-width: 48rem) {
  .tiles {
    grid-auto-flow: row;
    grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
    margin-left: 0;
    margin-right: 0;
    padding: var(--space-1) 0 var(--space-4);
    overflow: visible;
  }
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--colour-surface);
  box-shadow: var(--shadow);
  scroll-snap-align: start;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.tile:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-3px);
}

.tile__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--cat-other);
}

.tile__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tile__placeholder {
  display: flex;
  align-items: center;
  height: 100%;
  padding: var(--space-3) var(--space-4);
  background: linear-gradient(135deg, rgb(255 255 255 / 12%), transparent 60%);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 650;
  gap: var(--space-3);
}

.tile__body {
  padding: var(--space-3) var(--space-4) var(--space-4);
}

.tile__when,
.tile__venue {
  margin: 0;
  color: var(--colour-ink-muted);
  font-size: var(--text-sm);
}

.tile__title {
  margin: var(--space-1) 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 650;
  line-height: 1.3;
}

.tile__title a {
  color: var(--colour-ink);
  text-decoration: none;
}

/* The whole card is clickable; the link text stays the accessible name. */
.tile__title a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.tile__title a:hover {
  color: var(--colour-link);
}

.tile:focus-within {
  outline: 3px solid var(--colour-focus);
  outline-offset: 2px;
}

.tile__title a:focus-visible {
  outline: none;
}

/* Date badges */
.date-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 3.25rem;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  background: var(--colour-surface);
  color: var(--colour-ink);
  line-height: 1.1;
  box-shadow: var(--shadow);
}

.date-badge__day {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 700;
}

.date-badge__month {
  color: var(--colour-brand);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tile .date-badge {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
}

/* Category colours */
.cat-music { background-color: var(--cat-music); }
.cat-markets { background-color: var(--cat-markets); }
.cat-arts { background-color: var(--cat-arts); }
.cat-community { background-color: var(--cat-community); }
.cat-comedy { background-color: var(--cat-comedy); }
.cat-food { background-color: var(--cat-food); }
.cat-family { background-color: var(--cat-family); }
.cat-business { background-color: var(--cat-business); }
.cat-other { background-color: var(--cat-other); }
.cat-film { background-color: var(--cat-film); }

/* Calendar */
.filters {
  position: sticky;
  top: 4.25rem;
  z-index: 10;
  margin: var(--space-5) 0;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius);
  background: rgb(255 255 255 / 94%);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.filters fieldset {
  display: flex;
  gap: var(--space-2);
  margin: 0 0 var(--space-2);
  padding: 0 0 var(--space-1);
  border: 0;
  /* Fieldsets default to min-content width, which would widen the page on phones. */
  min-width: 0;
  overflow-x: auto;
}

.filters legend {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.filters fieldset label {
  position: relative;
  display: inline-flex;
  flex: none;
  align-items: center;
  min-height: 2.5rem;
  padding: var(--space-1) var(--space-4);
  border: 1px solid var(--colour-border);
  border-radius: var(--radius-pill);
  background: var(--colour-surface);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
}

.filters fieldset input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}

.filters fieldset label:has(input:checked) {
  border-color: var(--colour-ink);
  background: var(--colour-ink);
  color: var(--colour-night-ink);
}

.filters fieldset label:has(input:focus-visible) {
  outline: 3px solid var(--colour-focus);
  outline-offset: 2px;
}

.filters__free {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 2.5rem;
  font-size: var(--text-sm);
  font-weight: 600;
}

.filters__count {
  display: inline;
  margin: 0 0 0 var(--space-4);
  color: var(--colour-ink-muted);
  font-size: var(--text-sm);
}

.month {
  margin: var(--space-7) 0 0;
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
}

.day__title {
  margin-top: var(--space-5);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid var(--colour-ink);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.events,
.stays {
  display: grid;
  gap: var(--space-3);
  max-width: none;
  margin: var(--space-3) 0 0;
  padding: 0;
  list-style: none;
}

.event,
.stay {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-4);
  align-items: start;
  padding: var(--space-4);
  border-radius: var(--radius);
  background: var(--colour-surface);
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}

.stay {
  grid-template-columns: 1fr;
}

.event:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}

.event__title,
.stay__name {
  margin: 0 0 var(--space-1);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 650;
  line-height: 1.3;
}

.event__title a {
  color: var(--colour-ink);
  text-decoration: none;
}

.event__title a:hover {
  color: var(--colour-link);
  text-decoration: underline;
}

.event__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-1) var(--space-3);
  margin: 0;
  font-size: var(--text-sm);
}

.event__when {
  font-weight: 600;
}

.event__excerpt {
  margin: var(--space-2) 0 0;
  color: var(--colour-ink-muted);
  font-size: var(--text-sm);
}

.event__source,
.stay__type,
.stay__address {
  margin: var(--space-1) 0 0;
  color: var(--colour-ink-muted);
  font-size: var(--text-xs);
}

.stay p {
  margin: var(--space-1) 0 0;
}

.empty {
  padding: var(--space-5);
  border-radius: var(--radius);
  background: var(--colour-sunk);
}

/* Travel boards: styled like the amber dot-matrix boards at the station and the real-time
   display at a bus stop */
.boards {
  margin: var(--space-6) 0;
}

.boards h2 {
  margin-top: 0;
}

.boards__pair {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 64rem) {
  .boards__pair {
    grid-template-columns: 1fr 1fr;
  }
}

.led {
  padding: var(--space-3) var(--space-4) var(--space-4);
  border: 0.45rem solid #2b2b2b;
  border-radius: 0.6rem;
  background: #050505;
  box-shadow: inset 0 0 1.5rem rgb(0 0 0 / 90%), 0 10px 24px rgb(0 0 0 / 25%);
  color: var(--colour-led);
  font-family: "Doto", ui-monospace, "Courier New", monospace;
  font-weight: 900;
  text-shadow: 0 0 0.35rem rgb(255 194 26 / 45%);
}

.led__head {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  margin: 0 0 var(--space-2);
  padding-bottom: var(--space-2);
  border-bottom: 2px dotted rgb(255 194 26 / 35%);
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.led__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.1rem;
  font-variant-numeric: tabular-nums;
}

.led__table th {
  padding: 0 var(--space-2) var(--space-1) 0;
  color: var(--colour-led-dim);
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
}

.led__table td {
  padding: 0.3rem var(--space-2) 0.3rem 0;
  vertical-align: top;
}

.led__table td:first-child,
.led__table th:first-child {
  width: 4.5rem;
}

.led__alert {
  color: #ff6a3d;
  text-shadow: 0 0 0.35rem rgb(255 106 61 / 50%);
}

.stop__flag {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: 0 0 var(--space-2);
  padding: var(--space-2) var(--space-4);
  border: 2px solid #1d1d1d;
  border-radius: 0.35rem;
  background: #ffffff;
  color: #1d1d1d;
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.25;
}

.stop__towards {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
}

/* Bus stop screens, after the real-time displays at Brighton stops: pale type on a dark
   screen, route and minutes in green, a live-tracking mark beside tracked buses. */
.tft__screen {
  padding: 0.7rem;
  border-radius: 0.6rem;
  background: #121416;
  box-shadow: 0 10px 24px rgb(0 0 0 / 25%);
}

.tft__list {
  margin: 0;
  padding: 0 var(--space-3);
  border: 2px solid #86b9c6;
  background: #0b1a24;
  color: #c3e2ea;
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  list-style: none;
}

.tft__list li {
  padding: 0.55rem 0 0.5rem;
  border-top: 1px solid rgb(195 226 234 / 55%);
}

.tft__list li:first-child {
  border-top: 0;
}

.tft__row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  column-gap: 0.6rem;
  align-items: baseline;
}

.tft__route,
.tft__due {
  color: #a8dc3c;
  font-size: 1.35rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.tft__dest {
  overflow: hidden;
  font-size: 1.3rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tft__due {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
}

.tft__row .tft__key {
  color: #6cc9a5;
}

.tft__detail {
  grid-column: 1 / -1;
  padding-left: 1.2rem;
  font-size: 0.9rem;
}

.tft__alert {
  color: #ff8a5c;
}

.tft__note {
  font-size: 1rem;
}

.tft__key {
  display: inline-block;
  width: 1.5rem;
  height: 1rem;
  vertical-align: -0.1rem;
  background: currentcolor;
  mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 16%27 fill=%27none%27 stroke=%27black%27 stroke-width=%272%27 stroke-linecap=%27round%27%3E%3Ccircle cx=%2712%27 cy=%278%27 r=%272%27 fill=%27black%27/%3E%3Cpath d=%27M7.5 3.5a6.5 6.5 0 0 0 0 9M16.5 3.5a6.5 6.5 0 0 1 0 9M4 1a10 10 0 0 0 0 14M20 1a10 10 0 0 1 0 14%27/%3E%3C/svg%3E") center / contain no-repeat;
}

@media (max-width: 30rem) {
  .tft__list {
    padding: 0 var(--space-2);
  }

  .tft__route,
  .tft__due,
  .tft__dest {
    font-size: 1.1rem;
  }

  .tft__detail {
    padding-left: 0;
    font-size: 0.85rem;
  }
}

.stop__roundel {
  flex: none;
  width: 1.9rem;
  height: 1.9rem;
  border: 0.4rem solid #d51d29;
  border-radius: 50%;
}

@media (max-width: 30rem) {
  .led {
    padding: var(--space-2) var(--space-3) var(--space-3);
  }

  .led__head {
    font-size: 0.95rem;
  }

  .led__table {
    font-size: 0.95rem;
  }

  .led__table td:first-child,
  .led__table th:first-child {
    width: 3.6rem;
  }
}

.board__status,
.board__source {
  margin: var(--space-2) 0 0;
  color: var(--colour-ink-muted);
  font-size: var(--text-sm);
}

/* Cookie consent */
.consent {
  position: fixed;
  right: var(--space-3);
  bottom: var(--space-3);
  left: var(--space-3);
  z-index: 40;
  max-width: 40rem;
  margin: 0 auto;
  padding: var(--space-4) 0;
  border-radius: var(--radius);
  background: var(--colour-surface);
  box-shadow: var(--shadow-lift);
}

.consent p {
  margin: 0 0 var(--space-3);
}

@media (max-width: 40rem) {
  .consent {
    padding: var(--space-3) 0;
    font-size: var(--text-sm);
  }

  .consent .button {
    min-height: 2.75rem;
    padding: var(--space-1) var(--space-4);
  }
}

.consent__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

/* Forms */
.form {
  max-width: 36rem;
}

.form label {
  display: block;
  margin-bottom: var(--space-1);
  font-weight: 600;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  padding: var(--space-3);
  border: 1px solid var(--colour-ink-muted);
  border-radius: var(--radius-sm);
  background: var(--colour-surface);
  color: var(--colour-ink);
  font: inherit;
}

/* Featured places and Bonfire societies */
.kicker {
  margin: var(--space-5) 0 0;
  color: var(--colour-brand);
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.kicker + h1 {
  margin-top: var(--space-1);
}

.facts {
  display: grid;
  gap: 0;
  max-width: var(--measure);
  margin: 0;
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius);
  background: var(--colour-surface);
  box-shadow: var(--shadow);
}

.facts div {
  display: grid;
  grid-template-columns: minmax(8rem, 30%) 1fr;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--colour-border);
}

.facts div:last-child {
  border-bottom: 0;
}

.facts dt {
  font-weight: 600;
}

.facts dd {
  margin: 0;
}

.links-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-5);
}

.societies {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
  max-width: none;
  padding: 0;
  list-style: none;
}

.societies li {
  padding: var(--space-4);
  border-top: 4px solid var(--colour-brand);
  border-radius: var(--radius);
  background: var(--colour-surface);
  box-shadow: var(--shadow);
}

.societies h3 {
  margin: 0 0 var(--space-1);
  font-family: var(--font-body);
  font-size: var(--text-base);
}

.societies p {
  margin: 0;
  font-size: var(--text-sm);
}

/* Link lists on the homepage and community page */
.link-cards {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  max-width: none;
  padding: 0;
  list-style: none;
}

.link-cards li {
  position: relative;
  padding: var(--space-4);
  border-radius: var(--radius);
  background: var(--colour-surface);
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}

.link-cards li:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}

.link-cards a {
  font-weight: 650;
  text-decoration: none;
}

.link-cards a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.link-cards p {
  margin: var(--space-1) 0 0;
  color: var(--colour-ink-muted);
  font-size: var(--text-sm);
}

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

/* Map */
.map {
  position: relative;
  height: min(70vh, 38rem);
  margin: var(--space-4) 0 var(--space-2);
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--colour-sunk);
  box-shadow: var(--shadow);
}

.map:not(.is-live) {
  display: flex;
  align-items: center;
  justify-content: center;
  height: auto;
  padding: var(--space-6) var(--space-4);
}

.map__fallback {
  margin: 0;
  color: var(--colour-ink-muted);
}

.map-credit {
  color: var(--colour-ink-muted);
  font-size: var(--text-xs);
}

.map-controls {
  position: relative;
  z-index: 5;
  margin: calc(-1 * var(--space-6)) 0 var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius);
  background: var(--colour-surface);
  box-shadow: var(--shadow-lift);
}

.map-controls__row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: end;
}

.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  min-width: 12rem;
}

.field--grow {
  flex: 1;
  min-width: min(100%, 16rem);
}

.field span {
  color: var(--colour-ink);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.field select,
.field input {
  min-height: 2.75rem;
  padding: 0 var(--space-3);
  border: 1px solid var(--colour-ink-muted);
  border-radius: var(--radius-sm);
  background: var(--colour-surface);
  color: var(--colour-ink);
  font: inherit;
}

.map-chips {
  display: flex;
  gap: var(--space-2);
  margin: var(--space-3) calc(-1 * var(--space-4)) 0;
  padding: 0 var(--space-4) var(--space-2);
  overflow-x: auto;
}

.map-chips button {
  display: inline-flex;
  flex: none;
  align-items: center;
  min-height: 2.5rem;
  padding: 0 var(--space-3);
  border: 1px solid var(--colour-border);
  border-radius: var(--radius-pill);
  background: var(--colour-surface);
  color: var(--colour-ink);
  font: inherit;
  font-size: var(--text-sm);
  font-weight: 700;
  cursor: pointer;
}

.map-chips button[aria-pressed="true"] {
  border-color: var(--colour-brand-dark);
  background: var(--colour-brand-dark);
  color: var(--colour-night-ink);
}

.map-status {
  margin: var(--space-2) 0 0;
  color: var(--colour-ink-muted);
  font-size: var(--text-sm);
  font-weight: 600;
}

.swatch {
  display: inline-block;
  width: 0.9rem;
  height: 0.9rem;
  margin-right: var(--space-2);
  border-radius: 50%;
  vertical-align: -0.05em;
}

.pin {
  background: none;
  border: 0;
}

.pin svg,
.pin img {
  display: block;
  filter: drop-shadow(0 2px 3px rgb(0 0 0 / 30%));
}

.pin-label.leaflet-tooltip {
  padding: 1px 8px;
  border: 0;
  border-radius: var(--radius-pill);
  background: rgb(255 255 255 / 94%);
  color: var(--colour-ink);
  font-size: 0.75rem;
  font-weight: 800;
  box-shadow: 0 1px 4px rgb(0 0 0 / 25%);
}

.pin-label.leaflet-tooltip::before {
  display: none;
}

.popup__head {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  margin-bottom: var(--space-2);
}

.popup__head img {
  flex: none;
}

.popup__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.popup .pill {
  min-height: 2.25rem;
  padding: 0 var(--space-3);
  font-size: var(--text-xs);
}

.leaflet-container {
  font-family: var(--font-body);
}

.leaflet-popup-content-wrapper {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
}

.popup p {
  margin: 0 0 var(--space-2);
  font-size: var(--text-sm);
}

.popup .popup__cat {
  margin: 0;
  color: var(--colour-ink-muted);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.popup__name {
  margin: 0;
  font-family: var(--font-heading);
  font-size: var(--text-lg);
}

.popup .popup__meta {
  color: var(--colour-ink-muted);
}


/* Place lists (map page, directory and homepage tabs) */
.place-group h3 {
  display: flex;
  align-items: center;
  margin-top: var(--space-6);
}

.place-group .count {
  margin-left: var(--space-2);
  color: var(--colour-ink-muted);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
}

.places {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  max-width: none;
  margin: 0;
  padding: 0;
  list-style: none;
}

.place {
  display: flex;
  flex-direction: column;
  padding: var(--space-4);
  border-radius: var(--radius);
  background: var(--colour-surface);
  box-shadow: var(--shadow);
}

.place p {
  margin: 0;
}

.place__head {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  margin-bottom: var(--space-2);
}

.place__icon {
  flex: none;
  width: 4rem;
  height: 4rem;
  filter: drop-shadow(0 2px 3px rgb(0 0 0 / 20%));
}

.place__glyph {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin: 0.5rem;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  color: #ffffff;
}

.place__glyph svg {
  width: 1.4rem;
  height: 1.4rem;
  fill: #ffffff;
  transform: rotate(45deg);
}

.place .place__cat {
  color: var(--colour-brand);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.place__name {
  margin: 0;
  font-size: var(--text-lg);
  line-height: 1.2;
}

.place__summary {
  font-size: var(--text-sm);
}

.place .place__meta {
  margin-top: var(--space-1);
  color: var(--colour-ink-muted);
  font-size: var(--text-xs);
  font-weight: 600;
}

.place__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: auto 0 0;
  padding: var(--space-3) 0 0;
  list-style: none;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0 var(--space-4);
  border: 1px solid var(--colour-border);
  border-radius: var(--radius-pill);
  background: var(--colour-surface);
  color: var(--colour-brand-dark);
  font-size: var(--text-sm);
  font-weight: 700;
  text-decoration: none;
}

.pill:hover {
  border-color: var(--colour-brand);
  color: var(--colour-brand-dark);
}

.pill--primary {
  border-color: var(--colour-brand-dark);
  background: var(--colour-brand-dark);
  color: #ffffff;
}

.pill--primary:hover {
  background: var(--colour-brand);
  color: #ffffff;
}

.pill--icon {
  padding: 0;
}

.pill svg {
  width: 1.1rem;
  height: 1.1rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.directory-search {
  max-width: 30rem;
  margin: var(--space-5) 0;
}

.directory-search label {
  display: block;
  margin-bottom: var(--space-1);
  font-weight: 600;
}

.directory-search input {
  width: 100%;
  min-height: 2.75rem;
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--colour-ink-muted);
  border-radius: var(--radius-pill);
  background: var(--colour-surface);
  font: inherit;
}

.chips--light a {
  border-color: var(--colour-border);
  background: var(--colour-surface);
  color: var(--colour-ink);
  backdrop-filter: none;
}

.chips--light a:hover {
  background: var(--colour-sunk);
  color: var(--colour-ink);
}

.category-index .chips {
  margin: var(--space-4) 0;
}

/* Category colours for map pins and swatches: the only place they are defined. */

.pin-featured-poi { background-color: var(--pin-featured-poi); }
.pin-arts-heritage { background-color: var(--pin-arts-heritage); }
.pin-food-drink { background-color: var(--pin-food-drink); }
.pin-pubs-breweries { background-color: var(--pin-pubs-breweries); }
.pin-stay { background-color: var(--pin-stay); }
.pin-shops { background-color: var(--pin-shops); }
.pin-charity-shops { background-color: var(--pin-charity-shops); }
.pin-beauty { background-color: var(--pin-beauty); }
.pin-health { background-color: var(--pin-health); }
.pin-services { background-color: var(--pin-services); }
.pin-estate-agents { background-color: var(--pin-estate-agents); }
.pin-sport { background-color: var(--pin-sport); }
.pin-parks-play { background-color: var(--pin-parks-play); }
.pin-council-civic { background-color: var(--pin-council-civic); }
.pin-schools { background-color: var(--pin-schools); }
.pin-transport { background-color: var(--pin-transport); }
.pin-bus-stops { background-color: var(--pin-bus-stops); }
.pin-taxi { background-color: var(--pin-taxi); }
.pin-toilets { background-color: var(--pin-toilets); }

/* Photo credits on scenery: photographer and licence, over a corner of the picture */
.credit {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 3;
  max-width: 100%;
  padding: 0.15rem 0.5rem;
  border-top-left-radius: var(--radius-sm);
  background: rgb(8 20 16 / 72%);
  color: #ffffff;
  font-size: 0.7rem;
  line-height: 1.4;
}

.credit a {
  color: inherit;
}

.scene .credit {
  top: 0;
  bottom: auto;
  border-top-left-radius: 0;
  border-bottom-left-radius: var(--radius-sm);
}

/* Approved place photos */
.place__photo {
  margin: calc(-1 * var(--space-3)) calc(-1 * var(--space-4)) var(--space-3);
}

.place__photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.place__photo figcaption {
  padding: var(--space-1) var(--space-4) 0;
  color: var(--colour-ink-muted);
  font-size: var(--text-xs);
}

.popup__photo {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: var(--space-2);
  border-radius: var(--radius-sm);
}

/* Welcome intro (homepage, once per visit). Hidden unless html.show-intro. */
.intro {
  --paper: #f3efe6;
  --intro-ink: #11110f;
  --intro-muted: #57534c;
  --intro-line: rgb(17 17 15 / 22%);
  --intro-ease: cubic-bezier(0.22, 1, 0.36, 1);
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  overflow: hidden;
  background: var(--paper);
  color: var(--intro-ink);
  isolation: isolate;
}

.show-intro .intro {
  display: block;
}

.show-intro body {
  overflow: hidden;
}

.intro__paper {
  position: absolute;
  inset: -15%;
  z-index: -2;
  opacity: 0.21;
  background-image:
    repeating-radial-gradient(circle at 20% 30%, rgb(0 0 0 / 11%) 0 0.45px, transparent 0.7px 4px),
    repeating-linear-gradient(95deg, rgb(255 255 255 / 12%) 0 1px, transparent 1px 7px);
  transform: rotate(-2deg);
  mix-blend-mode: multiply;
  pointer-events: none;
}

.intro__topbar {
  position: absolute;
  top: clamp(24px, 4vh, 58px);
  right: clamp(22px, 4.8vw, 82px);
  left: clamp(22px, 4.8vw, 82px);
  display: flex;
  align-items: center;
  gap: 18px;
  opacity: 0;
  animation: intro-fade-down 0.8s 0.15s var(--intro-ease) forwards;
}

.intro__brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(18px, 1.8vw, 29px);
  font-weight: 700;
  letter-spacing: 0.16em;
}

.intro__brand span {
  font-weight: 400;
}

.intro__rule {
  flex: 1;
  height: 1px;
  background: var(--intro-line);
}

.intro__place {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
}

.intro__copy {
  position: absolute;
  z-index: 4;
  top: clamp(115px, 16vh, 185px);
  left: clamp(22px, 5.6vw, 96px);
  width: min(61vw, 910px);
  pointer-events: none;
}

.intro__eyebrow {
  margin: 0 0 6px 10px;
  font-size: clamp(10px, 0.9vw, 12px);
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0;
  animation: intro-fade-up 0.7s 0.45s var(--intro-ease) forwards;
}

.intro__script {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.intro__script text {
  font-family: "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive;
  font-style: italic;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.script-line-1 {
  font-size: 112px;
}

.script-line-2 {
  font-size: 190px;
}

.script-stroke {
  fill: transparent;
  stroke: var(--intro-ink);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1680;
  stroke-dashoffset: 1680;
}

.script-fill {
  fill: var(--intro-ink);
  opacity: 0;
}

.script-stroke.script-line-1 { animation: intro-draw 1.25s 0.55s ease-in-out forwards; }
.script-fill.script-line-1 { animation: intro-show 0.45s 1.52s ease-out forwards; }
.script-stroke.script-line-2 { animation: intro-draw 1.45s 1.12s ease-in-out forwards; }
.script-fill.script-line-2 { animation: intro-show 0.5s 2.28s ease-out forwards; }

.script-swoop {
  fill: none;
  stroke: var(--intro-ink);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  opacity: 0.92;
  animation: intro-draw 1s 2.25s var(--intro-ease) forwards;
}

.intro__sub {
  margin: -10px 0 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(15px, 1.35vw, 21px);
  letter-spacing: 0.03em;
  opacity: 0;
  animation: intro-fade-up 0.8s 2.45s var(--intro-ease) forwards;
}

.intro__castle {
  position: absolute;
  z-index: 1;
  right: clamp(-165px, -8vw, -80px);
  bottom: clamp(-110px, -10vh, -58px);
  width: min(64vw, 1020px);
  height: min(72vh, 760px);
  margin: 0;
  opacity: 0;
  transform: translate3d(8%, 12%, 0) scale(1.06);
  animation: intro-castle 1.45s 1s var(--intro-ease) forwards;
  filter: drop-shadow(0 28px 22px rgb(0 0 0 / 11%));
}

.intro__matte {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--paper);
  clip-path: polygon(8% 13%, 78% 4%, 95% 18%, 100% 55%, 97% 89%, 76% 100%, 22% 98%, 0 76%, 1% 29%);
  mask-image: radial-gradient(ellipse 76% 77% at 52% 54%, #000 0 66%, rgb(0 0 0 / 92%) 74%, transparent 100%);
}

.intro__matte img {
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: contain;
  object-position: 50% 56%;
  mix-blend-mode: multiply;
}

.intro__castle figcaption {
  position: absolute;
  z-index: 3;
  right: 16%;
  bottom: 26%;
  padding: 8px 12px 7px;
  border: 1px solid rgb(17 17 15 / 34%);
  background: rgb(243 239 230 / 92%);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.intro__stamp {
  position: absolute;
  z-index: 5;
  top: 18%;
  right: clamp(26px, 5vw, 86px);
  display: grid;
  place-content: center;
  width: clamp(82px, 8vw, 122px);
  aspect-ratio: 1;
  border: 2px solid rgb(17 17 15 / 72%);
  border-radius: 50%;
  background: rgb(243 239 230 / 38%);
  text-align: center;
  opacity: 0;
  transform: rotate(8deg) scale(0.7);
  animation: intro-stamp 0.5s 2.8s cubic-bezier(0.16, 1.55, 0.47, 1) forwards;
}

.intro__stamp::before,
.intro__stamp::after {
  content: "";
  display: block;
  height: 1px;
  margin: 5px 11px;
  background: rgb(17 17 15 / 62%);
}

.intro__stamp span {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.intro__stamp b {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  letter-spacing: 0.08em;
}

.intro__enter,
.intro__skip {
  position: absolute;
  z-index: 6;
  min-height: 2.75rem;
  border: 0;
  background: transparent;
  color: var(--intro-ink);
  font: inherit;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0;
}

.intro__enter {
  bottom: clamp(28px, 6vh, 68px);
  left: clamp(24px, 5.8vw, 100px);
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  min-width: 190px;
  padding: 11px 4px 10px;
  border-bottom: 2px solid var(--intro-ink);
  font-size: 12px;
  animation: intro-fade-up 0.65s 2.85s var(--intro-ease) forwards;
}

.intro__enter span:last-child {
  font-size: 20px;
  transition: transform 0.2s ease;
}

.intro__enter:hover span:last-child,
.intro__enter:focus-visible span:last-child {
  transform: translateX(6px);
}

.intro__skip {
  right: clamp(22px, 4.8vw, 82px);
  bottom: clamp(24px, 4vh, 52px);
  color: var(--intro-muted);
  font-size: 11px;
  animation: intro-show 0.5s 3s ease forwards;
}

.intro.is-leaving {
  pointer-events: none;
  animation: intro-out 0.9s var(--intro-ease) forwards;
}

@keyframes intro-draw { to { stroke-dashoffset: 0; } }
@keyframes intro-show { to { opacity: 1; } }
@keyframes intro-fade-down { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes intro-fade-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes intro-castle { to { opacity: 0.98; transform: none; } }
@keyframes intro-stamp { to { opacity: 0.68; transform: rotate(8deg) scale(1); } }
@keyframes intro-out { to { opacity: 0; transform: scale(1.018); visibility: hidden; } }

@media (max-width: 780px) {
  .intro__place { display: none; }
  .intro__copy { top: 105px; left: 18px; width: calc(100vw - 36px); }
  .script-line-1 { font-size: 102px; }
  .script-line-2 { font-size: 178px; }
  .intro__castle { right: -28vw; bottom: 5vh; width: 112vw; height: 54vh; }
  .intro__castle figcaption { display: none; }
  .intro__stamp { top: auto; right: 22px; bottom: 29%; width: 78px; }
  .intro__enter { bottom: 24px; left: 20px; min-width: 166px; }
  .intro__skip { right: 20px; bottom: 24px; }
}

@media (max-width: 460px) {
  .intro__castle { right: -42vw; bottom: 7vh; width: 132vw; height: 49vh; }
  .intro__stamp { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .intro *,
  .intro *::before,
  .intro *::after,
  .intro.is-leaving {
    animation: none;
  }

  .script-stroke { stroke-dashoffset: 0; }
  .script-swoop { stroke-dashoffset: 0; }

  .script-fill,
  .intro__castle,
  .intro__topbar,
  .intro__eyebrow,
  .intro__sub,
  .intro__enter,
  .intro__skip,
  .intro__stamp {
    opacity: 1;
    transform: none;
  }
}

/* Footer badge */
.site-footer__badge {
  display: block;
  width: 4.5rem;
  height: 4.5rem;
  margin-bottom: var(--space-3);
  border-radius: 50%;
}

.places--single {
  max-width: 26rem;
}

/* Category glyphs for place cards, drawn once here rather than in every card. */
.glyph-featured-poi::before { mask-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M12 2.5l2.9 6 6.6.8-4.9 4.5 1.3 6.5L12 17l-5.9 3.3 1.3-6.5L2.5 9.3l6.6-.8z%27/%3E%3C/svg%3E"); }
.glyph-arts-heritage::before { mask-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M3 21h18v-2H3zm2-3h2v-7H5zm4 0h2v-7H9zm4 0h2v-7h-2zm4 0h2v-7h-2zM2 10h20L12 3z%27/%3E%3C/svg%3E"); }
.glyph-food-drink::before { mask-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M7 2v7a3 3 0 0 0 2 2.8V22h2V11.8A3 3 0 0 0 13 9V2h-1.5v6h-1V2h-1v6h-1V2zm10 0c-1.7 0-3 2.2-3 5v6h2v9h2V2z%27/%3E%3C/svg%3E"); }
.glyph-pubs-breweries::before { mask-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M6 3h10l-1 18H7zm10 4h2.5a2.5 2.5 0 0 1 0 5H16v-2h2.5a.5.5 0 0 0 0-1H16z%27/%3E%3C/svg%3E"); }
.glyph-shops::before { mask-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M5 7h14l-1 14H6zm4 0V6a3 3 0 0 1 6 0v1h-2V6a1 1 0 0 0-2 0v1z%27/%3E%3C/svg%3E"); }
.glyph-charity-shops::before { mask-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M12 21l-1.4-1.3C5.4 15 2 12 2 8.3 2 5.3 4.4 3 7.4 3c1.7 0 3.4.8 4.6 2.1C13.2 3.8 14.9 3 16.6 3 19.6 3 22 5.3 22 8.3c0 3.7-3.4 6.7-8.6 11.4z%27/%3E%3C/svg%3E"); }
.glyph-beauty::before { mask-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M7 3a3 3 0 1 0 1.9 5.3L11 10.4 4 17.4V20h2.6l7-7 2.1 2.1A3 3 0 1 0 17 13.2L9.3 5.5A3 3 0 0 0 7 3zm0 2a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm10 10a1 1 0 1 1 0 2 1 1 0 0 1 0-2zM14 6l4-4h2.6v2.6l-4 4z%27/%3E%3C/svg%3E"); }
.glyph-health::before { mask-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M9 3h6v6h6v6h-6v6H9v-6H3V9h6z%27/%3E%3C/svg%3E"); }
.glyph-services::before { mask-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M9 4h6a2 2 0 0 1 2 2v1h3a1 1 0 0 1 1 1v11a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1h3V6a2 2 0 0 1 2-2zm0 3h6V6H9z%27/%3E%3C/svg%3E"); }
.glyph-estate-agents::before { mask-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M12 3l9 8h-3v9h-5v-6h-2v6H6v-9H3z%27/%3E%3C/svg%3E"); }
.glyph-parks-play::before { mask-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M12 2c3.3 0 6 2.7 6 6 0 .6-.1 1.1-.2 1.6A4.5 4.5 0 0 1 15.5 18H13v4h-2v-4H8.5a4.5 4.5 0 0 1-2.3-8.4C6.1 9.1 6 8.6 6 8c0-3.3 2.7-6 6-6z%27/%3E%3C/svg%3E"); }
.glyph-council-civic::before { mask-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M12 2l10 5v2H2V7zM4 10h3v8H4zm6.5 0h3v8h-3zm6.5 0h3v8h-3zM2 19h20v3H2z%27/%3E%3C/svg%3E"); }
.glyph-schools::before { mask-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M12 3L1 9l11 6 9-4.9V17h2V9zM5 13.2v4L12 21l7-3.8v-4L12 17z%27/%3E%3C/svg%3E"); }
.glyph-transport::before { mask-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M7 2h10a3 3 0 0 1 3 3v10a3 3 0 0 1-2 2.8l1.5 2.2h-2.4l-1.4-2H8.3l-1.4 2H4.5L6 17.8A3 3 0 0 1 4 15V5a3 3 0 0 1 3-3zm-1 4v5h12V6zm2 7.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3zm8 0a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3z%27/%3E%3C/svg%3E"); }
.glyph-bus-stops::before { mask-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M6 2h12a2 2 0 0 1 2 2v13a2 2 0 0 1-1 1.7V21h-3v-2H8v2H5v-2.3A2 2 0 0 1 4 17V4a2 2 0 0 1 2-2zm0 3v6h12V5zm1.5 8a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3zm9 0a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3z%27/%3E%3C/svg%3E"); }
.glyph-taxi::before { mask-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M9 3h6l1 3h1.5L20 10v7h-2v2h-3v-2H9v2H6v-2H4v-7l2.5-4H8zm-1.4 5L6.3 10h11.4l-1.3-2zM7 12.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3zm10 0a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3z%27/%3E%3C/svg%3E"); }
.glyph-toilets::before { mask-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M7 2a2 2 0 1 1 0 4 2 2 0 0 1 0-4zm10 0a2 2 0 1 1 0 4 2 2 0 0 1 0-4zM5 7h4a1 1 0 0 1 1 1v6H8.5v8h-3v-8H4V8a1 1 0 0 1 1-1zm10.5 0h3L21 15h-2.5v7h-3v-7H13z%27/%3E%3C/svg%3E"); }
.glyph-sport::before { mask-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm0 2.2 3.3 2.4-1.3 3.9h-4L8.7 6.6zM6.9 7.8l1.3 3.9-2.5 3.4-1.6-.5A7.8 7.8 0 0 1 6.9 7.8zm10.2 0a7.8 7.8 0 0 1 2.8 6.8l-1.6.5-2.5-3.4zM9.8 12.5h4.4l2.4 3.3-1.3 3.4a7.9 7.9 0 0 1-6.6 0l-1.3-3.4z%27/%3E%3C/svg%3E"); }
.glyph-stay::before { mask-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M3 20V5h2v9h7V8h6a3 3 0 0 1 3 3v9h-2v-3H5v3zm5-7a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5z%27/%3E%3C/svg%3E"); }
.pill--instagram::before { mask-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Crect x=%273%27 y=%273%27 width=%2718%27 height=%2718%27 rx=%275%27 fill=%27none%27 stroke=%27black%27 stroke-width=%272%27/%3E%3Ccircle cx=%2712%27 cy=%2712%27 r=%274%27 fill=%27none%27 stroke=%27black%27 stroke-width=%272%27/%3E%3Ccircle cx=%2717.4%27 cy=%276.6%27 r=%271.1%27/%3E%3C/svg%3E"); }
.pill--facebook::before { mask-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M14.5 8H17V4.3c-.4-.1-1.9-.3-3.6-.3-3.5 0-5.9 2.1-5.9 6v3.3H4v4.1h3.5V24h4.3v-6.6h3.6l.6-4.1h-4.2V10c0-1.2.3-2 2.7-2z%27/%3E%3C/svg%3E"); }

.place__glyph::before,
.pill--instagram::before,
.pill--facebook::before {
  content: "";
  display: block;
  background: currentColor;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}


.place__glyph::before {
  width: 1.4rem;
  height: 1.4rem;
  transform: rotate(45deg);
}

.pill--instagram::before,
.pill--facebook::before {
  width: 1.1rem;
  height: 1.1rem;
}

/* Map page: every place by name */
.place-index {
  columns: 16rem;
  column-gap: var(--space-6);
}

.place-index section {
  break-inside: avoid-column;
}

.place-index h3 {
  display: flex;
  align-items: center;
  margin: var(--space-5) 0 var(--space-2);
  font-size: var(--text-base);
}

.place-index ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--text-sm);
}

.place-index li {
  padding: 0.15rem 0;
}

.place-index .count {
  margin-left: var(--space-2);
  color: var(--colour-ink-muted);
  font-weight: 600;
}

.briefing__letter .eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
}

/* Leaflet colours its links; keep ours. */
.leaflet-container a.pill {
  color: var(--colour-brand-dark);
}

/* Smaller artwork pins when zoomed out, so the town centre does not become a heap. */
.pin--art img {
  transform-origin: 50% 96%;
  transition: transform 0.2s var(--ease);
}

.map.is-far .pin--art img {
  transform: scale(0.6);
}

.map.is-far .pin-label {
  display: none;
}

.intro__enter:focus-visible,
.intro__skip:focus-visible {
  outline: 2px solid var(--intro-ink);
  outline-offset: 6px;
}

/* Venue icons and links on event cards */
.tile__venue-icon {
  width: 4rem;
  height: 4rem;
  filter: drop-shadow(0 2px 4px rgb(0 0 0 / 35%));
}

.tile__map {
  position: relative;
  z-index: 1;
  font-weight: 700;
}

/* The event's picture (or its venue's, or its category colour), with the date on it. */
.event__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 7.5rem;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background-image: linear-gradient(135deg, rgb(255 255 255 / 14%), transparent 60%);
}

@media (min-width: 40rem) {
  .event__media {
    width: 13rem;
    aspect-ratio: 16 / 9;
  }
}

.event__media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event__media > .event__venue-icon {
  width: 60%;
  height: auto;
  object-fit: contain;
}

.event__cat {
  position: absolute;
  right: var(--space-3);
  bottom: var(--space-2);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 650;
}

.event__media .date-badge {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  min-width: 2.75rem;
  padding: 2px var(--space-2);
}

.event__media .date-badge__day {
  font-size: 1.125rem;
}

/* What's on: this weekend's picks, the category dots, the source note. */
.picks h2 {
  margin-bottom: var(--space-2);
}

.picks__when {
  color: var(--colour-ink-muted);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
}

.dot {
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  margin-right: var(--space-1);
  border-radius: 50%;
}

.filters fieldset label:has(input:checked) .dot {
  box-shadow: 0 0 0 2px #ffffff;
}

.cert {
  display: inline-block;
  margin-left: var(--space-1);
  padding: 0 var(--space-1);
  border: 1px solid var(--colour-border);
  border-radius: var(--radius-sm);
  color: var(--colour-ink-muted);
  font-size: var(--text-xs);
  font-weight: 700;
  vertical-align: 2px;
}

.small-print {
  margin-top: var(--space-6);
  color: var(--colour-ink-muted);
  font-size: var(--text-sm);
}

/* Directory: sections and search results */
.sections {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  max-width: none;
  margin: 0 0 var(--space-6);
  padding: 0;
  list-style: none;
}

.section-card {
  position: relative;
  padding: var(--space-4);
  border-radius: var(--radius);
  background: var(--colour-surface);
  box-shadow: var(--shadow);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.section-card:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}

.section-card h3 {
  margin: var(--space-2) 0 var(--space-1);
}

.section-card h3 a {
  color: var(--colour-ink);
  text-decoration: none;
}

.section-card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.section-card p {
  margin: 0;
  color: var(--colour-ink-muted);
  font-size: var(--text-sm);
}

.section-card .section-card__count {
  margin-top: var(--space-2);
  color: var(--colour-brand);
  font-weight: 800;
}

.section-card__icons {
  display: flex;
  min-height: 3rem;
}

.section-card__icons img {
  width: 3rem;
  height: 3rem;
  margin-right: -0.5rem;
}

.search-results {
  display: grid;
  gap: var(--space-2);
  max-width: none;
  margin: var(--space-3) 0 0;
  padding: 0;
  list-style: none;
}

.search-results a {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  background: var(--colour-surface);
  color: var(--colour-ink);
  text-decoration: none;
  box-shadow: var(--shadow);
}

.search-results img {
  flex: none;
}

.search-results strong,
.search-results small {
  display: block;
}

.search-results small {
  color: var(--colour-ink-muted);
}

.map.is-dense .pin--art img {
  transform: scale(0.4);
}

.map.is-dense .pin--poi img {
  transform: scale(0.75);
}

.pin--poi {
  z-index: 500 !important;
}

.place .place__checked {
  margin-top: var(--space-2);
  color: var(--colour-ink-muted);
  font-size: var(--text-xs);
}

/* Front page colour. Brighton colours: sea turquoise, coral, navy and sun yellow.
   White text on each passes WCAG AA. */
.band--bonfire {
  background:
    radial-gradient(circle at 85% 0%, rgb(239 190 80 / 30%), transparent 45%),
    linear-gradient(135deg, #0b4f5c 0%, #0d5f6e 55%, #0a6b73 100%);
  color: #ffffff;
}

.band--bonfire .section-title {
  color: #ffffff;
}

.band--bonfire .section-head a,
.band--bonfire .wrap > p a {
  color: #fde8b4;
}

.band--travel {
  background:
    radial-gradient(circle at 10% 100%, rgb(255 194 26 / 12%), transparent 40%),
    linear-gradient(180deg, #102833 0%, #12313e 100%);
}

.band--travel .section-title {
  color: #ffffff;
}

.band--travel .section-head a {
  color: var(--colour-led);
}

.band--travel .board__status {
  color: var(--colour-night-muted);
}

.live-strip {
  display: grid;
  gap: var(--space-5);
  margin-top: var(--space-4);
}

.live-strip .boards {
  display: grid;
  gap: var(--space-4);
  margin: 0;
}

@media (min-width: 64rem) {
  .live-strip {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    align-items: start;
  }
}

.tft--compact .stop__flag {
  padding: var(--space-1) var(--space-3);
  font-size: 1rem;
}

.tft--compact .stop__roundel {
  width: 1.5rem;
  height: 1.5rem;
  border-width: 0.32rem;
}

/* Front page place cards: a block of category colour, or the place's photo */
.spots {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  max-width: none;
  margin: 0;
  padding: 0;
  list-style: none;
}

.spot {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.spot:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-3px);
}

.spot__art {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  background-image:
    radial-gradient(circle at 25% 20%, rgb(255 255 255 / 22%), transparent 50%),
    repeating-linear-gradient(-45deg, rgb(255 255 255 / 7%) 0 12px, transparent 12px 24px);
  color: #ffffff;
}

.spot__art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spot__glyph::before {
  content: "";
  display: block;
  width: 4.5rem;
  height: 4.5rem;
  background: currentColor;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  filter: drop-shadow(0 2px 6px rgb(0 0 0 / 25%));
}

.spot__cat {
  position: absolute;
  bottom: var(--space-2);
  left: var(--space-2);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  background: rgb(0 0 0 / 60%);
  color: #ffffff;
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.spot__body {
  flex: 1;
  padding: var(--space-3) var(--space-4) var(--space-4);
  background: var(--colour-surface);
}

.spot__name {
  margin: 0;
  font-size: var(--text-lg);
  line-height: 1.2;
}

.spot__name a {
  color: var(--colour-ink);
  text-decoration: none;
}

.spot__name a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.spot__summary {
  display: -webkit-box;
  margin: 0.35rem 0 0;
  overflow: hidden;
  color: var(--colour-ink-muted);
  font-size: var(--text-sm);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.spot__credit {
  margin: 0.35rem 0 0;
  color: var(--colour-ink-muted);
  font-size: var(--text-xs);
}

.spot__more {
  position: relative;
  z-index: 1;
  margin: var(--space-2) 0 0;
  font-size: var(--text-sm);
  font-weight: 700;
}

/* The guide: one Brighton colour per tile */
.features--colour li {
  background: var(--tile, var(--colour-brand));
  color: #ffffff;
}

.features--colour li:nth-child(8n + 1) { --tile: #b4382f; }
.features--colour li:nth-child(8n + 2) { --tile: #1c5d8a; }
.features--colour li:nth-child(8n + 3) { --tile: #2f6f3e; }
.features--colour li:nth-child(8n + 4) { --tile: #6b3fa0; }
.features--colour li:nth-child(8n + 5) { --tile: #0f5a73; }
.features--colour li:nth-child(8n + 6) { --tile: #a8390d; }
.features--colour li:nth-child(8n + 7) { --tile: #a1275e; }
.features--colour li:nth-child(8n + 8) { --tile: #243040; }

.features--colour a {
  color: #ffffff;
}

.features--colour p {
  color: rgb(255 255 255 / 90%);
}

.features--colour .features__icon {
  background: rgb(255 255 255 / 20%);
}

/* On phones the place cards swipe sideways, like the events, rather than stacking eight deep */
@media (max-width: 40rem) {
  .spots {
    grid-auto-columns: 78%;
    grid-auto-flow: column;
    grid-template-columns: none;
    padding-bottom: var(--space-2);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .spot {
    scroll-snap-align: start;
  }

  .spot:hover {
    transform: none;
  }
}

/* Bonfire: fire sites and closures map, facts and gallery */
.map--bonfire {
  height: min(65vh, 34rem);
  background: #14161a;
}

.bmark {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  width: max-content;
  background: none;
  border: 0;
}

.bmark__dot {
  flex: none;
  width: 1.75rem;
  height: 1.75rem;
  border: 2px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgb(0 0 0 / 35%), 0 0 14px rgb(255 140 40 / 70%);
}

.bmark--fire .bmark__dot {
  background: radial-gradient(circle at 50% 60%, #ffd23f 0 25%, #f97316 45%, #b91c1c 80%);
}

.bmark--closed .bmark__dot {
  background: #d91e18;
  box-shadow: 0 0 0 3px rgb(0 0 0 / 35%);
}

.bmark--closed .bmark__dot::after {
  content: "";
  display: block;
  width: 0.9rem;
  height: 0.22rem;
  margin: 0.64rem auto 0;
  border-radius: 1px;
  background: #ffffff;
}

.bmark--memorial .bmark__dot {
  background: #1f2937;
  box-shadow: 0 0 0 3px rgb(0 0 0 / 35%);
}

.bmark__label {
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-pill);
  background: rgb(10 10 12 / 80%);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.bonfire-facts {
  display: grid;
  gap: var(--space-5);
  margin: var(--space-4) 0 var(--space-6);
}

@media (min-width: 56rem) {
  .bonfire-facts {
    grid-template-columns: 1fr 1fr;
  }
}

.bonfire-facts > section {
  padding: var(--space-4) var(--space-5);
  border-top: 4px solid #c2410c;
  border-radius: var(--radius);
  background: var(--colour-surface);
  box-shadow: var(--shadow);
}

.bonfire-facts h3 {
  margin-top: 0;
}

.firesites {
  margin: 0;
  padding: 0;
  list-style: none;
}

.firesites li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0 var(--space-3);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--colour-border);
}

.firesites span {
  grid-column: 1;
  color: var(--colour-ink-muted);
  font-size: var(--text-sm);
}

.firesites .firesites__time {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  color: #9a3412;
  font-weight: 800;
}

.tag--warn {
  margin-left: var(--space-1);
  background: #fde68a;
  color: #713f12;
  vertical-align: middle;
}

.source-note {
  color: var(--colour-ink-muted);
  font-size: var(--text-sm);
}

.gallery {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  max-width: none;
  margin: var(--space-4) 0 var(--space-6);
  padding: 0;
  list-style: none;
}

.gallery figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: #111111;
  box-shadow: var(--shadow);
}

.gallery img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.gallery figcaption {
  padding: 0.35rem 0.6rem;
  color: #e5e7eb;
  font-size: var(--text-xs);
}

.gallery figcaption a {
  color: #ffffff;
}

.gallery .credit {
  position: static;
  padding: 0;
  border-radius: 0;
  background: none;
}

.bmark--key {
  display: inline-flex;
  margin: 0 0.2rem 0 0.6rem;
  vertical-align: middle;
}

.bmark--key .bmark__dot {
  width: 1.1rem;
  height: 1.1rem;
}

.bmark--key.bmark--closed .bmark__dot::after {
  width: 0.55rem;
  height: 0.16rem;
  margin-top: 0.37rem;
}

/* New in Brighton */
.band--new {
  background:
    radial-gradient(circle at 90% 10%, rgb(242 177 52 / 30%), transparent 45%),
    var(--colour-surface);
}

.band--new .eyebrow {
  color: #9a3412;
}

.spot__soon {
  display: inline-block;
  margin: 0 0 0.35rem;
  padding: 0.1rem 0.55rem;
  border-radius: var(--radius-pill);
  background: #fde68a;
  color: #713f12;
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* The map's opening view: the town's landmarks, drawn large whatever the zoom */
.pin--landmark {
  background: none;
  border: 0;
}

.pin--landmark img,
.pin--landmark svg {
  display: block;
  filter: drop-shadow(0 3px 5px rgb(0 0 0 / 35%));
}

.pin--landmark img {
  width: 60px;
  height: 60px;
}

.map.is-far .pin-label--landmark {
  display: block;
}
