@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&display=swap');

.nfl-team-page-shell {
  --nt-ink: hsl(var(--foreground, 0 0% 9%));
  --nt-muted: hsl(var(--muted-foreground, 259 5% 35%));
  --nt-paper: hsl(var(--background, 0 0% 100%));
  --nt-card: hsl(var(--card, 0 0% 98%));
  --nt-line: hsl(var(--border, 0 0% 89%) / .86);
  --nt-accent: hsl(var(--primary, 259 94% 51%));
  --nt-wash: hsl(var(--muted, 259 8% 90%) / .48);
  min-height: 100dvh;
  color: var(--nt-ink);
  background:
    radial-gradient(ellipse at 94% 8%, hsl(var(--primary) / .09), transparent 34rem),
    var(--nt-paper);
  font-family: Manrope, sans-serif;
}
.nfl-team-page-shell *, .nfl-team-page-shell *::before, .nfl-team-page-shell *::after { box-sizing: border-box; }
.nfl-team-page-shell a { color: inherit; }
#nfl-team-header-root { position: sticky; top: 0; z-index: 50; font-family: Inter, sans-serif; }
.trs-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 22px 0 0; color: var(--nt-muted); font: 10px 'DM Mono', monospace; }
.trs-breadcrumb a { text-decoration: none; }
.trs-breadcrumb a:hover { color: var(--nt-accent); text-decoration: underline; }
.nfl-team-header {
  min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 clamp(20px, 5.2vw, 84px); border-bottom: 1px solid var(--nt-line);
  background: hsl(var(--background) / .88); backdrop-filter: blur(14px);
}
.nfl-team-brand { display: inline-flex; flex: none; align-items: center; gap: 9px; font-size: 14px; font-weight: 800; letter-spacing: -.045em; text-decoration: none; }
.nfl-team-brand > span:last-child > span { color: var(--nt-accent); }
.nfl-team-brand-mark { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 7px; color: hsl(var(--primary-foreground)); background: var(--nt-accent); font-size: 15px; }
.nfl-team-header nav { display: flex; align-items: center; gap: clamp(12px, 2vw, 26px); }
.nfl-team-header nav a { padding: 25px 0 23px; border-bottom: 2px solid transparent; color: var(--nt-muted); font-size: 11px; font-weight: 700; text-decoration: none; transition: color .18s, border-color .18s; }
.nfl-team-header nav a:hover, .nfl-team-header nav a[aria-current="page"] { color: var(--nt-ink); border-color: var(--nt-accent); }
.nfl-team-header nav a:focus-visible, .nfl-team-brand:focus-visible, .nfl-team-footer a:focus-visible { outline: 3px solid hsl(var(--ring)); outline-offset: 4px; border-radius: 3px; }
.nfl-team-main { width: min(100% - 48px, 1250px); margin-inline: auto; }

.team-replay-stats {
  --trs-ink: var(--nt-ink); --trs-muted: var(--nt-muted); --trs-line: var(--nt-line);
  --trs-card: var(--nt-card); --trs-paper: var(--nt-paper); --trs-accent: var(--nt-accent);
  padding: 0 0 42px; color: var(--nt-ink); animation: nt-enter .55s both;
}
.team-replay-stats, .nfl-team-faq { font-family: Manrope, sans-serif; }
.team-replay-stats *, .nfl-team-faq * { box-sizing: border-box; }
.team-replay-stats a { text-decoration-color: hsl(var(--primary) / .45); text-underline-offset: 3px; }
.team-replay-stats a:hover { color: var(--nt-accent); text-decoration-color: currentColor; }
.team-replay-stats a:focus-visible, .nfl-team-faq a:focus-visible { outline: 3px solid hsl(var(--ring)); outline-offset: 4px; border-radius: 3px; }
.team-replay-stats h1, .team-replay-stats h2, .team-replay-stats h3, .nfl-team-faq h2 { color: var(--nt-ink); }
.trs-kicker, .trs-overview-head, .trs-hero-art figcaption, .trs-hero-index,
.trs-peak-overline, .trs-section-index, .trs-section-heading > span,
.trs-season-total, .trs-method > .trs-section-index, .trs-full-season .trs-section-heading > span,
.nfl-team-faq .nfl-faq-kicker {
  font-family: 'DM Mono', monospace; font-size: 9px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
}
.trs-hero {
  position: relative; display: flex; min-height: 315px; align-items: center; justify-content: space-between;
  overflow: hidden; padding: 38px clamp(24px, 5.3vw, 72px); border-bottom: 1px solid var(--nt-line);
  isolation: isolate;
}
.trs-hero::before {
  position: absolute; z-index: -2; inset: 0; content: "";
  background: linear-gradient(105deg, hsl(var(--background)) 0%, hsl(var(--background) / .95) 49%, hsl(var(--muted) / .66) 100%);
}
.trs-hero::after {
  position: absolute; z-index: -1; right: 18%; bottom: -160px; width: 360px; height: 360px;
  border: 1px solid hsl(var(--primary) / .13); border-radius: 50%; content: "";
  box-shadow: 0 0 0 28px hsl(var(--background) / .12), 0 0 0 29px hsl(var(--primary) / .09), 0 0 0 76px hsl(var(--background) / .14);
}
.trs-hero-copy { position: relative; z-index: 2; max-width: 640px; }
.trs-kicker { display: flex; align-items: center; gap: 9px; margin: 0; color: var(--nt-accent); }
.trs-kicker > span { width: 6px; height: 6px; border-radius: 50%; background: var(--nt-accent); }
.trs-hero h1 { margin: 18px 0 12px; font-size: clamp(42px, 6.8vw, 82px); font-weight: 800; letter-spacing: -.085em; line-height: .9; }
.trs-hero h1 > span { display: block; margin-top: 9px; color: var(--nt-accent); font-size: .48em; letter-spacing: -.06em; }
.trs-deck { margin: 21px 0 9px; color: var(--nt-muted); font-size: 13px; line-height: 1.6; }
.trs-coverage { margin: 0; color: var(--nt-muted); font-family: 'DM Mono', monospace; font-size: 9px; letter-spacing: .025em; }
.trs-coverage > span { padding-inline: 7px; color: var(--nt-accent); }
.trs-hero-art {
  position: absolute; z-index: 0; top: 0; right: 8%; width: min(34%, 360px); height: 100%; margin: 0;
  overflow: hidden; opacity: .9; mask-image: linear-gradient(90deg, transparent 0%, #000 26%, #000 79%, transparent 100%);
}
.trs-hero-art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 24%; }
.trs-hero-art::after { position: absolute; inset: 0; content: ""; background: linear-gradient(0deg, hsl(var(--background) / .84), transparent 38%), linear-gradient(90deg, var(--nt-paper), transparent 44%, hsl(var(--background) / .12)); }
.trs-hero-art figcaption { position: absolute; z-index: 1; right: 10px; bottom: 14px; left: 10px; display: flex; justify-content: space-between; color: hsl(var(--foreground) / .7); font-size: 7px; }
.trs-hero-index { position: absolute; right: 13px; top: 50%; color: hsl(var(--primary) / .19); font-size: 39px; font-weight: 500; line-height: .82; text-align: right; transform: translateY(-50%); }
.trs-hero-index span { font-size: 7px; letter-spacing: .12em; }

.trs-overview { padding: 23px 0 26px; border-bottom: 1px solid var(--nt-line); }
.trs-overview-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 17px; color: var(--nt-muted); font-size: 8px; }
.trs-overview-head span:first-child { color: var(--nt-accent); }
.trs-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.trs-metric { padding: 4px 18px 2px; border-left: 1px solid var(--nt-line); }
.trs-metric:first-child { padding-left: 0; border: 0; }
.trs-metric strong { display: block; color: var(--nt-ink); font-size: clamp(28px, 4vw, 43px); font-variant-numeric: tabular-nums; letter-spacing: -.075em; line-height: 1; }
.trs-metric span { display: block; margin-top: 9px; color: var(--nt-muted); font-size: 10px; line-height: 1.4; }

.trs-peak { margin: 27px 0 34px; padding: 18px clamp(20px, 3.5vw, 42px) 23px; color: #f7f5fa; background: color-mix(in srgb, hsl(var(--primary, 259 94% 51%)) 34%, #21182f); }
.trs-peak-overline { display: flex; justify-content: space-between; color: #b9b2c3; font-size: 8px; }
.trs-peak-overline span:first-child { color: #d5a96b; }
.trs-peak-main { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 18px; }
.trs-peak-copy { min-width: 0; }
.trs-peak-copy > p { margin: 0 0 8px; color: #c2bbc9; font-size: 10px; }
.trs-peak h2 { margin: 0; color: #fff; font-size: clamp(18px, 2.6vw, 27px); letter-spacing: -.045em; line-height: 1.2; }
.trs-peak h2 a { text-decoration-color: rgba(255,255,255,.35); }
.trs-peak h2 .trs-game-link { display: block; font: inherit; letter-spacing: inherit; }
.trs-peak h2 a:hover { color: #e8c894; }
.trs-peak .trs-game-meta { display: block; margin-top: 8px; color: #c4bdca; font-family: 'DM Mono', monospace; font-size: 11px; font-weight: 400; letter-spacing: .02em; }
.trs-peak-score { flex: none; color: #f1d09a; font-size: clamp(54px, 8vw, 82px); font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.095em; line-height: .85; }
.trs-peak-score small { margin-left: 5px; color: #c5bbc9; font-family: 'DM Mono', monospace; font-size: 10px; font-weight: 400; letter-spacing: 0; }
.trs-peak-empty > span { color: #d5a96b; font: 9px 'DM Mono', monospace; letter-spacing: .1em; }
.trs-peak-empty p { margin: 16px 0 0; color: #d5cfda; font-size: 13px; }

.trs-periods { margin-bottom: 35px; }
.trs-section-label { display: flex; justify-content: space-between; margin-bottom: 12px; color: var(--nt-muted); font: 8px 'DM Mono', monospace; letter-spacing: .1em; }
.trs-section-label span:first-child { color: var(--nt-accent); }
.trs-period-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.trs-section { min-width: 0; padding: 21px 23px; border: 1px solid var(--nt-line); background: hsl(var(--card) / .66); }
.trs-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.trs-section-heading > div { min-width: 0; }
.trs-section-index { display: block; margin-bottom: 7px; color: var(--nt-accent); font-size: 8px; }
.trs-section-heading h2 { margin: 0; font-size: clamp(17px, 2vw, 22px); font-weight: 800; letter-spacing: -.055em; line-height: 1.1; }
.trs-section-heading > span { flex: none; color: var(--nt-muted); font-size: 7px; }
.trs-game-list, .trs-opponent-list, .trs-season-list { margin: 0; padding: 0; list-style: none; }
.trs-game, .trs-opponent { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--nt-line); }
.trs-rank { display: grid; flex: none; place-items: center; width: 28px; height: 28px; color: var(--nt-accent); background: hsl(var(--primary) / .09); font: 9px 'DM Mono', monospace; }
.trs-game-copy { display: flex; min-width: 0; flex: 1; align-items: center; justify-content: space-between; gap: 12px; }
.trs-game-link { min-width: 0; color: var(--nt-ink); font-size: 13px; font-weight: 750; line-height: 1.35; text-decoration: none; }
.trs-game-meta { display: block; margin-top: 5px; color: var(--nt-muted); font: 10px 'DM Mono', monospace; letter-spacing: .01em; }
.trs-score { flex: none; color: var(--nt-accent); font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.065em; }
.trs-score small { margin-left: 3px; color: var(--nt-muted); font: 8px 'DM Mono', monospace; letter-spacing: 0; }
.trs-empty { margin: 0; padding: 17px 18px; border-left: 2px solid var(--nt-accent); color: var(--nt-muted); background: var(--nt-wash); font-size: 11px; line-height: 1.55; }
.trs-latest-section { background: hsl(var(--primary) / .035); }
.trs-analysis { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 13px; margin: 0 0 41px; }
.trs-opponent { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; }
.trs-opponent-copy { min-width: 0; }
.trs-opponent-copy > a { color: var(--nt-ink); font-size: 13px; font-weight: 800; text-decoration: none; }
.trs-opponent-copy > span { display: block; margin-top: 5px; color: var(--nt-muted); font-size: 8px; line-height: 1.35; }
.trs-opponent.is-repeat .trs-opponent-copy > span { color: var(--nt-accent); }
.trs-opponent-score { color: var(--nt-ink); font-size: 16px; font-variant-numeric: tabular-nums; letter-spacing: -.055em; text-align: right; }
.trs-opponent-score small { display: block; margin-top: 3px; color: var(--nt-muted); font: 7px 'DM Mono', monospace; letter-spacing: 0; }
.trs-season-note { margin: 13px 0 0; color: var(--nt-muted); font-size: 9px; line-height: 1.6; }
.trs-embedded-list { padding: 0; border: 0; background: transparent; }
.trs-embedded-list .trs-section-heading { display: none; }
.trs-alltime .trs-game { padding-block: 13px; }

.trs-season { padding: 32px clamp(19px, 3vw, 34px); border-top: 1px solid var(--nt-line); background: hsl(var(--muted) / .23); }
.trs-season-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.trs-season-heading h2 { margin: 0; font-size: clamp(24px, 3.1vw, 37px); font-weight: 800; letter-spacing: -.07em; line-height: 1; }
.trs-season-heading p { margin: 10px 0 0; color: var(--nt-muted); font-size: 10px; }
.trs-season-total { color: var(--nt-accent); font-size: 30px; letter-spacing: -.08em; text-align: right; }
.trs-season-total small { display: block; margin-top: 2px; color: var(--nt-muted); font-size: 7px; letter-spacing: .12em; }
.trs-season-top { padding: 18px 20px; border-color: var(--nt-line); background: var(--nt-card); }
.trs-season-top .trs-section-heading { margin-bottom: 8px; }
.trs-season-top .trs-section-heading h2 { font-size: 13px; }
.trs-season-top .trs-section-heading > span { display: none; }
.trs-full-season { margin-top: 26px; }
.trs-full-season .trs-section-heading { align-items: baseline; margin-bottom: 7px; }
.trs-full-season .trs-section-heading h3 { margin: 0; font-size: 13px; letter-spacing: -.035em; }
.trs-season-game { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 15px; padding: 11px 12px; border-top: 1px solid var(--nt-line); }
.trs-season-game:nth-child(odd) { background: hsl(var(--card) / .52); }
.trs-season-game .trs-game-link { font-size: 12px; }
.trs-season-game .trs-score { font-size: 16px; }
.trs-method { display: grid; grid-template-columns: 180px 1fr; gap: 20px; margin: 22px 0 0; padding: 17px 19px; border: 1px solid var(--nt-line); background: hsl(var(--muted) / .25); }
.trs-method > .trs-section-index { margin: 2px 0 0; }
.trs-method p { margin: 0; color: var(--nt-muted); font-size: 10px; line-height: 1.65; }

.nfl-team-faq { width: min(100% - 48px, 1250px); margin: 0 auto 48px; padding: 25px clamp(20px, 4vw, 42px); border-top: 1px solid var(--nt-line); color: var(--nt-ink); }
.nfl-team-faq .nfl-faq-kicker { color: var(--nt-accent); }
.nfl-team-faq h2 { margin: 7px 0 18px; font-size: 24px; letter-spacing: -.055em; }
.nfl-team-faq details { padding: 13px 0; border-top: 1px solid var(--nt-line); }
.nfl-team-faq summary { color: var(--nt-ink); font-size: 12px; font-weight: 750; cursor: pointer; }
.nfl-team-faq details p { max-width: 790px; margin: 9px 0 0; color: var(--nt-muted); font-size: 11px; line-height: 1.65; }
.nfl-team-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px clamp(20px, 5.2vw, 84px) 26px; border-top: 1px solid var(--nt-line); color: var(--nt-muted); font: 8px 'DM Mono', monospace; letter-spacing: .055em; }
.nfl-team-footer-brand { color: var(--nt-ink) !important; font-weight: 500; text-decoration: none; }

@keyframes nt-enter { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@media (min-width: 1450px) { .nfl-team-header { padding-inline: max(84px, calc((100vw - 1250px) / 2)); } }
@media (max-width: 760px) {
  .nfl-team-header { flex-wrap: wrap; gap: 0; padding-inline: 18px; }
  .nfl-team-header nav { width: 100%; justify-content: space-between; gap: 10px; overflow-x: auto; scrollbar-width: none; }
  .nfl-team-header nav::-webkit-scrollbar { display: none; }
  .nfl-team-header nav a { padding: 10px 0 12px; white-space: nowrap; font-size: 9px; }
  .nfl-team-main, .nfl-team-faq { width: calc(100% - 36px); }
  .trs-hero { min-height: 290px; padding: 33px 20px; }
  .trs-hero-art { right: -2%; width: 48%; opacity: .58; }
  .trs-hero-index { display: none; }
  .trs-metric { padding-inline: 12px; }
  .trs-period-grid, .trs-analysis { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .nfl-team-main, .nfl-team-faq { width: calc(100% - 28px); }
  .nfl-team-header nav { gap: 15px; }
  .trs-hero { min-height: 275px; padding: 28px 17px; }
  .trs-hero h1 { max-width: 80%; font-size: clamp(42px, 12.5vw, 61px); }
  .trs-hero-art { right: -16%; width: 62%; opacity: .4; }
  .trs-deck { max-width: 270px; font-size: 11px; }
  .trs-coverage { max-width: 270px; font-size: 8px; line-height: 1.8; }
  .trs-overview-head { font-size: 7px; }
  .trs-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 19px; }
  .trs-metric, .trs-metric:first-child { padding: 3px 12px; border-left: 1px solid var(--nt-line); }
  .trs-metric:nth-child(odd) { padding-left: 0; border-left: 0; }
  .trs-metric strong { font-size: 34px; }
  .trs-metric span { font-size: 9px; }
  .trs-peak { margin: 20px 0 27px; padding: 16px 16px 19px; }
  .trs-peak-main { align-items: flex-start; }
  .trs-peak-score { font-size: 53px; }
  .trs-peak h2 { font-size: 16px; }
  .trs-section { padding: 17px 15px; }
  .trs-section-label { font-size: 7px; }
  .trs-section-heading h2 { font-size: 18px; }
  .trs-game, .trs-opponent { gap: 8px; }
  .trs-game-copy { gap: 6px; }
  .trs-game-link { font-size: 12px; }
  .trs-score { font-size: 17px; }
  .trs-season { padding: 25px 14px; }
  .trs-season-heading h2 { font-size: 25px; }
  .trs-season-top { padding: 13px; }
  .trs-season-game { gap: 8px; padding-inline: 8px; }
  .trs-season-game .trs-game-link { font-size: 12px; }
  .trs-season-game .trs-score { font-size: 14px; }
  .trs-full-season .trs-section-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
  .trs-method { grid-template-columns: 1fr; gap: 9px; padding: 14px; }
  .nfl-team-footer { align-items: flex-start; flex-direction: column; gap: 8px; padding-inline: 18px; line-height: 1.5; }
}
@media (prefers-reduced-motion: reduce) {
  .nfl-team-page-shell *, .nfl-team-page-shell *::before, .nfl-team-page-shell *::after,
  .nfl-team-faq *, .team-replay-stats * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
