/* ============================================================
   site — 홍보 영역

   출처: design_handoff_jarabot/README.md
   색·타이포·여백은 그 문서의 확정값이고 전부 tokens.css 에 있습니다.
   여기에 리터럴을 쓰지 마세요. 1px 선과 100% 같은 구조값만 예외입니다.

   지켜야 할 것 넷 (핸드오프 명시)
     · 바탕은 흰색과 --bg-alt 두 단계만
     · 짙은 잉크 면은 페이지당 최대 두 곳 (히어로 · 최종 CTA)
     · 섹션 구분은 색이 아니라 1px 선 + 여백
     · box-shadow 없음. radius 는 버튼·입력 필드만 2px
   ============================================================ */

.site { background: var(--bg); }

/* 한글은 단어 중간에서 잔리면 읽기 나쁘니다.
   "가 / 르칩니다" 처럼 되는 것을 막습니다. */
.site,
.site h1,
.site h2,
.site h3,
.site p { word-break: keep-all; }

.site-main { display: block; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* 본문 블록은 줄 끝이 예쁘게 떨어지게 합니다. */
.site p { text-wrap: pretty; }

/* 전역 hover 트랜지션. 이 이상 화려한 모션은 넣지 않습니다. */
.site a,
.site button,
.site .card__img img {
  transition: color .18s ease, background-color .18s ease,
              border-color .18s ease, transform .3s ease;
}

.site a:focus-visible,
.site button:focus-visible,
.site input:focus-visible,
.site textarea:focus-visible,
.site select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ------------------------------------------------------------
   버튼
   ------------------------------------------------------------ */

.b {
  display: inline-block;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.b--primary {
  padding: 17px 32px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: var(--fs-body);
}

.b--primary:hover { background: var(--accent-hover); color: var(--accent-ink); text-decoration: none; }

/* 짙은 배경 위 */
.b--ghostDark {
  padding: 14px 26px;
  background: none;
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--on-dark);
  font-size: var(--fs-sm);
}

.b--ghostDark:hover { border-color: var(--on-dark); color: var(--on-dark); text-decoration: none; }

/* 밝은 배경 위 */
.b--ghost {
  padding: 14px 26px;
  background: none;
  border-color: var(--ink);
  color: var(--ink);
  font-size: var(--fs-sm);
}

.b--ghost:hover { background: var(--ink); color: var(--on-dark); text-decoration: none; }

.b--ink {
  padding: 15px 28px;
  background: var(--ink);
  color: var(--on-dark);
  font-size: var(--fs-sm);
}

.b--ink:hover { background: var(--ink-hero); color: var(--on-dark); text-decoration: none; }

/* 텍스트 링크. 끝의 화살표만 hover 에 움직입니다. */
.go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: var(--fs-sm);
  font-weight: 700;
  text-decoration: none;
}

.go:hover { color: var(--accent-hover); text-decoration: none; }
.go i { font-style: normal; transition: transform .3s ease; }
.go:hover i { transform: translateX(4px); }

/* ------------------------------------------------------------
   헤더
   ------------------------------------------------------------ */

.gnb {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--ink);
}

.gnb__inner {
  display: flex;
  align-items: center;
  height: var(--header-h);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.gnb__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: 44px;
  color: #eef1f4;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.gnb__brand:hover { color: #eef1f4; text-decoration: none; }

/* 거북이 로고. 글자(20px)보다 조금 크게 해 글자 높이와 맞아 보이게 합니다.
   원본: 홍보 패널 6장 로고에서 글자를 빼고 거북이만 남긴 것 (2026-11) */
.gnb__mark { display: block; width: 30px; height: 30px; flex: 0 0 auto; }

.gnb__nav { display: flex; align-items: center; gap: 26px; }

.gnb__link {
  color: var(--on-dark-soft);
  font-size: var(--fs-sm);
  text-decoration: none;
  white-space: nowrap;
}

.gnb__link:hover { color: var(--on-dark); text-decoration: none; }

.gnb__link.is-current {
  color: var(--on-dark);
  font-weight: 600;
  padding-bottom: 3px;
  box-shadow: inset 0 -2px 0 var(--accent);
}

.gnb__side { display: flex; align-items: center; gap: 18px; margin-left: auto; }

.gnb__sub { color: var(--on-dark-muted); font-size: 14px; text-decoration: none; }
.gnb__sub:hover { color: var(--on-dark); }

.gnb__cta {
  padding: 9px 18px;
  background: var(--bg-card);
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.gnb__cta:hover { background: var(--bg-alt); color: var(--ink); text-decoration: none; }

/* ---- 모바일 오버레이 ---- */

.gnb__toggle,
.gnb__burger,
.gnb__sheet { display: none; }

@media (max-width: 1023px) {
  .gnb__nav,
  .gnb__side { display: none; }

  .gnb__burger {
    display: block;
    margin-left: auto;
    color: var(--on-dark);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 11px;
  }

  .gnb__toggle:checked ~ .gnb__sheet {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 50;
    flex-direction: column;
    padding: var(--gutter);
    background: var(--ink);
  }

  .gnb__close {
    align-self: flex-end;
    padding: 11px;
    color: var(--on-dark);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
  }

  .gnb__sheet-nav { display: flex; flex-direction: column; margin-top: var(--gutter); }

  .gnb__sheet-link {
    padding: 18px 0;
    color: var(--on-dark);
    font-size: 20px;
    font-weight: 600;
    text-decoration: none;
  }

  .gnb__sheet-link.is-current { color: var(--accent); }

  .gnb__sheet-sub {
    padding: 18px 0;
    color: var(--on-dark-muted);
    font-size: var(--fs-sm);
    text-decoration: none;
  }
}

/* ------------------------------------------------------------
   히어로
   ------------------------------------------------------------ */

.hero {
  position: relative;
  overflow: hidden;
  min-height: var(--hero-h);
  display: flex;
  align-items: center;
  padding: 0;
  background: var(--ink-hero);
  color: var(--on-dark);
}

.hero > .wrap { position: relative; width: 100%; }

.hero--short { min-height: 0; padding: 72px 0; display: block; }

/* 사진이 깔린 히어로.
   사진이 틀을 꽉 채우므로 보통은 이 배경색이 보이지 않습니다.
   비율이 틀과 많이 다른 사진을 넣었을 때 가장자리에 드러나는
   색이라, 사진 바탕색과 맞췰둡니다. */
.hero--photo { background-color: var(--hero-photo-bg); }

/* 사진은 틀을 꽉 채우며 잘립니다.
   틀을 넓게(--hero-h) 잡아야 많이 안 잘립니다. */
.hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* 짧은 히어로(교육 화면)는 사진이 배경으로 깔리는 것이 맞습니다.
   그쪽 사진은 강의실 현장 컷이라 잘려도 내용이 안 사라집니다. */
.hero--short .hero__photo {
  object-fit: cover;
  object-position: center;
}

/* 방향성 스크림. 사진 위 가독성 확보 용도이고,
   그라디언트를 쓰는 곳은 여기뿐입니다. */
.hero__scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg,
    rgba(19, 26, 36, 0.94) 0%,
    rgba(19, 26, 36, 0.86) 44%,
    rgba(19, 26, 36, 0.52) 76%,
    rgba(19, 26, 36, 0.38) 100%);
}

.hero--short .hero__scrim {
  background: linear-gradient(90deg,
    rgba(19, 26, 36, 0.93) 0%,
    rgba(19, 26, 36, 0.82) 50%,
    rgba(19, 26, 36, 0.45) 100%);
}

/* 사진이 없을 때의 대체안 — 잉크 단색 + 3% 흰 64px 그리드.
   회색 박스나 아이콘은 쓰지 않습니다. */
.hero__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
}

.hero__mark {
  position: absolute;
  left: var(--gutter);
  bottom: -34px;
  color: rgba(255, 255, 255, 0.05);
  font-size: 132px;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.hero__inner { position: relative; max-width: 640px; }

.hero__title {
  margin: 0 0 22px;
  color: var(--on-dark);
  font-size: var(--fs-hero);
  font-weight: 800;
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-hero);
}

.hero--short .hero__inner { max-width: 660px; }
.hero--short .hero__title { font-size: var(--fs-page); letter-spacing: var(--tracking-page); line-height: 1.18; }

.hero__lead {
  max-width: 500px;
  margin: 0 0 32px;
  color: var(--on-dark-body);
  font-size: var(--fs-lead);
  line-height: var(--lh-body);
}

.hero--short .hero__lead { max-width: 620px; margin-bottom: 0; font-size: var(--fs-read); line-height: var(--lh-read); }

.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 0; }

@media (max-width: 767px) {
  .hero { padding: 0; }
  .hero--short { padding: 48px 0; }
  .hero__mark { font-size: 76px; bottom: -20px; }
}

/* ------------------------------------------------------------
   지표 3분할
   ------------------------------------------------------------ */

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.stats__item { padding: 30px var(--gutter); border-right: 1px solid var(--line); }
.stats__item:last-child { border-right: 0; }

.stats__n {
  display: block;
  margin: 0 0 8px;
  font-size: var(--fs-stat);
  font-weight: 800;
  letter-spacing: var(--tracking-head);
}

.stats__t { display: block; color: var(--ink-muted); font-size: var(--fs-aux); line-height: 1.6; }

@media (max-width: 767px) {
  .stats { grid-template-columns: minmax(0, 1fr); }
  .stats__item { border-right: 0; border-bottom: 1px solid var(--line); }
  .stats__item:last-child { border-bottom: 0; }
}

/* ------------------------------------------------------------
   섹션 공통
   ------------------------------------------------------------ */

.band { padding: var(--band-y) 0; }
.band--alt { background: var(--bg-alt); }
.band--line { border-top: 1px solid var(--line); }

.band__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--gutter);
  flex-wrap: wrap;
  margin: 0 0 28px;
}

.band__title {
  margin: 0;
  font-size: var(--fs-section);
  font-weight: 800;
  letter-spacing: var(--tracking-page);
}

/* 서브 섹션 제목. 메인의 틀로리얼·공지, 상세 화면의
   중간 제목처럼 한 단계 작은 자리에 씁니다. */
.band__title--sm { font-size: var(--fs-sub); letter-spacing: var(--tracking-head); }

.band__sub {
  margin: 10px 0 0;
  max-width: 560px;
  color: var(--ink-muted);
  font-size: var(--fs-aux);
  line-height: 1.7;
}

.mono {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--ink-faint);
}

.band__empty { margin: 0; color: var(--ink-faint); font-size: var(--fs-sm); line-height: 1.7; }

/* ------------------------------------------------------------
   카드 그리드
   ------------------------------------------------------------ */

.cards {
  display: grid;
  gap: var(--card-gap);
  list-style: none;
  margin: 0;
  padding: 0;
}

.cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 1023px) {
  .cards--4,
  .cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .cards--4,
  .cards--3 { grid-template-columns: minmax(0, 1fr); }
}

.card { display: block; color: var(--ink); text-decoration: none; }
.card:hover { color: var(--ink); text-decoration: none; }

.card__img {
  display: block;
  overflow: hidden;
  background: var(--bg-alt);
  border: 1px solid var(--line);
}

.card__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.card:hover .card__img img { transform: scale(1.03); }

.card__img--170 { height: 170px; }
.card__img--190 { height: 190px; }
.card__img--160 { height: 160px; }

/* 사진이 아직 없는 자리 — 회색 면 + 제품명 모노 라벨.
   회색 박스와 아이콘 조합은 쓰지 않습니다. (핸드오프 Assets) */
.card__hold {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: var(--tracking-label);
  color: var(--ink-faint);
  text-transform: uppercase;
}

.card__label { display: block; margin: 16px 0 6px; }

.card__name {
  display: block;
  margin: 16px 0 6px;
  font-size: var(--fs-card);
  font-weight: 700;
  letter-spacing: var(--tracking-card);
  line-height: 1.45;
}

.card__label + .card__name { margin-top: 6px; }
.card:hover .card__name { color: var(--accent); }

.card__desc { display: block; margin: 0 0 12px; color: var(--ink-muted); font-size: var(--fs-aux); line-height: 1.6; }

.card__go { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-size: var(--fs-aux); font-weight: 600; }
.card__go i { font-style: normal; transition: transform .3s ease; }
.card:hover .card__go i { transform: translateX(4px); }

/* ------------------------------------------------------------
   리스트 — 지멘스식 테이블 리듬

   첫 행 상단선만 2px 잉크, 나머지는 1px.
   ------------------------------------------------------------ */

.rows { list-style: none; margin: 0; padding: 0; }
.rows > li { border-bottom: 1px solid var(--border); }
.rows > li:first-child { border-top: 2px solid var(--ink); }

.row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 13px 0;
  color: var(--ink);
  text-decoration: none;
}

.row:hover { color: var(--accent); text-decoration: none; }
.row__title { font-size: var(--fs-sm); font-weight: 500; }
.row__meta { margin-left: auto; font-family: var(--font-mono); font-size: var(--fs-mono); color: var(--ink-dim); white-space: nowrap; }

/* 4단계 프로세스 · 모듈 리스트 */
.step { display: flex; gap: 16px; padding: 18px 0; }
.step__n { flex: 0 0 auto; font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--ink-faint); }
.step__t { margin: 0 0 5px; font-size: var(--fs-list); font-weight: 700; letter-spacing: var(--tracking-card); }
.step__d { margin: 0; color: var(--ink-muted); font-size: var(--fs-aux); line-height: 1.6; }

.mod { display: flex; align-items: baseline; gap: 14px; padding: 15px 0; }
.mod__code { flex: 0 0 auto; font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--ink-faint); }
.mod__name { font-size: var(--fs-list); font-weight: 600; }
.mod__h { margin-left: auto; color: var(--ink-muted); font-size: 14px; white-space: nowrap; }

/* 교육 페이지 커리큘럼 모듈 카드 — 2열, 칸마다 라벨 · 이름 · 요약 */
.mods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--card-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.mods > li { display: flex; }

.mods__card {
  display: flex;
  flex-direction: column;
  gap: calc(var(--row-y) * 0.75);
  width: 100%;
  padding: calc(var(--row-y) * 2) calc(var(--row-y) * 2.5);
  background: var(--bg-alt);
  border: 1px solid var(--bg-alt);
  color: var(--ink);
  text-decoration: none;
}

a.mods__card:hover { border-color: var(--accent); color: var(--ink); text-decoration: none; }

.mods__label { color: var(--ink-muted); font-size: var(--fs-sm); font-weight: 600; }
.mods__code  { font-family: var(--font-mono); }
.mods__name  { font-size: var(--fs-card); font-weight: 800; letter-spacing: var(--tracking-card); line-height: 1.35; }
.mods__text  { color: var(--ink-soft); font-size: var(--fs-sm); line-height: 1.8; }

@media (max-width: 767px) {
  .mods { grid-template-columns: minmax(0, 1fr); }
}

/* ------------------------------------------------------------
   2열 레이아웃
   ------------------------------------------------------------ */

.two {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0 var(--col-gap);
  align-items: start;
}

@media (max-width: 1023px) {
  .two { grid-template-columns: minmax(0, 1fr); gap: var(--band-y) 0; }
}

.two__lead { margin: 18px 0 24px; color: var(--ink-soft); font-size: var(--fs-read); line-height: var(--lh-read); }

/* ------------------------------------------------------------
   학교 로고 스트립
   ------------------------------------------------------------ */

.logos {
  display: flex;
  align-items: center;
  gap: 44px;
  flex-wrap: wrap;
  padding: 24px 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.logos__label { color: var(--ink-muted); font-size: var(--fs-xs); font-weight: 700; white-space: nowrap; }
.logos__list { display: flex; align-items: center; gap: 44px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }

.logos__list img {
  height: 40px;
  width: auto;
  filter: grayscale(1);
  opacity: 0.7;
  transition: filter .18s ease, opacity .18s ease;
}

.logos__list li:hover img { filter: none; opacity: 1; }
.logos__name { color: var(--ink-faint); font-size: var(--fs-xs); }

/* ------------------------------------------------------------
   최종 CTA 밴드
   ------------------------------------------------------------ */

.cta { background: var(--ink); color: var(--on-dark); }

.cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gutter);
  flex-wrap: wrap;
  padding: var(--ink-y) var(--gutter);
  max-width: var(--max-width);
  margin: 0 auto;
}

.cta__title { margin: 0 0 8px; font-size: var(--fs-sub); font-weight: 800; letter-spacing: var(--tracking-head); }
.cta__sub { margin: 0; color: var(--on-dark-muted); font-size: var(--fs-sm); }

/* 밝은 강조 밴드 (제품 상세의 교육 연결).
   페이지당 파란 primary 버튼은 하나뿐이라 여기 버튼은 잉크입니다. */
.linkband { background: var(--bg-alt); }

.linkband__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gutter);
  flex-wrap: wrap;
  padding: 48px var(--gutter);
  max-width: var(--max-width);
  margin: 0 auto;
}

.linkband__title { margin: 0 0 8px; font-size: 24px; font-weight: 800; letter-spacing: var(--tracking-head); }
.linkband__sub { margin: 0; color: var(--ink-muted); font-size: var(--fs-sm); }

/* ------------------------------------------------------------
   브레드크럼
   ------------------------------------------------------------ */

.crumb { border-bottom: 1px solid var(--line); }

.crumb__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px var(--gutter);
  color: var(--ink-faint);
  font-size: var(--fs-xs);
}

.crumb__inner a { color: var(--ink-faint); }
.crumb__inner a:hover { color: var(--accent); }
.crumb__sep { padding: 0 8px; }

/* ------------------------------------------------------------
   제품 상세
   ------------------------------------------------------------ */

.phero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border-bottom: 1px solid var(--line);
}

.phero__text { padding: var(--band-y) var(--gutter); align-self: center; }
.phero__label { margin: 0 0 14px; color: var(--accent); }

.phero__name {
  margin: 0 0 18px;
  font-size: var(--fs-page);
  font-weight: 800;
  letter-spacing: var(--tracking-page);
  line-height: 1.15;
}

.phero__desc { max-width: 440px; margin: 0 0 28px; color: var(--ink-soft); font-size: var(--fs-read); line-height: var(--lh-read); }
.phero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 0; }
.phero__actions--gap { margin-top: 28px; }

.phero__figure {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  background: var(--bg-alt);
  border-left: 1px solid var(--line);
  overflow: hidden;
}

.phero__figure img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 1023px) {
  .phero { grid-template-columns: minmax(0, 1fr); }
  .phero__figure { min-height: 280px; border-left: 0; border-top: 1px solid var(--line); }
}

.spec4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.spec4__item { padding: 26px var(--gutter); border-right: 1px solid var(--line); }
.spec4__item:last-child { border-right: 0; }
.spec4__k { display: block; margin: 0 0 10px; }
.spec4__v { display: block; font-size: var(--fs-body); font-weight: 600; }

@media (max-width: 1023px) {
  .spec4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec4__item:nth-child(2n) { border-right: 0; }
  .spec4__item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 767px) {
  .spec4 { grid-template-columns: minmax(0, 1fr); }
  .spec4__item { border-right: 0; border-bottom: 1px solid var(--line); }
  .spec4__item:last-child { border-bottom: 0; }
}

/* ------------------------------------------------------------
   출강 문의 폼 (맞춤형 교육)
   ------------------------------------------------------------ */

.ask__title { margin: 0 0 16px; font-size: 26px; font-weight: 800; letter-spacing: var(--tracking-head); }
.ask__lead { margin: 0 0 24px; color: var(--ink-soft); font-size: var(--fs-read); line-height: var(--lh-read); }
.ask__contact { margin: 0; color: var(--ink-muted); font-size: var(--fs-sm); line-height: 1.9; }
.ask__contact a { color: var(--accent); }

.ask__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }

@media (max-width: 767px) {
  .ask__grid { grid-template-columns: minmax(0, 1fr); }
}

.fld { display: block; margin: 0 0 16px; }
.fld__l { display: block; margin: 0 0 7px; font-size: var(--fs-xs); font-weight: 600; color: var(--ink-soft); }

.fld__i {
  display: block;
  width: 100%;
  padding: 13px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-aux);
  line-height: 1.5;
}

.fld__i::placeholder { color: var(--ink-dim); }

.fld__i:focus {
  outline: 2px solid rgba(47, 95, 208, 0.2);
  outline-offset: 0;
  border-color: var(--accent);
}

.fld__e { display: block; margin: 6px 0 0; color: var(--state-warn); font-size: var(--fs-xs); }
.fld__e--top { margin: 0 0 16px; }

.ask__done {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--ink-soft);
  font-size: var(--fs-read);
  line-height: var(--lh-read);
}

/* 허니팟. 화면 밖으로 밀어냅니다 —
   display:none 은 요즘 봇이 건너뜁니다. */
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ------------------------------------------------------------
   본문 (마크다운을 렌더한 결과)

   문서 영역의 .doc-body 와 다릅니다.
   doc.css 는 홍보 레이아웃에서 안 실립니다.
   홍보 화면에서 마크다운을 뿌릴 때는 이걸 쓰세요.
   ------------------------------------------------------------ */

.prose {
  max-width: 760px;
  color: var(--ink-soft);
  font-size: var(--fs-read);
  line-height: var(--lh-read);
}

.prose h2 { margin: 40px 0 14px; font-size: var(--fs-sub); font-weight: 800; letter-spacing: var(--tracking-head); color: var(--ink); }
.prose h3 { margin: 32px 0 12px; font-size: var(--fs-list); font-weight: 700; color: var(--ink); }
.prose p  { margin: 0 0 16px; }
.prose ul,
.prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin: 0 0 6px; }
.prose img { max-width: 100%; height: auto; border: 1px solid var(--line); }
.prose a { color: var(--accent); }

.prose pre {
  margin: 0 0 16px;
  padding: 18px;
  overflow-x: auto;
  background: var(--ink-hero);
  color: var(--on-dark-body);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  line-height: 1.6;
}

.prose code { font-family: var(--font-mono); font-size: var(--fs-xs); }
.prose pre code { background: none; padding: 0; }

.prose > code,
.prose p code,
.prose li code { padding: 1px 5px; background: var(--bg-alt); }

.prose table { width: 100%; margin: 0 0 16px; border-collapse: collapse; font-size: var(--fs-sm); }
.prose th,
.prose td { padding: 11px 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--bg-alt); font-weight: 700; }

.prose blockquote {
  margin: 0 0 16px;
  padding: 14px 18px;
  background: var(--bg-alt);
  border-left: 2px solid var(--accent);
}

/* ------------------------------------------------------------
   제품 이야기 섹션 (사진 · 글이 번갈아 나오는 구간)

   제품 상세의 아래쪽입니다. 내용은 제품마다 달라
   app/Views/products/story/{slug}.php 에 직접 씁니다.
   ------------------------------------------------------------ */

.story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--col-gap);
  align-items: center;
  padding: var(--band-y) 0;
  border-top: 1px solid var(--line);
}

/* 짝수 번째는 사진을 오른쪽으로. 눈이 좌우로 번갈아 가게 합니다. */
.story--flip .story__figure { order: 2; }

@media (max-width: 1023px) {
  .story { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .story--flip .story__figure { order: 0; }
}

.story__label { margin: 0 0 12px; color: var(--accent); }

.story__title {
  margin: 0 0 16px;
  font-size: var(--fs-sub);
  font-weight: 800;
  letter-spacing: var(--tracking-head);
  line-height: 1.3;
}

.story__text { margin: 0 0 14px; color: var(--ink-soft); font-size: var(--fs-read); line-height: var(--lh-read); }
.story__text:last-child { margin-bottom: 0; }

.story__figure {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  overflow: hidden;
}

.story__figure img { display: block; width: 100%; height: auto; }

/* 사진이 아직 없는 자리. 회색 면 + 모노 라벨입니다. */
.story__hold {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: var(--tracking-label);
  color: var(--ink-faint);
  text-align: center;
  padding: var(--gutter);
  line-height: 2;
}

/* 포함사항처럼 항목이 많은 목록 */
.ticks { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: var(--col-gap); }
.ticks li { break-inside: avoid; padding: 7px 0; color: var(--ink-soft); font-size: var(--fs-sm); }
.ticks li::before { content: "\2014"; margin-right: 10px; color: var(--ink-faint); }

@media (max-width: 767px) {
  .ticks { columns: 1; }
}

/* 사양 표 */
.specs { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.specs tr { border-bottom: 1px solid var(--line); }
.specs tr:first-child { border-top: 2px solid var(--ink); }
.specs th { width: 200px; padding: 14px 0; text-align: left; color: var(--ink-muted); font-weight: 600; }
.specs td { padding: 14px 0; }

@media (max-width: 767px) {
  .specs th { width: 120px; }
}

/* 풀폭 사진 띄 */
.shot { background: var(--bg-alt); border-top: 1px solid var(--line); }

/* ------------------------------------------------------------
   메인 전체 화면 섹션 (2026-10 메인 시안)

   섹션 하나가 화면 한 장. 가로는 끝까지 바탕이 차고, 내용은 --wide-w 안에.
   흰색(.fs) · 회색(.fs--alt) · 검정(.fs--dark)을 번갈아 써서
   스크롤할 때 어디서 섹션이 바뀌는지 바로 보이게 합니다.
   ------------------------------------------------------------ */

.wrap--wide { max-width: var(--wide-w); }

/* 첫 화면: 열자마자 브라우저 화면 전체를 채웁니다 (핑크랩과 같은 방식).
   메뉴는 사진 위에 투명하게 걸치고, 아래로 내리면 짙은 바탕이 됩니다(home.js).
   너무 낮은 창에서는 --hero-h 아래로 줄지 않습니다. */
.hero--full {
  min-height: max(var(--hero-h), 100vh);
  margin-top: calc(var(--header-h) * -1);
  padding-top: var(--header-h);
}
@supports (height: 100svh) {
  .hero--full { min-height: max(var(--hero-h), 100svh); }
}

body:has(.hero--full) .gnb { background: transparent; transition: background-color .25s ease; }
body:has(.hero--full) .gnb.is-solid { background: var(--ink); }

/* 화면 아래 가운데 ↓ — 아래에 더 있다는 표시. 누르면 자라봇 소개로. */
.hero__down {
  position: absolute;
  left: 50%;
  bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 64px;
  margin-left: -22px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 22px;
  color: var(--on-dark);
  font-size: 20px;
  text-decoration: none;
}

.hero__down:hover { background: var(--on-dark); color: var(--ink); text-decoration: none; }

.hero--full .hero__lead { max-width: 620px; }

/* 섹션 높이는 내용만큼입니다. 예전에는 화면 한 장 높이(100vh)를 채웠는데
   내용이 짧은 섹션은 위아래가 비어 휑해 보여 뺐습니다 (2026-10). */
.fs {
  padding: calc(var(--band-y) * 1.2) 0;
  background: var(--bg);
  border-top: 1px solid var(--line);
}

.fs > .wrap { width: 100%; }

/* 히어로의 [자라봇 보기] 로 뛸 때 제목이 고정 메뉴 밑에 숨지 않게 */
.fs[id] { scroll-margin-top: var(--header-h); }

.fs--alt  { background: var(--bg-alt); border-top-color: var(--bg-alt); }
.fs--dark { background: var(--black); border-top-color: var(--black); color: var(--on-dark); }

.fs__head { max-width: 760px; margin: 0 0 calc(var(--band-y) * 0.7); }

.fs__title {
  margin: 0 0 20px;
  font-size: var(--fs-display);
  font-weight: 800;
  letter-spacing: var(--tracking-page);
  line-height: 1.2;
}

.fs__lead { margin: 0; color: var(--ink-soft); font-size: var(--fs-read); line-height: var(--lh-read); }

/* 사진 · 글 두 칸. 사진 쪽을 더 넓게 줍니다. */
.story--bare {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  padding: 0;
  border-top: 0;
}

.story--bare.story--flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }

.story--bare .story__figure img { max-height: 72vh; object-fit: contain; margin: 0 auto; }

@media (max-width: 1023px) {
  .story--bare,
  .story--bare.story--flip { grid-template-columns: minmax(0, 1fr); }
}

/* 검정 섹션 안의 글자 */
.fs--dark .story__label { color: var(--on-dark-muted); }
.fs--dark .story__text  { color: var(--on-dark-body); }
.fs--dark .fs__title    { color: var(--on-dark); }
.go--dark { color: var(--on-dark); }
.go--dark:hover { color: var(--on-dark-soft); }

.story__figure--dark { background: var(--black); border-color: rgba(255, 255, 255, 0.12); }
.story__link { display: block; }
.story__link:hover .story__figure--dark { border-color: rgba(255, 255, 255, 0.4); }

/* JARABOT 실물 두 대 — 나란히 크게 */
.duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--card-gap);
}

.duo__item { margin: 0; }
.duo__item .story__figure { aspect-ratio: 6 / 5; }
.duo__item .story__figure img { width: 100%; height: 100%; object-fit: cover; }
.duo__item .story__hold { height: 100%; }

.duo__item figcaption,
.parts__item figcaption {
  margin: 14px 0 0;
  color: var(--ink-muted);
  font-size: var(--fs-aux);
  line-height: 1.6;
}

.duo__item figcaption strong { margin-right: 8px; color: var(--ink); font-size: var(--fs-card); }

@media (max-width: 767px) {
  .duo { grid-template-columns: minmax(0, 1fr); }
}

/* 구성품 — 완성 모습 크게 + 부품 세 장 */
.parts {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr);
  gap: var(--card-gap);
  margin: 0 0 calc(var(--band-y) * 0.6);
}

.parts__item { margin: 0; display: flex; flex-direction: column; }
.parts__item--main { grid-row: span 2; }
.parts__item--pair { grid-column: span 2; }

.parts__item .story__figure { flex: 1 1 auto; display: flex; align-items: center; background: var(--bg); }
.parts__item .story__figure img { width: 100%; max-height: 300px; object-fit: contain; }
.parts__item--main .story__figure img { max-height: 640px; }
.parts__item .story__hold { width: 100%; min-height: 180px; }

.parts__pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--card-gap); flex: 1 1 auto; }
.parts__pair .story__figure img { max-height: 220px; }

@media (max-width: 1023px) {
  .parts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .parts__item--main { grid-row: auto; grid-column: span 2; }
}

@media (max-width: 767px) {
  .parts { grid-template-columns: minmax(0, 1fr); }
  .parts__item--main,
  .parts__item--pair { grid-column: auto; }
}

/* NEWS — 옆으로 넘겨 보는 띠. 카드는 화면 오른쪽 끝까지 이어집니다. */
.news {
  padding: calc(var(--band-y) * 1.2) 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.news__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--gutter);
  margin-bottom: 28px;
}

.news__head .fs__title { margin-bottom: 0; }

.news__nav { display: flex; gap: 8px; }

.news__btn {
  width: 48px;
  height: 48px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--ink);
  font-size: 18px;
  cursor: pointer;
}

.news__btn:hover { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }

/* 왼쪽 시작점은 위 제목과 맞추고, 오른쪽은 화면 끝까지 열어 둡니다. */
.news__track {
  display: flex;
  gap: var(--card-gap);
  margin: 0;
  padding: 0 var(--gutter) 8px max(var(--gutter), calc((100vw - var(--wide-w)) / 2 + var(--gutter)));
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: max(var(--gutter), calc((100vw - var(--wide-w)) / 2 + var(--gutter)));
  scrollbar-width: thin;
}

.news__card {
  flex: 0 0 clamp(260px, 28vw, 420px);
  scroll-snap-align: start;
}

.news__card a { display: block; color: var(--ink); text-decoration: none; }
.news__card a:hover .news__title { color: var(--accent); }

.news__img {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--line);
}

.news__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.news__img .story__hold { height: 100%; min-height: 0; }

.news__date { display: block; margin: 16px 0 6px; font-family: var(--font-mono); font-size: var(--fs-mono); color: var(--ink-faint); }
.news__title { display: block; font-size: var(--fs-card); font-weight: 700; letter-spacing: var(--tracking-card); line-height: 1.45; }
.news__card--hold .news__title { color: var(--ink-faint); font-weight: 500; }
.shot img { display: block; width: 100%; max-height: 520px; object-fit: cover; }

/* ------------------------------------------------------------
   스크롤 등장

   화면에 들어올 때 12px 올라오며 나타납니다.
   자바스크립트가 안 돈다면 그냥 처음부터 보입니다 —
   .is-reveal 는 reveal.js 가 붙입니다.
   ------------------------------------------------------------ */

.is-reveal { opacity: 0; transform: translateY(12px); }

.is-reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity .24s ease, transform .24s ease;
}

/* 움직임을 줄이도록 설정한 사람에게는 그냥 보여줍니다. */
@media (prefers-reduced-motion: reduce) {
  .is-reveal { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------
   푸터
   ------------------------------------------------------------ */

.foot { background: var(--bg-footer); }

.foot__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--gutter);
  flex-wrap: wrap;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 28px var(--gutter);
  color: #6b7683;
  font-size: var(--fs-xs);
  line-height: 1.8;
}

.foot__line { margin: 0; }
.foot__copy { margin: 10px 0 0; color: var(--ink-faint); }

.foot__policy { display: flex; gap: 16px; flex-wrap: wrap; margin: 0 0 10px; }
.foot__policy a { color: #6b7683; }
.foot__policy--strong { color: var(--ink); font-weight: 700; }

.foot__nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot__nav a { color: #6b7683; }

/* ------------------------------------------------------------
   커뮤니티 — 공지사항 · 자료실 (app/Views/community)

   기업 뉴스룸 · 고객지원 화면에서 흔히 쓰는 모양입니다.
     · 짙은 바탕 큰 제목 + 밑줄 탭 (메인 첫 화면과 같은 톤)
     · 공지사항: 표가 아닌 큰 줄 목록 — 날짜 블록 │ 제목 + 본문 한 줄 │ →
     · 자료실: 파일 형식 표시가 있는 카드 격자
     · 글 보기: 읽는 폭 줄이고 큰 제목, 첨부는 본문 위
   ------------------------------------------------------------ */

/* 머리 */
.cm-hero { background: var(--ink-hero); color: var(--on-dark); }
.cm-hero__inner { padding-top: calc(var(--band-y) * 1.2); padding-bottom: calc(var(--band-y) * 0.9); }

/* 커뮤니티 머리 사진 (공지사항 · 자료실 공통). 높이에 맞춰 오른쪽에 붙고,
   남는 왼쪽은 사진 끝과 같은 색으로 채웁니다.
   화면이 좁으면 사진이 글자 밑으로 들어오므로 스크림을 깔아 글자를 읽히게 합니다.
   게시판마다 다른 사진을 쓰려면 .cm-hero--notice 처럼 따로 적으세요. */
.cm-hero--archive,
.cm-hero--notice {
  background: var(--archive-hero-bg) url("/assets/img/community/archive.svg") no-repeat right center / auto 100%;
}
.cm-hero--archive .cm-hero__inner,
.cm-hero--notice .cm-hero__inner { padding-top: calc(var(--band-y) * 1.8); padding-bottom: calc(var(--band-y) * 1.4); }
@media (max-width: 1023px) {
  .cm-hero--archive,
  .cm-hero--notice {
    background-image: linear-gradient(90deg, var(--archive-hero-bg) 0%, var(--archive-hero-scrim) 55%, transparent 100%),
                      url("/assets/img/community/archive.svg");
    background-size: 100% 100%, auto 100%;
    background-position: 0 0, right center;
  }
}
.cm-hero__label { margin: 0 0 14px; color: var(--on-dark-muted); }
.cm-hero__title { margin: 0; font-size: var(--fs-display); font-weight: 800; letter-spacing: var(--tracking-page); line-height: 1.15; }
.cm-hero__lead { margin: 16px 0 0; color: var(--on-dark-body); font-size: var(--fs-read); }

.cm-tabs { border-top: 1px solid rgba(255, 255, 255, 0.12); }
.cm-tabs__inner { display: flex; gap: 36px; }
.cm-tabs__tab {
  padding: 20px 0 18px;
  border-bottom: 3px solid transparent;
  color: var(--on-dark-muted);
  font-size: var(--fs-body);
  font-weight: 600;
  text-decoration: none;
}
.cm-tabs__tab:hover { color: var(--on-dark); text-decoration: none; }
.cm-tabs__tab.is-on { border-bottom-color: var(--accent); color: var(--on-dark); }

/* 글쓰기 화면 제목 */
.cm-head__title { margin: 6px 0 0; font-size: var(--fs-page); font-weight: 800; letter-spacing: var(--tracking-page); }

.cm { padding: calc(var(--band-y) * 0.9) 0 calc(var(--band-y) * 1.4); }

.cm-flash { margin: 0 0 24px; padding: 14px 18px; background: var(--bg-alt); border-left: 3px solid var(--accent); color: var(--ink); font-size: var(--fs-sm); }

/* 건수 · 검색 · 글쓰기 */
.cm-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--gutter-sm);
  flex-wrap: wrap;
  margin: 0 0 20px;
  padding: 0 0 16px;
  border-bottom: 2px solid var(--ink);
}
.cm-bar__count { margin: 0; color: var(--ink-muted); font-family: var(--font-mono); font-size: var(--fs-sm); }
.cm-bar__count strong { color: var(--ink); font-size: var(--fs-list); }
.cm-bar__clear { margin-left: 12px; font-family: var(--font-sans); font-size: var(--fs-xs); color: var(--ink-faint); }
.cm-bar__right { display: flex; align-items: center; gap: 12px; }

.cm-search { display: flex; align-items: center; border-bottom: 1px solid var(--ink-faint); }
.cm-search:focus-within { border-bottom-color: var(--ink); }
.cm-search__i {
  width: 260px;
  padding: 8px 4px;
  background: none;
  border: 0;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
}
.cm-search__i:focus { outline: none; }
.cm-search__b { display: flex; padding: 6px; background: none; border: 0; color: var(--ink); cursor: pointer; }
.cm-search__b svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.cm-write-btn {
  padding: 10px 20px;
  background: var(--ink);
  border-radius: 999px;
  color: var(--on-dark);
  font-size: var(--fs-sm);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.cm-write-btn:hover { background: var(--accent); color: var(--accent-ink); text-decoration: none; }

.cm-empty { padding: 96px 0; text-align: center; }
.cm-empty__t { margin: 0 0 20px; color: var(--ink-faint); font-size: var(--fs-read); }
.cm-muted { color: var(--ink-faint); }

.cm-pin {
  display: inline-block;
  margin-right: 8px;
  padding: 2px 9px;
  background: var(--accent);
  border-radius: 999px;
  color: var(--accent-ink);
  font-size: var(--fs-label);
  font-weight: 700;
  vertical-align: 2px;
}

/* 공지사항 — 큰 줄 목록 */
.cm-rows { list-style: none; margin: 0; padding: 0; }
.cm-rows > li { border-bottom: 1px solid var(--line); }

.cm-row {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 30px 12px;
  color: var(--ink);
  text-decoration: none;
  transition: background-color .2s ease;
}
.cm-row:hover { background: var(--bg-alt); color: var(--ink); text-decoration: none; }
.cm-row.is-pin { background: var(--bg-alt); }

.cm-row__date { flex: 0 0 72px; display: flex; flex-direction: column; align-items: center; line-height: 1; }
.cm-row__date strong { font-size: 40px; font-weight: 800; letter-spacing: -0.04em; }
.cm-row__date span { margin-top: 8px; color: var(--ink-faint); font-family: var(--font-mono); font-size: var(--fs-label); }

.cm-row__body { flex: 1 1 auto; min-width: 0; }
.cm-row__title { display: block; font-size: var(--fs-card); font-weight: 700; letter-spacing: var(--tracking-card); line-height: 1.45; }
.cm-row:hover .cm-row__title { color: var(--accent); }
.cm-row__text {
  display: block;
  margin-top: 8px;
  overflow: hidden;
  color: var(--ink-muted);
  font-size: var(--fs-aux);
  white-space: nowrap;
  text-overflow: ellipsis;
}
.cm-row__clip { display: inline-flex; margin-left: 6px; color: var(--ink-faint); vertical-align: -2px; }
.cm-row__clip svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.cm-row__go {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--ink-faint);
  transition: all .2s ease;
}
.cm-row:hover .cm-row__go { background: var(--ink); border-color: var(--ink); color: var(--on-dark); transform: translateX(4px); }

@media (max-width: 767px) {
  .cm-row { gap: 18px; padding: 22px 4px; }
  .cm-row__date { flex-basis: 48px; }
  .cm-row__date strong { font-size: 28px; }
  .cm-row__go { display: none; }
  .cm-search__i { width: 100%; }
  .cm-bar__right { width: 100%; }
  .cm-search { flex: 1 1 auto; }
}

/* 자료실 — 카드 격자 */
.cm-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--card-gap);
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}
@media (max-width: 1023px) { .cm-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px)  { .cm-cards { grid-template-columns: minmax(0, 1fr); } }

.cm-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 240px;
  padding: 28px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  transition: border-color .2s ease, transform .2s ease;
}
.cm-card:hover { border-color: var(--ink); color: var(--ink); text-decoration: none; transform: translateY(-4px); }

.cm-card__exts { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 22px; }
.cm-card__title { font-size: var(--fs-card); font-weight: 700; letter-spacing: var(--tracking-card); line-height: 1.45; }
.cm-card:hover .cm-card__title { color: var(--accent); }
.cm-card__text {
  display: -webkit-box;
  margin-top: 10px;
  overflow: hidden;
  color: var(--ink-muted);
  font-size: var(--fs-aux);
  line-height: 1.6;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.cm-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 22px;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
}
.cm-card__get { display: inline-flex; align-items: center; gap: 5px; color: var(--accent); font-family: var(--font-sans); font-size: var(--fs-xs); font-weight: 700; }
.cm-card__get svg,
.cm-files__get svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* 파일 형식 표시. 색은 tokens.css 의 --ext-* */
.cm-ext {
  display: inline-block;
  min-width: 42px;
  padding: 3px 8px;
  background: var(--ink);
  color: var(--on-dark);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  text-align: center;
  letter-spacing: 0.04em;
}
.cm-ext--pdf  { background: var(--ext-pdf); }
.cm-ext--zip, .cm-ext--gz, .cm-ext--tgz, .cm-ext--7z, .cm-ext--tar { background: var(--ext-zip); }
.cm-ext--py   { background: var(--ext-py); }
.cm-ext--cpp, .cm-ext--c, .cm-ext--h, .cm-ext--hpp, .cm-ext--ino { background: var(--ext-cpp); }
.cm-ext--yaml, .cm-ext--yml, .cm-ext--urdf, .cm-ext--xacro, .cm-ext--xml, .cm-ext--launch { background: var(--ext-conf); }
.cm-ext--hwp, .cm-ext--hwpx, .cm-ext--docx { background: var(--ext-doc); }
.cm-ext--pptx { background: var(--ext-ppt); }
.cm-ext--xlsx, .cm-ext--csv { background: var(--ext-sheet); }
.cm-ext--none { background: var(--ink-faint); }

/* 쪽 번호 */
.cm-pager { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 56px 0 0; font-family: var(--font-mono); font-size: var(--fs-sm); }
.cm-pager a,
.cm-pager strong {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--ink-muted);
  text-decoration: none;
}
.cm-pager a:hover { background: var(--bg-alt); color: var(--ink); }
.cm-pager strong { background: var(--ink); color: var(--on-dark); }

.cm-actions { display: flex; justify-content: flex-end; gap: 8px; margin: 24px 0 0; }
.cm-actions--split { justify-content: space-between; }

/* 글 보기 */
.cm-read { max-width: calc(860px + var(--gutter) * 2); }

.cm-post__head { padding: 0 0 28px; border-bottom: 1px solid var(--line); }
.cm-post__cat { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: var(--fs-sm); font-weight: 700; }
.cm-post__cat a { color: var(--accent); text-decoration: none; }
.cm-post__title { margin: 0 0 20px; font-size: var(--fs-section); font-weight: 800; letter-spacing: var(--tracking-page); line-height: 1.3; }
.cm-post__meta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; color: var(--ink-faint); font-size: var(--fs-xs); }
.cm-post__meta > span + span::before { content: ""; display: inline-block; width: 1px; height: 10px; margin-right: 18px; background: var(--border); }
.cm-post__tools { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.cm-post__tools::before { display: none !important; }
.cm-post__tools form { margin: 0; }
.cm-post__tools a,
.cm-post__tools button { padding: 0; background: none; border: 0; color: var(--ink-muted); font: inherit; cursor: pointer; }
.cm-post__tools a:hover,
.cm-post__tools button:hover { color: var(--accent); text-decoration: underline; }

.cm-post__body { max-width: none; padding: 40px 0 56px; min-height: 160px; font-size: var(--fs-read); }

.cm-files { margin: 28px 0 0; padding: 22px 24px; background: var(--bg-alt); }
.cm-files__title { margin: 0 0 14px; font-size: var(--fs-sm); font-weight: 700; }
.cm-files__title span { margin-left: 4px; color: var(--accent); font-family: var(--font-mono); }
.cm-files__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cm-files__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: var(--fs-sm);
  text-decoration: none;
  transition: border-color .2s ease;
}
.cm-files__item:hover { border-color: var(--ink); color: var(--ink); text-decoration: none; }
.cm-files__name { flex: 1 1 auto; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 500; }
.cm-files__size { color: var(--ink-faint); font-family: var(--font-mono); font-size: var(--fs-label); }
.cm-files__get {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--on-dark);
}
.cm-files__item:hover .cm-files__get { background: var(--accent); }

/* 이전글 · 다음글 — 좌우 두 칸 */
.cm-near {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
}
.cm-near__item { display: block; padding: 22px 8px; color: var(--ink); text-decoration: none; }
.cm-near__item--next { text-align: right; border-left: 1px solid var(--line); }
.cm-near__item:hover { background: var(--bg-alt); color: var(--ink); text-decoration: none; }
.cm-near__label { display: block; margin: 0 0 6px; color: var(--ink-faint); font-family: var(--font-mono); font-size: var(--fs-label); }
.cm-near__item--prev .cm-near__label::before { content: "\2190  "; }
.cm-near__item--next .cm-near__label::after  { content: "  \2192"; }
.cm-near__title { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 600; }
.cm-near__item.is-none .cm-near__title { color: var(--ink-dim); font-weight: 400; }

.cm-back { display: flex; justify-content: center; margin: 40px 0 0; }

@media (max-width: 767px) {
  .cm-near { grid-template-columns: minmax(0, 1fr); }
  .cm-near__item--next { text-align: left; border-left: 0; border-top: 1px solid var(--line); }
}

/* 글쓰기 · 고치기는 관리 화면으로 옮겼습니다 (2026-11, admin/board-edit.php · admin-ui.css). */

/* 메뉴 바로가기(#curriculum 등)로 왔을 때 고정 헤더에 제목이 가려지지 않게 */
#curriculum, #field, #ask, #jarabot { scroll-margin-top: var(--header-h); }

/* ------------------------------------------------------------
   메인 EDUCATION — 현장 사진 모자이크 + 3일 과정 (products/story/jarabot.php)

     [큰 사진 2×2][사진][사진]
     [          ][사진][사진]
     [DAY 1      ][DAY 2      ][DAY 3      ]
   ------------------------------------------------------------ */

.home-edu__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--col-gap);
  flex-wrap: wrap;
  margin: 0 0 36px;
}
.home-edu__lead { max-width: 440px; margin: 0; color: var(--ink-muted); font-size: var(--fs-read); line-height: var(--lh-read); }
.home-edu__lead .go { display: inline-flex; margin-top: 12px; }

.home-edu__photos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 220px;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.home-edu__photo--big { grid-column: span 2; grid-row: span 2; }
.home-edu__photo a { position: relative; display: block; height: 100%; overflow: hidden; background: var(--ink); }
.home-edu__photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.home-edu__photo a:hover img { transform: scale(1.05); }
.home-edu__photo span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 32px 16px 14px;
  background: linear-gradient(0deg, rgba(19, 26, 36, 0.8) 0%, rgba(19, 26, 36, 0) 100%);
  color: var(--on-dark);
  font-size: var(--fs-xs);
  font-weight: 600;
}

.home-edu__days {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}
.home-edu__days a {
  display: block;
  height: 100%;
  padding: 26px 28px;
  background: var(--bg-alt);
  color: var(--ink);
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}
.home-edu__days a:hover { background: var(--ink); color: var(--on-dark); text-decoration: none; }
.home-edu__day { display: block; margin: 0 0 10px; color: var(--accent); font-family: var(--font-mono); font-size: var(--fs-sm); letter-spacing: var(--tracking-label); }
.home-edu__days strong { display: block; font-size: var(--fs-card); letter-spacing: var(--tracking-card); }
.home-edu__text { display: block; margin-top: 8px; color: var(--ink-muted); font-size: var(--fs-aux); line-height: 1.6; }
.home-edu__days a:hover .home-edu__text { color: var(--on-dark-soft); }

@media (max-width: 1023px) {
  .home-edu__photos { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 180px; }
  .home-edu__days { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
  .home-edu__photos { grid-auto-rows: 130px; gap: 6px; }
  .home-edu__photo span { display: none; }
}

/* ------------------------------------------------------------
   맞춤형 교육 — 커리큘럼 예시 (app/Views/courses/_curriculum.php)

   날짜 탭은 라디오 버튼 + :checked 로 바꿉니다. 스크립트 없음.
   라디오는 눈에는 숨기되 탭 키로 옮겨다닐 수 있게 둡니다.
   ------------------------------------------------------------ */

.cur__head { margin: 0 0 36px; }
.cur__label { margin: 0 0 12px; color: var(--accent); }
.cur__title { margin: 0; font-size: var(--fs-section); font-weight: 800; letter-spacing: var(--tracking-page); line-height: 1.25; }
.cur__sub { margin: 14px 0 0; color: var(--ink-muted); font-size: var(--fs-read); line-height: var(--lh-read); }

.cur__radio { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* 탭: 고르지 않은 것은 흰 카드, 고른 것은 짙은 카드 + 아래 꼭짓점.
   색 차이가 분명해야 지금 며칠째를 보는지 한눈에 보입니다. */
.cur__tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.cur__tab {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease, transform .2s ease;
}
.cur__tab:hover { border-color: var(--ink); color: var(--ink); }

.cur__day {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border: 1px solid var(--border);
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  line-height: 1;
  transition: inherit;
}
.cur__day b { margin-top: 4px; font-size: 22px; font-weight: 500; letter-spacing: 0; }
.cur__tab-lead { display: block; font-size: var(--fs-list); font-weight: 700; letter-spacing: var(--tracking-card); line-height: 1.4; }

#cur-d1:checked ~ .cur__tabs .cur__tab--1,
#cur-d2:checked ~ .cur__tabs .cur__tab--2,
#cur-d3:checked ~ .cur__tabs .cur__tab--3 { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }

#cur-d1:checked ~ .cur__tabs .cur__tab--1 .cur__day,
#cur-d2:checked ~ .cur__tabs .cur__tab--2 .cur__day,
#cur-d3:checked ~ .cur__tabs .cur__tab--3 .cur__day { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* 고른 탭 아래 꼭짓점 — 아래 목록과 이어져 보이게 */
.cur__tab::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -9px;
  width: 16px;
  height: 16px;
  background: var(--ink);
  transform: translateX(-50%) rotate(45deg);
  opacity: 0;
  transition: opacity .2s ease;
}
#cur-d1:checked ~ .cur__tabs .cur__tab--1::after,
#cur-d2:checked ~ .cur__tabs .cur__tab--2::after,
#cur-d3:checked ~ .cur__tabs .cur__tab--3::after { opacity: 1; }

#cur-d1:focus-visible ~ .cur__tabs .cur__tab--1,
#cur-d2:focus-visible ~ .cur__tabs .cur__tab--2,
#cur-d3:focus-visible ~ .cur__tabs .cur__tab--3 { outline: 2px solid var(--accent); outline-offset: -2px; }

.cur__panel { display: none; padding: 34px 0 0; animation: cur-in .35s ease; }
@keyframes cur-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
#cur-d1:checked ~ .cur__panel--1,
#cur-d2:checked ~ .cur__panel--2,
#cur-d3:checked ~ .cur__panel--3 { display: block; }

.cur__theme { margin: 0 0 18px; color: var(--ink-faint); }

.cur__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--line);
  border: 1px solid var(--line);
}
.cur__item { display: flex; gap: 20px; padding: 24px 26px; background: var(--bg); }
.cur__no { flex: 0 0 auto; color: var(--accent); font-family: var(--font-mono); font-size: var(--fs-list); font-weight: 500; line-height: 1.5; }
.cur__body { min-width: 0; }
.cur__name { display: block; font-size: var(--fs-list); font-weight: 700; letter-spacing: var(--tracking-card); line-height: 1.45; }
.cur__text { display: block; margin-top: 6px; color: var(--ink-muted); font-size: var(--fs-aux); line-height: 1.65; }

@media (max-width: 767px) {
  .cur__tabs { gap: 6px; }
  .cur__tab { justify-content: center; padding: 12px 8px; }
  .cur__day { width: 52px; height: 52px; border: 0; background: none; }
  .cur__tab-lead { display: none; }
  .cur__list { grid-template-columns: minmax(0, 1fr); }
  .cur__item { padding: 20px 18px; gap: 14px; }
}

/* ------------------------------------------------------------
   맞춤형 교육 — 교육 현장 사진 · 영상 (app/Views/courses/_gallery.php)

   크기가 다른 칸을 섞은 격자입니다. dense 로 빈칸을 메웁니다.
   설명은 사진 아래쪽 스크림 위에 올리고, 마우스를 올리면 사진이 살짝 커집니다.
   ------------------------------------------------------------ */

.edu-gal__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 210px;
  grid-auto-flow: dense;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.edu-gal__cell--big  { grid-column: span 2; grid-row: span 2; }
.edu-gal__cell--wide { grid-column: span 2; }
.edu-gal__cell--tall { grid-row: span 2; }

.edu-gal__link { position: relative; display: block; height: 100%; overflow: hidden; background: var(--ink); }
.edu-gal__img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, opacity .3s ease; }
.edu-gal__link:hover .edu-gal__img { transform: scale(1.05); opacity: .9; }

.edu-gal__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 36px 16px 14px;
  background: linear-gradient(0deg, rgba(19, 26, 36, 0.85) 0%, rgba(19, 26, 36, 0) 100%);
  color: var(--on-dark);
  font-size: var(--fs-xs);
  font-weight: 600;
  line-height: 1.4;
}

@media (max-width: 1023px) {
  .edu-gal__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 180px; }
}
@media (max-width: 767px) {
  .edu-gal__grid { grid-auto-rows: 140px; gap: 6px; }
  .edu-gal__cap { display: none; }
}

/* 크게 보기 */
.edu-box {
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  max-height: 100vh;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.92);
  color: var(--on-dark);
}
.edu-box[open] { display: flex; align-items: center; justify-content: center; }
.edu-box::backdrop { background: rgba(0, 0, 0, 0.6); }
.edu-box__fig { margin: 0; max-width: calc(100vw - 160px); text-align: center; }
.edu-box__img { display: block; max-width: 100%; max-height: calc(100vh - 120px); margin: 0 auto; }
.edu-box__cap { margin-top: 14px; color: var(--on-dark-soft); font-size: var(--fs-sm); }
.edu-box__btn {
  position: absolute;
  padding: 12px 16px;
  background: none;
  border: 0;
  color: var(--on-dark);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  opacity: .75;
}
.edu-box__btn:hover { opacity: 1; }
.edu-box__close { top: 12px; right: 12px; font-size: 24px; }
.edu-box__prev  { left: 12px; top: 50%; transform: translateY(-50%); }
.edu-box__next  { right: 12px; top: 50%; transform: translateY(-50%); }

@media (max-width: 767px) {
  .edu-box__fig { max-width: 100vw; }
  .edu-box__prev, .edu-box__next { top: auto; bottom: 16px; transform: none; }
}

/* ============================================================
   소개 영상 (components/promo-video.php · assets/js/video.js, 2026-11)
   썸네일 + 재생 버튼 → 누르면 같은 자리에 유튜브 재생기.
   16:9 자리를 미리 잡아 두어 재생기가 뜨면서 화면이 튀지 않습니다.
   ============================================================ */
#video { scroll-margin-top: var(--header-h); }

.vid {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  border-radius: 2px;
  overflow: hidden;
}
.vid__play {
  position: absolute;
  inset: 0;
  display: block;
}
.vid__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease, opacity .3s ease;
}
.vid__play:hover .vid__thumb { transform: scale(1.02); opacity: .9; }
.vid__btn {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 84px;
  height: 84px;
  margin: -42px 0 0 -42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  transition: background .2s ease, transform .2s ease;
}
.vid__play:hover .vid__btn,
.vid__play:focus-visible .vid__btn { background: var(--accent-hover); transform: scale(1.06); }
.vid__btn svg { width: 32px; height: 32px; margin-left: 4px; fill: currentColor; }
.vid iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.vid__note {
  max-width: 1080px;
  margin: 12px auto 0;
  font-size: 13px;
  color: var(--ink-faint);
}

@media (max-width: 767px) {
  .vid__btn { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
  .vid__btn svg { width: 26px; height: 26px; }
}
