/*
 * BST Block Theme 0.1.9 — pagini publice (prima pagină, #BST1/#BST2, Calendar 2027, regulamente).
 * Același limbaj vizual ca paginile WooCommerce („Bilet de partidă”).
 */

:root {
  --bst-display: 'Archivo', 'Arial Narrow', ui-sans-serif, system-ui, sans-serif;
  --bst-deep: #092338;
  --bst-lake: #164b73;
  --bst-sky: #5bb7e2;
  --bst-orange: #fc9803;
  --bst-ink: #13212b;
  --bst-muted: #4a6272;
  --bst-line: #dce6ec;
  --bst-field: #f6f9fb;
}

/* ---------- Tipografie comună ---------- */

h1,
h2,
.bst-display-title,
.wp-block-post-title {
  font-family: var(--bst-display);
  font-stretch: 110%;
  letter-spacing: -0.02em;
}
.bst-display-title {
  color: var(--bst-deep);
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  font-weight: 850;
  line-height: 1;
  margin: 0;
}

/* ---------- Header pe mobil ---------- */

.bst-header-actions { display: none; }
.bst-program-bar__short { display: none; }

@media (max-width: 781px) {
  .bst-js header .wp-block-group.alignwide { align-items: center; flex-wrap: wrap !important; position: relative; }
  .bst-js header figure.wp-block-image { flex: 0 0 auto; margin: 0; width: 150px !important; }
  .bst-js header figure.wp-block-image img { height: auto !important; width: 100% !important; }
  .bst-js header .wp-block-group.alignwide { flex-wrap: wrap !important; }
  .bst-js .bst-header-actions { align-items: center; display: flex; gap: 0.5rem; margin-left: auto; }
  .bst-js .bst-account-link--mobile {
    align-items: center;
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 850;
    min-height: 44px;
    padding: 0 0.9rem;
    text-decoration: none;
  }
  .bst-js .bst-nav-toggle {
    align-items: center;
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    border-radius: 12px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    height: 44px;
    justify-content: center;
    width: 44px;
  }
  .bst-js .bst-nav-toggle:focus-visible { outline: 3px solid var(--bst-sky); outline-offset: 2px; }
  .bst-js .bst-header-nav { display: none; }
  .bst-js .bst-header-nav.is-open {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 0.75rem;
    padding-top: 0.25rem;
    width: 100%;
  }
  .bst-js .bst-header-nav.is-open a { font-size: 0.95rem; padding: 0.85rem 0.25rem; text-transform: none; letter-spacing: 0; }
  .bst-js .bst-header-nav.is-open .bst-account-link { display: none; }

  .bst-program-bar { white-space: nowrap; }
  .bst-program-bar__full { display: none; }
  .bst-program-bar__short { display: inline; font-size: 0.8rem; letter-spacing: 0; }
}

/* Butonul WhatsApp: mai mic pe mobil și deasupra barelor fixe de plată. */
@media (max-width: 680px) {
  #ht-ctc-chat { transform: scale(0.82); transform-origin: bottom right; }
  body.bst-wc--pay #ht-ctc-chat,
  body.bst-wc--checkout #ht-ctc-chat { bottom: 92px !important; }
}

/* ---------- Prima pagină ---------- */

.bst-home-hero {
  background-color: var(--bst-deep);
  background-image: linear-gradient(90deg, rgba(9, 35, 56, 0.94) 0%, rgba(9, 35, 56, 0.72) 48%, rgba(9, 35, 56, 0.2) 100%), url('../img/lake-cast.webp');
  background-position: center 40%;
  background-size: cover;
  color: #fff;
}
.bst-home-hero__inner {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  padding-bottom: clamp(5.5rem, 9vw, 7.5rem);
  padding-top: clamp(4rem, 8vw, 6.5rem);
}
.bst-home-hero__status {
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 700;
  gap: 0.5rem;
  margin: 0;
  padding: 0.45rem 0.9rem;
}
.bst-home-hero__status span { background: #5fe39a; border-radius: 50%; height: 8px; width: 8px; }
.bst-home-hero__title {
  color: #fff;
  font-size: clamp(2.9rem, 7vw, 5.4rem);
  font-stretch: 115%;
  font-weight: 900;
  line-height: 0.95;
  margin: 0;
  max-width: 760px;
}
.bst-home-hero__lead { color: #d6e8f2; font-size: clamp(1.05rem, 1.8vw, 1.25rem); line-height: 1.55; margin: 0; max-width: 560px; }
.bst-home-hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.4rem; }
.bst-home-hero__link { color: #fff; font-weight: 700; }
.bst-home-hero__link:hover { color: #9fdcf5; }

.bst-btn-hero,
.bst-btn-card {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  text-decoration: none;
  transition: background-color 140ms ease, box-shadow 140ms ease;
}
.bst-btn-hero { font-size: 1.05rem; min-height: 56px; padding: 0 1.75rem; }
.bst-btn-hero--primary,
.bst-btn-card { background: var(--bst-orange); color: var(--bst-deep); }
.bst-btn-hero--primary:hover,
.bst-btn-card:hover { background: #ffad33; box-shadow: 0 10px 24px rgba(252, 152, 3, 0.28); color: var(--bst-deep); }
.bst-btn-hero--light { background: #fff; color: var(--bst-deep); }
.bst-btn-hero--light:hover { background: #e9f4fb; color: var(--bst-deep); }
.bst-btn-card { min-height: 48px; padding: 0 1.4rem; white-space: nowrap; }
.bst-btn-card--ghost { background: transparent; border: 2px solid var(--bst-lake); color: var(--bst-lake); }
.bst-btn-card--ghost:hover { background: var(--bst-lake); box-shadow: none; color: #fff; }

/* Hero-ul lipit de header, fără spațiul global dintre blocuri. */
.wp-site-blocks > .bst-home-hero { margin-block-start: 0; }

.wp-site-blocks > .bst-regulation-page { margin-block-start: 0; }

/* „Astăzi la #BST”: card alb peste marginea hero-ului. */
.bst-today,
.wp-site-blocks > .bst-today { background: transparent; color: var(--bst-ink); margin-block-start: -3rem; padding: 0; position: relative; z-index: 2; }
.bst-today-heading { clip: rect(0 0 0 0); height: 1px; margin: 0; overflow: hidden; position: absolute; width: 1px; }
.bst-today .bst-live-grid {
  background: #fff;
  border: 0;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(9, 35, 56, 0.14);
  gap: 0;
}
.bst-today .bst-live-card { background: transparent; border-right: 1px solid #e6eef3; min-height: 96px; padding: 1.1rem 1.2rem; }
.bst-today .bst-live-card::after { display: none; }
.bst-today .bst-live-card:last-child { border-right: 0; }
.bst-today .bst-live-icon { display: none; }
.bst-today .bst-live-card small,
.bst-today .bst-live-card span:not(.bst-live-icon) { color: var(--bst-muted); font-size: 0.78rem; font-weight: 600; }
.bst-today .bst-live-card small { font-weight: 800; }
.bst-today .bst-live-card strong { color: var(--bst-deep); font-family: var(--bst-display); font-size: 1.2rem; font-weight: 850; }
.bst-today .bst-live-card a { color: var(--bst-lake); font-size: 0.78rem; }
.bst-today .bst-live-status { background: var(--bst-deep); border-radius: 20px 0 0 20px; }
.bst-today .bst-live-status small,
.bst-today .bst-live-status span:not(.bst-live-icon) { color: #b9d3e2; }
.bst-today .bst-live-status strong { color: #fff; }
.bst-today .bst-live-arrow { color: var(--bst-lake); font-size: 1.2rem; text-decoration: none; }

/* Lacurile. */
.bst-lakes { padding: clamp(3.5rem, 7vw, 5.5rem) 0 1rem; }
.bst-lakes .bst-display-title { margin-bottom: 1.6rem; }
.bst-lakes__grid { display: grid; gap: 1.4rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bst-lake-card { background: #fff; border-radius: 22px; box-shadow: 0 14px 36px rgba(9, 35, 56, 0.09); display: flex; flex-direction: column; overflow: hidden; }
.bst-lake-card img { aspect-ratio: 16 / 11; display: block; height: auto; object-fit: cover; width: 100%; }
.bst-lake-card__body { display: flex; flex: 1; flex-direction: column; gap: 0.6rem; padding: 1.35rem 1.5rem 1.5rem; }
.bst-lake-card__head { align-items: baseline; display: flex; justify-content: space-between; gap: 1rem; }
.bst-lake-card__head h3 { color: var(--bst-deep); font-family: var(--bst-display); font-size: 2.3rem; font-stretch: 112%; font-weight: 900; line-height: 1; margin: 0; }
.bst-lake-card__head span { color: var(--bst-lake); font-size: 0.88rem; font-weight: 800; }
.bst-lake-card p { color: #33505f; font-size: 1rem; line-height: 1.5; margin: 0; }
.bst-lake-card__actions { align-items: center; display: flex; gap: 0.75rem; justify-content: space-between; margin-top: auto; padding-top: 0.6rem; }
.bst-lake-card__rules { font-size: 0.9rem; font-weight: 700; }

/* Hărțile. */
.bst-maps .bst-section-heading { margin-bottom: 1.5rem; }
.bst-maps .bst-map-canvas { border-radius: 22px; box-shadow: 0 18px 44px rgba(9, 35, 56, 0.14); }

/* Teaser calendar. */
.bst-events-teaser { padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(3.5rem, 7vw, 5.5rem); }
.bst-events-teaser__card {
  align-items: center;
  background: var(--bst-deep);
  border-radius: 26px;
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  justify-content: space-between;
  padding: clamp(1.75rem, 4vw, 2.75rem);
}
.bst-events-teaser__card .bst-display-title { color: #fff; }
.bst-events-teaser__card p { color: #c6dbe7; font-size: 1.05rem; line-height: 1.55; margin: 0.7rem 0 0; max-width: 520px; }

@media (max-width: 1050px) {
  .bst-today .bst-live-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bst-today .bst-live-status { border-radius: 20px 0 0 0; }
}
@media (max-width: 781px) {
  .bst-home-hero { background-image: linear-gradient(180deg, rgba(9, 35, 56, 0.35) 0%, rgba(9, 35, 56, 0.78) 55%, rgba(9, 35, 56, 0.96) 100%), url('../img/lake-cast.webp'); }
  .bst-home-hero__inner { padding-top: 7rem; }
  .bst-home-hero__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .bst-btn-hero { font-size: 0.92rem; padding: 0 0.6rem; white-space: nowrap; }
  .bst-home-hero__status { display: none; }
  .wp-site-blocks > .bst-today { margin-block-start: -2rem; }
  .bst-today .bst-live-grid {
    background: transparent;
    box-shadow: none;
    display: flex;
    gap: 0.6rem;
    overflow-x: auto;
    padding-bottom: 0.4rem;
    scroll-snap-type: x mandatory;
  }
  .bst-today .bst-live-card {
    background: #fff;
    border: 1px solid var(--bst-line);
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(9, 35, 56, 0.08);
    flex: 0 0 170px;
    min-height: 0;
    scroll-snap-align: start;
  }
  .bst-today .bst-live-card:last-child { border-right: 1px solid var(--bst-line); }
  .bst-today .bst-live-status { background: var(--bst-deep); border-color: var(--bst-deep); border-radius: 16px; }
  .bst-lakes__grid { grid-template-columns: 1fr; }
  .bst-lake-card--bst3 { flex-direction: row; }
  .bst-lake-card--bst3 img { aspect-ratio: auto; width: 34%; }
  .bst-lake-card--bst3 .bst-lake-card__head { flex-direction: column; gap: 0.2rem; }
}

/* ---------- #BST1 / #BST2: titlu unic, vizitator neautentificat ---------- */

body.bst-booking-page .wp-block-post-title { display: none; }
body.bst-booking-page .bst-booking-intro a { color: #fff; text-decoration-thickness: 2px; }

.bst-guest { margin: 0 auto; max-width: 1240px; }
.bst-guest__head { align-items: flex-end; display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; margin-bottom: 1.75rem; }
.bst-guest__head > div { max-width: 660px; }
.bst-guest__kicker { color: var(--bst-muted); font-size: 0.95rem; font-weight: 700; margin: 0 0 0.4rem; }
.bst-guest__head .bst-display-title { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.bst-guest__lead { color: var(--bst-muted); font-size: 1.1rem; line-height: 1.55; margin: 0.9rem 0 0; }
.bst-guest__rules { font-weight: 800; }
.bst-guest__steps { display: grid; gap: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; margin: 0 0 1.75rem; padding: 0; }
.bst-guest__steps li { align-items: flex-start; background: #fff; border: 1px solid var(--bst-line); border-radius: 18px; display: flex; gap: 0.9rem; margin: 0; padding: 1.2rem 1.3rem; }
.bst-guest__steps strong { color: var(--bst-deep); display: block; font-size: 1.05rem; }
.bst-guest__steps li > span:last-child { color: var(--bst-muted); font-size: 0.9rem; line-height: 1.45; }
.bst-guest__num {
  align-items: center;
  background: var(--bst-deep);
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  flex: none;
  font-family: var(--bst-display);
  font-weight: 900;
  height: 2.2rem;
  justify-content: center;
  width: 2.2rem;
}
.bst-guest__steps li:last-child .bst-guest__num { background: var(--bst-orange); color: var(--bst-deep); }
.bst-guest__layout { align-items: flex-start; display: flex; flex-wrap: wrap; gap: 1.5rem; }
.bst-guest__main { display: grid; flex: 999 1 560px; gap: 1.4rem; min-width: 0; }
.bst-guest__map { border-radius: 22px; box-shadow: 0 16px 40px rgba(9, 35, 56, 0.12); margin: 0; overflow: hidden; position: relative; }
.bst-guest__map img { display: block; height: auto; width: 100%; }
.bst-guest__map figcaption { background: rgba(9, 35, 56, 0.88); border-radius: 12px; bottom: 1rem; color: #fff; font-size: 0.9rem; font-weight: 700; left: 1rem; padding: 0.6rem 0.9rem; position: absolute; }
.bst-guest__prices { background: #fff; border: 1px solid var(--bst-line); border-radius: 20px; padding: 1.4rem 1.6rem; }
.bst-guest__prices h2 { color: var(--bst-deep); font-size: 1.25rem; margin: 0 0 1rem; }
.bst-guest__price-grid { display: grid; gap: 0.9rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bst-guest__price-grid > div { background: var(--bst-field); border-radius: 16px; padding: 1rem 1.2rem; }
.bst-guest__price-grid span { color: var(--bst-muted); display: block; font-size: 0.88rem; font-weight: 700; }
.bst-guest__price-grid strong { color: var(--bst-deep); font-family: var(--bst-display); font-size: 2rem; font-weight: 900; }
.bst-guest__price-grid small { color: var(--bst-muted); font-family: inherit; font-size: 0.95rem; font-weight: 700; }
.bst-guest__prices p { color: var(--bst-muted); font-size: 0.9rem; margin: 0.9rem 0 0; }
.bst-guest__login { background: #fff; border-radius: 22px; box-shadow: 0 24px 60px rgba(9, 35, 56, 0.16); flex: 1 1 340px; max-width: 420px; min-width: 0; overflow: hidden; }
.bst-guest__login-head { background: var(--bst-deep); color: #fff; padding: 1.35rem 1.5rem; }
.bst-guest__login-head h2 { color: #fff; font-size: 1.6rem; margin: 0; }
.bst-guest__login-head p { color: #c6dbe7; font-size: 0.9rem; margin: 0.35rem 0 0; }
.bst-guest__login-body { padding: 1.35rem 1.5rem 1.5rem; }
.bst-guest__login form.woocommerce-form-login { border: 0; margin: 0; padding: 0; }
.bst-guest__login .form-row { display: flex; flex-direction: column; gap: 0.35rem; margin: 0 0 0.9rem; padding: 0; }
.bst-guest__login label { color: #18384e; font-size: 0.88rem; font-weight: 750; }
.bst-guest__login input.input-text {
  background: var(--bst-field);
  border: 1.5px solid #c5d6e0;
  border-radius: 12px;
  box-sizing: border-box;
  font: inherit;
  font-size: 1rem;
  min-height: 50px;
  padding: 0.7rem 0.9rem;
  width: 100%;
}
.bst-guest__login input.input-text:focus { background: #fff; border-color: var(--bst-lake); box-shadow: 0 0 0 4px rgba(91, 183, 226, 0.28); outline: none; }
.bst-guest__login .woocommerce-form-login__rememberme { align-items: center; display: inline-flex; flex-direction: row; gap: 0.5rem; font-weight: 650; margin-bottom: 0.8rem; }
.bst-guest__login .woocommerce-form-login__submit {
  background: var(--bst-orange);
  border: 0;
  border-radius: 999px;
  color: var(--bst-deep);
  cursor: pointer;
  font: inherit;
  font-size: 1rem;
  font-weight: 900;
  min-height: 52px;
  width: 100%;
}
.bst-guest__login .woocommerce-form-login__submit:hover { background: #ffad33; }
.bst-guest__login .lost_password { margin: 0.8rem 0 0; text-align: center; }
.bst-guest__register { font-weight: 800; margin: 0.6rem 0 0; text-align: center; }

@media (max-width: 781px) {
  .bst-guest__steps,
  .bst-guest__price-grid { grid-template-columns: 1fr; }
  .bst-guest__login { max-width: none; order: -1; }
}

/* ---------- Calendar 2027 ---------- */

.bst-cal-lead { color: var(--bst-muted); font-size: 1.1rem; line-height: 1.55; margin: 0.9rem auto 1.5rem; max-width: 1240px; }
body.bst-calendar-page .bst27.is-paged > .hero,
body.bst-calendar-page .bst27.is-paged .bst27-bst1-banner,
body.bst-calendar-page .bst27.is-paged > .nav,
body.bst-calendar-page .bst27.is-paged > .stats,
body.bst-calendar-page .bst27.is-paged section.sector { display: none !important; }

/* Pagina calendarului folosește lățimea mare oricare ar fi șablonul paginii (șablonul implicit are 760 px,
   iar lista + calendarul nu încap alăturate și lista ajungea deasupra calendarului). */
body.bst-calendar-page main .wp-block-post-content,
body.bst-calendar-page main .wp-block-post-content > .bst27,
.wp-block-post-content:has(> .bst27),
.wp-block-post-content:has(> .bst27) > .bst27 { max-width: var(--wp--style--global--wide-size, 1240px) !important; }

.bst-cal { align-items: flex-start; display: flex; flex-wrap: wrap; gap: 1.5rem; margin: 1.5rem 0; }
.bst-cal__agenda { background: #fff; border-radius: 22px; box-shadow: 0 14px 36px rgba(9, 35, 56, 0.09); flex: 1 1 340px; max-width: 440px; min-width: 0; overflow: hidden; }
.bst-cal__agenda-head { align-items: center; display: flex; justify-content: space-between; padding: 1.2rem 1.35rem 0.8rem; }
.bst-cal__agenda-head h2 { color: var(--bst-deep); font-size: 1.3rem; margin: 0; }
.bst-cal__agenda-head span { color: var(--bst-muted); font-size: 0.88rem; font-weight: 700; }
.bst-cal__list { list-style: none; margin: 0; padding: 0 0.6rem 0.8rem; }
.bst-cal__list li { margin: 0; }
.bst-cal__item {
  align-items: start;
  background: transparent;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  display: grid;
  font: inherit;
  gap: 0.75rem;
  grid-template-columns: 92px minmax(0, 1fr);
  padding: 0.75rem;
  text-align: left;
  width: 100%;
}
.bst-cal__item:hover { background: var(--bst-field); }
.bst-cal__item.is-active { background: #fff3db; }
.bst-cal__item:focus-visible { outline: 3px solid var(--bst-sky); outline-offset: 2px; }
.bst-cal__dates { color: #a85a00; font-family: var(--bst-display); font-weight: 850; white-space: nowrap; }
.bst-cal__text strong { color: var(--bst-deep); display: block; font-size: 0.95rem; }
.bst-cal__text span { color: var(--bst-muted); display: block; font-size: 0.82rem; margin-top: 0.15rem; }
.bst-cal__empty { color: var(--bst-muted); padding: 0.75rem; }
.bst-cal__viewer { background: #fff; border-radius: 22px; box-shadow: 0 14px 36px rgba(9, 35, 56, 0.09); flex: 999 1 520px; min-width: 0; overflow: hidden; }
.bst-cal__bar { align-items: center; background: var(--bst-deep); color: #fff; display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: space-between; padding: 0.9rem 1.1rem; }
.bst-cal__nav { align-items: center; display: flex; gap: 0.6rem; }
.bst-cal__month { color: #fff; font-size: 1.5rem; margin: 0; min-width: 170px; text-align: center; }
.bst-cal__arrow {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 1.3rem;
  height: 44px;
  width: 44px;
}
.bst-cal__arrow:disabled { cursor: default; opacity: 0.35; }
.bst-cal__lakes { background: rgba(255, 255, 255, 0.12); border-radius: 999px; display: grid; gap: 4px; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 4px; }
.bst-cal__lakes button { background: transparent; border: 0; border-radius: 999px; color: #fff; cursor: pointer; font: inherit; font-weight: 800; min-height: 40px; padding: 0 1rem; }
.bst-cal__lakes button.is-active { background: var(--bst-orange); color: var(--bst-deep); }
.bst-cal__arrow:focus-visible,
.bst-cal__lakes button:focus-visible { outline: 3px solid var(--bst-sky); outline-offset: 2px; }
.bst-cal__stage { padding: 0.75rem; }
.bst-cal__stage .month { box-shadow: none !important; margin: 0 !important; }
.bst-cal__stage .month-head { display: none !important; }

/* Telefon și tabletă (lista nu mai încape alături): întâi calendarul lunii, apoi lista concursurilor
   într-un panou compact, cu derulare proprie. */
@media (max-width: 960px) {
  .bst-cal__viewer,
  .bst-cal__main { flex-basis: 100%; order: -1; }
  .bst-cal__agenda { flex-basis: 100%; max-width: none; }
  .bst-cal__list { max-height: min(60vh, 460px); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
}

@media (max-width: 781px) {
  .bst-cal__month { font-size: 1.2rem; min-width: 0; }
  .bst-cal__bar { justify-content: center; }
}

/* ---------- Banner publicitar (Calendar Evenimente 2027) ----------
   Proporție fixă 16:5, iar textul e dimensionat după lățimea bannerului (cqw),
   deci pe telefon bannerul se micșorează proporțional, fără să-și schimbe așezarea. */
.bst-cal__main { display: flex; flex: 999 1 520px; flex-direction: column; gap: 1.5rem; min-width: 0; }
.bst-cal__main > .bst-cal__viewer { flex: none; }
.bst-cal-ad {
  aspect-ratio: 16 / 5;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(252, 152, 3, 0.28) 0%, rgba(252, 152, 3, 0) 55%),
    linear-gradient(120deg, var(--bst-deep) 0%, var(--bst-lake) 100%);
  border-radius: 22px;
  box-shadow: 0 14px 36px rgba(9, 35, 56, 0.12);
  box-sizing: border-box;
  color: #fff;
  container-type: inline-size;
  display: grid;
  gap: 0 4cqw;
  grid-template-columns: minmax(0, 1fr) auto;
  margin: 1.5rem auto 0;
  max-width: var(--wp--style--global--wide-size, 1240px);
  overflow: hidden;
  padding: 4cqw 5cqw;
  position: relative;
  align-items: center;
}
.bst-cal__main .bst-cal-ad { margin: 0; width: 100%; }
.bst-home-ad { padding: 0; }
/* Spațiu egal deasupra și sub banner: harta își micșorează marginea de jos cât marginea de sus a secțiunii Concursuri. */
.bst-maps:has(+ .bst-home-ad) { padding-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.bst-home-ad .bst-cal-ad { margin: 0 auto; }
.bst-home-ad + .bst-events-teaser { padding-top: clamp(2.5rem, 5vw, 3.5rem); }
.bst-cal-ad::after {
  border: 0.45cqw dashed rgba(255, 255, 255, 0.28);
  border-radius: 16px;
  content: "";
  inset: 1.6cqw;
  pointer-events: none;
  position: absolute;
}
.bst-cal-ad p { margin: 0; }
.bst-cal-ad__over { color: var(--bst-orange); font-family: var(--bst-display); font-size: 1.7cqw; font-weight: 850; letter-spacing: 0.12em; text-transform: uppercase; }
.bst-cal-ad__title { font-family: var(--bst-display); font-size: 4.1cqw; font-weight: 850; line-height: 1.08; margin-top: 1.2cqw !important; text-wrap: balance; }
.bst-cal-ad__title span { color: var(--bst-orange); }
.bst-cal-ad__text { color: rgba(255, 255, 255, 0.82); font-size: 1.9cqw; line-height: 1.4; margin-top: 1.4cqw !important; max-width: 46ch; }
.bst-cal-ad__cta {
  background: var(--bst-orange);
  border-radius: 999px;
  color: var(--bst-deep) !important;
  font-family: var(--bst-display);
  font-size: 1.9cqw;
  font-weight: 850;
  padding: 1.6cqw 2.8cqw;
  position: relative;
  text-decoration: none !important;
  white-space: nowrap;
  z-index: 1;
}
.bst-cal-ad__cta:hover { background: #ffb23d; }
.bst-cal-ad__cta:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.bst-cal-ad__tag { bottom: 2.2cqw; color: rgba(255, 255, 255, 0.55); font-size: 1.3cqw; letter-spacing: 0.06em; position: absolute; right: 3cqw; text-transform: uppercase; }
/* Banner îngust (telefon): aceeași proporție 16:5, cu varianta scurtă a textului,
   ca să rămână lizibil: titlul scurt și butonul WhatsApp dedesubt. */
.bst-cal-ad__short { display: none; }
@container (max-width: 560px) {
  .bst-cal-ad { align-content: center; gap: 2.6cqw; grid-template-columns: minmax(0, 1fr); padding: 3cqw 6cqw; }
  .bst-cal-ad__body { display: contents; }
  .bst-cal-ad__over, .bst-cal-ad__title, .bst-cal-ad__text { display: none; }
  .bst-cal-ad__short { display: block; font-family: var(--bst-display); font-size: 6cqw; font-weight: 850; line-height: 1.05; }
  .bst-cal-ad__short span { color: var(--bst-orange); }
  .bst-cal-ad__cta { font-size: 3.6cqw; justify-self: start; padding: 2cqw 4.4cqw; }
  .bst-cal-ad__tag { font-size: 2.4cqw; }
}
.bst-cal-ad--image { background: var(--bst-field); display: block; padding: 0; }
.bst-cal-ad--image::after { display: none; }
.bst-cal-ad--image a, .bst-cal-ad--image img { display: block; height: 100%; width: 100%; }
.bst-cal-ad--image img { object-fit: cover; }
.bst-cal-ad--image .bst-cal-ad__tag { background: rgba(9, 35, 56, 0.55); border-radius: 6px; bottom: 2cqw; color: #fff; padding: 0.3em 0.6em; right: 2cqw; }

/* ---------- Pagini vechi convertite din Divi (ex. Informații de interes public) ---------- */
.bst-legacy-img { margin: 1.25rem 0; }
.bst-legacy-img img { border-radius: 16px; display: block; height: auto; max-width: 100%; }
.bst-legacy-img:first-of-type img { aspect-ratio: 16 / 6; object-fit: cover; width: 100%; }
.bst-acc {
  background: #fff;
  border: 1px solid rgba(9, 35, 56, 0.1);
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(9, 35, 56, 0.06);
  margin: 0.75rem 0;
}
.bst-acc > summary {
  align-items: center;
  color: var(--bst-deep);
  cursor: pointer;
  display: flex;
  font-family: var(--bst-display);
  font-size: 1.05rem;
  font-weight: 800;
  gap: 0.75rem;
  justify-content: space-between;
  list-style: none;
  padding: 1rem 1.25rem;
}
.bst-acc > summary::-webkit-details-marker { display: none; }
.bst-acc > summary::after {
  border-bottom: 2.5px solid var(--bst-orange);
  border-right: 2.5px solid var(--bst-orange);
  content: "";
  flex: none;
  height: 0.55rem;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.2s ease;
  width: 0.55rem;
}
.bst-acc[open] > summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.bst-acc > summary:hover { color: var(--bst-lake); }
.bst-acc > summary:focus-visible { border-radius: 16px; outline: 3px solid var(--bst-sky); outline-offset: 2px; }
.bst-acc__body { border-top: 1px solid rgba(9, 35, 56, 0.08); padding: 0.4rem 1.25rem 1rem; }
.bst-acc__body ul { margin: 0.6rem 0; padding-left: 1.2rem; }
.bst-acc__body li { margin: 0.3rem 0; }
@media (prefers-reduced-motion: reduce) { .bst-acc > summary::after { transition: none; } }

/* ---------- Informații de interes public: capitole + liste de documente ---------- */
.bst-ipi { --bst-ipi-line: rgba(9, 35, 56, 0.1); }
.bst-ipi__lead { color: #3d4f5c; font-size: 1.05rem; line-height: 1.6; margin: 0 0 1rem; max-width: 62ch; }
.bst-ipi__company {
  background: var(--wp--preset--color--mist, #f4f8fa);
  border: 1px solid var(--bst-ipi-line);
  border-radius: 18px;
  display: grid;
  gap: 0.9rem 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  margin: 1.25rem 0;
  padding: 1.2rem 1.4rem;
}
.bst-ipi__company div { min-width: 0; }
.bst-ipi__company div:nth-child(1),
.bst-ipi__company div:nth-child(4) { grid-column: span 2; }
.bst-ipi__company-wide { grid-column: 1 / -1; }
.bst-ipi__company dt { color: #5d6f7c; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.bst-ipi__company dd { color: var(--bst-deep); font-weight: 800; margin: 0.15rem 0 0; overflow-wrap: anywhere; }
.bst-ipi__company dd a { color: var(--bst-lake); font-weight: 700; }
.bst-ipi__toc { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 2rem; }
.bst-ipi__toc a {
  background: #fff;
  border: 1px solid var(--bst-ipi-line);
  border-radius: 999px;
  color: var(--bst-deep);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.45rem 0.95rem;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.bst-ipi__toc a:hover { border-color: var(--bst-orange); color: var(--bst-lake); }
.bst-ipi__toc a:focus-visible { outline: 3px solid var(--bst-sky); outline-offset: 2px; }
.bst-ipi__ch { border-top: 1px solid var(--bst-ipi-line); margin-top: 2.25rem; padding-top: 1.75rem; scroll-margin-top: 110px; }
.bst-ipi__ch > h2 { align-items: baseline; color: var(--bst-deep); display: flex; font-size: clamp(1.35rem, 2.6vw, 1.75rem); gap: 0.7rem; line-height: 1.2; margin: 0 0 0.75rem; }
.bst-ipi__num { color: var(--bst-orange); flex: none; font-size: 0.8em; font-variant-numeric: tabular-nums; font-weight: 850; }
.bst-ipi__sub { color: var(--bst-deep); font-size: 1rem; margin: 1.25rem 0 0.25rem; }
.bst-ipi__cols { display: grid; gap: 0 2rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.bst-ipi__year > summary small { color: #5d6f7c; font-family: inherit; font-size: 0.82rem; font-weight: 600; margin-left: auto; margin-right: 0.25rem; }

.bst-docs { list-style: none; margin: 0.5rem 0; padding: 0; }
.bst-acc__body .bst-docs { margin: 0.4rem 0 0; padding: 0; }
.bst-docs li { border-bottom: 1px solid rgba(9, 35, 56, 0.07); margin: 0; }
.bst-docs li:last-child { border-bottom: 0; }
.bst-docs a {
  color: var(--bst-deep);
  display: block;
  padding: 0.65rem 0.4rem 0.65rem 2.1rem;
  position: relative;
  text-decoration: none;
}
.bst-docs a::before {
  background: #fff1df;
  border-radius: 6px;
  color: #b25a00;
  content: "PDF";
  font-size: 0.58rem;
  font-weight: 850;
  left: 0;
  letter-spacing: 0.03em;
  line-height: 1;
  padding: 0.35rem 0.2rem;
  position: absolute;
  text-align: center;
  top: 0.78rem;
  width: 1.55rem;
}
.bst-docs a:hover .bst-docs__t { color: var(--bst-lake); text-decoration: underline; text-underline-offset: 3px; }
.bst-docs a:focus-visible { border-radius: 8px; outline: 3px solid var(--bst-sky); outline-offset: 1px; }
.bst-docs__t { display: block; font-weight: 750; line-height: 1.35; }
.bst-docs__d { color: #5d6f7c; display: block; font-size: 0.88rem; line-height: 1.45; margin-top: 0.15rem; }
.bst-docs__badge { background: #e8f4fb; border-radius: 999px; color: var(--bst-lake); display: inline-block; font-size: 0.72rem; font-weight: 800; margin: 0 0 0.6rem 2.1rem; padding: 0.2rem 0.6rem; }
.bst-docs__missing { color: #5d6f7c; padding: 0.65rem 0.4rem 0.65rem 2.1rem; }
.bst-docs__missing .bst-docs__t { font-weight: 650; }
.bst-docs__empty { background: var(--wp--preset--color--mist, #f4f8fa); border: 1px dashed rgba(9, 35, 56, 0.2); border-radius: 12px; color: #5d6f7c; margin: 0.6rem 0 0.2rem; padding: 0.8rem 1rem; }
@media (max-width: 600px) {
  .bst-ipi__company { grid-template-columns: 1fr 1fr; padding: 1rem; }
  .bst-acc > summary { padding: 0.9rem 1rem; }
  .bst-acc__body { padding: 0.3rem 1rem 0.8rem; }
}

/* ---------- Regulamente ---------- */

.bst-reg-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.4rem; }
.bst-reg-actions__primary,
.bst-reg-actions__print {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 900;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0 1.3rem;
  text-decoration: none;
}
.bst-reg-actions__primary { background: var(--bst-orange); color: var(--bst-deep); }
.bst-reg-actions__primary:hover { background: #ffad33; color: var(--bst-deep); }
.bst-reg-actions__print { background: transparent; border: 1.5px solid rgba(255, 255, 255, 0.5); color: #fff; cursor: pointer; }
.bst-reg-actions__print:hover { background: rgba(255, 255, 255, 0.12); }
.bst-reg-summary { background: #fff3db; border-radius: 18px; margin-bottom: 1.2rem; padding: 1.3rem 1.5rem; }
.bst-reg-summary h2 { color: var(--bst-deep); font-size: 1.35rem; margin: 0 0 0.8rem; }
.bst-reg-summary ul { display: grid; gap: 0.6rem; list-style: none; margin: 0; padding: 0; }
.bst-reg-summary li { color: #4a3510; line-height: 1.5; padding-left: 1.6rem; position: relative; }
.bst-reg-summary li::before { border-bottom: 2.5px solid #c46a00; border-left: 2.5px solid #c46a00; content: ""; height: 6px; left: 0.15rem; position: absolute; top: 0.45rem; transform: rotate(-45deg); width: 11px; }
.bst-reg-section h2 { font-stretch: 108%; }

@media (max-width: 781px) {
  .bst-reg-nav {
    align-items: center;
    background: #fff;
    border-radius: 0;
    border-width: 0 0 1px;
    box-shadow: 0 6px 16px rgba(9, 35, 56, 0.06);
    display: flex;
    gap: 0.5rem;
    margin-inline: calc(-1 * clamp(1.1rem, 4vw, 3.2rem));
    overflow-x: auto;
    padding: 0.6rem clamp(1.1rem, 4vw, 3.2rem);
    position: sticky !important;
    top: 0;
    white-space: nowrap;
    z-index: 5;
  }
  .bst-reg-nav strong { display: none; }
  .bst-reg-nav a { background: #eef3f6; border: 0; border-radius: 999px; flex: none; padding: 0.55rem 0.9rem; }
  .bst-reg-layout { gap: 1.2rem; padding-top: 0; }
}

@media print {
  .bst-reg-actions,
  .bst-header-actions,
  .bst-program-bar { display: none !important; }
  .bst-reg-summary { border: 1px solid #c9a24a; }
}
