/* Music technology tool hubs (Scrolling MusicXML / MIDI playback). */

.xms-tech-tool__prose {
	max-width: 44rem;
}

.xms-tech-tool__prose code {
	font-size: 0.86em;
	color: #c4a35a;
}

.xms-tech-tool__nav-hint {
	margin-top: 1.5rem;
}

.xms-tech-tool__nav-hint a {
	color: #c4a35a;
	border-bottom: 1px solid transparent;
}

.xms-tech-tool__nav-hint a:hover {
	border-bottom-color: #c4a35a;
}

.xms-tech-shelf {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(16.5rem, 1fr));
	gap: 1.35rem;
	margin-top: 1.5rem;
}

.xms-tech-shelf__card {
	display: flex;
	flex-direction: column;
	background: #14110e;
	border: 1px solid #3a342c;
	border-radius: 0.35rem;
	overflow: hidden;
}

.xms-tech-shelf__card.is-clickable {
	cursor: pointer;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.xms-tech-shelf__card.is-clickable:hover {
	border-color: #c4a35a;
	box-shadow: 0 0 0 1px rgba(196, 163, 90, 0.25);
}

.xms-tech-shelf__card.is-clickable .xms-tech-shelf__cover,
.xms-tech-shelf__card.is-clickable h3[data-xms-tech-open] {
	cursor: pointer;
}

.xms-tech-shelf__card.is-clickable h3[data-xms-tech-open]:hover {
	color: #e6c87a !important;
}

.xms-tech-shelf__cover {
	aspect-ratio: 3 / 4;
	background: #0a0908;
	overflow: hidden;
}

.xms-tech-shelf__cover img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.xms-tech-shelf__body {
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
	padding: 1rem 1.05rem 1.15rem;
	flex: 1;
}

.xms-tech-shelf__body h3 {
	margin: 0;
	font-size: 1rem;
	font-weight: 600;
	color: #f4f1ea !important;
	line-height: 1.35;
}

.xms-tech-shelf__meta {
	margin: 0;
	color: #8a857c;
	font-size: 0.82rem;
}

.xms-tech-shelf__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
	margin-top: auto;
	padding-top: 0.35rem;
}

.xms-tech-shelf__actions .xms-btn {
	font-size: 0.8rem;
	padding: 0.45rem 0.85rem;
}

.xms-btn--ghost {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #3a342c;
	border-radius: 0.45rem;
	background: transparent;
	color: #d8d2c6;
}

.xms-btn--ghost:hover {
	border-color: #c4a35a;
	color: #c4a35a;
}

.xms-tech-upload-block {
	padding-bottom: 4rem;
}

.xms-tech-drop {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	min-height: 9.5rem;
	margin-top: 1.1rem;
	padding: 1.75rem 1.25rem;
	border: 1px dashed #5a5248;
	border-radius: 0.5rem;
	background: linear-gradient(180deg, #16130f 0%, #0f0d0b 100%);
	cursor: pointer;
	text-align: center;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.xms-tech-drop:hover,
.xms-tech-drop.is-drag {
	border-color: #c4a35a;
	background: #1a1712;
}

.xms-tech-drop__title {
	color: #f4f1ea;
	font-size: 1.02rem;
	font-weight: 600;
}

.xms-tech-drop__sub {
	color: #8a857c;
	font-size: 0.84rem;
	max-width: 28rem;
	line-height: 1.45;
}

.xms-tech-upload-status {
	margin: 0.85rem 0 0;
	color: #c4a35a;
	font-size: 0.88rem;
}

.xms-tech-modal__dialog {
	width: min(96vw, 80rem);
	height: min(90vh, 56rem);
}

.xms-tech-modal__body {
	padding: 0 !important;
	align-items: stretch !important;
	justify-content: stretch !important;
}

.xms-tech-modal__body .xms-modal__frame {
	width: 100%;
	height: 100%;
	border: 0;
	background: #0a0908;
}

@media (max-width: 640px) {
	.xms-tech-shelf {
		grid-template-columns: 1fr;
	}
}
