/*
 * Get The Coast: Events Month view.
 * Pairs with tribe/events/v2/month.php and the month/ overrides.
 * Loads after gtc-events-list.css, which already styles the page heading,
 * search bar, top bar, view toggle and sponsor band (the Month container
 * also carries .gtc-events-list).
 *
 * Rules start from five classes on the container so they outrank the
 * plugin's breakpoint rules (.tribe-common--breakpoint-medium.tribe-events .x)
 * without !important. Multi-day bars keep the plugin's sizing; only their
 * colors change.
 */

.tribe-common.tribe-events.tribe-events-view.gtc-events-month {
	--gtc-outside: #fafbfc;
	--gtc-today: #f5f9ff;
	--gtc-chip-time-featured: #9ec2ff;
}

/* ---------- Grid frame ---------- */

.tribe-common.tribe-events.tribe-events-view.gtc-events-month .tribe-events-calendar-month {
	margin-top: 8px;
}

.tribe-common--breakpoint-medium.tribe-common.tribe-events.tribe-events-view.gtc-events-month .tribe-events-calendar-month {
	display: block;
	margin-top: 16px;
	overflow: hidden;
	border: 1px solid var(--gtc-line);
	border-radius: 12px;
}

.tribe-common--breakpoint-medium.tribe-common.tribe-events.tribe-events-view.gtc-events-month .tribe-events-calendar-month__header {
	display: block;
	background: var(--gtc-tint);
	border-bottom: 1px solid var(--gtc-line);
}

.tribe-common.tribe-events.tribe-events-view.gtc-events-month .tribe-events-calendar-month__header-column {
	padding: 8px 0;
}

.tribe-common--breakpoint-medium.tribe-common.tribe-events.tribe-events-view.gtc-events-month .tribe-events-calendar-month__header-column {
	padding: 10px 12px;
}

.tribe-common.tribe-events.tribe-events-view.gtc-events-month .tribe-events-calendar-month__header-column-title {
	font-family: var(--gtc-sans);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--gtc-label);
}

.tribe-common--breakpoint-medium.tribe-common.tribe-events.tribe-events-view.gtc-events-month .tribe-events-calendar-month__body {
	display: block;
	border-top: 0;
}

.tribe-common--breakpoint-medium.tribe-common.tribe-events.tribe-events-view.gtc-events-month .tribe-events-calendar-month__week {
	border-left: 0;
}

.tribe-common--breakpoint-medium.tribe-common.tribe-events.tribe-events-view.gtc-events-month .tribe-events-calendar-month__week:last-child .tribe-events-calendar-month__day {
	border-bottom-width: 0;
}

/* ---------- Days (desktop) ---------- */

.tribe-common--breakpoint-medium.tribe-common.tribe-events.tribe-events-view.gtc-events-month .tribe-events-calendar-month__day {
	min-height: 150px;
	border-color: var(--gtc-line);
	background: #fff;
}

.tribe-common--breakpoint-medium.tribe-common.tribe-events.tribe-events-view.gtc-events-month .tribe-events-calendar-month__day:nth-child(7n) {
	border-right-width: 0;
}

.tribe-common--breakpoint-medium.tribe-common.tribe-events.tribe-events-view.gtc-events-month .tribe-events-calendar-month__day.gtc-month-day--outside {
	background: var(--gtc-outside);
}

.tribe-common--breakpoint-medium.tribe-common.tribe-events.tribe-events-view.gtc-events-month .tribe-events-calendar-month__day--current {
	background: var(--gtc-today);
	box-shadow: inset 0 0 0 2px var(--gtc-accent);
}

.tribe-common--breakpoint-medium.tribe-common.tribe-events.tribe-events-view.gtc-events-month .tribe-events-calendar-month__day-cell--desktop {
	gap: 6px;
	padding: 10px 0 8px;
}

.tribe-common--breakpoint-medium.tribe-common.tribe-events.tribe-events-view.gtc-events-month .tribe-events-calendar-month__day-cell--desktop .tribe-events-calendar-month__day-date {
	padding: 0 12px;
	font-family: var(--gtc-sans);
	font-size: 15px;
	line-height: 30px;
	font-weight: 700;
	color: var(--gtc-ink);
}

.tribe-common.tribe-events.tribe-events-view.gtc-events-month .tribe-events-calendar-month__day-cell--desktop .tribe-events-calendar-month__day-date-link {
	color: inherit;
	text-decoration: none;
}

.tribe-common.tribe-events.tribe-events-view.gtc-events-month .tribe-events-calendar-month__day-cell--desktop .tribe-events-calendar-month__day-date-link:hover {
	color: var(--gtc-accent);
}

.tribe-common.tribe-events.tribe-events-view.gtc-events-month .tribe-events-calendar-month__day--past .tribe-events-calendar-month__day-cell--desktop .tribe-events-calendar-month__day-date {
	color: #667085;
}

.tribe-common.tribe-events.tribe-events-view.gtc-events-month .gtc-month-day--outside .tribe-events-calendar-month__day-cell--desktop .tribe-events-calendar-month__day-date {
	color: #98a2b3;
}

/* Today: number in a blue circle, "Today" beside it. */
.tribe-common.tribe-events.tribe-events-view.gtc-events-month .tribe-events-calendar-month__day--current .tribe-events-calendar-month__day-cell--desktop .tribe-events-calendar-month__day-date-daynum {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 999px;
	background: var(--gtc-accent);
	color: #fff;
}

.tribe-common.tribe-events.tribe-events-view.gtc-events-month .tribe-events-calendar-month__day--current .tribe-events-calendar-month__day-cell--desktop .tribe-events-calendar-month__day-date::after {
	content: "Today";
	margin-left: 8px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--gtc-accent);
	vertical-align: middle;
}

/* ---------- Event chips ---------- */

.tribe-common.tribe-events.tribe-events-view.gtc-events-month .gtc-month-chip {
	margin: 0 8px 6px;
	padding: 0;
}

.tribe-common.tribe-events.tribe-events-view.gtc-events-month .gtc-month-chip:last-child {
	padding-bottom: 0;
}

.tribe-common.tribe-events.tribe-events-view.gtc-events-month .gtc-month-chip__details {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 1px;
	min-width: 0;
	padding: 5px 8px;
	border-left: 3px solid var(--gtc-accent);
	border-radius: 6px;
	background: var(--gtc-tint);
}

.tribe-common.tribe-events.tribe-events-view.gtc-events-month .gtc-month-chip__time {
	font-family: var(--gtc-sans);
	font-size: 11px;
	line-height: 1.3;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--gtc-accent);
}

.tribe-common.tribe-events.tribe-events-view.gtc-events-month .gtc-month-chip__title {
	overflow: hidden;
	font-family: var(--gtc-sans);
	font-size: 13px;
	line-height: 1.3;
	font-weight: 600;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.tribe-common.tribe-events.tribe-events-view.gtc-events-month a.gtc-month-chip__link {
	color: var(--gtc-ink);
	text-decoration: none;
}

/* Whole chip clickable. */
.tribe-common.tribe-events.tribe-events-view.gtc-events-month a.gtc-month-chip__link::after {
	content: "";
	position: absolute;
	inset: 0;
}

.tribe-common.tribe-events.tribe-events-view.gtc-events-month .gtc-month-chip:hover .gtc-month-chip__details {
	background: #e9effa;
}

.tribe-common.tribe-events.tribe-events-view.gtc-events-month .gtc-month-chip--featured .gtc-month-chip__details {
	border-left-color: var(--gtc-ink);
	background: var(--gtc-ink);
}

.tribe-common.tribe-events.tribe-events-view.gtc-events-month .gtc-month-chip--featured .gtc-month-chip__time {
	color: var(--gtc-chip-time-featured);
}

.tribe-common.tribe-events.tribe-events-view.gtc-events-month .gtc-month-chip--featured a.gtc-month-chip__link {
	color: #fff;
}

.tribe-common.tribe-events.tribe-events-view.gtc-events-month .gtc-month-chip--featured:hover .gtc-month-chip__details {
	background: #000;
}

.tribe-common.tribe-events.tribe-events-view.gtc-events-month .tribe-events-calendar-month__day--past .gtc-month-chip__details,
.tribe-common.tribe-events.tribe-events-view.gtc-events-month .tribe-events-calendar-month__day--past .tribe-events-calendar-month__multiday-event-bar {
	opacity: 0.6;
}

/* "+3 more" */
.tribe-common.tribe-events.tribe-events-view.gtc-events-month .gtc-month-more {
	margin: 0 12px;
	padding: 2px 0 0;
}

.tribe-common.tribe-events.tribe-events-view.gtc-events-month a.gtc-month-more__link {
	display: inline-flex;
	align-items: center;
	min-height: 28px;
	font-family: var(--gtc-sans);
	font-size: 13px;
	font-weight: 700;
	color: var(--gtc-accent);
	text-decoration: none;
}

.tribe-common.tribe-events.tribe-events-view.gtc-events-month a.gtc-month-more__link:hover {
	color: var(--gtc-accent-dark);
	text-decoration: underline;
}

/* ---------- Multi-day bars (plugin sizing, our colors) ---------- */

.tribe-common.tribe-events.tribe-events-view.gtc-events-month .tribe-events-calendar-month__multiday-event-bar {
	border-radius: 6px;
	background-color: #e6eeff;
}

.tribe-common.tribe-events.tribe-events-view.gtc-events-month .tribe-events-calendar-month__multiday-event-bar-title {
	font-family: var(--gtc-sans);
	font-size: 12px;
	font-weight: 700;
	color: var(--gtc-ink);
}

.tribe-common.tribe-events.tribe-events-view.gtc-events-month .tribe-events-calendar-month__multiday-event--featured .tribe-events-calendar-month__multiday-event-bar {
	background-color: var(--gtc-ink);
}

.tribe-common.tribe-events.tribe-events-view.gtc-events-month .tribe-events-calendar-month__multiday-event--featured .tribe-events-calendar-month__multiday-event-bar-title {
	color: #fff;
}

.tribe-common.tribe-events.tribe-events-view.gtc-events-month .tribe-events-calendar-month__multiday-event--featured .tribe-events-calendar-month__multiday-event-bar-featured-icon path {
	fill: #fff;
}

/* ---------- Hover card (plugin tooltip) ---------- */

.tribe-events-tooltip-theme .tribe-events-calendar-month__calendar-event-tooltip-title {
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
	font-weight: 800;
}

/* ---------- Phones: dot calendar ---------- */

.tribe-common.tribe-events.tribe-events-view.gtc-events-month .tribe-events-calendar-month__day-cell--mobile {
	gap: 3px;
	padding-top: 4px;
	color: var(--gtc-ink);
}

.tribe-common.tribe-events.tribe-events-view.gtc-events-month .tribe-events-calendar-month__day-cell--mobile .tribe-events-calendar-month__day-date {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 999px;
	font-family: var(--gtc-sans);
	font-size: 15px;
	font-weight: 600;
	color: inherit;
}

.tribe-common.tribe-events.tribe-events-view.gtc-events-month .tribe-events-calendar-month__day--past .tribe-events-calendar-month__day-cell--mobile {
	color: #667085;
}

.tribe-common.tribe-events.tribe-events-view.gtc-events-month .gtc-month-day--outside .tribe-events-calendar-month__day-cell--mobile {
	color: #c0c6d0;
}

.tribe-common.tribe-events.tribe-events-view.gtc-events-month .tribe-events-calendar-month__day--current .tribe-events-calendar-month__day-cell--mobile .tribe-events-calendar-month__day-date {
	box-shadow: inset 0 0 0 2px var(--gtc-accent);
	font-weight: 800;
}

.tribe-common.tribe-events.tribe-events-view.gtc-events-month .tribe-events-calendar-month__day-cell--selected .tribe-events-calendar-month__day-date,
.tribe-common.tribe-events.tribe-events-view.gtc-events-month .tribe-events-calendar-month__day--current .tribe-events-calendar-month__day-cell--selected .tribe-events-calendar-month__day-date {
	background: var(--gtc-accent);
	box-shadow: none;
	font-weight: 800;
	color: #fff;
}

.tribe-common.tribe-events.tribe-events-view.gtc-events-month .gtc-month-dots {
	display: flex;
	gap: 3px;
	height: 6px;
}

.tribe-common.tribe-events.tribe-events-view.gtc-events-month .gtc-month-dot {
	width: 6px;
	height: 6px;
	border-radius: 999px;
	background: var(--gtc-accent);
}

.tribe-common.tribe-events.tribe-events-view.gtc-events-month .gtc-month-dot--featured {
	background: var(--gtc-ink);
}

.tribe-common.tribe-events.tribe-events-view.gtc-events-month .tribe-events-calendar-month__day--past .gtc-month-dot:not(.gtc-month-dot--featured) {
	background: #98a2b3;
}

/* ---------- Phones: the chosen day's events ---------- */

.tribe-common.tribe-events.tribe-events-view.gtc-events-month .tribe-events-calendar-month-mobile-events {
	margin-top: 16px;
}

.tribe-common.tribe-events.tribe-events-view.gtc-events-month .tribe-events-calendar-month-mobile-events__day-marker {
	padding: 8px 0 10px;
	border-bottom: 2px solid var(--gtc-ink);
}

.tribe-common.tribe-events.tribe-events-view.gtc-events-month .tribe-events-calendar-month-mobile-events__day-marker .tribe-events-c-day-marker__date {
	font-family: var(--gtc-sans);
	font-size: 18px;
	font-weight: 800;
	color: var(--gtc-ink);
}

.tribe-common.tribe-events.tribe-events-view.gtc-events-month .gtc-month-row {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 16px 0;
	border-bottom: 1px solid var(--gtc-line);
}

.tribe-common.tribe-events.tribe-events-view.gtc-events-month .gtc-month-row--featured {
	margin: 8px 0;
	padding: 12px;
	border: 2px solid var(--gtc-ink);
	border-radius: 12px;
}

.tribe-common.tribe-events.tribe-events-view.gtc-events-month .gtc-month-row__thumb {
	width: 76px;
	height: 76px;
	flex-shrink: 0;
	overflow: hidden;
	border-radius: 10px;
	background: var(--gtc-tint);
}

.tribe-common.tribe-events.tribe-events-view.gtc-events-month .gtc-month-row__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 20%;
}

.tribe-common.tribe-events.tribe-events-view.gtc-events-month .gtc-month-row__body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.tribe-common.tribe-events.tribe-events-view.gtc-events-month .gtc-month-row__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin: 0;
}

.tribe-common.tribe-events.tribe-events-view.gtc-events-month .gtc-month-row__time {
	font-family: var(--gtc-sans);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--gtc-accent);
}

.tribe-common.tribe-events.tribe-events-view.gtc-events-month h3.gtc-month-row__title {
	margin: 0;
	font-family: var(--gtc-sans);
	font-size: 16px;
	line-height: 1.3;
	font-weight: 700;
}

.tribe-common.tribe-events.tribe-events-view.gtc-events-month a.gtc-month-row__link {
	color: var(--gtc-ink);
	text-decoration: none;
}

.tribe-common.tribe-events.tribe-events-view.gtc-events-month a.gtc-month-row__link::after {
	content: "";
	position: absolute;
	inset: 0;
}

.tribe-common.tribe-events.tribe-events-view.gtc-events-month .gtc-month-row__place {
	margin: 0;
	font-family: var(--gtc-sans);
	font-size: 14px;
	color: var(--gtc-muted);
}

.tribe-common.tribe-events.tribe-events-view.gtc-events-month .gtc-month-row__cost {
	margin: 0;
	font-family: var(--gtc-sans);
	font-size: 14px;
	font-weight: 700;
	color: var(--gtc-label);
}

.tribe-common.tribe-events.tribe-events-view.gtc-events-month .tribe-events-calendar-month-mobile-events__more-events {
	padding: 12px 0;
}

.tribe-common.tribe-events.tribe-events-view.gtc-events-month .tribe-events-calendar-month-mobile-events__more-events-link {
	font-family: var(--gtc-sans);
	font-size: 14px;
	font-weight: 700;
	color: var(--gtc-accent);
}

/* Phone month navigation under the day list. */
.tribe-common.tribe-events.tribe-events-view.gtc-events-month .tribe-events-calendar-month-nav {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid var(--gtc-line);
}

.tribe-common.tribe-events.tribe-events-view.gtc-events-month .tribe-events-calendar-month-nav .tribe-events-c-nav__prev,
.tribe-common.tribe-events.tribe-events-view.gtc-events-month .tribe-events-calendar-month-nav .tribe-events-c-nav__next,
.tribe-common.tribe-events.tribe-events-view.gtc-events-month .tribe-events-calendar-month-nav .tribe-events-c-nav__today {
	min-height: 44px;
	font-family: var(--gtc-sans);
	font-weight: 700;
	color: var(--gtc-ink);
}

/* ---------- Native ad under the grid ---------- */

.tribe-common.tribe-events.tribe-events-view.gtc-events-month .gtc-events-month__ad {
	margin: 24px 0 0;
}

/* Subscribe links stay at the bottom here (no sidebar in Month). */
.tribe-common.tribe-events.tribe-events-view.gtc-events-month .tribe-events-c-subscribe-dropdown__container {
	margin-top: 24px;
}

/* The plugin fills the chosen day's whole button; we use the circle only. */
.tribe-common.tribe-events.tribe-events-view.gtc-events-month .tribe-events-calendar-month__day-cell--mobile,
.tribe-common.tribe-events.tribe-events-view.gtc-events-month .tribe-events-calendar-month__day-cell--mobile:hover,
.tribe-common.tribe-events.tribe-events-view.gtc-events-month .tribe-events-calendar-month__day-cell--mobile:focus,
.tribe-common.tribe-events.tribe-events-view.gtc-events-month .tribe-events-calendar-month__day-cell--selected,
.tribe-common.tribe-events.tribe-events-view.gtc-events-month .tribe-events-calendar-month__day-cell--selected:hover,
.tribe-common.tribe-events.tribe-events-view.gtc-events-month .tribe-events-calendar-month__day-cell--selected:focus {
	background-color: transparent;
}

.tribe-common.tribe-events.tribe-events-view.gtc-events-month .tribe-events-calendar-month__day-cell--mobile:focus-visible .tribe-events-calendar-month__day-date {
	outline: 2px solid var(--gtc-accent);
	outline-offset: 2px;
}

/* One rule under the day heading, not two. */
.tribe-common.tribe-events.tribe-events-view.gtc-events-month .tribe-events-calendar-month-mobile-events__day-marker::after {
	display: none;
}
