/* SRMedia Courses — weekly calendar (stable classes; colors via --srm-cal-* vars) */
.srm-cal {
	--srm-cal-accent: #bd6440;
	--srm-cal-card-bg: #fffaf3;
	--srm-cal-card-border: #e5dcd0;
	--srm-cal-today: #f4e3d4;
	--srm-cal-lang-bg: #bd6440;
	--srm-cal-lang-fg: #fffaf3;
	--srm-cal-soldout: #b8b3a8;
	font-family: inherit;
	color: #1d2327;
	max-width: 100%;
}

/* Never let the theme underline calendar links (buttons, day cards, etc.). */
.srm-cal a,
.srm-cal a:hover,
.srm-cal a:focus { text-decoration: none !important; }

.srm-cal__nav {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
	flex-wrap: wrap;
}
.srm-cal__btn {
	display: inline-block;
	padding: 5px 12px;
	border: 1px solid var(--srm-cal-card-border);
	border-radius: 6px;
	text-decoration: none;
	color: var(--srm-cal-accent);
	background: #fff;
	line-height: 1.4;
}
.srm-cal__btn:hover { background: var(--srm-cal-today); }
.srm-cal__btn.is-disabled { opacity: .4; pointer-events: none; }
.srm-cal__headline { margin-left: auto; font-weight: 600; }

/* Week-jump dropdown */
.srm-cal__weekform { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.srm-cal__weekfilter { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.srm-cal__weeklabel { font-size: 13px; color: #50575e; }
.srm-cal__weekselect {
	padding: 5px 10px;
	border: 1px solid var(--srm-cal-card-border);
	border-radius: 6px;
	background: #fff;
	color: #1d2327;
	font: inherit;
	line-height: 1.4;
	max-width: 260px;
	cursor: pointer;
}
.srm-cal__weekselect:focus { outline: 2px solid var(--srm-cal-accent); outline-offset: 1px; }

.srm-cal__grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 8px;
}
.srm-cal__day {
	border: 1px solid var(--srm-cal-card-border);
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
	display: flex;
	flex-direction: column;
	min-height: 90px;
}
.srm-cal__day.is-today { background: var(--srm-cal-today); }
.srm-cal__day-head {
	padding: 6px 8px;
	font-weight: 600;
	font-size: 13px;
	border-bottom: 1px solid var(--srm-cal-card-border);
	position: sticky;
	top: 0;
	background: inherit;
}
.srm-cal__day-body { padding: 6px; display: flex; flex-direction: column; gap: 6px; }
.srm-cal__empty-day { color: #c9c4ba; text-align: center; padding: 8px 0; }

.srm-cal__card {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 8px;
	border: 1px solid var(--srm-cal-card-border);
	border-left: 3px solid var(--srm-cal-accent);
	border-radius: 6px;
	background: var(--srm-cal-card-bg);
	text-decoration: none;
	color: inherit;
	transition: box-shadow .12s ease;
}
.srm-cal__card:hover { box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.srm-cal__card-time { font-weight: 700; font-size: 13px; color: var(--srm-cal-accent); }
.srm-cal__card-title { font-size: 13px; font-weight: 600; }
.srm-cal__card-instructor,
.srm-cal__card-location,
.srm-cal__card-spots { font-size: 12px; color: #50575e; }
.srm-cal__lang {
	align-self: flex-start;
	margin-top: 2px;
	font-size: 11px;
	font-weight: 700;
	padding: 1px 6px;
	border-radius: 3px;
	background: var(--srm-cal-lang-bg);
	color: var(--srm-cal-lang-fg);
}

.srm-cal__card.is-soldout-greyed { opacity: .55; }
.srm-cal__card.is-soldout-strikethrough .srm-cal__card-title { text-decoration: line-through; color: var(--srm-cal-soldout); }
.srm-cal__card.is-soldout .srm-cal__card-time { color: var(--srm-cal-soldout); }

.srm-cal__empty { margin-top: 12px; color: #50575e; }
.srm-cal__empty a { margin-left: 6px; }

/* Mobile: stacked day-by-day (scroll pattern is the default) */
@media (max-width: 768px) {
	.srm-cal__grid { grid-template-columns: 1fr; }
	.srm-cal__day { min-height: 0; }
	.srm-cal--scroll .srm-cal__day-head { position: sticky; top: 0; z-index: 2; }
	.srm-cal--tabs .srm-cal__day:not(.is-today) { /* simple fallback: show all stacked */ }
}
