
/* JoyShare mobile detail-page overflow fix - 2026-10-09 */
body.single-joyshare_event .single-update.reveal-on-scroll{
  opacity:1 !important;
  transform:none !important;
}

@media (max-width: 620px){
  *,
  *::before,
  *::after{
    box-sizing:border-box !important;
  }

  html,
  body{
    width:100% !important;
    max-width:100% !important;
    overflow-x:hidden !important;
  }

  .site-header,
  .priority-strip,
  .priority-inner,
  .main-nav,
  .page-hero,
  .single-update,
  .site-footer{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    box-sizing:border-box !important;
  }

  .priority-inner{
    padding:5px 8px !important;
    display:block !important;
  }

  .priority-actions{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    display:grid !important;
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    gap:4px !important;
    box-sizing:border-box !important;
  }

  .priority-link{
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    padding:6px 4px !important;
    font-size:10.5px !important;
    line-height:1.1 !important;
    white-space:nowrap !important;
    box-sizing:border-box !important;
  }

  .page-hero{
    padding:34px 0 30px !important;
  }

  .wrap,
  .page-hero .wrap,
  .single-update .wrap,
  .single-update-layout{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    padding-left:20px !important;
    padding-right:20px !important;
    box-sizing:border-box !important;
  }

  .page-hero h1{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    font-size:28px !important;
    line-height:1.14 !important;
    letter-spacing:0 !important;
    white-space:normal !important;
    overflow-wrap:anywhere !important;
    word-break:normal !important;
    box-sizing:border-box !important;
  }

  .event-meta{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    display:flex !important;
    flex-direction:column !important;
    align-items:flex-start !important;
    gap:8px !important;
  }

  .event-meta span{
    width:auto !important;
    max-width:100% !important;
    min-width:0 !important;
    white-space:normal !important;
    overflow-wrap:anywhere !important;
    word-break:normal !important;
    box-sizing:border-box !important;
  }

  .single-update{
    padding-top:36px !important;
    padding-bottom:72px !important;
  }

  body.single-joyshare_event .single-update.reveal-on-scroll{
    opacity:1 !important;
    transform:none !important;
    transition:none !important;
  }

  .single-update-main,
  .single-update-sidebar,
  .single-update-content{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    box-sizing:border-box !important;
  }

  .single-update-photo{
    width:100% !important;
    min-height:0 !important;
    aspect-ratio:16/9 !important;
    margin-bottom:22px !important;
  }

  .single-update-photo img{
    width:100% !important;
    height:100% !important;
    min-height:0 !important;
    object-fit:cover !important;
  }

  .single-update-content{
    padding:24px 20px !important;
  }

  .single-update-content,
  .single-update-content p,
  .single-update-content li,
  .single-update-sidebar{
    overflow-wrap:anywhere !important;
    word-break:normal !important;
  }
}

@media (max-width:390px){
  .page-hero h1{
    font-size:26px !important;
  }

  .priority-link{
    font-size:10px !important;
  }

  .wrap,
  .page-hero .wrap,
  .single-update .wrap,
  .single-update-layout{
    padding-left:16px !important;
    padding-right:16px !important;
  }
}

/* Paired English and Chinese community event pages. */
.event-language-switch{
  display:flex;
  align-items:center;
  gap:24px;
  margin:18px 0 22px;
  border-bottom:1px solid var(--line);
}
.event-language-switch a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:8px 2px;
  border-bottom:2px solid transparent;
  color:var(--ink-soft);
  font-family:var(--body-font);
  font-size:15px;
  font-weight:600;
  line-height:1.4;
  text-decoration:none;
}
.event-language-switch a:hover,
.event-language-switch a[aria-current="page"]{
  color:var(--forest);
  border-bottom-color:var(--forest);
}
.event-language-switch a.is-current{
  color:var(--forest);
  border-bottom-color:var(--forest);
}
.joyshare-chinese-event h1,
.joyshare-chinese-event h2,
.joyshare-chinese-event h3{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei","PingFang SC",sans-serif;
  line-height:1.4;
}
.joyshare-chinese-event .prose h2{
  margin:32px 0 14px;
  font-size:24px;
}
.joyshare-chinese-event .event-chinese-tagline{
  margin-bottom:26px;
}
.joyshare-chinese-event .event-chinese-tagline strong{
  color:var(--forest);
}
.joyshare-chinese-event .event-article-list{
  padding-left:22px;
  margin:0 0 24px;
  list-style:disc;
  color:var(--ink-soft);
}
.joyshare-chinese-event .event-article-list li{
  margin-bottom:10px;
}
.joyshare-chinese-event .prose a{
  color:var(--forest);
  text-decoration:underline;
  text-underline-offset:3px;
  overflow-wrap:anywhere;
}
body.page-id-209 .about .wrap.prose{
  display:block;
  max-width:940px;
}
body.page-id-209 .about{
  padding:54px 0 86px;
  opacity:1 !important;
  transform:none !important;
}
body.page-id-209 .prose h2{
  margin:32px 0 14px;
  font-size:24px;
}
body.page-id-209 .chinese-event-cover{
  margin:0 0 32px;
}
body.page-id-209 .chinese-event-cover img{
  width:100%;
  height:auto;
  border-radius:8px;
}
body.page-id-209 .prose a[href^="tel:"],
body.page-id-209 .prose a[href^="mailto:"]{
  color:var(--forest);
  text-decoration:underline;
  text-underline-offset:3px;
  overflow-wrap:anywhere;
}
body.page-id-209 .page-hero h1{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei","PingFang SC",sans-serif;
  line-height:1.4;
}
@media(max-width:620px){
  body.page-id-209 .about{padding:30px 0 58px;}
  body.page-id-209 .prose h2{font-size:22px;}
}


/* JoyShare: official Champion Night nomination poster, 2026-11 */
#cn-page .cn-hero .cn-hero-art,
#joyshare-champion-feature .jcf-art {
  inset: 24px max(28px, calc((100% - 1200px) / 2)) 24px auto !important;
  width: min(40%, 500px); height: auto !important;
  mask-image: none !important; -webkit-mask-image: none !important;
  background: url('https://joysharefoundation.org/wp-content/uploads/2026/11/056ef2bbbab3bd0504f2a5fb03b9cc74.png') center / contain no-repeat;
}
#cn-page .cn-hero .cn-hero-art img,
#joyshare-champion-feature .jcf-art img { display: none !important; }
@media (min-width: 781px) {
  #joyshare-champion-feature .jcf-inner { min-height: 580px; }
  #cn-page .cn-hero .cn-hero-copy { max-width: min(560px, 51%); }
}
@media (max-width: 780px) {
  #cn-page .cn-hero, #joyshare-champion-feature { display: flex; flex-direction: column; align-items: center; min-height: 0; }
  #cn-page .cn-hero .cn-inner, #joyshare-champion-feature .jcf-inner { order: 0; min-height: 0; padding-block: 30px 24px !important; }
  #cn-page .cn-hero .cn-hero-art, #joyshare-champion-feature .jcf-art {
    position: relative; inset: auto !important; order: 1; z-index: 0; flex: none;
    width: min(340px, calc(100% - 36px)); aspect-ratio: 2 / 3; margin: 0 auto 28px;
  }
}
/* End JoyShare nomination poster */

/* Champion Night closing invitation: readable on the dark band. */
#cn-page .cn-end{background:#113c2d;color:#fff;padding:52px 0}
#cn-page .cn-end .cn-inner>p{color:#fff!important;font-family:Arial,"Microsoft YaHei","PingFang SC",sans-serif;font-size:32px;font-weight:700;line-height:1.55;letter-spacing:0;opacity:1;max-width:760px;min-width:0;text-wrap:pretty}
#cn-page .cn-end .cn-cta{font-size:17px;font-weight:700;white-space:normal;text-align:center}
@media(max-width:780px){#cn-page .cn-end{padding:36px 0}#cn-page .cn-end .cn-inner>p{font-size:26px;line-height:1.6}#cn-page .cn-end .cn-inner{gap:26px}}

/* Champion Night readability pass: scoped to the bilingual event pages. */
#cn-page .cn-breadcrumb,#cn-page .cn-lang,#cn-page .cn-kicker,#cn-page .cn-meta-label,#cn-page .cn-meta-note,#cn-page .cn-nav a,#cn-page .cn-nav b,#cn-page .cn-category-title,#cn-page .cn-poster figcaption,#cn-page .cn-schedule dt,#cn-page .cn-greeting time,#cn-page .cn-support-grid span{font-size:15px!important;line-height:1.6!important}
#cn-page .cn-breadcrumb,#cn-page .cn-kicker,#cn-page .cn-meta-label,#cn-page .cn-meta-note,#cn-page .cn-poster figcaption,#cn-page .cn-schedule dt,#cn-page .cn-greeting time{color:#43594b!important}
#cn-page .cn-category p,#cn-page .cn-small,#cn-page .cn-note,#cn-page .cn-time p,#cn-page .cn-upcoming p{font-size:16px!important;line-height:1.75!important;color:#43594b!important}
#cn-page .cn-number,#cn-page .cn-nav b{color:#76591d!important;font-weight:600}
#cn-page .cn-hero .cn-kicker{color:#f3d790!important}
#cn-page .cn-hero .cn-hero-small{font-size:16px!important;color:#e4eee5!important;line-height:1.7}
#cn-page .cn-hero .cn-hero-subtitle{font-size:21px!important;color:#fff!important}
#cn-page .cn-finalists .cn-kicker{color:#f3d790!important}
#cn-page .cn-finalists .cn-summary,#cn-page .cn-finalists .cn-benefit p,#cn-page .cn-finalists .cn-small{color:#e4eee5!important;font-size:17px!important;line-height:1.75!important}
#cn-page .cn-cta,#cn-page .cn-text-link,#cn-page .cn-contact a{font-size:16px!important;line-height:1.6!important}
#cn-page .cn-text-link{white-space:normal;overflow-wrap:anywhere}
#cn-page .cn-contact a{min-height:44px}
#cn-page .cn-support-grid span{color:#43594b!important}
#cn-page .cn-judge-grid p{font-size:17px!important;color:#43594b!important}
#cn-page .cn-detail,#cn-page .cn-detail p,#cn-page .cn-detail li{font-size:17px;line-height:1.8;color:#43594b}
#cn-page .cn-end .cn-inner>p{text-wrap:balance}
body:has(#cn-page) .site-footer h4{font-size:16px!important;font-weight:700;color:#fff}
body:has(#cn-page) .site-footer .footer-contact-label{font-size:15px!important;color:#ffd28e}
body:has(#cn-page) .site-footer p,body:has(#cn-page) .site-footer address,body:has(#cn-page) .site-footer .footer-link-list a,body:has(#cn-page) .site-footer .footer-contact-block>a{font-size:16px!important;line-height:1.75!important;color:#eef5ea!important}
body:has(#cn-page) .site-footer .b2,body:has(#cn-page) .site-footer .footer-purpose-strip span,body:has(#cn-page) .site-footer .footer-bottom span{font-size:15px!important;line-height:1.7!important;color:#e3eddd!important}
body:has(#cn-page) .site-footer .footer-inline-link{font-size:16px!important;color:#ffd28e}
body:has(#cn-page) .site-footer .footer-contact-block>a{overflow-wrap:anywhere}
body:has(#cn-page) .priority-link{font-size:14px!important;min-height:36px}
@media(max-width:780px){#cn-page .cn-hero .cn-hero-subtitle{font-size:18px!important}#cn-page .cn-topbar .cn-inner{flex-wrap:wrap;padding-block:10px;gap:4px 16px}#cn-page .cn-breadcrumb{max-width:none;flex:1 1 200px}#cn-page .cn-lang{margin-left:auto}#cn-page .cn-category h3{overflow-wrap:anywhere}#cn-page .cn-schedule>div{grid-template-columns:90px minmax(0,1fr)}body:has(#cn-page) .priority-link{font-size:13px!important}}
