/* V287 · 특별예배 mobile/desktop card */
@media (min-width: 901px){
  .sermon-service-grid{grid-template-columns:repeat(5,minmax(0,1fr));}
  body.v72-home #word .word-tabs-live{
    grid-template-columns:repeat(6,minmax(0,1fr))!important;
  }
}

.sermon-service-grid button[data-service="special"]{
  border-color:rgba(196,142,66,.35);
  background-image:linear-gradient(180deg,rgba(25,62,72,.18),rgba(25,43,47,.58)),url('assets/worship-service-special-v287.jpg');
  background-position:center;
  background-size:cover;
  color:#fff;
}

.sermon-service-grid button[data-service="special"][aria-selected="true"]{
  color:#fff;
  border-color:transparent;
  background-image:linear-gradient(180deg,rgba(25,62,72,.12),rgba(25,43,47,.54)),url('assets/worship-service-special-v287.jpg');
}

/* The archive posters use image-only tiles for the first four services. The
   special tile has a clean generated background, so its exact label remains
   live text for accessibility and crisp rendering on every screen. */
body.md-body .sermon-service-grid button[data-service="special"]{
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:3px!important;
  padding:12px!important;
  text-align:center!important;
}
body.md-body .sermon-service-grid button[data-service="special"]>small,
body.md-body .sermon-service-grid button[data-service="special"]>strong,
body.md-body .sermon-service-grid button[data-service="special"]>span,
body.md-body .sermon-service-grid button[data-service="special"]>b{
  position:static!important;
  width:auto!important;
  height:auto!important;
  margin:0!important;
  padding:0!important;
  overflow:visible!important;
  clip:auto!important;
  white-space:normal!important;
  border:0!important;
  color:#fff!important;
  visibility:visible!important;
  text-shadow:0 2px 10px rgba(0,0,0,.45)!important;
}
body.md-body .sermon-service-grid button[data-service="special"]>small{
  font-size:9px!important;
  letter-spacing:.13em!important;
  opacity:.82!important;
}
body.md-body .sermon-service-grid button[data-service="special"]>strong{
  font-size:19px!important;
  line-height:1.18!important;
  letter-spacing:-.07em!important;
}
body.md-body .sermon-service-grid button[data-service="special"]>span{
  font-size:11px!important;
  opacity:.86!important;
}
body.md-body .sermon-service-grid button[data-service="special"]>b{
  position:absolute!important;
  right:10px!important;
  bottom:9px!important;
  width:24px!important;
  height:24px!important;
  border:1px solid rgba(255,255,255,.55)!important;
  border-radius:50%!important;
  font-size:15px!important;
  line-height:22px!important;
}

@media (max-width:900px){
  /* The home page's approved four-card artwork is a fixed canvas. Extend it
     by one row so the new special card has the same width and rhythm. */
  .mobile-home-editorial .me-worship>.me-worship-menu{
    height:61.65vw!important;
    overflow:visible!important;
  }
  .mobile-home-editorial .me-worship{
    min-height:calc(208.5vw + 72px)!important;
  }
  .mobile-home-editorial .me-worship>.me-worship-menu>.service-special{
    left:0!important;
    top:calc(100% + 12px)!important;
    width:50%!important;
    height:50%!important;
    min-height:0!important;
    display:flex!important;
    background-image:linear-gradient(180deg,rgba(25,62,72,.12),rgba(25,43,47,.58)),url('assets/worship-service-special-v287.jpg')!important;
    background-position:center!important;
    background-size:cover!important;
    background-repeat:no-repeat!important;
    color:#fff!important;
    align-items:center!important;
    justify-content:center!important;
    text-align:center!important;
    border-radius:17px!important;
    box-shadow:0 10px 20px rgba(20,59,72,.12)!important;
  }
  .mobile-home-editorial .me-worship-menu .service-special{
    background-image:linear-gradient(180deg,rgba(25,62,72,.12),rgba(25,43,47,.58)),url('assets/worship-service-special-v287.jpg')!important;
    background-position:center!important;
    background-size:cover!important;
    color:#fff!important;
    align-items:center!important;
    justify-content:center!important;
    text-align:center!important;
  }
  .mobile-home-editorial .me-worship>.me-worship-menu>.service-special>*{
    visibility:visible!important;
    position:static!important;
    width:auto!important;
    height:auto!important;
    margin:0!important;
    padding:0!important;
    overflow:visible!important;
    clip:auto!important;
    border:0!important;
    color:#fff!important;
    text-shadow:0 2px 9px rgba(0,0,0,.42)!important;
  }
  .mobile-home-editorial .me-worship>.me-worship-menu>.service-special small{
    display:block!important;
    font-size:9px!important;
    letter-spacing:.13em!important;
    opacity:.84!important;
  }
  .mobile-home-editorial .me-worship>.me-worship-menu>.service-special .me-service-glyph{
    display:block!important;
    width:42px!important;
    height:42px!important;
    margin:2px 0 5px!important;
    background:transparent!important;
  }
  .mobile-home-editorial .me-worship>.me-worship-menu>.service-special .me-service-glyph svg{
    width:42px!important;
    height:42px!important;
    stroke:#fff!important;
    stroke-width:1.45!important;
  }
  .mobile-home-editorial .me-worship>.me-worship-menu>.service-special strong{
    display:block!important;
    font-size:18px!important;
    line-height:1.1!important;
    letter-spacing:-.07em!important;
    font-weight:700!important;
    white-space:nowrap!important;
  }
  .mobile-home-editorial .me-worship>.me-worship-menu>.service-special b{
    display:grid!important;
    place-items:center!important;
    position:absolute!important;
    right:11px!important;
    bottom:10px!important;
    width:22px!important;
    height:22px!important;
    border:1px solid rgba(255,255,255,.55)!important;
    border-radius:50%!important;
    font-size:13px!important;
    line-height:1!important;
  }
}

/* The homepage has a later, high-specificity canvas rule that deliberately
   hides the original four image tiles. Give the fifth tile the same priority
   so it remains visible after that legacy rule runs. */
@media (max-width:900px){
  body.v72-home .mobile-home-editorial .me-worship > .me-worship-menu > a.service-special{
    left:0!important;
    top:calc(100% + 12px)!important;
    right:auto!important;
    bottom:auto!important;
    width:50%!important;
    height:50%!important;
    min-height:0!important;
    display:flex!important;
    position:absolute!important;
    opacity:1!important;
    transform:none!important;
    visibility:visible!important;
    overflow:hidden!important;
    color:#fff!important;
    background-color:#996d3d!important;
    background-image:linear-gradient(180deg,rgba(25,62,72,.12),rgba(25,43,47,.58)),url('assets/worship-service-special-v287.jpg')!important;
    background-position:center!important;
    background-size:cover!important;
    background-repeat:no-repeat!important;
    border:0!important;
    border-radius:17px!important;
    box-shadow:0 10px 20px rgba(20,59,72,.12)!important;
  }
  body.v72-home .mobile-home-editorial .me-worship > .me-worship-menu > a.service-special > *{
    visibility:visible!important;
    position:static!important;
    display:block!important;
    opacity:1!important;
    width:auto!important;
    height:auto!important;
    margin:0!important;
    padding:0!important;
    overflow:visible!important;
    clip:auto!important;
    color:#fff!important;
    background:transparent!important;
    text-shadow:0 2px 9px rgba(0,0,0,.42)!important;
  }
  body.v72-home .mobile-home-editorial .me-worship > .me-worship-menu > a.service-special .me-service-glyph{
    display:block!important;
    width:42px!important;
    height:42px!important;
    margin:2px 0 5px!important;
  }
  body.v72-home .mobile-home-editorial .me-worship > .me-worship-menu > a.service-special .me-service-glyph svg{
    display:block!important;
    width:42px!important;
    height:42px!important;
    stroke:#fff!important;
  }
  body.v72-home .mobile-home-editorial .me-worship > .me-worship-menu > a.service-special strong{
    font-size:18px!important;
    line-height:1.1!important;
    letter-spacing:-.07em!important;
    font-weight:700!important;
    white-space:nowrap!important;
  }
  body.v72-home .mobile-home-editorial .me-worship > .me-worship-menu > a.service-special b{
    display:grid!important;
    position:absolute!important;
    right:11px!important;
    bottom:10px!important;
    width:22px!important;
    height:22px!important;
    place-items:center!important;
    border:1px solid rgba(255,255,255,.55)!important;
    border-radius:50%!important;
    font-size:13px!important;
  }
}
