/*
 * Eurorack Core — component styles.
 *
 * Colour, type and spacing tokens are defined by the eurorack-editorial theme in
 * assets/css/editorial.css. This file only styles the components the plugin
 * renders, and always through those tokens so the pieces stay consistent if the
 * palette is ever revised.
 */

/* ------------------------------------------------------------------ buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5ch;
	padding: 0.7rem 1.1rem;
	border: 1px solid var(--ms-line, #e4e4e7);
	border-radius: 6px;
	background: var(--ms-card, #fff);
	color: var(--ms-ink, #18181b);
	font-family: var(--ms-font-body, sans-serif);
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn:hover,
.btn:focus-visible {
	background: var(--ms-canvas, #fafafa);
}

.btn-primary,
.btn-accept,
.btn-buy {
	background: var(--ms-ink, #18181b);
	border-color: var(--ms-ink, #18181b);
	color: #fff;
}

.btn-primary:hover,
.btn-accept:hover,
.btn-buy:hover,
.btn-primary:focus-visible,
.btn-accept:focus-visible,
.btn-buy:focus-visible {
	background: var(--ms-cyan, #06b6d4);
	border-color: var(--ms-cyan, #06b6d4);
	color: #fff;
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
	border-color: var(--ms-ink, #18181b);
}

.btn-link {
	background: none;
	border-color: transparent;
	padding-inline: 0.4rem;
	text-decoration: underline;
	text-underline-offset: 3px;
	color: var(--ms-muted, #71717a);
}

.btn-link:hover,
.btn-link:focus-visible {
	background: none;
	color: var(--ms-ink, #18181b);
}

/* ------------------------------------------------------------- spec card */
.spec-card {
	background: var(--ms-card, #fff);
	border: 1px solid var(--ms-line, #e4e4e7);
	border-radius: 10px;
	padding: 1.25rem;
	box-shadow: 0 1px 2px rgb(24 24 27 / 0.04);
}

.spec-card__title {
	margin: 0 0 0.9rem;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ms-muted, #71717a);
}

.spec-card__badge {
	display: inline-block;
	margin: 0 0.35rem 0.6rem 0;
	padding: 0.3rem 0.6rem;
	border: 1px solid var(--ms-line, #e4e4e7);
	border-radius: 999px;
	background: var(--ms-canvas, #fafafa);
	font-size: 0.78rem;
	font-weight: 600;
}

.spec-card__badge--type {
	border-color: var(--ms-cyan, #06b6d4);
	color: var(--ms-cyan, #06b6d4);
}

.spec-list {
	margin: 0.4rem 0 0;
	display: grid;
	gap: 0.15rem;
}

.spec-list__row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.5rem 0;
	border-top: 1px solid var(--ms-line, #e4e4e7);
}

.spec-list__row dt {
	margin: 0;
	color: var(--ms-muted, #71717a);
	font-size: 0.85rem;
}

.spec-list__row dd {
	margin: 0;
	font-weight: 600;
	font-size: 0.95rem;
}

.spec-list__unit {
	margin-left: 0.25ch;
	color: var(--ms-muted, #71717a);
	font-size: 0.8em;
	font-weight: 500;
}

.mono,
.spec-list dd.mono {
	font-family: var(--ms-font-mono, ui-monospace, monospace);
	font-variant-numeric: tabular-nums;
}

/* ----------------------------------------------------------- verdict box */
.verdict-box {
	margin: 2.5rem 0;
	padding: 1.5rem;
	border: 1px solid var(--ms-line, #e4e4e7);
	border-left: 4px solid var(--ms-yellow, #facc15);
	border-radius: 10px;
	background: var(--ms-card, #fff);
}

.verdict-box__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 0.75rem;
}

.verdict-box__title {
	margin: 0;
	font-size: 1.1rem;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.verdict-box__score {
	font-size: 1.9rem;
	font-weight: 700;
	line-height: 1;
}

.verdict-box__score-max {
	font-size: 0.5em;
	color: var(--ms-muted, #71717a);
}

.verdict-box__summary > p {
	margin: 0 0 1rem;
	font-size: 1.05rem;
	line-height: 1.65;
}

.verdict-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1.5rem;
	margin-top: 1rem;
}

.verdict-col h3 {
	margin: 0 0 0.5rem;
	font-size: 0.78rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ms-muted, #71717a);
}

.verdict-col ul {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 0.4rem;
}

.verdict-col li {
	display: flex;
	gap: 0.6ch;
	font-size: 0.95rem;
	line-height: 1.5;
}

.marker {
	flex: 0 0 auto;
	font-weight: 700;
}

.verdict-col--pros .marker {
	color: #16a34a;
}

.verdict-col--cons .marker {
	color: var(--ms-coral, #f43f5e);
}

/* -------------------------------------------------------------- buy box */
.buy-box {
	margin: 2rem 0;
	padding: 1.25rem;
	border: 1px solid var(--ms-line, #e4e4e7);
	border-radius: 10px;
	background: var(--ms-card, #fff);
	box-shadow: 0 1px 2px rgb(24 24 27 / 0.04);
}

.buy-box--inline {
	margin-top: 1.25rem;
}

.buy-box__body {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.buy-box__eyebrow {
	flex-basis: 100%;
	margin: 0 0 0.15rem;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ms-muted, #71717a);
}

.buy-box__title {
	margin: 0;
	font-weight: 600;
}

.buy-box__price {
	margin: 0;
	padding: 0.3rem 0.6rem;
	border: 1px solid var(--ms-line, #e4e4e7);
	border-radius: 6px;
	background: var(--ms-canvas, #fafafa);
	font-size: 0.9rem;
}

.affiliate-disclosure {
	flex-basis: 100%;
	margin: 0.5rem 0 0;
	color: var(--ms-muted, #71717a);
	font-size: 0.78rem;
}

/* --------------------------------------------------------- gear details */
.gear-details {
	margin: 2rem 0;
	padding: 1.25rem;
	border: 1px solid var(--ms-line, #e4e4e7);
	border-radius: 10px;
	background: var(--ms-card, #fff);
}

.gear-badge {
	display: inline-block;
	margin: 0 0 1rem;
	padding: 0.35rem 0.7rem;
	border: 1px solid var(--ms-yellow, #facc15);
	border-radius: 999px;
	background: color-mix(in srgb, var(--ms-yellow, #facc15) 14%, #fff);
	font-size: 0.8rem;
	font-weight: 700;
}

/* -------------------------------------------------------- core architecture */
.architecture {
	margin: 2.5rem 0;
	padding: 1.4rem 1.5rem;
	border: 1px solid var(--ms-line, #e4e4e7);
	border-radius: 10px;
	background: var(--ms-card, #fff);
	box-shadow: 0 1px 2px rgb(24 24 27 / 0.04);
}

.architecture__title {
	margin: 0 0 0.75rem;
	font-size: 1.05rem;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.architecture__body > p {
	margin: 0 0 1rem;
	line-height: 1.7;
}

.architecture__body > p:last-child {
	margin-bottom: 0;
}

.architecture__body h3 {
	margin: 1.4rem 0 0.5rem;
	font-size: 1rem;
}

/* ------------------------------------------------------- rack retention box */
.rack-verdict {
	margin: 2rem 0;
	padding: 1.4rem 1.5rem;
	border: 1px solid var(--ms-line, #e4e4e7);
	border-left: 4px solid var(--ms-silver, #e4e4e7);
	border-radius: 10px;
	background: var(--ms-card, #fff);
	box-shadow: 0 1px 2px rgb(24 24 27 / 0.04);
}

.rack-verdict__title {
	margin: 0 0 0.85rem;
	font-size: 1.05rem;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.rack-status {
	display: inline-block;
	margin: 0 0 0.9rem;
	padding: 0.4rem 0.8rem;
	border: 1px solid var(--ms-line, #e4e4e7);
	border-radius: 999px;
	font-family: var(--ms-font-display, sans-serif);
	font-size: 0.85rem;
	font-weight: 700;
}

/* Each verdict gets its own colour so the answer reads before the sentence does. */
.rack-status--stays {
	border-color: #16a34a;
	background: #f0fdf4;
	color: #15803d;
}

.rack-status--rotates {
	border-color: var(--ms-cyan, #06b6d4);
	background: #ecfeff;
	color: #0e7490;
}

.rack-status--provisional {
	border-color: var(--ms-yellow, #facc15);
	background: #fefce8;
	color: #a16207;
}

.rack-status--out {
	border-color: var(--ms-coral, #f43f5e);
	background: #fff1f2;
	color: #be123c;
}

.rack-verdict__body > p {
	margin: 0 0 1rem;
	line-height: 1.7;
}

.rack-verdict__body > p:last-child {
	margin-bottom: 0;
}

/* --------------------------------------------------------- patch recipe */
.patch-recipe {
	margin: 2rem 0;
	padding: 1.25rem 1.4rem;
	border: 1px solid var(--ms-line, #e4e4e7);
	border-left: 4px solid var(--ms-cyan, #06b6d4);
	border-radius: 10px;
	background: var(--ms-canvas, #fafafa);
}

.patch-recipe__title {
	margin: 0 0 0.6rem;
	font-size: 1rem;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

/* -------------------------------------------------------- contact form */
.contact-form {
	max-width: 40rem;
}

.form-row {
	display: grid;
	gap: 0.35rem;
	margin-bottom: 1rem;
}

.form-row label {
	font-size: 0.85rem;
	font-weight: 600;
}

.form-row input,
.form-row textarea {
	width: 100%;
	padding: 0.65rem 0.75rem;
	border: 1px solid var(--ms-line, #e4e4e7);
	border-radius: 6px;
	background: var(--ms-card, #fff);
	color: var(--ms-ink, #18181b);
	font-family: inherit;
	font-size: 1rem;
}

.form-row input:focus,
.form-row textarea:focus {
	outline: 2px solid var(--ms-cyan, #06b6d4);
	outline-offset: 1px;
}

/* Honeypot: hidden from humans, still present for bots to fill in. */
.hp-field {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.form-notice {
	margin: 0 0 1.25rem;
	padding: 0.85rem 1rem;
	border: 1px solid var(--ms-line, #e4e4e7);
	border-radius: 8px;
	font-size: 0.95rem;
}

.form-notice--ok {
	border-left: 4px solid #16a34a;
	background: #f0fdf4;
}

.form-notice--error {
	border-left: 4px solid var(--ms-coral, #f43f5e);
	background: #fff1f2;
}

/* ------------------------------------------------------- cookie banner */
.cookie-banner {
	position: fixed;
	left: 50%;
	bottom: 1.25rem;
	transform: translateX(-50%);
	z-index: 9999;
	width: min(52rem, calc(100% - 2rem));
	padding: 1.1rem 1.25rem;
	border: 1px solid var(--ms-line, #e4e4e7);
	border-radius: 12px;
	background: var(--ms-card, #fff);
	box-shadow: 0 1px 2px rgb(24 24 27 / 0.06), 0 12px 32px rgb(24 24 27 / 0.1);
}

.cookie-banner.is-hidden,
.cookie-banner[hidden],
html.eurorack-consent-known .cookie-banner {
	display: none;
}

.cookie-banner__inner {
	display: grid;
	gap: 0.85rem;
}

.cookie-banner__text {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.55;
}

.cookie-banner__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}

.cookie-banner__panel {
	display: grid;
	gap: 0.6rem;
	padding-top: 0.85rem;
	border-top: 1px solid var(--ms-line, #e4e4e7);
}

.cookie-banner__panel-row {
	margin: 0;
	font-size: 0.9rem;
}

.cookie-banner__panel-row label {
	display: flex;
	align-items: flex-start;
	gap: 0.6ch;
}

.cookie-banner__status:empty {
	display: none;
}

.cookie-banner__status {
	margin: 0;
	color: var(--ms-muted, #71717a);
	font-size: 0.82rem;
}

@media (max-width: 600px) {
	.cookie-banner {
		left: 0;
		right: 0;
		bottom: 0;
		transform: none;
		width: 100%;
		border-radius: 12px 12px 0 0;
	}
}
