/*
 * JRS1 · public/look/topnav.css
 * Created:     2026-11-15 11:19 EST
 * Last edited: 2026-11-21 17:39 EST
 * Version:     0.9.0 (pre-gold)
 */

/* ================================================================ bar.css (was its own file, always linked with this one) */
/* Site bar: the one strip across the top of every jrsports.one page, football (jrs1) included. Self-contained on purpose. */
@font-face { font-family: "Barlow Condensed"; font-weight: 800 900; font-display: swap; src: url("fonts/barlow_condensed_latin_800.woff2") format("woff2"); }
.jrs-bar .jrs-wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 16px; box-sizing: border-box; }
@media (min-width: 768px) { .jrs-bar .jrs-wrap { padding: 0 24px; } }
.jrs-bar { color: #f5f7fa; }
.jrs-bar--fb { background: #070a10; border-bottom: 1px solid rgba(255,255,255,.08); }
.sb-in { display: flex; align-items: center; gap: 24px; min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.sb-brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1; }
.sb-brand b { font: 900 26px/1 "Barlow Condensed", "Arial Narrow", sans-serif; letter-spacing: .04em; color: #fff; }
.sb-brand b span, .ftr-in b span { color: #00aff2; }
.sb-brand small { margin-top: 4px; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: #a3aebd; }
.sb-sports { display: flex; gap: 4px; flex-wrap: wrap; }
.sb-sport {
  display: flex; align-items: baseline; gap: 6px; padding: 6px 12px; border-radius: 0; text-decoration: none;
  font: 800 18px/1 "Barlow Condensed", "Arial Narrow", sans-serif; letter-spacing: .04em; text-transform: uppercase; color: #dfe6ef; border: 1px solid transparent;
}
.sb-sport small { font: 700 10px/1 "Inter", "Segoe UI", system-ui, sans-serif; letter-spacing: .14em; color: #8995a7; }
.sb-sport:hover { border-color: rgba(255,255,255,.14); }
.sb-sport[aria-current] { color: #070a10; }
.sb-fb[aria-current] { background: #ff7a1a; } .sb-bb[aria-current] { background: #e3b04b; } .sb-bk[aria-current] { background: #f08a24; }
.sb-sport[aria-current] small { color: rgba(7,10,16,.7); }
.sb-levels { display: flex; gap: 16px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #6e7b8e; }
.sb-tools { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.sb-sign, .sb-theme {
  font: 600 14px/1 "Inter", "Segoe UI", system-ui, sans-serif; color: #dfe6ef; background: transparent; border: 1px solid rgba(255,255,255,.18);
  border-radius: 0; padding: 8px 12px; text-decoration: none; cursor: pointer;
}
.sb-sign:hover, .sb-theme:hover { border-color: #00aff2; }
@media (max-width: 900px) { .sb-levels { display: none; } }
a.sb-level { color: inherit; text-decoration: none; }
a.sb-level:hover { color: #fff; }

/* ================================================================ topnav.css */
/* The top bar (resources/look/topnav.php), after ESPN's (Danny 2026-11-15): the leagues by code, each opening a panel of its
   pages and clubs on hover or focus; Watch Now while the stream is live, How to Watch, sign-in. Red and white like the rest. */
.tn-bar { position: relative; z-index: 60; }
.tn-in { display: flex; align-items: stretch; gap: 20px; min-height: 52px; }
.tn-in .sb-brand { justify-content: center; }
.tn-in .sb-brand b { font-size: 24px; }
.tn-bar .sb-brand b span { color: var(--jr-pink, #FFD3D5); }   /* bar.css's old blue loads after red.css on some pages: pink everywhere */
.tn-nav { flex: 1 1 auto; min-width: 0; }
.tn-nav > ul { display: flex; height: 100%; margin: 0; padding: 0; list-style: none; }
.tn-item { display: flex; }
.tn-code {
  display: flex; align-items: center; padding: 0 12px; position: relative; text-decoration: none; white-space: nowrap;
  font: 700 14px/1 "Inter", "Segoe UI", system-ui, sans-serif; letter-spacing: .02em; color: #FFFFFF;
}
.tn-code:hover, .tn-item:has(:focus-visible) .tn-code { background: rgba(0, 0, 0, .18); }
.tn-code[aria-current]::after {          /* the league on show: ESPN's little notch under its name */
  content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  border: 6px solid transparent; border-bottom-color: #FFFFFF;
}
.tn-tools { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.tn-tool, .tn-live {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; text-decoration: none; white-space: nowrap;
  font: 600 13px/1 "Inter", "Segoe UI", system-ui, sans-serif; color: #FFFFFF;
}
.tn-tool:hover { background: rgba(255, 255, 255, .12); }
.tn-tools form { display: contents; }
.tn-signout { border: 0; background: transparent; cursor: pointer; }
.tn-user:hover { background: transparent; }   /* the member's name: just a label */
/* the theme switch and the account: icons (Danny 2026-11-15) */
.tn-icon { padding: 7px; border: 0; background: transparent; cursor: pointer; border-radius: 50%; }
.tn-icon svg { width: 20px; height: 20px; }
.tn-account.is-out { color: rgba(255, 255, 255, .45); }   /* signed out: dim */
.tn-account.is-in {                                        /* signed in: white, the picture and the name as one button */
  color: #FFFFFF; padding: 4px 12px 4px 5px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .35);
}
.tn-account.is-in svg { width: 20px; height: 20px; flex: none; }
.tn-account-name { max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
span.tn-account:hover { background: transparent; }
.tn-live { background: #FFFFFF; color: var(--jr-red-deep, #8E0E14); font-weight: 800; }
.tn-live:hover { background: var(--jr-blush, #FFE9EA); }
.tn-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--jr-red, #D7141A); animation: tn-pulse 1.4s ease-in-out infinite; }
@keyframes tn-pulse { 50% { opacity: .35; } }
.tn-dot.is-off { background: rgba(255, 255, 255, .45); animation: none; }   /* Watch's spot while the stream is off */
@media (prefers-reduced-motion: reduce) { .tn-dot { animation: none; } }

/* the panel under a league: its pages on the left, its clubs (or conferences, or sports) on the right */
/* the clear strip around the white panel is not part of it: off the white, the panel closes (Danny 2026-11-15: it stuck open) */
.tn-panel { display: none; position: absolute; left: 0; right: 0; top: 100%; pointer-events: none; }
.tn-panel-in { pointer-events: auto; }
.tn-panel-in {
  display: flex; max-width: 1392px; margin: 0 auto; background: #FFFFFF; color: #1F2329;
  box-shadow: 0 18px 40px rgba(20, 22, 26, .22); border-top: 3px solid var(--jr-red, #D7141A);
}
@media (min-width: 901px) {
  /* open on hover; held open by focus only from the keyboard (a click's focus would keep it stuck) */
  .tn-item:hover .tn-panel, .tn-item:has(:focus-visible) .tn-panel { display: block; }
}
/* college and high school: a small list under the code, not the whole width (ESPN's NCAAF) */
.tn-small { position: relative; }
.tn-small .tn-panel { right: auto; width: 230px; }
.tn-small .tn-pages { width: 100%; }
.tn-pages { flex: none; width: 190px; margin: 0; padding: 14px 0; list-style: none; }
.tn-pages a { display: block; padding: 9px 22px; color: #3A3F47; text-decoration: none; font: 500 14px/1.2 "Inter", "Segoe UI", system-ui, sans-serif; }
.tn-pages a:hover { color: var(--jr-red, #D7141A); background: var(--jr-blush, #FFE9EA); }
.tn-body { flex: 1 1 auto; min-width: 0; margin: 10px; padding: 14px 18px 18px; background: #F2F3F5; border-radius: 4px; max-height: 70vh; overflow: auto; }
.tn-name { margin: 0 0 10px; font: 800 13px/1 "Inter", "Segoe UI", system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--jr-red-deep, #8E0E14); }
/* --tn-cols from topnav.php (ESPN-style): up to 5 divisions side by side; more, and each conference is a row of its divisions
   (.tn-row starts it), as NFL's 4 + 4, NBA's and MLB's 3 + 3 */
.tn-groups { display: grid; gap: 14px 22px; grid-template-columns: repeat(var(--tn-cols, 3), minmax(0, 1fr)); }
.tn-row { grid-column-start: 1; }
.tn-group h3 { margin: 0 0 6px; font: 700 13px/1.3 "Inter", "Segoe UI", system-ui, sans-serif; color: #1F2329; }
.tn-group ul { margin: 0; padding: 0; list-style: none; }
.tn-group a { display: flex; align-items: center; gap: 9px; padding: 5px 0; color: #4A505A; text-decoration: none; font: 400 13px/1.25 "Inter", "Segoe UI", system-ui, sans-serif; }
.tn-group a:hover { color: var(--jr-red, #D7141A); }
.tn-group img { flex: none; width: 22px; height: 22px; object-fit: contain; }

/* phones and narrow windows: the codes scroll sideways and open the league's home; no panels */
/* the phone's menu (Danny 2026-11-19): three lines at the left open the leagues, the account at the right */
.tn-menu-btn, .tn-code-name, .tn-more { display: none; }
@media (max-width: 900px) {
  .tn-in { gap: 10px; min-height: 52px; }
  .tn-menu-btn {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; align-self: center;
    width: 40px; height: 40px; padding: 0 9px; border: 0; background: transparent; cursor: pointer; border-radius: 6px;
  }
  .tn-menu-btn span { display: block; height: 2px; background: #FFFFFF; border-radius: 2px; transition: transform .2s, opacity .2s; }
  .tn-menu-btn:hover { background: rgba(255, 255, 255, .12); }
  .tn-bar.is-open .tn-menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .tn-bar.is-open .tn-menu-btn span:nth-child(2) { opacity: 0; }
  .tn-bar.is-open .tn-menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  /* the bar itself: only the account at the right; the rest is in the menu */
  .tn-tools > :not(.tn-account) { display: none; }
  /* the menu: the leagues down the page, under the bar */
  .tn-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%; max-height: calc(100vh - 60px); overflow-y: auto;
    background: var(--jr-red-deep, #8E0E14); box-shadow: 0 18px 40px rgba(20, 22, 26, .35);
  }
  .tn-bar.is-open .tn-nav { display: block; }
  .tn-nav > ul { display: block; height: auto; }
  .tn-item { display: block; border-bottom: 1px solid rgba(255, 255, 255, .12); }
  .tn-code { padding: 14px 18px; gap: 12px; }
  .tn-code-name { display: inline; font-weight: 500; color: rgba(255, 255, 255, .75); flex: 1; }
  .tn-item:has(.tn-panel) .tn-code::before {      /* a chevron that turns as the league opens */
    content: ""; order: 3; width: 8px; height: 8px; border: solid #FFFFFF; border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s;
  }
  .tn-item.is-open .tn-code::before { transform: rotate(-135deg); }
  .tn-code[aria-current]::after { display: none; }
  .tn-code[aria-current] { background: rgba(0, 0, 0, .18); }
  /* a league's pages, opened under it; its clubs stay on its own pages */
  .tn-item.is-open .tn-panel { display: block; position: static; pointer-events: auto; }
  .tn-panel-in { display: block; max-width: none; box-shadow: none; border-top: 0; background: rgba(0, 0, 0, .18); }
  .tn-body { display: none; }
  .tn-small .tn-panel { width: auto; }
  .tn-pages { width: auto; padding: 4px 0 10px; }
  .tn-pages a { color: #FFFFFF; padding: 11px 18px 11px 34px; }
  .tn-pages a:hover { color: #FFFFFF; background: rgba(255, 255, 255, .1); }
  /* Watch, How to Watch, the theme and Sign in/out at the menu's foot */
  .tn-more { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 12px 10px 16px; }
  .tn-more form { display: contents; }
}
/* the score strip is too small on a phone, one game at a time: off there (Danny 2026-11-19) */
@media (max-width: 767.98px) {
  .app-ticker { display: none; }
}

/* The site directory at the top of every footer (topnav.php site_directory): each league's code beside its name, and the ways in */
.site-dir { border-bottom: 1px solid rgba(255, 255, 255, .14); }
.site-dir-in {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 22px 28px;
  max-width: 1440px; margin: 0 auto; padding: 28px 16px 26px;
}
@media (min-width: 768px) { .site-dir-in { padding-left: 24px; padding-right: 24px; } }
.site-dir h2 { margin: 0 0 10px; font: 800 12px/1.2 "Inter", "Segoe UI", system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--jr-pink, #FFD3D5); }
.site-dir ul { margin: 0; padding: 0; list-style: none; }
html body .site-dir a {
  display: flex; align-items: baseline; gap: 8px; padding: 4px 0; color: #FFFFFF; text-decoration: none;
  font: 500 14px/1.35 "Inter", "Segoe UI", system-ui, sans-serif;
}
html body .site-dir a:hover, html body .site-dir a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.site-dir b { flex: none; min-width: 42px; font-weight: 800; font-size: 12px; letter-spacing: .03em; color: var(--jr-pink, #FFD3D5); }

/* the front page's More leagues cards (site_home.php): the code big, the whole name under it, then a line */
.level-card .level-name { display: block; margin-bottom: 4px; color: var(--text); font-weight: 700; font-size: 15px; }

/* ESPN's second row, the white strip under the bar: the league's code, its name, then its pages */
.tn-strip-code { font-weight: 900; }
.tn-strip-name { margin-left: 8px; font: 600 13px/1 "Inter", "Segoe UI", system-ui, sans-serif; letter-spacing: 0; text-transform: none; color: #6B717B; }
@media (max-width: 1099px) { .tn-strip-name { display: none; } }

/* How to Watch (resources/look/pages/watch.php) */
.watch-page { display: grid; gap: 28px; max-width: 860px; margin: 8px 0 40px; }
.watch-now { padding: 20px 22px; border-left: 4px solid var(--jr-red, #D7141A); background: var(--jr-blush, #FFE9EA); }
.watch-now p { margin: 6px 0 0; }
.watch-state { display: flex; align-items: center; gap: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--jr-red-deep, #8E0E14); }
.watch-title { font-size: 18px; font-weight: 700; }
.watch-btn { display: inline-block; margin-top: 12px; padding: 11px 18px; background: var(--jr-red, #D7141A); color: #FFFFFF; font-weight: 800; text-decoration: none; }
.watch-btn:hover { background: var(--jr-red-dark, #A50F15); }
.watch-card { padding: 4px 0; line-height: 1.55; }
.watch-card p { margin: 8px 0; }
.watch-link { font-weight: 700; color: var(--jr-red, #D7141A); }
.watch-steps { margin: 8px 0; padding-left: 20px; }
.watch-tag { padding: 1px 5px; background: var(--jr-red, #D7141A); color: #FFFFFF; font-size: 12px; }
.muted { color: #6B717B; }
