/* TEAM MARQUEE CARD — ported from Reno–Tahoe's event cards
   (artifacts/rtsn/src/market/market.css, .event-card .team-marquee).
   Dark (men's): team-colour field, WHITE chevron, monogram box in the team
   colour. Light (women's): white field, team-colour chevron, WHITE monogram
   box, team-colour lettering. Craig, Sep 29. */

.sw-tm-card {
  --tm-ink: #fff;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid #d9dee5;
  background: #fff;
  color: #172033;
  container-type: inline-size;
  font-family: "Inter", system-ui, sans-serif;
}
.sw-tm-light { --tm-ink: var(--tm-primary); }

.sw-tm-marquee {
  display: grid;
  grid-template-rows: auto auto;
  color: var(--tm-ink);
  background: radial-gradient(ellipse at 80% 0%, var(--tm-primary) 0%, var(--tm-primary-dark) 75%);
  border-bottom: 1px solid #0003;
}
.sw-tm-light .sw-tm-marquee {
  background: linear-gradient(110deg, #f7f4f0, #fff 65%, #f7f4f0);
  border-bottom-color: #e6dfd6;
}

/* The chevron: a band pointing down at the name. */
.sw-tm-rail {
  position: relative;
  display: grid;
  place-items: center;
  height: 50px;
  padding-bottom: 10px;
  background: #fff;
  clip-path: polygon(0 0, 100% 0, 100% 62%, 50% 100%, 0 62%);
}
.sw-tm-light .sw-tm-rail { background: var(--tm-primary); }
.sw-tm-rail::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(65deg, transparent 0 13px, #0000000d 13px 14px, transparent 14px 27px),
    repeating-linear-gradient(115deg, transparent 0 13px, #0000000d 13px 14px, transparent 14px 27px);
}
.sw-tm-light .sw-tm-rail::before {
  background:
    repeating-linear-gradient(65deg, transparent 0 13px, #ffffff26 13px 14px, transparent 14px 27px),
    repeating-linear-gradient(115deg, transparent 0 13px, #ffffff26 13px 14px, transparent 14px 27px);
}
.sw-tm-rail span {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 32px;
  padding: 0 7px;
  border: 2px solid #fff;
  border-radius: 8px;
  background: var(--tm-primary);
  color: #fff;
  font-family: "Bebas Neue", sans-serif;
  font-size: 19px;
  letter-spacing: 0.02em;
  box-shadow: 0 3px 8px #0003;
}
.sw-tm-light .sw-tm-rail span {
  background: #fff;
  color: var(--tm-primary);
  border-color: #fff;
}

.sw-tm-word {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 6px 14px 12px;
  text-align: center;
}
.sw-tm-region,
.sw-tm-sport {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  font-weight: 800;
  line-height: 1.25;
  text-transform: uppercase;
  font-size: clamp(11px, 3.6cqi, 16px);
  letter-spacing: 0.2em;
}
.sw-tm-sport { font-size: clamp(10px, 3.4cqi, 15px); letter-spacing: 0.12em; }
.sw-tm-region::before, .sw-tm-region::after,
.sw-tm-sport::before, .sw-tm-sport::after {
  content: "";
  flex: 1;
  max-width: 40px;
  height: 1px;
  background: currentColor;
  opacity: 0.8;
}
.sw-tm-name {
  margin: 1px 0;
  font-family: "Bebas Neue", "Inter", sans-serif;
  font-size: clamp(38px, 15cqi, 72px);
  line-height: 1;
  /* Every name holds the full-size line, so a long name (GOLDEN KNIGHTS)
     sits in a marquee exactly as tall as RAIDERS (Craig, Oct 2). */
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(38px, 15cqi, 72px);
  letter-spacing: 0.025em;
  white-space: nowrap;
  text-transform: uppercase;
  text-shadow: 0 2px 1px #0002;
}
.sw-tm-light .sw-tm-name { text-shadow: none; }
.sw-tm-motto {
  margin-top: 8px;
  font-size: clamp(7px, 2cqi, 10px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.sw-tm-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: stretch;
  padding: 20px 18px 16px;
  text-align: center;
}
.sw-tm-date {
  margin-bottom: 12px;
  color: #526174;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.sw-tm-body h3 {
  margin: 0;
  color: #172033;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.sw-tm-body h3 > span { display: block; }
.sw-tm-connector { margin: 4px 0; font-size: 14px; font-weight: 500; }
.sw-tm-home {
  color: var(--tm-primary);
  font-size: 26px;
  font-weight: 800;
}
.sw-tm-time { margin-top: 10px; color: #526174; font-size: 14px; }
.sw-tm-venue { margin: 8px 0 0; color: #526174; font-size: 14px; }

.sw-tm-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
  font-size: 14px;
  font-weight: 700;
}
.sw-tm-actions a { color: var(--tm-primary); text-decoration: none; }
.sw-tm-actions a:hover { text-decoration: underline; }
.sw-tm-stretched::after { content: ""; position: absolute; inset: 0; }
.sw-tm-source { position: relative; z-index: 2; }
.sw-tm-card:focus-within { outline: 2px solid var(--tm-primary); outline-offset: 2px; }
/* The whole card is the target (Craig, Oct 7): pointer and a lift anywhere on
   it. A card with no destination has no stretched link and stays still. */
.sw-tm-card:has(.sw-tm-stretched) { cursor: pointer; transition: transform 0.12s ease, box-shadow 0.12s ease; }
.sw-tm-card:has(.sw-tm-stretched):hover { transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.45); }
@media (prefers-reduced-motion: reduce) { .sw-tm-card:has(.sw-tm-stretched):hover { transform: none; } }

/* Scores & Schedules as marquee cards: one per team, up to four across. Beats
   the template's five-across score-tile grid (mobile-home.css). */
.sw-mobile-home #scores .grid.sw-tm-scores,
#scores .grid.sw-tm-scores { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .sw-mobile-home #scores .grid.sw-tm-scores,
  #scores .grid.sw-tm-scores { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1280px) {
  .sw-mobile-home #scores .grid.sw-tm-scores,
  #scores .grid.sw-tm-scores { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ── Two team colours + white (Craig, Sep 29) ─────────────────────────────
   As the approved Reno–Tahoe cards (Knight Monsters, Wolf Pack): on men's
   (dark) cards the CHEVRON is the team's second colour over the primary
   field, with a line of it under the marquee; women's (light) cards keep the
   primary chevron and take the second colour as that line. White lettering
   and card. Nothing else is added — more colours distract. */
.sw-tm-two.sw-tm-dark .sw-tm-rail { background: var(--tm-secondary); }
/* The white line along the V that separates the chevron from the field —
   "that's what makes it pop" (Craig, Sep 29). */
.sw-tm-railwrap { position: relative; }
.sw-tm-two.sw-tm-dark .sw-tm-railwrap::after {
  content: "";
  position: absolute;
  inset: 0 0 -4px 0;
  background: var(--tm-line, #fff);
  clip-path: polygon(0 0, 100% 0, 100% 62%, 50% 100%, 0 62%);
}
.sw-tm-railwrap .sw-tm-rail { position: relative; z-index: 1; }
.sw-tm-two.sw-tm-dark .sw-tm-rail span { background: var(--tm-primary); border-color: #fff; }
.sw-tm-two .sw-tm-marquee { border-bottom: 3px solid var(--tm-secondary); }
.sw-tm-two.sw-tm-light .sw-tm-sport { color: var(--tm-sport-ink, var(--tm-secondary)); }

/* ── The scoreboard (Craig, Oct 2) ─────────────────────────────────────────
   A score card's white section shows the latest real result: both teams with
   their scores, the tracked team in bold and its colour, a W/L chip, and the
   next game as one small line. It never repeats What's Happening. */
.sw-tm-date .sw-tm-live { color: #d4183d; }
.sw-tm-outcome {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  background: #526174;
  vertical-align: 1px;
}
.sw-tm-outcome-W { background: #1f8a4c; }
.sw-tm-outcome-L { background: #b42318; }
.sw-tm-board { margin: 10px 0 0; display: grid; gap: 6px; }
.sw-tm-board > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  color: #526174;
  font-size: 16px;
}
.sw-tm-board dt { margin: 0; text-align: left; }
.sw-tm-board dd { margin: 0; font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; color: #172033; }
.sw-tm-board .is-team { color: var(--tm-primary); font-weight: 800; }
.sw-tm-board .is-team dd { color: var(--tm-primary); }
.sw-tm-next {
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid #e3e8ef;
  color: #526174;
  font-size: 13px;
  text-align: left;
}

/* One tap (TeamMarqueeCard oneTap): no visible links; the empty cover link's
   ::after spans the card, so the whole card is the target. */
.sw-tm-cover { display: block; height: 0; }

/* THE 16:9 PANEL MARQUEE (Craig, Nov 5 2026, Blueprint v1: every panel's
   marquee in every section is 16:9; team marquees are drawn by code, vertical,
   in that slot). `.sw-169` is on every market's Scores & Schedules row
   (Reno–Tahoe example passed by Craig, Nov 5 2026).
   The whole panel is the one tap, so its cue is a full-width button. */
.sw-169 .sw-tm-marquee { aspect-ratio: 16 / 9; grid-template-rows: auto 1fr; }
.sw-169 .sw-tm-word { justify-content: center; padding-bottom: 8%; }
.sw-169 .sw-tm-actions { padding-top: 16px; }
.sw-169 .sw-tm-actions a {
  display: flex; align-items: center; justify-content: center; width: 100%;
  min-height: 46px; border-radius: 8px; background: var(--tm-primary); color: #fff;
}
.sw-169 .sw-tm-light .sw-tm-actions a { background: var(--tm-primary); color: #fff; }
/* NO filter or transform on the tap link (Craig, Nov 18 2026: "these panels are
   not clickable, just the buttons"). A filter makes the link hold its own
   stretched layer, so on hover the tap shrank to the button. The card lifts
   and the button lightens with a colour mix instead. */
.sw-169 .sw-tm-actions a:hover { text-decoration: none; }
.sw-169 .sw-tm-card:hover .sw-tm-actions a { background: color-mix(in srgb, var(--tm-primary) 88%, #fff); }
/* "Home · vs" / "Away · at" on its own line; the opponent on one line. */
.sw-tm-where { display: block; color: #526174; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.sw-tm-oneline { white-space: nowrap; }
.sw-tm-next > span { display: block; }
.sw-tm-next-who { margin-top: 4px; font-weight: 700; color: #172033; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sw-tm-next-who .sw-tm-where { font-size: 10px; margin-bottom: 2px; }
/* Matchup first (Craig, Nov 21 2026, option A): two centred lines, bold
   matchup over a lighter date and time. A team name never breaks in half. */
.sw-tm-next.sw-tm-next-matchup { text-align: center; }
.sw-tm-next-matchup .sw-tm-next-line { color: #172033; font-size: 15px; font-weight: 700; line-height: 1.3; text-wrap: balance; }
.sw-tm-next-matchup .sw-tm-team { white-space: nowrap; }
.sw-tm-next-matchup .sw-tm-next-when { margin-top: 2px; color: #526174; font-size: 13px; }

/* SCORE CARDS = THE NATIONAL SCORE CARD SIZE (Craig, Nov 9 2026: "let's keep
   the same for scores and schedules, for Reno Tahoe, as the national platform").
   The national Scores & Schedules cards are 287 x 379 on a laptop: a flatter
   2:1 marquee and a short information panel. Every market's score card
   matches, so a fan knows the panel by its size. */
.sw-169 .sw-tm-score .sw-tm-marquee { aspect-ratio: 2 / 1; }
.sw-tm-score .sw-tm-rail { height: 42px; padding-bottom: 8px; }
.sw-tm-score .sw-tm-word { padding-top: 2px; padding-bottom: 6%; }
.sw-tm-score .sw-tm-body { padding: 14px 16px 16px; }
.sw-tm-score .sw-tm-date { margin-bottom: 2px; }
.sw-tm-score .sw-tm-board { margin-top: 0; gap: 0; }
.sw-tm-score .sw-tm-board dd { font-size: 21px; line-height: 1.25; }
.sw-tm-score .sw-tm-next { margin-top: 6px; padding-top: 6px; }
.sw-169 .sw-tm-score .sw-tm-actions { padding-top: 12px; }
.sw-169 .sw-tm-score .sw-tm-actions a { min-height: 44px; }
/* A team's own picture as the card top (marqueeImage): fills the same frame. */
.sw-tm-marquee.sw-tm-photo { display: block; overflow: hidden; background: #000; padding: 0; }
.sw-tm-marquee.sw-tm-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* The team's 16:9 card as the top (Craig, Nov 10 2026), shown whole. */
.sw-tm-topimg{aspect-ratio:16/9;overflow:hidden;background:#0c1524}
.sw-tm-topimg img{display:block;width:100%;height:100%;object-fit:cover}
/* Craig's team cards: top-anchored, so the badge and name are never clipped. */
.sw-tm-marquee.sw-tm-photo.sw-tm-card-art img { object-position: center top; }

/* WHAT'S HAPPENING, FIVE LINES (Craig, Nov 21 2026). */
.sw-tm-visitor { color: #526174; font-size: 18px; font-weight: 500; }
.sw-tm-when { margin-top: 10px; color: #3f4f63; font-size: 15px; font-weight: 700; }
.sw-tm-actions-one { justify-content: center; }
.sw-tm-actions .sw-tm-tickets {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center; width: 100%;
  min-height: 46px; border-radius: 8px; background: var(--tm-primary); color: #fff; font-size: 15px; font-weight: 700;
}
.sw-tm-light .sw-tm-actions .sw-tm-tickets { background: var(--tm-primary); color: #fff; }
.sw-tm-actions .sw-tm-tickets:hover { text-decoration: none; background: color-mix(in srgb, var(--tm-primary) 88%, #fff); }

/* THE TEAM ACCENT (Craig, Nov 22 2026): the team's full name and the primary
   button in its accent, white lettering. Never the opponent (.sw-tm-visitor,
   a score card's next opponent), the date, venue, or win/loss markers. */
.sw-tm-card[data-brand]:not(.sw-tm-score) .sw-tm-home { color: var(--tm-brand); }
.sw-tm-card[data-brand] .sw-tm-board .is-team dt,
.sw-tm-card[data-brand] .sw-tm-us { color: var(--tm-brand); }
.sw-tm-card[data-brand] .sw-tm-actions .sw-tm-tickets,
.sw-169 .sw-tm-card[data-brand] .sw-tm-actions a:not(.sw-tm-cover) { background: var(--tm-brand); color: #fff; }
.sw-tm-card[data-brand] .sw-tm-actions .sw-tm-tickets:hover { background: color-mix(in srgb, var(--tm-brand) 88%, #fff); }
