/* Yen's Tradeshows: upcoming-show cards. Uses the theme's tokens when present. */
.yens-shows {
	--shows-ink: var(--yens-trade-ink, #1d1d1f);
	--shows-gold: var(--yens-gold, #8a6a35);
	--shows-line: #e6e1d8;
	--shows-muted: #5c5c60;
	--shows-display: var(--yens-font-display, Georgia, "Times New Roman", serif);
	--shows-body: var(--yens-font-body, "Lato", Helvetica, Arial, sans-serif);
	max-width: 1240px;
	margin: 0 auto;
	text-align: left;
	color: var(--shows-ink);
	font-family: var(--shows-body);
}

.yens-shows .yens-shows__head {
	text-align: center;
	max-width: 640px;
	margin: 0 auto 28px;
}

/* Home page: the white section holding the schedule starts closer to the hero above it */
.yens-focus:has(.yens-shows) {
	padding-top: 52px;
}

@media (max-width: 600px) {
	.yens-focus:has(.yens-shows) {
		padding-top: 40px;
	}
}

.yens-shows .yens-shows__eyebrow {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--shows-gold);
	margin: 0 0 14px;
}

.yens-shows .yens-shows__title {
	font-family: var(--shows-display);
	font-weight: 500;
	font-size: clamp(32px, 3.6vw, 46px);
	line-height: 1.1;
	text-transform: none;
	letter-spacing: -0.01em;
	color: var(--shows-ink);
	margin: 0 0 12px;
}

.yens-shows .yens-shows__intro {
	font-size: 16px;
	line-height: 1.6;
	color: var(--shows-muted);
	margin: 0;
}

.yens-shows .yens-shows__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(290px, 380px));
	justify-content: center;
	gap: 16px;
}

.yens-shows .yens-show {
	display: grid;
	grid-template-columns: 72px 1fr;
	gap: 20px;
	align-items: start;
	padding: 24px;
	margin: 0;
	background: #fff;
	border: 1px solid var(--shows-line);
}

/* Date badge */
.yens-shows .yens-show__date {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 10px 4px 9px;
	border: 1px solid var(--shows-line);
	line-height: 1;
}

.yens-shows .yens-show__month {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--shows-gold);
}

.yens-shows .yens-show__days {
	font-family: var(--shows-display);
	font-size: 22px;
	font-weight: 500;
	margin: 8px 0 7px;
	white-space: nowrap;
}

/* Shows that run into the next month ("28–Jun 1") */
.yens-shows .yens-show__days--span {
	font-size: 15px;
}

.yens-shows .yens-show__days--tba {
	font-family: var(--shows-body);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
}

.yens-shows .yens-show__year {
	font-size: 12px;
	color: var(--shows-muted);
}

/* Text */
.yens-shows .yens-show__flag {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--shows-gold);
	margin: 0 0 6px;
}

.yens-shows .yens-show__name {
	font-family: var(--shows-display);
	font-weight: 500;
	font-size: 22px;
	line-height: 1.2;
	text-transform: none;
	color: inherit;
	margin: 0 0 6px;
}

.yens-shows .yens-show__when,
.yens-shows .yens-show__where {
	font-size: 15px;
	line-height: 1.5;
	color: var(--shows-muted);
	margin: 0 0 2px;
}

/* Booth numbers stand out in gold */
.yens-shows .yens-show__where strong {
	color: var(--shows-gold);
	font-weight: 700;
}

.yens-shows .yens-show__links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 22px;
	margin: 14px 0 0;
}

.yens-shows .yens-show__link {
	display: inline-block;
	font-size: 15px;
	font-weight: 700;
	color: var(--shows-ink);
	text-decoration: underline;
	text-underline-offset: 5px;
	text-decoration-thickness: 1px;
}

.yens-shows .yens-show__link:hover,
.yens-shows .yens-show__link:focus-visible {
	color: var(--shows-gold);
}

/* The next show stands out */
.yens-shows .yens-show.is-next {
	background: var(--shows-ink);
	border-color: var(--shows-ink);
	color: #fff;
}

.yens-shows .yens-show.is-next .yens-show__date {
	border-color: rgba(255, 255, 255, 0.25);
}

.yens-shows .yens-show.is-next .yens-show__month,
.yens-shows .yens-show.is-next .yens-show__flag {
	color: #d4b47a;
}

.yens-shows .yens-show.is-next .yens-show__year,
.yens-shows .yens-show.is-next .yens-show__when,
.yens-shows .yens-show.is-next .yens-show__where {
	color: rgba(255, 255, 255, 0.78);
}

.yens-shows .yens-show.is-next .yens-show__link {
	color: #fff;
}

.yens-shows .yens-show.is-next .yens-show__where strong {
	color: #d4b47a;
}

.yens-shows .yens-show.is-next .yens-show__link:hover,
.yens-shows .yens-show.is-next .yens-show__link:focus-visible {
	color: #d4b47a;
}

/* Shows we aren't exhibiting at stay listed, quieter, with a way to reach us */
.yens-shows .yens-show.is-not-attending {
	background: #faf8f4;
	opacity: 0.75;
}

.yens-shows .yens-show.is-not-attending .yens-show__date {
	background: #fff;
}

.yens-shows .yens-show.is-not-attending .yens-show__month,
.yens-shows .yens-show.is-not-attending .yens-show__days {
	color: #8c8a85;
}

.yens-shows .yens-show__status {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0 0 6px;
	padding: 4px 10px 4px 7px;
	border: 1px solid #d8c9c4;
	border-radius: 999px;
	background: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #9a3d2e;
}

.yens-shows .yens-show__status svg {
	width: 14px;
	height: 14px;
	flex: none;
}

.yens-shows .yens-show__note {
	font-size: 14px;
	line-height: 1.5;
	color: var(--shows-muted);
	margin: 8px 0 0;
}

.yens-shows .yens-show.is-not-attending .yens-show__links {
	margin-top: 10px;
}

.yens-shows .yens-shows__empty {
	text-align: center;
	font-size: 16px;
	color: var(--shows-muted);
	padding: 32px 16px;
	border: 1px dashed var(--shows-line);
	margin: 0;
}

@media (max-width: 600px) {
	.yens-shows .yens-show {
		grid-template-columns: 64px 1fr;
		gap: 16px;
		padding: 20px;
	}

	.yens-shows .yens-show__days {
		font-size: 19px;
	}

	/* "31–Feb 4" won't fit the narrow box on one line: smaller, and it may wrap after the dash. */
	.yens-shows .yens-show__days--span {
		font-size: 14px;
		line-height: 1.2;
		white-space: normal;
		max-width: 100%;
	}
}

/* Floor plan links open a pop-up viewer */
.yens-shows .yens-show__plan-icon {
	display: inline-block;
	width: 14px;
	height: 14px;
	margin-left: 4px;
	vertical-align: -1px;
}

.yens-plan-locked,
.yens-plan-locked body {
	overflow: hidden;
}

dialog.yens-plan-viewer {
	width: min(1240px, 94vw);
	height: min(860px, 90vh);
	max-width: none;
	max-height: none;
	margin: auto;
	padding: 0;
	border: 0;
	background: #fff;
	color: #1d1d1f;
	box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6);
	overflow: hidden;
	flex-direction: column;
}

dialog.yens-plan-viewer[open] {
	display: flex;
	animation: yens-plan-in 0.25s cubic-bezier(0.22, 0.8, 0.24, 1);
}

dialog.yens-plan-viewer::backdrop {
	background: rgba(18, 18, 20, 0.72);
}

@keyframes yens-plan-in {
	from {
		opacity: 0;
		transform: translateY(12px) scale(0.985);
	}
}

.yens-plan-viewer__bar {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 12px 14px 12px 20px;
	border-bottom: 1px solid #ebe8e2;
	flex: none;
}

.yens-plan-viewer p.yens-plan-viewer__title {
	margin: 0 auto 0 0;
	font-family: "Newsreader", Georgia, serif;
	font-size: 20px;
	line-height: 1.2;
}

.yens-plan-viewer a.yens-plan-viewer__open {
	font-size: 14px;
	font-weight: 700;
	color: #1d1d1f;
	text-decoration: underline;
	text-underline-offset: 4px;
	text-decoration-thickness: 1px;
	white-space: nowrap;
}

.yens-plan-viewer a.yens-plan-viewer__open:hover,
.yens-plan-viewer a.yens-plan-viewer__open:focus-visible {
	color: #8a6a35;
}

.yens-plan-viewer button.yens-plan-viewer__close {
	flex: none;
	display: inline-grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid #d9d3c8;
	border-radius: 50%;
	background: #fff;
	color: #1d1d1f;
	cursor: pointer;
}

.yens-plan-viewer button.yens-plan-viewer__close:hover,
.yens-plan-viewer button.yens-plan-viewer__close:focus-visible {
	border-color: #1d1d1f;
	background: #1d1d1f;
	color: #fff;
}

.yens-plan-viewer__close svg {
	width: 18px;
	height: 18px;
}

.yens-plan-viewer__frame {
	position: relative;
	flex: 1;
	background: #f4f3f0;
}

.yens-plan-viewer__frame iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.yens-plan-viewer.is-loaded .yens-plan-viewer__frame iframe {
	opacity: 1;
}

.yens-plan-viewer .yens-plan-viewer__loading {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	padding: 24px;
	text-align: center;
	font-size: 15px;
	color: #6b6b70;
}

.yens-plan-viewer .yens-plan-viewer__loading p {
	margin: 0;
	max-width: 420px;
}

.yens-plan-viewer a.yens-plan-viewer__fallback {
	display: inline-block;
	padding: 12px 22px;
	background: #1d1d1f;
	color: #fff;
	font-weight: 700;
	text-decoration: none;
}

.yens-plan-viewer a.yens-plan-viewer__fallback:hover,
.yens-plan-viewer a.yens-plan-viewer__fallback:focus-visible {
	background: #8a6a35;
	color: #fff;
}

.yens-plan-viewer p.yens-plan-viewer__help {
	flex: none;
	margin: 0;
	padding: 10px 20px;
	border-top: 1px solid #ebe8e2;
	font-size: 13px;
	color: #6b6b70;
	text-align: center;
	background: #fff;
}

.yens-plan-viewer p.yens-plan-viewer__help a {
	color: #1d1d1f;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
}

@media (max-width: 700px) {
	dialog.yens-plan-viewer {
		width: 100vw;
		height: 100dvh;
		max-height: 100dvh;
		margin: 0;
		inset: 0;
	}

	.yens-plan-viewer__bar {
		padding: 10px 10px 10px 16px;
		gap: 10px;
	}

	.yens-plan-viewer p.yens-plan-viewer__title {
		font-size: 17px;
	}
}

@media (prefers-reduced-motion: reduce) {
	dialog.yens-plan-viewer[open] {
		animation: none;
	}
}