/* Base layout (docs/07 §3). Mobile first; data components are styled by nflgt-core. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 var(--font);
}
a { color: var(--brand); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
img, svg { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.25; letter-spacing: -0.01em; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: var(--gutter); top: 8px; z-index: 20; background: var(--surface); color: var(--text); padding: 8px 12px; border-radius: 6px; }

/* ---- Header ------------------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--navy); color: var(--navy-ink); box-shadow: 0 1px 0 rgba(255, 255, 255, .08); }
.site-header :focus-visible { outline-color: var(--navy-ink); }
.site-header__inner {
  max-width: var(--content); margin: 0 auto; padding: 10px var(--gutter);
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px;
}
.wordmark { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; min-height: 44px; margin-right: auto; min-width: 0; flex: 1 1 auto; }
.wordmark__mark {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 8px;
  /* neutral mark: a field with yard lines, no league or team emblem */
  background: repeating-linear-gradient(90deg, #2f7d5e 0 5px, #3a8f6c 5px 6px);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .85);
}
.wordmark__text { display: flex; flex-direction: column; line-height: 1.15; }
.wordmark__name { font-weight: 800; font-size: 1.0625rem; overflow-wrap: anywhere; }
.wordmark__note { font-size: .75rem; color: var(--navy-muted); }

.nav-toggle {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px;
  font: inherit; font-size: .875rem; font-weight: 600; color: var(--navy-ink);
  background: transparent; border: 1px solid rgba(255, 255, 255, .35); border-radius: 8px; cursor: pointer;
}
.nav-toggle { flex: 0 0 auto; display: none; }
.nflgt-js .nav-toggle { display: inline-flex; }
/* Narrow phones: icon-only button; the label stays for screen readers. */
@media (max-width: 479px) { .nav-toggle { padding: 0 11px; } .nav-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.site-header.is-open .nav-toggle__bars { background: transparent; }
.site-header.is-open .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.site-header.is-open .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

.site-nav { flex: 1 0 100%; }
.site-nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.site-nav__list a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 8px;
  color: var(--navy-ink); text-decoration: none; font-weight: 600; font-size: .9375rem;
}
.site-nav__list a:hover { background: var(--navy-2); }
.site-nav__list a[aria-current="page"], .site-nav__list .current-menu-item > a { background: var(--brand); color: #fff; }

/* With JavaScript, the menu collapses behind the toggle on small screens. */
@media (max-width: 899px) {
  .nflgt-js .site-header .site-nav { display: none; }
  .nflgt-js .site-header.is-open .site-nav { display: block; padding-bottom: 8px; }
  .nflgt-js .site-header.is-open .site-nav__list { flex-direction: column; }
  .nflgt-js .site-header.is-open .site-nav__list a { width: 100%; }
}
@media (min-width: 900px) {
  .site-header__inner { flex-wrap: nowrap; }
  .nav-toggle { display: none !important; }
  .site-nav { flex: 0 1 auto; display: block !important; }
}

/* ---- Content ------------------------------------------------------------------------ */
.site-main { max-width: var(--content); margin: 0 auto; padding: 20px var(--gutter) 32px; }
.content { display: flex; flex-direction: column; gap: 12px; }
.entry-title { font-size: 1.625rem; margin: 0 0 8px; }
@media (min-width: 1024px) { .entry-title { font-size: 2.125rem; } }

/* ---- Homepage ----------------------------------------------------------------------- */
/* .front, not .home: WordPress puts "home" on <body> of the front page. */
.front { display: flex; flex-direction: column; gap: 20px; }
.home-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 60%, #164a3a 100%);
  color: var(--navy-ink); border-radius: var(--radius); padding: 24px 20px;
}
.home-hero h1 { margin: 0 0 8px; font-size: 1.875rem; }
.home-hero__lead { margin: 0 0 16px; max-width: 68ch; color: var(--navy-muted); font-size: 1rem; }
.home-hero__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.home-hero__list a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .28);
  color: var(--navy-ink); text-decoration: none; font-weight: 600; font-size: .875rem;
}
.home-hero__list a:hover { background: rgba(255, 255, 255, .2); }
.home-hero :focus-visible { outline-color: var(--navy-ink); }
@media (min-width: 768px) { .home-hero { padding: 36px 32px; } .home-hero h1 { font-size: 2.5rem; } }

.home-section {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 16px; min-width: 0;
}
@media (min-width: 768px) { .home-section { padding: 20px 24px; } }
.home-section__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.home-section__head h2 { margin: 0; font-size: 1.375rem; }
.home-section__more { font-weight: 600; font-size: .9375rem; display: inline-flex; align-items: center; min-height: 44px; }
.home-section__intro { margin: 2px 0 0; color: var(--text-muted); font-size: .9375rem; }
.home-section .nflgt-block { margin-bottom: 0; }
.home-section .nflgt-card { background: var(--bg); }

.home-pair { display: grid; gap: 20px; }
@media (min-width: 1024px) { .home-pair { grid-template-columns: 1fr 1fr; align-items: start; } }

.home-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  background: var(--surface-2); border: 1px solid var(--border); border-left: 6px solid var(--brand);
  border-radius: var(--radius); padding: 20px;
}
.home-cta h2 { margin: 0 0 4px; font-size: 1.375rem; }
.home-cta p { margin: 0; max-width: 68ch; color: var(--text-muted); }
.home-cta__button {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; border-radius: 10px;
  background: var(--brand); color: var(--brand-ink); font-weight: 700; text-decoration: none;
}
.home-cta__button:hover { filter: brightness(1.08); }

/* ---- Footer ------------------------------------------------------------------------- */
.site-footer { background: var(--navy); color: var(--navy-muted); margin-top: 24px; }
.site-footer a { color: var(--navy-ink); }
.site-footer :focus-visible { outline-color: var(--navy-ink); }
.site-footer__inner {
  max-width: var(--content); margin: 0 auto; padding: 28px var(--gutter);
  display: grid; gap: 24px;
}
@media (min-width: 768px) { .site-footer__inner { grid-template-columns: 1fr 1fr 2fr; } }
.site-footer__h { margin: 0 0 8px; font-size: .8125rem; text-transform: uppercase; letter-spacing: .06em; color: var(--navy-ink); }
.site-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.site-footer__list a { display: inline-flex; min-height: 32px; align-items: center; text-decoration: none; }
.site-footer__list a:hover { text-decoration: underline; }
.site-footer .is-pending { display: inline-flex; min-height: 32px; align-items: center; gap: 4px; color: var(--navy-muted); }
.disclosure { font-size: .8125rem; margin: 0 0 8px; max-width: 70ch; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* The demo-data banner (nflgt-core) is pinned to the top; keep it visible by letting the header scroll. */
body:has(.nflgt-mock-banner) .site-header { position: static; }
