/*
Theme Name:   Haifa Labor Film Festival
Theme URI:    https://haifa-labor.org.il
Description:  Custom child theme for Haifa Labor Film Festival 2026 — dark cinematic identity, brutalist Hebrew typography, red olive-branch accents.
Author:       Matan Hakim
Author URI:   https://haifa-labor.org.il
Template:     astra
Version:      2026.1.0
Text Domain:  haifa-labor
*/

/* ═══════════════════════════════════════════════════════════
   Haifa Labor Film Festival — 19th edition · "כל העם חזית"
   Design tokens
   ═══════════════════════════════════════════════════════════ */
:root {
    /* Palette — deep-space dark with worker red */
    --hlff-bg:           #0a0a10;
    --hlff-bg-2:         #13131c;
    --hlff-surface:      #1a1a26;
    --hlff-surface-hi:   #23232f;
    --hlff-border:       #2a2a38;
    --hlff-border-hi:    #3a3a4a;

    --hlff-ink:          #f5f5ef;
    --hlff-ink-2:        #b8b8c0;
    --hlff-ink-3:        #7a7a88;

    --hlff-red:          #d72638;
    --hlff-red-hi:       #ef3a4d;
    --hlff-red-soft:     #faddd9;

    --hlff-cream:        #f7f4ea;

    /* Typography */
    --hlff-font-sans:    'Heebo', 'Assistant', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --hlff-font-display: 'Heebo', 'Assistant', system-ui, sans-serif;

    /* Layout */
    --hlff-radius-sm:    6px;
    --hlff-radius:       12px;
    --hlff-radius-lg:    20px;

    --hlff-shadow-sm:    0 2px 8px rgba(0,0,0,0.35);
    --hlff-shadow:       0 8px 24px rgba(0,0,0,0.45);
    --hlff-shadow-lg:    0 24px 60px rgba(0,0,0,0.55);

    --hlff-max:          1200px;
    --hlff-gutter:       clamp(16px, 4vw, 40px);

    /* Motion */
    --hlff-ease:         cubic-bezier(.22, 1, .36, 1);
    --hlff-dur:          260ms;
}

/* ═══════════════════════════════════════════════════════════
   Global reset / base
   ═══════════════════════════════════════════════════════════ */
html {
    scroll-behavior: smooth;
}

body,
body.ast-separate-container,
body.ast-plain-container {
    background: var(--hlff-bg);
    color: var(--hlff-ink);
    font-family: var(--hlff-font-sans);
    font-weight: 400;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,.55), transparent),
        radial-gradient(1px 1px at 28% 72%, rgba(255,255,255,.4), transparent),
        radial-gradient(1.5px 1.5px at 47% 34%, rgba(255,255,255,.5), transparent),
        radial-gradient(1px 1px at 63% 84%, rgba(255,255,255,.5), transparent),
        radial-gradient(1px 1px at 78% 22%, rgba(255,255,255,.35), transparent),
        radial-gradient(1.5px 1.5px at 88% 66%, rgba(255,255,255,.55), transparent),
        radial-gradient(1px 1px at 8% 92%, rgba(255,255,255,.35), transparent),
        radial-gradient(1.5px 1.5px at 35% 8%, rgba(255,255,255,.4), transparent);
    background-size: 1200px 800px;
    opacity: .6;
}

#page,
.site {
    position: relative;
    z-index: 1;
    background: transparent;
}

h1, h2, h3, h4, h5, h6,
.entry-title,
.wp-block-heading {
    font-family: var(--hlff-font-display);
    font-weight: 800;
    letter-spacing: -.01em;
    line-height: 1.15;
    color: var(--hlff-ink);
}

a {
    color: var(--hlff-red-hi);
    text-decoration: none;
    transition: color var(--hlff-dur) var(--hlff-ease);
}

a:hover,
a:focus-visible {
    color: var(--hlff-cream);
}

p { margin: 0 0 1.1em; }

::selection { background: var(--hlff-red); color: #fff; }

/* ═══════════════════════════════════════════════════════════
   Header / navigation
   ═══════════════════════════════════════════════════════════ */
.site-header,
header.site-header,
.ast-above-header,
.ast-primary-header-bar,
.main-header-bar {
    background: rgba(10, 10, 16, 0.88) !important;
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border-bottom: 1px solid var(--hlff-border) !important;
    box-shadow: none !important;
}

.site-title a,
.site-title,
.ast-site-identity .site-title a {
    font-family: var(--hlff-font-display) !important;
    font-weight: 900 !important;
    color: var(--hlff-ink) !important;
    letter-spacing: -.02em;
}

.ast-primary-menu-enabled .main-header-menu .menu-item a,
.main-navigation a,
.main-header-menu > .menu-item > a {
    color: var(--hlff-ink-2) !important;
    font-weight: 500;
    letter-spacing: .01em;
    transition: color var(--hlff-dur) var(--hlff-ease);
}

.main-header-menu .menu-item a:hover,
.main-header-menu .current-menu-item > a {
    color: var(--hlff-ink) !important;
}

.main-header-menu .current-menu-item > a {
    background: linear-gradient(180deg, transparent 60%, var(--hlff-red) 60%, var(--hlff-red) 70%, transparent 70%);
}

/* ═══════════════════════════════════════════════════════════
   Hero — "כל העם חזית"
   ═══════════════════════════════════════════════════════════ */
.hlff-hero {
    position: relative;
    padding: clamp(48px, 8vw, 80px) var(--hlff-gutter) clamp(56px, 8vw, 96px);
    overflow: hidden;
    isolation: isolate;
}

.hlff-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 40%, rgba(215, 38, 56, .12), transparent 60%),
                radial-gradient(ellipse at 75% 70%, rgba(255, 255, 255, .04), transparent 55%);
    z-index: -1;
}

.hlff-hero__inner {
    max-width: var(--hlff-max);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: clamp(20px, 3vw, 36px);
}

.hlff-hero__copy {
    max-width: 760px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hlff-hero__kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(215, 38, 56, .14);
    border: 1px solid rgba(215, 38, 56, .35);
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 600;
    color: var(--hlff-red-hi);
    letter-spacing: .04em;
    margin-bottom: 24px;
}

.hlff-hero__kicker::before {
    content: '';
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--hlff-red);
    box-shadow: 0 0 12px var(--hlff-red);
}

.hlff-hero__title {
    font-size: clamp(2.6rem, 8vw, 6rem);
    font-weight: 900;
    line-height: .95;
    letter-spacing: -.03em;
    margin: 0 0 20px;
    background: linear-gradient(180deg, #fff 0%, #d9d9d9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hlff-hero__sub {
    font-size: clamp(1.05rem, 1.8vw, 1.2rem);
    color: var(--hlff-ink-2);
    max-width: 620px;
    margin: 0 0 28px;
    line-height: 1.6;
}

.hlff-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin-bottom: 28px;
    justify-content: center;
    color: var(--hlff-ink-2);
    font-weight: 500;
}

.hlff-hero__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.hlff-hero__meta-item svg {
    width: 18px; height: 18px;
    color: var(--hlff-red-hi);
    flex-shrink: 0;
}

.hlff-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

.hlff-hero__media {
    position: relative;
    width: 100%;
    max-width: var(--hlff-max);
    margin: 0 auto;
    border-radius: var(--hlff-radius-lg);
    overflow: hidden;
    box-shadow: var(--hlff-shadow-lg);
    border: 1px solid var(--hlff-border);
    background: #000;
}

.hlff-hero__media img {
    width: 100%;
    height: auto;
    display: block;
}

/* ═══════════════════════════════════════════════════════════
   Buttons
   ═══════════════════════════════════════════════════════════ */
.hlff-btn,
.wp-block-button__link,
button.wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--hlff-font-sans);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: .01em;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--hlff-dur) var(--hlff-ease);
    text-decoration: none;
    line-height: 1;
}

.hlff-btn--primary,
.wp-block-button:not(.is-style-outline) .wp-block-button__link {
    background: var(--hlff-red);
    color: #fff !important;
    box-shadow: 0 10px 30px -8px rgba(215, 38, 56, .55);
}

.hlff-btn--primary:hover,
.hlff-btn--primary:focus-visible,
.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
    background: var(--hlff-red-hi);
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 14px 36px -8px rgba(215, 38, 56, .75);
}

.hlff-btn--ghost,
.wp-block-button.is-style-outline .wp-block-button__link {
    background: transparent;
    color: var(--hlff-ink) !important;
    border-color: var(--hlff-border-hi) !important;
}

.hlff-btn--ghost:hover,
.wp-block-button.is-style-outline .wp-block-button__link:hover {
    background: var(--hlff-surface);
    border-color: var(--hlff-ink-2) !important;
    color: var(--hlff-ink) !important;
}

/* ═══════════════════════════════════════════════════════════
   Section headings
   ═══════════════════════════════════════════════════════════ */
.hlff-section {
    padding: clamp(56px, 8vw, 100px) var(--hlff-gutter);
    position: relative;
}

.hlff-section--muted {
    background: var(--hlff-bg-2);
}

.hlff-section__inner {
    max-width: var(--hlff-max);
    margin: 0 auto;
}

.hlff-section__header {
    text-align: center;
    margin-bottom: clamp(36px, 6vw, 64px);
}

.hlff-section__eyebrow {
    display: inline-block;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .18em;
    color: var(--hlff-red-hi);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.hlff-section__title {
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 900;
    margin: 0 0 14px;
    letter-spacing: -.025em;
}

.hlff-section__lede {
    color: var(--hlff-ink-2);
    font-size: clamp(1.05rem, 1.6vw, 1.2rem);
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.65;
}

/* ═══════════════════════════════════════════════════════════
   Film cards (home + program)
   ═══════════════════════════════════════════════════════════ */
.hlff-films {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(20px, 3vw, 32px);
}

.hlff-film {
    position: relative;
    background: var(--hlff-surface);
    border: 1px solid var(--hlff-border);
    border-radius: var(--hlff-radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--hlff-dur) var(--hlff-ease),
                border-color var(--hlff-dur) var(--hlff-ease),
                box-shadow var(--hlff-dur) var(--hlff-ease);
}

.hlff-film:hover,
.hlff-film:focus-within {
    transform: translateY(-4px);
    border-color: rgba(215, 38, 56, .55);
    box-shadow: var(--hlff-shadow);
}

.hlff-film__poster {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #000;
}

.hlff-film__poster img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 600ms var(--hlff-ease);
}

.hlff-film:hover .hlff-film__poster img {
    transform: scale(1.04);
}

.hlff-film__badge {
    position: absolute;
    top: 14px; inset-inline-start: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(10, 10, 16, .78);
    backdrop-filter: blur(8px);
    border: 1px solid var(--hlff-border);
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 600;
    color: var(--hlff-ink);
}

.hlff-film__body {
    padding: 22px 22px 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.hlff-film__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.hlff-film__chip {
    padding: 4px 10px;
    background: var(--hlff-surface-hi);
    border: 1px solid var(--hlff-border);
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 500;
    color: var(--hlff-ink-2);
}

.hlff-film__chip--accent {
    color: var(--hlff-red-hi);
    border-color: rgba(215, 38, 56, .4);
    background: rgba(215, 38, 56, .1);
}

.hlff-film__title {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 4px;
    color: var(--hlff-ink);
}

.hlff-film__title-en {
    font-size: .9rem;
    font-weight: 400;
    color: var(--hlff-ink-3);
    margin: 0 0 14px;
    letter-spacing: .01em;
}

.hlff-film__info {
    font-size: .85rem;
    color: var(--hlff-ink-3);
    margin-bottom: 12px;
    line-height: 1.5;
}

.hlff-film__dir {
    font-size: .9rem;
    color: var(--hlff-ink-2);
    margin-bottom: 16px;
    line-height: 1.55;
}

.hlff-film__desc {
    color: var(--hlff-ink-2);
    font-size: .95rem;
    line-height: 1.65;
    margin-bottom: 16px;
    flex-grow: 1;
}

.hlff-film__event {
    margin: auto -22px 18px;
    padding: 16px 22px;
    background: linear-gradient(135deg, rgba(215, 38, 56, .12), rgba(215, 38, 56, .05));
    border-block: 1px solid rgba(215, 38, 56, .25);
    color: var(--hlff-ink-2);
    font-size: .92rem;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-self: stretch;
}

.hlff-film__event-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--hlff-red-hi);
}

.hlff-film__event-label::before {
    content: '';
    width: 22px; height: 2px;
    background: var(--hlff-red);
    border-radius: 2px;
}

.hlff-film__event-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--hlff-ink);
    line-height: 1.35;
}

.hlff-film__event-desc {
    color: var(--hlff-ink-2);
    font-size: .9rem;
    line-height: 1.55;
}

.hlff-film__footer {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════
   Trailer embed (native iframe — not WordPress oEmbed)
   ═══════════════════════════════════════════════════════════ */
.hlff-trailer {
    position: relative;
    aspect-ratio: 16 / 9;
    width: 100%;
    margin: 20px 0;
    border-radius: var(--hlff-radius);
    overflow: hidden;
    border: 1px solid var(--hlff-border);
    background: #000;
    box-shadow: var(--hlff-shadow-sm);
}

.hlff-trailer iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ═══════════════════════════════════════════════════════════
   Program page — detailed schedule
   ═══════════════════════════════════════════════════════════ */
.hlff-program-day {
    margin-bottom: clamp(36px, 6vw, 56px);
    padding: clamp(24px, 4vw, 40px);
    background: var(--hlff-surface);
    border: 1px solid var(--hlff-border);
    border-radius: var(--hlff-radius-lg);
}

.hlff-program-day__header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding-bottom: 18px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--hlff-border);
}

.hlff-program-day__title {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 900;
    margin: 0;
    color: var(--hlff-ink);
}

.hlff-program-day__date {
    font-size: 1rem;
    color: var(--hlff-red-hi);
    font-weight: 700;
    letter-spacing: .02em;
}

.hlff-program-entry {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 24px;
    padding: 24px 0;
    border-bottom: 1px dashed var(--hlff-border);
}

.hlff-program-entry:last-child { border-bottom: none; }

@media (max-width: 720px) {
    .hlff-program-entry { grid-template-columns: 1fr; gap: 12px; }
}

.hlff-program-entry__time {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--hlff-ink);
    line-height: 1;
}

.hlff-program-entry__venue {
    display: block;
    margin-top: 6px;
    font-size: .85rem;
    font-weight: 500;
    color: var(--hlff-ink-3);
}

.hlff-program-entry__title {
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0 0 4px;
    color: var(--hlff-ink);
}

.hlff-program-entry__title-en {
    color: var(--hlff-ink-3);
    font-weight: 400;
    font-size: .95rem;
}

.hlff-program-entry__meta {
    font-size: .85rem;
    color: var(--hlff-ink-3);
    margin: 8px 0 12px;
}

.hlff-program-entry__cast {
    color: var(--hlff-ink-2);
    margin-bottom: 12px;
    font-size: .95rem;
}

.hlff-program-entry__desc {
    color: var(--hlff-ink-2);
    line-height: 1.7;
    margin-bottom: 16px;
}

.hlff-program-entry__note {
    padding: 12px 16px;
    background: rgba(215, 38, 56, .07);
    border-inline-start: 3px solid var(--hlff-red);
    border-radius: var(--hlff-radius-sm);
    font-size: .9rem;
    color: var(--hlff-ink-2);
    margin-bottom: 16px;
}

.hlff-program-entry__poster-lg {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 20px;
    align-items: start;
    margin-bottom: 14px;
}

@media (max-width: 600px) {
    .hlff-program-entry__poster-lg { grid-template-columns: 1fr; }
    .hlff-program-entry__poster-lg img { max-width: 180px; }
}

.hlff-program-entry__poster-lg img {
    width: 100%;
    border-radius: var(--hlff-radius);
    border: 1px solid var(--hlff-border);
    box-shadow: var(--hlff-shadow-sm);
}

/* ═══════════════════════════════════════════════════════════
   YouTube embeds
   ═══════════════════════════════════════════════════════════ */
.wp-block-embed.is-type-video,
.wp-block-embed-youtube {
    margin: 16px 0;
    border-radius: var(--hlff-radius);
    overflow: hidden;
    border: 1px solid var(--hlff-border);
    background: #000;
    box-shadow: var(--hlff-shadow-sm);
}

.wp-block-embed__wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.wp-block-embed__wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ═══════════════════════════════════════════════════════════
   About / manifesto
   ═══════════════════════════════════════════════════════════ */
.hlff-manifesto {
    max-width: 760px;
    margin: 0 auto;
    font-size: clamp(1.05rem, 1.6vw, 1.15rem);
    line-height: 1.8;
    color: var(--hlff-ink-2);
}

.hlff-manifesto p { margin-bottom: 1.4em; }

.hlff-manifesto p:first-of-type::first-letter {
    font-size: 3.4em;
    font-weight: 900;
    float: right;
    line-height: .9;
    margin: 4px 0 0 12px;
    color: var(--hlff-red);
    font-family: var(--hlff-font-display);
}

.hlff-pullquote {
    max-width: 760px;
    margin: 56px auto;
    padding: 32px;
    background: var(--hlff-surface);
    border-inline-start: 4px solid var(--hlff-red);
    border-radius: var(--hlff-radius);
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--hlff-ink);
    font-style: italic;
}

.hlff-pullquote cite {
    display: block;
    margin-top: 12px;
    font-size: .9rem;
    font-style: normal;
    color: var(--hlff-ink-3);
}

/* ═══════════════════════════════════════════════════════════
   Team grid
   ═══════════════════════════════════════════════════════════ */
.hlff-team {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    max-width: 960px;
    margin: 0 auto;
}

.hlff-team__member {
    padding: 22px;
    background: var(--hlff-surface);
    border: 1px solid var(--hlff-border);
    border-radius: var(--hlff-radius);
}

.hlff-team__role {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--hlff-red-hi);
    margin: 0 0 6px;
}

.hlff-team__name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--hlff-ink);
    margin: 0;
}

/* ═══════════════════════════════════════════════════════════
   Tickets / practical info
   ═══════════════════════════════════════════════════════════ */
.hlff-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.hlff-info__card {
    padding: 28px;
    background: var(--hlff-surface);
    border: 1px solid var(--hlff-border);
    border-radius: var(--hlff-radius-lg);
}

.hlff-info__card-icon {
    width: 44px; height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(215, 38, 56, .12);
    border-radius: 12px;
    color: var(--hlff-red-hi);
    margin-bottom: 18px;
}

.hlff-info__card-icon svg { width: 22px; height: 22px; }

.hlff-info__card h3 {
    font-size: 1.15rem;
    margin: 0 0 10px;
}

.hlff-info__card p {
    color: var(--hlff-ink-2);
    margin: 0 0 6px;
    font-size: .95rem;
    line-height: 1.6;
}

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

.hlff-price-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--hlff-surface);
    border: 1px solid var(--hlff-border);
    border-radius: var(--hlff-radius);
    overflow: hidden;
}

.hlff-price-table th,
.hlff-price-table td {
    padding: 16px 20px;
    text-align: start;
    border-bottom: 1px solid var(--hlff-border);
}

.hlff-price-table tr:last-child th,
.hlff-price-table tr:last-child td { border-bottom: none; }

.hlff-price-table th {
    font-weight: 500;
    color: var(--hlff-ink-2);
    background: var(--hlff-bg-2);
}

.hlff-price-table td {
    font-weight: 700;
    color: var(--hlff-red-hi);
    text-align: end;
}

/* ═══════════════════════════════════════════════════════════
   Archive cards (for old festivals)
   ═══════════════════════════════════════════════════════════ */
.hlff-archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.hlff-archive-card {
    display: flex;
    flex-direction: column;
    padding: 24px;
    background: var(--hlff-surface);
    border: 1px solid var(--hlff-border);
    border-radius: var(--hlff-radius);
    transition: all var(--hlff-dur) var(--hlff-ease);
    text-decoration: none;
    color: inherit;
}

.hlff-archive-card:hover {
    border-color: var(--hlff-red);
    transform: translateY(-2px);
    box-shadow: var(--hlff-shadow-sm);
}

.hlff-archive-card__num {
    font-family: var(--hlff-font-display);
    font-size: 2.4rem;
    font-weight: 900;
    line-height: 1;
    color: var(--hlff-red-hi);
    margin-bottom: 6px;
    letter-spacing: -.03em;
}

.hlff-archive-card__year {
    font-size: .9rem;
    color: var(--hlff-ink-3);
    margin-bottom: 4px;
    letter-spacing: .04em;
}

.hlff-archive-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--hlff-ink);
    line-height: 1.35;
}

/* ═══════════════════════════════════════════════════════════
   Footer
   ═══════════════════════════════════════════════════════════ */
.site-footer,
footer.site-footer,
.footer-sml-layout-1,
.site-footer-wrap {
    background: #050509 !important;
    color: var(--hlff-ink-2) !important;
    border-top: 1px solid var(--hlff-border);
    padding-block: 36px !important;
}

.site-footer a { color: var(--hlff-ink-2); }
.site-footer a:hover { color: var(--hlff-red-hi); }

/* ═══════════════════════════════════════════════════════════
   Gutenberg content overrides (for block-rendered pages)
   ═══════════════════════════════════════════════════════════ */
.entry-content {
    color: var(--hlff-ink);
    font-size: 1.05rem;
    line-height: 1.75;
}

.entry-content h1,
.entry-content h2,
.entry-content h3 { margin-block: 1.4em .5em; }

.entry-content h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
.entry-content h3 { font-size: clamp(1.3rem, 2.5vw, 1.7rem); color: var(--hlff-red-hi); }
.entry-content h4 { font-size: 1.2rem; }

.entry-content hr,
.wp-block-separator {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--hlff-border) 20%, var(--hlff-border) 80%, transparent);
    margin-block: 2.6em;
}

.wp-block-separator.is-style-wide {
    max-width: 100%;
}

.wp-block-quote,
blockquote.wp-block-quote {
    border-inline-start: 4px solid var(--hlff-red);
    background: var(--hlff-surface);
    margin: 32px 0;
    padding: 20px 24px;
    border-radius: 0 var(--hlff-radius) var(--hlff-radius) 0;
    color: var(--hlff-ink);
    font-style: normal;
}

.wp-block-table table {
    background: var(--hlff-surface);
    border: 1px solid var(--hlff-border);
    border-radius: var(--hlff-radius);
    overflow: hidden;
}

.wp-block-table td,
.wp-block-table th {
    border-color: var(--hlff-border) !important;
    color: var(--hlff-ink);
    padding: 14px 18px !important;
}

.wp-block-table th { background: var(--hlff-bg-2); font-weight: 700; }

.wp-block-columns { gap: clamp(16px, 3vw, 32px); }

/* Legacy "film-entry" block used by build-pages.php */
.wp-block-group.film-entry {
    background: var(--hlff-surface) !important;
    border: 1px solid var(--hlff-border) !important;
    border-inline-start: 4px solid var(--hlff-red) !important;
    border-radius: var(--hlff-radius) !important;
    padding: 22px 26px !important;
    margin-block: 18px !important;
}

.wp-block-group.film-entry h4 {
    color: var(--hlff-ink) !important;
    margin-top: 0 !important;
}

/* ═══════════════════════════════════════════════════════════
   Utility + animation
   ═══════════════════════════════════════════════════════════ */
.hlff-center { text-align: center; }
.hlff-reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 700ms var(--hlff-ease), transform 700ms var(--hlff-ease);
}
.hlff-reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
    .hlff-reveal { opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
}

/* ═══════════════════════════════════════════════════════════
   Mobile sticky CTA
   ═══════════════════════════════════════════════════════════ */
.hlff-mobile-cta {
    display: none;
}

@media (max-width: 720px) {
    .hlff-mobile-cta {
        position: fixed;
        bottom: 16px;
        inset-inline: 16px;
        z-index: 999;
        display: flex;
        gap: 10px;
        padding: 10px;
        background: rgba(10, 10, 16, .92);
        backdrop-filter: blur(14px);
        border: 1px solid var(--hlff-border-hi);
        border-radius: 999px;
        box-shadow: var(--hlff-shadow-lg);
    }
    .hlff-mobile-cta .hlff-btn { flex: 1; padding: 12px 14px; font-size: .9rem; }
}

/* ═══════════════════════════════════════════════════════════
   RTL corrections
   ═══════════════════════════════════════════════════════════ */
[dir="rtl"] .hlff-hero__media { margin-inline-end: auto; margin-inline-start: 0; }

/* ═══════════════════════════════════════════════════════════
   Print
   ═══════════════════════════════════════════════════════════ */
@media print {
    body::before, .hlff-mobile-cta, .site-header, .site-footer { display: none !important; }
    body { background: #fff; color: #111; }
    .hlff-hero, .hlff-section, .hlff-film, .hlff-program-day { background: #fff !important; color: #111 !important; border-color: #ddd !important; }
}
