.nfp { max-width: 1240px; margin: 1.5rem auto 3rem; padding: 0 1.25rem; color: var(--color-text); font-family: 'IBM Plex Sans', sans-serif; }
.nfp-header { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.nfp-kicker { color: var(--color-primary); font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; }
.nfp h1 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.1; margin: .5rem 0; }
.nfp-header p { margin: 0; color: var(--color-text-muted); font-size: .9rem; }
.nfp-header p span { padding: 0 .5rem; }
.nfp label { display: block; font-size: .75rem; color: var(--color-text-muted); }
.nfp input, .nfp select { border: 1px solid var(--color-border-subtle); border-radius: .4rem; background: var(--color-surface); color: var(--color-text); padding: .5rem .65rem; font-size: .85rem; min-width: 0; max-width: 100%; }
.nfp button { border: 1px solid var(--color-primary); border-radius: .4rem; padding: .5rem .85rem; background: var(--color-primary); color: #041916; font-size: .85rem; font-weight: 600; }
.nfp button.nfp-secondary { background: transparent; color: var(--color-text); border-color: var(--color-border-subtle); }
.nfp button:disabled { opacity: .4; cursor: default; }
.nfp :focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; }
.nfp-official-search > div { display: flex; gap: .4rem; margin-top: .25rem; }
.nfp-official-search select { width: 16rem; }
.nfp-league-nav { margin: 1.1rem 0; border-bottom: 1px solid var(--color-border-subtle); padding-bottom: .7rem; }
.nfp-league-nav .hero-nav-list { display: flex; flex-wrap: wrap; gap: .2rem; justify-content: flex-start; }
.nfp-league-nav .nav-link { padding: .3rem .7rem; font-size: .78rem; color: var(--color-text-muted); }
.nfp-league-nav .nav-link.active { color: var(--color-primary); background: var(--color-primary-soft); border-radius: .4rem; }
.nfp-access { padding: .7rem 1rem; margin-bottom: 1rem; border: 1px solid var(--color-border-subtle); border-radius: .6rem; font-size: .85rem; }
.nfp-access p { margin: 0; }
.nfp-filters, .nfp-toolbar { display: flex; align-items: flex-end; flex-wrap: wrap; gap: .65rem; margin: 1rem 0; }
.nfp-filters label, .nfp-toolbar label { display: grid; gap: .2rem; }
.nfp-filters > a { padding: .5rem; font-size: .8rem; }
.nfp-filters p { margin: 0 0 .45rem auto; font-size: .75rem; color: var(--color-text-muted); }
.nfp-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .7rem; }
.nfp-stat, .nfp-card { border: 1px solid var(--color-border-subtle); border-radius: .8rem; background: var(--color-surface-elevated); padding: 1rem; min-width: 0; }
.nfp-stat > span { color: var(--color-text-muted); display: block; font-size: .73rem; }
.nfp-stat > strong { display: block; font-size: 1.6rem; line-height: 1.3; margin-top: .3rem; font-variant-numeric: tabular-nums; }
.nfp-context, .nfp-footnote { font-size: .76rem; color: var(--color-text-muted); margin: .75rem 0; }
.nfp-tabs { display: flex; gap: .35rem; overflow-x: auto; border-bottom: 1px solid var(--color-border-subtle); margin: 1.2rem 0; }
.nfp-tabs a { white-space: nowrap; color: var(--color-text-muted); padding: .7rem 1rem; font-size: .9rem; text-decoration: none; border-bottom: 3px solid transparent; }
.nfp-tabs a[aria-current="true"] { color: var(--color-primary); border-color: var(--color-primary); }
.nfp-section { scroll-margin-top: 6rem; margin-bottom: 1.5rem; }
.nfp-section-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; margin: 1rem 0; }
.nfp h2 { font-size: 1.35rem; margin: 0; font-family: 'Space Grotesk', sans-serif; }
.nfp-section-heading > span { color: var(--color-text-muted); font-size: .8rem; }
.nfp h3 { font-size: 1rem; margin: 0; }
.nfp-chart-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1rem 0; }
.nfp-chart-card { margin: 0 0 1rem; }
.nfp-chart-grid .nfp-chart-card { margin: 0; }
.nfp-chart-card figcaption p { font-size: .75rem; color: var(--color-text-muted); margin: .35rem 0 .6rem; }
.nfp-chart { min-height: 210px; position: relative; }
.nfp-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.nfp-chart text { fill: var(--color-text-muted); font-family: inherit; font-size: 12px; }
.nfp-chart .grid { stroke: var(--color-border-subtle); }
.nfp-chart .primary { fill: #1bc99a; stroke: #1bc99a; }
.nfp-chart .secondary { fill: #7d9eff; stroke: #7d9eff; }
.nfp-chart .negative { fill: #f27780; stroke: #f27780; }
.nfp-chart path { fill: none !important; stroke-width: 2.5; }
.nfp-chart .selected { stroke: var(--color-text); stroke-width: 2; }
.nfp-chart-message { text-align: center; font-size: .85rem; color: var(--color-text-muted); padding-top: 4rem; }
.nfp-legend { display: flex; flex-wrap: wrap; gap: 1rem; font-size: .7rem; color: var(--color-text-muted); margin-top: .5rem; }
.nfp-legend span::before { content: ''; display: inline-block; width: .65rem; height: .45rem; background: #1bc99a; margin-right: .35rem; }
.nfp-legend span:nth-child(2)::before { background: #7d9eff; }
.nfp-chart-preview { height: 170px; display: flex; align-items: flex-end; gap: 6%; padding: 2rem; opacity: .25; filter: blur(5px); }
.nfp-chart-preview i { display: block; width: 12%; height: 45%; background: var(--color-text-muted); }
.nfp-chart-preview i:nth-child(2n) { height: 75%; }
[data-locked-chart] .nfp-chart-message { position: absolute; inset: 0; padding-top: 5rem; }
.nfp-table-wrap { position: relative; width: 100%; overflow: auto; max-height: 620px; border: 1px solid var(--color-border-subtle); border-radius: .7rem; overscroll-behavior: contain; }
.nfp-table { width: 100%; border-collapse: collapse; background: var(--rm-table-body-bg); font-size: .8rem; }
.nfp-table th, .nfp-table td { padding: .65rem .7rem; border-bottom: 1px solid var(--color-border-subtle); vertical-align: middle; white-space: nowrap; }
.nfp-table thead th { position: sticky; top: 0; z-index: 1; background: var(--rm-table-header-bg); color: var(--color-text-muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .03em; }
.nfp-table tbody th { font-weight: 500; text-align: left; }
.nfp-table tbody tr:hover { background: var(--rm-table-hover-bg); }
.nfp-table strong { font-weight: 600; font-variant-numeric: tabular-nums; }
.nfp-table small { display: block; font-size: .68rem; color: var(--color-text-muted); margin-top: .12rem; }
.nfp .assignment-lock { min-width: 1.6rem; padding: 0 .15rem; }
.nfp-table .rm-team-logo-link { width: auto; min-width: 0; display: inline-flex; gap: .4rem; align-items: center; }
.nfp-table .rm-team-logo-shell { width: 24px; height: 24px; flex: 0 0 24px; }
.nfp-table .rm-team-logo-img { width: 22px; height: 22px; }
.nfp-table .rm-team-logo-label { display: block; -webkit-line-clamp: unset; white-space: normal; font-size: .8rem; font-weight: 500; color: var(--color-text); line-height: 1.2; max-width: 10rem; }
.nfp-game-team { display: flex; gap: .4rem; align-items: center; min-width: 10rem; position: relative; padding-left: .8rem; }
.nfp-game-team + .nfp-game-team { margin-top: .25rem; }
.nfp-game-team > strong { margin-left: auto; }
.nfp-at { position: absolute; left: -.1rem; font-size: .6rem; color: var(--color-text-muted); }
.nfp-crew { font-size: .7rem; min-width: 10rem; margin-top: .5rem; }
.nfp-crew div { display: grid; grid-template-columns: 5rem 1fr; gap: .3rem; }
.nfp-crew dt { font-weight: 400; color: var(--color-text-muted); }
.nfp-crew dd { margin: 0; }
.nfp-pagination { display: flex; justify-content: center; gap: 1rem; align-items: center; font-size: .8rem; margin: .8rem 0; }
.nfp-inspector { display: grid; gap: .5rem; background: var(--color-surface); border-radius: .6rem; padding: .85rem; }
.nfp-inspector input { width: 100%; padding: 0; accent-color: var(--color-primary); }
.nfp-inspector output { font-size: .8rem; min-height: 2.4em; }
.nfp-guide { border-top: 1px solid var(--color-border-subtle); padding: 1rem 0; font-size: .8rem; color: var(--color-text-muted); }
.nfp-guide summary { color: var(--color-text); cursor: pointer; }
.nfp-guide p { margin: .7rem 0; }
.nfp-role-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: .5rem 1rem; margin-top: .7rem; }
.nfp-role-list div { display: flex; justify-content: space-between; border-bottom: 1px solid var(--color-border-subtle); }
.nfp [hidden] { display: none !important; }
html[data-theme="light"] .nfp-chart .primary { fill: #087c5e; stroke: #087c5e; }
html[data-theme="light"] .nfp-chart .secondary { fill: #3c63cc; stroke: #3c63cc; }
html[data-theme="light"] .nfp-chart .negative { fill: #bd364c; stroke: #bd364c; }
@media (max-width: 760px) {
  .nfp { padding: 0 .75rem; }
  .nfp-header { flex-direction: column; align-items: stretch; gap: 1rem; }
  .nfp-official-search select { width: auto; flex: 1; }
  .nfp-stats { grid-template-columns: repeat(2, minmax(0,1fr)); gap: .5rem; }
  .nfp-stat:first-child { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
  .nfp-stat:first-child > strong { margin: 0; }
  .nfp-filters p { width: 100%; margin: 0; }
  .nfp-chart-grid { grid-template-columns: minmax(0,1fr); }
  .nfp-chart { min-height: 160px; }
  .nfp-tabs a { font-size: .8rem; padding: .55rem .65rem; }
  .nfp-games-table thead { display: none; }
  .nfp-games-table, .nfp-games-table tbody { display: block; }
  .nfp-games-table tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); padding: .5rem; border-bottom: 1px solid var(--color-border-subtle); }
  .nfp-games-table td { display: block; padding: .45rem; border: 0; min-width: 0; white-space: normal; }
  .nfp-games-table td:nth-child(1), .nfp-games-table td:nth-child(2) { grid-column: 1 / -1; }
  .nfp-games-table td[data-label]::before { content: attr(data-label); display: block; font-size: .62rem; color: var(--color-text-muted); text-transform: uppercase; margin-bottom: .2rem; }
  .nfp-games-table td:nth-child(-n+2)::before { display: none; }
  .nfp-table td[colspan] { grid-column: 1 / -1; }
  .nfp-crew { min-width: 0; }
  .nfp-crew div { grid-template-columns: 1fr; }
}
