/* /gb10-machines/ preview: the /buy-spark/ stage with a machine picker
 * above it and a spec caption under it. Builds on buy.css. */

.gb10-hero { padding-bottom: 96px; }
.gb10-hero h1 { font-size: clamp(40px, 6.4vw, 88px); }

/* Picker: hairline tabs like the store's view tabs, wrapping on narrow screens */
.gb10-picker { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 18px; max-width: 1080px; margin: 40px auto 0; position: relative; z-index: 2; }
.gb10-picker button { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 120px; background: none; color: var(--text-dim); border: 0; border-top: 1px solid var(--border-hi); padding: 14px 10px 10px 0; font: inherit; font-size: 15px; text-align: left; cursor: pointer; transition: color 0.4s; }
.gb10-picker button::before { content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 0; background: var(--accent); box-shadow: 0 0 10px rgba(118, 185, 0, 0.55); transition: width 0.5s ease; }
.gb10-picker button b { font-weight: 600; }
.gb10-picker button span { font-size: 13px; color: var(--text-dim); }
.gb10-picker button:hover, .gb10-picker button[aria-pressed="true"] { color: var(--text); }
.gb10-picker button[aria-pressed="true"]::before { width: 100%; }
.gb10-picker button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.gb10-fallback { position: relative; color: var(--text-dim); font-size: 15px; }

/* Caption: name, dimensions, look, source. The source link is clickable. */
.gb10-caption { min-height: 0; pointer-events: auto; }
.gb10-dims { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; margin-bottom: 10px; }
.gb10-source { margin-top: 12px; font-size: 13px; color: var(--text-dim); }
.gb10-source a { color: var(--accent); }

@media (max-width: 560px) {
  /* One row that scrolls sideways inside itself, so the model stays near the top. */
  .gb10-picker { flex-wrap: nowrap; justify-content: flex-start; gap: 0 14px; margin: 28px -16px 0; padding: 0 16px 6px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
  .gb10-picker::-webkit-scrollbar { display: none; }
  .gb10-picker button { flex: 0 0 auto; min-width: 104px; font-size: 14px; scroll-snap-align: start; }
  .gb10-hero { padding-bottom: 64px; }
}
