/*
Theme Name: Básquet Dominicano Theme
Template: the-league
Version: 0.7.2
Text Domain: basquet-dominicano-theme
*/

#bd-portada { --bd-content-width: 1240px; --bd-gutter: clamp(16px, 3vw, 54px); width: 100vw; margin-inline: calc(50% - 50vw); color: #fff; }
html:has(#bd-portada) { overflow-x: clip; }
.bd-portada-widgets { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px clamp(16px, 3vw, 54px); background: #fff; color: #10274e; }
.bd-portada-widget { max-width: 100%; }
.bd-portada-widget a { color: #10274e; }
.bd-portada-widget img { display: block; max-width: 100%; height: auto; }
#bd-portada,
#bd-portada > .bd-featured,
#bd-portada > .bd-category-rows { background: transparent !important; }
#bd-portada > .bd-featured { box-sizing: border-box; width: 100%; padding: var(--bd-gutter); }
.bd-featured *, .bd-featured *::before, .bd-featured *::after { box-sizing: border-box; }
.bd-featured__inner { width: 100%; max-width: var(--bd-content-width); margin: 0 auto; }
.bd-featured__grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: clamp(12px, 1.4vw, 26px); }
.bd-featured__grid:not(:has(.bd-featured__list)) { grid-template-columns: minmax(0, 1fr); }
.bd-featured__carousel { position: relative; overflow: hidden; border-radius: 12px; background: #10274e; }
.bd-featured__carousel [hidden] { display: none !important; }
.bd-featured__carousel .bd-featured__lead { height: 100%; }
.bd-featured__carousel .bd-slide-in { animation: bd-slide-down 380ms ease-out both; }
@keyframes bd-slide-down { from { transform: translateY(-12%); opacity: .35; } to { transform: translateY(0); opacity: 1; } }
.bd-featured__controls { position: absolute; z-index: 1; inset: 12px 12px auto auto; display: flex; gap: 5px; }
.bd-featured__controls button { min-width: 42px; min-height: 42px; padding: 0 10px; border: 1px solid #fff; border-radius: 5px; background: #10274e; color: #fff; cursor: pointer; }
.bd-featured__controls button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .bd-featured__carousel .bd-slide-in { animation: none; } }
.bd-featured__lead { position: relative; display: flex; min-height: clamp(310px, 35vw, 595px); align-items: end; overflow: hidden; isolation: isolate; background: #10274e; border-radius: 12px; }
.bd-featured__lead::after { position: absolute; z-index: -1; inset: 0; background: linear-gradient(0deg, rgba(6, 19, 44, .96) 0%, rgba(6, 19, 44, .66) 27%, transparent 72%); content: ''; }
.bd-featured .bd-featured__lead img { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bd-featured .bd-featured__lead h2 { max-width: 34ch; margin: 0; padding: clamp(16px, 2.4vw, 34px); color: #fff; font-size: clamp(21px, 2.25vw, 36px); font-weight: 750; line-height: 1.16; }
.bd-featured__list { display: grid; grid-auto-rows: 1fr; gap: 12px; margin: 0; padding: 0; list-style: none; }
.bd-featured__item { display: flex; overflow: hidden; border-left: 4px solid #ce1734; border-radius: 8px; background: #091c3d; }
.bd-featured__item a { display: grid; width: 100%; grid-template-columns: minmax(76px, 33%) 1fr; align-items: center; gap: 12px; color: #fff; }
.bd-featured__item a:not(:has(img)) { grid-template-columns: 1fr; }
.bd-featured .bd-featured__item img { width: 100%; height: 100%; object-fit: cover; }
.bd-featured .bd-featured__item h2 { margin: 0; padding: 12px 12px 12px 0; color: inherit; font-size: clamp(15px, 1.35vw, 21px); line-height: 1.24; }
#bd-portada .bd-featured__item a:is(:link, :visited, :hover, :focus-visible),
#bd-portada .bd-featured__item a:is(:link, :visited, :hover, :focus-visible) :is(h2, h3) { color: #fff !important; }
.bd-featured__item a:not(:has(img)) h2 { padding-left: 12px; }
.bd-featured a:focus-visible { outline: 3px solid #ce1734; outline-offset: 3px; }
.bd-featured a:hover h2 { text-decoration: underline; }
.bd-featured__after { padding: 0 clamp(16px, 3vw, 54px) 32px; color: #10274e; }
.bd-featured__after a { color: #10274e; text-decoration: underline; }
.bd-category-rows { box-sizing: border-box; width: calc(100% - 2 * var(--bd-gutter)); max-width: var(--bd-content-width); margin: 0 auto; padding-bottom: 32px; }
.bd-category-row + .bd-category-row { margin-top: 24px; }
.bd-category-row__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.bd-category-row__grid .bd-featured__item a { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
.bd-category-row__grid .bd-featured__item img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; }
.bd-category-row__grid .bd-featured__item h3 { margin: 0; padding: 10px; color: #fff; font-size: clamp(15px, 1.2vw, 18px); line-height: 1.22; }
@media (max-width: 760px) {
  .bd-featured__grid { grid-template-columns: 1fr; }
  .bd-featured__item { min-height: 85px; }
  .bd-featured__item img { aspect-ratio: 4 / 3; }
  .bd-category-row__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 360px) { .bd-category-row__grid { grid-template-columns: minmax(0, 1fr); } }
