/* Commander and collector pages. Builds on style.css variables and browse.css tiles. Mobile first. */
.cmd-tabs { display: flex; flex-wrap: wrap; gap: .25rem .5rem; margin: .25rem 0 .5rem; }
.cmd-tabs a { padding: .3rem .7rem; border: 1px solid var(--border); border-radius: 999px; text-decoration: none;
  color: var(--text); min-height: 36px; display: inline-flex; align-items: center; }
.cmd-tabs a[aria-current=page] { background: var(--accent); border-color: var(--accent); color: var(--accent-text);
  font-weight: 600; }
.lead { max-width: 60rem; margin: .25rem 0 .5rem; }

.tiles.gallery { grid-template-columns: repeat(auto-fill, minmax(min(46%, 180px), 1fr)); gap: .9rem .6rem; }
.tile-rank { font-size: .8rem; font-weight: 600; color: var(--accent); }
.badge.tier { background: #6b4fa8; }
.badge.tier.top { background: #9a6a00; }

.staple { border-top: 1px solid var(--border); padding: .75rem 0; }
.staple-head h2 { font-size: 1.15rem; margin: 0; }
.staple-head p { margin: .15rem 0 .5rem; }
.printings { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem .6rem;
  grid-template-columns: repeat(auto-fill, minmax(min(46%, 150px), 1fr)); }
.printing { min-width: 0; display: flex; flex-direction: column; gap: .3rem; }
.sku-list { list-style: none; padding: 0; margin: .15rem 0 0; font-size: .8rem; }
.sku-list li { display: flex; flex-wrap: wrap; gap: .3rem; align-items: baseline; }

/* Dual lands: cycle x colour-pair grid. Scrolls sideways on phones. */
.land-grid-wrap { overflow-x: auto; margin: .5rem 0; -webkit-overflow-scrolling: touch; }
.land-grid { border-collapse: collapse; font-size: .85rem; min-width: 640px; width: 100%; }
.land-grid th, .land-grid td { border-bottom: 1px solid var(--border); padding: .25rem .3rem; text-align: center; }
.land-grid tbody th { text-align: left; white-space: nowrap; font-weight: 600; }
.land-grid thead th { vertical-align: bottom; font-weight: 500; }
.land-grid thead a { display: inline-flex; flex-direction: column; align-items: center; gap: .1rem; text-decoration: none;
  color: var(--text); }
.land-grid td a { display: inline-block; min-width: 2rem; padding: .2rem .35rem; border-radius: 6px; font-weight: 600;
  text-decoration: none; background: color-mix(in srgb, var(--accent) 14%, transparent); }
.land-grid a[aria-current] { outline: 2px solid var(--accent); outline-offset: 1px; }
.land-grid tr.on th a { color: var(--accent); }
.pair-name { font-size: .72rem; color: var(--muted, inherit); }
.pips { display: inline-flex; gap: 2px; }
.pip { width: 1.15rem; height: 1.15rem; border-radius: 50%; font-size: .65rem; font-weight: 700; display: inline-flex;
  align-items: center; justify-content: center; color: #111; border: 1px solid rgba(0,0,0,.25); }
.pip.mana-W { background: #f8f3d8; } .pip.mana-U { background: #a9d3f0; } .pip.mana-B { background: #bab1ab; }
.pip.mana-R { background: #f0a58b; } .pip.mana-G { background: #9fd3aa; }
.trios { display: flex; flex-wrap: wrap; gap: .35rem .6rem; align-items: center; font-size: .9rem; }
.trio { display: inline-flex; align-items: center; gap: .3rem; text-decoration: none; padding: .15rem .45rem;
  border: 1px solid var(--border); border-radius: 999px; color: var(--text); }
.trio.on { border-color: var(--accent); }
.land-filters { margin: .5rem 0; }

/* Staples as a binder: two 3x3 pages side by side on wide screens, flip through printings in each pocket. */
.binder-spread { display: grid; gap: 1rem; grid-template-columns: 1fr; margin: .5rem 0 1rem; }
@media (min-width: 1100px) { .binder-spread { grid-template-columns: 1fr 1fr; } .binder-spread .binder-page { margin: 0; max-width: none; } }
.binder-spread .binder-page { box-shadow: inset 6px 0 10px -8px rgba(0,0,0,.35); }
.staple-pocket .pocket-img { transition: transform .15s ease; }
.staple-pocket .pocket-img:hover, .staple-pocket .pocket-img:focus-visible { transform: translateY(-3px) rotate(-.6deg); }
@media (prefers-reduced-motion: reduce) { .staple-pocket .pocket-img { transition: none; } .staple-pocket .pocket-img:hover { transform: none; } }
.staple-pocket .flip-set { display: block; padding-top: .2rem; font-size: .75rem; }
.staple-pocket .printing-nav { display: flex; align-items: center; justify-content: space-between; gap: .25rem; padding-top: .2rem; }
.staple-pocket .printing-nav .button { padding: .05rem .55rem; line-height: 1.3; }
.staple-pocket .printing-nav[hidden], .staple-pocket .printing-flip[hidden] { display: none; }
.rank-badge { position: absolute; top: .3rem; left: .3rem; background: rgba(0,0,0,.72); color: #fff; font-size: .72rem;
  font-weight: 700; padding: .05rem .4rem; border-radius: 999px; }
.staple-prices summary { cursor: pointer; }
.staple-prices p { margin: .35rem 0 .1rem; }
