/* The site's selectors (core/pickers.js, Dec 1): chips, segmented controls, the team search and the filter bar.
   One slice of the page's stylesheet. The files load in the order of their numbers (the <link> list in
   web/site_template.html) and several rules rely on that order at equal specificity: never reorder or merge
   them without running tests/layout_check.js. */
.pk { min-width: 0; }
.pk-sum { display: none; }
.pk-b { display: grid; gap: 8px; padding: 10px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; min-width: 0; }
.pk-row { display: grid; grid-template-columns: 74px minmax(0, 1fr); align-items: center; gap: 10px; min-width: 0; }
.pk-l { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.pk-chips { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.pk-chip { flex: none; font: 600 0.85rem/1.2 var(--f-body); padding: 6px 12px; min-height: 32px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: transparent; color: var(--ink); cursor: pointer; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pk-chip:hover { border-color: var(--ink); }
.pk-chip[aria-pressed="true"] { background: var(--sel); color: var(--surface); border-color: var(--sel); }
.pk-chip.pk-all { margin-right: 6px; }
/* a pill shown greyed that cannot be picked (Dec 3): the 2020 season, an FCS game */
.pk-chip.pk-ghost, .pk-chip.pk-ghost:hover { color: var(--muted); border-style: dashed; border-color: var(--line-strong); background: transparent; opacity: 0.6; cursor: not-allowed; }
/* pills with a small line under each (a week): one row that scrolls inside itself when it is too long */
.pk-chips.pk-subs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; gap: 4px; padding-bottom: 2px; }
.pk-cw { flex: none; display: inline-flex; flex-direction: column; align-items: center; gap: 2px; }
.pk-cw > small { font-size: 0.7rem; line-height: 1; color: var(--muted); font-variant-numeric: tabular-nums; min-height: 0.7rem; }
.pk-subs .pk-chip { font-size: 0.75rem; padding: 3px 7px; min-height: 24px; }
.pk-subs .pk-chip.pk-all { margin-right: 4px; }
.pk-seg { display: inline-flex; flex-wrap: wrap; justify-self: start; gap: 2px; padding: 3px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); max-width: 100%; }
.pk-seg button { font: 600 0.85rem/1.2 var(--f-body); padding: 6px 14px; min-height: 30px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; white-space: nowrap; }
.pk-seg button:hover { color: var(--ink); }
.pk-seg button[aria-pressed="true"] { background: var(--sel); color: var(--surface); }
.pk-chip:focus-visible, .pk-seg button:focus-visible, .pk-trig:focus-visible, .pk-sum:focus-visible, .pk-x:focus-visible { outline: 2px solid var(--score); outline-offset: 2px; }

/* rows set straight into a section (no panel): 4th down's drives, Polls vs NAPPR+, the adjustments' seasons */
.pk-inline { display: grid; gap: 8px; margin-bottom: 12px; min-width: 0; }
.pk-inline .pk-b { background: transparent; border: 0; padding: 0; }

/* the search behind a button: teams with logos, by conference, the recent ones first */
.pk-cb { position: relative; justify-self: start; min-width: 0; max-width: 100%; }
.pk-trig { display: inline-flex; align-items: center; gap: 8px; min-width: 220px; max-width: 100%; box-sizing: border-box; font: 600 0.9rem/1.2 var(--f-body); padding: 6px 12px; min-height: 34px;
  border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); cursor: pointer; text-align: left; }
.pk-trig > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-trig .pk-caret { margin-left: auto; width: 7px; height: 7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-2px) rotate(45deg); flex: none; }
.pk-cb.open .pk-trig { border-color: var(--score); }
.pk-trig .logo img, .pk-o .logo img { display: block; }
.pk-pop { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; width: 340px; max-width: calc(100vw - 32px); max-height: 440px; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px var(--shadow); overflow: hidden; }
.pk-pop[hidden] { display: none; }
.pk-pop-h { display: flex; gap: 6px; align-items: center; padding: 8px; border-bottom: 1px solid var(--line); }
.pk-q { flex: 1; min-width: 0; font: inherit; font-size: 1rem; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink); }
.pk-q::-webkit-search-cancel-button { display: none; }
.pk-q:focus { outline: 2px solid var(--score); outline-offset: 0; }
.pk-x { flex: none; width: 34px; height: 34px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.pk-x:hover { background: var(--bg); color: var(--ink); }
.pk-lb { list-style: none; margin: 0; padding: 4px 6px 8px; overflow-y: auto; overscroll-behavior: contain; }
.pk-gh { position: sticky; top: 0; z-index: 1; background: var(--surface); padding: 8px 8px 4px; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.pk-o { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; cursor: pointer; font-size: 0.92rem; }
.pk-o.act { background: var(--score-tint); }
.pk-o[aria-selected="true"] { font-weight: 700; }
.pk-o.pk-lead { font-weight: 600; }
.pk-o .pk-tick { margin-left: auto; width: 5px; height: 10px; border-right: 2px solid var(--score); border-bottom: 2px solid var(--score); transform: translateY(-2px) rotate(45deg); }
.pk-none { padding: 12px 8px; color: var(--muted); font-size: 0.9rem; }

/* a phone: the rows fold behind a summary line; chips scroll sideways; the search is a sheet from the bottom */
@media (max-width: 640px) {
  .pk-sum { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; box-sizing: border-box; padding: 10px 14px; min-height: 44px;
    font: 600 0.92rem/1.25 var(--f-body); color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px; cursor: pointer; text-align: left; }
  .pk-sum-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .pk-sum-a { flex: none; color: var(--score); font-weight: 700; }
  .pk:not(.open) .pk-b { display: none; }
  .pk.open .pk-b { margin-top: 8px; }
  .pk-b { padding: 10px 12px; }
  .pk-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .pk-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; margin-right: -12px; padding-right: 12px; }
  .pk-chips::-webkit-scrollbar { display: none; }
  .pk-chip { min-height: 36px; }
  .pk-subs .pk-chip { min-height: 30px; }
  .pk-seg button { min-height: 34px; padding: 6px 12px; }
  .pk-cb, .pk-trig { width: 100%; }
  .pk-pop { position: fixed; top: auto; left: 0; right: 0; bottom: 0; width: auto; max-width: none; max-height: 78vh; border-radius: 16px 16px 0 0;
    box-shadow: 0 0 0 100vmax rgba(10, 14, 18, 0.45); }
  .pk-o { padding: 10px 8px; }
}
