/* A shared visual layer. Simulation and forecast behavior live elsewhere. */
:root {
  --page: #f6f5f1;
  --ink: #172329;
  --primary-orange: #d94d25;
  --ui-line: #e0e3dd;
  --ui-muted: #657176;
  --ui-radius: 14px;
  --ui-shadow: 0 3px 5px #17232903, 0 14px 35px #17232905;
}
body { -webkit-font-smoothing: antialiased; }
.app-shell { width: min(1500px, 100%); padding-inline: clamp(18px, 3.6vw, 58px); }
:where(a, button, select, summary):focus-visible { outline: 3px solid #d94d25; outline-offset: 5px; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
.topbar { height: 96px; border-bottom: 1px solid #cdd3ce; gap: 24px; }
.brand { font-size: 28px; letter-spacing: -.025em; gap: 11px; }
.brand-mark { width: 36px; height: 36px; background: #ed6035; }
.brand-orange { color: #df512a; }
.header-actions { display: flex; align-items: center; gap: 28px; }
.nav-pills { gap: 8px; letter-spacing: 0; font: 650 12px/1.2 var(--body); }
.nav-pills a, .nav-pills .nav-doc {
  color: #626e72; background: transparent; border: 1px solid transparent;
  padding: 11px 13px; border-radius: 7px;
}
.nav-pills a:hover, .nav-pills .nav-doc:hover { background: #eaece6; color: #172329; }
.nav-pills a[aria-current="page"]:not(.nav-doc), .nav-pills .nav-doc[aria-current="page"] {
  color: #bc421e; border-color: #e9dace; background: #f5e9df;
}
.contact-trigger {
  display: inline-flex; align-items: center; justify-content: center; gap: 20px;
  min-height: 42px; padding: 0 17px; border: 1px solid #172329; border-radius: 7px;
  background: #172329; color: #fff; font: 650 12px var(--body);
  transition: background .18s, box-shadow .18s;
}
.contact-trigger:hover { background: #30464c; box-shadow: 0 4px 12px #17232919; }
.arrow-icon { display: inline-block; width: 18px; height: 18px; flex: 0 0 18px; }
.linkedin-icon { width: 24px; height: 24px; flex: 0 0 24px; color: #0a66c2; }
.section-kicker, .eyebrow { font-size: 10px; font-weight: 750; letter-spacing: .13em; color: #bd4926; }
.homepage-grid { grid-template-columns: minmax(0, 1.9fr) minmax(315px, .9fr); gap: 28px; margin: 32px 0; align-items: stretch; }
.homepage-feature { display: flex; flex-direction: column; }
.masthead { padding: 10px 0 33px; gap: 22px; }
.masthead h1 { font-size: clamp(52px, 5.25vw, 80px); font-weight: 800; line-height: .97; letter-spacing: -.02em; margin: 17px 0; }
.masthead h1 em { color: #d84d27; }
.masthead p { font-size: 13px; line-height: 1.8; max-width: 540px; color: #677377; }
.eyebrow-dash { width: 21px; background: #d84d27; }
.masthead-index { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; padding-left: 21px; border-left: 1px solid #d5dcd5; }
.masthead-index > span { font: 700 46px/1 var(--display); color: #20343a; letter-spacing: -.025em; }
.masthead-index small { font: 700 8px/1.7 var(--body); letter-spacing: .12em; color: #79857f; margin: 0; max-width: none; white-space: nowrap; }
.featured-matchup {
  border-radius: var(--ui-radius); flex: 1; display: flex; flex-direction: column;
  border: 1px solid #ffffff14; box-shadow: 0 12px 26px #17232912;
  background: linear-gradient(112deg,
    color-mix(in srgb, var(--feature-away) 68%, #102129) 0%,
    color-mix(in srgb, var(--feature-away) 68%, #102129) 49.8%,
    color-mix(in srgb, var(--feature-home) 68%, #102129) 50%,
    color-mix(in srgb, var(--feature-home) 68%, #102129) 100%);
}
.featured-matchup::after { inset: 0; background: linear-gradient(0deg, #08121bb3, transparent 75%); pointer-events: none; }
.feature-header { padding: 22px 26px 0; font-size: 9px; line-height: 1.5; letter-spacing: .1em; color: #f7faf9; }
.feature-header > span:first-child { border: 1px solid #ffffff2e; background: #ffffff0d; padding: 5px 9px; border-radius: 4px; }
.feature-header > span:last-child { padding-block: 5px; text-align: right; }
.feature-teams { flex: 1; padding: 12px 28px 22px; min-height: 245px; }
.feature-team img { width: clamp(90px, 10vw, 145px); height: clamp(90px, 10vw, 145px); margin: -2px 0 0; }
.feature-team h2 { font-weight: 800; font-size: clamp(46px, 5vw, 72px); }
.feature-team small { color: #ffffffb8; font-size: 9px; }
.feature-team > div { margin-top: 8px; font-weight: 600; color: #ffffffbd; }
.feature-team > div strong { font-size: 22px; color: white; }
.feature-versus { font: 600 17px var(--display); letter-spacing: .1em; color: #ffffff8c; }
.feature-bottom { padding: 15px 24px; background: #07131b69; border-top: 1px solid #ffffff18; letter-spacing: .06em; }
.feature-bottom > span { line-height: 1.8; color: #c7d1d2; font-weight: 500; }
.feature-bottom b { color: #fff; font-weight: 650; }
.feature-bottom button { min-height: 42px; border-radius: 6px; padding: 12px 14px; font-size: 9px; }
.feature-empty { flex: 1; background: linear-gradient(125deg, #172d36, #243e44); }
.daily-desk { border-radius: var(--ui-radius); border-color: var(--ui-line); padding: 24px 20px 18px; box-shadow: var(--ui-shadow); }
.daily-desk-heading { align-items: center; border-bottom: 1px solid #dbe0da; padding-bottom: 20px; }
.daily-desk-heading h2 { font-size: 31px; font-weight: 750; letter-spacing: -.01em; }
.daily-desk-heading > span { font-size: 9px; font-weight: 650; }
.today-games { max-height: 460px; padding-right: 5px; scrollbar-gutter: stable; }
.today-game { padding: 14px 5px 18px; border-color: #e9ece6; }
.today-game-top { font-size: 9px; font-weight: 650; color: #6d797e; }
.today-team-row { font-weight: 750; font-size: 19px; }
.today-team-row img { width: 29px; height: 29px; }
.today-home-marker { border-radius: 3px; background: #edf1ed; color: #5b746a; }
.today-forecast-card { background: #f4f6f2; border: 1px solid #e4e9e1; border-left: 3px solid #d86a43; border-radius: 6px; padding: 11px; }
.today-full-button { min-height: 36px; color: #be4927; font-size: 9px; }
.today-full-button:hover { text-decoration: none; color: #84351e; }
.today-updated { font-weight: 550; letter-spacing: 0; font-size: 10px; color: #73817c; }
.matchup-builder, .availability { border-radius: var(--ui-radius); border-color: var(--ui-line); box-shadow: var(--ui-shadow); margin-bottom: 24px; }
.matchup-builder { padding: 28px 30px 24px; }
.builder-heading { gap: 18px; margin-bottom: 23px; }
.builder-heading h2 { font-size: 32px; font-weight: 750; letter-spacing: -.01em; }
.builder-heading p { font-size: 11px; color: #6a7977; }
.field select { height: 54px; border-radius: 7px; border-color: #d9dfd7; background: #f6f7f3; font-weight: 550; }
.field select:focus { border-color: #bd4926; box-shadow: 0 0 0 3px #d94d2514; }
.builder-fields .field { font-size: 9px; color: #61716e; }
.versus-mark { font-size: 15px; font-weight: 650; height: 54px; }
.setup-button { border-radius: 7px; height: 54px; background: #d84d27; border-color: #d84d27; font-size: 11px; }
.pregame-guidance { font-size: 11px; color: #707e76; margin-top: 14px; }
.availability-head { padding: 26px 30px; }
.availability-head h2 { font-size: 30px; font-weight: 750; }
.availability-head p { font-size: 12px; line-height: 1.7; }
.availability-head .btn-outline { border-radius: 7px; font-size: 10px; min-width: 206px; }
.forecast-panel { border-radius: var(--ui-radius); padding: 30px; background: linear-gradient(135deg, #162b33, #101e27); box-shadow: 0 12px 28px #1723290d; }
.forecast-topline h2 { font-weight: 750; font-size: 39px; letter-spacing: -.01em; }
.forecast-topline p { line-height: 1.7; }
.forecast-source { font-size: 9px; padding: 9px 11px; font-weight: 650; background: #1a3339; border-color: #365251; border-radius: 5px; }
.forecast-idle { border-radius: 9px; padding: 35px 24px; background: #0b1a224d; border-color: #38535a; }
.forecast-idle h3 { font-weight: 700; letter-spacing: -.01em; }
.forecast-idle-icon { border-color: #45616a; color: #f6a582; }
.scoreboard, .metrics-grid .card, .middle-grid .card, .stats-panel { border-radius: var(--ui-radius); }
.secondary-view { padding-top: 27px; }
.secondary-hero, .history-hero { padding: 30px 0 32px; border-bottom: 1px solid #ccd4ce; margin-bottom: 28px; }
.secondary-hero h1, .history-hero h1 { font-size: clamp(58px, 7.2vw, 98px); font-weight: 800; line-height: .94; letter-spacing: -.025em; }
.secondary-hero p, .history-hero p { font-size: 14px; line-height: 1.75; color: #607273; }
.notes-overview { gap: 18px; margin: 26px 0 30px; }
.notes-overview article { padding: 31px; border-color: var(--ui-line); border-radius: var(--ui-radius); box-shadow: var(--ui-shadow); }
.notes-overview article > span { display: inline-block; padding: 6px 9px; border: 1px solid #efd9cb; background: #fbf0e8; border-radius: 4px; color: #b34725; font-size: 9px; }
.notes-overview h2 { font-weight: 750; font-size: 31px; margin-top: 21px; }
.notes-overview p { font-size: 13px; line-height: 1.85; color: #607273; }
.notes-technical { border-radius: var(--ui-radius); border-color: #d9dfd6; background: #eff2ec; }
.notes-technical > summary { padding: 24px 27px; }
.notes-technical > summary strong { font-size: 14px; font-weight: 650; }
.notes-technical-inner { border-color: #d9dfd6; }
.model-notes-view .validation-panel, .model-notes-view .methodology { border-radius: 10px; border-color: #dce2d8; box-shadow: none; }
.model-notes-view .validation-head h2 { font-weight: 750; }
.history-summary { gap: 16px; }
.history-summary > div { padding: 24px; border-radius: 11px; background: #172d35; border: 1px solid #233c45; }
.history-summary small { font-size: 9px; font-weight: 650; color: #adc0c1; line-height: 1.6; }
.history-summary strong { font-weight: 750; margin-block: 3px; }
.history-list { border-radius: var(--ui-radius); border-color: var(--ui-line); box-shadow: var(--ui-shadow); }
.history-list-head { border-bottom: 1px solid #dbe1d8; margin-bottom: 20px; }
.history-list-head h2 { font-weight: 750; }
.history-game { border-radius: 8px; background: #f8f9f6; }
.history-game-match strong { font-weight: 750; }
.history-date-links button { border-radius: 6px; }
.site-footer { display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 24px; margin-top: 36px; padding: 32px 0 38px; border-top: 1px solid #cfd7ce; letter-spacing: 0; }
.footer-brand { text-decoration: none; font: 800 24px/1 var(--display); letter-spacing: -.02em; color: #203137; }
.site-footer .footer-brand span { display: inline; color: #d84d27; font: inherit; }
.footer-identity p { margin: 9px 0 0; font: 500 11px var(--body); color: #738079; }
.footer-meta p { margin: 0 0 6px; font: 600 11px var(--body); color: #596b67; }
.footer-meta small { font: 500 10px/1.5 var(--body); color: #78867f; }
.footer-linkedin { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border: 1px solid #d8dfd5; border-radius: 8px; background: #ffffff70; text-decoration: none; transition: border-color .18s, background .18s; }
.footer-linkedin:hover { border-color: #86b1d6; background: #edf5fa; }
.site-footer .footer-linkedin > span { display: grid; gap: 3px; }
.footer-linkedin small { font: 650 8px var(--body); letter-spacing: .1em; color: #75847d; }
.footer-linkedin strong { font: 650 12px var(--body); color: #263d42; }
.footer-linkedin .arrow-icon { margin-left: 8px; color: #788b8b; }
html.contact-is-open { overflow: hidden; }
.contact-dialog { padding: 0; width: min(520px, calc(100% - 32px)); max-height: calc(100dvh - 48px); overflow-y: auto; border: 1px solid #ffffff; border-radius: 18px; color: #1c3036; background: #f9faf6; box-shadow: 0 30px 100px #0004; }
.contact-dialog::backdrop { background: #0b1c2ba6; backdrop-filter: blur(5px); }
.contact-dialog[open] { animation: contact-appear .22s ease-out; }
.contact-card { padding: 43px; position: relative; }
.contact-close-form { margin: 0; }
.contact-close { position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid #dce2d8; border-radius: 50%; background: #f0f3ec; color: #657975; }
.contact-close:hover { background: #e2e9dd; color: #172329; }
.contact-close svg { width: 18px; height: 18px; }
.contact-kicker { display: inline-flex; align-items: center; gap: 9px; margin: 8px 0 24px; color: #b34c2b; font: 750 10px var(--body); letter-spacing: .15em; }
.contact-kicker > span { width: 6px; height: 6px; background: #e76b3b; border-radius: 50%; }
.contact-dialog h2 { font: 650 clamp(29px, 5vw, 38px)/1.13 var(--body); text-transform: none; letter-spacing: -.045em; margin: 0 0 23px; color: #1c3036; }
.contact-dialog #contact-description { font: 600 15px/1.6 var(--body); margin-bottom: 6px; color: #405f62; }
.contact-note { font: 400 13px/1.75 var(--body); color: #73817c; margin: 0 0 28px; max-width: 340px; }
.contact-linkedin { display: flex; gap: 12px; align-items: center; justify-content: center; border: 1px solid #0a66c2; border-radius: 8px; padding: 16px 18px; background: #0a66c2; color: #fff; font: 650 13px var(--body); text-decoration: none; transition: background .18s; }
.contact-linkedin:hover { background: #07549f; }
.contact-linkedin .linkedin-icon { color: #0a66c2; background: #fff; border-radius: 3px; }
.contact-linkedin .arrow-icon { margin-left: auto; }
.contact-signoff { display: flex; align-items: center; gap: 12px; border-top: 1px solid #e0e5db; margin-top: 28px; padding-top: 23px; }
.contact-avatar { display: block; flex-shrink: 0; width: 52px; height: 52px; object-fit: cover; object-position: center 38%; background: #ede8de; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px #dce3d9; }
.contact-signoff > div { display: grid; gap: 4px; }
.contact-signoff strong { font: 650 12px var(--body); }
.contact-signoff > div > span { font: 400 11px var(--body); color: #78867e; }
@keyframes contact-appear { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 1150px) {
  .masthead-index { display: none; }
  .homepage-grid { grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr); gap: 22px; }
  .header-actions { gap: 15px; }
  .nav-pills { gap: 2px; }
  .nav-pills a, .nav-pills .nav-doc { padding-inline: 10px; }
  .feature-bottom { padding-inline: 20px; }
}
@media (max-width: 850px) {
  .homepage-grid { grid-template-columns: 1fr; gap: 24px; margin-top: 22px; }
  .masthead { padding: 10px 0 26px; }
  .masthead h1 { font-size: clamp(57px, 9vw, 78px); }
  .masthead-index { display: flex; }
  .feature-teams { min-height: 260px; padding-inline: 30px; }
  .feature-team img { width: 135px; height: 135px; }
  .today-games { max-height: 430px; column-gap: 24px; }
  .site-footer { grid-template-columns: 1fr auto; }
  .footer-meta { grid-row: 2; grid-column: 1 / -1; }
}
@media (max-width: 740px) {
  .topbar { display: grid; grid-template-columns: 1fr auto; height: auto; padding: 19px 0 14px; gap: 16px; }
  .header-actions { display: contents; }
  .brand { grid-column: 1; grid-row: 1; font-size: 26px; }
  .contact-trigger { grid-column: 2; grid-row: 1; min-height: 40px; gap: 12px; padding-inline: 13px; }
  .nav-pills { grid-column: 1 / -1; grid-row: 2; width: 100%; display: grid; grid-template-columns: .7fr 1.3fr 1fr; gap: 5px; }
  .nav-pills a, .nav-pills .nav-doc, .nav-pills > a:not(.nav-doc) { display: block; text-align: center; padding: 11px 8px; font-size: 11px; }
  .builder-heading { gap: 9px 15px; }
  .builder-heading p { flex-basis: 100%; }
  .forecast-topline { flex-wrap: wrap; gap: 13px; }
}
@media (max-width: 550px) {
  .app-shell { padding-inline: 17px; }
  .brand { font-size: 24px; gap: 8px; }
  .brand-mark { width: 30px; height: 30px; }
  .brand-mark svg { width: 24px; height: 24px; }
  .contact-trigger { font-size: 11px; gap: 7px; padding-inline: 11px; }
  .eyebrow { font-size: 8px; letter-spacing: .1em; gap: 8px; }
  .masthead-index { display: none; }
  .masthead { padding-top: 5px; }
  .masthead h1 { font-size: clamp(43px, 11.6vw, 62px); line-height: .98; }
  .masthead p { font-size: 12px; line-height: 1.8; }
  .featured-matchup { min-height: 320px; }
  .feature-header { padding: 16px 15px 0; gap: 7px; font-size: 8px; }
  .feature-header > span:first-child { padding: 5px 6px; letter-spacing: .04em; }
  .feature-header > span:last-child { max-width: 100px; }
  .feature-teams { min-height: 235px; padding: 12px 19px 19px; grid-template-columns: minmax(0,1fr) 25px minmax(0,1fr); }
  .feature-team img { width: 100px; height: 100px; }
  .feature-team h2 { font-size: 51px; }
  .feature-team > div { font-size: 8px; }
  .feature-team > div strong { font-size: 19px; }
  .feature-bottom { padding: 15px 17px; gap: 12px; }
  .feature-bottom button { width: 100%; min-height: 44px; font-size: 10px; }
  .daily-desk { padding: 22px 18px 17px; }
  .daily-desk-heading h2 { font-size: 32px; }
  .today-games { grid-template-columns: 1fr; max-height: 450px; }
  .matchup-builder, .forecast-panel { padding: 23px 18px; }
  .builder-heading { display: flex; margin-bottom: 20px; }
  .builder-heading .section-kicker { flex-basis: 100%; }
  .builder-heading h2 { margin: 0; font-size: 31px; }
  .builder-heading p { margin: 0; font-size: 10px; }
  .field select { padding-inline: 9px; height: 50px; font-size: 11px; }
  .versus-mark { height: 50px; }
  .setup-button { height: 50px; margin-top: 5px; }
  .availability-head { padding: 22px 18px; }
  .availability-head h2 { font-size: 28px; }
  .availability-head p { font-size: 11px; }
  .forecast-topline h2 { font-size: 35px; }
  .forecast-idle { padding: 28px 15px; }
  .secondary-view { padding-top: 10px; }
  .secondary-hero h1, .history-hero h1 { font-size: 59px; }
  .secondary-hero p, .history-hero p { font-size: 13px; }
  .notes-overview article { padding: 24px; }
  .notes-overview h2 { font-size: 29px; }
  .notes-technical > summary { padding: 20px; gap: 11px; }
  .notes-technical > summary strong { font-size: 13px; max-width: 84%; }
  .history-summary { gap: 10px; }
  .history-summary > div { padding: 18px 14px; }
  .history-summary small { font-size: 8px; }
  .history-list { padding: 22px 15px; }
  .site-footer { grid-template-columns: 1fr; gap: 22px; margin-top: 28px; padding-block: 30px; }
  .footer-meta { grid-row: auto; grid-column: auto; }
  .footer-linkedin { justify-self: start; padding: 12px 15px; }
  .site-footer .footer-linkedin > span, .site-footer .footer-brand span { display: inline-grid; }
  .contact-card { padding: 34px 25px 28px; }
  .contact-kicker { margin-bottom: 23px; }
  .contact-dialog h2 { font-size: clamp(26px, 7.5vw, 36px); }
  .contact-dialog #contact-description { font-size: 14px; }
  .contact-note { font-size: 12px; }
  .contact-linkedin { font-size: 12px; padding-inline: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .contact-dialog[open] { animation: none; }
  .contact-trigger, .footer-linkedin, .contact-linkedin, .nav-pills a, .btn { transition: none; }
}
@media (max-width: 360px) {
  .masthead h1 { font-size: 36px; }
  .feature-team > div { font-size: 7px; letter-spacing: .03em; }
  .feature-team > div strong { font-size: 17px; }
  .contact-dialog h2 { font-size: 24px; letter-spacing: -.055em; }
}
