/* Bundled stylesheet. See assets/src/css/manifest.json. */

/* Shared Arabic/French visual contract. Legacy bundles remain for existing
 * content templates; this final layer owns spacing, surfaces and type scale.
 * Logical properties keep both reading directions on the same geometry. */
body.tm-ui-reset.tm-design-system {
  --tm-brand-ink: #17191d;
  --tm-brand-clay: #a45336;
  --tm-brand-muted: #60636a;
  --tm-brand-paper: #f6f4ef;
  --tm-brand-line: #dedbd5;
  --tm-brand-focus: #a45336;
  --tm-bg: var(--tm-brand-paper);
  --tm-surface: #fff;
  --tm-text: var(--tm-brand-ink);
  --tm-ink: var(--tm-brand-ink);
  --tm-muted: var(--tm-brand-muted);
  --tm-line: var(--tm-brand-line);
  --tm-clay: var(--tm-brand-clay);
  --tm-red: var(--tm-brand-clay);
  --tm-red-deep: #783b28;
  --tm-burgundy: #783b28;
  --tm-gold: #e6c28f;
  --festival-red: var(--tm-brand-clay);
  --festival-burgundy: #783b28;
  --festival-burgundy-2: #783b28;
  --festival-night: var(--tm-brand-ink);
  --festival-ink: var(--tm-brand-ink);
  --festival-paper: var(--tm-brand-paper);
  --festival-cream: var(--tm-brand-paper);
  --festival-gold: #e6c28f;
  --festival-hero-gradient: linear-gradient(120deg, #17191d, #302521);
  --festival-card-gradient: linear-gradient(120deg, #17191d, #302521);
  --tm-container: 1320px;
  --tm-gutter: clamp(20px, 3.5vw, 48px);
  --tm-content-width: min(var(--tm-container), calc(100% - var(--tm-gutter) * 2));
  --tm-radius: 12px;
  --tm-radius-small: 6px;
  --tm-shadow: 0 8px 26px rgb(23 25 29 / 6%);
  --tm-shadow-soft: 0 12px 36px rgb(23 25 29 / 8%);
  --tm-section-heading-size: clamp(1.65rem, 2.6vw, 2.6rem);
  --tm-rhythm-section: clamp(32px, 4vw, 56px);
  --tm-rhythm-heading: clamp(20px, 2.3vw, 30px);
  --tm-rhythm-group: clamp(32px, 3.5vw, 48px);
  --tm-body-size: 1rem;
  --tm-card-title-size: clamp(1.125rem, 1.5vw, 1.375rem);
  margin: 0;
  font-size: var(--tm-body-size);
  line-height: 1.8;
  color: var(--tm-brand-ink);
  background: var(--tm-brand-paper) !important;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body.tm-design-system .tm-site { width: 100%; max-width: none; margin: 0; border: 0; border-radius: 0; box-shadow: none; }
body.tm-design-system .tm-main { overflow: visible; padding-bottom: 0; min-width: 0; }
body.tm-design-system .tm-container { width: var(--tm-content-width); max-width: var(--tm-container); margin-inline: auto; padding-inline: 0 !important; }
body.tm-design-system .tm-container--narrow { max-width: 820px; }
body.tm-design-system :is(h1,h2,h3,h4,h5,h6) { letter-spacing: normal; font-weight: 700; text-wrap: balance; }
body.tm-design-system :is(button,input,select,textarea) { font-family: var(--tm-font-body); }
body.tm-design-system :is(a,button,input,select,textarea,summary) { touch-action: manipulation; }
body.tm-design-system .tm-main :is(p,li) { line-height: 1.8; }
body.tm-design-system :is(a[href^="tel:"],a[href^="mailto:"]) { direction: ltr; unicode-bidi: isolate; overflow-wrap: anywhere; }
body.tm-design-system :is(.tm-main,.tm-footer) :is(section,[id]) { scroll-margin-top: 96px; }
body.tm-design-system .tm-skip-link { z-index: 100100; }
body.tm-design-system .tm-main :is(p,figure):empty { margin: 0; }
body.tm-design-system :is(.tm-home-blocks,.tm-main) > section:empty { display: none; }
body.tm-design-system .tm-main :is(.tm-content-empty,.tm-empty-state,.tm-callout) { grid-column: 1 / -1; }
body.tm-design-system .tm-content-empty { margin-block: 16px; border-radius: var(--tm-radius); padding: clamp(24px,4vw,44px); box-shadow: none; }
body.tm-design-system .tm-content-empty h3 { font-size: clamp(1.3rem,2.5vw,1.8rem); line-height: 1.5; }
body.tm-design-system .tm-content-empty--english { text-align: center; }

/* Header: generous targets and a stable search field; no focus-induced jump. */
body.tm-design-system .tm-header { background: var(--tm-brand-ink); }
body.tm-design-system .tm-header__inner { width: var(--tm-content-width); max-width: 1600px; }
body.tm-design-system .tm-header__main { gap: 32px; }
body.tm-design-system .tm-header__tools { gap: 8px 24px; }
body.tm-design-system .tm-header-search { gap: 0; border-radius: 6px; }
body.tm-design-system .tm-header-search__input,
body.tm-design-system .tm-header-search__input:focus { width: 100%; border: 0; border-radius: 0; background: transparent; color: #fff; }
body.tm-design-system .tm-language-switch { min-height: 44px; border-radius: 6px; font-family: var(--tm-font-body); }
body.tm-design-system .tm-tool-link { min-height: 44px; font-size: .875rem; }
body.tm-design-system .tm-nav__list a,
body.tm-design-system .tm-nav-link { font-weight: 600; }
body.tm-design-system .tm-menu-toggle { border-radius: 6px; }
body.tm-design-system .tm-menu-toggle[aria-expanded="true"] { background: #e6c28f; color: #17191d; border-color: #e6c28f; }

/* Shared page openings; text-only pages should not reserve an image's height. */
body.tm-design-system .tm-unified-page-hero { background: #17191d; min-height: 320px; }
body.tm-design-system .tm-unified-page-hero__copy { padding: clamp(32px,4.5vw,64px) var(--tm-gutter); }
body.tm-design-system .tm-unified-page-hero__title { font-size: clamp(2rem,3.6vw,3.5rem); line-height: 1.4; letter-spacing: normal; }
body.tm-design-system .tm-unified-page-hero__eyebrow { color: #e6c28f; font-size: .875rem; margin-bottom: 12px; }
body.tm-design-system .tm-unified-page-hero__image { min-height: 320px; }
body.tm-design-system .tm-unified-page-hero__description { max-width: 58ch; color: #d8d5cf; font-size: 1rem; line-height: 1.85; }
body.tm-design-system .tm-unified-page-hero--text-only { min-height: 0; border-bottom: 3px solid var(--tm-brand-clay); }
body.tm-design-system .tm-unified-page-hero--text-only .tm-unified-page-hero__copy { width: var(--tm-content-width); max-width: var(--tm-container); margin-inline: auto; padding: clamp(32px,4vw,56px) 0; }
body.tm-design-system .tm-unified-page-hero--cinema:not(.tm-unified-page-hero--text-only) { min-height: 400px; }
body.tm-design-system .tm-unified-page-hero--cinema .tm-unified-page-hero__image { min-height: 400px; }
body.tm-design-system .tm-unified-page-hero--cinema .tm-unified-page-hero__description { display: block; overflow: visible; -webkit-line-clamp: unset; }

/* Equal section rhythm and edges, without large white gaps between blocks. */
body.tm-design-system .tm-home-blocks > :is(.tm-initiatives,.tm-festival-news,.tm-home-leadership,.tm-home-films,.tm-home-juries,.tm-home-honors,.tm-home-publications,.tm-home-gallery,.tm-home-partners) {
  width: 100% !important; margin: 0 !important; padding-block: var(--tm-rhythm-section) !important;
  border-radius: 0 !important; min-height: 0 !important;
}
body.tm-design-system .tm-home-blocks > [data-home-block] { order: var(--tm-home-order, 1) !important; }
body.tm-design-system .tm-home-blocks :is(.tm-home-films__inner,.tm-home-juries__inner,.tm-home-honors__inner,.tm-home-leadership__inner,.tm-home-partners__inner,.tm-home-publications__inner,.tm-home-gallery__inner,.tm-initiatives__inner) {
  width: var(--tm-content-width) !important; max-width: var(--tm-container) !important; margin-inline: auto !important; padding-inline: 0 !important;
}
body.tm-design-system .tm-home-blocks :is(.tm-home-films__header,.tm-home-juries__header,.tm-home-honors__header,.tm-home-editorial-head,.tm-initiatives__head) {
  align-items: center; gap: 16px; min-height: 0 !important;
}
body.tm-design-system .tm-home-blocks :is(.tm-home-more-link,.tm-home-editorial-head__link) {
  min-height: 44px !important; padding: 10px 16px; border-radius: var(--tm-radius-small); font-size: .875rem !important; line-height: 1.5 !important;
}
body.tm-design-system .tm-home-blocks :is(.tm-home-films,.tm-home-honors,.tm-home-leadership) { background: var(--tm-brand-paper) !important; }
body.tm-design-system .tm-home-blocks .tm-home-juries { background: #fff !important; }
body.tm-design-system .tm-home-blocks .tm-home-gallery { background: #ece8df; }
body.tm-design-system .tm-home-blocks .tm-home-publications { background: #17191d; }
body.tm-design-system .tm-home-blocks .tm-home-partners { background: #fff !important; }
body.tm-design-system .tm-home-publication-card__cover { transform: none; border-radius: 6px; box-shadow: var(--tm-shadow); }
body.tm-design-system .tm-home-publication-card__body time { color: #bab8b3; font-size: .8125rem; }
body.tm-design-system .tm-home-editorial-head p { font-size: 1rem; line-height: 1.8; }
body.tm-design-system .tm-home-gallery__item { border-radius: 8px; }
body.tm-design-system .tm-home-partners__logo { border: 1px solid var(--tm-line); border-radius: 8px; box-shadow: none; }
body.tm-design-system .tm-home-partners__logo img { object-fit: contain; }
body.tm-design-system .tm-home-blocks .tm-festival-countdown { width: 100% !important; margin: 0 !important; padding: 28px 0 !important; border-radius: 0 !important; }
body.tm-design-system .tm-festival-countdown__inner { min-height: 0 !important; gap: 20px; }
body.tm-design-system .tm-countdown-unit { border-radius: 6px !important; }
body.tm-design-system .tm-countdown-unit strong { font-variant-numeric: tabular-nums; }

/* News: consistent line lengths, image proportions and accessible controls. */
body.tm-design-system #tm-home-news { --tm-news-columns: min(4, var(--tm-news-item-count,4)); --tm-news-gap: 20px; }
body.tm-design-system #tm-home-news .tm-festival-news__inner { width: var(--tm-content-width) !important; max-width: var(--tm-container) !important; gap: 24px !important; }
body.tm-design-system #tm-home-news .tm-festival-news__header { padding: 0 !important; flex-wrap: wrap; }
body.tm-design-system #tm-home-news .tm-festival-news__header h2 { max-width: 100%; font-weight: 700 !important; line-height: 1.4 !important; letter-spacing: normal !important; }
body.tm-design-system #tm-home-news .tm-festival-news__view-all { min-height: 44px !important; border-radius: 6px !important; font-size: .875rem !important; }
body.tm-design-system #tm-home-news .tm-festival-news-card { border-radius: 10px !important; box-shadow: none !important; transform: none !important; }
body.tm-design-system #tm-home-news .tm-festival-news-card__body { min-height: 190px !important; padding: 18px !important; }
body.tm-design-system #tm-home-news .tm-festival-news-card h3 { font-size: var(--tm-card-title-size) !important; line-height: 1.5 !important; letter-spacing: normal !important; font-weight: 600 !important; }
body.tm-design-system #tm-home-news .tm-festival-news-card__date { font-size: .8125rem !important; }
body.tm-design-system #tm-home-news .tm-festival-news-card__read { min-height: 44px; font-size: .875rem !important; }
body.tm-design-system #tm-home-news .tm-festival-news__arrow { width: 44px; height: 44px; box-shadow: var(--tm-shadow) !important; }
body.tm-design-system #tm-home-news .tm-festival-news__arrow--prev { inset-inline-start: -18px; }
body.tm-design-system #tm-home-news .tm-festival-news__arrow--next { inset-inline-end: -18px; }
body.tm-design-system #tm-home-news .tm-festival-news__dots { flex-wrap: wrap; gap: 0; margin: 0; }
body.tm-design-system #tm-home-news .tm-festival-news__dot {
  position: relative; width: 44px !important; min-width: 44px !important; max-width: 44px !important;
  height: 44px !important; min-height: 44px !important; max-height: 44px !important; flex-basis: 44px !important;
  background: transparent; transform: none;
}
body.tm-design-system #tm-home-news .tm-festival-news__dot::before { content: ''; position: absolute; inset: 17px; border-radius: 50%; background: #c7bbb2; }
body.tm-design-system #tm-home-news .tm-festival-news__dot.is-active::before { background: var(--tm-brand-clay); }
body.tm-design-system .tm-news-archive-page { width: var(--tm-content-width); max-width: var(--tm-container); margin: 0 auto; padding: var(--tm-rhythm-section) 0; }
body.tm-design-system .tm-news-archive-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; margin: 0; }
body.tm-design-system .tm-news-archive-card { background: #fff; border: 1px solid var(--tm-line); border-radius: 10px; box-shadow: none; }
body.tm-design-system .tm-news-archive-content { padding: 22px; min-height: 0; gap: 10px; }
body.tm-design-system .tm-news-archive-content time { font-size: .8125rem; color: var(--tm-muted); }
body.tm-design-system .tm-news-archive-content h2 { margin: 0; min-height: 0; max-height: none; font-size: var(--tm-card-title-size); line-height: 1.5; }
body.tm-design-system .tm-news-archive-content h2 a { text-decoration: none; }
body.tm-design-system .tm-news-archive-content h2 a:hover { color: var(--tm-brand-clay); }
body.tm-design-system .tm-news-archive-image { aspect-ratio: 4 / 3; }
body.tm-design-system .tm-news-archive-content p { font-size: .9375rem; line-height: 1.75; color: var(--tm-muted); }

/* About and regulations: restrained editorial layout and one surface system. */
body.tm-design-system .tm-about-page { width: var(--tm-content-width); max-width: var(--tm-container); margin-inline: auto; padding: var(--tm-rhythm-section) 0; }
body.tm-design-system .tm-about-page .tm-about-section { margin: 0 0 24px; padding: clamp(24px,3vw,40px); border: 1px solid var(--tm-line); border-radius: var(--tm-radius); background: #fff !important; box-shadow: none; }
body.tm-design-system .tm-about-page .tm-about-section-head { align-items: center; margin-bottom: 24px; gap: 14px; }
body.tm-design-system .tm-about-page .tm-about-section-head > span { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 6px; background: #f1e6df; color: #894027 !important; -webkit-text-fill-color: #894027 !important; font-size: .875rem; }
body.tm-design-system .tm-about-page .tm-about-section-head h2 { font-size: clamp(1.4rem,2.4vw,2rem) !important; color: var(--tm-brand-ink) !important; -webkit-text-fill-color: currentColor !important; line-height: 1.5; }
body.tm-design-system .tm-about-page .tm-about-story p { max-width: 75ch; color: var(--tm-muted) !important; -webkit-text-fill-color: currentColor !important; font-size: 1rem; line-height: 1.9; }
body.tm-design-system .tm-about-page .tm-commission-grid { gap: 24px; }
body.tm-design-system .tm-about-page .tm-commission-card { padding: 0; border: 0; border-radius: 0; background: transparent; }
body.tm-design-system .tm-about-page .tm-commission-card__media { aspect-ratio: 4 / 5; margin-bottom: 16px; border-radius: 8px; }
body.tm-design-system .tm-about-page .tm-commission-card h3 { font-size: 1.125rem !important; line-height: 1.5; color: var(--tm-brand-ink) !important; -webkit-text-fill-color: currentColor !important; }
body.tm-design-system .tm-about-page .tm-commission-card p { font-size: .875rem; color: var(--tm-muted) !important; -webkit-text-fill-color: currentColor !important; }
body.tm-design-system .tm-about-page .tm-law-summary-box { gap: 24px; padding: 24px; border-radius: 8px; background: #17191d !important; }
body.tm-design-system .tm-about-page .tm-law-download { min-height: 44px; padding: 10px 18px; border: 1px solid #e6c28f; border-radius: 6px; background: #e6c28f !important; color: #17191d !important; -webkit-text-fill-color: currentColor !important; box-shadow: none; font-size: .875rem; }
body.tm-design-system .tm-law-highlights article { border: 1px solid var(--tm-line); background: var(--tm-brand-paper); border-radius: 8px; box-shadow: none; }
body.tm-design-system .tm-law-highlights h3 { font-size: 1.125rem; line-height: 1.5; }
body.tm-design-system .tm-law-accordion details { background: #fff; border: 1px solid var(--tm-line); border-radius: 8px; box-shadow: none; }
body.tm-design-system .tm-law-accordion summary { min-height: 48px; font-size: 1rem; }
body.tm-design-system .tm-about-page .tm-about-contact { padding: 26px; border: 1px solid var(--tm-line); border-radius: var(--tm-radius); background: #ede8de !important; }
body.tm-design-system .tm-about-page .tm-about-contact :is(h2,p) { color: var(--tm-brand-ink) !important; -webkit-text-fill-color: currentColor !important; }
body.tm-design-system .tm-about-page .tm-about-contact .header-subscribe { min-height: 44px; border-radius: 6px; background: var(--tm-brand-clay) !important; }

/* Registration: every option is visible in the page flow on a phone. */
body.tm-design-system .tm-final-register-page { width: var(--tm-content-width); max-width: var(--tm-container); margin: 0 auto; padding: var(--tm-rhythm-section) 0; background: transparent; }
body.tm-design-system .tm-final-register-grid { display: grid; grid-template-columns: repeat(var(--tm-register-columns,3),minmax(0,1fr)); gap: 24px; padding: 0; margin: 0; overflow: visible; }
body.tm-design-system .tm-final-register-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--tm-line); border-radius: var(--tm-radius); box-shadow: none; background: #fff; }
body.tm-design-system .tm-final-register-card:hover { transform: translateY(-3px); box-shadow: var(--tm-shadow); }
body.tm-design-system .tm-final-register-card__top { min-height: 0; padding: 26px; background: #17191d !important; }
body.tm-design-system .tm-final-register-card__top::before { display: none; }
body.tm-design-system .tm-final-register-card__top::after { height: 3px; background: var(--tm-brand-clay); }
body.tm-design-system .tm-final-register-card__tag { color: #e6c28f; font-size: .875rem; }
body.tm-design-system .tm-final-register-card__icon { width: 60px; height: 60px; margin-top: 16px; border-radius: 10px; }
body.tm-design-system .tm-final-register-card__icon img { width: 40px; height: 40px; filter: none; }
body.tm-design-system .tm-final-register-card__top h2 { font-size: clamp(1.5rem,2.4vw,2rem); line-height: 1.45; letter-spacing: normal; margin: 16px 0 8px; color: #fff; }
body.tm-design-system .tm-final-register-card__top small { font-size: .875rem; font-weight: 500; }
body.tm-design-system .tm-final-register-card__body { flex: 1; min-height: 0; padding: 26px; background: #fff; }
body.tm-design-system .tm-final-register-card__body h3 { font-size: 1.125rem; line-height: 1.6; }
body.tm-design-system .tm-final-register-card__body p { font-size: .9375rem; }
body.tm-design-system .tm-final-register-card__link { min-height: 46px; border: 1px solid var(--tm-brand-clay); border-radius: 6px; padding: 10px 18px; background: var(--tm-brand-clay); color: #fff; font-size: .9375rem; line-height: 1.6; text-decoration: none; }

/* Forms / media hub / library: matching edges, controls and readable labels. */
body.tm-design-system :is(.tm-contact-layout,.tm-contact-map,.tm-media-hub__inner,.tm-mediatheque-tools,.tm-media-grid) { width: var(--tm-content-width) !important; max-width: var(--tm-container); margin-inline: auto; }
body.tm-design-system .tm-contact-page { padding: var(--tm-rhythm-section) 0; background: var(--tm-brand-paper); }
body.tm-design-system :is(.tm-contact-card,.tm-contact-form,.tm-media-resource-card) { border-color: var(--tm-line); border-radius: var(--tm-radius); box-shadow: none; background: #fff; }
body.tm-design-system .tm-contact-layout { grid-template-columns: minmax(0,.75fr) minmax(0,1.4fr); gap: 24px; }
body.tm-design-system .tm-contact-form { padding: clamp(22px,3vw,36px); }
body.tm-design-system .tm-main :is(input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),select,textarea) { max-width: 100%; }
body.tm-design-system .tm-main :is(.tm-contact-form,.tm-workshop-register,.tm-media-accreditation-page) :is(input:not([type="hidden"]),select,textarea) { font-size: 16px; border-radius: 6px; }
body.tm-design-system .tm-contact-submit { min-height: 48px; border-radius: 6px; }
body.tm-design-system .tm-media-hub { padding-block: var(--tm-rhythm-section); }
body.tm-design-system .tm-media-hub__grid { gap: 24px; }
body.tm-design-system .tm-media-resource-card { min-height: 0; }
body.tm-design-system .tm-media-resource-card__content { padding: 0; }
body.tm-design-system .tm-media-resource-card__content h3 { font-size: clamp(1.35rem,2vw,1.75rem); line-height: 1.5; }
body.tm-design-system .tm-media-resource-card__content p { font-size: 1rem; }
body.tm-design-system .tm-media-resource-card__action { min-height: 48px; }
body.tm-design-system .tm-mediatheque-tools { margin-block: var(--tm-rhythm-section) 24px; padding: 24px; border: 1px solid var(--tm-line); border-radius: var(--tm-radius); box-shadow: none; background: #fff; }
body.tm-design-system .tm-filter-select select { min-height: 48px !important; font-size: 16px !important; border-radius: 6px; }
body.tm-design-system :is(.tm-media-chip,.tm-media-reset,.tm-media-filter-toggle,.tm-media-filter-submit) { min-height: 44px !important; font-size: .875rem !important; }
body.tm-design-system .tm-media-grid { padding-bottom: var(--tm-rhythm-section); gap: 20px; }
body.tm-design-system .tm-media-tile { border-radius: 8px; }
body.tm-design-system .tm-magazine-archive__container { padding-block: var(--tm-rhythm-section); }

/* Programme: the sticky filter bar must clear the mobile header. */
body.tm-design-system .tm-program-embedded { --clay: var(--tm-brand-clay); --clay-deep:#783b28; --ink:var(--tm-brand-ink); --paper:var(--tm-brand-paper); --muted:var(--tm-brand-muted); --radius:12px; --radius-sm:6px; width:var(--tm-content-width); max-width:var(--tm-container); margin:var(--tm-rhythm-section) auto; }
body.tm-design-system .tm-program-embedded .tm-program-summary { margin-top: 0; padding: 24px; background: #17191d; border-radius: 10px; box-shadow: none; }
body.tm-design-system .tm-program-embedded .controls { top: 0; padding-block: 14px; background: var(--tm-brand-paper); }
body.tm-design-system .tm-program-embedded .filters { gap: 10px; }
body.tm-design-system .tm-program-embedded :is(.ctrl,.tchip,.mine-btn,.icon-btn) { min-height: 44px; font-size: .875rem; border-radius: 6px; }
body.tm-design-system .tm-program-embedded .ctrl input { font-size: 16px; min-width: 0; }
body.tm-design-system .tm-program-embedded .ev-card { border-radius: 8px; box-shadow: none; border-color: var(--tm-line); }
body.tm-design-system .tm-program-embedded .ev-title { line-height: 1.5; }
body.tm-design-system .tm-program-embedded .daytab { min-height: 64px; border-radius: 6px; }

/* Footer: same grid in both languages; clear contact text and touch targets. */
body.tm-design-system .tm-footer.tm-footer--festival { background: #17191d !important; }
body.tm-design-system .tm-footer.tm-footer--festival .tm-footer__accent { height: 3px !important; background: var(--tm-brand-clay) !important; }
body.tm-design-system .tm-footer.tm-footer--festival .tm-footer__grid { grid-template-columns: minmax(0,1.5fr) minmax(0,1fr) minmax(0,1fr) minmax(0,1.2fr) !important; gap: 32px !important; padding-block: 48px 32px !important; }
body.tm-design-system .tm-footer.tm-footer--festival .tm-footer__logo { width: 72px !important; height: 72px !important; }
body.tm-design-system .tm-footer.tm-footer--festival .tm-footer__brand h2 { max-width: 25ch; margin: 0; font-size: 1.125rem; line-height: 1.6; }
body.tm-design-system .tm-footer.tm-footer--festival :is(.tm-footer__brand p,.tm-footer__column a,.tm-footer__contact address) { font-size: .9375rem; color: #c6c5c2 !important; line-height: 1.7; }
body.tm-design-system .tm-footer.tm-footer--festival .tm-footer__column h3 { margin-block: 0 16px; font-size: 1rem; }
body.tm-design-system .tm-footer__column a { display: inline-flex; align-items: center; min-height: 40px; }
body.tm-design-system .tm-footer__social a { min-height: 44px; border-radius: 6px; }
body.tm-design-system .tm-footer.tm-footer--festival .tm-footer__bottom { min-height: 64px !important; font-size: .8125rem; line-height: 1.8; }
body.tm-design-system .tm-footer__social:empty { display: none !important; }

/* Dialogs sit above both navigation bars and remain scrollable at 200% zoom. */
body.tm-design-system :is(.tm-home-film-modal,.tm-home-jury-modal,.tm-home-honor-modal,.tm-home-leadership-modal,.tm-home-gallery-lightbox,.tm-workshop-modal,.tm-image-gallery-lightbox,.tm-mediatheque-lightbox,.tm-venue-modal) { z-index: 100050; }
body.tm-design-system :is(.tm-home-film-modal__close,.tm-home-jury-modal__close,.tm-home-honor-modal__close,.tm-home-leadership-modal__close,.tm-workshop-modal__close,.tm-home-gallery-lightbox__close) { width: 44px; min-width: 44px; height: 44px; min-height: 44px; }

@media (max-width: 1100px) {
  body.tm-design-system .tm-header__inner { width: calc(100% - 32px); }
  body.tm-design-system .tm-program-embedded .controls { top: 76px; }
  body.tm-design-system.admin-bar .tm-program-embedded .controls { top: 108px; }
  body.tm-design-system .tm-footer.tm-footer--festival .tm-footer__grid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
  body.tm-design-system #tm-home-news { --tm-news-columns: min(3,var(--tm-news-item-count,3)); }
  body.tm-design-system .tm-final-register-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 980px) {
  body.tm-design-system .tm-unified-page-hero--cinema:not(.tm-unified-page-hero--text-only) { min-height: 0; }
  body.tm-design-system .tm-unified-page-hero--cinema .tm-unified-page-hero__image { min-height: 0; height: clamp(210px,40vw,340px); }
  body.tm-design-system .tm-news-archive-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 820px) {
  body.tm-ui-reset.tm-design-system { --tm-gutter: 20px; --tm-rhythm-section: 32px; --tm-rhythm-heading: 20px; --tm-section-heading-size: clamp(1.5rem,5.4vw,1.9rem); }
  body.tm-design-system .tm-site { overflow: visible; }
  body.tm-design-system .tm-main { padding-bottom: 0 !important; }
  body.tm-design-system .tm-container { width: var(--tm-content-width) !important; max-width: var(--tm-container); margin-inline: auto !important; }
  body.tm-design-system .tm-unified-page-hero { min-height: 0; }
  body.tm-design-system .tm-unified-page-hero__image { min-height: 0; height: clamp(190px,50vw,300px); }
  body.tm-design-system .tm-unified-page-hero__copy { padding: 28px var(--tm-gutter) 32px; }
  body.tm-design-system .tm-unified-page-hero__title { font-size: clamp(1.75rem,7vw,2.4rem); }
  body.tm-design-system .tm-home-blocks :is(.tm-home-films__header,.tm-home-juries__header,.tm-home-honors__header,.tm-home-editorial-head,.tm-initiatives__head) { flex-wrap: wrap; gap: 12px; padding-inline: 0 !important; }
  body.tm-design-system .tm-home-blocks :is(.tm-home-more-link,.tm-home-editorial-head__link) { padding: 8px 12px; }
  body.tm-design-system .tm-home-publications__carousel { padding-inline: 0; }
  body.tm-design-system .tm-home-publications__arrow { display: none; }
  body.tm-design-system .tm-festival-countdown__inner { flex-direction: column; padding: 0 !important; }
  body.tm-design-system .tm-festival-countdown h2 { font-size: 1.4rem !important; }
  body.tm-design-system .tm-festival-countdown__clock { width: 100% !important; max-width: 400px; }
  body.tm-design-system .tm-countdown-unit span { font-size: .75rem !important; }
  body.tm-design-system .tm-contact-layout { grid-template-columns: minmax(0,1fr); }
  body.tm-design-system .tm-contact-cards { grid-template-columns: repeat(auto-fit,minmax(min(100%,220px),1fr)); }
  body.tm-design-system .tm-contact-map { grid-template-columns: minmax(0,1fr); margin-top: 32px; gap: 20px; }
  body.tm-design-system .tm-contact-map iframe { height: 260px; }
  body.tm-design-system .tm-mediatheque-tools { padding: 20px !important; }
  body.tm-design-system .tm-mediatheque-tools__head { flex-wrap: wrap; }
  body.tm-design-system .tm-mediatheque-tools__head h2 { font-size: 1.25rem !important; }
  body.tm-design-system .tm-filter-select__label { font-size: .875rem !important; }
  body.tm-design-system .tm-media-center .tm-media-hub { padding-block: var(--tm-rhythm-section) !important; }
  body.tm-design-system .tm-media-center .tm-media-hub__grid { gap: 20px !important; }
  body.tm-design-system .tm-media-center .tm-media-resource-card { padding: 22px 18px !important; }
  body.tm-design-system .tm-media-center .tm-media-resource-card__content h3 { font-size: 1.25rem !important; }
  body.tm-design-system .tm-media-center .tm-media-resource-card__content p { display: block; overflow: visible; font-size: .9375rem !important; -webkit-line-clamp: unset; }
  body.tm-design-system .tm-media-center .tm-media-resource-card__action { min-height: 48px !important; font-size: .875rem !important; }
  body.tm-design-system .tm-media-grid { gap: 14px; }
  body.tm-design-system .tm-footer.tm-footer--festival .tm-footer__grid { gap: 28px 20px !important; padding-block: 36px 24px !important; }
  body.tm-design-system .tm-footer__brand { grid-column: 1 / -1; }
  body.tm-design-system .tm-footer__contact { grid-column: 1 / -1; }
  body.tm-design-system .tm-footer.tm-footer--festival .tm-footer__bottom { padding-block: 20px !important; }
  body.tm-design-system .tm-mobile-bottom-nav {
    right: 0 !important; left: 0 !important; bottom: 0 !important; width: 100%; max-width: none;
    min-height: 68px; margin: 0; padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    border: 0; border-top: 1px solid #dedbd5; border-radius: 0; background: #fff;
    box-shadow: 0 -4px 20px rgb(23 25 29 / 6%); backdrop-filter: none;
  }
  body.tm-design-system .tm-mobile-bottom-nav__item { min-height: 54px; border-radius: 6px; color: #60636a; font-size: .6875rem; font-weight: 500; }
  body.tm-design-system .tm-mobile-bottom-nav__item span { white-space: normal !important; overflow-wrap: normal !important; font-size: .6875rem !important; line-height: 1.3 !important; text-align: center; }
  body.tm-design-system .tm-mobile-bottom-nav__item.is-active { color: #894027; background: #f6ece5; }
  body.tm-design-system .tm-mobile-bottom-nav__item.is-active::after { display: none; }
  body.tm-design-system.tm-mobile-bottom-nav-enabled .tm-site { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  body.tm-design-system :is(.tm-home-film-modal__dialog,.tm-home-jury-modal__dialog,.tm-home-honor-modal__dialog,.tm-home-leadership-modal__dialog) { max-height: calc(100dvh - 24px) !important; overflow-y: auto; overscroll-behavior: contain; }
  body.tm-design-system :is(.tm-home-film-modal__content,.tm-home-jury-modal__content,.tm-home-honor-modal__content,.tm-home-leadership-modal__content) { padding: 24px 20px !important; }
  body.tm-design-system :is(.tm-home-film-modal__media,.tm-home-jury-modal__media,.tm-home-honor-modal__media,.tm-home-leadership-modal__media) { min-height: 0 !important; }
  body.tm-design-system :is(.tm-home-film-modal__media,.tm-home-jury-modal__media,.tm-home-honor-modal__media,.tm-home-leadership-modal__media) img { min-height: 0 !important; max-height: 38dvh !important; object-fit: contain; }
}
@media (max-width: 782px) {
  body.tm-design-system.admin-bar .tm-program-embedded .controls { top: 122px; }
}
@media (max-width: 680px) {
  body.tm-design-system #tm-home-news { --tm-news-columns: min(2,var(--tm-news-item-count,2)); --tm-news-gap: 16px; }
  body.tm-design-system .tm-final-register-grid { grid-template-columns: minmax(0,1fr); gap: 20px; }
  body.tm-design-system .tm-about-page .tm-commission-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
  body.tm-design-system .tm-about-page .tm-about-section { padding: 22px 18px; }
  body.tm-design-system .tm-about-page .tm-commission-card__media { aspect-ratio: 4 / 5; }
  body.tm-design-system .tm-contact-row { grid-template-columns: minmax(0,1fr); }
  body.tm-design-system .tm-program-embedded .controls { position: static; }
  body.tm-design-system .tm-program-embedded .filters { display: grid; grid-template-columns: minmax(0,1fr) auto; }
  body.tm-design-system .tm-program-embedded .type-chips { grid-column: 1 / -1; }
  body.tm-design-system .tm-program-embedded .spacer { display: none; }
  body.tm-design-system .tm-program-embedded .ctrl { width: 100%; min-width: 0; }
  body.tm-design-system .tm-program-embedded label.ctrl { grid-column: 1 / -1; }
  body.tm-design-system .tm-program-embedded label.ctrl input { width: 100%; }
  body.tm-design-system .tm-program-embedded .tm-program-summary { padding: 20px; gap: 16px; }
}
@media (max-width: 520px) {
  body.tm-design-system #tm-home-news { --tm-news-card-width: calc(100% - 24px); }
  body.tm-design-system #tm-home-news .tm-festival-news__inner { width: var(--tm-content-width) !important; }
  body.tm-design-system #tm-home-news .tm-festival-news__grid { padding-block: 0 8px !important; }
  body.tm-design-system #tm-home-news .tm-festival-news-card__body { min-height: 180px !important; }
  body.tm-design-system #tm-home-news .tm-festival-news__arrow { top: 34%; }
  body.tm-design-system .tm-news-archive-grid { grid-template-columns: minmax(0,1fr); gap: 22px; }
  body.tm-design-system .tm-news-archive-content { padding: 20px; }
  body.tm-design-system .tm-news-archive-content h2 { font-size: 1.25rem; }
  body.tm-design-system .tm-contact-submit { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  body.tm-design-system .tm-final-register-card:hover { transform: none; }
}
@media print {
  body.tm-design-system .tm-mobile-bottom-nav { display: none !important; }
  body.tm-design-system.tm-mobile-bottom-nav-enabled .tm-site { padding-bottom: 0; }
  body.tm-design-system .tm-program-embedded .controls { position: static; }
}

@media (max-width: 1100px) {
  body.tm-design-system.tm-navigation-open { overflow: hidden; }
  body.tm-design-system .tm-mobile-panel { scrollbar-gutter: stable; }
}

body.tm-design-system .tm-container.tm-hero-slide__inner { width: 100% !important; max-width: none; padding: 0 !important; margin: 0 !important; }

/* Preserve uploaded colour logos; invert only the bundled black artwork. */
body.tm-design-system .tm-footer.tm-footer--festival .tm-footer__logo img { filter: none !important; }
body.tm-design-system .tm-footer.tm-footer--festival .tm-footer__logo img.tm-footer__logo-image--default { filter: brightness(0) invert(1) !important; }
/* Catalogue / initiative edges share the main grid in both locales. */
body.tm-design-system :is(.tm-films-catalog-page,.tm-jury-decks__inner,.tm-gourara-reels > .tm-container,.tm-cine-social > .tm-container) { width: var(--tm-content-width) !important; max-width: var(--tm-container); margin-inline: auto; }
body.tm-design-system :is(.tm-films-catalog-section__arrow,.tm-jury-deck__arrow,.tm-reels__arrow) { min-width: 44px; min-height: 44px; border-radius: 6px; }
body.tm-design-system :is(.tm-films-overview__count,.tm-films-catalog-section__controls) { flex-wrap: wrap; }
@media(max-width: 520px) {
  body.tm-design-system .tm-films-catalog-page .tm-films-overview { gap: 20px; align-items: start; flex-direction: column; }
}

/* A missing poster must still have a readable, meaningful destination. */
body.tm-design-system .tm-initiative-card:not(.has-image) .tm-initiative-card__content { display: flex !important; flex-direction: column; justify-content: end; padding: 24px; }
body.tm-design-system .tm-initiative-card__fallback-title { display: block; color: #fff; font-size: clamp(1.15rem,2vw,1.65rem); line-height: 1.5; }

/* One canonical, resilient site header for Arabic and French.
 * Arabic navigation flows right-to-left. French navigation flows left-to-right
 * with the logo first, then menu destinations, then utility actions.
 * WordPress-managed labels, destinations and responsive behavior remain intact. */
.tm-header.tm-header--single-row { direction: rtl; text-align: start; }
.tm-header--single-row .tm-mobile-panel { direction: rtl; }
/* Explicit language override. The French <header> is LTR, including mobile and
 * the JS-driven compact menu, even when shared Arabic header rules are loaded. */
body.tm-english-mirror .tm-header.tm-header--french-order.tm-header--single-row {
  direction: ltr;
  text-align: left;
}
body.tm-english-mirror .tm-header--french-order.tm-header--single-row .tm-mobile-panel,
body.tm-english-mirror .tm-header--french-order.tm-header--single-row .tm-mobile-tools {
  direction: ltr;
  text-align: left;
}
.tm-english-mirror .tm-header--single-row .tm-nav__list a,
.tm-english-mirror .tm-header--single-row .tm-nav-link,
.tm-english-mirror .tm-header--single-row .tm-tool-link__label,
.tm-english-mirror .tm-header--single-row .tm-brand__mobile-title {
  direction: ltr;
  unicode-bidi: isolate;
}
.tm-english-mirror .tm-header--single-row .tm-header-search__input { direction: ltr; text-align: left; }
.tm-header--single-row .tm-header-search__input { direction: rtl; text-align: right; }

/* The theme's editorial container is 1320px; the header needs a genuinely
 * wider, independent usable width to hold 7 destinations + four tools. */
body.tm-design-system .tm-header--single-row .tm-header__inner {
  width: calc(100% - clamp(32px, 3.2vw, 72px));
  max-width: 1880px;
  padding-inline: 0 !important;
}

@media (min-width: 1280px) {
  .tm-header--single-row .tm-header__desktop {
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    justify-content: space-between;
    gap: clamp(12px, 1.1vw, 22px);
    width: 100%;
    min-width: 0;
    min-height: 88px;
  }
  body.tm-design-system .tm-header--single-row .tm-header__main {
    display: flex;
    flex: 1 1 0;
    align-items: center;
    gap: clamp(13px, 1.15vw, 24px);
    min-height: 0;
    min-width: 0;
    margin: 0;
  }
  .tm-header--single-row .tm-header__main .tm-brand {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
  }
  .tm-header--single-row .tm-header__main .tm-brand img {
    display: block;
    width: clamp(46px, 3.1vw, 56px);
    height: 62px;
    object-fit: contain;
  }
  .tm-header--single-row .tm-header__main .tm-nav {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
  }
  .tm-header--single-row .tm-header__main .tm-nav__list {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: clamp(9px, .83vw, 18px);
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .tm-header--single-row .tm-header__main .tm-nav__list > li {
    flex: 0 0 auto;
    min-width: 0;
    margin: 0;
    padding: 0;
  }
  .tm-header--single-row .tm-header__main .tm-nav__list :is(a,.tm-nav-link) {
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    min-height: 48px;
    padding: 10px 0;
    margin: 0;
    font-size: clamp(14px, var(--tmu-header-font-desktop, .9rem), 16px);
    font-weight: 650;
    line-height: 1.35;
    white-space: nowrap;
    word-break: normal;
    overflow-wrap: normal;
    text-align: center;
    text-decoration: none;
  }
  body.tm-design-system .tm-header--single-row .tm-header__tools {
    display: flex;
    flex: 0 0 auto;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    align-self: center;
    gap: clamp(7px, .65vw, 14px);
    min-height: 0;
    min-width: 0;
    margin: 0;
    padding: 0 0 0 0;
    padding-inline-start: clamp(11px, 1vw, 18px);
    border-top: 0;
    border-inline-start: 1px solid #3a3b3f;
  }
  .tm-header--single-row .tm-header__tools .tm-tool-link {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    padding: 4px 1px;
    white-space: nowrap;
    font-size: clamp(11.5px, .72vw, 13px);
    line-height: 1.4;
  }
  .tm-header--single-row .tm-header__tools .tm-tool-link__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
  }
  .tm-header--single-row .tm-header__tools .tm-language-switch--desktop {
    display: inline-flex;
    flex: 0 0 auto;
    min-height: 43px;
    min-width: 43px;
    border-radius: 5px;
  }
  .tm-header--single-row .tm-header__tools .tm-header-search {
    display: flex;
    flex: 0 0 150px;
    align-items: center;
    position: relative;
    width: 150px;
    min-width: 0;
    height: 44px;
    margin: 0;
    overflow: visible;
    border-radius: 6px;
  }
  .tm-header--single-row .tm-header__tools .tm-header-search__input {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    height: 42px;
    padding: 8px 10px;
    font-size: 13px;
    opacity: 1;
    pointer-events: auto;
  }
  .tm-header--single-row .tm-header__tools .tm-search-link {
    display: grid;
    flex: 0 0 42px;
    place-items: center;
    width: 42px;
    min-width: 42px;
    min-height: 42px;
    margin: 0;
  }
  .tm-header--single-row .tm-header__mobile,
  .tm-header--single-row .tm-mobile-panel { display: none; }
}

/* When the viewport or content requires it, keep the primary nav in full and
 * show the four auxiliary destinations as accessible icon actions. */
@media (min-width: 1280px) and (max-width: 1879px) {
  .tm-header--single-row .tm-header__desktop .tm-header__tools .tm-tool-link {
    width: 40px;
    min-width: 40px;
    height: 44px;
    padding: 9px 10px;
    border-radius: 5px;
  }
  .tm-header--single-row .tm-header__desktop .tm-tool-link__label { display: none; }
  .tm-header--single-row .tm-header__desktop .tm-header__tools .tm-header-search {
    flex-basis: 44px;
    width: 44px;
    min-width: 44px;
    border-radius: 5px;
  }
  .tm-header--single-row .tm-header__desktop .tm-header-search:not(.is-expanded) .tm-header-search__input {
    display: none;
  }
  .tm-header--single-row .tm-header__desktop .tm-header-search.is-expanded .tm-header-search__input {
    display: block;
    position: absolute;
    z-index: 20;
    top: calc(100% + 10px);
    inset-inline-end: 0;
    width: min(290px, 82vw) !important;
    min-width: min(290px, 82vw);
    height: 46px;
    padding: 9px 14px;
    border: 1px solid #7c7c7d !important;
    border-radius: 6px;
    background: #242527 !important;
    box-shadow: 0 12px 28px #0008;
  }
}
/* Content-managed navigation labels may be unusually long at any resolution. */
@media (min-width: 1280px) {
  .tm-header--single-row.tm-header--tools-compact .tm-header__desktop .tm-tool-link {
    width: 40px;
    min-width: 40px;
    padding: 9px 10px;
  }
  .tm-header--single-row.tm-header--tools-compact .tm-header__desktop .tm-tool-link__label { display: none; }
  .tm-header--single-row.tm-header--tools-compact .tm-header__desktop .tm-header-search { flex-basis: 44px; width: 44px; min-width: 44px; }
  .tm-header--single-row.tm-header--tools-compact .tm-header__desktop .tm-header-search:not(.is-expanded) .tm-header-search__input { display: none; }
  .tm-header--single-row.tm-header--tools-compact .tm-header__desktop .tm-header-search.is-expanded .tm-header-search__input {
    display: block;
    position: absolute;
    z-index: 20;
    top: calc(100% + 10px);
    inset-inline-end: 0;
    width: min(290px, 82vw) !important;
    min-width: min(290px, 82vw);
    height: 46px;
    padding: 9px 14px;
    border: 1px solid #7c7c7d !important;
    border-radius: 6px;
    background: #242527 !important;
    box-shadow: 0 12px 28px #0008;
  }
}

@media (max-width: 1279px) {
  body.tm-design-system .tm-header--single-row .tm-header__inner { width: calc(100% - 32px); }
  .tm-header--single-row .tm-header__desktop { display: none !important; }
  .tm-header--single-row .tm-header__mobile {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-width: 0;
    min-height: 72px;
  }
  .tm-header--single-row .tm-header__mobile .tm-brand { flex: 1 1 auto; min-width: 0; }
  .tm-header--single-row .tm-header__mobile .tm-brand img { width: 48px; height: 52px; }
  .tm-header--single-row .tm-header__mobile .tm-brand__mobile-title {
    font-size: clamp(10px, 1.9vw, 13px);
    line-height: 1.45;
  }
  .tm-header--single-row .tm-header__mobile .tm-language-switch--mobile,
  .tm-js .tm-header--single-row .tm-header__mobile .tm-menu-toggle { display: inline-flex; }
  .tm-header--single-row .tm-mobile-panel .tm-nav__list--mobile {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .tm-header--single-row .tm-mobile-panel .tm-nav__list--mobile :is(a,.tm-nav-link) {
    display: block;
    width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: start;
  }
  .tm-header--single-row .tm-mobile-tools { direction: rtl; }
}

/* Long custom menu labels: fall back to a ONE-LINE compact header rather
 * than allowing collision or horizontal overflow. Existing mobile JS handles
 * the same panel and keyboard interactions at these large viewport widths. */
@media (min-width: 1280px) {
  .tm-header--single-row.tm-header--force-mobile .tm-header__desktop { display: none !important; }
  .tm-header--single-row.tm-header--force-mobile .tm-header__mobile {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 76px;
  }
  .tm-header--single-row.tm-header--force-mobile .tm-header__mobile .tm-brand { flex: 1 1 auto; min-width: 0; }
  .tm-header--single-row.tm-header--force-mobile .tm-header__mobile .tm-brand img { width: 48px; height: 48px; }
  .tm-header--single-row.tm-header--force-mobile .tm-header__mobile .tm-language-switch--mobile,
  .tm-js .tm-header--single-row.tm-header--force-mobile .tm-header__mobile .tm-menu-toggle { display: inline-flex; }
  .tm-header--single-row.tm-header--force-mobile .tm-mobile-panel {
    display: block;
    direction: rtl;
    padding: 12px 16px 24px;
    border-top: 1px solid #303135;
  }
  .tm-js .tm-header--single-row.tm-header--force-mobile .tm-mobile-panel {
    display: none;
    position: absolute;
    z-index: 30;
    inset-inline: 0;
    top: 100%;
    max-height: calc(100dvh - 76px);
    padding: 18px max(16px, calc((100% - 740px) / 2)) 28px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #17191d;
    box-shadow: 0 20px 30px #0004;
  }
  .tm-js .tm-header--single-row.tm-header--force-mobile .tm-mobile-panel.is-open { display: block; }
  .tm-header--single-row.tm-header--force-mobile .tm-mobile-panel .tm-nav__list--mobile {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .tm-header--single-row.tm-header--force-mobile .tm-mobile-panel .tm-nav__list--mobile :is(a,.tm-nav-link) {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 10px 4px;
    white-space: normal;
    text-align: start;
    border-bottom: 1px solid #303135;
  }
  .tm-header--single-row.tm-header--force-mobile .tm-mobile-tools {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 18px;
    padding-top: 16px;
  }
  .tm-header--single-row.tm-header--force-mobile .tm-mobile-tools .tm-tool-link { min-height: 46px; }
  .tm-header--single-row.tm-header--force-mobile .tm-mobile-language-link { grid-column: 1 / -1; }
  .tm-header--single-row.tm-header--force-mobile .tm-header-search--mobile { width: 100%; margin-bottom: 12px; }
}

/* native, accessible Masterclass dropdown in both languages. */
.tm-header--single-row .tm-nav__dropdown { position: relative; color:#f4f0e9; }
.tm-header--single-row .tm-nav__dropdown-trigger {
  display:flex;align-items:center;gap:7px;min-height:48px;white-space:nowrap;
  padding:10px 0;margin:0;color:inherit;cursor:pointer;list-style:none;
  font:650 clamp(14px,var(--tmu-header-font-desktop,.9rem),16px)/1.35 var(--tm-font-heading);
}
.tm-header--single-row .tm-nav__dropdown-trigger::-webkit-details-marker { display:none; }
.tm-header--single-row .tm-nav__dropdown-chevron { width:7px;height:7px;flex:0 0 7px;border-inline-end:1.6px solid currentColor;border-bottom:1.6px solid currentColor;transform:rotate(45deg) translateY(-2px);opacity:.85; }
.tm-header--single-row .tm-nav__dropdown-trigger:hover,
.tm-header--single-row .tm-nav__dropdown.is-current > .tm-nav__dropdown-trigger,
.tm-header--single-row .tm-nav__dropdown[open] > .tm-nav__dropdown-trigger { color:#edc386; }
.tm-header--single-row .tm-nav__submenu { list-style:none;margin:0;padding:9px; }
.tm-header--single-row .tm-nav__submenu li { list-style:none;margin:0;padding:0; }
.tm-header--single-row .tm-nav__submenu a,
.tm-header--single-row .tm-nav__submenu span {
  display:block!important;min-height:42px!important;padding:10px 14px!important;
  border:0!important;border-radius:4px;color:#f4f0e9;
  text-decoration:none;white-space:normal!important;line-height:1.5!important;
  text-align:start!important;font-size:14px!important;font-weight:550!important;
}
.tm-header--single-row .tm-nav__submenu a:hover,
.tm-header--single-row .tm-nav__submenu a:focus-visible,
.tm-header--single-row .tm-nav__submenu a[aria-current=page] { background:#373534;color:#edc386; }
@media(min-width:1280px) {
  .tm-header--single-row:not(.tm-header--force-mobile) .tm-nav__dropdown > .tm-nav__submenu {
    display:none;position:absolute;top:100%;inset-inline-start:0;z-index:1002;
    min-width:240px;max-width:min(320px,80vw);
    border:1px solid #434248;border-radius:5px;background:#1c1d20;
    box-shadow:0 18px 34px rgba(0,0,0,.24);
  }
  .tm-header--single-row:not(.tm-header--force-mobile) .tm-nav__dropdown:hover > .tm-nav__submenu,
  .tm-header--single-row:not(.tm-header--force-mobile) .tm-nav__dropdown[open] > .tm-nav__submenu,
  .tm-header--single-row:not(.tm-header--force-mobile) .tm-nav__dropdown:focus-within > .tm-nav__submenu { display:grid; }
}
@media(max-width:1279px) {
  .tm-header--single-row .tm-nav__dropdown {width:100%;}
  .tm-header--single-row .tm-nav__dropdown-trigger {width:100%;min-height:48px;border-bottom:1px solid #303135;padding:10px 4px;font-size:var(--tmu-header-font-mobile,.95rem);}
  .tm-header--single-row .tm-nav__dropdown > .tm-nav__submenu { display:none;padding:0 13px 9px; }
  .tm-header--single-row .tm-nav__dropdown[open] > .tm-nav__submenu {display:grid;}
}
.tm-header--single-row.tm-header--force-mobile .tm-nav__dropdown {width:100%;}
.tm-header--single-row.tm-header--force-mobile .tm-nav__dropdown-trigger {width:100%;min-height:48px;border-bottom:1px solid #303135;padding:10px 4px;}
.tm-header--single-row.tm-header--force-mobile .tm-nav__dropdown > .tm-nav__submenu {display:none;padding:0 13px 9px;}
.tm-header--single-row.tm-header--force-mobile .tm-nav__dropdown[open] > .tm-nav__submenu {display:grid;}
.tm-english-mirror .tm-header--single-row .tm-nav__dropdown-trigger,
.tm-english-mirror .tm-header--single-row .tm-nav__submenu a {direction:ltr;unicode-bidi:isolate;}

/* Robust desktop compaction before falling back to the mobile header. */
@media (min-width:1280px) {
  .tm-header--single-row.tm-header--ultra-compact .tm-header__desktop {
    gap: clamp(8px, .8vw, 14px);
  }
  body.tm-design-system .tm-header--single-row.tm-header--ultra-compact .tm-header__main {
    gap: clamp(9px, .8vw, 16px);
  }
  .tm-header--single-row.tm-header--ultra-compact .tm-header__main .tm-nav__list {
    gap: clamp(6px, .55vw, 12px);
  }
  .tm-header--single-row.tm-header--ultra-compact .tm-header__main .tm-nav__list :is(a,.tm-nav-link),
  .tm-header--single-row.tm-header--ultra-compact .tm-nav__dropdown-trigger {
    min-height: 44px;
    font-size: 13px;
  }
  body.tm-design-system .tm-header--single-row.tm-header--ultra-compact .tm-header__tools {
    gap: 6px;
    padding-inline-start: 10px;
  }
  .tm-header--single-row.tm-header--ultra-compact .tm-header__desktop .tm-tool-link {
    min-height: 36px;
  }
  .tm-header--single-row.tm-header--ultra-compact .tm-header__desktop .tm-header-search {
    flex-basis: 40px;
    width: 40px;
    min-width: 40px;
  }
  .tm-header--single-row.tm-header--ultra-compact .tm-header__desktop .tm-header-search__input {
    font-size: 13px;
  }
}

/* Guard against inherited button/SVG styles that can enlarge the mobile trigger. */
.tm-header .tm-menu-toggle {
  inline-size: 44px !important;
  block-size: 44px !important;
  min-inline-size: 44px !important;
  min-block-size: 44px !important;
  max-inline-size: 44px !important;
  max-block-size: 44px !important;
  box-sizing: border-box;
  overflow: hidden;
}
.tm-header .tm-menu-toggle svg {
  width: 22px !important;
  height: 22px !important;
  flex: 0 0 22px;
}
.tm-header .tm-mobile-panel,
.tm-header .tm-mobile-panel * {
  box-sizing: border-box;
}
.tm-header .tm-mobile-panel {
  background: #17191d !important;
  color: #fff;
}

/* No mismatch between heading and its category tabs. */
.tm-home-blocks .tm-home-juries__title h2,
.tm-home-blocks .tm-home-juries__filter {font-family:var(--tm-font-heading)!important;}
.tm-home-blocks .tm-home-juries__filter {font-weight:700!important;letter-spacing:normal!important;}
/* Couple adjacent editorial blocks without changing unrelated section spacing. */
body.tm-design-system .tm-home-blocks > .tm-initiatives.tm-near-news-top,
body.tm-design-system .tm-home-blocks > #tm-home-news.tm-near-news-top {padding-top:clamp(18px,2.2vw,32px)!important;}
body.tm-design-system .tm-home-blocks > .tm-initiatives.tm-near-news-bottom,
body.tm-design-system .tm-home-blocks > #tm-home-news.tm-near-news-bottom {padding-bottom:clamp(18px,2.2vw,32px)!important;}
@media(max-width:820px) {
  body.tm-design-system .tm-home-blocks > .tm-initiatives.tm-near-news-top,
  body.tm-design-system .tm-home-blocks > #tm-home-news.tm-near-news-top {padding-top:20px!important;}
  body.tm-design-system .tm-home-blocks > .tm-initiatives.tm-near-news-bottom,
  body.tm-design-system .tm-home-blocks > #tm-home-news.tm-near-news-bottom {padding-bottom:20px!important;}
}

/* Keep the transition between the news block and festival experiences compact
   even when CMS visual order differs from DOM order. */
body.tm-design-system .tm-home-blocks > :is(#tm-home-news,.tm-initiatives) {
  --tm-home-adjacent-gap:clamp(24px,2.8vw,38px);
}
body.tm-design-system .tm-home-blocks > #tm-home-news {
  padding-bottom:var(--tm-home-adjacent-gap)!important;
}
body.tm-design-system .tm-home-blocks > .tm-initiatives {
  padding-top:var(--tm-home-adjacent-gap)!important;
}
@media(max-width:820px) {
  body.tm-design-system .tm-home-blocks > :is(#tm-home-news,.tm-initiatives) {
    --tm-home-adjacent-gap:22px;
  }
}
