/* What the product lists add to the kit (tools/web-tools/lists; the look is tools/web-tools/DESIGN.md).
   The kit's variables, radii and type sizes only. */

/* ── The hub ──────────────────────────────────────────────────────── */
/* The first group sits closer to the title than sections do further down. */
.hub-page .hero + .section { margin-top: clamp(16px, 3vw, 32px); }

/* The lists of one group: three cards a row, the longest taking two places. */
.list-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.list-card.is-wide { grid-column: span 2; }
.list-card__stage { height: 150px; padding-top: 16px; }
.list-card__stage { padding-top: 0; }
.list-card__stage img { max-height: 96px; max-width: 40%; filter: drop-shadow(0 10px 14px rgba(20, 40, 100, 0.12)); }
.list-card__stage.tone-mint { background: linear-gradient(180deg, var(--tone-mint) 0%, #F3FBF6 100%); }
.list-card__stage.tone-lilac { background: linear-gradient(180deg, var(--tone-lilac) 0%, #F6F4FF 100%); }
.list-card__stage.tone-sky { background: linear-gradient(180deg, var(--tone-sky) 0%, var(--accent-wash) 100%); }
.list-card__stage.tone-sand { background: linear-gradient(180deg, var(--tone-sand) 0%, var(--cream) 100%); }
.list-card .card__words { gap: 4px; padding: 16px 20px 20px; }
.list-card__count { font-size: 34px; line-height: 1; font-weight: 700; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.list-card .card__name { font-size: 17px; line-height: 1.25; font-weight: 650; letter-spacing: -0.015em; color: var(--ink-soft); }
a.list-card:hover .card__name { color: var(--accent); }

@media (max-width: 760px) {
  /* On a phone each list is one row: its picture on a small tinted tile, then the number and the name. */
  .list-cards { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .list-card.is-wide { grid-column: auto; }
  .list-card { flex-direction: row; align-items: center; border-radius: 24px; }
  .list-card__stage, .list-card.is-wide .list-card__stage { flex: 0 0 92px; height: 92px; margin: 8px; padding-top: 0; border-radius: 18px; }
  .list-card__stage img, .list-card.is-wide .list-card__stage img { max-height: 60px; max-width: 70%; }
  .list-card .card__words { padding: 10px 16px 10px 6px; gap: 3px; }
  .list-card__count { font-size: 26px; }
  .list-card .card__name { font-size: 15.5px; }
}

/* ── A list ───────────────────────────────────────────────────────── */
/* On a phone the drawing would push the search box down: the title and line come first there. */
@media (max-width: 859px) { .list-page .hero__art { display: none; } }

/* Three numbers: how many were read, how many passed, when. */
.list-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.list-tile { min-height: 0; padding: 14px 18px 15px; gap: 2px; }
.list-tile__value { font-size: clamp(24px, 3.4vw, 34px); line-height: 1.05; font-weight: 700; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.list-tile.is-good .list-tile__value { color: var(--positive-ink); }
.list-tile .tile__label { margin-top: 2px; color: var(--ink-soft); }
.list-tile .tile__detail { font-size: 12.5px; }

/* The list: one card holding the search box, the chips and every row. */
.list { --pad: clamp(16px, 3vw, 32px); --stick: 78px; position: relative; background: var(--paper); border-radius: var(--radius); box-shadow: var(--cast); padding: 0 var(--pad) 6px; }
.list[data-tone='mint'] { --tint: var(--tone-mint); --tint-ink: var(--tone-mint-ink); }
.list[data-tone='lilac'] { --tint: var(--tone-lilac); --tint-ink: var(--tone-lilac-ink); }
.list[data-tone='sky'] { --tint: var(--tone-sky); --tint-ink: var(--tone-sky-ink); }
.list[data-tone='sand'] { --tint: var(--tone-sand); --tint-ink: var(--tone-sand-ink); }

/* The search box and chips stay in reach while a long list scrolls under them, just below the floating bar. Once they
   stick (list.js sets is-stuck), the card's white runs up behind the bar so no row shows above them. */
.list__tools { position: sticky; top: var(--stick); z-index: 3; margin: 0 calc(var(--pad) * -1); padding: var(--pad) var(--pad) 12px; background: var(--paper); border-radius: var(--radius) var(--radius) 0 0; }
.list__tools.is-stuck { border-radius: 0; box-shadow: 0 calc(var(--stick) * -1) 0 var(--paper), 0 1px 0 var(--hairline), 0 14px 18px -16px rgba(20, 40, 100, 0.35); }
.list__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
input.list__search { min-height: 52px; border-color: transparent; padding-left: 50px; font-size: 16px;
  background: var(--fill) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236E6E73' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") no-repeat 19px 50%; }
input.list__search:focus { background-color: var(--paper); }
input.list__search::-webkit-search-cancel-button { cursor: pointer; }
.list__chips { margin-top: 10px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: calc(var(--pad) * -1); padding-right: var(--pad); }
.list__chips::-webkit-scrollbar { display: none; }
.list__chips .chip { flex-shrink: 0; white-space: nowrap; min-height: 34px; padding: 4px 14px; }
@media (min-width: 761px) { .list__chips { flex-wrap: wrap; margin-right: 0; padding-right: 0; } }
.list__count { padding: 6px 0 2px; font-size: 13.5px; font-weight: 600; color: var(--muted); }

/* A thousand rows: each is laid out only when it nears the screen. */
.list .rows { margin-top: 2px; padding: 0; border-radius: 0; background: none; box-shadow: none; }
.list__rows li { border-bottom: 1px solid var(--hairline); content-visibility: auto; contain-intrinsic-size: auto 84px; }
.list__rows li:last-child { border-bottom: 0; }
.list__rows .row { border-bottom: 0; min-height: 84px; gap: 16px; }
.list .row__name { font-size: 16px; }
.list .row__over { font-size: 12.5px; letter-spacing: 0.01em; }
/* The reason, with a small green tick: this is a pass. */
.list .row__under { position: relative; padding-left: 18px; font-size: 13.5px; font-weight: 550; color: var(--positive-ink); }
.list .row__under::before { content: ''; position: absolute; left: 3px; top: 0.28em; width: 5px; height: 9px; border-right: 2px solid var(--positive); border-bottom: 2px solid var(--positive); transform: rotate(45deg); }
.list .row__side { align-self: center; min-height: 26px; padding: 2px 10px; border-radius: var(--capsule); background: var(--fill); color: var(--ink-soft); font-size: 12.5px; font-weight: 650; white-space: nowrap; display: inline-flex; align-items: center; }

/* The picture sits on a soft tile in the list's tone. Until it comes, or when there is none, the brand's first letter
   holds its place. */
.list .row__thumb { position: relative; width: 56px; height: 64px; border-radius: 16px; align-items: center;
  background: linear-gradient(180deg, var(--tint, var(--fill)) 0%, color-mix(in srgb, var(--tint, var(--fill)) 45%, var(--paper)) 100%); }
.list .row__thumb::before { content: attr(data-l); font-size: 21px; font-weight: 700; letter-spacing: -0.03em; color: var(--tint-ink, var(--muted)); opacity: 0.6; transition: opacity 0.12s; }
.list .row__thumb img { position: absolute; left: 10%; bottom: 4%; width: 80%; height: 88%; object-position: bottom; mix-blend-mode: multiply; opacity: 0; transition: opacity 0.12s; }
.list .row__thumb.has-picture::before { opacity: 0; }
.list .row__thumb.has-picture img { opacity: 1; }

.list__none { margin: 6px 0 calc(var(--pad) - 6px); padding: 18px 20px; border-radius: var(--radius-tile); background: var(--fill); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; font-size: 15.5px; color: var(--ink-soft); }
.list__none .button { min-height: 44px; font-size: 15px; padding: 0 20px; background: var(--paper); }

.list-more .chip { min-height: 36px; padding: 6px 14px; font-size: 14px; }

@media (max-width: 560px) {
  .list-stats { gap: 8px; }
  .list-tile { padding: 12px 12px 13px; border-radius: 16px; }
  .list-tile .tile__label { font-size: 12.5px; }
  .list-tile .tile__detail { display: none; }
  .list__rows .row { gap: 12px; }
  .list .row__thumb { width: 50px; height: 58px; border-radius: 14px; }
  .list .row__name { font-size: 15.5px; }
}
