/*
 * 영문 페이지 전용 보정 (body.eng)
 * - 국문 CSS 는 한글에 맞춘 값(자간 -0.5px, 어절 단위 줄바꿈)이라 영문에서는 되돌린다.
 * - 영문 페이지는 <html lang="en"> + <body class="eng"> 로 구분한다.
 */
body.eng{
  letter-spacing:0;
  word-break:normal;
  overflow-wrap:break-word;
  hyphens:manual;
}
body.eng *{ word-break:normal; }
body.eng .nav-links a{ letter-spacing:0; }
body.eng .page-hero-title,
body.eng .intro-title{ letter-spacing:-0.01em; line-height:1.2; }
body.eng .side-nav-link{ letter-spacing:0; }
body.eng .footer-links a,
body.eng .copyright p{ letter-spacing:0; }

/* 영문 푸터: 주소/문의/저작권 문구가 길어서 모바일에서 화면 밖으로 나가지 않게 줄바꿈 허용 */
body.eng .footer-center,
body.eng .footer-bottom{ max-width:100%; }
body.eng .addr,
body.eng .copyright{ max-width:100%; min-width:0; }
body.eng .addr p,
body.eng .copyright p{ overflow-wrap:anywhere; }
@media (max-width:767px){
  body.eng .addr p,
  body.eng .copyright p{ text-align:center; }
}

/* 영문 로고: 국문보다 가로로 긴 비율(약 6.5:1)이라 폭은 유지하고 세로 가운데 정렬 */
body.eng .logo,
body.eng .gnb-logo{ display:flex; align-items:center; }
body.eng .logo img,
body.eng .gnb-logo img{ width:100%; height:auto; }
@media (min-width:1025px){
  body.eng .nav-bar .logo{ width:280px; }
}
@media (max-width:1024px){
  body.eng .nav-bar .logo{ width:230px; }
  body.eng .footer-logo .logo{ width:230px; height:auto; }
}

/* GNB 메뉴 간격: 영문 단어가 길어서 국문(좌우 45px)보다 넓게. 활성 점(.is-active)의 위치도 같은 값으로 맞춤 */
@media (min-width:1025px){
  body.eng .nav-links a{ padding-left:64px; padding-right:64px; }
  body.eng .nav-links li.is-active > a::after{ left:64px; }
  body.eng .mega-col li{ padding-left:64px; }
}
@media (min-width:1025px) and (max-width:1500px){
  body.eng .nav-links a{ padding-left:44px; padding-right:44px; }
  body.eng .nav-links li.is-active > a::after{ left:44px; }
  body.eng .mega-col li{ padding-left:44px; }
}
@media (min-width:1025px) and (max-width:1180px){
  body.eng .nav-links a{ padding-left:30px; padding-right:30px; }
  body.eng .nav-links li.is-active > a::after{ left:30px; }
  body.eng .mega-col li{ padding-left:30px; }
}

/* 설립 목적 히어로: 영문 설명문이 국문보다 길어서 폭을 제한하고 가운데 정렬 */
body.eng .purpose-top-desc{ max-width:900px; margin-left:auto; margin-right:auto; padding:0 20px; box-sizing:border-box; }
body.eng .purpose-top-last-text{ max-width:900px; margin-left:auto; margin-right:auto; padding:0 20px; box-sizing:border-box; }
body.eng .purpose-top-badge{ max-width:min(900px,92%); }
body.eng .purpose-top-title{ font-size:clamp(30px,3.7vw,60px); line-height:1.2; }

/* 하단 배너: 문구는 왼쪽, 버튼은 오른쪽 (PC). 태블릿 이하는 기존처럼 줄바꿈 */
@media (min-width:1025px){
  body.eng .closing-inner{ flex-wrap:nowrap; align-items:center; justify-content:space-between; }
  body.eng .closing-actions{ margin-left:auto; }
}

/* ---------- 위원 구성(영문) ---------- */
/* 위원장 배너: 이미지의 한글 문구를 지우고 영문 문구를 HTML 로 얹는다. 글자 크기는 배너 너비에 비례(cqw) */
body.eng .chair-photo{ container-type:inline-size; }
body.eng .chair-msg{ position:absolute; left:57.3%; top:21%; width:38.5%; color:#fff; }
body.eng .chair-slogan{ font-size:2.35cqw; font-weight:700; line-height:1.35; letter-spacing:-0.01em; margin:0; }
body.eng .chair-greeting{ font-size:1.5cqw; line-height:1.55; margin:1.9cqw 0 0; }
body.eng .chair-greeting strong{ font-weight:700; }
@media (max-width:768px){
  body.eng .chair-msg{ left:8.5%; top:8%; width:84%; }
  body.eng .chair-slogan{ font-size:4.6cqw; }
  body.eng .chair-greeting{ font-size:3.4cqw; margin-top:3.4cqw; }
}
/* 영문 직함은 길어서 알약 카드가 두 줄이 될 수 있다: 높이는 최소값, 줄바꿈 허용 */
body.eng .pill-card{ height:auto; min-height:80px; word-break:normal; overflow-wrap:break-word; line-height:1.35; }
body.eng .members-note{ margin-top:40px; font-size:var(--fs-14,14px); color:#5b6572; }
body.eng .members-note a{ color:var(--btn-blue,#0166fe); text-decoration:underline; }
/* 상근 부위원장 카드: 국문은 2열 중 한 칸이라 좁으므로 영문은 한 줄 전체를 쓴다 */
body.eng .leader-row--solo{ grid-template-columns:1fr; }
body.eng .member-name{ flex-wrap:wrap; }

/* AI Action Plan (EN): non-interactive list of strategic areas */
body.eng .area-list-plain{margin-top:24px;display:grid;gap:0;border-top:1px solid #d9dee3}
body.eng .area-row{display:flex;align-items:center;gap:20px;padding:20px 8px;border-bottom:1px solid #d9dee3}
body.eng .area-num{flex:0 0 auto;font-weight:700;font-size:20px;color:#2563eb;min-width:32px}
body.eng .area-name{font-size:20px;font-weight:600;line-height:1.4;word-break:keep-all}
@media (max-width:767px){body.eng .area-row{gap:14px;padding:16px 4px}body.eng .area-num,body.eng .area-name{font-size:17px}}

/* purpose (EN): keep principle text clear of the active dot; wider Go-to buttons */
body.eng .principle-text-wrap{ padding-right:44px; }
body.eng .closing-btn{ gap:40px; padding-left:40px; }
@media (max-width:1024px){ body.eng .principle-text-wrap{ padding-right:36px; } }
@media (max-width:767px){ body.eng .closing-btn{ gap:20px; padding-left:28px; white-space:normal; } }

/* English main: intro and action-plan copy are longer than Korean, so limit line width and let it wrap naturally */
body.eng .intro-text-wrap .intro-title{ max-width:720px; margin-left:auto; margin-right:auto; }
body.eng .intro-text-wrap p{ max-width:780px; margin-left:auto; margin-right:auto; }
body.eng .plan-grid > div:first-child p{ max-width:460px; }

/* ---------- Mobile fixes (11/25 review) ---------- */
/* 1) Mobile menu: language switch at the bottom was hidden behind the browser toolbar on some phones */
@media (max-width:1024px){
  body.eng .nav-bar-mobile{ height:100vh; }
  body.eng .gnb-footer{ padding-bottom:calc(20px + env(safe-area-inset-bottom, 0px)); }
}
@supports not (height:100dvh){
  @media (max-width:1024px){ body.eng .gnb-footer{ padding-bottom:84px; } }
}
@media (max-width:768px){
  /* 2) Law cards: title pill grows with its text instead of clipping it */
  body.eng .law-mobile .law-card-title{ height:auto; min-height:40px; padding:10px 20px; line-height:1.4; }
  /* 3) Council cards: tag sits in the flow under the text, not on top of the title */
  body.eng .council-text{ flex-wrap:wrap; justify-content:flex-start; gap:8px 10px; }
  body.eng .council-tag{ position:static; white-space:normal; text-align:center; line-height:1.3; padding:4px 12px; }
  /* 4, 8) Bottom buttons: same size, wide enough for the English labels */
  body.eng .closing-inner{ padding-left:14px; padding-right:14px; }
  body.eng .closing-actions{ width:100%; }
  body.eng .closing-actions .closing-btn{ width:100%; max-width:none; height:auto; min-height:64px; box-sizing:border-box; font-size:15px; padding-left:24px; gap:10px; }
  body.eng .ai-plan-wrap .closing-btn.download{ white-space:nowrap; }
  /* 5) MI images (350px-wide files) fill the column like the Korean page */
  body.eng .mi_img_block img{ width:100%; height:auto; }
}

/* 7) AI Action Plan: sub-lists use the full column width */
body.eng .area-list-plain{ width:100%; align-self:stretch; box-sizing:border-box; }

/* 9) Post detail hero: grows with a long title, and keeps clear of the fixed header */
body.eng .write-page .page-hero{ height:auto; min-height:450px; }
body.eng .write-page .page-hero-inner{ height:auto; min-height:inherit; padding-top:110px; box-sizing:border-box; }
body.eng .write-title{ overflow-wrap:anywhere; }
@media (max-width:1180px){ body.eng .write-page .page-hero{ min-height:400px; } }
@media (max-width:1024px){ body.eng .write-page .page-hero{ min-height:370px; } }
@media (max-width:768px){
  body.eng .write-page .page-hero{ min-height:300px; }
  body.eng .write-page .page-hero-inner{ padding-top:90px; }
  body.eng .write-title{ font-size:24px; line-height:1.35; }
}

/* line breaks that only apply on phones */
body.eng .br-m{ display:none; }
/* badges: more breathing room, and two-line text stays inside the rounded shape */
body.eng .purpose-top-badge{ padding-top:8px; padding-bottom:8px; line-height:1.5; }
@media (max-width:768px){
  body.eng .br-m{ display:inline; }
  body.eng .purpose-top-badge{ padding:12px 24px; min-height:48px; border-radius:30px; text-align:center; line-height:1.55; }
}

/* English main: Action Plan buttons on one line each, same width */
@media (max-width:768px){
  body.eng .plan-actions a{ width:100%; max-width:310px; box-sizing:border-box; white-space:nowrap; }
}
body.eng .closing-btn .arrow{ flex:0 0 auto; }

/* mobile menu v2: background always covers the largest viewport (no white gaps when the browser bars hide),
   and the menu content gets bottom padding equal to the browser bars so the KOR/ENG switch stays visible */
@supports (height:100lvh){
  @media (max-width:1024px){
    body.eng .nav-bar-mobile{ height:100lvh; }
    body.eng .gnb-mobile{ box-sizing:border-box; padding-bottom:calc(100lvh - 100svh); }
  }
}
