/* DOUBLES HOME CARDS V12 - managed 2x2 hero cards */
.hero-v3 .showcase-heading{
  color:var(--text,#eaf0f7);font-size:18px;font-weight:800;
  letter-spacing:.9px;line-height:1.35;margin-bottom:16px;
  opacity:1;text-transform:uppercase;text-shadow:0 1px 2px rgba(0,0,0,.06);
}
.hero-v3 .showcase-heading[data-tone="coral"]{color:#e95a58}
.hero-v3 .showcase-heading[data-tone="white"]{color:#fff;text-shadow:0 1px 5px #0008}
.hero-v3 .showcase-grid .showcase-tile{min-height:var(--home-card-height,137px);position:relative;isolation:isolate;overflow:hidden}
.hero-v3 .showcase-tile .home-tile-copy{display:flex;flex-direction:column;align-items:flex-start;min-width:0;position:relative;z-index:2}
.hero-v3 .showcase-tile .home-tile-copy strong{font-size:var(--home-card-title-size,16px);font-weight:800;line-height:1.2;white-space:pre-line;overflow-wrap:anywhere}
.hero-v3 .showcase-tile .home-tile-copy span{font-size:var(--home-card-desc-size,11px);line-height:1.45;white-space:pre-line;overflow-wrap:anywhere}
.hero-v3 .showcase-tile .home-tile-picture,
.hero-v3 .showcase-tile .home-tile-picture img{position:absolute;inset:0;width:100%;height:100%;display:block}
.hero-v3 .showcase-tile .home-tile-picture{z-index:0;overflow:hidden}
.hero-v3 .showcase-tile .home-tile-picture img{object-fit:cover;transition:transform .3s ease}
.hero-v3 .showcase-tile.has-image{display:block;padding:0;border:1px solid rgba(255,255,255,.16);background:#1b2e48;color:white}
.hero-v3 .showcase-tile.has-image>.icon{display:none}
/* DOUBLES HOME CARDS SOFT OVERLAY V12.2 */
/* The text wrapper has its natural height; blur no longer covers half a tile. */
.hero-v3 .showcase-tile.has-image .home-tile-copy{
  position:absolute;z-index:2;left:0;right:auto;top:auto;bottom:0;
  display:flex;flex-direction:column;align-items:flex-start;
  width:max-content;max-width:min(94%,340px);min-height:0;
  justify-content:flex-end;padding:13px 16px 12px;box-sizing:border-box;
  background:transparent;
  -webkit-backdrop-filter:none;backdrop-filter:none;
  color:#fff;
}
/* A masked patch directly behind the text; no full-width bottom stripe. */
.hero-v3 .showcase-tile.has-image .home-tile-copy::before{
  content:"";position:absolute;z-index:-1;pointer-events:none;
  inset:-9px -12px -3px -5px;
  background:rgba(10,21,37,var(--home-card-shade,.67));
  -webkit-backdrop-filter:blur(var(--home-card-blur,4px));
  backdrop-filter:blur(var(--home-card-blur,4px));
  -webkit-mask-image:radial-gradient(ellipse 95% 110% at 23% 67%,#000 5%,rgba(0,0,0,.95) 37%,transparent 99%);
  mask-image:radial-gradient(ellipse 95% 110% at 23% 67%,#000 5%,rgba(0,0,0,.95) 37%,transparent 99%);
}
.hero-v3 .showcase-tile.has-image[data-text-position="top"] .home-tile-copy{
  top:0;bottom:auto;justify-content:flex-start;padding:12px 16px 13px;
}
.hero-v3 .showcase-tile.has-image[data-text-position="top"] .home-tile-copy::before{
  -webkit-mask-image:radial-gradient(ellipse 95% 110% at 23% 32%,#000 5%,rgba(0,0,0,.95) 37%,transparent 99%);
  mask-image:radial-gradient(ellipse 95% 110% at 23% 32%,#000 5%,rgba(0,0,0,.95) 37%,transparent 99%);
}
.hero-v3 .showcase-tile.has-image[data-text-align="center"] .home-tile-copy{
  left:50%;right:auto;transform:translateX(-50%);align-items:center;text-align:center;
}
.hero-v3 .showcase-tile.has-image[data-text-align="center"] .home-tile-copy::before{
  -webkit-mask-image:radial-gradient(ellipse 100% 110% at 50% 67%,#000 5%,rgba(0,0,0,.95) 37%,transparent 99%);
  mask-image:radial-gradient(ellipse 100% 110% at 50% 67%,#000 5%,rgba(0,0,0,.95) 37%,transparent 99%);
}
.hero-v3 .showcase-tile.has-image[data-text-align="right"] .home-tile-copy{
  left:auto;right:0;align-items:flex-end;text-align:right;
}
.hero-v3 .showcase-tile.has-image[data-text-align="right"] .home-tile-copy::before{
  -webkit-mask-image:radial-gradient(ellipse 95% 110% at 77% 67%,#000 5%,rgba(0,0,0,.95) 37%,transparent 99%);
  mask-image:radial-gradient(ellipse 95% 110% at 77% 67%,#000 5%,rgba(0,0,0,.95) 37%,transparent 99%);
}
.hero-v3 .showcase-tile.has-image[data-text-position="top"][data-text-align="center"] .home-tile-copy::before{
  -webkit-mask-image:radial-gradient(ellipse 100% 110% at 50% 32%,#000 5%,rgba(0,0,0,.95) 37%,transparent 99%);
  mask-image:radial-gradient(ellipse 100% 110% at 50% 32%,#000 5%,rgba(0,0,0,.95) 37%,transparent 99%);
}
.hero-v3 .showcase-tile.has-image[data-text-position="top"][data-text-align="right"] .home-tile-copy::before{
  -webkit-mask-image:radial-gradient(ellipse 95% 110% at 77% 32%,#000 5%,rgba(0,0,0,.95) 37%,transparent 99%);
  mask-image:radial-gradient(ellipse 95% 110% at 77% 32%,#000 5%,rgba(0,0,0,.95) 37%,transparent 99%);
}
.hero-v3 .showcase-tile.has-image .home-tile-copy strong{color:#fff!important;text-shadow:0 2px 7px #081526b8}
.hero-v3 .showcase-tile.has-image .home-tile-copy span{color:#e6edf8!important;opacity:1;text-shadow:0 1px 5px #091829d9;margin-top:5px}
.hero-v3 .showcase-tile .home-tile-link{position:absolute;inset:0;z-index:5;border-radius:inherit}
.hero-v3 .showcase-tile.home-is-linked{cursor:pointer;transition:border-color .2s,box-shadow .2s}
.hero-v3 .showcase-tile.home-is-linked:hover{border-color:rgba(255,122,122,.68);box-shadow:0 0 0 2px rgba(255,110,110,.25)}
.hero-v3 .showcase-tile .home-tile-link:focus-visible{outline:3px solid #ff8585;outline-offset:-3px}
@media(max-width:830px){.hero-v3 .showcase-heading{letter-spacing:.5px}}
@media(max-width:650px){
  .hero-v3 .showcase-grid .showcase-tile{min-height:clamp(112px,var(--home-card-height,137px),200px)}
  .hero-v3 .showcase-tile.has-image .home-tile-copy{padding:11px 10px 10px;max-width:96%}
  .hero-v3 .showcase-tile.has-image[data-text-position="top"] .home-tile-copy{padding:11px 10px 14px}
  .hero-v3 .showcase-tile .home-tile-copy strong{font-size:clamp(12px,var(--home-card-title-size,16px),22px)}
  .hero-v3 .showcase-tile .home-tile-copy span{font-size:clamp(10px,var(--home-card-desc-size,11px),16px)}
}
@media(prefers-reduced-motion:reduce){.hero-v3 .showcase-tile .home-tile-picture img{transition:none}}

/* DOUBLES HOME CARD ICON PICKER V12.1 */
.hero-v3 .showcase-grid .showcase-tile > svg.icon {
  width:var(--home-card-icon-size,32px);
  height:var(--home-card-icon-size,32px);
}
.hero-v3 .showcase-tile .home-tile-custom-icon{
  width:var(--home-card-icon-size,32px);
  height:var(--home-card-icon-size,32px);
  margin:0 0 10px;
  display:block;object-fit:contain;flex:0 0 auto;
  filter:drop-shadow(0 1px 4px rgba(0,0,0,.22));
}
.hero-v3 .showcase-tile.has-image .home-tile-custom-icon {
  filter:drop-shadow(0 1px 6px rgba(0,0,0,.55));
}

/* DoubleS Hero v4: seamless full-card gradient instead of blurred radial spot. */
.hero-v3 .showcase-tile.has-image .home-tile-copy::before{
 display:none!important;content:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
}
.hero-v3 .showcase-tile.has-image .home-tile-gradient{
 position:absolute;inset:0;z-index:1;pointer-events:none;
 background:linear-gradient(to bottom,transparent 10%,rgba(6,16,31,calc(var(--home-card-shade,.67)*.15)) 55%,rgba(6,16,31,var(--home-card-shade,.67)) 100%);
}
.hero-v3 .showcase-tile.has-image[data-text-position="top"][data-gradient="auto"] .home-tile-gradient,
.hero-v3 .showcase-tile.has-image[data-gradient="top"] .home-tile-gradient{
 background:linear-gradient(to top,transparent 10%,rgba(6,16,31,calc(var(--home-card-shade,.67)*.15)) 55%,rgba(6,16,31,var(--home-card-shade,.67)) 100%);
}
.hero-v3 .showcase-tile.has-image[data-gradient="bottom"] .home-tile-gradient{
 background:linear-gradient(to bottom,transparent 10%,rgba(6,16,31,calc(var(--home-card-shade,.67)*.15)) 55%,rgba(6,16,31,var(--home-card-shade,.67)) 100%);
}
.hero-v3 .showcase-tile.has-image[data-gradient="left"] .home-tile-gradient{
 background:linear-gradient(to right,transparent 10%,rgba(6,16,31,calc(var(--home-card-shade,.67)*.15)) 55%,rgba(6,16,31,var(--home-card-shade,.67)) 100%);
}
.hero-v3 .showcase-tile.has-image[data-gradient="right"] .home-tile-gradient{
 background:linear-gradient(to left,transparent 10%,rgba(6,16,31,calc(var(--home-card-shade,.67)*.15)) 55%,rgba(6,16,31,var(--home-card-shade,.67)) 100%);
}
.hero-v3 .showcase-tile.has-image[data-gradient="off"] .home-tile-gradient{display:none!important}
.hero-v3 .showcase-tile.has-image[data-text-free="1"] .home-tile-copy{
 position:absolute!important;left:clamp(9px,var(--home-text-x,12%),calc(100% - 9px))!important;
 top:clamp(9px,var(--home-text-y,85%),calc(100% - 9px))!important;
 right:auto!important;bottom:auto!important;
 transform:translate(var(--home-text-x-shift,-12%),var(--home-text-y-shift,-85%))!important;
 max-width:calc(100% - 18px);max-height:calc(100% - 18px);overflow:hidden;
}
.hero-v3 .showcase-tile.has-image .home-tile-copy strong{font-size:var(--home-card-title-size,16px)!important}
.hero-v3 .showcase-tile.has-image .home-tile-copy span{font-size:var(--home-card-desc-size,11px)!important}
@media(max-width:650px){
 .hero-v3 .showcase-tile.has-image .home-tile-copy strong{font-size:clamp(12px,var(--home-card-title-size,16px),24px)!important}
 .hero-v3 .showcase-tile.has-image .home-tile-copy span{font-size:clamp(10px,var(--home-card-desc-size,11px),17px)!important}
}

/* Light theme photo text and gradient */
.hero-v3 .showcase-tile.has-image[data-light-tone="dark"] .home-tile-copy strong{color:#14283c!important;text-shadow:0 1px 4px #ffffffc0!important}
.hero-v3 .showcase-tile.has-image[data-light-tone="dark"] .home-tile-copy span{color:#233f55!important;text-shadow:0 1px 4px #ffffffc0!important}
.hero-v3 .showcase-tile.has-image[data-light-tone="dark"][data-gradient="bottom"] .home-tile-gradient,.hero-v3 .showcase-tile.has-image[data-light-tone="dark"][data-gradient="auto"][data-text-position="bottom"] .home-tile-gradient{background:linear-gradient(to top,rgba(255,255,255,var(--home-card-shade,.67)) 0%,rgba(255,255,255,0) 100%)!important}
.hero-v3 .showcase-tile.has-image[data-light-tone="dark"][data-gradient="top"] .home-tile-gradient,.hero-v3 .showcase-tile.has-image[data-light-tone="dark"][data-gradient="auto"][data-text-position="top"] .home-tile-gradient{background:linear-gradient(to bottom,rgba(255,255,255,var(--home-card-shade,.67)) 0%,rgba(255,255,255,0) 100%)!important}
.hero-v3 .showcase-tile.has-image[data-light-tone="dark"][data-gradient="left"] .home-tile-gradient{background:linear-gradient(to right,rgba(255,255,255,var(--home-card-shade,.67)) 0%,rgba(255,255,255,0) 100%)!important}
.hero-v3 .showcase-tile.has-image[data-light-tone="dark"][data-gradient="right"] .home-tile-gradient{background:linear-gradient(to left,rgba(255,255,255,var(--home-card-shade,.67)) 0%,rgba(255,255,255,0) 100%)!important}
