/* =========================================================
   COMPANY 03 — 조직도 · 연혁 MOBILE ONLY
   이 파일은 company/03.php 에서만 로드됩니다.
   공용 style.css / 다른 페이지에는 영향을 주지 않습니다.
   ========================================================= */

@media (max-width: 560px) {
  .n01-ref-org {
    overflow-x: clip;
  }

  .n01-ref-org .refsub-org-history-vertical {
    padding-top: 50px;
    padding-bottom: 56px;
  }

  .n01-ref-org .refsub-org-history-vertical .refsub-wrap {
    width: calc(100% - 32px);
    max-width: none;
  }

  .n01-ref-org .refsub-org-history-vertical .refsub-org-vertical {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .n01-ref-org .refsub-org-history-vertical .refsub-org-block,
  .n01-ref-org .refsub-org-history-vertical .refsub-history-block {
    min-width: 0;
    width: 100%;
    padding: 26px 18px 28px;
    overflow: hidden;
  }

  .n01-ref-org .refsub-org-history-vertical .refsub-section-head {
    display: block;
    margin-bottom: 28px;
  }

  .n01-ref-org .refsub-org-history-vertical .refsub-section-head > div,
  .n01-ref-org .refsub-org-history-vertical .refsub-section-head > p {
    min-width: 0;
    width: 100%;
  }

  .n01-ref-org .refsub-org-history-vertical .refsub-section-head > div h2 {
    margin-top: 7px;
    font-size: 30px;
    line-height: 1.2;
    letter-spacing: -.045em;
  }

  .n01-ref-org .refsub-org-history-vertical .refsub-section-head > p {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.75;
    word-break: keep-all;
  }

  /* 조직도 */
  .n01-ref-org .refsub-org-tree-large {
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 0;
  }

  .n01-ref-org .refsub-org-tree-large strong {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    height: 50px;
    padding: 0 12px;
    font-size: 15px;
    line-height: 1.35;
    word-break: keep-all;
  }

  .n01-ref-org .refsub-org-tree-large > i {
    height: 20px;
  }

  .n01-ref-org .refsub-org-tree-large .side {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    max-width: none;
    margin: 10px 0 16px;
  }

  .n01-ref-org .refsub-org-tree-large .side span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 46px;
    padding: 9px 7px;
    font-size: 13px;
    line-height: 1.35;
    text-align: center;
    word-break: keep-all;
  }

  .n01-ref-org .refsub-org-tree-large .bottom {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    margin-top: 0;
  }

  .n01-ref-org .refsub-org-tree-large .bottom span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 48px;
    padding: 9px 7px;
    font-size: 13px;
    line-height: 1.35;
    text-align: center;
    word-break: keep-all;
  }

  .n01-ref-org .refsub-org-tree-large .bottom span:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  /* 연혁 — 오른쪽 잘림 방지 */
  .n01-ref-org .refsub-timeline-large {
    position: relative;
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 0;
    padding-left: 14px;
  }

  .n01-ref-org .refsub-timeline-large:before {
    left: 4px;
    top: 7px;
    bottom: 7px;
  }

  .n01-ref-org .refsub-timeline-large article {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 12px;
    width: 100%;
    min-width: 0;
    padding: 0 0 24px 18px;
  }

  .n01-ref-org .refsub-timeline-large article:last-child {
    padding-bottom: 0;
  }

  .n01-ref-org .refsub-timeline-large article:before {
    left: -15px;
    top: 5px;
    width: 10px;
    height: 10px;
    border-width: 2px;
  }

  .n01-ref-org .refsub-timeline-large article > div {
    min-width: 0;
  }

  .n01-ref-org .refsub-timeline-large time {
    min-width: 0;
    font-size: 14px;
    line-height: 1.45;
    white-space: nowrap;
  }

  .n01-ref-org .refsub-timeline-large h3 {
    width: 100%;
    min-width: 0;
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
    letter-spacing: -.025em;
    word-break: keep-all;
    overflow-wrap: break-word;
  }
}
