/* =========================================================================
   조직도(/ko/organization) 전용 — 자료 B(meta.ai 조직도)를 웹 컴포넌트로 재현
   · 1025px 이상: 연결선 트리. 선은 전부 의사요소(버스선 = 첫 칸 중심 ~ 끝 칸 중심)
   · 1024px 이하: 왼쪽 세로선(레일)에 매달린 목록(연결선 단순화)
   · 회사 패널 = <details open>/<summary>(기본 삼각형 대신 선 아이콘)
   · 호버로 떠오르는 것은 안쪽 카드(.org-card) — 연결선을 가진 바깥 칸은 움직이지 않는다
   ========================================================================= */

.org {
  --org-line: #c8d1db;
  --org-dash: #b7c1cc;
  --org-bd: #e2e7ed;
  --org-gna: #0c1a2c;
  --org-weishi: #004165;
  --org-rent: #1f4d36;
  --org-gap: 16px;
  --org-stem: 30px;
  --org-tick: 34px;
  --org-drop: 36px;
  position: relative;
  padding-block: clamp(72px, 8vw, 128px);
  border-bottom: 1px solid var(--line);
  background-color: #fafbfc;
  background-image: radial-gradient(circle, rgba(12, 26, 44, .075) 1px, transparent 1.6px);
  background-size: 24px 24px;
  background-position: 12px 12px;
}

/* ---------- 공통 조각 ---------- */
.org-ic { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: #fff; color: var(--org-weishi); }
.org-ic .ic { width: 20px; height: 20px; }
.org-name { font-size: 16px; font-weight: 700; line-height: 1.4; letter-spacing: -0.015em; color: var(--ink); }
.org-en { display: block; font-size: 12px; font-weight: 500; line-height: 1.45; letter-spacing: 0; color: var(--muted); }
.org-en--caps { font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.org-card { transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease); }
@media (hover: hover) {
  .org-card:hover { transform: translateY(-3px); border-color: #d0d9e3; box-shadow: 0 16px 32px -18px rgba(12, 26, 44, .32); }
}

/* ---------- 머리말: 라벨 칩 + 제목 + 범례 ---------- */
.org-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 28px 56px; margin-bottom: clamp(56px, 6vw, 96px); }
.org-badge { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 12px; border: 1px solid var(--org-bd); border-radius: 999px; background: #fff; font-family: var(--f-display); font-size: 11.5px; font-weight: 600; line-height: 1.3; letter-spacing: .16em; color: var(--muted); }
.org-badge::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--org-weishi); }
.org-head__title { margin-top: 20px; font-size: clamp(30px, 3.4vw, 48px); line-height: 1.2; letter-spacing: -0.03em; }
.org-head__en { font-family: var(--f-display); font-weight: 300; letter-spacing: -0.02em; color: #7d8590; }
.org-head__en::before { content: "/"; margin-right: .3em; color: #b9c0c8; }
.org-head__lead { margin-top: 16px; max-width: 640px; font-size: clamp(15.5px, 1.15vw, 17px); line-height: 1.8; color: var(--muted); }
.org-legend { display: grid; gap: 12px; padding: 18px 22px; border: 1px solid var(--org-bd); border-radius: 16px; background: #fff; }
.org-legend li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; line-height: 1.5; }
.org-legend__ko { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.org-legend .org-en { font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.org-legend__dot, .org-legend__dash { flex: none; width: 24px; display: grid; place-items: center; }
.org-legend__dot::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--org-gna); }
.org-legend__dash::before { content: ""; width: 24px; border-top: 1.5px dashed var(--org-dash); }

/* ---------- 모회사: 의장(알약) + 사업부 01–04 + 경영지원 ---------- */
.org-gna {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-areas: "wm root side" "divs divs divs";
}
.org-gna__wm { /* 회사소개서 3쪽의 옅은 대형 글자 — 의장 왼쪽 빈칸을 채운다 */
  grid-area: wm; align-self: center; justify-self: start;
  font-family: var(--f-display); font-size: clamp(120px, 15vw, 224px); font-weight: 700; line-height: .8; letter-spacing: -0.04em;
  color: rgba(12, 26, 44, .045); pointer-events: none; -webkit-user-select: none; user-select: none;
}
.org-gna__root { grid-area: root; position: relative; display: grid; place-items: center; }
.org-gna__root::before { /* 알약 중심 → 칸 아래까지(알약이 위를 덮는다) */
  content: ""; position: absolute; left: calc(50% - .5px); top: 50%; bottom: 0; width: 1px; background: var(--org-line);
}
.org-root {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 24px clamp(36px, 3.6vw, 56px) 22px;
  border-radius: 999px;
  background-color: var(--org-gna);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, 0) 62%);
  color: #fff;
  text-align: center;
  box-shadow: 0 30px 60px -30px rgba(8, 18, 32, .65), 0 2px 6px rgba(8, 18, 32, .14);
}
.org-root__name { color: #fff; font-size: clamp(22px, 2vw, 28px); font-weight: 700; line-height: 1.25; letter-spacing: -0.02em; }
.org-root__meta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 14px; }
.org-root__role { display: inline-flex; flex-wrap: wrap; align-items: baseline; justify-content: center; font-size: 13.5px; font-weight: 600; color: rgba(255, 255, 255, .78); }
.org-root__role .org-en { display: inline; font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .62); }
.org-root__role .org-en::before { content: "/"; margin-inline: 8px; letter-spacing: 0; color: rgba(255, 255, 255, .32); }
.org-root__tag { display: inline-flex; align-items: center; padding: 3px 11px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; background: rgba(255, 255, 255, .08); font-size: 12px; font-weight: 600; line-height: 1.5; color: #fff; }

/* 경영지원 — 의장 옆 칸(가로선으로 연결) */
.org-gna__side { grid-area: side; display: flex; align-items: center; min-width: 0; }
.org-gna__side::before { content: ""; flex: 1 1 32px; min-width: 32px; height: 1px; background: var(--org-line); }
.org-support {
  flex: 0 1 392px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--org-bd);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(12, 26, 44, .04), 0 22px 44px -30px rgba(12, 26, 44, .38);
}
.org-support__hd { display: flex; align-items: center; gap: 12px; padding: 4px 4px 14px; }
.org-support__hd .org-ic { width: 36px; height: 36px; border-radius: 11px; background: var(--org-gna); color: #fff; }
.org-support__hd .org-ic .ic { width: 18px; height: 18px; }
.org-support__txt { min-width: 0; }
.org-support__hd .org-name { font-size: 15.5px; line-height: 1.35; }
.org-fns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.org-fn { display: grid; align-content: start; gap: 2px; min-width: 0; padding: 12px 13px 13px; border: 1px solid var(--org-bd); border-radius: 14px; background: #fafbfc; }
.org-fn .ic { width: 18px; height: 18px; margin-bottom: 8px; color: var(--org-weishi); }
.org-fn__name { font-size: 14px; font-weight: 700; line-height: 1.4; letter-spacing: -0.01em; color: var(--ink); }
.org-fn .org-en { font-size: 11.5px; }

/* 사업부 01–04 */
.org-divs { grid-area: divs; position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--org-gap); margin-top: var(--org-stem); padding-top: 36px; }
.org-divs::before { /* 버스선 */
  content: ""; position: absolute; top: 0; height: 1px; background: var(--org-line);
  left: calc((100% - 3 * var(--org-gap)) / 8); right: calc((100% - 3 * var(--org-gap)) / 8);
}
.org-divs::after { /* 의장 → 버스선(나머지 구간) */
  content: ""; position: absolute; left: calc(50% - .5px); top: calc(-1 * var(--org-stem)); width: 1px; height: var(--org-stem); background: var(--org-line);
}
.org-divs__item { position: relative; display: flex; min-width: 0; }
.org-divs__item::before { content: ""; position: absolute; left: calc(50% - .5px); top: -36px; width: 1px; height: 36px; background: var(--org-line); }
.org-div {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 3px;
  padding: 20px 20px 22px;
  border: 1px solid #dbe4ee;
  border-radius: 20px;
  background-color: #f0f5f9;
  background-image: linear-gradient(180deg, #f6f9fc, #edf2f8);
}
.org-div .org-ic { margin-bottom: 16px; box-shadow: 0 1px 2px rgba(12, 26, 44, .06), 0 0 0 1px rgba(12, 26, 44, .04); }
.org-div__no { position: absolute; top: 18px; right: 20px; font-family: var(--f-display); font-size: 12.5px; font-weight: 600; letter-spacing: .1em; color: #7088a0; font-variant-numeric: tabular-nums; }
.org-div .org-en { color: var(--org-weishi); }

/* ---------- 점선 구분: 자회사 및 관계사 ---------- */
.org-sep { display: flex; align-items: center; gap: 18px; min-height: 40px; margin-top: clamp(64px, 7vw, 104px); }
.org-sep::before, .org-sep::after { content: ""; flex: 1 1 0; min-width: 16px; border-top: 1px dashed var(--org-dash); }
.org-sep__label { flex: 0 1 auto; display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2px 10px; min-height: 40px; padding: 7px 20px; border: 1px solid var(--org-bd); border-radius: 999px; background: #fff; text-align: center; }
.org-sep__ko { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.org-sep__label .org-en { font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ---------- 자회사 및 관계사: 회사 패널 ---------- */
.org-cos { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 5fr); gap: 24px; align-items: start; margin-top: var(--org-drop); }
.org-cos__item { position: relative; min-width: 0; }
.org-cos__item::before { /* 점선 구분선 → 패널 */
  content: ""; position: absolute; left: 50%; bottom: 100%; height: calc(var(--org-drop) + 20px); border-left: 1px dashed var(--org-dash);
}
.org-co {
  --co: var(--org-weishi);
  --co-tint: #edf3f7;
  --co-bd: #d3e0ea;
  --tone: var(--co);
  --tone-bg: var(--co-tint);
  overflow: hidden;
  border: 1px solid var(--org-bd);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(12, 26, 44, .04), 0 28px 56px -38px rgba(12, 26, 44, .4);
}
.org-co--rent { --co: var(--org-rent); --co-tint: #edf4f0; --co-bd: #d1e2d8; }
.org-co__hd {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 16px 16px 20px;
  background-color: var(--co);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, 0));
  color: #fff;
  list-style: none;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}
.org-co__hd::-webkit-details-marker { display: none; }
.org-co__hd:focus-visible { outline: none; }
.org-co__hd:focus-visible::after { /* 패널이 모서리를 자르므로 링은 안쪽에 그린다 */
  content: ""; position: absolute; inset: 5px; border: 2px solid var(--gold-2); border-radius: 15px; pointer-events: none;
}
.org-co__mark { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 12px; background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); font-family: var(--f-display); font-size: 18px; font-weight: 700; color: #fff; }
.org-co__title { flex: 1 1 auto; min-width: 0; display: grid; gap: 2px; color: #fff; font-weight: 700; line-height: 1.3; letter-spacing: -0.015em; }
.org-co__en { font-family: var(--f-display); font-size: 11.5px; font-weight: 600; letter-spacing: .16em; color: rgba(255, 255, 255, .66); }
.org-co__name { font-size: 18px; }
.org-co__toggle { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px 0 14px; border-radius: 999px; background: #fff; color: var(--co); font-size: 13px; font-weight: 700; transition: background-color .25s var(--ease); }
.org-co__toggle .ic { width: 16px; height: 16px; stroke-width: 2; transition: transform .3s var(--ease); }
.org-co[open] .org-co__toggle .ic { transform: rotate(180deg); }
.org-co[open] .org-co__when-closed, .org-co:not([open]) .org-co__when-open { display: none; }
.org-co__hd:hover .org-co__toggle { background-color: #f1f4f7; }
.org-co__body { padding: 28px 24px 26px; }

/* COO(사업 총괄) */
.org-coo { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 2px 10px; width: fit-content; max-width: 100%; margin-inline: auto; padding: 11px 26px; border: 1px solid var(--co-bd); border-radius: 999px; background: var(--co-tint); text-align: center; line-height: 1.5; }
.org-coo__abbr { font-family: var(--f-display); font-size: 17px; font-weight: 700; letter-spacing: .04em; color: var(--co); }
.org-coo__role { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.org-coo__en { font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--co); opacity: .72; }

/* 부서 열(WEISHI) — subgrid 로 세 머리 칸 높이를 맞춘다 */
.org-depts { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto 1fr; column-gap: 14px; row-gap: 0; margin-top: 24px; padding-top: 30px; }
.org-depts::before { content: ""; position: absolute; top: 0; height: 1px; background: var(--org-line); left: calc((100% - 2 * 14px) / 6); right: calc((100% - 2 * 14px) / 6); }
.org-depts::after { content: ""; position: absolute; left: calc(50% - .5px); top: -24px; width: 1px; height: 24px; background: var(--org-line); }
.org-depts__item { position: relative; min-width: 0; grid-row: span 2; display: grid; grid-template-rows: subgrid; row-gap: 0; }
.org-depts__item::before { content: ""; position: absolute; left: calc(50% - .5px); top: -30px; width: 1px; height: 30px; background: var(--org-line); }
.org-dept { --tone: var(--org-weishi); --tone-bg: #e9f1f7; min-width: 0; grid-row: span 2; display: grid; grid-template-rows: subgrid; row-gap: 0; border: 1px solid var(--org-bd); border-radius: 18px; background: #f7f9fb; overflow: hidden; }
.org-dept--slate { --tone: #3c4a5b; --tone-bg: #eef1f4; }
.org-dept--gold { --tone: #7d5c2a; --tone-bg: #f6efe4; }
.org-dept__hd { display: grid; align-content: start; gap: 10px; padding: 16px 16px 15px; background: var(--tone-bg); border-bottom: 1px solid var(--org-bd); }
.org-dept__hd .org-ic { width: 34px; height: 34px; border-radius: 10px; color: var(--tone); box-shadow: 0 0 0 1px rgba(12, 26, 44, .05); }
.org-dept__hd .org-ic .ic { width: 18px; height: 18px; }
.org-dept__txt { display: grid; gap: 3px; min-width: 0; }
.org-dept__name { font-size: 15.5px; font-weight: 700; line-height: 1.4; letter-spacing: -0.015em; color: var(--ink); }
.org-dept__qual { display: block; font-size: 13px; font-weight: 600; letter-spacing: -0.01em; color: var(--tone); }
.org-dept__hd .org-en { font-size: 11.5px; }

/* 팀 */
.org-teams { display: grid; align-content: start; gap: 8px; padding: 10px; }
.org-team { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px; border: 1px solid var(--org-bd); border-radius: 12px; background: #fff; }
.org-team__ic { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 9px; background: var(--tone-bg); color: var(--tone); }
.org-team__ic .ic { width: 17px; height: 17px; }
.org-team__txt { display: grid; min-width: 0; }
.org-team__name { font-size: 14px; font-weight: 700; line-height: 1.4; letter-spacing: -0.01em; color: var(--ink); }
.org-team .org-en { font-size: 11px; line-height: 1.4; }

/* RENT TOGETHER: COO → 장기렌트카부서 → 팀 3 */
.org-rent { position: relative; margin-top: 24px; }
.org-rent::before { content: ""; position: absolute; left: calc(50% - .5px); top: -24px; width: 1px; height: 24px; background: var(--org-line); }
.org-rent__hd { display: flex; align-items: center; gap: 14px; width: min(100%, 340px); margin-inline: auto; padding: 14px 20px 14px 14px; border-radius: 16px; background-color: #285c42; background-image: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, 0)); color: #fff; box-shadow: 0 18px 36px -22px rgba(20, 64, 42, .65); }
.org-rent__hd .org-ic { width: 38px; height: 38px; border-radius: 11px; background: rgba(255, 255, 255, .14); color: #fff; }
.org-rent__txt { min-width: 0; }
.org-rent__name { color: #fff; font-size: 16px; font-weight: 700; line-height: 1.35; letter-spacing: -0.015em; }
.org-rent__hd .org-en { color: rgba(255, 255, 255, .74); }
.org-rent__teams { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 24px; padding-top: 28px; }
.org-rent__teams::before { content: ""; position: absolute; top: 0; height: 1px; background: var(--org-line); left: calc((100% - 2 * 12px) / 6); right: calc((100% - 2 * 12px) / 6); }
.org-rent__teams::after { content: ""; position: absolute; left: calc(50% - .5px); top: -24px; width: 1px; height: 24px; background: var(--org-line); }
.org-rent__item { position: relative; display: flex; min-width: 0; }
.org-rent__item::before { content: ""; position: absolute; left: calc(50% - .5px); top: -28px; width: 1px; height: 28px; background: var(--org-line); }
.org-team--card { flex: 1 1 auto; flex-direction: column; justify-content: flex-start; gap: 12px; padding: 18px 12px 16px; border-radius: 16px; text-align: center; }
.org-team--card .org-team__ic { width: 38px; height: 38px; border-radius: 11px; }
.org-team--card .org-team__ic .ic { width: 19px; height: 19px; }
.org-team--card .org-team__txt { justify-items: center; gap: 2px; }

/* ---------- 1240px 이하: 회사 패널을 위아래로(패널 안은 트리 유지) ---------- */
@media (max-width: 1240px) {
  .org-cos { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .org-cos__item:nth-child(2)::before { display: none; }
  .org-co--rent .org-co__body > * { max-width: 760px; }
  .org-co--rent .org-rent { margin-inline: auto; }
}

/* ---------- 1024px 이하: 세로 목록(왼쪽 레일 + 짧은 가지) ---------- */
@media (max-width: 1024px) {
  .org { --rail: 26px; --indent: 50px; --rgap: 12px; }

  .org-head { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .org-legend { justify-self: start; }

  /* 모회사 */
  .org-gna { display: block; }
  .org-gna__wm { display: none; }
  .org-gna__root { display: block; place-items: normal; } /* 블록 배치에서도 justify-items 가 먹으므로 되돌린다 */
  .org-gna__root::before { display: none; }
  .org-root { justify-items: start; padding: 22px 26px; border-radius: 20px; text-align: left; }
  .org-root__meta, .org-root__role { justify-content: flex-start; }

  .org-divs { grid-template-columns: minmax(0, 1fr); gap: var(--rgap); margin-top: 0; padding: var(--rgap) 0 0 var(--indent); }
  .org-divs::before, .org-divs::after { display: none; }
  .org-divs__item::before { left: calc(var(--rail) - var(--indent)); top: calc(-1 * var(--rgap)); bottom: 0; height: auto; }
  .org-divs__item::after { content: ""; position: absolute; left: calc(var(--rail) - var(--indent)); top: 50%; width: calc(var(--indent) - var(--rail)); height: 1px; background: var(--org-line); }
  .org-div { grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 16px; row-gap: 2px; padding: 16px 56px 16px 16px; }
  .org-div .org-ic { grid-row: span 2; margin-bottom: 0; }
  .org-div__no { top: 50%; right: 20px; transform: translateY(-50%); }

  .org-gna__side { position: relative; display: block; padding: var(--rgap) 0 0 var(--indent); }
  .org-gna__side::before { position: absolute; left: var(--rail); top: 0; width: 1px; min-width: 0; height: calc(var(--rgap) + var(--org-tick)); }
  .org-gna__side::after { content: ""; position: absolute; left: var(--rail); top: calc(var(--rgap) + var(--org-tick)); width: calc(var(--indent) - var(--rail)); height: 1px; background: var(--org-line); }
  .org-fns { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  /* 구분선·패널 */
  .org-sep { margin-top: 64px; }
  .org-cos { margin-top: 28px; gap: 24px; }
  .org-cos__item::before { display: none; }
  .org-co__body { padding: 24px 22px 24px; }
  .org-co--rent .org-co__body > * { max-width: none; }

  .org-coo { justify-content: flex-start; width: auto; margin-inline: 0; padding: 12px 18px; border-radius: 16px; text-align: left; }

  .org-depts { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; row-gap: var(--rgap); margin-top: 0; padding: var(--rgap) 0 0 var(--indent); }
  .org-depts::before, .org-depts::after { display: none; }
  .org-depts__item { display: block; grid-row: auto; }
  .org-depts__item::before { left: calc(var(--rail) - var(--indent)); top: calc(-1 * var(--rgap)); bottom: 0; height: auto; }
  .org-depts__item:last-child::before { bottom: auto; height: calc(var(--rgap) + var(--org-tick)); }
  .org-depts__item::after { content: ""; position: absolute; left: calc(var(--rail) - var(--indent)); top: var(--org-tick); width: calc(var(--indent) - var(--rail)); height: 1px; background: var(--org-line); }
  .org-dept { display: flex; flex-direction: column; grid-row: auto; }
  .org-dept__hd { grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 14px; }
  .org-teams { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .org-rent { margin-top: 0; padding: var(--rgap) 0 0 var(--indent); }
  .org-rent::before { left: var(--rail); top: 0; height: calc(var(--rgap) + var(--org-tick)); }
  .org-rent::after { content: ""; position: absolute; left: var(--rail); top: calc(var(--rgap) + var(--org-tick)); width: calc(var(--indent) - var(--rail)); height: 1px; background: var(--org-line); }
  .org-rent__hd { width: auto; margin-inline: 0; border-radius: 16px 16px 0 0; box-shadow: none; }
  .org-rent__teams { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 0; padding: 12px; border: 1px solid var(--org-bd); border-top: 0; border-radius: 0 0 16px 16px; background: #f7f9fb; }
  .org-rent__teams::before, .org-rent__teams::after, .org-rent__item::before { display: none; }
  .org-team--card { flex-direction: row; gap: 11px; padding: 11px 12px; border-radius: 12px; text-align: left; }
  .org-team--card .org-team__ic { width: 32px; height: 32px; border-radius: 9px; }
  .org-team--card .org-team__ic .ic { width: 17px; height: 17px; }
  .org-team--card .org-team__txt { justify-items: start; gap: 0; }
}

/* ---------- 640px 이하: 폰 ---------- */
@media (max-width: 640px) {
  .org { --rail: 18px; --indent: 34px; --rgap: 10px; --org-tick: 30px; }
  .org-head__en { display: block; }
  .org-head__en::before { content: none; }
  .org-legend { justify-self: stretch; padding: 16px 18px; }

  .org-root { padding: 20px 20px 18px; }
  .org-div { column-gap: 14px; padding: 14px 44px 14px 14px; }
  .org-div .org-ic { width: 36px; height: 36px; border-radius: 11px; }
  .org-div .org-ic .ic { width: 18px; height: 18px; }
  .org-div__no { right: 16px; }
  .org-fns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .org-support { padding: 12px; }

  .org-sep { gap: 12px; margin-top: 52px; }
  .org-sep::before { display: none; }
  .org-sep__label { display: grid; justify-items: start; gap: 1px; padding: 8px 16px; border-radius: 16px; text-align: left; }

  .org-co__hd { gap: 12px; padding: 14px 14px 14px 16px; }
  .org-co__mark { width: 38px; height: 38px; border-radius: 11px; font-size: 16px; }
  .org-co__en { font-size: 10.5px; letter-spacing: .12em; }
  .org-co__name { font-size: 16.5px; }
  .org-co__body { padding: 18px 14px 18px; }
  .org-dept__hd { padding: 14px; }
  .org-teams { grid-template-columns: minmax(0, 1fr); padding: 10px; }
  .org-rent__teams { grid-template-columns: minmax(0, 1fr); padding: 10px; }
}
@media (max-width: 420px) {
  .org-co__toggle { width: 34px; padding: 0; justify-content: center; }
  .org-co__when-open, .org-co__when-closed { display: none; }
}

/* 휴대폰에서 영문 보조 라벨·배지는 12px 아래로 내려가지 않게 */
@media (max-width: 640px) {
  body.pg-organization .org-en,
  body.pg-organization .org-en--caps,
  body.pg-organization .org-co__en,
  body.pg-organization .org-coo__en,
  body.pg-organization .org-badge { font-size: 12px; }
}
