/* PA Hub Events — single event, archive and registration panel.
   Kept outside style.scss so Prepros builds don't overwrite it. */

.pahub-event-single {
	padding: 2rem 0;
}
@media only screen and (min-width: 48.0625rem) {
	.pahub-event-single--header {
		padding-top: 8rem;
	}
}

/* "All Events" button: same look as the header's My Account button. */
.pahub-event-back .pahub-event-back__button {
	background-color: #8e8e8e;
	border-color: #8e8e8e;
}

.pahub-event-title {
	margin: 1rem 0 0.5rem;
}

.pahub-event-schedule {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.5rem 1.5rem;
	margin-bottom: 1.5rem;
}
.pahub-event-schedule h2 {
	margin: 0;
}
.pahub-event-cost {
	font-weight: 700;
	color: rgb(149, 27, 129);
}

.pahub-event-nav {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem 0;
	border-top: 1px solid rgba(0, 0, 0, 0.1);
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
	font-size: 0.9rem;
}
.pahub-event-nav a {
	color: rgb(42, 42, 42);
}
.pahub-event-nav a:hover {
	color: rgb(149, 27, 129);
}
.pahub-event-nav__next {
	text-align: right;
	margin-left: auto;
}

.pahub-event-description {
	margin-bottom: 2rem;
}

.pahub-event-meta {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem 2rem;
	padding: 2rem;
	margin-bottom: 2rem;
	background-color: rgb(248, 248, 248);
	border: 1px solid #eee;
}
.pahub-event-meta h3 {
	font-weight: 700;
	color: rgb(149, 27, 129);
	font-size: 1.125rem;
	margin: 0 0 0.5rem;
}
.pahub-event-meta p {
	margin: 0;
}

/* Registration panel (filled in by the plugin) */
.pahub-event-registration {
	margin-bottom: 2rem;
	scroll-margin-top: 6rem;
}
.pahub-event-registration h2 {
	font-weight: 700;
	color: rgb(149, 27, 129);
	font-size: 2rem;
	line-height: 2rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
	margin-bottom: 1rem;
}

/* Archive */
.pahub-events-toggle {
	margin-top: 1rem;
}
.pahub-events-archive .events-listing {
	margin-bottom: 1.5rem;
}
.pahub-event-card__format {
	display: block;
	font-size: 0.875rem;
	opacity: 0.75;
}
.pahub-events-pagination .nav-links {
	display: flex;
	justify-content: center;
	gap: 0.75rem;
	padding-top: 1rem;
}
.pahub-events-pagination .page-numbers.current {
	font-weight: 700;
	color: rgb(149, 27, 129);
}

/* Registration panel */
.pahub-reg__notice {
	padding: 1rem 1.25rem;
	margin-bottom: 1.5rem;
	border-left: 4px solid;
	background: #fff;
}
.pahub-reg__notice:focus {
	outline: 2px solid rgb(149, 27, 129);
	outline-offset: 2px;
}
.pahub-reg__notice--success {
	border-color: #2e7d32;
	background: #f1f8f1;
}
.pahub-reg__notice--error {
	border-color: #b32d2e;
	background: #fcf0f1;
}
.pahub-reg__notice ul {
	margin: 0.5rem 0 0 1.25rem;
	list-style: disc;
}
.pahub-reg__places,
.pahub-reg__closed {
	font-weight: 600;
}
.pahub-reg__options {
	display: grid;
	gap: 2rem;
}
@media only screen and (min-width: 48.0625rem) {
	.pahub-reg__options {
		grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
		align-items: start;
	}
}
.pahub-reg__box {
	padding: 2rem;
	background-color: rgb(248, 248, 248);
	border: 1px solid #eee;
}
.pahub-reg__box h3 {
	font-weight: 700;
	font-size: 1.25rem;
	margin: 0 0 1rem;
}
.pahub-reg__note,
.pahub-reg__as {
	font-size: 0.9rem;
}
.pahub-reg__qty {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 1rem;
}
.pahub-reg__qty select {
	padding: 0.4rem 0.6rem;
	font-size: 1rem;
}
.pahub-reg__total {
	font-weight: 700;
	color: rgb(149, 27, 129);
}
.pahub-reg__attendee {
	border: 1px solid #ddd;
	background: #fff;
	padding: 1rem 1.25rem 0.25rem;
	margin: 1rem 0;
}
.pahub-reg__attendee[hidden] {
	display: none;
}
.pahub-reg__attendee legend {
	font-weight: 700;
	padding: 0 0.5rem;
}
.pahub-reg__field label {
	display: block;
	font-size: 0.9rem;
	font-weight: 600;
	margin-bottom: 0.25rem;
}
.pahub-reg__field input {
	box-sizing: border-box;
	width: 100%;
	padding: 0.55rem 0.7rem;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 1rem;
}
.pahub-reg__field input:focus {
	border-color: rgb(149, 27, 129);
	outline: 2px solid rgba(149, 27, 129, 0.25);
}
.pahub-reg__req {
	color: #b32d2e;
}
.pahub-reg__consent label {
	display: flex;
	gap: 0.6rem;
	align-items: flex-start;
	font-size: 0.9rem;
}
.pahub-reg__consent input {
	margin-top: 0.25rem;
	flex-shrink: 0;
}
.pahub-reg__hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Attendee details modal */
.pahub-reg__modal {
	width: min(40rem, calc(100vw - 2rem));
	max-height: calc(100vh - 2rem);
	padding: 0;
	border: 0;
	border-radius: 8px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	overflow: hidden;
}
.pahub-reg__modal[open] {
	display: flex;
	flex-direction: column;
}
.pahub-reg__modal::backdrop {
	background: rgba(20, 20, 30, 0.6);
}
html.pahub-modal-open {
	overflow: hidden;
}
.pahub-reg__modal-head,
.pahub-reg__modal-foot {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 1rem 1.5rem;
	background: #fff;
}
.pahub-reg__modal-head {
	justify-content: space-between;
	border-bottom: 1px solid #eee;
}
.pahub-reg__modal-head h3 {
	margin: 0;
	font-weight: 700;
	font-size: 1.25rem;
	color: rgb(149, 27, 129);
}
.pahub-reg__modal-foot {
	justify-content: flex-end;
	border-top: 1px solid #eee;
}
.pahub-reg__modal-body {
	padding: 1rem 1.5rem;
	overflow-y: auto;
	background: rgb(248, 248, 248);
}
.pahub-reg__close {
	border: 0;
	background: none;
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
	padding: 0.25rem 0.5rem;
	color: #555;
}
.pahub-reg__close:hover,
.pahub-reg__close:focus {
	color: rgb(149, 27, 129);
}
.pahub-reg__summary {
	margin: 0 0 1rem;
}
.pahub-reg__open {
	margin-top: 0.5rem;
}

/* Status banner */
.pahub-event-status {
	margin: 0 0 1.5rem;
	padding: 0.9rem 1.25rem;
	border-left: 4px solid #8a5a00;
	background: #fcf3e3;
	font-weight: 600;
}
.pahub-event-status--cancelled {
	border-color: #b32d2e;
	background: #fcf0f1;
}

/* Topics */
.pahub-topics {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.pahub-topic {
	display: inline-block;
	margin: 0;
	padding: 0.15rem 0.7rem;
	border-radius: 1rem;
	background: #fff;
	border: 1px solid rgba(149, 27, 129, 0.35);
	color: rgb(149, 27, 129);
	font-size: 0.875rem;
	line-height: 1.5;
}
.pahub-topic::before {
	content: none;
}

/* Details box: three columns (when + topics | where | map + category) */
@media only screen and (min-width: 48.0625rem) {
	.pahub-event-meta {
		grid-template-columns: 1fr 1fr 1.3fr;
	}
	/* Online events have no map: two columns across the full width. */
	.pahub-event-meta--no-map {
		grid-template-columns: 1fr 1fr;
	}
}
.pahub-event-meta__col {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	min-width: 0;
}
.pahub-event-meta__col:empty {
	display: none;
}

/* Venue map */
.pahub-event-map {
	margin: 0;
}
.pahub-event-map iframe {
	display: block;
	width: 100%;
	height: 240px;
	border: 1px solid #e2e2e2;
	background: #f0f0f1;
}
.pahub-event-map__links {
	margin-top: 0.5rem;
	font-size: 0.9rem;
}
.pahub-event-map__links a {
	color: rgb(149, 27, 129);
	font-weight: 600;
}

/* Events list: one row per event (date | details | image), grouped by month */
.pahub-event-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 1.75rem;
}
.pahub-event-row {
	margin: 0;
}

/* Month dividers */
.pahub-event-month {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin: 1.5rem 0 0;
}
.pahub-event-month:first-child {
	margin-top: 0;
}
.pahub-event-month::after {
	content: "";
	flex: 1;
	height: 1px;
	background: #d9d9d9;
}
.pahub-event-month__label {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.2;
	color: rgb(42, 42, 42);
	text-align: left;
	white-space: nowrap;
}

.pahub-event-row__link {
	display: grid;
	grid-template-columns: 3.5rem minmax(0, 1fr) 15rem;
	gap: 1.5rem;
	align-items: start;
	color: rgb(42, 42, 42);
}
.pahub-event-row--no-image .pahub-event-row__link {
	grid-template-columns: 3.5rem minmax(0, 1fr);
}
.pahub-event-row__link:hover,
.pahub-event-row__link:focus-visible {
	color: rgb(42, 42, 42);
}
.pahub-event-row__link:focus-visible {
	outline: 2px solid rgb(149, 27, 129);
	outline-offset: 4px;
}

/* Date block */
.pahub-event-row__date {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-start;
	color: rgb(42, 42, 42);
	text-align: left;
	line-height: 1.1;
}
.pahub-event-row__dow {
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}
.pahub-event-row__day {
	font-size: 1.75rem;
	font-weight: 700;
	margin: 0.1rem 0 0;
}
/* Details */
.pahub-event-row__title {
	margin: 0 0 0.5rem;
	text-align: left;
	font-size: 1.35rem;
	line-height: 1.3;
	color: rgb(204, 14, 116); /* Theme pink ($cta). */
	transition: color 0.2s ease;
}
.pahub-event-row__link:hover .pahub-event-row__title,
.pahub-event-row__link:focus-visible .pahub-event-row__title {
	color: rgb(149, 27, 129); /* Theme purple ($paprimary). */
}
.pahub-event-row__status {
	display: inline-block;
	vertical-align: middle;
	margin-left: 0.4rem;
	padding: 0.1rem 0.55rem;
	border-radius: 1rem;
	background: #fcf3e3;
	color: #8a5a00;
	font-size: 0.75rem;
	font-weight: 600;
}
.pahub-event-row__status--cancelled {
	background: #fcf0f1;
	color: #b32d2e;
}
.pahub-event-row__excerpt {
	margin: 0 0 0.6rem;
	color: #525252;
}
.pahub-event-row__location,
.pahub-event-row__time,
.pahub-event-row__price {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	margin: 0;
	font-size: 0.9rem;
	font-weight: 600;
	color: rgb(149, 27, 129);
}
.pahub-event-row__location svg,
.pahub-event-row__time svg,
.pahub-event-row__price svg {
	flex-shrink: 0;
}
.pahub-event-row__time,
.pahub-event-row__price {
	margin-top: 0.3rem;
	font-weight: 400;
	color: #525252;
}
.pahub-event-row__price {
	font-weight: 600;
	color: rgb(42, 42, 42);
}

/* Image */
.pahub-event-row__image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

/* Phones: date + details side by side, image across the top */
@media only screen and (max-width: 48rem) {
	.pahub-event-row__link,
	.pahub-event-row--no-image .pahub-event-row__link {
		grid-template-columns: 3rem minmax(0, 1fr);
		gap: 1rem;
	}
	.pahub-event-row__image {
		grid-column: 1 / -1;
		grid-row: 1;
	}
	.pahub-event-row__day {
		font-size: 1.5rem;
	}
	.pahub-event-row__title {
		font-size: 1.15rem;
	}
	.pahub-event-row__excerpt {
		display: -webkit-box;
		-webkit-line-clamp: 3;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}
}

/* Speakers (above the event details) */
.pahub-speakers {
	margin: 0 0 2rem;
}
.pahub-speakers__title {
	margin: 0 0 1rem;
	font-size: 1.5rem;
	font-weight: 700;
	text-align: left;
	color: rgb(42, 42, 42);
}
.pahub-speakers__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
	gap: 1rem 1.5rem;
}
.pahub-speaker {
	margin: 0;
}
.pahub-speaker__inner {
	display: flex;
	align-items: center;
	gap: 1rem;
	color: rgb(42, 42, 42);
}
a.pahub-speaker__inner:hover .pahub-speaker__name,
a.pahub-speaker__inner:focus-visible .pahub-speaker__name {
	color: rgb(149, 27, 129);
}
a.pahub-speaker__inner:focus-visible {
	outline: 2px solid rgb(149, 27, 129);
	outline-offset: 4px;
}
.pahub-speaker__image {
	flex: 0 0 4.5rem;
	width: 4.5rem;
	height: 4.5rem;
	border-radius: 50%;
	overflow: hidden;
	background: #ececec;
	display: flex;
	align-items: center;
	justify-content: center;
}
.pahub-speaker__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.pahub-speaker__initials {
	font-size: 1.25rem;
	font-weight: 700;
	color: rgb(149, 27, 129);
}
.pahub-speaker__text {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	min-width: 0;
}
.pahub-speaker__name {
	font-weight: 700;
	font-size: 1.05rem;
	color: rgb(204, 14, 116);
	transition: color 0.2s ease;
}
.pahub-speaker__job {
	font-size: 0.9rem;
	color: #525252;
}
.pahub-speaker__more {
	font-size: 0.8rem;
	font-weight: 600;
	color: rgb(149, 27, 129);
}
