/* ============================================================
   THE RED & WHITE WIZARDS — Match report pages (2026 onwards)
   Generated by Report Desk on every publish. Builds on style.css.
   To change the design, edit REPORTS_CSS in report_desk.py.
   ============================================================ */

.report-layout { grid-template-columns: minmax(0, 1fr) 300px; }
@media (max-width: 760px) { .report-layout { grid-template-columns: minmax(0, 1fr); } }

/* ---- Scoreboard: the Green'Un classified-results moment ---- */
.scoreboard {
  background: var(--su-black);
  color: var(--su-white);
  border-radius: 4px 4px 0 0;
  padding: 1rem 1.25rem 1.1rem;
  position: relative;
  overflow: hidden;
}
.scoreboard::after {
  content: "";
  position: absolute; inset: auto 0 0 0; height: 4px;
  background: repeating-linear-gradient(90deg, var(--su-red) 0 62px, var(--su-white) 62px 64px);
  opacity: .9;
}
.sb-strip {
  text-align: center;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-bottom: .75rem;
}
.sb-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: start;
  gap: 1rem;
}
.sb-team { display: flex; flex-direction: column; gap: .3rem; padding-top: .35rem; }
.sb-team.home { text-align: right; align-items: flex-end; }
.sb-team.away { text-align: left; align-items: flex-start; }
.sb-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.05rem, 0.9rem + 1vw, 1.45rem);
  line-height: 1.2;
  text-wrap: balance;
}
.sb-scorers { font-size: .8rem; line-height: 1.45; color: rgba(255,255,255,.7); }
.sb-score {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem);
  line-height: 1.1;
  color: var(--su-white);
  background: var(--su-red);
  padding: .15rem .85rem .25rem;
  border-radius: 3px;
  font-variant-numeric: lining-nums tabular-nums;
  white-space: nowrap;
}
.sb-result { text-align: center; margin-top: .8rem; min-height: 1px; }
.match-facts {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1.5rem;
  padding: .55rem 1.25rem;
  background: #F2EDE8;
  border: 1px solid var(--su-border);
  border-top: 0;
  border-radius: 0 0 4px 4px;
  font-size: .8rem;
  color: var(--su-muted);
  margin-bottom: 1.75rem;
}
.match-facts strong { color: var(--su-black); }

/* ---- Report text ---- */
.report-body p {
  font-size: 1.02rem;
  line-height: 1.75;
  color: #2C2A28;
  margin-bottom: 1rem;
  text-wrap: pretty;
  overflow-wrap: break-word;
}
.report-body p.standfirst {
  font-size: 1.14rem;
  font-weight: 600;
  line-height: 1.6;
  color: var(--su-black);
}
.report-body h2,
.match-details h2 {
  font-size: 1.3rem;
  margin: 1.75rem 0 .65rem;
  padding-bottom: .35rem;
  border-bottom: 2px solid var(--su-red);
  text-wrap: balance;
}
.verdict {
  background: var(--su-white);
  border: 1px solid var(--su-border);
  border-left: 4px solid var(--su-red);
  border-radius: 0 4px 4px 0;
  padding: 1rem 1.25rem;
  margin: 1.75rem 0 1rem;
}
.verdict h2 { border: 0; margin: 0 0 .4rem; padding: 0; font-style: italic; color: var(--su-red); }
.verdict p:last-child { margin-bottom: 0; }

/* ---- Line-ups, newspaper style ---- */
.lineups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
}
.lineup-card {
  background: var(--su-tint-bg);
  border: 1px solid var(--su-border);
  border-radius: 4px;
  padding: .9rem 1.1rem;
  font-size: .9rem;
  line-height: 1.65;
  color: #2C2A28;
}
.lineup-card h3 { font-size: 1.05rem; margin-bottom: .45rem; color: var(--su-black); }
.lineup-card p { margin-bottom: .45rem; }
.lineup-card p:last-child { margin-bottom: 0; }
.lineup-card .lc-xi { color: var(--su-black); }
.lc-label { font-weight: 600; color: var(--su-black); }

/* ---- Player ratings ---- */
.ratings-widget .widget-header { font-size: .95rem; }
.ratings-wrap { overflow-x: auto; }
.ratings-wrap:focus-visible { outline: 2px solid var(--su-red); outline-offset: 2px; }
.ratings { width: 100%; border-collapse: collapse; font-size: .86rem; }
.ratings thead th {
  font-size: .7rem;
  font-weight: 700;
  color: var(--su-muted);
  text-align: left;
  padding: 0 0 .35rem;
  border-bottom: 1px solid var(--su-border);
}
.ratings tbody tr + tr { border-top: 1px solid var(--su-border); }
.ratings tbody th {
  text-align: left;
  font-weight: 600;
  padding: .4rem .6rem .4rem 0;
  white-space: nowrap;
  color: var(--su-black);
}
.ratings td { padding: .4rem 0; width: 55%; }
.rating-bar { display: flex; align-items: center; gap: .5rem; }
.rating-bar .track {
  flex: 1;
  height: 6px;
  background: var(--su-tint-bg);
  border-radius: 3px;
  overflow: hidden;
}
.rating-bar .fill {
  display: block;
  height: 100%;
  width: calc(var(--r) * 10%);
  background: var(--su-red);
}
.rating-bar .num {
  font-family: var(--font-display);
  font-weight: 900;
  min-width: 1.3rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.unrated { color: var(--su-muted); font-size: .8rem; font-style: italic; }
.ratings tr.motm { background: var(--su-draw-bg); }
.ratings tr.motm th { padding-left: .4rem; }
.motm-star { color: var(--su-draw); }
.motm-label { display: block; font-size: .7rem; font-weight: 600; color: var(--su-draw); }
.ref-rating { font-size: .85rem; margin-top: .75rem; padding-top: .6rem; border-top: 1px solid var(--su-border); }
.rating-scale { font-size: .75rem; line-height: 1.5; color: var(--su-muted); margin-top: .5rem; }

/* ---- Reports index ---- */
.table-scroll { overflow-x: auto; background: var(--su-white); border: 1px solid var(--su-border); border-radius: 4px; }
.table-scroll:focus-visible { outline: 2px solid var(--su-red); outline-offset: 2px; }
.ix-headline { display: block; font-weight: 400; font-size: .78rem; color: var(--su-muted); }

@media (max-width: 600px) {
  .sb-line { gap: .5rem; }
  .sb-score { padding: .1rem .55rem .2rem; }
  .match-facts { padding: .55rem .9rem; }
}
