.spx, .spx *{ box-sizing:border-box; }

/* Full width breakout */
.spx-full{
  width:100vw;
  position:relative;
  left:50%;
  right:50%;
  margin-left:-50vw;
  margin-right:-50vw;
}

/* Theme vars */
.spx{
  --bg: var(--td_body_bg, var(--td_background_color, #0B1220));
  --text: #F9FAFB;
  --muted: var(--td_text_color_secondary, rgba(249,250,251,.72));
  --accent: var(--td_theme_color, var(--td_theme_color_main, #0A7674));
  --stroke: rgba(255,255,255,.10);

  background: var(--bg);
  padding: var(--spx-pt,56px) 0 var(--spx-pb,6px);
}

.spx-container{
  max-width:1180px;
  margin:0 auto;
  padding:0 16px;
}


/* Full width hero (optional) */
.spx.spx-is-fullwidth .spx-container{
  max-width:none;
  padding:0;
}
.spx.spx-is-fullwidth .spx-hero__card{
  border-radius: 0;
  border-left: 0;
  border-right: 0;
}

/* Slider (optional) */
.spx-slider{
  margin-top: 18px;
  position:relative;
  border-radius: 20px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
}
.spx-slideLink{
  display:block;
  text-decoration:none;
  position:relative;
}
.spx-slideImg{
  width:100%;
  display:block;
  height:auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.spx-slideOv{
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,.04), rgba(0,0,0,.28));
  pointer-events:none;
}
.spx-nav{
  position:absolute;
  top:50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(11,18,32,.55);
  color: rgba(249,250,251,.96);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
  z-index: 2;
}
.spx-nav span{ font-size: 26px; line-height: 1; font-weight: 900; }
.spx-prev{ right: 14px; }
.spx-next{ left: 14px; }
.spx-nav:hover{
  transform: translateY(-50%) scale(1.03);
  border-color: rgba(255,255,255,.22);
  background: rgba(11,18,32,.70);
}
.spx-dots{
  display:flex;
  gap:10px;
  justify-content:center;
  padding: 12px 0 2px;
}
.spx-dotBtn{
  width: 9px; height: 9px;
  border-radius: 999px;
  border: 0;
  background: rgba(255,255,255,.25);
  cursor:pointer;
  padding:0;
  transition: transform .16s ease, background .16s ease, width .16s ease;
}
.spx-dotBtn.is-active{
  width: 28px;
  background: var(--accent);
}
.spx-dotBtn:hover{ transform: scale(1.08); }

.spx-hero{ margin:0 !important; padding:0 !important; }

.spx-hero__card{
  width:100%;
  margin:0;
  border-radius: 26px;
  border: 1px solid var(--stroke);
  background: var(--spx-card-bg, linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.018)));
  box-shadow: 0 30px 90px rgba(0,0,0,.38);
  padding: var(--spx-card-pt,38px) var(--spx-card-px,36px) var(--spx-card-pb,18px);
  position:relative;
  overflow:hidden;
}

.spx-hero__card:before{
  content:"";
  position:absolute;
  inset:-1px;
  background:
    radial-gradient(1100px 560px at 85% 0%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 62%),
    radial-gradient(900px 420px at 10% 35%, rgba(255,255,255,.07), transparent 62%);
  opacity:.95;
  pointer-events:none;
}


@supports not (color: color-mix(in srgb, red 50%, white)){
  .spx-hero__card:before{
    background:
      radial-gradient(1100px 560px at 85% 0%, rgba(10,118,116,.18), transparent 62%),
      radial-gradient(900px 420px at 10% 35%, rgba(255,255,255,.07), transparent 62%);
  }
}


.spx-kicker{
  display:inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  color: rgba(249,250,251,.92);
  font-weight: 900;
  font-size: 13px;
  margin: 0 0 12px;
  position:relative;
}


@supports not (color: color-mix(in srgb, red 50%, white)){
  .spx-kicker{
    background: rgba(10,118,116,.14);
    border-color: rgba(10,118,116,.28);
  }
}


.spx-h1{
  margin:0 0 12px;
  color: var(--text);
  font-size: var(--spx-h1,40px);
  font-weight: 1000;
  line-height: 1.2;
  position:relative;
}

.spx-lead{
  margin:0 0 16px;
  color: var(--muted);
  font-size: 16px;
  line-height: 2;
  font-weight: 700;
  max-width: var(--spx-lead-mw,980px);
  position:relative;
}

.spx-hero__actions{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  align-items:center;
  position:relative;
}


.spx.is-center .spx-hero__card,
.spx.is-center .spx-hero{ text-align:center; }
.spx.is-center .spx-lead{ margin-left:auto; margin-right:auto; }
.spx.is-center .spx-hero__actions{ justify-content:center; }

@media (max-width: 560px){
  .spx.spx-hide-btns-mobile .spx-hero__actions{ display:none !important; }
}

.spx-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none !important;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 900;
  min-width: 200px;

  /* hard reset against theme button/link styles */
  background: transparent !important;
  background-image: none !important;
  border: 1px solid transparent !important;
  box-shadow: none !important;
  outline: 0 !important;
  -webkit-appearance: none;
  appearance: none;

  transition: transform .16s ease, filter .16s ease, background .16s ease, border-color .16s ease;
  will-change: transform;
}

.spx-btn--primary{
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color:#fff !important;
  box-shadow: 0 16px 36px rgba(0,0,0,.30) !important;
}

.spx-btn--ghost{
  background: transparent !important;
  color: rgba(249,250,251,.92) !important;
  border-color: rgba(255,255,255,.18) !important;
}

.spx-btn:hover{
  transform: translateY(-1px);
  filter: brightness(1.02);
}

.spx-btn--ghost:hover{
  border-color: rgba(255,255,255,.26) !important;
}

/* Hide TOC (TagDiv / Newspaper) */
.spx .td_toc_wrap,
.spx .td-toc-wrap,
.spx .tdb_toc,
.spx .tdb_toc_wrap,
.spx .tdb-toc,
.spx .tdb-toc-wrap,
.spx .ez-toc-container,
.spx nav.toc,
.spx .toc_container,
.spx #toc_container{
  display: none !important;
}

@media (max-width: 1024px){
  .spx-h1{ font-size: var(--spx-h1-t,32px); }
  .spx-hero__card{ padding: 30px 24px 16px; }
  .spx-hero__actions{ justify-content:center; }
}

@media (max-width: 560px){
  .spx{ padding-bottom: 2px; }
  .spx-h1{ font-size: var(--spx-h1-m,26px); }
  .spx-lead{ font-size: var(--spx-lead-m,14.6px); }
  .spx-lead{ font-size: var(--spx-lead-m,14.6px); }
  .spx-btn{ width:100%; min-width:0; }
}
/* END SPX Pages Hero */
