/* Italy Discovery theme — ported from the approved Next.js design (src/app/globals.css), see the WordPress adaptations at the end. */
/* ==========================================================================
   Italy Discovery — design constitution in CSS (see docs/DESIGN_SYSTEM.md)

   1. Bodoni names things (places, people, the event, headlines).
      Plex states facts (prices, dates, times, labels, body).
   2. Calce paper is the ground; Cipresso is the one dark reset; Terracotta
      belongs to the route line and nothing else decorative.
   3. The route line always joins two named points.
   4. Photographs are real places, captioned with their place name. Full bleed
      only for the opening; elsewhere a frame breaks exactly one edge.
   5. Logical properties throughout so Arabic mirrors from the server.
   ========================================================================== */

:root {
  --paper: #f4f0e8;
  --paper-raised: #fbf9f4;
  --stone: #e9e2d4;
  --rule: #d3c9b6;
  --rule-strong: #b9ad97;
  --ink: #1c1f1b;
  --ink-soft: #4a4f47;
  --ink-muted: #5b6057;
  --cypress: #1f3d30;
  --cypress-deep: #18322a;
  --on-dark: #f4f0e8;
  --on-dark-soft: #c7d1c8;
  --terracotta: #b4532a;
  --terracotta-text: #9a4321;
  --terracotta-light: #e08a5f;

  --font-sans: var(--font-plex), "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: var(--font-bodoni), "Bodoni Moda", Didot, "Bodoni 72", Georgia, serif;

  --gutter: clamp(16px, 4.4vw, 48px);
  --max: 1240px;
  --section: clamp(64px, 9vw, 128px);
  --header-h: 60px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

:root:lang(ar) {
  /* Arabic families first; Latin runs (AGRI & ARTI, Milano, €) fall through to Plex/Bodoni. */
  --font-sans: var(--font-plex-arabic), var(--font-plex), "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-display: var(--font-amiri), var(--font-bodoni), "Amiri", serif;
}

@media (min-width: 960px) {
  :root {
    --header-h: 72px;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  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;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

:lang(ar) body,
body:lang(ar) {
  line-height: 1.8;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

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

.band--cypress :focus-visible {
  outline-color: var(--on-dark);
}

main:focus {
  outline: none;
}

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

.block {
  display: block;
}

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

/* ---------- Type roles ---------- */

.display-xl,
.display-l,
.display-m,
.event-title,
.leader__name,
.people-list__name,
.title-m {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.012em;
  text-wrap: balance;
  /* Bodoni's display optical sizes have hairlines that vanish on screens.
     A text-range opsz keeps the contrast Italian without the fashion gloss. */
  font-variation-settings: "opsz" 22;
}

.display-xl {
  font-size: clamp(2.125rem, 1.5rem + 2.4vw, 3.6rem);
  line-height: 1.06;
}

.display-l {
  font-size: clamp(1.95rem, 1.35rem + 2.5vw, 3.5rem);
  line-height: 1.08;
}

.display-m {
  font-size: clamp(1.65rem, 1.25rem + 1.6vw, 2.625rem);
  line-height: 1.12;
}

.title-m {
  font-size: clamp(1.3rem, 1.15rem + 0.5vw, 1.6rem);
  line-height: 1.2;
}

.title-s {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
}

:lang(ar) .display-xl,
:lang(ar) .display-l,
:lang(ar) .display-m,
:lang(ar) .event-title,
:lang(ar) .leader__name,
:lang(ar) .people-list__name,
:lang(ar) :lang(ar) .title-m {
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.4;
}

.lead {
  font-size: clamp(1.125rem, 1.04rem + 0.4vw, 1.3125rem);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 38em;
}

.body-l {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 36em;
}

.eyebrow,
.label,
.status {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}

.label {
  margin-block-end: 12px;
}

.eyebrow {
  margin-block-end: 16px;
}

.status {
  color: var(--terracotta-text);
  font-weight: 600;
}

.status--on-dark,
.eyebrow--on-dark,
.label--on-dark {
  color: var(--on-dark-soft);
}

.small-note {
  font-size: 0.9375rem;
  color: var(--ink-muted);
  margin-block-start: 24px;
  max-width: 44em;
}

.event-name {
  /* The event's own name keeps its Latin capitals in every language. */
  font-family: var(--font-bodoni), var(--font-display);
  font-variation-settings: "opsz" 22;
  white-space: nowrap;
}

.route,
.dimensions__name,
.programme__title,
.mobile-menu__nav a,
.site-footer__name,
.credits__caption,
.event-strip__name,
.diptych__caption {
  font-variation-settings: "opsz" 18;
}

.prose p + p {
  margin-block-start: 1em;
}

.prose {
  max-width: 40em;
  color: var(--ink-soft);
}

/* ---------- Links and buttons ---------- */

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-block-start: 32px;
}

.actions--stack {
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1.5px solid transparent;
  border-radius: 2px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  transition:
    background-color 160ms var(--ease),
    color 160ms var(--ease),
    border-color 160ms var(--ease);
}

.button--primary {
  background: var(--cypress);
  color: var(--on-dark);
}

.button--primary:hover {
  background: var(--cypress-deep);
}

.button--light {
  background: var(--on-dark);
  color: var(--cypress);
}

.button--light:hover {
  background: #fff;
}

.button--quiet {
  border-color: var(--rule-strong);
  color: var(--ink-soft);
}

.cta {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.cta__note {
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

.cta--on-dark .cta__note {
  color: var(--on-dark-soft);
}

.cta--on-dark .button--quiet {
  color: var(--on-dark);
  border-color: var(--on-dark-soft);
}

.arrow {
  display: inline-block;
  width: 14px;
  height: 10px;
  flex: none;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 10'%3E%3Cpath d='M0 5h12M8 1l4 4-4 4' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 160ms var(--ease);
}

.arrow--external {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2 12L12 2M5 2h7v7' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E");
  width: 11px;
  height: 11px;
}

[dir="rtl"] .arrow:not(.arrow--external) {
  transform: scaleX(-1);
}

@media (hover: hover) {
  a:hover > .arrow:not(.arrow--external) {
    transform: translateX(3px);
  }
  [dir="rtl"] a:hover > .arrow:not(.arrow--external) {
    transform: scaleX(-1) translateX(3px);
  }
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
  text-decoration-color: var(--rule-strong);
  transition: text-decoration-color 160ms var(--ease);
}

.text-link:hover {
  text-decoration-color: currentColor;
}

.text-link--strong {
  font-weight: 600;
  text-decoration-color: var(--terracotta);
  text-decoration-thickness: 2px;
}

.band--cypress .text-link--strong {
  text-decoration-color: var(--terracotta-light);
}

/* ---------- Header ---------- */

.skip-link {
  position: absolute;
  inset-inline-start: 16px;
  top: -100px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--paper);
}

.skip-link:focus {
  top: 8px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 96%, transparent);
  border-block-end: 1px solid var(--rule);
}

@supports (backdrop-filter: blur(1px)) {
  .site-header {
    background: color-mix(in srgb, var(--paper) 90%, transparent);
    backdrop-filter: saturate(1.2) blur(10px);
  }
}

/* A backdrop-filter makes the header the containing block of its fixed
   descendants, which would clip the full-screen mobile menu panel to the
   header's height. Drop the blur while the menu is open. */
.site-header:has(.mobile-menu[open]) {
  background: var(--paper);
  backdrop-filter: none;
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.brand {
  display: block;
  flex: none;
  width: 112px;
  margin-inline-end: auto;
}

.brand img {
  width: 100%;
  height: auto;
}

@media (min-width: 960px) {
  .brand {
    width: 132px;
  }
}

.primary-nav {
  display: none;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
}

.primary-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-soft);
  border-block-end: 2px solid transparent;
  transition:
    color 140ms var(--ease),
    border-color 140ms var(--ease);
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  color: var(--ink);
  border-block-end-color: var(--terracotta);
}

.primary-nav .nav-event {
  color: var(--cypress);
  font-weight: 600;
}

/* Disclosures: native <details> */
.lang-menu,
.mobile-menu {
  position: relative;
}

.lang-menu summary,
.mobile-menu summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding-inline: 4px;
  cursor: pointer;
  list-style: none;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-soft);
  user-select: none;
}

.lang-menu summary::-webkit-details-marker,
.mobile-menu summary::-webkit-details-marker,
.faq__item summary::-webkit-details-marker {
  display: none;
}

.chevron {
  width: 9px;
  height: 9px;
  border-inline-end: 1.5px solid currentColor;
  border-block-end: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 160ms var(--ease);
}

.lang-menu[open] .chevron {
  transform: translateY(2px) rotate(225deg);
}

.lang-menu {
  display: none;
}

.lang-menu__list {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 10px);
  min-width: 190px;
  padding: 8px;
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  box-shadow: 0 12px 28px rgb(28 31 27 / 0.12);
}

.lang-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 12px;
  text-decoration: none;
  color: var(--ink-soft);
}

.lang-link:hover {
  background: var(--stone);
  color: var(--ink);
}

.lang-link[aria-current="true"] {
  color: var(--ink);
  font-weight: 600;
  box-shadow: inset 3px 0 0 var(--terracotta);
}

[dir="rtl"] .lang-link[aria-current="true"] {
  box-shadow: inset -3px 0 0 var(--terracotta);
}

/* On non-Arabic pages the Arabic language name uses the system Arabic font,
   so the webfont is only downloaded by readers of the Arabic edition. */
:root:not(:lang(ar)) .lang-link:lang(ar) {
  font-family: system-ui, "Geeza Pro", "Noto Sans Arabic", sans-serif;
}

.burger {
  position: relative;
  width: 18px;
  height: 12px;
  border-block: 1.5px solid currentColor;
}

.burger::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 50%;
  border-block-start: 1.5px solid currentColor;
  transform: translateY(-50%);
}

.mobile-menu__close,
.mobile-menu[open] .mobile-menu__open {
  display: none;
}

.mobile-menu[open] .mobile-menu__close {
  display: inline;
}

.mobile-menu[open] .burger {
  border-block-color: transparent;
}

.mobile-menu[open] .burger::after {
  border-block-start: 0;
  inset: 0;
  transform: none;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat;
  rotate: 45deg;
}

.mobile-menu[open] .burger::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat;
  rotate: -45deg;
}

.mobile-menu__panel {
  position: fixed;
  inset-inline: 0;
  top: var(--header-h);
  bottom: 0;
  overflow-y: auto;
  padding: 24px var(--gutter) 48px;
  background: var(--paper);
  border-block-start: 1px solid var(--rule);
}

.mobile-menu__nav a {
  display: flex;
  align-items: center;
  min-height: 56px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  text-decoration: none;
  border-block-end: 1px solid var(--rule);
}

.mobile-menu__nav a[aria-current="page"] {
  color: var(--terracotta-text);
}

.mobile-menu__label {
  margin-block: 32px 8px;
  font-size: 0.875rem;
  color: var(--ink-muted);
}

.mobile-menu__langs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
}

.mobile-menu__langs .lang-link {
  padding-inline: 10px;
  border: 1px solid var(--rule);
}

@media (min-width: 960px) {
  .primary-nav,
  .lang-menu {
    display: block;
  }
  .mobile-menu {
    display: none;
  }
}

/* ---------- Bands and sections ---------- */

.section {
  padding-block: var(--section);
}

.section + .section,
.page-head + .section {
  padding-block-start: 0;
}

.section--tight {
  padding-block: clamp(48px, 6vw, 88px);
}

.band {
  padding-block: var(--section);
}

.band--stone {
  background: var(--stone);
}

.band--cypress {
  background: var(--cypress);
  color: var(--on-dark);
}

.band--cypress .lead,
.band--cypress .body-l,
.lead--on-dark {
  color: var(--on-dark-soft);
}

.section-head {
  margin-block-end: clamp(32px, 4vw, 56px);
}

.section-head .body-l {
  margin-block-start: 16px;
}

.split {
  display: grid;
  gap: 32px;
}

.split__lead .body-l {
  margin-block-start: 20px;
}

@media (min-width: 960px) {
  .split {
    grid-template-columns: 5fr 7fr;
    gap: clamp(48px, 6vw, 96px);
    align-items: start;
  }
}

.ruled-list > li {
  padding-block: 20px;
  border-block-start: 1px solid var(--rule);
}

.ruled-list > li:last-child {
  border-block-end: 1px solid var(--rule);
}

.ruled-list > li p {
  margin-block-start: 6px;
  color: var(--ink-soft);
}

.ruled-list--compact > li {
  padding-block: 14px;
}

.link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
  border-block-end: 1px solid var(--rule-strong);
  text-decoration: none;
  font-weight: 500;
}

.inline-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
  color: var(--ink-soft);
}

.inline-list li:not(:last-child)::after {
  content: "·";
  margin-inline: 10px;
  color: var(--terracotta);
}

.notice {
  margin-block-start: 28px;
  padding-block: 16px;
  padding-inline: 20px 0;
  border-inline-start: 3px solid var(--terracotta);
  color: var(--ink-soft);
  max-width: 44em;
}

.notice--large {
  margin-block-start: 0;
  margin-block-end: 40px;
}

.notice--large p {
  margin-block-start: 10px;
}

/* ---------- Photographs ---------- */

.photo {
  position: relative;
}

.photo__frame {
  position: relative;
  overflow: hidden;
  background: var(--stone);
}

.photo__frame img {
  object-fit: cover;
  object-position: var(--pos-m, 50% 50%);
}

@media (min-width: 960px) {
  .photo__frame img {
    object-position: var(--pos-d, 50% 50%);
  }
}

.photo__caption {
  margin-block-start: 10px;
  padding-inline: var(--gutter) 0;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--ink-muted);
}

.band--cypress .photo__caption {
  color: var(--on-dark-soft);
}

/* Image breaking the inline-start edge of the page, text inside the grid. */
.bleed-start {
  display: grid;
  gap: 32px;
}

@media (min-width: 960px) {
  .bleed-start {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(48px, 5vw, 88px);
    align-items: center;
    padding-inline-end: max(var(--gutter), calc((100vw - var(--max)) / 2));
  }
  .bleed-start .photo__caption {
    padding-inline-start: max(var(--gutter), calc((100vw - var(--max)) / 2));
  }
}

/* ---------- Route line (the motif) ---------- */

.route {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 0.95rem + 0.6vw, 1.5rem);
  line-height: 1.2;
}

.route__line {
  position: relative;
  display: block;
  height: 12px;
}

.route__stroke {
  position: absolute;
  inset-inline: 6px;
  top: 50%;
  height: 2px;
  background: var(--terracotta);
  transform: translateY(-50%);
  transform-origin: left center;
}

[dir="rtl"] .route__stroke {
  transform-origin: right center;
}

.route__dot {
  position: absolute;
  top: 50%;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--terracotta);
  transform: translateY(-50%);
}

.route__dot--start {
  inset-inline-start: 0;
}

.route__dot--end {
  inset-inline-end: 0;
}

.route--light .route__stroke,
.route--light .route__dot {
  background: var(--terracotta-light);
}

@media (prefers-reduced-motion: no-preference) {
  .route__stroke {
    animation: route-draw 1100ms var(--ease) 250ms both;
  }
  .route__dot--end {
    animation: route-arrive 300ms var(--ease) 1250ms both;
  }
}

@keyframes route-draw {
  from {
    transform: translateY(-50%) scaleX(0);
  }
  to {
    transform: translateY(-50%) scaleX(1);
  }
}

@keyframes route-arrive {
  from {
    opacity: 0;
    transform: translateY(-50%) scale(0.4);
  }
  to {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }
}

/* ---------- Home ---------- */

.home-hero {
  display: grid;
}

.home-hero__photo .photo__frame {
  aspect-ratio: 2 / 1;
}

.home-hero__photo .photo__caption {
  position: absolute;
  inset-block-end: 8px;
  inset-inline-end: 10px;
  margin: 0;
  padding: 2px 8px;
  background: rgb(28 31 27 / 0.72);
  color: #f4f0e8;
  font-size: 0.75rem;
}

.home-hero__text {
  padding: 28px var(--gutter) 40px;
}

.home-hero__text .lead {
  margin-block-start: 18px;
}

.home-hero__text .actions {
  margin-block-start: 26px;
}

@media (min-width: 600px) {
  .home-hero__photo .photo__frame {
    aspect-ratio: 16 / 7;
  }
}

/* The split hero needs a text column of ~520px to hold the headline in four
   lines in the longest language (French). That happens at 1100px, not at the
   960px navigation breakpoint. */
@media (min-width: 1100px) {
  .home-hero {
    grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
    min-height: min(calc(100svh - var(--header-h) - 76px), 760px);
  }
  .home-hero__text {
    grid-row: 1;
    grid-column: 1;
    align-self: center;
    padding-block: 64px;
    padding-inline-start: max(var(--gutter), calc((100vw - var(--max)) / 2));
    padding-inline-end: clamp(32px, 4vw, 64px);
  }
  .home-hero__photo {
    grid-row: 1;
    grid-column: 2;
  }
  .home-hero__photo .photo__frame {
    aspect-ratio: auto;
    height: 100%;
    min-height: 560px;
  }
}

.event-strip {
  background: var(--paper-raised);
  border-block: 1px solid var(--rule);
}

.event-strip__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px 24px;
  align-items: center;
  padding-block: 14px;
}

.event-strip__label {
  font-size: 0.8125rem;
  color: var(--terracotta-text);
  font-weight: 600;
}

.event-strip__name {
  font-family: var(--font-display);
  font-size: 1.375rem;
  line-height: 1.2;
}

.event-strip__when {
  color: var(--ink-soft);
  font-variant-numeric: lining-nums;
}

@media (min-width: 760px) {
  .event-strip__inner {
    grid-template-columns: auto auto 1fr auto;
    padding-block: 10px;
  }
}

.home-event__head {
  display: grid;
  gap: 18px;
  max-width: 52rem;
}

.home-event__subtitle,
.event-title__subtitle {
  display: block;
  margin-block-start: 6px;
  font-family: var(--font-sans);
  font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.125rem);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.home-event__subtitle {
  color: var(--on-dark-soft);
}

.home-event__route {
  margin-block: clamp(40px, 6vw, 72px) 28px;
}

.home-event__days {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 24px;
}

.home-event__days li {
  display: grid;
  gap: 4px;
  padding-block-start: 14px;
  border-block-start: 1px solid rgb(244 240 232 / 0.25);
}

.home-event__day {
  font-size: 1.75rem;
  font-weight: 300;
  line-height: 1;
  font-variant-numeric: lining-nums;
}

.home-event__day span {
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--on-dark-soft);
}

.home-event__day-title {
  color: var(--on-dark-soft);
  font-size: 0.9375rem;
  line-height: 1.4;
}

@media (min-width: 760px) {
  .home-event__days {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.home-event .actions {
  margin-block-start: 44px;
  align-items: flex-start;
}

.home-project .photo__frame {
  aspect-ratio: 3 / 2;
}

.home-project__text,
.project__text {
  padding-inline: var(--gutter);
}

.home-project__text .display-m,
.project__text .display-m {
  margin-block: 8px 12px;
}

.home-project__text p + p,
.home-project__text .text-link {
  margin-block-start: 14px;
}

@media (min-width: 960px) {
  .home-project__text,
  .project__text {
    padding-inline: 0;
  }
  .home-project .photo__frame {
    aspect-ratio: 16 / 11;
  }
}

.home-people__grid {
  display: grid;
  gap: 48px;
  margin-block-start: 40px;
}

@media (min-width: 960px) {
  .home-people__grid {
    grid-template-columns: 1fr 1fr;
    gap: clamp(48px, 6vw, 96px);
  }
}

.people-list {
  margin-block-end: 16px;
}

.people-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  padding-block: 16px;
  border-block-end: 1px solid var(--rule-strong);
}

.people-list__name {
  font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.875rem);
  line-height: 1.15;
}

.people-list__role {
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.home-close__inner {
  display: grid;
  justify-items: start;
  gap: 20px;
}

.home-close__inner > * {
  max-width: 52rem;
}

.home-close__inner .button {
  margin-block-start: 12px;
}

/* ---------- Page head ---------- */

.page-head {
  padding-block: clamp(48px, 7vw, 104px) clamp(24px, 3vw, 40px);
}

.page-head__inner .lead {
  margin-block-start: 20px;
}

.page-head__inner {
  max-width: calc(56rem + 2 * var(--gutter));
  margin-inline: 0;
  margin-inline-start: max(0px, calc((100vw - var(--max)) / 2 - var(--gutter)));
}

/* ---------- Event page ---------- */

.event-hero {
  padding-block: clamp(40px, 6vw, 88px) clamp(32px, 4vw, 56px);
}

.event-hero__grid {
  display: grid;
  gap: 36px;
}

@media (min-width: 960px) {
  .event-hero__grid {
    grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
    gap: clamp(48px, 6vw, 96px);
    align-items: end;
  }
}

.event-title {
  font-size: clamp(2.75rem, 1.6rem + 5.4vw, 6.25rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.event-title .event-name {
  white-space: normal;
}

.event-title__subtitle {
  margin-block-start: 14px;
  color: var(--ink-soft);
}

.event-hero__dates {
  margin-block: 24px 18px;
  font-size: clamp(1.375rem, 1.15rem + 1vw, 2rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--cypress);
}

.facts > div {
  display: grid;
  gap: 2px;
  padding-block: 12px;
  border-block-start: 1px solid var(--rule);
}

.facts > div:last-child {
  border-block-end: 1px solid var(--rule);
}

.facts dt {
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

.facts dd {
  font-weight: 600;
}

.facts--inline {
  margin-block-start: 28px;
  max-width: 22rem;
}

.facts--list {
  margin-block-end: 24px;
}

.event-hero__aside .actions {
  margin-block-start: 24px;
}

.diptych__images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.diptych__photo .photo__frame {
  aspect-ratio: 4 / 5;
}

.diptych__photo .photo__caption {
  padding-inline: 10px;
}

@media (min-width: 760px) {
  .diptych__photo .photo__frame {
    aspect-ratio: 16 / 9;
  }
}

.diptych__route {
  margin-block-start: 28px;
}

.diptych__caption {
  margin-block-start: 10px;
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--ink-soft);
  text-align: center;
}

.section-nav {
  margin-block-start: clamp(32px, 4vw, 56px);
  border-block: 1px solid var(--rule);
}

.section-nav ul {
  display: flex;
  gap: 4px 24px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.section-nav ul::-webkit-scrollbar {
  display: none;
}

.section-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  white-space: nowrap;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
}

.section-nav a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--terracotta);
  text-underline-offset: 0.35em;
}

@media (min-width: 960px) {
  .section-nav ul {
    flex-wrap: wrap;
    overflow: visible;
  }
}

.event-audience__grid {
  display: grid;
  gap: 40px;
}

.event-audience__text .body-l {
  margin-block: 20px 32px;
}

.event-audience__photo .photo__frame {
  aspect-ratio: 4 / 5;
}

.event-audience__photo .photo__caption {
  padding-inline: 0;
}

@media (min-width: 960px) {
  .event-audience__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    gap: clamp(48px, 7vw, 120px);
    align-items: start;
  }
  .event-audience__photo {
    margin-inline-end: calc(-1 * max(var(--gutter), calc((100vw - var(--max)) / 2)));
  }
  .event-audience__photo .photo__frame {
    aspect-ratio: 3 / 4;
  }
}

.dimensions__title {
  margin-block-start: clamp(48px, 6vw, 80px);
}

.dimensions {
  display: grid;
  gap: 0;
}

.dimensions li {
  display: grid;
  gap: 4px;
  padding-block: 16px;
  border-block-start: 1px solid var(--rule);
}

.dimensions__name {
  font-family: var(--font-display);
  font-size: 1.375rem;
  line-height: 1.2;
}

.dimensions__body {
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

@media (min-width: 760px) {
  .dimensions {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 24px;
  }
  .dimensions li {
    border-block-start: 2px solid var(--ink);
  }
}

/* Programme: two days, each a vertical line of timed stations (the route motif applied to time). */
.programme-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 16px 32px;
}

.days {
  display: grid;
  gap: 56px;
  margin-block-start: clamp(32px, 4vw, 56px);
}

@media (min-width: 1024px) {
  .days {
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 5vw, 80px);
    align-items: start;
  }
}

.day__head {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  gap: 4px 18px;
  padding-block-end: 16px;
  border-block-end: 2px solid var(--ink);
}

.day__date {
  display: grid;
  line-height: 1.05;
}

.day__weekday,
.day__month {
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

.day__number {
  font-size: 3.25rem;
  font-weight: 300;
  line-height: 1;
  font-variant-numeric: lining-nums;
}

.day__title {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 18;
  font-size: clamp(1.35rem, 1.2rem + 0.6vw, 1.75rem);
  font-weight: 500;
  line-height: 1.2;
  text-wrap: balance;
}

:lang(ar) .day__title {
  font-weight: 700;
  line-height: 1.4;
}

.day__venue {
  grid-column: 1 / -1;
  margin-block-start: 6px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--cypress);
}

.day__group {
  margin-block-start: 28px;
}

/* Untitled groups (the morning sessions, the gala) follow straight on. */
.day__group--untitled .slots {
  margin-block-start: 0;
}

.day__group--untitled + .day__group--untitled,
.day__group + .day__group--untitled {
  margin-block-start: 8px;
}

.day__group-title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--cypress);
}

.day__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 14px;
  margin-block-start: 4px;
  font-size: 0.9375rem;
  font-weight: 600;
}

.day__session {
  font-variant-numeric: tabular-nums;
  color: var(--terracotta-text);
  unicode-bidi: isolate;
}

.day__place {
  color: var(--cypress);
}

.day__note,
.slot__note {
  margin-block-start: 6px;
  font-size: 0.875rem;
  font-style: italic;
  color: var(--ink-muted);
}

:lang(ar) .day__note,
:lang(ar) .slot__note {
  font-style: normal;
}

.day__lead {
  margin-block-start: 10px;
  font-size: 0.9875rem;
  color: var(--ink-soft);
  max-width: 40em;
}

.slots {
  position: relative;
  margin-block-start: 16px;
}

.slot {
  position: relative;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 0 14px;
  padding-block-end: 18px;
  padding-inline-start: 22px;
}

.slot::before {
  content: "";
  position: absolute;
  inset-inline-start: 4px;
  top: 10px;
  bottom: 0;
  width: 2px;
  background: var(--terracotta);
}

.slot:last-child::before {
  display: none;
}

.slot::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--terracotta);
}

.slot__time {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
}

/* A range stacks its end under its start, so the time column keeps its width. */
.slot__clock {
  display: inline-grid;
  unicode-bidi: isolate;
}

.slot__end {
  font-weight: 500;
  color: var(--ink-muted);
}

.slot__parties {
  margin-block-start: 2px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--cypress);
}

.slot__text + .slot__text {
  margin-block-start: 6px;
}

.programme-disclaimer {
  margin-block-start: clamp(32px, 4vw, 48px);
  max-width: 48em;
  font-size: 0.9375rem;
  font-style: italic;
  color: var(--ink-soft);
}

:lang(ar) .programme-disclaimer {
  font-style: normal;
}

.slot__title {
  font-weight: 600;
  line-height: 1.4;
}

.slot__text,
.slot__goal {
  margin-block-start: 2px;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.slot__label {
  margin-block-start: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.slot__list,
.speakers {
  margin-block-start: 6px;
}

.slot__list li,
.speakers li {
  position: relative;
  padding-block: 3px;
  padding-inline-start: 14px;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

.slot__list li::before,
.speakers li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.85em;
  width: 6px;
  height: 1.5px;
  background: var(--rule-strong);
}

.speakers strong {
  color: var(--ink);
  font-weight: 600;
}

.speakers__pending {
  font-style: italic;
  color: var(--terracotta-text);
}

:lang(ar) .speakers__pending {
  font-style: normal;
}

.slot__goal {
  margin-block-start: 10px;
  font-style: italic;
}

:lang(ar) .slot__goal {
  font-style: normal;
}

/* Instagram profiles: name, then the handle (always left-to-right). */
.social-links {
  display: grid;
  gap: 2px;
}

.social-links a {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 8px;
  min-height: 40px;
  padding-block: 8px;
}

.social-links__handle {
  font-size: 0.875em;
  color: var(--ink-muted);
}

.social-links--project {
  margin-block-start: 4px;
}

.social-links--project a {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--terracotta);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
}

.project__social-title {
  margin-block-start: 28px;
}

/* Programme PDF link */
.download {
  display: grid;
  gap: 2px;
  margin-block-start: 20px;
}

.programme-head .download {
  margin-block-start: 0;
}

.download__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--terracotta);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
}

.download__icon {
  width: 14px;
  height: 16px;
  flex: none;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 16'%3E%3Cpath d='M7 1v10M3 7l4 4 4-4M1 15h12' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
}

.download__note {
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

/* Themes: one compact two-column list instead of a run-on sentence */
.themes {
  display: grid;
  gap: 0 28px;
}

.themes li {
  padding-block: 7px;
  border-block-start: 1px solid var(--rule);
  font-size: 0.9875rem;
  color: var(--ink-soft);
}

@media (min-width: 600px) {
  .themes {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 760px) {
  .dimensions--four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Participation */
.anchor-alias {
  display: block;
  position: relative;
  top: calc(-1 * var(--header-h));
}

.participation__lead {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 18;
  font-size: clamp(1.4rem, 1.2rem + 0.9vw, 1.95rem);
  line-height: 1.3;
  max-width: 30em;
}

:lang(ar) .participation__lead {
  font-weight: 700;
  line-height: 1.6;
}

.participation__facts {
  margin-block-start: 28px;
  max-width: 40em;
  color: var(--ink-soft);
}

.participation__facts strong {
  color: var(--ink);
}

.participation__partners {
  margin-block-start: 24px;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

/* Hospitality referral */
.button--outline {
  border-color: var(--cypress);
  color: var(--cypress);
}

.button--outline:hover {
  background: var(--cypress);
  color: var(--on-dark);
}

.referral__body {
  margin-block-start: 20px;
  max-width: 38em;
  color: var(--ink-soft);
}

.referral__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-block-start: 20px;
}

.referral__email {
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.referral__email a {
  font-weight: 600;
  color: var(--ink);
}

.referral__note {
  margin-block-start: 12px;
  font-size: 0.875rem;
  color: var(--ink-muted);
}

.referral--compact .referral__actions {
  margin-block-start: 10px;
}

.practical__subtitle {
  margin-block-start: 36px;
}

.practical__subtitle + .practical-list {
  margin-block-start: 8px;
}

.organisers {
  margin-block-start: clamp(48px, 6vw, 80px);
}

.organisers__note {
  margin-block-start: 6px;
}

.organisers__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
  margin-block-start: 16px;
}

.organisers__list li {
  padding-block: 8px;
  border-block-start: 1px solid var(--rule);
  font-size: 0.9375rem;
}

@media (min-width: 760px) {
  .organisers__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .organisers__list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

/* B2B */
.steps {
  counter-reset: step;
  margin-block-end: 36px;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: baseline;
  padding-block: 14px;
  border-block-start: 1px solid rgb(244 240 232 / 0.22);
  font-size: 1.0625rem;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  color: var(--terracotta-light);
}


.b2b-outcome {
  margin-block-start: 16px;
  color: var(--on-dark-soft);
  max-width: 36em;
}

.b2b-tables__title {
  margin-block-end: 6px;
}

.steps--tables li {
  padding-block: 10px;
  font-size: 1rem;
  break-inside: avoid;
}

@media (min-width: 1100px) {
  .steps--tables {
    columns: 2;
    column-gap: 32px;
  }
}

/* Practical */
.event-practical__photo .photo__frame {
  aspect-ratio: 4 / 3;
}

.event-practical__text {
  padding-inline: var(--gutter);
}

@media (min-width: 960px) {
  .event-practical__text {
    padding-inline: 0;
  }
  .event-practical .bleed-start {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: start;
  }
  .event-practical__photo .photo__frame {
    aspect-ratio: 1 / 1;
  }
}

.practical-list {
  margin-block-start: 28px;
}

.practical-list > div {
  padding-block: 16px;
  border-block-start: 1px solid var(--rule);
}

.practical-list dt {
  font-weight: 600;
}

.practical-list dd {
  margin-block-start: 4px;
  color: var(--ink-soft);
}


/* Partnership */
.partners {
  display: grid;
  gap: 20px;
  margin-block-end: 28px;
}

@media (min-width: 760px) {
  .partners {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

.partner {
  padding: clamp(22px, 3vw, 32px);
  background: var(--paper);
  border-block-start: 3px solid var(--terracotta);
}

/* Sponsorship prices: amount and "+ VAT" travel together. */
.price__line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
}

.price__line--compact {
  margin-block: 10px 16px;
}

.price__amount {
  font-size: 1.875rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: lining-nums tabular-nums;
  unicode-bidi: isolate;
}

.price__vat {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.tick-list li {
  position: relative;
  padding-block: 4px;
  padding-inline-start: 22px;
  font-size: 0.9875rem;
  line-height: 1.45;
}

.tick-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.78em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1.5px solid var(--terracotta);
}

/* FAQ */
.faq__item {
  border-block-start: 1px solid var(--rule);
}

.faq__item:last-child {
  border-block-end: 1px solid var(--rule);
}

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 60px;
  padding-block: 14px;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  line-height: 1.4;
}

.faq__icon {
  position: relative;
  flex: none;
  width: 14px;
  height: 14px;
}

.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  height: 1.5px;
  background: currentColor;
  transition: transform 180ms var(--ease);
}

.faq__icon::after {
  transform: rotate(90deg);
}

.faq__item[open] .faq__icon::after {
  transform: rotate(0deg);
}

.faq__a {
  padding-block-end: 20px;
  max-width: 44em;
  color: var(--ink-soft);
}

/* Final CTA */
.final-cta__inner {
  display: grid;
  gap: 28px;
}

.final-cta__inner .body-l {
  margin-block-start: 10px;
}

.final-cta__deadline {
  margin-block-start: 14px;
  font-size: 0.9375rem;
  color: var(--on-dark-soft);
}

@media (min-width: 960px) {
  .final-cta__inner {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
}

/* ---------- Register page ---------- */

.register {
  padding-block: clamp(48px, 7vw, 104px) var(--section);
}

.register__grid {
  display: grid;
  gap: 48px;
}

@media (min-width: 960px) {
  .register__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    gap: clamp(48px, 7vw, 112px);
    align-items: start;
  }
}

.register__main .lead {
  margin-block-start: 20px;
}

.register__links {
  margin-block-start: 40px;
  max-width: 30rem;
}

.register__contact {
  margin-block-start: 24px;
}

.register__aside {
  padding: clamp(22px, 3vw, 32px);
  background: var(--stone);
}

.register__participation {
  margin-block-start: 12px;
  font-family: var(--font-display);
  font-variation-settings: "opsz" 18;
  font-size: 1.25rem;
  line-height: 1.35;
}

:lang(ar) .register__participation {
  font-weight: 700;
  line-height: 1.6;
}

.register__aside .small-note {
  margin-block-start: 10px;
}

.register__hospitality {
  margin-block-start: 28px;
  padding-block-start: 20px;
  border-block-start: 1px solid var(--rule-strong);
}

/* ---------- Leadership ---------- */

.leaders {
  display: grid;
  gap: 56px;
  margin-block-start: 40px;
}

@media (min-width: 960px) {
  .leaders {
    grid-template-columns: 1fr 1fr;
    gap: clamp(48px, 6vw, 96px);
  }
}

.leader__head {
  padding-block-end: 16px;
  margin-block-end: 20px;
  border-block-end: 2px solid var(--ink);
}

.leader__name {
  font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);
  line-height: 1.1;
}

.leader__role {
  margin-block-start: 6px;
  font-weight: 600;
  color: var(--terracotta-text);
}

/* ---------- Projects ---------- */

.project .photo__frame {
  aspect-ratio: 3 / 2;
}

.project__text .prose {
  margin-block-start: 8px;
}

.project__components {
  margin-block-start: clamp(48px, 6vw, 80px);
  max-width: calc(52rem + 2 * var(--gutter));
  margin-inline-start: max(0px, calc((100vw - var(--max)) / 2 - var(--gutter)));
  margin-inline-end: auto;
}

.project__components .title-m {
  margin-block-end: 16px;
}

.project-event__dates {
  margin-block-start: 16px;
  font-size: 1.25rem;
  font-weight: 600;
}

.project-event .route {
  margin-block: 32px;
}

/* ---------- Collaborate ---------- */

.routes {
  display: grid;
  gap: 0 clamp(32px, 5vw, 80px);
}

@media (min-width: 760px) {
  .routes {
    grid-template-columns: 1fr 1fr;
  }
}

.routes__item {
  display: grid;
  align-content: start;
  gap: 10px;
  padding-block: 28px;
  border-block-start: 2px solid var(--ink);
}

.routes__item p {
  color: var(--ink-soft);
}

.contact-event {
  display: grid;
  gap: 10px;
  justify-items: start;
}

.contact-event p {
  color: var(--ink-soft);
}

/* ---------- Credits ---------- */

.credits li {
  padding-block: 20px;
  border-block-start: 1px solid var(--rule);
}

.credits__caption {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.25;
}

.credits__meta {
  display: grid;
  gap: 4px 24px;
  margin-block-start: 10px;
  font-size: 0.9375rem;
}

.credits__meta > div {
  display: flex;
  flex-wrap: wrap;
  gap: 0 8px;
}

.credits__meta dt {
  color: var(--ink-muted);
}

.credits__meta a {
  overflow-wrap: anywhere;
}

@media (min-width: 760px) {
  .credits__meta {
    grid-template-columns: auto auto 1fr;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  padding-block: 56px 28px;
  background: var(--stone);
  border-block-start: 1px solid var(--rule);
  font-size: 0.9375rem;
}

.site-footer__grid {
  display: grid;
  gap: 36px;
}

@media (min-width: 760px) {
  .site-footer__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .site-footer__identity {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1100px) {
  .site-footer__grid {
    grid-template-columns: 2fr 1fr 1.5fr 1fr;
  }
  .site-footer__identity {
    grid-column: auto;
  }
}

.site-footer__email {
  overflow-wrap: anywhere;
}

.site-footer__contact .site-footer__title + nav,
.site-footer__contact p + .site-footer__title {
  margin-block-start: 10px;
}

.site-footer__name {
  font-family: var(--font-display);
  font-size: 1.375rem;
  line-height: 1.25;
  max-width: 18em;
}

.site-footer__tagline {
  margin-block-start: 8px;
  color: var(--ink-soft);
}

.site-footer__nav ul,
.site-footer__langs ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
}

@media (min-width: 760px) {
  .site-footer__nav ul,
  .site-footer__langs ul {
    grid-template-columns: 1fr;
  }
}

.site-footer__title {
  margin-block-end: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  text-decoration: none;
  color: var(--ink-soft);
}

.site-footer a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.site-footer .lang-link {
  padding-inline: 0;
}

.site-footer .lang-link:hover {
  background: none;
}

.site-footer .lang-link[aria-current="true"] {
  box-shadow: none;
  color: var(--ink);
}

.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-block-start: 40px;
  padding-block-start: 20px;
  border-block-start: 1px solid var(--rule-strong);
  color: var(--ink-muted);
  font-size: 0.875rem;
}

/* ---------- 404 ---------- */

.not-found {
  padding-block: 72px;
}

.not-found__code {
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 1;
  color: var(--terracotta-text);
}

.not-found__list li {
  padding-block: 24px;
  border-block-end: 1px solid var(--rule);
  max-width: 40rem;
}

.not-found__list li p {
  margin-block-start: 6px;
  color: var(--ink-soft);
}

.not-found__list li:lang(ar) {
  font-family: system-ui, "Geeza Pro", sans-serif;
}

.not-found .actions {
  margin-block-start: 8px;
}

/* ---------- Motion safety net ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Contact ---------- */

.contact {
  padding-block: clamp(48px, 7vw, 104px) var(--section);
}

.contact__grid {
  display: grid;
  gap: 56px;
}

@media (min-width: 960px) {
  .contact__grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: clamp(48px, 8vw, 128px);
    align-items: start;
  }
}

.contact__name {
  margin-block: 20px 28px;
  font-family: var(--font-display);
  font-variation-settings: "opsz" 18;
  font-size: clamp(1.4rem, 1.2rem + 0.9vw, 1.9rem);
  line-height: 1.2;
  color: var(--ink-soft);
}

.contact .notice {
  margin-block-start: 8px;
}

.contact .notice p {
  margin-block-start: 6px;
}

.contact__routes {
  padding-block-start: 8px;
}

.link-list--large a {
  min-height: 60px;
  font-family: var(--font-display);
  font-variation-settings: "opsz" 18;
  font-size: clamp(1.2rem, 1.1rem + 0.4vw, 1.45rem);
  font-weight: 500;
}

:lang(ar) .link-list--large a {
  font-weight: 700;
}

/* Short phones (iPhone SE class, 640–700px tall): a shallower photo band and
   tighter spacing keep the role and the first action above the fold without
   changing the composition on regular phones. */
@media (max-width: 599px) and (max-height: 700px) {
  .home-hero__photo .photo__frame {
    aspect-ratio: 3 / 1;
  }
  .home-hero__text {
    padding-block-start: 18px;
  }
  .home-hero__text .eyebrow {
    margin-block-end: 10px;
  }
  .home-hero__text .display-xl {
    font-size: 1.9rem;
  }
  .home-hero__text .lead {
    margin-block-start: 12px;
    font-size: 1.0625rem;
  }
  .home-hero__text .actions {
    margin-block-start: 18px;
  }
}

/* ==========================================================================
   WordPress adaptations
   ========================================================================== */

/* Photographs: the <img> fills its frame (the frame's aspect ratio comes from the layout class). */
.photo__frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Programme / list wrappers rendered by blocks keep the original rhythm. */
.wp-block-group:empty {
  display: none;
}

/* FAQ uses the native Details block: question in <summary>, answer paragraph after it. */
.faq__item summary {
  position: relative;
  padding-inline-end: 34px;
}

.faq__item summary::after,
.faq__item summary::before {
  content: "";
  position: absolute;
  inset-inline-end: 0;
  top: 50%;
  width: 14px;
  height: 1.5px;
  background: currentColor;
  transition: transform 180ms var(--ease);
}

.faq__item summary::after {
  transform: rotate(90deg);
}

.faq__item[open] summary::after {
  transform: rotate(0deg);
}

/* Inline link inside the participation note behaves like a text link. */
.participation__partners a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
  text-decoration-color: var(--rule-strong);
}

.participation__partners a:hover {
  text-decoration-color: currentColor;
}

/* Registration panel wrapper on /register. */
.registration-panel > .facts--inline {
  margin-block-start: 28px;
}

.idf-autoclose {
  display: contents;
}

/* Logged-in editors: keep the sticky header and the mobile menu below the admin toolbar. */
.admin-bar .site-header {
  top: var(--wp-admin--admin-bar--height, 32px);
}

.admin-bar .mobile-menu__panel {
  top: calc(var(--header-h) + var(--wp-admin--admin-bar--height, 32px));
}

/* Block editor canvas: show the page on its paper ground. */
.editor-styles-wrapper {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
}

/* ---------- Contacts and social links ---------- */

.site-footer__contact-title {
  margin-block-start: 20px;
}

.site-footer__contact a {
  min-height: 36px;
  overflow-wrap: anywhere;
}

.social__handle {
  color: var(--ink-muted);
  font-size: 0.875em;
}

.contact-details dd a {
  font-weight: 600;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  overflow-wrap: anywhere;
}

.social-link {
  margin-block-start: 14px;
}

/* ---------- Registration and voluntary donation ---------- */

.donation {
  margin-block-start: 40px;
  padding: clamp(22px, 3vw, 32px);
  background: var(--paper-raised);
  border-block-start: 3px solid var(--cypress);
  max-width: 44em;
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.donation__intro {
  margin-block-start: 12px;
  color: var(--ink-soft);
}

.procedure {
  counter-reset: proc;
  margin-block-start: 20px;
}

.procedure li {
  counter-increment: proc;
  position: relative;
  padding-block: 10px;
  padding-inline-start: 44px;
  border-block-start: 1px solid var(--rule);
}

.procedure li::before {
  content: counter(proc);
  position: absolute;
  inset-inline-start: 0;
  top: 9px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--cypress);
  color: var(--on-dark);
  font-size: 0.875rem;
  font-weight: 600;
  font-variant-numeric: lining-nums;
}

.donation__facts {
  margin-block-start: 16px;
}

.donation__facts li {
  position: relative;
  padding-block: 3px;
  padding-inline-start: 22px;
  font-weight: 500;
}

.donation__facts li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.72em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1.5px solid var(--terracotta);
}

.donation__pending {
  margin-block-start: 18px;
  padding-inline-start: 16px;
  border-inline-start: 3px solid var(--terracotta);
  color: var(--ink-soft);
}

.donation__help {
  margin-block-start: 18px;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.donation__help a {
  font-weight: 600;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.donation__sponsors {
  margin-block-start: 14px;
}

.bank {
  margin-block-start: 22px;
  padding-block-start: 18px;
  border-block-start: 1px solid var(--rule-strong);
}

.bank__title {
  font-size: 1rem;
  font-weight: 600;
}

.bank__list > div {
  display: grid;
  gap: 2px;
  padding-block: 10px;
  border-block-end: 1px solid var(--rule);
}

.bank__list dt {
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

.bank__list dd {
  font-weight: 600;
  overflow-wrap: anywhere;
}

.copyable {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
}

.copyable__value,
.bank__list code {
  font-family: var(--font-plex), "IBM Plex Sans", system-ui, sans-serif;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums lining-nums;
  unicode-bidi: isolate;
  direction: ltr;
  overflow-wrap: anywhere;
}

.copyable__button {
  min-height: 36px;
  padding: 4px 12px;
  border: 1.5px solid var(--cypress);
  border-radius: 2px;
  background: transparent;
  color: var(--cypress);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
}

.copyable__button:hover {
  background: var(--cypress);
  color: var(--on-dark);
}

.donation-note {
  margin-block-start: 28px;
  padding-inline-start: 16px;
  border-inline-start: 3px solid var(--cypress);
  color: var(--ink-soft);
  max-width: 34em;
}

.donation-note .text-link {
  min-height: 40px;
}

/* ---------- Programme fields kept editable in WordPress ----------
   The current programme uses none of these, but the blocks still offer them. */

/* A word instead of a clock time ("Pomeriggio") sits above the title. */
.slot--untimed {
  grid-template-columns: minmax(0, 1fr);
}

.slot--untimed .slot__time {
  color: var(--terracotta-text);
}

.slot__venue {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--cypress);
}

.day__credits {
  display: grid;
  gap: 2px;
  margin-block-start: 6px;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

/* Footer and contact Instagram links: one per line. */
.social-links .social__handle {
  margin-inline-start: 6px;
}
