/* FundedJunction presentation updates. Author: Shaheer; https://msxmd.com/ */

.hero{padding:32px 0}
.hero .hero-in{grid-template-columns:minmax(0,1.5fr) minmax(220px,.5fr)}

.hero h1{font-size:clamp(28px,3.5vw,48px);margin:12px 0 16px}

.hero p.sub{font-size:15px}

.hero .hstats{margin-top:20px}

.hero .hstat strong{font-size:28px}

.hero .hero-cta{margin-top:20px}

.hero .hero-art{max-width:260px}

.hero .sticker{padding:14px 16px}

.hero .sticker b{font-size:26px}

.hero .fj-search{margin-block:16px 0}

@media(max-width:900px){.hero .hero-in{grid-template-columns:minmax(0,1fr) 220px;gap:24px}.hero .sticker{left:-12px}.hero .hstat strong{font-size:24px}}

@media(max-width:640px){.hero{padding:24px 0}.hero .hero-in{grid-template-columns:1fr}.hero .hero-art{display:none}.hero h1{font-size:clamp(24px,7.2vw,36px)}.hero .hstat strong{font-size:22px}}


@media(max-width:640px){.hero .hstats{flex-wrap:nowrap}.hero .hstat{flex:1;min-width:0;padding:0 10px}.hero .hstat:first-child{padding-left:0}.hero .hstat span{font-size:8px;letter-spacing:.06em}}

#firm-rules{scroll-margin-top:140px}.fj-reference-preview .nav{gap:8px}.fj-reference-preview .nav .lnk{padding-inline:10px}

@media(min-width:901px) and (max-width:1200px){.fj-reference-preview .brand .bw{font-size:15px}.fj-reference-preview .nav{gap:4px}.fj-reference-preview .nav .lnk{font-size:12px;padding-inline:8px;white-space:nowrap}.fj-reference-preview .nav .btn{font-size:11px;padding:12px}}

/* Remove the below-hero payout marquee; retain its script anchor. */
.hero + .band{display:none}

/* Keep the advertisements; remove their Sponsored title labels only. */
.fj-sponsorships .sp-spon,.fj-sponsorships .fj-sponsor-label,.fj-live-promotions .adtag{display:none}

.fj-reference-preview .nav .fj-menu {
	display: flex;
	flex-wrap: wrap;
	list-style: none;
	margin: 0;
	padding: 0;
}

.fj-reference-preview .nav .fj-menu > li > a {
	display: block;
	padding: 10px;
	color: var(--text);
}

.fj-reference-preview .nav .fj-menu .sub-menu {
	list-style: none;
	padding-inline-start: 10px;
}

.fj-home-header .fj-header-account { margin-left: auto; }

@media (min-width: 901px) {
	.fj-home-header .hd { flex-wrap: wrap; height: auto; padding-block: 8px; }
	.fj-home-header .nav { width: 100%; flex-wrap: wrap; margin-left: 0; }
}

@media (max-width: 900px) {
	.fj-home-header .nav { max-height: 70vh; overflow-y: auto; }
}

.fj-firm-rank {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
}
.fj-firm-rank-1 { background: #ffe18b; color: #513600; }
.fj-firm-rank-2 { background: #e0e7ef; color: #29384a; }
.fj-firm-rank-3 { background: #f4c3a5; color: #572c13; }

/* Homepage comparison hero */
.hero.fj-compare-hero {
  padding: clamp(26px, 4vw, 52px) 0 24px;
  background: #111113;
  color: #f7f7f8;
  text-align: center;
}
.fj-compare-hero::before,
.fj-compare-hero::after { content: none; }
.fj-compare-hero h1 {
  max-width: 48ch;
  margin: 0 auto;
  font-family: Poppins, Inter, system-ui, sans-serif;
  font-size: clamp(27px, 3.2vw, 45px);
  font-stretch: normal;
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.16;
  text-transform: none;
}
.fj-hero-intro {
  max-width: 65ch;
  margin: 12px auto 0;
  color: #bebec5;
  line-height: 1.55;
}
.fj-hero-metrics,
.fj-hero-shortcuts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.fj-hero-metrics { margin-top: 18px; }
.fj-hero-metrics > *,
.fj-hero-shortcuts a {
  padding: 7px 13px;
  border: 1px solid #39393e;
  border-radius: 999px;
  background: #1b1b1e;
  color: #ebebee;
  font-size: 13px;
  line-height: 1.35;
}
.fj-hero-metrics strong { color: #ff888e; }
.fj-hero-metrics a:hover,
.fj-hero-shortcuts a:hover { border-color: #e75c63; }
.fj-hero-offers {
  max-width: 1400px;
  margin: 24px auto 0;
  padding: clamp(10px, 1.2vw, 16px);
  border: 1px solid #754448;
  border-radius: 15px;
  background: linear-gradient(120deg, #24191c, #1c1b1f 65%);
  scroll-margin-top: 155px;
}
.fj-hero-offers-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  min-height: 28px;
  gap: 8px;
}
.fj-hero-offers-heading h2 { grid-column: 2; grid-row: 1; margin: 0; color: #f7f7f8; font-size: 16px; }
.fj-hero-offers-heading p { grid-column: 1; grid-row: 1; text-align: start; }
.fj-hero-offers-heading p,
.fj-hero-offers-empty { margin: 0; color: #c3bbc0; font-size: 12px; }
.fj-hero-offers-empty { margin-top: 8px; }
.fj-hero-offer-controls { grid-column: 3; grid-row: 1; justify-self: end; }
.fj-hero-offer-controls:not([hidden]), .fj-hero-offer-dots { display: flex; align-items: center; gap: 5px; }
.fj-hero-offer-controls button {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid #474044;
  border-radius: 50%;
  color: #f7f7f8;
  background: #141416;
  font-size: 20px;
  line-height: 1;
}
.fj-hero-offer-controls button:disabled { opacity: .42; cursor: default; }
.fj-hero-offer-controls button:hover:not(:disabled) { border-color: #e75c63; }
.fj-hero-offer-controls button:focus-visible { outline: 2px solid #ff888e; outline-offset: 2px; }
.fj-hero-offer-dots button { width: 14px; height: 24px; border: 0; background: transparent; }
.fj-hero-offer-dots button::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #8d777e; }
.fj-hero-offer-dots button[aria-current="true"]::before { background: #f7f7f8; }
.fj-hero-offer-grid {
  --offer-gap: 7px;
  display: grid;
  grid-auto-columns: max(min(250px, 100%), calc((100% - 3 * var(--offer-gap)) / 4));
  grid-auto-rows: 1fr;
  gap: var(--offer-gap);
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x proximity;
  scrollbar-color: #66666e #222225;
  margin: 13px 0 0;
  padding: 0;
  list-style: none;
}
.fj-hero-offer-grid[data-count="1"] { grid-auto-columns: 100%; }
.fj-hero-offer-grid[data-count="2"] { grid-auto-columns: max(min(250px, 100%), calc((100% - var(--offer-gap)) / 2)); }
.fj-hero-offer-grid[data-count="3"] { grid-auto-columns: max(min(250px, 100%), calc((100% - 2 * var(--offer-gap)) / 3)); }
.fj-hero-offer-grid li {
  min-width: 0;
  grid-column: var(--offer-column);
  grid-row: var(--offer-row);
  scroll-snap-align: start;
}
@media (min-width: 1120px) {
  .fj-hero-offer-grid[data-count="9"]::after { content: ''; grid-area: 2 / 8; pointer-events: none; }
  .fj-hero-offer-grid[data-count="9"] li:not(:nth-child(8n + 1)) { scroll-snap-align: none; }
  .fj-hero-offer-grid.fj-offer-scroll-ready { scrollbar-width: none; }
}
.fj-hero-offer-grid a:focus-visible { outline-offset: -3px; }
.fj-hero-offer-grid a {
  display: grid;
  grid-template-columns: 43px minmax(0, 1fr) 90px;
  align-items: center;
  gap: 9px;
  height: 100%;
  min-height: 64px;
  padding: 7px 8px;
  border: 1px solid #3c363a;
  border-radius: 9px;
  background: #171719;
  color: #f7f7f8;
  text-align: start;
}
.fj-hero-offer-grid a:hover { border-color: #e75c63; }
.fj-hero-offer-mark {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  overflow: hidden;
  border-radius: 7px;
  background: #343238;
  color: #f7f7f8;
  font-size: 12px;
}
.fj-hero-offer-mark img { width: 100%; height: 100%; object-fit: contain; }
.fj-hero-offer-firm, .fj-hero-offer-code { display: grid; gap: 3px; overflow-wrap: anywhere; }
.fj-hero-offer-firm strong { font-size: 14px; line-height: 1.2; }
.fj-hero-offer-description {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  color: #c9c4c9;
  font-size: 11px;
  line-height: 1.15;
}
.fj-hero-offer-firm small { color: #bcbcc4; font-size: 10px; line-height: 1; }
.fj-hero-offer-code {
  gap: 0;
  overflow: hidden;
  border: 1px solid #98515a;
  border-radius: 7px;
  background: #242025;
  color: #fff0f0;
  text-align: center;
}
.fj-hero-offer-code strong { padding: 5px 3px; background: #8c2734; font: 700 10px/1.1 var(--mono, monospace); }
.fj-hero-offer-code small { padding: 3px; color: #f2a7ad; font-size: 9px; line-height: 1.1; }
.fj-hero-shortcuts { margin-top: 18px; }
.fj-hero-shortcuts a { padding: 10px 16px; font-weight: 700; }
.fj-hero-shortcuts .fj-hero-primary { background: #f7f7f8; color: #18181b; }
.fj-compare-hero a:focus-visible { outline: 2px solid #ff888e; outline-offset: 3px; }
#fj-challenge-finder-title { scroll-margin-top: 155px; }
@media (max-width: 580px) {
  .fj-hero-offers-heading { grid-template-columns: minmax(0, 1fr) auto; text-align: start; }
  .fj-hero-offers-heading h2 { grid-column: 1; }
  .fj-hero-offers-heading p { grid-column: 1 / -1; grid-row: 2; }
  .fj-hero-offer-controls { grid-column: 2; }
  .fj-hero-offer-dots { gap: 1px; }
  .fj-hero-offer-grid a { grid-template-columns: 36px minmax(0, 1fr) 82px; gap: 6px; }
  .fj-hero-offer-mark { width: 36px; height: 36px; }
  .fj-hero-metrics > * { padding: 6px 9px; font-size: 12px; }
  .fj-hero-shortcuts a { padding: 9px 12px; }
}

.fj-challenge-finder {
  margin-block: clamp(24px, 4vw, 48px);
  padding: clamp(18px, 3vw, 32px);
  border: 1px solid #594655;
  border-radius: 16px;
  background: linear-gradient(125deg, #251d27, #19151c 72%);
  color: #faf4f7;
}
.fj-challenge-finder h2 {
  margin: 0 0 6px;
  color: inherit;
  font: 600 clamp(22px, 3vw, 30px)/1.2 Poppins, Inter, system-ui, sans-serif;
}
.fj-challenge-finder p { margin: 0 0 18px; color: #d6c7d5; font-size: 14px; }
.fj-challenge-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
}
.fj-challenge-form label {
  display: grid;
  min-width: 0;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
}
.fj-challenge-form input,
.fj-challenge-form select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid #796278;
  border-radius: 8px;
  background: #1c171e;
  color: #fff6fa;
  color-scheme: dark;
  font: 400 16px/1.25 Inter, system-ui, sans-serif;
}
.fj-challenge-form input::placeholder { color: #bbaabb; opacity: 1; }
.fj-challenge-form select option { background: #211922; color: #fff6fa; }
.fj-challenge-form .btn { min-height: 44px; justify-content: center; text-align: center; }
.fj-challenge-form :focus-visible { outline: 2px solid #ffb8ac; outline-offset: 3px; }

@media (max-width: 840px) {
  .fj-challenge-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 460px) {
  .fj-challenge-form { grid-template-columns: minmax(0, 1fr); }
}

/* Shared type and firm directory details. */
:root {
  --body: system-ui, sans-serif;
  --display: Optima, "Segoe UI", system-ui, sans-serif;
}
.display {
  font-stretch: normal;
  font-weight: 700;
  letter-spacing: -.025em;
}
.fj-firm-country {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-size: .8rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.fj-firm-country .flag { width: 20px; height: auto; flex: none; }
.cy { gap: 8px; }
.fj-firm-years {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: var(--text);
  font-size: .75rem;
  font-variant-numeric: tabular-nums;
}

.firm .ftile {
  width: 48px;
  height: 48px;
  border-radius: 10px;
}
.firm .ftile > img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.firm:hover .ftile { transform: none; }
@media (max-width: 600px) {
  .firm .ftile { width: 42px; height: 42px; }
  .firm .ftile > img { width: 32px; height: 32px; }
}
