/* Farming pages. The shell, the components (entity header, stat tiles, tables, gallery, charts, needed for) and the pills are core's; this file adds
   only the beta line, three small lists and the fold for the five crop cards. Tokens from site.css :root (BRAND.md), nothing else. */

/* the beta line: a pill and one quiet sentence, under the lead */
.farm-beta { display: flex; align-items: center; gap: var(--sp-3); margin: 0 0 var(--sp-5); }
.farm-beta > p { margin: 0; max-width: none; font-size: 14px; line-height: 1.5; color: var(--text-2); }

.farm-list { margin: 0 0 var(--sp-3); padding-left: var(--sp-5); }
.farm-list > li { margin: var(--sp-1) 0; }

/* the prize bounties above a crop's Needed for: a rarity pill, the bounty, the step, what it pays */
.farm-prizes { list-style: none; margin: 0 0 var(--sp-5); padding: 0; }
.farm-prizes > li { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-1) var(--sp-3); margin: 0; max-width: none; padding: var(--sp-2) 0;
  border-top: 1px solid var(--border); font-size: 15px; }
.farm-prizes > li:last-child { border-bottom: 1px solid var(--border); }
.farm-step { color: var(--text-2); font-size: 14px; }

/* the variant gallery above a crop's odds: five rarity frames, Common to Legendary. Two across on a phone (a lone fifth spans both), three
   from 560 px, five from 900 px. Each frame takes its rarity token as --rc; the name wears it, as the crop card's name does in game. */
.fm-vcard--common { --rc: var(--rarity-common); }
.fm-vcard--uncommon { --rc: var(--rarity-uncommon); }
.fm-vcard--rare { --rc: var(--rarity-rare); }
.fm-vcard--radiant { --rc: var(--rarity-radiant); }
.fm-vcard--legendary { --rc: var(--rarity-legendary); }
.fm-vgal { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3); list-style: none; margin: var(--sp-4) 0 var(--sp-5); padding: 0; }
.fm-vgal > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (min-width: 560px) {
  .fm-vgal { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fm-vgal > li:last-child:nth-child(odd) { grid-column: auto; }
}
@media (min-width: 900px) { .fm-vgal { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.fm-vcard { display: flex; flex-direction: column; margin: 0; max-width: none; min-width: 0; overflow: hidden; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); }
.fm-vframe { display: grid; place-items: center; height: 120px; background: radial-gradient(120% 120% at 50% 0%, var(--surface-2), var(--surface));
  box-shadow: inset 0 0 0 2px var(--rc); }
.fm-vframe .ic { image-rendering: pixelated; }
.fm-vinit { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: var(--radius-sm); border: 2px solid var(--rc);
  background: color-mix(in srgb, var(--rc) 16%, var(--surface-2)); color: var(--rc); font: 800 32px/1 var(--display); }
.fm-vbody { display: flex; flex-direction: column; align-items: flex-start; flex: 1; gap: var(--sp-1); padding: var(--sp-3) var(--sp-3) var(--sp-4); min-width: 0; }
.fm-vname { margin: 0; font: 600 17px/1.25 var(--display); letter-spacing: .015em; color: var(--rc); overflow-wrap: anywhere; }
.fm-vchance { margin: auto 0 0; padding-top: var(--sp-1); max-width: 100%; font-size: 14px; line-height: 1.4; color: var(--text-2); font-variant-numeric: tabular-nums;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* the five crop cards: repeated per-row detail, closed until asked for */
.fm-fold { margin: var(--sp-4) 0 var(--sp-5); border-top: 1px solid var(--border); }
.fm-fold > summary { display: flex; align-items: center; min-height: 48px; cursor: pointer; color: var(--text-2); font-size: 15px; font-weight: 500; }
.fm-fold > summary { gap: var(--sp-3); list-style: none; }
.fm-fold > summary::-webkit-details-marker { display: none; }
.fm-fold > summary::before { content: ""; flex: none; width: 7px; height: 7px; border: solid var(--text-3); border-width: 0 1.75px 1.75px 0; transform: rotate(-45deg);
  transition: transform var(--t-mid) var(--ease); }
.fm-fold[open] > summary::before { transform: rotate(45deg); }
.fm-fold > summary:hover { color: var(--text); }
.fm-fold-b { padding-top: var(--sp-2); }

/* a person in a table: face then name */
.fm-who { display: inline-flex; align-items: center; gap: var(--sp-3); }
.fm-face, .fm-initial { flex: none; display: inline-grid; place-items: center; width: var(--s, 32px); height: var(--s, 32px); border-radius: var(--radius-sm); overflow: hidden;
  background: var(--surface-2); line-height: 0; }
.fm-face :is(img, .ic) { width: var(--s, 32px); height: var(--s, 32px); image-rendering: pixelated; border-radius: 0; background: none; box-shadow: none; }
.fm-initial { font: 800 16px/1 var(--display); color: var(--text-3); }

/* a compact numbered road: ring, name, one line of what to do, Opens: (the Start timeline's idea, small) */
.fm-road { list-style: none; margin: var(--sp-4) 0 var(--sp-5); padding: 0; }
.fm-road-s { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: var(--sp-4); margin: 0; max-width: none; padding-bottom: var(--sp-4); }
.fm-road-s:last-child { padding-bottom: 0; }
.fm-road-s:not(:last-child)::before { content: ""; position: absolute; left: 15px; top: 36px; bottom: 4px; width: 2px; background: var(--border-strong); }
.fm-road-n { position: relative; z-index: 1; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--trade-farming);
  background: var(--bg); font: 800 14px/1 var(--display); color: var(--text); font-variant-numeric: tabular-nums; }
.fm-road-b { min-width: 0; }
.fm-road-b > p { margin: 0; max-width: none; }
.fm-road-t { font: 600 17px/1.3 var(--sans); color: var(--text); padding-top: 4px; }
.fm-road-t a { color: var(--text); text-decoration: none; }
.fm-road-t a:hover { text-decoration: underline; text-underline-offset: .22em; text-decoration-thickness: 1px; }
.fm-road-g { margin-top: var(--sp-1) !important; font-size: 15px; line-height: 1.5; color: var(--text-2); }
.fm-road-o { margin-top: var(--sp-1) !important; font-size: 14px; color: var(--text-3); }
.fm-road-k { font: 600 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; margin-right: var(--sp-1); }
