/* The material lab uses the same ink, acid, paper and ruled edges as the garments. */
.gsm-lab { padding: clamp(70px,8vw,130px) clamp(20px,5vw,80px); background: #05281f; border-block: 1px solid #567369; scroll-margin-top: 90px; }
.gsm-lab__head { display: grid; grid-template-columns: 1.3fr 1fr; gap: 22px 60px; align-items: end; margin-bottom: 42px; }
.gsm-lab .gsm-eyebrow { grid-column: 1/-1; color: var(--qp-acid); font-size: 11px; font-weight: 700; letter-spacing: .16em; }
.gsm-lab__head h2 { font-size: clamp(42px,5.3vw,82px); line-height: .96; letter-spacing: -.055em; }
.gsm-lab__head > p:last-child { max-width: 34ch; color: #c4d0c5; font-size: clamp(16px,1.4vw,20px); line-height: 1.5; }
.gsm-console { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(300px,1fr); border: 1px solid #688478; box-shadow: 8px 8px 0 var(--qp-cobalt); }
.gsm-view { min-width: 0; padding: 24px; background: linear-gradient(#b8dfbf0b 1px,transparent 1px),linear-gradient(90deg,#b8dfbf0b 1px,transparent 1px),#07362b; background-size: 32px 32px; }
.gsm-view__top { display: flex; justify-content: space-between; gap: 16px; align-items: center; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.gsm-view__signal { padding: 7px 9px; color: #10120f; background: var(--qp-acid); font-weight: 800; }
.gsm-specimens { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 54px 0 26px; }
.gsm-specimen { min-width: 0; }
.gsm-specimen__label { display: grid; gap: 9px; padding-left: 12px; border-left: 2px solid #84978e; }
.gsm-specimen__label > span { color: #c4d0c5; font-size: 11px; }
.gsm-specimen__label strong { font-size: clamp(17px,2vw,28px); font-variant-numeric: tabular-nums; }
.gsm-specimen--selected .gsm-specimen__label { border-color: var(--qp-acid); }
.gsm-specimen--selected strong { color: var(--qp-acid); }
.gsm-specimen svg { display: block; width: 100%; overflow: visible; }
.gsm-specimen__outline { fill: none; stroke: #96b6a8; stroke-dasharray: 3 7; opacity: .3; }
.gsm-mass { display: grid; gap: 10px; margin: 0 12px; }
.gsm-mass > span { font-size: 11px; color: #c4d0c5; margin-bottom: 3px; }
.gsm-mass__track { height: 8px; background: #f4f5f01a; }
.gsm-mass__track i { display: block; width: 100%; height: 100%; background: #84978e; transform-origin: left; }
.gsm-mass__track:last-child i { background: var(--qp-acid); }
.gsm-lab .gsm-caption { margin: 24px 12px 0; max-width: 52ch; color: #b3c8bd; font-size: 11px; line-height: 1.5; }
.gsm-console__controls { min-width: 0; padding: clamp(24px,3vw,46px); border-left: 1px solid #688478; background: var(--qp-paper); color: var(--qp-ink); }
.gsm-garments { display: flex; gap: 8px; }
.gsm-lab button { font: inherit; cursor: pointer; min-height: 44px; border: 1px solid currentColor; border-radius: 0; padding: 8px 16px; background: transparent; color: inherit; }
.gsm-garments button[aria-pressed=true] { background: var(--qp-green); color: var(--qp-paper); border-color: var(--qp-green); }
.gsm-readout { display: flex; gap: 12px; align-items: baseline; margin-top: 24px; font-weight: 800; font-variant-numeric: tabular-nums; }
.gsm-readout > span:first-child { font-size: clamp(70px,7vw,108px); line-height: 1; letter-spacing: -.07em; }
.gsm-readout > span:last-child { font-size: 14px; }
.gsm-lab .gsm-delta { display: flex; align-items: center; gap: 12px; margin: 20px 0 30px; }
.gsm-delta strong { padding: 8px 10px; background: var(--qp-acid); font-size: 22px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gsm-delta > span { max-width: 18ch; font-size: 12px; line-height: 1.35; }
.gsm-controls label { display: block; font-size: 12px; font-weight: 700; }
.gsm-controls input { display: block; width: 100%; height: 44px; margin: 8px 0 0; accent-color: var(--qp-green); cursor: ew-resize; touch-action: pan-y; }
.gsm-presets { display: flex; justify-content: space-between; gap: 10px; }
.gsm-presets button { border: 0; padding: 8px 12px; font-size: 12px; }
.gsm-presets button[aria-pressed=true] { background: var(--qp-green); color: var(--qp-paper); }
.gsm-character { border-top: 1px solid #a1aaa0; padding-top: 22px; margin-top: 24px; }
.gsm-character h3 { font-size: 20px; letter-spacing: -.025em; }
.gsm-character p { margin-top: 10px; font-size: 13px; line-height: 1.6; }
.gsm-explainer { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 60px; margin-top: 34px; }
.gsm-explainer p { max-width: 62ch; font-size: 13px; line-height: 1.6; color: #c4d0c5; }
.gsm-explainer a { display: block; width: fit-content; color: var(--qp-acid); margin-top: 10px; text-underline-offset: 4px; }
.gsm-lab :is(button,input,a):focus-visible { outline: 3px solid var(--qp-cobalt); outline-offset: 4px; }
.gsm-sr { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
@media (max-width: 900px) {
 .gsm-lab__head { grid-template-columns: 1fr; gap: 20px; }
 .gsm-console { grid-template-columns: 1fr; }
 .gsm-console__controls { border-left: 0; border-top: 1px solid #688478; }
 .gsm-specimens { margin-top: 35px; }
 .gsm-view { padding: 22px 16px; }
 .gsm-explainer { grid-template-columns: 1fr; gap: 20px; }
 .gsm-specimen__label > span { font-size: 10px; }
 .gsm-readout > span:first-child { font-size: 88px; }
}
@media (forced-colors: active) { .gsm-mass__track i { background: Highlight; } .gsm-console { border: 1px solid CanvasText; } }
@media (max-width: 600px) {
 .gsm-console__controls { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 20px; }
 .gsm-console__controls > .gsm-controls, .gsm-character { grid-column: 1/-1; }
 .gsm-readout { margin-top: 0; gap: 8px; }
 .gsm-readout > span:first-child { font-size: 64px; }
 .gsm-readout > span:last-child { font-size: 11px; }
 .gsm-lab .gsm-delta { margin: 0; gap: 7px; flex-wrap: wrap; align-content: center; }
 .gsm-delta strong { font-size: 18px; padding: 5px 8px; }
 .gsm-delta > span { font-size: 10px; max-width: none; }
 .gsm-character { margin-top: 0; padding-top: 16px; }
 .gsm-view { padding: 16px 12px; }
 .gsm-specimens { margin: 20px 0 8px; gap: 12px; }
 .gsm-specimen__label { padding-left: 7px; gap: 6px; }
 .gsm-specimen svg { max-height: 130px; }
 .gsm-mass { gap: 6px; margin: 0 7px; }
 .gsm-mass__track { height: 5px; }
 .gsm-lab .gsm-caption { margin: 12px 7px 0; font-size: 10px; }
 .gsm-view__top { font-size: 9px; }
}
