.mod-google-upcoming-events {
	--gue-accent: #71b2fb;
	--gue-accent-dark: #1d5f9f;
	--gue-border: #d7dee2;
	--gue-foreground: #172126;
	--gue-muted: #5f6c72;
	--gue-surface: #ffffff;
	--gue-soft: #f5f7f8;
	background: transparent;
	color: var(--gue-foreground);
}

.mod-google-upcoming-events--dark {
	--gue-accent: #71b2fb;
	--gue-accent-dark: #cfe6ff;
	--gue-border: rgba(255, 255, 255, 0.18);
	--gue-foreground: #ffffff;
	--gue-muted: rgba(255, 255, 255, 0.72);
	--gue-surface: #101820;
	--gue-soft: #ffffff;
	background: var(--gue-surface);
	border: 1px solid var(--gue-border);
	border-radius: 8px;
	padding: 0.75rem;
}

.moduletable:has(.mod-google-upcoming-events--dark) > h3,
.moduletable:has(.mod-google-upcoming-events--dark) .module-title,
.moduletable:has(.mod-google-upcoming-events--dark) .moduletable-title,
.module:has(.mod-google-upcoming-events--dark) > h3,
.module:has(.mod-google-upcoming-events--dark) .module-title,
.module:has(.mod-google-upcoming-events--dark) .card-header {
	color: #ffffff !important;
}

:where(.moduletable, .module, .card, aside, section, div):has(> .mod-google-upcoming-events--dark) > :where(h1, h2, h3, h4, h5, h6, .module-title, .moduletable-title, .card-header),
:where(.moduletable, .module, .card, aside, section, div):has(.mod-google-upcoming-events--dark) :where(.module-title, .moduletable-title, .card-header) {
	color: #ffffff !important;
}

.mod-google-upcoming-events__list {
	display: grid;
	gap: 0.45rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.mod-google-upcoming-events__item {
	align-items: start;
	background: transparent;
	border-bottom: 1px solid var(--gue-border);
	display: grid;
	gap: 0.65rem;
	grid-template-columns: 3.1rem minmax(0, 1fr);
	min-width: 0;
	padding: 0.45rem 0;
}

.mod-google-upcoming-events__item:first-child {
	padding-top: 0;
}

.mod-google-upcoming-events__item:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.mod-google-upcoming-events__date-badge {
	background: var(--gue-soft);
	border: 1px solid var(--gue-border);
	border-radius: 5px;
	box-shadow: 0 1px 0 rgba(23, 33, 38, 0.05);
	display: grid;
	grid-template-rows: 1.15rem 1.9rem;
	overflow: hidden;
	text-align: center;
	width: 3.1rem;
}

.mod-google-upcoming-events__month {
	align-items: center;
	background: var(--gue-accent);
	color: #ffffff;
	display: flex;
	font-size: 0.65rem;
	font-weight: 700;
	justify-content: center;
	letter-spacing: 0;
	line-height: 1;
	text-transform: uppercase;
}

.mod-google-upcoming-events__day {
	align-items: center;
	color: var(--gue-accent-dark);
	display: flex;
	font-size: 1.25rem;
	font-weight: 800;
	justify-content: center;
	line-height: 1;
}

.mod-google-upcoming-events--dark .mod-google-upcoming-events__day {
	color: #101820;
}

.mod-google-upcoming-events__body {
	min-width: 0;
	padding-top: 0.05rem;
}

.mod-google-upcoming-events__title {
	font-size: 0.95rem;
	line-height: 1.25;
	margin: 0;
}

.mod-google-upcoming-events__title a {
	color: inherit !important;
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.18em;
}

.mod-google-upcoming-events--dark,
.mod-google-upcoming-events--dark :where(.mod-google-upcoming-events__title, .mod-google-upcoming-events__title a) {
	color: #ffffff !important;
}

.mod-google-upcoming-events--dark :where(a, a:visited) {
	color: #ffffff !important;
}

.mod-google-upcoming-events__time {
	color: var(--gue-accent-dark);
	font-size: 0.78rem;
	font-weight: 700;
	line-height: 1.25;
	margin: 0.12rem 0 0;
}

.mod-google-upcoming-events__meta,
.mod-google-upcoming-events__description,
.mod-google-upcoming-events__empty,
.mod-google-upcoming-events__diagnostic {
	color: var(--gue-muted);
	font-size: 0.82rem;
	line-height: 1.3;
	margin: 0.15rem 0 0;
}

.mod-google-upcoming-events__diagnostic {
	border-left: 3px solid var(--gue-border);
	font-size: 0.82rem;
	padding-left: 0.65rem;
}
