/* Matchday Hotels V5: source-transparent matchday operations */
.matchday-intelligence {
  --mdi-ink: #0b0f17;
  --mdi-red: #d71920;
  position: relative;
  z-index: 5;
  width: min(1180px, calc(100% - 32px));
  margin: 24px auto;
  border: 1px solid rgba(11, 15, 23, .13);
  border-top: 4px solid var(--club-primary, var(--mdi-red));
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 18px 45px rgba(6, 13, 24, .1);
}
.mdi-context-away-fixture { border-top-color: var(--mdi-red); }
.mdi-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  padding: 22px 24px 18px;
}
.mdi-heading h2 { margin: 4px 0 8px; font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1.02; color: var(--mdi-ink); }
.mdi-heading p { max-width: 760px; margin: 0; color: #596274; line-height: 1.55; }
.mdi-overall-status { display: grid; gap: 5px; min-width: 150px; text-align: right; }
.mdi-overall-status strong { justify-self: end; padding: 7px 11px; border-radius: 999px; background: #11151d; color: #fff; text-transform: uppercase; font-size: .72rem; letter-spacing: .07em; }
.mdi-overall-status span { color: #687182; font-size: .75rem; }
.mdi-check-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid #e3e6eb;
  background: #f6f7f9;
}
.mdi-check-summary > div { min-width: 0; padding: 14px 18px; border-right: 1px solid #e3e6eb; }
.mdi-check-summary > div:last-child { border-right: 0; }
.mdi-check-summary span { display: block; margin-bottom: 5px; color: #737c8b; font-size: .63rem; font-weight: 900; letter-spacing: .08em; }
.mdi-check-summary strong { display: block; color: #1c222d; font-size: .82rem; line-height: 1.35; }
.mdi-source-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 18px 24px; }
.mdi-source-card { padding: 16px; border: 1px solid #e0e4ea; border-radius: 13px; background: #fafbfc; }
.mdi-source-card header { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.mdi-source-card header span { color: #111722; font-weight: 900; }
.mdi-source-card header strong { padding: 4px 7px; border-radius: 999px; background: #e9edf2; color: #394150; font-size: .62rem; text-transform: uppercase; letter-spacing: .05em; }
.mdi-source-checked header strong { background: #dff5e6; color: #176634; }
.mdi-source-partial header strong { background: #fff2cf; color: #7a5200; }
.mdi-source-unavailable header strong { background: #fde5e6; color: #8b1720; }
.mdi-source-card p { margin: 8px 0 5px; color: #586171; font-size: .83rem; line-height: 1.45; }
.mdi-source-card > small { color: #7b8492; font-size: .71rem; }
.mdi-source-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; color: #505a69; font-size: .72rem; font-weight: 750; }
.mdi-source-names { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.mdi-source-names span { padding: 4px 7px; border-radius: 999px; background: #eef1f5; color: #5e6776; font-size: .65rem; }
.mdi-alerts { padding: 4px 24px 22px; }
.mdi-alerts-heading { display: flex; justify-content: space-between; gap: 16px; align-items: end; margin: 0 0 12px; }
.mdi-alerts-heading h3 { margin: 0; color: #151a22; font-size: 1.15rem; }
.mdi-alerts-heading p { margin: 0; color: #6b7482; font-size: .78rem; }
.mdi-alert-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mdi-alert { padding: 15px; border: 1px solid #e0e4ea; border-left: 4px solid #576171; border-radius: 12px; background: #fff; }
.mdi-alert-breaking { border-left-color: #d71920; background: #fff8f8; }
.mdi-alert-important { border-left-color: #d07800; background: #fffcf4; }
.mdi-alert-topline { display: flex; justify-content: space-between; gap: 10px; color: #7a4609; font-size: .65rem; font-weight: 900; letter-spacing: .07em; }
.mdi-alert h3 { margin: 8px 0 6px; color: #151a23; font-size: 1rem; line-height: 1.3; }
.mdi-alert p { margin: 0; color: #5a6372; font-size: .84rem; line-height: 1.5; }
.mdi-alert footer { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 12px; color: #687182; font-size: .73rem; }
.mdi-alert footer a { margin-left: auto; color: #174987; font-weight: 850; text-decoration: none; }
.mdi-alert footer a:hover, .mdi-alert footer a:focus-visible { text-decoration: underline; }
.mdi-no-alerts { margin: 2px 24px 22px; padding: 16px 18px; border-left: 4px solid #27864b; border-radius: 10px; background: #edf8f1; }
.mdi-no-alerts strong { color: #165b32; }
.mdi-no-alerts p { margin: 5px 0 0; color: #496456; line-height: 1.45; }
.mdi-rule { display: flex; justify-content: space-between; gap: 18px; padding: 13px 24px 16px; border-top: 1px solid #e3e6eb; color: #646d7b; background: #fafbfc; font-size: .76rem; line-height: 1.45; }
.mdi-rule strong { color: #292f39; }
.mdi-error { color: #8b1720; }
@media (max-width: 820px) {
  .matchday-intelligence { width: calc(100% - 20px); }
  .mdi-heading { display: block; padding: 18px 16px; }
  .mdi-overall-status { margin-top: 14px; text-align: left; }
  .mdi-overall-status strong { justify-self: start; }
  .mdi-check-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mdi-check-summary > div:nth-child(2) { border-right: 0; }
  .mdi-check-summary > div:nth-child(-n+2) { border-bottom: 1px solid #e3e6eb; }
  .mdi-source-grid, .mdi-alert-grid { grid-template-columns: 1fr; }
  .mdi-source-grid, .mdi-alerts { padding-inline: 16px; }
  .mdi-source-meta, .mdi-alerts-heading, .mdi-rule { display: block; }
  .mdi-source-meta span, .mdi-alerts-heading p, .mdi-rule span { display: block; margin-top: 5px; }
}
