/* The complete official game ledger, /players/<id>/ Game log workspace.
 * Loaded only by the player dossier, so it speaks the dossier's --pf-* tokens
 * and inherits both themes from them. No gold, no italics. */

.full-game-log { min-height: 280px; }
.full-log-head { display: flex; align-items: center; justify-content: space-between; gap: 2rem; margin-bottom: 1.1rem; }
.full-log-head h2 { margin: 0; }
.full-log-head > div > p:last-child { max-width: 60ch; margin: .35rem 0 0; color: var(--pf-muted); font-size: .82rem; line-height: 1.55; }
.full-log-switch { display: flex; flex: 0 0 auto; gap: .3rem; padding: .3rem; border: 1px solid var(--pf-line); border-radius: .8rem; background: var(--pf-card-2); }
.full-log-switch button { min-height: 40px; padding: .55rem .9rem; border: 0; border-radius: .55rem; background: transparent; color: var(--pf-muted); font: 800 .68rem var(--pf-mono); text-transform: uppercase; cursor: pointer; }
.full-log-switch button span { margin-left: .3rem; opacity: .7; }
.full-log-switch button.is-active { background: var(--pf-ink); color: var(--pf-card); }
.full-log-switch button:disabled { opacity: .45; cursor: not-allowed; }

/* ---- season splits: the answer, above the tools -------------------------- */
.full-log-splits { margin: 0 0 1.3rem; padding: 1rem 1.1rem 1.1rem; border: 1px solid var(--pf-hair); border-radius: 14px; background: var(--pf-card-2); }
.full-log-splits h4 { margin: 0; color: var(--pf-ink); font: 600 1.04rem/1.3 var(--pf-serif); }
.full-log-splits-note { margin: .3rem 0 .9rem !important; color: var(--pf-muted) !important; font: 500 .65rem/1.5 var(--pf-mono) !important; }
.full-log-splitrow { display: grid; grid-template-columns: minmax(150px, .38fr) minmax(0, 1fr); gap: .8rem; align-items: stretch; }
.full-log-venue { display: grid; gap: .5rem; align-content: start; }
.full-log-split { padding: .7rem .85rem; border: 1px solid var(--pf-hair); border-radius: 11px; background: var(--pf-card); }
.full-log-split i { color: var(--pf-blue); font: 800 .55rem/1 var(--pf-sans); font-style: normal; letter-spacing: .14em; text-transform: uppercase; }
.full-log-split b { display: block; margin: .3rem 0 .2rem; color: var(--pf-ink); font: 600 1.5rem/1 var(--pf-serif); font-variant-numeric: tabular-nums; }
.full-log-split b small { color: var(--pf-muted); font: 500 .72rem/1 var(--pf-sans); }
.full-log-split span { color: var(--pf-muted); font: 500 .62rem/1.4 var(--pf-mono); }
.full-log-monthwrap { min-width: 0; display: flex; flex-direction: column; padding: .7rem .85rem; border: 1px solid var(--pf-hair); border-radius: 11px; background: var(--pf-card); }
.full-log-axis { color: var(--pf-muted); font: 800 .55rem/1.3 var(--pf-sans); letter-spacing: .12em; text-transform: uppercase; }
.full-log-months { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: .35rem; margin-top: .7rem; flex: 1 1 auto; min-height: 120px; }
.full-log-month {
  display: grid;
  grid-template-rows: 1fr auto auto auto;
  align-items: end;
  justify-items: center;
  gap: .22rem;
  min-width: 0;
  padding: .3rem .2rem .35rem;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  cursor: pointer;
}
.full-log-month:hover { border-color: var(--pf-blue-line); background: var(--pf-blue-soft); }
.full-log-month.is-active { border-color: var(--pf-blue); background: var(--pf-blue-soft); }
.full-log-month i { display: block; width: 100%; max-width: 34px; min-height: 6px; border-radius: 4px 4px 2px 2px; background: color-mix(in srgb, var(--pf-blue) 38%, transparent); align-self: end; }
.full-log-month.is-active i { background: var(--pf-blue); }
.full-log-month b { color: var(--pf-ink); font: 700 .64rem/1 var(--pf-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.full-log-month span { color: var(--pf-muted); font: 800 .55rem/1 var(--pf-sans); letter-spacing: .08em; text-transform: uppercase; }
.full-log-month small { color: var(--pf-muted); font: 500 .53rem/1 var(--pf-mono); }
.full-log-marks { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .5rem; margin-top: .8rem; padding-top: .8rem; border-top: 1px solid var(--pf-hair); }
.full-log-marks article { min-width: 0; }
.full-log-marks b { display: block; color: var(--pf-ink); font: 600 1.35rem/1 var(--pf-serif); font-variant-numeric: tabular-nums; }
.full-log-marks span { display: block; margin-top: .25rem; color: var(--pf-muted); font: 500 .63rem/1.45 var(--pf-mono); }

/* ---- filters ------------------------------------------------------------- */
.full-log-controls { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) auto; gap: .6rem; align-items: end; margin: 1rem 0 .6rem; }
.full-log-controls label { display: grid; gap: .4rem; min-width: 0; }
.full-log-controls label span { color: var(--pf-muted); font: 800 .58rem/1 var(--pf-sans); letter-spacing: .12em; text-transform: uppercase; }
.full-log-controls select { width: 100%; min-height: 44px; padding: 0 .7rem; border: 1px solid var(--pf-line); border-radius: .65rem; background: var(--pf-card); color: var(--pf-ink); font: 700 .78rem var(--pf-sans); }
.full-log-reset { min-height: 44px; padding: 0 1rem; border: 1px solid var(--pf-line); border-radius: .65rem; background: var(--pf-card-2); color: var(--pf-ink); font: 800 .7rem var(--pf-sans); cursor: pointer; white-space: nowrap; }
.full-log-reset:hover:not(:disabled) { border-color: var(--pf-blue); color: var(--pf-blue); }
.full-log-reset:disabled { opacity: .45; cursor: not-allowed; }
.full-log-status { margin: 0 0 .9rem !important; color: var(--pf-ink-2) !important; font: 500 .74rem/1.5 var(--pf-mono) !important; }

/* ---- filtered totals ----------------------------------------------------- */
.full-log-summary { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .55rem; margin: 0 0 1.1rem; }
.full-log-summary article { min-width: 0; padding: .85rem .9rem; overflow: hidden; }
.full-log-summary b { display: block; font-variant-numeric: tabular-nums; }
.full-log-summary span { display: block; margin-top: .4rem; overflow: hidden; font: 800 .55rem/1.2 var(--pf-sans); letter-spacing: .09em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }

/* ---- form trend ---------------------------------------------------------- */
.full-log-trendwrap { margin: 0 0 1rem; }
.full-log-trendwrap figcaption { color: var(--pf-muted); font: 500 .63rem/1.4 var(--pf-mono); }
.full-log-trend { display: flex; gap: 4px; align-items: end; height: 48px; margin-top: .5rem; padding: 0 .1rem; }
.full-log-trend i { flex: 1 1 0; min-width: 3px; height: 13px; border-radius: 3px 3px 1px 1px; background: var(--pf-track, var(--hi-data-track)); }
.full-log-trend i.level-1 { height: 21px; background: color-mix(in srgb, var(--pf-data-fill, var(--hi-data-fill)) 40%, var(--pf-track, var(--hi-data-track))); }
.full-log-trend i.level-2 { height: 33px; background: var(--pf-data-fill, var(--hi-data-fill)); }
.full-log-trend i.level-3 { height: 46px; background: var(--pf-blue); }

/* ---- the table ----------------------------------------------------------- */
.full-log-table { max-height: 660px; overflow: auto; }
.full-log-table thead { position: sticky; top: 0; z-index: 2; }
.full-log-table td:first-child small { display: block; color: var(--pf-muted); font-size: .58rem; }
.full-log-opponent { display: flex; align-items: center; gap: .5rem; white-space: nowrap; }
.full-log-crest { width: 25px; height: 25px; flex: 0 0 auto; }

/* ---- development trails (Insights workspace) ----------------------------- */
.development-trail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; margin: 1.2rem 0; }
.development-trail { position: relative; min-width: 0; overflow: hidden; padding: 1.2rem; border-radius: .9rem; }
.development-trail:before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; }
.development-trail header i { font: 800 .58rem var(--pf-sans); font-style: normal; letter-spacing: .12em; text-transform: uppercase; }
.development-trail h3 { margin: .45rem 0 .25rem; }
.development-trail header p { margin: 0; }
.development-trail svg { display: block; width: 100%; min-height: 170px; margin: .9rem 0 .2rem; overflow: visible; }
.development-trail svg polyline { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.development-trail svg text { font: 700 10px var(--pf-mono); }
.development-trail svg text.trail-value { font-size: 11px; }
.development-trail footer { display: flex; align-items: baseline; gap: .65rem; padding-top: .8rem; border-top: 1px solid var(--pf-hair); }
.development-trail footer b { font-variant-numeric: tabular-nums; }
.development-trail footer span { font-size: .69rem; }

@media (max-width: 980px) {
  .full-log-controls { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .full-log-reset { grid-column: span 3; }
}
@media (max-width: 860px) {
  .full-log-head { display: block; }
  .full-log-switch { margin-top: 1rem; width: max-content; }
  .full-log-summary { grid-template-columns: repeat(3, 1fr); }
  .full-log-splitrow { grid-template-columns: 1fr; }
  .full-log-venue { grid-template-columns: 1fr 1fr; }
  .development-trail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .full-log-controls { grid-template-columns: 1fr 1fr; }
  .full-log-reset { grid-column: span 2; }
  .full-log-summary { grid-template-columns: 1fr 1fr; }
  .full-log-table { max-height: 540px; }
  .full-log-months { gap: .2rem; min-height: 104px; }
  .full-log-month b { font-size: .55rem; }
  .full-log-month small { display: none; }
  .full-log-marks { grid-template-columns: 1fr; gap: .6rem; }
}
@media (prefers-reduced-motion: reduce) {
  .full-log-trend i, .full-log-month { transition: none; }
}

/* ============================================================
   ELEVATION (dark) — hi-tokens.css §1/§8
   The expanded log's table head is STICKY inside a scrolling well:
   rows pass beneath it, so it needs to be opaque and to cast a
   short attached shadow. That is --hi-lift, not --hi-ambient —
   it never leaves the page. Light theme unchanged.
   ============================================================ */
:root[data-theme="dark"] .full-log-table thead th {
  background: var(--hi-surface-2);
  box-shadow: 0 10px 22px -14px rgba(2, 8, 20, 0.9);
}
