/* Events for HivePress — front end.
   Colours follow the theme where possible; change the variables below to restyle. */

:root {
	--hpe-accent: var(--hp-primary-color, #3f7d55);
	--hpe-accent-dark: #2f6141;
	--hpe-accent-soft: #eef5f0;
	--hpe-warm: var(--hp-secondary-color, #f0b45a);
	--hpe-warm-soft: #fdf4e6;
	--hpe-text: #1f2a24;
	--hpe-muted: #6b746f;
	--hpe-border: #e6ebe7;
	--hpe-bg: #ffffff;
	--hpe-bg-alt: #f7f9f7;
	--hpe-radius: 14px;
	--hpe-radius-sm: 9px;
	--hpe-shadow: 0 1px 2px rgba(20, 40, 28, 0.04), 0 6px 22px rgba(20, 40, 28, 0.07);
	--hpe-shadow-hover: 0 2px 4px rgba(20, 40, 28, 0.06), 0 14px 34px rgba(20, 40, 28, 0.12);
}

.hpe-icon { flex: none; width: 1em; height: 1em; vertical-align: -0.125em; }

/* ---------- Layout ---------- */
.hpe-page { padding: 32px 0 56px; }
.hpe-container { width: 100%; max-width: 1170px; margin: 0 auto; padding: 0 16px; box-sizing: border-box; }
.hpe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.hpe-grid--2 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.hpe-list { display: flex; flex-direction: column; gap: 14px; }
.hpe-section-title { font-size: 1.25rem; margin: 0 0 16px; line-height: 1.3; }

/* ---------- Chips & badges ---------- */
.hpe-chip {
	display: inline-flex; align-items: center; gap: 4px;
	padding: 3px 10px; border-radius: 999px;
	background: var(--hpe-accent-soft); color: var(--hpe-accent-dark);
	font-size: 0.78rem; font-weight: 600; line-height: 1.5; text-decoration: none; white-space: nowrap;
}
a.hpe-chip:hover { background: var(--hpe-accent); color: #fff; }
.hpe-chip--paid { background: var(--hpe-warm-soft); color: #8a5a10; }
.hpe-chip--free { background: var(--hpe-accent-soft); color: var(--hpe-accent-dark); }
.hpe-chip--live { background: #e8f6ee; color: #12804a; }
.hpe-chip--live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #18a35c; animation: hpe-pulse 1.6s infinite; }
.hpe-chip--muted { background: #f0f1f0; color: var(--hpe-muted); }
.hpe-chip--outline { background: transparent; border: 1px solid var(--hpe-border); color: var(--hpe-muted); font-weight: 500; }
.hpe-chip--status-pending { background: #fff4d6; color: #8a6a00; }
.hpe-chip--status-draft { background: #f0f1f0; color: var(--hpe-muted); }
.hpe-badge { font-style: normal; font-size: 0.7rem; padding: 2px 8px; border-radius: 999px; background: var(--hpe-warm); color: #4a3100; margin-left: 6px; vertical-align: 2px; }
@keyframes hpe-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ---------- Buttons (fallback if the theme doesn't style .button) ---------- */
.hpe-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; cursor: pointer; }
.hpe-btn .hpe-icon { width: 15px; height: 15px; }
/* Zero-specificity fallbacks: the theme's own .button styles win when present. */
:where(.hpe-btn) { padding: 11px 22px; border-radius: 999px; border: 0; font-weight: 600; font-size: 0.95rem; line-height: 1.3; }
:where(.hpe-btn--primary) { background: var(--hpe-accent); color: #fff; }
:where(.hpe-btn--secondary) { background: var(--hpe-warm); color: #3d2700; }
.hpe-upload input[type="file"], .hpe-field input[type="file"] { display: block; margin-bottom: 6px; max-width: 100%; }
.hpe-upload .hpe-help { margin: 0; }
.hpe-link { display: inline-flex; align-items: center; gap: 6px; color: var(--hpe-accent); font-weight: 600; text-decoration: none; font-size: 0.92rem; }
.hpe-link:hover { text-decoration: underline; }

/* ---------- Card ---------- */
.hpe-card {
	position: relative; display: flex; flex-direction: column;
	background: var(--hpe-bg); border-radius: var(--hpe-radius); overflow: hidden;
	box-shadow: var(--hpe-shadow); transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.hpe-card:hover { box-shadow: var(--hpe-shadow-hover); transform: translateY(-2px); }
.hpe-card__media { position: relative; display: block; aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--hpe-accent-soft), var(--hpe-warm-soft)); overflow: hidden; }
.hpe-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.hpe-card:hover .hpe-card__media img { transform: scale(1.04); }
.hpe-card__placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--hpe-accent); opacity: 0.45; }
.hpe-card__placeholder .hpe-icon { width: 48px; height: 48px; }

.hpe-datebadge {
	position: absolute; top: 12px; left: 12px;
	display: flex; flex-direction: column; align-items: center; min-width: 50px; padding: 6px 8px 7px;
	background: #fff; border-radius: 11px; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12); line-height: 1;
}
.hpe-datebadge__month { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #d9534f; }
.hpe-datebadge__day { font-size: 1.35rem; font-weight: 800; color: var(--hpe-text); margin-top: 3px; }

.hpe-price-tag {
	position: absolute; right: 12px; bottom: 12px;
	padding: 5px 12px; border-radius: 999px; font-size: 0.8rem; font-weight: 700;
	background: rgba(255, 255, 255, 0.95); color: var(--hpe-accent-dark); box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}
.hpe-price-tag--paid { background: var(--hpe-warm); color: #3d2700; }

.hpe-card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.hpe-card__meta-top { display: flex; flex-wrap: wrap; gap: 6px; }
.hpe-card__title { font-size: 1.08rem; line-height: 1.35; margin: 0; }
.hpe-card__title a { color: inherit; text-decoration: none; }
.hpe-card__title a:hover { color: var(--hpe-accent); }
.hpe-card__details { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; color: var(--hpe-muted); font-size: 0.88rem; }
.hpe-card__details li { display: flex; gap: 8px; align-items: flex-start; margin: 0; }
.hpe-card__details .hpe-icon { margin-top: 3px; color: var(--hpe-accent); opacity: 0.85; }

/* Save (bookmark) button */
.hpe-save {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	color: var(--hpe-text); text-decoration: none; cursor: pointer; line-height: 1;
	transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.hpe-save .hpe-icon { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linejoin: round; transition: fill 0.15s ease; }
.hpe-save.is-saved .hpe-icon { fill: currentColor; }
.hpe-save:active { transform: scale(0.92); }
.hpe-save:focus-visible { outline: 2px solid var(--hpe-accent); outline-offset: 2px; }
.hpe-save--icon {
	position: absolute; top: 12px; right: 12px; z-index: 2;
	width: 38px; height: 38px; border-radius: 50%;
	background: rgba(255, 255, 255, 0.95); box-shadow: 0 3px 10px rgba(0, 0, 0, 0.14);
}
.hpe-save--icon .hpe-save__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hpe-save--icon:hover { color: var(--hpe-accent); }
.hpe-save--icon.is-saved { color: var(--hpe-accent); }
.hpe-save--full {
	padding: 6px 14px; border: 1px solid var(--hpe-border); border-radius: 999px; background: #fff;
	font-size: 0.88rem; font-weight: 600;
}
.hpe-save--full:hover { border-color: var(--hpe-accent); color: var(--hpe-accent); }
.hpe-save--full.is-saved { background: var(--hpe-accent-soft); border-color: transparent; color: var(--hpe-accent-dark); }
.hpe-card.is-leaving { opacity: 0; transform: scale(0.96); transition: opacity 0.25s ease, transform 0.25s ease; }

/* Saved events page */
.hpe-saved__group { margin-bottom: 32px; }
.hpe-saved__heading { font-size: 1rem; margin: 0 0 14px; color: var(--hpe-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.hpe-saved__group--past .hpe-card { opacity: 0.72; }
.hpe-empty__alt { margin: 16px 0 0 !important; }
.hpe-manage__saves { display: inline-flex; align-items: center; gap: 4px; }
.hpe-manage__saves .hpe-icon { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; }

/* Row variant, used under listings */
.hpe-card--row { flex-direction: row; }
.hpe-card--row .hpe-card__media { flex: 0 0 210px; aspect-ratio: auto; min-height: 150px; }
.hpe-card--row .hpe-card__body { padding: 14px 60px 14px 18px; } /* room for the save button */
@media (max-width: 600px) {
	.hpe-card--row { flex-direction: column; }
	.hpe-card--row .hpe-card__media { flex: none; aspect-ratio: 16 / 9; min-height: 0; }
	.hpe-card--row .hpe-card__body { padding-right: 18px; }
}

/* ---------- Listing page section ---------- */
.hpe-listing-events { margin: 32px 0 8px; padding-top: 28px; border-top: 1px solid var(--hpe-border); }
.hpe-listing-events__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.hpe-host-cta {
	display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
	margin-top: 16px; padding: 14px 16px; border: 1px dashed var(--hpe-accent); border-radius: var(--hpe-radius-sm);
	background: var(--hpe-accent-soft); color: var(--hpe-accent-dark); font-size: 0.92rem;
}
.hpe-host-cta > span { display: flex; gap: 8px; align-items: flex-start; flex: 1 1 260px; }
.hpe-host-cta .hpe-icon { margin-top: 3px; }
.hpe-vendor-events { margin: 36px 0 12px; }

/* ---------- Search ---------- */
.hpe-search { margin: 0 0 22px; padding: 16px; background: var(--hpe-bg); border-radius: var(--hpe-radius); box-shadow: var(--hpe-shadow); }
.hpe-search__row { display: flex; flex-wrap: wrap; gap: 10px; }
.hpe-search__field { flex: 1 1 160px; margin: 0; }
.hpe-search__field--grow { flex: 2 1 260px; }
.hpe-search input[type="search"], .hpe-search input[type="text"], .hpe-search input[type="number"], .hpe-search select {
	width: 100%; height: 46px; padding: 0 14px; box-sizing: border-box;
	border: 1px solid var(--hpe-border); border-radius: var(--hpe-radius-sm); background: var(--hpe-bg-alt); font-size: 0.95rem;
}
.hpe-search button { height: 46px; padding: 0 26px; flex: 0 0 auto; }
.hpe-search__more { margin-top: 12px; }
.hpe-search__more summary { cursor: pointer; color: var(--hpe-accent); font-weight: 600; font-size: 0.9rem; }
.hpe-search__filters { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-top: 12px; }
.hpe-filter__label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--hpe-muted); margin-bottom: 4px; }
.hpe-range { display: flex; gap: 6px; }
.hpe-typebar { display: flex; gap: 8px; overflow-x: auto; margin-top: 14px; padding-bottom: 2px; scrollbar-width: thin; }
.hpe-typebar__item { position: relative; margin: 0; flex: none; }
.hpe-typebar__item input { position: absolute; opacity: 0; pointer-events: none; }
.hpe-typebar__item span {
	display: inline-block; padding: 7px 15px; border-radius: 999px; border: 1px solid var(--hpe-border);
	font-size: 0.86rem; font-weight: 600; cursor: pointer; background: var(--hpe-bg); color: var(--hpe-text); transition: all 0.15s;
}
.hpe-typebar__item span:hover { border-color: var(--hpe-accent); color: var(--hpe-accent); }
.hpe-typebar__item.is-active span, .hpe-typebar__item input:checked + span { background: var(--hpe-accent); border-color: var(--hpe-accent); color: #fff; }
.hpe-typebar__item input:focus-visible + span { outline: 2px solid var(--hpe-accent); outline-offset: 2px; }
.hpe-results-bar { display: flex; justify-content: space-between; align-items: center; margin: 0 0 16px; color: var(--hpe-muted); font-size: 0.92rem; }
.hpe-results-bar a { color: var(--hpe-accent); font-weight: 600; }
.hpe-pagination { margin-top: 32px; display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.hpe-pagination .page-numbers { min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--hpe-border); text-decoration: none; color: var(--hpe-text); }
.hpe-pagination .page-numbers.current { background: var(--hpe-accent); color: #fff; border-color: var(--hpe-accent); }
.hpe-archive-header { margin-bottom: 20px; }
.hpe-archive-header__title { margin: 0 0 6px; }
.hpe-archive-header__text { color: var(--hpe-muted); margin: 0; }

/* ---------- Empty states & notices ---------- */
.hpe-empty { text-align: center; padding: 48px 20px; background: var(--hpe-bg-alt); border-radius: var(--hpe-radius); color: var(--hpe-muted); }
.hpe-empty > .hpe-icon { width: 44px; height: 44px; color: var(--hpe-accent); opacity: 0.6; }
.hpe-empty h3 { color: var(--hpe-text); margin: 12px 0 6px; }
.hpe-empty p { max-width: 460px; margin: 0 auto 18px; }
.hpe-notice { padding: 12px 16px; border-radius: var(--hpe-radius-sm); margin: 0 0 18px; font-size: 0.94rem; border-left: 4px solid; }
.hpe-notice ul { margin: 6px 0 0 18px; padding: 0; }
.hpe-notice--success { background: #ecf8f0; border-color: #1f9d55; color: #155d34; }
.hpe-notice--error { background: #fdeeee; border-color: #d64545; color: #8a1f1f; }
.hpe-notice--info { background: #eef5fb; border-color: #3d8bd2; color: #1d4f7a; }
.hpe-notice--muted { background: #f3f4f3; border-color: #a5aca8; color: #505a54; }

/* ---------- Single event ---------- */
.hpe-event__header { margin-bottom: 20px; position: relative; }
.hpe-event__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.hpe-event__title { margin: 0 0 10px; font-size: clamp(1.6rem, 3.2vw, 2.3rem); line-height: 1.2; }
.hpe-event__summary { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--hpe-muted); }
.hpe-event__summary span { display: inline-flex; gap: 7px; align-items: center; }
.hpe-event__summary .hpe-icon { color: var(--hpe-accent); }
.hpe-event__tools { position: absolute; top: 0; right: 0; display: flex; gap: 8px; align-items: center; }
.hpe-event__edit { display: inline-flex; gap: 6px; align-items: center; font-size: 0.88rem; font-weight: 600; color: var(--hpe-accent); text-decoration: none; padding: 6px 12px; border: 1px solid var(--hpe-border); border-radius: 999px; background: #fff; }

.hpe-gallery { display: grid; gap: 8px; border-radius: var(--hpe-radius); overflow: hidden; margin-bottom: 28px; }
.hpe-gallery a { display: block; overflow: hidden; background: var(--hpe-bg-alt); }
.hpe-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s; }
.hpe-gallery a:hover img { transform: scale(1.03); }
.hpe-gallery__main { aspect-ratio: 16 / 7; }
.hpe-gallery--multi { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; height: 420px; }
.hpe-gallery--multi .hpe-gallery__main { grid-row: span 2; aspect-ratio: auto; }
@media (max-width: 760px) {
	.hpe-gallery--multi { grid-template-columns: 1fr 1fr; grid-template-rows: auto; height: auto; }
	.hpe-gallery--multi .hpe-gallery__main { grid-column: span 2; grid-row: auto; aspect-ratio: 16 / 9; }
	.hpe-gallery__thumb { aspect-ratio: 4 / 3; }
	.hpe-event__tools { position: static; margin-top: 12px; flex-wrap: wrap; }
}

.hpe-event__columns { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 36px; align-items: start; }
@media (max-width: 900px) { .hpe-event__columns { grid-template-columns: 1fr; } }
.hpe-event__section { margin-bottom: 32px; }
.hpe-event__description { line-height: 1.75; }
.hpe-event__description > *:first-child { margin-top: 0; }
.hpe-event__more { margin-top: 24px; padding-top: 28px; border-top: 1px solid var(--hpe-border); }

.hpe-attr-grid { list-style: none; margin: 0 0 28px; padding: 18px; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; background: var(--hpe-bg-alt); border-radius: var(--hpe-radius); }
.hpe-attr-grid li { margin: 0; display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; }
.hpe-attr-grid .hpe-icon { grid-row: span 2; width: 20px; height: 20px; color: var(--hpe-accent); }
.hpe-attr-grid__label { font-size: 0.78rem; color: var(--hpe-muted); }
.hpe-attr-grid__value { font-weight: 600; }

.hpe-stays { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.hpe-stay { display: flex; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--hpe-border); border-radius: var(--hpe-radius-sm); text-decoration: none; color: inherit; transition: border-color 0.15s, box-shadow 0.15s; }
.hpe-stay:hover { border-color: var(--hpe-accent); box-shadow: var(--hpe-shadow); }
.hpe-stay__img { flex: 0 0 56px; height: 56px; border-radius: 8px; overflow: hidden; background: var(--hpe-accent-soft); display: flex; align-items: center; justify-content: center; color: var(--hpe-accent); }
.hpe-stay__img img { width: 100%; height: 100%; object-fit: cover; }
.hpe-stay__text { display: flex; flex-direction: column; min-width: 0; }
.hpe-stay__text small { color: var(--hpe-muted); }

.hpe-event__sidebar { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 16px; }
.hpe-box { background: var(--hpe-bg); border-radius: var(--hpe-radius); box-shadow: var(--hpe-shadow); padding: 22px; }
.hpe-box--ticket { border-top: 4px solid var(--hpe-accent); }
.hpe-box__price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 14px; }
.hpe-box__amount { font-size: 1.9rem; font-weight: 800; line-height: 1; }
.hpe-box__per { color: var(--hpe-muted); font-size: 0.9rem; }
.hpe-box__list { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 0.93rem; }
.hpe-box__list li { display: flex; gap: 10px; margin: 0; }
.hpe-box__list .hpe-icon { margin-top: 3px; color: var(--hpe-accent); }
.hpe-box__actions { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.hpe-box__actions .hpe-btn { width: 100%; box-sizing: border-box; }
.hpe-box__actions .hpe-link { justify-content: center; margin-top: 2px; }
.hpe-box__disclaimer { display: flex; gap: 8px; margin: 16px 0 0; padding: 10px 12px; border-radius: var(--hpe-radius-sm); background: var(--hpe-warm-soft); color: #6d4a10; font-size: 0.82rem; line-height: 1.5; }
.hpe-box__disclaimer .hpe-icon { margin-top: 2px; }
.hpe-host { display: flex; gap: 12px; align-items: center; }
.hpe-host__avatar img { border-radius: 50%; display: block; }
.hpe-host__text { display: flex; flex-direction: column; }
.hpe-host__text small { color: var(--hpe-muted); }
.hpe-host__text a { color: inherit; text-decoration: none; }
.hpe-host__text a:hover { color: var(--hpe-accent); }

/* ---------- Dashboard ---------- */
.hpe-dashboard__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.hpe-dashboard__title { margin: 0 0 4px; }
.hpe-dashboard__sub { margin: 0; color: var(--hpe-muted); }
.hpe-quota { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-bottom: 24px; }
.hpe-quota__item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--hpe-radius); background: var(--hpe-accent-soft); }
.hpe-quota__item--paid { background: var(--hpe-warm-soft); }
.hpe-quota__icon { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #fff; color: var(--hpe-accent); flex: none; }
.hpe-quota__item--paid .hpe-quota__icon { color: #b07414; }
.hpe-quota__text { display: flex; flex-direction: column; flex: 1; }
.hpe-quota__text small { color: var(--hpe-muted); }
.hpe-quota__cta { font-weight: 700; font-size: 0.85rem; color: #8a5a10; white-space: nowrap; }

.hpe-manage { display: flex; flex-direction: column; gap: 12px; }
.hpe-manage__row { display: flex; gap: 16px; align-items: center; padding: 12px; background: var(--hpe-bg); border-radius: var(--hpe-radius); box-shadow: var(--hpe-shadow); }
.hpe-manage__row.is-ended { opacity: 0.65; }
.hpe-manage__thumb { flex: 0 0 84px; height: 84px; border-radius: 10px; overflow: hidden; background: var(--hpe-accent-soft); display: flex; align-items: center; justify-content: center; color: var(--hpe-accent); }
.hpe-manage__thumb img { width: 100%; height: 100%; object-fit: cover; }
.hpe-manage__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.hpe-manage__title { font-weight: 700; color: inherit; text-decoration: none; font-size: 1.02rem; }
.hpe-manage__title:hover { color: var(--hpe-accent); }
.hpe-manage__meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 0.86rem; color: var(--hpe-muted); }
.hpe-manage__where { display: flex; gap: 6px; align-items: center; font-size: 0.82rem; color: var(--hpe-muted); }
.hpe-manage__actions { display: flex; gap: 4px; }
.hpe-manage__actions a { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 10px; border-radius: 9px; color: var(--hpe-muted); text-decoration: none; font-size: 0.72rem; }
.hpe-manage__actions a:hover { background: var(--hpe-bg-alt); color: var(--hpe-accent); }
.hpe-manage__actions a.hpe-danger:hover { color: #c43c3c; background: #fdeeee; }
.hpe-manage__actions .hpe-icon { width: 18px; height: 18px; }
@media (max-width: 600px) {
	.hpe-manage__row { flex-wrap: wrap; }
	.hpe-manage__thumb { flex-basis: 64px; height: 64px; }
	.hpe-manage__actions { width: 100%; justify-content: flex-end; border-top: 1px solid var(--hpe-border); padding-top: 6px; }
}

/* ---------- Form ---------- */
.hpe-form-wrap { max-width: 820px; }
.hpe-back { display: inline-block; margin-bottom: 8px; color: var(--hpe-muted); text-decoration: none; font-size: 0.9rem; }
.hpe-back:hover { color: var(--hpe-accent); }
.hpe-form { margin-top: 18px; }
.hpe-panel { border: 0; margin: 0 0 18px; padding: 22px 22px 8px; background: var(--hpe-bg); border-radius: var(--hpe-radius); box-shadow: var(--hpe-shadow); min-width: 0; }
.hpe-panel__title { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; padding: 0; margin: 0 0 16px; float: left; width: 100%; }
.hpe-panel__title + * { clear: both; }
.hpe-panel__title span { width: 28px; height: 28px; border-radius: 50%; background: var(--hpe-accent); color: #fff; font-size: 0.85rem; display: inline-flex; align-items: center; justify-content: center; }
.hpe-field { margin-bottom: 16px; }
.hpe-field label.hp-form__label, .hpe-field .hp-field__label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.92rem; }
.hpe-field label small, .hpe-field__help, .hpe-help { color: var(--hpe-muted); font-weight: 400; font-size: 0.84rem; }
.hpe-help { margin: -6px 0 14px; }
.hpe-field input[type="text"], .hpe-field input[type="number"], .hpe-field input[type="url"], .hpe-field input[type="tel"], .hpe-field input[type="email"],
.hpe-field input[type="date"], .hpe-field input[type="time"], .hpe-field input[type="datetime-local"], .hpe-field select, .hpe-field textarea {
	width: 100%; box-sizing: border-box; padding: 11px 13px; border: 1px solid var(--hpe-border); border-radius: var(--hpe-radius-sm); background: var(--hpe-bg-alt); font-size: 0.96rem; font-family: inherit;
}
.hpe-field input:focus, .hpe-field select:focus, .hpe-field textarea:focus, .hpe-search input:focus, .hpe-search select:focus { outline: none; border-color: var(--hpe-accent); background: #fff; box-shadow: 0 0 0 3px var(--hpe-accent-soft); }
.hpe-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.hpe-cols--wrap .hpe-field--textarea, .hpe-cols--wrap .hpe-field--checkboxes { grid-column: 1 / -1; }
@media (max-width: 600px) { .hpe-cols { grid-template-columns: 1fr; } }
.hpe-checks { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.hpe-check { display: inline-flex; gap: 6px; align-items: center; font-weight: 400; cursor: pointer; }

.hpe-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
@media (max-width: 600px) { .hpe-choice { grid-template-columns: 1fr; } }
.hpe-choice__item { position: relative; margin: 0; cursor: pointer; }
.hpe-choice__item input { position: absolute; opacity: 0; pointer-events: none; }
.hpe-choice__card { display: flex; flex-direction: column; gap: 4px; height: 100%; box-sizing: border-box; padding: 14px 16px; border: 2px solid var(--hpe-border); border-radius: var(--hpe-radius-sm); transition: all 0.15s; }
.hpe-choice__card .hpe-icon { width: 22px; height: 22px; color: var(--hpe-accent); margin-bottom: 4px; }
.hpe-choice__card small { color: var(--hpe-muted); line-height: 1.45; }
.hpe-choice__item:hover .hpe-choice__card { border-color: #c9d6cd; }
.hpe-choice__item input:checked + .hpe-choice__card { border-color: var(--hpe-accent); background: var(--hpe-accent-soft); }
.hpe-choice__item input:focus-visible + .hpe-choice__card { outline: 2px solid var(--hpe-accent); outline-offset: 2px; }

.hpe-segment { display: inline-flex; padding: 4px; background: var(--hpe-bg-alt); border-radius: 999px; margin-bottom: 16px; flex-wrap: wrap; }
.hpe-segment label { margin: 0; cursor: pointer; }
.hpe-segment input { position: absolute; opacity: 0; pointer-events: none; }
.hpe-segment span { display: inline-block; padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: 0.9rem; color: var(--hpe-muted); }
.hpe-segment input:checked + span { background: #fff; color: var(--hpe-accent-dark); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08); }

.hpe-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-bottom: 16px; }
.hpe-pick { display: flex; gap: 10px; align-items: center; padding: 8px; border: 1px solid var(--hpe-border); border-radius: var(--hpe-radius-sm); cursor: pointer; margin: 0; }
.hpe-pick:has(input:checked) { border-color: var(--hpe-accent); background: var(--hpe-accent-soft); }
.hpe-pick__img { flex: 0 0 40px; height: 40px; border-radius: 7px; overflow: hidden; background: var(--hpe-accent-soft); display: flex; align-items: center; justify-content: center; color: var(--hpe-accent); }
.hpe-pick__img img { width: 100%; height: 100%; object-fit: cover; }
.hpe-pick__name { font-size: 0.9rem; font-weight: 600; line-height: 1.3; }

.hpe-upsell { display: flex; gap: 14px; padding: 16px 18px; margin-bottom: 16px; border-radius: var(--hpe-radius-sm); background: var(--hpe-warm-soft); color: #5c3d0b; }
.hpe-upsell > .hpe-icon { width: 24px; height: 24px; color: #c8860f; flex: none; }
.hpe-upsell p { margin: 4px 0 12px; font-size: 0.92rem; }

.hpe-upload { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.hpe-upload__current img { width: 160px; height: 100px; object-fit: cover; border-radius: 10px; display: block; }
.hpe-gallery-edit { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.hpe-gallery-edit__item { display: flex; flex-direction: column; gap: 4px; font-size: 0.82rem; margin: 0; }
.hpe-gallery-edit__item img { width: 90px; height: 90px; object-fit: cover; border-radius: 8px; display: block; }
.hpe-form__submit { display: flex; align-items: center; gap: 18px; margin-top: 8px; flex-wrap: wrap; }

[data-hpe-when][hidden], .hpe-form [hidden] { display: none !important; }

/* Lightbox */
.hpe-lightbox { position: fixed; inset: 0; z-index: 99999; background: rgba(10, 14, 12, 0.92); display: flex; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out; }
.hpe-lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; }

/* ---------- Inside "Host Dashboard for HivePress" ----------
   These rules only apply when that plugin is active (it adds body.ho-dash),
   so My Events and Saved Events use the dashboard's colours and shapes. */
body.ho-dash {
	--hpe-accent: var(--ho-green-2, #15803d);
	--hpe-accent-dark: var(--ho-green, #14532d);
	--hpe-accent-soft: #eef7f0;
	--hpe-text: var(--ho-ink, #1c1f1a);
	--hpe-muted: var(--ho-muted, #6b6f66);
	--hpe-border: var(--ho-line, #ebe7dc);
	--hpe-bg-alt: var(--ho-bg, #faf8f3);
	--hpe-radius: var(--ho-radius, 16px);
	--hpe-radius-sm: 10px;
	--hpe-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
	--hpe-shadow-hover: 0 6px 20px rgba(0, 0, 0, 0.08);
}
/* The page title is already in the card header and top bar. */
body.ho-dash .ho-content-card .hpe-dashboard__title { display: none; }
body.ho-dash .ho-content-card .hpe-dashboard__sub { font-size: 14px; }
body.ho-dash .ho-content-card .hpe-btn {
	padding: 9px 16px; border-radius: 10px; font-size: 14px; font-weight: 700;
	text-decoration: none !important; box-shadow: none;
}
body.ho-dash .ho-content-card .hpe-btn--primary { background: var(--ho-green, #14532d); color: var(--ho-btn-ink, #fff) !important; border: 0; }
body.ho-dash .ho-content-card .hpe-btn--secondary { background: #fff; color: var(--ho-ink, #1c1f1a) !important; border: 1px solid var(--ho-line, #ebe7dc); }
body.ho-dash .ho-content-card .hpe-btn:hover { filter: brightness(0.94); }
body.ho-dash .ho-content-card .hpe-manage__row,
body.ho-dash .ho-content-card .hpe-card { border: 1px solid var(--ho-line, #ebe7dc); }
body.ho-dash .ho-content-card .hpe-quota__item { border-radius: 12px; }
body.ho-dash .ho-content-card .hpe-empty { border: 1px dashed var(--ho-line, #ebe7dc); }
body.ho-dash .ho-content-card .hpe-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
/* Event sections on the Dashboard page */
body.ho-dash .hpe-ho-grid { margin-top: 20px; }
body.ho-dash .hpe-ho-hint { margin: 12px 0 0; font-size: 13px; }

