/* ============================================================
   The High School page (/high-school, public/js/views/high-school.js) in its own blue (the owner, 2026-11-26: "themed blue so
   it's distinguishable"). Every rule is under html[data-section="hs"], which the server writes on that address and app.js keeps
   in step on in-app navigation: no other page's colours change. Light and dark, as the site's own tokens.
   ============================================================ */

html[data-section="hs"] {
  --hs-blue: #1554b8;        /* the section's blue: borders, bars, the header's rule */
  --hs-ink: #0f4699;         /* as small text on the page: 7.6:1 on white */
  --hs-btn: #1554b8;         /* behind white words: 6.6:1 */
  --hs-tint: #eef4fd;        /* the hero and card wash */
  --hs-tint-2: #dce8fb;
  --hs-header: #0b2350;      /* the header in this section */
  --brand: var(--hs-blue); --brand-ink: var(--hs-ink); --brand-btn: var(--hs-btn);
  --link: var(--hs-ink); --focus: var(--hs-blue); --sel: var(--hs-blue);
  --ink-btn: var(--hs-btn); --ink-btn-text: #ffffff;
  --header-bg: var(--hs-header);
}
:root[data-theme="dark"][data-section="hs"] {
  --hs-blue: #4d8ef0;
  --hs-ink: #8db8ff;
  --hs-btn: #2f6fd6;         /* white on it 4.9:1 */
  --hs-tint: #121c2c;
  --hs-tint-2: #1a2840;
  --hs-header: #08142b;
  /* (Again here: the site's dark tokens are set on :root[data-theme="dark"], which outranks the light block above.) */
  --brand: var(--hs-blue); --brand-ink: var(--hs-ink); --brand-btn: var(--hs-btn);
  --link: var(--hs-ink); --focus: var(--hs-blue); --sel: var(--hs-blue);
  --ink-btn: var(--hs-btn); --ink-btn-text: #ffffff;
  --header-bg: var(--hs-header);
}

html[data-section="hs"] .hs-page { padding-bottom: 32px; }
html[data-section="hs"] .hs-hero { margin: 0 -16px; padding: 34px 16px 26px; background: linear-gradient(180deg, var(--hs-tint), transparent); border-bottom: 1px solid var(--hs-tint-2); }
html[data-section="hs"] .hs-eyebrow { margin: 0 0 6px; color: var(--hs-ink); font: 700 .78rem/1.2 var(--display); letter-spacing: .08em; text-transform: uppercase; }
html[data-section="hs"] .hs-hero h1 { font-size: clamp(1.7rem, 4.6vw, 2.6rem); max-width: 22em; }
html[data-section="hs"] .hs-lede { max-width: 44em; font-size: 1.05rem; color: var(--text-2); margin: 0 0 16px; }
html[data-section="hs"] .hs-hero-actions, html[data-section="hs"] .hs-get-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
html[data-section="hs"] .hs-page .btn { height: 40px; padding: 8px 16px; font-size: .9rem; }
html[data-section="hs"] .hs-ghost { border-color: var(--hs-blue); color: var(--hs-ink); background: var(--surface); }
html[data-section="hs"] .hs-ghost:hover { text-decoration: none; background: var(--hs-tint); }

/* Find your team: one compact line in the hero (the owner, 2026-11-26: "far too big"), a normal-height box about 300 px wide with
   .pigskinlab.com after it, and a small Go; the hint under it carries the example. */
html[data-section="hs"] .hs-find { margin: 16px 0 0; }
html[data-section="hs"] .hs-find-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
html[data-section="hs"] .hs-find-label { font: 700 .95rem/1.2 var(--display); color: var(--hs-ink); margin-right: 4px; }
html[data-section="hs"] .hs-input-wrap { display: inline-flex; align-items: center; width: 300px; max-width: 100%; height: 34px; border: 1px solid var(--border-strong); background: var(--surface); }
html[data-section="hs"] .hs-input-wrap:focus-within { outline: 2px solid var(--focus); outline-offset: 1px; }
html[data-section="hs"] .hs-prefix { flex: 1 1 auto; min-width: 0; height: 100%; padding: 0 2px 0 8px; border: 0; background: transparent; color: var(--text); font: 500 .95rem var(--font); text-align: right; outline: none; }
html[data-section="hs"] .hs-suffix { flex: none; padding-right: 8px; color: var(--muted); font-size: .95rem; }
html[data-section="hs"] .hs-prefix[aria-invalid="true"] { color: var(--wrong); }
html[data-section="hs"] .hs-page .btn.hs-go { height: 34px; padding: 4px 14px; }
html[data-section="hs"] .hs-find-hint { margin: 6px 0 0; }
html[data-section="hs"] .hs-error { margin: 6px 0 0; color: var(--wrong); font-weight: 600; }

html[data-section="hs"] .hs-section { margin-top: 28px; }
html[data-section="hs"] .hs-section > h2 { color: var(--hs-ink); border-bottom: 2px solid var(--hs-blue); padding-bottom: 4px; }
html[data-section="hs"] .hs-intro { max-width: 52em; }
html[data-section="hs"] .hs-cards { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
html[data-section="hs"] .hs-card { padding: 14px 16px; border: 1px solid var(--border); border-top: 3px solid var(--hs-blue); background: var(--surface); }
html[data-section="hs"] .hs-card h3 { margin: 0 0 4px; font-size: 1.05rem; }
html[data-section="hs"] .hs-card p { margin: 0; color: var(--text-2); }
html[data-section="hs"] .hs-privacy ul { margin: 10px 0 0; padding-left: 1.2em; max-width: 52em; }
html[data-section="hs"] .hs-privacy li { margin: 4px 0; }
html[data-section="hs"] .hs-get { padding: 16px 18px; background: var(--hs-tint); border: 1px solid var(--hs-tint-2); }
html[data-section="hs"] .hs-get > h2 { border-bottom: 0; padding-bottom: 0; }
html[data-section="hs"] .hs-get p { max-width: 52em; }
html[data-section="hs"] .hs-faq { margin: 10px 0 0; max-width: 52em; }
html[data-section="hs"] .hs-faq dt { font-weight: 700; margin-top: 12px; }
html[data-section="hs"] .hs-faq dd { margin: 2px 0 0; color: var(--text-2); }
html[data-section="hs"] .hs-label { margin-top: 28px; }

@media (max-width: 520px) {
  html[data-section="hs"] .hs-hero { padding-top: 22px; }
  html[data-section="hs"] .hs-hero-actions .btn, html[data-section="hs"] .hs-get-actions .btn { flex: 1 1 auto; justify-content: center; }
  html[data-section="hs"] .hs-cards { grid-template-columns: 1fr; }
}

/* The footer's NFL "Data freshness" line is about the NFL feed: this page shows no data, so it is not shown here. */
html[data-section="hs"] .site-footer .data-freshness { display: none; }

/* The call to action, the same near the top and at the bottom: "Want one for your team?" and Contact Mason. */
html[data-section="hs"] .hs-cta { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
html[data-section="hs"] .hs-cta-q { margin: 0; font: 700 1.05rem/1.2 var(--display); color: var(--text); }
/* How it works: three numbered steps. */
html[data-section="hs"] .hs-steps { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
html[data-section="hs"] .hs-step { display: flex; gap: 12px; padding: 14px 16px; border: 1px solid var(--border); background: var(--surface); }
html[data-section="hs"] .hs-step-n { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--hs-btn); color: #fff; font: 700 1rem/1 var(--display); }
html[data-section="hs"] .hs-step h3 { margin: 4px 0 4px; font-size: 1.05rem; }
html[data-section="hs"] .hs-step p { margin: 0; color: var(--text-2); }
html[data-section="hs"] .hs-example p { max-width: 52em; }
@media (max-width: 760px) { html[data-section="hs"] .hs-steps { grid-template-columns: 1fr; } }
@media (max-width: 520px) { html[data-section="hs"] .hs-cta { display: flex; width: 100%; } html[data-section="hs"] .hs-cta .btn { flex: 1 1 auto; justify-content: center; } }
@media (max-width: 420px) { html[data-section="hs"] .hs-find-label { flex-basis: 100%; } html[data-section="hs"] .hs-input-wrap { width: auto; flex: 1 1 0; min-width: 0; } }

/* ---------- the High School view's header (the owner, 2026-11-26: "a full high-school view, the way College is") ----------
   On this page the NFL menu, the search (NFL players and teams), Sign in (the NFL site's accounts), the NFL tip bar and the ad
   slots give way: its own menu (#hs-nav, the page's parts) takes the menu's place. Everywhere else #hs-nav is never shown. */
html:not([data-section="hs"]) .hs-nav { display: none !important; }
html[data-section="hs"] #main-nav,
html[data-section="hs"] .site-header .search,
html[data-section="hs"] #account-link,
html[data-section="hs"] .tip-strip,
html[data-section="hs"] .ad-wrap,
html[data-section="hs"] .giveaway-bar { display: none !important; }
html[data-section="hs"] .hs-nav a[aria-current] { border-bottom-color: var(--hs-ink); }

/* The High School view's footer (audit 2026-11-26, #24): its own line in place of the NFL credits (nflverse, BALLDONTLIE) and the
   NFL shows that use the site. The sister sites' row above it stays. Never on an NFL page. */
html:not([data-section="hs"]) .hs-foot { display: none !important; }
html[data-section="hs"] .site-foot-main,
html[data-section="hs"] .site-footer .used-by { display: none !important; }
html[data-section="hs"] .hs-foot { line-height: 1.75; padding-top: 16px; padding-bottom: 18px; color: var(--muted); font-size: .85rem; }
html[data-section="hs"] .hs-foot a, html[data-section="hs"] .hs-foot .linkish { color: var(--link); }


/* "Watch how it works": a 16:9 frame that fits any width (360 px phones included) */
html[data-section="hs"] .hs-video-frame { position: relative; width: 100%; max-width: 880px; aspect-ratio: 16 / 9; background: #0b1530; border-radius: 8px; overflow: hidden; }
html[data-section="hs"] .hs-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
html[data-section="hs"] .hs-video p { margin-top: 8px; }
