/**
 * Single event “editorial” layout (sidebar + main column).
 *
 * @package TribeEventsCalendar
 */

.single-tribe_events #tribe-events-pg-template,
.single-tribe_events #tribe-events {
	overflow-x: hidden;
}

.tec-editorial-single {
	--tec-editorial-accent: #c41230;
	--tec-editorial-border: #e0e0e0;
	--tec-editorial-muted: #6b6b6b;
	--tec-editorial-max: 1200px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: #111;
	background: #fff;
}

.tec-editorial-single__toolbar-top {
	max-width: var(--tec-editorial-max);
	margin: 0 auto;
	padding: 1rem 1.5rem 0;
}

.tec-editorial-single .tribe-events-back {
	margin: 0 0 0.75rem;
}

.tec-editorial-single .tribe-events-back a {
	color: inherit;
	text-decoration: none;
	border-bottom: 1px solid var(--tec-editorial-border);
}

.tec-editorial-single .tribe-events-notices {
	margin-bottom: 1rem;
}

.tec-editorial-single__layout {
	display: grid;
	grid-template-columns: 1fr;
	max-width: var(--tec-editorial-max);
	margin: 0 auto;
	min-height: 60vh;
	border-top: 1px solid var(--tec-editorial-border);
}

@media (min-width: 900px) {
	.tec-editorial-single__layout {
		grid-template-columns: minmax(220px, 26%) 1fr;
	}
}

/* Sidebar */
.tec-editorial-single__sidebar {
	border-bottom: 1px solid var(--tec-editorial-border);
	position: relative;
}

@media (min-width: 900px) {
	.tec-editorial-single__sidebar {
		border-bottom: none;
		border-right: 1px solid var(--tec-editorial-border);
	}
}

.tec-editorial-single__sidebar-inner {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 0 1.25rem;
	padding: 1.5rem 1.25rem 2rem;
	align-items: start;
}

@media (min-width: 900px) {
	.tec-editorial-single__sidebar-inner {
		padding: 2rem 1.25rem 2rem 1.5rem;
		min-height: 100%;
	}
}

.tec-editorial-single__logo {
	grid-column: 1 / -1;
	margin-bottom: 0.5rem;
}

.tec-editorial-single__logo .custom-logo-link,
.tec-editorial-single__logo a {
	display: inline-block;
	max-width: 140px;
}

.tec-editorial-single__logo img {
	display: block;
	height: auto;
	width: auto;
	max-height: 72px;
}

.tec-editorial-single__rail-label {
	display: none;
	writing-mode: vertical-rl;
	transform: rotate(180deg);
	font-size: 0.65rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--tec-editorial-muted);
	white-space: nowrap;
	padding-top: 0.5rem;
}

@media (min-width: 900px) {
	.tec-editorial-single__rail-label {
		display: block;
		grid-column: 1;
		grid-row: 2;
		justify-self: start;
	}
}

.tec-editorial-single__sidebar-feed {
	grid-column: 1 / -1;
}

@media (min-width: 900px) {
	.tec-editorial-single__sidebar-feed {
		grid-column: 2;
		grid-row: 2;
	}
}

.tec-editorial-single__feed-item {
	padding: 1rem 0;
	border-top: 1px solid var(--tec-editorial-border);
}

.tec-editorial-single__feed-item:first-of-type {
	border-top: none;
	padding-top: 0;
}

.tec-editorial-single__feed-kicker {
	font-size: 0.65rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--tec-editorial-muted);
	margin: 0 0 0.35rem;
}

.tec-editorial-single__feed-title {
	margin: 0 0 0.35rem;
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.3;
}

.tec-editorial-single__feed-title a {
	color: inherit;
	text-decoration: none;
}

.tec-editorial-single__feed-title a:hover {
	text-decoration: underline;
}

.tec-editorial-single__feed-meta {
	font-size: 0.75rem;
	color: var(--tec-editorial-muted);
	margin: 0 0 0.5rem;
}

.tec-editorial-single__feed-excerpt {
	font-size: 0.8rem;
	line-height: 1.55;
	color: #333;
	margin: 0;
}

/* Main column */
.tec-editorial-single__main {
	padding: 1.75rem 1.5rem 3rem;
}

@media (min-width: 900px) {
	.tec-editorial-single__main {
		padding: 2.5rem 2.5rem 3.5rem 2.75rem;
	}
}

.tec-editorial-single__eyebrow {
	display: block;
	font-size: 0.65rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--tec-editorial-muted);
	margin-bottom: 0.5rem;
}

.tec-editorial-single .tribe-events-single-event-title {
	font-size: clamp(1.75rem, 4vw, 2.75rem);
	font-weight: 700;
	line-height: 1.1;
	margin: 0 0 1.25rem;
	letter-spacing: -0.02em;
}

.tec-editorial-single__meta-row {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem 2rem;
	margin-bottom: 1.75rem;
}

@media (min-width: 600px) {
	.tec-editorial-single__meta-row {
		grid-template-columns: 1fr 1fr;
	}
}

.tec-editorial-single__meta-col {
	display: flex;
	gap: 0.65rem;
	align-items: flex-start;
	font-size: 0.9rem;
	line-height: 1.45;
}

.tec-editorial-single__meta-icon {
	flex: 0 0 1.25rem;
	width: 1.25rem;
	height: 1.25rem;
	margin-top: 0.15rem;
	opacity: 0.55;
}

.tec-editorial-single__meta-icon svg {
	display: block;
	width: 100%;
	height: 100%;
}

.tec-editorial-single__schedule .tribe-events-abbr {
	border: none;
	text-decoration: none;
	cursor: inherit;
}

.tec-editorial-single__schedule,
.tec-editorial-single__schedule .tribe-events-divider {
	font-size: inherit;
	color: inherit;
}

.tec-editorial-single__cost {
	margin-top: 0.35rem;
	font-size: 0.85rem;
	color: var(--tec-editorial-muted);
}

.tec-editorial-single__hero {
	margin: 0 -1.5rem 0;
}

@media (min-width: 900px) {
	.tec-editorial-single__hero {
		margin: 0;
	}
}

.tec-editorial-single__hero .tribe-events-event-image,
.tec-editorial-single__hero img {
	display: block;
	width: 100%;
	height: auto;
}

.tec-editorial-single__hero .tribe-events-event-image {
	margin: 0;
}

/* Action bar */
.tec-editorial-single__action-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem 0 1.75rem;
	border-bottom: 1px solid var(--tec-editorial-border);
	margin-bottom: 1.75rem;
}

.tec-editorial-single__social {
	display: flex;
	gap: 0.65rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.tec-editorial-single__social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	color: var(--tec-editorial-muted);
	border: 1px solid var(--tec-editorial-border);
	text-decoration: none;
	transition: color 0.15s, border-color 0.15s;
}

.tec-editorial-single__social a:hover {
	color: #111;
	border-color: #bbb;
}

.tec-editorial-single__social svg {
	width: 14px;
	height: 14px;
	fill: currentColor;
}

.tec-editorial-single__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
}

.tec-editorial-single__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.55rem 1.1rem;
	font-size: 0.8rem;
	font-weight: 600;
	text-decoration: none;
	border-radius: 0;
	border: 1px solid transparent;
	cursor: pointer;
	transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.tec-editorial-single__btn--ghost {
	background: transparent;
	color: #111;
	border-color: #111;
}

.tec-editorial-single__btn--ghost:hover {
	background: #111;
	color: #fff;
}

.tec-editorial-single__btn--primary {
	background: #111;
	color: #fff;
	border-color: #111;
}

.tec-editorial-single__btn--primary:hover {
	background: #333;
	border-color: #333;
	color: #fff;
}

/* Body + drop cap */
.tec-editorial-single__content.tribe-events-content {
	font-size: 1rem;
	line-height: 1.7;
	max-width: 52rem;
}

.tec-editorial-single__content.tribe-events-content > p:first-of-type::first-letter {
	float: left;
	font-size: 3.25rem;
	line-height: 0.85;
	font-weight: 700;
	color: var(--tec-editorial-accent);
	margin: 0.08em 0.15em 0 0;
	padding: 0.08em 0.12em 0;
	border: 2px solid var(--tec-editorial-accent);
}

.tec-editorial-single__content.tribe-events-content > p:first-of-type::after {
	content: "";
	display: table;
	clear: both;
}

.tec-editorial-single__sections {
	margin-top: 2.5rem;
	max-width: 52rem;
}

.tec-editorial-single__section {
	margin-bottom: 2.5rem;
}

.tec-editorial-single__section h2,
.tec-editorial-single__section-title {
	font-size: 1rem;
	font-weight: 700;
	margin: 0 0 1rem;
	letter-spacing: -0.01em;
}

.tec-editorial-single__section-body {
	font-size: 0.95rem;
	line-height: 1.65;
	color: #222;
}

.tec-editorial-single__section-body .tribe-events-meta-list {
	margin-top: 0.75rem;
}

.tec-editorial-single .tribe-events-single-section-title {
	font-size: 1rem;
}

.tec-editorial-single .tribe-events-meta-group {
	margin-bottom: 1.25rem;
}

.tec-editorial-single .tribe-events-venue-map {
	margin-top: 1rem;
}

.tec-editorial-single #tribe-events-footer {
	margin-top: 3rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--tec-editorial-border);
	max-width: 52rem;
}

.tec-editorial-single .tribe-events-sub-nav {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	font-size: 0.85rem;
}

.tec-editorial-single .tribe-events-sub-nav a {
	color: inherit;
}

/* Get in touch */
.tec-editorial-single__cta {
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid var(--tec-editorial-border);
	max-width: none;
}

.tec-editorial-single__cta-kicker {
	font-size: 0.65rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--tec-editorial-muted);
	margin: 0 0 1.25rem;
}

.tec-editorial-single__cta-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
}

@media (min-width: 700px) {
	.tec-editorial-single__cta-grid {
		grid-template-columns: 1fr 1fr;
		gap: 3rem;
	}
}

.tec-editorial-single__cta-col h3 {
	margin: 0 0 0.75rem;
	font-size: 1.05rem;
	font-weight: 700;
}

.tec-editorial-single__cta-col p {
	margin: 0 0 1.25rem;
	font-size: 0.9rem;
	line-height: 1.65;
	color: #333;
}
