/* Depends on: tokens.css -- linked as a separate <link> by every template that
   uses this file (see nav.css's header for why not @import).

   Telemetry session cards: the calendar's card look (calendar.css .cal-row) --
   a date tile, a bold title, readable facts, a status tint, a lift on hover --
   for every list of sessions (Mi Telemetría, the profile's Telemetría card, the
   tienda). Tone classes (.tone-accent / .tone-gold / .tone-violet) tint the tile
   and the pill: public = green, paid = gold, private = violet. */
.sc-list { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.sc-card {
  display: flex; align-items: center; gap: 20px; padding: 20px 24px; min-height: 116px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
a.sc-card:hover { border-color: var(--line-hover); transform: translateY(-2px); box-shadow: 0 10px 26px -14px rgba(0, 0, 0, 0.6); }
/* The session type (Práctica / Calificación / Carrera) and the round (Fecha 1, 2, 3...) in a title, as
   tinted pills so they read apart from the event name. */
.sc-type, .sc-round {
  display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: 0.88em; font-weight: 800; line-height: 1.5;
  background: color-mix(in srgb, currentColor 15%, transparent);
}
.sc-round { color: var(--violet, #a78bfa); }
.sc-type-practice { color: var(--accent); }
.sc-type-qualy { color: var(--gold); }
.sc-type-race { color: var(--critical); }
.sc-title { color: var(--accent); }

.sc-tile {
  flex-shrink: 0; width: 68px; min-height: 80px; padding: 8px 6px; border-radius: 14px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  background: var(--surface-2); border: 1px solid var(--line); text-align: center;
}
.sc-month { font-size: 11.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-soft); }
.sc-day { font-size: 30px; font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.tone-accent .sc-tile { border-color: var(--accent-line); background: var(--accent-soft); }
.tone-accent .sc-month { color: var(--accent); }
.tone-gold .sc-tile { border-color: rgba(255, 201, 74, 0.4); background: var(--gold-soft); }
.tone-gold .sc-month { color: var(--gold); }
.tone-violet .sc-tile { border-color: rgba(139, 123, 255, 0.4); background: var(--violet-soft); }
.tone-violet .sc-month { color: var(--violet); }

.sc-body { flex: 1; min-width: 0; }
/* Whose session it is, above the title -- the team page lists several drivers. */
.sc-kicker { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: 3px; }
.sc-title { font-size: 17.5px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.3; color: var(--text-primary); }
.sc-meta { margin-top: 6px; font-size: 14px; line-height: 1.5; color: var(--text-soft); }
.sc-pills { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.sc-pill {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 800; letter-spacing: 0.03em; text-transform: uppercase;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text-soft);
}
.sc-pill svg { width: 12px; height: 12px; flex-shrink: 0; }
.sc-pill.sc-pill-price { font-size: 16px; font-weight: 800; padding: 5px 13px; color: var(--gold); border-color: rgba(255, 201, 74, 0.35); }
.sc-pill.tone-accent { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); }
.sc-pill.tone-gold { background: var(--gold-soft); border-color: rgba(255, 201, 74, 0.35); color: var(--gold); }
.sc-pill.tone-violet { background: var(--violet-soft); border-color: rgba(139, 123, 255, 0.4); color: var(--violet); }

/* The event's own image, the one the calendar draws. */
.sc-logo { flex-shrink: 0; width: 132px; height: 84px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #ffffff; }
.sc-logo img { width: 100%; height: 100%; object-fit: contain; padding: 7px; display: block; background: #ffffff; }
.sc-price { flex-shrink: 0; white-space: nowrap; font-size: 15px; font-weight: 800; color: var(--accent); }

@media (max-width: 600px) {
  .sc-card { flex-wrap: wrap; padding: 18px 18px; }
  .sc-body { flex-basis: calc(100% - 90px); }
  .sc-logo { width: 100%; height: 96px; order: 3; }
  .sc-price { order: 4; }
  /* The telemetry session card (core/_telemetry_session_card.html) is an
     .sc-link inside a row with its Eliminar button, not an .sc-card: it
     wraps the same way, and the row puts the button under it. */
  .event-link.sc-link { flex-wrap: wrap; gap: 14px !important; flex: 1 1 100% !important; }
  .event-link.sc-link .sc-body { flex-basis: calc(100% - 90px); }
  .event-link.sc-link .sc-logo { width: 100%; height: 72px; order: 3; }
  .event-row:has(> .event-link.sc-link) { flex-wrap: wrap; }
}
.sc-pill.sc-pill-video { background: var(--accent); border-color: var(--accent); color: #04140a; font-weight: 800; }
.sc-pill.sc-pill-video svg { width: 14px; height: 14px; }
.sc-pill.sc-pill-novideo { background: transparent; color: var(--text-tertiary); border-style: dashed; }
.sc-card.has-video { border-left: 3px solid var(--accent); }
