/**
 * Septembers Events — front-end styles for /events/ and /event/{slug}/.
 * Design: dark (#0e0e0e) surfaces, copper (#ad631e) accent, Oswald type
 * (inherited from the Hares theme body font).
 *
 * Everything is scoped under .sept-events / .sept-event-single, plus a few
 * defensive body-class rules to neutralize theme content-wrapper padding.
 */

/* ---- Theme wrapper neutralization -------------------------------------- */
.post-type-archive-septembers_event .content-inner,
.single-septembers_event .content-inner {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	min-height: 0 !important;
}

/* ---- Shared ------------------------------------------------------------- */
.sept-events,
.sept-event-single {
	background: #0e0e0e;
	color: #fff;
}

.sept-events a,
.sept-event-single a {
	text-decoration: none;
}

.sept-icon {
	vertical-align: -2px;
	margin-right: 5px;
	color: #ad631e;
}

/* ---- Page background image (Customizer: Events Page) -------------------- */
.sept-body-has-img {
	background-size: cover;
	background-position: center top;
	background-repeat: no-repeat;
	background-attachment: fixed;
}

/* "Repeat" style (Customizer): tile the image at natural size — for textures. */
.sept-body-img-repeat {
	background-size: auto;
	background-repeat: repeat;
}

@media (max-width: 1024px) {
	.sept-body-has-img {
		background-attachment: scroll; /* fixed backgrounds mis-render on mobile */
	}
}

/* ---- Dark-text palette ----------------------------------------------------
 * Applied via .sept-text-dark when the page background is light (auto mode
 * reads the background color's brightness; the client can also force it in
 * Customizer > Events Page > Text color). Hero text is unaffected — the hero
 * has its own background settings.
 * ------------------------------------------------------------------------ */
.sept-text-dark .sept-event-title a { color: #1b1b1b; }
.sept-text-dark .sept-day { color: #1b1b1b; }
.sept-text-dark .sept-event-meta { color: #555; }
.sept-text-dark .sept-event-row { border-top-color: rgba(0, 0, 0, .15); }
.sept-text-dark .sept-filter { border-color: #c5c5c5; color: #444; }
.sept-text-dark .sept-filter:hover { border-color: #ad631e; color: #ad631e; }
.sept-text-dark .sept-filter.is-active { border-color: #ad631e; color: #fff; }
.sept-text-dark .sept-month { color: #ad631e; }
.sept-text-dark .sept-no-match,
.sept-text-dark .sept-empty { color: #555; border-top-color: rgba(0, 0, 0, .15); }
.sept-text-dark .sept-thumb { background: #e9e5e0; }
.sept-text-dark .sept-pagination .page-numbers { color: #444; border-color: #c5c5c5; }
.sept-text-dark .sept-pagination .page-numbers.current,
.sept-text-dark .sept-pagination .page-numbers:hover { color: #fff; }
.sept-text-dark .sept-btn-ghost { color: #666 !important; }
.sept-text-dark .sept-btn-ghost:hover { color: #ad631e !important; }
.sept-text-dark .sept-single-content,
.sept-text-dark .sept-single-content p { color: #333; }

.sept-btn {
	display: inline-block;
	font-size: 12px;
	letter-spacing: 2px;
	text-transform: uppercase;
	padding: 10px 22px;
	line-height: 1.4;
	white-space: nowrap;
	transition: background .2s, color .2s, border-color .2s;
}

.sept-btn-solid {
	background: #ad631e;
	color: #fff !important;
}
.sept-btn-solid:hover {
	background: #c47426;
	color: #fff !important;
}

.sept-btn-outline {
	border: 1px solid #ad631e;
	color: #ad631e !important;
}
.sept-btn-outline:hover {
	background: #ad631e;
	color: #fff !important;
}

.sept-btn-ghost {
	color: #999 !important;
	padding-left: 0;
	padding-right: 0;
}
.sept-btn-ghost:hover {
	color: #ad631e !important;
}
.sept-btn-ghost .sept-icon {
	color: inherit;
}

/* ---- Archive: hero -------------------------------------------------------
 * Matches the full-height image heroes on the site's other pages
 * ~60vh flex row (matching the other pages' hero height), cover background with
 * fixed attachment on desktop / scroll on tablet+mobile (mobile browsers
 * mis-render fixed backgrounds), black overlay at 0.3, centered content.
 * ------------------------------------------------------------------------ */
.sept-events-hero {
	position: relative;
	min-height: 60vh; /* ~"a little more than half the screen", matching the other pages' heroes */
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #281c15;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	background-attachment: fixed;
	text-align: center;
}

.sept-events-hero-overlay {
	position: absolute;
	inset: 0;
	background: #000;
	opacity: .3;
}

/* Color-only hero (image removed in Customizer): drop the darkening overlay
   so the chosen color displays exactly as picked. */
.sept-events-hero-noimg .sept-events-hero-overlay {
	background: transparent;
}

.sept-events-hero-content {
	position: relative;
	padding: 0 24px;
}

@media (max-width: 1024px) {
	.sept-events-hero {
		background-attachment: scroll;
	}
}

.sept-events-inner {
	max-width: 1140px;
	margin: 0 auto;
	padding: 60px 24px 80px;
}

.sept-events-title {
	color: #fff;
	font-size: 72px;
	font-weight: 700;
	line-height: 1.5;
	text-align: center;
	letter-spacing: 4px;
	text-transform: uppercase;
	margin: 0;
}

.sept-rule {
	width: 48px;
	height: 3px;
	background: #ad631e;
	margin: 16px 0;
}

.sept-events-tagline {
	color: #e6e6e6;
	font-size: 18px;
	font-weight: 300;
	letter-spacing: 1px;
	margin: 14px 0 0;
}

/* ---- Archive: filters ---------------------------------------------------- */
.sept-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 40px;
}

.sept-filter {
	background: transparent;
	border: 1px solid #3a3a3a;
	border-radius: 0;
	color: #bbb;
	font-size: 12px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	padding: 8px 16px;
	cursor: pointer;
	transition: border-color .2s, color .2s, background .2s;
}

.sept-filter:hover {
	border-color: #ad631e;
	color: #ad631e;
}

.sept-filter.is-active {
	background: #ad631e;
	border-color: #ad631e;
	color: #fff;
}

/* ---- Archive: month headers + rows -------------------------------------- */
.sept-month {
	color: #ad631e;
	font-size: 22px; /* larger than event titles (19px) per client */
	font-weight: 500;
	letter-spacing: 3px;
	text-transform: uppercase;
	margin: 36px 0 10px;
}

.sept-month:first-child {
	margin-top: 0;
}

.sept-event-row {
	display: flex;
	align-items: center;
	gap: 22px;
	padding: 18px 0;
	border-top: 1px solid #232323;
}

.sept-date-block {
	width: 56px;
	text-align: center;
	flex-shrink: 0;
}

.sept-dow {
	display: block;
	color: #ad631e;
	font-size: 12px;
	letter-spacing: 2px;
}

.sept-day {
	display: block;
	color: #fff;
	font-size: 32px;
	font-weight: 500;
	line-height: 1.1;
}

.sept-thumb {
	width: 110px;
	height: 72px;
	flex-shrink: 0;
	background: #1e1e1e;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.sept-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.sept-thumb-fallback {
	color: #ad631e;
	font-size: 26px;
	font-weight: 500;
	opacity: .55;
}

.sept-event-info {
	flex: 1;
	min-width: 0;
}

.sept-event-title {
	font-size: 19px;
	font-weight: 500;
	letter-spacing: .5px;
	margin: 0 0 5px;
}

.sept-event-title a {
	color: #fff;
}

.sept-event-title a:hover {
	color: #ad631e;
}

.sept-event-meta {
	color: #999;
	font-size: 13px;
	font-weight: 300;
	letter-spacing: .3px;
	margin: 0;
}

.sept-meta-item {
	margin-right: 18px;
	white-space: nowrap;
}

.sept-no-match,
.sept-empty {
	color: #a9a9a9;
	font-size: 15px;
	font-weight: 300;
	padding: 30px 0;
	border-top: 1px solid #232323;
}

.sept-pagination {
	margin-top: 40px;
}

.sept-pagination .page-numbers {
	color: #bbb;
	border: 1px solid #3a3a3a;
	padding: 8px 14px;
	margin-right: 6px;
	font-size: 13px;
}

.sept-pagination .page-numbers.current,
.sept-pagination .page-numbers:hover {
	background: #ad631e;
	border-color: #ad631e;
	color: #fff;
}

/* ---- Single event -------------------------------------------------------- */
.sept-single-hero {
	position: relative;
	min-height: 380px;
	background-color: #191919;
	background-size: cover;
	background-position: center;
	display: flex;
	align-items: flex-end;
}

/* Photo focus (per-event "Photo focus" field): which part of the image
   survives the crop, in both the single hero and the archive thumbnail. */
.sept-hero-align-top {
	background-position: center top;
}
.sept-hero-align-center {
	background-position: center center;
}
.sept-hero-align-bottom {
	background-position: center bottom;
}
.sept-thumb-align-top img {
	object-position: center top;
}
.sept-thumb-align-center img {
	object-position: center center;
}
.sept-thumb-align-bottom img {
	object-position: center bottom;
}

.sept-single-hero-overlay {
	position: absolute;
	inset: 0;
	background: rgba(8, 8, 8, .55);
}

.sept-single-hero-noimg .sept-single-hero-overlay {
	background: transparent;
}

.sept-single-hero-content {
	position: relative;
	width: 100%;
	max-width: 1140px;
	margin: 0 auto;
	padding: 120px 24px 34px;
}

.sept-kicker {
	color: #ad631e;
	font-size: 13px;
	letter-spacing: 3px;
	text-transform: uppercase;
	margin: 0 0 8px;
}

.sept-single-title {
	color: #fff;
	font-size: 40px;
	font-weight: 500;
	letter-spacing: 2px;
	text-transform: uppercase;
	margin: 0;
}

.sept-detail-bar {
	background: #151515;
	border-top: 1px solid #232323;
	border-bottom: 1px solid #232323;
}

.sept-detail-bar-inner {
	max-width: 1140px;
	margin: 0 auto;
	padding: 16px 24px;
	display: flex;
	flex-wrap: wrap;
	gap: 12px 30px;
}

.sept-detail {
	color: #ddd;
	font-size: 14px;
	font-weight: 300;
	letter-spacing: .3px;
	white-space: nowrap;
}

.sept-single-body {
	max-width: 760px;
	margin: 0 auto;
	padding: 40px 24px 80px;
}

.sept-single-content {
	color: #b5b5b5;
	font-size: 15px;
	font-weight: 300;
	line-height: 1.9;
	letter-spacing: .3px;
}

.sept-single-content p {
	color: #b5b5b5;
}

.sept-single-actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 20px;
	margin-top: 32px;
}

.sept-back {
	margin-top: 40px;
}

.sept-back a {
	color: #ad631e;
	font-size: 12px;
	letter-spacing: 2px;
	text-transform: uppercase;
}

.sept-back a:hover {
	color: #c47426;
}

/* ---- Mobile --------------------------------------------------------------
 * WVC display:table overflow lessons don't apply here (our own markup),
 * but embedded content stays wrapped just in case.
 * ------------------------------------------------------------------------ */
@media (max-width: 767px) {
	.sept-events-inner {
		padding: 40px 18px 60px;
	}

	.sept-events-title {
		font-size: 42px;
		letter-spacing: 3px;
	}

	.sept-events-tagline {
		font-size: 16px;
	}

	.sept-event-row {
		flex-wrap: wrap;
		gap: 14px;
	}

	.sept-thumb {
		width: 84px;
		height: 56px;
	}

	.sept-event-info {
		flex-basis: calc(100% - 190px);
	}

	.sept-event-row .sept-btn {
		margin-left: 70px;
	}

	.sept-single-title {
		font-size: 28px;
	}

	.sept-single-hero {
		min-height: 280px;
	}

	.sept-meta-item {
		display: inline-block;
		margin-bottom: 4px;
	}
}
