/*
 * Healthy Empire Events — production frontend styles.
 * All component selectors are scoped to .he-events. Site-level body classes are
 * used only for page-title and campaign coordination.
 */

.he-events,
.he-events * {
    box-sizing: border-box;
}

.he-events {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overflow-x: clip;
    overflow-y: visible;
    background: var(--he-bg, #fff5f2);
    color: var(--he-text, #0d0d0f);
    font-family: var(--he-body-font, inherit);
    font-size: var(--he-body-desktop, 18px);
    line-height: 1.58;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    isolation: isolate;
}

.he-events img,
.he-events video,
.he-events iframe {
    display: block;
    max-width: 100%;
}

.he-events img {
    width: 100%;
    height: auto;
}

.he-events a {
    color: inherit;
    text-decoration: none;
}

.he-events button,
.he-events input,
.he-events select,
.he-events textarea {
    font: inherit;
}

.he-events button,
.he-events a,
.he-events input,
.he-events select,
.he-events textarea,
.he-events summary {
    outline-offset: 4px;
}

.he-events :focus-visible {
    outline: 2px solid var(--he-accent, #fc441a);
    outline-offset: 4px;
}

.he-events h1,
.he-events h2,
.he-events h3,
.he-events h4,
.he-events p,
.he-events figure,
.he-events ol,
.he-events ul,
.he-events fieldset {
    margin-top: 0;
}

.he-events h1,
.he-events h2,
.he-events h3,
.he-events h4 {
    color: var(--he-text, #0d0d0f);
    font-family: var(--he-heading-font, inherit);
    font-weight: 700;
    letter-spacing: -0.045em;
    text-wrap: balance;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

.he-events h1 {
    line-height: 0.92;
}

.he-events h2 {
    line-height: 0.98;
}

.he-events h3,
.he-events h4 {
    line-height: 1.08;
}

.he-events .he-container {
    width: min(100%, calc(var(--he-wide, 1200px) + (2 * var(--he-side-desktop, 32px))));
    margin-inline: auto;
    padding-inline: var(--he-side-desktop, 32px);
}

.he-events .he-section,
.he-events .he-event-section {
    position: relative;
    padding-block: var(--he-section-desktop, 56px);
}

.he-events .he-eyebrow {
    margin: 0 0 14px;
    color: var(--he-accent, #fc441a);
    font-family: var(--he-accent-font, var(--he-heading-font, inherit));
    font-size: 11px !important;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.he-events .he-section-header {
    display: grid;
    gap: 0;
    width: min(100%, 820px);
    margin-bottom: clamp(28px, 4vw, 48px);
}

.he-events .he-section-title {
    max-width: 14ch;
    margin: 0;
    font-size: var(--he-section-title-desktop, 58px);
}

.he-events .he-richtext {
    width: min(100%, var(--he-content, 760px));
    color: var(--he-text, #0d0d0f);
    font-size: inherit;
    line-height: 1.72;
}

.he-events .he-richtext > *:first-child {
    margin-top: 0;
}

.he-events .he-richtext > *:last-child,
.he-events .he-card-copy > *:last-child {
    margin-bottom: 0;
}

.he-events .he-richtext a,
.he-events .he-card-copy a,
.he-events .he-event-faq a {
    color: var(--he-accent, #fc441a);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.he-events .he-text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 0;
    border-bottom: 1px solid currentColor;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.he-events .he-button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 20px;
    border: 1px solid var(--he-line, rgba(13, 13, 15, 0.14));
    border-radius: var(--he-button-radius, 0);
    background: transparent;
    color: var(--he-text, #0d0d0f);
    font-size: 12px !important;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 0.045em;
    text-align: center;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.22s ease, color 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.he-events .he-button svg,
.he-events .he-arrow {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    transition: transform 0.22s ease;
}

.he-events .he-button:hover svg,
.he-events a:hover .he-event-card__arrow svg {
    transform: translateX(4px);
}

.he-events .he-button--primary {
    border-color: var(--he-primary-bg, #0d0d0f);
    background: var(--he-primary-bg, #0d0d0f);
    color: var(--he-primary-text, #fff5f2);
}

.he-events .he-button--primary:hover,
.he-events .he-button--primary:focus-visible {
    border-color: var(--he-primary-hover-bg, #fc441a);
    background: var(--he-primary-hover-bg, #fc441a);
    color: var(--he-primary-hover-text, #fff);
}

.he-events .he-button--secondary {
    background: var(--he-surface, #fff);
}

.he-events .he-button--secondary:hover,
.he-events .he-button--secondary:focus-visible {
    border-color: var(--he-text, #0d0d0f);
    background: var(--he-text, #0d0d0f);
    color: var(--he-bg, #fff5f2);
}

.he-events .he-button--disabled,
.he-events button:disabled {
    opacity: 0.52;
    cursor: not-allowed;
    transform: none !important;
}

.he-events .he-event-badge {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(13, 13, 15, 0.84);
    color: #fff;
    font-size: 10px !important;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.075em;
    text-transform: uppercase;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

/* WordPress/Elementor archive title suppression safety net. */
body.he-events-archive-active .entry-title,
body.he-events-archive-active .page-header,
body.he-events-archive-active .wp-block-post-title,
body.he-events-archive-active .elementor-widget-theme-post-title {
    display: none !important;
}

/* Preview status: deliberately inline so it can never sit behind the fixed site header. */
.he-events .he-event-preview-status {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    align-items: center;
    align-self: flex-start;
    gap: 8px;
    margin: 0 0 14px;
    padding: 7px 10px;
    border: 1px solid rgba(13, 13, 15, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--he-muted, #5f5b58);
    font-size: 10px;
    font-weight: 650;
    line-height: 1.25;
}

.he-events .he-event-preview-status strong {
    color: var(--he-accent, #fc441a);
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Archive
   -------------------------------------------------------------------------- */

.he-events-archive {
    min-height: 58vh;
    padding-block: clamp(64px, 8vw, 110px);
}

.he-events-archive__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
    column-gap: clamp(32px, 8vw, 108px);
    row-gap: 14px;
    align-items: end;
    margin-bottom: clamp(36px, 6vw, 68px);
}

.he-events-archive__header .he-eyebrow {
    grid-column: 1 / -1;
    margin-bottom: 0;
}

.he-events-archive__heading h1 {
    max-width: 9ch;
    margin: 0;
    font-size: var(--he-archive-title-desktop, 76px);
    line-height: 0.9;
}

.he-events-archive__intro {
    max-width: 34rem;
    margin: 0 0 4px;
    color: var(--he-muted, #5f5b58);
    font-size: 17px;
    line-height: 1.62;
}

.he-events-filters {
    margin-bottom: 28px;
    border-top: 1px solid var(--he-line, rgba(13, 13, 15, 0.14));
    border-bottom: 1px solid var(--he-line, rgba(13, 13, 15, 0.14));
}

.he-events-filters__primary {
    display: flex;
    min-height: 68px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.he-events-filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.he-events-filter-group a {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    padding: 10px 14px;
    border: 1px solid transparent;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: 0.2s ease;
}

.he-events-filter-group a:hover,
.he-events-filter-group a.is-active {
    border-color: var(--he-text, #0d0d0f);
    background: var(--he-text, #0d0d0f);
    color: var(--he-bg, #fff5f2);
}

.he-events-filter-toggle {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border: 0;
    background: transparent;
    color: var(--he-text, #0d0d0f);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
}

.he-events-filter-toggle span {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 1px solid var(--he-line, rgba(13, 13, 15, 0.14));
    font-size: 16px;
    transition: transform 0.2s ease;
}

.he-events-filter-toggle[aria-expanded="true"] span {
    transform: rotate(45deg);
}

.he-events-filters__advanced {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
    gap: 14px;
    align-items: end;
    padding: 0 0 20px;
}

.he-events-filters__advanced[hidden] {
    display: none !important;
}

.he-events-filters label {
    display: grid;
    gap: 7px;
    min-width: 0;
    margin: 0;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.he-events-filters select {
    width: 100%;
    min-height: 46px;
    padding: 9px 36px 9px 12px;
    border: 1px solid var(--he-line, rgba(13, 13, 15, 0.14));
    border-radius: var(--he-button-radius, 0);
    background-color: var(--he-surface, #fff);
    color: var(--he-text, #0d0d0f);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: normal;
    text-transform: none;
}

.he-events-filter-reset {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 10px 4px;
    border-bottom: 1px solid currentColor;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.he-events-summary {
    margin: 0 0 14px;
    color: var(--he-muted, #5f5b58);
    font-size: 12px !important;
}

.he-events-live {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
}

.he-events-grid {
    display: grid;
    grid-template-columns: repeat(var(--he-columns, 3), minmax(0, 1fr));
    gap: var(--he-card-gap, 24px);
    container-type: inline-size;
}

.he-event-card {
    min-width: 0;
}

.he-event-card > a {
    display: flex;
    height: 100%;
    min-height: 100%;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--he-line, rgba(13, 13, 15, 0.14));
    border-radius: var(--he-radius, 18px);
    background: var(--he-surface, #fff);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.he-event-card > a:hover {
    transform: translateY(-5px);
    border-color: rgba(13, 13, 15, 0.3);
    box-shadow: 0 20px 46px rgba(13, 13, 15, 0.08);
}

.he-event-card__media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--he-text, #0d0d0f);
}

.he-event-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.he-event-card > a:hover .he-event-card__media img {
    transform: scale(1.035);
}

.he-event-card__placeholder {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background:
        radial-gradient(circle at 72% 22%, rgba(252, 68, 26, 0.96), transparent 36%),
        linear-gradient(145deg, #1b1b1e 0%, #0d0d0f 70%);
    color: #fff;
    font-family: var(--he-heading-font, inherit);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.he-event-card__placeholder > span {
    font-size: clamp(58px, 8vw, 88px);
    line-height: 0.8;
    letter-spacing: -0.075em;
}

.he-event-card__type,
.he-event-card__status {
    position: absolute;
    top: 14px;
}

.he-event-card__type {
    left: 14px;
}

.he-event-card__status {
    right: 14px;
    border-color: transparent;
    background: var(--he-accent, #fc441a);
}

.he-event-card__body {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 18px;
    flex: 1;
    padding: clamp(20px, 2.3vw, 28px);
}

.he-event-card__date {
    display: flex;
    min-height: 64px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--he-line, rgba(13, 13, 15, 0.14));
    border-radius: var(--he-small-radius, 14px);
}

.he-event-card__date strong {
    font-family: var(--he-heading-font, inherit);
    font-size: 27px;
    line-height: 1;
    letter-spacing: -0.05em;
}

.he-event-card__date span {
    margin-top: 4px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.he-event-card__copy {
    min-width: 0;
}

.he-event-card__title {
    margin: 0 0 6px;
    font-size: var(--he-card-title-desktop, 30px);
    overflow-wrap: normal;
    word-break: normal;
}

.he-event-card__copy p {
    margin: 0;
    color: var(--he-muted, #5f5b58);
    font-size: 15px;
}

.he-event-card__meta {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 12px;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--he-line, rgba(13, 13, 15, 0.14));
    color: var(--he-muted, #5f5b58);
    font-size: 12px !important;
}

.he-event-card__arrow {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid var(--he-line, rgba(13, 13, 15, 0.14));
    border-radius: var(--he-button-radius, 0);
    color: var(--he-text, #0d0d0f);
}

.he-events-empty {
    grid-column: 1 / -1;
    display: grid;
    min-height: 230px;
    place-items: center;
    align-content: center;
    gap: 10px;
    padding: 38px clamp(22px, 6vw, 64px);
    border: 1px solid var(--he-line, rgba(13, 13, 15, 0.14));
    border-radius: var(--he-radius, 18px);
    background: var(--he-surface, #fff);
    text-align: center;
}

.he-events-empty .he-eyebrow {
    margin: 0;
}

.he-events-empty h2 {
    max-width: 18ch;
    margin: 0 auto;
    font-size: clamp(32px, 4vw, 48px);
}

.he-events-empty p {
    max-width: 42rem;
    margin: 0;
    color: var(--he-muted, #5f5b58);
}

.he-events-empty .he-button {
    margin-top: 10px;
}

.he-events-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-top: clamp(28px, 5vw, 52px);
}

.he-events-pagination .page-numbers {
    display: grid;
    min-width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--he-line, rgba(13, 13, 15, 0.14));
    background: var(--he-surface, #fff);
    font-size: 12px;
    font-weight: 700;
}

.he-events-pagination .current,
.he-events-pagination .page-numbers:hover {
    background: var(--he-text, #0d0d0f);
    color: var(--he-bg, #fff5f2);
}

.he-events [aria-busy="true"] {
    opacity: 0.58;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

/* --------------------------------------------------------------------------
   Single event
   -------------------------------------------------------------------------- */

.he-event-single {
    padding-bottom: 80px;
}

.he-event-hero {
    padding-top: max(clamp(92px, 10vw, 142px), calc(var(--he-site-header-offset, 96px) + 36px));
    padding-bottom: clamp(48px, 7vw, 82px);
    background: var(--he-bg, #fff5f2);
}

.he-event-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.72fr);
    gap: clamp(38px, 7vw, 88px);
    align-items: center;
    container-type: inline-size;
}

.he-event-hero__content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
}

.he-event-hero h1 {
    max-width: 12ch;
    margin: 0;
    font-size: min(var(--he-event-title-desktop, 92px), 8cqw);
    line-height: 0.9;
    overflow-wrap: normal;
    word-break: normal;
}

.he-event-hero__lead {
    max-width: 28rem;
    margin: 18px 0 0;
    color: var(--he-muted, #5f5b58);
    font-size: clamp(22px, 2.2vw, 32px);
    font-weight: 500;
    line-height: 1.18;
    letter-spacing: -0.025em;
}

.he-event-hero__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    margin: 28px 0 0;
    padding: 16px 0;
    border-top: 1px solid var(--he-line, rgba(13, 13, 15, 0.14));
    border-bottom: 1px solid var(--he-line, rgba(13, 13, 15, 0.14));
    color: var(--he-muted, #5f5b58);
    font-size: 12px !important;
}

.he-event-hero__facts span {
    position: relative;
}

.he-event-hero__facts span:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -12px;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--he-accent, #fc441a);
}

.he-event-hero__facts strong {
    color: var(--he-text, #0d0d0f);
}

.he-event-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    align-items: center;
    margin-top: 20px;
}

.he-event-hero__media {
    position: relative;
    width: 100%;
    min-height: 0;
    margin: 0;
    overflow: hidden;
    border-radius: var(--he-radius, 18px);
    background: var(--he-text, #0d0d0f);
    aspect-ratio: 4 / 5;
}

.he-event-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.he-event-hero__placeholder {
    display: flex;
    width: 100%;
    height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background:
        radial-gradient(circle at 72% 24%, rgba(252, 68, 26, 0.96), transparent 34%),
        radial-gradient(circle at 12% 78%, rgba(252, 68, 26, 0.42), transparent 28%),
        #0d0d0f;
    color: #fff;
    font-family: var(--he-heading-font, inherit);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-align: center;
    text-transform: uppercase;
}

.he-event-hero__day {
    font-size: clamp(92px, 13vw, 170px);
    line-height: 0.78;
    letter-spacing: -0.08em;
}

.he-event-hero__month {
    font-size: 15px;
}

.he-event-hero__year {
    color: rgba(255, 255, 255, 0.66);
    font-size: 12px;
}

.he-event-quickfacts {
    border-top: 1px solid var(--he-line, rgba(13, 13, 15, 0.14));
    border-bottom: 1px solid var(--he-line, rgba(13, 13, 15, 0.14));
    background: var(--he-surface, #fff);
}

.he-event-quickfacts__grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.he-event-quickfacts__grid > div {
    min-width: 0;
    padding: 18px clamp(12px, 2vw, 24px);
    border-right: 1px solid var(--he-line, rgba(13, 13, 15, 0.14));
}

.he-event-quickfacts__grid > div:first-child {
    padding-left: 0;
}

.he-event-quickfacts__grid > div:last-child {
    padding-right: 0;
    border-right: 0;
}

.he-event-quickfacts span {
    display: block;
    margin-bottom: 5px;
    color: var(--he-muted, #5f5b58);
    font-size: 9px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.he-event-quickfacts strong {
    display: block;
    font-size: 14px;
    line-height: 1.38;
    overflow-wrap: anywhere;
}

.he-event-intro__grid {
    --he-event-intro-gap: clamp(36px, 5vw, 72px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(400px, var(--he-registration-column, 46%));
    gap: var(--he-event-intro-gap);
    align-items: start;
}

.he-event-copy {
    min-width: 0;
    padding-top: 8px;
}

.he-event-copy .he-richtext {
    font-size: clamp(18px, 1.5vw, 21px);
}

.he-event-registration {
    position: relative;
    min-width: 0;
    scroll-margin-top: calc(var(--he-site-header-offset, 96px) + 28px);
}

.he-registration-card {
    position: sticky;
    top: calc(var(--he-site-header-offset, 96px) + 24px);
    overflow: hidden;
    border: 1px solid var(--he-line, rgba(13, 13, 15, 0.14));
    border-radius: var(--he-radius, 18px);
    background: var(--he-surface, #fff);
    box-shadow: 0 18px 46px rgba(13, 13, 15, 0.06);
}

.admin-bar .he-registration-card {
    top: calc(var(--he-site-header-offset, 96px) + 56px);
}

.he-registration-card__header,
.he-registration-card--state,
.he-registration-card--external {
    padding: clamp(24px, 3vw, 34px);
}

.he-registration-card__header {
    border-bottom: 1px solid var(--he-line, rgba(13, 13, 15, 0.14));
}

.he-registration-card h2 {
    max-width: 11ch;
    margin: 0 0 10px;
    font-size: clamp(38px, 4.2vw, 58px);
    line-height: 0.94;
}

.he-registration-card p {
    margin-bottom: 0;
    color: var(--he-muted, #5f5b58);
    font-size: 15px;
}

.he-registration-card--state .he-button,
.he-registration-card--external .he-button {
    margin-top: 22px;
}

.he-availability {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 16px !important;
    color: var(--he-text, #0d0d0f) !important;
    font-size: 12px !important;
    font-weight: 700;
}

.he-availability > span:first-child {
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #38a169;
    box-shadow: 0 0 0 4px rgba(56, 161, 105, 0.12);
}

.he-registration-card.is-preview {
    border-style: dashed;
}

.he-preview-note {
    margin-top: 14px !important;
    padding: 12px;
    border: 1px solid rgba(252, 68, 26, 0.28);
    background: rgba(252, 68, 26, 0.06);
    color: var(--he-text, #0d0d0f) !important;
}

.he-registration-form {
    padding: clamp(22px, 3vw, 32px);
}

.he-registration-form__fieldset,
.he-ticket-options {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.he-registration-form__fieldset[disabled] {
    opacity: 0.58;
}

.he-ticket-options {
    display: grid;
    gap: 8px;
    margin-bottom: 22px;
}

.he-ticket-options > legend {
    margin-bottom: 9px;
    padding: 0;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.he-ticket-option {
    position: relative;
    display: block;
    margin: 0;
    cursor: pointer;
}

.he-ticket-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.he-ticket-option__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 3px 12px;
    padding: 14px;
    border: 1px solid var(--he-line, rgba(13, 13, 15, 0.14));
    border-radius: var(--he-small-radius, 14px);
    background: var(--he-bg, #fff5f2);
    transition: border-color 0.18s ease, background-color 0.18s ease;
}

.he-ticket-option input:checked + .he-ticket-option__body {
    border-color: var(--he-text, #0d0d0f);
    background: var(--he-surface, #fff);
    box-shadow: inset 0 0 0 1px var(--he-text, #0d0d0f);
}

.he-ticket-option input:focus-visible + .he-ticket-option__body {
    outline: 2px solid var(--he-accent, #fc441a);
    outline-offset: 3px;
}

.he-ticket-option__body strong,
.he-ticket-option__body em {
    font-size: 14px;
    font-style: normal;
}

.he-ticket-option__body em {
    font-weight: 800;
}

.he-ticket-option__body small {
    grid-column: 1 / -1;
    color: var(--he-muted, #5f5b58);
    font-size: 11px;
}

.he-ticket-option.is-sold-out .he-ticket-option__body {
    opacity: 0.55;
}

.he-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 12px;
}

.he-field {
    display: grid;
    min-width: 0;
    gap: 7px;
    margin: 0;
}

.he-field--wide {
    grid-column: 1 / -1;
}

.he-field > span {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.he-field em {
    color: var(--he-accent, #fc441a);
    font-style: normal;
}

.he-field input,
.he-field select,
.he-field textarea {
    width: 100%;
    min-height: 48px;
    padding: 10px 12px;
    border: 1px solid var(--he-line, rgba(13, 13, 15, 0.14));
    border-radius: var(--he-small-radius, 14px);
    background: #fff;
    color: var(--he-text, #0d0d0f);
    font-size: 15px;
    line-height: 1.35;
}

.he-field textarea {
    min-height: 112px;
    resize: vertical;
}

.he-field input:focus,
.he-field select:focus,
.he-field textarea:focus {
    border-color: var(--he-text, #0d0d0f);
}

.he-checkbox {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    margin: 18px 0 0;
    color: var(--he-muted, #5f5b58);
    font-size: 12px;
    line-height: 1.5;
}

.he-checkbox input {
    width: 18px;
    height: 18px;
    margin: 1px 0 0;
    accent-color: var(--he-accent, #fc441a);
}

.he-checkbox a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.he-registration-form > fieldset > .he-button {
    width: 100%;
    margin-top: 22px;
}

.he-form-status {
    min-height: 0;
    margin: 14px 0 0;
    padding: 0;
    font-size: 13px;
    font-weight: 700;
}

.he-form-status.is-success,
.he-form-status.is-error {
    padding: 12px;
    border: 1px solid currentColor;
}

.he-form-status.is-success {
    color: #237a44;
    background: rgba(35, 122, 68, 0.06);
}

.he-form-status.is-error {
    color: #a32222;
    background: rgba(163, 34, 34, 0.06);
}

.he-registration-card__note {
    margin-top: 16px !important;
    font-size: 11px !important;
    line-height: 1.5;
}

.he-form-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* Content sections */
.he-event-pillars,
.he-event-agenda,
.he-event-faq {
    background: color-mix(in srgb, var(--he-surface, #fff) 48%, var(--he-bg, #fff5f2));
}

.he-event-pillars__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--he-card-gap, 24px);
    container-type: inline-size;
}

.he-event-pillars__grid > article {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: clamp(24px, 3vw, 36px);
    border: 1px solid var(--he-line, rgba(13, 13, 15, 0.14));
    border-radius: var(--he-radius, 18px);
    background: var(--he-surface, #fff);
}

.he-card-index {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    margin-bottom: clamp(30px, 5vw, 56px);
    border: 1px solid var(--he-line, rgba(13, 13, 15, 0.14));
    border-radius: var(--he-small-radius, 14px);
    font-size: 11px;
    font-weight: 800;
}

.he-event-pillars h3 {
    max-width: 12ch;
    margin: 0 0 18px;
    font-size: var(--he-card-title-desktop, 30px);
}

.he-card-copy {
    color: var(--he-muted, #5f5b58);
    font-size: 16px;
    line-height: 1.62;
}

.he-card-person {
    display: block;
    margin-top: auto;
    padding-top: 24px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.055em;
}

.he-event-speakers__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--he-card-gap, 24px);
}

.he-event-speakers__grid.he-count-1 {
    grid-template-columns: minmax(0, 420px);
}

.he-event-speakers__grid.he-count-2 {
    grid-template-columns: repeat(2, minmax(0, 460px));
}

.he-speaker-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--he-line, rgba(13, 13, 15, 0.14));
    border-radius: var(--he-radius, 18px);
    background: var(--he-surface, #fff);
}

.he-speaker-card__media {
    display: grid;
    aspect-ratio: 4 / 5;
    place-items: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 70% 20%, rgba(252, 68, 26, 0.94), transparent 38%),
        linear-gradient(145deg, #26130e, #0d0d0f 76%);
}

.he-speaker-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.he-speaker-card__initials {
    color: #fff;
    font-family: var(--he-heading-font, inherit);
    font-size: clamp(52px, 8vw, 86px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.07em;
}

.he-speaker-card__body {
    padding: 22px;
}

.he-speaker-card h3 {
    margin: 0 0 6px;
    font-size: var(--he-card-title-desktop, 30px);
}

.he-speaker-card__role {
    margin: 0;
    color: var(--he-muted, #5f5b58);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.45;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.he-event-agenda ol,
.he-event-expectations ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

.he-event-agenda ol {
    border-top: 1px solid var(--he-line, rgba(13, 13, 15, 0.14));
}

.he-event-agenda li {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: clamp(22px, 5vw, 72px);
    padding: 26px 0;
    border-bottom: 1px solid var(--he-line, rgba(13, 13, 15, 0.14));
}

.he-event-agenda time {
    color: var(--he-accent, #fc441a);
    font-family: var(--he-heading-font, inherit);
    font-size: 16px;
    font-weight: 800;
}

.he-event-agenda h3 {
    margin: 0 0 8px;
    font-size: var(--he-card-title-desktop, 30px);
}

.he-agenda-speaker {
    margin: 0 0 12px;
    color: var(--he-muted, #5f5b58);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.he-event-expectations__inner,
.he-event-faq__inner {
    display: grid;
    grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1fr);
    gap: clamp(40px, 8vw, 110px);
    align-items: start;
}

.he-event-expectations .he-section-header,
.he-event-faq .he-section-header {
    position: sticky;
    top: calc(var(--he-site-header-offset, 96px) + 24px);
    width: auto;
    margin: 0;
}

.admin-bar .he-event-expectations .he-section-header,
.admin-bar .he-event-faq .he-section-header {
    top: calc(var(--he-site-header-offset, 96px) + 56px);
}

.he-event-expectations ol {
    border-top: 1px solid var(--he-line, rgba(13, 13, 15, 0.14));
}

.he-event-expectations li {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 14px;
    padding: 22px 0;
    border-bottom: 1px solid var(--he-line, rgba(13, 13, 15, 0.14));
}

.he-event-expectations li > span {
    color: var(--he-accent, #fc441a);
    font-size: 10px;
    font-weight: 800;
}

.he-event-expectations li p {
    margin: 0;
    font-size: 17px;
    line-height: 1.55;
}

.he-event-faq__list {
    border-top: 1px solid var(--he-line, rgba(13, 13, 15, 0.14));
}

.he-event-faq details {
    border-bottom: 1px solid var(--he-line, rgba(13, 13, 15, 0.14));
}

.he-event-faq summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 32px;
    gap: 18px;
    align-items: center;
    padding: 22px 0;
    cursor: pointer;
    font-family: var(--he-heading-font, inherit);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    list-style: none;
}

.he-event-faq summary::-webkit-details-marker {
    display: none;
}

.he-event-faq summary span {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 1px solid var(--he-line, rgba(13, 13, 15, 0.14));
    transition: transform 0.2s ease;
}

.he-event-faq details[open] summary span {
    transform: rotate(45deg);
}

.he-event-faq details > div {
    max-width: 44rem;
    padding: 0 50px 22px 0;
    color: var(--he-muted, #5f5b58);
}

.he-event-mobile-bar {
    display: none;
}

/* Route pages and public dashboard */
.he-event-route,
.he-events-public-dashboard,
.he-events-registration-embed {
    min-height: 60vh;
    padding-block: clamp(90px, 10vw, 140px);
}

.he-route-card {
    width: min(100%, 760px);
    margin-inline: auto;
    padding: clamp(28px, 5vw, 58px);
    border: 1px solid var(--he-line, rgba(13, 13, 15, 0.14));
    border-radius: var(--he-radius, 18px);
    background: var(--he-surface, #fff);
}

.he-route-card h1 {
    max-width: 14ch;
    margin: 0 0 22px;
    font-size: clamp(42px, 7vw, 76px);
}

.he-route-card p {
    color: var(--he-muted, #5f5b58);
}

.he-route-card .he-button {
    margin-top: 18px;
    margin-right: 8px;
}

.he-route-status {
    display: grid;
    grid-template-columns: minmax(110px, 0.38fr) minmax(0, 1fr);
    gap: 0;
    margin: 26px 0;
    border-top: 1px solid var(--he-line, rgba(13, 13, 15, 0.14));
}

.he-route-status span,
.he-route-status strong {
    padding: 12px 0;
    border-bottom: 1px solid var(--he-line, rgba(13, 13, 15, 0.14));
}

.he-route-status span {
    color: var(--he-muted, #5f5b58);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.he-dashboard-cards {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.he-dashboard-card {
    padding: 20px;
    border: 1px solid var(--he-line, rgba(13, 13, 15, 0.14));
    background: var(--he-surface, #fff);
}

.he-dashboard-card span {
    display: block;
    color: var(--he-muted, #5f5b58);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.he-dashboard-card strong {
    display: block;
    margin-top: 12px;
    font-size: 36px;
    line-height: 1;
}

.he-events-placeholder {
    margin: 20px 0;
    padding: 20px;
    border: 1px dashed var(--he-line, rgba(13, 13, 15, 0.14));
    background: var(--he-surface, #fff);
    color: var(--he-muted, #5f5b58);
    font-size: 14px;
}

/* --------------------------------------------------------------------------
   Responsive composition
   -------------------------------------------------------------------------- */

@media (max-width: 1100px) {
    .he-events {
        font-size: var(--he-body-tablet, 17px);
    }

    .he-events .he-container {
        width: min(100%, calc(var(--he-wide, 1200px) + (2 * var(--he-side-tablet, 24px))));
        padding-inline: var(--he-side-tablet, 24px);
    }

    .he-events .he-section,
    .he-events .he-event-section {
        padding-block: var(--he-section-tablet, 44px);
    }

    .he-events .he-section-title {
        font-size: var(--he-section-title-tablet, 48px);
    }

    .he-events-archive__heading h1 {
        font-size: var(--he-archive-title-tablet, 62px);
    }

    .he-events-filters__advanced {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .he-events-filter-reset {
        justify-self: start;
    }

    .he-event-card__title,
    .he-event-pillars h3,
    .he-speaker-card h3,
    .he-event-agenda h3 {
        font-size: var(--he-card-title-tablet, 28px);
    }

    .he-event-hero h1 {
        font-size: var(--he-event-title-tablet, 72px);
    }

    .he-event-hero__grid {
        grid-template-columns: minmax(0, 1fr) minmax(280px, 0.66fr);
        gap: 40px;
    }

    .he-event-intro__grid {
        --he-event-intro-gap: 40px;
        grid-template-columns: minmax(0, 1fr) minmax(380px, var(--he-registration-column, 46%));
    }

    .he-event-pillars__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .he-event-pillars__grid > article:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    .he-event-speakers__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .he-event-speakers__grid > .he-speaker-card:last-child:nth-child(odd) {
        width: calc((100% - var(--he-card-gap, 24px)) / 2);
        grid-column: 1 / -1;
        justify-self: center;
    }

    .he-dashboard-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .he-event-intro__grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .he-event-registration {
        width: min(100%, 720px);
    }

    .he-registration-card,
    .admin-bar .he-registration-card {
        position: relative;
        top: auto;
    }
}

@media (max-width: 900px) {
    .he-events-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .he-events-archive__header {
        grid-template-columns: 1fr;
        row-gap: 18px;
    }

    .he-events-archive__intro {
        max-width: 38rem;
    }

    .he-event-hero {
        padding-top: max(clamp(88px, 12vw, 118px), calc(var(--he-site-header-offset, 88px) + 30px));
    }

    .he-event-hero__grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .he-event-hero h1 {
        max-width: 11ch;
        font-size: min(var(--he-event-title-tablet, 72px), 11vw);
    }

    .he-event-hero__content {
        max-width: 760px;
    }

    .he-event-hero__media {
        width: min(100%, 760px);
        aspect-ratio: 16 / 10;
    }

    .he-event-hero__day {
        font-size: clamp(86px, 20vw, 154px);
    }

    .he-event-quickfacts__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .he-event-quickfacts__grid > div,
    .he-event-quickfacts__grid > div:first-child,
    .he-event-quickfacts__grid > div:last-child {
        padding: 16px;
        border-right: 1px solid var(--he-line, rgba(13, 13, 15, 0.14));
        border-bottom: 1px solid var(--he-line, rgba(13, 13, 15, 0.14));
    }

    .he-event-quickfacts__grid > div:nth-child(3n) {
        border-right: 0;
    }

    .he-event-quickfacts__grid > div:nth-last-child(-n + 2) {
        border-bottom: 0;
    }

    .he-event-expectations__inner,
    .he-event-faq__inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .he-event-expectations .he-section-header,
    .he-event-faq .he-section-header,
    .admin-bar .he-event-expectations .he-section-header,
    .admin-bar .he-event-faq .he-section-header {
        position: relative;
        top: auto;
    }
}

@media (max-width: 767px) {
    .he-events {
        font-size: var(--he-body-mobile, 16px);
    }

    .he-events .he-container {
        width: min(100%, calc(var(--he-wide, 1200px) + (2 * var(--he-side-mobile, 20px))));
        padding-inline: var(--he-side-mobile, 20px);
    }

    .he-events .he-section,
    .he-events .he-event-section {
        padding-block: var(--he-section-mobile, 32px);
    }

    .he-events .he-section-title {
        max-width: 16ch;
        font-size: var(--he-section-title-mobile, 38px);
    }

    .he-events .he-button {
        min-height: 48px;
        padding: 13px 17px;
    }

    .he-events .he-event-preview-status {
        flex-wrap: wrap;
        border-radius: var(--he-small-radius, 14px);
    }

    .he-events-archive {
        padding-block: 72px 54px;
    }

    .he-events-archive__header {
        margin-bottom: 34px;
    }

    .he-events-archive__heading h1 {
        max-width: 10ch;
        font-size: var(--he-archive-title-mobile, 48px);
    }

    .he-events-archive__intro {
        font-size: 16px;
    }

    .he-events-filters__primary {
        min-height: 60px;
    }

    .he-events-filter-group {
        flex-wrap: nowrap;
        max-width: calc(100vw - 96px);
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scrollbar-width: none;
    }

    .he-events-filter-group::-webkit-scrollbar {
        display: none;
    }

    .he-events-filter-group a {
        flex: 0 0 auto;
    }

    .he-events-filters__advanced {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .he-events-grid {
        grid-template-columns: 1fr;
    }

    .he-event-card__body {
        grid-template-columns: 58px minmax(0, 1fr);
        gap: 16px;
        padding: 20px;
    }

    .he-event-card__date {
        min-height: 58px;
    }

    .he-event-card__date strong {
        font-size: 24px;
    }

    .he-event-card__title,
    .he-event-pillars h3,
    .he-speaker-card h3,
    .he-event-agenda h3 {
        font-size: var(--he-card-title-mobile, 25px);
    }

    .he-event-card__meta {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .he-event-card__meta > span:first-child {
        grid-column: 1 / -1;
    }

    .he-events-empty {
        min-height: 190px;
        padding: 30px 22px;
    }

    .he-events-empty h2 {
        font-size: 32px;
    }

    .he-event-single {
        padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
    }

    .he-event-hero {
        padding-top: calc(var(--he-site-header-offset, 80px) + 28px);
        padding-bottom: 38px;
    }

    .he-event-hero__grid {
        gap: 26px;
    }

    .he-event-hero h1 {
        max-width: 11ch;
        font-size: var(--he-event-title-mobile, 54px);
    }

    .he-event-hero__lead {
        margin-top: 14px;
        font-size: 22px;
    }

    .he-event-hero__facts {
        gap: 8px 18px;
        margin-top: 22px;
        padding: 13px 0;
    }

    .he-event-hero__facts span:not(:last-child)::after {
        right: -10px;
    }

    .he-event-hero__actions {
        align-items: stretch;
    }

    .he-event-hero__actions .he-button {
        width: 100%;
    }

    .he-event-hero__actions .he-text-link {
        width: fit-content;
    }

    .he-event-hero__media {
        aspect-ratio: 4 / 3;
    }

    .he-event-quickfacts__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .he-event-quickfacts__grid > div,
    .he-event-quickfacts__grid > div:first-child,
    .he-event-quickfacts__grid > div:last-child {
        padding: 14px 12px;
        border-right: 1px solid var(--he-line, rgba(13, 13, 15, 0.14));
        border-bottom: 1px solid var(--he-line, rgba(13, 13, 15, 0.14));
    }

    .he-event-quickfacts__grid > div:nth-child(2n) {
        border-right: 0;
    }

    .he-event-quickfacts__grid > div:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        border-right: 0;
    }

    .he-event-quickfacts__grid > div:nth-last-child(-n + 2) {
        border-bottom: 0;
    }

    .he-event-copy .he-richtext {
        font-size: 17px;
    }

    .he-registration-card h2 {
        font-size: 42px;
    }

    .he-form-grid {
        grid-template-columns: 1fr;
    }

    .he-field--wide {
        grid-column: auto;
    }

    .he-event-pillars__grid,
    .he-event-speakers__grid,
    .he-event-speakers__grid.he-count-1,
    .he-event-speakers__grid.he-count-2 {
        grid-template-columns: 1fr;
    }

    .he-event-pillars__grid > article:last-child:nth-child(odd) {
        grid-column: auto;
    }

    .he-event-speakers__grid > .he-speaker-card:last-child:nth-child(odd) {
        width: auto;
        grid-column: auto;
        justify-self: stretch;
    }

    .he-card-index {
        margin-bottom: 30px;
    }

    .he-speaker-card__media {
        aspect-ratio: 16 / 11;
    }

    .he-event-agenda li {
        grid-template-columns: 82px minmax(0, 1fr);
        gap: 18px;
        padding: 22px 0;
    }

    .he-event-expectations li {
        padding: 18px 0;
    }

    .he-event-expectations li p {
        font-size: 16px;
    }

    .he-event-faq summary {
        font-size: 19px;
    }

    .he-event-faq details > div {
        padding-right: 0;
    }

    .he-event-mobile-bar {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 9990;
        display: block;
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
        border-top: 1px solid rgba(13, 13, 15, 0.18);
        background: rgba(255, 245, 242, 0.96);
        box-shadow: 0 -12px 34px rgba(13, 13, 15, 0.1);
        -webkit-backdrop-filter: blur(14px);
        backdrop-filter: blur(14px);
    }

    .he-event-mobile-bar .he-mobile-action {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 12px;
        align-items: center;
        width: min(100%, 560px);
        margin-inline: auto;
    }

    .he-event-mobile-bar .he-mobile-action > span {
        min-width: 0;
    }

    .he-event-mobile-bar .he-mobile-action strong,
    .he-event-mobile-bar .he-mobile-action small {
        display: block;
    }

    .he-event-mobile-bar .he-mobile-action strong {
        font-size: 16px;
        line-height: 1.1;
    }

    .he-event-mobile-bar .he-mobile-action small {
        margin-top: 3px;
        overflow: hidden;
        color: var(--he-muted, #5f5b58);
        font-size: 10px;
        line-height: 1.2;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .he-event-mobile-bar .he-button {
        min-height: 44px;
        padding: 11px 14px;
        font-size: 10px !important;
    }

    .he-event-route,
    .he-events-public-dashboard,
    .he-events-registration-embed {
        padding-block: 80px;
    }

    .he-route-card {
        padding: 28px 22px;
    }

    .he-route-card h1 {
        font-size: 42px;
    }

    .he-route-status {
        grid-template-columns: 1fr;
    }

    .he-route-status span {
        padding-bottom: 3px;
        border-bottom: 0;
    }

    .he-route-status strong {
        padding-top: 0;
    }

    .he-dashboard-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .he-event-hero h1 {
        font-size: min(var(--he-event-title-mobile, 54px), 14vw);
    }

    .he-event-hero__lead {
        font-size: 20px;
    }

    .he-event-card__meta {
        grid-template-columns: minmax(0, 1fr) 38px;
    }

    .he-event-card__meta > span:nth-child(2) {
        grid-column: 1;
    }

    .he-event-card__arrow {
        grid-column: 2;
        grid-row: 2;
    }

    .he-event-agenda li {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .he-dashboard-cards {
        grid-template-columns: 1fr;
    }
}

/* Component fallbacks when embedded in narrow Elementor containers. */
@container (max-width: 760px) {
    .he-event-pillars__grid {
        grid-template-columns: 1fr;
    }

    .he-event-pillars__grid > article:last-child:nth-child(odd) {
        grid-column: auto;
    }
}

@container (max-width: 680px) {
    .he-event-hero h1 {
        font-size: min(var(--he-event-title-mobile, 54px), 14cqw);
    }
}


/* --------------------------------------------------------------------------
   Theme and Elementor state isolation — 1.1.4

   Elementor Global Styles and some themes target native a/button/form states
   with selectors such as `.elementor-kit-* button:hover`. Those selectors are
   intentionally more specific than a basic component class and can otherwise
   leak the site accent (the magenta Elementor default) into Events. The rules
   below explicitly own every interactive frontend state while continuing to
   use the Healthy Empire design tokens.
   -------------------------------------------------------------------------- */

.he-events {
    /* Local Elementor Kit token bridge. Generic Elementor rules that still
       reach a native control resolve to Healthy Empire colours, never the
       site kit's default magenta accent. */
    --e-global-color-primary: var(--he-text, #0d0d0f);
    --e-global-color-secondary: var(--he-muted, #5f5b58);
    --e-global-color-text: var(--he-text, #0d0d0f);
    --e-global-color-accent: var(--he-accent, #fc441a);
}

body .he-events a,
body .he-events button,
body .he-events input,
body .he-events select,
body .he-events textarea,
body .he-events summary {
    -webkit-tap-highlight-color: transparent;
    text-shadow: none !important;
}

body .he-events button,
body .he-events [type="button"],
body .he-events [type="submit"],
body .he-events [type="reset"] {
    -webkit-appearance: none;
    appearance: none;
    box-shadow: none !important;
}

/* Primary and secondary actions: anchors and native buttons use identical states. */
body .he-events a.he-button,
body .he-events button.he-button {
    min-height: 50px !important;
    padding: 14px 20px !important;
    border-width: 1px !important;
    border-style: solid !important;
    border-radius: var(--he-button-radius, 0) !important;
    box-shadow: none !important;
    font-family: var(--he-body-font, inherit) !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    letter-spacing: 0.045em !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    transform: none !important;
}

body .he-events a.he-button--primary,
body .he-events button.he-button--primary {
    border-color: var(--he-primary-bg, #0d0d0f) !important;
    background: var(--he-primary-bg, #0d0d0f) !important;
    color: var(--he-primary-text, #fff5f2) !important;
}

body .he-events a.he-button--primary:hover,
body .he-events a.he-button--primary:focus,
body .he-events a.he-button--primary:focus-visible,
body .he-events a.he-button--primary:active,
body .he-events button.he-button--primary:hover,
body .he-events button.he-button--primary:focus,
body .he-events button.he-button--primary:focus-visible,
body .he-events button.he-button--primary:active {
    border-color: var(--he-primary-hover-bg, #fc441a) !important;
    background: var(--he-primary-hover-bg, #fc441a) !important;
    color: var(--he-primary-hover-text, #fff) !important;
    box-shadow: none !important;
}

body .he-events a.he-button--secondary,
body .he-events button.he-button--secondary {
    border-color: var(--he-line, rgba(13, 13, 15, 0.14)) !important;
    background: var(--he-surface, #fff) !important;
    color: var(--he-text, #0d0d0f) !important;
}

body .he-events a.he-button--secondary:hover,
body .he-events a.he-button--secondary:focus,
body .he-events a.he-button--secondary:focus-visible,
body .he-events a.he-button--secondary:active,
body .he-events button.he-button--secondary:hover,
body .he-events button.he-button--secondary:focus,
body .he-events button.he-button--secondary:focus-visible,
body .he-events button.he-button--secondary:active {
    border-color: var(--he-text, #0d0d0f) !important;
    background: var(--he-text, #0d0d0f) !important;
    color: var(--he-bg, #fff5f2) !important;
    box-shadow: none !important;
}

body .he-events a.he-button:focus-visible,
body .he-events button.he-button:focus-visible {
    outline: 2px solid var(--he-accent, #fc441a) !important;
    outline-offset: 4px !important;
}

body .he-events a.he-button.he-button--disabled,
body .he-events a.he-button.he-button--disabled:hover,
body .he-events a.he-button.he-button--disabled:focus,
body .he-events button.he-button:disabled,
body .he-events button.he-button:disabled:hover,
body .he-events button.he-button:disabled:focus,
body .he-events button.he-button:disabled:active {
    border-color: var(--he-line, rgba(13, 13, 15, 0.14)) !important;
    background: var(--he-surface, #fff) !important;
    color: var(--he-muted, #5f5b58) !important;
    box-shadow: none !important;
    filter: none !important;
    transform: none !important;
}

/* Archive status navigation. */
body .he-events .he-events-filter-group a {
    border-color: transparent !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--he-text, #0d0d0f) !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

body .he-events .he-events-filter-group a:hover,
body .he-events .he-events-filter-group a:focus,
body .he-events .he-events-filter-group a:focus-visible,
body .he-events .he-events-filter-group a:active,
body .he-events .he-events-filter-group a.is-active,
body .he-events .he-events-filter-group a[aria-current="page"] {
    border-color: var(--he-text, #0d0d0f) !important;
    background: var(--he-text, #0d0d0f) !important;
    color: var(--he-bg, #fff5f2) !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

body .he-events .he-events-filter-group a:focus-visible {
    outline: 2px solid var(--he-accent, #fc441a) !important;
    outline-offset: 3px !important;
}

/* Advanced-filter toggle: only the plus tile changes state; never the whole
   button. This prevents Elementor's default magenta button rectangle. */
body .he-events button.he-events-filter-toggle,
body .he-events button.he-events-filter-toggle:hover,
body .he-events button.he-events-filter-toggle:focus,
body .he-events button.he-events-filter-toggle:focus-visible,
body .he-events button.he-events-filter-toggle:active,
body .he-events button.he-events-filter-toggle[aria-expanded="true"] {
    min-height: 42px !important;
    padding: 8px 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--he-text, #0d0d0f) !important;
    box-shadow: none !important;
    font-family: var(--he-body-font, inherit) !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    letter-spacing: 0.04em !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    transform: none !important;
}

body .he-events button.he-events-filter-toggle span {
    border-color: var(--he-line, rgba(13, 13, 15, 0.14)) !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--he-text, #0d0d0f) !important;
    box-shadow: none !important;
}

body .he-events button.he-events-filter-toggle:hover span,
body .he-events button.he-events-filter-toggle:focus span,
body .he-events button.he-events-filter-toggle:focus-visible span,
body .he-events button.he-events-filter-toggle:active span,
body .he-events button.he-events-filter-toggle[aria-expanded="true"] span {
    border-color: var(--he-text, #0d0d0f) !important;
    background: var(--he-text, #0d0d0f) !important;
    color: var(--he-bg, #fff5f2) !important;
}

body .he-events button.he-events-filter-toggle:focus-visible {
    outline: 2px solid var(--he-accent, #fc441a) !important;
    outline-offset: 4px !important;
}

/* Filter controls and event form fields. */
body .he-events .he-events-filters select,
body .he-events .he-field input,
body .he-events .he-field select,
body .he-events .he-field textarea {
    border-color: var(--he-line, rgba(13, 13, 15, 0.14)) !important;
    background-color: var(--he-surface, #fff) !important;
    color: var(--he-text, #0d0d0f) !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

body .he-events .he-events-filters select:hover,
body .he-events .he-field input:hover,
body .he-events .he-field select:hover,
body .he-events .he-field textarea:hover {
    border-color: var(--he-text, #0d0d0f) !important;
    background-color: var(--he-surface, #fff) !important;
    color: var(--he-text, #0d0d0f) !important;
    box-shadow: none !important;
}

body .he-events .he-events-filters select:focus,
body .he-events .he-events-filters select:focus-visible,
body .he-events .he-field input:focus,
body .he-events .he-field input:focus-visible,
body .he-events .he-field select:focus,
body .he-events .he-field select:focus-visible,
body .he-events .he-field textarea:focus,
body .he-events .he-field textarea:focus-visible {
    border-color: var(--he-accent, #fc441a) !important;
    background-color: var(--he-surface, #fff) !important;
    color: var(--he-text, #0d0d0f) !important;
    outline: 2px solid var(--he-accent, #fc441a) !important;
    outline-offset: 1px !important;
    box-shadow: none !important;
}

body .he-events .he-field input::placeholder,
body .he-events .he-field textarea::placeholder {
    color: var(--he-muted, #5f5b58) !important;
    opacity: 0.68;
}

body .he-events .he-events-filter-reset,
body .he-events .he-events-filter-reset:visited,
body .he-events .he-events-filter-reset:focus {
    border: 0 !important;
    border-bottom: 1px solid currentColor !important;
    border-color: transparent transparent currentColor transparent !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--he-text, #0d0d0f) !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

body .he-events .he-events-filter-reset:hover,
body .he-events .he-events-filter-reset:focus-visible,
body .he-events .he-events-filter-reset:active {
    border-color: transparent transparent var(--he-accent, #fc441a) transparent !important;
    border-bottom-color: var(--he-accent, #fc441a) !important;
    background: transparent !important;
    color: var(--he-accent, #fc441a) !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

/* Event cards are full-card links and must never inherit Elementor link hover. */
body .he-events .he-event-card > a,
body .he-events .he-event-card > a:visited {
    border-color: var(--he-line, rgba(13, 13, 15, 0.14)) !important;
    background: var(--he-surface, #fff) !important;
    color: var(--he-text, #0d0d0f) !important;
    text-decoration: none !important;
}

body .he-events .he-event-card > a:hover,
body .he-events .he-event-card > a:focus,
body .he-events .he-event-card > a:focus-visible,
body .he-events .he-event-card > a:active {
    border-color: rgba(13, 13, 15, 0.3) !important;
    background: var(--he-surface, #fff) !important;
    color: var(--he-text, #0d0d0f) !important;
    box-shadow: 0 20px 46px rgba(13, 13, 15, 0.08) !important;
    text-decoration: none !important;
}

body .he-events .he-event-card > a:focus-visible {
    outline: 2px solid var(--he-accent, #fc441a) !important;
    outline-offset: 4px !important;
}

body .he-events .he-event-card__arrow {
    border-color: var(--he-line, rgba(13, 13, 15, 0.14)) !important;
    background: transparent !important;
    color: var(--he-text, #0d0d0f) !important;
    box-shadow: none !important;
}

body .he-events .he-event-card > a:hover .he-event-card__arrow,
body .he-events .he-event-card > a:focus .he-event-card__arrow,
body .he-events .he-event-card > a:focus-visible .he-event-card__arrow {
    border-color: var(--he-text, #0d0d0f) !important;
    background: var(--he-text, #0d0d0f) !important;
    color: var(--he-bg, #fff5f2) !important;
}

/* Pagination. */
body .he-events .he-events-pagination .page-numbers {
    border-color: var(--he-line, rgba(13, 13, 15, 0.14)) !important;
    border-radius: 0 !important;
    background: var(--he-surface, #fff) !important;
    color: var(--he-text, #0d0d0f) !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

body .he-events .he-events-pagination .page-numbers:hover,
body .he-events .he-events-pagination .page-numbers:focus,
body .he-events .he-events-pagination .page-numbers:focus-visible,
body .he-events .he-events-pagination .page-numbers:active,
body .he-events .he-events-pagination .page-numbers.current {
    border-color: var(--he-text, #0d0d0f) !important;
    background: var(--he-text, #0d0d0f) !important;
    color: var(--he-bg, #fff5f2) !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

/* Inline and editorial links keep the Healthy Empire orange, not Elementor pink. */
body .he-events .he-richtext a,
body .he-events .he-richtext a:visited,
body .he-events .he-card-copy a,
body .he-events .he-card-copy a:visited,
body .he-events .he-event-faq a,
body .he-events .he-event-faq a:visited,
body .he-events .he-checkbox a,
body .he-events .he-checkbox a:visited {
    border: 0 !important;
    background: transparent !important;
    color: var(--he-accent, #fc441a) !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

body .he-events .he-richtext a:hover,
body .he-events .he-richtext a:focus,
body .he-events .he-richtext a:focus-visible,
body .he-events .he-richtext a:active,
body .he-events .he-card-copy a:hover,
body .he-events .he-card-copy a:focus,
body .he-events .he-card-copy a:focus-visible,
body .he-events .he-card-copy a:active,
body .he-events .he-event-faq a:hover,
body .he-events .he-event-faq a:focus,
body .he-events .he-event-faq a:focus-visible,
body .he-events .he-event-faq a:active,
body .he-events .he-checkbox a:hover,
body .he-events .he-checkbox a:focus,
body .he-events .he-checkbox a:focus-visible,
body .he-events .he-checkbox a:active {
    border: 0 !important;
    background: transparent !important;
    color: var(--he-text, #0d0d0f) !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

body .he-events .he-text-link,
body .he-events .he-text-link:visited,
body .he-events .he-text-link:focus {
    border: 0 !important;
    border-bottom: 1px solid currentColor !important;
    border-color: transparent transparent currentColor transparent !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--he-text, #0d0d0f) !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

body .he-events .he-text-link:hover,
body .he-events .he-text-link:focus-visible,
body .he-events .he-text-link:active {
    border-color: transparent transparent var(--he-accent, #fc441a) transparent !important;
    border-bottom-color: var(--he-accent, #fc441a) !important;
    background: transparent !important;
    color: var(--he-accent, #fc441a) !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

/* Ticket selection and native checkboxes. */
body .he-events .he-ticket-option__body {
    border-color: var(--he-line, rgba(13, 13, 15, 0.14)) !important;
    background: var(--he-bg, #fff5f2) !important;
    color: var(--he-text, #0d0d0f) !important;
    box-shadow: none !important;
}

body .he-events .he-ticket-option:hover .he-ticket-option__body,
body .he-events .he-ticket-option:focus-within .he-ticket-option__body {
    border-color: var(--he-text, #0d0d0f) !important;
    background: var(--he-surface, #fff) !important;
    color: var(--he-text, #0d0d0f) !important;
}

body .he-events .he-ticket-option input:checked + .he-ticket-option__body {
    border-color: var(--he-text, #0d0d0f) !important;
    background: var(--he-surface, #fff) !important;
    color: var(--he-text, #0d0d0f) !important;
    box-shadow: inset 0 0 0 1px var(--he-text, #0d0d0f) !important;
}

body .he-events .he-ticket-option input:focus-visible + .he-ticket-option__body {
    outline: 2px solid var(--he-accent, #fc441a) !important;
    outline-offset: 3px !important;
}

body .he-events .he-checkbox input[type="checkbox"] {
    accent-color: var(--he-accent, #fc441a) !important;
    box-shadow: none !important;
}

/* FAQ accordions. */
body .he-events .he-event-faq summary,
body .he-events .he-event-faq summary:hover,
body .he-events .he-event-faq summary:focus,
body .he-events .he-event-faq summary:focus-visible,
body .he-events .he-event-faq summary:active {
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--he-text, #0d0d0f) !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

body .he-events .he-event-faq summary span {
    border-color: var(--he-line, rgba(13, 13, 15, 0.14)) !important;
    background: transparent !important;
    color: var(--he-text, #0d0d0f) !important;
}

body .he-events .he-event-faq summary:hover span,
body .he-events .he-event-faq summary:focus span,
body .he-events .he-event-faq summary:focus-visible span,
body .he-events .he-event-faq details[open] summary span {
    border-color: var(--he-text, #0d0d0f) !important;
    background: var(--he-text, #0d0d0f) !important;
    color: var(--he-bg, #fff5f2) !important;
}

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

@media print {
    .he-event-mobile-bar,
    .he-event-preview-status,
    .he-events-filters,
    .he-event-hero__actions,
    .he-registration-card {
        display: none !important;
    }

    .he-events {
        background: #fff !important;
        color: #000 !important;
    }
}

@media (max-width: 767px) {
    .he-event-mobile-bar.is-hidden {
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        transform: translateY(110%);
    }
}

/* Eventupdates / nieuwe-eventnotificaties (1.2.0) */
.he-events-archive__updates {
    margin-top: clamp(36px, 6vw, 72px);
    scroll-margin-top: calc(var(--he-header-offset, 96px) + 24px);
}

.he-event-updates-section {
    scroll-margin-top: calc(var(--he-header-offset, 96px) + 24px);
}

.he-events.he-event-updates {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
    gap: clamp(28px, 5vw, 72px);
    align-items: center;
    width: 100%;
    padding: clamp(30px, 5vw, 64px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--he-radius, 18px);
    background: var(--he-text, #0d0d0f);
    color: var(--he-bg, #fff5f2);
    text-align: left;
}

.he-events.he-event-updates::before {
    position: absolute;
    top: 0;
    right: 0;
    width: min(36vw, 420px);
    height: 100%;
    background: radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--he-accent, #fc441a) 42%, transparent), transparent 68%);
    content: "";
    pointer-events: none;
}

.he-event-updates__copy,
.he-event-updates__form {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.he-event-updates__copy .he-eyebrow {
    margin: 0 0 14px;
    color: var(--he-accent, #fc441a);
}

.he-event-updates__copy h2 {
    max-width: 13ch;
    margin: 0;
    color: inherit;
    font-size: clamp(36px, 4.2vw, 62px);
    line-height: 0.98;
    letter-spacing: -0.04em;
}

.he-event-updates__copy > p:last-child {
    max-width: 42rem;
    margin: 20px 0 0;
    color: rgba(255, 245, 242, 0.7);
    font-size: 16px;
    line-height: 1.55;
}

.he-event-updates__form {
    margin: 0;
}

.he-event-updates__fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: stretch;
}

.he-event-updates__email {
    display: block;
    min-width: 0;
    margin: 0;
}

.he-event-updates__email input {
    width: 100%;
    height: 56px;
    min-height: 56px;
    margin: 0;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--he-small-radius, 14px);
    outline: 0;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font: inherit;
    font-size: 16px;
    box-shadow: none;
}

.he-event-updates__email input::placeholder {
    color: rgba(255, 255, 255, 0.48);
}

.he-event-updates__email input:hover,
.he-event-updates__email input:focus {
    border-color: var(--he-accent, #fc441a);
    background: rgba(255, 255, 255, 0.12);
}

.he-event-updates__fields .he-button {
    min-height: 56px;
    white-space: nowrap;
    background: var(--he-accent, #fc441a) !important;
    color: #fff !important;
}

.he-event-updates__fields .he-button:hover,
.he-event-updates__fields .he-button:focus-visible {
    background: #fff !important;
    color: var(--he-text, #0d0d0f) !important;
}

.he-event-updates__consent {
    margin-top: 14px;
    color: rgba(255, 245, 242, 0.64);
    font-size: 11px;
}

.he-event-updates__consent a,
body .he-events.he-event-updates .he-event-updates__consent a,
body .he-events.he-event-updates .he-event-updates__consent a:visited {
    color: inherit !important;
}

.he-event-updates .he-form-status {
    color: rgba(255, 245, 242, 0.78);
}

.he-event-updates .he-form-status.is-success {
    border-color: rgba(152, 255, 181, 0.45);
    background: rgba(35, 122, 68, 0.22);
    color: #c8ffd7;
}

.he-event-updates .he-form-status.is-error {
    border-color: rgba(255, 142, 142, 0.48);
    background: rgba(163, 34, 34, 0.22);
    color: #ffd0d0;
}

.he-events-empty--updates {
    display: block;
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.he-events-empty--updates .he-events.he-event-updates {
    min-height: 310px;
}

.he-event-updates--compact {
    grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1.2fr) !important;
    padding: clamp(24px, 4vw, 44px) !important;
}

.he-event-updates--compact .he-event-updates__copy h2 {
    font-size: clamp(32px, 3.4vw, 48px);
}

@media (max-width: 900px) {
    .he-events.he-event-updates,
    .he-event-updates--compact {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 28px;
    }

    .he-event-updates__copy h2 {
        max-width: 16ch;
    }
}

@media (max-width: 560px) {
    .he-events.he-event-updates {
        padding: 28px 20px;
    }

    .he-event-updates__copy h2 {
        font-size: clamp(34px, 10vw, 46px);
    }

    .he-event-updates__fields {
        grid-template-columns: minmax(0, 1fr);
    }

    .he-event-updates__fields .he-button {
        width: 100%;
    }
}


/* Anonymous private review mode */
.he-event-private-review .he-event-preview-status{border-color:rgba(252,68,26,.35);background:rgba(252,68,26,.08)}
.he-event-private-review .he-registration-card.is-preview{outline:2px dashed rgba(13,13,15,.18);outline-offset:-2px}
