/* HT Site Styles: title banner, listing pages, cards, header/footer, menu.
   Sections: 1 Variables · 2 Title banner · 3 Listing pages · 4 Single posts · 5 Film-type cards and listing details
             6 Page frame (footer, header) · 7 Unified listing cards · 8 Works, Workshops, Recordings, Partners
             9 Performances and small items · 10 Open menu (phone/tablet) and nested submenus
   Every tunable number is a variable in section 1. */

/* 1 Variables ---------------------------------------------------------------- */
:root{
 --ht-wave:24px;            /* height of the wave under the title banner */
 --ht-banner-gap:16px;      /* space between the wave and the page content */
 --ht-banner-title:28px;    /* title size inside the banner (24px on phones) */
 --ht-header-pad:12px;      /* header top/bottom padding */
 --ht-footer-pad:8px;       /* footer top/bottom padding */
 --ht-flag-h:32px;          /* language flag height in listing cards */
 --ht-flag-crop:.5;         /* visible share of the flag image width (the flag, not the baked-in letters) */
 --ht-image-shadow:0 6px 18px rgba(0,0,0,.38);  /* shadow of listing card images */
 --ht-partners-width:820px; /* width of the Partners list */
}
@media(max-width:700px){:root{--ht-banner-title:24px}}

/* 2 Title banner ------------------------------------------------------------- */
body .ht-title-banner{padding-top:30px!important;padding-bottom:calc(var(--ht-wave) + 6px)!important;margin:0!important}
body .ht-title-banner:not(:has(h1,h2,[class*="-field"])){padding-top:0!important;padding-bottom:calc(var(--ht-wave) + 30px)!important}
body .ht-title-banner::after{height:var(--ht-wave)!important}
body .ht-title-banner :is(h1,h2,.wp-block-heading,[class*="-field"]){font-size:var(--ht-banner-title)!important;line-height:1.2!important}
body .ht-title-banner+*{margin-top:0!important;padding-top:var(--ht-banner-gap)!important}
/* Saved pages may wrap a listing in a native Group: no second inset and no native first-block margin. */
body .ht-title-banner+* :is(.ht-works-list,.ht-cds,.ht-recordings,.ht-videos,.ht-texts,.ht-filtered-list){margin-top:0!important;padding-top:0!important}
body .ht-title-banner+*>:first-child,
body .ht-title-banner+*>.wp-block-group:first-child>:first-child{margin-top:0!important}

/* 3 Listing pages: count row and gap above the results ------------------------- */
body :is(.ht-cds-count,.ht-videos-count,.ht-texts-count,.ht-listing-count,.ht-films-count,.ht-dance-count,.ht-festival-count,.ht-kinder-filme-count,.ht-recipes-count){height:22px;line-height:22px;padding:0!important;margin:0 0 10px!important}
body :is(.ht-cds-results,.ht-videos-results,.ht-texts-results,.ht-listing-results,.ht-films-results,.ht-dance-results,.ht-festival-results,.ht-kinder-filme-results,.ht-recipes-results){padding-top:32px!important}
@media(max-width:700px){
 body :is(.ht-cds-results,.ht-videos-results,.ht-texts-results,.ht-listing-results,.ht-films-results,.ht-dance-results,.ht-festival-results,.ht-kinder-filme-results,.ht-recipes-results){padding-top:0!important}
}
body :is(.ht-films-count,.ht-dance-count,.ht-festival-count,.ht-kinder-filme-count,.ht-works-count){font-size:15px!important}
/* Sidebar + results columns, the same on every listing. */
@media(min-width:1001px){
 body :is(.ht-texts-layout,.ht-videos-layout,.ht-press-layout,.ht-interviews-layout,.ht-cds-layout,.ht-films-layout,.ht-dance-layout,.ht-festival-layout,.ht-kinder-filme-layout,.ht-recipes-layout,.ht-exhibitions-layout,.ht-recordings-layout){grid-template-columns:minmax(240px,25%) minmax(0,1fr)!important;gap:24px!important}
 body .ht-works-layout.has-filters{grid-template-columns:minmax(240px,25%) minmax(0,1fr)!important;gap:24px!important}
}
body :is(.ht-works-layout,.ht-works-list){font-size:16px;line-height:1.6}
body :is(.ht-films,.ht-dance,.ht-festival,.ht-kinder-filme){line-height:1.6}
body .ht-works-list,body .ht-works-list .ht-works-results{gap:8px!important}

/* 4 Single posts: title below the wave, Works typography ------------------------ */
body :is(.ht-text-single,.ht-video-single,.ht-press-single,.ht-interview-single,.ht-dance-single,.ht-festival-single,.ht-film-single,.ht-kinder-filme-single) :is(h1,h1[class]){font-size:27px!important;font-weight:400!important;line-height:1.2!important;text-align:left!important;margin:0 0 8px!important}
body :is(.ht-film-single-content,.ht-dance-single-content,.ht-festival-single-content,.ht-kinder-filme-single-content)>*{text-align:left!important}
/* Title links inherit the title weight (the selector matches texts_title as well as -title). */
body :is(h2,h3)[class*="title"] a{font-weight:inherit!important}

/* 5 Film, Dance, Festival, Kinder-Filme cards: year and title typography ---------- */
body :is(.ht-film-card,.ht-dance-card,.ht-festival-card,.ht-kinder-filme-card) :is(.ht-film-field-films_year,.ht-dance-field-dance_year,.ht-festival-field-festivals_year,.ht-kinder-filme-field-kinder_filme_year){font-weight:600!important}
body :is(.ht-film-card-year,.ht-dance-card-year,.ht-festival-card-year,.ht-kinder-filme-card-year)>:first-child{line-height:1.6!important;text-box-trim:none!important}
body :is(.ht-film-card-description,.ht-dance-card-description,.ht-festival-card-description,.ht-kinder-filme-card-description)>:first-child{margin-top:0!important;line-height:1.3!important;text-box-trim:none!important}
body :is(.ht-film-card,.ht-dance-card,.ht-festival-card,.ht-kinder-filme-card) h2{margin-bottom:10px!important}

/* 6 Page frame: sticky footer, slim header and footer ---------------------------- */
body .wp-site-blocks{min-height:calc(100vh - var(--wp-admin--admin-bar--height,0px));min-height:calc(100dvh - var(--wp-admin--admin-bar--height,0px));display:flex;flex-direction:column}
body .wp-site-blocks>*{align-self:stretch}
body .wp-site-blocks>footer,body .wp-site-blocks>.wp-block-template-part:last-child{margin-top:auto!important}
body .tt-header{padding-top:var(--ht-header-pad)!important;padding-bottom:var(--ht-header-pad)!important}
body .wp-site-blocks>footer>.wp-block-group{padding-top:var(--ht-footer-pad)!important;padding-bottom:var(--ht-footer-pad)!important}
body .wp-site-blocks>footer :is(p,a,.wp-block-navigation){margin-block:0;line-height:1.3}

/* 7 Unified listing cards: image first, then one text column (year + flag, title, description).
   Texts, Videos, Press, Interviews, Film, Dance, Festival, Kinder-Filme, Exhibitions, CDs. */
body :is(.ht-text-card,.ht-video-card,.ht-press-card,.ht-interview-card,.ht-film-card,.ht-dance-card,.ht-festival-card,.ht-kinder-filme-card,.ht-exhibition-card){display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-areas:none!important;gap:0!important;align-items:start}
body :is(.ht-text-card,.ht-video-card,.ht-press-card,.ht-interview-card,.ht-film-card,.ht-dance-card,.ht-festival-card,.ht-kinder-filme-card,.ht-exhibition-card)>*{grid-area:auto!important;margin-block-start:0!important}
body :is(.ht-text-card,.ht-video-card,.ht-press-card,.ht-interview-card,.ht-film-card,.ht-dance-card,.ht-festival-card,.ht-kinder-filme-card,.ht-exhibition-card,.ht-cd-card)>:first-child{display:flex;justify-content:center;align-items:flex-start;min-width:0}
body :is(.ht-text-card,.ht-video-card,.ht-press-card,.ht-interview-card,.ht-film-card,.ht-dance-card,.ht-festival-card,.ht-kinder-filme-card,.ht-exhibition-card)>:first-child:not(:has(img)){display:none}
body :is(.ht-text-card,.ht-video-card,.ht-press-card,.ht-interview-card,.ht-film-card,.ht-dance-card,.ht-festival-card,.ht-kinder-filme-card,.ht-exhibition-card,.ht-cd-card)>:first-child :is(figure,a){margin-inline:auto;max-width:100%}
body :is(.ht-text-card,.ht-video-card,.ht-press-card,.ht-interview-card,.ht-film-card,.ht-dance-card,.ht-festival-card,.ht-kinder-filme-card,.ht-exhibition-card)>:first-child img{display:block;width:auto;max-width:100%;max-height:260px;height:auto;margin:0 0 14px}
body :is(.ht-text-card,.ht-video-card,.ht-press-card,.ht-interview-card,.ht-film-card,.ht-dance-card,.ht-festival-card,.ht-kinder-filme-card,.ht-exhibition-card,.ht-cd-card)>:first-child img{margin-inline:auto!important;box-shadow:var(--ht-image-shadow)!important;filter:none!important}
body :is(.ht-text-card,.ht-video-card,.ht-press-card,.ht-interview-card,.ht-film-card,.ht-dance-card,.ht-festival-card,.ht-kinder-filme-card,.ht-exhibition-card) [class*="-card-text"]>*{margin-block-start:0!important}
/* Year + flag row: same height and one centre line in every card. */
body :is(.ht-text-card,.ht-video-card,.ht-press-card,.ht-interview-card,.ht-film-card,.ht-dance-card,.ht-festival-card,.ht-kinder-filme-card,.ht-exhibition-card,.ht-cd-card) [class*="-card-meta"]{display:flex!important;align-items:center;gap:10px;min-height:calc(var(--ht-flag-h) + 4px);margin:0 0 8px!important}
body :is(.ht-text-card,.ht-video-card,.ht-press-card,.ht-interview-card,.ht-film-card,.ht-dance-card,.ht-festival-card,.ht-kinder-filme-card,.ht-exhibition-card,.ht-cd-card) [class*="-card-meta"]>*{margin:0!important;padding:0!important;line-height:1.2!important}
body :is(.ht-text-card,.ht-video-card,.ht-press-card,.ht-interview-card,.ht-film-card,.ht-dance-card,.ht-festival-card,.ht-kinder-filme-card,.ht-exhibition-card,.ht-cd-card) [class*="-card-meta"] img{display:block;margin:0!important}
/* Language flag: only the flag part of the image; the letters (DE, FR, ES, EN) are real text added by language-codes.php. */
.ht-lang-code{display:none}
body :is(.ht-text-card,.ht-video-card,.ht-press-card,.ht-interview-card,.ht-film-card,.ht-dance-card,.ht-festival-card,.ht-kinder-filme-card,.ht-exhibition-card,.ht-cd-card) [class*="-card-meta"] figure[class*="language_flag"]{flex:none;height:var(--ht-flag-h);width:calc(var(--ht-flag-h) * 2.087 * var(--ht-flag-crop));overflow:hidden}
body :is(.ht-text-card,.ht-video-card,.ht-press-card,.ht-interview-card,.ht-film-card,.ht-dance-card,.ht-festival-card,.ht-kinder-filme-card,.ht-exhibition-card,.ht-cd-card) [class*="-card-meta"] figure[class*="language_flag"] img{height:100%;width:auto;max-width:none}
body :is(.ht-text-card,.ht-video-card,.ht-press-card,.ht-interview-card,.ht-film-card,.ht-dance-card,.ht-festival-card,.ht-kinder-filme-card,.ht-exhibition-card,.ht-cd-card) [class*="-card-meta"] .ht-lang-code{display:block;font:inherit;font-weight:600;line-height:1.2}
/* Wide screens: image column 38%, text column the rest. */
@media(min-width:701px){
 body .ht-cd-card{grid-template-columns:minmax(0,38%) minmax(0,1fr)!important;gap:28px!important}
 body :is(.ht-text-card,.ht-video-card,.ht-press-card,.ht-interview-card,.ht-film-card,.ht-dance-card,.ht-festival-card,.ht-kinder-filme-card,.ht-exhibition-card):has(>:first-child img){grid-template-columns:minmax(0,38%) minmax(0,1fr)!important;column-gap:28px!important}
 body :is(.ht-text-card,.ht-video-card,.ht-press-card,.ht-interview-card,.ht-film-card,.ht-dance-card,.ht-festival-card,.ht-kinder-filme-card,.ht-exhibition-card)>:first-child img{max-height:340px;margin:0}
}
/* Phones: one column, image on top. */
@media(max-width:700px){
 body .ht-cd-card{grid-template-columns:minmax(0,1fr)!important;gap:14px!important}
 body .ht-cd-card img{max-height:260px;width:auto;max-width:100%;height:auto}
}

/* 8 Works, Workshops, EFIM recordings, Partners: same card frame and layout ------- */
body .ht-works-list .wp-block-ht-work-field{margin-block-end:10px!important}
body .ht-work-card{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:0!important;align-items:start;box-sizing:border-box;background:#efefef;border:1px solid #b8b8b8;border-radius:16px;padding:20px;margin:0}
body .ht-works-list .ht-work-card{padding:20px!important}
body .ht-work-card>*{grid-area:auto!important;margin-block-start:0!important}
body .ht-work-card>:first-child{display:flex;justify-content:center;align-items:flex-start;min-width:0}
body .ht-work-card>:first-child:not(:has(img)){display:none}
body .ht-work-card>:first-child img{display:block;width:auto;max-width:100%;max-height:260px;height:auto;margin:0 auto!important;box-shadow:var(--ht-image-shadow)!important;filter:none!important}
body .ht-work-card [class*="-card-meta"]{display:flex!important;align-items:center;gap:10px;min-height:calc(var(--ht-flag-h) + 4px);margin:0 0 8px!important}
body .ht-work-card [class*="-card-meta"]:not(:has(*)){display:none!important}
body .ht-work-card [class*="-card-meta"]>*{margin:0!important;padding:0!important;line-height:1.2!important;font-weight:600}
body .ht-work-card .ht-work-title{font-size:22px;line-height:1.3;font-weight:600;margin:0 0 10px!important}
body .ht-work-card .ht-work-title a{font-weight:inherit!important}
body .ht-work-card :is(.ht-work-instrumentation,.ht-work-duration){margin:0 0 10px!important}
@media(min-width:701px){
 body .ht-work-card:has(>:first-child img){grid-template-columns:minmax(0,38%) minmax(0,1fr)!important;column-gap:28px!important}
 body .ht-work-card>:first-child img{max-height:340px}
}

body .ht-workshop-card{align-items:start!important}
body .ht-workshop-card>*{margin-block-start:0!important}
body .ht-workshop-card>:first-child{display:flex;justify-content:center;align-items:flex-start;min-width:0}
body .ht-workshop-card>:first-child img{margin-inline:auto!important;max-height:340px;box-shadow:var(--ht-image-shadow)!important}
body .ht-workshop-card .ht-workshop-card-text>*{margin-block-start:0!important}
body .ht-workshop-card .ht-workshop-card-text h2{font-size:22px;line-height:1.3;margin:0 0 10px!important}
@media(max-width:700px){body .ht-workshop-card>:first-child img{max-height:260px}}

body .ht-recordings-results{gap:14px!important}
body .ht-recording-card{box-sizing:border-box;background:#efefef;border:1px solid #b8b8b8;border-radius:16px;padding:20px;margin:0!important}
body .ht-recording-card .ht-recording-card-text>*{margin-block-start:0!important}
body .ht-recording-card [class*="-card-meta"]{display:flex;align-items:center;min-height:calc(var(--ht-flag-h) + 4px);margin:0 0 8px!important}
body .ht-recording-card [class*="-card-meta"]>*,body .ht-recording-card .ht-recording-year p{margin:0!important;padding:0!important;line-height:1.2!important;font-weight:600;font-size:16px!important}
body .ht-recording-card .ht-recording-field-title{font-size:22px;line-height:1.3;font-weight:600;margin:0 0 10px!important}
body .ht-recording-card :is(.ht-recording-field-date,.ht-recording-field-place,.ht-recording-field-duration){font-size:16px;line-height:1.5;margin:0 0 4px!important}
body .ht-recording-card .ht-recording-card-text>.ht-recording-field-tracks{margin-block-start:28px!important}
body .ht-recording-card audio{display:block;width:100%!important;max-width:none!important}
@media(max-width:700px){body .ht-recording-card{padding:16px}}

body .ht-partners-list{max-width:var(--ht-partners-width);gap:14px}
body .ht-partner-card{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:0!important;align-items:start;box-sizing:border-box;background:#efefef;border:1px solid #b8b8b8;border-radius:16px;padding:20px;margin:0}
body .ht-partner-card>*{grid-area:auto!important;margin-block-start:0!important}
body .ht-partner-card>:first-child{display:flex;justify-content:center;align-items:flex-start;min-width:0}
body .ht-partner-card>:first-child:not(:has(img)){display:none}
body .ht-partner-card>:first-child img{display:block;width:auto;max-width:100%;max-height:260px;height:auto;margin:0 auto!important;box-shadow:var(--ht-image-shadow)!important}
body .ht-partner-card h2{font-size:22px;line-height:1.3;font-weight:600;text-align:left;margin:0 0 10px!important}
@media(min-width:701px){
 body .ht-partner-card:has(>:first-child img){grid-template-columns:minmax(0,38%) minmax(0,1fr)!important;column-gap:28px!important}
 body .ht-partner-card>:first-child img{max-height:340px}
}
@media(max-width:700px){body .ht-partner-card{padding:16px}}

/* 9 Performances archive and small items ------------------------------------------ */
/* 983 cards: skip layout and paint of off-screen cards. Delete this rule to undo. */
body .ht-performance-archive-card{content-visibility:auto;contain-intrinsic-size:auto 170px}
/* Phones: the filter is stacked above the list, so "Back to top" below it is pointless. */
@media(max-width:700px){body .ht-filter-back-top{display:none!important}}

/* 10 Open menu on phone/tablet: main items bold, submenus smaller and dimmer, foldable, one open at a time
   (script: ht-site-navigation/navigation.js adds html.ht-nav-fold and li.ht-open). ---------------------- */
body .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container{padding:8px 0 0!important;margin:0!important;gap:4px!important;row-gap:4px!important}
body .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container>.wp-block-navigation-item>.wp-block-navigation-item__content{font-weight:600!important}
body .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content{font-size:.86em!important;font-weight:300!important;opacity:.78}
html.ht-nav-fold body .wp-block-navigation__responsive-container.is-menu-open .has-child>.wp-block-navigation__submenu-container{display:none!important}
html.ht-nav-fold body .wp-block-navigation__responsive-container.is-menu-open .has-child.ht-open>.wp-block-navigation__submenu-container{display:flex!important}
html.ht-nav-fold body .wp-block-navigation__responsive-container.is-menu-open .has-child>:is(.wp-block-navigation-submenu__toggle,.wp-block-navigation-item__content)::after{content:"\25BE";display:inline-block;margin-left:.45em;font-size:.8em;opacity:.8}
html.ht-nav-fold body .wp-block-navigation__responsive-container.is-menu-open .has-child.ht-open>:is(.wp-block-navigation-submenu__toggle,.wp-block-navigation-item__content)::after{content:"\25B4"}
/* Narrow screens (iPad portrait): a submenu inside a submenu opens below its parent, indented, not as a flyout. */
@media(max-width:1100px){
 body .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container{position:static!important;left:auto!important;right:auto!important;top:auto!important;border:0!important;box-shadow:none!important;padding:0 0 0 18px!important;min-width:0!important}
}

/* EXPERIMENT 11 (phones): header sometimes unreachable on iPhone after scrolling a listing. Delete this block to undo. */
@media(max-width:700px){
 body :is(.ht-cds-count,.ht-videos-count,.ht-texts-count,.ht-press-count,.ht-interviews-count,.ht-exhibitions-count,.ht-workshops-count){position:static!important}
 html,body{overflow-anchor:none}
}

/* 12 Revealed contact email address: black instead of the gold link colour (Contact and Privacy pages). */
body .ht-contact-email-result a,body .ht-contact-email-result a:is(:visited,:hover,:focus,:active){color:#000!important}
