/*
 * events-calendar: The Events Calendar 6.18.4 (v2 views, skeleton style mode) and Event Tickets 5.31.1 with Plus
 * 6.12.0 (spec 6.5 "Event", "Events list", 6.6, 6.8; contract 1.1, 2.5, 2.7 "Event date badge", 1.7 rule 1).
 * Views: the events list (/events/ and its category lists), a single event with its ticket form, the venue and
 * organizer pages.
 *
 * The plugins' own layouts are kept; this file gives them the palette, the type, the buttons and the fields.
 * The calendar's colour variables are pointed at the palette inside its wrappers, so its own rules print palette
 * colours. Where a plugin rule is printed after this file (Event Tickets prints some stylesheets in the page body),
 * a selector here is made more specific than the plugin's.
 * The log-in and join boxes after the ticket form are styled by caw-site.css; the event description by
 * event-html.css.
 */

/* Tokens ------------------------------------------------------------------------------------------- */

.tribe-common,
.tribe-tickets,
.tribe-events-pg-template {
	--tec-font-family-sans-serif: var(--wp--preset--font-family--roboto);
	--tec-color-text-primary: var(--wp--preset--color--ink);
	--tec-color-text-primary-light: var(--wp--preset--color--meta-grey);
	--tec-color-text-secondary: var(--wp--preset--color--meta-grey);
	--tec-color-text-event-date: var(--wp--preset--color--ink);
	--tec-color-text-secondary-event-date: var(--wp--preset--color--meta-grey);
	--tec-color-icon-primary: var(--wp--preset--color--meta-grey);
	--tec-color-icon-primary-alt: var(--wp--preset--color--meta-grey);
	--tec-color-icon-secondary: var(--wp--preset--color--deep-teal);
	--tec-color-icon-active: var(--wp--preset--color--ink);
	--tec-color-icon-focus: var(--wp--preset--color--deep-teal);
	--tec-color-event-icon: var(--wp--preset--color--ink);
	--tec-color-event-icon-hover: var(--wp--preset--color--deep-teal);
	--tec-color-accent-primary: var(--wp--preset--color--teal-strong);
	--tec-color-accent-primary-hover: var(--wp--preset--color--deep-teal);
	--tec-color-accent-primary-active: var(--wp--preset--color--deep-teal);
	--tec-color-accent-primary-background: var(--wp--preset--color--panel);
	--tec-color-accent-secondary: var(--wp--preset--color--ink);
	--tec-color-accent-secondary-hover: var(--wp--preset--color--ink);
	--tec-color-accent-secondary-active: var(--wp--preset--color--ink);
	--tec-color-accent-secondary-background: var(--wp--preset--color--panel);
	--tec-color-link-primary: var(--wp--preset--color--deep-teal);
	--tec-color-link-accent: var(--wp--preset--color--deep-teal);
	--tec-color-link-accent-hover: var(--wp--preset--color--deep-teal);
	--tec-color-border-default: var(--wp--preset--color--mist);
	--tec-color-border-secondary: var(--wp--preset--color--mist);
	--tec-color-border-tertiary: var(--wp--preset--color--meta-grey);
	--tec-color-border-hover: var(--wp--preset--color--meta-grey);
	--tec-color-border-active: var(--wp--preset--color--ink);
	--tec-color-background: var(--wp--preset--color--white);
	--tec-color-background-secondary: var(--wp--preset--color--panel);
	--tec-color-background-secondary-hover: var(--wp--preset--color--mist);
	--tec-color-background-messages: var(--wp--preset--color--panel);
	--tec-color-background-transparent: var(--wp--preset--color--white);
	/* Below the medium breakpoint a row with gutters reached 21px past a 19.5px page gutter: the events page
	   scrolled sideways by 2px (spec 6.6). Half a gutter is now the page gutter. */
	--tec-grid-gutter-small-half: var(--tec-grid-gutter-page-small);
	--tec-grid-gutter-small-half-negative: calc(-1 * var(--tec-grid-gutter-page-small));
}

/* Focus ring (contract 1.7 rule 1), repeated under each wrapper so it beats the plugins' own :focus rules. */
.tribe-common a:focus-visible,
.tribe-common button:focus-visible,
.tribe-common input:focus-visible,
.tribe-common select:focus-visible,
.tribe-common textarea:focus-visible,
.tribe-common summary:focus-visible,
.tribe-common [tabindex]:not([tabindex="-1"]):focus-visible,
.tribe-tickets a:focus-visible,
.tribe-tickets button:focus-visible,
.tribe-tickets input:focus-visible,
.tribe-tickets select:focus-visible,
.tribe-tickets textarea:focus-visible,
.tribe-tickets summary:focus-visible,
.tribe-tickets [tabindex]:not([tabindex="-1"]):focus-visible {
	outline: var(--wp--custom--focus--ring-width) solid var(--wp--custom--focus--ring-outer);
	outline-offset: var(--wp--custom--focus--ring-width);
	box-shadow: 0 0 0 var(--wp--custom--focus--ring-width) var(--wp--custom--focus--ring-inner);
}

/* Event Tickets styles its quantity controls with longer selectors, some printed after this file. */
.tribe-common.event-tickets .tribe-tickets__form .tribe-tickets__tickets-item-quantity :is(button, input[type="number"]):focus-visible {
	outline: var(--wp--custom--focus--ring-width) solid var(--wp--custom--focus--ring-outer);
	outline-offset: var(--wp--custom--focus--ring-width);
	box-shadow: 0 0 0 var(--wp--custom--focus--ring-width) var(--wp--custom--focus--ring-inner);
}

/* Type -------------------------------------------------------------------------------------------- */

.tribe-common :is(.tribe-common-b1, .tribe-common-b2, .tribe-common-b3) {
	font-family: var(--wp--preset--font-family--roboto);
	color: var(--wp--preset--color--ink);
}

.tribe-common :is(.tribe-common-h1, .tribe-common-h2, .tribe-common-h3, .tribe-common-h4, .tribe-common-h5, .tribe-common-h6, .tribe-common-h7, .tribe-common-h8) {
	font-family: var(--wp--preset--font-family--montserrat);
	color: var(--wp--preset--color--heading-grey);
}

.tribe-common :is(.tribe-common-anchor, .tribe-common-anchor-alt, .tribe-common-anchor-thin) {
	color: var(--wp--preset--color--deep-teal);
}

/* Events list ------------------------------------------------------------------------------------- */

/* Month separator. */
.tribe-events .tribe-events-calendar-list__month-separator-text.tribe-common-h7 {
	font-family: var(--wp--preset--font-family--montserrat);
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 500;
	letter-spacing: 0.125rem;
	color: var(--wp--preset--color--heading-grey);
}

.tribe-events .tribe-events-calendar-list__month-separator::after {
	background-color: var(--wp--preset--color--mist);
}

/* Event date badge (contract 2.7): sun with ink text. */
.tribe-events .tribe-events-calendar-list__event-date-tag-datetime {
	box-sizing: border-box;
	justify-content: center;
	width: 5.5rem;
	max-width: 100%;
	height: auto;
	min-height: 4.875rem;
	padding: var(--wp--preset--spacing--30);
	background-color: var(--wp--preset--color--sun);
	color: var(--wp--preset--color--ink);
}

.tribe-events .tribe-events-calendar-list__event-date-tag-datetime :is(.tribe-events-calendar-list__event-date-tag-weekday, .tribe-events-calendar-list__event-date-tag-daynum) {
	margin: 0;
	font-family: var(--wp--preset--font-family--roboto);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 400;
	line-height: 1.3;
	color: var(--wp--preset--color--ink);
}

/* Event title: deep-teal Montserrat 700, never underlined; ink under the pointer and with keyboard focus (pattern
   contract 1.0.11, 1.4). */
.tribe-events .tribe-events-calendar-list__event-title,
.tribe-events .tribe-events-calendar-list__event-title a.tribe-events-calendar-list__event-title-link {
	font-family: var(--wp--preset--font-family--montserrat);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 700;
	line-height: 1.19;
	letter-spacing: 0.03125rem;
	color: var(--wp--preset--color--deep-teal);
}

.tribe-events .tribe-events-calendar-list__event-title a.tribe-events-calendar-list__event-title-link {
	border-bottom: 0;
	text-decoration: none;
}

.tribe-events .tribe-events-calendar-list__event-title a.tribe-events-calendar-list__event-title-link:is(:hover, :focus-visible) {
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

/* Date line and venue: meta-grey. */
.tribe-events :is(.tribe-events-calendar-list__event-datetime-wrapper, .tribe-events-calendar-list__event-venue, .tribe-events-calendar-list__event-venue-title) {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--meta-grey);
}

.tribe-events .tribe-events-calendar-list__event-description {
	color: var(--wp--preset--color--ink);
}

.tribe-events .tribe-events-c-small-cta__price,
.tribe-events .tribe-events-c-small-cta__stock {
	color: var(--wp--preset--color--ink);
}

.tribe-events .tribe-events-calendar-list__event-row {
	border-bottom: 1px solid var(--wp--preset--color--mist);
	padding-bottom: var(--wp--preset--spacing--50);
}

.tribe-events .tribe-events-calendar-list__event-featured-image {
	max-width: 100%;
	height: auto;
}

/* Previous, Today and Next: one type for links and buttons (master ruling 87). A button does not inherit the font,
   so the disabled Next showed at the browser's 13.33px beside an 18px Previous. */
.tribe-events .tribe-events-c-nav__list :is(a, button) {
	color: var(--wp--preset--color--deep-teal);
	font-family: var(--wp--preset--font-family--roboto);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 400;
}

/* The view switcher: plain, like the calendar's clear buttons (master ruling 87). Skeleton mode does not load the
   calendar's button reset, so the browser's grey outset button showed. */
.tribe-events .tribe-events-c-view-selector__button {
	background-color: transparent;
	border: 0;
	border-radius: 0;
	color: var(--wp--preset--color--deep-teal);
	font-family: var(--wp--preset--font-family--roboto);
	font-size: inherit;
	padding: var(--wp--preset--spacing--30);
}

.tribe-events .tribe-events-c-nav__list button:disabled {
	color: var(--wp--preset--color--meta-grey);
}

/* Buttons the calendar draws as plain text or icons stay plain. */
.tribe-events .tribe-events-c-nav__list button,
.tribe-events .tribe-events-c-top-bar button:is(.tribe-events-c-top-bar__datepicker-button, .tribe-events-c-top-bar__nav-link) {
	border: 0;
	background-color: transparent;
	color: var(--wp--preset--color--deep-teal);
}

.tribe-events .tribe-events-c-top-bar button.tribe-events-c-top-bar__nav-link:disabled,
.tribe-events .tribe-events-c-nav__list button:disabled {
	color: var(--wp--preset--color--meta-grey);
}

/* Search bar (when switched on): the field of contract 2.7 and the primary button. */
.tribe-events .tribe-events-c-search__input-control .tribe-events-c-search__input {
	box-sizing: border-box;
	min-height: 2.75rem;
	padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
	border: 1px solid var(--wp--preset--color--meta-grey);
	border-radius: 0;
	background-color: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--roboto);
	font-size: var(--wp--preset--font-size--medium);
}

.tribe-events .tribe-events-c-search__input-control .tribe-events-c-search__input::placeholder {
	color: var(--wp--preset--color--meta-grey);
	opacity: 1;
}

.tribe-events .tribe-events-c-search__input-control-icon-svg {
	display: none;
}

/* Buttons ----------------------------------------------------------------------------------------- */

/* Primary (contract 2.5): Find Events, Get Tickets. */
.tribe-common.tribe-events .tribe-events-c-search button.tribe-events-c-search__button,
.tribe-common.event-tickets .tribe-tickets__tickets-footer button.tribe-tickets__tickets-buy,
.tribe-common.event-tickets .tribe-tickets__tickets-footer button.tribe-tickets__tickets-buy:disabled {
	box-sizing: border-box;
	width: auto;
	padding: 0.625rem 1.875rem;
	border: 2px solid var(--wp--preset--color--teal-strong);
	border-radius: 999px;
	background-color: var(--wp--preset--color--teal-strong);
	color: var(--wp--preset--color--white);
	font-family: var(--wp--preset--font-family--montserrat);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: 0.1875rem;
	text-transform: uppercase;
	text-decoration: none;
	opacity: 1;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.tribe-common.event-tickets .tribe-tickets__tickets-footer button.tribe-tickets__tickets-buy:disabled {
	cursor: not-allowed;
}

.tribe-common.tribe-events .tribe-events-c-search button.tribe-events-c-search__button:is(:hover, :focus-visible),
.tribe-common.event-tickets .tribe-tickets__tickets-footer button.tribe-tickets__tickets-buy:not(:disabled):is(:hover, :focus-visible) {
	border-color: var(--wp--preset--color--teal-strong);
	background-color: var(--wp--preset--color--white);
	color: var(--wp--preset--color--teal-strong);
}

/* Subscribe dropdown ("Add to calendar", "Subscribe to calendar"): the outline button. */
.tribe-common .tribe-events-c-subscribe-dropdown .tribe-common-c-btn-border.tribe-events-c-subscribe-dropdown__button {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	gap: var(--wp--preset--spacing--30);
	width: auto;
	max-width: 100%;
	padding: 0.625rem 1.875rem;
	border: 2px solid var(--wp--preset--color--deep-teal);
	border-radius: 999px;
	background-color: transparent;
	color: var(--wp--preset--color--deep-teal);
	transition: background-color 0.15s ease, color 0.15s ease;
}

.tribe-common .tribe-events-c-subscribe-dropdown .tribe-events-c-subscribe-dropdown__button button.tribe-events-c-subscribe-dropdown__button-text {
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	font-family: var(--wp--preset--font-family--montserrat);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: 0.1875rem;
	text-transform: uppercase;
	cursor: pointer;
}

.tribe-common .tribe-events-c-subscribe-dropdown .tribe-events-c-subscribe-dropdown__button:is(:hover, :focus-within, .tribe-events-c-subscribe-dropdown__button--active) {
	background-color: var(--wp--preset--color--deep-teal);
	color: var(--wp--preset--color--white);
}

.tribe-common .tribe-events-c-subscribe-dropdown .tribe-events-c-subscribe-dropdown__button :is(path, .tribe-common-c-svgicon__svg-fill) {
	fill: currentcolor;
}

.tribe-common .tribe-events-c-subscribe-dropdown .tribe-events-c-subscribe-dropdown__button .tribe-common-c-svgicon__svg-stroke {
	stroke: currentcolor;
}

.tribe-common .tribe-events-c-subscribe-dropdown .tribe-events-c-subscribe-dropdown__content {
	background-color: var(--wp--preset--color--white);
}

.tribe-common .tribe-events-c-subscribe-dropdown .tribe-events-c-subscribe-dropdown__list {
	border: 1px solid var(--wp--preset--color--mist);
	background-color: var(--wp--preset--color--white);
}

.tribe-common .tribe-events-c-subscribe-dropdown a.tribe-events-c-subscribe-dropdown__list-item-link {
	color: var(--wp--preset--color--deep-teal);
	font-family: var(--wp--preset--font-family--roboto);
	text-decoration: underline;
}

.tribe-common .tribe-events-c-subscribe-dropdown a.tribe-events-c-subscribe-dropdown__list-item-link:is(:hover, :focus-visible) {
	text-decoration: none;
}

/* Venue and organizer pages --------------------------------------------------------------------- */

/* Events Calendar Pro gives the desktop message the class of a 15px icon, so its text wraps into a narrow column
   over the Previous Events link (spec 6.8, a baseline fault). The message takes the full width. */
.tribe-events .tribe-events-header__messages:is(.tribe-events-pro-venue__meta-website-icon-svg, .tribe-events-pro-organizer__meta-website-icon-svg) {
	width: 100%;
	height: auto;
	margin-top: 0;
	margin-right: 0;
}

.tribe-events .tribe-events-c-messages__message {
	box-sizing: border-box;
	border-left: 4px solid var(--wp--preset--color--deep-teal);
	background-color: var(--wp--preset--color--panel);
	color: var(--wp--preset--color--ink);
}

.tribe-events .tribe-events-c-messages__message svg:not(.tribe-common-c-svgicon--messages-not-found) :is(path, circle) {
	fill: currentcolor;
}

/* The no-results icon is an outline (a calendar with a cross): the plugin draws its paths as lines and fills none.
   Filled, its frame printed a dark square before the text. */
.tribe-events .tribe-events-c-messages__message .tribe-common-c-svgicon--messages-not-found :is(g, path) {
	fill: none;
	stroke: currentcolor;
}

.tribe-events .tribe-events-header__title-text {
	font-family: var(--wp--preset--font-family--montserrat);
	font-size: var(--wp--preset--font-size--xx-large);
	font-weight: 900;
	color: var(--wp--preset--color--heading-grey);
}

/* Single event ------------------------------------------------------------------------------------ */

.tribe-events-single .tribe-events-back a {
	color: var(--wp--preset--color--deep-teal);
	font-weight: 700;
	text-decoration: none;
}

/* Never underlined; ink under the pointer and with keyboard focus (pattern contract 1.0.11, 1.4). */
.tribe-events-single .tribe-events-back a:is(:hover, :focus-visible) {
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

.tribe-events-single h1.tribe-events-single-event-title {
	font-family: var(--wp--preset--font-family--montserrat);
	font-size: var(--wp--preset--font-size--xx-large);
	font-weight: 900;
	letter-spacing: 0.0625rem;
	color: var(--wp--preset--color--heading-grey);
}

.tribe-events-single .tribe-events-schedule,
.tribe-events-single .tribe-events-schedule :is(h2, h3, span, div) {
	font-family: var(--wp--preset--font-family--roboto);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 400;
	color: var(--wp--preset--color--meta-grey);
}

.tribe-events-single .tribe-events-event-image img {
	max-width: 100%;
	height: auto;
}

/* Details, organizer and venue on a mist panel. */
.tribe-events-single .tribe-events-event-meta {
	box-sizing: border-box;
	margin: var(--wp--preset--spacing--50) 0;
	padding: var(--wp--preset--spacing--50);
	border: 0;
	background-color: var(--wp--preset--color--mist);
	color: var(--wp--preset--color--ink);
}

.tribe-events-single .tribe-events-event-meta .tribe-events-single-section-title {
	font-family: var(--wp--preset--font-family--montserrat);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 900;
	color: var(--wp--preset--color--heading-grey);
}

.tribe-events-single .tribe-events-event-meta :is(dt, .tribe-events-meta-label) {
	font-weight: 700;
	color: var(--wp--preset--color--ink);
}

.tribe-events-single .tribe-events-event-meta :is(dd, li, address, abbr, .tribe-events-meta-value) {
	color: var(--wp--preset--color--ink);
}

/* A value in the details panel wraps inside its column (ruling 129 (i), the lead's look of 18 November): an e-mail
   address or a link has no break of its own, and TEC's skeleton stylesheet gives none (its word-break is in the full
   stylesheet, which skeleton mode does not load). Inherited by every value, dd and link of a group. */
.tribe-events-single .tribe-events-meta-group {
	overflow-wrap: anywhere;
}

.tribe-events-single .tribe-events-event-meta a {
	color: var(--wp--preset--color--deep-teal);
	text-decoration: underline;
}

/* Under the pointer the underline goes, as in running text; with keyboard focus it stays beside the ring (1.4; pattern
   contract 1.0.11, built in 1.0.12). */
.tribe-events-single .tribe-events-event-meta a:hover {
	text-decoration: none;
}

.tribe-events-single .tribe-events-venue-map {
	max-width: 100%;
}

.tribe-events-single .tribe-events-venue-map iframe {
	max-width: 100%;
}

/* Previous and next event. */
.tribe-events-single .tribe-events-sub-nav a {
	color: var(--wp--preset--color--deep-teal);
}

/* Ticket form ------------------------------------------------------------------------------------- */

.tribe-common.event-tickets .tribe-tickets__tickets-form {
	border-color: var(--wp--preset--color--mist);
}

.tribe-common.event-tickets .tribe-tickets__tickets-title {
	font-family: var(--wp--preset--font-family--montserrat);
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 900;
	color: var(--wp--preset--color--heading-grey);
}

.tribe-common.event-tickets .tribe-tickets__tickets-item {
	border-color: var(--wp--preset--color--mist);
}

.tribe-common.event-tickets .tribe-tickets__tickets-item-content-title {
	font-family: var(--wp--preset--font-family--montserrat);
	font-weight: 700;
	color: var(--wp--preset--color--heading-grey);
}

.tribe-common.event-tickets :is(.tribe-tickets__tickets-item-details-content, .tribe-tickets__tickets-item-extra-price, .tribe-tickets__tickets-footer, .tribe-tickets-notice__content) {
	color: var(--wp--preset--color--ink);
}

.tribe-common.event-tickets .tribe-tickets__tickets-item-extra-available {
	color: var(--wp--preset--color--meta-grey);
}

.tribe-common.event-tickets .tribe-tickets__notice {
	border-left-color: var(--wp--preset--color--deep-teal);
	background-color: var(--wp--preset--color--panel);
	color: var(--wp--preset--color--ink);
}

/* Quantity: a bordered field between two deep-teal controls, each at least 44px. */
.tribe-common.event-tickets .tribe-tickets__form .tribe-tickets__tickets-item-quantity input[type="number"].tribe-tickets__tickets-item-quantity-number-input {
	box-sizing: border-box;
	width: 3.5rem;
	min-height: 2.75rem;
	padding: var(--wp--preset--spacing--20);
	border: 1px solid var(--wp--preset--color--meta-grey);
	border-radius: 0;
	background-color: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--roboto);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 400;
	text-align: center;
}

.tribe-common.event-tickets .tribe-tickets__form .tribe-tickets__tickets-item-quantity :is(button.tribe-tickets__tickets-item-quantity-remove, button.tribe-tickets__tickets-item-quantity-add) {
	box-sizing: border-box;
	min-width: 2.75rem;
	min-height: 2.75rem;
	padding: 0;
	border: 0;
	background-color: transparent;
	color: var(--wp--preset--color--deep-teal);
	font-family: var(--wp--preset--font-family--montserrat);
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 700;
	line-height: 1;
}

.tribe-common.event-tickets .tribe-tickets__form .tribe-tickets__tickets-item-quantity :is(button.tribe-tickets__tickets-item-quantity-remove, button.tribe-tickets__tickets-item-quantity-add):hover {
	color: var(--wp--preset--color--teal-strong);
}
