/* Homepage-derived content patterns. Shell styles remain in global-navigation.css. */
.mf-page-template {
  --mf-page-background: #030504;
  --mf-page-panel: #0e1210;
  --mf-page-card: #171d19;
  --mf-page-line: var(--mf-section-border, #414c46);
  --mf-page-control-line: #697466;
  --mf-page-ink: #eff1f2;
  --mf-page-muted: #b5bec0;
  --mf-page-green: #4cdd62;
  --mf-page-gold: #eacb49;
  --mf-page-red: #e43739;
  --mf-page-radius: 7px;
  --mf-page-gap: 12px;
  --mf-page-width: 1370px;
  --mf-global-ticker-height: 48px;
  margin: 0;
  background: var(--mf-page-background);
}

/* The shared shell supplies the links. Render the homepage shortcut rail. */
.mf-page-template > .mf-option4-quicklinks {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  max-width: var(--mf-page-width);
  margin-inline: auto;
  padding: 8px 16px;
  overflow-x: auto;
  border-bottom: 1px solid var(--mf-page-line);
  background: #10231a;
  scrollbar-width: thin;
}

.mf-page-template > .mf-option4-quicklinks > :is(a, span) {
  flex: none;
  white-space: nowrap;
}

.mf-page-template > .mf-option4-quicklinks > a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding-inline: 10px;
  border: 1px solid var(--mf-page-line);
  border-radius: 4px;
  color: var(--mf-page-ink);
  font-size: .75rem;
  font-weight: 800;
}

.mf-page-template > .mf-option4-quicklinks > span {
  color: var(--mf-page-gold);
  font-size: .7rem;
  font-weight: 850;
  letter-spacing: .08em;
}

/* Keep the shortcut rail as the sole matchday navigation in this template. */
html body.mf-page-template > .mf-score-ribbon.mf-score-ribbon {
  display: none !important;
}

/* Older chrome adds a suffix with CSS. Current navigation renders it in HTML. */
html body.mf-page-template .site-brand__name:has(.site-brand__suffix)::after {
  content: none !important;
}

.mf-page-template :where(.mf-template-main, .mf-template-fallback) {
  color: var(--mf-page-ink);
  color-scheme: dark;
  font: 400 16px/1.5 "Segoe UI", Arial, sans-serif;
}

.mf-page-template .mf-template-main {
  --mf-page-title-size: clamp(28px, 3.4vw, 44px);
  --mf-section-title-size: clamp(18px, 1.4vw, 22px);
  --mf-shell-section-space: clamp(12px, 1.4vw, 20px);
  box-sizing: border-box;
  display: grid;
  gap: var(--mf-page-gap);
  width: 100%;
  max-width: var(--mf-page-width);
  margin-inline: auto;
  padding: clamp(8px, 1vw, 14px);
}

.mf-page-template .mf-template-skip {
  position: fixed;
  z-index: 10000;
  top: 8px;
  left: 8px;
  transform: translateY(calc(-100% - 16px));
  background: var(--mf-page-gold);
  color: var(--mf-page-background);
  padding: 10px 14px;
}

.mf-page-template .mf-template-skip:focus {
  transform: none;
}

.mf-page-template .mf-template-fallback {
  display: flex;
  flex-wrap: wrap;
  gap: var(--mf-page-gap);
  padding: 12px 14px;
}

.mf-page-template .mf-template-fallback a {
  color: var(--mf-page-green);
}

/* Keep the template's border color when the shared shell styles heroes and articles. */
.mf-page-template .mf-template-main :is(.mf-template-hero, .mf-template-panel, .mf-template-card) {
  border: 1px solid;
  border-color: var(--mf-page-line) !important;
}

.mf-page-template :is(.mf-template-hero, .mf-template-panel) {
  position: relative;
  min-width: 0;
  border-radius: var(--mf-page-radius);
  background: var(--mf-page-panel);
  padding: clamp(12px, 1.4vw, 20px);
}

.mf-page-template .mf-template-hero {
  isolation: isolate;
  padding: clamp(16px, 2.1vw, 30px);
}

.mf-page-template .mf-template-hero__image,
.mf-page-template .mf-template-hero::before,
.mf-page-template .mf-template-hero::after {
  position: absolute;
  pointer-events: none;
}

.mf-page-template .mf-template-hero__image {
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  object-position: center 42%;
}

.mf-page-template .mf-template-hero::before {
  content: "";
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(90deg, #030504f7 0%, #030504e8 47%, #03050464 100%);
}

.mf-page-template .mf-template-hero::after {
  content: "";
  inset: auto 0 0;
  height: 3px;
  border-radius: 0 0 var(--mf-page-radius) var(--mf-page-radius);
  background: linear-gradient(90deg, var(--mf-page-green), var(--mf-page-gold), var(--mf-page-red));
}

.mf-page-template .mf-template-hero__content {
  max-width: 62ch;
}

.mf-page-template .mf-template-main :is(h1, h2, h3, p) {
  margin: 0;
  overflow-wrap: anywhere;
}

.mf-page-template .mf-template-main :is(h1, h2, h3) {
  color: var(--mf-page-ink);
  font-family: inherit;
  font-weight: 900;
  text-transform: none;
  letter-spacing: -.02em;
}

.mf-page-template .mf-template-main h1 {
  font-size: var(--mf-page-title-size);
  line-height: 1.06;
}

.mf-page-template .mf-template-main h1 span {
  color: var(--mf-page-green);
}

.mf-page-template .mf-template-main h2 {
  font-size: var(--mf-section-title-size);
  line-height: 1.2;
}

.mf-page-template .mf-template-main h3 {
  font-size: 16px;
  line-height: 1.25;
}

.mf-page-template .mf-template-main .mf-template-kicker {
  margin-bottom: 6px;
  color: var(--mf-page-gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.mf-page-template .mf-template-main .mf-template-lede {
  margin-top: 8px;
  color: var(--mf-page-muted);
}

.mf-page-template :is(.mf-template-panel__heading, .mf-template-actions) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.mf-page-template .mf-template-panel__heading {
  justify-content: space-between;
  margin-bottom: var(--mf-page-gap);
}

.mf-page-template .mf-template-hero .mf-template-actions {
  margin-top: 12px;
}

.mf-page-template .mf-template-button {
  display: inline-flex;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  max-width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--mf-page-control-line);
  border-radius: 4px;
  background: var(--mf-page-panel);
  color: var(--mf-page-ink);
  font-size: 14px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.mf-page-template .mf-template-button--primary {
  border-color: var(--mf-page-green);
  background: var(--mf-page-green);
  color: var(--mf-page-background);
}

.mf-page-template .mf-template-button--gold {
  border-color: var(--mf-page-gold);
  background: var(--mf-page-gold);
  color: var(--mf-page-background);
}

.mf-page-template .mf-template-button:hover {
  border-color: var(--mf-page-gold);
  text-decoration: underline;
}

.mf-page-template .mf-template-link {
  display: inline-flex;
  align-items: center;
  align-self: start;
  gap: 4px;
  min-height: 44px;
  color: var(--mf-page-green);
  font-size: 14px;
  font-weight: 800;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.mf-page-template .mf-template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 256px), 1fr));
  gap: var(--mf-page-gap);
}

.mf-page-template .mf-template-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 12px;
  border-radius: 5px;
  background: var(--mf-page-card);
}

.mf-page-template .mf-template-card p {
  color: var(--mf-page-muted);
}

.mf-page-template .mf-template-card .mf-template-link {
  margin-top: auto;
}

.mf-page-template .mf-template-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--mf-page-gap);
}

.mf-page-template :is(.mf-template-main, .mf-template-fallback) :focus-visible {
  outline: 2px solid var(--mf-page-gold);
  outline-offset: 3px;
}

@media (max-width: 40rem) {
  .mf-page-template .mf-template-split {
    grid-template-columns: minmax(0, 1fr);
  }

  .mf-page-template .mf-template-hero__image {
    filter: brightness(.25);
  }
}
