/* Revenue Forecasting. Pills match the Who Is Kareem Powell sub-tabs. */
#header .top-row { position: relative; min-height: 2.8rem; }
#header .site-title {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  color: #202020;
  font-weight: 900;
  letter-spacing: 1px;
  line-height: 1;
  white-space: nowrap;
  font-size: 3rem;
}
@media (max-width: 600px) {
  #header .site-title { font-size: clamp(1.4rem, 5.5vw, 2.4rem); }
}
nav[aria-label="Site"] .nav-link i {
  margin-right: 0.35rem;
  font-size: 0.92em;
  vertical-align: -0.08em;
}
.rf-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  width: min(1120px, calc(100% - 1rem));
  margin: 0.15rem auto 0;
  padding: 0 0.25rem 0.7rem;
}
.rf-pills a {
  flex: 0 0 auto;
  padding: 0.35rem 0.7rem;
  border: 1px solid #d5d9e0;
  border-radius: 999px;
  background: #fff;
  color: var(--wog-navy) !important;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}
.rf-pills a:hover,
.rf-pills a:focus-visible {
  background: #eef3ff;
  border-color: var(--wog-blue);
  color: #004aad !important;
}
.rf-pills a:focus-visible {
  outline: 2px solid #004aad;
  outline-offset: 2px;
}
.rf-pills a[aria-current="page"] {
  color: #fff !important;
  background: var(--wog-blue);
  border-color: var(--wog-blue);
  font-weight: 800;
}

#rf-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;
}
#rf-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;
}
#rf-root .rf-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}
#rf-root .rf-sub { color: var(--muted); font-size: 0.95rem; font-weight: 700; }
#rf-root .rf-links { margin: 0.45rem 0 0.75rem; font-weight: 700; }
#rf-root .rf-links a,
#rf-root .note a,
#rf-root table a { color: #004aad; }
#rf-root .kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.85rem;
  margin: 0.85rem 0;
}
#rf-root .kpi {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 6px solid var(--wog-blue);
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
}
#rf-root .kpi .l {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-weight: 700;
}
#rf-root .kpi .v { font-size: 1.35rem; font-weight: 800; margin-top: 2px; line-height: 1.2; }
#rf-root .kpi .s { font-size: 0.75rem; color: var(--muted); font-weight: 500; }
#rf-root .pos { color: var(--good); }
#rf-root .neg { color: var(--bad); }
#rf-root .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
@media (max-width: 860px) {
  #rf-root .grid2 { grid-template-columns: 1fr; }
}
#rf-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;
}
#rf-root .grid2 .card { margin-top: 0; }
#rf-root .card h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--wog-navy);
  margin: 0 0 0.35rem;
}
#rf-root .chart { height: 340px; }
#rf-root .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
#rf-root table { width: 100%; border-collapse: collapse; font-size: 0.92rem; margin: 0.35rem 0 0.5rem; }
#rf-root th,
#rf-root td {
  border-bottom: 1px solid #e6eaf0;
  padding: 0.45rem 0.55rem;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
#rf-root th:first-child,
#rf-root td:first-child,
#rf-root th.left,
#rf-root td.left { text-align: left; white-space: normal; }
#rf-root th { color: var(--muted); font-weight: 700; background: #e8f1ff; }
#rf-root .note { font-size: 0.84rem; color: var(--muted); line-height: 1.45; font-weight: 500; margin: 0.45rem 0 0; }
#rf-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;
}
#rf-root ul.heads { margin: 0.45rem 0 0; padding-left: 1.15rem; font-size: 0.92rem; font-weight: 500; }
#rf-root ul.heads li { margin: 0.35rem 0; }
#rf-root .changed { font-weight: 500; color: var(--ink); margin: 0 0 0.35rem; }

/* Make the forecast pages look like Home. Add at the end of
   thefield/revenue-forecasting/rf.css (football pages load it too). */
#rf-root, #ff-root { width: min(1160px, calc(100% - 2rem)); --accent: #004aad; }
#rf-root h1, #ff-root h1 {
  font-family: var(--heading-font, "Nunito", sans-serif); font-weight: 800;
  color: #2d465e; font-size: clamp(1.6rem, 3.2vw, 2.2rem);
}
#rf-root .card, #ff-root .card, #rf-root .kpi, #ff-root .kpi {
  border: 1px solid #e3e8f1; border-radius: 14px;
  box-shadow: 0 6px 18px rgba(18, 38, 70, 0.07);
}
#rf-root .card, #ff-root .card { padding: 0.95rem 1.1rem 1.15rem; margin-top: 1.15rem; }
#rf-root .kpis, #ff-root .kpis { gap: 1.15rem; }
#rf-root .card h2, #ff-root .card h2 {
  font-family: var(--heading-font, "Nunito", sans-serif); font-weight: 800;
  color: #2d465e; font-size: clamp(1.25rem, 2.2vw, 1.6rem);
}
/* Summary + labelled bullets (Kareem, 12:14 AM ET Oct 31: resume-style writing) */
#rf-root .rs-sum, #ff-root .rs-sum { margin: 0.2rem 0 0.35rem; font-weight: 500; line-height: 1.5; }
#rf-root ul.rs, #ff-root ul.rs { margin: 0.35rem 0 0; padding-left: 1.15rem; }
#rf-root ul.rs li, #ff-root ul.rs li { margin: 0.3rem 0; line-height: 1.45; }
#rf-root ul.rs b, #ff-root ul.rs b { color: #1F3A5F; }
