/* JoyLink directory � live /joylink/ content only (compact cards + FCH blue/white) */
html.fch-joylink-page {
  --jl-border: #D6E3FF;
  --jl-border-hover: #3268E8;
  --jl-name: #173B86;
  --jl-offer: #17223d;
  --jl-divider: #65708a;
  --jl-shadow: 0 4px 12px rgba(23, 59, 134, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
  --jl-list-max: 700px;
  --jl-card-h: 60px;
  --jl-logo-size: 48px;
}

html.fch-joylink-page .fch-joylink-section {
  background: #fff;
  padding: 16px 10px 36px !important;
}

html.fch-joylink-page .fch-joylink-section .container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0;
}

html.fch-joylink-page .jl-intro {
  width: min(100%, var(--jl-list-max));
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

html.fch-joylink-page .jl-intro-logo {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: contain;
  background: #0a0a0a;
  flex: 0 0 auto;
}

html.fch-joylink-page .jl-intro h1,
html.fch-joylink-page #joyLinkPageTitle {
  margin: 0;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  line-height: 1.15;
  color: #0b1f44;
  font-weight: 900;
}

html.fch-joylink-page .jl-intro p {
  margin: 4px 0 0;
  font-size: 13px;
  color: #65708a;
  font-weight: 500;
  line-height: 1.4;
}

html.fch-joylink-page .partner-block {
  width: min(100%, var(--jl-list-max));
  margin: 0 auto 28px;
}

html.fch-joylink-page .partner-logo-wrap {
  display: flex;
  justify-content: center;
  margin: 0 0 12px;
}

html.fch-joylink-page .partner-logo {
  display: block;
  width: min(220px, 62vw);
  height: auto;
  max-height: 72px;
  object-fit: contain;
}

html.fch-joylink-page .partner-title {
  margin: 0 0 12px;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0b1f44;
}

html.fch-joylink-page .brand-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

html.fch-joylink-page a.brand-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--jl-logo-size);
  align-items: center;
  gap: 12px;
  min-height: var(--jl-card-h);
  height: var(--jl-card-h);
  max-height: 65px;
  padding: 4px 10px 4px 14px;
  border: 2px solid var(--jl-border);
  border-radius: 17px;
  background: #FFFFFF;
  box-shadow: var(--jl-shadow);
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
}

html.fch-joylink-page a.brand-row:hover {
  transform: translateY(-1px);
  border-color: var(--jl-border-hover);
  box-shadow: 0 8px 18px rgba(23, 59, 134, 0.12), 0 1px 3px rgba(15, 23, 42, 0.05);
}

html.fch-joylink-page .brand-copy {
  min-width: 0;
  font-size: 14px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

html.fch-joylink-page .brand-name {
  font-weight: 900;
  color: var(--jl-name);
}

html.fch-joylink-page .brand-divider {
  font-weight: 500;
  color: var(--jl-divider);
  margin: 0 0.15em;
}

html.fch-joylink-page .brand-offer {
  font-weight: 500;
  color: var(--jl-offer);
}

html.fch-joylink-page .brand-logo {
  width: var(--jl-logo-size);
  height: var(--jl-logo-size);
  border-radius: 13px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  flex: 0 0 auto;
  line-height: 0;
}

html.fch-joylink-page .brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border: 0;
}

/* 4DGANG: match bantu88d.com/4dpartnership � full logo + circular clip (CSS, not cropped asset) */
html.fch-joylink-page #group-4dgangpartnership .brand-logo {
  border-radius: 50%;
  background: transparent;
  overflow: hidden;
}
html.fch-joylink-page #group-4dgangpartnership .brand-logo img {
  object-fit: contain;
  object-position: center;
}

/* Samamenang: keep full logo visible (same treatment as 4DGANG circular optional; square contain) */
html.fch-joylink-page #group-samamenangpartnership .brand-logo img {
  object-fit: contain;
  object-position: center;
}

/* SCRPlay: logos from scrplay.vip/partnership-crossover ? full artwork */
html.fch-joylink-page #group-scrplaypartnership .brand-logo img {
  object-fit: contain;
  object-position: center;
}

@media (max-width: 430px) {
  html.fch-joylink-page {
    --jl-card-h: 56px;
    --jl-logo-size: 44px;
  }
  html.fch-joylink-page .fch-joylink-section {
    padding: 12px 8px 28px !important;
  }
  html.fch-joylink-page a.brand-row {
    width: 100%;
    gap: 10px;
    padding: 3px 8px 3px 12px;
  }
  html.fch-joylink-page .partner-logo {
    max-height: 60px;
  }
}

/* berjayasamapartnership: full artwork contain */
html.fch-joylink-page #group-berjayasamapartnership .brand-logo img {
  object-fit: contain;
  object-position: center;
}

/* squeen668partnership: full artwork contain */
html.fch-joylink-page #group-squeen668partnership .brand-logo img {
  object-fit: contain;
  object-position: center;
}

/* syabas99partnership: full artwork contain */
html.fch-joylink-page #group-syabas99partnership .brand-logo img {
  object-fit: contain;
  object-position: center;
}

/* syukur668partnership: full artwork contain */
html.fch-joylink-page #group-syukur668partnership .brand-logo img {
  object-fit: contain;
  object-position: center;
}

/* i1rmpartnership: full artwork contain */
html.fch-joylink-page #group-i1rmpartnership .brand-logo img {
  object-fit: contain;
  object-position: center;
}

/* 21club: full artwork contain */
html.fch-joylink-page #group-21club .brand-logo img {
  object-fit: contain;
  object-position: center;
}

/* menanggrouppartnership: full artwork contain */
html.fch-joylink-page #group-menanggrouppartnership .brand-logo img {
  object-fit: contain;
  object-position: center;
}

/* 99grouppartnership: full artwork contain */
html.fch-joylink-page #group-99grouppartnership .brand-logo img {
  object-fit: contain;
  object-position: center;
}

/* twcbetsyarikat: full artwork contain */
html.fch-joylink-page #group-twcbetsyarikat .brand-logo img {
  object-fit: contain;
  object-position: center;
}

/* ezpartnership: full artwork contain */
html.fch-joylink-page #group-ezpartnership .brand-logo img {
  object-fit: contain;
  object-position: center;
}

/* doktorjudipartnership: full artwork contain */
html.fch-joylink-page #group-doktorjudipartnership .brand-logo img {
  object-fit: contain;
  object-position: center;
}

/* kinggroup44partnership: full artwork contain */
html.fch-joylink-page #group-kinggroup44partnership .brand-logo img {
  object-fit: contain;
  object-position: center;
}

html.fch-joylink-page #group-lkb8partnership .brand-logo img {
  object-fit: contain;
  object-position: center;
}
