/* The Edge: brand layer. Loaded after app.css and viz.css.
   The logo, favicon and icon files in brand/ are copied unchanged from the SVG brand kit (v1.0, Nov 11, 2026).
   Three things come from the wordmark: its 13 degree forward lean, the tapered red slash under it, and the charcoal stripes behind it. */
:root { --lean: -12.95deg; }

/* header: the wordmark */
.brand { gap: 10px; }
.brand img { display: block; width: 136px; height: auto; margin-left: -6px; }
.brand small { font-style: italic; font-weight: 700; letter-spacing: .02em; padding-bottom: 9px; }

/* headlines lean forward like the wordmark; team names, scores and other numbers stay upright so columns still scan */
h1, h2 { font-style: italic; }

/* home headline: slash below, stripes beside (the layout of the kit's hero artwork, drawn in CSS so the text stays live) */
.hero h1 { position: relative; isolation: isolate; }
.hero h1::after { content: ""; display: block; width: min(100%, 5.4em); height: .085em; margin-top: .17em; background: var(--red); clip-path: polygon(1.35% 0, 100% 0, 0 100%); }
.hero h1::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: .3em; left: 3.8em; right: .42em; transform: skewX(var(--lean)); transform-origin: 0 100%; background: repeating-linear-gradient(90deg, var(--panel) 0 .34em, transparent .34em .9em); }
.hero .worked { position: relative; z-index: 1; border: 1px solid var(--line-2); }
.hero { overflow-x: clip; }
@media (min-width: 881px) { .hero h1::before { right: calc(-81.8% - 48px + .5em); } }

/* tabs: a pictogram before each label where there is room for it */
@media (min-width: 760px) {
  .tabs a { display: inline-flex; align-items: center; gap: 7px; }
  .tabs a::before { content: ""; flex: 0 0 auto; width: 17px; height: 17px; background: currentColor; -webkit-mask: center / contain no-repeat; mask: center / contain no-repeat; }
  .tabs a[href$="/games"]::before { -webkit-mask-image: url(brand/schedule-white.svg); mask-image: url(brand/schedule-white.svg); }
  .tabs a[href$="/opps"]::before { -webkit-mask-image: url(brand/research-white.svg); mask-image: url(brand/research-white.svg); }
  .tabs a[href$="/props"]::before { -webkit-mask-image: url(brand/prop-lab-white.svg); mask-image: url(brand/prop-lab-white.svg); }
  .tabs a[href$="/ratings"]::before { -webkit-mask-image: url(brand/odds-white.svg); mask-image: url(brand/odds-white.svg); }
  .tabs a[href$="/results"]::before { -webkit-mask-image: url(brand/picks-white.svg); mask-image: url(brand/picks-white.svg); }
  .tabs a[href$="/evidence"]::before { -webkit-mask-image: url(brand/analytics-white.svg); mask-image: url(brand/analytics-white.svg); }
  .tabs a[aria-current="page"]::before { background: var(--red); }
}

/* sign up and log in screens: the full logo on the stripe field, with the header out of the way (body.bare, set in account.js) */
.gate { position: relative; isolation: isolate; }
.gate::before { content: ""; position: fixed; inset: 0; z-index: -1; background: repeating-linear-gradient(calc(90deg - var(--lean)), var(--panel) 0 88px, transparent 88px 234px); clip-path: polygon(52% 0, 100% 0, 100% 100%, calc(52% - 23vh) 100%); }
.gate-logo { display: block; width: min(100%, 440px); height: auto; margin: 0 0 30px -20px; }
.gate h1 { font-size: 34px; }

/* footer */
.flogo { margin: 0 0 14px; }
.flogo img { display: block; width: 280px; max-width: 100%; height: auto; margin-left: -13px; }

@media (max-width: 640px) {
  .brand img { width: 106px; margin-left: -5px; }
  .gate-logo { margin-left: -16px; }
  .gate::before { background: repeating-linear-gradient(calc(90deg - var(--lean)), var(--panel) 0 34px, transparent 34px 90px); clip-path: polygon(70% 46vh, 100% 46vh, 100% 100%, calc(70% - 12.4vh) 100%); }
}
@media (max-width: 392px) { .brand img { width: 92px; margin-left: -4px; } }
body.bare .flogo { display: none; }
body.bare footer { position: relative; background: var(--bg); }
