/* ============================================================
   길해명리마음상담소 — Quiet Luxury Editorial Design System
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=MaruBuri:wght@300;400;500;600;700&display=swap');

:root {
  --bg:        #FAF8F4;
  --text:      #282522;
  --accent:    #A88C68;
  --border:    #E8E1D9;
  --surface:   #F2EDE6;
  --muted:     #7A7370;
  --max-w:     780px;
  --font-serif: 'MaruBuri', 'Noto Serif KR', serif;
  --font-sans:  'Pretendard Variable', 'Pretendard', -apple-system, 'Apple SD Gothic Neo', sans-serif;

  /* 사주 테이블 전용 색상 변수 */
  --purple:      #5a2890;
  --purple-soft: #e8d8f8;
  --gold:        #c0922a;
  --line:        #ddd4f0;
  --cream:       #f3eeff;
  --paper:       #faf7ff;
  --ivory:       #f5f2ee;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* 상단 고정 메뉴(88px)에 제목이 가리지 않도록 여백을 둡니다 */
html { scroll-behavior: smooth; scroll-padding-top: 104px; }
section[id] { scroll-margin-top: 104px; }

/* ── Paper texture overlay ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.028;
  pointer-events: none;
  z-index: 9999;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.8;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ── Layout ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 120px 0;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(24px, 4vw, 48px);
  height: 112px;
  background-color: #9c343a;
  background-image: url('/img/logo');
  background-repeat: no-repeat;
  background-size: 320px auto;
  background-position: left -62px;
  border-bottom: 1px solid rgba(255, 246, 225, 0.28);
  box-shadow:
    inset 0 0 0 999px rgba(255, 246, 225, 0.14),
    0 5px 22px rgba(78, 25, 31, 0.12);
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  width: 280px;
  height: 100%;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 400;
  color: rgba(255, 246, 225, 0.84);
  text-decoration: none;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: color 0.2s;
}

.nav-links a:hover { color: #fff; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: #fff6e1;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: currentColor;
  transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle-icon {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 22px;
}

.nav-toggle-icon span {
  display: block;
  height: 1px;
  background: var(--text);
  transition: transform 0.25s, opacity 0.25s;
}

/* ============================================================
   EYEBROW & SECTION TYPOGRAPHY
   ============================================================ */
.eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

h1, h2, h3 { font-family: var(--font-serif); line-height: 1.4; }

h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 600; }
h3 { font-size: 1.15rem; font-weight: 600; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: opacity 0.2s;
}
.btn-link:hover { opacity: 0.7; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.4rem;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 2px;
  background: transparent;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  text-decoration: none;
  letter-spacing: 0.02em;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.btn-primary-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1.25rem;
  border: 1px solid #7d2930;
  border-radius: 2px;
  background: #8d3037;
  color: #fffaf2;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.btn-primary-solid:hover { background: #73242b; border-color: #73242b; transform: translateY(-1px); }

/* legacy button aliases */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.3rem;
  font-size: 0.875rem;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 2px;
  background: transparent;
  transition: border-color 0.2s, color 0.2s;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-tertiary { font-size: 0.875rem; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.btn-ghost { font-size: 0.875rem; color: var(--muted); }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  padding: 140px 0 120px;
  background: var(--bg);
}

.hero-section .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.hero-eyebrow {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.hero-section h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}

.hero-subtext {
  font-size: 1rem;
  line-height: 2.0;
  color: var(--muted);
  margin-bottom: 2.5rem;
  white-space: pre-line;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.hero-reassurance {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.15rem;
  margin-top: 1.4rem;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.82rem;
}
.hero-reassurance li::before { content: '·'; margin-right: 0.35rem; color: var(--accent); }

/* ============================================================
   SECTION: 상담 안내
   ============================================================ */
.consulting-section { background: var(--surface); }
.consulting-section h2 { max-width: 34rem; }

.consulting-lead {
  max-width: 42rem;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.consulting-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.consulting-trust span {
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(168, 140, 104, 0.45);
  border-radius: 100px;
  color: #715d48;
  font-size: 0.78rem;
  line-height: 1.35;
}

.consulting-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 3rem;
  border: 1px solid var(--border);
  background: var(--border);
}

.consulting-step {
  min-height: 220px;
  padding: 2rem 1.5rem;
  background: var(--bg);
}

.consulting-num {
  display: block;
  margin-bottom: 2.6rem;
  color: var(--accent);
  font-family: var(--font-serif);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
}

.consulting-step h3 {
  margin-bottom: 0.7rem;
  font-size: 1rem;
}

.consulting-step p {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.75;
}

.consulting-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.consulting-note {
  max-width: 62ch;
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.75;
}

/* ============================================================
   SECTION: 최근 글 (Featured Articles)
   ============================================================ */
.articles-section .section-head {
  margin-bottom: 3rem;
}

.section-head h2 {
  margin-top: 0.25rem;
}

.article-list {
  display: flex;
  flex-direction: column;
}

.article-card-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 1rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s;
}

.article-card-item:first-child { border-top: 1px solid var(--border); }
.article-card-item:hover { opacity: 0.72; }

.article-card-item .article-category {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.5rem;
  display: block;
}

.article-card-item h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.article-card-item .article-summary {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.article-card-item .article-read-time {
  font-size: 0.75rem;
  color: var(--muted);
}

.article-card-item .article-arrow {
  font-size: 0.85rem;
  color: var(--muted);
  padding-top: 0.25rem;
  flex-shrink: 0;
}

/* ============================================================
   SECTION: 고민별 글 찾기 (Categories)
   ============================================================ */
.categories-section {
  background: var(--surface);
}

.category-intro {
  max-width: 58ch;
  margin: .8rem 0 0;
  color: var(--muted);
}

.concern-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 2rem 0 1.25rem;
}
.concern-nav a {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  background: #fffdfa;
  color: var(--text);
  font-family: var(--font-serif);
  font-size: 0.93rem;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.concern-nav a::after { content: '→'; margin-left: auto; color: var(--accent); }
.concern-nav a:hover { border-color: var(--accent); background: var(--surface); color: #6b4c2e; }

/* ============================================================
   SECTION: 네이버 프리미엄 콘텐츠
   ============================================================ */
.premium-home { background: #2f2a26; }
.premium-home-card {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  padding: clamp(2rem, 6vw, 4.5rem);
  border: 1px solid rgba(230, 214, 177, .22);
  background: linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.015));
}
.premium-home .eyebrow { color: #dbc69a; }
.premium-home h2 { margin: .55rem 0 1rem; color: #fffaf2; }
.premium-home-copy > p { max-width: 55ch; margin: 0 0 1.6rem; color: rgba(255,250,242,.74); line-height: 1.9; }
.premium-home .btn-outline { border-color: rgba(255,250,242,.65); color: #fffaf2; }
.premium-home .btn-outline:hover { border-color: #fffaf2; background: rgba(255,255,255,.08); }
.premium-home-points { display: grid; gap: .85rem; margin: 0; padding: 0; list-style: none; }
.premium-home-points li { padding: 1rem 1.05rem; border-left: 2px solid #b89551; background: rgba(0,0,0,.16); }
.premium-home-points strong { display: block; color: #fffaf2; font-family: var(--font-serif); font-size: 1rem; }
.premium-home-points span { display: block; margin-top: .28rem; color: rgba(255,250,242,.68); font-size: .82rem; line-height: 1.6; }

@media (max-width: 720px) {
  .premium-home-card { grid-template-columns: 1fr; padding: 1.5rem; }
}

.pill-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-top: 2.5rem;
}

.pill-nav a {
  display: inline-block;
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--bg);
  transition: border-color 0.2s, color 0.2s;
  text-decoration: none;
}

.pill-nav a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ============================================================
   SECTION: 연재 (Series)
   ============================================================ */
.series-list {
  display: flex;
  flex-direction: column;
  margin-top: 3rem;
}

.series-item {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1.5rem;
  align-items: start;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
}

.series-item:first-child { border-top: 1px solid var(--border); }

.series-num {
  font-size: 0.75rem;
  color: var(--muted);
  font-family: var(--font-serif);
  padding-top: 0.35rem;
}

.series-item h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.series-item p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.75;
}

/* ============================================================
   SECTION: 길해 소개 (About)
   ============================================================ */
.about-section {}

/* ── 프로필 에디토리얼 레이아웃 ── */
.about-profile {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 5rem;
  align-items: start;
  margin-bottom: 6rem;
}

@media (max-width: 680px) {
  .about-profile { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* 오프셋 프레임 포토 */
.about-photo-frame {
  position: relative;
  padding-bottom: 16px;
  padding-right: 16px;
}

.about-photo-frame::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: calc(100% - 16px);
  height: calc(100% - 16px);
  border: 1px solid var(--border);
  z-index: 0;
  pointer-events: none;
}

.about-photo {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: 50% 12%;
  display: block;
}

/* 오른쪽 텍스트 블록 */
.about-text {
  padding-top: 1rem;
}

.about-role {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.about-name {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 6vw, 4rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.2em;
  line-height: 1;
  margin-bottom: 2.5rem;
}

.about-credentials {
  list-style: none;
  border-top: 1px solid var(--border);
  padding-top: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.about-credentials li {
  font-size: 0.875rem;
  color: var(--muted);
  padding-left: 1.2rem;
  position: relative;
  line-height: 1.65;
}

.about-credentials li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.75rem;
  top: 0.1em;
}

.about-cred-note {
  font-size: 0.78rem;
  color: var(--accent);
  opacity: 0.85;
}

/* ── 저서 에디토리얼 ── */
.about-books {
  border-top: 1px solid var(--border);
  padding-top: 4.5rem;
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(2, 260px);
  gap: 3rem;
}

@media (max-width: 560px) {
  .books-grid {
    grid-template-columns: minmax(0, 260px);
    gap: 2.5rem;
  }
}

.book-card {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  cursor: pointer;
}

.book-link-label {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-top: 0.2rem;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.book-card:hover .book-link-label { opacity: 1; }

.book-cover-wrap {
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,0.14), 0 4px 12px rgba(0,0,0,0.08);
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.book-card:hover .book-cover-wrap {
  box-shadow: 0 24px 64px rgba(0,0,0,0.2), 0 8px 20px rgba(0,0,0,0.1);
  transform: translateY(-5px);
}

.book-cover {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: center 42%;
  display: block;
  transition: transform 0.4s ease;
}

.book-card:hover .book-cover {
  transform: scale(1.03);
}

.book-meta {
  padding: 0 0.15rem;
}

.book-title {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.55;
  margin-bottom: 0.35rem;
}

.book-title-long {
  font-size: 0.84rem;
  white-space: nowrap;
}

.book-desc {
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ============================================================
   SECTION: 방문자 후기
   ============================================================ */
.reviews-section { background: var(--surface); }

.reviews-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 3rem;
  align-items: center;
  padding: clamp(2rem, 5vw, 3.5rem);
  border: 1px solid var(--border);
  background: var(--bg);
}

.reviews-copy h2 {
  max-width: 30rem;
  margin-bottom: 1rem;
}

.reviews-copy p {
  max-width: 38rem;
  margin-bottom: 1.7rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.8;
}

.reviews-note {
  display: flex;
  min-height: 168px;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
  border: 1px solid var(--border);
  background: #fff;
}

.reviews-note-mark {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #03c75a;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
}

.reviews-note p {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.65;
}

.about-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  font-weight: 400;
  line-height: 1.9;
  color: var(--text);
  white-space: pre-line;
  border-left: 2px solid var(--accent);
  padding-left: 1.5rem;
  margin: 3rem 0;
}

.about-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.about-list li {
  display: flex;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.about-list li::before {
  content: '·';
  color: var(--accent);
  flex-shrink: 0;
}

/* ============================================================
   SECTION: 무료 사주 (Fortune)
   ============================================================ */
.fortune-section {
  background: var(--bg);
}

.fortune-section .section-head {
  margin-bottom: 3rem;
}

.fortune-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.pill-options {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.pill-options label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  cursor: pointer;
}

.form-grid {
  display: grid;
  gap: 0.75rem;
}

.date-grid { grid-template-columns: repeat(3, 1fr); }
.time-grid { grid-template-columns: repeat(2, 1fr); }

.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--muted);
}

select, input[type="number"] {
  width: 100%;
  padding: 0.55rem 0.75rem;
  font-size: 0.9rem;
  font-family: var(--font-sans);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--text);
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  transition: border-color 0.2s;
}

select:focus, input[type="number"]:focus {
  border-color: var(--accent);
}

.gender-options {
  display: flex;
  gap: 1.25rem;
}

.gender-options label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  cursor: pointer;
}

.leap-check { margin-left: 0.5rem; }

.advanced-options {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.advanced-options summary {
  font-size: 0.8rem;
  color: var(--muted);
  cursor: pointer;
  list-style: none;
  letter-spacing: 0.04em;
}

.advanced-options > label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  margin-top: 1rem;
  color: var(--muted);
  cursor: pointer;
}

.fortune-submit {
  margin-top: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-size: 0.9rem;
  font-family: var(--font-sans);
  font-weight: 500;
  background: var(--text);
  color: #fff;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: opacity 0.2s;
}

.fortune-submit:hover { opacity: 0.82; }
.fortune-submit:disabled { cursor: wait; opacity: 0.65; }

.privacy-consent {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  margin: .9rem 0 .25rem;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.6;
}

.privacy-consent input { margin-top: .25rem; }
.privacy-consent a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

.result-consulting-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem 2rem;
  align-items: center;
  margin-top: 1.5rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid rgba(154, 52, 58, .28);
  border-radius: .6rem;
  background: #fff8ed;
}

.result-consulting-cta span,
.result-consulting-cta strong,
.result-consulting-cta p { display: block; }
.result-consulting-cta span { color: var(--muted); font-size: .76rem; }
.result-consulting-cta strong { margin-top: .2rem; color: var(--text); font-family: var(--font-serif); font-size: 1rem; }
.result-consulting-cta p { margin: .45rem 0 0; color: var(--muted); font-size: .78rem; line-height: 1.65; }
.result-consulting-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1rem;
  border-radius: .35rem;
  background: #9c343a;
  color: #fff;
  font-size: .84rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.footer-legal {
  display: flex;
  justify-content: center;
  gap: .5rem;
  padding: 0 1.2rem 1.5rem;
  color: var(--muted);
  font-size: .75rem;
}
.footer-legal a { color: inherit; text-underline-offset: 3px; }

.privacy-page { max-width: 760px; padding-top: clamp(3rem, 8vw, 6rem); padding-bottom: clamp(4rem, 10vw, 7rem); }
.privacy-page h1 { margin: .4rem 0 1rem; }
.privacy-lead { max-width: 58ch; margin-bottom: 2.5rem; color: var(--muted); font-size: 1.05rem; }
.privacy-page section { padding: 1.3rem 0; border-top: 1px solid var(--border); }
.privacy-page h2 { margin: 0 0 .5rem; font-size: 1.15rem; }
.privacy-page p { max-width: 62ch; margin: 0; color: var(--muted); }
.privacy-page a { color: var(--accent); }
.privacy-back { color: var(--muted); font-size: .86rem; text-underline-offset: 3px; }
.privacy-updated { margin-top: 2rem !important; font-size: .8rem; }

@media (max-width: 640px) {
  .result-consulting-cta { grid-template-columns: 1fr; }
  .result-consulting-cta a { width: 100%; }
}

.fortune-status {
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
  min-height: 1.2em;
}

.fortune-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.fortune-copy h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text);
}

.fortune-copy p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

.fortune-copy .note {
  font-size: 0.78rem;
  color: var(--muted);
  opacity: 0.75;
}

/* 길해만세력 입력 화면 */
.fortune-section .container {
  max-width: 1080px;
}

.fortune-section .section-head {
  max-width: 680px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.fortune-section .section-head h2 {
  margin-top: 0.55rem;
  text-wrap: balance;
}

.fortune-layout {
  grid-template-columns: minmax(0, 660px) minmax(220px, 280px);
  justify-content: center;
  gap: clamp(2rem, 5vw, 4rem);
}

.fortune-card {
  gap: 0;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-color: #ddd6cc;
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(35, 31, 27, 0.08);
  overflow: hidden;
}

.fortune-form-intro {
  margin: calc(clamp(1.5rem, 4vw, 2.5rem) * -1);
  margin-bottom: 1.6rem;
  padding: 1.4rem clamp(1.5rem, 4vw, 2.5rem) 1.25rem;
  background: linear-gradient(135deg, #292623 0%, #3c3731 100%);
  color: #f9f7f2;
}

.fortune-form-kicker {
  display: block;
  margin-bottom: 0.35rem;
  color: #dbc69a;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.11em;
}

.fortune-form-intro p {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.5;
}

.fortune-field {
  min-width: 0;
  margin: 0;
  padding: 0 0 1.5rem;
  border: 0;
}

.fortune-field + .fortune-field {
  padding-top: 1.5rem;
  border-top: 1px solid #ebe7e1;
}

.fortune-field legend {
  width: 100%;
  margin: 0 0 0.85rem;
  padding: 0;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0;
}

.fortune-field legend::before {
  display: inline-grid;
  width: 22px;
  height: 22px;
  margin-right: 0.5rem;
  place-items: center;
  border-radius: 50%;
  background: #eee7da;
  color: #5d5040;
  font-size: 0.69rem;
  font-family: var(--font-sans);
  font-weight: 700;
}

.fortune-field:nth-of-type(1) legend::before { content: '1'; }
.fortune-field:nth-of-type(2) legend::before { content: '2'; }
.fortune-field:nth-of-type(3) legend::before { content: '3'; }
.fortune-field:nth-of-type(4) legend::before { content: '4'; }

.fortune-choice-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.segmented-options {
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(88px, 1fr);
  gap: 3px;
  padding: 3px;
  border: 1px solid #e0dcd5;
  border-radius: 6px;
  background: #f2f0ec;
}

.segmented-options label {
  position: relative;
  cursor: pointer;
}

.segmented-options input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.segmented-options span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 1rem;
  border-radius: 4px;
  color: #6e6861;
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 0.18s, color 0.18s, box-shadow 0.18s;
}

.segmented-options input:checked + span {
  background: #252321;
  color: #fff;
  box-shadow: 0 1px 3px rgba(28, 25, 22, 0.16);
}

.segmented-options input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.leap-check {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  cursor: pointer;
}

.leap-check input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: #252321;
}

.leap-check:has(input:disabled) {
  opacity: 0.42;
  cursor: default;
}

.fortune-card .form-grid {
  gap: 0.65rem;
}

.fortune-card .form-grid label,
.fortune-card .place-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
}

.fortune-card .form-grid label > span,
.fortune-card .field-label {
  color: #77716a;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0;
}

.fortune-card select,
.fortune-card input[type="number"] {
  min-height: 50px;
  padding: 0 0.85rem;
  border-color: #dcd7cf;
  border-radius: 8px;
  background-color: #fff;
  color: var(--text);
  font-size: 1rem;
}

.fortune-card select {
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%236c655d' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.82rem center;
  appearance: none;
  -webkit-appearance: none;
}

.fortune-card select:hover,
.fortune-card input[type="number"]:hover {
  border-color: #a9a198;
}

.fortune-card select:focus,
.fortune-card input[type="number"]:focus {
  border-color: #756047;
  box-shadow: 0 0 0 4px rgba(180, 145, 89, 0.16);
}

.fortune-card select:invalid {
  color: #8a837b;
}

.minute-field {
  position: relative;
}

.minute-field::after {
  content: '분';
  position: absolute;
  right: 0.9rem;
  bottom: 0;
  display: grid;
  height: 50px;
  place-items: center;
  color: #77716a;
  font-size: 0.84rem;
  pointer-events: none;
}

.minute-field input {
  padding-right: 2.6rem !important;
}

.identity-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 0.8fr);
  gap: 1rem;
  align-items: end;
}

.identity-grid > div {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.gender-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
}

.advanced-options {
  margin-top: 0;
  padding: 1.15rem 0;
  border-top: 1px solid #ebe7e1;
}

.advanced-options summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #77716a;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0;
}

.advanced-options summary::after {
  content: '+';
  color: #77716a;
  font-size: 1.1rem;
  font-weight: 400;
}

.advanced-options[open] summary::after {
  content: '−';
}

.advanced-options > label {
  margin-top: 0.9rem;
}

.advanced-options > label select {
  min-height: 42px;
  margin-top: 0.25rem;
}

.fortune-submit {
  min-height: 52px;
  margin-top: 0.35rem;
  border-radius: 8px;
  background: linear-gradient(135deg, #282522, #413930);
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0;
}

.fortune-submit:hover {
  opacity: 1;
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(41, 36, 31, 0.18);
}

.fortune-copy {
  padding-top: 0.5rem;
  border-top: 1px solid #cac4bb;
}

.fortune-copy h3 {
  margin: 1rem 0;
  font-family: var(--font-serif);
  font-size: 1.05rem;
}

@media (max-width: 920px) {
  .fortune-layout {
    grid-template-columns: minmax(0, 680px);
  }

  .fortune-copy {
    max-width: 680px;
  }
}

@media (max-width: 560px) {
  .fortune-section .section-head {
    text-align: left;
  }

  .fortune-card {
    padding: 1.25rem;
  }

  .fortune-choice-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .segmented-options {
    width: 100%;
  }

  .leap-check {
    align-self: flex-start;
  }

  .fortune-card .date-grid {
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
  }

  .identity-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   SECTION: 예약 CTA
   ============================================================ */
.cta-section {
  background: var(--surface);
  padding: 120px 0;
}

.cta-text {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.5vw, 1.65rem);
  font-weight: 400;
  line-height: 1.85;
  white-space: pre-line;
  color: var(--text);
  margin-bottom: 2.5rem;
}

.cta-support {
  margin: -1.5rem 0 2rem;
  color: var(--muted);
  font-size: 0.88rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.footer-info {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.9;
  margin-top: 0.5rem;
}

.footer-sns {
  display: flex;
  flex-direction: row;
  gap: 1.4rem;
  align-items: center;
  flex-wrap: wrap;
}

.sns-pill {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0.85;
  transition: opacity 0.2s, color 0.2s;
}

.sns-pill:hover { opacity: 1; color: var(--text); }
.sns-pill img { display: block; }

/* ============================================================
   COMMENT SECTION
   ============================================================ */
.comments-section { padding: 80px 0 60px; }

.comment-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 3rem;
}

.comment-item {
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--border);
}

.comment-meta {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  margin-bottom: 0.5rem;
}

.comment-author {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.comment-date {
  font-size: 0.75rem;
  color: var(--muted);
}

.comment-body {
  font-size: 0.92rem;
  line-height: 1.85;
  color: var(--text);
  white-space: pre-wrap;
}

.comment-notice {
  background: #F0EDE8;
  border: 1px solid var(--border);
  padding: 0.8rem 1.2rem;
  font-size: 0.85rem;
  color: var(--accent);
  border-radius: 2px;
  margin-bottom: 2rem;
}

.comment-form {
  border-top: 1px solid var(--border);
  padding-top: 2.5rem;
}

.comment-form h3 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 1.4rem;
  color: var(--text);
}

.comment-form .form-field {
  margin-bottom: 1rem;
}

.comment-form input[type="text"],
.comment-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--bg);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.comment-form input:focus,
.comment-form textarea:focus { border-color: var(--accent); }

.comment-form textarea { resize: vertical; min-height: 110px; }

.comment-form .form-notice {
  margin-top: 0.8rem;
  font-size: 0.78rem;
  color: var(--muted);
}

/* ============================================================
   ADMIN PANEL
   ============================================================ */
.admin-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 24px 120px;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.5rem;
  margin-bottom: 2.5rem;
}

.admin-header h1 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
}

.admin-tabs {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}

.admin-tab {
  padding: 0.6rem 0;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s, border-color 0.2s;
}

.admin-tab.active,
.admin-tab:hover { color: var(--text); border-color: var(--accent); }

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.admin-table th {
  text-align: left;
  padding: 0.6rem 0.8rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.04em;
}

.admin-table td {
  padding: 0.85rem 0.8rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.admin-table tr:hover td { background: rgba(168,140,104,0.04); }

.admin-badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
  font-size: 0.73rem;
  font-weight: 600;
  background: #F0EDE8;
  color: var(--muted);
}

.admin-badge.pending { background: #FFF3E0; color: #E07800; }
.admin-badge.approved { background: #E8F5E9; color: #388E3C; }

.btn-danger {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  background: transparent;
  border: 1px solid #D9534F;
  color: #D9534F;
  border-radius: 2px;
  font-size: 0.78rem;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: background 0.15s;
}
.btn-danger:hover { background: #D9534F; color: white; }

.btn-approve {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 2px;
  font-size: 0.78rem;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: background 0.15s;
}
.btn-approve:hover { background: var(--accent); color: white; }

.admin-form-card {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2rem;
  margin-bottom: 3rem;
}

.admin-form-card h2 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.admin-form-row {
  margin-bottom: 1rem;
}

.admin-form-row label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}

.admin-form-row input,
.admin-form-row select,
.admin-form-row textarea {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--bg);
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s;
}

.admin-form-row input:focus,
.admin-form-row select:focus,
.admin-form-row textarea:focus { border-color: var(--accent); }

.admin-form-row textarea { resize: vertical; min-height: 200px; }

.admin-hint {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.3rem;
}

.admin-login-wrap {
  max-width: 360px;
  margin: 120px auto;
  padding: 0 24px;
}

.admin-login-wrap h1 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--text);
}

.admin-error {
  color: #D9534F;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--muted);
}

/* ============================================================
   SAJU RESULT PAGE (기존 유지)
   ============================================================ */
.saju-result-page {
  padding: 0 clamp(16px, 4vw, 40px);
  max-width: 1200px;
  margin: 0 auto;
}
.saju-result-page[hidden] { display: none; }

.res-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 2rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
  gap: 1rem;
  flex-wrap: wrap;
}

.res-engine-badge {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.res-header-left h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
}

.res-header-left p { font-size: 0.85rem; color: var(--muted); }

.res-header-right { display: flex; gap: 0.75rem; align-items: center; }

.res-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--muted);
}

.res-meta-bar em { font-style: normal; margin-right: 0.3rem; color: var(--muted); opacity: 0.7; }
.res-meta-bar b { font-weight: 500; color: var(--text); }

.res-engine-note { font-size: 0.72rem; color: var(--muted); opacity: 0.6; }

.res-block {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  background: #fff;
}

.res-block-title {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 1rem;
}

.res-block-title-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.res-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.res-four-col {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.res-card {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.25rem;
  background: #fff;
}

.res-card-title {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.res-card-body { font-size: 0.9rem; line-height: 1.7; }

.luck-table-scroll { overflow-x: auto; }
.luck-table { display: flex; gap: 0.5rem; min-width: max-content; }

.monthly-table-v2 { overflow-x: auto; }

.annual-badge {
  font-size: 0.8rem;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--muted);
}

.deep-reading {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2rem;
  margin: 1.5rem 0 3rem;
  background: var(--surface);
}

.deep-reading h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.deep-reading p { font-size: 0.9rem; color: var(--muted); line-height: 1.8; margin-bottom: 1rem; }

.advice-list { margin: 1.5rem 0; }

.place-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.rel-inline-wrap { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.rel-inline-title { font-size: 0.75rem; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 0.75rem; }
.rel-inline-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.element-bars-wrap { margin-bottom: 1rem; }
.element-bars-v2 {}
.el-summary-text { font-size: 0.85rem; color: var(--muted); }

.shinsal-grid-v2 { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* ── 십성 색상 ── */
.gc-bk { color: #555; }
.gc-sh { color: #2c7a3c; }
.gc-jae { color: #b87c2c; }
.gc-gwan { color: #3a5fc8; }
.gc-in { color: #9b3aa0; }

/* ============================================================
   ARTICLES LIST PAGE
   ============================================================ */
.articles-page-hero {
  padding: 100px 0 60px;
}

.articles-page-hero h1 {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.articles-page-hero .hero-lead {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.85;
  max-width: 560px;
}

.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 3rem;
}

.category-filter a {
  display: inline-block;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 100px;
  background: transparent;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.category-filter a:hover,
.category-filter a.active {
  border-color: var(--accent);
  color: var(--accent);
}

.article-list-full {
  display: flex;
  flex-direction: column;
}

.article-row {
  display: grid;
  grid-template-columns: 1fr;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s;
  cursor: pointer;
}

.article-row:first-child { border-top: 1px solid var(--border); }
.article-row:hover { opacity: 0.7; }

.article-row .cat-tag {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.article-row h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.article-row .summary {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.article-row .meta {
  font-size: 0.75rem;
  color: var(--muted);
}

/* articles.html grid fallback */
.article-grid {
  display: flex;
  flex-direction: column;
}

.article-card {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}

.article-card:first-child { border-top: 1px solid var(--border); }

.article-tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.article-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.article-card h3 a {
  color: inherit;
  text-decoration: none;
}
.article-card h3 a:hover { color: var(--accent); }

.article-card p {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

.article-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--muted);
  gap: 1rem;
}

.article-not-found {
  font-size: 0.9rem;
  color: var(--accent);
  margin-top: 1rem;
}

/* ============================================================
   ARTICLE DETAIL PAGE
   ============================================================ */
.article-detail-header {
  padding: 100px 0 60px;
}

.article-detail-header .back-link {
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 2rem;
  transition: color 0.2s;
}

.article-detail-header .back-link:hover { color: var(--accent); }

.article-detail-header .article-tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.article-detail-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.article-detail-header .article-summary {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 1rem;
  max-width: 640px;
}

.article-detail-header .article-meta {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.article-body-wrap {
  padding-bottom: 80px;
  border-bottom: 1px solid var(--border);
}

.article-body-inner {
  max-width: 680px;
}

.article-body p {
  font-size: 1rem;
  line-height: 2.1;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.article-cta-block {
  background: var(--surface);
  border-radius: 4px;
  padding: 2.5rem;
  margin: 4rem 0 2rem;
}

.article-cta-block p {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  line-height: 1.85;
  margin-bottom: 1.75rem;
  color: var(--text);
}

.article-cta-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.article-related {
  padding: 80px 0;
}

.article-related .section-head {
  margin-bottom: 2.5rem;
}

/* ============================================================
   ARTICLE READER (legacy support)
   ============================================================ */
.article-reader {
  padding: 80px 0;
}

.article-reader h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.article-reader .article-summary {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 0.75rem;
}

.article-reader .article-meta {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.article-reader .article-body {
  max-width: 680px;
}

.article-reader .article-body p {
  font-size: 1rem;
  line-height: 2.1;
  margin-bottom: 1.5rem;
}

.soft-panel {
  background: var(--surface);
  border-radius: 4px;
  padding: 2rem 2.5rem;
  margin-top: 3rem;
}

.article-related {}

.center-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 2.5rem;
}

/* ============================================================
   LEGACY SECTIONS (home page concern/consulting etc)
   ============================================================ */
.toc-section, .concern-section, .empathy-section,
.face-reading, .split-section,
.classes-section, .books-section, .reviews-section,
.premium-section, .place-section, .faq-section { display: none; }

/* final-cta legacy */
.final-cta { display: none; }

/* ============================================================
   FADE-IN ANIMATION
   ============================================================ */
/* 글은 기본적으로 보이게 둡니다.
   자바스크립트가 정상일 때(.js-anim)만 페이드인을 적용합니다.
   그래야 스크립트가 실패해도 본문이 통째로 사라지지 않습니다. */
.fade-in {
  opacity: 1;
  transform: none;
}

.js-anim .fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js-anim .fade-in.visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1100px) {
  .navbar {
    height: 92px;
    padding-inline: 16px;
    background-size: 255px auto;
    background-position: left -46px;
  }
  .logo { width: 205px; }
  .nav-toggle { display: flex; flex-direction: column; gap: 5px; }
  .nav-links {
    display: none;
    position: fixed;
    inset: 92px 0 0 0;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 24px;
    gap: 1.5rem;
    border-top: 1px solid var(--border);
    z-index: 99;
  }
  .nav-links a { font-size: 1rem; color: var(--text); }
  body.nav-open .nav-links { display: flex; }
}

/* ============================================================
   MOBILE RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .section { padding: 80px 0; }
  .hero-section { padding: 100px 0 80px; }
  .cta-section { padding: 80px 0; }

  .navbar {
    height: 92px;
    padding-inline: 16px;
    background-size: 255px auto;
    background-position: left -46px;
  }
  .logo { width: 205px; }
  .nav-toggle { display: flex; flex-direction: column; gap: 5px; }
  .nav-links {
    display: none;
    position: fixed;
    inset: 92px 0 0 0;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 24px;
    gap: 1.5rem;
    border-top: 1px solid var(--border);
    z-index: 99;
  }
  .nav-links a { font-size: 1rem; color: var(--text); }

  body.nav-open .nav-links { display: flex; }

  .fortune-layout { grid-template-columns: 1fr; }
  .consulting-steps { grid-template-columns: 1fr; }
  .consulting-step { min-height: auto; }
  .concern-nav { grid-template-columns: 1fr; }
  .consulting-num { margin-bottom: 1.25rem; }
  .reviews-card { grid-template-columns: 1fr; gap: 1.5rem; }
  .reviews-note { min-height: auto; gap: 1.25rem; }
  .res-two-col { grid-template-columns: 1fr; }
  .res-four-col { grid-template-columns: repeat(2, 1fr); }
  .pillar-grid { grid-template-columns: repeat(2, 1fr); }
  .date-grid { grid-template-columns: repeat(3, 1fr); }
  .time-grid { grid-template-columns: repeat(2, 1fr); }

  .article-cta-block { padding: 2rem 1.5rem; }
  .fortune-card { padding: 1.75rem; }
}

@media (max-width: 480px) {
  .res-four-col { grid-template-columns: 1fr 1fr; }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .hero-reassurance { display: block; }
  .hero-reassurance li + li { margin-top: 0.35rem; }
}

/* ============================================================
   SECTION · 네이버 블로그 (RSS 자동 연동)
   ============================================================ */
.blog-lead {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.9;
  margin-top: 0.75rem;
  max-width: 56ch;
}

.blog-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 2.5rem 0 0.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.blog-tab {
  padding: 0.4rem 1rem;
  font-family: inherit;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 2px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.blog-tab:hover { border-color: var(--accent); color: var(--accent); }
.blog-tab.active {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

.blog-list { display: flex; flex-direction: column; }

.blog-item {
  display: flex;
  align-items: flex-start;
  gap: 1.75rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: opacity 0.2s;
}
.blog-item:hover { opacity: 0.72; }
.blog-item-text { flex: 1; min-width: 0; }

.blog-cat {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.blog-item h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.55;
  color: var(--text);
  margin-bottom: 0.6rem;
}

.blog-summary {
  font-size: 0.9rem;
  line-height: 1.85;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-date {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.75rem;
  letter-spacing: 0.02em;
}

.blog-thumb {
  flex-shrink: 0;
  width: 148px;
  height: 100px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--surface);
}
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; }

.blog-state {
  padding: 3rem 0;
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
}

/* ============================================================
   SECTION · 주거·사업장 방향 감명
   ============================================================ */
.space-section { background: var(--surface); }

.space-lead {
  font-size: 0.95rem;
  line-height: 2;
  color: var(--muted);
  margin-top: 0.75rem;
  max-width: 58ch;
}

.space-steps {
  list-style: none;
  margin: 2.5rem 0 2rem;
  border-top: 1px solid var(--border);
}
.space-steps li {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--text);
}
.space-num {
  font-family: var(--font-serif);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  flex-shrink: 0;
}

.space-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .blog-item { gap: 1.1rem; padding: 1.6rem 0; }
  .blog-thumb { width: 96px; height: 72px; }
  .blog-item h3 { font-size: 1.02rem; }
  .space-actions { flex-direction: column; align-items: flex-start; gap: 1rem; }
}

/* 표지 이미지가 없을 때 자리표시 */
.book-cover-wrap.no-cover {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3 / 4;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.25rem;
}
.book-cover-wrap.no-cover::after {
  content: attr(data-title);
  font-family: var(--font-serif);
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted);
  text-align: center;
}

/* ============================================================
   REFINED HEADER
   ============================================================ */
.navbar {
  height: 76px;
  padding: 0 clamp(20px, 5vw, 72px);
  background-color: #8d3037;
  background-image: url('/img/logo');
  background-repeat: no-repeat;
  background-size: 240px auto;
  background-position: left -50px;
  border-bottom: 1px solid rgba(255, 250, 242, 0.2);
  box-shadow: none;
}

.logo {
  width: 190px;
}

.nav-links { gap: clamp(1.15rem, 2.4vw, 2.15rem); }
.nav-links a {
  color: rgba(255, 250, 242, 0.76);
  font-size: 0.82rem;
}
.nav-links a:hover { color: #fffaf2; }
.nav-links a:last-child {
  padding: 0.42rem 0.78rem;
  border: 1px solid rgba(255, 250, 242, 0.48);
  border-radius: 100px;
  color: #fffaf2;
}
.nav-links a:last-child:hover { background: rgba(255, 250, 242, 0.12); }

@media (max-width: 1100px) {
  .navbar { height: 72px; padding-inline: 20px; }
  .nav-links { inset: 72px 0 0 0; }
  .navbar { background-size: 220px auto; background-position: left -46px; }
  .logo { width: 175px; }
}

@media (max-width: 768px) {
  .navbar { height: 72px; padding-inline: 18px; }
  .nav-links { inset: 72px 0 0 0; }
  .nav-links a:last-child { border-color: var(--border); color: var(--text); }
}

/* ============================================================
   ANONYMOUS BOARD
   ============================================================ */
.board-page { padding-bottom: 6rem; }
.board-hero { padding: clamp(4rem, 10vw, 7.5rem) 0 3.5rem; }
.board-hero h1 { margin: 0.5rem 0 1.2rem; font-size: clamp(2rem, 4.5vw, 3.25rem); }
.board-hero p { max-width: 54ch; color: var(--muted); line-height: 1.9; }
.board-content { padding-top: 1rem; }
.board-guidelines, .board-notice {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  margin-bottom: 2rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.82rem;
}
.board-guidelines strong { color: var(--text); font-weight: 600; }
.board-notice { color: #69563c; }
.board-notice-error { color: #963d41; border-color: rgba(150, 61, 65, 0.28); background: #fff5f4; }
.board-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(270px, 0.62fr); gap: clamp(2rem, 6vw, 4.5rem); align-items: start; }
.board-list-head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.board-list-head h2, .board-write h2 { font-size: 1.25rem; }
.board-list-head span { color: var(--muted); font-size: 0.78rem; }
.board-post { padding: 1.65rem 0; border-bottom: 1px solid var(--border); }
.board-post-meta { display: flex; gap: 0.7rem; margin-bottom: 0.55rem; color: var(--muted); font-size: 0.77rem; }
.board-post-meta span { color: var(--accent); }
.board-post h3 { margin-bottom: 0.6rem; font-size: 1.05rem; }
.board-post p { color: var(--muted); font-size: 0.9rem; line-height: 1.85; white-space: pre-wrap; }
.board-empty { padding: 3rem 0; color: var(--muted); font-size: 0.9rem; text-align: center; }
.board-write { position: sticky; top: 100px; padding: 1.6rem; border: 1px solid var(--border); background: #fffdfa; }
.board-write .eyebrow { margin-bottom: 0.7rem; }
.board-write h2 { margin-bottom: 1.5rem; }
.board-write form { display: flex; flex-direction: column; gap: 0.5rem; }
.board-write label { margin-top: 0.65rem; color: var(--muted); font-size: 0.78rem; }
.board-write input, .board-write textarea { width: 100%; padding: 0.75rem 0.85rem; border: 1px solid var(--border); border-radius: 2px; background: #fff; color: var(--text); font: inherit; font-size: 0.88rem; line-height: 1.65; }
.board-write input:focus, .board-write textarea:focus { border-color: var(--accent); outline: none; }
.board-write textarea { resize: vertical; min-height: 150px; }
.board-write .btn-primary-solid { width: 100%; margin-top: 0.85rem; }
.board-write-note { margin-top: 0.85rem; color: var(--muted); font-size: 0.76rem; line-height: 1.65; }

@media (max-width: 768px) {
  .board-hero { padding-top: 4rem; }
  .board-layout { grid-template-columns: 1fr; }
  .board-write { position: static; }
  .board-guidelines { display: block; line-height: 1.7; }
  .board-guidelines span { display: block; margin-top: 0.3rem; }
}

/* ============================================================
   CUSTOMER JOURNEY — 처음 방문자의 선택과 기능 이해
   ============================================================ */
.start-section { background: #fffdfa; border-bottom: 1px solid var(--border); }
.reviews-section { display: block; }
.start-lead { max-width: 650px; margin: 1rem 0 2.25rem; color: var(--muted); line-height: 1.85; }
.start-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.start-card { display: flex; min-height: 250px; flex-direction: column; padding: 1.45rem; border: 1px solid var(--border); background: #fff; color: var(--text); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.start-card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 12px 30px rgba(70, 43, 27, .08); }
.start-card .start-num { margin-bottom: 1.15rem; color: var(--accent); font-size: .75rem; letter-spacing: .12em; }
.start-card strong { font-family: var(--font-serif); font-size: 1.08rem; line-height: 1.55; }
.start-card p { flex: 1; margin: .8rem 0 1.25rem; color: var(--muted); font-size: .86rem; line-height: 1.75; }
.start-card > span:last-child { color: var(--accent); font-size: .8rem; font-weight: 600; }
.consulting-outcomes { display: flex; flex-wrap: wrap; gap: .65rem; align-items: center; margin: 1.4rem 0 0; padding: 1rem 1.15rem; border-left: 3px solid var(--accent); background: #fffdfa; }
.consulting-outcomes strong { margin-right: .35rem; font-family: var(--font-serif); }
.consulting-outcomes span { padding: .38rem .7rem; border: 1px solid var(--border); border-radius: 100px; color: var(--muted); font-size: .78rem; }
.fortune-benefits, .space-relation-note { margin: 1.35rem 0; padding: 1.2rem 1.3rem; border: 1px solid var(--border); background: #fffdfa; }
.fortune-benefits strong, .space-relation-note strong { display: block; margin-bottom: .65rem; font-family: var(--font-serif); color: var(--text); }
.fortune-benefits ul { margin: 0; padding-left: 1.15rem; color: var(--muted); font-size: .86rem; line-height: 1.85; }
.space-relation-note { max-width: 780px; }
.space-relation-note p { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.85; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 1.4rem; align-items: center; margin-top: 1.5rem; }

@media (max-width: 980px) {
  .start-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .start-grid { grid-template-columns: 1fr; }
  .start-card { min-height: 0; }
  .consulting-outcomes { align-items: flex-start; flex-direction: column; }
  .cta-actions { flex-direction: column; }
}
