/* ============================================================
   The Pigskin Lab look, for every school.

   Loaded last on every page. It swaps the page's own greys, type and chrome
   for Pigskin Lab's NFL site (pigskinlab.com): Roboto for words, Roboto
   Condensed capitals for headings and numbers, a black top bar with the
   team's name and a 3px rule in the team's color, flat white cards with
   hairline borders, and Pigskin's charcoal dark mode.

   The school's own colors arrive after this file, in the page head
   (<style id="school-theme">): --red is the school's main color and --yellow
   its second color, so every accent below follows the school.
   ============================================================ */

@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/roboto-latin-ext.woff2?v=cedb374b05a3) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/roboto-latin.woff2?v=1404ca348bd7) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Pigskin's tokens, both themes ---------- */
:root, :root[data-theme="dark"] {
  --font: "Roboto", "Helvetica Neue", Arial, system-ui, sans-serif;
  --display: "Roboto Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --bg: #15171b; --surface: #1d2026; --surface-2: #252a32; --surface-3: #303743;
  --line: #3b4350; --line-soft: #303641; --line-strong: #748194;
  --txt: #f0f3f7; --txt-2: #d1d9e4; --txt-3: #acb8c8;
  --head: #0c0c0c; --head-muted: #a8a8a8; --head-line: #4a4a4a;
  --hover: rgba(255,255,255,.03);
  --r: 6px; --r-sm: 7px; --r-xs: 4px;
}
:root[data-theme="light"] {
  --bg: #f6f7f9; --surface: #ffffff; --surface-2: #f0f2f5; --surface-3: #e5e9ee;
  --line: #d8dee6; --line-soft: #e8ecf1; --line-strong: #94a0ae;
  --txt: #17212f; --txt-2: #354254; --txt-3: #586779;
  --head: #111111; --head-muted: #bdbdbd; --head-line: #4a4a4a;
  --hover: rgba(0,0,0,.025);
}
html, body { font-family: var(--font); }
body { font-size: 14px; line-height: 1.55; background: var(--bg); color: var(--txt); }
h1, h2, h3, h4 { font-family: var(--display); }

/* ---------- the top bar: Pigskin's header with the school's name ---------- */
header.top { background: var(--head); box-shadow: none; }
.sn { background: var(--head); border-bottom: 3px solid var(--red); }
.sn-row1 { min-height: 50px; padding: 6px 20px 2px; gap: 12px; border-bottom: 0; }
.sn-brand { gap: 10px; }
.sn-crest {
  width: 30px; height: 30px; border-radius: 4px; background: var(--red); color: var(--on-red, #fff);
  font: 700 13px/1 var(--display); box-shadow: none;
}
.sn-crest.has-logo { background: transparent; width: 34px; height: 34px; }
.sn-crest.has-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.sn-brand:hover .sn-crest { transform: none; }
.sn-word { font: 700 1.27rem/1 var(--display); letter-spacing: .045em; text-transform: uppercase; color: #fff; }
.sn-tag {
  font: 700 .72rem/1 var(--display); letter-spacing: .08em; padding: 4px 7px; border-radius: 3px;
  color: var(--yellow); border: 1px solid var(--yellow); background: transparent;
}
.sn-season { font: 600 12px/1 var(--font); letter-spacing: .04em; color: var(--head-muted); }
.sn-links { gap: 0; padding: 0 12px; }
.sn-links a {
  padding: 0 8px; font: 600 12px/42px var(--font); letter-spacing: .3px; text-transform: uppercase;
  color: var(--head-muted); border-bottom: 3px solid transparent; margin-bottom: -3px;
}
.sn-links a i { display: none; }
.sn-links a::after { display: none; }
.sn-links a:hover { color: #fff; }
.sn-links a[aria-current="page"] { color: #fff; border-bottom-color: #fff; }

/* the header's buttons are Pigskin's outlined ones */
.sn-theme, .sn-acct, .sn-set {
  height: 36px; padding: 0 10px; border-radius: 7px; border: 1px solid var(--head-line); background: transparent;
  color: #ededed; font: 600 12px/1 var(--font); letter-spacing: .04em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none !important; white-space: nowrap; cursor: pointer;
}
.sn-theme:hover, .sn-acct:hover, .sn-set:hover { background: #1f1f1f; border-color: #6a6a6a; }
.sn-acct.in { border-color: var(--yellow); color: var(--yellow); }
.sn-add {
  height: 36px; padding: 0 14px; border-radius: 7px; background: var(--yellow); border: 1px solid var(--yellow);
  color: var(--on-yellow, #111); font: 700 12.5px/1 var(--font); letter-spacing: .04em; text-transform: uppercase;
}
.sn-add:hover { background: var(--yellow); filter: brightness(1.08); border-color: var(--yellow); }
.sn-who { font: 600 11px/1 var(--font); color: var(--head-muted); }
@media (max-width: 720px) {
  .sn-row1 { padding: 8px 16px 4px; }
  .sn-word { font-size: 1.05rem; }
  .sn-links { padding: 0 8px; }
  .sn-links a { padding: 0 7px; font-size: 11.5px; line-height: 40px; }
  .sn-theme, .sn-acct, .sn-set, .sn-add { height: 32px; font-size: 11px; padding: 0 9px; }
}

/* ---------- surfaces: flat, hairline, Pigskin's radius ---------- */
.card, .kpis, .hm-board, .hm-tile, .hm-tool, .hm-pick, .ct-card, .hp-sec, .fr-card, .lf-card {
  border-radius: var(--r);
}
:root[data-theme="light"] .card, :root[data-theme="light"] .kpis { box-shadow: none; }
.card { border-color: var(--line); }
@media (hover: hover) { .card:hover { border-color: var(--line-strong); } }
.card-hd h2 { font-family: var(--display); text-transform: uppercase; letter-spacing: .02em; font-size: 1.05rem; font-weight: 700; }
.btn, .seg-btn { border-radius: 7px; font-family: var(--font); }
.btn.primary { background: var(--red); border-color: var(--red); color: var(--on-red, #fff); }
.btn.primary:hover { background: var(--red-deep); border-color: var(--red-deep); }
.tab { font: 600 12.5px/1 var(--font); letter-spacing: .04em; }
.tab.active { border-bottom-color: var(--red); color: var(--txt); }
table.tbl th { font-family: var(--font); font-weight: 600; color: var(--txt-3); }
table.tbl td { border-color: var(--line-soft); }
a { color: var(--link-ink, var(--gold-ink)); }

/* ---------- the home page and the plain pages ---------- */
.hm-kicker { color: var(--school-ink, var(--red-bright)); letter-spacing: .14em; font-size: 12px; }
.hm-title { letter-spacing: -.01em; }
.hm-title .accent { color: var(--school-ink, var(--red-bright)); }
.ct-role { color: var(--school-ink, var(--red-bright)) !important; }
.ct-out.err { color: var(--bad); }

/* printed reports carry the school's color */
.pr-hd { border-bottom-color: var(--red); }
.pr-crest { background: var(--red); color: var(--on-red, #fff); }

/* ---------- footers: privacy, contact, and the small Pigskin credit ---------- */
.sch-links { display: block; margin-top: 8px; font-size: 12.5px; color: var(--txt-3); }
.sch-links a { color: var(--txt-2); text-decoration: underline; text-underline-offset: 2px; }
.sch-credit { opacity: .85; }
.hm-foot .sch-links, .site-foot .sch-links, .fr-foot .sch-links, .lf-foot .sch-links { margin-top: 10px; }

/* ---------- Team settings and admin pages ---------- */
.st-wrap { max-width: 980px; margin: 0 auto; padding: 24px 20px 48px; }
.st-wrap h1 { font: 700 2rem/1.1 var(--display); text-transform: uppercase; margin: 0 0 6px; }
.st-lede { color: var(--txt-2); margin: 0 0 20px; }
.st-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; margin: 0 0 16px; }
.st-card h2 { font: 700 1.05rem/1.2 var(--display); text-transform: uppercase; letter-spacing: .02em; margin: 0 0 12px; }
.st-row { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-end; margin: 0 0 12px; }
.st-f { display: grid; gap: 5px; font-size: 13px; color: var(--txt-2); min-width: 160px; flex: 1 1 200px; }
.st-f span { font-weight: 600; }
.st-f input[type=text], .st-f input[type=password], .st-f input:not([type]) {
  height: 38px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--surface); color: var(--txt); font: inherit;
}
.st-f input[type=color] { width: 64px; height: 38px; padding: 2px; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--surface); }
.st-color { display: flex; gap: 8px; align-items: center; }
.st-color input[type=text] { width: 110px; }
.st-msg { min-height: 1.4em; margin: 8px 0 0; font-size: 13px; }
.st-msg.ok { color: var(--good); }
.st-msg.bad { color: var(--bad); }
.st-logo { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.st-logo-box { width: 96px; height: 96px; border: 1px dashed var(--line-strong); border-radius: var(--r); display: grid; place-items: center; background: var(--surface-2); overflow: hidden; }
.st-logo-box img { max-width: 100%; max-height: 100%; object-fit: contain; }
.st-logo-box b { font: 700 32px/1 var(--display); color: var(--txt-3); }
.st-note { font-size: 12.5px; color: var(--txt-3); }
.st-lock { text-align: center; padding: 34px 20px; }
.st-preview { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.st-pv-bar { background: #111; border-bottom: 3px solid var(--pv-1, var(--red)); display: flex; align-items: center; gap: 10px; padding: 10px 14px; }
.st-pv-crest { width: 30px; height: 30px; border-radius: 4px; display: grid; place-items: center; font: 700 13px/1 var(--display); background: var(--pv-1, var(--red)); color: #fff; overflow: hidden; }
.st-pv-crest img { width: 100%; height: 100%; object-fit: contain; background: #111; }
.st-pv-name { font: 700 1.1rem/1 var(--display); letter-spacing: .045em; text-transform: uppercase; color: #fff; }
.st-pv-tag { font: 700 .7rem/1 var(--display); letter-spacing: .08em; padding: 3px 6px; border-radius: 3px; border: 1px solid var(--pv-2, var(--yellow)); color: var(--pv-2, var(--yellow)); }
.st-pv-body { padding: 14px; background: var(--bg); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.st-pv-kick { font: 700 12px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--pv-1, var(--red)); width: 100%; }
.st-pv-btn { padding: 9px 14px; border-radius: 7px; background: var(--pv-1, var(--red)); color: #fff; font-weight: 600; font-size: 13px; }
.st-pv-add { padding: 9px 14px; border-radius: 7px; background: var(--pv-2, var(--yellow)); color: #111; font-weight: 700; font-size: 13px; }
.ad-list { width: 100%; border-collapse: collapse; font-size: 13px; }
.ad-list th, .ad-list td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.ad-list th { color: var(--txt-3); font-weight: 600; }
.ad-sw { display: inline-block; width: 14px; height: 14px; border-radius: 3px; vertical-align: -2px; margin-right: 3px; border: 1px solid var(--line); }
.pv-updated { margin: 6px 0 0; font-size: 13.5px; color: var(--txt-2); }
.pv-doc h2 { font: 700 1.1rem/1.2 var(--display); text-transform: uppercase; margin: 22px 0 8px; }
.pv-doc p, .pv-doc li { color: var(--txt-2); line-height: 1.6; }
