/* ============================================================
   PRECISIUM — Admin + Board styles
   ============================================================ */

/* ------------------------------------------------------------
   Admin badge (top-right corner, over the nav)
   ------------------------------------------------------------ */
#adminBadge {
  position: fixed;
  top: 22px;
  right: 200px;   /* leaves space for "Request Quote" button */
  z-index: 100;
  font-family: var(--font-mono);
}
.admin-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--ink-dim);
  padding: 8px 12px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.2s;
}
.admin-toggle:hover {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--ink);
}
#adminBadge.is-active .admin-toggle {
  background: rgba(14, 127, 143, 0.15);
  border-color: rgba(14, 127, 143, 0.6);
  color: var(--accent);
  box-shadow: 0 0 12px rgba(14, 127, 143, 0.35);
}
.admin-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: adminPulse 2s ease-in-out infinite;
}
@keyframes adminPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.admin-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 240px;
  background: rgba(10, 13, 16, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 8px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}
.admin-menu__title {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(14,127,143,0.5);
  padding: 8px 10px 4px;
}
.admin-menu__item {
  display: block;
  width: 100%;
  background: transparent;
  border: none;
  color: var(--ink);
  text-align: left;
  padding: 10px;
  font-family: var(--font-kr);
  font-size: 13px;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.15s;
}
.admin-menu__item:hover { background: rgba(0,0,0,0.06); }
.admin-menu__hint {
  padding: 8px 10px;
  font-size: 10px;
  color: var(--ink-mute);
  line-height: 1.5;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 4px;
}
.admin-menu__hint code {
  background: rgba(14,127,143,0.15);
  color: var(--accent);
  padding: 1px 5px;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 10px;
}

/* ------------------------------------------------------------
   Editable indicators (only visible when admin is on)
   ------------------------------------------------------------ */
body.admin-on .is-editable {
  outline: 1px dashed rgba(14, 127, 143, 0.35);
  outline-offset: 4px;
  cursor: text;
  border-radius: 2px;
  transition: outline-color 0.15s, background 0.15s;
  position: relative;
}
body.admin-on .is-editable:hover {
  outline-color: var(--accent);
  background: rgba(14, 127, 143, 0.05);
}
body.admin-on .is-editable.is-editing {
  outline: 2px solid var(--accent) !important;
  outline-offset: 4px;
  background: rgba(14, 127, 143, 0.08);
}

body.admin-on .is-editable-img {
  outline: 2px dashed rgba(14, 127, 143, 0.35);
  outline-offset: -2px;
  transition: outline-color 0.15s;
}
body.admin-on .is-editable-img:hover {
  outline-color: var(--accent);
}
.img-swap-btn {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 5;
  background: rgba(0, 0, 0, 0.75);
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 6px 12px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  cursor: pointer;
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.2s;
}
body.admin-on .is-editable-img:hover .img-swap-btn { opacity: 1; }
.img-swap-btn:hover {
  background: var(--accent);
  color: #ffffff;
}

/* ============================================================
   Board pages (notice / cases / qna)
   ============================================================ */

body.board-page {
  /* Light theme for all content pages — only the fixed .nav bar (its own
     dark glass, see styles.css) and the home-page CGI hero stay dark.
     예전엔 배경이 살짝 하늘색/티얼 톤이 도는 f8fafc + 은은한 방사형
     그라디언트였는데, 메인 화면 빼고는 색감 없이 순백이 좋겠다는
     피드백으로 순백으로 바꿨다. */
  --bg: #ffffff;
  --bg-2: #eef1f3;
  --ink: #161a1e;
  --ink-dim: #47525a;
  --ink-mute: #7c868d;
  --accent: #0e7f8f;
  --accent-warm: #b06a1f;
  --line: rgba(0, 0, 0, 0.08);
  --line-2: rgba(0, 0, 0, 0.14);
  background: var(--bg);
  overflow-x: hidden;
  /* 내용이 짧은 페이지(예: 문의 0건)에서 사업자등록번호 등 하단 꼬리말이
     화면 중간에 붕 떠 있지 않고 뷰포트 맨 아래에 붙도록 — 내용이 뷰포트보다
     길면 이 flex는 그냥 늘어나기만 하고 꼬리말은 평소처럼 스크롤해야 보인다. */
  display: flex;
  flex-direction: column;
}

.board-shell {
  position: relative;
  z-index: 5;
  max-width: 1080px;
  margin: 0 auto;
  padding: 140px 40px 120px;
  flex: 1 0 auto;
  width: 100%;
}
/* 조직도처럼 이미지/다이어그램이 핵심인 페이지용 — 24~27인치 FHD 모니터에서도
   글자가 너무 작아 보이지 않도록 기본 1080px보다 넓게 잡는다. */
.board-shell--wide { max-width: 1440px; }

/* 사업자등록번호/대표이사/이메일/주소 등 — 홈페이지 맨 아래(마지막 씬)
   에서만 보이고 다른 모든 메뉴에서는 안 보인다는 피드백으로, board-page
   전부(company처럼 넓은 폭 페이지 포함)에 공통으로 붙인다. main(board-shell)
   바깥의 독립된 섹션이라 board-shell 자신의 넉넉한 아래쪽 패딩(120px)에
   얹혀 여백이 과해지지 않는다. company-info/footer-info-item은
   --ink/--ink-dim/--ink-mute 등 body.board-page가 이미 라이트 테마로
   재정의해둔 값을 그대로 물려받으므로 색상은 따로 지정할 필요가 없다.
   footer-copyright만은 예외 — 그 font-size:12px 규칙이 ".pane
   .footer-copyright"로 홈페이지 전용 씬(.pane) 안에서만 걸리게 스코프돼
   있어서, .pane이 없는 board-footer에서는 안 먹혀 본문 기본 글자
   크기로 커 보이는(다른 항목과 크기가 안 맞는) 문제가 있었다 — 아래에서
   따로 12px로 맞춘다. */
.board-footer {
  position: relative;
  z-index: 5;
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 40px 64px;
  border-top: 1px solid var(--line-2);
}
.board-footer .company-info { justify-content: flex-start; }
.board-footer .footer-copyright {
  margin: 20px 0 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
}
@media (max-width: 640px) {
  .board-footer { padding: 24px 20px 48px; }
}

/* 좌측 상단 "Home > 회사소개 > CEO인사말" 위치 표시. eyebrow/h1을 숨긴
   이후로는 사실상 어느 메뉴에 들어와 있는지 알려주는 유일한 텍스트라
   현재 위치(마지막 항목)는 또렷하게, 나머지는 옅게 구분한다. */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  font-family: var(--font-kr);
  font-size: 13px;
  color: var(--ink-mute);
}
.breadcrumb a { color: var(--ink-mute); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb__sep { color: var(--line-2); }
.breadcrumb__current { color: var(--ink); font-weight: 600; }

.board-header {
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 40px;
  margin-bottom: 48px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}
.board-header__title {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
/* 페이지 제목 위에 페이지 이름이 한 번 더 작게 뜨는 게 중복으로 느껴진다는
   피드백으로 제거 — 마크업/데이터는 그대로 두고 시각적으로만 숨긴다. */
.board-eyebrow { display: none; }
/* 주요실적 상세 페이지의 산업분야 태그는 페이지 제목과 다른 실제 정보라
   그대로 유지 — board-eyebrow와 같은 스타일을 쓰되 별도 클래스로 분리. */
.post-industry-tag {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}
/* 페이지 큰 제목도 (eyebrow와 마찬가지로) 숨긴다 — 개별 글 제목
   (.post-view__title 등)은 실제 콘텐츠라 별도라 영향 없음. */
.board-header h1 { display: none; }
/* eyebrow+h1이 전부라 이제 완전히 빈 헤더(회사소개/CEO인사말/조직도/연혁/
   사업분야/제품소개/오시는 길 — 설명문단·게시글수 등 실제 내용이 없는
   페이지)는 여백/구분선까지 통째로 접어서 본문이 그만큼 위로 올라오게
   한다. 설명문단(<p>)이나 게시글 수(.board-header__meta)가 있는 게시판
   목록 페이지는 그대로 둔다. */
.board-header:not(:has(p)):not(:has(.board-header__meta)) {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}
.board-header p {
  font-family: var(--font-kr);
  color: var(--ink-dim);
  font-size: 15px;
  line-height: 1.6;
  max-width: 500px;
  margin-top: 8px;
}
.board-header__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-mute);
}
.board-header__meta button {
  background: var(--accent);
  color: #ffffff;
  border: none;
  padding: 10px 18px;
  border-radius: 999px;
  font-family: var(--font-kr);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s;
}
.board-header__meta button:hover { background: #129cb0; }
.board-header__meta button.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-2);
}
.board-header__meta button.btn-ghost:hover {
  background: rgba(0,0,0,0.06);
  border-color: var(--ink);
}

/* ---- List (notice / qna) ---- */
.post-list {
  list-style: none;
  border-top: 1px solid var(--line);
}
.post-list li {
  border-bottom: 1px solid var(--line);
  transition: background 0.15s;
}
.post-list li:hover { background: rgba(0,0,0,0.03); }
.post-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  text-decoration: none;
  color: inherit;
}
.post-list .post-title {
  font-family: var(--font-kr);
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.post-list .post-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-mute);
  display: flex;
  gap: 20px;
  flex-shrink: 0;
}
.post-list .post-status {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  padding: 3px 8px;
  border-radius: 3px;
  text-transform: uppercase;
}
.post-status--pending {
  background: rgba(176, 106, 31, 0.15);
  color: var(--accent-warm);
}
.post-status--replied {
  background: rgba(14, 127, 143, 0.12);
  color: var(--accent);
}

.post-list--empty {
  padding: 60px 0;
  text-align: center;
  color: var(--ink-mute);
  font-family: var(--font-kr);
  font-size: 14px;
}

/* ---- Case grid (카드뉴스 스타일) ---- */
.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 260px));
  gap: 20px;
}
.case-card {
  background: rgba(0,0,0,0.02);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  position: relative;
}
.case-card:hover {
  border-color: rgba(14,127,143,0.35);
  background: rgba(14,127,143,0.03);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.case-card__thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  background-color: rgba(14,127,143,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}
.case-card__thumb--empty::before {
  content: '';
  width: 34px; height: 34px;
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(14,127,143,0.18), rgba(176,106,31,0.14));
}
.case-card__body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.case-card__industry {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.case-card__title {
  font-family: var(--font-kr);
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.case-card__meta {
  display: flex;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-mute);
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: auto;
}
.post-view__banner {
  width: 100%;
  aspect-ratio: 21 / 9;
  border-radius: 10px;
  background-size: cover;
  /* 21:9로 가로가 훨씬 넓은 배너에 4:3 근처의 세로 사진을 채우면 위아래를
     크게 잘라내야 하는데, center 기준으로는 그 잘리는 양의 절반이 사진
     위쪽에서 나가 사람 머리처럼 사진 상단에 있는 피사체가 잘렸다.
     현장 사진 대부분이 인물/설비가 위쪽~중간에 있고 아래쪽은 바닥이라,
     위쪽 기준으로 잘라 남는 여유를 전부 아래쪽에서만 덜어낸다. */
  background-position: center top;
  background-color: rgba(14,127,143,0.06);
  margin-bottom: 28px;
}
.case-card__actions {
  position: absolute;
  top: 12px;
  right: 12px;
  display: none;
  gap: 6px;
}
body.admin-on .case-card__actions,
body.admin-on .post-list-actions { display: flex; }
.mini-btn {
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--ink);
  padding: 4px 10px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  cursor: pointer;
  letter-spacing: 0.1em;
}
.mini-btn:hover { border-color: var(--accent); color: var(--accent); }
.mini-btn--danger:hover { border-color: #ff6a5a; color: #ff6a5a; }
.post-list-actions {
  gap: 6px;
  margin-left: 12px;
}

/* ---- Post view ---- */
.post-view {
  max-width: 780px;
  margin: 0 auto;
}
.post-view__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
  text-decoration: none;
  margin-bottom: 32px;
  transition: color 0.15s;
}
.post-view__back:hover { color: var(--accent); }
.post-view__header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
  margin-bottom: 40px;
}
.post-view__title {
  font-family: var(--font-kr);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 14px;
}
.post-view__meta {
  display: flex;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-mute);
}
.post-view__body {
  font-family: var(--font-kr);
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink);
  opacity: 0.92;
}
.post-view__body p { margin-bottom: 18px; }
.post-view__body p:last-child { margin-bottom: 0; }
.post-view__body img,
.free-area__view img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 18px;
  border-radius: 6px;
}
.post-view__body .ql-video,
.free-area__view .ql-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  border-radius: 6px;
  margin-bottom: 18px;
}

.post-view__reply {
  margin-top: 60px;
  padding: 32px;
  background: rgba(14, 127, 143, 0.04);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
}
.post-view__reply-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.post-view__reply-body {
  font-family: var(--font-kr);
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink);
}
.post-view__reply-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-mute);
  margin-top: 16px;
}

.post-view__admin-actions {
  display: none;
  gap: 8px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
body.admin-on .post-view__admin-actions { display: flex; }

/* ---- Compose form ---- */
.compose-panel {
  background: #fff;
  border-radius: 8px;
  padding: 32px;
  margin-bottom: 48px;
}
.compose-panel h3 {
  font-family: var(--font-kr);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.compose-panel label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 6px;
}
.compose-panel input,
.compose-panel textarea {
  display: block;
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  padding: 12px 14px;
  font-family: var(--font-kr);
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}
.compose-panel input:focus,
.compose-panel textarea:focus {
  border-color: var(--accent);
  outline: none;
}
.compose-panel textarea {
  min-height: 160px;
  resize: vertical;
  line-height: 1.7;
}
.compose-panel__actions {
  display: flex;
  gap: 10px;
}
.compose-panel__hint {
  font-family: var(--font-kr);
  font-size: 12px;
  color: var(--ink-mute);
  margin-top: -8px;
  margin-bottom: 18px;
}

/* ---- Simple content pages (회사소개 / 사업분야 / 제품소개 / 오시는 길 등) ---- */
.page-body {
  max-width: 720px;
  font-family: var(--font-kr);
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink);
  opacity: 0.92;
  white-space: pre-line;
  margin-bottom: 24px;
}
.page-body--address {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--accent);
  opacity: 1;
  white-space: normal;
}

/* 카드 그리드 등 앞에 붙는 작은 섹션 소제목 (예: 회사소개의 "핵심 역량") */
.section-subtitle {
  font-family: var(--font-kr);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin: 48px 0 4px;
}

/* ---- 핵심 숫자 스트립 (회사소개) — 값이 크게, 라벨이 작게 아래 붙는
   카드를 가로로 나열. 항목 순서는 편집모드에서 위/아래 버튼으로 바꿀 수
   있는 반복 목록(.item-list-block, 연혁/카드 목록과 같은 메커니즘). ---- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: 8px 0 0;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}
.stat-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 20px 12px;
  text-align: center;
  border-left: 1px solid var(--line-2);
  border-top: 1px solid var(--line-2);
}
.stat-item:nth-child(odd) { border-left: none; }
.stat-item:nth-child(-n+2) { border-top: none; }
.stat-item__value {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  outline: none;
}
.stat-item__label {
  font-family: var(--font-kr);
  font-size: 13px;
  color: var(--ink-mute);
  outline: none;
}
.stat-item__actions {
  display: none;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
}
body.editing .stat-item__actions { display: inline-flex; }
.stat-item__move,
.stat-item__remove {
  background: rgba(0,0,0,0.04);
  border: 1px solid var(--line-2);
  color: var(--ink-dim);
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1;
  padding: 4px 6px;
  border-radius: 999px;
  cursor: pointer;
}
.stat-item__move:hover,
.stat-item__remove:hover { border-color: var(--accent); color: var(--accent); }
.stat-item:first-child .item-list-move-up,
.stat-item:last-child .item-list-move-down { opacity: 0.3; pointer-events: none; }
/* 카드 하나하나의 글자 크기(A−/A+) — stat-item/strength-card 양쪽에서
   같은 클래스로 재사용(inline-edit.js bindItemNode). */
.item-size-ctrl { display: inline-flex; align-items: center; gap: 2px; }
.item-size-ctrl__btn {
  background: rgba(0,0,0,0.04);
  border: 1px solid var(--line-2);
  color: var(--ink-dim);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  padding: 4px 6px;
  border-radius: 999px;
  cursor: pointer;
}
.item-size-ctrl__btn:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 420px) {
  .stat-strip { grid-template-columns: 1fr; }
  .stat-item { border-left: none; border-top: 1px solid var(--line-2); }
  .stat-item:first-child { border-top: none; }
}

/* ---- 핵심 역량 카드 (회사소개) — 사진 없이 번호 배지 + 제목 + 설명만
   있는 가벼운 카드. 순서는 편집모드에서 위/아래 버튼으로 바꿀 수 있는
   반복 목록(.item-list-block, 다른 카드/숫자 목록과 같은 메커니즘). ---- */
.strength-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin: 8px 0 8px;
}
.strength-card {
  position: relative;
  background: rgba(0,0,0,0.02);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px 20px;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.strength-card:hover {
  border-color: rgba(14,127,143,0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.strength-card__num {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.55;
  margin-bottom: 10px;
}
.strength-card__title {
  font-family: var(--font-kr);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
  outline: none;
}
.strength-card__desc {
  font-family: var(--font-kr);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-dim);
  outline: none;
}
.strength-card__actions {
  display: none;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
}
body.editing .strength-card__actions { display: inline-flex; }
.strength-card__move,
.strength-card__remove {
  background: rgba(0,0,0,0.04);
  border: 1px solid var(--line-2);
  color: var(--ink-dim);
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1;
  padding: 4px 6px;
  border-radius: 999px;
  cursor: pointer;
}
.strength-card__move:hover,
.strength-card__remove:hover { border-color: var(--accent); color: var(--accent); }

/* ---- 오시는 길: 위에 지도(넓고 낮은 띠 모양), 아래 주소/연락처를
   카드 틀 없이 라벨-값 목록으로 간단히 나열 + 길찾기 버튼. ---- */
.page-body:empty { margin-bottom: 0; }

/* ---- 회사소개 영상 아래 "자유 영역" — 정해진 칸(핵심역량/CI 등)과 달리
   사진·글을 원하는 순서로 자유롭게 넣는 Quill 에디터(quill-init.js가
   data-quill-content-key로 자동 저장). 평소엔 저장된 내용만 읽기 전용으로
   보여주고(.free-area__view), 편집모드에서는 그 자리에서 바로 Quill
   에디터로 바뀐다 — 안 그러면 방문자도 에디터 UI(툴바 등)가 그대로
   보여버린다. */
.free-area__view { white-space: normal; }
.free-area .rich-editor { display: none; }
body.editing .free-area__view { display: none; }
body.editing .free-area .rich-editor { display: block; margin-bottom: 24px; }
.location-map {
  position: relative;
  width: 100%;
  height: 280px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(127,127,127,0.12);
  border: 1px solid var(--line);
  margin-bottom: 28px;
}
.location-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.location-map__preview {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  overflow: hidden;
  background: #eef2f5;
  opacity: 1;
  transition: opacity 400ms ease;
}
.location-map__preview picture,
.location-map__preview img {
  display: block;
  width: 100%;
  height: 100%;
}
.location-map.is-ready .location-map__preview {
  opacity: 0;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .location-map__preview { transition: none; }
}
.location-card {
  max-width: 560px;
  margin-bottom: 24px;
}
.location-card__row {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 14px;
}
.location-card__row:last-child { margin-bottom: 0; }
.location-card__label {
  flex: 0 0 56px;
  font-family: var(--font-kr);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.location-card__value {
  flex: 1;
  min-width: 0;
  font-family: var(--font-kr);
  font-size: 14.5px;
  color: var(--ink-dim);
  line-height: 1.5;
  outline: none;
}
.location-directions {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
}
.location-directions__btn {
  padding: 11px 20px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  font-family: var(--font-kr);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.location-directions__btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(14,127,143,0.05);
}
@media (max-width: 760px) {
  .location-map { height: 200px; }
}

/* ---- 함께하는 파트너사 로고 (회사소개 하단) ----
   공개 화면: .partner-marquee가 로고를 두 벌 이어붙여 가로로 계속 자동
   스크롤(이음매 없는 무한 루프). 편집모드: 스크롤을 멈추고 일반 그리드
   (.partner-source)로 바꿔 정확히 클릭해서 추가·삭제·순서 변경할 수 있게 함. ---- */
.partner-source { display: none; }
body.editing .partner-source {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  margin: 8px 0;
}
body.editing .partner-marquee { display: none; }
.partner-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(0,0,0,0.02);
}
.partner-item__logo {
  position: relative;
  width: 100%;
  height: 60px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 6px;
}
.partner-item__name {
  font-family: var(--font-kr);
  font-size: 12px;
  color: var(--ink-mute);
  text-align: center;
  outline: none;
}
.partner-item__actions {
  display: flex;
  align-items: center;
  gap: 4px;
}
.partner-item__move,
.partner-item__remove {
  background: rgba(0,0,0,0.04);
  border: 1px solid var(--line-2);
  color: var(--ink-dim);
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1;
  padding: 4px 6px;
  border-radius: 999px;
  cursor: pointer;
}
.partner-item__move:hover,
.partner-item__remove:hover { border-color: var(--accent); color: var(--accent); }

.partner-marquee {
  overflow: hidden;
  margin: 8px 0 8px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.partner-marquee__track {
  display: flex;
  align-items: center;
  gap: 56px;
  width: max-content;
  animation: partner-marquee-scroll 28s linear infinite;
}
.partner-marquee:hover .partner-marquee__track { animation-play-state: paused; }
.partner-marquee__track img {
  height: 60px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
}
@keyframes partner-marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .partner-marquee__track { animation: none; }
}

/* ---- History banner (/company/history 상단 사진 + 캡션 박스) ----
   실제 사진 한 장(관리자가 편집모드에서 업로드/URL 붙여넣기로 교체) 위에
   라벨+한 줄 소개가 적힌 파란 사각형 박스가 사진 하단-좌측에 겹쳐진다. */
.history-banner {
  position: relative;
  max-width: 1080px;
  margin: 8px 0 74px;
}
.history-banner__photo {
  position: relative;
  height: 380px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-2);
  background-size: cover;
  background-position: center 30%;
}
.history-banner__photo::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5,20,25,0.05) 0%, rgba(5,20,25,0.32) 100%);
  /* 순전히 장식용 그라디언트인데 사진 전체를 덮고 있어서, pointer-events를
     막아두지 않으면 그 아래 업로드 버튼/URL 입력창 클릭을 전부 가로채
     "사진 수정이 안 되는" 버그가 있었다. */
  pointer-events: none;
}
/* page-image--empty/page-image__empty-label의 기본 스타일(점선 테두리,
   가운데 안내문)은 이미 정의되어 있어 그대로 상속되고, 배너 높이(380px)에
   맞춰 안내문 위치만 살짝 보정한다. */
.history-banner__photo.page-image--empty { border: 1px dashed var(--line-2); }
/* 업로드/URL 컨트롤은 item-thumb-controls 공용 스타일을 그대로 쓰되(카드
   썸네일·조직도 사진 등과 동일한 동작), 위치만 위쪽으로 올린다 — 공용
   기본값(bottom:8px)대로 두면 사진 하단에 겹쳐진 파란 캡션 박스
   (z-index:2)가 그 위를 덮어서 업로드 버튼/URL 입력창을 클릭할 수
   없는 버그가 있었다. */
.history-banner__photo .item-thumb-controls { bottom: auto; top: 8px; }
.history-banner__caption {
  position: absolute;
  left: 40px; bottom: -46px;
  width: 360px;
  background: #2563eb;
  color: #fff;
  padding: 32px 34px;
  border-radius: 2px;
  box-shadow: 0 16px 32px rgba(37,99,235,0.25);
  z-index: 2;
}
.history-banner__caption-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  opacity: 0.8;
  margin-bottom: 12px;
}
.history-banner__caption-tagline {
  font-family: var(--font-kr);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.01em;
}
@media (max-width: 640px) {
  .history-banner__photo { height: 240px; }
  .history-banner__caption { position: static; width: auto; margin-top: 16px; box-shadow: none; }
  .history-banner { margin-bottom: 40px; }
}

/* ---- History timeline (/company/history) ----
   큰 연도 라벨 + 점 + 세로 연결선 + 월/내용 — 같은 year가 연속되는 항목은
   연도 라벨을 한 번만 보여주고 점선으로 계속 이어진다 (참고 디자인 스타일).
   화면 중앙정렬 요청에 따라 board-shell 안에서 가운데로 배치한다. */
.history-list {
  list-style: none;
  max-width: 560px;
  margin: 8px auto 0;
}
.history-row {
  display: grid;
  grid-template-columns: 92px 24px 1fr;
  column-gap: 20px;
  align-items: center;
  position: relative;
}
.history-row__year {
  font-family: var(--font-kr);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.2;
}
.history-row:not(.history-row--year-start) .history-row__year { visibility: hidden; }
.history-row--year-start { margin-top: 8px; }
.history-row--year-start:first-child { margin-top: 0; }
.history-row__dot-col {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  align-self: stretch;
}
.history-row__dot-col::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 1px;
  background: var(--line-2);
}
/* 점이 각 행의 세로 중앙에 오므로(align-items:center), 첫 줄은 그 중앙보다
   위로, 마지막 줄은 그 중앙보다 아래로 선이 삐져나오지 않게 자른다. */
.history-row:first-child .history-row__dot-col::before { top: 50%; }
.history-row:last-child .history-row__dot-col::before { bottom: 50%; }
.history-row__dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #2563eb;
  position: relative;
  z-index: 1;
}
.history-row:not(.history-row--year-start) .history-row__dot { visibility: hidden; }
.history-row__content {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.history-row:last-child .history-row__content { border-bottom: none; }
.history-row__month {
  flex-shrink: 0;
  width: 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #2563eb;
}
.history-row__text {
  flex: 1;
  min-width: 0;
  font-family: var(--font-kr);
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-dim);
  white-space: nowrap;
}
/* 편집 도구는 내용 칸 밖의 전용 우측 열에 놓는다. 편집 중에는 타임라인을
   페이지 너비까지 넓혀 긴 문장을 가리지 않고 도구가 맨 오른쪽에 정렬된다. */
body.editing .history-list { max-width: 100%; }
body.editing .history-row {
  grid-template-columns: 92px 24px minmax(220px, 1fr) auto;
}
.history-row__actions {
  display: none;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  margin-left: 10px;
  justify-self: end;
}
body.editing .history-row__actions { display: inline-flex; }
.history-row__drag,
.history-row__color-open,
.history-row__color-apply,
.history-row__color-reset,
.history-row__remove {
  background: #fff;
  border: 1px solid var(--line-2);
  color: var(--ink-dim);
  font-family: var(--font-kr);
  font-size: 10px;
  line-height: 1;
  padding: 6px 8px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}
.history-row__drag { cursor: grab; }
.history-row__drag:active { cursor: grabbing; }
.history-row__color-open { color: #2563eb; border-color: rgba(37,99,235,0.35); }
.history-color-hex {
  width: 82px;
  height: 28px;
  padding: 4px 8px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  outline: none;
}
.history-color-hex:focus { border-color: #2563eb; }
.history-color-hex.is-invalid { border-color: #dc2626; background: #fff5f5; }
.history-row.is-dragging {
  opacity: 0.45;
  background: rgba(14,127,143,0.08);
}
.history-row__remove {
  border: 1px solid rgba(255,120,100,0.4);
  color: #ff9a8a;
}

@media (max-width: 640px) {
  .history-row { grid-template-columns: 64px 20px 1fr; column-gap: 12px; }
  body.editing .history-row { grid-template-columns: 64px 20px minmax(0, 1fr); }
  .history-row__year { font-size: 21px; }
  /* 데스크톱은 한 줄 유지가 깔끔해 nowrap을 쓰지만, 좁은 화면에서는 긴
     항목이 화면 밖으로 그대로 잘려 나가(overflow-x가 막혀 있어 스크롤도
     안 됨) 아예 읽을 수 없었다 — 줄바꿈을 허용한다. */
  .history-row__content { align-items: flex-start; }
  .history-row__text { white-space: normal; }
  .history-row__actions {
    grid-column: 3;
    width: 100%;
    margin: 4px 0 10px;
    justify-self: stretch;
    flex-wrap: wrap;
  }
}

/* Company profile: bright, spacious corporate layout. The D1 content and
   inline editing hooks remain unchanged; these rules only shape this page. */
body.board-page:has(.company-page) .board-shell {
  max-width: 1680px;
  padding: 124px 48px 120px;
}
body.board-page:has(.company-page) .breadcrumb { margin-bottom: 8px; }
.company-page {
  --company-ink: #17232f;
  --company-muted: #687783;
  --company-line: #e8edf0;
  --company-blue: #1875c6;
  color: var(--company-ink);
}
/* 제목 칸(company-hero__copy)에 이어 미디어 칸(company-hero__media,
   영상+사진 전체)도 마우스로 자유롭게 드래그해서 옮길 수 있게 해달라는
   요청으로 그리드 2단 배치를 접었다 — 그리드 안에서는 절대 위치
   (position:absolute)가 자기 그리드 칸 기준으로 잡혀 자유 드래그와
   궁합이 안 맞는다. 이제 둘 다 각자 자유롭게 띄워진 레이어
   (position:absolute, 홈 히어로의 "스크롤하여 살펴보기" 힌트와 같은
   방식 — data-draggable-pos)이고, 기본 위치(제목은 왼쪽, 미디어는
   오른쪽)만 CSS로 정해둔다. */
.company-hero {
  position: relative;
  /* 아래쪽(148→176px)은 미디어 칸 바로 밑에 오는 핵심 숫자 박스와의
     여백을 더 넉넉하게 두고 싶다는 요청으로 키웠다. 이 padding-bottom은
     company-hero-layout.js가 section 높이를 계산할 때 그대로 더해서
     써먹는 값이기도 하다(아래 min-height 주석 참고) — 자식이 전부
     position:absolute라 padding 자체만으로는 실제 여백이 생기지 않기
     때문. */
  padding: 108px 0 176px;
  /* 아래 두 칸(제목/미디어) 다 position:absolute라 원래대로면 이 section
     자체 높이가 0(패딩만)으로 접혀버린다 — 여기 min-height는 JS가 아직
     실행되기 전(혹은 실패했을 때)의 최소 대비값일 뿐이고, 실제 높이는
     company-hero-layout.js가 자식들의 실제 바닥 위치 + 이 padding-bottom
     만큼을 계산해서 인라인 스타일로 매번 다시 정한다. */
  min-height: 440px;
}
.company-hero__copy {
  position: absolute;
  left: 0;
  top: 30%;
  max-width: 44%;
  z-index: 2;
}
.company-hero__eyebrow {
  display: inline-block;
  margin-bottom: 22px;
  color: var(--company-blue);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.company-hero__name {
  margin: 0 0 18px;
  color: var(--company-muted);
  font-family: var(--font-kr);
  font-size: 14px;
  font-weight: 600;
}
.company-hero h1 {
  margin: 0;
  color: var(--company-ink);
  font-family: var(--font-kr);
  font-size: clamp(38px, 4vw, 62px);
  font-weight: 800;
  letter-spacing: -0.07em;
  line-height: 1.22;
  word-break: keep-all;
  /* data-editable-multiline으로 저장되는 \n 줄바꿈을 그대로 보여준다. */
  white-space: pre-line;
  outline: none;
}
.company-hero__lead {
  max-width: 470px;
  margin: 28px 0 0;
  color: var(--company-muted);
  font-family: var(--font-kr);
  font-size: 16px;
  line-height: 1.75;
  word-break: keep-all;
  white-space: pre-line;
  outline: none;
}
.company-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-top: 29px;
  padding: 13px 20px;
  border: 1px solid #d8e0e6;
  border-radius: 12px;
  background: #fff;
  color: var(--company-ink);
  font-family: var(--font-kr);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(25, 63, 92, 0.04);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.company-hero__cta:hover { border-color: var(--company-blue); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(25, 63, 92, 0.09); }
.company-hero__cta span { color: var(--company-blue); }
.company-hero__body { margin: 24px 0 0; font-size: 14px; color: var(--company-muted); }
.company-hero__body:empty { display: none; }
/* 영상/사진 두 칸 — 예전엔 고정 2단 그리드(각자 칸의 100%가 한도라
   실제로는 전체 폭의 절반까지만 커질 수 있었다: "100%인데 더 안
   커진다"는 피드백의 원인)였는데, flex로 바꿔서 각자의 폭(%)이 그
   그리드 칸이 아니라 히어로 전체 폭 기준이 되게 했다 — 기본값은 둘 다
   48%라 지금처럼 나란히 보이지만, 하나를 100%까지 키우면 그 칸이 전체
   폭을 다 차지하고 나머지 하나는 자연스럽게 아래 줄로 내려간다. */
.company-hero__media {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  min-width: 0;
  min-height: 440px;
  align-items: center;
  padding: 0;
  background: none;
  /* 제목 칸과 같은 이유로 영상+사진 전체를 한 덩어리로 자유 드래그할 수
     있게 이것도 position:absolute 레이어로 바꿨다(data-draggable-pos).
     제목 칸의 max-width(44%)와 딱 붙지 않도록 약간의 여유를 두고
     46%에서 시작한다 — 제목 칸은 본문 소개 문단(company_body)이 길면
     실제로 44% 한도까지 꽉 채워 렌더링되는데(줄바꿈 때문에 눈에 띄는
     충돌은 잘 안 보이지만), 42%로 붙여두면 여백이 사실상 없어서 내용에
     따라 겹칠 수 있었다. */
  position: absolute;
  top: 0;
  left: 46%;
  max-width: 54%;
  z-index: 1;
}
.company-hero__video,
.company-hero__factory {
  box-sizing: border-box;
  min-width: 240px;
  max-width: 100%;
}
/* 영상 카드 — 예전엔 크기를 전혀 조절할 수 없었는데, 조직도/CI 사진과
   같은 크기·정렬 컨트롤(data-resizable-image, initPageImageSizeControls)을
   그대로 재사용해서 관리자가 직접 폭(20~100%)·정렬을 조절할 수 있게 했다. */
.company-hero__video[data-resizable-image] { position: relative; }
.company-hero__video .video-block {
  max-width: none;
  margin: 0;
}
.company-hero__video .video-block__thumb {
  border-radius: 20px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.09);
}
.company-hero__video .video-block__caption,
.company-hero__factory-caption {
  margin: 12px 4px 0;
  color: var(--company-ink);
  font-family: var(--font-kr);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}
.company-hero__factory-caption:empty { margin-top: 0; }
/* 공장 사진 — 네이버블로그처럼 글·사진을 자유롭게 섞는 Quill 에디터
   (자유 영역)가 여기서는 그냥 사진 한 장 자리인데도 그대로 붙어 있어서,
   영상 칸(단순 사진 하나)과 나란히 있으니 이상하게 커 보인다는 피드백 —
   Quill을 걷어내고 조직도/CI 사진과 같은 표준 단일 이미지(pageImageHtml)
   로 바꿨다. 크기·정렬 컨트롤은 그 컴포넌트가 이미 갖고 있다. 영상처럼
   사진 밑에도 캡션(company-hero__factory-caption)을 달았다. */
.company-hero__factory .page-image {
  margin: 0;
  border: 0;
  border-radius: 20px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.09);
}
/* pageImageHtml() 자신의 크기·정렬 컨트롤은 여기서 안 쓴다 — 바깥
   .company-hero__factory 칸 자체에 크기·정렬 컨트롤을 새로 달아서
   (위 .page-image__size-ctrl, company-hero__factory 바로 아래) 영상
   칸과 같은 방식으로 통일했다. 안쪽 것까지 같이 보이면 배지가 두 벌
   겹쳐 보인다. */
.company-hero__factory .page-image > .page-image__size-ctrl { display: none !important; }
.company-proof { padding: 26px 0 50px; }
/* font-size(16px)는 카드마다 각자 조절 가능한 기본값 — 카드 하나하나가
   item-size-ctrl(A−/A+)로 자기 font-size를 직접 바꾸고(site-pages.ts
   statItemHtml, inline-edit.js), 안의 숫자(value)·라벨(label)은 em
   단위라 그 값이 바뀌면 둘 다 비례해서 같이 커지거나 작아진다. 여기
   16px은 카드에 개별 설정이 없을 때 쓰이는 기본값일 뿐이다. */
.company-proof .stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 1360px;
  margin: 0 auto;
  border: 0;
  gap: 18px;
  font-size: 16px;
}
/* min-height/gap/padding/border-radius를 --box-scale(item-size-ctrl의
   ⊟/⊞, 100=기본 100%) 기준 calc()로 바꿔서, 글자 크기(font-size, A−/A+)
   와 완전히 따로 박스 자체(안쪽 여백·모서리 둥글기·최소 높이)만 커지거나
   작아지게 한다 — "글씨만 커지고 박스는 그대로"라는 피드백으로
   font-size에 얹었다가, "글자랑 박스를 따로 조절하고 싶다"는 후속
   요청으로 별도 변수로 다시 분리했다. --box-scale이 없으면(카드에
   개별 설정이 없으면) 1(=100%)로 기본 크기 그대로. */
.company-proof .stat-item {
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: calc(190px * var(--box-scale, 1));
  gap: calc(11px * var(--box-scale, 1));
  padding: calc(27px * var(--box-scale, 1)) clamp(calc(18px * var(--box-scale, 1)), 2vw, calc(30px * var(--box-scale, 1)));
  border: 1px solid var(--company-line);
  border-radius: calc(18px * var(--box-scale, 1));
  background: #fff;
  box-shadow: 0 10px 30px rgba(17, 46, 68, 0.045);
}
.company-proof .stat-item:first-child { border-left: 1px solid var(--company-line); }
.company-proof .stat-item__value {
  color: var(--company-ink);
  font-family: var(--font-kr);
  font-size: 1.5em;
  letter-spacing: -0.045em;
  line-height: 1.15;
}
.company-proof .stat-item__label { color: var(--company-muted); font-size: 0.8em; }
.company-section { padding: 112px 0; }
.company-section__index {
  color: var(--company-blue);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
}
.company-section__heading { margin-bottom: 32px; }
.company-page .company-section .section-subtitle {
  margin: 14px 0 0;
  color: var(--company-ink);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  letter-spacing: -0.055em;
}
.company-section__heading p {
  margin: 12px 0 0;
  color: var(--company-muted);
  font-family: var(--font-kr);
  font-size: 15px;
}
.company-capabilities {
  padding: 88px 0 96px;
  border-top: 1px solid var(--company-line);
  border-bottom: 1px solid var(--company-line);
  background: none;
  scroll-margin-top: 95px;
}
/* font-size(16px)는 카드마다 각자 조절 가능한 기본값 — company-proof
   .stat-strip과 같은 방식(item-size-ctrl, 카드 자신의 font-size를
   바꾸면 em 단위인 제목(title)·설명(desc)이 비례해서 같이 커지거나
   작아진다). */
.company-capabilities .strength-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  max-width: 1360px;
  margin: 0 auto;
  font-size: 16px;
}
/* min-height/padding/border-radius, 번호 배지 크기까지 --box-scale
   (item-size-ctrl의 ⊟/⊞) 기준 calc()로 — 글자 크기(A−/A+)와 완전히
   따로 박스 전체가 같이 커지거나 작아진다(company-proof .stat-item과
   같은 이유). */
.company-capabilities .strength-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: calc(260px * var(--box-scale, 1));
  padding: calc(26px * var(--box-scale, 1)) clamp(calc(18px * var(--box-scale, 1)), 2vw, calc(28px * var(--box-scale, 1)));
  text-align: center;
  border: 1px solid #edf0f2;
  border-radius: calc(22px * var(--box-scale, 1));
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 46, 69, 0.055);
  transition: transform .2s, box-shadow .2s;
}
.company-capabilities .strength-card + .strength-card { border-left: 1px solid #edf0f2; }
.company-capabilities .strength-card:hover { transform: translateY(-4px); box-shadow: 0 17px 38px rgba(15, 46, 69, 0.1); }
.company-capabilities .strength-card__num {
  display: grid;
  place-items: center;
  width: calc(42px * var(--box-scale, 1));
  height: calc(42px * var(--box-scale, 1));
  align-self: flex-start;
  margin-bottom: 0;
  border-radius: calc(13px * var(--box-scale, 1));
  border: 1px solid var(--company-line);
  background: #fff;
  color: var(--company-blue);
  font-size: 12px;
  opacity: 1;
}
.company-capabilities .strength-card__title { margin-top: auto; font-size: 1.19em; letter-spacing: -0.035em; }
.company-capabilities .strength-card__desc { margin-top: calc(12px * var(--box-scale, 1)); margin-bottom: auto; color: var(--company-muted); font-size: 0.875em; line-height: 1.65; }
.company-ci {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  align-items: center;
  gap: clamp(24px, 5vw, 80px);
}
.company-ci__intro > p {
  max-width: 320px;
  margin: 20px 0 0;
  color: var(--company-muted);
  font-family: var(--font-kr);
  font-size: 15px;
  line-height: 1.7;
}
.company-ci__body { margin: 12px 0 0; font-size: 14px; }
.company-ci__body:empty { display: none; }
.company-ci__link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-top: 25px;
  padding-bottom: 5px;
  color: var(--company-blue);
  border-bottom: 1px solid currentColor;
  font-family: var(--font-kr);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.company-ci__visual {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--company-line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(17, 46, 68, 0.06);
}
.company-ci__visual .page-image {
  width: 100% !important;
  height: 300px;
  margin: 0 !important;
  border-radius: 12px;
  background: #fafafa;
}
.company-ci__visual .page-image__img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
body.editing .company-ci__visual .page-image {
  width: auto;
  height: auto;
  min-height: 260px;
  overflow: visible;
}
body.editing .company-ci__visual .page-image__img { height: auto; object-fit: contain; }
.company-partners { padding-top: 58px; border-top: 1px solid var(--company-line); }
.company-partners .partner-marquee { margin: 0; overflow: visible; mask-image: none; -webkit-mask-image: none; }
.company-partners .partner-marquee__track {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  width: auto;
  animation: none;
}
.company-partners .partner-marquee__track img {
  width: 100%;
  max-width: none;
  height: 86px;
  padding: 13px;
  border: 1px solid var(--company-line);
  border-radius: 15px;
  background: #fff;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.85;
  transition: filter .2s, opacity .2s;
}
.company-partners .partner-marquee__track img:hover { filter: none; opacity: 1; }
/* 자유 드래그 위치는 데스크톱 퍼센트 기준이라 좁은 화면에서는 엉뚱한
   자리로 보일 수 있다 — 1020px 밑에서는 제목 칸/미디어 칸 둘 다 다시
   보통 흐름으로 되돌려 위아래로 쌓이게 한다(드래그로 저장해둔 left/top은
   position:static에서는 애초에 효과가 없어서 따로 초기화할 필요는 없다). */
@media (max-width: 1020px) {
  .company-hero { padding: 60px 0; min-height: 0; }
  .company-hero__copy { position: static; max-width: none; margin-bottom: 36px; }
  /* body.editing .drag-handle{display:inline-flex}(styles.css)와 특이도가
     같으면 나중 선언 여부와 무관하게 body 요소 선택자가 있는 쪽(0,2,1)이
     이긴다 — 여기도 body.editing을 붙여 특이도를 맞춰야 실제로 숨겨진다. */
  body.editing .company-hero__copy .drag-handle { display: none; }
  /* width는 left/top과 달리 position:static이어도 그대로 적용되는
     속성이라(퍼센트 손잡이로 저장한 인라인 style이 여기 이 규칙보다
     우선순위가 높다), !important로 강제로 되돌려야 데스크톱에서 넓힌
     폭이 좁은 화면까지 그대로 남지 않는다. */
  .company-hero__media { position: static; left: auto; top: auto; max-width: none; width: auto !important; }
  body.editing .company-hero__media .drag-handle { display: none; }
  body.editing .company-hero__media .resize-corner-handle { display: none; }
  /* 제목/리드문도 위 미디어 칸 폭처럼 관리자가 편집모드에서 직접 키운
     글자 크기(data-resizable-text)가 인라인 style(font-size:67px 등)로
     저장돼 있으면, 그 값이 아래 clamp()보다 우선순위가 높아 좁은 화면
     에서도 그대로 커 보이는 문제가 있었다 — !important로 모바일에서는
     항상 이 clamp() 범위로 눌러준다. */
  .company-hero h1 { font-size: clamp(32px, 4vw, 48px) !important; }
  .company-hero__lead { font-size: clamp(14px, 3vw, 16px) !important; }
  .company-capabilities .strength-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .company-partners .partner-marquee__track { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  body.board-page:has(.company-page) .board-shell { padding-top: 112px; }
  .company-hero { gap: 36px; padding: 26px 0 28px; }
  .company-hero h1 { font-size: clamp(36px, 8vw, 54px) !important; }
  .company-hero__lead { font-size: clamp(14px, 3.5vw, 16px) !important; }
  .company-proof { padding-bottom: 36px; }
  .company-proof .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .company-proof .stat-item { min-height: calc(132px * var(--box-scale, 1)); padding: calc(22px * var(--box-scale, 1)); border: 1px solid var(--company-line); }
  .company-proof .stat-item:nth-child(odd) { border-left: 1px solid var(--company-line); }
  .company-section { padding: 76px 0; }
  .company-capabilities { padding: 64px 0 70px; }
  .company-ci { grid-template-columns: 1fr; }
  .company-partners .partner-marquee__track { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  body.board-page:has(.company-page) .board-shell { padding-left: 20px; padding-right: 20px; }
  .company-capabilities .strength-grid { grid-template-columns: 1fr; }
  .company-capabilities .strength-card { min-height: 0; padding: calc(20px * var(--box-scale, 1)); }
  .company-capabilities .strength-card__num { margin-bottom: calc(18px * var(--box-scale, 1)); }
  .company-partners .partner-marquee__track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---- Standalone single page image (조직도 등) — shares item-thumb-* upload UI ---- */
/* 고정 높이 박스에 background-size:contain을 쓰면 사진 비율에 따라 위아래
   여백(레터박스)이 생긴다 — 그 대신 실제 <img>를 폭 100%·높이 auto로 그려서
   사진 자신의 종횡비만큼만 차지하게 한다. 즉 빈 공간 없이 사진이 최대한
   커 보인다. */
.page-image {
  position: relative;
  width: 100%;
  margin: 8px 0 24px;
  background-color: rgba(0,0,0,0.02);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.page-image__img {
  display: block;
  width: 100%;
  height: auto;
}
.page-image--empty {
  min-height: 260px;
}
.page-image__empty-label {
  display: none;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  color: var(--ink-mute);
  font-family: var(--font-kr);
  font-size: 14px;
}
.page-image--empty .page-image__empty-label { display: block; }
.page-image .item-thumb-controls {
  left: 12px; right: 12px; bottom: 12px;
}

/* 조직도/CEO/CI 사진처럼 관리자가 직접 크기·정렬을 잡아야 하는 이미지 위에
   뜨는 작은 컨트롤 — 왼쪽/가운데/오른쪽 정렬 + 크기(20~100%, 10%씩) 조절.
   편집모드에서만 보인다. */
.page-image__size-ctrl {
  display: none;
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  align-items: center;
  gap: 2px;
  background: rgba(255,255,255,0.95);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 4px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.18);
}
body.editing .page-image__size-ctrl { display: flex; }
.page-image__size-ctrl button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: transparent;
  border: none;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1;
  color: var(--ink-dim);
  cursor: pointer;
}
.page-image__size-ctrl button:hover { background: rgba(0,0,0,0.06); color: var(--ink); }
.page-image__size-ctrl button.is-active { background: var(--accent); color: #fff; }
.page-image__size-sep { width: 1px; height: 16px; background: var(--line-2); margin: 0 2px; }
.page-image__size-label {
  min-width: 34px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-mute);
}

/* ---- Card grids (사업분야 / 제품소개, 카드뉴스 스타일) — editable via .item-list-block ---- */
.item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 260px));
  gap: 20px;
  margin-top: 8px;
}
.item-card {
  position: relative;
  background: rgba(0,0,0,0.02);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  /* 제품소개 공개 목록은 카드 전체(사진 포함)가 상세페이지로 가는
     <a>라서, 링크 기본 스타일(파란 글씨/밑줄)을 지우고 커서를 포인터로
     바꾼다 — 이 규칙은 사업분야의 편집 가능한 카드(.item-card가
     <div>인 경우)에도 같이 걸리지만, 그쪽엔 영향 없는 속성들이라
     무해하다. */
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.item-card:hover {
  border-color: rgba(14,127,143,0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.item-card__thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  background-color: rgba(14,127,143,0.08);
  position: relative;
}
.item-card__thumb--empty::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 34px; height: 34px;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(14,127,143,0.18), rgba(176,106,31,0.14));
}
.item-thumb-controls {
  display: none;
  position: absolute;
  left: 8px; right: 8px; bottom: 8px;
  gap: 6px;
}
body.editing .item-thumb-controls { display: flex; }
.item-thumb-input {
  flex: 1;
  min-width: 0;
  background: rgba(255,255,255,0.95);
  border: 1px solid var(--line-2);
  border-radius: 6px;
  padding: 6px 9px;
  font-family: var(--font-kr);
  font-size: 11.5px;
  color: var(--ink);
}
.item-thumb-upload-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  background: rgba(14,127,143,0.85);
  color: #fff;
  border-radius: 6px;
  padding: 6px 10px;
  font-family: var(--font-kr);
  font-size: 11.5px;
  cursor: pointer;
  white-space: nowrap;
}
.item-thumb-upload-btn:hover { background: var(--accent); }
.item-card__body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.item-card__title {
  font-family: var(--font-kr);
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
}
.item-card__desc {
  font-family: var(--font-kr);
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink-dim);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.item-card__detail-link {
  display: inline-block;
  margin: 10px 16px 16px;
  font-family: var(--font-kr);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.item-card__detail-link:hover { text-decoration: underline; }
.item-card__remove {
  position: absolute;
  top: 10px; right: 10px;
  z-index: 1;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,120,100,0.5);
  color: #ff9a8a;
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  cursor: pointer;
}
.item-list-empty {
  color: var(--ink-mute);
  font-family: var(--font-kr);
  font-size: 14px;
  margin-top: 8px;
}
/* [hidden]과 동일한 (0,1,0) 우선순위인 클래스 규칙이라 display:block을 바로 걸면
   비로그인 방문자에게도 "+ 항목 추가" 버튼이 노출된다 — body.editing에서만 보이게 스코프. */
.item-list-add {
  display: none;
  margin: 20px auto 0;
  background: transparent;
  border: 1px dashed var(--line-2);
  color: var(--ink-dim);
  font-family: var(--font-kr);
  font-size: 14px;
  padding: 12px 20px;
  border-radius: 999px;
  cursor: pointer;
}
body.editing .item-list-add { display: block; }
.item-list-add:hover { border-color: var(--accent); color: var(--accent); }

/* item-list-block의 삭제/순서이동 버튼(item-card__remove, history-row__remove
   등 여러 카드·목록 타입이 공유하는 클래스) — inline-edit.js가 페이지 로드
   시점에 각 버튼의 hidden 속성을 무조건 지워버려서(편집모드 여부와 무관),
   컨테이너 자체에 body.editing 게이팅이 없는 타입(사업분야/제품소개 카드,
   연혁 항목)은 편집모드를 켜지 않아도 삭제 버튼이 항상 보이는 버그가 있었다.
   .item-list-add와 같은 이유로 여기서도 클래스 자체에 기본 display:none을
   걸고 body.editing에서만 보이게 한다 — hidden 속성이 무엇이든 상관없이
   항상 이 규칙이 최종 표시 여부를 결정한다. */
.item-list-remove,
.item-list-move-up,
.item-list-move-down {
  display: none;
}
body.editing .item-list-remove,
body.editing .item-list-move-up,
body.editing .item-list-move-down { display: inline-block; }
/* 카드 하나하나의 글자 크기(A−/A+) 버튼도 같은 이유 — hidden 속성만으로는
   부족하고, 이 클래스 자체가 기본 display:none을 깔고 body.editing에서만
   보이게 해야 한다. */
.item-size-ctrl__btn { display: none; }
body.editing .item-size-ctrl__btn { display: inline-block; }

/* ---- FAQ accordion ---- */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 22px;
  background: rgba(0,0,0,0.02);
}
.faq-item__q {
  font-family: var(--font-kr);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__q::before { content: '+ '; color: var(--accent); font-weight: 600; }
.faq-item[open] .faq-item__q::before { content: '− '; }
.faq-item__a {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-family: var(--font-kr);
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink-dim);
}

/* ---- 서식 편집기 (문의 작성 / 문의 답변) — Quill(quill-init.js) ----
   실제 폼 값은 숨겨진 textarea에 담기고, 여기 보이는 Quill 에디터 영역은
   그 값을 사람이 편집하기 좋게 보여주는 화면일 뿐이다. 사이트 다른 입력
   필드(.compose-panel input 등)와 톤이 맞도록 Quill 기본 테두리/폰트를
   재정의한다. */
.rich-editor { margin-bottom: 18px; }
/* 본문 사진 전체를 한 번에 원하는 크기(%)로 맞추는 작은 도구줄 —
   에디터 툴바 바로 위, 사진 하나씩 클릭해서 배지로 조절하는 것과 별개로
   한 번에 다 맞추고 싶을 때 쓴다(quill-init.js). */
.rich-editor__bulk-resize {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-family: var(--font-kr);
  font-size: 13px;
  color: var(--ink-dim);
}
.rich-editor__bulk-resize-input {
  width: 56px;
  padding: 4px 6px;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 13px;
  text-align: right;
}
.rich-editor__bulk-resize-btn {
  padding: 5px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: transparent;
  font-family: var(--font-kr);
  font-size: 12.5px;
  color: var(--ink-dim);
  cursor: pointer;
}
.rich-editor__bulk-resize-btn:hover { background: rgba(0,0,0,0.04); color: var(--ink); }
/* .compose-panel textarea { display:block }가 [hidden]의 기본 display:none을
   덮어써버려서, 실제 폼 값을 담는 숨김 textarea가 빈 상자로 보이던 문제 수정. */
.rich-editor textarea[hidden] { display: none !important; }
.rich-editor .ql-toolbar.ql-snow {
  border-color: var(--line-2);
  border-radius: 6px 6px 0 0;
  background: rgba(0,0,0,0.02);
  font-family: var(--font-kr);
}
/* 글자 크기 드롭다운(quill-init.js가 등록하는 px 숫자 값) 라벨 — Quill
   기본 CSS는 small/large/huge 같은 고정 단어만 라벨을 넣어주고 임의의
   px 값은 빈 칸으로 나온다. data-value를 그대로 라벨로 보여준다(Quill
   자체 CSS와 같은 선택자 패턴 + .ql-snow 하나 더 붙여 특이도로 이긴다). */
.rich-editor .ql-snow .ql-picker.ql-size .ql-picker-label::before,
.rich-editor .ql-snow .ql-picker.ql-size .ql-picker-item::before { content: attr(data-value); }
.rich-editor .ql-snow .ql-picker.ql-size .ql-picker-label:not([data-value])::before,
.rich-editor .ql-snow .ql-picker.ql-size .ql-picker-item:not([data-value])::before { content: '보통'; }
.rich-editor .ql-snow .ql-picker.ql-size .ql-picker-options { width: auto; min-width: 90px; }
.rich-editor .ql-container.ql-snow {
  border-color: var(--line-2);
  border-radius: 0 0 6px 6px;
  background: #fff;
}
.rich-editor .ql-editor {
  font-family: var(--font-kr);
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink);
}
.rich-editor .ql-editor.ql-blank::before {
  font-family: var(--font-kr);
  font-style: normal;
  color: var(--ink-mute);
}
.rich-editor .ql-editor .ql-video {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 16 / 9;
  height: auto;
}
.rich-editor .ql-editor img { cursor: pointer; }

/* Quill 본문에 삽입한 사진을 클릭하면 뜨는 크기 조절 배지(−/％/+) —
   page-image__size-ctrl과 같은 톤이지만, 고정 위치 컨테이너가 아니라
   본문 어디에나 있을 수 있는 이미지 옆으로 매번 옮겨 떠야 해서
   position:absolute + JS가 매번 top/left를 계산해 넣는 별도 요소다
   (quill-init.js). */
.ql-img-resize {
  display: none;
  position: absolute;
  z-index: 30;
  align-items: center;
  gap: 2px;
  background: rgba(255,255,255,0.97);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 4px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.18);
}
.ql-img-resize.is-active { display: flex; }
.ql-img-resize button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: transparent;
  border: none;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1;
  color: var(--ink-dim);
  cursor: pointer;
}
.ql-img-resize button:hover { background: rgba(0,0,0,0.06); color: var(--ink); }
.ql-img-resize__delete {
  border-left: 1px solid var(--line-2);
  border-radius: 0 999px 999px 0;
  margin-left: 2px;
}
.ql-img-resize__delete:hover { background: rgba(211,51,51,0.1); color: #d33; }
.ql-img-resize__label {
  min-width: 34px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-mute);
}

/* 사진 오른쪽 아래 모서리에 뜨는 드래그 손잡이 — −/％/+ 배지와 별개로,
   마우스로 직접 끌어서 자유롭게 크기를 조절할 수 있게 한다(quill-init.js). */
.ql-img-resize-handle {
  display: none;
  position: absolute;
  z-index: 30;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
  cursor: nwse-resize;
}
.ql-img-resize-handle.is-active { display: block; }

/* ---- 문의(QnA) 페이지 전용 — 다른 게시판과 공유하는 클래스라도 여기서만
   글자 크기를 13px로 키운다 (11~12px가 너무 작다는 피드백). 폰트도
   font-mono(PRECISIUM Display — 영문/숫자만 굵은 디스플레이용 서체로
   매핑됨)에서 font-kr로 바꿔서, 같은 줄의 한글(답변대기 등)과 영문/숫자
   (날짜, 영문 이름)의 굵기가 서로 다르게 보이던 것도 함께 고친다. */
.qna-page .post-list .post-meta,
.qna-page .post-view__back,
.qna-page .post-view__meta,
.qna-page .post-view__reply-label,
.qna-page .post-view__reply-date,
.qna-page .compose-panel label,
.qna-page .compose-panel__hint,
.qna-page .board-header__meta {
  font-size: 13px;
  font-family: var(--font-kr);
}
/* 목록의 작성자/날짜/상태 배지가 각 줄마다 글자 수에 따라 위치가
   들쭉날쭉하던 것을 고정폭 컬럼으로 정렬한다. 작성자가 길어도 날짜·
   상태 배지와 겹치지 않도록 작성자 칸만 가변폭 + 말줄임 처리한다. */
.qna-page .post-list .post-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px 100px;
  align-items: center;
  gap: 0 16px;
}
.qna-page .post-list .post-meta > span:first-child {
  justify-self: start;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.qna-page .post-list .post-meta > span:nth-child(2) { justify-self: end; }
.qna-page .post-list .post-meta > span:last-child { justify-self: end; }
/* 답변대기/답변완료 배지 — 너무 작고 흐릿하다는 피드백으로 크기·굵기·
   대비를 키운다. */
.qna-page .post-status {
  font-family: var(--font-kr);
  font-size: 12.5px;
  font-weight: 700;
  padding: 5px 12px;
  letter-spacing: 0.08em;
}
.qna-page .post-status--pending {
  background: rgba(176, 106, 31, 0.16);
  color: #8a5218;
}
.qna-page .post-status--replied {
  background: rgba(14, 127, 143, 0.16);
  color: #0a6d78;
}

/* ---- 공지사항/자료실 — 작성자·날짜 메타 정보 글자 크기를 13px로 통일 ---- */
.notice-page .post-list .post-meta,
.notice-page .post-view__meta,
.resources-page .post-list .post-meta,
.resources-page .post-view__meta {
  font-size: 13px;
  font-family: var(--font-kr);
}

/* ---- 문의 작성 폼 — 연락처/이메일/비밀번호/첨부파일 ---- */
.qna-page .compose-panel__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}
.qna-page .compose-panel__row input { margin-bottom: 18px; }
.qna-page .compose-panel input[type="file"] {
  background: transparent;
  border: 1px dashed var(--line-2);
  padding: 10px 14px;
  font-size: 13px;
}
.qna-page .compose-panel__attach-hint {
  font-family: var(--font-kr);
  font-size: 12.5px;
  color: var(--ink-mute);
  margin-top: -12px;
  margin-bottom: 18px;
}
.qna-page .compose-panel__submit {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 11px 22px;
  border-radius: 6px;
  font-family: var(--font-kr);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.qna-page .compose-panel__submit:hover { background: #129cb0; }
.qna-page .compose-panel__cancel {
  display: inline-block;
  background: transparent;
  color: var(--ink-dim);
  border: 1px solid var(--line-2);
  padding: 11px 20px;
  border-radius: 6px;
  font-family: var(--font-kr);
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
}
.qna-page .compose-panel__cancel:hover { border-color: var(--ink); color: var(--ink); }

/* ---- 비밀글 잠금 화면 ---- */
.qna-lock {
  max-width: 420px;
  margin: 60px auto;
  text-align: center;
  padding: 40px 32px;
  background: rgba(0,0,0,0.02);
  border: 1px solid var(--line-2);
  border-radius: 10px;
}
.qna-lock__icon { font-size: 28px; margin-bottom: 12px; }
.qna-lock__title { font-family: var(--font-kr); font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.qna-lock__desc { font-family: var(--font-kr); font-size: 13px; color: var(--ink-mute); margin-bottom: 20px; }
.qna-lock input[type="password"] {
  display: block;
  width: 100%;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  padding: 11px 14px;
  font-size: 14px;
  margin-bottom: 14px;
  text-align: center;
}
.qna-lock__error { color: #d0453a; font-size: 13px; margin-bottom: 12px; }

/* ---- 문의 상세 — 연락처/첨부파일 표시 ---- */
.qna-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-family: var(--font-kr);
  font-size: 13.5px;
  color: var(--ink-dim);
  background: #fff;
  border-radius: 6px;
  padding: 14px 18px;
  margin-bottom: 28px;
}
.qna-contact span b { color: var(--ink-mute); font-weight: 500; margin-right: 6px; }
.qna-attachment {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-kr);
  font-size: 13.5px;
  color: var(--accent);
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 6px;
  margin-bottom: 28px;
}
.qna-attachment:hover { background: rgba(14,127,143,0.05); }

/* ---- 문의 상세의 작성자 본인 수정/삭제 ---- */
.qna-post-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
  padding-top: 24px;
}
.qna-post-actions__delete-form {
  display: inline-flex;
  align-items: center;
}

@media (max-width: 900px) {
  .board-shell { padding: 100px 20px 80px; }
  .board-header { flex-direction: column; align-items: flex-start; }
  .qna-page .compose-panel__row { grid-template-columns: 1fr; }
}
