/* 외국어 지면에서만 싣는다(생성기 build.py · scripts/clone-i18n/swap/)
   교정 단계 줄 — 한국어 지면 그림(1920×156 · 모바일 2열×3줄)과 같은 자리·색·크기로 글자를 놓는다
   치수는 1920px 그림의 픽셀 값을 --u(제목 칸 폭 ÷ 1920)로 줄인다 */
html body #ddc #section02 .title:has(> .ss-tl) { container-type: inline-size; }
html body #ddc #section02 .title > .ss-tl {
  --u: calc(min(100cqw, 1920px) / 1920);
  --lh: max(16px, calc(var(--u) * 26));
  --dt: calc(var(--u) * 9);
  --ds: max(10px, calc(var(--u) * 18));
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  box-sizing: border-box;
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 12.44% 0 11.3%;
  list-style: none;
}
html body #ddc #section02 .title > .ss-tl::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--lh) + var(--dt) + var(--ds) / 2);
  height: 1px;
  background: #707070;
}
html body #ddc #section02 .title > .ss-tl > .ss-tl-i {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  margin: 0;
  padding: 0 calc(var(--u) * 6);
  text-align: center;
}
html body #ddc #section02 .title > .ss-tl .ss-tl-n {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: var(--lh);
  font-size: max(11px, calc(var(--u) * 18));
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: rgba(51, 51, 51, 0.5);
}
html body #ddc #section02 .title > .ss-tl .ss-tl-d {
  position: relative;
  z-index: 1;
  flex: none;
  width: var(--ds);
  height: var(--ds);
  margin-top: var(--dt);
  border-radius: 50%;
  background: #a8a8a8;
}
html body #ddc #section02 .title > .ss-tl .ss-tl-x {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: max(44px, calc(var(--u) * 68));
  margin-top: calc(var(--u) * 37);
  font-size: max(13px, calc(var(--u) * 22));
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -0.02em;
  text-wrap: balance;
  color: #333;
}
/* 일본어는 사전에 넣은 낱말 경계에서만 줄을 바꾼다(한 글자만 다음 줄로 넘어가지 않게) · ss-i18n-wrap 의 normal !important 를 이 칸에서만 덮는다 */
html:lang(ja) body #ddc #section02 .title > .ss-tl .ss-tl-x { word-break: keep-all !important; }
html body #ddc #section02 .title > .ss-tl .s2 .ss-tl-d { background: #646464; }
html body #ddc #section02 .title > .ss-tl .s3 .ss-tl-d { background: #333; }
html body #ddc #section02 .title > .ss-tl .s4 .ss-tl-d { background: #003d65; }
html body #ddc #section02 .title > .ss-tl .s5 .ss-tl-d { background: #78a8cf; }
html body #ddc #section02 .title > .ss-tl .s6 .ss-tl-d {
  background: #538ed5;
  box-shadow: 0 0 0 calc(var(--ds) * 0.45) rgba(79, 144, 208, 0.15);
}
html body #ddc #section02 .title > .ss-tl .s6 .ss-tl-n,
html body #ddc #section02 .title > .ss-tl .s6 .ss-tl-x { color: #5090d3; }

/* 767px 이하 — 한국어 지면의 2열×3줄 그림 자리. 그 그림(.title::after)은 외국어 지면에서 끈다 */
@media (max-width: 767px) {
  html body #ddc #section02:not(#_):not(#_) .title::after { content: none !important; display: none !important; }
  html body #ddc #section02 .title > .ss-tl {
    --lh: 18px;
    --dt: 8px;
    --ds: 13px;
    grid-template-columns: repeat(2, 1fr);
    row-gap: 18px;
    width: calc(100% - 32px);
    max-width: 440px;
    margin: 28px auto 0;
    padding: 0;
  }
  html body #ddc #section02 .title > .ss-tl::before { content: none; }
  html body #ddc #section02 .title > .ss-tl > .ss-tl-i { padding: 0 6px; }
  html body #ddc #section02 .title > .ss-tl > .ss-tl-i::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: calc(var(--lh) + var(--dt) + var(--ds) / 2);
    height: 1px;
    background: #707070;
  }
  html body #ddc #section02 .title > .ss-tl .ss-tl-n { font-size: 13px; }
  html body #ddc #section02 .title > .ss-tl .ss-tl-x {
    min-height: 48px;
    margin-top: 14px;
    font-size: 15px;
    line-height: 1.45;
  }
}

/* 3D 진단 구획 질문 상자 — 한국어 문구 길이에 맞춘 고정 폭·높이(492×75)라 외국어 문장이 테두리 밖으로 넘친다
   외국어 지면에서만 상자를 글자 길이에 맞춰 늘린다(모바일은 기존 규칙으로 이미 맞다) */
@media (min-width: 768px) {
  html body #ddc #section05 .container > div {
    width: auto;
    max-width: min(90%, 860px);
    min-width: 492px;
    height: auto;
    min-height: 75px;
    padding: 8px 32px;
    box-sizing: border-box;
    display: table;
  }
  html body #ddc #section05 .container > div h4 {
    text-align: center;
    padding: 4px 0;
  }
}
