/*
 * Sport Team Core – front-end styles of the blocks and the sponsor strip.
 * Colours follow the Sport Team theme (CSS variables --st-*); with other
 * themes the fallback colours in var(…, fallback) are used.
 */

.stb{
  --stb-surface:#EEF1F6;
  --stb-border:#DCE1E9;
  --stb-gap:clamp(0.875rem, 0.7rem + 0.6vw, 1.25rem);
  font-size:var(--st-fs-base, 1rem);
  color:var(--st-text, #1A2233);
}
.stb p{ margin:0; }
.stb ul{ list-style:none; margin:0; padding:0; }
.stb li{ margin:0; }
.stb-grid{
  display:grid;
  gap:var(--stb-gap);
  grid-template-columns:repeat(var(--stb-cols, 3), minmax(0, 1fr));
}
.stb-cols-1{ --stb-cols:1; }
.stb-cols-2{ --stb-cols:2; }
.stb-cols-3{ --stb-cols:3; }
@media (max-width:999px){
  .stb-grid.stb-cols-3{ --stb-cols:2; }
  .stb-prices.stb-cols-3, .stb-gears.stb-cols-3{ --stb-cols:3; }
}
@media (max-width:689px){
  .stb-grid{ --stb-cols:1 !important; }
}
.stb-card{
  padding:clamp(1.125rem, 1rem + 0.6vw, 1.5rem) clamp(1.125rem, 1rem + 0.6vw, 1.5rem);
  background:var(--stb-surface);
  border-radius:6px;
}
.stb-label{
  font-size:var(--st-fs-2xs, 0.75rem);
  font-weight:600;
  line-height:1.4;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--st-text-muted, #5B6472);
}
.stb-muted{ color:var(--st-text-muted, #5B6472); font-weight:400; }

.stb-person.is-highlight{ border-left:4px solid var(--st-accent, #FF6B35); }
.stb-person__name{
  margin-top:0.375rem !important;
  font-size:var(--st-fs-lg, 1.25rem);
  font-weight:700;
  line-height:1.35;
  color:var(--st-ink, var(--st-primary, #102A5C));
}
.stb-person__address{
  margin-top:0.125rem !important;
  font-size:var(--st-fs-sm, 0.875rem);
  color:var(--st-text-muted, #5B6472);
}
.stb-person__links{
  display:flex;
  flex-direction:column;
  gap:0.375rem;
  margin-top:0.75rem !important;
}
.stb-cols-1 .stb-person__links{ flex-direction:row; flex-wrap:wrap; gap:0.5rem 1.75rem; }
.stb-ico{
  display:flex;
  align-items:baseline;
  flex-wrap:wrap;
  gap:0.25rem 0.5rem;
  font-size:var(--st-fs-sm, 0.875rem);
  font-weight:500;
  overflow-wrap:anywhere;
}
.stb-ico::before{
  content:"";
  flex:0 0 auto;
  align-self:center;
  width:1rem;
  height:1rem;
  background-color:var(--st-accent, #FF6B35);
}
.stb-ico--phone::before{
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.4 1.8.7 2.7a2 2 0 0 1-.5 2.1L8 9.8a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.7.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E") no-repeat center / contain;
          mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.4 1.8.7 2.7a2 2 0 0 1-.5 2.1L8 9.8a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.7.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E") no-repeat center / contain;
}
.stb-ico--mail::before{
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6l9 7 9-7'/%3E%3Crect x='3' y='5' width='18' height='14' rx='1.5'/%3E%3C/svg%3E") no-repeat center / contain;
          mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6l9 7 9-7'/%3E%3Crect x='3' y='5' width='18' height='14' rx='1.5'/%3E%3C/svg%3E") no-repeat center / contain;
}
.stb .stb-ico a{
  color:var(--st-ink, var(--st-primary, #102A5C));
  text-decoration:none;
}
.stb .stb-ico a:hover{
  text-decoration:underline;
  text-decoration-color:var(--st-accent, #FF6B35);
  text-decoration-thickness:2px;
}

.stb-price{
  padding:clamp(1.25rem, 1rem + 0.8vw, 1.625rem) clamp(1.125rem, 1rem + 0.5vw, 1.5rem);
  background:var(--st-primary, #102A5C);
  border-radius:6px;
  color:#fff;
}
.stb-price .stb-label{ color:rgba(255,255,255,.72); }
.stb-price__value{
  margin-top:0.375rem !important;
  font-size:clamp(2rem, 1.55rem + 1.6 * var(--st-vw, 1vw), 2.75rem);
  font-weight:800;
  line-height:1.1;
  color:var(--st-accent, #FF6B35);
}
.stb-price__note{
  font-size:var(--st-fs-sm, 0.875rem);
  line-height:1.5;
  color:rgba(255,255,255,.78);
}
.stb-price.is-text{
  background:var(--st-card, #fff);
  border:1px solid var(--stb-border);
  color:var(--st-text, #1A2233);
}
.stb-price.is-text .stb-label{ color:var(--st-text-muted, #5B6472); }
.stb-price.is-text .stb-price__value{
  margin-top:0.625rem !important;
  font-size:clamp(1.125rem, 1.05rem + 0.35 * var(--st-vw, 1vw), 1.3125rem);
  font-weight:700;
  line-height:1.3;
  color:var(--st-ink, var(--st-primary, #102A5C));
}
.stb-price.is-text .stb-price__note{ color:var(--st-text-muted, #5B6472); }

.stb-info.has-icon{ display:flex; gap:0.875rem; align-items:flex-start; }
/* 1.24.9: the icon grows with the screen, 22px (phone) – 28px (desktop); the square 16px bigger */
.stb-info{ --stb-info-ico:clamp(22px, 0.5964 * var(--st-vw, 1vw) + 19.853px, 28px); }
.stb-info__icon{ flex:none; display:grid; place-items:center; width:calc(var(--stb-info-ico) + 16px); height:calc(var(--stb-info-ico) + 16px); border-radius:6px; background:var(--st-primary, #102A5C); color:var(--st-accent-d, var(--st-accent, #FF6B35)); }
.stb-info__icon svg{ display:block; width:var(--stb-info-ico); height:var(--stb-info-ico); }
.stb-info__body{ min-width:0; }
.stb-info__body > *{ margin:0; }
.stb-info__text{ margin-top:0.25rem !important; font-size:var(--st-fs-sm, 0.875rem); line-height:1.5; color:var(--st-text-muted, #5B6472); }
.stb-info__value{
  margin-top:0.375rem !important;
  font-size:var(--st-fs-base, 1rem);
  font-weight:600;
  line-height:1.6;
  color:var(--st-ink, var(--st-primary, #102A5C));
}

.stb-gear{
  background:var(--st-card, #fff);
  border:1px solid var(--stb-border);
}
.stb-gear .stb-label{
  margin-bottom:0.5rem !important;
  font-size:clamp(1.03125rem, 0.99rem + 0.18 * var(--st-vw, 1vw), 1.125rem); /* 1.28.4: 1.5 × the small label */
}
/* Checklists in the sidebar (1.28.4): one below the other, title 1.15 × the small label. */
.stb-gears--aside{ display:flex; flex-direction:column; gap:0.75rem; }
.stb-gears--aside .stb-gear .stb-label{ font-size:clamp(0.790625rem, 0.759rem + 0.138 * var(--st-vw, 1vw), 0.8625rem); }
.stb-gear.is-dark{
  background:var(--st-primary, #102A5C);
  border-color:var(--st-primary, #102A5C);
  color:#fff;
}
.stb-gear.is-dark .stb-label{ color:var(--st-accent, #FF6B35); }
.stb-checklist li{
  position:relative;
  padding:0.4rem 0 0.4rem 1.6rem;
  font-size:var(--st-fs-sm, 0.875rem);
  line-height:1.5;
}
.stb-checklist li::before{
  content:"";
  position:absolute;
  left:0;
  top:0.62rem;
  width:1rem;
  height:1rem;
  background-color:var(--st-accent, #FF6B35);
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") no-repeat center / contain;
          mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") no-repeat center / contain;
}

.stb-players{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:0.625rem;
}
@media (max-width:999px){ .stb-players{ grid-template-columns:repeat(3, minmax(0, 1fr)); } }
@media (max-width:689px){ .stb-players{ grid-template-columns:repeat(2, minmax(0, 1fr)); } }
@media (max-width:420px){ .stb-players{ grid-template-columns:minmax(0, 1fr); } }
/* Columns by the width of the block itself (content column next to a
   sidebar is narrow even on a wide screen): 2 → 3 → 4. */
.stb-roster{ container-type:inline-size; }
@supports (container-type:inline-size){
  .stb-players{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
  @container (min-width:30rem){ .stb-players{ grid-template-columns:repeat(3, minmax(0, 1fr)); } }
  @container (min-width:48rem){ .stb-players{ grid-template-columns:repeat(4, minmax(0, 1fr)); } }
  @container (max-width:20rem){ .stb-players:not(.stb-players--cards){ grid-template-columns:minmax(0, 1fr); } }
}
.stb-players li{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:0.625rem;
  padding:0.75rem 1rem;
  background:var(--stb-surface);
  border-radius:6px;
  font-size:var(--st-fs-sm, 0.875rem);
  font-weight:500;
  color:var(--st-ink, var(--st-primary, #102A5C));
}
.stb-players__badge{
  flex:0 0 auto;
  padding:0.15rem 0.5rem;
  border-radius:3px;
  background:var(--st-accent, #FF6B35);
  color:var(--st-on-accent, #141C2D);
  font-size:clamp(0.6562rem, 0.0497 * var(--st-vw, 1vw) + 0.6451rem, 0.6875rem);
  font-weight:700;
  letter-spacing:.04em;
}
.stb-players__num{
  flex:0 0 auto;
  min-width:1.75rem;
  font-weight:800;
  font-variant-numeric:tabular-nums;
  color:var(--st-accent, #FF6B35);
  text-shadow:2px 2px 0 rgb(0 0 0 / 60%);
}
.stb-players__name{ flex:1 1 auto; min-width:0; }
.stb-players__name a,
.stb-pcard__name a{ color:inherit; text-decoration:none; }
.stb-players__name a:hover,
.stb-players__name a:focus-visible,
.stb-pcard__name a:hover,
.stb-pcard__name a:focus-visible{ text-decoration:underline; }
.stb-players__badge.is-c{
  background:var(--st-primary, #102A5C);
  color:#fff;
}

/* Player cards: photo (or silhouette), shirt number, name, badges. */
.stb-players.stb-players--cards{ gap:1rem; }
@media (max-width:420px){ .stb-players.stb-players--cards{ grid-template-columns:repeat(2, minmax(0, 1fr)); gap:0.75rem; } }
@container (max-width:32rem){ .stb-players.stb-players--cards{ gap:0.75rem; } }
/* Cards are bigger than the name list: three in a row, four only in a wide block. */
@supports (container-type:inline-size){
  @container (min-width:48rem){ .stb-players.stb-players--cards{ grid-template-columns:repeat(3, minmax(0, 1fr)); } }
  @container (min-width:64rem){ .stb-players.stb-players--cards{ grid-template-columns:repeat(4, minmax(0, 1fr)); } }
}
.stb-players--cards li.stb-pcard{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  justify-content:flex-start;
  gap:0;
  padding:0;
  overflow:hidden;
  border-radius:8px;
}
.stb-pcard__media{
  position:relative;
  display:block;
  aspect-ratio:4 / 5;
  overflow:hidden;
  background:linear-gradient(160deg, var(--st-primary, #102A5C), color-mix(in srgb, var(--st-primary, #102A5C) 70%, #000));
}
.stb-pcard__photo{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:50% 20%;
}
/* A click on the photo opens it bigger (assets/lightbox.js). */
a.stb-pcard__media{ cursor:zoom-in; }
a.stb-pcard__media .stb-pcard__photo{ transition:transform .3s ease; }
a.stb-pcard__media:hover .stb-pcard__photo{ transform:scale(1.03); }
a.stb-pcard__media:focus-visible{ outline:3px solid var(--st-accent, #FF6B35); outline-offset:-3px; }
@media (prefers-reduced-motion:reduce){ a.stb-pcard__media .stb-pcard__photo{ transition:none; } }
.stb-pcard__placeholder{
  position:absolute;
  inset:18% 18% 0;
  display:block;
}
.stb-pcard__placeholder svg{
  display:block;
  width:100%;
  height:100%;
  fill:color-mix(in srgb, #fff 22%, transparent);
}
.stb-pcard__num{
  flex:0 0 auto;
  font-size:clamp(1.85rem, 1.6rem + 0.7 * var(--st-vw, 1vw), 2.25rem);
  font-weight:800;
  line-height:1;
  font-variant-numeric:tabular-nums;
  color:var(--st-accent, #FF6B35);
  text-shadow:2px 2px 0 rgb(0 0 0 / 60%);
}
.stb-pcard__body{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:0.5rem;
  padding:0.625rem 0.75rem 0.75rem;
}
.stb-pcard__name{
  flex:1 1 auto;
  min-width:0;
  font-size:clamp(0.875rem, 0.84rem + 0.15 * var(--st-vw, 1vw), 0.96875rem);
  font-weight:600;
  line-height:1;
  overflow-wrap:break-word; /* words wrap whole; only a very long word breaks */
  hyphens:auto;
}
.stb-pcard__badges{ display:flex; flex-wrap:wrap; gap:0.25rem; flex:0 0 auto; }
/* 1.28.0: season points under the name ("8+5 = 13") and as a column in the list. */
.stb-pcard__stats{ display:block; margin-top:0.3rem; font-size:clamp(0.75rem, 0.0497 * var(--st-vw, 1vw) + 0.7389rem, 0.8125rem); font-weight:700; line-height:1.2; font-variant-numeric:tabular-nums; color:var(--st-text-muted, #5B6472); }
.stb-roster__table .stb-roster__pts{ white-space:nowrap; text-align:right; font-weight:700; font-variant-numeric:tabular-nums; }

/* 1.28.0: Top scorers – number, name, points (no rank numbers since 1.28.1). */
.stb-scorers__title{ margin:0 0 0.5rem !important; }
.stb-scorers__list{ margin:0; padding:0; list-style:none; border-top:1px solid var(--stb-border, #E3E8F0); }
.stb-scorer{ display:flex; align-items:baseline; gap:0.75rem; margin:0; padding:0.7rem 0.25rem; border-bottom:1px solid var(--stb-border, #E3E8F0); color:var(--st-ink, var(--st-primary, #102A5C)); }
.stb-scorer__name{ flex:1 1 auto; min-width:0; font-weight:600; overflow-wrap:break-word; }
.stb-scorer__num{ flex:0 0 1.75rem; font-weight:800; font-variant-numeric:tabular-nums; color:var(--st-accent-text, var(--st-accent, #FF6B35)); }
.stb-scorer__pts{ flex:0 0 auto; font-weight:800; font-variant-numeric:tabular-nums; white-space:nowrap; }
/* In the sidebar: a box like the results in the sidebar. */
.stb-scorers--aside{ border:1px solid var(--st-page-border, #DCE1E9); border-radius:6px; overflow:hidden; background:var(--st-card, #fff); }
.stb-scorers--aside .stb-scorers__title{ margin:0 !important; }
.stb-scorers--aside .stb-scorers__list{ border-top:0; }
.stb-scorers--aside .stb-scorer{ padding:0.6rem 0.85rem; }
.stb-scorers--aside .stb-scorer:last-child{ border-bottom:0; }

/* 1.27.0: "No player photos" – a card with the shirt number and name only. */
.stb-players--text li.stb-pcard.is-text{ justify-content:center; }
.stb-players--text .stb-pcard__body{ justify-content:flex-start; gap:0.75rem; min-height:4rem; padding:0.75rem 0.875rem; }
.stb-players--text .stb-pcard__num{ min-width:2.5rem; }
.stb-players--text .stb-pcard__name{ line-height:1.2; }
.stb-players--text .stb-pcard__badges{ margin-left:auto; }

.stb-players__legend{
  margin-top:0.875rem !important;
  font-size:var(--st-fs-xs, 0.8125rem);
  color:var(--st-text-muted, #5B6472);
}
.stb-players__legend strong{ color:var(--st-ink, var(--st-primary, #102A5C)); }

.stb-downloads ul{ border-top:1px solid var(--stb-border); }
.stb-downloads li{ border-bottom:1px solid var(--stb-border); }
.stb .stb-downloads a,
.stb-downloads a{
  display:flex;
  align-items:center;
  gap:0.75rem;
  padding:0.9rem 0.25rem;
  font-size:var(--st-fs-base, 1rem);
  font-weight:500;
  line-height:1.4;
  color:var(--st-ink, var(--st-primary, #102A5C));
  text-decoration:none;
  transition:background-color .2s ease;
}
.stb-downloads a::after{
  content:"";
  flex:0 0 auto;
  width:1rem;
  height:1rem;
  margin-left:auto;
  background-color:var(--st-accent, #FF6B35);
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v12M6 11l6 6 6-6M5 20h14'/%3E%3C/svg%3E") no-repeat center / contain;
          mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v12M6 11l6 6 6-6M5 20h14'/%3E%3C/svg%3E") no-repeat center / contain;
  transition:transform .2s ease;
}
.stb-downloads a:hover{ background:var(--st-surface-hover, #E3E8F0); }
.stb-downloads a:hover::after{ transform:translateY(2px); }
.stb-dl__badge{
  flex:0 0 auto;
  min-width:2.6rem;
  padding:0.2rem 0.4rem;
  border-radius:3px;
  background:var(--st-primary, #102A5C);
  color:#fff;
  font-size:clamp(0.6562rem, 0.0497 * var(--st-vw, 1vw) + 0.6451rem, 0.6875rem);
  font-weight:700;
  letter-spacing:.04em;
  line-height:1.3;
  text-align:center;
}
.stb-dl__badge.is-pdf{ background:var(--st-accent, #FF6B35); color:var(--st-on-accent, #141C2D); }

.stb-kit{
  display:flex;
  align-items:center;
  gap:clamp(1.25rem, 1rem + 0.8vw, 1.75rem);
  border:1px solid var(--stb-border);
}
.stb-kit__svg{
  flex:0 0 auto;
  width:clamp(5rem, 4rem + 3vw, 6.75rem);
  height:auto;
}
.stb-kit__title{
  margin-top:0.375rem !important;
  font-size:var(--st-fs-lg, 1.25rem);
  font-weight:700;
  line-height:1.35;
  color:var(--st-ink, var(--st-primary, #102A5C));
}
.stb-kit__desc{
  font-size:var(--st-fs-sm, 0.875rem);
  line-height:1.6;
  color:var(--st-text-muted, #5B6472);
}
/* 1.26.0: the shirt only – bigger, in a round white circle, the texts below */
.stb-kits--shirt .stb-kit{ flex-direction:column; text-align:center; }
.stb-kit__pic{ flex:none; display:grid; place-items:center; width:clamp(9rem, 7.5rem + 4vw, 12rem); aspect-ratio:1; border-radius:50%; background:var(--stb-kit-pic, #fff); } /* a white circle, as on a club's kit photo */
.stb-kit__pic .stb-kit__svg--shirt{ width:76%; height:auto; }

@media (min-width:690px){
  .stb-gears.stb-cols-1 .stb-checklist{ columns:2; column-gap:2rem; }
  .stb-gears.stb-cols-1 .stb-checklist li{ break-inside:avoid; }
}

/* ---------- Sponsors ---------- */

.stc-sponsors{
  --st-edge:max(calc((100% - var(--st-container-width, 90vw)) / 2), calc((100% - var(--st-container-max, 1290px)) / 2), 1rem);
  --st-sp-bg:#fff;
  --st-sp-label:var(--st-primary, #102A5C);
  --st-sp-line:var(--st-border, #EDEFF3);
  background:var(--st-sp-bg);
  border-top:1px solid var(--st-sp-line);
  padding:clamp(2.5rem, 1.8rem + 3vw, 4.5rem) var(--st-edge);
}
.stc-sponsors--dark{
  --st-sp-bg:var(--st-primary, #102A5C);
  --st-sp-label:#fff;
  --st-sp-line:rgba(255,255,255,.1);
}
.stc-sponsors__inner{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:clamp(1.5rem, 1.1rem + 1.5vw, 2.5rem);
}
.stc-sponsors__label{
  margin:0;
  font-family:var(--st-font, inherit);
  font-size:var(--st-fs-xs, 0.8125rem);
  font-weight:700;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--st-sp-label);
  display:flex;
  align-items:center;
  gap:14px;
}

.stc-sponsors__label::before,
.stc-sponsors__label::after{
  content:"";
  width:clamp(1.5rem, 1rem + 2vw, 3rem);
  height:2px;
  background:var(--st-accent, #FF6B35);
}
.stc-sponsors__inner{ width:100%; }

.stc-sponsors__row{
  --st-sp-cols:4;
  --st-sp-gap:clamp(1.25rem, 0.5rem + 3vw, 4rem);
  list-style:none;
  margin:0;
  padding:0;
  width:100%;
  max-width:78rem;
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  align-items:center;
  gap:clamp(1.75rem, 1rem + 3vw, 3.5rem) var(--st-sp-gap);
}
.stc-sponsor{
  margin:0;
  flex:0 0 calc((100% - (var(--st-sp-cols) - 1) * var(--st-sp-gap)) / var(--st-sp-cols));
  height:clamp(4rem, 2.8rem + 4vw, 7.5rem);
  display:flex;
  align-items:center;
  justify-content:center;
}
.stc-sponsor a{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  height:100%;
}
.stc-sponsor a{
  line-height:0;
  border-radius:4px;
}
.stc-sponsor a:focus-visible{
  outline:2px solid var(--st-accent, #FF6B35);
  outline-offset:6px;
}
.stc-sponsor img{
  display:block;
  width:auto !important;
  height:auto !important;
  max-height:100%;
  max-width:min(100%, 16rem);
  object-fit:contain;
  transition:filter .25s ease, opacity .25s ease, transform .25s ease;
}
.stc-sponsor:hover img{
  transform:scale(1.06);
}

.stc-sponsors--grayscale .stc-sponsor img{
  filter:grayscale(100%);
  opacity:.65;
}
.stc-sponsors--dark.stc-sponsors--grayscale .stc-sponsor img{
  filter:grayscale(100%) brightness(1.6);
  opacity:.75;
}

.stc-sponsors .stc-sponsor:hover img,
.stc-sponsors .stc-sponsor a:focus-visible img{
  filter:none !important;
  opacity:1 !important;
}

@media (max-width:689.98px){
  
  .stc-sponsors__row{ --st-sp-cols:2; }
}


.stc-sponsors__inner > .stc-sponsors__row + .stc-sponsors__row{ margin-top:clamp(.5rem, .25rem + 1vw, 1rem); }
.stc-sponsors__row--main{ --st-sp-cols:3; }
.stc-sponsors__row--main .stc-sponsor{ height:clamp(5rem, 3.5rem + 5vw, 9rem); }
.stc-sponsors__row--main .stc-sponsor img{ max-width:min(100%, 20rem); }
.stc-sponsors__row--supporter{ --st-sp-cols:6; }
.stc-sponsors__row--supporter .stc-sponsor{ height:clamp(3rem, 2.2rem + 2.5vw, 5rem); }
.stc-sponsors--block{ padding-inline:clamp(1rem, 3vw, 2.5rem); border-radius:var(--st-radius, 8px); border:1px solid var(--st-border, #EDEFF3); margin-block:2rem; }
@media (max-width:689.98px){
  .stc-sponsors__row--main{ --st-sp-cols:2; }
  .stc-sponsors__row--supporter{ --st-sp-cols:3; }
}
/* The strip's title as a heading (1.20.4), the accent lines on both sides. */
.stc-sponsors .stc-sponsors__title{
  margin:0;
  font-family:var(--st-font-heading, inherit);
  font-size:clamp(1.5rem, 1.1rem + 1.4 * var(--st-vw, 1vw), 2.25rem);
  font-weight:var(--st-heading-weight, 700);
  font-style:var(--st-heading-style, normal);
  line-height:1.15;
  letter-spacing:var(--st-heading-tracking, -0.01em);
  text-transform:var(--st-heading-transform, none);
  text-align:center;
  color:var(--st-primary, #102A5C);
}
.stc-sponsors--dark .stc-sponsors__title{ color:#fff; }
/* Level headings when the strip has several levels (Main partners, Partners, Supporters). */
.stc-sponsors__tier{ margin:clamp(1rem, .5rem + 1.5vw, 2rem) 0 .75rem; text-align:center; font-size:var(--st-fs-2xs, .75rem); font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:var(--st-text-muted, #5B6472); }
.stc-sponsors__label + .stc-sponsors__tier{ margin-top:0; }
.stc-sponsors--dark .stc-sponsors__tier{ color:rgb(255 255 255 / 72%); }
.stc-sponsors__inner > .stc-sponsors__tier + .stc-sponsors__row{ margin-top:0 !important; }
.stb-empty{ padding:1rem; border:1px dashed var(--st-line-strong, #CBD2DC); border-radius:6px; color:var(--st-text-muted, #5B6472); }

/* ==========================================================================
   Events (sport-team/events)
   Follows the Sport Team theme: colours, radius, fluid type scale (--st-*).
   With other themes the fallbacks in var(…, fallback) are used.
   ========================================================================== */
.stc-events,
.stc-cal{
  --stc-ink:var(--st-primary, #102A5C);
  --stc-line:var(--st-page-border, #DCE1E9);
  --stc-surface:var(--st-surface, #EEF1F6);
  --stc-radius:var(--st-radius, 8px);
  --stc-shadow:0 8px 24px rgb(var(--st-primary-rgb, 16 42 92) / 6%);
  --stc-chip:color-mix(in srgb, var(--st-primary, #102A5C) 9%, var(--st-card, #fff));
  --stc-chip-hover:color-mix(in srgb, var(--st-primary, #102A5C) 16%, var(--st-card, #fff));
  --stc-fs-chip:clamp(0.6875rem, 0.64rem + 0.15 * var(--st-vw, 1vw), 0.75rem);
  --stc-fs-badge:clamp(0.5625rem, 0.54rem + 0.1 * var(--st-vw, 1vw), 0.625rem);
  font-family:var(--st-font, inherit);
}

/* ---------- Type badge: practice / game / other ---------- */
.stc-ev-badge{
  display:inline-block;
  margin-right:0.4em;
  padding:0.15em 0.5em;
  border-radius:4px;
  font-size:var(--st-fs-2xs, 0.75rem);
  font-weight:700;
  line-height:1.3;
  letter-spacing:.08em;
  text-transform:uppercase;
  vertical-align:0.12em;
  white-space:nowrap;
}
.stc-ev-badge--practice{ background:color-mix(in srgb, var(--st-primary, #102A5C) 10%, var(--st-card, #fff)); color:var(--st-ink, var(--stc-ink)); }
.stc-ev-badge--game{ background:var(--st-accent, #FF6B35); color:var(--st-on-accent, #141C2D); }
.stc-ev-badge--other{ background:var(--stc-surface); color:var(--st-text-muted, #5B6472); box-shadow:inset 0 0 0 1px var(--stc-line); }

/* ---------- List: date tile + name and venue ---------- */
.stb .stc-ev-list{ display:grid; gap:clamp(0.5rem, 0.4rem + 0.3vw, 0.75rem); }
.stb .stc-ev{
  display:grid;
  grid-template-columns:auto minmax(0, 1fr);
  align-items:center;
  column-gap:clamp(0.75rem, 0.55rem + 0.8vw, 1.25rem);
  padding:clamp(0.5rem, 0.42rem + 0.3vw, 0.75rem);
  border:1px solid var(--stc-line);
  border-radius:var(--stc-radius);
  background:var(--st-card, #fff);
  box-shadow:var(--stc-shadow);
  transition:border-color .2s ease, box-shadow .2s ease;
}
.stb .stc-ev:has(.stc-ev__link):hover{
  border-color:rgb(var(--st-accent-rgb, 255 107 53) / 50%);
  box-shadow:0 12px 28px rgb(var(--st-primary-rgb, 16 42 92) / 12%);
}
.stc-ev__tile{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  align-self:stretch;
  min-width:clamp(4.25rem, 3.7rem + 1.8vw, 5.25rem);
  padding:clamp(0.45rem, 0.38rem + 0.3vw, 0.65rem) 0.5rem;
  border-radius:calc(var(--stc-radius) - 2px);
  background:var(--st-primary, #102A5C);
  color:var(--st-on-primary, #fff);
  line-height:1.15;
  text-align:center;
}
.stc-ev__dow{
  font-size:var(--st-fs-2xs, 0.75rem);
  font-weight:700;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--st-accent, #FF6B35);
}
.stc-ev__day{
  font-size:clamp(1.0625rem, 0.92rem + 0.55 * var(--st-vw, 1vw), 1.375rem);
  font-weight:800;
  font-variant-numeric:tabular-nums;
}
.stc-ev__clock{
  margin-top:0.2em;
  font-size:var(--st-fs-2xs, 0.75rem);
  font-weight:500;
  font-variant-numeric:tabular-nums;
  opacity:.85;
  white-space:nowrap;
}
.stc-ev__info{ min-width:0; display:flex; flex-direction:column; gap:0.3rem; padding-right:0.25rem; }
.stb .stc-ev__title{
  font-size:var(--st-fs-md, 1.0625rem);
  font-weight:700;
  line-height:1.3;
  color:var(--st-text, #1A2233);
  overflow-wrap:anywhere;
}
/* Type badge on its own line above the name */
.stc-ev__title .stc-ev-badge{ display:table; margin:0 0 0.3rem; }
.stb .stc-ev__link{
  color:inherit;
  text-decoration:none;
  transition:color .2s ease;
}
.stb .stc-ev__link:hover{
  color:var(--st-ink, var(--stc-ink));
  text-decoration:underline;
  text-decoration-color:var(--st-accent, #FF6B35);
  text-decoration-thickness:2px;
  text-underline-offset:3px;
}
.stb .stc-ev__link:focus-visible{ outline:2px solid var(--st-accent, #FF6B35); outline-offset:2px; border-radius:2px; }
.stb .stc-ev__place{
  font-size:var(--st-fs-xs, 0.8125rem);
  font-weight:500;
  color:var(--st-text-muted, #5B6472);
}
.stb .stc-ev-empty{
  padding:clamp(0.875rem, 0.8rem + 0.3vw, 1rem);
  border-radius:var(--stc-radius);
  background:var(--stc-surface);
  font-size:var(--st-fs-sm, 0.875rem);
  color:var(--st-text-muted, #5B6472);
}

/* ---------- All teams: a column per team (4 / 2 / 1 by the space available) ---------- */
.stc-events--cols{ container-type:inline-size; }
.stc-events__cols{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:clamp(1.5rem, 1rem + 1.5vw, 2.5rem) clamp(1rem, 0.7rem + 1vw, 1.5rem);
  align-items:start;
}
@container (max-width:61.99rem){ .stc-events__cols{ grid-template-columns:repeat(2, minmax(0, 1fr)); } }
@container (max-width:33.99rem){ .stc-events__cols{ grid-template-columns:minmax(0, 1fr); } }
.stc-events__col{ min-width:0; }
.stb .stc-events__team{
  margin:0 0 clamp(0.75rem, 0.65rem + 0.3vw, 1rem);
  font-family:var(--st-font, inherit);
  font-size:var(--st-fs-page-h3, clamp(1.125rem, 1.05rem + 0.35 * var(--st-vw, 1vw), 1.3125rem));
  font-weight:700;
  line-height:1.25;
  color:var(--st-ink, var(--stc-ink));
}
.stb .stc-events__team::after{
  content:"";
  display:block;
  width:2.25rem;
  height:3px;
  margin-top:0.5rem;
  background:var(--st-accent, #FF6B35);
}
.stc-events--cols .stc-ev-list{ gap:0.5rem; }
.stb.stc-events--cols .stc-ev{ column-gap:0.75rem; box-shadow:none; }
.stc-events--cols .stc-ev__tile{ min-width:clamp(3.75rem, 3.45rem + 0.8vw, 4.375rem); padding:0.4rem 0.35rem; }
.stc-events--cols .stc-ev__day{ font-size:clamp(1rem, 0.93rem + 0.3 * var(--st-vw, 1vw), 1.1875rem); }
.stb.stc-events--cols .stc-ev__title{ font-size:var(--st-fs-sm, 0.875rem); }
.stb.stc-events--cols .stc-ev__place{ font-size:var(--st-fs-2xs, 0.75rem); }

/* ---------- Month calendar ---------- */
.stc-cal{ container-type:inline-size; }
.stb .stc-cal__legend{
  display:flex;
  flex-wrap:wrap;
  gap:0.4rem 1.25rem;
  margin:0 0 clamp(1rem, 0.85rem + 0.5vw, 1.25rem);
  font-size:var(--st-fs-xs, 0.8125rem);
  font-weight:600;
  color:var(--st-text, #1A2233);
}
.stc-cal__legend li{ display:inline-flex; align-items:center; gap:0.45rem; }
.stc-cal__legend li::before{ content:""; width:0.75rem; height:0.75rem; border-radius:3px; background:var(--c); }
.stc-cal__month + .stc-cal__month{ margin-top:clamp(2rem, 1.5rem + 1.5vw, 3rem); }
.stc-cal.is-paged .stc-cal__month + .stc-cal__month{ margin-top:0; }
.stc-cal__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  margin-bottom:clamp(0.75rem, 0.65rem + 0.3vw, 1rem);
}
.stb .stc-cal__title{
  margin:0;
  font-family:var(--st-font, inherit);
  font-size:var(--st-fs-page-h2, clamp(1.375rem, 1.15rem + 0.9 * var(--st-vw, 1vw), 1.75rem));
  font-weight:700;
  line-height:1.2;
  letter-spacing:-0.01em;
  color:var(--st-ink, var(--stc-ink));
}
/* Arrows like the theme's news carousel */
.stc-cal__nav{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  padding:0;
  border:1.5px solid var(--st-ink, var(--stc-ink));
  border-radius:50%;
  background:var(--st-card, #fff);
  color:var(--st-ink, var(--stc-ink));
  cursor:pointer;
  transition:background-color .2s ease, color .2s ease, opacity .2s ease;
}
.stc-cal__nav::before{
  content:"";
  width:9px;
  height:15px;
  background-color:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 16'%3E%3Cpath d='M2 2l6 6-6 6' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
          mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 16'%3E%3Cpath d='M2 2l6 6-6 6' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}
.stc-cal__nav--prev::before{ transform:scaleX(-1); }
.stc-cal__nav:hover:not(:disabled){ background:var(--stc-ink); color:var(--st-on-primary, #fff); }
.stc-cal__nav:focus-visible{ outline:2px solid var(--st-accent, #FF6B35); outline-offset:3px; }
.stc-cal__nav:disabled{ opacity:.3; cursor:default; }
.stc-cal__nav[hidden]{ display:none; }

.stc-cal__grid{
  display:grid;
  grid-template-columns:repeat(7, minmax(0, 1fr));
  border:1px solid var(--stc-line);
  border-radius:var(--stc-radius);
  overflow:hidden;
  background:var(--stc-line);
  gap:1px;
}
.stc-cal__wd{
  padding:0.55rem 0.6rem;
  background:var(--stc-surface);
  font-size:var(--st-fs-2xs, 0.75rem);
  font-weight:600;
  line-height:1.4;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--st-text-muted, #5B6472);
}
.stc-cal__day{
  min-width:0;
  min-height:clamp(5.5rem, 4rem + 3vw, 7.5rem);
  padding:0.4rem 0.4rem 0.5rem;
  background:var(--st-card, #fff);
}
.stc-cal__day.is-out{ background:color-mix(in srgb, var(--stc-surface) 55%, var(--st-card, #fff)); }
.stc-cal__day.is-out .stc-cal__date{ opacity:.4; }
.stc-cal__day.is-past:not(.is-out) .stc-cal__date{ color:var(--st-text-muted, #5B6472); }
.stc-cal__date{
  display:block;
  margin:0 0 0.3rem 0.15rem;
  font-size:var(--st-fs-xs, 0.8125rem);
  font-weight:700;
  font-variant-numeric:tabular-nums;
  color:var(--st-ink, var(--stc-ink));
}
.stc-cal__day.is-today{ background:var(--st-accent-wash, color-mix(in srgb, var(--st-accent, #FF6B35) 22%, var(--st-card, #fff))); }
.stc-cal__day.is-today .stc-cal__dnum{
  display:inline-grid;
  place-items:center;
  min-width:1.75em;
  height:1.75em;
  margin:-0.2em 0 0 -0.3em;
  border-radius:50%;
  background:var(--st-accent, #FF6B35);
  color:var(--st-on-accent, #141C2D);
}
.stc-cal__dwd,
.stc-cal__dshort{ display:none; }
.stb .stc-cal__events{ display:grid; gap:0.3rem; }
.stc-cal__ev{ min-width:0; }
.stc-cal__ev > a,
.stc-cal__ev > span{
  display:block;
  padding:0.3rem 0.45rem 0.35rem 0.55rem;
  border-left:5px solid var(--c);
  border-radius:4px;
  background-color:var(--stc-chip);
  color:var(--st-ink, var(--stc-ink)) !important;
  font-size:var(--stc-fs-chip);
  line-height:1.35;
  text-decoration:none !important;
  overflow-wrap:break-word;
  word-break:normal;
  transition:background-color .2s ease;
}
.stc-cal__ev > a:hover{ background-color:var(--stc-chip-hover); }
.stc-cal__ev > a:focus-visible{ outline:2px solid var(--st-accent, #FF6B35); outline-offset:1px; }
/* Lines of an entry: team(s) / type + name / time · venue */
.stc-cal__team,
.stc-cal__name,
.stc-cal__when{ display:block; }
.stc-cal__team{ font-size:var(--st-fs-xs, 0.8125rem); font-weight:700; line-height:1.25; }
/* Heading of an entry in the team colour, darkened enough to read on the chip */
.stc-cal__team,
.stc-cal__name:first-child{ color:var(--c); }
@supports (color:color-mix(in oklab, red 50%, black)){
  .stc-cal__team,
  .stc-cal__name:first-child{ color:color-mix(in oklab, var(--c) 58%, #000); }
}
.stc-cal__name{
  margin-top:0.1rem;
  font-weight:600;
  /* Long titles wrap in full: hyphenate words, never hide lines */
  hyphens:auto;
  -webkit-hyphens:auto;
}
.stc-cal__when{ color:var(--st-text-muted, #5B6472); font-variant-numeric:tabular-nums; }
.stc-cal__ev .stc-ev-badge{ margin-right:0.3em; padding:0.05em 0.4em; font-size:var(--stc-fs-badge); letter-spacing:.05em; vertical-align:0.1em; }
.stc-cal__ev .stc-ev-badge--practice{ background:var(--st-card, #fff); }
/* Shared event of several teams: side stripe in all the teams' colours */
.stc-cal__ev.is-multi > a,
.stc-cal__ev.is-multi > span{
  border-left-color:transparent;
  background-image:var(--stripe);
  background-size:5px 100%;
  background-repeat:no-repeat;
  background-position:0 0;
  background-origin:border-box;
}
.stb .stc-cal__empty{ margin-top:0.75rem; font-size:var(--st-fs-sm, 0.875rem); color:var(--st-text-muted, #5B6472); }

/* Narrow space: a list of the days with events, the date as a tile like in the lists */
@container (max-width:43.74rem){
  .stc-cal__grid{
    grid-template-columns:minmax(0, 1fr);
    gap:0.5rem;
    border:0;
    border-radius:0;
    overflow:visible;
    background:none;
  }
  .stc-cal__wd,
  .stc-cal__day:not(.has-events){ display:none; }
  .stc-cal__day{
    display:grid;
    grid-template-columns:auto minmax(0, 1fr);
    align-items:start;
    gap:0.75rem;
    min-height:0;
    padding:0.5rem;
    border:1px solid var(--stc-line);
    border-radius:var(--stc-radius);
    box-shadow:var(--stc-shadow);
  }
  .stc-cal__day.is-today{ border-color:var(--st-accent, #FF6B35); }
  /* Today: the date tile in the accent colour (light pink by default); the
     version of the accent made for dark tiles, so it always differs from them */
  .stc-cal__day.is-today .stc-cal__date{ background:var(--st-accent-d, var(--st-accent, #FF6B35)); color:var(--st-on-accent-d, var(--st-on-accent, #141C2D)); opacity:1; }
  .stc-cal__day.is-today .stc-cal__dwd{ color:var(--st-on-accent-d, var(--st-on-accent, #141C2D)); }
  .stc-cal__day.is-today .stc-cal__dnum,
  .stc-cal__day .stc-cal__dnum{ display:none; }
  .stc-cal__date{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    min-width:3.75rem;
    margin:0;
    padding:0.45rem 0.35rem;
    border-radius:calc(var(--stc-radius) - 2px);
    background:var(--st-primary, #102A5C);
    color:var(--st-on-primary, #fff);
    font-size:clamp(1rem, 0.95rem + 0.25 * var(--st-vw, 1vw), 1.125rem);
    font-weight:800;
    line-height:1.15;
    white-space:nowrap;
  }
  .stc-cal__day.is-past:not(.is-out) .stc-cal__date{ color:var(--st-on-primary, #fff); opacity:.7; }
  .stc-cal__dnum{ display:none; }
  .stc-cal__dshort{ display:block; }
  .stc-cal__dwd{
    display:block;
    font-size:var(--st-fs-2xs, 0.75rem);
    font-weight:700;
    letter-spacing:.12em;
    text-transform:uppercase;
    color:var(--st-accent-d, var(--st-accent, #FF6B35));
  }
  .stb .stc-cal__events{ gap:0.4rem; }
  .stc-cal__ev > a,
  .stc-cal__ev > span{ padding:0.45rem 0.65rem; font-size:var(--st-fs-sm, 0.875rem); }
  .stc-cal__team{ font-size:var(--st-fs-md, 1.0625rem); }
  .stc-cal__ev .stc-ev-badge{ font-size:var(--st-fs-2xs, 0.75rem); }
}

/* ==========================================================================
   Games (sport-team/matches) and league table (sport-team/standings)
   ========================================================================== */
.stb-matches,
.stb-standings{
  --stl-ink:var(--st-primary, #102A5C);
  --stl-line:var(--st-page-border, #DCE1E9);
  --stl-surface:var(--st-surface, #EEF1F6);
  --stl-radius:var(--st-radius, 8px);
  --stl-own:var(--st-accent-wash, color-mix(in srgb, var(--st-accent, #FF6B35) 22%, var(--st-card, #fff)));
  container-type:inline-size;
  font-family:var(--st-font, inherit);
}

/* ---------- Games ---------- */
.stb .stb-matches__list{ display:grid; gap:clamp(0.5rem, 0.4rem + 0.3vw, 0.625rem); }
.stb .stb-match{
  display:grid;
  grid-template-columns:auto minmax(0, 1fr) auto;
  align-items:center;
  column-gap:clamp(0.75rem, 0.55rem + 0.8vw, 1.25rem);
  padding:clamp(0.45rem, 0.4rem + 0.25vw, 0.625rem);
  border:1px solid var(--stl-line);
  border-radius:var(--stl-radius);
  background:var(--st-card, #fff);
  box-shadow:0 8px 24px rgb(var(--st-primary-rgb, 16 42 92) / 6%);
}
.stb-matches--fixtures .stb-match{ grid-template-columns:auto minmax(0, 1fr); }
.stb-match__when{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  align-self:stretch;
  min-width:clamp(4.25rem, 3.8rem + 1.4vw, 5rem);
  padding:0.4rem 0.35rem;
  border-radius:calc(var(--stl-radius) - 2px);
  background:var(--stl-ink);
  color:var(--st-on-primary, #fff);
  line-height:1.15;
  text-align:center;
}
.stb-match__date{
  font-family:var(--st-font-heading, inherit);
  font-size:clamp(0.9375rem, 0.88rem + 0.25 * var(--st-vw, 1vw), 1.0625rem);
  font-weight:800;
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
}
.stb-match__time{
  margin-top:0.15rem;
  font-size:var(--st-fs-2xs, 0.75rem);
  font-weight:600;
  color:var(--st-accent, #FF6B35);
}
.stb-match__teams{
  display:grid;
  grid-template-columns:minmax(0, 1fr) auto minmax(0, 1fr);
  align-items:center;
  gap:0.25rem clamp(0.625rem, 0.45rem + 0.6vw, 1rem);
  min-width:0;
}
.stb-match__team{
  min-width:0;
  font-family:var(--st-font-title, inherit);
  font-size:clamp(0.875rem, 0.82rem + 0.2 * var(--st-vw, 1vw), 1rem);
  font-weight:600;
  line-height:1.25;
  color:var(--st-ink, var(--stl-ink));
  overflow-wrap:break-word;
  hyphens:auto;
}
.stb-match__team--home{ text-align:right; }
.stb-match__team.is-own{ font-weight:800; }
.stb-match__score{
  min-width:3.5rem;
  padding:0.35rem 0.6rem;
  border-radius:4px;
  background:var(--stl-ink);
  color:var(--st-on-primary, #fff);
  font-family:var(--st-font-heading, inherit);
  font-size:clamp(1rem, 0.94rem + 0.3 * var(--st-vw, 1vw), 1.1875rem);
  font-weight:800;
  line-height:1.1;
  text-align:center;
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
}
.stb-match__score--time{
  background:var(--stl-surface);
  color:var(--st-ink, var(--stl-ink));
  font-size:clamp(0.875rem, 0.83rem + 0.2 * var(--st-vw, 1vw), 1rem);
}
.stb-match__place{
  grid-column:1 / -1;
  font-size:var(--st-fs-xs, 0.8125rem);
  color:var(--st-text-muted, #5B6472);
  text-align:center;
}
.stb-match__res{
  display:grid;
  place-items:center;
  width:1.875rem;
  height:1.875rem;
  border-radius:50%;
  font-size:var(--st-fs-xs, 0.8125rem);
  font-weight:800;
  line-height:1;
  text-decoration:none;
  color:#fff;
  cursor:help;
}
.stb-match__res--win{ background:#1E7F45; }
.stb-match__res--draw{ background:#7A8496; }
.stb-match__res--loss{ background:#C8102E; }
.stb-match__res--none{ visibility:hidden; }
.stb-match.is-win{ border-left:4px solid #1E7F45; }
.stb-match.is-draw{ border-left:4px solid #7A8496; }
.stb-match.is-loss{ border-left:4px solid #C8102E; }

/* Narrow: home and away on their own lines, score on the right */
@container (max-width:30rem){
  .stb-match__teams{
    grid-template-columns:minmax(0, 1fr) auto;
    grid-template-areas:"home score" "away score" "place place";
    row-gap:0.15rem;
  }
  .stb-match__team--home{ grid-area:home; text-align:left; }
  .stb-match__team--away{ grid-area:away; }
  .stb-match__score{ grid-area:score; min-width:3rem; }
  .stb-match__place{ grid-area:place; text-align:left; margin-top:0.15rem; }
}

/* ---------- League table ---------- */
.stb .stb-table__scroll{ overflow-x:auto; border:1px solid var(--stl-line); border-radius:var(--stl-radius); background:var(--st-card, #fff); box-shadow:0 8px 24px rgb(var(--st-primary-rgb, 16 42 92) / 6%); }
.stb .stb-table{
  width:100%;
  margin:0;
  border:0;
  border-collapse:collapse;
  font-size:clamp(0.8125rem, 0.78rem + 0.15 * var(--st-vw, 1vw), 0.9375rem);
  font-variant-numeric:tabular-nums;
  color:var(--st-text, #1A2233);
}
.stb .stb-table th,
.stb .stb-table td{
  padding:clamp(0.45rem, 0.4rem + 0.2vw, 0.6rem) clamp(0.4rem, 0.3rem + 0.4vw, 0.75rem);
  border:0;
  border-bottom:1px solid var(--stl-line);
  text-align:center;
  white-space:nowrap;
}
.stb .stb-table tbody tr:last-child > *{ border-bottom:0; }
.stb .stb-table thead th{
  background:var(--stl-ink);
  color:var(--st-on-primary, #fff);
  font-size:var(--st-fs-2xs, 0.75rem);
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.stb .stb-table abbr{ text-decoration:none; cursor:help; }
.stb .stb-table .stb-table__team{
  width:100%;
  text-align:left;
  white-space:normal;
  font-weight:600;
  color:var(--st-ink, var(--stl-ink));
}
.stb .stb-table thead .stb-table__team{ color:var(--st-on-primary, #fff); }
.stb .stb-table .stb-table__pos{ width:2.5rem; font-weight:700; color:var(--st-text-muted, #5B6472); }
.stb .stb-table thead .stb-table__pos{ color:var(--st-on-primary, #fff); }
.stb .stb-table td.stb-table__pts{ font-weight:800; color:var(--st-ink, var(--stl-ink)); }
.stb .stb-table tbody tr:nth-child(even){ background:color-mix(in srgb, var(--stl-surface) 45%, var(--st-card, #fff)); }
.stb .stb-table tbody tr.is-own{ background:var(--stl-own); }
.stb .stb-table tbody tr.is-own > *{ font-weight:800; color:var(--st-ink, var(--stl-ink)); }
.stb .stb-table tbody tr.is-own .stb-table__pos{ box-shadow:inset 4px 0 0 var(--st-accent, #FF6B35); }
@container (max-width:28rem){
  .stb .stb-table .stb-table__w,
  .stb .stb-table .stb-table__d,
  .stb .stb-table .stb-table__l{ display:none; }
}

/* ==========================================================================
   Image carousel (Gallery block, style "Carousel" – inc/carousel.php)
   ========================================================================== */
.stc-carousel{ position:relative; margin-block:var(--st-block-gap, 1.5rem); container-type:inline-size; }
.stc-carousel > .wp-block-gallery{ margin:0 !important; }
.wp-block-gallery.is-style-stc-carousel{
  display:flex !important;
  flex-wrap:nowrap !important;
  gap:0 !important;
  overflow-x:auto;
  overscroll-behavior-x:contain;
  scroll-snap-type:x mandatory;
  scrollbar-width:none;
  border-radius:var(--st-radius, 8px);
  background:var(--st-primary, #102A5C);
}
.wp-block-gallery.is-style-stc-carousel::-webkit-scrollbar{ display:none; }
.wp-block-gallery.has-nested-images.is-style-stc-carousel figure.wp-block-image:not(#individual-image){
  flex:0 0 100%;
  width:100%;
  max-width:none;
  margin:0;
  aspect-ratio:16 / 9;
  scroll-snap-align:start;
  scroll-snap-stop:always;
}
.wp-block-gallery.has-nested-images.is-style-stc-carousel figure.wp-block-image img{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:0;
}
/* Captions below the image (not over it): the image keeps 16:9, the caption
   sits under it on a light grey background (darker inside a dark section). */
.wp-block-gallery.wp-block-gallery.has-nested-images.is-style-stc-carousel figure.wp-block-image:not(#individual-image){
  aspect-ratio:auto;
  justify-content:flex-start;
}
.wp-block-gallery.wp-block-gallery.has-nested-images.is-style-stc-carousel figure.wp-block-image:not(#individual-image):has(figcaption),
.wp-block-gallery.is-style-stc-carousel:has(figcaption) figure.wp-block-image{ background:var(--st-surface, #EEF1F6); }
.wp-block-gallery.wp-block-gallery.has-nested-images.is-style-stc-carousel figure.wp-block-image:not(#individual-image) > a{ flex:0 0 auto; }
.wp-block-gallery.wp-block-gallery.has-nested-images.is-style-stc-carousel figure.wp-block-image:not(#individual-image) img{
  flex:0 0 auto;
  width:100%;
  height:auto;
  aspect-ratio:16 / 9;
  object-fit:cover;
}
.wp-block-gallery.wp-block-gallery.has-nested-images.is-style-stc-carousel figure.wp-block-image:has(figcaption)::before{ content:none; }
.wp-block-gallery.wp-block-gallery.has-nested-images.is-style-stc-carousel figure.wp-block-image figcaption{
  position:static;
  flex:0 0 auto;
  max-height:none;
  overflow:visible;
  margin:0;
  padding:0.8rem clamp(1rem, 0.8rem + 1vw, 1.5rem) 0.95rem;
  background:var(--st-surface, #EEF1F6);
  color:var(--st-text, #1A2233);
  text-shadow:none;
  font-size:var(--st-fs-sm, 0.875rem);
  line-height:1.45;
  text-align:left;
  scrollbar-gutter:auto;
  will-change:auto;
}
.stc-carousel__arrow{
  position:absolute;
  top:calc(50% - 1.25rem);
  display:grid;
  place-items:center;
  width:clamp(2.5rem, 2.2rem + 1vw, 3rem);
  height:clamp(2.5rem, 2.2rem + 1vw, 3rem);
  padding:0;
  border:0;
  border-radius:50%;
  background:rgb(255 255 255 / 92%);
  color:var(--st-primary, #102A5C);
  box-shadow:0 6px 18px rgb(0 0 0 / 22%);
  cursor:pointer;
  transform:translateY(-50%);
  transition:background-color .2s ease, color .2s ease;
}
/* Arrows in the middle of the image, also when captions add height below it */
@supports (top:1cqw){
  .stc-carousel__arrow{ top:calc(100cqw * 9 / 32); }
}
.stc-carousel__arrow svg{ width:22px; height:22px; }
.stc-carousel__arrow--prev{ left:clamp(0.5rem, 0.3rem + 1vw, 1rem); }
.stc-carousel__arrow--prev svg{ transform:scaleX(-1); }
.stc-carousel__arrow--next{ right:clamp(0.5rem, 0.3rem + 1vw, 1rem); }
.stc-carousel__arrow:hover{ background:var(--st-accent, #FF6B35); color:var(--st-on-accent, #141C2D); }
.stc-carousel__arrow:focus-visible,
.stc-carousel__dot:focus-visible{ outline:2px solid var(--st-accent, #FF6B35); outline-offset:2px; }
.stc-carousel__dots{
  display:flex;
  justify-content:center;
  gap:0.5rem;
  margin-top:0.75rem;
}
.stc-carousel__dot{
  width:0.625rem;
  height:0.625rem;
  padding:0;
  border:0;
  border-radius:999px;
  background:var(--st-page-border, #DCE1E9);
  cursor:pointer;
  transition:width .25s ease, background-color .25s ease;
}
.stc-carousel__dot.is-active{ width:1.75rem; background:var(--st-accent, #FF6B35); }
@media (prefers-reduced-motion:reduce){
  .wp-block-gallery.is-style-stc-carousel{ scroll-behavior:auto; }
}

/* Club crests (results service) */
.stb-crest{
  flex:0 0 auto;
  width:clamp(1.375rem, 1.25rem + 0.4vw, 1.75rem);
  height:clamp(1.375rem, 1.25rem + 0.4vw, 1.75rem);
  object-fit:contain;
}
.stb-match__team:has(.stb-crest){ display:flex; align-items:center; gap:0.5rem; }
.stb-match__team--home:has(.stb-crest){ justify-content:flex-end; }
.stb-table__club{ display:inline-flex; align-items:center; gap:0.5rem; }
.stb .stb-table .stb-crest{ width:1.375rem; height:1.375rem; }
@container (max-width:30rem){
  .stb-match__team--home:has(.stb-crest){ justify-content:flex-end; flex-direction:row-reverse; }
}

/* ---------- Results in the sidebar of a team page (stc_league_aside) ---------- */
.stb-aside-results{
  border:1px solid var(--st-page-border, #DCE1E9);
  border-radius:6px;
  overflow:hidden;
  background:var(--st-card, #fff);
  font-family:var(--st-font, inherit);
}
.stb .stb-aside-results__list{ margin:0; padding:0; list-style:none; }
.stb .stb-amatch{
  margin:0;
  padding:0.7rem 0.85rem 0.75rem 0.75rem;
  border-top:1px solid var(--st-page-border, #DCE1E9);
  border-left:3px solid transparent;
  background:var(--st-card, #fff);
}
.stb .stb-amatch:first-child{ border-top:0; }
.stb .stb-amatch:nth-child(even){ background:var(--st-surface, #EEF1F6); }
.stb .stb-amatch.is-win{ border-left-color:#1E7F45; }
.stb .stb-amatch.is-draw{ border-left-color:#7A8496; }
.stb .stb-amatch.is-loss{ border-left-color:#C8102E; }
.stb .stb-amatch__meta{
  margin:0 0 0.35rem;
  font-size:var(--st-fs-2xs, 0.75rem);
  line-height:1.35;
  color:var(--st-text-muted, #5B6472);
  text-align:center;
}
.stb-amatch__line{
  display:grid;
  grid-template-columns:minmax(0, 1fr) auto minmax(0, 1fr);
  align-items:center;
  column-gap:0.45rem;
  font-size:clamp(0.8125rem, 0.78rem + 0.1 * var(--st-vw, 1vw), 0.875rem);
  font-weight:600;
  line-height:1.25;
  color:var(--st-ink, var(--st-primary, #102A5C));
}
.stb-amatch__team{ display:flex; align-items:center; gap:0.35rem; min-width:0; overflow-wrap:break-word; hyphens:auto; }
.stb-amatch__team--home{ justify-content:flex-end; text-align:right; }
.stb-amatch__team.is-own{ font-weight:800; }
.stb-amatch .stb-crest{ width:1.25rem; height:1.25rem; }
.stb-amatch__score{
  min-width:2.9rem;
  padding:0.3rem 0.45rem;
  border-radius:4px;
  background:var(--st-surface, #EEF1F6);
  font-family:var(--st-font-heading, inherit);
  font-size:clamp(0.9375rem, 0.9rem + 0.15 * var(--st-vw, 1vw), 1.0625rem);
  font-weight:800;
  font-variant-numeric:tabular-nums;
  text-align:center;
  white-space:nowrap;
}
.stb .stb-amatch:nth-child(even) .stb-amatch__score{ background:var(--st-card, #fff); }
.stb .stb-amatch.is-win .stb-amatch__score{ background:var(--st-primary, #102A5C); color:var(--st-on-primary, #fff); }
.stb .stb-aside-results__source{
  margin:0;
  padding:0.6rem 0.85rem;
  border-top:1px solid var(--st-page-border, #DCE1E9);
  font-size:var(--st-fs-2xs, 0.75rem);
  color:var(--st-text-muted, #5B6472);
}

/* Score / time linked to the match page in the results service */
.stb a.stb-match__score.is-link,
.stb a.stb-amatch__score.is-link{
  display:inline-block;
  text-decoration:none;
  transition:background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.stb a.stb-match__score.is-link{ color:var(--st-on-primary, #fff); }
.stb a.stb-match__score--time.is-link,
.stb a.stb-amatch__score.is-link{ color:var(--st-ink, var(--st-primary, #102A5C)); }
.stb .stb-amatch.is-win a.stb-amatch__score.is-link{ color:var(--st-on-primary, #fff); }
.stb a.stb-match__score.is-link:hover,
.stb a.stb-amatch__score.is-link:hover{ background:var(--st-accent, #FF6B35); color:var(--st-on-accent, #141C2D); }
.stb a.stb-match__score.is-link:focus-visible,
.stb a.stb-amatch__score.is-link:focus-visible{ outline:2px solid var(--st-accent, #FF6B35); outline-offset:2px; }

/* ==========================================================================
   Table (sport-team/table): columns and rows, e.g. a price list
   Uses the league table look (.stb-table); on narrow space each row is a card.
   ========================================================================== */
.stb-data{
  --stl-ink:var(--st-primary, #102A5C);
  --stl-line:var(--st-page-border, #DCE1E9);
  --stl-surface:var(--st-surface, #EEF1F6);
  --stl-radius:var(--st-radius, 8px);
  container-type:inline-size;
  font-family:var(--st-font, inherit);
}
.stb .stb-data__table th,
.stb .stb-data__table td{
  text-align:left;
  white-space:normal;
  vertical-align:top;
  line-height:1.45;
}
.stb .stb-data__table thead th{ white-space:nowrap; }
.stb .stb-data__table td.is-first{ font-weight:700; color:var(--st-ink, var(--stl-ink)); }
.stb .stb-data__table .is-num{
  text-align:right;
  white-space:nowrap;
  font-variant-numeric:tabular-nums;
}
.stb .stb-data__table td.is-num{ font-weight:800; color:var(--st-ink, var(--stl-ink)); }
.stb .stb-data__table caption{
  caption-side:bottom;
  padding:0.6rem 0.75rem;
  border-top:1px solid var(--stl-line);
  font-size:var(--st-fs-xs, 0.8125rem);
  color:var(--st-text-muted, #5B6472);
  text-align:left;
}
/* Narrow: each row as a card, the column heading before each value */
@container (max-width:32rem){
  .stb .stb-data__table,
  .stb .stb-data__table tbody,
  .stb .stb-data__table tr,
  .stb .stb-data__table td{ display:block; width:100%; }
  .stb .stb-data__table thead{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }
  .stb .stb-data__table tr{ padding:0.6rem 0.85rem; border-bottom:1px solid var(--stl-line); }
  .stb .stb-data__table tbody tr:last-child{ border-bottom:0; }
  .stb .stb-data__table td{ padding:0.15rem 0; border:0; }
  .stb .stb-data__table td.is-empty{ display:none; }
  .stb .stb-data__table td.is-num{ text-align:left; }
  .stb .stb-data__table td[data-label]:not(.is-first)::before{
    content:attr(data-label) ": ";
    font-weight:600;
    color:var(--st-text-muted, #5B6472);
  }
  .stb .stb-data__table td.is-first{ font-size:1.0625em; }
  .stb .stb-data__table{ display:flex; flex-direction:column; }
  .stb .stb-data__table caption{ display:block; order:2; }
}

/* ==========================================================================
   Inside a dark section (Sport Team theme: Group block style "Dark section").
   The theme switches the shared colour roles (--st-ink, --st-text, --st-card,
   --st-surface …); here the blocks' own roles follow them.
   ========================================================================== */
.is-style-st-dark .stb{
  --stb-surface:var(--st-surface);
  --stb-border:var(--st-page-border);
}
.is-style-st-dark :is(.stc-events, .stc-cal){
  --stc-shadow:none;
  --stc-chip:rgb(255 255 255 / 9%);
  --stc-chip-hover:rgb(255 255 255 / 15%);
}
.is-style-st-dark .stc-ev-badge--practice{ background:rgb(255 255 255 / 12%); }
.is-style-st-dark .stc-cal__ev .stc-ev-badge--practice{ background:rgb(255 255 255 / 12%); }
.is-style-st-dark :is(.stb-price, .stb-gear.is-dark){ box-shadow:inset 0 0 0 1px var(--st-page-border); }
.is-style-st-dark .stb-players__badge.is-c{ background:#fff; color:var(--st-primary, #102A5C); }
.is-style-st-dark .stb .stb-amatch.is-win .stb-amatch__score{ background:#fff; color:var(--st-primary, #102A5C); }
.is-style-st-dark .stb .stb-amatch.is-win a.stb-amatch__score.is-link{ color:var(--st-primary, #102A5C); }
/* Date tiles and table headers in the primary colour sit on darker cards */
.is-style-st-dark :is(.stc-ev__tile, .stb-match__when, .stb-match__score:not(.stb-match__score--time)){ background:color-mix(in srgb, var(--st-primary, #102A5C) 72%, #fff); }
.is-style-st-dark .stb .stb-table thead th{ background:color-mix(in srgb, var(--st-primary, #102A5C) 72%, #fff); }
@container (max-width:43.74rem){
  .is-style-st-dark .stc-cal__date{ background:color-mix(in srgb, var(--st-primary, #102A5C) 72%, #fff); }
}
/* Sponsors: logos are usually dark, so each one sits on a white tile */
.is-style-st-dark .stc-sponsors:not(.stc-sponsors--dark){
  --st-sp-bg:transparent;
  --st-sp-label:#fff;
  --st-sp-line:var(--st-border);
}
.is-style-st-dark .stc-sponsors:not(.stc-sponsors--dark) .stc-sponsor{
  box-sizing:border-box;
  padding:0.5rem 0.875rem;
  border-radius:6px;
  background:#fff;
}
/* Team colours as text and swatches: lightened so that they read on dark */
@supports (color:color-mix(in oklab, red 50%, black)){
  .is-style-st-dark .stc-cal__team,
  .is-style-st-dark .stc-cal__name:first-child{ color:color-mix(in oklab, var(--c) 45%, #fff); }
}
.is-style-st-dark .stc-cal__legend li::before{ box-shadow:0 0 0 1px rgb(255 255 255 / 45%); }

/* ==========================================================================
   1.4: overtime results, next game, latest results, match report,
   roster table, sidebar contact cards, "Questions?" box, crest badges
   ========================================================================== */
.stb-res__l,
.stb-match__side,
.stb-match__wd{ display:none; }
.stb-match__res--otw{ background:#2E7D5B; }
.stb-match__res--otl{ background:#B5651D; }
.stb-match__res--otw .stb-res__s,
.stb-match__res--otl .stb-res__s{ font-size:clamp(0.5938rem, 0.0497 * var(--st-vw, 1vw) + 0.5826rem, 0.625rem); letter-spacing:-.02em; }
.stb-match.is-otw{ border-left:4px solid #2E7D5B; }
.stb-match.is-otl{ border-left:4px solid #B5651D; }
.stb-match__place.is-tba{ font-style:italic; }
.stb-matches__month + .stb-matches__month{ margin-top:clamp(1rem, 0.8rem + 0.8vw, 1.5rem); }
.stb .stb-matches__month-title{
  margin:0 0 0.5rem;
  font-family:var(--st-font-heading, inherit);
  font-weight:var(--st-heading-weight, 700);
  text-transform:var(--st-heading-transform, none);
  letter-spacing:.06em;
  color:var(--st-ink, var(--st-primary, #102A5C));
}
.stb-table__own{
  position:absolute !important; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap;
}
.stb-empty{ padding:1rem; background:#F2F4F8; color:#5B6472; font-size:clamp(0.8125rem, 0.0994 * var(--st-vw, 1vw) + 0.7901rem, 0.875rem); }

/* Crest badges (themes with "stc-crest-badges") */
.stb-crest--badge{
  display:inline-grid;
  place-items:center;
  flex:none;
  width:1.75rem;
  height:2rem;
  padding-bottom:0.45em;
  clip-path:polygon(0 0, 100% 0, 100% 66%, 50% 100%, 0 66%);
  background:var(--crest-bg, var(--st-primary, #102A5C));
  color:var(--crest-fg, #fff);
  font-family:var(--st-font-heading, inherit);
  font-size:clamp(0.6562rem, 0.0497 * var(--st-vw, 1vw) + 0.6451rem, 0.6875rem);
  font-weight:900;
  line-height:1;
  letter-spacing:.02em;
}
.stb-crest--badge.is-own{ background:var(--st-primary, #102A5C); color:var(--st-accent-d, var(--st-accent, #FF6B35)); }
.stb-crest--md.stb-crest--badge{ width:2.5rem; height:2.875rem; font-size:clamp(0.875rem, 0.0994 * var(--st-vw, 1vw) + 0.8526rem, 0.9375rem); }
.stb-crest--lg.stb-crest--badge{ width:5.75rem; height:6.625rem; font-size:clamp(1.625rem, 0.5964 * var(--st-vw, 1vw) + 1.4908rem, 2rem); }
img.stb-crest--logo{ object-fit:contain; width:auto; }
img.stb-crest--md{ height:2.875rem; }
img.stb-crest--lg{ height:6.625rem; }
/* Logos from the results service: a square of the size, the logo fitted inside
   (without this only the height grew and the logo stayed 28 px wide). */
img.stb-crest--md:not(.stb-crest--logo){ width:2.875rem; height:2.875rem; }
img.stb-crest--lg:not(.stb-crest--logo){ width:6.625rem; height:6.625rem; }

/* Next game */
.stb-next{ display:flex; flex-wrap:wrap; background:var(--st-card, #fff); box-shadow:0 20px 50px rgb(var(--st-primary-rgb, 16 42 92) / 18%); }
.stb-next__main{ flex:999 1 30rem; min-width:0; padding:clamp(1.25rem, 1rem + 1.2vw, 2.25rem); display:flex; flex-direction:column; gap:1.5rem; }
.stb-next__head{ display:flex; flex-wrap:wrap; align-items:center; gap:0.75rem 1.25rem; }
.stb .stb-next__title{ margin:0; padding:0.4rem 0.8rem; background:var(--st-primary, #102A5C); color:#fff; font-size:var(--st-fs-sm, 0.9375rem); letter-spacing:.12em; text-transform:uppercase; }
.stb-next__meta{ font-weight:600; color:var(--st-text-muted, #5B6472); }
.stb-next__teams{ display:grid; grid-template-columns:minmax(0, 1fr) auto minmax(0, 1fr); align-items:center; gap:1rem; }
.stb-next__team{ display:flex; flex-direction:column; align-items:center; gap:0.75rem; text-align:center; }
.stb-next__name{ font-family:var(--st-font-heading, inherit); font-weight:800; font-size:clamp(1.25rem, 1rem + 1 * var(--st-vw, 1vw), 2rem); line-height:1; text-transform:var(--st-heading-transform, none); overflow-wrap:anywhere; }
.stb-next__role{ font-size:clamp(0.75rem, 0.0994 * var(--st-vw, 1vw) + 0.7276rem, 0.8125rem); letter-spacing:.14em; text-transform:uppercase; color:var(--st-text-muted, #5B6472); }
.stb-next__center{ display:flex; flex-direction:column; align-items:center; gap:0.375rem; text-align:center; }
.stb-next__date{ font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:var(--st-accent-text, var(--st-accent, #FF6B35)); }
.stb-next__time{ font-family:var(--st-font-heading, inherit); font-weight:900; font-size:clamp(2.5rem, 1.6rem + 3.5 * var(--st-vw, 1vw), 5.5rem); line-height:.9; font-variant-numeric:tabular-nums; }
.stb-next__venue{ display:flex; align-items:center; gap:0.375rem; font-weight:600; color:var(--st-text-muted, #5B6472); }
.stb-next__where{ display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:0.25rem 1.25rem; text-align:center; }
.stb-next__where p{ margin:0; }
.stb-next__center .stb-next__more{ margin:0.25rem 0 0; }
/* Both logos in the same square, so the two sides are balanced (also the site's own logo). */
.stb.stb-next img.stb-crest.stb-crest--lg,
.stb-next .stb-crest--none{ display:block; width:6.625rem !important; height:6.625rem !important; object-fit:contain; }
.stb-next__side{ flex:1 1 20rem; display:flex; flex-direction:column; justify-content:center; gap:1.25rem; padding:clamp(1.25rem, 1rem + 1.2vw, 2.25rem); background:var(--st-primary, #102A5C); color:#fff; }
.stb-next__label2{ font-size:clamp(0.8125rem, 0.0994 * var(--st-vw, 1vw) + 0.7901rem, 0.875rem); font-weight:700; letter-spacing:.14em; text-transform:uppercase; opacity:.8; }
.stb-countdown{ display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:0.5rem; }
.stb-countdown__unit{ display:flex; flex-direction:column; align-items:center; gap:0.25rem; padding:0.75rem 0.25rem; background:rgb(255 255 255 / 8%); box-shadow:inset 0 -3px 0 var(--st-accent, #FF6B35); }
.stb-countdown__num{ font-family:var(--st-font-heading, inherit); font-weight:900; font-size:clamp(1.75rem, 1.3rem + 1.6 * var(--st-vw, 1vw), 3.25rem); line-height:1; font-variant-numeric:tabular-nums; }
.stb-countdown__label{ font-size:clamp(0.7188rem, 0.0497 * var(--st-vw, 1vw) + 0.7076rem, 0.75rem); letter-spacing:.12em; text-transform:uppercase; opacity:.8; }
.stb-next__btn{ align-self:flex-start; display:inline-flex; align-items:center; gap:0.5rem; min-height:3rem; padding:0 1.5rem; background:var(--st-accent, #FF6B35); color:var(--st-on-accent, #fff); font-weight:800; text-decoration:none; text-transform:uppercase; letter-spacing:.06em; }

/* Latest results */
.stb .stb-latest__list{ display:grid; grid-template-columns:repeat(auto-fit, minmax(min(16rem, 100%), 1fr)); gap:1.25rem; }
.stb-rcard{ display:flex; flex-direction:column; background:var(--st-card, #fff); box-shadow:0 1px 0 #DCE1E9, inset 0 4px 0 #DCE1E9; }
.stb-rcard.is-win, .stb-rcard.is-otw{ box-shadow:0 1px 0 #DCE1E9, inset 0 4px 0 var(--st-accent, #FF6B35); }
.stb-rcard.is-otl{ box-shadow:0 1px 0 #DCE1E9, inset 0 4px 0 #F5A524; }
.stb-rcard__top{ display:flex; align-items:center; justify-content:space-between; gap:0.75rem; padding:1.25rem 1.25rem 0; }
.stb-rcard__meta{ font-size:clamp(0.75rem, 0.0994 * var(--st-vw, 1vw) + 0.7276rem, 0.8125rem); font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:var(--st-text-muted, #5B6472); }
.stb-rcard .stb-match__res{ width:auto; height:1.75rem; padding:0 0.6rem; border-radius:0; cursor:default; }
.stb-rcard .stb-res__s{ display:none; }
.stb-rcard .stb-res__l{ display:inline; font-size:clamp(0.8125rem, 0.0994 * var(--st-vw, 1vw) + 0.7901rem, 0.875rem); letter-spacing:.1em; text-transform:uppercase; }
.stb-rcard__body{ display:flex; flex-direction:column; gap:0.625rem; padding:1.25rem; }
.stb-rcard__row{ display:flex; align-items:center; gap:0.875rem; color:var(--st-text-muted, #5B6472); }
.stb-rcard__row.is-winner{ color:var(--st-text, #1A2233); font-weight:800; }
.stb-rcard__name{ flex:1; min-width:0; font-size:clamp(0.9375rem, 0.1988 * var(--st-vw, 1vw) + 0.8928rem, 1.0625rem); line-height:1.2; }
.stb-rcard__score{ font-family:var(--st-font-heading, inherit); font-weight:900; font-size:clamp(2rem, 1.6rem + 1.4 * var(--st-vw, 1vw), 3.75rem); line-height:.9; font-variant-numeric:tabular-nums; }
.stb-rcard__ot{ padding:0 1.25rem 0.75rem; font-size:clamp(0.8125rem, 0.0994 * var(--st-vw, 1vw) + 0.7901rem, 0.875rem); font-weight:600; color:var(--st-text-muted, #5B6472); }
.stb-rcard__foot{ margin-top:auto; display:flex; align-items:center; justify-content:space-between; gap:0.75rem; min-height:2.75rem; padding:0 1.25rem; border-top:1px solid #DCE1E9; font-size:clamp(0.8125rem, 0.0994 * var(--st-vw, 1vw) + 0.7901rem, 0.875rem); color:var(--st-text-muted, #5B6472); }
.stb-rcard__link{ font-weight:800; text-transform:uppercase; letter-spacing:.06em; color:var(--st-accent-text, var(--st-primary, #102A5C)); }

/* Match report */
.stb-mr__board{ display:flex; flex-direction:column; gap:1.5rem; padding:clamp(1.25rem, 1rem + 1.5vw, 2.5rem); background:var(--st-primary, #102A5C); color:#fff; }
.stb-mr__status{ display:flex; flex-wrap:wrap; align-items:center; gap:0.5rem 1rem; }
.stb-mr__badge{ padding:0.25rem 0.6rem; background:var(--st-accent, #FF6B35); color:var(--st-on-accent, #fff); font-weight:800; font-size:clamp(0.75rem, 0.0994 * var(--st-vw, 1vw) + 0.7276rem, 0.8125rem); letter-spacing:.1em; text-transform:uppercase; }
.stb-mr__badge.is-live{ background:#C8102E; color:#fff; }
.stb-mr__meta, .stb-mr__when{ opacity:.85; font-weight:600; }
.stb-mr__teams{ display:grid; grid-template-columns:minmax(0, 1fr) auto minmax(0, 1fr); align-items:center; gap:1rem; }
.stb-mr__team{ display:flex; align-items:center; gap:1rem; }
.stb-mr__team--home{ flex-direction:row-reverse; text-align:right; }
.stb-mr__name{ font-family:var(--st-font-heading, inherit); font-weight:900; font-size:clamp(1.5rem, 1rem + 2 * var(--st-vw, 1vw), 3rem); line-height:.95; text-transform:var(--st-heading-transform, none); overflow-wrap:anywhere; }
.stb-mr__role{ font-size:clamp(0.75rem, 0.0994 * var(--st-vw, 1vw) + 0.7276rem, 0.8125rem); letter-spacing:.14em; text-transform:uppercase; opacity:.75; }
.stb-mr__score{ text-align:center; }
.stb-mr__nums{ display:flex; align-items:center; gap:0.5rem; font-family:var(--st-font-heading, inherit); font-weight:900; font-size:clamp(3rem, 2rem + 5 * var(--st-vw, 1vw), 8rem); line-height:.85; font-variant-numeric:tabular-nums; }
.stb-mr__dash{ opacity:.5; }
.stb-mr__score-label{ font-size:clamp(0.75rem, 0.0994 * var(--st-vw, 1vw) + 0.7276rem, 0.8125rem); letter-spacing:.14em; text-transform:uppercase; opacity:.75; }
.stb-mr__ptable{ overflow-x:auto; }
.stb-mr__ptable table{ width:100%; max-width:36rem; margin:0 auto; border-collapse:collapse; }
.stb-mr__ptable th, .stb-mr__ptable td{ padding:0.4rem 0.6rem; border-bottom:1px solid rgb(255 255 255 / 18%); text-align:center; font-variant-numeric:tabular-nums; }
.stb-mr__ptable tbody th{ text-align:left; font-weight:600; }
.stb-mr__ptable thead th{ font-size:clamp(0.7188rem, 0.0497 * var(--st-vw, 1vw) + 0.7076rem, 0.75rem); letter-spacing:.12em; text-transform:uppercase; opacity:.75; font-weight:700; }
.stb-mr__ptable .is-total{ font-weight:900; }
.stb-mr__cols{ display:flex; flex-wrap:wrap; align-items:flex-start; gap:2rem; margin-top:2rem; }
.stb-mr__events{ flex:999 1 36rem; min-width:0; display:flex; flex-direction:column; gap:1.25rem; }
.stb-mr__events-head{ display:flex; flex-wrap:wrap; align-items:flex-end; justify-content:space-between; gap:0.75rem; }
.stb .stb-mr__h{ margin:0; }
.stb-mr__legend{ display:flex; flex-wrap:wrap; gap:0.5rem 1rem; font-size:clamp(0.8125rem, 0.0994 * var(--st-vw, 1vw) + 0.7901rem, 0.875rem); color:var(--st-text-muted, #5B6472); }
.stb-mr__legend li{ display:inline-flex; align-items:center; gap:0.375rem; }
.stb-mr__ptitle{ display:flex; justify-content:space-between; align-items:center; margin:0; padding:0.6rem 1rem; background:var(--st-primary, #102A5C); color:#fff; font-size:clamp(0.9375rem, 0.0994 * var(--st-vw, 1vw) + 0.9151rem, 1rem); letter-spacing:.1em; text-transform:uppercase; }
.stb-mr__timeline{ list-style:none; margin:0; padding:0.5rem 0; background:var(--st-card, #fff); }
.stb-ev{ display:grid; grid-template-columns:minmax(0, 1fr) 5rem minmax(0, 1fr); align-items:center; gap:0.75rem; padding:0.5rem 1rem; }
.stb-ev__side--home{ text-align:right; }
.stb-ev__mid{ display:flex; flex-direction:column; align-items:center; gap:0.125rem; }
.stb-ev__icon{ display:inline-grid; place-items:center; min-width:1.75rem; height:1.75rem; padding:0 0.25rem; background:var(--st-accent, #FF6B35); color:var(--st-on-accent, #fff); font-weight:900; font-size:clamp(0.7188rem, 0.0497 * var(--st-vw, 1vw) + 0.7076rem, 0.75rem); }
.stb-ev.is-pen .stb-ev__icon, .stb-ev__icon.is-pen{ background:#F5A524; color:#1A1410; }
.stb-ev__time{ font-size:clamp(0.75rem, 0.0994 * var(--st-vw, 1vw) + 0.7276rem, 0.8125rem); font-weight:700; font-variant-numeric:tabular-nums; color:var(--st-text-muted, #5B6472); }
.stb-ev__label{ display:flex; gap:0.375rem; align-items:center; font-size:clamp(0.7188rem, 0.0497 * var(--st-vw, 1vw) + 0.7076rem, 0.75rem); font-weight:800; letter-spacing:.1em; text-transform:uppercase; color:var(--st-text-muted, #5B6472); }
.stb-ev__side--home .stb-ev__label, .stb-ev__side--home .stb-ev__player{ justify-content:flex-end; }
.stb-ev__tag{ padding:0 0.375rem; background:var(--st-primary, #102A5C); color:#fff; }
.stb-ev__player{ display:flex; gap:0.375rem; font-weight:700; }
.stb-ev__no{ color:var(--st-text-muted, #5B6472); }
.stb-ev__detail{ font-size:clamp(0.8125rem, 0.0994 * var(--st-vw, 1vw) + 0.7901rem, 0.875rem); color:var(--st-text-muted, #5B6472); }
.stb-mr__info{ flex:1 1 18rem; display:flex; flex-direction:column; gap:1rem; }
.stb-mr__facts{ margin:0; display:flex; flex-direction:column; gap:2px; background:#DCE1E9; }
.stb-mr__fact{ display:flex; gap:0.875rem; padding:1rem 1.25rem; background:var(--st-card, #fff); }
.stb-mr__fact dt{ font-size:clamp(0.7188rem, 0.0497 * var(--st-vw, 1vw) + 0.7076rem, 0.75rem); font-weight:800; letter-spacing:.12em; text-transform:uppercase; color:var(--st-text-muted, #5B6472); }
.stb-mr__fact dd{ margin:0; font-weight:700; }
.stb-mr__source{ display:flex; gap:0.5rem; font-size:clamp(0.8125rem, 0.0994 * var(--st-vw, 1vw) + 0.7901rem, 0.875rem); color:var(--st-text-muted, #5B6472); }
.stb-mr__lineups{ margin-top:2rem; display:flex; flex-direction:column; gap:1rem; }
.stb-mr__lgrid{ display:grid; grid-template-columns:repeat(auto-fit, minmax(min(20rem, 100%), 1fr)); gap:1.5rem; }
.stb-mr__lineup{ display:flex; flex-direction:column; gap:1rem; padding:1.25rem; background:var(--st-card, #fff); }
.stb .stb-mr__lteam{ display:flex; align-items:center; gap:0.75rem; margin:0; }
.stb .stb-mr__uname{ margin:0 0 0.375rem; font-size:clamp(0.75rem, 0.0994 * var(--st-vw, 1vw) + 0.7276rem, 0.8125rem); letter-spacing:.12em; text-transform:uppercase; color:var(--st-accent-text, var(--st-primary, #102A5C)); }
.stb-mr__segs{ display:grid; grid-template-columns:2fr 3fr; gap:1rem; }
.stb-mr__slabel{ font-size:clamp(0.7188rem, 0.0497 * var(--st-vw, 1vw) + 0.7076rem, 0.75rem); font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:var(--st-text-muted, #5B6472); }
.stb-mr__players li{ display:flex; align-items:baseline; gap:0.5rem; padding:0.2rem 0; }
.stb-mr__pnum{ min-width:1.75rem; font-weight:800; font-variant-numeric:tabular-nums; color:var(--st-primary, #102A5C); }
.stb-mr__cap{ padding:0 0.3rem; background:var(--st-accent, #FF6B35); color:var(--st-on-accent, #fff); font-size:clamp(0.6562rem, 0.0497 * var(--st-vw, 1vw) + 0.6451rem, 0.6875rem); font-weight:800; text-decoration:none; }
.stb-mr__pnote{ margin-left:auto; font-size:clamp(0.8125rem, 0.0994 * var(--st-vw, 1vw) + 0.7901rem, 0.875rem); color:var(--st-text-muted, #5B6472); }
.stb-mr__note{ font-size:clamp(0.8125rem, 0.0994 * var(--st-vw, 1vw) + 0.7901rem, 0.875rem); color:var(--st-text-muted, #5B6472); }
@media (max-width:689px){
  .stb-mr__teams{ grid-template-columns:1fr auto 1fr; gap:0.5rem; }
  .stb-mr__team, .stb-mr__team--home{ flex-direction:column; text-align:center; }
  .stb-ev{ grid-template-columns:minmax(0, 1fr) 3.5rem minmax(0, 1fr); padding:0.5rem; gap:0.5rem; }
  .stb-mr__segs{ grid-template-columns:1fr; }
}

/* Roster as a table */
.stb .stb-roster__table td, .stb .stb-roster__table th{ text-align:center; }
.stb .stb-roster__table .stb-roster__name{ text-align:left; font-weight:600; }
.stb .stb-roster__group th{ text-align:left; background:var(--stb-surface); color:var(--st-ink, var(--st-primary, #102A5C)); }
.stb-roster__no{ display:inline-grid; place-items:center; min-width:2.5rem; height:2rem; padding:0 0.375rem; background:var(--st-primary, #102A5C); color:#fff; font-weight:800; font-variant-numeric:tabular-nums; }

/* Sidebar contact cards and "Questions?" box */
.stb-acards{ display:flex; flex-direction:column; gap:0.75rem; }
.stb-acard{ display:flex; flex-direction:column; gap:0.75rem; padding:1.25rem; background:var(--st-card, #fff); border:1px solid #DCE1E9; }
.stb-acard__head{ display:flex; align-items:center; gap:1rem; }
.stb-acard__ph{ flex:none; display:grid; place-items:center; width:4rem; height:4rem; background:var(--st-primary, #102A5C); color:#fff; font-weight:900; font-size:clamp(1.1875rem, 0.2982 * var(--st-vw, 1vw) + 1.1204rem, 1.375rem); }
.stb-acard__name{ font-weight:700; font-size:clamp(1rem, 0.1988 * var(--st-vw, 1vw) + 0.9553rem, 1.125rem); line-height:1.25; }
.stb-acard__role{ font-size:clamp(0.75rem, 0.0994 * var(--st-vw, 1vw) + 0.7276rem, 0.8125rem); font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:var(--st-accent-text, var(--st-primary, #102A5C)); }
.stb-acard__links{ display:flex; flex-direction:column; border-top:1px solid #DCE1E9; padding-top:0.25rem; }
.stb-acard__link{ display:flex; align-items:center; gap:0.5rem; min-height:2.75rem; font-weight:600; overflow-wrap:anywhere; }
.stb-ask{ display:flex; flex-direction:column; gap:0.875rem; padding:1.75rem 1.5rem; background:var(--st-primary, #102A5C); color:#fff; }
.stb-ask__icon{ display:grid; place-items:center; width:3rem; height:3rem; background:var(--st-accent-d, var(--st-accent, #FF6B35)); color:var(--st-primary, #102A5C); }
.stb-ask__title{ font-family:var(--st-font-heading, inherit); font-weight:900; font-size:clamp(1.625rem, 0.5964 * var(--st-vw, 1vw) + 1.4908rem, 2rem); line-height:1; text-transform:var(--st-heading-transform, none); }
.stb-ask__who{ font-weight:700; }
.stb-ask__phone a{ color:inherit; }
.stb-ask__btn{ align-self:flex-start; display:inline-flex; align-items:center; min-height:3rem; padding:0 1.5rem; margin-top:0.25rem; background:var(--st-accent-d, var(--st-accent, #FF6B35)); color:var(--st-on-accent-d, var(--st-on-accent, #fff)); font-weight:800; text-transform:uppercase; letter-spacing:.06em; text-decoration:none; }

/* Games by month: month buttons (assets/matches.js) */
.stb-mtabs{ display:flex; gap:0.375rem; margin:0 0 0.875rem; padding:0 0 0.25rem; overflow-x:auto; scrollbar-width:thin; }
.stb-mtabs[hidden]{ display:none; }
.stb-mtabs__btn{ flex:none; display:inline-flex; align-items:center; gap:0.4rem; min-height:2.5rem; padding:0 0.875rem; border:1px solid var(--stl-line, #DCE1E9); border-radius:999px; background:var(--st-card, #fff); color:var(--st-ink, var(--st-primary, #102A5C)); font:inherit; font-weight:600; cursor:pointer; }
.stb-mtabs__btn:hover{ border-color:var(--st-primary, #102A5C); }
.stb-mtabs__btn[aria-pressed="true"]{ background:var(--st-primary, #102A5C); border-color:var(--st-primary, #102A5C); color:#fff; }
.stb-mtabs__count{ display:inline-grid; place-items:center; min-width:1.5rem; height:1.5rem; padding:0 0.35rem; border-radius:999px; background:var(--stl-surface, #F2F4F8); color:var(--st-text-muted, #5B6472); font-size:clamp(0.7188rem, 0.0497 * var(--st-vw, 1vw) + 0.7076rem, 0.75rem); font-weight:700; }
.stb-mtabs__btn[aria-pressed="true"] .stb-mtabs__count{ background:var(--st-accent, #FF6B35); color:var(--st-on-accent, #fff); }
.stb-matches.is-paged .stb-matches__month[hidden]{ display:none; }
.stb-matches__none{ padding:1rem 1.25rem; background:var(--st-card, #fff); color:var(--st-text-muted, #5B6472); }
/* Player photos keep their own shape: 125 px high, the width follows the picture. */
.stb-roster__photo{ display:inline-block; vertical-align:middle; height:125px; margin-right:0.875rem; border-radius:6px; overflow:hidden; background:var(--stl-surface, #F2F4F8); }
.stb-roster__photo img{ display:block; width:auto; height:125px; max-width:none; }
.stb-roster__photo.is-empty{ aspect-ratio:2 / 3; background:linear-gradient(160deg, color-mix(in srgb, var(--st-primary, #102A5C) 75%, #fff), color-mix(in srgb, var(--st-primary, #102A5C) 70%, #000)); }
a.stb-roster__photo{ cursor:zoom-in; transition:box-shadow .15s ease, transform .15s ease; }
a.stb-roster__photo:hover{ transform:translateY(-1px); box-shadow:0 6px 16px rgb(0 0 0 / 18%); }
a.stb-roster__photo:focus-visible{ outline:3px solid var(--st-accent, #FF6B35); outline-offset:2px; }
.stb-roster__table tr.has-photo > td,
.stb-roster__table tr.has-photo > th{ padding-top:0.5rem; padding-bottom:0.5rem; }
.stb-roster__table tr.has-photo .stb-roster__name{ white-space:nowrap; }
.stb-roster__table tr.has-photo .stb-roster__pname{ display:inline-block; vertical-align:middle; white-space:normal; }

/* Photo lightbox (assets/lightbox.js) */
.stb-lightbox-open{ overflow:hidden; }
dialog.stb-lightbox{ width:100vw; height:100vh; max-width:none; max-height:none; margin:0; padding:0; border:0; background:transparent; color:#fff; overflow:hidden; }
dialog.stb-lightbox::backdrop{ background:rgb(6 12 24 / 92%); }
dialog.stb-lightbox[open]{ display:flex; align-items:center; justify-content:center; }
.stb-lightbox__fig{ display:flex; flex-direction:column; align-items:center; gap:12px; margin:0; max-width:calc(100vw - 32px); pointer-events:none; }
.stb-lightbox__img{ display:block; width:auto; height:auto; max-width:100%; max-height:calc(100vh - 110px); box-shadow:0 20px 60px rgb(0 0 0 / 50%); pointer-events:auto; }
.stb-lightbox__cap{ margin:0; color:#fff; font-size:clamp(0.925rem, 0.1988 * var(--st-vw, 1vw) + 0.8803rem, 1.05rem); font-weight:600; text-align:center; }
.stb-lightbox__btn{ position:absolute; display:grid; place-items:center; width:48px; height:48px; padding:0; border:0; border-radius:50%; background:rgb(255 255 255 / 12%); color:#fff; cursor:pointer; }
.stb-lightbox__btn:hover,
.stb-lightbox__btn:focus-visible{ background:rgb(255 255 255 / 26%); }
.stb-lightbox__btn:focus-visible{ outline:3px solid #fff; outline-offset:2px; }
.stb-lightbox__btn[hidden]{ display:none; }
.stb-lightbox__close{ top:16px; right:16px; }
.stb-lightbox__prev{ left:16px; top:50%; transform:translateY(-50%); }
.stb-lightbox__next{ right:16px; top:50%; transform:translateY(-50%); }
@media (max-width:600px){
  .stb-roster__table tr.has-photo .stb-roster__name{ white-space:normal; }
  .stb-roster__table tr.has-photo .stb-roster__photo{ display:block; width:max-content; margin:0 0 0.375rem; }
  .stb-lightbox__prev, .stb-lightbox__next{ top:auto; bottom:16px; transform:none; }
  .stb-lightbox__img{ max-height:calc(100vh - 150px); }
}
@media (prefers-reduced-motion:reduce){ a.stb-roster__photo{ transition:none; } }
.stb-roster__pname{ vertical-align:middle; }

/* Events from Nimenhuuto (inc/ical.php) */
.stc-ical__more{ margin:1rem 0 0; font-weight:600; }
.stc-ical__more a{ color:var(--st-primary, #102A5C); }
.stc-ical__error{ padding:0.75rem 1rem; border-left:4px solid #C8453A; background:#FDF1EF; }

/* Info boxes in the sidebar (block setting "Place": sidebar) */
.stb-infobox{ display:flex; flex-direction:column; gap:1.25rem; padding:1.5rem; background:var(--st-primary, #102A5C); color:#fff; }
.stb-infobox__item{ display:flex; align-items:flex-start; gap:0.875rem; }
.stb-infobox__item + .stb-infobox__item{ padding-top:1.25rem; border-top:1px solid rgb(255 255 255 / 14%); }
.stb-infobox__icon{ flex:none; display:grid; place-items:center; width:2.5rem; height:2.5rem; background:var(--st-accent, #FF6B35); color:var(--st-on-accent, #141C2D); }
.stb-infobox__body{ display:flex; flex-direction:column; gap:0.2rem; min-width:0; }
.stb-infobox__body > *{ margin:0; }
.stb-infobox__label{ font-size:clamp(0.7188rem, 0.0497 * var(--st-vw, 1vw) + 0.7076rem, 0.75rem); font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:rgb(255 255 255 / 72%); }
.stb-infobox__value{ font-size:clamp(0.9375rem, 0.1988 * var(--st-vw, 1vw) + 0.8928rem, 1.0625rem); font-weight:700; line-height:1.35; color:#fff; }
.stb-infobox__text{ font-size:clamp(0.875rem, 0.0994 * var(--st-vw, 1vw) + 0.8526rem, 0.9375rem); line-height:1.4; color:rgb(255 255 255 / 78%); }

/* Sports (1.5): cards in match reports, sport buttons of the Teams block */
.stb-ev__cardicon{ display:inline-block; width:0.7em; height:0.95em; border-radius:2px; background:#F5C518; vertical-align:-0.1em; }
.stb-ev__cardicon.is-red{ background:#D0312D; }
.stb-teams .stb-team.is-hidden-sport{ display:none !important; }

/* Block "Teams" (inc/teams.php) */
.stb-teams{ display:flex; flex-direction:column; gap:2rem; }
.stb-teams .stb-sporttabs{ margin:0; }
.stb-teams__title{ margin:0 0 0.875rem !important; font-size:clamp(1.125rem, 0.1988 * var(--st-vw, 1vw) + 1.0803rem, 1.25rem); }
.stb-teams__list{ display:grid; grid-template-columns:repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap:1rem; margin:0 !important; padding:0 !important; list-style:none !important; }
.stb-team{ position:relative; display:flex; flex-direction:column; margin:0 !important; overflow:hidden; border-radius:8px; background:var(--st-card, #fff); box-shadow:0 1px 3px rgb(0 0 0 / 8%), 0 6px 18px rgb(0 0 0 / 6%); transition:transform .15s ease, box-shadow .15s ease; }
.stb-team:hover{ transform:translateY(-2px); box-shadow:0 2px 6px rgb(0 0 0 / 10%), 0 12px 28px rgb(0 0 0 / 10%); }
.stb-team__media{ display:block; aspect-ratio:16 / 9; overflow:hidden; background:var(--st-primary, #102A5C); }
.stb-team__img{ display:block; width:100%; height:100%; object-fit:cover; }
.stb-team__body{ display:flex; flex-direction:column; gap:0.3rem; padding:1rem 1.125rem 1.125rem; }
.stb-team__meta{ font-size:clamp(0.7188rem, 0.0497 * var(--st-vw, 1vw) + 0.7076rem, 0.75rem); font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--st-text-muted, #5B6472); }
.stb-team__name{ font-size:clamp(1rem, 0.1988 * var(--st-vw, 1vw) + 0.9553rem, 1.125rem); font-weight:700; color:var(--st-primary, #102A5C); text-decoration:none; overflow-wrap:break-word; hyphens:auto; } /* long names, e.g. Swedish compounds */
.stb-team__name::after{ content:""; position:absolute; inset:0; }
.stb-team__name:focus-visible{ outline:none; }
.stb-team:focus-within{ outline:3px solid var(--st-accent, #FF6B35); outline-offset:2px; }
.stb-team__desc{ font-size:clamp(0.875rem, 0.0994 * var(--st-vw, 1vw) + 0.8526rem, 0.9375rem); color:var(--st-text-muted, #5B6472); }
@media (prefers-reduced-motion:reduce){ .stb-team{ transition:none; } }
/* Crest logos keep their size also where the editor styles make images height:auto. */
.stb img.stb-crest--logo.stb-crest--sm{ width:auto !important; height:clamp(1.375rem, 1.25rem + 0.4vw, 1.75rem) !important; max-width:3.5rem; }
.stb img.stb-crest--logo.stb-crest--md{ width:auto !important; height:2.875rem !important; }
.stb img.stb-crest--logo.stb-crest--lg{ width:auto !important; height:6.625rem !important; }

/* Match report: the page's text (report draft …) right after the scoreboard (inc/match-draft.php). */
.stb-mr__story{ max-width:46rem; margin-top:2rem; }
.stb-mr__story > *{ margin-block:0; }
.stb .stb-mr__story > * + *,
.stb-mr__story > * + *{ margin-top:1em; }
.stb-mr__story .is-style-st-lead{ font-size:1.25em; font-weight:600; line-height:1.45; color:var(--st-primary, #102A5C); }
.is-style-st-dark .stb-mr__story .is-style-st-lead{ color:inherit; }

/* Match report 1.7.2: main column (text + events) and the game info box beside it. */
.stb-mr__main{ flex:999 1 36rem; min-width:0; display:flex; flex-direction:column; gap:2rem; }
.stb-mr__main > .stb-mr__events{ flex:none; }
.stb-mr__main > .stb-mr__story{ max-width:none; margin-top:0; padding:1.5rem; background:var(--st-card, #fff); border-radius:var(--stl-radius, 8px); }
.stb-mr__fact > div{ flex:1; min-width:0; }
.stb-mr__points{ margin:0.25rem 0 0; padding:0; list-style:none; }
.stb-mr__points li{ display:flex; align-items:baseline; justify-content:space-between; gap:0.75rem; padding:0.15rem 0; }
/* 1.17.0: points of the home and the away team separately */
.stb-mr__pgroup + .stb-mr__pgroup{ margin-top:0.75rem; padding-top:0.75rem; border-top:1px solid #DCE1E9; }
.stb-mr__pteam{ margin:0.25rem 0 0.125rem; font-size:clamp(0.75rem, 0.0994 * var(--st-vw, 1vw) + 0.7276rem, 0.8125rem); font-weight:800; color:var(--st-primary, #102A5C); }
.stb-mr__pgroup.is-other .stb-mr__pteam{ color:var(--st-text-muted, #5B6472); }
.stb-mr__ppteam{ display:block; font-size:clamp(0.7188rem, 0.0497 * var(--st-vw, 1vw) + 0.7076rem, 0.75rem); font-weight:600; color:var(--st-text-muted, #5B6472); }
.stb-mr__pp{ font-weight:800; font-variant-numeric:tabular-nums; white-space:nowrap; }

/* ==========================================================================
   Contact form (sport-team/contact-form)
   ========================================================================== */
.stb-cf{ max-width:760px; }
.stb-cf__form{
  position:relative;
  display:grid;
  gap:1rem;
  padding:clamp(1.25rem, 0.9rem + 1.2vw, 2rem);
  border-radius:var(--st-radius, 8px);
  background:var(--stb-surface);
}
.stb-cf__row{ display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:1rem; }
.stb-cf__row.is-single{ grid-template-columns:minmax(0, 1fr); max-width:calc(50% - 0.5rem); }
@media (max-width:620px){
  .stb-cf__row{ grid-template-columns:minmax(0, 1fr); }
  .stb-cf__row.is-single{ max-width:none; }
}
.stb-cf__field{ display:flex; flex-direction:column; gap:0.375rem; min-width:0; }
.stb-cf__field label{ font-size:clamp(0.875rem, 0.0994 * var(--st-vw, 1vw) + 0.8526rem, 0.9375rem); font-weight:700; color:var(--st-ink, var(--st-primary, #102A5C)); }
.stb-cf__req{ color:var(--st-accent-text, #B4441B); }
.stb-cf :is(input:not([type=radio]):not([type=checkbox]), select, textarea){
  box-sizing:border-box;
  width:100%;
  min-height:3rem;
  padding:0.7em 0.85em;
  border:1px solid #C3CBD7;
  border-radius:6px;
  background:#fff;
  color:#1A2233;
  font:inherit;
  font-size:clamp(0.9375rem, 0.0994 * var(--st-vw, 1vw) + 0.9151rem, 1rem);
}
.stb-cf textarea{ min-height:9.5rem; resize:vertical; line-height:1.5; }
.stb-cf :is(input:not([type=radio]):not([type=checkbox]), select, textarea):focus{ border-color:var(--st-primary, #102A5C); outline:2px solid rgb(var(--st-primary-rgb, 16 42 92) / 22%); outline-offset:0; }
.stb-cf__field.has-error :is(input:not([type=radio]):not([type=checkbox]), select, textarea){ border-color:#B42318; }
.stb-cf__legend{ margin:0; font-size:clamp(0.8125rem, 0.0994 * var(--st-vw, 1vw) + 0.7901rem, 0.875rem); color:var(--st-text-muted, #5B6472); }
fieldset.stb-cf__field{ margin:0; padding:0; border:0; min-width:0; }
fieldset.stb-cf__field > legend{ float:left; width:100%; margin:0 0 0.375rem; padding:0; font-size:clamp(0.875rem, 0.0994 * var(--st-vw, 1vw) + 0.8526rem, 0.9375rem); font-weight:700; color:var(--st-ink, var(--st-primary, #102A5C)); }
fieldset.stb-cf__field > legend + *{ clear:both; }
.stb-cf__choices{ display:flex; flex-wrap:wrap; gap:0.5rem 1.5rem; }
@media (max-width:620px){
  .stb-cf__choices{ flex-direction:column; gap:0.6rem; }
}
.stb-cf__field .stb-cf__choice{ display:flex; align-items:flex-start; gap:0.6rem; font-size:clamp(0.9375rem, 0.0994 * var(--st-vw, 1vw) + 0.9151rem, 1rem); font-weight:500; line-height:1.45; color:inherit; cursor:pointer; }
.stb-cf__choice input{ flex:none; width:1.2rem; height:1.2rem; margin:0.12rem 0 0; accent-color:var(--st-primary, #102A5C); cursor:pointer; }
.stb-cf__choice input:focus-visible{ outline:2px solid var(--st-primary, #102A5C); outline-offset:2px; }
.stb-cf__field.has-error .stb-cf__choice input{ outline:2px solid #B42318; outline-offset:1px; }
.stb-cf__field.stb-cf__field--consent .stb-cf__choice{ font-size:clamp(0.875rem, 0.0994 * var(--st-vw, 1vw) + 0.8526rem, 0.9375rem); }
.stb-cf__field--consent a{ color:inherit; text-decoration:underline; }
.stb-cf__err{ font-size:clamp(0.8125rem, 0.0994 * var(--st-vw, 1vw) + 0.7901rem, 0.875rem); font-weight:600; color:#B42318; }
.stb-cf__hp{ position:absolute !important; left:-10000px; top:auto; width:1px; height:1px; overflow:hidden; }
.stb-cf__foot{ display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:1rem 1.5rem; margin-top:0.25rem; }
.stb-cf__privacy{ flex:1 1 240px; font-size:clamp(0.8125rem, 0.0994 * var(--st-vw, 1vw) + 0.7901rem, 0.875rem); line-height:1.5; color:var(--st-text-muted, #5B6472); }
.stb-cf__privacy a{ color:inherit; text-decoration:underline; }
.stb-cf__submit{
  display:inline-flex;
  align-items:center;
  gap:0.5rem;
  min-height:3rem;
  padding:0 1.5rem;
  border:0;
  border-radius:6px;
  background:var(--st-accent, #FF6B35);
  color:var(--st-on-accent, #fff);
  font:inherit;
  font-weight:800;
  cursor:pointer;
  transition:background-color .15s ease, color .15s ease;
}
.stb-cf__submit:hover{ background:var(--st-primary, #102A5C); color:#fff; }
.stb-cf__submit:focus-visible{ outline:3px solid var(--st-primary, #102A5C); outline-offset:3px; }
.stb-cf__notice{ display:flex; align-items:flex-start; gap:0.75rem; margin:0 0 1rem; padding:1rem 1.25rem; border-left:4px solid; border-radius:6px; font-weight:600; line-height:1.5; }
.stb-cf__notice svg{ flex:none; margin-top:-1px; }
.stb-cf__notice--ok{ border-color:#12B76A; background:#E8F7EE; color:#05603A; }
.stb-cf__notice--error{ border-color:#D92D20; background:#FEF3F2; color:#912018; }
.stb-cf.is-sent .stb-cf__notice{ margin-bottom:0.75rem; padding:1.25rem 1.5rem; font-size:clamp(0.9375rem, 0.1988 * var(--st-vw, 1vw) + 0.8928rem, 1.0625rem); }
.stb-cf__again a{ font-weight:700; color:var(--st-ink, var(--st-primary, #102A5C)); }
.is-style-st-dark .stb-cf__form{ background:rgb(255 255 255 / 6%); }
.is-style-st-dark .stb-cf__field label{ color:inherit; }
