/* Kisure Sports Frontend v795
   Article-linked solid visibility pass.
   Scope: news article Match Summary + Transfer Summary only.
   Goals:
   - solid Kisure dark-green surfaces in dark mode (no glass/washed charcoal)
   - expanded Match Summary details use dark-green panel + white text in both themes
   - full team/club logos remain visible and receive a silhouette outline for contrast
   - Transfer Summary keeps high contrast in light and dark modes
   - preserve FE794 ad transparency + all FE793/DE458 logic/data contracts
*/

body.is-news-article-page {
  --ks795-green-950: #032f2e;
  --ks795-green-900: #063b39;
  --ks795-green-850: #074743;
  --ks795-green-800: #07534e;
  --ks795-green-700: #087f7c;
  --ks795-teal: #0a9791;
  --ks795-teal-bright: #55e2d9;
  --ks795-white: #ffffff;
  --ks795-light-surface: #ffffff;
  --ks795-light-text: #132033;
  --ks795-light-muted: #617184;
  --ks795-light-line: #d9e2e7;
  --ks795-dark-line: #0d6c67;
}

/* --------------------------------------------------------------------------
   MATCH SUMMARY: solid surfaces, no glass
   -------------------------------------------------------------------------- */
body.is-news-article-page .article-linked-data-stack .article-match-summary-block,
body.is-news-article-page .article-linked-data-stack .article-match-summary-block__header,
body.is-news-article-page .article-linked-data-stack .article-match-summary-block__footer,
body.is-news-article-page .article-linked-data-stack .article-match-scoreboard,
body.is-news-article-page .article-linked-data-stack .article-match-scoreboard__more,
body.is-news-article-page .article-linked-data-stack .article-match-scoreboard__more-body {
  background-image: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  filter: none;
  opacity: 1 !important;
}

html[data-theme="light"] body.is-news-article-page .article-linked-data-stack .article-match-summary-block {
  background: var(--ks795-light-surface) !important;
  border-color: var(--ks795-light-line) !important;
  color: var(--ks795-light-text) !important;
}

html[data-theme="light"] body.is-news-article-page .article-linked-data-stack .article-match-summary-block__header,
html[data-theme="light"] body.is-news-article-page .article-linked-data-stack .article-match-summary-block__footer,
html[data-theme="light"] body.is-news-article-page .article-linked-data-stack .article-match-scoreboard {
  background: #ffffff !important;
  color: var(--ks795-light-text) !important;
}

html[data-theme="dark"] body.is-news-article-page .article-linked-data-stack .article-match-summary-block {
  background: var(--ks795-green-950) !important;
  border: 1px solid var(--ks795-dark-line) !important;
  color: var(--ks795-white) !important;
}

html[data-theme="dark"] body.is-news-article-page .article-linked-data-stack .article-match-summary-block__header,
html[data-theme="dark"] body.is-news-article-page .article-linked-data-stack .article-match-summary-block__footer {
  background: var(--ks795-green-950) !important;
  border-color: var(--ks795-dark-line) !important;
  color: var(--ks795-white) !important;
}

html[data-theme="dark"] body.is-news-article-page .article-linked-data-stack .article-match-scoreboard {
  background: var(--ks795-green-900) !important;
  color: var(--ks795-white) !important;
}

html[data-theme="dark"] body.is-news-article-page .article-linked-data-stack .article-match-summary-block__header h2,
html[data-theme="dark"] body.is-news-article-page .article-linked-data-stack .article-match-scoreboard :is(
  .article-match-scoreboard__meta,
  .article-match-scoreboard__meta > span,
  .article-match-scoreboard__team,
  .article-match-scoreboard__team strong,
  .article-match-scoreboard__score,
  .article-match-scoreboard__score b,
  .article-match-scoreboard__details,
  .article-match-scoreboard__details span
) {
  color: var(--ks795-white) !important;
  -webkit-text-fill-color: var(--ks795-white) !important;
}

html[data-theme="dark"] body.is-news-article-page .article-linked-data-stack .article-match-summary-block .site-kicker,
html[data-theme="dark"] body.is-news-article-page .article-linked-data-stack .article-match-summary-block__top-link,
html[data-theme="dark"] body.is-news-article-page .article-linked-data-stack .article-match-scoreboard__competition-link,
html[data-theme="dark"] body.is-news-article-page .article-linked-data-stack .article-match-scoreboard__competition-link strong,
html[data-theme="dark"] body.is-news-article-page .article-linked-data-stack .article-match-scoreboard__score > span {
  color: var(--ks795-teal-bright) !important;
  -webkit-text-fill-color: var(--ks795-teal-bright) !important;
}

/* Solid Kisure buttons. */
body.is-news-article-page .article-linked-data-stack .article-match-scoreboard__more summary,
body.is-news-article-page .article-linked-data-stack .article-match-summary-block__cta {
  background: var(--ks795-teal) !important;
  background-image: none !important;
  border: 1px solid #12b7af !important;
  color: var(--ks795-white) !important;
  -webkit-text-fill-color: var(--ks795-white) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  opacity: 1 !important;
}

body.is-news-article-page .article-linked-data-stack .article-match-scoreboard__more summary:hover,
body.is-news-article-page .article-linked-data-stack .article-match-scoreboard__more summary:focus-visible,
body.is-news-article-page .article-linked-data-stack .article-match-summary-block__cta:hover,
body.is-news-article-page .article-linked-data-stack .article-match-summary-block__cta:focus-visible {
  background: var(--ks795-green-800) !important;
  border-color: var(--ks795-teal-bright) !important;
  color: var(--ks795-white) !important;
  -webkit-text-fill-color: var(--ks795-white) !important;
}

/* --------------------------------------------------------------------------
   MATCH DETAILS: same strong dark-green detail surface in BOTH themes.
   User-requested contract: every detail line/player link remains white.
   -------------------------------------------------------------------------- */
body.is-news-article-page .article-linked-data-stack .article-match-scoreboard__more-body {
  margin-top: .75rem !important;
  padding: .8rem .85rem !important;
  border: 1px solid #0f7772 !important;
  border-radius: .85rem !important;
  background: var(--ks795-green-900) !important;
  color: var(--ks795-white) !important;
}

html[data-theme="light"] body.is-news-article-page .article-linked-data-stack .article-match-scoreboard__more-body,
html[data-theme="dark"] body.is-news-article-page .article-linked-data-stack .article-match-scoreboard__more-body {
  background: var(--ks795-green-900) !important;
  color: var(--ks795-white) !important;
}

body.is-news-article-page .article-linked-data-stack .article-match-scoreboard__more-body :is(
  .article-match-scoreboard__details,
  .article-match-scoreboard__details span,
  .article-match-scoreboard__details a,
  .article-match-scoreboard__support,
  .article-match-scoreboard__support-col,
  .article-match-scoreboard__support-col strong,
  .article-match-scoreboard__support-col strong span,
  .article-match-scoreboard__player-link,
  .article-match-scoreboard__player-link:visited
) {
  color: var(--ks795-white) !important;
  -webkit-text-fill-color: var(--ks795-white) !important;
  opacity: 1 !important;
}

body.is-news-article-page .article-linked-data-stack .article-match-scoreboard__more-body .article-match-scoreboard__support,
body.is-news-article-page .article-linked-data-stack .article-match-scoreboard__more-body .article-match-scoreboard__details--last {
  background: transparent !important;
  background-image: none !important;
  border-color: #0f7772 !important;
  box-shadow: none !important;
}

body.is-news-article-page .article-linked-data-stack .article-match-scoreboard__more-body .article-match-scoreboard__support + .article-match-scoreboard__support,
body.is-news-article-page .article-linked-data-stack .article-match-scoreboard__more-body .article-match-scoreboard__details--last {
  border-top: 1px solid #0f7772 !important;
}

body.is-news-article-page .article-linked-data-stack .article-match-scoreboard__more-body .article-match-scoreboard__halftime-pill,
body.is-news-article-page .article-linked-data-stack .article-match-scoreboard__more-body .article-match-scoreboard__penalty-pill {
  background: var(--ks795-teal) !important;
  border-color: #18c0b7 !important;
  color: var(--ks795-white) !important;
  -webkit-text-fill-color: var(--ks795-white) !important;
}

body.is-news-article-page .article-linked-data-stack .article-match-scoreboard__more-body :is(
  .article-match-scoreboard__support-center,
  .article-match-scoreboard__support-center--icon,
  .football-event-icon,
  .article-match-scoreboard__details i
) {
  color: var(--ks795-teal-bright) !important;
  -webkit-text-fill-color: var(--ks795-teal-bright) !important;
}

body.is-news-article-page .article-linked-data-stack .article-match-scoreboard__more-body .article-match-scoreboard__player-link:hover,
body.is-news-article-page .article-linked-data-stack .article-match-scoreboard__more-body .article-match-scoreboard__player-link:focus-visible {
  color: #bafffa !important;
  -webkit-text-fill-color: #bafffa !important;
  text-decoration-color: #71eee6 !important;
}

/* --------------------------------------------------------------------------
   FULL LOGO VISIBILITY
   Do not frame transparent crests in decorative boxes. Preserve transparency,
   show the complete source image, and outline the actual opaque logo pixels.
   -------------------------------------------------------------------------- */
body.is-news-article-page .article-linked-data-stack .article-match-scoreboard__main {
  grid-template-columns: minmax(0, 1fr) 60px minmax(104px, .66fr) 60px minmax(0, 1fr) !important;
  gap: .5rem !important;
}

body.is-news-article-page .article-linked-data-stack .article-match-scoreboard__crest {
  width: 60px !important;
  height: 60px !important;
  min-width: 60px !important;
  min-height: 60px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: visible !important;
  clip-path: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.is-news-article-page .article-linked-data-stack .article-match-scoreboard__crest img {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: 52px !important;
  max-height: 52px !important;
  object-fit: contain !important;
  object-position: center !important;
  overflow: visible !important;
  clip-path: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

html[data-theme="light"] body.is-news-article-page .article-linked-data-stack .article-match-scoreboard__crest img,
html[data-theme="light"] body.is-news-article-page .article-transfer-summary-block__club img {
  filter:
    drop-shadow(1px 0 0 #0a6864)
    drop-shadow(-1px 0 0 #0a6864)
    drop-shadow(0 1px 0 #0a6864)
    drop-shadow(0 -1px 0 #0a6864) !important;
}

html[data-theme="dark"] body.is-news-article-page .article-linked-data-stack .article-match-scoreboard__crest img,
html[data-theme="dark"] body.is-news-article-page .article-transfer-summary-block__club img {
  filter:
    drop-shadow(1px 0 0 rgba(255,255,255,.9))
    drop-shadow(-1px 0 0 rgba(255,255,255,.9))
    drop-shadow(0 1px 0 rgba(255,255,255,.9))
    drop-shadow(0 -1px 0 rgba(255,255,255,.9))
    drop-shadow(0 0 2px #19b9b0) !important;
}

/* --------------------------------------------------------------------------
   TRANSFER SUMMARY: solid, readable, properly separated in both themes.
   -------------------------------------------------------------------------- */
body.is-news-article-page .article-transfer-summary-block,
body.is-news-article-page .article-transfer-summary-block__header,
body.is-news-article-page .article-transfer-summary-block__move,
body.is-news-article-page .article-transfer-summary-block__meta,
body.is-news-article-page .article-transfer-summary-block__footer,
body.is-news-article-page .article-transfer-summary-block__player,
body.is-news-article-page .article-transfer-summary-block__club {
  background-image: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  opacity: 1 !important;
}

html[data-theme="light"] body.is-news-article-page .article-transfer-summary-block {
  background: #ffffff !important;
  border: 1px solid var(--ks795-light-line) !important;
  color: var(--ks795-light-text) !important;
}

html[data-theme="light"] body.is-news-article-page .article-transfer-summary-block__header,
html[data-theme="light"] body.is-news-article-page .article-transfer-summary-block__move,
html[data-theme="light"] body.is-news-article-page .article-transfer-summary-block__meta,
html[data-theme="light"] body.is-news-article-page .article-transfer-summary-block__footer {
  background: #ffffff !important;
  border-color: var(--ks795-light-line) !important;
}

html[data-theme="dark"] body.is-news-article-page .article-transfer-summary-block {
  background: var(--ks795-green-950) !important;
  border: 1px solid var(--ks795-dark-line) !important;
  color: var(--ks795-white) !important;
}

html[data-theme="dark"] body.is-news-article-page .article-transfer-summary-block__header,
html[data-theme="dark"] body.is-news-article-page .article-transfer-summary-block__footer {
  background: var(--ks795-green-950) !important;
  border-color: var(--ks795-dark-line) !important;
}

html[data-theme="dark"] body.is-news-article-page .article-transfer-summary-block__move,
html[data-theme="dark"] body.is-news-article-page .article-transfer-summary-block__meta {
  background: var(--ks795-green-900) !important;
  border-color: var(--ks795-dark-line) !important;
}

/* Transfer typography: explicit colors defeat old text-fill rules. */
html[data-theme="light"] body.is-news-article-page .article-transfer-summary-block :is(
  .article-transfer-summary-block__header h2,
  .article-transfer-summary-block__club strong,
  .article-transfer-summary-block__club a,
  .article-transfer-summary-block__meta,
  .article-transfer-summary-block__meta span,
  .article-transfer-summary-block__footer a
) {
  color: var(--ks795-light-text) !important;
  -webkit-text-fill-color: var(--ks795-light-text) !important;
}

html[data-theme="light"] body.is-news-article-page .article-transfer-summary-block :is(
  .article-transfer-summary-block__club > span,
  .article-transfer-summary-block__player small
) {
  color: var(--ks795-light-muted) !important;
  -webkit-text-fill-color: var(--ks795-light-muted) !important;
}

html[data-theme="dark"] body.is-news-article-page .article-transfer-summary-block :is(
  .article-transfer-summary-block__header h2,
  .article-transfer-summary-block__club strong,
  .article-transfer-summary-block__club a,
  .article-transfer-summary-block__club > span,
  .article-transfer-summary-block__player small,
  .article-transfer-summary-block__meta,
  .article-transfer-summary-block__meta span,
  .article-transfer-summary-block__footer a
) {
  color: var(--ks795-white) !important;
  -webkit-text-fill-color: var(--ks795-white) !important;
}

body.is-news-article-page .article-transfer-summary-block .site-kicker,
body.is-news-article-page .article-transfer-summary-block__meta i,
body.is-news-article-page .article-transfer-summary-block__player > i {
  color: var(--ks795-teal) !important;
  -webkit-text-fill-color: var(--ks795-teal) !important;
}

html[data-theme="dark"] body.is-news-article-page .article-transfer-summary-block .site-kicker,
html[data-theme="dark"] body.is-news-article-page .article-transfer-summary-block__meta i,
html[data-theme="dark"] body.is-news-article-page .article-transfer-summary-block__player > i {
  color: var(--ks795-teal-bright) !important;
  -webkit-text-fill-color: var(--ks795-teal-bright) !important;
}

html[data-theme="light"] body.is-news-article-page .article-transfer-summary-block__status {
  background: #ffffff !important;
  border: 1px solid var(--ks795-green-700) !important;
  color: var(--ks795-green-700) !important;
  -webkit-text-fill-color: var(--ks795-green-700) !important;
}

html[data-theme="dark"] body.is-news-article-page .article-transfer-summary-block__status {
  background: var(--ks795-teal) !important;
  border: 1px solid #18c0b7 !important;
  color: var(--ks795-white) !important;
  -webkit-text-fill-color: var(--ks795-white) !important;
}

body.is-news-article-page .article-transfer-summary-block__club {
  overflow: visible !important;
}

body.is-news-article-page .article-transfer-summary-block__club img {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: 50px !important;
  max-height: 50px !important;
  object-fit: contain !important;
  object-position: center !important;
  overflow: visible !important;
  clip-path: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.is-news-article-page .article-transfer-summary-block .ks-player-face-frame--article {
  width: 44px !important;
  height: 44px !important;
  flex: 0 0 44px !important;
  border: 2px solid var(--ks795-teal) !important;
  background: #ffffff !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

html[data-theme="dark"] body.is-news-article-page .article-transfer-summary-block .ks-player-face-frame--article {
  border-color: var(--ks795-teal-bright) !important;
  background: var(--ks795-green-850) !important;
}

body.is-news-article-page .article-transfer-summary-block .ks-player-face-frame--article img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center top !important;
  filter: none !important;
}

body.is-news-article-page .article-transfer-summary-block__footer a:hover,
body.is-news-article-page .article-transfer-summary-block__footer a:focus-visible,
body.is-news-article-page .article-transfer-summary-block__club a:hover,
body.is-news-article-page .article-transfer-summary-block__club a:focus-visible {
  color: var(--ks795-teal) !important;
  -webkit-text-fill-color: var(--ks795-teal) !important;
}

html[data-theme="dark"] body.is-news-article-page .article-transfer-summary-block__footer a:hover,
html[data-theme="dark"] body.is-news-article-page .article-transfer-summary-block__footer a:focus-visible,
html[data-theme="dark"] body.is-news-article-page .article-transfer-summary-block__club a:hover,
html[data-theme="dark"] body.is-news-article-page .article-transfer-summary-block__club a:focus-visible {
  color: var(--ks795-teal-bright) !important;
  -webkit-text-fill-color: var(--ks795-teal-bright) !important;
}

@media (max-width: 700px) {
  body.is-news-article-page .article-linked-data-stack .article-match-scoreboard__main {
    grid-template-columns: minmax(0, 1fr) 46px minmax(78px, .62fr) 46px minmax(0, 1fr) !important;
    gap: .3rem !important;
  }

  body.is-news-article-page .article-linked-data-stack .article-match-scoreboard__crest {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    min-height: 46px !important;
  }

  body.is-news-article-page .article-linked-data-stack .article-match-scoreboard__crest img {
    max-width: 42px !important;
    max-height: 42px !important;
  }

  body.is-news-article-page .article-linked-data-stack .article-match-scoreboard__more-body {
    padding: .72rem .65rem !important;
  }

  body.is-news-article-page .article-transfer-summary-block__club img {
    max-width: 42px !important;
    max-height: 42px !important;
  }

  body.is-news-article-page .article-transfer-summary-block .ks-player-face-frame--article {
    width: 40px !important;
    height: 40px !important;
    flex-basis: 40px !important;
  }
}
