/**
 * Eigyo Calendar - front-end styles.
 *
 * Change the colors from your theme's "Additional CSS", for example:
 *
 *   .bdcal {
 *     --bdcal-closed-bg: #fff4e5;
 *     --bdcal-closed-color: #8a4b00;
 *   }
 */

.bdcal {
	--bdcal-closed-bg: #fdecea;
	--bdcal-closed-color: #b3261e;
	--bdcal-today-ring: #1a56db;
	--bdcal-sun-color: #b3261e;
	--bdcal-sat-color: #1a56db;
	--bdcal-border: #d9d9d9;
	--bdcal-header-bg: #f5f5f5;
	--bdcal-text: inherit;
	--bdcal-gap: 1.5rem;

	display: flex;
	flex-wrap: wrap;
	gap: var(--bdcal-gap);
	align-items: flex-start;
	color: var(--bdcal-text);
}

.bdcal .bdcal-month {
	flex: 1 1 16rem;
	max-width: 24rem;
	width: 100%;
	margin: 0;
	border-collapse: collapse;
	table-layout: fixed;
	font-size: 0.95em;
	line-height: 1.3;
}

.bdcal .bdcal-month caption {
	margin-bottom: 0.4em;
	font-weight: 700;
	text-align: center;
}

.bdcal .bdcal-month th,
.bdcal .bdcal-month td {
	padding: 0.3em 0.1em;
	border: 1px solid var(--bdcal-border);
	text-align: center;
	vertical-align: top;
}

.bdcal .bdcal-month th {
	background: var(--bdcal-header-bg);
	font-weight: 700;
}

.bdcal .is-sun,
.bdcal .is-holiday .bdcal-num {
	color: var(--bdcal-sun-color);
}

.bdcal .is-sat {
	color: var(--bdcal-sat-color);
}

.bdcal .bdcal-day.is-closed {
	background: var(--bdcal-closed-bg);
}

.bdcal .bdcal-num {
	display: block;
	font-weight: 600;
}

.bdcal .bdcal-mark {
	display: block;
	color: var(--bdcal-closed-color);
	font-size: 0.75em;
	font-weight: 700;
}

.bdcal .bdcal-holiday-name {
	display: block;
	color: var(--bdcal-closed-color);
	font-size: 0.65em;
	line-height: 1.2;
	word-break: break-all;
}

.bdcal .bdcal-day.is-today {
	outline: 3px solid var(--bdcal-today-ring);
	outline-offset: -3px;
}

.bdcal .bdcal-legend {
	flex-basis: 100%;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em 1.25em;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0.85em;
}

.bdcal .bdcal-legend li {
	display: flex;
	align-items: center;
	gap: 0.4em;
	margin: 0;
}

.bdcal .bdcal-swatch {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.6em;
	height: 1.6em;
	border: 1px solid var(--bdcal-border);
	font-size: 0.8em;
	font-weight: 700;
}

.bdcal .bdcal-swatch.is-closed {
	background: var(--bdcal-closed-bg);
	color: var(--bdcal-closed-color);
}

.bdcal .bdcal-swatch.is-today {
	outline: 3px solid var(--bdcal-today-ring);
	outline-offset: -3px;
}

.bdcal .bdcal-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.bdcal-status {
	margin: 0 0 1em;
	padding: 0.6em 0.9em;
	border-left: 4px solid;
	font-weight: 600;
}

.bdcal-status.is-open {
	border-color: #1e7b34;
	background: #edf7ef;
	color: #14532d;
}

.bdcal-status.is-closed {
	border-color: #b3261e;
	background: #fdecea;
	color: #7f1d1d;
}

@media (forced-colors: active) {
	.bdcal .bdcal-day.is-today,
	.bdcal .bdcal-swatch.is-today {
		outline-color: Highlight;
	}
}
