/* Hiiumaa Kino — website refresh
   CVI kept: logo, brand colours (#0ac989 green, #06347d navy, #1d83ad teal), Satoshi. */

@font-face {
  font-family: "Satoshi";
  src: url("../fonts/Satoshi/fonts/Satoshi-Variable.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --green: #0ac989;
  --green-600: #08b07a;
  --green-50: #e7faf3;
  --navy: #06347d;
  --navy-900: #04245a;
  --navy-950: #021638;
  --teal: #1d83ad;
  --ink: #181716;
  --ink-2: #45474d;
  --ink-3: #6b6f78;
  --line: #e3e6ea;
  --surface: #ffffff;
  --bg: #f4f5f7;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .06);
  --shadow: 0 2px 4px rgba(16, 24, 40, .04), 0 12px 32px -12px rgba(16, 24, 40, .18);
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: "Satoshi", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 6px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* Brand motif: the three tick marks from the logo */
.ticks { display: inline-flex; gap: 3px; align-items: flex-end; margin-right: 10px; vertical-align: -1px; }
.ticks i { display: block; width: 4px; border-radius: 4px; }
.ticks i:nth-child(1) { height: 10px; background: var(--green); }
.ticks i:nth-child(2) { height: 14px; background: var(--navy); }
.ticks i:nth-child(3) { height: 8px; background: var(--teal); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px;
  border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: 15px; line-height: 1.1; letter-spacing: .01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s, transform .15s;
}
.btn--lg { min-height: 52px; padding: 14px 28px; font-size: 16px; }
.btn--primary { background: var(--green); color: var(--ink); }
.btn--primary:hover { background: #2bd99f; }
.btn--primary:active { transform: translateY(1px); }
.btn--outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--ghost-light { border-color: rgba(255,255,255,.55); color: #fff; }
.btn--ghost-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }

.text-link { color: var(--navy); font-weight: 700; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.text-link::after { content: "→"; transition: transform .15s; }
.text-link:hover::after { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.site-logo { flex: none; display: block; }
.site-logo img { height: 44px; width: auto; }

.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; align-items: center; gap: 4px; }
.primary-nav a {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 12px; border-radius: 999px;
  font-weight: 600; font-size: 15px; color: var(--ink-2); text-decoration: none;
  transition: color .15s, background-color .15s;
}
.primary-nav a:hover { color: var(--navy); background: #eef1f6; }
.primary-nav .is-current > a { color: var(--navy); }
.primary-nav .is-current > a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px;
  height: 3px; border-radius: 3px; background: var(--green);
}
.primary-nav svg { width: 16px; height: 16px; }
.primary-nav .nav-cta { margin-left: 6px; }
.primary-nav .nav-cta + .nav-cta { margin-left: 2px; }
.primary-nav .nav-cta > a { background: var(--green); color: var(--ink); padding: 10px 18px; font-weight: 700; }
.primary-nav .nav-cta > a:hover { background: #2bd99f; color: var(--ink); }
.primary-nav .nav-cta--ghost > a { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 2px #c9d3e4; }
.primary-nav .nav-cta--ghost > a:hover { background: #eef1f6; color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); }
/* Buttons show the current page with their border instead of the underline. */
.primary-nav .nav-cta.is-current > a::after { content: none; }
.primary-nav .nav-cta--ghost.is-current > a,
.primary-nav .nav-cta--ghost.is-current > a:hover { box-shadow: inset 0 0 0 2px var(--green); }
.primary-nav .nav-cta.is-current:not(.nav-cta--ghost) > a { box-shadow: inset 0 0 0 2px var(--green-600); }

.nav-toggle {
  display: none; margin-left: auto;
  align-items: center; gap: 10px;
  min-height: 44px; padding: 8px 14px 8px 12px;
  border: 0; border-radius: 999px; background: #eef1f6; cursor: pointer;
  font-weight: 700; font-size: 15px; color: var(--navy);
}
.nav-toggle__bars { display: grid; gap: 4px; width: 18px; }
.nav-toggle__bars i { display: block; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1080px) {
  :root { --header-h: 64px; }
  .site-logo img { height: 36px; }
  .js .nav-toggle { display: inline-flex; }
  .js .primary-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(16,24,40,.35);
    padding: 8px var(--gutter) 20px;
    display: none;
  }
  .js .primary-nav.is-open { display: block; }
  .js .primary-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .js .primary-nav a { display: flex; padding: 14px 12px; font-size: 18px; border-radius: 10px; }
  .js .primary-nav .is-current > a::after { left: 0; right: auto; top: 12px; bottom: 12px; width: 4px; height: auto; }
  .js .primary-nav .nav-cta { margin: 8px 0 0; }
  .js .primary-nav .nav-cta > a { justify-content: center; border-radius: 999px; }
  html:not(.js) .site-header__inner { height: auto; flex-wrap: wrap; padding-block: 12px; }
  html:not(.js) .primary-nav ul { flex-wrap: wrap; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--navy-950); color: #fff;
}
.hero__backdrop {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: center 30%;
  opacity: .6; filter: saturate(.9);
  transform: scale(1.3); transform-origin: center 65%;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(2,22,56,.96) 0%, rgba(2,22,56,.86) 38%, rgba(4,36,90,.55) 70%, rgba(2,22,56,.85) 100%),
    linear-gradient(0deg, rgba(2,22,56,.85) 0%, rgba(2,22,56,0) 50%);
}
.hero__inner {
  display: grid; grid-template-columns: minmax(0, 1fr) 360px; align-items: center; gap: 56px;
  padding-block: 40px;
}
.hero__eyebrow {
  display: inline-flex; align-items: center;
  font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #9fe9cf;
  margin-bottom: 12px;
}
.hero .ticks i:nth-child(2) { background: #5f8ad4; }
.hero__title {
  font-size: clamp(40px, 5vw, 64px); line-height: 1; font-weight: 900; letter-spacing: -.03em;
  max-width: 16ch; text-wrap: balance;
}
.hero__title a { text-decoration: none; }
.hero__title a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; text-decoration-color: var(--green); }
.hero__when { margin-top: 16px; font-size: clamp(18px, 2vw, 22px); color: #fff; }
.hero__when strong { color: var(--green); font-weight: 800; }
.hero__sep { margin-inline: 6px; opacity: .6; }
.hero__meta { margin-top: 4px; color: rgba(255,255,255,.75); font-size: 15px; }
.hero__desc { margin-top: 12px; max-width: 56ch; color: rgba(255,255,255,.86); font-size: 16px; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.hero__next {
  align-self: stretch; display: flex; flex-direction: column;
  padding: 20px 20px 16px; border-radius: var(--radius);
  background: rgba(2, 22, 56, .55); border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.hero__next-title { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.7); margin-bottom: 8px; }
.next-list { list-style: none; margin: 0; padding: 0; display: grid; }
.next-list li + li { border-top: 1px solid rgba(255,255,255,.12); }
.next-item {
  display: grid; grid-template-columns: 92px minmax(0,1fr); grid-template-areas: "when title" "when venue";
  gap: 0 12px; padding: 10px 8px; margin-inline: -8px; border-radius: 8px; text-decoration: none; color: #fff;
  transition: background-color .15s;
}
.next-item:hover { background: rgba(255,255,255,.08); }
.next-item time { grid-area: when; display: grid; align-content: center; font-size: 13px; color: rgba(255,255,255,.7); line-height: 1.2; }
.next-item time span.is-soon { color: var(--green); font-weight: 700; }
.next-item time b { font-size: 20px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.next-item__title { grid-area: title; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-item__venue { grid-area: venue; font-size: 13px; color: rgba(255,255,255,.7); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero__next-all { margin-top: auto; padding-top: 10px; align-self: flex-start; color: var(--green); font-weight: 700; font-size: 15px; text-decoration: none; }
.hero__next-all::after { content: " →"; }
.hero__next-all:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; gap: 0; }
  .hero__next { display: none; }
}
@media (max-width: 760px) {
  .hero__inner { padding-block: 28px 32px; }
  .hero__backdrop { opacity: .5; object-position: 65% center; }
  .hero::before { background: linear-gradient(180deg, rgba(2,22,56,.55) 0%, rgba(2,22,56,.92) 55%, rgba(2,22,56,.98) 100%); }
  .hero__title { font-size: 40px; }
  .hero__when { margin-top: 12px; }
  .hero__desc { display: none; }
  .hero__actions { margin-top: 20px; }
  .hero__actions .btn { flex: 1 1 auto; min-height: 48px; padding-block: 12px; }
}

/* ---------- Section heads ---------- */
.programme, .soon-section { padding-block: clamp(28px, 4vw, 44px) 0; }
.programme:focus { outline: none; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px 32px; flex-wrap: wrap; margin-bottom: 20px; }
.eyebrow { display: inline-flex; align-items: center; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.section-title { font-size: clamp(30px, 4vw, 44px); line-height: 1.05; font-weight: 900; letter-spacing: -.025em; color: var(--ink); }
.section-head__note { color: var(--ink-3); font-size: 15px; }

/* ---------- Filters (sticky under the header) ---------- */
.filters {
  display: none; gap: 10px; padding: 12px 16px; margin-bottom: 4px;
  background: rgba(255,255,255,.96); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  position: sticky; top: calc(var(--header-h) + 8px); z-index: 20;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: box-shadow .2s;
}
.filters.is-stuck { box-shadow: 0 10px 30px -12px rgba(16,24,40,.3); }
.js .filters { display: grid; }
.filters__row { display: grid; grid-template-columns: 64px minmax(0,1fr); align-items: center; gap: 12px; }
.filters__label { font-size: 12px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips--scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -16px; padding-right: 32px; scroll-snap-type: x proximity; mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); }
.chips--scroll::-webkit-scrollbar { display: none; }
.chips.at-end { mask-image: none; -webkit-mask-image: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  min-height: 38px; padding: 6px 14px; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink-2);
  font-weight: 600; font-size: 15px; cursor: pointer; scroll-snap-align: start;
  transition: border-color .15s, background-color .15s, color .15s;
}
@media (hover: hover) { .chip:hover:not(:disabled) { border-color: var(--navy); color: var(--navy); } }
.chip[aria-pressed="true"], .chip[aria-pressed="true"]:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip__count { font-size: 12px; font-weight: 700; min-width: 20px; padding: 1px 6px; border-radius: 999px; background: #eef1f6; color: var(--ink-3); text-align: center; }
.chip[aria-pressed="true"] .chip__count { background: rgba(255,255,255,.18); color: #fff; }
.chip--day .chip__wd { font-weight: 800; }
.chip--day .chip__date { color: var(--ink-3); font-weight: 500; }
.chip--day[aria-pressed="true"] .chip__date { color: rgba(255,255,255,.75); }
.chip[hidden] { display: none; }
.filters__status { min-height: 20px; margin: 10px 2px 10px; font-size: 14px; color: var(--ink-3); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.filters__status button { border: 0; background: none; padding: 0; color: var(--navy); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 14px; }

@media (max-width: 640px) {
  .filters { gap: 8px; padding: 10px 12px; margin-inline: calc(-1 * var(--gutter) + 6px); top: var(--header-h); border-radius: 0 0 var(--radius) var(--radius); }
  .filters__row { grid-template-columns: 1fr; }
  .filters__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .chips { gap: 6px; }
  .chips--scroll { margin-right: -12px; }
  .chip { min-height: 36px; padding: 5px 11px; font-size: 14px; }
  .chip__count { display: none; }
  .programme { padding-top: 24px; }
  .section-head { margin-bottom: 14px; }
  .section-head .eyebrow { margin-bottom: 4px; }
}

/* ---------- Film rows ---------- */
.films { display: grid; gap: 16px; }
.films > .film {
  display: grid; grid-template-columns: 104px minmax(0, 240px) minmax(0, 1fr);
  grid-template-areas: "poster head times";
  gap: 0 28px; padding: 16px; align-items: start;
  background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.films > .film[hidden] { display: none; }
.film__poster { grid-area: poster; display: block; border-radius: var(--radius-sm); overflow: hidden; background: #dde2ea; }
.film__poster img { width: 100%; aspect-ratio: 2/3; object-fit: cover; transition: transform .35s; }
.film__poster:hover img { transform: scale(1.04); }
.film__head { grid-area: head; padding-top: 4px; }
.film__title { font-size: 22px; line-height: 1.15; font-weight: 800; letter-spacing: -.015em; }
.film__title a { text-decoration: none; }
.film__title a:hover { color: var(--navy); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.film__meta { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 2px 0; color: var(--ink-3); font-size: 14px; }
.film__meta span + span::before { content: "·"; margin-inline: 7px; }
.film__tags { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.age { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 800; letter-spacing: .04em; border: 1.5px solid currentColor; }
.age--family { color: #077a54; background: var(--green-50); }
.age--ms12, .age--k12, .age--other { color: var(--navy); background: #eef3fb; }
.film__count { font-size: 13px; color: var(--ink-3); font-weight: 600; }

.showtimes { grid-area: times; display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 10px; align-content: start; }
.showtime[hidden] { display: none; }
.showtime__link {
  height: 100%;
  display: grid; grid-template-rows: auto 1fr auto; gap: 2px;
  padding: 12px 12px 12px 14px;
  border-radius: var(--radius-sm); background: var(--bg); text-decoration: none;
  transition: background-color .15s, box-shadow .15s;
}
.showtime__link:hover { background: var(--green-50); box-shadow: inset 0 0 0 1.5px var(--green); }
.showtime__when { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.showtime__day { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.showtime__day.is-soon { color: #077a54; font-weight: 800; }
.showtime__time { font-size: 22px; font-weight: 800; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.showtime__venue { font-size: 13px; font-weight: 600; color: var(--ink-2); line-height: 1.3; margin-bottom: 10px; }
.showtime__cta {
  justify-self: stretch; justify-content: center;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 12px; border-radius: 999px; background: var(--green); color: var(--ink);
  font-size: 14px; font-weight: 700; white-space: nowrap;
}
.showtime__cta svg { width: 14px; height: 14px; transition: transform .15s; }
.showtime__link:hover .showtime__cta svg { transform: translateX(2px); }

@media (max-width: 1000px) {
  .films > .film { grid-template-columns: 112px minmax(0,1fr); grid-template-areas: "poster head" "poster times"; gap: 12px 20px; }
}
@media (max-width: 560px) {
  .films { gap: 12px; }
  .films > .film { grid-template-columns: 72px minmax(0,1fr); grid-template-areas: "poster head" "times times"; gap: 12px 14px; padding: 12px; }
  .film__poster { border-radius: 8px; }
  .film__head { padding-top: 0; align-self: center; }
  .film__title { font-size: 19px; }
  .film__meta { font-size: 13px; margin-top: 2px; }
  .film__tags { margin-top: 6px; }
  .showtimes { grid-template-columns: 1fr; gap: 6px; }
  .showtime__link { grid-template-columns: minmax(0,1fr) auto; grid-template-rows: auto auto; grid-template-areas: "when cta" "venue cta"; align-items: center; gap: 0 10px; min-height: 56px; padding: 7px 8px 7px 12px; }
  .showtime__when { grid-area: when; }
  .showtime__time { font-size: 19px; }
  .showtime__venue { grid-area: venue; margin: 0; }
  .showtime__cta { grid-area: cta; justify-self: end; padding: 8px 10px 8px 12px; }
}

.empty { text-align: center; padding: 48px 24px; background: var(--surface); border: 1.5px dashed #c9d3e4; border-radius: var(--radius); }
.empty__title { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.empty .btn { margin-top: 16px; }

/* ---------- Coming soon ---------- */
.soon-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.soon__link { display: grid; grid-template-columns: 88px minmax(0,1fr); gap: 20px; align-items: center; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; box-shadow: var(--shadow-sm); transition: border-color .15s, transform .15s; }
.soon__link:hover { border-color: var(--navy); transform: translateY(-2px); }
.soon__poster { width: 88px; aspect-ratio: 2/3; object-fit: cover; border-radius: 8px; }
.soon__body { display: grid; gap: 2px; }
.soon__date { font-size: 13px; font-weight: 800; color: var(--teal); text-transform: uppercase; letter-spacing: .06em; }
.soon__title { font-size: 22px; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
.soon__genres { color: var(--ink-3); font-size: 14px; }

/* ---------- Info cards ---------- */
.info { padding-block: clamp(48px, 7vw, 80px); }
.info__grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 16px; }
.info-card { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.info-card__title { font-size: 24px; font-weight: 900; letter-spacing: -.02em; }
.info-card p { color: var(--ink-2); max-width: 52ch; }
.info-card--tickets { grid-row: span 2; background: var(--navy); color: #fff; border-color: var(--navy); }
.info-card--tickets .info-card__note { color: rgba(255,255,255,.75); font-size: 14px; }
.info-card--tickets .text-link { color: var(--green); margin-top: auto; }
.info-card--wish, .info-card--donate { display: grid; grid-template-columns: minmax(0,1fr) auto; grid-template-areas: "title btn" "text btn"; align-items: center; gap: 6px 24px; }
.info-card--wish .info-card__title, .info-card--donate .info-card__title { grid-area: title; }
.info-card--wish p, .info-card--donate p { grid-area: text; }
.info-card--wish .btn, .info-card--donate .btn { grid-area: btn; }
.prices { width: 100%; display: grid; }
.prices > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.16); }
.prices dt { font-weight: 700; }
.prices dt small { display: block; font-weight: 500; font-size: 13px; color: rgba(255,255,255,.7); }
.prices dd { font-size: 22px; font-weight: 900; color: var(--green); font-variant-numeric: tabular-nums; white-space: nowrap; }
.info-card--wish { background: var(--green-50); border-color: #bdeedd; }
@media (max-width: 960px) {
  .info__grid { grid-template-columns: 1fr; }
  .info-card--tickets { grid-row: auto; }
}
@media (max-width: 560px) {
  .info-card { padding: 22px; }
  .info-card--wish, .info-card--donate { grid-template-columns: 1fr; grid-template-areas: "title" "text" "btn"; }
  .info-card--wish .btn, .info-card--donate .btn { justify-self: start; margin-top: 8px; }
}



/* ---------- Brand stripes in the hero: the dashed "riba" graphic from the original theme, in white, along the right edge ---------- */
.hero::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  top: 0; bottom: 0; width: 28px;
  right: max(14px, calc((100% - var(--wrap)) / 4 - 14px));
  background: url("img/riba-white.png") repeat-y center top / 28px auto;
  opacity: .9;
}
@media (max-width: 760px) {
  .hero::after { width: 12px; right: 2px; background-size: 12px auto; opacity: .55; }
}

/* ---------- Footer ---------- */
.site-footer { background: #fff; border-top: 1px solid var(--line); padding-top: 56px; color: var(--ink-2); font-size: 15px; }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.site-footer__logo { width: 150px; height: auto; margin-bottom: 16px; }
.site-footer__brand p { max-width: 44ch; }
.site-footer h2 { font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); margin-bottom: 12px; }
.site-footer address { font-style: normal; line-height: 1.7; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--navy); text-decoration: underline; }
.site-footer ul { display: grid; gap: 6px; }
.social { display: flex; gap: 10px; margin-top: 16px; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; background: #eef1f6; color: var(--navy); transition: background-color .15s, color .15s; }
.social a:hover { background: var(--navy); color: #fff; }
.social svg { width: 20px; height: 20px; fill: currentColor; }
.site-footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 48px; padding-block: 24px 32px; border-top: 1px solid var(--line); }
.site-footer__supporters { height: 44px; width: auto; }
.site-footer__bottom p { font-size: 14px; color: var(--ink-3); }
/* Divider: a row of vertical brand-colour stripes. Full colour in the centre, turning grey
   towards the sides, then fading out. Two copies of the same stripes are stacked:
   ::before is grey across the whole width, ::after is the colour copy, faded out from the centre. */
.site-footer__bottom { position: relative; border-top: 0; }
.site-footer__bottom::before, .site-footer__bottom::after {
  content: ""; position: absolute; left: var(--gutter); right: var(--gutter); top: -12px; height: 24px;
  background: url("img/riba-ticks.png") repeat-x center / auto 24px;
  pointer-events: none;
}
.site-footer__bottom::before {
  filter: saturate(0);
  opacity: .4; /* lighter grey on the sides */
  -webkit-mask-image: linear-gradient(90deg, transparent 5%, rgba(0,0,0,.12) 22%, #000 50%, rgba(0,0,0,.12) 78%, transparent 95%);
  mask-image: linear-gradient(90deg, transparent 5%, rgba(0,0,0,.12) 22%, #000 50%, rgba(0,0,0,.12) 78%, transparent 95%);
}
.site-footer__bottom::after {
  -webkit-mask-image: linear-gradient(90deg, transparent 32%, #000 50%, transparent 68%);
  mask-image: linear-gradient(90deg, transparent 32%, #000 50%, transparent 68%);
}
/* Variant: horizontal dashes (the original stripe graphic laid flat), same colour gradient */
.site-footer[data-hr="horizontal"] .site-footer__bottom::before,
.site-footer[data-hr="horizontal"] .site-footer__bottom::after { top: -9px; height: 18px; background: url("img/riba-horizontal.png") repeat-x center / auto 18px; }
@media (max-width: 820px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .site-footer__supporters { height: auto; width: 100%; max-width: 360px; }
}

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

/* ---------- WordPress integration ---------- */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
/* Inner pages still load the old css/app.css; keep its menu rules off the new header. */
#primary-menu.primary-nav .menu-item { border: 0; border-radius: 0; padding: 0; margin: 0; }
#primary-menu.primary-nav .nav-cta { margin-left: 6px; }
#primary-menu.primary-nav .nav-cta + .nav-cta { margin-left: 2px; }
@media (max-width: 1080px) { .js #primary-menu.primary-nav .nav-cta { margin: 8px 0 0; } }
/* Content of the inner pages sits between the new header and footer. */
.site-main { min-height: 50vh; }
.page-content-section { padding-block: 0 56px; }
.page-content-section .entry-content > * + * { margin-top: 1em; }
.page-extra { padding-block: 0 48px; }
.page-extra .entry-content > * + * { margin-top: 1em; }
#primary-menu.primary-nav .menu-item { background: none; }
/* The old dashed stripe down the side of the inner pages (css/app.css) is retired; the stripes now live in the hero and the footer. */
main .container::before { content: none !important; display: none !important; }
/* Inner pages: the old Tailwind .container (max 960px, centred) lines up with the header and footer (.wrap). */
.site-main .container {
  width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto; padding-inline: var(--gutter);
}
.site-main article > :not(.entry-content) { max-width: none; margin-inline: 0; }
/* Running text keeps a comfortable line length; images, galleries and other blocks can use the full width. */
.site-main .entry-content > :is(p, ul, ol, h2, h3, h4, blockquote) { max-width: 72ch; }
/* Donation page open: the heart turns green to match the border. */
.primary-nav .nav-cta--ghost.is-current svg { color: var(--green); }
.primary-nav .nav-cta--ghost.is-current svg path { fill: currentColor; }
