/**
 * Young Washington event (slug yw): senior-friendly mobile layout and ticket CTA.
 * Scoped to body.swib-yw-event-tickets-cta. Mobile first, then min-width 782px for desktop.
 */

/* -------------------------------------------------------------------------
   1. Base readability (mobile first, 320px to 430px and up until desktop)
   ------------------------------------------------------------------------- */
body.swib-yw-event-tickets-cta #tribe-events-pg-template,
body.swib-yw-event-tickets-cta #tribe-events-content {
	font-size: clamp(1.125rem, 0.5vw + 1rem, 1.1875rem);
	line-height: 1.68;
	color: #1c1917;
}

body.swib-yw-event-tickets-cta .tribe-events-content,
body.swib-yw-event-tickets-cta .tribe-events-single-event-description {
	max-width: 38rem;
	margin-left: auto;
	margin-right: auto;
}

body.swib-yw-event-tickets-cta .tribe-events-content p,
body.swib-yw-event-tickets-cta .tribe-events-single-event-description p {
	margin-bottom: 1.15em;
	font-size: 1em;
	line-height: 1.7;
	color: #292524;
}

body.swib-yw-event-tickets-cta .tribe-events-content a,
body.swib-yw-event-tickets-cta .tribe-events-single-event-description a {
	color: #0f766e;
	text-decoration-thickness: 0.12em;
	text-underline-offset: 0.2em;
	font-weight: 600;
}

body.swib-yw-event-tickets-cta .tribe-events-content strong,
body.swib-yw-event-tickets-cta .tribe-events-single-event-description strong {
	color: #1c1917;
	font-weight: 700;
}

/* -------------------------------------------------------------------------
   2. Title, date, time, price (scan hierarchy)
   ------------------------------------------------------------------------- */
body.swib-yw-event-tickets-cta .entry-header.tribe_events_title,
body.swib-yw-event-tickets-cta .entry-header.tribe_events_title .entry-title,
body.swib-yw-event-tickets-cta h1.tribe-events-single-event-title {
	margin-bottom: 0.5rem;
	padding-bottom: 0.75rem;
	border-bottom: 2px solid #e7e5e4;
	font-size: clamp(1.5rem, 5vw + 0.5rem, 2rem);
	line-height: 1.25;
	font-weight: 700;
	color: #0c0a09;
	letter-spacing: -0.02em;
}

body.swib-yw-event-tickets-cta .tribe-events-schedule {
	margin-top: 1rem;
	margin-bottom: 1.25rem;
	padding: 1rem 1.1rem;
	background: #fafaf9;
	border: 1px solid #e7e5e4;
	border-radius: 12px;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

body.swib-yw-event-tickets-cta .tribe-events-schedule .tribe-event-date-start,
body.swib-yw-event-tickets-cta .tribe-events-schedule .tribe-event-time {
	font-size: clamp(1.125rem, 2.5vw + 0.75rem, 1.35rem);
	font-weight: 700;
	color: #1c1917;
	line-height: 1.45;
	display: block;
}

body.swib-yw-event-tickets-cta .tribe-events-schedule .tribe-events-cost {
	font-size: clamp(1.25rem, 3vw + 0.5rem, 1.5rem);
	font-weight: 800;
	color: #0f766e;
	margin-top: 0.25rem;
	display: block;
}

/* Prev or next event nav: calmer, larger taps */
body.swib-yw-event-tickets-cta .tribe-events-nav-pagination {
	margin: 1rem 0 1.25rem;
	padding-top: 1rem;
	border-top: 1px solid #e7e5e4;
}

body.swib-yw-event-tickets-cta .tribe-events-sub-nav a {
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	padding: 0.5rem 0.75rem;
	font-size: 1rem;
	font-weight: 600;
	color: #44403c;
	border-radius: 8px;
}

body.swib-yw-event-tickets-cta .tribe-events-back a {
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	padding: 0.35rem 0.5rem;
	font-size: 1rem;
	font-weight: 600;
	color: #57534e;
}

/* -------------------------------------------------------------------------
   3. Softer header and menu noise on small screens
   ------------------------------------------------------------------------- */
@media (max-width: 781px) {
	body.swib-yw-event-tickets-cta #main-header .main-navigation .menu a,
	body.swib-yw-event-tickets-cta #main-header .header-button.button {
		min-height: 48px;
		align-items: center;
		display: inline-flex;
		padding-top: 0.5rem;
		padding-bottom: 0.5rem;
	}

	body.swib-yw-event-tickets-cta #mobile-header .mobile-toggle-open-container button,
	body.swib-yw-event-tickets-cta .mobile-toggle-open-container .menu-toggle-open {
		min-width: 48px;
		min-height: 48px;
	}

	/* Desktop header row hidden on phone; mobile bar stays readable */
	body.swib-yw-event-tickets-cta #main-header.site-header-wrap {
		box-shadow: 0 1px 0 rgba(28, 25, 23, 0.06);
	}
}

/* -------------------------------------------------------------------------
   4. Featured image breathing room
   ------------------------------------------------------------------------- */
body.swib-yw-event-tickets-cta .tribe-events-event-image {
	margin-bottom: 1.25rem;
	border-radius: 12px;
	overflow: hidden;
}

body.swib-yw-event-tickets-cta .tribe-events-event-image img {
	display: block;
	width: 100%;
	height: auto;
}

/* -------------------------------------------------------------------------
   5. Calendar, flyer links, utility blocks
   ------------------------------------------------------------------------- */
body.swib-yw-event-tickets-cta .tribe-events-c-subscribe-dropdown__container {
	margin: 1.5rem 0;
	max-width: 38rem;
	margin-left: auto;
	margin-right: auto;
}

body.swib-yw-event-tickets-cta .tribe-events-c-subscribe-dropdown__button,
body.swib-yw-event-tickets-cta .tribe-common-c-btn-border.tribe-events-c-subscribe-dropdown__button {
	min-height: 52px;
	width: 100%;
	max-width: 100%;
	justify-content: center;
	padding: 0.75rem 1rem;
	font-size: 1.0625rem;
	font-weight: 600;
	border-radius: 10px;
	border-width: 2px;
	color: #1c1917;
	background: #fff;
}

body.swib-yw-event-tickets-cta .tribe-events-c-subscribe-dropdown__list-item-link {
	display: block;
	min-height: 48px;
	padding: 0.85rem 1rem;
	font-size: 1.0625rem;
	font-weight: 600;
	color: #0f766e;
	border-radius: 8px;
}

body.swib-yw-event-tickets-cta .tribe-events-c-subscribe-dropdown__content {
	padding: 0.5rem 0;
}

/* -------------------------------------------------------------------------
   6. Details, organizer, venue as stacked fact cards
   ------------------------------------------------------------------------- */
body.swib-yw-event-tickets-cta .tribe-events-single-section.tribe-events-event-meta {
	margin: 1.75rem 0;
	padding: 0;
	border: none;
	background: transparent;
}

body.swib-yw-event-tickets-cta .tribe-events-meta-group {
	margin-bottom: 1.25rem;
	padding: 1.15rem 1.2rem;
	background: #fafaf9;
	border: 1px solid #e7e5e4;
	border-radius: 12px;
	max-width: 38rem;
	margin-left: auto;
	margin-right: auto;
}

body.swib-yw-event-tickets-cta .tribe-events-single-section-title {
	font-size: clamp(1.2rem, 2vw + 0.85rem, 1.35rem);
	font-weight: 800;
	color: #0c0a09;
	margin: 0 0 0.85rem;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid #d6d3d1;
	letter-spacing: 0.02em;
	text-transform: none;
}

body.swib-yw-event-tickets-cta .tribe-events-meta-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

body.swib-yw-event-tickets-cta .tribe-events-meta-item {
	margin-bottom: 1rem;
	padding-bottom: 0.85rem;
	border-bottom: 1px solid #e7e5e4;
	display: block;
	width: 100%;
	float: none !important;
}

body.swib-yw-event-tickets-cta .tribe-events-meta-item:last-child {
	border-bottom: 0;
	margin-bottom: 0;
	padding-bottom: 0;
}

body.swib-yw-event-tickets-cta .tribe-events-meta-label {
	display: block;
	font-size: 0.9375rem;
	font-weight: 800;
	color: #57534e;
	margin-bottom: 0.35rem;
	text-transform: none;
	letter-spacing: 0.01em;
}

body.swib-yw-event-tickets-cta .tribe-events-meta-value,
body.swib-yw-event-tickets-cta .tribe-events-address {
	font-size: 1.0625rem;
	line-height: 1.55;
	color: #1c1917;
	font-weight: 500;
}

body.swib-yw-event-tickets-cta .tribe-events-meta-group a {
	font-weight: 700;
	color: #0f766e;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
}

body.swib-yw-event-tickets-cta .tribe-events-venue-map {
	margin: 1.25rem auto;
	max-width: 38rem;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid #e7e5e4;
}

/* -------------------------------------------------------------------------
   7. Mobile: move ticket block just below the hero image
   ------------------------------------------------------------------------- */
@media (max-width: 781px) {
	body.swib-yw-event-tickets-cta #post-3953.tribe_events {
		display: flex;
		flex-direction: column;
		gap: 1.5rem;
	}

	body.swib-yw-event-tickets-cta #post-3953 > .tribe-events-event-image {
		order: 1;
	}

	body.swib-yw-event-tickets-cta #post-3953 > .tribe-tickets__tickets-wrapper {
		order: 2;
	}

	body.swib-yw-event-tickets-cta #post-3953 > .tribe-events-single-event-description {
		order: 3;
	}

	body.swib-yw-event-tickets-cta #post-3953 > .tribe-events.tribe-common {
		order: 4;
	}

	body.swib-yw-event-tickets-cta #post-3953 > .tribe-events-single-section.tribe-events-event-meta.primary {
		order: 5;
	}

	body.swib-yw-event-tickets-cta #post-3953 > .tribe-events-single-section.tribe-events-event-meta.secondary {
		order: 6;
	}

	body.swib-yw-event-tickets-cta #post-3953 > .tribe-events-venue-map {
		order: 7;
	}
}

@media (min-width: 782px) {
	body.swib-yw-event-tickets-cta #post-3953.tribe_events {
		display: block;
	}
}

/* -------------------------------------------------------------------------
   7b. Get Tickets modal above Kadence header / mobile drawer
   Tribe’s .tribe-dialog defaults to z-index:100; Kadence uses 1000–99999,
   so the site chrome sat on top of the overlay and looked like a “floating” header.
   Match both placements: dialog is usually under .tribe-common but not guaranteed.
   ------------------------------------------------------------------------- */
body.swib-yw-event-tickets-cta div.tribe-dialog {
	z-index: 200000 !important;
}

/* -------------------------------------------------------------------------
   7c. Mobile: Tribe AR modal + body lock vs theme chrome
   When the attendee modal opens, a11y-dialog sets body to position:fixed and adds
   .a11y-dialog__body-locked. Kadence’s fixed #mobile-header and the in-flow SWIB
   brand bar still paint as a second row (hamburger / gap) above the modal — reads
   as a “floating” duplicate header. Hide theme chrome only while the modal is open.
   ------------------------------------------------------------------------- */
@media (max-width: 781px) {
	body.swib-yw-event-tickets-cta.a11y-dialog__body-locked .swib-site-header-brand,
	body.swib-yw-event-tickets-cta.a11y-dialog__body-locked #mobile-header,
	body.swib-yw-event-tickets-cta.a11y-dialog__body-locked #masthead {
		display: none !important;
	}

	/*
	 * Fallback when :has() is supported: modal visible but body class timing differs.
	 * Keeps theme chrome from stacking over the overlay while the dialog is open.
	 */
	body.swib-yw-event-tickets-cta:has(div.tribe-dialog[aria-hidden="false"]) .swib-site-header-brand,
	body.swib-yw-event-tickets-cta:has(div.tribe-dialog[aria-hidden="false"]) #mobile-header,
	body.swib-yw-event-tickets-cta:has(div.tribe-dialog[aria-hidden="false"]) #masthead {
		display: none !important;
	}
}

/* -------------------------------------------------------------------------
   8. Ticket module: clear container, hierarchy, quantity, CTA
   ------------------------------------------------------------------------- */
body.swib-yw-event-tickets-cta .tribe-tickets__tickets-wrapper {
	max-width: 100%;
	padding: 1.15rem 1.1rem 1.35rem;
	margin-left: auto;
	margin-right: auto;
	background: #fff;
	border: 2px solid #d6d3d1;
	border-radius: 14px;
	box-shadow: 0 6px 24px rgba(28, 25, 23, 0.06);
	/* Local stacking so ticket rows stay above the footer CTA (disabled submit must not block +/− taps). */
	isolation: isolate;
	position: relative;
}

body.swib-yw-event-tickets-cta .tribe-tickets__tickets-title {
	font-size: clamp(1.25rem, 2.5vw + 0.65rem, 1.5rem);
	font-weight: 800;
	color: #0c0a09;
	margin-bottom: 1rem;
	padding-bottom: 0.65rem;
	border-bottom: 2px solid #0d9488;
	text-transform: none;
	letter-spacing: 0.01em;
}

body.swib-yw-event-tickets-cta .tribe-tickets__tickets-item {
	padding: 1rem 0;
	border-bottom: 1px solid #e7e5e4;
	position: relative;
	z-index: 2;
}

body.swib-yw-event-tickets-cta .tribe-tickets__tickets-item:last-of-type {
	border-bottom: none;
}

body.swib-yw-event-tickets-cta .tribe-tickets__tickets-item-content-title {
	font-size: clamp(1.05rem, 1.5vw + 0.75rem, 1.2rem);
	font-weight: 700;
	line-height: 1.35;
	color: #1c1917;
	text-transform: none;
	letter-spacing: 0;
}

body.swib-yw-event-tickets-cta .tribe-tickets__tickets-item-extra-price {
	font-size: clamp(1.15rem, 2vw + 0.65rem, 1.35rem);
	font-weight: 800;
	color: #0f766e;
	margin-top: 0.35rem;
}

body.swib-yw-event-tickets-cta .tribe-tickets__tickets-item-extra-available,
body.swib-yw-event-tickets-cta .tribe-tickets__tickets-item-extra-available-quantity {
	font-size: 1.0625rem !important;
	font-weight: 700 !important;
	color: #44403c !important;
	line-height: 1.45;
}

body.swib-yw-event-tickets-cta .tribe-tickets__tickets-item-details-summary-button {
	min-height: 48px;
	padding: 0.5rem 0.75rem !important;
	font-size: 1rem !important;
	font-weight: 700 !important;
	color: #0f766e !important;
	border-radius: 8px;
}

/* Quantity row: finger friendly, no cramped side by side */
body.swib-yw-event-tickets-cta .tribe-tickets__tickets-item-quantity {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.65rem;
	margin-top: 1rem;
	width: 100%;
}

body.swib-yw-event-tickets-cta .tribe-tickets__tickets-item-quantity-number {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	flex: 1 1 100%;
	justify-content: flex-start;
}

body.swib-yw-event-tickets-cta .tribe-tickets__tickets-item-quantity-add,
body.swib-yw-event-tickets-cta .tribe-tickets__tickets-item-quantity-remove {
	min-width: 52px !important;
	min-height: 52px !important;
	width: 52px !important;
	height: 52px !important;
	border-radius: 10px !important;
	font-size: 1.5rem !important;
	line-height: 1 !important;
	font-weight: 700 !important;
	border: 2px solid #a8a29e !important;
	background: #fafaf9 !important;
	color: #1c1917 !important;
	box-sizing: border-box;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	-webkit-tap-highlight-color: rgba(13, 148, 136, 0.15);
	touch-action: manipulation;
}

body.swib-yw-event-tickets-cta .tribe-tickets__tickets-item-quantity-add:active,
body.swib-yw-event-tickets-cta .tribe-tickets__tickets-item-quantity-remove:active {
	background: #e7e5e4 !important;
}

body.swib-yw-event-tickets-cta .tribe-tickets__tickets-item-quantity-number-input {
	min-width: 4.5rem !important;
	min-height: 52px !important;
	font-size: 1.35rem !important;
	font-weight: 800 !important;
	text-align: center !important;
	border: 2px solid #78716c !important;
	border-radius: 10px !important;
	color: #0c0a09 !important;
	background: #fff !important;
}

body.swib-yw-event-tickets-cta .tribe-tickets__tickets-footer {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 1rem;
	position: relative;
	/* Below .tribe-tickets__tickets-item (z-index: 2) inside isolated wrapper; was 100020 and covered +/− controls. */
	z-index: 1;
	padding: 1.15rem 0 0;
	margin-top: 1rem;
	border-top: 2px solid #e7e5e4;
	padding-bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
}

body.swib-yw-event-tickets-cta .tribe-tickets__tickets-footer-total-wrap,
body.swib-yw-event-tickets-cta .tribe-tickets__tickets-footer-quantity {
	font-size: 1.125rem !important;
	font-weight: 700 !important;
	color: #292524 !important;
}

body.swib-yw-event-tickets-cta .tribe-tickets__tickets-item-total-wrap {
	font-size: 1.125rem !important;
	font-weight: 800 !important;
	color: #1c1917 !important;
}

/* Primary CTA: full width on phones */
body.swib-yw-event-tickets-cta #tribe-tickets__tickets-submit.tribe-tickets__tickets-buy,
body.swib-yw-event-tickets-cta #tribe-tickets__tickets-submit.tribe-common-c-btn {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 100% !important;
	max-width: 100%;
	min-height: 3.25rem;
	padding: 0.85rem 1.25rem !important;
	font-size: 1.125rem !important;
	font-weight: 800 !important;
	letter-spacing: 0.02em;
	visibility: visible !important;
	opacity: 1 !important;
	clip: auto !important;
	clip-path: none !important;
	height: auto !important;
	overflow: visible !important;
	background-color: #0d9488 !important;
	background-image: none !important;
	color: #ffffff !important;
	border: 2px solid #0f766e !important;
	border-radius: 12px;
	box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
	-webkit-tap-highlight-color: rgba(255, 255, 255, 0.2);
	touch-action: manipulation;
}

body.swib-yw-event-tickets-cta #tribe-tickets__tickets-submit.tribe-tickets__tickets-buy:disabled,
body.swib-yw-event-tickets-cta #tribe-tickets__tickets-submit.tribe-common-c-btn:disabled {
	opacity: 0.85 !important;
	cursor: not-allowed;
	background-color: #64748b !important;
	border-color: #475569 !important;
	color: #f8fafc !important;
	/* Disabled buttons still sit in the top paint layer; do not block taps on quantity controls below. */
	pointer-events: none;
}

body.swib-yw-event-tickets-cta #tribe-tickets__tickets-submit.tribe-tickets__tickets-buy:focus-visible,
body.swib-yw-event-tickets-cta #tribe-tickets__tickets-submit.tribe-common-c-btn:focus-visible {
	outline: 3px solid #ca8a04;
	outline-offset: 3px;
}

body.swib-yw-event-tickets-cta .tribe-tickets__tickets-form {
	scroll-margin-bottom: 6rem;
	scroll-margin-top: 1rem;
}

/* Mobile: subtle footer separation without sticky (sticky overlapped quantity on short viewports in QA). */
@media (max-width: 781px) {
	body.swib-yw-event-tickets-cta .tribe-tickets__tickets-footer {
		background: #fafaf9;
		border-radius: 0 0 10px 10px;
		margin-left: -0.35rem;
		margin-right: -0.35rem;
		padding-left: 0.85rem;
		padding-right: 0.85rem;
		padding-top: 1rem;
	}
}

@media (min-width: 782px) {
	body.swib-yw-event-tickets-cta .tribe-tickets__tickets-footer {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		justify-content: space-between;
	}

	body.swib-yw-event-tickets-cta #tribe-tickets__tickets-submit.tribe-tickets__tickets-buy,
	body.swib-yw-event-tickets-cta #tribe-tickets__tickets-submit.tribe-common-c-btn {
		width: auto !important;
		min-width: 12rem;
	}
}

/* Ticket notices in cart */
body.swib-yw-event-tickets-cta .tribe-tickets__notice .tribe-tickets-notice__content {
	font-size: 1rem !important;
	line-height: 1.55 !important;
	color: #44403c !important;
}

/* -------------------------------------------------------------------------
   9. Form fields if modal or inline meta appears
   ------------------------------------------------------------------------- */
body.swib-yw-event-tickets-cta .tribe-tickets__form-field-label {
	font-size: 1rem;
	font-weight: 700;
	color: #292524;
	margin-bottom: 0.35rem;
}

body.swib-yw-event-tickets-cta .tribe-tickets__form-field-input {
	min-height: 52px !important;
	font-size: 1.0625rem !important;
	padding: 0.65rem 0.85rem !important;
	border-radius: 10px !important;
	border-width: 2px !important;
	color: #1c1917 !important;
}

body.swib-yw-event-tickets-cta .tribe-common-c-btn.tribe-tickets__attendee-tickets-submit {
	min-height: 52px;
	padding: 0.75rem 1.25rem !important;
	font-size: 1.0625rem !important;
	font-weight: 800 !important;
	border-radius: 10px !important;
}

/* -------------------------------------------------------------------------
   10. TEC utility text: avoid tiny gray (scoped to event content and ticket block)
   ------------------------------------------------------------------------- */
body.swib-yw-event-tickets-cta #tribe-events-content .tribe-common-b3,
body.swib-yw-event-tickets-cta .tribe-tickets__tickets-wrapper .tribe-common-b3 {
	font-size: 1rem !important;
	color: #57534e !important;
}

body.swib-yw-event-tickets-cta #tribe-events-content .tribe-common-b2,
body.swib-yw-event-tickets-cta .tribe-tickets__tickets-wrapper .tribe-common-b2 {
	font-size: 1.0625rem !important;
	color: #44403c !important;
}

/* Video embed spacing */
body.swib-yw-event-tickets-cta .entry-content-asset.videofit {
	margin: 1.5rem 0;
	border-radius: 12px;
	overflow: hidden;
}
