/* ============ LANDING "LATEST RESULTS" ============ */
/* Dark like the event calendar above it — the champion card is a photo-led
   moment rather than another list row. One card spanning the grid's three
   rows, with up to three compact rows beside it (HomeController::
   LATEST_RESULTS_LIMIT is that 1 + 3). */

.latest-results-section {
  background: var(--color-hero-bg);
  padding: clamp(40px, 8vw, 70px) 0;
}

.latest-results-section h2 {
  color: var(--color-cream-bright);
}

.latest-results-section .section-eyebrow {
  color: var(--color-accent);
}

.latest-results-lead-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.latest-results-lead {
  margin: 0;
  max-width: 520px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--gray-65);
}

.latest-results-lead span {
  color: var(--gray-55);
}

.latest-results-viewall {
  font-weight: 700;
  font-size: 13px;
  color: var(--color-accent);
  white-space: nowrap;
}

/* Card | rows, side by side, stacking below ~720px. The rows live in their
   own flex column rather than as further grid items spanning rows beside
   the card: that way 1, 2 or 3 results lay out as sensibly as a full set of
   four, instead of leaving empty grid rows next to a full-height card. */
.latest-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 16px;
  align-items: start;
}

.latest-results-rows {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.latest-result-card {
  display: flex;
  flex-direction: column;
  background: oklch(0.2 0 0);
  border: 1px solid oklch(0.28 0 0);
  border-radius: 14px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}

.latest-result-card:hover {
  border-color: var(--color-accent);
}

.latest-result-card-photo {
  width: 100%;
  height: 260px;
  flex: 1 1 260px;
  object-fit: cover;
  border-radius: 0;
}

.latest-result-card-body {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.latest-result-card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.latest-result-kicker {
  font-family: var(--font-display), "Inter", sans-serif;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--color-accent);
}

.latest-result-card-meta {
  font-size: 12px;
  color: var(--gray-60);
}

.latest-result-card-name {
  font-weight: 900;
  font-size: 24px;
  color: var(--color-cream-bright);
}

.latest-result-card-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 13px;
  color: var(--gray-65);
}

.latest-result-card-value {
  font-weight: 700;
  color: var(--color-cream-bright);
}

.latest-result-card-cta {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-accent);
}

.latest-result-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: oklch(0.2 0 0);
  border: 1px solid oklch(0.28 0 0);
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
}

.latest-result-row:hover {
  border-color: var(--color-accent);
}

.latest-result-row-photo {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 8px;
}

.latest-result-row-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.latest-result-row-meta {
  font-size: 11px;
  color: var(--gray-60);
}

.latest-result-row-title {
  font-weight: 700;
  font-size: 14px;
  color: oklch(0.95 0.005 90);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.latest-result-row-winner {
  font-size: 12px;
  color: var(--gray-65);
}

.latest-result-row-value {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-cream-bright);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* Scope legend above the Gantt + the per-scope colours on each row's
   left-border and bar (local = accent, national = gold, international =
   blue — per AllIn Japan Website.dc.html). */
.event-calendar-scope-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.event-calendar-scope-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: oklch(0.82 0.005 90);
}

.event-calendar-scope-dot {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--color-accent);
}

.event-calendar-scope-dot--national {
  background: oklch(0.63 0.14 70);
}

.event-calendar-scope-dot--international {
  background: oklch(0.56 0.13 250);
}

.event-calendar-row--national .event-calendar-row-label {
  border-left-color: oklch(0.63 0.14 70);
}

.event-calendar-row--national .event-calendar-bar {
  background: oklch(0.63 0.14 70);
}

.event-calendar-row--international .event-calendar-row-label {
  border-left-color: oklch(0.56 0.13 250);
}

.event-calendar-row--international .event-calendar-bar {
  background: oklch(0.56 0.13 250);
}

@media (max-width: 560px) {
  .event-calendar-head,
  .event-calendar-row {
    grid-template-columns: 132px 1fr;
  }
}

