/*
Theme Name: Comic Cafe Cost Premium
Theme URI: https://comiccafecost.rand3.com/
Author: 문호영
Description: 만화 카페 창업 비용 정보 플랫폼 전용 커스텀 테마. 8pt 스케일 · 토큰 기반 디자인 시스템.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: ccfc
*/

/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */
:root {
  --c-ink:        #1B2A4A;
  --c-ink-2:      #283A61;
  --c-ink-3:      #41527A;
  --c-body:       #3C4659;
  --c-muted:      #5A6478;
  --c-line:       #E7DFD0;
  --c-line-soft:  #F0E9DC;
  --c-bg:         #FFF8EE;
  --c-bg-soft:    #FAF1E0;
  --c-bg-tint:    #F3EDE1;
  --c-accent:     #F2A33C;
  --c-accent-2:   #DF8E1E;
  --c-accent-ink: #7C520E;
  --c-accent-bg:  #FFF3DB;
  --c-white:      #FFFFFF;

  --s-1: 4px;  --s-2: 8px;  --s-3: 16px; --s-4: 24px;
  --s-5: 32px; --s-6: 40px; --s-7: 56px; --s-8: 72px;
  --s-9: 96px; --s-10: 120px; --s-11: 144px;

  --r-xs: 6px; --r-sm: 10px; --r-md: 16px; --r-lg: 24px; --r-xl: 32px; --r-pill: 999px;

  --sh-1: 0 1px 2px rgba(27,42,74,.05), 0 1px 3px rgba(27,42,74,.04);
  --sh-2: 0 4px 12px rgba(27,42,74,.06), 0 2px 4px rgba(27,42,74,.04);
  --sh-3: 0 16px 40px rgba(27,42,74,.10), 0 4px 12px rgba(27,42,74,.05);
  --sh-4: 0 32px 80px rgba(27,42,74,.16);

  --f-sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --f-serif: "Noto Serif KR", "Nanum Myeongjo", Georgia, serif;

  --e-out: cubic-bezier(.22,.61,.36,1);
  --t-fast: 160ms var(--e-out);
  --t-mid:  240ms var(--e-out);
  --t-slow: 320ms var(--e-out);

  --w-page: 1180px;
  --w-prose: 780px;
  --nav-h: 72px;
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 24px); }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-body);
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: -0.011em;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--c-accent-ink); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--c-accent-2); }
h1, h2, h3, h4 { color: var(--c-ink); font-weight: 700; letter-spacing: -0.03em; line-height: 1.32; margin: 0; }
p { margin: 0 0 var(--s-3); }
ul, ol { margin: 0 0 var(--s-3); padding-left: 1.35em; }
li { margin: 0 0 var(--s-2); }
hr { border: 0; border-top: 1px solid var(--c-line); margin: var(--s-7) 0; }
strong { color: var(--c-ink); font-weight: 700; }
:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}
::selection { background: var(--c-accent-bg); color: var(--c-accent-ink); }

.ccfc-skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--c-ink); color: #fff; padding: 12px 20px; border-radius: 0 0 var(--r-sm) 0;
}
.ccfc-skip:focus { left: 0; color: #fff; }

/* ============================================================
   3. LAYOUT PRIMITIVES
   ============================================================ */
.ccfc-wrap { width: 100%; max-width: var(--w-page); margin: 0 auto; padding: 0 var(--s-4); }
.ccfc-narrow { max-width: 880px; margin-left: auto; margin-right: auto; }
.ccfc-section { padding: var(--s-10) 0; }
.ccfc-section--tight { padding: var(--s-8) 0; }
.ccfc-section--soft { background: var(--c-bg-soft); }
.ccfc-section--tint { background: var(--c-bg-tint); }
.ccfc-section--ink { background: var(--c-ink); color: #C7D2E4; }
.ccfc-section--ink h2, .ccfc-section--ink h3 { color: #fff; }
.ccfc-section--ink .ccfc-lede { color: #A9B7CE; }

.ccfc-eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--c-accent-2); margin: 0 0 var(--s-3);
}
.ccfc-eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--c-accent); display: block; }
.ccfc-section--ink .ccfc-eyebrow { color: var(--c-accent); }

.ccfc-h2 { font-family: var(--f-serif); font-size: clamp(28px, 3.6vw, 42px); line-height: 1.28; font-weight: 700; }
.ccfc-lede { font-size: clamp(16px, 1.5vw, 18px); color: var(--c-ink-3); max-width: 64ch; margin-top: var(--s-3); }
.ccfc-section--ink .ccfc-lede { color: #A9B7CE; }
.ccfc-head { max-width: 740px; margin-bottom: var(--s-7); }
.ccfc-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.ccfc-head--center .ccfc-eyebrow { justify-content: center; }
.ccfc-head--center .ccfc-eyebrow::before { display: none; }
.ccfc-head--center .ccfc-lede { margin-left: auto; margin-right: auto; }

.ccfc-grid { display: grid; gap: var(--s-4); }
.ccfc-grid--2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.ccfc-grid--3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.ccfc-grid--4 { grid-template-columns: repeat(4, minmax(0,1fr)); }

/* ============================================================
   4. BUTTONS
   ============================================================ */
.ccfc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 52px; padding: 14px 28px;
  font-size: 16px; font-weight: 700; font-family: var(--f-sans); letter-spacing: -0.01em;
  border-radius: var(--r-pill); border: 1px solid transparent; cursor: pointer;
  transition: transform var(--t-fast), box-shadow var(--t-mid), background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.ccfc-btn--primary { background: var(--c-ink); color: #fff; box-shadow: var(--sh-2); }
.ccfc-btn--primary:hover { background: var(--c-ink-2); color: #fff; transform: translateY(-2px); box-shadow: var(--sh-3); }
.ccfc-btn--accent { background: var(--c-accent); color: #3A2402; box-shadow: var(--sh-2); }
.ccfc-btn--accent:hover { background: var(--c-accent-2); color: #2E1C01; transform: translateY(-2px); box-shadow: var(--sh-3); }
.ccfc-btn--ghost { background: transparent; color: var(--c-ink); border-color: var(--c-line); }
.ccfc-btn--ghost:hover { background: var(--c-bg-soft); color: var(--c-ink); border-color: #D6CDBA; transform: translateY(-2px); }
.ccfc-btn--light { background: rgba(255,255,255,.10); color: #fff; border-color: rgba(255,255,255,.30); backdrop-filter: blur(6px); }
.ccfc-btn--light:hover { background: rgba(255,255,255,.20); color: #fff; transform: translateY(-2px); }
.ccfc-btn--sm { min-height: 44px; padding: 10px 20px; font-size: 15px; }
.ccfc-btn__arrow { transition: transform var(--t-mid); }
.ccfc-btn:hover .ccfc-btn__arrow { transform: translateX(4px); }

/* ============================================================
   5. HEADER / NAV
   ============================================================ */
.ccfc-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,248,238,.86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--c-line-soft);
  transition: box-shadow var(--t-mid), background var(--t-mid);
}
.ccfc-header.is-stuck { box-shadow: var(--sh-2); background: rgba(255,248,238,.96); }
.ccfc-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: var(--nav-h); }
.ccfc-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--c-ink); }
.ccfc-logo:hover { color: var(--c-ink); }
.ccfc-logo__mark { width: 36px; height: 36px; border-radius: 10px; flex: 0 0 36px; box-shadow: var(--sh-1); }
.ccfc-logo__txt { display: flex; flex-direction: column; line-height: 1.15; }
.ccfc-logo__name { font-family: var(--f-serif); font-size: 18px; font-weight: 700; letter-spacing: -0.02em; color: var(--c-ink); }
.ccfc-logo__sub { font-size: 10.5px; font-weight: 600; letter-spacing: .16em; color: var(--c-muted); text-transform: uppercase; }

.ccfc-nav { display: flex; align-items: center; gap: var(--s-1); }
.ccfc-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 13px;
  font-size: 15px; font-weight: 600; color: var(--c-ink-3); border-radius: var(--r-sm);
  transition: color var(--t-fast), background var(--t-fast);
}
.ccfc-nav a:hover, .ccfc-nav .is-current > a { color: var(--c-ink); background: var(--c-bg-soft); }
.ccfc-header__cta { display: flex; align-items: center; gap: var(--s-2); }
.ccfc-burger {
  display: none; width: 44px; height: 44px; border: 1px solid var(--c-line); background: var(--c-white);
  border-radius: var(--r-sm); cursor: pointer; align-items: center; justify-content: center;
}
.ccfc-burger span { display: block; width: 18px; height: 2px; background: var(--c-ink); position: relative; transition: background var(--t-fast); }
.ccfc-burger span::before, .ccfc-burger span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--c-ink); transition: transform var(--t-mid);
}
.ccfc-burger span::before { top: -6px; } .ccfc-burger span::after { top: 6px; }
.ccfc-burger[aria-expanded="true"] span { background: transparent; }
.ccfc-burger[aria-expanded="true"] span::before { transform: rotate(45deg); top: 0; }
.ccfc-burger[aria-expanded="true"] span::after { transform: rotate(-45deg); top: 0; }

.ccfc-drawer { display: none; }
@media (max-width: 1023px) {
  .ccfc-nav { display: none; }
  .ccfc-burger { display: inline-flex; }
  .ccfc-drawer {
    display: block; max-height: 0; overflow: hidden;
    background: var(--c-bg); border-bottom: 1px solid var(--c-line-soft);
    transition: max-height var(--t-mid);
  }
  .ccfc-drawer.is-open { max-height: 560px; }
  .ccfc-drawer__inner { display: grid; gap: var(--s-1); padding: var(--s-3) var(--s-4) var(--s-5); }
  .ccfc-drawer a {
    display: flex; align-items: center; min-height: 48px; padding: 0 12px;
    font-size: 16px; font-weight: 600; color: var(--c-ink); border-radius: var(--r-sm);
  }
  .ccfc-drawer a:hover { background: var(--c-bg-soft); }
  .ccfc-drawer .ccfc-btn { margin-top: var(--s-2); }
}

/* ============================================================
   6. HERO
   ============================================================ */
.ccfc-hero { position: relative; overflow: hidden; background: var(--c-ink); color: #DCE3F0; }
.ccfc-hero__bg { position: absolute; inset: 0; z-index: 0; }
.ccfc-hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(27,42,74,.94) 0%, rgba(27,42,74,.78) 42%, rgba(27,42,74,.28) 78%, rgba(27,42,74,.55) 100%);
}
.ccfc-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.ccfc-hero__inner { position: relative; z-index: 2; padding: clamp(72px, 10vw, 132px) var(--s-4); max-width: 1280px; }
.ccfc-hero__eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-size: 13px; font-weight: 700; letter-spacing: .16em; color: var(--c-accent);
  background: rgba(242,163,60,.12); border: 1px solid rgba(242,163,60,.35);
  padding: 8px 16px; border-radius: var(--r-pill); margin-bottom: var(--s-4);
}
.ccfc-hero h1 {
  font-family: var(--f-serif);
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.18; letter-spacing: -0.035em; color: #fff;
  max-width: 14ch; margin-bottom: var(--s-4);
}
.ccfc-hero__sub { font-size: clamp(16px, 1.8vw, 19px); line-height: 1.8; color: #C9D4E6; max-width: 58ch; margin-bottom: var(--s-6); }
.ccfc-hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-bottom: var(--s-7); }
.ccfc-hero__facts {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: var(--s-4);
  max-width: 720px;
}
.ccfc-hero__fact {
  border-left: 2px solid rgba(242,163,60,.55); padding: 4px 0 4px var(--s-3);
}
.ccfc-hero__fact strong { display: block; font-family: var(--f-serif); font-size: clamp(22px, 2.4vw, 30px); color: #fff; line-height: 1.2; }
.ccfc-hero__fact span { font-size: 13.5px; color: #AEBBD1; }
@media (max-width: 640px) {
  .ccfc-hero__facts { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .ccfc-hero__inner { padding-top: 64px; padding-bottom: 64px; }
}

/* ============================================================
   7. CARDS & CAROUSEL
   ============================================================ */
.ccfc-card {
  display: flex; flex-direction: column;
  background: var(--c-white); border: 1px solid var(--c-line-soft); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--sh-1);
  transition: transform var(--t-mid), box-shadow var(--t-mid), border-color var(--t-fast);
}
.ccfc-card:hover { transform: translateY(-4px); box-shadow: var(--sh-3); border-color: var(--c-line); }
.ccfc-card__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--c-bg-tint); }
.ccfc-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow); }
.ccfc-card:hover .ccfc-card__media img { transform: scale(1.04); }
.ccfc-card__chip {
  position: absolute; left: var(--s-3); top: var(--s-3);
  background: rgba(27,42,74,.86); color: #FFE2B8; font-size: 12px; font-weight: 700;
  padding: 5px 12px; border-radius: var(--r-pill); letter-spacing: .02em;
}
.ccfc-card__body { display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-4); flex: 1; }
.ccfc-card__title { font-size: 18px; line-height: 1.45; letter-spacing: -0.02em; }
.ccfc-card__title a { color: var(--c-ink); }
.ccfc-card__title a:hover { color: var(--c-accent-ink); }
.ccfc-card__exc { font-size: 14.5px; color: var(--c-muted); line-height: 1.65; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ccfc-card__meta { display: flex; align-items: center; gap: var(--s-2); font-size: 12.5px; color: var(--c-muted); margin-top: auto; padding-top: var(--s-2); border-top: 1px dashed var(--c-line-soft); }
.ccfc-card__meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--c-accent); }

.ccfc-carousel { position: relative; }
.ccfc-carousel__track {
  display: flex; gap: var(--s-4); overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: var(--s-3); margin-bottom: var(--s-2);
  scrollbar-width: thin; scrollbar-color: var(--c-accent) transparent;
  -webkit-overflow-scrolling: touch;
}
.ccfc-carousel__track > * { flex: 0 0 min(340px, 82vw); scroll-snap-align: start; }
.ccfc-carousel__nav { display: flex; gap: var(--s-2); justify-content: flex-end; }
.ccfc-carousel__btn {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--c-line); background: var(--c-white); color: var(--c-ink);
  font-size: 18px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.ccfc-carousel__btn:hover { background: var(--c-ink); color: #fff; border-color: var(--c-ink); }

/* ============================================================
   8. HOME SECTIONS
   ============================================================ */
.ccfc-catcard {
  display: flex; align-items: center; gap: var(--s-3);
  background: var(--c-white); border: 1px solid var(--c-line-soft); border-radius: var(--r-md);
  padding: var(--s-4); box-shadow: var(--sh-1);
  transition: transform var(--t-mid), box-shadow var(--t-mid), border-color var(--t-fast);
}
.ccfc-catcard:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: var(--c-line); }
.ccfc-catcard__ico {
  flex: 0 0 48px; width: 48px; height: 48px; border-radius: 14px;
  background: var(--c-accent-bg); color: var(--c-accent-ink);
  display: inline-flex; align-items: center; justify-content: center;
}
.ccfc-catcard__ico svg { width: 26px; height: 26px; }
.ccfc-catcard__body { flex: 1; }
.ccfc-catcard__title { font-size: 16.5px; font-weight: 700; color: var(--c-ink); margin-bottom: 2px; }
.ccfc-catcard__desc { font-size: 13.5px; color: var(--c-muted); line-height: 1.55; margin: 0; }
.ccfc-catcard__go { color: var(--c-accent-ink); font-size: 13px; font-weight: 700; white-space: nowrap; }

.ccfc-feature {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(var(--s-6), 6vw, var(--s-10));
  align-items: center;
}
.ccfc-feature__media { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-3); aspect-ratio: 16 / 11; }
.ccfc-feature__media img { width: 100%; height: 100%; object-fit: cover; }
.ccfc-feature__body h3 { font-family: var(--f-serif); font-size: clamp(22px, 2.6vw, 30px); margin-bottom: var(--s-3); }
.ccfc-feature__body p { color: var(--c-ink-3); }
.ccfc-feature__list { list-style: none; padding: 0; margin: var(--s-4) 0 0; display: grid; gap: var(--s-3); }
.ccfc-feature__list li { display: flex; gap: var(--s-2); align-items: flex-start; color: var(--c-ink-3); }
.ccfc-feature__list li::before { content: "✓"; color: var(--c-accent-2); font-weight: 800; flex: 0 0 auto; }
@media (max-width: 900px) { .ccfc-feature { grid-template-columns: 1fr; } }

.ccfc-infographic { display: grid; gap: var(--s-6); align-items: center; }
@media (min-width: 901px) { .ccfc-infographic { grid-template-columns: 1fr 1.15fr; } }

.ccfc-bars { display: grid; gap: var(--s-4); }
.ccfc-bar__top { display: flex; justify-content: space-between; gap: var(--s-3); font-size: 14.5px; margin-bottom: 6px; }
.ccfc-bar__label { color: var(--c-ink-3); font-weight: 600; }
.ccfc-bar__val { color: var(--c-ink); font-weight: 700; white-space: nowrap; }
.ccfc-bar__track { height: 12px; border-radius: var(--r-pill); background: var(--c-line-soft); overflow: hidden; }
.ccfc-bar__fill { height: 100%; border-radius: var(--r-pill); background: linear-gradient(90deg, var(--c-ink), #3D5385); }
.ccfc-bar--accent .ccfc-bar__fill { background: linear-gradient(90deg, var(--c-accent), #F7BC6B); }
.ccfc-bar--soft .ccfc-bar__fill { background: linear-gradient(90deg, #7D8FB5, #A8B6D4); }
.ccfc-chart__foot { font-size: 12.5px; color: var(--c-muted); margin-top: var(--s-3); }

.ccfc-steps { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: var(--s-4); counter-reset: step; }
.ccfc-step {
  background: var(--c-white); border: 1px solid var(--c-line-soft); border-radius: var(--r-md);
  padding: var(--s-5) var(--s-4); box-shadow: var(--sh-1); position: relative;
}
.ccfc-step__no {
  font-family: var(--f-serif); font-size: 34px; font-weight: 700; color: transparent;
  -webkit-text-stroke: 1.5px var(--c-accent); display: block; margin-bottom: var(--s-3); line-height: 1;
}
.ccfc-step h3 { font-size: 17px; margin-bottom: var(--s-2); }
.ccfc-step p { font-size: 14.5px; color: var(--c-muted); line-height: 1.65; margin: 0; }
@media (max-width: 900px) { .ccfc-steps { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px) { .ccfc-steps { grid-template-columns: 1fr; } }

/* ============================================================
   9. CTA / PAGER / BREADCRUMB
   ============================================================ */
.ccfc-cta {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--s-3);
  background: var(--c-ink); border-radius: var(--r-xl); padding: clamp(var(--s-7), 7vw, var(--s-10)) var(--s-5);
  color: #C7D2E4; position: relative; overflow: hidden;
}
.ccfc-cta::before {
  content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(242,163,60,.22), transparent 70%); top: -180px; right: -120px;
}
.ccfc-cta h2 { font-family: var(--f-serif); color: #fff; font-size: clamp(24px, 3vw, 34px); position: relative; }
.ccfc-cta p { max-width: 52ch; position: relative; }
.ccfc-cta__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); justify-content: center; position: relative; }

.ccfc-pager { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); margin-top: var(--s-7); }
.ccfc-pager a {
  display: flex; flex-direction: column; gap: 2px;
  background: var(--c-white); border: 1px solid var(--c-line-soft); border-radius: var(--r-md);
  padding: var(--s-4); box-shadow: var(--sh-1);
  transition: transform var(--t-mid), box-shadow var(--t-mid), border-color var(--t-fast);
}
.ccfc-pager a:hover { transform: translateY(-2px); box-shadow: var(--sh-2); border-color: var(--c-line); }
.ccfc-pager a.is-next { text-align: right; }
.ccfc-pager small { font-size: 12.5px; color: var(--c-muted); }
.ccfc-pager strong { font-size: 15.5px; color: var(--c-ink); line-height: 1.45; }

.ccfc-breadcrumb { display: flex; flex-wrap: wrap; gap: var(--s-2); font-size: 13.5px; color: var(--c-muted); margin-bottom: var(--s-3); }
.ccfc-breadcrumb a { color: var(--c-muted); }
.ccfc-breadcrumb a:hover { color: var(--c-accent-ink); }
.ccfc-breadcrumb span { color: var(--c-line); }

/* ============================================================
   10. POST HERO & ARTICLE
   ============================================================ */
.ccfc-post-hero { padding: var(--s-8) 0 var(--s-6); background: var(--c-bg-soft); border-bottom: 1px solid var(--c-line-soft); }
.ccfc-chip {
  display: inline-block; font-size: 12.5px; font-weight: 700; color: var(--c-accent-ink);
  background: var(--c-accent-bg); border: 1px solid rgba(242,163,60,.4);
  padding: 5px 13px; border-radius: var(--r-pill);
}
.ccfc-post-hero h1 { font-family: var(--f-serif); font-size: clamp(28px, 4vw, 44px); line-height: 1.3; margin: var(--s-3) 0; }
.ccfc-post-meta { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; font-size: 13.5px; color: var(--c-muted); margin: 0; }

.ccfc-article { padding: var(--s-7) 0 var(--s-9); }
.ccfc-post-figure { margin: 0 0 var(--s-6); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-2); }
.ccfc-post-figure img { width: 100%; height: auto; }
.ccfc-post-figure figcaption { font-size: 13px; color: var(--c-muted); padding: var(--s-2) var(--s-3); background: var(--c-white); }

/* ============================================================
   11. PROSE — 글 본문 (게시글/페이지 공통)
   ============================================================ */
.ccfc-prose { max-width: var(--w-prose); margin: 0 auto; font-size: 17px; line-height: 1.8; color: var(--c-body); }
.ccfc-prose > *:first-child { margin-top: 0; }
.ccfc-prose h2 {
  font-family: var(--f-serif); font-size: clamp(23px, 2.8vw, 30px); line-height: 1.35;
  margin: var(--s-8) 0 var(--s-4); padding-top: var(--s-3);
  border-top: 3px solid var(--c-accent); color: var(--c-ink);
}
.ccfc-prose h3 { font-size: 19px; margin: var(--s-6) 0 var(--s-3); color: var(--c-ink); }
.ccfc-prose p { margin: 0 0 var(--s-4); }
.ccfc-prose ul, .ccfc-prose ol { margin: 0 0 var(--s-4); padding-left: 1.4em; }
.ccfc-prose li { margin-bottom: var(--s-2); }
.ccfc-prose li::marker { color: var(--c-accent-2); }
.ccfc-prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(242,163,60,.5); }
.ccfc-prose a:hover { text-decoration-color: var(--c-accent); }
.ccfc-prose img { border-radius: var(--r-md); }
.ccfc-prose figure { margin: var(--s-5) 0; }
.ccfc-prose figcaption { font-size: 13px; color: var(--c-muted); text-align: center; margin-top: var(--s-2); }

.ccfc-summary {
  background: var(--c-accent-bg); border: 1px solid rgba(242,163,60,.4); border-radius: var(--r-md);
  padding: var(--s-4) var(--s-5); margin: 0 0 var(--s-6);
}
.ccfc-summary__label { font-size: 13px; font-weight: 800; letter-spacing: .1em; color: var(--c-accent-ink); margin-bottom: var(--s-2); }
.ccfc-summary ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-2); }
.ccfc-summary li { padding-left: 22px; position: relative; font-size: 15px; color: var(--c-ink-3); }
.ccfc-summary li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 9px; height: 9px; border-radius: 3px; background: var(--c-accent); transform: rotate(45deg); }

.ccfc-toc {
  background: var(--c-white); border: 1px solid var(--c-line-soft); border-radius: var(--r-md);
  padding: var(--s-4) var(--s-5); margin: 0 0 var(--s-6); box-shadow: var(--sh-1);
}
.ccfc-toc__label { font-size: 13px; font-weight: 800; letter-spacing: .1em; color: var(--c-muted); margin-bottom: var(--s-2); }
.ccfc-toc ol { list-style: none; counter-reset: toc; margin: 0; padding: 0; display: grid; gap: 6px; grid-template-columns: repeat(2, minmax(0,1fr)); }
.ccfc-toc li { counter-increment: toc; font-size: 14.5px; }
.ccfc-toc li::before { content: counter(toc, decimal-leading-zero); font-weight: 700; color: var(--c-accent-2); margin-right: 8px; font-size: 12.5px; }
.ccfc-toc a { color: var(--c-ink-3); }
.ccfc-toc a:hover { color: var(--c-accent-ink); }
@media (max-width: 640px) { .ccfc-toc ol { grid-template-columns: 1fr; } }

.ccfc-tablewrap { overflow-x: auto; margin: var(--s-5) 0; border-radius: var(--r-md); box-shadow: var(--sh-1); }
table.ccfc-table {
  width: 100%; border-collapse: collapse; background: var(--c-white);
  font-size: 14.5px; line-height: 1.6; min-width: 560px;
}
table.ccfc-table caption { text-align: left; font-size: 13px; color: var(--c-muted); padding: 0 0 var(--s-2); caption-side: top; }
table.ccfc-table thead th {
  background: var(--c-ink); color: #F4E8D4; text-align: left;
  padding: 12px 16px; font-weight: 700; font-size: 14px; white-space: nowrap;
}
table.ccfc-table tbody th { background: var(--c-bg-soft); color: var(--c-ink); font-weight: 700; text-align: left; padding: 12px 16px; white-space: nowrap; }
table.ccfc-table tbody td { padding: 12px 16px; border-top: 1px solid var(--c-line-soft); color: var(--c-body); }
table.ccfc-table tbody tr:nth-child(even) { background: #FDFAF3; }
table.ccfc-table tbody tr:hover { background: var(--c-accent-bg); }

blockquote.ccfc-callout {
  background: var(--c-bg-soft); border-left: 4px solid var(--c-accent); border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: var(--s-4) var(--s-5); margin: var(--s-5) 0; color: var(--c-ink-3);
}
blockquote.ccfc-callout p { margin: 0 0 var(--s-2); }
blockquote.ccfc-callout p:last-child { margin-bottom: 0; }
blockquote.ccfc-callout strong { color: var(--c-accent-ink); }

.ccfc-note {
  background: #EDF3FB; border-left: 4px solid #6E8BC0; border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: var(--s-3) var(--s-4); margin: var(--s-5) 0; font-size: 15px; color: #33456B;
}
.ccfc-note strong { color: #1B2A4A; }

.ccfc-chart { background: var(--c-white); border: 1px solid var(--c-line-soft); border-radius: var(--r-md); padding: var(--s-5); margin: var(--s-5) 0; box-shadow: var(--sh-1); }
.ccfc-chart__title { font-weight: 700; color: var(--c-ink); font-size: 16px; margin-bottom: 2px; }
.ccfc-chart__sub { font-size: 13px; color: var(--c-muted); margin-bottom: var(--s-4); }

.ccfc-faq { display: grid; gap: var(--s-3); margin: var(--s-5) 0; }
.ccfc-faq__item { background: var(--c-white); border: 1px solid var(--c-line-soft); border-radius: var(--r-md); overflow: hidden; }
.ccfc-faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); width: 100%;
  background: none; border: 0; cursor: pointer; text-align: left;
  padding: var(--s-3) var(--s-4); font-family: var(--f-sans);
  font-size: 15.5px; font-weight: 700; color: var(--c-ink); min-height: 56px;
}
.ccfc-faq__q .ccfc-faq__mark { color: var(--c-accent-2); font-size: 20px; line-height: 1; transition: transform var(--t-mid); flex: 0 0 auto; }
.ccfc-faq__q[aria-expanded="true"] .ccfc-faq__mark { transform: rotate(45deg); }
.ccfc-faq__a { max-height: 0; overflow: hidden; transition: max-height var(--t-mid); }
.ccfc-faq__a-inner { padding: 0 var(--s-4) var(--s-4); font-size: 15px; color: var(--c-ink-3); }

/* ============================================================
   12. FOOTER
   ============================================================ */
.ccfc-footer { background: var(--c-ink); color: #AEBBD1; margin-top: 0; }
.ccfc-footer__top {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--s-7);
  padding: var(--s-9) 0 var(--s-7);
}
.ccfc-footer__brand .ccfc-logo__name { color: #fff; }
.ccfc-footer__desc { font-size: 14.5px; line-height: 1.7; color: #AEBBD1; margin: var(--s-3) 0 0; max-width: 40ch; }
.ccfc-footer h3 { color: #F4E8D4; font-size: 14px; font-weight: 700; letter-spacing: .08em; margin-bottom: var(--s-3); }
.ccfc-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ccfc-footer a { color: #AEBBD1; font-size: 14.5px; display: inline-flex; min-height: 32px; align-items: center; }
.ccfc-footer a:hover { color: var(--c-accent); }
.ccfc-footer__legal {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: var(--s-6) 0 var(--s-7); display: grid; gap: var(--s-5);
}
.ccfc-footer__meta { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); font-size: 13px; color: #8C9AB5; }
.ccfc-footer .legal-notice { font-size: 0.8em; color: #9AA7C0; }
.ccfc-footer .legal-notice p { margin: 4px 0; line-height: 1.65; }
.ccfc-footer .ai-notice { font-size: 0.8em; color: #9AA7C0; margin: 0; }
@media (max-width: 900px) { .ccfc-footer__top { grid-template-columns: 1fr; gap: var(--s-5); padding: var(--s-7) 0 var(--s-6); } }

/* 게시글 본문 하단 고지 */
.ccfc-prose .legal-notice { font-size: 0.85em; color: #777; background: #f8f9fa; border-left: 3px solid #cbd5e1; padding: 10px 14px; margin-top: 2em; border-radius: 0 6px 6px 0; }
.ccfc-prose .legal-notice p { margin: 4px 0; }
.ccfc-prose .ai-notice { font-size: 0.85em; color: #888; margin-top: 2em; }

/* ============================================================
   13. RELATED / ARCHIVE / PAGINATION
   ============================================================ */
.ccfc-related { padding: var(--s-9) 0; background: var(--c-bg-soft); }
.ccfc-archive-hero { padding: var(--s-7) 0 var(--s-6); background: var(--c-ink); color: #C7D2E4; }
.ccfc-archive-hero h1 { font-family: var(--f-serif); color: #fff; font-size: clamp(26px, 3.4vw, 38px); }
.ccfc-archive-hero p { color: #A9B7CE; margin: var(--s-2) 0 0; max-width: 56ch; }

.ccfc-pagination { display: flex; justify-content: center; gap: var(--s-2); margin-top: var(--s-7); }
.ccfc-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px;
  padding: 0 12px; border-radius: var(--r-sm); border: 1px solid var(--c-line);
  background: var(--c-white); color: var(--c-ink-3); font-weight: 600; font-size: 14.5px;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.ccfc-pagination a.page-numbers:hover { background: var(--c-bg-soft); border-color: var(--c-line); }
.ccfc-pagination .page-numbers.current { background: var(--c-ink); color: #fff; border-color: var(--c-ink); }

/* ============================================================
   14. MISC / UTILITIES / MOTION
   ============================================================ */
.ccfc-404 { text-align: center; padding: var(--s-10) 0; }
.ccfc-404 h1 { font-family: var(--f-serif); font-size: clamp(30px, 4vw, 44px); margin-bottom: var(--s-3); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s var(--e-out), transform .5s var(--e-out); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
