/* =============================================================
   deck-shelf.css — the one deck shelf on the Try it page (#decks).
   Each tile is the deck's title card, as on the printed deck's front:
   the LOFL sun, "Deck NN · N cards", the deck name, its
   one-line description, the spectrum line, and the testing pill.
   Written by _build/build-deck-shelf.py. Tokens come from styles.css.
   ============================================================= */
.deck-shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13.5rem), 1fr)); gap: 1.4rem; margin-top: 1.4rem; }
.ds-tile { display: block; aspect-ratio: 148.5 / 210; background: #fff; border-radius: 14px; padding: .55rem;
  color: var(--ink); text-decoration: none;
  box-shadow: 0 1px 2px rgba(40, 51, 46, .10), 0 12px 26px -14px rgba(40, 51, 46, .32);
  transition: transform .15s ease, box-shadow .15s ease; }
.ds-tile:hover, .ds-tile:focus-visible { transform: translateY(-3px); box-shadow: 0 1px 2px rgba(40, 51, 46, .10), 0 18px 30px -14px rgba(40, 51, 46, .38); color: var(--ink); }
.ds-tile:focus-visible { outline: 2.5px solid var(--teal); outline-offset: 3px; }
.ds-frame { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  border: 1.5px solid var(--ink); outline: .6px solid var(--ink); outline-offset: 2px; border-radius: 9px; padding: 1.1rem 1rem .9rem; }
.ds-sun { width: 3.1rem; height: 3.1rem; margin-bottom: .8rem; }
.ds-lede { font-family: var(--font-display); font-style: italic; font-size: .95rem; line-height: 1.32; color: var(--ink-2);
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.ds-spec { display: block; width: 100%; height: 3px; border-radius: 2px; margin: .8rem 0 .7rem;
  background: linear-gradient(90deg, #BF4131, #E07D38, #E9B23E, #6B9A40, #346FA6, #7B4F9E); }
.ds-k { font-family: var(--font-geo); font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); }
.ds-title { font-family: var(--font-display); font-weight: 600; font-size: 1.32rem; line-height: 1.12; margin: .4rem 0 .35rem; }
.ds-deva { font-family: var(--font-deva); font-weight: 600; font-size: 1.7rem; line-height: 1.25; margin-top: auto; }
.ds-rom { font-size: .8rem; line-height: 1.35; color: var(--ink-2); }
.ds-rom i { font-family: var(--font-display); font-size: 1.05em; }
.ds-pips { margin-top: .6rem; letter-spacing: .28em; font-size: .78rem; }
.ds-learning { color: var(--c-blue); } .ds-skill { color: var(--saffron); } .ds-culture { color: var(--c-violet); }
.ds-green { color: var(--palm); } .ds-close { color: var(--teal); }
.ds-st { font-size: .74rem; color: var(--ink-2); }
.pill { display: inline-block; font-family: var(--font-geo); font-size: .62rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  border: 1px solid currentColor; border-radius: 999px; padding: .1rem .55rem; line-height: 1.5; white-space: nowrap; }
.pill-untested { color: var(--ink-2); } .pill-testing { color: #2F6596; } .pill-tested { color: var(--teal); }
.pill-ready { color: var(--teal); border-width: 1.5px; } .pill-on-hold { color: var(--saffron-dk); }
.ds-legend { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .35rem; font-size: var(--step--1); color: var(--ink-2); }
.ds-legend .pill { margin-right: .4rem; }
@media (prefers-reduced-motion: reduce) { .ds-tile { transition: none; } }
@media (max-width: 40rem) {
  /* two small cards side by side on a phone, so the shelf stays a shelf */
  .deck-shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
  .ds-tile { padding: .4rem; border-radius: 11px; }
  .ds-frame { padding: .8rem .65rem .65rem; border-radius: 7px; }
  .ds-title { font-size: 1.05rem; }
  .ds-sun { width: 2.3rem; height: 2.3rem; margin-bottom: .5rem; }
  .ds-lede { font-size: .76rem; line-height: 1.28; -webkit-line-clamp: 2; }
  .ds-spec { margin: .55rem 0 .5rem; }
  .ds-k, .ds-st { font-size: .62rem; }
}
