/* HJT Service Schedule — scoped front-end widgets. */
.hjt-schedule {
	--hjt-green-dark: #244d19;
	--hjt-green: #315c20;
	--hjt-green-mid: #548b31;
	--hjt-green-light: #eaf1df;
	--hjt-ink: #20251d;
	--hjt-muted: #5d6a55;
	--hjt-white: #fff;
	--hjt-border: rgba(36, 77, 25, .28);
	--hjt-week-border: rgba(36, 77, 25, .46);
	--hjt-week-border-service: rgba(49, 92, 32, .72);
	--hjt-today-bg: #f0f7e8;
	--hjt-radius: 20px;
	container-type: inline-size;
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	margin: 1.5rem 0;
	color: var(--hjt-ink);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.45;
	overflow-wrap: anywhere;
}

.hjt-schedule *,
.hjt-schedule *::before,
.hjt-schedule *::after {
	box-sizing: border-box;
}

.hjt-schedule h2,
.hjt-schedule h3,
.hjt-schedule h4,
.hjt-schedule p {
	margin-top: 0;
}

.hjt-schedule__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .75rem;
	margin-bottom: .55rem;
	flex-wrap: nowrap;
}

.hjt-schedule__title {
	margin: 0;
	color: var(--hjt-green-dark);
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(1.35rem, 3.2cqi, 2rem);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: .01em;
}

.hjt-schedule__period {
	flex: 1 1 auto;
	min-width: 0;
	margin: .15rem 0 1rem;
	color: var(--hjt-green);
	font-family: Georgia, "Times New Roman", serif;
	font-size: var(--hjt-fs-period, clamp(1.25rem, 4.2cqi, 1.8rem));
	font-weight: 700;
	line-height: 1.15;
	white-space: nowrap;
}

.hjt-schedule__nav {
	display: flex;
	flex: 0 0 auto;
	align-self: center;
	gap: .4rem;
}

.hjt-schedule__header .hjt-schedule__period {
	margin: 0;
}

.hjt-schedule__period:focus {
	outline: none;
}

.hjt-schedule__nav-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 1px solid var(--hjt-border);
	border-radius: 50%;
	background: var(--hjt-white);
	color: var(--hjt-green-dark);
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	box-shadow: 0 3px 10px rgba(36, 77, 25, .08);
	transition: background-color .18s ease, color .18s ease, transform .18s ease;
}

.hjt-schedule__nav-link:hover,
.hjt-schedule__nav-link:focus-visible {
	background: var(--hjt-green);
	color: var(--hjt-white);
	transform: translateY(-1px);
}

.hjt-schedule__nav-link:focus-visible,
.hjt-schedule__day:focus-visible,
.hjt-schedule__button:focus-visible {
	outline: 3px solid var(--hjt-green-mid);
	outline-offset: 2px;
}

.hjt-schedule__calendar-frame {
	padding: .5rem;
	border: 1px solid var(--hjt-border);
	border-radius: 14px;
	background: var(--hjt-white);
}

.hjt-schedule__weekdays,
.hjt-schedule__calendar {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 3px;
}

.hjt-schedule__weekdays {
	margin-bottom: .2rem;
	color: var(--hjt-muted);
	font-size: var(--hjt-fs-weekday, .72rem);
	font-weight: 700;
	text-align: center;
	text-transform: uppercase;
	letter-spacing: .04em;
}

.hjt-schedule__day {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	min-height: 42px;
	padding: 4px;
	border: 1px solid transparent;
	border-radius: 11px;
	background: var(--hjt-white);
	color: var(--hjt-ink);
	font-size: var(--hjt-fs-day-number, clamp(.82rem, 2cqi, 1rem));
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

.hjt-schedule__day:hover {
	border-color: var(--hjt-green-mid);
	background: var(--hjt-green-light);
}

.hjt-schedule__day--empty {
	background: transparent;
}

.hjt-schedule__day--today {
	border-color: var(--hjt-green-mid);
}

.hjt-schedule__day--service {
	color: var(--hjt-green-dark);
	font-weight: 800;
}

.hjt-schedule__day--selected,
.hjt-schedule__day--selected:hover {
	border-color: var(--hjt-green-dark);
	background: var(--hjt-green-dark);
	color: var(--hjt-white);
}

.hjt-schedule__dot {
	position: absolute;
	bottom: 4px;
	left: 50%;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--hjt-green-mid);
	transform: translateX(-50%);
}

.hjt-schedule__dot--event {
	background: #b58a2c;
}

.hjt-schedule__day--selected .hjt-schedule__dot {
	background: #d8ecc4;
}

/* Compact month calendar and stacked service time. */
.hjt-schedule--month .hjt-schedule__day {
	min-height: 34px;
	padding: 2px 2px 7px;
}

.hjt-schedule--month .hjt-schedule__day--selected,
.hjt-schedule--month .hjt-schedule__day--selected:hover,
.hjt-schedule--month .hjt-schedule__day--selected:focus,
.hjt-schedule--month .hjt-schedule__day--selected:focus-visible {
	border-color: transparent !important;
	outline: 0 !important;
	outline-offset: 0 !important;
	box-shadow: none !important;
}

.hjt-schedule--month .hjt-schedule__dot {
	bottom: 3px;
}

.hjt-schedule--month .hjt-schedule__day-panel {
	margin-top: .5rem;
}

.hjt-schedule--month .hjt-schedule__service {
	grid-template-columns: 1fr;
	gap: .25rem;
}

.hjt-schedule--month .hjt-schedule__time {
	min-width: 0;
	justify-self: start;
}

.hjt-schedule__day-panel {
	position: relative;
	margin-top: 1rem;
	padding: 1rem;
	border: 1px solid var(--hjt-border);
	border-radius: var(--hjt-radius);
	background: var(--hjt-green-light);
}

.hjt-schedule__day-panel[hidden] {
	display: none;
}
.hjt-schedule__day-panel-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .5rem;
	margin-bottom: .35rem;
}

.hjt-schedule__day-panel-head .hjt-schedule__day-heading {
	flex: 1 1 auto;
	margin-bottom: 0;
	padding-right: 0;
}

.hjt-schedule__panel-close {
	position: relative;
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 1px solid var(--hjt-border);
	border-radius: 50%;
	background: var(--hjt-white);
	color: var(--hjt-green-dark);
	font-size: 0;
	font-weight: 700;
	line-height: 0;
	cursor: pointer;
}

.hjt-schedule__panel-close::before,
.hjt-schedule__panel-close::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 12px;
	height: 1.5px;
	border-radius: 2px;
	background: currentColor;
}

.hjt-schedule__panel-close::before {
	transform: translate(-50%, -50%) rotate(45deg);
}

.hjt-schedule__panel-close::after {
	transform: translate(-50%, -50%) rotate(-45deg);
}

.hjt-schedule__panel-close:hover,
.hjt-schedule__panel-close:focus-visible {
	background: var(--hjt-green);
	color: var(--hjt-white);
	outline: 2px solid var(--hjt-green-mid);
	outline-offset: 2px;
}

.hjt-schedule__day-heading {
	margin-bottom: .35rem;
	color: var(--hjt-green-dark);
	font-family: Georgia, "Times New Roman", serif;
	font-size: var(--hjt-fs-day-heading, 1.2rem);
	line-height: 1.25;
}

.hjt-schedule__day-title {
	margin-bottom: .75rem;
	color: var(--hjt-green);
}

/* Dates in day blocks use the same prominent type as the day title. */
.hjt-schedule .hjt-schedule__week-date,
.hjt-schedule .hjt-schedule__day-heading,
.hjt-schedule .hjt-schedule__day-title {
	font-family: Georgia, "Times New Roman", serif;
	font-weight: 700;
	line-height: 1.3;
}

.hjt-schedule .hjt-schedule__week-date {
	font-size: var(--hjt-fs-week-date, 1.2rem);
}

.hjt-schedule .hjt-schedule__day-heading {
	font-size: var(--hjt-fs-day-heading, 1.2rem);
}

.hjt-schedule .hjt-schedule__day-title {
	font-size: var(--hjt-fs-day-title, 1.2rem);
}

.hjt-schedule__services {
	display: grid;
	gap: .55rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hjt-schedule__service {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: start;
	gap: .7rem;
	padding: .65rem .75rem;
	border-radius: 14px;
	background: var(--hjt-white);
}

.hjt-schedule__time {
	display: inline-block;
	min-width: 4.15rem;
	padding: .22rem .5rem;
	border-radius: 9px;
	background: var(--hjt-green);
	color: var(--hjt-white);
	font-size: var(--hjt-fs-time, 1rem);
	font-weight: 800;
	line-height: 1.25;
	text-align: center;
	font-variant-numeric: tabular-nums;
}

.hjt-schedule__service-body {
	display: block;
	min-width: 0;
}

.hjt-schedule__service-title {
	display: block;
	font-size: var(--hjt-fs-service-title, 1.04rem);
	font-weight: 650;
	line-height: 1.4;
}

.hjt-schedule__place,
.hjt-schedule__note {
	display: block;
	margin-top: .2rem;
	color: var(--hjt-muted);
	font-size: var(--hjt-fs-place, .86rem);
	line-height: 1.35;
}

.hjt-schedule__note {
	font-size: var(--hjt-fs-note, .86rem);
}

.hjt-schedule__empty {
	margin: .5rem 0;
	color: var(--hjt-muted);
	font-size: var(--hjt-fs-empty, .9rem);
}

.hjt-schedule__empty--small {
	margin: .3rem 0 0;
	font-size: var(--hjt-fs-empty, .8rem);
}

/* Week */
.hjt-schedule__week {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: .55rem;
}

.hjt-schedule__week-day {
	min-width: 0;
	padding: .7rem .65rem;
	border: 2px solid var(--hjt-week-border);
	border-radius: 14px;
	background: var(--hjt-white);
}

.hjt-schedule__week-day--service {
	border-color: var(--hjt-week-border-service);
}

.hjt-schedule__week-date {
	margin-bottom: .4rem;
	color: var(--hjt-green-dark);
}

.hjt-schedule__week-day .hjt-schedule__service {
	grid-template-columns: 1fr;
	gap: .25rem;
	padding: .35rem 0;
	border-radius: 0;
	border-top: 1px solid var(--hjt-border);
	background: transparent;
}

.hjt-schedule__week-day .hjt-schedule__time {
	min-width: 0;
	justify-self: start;
	font-size: var(--hjt-fs-time, .87rem);
}

.hjt-schedule__week-day .hjt-schedule__service-title {
	font-size: var(--hjt-fs-service-title, .91rem);
}

/* Next service */

@container (min-width: 1050px) {
	.hjt-schedule__week {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.hjt-schedule .hjt-schedule__next-heading {
	margin: 0 0 .8rem;
	color: #fff;
	font-family: Georgia, "Times New Roman", serif;
	font-size: var(--hjt-fs-next-heading, clamp(1.2rem, 3.4cqi, 1.5rem));
	font-weight: 700;
	line-height: 1.2;
}

.hjt-schedule__next-card {
	padding: clamp(1.1rem, 4cqi, 1.7rem);
	border: 1px solid rgba(255, 255, 255, .5);
	border-radius: 26px;
	background: linear-gradient(145deg, #315c20 0%, #244d19 100%);
	color: var(--hjt-white);
	box-shadow: 0 14px 32px rgba(36, 77, 25, .2);
}

.hjt-schedule__next-date {
	margin-bottom: .15rem;
	color: #e2f0d2;
	font-size: var(--hjt-fs-next-date, 1.05rem);
	font-weight: 600;
}

.hjt-schedule__next-time {
	margin: 0 0 .3rem;
	color: #fff;
	font-family: Georgia, "Times New Roman", serif;
	font-size: var(--hjt-fs-next-time, clamp(2rem, 7cqi, 3.1rem));
	font-weight: 700;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.hjt-schedule .hjt-schedule__next-title {
	margin: 0 0 .4rem;
	color: #fff;
	font-family: Georgia, "Times New Roman", serif;
	font-size: var(--hjt-fs-next-title, clamp(1.1rem, 3.5cqi, 1.45rem));
	line-height: 1.25;
}

.hjt-schedule__next-card .hjt-schedule__place,
.hjt-schedule__next-card .hjt-schedule__note {
	color: #dcebcf;
}

.hjt-schedule__next-card .hjt-schedule__empty {
	color: #e2f0d2;
}

.hjt-schedule__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	margin-top: .8rem;
	padding: .55rem 1rem;
	border-radius: 999px;
	background: var(--hjt-white);
	color: var(--hjt-green-dark);
	font-size: var(--hjt-fs-button, .9rem);
	font-weight: 800;
	text-decoration: none;
	transition: background-color .18s ease, transform .18s ease;
}

.hjt-schedule__button:hover {
	background: var(--hjt-green-light);
	transform: translateY(-1px);
}

.hjt-schedule--next > .hjt-schedule__title {
	margin-bottom: .6rem;
}

@container (max-width: 430px) {
	.hjt-schedule__day {
		min-height: 40px;
		border-radius: 9px;
	}

	.hjt-schedule__day-panel {
		padding: .8rem;
		border-radius: 16px;
	}

	.hjt-schedule__service {
		padding: .55rem .6rem;
	}

	.hjt-schedule__time {
		min-width: 3.7rem;
		font-size: var(--hjt-fs-time, .92rem);
	}
}

@media (max-width: 760px) {
	.hjt-schedule__week {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 430px) {
	.hjt-schedule__title {
		font-size: 1.35rem;
	}

	.hjt-schedule--month .hjt-schedule__day {
		min-height: 32px;
	}
}

.hjt-schedule--loading {
	opacity: .55;
	pointer-events: none;
}

/* Selected, today and Sunday states. */
.hjt-schedule__day--sunday:not(.hjt-schedule__day--selected) .hjt-schedule__day-number {
	color: #a62b22;
}

.hjt-schedule__day--selected .hjt-schedule__day-number {
	color: var(--hjt-white);
}

.hjt-schedule__week-day--today {
	border-width: 3px;
	border-color: var(--hjt-green-mid);
	background: var(--hjt-today-bg);
}

.hjt-schedule .hjt-schedule__week-date--sunday,
.hjt-schedule .hjt-schedule__day-heading--sunday,
.hjt-schedule .hjt-schedule__period--sunday {
	color: #a62b22;
}

.hjt-schedule .hjt-schedule__next-date--sunday {
	color: #ffd0cc;
}

/* No-JS fallback: keep the period on the same line as the arrows. */
@media (max-width: 600px) {
	.hjt-schedule__header .hjt-schedule__period {
		font-size: .8rem;
	}
}


/* Month selected-day panel: compact heading and close control. */
.hjt-schedule--month .hjt-schedule__day-heading {
	font-size: var(--hjt-fs-day-heading, 1.05rem);
}

.hjt-schedule--month .hjt-schedule__day-title {
	font-size: var(--hjt-fs-day-title, .95rem);
}

@container (max-width: 430px) {
	.hjt-schedule__panel-close {
		width: 26px;
		height: 26px;
	}

	.hjt-schedule__panel-close::before,
	.hjt-schedule__panel-close::after {
		width: 11px;
	}

	.hjt-schedule--month .hjt-schedule__day-heading {
		font-size: var(--hjt-fs-day-heading, 1rem);
	}

	.hjt-schedule--month .hjt-schedule__day-title {
		font-size: var(--hjt-fs-day-title, .9rem);
	}
}

/* Keep per-widget font settings above theme heading/link defaults. */
.hjt-schedule .hjt-schedule__period {
	font-size: var(--hjt-fs-period, clamp(1.25rem, 4.2cqi, 1.8rem));
}

.hjt-schedule .hjt-schedule__next-heading {
	font-size: var(--hjt-fs-next-heading, clamp(1.2rem, 3.4cqi, 1.5rem));
}

.hjt-schedule .hjt-schedule__next-date {
	font-size: var(--hjt-fs-next-date, 1.05rem);
}

.hjt-schedule .hjt-schedule__next-time {
	font-size: var(--hjt-fs-next-time, clamp(2rem, 7cqi, 3.1rem));
}

.hjt-schedule .hjt-schedule__next-title {
	font-size: var(--hjt-fs-next-title, clamp(1.1rem, 3.5cqi, 1.45rem));
}

.hjt-schedule .hjt-schedule__button {
	font-size: var(--hjt-fs-button, .9rem);
}

.hjt-schedule .hjt-schedule__empty {
	font-size: var(--hjt-fs-empty, .9rem);
}

.hjt-schedule .hjt-schedule__empty--small {
	font-size: var(--hjt-fs-empty, .8rem);
}
