/* Fishing pages: the shell, tokens, components.css and charts.css do the work. This file only adds the rarity words, the bait and notes lists, the
   pond block (a game card beside its notes) and the fish index's filters. Tokens from BRAND.md only. */

/* the rarity word in running text and in a facts row */
.r-common { color: var(--rarity-common); }
.r-uncommon { color: var(--rarity-uncommon); }
.r-rare { color: var(--rarity-rare); }
.r-radiant { color: var(--rarity-radiant); }
.r-legendary { color: var(--rarity-legendary); }

/* a short list of notes (bait that helps, a pond's notes) */
.fish-list { margin: var(--sp-2) 0 var(--sp-4); padding-left: 1.1em; }
.fish-list li + li { margin-top: var(--sp-2); }
.fish-list + p { margin-top: var(--sp-4); }

/* a pond: its still beside a sentence, then its game card with the notes under it. The card keeps the full column to measure itself against
   (card.js draws it at 2 GUI pixels and steps down only when the box it sits in is narrower than the card). */
.pond-hero { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--sp-5); align-items: center; margin: var(--sp-3) 0 var(--sp-2); }
.pond-hero-b > .c-eh-lead { margin-bottom: var(--sp-3); font-size: 18px; }
@media (max-width: 640px) { .pond-hero { grid-template-columns: minmax(0, 1fr); gap: var(--sp-3); } }
.pond { margin: var(--sp-4) 0 var(--sp-5); }
.pond > .gc { width: 100%; margin: 0 0 var(--sp-3); }
.pond .fish-list { margin: 0; }
.pond .gc, .pond [data-gc] { scroll-margin-top: calc(var(--header) + var(--sp-3)); }

/* the fish index: filter chips (shown with the script) and the count */
.fish-filters { margin: 0 0 var(--sp-4); }
.fish-filters .chips { margin: var(--sp-2) 0; }
.fish-filters .note { margin: var(--sp-2) 0 0; }
.fish-filters .c-empty { margin: var(--sp-3) 0 0; }
.c-gallery > .c-gcard[hidden] { display: none; }

/* the pond sections on /wiki/ponds: open on a wide screen (the summary reads as the heading), folded on a phone with the pond's name and a count in
   each fold header; fishing.js closes them on a phone and keeps them open on a wide screen */
.pond-fold { margin-top: 72px; }
.pond-sum { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--sp-1) var(--sp-4); cursor: default; list-style: none; }
.pond-sum::-webkit-details-marker { display: none; }
.pond-sum h2 { margin: 0; }
.pond-count { color: var(--text-3); font-size: 14px; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .pond-fold { margin-top: 0; border-bottom: 1px solid var(--border); }
  .pond-sum { position: relative; min-height: 56px; align-items: center; padding: var(--sp-3) 32px var(--sp-3) 0; cursor: pointer; }
  .pond-sum::after { content: ""; position: absolute; right: 4px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border: solid var(--text-3); border-width: 0 2px 2px 0;
    transform: rotate(45deg); transition: transform var(--t-fast) var(--ease); }
  .pond-fold[open] > .pond-sum::after { margin-top: -2px; transform: rotate(-135deg); }
  .pond-sum h2 { font-size: 22px; }
  .pond-sum:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; }
  .pond-body { padding-bottom: var(--sp-4); }
}
@media (prefers-reduced-motion: reduce) { .pond-sum::after { transition: none; } }
.fish-fgroup { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 0 var(--sp-3); align-items: baseline; }
.fish-fgroup > .c-eyebrow { margin: 0; }
.fish-filters .fish-fgroup .chips { margin: 6px 0; }
@media (max-width: 599px) { .fish-fgroup { grid-template-columns: minmax(0, 1fr); } .fish-fgroup > .c-eyebrow { margin-top: var(--sp-2); } }
