:root {
  /* Brand palette */
  --pink: #ff2e86;
  --light-pink: #ffe3ef;
  --gray-light: #b3b3b3;
  --blue: #00e5ff;
  --yellow: #f6e27f;
  --black: #131515;
  --white: #fff;
  --burgandy: #64122b;
  --gold: #ffd700;

  /* Typography */
  --font-sans: "Inter", "Source Sans Pro", Helvetica, Arial, sans-serif;
  --font-display: "Playfair Display", Georgia, serif;
  --leading: 1.6;
  --tracking-tight: -0.01em;
  --tracking-wide: 0.02em;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,.08);
  --shadow-md: 0 6px 18px rgba(0,0,0,.12);
  --shadow-lg: 0 16px 40px rgba(0,0,0,.18);

  color-scheme: light dark;
}

/* Always default to light visuals unless overridden explicitly */
:root { background: #fff; color: var(--black); }
body { background: #fff; color: var(--black); }

body {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 300;
  background: #fff;
  overflow-x: hidden;
  height: 100vh;
  margin: 0;
  line-height: var(--leading);
}

/* Global text selection highlight */
::selection { background: var(--pink); color: #131515; }
::-moz-selection { background: var(--pink); color: #131515; }

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  background: var(--pink);
  color: #fff;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  z-index: 10000;
}

/* Trick */
body {
  display: flex;
  flex-direction: column;
}

footer {
  margin-top: auto;
}

header {
  padding: 2rem 0 0;
}

h1 {
  color: var(--black);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  margin: 30px 0 16px;
}
h2 {
  color: var(--black);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
  margin: 20px 0 12px;
}

/* Remove legacy hover background/box-shadow from headings */
a > h2:hover { background: transparent; box-shadow: none; }

h3 {
  color: var(--black);
  font-weight: 600;
  margin: 16px 0 10px;
}
a > h3:hover { background: transparent; box-shadow: none; color: inherit; }

h4 {
  color: var(--burgandy);
  text-transform: uppercase;
}
h5 {
  color: var(--pink);
  text-transform: capitalize;
}
h6 {
  color: var(--pink);
  text-transform: capitalize;
}
blockquote {
  padding: 15px;
  color: var(--black);
  border-left: 4px solid var(--pink);
  background: var(--light-pink);
  border-radius: var(--radius-sm);
  font-style: italic;
}

blockquote > p {
  margin-bottom: 0;
  padding: 5px;
}

.social-links > p > a {
  color: var(--white);
  text-decoration: none;
}
.footer_menu > li > a {
  color: var(--white);
  text-decoration: none;
}
.footer_menu > li > a:hover {
  color: var(--light-pink);
  opacity: 0.8;
}
header .main_menu {
  list-style-type: none;
  margin: 0;
  display: flex;
  padding: 0 !important;
  justify-content: flex-end;
}
header .main_menu li a {
  padding: 0;
  color: var(--black);
  text-decoration: none;
}

header .main_menu li {
  position: relative;
  text-transform: uppercase;
  display: block;
  text-align: start;
  padding: 10px 20px;
}

header .main_menu li:first-child a {
  padding-left: 0;
  flex-grow: 0;
}
header .main_menu li:last-child {
  flex-grow: 0;
}

header .main_menu li .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  color: var(--black);
  margin: 0;
  padding: 8px 0;
  list-style-type: none;
  z-index: 1050;
  min-width: 260px;
  border: 1px solid rgba(0, 0, 0, .08);
  box-shadow: var(--shadow-md);
  border-radius: 0 10px 10px 10px;
}
header .main_menu li .sub-menu > li {
  padding: 6px 14px;
}

header .main_menu > li:hover {
  box-shadow: inset 0 -3px 0 0 var(--pink);
}

.sub-menu > li > a {
  padding: 6px 0 !important;
  color: var(--black) !important;
}

.main_menu > li:hover .sub-menu {
  display: block !important;
}

header .secondary_menu {
  list-style-type: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: flex;
  justify-content: flex-end;
}
header .secondary_menu li a {
  padding: 0.35rem 0.9rem;
  color: var(--burgandy);
  margin: 0 4px;
  background: #fff;
  border: 1px solid var(--pink);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}
header .secondary_menu li a:hover,
header .secondary_menu li a:focus {
  background: var(--pink);
  color: #fff;
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}
header .secondary_menu li:first-child a {
  margin-left: 0;
}
header .secondary_menu li:last-child a {
  margin-right: 0;
}

footer {
  background: var(--burgandy);
  padding: 2rem 0;
  color: var(--white);
}
footer .footer_menu {
  text-decoration: none;
  list-style-type: none;
  color: var(--black);
  margin: 0;
  padding: 0;
}

.logo {
  max-width: 200px;
}
@media (min-width: 768px) {
  .logo {
    width: 100%;
  }
}

.partner-logos > div > p {
  vertical-align: middle;
  justify-content: center;
  align-items: center;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

.partner-logos > div > p > img {
  vertical-align: middle;
  max-width: 200px;
  height: auto;
  padding: 25px;
}
.partner-logos > .d-flex {
  border-bottom: 1px solid var(--pink);
  text-align: center;
}
.partner-logos > .d-flex:last-child {
  border-bottom: 0px solid var(--light-pink);
}
.partner-logos > div > h3 {
  border-bottom: 2px solid var(--light-pink);
}

.light-pink-bg {
  background: var(--pink);
}

.competition-film-bar {
  background: var(--burgandy);
}

.competition-film-bar > div {
  align-items: baseline;
  color: white;
}
.competition-film-bar > div > div > h5 {
  margin: 0;
  padding: 6px;
  color: white !important;
}
.competition-film-bar > div > div > h6 {
  color: white !important;
}
.competition-film-description {
  background: var(--light-pink);
  padding: 5px 3% 10px;
}
.competition-film-description > p {
  margin: 0;
  padding: 0;
}
.programme-date-header {
  color: black;
  text-decoration: none;
}
.programme-date-header > h3:hover {
  color: #222;
  opacity: 0.8;
}
.line-pink {
  width: 100%;
  height: 2px;
  background: var(--pink);
  margin: 10px 0 15px;
}
.competition-name {
  text-decoration: none;
  color: black;
  font-weight: bold;
}
.competition-name > h5:hover {
  color: #222;
}
.film-profile-btn {
  margin-top: auto;
  margin-bottom: auto;
  text-decoration: none;
}
.film-profile-btn > button {
  border: 1px solid #efefef;
  border-radius: 1px;
  background: var(--light-pink);
  transition: all 0.2s;
}
.film-profile-btn > button:hover {
  background: var(--pink);
  color: white;
  transition: all 0.5s;
}
.film-profile-btn > button:hover > i {
  color: var(--light-pink);
}

.film-profile-btn > button > i {
  color: var(--pink);
}
.film-bar-title {
  flex-grow: 1;
}
.film-bar-details {
  margin: 0 20px;
  justify-content: space-between;
  flex-grow: 0.1;
}
.film-bar-details > p {
  margin: 0;
}
.film-bar-details > p > i {
  padding-right: 4px;
}
.main-button {
  width: auto;
  text-decoration: none;
}
.main-button > button {
  background: var(--pink);
  padding: 12px 18px;
  border: 0;
  display: inline-flex;
  align-items: center;
  color: #fff;
  transition: background .25s ease, box-shadow .25s ease, transform .25s ease;
  font-weight: 600;
  text-transform: none;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.main-button > button:hover {
  background: #ff4fa1;
  color: #fff;
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.main-button > button > i {
  font-size: 22px;
  padding-left: 10px;
}
.custom-search {
  width: auto;
  align-items: center !important;
  padding-left: 5px;
  max-width: 260px;
}
.input-group-append {
  margin: 0 !important;
}
/* Header search input styled to match secondary pills with subtle background */
#search-form.input-group.custom-search {
  margin-left: 8px;
}
#search-form {
  display: flex;
  align-items: stretch;
  background: #ffe3ef75;
  border: 1px solid var(--pink);
  border-radius: var(--radius-md);
  height: 30px;
}
#search-form .input-group.custom-search {
  display: flex;
  align-items: center;
  flex: 1;
}
#search-form .form-control {
  border: 0;
  background: transparent;
  height: 100%;
  padding: 0 0.75rem;
}
#search-form .form-control::placeholder {
  color: rgba(0,0,0,.55);
}
#search-form:focus-within {
  box-shadow: 0 0 0 .2rem rgba(255, 46, 134, .12);
}
#search-form .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--burgandy);
  border: 0;
  box-shadow: none;
  height: 100%;
  padding: 0 0.65rem;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
#search-form .btn:hover,
#search-form .btn:focus {
  background: rgba(255, 46, 134, .08);
  color: var(--burgandy);
  box-shadow: none;
}
.fa-search {
  color: var(--pink);
}
.juror-image {
  box-shadow: 5px 5px var(--pink);
}
.thin-pink-line {
  width: 100%;
  height: 1px;
  background: var(--light-pink);
}
.film-info {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  color: var(--black);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: var(--radius-md);
}
.film-details > span {
  flex-grow: 1;
  text-align: center;
  padding: 15px;
}
.film-details > span:nth-child(2) {
  border-left: 1px solid var(--pink);
  border-right: 1px solid var(--pink);
}
.film-image {
  box-shadow: var(--shadow-sm);
  transition: box-shadow .25s ease, transform .25s ease;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: var(--radius-md);
}
.film-image:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.card-img-overlay {
  top: auto !important;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
}

/* Modern cards */
.card {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,.06);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
  transition: transform .2s ease, box-shadow .2s ease;
}
.archive-list > li {
  list-style: none;
  color: var(--pink);
  background: var(--gray-light);
  padding: 10px;
}
.filmYears {
  background: #ff8cc6;
  height: 90px;
  align-items: center;
  justify-content: center;
  display: flex;
  margin: 10px;
  text-align: center;
}
.filmYears > a {
  font-size: 24px;
  text-decoration: none;
  color: white;
}


/* ------------------------------------------------------------
   Utility classes (theme-wide)
   Keep these minimal, reusable, and composable
------------------------------------------------------------- */

/* Borders themed */
.border-top-pink { border-top: 1px solid var(--pink) !important; }
.border-bottom-pink { border-bottom: 1px solid var(--pink) !important; }
.border-pink { border: 1px solid var(--pink) !important; }
.border-pink-soft { border: 1px solid #ff8cc685 !important; }

/* Backgrounds */
.bg-light-pink { background: var(--light-pink) !important; }
.bg-burgandy { background: var(--burgandy) !important; }
.bg-dark-footer { background: #121212 !important; }

/* Text helpers */
.text-white { color: #fff !important; }

/* Sizing */
.h-200 { height: 200px !important; }
.min-h-200 { min-height: 200px !important; }
.w-100 { width: 100% !important; }
.w-120 { width: 120px !important; }

/* Card helpers */
.card-footer-dark { background: #121212; color: #f5f5f5; }
.card-missing { 
  background-color: var(--pink);
  font-size: 70px;
  color: white;
  width: auto;
  height: 400px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Button variant for pink CTA */
.btn-pink {
  color: #fff !important;
  background: var(--pink) !important;
  border: 1px solid #ff8cc685 !important;
  padding: 5px 10px !important;
  text-decoration: none !important;
}

/* Generic buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}
.btn-primary {
  background: var(--pink);
  color: #fff;
}
.btn-primary:hover {
  background: #ff4fa1;
  color: #fff;
}
.btn-outline {
  background: transparent;
  color: var(--black);
  border-color: rgba(0,0,0,.15);
}
.btn-outline:hover { border-color: var(--pink); color: var(--pink); }

/* Hero section using CSS variable for background image */
.hero-section {
  height: 80vh;
  background-size: cover;
  background-position: center center;
  width: 100%;
  background-image: var(--bg);
  margin: auto;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,.55) 100%);
}
.hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 4rem);
  letter-spacing: var(--tracking-tight);
  margin-bottom: 16px;
  color: rgba(255,255,255,.85);
}
.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 600;
  color: rgba(255,255,255,.85);
}

/* Front-end placeholders */
.placeholder-200 { height: 200px; }

/* ------------------------------------------------------------
   Profile components
------------------------------------------------------------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--pink);
  background: var(--light-pink);
  border-radius: 9999px;
  color: var(--black);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--pink);
  border-radius: 9999px;
  background: #fff;
}
.info-card {
  background: #fff;
  border: 1px solid var(--pink);
  box-shadow: 5px 5px 0 var(--pink);
}
.card-competition {
  border: 1px solid var(--pink);
  background: #fff;
  transition: background .25s ease, box-shadow .25s ease, transform .25s ease;
}
.card-competition:hover {
  background: var(--light-pink);
  box-shadow: 5px 5px 0 var(--pink);
  transform: translateY(-2px);
}
.icon-circle {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: var(--burgandy);
  color: #fff;
}

/* Hero image block for profile */
.profile-hero {
  position: relative;
  width: 100%;
  height: 55vh;
  min-height: 320px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  align-items: flex-end;
}
.profile-hero .profile-hero-overlay {
  width: 100%;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.65) 100%);
  color: #fff;
  padding: 24px 0;
}

/* Better typography for rich content */
.prose {
  line-height: 1.75;
}
.prose h2, .prose h3, .prose h4 {
  margin-top: 1.25rem;
}
.prose p {
  margin-bottom: 1rem;
}
.prose ul, .prose ol {
  padding-left: 1.25rem;
}
.prose a { color: var(--burgandy); text-decoration: underline; }

/* Breadcrumbs – subtle, lightweight */
nav[aria-label="breadcrumb"] {
  font-size: 0.875rem;
  margin-bottom: 0.75rem !important;
}
.breadcrumb {
  background: transparent;
  padding: 0;
  margin: 0;
}
.breadcrumb .breadcrumb-item {
  color: rgba(0,0,0,.55);
  font-weight: 400;
  letter-spacing: 0.01em;
}
.breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  color: rgba(0,0,0,.35);
}
.breadcrumb .breadcrumb-item a {
  color: rgba(0,0,0,.55);
  text-decoration: none;
}
.breadcrumb .breadcrumb-item a:hover {
  color: var(--pink);
  text-decoration: none;
}
.breadcrumb .breadcrumb-item.active {
  color: rgba(0,0,0,.45);
}

/* Accessibility: Focus styles */
:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 2px;
}

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

/* Dark mode support (automatic) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --black: #f5f7f8;
    --white: #0b0b0b;
    --gray-light: #3a3a3a;
    --light-pink: #3b1628;
    --burgandy: #4a0f22;
  }

  :root:not([data-theme="light"]) body { background: var(--white); color: var(--black); }
  :root:not([data-theme="light"]) header { background: #121212; box-shadow: 0 1px 0 rgba(255,255,255,.06); }
  :root:not([data-theme="light"]) header .main_menu li a { color: var(--black); }
  :root:not([data-theme="light"]) footer { background: #0e0e0e; }
  :root:not([data-theme="light"]) .card { background: #161616; border-color: rgba(255,255,255,.06); }
  :root:not([data-theme="light"]) .card-footer-dark { background: #0e0e0e; color: #eaeaea; }
  :root:not([data-theme="light"]) .prose a { color: #ff8fc0; }
}

/* Explicit theme overrides via [data-theme] */
:root[data-theme="dark"] {
  --black: #f5f7f8;
  --white: #0b0b0b;
  --gray-light: #3a3a3a;
  --light-pink: #3b1628;
  --burgandy: #4a0f22;
}
:root[data-theme="dark"] body { background: var(--white); color: var(--black); }
:root[data-theme="dark"] header { background: #121212; box-shadow: 0 1px 0 rgba(255,255,255,.06); }
:root[data-theme="dark"] header .main_menu li a { color: var(--black); }
:root[data-theme="dark"] footer { background: #0e0e0e; }
:root[data-theme="dark"] footer .footer_menu a { color: #e9e9e9; }
:root[data-theme="dark"] footer .footer_menu a:hover { color: #ff8fc0; }
:root[data-theme="dark"] .card { background: #161616; border-color: rgba(255,255,255,.06); }
:root[data-theme="dark"] .card-footer-dark { background: #0e0e0e; color: #eaeaea; }
:root[data-theme="dark"] .prose a { color: #ff8fc0; }
:root[data-theme="dark"] header .main_menu li .sub-menu { background: #1b1b1b; border: 1px solid rgba(255,255,255,.12); }
:root[data-theme="dark"] .sub-menu > li > a { color: #e9e9e9 !important; }
:root[data-theme="dark"] .sub-menu > li > a:hover { color: #ff8fc0 !important; }
:root[data-theme="dark"] .theme-toggle { background: #1b1b1b; border-color: rgba(255,255,255,.12); color: #e9e9e9; }

/* Dark-mode submenu legibility within media query (fallback) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) header .main_menu li .sub-menu { background: #1b1b1b; border: 1px solid rgba(255,255,255,.12); }
  :root:not([data-theme="light"]) .sub-menu > li > a { color: #e9e9e9 !important; }
  :root:not([data-theme="light"]) .sub-menu > li > a:hover { color: #ff8fc0 !important; }
  :root:not([data-theme="light"]) footer .footer_menu a { color: #e9e9e9; }
  :root:not([data-theme="light"]) footer .footer_menu a:hover { color: #ff8fc0; }
}

/* ------------------------------------------------------------
   Archives page link styling (year index + film cards)
------------------------------------------------------------- */
.year-index .nav-link {
  color: var(--burgandy);
  border: 1px solid var(--pink);
  background: #fff;
  border-radius: var(--radius-md);
  padding: 6px 12px;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.year-index .nav-link:hover,
.year-index .nav-link:focus {
  color: #fff;
  background: var(--pink);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transform: translateY(-1px);
}
.year-index .nav-link.active,
.year-index .nav-link[aria-current="page"] {
  color: #fff;
  background: var(--pink);
}

/* Film grid links on archive pages */
a.archive-film-link {
  color: var(--black);
  text-decoration: none;
}
a.archive-film-link:hover h4,
a.archive-film-link:focus h4 {
  color: var(--pink);
  text-decoration: none;
}

/* ------------------------------------------------------------
   Search results
------------------------------------------------------------- */
.search-card .card {
  border: 1px solid rgba(0,0,0,.06);
  transition: box-shadow .25s ease, transform .25s ease;
}
.search-card .card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.search-card h2 {
  color: var(--black);
}
.search-card:hover h2 { color: var(--pink); }
.search-card .card-footer .text-pink { color: var(--pink); }

/* ------------------------------------------------------------
   Contact form (light brand accents)
------------------------------------------------------------- */
.contact-form .form-label {
  font-weight: 600;
}
.contact-form .form-control {
  border-radius: var(--radius-md);
  border: 1px solid rgba(0,0,0,.12);
}
.contact-form .form-control:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 .2rem rgba(255,46,134,.12);
}
.contact-form .contact-submit.btn.btn-primary {
  background: var(--pink);
  border: 0;
  border-radius: var(--radius-md);
  font-weight: 600;
}
.contact-form .contact-submit.btn.btn-primary:hover {
  background: #ff4fa1;
}

/* ------------------------------------------------------------
   Programme (festival calendar) – grid, cards, and pagination
------------------------------------------------------------- */
.programme-nav {
  gap: 8px;
}
.programme-nav__tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.programme-nav__tab {
  white-space: nowrap;
  padding: 6px 10px;
  border: 1px solid var(--pink);
  background: #fff;
  border-radius: var(--radius-md);
  color: var(--burgandy);
}
.programme-nav__tab.is-active {
  background: var(--pink);
  color: #fff;
}
.programme-nav__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  border: 1px solid rgba(0,0,0,.12);
  background: #fff;
}
/* Mobile: keep day tabs visible while scrolling */
@media (max-width: 991.98px) {
  .programme-nav {
    position: sticky;
    top: 0;
    z-index: 1020;
    background: #fff;
    box-shadow: 0 1px 0 rgba(0,0,0,.06);
    padding: 6px 0;
  }
}
.programme-grid {
  display: grid;
  grid-template-columns: 1fr; /* Mobile: stack cards */
  gap: 16px;
}
@media (min-width: 768px) {
  .programme-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 992px) {
  .programme-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.programme-day { display: none; }
.programme-day.is-active { display: block; }

/* Desktop layout: days as columns; events stacked vertically */
@media (min-width: 992px) {
  .programme-days {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
  }
  .programme-day { display: block !important; }
  .programme-nav { margin-bottom: 16px; }
  .programme-grid { display: block; }
  .programme-card { margin-bottom: 16px; }
}

.programme-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.programme-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.programme-card__media {
  position: relative;
  width: 100%;
  /* 1:1 square */
  aspect-ratio: 1 / 1;
  background: #f7f7f7;
}
.programme-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.programme-card__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light-pink);
  color: var(--pink);
  font-size: 52px;
}
.programme-card__meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 0;
}
.programme-card__time-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--pink);
  color: #fff;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.programme-card__venue-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--burgandy);
}
.programme-card__title {
  margin: 8px 12px 0;
  font-size: 1rem;
}
.programme-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 6px 12px 12px;
  color: var(--burgandy);
}
.programme-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); transition: transform .2s ease, box-shadow .2s ease; }

/* Mobile: hide date heading inside section; nav provides pagination */
@media (max-width: 767.98px) {
  .programme-date-header, .line-pink { display: none !important; }
}
/* Hide day tabs on desktop; show only on mobile/tablet */
@media (min-width: 992px) {
  .programme-nav { display: none !important; }
}

/* Add some breathing space below the programme on all screens */
.programme-days { margin-bottom: 36px; }
