/* --- Dance card shell */
.dance-card {
	max-width: var(--max-content);
	margin: 0 auto;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	padding: var(--space-xl);
	box-shadow: var(--shadow-subtle);
}

/* --- Section headings */
.dance-card section {
	margin-bottom: var(--space-lg);
}

.dance-card h2 {
	font-size: var(--text-sm);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: var(--color-text-muted);
	margin-bottom: var(--space-sm);
	border-bottom: 1px solid var(--color-border);
	padding-bottom: var(--space-xs);
}
.dance-header {
	margin-bottom: var(--space-lg);
	padding-bottom: var(--space-md);
	border-bottom: 2px solid var(--color-border);
}

.dance-header-top {
	display: flex;
	align-items: center;
	gap: var(--space-md);
	flex-wrap: wrap;
	margin-bottom: var(--space-xs);
}

.dance-title {
	font-size: var(--text-xl);
	font-weight: 700;
	margin: 0;
}

.dance-alternate-title {
	font-size: var(--text-md);
	font-weight: 400;
	font-style: italic;
	color: var(--color-text-muted);
	margin: var(--space-xs) 0 0;
}

.dance-alternate-title-title {
	font-style: normal;
	font-weight: 700;
	color: var(--color-text);
}

.dance-meta {
	font-size: var(--text-sm);
	color: var(--color-text-muted);
	margin: 0;
}

.dance-meta .author {
	margin-right: var(--space-xs);
}

.dance-formation {
	font-size: var(--text-sm);
	color: var(--color-text-muted);
	margin: var(--space-xs) 0 0;
}

.formation-note {
	font-style: italic;
}
.tune-inline {
	font-size: var(--text-sm);
	color: var(--color-text-muted);
	margin: calc(-1 * var(--space-sm)) 0 var(--space-lg);
}

.tune-title {
	font-style: italic;
	color: var(--color-text);
}

.tune-detail::before {
	content: " · ";
	color: var(--color-text-muted);
}

.tune-detail:first-child::before {
	content: none;
}

.tune-sep {
	color: var(--color-text-muted);
}

.tunes-table {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--text-sm);
}

.tunes-table th {
	text-align: left;
	font-weight: 600;
	padding: var(--space-xs) var(--space-sm);
	border-bottom: 1px solid var(--color-border);
	color: var(--color-text-muted);
}

.tunes-table td {
	padding: var(--space-xs) var(--space-sm);
	vertical-align: top;
}

.tunes-table tbody tr:nth-child(even) {
	background: #f5f5f3;
}
.choreo-sections {
	display: flex;
	flex-direction: column;
	gap: var(--space-md);
}

.choreo-section {
	display: grid;
	grid-template-columns: 3rem 1fr;
	gap: var(--space-sm);
	align-items: baseline;
}

.section-label {
	font-size: var(--text-sm);
	font-variant: small-caps;
	font-weight: 700;
	letter-spacing: 0.06em;
	color: var(--color-text-muted);
	margin: 0;
	white-space: nowrap;
}

.section-description {
	margin: 0;
	line-height: 1.5;
}

.figure-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.figure {
	display: grid;
	grid-template-columns: 3rem 1fr 2.5rem;
	align-items: baseline;
	gap: var(--space-sm);
}

.figure-description {
	line-height: 1.45;
}

.figure-bars {
	font-size: var(--text-sm);
	color: var(--color-text-muted);
	font-variant-numeric: tabular-nums;
	text-align: right;
	white-space: nowrap;
}

.figure-beats {
	font-size: var(--text-sm);
	color: var(--color-text-muted);
	font-variant-numeric: tabular-nums;
	text-align: right;
	white-space: nowrap;
}
.background-section p,
.background-section li {
	color: var(--color-text-muted);
	margin-bottom: 0.5em;
}

.background-section p:last-child,
.background-section li:last-child {
	margin-bottom: 0;
}

.background-section ul,
.background-section ol {
	padding-left: var(--space-lg);
	margin-bottom: var(--space-sm);
}

.teaching-notes-section blockquote,
.background-section blockquote {
	font-style: italic;
	border-left: 2px solid var(--color-border);
	margin: 0.25em 0 0.5em var(--space-md);
	padding-left: var(--space-md);
	color: var(--color-text-muted);
}

.teaching-notes-section blockquote p,
.background-section blockquote p {
	margin-bottom: 0.25em;
}

.teaching-notes-section blockquote p:last-child,
.background-section blockquote p:last-child {
	margin-bottom: 0;
}

.teaching-notes-section p,
.teaching-notes-section li {
	color: var(--color-text-muted);
	margin-bottom: 0.5em;
}

.teaching-notes-section p:last-child,
.teaching-notes-section li:last-child {
	margin-bottom: 0;
}

.teaching-notes-section ul,
.teaching-notes-section ol {
	padding-left: var(--space-lg);
	margin-bottom: var(--space-sm);
}