/* Approved concept B: mobile-only editorial layout, shared by Korean and English. */
@media (max-width: 768px) {
  body:has(.gec-m-tabs) { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .gec-m { overflow-x: clip; }
  .gec-m .gec-m-top { min-height: 0; display: block; }
  .gec-m .gec-m-hero { padding: 36px 24px 0; background: var(--bg, #fff); color: var(--navy-900); }
  .gec-m .gec-m-hero::before, .gec-m .gec-m-hero::after { display: none; }
  .gec-m .gec-m-eyebrow { color: var(--accent); font-size: 10px; line-height: 1.5; letter-spacing: 2px; margin-bottom: 20px; }
  .gec-m .gec-m-hero h1 { font-family: Inter, Arial, sans-serif; font-size: 40px; line-height: 1.08; letter-spacing: -1.7px; color: var(--navy-900); margin: 0 0 20px; overflow-wrap: anywhere; }
  .gec-m .gec-m-hero h1 .accent { display: block; font-family: Georgia, serif; color: var(--accent); font-weight: 400; letter-spacing: -1px; }
  .gec-m .gec-m-hero p { font-size: 13px; line-height: 1.85; font-weight: 400; color: var(--ink-500); margin: 0; }
  .gec-m .gec-m-ghost { color: var(--navy-900); border: 0; border-bottom: 1px solid var(--accent); border-radius: 0; padding: 10px 0; margin-top: 14px; min-height: 46px; gap: 28px; font-size: 12px; font-weight: 600; }
  .gec-m .gec-m-ghost:hover, .gec-m .gec-m-ghost:focus { color: var(--navy-900); }
  .gec-m .gec-m-photo { margin: 26px 24px 24px; height: clamp(150px, 43vw, 250px); min-height: 0; border-radius: 2px; }
  .gec-m .gec-m-photo img { object-position: center 45%; }
  .gec-m .gec-m-stats { grid-template-columns: repeat(4,minmax(0,1fr)); margin: 0 24px; gap: 8px; padding: 22px 0; background: var(--bg, #fff); border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .gec-m .gec-m-stat { min-width: 0; padding: 0; text-align: center; }
  .gec-m .gec-m-stat .v { font-family: Inter, Arial, sans-serif; font-size: 23px; font-weight: 500; line-height: 1.1; margin-bottom: 8px; }
  .gec-m .gec-m-stat .l { font-size: 10px; line-height: 1.5; overflow-wrap: anywhere; }
  .gec-m .gec-m-sec { padding: 32px 24px; }
  .gec-m .gec-m-label { font-size: 10px; line-height: 1.5; letter-spacing: 2px; margin-bottom: 8px; }
  .gec-m .gec-m-heading { font-size: 22px; font-weight: 600; letter-spacing: -.7px; line-height: 1.3; color: var(--navy-900); margin: 0 0 20px; }
  /* 02 BUSINESS DOMAIN - 누르면 PC 카드의 설명이 아래로 펼쳐지는 목록 */
  .gec-m .gec-m-domain { display: block; margin-bottom: 0; }
  .gec-m .gec-m-dom-item { position: relative; border-top: 1px solid var(--line); }
  .gec-m .gec-m-dom-item::after {
    content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px;
    background: var(--accent); transform: scaleX(0); transform-origin: right center;
    transition: transform .4s cubic-bezier(.4,0,.2,1);
  }
  .gec-m .gec-m-dom-head {
    display: flex; flex-direction: row; align-items: baseline; gap: 16px;
    width: 100%; min-height: 60px; padding: 18px 0;
    background: transparent; border: 0; border-radius: 0;
    font: inherit; color: inherit; text-align: left; cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .gec-m .gec-m-dom-head:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  .gec-m .gec-m-domain .n { flex: none; margin: 0; font-size: 11px; min-width: 20px; transition: color .3s ease, transform .4s cubic-bezier(.4,0,.2,1); }
  .gec-m .gec-m-domain .t { margin: 0 0 0 auto; text-align: right; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; transition: transform .4s cubic-bezier(.4,0,.2,1); }
  .gec-m .gec-m-dom-head .ic { flex: none; align-self: center; position: relative; width: 11px; height: 11px; }
  .gec-m .gec-m-dom-head .ic::before,
  .gec-m .gec-m-dom-head .ic::after {
    content: ""; position: absolute; left: 0; top: 50%;
    width: 11px; height: 1px; background: var(--ink-300);
    transition: transform .4s cubic-bezier(.4,0,.2,1), background-color .3s ease;
  }
  .gec-m .gec-m-dom-head .ic::after { transform: rotate(90deg); }
  .gec-m .gec-m-dom-body {
    max-height: 0; overflow: hidden; opacity: 0;
    transition: max-height .45s cubic-bezier(.4,0,.2,1), opacity .3s ease, padding-bottom .45s cubic-bezier(.4,0,.2,1);
  }
  .gec-m .gec-m-dom-body p { margin: 0 0 0 36px; font-size: 13px; line-height: 1.75; color: var(--ink-500); overflow-wrap: anywhere; }
  .gec-m .gec-m-dom-item.is-open::after { transform: scaleX(1); }
  .gec-m .gec-m-dom-item.is-open .n { color: var(--navy-900); }
  .gec-m .gec-m-dom-item.is-open .ic::before { background: var(--accent); }
  .gec-m .gec-m-dom-item.is-open .ic::after { transform: rotate(180deg); background: var(--accent); }
  .gec-m .gec-m-dom-item.is-open .gec-m-dom-body { max-height: 300px; opacity: 1; padding-bottom: 20px; }
  @media (hover: hover) {
    .gec-m .gec-m-dom-item:hover::after { transform: scaleX(1); }
    .gec-m .gec-m-dom-head:hover .n { color: var(--navy-900); transform: translateX(3px); }
    .gec-m .gec-m-dom-head:hover .t { transform: translateX(-4px); }
    .gec-m .gec-m-dom-head:hover .ic::before { background: var(--accent); }
    .gec-m .gec-m-dom-head:hover .ic::after { background: var(--accent); }
  }
  .gec-m .gec-m-dom-head:active .t { transform: translateX(-4px); }
  /* 목록 아래 '주요 사업 더 보기' - 히어로의 더 보기 버튼과 같은 모양 */
  .gec-m .gec-m-domain-more { margin: 8px 0 56px; }
  .gec-m .gec-m-domain-more .gec-m-ghost { margin-top: 0; }
  .gec-m .gec-m-partners { gap: 0; }
  /* 로고 상자는 셋 다 같은 폭 - 왼쪽 끝과 오른쪽 글자 시작점이 한 줄로 맞는다.
     로고 이미지는 여백을 잘라낸 것을 쓰고, 브랜드별 높이로 시각 크기를 맞춘다. */
  .gec-m .gec-m-partners .logo { width: 108px; height: 44px; justify-content: flex-start; }
  .gec-m .gec-m-partners .logo img { display: block; width: auto; height: auto; max-width: 100%; object-fit: contain; }
  .gec-m .gec-m-partners .logo-gec img { height: 25px; }
  .gec-m .gec-m-partners .logo-hw  img { height: 15px; }
  .gec-m .gec-m-partners .logo-mk  img { height: 14px; }
  .gec-m .gec-m-partners .role { flex: 0 1 auto; margin-left: auto; text-align: right; min-width: 0; font-size: 12px; font-weight: 400; line-height: 1.6; color: var(--ink-500); overflow-wrap: anywhere; }
  .gec-m .gec-m-partners .arw { display: none; }
  /* 03 TECHNICAL PARTNER - 02 와 같은 펼침 목록(줄 경계는 아래쪽에 둔다) */
  .gec-m .gec-m-partners .gec-m-dom-item { border-top: 0; border-bottom: 1px solid var(--line); }
  .gec-m .gec-m-partners .gec-m-dom-item:last-of-type { border-bottom: 0; }
  .gec-m .gec-m-partners .gec-m-dom-item::after { top: auto; bottom: -1px; }
  .gec-m .gec-m-partners .gec-m-dom-head { align-items: center; min-height: 76px; padding: 16px 0; gap: 18px; }
  .gec-m .gec-m-partners .gec-m-dom-body p { margin-left: 0; }
  .gec-m .gec-m-partners .gec-m-dom-item.is-open .gec-m-dom-body { max-height: 460px; }
  .gec-m .gec-m-partners .gec-m-dom-item.is-open .role { color: var(--navy-900); }
  @media (hover: hover) {
    .gec-m .gec-m-partners .gec-m-dom-head:hover .role { color: var(--navy-900); transform: translateX(-4px); }
  }
  .gec-m .gec-m-partners .role { transition: color .3s ease, transform .4s cubic-bezier(.4,0,.2,1); }
  /* 펼친 글 아래의 개별 파트너 페이지 링크 */
  /* JSP 쪽 .gec-m-partners a (테두리 상자) 가 걸리므로 여기서 전부 되돌린다 */
  .gec-m .gec-m-dom-link {
    display: inline-flex; align-items: center; gap: 10px;
    min-height: 0; margin-top: 12px; padding: 0 0 5px;
    border: 0; border-bottom: 1px solid var(--accent); border-radius: 0;
    font-size: 12px; font-weight: 500; color: var(--navy-900);
    text-decoration: none;
  }
  .gec-m .gec-m-dom-link:hover, .gec-m .gec-m-dom-link:focus { color: var(--navy-900); text-decoration: none; }
  .gec-m a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
  .gec-m-tabs { padding: 6px 6px calc(8px + env(safe-area-inset-bottom, 0px)); }
  .gec-m-tabs a { min-width: 0; min-height: 54px; justify-content: center; padding: 5px 2px; }
  .gec-m-tabs span { font-size: 10px; line-height: 1.3; text-align: center; overflow-wrap: anywhere; }
}
@media (max-width: 359px) {
  .gec-m .gec-m-hero h1 { font-size: 33px; }
  .gec-m .gec-m-stat .v { font-size: 20px; }
  .gec-m .gec-m-partners .logo { width: 88px; }
  .gec-m .gec-m-partners .logo-gec img { height: 21px; }
  .gec-m .gec-m-partners .logo-hw  img { height: 12.5px; }
  .gec-m .gec-m-partners .logo-mk  img { height: 12px; }
  .gec-m .gec-m-partners .gec-m-dom-head { gap: 12px; }
  .gec-m .gec-m-dom-head { gap: 12px; }
  .gec-m .gec-m-domain .t { font-size: 13px; }
  .gec-m .gec-m-dom-body p { margin-left: 30px; font-size: 12.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .gec-m .gec-m-dom-item::after,
  .gec-m .gec-m-domain .n,
  .gec-m .gec-m-domain .t,
  .gec-m .gec-m-dom-head .ic::before,
  .gec-m .gec-m-dom-head .ic::after,
  .gec-m .gec-m-dom-body { transition: none; }
}
