/* DOUR, in motion. Styles for js/extra.js: the team sheet, every colour, and the list of what the store does.
   Same rules as store.css: one family, stadium controls, the page takes the colour of the garment in front of you. */

/* ---------- the team sheet ---------- */
.team-kits { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(124px, 11vw, 168px); gap: 4px; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--pad) * -1); padding: 2px var(--pad) 4px; overscroll-behavior-x: contain; }
.team-kits::-webkit-scrollbar { display: none; }
.team-kit { display: grid; gap: 8px; align-content: start; text-align: left; font-size: 13px; line-height: 1.3; padding-bottom: 10px; border-bottom: 3px solid transparent; transition: border-color .2s; }
.team-kit .ph { transition: opacity .25s, transform .4s var(--ease); }
.team-kit b { display: block; font-weight: 650; }
.team-kit[aria-checked="false"] .ph { opacity: .5; }
.team-kit[aria-checked="false"]:hover .ph, .team-kit:focus-visible .ph { opacity: 1; }
.team-kit[aria-checked="true"] { border-color: #000; }
.team-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 440px); gap: clamp(24px, 5vw, 88px); align-items: start; margin-top: 36px; }
.team-hd { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 10px; }
.team-hd svg { width: 18px; height: 18px; }
.team-row { display: grid; grid-template-columns: 26px minmax(0, 1fr) 76px 104px 44px; gap: 8px; align-items: center; padding: 4px 0; animation: card .35s var(--ease) backwards; }
.team-i { font-size: 13px; font-weight: 650; color: var(--quiet); text-align: right; }
.team-row input, .team-row select { width: 100%; min-height: 50px; padding: 0 14px; border: 1.5px solid var(--rule); border-radius: 14px; background: #fff; outline: 0; transition: border-color .15s; appearance: none; -webkit-appearance: none; min-width: 0; }
.team-row input { text-transform: uppercase; font-weight: 650; font-stretch: 108%; letter-spacing: .02em; }
.team-row input::placeholder { color: #BDBCB8; font-weight: 500; }
.team-row [data-f="no"] { text-align: center; padding: 0 6px; }
.team-row select { padding-right: 30px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23000' stroke-width='1.8'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 12px center; cursor: pointer; font-weight: 600; }
.team-row input:focus, .team-row select:focus { border-color: #000; }
.team-row .ic[disabled] { opacity: .25; pointer-events: none; }
.team-row .ic svg { width: 18px; height: 18px; }
#team-add svg { width: 16px; height: 16px; stroke-width: 2.2; }
.team-side { position: sticky; top: calc(var(--hd) + 20px); background: var(--mist-2); border-radius: 28px; padding: 24px; display: grid; gap: 18px; }
.team-side .back { margin-inline: auto; }
.team-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 14px 6px; max-height: 330px; overflow-y: auto; scrollbar-width: thin; padding: 2px; }
.shirt-w { display: grid; gap: 4px; justify-items: center; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .28)); animation: shirt .4s var(--snap) backwards; }
.shirt-w small { font-size: 11.5px; font-weight: 650; color: var(--graphite); filter: none; }
.shirt { width: 100%; aspect-ratio: 1/1.06; background: var(--kit, #D9D8D4); color: var(--kit-ink, #000); clip-path: polygon(30% 0, 39% 6%, 61% 6%, 70% 0, 100% 15%, 91% 36%, 79% 30%, 79% 100%, 21% 100%, 21% 30%, 9% 36%, 0 15%); display: grid; align-content: center; justify-items: center; padding: 16% 22% 0; transition: background .5s var(--ease), color .3s; overflow: hidden; }
.shirt span { font-size: 7.5px; font-weight: 800; letter-spacing: .05em; line-height: 1; white-space: nowrap; max-width: 100%; overflow: hidden; }
.shirt b { font-size: 26px; font-weight: 900; font-stretch: 88%; line-height: 1; letter-spacing: -0.02em; }
@keyframes shirt { from { opacity: 0; transform: translateY(10px) scale(.8); } }

/* ---------- every colour ---------- */
.cw { background: linear-gradient(180deg, color-mix(in srgb, var(--tone) 24%, #fff) 0, #fff 880px); }
.spec-w { position: relative; padding-block: 10px; --at: 50; }
.spec { display: flex; height: clamp(60px, 8vw, 112px); border-radius: 99px; overflow: hidden; cursor: ew-resize; touch-action: none; user-select: none; -webkit-user-select: none; box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, .22); background: var(--mist); }
.spec i { flex: 1 1 0; min-width: 0; pointer-events: none; }
.spec:focus-visible { outline-offset: 6px; border-radius: 99px; }
.spec-at { position: absolute; top: 0; bottom: 0; left: clamp(8px, calc(var(--at) * 1%), calc(100% - 8px)); width: 16px; margin-left: -8px; border-radius: 99px; border: 3px solid #000; background: var(--tone); box-shadow: 0 0 0 2px #fff, 0 6px 18px rgba(0, 0, 0, .3); pointer-events: none; transition: left .16s var(--ease); }
.cw-stage { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: clamp(20px, 4vw, 72px); align-items: center; margin-top: clamp(18px, 2.4vw, 36px); }
.cw-pic { display: block; overflow: hidden; }
.cw-pic .ph img { animation: fade .3s; }
.cw-bd { display: grid; gap: 12px; justify-items: start; min-width: 0; }
.cw-name { color: color-mix(in srgb, var(--tone) 72%, #000); transition: color .6s var(--ease); overflow-wrap: anywhere; }
.cw-bd .hero-cta { margin-top: 6px; }
#cw-fams .chip .sw { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25); }
#cw-fams .chip[aria-pressed="true"] .quiet { color: #C9C9C6; }

/* ---------- what this store does ---------- */
.tour { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px clamp(24px, 5vw, 88px); }
.tour-g { font-weight: 650; color: var(--quiet); padding: 22px 0 8px; }
.tour-list a, .tour-list button { display: grid; grid-template-columns: minmax(0, 1fr) 22px; gap: 2px 14px; align-items: center; width: 100%; text-align: left; padding: 14px 0; border-bottom: 1px solid var(--rule); transition: padding-left .4s var(--ease); }
.tour-list b { grid-column: 1; font-size: clamp(22px, 2.3vw, 34px); font-weight: 850; font-style: italic; font-stretch: 125%; letter-spacing: -0.03em; line-height: 1.05; }
.tour-list span { grid-column: 1; font-size: 14.5px; color: var(--graphite); max-width: 58ch; }
.tour-list svg { grid-column: 2; grid-row: 1 / span 2; transition: transform .4s var(--ease); }
.tour-list a:hover, .tour-list button:hover, .tour-list a:focus-visible, .tour-list button:focus-visible { padding-left: 12px; }
.tour-list a:hover svg, .tour-list button:hover svg { transform: translateX(4px); }
.tour-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: clamp(40px, 5vw, 72px); }
.tour-facts ul { list-style: disc; padding-left: 18px; display: grid; gap: 8px; color: var(--graphite); }
.ft-base a { text-decoration: underline; text-underline-offset: 3px; }
/* the jersey block on the home page now has three buttons: let them wrap instead of widening the page */
.kit-form .hero-cta { flex-wrap: wrap; }

@media (max-width: 900px) {
  .team-in { grid-template-columns: minmax(0, 1fr); }
  .team-side { position: static; padding: 20px; }
  .team-row { grid-template-columns: 18px minmax(0, 1fr) 58px 84px 38px; gap: 6px; }
  .team-row input, .team-row select { padding: 0 10px; min-height: 48px; font-size: 16px; }
  .team-row select { padding-right: 24px; background-position: right 8px center; }
  .team-row .ic { width: 38px; height: 38px; }
  .team-kits { grid-auto-columns: 34vw; }
  .cw-stage { grid-template-columns: 40% minmax(0, 1fr); gap: 16px; align-items: start; }
  .cw-bd { gap: 8px; }
  .cw-bd .hero-cta { flex-wrap: wrap; }
  .cw-bd .hero-cta .btn { min-height: 44px; padding: 0 16px; }
  .tour, .tour-facts { grid-template-columns: minmax(0, 1fr); }
}
