/* List-and-detail explorer, scoped to replace the original gallery layout. */
.labs.labs-explorer { padding: clamp(20px, 3svh, 44px) 4.2%; display: grid; align-items: center; min-height: calc(100svh - var(--nav-clearance, 88px)); }
.labs-explorer::before { display: none; }
.labs-explorer .labs-inner { width: 100%; max-width: 1320px; margin: auto; text-align: left; }
.labs-explorer .labs-heading { display: flex; justify-content: space-between; align-items: center; gap: 40px; margin-bottom: clamp(20px, 4svh, 42px); }
.labs-explorer .labs-eyebrow { color: var(--orange); font-size: 11px; letter-spacing: .14em; }
.labs-explorer h2 { font-size: clamp(32px, 5svh, 52px); margin: 12px 0 0; line-height: 1.08; }
.labs-heading > p { max-width: 390px; font-size: 14px; line-height: 1.8; color: var(--muted); }
.lab-workspace { display: grid; grid-template-columns: minmax(260px, .85fr) minmax(0, 1.65fr); gap: 24px; align-items: stretch; }
.lab-menu { display: grid; gap: 8px; align-content: start; }
.lab-menu .lab-choice { min-height: 72px; }
.lab-choice > span:nth-child(2) { min-width: 0; line-height: 1.45; }
.lab-choice { width: 100%; min-height: 48px; padding: 5px 6px 5px 18px; display: flex; align-items: center; gap: 14px; border: 1px solid #ffffff26; border-radius: 40px; background: transparent; text-align: left; color: var(--text); font-size: 14px; transition: background .2s, border-color .2s; }
.lab-choice:hover { background: #ffffff06; border-color: #ff742f88; }
.lab-choice[aria-pressed="true"] { background: #ff742f12; border-color: var(--orange); }
.lab-choice-icon { width: 25px; flex-shrink: 0; font: 19px monospace; color: #c3bcb3; }
.lab-choice-arrow { display: grid; place-items: center; margin-left: auto; flex: 0 0 34px; height: 34px; border-radius: 50%; background: #2d2d2d; color: var(--orange); font-size: 21px; }
.lab-choice[aria-pressed="true"] .lab-choice-arrow { background: var(--orange); color: #221810; }
.lab-panel { min-width: 0; padding: clamp(20px, 3svh, 34px); border: 1px solid #ffffff0c; border-radius: 28px; background: #272727; display: flex; flex-direction: column; }
.lab-panel-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--orange); font-size: 10px; letter-spacing: .12em; }
.lab-counter { color: var(--muted); }
.lab-panel h3 { font-size: clamp(27px, 3.8svh, 38px); line-height: 1.15; letter-spacing: -.035em; font-weight: 500; margin: 14px 0 20px; }
.lab-explanation { margin-bottom: 16px; }
.lab-explanation h4 { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #e5ded3; margin: 0 0 6px; }
.lab-explanation p { font-size: 13px; line-height: 1.65; color: #b7b6b0; margin: 0; max-width: 650px; }
.lab-flow { display: flex; align-items: center; gap: 24px; border-radius: 14px; background: #1d1d1d; border-left: 2px solid var(--orange); padding: 12px 18px; margin-top: auto; }
.lab-flow-label { color: #a9a299; font-size: 9px; letter-spacing: .13em; flex-shrink: 0; }
.lab-flow pre { margin: 0; color: #efb987; font: 12px/1.65 monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.lab-panel-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.labs-explorer #lab-technologies { display: flex; flex-wrap: wrap; list-style: none; gap: 6px; margin: 0; padding: 0; }
.labs-explorer #lab-technologies li { border: 1px solid #ffffff18; border-radius: 20px; padding: 5px 10px; font-size: 10px; color: #c2c0b9; background: transparent; }
.lab-panel-bottom > span { font-size: 9px; letter-spacing: .1em; color: #a5a19a; }
.lab-panel-bottom > span span { color: var(--orange); margin-left: 6px; }
.lab-explorer-footer { display: flex; justify-content: space-between; gap: 20px; margin-top: 20px; font-size: 11px; color: var(--muted); }
.lab-explorer-footer a { color: var(--text); }
.lab-explorer-footer a span { color: var(--orange); margin-left: 8px; }
@media (max-width: 800px) {
  .labs.labs-explorer { padding: 48px 22px; min-height: 0; }
  .labs-explorer .labs-heading { display: block; margin-bottom: 24px; }
  .labs-heading > p { margin: 16px 0 0; }
  .lab-workspace { grid-template-columns: 1fr; }
  .lab-choice { min-height: 48px; }
  .lab-explorer-footer { flex-direction: column; gap: 12px; }
  .lab-flow { flex-direction: column; align-items: flex-start; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { .lab-choice { transition: none; } }
