/* The frame deck: several screens, one section, arrows to move between them.
 *
 * Stacking four frames vertically made the industry page enormous and nobody
 * reached the fourth. A deck keeps them all one flick apart.
 *
 * Works without JavaScript: the track is a scroll-snap strip, so it stays
 * swipeable and every frame is still reachable. The script upgrades it to
 * arrows, tabs and keyboard.
 */
.deck { position: relative; }

.deck-bar {
  display: flex; align-items: center; gap: 10px;
  max-width: 1180px; margin: 0 auto 14px; padding: 0 20px;
}
.deck-tabs {
  display: flex; gap: 6px; flex: 1; flex-wrap: wrap; min-width: 0;
}
.deck-tabs button {
  font: inherit; font-size: 12.5px; font-weight: 500; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--ink-60);
  padding: 6px 13px; border-radius: 999px; white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
}
.deck-tabs button[aria-selected="true"] {
  background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600;
}
.deck-nav { display: flex; gap: 6px; flex: none; }
.deck-nav button {
  width: 34px; height: 34px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  font-size: 15px; line-height: 1; display: grid; place-items: center;
  transition: background .15s, border-color .15s, opacity .15s;
}
.deck-nav button:hover:not(:disabled) { background: var(--tint); border-color: var(--line-strong); }
.deck-nav button:disabled { opacity: .3; cursor: default; }

.deck-view { overflow: hidden; }
.deck-track {
  display: flex;
  /* No JS: a snapping scroll strip. With JS the script sets overflow hidden
     and drives translateX instead. */
  overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.deck-track::-webkit-scrollbar { display: none; }
.deck.js .deck-track {
  /* overflow MUST be visible here. The track is one view wide and its slides
     overflow it; clipping on the track itself cuts slides 2..n off before the
     transform can bring them into view, so they render blank. .deck-view does
     the clipping, one level up, where the box does not move. */
  overflow: visible;
  transition: transform .45s cubic-bezier(.22,.7,.3,1);
}
.deck-slide {
  flex: 0 0 100%; min-width: 0; scroll-snap-align: start;
  padding: 0 20px 6px;
}
.deck-slide > .os {
  border-radius: 14px;
  box-shadow: 0 2px 6px rgba(14,26,36,.07), 0 22px 50px rgba(14,26,36,.12);
}

@media (max-width: 860px) {
  .deck-bar { padding: 0 14px; gap: 8px; }
  .deck-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .deck-tabs::-webkit-scrollbar { display: none; }
  .deck-slide { padding: 0 14px 6px; }
}

/* ── attribution bars, on the team screen ─────────────────────────────────── */
.at { padding: 12px 16px 4px; }
.at-h {
  font-size: 8.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--os-mute); margin-bottom: 8px;
}
.at-r {
  display: flex; align-items: center; gap: 9px; padding: 4px 0;
  font-size: 11px;
}
.at-r b { font-weight: 600; flex: 0 0 78px; }
.at-r i {
  height: 7px; border-radius: 4px; background: var(--os-accent); opacity: .8;
  max-width: 190px; display: block; flex: none;
}
.at-r span { color: var(--os-mute); font-variant-numeric: tabular-nums; }
.at-r em {
  font-style: normal; margin-left: auto; font-weight: 600;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 560px) { .at-r i { max-width: 90px; } .at-r b { flex-basis: 64px; } }
