/**
 * wwh/home-calendar — front-end styles.
 * Bigger Mon-Sun grid with event chips inside each day cell, prev/next
 * month navigation, and a per-day detail panel that opens below.
 */

.home2-section--calendar {
	background: #18140f !important;
	color: #f2ede6;
}

.home2-section--calendar .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.home2-calendar {
	width: 100%;
	max-width: 1100px;
	margin: 0 auto;
}

/* --- Nav row (prev / month / next) ------------------------------------- */

.home2-calendar__nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: clamp(1rem, 3vw, 2.5rem);
	margin-bottom: 1.25rem;
}

.home2-calendar__navbtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	border: 1px solid rgba(242, 237, 230, 0.25);
	background: transparent;
	color: #f2ede6;
	font-size: var(--wp--preset--font-size--prose);
	line-height: 1;
	text-decoration: none;
	transition: background-color 120ms ease, border-color 120ms ease, transform 120ms ease;
	cursor: pointer;
}

.home2-calendar__navbtn:hover,
.home2-calendar__navbtn:focus-visible {
	background: rgba(242, 237, 230, 0.08);
	border-color: rgba(242, 237, 230, 0.55);
	color: #f2ede6;
	outline: none;
}

.home2-calendar__navbtn:active {
	transform: scale(0.96);
}

.home2-calendar__month {
	font-family: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
	font-style: italic;
	font-size: clamp(2.5rem, 5vw, 4.5rem);
	font-weight: 400;
	letter-spacing: -0.01em;
	line-height: 1.05;
	text-transform: none;
	color: #f2ede6;
	min-width: 11ch;
	text-align: center;
	margin: 0;
}

.home2-calendar__lede {
	font-family: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
	font-style: italic;
	font-size: var(--wp--preset--font-size--body);
	line-height: 1.5;
	color: #a9a094;
	text-align: center;
	margin: 0.5rem 0 1.75rem;
}

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

.home2-calendar__grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 4px;
	background: rgba(242, 237, 230, 0.06);
	border: 1px solid rgba(242, 237, 230, 0.08);
	border-radius: 4px;
	padding: 4px;
	transition: opacity 120ms ease;
}

.home2-calendar__grid.is-loading {
	opacity: 0.55;
	pointer-events: none;
}

.home2-calendar__dow {
	background: transparent;
	text-align: center;
	padding: 0.6rem 0;
	font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
	font-size: var(--wp--preset--font-size--cap);
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: rgba(242, 237, 230, 0.55);
}

.home2-calendar__cell {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: flex-start;
	min-height: 100px;
	padding: 0.45rem 0.55rem;
	background: #18140f;
	border: 1px solid transparent;
	border-radius: 3px;
	color: rgba(242, 237, 230, 0.55);
	font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
	font-size: var(--wp--preset--font-size--caption);
	text-align: left;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

button.home2-calendar__cell {
	cursor: pointer;
	font: inherit;
	color: #f2ede6;
}

button.home2-calendar__cell:hover,
button.home2-calendar__cell:focus-visible {
	background: rgba(242, 237, 230, 0.08);
	border-color: rgba(242, 237, 230, 0.35);
	outline: none;
}

.home2-calendar__cell--pad {
	background: transparent;
	min-height: 0;
	padding: 0;
}

.home2-calendar__cell.is-today {
	border-color: rgba(242, 237, 230, 0.45);
}

.home2-calendar__cell[aria-selected="true"] {
	background: rgba(201, 168, 107, 0.18);
	border-color: #c9a86b;
}

.home2-calendar__num {
	position: relative;
	z-index: 1;
	font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
	font-size: var(--wp--preset--font-size--body);
	font-weight: 500;
	line-height: 1;
	color: #f2ede6;
	margin: 0 0 0.4rem;
}

.home2-calendar__cell:not(.has-event) .home2-calendar__num {
	color: rgba(242, 237, 230, 0.45);
}

.home2-calendar__chips {
	display: flex;
	flex-direction: column;
	gap: 3px;
	flex: 1;
	min-width: 0;
	overflow: hidden;
}

.home2-calendar__chip {
	display: block;
	font-family: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
	font-size: var(--wp--preset--font-size--caption);
	font-style: italic;
	line-height: 1.25;
	padding: 2px 6px;
	background: rgba(201, 168, 107, 0.18);
	color: #f2ede6;
	border-radius: 2px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.home2-calendar__chip--more {
	background: transparent;
	color: rgba(242, 237, 230, 0.55);
	padding: 0 2px;
}

/* Dot indicator only on small screens (chips hidden there). */
.home2-calendar__dot {
	display: none;
	position: absolute;
	bottom: 6px;
	left: 50%;
	transform: translateX(-50%);
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: #c9a86b;
	box-shadow: 0 0 0 3px rgba(201, 168, 107, 0.15);
}

/* --- Detail panel ------------------------------------------------------ */

.home2-calendar__panel {
	margin-top: 1.5rem;
	padding: 1.25rem 1.5rem;
	background: rgba(242, 237, 230, 0.05);
	border: 1px solid rgba(242, 237, 230, 0.08);
	border-radius: 4px;
}

.home2-calendar__panel-day {
	font-family: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
	font-style: italic;
	font-size: var(--wp--preset--font-size--card-title);
	font-weight: 400;
	color: #f2ede6;
	margin: 0 0 0.85rem;
}

.home2-calendar__panel-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.95rem;
}

.home2-calendar__panel-item {
	border-left: 2px solid rgba(201, 168, 107, 0.55);
	padding-left: 0.95rem;
}

.home2-calendar__panel-link {
	font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
	font-size: var(--wp--preset--font-size--prose-li);
	line-height: 1.5;
	font-weight: 500;
	color: #f2ede6;
	text-decoration: none;
	transition: color 0.2s ease;
}

.home2-calendar__panel-link:hover,
.home2-calendar__panel-link:focus-visible {
	color: #c9a86b;
	outline: none;
}

.home2-calendar__panel-excerpt {
	margin: 0.3rem 0 0;
	font-family: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
	font-size: var(--wp--preset--font-size--body);
	font-style: italic;
	color: rgba(242, 237, 230, 0.7);
	line-height: 1.45;
}

/* --- Empty state ------------------------------------------------------- */

.home2-calendar__empty {
	margin: 1.25rem 0 0;
	text-align: center;
	font-family: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
	font-style: italic;
	color: rgba(242, 237, 230, 0.6);
}

/* --- Mobile ------------------------------------------------------------ */

@media (max-width: 720px) {
	.home2-calendar__cell {
		min-height: 60px;
		padding: 0.35rem 0.3rem;
		align-items: center;
	}

	.home2-calendar__num {
		font-size: var(--wp--preset--font-size--caption);
		margin-bottom: 0.15rem;
	}

	.home2-calendar__chips {
		display: none;
	}

	.home2-calendar__cell.has-event .home2-calendar__dot {
		display: block;
	}

	.home2-calendar__dow {
		font-size: var(--wp--preset--font-size--cap);
		letter-spacing: 0.12em;
	}
}
