/* Home hero for Five Tool Files. Depends on tokens.css. */

.wrap { width: min(var(--container), calc(100% - 48px)); margin: 0 auto; }

/* Nav */
.nav { height: 88px; display: flex; align-items: center; justify-content: space-between; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 500; color: var(--ink); line-height: 1; }
.wordmark svg { display: block; }
.nav-right { display: flex; align-items: center; gap: 32px; }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-size: 16px; line-height: 1.4; color: var(--ink); }

/* Hero stack */
.hero { text-align: center; padding-top: 72px; }
.hero h1 { color: var(--ink); white-space: nowrap; }
.hero .sub { max-width: 720px; margin: 24px auto 0; color: var(--graphite); }
.hero .actions { display: flex; justify-content: center; gap: 16px; margin-top: 40px; }
.hero .player-line { margin-top: 24px; display: inline-flex; align-items: center; gap: 10px; }
.hero .player-line .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--graphite); display: inline-block; }

/* Dashboard frame */
.frame { margin-top: 48px; margin-bottom: 64px; }
.frame-label { color: var(--graphite); margin-bottom: 12px; }
.frame-head { display: flex; align-items: center; justify-content: space-between; height: 24px; }
.frame-head .who { display: flex; align-items: center; gap: 16px; }
.frame-head .name { font-size: 16px; line-height: 1.4; font-weight: 500; color: var(--ink); }
.frame-head .pos { font-size: 16px; line-height: 1.4; color: var(--graphite); }
.frame-head .live { display: inline-flex; align-items: center; }
.frame-head .meta { display: flex; gap: 24px; }

.tabs { display: flex; align-items: center; gap: 4px; margin-top: 16px; list-style: none; padding: 0; }
.tabs li a { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px; border-radius: 12px; border: 1px solid transparent; font-size: 16px; line-height: 1.4; color: var(--graphite); }
.tabs li a svg { display: block; stroke: currentColor; }
.tabs li.on a { color: var(--ink); border-color: var(--signal); }

.range { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; height: 20px; }
.range .grp { display: inline-flex; align-items: center; gap: 8px; }
.range .grp svg { stroke: var(--graphite); display: block; }
.range .k { color: var(--graphite); }
.range .v { color: var(--ink); }

.board { margin-top: 20px; }

/* Stat tiles */
.tiles { display: flex; gap: 0; align-items: flex-start; list-style: none; margin: 0; padding: 0; }
.tile { width: 208px; padding: 12px 16px; border-radius: 12px; border: 1px solid transparent; }
.tile.on { border-color: var(--signal); background: var(--panel); }
.tile .label { font-size: 16px; line-height: 1.4; color: var(--graphite); }
.tile .value { margin-top: 4px; display: flex; align-items: baseline; gap: 6px; color: var(--ink); }
.tile .unit { font-size: 16px; line-height: 1.4; color: var(--graphite); }
.tile .delta { margin-top: 4px; height: 20px; display: flex; align-items: center; gap: 6px; font-size: 14px; line-height: 1.4; }
.tile .delta .d { display: inline-flex; align-items: center; gap: 3px; color: var(--signal); font-variant-numeric: tabular-nums; }
.tile .delta .d.down { color: var(--down); }
.tile .delta .d svg { display: block; }
.tile .delta .prior { color: var(--graphite); font-variant-numeric: tabular-nums; }
.tile .stamp { margin-top: 2px; }

/* Chart */
.chart { margin-top: 24px; }
.chart svg { display: block; width: 100%; height: auto; }
.chart .grid { stroke: var(--hairline-on-white); stroke-width: 1; }
.chart .axis { fill: var(--graphite); font-size: 14px; font-family: var(--font); }
.chart .cur { fill: url(#barfade); stroke: #9a9a9a; stroke-width: 1; }
.chart .cmp { fill: var(--panel); stroke: var(--signal); stroke-width: 1; }
.chart-key { display: flex; gap: 24px; margin-top: 12px; }
.chart-key span { display: inline-flex; align-items: center; gap: 8px; }
.chart-key i { width: 12px; height: 12px; display: inline-block; border: 1px solid #9a9a9a; background: var(--panel); }
.chart-key i.cmp { border-color: var(--signal); }

@media (max-width: 1240px) {
  .hero h1 { white-space: normal; }
  .tiles { flex-wrap: wrap; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .hero { padding-top: 64px; }
  .hero .actions { flex-direction: column; align-items: center; }
  .hero .player-line { flex-direction: column; gap: 4px; }
  .hero .player-line .sep { display: none; }
  .frame { margin-top: 40px; }
  .frame-head { height: auto; flex-direction: column; align-items: flex-start; gap: 8px; }
  .frame-head .who { flex-direction: column; align-items: flex-start; gap: 4px; }
  .chart { overflow-x: auto; }
  .chart svg { min-width: 560px; }
  .chart-key { flex-wrap: wrap; gap: 8px 24px; }
  .frame-head .meta { display: none; }
  .tabs { overflow-x: auto; }
  .range { height: auto; flex-direction: column; align-items: flex-start; gap: 8px; }
  .tile { width: 100%; }
}
