/*
 * Model number decoder — prototype lines 793–851. Every value is the element's inline style in the
 * prototype; shared tokens/classes come from base.css (.kicker, .page-title, .sr-only).
 * Markup: page-model-decoder.php (idle state) + assets/js/model-decoder.js (decoded result).
 */

/* Dark input band (line 796) */
.decoder-band { background: var(--navy); color: #fff; padding: 56px var(--gutter) 48px; }
.decoder-band__title { margin: 6px 0 16px; }
.decoder-band__lede { margin: 0 0 24px; color: var(--dark-text); max-width: 560px; text-wrap: pretty; }
.decoder-band__input {
	display: block;
	width: 100%;
	max-width: 640px;
	padding: 14px 16px;
	border: 1px solid var(--tag-t);
	background: #fff;
	color: var(--ink);
	font: 600 18px var(--font-mono);
	border-radius: 2px;
	text-transform: uppercase;
	margin: 0;
}
.decoder-band__try { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; align-items: center; }
.decoder-band__try-label { font: 11px var(--font-mono); color: var(--dark-text-3); letter-spacing: .1em; }
.decoder-band__example {
	font: 12px var(--font-mono);
	color: var(--dark-text);
	background: none;
	border: 1px solid #4a5563;
	padding: 5px 9px;
	border-radius: 2px;
	cursor: pointer;
	margin: 0;
	text-align: left;
}
.decoder-band__example:hover { border-color: #fff; color: #fff; }

/* Result column + sidebar (lines 806–808, 834) */
.decoder-body { padding: 40px var(--gutter) 72px; display: flex; flex-wrap: wrap; gap: 32px 40px; align-items: flex-start; }
.decoder-result { flex: 999 1 460px; min-width: 0; }
.decoder-side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 16px; max-width: 420px; }

/* Recognised number (lines 809–821) */
.decoder-ok__title { margin: 6px 0 6px; font: 700 clamp(28px, 4vw, 40px)/1 var(--font-display); text-transform: uppercase; text-wrap: pretty; }
.decoder-ok__summary { margin: 0 0 22px; color: var(--text-2); max-width: 640px; text-wrap: pretty; }
.decoder-parts { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }
.decoder-part { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; background: var(--panel); border: 1px solid var(--line); min-width: 120px; flex: 1 1 120px; }
.decoder-part__code { font: 700 24px/1 var(--font-mono); color: var(--navy); }
.decoder-part__label { font: 10px var(--font-mono); color: var(--muted); letter-spacing: .1em; }
.decoder-part__value { font-size: 14px; font-weight: 600; text-wrap: pretty; }
.decoder-notes { margin: 0 0 24px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--text); max-width: 640px; }
.decoder-notes__item { padding-left: 14px; border-left: 2px solid var(--orange); text-wrap: pretty; }

/* No match (line 824) */
.decoder-unknown { padding: 24px; background: var(--panel); border: 1px solid var(--line); max-width: 640px; color: var(--text-2); text-wrap: pretty; }
.decoder-unknown__title { display: block; font: 600 22px var(--font-display); text-transform: uppercase; color: var(--ink); margin-bottom: 6px; }

/* Idle cards (lines 827–831) */
.decoder-idle { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; max-width: 760px; }
.decoder-idle__card { padding: 18px; background: var(--panel); border: 1px solid var(--line); }
.decoder-idle__code { display: block; font: 700 18px var(--font-mono); color: var(--navy); margin-bottom: 6px; }
.decoder-idle__text { font-size: 13px; color: var(--text-2); text-wrap: pretty; }

/* Next steps (lines 835–840) */
.decoder-next { background: var(--panel); border: 1px solid var(--line); }
.decoder-next__head { padding: 14px 18px; border-bottom: 1px solid var(--line); font: 600 18px var(--font-display); text-transform: uppercase; }
.decoder-next__link { padding: 12px 18px; border-bottom: 1px solid var(--line-2); display: flex; justify-content: space-between; gap: 12px; cursor: pointer; font-size: 14px; font-weight: 500; color: var(--ink); }
.decoder-next__link:hover { background: #fff; color: var(--ink); }
.decoder-next__arrow { color: var(--orange-text); }

/* "Can't read the nameplate?" (lines 841–845) */
.decoder-nameplate { background: var(--navy); color: #fff; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.decoder-nameplate__title { font: 600 18px var(--font-display); text-transform: uppercase; }
.decoder-nameplate__text { font-size: 13px; color: var(--dark-text); text-wrap: pretty; }
.decoder-nameplate__button { display: block; padding: 10px 14px; background: var(--orange); color: #fff; text-align: center; font-weight: 600; cursor: pointer; border-radius: 2px; font-size: 13px; margin-top: 4px; }
.decoder-nameplate__button:hover { background: var(--orange-dark); color: #fff; }

/* Footnote (line 846) */
.decoder-footnote { font-size: 11px; color: var(--muted); text-wrap: pretty; }

/* Mobile (≤ 899px): 44px example chips and nameplate button, 11px part labels. */
@media (max-width: 899.98px) {
	.decoder-band__example { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; font-size: 13px; }
	.decoder-part__label { font-size: 11px; }
	.decoder-nameplate__button { min-height: 44px; display: flex; align-items: center; justify-content: center; }
}
