/* Football Forecasts. Header and pills come from revenue-forecasting/rf.css; body styles mirror it under #ff-root. */
#ff-root {
  --ink: var(--wog-navy);
  --muted: #5d6670;
  --line: #d5d9e0;
  --accent: var(--wog-blue);
  --good: #198754;
  --bad: #c0392b;
  --soft: #f6f8fa;
  width: min(1120px, calc(100% - 2rem));
  margin: 0.85rem auto 1.5rem;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.5;
}
#ff-root h1 {
  font-family: Poppins, Roboto, sans-serif;
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--wog-navy);
  margin: 0;
}
#ff-root .rf-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}
#ff-root .rf-sub { color: var(--muted); font-size: 0.95rem; font-weight: 700; }
#ff-root .rf-links { margin: 0.45rem 0 0.75rem; font-weight: 700; }
#ff-root .rf-links a,
#ff-root .note a,
#ff-root table a { color: #004aad; }
#ff-root .kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.85rem;
  margin: 0.85rem 0;
}
#ff-root .kpi {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 6px solid var(--wog-blue);
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
}
#ff-root .kpi .l {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-weight: 700;
}
#ff-root .kpi .v { font-size: 1.35rem; font-weight: 800; margin-top: 2px; line-height: 1.2; }
#ff-root .kpi .s { font-size: 0.75rem; color: var(--muted); font-weight: 500; }
#ff-root .pos { color: var(--good); }
#ff-root .neg { color: var(--bad); }
#ff-root .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
@media (max-width: 860px) {
  #ff-root .grid2 { grid-template-columns: 1fr; }
}
#ff-root .card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 6px solid var(--wog-blue);
  border-radius: 12px;
  padding: 0.95rem 1.1rem;
  margin-top: 0.85rem;
}
#ff-root .grid2 .card { margin-top: 0; }
#ff-root .card h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--wog-navy);
  margin: 0 0 0.35rem;
}
#ff-root .chart { height: 340px; }
#ff-root .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
#ff-root table { width: 100%; border-collapse: collapse; font-size: 0.92rem; margin: 0.35rem 0 0.5rem; }
#ff-root th,
#ff-root td {
  border-bottom: 1px solid #e6eaf0;
  padding: 0.45rem 0.55rem;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
#ff-root th:first-child,
#ff-root td:first-child,
#ff-root th.left,
#ff-root td.left { text-align: left; white-space: normal; }
#ff-root th { color: var(--muted); font-weight: 700; background: #e8f1ff; }
#ff-root .note { font-size: 0.84rem; color: var(--muted); line-height: 1.45; font-weight: 500; margin: 0.45rem 0 0; }
#ff-root .chip {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--soft);
  border: 1px solid var(--line);
  white-space: normal;
}
#ff-root ul.heads { margin: 0.45rem 0 0; padding-left: 1.15rem; font-size: 0.92rem; font-weight: 500; }
#ff-root ul.heads li { margin: 0.35rem 0; }
#ff-root .changed { font-weight: 500; color: var(--ink); margin: 0 0 0.35rem; }
#ff-root .ff-filter { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.2rem 0 0.4rem; }
#ff-root .ff-filter button { border: 1px solid #d5d9e0; background: #fff; border-radius: 999px; padding: 0.2rem 0.65rem; font-size: 0.8rem; font-weight: 700; }
#ff-root .ff-filter button.on { background: var(--wog-blue); color: #fff; border-color: var(--wog-blue); }
#ff-root .ff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0.75rem; }
#ff-root .ff-grid .mini { border: 1px solid #e3e7ee; border-radius: 10px; padding: 0.6rem 0.75rem; }
#ff-root .ff-grid .mini h3 { font-size: 1rem; font-weight: 800; margin: 0 0 0.35rem; }
#ff-root .ff-grid .mini table { font-size: 0.82rem; }
#ff-root .bar3 { display: flex; height: 0.7rem; border-radius: 4px; overflow: hidden; min-width: 120px; margin-top: 3px; }
#ff-root .bar3 span:nth-child(1) { background: var(--wog-blue); }
#ff-root .bar3 span:nth-child(2) { background: #b9c2cf; }
#ff-root .bar3 span:nth-child(3) { background: #e4572e; }
#ff-root .form { display: inline-flex; gap: 2px; }
#ff-root .form b { display: inline-block; width: 1.15rem; height: 1.15rem; border-radius: 3px; color: #fff; font-size: 0.7rem; line-height: 1.15rem; text-align: center; }
#ff-root .form b.W { background: #1f9d55; } #ff-root .form b.D { background: #9aa5b1; } #ff-root .form b.L { background: #d64545; }
#ff-root .ff-teamlinks { display: flex; flex-wrap: wrap; gap: 0.4rem; }
#ff-root .ff-teamlinks a { border: 1px solid #d5d9e0; border-radius: 999px; padding: 0.25rem 0.65rem; font-size: 0.85rem; font-weight: 700; color: var(--wog-navy); text-decoration: none; }
#ff-root .ff-teamlinks a:hover { border-color: var(--wog-blue); color: #004aad; }
#ff-root .ff-drivers { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 0.65rem; margin-top: 0.6rem; }
#ff-root .ff-drivers .pd { border: 1px solid #e3e7ee; border-radius: 10px; padding: 0.55rem 0.75rem; }
#ff-root .ff-drivers .pd h3 { font-size: 0.98rem; font-weight: 800; margin: 0 0 0.25rem; }
#ff-root .ff-drivers ul { margin: 0; padding-left: 1.05rem; font-size: 0.84rem; }
#ff-root .senti { font-weight: 700; }
#ff-root tr.zone-top td:first-child { box-shadow: inset 3px 0 var(--wog-blue); }
#ff-root tr.zone-drop td:first-child { box-shadow: inset 3px 0 #d64545; }
#ff-root .best { font-weight: 800; }
#ff-root .ff-method h2 { margin-top: 1.1rem; }
#ff-root .ff-method p { margin: 0.45rem 0; }
#ff-root .ff-method code { font-size: 0.86em; }

/* Football KPI tiles: six tiles, 3 x 2, 2 wide on phones (layout only; tile styles are the shared .kpi ones) */
#ff-root .m-kpis.m-six { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
@media (max-width: 575px) { #ff-root .m-kpis.m-six { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } }
