@charset "UTF-8";
/* ===== AutoCard 명함 스타일 =====
   색은 전부 card.js가 계산한 CSS 변수(--main, --on-bg …)에서 온다 → 어떤 색 조합이든 글자 대비가 보장됨.
   디자인 언어(DiCA에서 가져옴): 작은 영문 머리말 + 큰 제목, 이름 위계(배지·이름·영문 기울임·직함·강조선),
   아이콘 상자 연락처 줄, 하단 고정 바. 템플릿(.tpl-*)은 이 위에서 배치·질감·색 쓰는 법만 다르게 한다. */

/* ---------- 글꼴 (사용자 선택: data-font) ---------- */
.ac-card {
  --f-body: 'Pretendard Variable', Pretendard, 'Noto Sans KR', system-ui, -apple-system, sans-serif;
  --f-head: var(--f-body);
  --f-latin: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --radius: 16px;
}
.ac-card[data-font="classic"] { --f-head: 'Noto Serif KR', 'Nanum Myeongjo', serif; }
.ac-card[data-font="elegant"] { --f-head: 'Gowun Batang', 'Noto Serif KR', serif; }
.ac-card[data-font="soft"] { --f-head: 'Gowun Dodum', var(--f-body); --f-body: 'Gowun Dodum', 'Pretendard Variable', Pretendard, sans-serif; }
.ac-card[data-font="bold"] { --f-head: 'Black Han Sans', var(--f-body); }
.ac-card[data-font="bold"] h1, .ac-card[data-font="bold"] .ac-h, .ac-card[data-font="bold"] .ac-band p { font-weight: 400; letter-spacing: 0; }

/* ---------- 뼈대 ---------- */
.ac-card {
  position: relative; max-width: 440px; margin: 0 auto; min-height: 100%;
  background-color: var(--bg); color: var(--on-bg);
  background-image: radial-gradient(120% 50% at 100% 0%, color-mix(in srgb, var(--point) 9%, transparent), transparent 70%);
  font-family: var(--f-body); line-height: 1.6;
  overflow: hidden; overflow: clip;   /* clip: 하단 고정 바(sticky)가 동작하도록 스크롤 영역을 만들지 않음 */
  word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased;
}
.ac-card * { box-sizing: border-box; }
.ac-card h1 { margin: 0; font-family: var(--f-head); font-size: 34px; line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; }

/* 상단(히어로) 공통 */
.ac-hero { position: relative; background-color: var(--main); color: var(--on-main); }
.ac-hero > * { position: relative; z-index: 1; }
.ac-hero > .ac-hero-img, .ac-hero > .ac-hero-veil { position: absolute; inset: 0; z-index: 0; }
.ac-hero-img { background-size: cover; background-position: center; }
.ac-hero-veil { background: var(--main); opacity: .35; }
.ac-logo { display: block; max-height: 40px; max-width: 150px; object-fit: contain; }
.ac-big { display: block; width: 100%; aspect-ratio: 4 / 5; max-height: 560px; object-fit: cover; object-position: 50% 15%; }
.ac-photo { display: block; object-fit: cover; object-position: 50% 18%; }
.ac-initial { display: flex; align-items: center; justify-content: center; background: var(--point); color: var(--on-point); font-family: var(--f-head); font-weight: 800; font-size: 40px; }

/* ---------- 이름 블록 ---------- */
.ac-id { padding: 0 24px; }
.ac-chapter { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 14px; padding: 5px 12px; border: 1px solid currentColor; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .06em; line-height: 1.3; }
.ac-chapter i { width: 6px; height: 6px; border-radius: 50%; background: var(--point); flex-shrink: 0; }
.ac-name2 { margin-top: 6px; font-family: var(--f-latin); font-style: italic; font-size: 18px; font-weight: 500; color: var(--accent-bg); }
.ac-role { margin-top: 10px; font-size: 14px; font-weight: 500; letter-spacing: .01em; line-height: 1.55; }
.ac-rule { display: block; width: 30px; height: 2px; margin-top: 16px; background: var(--point); }
.ac-slogan { margin: 16px 0 0; font-family: var(--f-head); font-size: 18px; line-height: 1.6; font-weight: 600; white-space: pre-line; }
.ac-hero .ac-name2 { color: var(--accent-main); }

/* ---------- 본문 ---------- */
.ac-main { padding: 10px 20px 28px; }
.ac-slogan-body { margin: 30px 4px 0; font-size: 19px; }
.ac-secs { display: grid; gap: 34px; margin-top: 36px; }
.ac-head { margin-bottom: 14px; }
.ac-kick { display: block; font-size: 11px; font-weight: 700; letter-spacing: .24em; color: var(--accent-bg); }
.ac-h { margin: 6px 0 0; font-family: var(--f-head); font-size: 23px; font-weight: 800; line-height: 1.3; letter-spacing: -0.01em; display: flex; align-items: baseline; gap: 10px; }
.ac-num { display: none; }
.ac-box { padding: 18px 20px; border-radius: 14px; background: var(--surface); color: var(--on-surface); border: 1px solid var(--line); border-left: 3px solid var(--point); }
.ac-box p { margin: 0; font-size: 15px; line-height: 1.8; white-space: pre-line; }
.ac-quote p::before { content: '\201C'; display: block; font-family: var(--f-latin); font-size: 42px; line-height: .8; margin-bottom: 4px; color: var(--accent-surface); }

/* 전문분야·리퍼럴 알약 */
.ac-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ac-list li { padding: 9px 15px; border-radius: 999px; background: var(--surface); color: var(--on-surface); border: 1px solid var(--line); font-size: 14px; font-weight: 600; line-height: 1.45; }
.ac-reflist { flex-direction: column; align-items: stretch; }
.ac-reflist li { border-radius: 16px; padding: 12px 16px; font-weight: 500; }
.ac-reflist li::before { content: '→ '; font-weight: 800; color: var(--accent-surface); }

/* 카드북 저장 — 가장 큰 버튼 */
.ac-save { width: 100%; margin-top: 38px; display: flex; align-items: center; gap: 14px; padding: 18px 18px 18px 20px; border: 0; border-radius: 18px;
  background: var(--point); color: var(--on-point); text-align: left; cursor: pointer; font: inherit;
  box-shadow: 0 14px 30px -14px var(--point); }
.ac-save b { display: block; font-size: 17px; font-weight: 800; }
.ac-save small { display: block; margin-top: 2px; font-size: 12px; font-weight: 500; }
.ac-save .ac-save-t { flex: 1; }
.ac-save svg { flex-shrink: 0; }

/* 연락하기 (CONNECT) */
.ac-sec-connect { margin-top: 40px; }
.ac-crows { display: grid; gap: 10px; }
.ac-crow { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 14px; background: var(--surface); color: var(--on-surface);
  border: 1px solid var(--line); text-decoration: none; min-height: 62px; }
.ac-crow i { width: 40px; height: 40px; border-radius: 11px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  color: var(--accent-surface); border: 1px solid var(--line); }
.ac-crow span { min-width: 0; display: flex; flex-direction: column; }
.ac-crow b { font-size: 10.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.ac-crow em { font-style: normal; font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 맨 아래 작은 아이콘 3개 + 만들기 링크 */
.ac-tools { display: flex; justify-content: center; gap: 22px; margin-top: 36px; }
.ac-tools button { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 64px; padding: 0; border: 0; background: none; color: var(--on-bg); font: inherit; cursor: pointer; }
.ac-tools i { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }
.ac-tools span { font-size: 11px; font-weight: 600; }
.ac-make { display: block; margin-top: 26px; text-align: center; font-size: 12px; color: var(--on-bg); text-decoration: underline; text-underline-offset: 3px; }

/* 하단 고정 바 */
.ac-dock { position: sticky; bottom: 0; z-index: 20; display: flex; gap: 4px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--surface) 94%, transparent); color: var(--on-surface); border-top: 1px solid var(--line);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.ac-dock > * { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; border: 0; background: none; color: inherit;
  font: inherit; text-decoration: none; cursor: pointer; border-radius: 12px; min-height: 48px; }
.ac-dock span { font-size: 11px; font-weight: 700; }
.ac-dock .ac-dock-save { background: var(--point); color: var(--on-point); }

/* ===================================================================
   1. minimal — 밝고 여백 많은 가운데 정렬. 사진은 둥근 카드, 섹션은 얇은 선으로만 나눔
   =================================================================== */
.tpl-minimal .ac-hero { height: 140px; display: flex; justify-content: center; padding-top: 18px; }
.tpl-minimal:not(.has-hero):not(.photo-large) .ac-hero {
  background-image: radial-gradient(circle, color-mix(in srgb, var(--point) 55%, transparent) 1.4px, transparent 2px); background-size: 18px 18px; }
.tpl-minimal.has-hero .ac-hero { height: 180px; }
.tpl-minimal.photo-large .ac-hero { height: auto; padding: 16px 16px 0; background: transparent; display: block; }
.tpl-minimal.photo-large .ac-big { border-radius: 26px; box-shadow: 0 22px 40px -24px rgba(0,0,0,.45); }
.tpl-minimal .ac-id { text-align: center; margin-top: -58px; position: relative; z-index: 2; }
.tpl-minimal.photo-large .ac-id { margin-top: 28px; }
.tpl-minimal .ac-photo { width: 116px; height: 116px; border-radius: 50%; margin: 0 auto 18px; border: 4px solid var(--bg); }
.tpl-minimal .ac-rule { margin: 18px auto 0; }
.tpl-minimal .ac-main, .tpl-minimal .ac-slogan-body { text-align: center; }
.tpl-minimal .ac-secs { gap: 0; }
.tpl-minimal .ac-sec { padding: 30px 0; border-top: 1px solid var(--line); }
.tpl-minimal .ac-box { background: none; border: 0; padding: 0; color: inherit; }
.tpl-minimal .ac-h { justify-content: center; }
.tpl-minimal .ac-list { justify-content: center; }
.tpl-minimal .ac-reflist li { text-align: left; }
.tpl-minimal .ac-quote p::before { color: var(--accent-bg); }
.tpl-minimal .ac-sec-connect { text-align: left; }
.tpl-minimal .ac-sec-connect .ac-head { text-align: center; }

/* ===================================================================
   2. split — 메인색 면과 사진이 사선으로. 섹션은 모서리를 사선으로 자른 카드 + 제목 옆 강조 바
   =================================================================== */
.tpl-split .ac-hero { min-height: 380px; display: flex; flex-direction: column; justify-content: flex-end; }
.tpl-split.photo-large .ac-hero { min-height: 470px; }
.tpl-split:not(.has-hero) .ac-hero {
  background-image: repeating-linear-gradient(135deg, transparent 0 16px, color-mix(in srgb, var(--point) 14%, transparent) 16px 18px); }
.tpl-split.has-hero .ac-hero-veil { opacity: .8; }
.tpl-split .ac-hero > .ac-split-photo { position: absolute; top: 0; right: 0; bottom: 0; width: 58%; clip-path: polygon(40% 0, 100% 0, 100% 100%, 18% 100%); }
.tpl-split.photo-large .ac-hero > .ac-split-photo { width: 66%; clip-path: polygon(40% 0, 100% 0, 100% 100%, 28% 100%); }
.tpl-split .ac-split-photo img, .tpl-split .ac-split-photo .ac-initial { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; font-size: 88px; padding-left: 30%; }
.tpl-split .ac-split-photo img { padding: 0; }
.tpl-split .ac-hero > .ac-logo { position: absolute; top: 20px; left: 22px; max-height: 34px; }
.tpl-split .ac-id { padding: 24px 22px 32px; max-width: 52%; }
.tpl-split .ac-hero::after { content: ''; position: absolute; left: 22px; bottom: 0; width: 44px; height: 4px; background: var(--point); z-index: 2; }
.tpl-split h1 { font-size: 30px; }
.tpl-split .ac-chapter { white-space: nowrap; font-size: 10.5px; padding: 4px 10px; }
.tpl-split .ac-box, .tpl-split .ac-save { border-radius: 0; clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%); }
.tpl-split .ac-box { border-left-width: 1px; }
.tpl-split .ac-h::before { content: ''; width: 18px; height: 4px; background: var(--point); align-self: center; flex-shrink: 0; }
.tpl-split .ac-list li { border-radius: 4px; }

/* ===================================================================
   3. badge — 사진 위에 떠 있는 이름 카드, 섹션마다 그림자 진 둥근 카드
   =================================================================== */
.tpl-badge .ac-hero { height: 190px; padding: 16px 18px; }
.tpl-badge:not(.has-hero):not(.photo-large) .ac-hero {
  background-image:
    radial-gradient(circle at 88% 18%, color-mix(in srgb, var(--point) 45%, transparent) 0 64px, transparent 65px),
    radial-gradient(circle at 6% 120%, color-mix(in srgb, var(--point) 28%, transparent) 0 96px, transparent 97px); }
.tpl-badge.photo-large .ac-hero { height: auto; padding: 0; }
.tpl-badge .ac-hero > .ac-logo { position: absolute; top: 14px; left: 14px; }
.tpl-badge .ac-float { position: relative; z-index: 2; margin: -72px 16px 0; padding: 26px 20px 26px; border-radius: 28px;
  background: var(--surface); color: var(--on-surface); text-align: center; box-shadow: 0 20px 44px -18px rgba(0,0,0,.45); }
.tpl-badge .ac-float .ac-id { padding: 0; }
.tpl-badge .ac-float .ac-name2 { color: var(--accent-surface); }
.tpl-badge .ac-rule { margin: 16px auto 0; }
.tpl-badge .ac-photo { width: 104px; height: 104px; border-radius: 50%; margin: -78px auto 14px; border: 4px solid var(--point); background: var(--surface); }
.tpl-badge .ac-photo.ac-initial { background: var(--point); color: var(--on-point); }
.tpl-badge .ac-main { padding: 6px 16px 28px; }
.tpl-badge .ac-slogan-body { text-align: center; }
.tpl-badge .ac-sec { padding: 22px 20px; border-radius: 24px; background: var(--surface); color: var(--on-surface); box-shadow: 0 14px 30px -18px rgba(0,0,0,.35); }
.tpl-badge .ac-sec .ac-kick { color: var(--accent-surface); }
.tpl-badge .ac-box { background: none; border: 0; padding: 0; }
.tpl-badge .ac-list li { background: var(--bg); color: var(--on-bg); border-color: transparent; }
.tpl-badge .ac-reflist li::before { color: var(--accent-bg); }
.tpl-badge .ac-quote p::before { color: var(--accent-surface); }
.tpl-badge .ac-save { border-radius: 999px; }
.tpl-badge .ac-sec-connect { padding: 0; background: none; box-shadow: none; color: var(--on-bg); }
.tpl-badge .ac-sec-connect .ac-kick { color: var(--accent-bg); }
.tpl-badge .ac-crow { border-radius: 999px; }

/* ===================================================================
   4. magazine — 제호 줄 + 표지 사진 + 큰 세리프 이름, 번호 붙은 섹션, 카드 없이 선으로만
   =================================================================== */
.tpl-magazine .ac-hero { background-color: var(--bg); color: var(--on-bg); padding: 18px 20px 0; }
.tpl-magazine.has-hero .ac-hero { background-color: var(--main); color: var(--on-main); padding-bottom: 18px; }
.tpl-magazine.has-hero .ac-hero-veil { opacity: .75; }
.tpl-magazine .ac-mag-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 4px 0 8px; border-bottom: 2px solid currentColor;
  font-size: 11px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; min-height: 30px; }
.tpl-magazine .ac-mag-top .ac-logo { max-height: 28px; }
.tpl-magazine .ac-mag-photo { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 15%; margin-top: 14px; }
.tpl-magazine .ac-mag-cover { margin-top: 14px; aspect-ratio: 16 / 10; display: flex; align-items: flex-end; padding: 18px 22px;
  background-color: var(--main); color: var(--on-main);
  background-image: repeating-linear-gradient(45deg, transparent 0 22px, color-mix(in srgb, var(--point) 22%, transparent) 22px 24px); }
.tpl-magazine .ac-mag-cover span { font-family: var(--f-head); font-size: 120px; font-weight: 700; line-height: .9; }
.tpl-magazine .ac-id { padding: 24px 20px 0; }
.tpl-magazine h1 { font-size: 44px; line-height: 1.08; }
.tpl-magazine .ac-rule { width: 100%; height: 1px; background: var(--line); margin-top: 22px; }
.tpl-magazine .ac-slogan-body { font-size: 21px; line-height: 1.55; }
.tpl-magazine .ac-secs { gap: 0; }
.tpl-magazine .ac-sec { padding: 26px 0; border-bottom: 1px solid var(--line); }
.tpl-magazine .ac-sec:first-child { border-top: 1px solid var(--line); }
.tpl-magazine .ac-sec-connect .ac-num { display: none; }
.tpl-magazine .ac-num { display: inline; font-family: var(--f-latin); font-style: italic; font-size: 18px; font-weight: 500; color: var(--accent-bg); }
.tpl-magazine .ac-box { background: none; border: 0; padding: 0; color: inherit; }
.tpl-magazine .ac-box p { font-size: 15.5px; }
.tpl-magazine .ac-list { display: grid; gap: 0; }
.tpl-magazine .ac-list li { background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 11px 0; color: inherit; font-weight: 500; font-size: 15px; }
.tpl-magazine .ac-list li:last-child { border-bottom: 0; }
.tpl-magazine .ac-list li::before { content: '\2014\00a0'; color: var(--accent-bg); font-weight: 800; }
.tpl-magazine .ac-quote p::before { color: var(--accent-bg); }
.tpl-magazine .ac-save { border-radius: 4px; }
.tpl-magazine .ac-crow { border-radius: 4px; }

/* ===================================================================
   5. dark — DiCA와 가장 가까운 형. 꽉 찬 사진이 어두운 바탕으로 녹아들고 이름이 그 위에 얹힘
   =================================================================== */
.tpl-dark .ac-hero { min-height: 330px; display: flex; flex-direction: column; justify-content: flex-end; padding-top: 44px; }
.tpl-dark:not(.has-hero):not(.photo-large) .ac-hero {
  background-image: linear-gradient(170deg, transparent 20%, color-mix(in srgb, var(--point) 26%, transparent)),
    radial-gradient(ellipse at 15% 0%, color-mix(in srgb, #fff 12%, transparent), transparent 60%); }
.tpl-dark.has-hero .ac-hero-veil { opacity: .7; }
.tpl-dark.photo-large .ac-hero { background-color: var(--bg); color: var(--on-bg); min-height: 0; display: block; padding-top: 0; }
.tpl-dark.photo-large .ac-hero::after { content: ''; position: absolute; inset: 30% 0 0; z-index: 1;
  background: linear-gradient(transparent, color-mix(in srgb, var(--bg) 75%, transparent) 45%, var(--bg) 92%); }
.tpl-dark.photo-large .ac-hero > .ac-id { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; text-shadow: 0 1px 14px rgba(0,0,0,.35); }
.tpl-dark.photo-large .ac-hero .ac-name2 { color: var(--accent-bg); }
.tpl-dark .ac-hero > .ac-logo { position: absolute; top: 16px; left: 18px; z-index: 3; }
.tpl-dark .ac-id { padding: 0 24px 30px; }
.tpl-dark .ac-photo { width: 96px; height: 96px; border-radius: 22px; margin-bottom: 18px; border: 2px solid var(--point); }
.tpl-dark h1 { font-size: 38px; }
.tpl-dark .ac-main { padding-top: 0; }
.tpl-dark .ac-secs { margin-top: 30px; }
.tpl-dark .ac-box { border-radius: 6px; border-color: var(--line); }
.tpl-dark .ac-list li { border-radius: 6px; border-color: color-mix(in srgb, var(--point) 45%, var(--line)); }
.tpl-dark .ac-save { border-radius: 8px; }
.tpl-dark .ac-crow { border-radius: 8px; }

/* ===================================================================
   6. block — 사진 → 메인색 이름 블록 → 강조색 한 줄 소개 → 섹션마다 색 면을 번갈아 꽉 채움
   =================================================================== */
.tpl-block .ac-hero { padding: 32px 0 34px; }
.tpl-block:not(.has-hero) .ac-hero {
  background-image: linear-gradient(135deg, transparent 72%, color-mix(in srgb, var(--point) 40%, transparent) 72% 84%, var(--point) 84%); }
.tpl-block.has-hero .ac-hero-veil { opacity: .82; }
.tpl-block .ac-hero > .ac-logo { position: absolute; top: 14px; right: 16px; max-height: 32px; }
.tpl-block .ac-id { display: grid; grid-template-columns: 92px 1fr; gap: 18px; align-items: center; }
.tpl-block.photo-large .ac-id { grid-template-columns: 1fr; }
.tpl-block .ac-photo { width: 92px; height: 92px; border-radius: 18px; }
.tpl-block .ac-bigwrap .ac-big { max-height: 500px; }
.tpl-block .ac-band { background: var(--point); color: var(--on-point); padding: 26px 22px; }
.tpl-block .ac-band p { margin: 0; font-family: var(--f-head); font-size: 20px; font-weight: 800; line-height: 1.5; white-space: pre-line; }
.tpl-block .ac-main { padding: 0 0 28px; }
.tpl-block .ac-secs { gap: 0; margin-top: 0; }
.tpl-block .ac-secs > .ac-sec { padding: 32px 22px; }
.tpl-block .ac-secs > .ac-sec:nth-child(3n+1) { background: var(--bg); color: var(--on-bg); }
.tpl-block .ac-secs > .ac-sec:nth-child(3n+2) { background: var(--main); color: var(--on-main); }
.tpl-block .ac-secs > .ac-sec:nth-child(3n) { background: var(--point); color: var(--on-point); }
.tpl-block .ac-sec .ac-kick { color: inherit; }
.tpl-block .ac-box { background: none; border: 0; padding: 0; color: inherit; }
.tpl-block .ac-list { display: grid; gap: 0; }
.tpl-block .ac-list li { background: none; border: 0; border-radius: 0; padding: 6px 0; color: inherit; display: flex; gap: 10px; align-items: baseline; }
.tpl-block .ac-list li::before { content: ''; width: 8px; height: 8px; background: currentColor; flex-shrink: 0; }
.tpl-block .ac-reflist li::before { content: ''; color: inherit; }
.tpl-block .ac-quote p::before { color: inherit; }
.tpl-block .ac-save, .tpl-block .ac-sec-connect, .tpl-block .ac-tools, .tpl-block .ac-make { margin-left: 20px; margin-right: 20px; }
.tpl-block .ac-save { width: calc(100% - 40px); background: var(--main); color: var(--on-main); box-shadow: 0 14px 30px -14px var(--main); border-radius: 6px; }
.tpl-block .ac-sec-connect { padding: 0; }
.tpl-block .ac-crow { border-radius: 4px; }

/* ===== 7. 챕터 스타일: 파이오니어 — 포스터 공통 틀을 폰 화면에 맞춰 옮김 ===== */
.tpl-pioneer .ac-hero.ac-pio { height: 440px; overflow: hidden; background: #9BBEE4; color: var(--on-bg); }
.ac-pio-bg { position: absolute; left: 0; top: 0; bottom: 0; width: 78%; z-index: 0; background: url(pioneer-bg.jpg) left bottom / cover no-repeat; }
.ac-hero > .ac-pio-arc { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.ac-hero > .ac-pio-pill { position: absolute; left: 14px; top: 16px; z-index: 3; display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 3px solid var(--main); border-radius: 999px; padding: 5px 14px 5px 12px; font: 600 13px/1 Georgia, 'Times New Roman', serif; color: #1a1a1a; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.ac-pio-pill b { font: 900 17px/1 Arial, sans-serif; color: #CF2030; letter-spacing: -.5px; }
.ac-hero > .ac-pio-logo { position: absolute; right: 14px; top: 18px; z-index: 3; max-width: 34%; max-height: 64px; object-fit: contain; }
.ac-hero > .ac-pio-photo { position: absolute; left: 0; bottom: 0; z-index: 2; width: 58%; height: 76%; object-fit: cover; object-position: center top;
  /* 네모 사진의 위·오른쪽 가장자리를 흐리게 → 배경 위에 서 있는 것처럼(포스터의 인물 합성 느낌) */
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 22%), linear-gradient(to right, #000 68%, transparent); -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, transparent, #000 22%), linear-gradient(to right, #000 68%, transparent); mask-composite: intersect; }
.ac-hero > .ac-pio-photo.ac-initial { display: flex; align-items: center; justify-content: center; width: 42%; height: 46%; left: 6%; bottom: 8%; border-radius: 50%; background: var(--main); color: var(--on-main); font: 800 64px/1 var(--f-head); -webkit-mask-image: none; mask-image: none; }
.ac-hero > .ac-pio-id { position: absolute; right: 16px; bottom: 26px; z-index: 3; width: 44%; text-align: left; color: var(--on-bg); }
.ac-pio-id h1 { margin: 0; font: 800 34px/1.12 var(--f-head); letter-spacing: .06em; word-break: keep-all; color: var(--on-bg); }
.ac-pio-id .ac-name2 { margin-top: 4px; color: var(--accent-bg); }
.ac-pio-id .ac-role { margin-top: 8px; font-size: 14px; font-weight: 700; color: var(--on-bg); opacity: .85; }
.ac-pio-id .ac-rule { display: block; width: 100%; height: 2px; margin-top: 12px; background: var(--main); }
.tpl-pioneer .ac-main { background: var(--bg); }

/* ===================================================================
   8. landscape — 실제 명함 비율(약 1.6:1)의 카드 면을 먼저 보여줌(종이명함 앞면 느낌). 사진 없음(무료판 기본 템플릿)
   =================================================================== */
.ac-lsc-wrap { padding: 22px 18px 6px; background: var(--bg); }
.tpl-landscape .ac-lsc { aspect-ratio: 1.6 / 1; border-radius: 16px; padding: 22px 24px; background-color: var(--main); color: var(--on-main);
  display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 16px 34px -18px rgba(0,0,0,.4);
  background-image: radial-gradient(120% 70% at 100% 0%, color-mix(in srgb, var(--point) 22%, transparent), transparent 70%); }
.ac-lsc-top { display: flex; justify-content: space-between; align-items: flex-start; min-height: 20px; }
.ac-lsc-top .ac-chapter { margin: 0; border-color: currentColor; }
.ac-lsc-top .ac-logo { max-height: 26px; filter: brightness(0) invert(1); opacity: .9; }
.tpl-landscape .ac-lsc-id h1 { font-size: 26px; }
.tpl-landscape .ac-lsc-id .ac-role { margin-top: 6px; }
.ac-lsc-slogan { margin: 10px 0 0; font-size: 13.5px; font-weight: 600; opacity: .9; white-space: pre-line; }
.ac-lsc-contact { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; flex-wrap: wrap; }
.ac-lsc-contact i { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .6; }
.tpl-landscape .ac-main { padding-top: 24px; }

/* ===================================================================
   9. ribbon — 왼쪽 세로 색 리본 위에 원형 사진이 얹힘
   =================================================================== */
.tpl-ribbon .ac-hero { height: 168px; }
.tpl-ribbon:not(.has-hero) .ac-hero {
  background-image: linear-gradient(100deg, color-mix(in srgb, var(--point) 16%, transparent) 0%, transparent 46%); }
.ac-ribbon { position: absolute; left: 26px; top: 0; bottom: -46px; width: 10px; background: var(--point); z-index: 1;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 88%, 0 100%); }
.tpl-ribbon .ac-hero > .ac-logo { position: absolute; top: 16px; right: 18px; }
.ac-ribbon-photo { position: absolute; left: 0; bottom: -46px; z-index: 2; width: 92px; margin-left: 6px; }
.ac-ribbon-photo .ac-photo { width: 92px; height: 92px; border-radius: 50%; border: 4px solid var(--bg); }
.tpl-ribbon .ac-id { padding: 0 24px; margin-top: 58px; }
.tpl-ribbon .ac-rule { background: var(--point); }

/* ===================================================================
   10. polaroid — 살짝 기울어진 폴라로이드 사진 카드 + 손글씨 느낌 캡션
   =================================================================== */
.tpl-polaroid .ac-polaroid-hero { min-height: 260px; display: flex; align-items: center; justify-content: center; padding: 30px 0 34px; }
.tpl-polaroid:not(.has-hero) .ac-polaroid-hero {
  background-image: radial-gradient(circle, color-mix(in srgb, var(--point) 40%, transparent) 1.4px, transparent 2px); background-size: 16px 16px; }
.ac-polaroid { position: relative; z-index: 1; width: 190px; padding: 14px 14px 26px; background: #fff; border-radius: 4px;
  box-shadow: 0 18px 34px -14px rgba(0,0,0,.45); transform: rotate(-4deg); }
.ac-polaroid-photo { width: 100%; aspect-ratio: 1 / 1; overflow: hidden; background: var(--point); }
.ac-polaroid-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; display: block; }
.ac-polaroid-photo .ac-initial { width: 100%; height: 100%; font-size: 52px; }
.ac-polaroid-cap { margin-top: 12px; text-align: center; font-family: var(--f-latin); font-style: italic; font-size: 15px; color: #333; }
.tpl-polaroid .ac-hero > .ac-logo { position: absolute; top: 14px; left: 16px; z-index: 2; }
.tpl-polaroid .ac-id { text-align: center; }
.tpl-polaroid .ac-rule { margin: 16px auto 0; }
.tpl-polaroid .ac-main, .tpl-polaroid .ac-slogan-body { text-align: center; }
