﻿.he-events-list,
.he-events-calendar {
    color: var(--foreground);
}

.events-whatson-list {
    display: grid;
    gap: 1rem;
}
.events-whatson-list--cards {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    align-items: stretch;
    gap: 1rem;
}
.events-whatson-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    height: 100%;
    padding: 1.25rem;
    border: 1px solid currentColor;
    border-radius: 8px;
    box-sizing: border-box;
}
.events-whatson-card__title {
    margin: 0;
}
.events-whatson-card__title a {
    color: inherit;
}
.events-whatson-card__date,
.events-whatson-card__time,
.events-whatson-card__day,
.events-whatson-empty {
    margin: 0;
}
.weekly-schedule {
	margin-bottom: 4rem;
}
.events-whatson-card--static {
	min-height: 320px;
	gap: 0;
	overflow: hidden;
	padding: 0;
	border: 0;
	border-radius: var(--border);
	background: var(--white, #fff);
	color: var(--main-color, #272727);
	box-shadow: 0 0.45rem 1.25rem rgba(0, 0, 0, 0.03);
	border: solid thin var(--black);
}
.events-whatson-card__image {
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--lgrey, #F6F6F6);
	max-height: 300px;
}
.events-whatson-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.events-whatson-card__image a {
    display: block;
    height: 100%;
}
.events-whatson-card__image-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.events-whatson-card--static .events-whatson-card__title {
    color: var(--blue, #060B28);
    font-weight: bold;
    line-height: 1.15;
}
.events-whatson-card--static .events-whatson-card__title a {
    text-decoration: none;
}
.events-whatson-card__body {
    flex: 1 1 auto;
    display: grid;
    align-content: start;
    gap: 0.5rem;
}
.events-whatson-card--static .events-whatson-card__body {
    padding: 1em;
}
.events-whatson-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.15rem 0.35rem;
    align-items: baseline;
    margin: 0;
    color: var(--main-color, #272727);
    font-weight: 400;
    font-size: 14px;
}
.events-whatson-card__location {
    color: inherit;
}
.events-whatson-card__excerpt {
    color: var(--main-color, #272727);
    display: none;
}
.events-whatson-card__excerpt > :first-child {
    margin-top: 0;
}
.events-whatson-card__excerpt > :last-child {
    margin-bottom: 0;
}
.events-whatson-card__footer {
    margin-top: auto;
    padding-top: 1.25rem;
}
.events-whatson-card--static .events-whatson-card__footer {
	padding: 1em 1em 1.5em 1em;
}
.events-whatson-card--static .events-whatson-card__footer .btn {
    justify-content: center;
}
.events-whatson-card__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0.8rem 1.35rem;
    border: solid 2px var(--lightblue, #00B4D8);
    border-radius: 999px;
    background: var(--blue, #060B28);
    color: var(--white, #fff);
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease, outline-offset 200ms ease;
}

.events-whatson-card__button:hover,
.events-whatson-card__button:focus-visible {
    border-color: var(--brown, #F0E4D4);
    background: var(--lightblue, #00B4D8);
    color: var(--blue, #060B28);
}

.events-whatson-card__button:focus-visible {
    outline: solid 2px var(--blue, #060B28);
    outline-offset: 4px;
}

.events-whatson-card__content > :first-child {
    margin-top: 0;
}

.events-whatson-card__content > :last-child {
    margin-bottom: 0;
}

.he-event-feature-image__video {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
}
video.he-event-feature-image__video {
    border-radius: 10px;
}

/* PDF Calendar Export Form */
.events-calendar-pdf {
    display: grid;
    gap: 1rem;
    padding: clamp(1rem, 3vw, 1.5rem);
    border: solid thin var(--lightblue, #00B4D8);
    border-radius: var(--border, 10px);
    background: var(--lgrey, #F6F6F6);
    color: var(--main-color, #272727);
}

.events-calendar-pdf__intro {
    max-width: 62ch;
    margin: 0;
    color: var(--main-color, #272727);
}

.events-calendar-pdf-form {
    display: grid;
    gap: 1rem;
}

.events-calendar-pdf-form__fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, 1fr));
    gap: 1rem;
}

.events-calendar-pdf-form__field {
    display: grid;
    gap: 0.4rem;
}

.events-calendar-pdf-form__field label,
.events-calendar-pdf-form__check {
    font-weight: 700;
}

.events-calendar-pdf-form__field input[type="month"] {
    width: 100%;
    box-sizing: border-box;
    min-height: 46px;
    padding: 0.65rem 0.8rem;
    border: solid thin var(--lightblue, #00B4D8);
    border-radius: 5px;
    background: var(--white, #fff);
    color: var(--main-color, #272727);
    font: inherit;
    transition: border-color 200ms ease, box-shadow 200ms ease, background-color 200ms ease;
}

.events-calendar-pdf-form__field input[type="month"]:focus {
    border-color: var(--main-color, #272727);
    outline: solid 2px var(--lightblue, #00B4D8);
    outline-offset: 2px;
    background: var(--white, #fff);
    box-shadow: 0 0.45rem 1rem var(--black, rgba(0, 0, 0, 0.1));
}

.events-calendar-pdf-form__checks {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
}

.events-calendar-pdf-form__check {
    display: inline-flex;
    gap: 0.55rem;
    align-items: center;
    min-height: 32px;
    cursor: pointer;
}

.events-calendar-pdf-form__check input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    accent-color: var(--lightblue, #00B4D8);
    cursor: pointer;
}

.events-calendar-pdf-form__button {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.8rem 1.4rem;
    border: solid 2px var(--lightblue, #00B4D8);
    border-radius: 30px;
    background: var(--lightblue, #00B4D8);
    color: var(--white, #fff);
    font: inherit;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease, outline-offset 200ms ease;
}

.events-calendar-pdf-form__button:hover {
    border-color: var(--brown, #F0E4D4);
    background: var(--blue, #060B28);
    color: var(--white, #fff);
}

.events-calendar-pdf-form__button:focus-visible {
    outline: solid 2px var(--blue, #060B28);
    outline-offset: 4px;
}

.he-events-list {
    display: grid;
    align-items: stretch;
    gap: 28px;
}
.he-events-list .blurbackground {
	padding: 0;
}
.he-events-empty {
    padding: 28px 32px;
    border-radius: 20px;
    background: linear-gradient(135deg, #1d2533 0%, #101824 100%);
    color: var(--white);
}
.he-events-list-live {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(300px,1fr));
    gap: 2em;
}
.he-events-list-wrapper--compact .he-events-list-live,
.he-events-list-wrapper--links .he-events-list-live {
    display: block;
}
.he-events-item {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    gap: 0;
    overflow: clip;
    height: 100%;
}
.he-events-item-image {
    position: relative;
    height: 320px;
    overflow: hidden;
    background: var(--black);
    border-radius: 10px 10px 0 0;
}
.he-events-item-image a {
    display: block;
    height: 100%;
}
.he-events-item-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(4, 13, 26, 0.08) 0%, rgba(4, 13, 26, 0.3) 100%);
    pointer-events: none;
}
.he-events-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.he-events-list--no-image .he-events-item-image {
    height: 100px;
    background: transparent;
}
.he-events-list--no-image .he-events-item-image::after {
    display: none;
}
.he-events-list--no-image .he-events-item-image img {
    display: none;
}
.he-events-list--no-image .he-events-item-content {
    min-height: 390px;
    padding-top: 1.75em;
}
.he-events-compact-list {
    display: grid;
    gap: 1rem;
}
.he-events-compact-item {
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 28px;
	align-items: center;
	padding: 0;
	color: var(--main-color);
	background-color: var(--white);
	padding: 1em;
	box-sizing: border-box;
	border-radius: var(--border);
}
.he-events-compact-item .he-events-date-badge {
	position: static;
	border-radius: var(--border);
}
.he-events-compact-item-content {
    display: grid;
    gap: 14px;
}
.he-events-compact-item h2 {
	text-wrap: auto;
}
.he-events-compact-item .he-events-item-title {
    min-height: 0;
}
.he-events-compact-item .he-events-item-title a {
    line-height: 1.05;
}
.he-events-compact-item-action {
    display: flex;
    justify-content: flex-end;
}

.he-events-compact-item-action .btn {
    white-space: nowrap;
}
.he-events-link-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding-left: 1.25em;
    list-style: none;
}

.he-events-link-list a {
    color: inherit;
}
.he-events-link-list a:hover,
.he-events-link-list a:focus-visible {
    color: var(--main-color);
}
.he-events-date-badge {
	position: absolute;
	top: 0;
	right: 0;
	z-index: 2;
	display: grid;
	gap: 2px;
	justify-items: center;
	padding: 1em;
	background: var(--brown);
	color: var(--main-color);
	text-transform: uppercase;
	border-radius: 0 0 0 10px;
}
.he-events-date-badge-day {
	font-size: clamp(1rem, 3vw, 2rem);
	line-height: 0.95;
	font-weight: 700;
	letter-spacing: -0.04em;
}
.he-events-date-badge-month {
    font-size: 1rem;
    line-height: 1.1;
    font-weight: 700;
    text-transform: none;
}
.he-events-item-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1em;
    box-sizing: border-box;
    min-height: 390px;
    padding: 2em;
}
.he-events-item-title {
    margin: 0;
    min-height: 3.6em;
    line-height: 1.2;
    text-transform: uppercase;
}
.he-events-item-title a {
    color: currentColor;
    display: block;
    font-size: clamp(1rem,10vw,1.25rem);
    line-height: 1.2;
}
.he-events-item-title a:hover,
.he-events-item-title a:focus-visible {
    color: var(--blue);
}

.he-events-item-meta {
	display: flex;
    flex-wrap: wrap;
	width: 100%;
	gap: 0 1em;
	font-size: 14px;
}
.he-events-item-time,
.he-events-item-date,
.he-events-item-location {
    margin: 0;
}
.he-events-item-time,
.he-events-item-date,
.he-events-location-name {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}
.he-events-item-location {
    display: grid;
    gap: 2px;
}
.he-events-location-name,
.he-events-location-address {
    display: block;
}
.he-events-meta-icon {
    display: inline-flex;
    width: 1.05rem;
    height: 1.05rem;
    flex: 0 0 1.05rem;
    align-items: center;
    justify-content: center;
}
.he-events-meta-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    /*! max-width: 20px; */
    max-height: 12px;
}
.he-events-meta-text {
    display: inline-block;
}
.he-events-item-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.he-events-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 32px;
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--shadeblue);
	border: 1px solid var(--black);
	font-weight: 700;
	letter-spacing: 0.06em;
}
.he-event-badge {
    display: inline-flex;
    margin-left: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #14b8a6;
    color: var(--white);
    font-size: 0.8rem;
    line-height: 1;
    font-weight: 700;
    text-transform: uppercase;
    vertical-align: middle;
}
.he-events-cancelled {
    display: inline-flex;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--white);
    font-size: 0.85rem;
    line-height: 1.2;
    font-weight: 700;
}
.he-events-item-excerpt {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}
.he-events-item-excerpt p:last-child {
    margin: 0;
}
.he-events-item-link {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
}
.he-events-item-cost,
.he-event-cost {
    font-weight: 600;
}
.he-events-suitable-for {
    display: grid;
    gap: 8px;
    width: 100%;
}
.he-events-suitable-for-label {
    font-weight: 700;
}
.he-events-suitable-for-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
}
.he-event-location, .he-event-cost {
  margin-bottom: 1em;
}
.he-event-meta {
  text-align: center;
}
.he-events-suitable-for-label {
  margin-top: 2em;
  margin-bottom: 0.5em;
}
.he-events-suitable-badge {
    text-transform: none;
    letter-spacing: 0;
}
/* Occurrences Table */
.he-event-occurrences h3 {
    margin: 0 0 1rem;
    color: var(--main-color, #272727);
    font-weight: 700;
}

.he-table-wrap {
    width: 100%;
    overflow-x: auto;
    margin-top: 1rem;
    border: solid thin rgba(39, 39, 39, 0.12);
    border-radius: var(--border, 10px);
    background: var(--white, #fff);
}

.he-occurrences-table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    background: var(--white, #fff);
    color: var(--main-color, #272727);
    font-size: 0.95rem;
    line-height: 1.45;
}

.he-occurrences-table thead {
    background: var(--shadeblue, #f2f5f8);
}

.he-occurrences-table th,
.he-occurrences-table td {
    padding: 0.85rem 1rem;
    border: 0;
    border-bottom: solid thin rgba(39, 39, 39, 0.1);
    text-align: left;
    vertical-align: middle;
}

.he-occurrences-table th {
    color: var(--blue, #060B28);
    font-weight: 700;
}

.he-occurrences-table tbody tr:last-child td {
    border-bottom: 0;
}

.he-occurrence-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1;
}

.he-occurrence-status--scheduled {
    background: rgba(0, 180, 216, 0.14);
    color: var(--blue, #060B28);
}

.he-occurrence-status--cancelled {
    background: rgba(39, 39, 39, 0.08);
    color: var(--main-color, #272727);
}
.he-events-calendar {
    border: 1px solid var(--background);
    padding: 16px;
    background: var(--background);
}
.he-events-calendar-header {
    display: grid;
    grid-template-columns: 40px 1fr 40px;
    align-items: center;
    margin-bottom: 12px;
}
.he-events-calendar-title {
    text-align: center;
    font-weight: 600;
}
.he-events-calendar-nav {
	background: var(--white);
	border: 1px solid var(--white);
	cursor: pointer;
	color: var(--main-color);
	border-radius: 50%;
	height: 50px;
	width: 50px;
	display: flex;
	justify-content: center;
	align-items: center;
}
.he-events-calendar-nav:hover {
	background-color: var(--lightblue);
}
.he-events-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}
.he-events-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    min-height: 240px;
}
.he-events-day {
    border: 1px solid var(--black);
    padding: 6px;
    min-height: 72px;
    position: relative;
    background: var(--lightshadow);
    min-width: 25px;
}
.he-events-day-outside {
    background: var(--background);
    color: var(--foreground);
}
.he-events-day-number {
    font-size: 0.85rem;
    margin-bottom: 6px;
}
.he-events-day-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    min-height: 2.25rem;
    background: var(--blue);
    color: var(--white);
    border: none;
    border-radius: 999px;
    padding: 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.he-events-day-button:focus-visible {
    outline: solid 2px var(--lightblue);
    outline-offset: 2px;
}

.he-events-calendar__events {
    display: none;
    gap: 3px;
    margin-top: 6px;
}

.he-events-day .he-events-calendar__event {
    display: grid;
    gap: 2px;
    overflow: hidden;
    padding: 3px 4px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    color: inherit;
    font-size: 0.72rem;
    line-height: 1.2;
    text-decoration: none;
    text-overflow: ellipsis;
}

.he-events-day .he-events-calendar__event:hover,
.he-events-day .he-events-calendar__event:focus-visible {
    background: var(--lightblue);
    color: var(--white);
    outline: none;
}

.he-events-day .he-events-calendar__event:focus-visible {
    box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--lightblue);
}
.he-events-tooltip {
	position: absolute;
	top: 50%;
	left: 50%;
	right: 16px;
	border: 1px solid var(--brown);
	background: var(--white);
	padding: 12px;
	z-index: 10;
	box-shadow: var(--boxshadow) var(--black);
	transform: translate(-50%,-50%);
	width: 80%;
	border-radius: var(--border);
	transition: transform 300ms;
}
.he-events-tooltip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.he-events-tooltip-close {
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
}

.he-events-tooltip-item {
    margin-bottom: 10px;
}

.he-events-calendar__event {
    display: grid;
    gap: 2px;
}

.he-events-calendar__event-time {
    font-weight: 700;
}

.he-events-calendar__event--static .he-events-calendar__event-time,
.he-events-calendar__event--static .he-events-calendar__event-title {
    color: inherit;
}
.he-events-calendar__event-title a {
	color: var(--main-color);
}

@media (min-width: 769px) {
    .he-events-calendar .he-events-day-button {
        display: none;
    }

    .he-events-calendar .he-events-calendar__events {
        display: grid;
    }
}

@media (max-width: 960px) {
    .he-events-item-content {
        padding: 38px 34px;
    }
}

@media (max-width: 768px) {
    .he-events-calendar .he-events-day-button {
        display: inline-flex;
    }

    .he-events-calendar .he-events-calendar__events {
        display: none;
    }
}

@media (max-width: 720px) {

    .events-calendar-pdf-form__fields {
        grid-template-columns: 1fr;
    }

    .events-calendar-pdf-form__checks {
        display: grid;
        grid-template-columns: 1fr;
    }

    .events-calendar-pdf-form__button {
        width: 100%;
    }

    .events-whatson-card__button {
        width: 100%;
    }

    .he-table-wrap {
        overflow: visible;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .he-occurrences-table {
        min-width: 0;
        border-collapse: separate;
        border-spacing: 0;
        background: transparent;
    }

    .he-occurrences-table thead {
        display: none;
    }

    .he-occurrences-table,
    .he-occurrences-table tbody,
    .he-occurrences-table tr,
    .he-occurrences-table td {
        display: block;
        width: 100%;
    }

    .he-occurrences-table tbody {
        display: grid;
        gap: 1rem;
    }

    .he-occurrences-table tr {
        padding: 0.85rem;
        border: solid thin rgba(39, 39, 39, 0.12);
        border-radius: var(--border, 10px);
        background: var(--white, #fff);
        box-sizing: border-box;
    }

    .he-occurrences-table tbody tr:nth-child(even) {
        background: var(--white, #fff);
    }

    .he-occurrences-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
        padding: 0.55rem 0;
        border-bottom: solid thin rgba(39, 39, 39, 0.08);
        text-align: right;
    }

    .he-occurrences-table td:last-child {
        border-bottom: 0;
    }

    .he-occurrences-table td::before {
        content: attr(data-label);
        flex: 0 0 auto;
        color: var(--blue, #060B28);
        font-weight: 700;
        text-align: left;
    }

    .he-events-item-image {
        height: 260px;
    }

    .he-events-list--no-image .he-events-item-image {
        height: 100px;
    }

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

    .he-events-compact-item .he-events-date-badge {
        justify-self: start;
    }

    .he-events-compact-item-action {
        justify-content: flex-start;
    }

    .he-events-compact-item-action .btn {
        width: 100%;
    }
    .he-events-date-badge {
        padding: 18px 14px 16px;
    }

    .he-events-item-content {
        min-height: auto;
        padding: 28px 24px 30px;
        gap: 18px;
    }

    .he-events-item-title {
        min-height: auto;
    }



    .he-events-calendar-grid,
    .he-events-calendar-weekdays {
        grid-template-columns: repeat(7, 1fr);
    }
}
