/* ==========================================================================
   JammJar Mortgage Industry FPL, site styles
   Depends on tokens.css. Do not hard-code colours here.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body.jj-page {
  margin: 0;
  background: var(--jj-white);
  color: var(--jj-ink);
  font-family: var(--jj-font-body);
  font-size: var(--jj-step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--jj-green-text);
  outline-offset: 3px;
  border-radius: 4px;
}

.jj-content {
  max-width: var(--jj-max);
  margin-inline: auto;
  padding-inline: var(--jj-gutter);
}

/* --------------------------------------------------------------------------
   Nav
   -------------------------------------------------------------------------- */

.jj-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--jj-line);
}

.jj-nav__inner {
  max-width: var(--jj-max);
  margin-inline: auto;
  padding: 14px var(--jj-gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.jj-nav__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

/* Uses the real ink logo file, so no CSS filter is needed. */
.jj-nav__logo { height: 26px; width: auto; }

.jj-nav__logodiv {
  width: 1px;
  height: 22px;
  background: var(--jj-line);
  flex: none;
}

/* Left in its own Premier League purple: the nav is white, so it reads fine
   without a filter, unlike the footer. */
.jj-nav__fpl { height: 20px; width: auto; }

@media (max-width: 560px) {
  .jj-nav__brand { gap: 10px; }
  .jj-nav__fpl { height: 16px; }
}

.jj-nav__links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 30px);
}

.jj-nav__link {
  text-decoration: none;
  font-weight: 500;
  font-size: var(--jj-step--1);
  letter-spacing: .01em;
  color: var(--jj-grey);
  transition: color .18s var(--jj-ease);
}
.jj-nav__link:hover { color: var(--jj-ink); }

/* The one button that has to survive every width. Left to wrap it broke onto
   two lines in the nav on a phone, so it stays on one line and the bar gives
   it the room by shrinking everything around it. */
.jj-nav__cta { white-space: nowrap; }

/* --------------------------------------------------------------------------
   Mobile nav: burger and the panel it opens
   -------------------------------------------------------------------------- */

.jj-nav__burger {
  display: none; /* above the breakpoint the real links are showing */
  align-items: center;
  justify-content: center;
  flex: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--jj-line);
  border-radius: var(--jj-radius-pill);
  background: var(--jj-white);
  color: var(--jj-ink);
  cursor: pointer;
  transition: background-color .16s var(--jj-ease);
}
.jj-nav__burger:hover { background: var(--jj-offwhite); }

.jj-burger {
  position: relative;
  display: block;
  width: 18px;
  height: 12px;
}

.jj-burger__bar {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .22s var(--jj-ease), opacity .14s var(--jj-ease);
}
.jj-burger__bar:nth-child(1) { top: 0; }
.jj-burger__bar:nth-child(2) { top: 5px; }
.jj-burger__bar:nth-child(3) { top: 10px; }

.jj-nav.is-open .jj-burger__bar:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.jj-nav.is-open .jj-burger__bar:nth-child(2) { opacity: 0; }
.jj-nav.is-open .jj-burger__bar:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* Absolutely positioned against the sticky bar, so opening it drops the panel
   over the page rather than pushing the whole page down.
   Solid white, not the bar's translucent fill: .jj-nav already has a
   backdrop-filter, which makes it a backdrop root, so a blur on this child
   samples nothing and the hero headline reads straight through the panel. */
.jj-nav__menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 4px var(--jj-gutter) 18px;
  background: var(--jj-white);
  border-bottom: 1px solid var(--jj-line);
  box-shadow: var(--jj-shadow);
  animation: jj-menu-in .18s var(--jj-ease);
}
.jj-nav__menu[hidden] { display: none; }

@keyframes jj-menu-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

.jj-menu__link {
  display: block;
  padding: 15px 2px;
  border-top: 1px solid var(--jj-line);
  text-decoration: none;
  font-family: var(--jj-font-display);
  font-size: var(--jj-step-1);
  font-weight: 600;
  letter-spacing: -.018em;
  color: var(--jj-ink);
}
.jj-menu__link:first-child { border-top: 0; }

.jj-menu__cta { width: 100%; margin-top: 18px; }

@media (max-width: 640px) {
  .jj-nav__link { display: none; }
  .jj-nav__logo { height: 22px; }
  .jj-nav__inner { gap: 12px; }
  .jj-nav__links { gap: 10px; }
  .jj-nav__burger { display: inline-flex; }
  /* Doubled up on purpose: .jj-btn sets the same two properties further down
     this file, and at equal specificity the later rule would win. */
  .jj-btn.jj-nav__cta { padding: 12px 18px; font-size: var(--jj-step--1); }
}

/* The nav CTA and the burger both need their space before the FPL mark does:
   below this the brand drops to the JammJar logo on its own. */
@media (max-width: 420px) {
  .jj-nav__logodiv, .jj-nav__fpl { display: none; }
}

@media (min-width: 641px) {
  .jj-nav__menu { display: none; }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.jj-btn {
  --_bg: var(--jj-ink);
  --_fg: var(--jj-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: var(--jj-radius-pill);
  background: var(--_bg);
  color: var(--_fg);
  font-family: inherit;
  font-size: var(--jj-step-0);
  font-weight: 600;
  letter-spacing: -.005em;
  line-height: 1.15;
  /* justify-content only centres the label as a block. Once it wraps onto a
     second line, this is what keeps both lines centred. */
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform .16s var(--jj-ease), box-shadow .16s var(--jj-ease), background-color .16s var(--jj-ease);
}
.jj-btn:hover { transform: translateY(-1px); box-shadow: var(--jj-shadow); }
.jj-btn:active { transform: translateY(0); }
.jj-btn[disabled], .jj-btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }

/* Ink text, not white: see the contrast note in tokens.css. */
.jj-btn--primary { --_bg: var(--jj-green); --_fg: var(--jj-on-green); }
.jj-btn--primary:hover { --_bg: var(--jj-green-dark); }

.jj-btn--ghost {
  --_bg: transparent;
  --_fg: var(--jj-ink);
  border-color: var(--jj-line);
}
.jj-btn--ghost:hover { --_bg: var(--jj-offwhite); }

.jj-band--obsidian .jj-btn--ghost { --_fg: var(--jj-white); border-color: var(--jj-line-dark); }
.jj-band--obsidian .jj-btn--ghost:hover { --_bg: rgba(255,255,255,.08); }

/* --------------------------------------------------------------------------
   Bands
   -------------------------------------------------------------------------- */

.jj-band { padding-block: var(--jj-band-y); }
.jj-band--tight { padding-block: clamp(48px, 6vw, 84px); }
.jj-band--offwhite { background: var(--jj-offwhite); }

.jj-band--obsidian {
  background: var(--jj-obsidian);
  color: var(--jj-white);
  position: relative;
  overflow: hidden;
}
.jj-band--obsidian .jj-muted { color: var(--jj-grey-dark); }
/* Links on the dark band go white, but NOT buttons: a .jj-btn brings its own
   --_fg, and letting this rule win turned the green button's label white
   (1.5:1) wherever the button was an <a> rather than a <button>. */
.jj-band--obsidian a:not(.jj-btn) { color: var(--jj-white); }

.jj-obsidian-dots::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(currentColor 1px, transparent 1px);
  background-size: 26px 26px;
  color: rgba(255, 255, 255, 0.10);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 78% 10%, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse 80% 70% at 78% 10%, #000 0%, transparent 72%);
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Type
   -------------------------------------------------------------------------- */

h1, h2, h3 {
  font-family: var(--jj-font-display);
  font-weight: 700;
  letter-spacing: -.028em;
  line-height: 1.03;
  margin: 0;
  text-wrap: balance;
}

h1.jj-hero {
  font-size: var(--jj-step-4);
  margin: 22px 0 0;
}

.jj-section-head {
  font-size: var(--jj-step-3);
  margin: 0;
}

.jj-list-head {
  font-family: var(--jj-font-display);
  font-size: var(--jj-step-1);
  font-weight: 600;
  letter-spacing: -.018em;
  line-height: 1.2;
  margin: 0;
}

.jj-lede {
  font-size: var(--jj-step-1);
  line-height: 1.5;
  color: var(--jj-grey);
  margin: 20px 0 0;
  max-width: 60ch;
  text-wrap: pretty;
}

.jj-body { font-size: var(--jj-step-0); margin: 10px 0 0; text-wrap: pretty; }
.jj-muted { color: var(--jj-grey); }

.jj-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px 7px 11px;
  border: 1px solid var(--jj-line);
  border-radius: var(--jj-radius-pill);
  background: var(--jj-white);
  font-size: var(--jj-step--1);
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--jj-grey);
}
.jj-band--obsidian .jj-chip { background: rgba(255,255,255,.06); border-color: var(--jj-line-dark); color: var(--jj-white); }

.jj-figure {
  font-family: var(--jj-font-display);
  font-size: var(--jj-step-5);
  font-weight: 700;
  line-height: .88;
  letter-spacing: -.045em;
  color: var(--jj-ink);
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.jj-hero-band {
  padding-block: clamp(52px, 8vw, 108px);
  background:
    radial-gradient(ellipse 70% 90% at 88% -10%, var(--jj-green-soft) 0%, transparent 62%),
    linear-gradient(180deg, var(--jj-white) 0%, var(--jj-offwhite) 100%);
  border-bottom: 1px solid var(--jj-line);
}

.jj-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .85fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
@media (max-width: 900px) {
  .jj-hero-grid { grid-template-columns: 1fr; }
}

.jj-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
  margin-top: 32px;
}

.jj-cta-note {
  font-size: var(--jj-step--1);
  color: var(--jj-grey);
}
.jj-band--obsidian .jj-cta-note { color: var(--jj-grey-dark); }

/* --------------------------------------------------------------------------
   Countdown
   -------------------------------------------------------------------------- */

.jj-countdown {
  background: var(--jj-ink);
  color: var(--jj-white);
  border-radius: var(--jj-radius-lg);
  padding: clamp(24px, 3vw, 34px);
  box-shadow: var(--jj-shadow-lg);
}

.jj-countdown__label {
  font-size: var(--jj-step--1);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--jj-grey-dark);
}

.jj-countdown__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 20px;
  text-align: center;
}

.jj-countdown__num {
  font-family: var(--jj-font-display);
  font-size: clamp(1.9rem, 1.2rem + 2.4vw, 2.9rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

.jj-countdown__unit {
  margin-top: 8px;
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--jj-grey-dark);
}

.jj-countdown__foot {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--jj-line-dark);
  font-size: var(--jj-step--1);
  line-height: 1.55;
  color: var(--jj-grey-dark);
}

/* --------------------------------------------------------------------------
   Steps
   -------------------------------------------------------------------------- */

.jj-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(24px, 3vw, 44px);
  margin-top: 52px;
}

.jj-step__num {
  font-family: var(--jj-font-display);
  font-size: var(--jj-step-1);
  font-weight: 700;
  color: var(--jj-green-text);
  letter-spacing: -.02em;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--jj-green-text);
  display: inline-block;
}

.jj-step .jj-body { color: var(--jj-grey); margin-top: 12px; }

/* --------------------------------------------------------------------------
   Prizes
   -------------------------------------------------------------------------- */

.jj-prizes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 52px;
}

/* All three cards are identical: same grey, no borders. First place is
   distinguished by its content, not its decoration. */
.jj-prize {
  background: rgba(255, 255, 255, 0.05);
  border: 0;
  border-radius: var(--jj-radius);
  padding: clamp(22px, 2.4vw, 30px);
  display: flex;
  flex-direction: column;
}

.jj-prize__place {
  font-size: var(--jj-step--1);
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--jj-grey-dark);
}

.jj-prize__headline {
  font-family: var(--jj-font-display);
  font-size: var(--jj-step-1);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.18;
  margin: 14px 0 0;
}

.jj-prize p {
  margin: 14px 0 0;
  font-size: var(--jj-step--1);
  line-height: 1.55;
  color: var(--jj-grey-dark);
}

/* ---- Sponsor credit inside a prize card ----
   The MAB logo is navy and orange, so unlike the single-colour FPL mark it
   cannot be filtered white. On the obsidian band it sits on a white plate,
   which keeps the brand colours correct and legible. margin-top:auto pins it
   to the bottom of the card so all three cards stay aligned. */

.jj-sponsor {
  margin-top: auto;
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.jj-sponsor__label {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--jj-grey-dark);
}

.jj-sponsor__plate {
  display: inline-flex;
  align-items: center;
  padding: 11px 15px;
  border-radius: 10px;
  background: var(--jj-white);
  transition: transform .16s var(--jj-ease);
}
.jj-sponsor__plate:hover { transform: translateY(-1px); }
.jj-sponsor__plate img { height: 25px; width: auto; display: block; }

/* ---- Sponsor strip (leaderboard) ----
   Sits on the off-white band, so the logo needs no plate. */

.jj-sponsor-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.jj-sponsor-strip__logo {
  height: 46px;
  width: auto;
  flex: none;
}

@media (max-width: 560px) {
  .jj-sponsor-strip__logo { height: 36px; }
}

/* --------------------------------------------------------------------------
   Split
   -------------------------------------------------------------------------- */

.jj-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.jj-faq {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 4px 48px;
  margin-top: 44px;
}

.jj-faq__item {
  padding: 26px 0;
  border-top: 1px solid var(--jj-line);
}
.jj-faq__item .jj-body { color: var(--jj-grey); margin-top: 10px; }

/* --------------------------------------------------------------------------
   Checkout
   -------------------------------------------------------------------------- */

/* ---- Amount picker ---- */

.jj-amount {
  margin-top: 40px;
  max-width: 560px;
  background: var(--jj-white);
  border: 1px solid var(--jj-line);
  border-radius: var(--jj-radius-lg);
  box-shadow: var(--jj-shadow);
  padding: clamp(22px, 3vw, 32px);
}
.jj-amount[hidden] { display: none; }

.jj-amount__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  font-size: var(--jj-step-0);
}

.jj-amount__fixed {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.jj-amount__give {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--jj-line);
}

.jj-amount__label {
  font-size: var(--jj-step--1);
  font-weight: 600;
  color: var(--jj-grey);
  margin-bottom: 14px;
}

.jj-chips { display: flex; flex-wrap: wrap; gap: 9px; }

.jj-chip-btn {
  padding: 10px 17px;
  border: 1px solid var(--jj-line);
  border-radius: var(--jj-radius-pill);
  background: var(--jj-white);
  font-family: inherit;
  font-size: var(--jj-step--1);
  font-weight: 600;
  color: var(--jj-ink);
  cursor: pointer;
  transition: border-color .15s var(--jj-ease), background-color .15s var(--jj-ease), color .15s var(--jj-ease);
}
.jj-chip-btn:hover { border-color: var(--jj-grey); }
.jj-chip-btn.is-on {
  background: var(--jj-ink);
  border-color: var(--jj-ink);
  color: var(--jj-white);
}

.jj-chip-other {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 0 15px;
  border: 1px solid var(--jj-line);
  border-radius: var(--jj-radius-pill);
  background: var(--jj-white);
  font-size: var(--jj-step--1);
  font-weight: 600;
  color: var(--jj-grey);
}
.jj-chip-other:focus-within { border-color: var(--jj-green-text); }
.jj-chip-other input {
  width: 74px;
  padding: 10px 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: inherit;
  font-size: var(--jj-step--1);
  font-weight: 600;
  color: var(--jj-ink);
}

.jj-phone {
  width: 100%;
  max-width: 260px;
  padding: 12px 16px;
  border: 1px solid var(--jj-line);
  border-radius: var(--jj-radius-pill);
  background: var(--jj-white);
  font-family: inherit;
  font-size: var(--jj-step-0);
  color: var(--jj-ink);
}
.jj-phone::placeholder { color: var(--jj-grey); }
.jj-phone:focus { outline: none; border-color: var(--jj-green-text); }

.jj-amount__hint {
  margin: 10px 0 0;
  font-size: var(--jj-step--1);
  line-height: 1.5;
  color: var(--jj-grey);
  max-width: 46ch;
}

.jj-amount__err {
  margin: 12px 0 0;
  font-size: var(--jj-step--1);
  line-height: 1.5;
  color: var(--jj-green-text);
}
.jj-amount__err[hidden] { display: none; }

.jj-amount__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--jj-line);
  font-size: var(--jj-step-0);
  font-weight: 600;
}

.jj-amount__big {
  font-family: var(--jj-font-display);
  font-size: var(--jj-step-2);
  font-weight: 700;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}

.jj-amount__go { width: 100%; margin-top: 22px; }

/* League join code on the post-payment page */
.jj-joincode {
  margin-top: 12px;
  padding: 16px 20px;
  border: 1px dashed var(--jj-line);
  border-radius: var(--jj-radius);
  background: var(--jj-offwhite);
  font-family: var(--jj-font-num);
  font-size: var(--jj-step-1);
  font-weight: 700;
  letter-spacing: .18em;
  text-align: center;
  text-transform: uppercase;
  user-select: all;
}

.jj-checkout {
  margin-top: 44px;
  background: var(--jj-white);
  border: 1px solid var(--jj-line);
  border-radius: var(--jj-radius-lg);
  box-shadow: var(--jj-shadow-lg);
  padding: clamp(14px, 2vw, 22px);
  min-height: 320px;
  scroll-margin-top: 90px;
}

.jj-checkout[hidden] { display: none; }

.jj-checkout__status {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  min-height: 300px;
  color: var(--jj-grey);
  font-size: var(--jj-step--1);
  text-align: center;
  padding: 20px;
}
/* Required. `display: flex` above beats the browser's built-in
   [hidden] { display: none }, so without this the element cannot be hidden
   from JS and the loading spinner never goes away. Same reason every other
   toggled block in this file carries a [hidden] rule. */
.jj-checkout__status[hidden] { display: none; }

.jj-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--jj-line);
  border-top-color: var(--jj-green-text);
  border-radius: 50%;
  animation: jj-spin .7s linear infinite;
  flex: none;
}
@keyframes jj-spin { to { transform: rotate(360deg); } }

.jj-notice {
  margin-top: 24px;
  padding: 16px 20px;
  border-radius: var(--jj-radius);
  border: 1px solid var(--jj-line);
  background: var(--jj-offwhite);
  font-size: var(--jj-step--1);
  line-height: 1.55;
}
.jj-notice--warn { border-color: var(--jj-green-text); background: var(--jj-green-soft); }
.jj-notice[hidden] { display: none; }

.jj-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 20px;
  font-size: var(--jj-step--1);
  color: var(--jj-grey);
}
.jj-trust span { display: inline-flex; align-items: center; gap: 7px; }
.jj-trust svg { flex: none; opacity: .6; }

/* --------------------------------------------------------------------------
   Leaderboard
   -------------------------------------------------------------------------- */

.jj-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 52px;
}

.jj-search {
  flex: 1 1 260px;
  max-width: 380px;
  padding: 12px 18px;
  border: 1px solid var(--jj-line);
  border-radius: var(--jj-radius-pill);
  background: var(--jj-white);
  font-family: inherit;
  font-size: var(--jj-step-0);
  color: var(--jj-ink);
}
.jj-search::placeholder { color: var(--jj-grey); }

.jj-state { margin-top: 32px; color: var(--jj-grey); }

.jj-table-wrap {
  margin-top: 24px;
  border: 1px solid var(--jj-line);
  border-radius: var(--jj-radius);
  overflow-x: auto;
  background: var(--jj-white);
}

.jj-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--jj-step--1);
}

.jj-table th {
  text-align: left;
  padding: 14px 18px;
  background: var(--jj-offwhite);
  border-bottom: 1px solid var(--jj-line);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .72rem;
  color: var(--jj-grey);
  white-space: nowrap;
}

.jj-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--jj-line);
  vertical-align: middle;
}
.jj-table tbody tr:last-child td { border-bottom: 0; }
.jj-table tbody tr:hover { background: var(--jj-offwhite); }

.jj-table .jj-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  white-space: nowrap;
}
.jj-table th:first-child, .jj-table .jj-num:first-child { text-align: left; }

.jj-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  border-radius: var(--jj-radius-pill);
  background: var(--jj-sand);
  font-weight: 600;
}
.jj-top .jj-rank { background: var(--jj-green); color: var(--jj-on-green); }

.jj-team { font-weight: 600; }
.jj-manager { color: var(--jj-grey); font-size: .86em; }

/* --------------------------------------------------------------------------
   Prose (terms)
   -------------------------------------------------------------------------- */

.jj-prose { max-width: 68ch; }
.jj-prose h2 { font-size: var(--jj-step-2); margin: 52px 0 0; }
.jj-prose h3 { font-size: var(--jj-step-1); margin: 34px 0 0; }
.jj-prose p, .jj-prose li { color: var(--jj-grey); line-height: 1.7; }
.jj-prose p { margin: 14px 0 0; }
.jj-prose ul, .jj-prose ol { margin: 14px 0 0; padding-left: 22px; }
.jj-prose li { margin-top: 8px; }
.jj-prose a { color: var(--jj-green-text); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.jj-footer {
  background: var(--jj-obsidian);
  color: var(--jj-white);
  padding-block: clamp(52px, 6vw, 84px);
}

.jj-footer__logos {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}

.jj-footer__logo { height: 28px; width: auto; }

.jj-footer__logodiv {
  width: 1px;
  height: 26px;
  background: var(--jj-line-dark);
  flex: none;
}

/* The official FPL mark is solid Premier League purple (#37003C), which is
   near-invisible on the obsidian footer. brightness(0) invert(1) renders it
   white; the slight transparency keeps it secondary to the JammJar mark. */
.jj-footer__fpl {
  height: 26px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: .8;
}

@media (max-width: 420px) {
  .jj-footer__logodiv { display: none; }
}

.jj-footer__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--jj-line-dark);
}

.jj-footer__head {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--jj-grey-dark);
  margin-bottom: 16px;
}

.jj-footer__cols a {
  display: block;
  margin-top: 10px;
  text-decoration: none;
  font-size: var(--jj-step--1);
  color: rgba(255, 255, 255, 0.82);
  transition: color .18s var(--jj-ease);
}
.jj-footer__cols a:hover { color: var(--jj-white); }

.jj-footer__legal {
  margin: 32px 0 0;
  max-width: 82ch;
  font-size: .8rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.5);
}

/* --------------------------------------------------------------------------
   Utility
   -------------------------------------------------------------------------- */

.jj-sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
