:root {
  --bg: #07111f;
  --bg-soft: #0b1728;
  --panel: #101d2e;
  --panel-2: #142338;
  --line: rgba(255, 255, 255, 0.10);
  --text: #f7f9fc;
  --muted: #98a7b8;
  --lime: #c9ff37;
  --lime-soft: rgba(201, 255, 55, 0.12);
  --danger: #ff7a7a;
  --radius: 22px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 80% 0%, rgba(201,255,55,.08), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.shell {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 17, 31, 0.88);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--lime);
  color: #07111f;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.brand-copy {
  display: grid;
  line-height: 1.05;
}

.brand-copy strong {
  font-size: 1.02rem;
}

.brand-copy small {
  margin-top: 5px;
  color: var(--muted);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .14em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: .92rem;
}

.main-nav a:hover {
  color: var(--lime);
}

.hero {
  padding: 92px 0 82px;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(310px, .65fr);
  gap: 70px;
  align-items: center;
}

.eyebrow {
  color: var(--lime);
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .18em;
}

.hero h1 {
  max-width: 800px;
  margin: 18px 0 22px;
  font-size: clamp(3.1rem, 7vw, 6.7rem);
  line-height: .93;
  letter-spacing: -.065em;
}

.hero h1 span {
  color: var(--lime);
}

.hero-text {
  max-width: 720px;
  margin: 0;
  color: #bac5d2;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 0 18px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 800;
}

.button.primary {
  background: var(--lime);
  color: #07111f;
}

.button.primary:hover {
  filter: brightness(.94);
}

.button.secondary {
  border-color: var(--line);
  background: transparent;
  color: var(--text);
}

.responsible-note {
  margin-top: 20px;
  color: #728296;
  font-size: .82rem;
}

.hero-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background:
    linear-gradient(145deg, rgba(201,255,55,.06), transparent 40%),
    var(--panel);
  box-shadow: var(--shadow);
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--lime);
  font-size: .8rem;
  font-weight: 800;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 6px rgba(201,255,55,.08);
}

.hero-stat {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.hero-stat span {
  color: var(--muted);
}

.hero-stat strong {
  text-align: right;
  font-size: .9rem;
}

.matches-section,
.method-section,
.about-section {
  padding: 76px 0;
}

.section-heading {
  margin-bottom: 30px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}

.section-heading.simple {
  align-items: start;
}

.section-heading h2,
.about-section h2 {
  margin: 7px 0 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: -.045em;
}

.controls {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
}

.controls label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.controls input {
  width: 118px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: none;
  padding: 0 12px;
  background: var(--panel);
  color: var(--text);
}

.controls input:focus {
  border-color: var(--lime);
}

.status {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: .92rem;
}

.status.error {
  color: var(--danger);
}

.match-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.match-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 16px 45px rgba(0,0,0,.12);
}

.match-top {
  padding: 22px;
  border-bottom: 1px solid var(--line);
}

.kickoff {
  color: var(--muted);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.teams {
  margin-top: 10px;
  display: grid;
  gap: 4px;
  font-size: 1.35rem;
  font-weight: 850;
  letter-spacing: -.025em;
}

.versus {
  color: var(--lime);
  font-size: .72rem;
  letter-spacing: .16em;
}

.prediction-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
}

.metric {
  min-width: 0;
  padding: 18px;
  border-right: 1px solid var(--line);
}

.metric:last-child {
  border-right: 0;
}

.metric span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.metric strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 1.05rem;
}

.metric .lime {
  color: var(--lime);
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.detail {
  padding: 20px 22px;
}

.detail + .detail {
  border-left: 1px solid var(--line);
}

.detail h4 {
  margin: 0 0 13px;
  font-size: .78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 9px;
}

.form-row span {
  min-width: 0;
  color: #c6d0dc;
  overflow-wrap: anywhere;
}

.form-row strong {
  color: var(--lime);
}

.news-note {
  margin: 0;
  color: #c6d0dc;
  font-size: .88rem;
}

.news-meta {
  margin-top: 10px;
  color: var(--muted);
  font-size: .76rem;
}

.method-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.method-grid article {
  min-height: 230px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
}

.method-grid article > span {
  color: var(--lime);
  font-size: .76rem;
  font-weight: 900;
}

.method-grid h3 {
  margin: 28px 0 10px;
  font-size: 1.05rem;
}

.method-grid p {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.about-grid p {
  margin: 0;
  color: #b5c1ce;
  font-size: 1.05rem;
}

.site-footer {
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  color: var(--muted);
  font-size: .82rem;
}

.footer-inner div {
  display: grid;
}

.footer-inner strong {
  color: var(--text);
}

.footer-inner p {
  margin: 0;
  text-align: right;
}

.empty {
  grid-column: 1 / -1;
  padding: 50px 20px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    max-width: 620px;
  }

  .method-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 28px, 1180px);
  }

  .main-nav {
    display: none;
  }

  .hero {
    padding: 64px 0;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .match-grid {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-inner {
    flex-direction: column;
  }

  .footer-inner p {
    text-align: left;
  }
}

@media (max-width: 520px) {
  .hero h1 {
    font-size: 3rem;
  }

  .prediction-strip {
    grid-template-columns: 1fr;
  }

  .metric {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metric:last-child {
    border-bottom: 0;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .detail + .detail {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .method-grid {
    grid-template-columns: 1fr;
  }

  .controls {
    width: 100%;
  }

  .controls label {
    flex: 1;
  }

  .controls input {
    width: 100%;
  }
}

/* MDRN SPORTSQ PUBLIC UI STAGE 2 */

.public-feed-controls {
  display: flex;
  align-items: end;
  gap: 1rem;
  margin: 1rem 0 1.25rem;
}

.public-feed-controls .field {
  display: grid;
  gap: 0.4rem;
  min-width: min(100%, 18rem);
}

.public-feed-controls label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.public-feed-controls select,
.competition-field select {
  width: 100%;
  min-height: 2.8rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.75rem;
  font: inherit;
}

.field-hint {
  font-size: 0.76rem;
  opacity: 0.68;
}

.feed-status {
  min-height: 1.4rem;
  margin: 0.25rem 0 1rem;
  font-size: 0.88rem;
  opacity: 0.8;
}

.feed-message {
  width: 100%;
  padding: 1.4rem;
  border-radius: 1rem;
  text-align: left;
}

.feed-message strong {
  display: block;
  margin-bottom: 0.4rem;
}

.feed-message p,
.feed-message span {
  margin: 0;
  opacity: 0.75;
  line-height: 1.55;
}

.upcoming-match-card {
  display: grid;
  gap: 1rem;
}

.match-card__topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.competition-pill,
.upcoming-pill {
  display: inline-flex;
  align-items: center;
  min-height: 1.7rem;
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.match-kickoff {
  font-size: 0.88rem;
  opacity: 0.72;
}

.match-teams {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin: 0;
}

.match-vs {
  font-size: 0.72rem;
  opacity: 0.55;
  text-transform: uppercase;
}

.intelligence-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.intelligence-item {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
  padding: 0.85rem;
  border-radius: 0.85rem;
}

.intelligence-item--primary {
  grid-column: span 2;
}

.intelligence-label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  opacity: 0.65;
}

.intelligence-item strong,
.intelligence-item small {
  overflow-wrap: anywhere;
}

.intelligence-item small {
  opacity: 0.68;
}

@media (max-width: 720px) {
  .public-feed-controls {
    display: grid;
    align-items: stretch;
  }

  .intelligence-grid {
    grid-template-columns: 1fr;
  }

  .intelligence-item--primary {
    grid-column: auto;
  }

  .match-teams {
    align-items: flex-start;
  }
}
/* MDRN SPORTSQ PUBLIC UI STAGE 3 MATCH INTELLIGENCE DETAIL */

.stage3-match-card {
  overflow: hidden;
}

.stage3-upcoming-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border: 1px solid rgba(199,255,0,.35);
  border-radius: 999px;
  background: rgba(199,255,0,.08);
  color: var(--lime, #c7ff00);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .1em;
}

.stage3-team-row {
  margin-top: 18px;
}

.stage3-headline-grid {
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.stage3-headline-stat {
  padding: 15px;
  border: 1px solid
    rgba(255,255,255,.08);
  border-radius: 14px;
  background: rgba(255,255,255,.025);
}

.stage3-headline-stat > span {
  display: block;
  margin-bottom: 7px;
  color: rgba(255,255,255,.55);
  font-size: .69rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.stage3-headline-stat strong {
  display: block;
  color: #fff;
  font-size: 1.18rem;
}

.stage3-headline-stat small {
  display: block;
  margin-top: 5px;
  color: var(--lime, #c7ff00);
  font-weight: 750;
}

.stage3-intelligence-detail {
  margin-top: 20px;
  border-top: 1px solid
    rgba(255,255,255,.08);
}

.stage3-intelligence-detail > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding-top: 18px;
  color: var(--lime, #c7ff00);
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.stage3-intelligence-detail
> summary::-webkit-details-marker {
  display: none;
}



.stage3-intelligence-grid {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.stage3-intelligence-panel {
  padding: 17px;
  border: 1px solid
    rgba(255,255,255,.08);
  border-radius: 15px;
  background: rgba(255,255,255,.025);
}

.stage3-label {
  display: block;
  margin-bottom: 8px;
  color: rgba(255,255,255,.52);
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .1em;
}

.stage3-main-value {
  display: block;
  color: #fff;
  font-size: 1.4rem;
}

.stage3-intelligence-panel p {
  margin: 8px 0 0;
  color: rgba(255,255,255,.62);
  font-size: .84rem;
  line-height: 1.55;
}

.stage3-confidence-band {
  display: inline-block;
  margin-top: 6px;
  color: var(--lime, #c7ff00);
  font-weight: 800;
}

.stage3-form-panel,
.stage3-news-panel {
  grid-column: 1 / -1;
}

.stage3-form-grid {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.stage3-form-grid > div {
  padding: 14px;
  border-radius: 12px;
  background: rgba(0,0,0,.16);
}

.stage3-form-grid span,
.stage3-form-grid small {
  display: block;
}

.stage3-form-grid span {
  color: rgba(255,255,255,.65);
  font-size: .82rem;
}

.stage3-form-grid strong {
  display: block;
  margin: 5px 0;
  color: #fff;
  font-size: 1.5rem;
}

.stage3-form-grid small {
  color: var(--lime, #c7ff00);
  font-weight: 750;
}

.stage3-news-title {
  display: block;
  color: #fff;
  font-size: 1rem;
}

.stage3-news-status {
  display: inline-block;
  margin-top: 6px;
  color: rgba(255,255,255,.46);
  font-size: .68rem;
}

@media (max-width: 720px) {

  .stage3-headline-grid,
  .stage3-intelligence-grid,
  .stage3-form-grid {
    grid-template-columns: 1fr;
  }

  .stage3-form-panel,
  .stage3-news-panel {
    grid-column: auto;
  }
}

/* BEGIN MDRN SPORTSQ STAGE 3 CANONICAL MATCH LAYOUT */

/*
 * CANONICAL STAGE 3 ARCHITECTURE
 *
 * matches-section:
 *     full viewport-width background only
 *
 * matches-inner:
 *     single centered editorial rail
 *
 * match-grid / cards:
 *     contained entirely inside matches-inner
 */


/* ==========================================================
   MATCH CENTRE BACKGROUND
   ========================================================== */

.matches-section {
  box-sizing: border-box !important;

  width: 100% !important;
  max-width: none !important;

  margin-left: 0 !important;
  margin-right: 0 !important;

  /*
   * Preserve approved responsive vertical editorial rhythm.
   * Horizontal padding stays ZERO because horizontal
   * containment belongs exclusively to matches-inner.
   */
  padding-top: clamp(32px, 6vw, 72px);
  padding-bottom: clamp(32px, 6vw, 72px);

  padding-left: 0 !important;
  padding-right: 0 !important;

  transform: none !important;

  overflow-x: clip;

  scroll-margin-top: 92px;
}


/* ==========================================================
   SINGLE AUTHORITATIVE EDITORIAL RAIL
   ========================================================== */

.matches-section > .matches-inner {
  box-sizing: border-box !important;

  width: min(1180px, calc(100% - 36px)) !important;
  max-width: 1180px !important;

  min-width: 0 !important;

  margin-left: auto !important;
  margin-right: auto !important;

  padding-left: 0 !important;
  padding-right: 0 !important;

  transform: none !important;
}


/* ==========================================================
   RAIL CONTAINMENT
   ========================================================== */

.matches-inner > * {
  box-sizing: border-box;

  min-width: 0;

  max-width: 100%;
}


.matches-inner .match-grid {
  box-sizing: border-box !important;

  width: 100% !important;
  max-width: 100% !important;

  min-width: 0 !important;

  margin-left: 0 !important;
  margin-right: 0 !important;

  padding-left: 0 !important;
  padding-right: 0 !important;

  transform: none !important;
}


.matches-inner .match-card,
.matches-inner .stage3-match-card {
  box-sizing: border-box !important;

  width: 100% !important;
  max-width: 100% !important;

  min-width: 0 !important;

  margin-left: 0 !important;
  margin-right: 0 !important;

  transform: none !important;
}


/* ==========================================================
   MATCH HEADER
   ========================================================== */

.matches-inner .stage3-match-card {
  position: relative;

  overflow: hidden;

  padding-top: 24px;
}


.matches-inner .stage3-match-card .match-card__topline {
  position: static !important;

  right: auto !important;
  left: auto !important;

  transform: none !important;

  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 16px;

  width: 100%;

  margin: 0 0 18px;
}


.matches-inner .stage3-match-card .stage3-upcoming-pill {
  position: static !important;

  transform: none !important;
}


.matches-inner .stage3-match-card .match-kickoff {
  display: block;

  margin: 0;

  text-align: right;
}


.matches-inner .stage3-match-card .stage3-team-row {
  margin-top: 0;
}


/* ==========================================================
   THREE PRIMARY INTELLIGENCE CARDS
   ========================================================== */

.matches-inner .stage3-headline-grid {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 14px;

  width: 100%;
  max-width: 100%;

  min-width: 0;

  margin-top: 22px;
}


.matches-inner .stage3-headline-stat {
  box-sizing: border-box;

  display: flex;

  flex-direction: column;

  align-items: flex-start;

  min-width: 0;

  min-height: 118px;

  padding: 20px 20px 17px;
}


.matches-inner .stage3-headline-stat .stage3-label {
  display: block;

  min-height: 16px;

  margin: 0 0 13px;
}


.matches-inner .stage3-headline-stat strong {
  display: block;

  min-height: 25px;

  margin: 0;

  line-height: 1.2;
}


/*
 * Real data band.
 *
 * Confidence already renders HIGH/MEDIUM/etc as a real
 * <small> element. Preserve it. Do not replace it with
 * generated presentation text.
 */

.matches-inner .stage3-headline-stat > small {
  display: block;

  margin-top: auto;

  padding-top: 8px;

  color: var(--lime, #c7ff2e);

  font-size: 0.70rem;

  font-weight: 800;

  line-height: 1.2;

  letter-spacing: 0.035em;

  text-transform: uppercase;
}


/*
 * Presentation-only descriptors for Predict and ScoreCall.
 */

.matches-inner .stage3-headline-stat:nth-child(1)::after {
  content: "1X2 OUTLOOK";

  display: block;

  margin-top: auto;

  padding-top: 8px;

  color: var(--lime, #c7ff2e);

  font-size: 0.70rem;

  font-weight: 800;

  line-height: 1.2;

  letter-spacing: 0.035em;

  text-transform: uppercase;
}


.matches-inner .stage3-headline-stat:nth-child(2)::after {
  content: "PROJECTED SCORE";

  display: block;

  margin-top: auto;

  padding-top: 8px;

  color: var(--lime, #c7ff2e);

  font-size: 0.70rem;

  font-weight: 800;

  line-height: 1.2;

  letter-spacing: 0.035em;

  text-transform: uppercase;
}


.matches-inner .stage3-headline-stat:nth-child(3)::after {
  content: none;
}


/* ==========================================================
   DEEPER INTELLIGENCE
   ========================================================== */

.matches-inner .stage3-deeper-detail,
.matches-inner .stage3-deeper-grid,
.matches-inner .stage3-form-panel,
.matches-inner .stage3-news-panel,
.matches-inner .stage3-form-grid {
  box-sizing: border-box;

  width: 100% !important;
  max-width: 100% !important;

  min-width: 0;
}


.matches-inner .stage3-deeper-detail {
  margin-top: 22px;
}


.matches-inner .stage3-deeper-grid {
  display: grid;

  grid-template-columns: 1fr;

  gap: 14px;

  margin-top: 18px;
}


.matches-inner .stage3-form-grid {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 12px;
}


/* ==========================================================
   HEADER / NAV RESPONSIVE BEHAVIOUR
   ========================================================== */

@media (max-width: 1100px) {

  .site-header .header-inner {
    gap: 18px;
  }


  .main-nav {
    gap: 14px;
  }
}


/* ==========================================================
   DESKTOP RAIL
   ========================================================== */

@media (min-width: 1217px) {

  .matches-section > .matches-inner {
    width: 1180px !important;
  }
}


/* ==========================================================
   FLUID RAIL
   ========================================================== */

@media (max-width: 1216px) {

  .matches-section > .matches-inner {
    width: calc(100% - 36px) !important;
    max-width: calc(100% - 36px) !important;
  }
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 720px) {

  .matches-section {
    scroll-margin-top: 78px;
  }


  .matches-section > .matches-inner {
    width: calc(100% - 28px) !important;
    max-width: calc(100% - 28px) !important;
  }


  .matches-inner .stage3-match-card {
    padding-top: 20px;
  }


  .matches-inner .stage3-match-card .match-card__topline {
    flex-direction: column;

    align-items: flex-start;

    gap: 8px;

    margin-bottom: 16px;
  }


  .matches-inner .stage3-match-card .match-kickoff {
    text-align: left;
  }


  .matches-inner .stage3-headline-grid,
  .matches-inner .stage3-form-grid {
    grid-template-columns: 1fr;
  }


  .matches-inner .stage3-headline-stat {
    min-height: 104px;
  }
}


/* ==========================================================
   SMALL MOBILE
   ========================================================== */

@media (max-width: 420px) {

  .matches-section > .matches-inner {
    width: calc(100% - 24px) !important;
    max-width: calc(100% - 24px) !important;
  }
}

/* END MDRN SPORTSQ STAGE 3 CANONICAL MATCH LAYOUT */

/* BEGIN MDRN SPORTSQ STAGE 3 FINAL RAIL ALIGNMENT */

/*
 * Final visual alignment.
 *
 * The section background may span the viewport.
 * All visible Match Centre content remains inside
 * the same centered editorial rail.
 */


/* The inner shell must use the complete editorial rail. */

.matches-section > .matches-inner > .shell {
  box-sizing: border-box;

  width: 100% !important;
  max-width: 100% !important;

  min-width: 0;

  margin-left: 0 !important;
  margin-right: 0 !important;

  padding-left: 0 !important;
  padding-right: 0 !important;
}


/* Feed/publication status belongs to Match Centre. */

.matches-inner #feed-status {
  box-sizing: border-box;

  width: 100%;
  max-width: 100%;

  margin: 18px 0 12px;

  padding: 0;

  color: rgba(255,255,255,.66);

  font-size: .82rem;

  line-height: 1.45;
}


/*
 * One publication-approved fixture:
 * use the complete rail rather than the historical
 * two-column match-grid layout.
 */

.matches-inner #match-grid {
  grid-template-columns: minmax(0, 1fr) !important;

  width: 100% !important;
  max-width: 100% !important;
}


/* The fixture itself fills its grid track. */

.matches-inner #match-grid > .stage3-match-card,
.matches-inner #match-grid > .match-card {
  width: 100% !important;
  max-width: 100% !important;

  min-width: 0;

  justify-self: stretch;
}


/*
 * Preserve the three primary intelligence columns
 * inside the full-width fixture card.
 */

.matches-inner .stage3-headline-grid {
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
}


/* Mobile remains single-column. */

@media (max-width: 720px) {

  .matches-inner .stage3-headline-grid {
    grid-template-columns: 1fr;
  }

  .matches-inner #feed-status {
    margin-top: 14px;
  }
}

/* END MDRN SPORTSQ STAGE 3 FINAL RAIL ALIGNMENT */


/* STAGE3 DISCLOSURE NATIVE MARKER LOCK */
.stage3-match-card summary {
  list-style: none;
}

.stage3-match-card summary::-webkit-details-marker {
  display: none;
}

.stage3-match-card summary::marker {
  content: "";
}


/* STAGE3 FINAL DISCLOSURE STATE */
.stage3-disclosure-icon::before {
  content: "+";
}

.stage3-match-card details[open] .stage3-disclosure-icon::before {
  content: "-";
}
