/* public/analyst.css  (Sept 21)
 * Cards for answers the analyst agent found with SQL. Same card language as
 * the rest of the answer page: big numbers, readable type, no small print. */

.card--anhead{
  display: flex; align-items: center; gap: 22px;
  padding: 20px 24px;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2, var(--surface)) 100%);
  border: 1px solid var(--accent-line);
  border-left: 6px solid var(--accent);
}
.anhead__value{
  margin: 0; font-family: var(--display-big); font-weight: 800;
  font-size: clamp(3rem, 8vw, 4.6rem); line-height: .95; color: var(--accent-hot);
  font-variant-numeric: tabular-nums; letter-spacing: -.01em; white-space: nowrap;
}
.anhead__text{ display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.anhead__label{ margin: 0; font-size: 1.3rem; font-weight: 700; color: var(--ink); line-height: 1.25; }
.anhead__who{ margin: 0; font-size: 1.05rem; font-weight: 600; color: var(--ink-soft); text-decoration: none; }
a.anhead__who:hover{ color: var(--accent); }

.card--antable .card__title, .card--anbars .card__title, .card--anline .card__title, .card--anwork .card__title{ font-size: 1.22rem; }
.card--anbars .card__subtitle, .card--anline .card__subtitle{
  display: inline-block; margin-top: 6px; padding: 3px 10px; border-radius: 999px;
  background: var(--accent-soft); color: var(--ink); font-size: .95rem; font-weight: 700;
}
.antable__scroll{ overflow-x: auto; margin-top: 10px; -webkit-overflow-scrolling: touch; }
.antable{ width: 100%; border-collapse: collapse; font-size: 1.02rem; }
.antable th{
  text-align: left; padding: 8px 10px; font-size: .95rem; font-weight: 700; color: var(--ink);
  border-bottom: 2px solid var(--line); white-space: nowrap;
}
.antable td{ padding: 9px 10px; border-top: 1px solid var(--line-soft); color: var(--ink-soft); white-space: nowrap; }
.antable tbody tr:first-child td{ border-top: 0; }
.antable tbody tr:hover td{ background: var(--accent-soft); color: var(--ink); }
.antable .is-num{ text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink); }
.antable__more{ margin: 8px 0 0; font-size: 1rem; color: var(--ink-soft); }

.card--anbars .bars{ gap: 10px; margin-top: 12px; }
.card--anbars .bars__row{ display: grid; grid-template-columns: minmax(90px, 32%) 1fr auto; align-items: center; gap: 12px; }
.card--anbars .bars__name{ font-size: 1.05rem; color: var(--ink); }
.card--anbars .bars__track{ height: 14px; }
.card--anbars .bars__value{ font-size: 1.1rem; font-weight: 700; color: var(--ink); min-width: 4ch; }

.card--anline .statarc__svg{ width: 100%; height: auto; display: block; }
.anline__year{ font-size: 19px; fill: var(--ink-soft); font-family: var(--mono); }
.card--anline .statarc__label{ font-size: 20px; font-weight: 800; }

.anmore{ margin-top: 12px; border-top: 1px solid var(--line-soft); padding-top: 10px; }
.anmore > summary{
  cursor: pointer; font-size: 1rem; font-weight: 700; color: var(--accent);
  list-style: none; display: inline-flex; align-items: center; gap: 6px;
}
.anmore > summary::-webkit-details-marker{ display: none; }
.anmore > summary::before{ content: "+"; font-weight: 800; }
.anmore[open] > summary::before{ content: "\2212"; }

.card--anwork{ border-style: dashed; }
.anwork__steps{ list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.anwork__step{ display: grid; grid-template-columns: 76px 1fr auto; gap: 10px; align-items: center; font-size: 1.02rem; }
.anwork__kind{
  justify-self: start; padding: 2px 9px; border-radius: 999px; font-size: .9rem; font-weight: 800;
  background: var(--surface-3, var(--line-soft)); color: var(--ink); text-transform: uppercase; letter-spacing: .04em;
}
.anwork__step--query .anwork__kind{ background: var(--accent-soft); color: var(--accent-hot); }
.anwork__step--player .anwork__kind, .anwork__step--team .anwork__kind{ background: var(--college-soft); color: var(--college); }
.anwork__step--live .anwork__kind{ background: var(--accent); color: var(--accent-ink); animation: anpulse 1.2s ease-in-out infinite; }
.anwork__text{ color: var(--ink); line-height: 1.3; }
.anwork__rows{ font-family: var(--mono); font-weight: 700; color: var(--ink-soft); font-size: .98rem; }
.anwork__qtitle{ margin: 12px 0 4px; font-weight: 700; color: var(--ink); font-size: 1rem; }
.anwork__sql{
  margin: 0; padding: 12px 14px; border-radius: var(--radius-sm); overflow-x: auto;
  background: var(--dugout); color: var(--ink-soft); font-size: .95rem; line-height: 1.45;
  white-space: pre-wrap; word-break: break-word; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
@keyframes anpulse{ 50%{ opacity: .55; } }
@media (prefers-reduced-motion: reduce){ .anwork__step--live .anwork__kind{ animation: none; } }

@media (max-width: 560px){
  .card--anhead{ flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px; }
  .card--anbars .bars__row{ grid-template-columns: 1fr auto; }
  .card--anbars .bars__track{ grid-column: 1 / -1; order: 3; }
  .anwork__step{ grid-template-columns: 1fr auto; }
  .anwork__kind{ grid-column: 1 / -1; }
}

/* Analyst answers read top to bottom: headline, points, then the cards two
   across, because a table squeezed into a side column is unreadable. */
.answer__body:has(.card--anwork, .card--anhead, .card--antable){ display: flex !important; flex-direction: column; gap: 18px; max-width: none !important; width: 100%; }
.answer__body:has(.card--anwork, .card--anhead, .card--antable) > *{ max-width: none !important; width: 100%; }
.answer__body:has(.card--anwork, .card--anhead, .card--antable) > .answer__prose{ order: -1; }
.answer__body:has(.card--anwork, .card--anhead, .card--antable) > .answer__cards{ display: grid !important; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 18px; align-items: start; }
.answer__subject .card--anhead{ max-width: none; }

.answer__body:has(.card--anwork, .card--anhead, .card--antable) .card--antable{ grid-column: 1 / -1; }

.answer__cards > .card--antable, .answer__cards > .card--anbars, .answer__cards > .card--anline, .answer__cards > .card--anwork{ min-width: 0; max-width: 100%; }
.card--antable{ overflow: hidden; }

/* What the search answers (Sept 21): three chips and one plain no. */
.fronthero__covers{ display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 4px; }
.fronthero__coversLabel{ font-size: .95rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); margin-right: 2px; }
.covchip{ display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: .98rem; font-weight: 700;
  background: var(--accent-soft); color: var(--ink); border: 1px solid var(--accent-line); }
.covchip::before{ content: "\2713"; color: var(--pos); font-weight: 900; }
.covchip--no{ background: transparent; border-style: dashed; border-color: var(--line); color: var(--ink-soft); text-decoration: none; }
.covchip--no::before{ content: "\2715"; color: var(--neg); }
a.covchip--no:hover{ color: var(--ink); border-color: var(--accent-line); }

/* A college question: the answer is a clear no with the pages that do cover it. */
.answer--notcovered .answer__miss, .answer--notcovered .answer__point{ font-size: 1.1rem; }
.answer--notcovered .answer__alts{ display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 10px; list-style: none; padding: 0; margin: 14px 0 0; }
.answer--notcovered .answer__alt{ width: 100%; text-align: left; padding: 14px 16px; border-radius: var(--radius); font-size: 1.05rem; font-weight: 700;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); cursor: pointer; }
.answer--notcovered .answer__alt:hover{ border-color: var(--accent-line); background: var(--accent-soft); }

/* Club logos in answers (Sept 21). */
.tlogo{ display: inline-block; object-fit: contain; flex: none; vertical-align: middle; }
.tlogo-name{ display: inline-flex; align-items: center; gap: 8px; }
/* Logos sit on a light disc, because half the clubs wear navy or black and
   vanish on the dark field green otherwise. */
.tlogo{ background: #f6f8f4; border-radius: 50%; padding: 3px; box-sizing: border-box; }
.card--anhead.has-logo > .tlogo{ width: 76px; height: 76px; padding: 10px; box-shadow: 0 2px 10px rgba(0,0,0,.35); }
.series__row.has-logo{ display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 12px; }
.series__row.has-logo > .tlogo{ width: 38px; height: 38px; padding: 5px; }
.tlogo-name .tlogo{ width: 26px; height: 26px; padding: 3px; }
.card-photo--logo{ display: grid; place-items: center; background: #f6f8f4 !important; }
/* Photo tiles pin their image to the top corner for headshots; a logo is
   centered in the tile instead, at about two thirds of its size. */
.card-photo--logo{ display: flex !important; align-items: center; justify-content: center; }
.card-photo--logo .tlogo{ position: static !important; inset: auto !important; transform: none !important;
  width: 76% !important; height: 76% !important; max-width: 100px; max-height: 100px; min-width: 0; min-height: 0; box-sizing: border-box; margin: auto; object-fit: contain; background: none; padding: 0; border-radius: 0; }
@media (max-width: 560px){ .card--anhead.has-logo > .tlogo{ width: 56px; height: 56px; } }
