/* Start.gg Integration — component styles matching the MCC design system.
   Tokens mirror the Claude Design "Modernist" system: Archivo, warm gray
   ground, #6C3783 brand-purple accent family, square corners, 2px ink rules. */

:root {
  --mcc-bg: #f3f2f2;
  --mcc-surface: #eae9e9;
  --mcc-ink: #201e1d;
  --mcc-accent: #6c3783;
  --mcc-accent-500: #80449a;
  --mcc-accent-600: #5a2d6d;
  --mcc-accent-700: #4b2559;
  --mcc-accent-100: #f2ebf6;
  --mcc-north: #4aa6dd;
  --mcc-muted: #605d5d;
  --mcc-soft: #444141;
  --mcc-divider: rgba(32, 30, 29, 0.4);
  --mcc-heading: "Archivo", system-ui, sans-serif;
}

/* ---------- team grid ---------- */

.mcc-teams {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(196px, 100%), 1fr));
  gap: 1px;
  margin-top: 2px;
}
.mcc-team-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  background: var(--mcc-bg);
  box-shadow: 0 0 0 1px var(--mcc-divider);
  padding: 18px 16px 16px;
  transition: background 0.15s ease;
}
.mcc-team-card:hover { background: var(--mcc-accent-100); }
.mcc-team-card__name {
  font-family: var(--mcc-heading);
  font-weight: 800;
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--mcc-ink);
}

/* ---------- logo plates ---------- */

.mcc-plate {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid var(--mcc-divider);
  flex: none;
}
.mcc-plate img { max-width: 78%; max-height: 78%; object-fit: contain; display: block; }
.mcc-plate--card { width: 100%; height: 96px; padding: 10px; }
.mcc-plate--sm { width: 26px; height: 26px; }
.mcc-plate--fx { width: 34px; height: 34px; }
/* Logo-less fallback keeps the design's white plate; the monogram is inked. */
.mcc-plate--initials { background: #ffffff; }
.mcc-plate--initials span {
  font-family: var(--mcc-heading);
  font-weight: 800;
  color: var(--mcc-ink);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.mcc-plate--card.mcc-plate--initials span { font-size: 26px; }
.mcc-plate--sm.mcc-plate--initials span { font-size: 9px; }
.mcc-plate--fx.mcc-plate--initials span { font-size: 11px; }

/* ---------- standings ---------- */

.mcc-standings__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px clamp(16px, 4vw, 48px);
  border-bottom: 2px solid var(--mcc-divider);
}
.mcc-tabs { display: flex; border: 1px solid var(--mcc-divider); }
.mcc-tab {
  appearance: none;
  background: transparent;
  color: var(--mcc-ink);
  border: 0;
  border-left: 1px solid var(--mcc-divider);
  padding: 10px 20px;
  cursor: pointer;
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 13px;
  letter-spacing: 0.04em;
  border-radius: 0;
}
.mcc-tab:first-child { border-left: 0; }
.mcc-tab.is-active { background: var(--mcc-accent-500); color: #ffffff; }
.mcc-tab:not(.is-active):hover { background: rgba(32, 30, 29, 0.07); }
.mcc-legend {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mcc-muted);
  font-family: "Archivo", system-ui, sans-serif;
}
.mcc-legend__swatch { width: 8px; height: 8px; background: var(--mcc-accent-500); }

.mcc-standings__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(560px, 100%), 1fr));
}
.mcc-standings__group {
  padding: clamp(24px, 4vw, 40px) clamp(16px, 4vw, 48px) clamp(30px, 5vw, 52px);
  border-right: 1px solid var(--mcc-divider);
  border-bottom: 2px solid var(--mcc-divider);
  min-width: 0;
}
.mcc-standings[data-conf="northern"] .mcc-standings__group[data-group="southern"],
.mcc-standings[data-conf="southern"] .mcc-standings__group[data-group="northern"] { display: none; }

.mcc-standings__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--mcc-ink);
}
.mcc-standings__head h2 {
  font-family: var(--mcc-heading);
  font-weight: 800;
  font-size: clamp(24px, 3.2vw, 34px);
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--mcc-ink);
}
.mcc-standings__tag {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mcc-muted);
  font-family: "Archivo", system-ui, sans-serif;
  white-space: nowrap;
}

.mcc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 4px 0 0;
  font-family: "Archivo", system-ui, sans-serif;
  color: var(--mcc-ink);
}
/* Neutralize the theme's generic table skin (Hello reset.css draws 1px borders
   on every cell, 15px padding, odd-row zebra and a gray hover — selectors up
   to (0,1,4), so ours must match or beat that). */
.mcc-table th, .mcc-table td { border: 0; background: transparent; }
.mcc-table tbody > tr:nth-child(odd) > td { background: transparent; }
.mcc-table tbody > tr:hover > td { background: rgba(32, 30, 29, 0.04); }
.mcc-table th {
  text-align: left;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(32, 30, 29, 0.6);
  padding: 8px;
  border-bottom: 2px solid var(--mcc-divider);
  font-weight: 700;
  white-space: nowrap;
}
.mcc-table td {
  padding: 8px;
  border-bottom: 1px solid var(--mcc-divider);
  vertical-align: middle;
  font-variant-numeric: tabular-nums;
}
.mcc-table th.mcc-r, .mcc-table td.mcc-r { text-align: right; white-space: nowrap; }
.mcc-table th.mcc-num, .mcc-table td.mcc-num { padding-left: 0; width: 34px; color: rgba(32,30,29,0.55); }
.mcc-table th:last-child, .mcc-table td:last-child { padding-right: 0; }
.mcc-table td.mcc-muted { color: var(--mcc-muted); }
.mcc-table td.mcc-strk { font-family: var(--mcc-heading); font-weight: 800; }
.mcc-table tr.mcc-playoff-line td { border-bottom: 2px solid var(--mcc-accent-500); }
.mcc-teamcell { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mcc-teamcell__name { font-weight: 600; }

.mcc-empty {
  font-family: "Archivo", system-ui, sans-serif;
  color: var(--mcc-muted);
  font-size: 14px;
  padding: 18px 0 0;
}

/* ---------- schedule ---------- */

.mcc-schedule__title {
  font-family: var(--mcc-heading);
  font-weight: 800;
  font-size: clamp(36px, 6vw, 76px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin: 0 0 8px;
  color: var(--mcc-ink);
}
.mcc-schedule__intro {
  max-width: 50ch;
  margin: 0 0 28px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--mcc-soft);
  font-family: "Archivo", system-ui, sans-serif;
}
.mcc-fixtures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 1px;
  border-top: 2px solid var(--mcc-ink);
  border-bottom: 2px solid var(--mcc-ink);
}
.mcc-fixture {
  background: var(--mcc-bg);
  box-shadow: 0 0 0 1px var(--mcc-divider);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-family: "Archivo", system-ui, sans-serif;
}
.mcc-fixture__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mcc-muted);
}
.mcc-fixture__conf {
  border: 1px solid var(--mcc-ink);
  color: var(--mcc-ink);
  padding: 3px 10px;
  letter-spacing: 0.1em;
  font-size: 11px;
}
.mcc-fixture__team { display: flex; align-items: center; gap: 12px; }
.mcc-fixture__team span:last-child {
  font-family: var(--mcc-heading);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--mcc-ink);
}
.mcc-fixture__time {
  padding-top: 12px;
  border-top: 1px solid var(--mcc-divider);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--mcc-soft);
}

