@charset "utf-8";
/* =====================================================================
   GS글로벌 · 모바일 서브 상세 타이포·간격 보정 (mobile-fix.css) v1.0
   ---------------------------------------------------------------------
   - 기준 : 모바일_서브상세_타이포간격_개선계획_v1.0 / 타이포그래피_실측_및_제안_v1.0
   - 범위 : 서브 페이지 본문(main.l-main) + 개인정보 팝업. 헤더·GNB·푸터·메인은 건드리지 않음
   - 적용 : content.css / editor-content.css 다음, 가장 마지막에 로드
            <link rel="stylesheet" href="/common/css/mobile-fix.css?v=20261111">
   - 구간 : 기존 모바일 규칙과 같은 max-width:640px (기존 레이아웃과 어긋나지 않게)
   - 우선순위 : 모든 셀렉터 앞에 "html body .l-main" 을 붙여 원본보다 한 단계 높게 지정.
               원본이 클래스 4~5개로 묶여 있는 몇 곳만 :not(#_) 로 한 단계 더 올림.
   - 되돌리기 : 이 파일 <link> 한 줄만 빼면 원래 상태로 복귀
   ===================================================================== */

@media screen and (max-width: 640px) {

  /* ---------------------------------------------------------------
     00. 토큰
     --------------------------------------------------------------- */
  :root {
    /* 크기 */
    --m-fs-h1: 22px;       /* 서브비주얼 대메뉴명 (원본 20 · 로고와 간섭 없게 22) */
    --m-fs-h2: 24px;       /* 페이지 타이틀 */
    --m-fs-h3: 20px;       /* 섹션 제목(사업문의·이사회 구성 등) */
    --m-fs-h4: 18px;       /* 정의목록 제목(사업개요·주요품목) */
    --m-fs-h5: 16px;       /* 소제목·카드 제목 */
    --m-fs-lead: 18px;     /* 리드문(초록 문장) */
    --m-fs-body: 15px;     /* 본문 */
    --m-fs-body-s: 14px;   /* 보조 본문·연혁 설명 */
    --m-fs-table: 13px;    /* 표 셀 */
    --m-fs-caption: 12px;  /* 날짜·단위·※안내 (하한) */
    --m-fs-ui: 15px;       /* 탭·버튼 */
    --m-fs-input: 16px;    /* 입력·select (iOS 자동확대 방지) */

    /* 행간 */
    --m-lh-body: 1.75;
    --m-lh-sub: 1.65;
    --m-lh-table: 1.5;
    --m-lh-title: 1.4;
    --m-lh-ui: 1.3;

    /* 간격 */
    --m-gutter: 20px;
    --m-sp-section: 56px;
    --m-sp-block: 32px;
    --m-sp-title: 16px;
    --m-sp-item: 12px;
    --m-touch: 44px;
  }

  /* ---------------------------------------------------------------
     00-1. 국문 줄바꿈 — 단어 중간에서 끊기지 않게 (예: "자/원순환", "본/격화")
           긴 URL·이메일은 칸을 넘지 않도록 break-word 로 보완
     --------------------------------------------------------------- */
  html body .l-main {
    word-break: keep-all;
    overflow-wrap: break-word;
  }

  /* ---------------------------------------------------------------
     01. 좌우 여백 통일 (15 / 25 / 29 / 35 → 20)
     --------------------------------------------------------------- */
  /* 원본 래퍼 2종: -tight(좌우 15px) / -burst(좌우 0 · 의도된 풀폭) → tight 만 20px 로 */
  html body .l-main .l-content__wrap.l-content__wrap-tight {
    padding-left: var(--m-gutter);
    padding-right: var(--m-gutter);
  }
  html body .l-main .l-content__wrap .l-content__sub-wrap {   /* 사업분야 내부 +10px 이중 여백 제거 */
    padding-left: 0;
    padding-right: 0;
  }

  /* ---------------------------------------------------------------
     02. 서브비주얼 — 제목 위계 바로잡기 (20/400 → 26/700)
     --------------------------------------------------------------- */
  html body .l-main .c-subvisual__tite {
    font-size: var(--m-fs-h1);
    font-weight: 500;                             /* 사진 위 흰 글자라 700은 무거워 보임 → 500 */
    line-height: 1.3;
    letter-spacing: -0.02em;
  }
  html body .l-main .c-subvisual__tite-desc {
    margin-top: 10px;
    padding: 0 var(--m-gutter);
    font-size: var(--m-fs-body-s);
    line-height: 1.6;
  }
  /* 서브비주얼 하단 1·2depth 셀렉트 */
  html body .l-main .m-select__label {
    font-size: var(--m-fs-body-s);
    word-break: break-all;                        /* 3depth 긴 메뉴명(기업지배구조헌장)이 칸을 밀어내지 않게 */
  }
  html body .l-main .m-select__view-list__item {
    font-size: var(--m-fs-body-s);
  }

  /* ---------------------------------------------------------------
     03. 페이지 타이틀 · 리드문 · 섹션 제목
     --------------------------------------------------------------- */
  /* 페이지 타이틀 (철강·개요·연혁…) 22/500 → 24/700 */
  html body .l-main h3.m-title__list {
    margin: 48px 0 var(--m-sp-block);
  }
  html body .l-main h3.m-title__list > .m-title__style-text,
  html body .l-main h3.m-title__list > .m-title__style-text > b {
    font-size: var(--m-fs-h2);
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.02em;
  }

  /* 리드문 (div.m-title__sub-title — 초록 문장) 18/500/1.3 → 18/600/1.5 */
  html body .l-main div.m-title__list.m-title__sub-title {
    margin: var(--m-sp-block) 0 40px;
  }
  html body .l-main div.m-title__list.m-title__sub-title .m-title__style-text {
    font-size: var(--m-fs-lead);
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: -0.01em;
  }

  /* 섹션 제목 (h4.m-title__sub-title — 사업문의·상담 및 제보·환경방침 제목) 18/500 → 20/700 */
  html body .l-main h4.m-title__list.m-title__sub-title {
    margin-top: var(--m-sp-section);
  }
  html body .l-main h4.m-title__list .m-title__style-text,
  html body .l-main h4.m-title__list .m-title__style-text b {
    font-size: var(--m-fs-h3);
    font-weight: 700;
    line-height: var(--m-lh-title);
  }

  /* 섹션 설명 (사업문의 안내 등) 14/500 → 15/400 */
  html body .l-main .m-title__style-text-desc {
    font-size: var(--m-fs-body);
    font-weight: 400;
    line-height: 1.65;
  }
  html body .l-main .m-title__desc-tit {
    font-size: var(--m-fs-h5);
    font-weight: 600;
  }

  /* ---------------------------------------------------------------
     04. 본문
     --------------------------------------------------------------- */
  html body .l-main .o-text-wrap {
    margin: var(--m-sp-block) 0;
    font-size: var(--m-fs-body);
    line-height: var(--m-lh-body);
  }
  html body .l-main .o-text-wrap p + p {
    margin-top: var(--m-sp-title);
  }
  /* 기업지배구조헌장 본문 · ESG 평가 안내 리스트 (13 → 14) */
  html body .l-main .content-box ul li,
  html body .l-main .guide-list li {
    font-size: var(--m-fs-body-s);
    line-height: var(--m-lh-sub);
  }

  /* ---------------------------------------------------------------
     05. 정의목록 typeB — 사업분야 상세 (사업개요·주요품목)
     --------------------------------------------------------------- */
  html body .l-main .m-define-wrap.m-define-wrap__typeB .m-define__tit {
    padding: 0 0 var(--m-sp-item);
    font-size: var(--m-fs-h4);
    font-weight: 700;
    line-height: var(--m-lh-title);
  }
  html body .l-main .m-define-wrap.m-define-wrap__typeB .m-define__desc {
    padding: var(--m-sp-title) 0 48px;
    font-size: var(--m-fs-body);
    line-height: var(--m-lh-body);
  }
  /* 품목 소제목 14/800 → 16/700 */
  html body .l-main .m-define__desc-tit {
    margin-bottom: 6px;
    font-size: var(--m-fs-h5);
    font-weight: 700;
    line-height: 1.5;
  }
  html body .l-main .field-product__info {
    margin-bottom: 24px;
  }
  html body .l-main .field-product__info p,
  html body .l-main .field-product__list li {
    font-size: var(--m-fs-body-s);
    line-height: var(--m-lh-sub);
  }

  /* ---------------------------------------------------------------
     06. 정의목록 typeA — 회사개요·오시는 길 (12/12 → 14/15)
     --------------------------------------------------------------- */
  html body .l-main .m-define-wrap.m-define-wrap__typeA .m-define__tit {
    padding: 16px 8px 16px 0;
    font-size: var(--m-fs-body-s);
    font-weight: 600;
    line-height: 1.5;
    word-break: keep-all;
  }
  html body .l-main .m-define-wrap.m-define-wrap__typeA .m-define__desc {
    padding: 16px 0 16px 8px;
    font-size: var(--m-fs-body);
    line-height: 1.6;
  }

  /* ---------------------------------------------------------------
     07. 탭 · 서브탭
     --------------------------------------------------------------- */
  html body .l-main .m-tab__item-text,
  html body .l-main .m-tab__itme-text {           /* 원본 클래스 오타(itme) 그대로 대응 */
    font-size: var(--m-fs-body-s);                /* 탭 3개 폭(약 110px)에 맞춰 14px */
    letter-spacing: -0.02em;
    font-weight: 500;
    line-height: var(--m-lh-ui);                  /* 1.0 → 1.3 : 2줄로 넘어가도 겹치지 않게 */
    word-break: keep-all;
  }
  html body .l-main .m-tab__itme-text {           /* 재무정보 탭: 원본 16px 유지 (기존보다 작아지지 않게, 2026-11-16) */
    font-size: 16px;
  }
  html body .l-main .m-subtab__head-item {
    font-size: var(--m-fs-body-s);
    line-height: 1.4;
  }

  /* ---------------------------------------------------------------
     08. 버튼 · 입력
     --------------------------------------------------------------- */
  html body .l-main .m-btn,
  html body .l-main button.m-btn {
    font-size: var(--m-fs-ui);                    /* button 기본값 13.33px 제거 */
  }
  html body .l-main .m-btn-wrap .m-btn .m-btn-text,
  html body .l-main .m-btn .m-btn-text {
    font-size: var(--m-fs-ui);
    font-weight: 500;
  }
  /* 작은 버튼(검색·닫기·홈페이지 바로가기) 12 → 14 */
  html body .l-main .m-btn--s .m-btn-text,
  html body .l-main .m-btn--line-gray .m-btn-text {
    font-size: var(--m-fs-body-s);
  }
  html body .l-main .m-btn-wrap {
    margin-top: 24px;
  }
  /* iOS 포커스 자동확대 방지 */
  html body .l-main select,
  html body .l-main input[type="text"],
  html body .l-main input[type="search"],
  html body .l-main input[type="email"],
  html body .l-main input[type="tel"],
  html body .l-main textarea {
    font-size: var(--m-fs-input);
  }
  html body .l-main .m-select__wrap-box__select {
    height: var(--m-touch);
    padding: 0 8px;
  }
  html body .l-main .m-top-desc__wrap-item .m-btn {
    height: var(--m-touch);
    padding: 0 16px;
  }

  /* ---------------------------------------------------------------
     09. 표 — 11px 폐기, 13px + 가로 스크롤
     --------------------------------------------------------------- */
  html body .l-main .m-table thead th {
    padding: 12px 8px;
    font-size: var(--m-fs-table);
    font-weight: 600;
    line-height: var(--m-lh-table);
  }
  html body .l-main .m-table tbody th,
  html body .l-main .m-table tbody td,
  html body .l-main .m-table tbody a {
    font-size: var(--m-fs-table);
    line-height: var(--m-lh-table);
  }
  html body .l-main .m-table tbody th,
  html body .l-main .m-table tbody td {
    padding: 12px 8px;
  }
  html body .l-main .m-table tbody th {
    font-weight: 600;                             /* 800 → 600 */
  }
  /* 모든 표 래퍼: 넘치면 페이지가 아니라 표만 가로 스크롤 */
  html body .l-main .m-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  /* 전화번호·이메일 셀은 줄바꿈 금지 (02-/2005-/5262 처럼 쪼개지는 문제) — 사업문의 표 */
  html body .l-main .m-table td:has(> a[href^="mailto"]),
  html body .l-main .m-table td:has(+ td > a[href^="mailto"]) {
    white-space: nowrap;
  }
  /* 5열 이상 표는 글자를 줄이지 않고 최소 폭 확보 (이사회·재무제표·주가 일별 등) */
  html body .l-main .m-table-wrap:has(> table tr > :nth-child(5)) > table {
    min-width: 600px;
  }
  /* 스크롤 안내 문구 (5열 이상 표 · 사업문의 표) — 표 제목(h4)이 있으면 제목 아래, 없으면 표 위 */
  html body .l-main .m-table-wrap:is(:has(> table tr > :nth-child(5)), :has(a[href^="mailto"])):not(:has(> .c-stock__tit))::before,
  html body .l-main .m-table-wrap:is(:has(> table tr > :nth-child(5)), :has(a[href^="mailto"])) > .c-stock__tit::after {
    content: "좌우로 밀어서 전체 보기 →";
    display: block;
    margin: 4px 0 8px;
    font-size: var(--m-fs-caption);
    font-weight: 400;
    color: #888;
  }
  html body .l-main .m-table-wrap:is(:has(> table tr > :nth-child(5)), :has(a[href^="mailto"]))::before,
  html body .l-main .m-table-wrap:is(:has(> table tr > :nth-child(5)), :has(a[href^="mailto"])) > .c-stock__tit,
  html body .l-main .m-table-wrap:is(:has(> table tr > :nth-child(5)), :has(a[href^="mailto"])) > .guide {
    position: sticky;                             /* 표를 밀어도 제목·안내는 제자리 */
    left: 0;
  }
  html body .l-main .m-table-wrap:is(:has(> table tr > :nth-child(5)), :has(a[href^="mailto"])) > .c-stock__tit,
  html body .l-main .m-table-wrap:is(:has(> table tr > :nth-child(5)), :has(a[href^="mailto"])) > .guide {
    max-width: calc(100vw - var(--m-gutter) * 2);
  }
  /* 표 제목 (이사회 구성 현황 · 제75기 …) 14/400 → 16/600 */
  html body .l-main .c-stock__tit {
    margin-bottom: var(--m-sp-item);
    font-size: var(--m-fs-h5);
    font-weight: 600;
    line-height: 1.5;
  }
  html body .l-main .IR-info .stockholder .c-stock-tit {
    font-weight: 700;
  }

  /* ---------------------------------------------------------------
     10. 안내문 · 단위 (11 → 12)
     원본이 클래스 3~4개로 지정돼 있어 :not(#_) 로 우선순위 보강
     --------------------------------------------------------------- */
  html body .l-main .guide:not(#_) {
    font-size: var(--m-fs-caption);
    line-height: 1.5;
  }
  /* 게시판 상단 안내(.m-top-desc__text)는 원본 15px 유지 — 14px·12px 축소 규칙 제거 (2026-11-16) */
  html body .l-main .content__position-right {
    font-size: var(--m-fs-caption);
  }

  /* ---------------------------------------------------------------
     11. 게시판 목록 (공지·공시·IR자료실·뉴스)
     --------------------------------------------------------------- */
  html body .l-main .m-newsfeed-tit span {
    font-size: var(--m-fs-body);
    font-weight: 600;                             /* 800 → 600 */
    line-height: 1.5;
  }
  /* 행 구조: 제목 블록(relative) + 날짜(absolute top:45px) → 제목이 커지면 날짜와 겹치므로
     날짜를 행 하단 기준으로 다시 배치하고, 이중 여백(15+15)을 거터 하나로 정리 */
  html body .l-main a.m-newsfeed__head-wrap > .m-newsfeed__content {   /* 목록은 a, 상세는 div */
    padding: 18px 0 44px;
  }
  html body .l-main a.m-newsfeed__head-wrap > .m-newsfeed__time {
    top: auto;
    bottom: 18px;
    left: 0;
  }
  html body .l-main .m-newsfeed__source-text {
    font-size: var(--m-fs-caption);
    line-height: 1.4;
  }
  /* 페이지네이션 10px · 20×20 → 14px · 36×36 (컨테이너가 height:20px + overflow:hidden 이라 함께 해제) */
  html body .l-main .m-paging__wrap-num {
    height: auto;
    overflow: visible;
    vertical-align: middle;
  }
  html body .l-main .m-paging__wrap-num > a {
    width: 36px;
    height: 36px;
    padding: 0;
    font-size: var(--m-fs-body-s);
    line-height: 36px;
    text-align: center;
  }
  html body .l-main .m-paging__wrap-num > a.target {
    font-weight: 700;
  }

  /* ---------------------------------------------------------------
     12. 게시물 상세 (뉴스·공지 상세)
     --------------------------------------------------------------- */
  html body .l-main div.m-newsfeed__head-wrap .m-newsfeed-tit span {
    font-size: var(--m-fs-h3);
    font-weight: 700;
    line-height: var(--m-lh-title);
  }
  html body .l-main .m-newsfeed__detail-sub__info {
    display: flex;
    justify-content: space-between;
    margin: 0 15px 20px;
  }
  html body .l-main .m-newsfeed__detail-sub__text,
  html body .l-main .m-newsfeed__detail-sub__data {
    font-size: 13px;
  }
  html body .l-main .m-newsfeed__body-content__wrap {
    font-size: var(--m-fs-body);
    line-height: 1.8;
  }
  html body .l-main .m-newsfeed__body-content__wrap :is(div, p, span, li, b, strong) {
    font-size: inherit;
    line-height: inherit;
  }
  html body .l-main .m-newsfeed__body-content__wrap :is(p, div) + :is(p, div) {
    margin-top: 8px;
  }
  /* 에디터 본문 넘침 보정 (2026-11-16) — 원본부터 화면 밖으로 넘치던 곳
     · 이미지·캡션: 인라인 width(600~780px)를 화면 폭에 맞춤 (뉴스 109·110)
     · 워드에서 붙여넣은 넓은 표: 페이지가 아니라 본문 영역 안에서만 가로 스크롤 (공고 47·81) */
  html body .l-main .m-newsfeed__body-content__wrap :is(img, figure, .imgframe, .imgframe > div, .imgcaption2, figcaption) {
    max-width: 100% !important;
  }
  html body .l-main .m-newsfeed__body-content__wrap img {
    height: auto !important;
  }
  /* 언론사 기사 붙여넣기(figure): 인라인 display:table·max-width:840px !important 때문에 max-width 가 안 먹음
     → figure 를 본문 칸 폭으로 고정하고 사진은 그 폭에 꽉 채움 (모바일에선 원본 사진이 칸보다 넓어 결과 동일) */
  html body .l-main .m-newsfeed__body-content__wrap figure {
    width: 100% !important;
    table-layout: fixed;
  }
  html body .l-main .m-newsfeed__body-content__wrap figure img {
    width: 100% !important;
  }
  html body .l-main .m-newsfeed__body-content__wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  html body .l-main .m-newsfeed__footer-link__subtit,
  html body .l-main .m-newsfeed__footer-link__tit {
    font-size: var(--m-fs-body-s);
    line-height: 1.4;
  }

  /* ---------------------------------------------------------------
     13. 연혁 (11px → 14px)
     --------------------------------------------------------------- */
  html body .l-main .histoy__list-year {
    margin-bottom: 8px;
    font-size: var(--m-fs-h2);
    font-weight: 700;
  }
  html body .l-main .histoy__list-info__summary {
    font-size: var(--m-fs-h5);                    /* 1.17em 상속값(14.04px) → 고정값 */
    font-weight: 600;
    line-height: 1.5;
  }
  html body .l-main .histoy__list-info__desc {
    margin-top: 6px;
    font-size: var(--m-fs-body-s);
    line-height: var(--m-lh-sub);
  }
  html body .l-main .histoy__list-info__depth + .histoy__list-info__depth {
    margin-top: 20px;
  }

  /* ---------------------------------------------------------------
     14. 아코디언 · 파일 다운로드 (지속가능경영)
     --------------------------------------------------------------- */
  html body .l-main .m-accordion__head__info {
    font-size: var(--m-fs-body-s);
    line-height: 1.6;                             /* 1.2 → 1.6 */
  }
  html body .l-main .file-download__tit {         /* 크기는 원본 18px 유지 — 16px 축소 제거 (2026-11-16) */
    font-weight: 600;
    line-height: 1.4;
  }
  html body .l-main .file-download__list li > a {
    display: inline-block;
    padding: 6px 0;
    font-size: var(--m-fs-body);
    line-height: 1.5;
  }

  /* ---------------------------------------------------------------
     15. 주가
     --------------------------------------------------------------- */
  html body .l-main .c-stock__tit-text {
    font-size: var(--m-fs-h5);
    font-weight: 600;
  }
  html body .l-main .c-stock__price-list__item.c-stock__price-list__current .c-stock__price-list__item-number {
    font-size: 28px;
    font-weight: 700;                             /* 800 → 700 */
  }
  html body .l-main .c-stock__price-list__item-number {
    font-size: var(--m-fs-body);
  }
  html body .l-main .c-stock__price-list__item-tit {
    font-size: 13px;
  }

  /* ---------------------------------------------------------------
     16. 개인정보처리방침 팝업 (12 → 13/14)
     --------------------------------------------------------------- */
  html body .l-popup .l-popup-desc {
    font-size: var(--m-fs-body-s);
    line-height: 1.6;
  }
  html body .l-popup .agreement_info dd,
  html body .l-popup .agreement_info dd li {
    font-size: 13px;
    line-height: 1.6;
  }
  html body .l-popup .agreement_info .tit_agree,
  html body .l-popup .agreement_info .tit_sub {
    font-size: var(--m-fs-body);
    font-weight: 600;
    line-height: 1.5;
  }
}
