@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,500;0,600;0,700;0,800;0,900;1,700&family=IBM+Plex+Mono:wght@500;600&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap");

/* CourtsideIQ premium system
   Broadcast intelligence desk: ink, chalk, one live signal. */
:root {
  --bg: #050705;
  --surface: #0a0f0b;
  --surface-2: #0e1510;
  --surface-3: #141d16;
  --surface-raised: #18221a;
  --text: #f1f5ef;
  --paper: #f1f5ef;
  --muted: #95a098;
  --muted-strong: #bec7c0;
  --green: #55ff22;
  --green-soft: rgba(85, 255, 34, 0.12);
  --green-line: rgba(85, 255, 34, 0.42);
  --blue: #aab7af;
  --purple: #c7d1ca;
  --amber: #d8ab58;
  --danger: #ff6b5f;
  --info: #8fb5a0;
  --line: rgba(221, 234, 224, 0.12);
  --line-strong: rgba(221, 234, 224, 0.24);
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-data: "IBM Plex Mono", ui-monospace, monospace;
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --shadow-low: 0 12px 30px rgba(0, 0, 0, 0.22);
  --shadow-high: 0 28px 80px rgba(0, 0, 0, 0.38);
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --page-max: 1600px;
  font-family: var(--font-body);
}

html {
  background: var(--bg);
  color-scheme: dark;
  scrollbar-color: rgba(85, 255, 34, 0.4) #080b08;
}

body {
  background:
    linear-gradient(90deg, transparent 0 5.5%, rgba(221, 234, 224, 0.025) 5.55%, transparent 5.6% 94.4%, rgba(221, 234, 224, 0.025) 94.45%, transparent 94.5%),
    linear-gradient(180deg, #050705 0%, #080d09 46%, #050705 100%);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
}

body::after {
  background: linear-gradient(90deg, var(--green) 0 12%, rgba(85, 255, 34, 0.18) 12% 100%);
  content: "";
  height: 2px;
  left: 0;
  pointer-events: none;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 4000;
}

::selection {
  background: var(--green);
  color: #071007;
}

:focus-visible {
  outline: 2px solid var(--green) !important;
  outline-offset: 3px;
}

a,
button,
input,
select,
textarea,
summary {
  font-family: inherit;
}

a,
button,
summary {
  transition:
    background-color 160ms var(--ease-out),
    border-color 160ms var(--ease-out),
    color 160ms var(--ease-out),
    opacity 160ms var(--ease-out),
    transform 160ms var(--ease-out);
}

h1,
h2,
h3,
h4,
.team-card-score strong,
.metric-tile strong,
.summary-metric strong,
.trade-fit-score b,
.contract-projection-card strong {
  font-family: var(--font-display);
}

h1,
h2,
h3 {
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(4rem, 7vw, 7.75rem);
  font-weight: 800;
  line-height: 0.86;
  text-transform: uppercase;
}

h2 {
  font-weight: 750;
  line-height: 0.94;
}

.eyebrow,
.ciq-kicker,
.section-label,
.panel > header,
th,
label {
  letter-spacing: 0.075em;
}

strong,
b,
[class*="score"] {
  font-variant-numeric: tabular-nums;
}

main,
.ciq-shell,
.team-page-shell,
.fit-engine-shell,
.contract-engine-shell,
.trade-shell,
.pricing-shell,
.account-shell,
.metric-explainer-shell {
  max-width: var(--page-max);
}

.panel,
.team-panel,
.player-panel,
.compare-card,
.role-score-card,
.metric-explainer-card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.018), var(--shadow-low);
}

.panel > header,
.team-panel > header,
.player-panel > header {
  border-bottom-color: var(--line);
}

.panel:hover,
.team-panel:hover,
.player-panel:hover {
  border-color: rgba(221, 234, 224, 0.2);
}

button,
.button,
.primary-button,
.secondary-button,
.account-link,
.team-card-action {
  border-radius: var(--radius-sm);
}

button:not([disabled]):active,
.button:active,
.primary-button:active {
  transform: translateY(1px);
}

input,
select,
textarea {
  background-color: #0a100c !important;
  border: 1px solid var(--line-strong) !important;
  border-radius: var(--radius-sm) !important;
  color: var(--text) !important;
}

input:hover,
select:hover,
textarea:hover {
  border-color: rgba(85, 255, 34, 0.38) !important;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green) !important;
  box-shadow: 0 0 0 3px rgba(85, 255, 34, 0.1) !important;
  outline: 0 !important;
}

table {
  border-collapse: collapse;
}

th {
  color: #849087;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

td {
  border-color: var(--line) !important;
}

tbody tr {
  transition: background-color 140ms ease;
}

tbody tr:hover {
  background: rgba(255, 255, 255, 0.025);
}

/* Shared navigation */
.global-site-nav {
  align-items: center;
  background: rgba(5, 7, 5, 0.96);
  backdrop-filter: blur(20px) saturate(120%);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.22);
  gap: clamp(1.4rem, 2.8vw, 3rem);
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 76px;
  padding: 0.72rem clamp(1rem, 3vw, 3.5rem);
}

.global-nav-brand {
  display: grid;
  gap: 0.1rem;
}

.global-nav-brand img {
  height: 35px;
  object-position: left center;
  width: 180px;
}

.global-nav-brand > span {
  color: #7d8a80;
  font-family: var(--font-display);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.19em;
  padding-left: 45px;
  text-transform: uppercase;
  white-space: nowrap;
}

.global-nav-menu {
  gap: clamp(0.8rem, 1.5vw, 1.5rem);
  grid-template-columns: minmax(0, 1fr) minmax(180px, 270px) auto;
}

.global-nav-links {
  gap: clamp(0.75rem, 1.3vw, 1.4rem);
}

.global-nav-links > a,
.global-tools-menu > summary {
  color: #c8d0ca;
  font-family: var(--font-display);
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.055em;
  padding: 1rem 0;
  text-transform: uppercase;
}

.global-tools-menu > summary {
  align-items: center;
  display: flex;
  gap: 0.3rem;
}

.global-tools-menu > summary svg {
  fill: none;
  height: 14px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
  width: 14px;
}

.global-nav-links > a.active::after,
.global-tools-menu.active > summary::after {
  bottom: 0.3rem;
  height: 3px;
}

.global-nav-links > a:hover,
.global-nav-links > a.active,
.global-tools-menu > summary:hover,
.global-tools-menu.active > summary {
  color: var(--paper);
}

.global-tools-panel {
  background: #090e0a;
  border-color: var(--line-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-high);
  left: 0;
  min-width: 370px;
  padding: 0.5rem;
  top: calc(100% + 0.55rem);
  transform: none;
}

.global-tools-panel::before {
  background: var(--green);
  content: "";
  height: 2px;
  left: 0.5rem;
  position: absolute;
  right: 66%;
  top: -1px;
}

.global-tools-panel a {
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 0.72rem 0.8rem;
}

.global-tools-panel a:hover {
  background: var(--surface-3);
  border-color: var(--line);
}

.global-tools-panel a > span {
  display: grid;
  gap: 0.05rem;
}

.global-tools-panel b {
  color: var(--paper);
  font-size: 0.86rem;
}

.global-tools-panel em {
  color: var(--muted);
  font-size: 0.67rem;
  font-style: normal;
  font-weight: 500;
}

.global-tools-panel small {
  align-items: center;
  display: flex;
  gap: 0.28rem;
  letter-spacing: 0.06em;
}

.global-tools-panel small svg {
  fill: none;
  height: 12px;
  stroke: currentColor;
  stroke-width: 1.25;
  width: 12px;
}

.global-tools-panel a:not(:first-child) small::before {
  content: none;
}

.global-player-search {
  background: #090e0a;
  border-color: var(--line);
  border-radius: var(--radius-sm);
}

.global-player-search > svg {
  fill: none;
  height: 17px;
  margin-left: 0.72rem;
  stroke: #8e9991;
  stroke-linecap: round;
  stroke-width: 1.5;
  width: 17px;
}

.global-player-search input {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: var(--paper) !important;
}

.global-player-search:focus-within {
  border-color: var(--green-line);
  box-shadow: 0 0 0 3px rgba(85, 255, 34, 0.08);
}

.global-player-results {
  background: #090e0a;
  border-color: var(--line-strong);
  border-radius: var(--radius-sm);
}

.global-player-results a:hover {
  background: var(--surface-3);
}

.global-account-link,
.global-admin-link,
.global-subscribe-link {
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.055em;
  min-height: 40px;
  padding: 0.66rem 0.82rem;
  text-transform: uppercase;
}

.global-account-link,
.global-admin-link {
  border-color: var(--line-strong);
}

.global-subscribe-link {
  box-shadow: inset 0 -2px rgba(0, 0, 0, 0.22);
}

/* Homepage / editorial cover */
body.ciq-home {
  background:
    linear-gradient(90deg, transparent 0 7%, rgba(221, 234, 224, 0.025) 7.05%, transparent 7.1% 92.9%, rgba(221, 234, 224, 0.025) 92.95%, transparent 93%),
    linear-gradient(180deg, #050705, #080d09 55%, #050705);
}

.ciq-home .ciq-shell {
  max-width: var(--page-max);
  padding: clamp(0.8rem, 1.5vw, 1.35rem) clamp(0.75rem, 2vw, 1.7rem) 3rem;
}

.ciq-hero {
  background:
    linear-gradient(90deg, rgba(85, 255, 34, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(85, 255, 34, 0.035) 1px, transparent 1px),
    #090e0a;
  background-size: 72px 72px;
  border-color: var(--line-strong);
  border-radius: var(--radius-md);
  gap: clamp(1.2rem, 2.6vw, 3rem);
  grid-template-columns: minmax(400px, 0.82fr) minmax(600px, 1.18fr);
  min-height: clamp(660px, 48vw, 790px);
  overflow: hidden;
  padding: 0;
  position: relative;
}

.ciq-hero::before {
  background: var(--green);
  content: "";
  inset: 0 auto 0 0;
  position: absolute;
  width: 4px;
  z-index: 5;
}

.ciq-hero::after {
  border: 1px solid rgba(221, 234, 224, 0.06);
  border-radius: 50%;
  content: "";
  height: 520px;
  left: 47%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 520px;
}

.ciq-hero-copy {
  justify-content: center;
  padding: clamp(2.25rem, 5vw, 5.5rem) 0 clamp(2.25rem, 4vw, 4rem) clamp(2rem, 4vw, 4.5rem);
  position: relative;
  z-index: 4;
}

.ciq-kicker {
  align-items: center;
  color: #b7c0b9;
  display: flex;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  gap: 0.65rem;
  letter-spacing: 0.11em;
}

.ciq-kicker > span {
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(85, 255, 34, 0.1);
  height: 7px;
  width: 7px;
}

.ciq-hero h1 {
  color: var(--paper);
  font-family: var(--font-display);
  font-size: clamp(4.6rem, 5.45vw, 7.8rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.82;
  max-width: 690px;
  text-wrap: balance;
  text-transform: uppercase;
}

.ciq-hero p:not(.ciq-kicker) {
  color: var(--muted-strong);
  font-size: clamp(0.95rem, 1.2vw, 1.08rem);
  line-height: 1.62;
  max-width: 590px;
}

.ciq-hero-metric-pills {
  border: 1px solid var(--line);
  display: grid;
  gap: 0;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 1.7rem;
  max-width: 520px;
}

.ciq-hero-metric-pills a {
  background: rgba(255, 255, 255, 0.018);
  border: 0;
  border-radius: 0;
  border-right: 1px solid var(--line);
  color: #aeb8b0;
  font-family: var(--font-data);
  font-size: 0.7rem;
  height: 42px;
  width: auto;
}

.ciq-hero-metric-pills a:last-child {
  border-right: 0;
}

.ciq-hero-metric-pills a:hover,
.ciq-hero-metric-pills a:focus-visible {
  background: var(--green);
  color: #071007;
  transform: none;
}

.ciq-hero-actions {
  align-items: center;
  margin-top: 1.2rem;
}

.ciq-hero-actions a {
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.055em;
  min-height: 48px;
  text-transform: uppercase;
}

.ciq-hero-actions a:first-child {
  box-shadow: inset 0 -2px rgba(0, 0, 0, 0.2);
  gap: 1rem;
}

.ciq-hero-actions a:first-child:hover {
  transform: translateY(-2px);
}

.ciq-hero-actions a:last-child {
  background: transparent;
  border-color: var(--line-strong);
  color: #ccd4ce;
}

.ciq-hero-proof {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(2rem, 5vh, 4rem);
  max-width: 560px;
  padding-top: 1rem;
}

.ciq-hero-proof span {
  color: #7f8b82;
  display: grid;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}

.ciq-hero-proof b {
  color: var(--paper);
  font-family: var(--font-data);
  font-size: 1.25rem;
  letter-spacing: -0.06em;
}

.ciq-hero-visual {
  border-left: 1px solid var(--line);
  min-height: 100%;
  position: relative;
  z-index: 2;
}

.ciq-hero-stage {
  background:
    linear-gradient(90deg, rgba(221, 234, 224, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(221, 234, 224, 0.04) 1px, transparent 1px),
    linear-gradient(145deg, #0d150f 0%, #060906 68%);
  background-size: 64px 64px;
  border: 0;
  border-radius: 0;
}

.ciq-hero-stage::before {
  border: 1px solid rgba(85, 255, 34, 0.18);
  border-radius: 50%;
  content: "";
  height: 620px;
  left: 50%;
  position: absolute;
  top: 51%;
  transform: translate(-50%, -50%);
  width: 620px;
}

.ciq-hero-stage::after {
  background: linear-gradient(90deg, transparent, rgba(85, 255, 34, 0.18), transparent);
  content: "";
  height: 1px;
  left: 5%;
  position: absolute;
  right: 5%;
  top: 50%;
}

.ciq-stage-label {
  align-items: end;
  display: grid;
  justify-items: end;
  position: absolute;
  right: 1.3rem;
  top: 1.2rem;
  z-index: 6;
}

.ciq-stage-label span,
.ciq-stage-label small {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ciq-stage-label span {
  color: var(--paper);
  font-size: 0.72rem;
}

.ciq-stage-label small {
  color: var(--green);
  font-size: 0.62rem;
}

.ciq-feature-art {
  bottom: 0;
  width: min(95%, 860px);
}

.ciq-feature-art::before {
  background:
    linear-gradient(rgba(221, 234, 224, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(221, 234, 224, 0.05) 1px, transparent 1px),
    #101711;
  background-size: 36px 36px;
  border: 1px solid var(--green-line);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 6rem;
  height: 320px;
  margin-bottom: 9rem;
  width: 320px;
}

.ciq-feature-art.has-photo::before {
  display: none;
}

.ciq-feature-art:not(.has-photo) {
  align-items: center;
  bottom: 0;
  height: 100%;
}

.ciq-feature-art:not(.has-photo) strong {
  bottom: 6.4rem;
}

.ciq-feature-art img {
  filter: drop-shadow(0 30px 46px rgba(0, 0, 0, 0.58)) saturate(0.92) contrast(1.06);
  max-height: clamp(680px, 52vw, 890px);
  transform: scale(1.08) translateY(0);
}

.ciq-feature-art strong {
  background: rgba(5, 7, 5, 0.9);
  border-color: var(--green-line);
  border-radius: var(--radius-sm);
  bottom: 6.4rem;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  padding: 0.5rem 0.75rem;
}

.ciq-hero-stage svg {
  bottom: 9rem;
  left: 35%;
  opacity: 0.22;
}

.ciq-hero-stat {
  backdrop-filter: blur(14px);
  background: rgba(5, 8, 5, 0.84);
  border-color: var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 0.72rem 0.8rem;
}

.ciq-hero-stat span,
.ciq-hero-stat small {
  font-family: var(--font-display);
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.ciq-hero-stat b {
  font-family: var(--font-data);
  font-size: clamp(1.4rem, 2.2vw, 2.25rem);
  letter-spacing: -0.08em;
}

.ciq-hero-stat small {
  color: #8d998f;
  font-size: 0.58rem;
}

.stat-rei {
  left: 1.25rem;
  top: 1.25rem;
  width: 158px;
}

.stat-rei b {
  font-size: clamp(2.5rem, 4vw, 4.2rem);
}

.stat-pfe,
.stat-piv,
.stat-vse,
.stat-cvr {
  bottom: 1.15rem;
  top: auto;
  width: calc(25% - 1.38rem);
}

.stat-pfe { left: 1.15rem; right: auto; }
.stat-piv { bottom: 1.15rem; left: calc(25% + 0.35rem); }
.stat-vse { bottom: 1.15rem; left: auto; right: calc(25% + 0.35rem); }
.stat-cvr { bottom: 1.15rem; right: 1.15rem; }

.ciq-visual-strip {
  background: #090e0a;
  border: 1px solid var(--line);
  border-top: 3px solid var(--green);
  gap: 0;
  margin-top: 0.75rem;
}

.ciq-visual-strip > article {
  border-right: 1px solid var(--line);
}

.ciq-visual-strip > article:last-child {
  border-right: 0;
}

.ciq-visual-card,
.ciq-visual-card.purple,
.ciq-visual-card.blue,
.ciq-visual-card.gold,
.ciq-visual-card.cyan {
  background: transparent;
  border: 0;
  border-radius: 0;
  height: 158px;
  padding: 0.8rem 0.9rem 0;
}

.ciq-visual-card strong {
  font-family: var(--font-data);
  letter-spacing: -0.08em;
}

.ciq-visual-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.visual-photo img {
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.45));
}

/* Homepage section language */
.ciq-role-map-section,
.ciq-rei-board,
.ciq-mini-board,
.ciq-explainer article,
.ciq-stats article,
.ciq-metric-system article,
.ciq-report-panel,
.ciq-subscribe {
  background: var(--surface-2);
  border-color: var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-low);
}

.ciq-role-map-section,
.ciq-leaderboards,
.ciq-home-bottom,
.ciq-subscribe {
  margin-top: clamp(2.75rem, 7vw, 7rem);
}

.ciq-role-map-heading h2,
.ciq-explainer > h2,
.ciq-leaderboards > h2,
.ciq-bottom-heading h2,
.ciq-subscribe h2 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 5.6rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.86;
  text-transform: uppercase;
}

.ciq-role-map-controls button,
.ciq-role-pills a {
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.ciq-role-map-stage {
  background:
    linear-gradient(rgba(221, 234, 224, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(221, 234, 224, 0.055) 1px, transparent 1px),
    #070c08;
  background-size: 56px 56px;
  border-radius: var(--radius-sm);
}

.ciq-role-map-card {
  background: #090f0a;
  border-radius: var(--radius-sm);
}

.ciq-explainer {
  border-top: 1px solid var(--line-strong);
  padding-top: 1.5rem;
}

.ciq-explainer article {
  border-top: 3px solid rgba(85, 255, 34, 0.4);
}

.ciq-explainer article span {
  font-family: var(--font-data);
}

.ciq-rei-board,
.ciq-mini-board {
  padding: 1.1rem;
}

.ciq-rei-board {
  border-top: 3px solid var(--green);
}

.ciq-rei-board h3,
.ciq-mini-board h3,
.ciq-rei-board td strong,
.ciq-mini-board b {
  font-family: var(--font-display);
}

.ciq-rei-board td,
.ciq-rei-board th,
.ciq-mini-board li {
  border-color: var(--line);
}

.ciq-insight-cards article,
.ciq-metric-system article {
  background: #0b110d;
  border-color: var(--line);
  border-radius: var(--radius-sm);
}

.ciq-metric-system article {
  border-top: 2px solid var(--line-strong);
}

.ciq-metric-system article:hover {
  border-top-color: var(--green);
  transform: translateY(-3px);
}

.ciq-metric-system i {
  font-family: var(--font-data);
}

.ciq-subscribe {
  border-left: 4px solid var(--green);
  padding: clamp(1.5rem, 4vw, 3.6rem);
}

.ciq-subscribe-actions a {
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

@keyframes ciq-premium-enter {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.ciq-home .ciq-hero,
.teams-index-page .teams-hero,
.player-dashboard-page .player-dashboard-hero,
.team-dashboard-page .team-dashboard-hero,
.fit-engine-title,
.contract-engine-title,
.trade-title,
.role-detail-hero {
  animation: ciq-premium-enter 620ms var(--ease-out) both;
}

/* Teams index: league intelligence board */
.teams-index-page main {
  max-width: var(--page-max);
  padding: clamp(0.9rem, 2vw, 1.6rem) clamp(0.75rem, 2vw, 1.6rem) 4rem;
}

.teams-hero {
  background:
    linear-gradient(90deg, rgba(85, 255, 34, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(85, 255, 34, 0.035) 1px, transparent 1px),
    #090e0a;
  background-size: 72px 72px;
  border: 1px solid var(--line-strong);
  border-left: 4px solid var(--green);
  border-radius: var(--radius-md);
  min-height: 370px;
  padding: clamp(2rem, 4vw, 4rem);
}

.teams-hero h1 {
  font-size: clamp(4.6rem, 7vw, 8.5rem);
  max-width: 960px;
}

.teams-hero > div > p:last-child {
  color: var(--muted-strong);
  font-size: 1.02rem;
  line-height: 1.65;
  max-width: 680px;
}

.teams-hero aside {
  align-content: end;
  background: rgba(5, 8, 5, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: none;
  min-width: 290px;
  padding: 1.25rem;
}

.teams-hero aside > span,
.league-pulse > span,
.team-card header span,
.team-card header small {
  font-family: var(--font-display);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.teams-hero aside > strong {
  color: var(--paper);
  font-family: var(--font-data);
  font-size: 5.5rem;
  letter-spacing: -0.1em;
}

.league-command-board,
.team-league-map,
.conference-lanes {
  margin-top: 0.75rem;
}

.league-featured-team,
.league-pulse,
.team-league-map,
.conference-lanes article {
  background: var(--surface-2);
  border-color: var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-low);
}

.league-featured-team {
  border-top: 3px solid var(--green);
}

.team-league-map h2,
.teams-grid-heading h2 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 4vw, 4.8rem);
  font-weight: 800;
  line-height: 0.9;
  text-transform: uppercase;
}

.identity-map button,
.team-filter-pills button {
  background: #0a100b;
  border-color: var(--line);
  border-radius: var(--radius-sm);
}

.identity-map button:hover,
.identity-map button.active,
.team-filter-pills button:hover,
.team-filter-pills button.active {
  background: var(--surface-raised);
  border-color: var(--green-line);
  color: var(--paper);
}

.teams-index-page .team-grid {
  gap: 0.8rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.teams-index-page .team-card {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--team-primary) 10%, transparent), transparent 32%),
    #0a100b;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-low);
  overflow: hidden;
  padding: 1.1rem;
  position: relative;
}

.teams-index-page .team-card::before {
  background: var(--team-primary, var(--green));
  content: "";
  height: 3px;
  left: 0;
  position: absolute;
  right: 62%;
  top: 0;
}

.teams-index-page .team-card:hover {
  border-color: color-mix(in srgb, var(--team-primary) 48%, var(--line-strong));
  box-shadow: var(--shadow-high);
  transform: translateY(-4px);
}

.team-card-watermark {
  filter: grayscale(1);
  opacity: 0.065;
}

.team-card h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3vw, 3.3rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.9;
  text-transform: uppercase;
}

.team-card-logo {
  border-radius: var(--radius-sm);
}

.team-card-player-photos a,
.team-card-player-photos img {
  border-radius: 50%;
}

.team-card-player-photos a {
  background: #101711;
  border-color: color-mix(in srgb, var(--team-primary) 52%, var(--line-strong));
}

.team-card-player-photos img {
  filter: drop-shadow(0 12px 14px rgba(0, 0, 0, 0.38));
}

.team-card-score {
  background: rgba(0, 0, 0, 0.17);
  border-color: var(--line);
  border-radius: var(--radius-sm);
}

.team-card-score-value strong {
  color: var(--paper);
  font-family: var(--font-data);
  letter-spacing: -0.08em;
}

.team-card-score-value span,
.team-card-score > span,
.team-card-identity span {
  color: var(--green);
  font-family: var(--font-display);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.team-card-action {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--paper);
  font-family: var(--font-display);
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.team-card-action:hover {
  background: var(--green);
  border-color: var(--green);
  color: #071007;
}

/* Team dossier */
.team-dashboard-page {
  --team-ink: color-mix(in srgb, var(--team-primary, var(--green)) 10%, #090e0a);
}

.team-dashboard-page .team-page-shell {
  max-width: var(--page-max);
  padding: clamp(0.75rem, 2vw, 1.5rem) clamp(0.75rem, 2vw, 1.5rem) 4rem;
}

.team-dashboard-page .team-dashboard-hero {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--team-primary, var(--green)) 16%, transparent), transparent 48%),
    linear-gradient(90deg, rgba(221, 234, 224, 0.035) 1px, transparent 1px),
    #090e0a;
  background-size: auto, 68px 68px, auto;
  border: 1px solid var(--line-strong);
  border-top: 3px solid var(--team-primary, var(--green));
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-high);
  gap: 0;
  grid-template-columns: minmax(430px, 0.9fr) minmax(600px, 1.1fr);
  min-height: 360px;
  overflow: hidden;
}

.team-dashboard-page .team-title-block {
  border-right: 1px solid var(--line);
  gap: clamp(1.2rem, 2.5vw, 2.5rem);
  padding: clamp(1.5rem, 3vw, 3rem);
}

.team-dashboard-page .team-logo-frame {
  background: rgba(0, 0, 0, 0.2);
  border-color: color-mix(in srgb, var(--team-primary, var(--green)) 50%, var(--line));
  border-radius: 50%;
}

.team-dashboard-page .team-title-block h1 {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 6vw, 7rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.83;
  text-transform: uppercase;
}

.team-dashboard-page .team-title-block > div > p,
.team-dashboard-page .team-title-block > div > span {
  color: var(--muted);
  font-family: var(--font-display);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.team-switcher > span {
  color: var(--green);
  font-family: var(--font-display);
}

.team-dashboard-page .team-hero-metrics {
  background: rgba(5, 8, 5, 0.58);
  gap: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.team-dashboard-page .team-hero-metrics article {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  border-radius: 0;
  min-height: 120px;
  padding: 1rem;
}

.team-dashboard-page .team-hero-metrics .team-iq-main {
  align-content: center;
  grid-row: span 2;
  min-height: 240px;
}

.team-dashboard-page .team-hero-metrics span,
.team-dashboard-page .team-hero-metrics small {
  font-family: var(--font-display);
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.team-dashboard-page .team-hero-metrics strong {
  color: var(--paper);
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 3.6rem);
  letter-spacing: -0.03em;
  line-height: 0.92;
  text-transform: uppercase;
}

.team-dashboard-page .team-hero-metrics .team-iq-main strong {
  color: var(--green);
  font-family: var(--font-data);
  font-size: clamp(4.4rem, 7vw, 7rem);
  letter-spacing: -0.1em;
}

.team-tabs {
  background: rgba(6, 9, 6, 0.94);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-top: 0.75rem;
  padding: 0;
  position: sticky;
  top: 76px;
  z-index: 20;
}

.team-tabs a {
  border-right: 1px solid var(--line);
  color: var(--muted-strong);
  font-family: var(--font-display);
  letter-spacing: 0.065em;
  min-height: 46px;
  padding: 0.85rem 1.1rem;
  text-transform: uppercase;
}

.team-tabs a.active,
.team-tabs a:hover {
  background: var(--surface-raised);
  color: var(--paper);
}

.team-tabs a.active {
  box-shadow: inset 0 -3px var(--green);
}

.team-blueprint,
.team-dashboard-grid {
  gap: 0.75rem;
}

.team-blueprint-main,
.team-signal-stack,
.team-role-coverage,
.team-panel {
  background: var(--surface-2);
  border-color: var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-low);
}

.team-blueprint-main {
  border-top: 3px solid color-mix(in srgb, var(--team-primary, var(--green)) 70%, var(--paper));
}

.blueprint-court {
  background:
    linear-gradient(rgba(221, 234, 224, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(221, 234, 224, 0.045) 1px, transparent 1px),
    #080d09;
  background-size: 48px 48px;
  border-color: var(--line);
  border-radius: var(--radius-sm);
}

.team-panel h2,
.team-blueprint h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: uppercase;
}

.team-panel > header,
.team-blueprint article > header {
  border-bottom: 1px solid var(--line);
}

.cap-meter,
.contract-donut {
  filter: saturate(0.78);
}

.team-roster-section {
  border-top: 1px solid var(--line-strong);
  margin-top: clamp(3rem, 7vw, 6rem);
  padding-top: 1.4rem;
}

.team-roster-section h2 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 5.8rem);
  font-weight: 800;
  text-transform: uppercase;
}

.team-roster-card {
  background: #0a100b;
  border-color: var(--line);
  border-radius: var(--radius-sm);
}

.team-roster-card:hover {
  border-color: var(--green-line);
  transform: translateY(-3px);
}

.team-roster-card img,
.team-roster-card .team-roster-avatar {
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.4));
}

/* Player dossier */
.player-dashboard-page main {
  max-width: var(--page-max);
  padding: clamp(0.75rem, 2vw, 1.5rem) clamp(0.75rem, 2vw, 1.5rem) 4rem;
}

.player-dashboard-hero {
  background:
    linear-gradient(90deg, rgba(85, 255, 34, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(85, 255, 34, 0.035) 1px, transparent 1px),
    #090e0a;
  background-size: 68px 68px;
  border: 1px solid var(--line-strong);
  border-left: 4px solid var(--green);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-high);
  gap: 0;
  grid-template-columns: minmax(350px, 0.75fr) minmax(620px, 1.25fr);
  overflow: hidden;
  padding: 0;
}

.player-hero-art {
  background:
    radial-gradient(circle at 50% 65%, rgba(85, 255, 34, 0.12), transparent 45%),
    #080c08;
  border-right: 1px solid var(--line);
  min-height: 620px;
}

.player-hero-art::before {
  filter: grayscale(1);
  opacity: 0.06;
}

.player-hero-art img {
  filter: drop-shadow(0 30px 42px rgba(0, 0, 0, 0.5)) saturate(0.94) contrast(1.05);
  max-height: 650px;
}

.player-photo-fallback {
  align-items: center;
  background:
    linear-gradient(rgba(221, 234, 224, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(221, 234, 224, 0.05) 1px, transparent 1px),
    #101711;
  background-size: 34px 34px;
  border: 1px solid var(--green-line);
  border-radius: 50%;
  color: var(--paper);
  display: flex;
  font-family: var(--font-display);
  font-size: clamp(5rem, 9vw, 8rem);
  font-weight: 800;
  height: min(310px, 72vw);
  justify-content: center;
  margin: auto;
  position: relative;
  width: min(310px, 72vw);
  z-index: 2;
}

.player-photo-fallback[hidden] {
  display: none;
}

.player-hero-info {
  align-content: center;
  background: rgba(5, 8, 5, 0.48);
  padding: clamp(1.5rem, 3.5vw, 3.5rem);
}

.breadcrumb,
.player-title-row,
.player-title-row span {
  font-family: var(--font-display);
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.breadcrumb a,
.player-title-row span:last-child {
  color: var(--green);
}

.player-heading-block {
  position: relative;
}

.player-profile-actions {
  display: flex;
  gap: 0.55rem;
  position: absolute;
  right: 0;
  top: 0;
}

.player-profile-actions button,
.player-profile-actions a,
.account-save-button {
  background: rgba(7, 15, 10, 0.88);
  border: 1px solid var(--green-line);
  border-radius: 4px;
  color: var(--paper);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.035em;
  padding: 0.72rem 0.85rem;
  text-decoration: none;
  text-transform: uppercase;
}

.player-profile-actions button:hover,
.player-profile-actions a:hover,
.account-save-button:hover,
.player-profile-actions button.is-saved,
.account-save-button.is-saved {
  background: var(--green);
  border-color: var(--green);
  color: #061008;
}

.account-save-button {
  margin-top: 1rem;
}

.player-hero-info h1,
.player-hero-info h1.long-name,
.player-hero-info h1.extra-long-name {
  font-family: var(--font-display);
  font-size: clamp(5rem, 7.2vw, 8.5rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.78;
  text-transform: uppercase;
}

.player-quick-card {
  background: rgba(0, 0, 0, 0.14);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  gap: 0;
}

.player-quick-card article {
  border-right: 1px solid var(--line);
  padding: 0.75rem;
}

.player-quick-card article:last-child {
  border-right: 0;
}

.player-quick-card span,
.player-quick-card small,
.metric-tile span,
.metric-tile small {
  font-family: var(--font-display);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.player-quick-card strong,
.metric-tile strong {
  color: var(--paper);
  font-family: var(--font-data);
  letter-spacing: -0.08em;
}

.player-hero-metrics {
  background: #080d09;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  gap: 0;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.metric-tile {
  background: transparent;
  border: 0;
  border-radius: 0;
  border-right: 1px solid var(--line);
  min-height: 118px;
}

.metric-tile:first-child {
  box-shadow: inset 0 3px var(--green);
}

.metric-tile:last-child {
  border-right: 0;
}

.metric-tile:first-child strong {
  color: var(--green);
}

.player-tabs {
  background: rgba(6, 9, 6, 0.95);
  border-color: var(--line);
  border-radius: var(--radius-sm);
  position: sticky;
  top: 76px;
  z-index: 20;
}

.player-tabs a {
  border-radius: 0;
  color: var(--muted-strong);
  font-family: var(--font-display);
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.player-tabs a.active,
.player-tabs a:hover {
  background: var(--surface-raised);
  box-shadow: inset 0 -3px var(--green);
  color: var(--paper);
}

.player-dashboard-grid {
  gap: 0.75rem;
}

.player-panel {
  border-radius: var(--radius-md);
}

.player-panel h2,
.player-panel h3 {
  font-family: var(--font-display);
  letter-spacing: 0;
  text-transform: uppercase;
}

/* Rankings, roles, metric explainers and compare */
.role-detail-hero,
.tool-hero,
.metric-explainer-hero {
  background:
    linear-gradient(90deg, rgba(85, 255, 34, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(85, 255, 34, 0.03) 1px, transparent 1px),
    #090e0a;
  background-size: 64px 64px;
  border: 1px solid var(--line-strong);
  border-left: 4px solid var(--green);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-low);
  padding: clamp(1.5rem, 3.5vw, 3.5rem);
}

.role-detail-hero h1,
.tool-hero h1,
.metric-explainer-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 7vw, 8rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.83;
  text-transform: uppercase;
}

.role-detail-hero > div > p:last-child,
.tool-hero > p:not(.eyebrow),
.metric-explainer-hero p {
  color: var(--muted-strong);
  line-height: 1.65;
}

.back-link {
  color: var(--muted);
  font-family: var(--font-display);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.back-link:hover {
  color: var(--green);
}

.role-score-card {
  background: rgba(5, 8, 5, 0.72);
  border-color: var(--line);
  border-radius: var(--radius-sm);
  min-width: 250px;
}

.role-score-card span,
.role-score-card p {
  font-family: var(--font-display);
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.role-score-card strong {
  color: var(--green);
  font-family: var(--font-data);
  font-size: 5rem;
  letter-spacing: -0.1em;
}

.role-detail-grid {
  gap: 0.75rem;
}

.role-method-card,
.role-leaderboard,
.role-notes {
  border-radius: var(--radius-md);
}

.role-leaderboard {
  border-top: 3px solid var(--green);
}

.role-inputs article,
.role-inputs div {
  background: #090f0a;
  border-color: var(--line);
  border-radius: var(--radius-sm);
}

.role-inputs strong,
.role-leaderboard td:last-child,
.role-leaderboard td:nth-last-child(2) {
  font-family: var(--font-data);
  font-variant-numeric: tabular-nums;
}

.role-leaderboard td a,
.role-leaderboard td strong {
  color: var(--paper);
}

.role-leaderboard tbody tr:hover td a,
.role-leaderboard tbody tr:hover td strong {
  color: var(--green);
}

.role-pagination a,
.role-pagination button {
  background: #090f0a;
  border-color: var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-data);
}

.role-pagination .active,
.role-pagination a:hover,
.role-pagination button:hover {
  background: var(--green);
  border-color: var(--green);
  color: #071007;
}

.related-roles {
  border-top: 1px solid var(--line-strong);
  margin-top: clamp(3rem, 7vw, 6rem);
  padding-top: 1.4rem;
}

.related-roles h2 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 5rem);
  text-transform: uppercase;
}

.role-grid a,
.role-grid span {
  background: #0a100b;
  border-color: var(--line);
  border-radius: var(--radius-sm);
}

.role-grid a:hover {
  background: var(--surface-raised);
  border-color: var(--green-line);
  color: var(--paper);
}

.metric-explainer-shell,
body > main:not(.ciq-shell):not(.team-page-shell):not(.player-main-shell):not(.fit-engine-shell):not(.contract-engine-shell):not(.trade-shell):not(.pricing-shell):not(.account-shell) {
  max-width: var(--page-max);
}

.metric-explainer-card,
.metric-formula-card,
.metric-tier-card,
.compare-card {
  background: var(--surface-2);
  border-color: var(--line);
  border-radius: var(--radius-md);
}

.metric-formula-card code,
.metric-formula-card strong,
.compare-card td:last-child {
  font-family: var(--font-data);
}

.compare-card header {
  border-bottom-color: var(--line);
}

.compare-card header h2,
.compare-card header strong {
  font-family: var(--font-display);
  text-transform: uppercase;
}

/* Shared product-tool grammar */
.role-tool-page,
.fit-engine-page,
.contract-engine-page,
.trade-targets-page {
  background:
    linear-gradient(90deg, transparent 0 6%, rgba(221, 234, 224, 0.025) 6.05%, transparent 6.1% 93.9%, rgba(221, 234, 224, 0.025) 93.95%, transparent 94%),
    linear-gradient(180deg, #050705, #080d09 60%, #050705);
}

.fit-engine-shell,
.contract-engine-shell,
.trade-shell,
.role-tool-page main {
  max-width: var(--page-max);
  padding: clamp(0.75rem, 2vw, 1.5rem) clamp(0.75rem, 2vw, 1.5rem) 4rem;
}

.fit-engine-title,
.contract-engine-title,
.trade-title,
.role-tool-hero {
  background:
    linear-gradient(90deg, rgba(85, 255, 34, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(85, 255, 34, 0.03) 1px, transparent 1px),
    #090e0a;
  background-size: 64px 64px;
  border: 1px solid var(--line-strong);
  border-left: 4px solid var(--green);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-low);
  min-height: 210px;
  padding: clamp(1.5rem, 3vw, 3rem);
}

.fit-engine-title h1,
.contract-engine-title h1,
.trade-title h1,
.role-tool-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 7vw, 8rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.82;
  text-transform: uppercase;
}

.fit-engine-title > p,
.contract-engine-title > p,
.trade-title > p,
.role-tool-hero > p {
  color: var(--muted-strong);
  line-height: 1.65;
}

.fit-engine-page .panel,
.contract-engine-page .panel,
.trade-targets-page .panel,
.trade-target-board,
.role-tool-current,
.role-tool-results,
.role-tool-upgrade,
.role-tool-table,
.role-tool-matches {
  background: var(--surface-2);
  border-color: var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-low);
}

.fit-engine-page .panel h2,
.fit-engine-page .panel h3,
.contract-engine-page .panel h2,
.contract-engine-page .panel h3,
.trade-targets-page .panel h2,
.trade-targets-page .panel h3,
.role-tool-page h2,
.role-tool-page h3 {
  font-family: var(--font-display);
  letter-spacing: 0;
  text-transform: uppercase;
}

.team-player-picker {
  background: #080d09;
  border-color: var(--line);
  border-radius: var(--radius-sm);
}

.team-player-picker label {
  color: var(--muted);
  font-family: var(--font-display);
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.fit-map-card,
.contract-output-card,
.trade-target-board,
.role-tool-results {
  border-top: 3px solid var(--green);
}

.fit-map-stage {
  background-color: #070c08;
  border-color: var(--line);
  border-radius: var(--radius-sm);
}

.fit-team-node {
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.34);
}

.fit-team-node.elite,
.fit-team-node.good,
.fit-team-node.watch {
  --color: var(--green);
}

.fit-map-legend i.good,
.fit-map-legend i.watch {
  background: color-mix(in srgb, var(--green) 64%, #879087);
}

.trade-targets-page {
  --trade-accent: var(--green);
}

.trade-sidebar .panel,
.trade-target-board,
.trade-target-card,
.trade-package div {
  background: #0a100b;
  border-color: var(--line);
}

.trade-team-card a,
.trade-filters button,
.trade-view-toggle button.active {
  background: var(--green);
  border-color: var(--green);
  color: #071007;
}

.trade-target-card {
  border-radius: var(--radius-sm);
  box-shadow: none;
}

.trade-target-card:hover {
  border-color: var(--green-line);
}

.trade-fit-score b,
.trade-grades b,
.trade-package i {
  color: var(--green);
}

.trade-radar-shape {
  fill: rgba(85, 255, 34, 0.22);
  stroke: var(--green);
}

.trade-fit-radar circle {
  fill: var(--green);
  stroke: var(--green);
}

.trade-radar-grid polygon,
.trade-radar-grid line {
  stroke: rgba(221, 234, 224, 0.18);
}

.trade-package i {
  background: var(--green-soft);
  border-color: var(--green-line);
}

.trade-target-main > img,
.fit-player-main img,
.contract-player-main img {
  background: #101711;
  border-color: var(--line-strong);
  border-radius: var(--radius-sm);
}

.contract-engine-page {
  --purple: var(--green);
}

.contract-projection-card,
.contract-market-card,
.contract-scenario-card {
  background: #0a100b;
  border-color: var(--line);
  border-radius: var(--radius-sm);
}

.contract-projection-card strong,
.contract-output-card [class*="value"] {
  color: var(--green);
  font-family: var(--font-data);
}

.role-tool-premium-link,
.role-tool-upgrade a,
.primary-action,
.pricing-cta {
  background: var(--green) !important;
  border-color: var(--green) !important;
  border-radius: var(--radius-sm) !important;
  color: #071007 !important;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.role-tool-score-head strong,
.projection-scoreboard strong {
  color: var(--green);
  font-family: var(--font-data);
}

/* Methodology: visual field manual */
.methodology-page main {
  max-width: var(--page-max);
  padding: clamp(0.75rem, 2vw, 1.5rem) clamp(0.75rem, 2vw, 1.5rem) 4rem;
}

.method-hero,
.methodology-hero {
  background-color: #090e0a !important;
  border-color: var(--line-strong) !important;
  border-left: 4px solid var(--green) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-high);
}

.method-hero h1,
.methodology-hero h1,
.methodology-page h2 {
  font-family: var(--font-display) !important;
  font-weight: 800 !important;
  letter-spacing: -0.04em !important;
  text-transform: uppercase;
}

.method-card,
.method-lens,
.method-map-card,
.method-weight-card,
.method-tier-card,
.method-table-wrap,
.methodology-page [class*="card"] {
  border-color: var(--line) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-low);
}

.methodology-page table {
  background: #090e0a;
}

.methodology-page [class*="donut"],
.methodology-page [class*="ring"] {
  filter: saturate(0.76);
}

/* Pricing and account: commercial layer */
.pricing-shell,
.account-shell {
  max-width: 1440px !important;
  padding: clamp(0.9rem, 2vw, 1.6rem) clamp(0.75rem, 2vw, 1.5rem) 4rem !important;
}

.pricing-hero,
.account-hero {
  background:
    linear-gradient(90deg, rgba(85, 255, 34, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(85, 255, 34, 0.03) 1px, transparent 1px),
    #090e0a !important;
  background-size: 64px 64px !important;
  border: 1px solid var(--line-strong) !important;
  border-left: 4px solid var(--green) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-high);
  padding: clamp(2rem, 4vw, 4rem) !important;
}

.pricing-hero h1,
.account-hero h1 {
  font-family: var(--font-display) !important;
  font-size: clamp(4.6rem, 7vw, 8rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.045em !important;
  line-height: 0.82 !important;
  text-transform: uppercase;
}

.pricing-kicker,
.account-kicker {
  color: var(--green) !important;
  font-family: var(--font-display) !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase;
}

.pricing-status,
.pricing-card,
.pricing-proof article,
.comparison-card,
.pricing-faq article,
.bottom-cta,
.account-panel,
.auth-card,
.account-stat,
.profile-editor {
  background: var(--surface-2) !important;
  border-color: var(--line) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-low) !important;
}

.pricing-grid {
  align-items: stretch;
  gap: 0.75rem !important;
  grid-template-columns: minmax(320px, 0.75fr) minmax(440px, 1.25fr) !important;
}

.pricing-card.is-featured {
  border-color: var(--green-line) !important;
  border-top: 4px solid var(--green) !important;
  transform: none !important;
}

.pricing-card h2,
.pricing-price strong,
.pricing-proof strong,
.comparison-card h2,
.pricing-faq h2,
.bottom-cta h2,
.account-panel h2,
.account-panel h3,
.account-stat strong {
  font-family: var(--font-display) !important;
}

.pricing-price strong,
.account-stat strong {
  color: var(--paper) !important;
  font-variant-numeric: tabular-nums;
}

.pricing-card.is-featured .pricing-price strong {
  color: var(--green) !important;
}

.pricing-pill,
.plan-badge {
  border-radius: var(--radius-sm) !important;
  font-family: var(--font-display) !important;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.pricing-features i {
  background: var(--green-soft) !important;
  color: var(--green) !important;
}

.pricing-secondary,
.secondary-action {
  background: transparent !important;
  border-color: var(--line-strong) !important;
  border-radius: var(--radius-sm) !important;
  color: var(--paper) !important;
  font-family: var(--font-display);
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.pricing-secondary:hover,
.secondary-action:hover {
  border-color: var(--green-line) !important;
  color: var(--green) !important;
}

.auth-tabs {
  background: #090e0a !important;
  border-radius: var(--radius-sm) !important;
}

.auth-tabs button {
  border-radius: var(--radius-xs) !important;
  font-family: var(--font-display) !important;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.auth-tabs button.active {
  background: var(--green) !important;
  color: #071007 !important;
}

.benefit,
.field {
  border-color: var(--line) !important;
}

.profile-avatar {
  background: var(--green-soft) !important;
  border-color: var(--green-line) !important;
  color: var(--green) !important;
}

/* Editorial stories */
.stories-page .stories-hero,
.story-page .story-hero {
  background-color: #090e0a;
  border-color: var(--line-strong);
  border-left: 4px solid var(--green);
  border-radius: var(--radius-md);
}

.stories-page h1,
.story-page h1 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

.story-card,
.story-page article {
  border-radius: var(--radius-md);
}

/* Responsive behavior */
@media (max-width: 1480px) {
  .global-site-nav {
    gap: 1.25rem;
    padding-inline: 1.25rem;
  }

  .global-nav-menu {
    gap: 0.75rem;
    grid-template-columns: minmax(0, 1fr) minmax(170px, 220px) auto;
  }

  .global-nav-links {
    gap: 0.75rem;
  }

  .global-nav-links > a,
  .global-tools-menu > summary {
    font-size: 0.76rem;
  }

  .ciq-hero {
    grid-template-columns: minmax(380px, 0.82fr) minmax(560px, 1.18fr);
  }

  .teams-index-page .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .global-site-nav {
    grid-template-columns: auto auto;
  }

  .global-nav-toggle {
    display: block;
  }

  .global-nav-menu {
    background: #070b08;
    border-top: 1px solid var(--line);
    grid-template-columns: 1fr;
    margin: 0 -1.25rem -0.72rem;
    padding: 0.9rem 1.25rem 1.2rem;
  }

  .global-nav-menu.is-open {
    display: grid;
  }

  .global-nav-links {
    align-items: stretch;
    display: grid;
    gap: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .global-nav-links > a,
  .global-tools-menu > summary {
    border-bottom: 1px solid var(--line);
    padding: 0.8rem 0.4rem;
  }

  .global-nav-links > a.active::after,
  .global-tools-menu.active > summary::after {
    bottom: 0;
  }

  .global-tools-panel {
    left: 0;
    min-width: 0;
    position: relative;
    right: 0;
    top: 0;
    width: 100%;
  }

  .global-player-search {
    min-height: 44px;
  }

  .ciq-hero {
    grid-template-columns: 1fr;
  }

  .ciq-hero-copy {
    padding-right: clamp(2rem, 4vw, 4rem);
  }

  .ciq-hero-visual {
    border-left: 0;
    border-top: 1px solid var(--line);
    min-height: 680px;
  }

  .ciq-role-map-shell,
  .ciq-board-layout {
    grid-template-columns: 1fr;
  }

  .ciq-role-map-card {
    min-height: 0;
  }

  .label-high-x {
    right: 1rem;
  }

  .team-dashboard-page .team-dashboard-hero,
  .player-dashboard-hero,
  .pricing-grid {
    grid-template-columns: 1fr !important;
  }

  .team-dashboard-page .team-title-block,
  .player-hero-art {
    border-bottom: 1px solid var(--line);
    border-right: 0;
  }

  .team-dashboard-page .team-hero-metrics .team-iq-main {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 170px;
  }

  .player-hero-art {
    min-height: 470px;
  }

  .player-hero-art img {
    max-height: 510px;
  }

  .fit-engine-grid,
  .contract-engine-grid,
  .trade-shell {
    grid-template-columns: 1fr;
  }

  .trade-sidebar {
    position: static;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 14px;
  }

  .global-site-nav {
    min-height: 64px;
    padding: 0.58rem 0.75rem;
  }

  .global-nav-brand img {
    height: 29px;
    width: 148px;
  }

  .global-nav-brand > span {
    display: none;
  }

  .global-nav-menu {
    margin: 0 -0.75rem -0.58rem;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    padding-inline: 0.75rem;
  }

  .global-nav-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .global-account-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .global-subscribe-link {
    grid-column: 1 / -1;
  }

  .ciq-home .ciq-shell,
  .teams-index-page main,
  .team-dashboard-page .team-page-shell,
  .player-dashboard-page main,
  .fit-engine-shell,
  .contract-engine-shell,
  .trade-shell,
  .role-tool-page main,
  .methodology-page main,
  .pricing-shell,
  .account-shell {
    max-width: 100% !important;
    padding-inline: 0.6rem !important;
    width: 100% !important;
  }

  .ciq-hero {
    min-height: 0;
  }

  .ciq-hero-copy {
    padding: 2.1rem 1.2rem 2rem;
  }

  .ciq-hero h1 {
    font-size: clamp(4.25rem, 21vw, 6.2rem);
    max-width: 100%;
  }

  .ciq-hero-metric-pills {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: 100%;
  }

  .ciq-hero-actions {
    align-items: stretch;
    display: grid;
  }

  .ciq-hero-actions a {
    justify-content: center;
  }

  .ciq-hero-proof {
    margin-top: 2rem;
  }

  .ciq-hero-visual {
    min-height: 600px;
  }

  .ciq-feature-art {
    width: 155vw;
  }

  .ciq-feature-art img {
    max-height: 590px;
    transform: translateY(0);
  }

  .ciq-feature-art strong {
    bottom: 7rem;
  }

  .ciq-stage-label {
    right: 0.8rem;
    top: 0.8rem;
  }

  .stat-rei {
    left: 0.75rem;
    top: 0.75rem;
    width: 128px;
  }

  .stat-pfe,
  .stat-piv,
  .stat-vse,
  .stat-cvr {
    bottom: 0.65rem;
    padding: 0.55rem;
    width: calc(50% - 1rem);
  }

  .stat-pfe { bottom: 4.95rem; left: 0.65rem; }
  .stat-piv { bottom: 4.95rem; left: auto; right: 0.65rem; }
  .stat-vse { left: 0.65rem; right: auto; }
  .stat-cvr { right: 0.65rem; }

  .ciq-hero-stat b {
    font-size: 1.4rem;
  }

  .stat-rei b {
    font-size: 2.5rem;
  }

  .ciq-visual-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ciq-visual-strip > article {
    border-bottom: 1px solid var(--line);
  }

  .ciq-visual-strip > article:nth-child(2n) {
    border-right: 0;
  }

  .ciq-visual-strip > article:last-child {
    grid-column: 1 / -1;
  }

  .ciq-role-map-heading,
  .ciq-explainer,
  .ciq-stats,
  .ciq-metric-system,
  .ciq-insight-cards {
    grid-template-columns: 1fr;
  }

  .ciq-explainer > h2 {
    grid-column: auto;
    text-align: left;
  }

  .ciq-role-map-stage {
    min-height: 430px;
  }

  .teams-hero {
    grid-template-columns: 1fr !important;
    padding: 1.35rem !important;
  }

  .teams-hero h1,
  .team-dashboard-page .team-title-block h1,
  .player-hero-info h1,
  .player-hero-info h1.long-name,
  .player-hero-info h1.extra-long-name,
  .role-detail-hero h1,
  .fit-engine-title h1,
  .contract-engine-title h1,
  .trade-title h1,
  .role-tool-hero h1,
  .pricing-hero h1,
  .account-hero h1 {
    font-size: clamp(3.7rem, 17vw, 5.8rem) !important;
    line-height: 0.84 !important;
  }

  .teams-index-page .team-grid {
    grid-template-columns: 1fr !important;
  }

  .teams-index-page .team-card {
    padding: 1rem !important;
  }

  .team-dashboard-page .team-title-block {
    grid-template-columns: 70px minmax(0, 1fr) !important;
    padding: 1.15rem;
  }

  .team-dashboard-page .team-hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .team-dashboard-page .team-hero-metrics article {
    min-height: 110px;
  }

  .team-dashboard-page .team-hero-metrics .team-iq-main {
    grid-column: 1 / -1;
  }

  .team-tabs,
  .player-tabs {
    top: 64px;
  }

  .player-hero-art {
    min-height: 390px;
  }

  .player-hero-art img {
    max-height: 430px;
  }

  .player-hero-info {
    padding: 1.15rem;
  }

  .player-quick-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .player-quick-card article {
    border-bottom: 1px solid var(--line);
  }

  .player-hero-metrics {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .metric-tile {
    flex: 0 0 42%;
    min-width: 130px;
    scroll-snap-align: start;
  }

  .role-detail-hero,
  .tool-hero,
  .fit-engine-title,
  .contract-engine-title,
  .trade-title,
  .role-tool-hero,
  .pricing-hero,
  .account-hero {
    padding: 1.35rem !important;
  }

  .role-score-card {
    min-width: 0;
  }

  .role-leaderboard {
    overflow-x: auto;
  }

  .role-leaderboard table {
    min-width: 560px;
  }

  .role-leaderboard th:nth-child(1),
  .role-leaderboard td:nth-child(1),
  .role-leaderboard th:nth-child(2),
  .role-leaderboard td:nth-child(2),
  .role-leaderboard th:nth-child(4),
  .role-leaderboard td:nth-child(4) {
    display: table-cell !important;
  }

  .pricing-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Readability + homepage correction pass */
body {
  font-size: 16px;
}

body small {
  font-size: 0.78rem;
  line-height: 1.4;
}

.eyebrow,
.ciq-kicker,
.section-label,
.panel > header,
.team-panel > header,
.player-panel > header,
th,
label {
  font-size: max(0.78rem, 12px);
  line-height: 1.25;
}

td,
.panel p,
.team-panel p,
.player-panel p,
.compare-card p,
.role-score-card p,
.metric-explainer-card p {
  font-size: 0.92rem;
  line-height: 1.55;
}

.global-nav-brand > span {
  font-size: 0.75rem;
}

.global-tools-panel em,
.global-tools-panel small {
  font-size: 0.75rem;
  line-height: 1.35;
}

.global-account-link,
.global-admin-link,
.global-subscribe-link {
  font-size: 0.82rem;
}

.ciq-hero {
  gap: clamp(0.8rem, 1.5vw, 1.8rem);
  grid-template-columns: minmax(440px, 0.9fr) minmax(580px, 1.1fr);
}

.ciq-hero-copy {
  padding-left: clamp(2rem, 4.4vw, 5rem);
}

.ciq-kicker {
  font-size: 0.82rem;
}

.ciq-hero h1 {
  font-size: clamp(5.35rem, 6.45vw, 8.8rem);
  line-height: 0.8;
  max-width: 720px;
}

.ciq-hero p:not(.ciq-kicker) {
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  line-height: 1.6;
}

.ciq-hero-metric-pills a,
.ciq-hero-proof span {
  font-size: 0.78rem;
}

.ciq-stage-label span {
  font-size: 0.8rem;
}

.ciq-stage-label small {
  font-size: 0.75rem;
}

.ciq-feature-art {
  bottom: -0.75rem;
  height: 106%;
  width: 100%;
}

.ciq-feature-art img {
  height: 100%;
  max-height: none;
  max-width: none;
  object-fit: contain;
  transform: scale(1.04);
  transform-origin: center bottom;
  width: auto;
}

.ciq-feature-badge {
  background: rgba(5, 7, 5, 0.9);
  border: 1px solid var(--green-line);
  border-radius: var(--radius-sm);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  line-height: 1.35;
  padding: 0.55rem 0.8rem;
  position: absolute;
  right: 1.3rem;
  text-align: right;
  text-transform: uppercase;
  top: 1.25rem;
  z-index: 7;
}

.ciq-hero-stat {
  min-width: 0;
}

.ciq-hero-stat span {
  font-size: 0.75rem;
}

.ciq-hero-stat small {
  font-size: 0.75rem;
  line-height: 1.35;
}

.stat-rei {
  width: 224px;
}

.stat-rei b {
  font-size: clamp(2.8rem, 3.6vw, 3.8rem);
  letter-spacing: -0.11em;
  white-space: nowrap;
}

.ciq-visual-card,
.ciq-visual-card.purple,
.ciq-visual-card.blue,
.ciq-visual-card.gold,
.ciq-visual-card.cyan {
  align-items: center;
  display: grid;
  gap: 0.5rem;
  grid-template-columns: minmax(0, 1fr) minmax(96px, 42%);
  height: 190px;
  padding: 0.9rem 0.45rem 0.9rem 0.95rem;
}

.ciq-visual-card > div:last-child {
  grid-column: 1;
  grid-row: 1;
  order: initial;
  position: relative;
  z-index: 2;
}

.visual-photo {
  align-items: stretch;
  align-self: stretch;
  display: block;
  grid-column: 2;
  grid-row: 1;
  justify-content: end;
  min-height: 0;
  order: initial;
  overflow: hidden;
  position: relative;
}

.visual-photo img {
  bottom: -10%;
  height: 120%;
  left: 50%;
  max-height: none;
  max-width: none;
  object-fit: contain;
  object-position: center bottom;
  position: absolute;
  transform: translateX(-50%);
  width: auto;
}

.visual-photo span {
  font-size: 1.15rem;
  height: 68px;
  margin: 0 0 0.2rem;
  width: 68px;
}

.ciq-visual-card span,
.ciq-visual-card small {
  font-size: 0.75rem;
  line-height: 1.3;
}

.ciq-visual-card h3 {
  font-size: 1.08rem;
  line-height: 1;
}

.ciq-visual-card strong {
  font-size: clamp(1.85rem, 2.25vw, 2.4rem);
}

.ciq-role-map-controls button {
  font-size: 0.78rem;
  min-height: 38px;
}

.ciq-role-map-controls small {
  font-size: 0.7rem;
}

.ciq-map-axis,
.ciq-map-label,
.ciq-role-map-card dt {
  font-size: 0.75rem;
}

.ciq-role-map-card > span {
  font-size: 0.78rem;
}

.ciq-role-map-card p {
  font-size: 0.92rem;
}

.ciq-stats span,
.ciq-rei-board th {
  font-size: 0.75rem;
}

.ciq-rei-board td {
  font-size: 0.84rem;
}

.ciq-mini-board li {
  font-size: 0.82rem;
}

.ciq-insight-cards span,
.ciq-story-card span,
.ciq-report-panel span,
.ciq-metric-system h3,
.ciq-story-card small,
.ciq-story-card b {
  font-size: 0.75rem;
}

.ciq-insight-cards p,
.ciq-metric-system p,
.ciq-report-panel p {
  font-size: 0.86rem;
  line-height: 1.5;
}

.ciq-insight-cards h3,
.ciq-story-card h3 {
  font-size: 1.18rem;
  line-height: 1.14;
  min-height: 0;
  overflow-wrap: normal;
  text-wrap: balance;
}

.ciq-rei-board {
  align-self: start;
  height: fit-content;
}

.ciq-rei-board th:nth-child(2),
.ciq-rei-board td:nth-child(2) {
  width: 29%;
}

.ciq-rei-board th:nth-child(4),
.ciq-rei-board td:nth-child(4) {
  width: 29%;
}

.ciq-rei-board th:nth-child(6),
.ciq-rei-board td:nth-child(6) {
  width: 6.5rem;
}

.team-switcher > span,
.team-dashboard-page .team-hero-metrics span,
.team-dashboard-page .team-hero-metrics small,
.team-hero-player span,
.team-hero-player small,
.team-core-card small {
  font-size: 0.78rem;
  line-height: 1.35;
}

.team-roster-card header p {
  font-size: 0.8rem;
}

.team-roster-card header strong {
  font-size: 0.78rem;
}

.team-roster-card-metrics span {
  font-size: 0.75rem;
}

.team-roster-card-metrics b {
  font-size: 0.95rem;
}

.blueprint-player span,
.blueprint-player small,
.team-blueprint small,
.team-role-coverage small,
.team-signal-stack small {
  font-size: 0.78rem;
  line-height: 1.35;
}

.team-radar text {
  font-size: 12px;
}

.ciq-explainer article span,
.ciq-rei-board header a,
.ciq-mini-board h3 small,
.ciq-metric-system i {
  font-size: 0.75rem;
}

@media (max-width: 1120px) {
  .ciq-hero {
    grid-template-columns: minmax(380px, 0.88fr) minmax(540px, 1.12fr);
  }

  .ciq-hero h1 {
    font-size: clamp(4.6rem, 7.1vw, 6.4rem);
  }

  .stat-rei {
    width: 192px;
  }

  .stat-rei b {
    font-size: 3.1rem;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .ciq-hero {
    display: grid;
    grid-template-columns: 1fr;
  }

  .ciq-hero h1 {
    font-size: clamp(4.6rem, 22.5vw, 6.7rem);
  }

  .ciq-feature-art {
    bottom: -0.8rem;
    height: 104%;
    width: 170vw;
  }

  .ciq-feature-art img {
    height: 100%;
    max-height: none;
  }

  .ciq-feature-badge {
    font-size: 0.72rem;
    right: 0.75rem;
    top: 0.75rem;
  }

  .stat-rei {
    left: 0.75rem;
    top: 0.75rem;
    width: 156px;
  }

  .stat-rei b {
    font-size: 2.55rem;
  }

  .ciq-visual-card,
  .ciq-visual-card.purple,
  .ciq-visual-card.blue,
  .ciq-visual-card.gold,
  .ciq-visual-card.cyan {
    height: 190px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 720px) {
  .player-profile-actions {
    flex-wrap: wrap;
    margin: 0.75rem 0 1rem;
    position: static;
  }
}
