/* Formats: a Pearl band with a white panel, one row per kind of file. The formats it reads, an
   arrow, then the formats it makes as glossy chips in the kind's colour. Was a black band until
   2026-10-22 (Tang: too heavy); the less common rows now sit behind "Show all formats". */

.formats { overflow-x: clip; padding: var(--section-y) 0; background: var(--cream); }

.frows {
  background: var(--paper); border-radius: var(--radius); overflow: hidden; padding: 6px 0;
  box-shadow: inset 0 0 0 1px var(--line), var(--pop-sm);
}
.frow {
  --c: var(--accent);
  display: grid; grid-template-columns: 150px minmax(0, 1fr) 84px minmax(0, 1fr); gap: 8px 22px; align-items: center;
  padding: 12px 22px; border-top: 1px solid var(--line);
}
.frows > .frow:first-child { border-top: 0; }
.frow h3 { font-size: 20px; margin: 0; display: flex; align-items: center; gap: 10px; color: var(--ink); }

/* "Show all formats" */
.fmore-row { display: flex; justify-content: center; margin-top: 22px; }
.fmore-btn {
  font: 600 17px/1 var(--font-display); color: var(--ink); cursor: pointer; border: 0;
  background: var(--paper); border-radius: 999px; padding: 13px 22px 12px;
  box-shadow: inset 0 0 0 1px var(--line), var(--pop-sm);
  transition: transform .18s var(--ease-spring), box-shadow .18s;
}
.fmore-btn:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--line), var(--pop); }
.frow h3::before {
  content: ""; flex: none; width: 14px; height: 14px; border-radius: 50%;
  background: var(--sheen), var(--c); box-shadow: var(--sheen-edge);
}

.fg-photo { --c: var(--pink); }
.fg-video { --c: var(--purple); --on-c: #fff; }
.fg-audio { --c: var(--green); }
.fg-gif { --c: var(--gold); }
.fg-pdf { --c: var(--sky); }
.fg-doc { --c: var(--accent); }
.fg-slides { --c: var(--red); }
.fg-sheet { --c: var(--green); }
.fg-sub { --c: var(--peach); }
.fg-zip { --c: var(--gold); }

.fstrip { display: flex; align-items: center; min-width: 0; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.chips li {
  font: 600 15px/1 var(--font-display); letter-spacing: .02em; color: var(--ink);
  /* what it reads: a pastel of the row's colour; what it makes (below): the full glossy colour */
  background: var(--sheen), color-mix(in srgb, var(--c) 38%, #fff); box-shadow: var(--sheen-edge);
  border-radius: 999px; padding: 7px 11px 6px;
}
.fout .chips li {
  color: var(--on-c, var(--ink)); background: var(--sheen), var(--c);
  box-shadow: var(--sheen-edge), 0 8px 16px -10px color-mix(in srgb, var(--c) 70%, #000);
}

/* the arrow between what it reads and what it makes */
/* A white glossy pill with a black arrow stands out from the coloured chips on both sides; a glow in
   the row's colour ties it to the row. */
.farrow {
  width: 64px; height: 40px; border-radius: 999px; display: grid; place-items: center; justify-self: center;
  color: var(--ink); background: var(--sheen), #fff;
  box-shadow: var(--sheen-edge), 0 0 0 3px color-mix(in srgb, var(--c) 55%, transparent), 0 8px 22px -6px color-mix(in srgb, var(--c) 75%, transparent);
}
.farrow svg { width: 26px; height: 26px; }

@media (max-width: 760px) {
  .frow { grid-template-columns: 52px minmax(0, 1fr); grid-template-areas: "name name" "in in" "arrow out"; gap: 10px; padding: 14px 14px; }
  .frow h3 { grid-area: name; }
  .frow .fstrip { grid-area: in; }
  .frow .fout { grid-area: out; }
  .frow .farrow { grid-area: arrow; align-self: start; }
  /* stacked: the arrow starts the line of formats it makes */
  .farrow { justify-self: center; width: 48px; height: 32px; }
  .farrow svg { width: 20px; height: 20px; }
  .chips { gap: 5px; }
  .chips li { padding: 6px 9px 5px; }
}
