/* Minimal optional language control. Korean website layout is left unchanged. */
.site-header .nav>.nav-language{
  appearance:none;
  background:transparent;
  border:0;
  margin:0;
  padding:2px 3px;
  font:inherit;
  font-size:11px;
  font-weight:800;
  letter-spacing:.05em;
  color:#866a38;
  line-height:1.4;
  white-space:nowrap;
  cursor:pointer;
}
.site-header .nav>.nav-language:hover,
.site-header .nav>.nav-language:focus-visible,
.site-header .nav>.nav-language[aria-pressed="true"]{
  color:#375b4b;
  text-decoration:underline;
  text-underline-offset:4px;
}
.language-choice{
  box-sizing:border-box;
  position:fixed;
  z-index:10001;
  inset:auto 0 0;
  padding:17px max(20px,calc((100vw - 1320px)/2)) calc(17px + env(safe-area-inset-bottom,0px));
  background:#f7f7f2;
  border-top:2px solid #c6a469;
  color:#173f33;
  box-shadow:0 -12px 38px rgba(7,28,24,.14);
}
.language-choice[hidden]{display:none!important}
.language-choice-inner{display:flex;align-items:center;justify-content:space-between;gap:30px}
.language-choice-text{flex:1;min-width:0}
.language-choice-eyebrow{font-size:10px;color:#866a38;font-weight:800;letter-spacing:.1em;display:block}
.language-choice-text strong{display:block;font-size:17px;line-height:1.35;margin-top:3px}
.language-choice-text p{font-size:13px;line-height:1.5;margin:5px 0;color:#284f3d}
.language-choice-text small{display:block;color:#647f6d;font-size:11px}
.language-choice-buttons{display:flex;align-items:center;gap:8px;flex:none}
.language-choice-buttons button{
  appearance:none;
  min-height:45px;
  border:1px solid #173f33;
  font:inherit;
  font-weight:700;
  font-size:12px;
  padding:9px 15px;
  cursor:pointer;
}
#languageChoiceKorean{background:transparent;color:#173f33}
#languageChoiceEnglish{background:#173f33;color:#fff}
#languageChoiceDismiss{
  width:37px;min-height:37px;padding:0;background:transparent;
  border-color:#d5ded4;color:#173f33;font-size:21px;font-weight:400;
}
.language-choice-buttons button:focus-visible{outline:3px solid #c6a469;outline-offset:3px}
@media(min-width:1101px) and (max-width:1450px){
  .site-header .nav>.nav-language{font-size:10px;padding:0}
}
@media(max-width:1100px){
  .site-header .nav>.nav-language{
    display:block;width:100%;text-align:left;font-size:14px;min-height:44px;
    padding:11px;border-bottom:1px solid #dae3d9;
  }
}
@media(max-width:800px){
  .language-choice{padding:14px 18px calc(14px + env(safe-area-inset-bottom,0px))}
  .language-choice-inner{flex-direction:column;align-items:stretch;gap:12px}
  .language-choice-text strong{font-size:16px}
  .language-choice-text p{font-size:13px}
  .language-choice-buttons{justify-content:stretch}
  #languageChoiceKorean,#languageChoiceEnglish{flex:1;min-width:0}
  .language-choice-buttons button{padding:10px 8px;font-size:11px}
}
@media(max-width:380px){
  .language-choice-text p{font-size:12px}
  .language-choice-text small{font-size:10px}
}

/* English-only presentation: retain the Korean bilingual design untouched.
   The locale module sets html[lang] only after translation succeeds. */
html[lang="en"] .brand small,
html[lang="en"] .motto-content > p,
html[lang="en"] .vision .enline,
html[lang="en"] .pastor-copy > .micro,
html[lang="en"] .worship-group-title > span,
html[lang="en"] .online-group .group-title > span,
html[lang="en"] #givingDialog .giving-dialog-kicker,
html[lang="en"] .mission-orbit .node-en,
html[lang="en"] .mission-orbit > text[y="341"],
html[lang="en"] .mission-steps li > span {
  display: none !important;
}
html[lang="en"] .motto-content h3 { margin-bottom: 26px; }
html[lang="en"] .pastor-copy h3 { margin-top: 0; }
html[lang="en"] .mission-orbit .node-ko {
  transform: translateY(5px);
  dominant-baseline: middle;
  font-size: 15px;
}
html[lang="en"] .mission-orbit > text[y="286"],
html[lang="en"] .mission-orbit > text[y="313"] {
  transform: translateY(7px);
}
html[lang="en"] .mission-steps li:not(.back-to-first) > b {
  padding-right: 16px;
  overflow-wrap: anywhere;
}

html[lang="en"] .display,
html[lang="en"] .hero h1,
html[lang="en"] .motto-content h3 {
  white-space: pre-line;
}

/* English multiline translations, including worship status and SVG fallback. */
html[lang="en"] #worship .service-meta strong { white-space: pre-line; }
html[lang="en"] .mission-orbit .locale-svg-multiline-source { display: none !important; }


/* English responsive cards and desktop navigation. Korean layout is unchanged. */
@media (min-width:1101px){
  html[lang="en"] .site-header .header-inner{gap:clamp(10px,1.3vw,24px)}
  html[lang="en"] .site-header .nav{gap:clamp(7px,.85vw,16px);min-width:0}
  html[lang="en"] .site-header .nav>a:not(.nav-visit):not(.nav-live),
  html[lang="en"] .site-header .nav>.nav-interpret{
    white-space:normal;text-align:center;line-height:1.3;
    max-width:7.5ch;min-width:min-content;overflow-wrap:normal;
    font-size:clamp(11px,.85vw,13px);
  }
  html[lang="en"] .site-header .nav>.nav-interpret{display:block;flex:0 1 auto;max-width:14ch}
  html[lang="en"] .site-header .brand strong{max-width:24ch}
  html[lang="en"] .site-header .nav-visit{flex-shrink:0}
}

/* Let content establish the minimum height; retain full-screen sections when it fits. */
html[lang="en"] #leaders.screen,
html[lang="en"] #online.screen{height:auto;min-height:100svh;overflow:visible}
html[lang="en"] #leaders>.panel-wrap,
html[lang="en"] #online>.panel-wrap{height:auto;min-height:inherit;box-sizing:border-box}
html[lang="en"] #leaders .leaders-grid{height:auto;min-height:0}
html[lang="en"] #leaders .team-cards{grid-template-rows:repeat(2,minmax(150px,1fr));min-height:0}
html[lang="en"] #leaders .pastor-card,
html[lang="en"] #leaders .team-card{grid-template-columns:minmax(0,41fr) minmax(0,59fr);background:#fff;align-items:stretch}
html[lang="en"] #leaders .pastor-portrait{position:relative;min-height:0;background:#fff}
html[lang="en"] #leaders .pastor-portrait::before{display:none}
html[lang="en"] #leaders .pastor-portrait img,
html[lang="en"] #leaders .team-card>img{
  width:100%;height:100%;min-width:0;min-height:0;
  object-fit:contain;object-position:center bottom;background:#fff;
}
html[lang="en"] #leaders .team-card>img{aspect-ratio:3/4}
html[lang="en"] #leaders .pastor-copy,
html[lang="en"] #leaders .team-card>div{min-width:0;min-height:0;padding:clamp(10px,1.3vw,22px);overflow-wrap:anywhere}
html[lang="en"] #leaders .team-card h3{font-size:clamp(13px,1.25vw,18px);line-height:1.35}
html[lang="en"] #leaders .team-card p,
html[lang="en"] #leaders .phone-link{font-size:clamp(11px,.9vw,13px);line-height:1.45}
html[lang="en"] #leaders .pastor-copy h3{font-size:clamp(17px,2vw,28px);line-height:1.35}
html[lang="en"] #leaders .pastor-copy blockquote{word-break:normal;overflow-wrap:anywhere;font-size:clamp(13px,1.25vw,19px);line-height:1.5}

html[lang="en"] #online .online-rows{height:auto;grid-template-rows:auto auto}
html[lang="en"] #online .video-grid{height:auto;align-items:stretch}
html[lang="en"] #online .video-card img{flex:none;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover}
html[lang="en"] #online .video-card span{
  display:block;flex:1 0 auto;overflow:visible;-webkit-line-clamp:unset;
  font-size:clamp(10px,.85vw,13px);line-height:1.45;
  padding:clamp(6px,.7vw,10px);overflow-wrap:anywhere;white-space:normal;
}
@media (max-width:1100px){
  html[lang="en"] #leaders.screen,html[lang="en"] #online.screen{min-height:0}
}
@media (max-width:560px){
  html[lang="en"] #leaders .team-cards{grid-template-rows:repeat(4,minmax(145px,auto))}
  html[lang="en"] #leaders .team-card{grid-template-columns:minmax(0,35fr) minmax(0,65fr)}
  html[lang="en"] #leaders .team-card h3{font-size:16px}
}

/* Korean online worship: match the proven English card sizing without changing other sections. */
html[lang="ko"] #online.screen{height:auto;min-height:100svh;overflow:visible}
html[lang="ko"] #online>.panel-wrap{height:auto;min-height:inherit;box-sizing:border-box}
html[lang="ko"] #online .online-rows{height:auto;grid-template-rows:auto auto}
html[lang="ko"] #online .video-grid{height:auto;align-items:stretch}
html[lang="ko"] #online .video-card img{flex:none;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover}
html[lang="ko"] #online .video-card span{
  display:block;flex:1 0 auto;overflow:visible;-webkit-line-clamp:unset;
  font-size:clamp(10px,.85vw,13px);line-height:1.45;
  padding:clamp(6px,.7vw,10px);overflow-wrap:anywhere;white-space:normal;
}
@media(max-width:1100px){
  html[lang="ko"] #online.screen{min-height:0}
}
