﻿@charset "utf-8";

/* 네오둥근모 — 픽셀 스튜디오답게 본문까지 도트 서체로 간다 (SIL OFL, 상업 이용 가능) */
@font-face {
  font-family: 'NeoDunggeunmo';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.3/NeoDunggeunmo.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   Pixel Muse Studio — 공개 포트폴리오
   노션 원본 레이아웃을 따른다. 좌측 사이드바는 스크롤을 따라다니고,
   우측은 상단 정보 → 카테고리별 그리드 순서로 쌓인다.
   ========================================================================== */

:root {
  --pm-purple: #a855f7;
  --pm-purple-ink: #7c3aed;
  --pm-purple-soft: #f6f0ff;
  --pm-purple-line: #e9dcff;
  --pm-ink: #2b2b32;
  --pm-ink-2: #55555f;
  --pm-ink-3: #8b8b96;
  --pm-line: #ececf1;
  --pm-side-w: 316px;
  --pm-gap: 44px;
}

* { box-sizing: border-box; }

/* 스크롤바도 보라색 계열로 */
html {
  scrollbar-width: thin;
  scrollbar-color: #c9a6f5 #f3eefc;
}
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: #f3eefc; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #c9a6f5, #a855f7);
  border-radius: 999px; border: 3px solid #f3eefc;
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #b98cf2, #9333ea); }
::-webkit-scrollbar-corner { background: #f3eefc; }

/* 목차를 눌렀을 때 뚝 끊기지 않고 미끄러지듯 내려간다 */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: #fff;
  color: var(--pm-ink);
  /* 도트 서체는 정수 배율에서 가장 또렷해서 16px 를 기준으로 잡았다 */
  font-family: 'NeoDunggeunmo', 'Noto Sans KR', 'Apple SD Gothic Neo', sans-serif;
  font-size: 16px;
  line-height: 1.8;
  /* 도트 서체는 글자가 붙으면 뭉쳐 보여서 자간을 살짝 벌려 둔다 */
  letter-spacing: .03em;
  word-spacing: .06em;
  -webkit-font-smoothing: antialiased;
}

/* 마우스 커서도 도트 토끼로. 못 읽는 환경에서는 기본 커서로 떨어진다. */
body { cursor: url('/assets/image/cursor-bunny.png') 5 2, auto; }
a, button, label, summary, select,
.pm-nav__item, [role="button"],
input[type="checkbox"], input[type="radio"], input[type="file"], input[type="submit"] {
  cursor: url('/assets/image/cursor-bunny-point.png') 5 2, pointer;
}
/* 포트폴리오 카드 위에서는 민트 토끼 — 링크와 구분되게 */
.pm-card, .pm-card * {
  cursor: url('/assets/image/cursor-bunny-card.png') 5 2, pointer;
}
input[type="text"], input[type="email"], input[type="url"], input[type="password"], textarea {
  cursor: text;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
p { margin: 0; }

/* ─────────────────────────── 제목 */
.pm-titlebar {
  position: relative;
  max-width: 1560px; margin: clamp(26px, 4vw, 52px) auto 0;
  padding: 0 clamp(20px, 4vw, 60px);
}
.pm-titlebar__icon {
  display: block; margin-top: 6px; image-rendering: pixelated;
  filter: drop-shadow(0 6px 14px rgba(80, 20, 140, .22));
}
.pm-titlebar__name {
  margin: 10px 0 18px;
  font-size: clamp(28px, 3.2vw, 40px); font-weight: 900; letter-spacing: .01em;
}
.pm-titlebar__lace { display: block; width: 100%; height: auto; }

/* ─────────────────────────── 2단 레이아웃 */
.pm-shell {
  display: grid;
  grid-template-columns: var(--pm-side-w) minmax(0, 1fr);
  gap: var(--pm-gap);
  max-width: 1560px; margin: 0 auto; padding: 36px clamp(20px, 4vw, 60px) 0;
  /* align-items 를 start 로 두면 사이드바 칸이 내용 높이에 딱 맞아 버려서
     sticky 가 움직일 여백이 없어진다. 기본값(stretch)을 그대로 쓴다. */
}

/* ── 사이드바 — 본문 높이만큼 늘려 두고 그 안에서 sticky 로 따라다닌다 ── */
.pm-side { min-width: 0; align-self: stretch; }
.pm-side__sticky {
  position: sticky; top: 24px;
  max-height: calc(100vh - 48px);
  overflow-y: auto; overscroll-behavior: contain;
  padding-right: 6px;
  display: flex; flex-direction: column; gap: 16px;
}
.pm-side__sticky::-webkit-scrollbar { width: 5px; }
.pm-side__sticky::-webkit-scrollbar-thumb { background: var(--pm-purple-line); border-radius: 3px; }

.pm-side__brand { display: flex; align-items: center; gap: 9px; }
.pm-side__brand img { image-rendering: pixelated; flex: none; }
.pm-side__brand span { font-size: 23px; font-weight: 800; letter-spacing: 0; }

.pm-side__rule { width: 100%; height: auto; opacity: .9; }

.pm-side__contact { font-size: 15px; color: var(--pm-ink-2); line-height: 1.55; }
.pm-side__contact p { display: flex; flex-direction: column; gap: 3px; }
.pm-side__contact p + p { margin-top: 12px; }
.pm-side__contact span {
  font-size: 13px; font-weight: 800; letter-spacing: .04em;
  color: var(--pm-ink-3);
}
.pm-side__contact a { color: var(--pm-purple-ink); font-weight: 600; }
.pm-side__contact a:hover { text-decoration: underline; }
.pm-side__contact b { font-weight: 600; }

/* ── 노션 콜아웃 느낌의 패널 ── */
.pm-panel {
  border: 1px solid var(--pm-line); border-radius: 14px;
  padding: 14px 16px; background: #fff;
}
.pm-panel--lg { padding: 20px 22px; }
.pm-panel__head {
  display: flex; align-items: center; gap: 9px;
  padding-bottom: 10px; margin-bottom: 12px;
  border-bottom: 1px solid var(--pm-purple-line);
  font-weight: 700; font-size: 14.5px;
}
.pm-panel__head img { image-rendering: pixelated; flex: none; }
.pm-panel__note { font-size: 13.5px; color: var(--pm-ink-2); }

/* ── 퀵 버튼 — 패널 없이 그대로. 주문서가 주(主), 문의가 부(副) ── */
.pm-quick { display: flex; flex-direction: column; gap: 8px; }
.pm-quick__btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; border-radius: 12px;
  background: #fff; border: 1px solid var(--pm-line);
  font-size: 13.5px; font-weight: 700; letter-spacing: .01em; color: var(--pm-ink-2);
  transition: border-color .14s, background .14s, box-shadow .14s, color .14s;
}
.pm-quick__btn svg {
  width: 16px; height: 16px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.pm-quick__btn:hover {
  border-color: var(--pm-purple-line); background: var(--pm-purple-soft);
  color: var(--pm-purple-ink);
}
.pm-quick__btn--go {
  border-color: transparent; color: #fff;
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  box-shadow: 0 8px 18px -8px rgba(124, 58, 237, .55);
}
.pm-quick__btn--go:hover {
  color: #fff; border-color: transparent;
  background: linear-gradient(135deg, #9333ea, #6d28d9);
  box-shadow: 0 12px 22px -8px rgba(124, 58, 237, .62);
}

/* 토끼 셋 — 각자 따로 놀아야 재미있다. 올리면 그 토끼만 깡충거린다. */
.pm-bunnies { display: flex; justify-content: center; align-items: flex-end; gap: 6px; }
.pm-bunny {
  image-rendering: pixelated; height: auto;
  transform-origin: 50% 100%;
  transition: transform .16s cubic-bezier(.2, .8, .3, 1), filter .16s;
  cursor: url('/assets/image/cursor-bunny-point.png') 5 2, pointer;
}
.pm-bunny:hover {
  animation: pm-hop .52s ease-in-out infinite;
  filter: drop-shadow(0 6px 8px rgba(120, 70, 200, .35));
}
@keyframes pm-hop {
  0%   { transform: translateY(0) scale(1, 1); }
  18%  { transform: translateY(0) scale(1.1, .88); }
  45%  { transform: translateY(-12px) scale(.94, 1.1) rotate(-4deg); }
  70%  { transform: translateY(0) scale(1.08, .9) rotate(2deg); }
  100% { transform: translateY(0) scale(1, 1); }
}
@media (prefers-reduced-motion: reduce) {
  .pm-bunny:hover { animation: none; transform: translateY(-4px); }
}

/* ── 목차 ── */
.pm-nav { display: flex; flex-direction: column; gap: 2px; }
.pm-nav__head {
  margin: 0 0 8px; padding-left: 12px;
  font-size: 14px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--pm-ink-3);
}
.pm-nav__item {
  position: relative;
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 10px;
  font-size: 13.5px; font-weight: 600; color: var(--pm-ink-2);
  transition: background .14s, color .14s;
}
.pm-nav__item--top { font-weight: 700; color: var(--pm-ink); }
.pm-nav__item--sub { padding-left: 26px; font-size: 16px; font-weight: 500; }
.pm-nav__item--sub::before {
  content: ""; position: absolute; left: 13px; top: 50%; margin-top: -2px;
  width: 4px; height: 4px; border-radius: 50%; background: #d9d2ea;
  transition: background .14s, transform .14s;
}
.pm-nav__item:hover { background: #f7f6fa; color: var(--pm-ink); }
.pm-nav__item.is-active { background: var(--pm-purple-soft); color: var(--pm-purple-ink); font-weight: 700; }
.pm-nav__item.is-active::before { background: var(--pm-purple); transform: scale(1.4); }
.pm-nav__item em {
  margin-left: auto; padding: 1px 7px; border-radius: 999px;
  background: #f1f0f5; font-style: normal; font-size: 11px; font-weight: 700;
  color: var(--pm-ink-3); font-variant-numeric: tabular-nums;
  transition: background .14s, color .14s;
}
.pm-nav__item.is-active em { background: #fff; color: var(--pm-purple-ink); }

/* ─────────────────────────── 본문 */
.pm-main { min-width: 0; padding-bottom: 60px; }

.pm-h2 {
  position: relative; margin: 0 0 14px; padding-left: 14px;
  font-size: 26px; font-weight: 800; letter-spacing: 0;
}
.pm-h2::before {
  content: ""; position: absolute; left: 0; top: 6px; bottom: 6px;
  width: 4px; border-radius: 2px; background: var(--pm-purple);
}
.pm-h3 {
  position: relative; margin: 0 0 18px; padding-left: 13px;
  font-size: 20px; font-weight: 700; letter-spacing: 0;
}
.pm-h3::before {
  content: ""; position: absolute; left: 0; top: 5px; bottom: 5px;
  width: 3px; border-radius: 2px; background: var(--pm-purple);
}
.pm-h3 em { font-style: normal; font-size: 16px; font-weight: 500; color: var(--pm-ink-3); }

.pm-rule { display: block; width: 100%; height: auto; margin: 54px 0; }

/* ── 상단 정보 ── */
.pm-intro {
  display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 34px;
  align-items: center; margin-bottom: 40px;
}
.pm-intro__figure { display: grid; place-items: center; }
.pm-intro__figure img { image-rendering: pixelated; }
.pm-intro__copy p { color: var(--pm-ink-2); font-size: 15px; line-height: 1.95; }

.pm-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; align-items: start; }

.pm-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pm-list li {
  display: flex; flex-direction: column; gap: 2px;
  padding: 12px 15px; border-radius: 10px; background: #f7f7f9;
  border: 1px solid transparent;
  transition: transform .16s cubic-bezier(.2, .8, .3, 1), background .16s, border-color .16s, box-shadow .16s;
}
.pm-list li:hover {
  transform: translateY(-3px);
  background: var(--pm-purple-soft); border-color: var(--pm-purple-line);
  box-shadow: 0 10px 20px -14px rgba(70, 25, 140, .55);
}
.pm-list b { font-size: 16.5px; font-weight: 700; }
.pm-list span { font-size: 15px; color: var(--pm-ink-3); }

.pm-pitch p { margin-bottom: 18px; color: var(--pm-ink-2); font-size: 14.5px; }
.pm-shot {
  margin: 0 0 12px; border-radius: 12px; overflow: hidden; background: #111;
  border: 1px solid var(--pm-line);
  transition: transform .16s cubic-bezier(.2, .8, .3, 1), border-color .16s, box-shadow .16s;
}
.pm-shot:hover {
  transform: translateY(-3px);
  border-color: var(--pm-purple-line);
  box-shadow: 0 12px 24px -16px rgba(70, 25, 140, .6);
}
.pm-shot img { display: block; width: 100%; height: auto; cursor: zoom-in; }

/* ── 카테고리별 그리드 ── */
.pm-section { scroll-margin-top: 24px; margin-bottom: 56px; }
/* 'Portfolio' 는 구획마다 반복하지 않고 맨 위에 한 번만 */
.pm-h2--lead { margin-bottom: 22px; }

/* 구획 제목은 그 구획을 보는 동안 상단에 붙어 있는다 */
.pm-section .pm-h3 {
  position: sticky; top: 0; z-index: 20;
  margin: 0 0 16px; padding: 12px 0 12px 13px;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(1.6) blur(10px);
  transition: box-shadow .18s;
}
.pm-section .pm-h3::before { top: 14px; bottom: 14px; }
.pm-section .pm-h3.is-stuck {
  box-shadow: 0 1px 0 var(--pm-purple-line), 0 14px 18px -18px rgba(60, 20, 120, .6);
}

.pm-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px 18px;
}

/* 카드 — 이미지 타일 하나. 이름·설명은 평소엔 감춰 두고 마우스를 올리면 떠오른다.
   모서리·테두리·그림자·전환 속도는 MINECAP 카드 어휘를 그대로 따랐다.
   들어올리는 대신 테두리와 얕은 그림자만 바뀌는 절제된 호버. */
.pm-card {
  position: relative; display: block; padding: 0;
  aspect-ratio: 16 / 9; overflow: hidden;
  border: 1px solid var(--pm-line); border-radius: 14px;
  background: #efeef4; cursor: pointer; text-align: left;
  font: inherit; color: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.pm-card:hover {
  border-color: var(--pm-purple-line);
  box-shadow: 0 6px 18px -8px rgba(70, 25, 140, .28);
}
.pm-card:focus-visible { outline: 3px solid var(--pm-purple); outline-offset: 2px; }
.pm-card[hidden] { display: none; }

/* 모바일 페이징 — 스크립트가 그리드 아래에 만들어 넣는다 */
.pm-pager { display: none; }
.pm-pager[hidden] { display: none !important; }

.pm-card__img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .45s cubic-bezier(.4, 0, .2, 1);
}
.pm-card:hover .pm-card__img { transform: scale(1.035); }

/* 평소에도 보이는 최소 정보 — 좌상단 번호, 우상단 이미지 장수 */
.pm-card__no {
  position: absolute; top: 9px; left: 11px; z-index: 2;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px; font-weight: 700; color: rgba(255, 255, 255, .8);
  text-shadow: 0 1px 3px rgba(0, 0, 0, .5);
}
.pm-card__badge {
  position: absolute; top: 8px; right: 9px; z-index: 2;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px; border-radius: 8px;
  background: rgba(20, 8, 36, .58); backdrop-filter: blur(4px);
  color: #fff; font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.pm-card__badge svg {
  width: 11px; height: 11px; fill: none;
  stroke: currentColor; stroke-width: 2; stroke-linejoin: round;
}

/* 올라오는 이름 — 그라데이션이 먼저 깔리고 제목 → 설명 순으로 따라 올라온다 */
.pm-card__overlay {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 2px;
  padding: 22px 14px 14px;
  background: linear-gradient(to top,
      rgba(14, 5, 28, .92) 0%, rgba(14, 5, 28, .7) 34%,
      rgba(14, 5, 28, .22) 64%, transparent 100%);
  color: #fff; opacity: 0; transition: opacity .2s;
}
.pm-card:hover .pm-card__overlay,
.pm-card:focus-visible .pm-card__overlay { opacity: 1; }

.pm-card__title {
  font-size: 17.5px; font-weight: 700; letter-spacing: .01em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  transform: translateY(10px); transition: transform .28s cubic-bezier(.2, .8, .3, 1);
}
.pm-card__desc {
  font-size: 12.5px; color: rgba(255, 255, 255, .8); line-height: 1.5;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  transform: translateY(10px); transition: transform .28s .05s cubic-bezier(.2, .8, .3, 1);
}
.pm-card__desc:empty { display: none; }
.pm-card:hover .pm-card__title,
.pm-card:hover .pm-card__desc,
.pm-card:focus-visible .pm-card__title,
.pm-card:focus-visible .pm-card__desc { transform: translateY(0); }

/* 터치 기기에는 hover 가 없다 — 처음부터 보여 준다 */
@media (hover: none) {
  .pm-card__overlay { opacity: 1; }
  .pm-card__title, .pm-card__desc { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .pm-card, .pm-card__img, .pm-card__overlay,
  .pm-card__title, .pm-card__desc { transition-duration: .01ms; }
}

.pm-none {
  padding: 34px 0; text-align: center; color: var(--pm-ink-3); font-size: 13.5px;
  border: 1px dashed var(--pm-line); border-radius: 12px;
}

/* ── 푸터 — 모든 페이지 공통 (layouts/footer.mustache) ── */
.pm-footer {
  margin-top: 72px; padding: 44px clamp(20px, 4vw, 60px) 30px;
  border-top: 1px solid var(--pm-line);
  background: #fff;
  font-size: 13.5px; color: var(--pm-ink-2); line-height: 1.95;
}
.pm-footer__inner {
  max-width: 1560px; margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between;
}
.pm-footer__name {
  display: flex; align-items: center; gap: 10px; margin-bottom: 10px;
  font-size: 20px; font-weight: 800; letter-spacing: .01em; color: var(--pm-ink);
}
.pm-footer__name img { image-rendering: pixelated; flex: none; }
.pm-footer__line { color: var(--pm-ink-2); }
.pm-footer a { color: inherit; }
.pm-footer__line a:hover { color: var(--pm-purple-ink); text-decoration: underline; }

.pm-footer__menu { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 140px; }
.pm-footer__menuhead {
  margin: 0 0 6px; font-size: 13px; font-weight: 800; letter-spacing: .02em;
  color: var(--pm-ink);
}
.pm-footer__menu a { color: var(--pm-ink-2); }
.pm-footer__menu a:hover { color: var(--pm-purple-ink); text-decoration: underline; }

.pm-footer__copy {
  max-width: 1560px; margin: 30px auto 0; padding-top: 18px;
  border-top: 1px solid var(--pm-line);
  font-size: 12px; color: #a9a9b4; text-align: center;
}

/* ─────────────────────────── 상세 — 우측 슬라이드 패널 */
.pm-drawer { position: fixed; inset: 0; z-index: 200; }
.pm-drawer[hidden] { display: none; }
.pm-drawer__dim {
  position: absolute; inset: 0;
  background: rgba(24, 10, 40, .38); backdrop-filter: blur(2px);
  opacity: 0; transition: opacity .25s;
}
.pm-drawer.is-open .pm-drawer__dim { opacity: 1; }

.pm-drawer__panel {
  position: absolute; top: 0; right: 0; height: 100%;
  /* 화면의 절반 — 좁은 화면에서는 꽉 채운다 */
  width: 50vw; min-width: min(420px, 100vw); max-width: 100vw;
  display: flex; flex-direction: column;
  background: #fff; box-shadow: -10px 0 40px rgba(20, 5, 40, .18);
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.22, 1, .36, 1);
}
.pm-drawer.is-open .pm-drawer__panel { transform: translateX(0); }

.pm-drawer__top {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 18px; border-bottom: 1px solid var(--pm-line); flex: none;
}
.pm-drawer__x {
  margin-left: auto; width: 34px; height: 34px; flex: none;
  border: 0; border-radius: 50%; background: #f5f3f9; color: var(--pm-ink-2);
  font-size: 21px; line-height: 1; cursor: pointer;
  transition: background .14s, color .14s, transform .14s;
}
.pm-drawer__x:hover { background: var(--pm-purple-soft); color: var(--pm-purple-ink); transform: rotate(90deg); }
.pm-drawer__x:focus-visible { outline: 2px solid var(--pm-purple); outline-offset: 2px; }

.pm-drawer__body { flex: 1 1 auto; overflow-y: auto; padding: 18px; }

/* 불러오는 동안의 뼈대 */
.pm-skel { display: none; }
.pm-drawer.is-loading .pm-skel { display: block; }
.pm-drawer.is-loading .pm-modal__real { display: none; }
.pm-skel__stage,
.pm-skel__line {
  border-radius: 6px;
  background: linear-gradient(100deg, #f1eff6 30%, #f8f6fc 50%, #f1eff6 70%);
  background-size: 300% 100%;
  animation: pm-shimmer 1.2s ease-in-out infinite;
}
.pm-skel__stage { height: min(52vh, 380px); border-radius: 8px; margin-bottom: 18px; }
.pm-skel__line { height: 14px; margin-top: 10px; }
.pm-skel__line--tag { width: 76px; height: 20px; border-radius: 999px; margin-top: 0; }
.pm-skel__line--title { width: 46%; height: 26px; margin-top: 12px; }
.pm-skel__line--half { width: 62%; }
@keyframes pm-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .pm-skel__stage, .pm-skel__line { animation: none; }
}

.pm-modal__stage {
  position: relative; border-radius: 12px; overflow: hidden;
  display: grid; place-items: center; min-height: 240px;
}
.pm-modal__img { display: block; max-width: 100%; max-height: 46vh; object-fit: contain; cursor: zoom-in; }
.pm-modal__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .82); color: #2b2b32;
  font-size: 24px; line-height: 1; cursor: pointer;
}
.pm-modal__arrow:hover { background: #fff; }
.pm-modal__arrow--prev { left: 12px; }
.pm-modal__arrow--next { right: 12px; }
.pm-modal__count {
  position: absolute; right: 12px; bottom: 12px;
  padding: 3px 9px; border-radius: 20px;
  background: rgba(0, 0, 0, .55); color: #fff;
  font-size: 11.5px; font-variant-numeric: tabular-nums;
}

.pm-modal__head { margin-bottom: 14px; }
.pm-modal__info { padding: 16px 2px 0; }
.pm-modal__cat {
  display: inline-block; padding: 3px 10px; border-radius: 4px;
  background: var(--pm-purple-soft); color: var(--pm-purple-ink);
  font-size: 11.5px; font-weight: 700;
}
.pm-modal__title { margin: 0; font-size: 21px; font-weight: 800; letter-spacing: 0; }
.pm-modal__summary { margin-top: 4px; font-size: 14px; color: var(--pm-ink-3); }
.pm-modal__desc { margin-top: 12px; font-size: 14.5px; color: var(--pm-ink-2); }
.pm-modal__desc:empty, .pm-modal__summary:empty { display: none; }

/* 관리자 에디터로 쓴 서식 있는 본문 */
.pm-rich { line-height: 1.85; }
.pm-rich p { margin: 0 0 10px; }
.pm-rich h1, .pm-rich h2, .pm-rich h3 {
  margin: 18px 0 8px; font-weight: 800; letter-spacing: 0; color: var(--pm-ink);
}
.pm-rich h1 { font-size: 19px; }
.pm-rich h2 { font-size: 17px; }
.pm-rich h3 { font-size: 15.5px; }
.pm-rich ul, .pm-rich ol { margin: 0 0 10px; padding-left: 20px; }
.pm-rich li { margin: 4px 0; }
.pm-rich a { color: var(--pm-purple-ink); text-decoration: underline; }
.pm-rich img { max-width: 100%; height: auto; border-radius: 8px; margin: 8px 0; cursor: zoom-in; }
.pm-rich blockquote {
  margin: 10px 0; padding: 8px 14px;
  border-left: 3px solid var(--pm-purple-line); background: #faf8fe; color: var(--pm-ink-2);
}
.pm-rich code {
  padding: 1px 5px; border-radius: 5px; background: #f3f1f8;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 13px;
}
.pm-rich pre { padding: 12px 14px; border-radius: 8px; background: #1e1630; color: #efe9ff; overflow-x: auto; }
.pm-rich pre code { background: none; color: inherit; padding: 0; }
.pm-modal__thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.pm-modal__thumbs:empty { display: none; }
.pm-modal__thumbs button {
  width: 72px; height: 54px; padding: 3px; border-radius: 8px; overflow: hidden;
  border: 2px solid transparent; background: #170d24; cursor: pointer;
}
.pm-modal__thumbs button.is-active { border-color: var(--pm-purple); }
/* 썸네일도 원본 비율 그대로 — 잘라내지 않는다 */
.pm-modal__thumbs img { width: 100%; height: 100%; object-fit: contain; display: block; }

body.is-modal-open { overflow: hidden; }

/* ─────────────────────────── 이미지 확대 보기 */
.pm-zoom {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-items: center; padding: clamp(16px, 4vw, 48px);
  background: rgba(12, 4, 24, .92);
  opacity: 0; transition: opacity .2s;
}
.pm-zoom[hidden] { display: none; }
.pm-zoom.is-open { opacity: 1; }
.pm-zoom__img {
  max-width: 100%; max-height: 100%; object-fit: contain;
  cursor: zoom-out; image-rendering: pixelated;
  filter: drop-shadow(0 20px 60px rgba(0, 0, 0, .6));
}
.pm-zoom__x {
  position: absolute; top: 20px; right: 22px;
  width: 42px; height: 42px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .14); color: #fff;
  font-size: 25px; line-height: 1; cursor: pointer;
  transition: background .14s, transform .14s;
}
.pm-zoom__x:hover { background: rgba(255, 255, 255, .3); transform: rotate(90deg); }
.pm-zoom__x:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ─────────────────────────── 반응형 — 768px 하나로 끊는다 */
@media (max-width: 1080px) {
  :root { --pm-side-w: 260px; --pm-gap: 28px; }
  .pm-two { grid-template-columns: minmax(0, 1fr); }
  .pm-intro { grid-template-columns: 180px minmax(0, 1fr); gap: 24px; }
  .pm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .pm-titlebar { margin-top: 20px; }
  .pm-shell { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 24px; }
  .pm-side__sticky { position: static; max-height: none; overflow: visible; }
  /* 모바일에선 목차를 아예 감춘다. 바로 뒤 구분선도 같이 빼서 선이 겹치지 않게 */
  .pm-nav { display: none; }
  .pm-nav + .pm-side__rule { display: none; }
  .pm-intro { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .pm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

  .pm-pager {
    display: flex; justify-content: center; align-items: center; gap: 4px;
    margin-top: 18px;
  }
  .pm-pager button {
    min-width: 34px; height: 34px; padding: 0 8px;
    border: 1px solid var(--pm-line); border-radius: 10px; background: #fff;
    font: inherit; font-size: 13px; font-weight: 700; color: var(--pm-ink-2);
    cursor: pointer;
  }
  .pm-pager button:disabled { opacity: .35; cursor: default; }
  .pm-pager button.is-active {
    background: var(--pm-purple); border-color: transparent; color: #fff;
  }

  .pm-drawer__panel { width: 100vw; min-width: 0; }
  .pm-modal { padding: 12px; }
  .pm-modal__box { padding: 16px; max-height: calc(100vh - 24px); }
  .pm-modal__img { max-height: 46vh; }
}

/* ==========================================================================
   서브 페이지 — 주문서 / 이용약관 / 라이선스 / 자격증
   첫 화면의 사이드바 레이아웃 대신 상단바 + 가운데 정렬 문서 폭을 쓴다.
   ========================================================================== */

/* 연보라 그라디언트 — 세 겹을 옅게 겹쳐 얼룩 없이 은은하게 깔린다.
   티켓 오려낸 자리(.pm-ticket__notch)가 같은 그림을 그대로 이어 받아야 해서
   변수로 빼 두고 background-attachment 를 fixed 로 맞춰 둔다. */
:root {
  --pm-soft-bg:
    radial-gradient(1080px 520px at 10% -6%, #f1e7ff 0%, rgba(241, 231, 255, 0) 62%),
    radial-gradient(900px 460px at 94% 6%, #eae6ff 0%, rgba(234, 230, 255, 0) 58%),
    linear-gradient(180deg, #fbf9ff 0%, #f6f2ff 46%, #fdfcff 100%);
}
.pm-page--soft {
  min-height: 100vh;
  background-image: var(--pm-soft-bg);
  background-repeat: no-repeat;
  background-attachment: fixed;
}
.pm-page--soft .pm-footer { background: transparent; border-top-color: #ebe3fa; }

/* ── 상단바 ── */
.pm-topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid rgba(233, 220, 255, .9);
}
.pm-topbar__inner {
  max-width: 1080px; margin: 0 auto; padding: 12px clamp(18px, 4vw, 28px);
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.pm-topbar__brand { display: flex; align-items: center; gap: 9px; font-weight: 800; letter-spacing: 0; }
.pm-topbar__brand img { image-rendering: pixelated; flex: none; }
.pm-topbar__nav { display: flex; align-items: center; gap: 6px; font-size: 13.5px; }
.pm-topbar__nav a { padding: 7px 12px; border-radius: 9px; color: var(--pm-ink-2); transition: background .14s, color .14s; }
.pm-topbar__nav a:hover { background: var(--pm-purple-soft); color: var(--pm-purple-ink); }
.pm-topbar__cta {
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  color: #fff !important; font-weight: 700;
  box-shadow: 0 6px 16px rgba(124, 58, 237, .26);
}
.pm-topbar__cta:hover { background: linear-gradient(135deg, #9333ea, #6d28d9); }

/* ── 문서 폭 ── */
.pm-doc { max-width: 1080px; margin: 0 auto; padding: clamp(40px, 6vw, 72px) clamp(18px, 4vw, 28px) 0; }
.pm-doc--narrow { max-width: 900px; }

/* ── 히어로 ── */
.pm-hero { margin-bottom: clamp(28px, 4vw, 44px); }
.pm-hero__eyebrow {
  display: block; margin-bottom: 10px;
  font-size: 14px; font-weight: 700; letter-spacing: .04em;
  color: var(--pm-purple);
}
.pm-hero__title {
  margin: 0 0 16px;
  font-size: clamp(28px, 4.2vw, 44px); font-weight: 900; letter-spacing: .01em; line-height: 1.28;
}
.pm-hero__title em {
  font-style: normal;
  background: linear-gradient(100deg, #a855f7, #7c3aed 60%, #6d28d9);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pm-hero__lead { max-width: 720px; color: var(--pm-ink-2); font-size: 15px; line-height: 1.9; }

/* ── 주문서 카드 — 비행기 탑승권처럼. 아래쪽에 절취선과 펀칭 구멍이 있다 ── */
/* 주문서 화면은 읽기 쉬워야 해서 도트 서체 대신 Pretendard 로 간다.
   단 푸터는 사이트 정체성이라 도트 서체를 그대로 둔다. */
.pm-page--form,
.pm-page--form input,
.pm-page--form textarea,
.pm-page--form button,
.pm-page--form select {
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont,
               system-ui, 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', sans-serif;
  letter-spacing: -.01em;
  word-spacing: normal;
}
.pm-page--form .pm-footer {
  font-family: 'NeoDunggeunmo', 'Noto Sans KR', 'Apple SD Gothic Neo', sans-serif;
  letter-spacing: .03em;
  word-spacing: .06em;
}
.pm-doc--form { max-width: 680px; }

.pm-formcard {
  position: relative;
  background: #fff; border: 1px solid #e7dffb; border-radius: 24px;
  padding: clamp(24px, 4vw, 40px);
  box-shadow: 0 24px 60px rgba(110, 70, 180, .10);
}

/* 절취선 — 점선 한 줄과 양쪽 끝에 뚫린 구멍 */
.pm-perf {
  position: relative;
  height: 0; margin: 30px calc(clamp(24px, 4vw, 40px) * -1) 26px;
  border-top: 2px dashed #e7dffb;
}
.pm-perf::before,
.pm-perf::after {
  content: ""; position: absolute; top: -15px;
  width: 28px; height: 28px; border-radius: 50%;
  background-image: var(--pm-soft-bg);
  background-repeat: no-repeat;
  background-attachment: fixed;
  box-shadow: inset 0 0 0 1px #e7dffb;
}
.pm-perf::before { left: -15px; }
.pm-perf::after { right: -15px; }

/* 티켓 아래쪽(스텁) — 안내와 동의, 접수 버튼 */
.pm-stub { display: block; }

.pm-alert {
  margin-bottom: 26px; padding: 16px 18px; border-radius: 14px;
  background: #fff3f4; border: 1px solid #ffd8dc; color: #b42334; font-size: 13.5px;
}
.pm-alert b { display: block; margin-bottom: 6px; font-size: 14px; }
.pm-alert ul { margin: 0; padding-left: 18px; line-height: 1.9; }

/* 위에서 아래로 한 줄씩 채워 내려가는 평범한 폼 */
.pm-fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.pm-field { display: flex; flex-direction: column; min-width: 0; margin-bottom: 12px; }
/* 마지막 칸은 아래 여백을 빼서 .pm-notice 와 간격이 벌어지지 않게 한다 */
.pm-fields > .pm-field:last-child { margin-bottom: 0; }
.pm-field label,
.pm-field__legend { margin-bottom: 8px; font-size: 13.5px; font-weight: 700; color: var(--pm-ink); }
.pm-req { color: var(--pm-purple); }

.pm-field input,
.pm-field textarea {
  width: 100%; padding: 14px 16px;
  border: 1px solid #e8e3f4; border-radius: 12px; background: #fff;
  font: inherit; font-size: 14.5px; color: var(--pm-ink);
  transition: border-color .14s, box-shadow .14s;
}
.pm-field textarea { resize: vertical; min-height: 128px; line-height: 1.8; }
.pm-field input::placeholder,
.pm-field textarea::placeholder { color: #b6b3c4; }
.pm-field input:focus,
.pm-field textarea:focus {
  outline: none; border-color: var(--pm-purple);
  box-shadow: 0 0 0 4px rgba(168, 85, 247, .14);
}
.pm-help { margin-top: 7px; font-size: 12.5px; color: var(--pm-ink-3); }
.pm-help--top { margin: -2px 0 12px; }
.pm-help a { color: var(--pm-purple-ink); text-decoration: underline; }

/* 라이선스 선택 — 카드형 라디오 */
.pm-radios { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.pm-radio { display: block; cursor: pointer; }
.pm-radio input { position: absolute; opacity: 0; width: 0; height: 0; }
.pm-radio__box {
  display: block; height: 100%; padding: 14px 16px 14px 42px; position: relative;
  border: 1px solid #e8e3f4; border-radius: 14px; background: #fdfcff;
  transition: border-color .14s, background .14s, box-shadow .14s;
}
.pm-radio__box::before {
  content: ""; position: absolute; left: 16px; top: 17px;
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid #d5cdea; background: #fff; transition: border-color .14s;
}
.pm-radio__box b { display: block; font-size: 14px; font-weight: 700; }
.pm-radio__box em { display: block; margin-top: 3px; font-style: normal; font-size: 12.5px; color: var(--pm-ink-3); line-height: 1.7; }
.pm-radio:hover .pm-radio__box { border-color: var(--pm-purple-line); background: #faf7ff; }
.pm-radio input:checked + .pm-radio__box {
  border-color: var(--pm-purple); background: var(--pm-purple-soft);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, .12);
}
.pm-radio input:checked + .pm-radio__box::before { border-color: var(--pm-purple); border-width: 5px; }
.pm-radio input:focus-visible + .pm-radio__box { box-shadow: 0 0 0 4px rgba(168, 85, 247, .22); }

/* 안내 박스 */
.pm-notice {
  margin: 0 0 20px; padding: 20px 22px;
  border: 1px solid #efe7ff; border-radius: 16px; background: #faf7ff;
  font-size: 13px; color: var(--pm-ink-2);
}
.pm-notice__head { margin-bottom: 10px; font-weight: 700; color: var(--pm-ink); font-size: 13.5px; }
.pm-notice ol { margin: 0; padding-left: 18px; line-height: 1.95; }

.pm-agree { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; cursor: pointer; }
.pm-agree input { width: 17px; height: 17px; margin-top: 3px; accent-color: var(--pm-purple); flex: none; }
.pm-agree a { color: var(--pm-purple-ink); text-decoration: underline; }

.pm-submit { margin-top: 30px; display: flex; justify-content: center; }

.pm-btn-primary {
  display: inline-block; padding: 15px 46px; border: 0; border-radius: 999px;
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  color: #fff; font: inherit; font-size: 15px; font-weight: 800; letter-spacing: .01em;
  cursor: pointer; box-shadow: 0 12px 28px rgba(124, 58, 237, .28);
  transition: transform .12s, box-shadow .14s, background .14s;
}
.pm-btn-primary:hover { transform: translateY(-1px); background: linear-gradient(135deg, #9333ea, #6d28d9); box-shadow: 0 16px 34px rgba(124, 58, 237, .34); }
.pm-btn-primary:active { transform: translateY(0); }
.pm-btn-ghost {
  display: inline-block; padding: 15px 34px; border-radius: 999px;
  border: 1px solid var(--pm-purple-line); background: #fff;
  font-size: 14.5px; font-weight: 700; color: var(--pm-purple-ink);
}
.pm-btn-ghost:hover { background: var(--pm-purple-soft); }

/* ── 오류 안내 ── */
.pm-oops {
  margin: 0 auto; max-width: 620px; text-align: center;
  background: #fff; border: 1px solid #f0eafd; border-radius: 28px;
  padding: clamp(36px, 6vw, 60px) clamp(24px, 4vw, 44px);
  box-shadow: 0 24px 60px rgba(110, 70, 180, .10);
}
.pm-oops__icon { image-rendering: pixelated; }
.pm-oops__code {
  margin-top: 14px; font-size: 13px; font-weight: 800; letter-spacing: .12em;
  color: var(--pm-purple);
}
.pm-oops__title { margin: 6px 0 12px; font-size: clamp(22px, 3vw, 30px); font-weight: 900; }
.pm-oops__lead { color: var(--pm-ink-2); font-size: 14.5px; line-height: 1.95; }
.pm-oops__lead a { color: var(--pm-purple-ink); text-decoration: underline; }
.pm-oops__links { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* ── 접수 완료 ── */
.pm-done {
  margin: 0 auto; max-width: 620px; text-align: center;
  background: #fff; border: 1px solid #f0eafd; border-radius: 28px;
  padding: clamp(36px, 6vw, 60px) clamp(24px, 4vw, 44px);
  box-shadow: 0 24px 60px rgba(110, 70, 180, .10);
}
.pm-done__icon { image-rendering: pixelated; }
.pm-done__title { margin: 16px 0 12px; font-size: clamp(22px, 3vw, 30px); font-weight: 900; letter-spacing: .01em; }
.pm-done__lead { color: var(--pm-ink-2); font-size: 14.5px; line-height: 1.95; }
.pm-done__links { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* ── 문서 페이지 (약관·라이선스·자격증) ── */
.pm-dochead { margin-bottom: clamp(26px, 4vw, 40px); }
.pm-dochead__title {
  margin: 0 0 14px; font-size: clamp(24px, 3.4vw, 36px); font-weight: 900;
  letter-spacing: .01em; line-height: 1.35;
}
.pm-dochead__lead { color: var(--pm-ink-2); font-size: 14.5px; line-height: 1.95; }
.pm-badge {
  display: inline-block; margin-bottom: 16px; padding: 6px 14px; border-radius: 999px;
  background: var(--pm-purple-soft); border: 1px solid var(--pm-purple-line);
  font-size: 12.5px; font-weight: 700; color: var(--pm-purple-ink);
}

.pm-article {
  background: #fff; border: 1px solid #f0eafd; border-radius: 24px;
  padding: clamp(24px, 4vw, 46px);
  box-shadow: 0 20px 50px rgba(110, 70, 180, .08);
}
.pm-article section + section { margin-top: 42px; padding-top: 38px; border-top: 1px solid #f3f0f9; }
.pm-article h2 {
  position: relative; margin: 0 0 14px; padding-left: 14px;
  font-size: 19px; font-weight: 800; letter-spacing: 0;
}
.pm-article h2::before {
  content: ""; position: absolute; left: 0; top: 5px; bottom: 5px;
  width: 4px; border-radius: 2px; background: var(--pm-purple);
}
.pm-article p { margin-bottom: 12px; color: var(--pm-ink-2); font-size: 14.5px; line-height: 1.95; }
.pm-article p:last-child { margin-bottom: 0; }
.pm-article a { color: var(--pm-purple-ink); text-decoration: underline; }

/* 노션 aside 느낌의 박스 */
.pm-callout {
  margin: 14px 0; padding: 18px 20px;
  border: 1px solid #efe7ff; border-radius: 16px; background: #faf7ff;
  font-size: 14px; color: var(--pm-ink-2);
}
.pm-callout--warn { border-color: #ffdede; background: #fff7f7; }
.pm-callout ul { margin: 0; padding-left: 18px; line-height: 2; }
.pm-callout dl { margin: 0; }
.pm-callout dt { margin-top: 14px; font-weight: 800; color: var(--pm-ink); font-size: 14px; }
.pm-callout dt:first-child { margin-top: 0; }
.pm-callout dd { margin: 3px 0 0; line-height: 1.9; }

/* 라이선스 등급 */
.pm-lic h2 { display: flex; align-items: center; gap: 9px; padding-left: 0; }
.pm-lic h2::before { display: none; }
.pm-lic__no {
  display: inline-grid; place-items: center; flex: none;
  width: 26px; height: 26px; border-radius: 9px;
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  color: #fff; font-size: 13px; font-weight: 800;
}
.pm-lic h2 em {
  font-style: normal; font-size: 12px; font-weight: 600; color: var(--pm-purple-ink);
  padding: 3px 9px; border-radius: 999px; background: var(--pm-purple-soft);
}
.pm-warnhead em {
  font-style: normal; font-size: 12px; font-weight: 700; color: #c0334a;
  padding: 3px 9px; border-radius: 999px; background: #ffeef0; margin-left: 6px;
}

.pm-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.pm-col { padding: 16px 18px; border-radius: 16px; border: 1px solid var(--pm-line); background: #fcfcfd; }
.pm-col h3 { margin: 0 0 10px; font-size: 13px; font-weight: 800; letter-spacing: .01em; }
.pm-col ul { margin: 0; padding-left: 18px; font-size: 13.5px; line-height: 1.95; color: var(--pm-ink-2); }
.pm-col--ok { border-color: #d9f0e2; background: #f6fdf9; }
.pm-col--ok h3 { color: #1e7a4a; }
.pm-col--no { border-color: #f6dcdc; background: #fff8f8; }
.pm-col--no h3 { color: #b42334; }

/* 자격증 표 */
.pm-tablewrap {
  overflow-x: auto;
  background: #fff; border: 1px solid #f0eafd; border-radius: 24px;
  box-shadow: 0 20px 50px rgba(110, 70, 180, .08);
}
.pm-doctable { width: 100%; border-collapse: collapse; min-width: 520px; }
.pm-doctable th,
.pm-doctable td { padding: 16px 22px; text-align: left; font-size: 14px; }
.pm-doctable thead th {
  background: #faf7ff; color: var(--pm-purple-ink);
  font-size: 13px; font-weight: 800; letter-spacing: .01em;
  border-bottom: 1px solid var(--pm-purple-line);
}
.pm-doctable tbody tr + tr td { border-top: 1px solid #f3f0f9; }
.pm-doctable td { color: var(--pm-ink-2); }
.pm-doctable td b { color: var(--pm-ink); font-weight: 700; }
.pm-doctable thead th:first-child { border-top-left-radius: 24px; }
.pm-doctable thead th:last-child { border-top-right-radius: 24px; }

.pm-docfoot { margin: 36px 0 0; display: flex; justify-content: center; }

/* ==========================================================================
   약관·라이선스·자격증 문서 — MINECAP policies 페이지와 같은 규격
   (폭 1172px / 28·24·20px 제목 / 16px 본문 / 회색 계단 토큰)
   ========================================================================== */
.policy-body { background: #fff; }

.policy-page {
  --pc-gray-50: #f7f8fa;
  --pc-gray-100: #f3f5f6;
  --pc-gray-200: #e5e8eb;
  --pc-gray-400: #b0b8c1;
  --pc-gray-600: #6b7684;
  --pc-gray-700: #4e5968;
  --pc-gray-800: #333d4b;
  --pc-gray-900: #191f28;
  width: 100%; max-width: 900px; margin-inline: auto;
  padding: 56px 16px 0;
  /* 원본과 같은 활자 — 문서 페이지에만 쓴다 */
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont,
               system-ui, 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', sans-serif;
}
.policy-page h1 {
  margin: 0 0 18px;
  font-weight: 700; font-size: 28px; line-height: 130%;
  color: var(--pc-gray-900); letter-spacing: normal;
}

.policy-date {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 40px; padding: 7px 14px;
  border: 1px solid var(--pc-gray-200); border-radius: 999px;
  background: var(--pc-gray-50);
}
.policy-date__label { font-weight: 600; font-size: 13px; color: var(--pc-gray-400); }
.policy-date__value { font-weight: 600; font-size: 13px; color: var(--pc-gray-800); }

.policy-content { color: var(--pc-gray-700); }
.policy-content ul,
.policy-content ol { margin: 0; padding: 0; list-style: none; }
.policy-content h2 {
  margin: 24px 0; font-weight: 700; font-size: 24px; line-height: 140%;
  color: var(--pc-gray-800); letter-spacing: normal;
}
.policy-content h3 {
  margin: 24px 0 12px; font-weight: 700; font-size: 20px; line-height: 150%;
  color: var(--pc-gray-800); letter-spacing: normal;
}
.policy-content p {
  margin: 0 0 12px; font-weight: 500; font-size: 16px; line-height: 150%;
  color: var(--pc-gray-700);
}
.policy-content li {
  margin: 12px 0; list-style: none;
  font-weight: 500; font-size: 16px; line-height: 150%; color: var(--pc-gray-700);
}
.policy-content li ul { padding-left: 18px; }
.policy-content ul > li::before {
  content: "•"; margin-right: 8px;
  font-weight: 500; font-size: 16px; line-height: 150%; color: var(--pc-gray-700);
}
.policy-content ul.no-list-style li::before { content: none; }
.policy-content ol { margin-bottom: 12px; padding-left: 18px; }
.policy-content ol > li { margin-top: 12px; list-style: decimal; }
.policy-content ol > li::before { content: none; }
.policy-content a {
  font-weight: 500; font-size: 16px; line-height: 150%;
  color: var(--pc-gray-700); text-decoration: underline;
}
.policy-content b,
.policy-content strong { font-weight: 700; color: var(--pc-gray-800); }
.policy-content small { font-size: 14px; }

.policy-content .overflow-x-auto { overflow-x: auto; }
.policy-content table {
  margin: 12px 0; width: 100%; border-collapse: collapse;
  border: 1px solid var(--pc-gray-200); text-align: left;
}
.policy-content table tr { border-top: 1px solid var(--pc-gray-200); }
.policy-content table th,
.policy-content table td {
  padding: 12px; color: var(--pc-gray-700); vertical-align: top;
  font-weight: 500; font-size: 16px; line-height: 150%;
}
.policy-content table th:first-of-type,
.policy-content table td:first-of-type { width: 224px; }
.policy-content table.table-background-left th:first-of-type,
.policy-content table.table-background-left td:first-of-type { background: var(--pc-gray-100); font-weight: 500; }
.policy-content table.table-background-top th { background: var(--pc-gray-100); font-weight: 500; }
/* 두 칸을 반반으로, 혹은 내용에 맡길 때 (허용/금지 비교표·자격 목록) */
.policy-content table.table-even th:first-of-type,
.policy-content table.table-even td:first-of-type { width: 50%; }
.policy-content table.table-auto th:first-of-type,
.policy-content table.table-auto td:first-of-type { width: auto; }

.policy-content .box.box-bordered {
  margin: 12px 0; padding: 16px;
  border: 1px solid var(--pc-gray-200); border-radius: 8px;
  font-weight: 500; font-size: 16px; line-height: 150%; color: var(--pc-gray-700);
}
.policy-content .box.box-bordered h6 { font-weight: 700; font-size: 16px; color: var(--pc-gray-800); }
.policy-content .box.box-bordered h6.no-margin { margin: 0 0 4px; }

/* 자격증 — 표 대신 한 줄씩 쌓는 리스트 카드 */
.cert-list { display: flex; flex-direction: column; gap: 10px; margin: 20px 0 0; }
/* .policy-content ul > li 의 가운뎃점을 여기서는 쓰지 않는다 */
.policy-content .cert-list > li { margin: 0; }
.policy-content .cert-list > li::before { content: none; }

.cert-card {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--pc-gray-200); border-radius: 12px;
  background: #fff;
  transition: border-color .14s, box-shadow .14s, transform .14s;
}
.cert-card:hover {
  border-color: var(--pm-purple-line);
  box-shadow: 0 6px 18px rgba(110, 70, 180, .08);
  transform: translateY(-1px);
}
.cert-card__mark {
  flex: 0 0 auto; display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 11px;
  background: var(--pm-purple-soft); color: var(--pm-purple-ink);
}
.cert-card__mark svg { width: 21px; height: 21px; }
.cert-card__body { min-width: 0; }
.cert-card__name {
  margin: 0; font-weight: 700; font-size: 16px; line-height: 145%;
  color: var(--pc-gray-900);
}
.cert-card__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin: 4px 0 0; font-size: 14px; line-height: 150%; color: var(--pc-gray-600);
}
/* 기관과 취득일 사이 구분점 — 둘 다 있을 때만 찍힌다 */
.cert-card__issuer + .cert-card__date::before {
  content: ""; display: inline-block; vertical-align: middle;
  width: 3px; height: 3px; margin-right: 9px; border-radius: 50%;
  background: var(--pc-gray-400);
}
.cert-card__date { font-variant-numeric: tabular-nums; }

.cert-empty {
  padding: 28px 18px; border: 1px dashed var(--pc-gray-200); border-radius: 12px;
  text-align: center; font-size: 15px; color: var(--pc-gray-600);
}

@media (max-width: 480px) {
  .cert-card { align-items: flex-start; gap: 12px; padding: 14px 15px; }
  .cert-card__name { font-size: 15px; }
  .cert-card__meta { font-size: 13px; }
}

.policy-page__foot {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--pc-gray-200);
}
.policy-page__foot a { font-weight: 500; font-size: 16px; color: var(--pc-gray-600); }

@media (max-width: 768px) {
  .policy-page { padding: 40px 16px 0; }
  .policy-page h1 { font-size: 24px; }
  .policy-content h2 { font-size: 20px; }
  .policy-content h3 { font-size: 17px; }
  .policy-content p,
  .policy-content li,
  .policy-content ul > li::before,
  .policy-content a { font-size: 15px; }
  .policy-content table { min-width: 560px; }
  .policy-content table th,
  .policy-content table td { padding: 10px; font-size: 14px; }
  .policy-content table th:first-of-type,
  .policy-content table td:first-of-type { width: 140px; }
}

@media (max-width: 768px) {
  .pm-topbar__inner { flex-wrap: wrap; gap: 10px; }
  .pm-topbar__nav { width: 100%; justify-content: flex-start; flex-wrap: wrap; gap: 2px; }
  .pm-cols { grid-template-columns: minmax(0, 1fr); }
  .pm-footer__inner { flex-direction: column; gap: 26px; }
  .pm-btn-primary { width: 100%; text-align: center; }
}
