/* ER2 multi-sport homepage additions. Loaded ONLY by home_er2.html, after er2.css.
   Uses er2.css tokens and class conventions; adds nothing sport pages can see. */

/* Secondary sports, compact. Mobile order sits after the lead's boards/games. */
.er2 .er2-o-others { order: 5; padding-top: 14px; }
.er2 .er2-oth__t { margin: 0 0 6px; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--er2-text-3); }
.er2 .er2-oth { border: 1px solid var(--er2-line); border-radius: var(--er2-r); background: var(--er2-surface); margin-top: 6px; overflow: hidden; }
.er2 .er2-oth__hd { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 5px 10px; color: var(--er2-text); }
.er2 .er2-oth__hd:hover { text-decoration: none; background: var(--er2-surface-2); }
.er2 .er2-oth__l { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--er2-text-2); }
.er2 .er2-oth__a { display: flex; gap: 0; margin: 0; border-top: 1px solid var(--er2-line); overflow-x: auto; scrollbar-width: none; }
.er2 .er2-oth__a::-webkit-scrollbar { display: none; }
.er2 .er2-oth__a a { flex: none; display: flex; align-items: center; min-height: 34px; padding: 0 12px; font-size: 12.5px; font-weight: 700; color: var(--er2-blue); white-space: nowrap; border-right: 1px solid var(--er2-line); }
.er2 .er2-oth__a a:last-child { border-right: 0; }
.er2 .er2-oth__idle { list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px; border-top: 1px solid var(--er2-line); }
.er2 .er2-oth__idle a { display: flex; align-items: baseline; gap: 6px; min-height: 32px; padding: 6px 0 0; border-bottom: 1px solid var(--er2-line); color: var(--er2-text-2); font-size: 12.5px; white-space: nowrap; overflow: hidden; }
.er2 .er2-oth__idle a:hover { text-decoration: none; color: var(--er2-blue); }
.er2 .er2-oth__idle b { font-weight: 800; color: var(--er2-text); }
.er2 .er2-oth__idle span { overflow: hidden; text-overflow: ellipsis; color: var(--er2-text-3); font-size: 12px; }

/* Model performance: concise 3-up summary. */
.er2 .er2-o-perf { padding-top: 14px; }
.er2 .er2-o-perf .er2-sec__hd { margin-bottom: 2px; }
.er2 .er2-o-perf .er2-sec__t { font-size: 16px; }
.er2 .er2-perfc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 4px 0 0; border: 1px solid var(--er2-line); border-radius: var(--er2-r); background: var(--er2-surface); }
.er2 .er2-perfc > div { display: flex; flex-direction: column; padding: 8px 10px; border-right: 1px solid var(--er2-line); }
.er2 .er2-perfc > div:last-child { border-right: 0; }
.er2 .er2-perfc dd { margin: 0; font-size: 20px; line-height: 1.15; font-weight: 800; letter-spacing: -0.01em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.er2 .er2-perfc dd small { margin-left: 2px; font-size: 11px; font-weight: 700; color: var(--er2-text-3); }
.er2 .er2-perfc dt { order: 2; margin-top: 1px; font-size: 11.5px; line-height: 1.25; color: var(--er2-text-3); }
.er2 .er2-perfc__n { margin: 5px 0 0; font-size: 11.5px; line-height: 1.35; color: var(--er2-text-3); }

/* Access: one row on phones (text left, button right). */
.er2 .er2-o-access { padding-top: 14px; }
.er2 .er2-o-access .er2-access { flex-direction: row; align-items: center; gap: 12px; padding: 10px 12px; }
.er2 .er2-o-access .er2-access > div { flex: 1 1 auto; min-width: 0; }
.er2 .er2-o-access .er2-access__t { font-size: 14.5px; line-height: 1.25; }
.er2 .er2-o-access .er2-access__s { font-size: 11.5px; line-height: 1.3; }
.er2 .er2-o-access .er2-btn { flex: none; width: 92px; min-height: 38px; padding: 4px 8px; font-size: 12.5px; line-height: 1.2; text-align: center; white-space: normal; }

/* Footer: thin on phones. The shared bottom-nav clearance lives on the footer, so the main area need not add its own. */
.er2 .er2-page[data-er2-page="home"] .er2-main { padding-bottom: 0; }
.er2 .er2-foot--home { padding: 10px 0 calc(var(--er2-bnav-h) + 10px + env(safe-area-inset-bottom, 0px)); margin-top: 12px; }
.er2 .er2-foot__tgl { position: absolute; opacity: 0; pointer-events: none; }
.er2 .er2-foot__more { display: flex; align-items: center; justify-content: space-between; min-height: 38px; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #c3ccda; border-bottom: 1px solid var(--er2-nav-line); cursor: pointer; }
.er2 .er2-foot__more svg { width: 14px; height: 14px; transition: transform .15s; transform: rotate(90deg); }
.er2 .er2-foot__tgl:checked ~ .er2-foot__more svg { transform: rotate(-90deg); }
.er2 .er2-foot__tgl:focus-visible ~ .er2-foot__more { outline: 2px solid var(--er2-blue-on-dark); outline-offset: 2px; }
.er2 .er2-foot--home .er2-foot__tools { display: none; }
.er2 .er2-foot--home .er2-foot__tgl:checked ~ .er2-foot__tools { display: grid; }
.er2 .er2-foot--home .er2-foot__tools a { min-height: 34px; font-size: 12.5px; }
.er2 .er2-foot--home .er2-foot__lg { display: none; }
.er2 .er2-foot__legal { display: flex; flex-wrap: wrap; gap: 0 14px; padding: 8px 0 2px; }
.er2 .er2-foot__legal a { min-height: 28px; display: inline-flex; align-items: center; font-size: 12px; font-weight: 600; }
.er2 .er2-foot--home .er2-foot__fine { margin-top: 6px; font-size: 11px; line-height: 1.4; }

/* Hero status chips (e.g. preliminary NFL board). */
.er2 .er2-hero__c { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.er2 .er2-hero__c span { padding: 3px 8px; border-radius: 3px; background: rgba(255,255,255,.1); color: #dbe3f0; font-size: 11.5px; font-weight: 600; }

/* QA-only banner. Rendered only for synthetic fixtures, which never run in production. */
.er2 .er2-synth { position: sticky; top: 0; z-index: 50; padding: 6px 12px; background: #b3261e; color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-align: center; }

@media (min-width: 768px) {
  .er2 .er2-foot--home { padding-top: 18px; padding-bottom: 24px; }
  .er2 .er2-foot__more { display: none; }
  .er2 .er2-foot--home .er2-foot__tools, .er2 .er2-foot--home .er2-foot__lg { display: grid; }
  .er2 .er2-foot--home .er2-foot__lg { margin-top: 12px; }
  .er2 .er2-foot--home .er2-foot__grid a { min-height: 36px; font-size: 13px; }
  .er2 .er2-foot__legal { padding-top: 12px; }
}
@media (min-width: 1024px) {
  .er2 .er2-oth__idle { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 22px; }
  .er2 .er2-o-others, .er2 .er2-o-perf, .er2 .er2-o-access { padding-top: 0; }
  .er2 .er2-o-access .er2-access { flex-direction: column; align-items: stretch; padding: 12px 0 0; }
  .er2 .er2-o-access .er2-btn { width: 100%; white-space: nowrap; }
  .er2 .er2-page[data-er2-page="home"] .er2-foot--home { padding-bottom: 20px; }
}
