/* Google Calendar Feeds – layout modeled on The Events Calendar month view. */
.gcf-wrap {
	--gcf-accent: #334aff;
	--gcf-text: #141827;
	--gcf-text-2: #5d5d5d;
	--gcf-border: #e4e4e4;
	--gcf-border-2: #d5d5d5;
	--gcf-bg: #fff;
	--gcf-bg-soft: #f7f6f6;
	--gcf-font: "Helvetica Neue", Helvetica, -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
	max-width: 1000px;
	margin: 0 auto;
	position: relative;
}
.gcf-calendar {
	font-family: var(--gcf-font);
	color: var(--gcf-text);
	font-size: 14px;
	line-height: 1.5;
	position: relative;
	transition: opacity .15s;
}
.gcf-calendar *, .gcf-calendar *::before, .gcf-calendar *::after { box-sizing: border-box; }
.gcf-calendar.is-loading { opacity: .45; pointer-events: none; }
.gcf-calendar a { text-decoration: none; color: inherit; box-shadow: none; }
.gcf-calendar h2, .gcf-calendar h3 { font-family: var(--gcf-font); margin: 0; padding: 0; letter-spacing: normal; text-transform: none; }
.gcf-calendar .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }

/* Events bar (search + view selector) */
.gcf-events-bar {
	display: flex;
	align-items: center;
	border: 1px solid var(--gcf-border);
	border-radius: 4px;
	background: var(--gcf-bg);
	padding: 0 16px 0 12px;
	min-height: 56px;
	margin-bottom: 40px;
	gap: 16px;
}
.gcf-search { display: flex; align-items: center; flex: 1 1 auto; gap: 12px; margin: 0; }
.gcf-search__field { display: flex; align-items: center; flex: 1 1 auto; gap: 8px; margin: 0; cursor: text; }
.gcf-search__icon { width: 16px; height: 16px; fill: var(--gcf-text-2); flex: 0 0 16px; }
.gcf-calendar .gcf-search__input {
	border: 0 !important;
	box-shadow: none !important;
	background: transparent !important;
	font: 400 14px/1.5 var(--gcf-font);
	color: var(--gcf-text);
	padding: 8px 0 !important;
	margin: 0;
	width: 100%;
	height: auto;
	min-height: 0;
	outline: none;
}
.gcf-search__input::placeholder { color: var(--gcf-text-2); opacity: 1; }
.gcf-calendar .gcf-search__button {
	background: var(--gcf-accent);
	color: #fff;
	border: 0;
	border-radius: 4px;
	font: 700 14px/1.62 var(--gcf-font);
	padding: 8px 20px;
	cursor: pointer;
	white-space: nowrap;
	text-transform: none;
	letter-spacing: normal;
	box-shadow: none;
}
.gcf-search__button:hover, .gcf-search__button:focus { filter: brightness(.9); }
.gcf-view-selector { display: flex; align-self: stretch; gap: 24px; flex: 0 0 auto; }
.gcf-view-selector__link {
	display: flex;
	align-items: center;
	font-size: 14px;
	color: var(--gcf-text);
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
	padding-top: 2px;
}
.gcf-view-selector__link.is-active { font-weight: 700; border-bottom-color: var(--gcf-text); }
.gcf-view-selector__link:hover { color: var(--gcf-accent); }

/* Top bar (arrows, today, title) */
.gcf-top-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; position: relative; }
.gcf-top-bar__nav { display: flex; gap: 4px; }
.gcf-top-bar__arrow { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; }
.gcf-top-bar__arrow svg { width: 10px; height: 16px; fill: var(--gcf-text); }
.gcf-top-bar__arrow:hover svg { fill: var(--gcf-accent); }
.gcf-top-bar__today {
	font-size: 12px;
	line-height: 1.4;
	color: var(--gcf-text-2);
	border: 1px solid var(--gcf-border-2);
	border-radius: 4px;
	padding: 5px 13px;
	background: var(--gcf-bg);
}
.gcf-top-bar__today:hover { border-color: var(--gcf-text-2); color: var(--gcf-text); }
.gcf-top-bar__today.is-disabled { opacity: .7; }
.gcf-datepicker { position: relative; }
.gcf-calendar .gcf-datepicker__button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: none;
	border: 0;
	padding: 0;
	margin: 0;
	color: var(--gcf-text);
	font: 400 24px/1.4 var(--gcf-font);
	cursor: pointer;
	box-shadow: none;
	text-transform: none;
	letter-spacing: normal;
}
.gcf-datepicker__caret { width: 10px; height: 7px; fill: var(--gcf-text); }
.gcf-datepicker__native { position: absolute; left: 0; bottom: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; border: 0; padding: 0; }
.gcf-datepicker__panel {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	z-index: 30;
	background: var(--gcf-bg);
	border: 1px solid var(--gcf-border);
	border-radius: 4px;
	box-shadow: 0 2px 12px rgba(20, 24, 39, .12);
	padding: 12px;
	width: 260px;
}
.gcf-datepicker__year { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-weight: 700; }
.gcf-calendar .gcf-datepicker__year-btn, .gcf-calendar .gcf-datepicker__month {
	background: none; border: 0; cursor: pointer; color: var(--gcf-text); font: 400 14px/1.4 var(--gcf-font);
	padding: 8px; border-radius: 4px; box-shadow: none; text-transform: none; letter-spacing: normal; margin: 0;
}
.gcf-calendar .gcf-datepicker__year-btn { font-size: 20px; padding: 0 10px; }
.gcf-datepicker__months { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.gcf-calendar .gcf-datepicker__month:hover { background: var(--gcf-bg-soft); }
.gcf-calendar .gcf-datepicker__month.is-current { background: var(--gcf-accent); color: #fff; font-weight: 700; }

/* Notices */
.gcf-notice { font-size: 14px; color: var(--gcf-text-2); margin: -12px 0 20px; }
.gcf-notice a { color: var(--gcf-accent); text-decoration: underline; margin-left: 6px; }
.gcf-notice--error { color: #b00020; border-left: 3px solid #b00020; padding: 8px 12px; background: #fff5f5; margin-top: 0; }
.gcf-empty { color: var(--gcf-text-2); padding: 24px 0; margin: 0; }

/* Month view */
.gcf-month__header { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.gcf-month__header-col { font-size: 12px; color: var(--gcf-text-2); padding: 0 0 12px; }
.gcf-month__header-long { display: none; }
.gcf-month__body {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	border-top: 1px solid var(--gcf-border);
	border-left: 1px solid var(--gcf-border);
}
.gcf-month__day {
	position: relative;
	min-height: 168px;
	border-right: 1px solid var(--gcf-border);
	border-bottom: 1px solid var(--gcf-border);
	padding: 10px 12px 12px;
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.gcf-month__day-mobile { display: none; }
.gcf-month__day-date { font-size: 20px; font-weight: 700; line-height: 1.3; margin-bottom: 10px; color: var(--gcf-text); }
.gcf-month__day-date a:hover { color: var(--gcf-accent); }
.gcf-month__day--other-month .gcf-month__day-date,
.gcf-month__day--past .gcf-month__day-date { color: var(--gcf-text-2); }
.gcf-month__day--current .gcf-month__day-date { color: var(--gcf-accent); }
.gcf-month__events { flex: 1 1 auto; }
.gcf-month__event { margin-bottom: 8px; cursor: pointer; outline: none; }
.gcf-month__event--extra { display: none; }
.gcf-month__event-time { font-size: 11px; line-height: 1.5; color: var(--gcf-text-2); }
.gcf-month__event-title { font-size: 12px !important; line-height: 1.4 !important; font-weight: 400 !important; color: var(--gcf-text); word-wrap: break-word; }
.gcf-month__event:hover .gcf-month__event-title,
.gcf-month__event:focus-visible .gcf-month__event-title { color: var(--gcf-accent); text-decoration: underline; }
.gcf-event--all-day { background: color-mix(in srgb, var(--gcf-accent) 10%, transparent); border-left: 3px solid var(--gcf-accent); padding: 2px 6px; border-radius: 2px; }
.gcf-month__more { border-top: 1px solid var(--gcf-border); padding-top: 10px; margin-top: 6px; }
.gcf-month__more a { font-size: 11px; color: var(--gcf-text-2); }
.gcf-month__more a:hover { color: var(--gcf-accent); text-decoration: underline; }
.gcf-mobile-day { display: none; }

/* Tooltip */
.gcf-tooltip {
	position: absolute;
	z-index: 40;
	width: 260px;
	background: var(--gcf-bg);
	border: 1px solid var(--gcf-border);
	border-radius: 4px;
	box-shadow: 0 2px 12px rgba(20, 24, 39, .15);
	padding: 14px 16px;
	pointer-events: none;
}
.gcf-tooltip .gcf-event-details__datetime { font-size: 11px; color: var(--gcf-text-2); margin-bottom: 4px; }
.gcf-tooltip .gcf-event-details__title { font-size: 14px; font-weight: 700; line-height: 1.4; }
.gcf-tooltip .gcf-event-details__location { font-size: 12px; color: var(--gcf-text-2); margin-top: 4px; }
.gcf-tooltip .gcf-event-details__description { font-size: 12px; color: var(--gcf-text-2); margin-top: 8px; max-height: 6.2em; overflow: hidden; }
.gcf-tooltip .gcf-event-details__link { display: none; }

/* Modal */
.gcf-modal { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.gcf-modal[hidden] { display: none; }
.gcf-modal__backdrop { position: absolute; inset: 0; background: rgba(20, 24, 39, .55); }
.gcf-modal__dialog {
	position: relative;
	background: var(--gcf-bg);
	border-radius: 6px;
	max-width: 520px;
	width: 100%;
	max-height: 85vh;
	overflow: auto;
	padding: 32px 32px 28px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, .25);
	font-family: var(--gcf-font);
}
.gcf-calendar .gcf-modal__close {
	position: absolute; top: 8px; right: 12px; background: none; border: 0; font-size: 28px; line-height: 1;
	color: var(--gcf-text-2); cursor: pointer; padding: 4px 8px; box-shadow: none; margin: 0;
}
.gcf-modal .gcf-event-details__datetime { font-size: 14px; color: var(--gcf-text-2); margin-bottom: 6px; }
.gcf-modal .gcf-event-details__title { font-size: 24px; font-weight: 700; line-height: 1.3; margin-bottom: 12px; color: var(--gcf-text); }
.gcf-modal .gcf-event-details__location { font-size: 14px; margin-bottom: 12px; padding-left: 20px; position: relative; }
.gcf-modal .gcf-event-details__location::before { content: ""; position: absolute; left: 0; top: 3px; width: 12px; height: 14px; background: var(--gcf-text-2); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 14'%3E%3Cpath d='M6 0a6 6 0 00-6 6c0 4.5 6 8 6 8s6-3.5 6-8a6 6 0 00-6-6zm0 8.2A2.2 2.2 0 116 3.8a2.2 2.2 0 010 4.4z'/%3E%3C/svg%3E") no-repeat center / contain; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 14'%3E%3Cpath d='M6 0a6 6 0 00-6 6c0 4.5 6 8 6 8s6-3.5 6-8a6 6 0 00-6-6zm0 8.2A2.2 2.2 0 116 3.8a2.2 2.2 0 010 4.4z'/%3E%3C/svg%3E") no-repeat center / contain; }
.gcf-modal .gcf-event-details__description { font-size: 15px; line-height: 1.6; color: var(--gcf-text); }
.gcf-modal .gcf-event-details__description a, .gcf-modal .gcf-event-details__link { color: var(--gcf-accent); text-decoration: underline; }
.gcf-modal .gcf-event-details__link { display: inline-block; margin-top: 16px; font-weight: 700; }
body.gcf-modal-open { overflow: hidden; }

/* List view */
.gcf-list__month-separator { font-size: 14px !important; font-weight: 700 !important; color: var(--gcf-text); display: flex; align-items: center; gap: 16px; margin: 0 0 24px !important; }
.gcf-list__month-separator::after { content: ""; flex: 1; height: 1px; background: var(--gcf-border); }
.gcf-list__row { display: grid; grid-template-columns: 64px 1fr; gap: 24px; margin-bottom: 32px; }
.gcf-list__date-tag { text-align: center; padding-top: 2px; }
.gcf-list__weekday { display: block; font-size: 11px; text-transform: uppercase; color: var(--gcf-text-2); letter-spacing: .5px; }
.gcf-list__daynum { display: block; font-size: 24px; font-weight: 700; line-height: 1.2; }
.gcf-list__row--today .gcf-list__weekday, .gcf-list__row--today .gcf-list__daynum { color: var(--gcf-accent); }
.gcf-list__event, .gcf-day__event { cursor: pointer; outline: none; }
.gcf-list__datetime, .gcf-day__datetime { font-size: 14px; color: var(--gcf-text); margin-bottom: 4px; }
.gcf-list__title, .gcf-day__title { font-size: 20px !important; font-weight: 700 !important; line-height: 1.4 !important; color: var(--gcf-text); }
.gcf-list__event:hover .gcf-list__title, .gcf-list__event:focus-visible .gcf-list__title,
.gcf-day__event:hover .gcf-day__title, .gcf-day__event:focus-visible .gcf-day__title { color: var(--gcf-accent); text-decoration: underline; }
.gcf-list__location, .gcf-day__location { font-size: 14px; color: var(--gcf-text-2); margin-top: 4px; }
.gcf-list__excerpt, .gcf-day__excerpt { font-size: 15px; line-height: 1.6; margin: 8px 0 0; color: var(--gcf-text); }

/* Day view */
.gcf-day__time-separator { font-size: 14px !important; font-weight: 700 !important; display: flex; align-items: center; gap: 16px; margin: 0 0 20px !important; color: var(--gcf-text); }
.gcf-day__time-separator::after { content: ""; flex: 1; height: 1px; background: var(--gcf-border); }
.gcf-day__event { margin: 0 0 32px; }

/* Mobile: TEC-style compact month with a day list under the grid */
@media (max-width: 767px) {
	.gcf-events-bar { flex-wrap: wrap; padding: 8px 12px; margin-bottom: 24px; }
	.gcf-search { flex-basis: 100%; }
	.gcf-view-selector { flex-basis: 100%; justify-content: flex-end; min-height: 36px; border-top: 1px solid var(--gcf-border); padding-top: 4px; }
	.gcf-top-bar { flex-wrap: wrap; margin-bottom: 20px; }
	.gcf-calendar .gcf-datepicker__button { font-size: 20px; }
	.gcf-top-bar { gap: 8px; }
	.gcf-top-bar__today { display: none; }
	.gcf-month__header-col { text-align: center; }
	.gcf-month__day { min-height: 0; padding: 0; }
	.gcf-month__day-date, .gcf-month__events, .gcf-month__more { display: none; }
	.gcf-calendar .gcf-month__day-mobile {
		display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 4px;
		width: 100%; height: 56px; padding: 8px 0 0; margin: 0; border: 0; background: none; cursor: pointer;
		font: 700 14px/1.2 var(--gcf-font); color: var(--gcf-text); box-shadow: none; text-transform: none; letter-spacing: normal; border-radius: 0;
	}
	.gcf-month__day--other-month .gcf-month__day-mobile, .gcf-month__day--past .gcf-month__day-mobile { color: var(--gcf-text-2); font-weight: 400; }
	.gcf-month__day--current .gcf-month__day-mobile { color: var(--gcf-accent); }
	.gcf-month__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gcf-text-2); }
	.gcf-month__day.is-selected .gcf-month__day-mobile { background: var(--gcf-accent); color: #fff; }
	.gcf-month__day.is-selected .gcf-month__dot { background: #fff; }
	.gcf-mobile-day { display: block; padding-top: 24px; }
	.gcf-mobile-day__heading { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 16px; margin: 0 0 16px; }
	.gcf-mobile-day__heading::after { content: ""; flex: 1; height: 1px; background: var(--gcf-border); }
	.gcf-mobile-day .gcf-month__event { display: block; margin-bottom: 20px; }
	.gcf-mobile-day .gcf-month__event-time { font-size: 14px; }
	.gcf-mobile-day .gcf-month__event-title { font-size: 18px !important; font-weight: 700 !important; }
	.gcf-list__row { grid-template-columns: 44px 1fr; gap: 16px; }
	.gcf-tooltip { display: none !important; }
	.gcf-modal__dialog { padding: 28px 20px 20px; }
}
