/* HLC Senior Fixtures Manager 1.0.3 — only enqueued in the Senior Teams filter */
#hlc-senior-next {display:none!important} /* legacy Elementor block, kept until safe removal */
#hlc-sfm-root {clear:both;width:100%;max-width:1100px;margin:26px auto 32px;box-sizing:border-box;font-family:inherit}
#hlc-sfm-root .hlc-sfm-heading{text-align:center;margin:8px 0 18px}
#hlc-sfm-root .hlc-sfm-heading h3{color:#142655;font-size:23px;font-weight:800;margin:0 0 5px;line-height:1.3}
#hlc-sfm-root .hlc-sfm-heading p{margin:0;color:#62728f;font-size:13px}
#hlc-sfm-root .hlc-sfm-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
#hlc-sfm-root .hlc-sfm-card{box-sizing:border-box;background:linear-gradient(145deg,#101d47 0%,#19366e 100%);color:#fff;border:1px solid #b89d58;border-radius:16px;box-shadow:0 9px 20px rgba(13,31,62,.13);min-width:0;padding:21px 21px 18px}
#hlc-sfm-root .hlc-sfm-top{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:11px;font-weight:800;letter-spacing:.10em;color:#e2c573;text-transform:uppercase}
#hlc-sfm-root .hlc-sfm-homeaway{border:1px solid #94a6c9;border-radius:99px;padding:4px 11px;font-size:10px;color:#fff}
#hlc-sfm-root .hlc-sfm-card h3{font-size:18px;font-weight:800;color:#fff;margin:15px 0 10px;line-height:1.3}
#hlc-sfm-root .hlc-sfm-logos{display:flex;align-items:center;justify-content:center;gap:16px;margin:8px auto 15px;min-height:85px}
#hlc-sfm-root .hlc-sfm-crest{width:86px;height:86px;max-width:27%;display:flex;align-items:center;justify-content:center;background:transparent!important;border:none!important;border-radius:0!important;box-shadow:none!important;padding:0!important;overflow:visible}
#hlc-sfm-root .hlc-sfm-crest img{display:block;width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;mix-blend-mode:normal}
#hlc-sfm-root .hlc-sfm-placeholder{font-size:30px;font-weight:900;color:#d6ddec}
#hlc-sfm-root .hlc-sfm-versus{font-size:15px;font-weight:800;letter-spacing:.1em;color:#e9c677;flex:0 0 auto}
#hlc-sfm-root .hlc-sfm-match{color:#fff;font-size:17px;font-weight:800;text-align:center;line-height:1.42;margin:10px 0 15px;min-height:24px;overflow-wrap:anywhere}
#hlc-sfm-root .hlc-sfm-date,#hlc-sfm-root .hlc-sfm-venue{color:#e4eafa;font-size:13px;line-height:1.5;margin:6px 0}
#hlc-sfm-root .hlc-sfm-count{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:16px 0 13px}
#hlc-sfm-root .hlc-sfm-count>span{min-width:0;text-align:center;background:rgba(255,255,255,.13);border-radius:9px;padding:10px 3px 8px}
#hlc-sfm-root .hlc-sfm-count b{display:block;font-size:25px;line-height:1.1;color:#fff;font-weight:800;font-variant-numeric:tabular-nums}
#hlc-sfm-root .hlc-sfm-count small{display:block;font-size:9px;color:#d9e0f1;letter-spacing:.1em;margin-top:5px}
#hlc-sfm-root .hlc-sfm-foot{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap}
#hlc-sfm-root .hlc-sfm-status{font-size:11px;color:#d9e3f9}
#hlc-sfm-root .hlc-sfm-foot a{font-size:12px;text-decoration:underline;text-underline-offset:3px;color:#fff!important;font-weight:750}
#hlc-sfm-root .hlc-sfm-note{font-size:12px;text-align:center;color:#62728f;margin:13px auto 0;line-height:1.5}
#hlc-sfm-root .hlc-sfm-card.is-empty .hlc-sfm-count{display:none}
/* Preserve the existing First Team cards and add one small HLC crest to the team label. */
.hlcteams-section .hlcteams-v17-card-copy.hlc-sfm-with-badge{position:relative;padding-left:54px;min-height:44px}
.hlcteams-section .hlc-sfm-team-badge{position:absolute;left:2px;top:50%;transform:translateY(-50%);width:43px;height:43px;object-fit:contain;display:block;background:transparent}
@media(max-width:767px){
 #hlc-sfm-root{padding:0 12px;margin:24px auto}
 #hlc-sfm-root .hlc-sfm-grid{grid-template-columns:minmax(0,1fr);gap:15px}
 #hlc-sfm-root .hlc-sfm-card{padding:18px 17px}
 #hlc-sfm-root .hlc-sfm-crest{width:74px;height:74px}
 #hlc-sfm-root .hlc-sfm-logos{min-height:74px;gap:12px}
 #hlc-sfm-root .hlc-sfm-match{font-size:16px}
 #hlc-sfm-root .hlc-sfm-count b{font-size:23px}
}

/* v1.0.2 — roomier Senior Teams information cards, desktop only.
   These changes apply ONLY on the Senior Teams filtered page; mobile remains as before. */
.hlc-sfm-sponsor-logo { display: none !important; }
@media (min-width: 768px) {
  .hlcteams-section.hlc-sfm-seniors-display { width: 100% !important; max-width: 1100px !important; margin-left: auto !important; margin-right: auto !important; }
  .hlcteams-section.hlc-sfm-seniors-display .hlcteams-v17-list,
  .hlcteams-section.hlc-sfm-seniors-display .hlcteams-v17-row {
    width: 100% !important; max-width: none !important; margin-left: auto !important; margin-right: auto !important;
  }
  .hlcteams-section.hlc-sfm-seniors-display .hlcteams-v17-row {
    display: grid !important; grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    align-items: stretch !important; gap: 18px !important;
  }
  .hlcteams-section.hlc-sfm-seniors-display .hlcteams-v17-card {
    display: flex !important; flex-direction: column !important;
    box-sizing: border-box !important; width: 100% !important; max-width: none !important;
    min-width: 0 !important; min-height: 272px !important;
    padding: 24px 26px !important; margin: 0 !important; border-radius: 16px !important;
  }
  .hlcteams-section.hlc-sfm-seniors-display .hlcteams-v17-card-copy {
    width: 100% !important; box-sizing: border-box !important; min-height: 53px !important;
  }
  .hlcteams-section.hlc-sfm-seniors-display .hlcteams-card-name {
    font-size: 21px !important; line-height: 1.25 !important;
  }
  .hlcteams-section.hlc-sfm-seniors-display .hlcteams-card-coach {
    font-size: 13px !important;
  }
  .hlcteams-section.hlc-sfm-seniors-display .hlc-sfm-team-badge,
  .hlcteams-section.hlc-sfm-seniors-display .hlc-senior-team-badge {
    width: 51px !important; height: 51px !important;
  }
  .hlcteams-section.hlc-sfm-seniors-display .hlcteams-v17-card-copy.hlc-sfm-with-badge,
  .hlcteams-section.hlc-sfm-seniors-display .hlcteams-v17-card-copy.hlc-senior-has-logo {
    padding-left: 66px !important;
  }
  .hlcteams-section.hlc-sfm-seniors-display .hlcteams-v17-card-actions {
    box-sizing: border-box !important; width: 100% !important; margin-top: auto !important;
  }
  .hlcteams-section.hlc-sfm-seniors-display .hlcteams-sponsors {
    width: 100% !important; max-width: none !important; margin-top: 12px !important; text-align: center !important;
  }
  .hlcteams-section.hlc-sfm-seniors-display .hlcteams-sponsors-label {
    display: block !important; margin-bottom: 10px !important;
  }
  .hlcteams-section.hlc-sfm-seniors-display .hlcteams-sponsors-list {
    width: 100% !important; max-width: none !important; display: flex !important;
    align-items: center !important; justify-content: center !important;
    flex-flow: row nowrap !important; gap: 20px !important;
  }
  .hlcteams-section.hlc-sfm-seniors-display .hlcteams-sponsor-separator {
    display: none !important;
  }
  .hlcteams-section.hlc-sfm-seniors-display .hlcteams-sponsor-link.hlc-sfm-logo-ready {
    display: flex !important; flex: 0 1 190px !important;
    width: 44% !important; height: 99px !important;
    max-width: 190px !important; min-width: 0 !important;
    align-items: center !important; justify-content: center !important;
    box-sizing: border-box !important; padding: 7px 9px !important;
    font-size: 0 !important; line-height: 0 !important;
    white-space: normal !important; text-decoration: none !important;
    background: transparent !important; border: 0 !important;
  }
  .hlcteams-section.hlc-sfm-seniors-display .hlcteams-sponsor-link.hlc-sfm-logo-ready.hlc-sfm-logo-light {
    background: #fff !important; border-radius: 10px !important;
  }
  .hlcteams-section.hlc-sfm-seniors-display .hlcteams-sponsor-link.hlc-sfm-logo-ready .hlc-sfm-sponsor-logo {
    display: block !important; max-height: 85px !important; max-width: 100% !important;
    width: auto !important; height: auto !important;
    object-fit: contain !important; margin: 0 auto !important;
  }
  .hlcteams-section.hlc-sfm-seniors-display .hlcteams-sponsor-link.hlc-sfm-logo-broken {
    font-size: 13px !important; line-height: 1.35 !important;
  }
  .hlcteams-section.hlc-sfm-seniors-display .hlcteams-sponsor-link:focus-visible {
    outline: 2px solid #eac674 !important; outline-offset: 4px !important;
  }
}


/* v1.0.3 — cleaner desktop sponsor treatment and larger HLC badges */
#hlc-sfm-root .hlc-sfm-crest.is-opponent{
  border-radius: 14px;
  overflow: hidden;
}
#hlc-sfm-root .hlc-sfm-crest.is-opponent img{
  background: transparent !important;
  mix-blend-mode: normal !important;
}
#hlc-sfm-root .hlc-sfm-crest.is-hlc img{
  mix-blend-mode: normal;
}
@media (min-width: 768px) {
  .hlcteams-section.hlc-sfm-seniors-display .hlcteams-v17-card {
    min-height: 290px !important;
    padding: 24px 28px !important;
  }
  .hlcteams-section.hlc-sfm-seniors-display .hlcteams-v17-card-copy {
    min-height: 58px !important;
  }
  .hlcteams-section.hlc-sfm-seniors-display .hlc-sfm-team-badge,
  .hlcteams-section.hlc-sfm-seniors-display .hlc-senior-team-badge {
    width: 60px !important; height: 60px !important;
  }
  .hlcteams-section.hlc-sfm-seniors-display .hlcteams-v17-card-copy.hlc-sfm-with-badge,
  .hlcteams-section.hlc-sfm-seniors-display .hlcteams-v17-card-copy.hlc-senior-has-logo {
    padding-left: 74px !important;
  }
  .hlcteams-section.hlc-sfm-seniors-display .hlcteams-sponsors-list {
    gap: 18px !important;
  }
  .hlcteams-section.hlc-sfm-seniors-display .hlcteams-sponsor-link.hlc-sfm-logo-ready,
  .hlcteams-section.hlc-sfm-seniors-display .hlcteams-sponsor-link.hlc-sfm-logo-ready.hlc-sfm-logo-light {
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border: 0 !important;
    height: 88px !important;
    padding: 4px 8px !important;
  }
  .hlcteams-section.hlc-sfm-seniors-display .hlcteams-sponsor-link.hlc-sfm-logo-ready .hlc-sfm-sponsor-logo {
    max-height: 78px !important;
    max-width: 100% !important;
  }
}

/* v1.0.4 — restore genuine sponsor artwork and correct the opposition badges. */
#hlc-sfm-root .hlc-sfm-crest.is-opponent {
  overflow: visible !important;
  background: transparent !important;
  border-radius: 0 !important;
}
#hlc-sfm-root .hlc-sfm-crest.is-opponent img {
  background: transparent !important;
  mix-blend-mode: normal !important;
  filter: drop-shadow(0 0 1.4px rgba(255,255,255,.84)) !important;
}
@media(min-width:768px){
  .hlcteams-section.hlc-sfm-seniors-display .hlcteams-sponsor-link.hlc-sfm-logo-ogw .hlc-sfm-sponsor-logo,
  .hlcteams-section.hlc-sfm-seniors-display .hlcteams-sponsor-link.hlc-sfm-logo-dd .hlc-sfm-sponsor-logo {
    object-fit: contain !important;
    background: transparent !important;
    mix-blend-mode: normal !important;
    filter: none !important;
  }
  .hlcteams-section.hlc-sfm-seniors-display .hlcteams-sponsor-link.hlc-sfm-logo-ogw .hlc-sfm-sponsor-logo:not([src^="data:"]) {
    /* Only used if canvas is blocked: screens out the black background,
       and hides the white bars at the left/right edge of the original file. */
    mix-blend-mode: screen !important;
    filter: grayscale(1) brightness(1.5) !important;
    clip-path: inset(0 8% 0 8%) !important;
  }
}


/* v1.0.5 — enlarge Selection sponsor and stop clipping OGW edges. */
@media (min-width: 768px) {
  .hlcteams-section.hlc-sfm-seniors-display .hlcteams-sponsor-link.hlc-sfm-logo-selection .hlc-sfm-sponsor-logo {
    transform: scale(1.70) !important;
    transform-origin: center center !important;
    max-height: 82px !important;
  }
  .hlcteams-section.hlc-sfm-seniors-display .hlcteams-sponsor-link.hlc-sfm-logo-selection {
    overflow: visible !important;
  }
  .hlcteams-section.hlc-sfm-seniors-display .hlcteams-sponsor-link.hlc-sfm-logo-ogw {
    overflow: visible !important;
    padding-left: 2px !important;
    padding-right: 2px !important;
  }
  .hlcteams-section.hlc-sfm-seniors-display .hlcteams-sponsor-link.hlc-sfm-logo-ogw .hlc-sfm-sponsor-logo,
  .hlcteams-section.hlc-sfm-seniors-display .hlcteams-sponsor-link.hlc-sfm-logo-ogw .hlc-sfm-sponsor-logo:not([src^="data:"]) {
    clip-path: none !important;
    max-width: 100% !important;
    max-height: 82px !important;
  }
}


/* v1.0.6 — centre the team title and manager independently of the crest.
   Desktop-only; sponsor logos and mobile cards remain unchanged. */
@media (min-width: 768px) {
  .hlcteams-section.hlc-sfm-seniors-display .hlcteams-v17-card-copy {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
  }
  .hlcteams-section.hlc-sfm-seniors-display .hlcteams-v17-card-copy.hlc-sfm-with-badge,
  .hlcteams-section.hlc-sfm-seniors-display .hlcteams-v17-card-copy.hlc-senior-has-logo {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .hlcteams-section.hlc-sfm-seniors-display .hlcteams-v17-card-copy .hlcteams-card-name,
  .hlcteams-section.hlc-sfm-seniors-display .hlcteams-v17-card-copy .hlcteams-card-coach {
    display: block !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
  }
}


/* v1.0.7 — mobile only: show the identical sponsor artwork already used
   on desktop, compact beside each other without any background panels.
   Linked sponsor names remain in the DOM for accessibility and fallback. */
@media (max-width: 767px) {
  .hlcteams-section.hlc-sfm-seniors-display .hlcteams-sponsors {
    width: 100% !important;
    text-align: center !important;
  }
  .hlcteams-section.hlc-sfm-seniors-display .hlcteams-sponsors-label {
    display: block !important;
    margin: 0 0 9px !important;
    text-align: center !important;
  }
  .hlcteams-section.hlc-sfm-seniors-display .hlcteams-sponsors-list {
    display: flex !important;
    flex-flow: row nowrap !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 74px !important;
    gap: 12px !important;
    margin: 0 auto !important;
  }
  .hlcteams-section.hlc-sfm-seniors-display .hlcteams-sponsor-separator {
    display: none !important;
  }
  .hlcteams-section.hlc-sfm-seniors-display .hlcteams-sponsor-link.hlc-sfm-logo-ready,
  .hlcteams-section.hlc-sfm-seniors-display .hlcteams-sponsor-link.hlc-sfm-logo-ready.hlc-sfm-logo-light {
    display: flex !important;
    flex: 0 1 108px !important;
    justify-content: center !important;
    align-items: center !important;
    box-sizing: border-box !important;
    width: 44% !important;
    max-width: 108px !important;
    min-width: 0 !important;
    height: 74px !important;
    padding: 2px 4px !important;
    margin: 0 !important;
    overflow: visible !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    font-size: 0 !important;
    line-height: 0 !important;
    text-decoration: none !important;
    white-space: normal !important;
  }
  .hlcteams-section.hlc-sfm-seniors-display .hlcteams-sponsor-link.hlc-sfm-logo-ready .hlc-sfm-sponsor-logo {
    display: block !important;
    max-width: 100% !important;
    max-height: 66px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    object-position: center !important;
    margin: auto !important;
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    clip-path: none !important;
  }
  .hlcteams-section.hlc-sfm-seniors-display .hlcteams-sponsor-link.hlc-sfm-logo-broken {
    font-size: 12px !important;
    line-height: 1.25 !important;
  }
}
