.pitch-panel {
	padding: clamp(12px, 3vw, 28px);
	background: #f5f8f7;
	border: 1px solid #cddcdb;
	border-radius: 16px;
}
.pitch-controls, .position-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 18px;
	align-items: center;
}
.pitch-controls select, .pitch-controls button, .position-buttons button {
	font: inherit;
	padding: .45em .65em;
	color: inherit;
}
.pitch-layout { display: grid; gap: 24px; }
#diamond { width: 100%; display: block; }
#diamond text, #neck text { font: 13px system-ui, sans-serif; fill: #354f54; }
.pitch-detail { align-self: start; }
#notation { width: 200px; height: 210px; display: block; }
.position-buttons button[aria-pressed="true"] { background: #216476; color: white; }
.neck-scroll { overflow-x: auto; }
#neck { width: 100%; min-width: 720px; display: block; }
svg [role="button"] { cursor: pointer; }
svg [role="button"]:focus-visible { outline: 2px solid #be5847; }
#audio-status:empty { display: none; }
@media (min-width: 800px) {
	.pitch-layout { grid-template-columns: minmax(0, 1fr) 210px; }
}

/* Override the diagram's smaller text style for musical accidentals. */
#diamond .diamond-accidental {
	font-family: "Times New Roman", serif;
	font-size: 30px;
	fill: #253c40;
}

#notation .notation-accidental {
	font-family: "Times New Roman", serif;
	font-size: 30px;
}

/* One vertical list beside the larger diamond. */
#positions {
 display: grid;
 grid-template-columns: minmax(0, 1fr);
 gap: 10px;
}
#positions button {
 font-size: .82rem;
 padding: .45em .6em;
 white-space: nowrap;
}
.pitch-detail { min-width: 0; }
@media (min-width: 800px) {
 .pitch-detail { justify-self: end; width: 210px; }
}

.pitch-detail #notation { margin-left: auto; }
.pitch-detail #readout { font-size: 1.25rem; text-align: right; }
#positions { justify-items: end; }
#positions button { min-width: 150px; font-size: .85rem; }
@media (min-width: 800px) {
 .pitch-layout { column-gap: 18px; }
}

/* Align both headings independently of their font sizes. */
.pitch-layout > div > h2 {
 margin-top: 20px;
 line-height: 1.3;
}
.pitch-detail #readout { line-height: 1.56; }
#positions {
 width: 200px;
 margin-left: auto;
 justify-items: center;
}
#positions button { width: 150px; }
.pitch-layout + h2 { margin-top: 10px; margin-bottom: 8px; }

.pitch-detail #readout { position: relative; top: 5px; }
