.samaya-planning .samaya-planning__course-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0 .75rem;
	align-items: baseline;
}
.samaya-planning .samaya-planning__details-link {
	display: inline-flex;
	align-items: center;
	gap: .42em;
	min-height: 2.75rem;
	padding: .4rem .65rem;
	border: 1px solid var(--samaya-line);
	border-radius: .5rem;
	background: var(--samaya-paper);
	color: var(--samaya-green);
	font: 650 .83rem/1.3 system-ui, sans-serif;
	text-align: start;
	text-decoration: none;
}
.samaya-planning .samaya-planning__details-link:hover { background: var(--samaya-soft); color: var(--samaya-ink); }
.samaya-planning .samaya-planning__details-link::after {
	content: "";
	box-sizing: border-box;
	flex: none;
}
.samaya-planning .samaya-planning__details-link[aria-haspopup="dialog"]::after {
	width: .9em;
	height: .7em;
	border: 1px solid currentColor;
	border-radius: .12em;
}
.samaya-planning[data-details="drawer"] .samaya-planning__details-link[aria-haspopup="dialog"]::after {
	background: linear-gradient(to left, currentColor .23em, transparent .23em);
}
.samaya-planning .samaya-planning__details-link:is(a, [aria-expanded])::after {
	width: .42em;
	height: .42em;
	border: solid currentColor;
	border-width: 1px 1px 0 0;
	transform: rotate(45deg);
}
.samaya-planning .samaya-planning__details-link[aria-expanded="false"]::after { transform: rotate(135deg); }
.samaya-planning .samaya-planning__details-link[aria-expanded="true"]::after { transform: rotate(-45deg); }
.samaya-planning button.samaya-planning__week-heading {
	padding: .2rem;
	border: 1px solid var(--samaya-line);
	background: var(--samaya-paper);
	font-size: .85rem;
	font-weight: 650;
}
.samaya-planning button.samaya-planning__week-heading.is-today { border-color: var(--samaya-green); background: var(--samaya-soft); }
.samaya-planning__inline-detail { margin-top: .85rem; }
.samaya-planning[data-details="inline"] :is(.samaya-planning__day-details, .samaya-planning__list) .samaya-planning__courses {
	grid-template-columns: repeat(auto-fit, minmax(min(26rem, 100%), 1fr));
}
.samaya-planning .samaya-planning__course-detail-item { min-width: 0; margin: 0; padding: 0; }

.samaya-course-detail {
	--samaya-course-accent: var(--samaya-green);
	container: samaya-course-detail / inline-size;
	min-width: 0;
	border: 1px solid var(--samaya-line);
	border-top: 3px solid var(--samaya-course-accent);
	border-radius: 1rem;
	background: var(--samaya-paper);
	overflow-wrap: anywhere;
}
.samaya-course-detail__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: .85rem;
	padding: clamp(1rem, 4.75cqi, 2rem);
	border-bottom: 1px solid var(--samaya-line);
	border-radius: .8rem .8rem 0 0;
	background: var(--samaya-soft);
	background: color-mix(in srgb, var(--samaya-course-accent) 9%, var(--samaya-paper));
}
.samaya-course-detail__title { min-width: 0; }
.samaya-course-detail__title time {
	display: block;
	color: var(--samaya-muted);
	font-size: .86rem;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}
.samaya-course-detail__title time::first-letter { text-transform: uppercase; }
.samaya-course-detail .samaya-course-detail__name {
	margin: .35rem 0 0;
	color: var(--samaya-ink);
	font: 640 clamp(1.35rem, 5cqi, 2.4rem)/1.13 system-ui, sans-serif;
	letter-spacing: -.035em;
}
.samaya-planning .samaya-course-detail__close {
	display: grid;
	flex: none;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 1px solid var(--samaya-line);
	border-radius: 50%;
	background: var(--samaya-paper);
	font-size: 1.45rem;
	line-height: 1;
}
.samaya-planning .samaya-course-detail__back {
	display: block;
	padding: .35rem 0;
	margin-top: .3rem;
	border: 0;
	border-radius: .2rem;
	background: transparent;
	color: var(--samaya-green);
	font-size: .85rem;
	font-weight: 650;
	text-decoration: underline;
	text-underline-offset: .18em;
}
.samaya-planning .samaya-course-detail__back::before { content: "←" / ""; margin-inline-end: .35rem; }
.samaya-course-day .samaya-course-detail__name::first-letter { text-transform: uppercase; }
.samaya-planning .samaya-course-day__count { color: var(--samaya-muted); font-size: .86rem; font-weight: 600; }
.samaya-planning .samaya-course-day__choices {
	display: grid;
	gap: .55rem;
	margin: 0;
	padding: clamp(1rem, 4.75cqi, 2rem);
	list-style: none;
}
.samaya-planning .samaya-course-day__choice {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .85rem;
	width: 100%;
	padding: .75rem .95rem;
	border: 1px solid var(--samaya-line);
	border-inline-start: 3px solid var(--samaya-course-accent, var(--samaya-green));
	border-radius: .6rem;
	background: var(--samaya-paper);
	text-align: start;
}
.samaya-course-day__choice::after {
	content: "";
	flex: none;
	width: .45rem;
	height: .45rem;
	margin-inline-end: .15rem;
	border: solid var(--samaya-green);
	border-width: 1px 1px 0 0;
	transform: rotate(45deg);
}
.samaya-course-day__summary { display: grid; gap: .15rem; }
.samaya-course-day__summary time { color: var(--samaya-muted); font-size: .82rem; }
.samaya-course-detail__body {
	display: grid;
	gap: 1.25rem;
	padding: clamp(1rem, 4.75cqi, 2rem);
}
.samaya-course-detail__description { min-width: 0; }
.samaya-course-detail__description :is(h2, h3, h5) {
	margin: 0 0 .45rem;
	color: var(--samaya-ink);
	font: 650 .94rem/1.35 system-ui, sans-serif;
}
.samaya-course-detail__description p {
	max-width: 62ch;
	margin: 0;
	color: var(--samaya-muted);
	font-size: .94rem;
	line-height: 1.65;
	white-space: pre-line;
}
.samaya-course-detail__facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(9rem, 100%), 1fr));
	align-content: start;
	gap: .75rem 1rem;
	margin: 0;
}
.samaya-course-detail__facts > div { padding-top: .6rem; border-top: 1px solid var(--samaya-line); }
.samaya-course-detail__facts dt { color: var(--samaya-muted); font-size: .78rem; font-weight: 550; }
.samaya-course-detail__facts dd { margin: .18rem 0 0; font-size: .9rem; font-weight: 600; line-height: 1.4; }
.samaya-course-detail__secondary { display: block; margin-top: .15rem; color: var(--samaya-muted); font-size: .8rem; font-weight: 450; }
.samaya-course-detail__facts .samaya-planning__availability { font-size: inherit; }
.samaya-course-detail__footer { padding: 0 clamp(1rem, 4.75cqi, 2rem) clamp(1rem, 4.75cqi, 2rem); }
.samaya-course-detail__header + .samaya-course-detail__footer { padding-top: 1rem; }
.samaya-planning .samaya-course-detail__book {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
	box-sizing: border-box;
	padding: .5rem 1.1rem;
	border-radius: .55rem;
	background: var(--samaya-green);
	color: #fff;
	font-size: .88rem;
	font-weight: 650;
	text-decoration: none;
}
.samaya-planning .samaya-course-detail__book:hover { background: var(--samaya-ink); color: #fff; }
@container samaya-course-detail (min-width: 35rem) {
	.samaya-course-detail__body.has-description { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 2rem; }
	.has-description .samaya-course-detail__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.samaya-course-dialog {
	box-sizing: border-box;
	position: fixed;
	inset: 0;
	width: min(44rem, calc(100% - 2rem));
	max-width: none;
	max-height: calc(100dvh - 2rem);
	margin: auto;
	padding: 0;
	overflow: auto;
	overscroll-behavior: contain;
	border: 0;
	border-radius: 1rem;
	background: var(--samaya-paper);
	color: var(--samaya-ink);
	box-shadow: 0 1.5rem 4rem #17292140;
}
.samaya-course-dialog::backdrop { background: #182c2466; }
html:has(.samaya-course-dialog[open]) { overflow: hidden; }
.samaya-course-dialog.is-drawer {
	inset: 0 0 0 auto;
	width: min(100%, 35rem);
	height: 100dvh;
	max-height: none;
	margin: 0;
	border-radius: 1rem 0 0 1rem;
}
.samaya-course-dialog.is-drawer .samaya-course-detail { min-height: 100%; box-sizing: border-box; border-radius: inherit; }
.samaya-course-dialog .samaya-course-detail__name:focus,
.samaya-planning__inline-detail .samaya-course-detail__name:focus { outline: none; }
@media (max-width: 35rem) {
	.samaya-course-dialog.is-drawer { border-radius: 0; }
}

body.samaya-course-page {
	margin: 0;
	min-height: 100vh;
	background: #f5f6ef;
}
.samaya-course-page__main {
	box-sizing: border-box;
	width: min(100%, 58rem);
	margin-inline: auto;
	padding: clamp(1.2rem, 5vw, 3.5rem) clamp(1rem, 5vw, 3rem);
}
.samaya-planning .samaya-course-page__back {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	min-height: 2.75rem;
	margin-bottom: 1rem;
	color: var(--samaya-green);
	font-size: .88rem;
	font-weight: 650;
	text-decoration: underline;
	text-underline-offset: .2em;
}
@media (prefers-reduced-motion: no-preference) {
	.samaya-course-dialog[open],
	.samaya-planning__inline-detail:not([hidden]),
	.samaya-course-page__main .samaya-course-detail { animation: samaya-course-rise .22s ease-out both; }
	.samaya-course-dialog.is-drawer[open] { animation-name: samaya-course-slide; }
	.samaya-course-dialog::backdrop { animation: samaya-course-fade .2s ease-out both; }
	.samaya-planning .samaya-course-detail__book { transition: background-color .18s ease; }
}
@keyframes samaya-course-rise { from { opacity: .85; transform: translateY(.4rem); } }
@keyframes samaya-course-slide { from { opacity: .85; transform: translateX(1rem); } }
@keyframes samaya-course-fade { from { opacity: 0; } }
