/* heldbygrace.life — 전도용 메인 스타일 */

:root {
  /* 어둠 속 십자가 — 페이지 기조: 진청 그라데이션 + 흰 글씨 + 로고 맞춤 금색 */
  --bg-page-top: #05070d;
  --bg-page-mid: #0a1a2f;
  --cream: #fdfbf7;
  --cream-dark: #f0ebe3;
  --navy: #0f1628;
  --navy-deep: #050d1a;
  --navy-mid: #0f2840;
  --navy-ink: #020509;
  --olive: #2d4a2d;
  --olive-deep: #1a3d1a;
  --text-on-dark: #ffffff;
  --gold: #d4af37;
  --gold-bright: #e8cf6a;
  --gold-soft: rgba(212, 175, 55, 0.35);
  --white: #ffffff;
  --shadow: rgba(0, 0, 0, 0.45);
  --font-serif-ko: "Noto Serif KR", "Nanum Myeongjo", Georgia, serif;
  --font-display: "Cinzel", "Noto Serif KR", Georgia, serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  /* 디자인 핵심: ① 여백 ② 글자 ③ 섹션 구분 */
  --space-page-x: clamp(1.35rem, 5vw, 2.75rem);
  --space-section-y: clamp(5rem, 14vw, 9rem);
  --space-section-y-tight: clamp(3.25rem, 8vw, 5.5rem);
  --space-block: clamp(1.75rem, 4vw, 2.75rem);
  --text-reading: clamp(1.125rem, 2.35vw, 1.3125rem);
  --text-reading-lg: clamp(1.2rem, 2.6vw, 1.4rem);
  --leading-reading: 1.92;
  --leading-tight: 1.55;
  --section-rule: 3px solid rgba(212, 175, 55, 0.2);
  --section-rule-gold: 2px solid rgba(212, 175, 55, 0.55);
  /* 선교 레퍼런스: 짙은 숲 녹 + 앰버 하이라이트 */
  --mission-forest: #03160e;
  --mission-forest-mid: #062015;
  --mission-line: rgba(61, 168, 102, 0.45);
  --ember: rgba(255, 120, 55, 0.14);
  /* 메달 PNG 투명부 — 배경이 들쭉날쭉해 보이지 않도록 원형 디스크 */
  --medal-disc: radial-gradient(circle at 50% 48%, #151f30 0%, #070b14 82%);
  /* 헤더·본문 공통 — 초대형 화면에서 가로만 계속 늘어나지 않게 */
  --hbg-layout-max-width: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* 키보드: 헤더 건너뛰고 본문 첫 포커스 가능 영역으로 */
.skip-link {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 300;
  padding: 0.6rem 1rem;
  font-family: "Noto Sans KR", system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy-deep);
  background: var(--gold-bright);
  border: 2px solid var(--navy-deep);
  border-radius: 0 0 0.35rem 0;
  text-decoration: none;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
}

.skip-link:focus,
.skip-link:focus-visible {
  clip: auto;
  clip-path: none;
  width: auto;
  height: auto;
  overflow: visible;
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

body {
  margin: 0;
  font-family: var(--font-serif-ko);
  font-size: var(--text-reading);
  line-height: var(--leading-reading);
  color: var(--text-on-dark);
  background: linear-gradient(to bottom, var(--bg-page-top) 0%, var(--bg-page-mid) 42%, var(--navy-deep) 100%)
    fixed;
  background-color: var(--bg-page-top);
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* 스티키 메가 헤더(로고 + 주메뉴 + 블로그 분류) 아래로 본문·해시 스크롤 맞춤 */
:root {
  --hbg-header-sticky-offset: max(
    10.5rem,
    calc(5.25rem + 15vh + env(safe-area-inset-top, 0px))
  );
}

@media (max-width: 720px) {
  :root {
    --hbg-header-sticky-offset: max(
      12.5rem,
      calc(6rem + 18vh + env(safe-area-inset-top, 0px))
    );
  }
}

/* ——— 상단 헤더 (다크 + 금 포인트) ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, rgba(5, 7, 13, 0.97) 0%, rgba(10, 26, 47, 0.95) 100%);
  border-bottom: 1px solid var(--gold-soft);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  scroll-margin-top: 0;
}

/* URL 해시 #top 이 헤더를 가리킬 때 로고 링크가 :target 이 되지 않도록 id 처리함.
   혹시 남는 브라우저 기본 강조 방지 */
.site-header:target {
  outline: none;
}

.header-shell {
  max-width: var(--hbg-layout-max-width);
  margin: 0 auto;
  padding-top: calc(0.45rem + env(safe-area-inset-top, 0px));
  padding-bottom: 0.65rem;
  padding-left: calc(var(--space-page-x) + env(safe-area-inset-left, 0px));
  padding-right: calc(var(--space-page-x) + env(safe-area-inset-right, 0px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* 모바일(≤720px)에서는 JS로 .site-header.is-nav-open 일 때만 펼침 */
.site-nav-toggle {
  display: none;
  box-sizing: border-box;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 10px;
  background: rgba(8, 14, 28, 0.65);
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(212, 175, 55, 0.12);
  touch-action: manipulation;
}

.site-nav-toggle:hover,
.site-nav-toggle:focus-visible {
  color: var(--gold-bright);
  border-color: rgba(212, 175, 55, 0.85);
  outline: none;
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.25);
}

.site-nav-toggle__icon {
  display: block;
  pointer-events: none;
}

.header-menus {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.55rem;
  flex: 1 1 auto;
  min-width: 0;
}

/* 주 메뉴: 맨 위 줄, 카테고리와 톤 분리 */
.header-menus > .nav-bar:not(.nav-bar--categories) {
  width: 100%;
}

/* 블로그 카테고리 패널 위 한 줄 안내 */
.nav-categories-heading {
  margin: 0 0 0.4rem;
  padding: 0;
  font-family: "Noto Sans KR", sans-serif;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(212, 175, 55, 0.68);
  text-align: right;
  line-height: 1.4;
}

.nav-bar--categories {
  margin: 0;
  width: 100%;
  max-width: 100%;
  padding: 0.45rem 0.65rem 0.5rem;
  border-radius: 10px;
  border: 1px solid rgba(212, 175, 55, 0.28);
  background: linear-gradient(165deg, rgba(8, 14, 28, 0.92) 0%, rgba(4, 10, 22, 0.88) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 6px 20px rgba(0, 0, 0, 0.25);
}

.nav-bar--categories ul {
  gap: 0.35rem 0.6rem;
  justify-content: flex-end;
}

.nav-bar--categories a {
  font-family: "Noto Sans KR", sans-serif;
  font-size: clamp(0.68rem, 1.35vw, 0.78rem);
  font-weight: 500;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.58);
  text-decoration: none;
  padding: 0.22rem 0.35rem;
  border-radius: 4px;
  transition: color 0.2s var(--ease-out), background 0.2s var(--ease-out);
}

.nav-bar--categories a::after {
  display: none;
}

.nav-bar--categories a:hover,
.nav-bar--categories a:focus-visible {
  color: var(--gold-bright);
  background: rgba(212, 175, 55, 0.1);
}

.nav-bar--categories a[aria-current="page"] {
  color: var(--gold);
  font-weight: 600;
  background: rgba(212, 175, 55, 0.14);
}

.nav-categories-meta a {
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.92em;
}

.nav-categories-meta a:hover,
.nav-categories-meta a:focus-visible {
  color: var(--gold-bright);
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
  -webkit-tap-highlight-color: rgba(212, 175, 55, 0.12);
}

.brand-link:focus {
  outline: none;
}

.brand-link:focus-visible {
  outline: 2px solid rgba(212, 175, 55, 0.55);
  outline-offset: 3px;
  border-radius: 10px;
}

.brand-logo-wrap {
  flex-shrink: 0;
  width: clamp(96px, min(28vw, 22vh), 140px);
  height: clamp(96px, min(28vw, 22vh), 140px);
  border-radius: 50%;
  overflow: hidden;
  background: var(--medal-disc);
  box-shadow: 0 4px 20px var(--shadow);
  display: grid;
  place-items: center;
}

.brand-logo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
}

.brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.25rem, 3.2vw, 1.85rem);
  letter-spacing: 0.02em;
  color: var(--text-on-dark);
  line-height: 1.15;
}

.brand-text-gold {
  color: var(--gold);
}

/* 가로형 브랜드 로고 (PNG에 HeldByGrace.life · 한글 문구 포함) */
.brand-link--full-logo {
  position: relative;
  min-width: 0;
  flex: 1 1 auto;
  max-width: min(100%, clamp(238px, 66.3vw, 527px));
}

.brand-link--full-logo .brand-logo-wrap {
  width: auto;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  overflow: hidden;
  background: transparent;
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.42);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  transform: scale(1);
  transform-origin: left center;
}

/* 세로를 우선 키움 (가로는 비율에 맞춰 자동). vmin은 모바일 주소창으로 vh가 변할 때 로고가 깜빡이므로 vw만 사용 */
.brand-link--full-logo .brand-logo {
  width: auto;
  max-width: 100%;
  height: clamp(88px, 16.15vw, 187px);
  display: block;
  vertical-align: top;
  object-fit: contain;
  object-position: left center;
}

.brand-link--full-logo .brand-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-bar {
  margin: 0;
  background: transparent;
  border: none;
}

.nav-bar ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem clamp(1rem, 3vw, 1.75rem);
  justify-content: flex-end;
  align-items: center;
}

@media (max-width: 720px) {
  .header-shell {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem 0.75rem;
  }

  html.hbg-js-nav .site-nav-toggle {
    display: inline-flex;
    margin-top: 0.15rem;
  }

  html.hbg-js-nav .header-menus {
    display: none;
    flex-basis: 100%;
    width: 100%;
    align-items: stretch;
    padding-top: 0.15rem;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    margin-top: 0.1rem;
  }

  html.hbg-js-nav .site-header.is-nav-open .header-menus {
    display: flex;
  }

  .nav-bar:not(.nav-bar--categories) ul {
    justify-content: center;
    padding-top: 0.35rem;
    border-top: none;
    row-gap: 0.15rem;
  }

  .nav-categories-heading {
    text-align: center;
  }

  .nav-bar--categories {
    padding: 0.5rem 0.55rem 0.55rem;
  }

  .nav-bar--categories ul {
    justify-content: center;
    padding-top: 0;
    border-top: none;
    row-gap: 0.2rem;
  }

  .brand-link--full-logo {
    justify-content: flex-start;
    flex: 1 1 auto;
    min-width: 0;
    max-width: calc(100% - 3.25rem);
    width: auto;
  }

  .brand-link--full-logo .brand-logo-wrap {
    max-width: 100%;
    justify-content: flex-start;
    transform-origin: left center;
  }

  .brand-link--full-logo .brand-logo {
    height: clamp(88px, 17vw, 160px);
    object-position: left center;
  }
}

@media (min-width: 721px) {
  .site-nav-toggle {
    display: none !important;
  }

  .header-menus {
    display: flex !important;
  }
}

/* 메가 헤더: 주 메뉴만 크게 · 블로그 분류는 위 .nav-bar--categories 보다 한 단계 작게 */
.site-header--mega .nav-bar:not(.nav-bar--categories) a {
  font-size: clamp(1.06rem, 2.2vw, 1.28rem);
  font-weight: 600;
  letter-spacing: 0.042em;
}

.site-header--mega .nav-bar--categories a {
  font-size: clamp(0.65rem, 1.28vw, 0.75rem);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.nav-bar a {
  font-family: "Noto Sans KR", sans-serif;
  font-size: clamp(0.95rem, 1.8vw, 1.05rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  padding: 0.25rem 0;
  position: relative;
  transition: color 0.25s var(--ease-out);
}

.nav-bar a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.35s var(--ease-out);
}

.nav-bar a:hover,
.nav-bar a:focus-visible {
  color: var(--gold-bright);
}

.nav-bar a:hover::after,
.nav-bar a:focus-visible::after {
  width: 100%;
}

.nav-bar a[aria-current="page"] {
  color: var(--gold-bright);
  font-weight: 600;
}

.nav-bar a[aria-current="page"]::after {
  width: 100%;
  height: 2px;
  background: var(--gold);
  opacity: 1;
}

.nav-bar a[aria-current="page"]:hover,
.nav-bar a[aria-current="page"]:focus-visible {
  color: var(--gold-bright);
}

@media (max-width: 720px) {
  .nav-bar:not(.nav-bar--categories) a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.45rem;
    -webkit-tap-highlight-color: rgba(212, 175, 55, 0.15);
  }

  .nav-bar--categories a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0.3rem 0.45rem;
    -webkit-tap-highlight-color: rgba(212, 175, 55, 0.12);
    touch-action: manipulation;
  }
}

/* ——— 히어로: 3초 안에 시선 고정 ——— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: max(3rem, env(safe-area-inset-top, 0px));
  padding-bottom: max(6rem, env(safe-area-inset-bottom, 0px));
  padding-left: calc(var(--space-page-x) + env(safe-area-inset-left, 0px));
  padding-right: calc(var(--space-page-x) + env(safe-area-inset-right, 0px));
  background: radial-gradient(
    ellipse 90% 70% at 50% 100%,
    rgba(15, 40, 64, 0.45) 0%,
    transparent 65%
  );
  color: var(--text-on-dark);
  overflow: hidden;
}

/* 레퍼런스: 어둠 속 불빛·십자가 글로우 */
.hero-ember {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 85% 55% at 50% 88%, var(--ember) 0%, transparent 52%),
    radial-gradient(ellipse 50% 40% at 15% 55%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse 45% 35% at 88% 40%, rgba(255, 180, 90, 0.08) 0%, transparent 48%);
  opacity: 0.95;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: radial-gradient(1px 1px at 20% 30%, rgba(255, 255, 255, 0.12) 0%, transparent 0),
    radial-gradient(1px 1px at 80% 70%, rgba(212, 175, 55, 0.14) 0%, transparent 0),
    radial-gradient(1px 1px at 50% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 0);
  background-size: 200px 200px, 280px 280px, 150px 150px;
  animation: drift 18s linear infinite;
  opacity: 0.6;
  pointer-events: none;
}

@keyframes drift {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(-40px, -30px);
  }
}

.hero-glow {
  position: absolute;
  z-index: 0;
  width: min(90vw, 520px);
  height: min(90vw, 520px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.18) 0%, transparent 65%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: pulseGlow 4s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%,
  100% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.85;
    transform: translate(-50%, -50%) scale(1.08);
  }
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 42rem;
}

.hero-site {
  font-family: var(--font-display);
  font-size: clamp(0.75rem, 2vw, 0.85rem);
  letter-spacing: 0.35em;
  text-transform: lowercase;
  color: rgba(255, 255, 255, 0.42);
  margin-bottom: 1.75rem;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0s forwards;
}

.hero-tagline-en {
  font-family: "Noto Sans KR", sans-serif;
  font-size: clamp(0.68rem, 1.6vw, 0.8rem);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(212, 175, 55, 0.9);
  margin: 0 0 1.35rem;
  opacity: 0;
  animation: fadeUp 0.85s var(--ease-out) 0.12s forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 첫 문장: 어둠·낮은 대비 */
.hero-line-death {
  font-size: clamp(1.5rem, 4.8vw, 2.35rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.52);
  text-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
  margin: 0 0 1.5rem;
  line-height: var(--leading-tight);
  opacity: 0;
  filter: blur(6px);
  animation: deathReveal 1s var(--ease-out) 0.32s forwards;
}

@keyframes deathReveal {
  to {
    opacity: 1;
    filter: blur(0);
  }
}

/* 둘째 문장: 빛·금빛 */
.hero-line-life {
  font-size: clamp(1.75rem, 5.5vw, 2.75rem);
  font-weight: 700;
  color: var(--text-on-dark);
  margin: 0;
  line-height: var(--leading-tight);
  opacity: 0;
  transform: translateY(16px) scale(0.96);
  text-shadow: 0 0 50px rgba(212, 175, 55, 0.45), 0 0 100px rgba(212, 175, 55, 0.2);
  animation: lifeReveal 1.15s var(--ease-out) 1.12s forwards, lifePulse 2.5s ease-in-out 2.15s infinite;
}

@keyframes lifeReveal {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes lifePulse {
  0%,
  100% {
    text-shadow: 0 0 50px rgba(212, 175, 55, 0.4), 0 0 100px rgba(212, 175, 55, 0.18);
  }
  50% {
    text-shadow: 0 0 72px rgba(212, 175, 55, 0.6), 0 0 140px rgba(212, 175, 55, 0.28);
  }
}

.hero-cta-wrap {
  margin-top: 2.75rem;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-out) 2.2s forwards;
}

.hero-cta {
  display: inline-block;
  padding: 0.85rem 2.15rem;
  font-family: "Noto Sans KR", sans-serif;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--navy-ink);
  background: linear-gradient(180deg, var(--gold-bright) 0%, var(--gold) 100%);
  border: none;
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 28px rgba(212, 175, 55, 0.35);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
}

.hero-cta:hover,
.hero-cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 36px rgba(212, 175, 55, 0.42);
}

.scroll-hint {
  position: absolute;
  bottom: calc(1.75rem + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.32);
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) 2.85s forwards, bounceHint 2.2s ease-in-out 3.45s infinite;
}

@keyframes bounceHint {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(6px);
  }
}

/* ——— 환영 밴드 (선교 사이트 레퍼런스) ——— */
.welcome-band {
  padding: var(--space-section-y) var(--space-page-x);
  background: linear-gradient(
    180deg,
    var(--mission-forest) 0%,
    var(--mission-forest-mid) 35%,
    rgba(5, 13, 22, 0.94) 100%
  );
  border-top: 1px solid var(--mission-line);
  border-bottom: 1px solid rgba(212, 175, 55, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.welcome-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.welcome-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.5vw, 2.5rem);
  font-weight: 700;
  color: var(--text-on-dark);
  margin: 0 0 1.25rem;
  letter-spacing: 0.06em;
}

.welcome-lead {
  max-width: 40rem;
  margin: 0 auto clamp(3rem, 8vw, 4rem);
  font-size: var(--text-reading);
  line-height: var(--leading-reading);
  color: rgba(255, 255, 255, 0.82);
}

.welcome-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: var(--space-block);
  text-align: left;
}

.welcome-card {
  padding: clamp(1.75rem, 4vw, 2.25rem);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--mission-line);
  border-radius: 4px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out), border-color 0.3s, box-shadow 0.3s;
}

.welcome-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.welcome-card:hover {
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.45);
}

.welcome-card-title {
  font-family: "Noto Sans KR", sans-serif;
  font-size: clamp(1.02rem, 2.2vw, 1.12rem);
  font-weight: 600;
  color: rgba(110, 210, 150, 0.95);
  margin: 0 0 0.75rem;
  letter-spacing: 0.02em;
}

.welcome-card-text {
  margin: 0 0 1.35rem;
  font-size: clamp(0.98rem, 2vw, 1.06rem);
  line-height: var(--leading-reading);
  color: rgba(255, 255, 255, 0.85);
}

.welcome-card-btn {
  display: inline-block;
  padding: 0.55rem 1.35rem;
  font-family: "Noto Sans KR", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(110, 210, 150, 0.95);
  text-decoration: none;
  border: 1px solid var(--mission-line);
  border-radius: 3px;
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}

.welcome-card-btn:hover,
.welcome-card-btn:focus-visible {
  color: var(--gold-bright);
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.08);
  outline: none;
}

/* ——— 일차 에세이 (DAY 01, 02 …) ——— */
.essay-series {
  text-align: center;
}

.essay-series-label {
  margin: 0 0 1.75rem;
  padding-top: var(--space-section-y-tight);
}

.essay-foreword-links {
  margin: -0.35rem auto 1.35rem;
  padding: 0 var(--space-page-x);
  font-family: "Noto Sans KR", sans-serif;
  font-size: clamp(0.88rem, 1.9vw, 0.98rem);
  font-weight: 500;
  letter-spacing: 0.06em;
}

.essay-foreword-links a {
  color: var(--gold-bright);
  text-decoration: none;
  border-bottom: 1px solid rgba(232, 207, 106, 0.35);
}

.essay-foreword-links a:hover,
.essay-foreword-links a:focus-visible {
  color: var(--gold);
  border-bottom-color: rgba(212, 175, 55, 0.65);
  outline: none;
}

.essay-foreword-links-sep {
  margin: 0 0.5em;
  color: rgba(255, 255, 255, 0.35);
  user-select: none;
}

/* 글 목록 + 본문 (메인 블로그·전체 공통 래퍼) */
.essay-split {
  width: 100%;
  max-width: var(--hbg-layout-max-width);
  margin-left: auto;
  margin-right: auto;
  padding: 0 var(--space-page-x);
  box-sizing: border-box;
}

.essay-split .essay-archive {
  padding-left: 0;
  padding-right: 0;
}

/* 신앙고백 분류만: 데스크톱에서 31days 묵상처럼 본문 왼쪽 · 목차 오른쪽 */
@media (min-width: 961px) {
  .essay-split--faith-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 12.5rem;
    grid-template-areas: "main side";
    gap: clamp(1.25rem, 3vw, 2.25rem);
    align-items: start;
  }

  .essay-split--faith-sidebar #essay-panel-wrap {
    grid-area: main;
    min-width: 0;
  }

  .essay-split--faith-sidebar #essay-archive.essay-archive--cat-list {
    grid-area: side;
    max-width: none;
    width: 100%;
    margin: 0;
    position: sticky;
    top: 5.75rem;
    align-self: start;
    max-height: calc(100vh - 6.25rem);
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0.85rem 0.5rem 1rem 0.85rem;
    border: 1px solid rgba(212, 175, 55, 0.22);
    border-radius: 4px;
    background: linear-gradient(180deg, rgba(5, 7, 13, 0.55) 0%, rgba(10, 26, 47, 0.38) 100%);
    scrollbar-gutter: stable;
  }

  .essay-split--faith-sidebar .essay-archive--cat-list + .essay-panel-wrap {
    margin-top: 0;
  }
}

@media (max-width: 960px) {
  .essay-split--faith-sidebar #essay-archive.essay-archive--cat-list {
    max-height: min(14rem, 38vh);
    overflow-y: auto;
    margin-bottom: 1rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid rgba(212, 175, 55, 0.22);
    border-radius: 4px;
    background: rgba(5, 7, 13, 0.45);
  }
}

/* 블로그: 제목 행 바로 아래에 본문(아코디언) */
.essay-split--accordion #essay-panel-wrap {
  display: none;
}

.essay-split--accordion .essay-archive--cat-list {
  max-width: 46rem;
  margin-bottom: 1.5rem;
}

.essay-cat-accordion-body {
  margin: 0;
  padding: 1rem 1.05rem 1.45rem;
  border: 1px solid rgba(212, 175, 55, 0.32);
  border-top: none;
  border-radius: 0 0 10px 10px;
  background: linear-gradient(180deg, rgba(6, 12, 26, 0.96) 0%, rgba(4, 10, 22, 0.94) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  box-sizing: border-box;
}

.essay-cat-accordion-body[hidden] {
  display: none !important;
}

/* 아코디언 펼침 후 스크롤 앵커: 제목 블록이 고정 메뉴 바로 아래 오도록 */
.essay-split--accordion .essay-cat-accordion-body .essay-day-header {
  padding-left: 0;
  padding-right: 0;
  scroll-margin-top: var(--hbg-header-sticky-offset);
  scroll-margin-bottom: 0.75rem;
}

.essay-archive {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 0.85rem;
  justify-content: center;
  align-items: stretch;
  max-width: 52rem;
  margin: 0 auto 2.5rem;
  padding: 0 var(--space-page-x);
}

.essay-day-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-width: 6.5rem;
  padding: 0.65rem 1rem;
  font: inherit;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 4px;
  transition: border-color 0.25s, background 0.25s, color 0.25s, box-shadow 0.25s;
}

.essay-day-pill:hover,
.essay-day-pill:focus-visible {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.08);
  outline: none;
}

.essay-day-pill.is-current {
  border-color: var(--gold);
  background: linear-gradient(165deg, rgba(212, 175, 55, 0.22) 0%, rgba(212, 175, 55, 0.08) 100%);
  box-shadow: 0 0 24px rgba(212, 175, 55, 0.15);
  color: var(--text-on-dark);
}

.essay-day-pill-num {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 2.2vw, 1.1rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold-bright);
}

.essay-day-pill.is-current .essay-day-pill-num {
  color: var(--gold-bright);
}

/* 카테고리 선택 시: 제목·부제가 보이는 글 목록 */
.essay-archive--cat-list {
  display: block;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

/* 카테고리 목록: 선택 행 강조 + 본문은 목록 전체 아래(형제) */
.essay-cat-accordion-item {
  margin: 0;
}

.essay-cat-accordion-item.is-expanded .essay-cat-list-item {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom-color: rgba(212, 175, 55, 0.22);
}

/* 목록 전체 아래에 붙는 본문 (리스트가 항상 위에 보이도록) */
.essay-archive--cat-list + .essay-panel-wrap {
  max-width: 42rem;
  width: 100%;
  margin: 0.35rem auto 0;
  padding: 1rem 0.85rem 1.5rem;
  border: 1px solid rgba(212, 175, 55, 0.38);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(6, 12, 26, 0.96) 0%, rgba(4, 10, 22, 0.94) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  box-sizing: border-box;
}

.essay-archive--cat-list + .essay-panel-wrap #essay-panel {
  scroll-margin-top: clamp(4.5rem, 14vh, 6.5rem);
}

.essay-cat-list-nav {
  width: 100%;
}

.essay-cat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.essay-cat-list-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem 1rem;
  align-items: start;
  padding: 0.9rem 1.1rem;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 8px;
  transition: border-color 0.25s var(--ease-out), background 0.25s var(--ease-out), box-shadow 0.25s;
}

button.essay-cat-list-item {
  font: inherit;
  width: 100%;
  margin: 0;
  box-sizing: border-box;
  cursor: pointer;
  text-align: left;
  touch-action: manipulation;
  -webkit-appearance: none;
  appearance: none;
  /* 헤더 여백은 유지하되, 목록 행을 더 위로 보이게 여백 추가 감소 */
  scroll-margin-top: max(8.25rem, calc(var(--hbg-header-sticky-offset) - 2.5rem));
}

@media (max-width: 520px) {
  .essay-cat-list-item {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }
}

.essay-cat-list-item:hover,
.essay-cat-list-item:focus-visible {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.08);
  outline: none;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

.essay-cat-list-item.is-current {
  border-color: var(--gold);
  background: linear-gradient(165deg, rgba(212, 175, 55, 0.2) 0%, rgba(212, 175, 55, 0.07) 100%);
  box-shadow: 0 0 28px rgba(212, 175, 55, 0.12);
}

.essay-cat-list-day {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold-bright);
  white-space: nowrap;
  padding-top: 0.15rem;
}

.essay-cat-list-day--plain {
  letter-spacing: 0.05em;
  min-width: 2.15rem;
  text-align: center;
}

.essay-day-pill-num--plain {
  letter-spacing: 0.08em;
}

.essay-cat-list-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.essay-cat-list-title {
  font-size: clamp(1.02rem, 2.2vw, 1.15rem);
  font-weight: 600;
  line-height: var(--leading-tight);
  color: var(--text-on-dark);
}

.essay-cat-list-date {
  display: block;
  font-family: "Noto Sans KR", sans-serif;
  font-size: 0.76rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.48);
  letter-spacing: 0.02em;
}

.essay-cat-list-chip {
  display: inline-block;
  align-self: flex-start;
  margin-top: 0.15rem;
  padding: 0.12rem 0.45rem;
  font-family: "Noto Sans KR", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(232, 207, 106, 0.95);
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 4px;
}

.essay-cat-list-sub {
  font-family: "Noto Sans KR", sans-serif;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.45;
}

.essay-panel-wrap {
  max-width: 40rem;
  margin: 0 auto;
  text-align: left;
}

#essay-panel {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

#essay-panel ::selection {
  background: transparent;
}

.essay-day-header {
  text-align: center;
  margin-bottom: clamp(2rem, 5vw, 2.75rem);
  padding: 0 var(--space-page-x);
}

/* 본문 상단: #순번 · 제목 · 날짜 한 박스(왼쪽 정렬) — 아래는 기존 큰 숫자·부제·h2 */
.essay-article-meta-bar {
  margin: 0 auto clamp(1rem, 2.5vw, 1.5rem);
  max-width: 48rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(212, 175, 55, 0.38);
  border-radius: 8px;
  background: rgba(5, 7, 13, 0.5);
  box-sizing: border-box;
  text-align: left;
}

.essay-article-meta-bar-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

/* 1행: #N + 제목 (Grace Journal·브런치 등 공통) */
.essay-article-meta-row-primary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.75rem;
}

.essay-article-meta-num {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold-bright);
  flex-shrink: 0;
}

.essay-article-meta-title {
  flex: 1 1 8rem;
  min-width: 0;
  font-family: var(--font-serif-ko);
  font-size: clamp(1rem, 2.2vw, 1.18rem);
  font-weight: 600;
  line-height: var(--leading-tight);
  color: var(--text-on-dark);
}

/* 2행: 날짜만 (짧은 제목일 때도 오른쪽에 붙지 않게) */
.essay-article-meta-row-date {
  width: 100%;
}

.essay-article-meta-date {
  display: block;
  font-family: "Noto Sans KR", sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.48);
}

.essay-day-header--after-meta {
  margin-top: 0;
  padding-top: 0;
}

.essay-split--accordion .essay-cat-accordion-body .essay-article-meta-bar {
  scroll-margin-top: var(--hbg-header-sticky-offset);
}

/* 글 본문 하단 — 스토어(shop/) 유도 (index.php 의 #hbg-shop-essay-cta 분류 설정) */
.essay-shop-cta {
  margin: clamp(1.75rem, 4vw, 2.5rem) auto 0;
  max-width: 48rem;
  padding: 1.15rem 1.25rem;
  border-radius: 8px;
  border: 1px solid rgba(61, 168, 102, 0.4);
  background: rgba(3, 22, 14, 0.45);
  box-sizing: border-box;
  text-align: left;
}

.essay-shop-cta__lead {
  margin: 0 0 0.85rem;
  font-family: "Noto Sans KR", sans-serif;
  font-size: clamp(0.95rem, 2.1vw, 1.05rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
}

.essay-shop-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.55rem 1.35rem;
  font-family: "Noto Sans KR", sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-decoration: none;
  color: var(--navy-deep);
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 4px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.essay-shop-cta__btn:hover,
.essay-shop-cta__btn:focus-visible {
  filter: brightness(1.05);
  outline: 2px solid rgba(232, 207, 106, 0.45);
  outline-offset: 2px;
}

.essay-day-kicker {
  margin: 0 0 0.5rem;
  font-family: "Noto Sans KR", sans-serif;
  font-size: clamp(0.72rem, 1.8vw, 0.82rem);
  font-weight: 600;
  letter-spacing: 0.35em;
  color: rgba(255, 255, 255, 0.45);
}

.essay-day-label {
  margin-right: 0.25em;
}

.essay-day-num {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 8vw, 3.75rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gold);
  text-shadow: 0 0 48px rgba(212, 175, 55, 0.2);
}

/* 31days 묵상(phrase-day-block) 전용 — 메인 DB 에세이 헤더에서는 날짜 노출 안 함 */
.phrase-day-block-header .essay-date {
  margin: 0 0 1rem;
  font-family: "Noto Sans KR", sans-serif;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.06em;
}

.essay-category {
  margin: 0 0 0.65rem;
  font-family: "Noto Sans KR", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: rgba(212, 175, 55, 0.85);
}

.essay-word-today {
  margin: clamp(1.25rem, 3vw, 1.75rem) auto 0;
  max-width: 28rem;
  padding: 1rem 1.15rem;
  text-align: left;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 4px;
  background: rgba(212, 175, 55, 0.06);
}

.essay-word-today-label {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 2.1vw, 1.05rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--gold-bright);
}

.essay-word-today-desc {
  margin: 0;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  line-height: var(--leading-reading);
  color: rgba(255, 255, 255, 0.82);
  white-space: pre-line;
}

.essay-inline-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: clamp(0.65rem, 2vw, 1rem);
  padding: 0 var(--space-page-x) 1.25rem;
  max-width: 48rem;
  margin: 0 auto;
}

.essay-inline-images__fig {
  margin: 0;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  background: rgba(0, 0, 0, 0.2);
}

.essay-inline-images img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.essay-inline-images--slot {
  max-width: 42rem;
}

.essay-inline-images--top {
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

.essay-inline-images--mid {
  padding-top: clamp(0.75rem, 2.5vw, 1.25rem);
  padding-bottom: clamp(0.5rem, 2vw, 1rem);
}

.essay-inline-images--bottom {
  padding-top: clamp(0.75rem, 2.5vw, 1.25rem);
  padding-bottom: clamp(1.25rem, 3vw, 2rem);
}

.essay-core-wrap {
  padding: 1.25rem var(--space-page-x) clamp(2.25rem, 5vw, 3rem) !important;
  border-top: none !important;
}

/* 본문을 반으로 나눠 중간 이미지를 넣은 뒤 이어지는 블록 — 위 패딩만 줄여 한 덩어리처럼 읽히게 */
.essay-core-wrap.essay-core-wrap--after-inline-image {
  padding-top: clamp(0.65rem, 2vw, 1.15rem) !important;
}

.essay-loading,
.essay-error {
  text-align: center;
  padding: 2rem var(--space-page-x);
  color: rgba(255, 255, 255, 0.65);
  line-height: var(--leading-reading);
}

.essay-error code {
  font-size: 0.9em;
  color: var(--gold-bright);
}

/* ——— 문구 섹션 (SHORT STORY) ——— */
.phrases-section {
  padding: var(--space-section-y) var(--space-page-x) calc(var(--space-section-y) * 1.05);
  max-width: 40rem;
  margin: 0 auto;
  background: transparent;
  border-top: var(--section-rule);
}

.phrases-intro {
  text-align: center;
  margin-bottom: clamp(3rem, 8vw, 4.5rem);
}

.phrases-intro h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.8vw, 2rem);
  color: var(--text-on-dark);
  font-weight: 600;
  margin: 0 0 1rem;
  letter-spacing: 0.04em;
  line-height: var(--leading-tight);
}

.phrases-intro p {
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(1.02rem, 2.2vw, 1.15rem);
  line-height: var(--leading-reading);
  max-width: 28rem;
}

.phrase-card {
  position: relative;
  padding: clamp(2.15rem, 5vw, 2.85rem) clamp(1.5rem, 4vw, 2.25rem);
  margin-bottom: var(--space-block);
  background: rgba(255, 255, 255, 0.04);
  border-left: 4px solid var(--gold);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  border-radius: 2px;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out), box-shadow 0.4s, border-color 0.4s;
}

.phrase-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.phrase-card:hover {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  border-left-color: var(--gold-bright);
  background: rgba(255, 255, 255, 0.06);
}

.phrase-num {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 1rem;
}

.phrase-card p {
  margin: 0;
  font-size: var(--text-reading-lg);
  line-height: var(--leading-reading);
  color: var(--text-on-dark);
}

.phrase-card p + p {
  margin-top: 0.85rem;
}

.phrase-card .dim {
  color: rgba(255, 255, 255, 0.58);
}

.phrase-card .bright {
  color: var(--gold-bright);
  font-weight: 600;
}

/* Day 확장: 묵상 · 적용 질문 블록 */
.phrase-extra {
  position: relative;
  padding: clamp(1.85rem, 4vw, 2.35rem) clamp(1.5rem, 4vw, 2rem);
  margin-bottom: var(--space-block);
  background: rgba(255, 255, 255, 0.035);
  border-left: 4px solid rgba(212, 175, 55, 0.5);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.22);
  border-radius: 4px;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out), box-shadow 0.4s;
}

.phrase-extra.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.phrase-extra--question {
  border-left-color: rgba(140, 178, 255, 0.5);
}

.phrase-extra-heading {
  margin: 0 0 1.1rem;
  font-family: "Noto Sans KR", sans-serif;
  font-size: clamp(0.82rem, 1.9vw, 0.92rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold-bright);
}

.phrase-extra--question .phrase-extra-heading {
  color: rgba(190, 215, 255, 0.95);
}

.phrase-extra-badge {
  margin-right: 0.2em;
}

.phrase-section-prose {
  margin: 0 0 1rem;
  font-size: var(--text-reading);
  line-height: var(--leading-reading);
  color: rgba(255, 255, 255, 0.88);
  white-space: normal;
}

.phrase-section-prose:last-child {
  margin-bottom: 0;
}

.phrase-question-line {
  margin: 0;
  font-size: var(--text-reading-lg);
  line-height: var(--leading-reading);
  color: rgba(255, 255, 255, 0.9);
}

.phrase-question-line + .phrase-question-line {
  margin-top: 0.65rem;
}

.phrase-question-line--lead {
  color: rgba(255, 255, 255, 0.58);
}

/* ——— 홈: 짧은 고백 티저 → short-story.html ——— */
.phrase-teaser {
  padding: var(--space-section-y-tight) var(--space-page-x);
  border-top: var(--section-rule);
  text-align: center;
}

.phrase-teaser-inner {
  max-width: 36rem;
  margin: 0 auto;
}

.phrase-teaser-title {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3.6vw, 1.95rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin: 0 0 1rem;
  line-height: var(--leading-tight);
}

.phrase-teaser-lead {
  margin: 0 auto 1rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(1.02rem, 2.2vw, 1.12rem);
  line-height: var(--leading-reading);
}

.phrase-teaser-lead strong {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

.phrase-teaser-book-links {
  margin: 0 auto 1.35rem;
  font-family: "Noto Sans KR", sans-serif;
  font-size: clamp(0.88rem, 1.9vw, 0.98rem);
  font-weight: 500;
  letter-spacing: 0.06em;
}

.phrase-teaser-book-links a {
  color: var(--gold-bright);
  text-decoration: none;
  border-bottom: 1px solid rgba(232, 207, 106, 0.35);
}

.phrase-teaser-book-links a:hover,
.phrase-teaser-book-links a:focus-visible {
  color: var(--gold);
  border-bottom-color: rgba(212, 175, 55, 0.65);
  outline: none;
}

.phrase-teaser-book-links-sep {
  margin: 0 0.5em;
  color: rgba(255, 255, 255, 0.35);
  user-select: none;
}

.phrase-teaser-pull {
  margin: 0;
  font-size: var(--text-reading-lg);
  line-height: var(--leading-reading);
}

.phrase-teaser-pull + .phrase-teaser-pull {
  margin-top: 0.65rem;
}

.phrase-teaser-pull.dim {
  color: rgba(255, 255, 255, 0.58);
}

.phrase-teaser-pull.bright {
  color: var(--gold-bright);
  font-weight: 600;
}

.phrase-teaser-cta-row {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  justify-content: center;
  align-items: center;
}

.phrase-teaser-cta-row .phrase-teaser-btn {
  margin-top: 0;
}

.phrase-teaser-btn {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.65rem 1.65rem;
  font-family: "Noto Sans KR", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--gold-bright);
  border: 1px solid rgba(212, 175, 55, 0.55);
  border-radius: 2px;
  background: rgba(212, 175, 55, 0.08);
  transition: border-color 0.25s, background 0.25s, color 0.25s;
}

.phrase-teaser-btn:hover,
.phrase-teaser-btn:focus-visible {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.14);
  color: var(--text-on-dark);
  outline: none;
}

.phrase-teaser-btn--ghost {
  border-color: rgba(255, 255, 255, 0.38);
  color: rgba(255, 255, 255, 0.88);
  background: transparent;
}

.phrase-teaser-btn--ghost:hover,
.phrase-teaser-btn--ghost:focus-visible {
  border-color: rgba(212, 175, 55, 0.55);
  background: rgba(255, 255, 255, 0.05);
  color: var(--gold-bright);
}

/* ——— 프로젝트 페이지 (URL: portfolio/) ——— */
.portfolio-page__inner {
  max-width: 52rem;
}

.portfolio-hero {
  text-align: center;
  margin-bottom: clamp(2rem, 5vw, 3rem);
  padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1rem, 3vw, 1.75rem);
  border-radius: 14px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(212, 175, 55, 0.12), transparent 55%),
    linear-gradient(165deg, rgba(8, 18, 38, 0.95) 0%, rgba(4, 12, 28, 0.88) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 20px 48px rgba(0, 0, 0, 0.35);
}

.portfolio-hero__kicker {
  margin: 0 0 0.65rem;
  font-family: "Noto Sans KR", sans-serif;
  font-size: clamp(0.72rem, 1.6vw, 0.82rem);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-bright);
  opacity: 0.92;
}

.portfolio-hero__title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4.2vw, 2.15rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.25;
  color: var(--text-on-dark);
}

.portfolio-hero__lead {
  margin: 0 auto;
  max-width: 36rem;
  font-size: clamp(0.95rem, 2.1vw, 1.05rem);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.78);
}

.portfolio-pillars {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem 1rem;
  margin: clamp(1.5rem, 3.5vw, 2rem) 0 0;
  padding: 0;
  list-style: none;
}

.portfolio-pillars__item {
  display: flex;
  align-items: center;
  gap: 0.5rem 0.65rem;
  padding: 0.55rem 1rem 0.55rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  background: rgba(0, 0, 0, 0.2);
}

.portfolio-pillars__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gold-bright);
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.25);
}

.portfolio-pillars__text {
  font-family: "Noto Sans KR", sans-serif;
  font-size: clamp(0.8rem, 1.75vw, 0.88rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  text-align: left;
}

.portfolio-grid-section {
  margin-bottom: clamp(2rem, 4vw, 2.75rem);
}

.portfolio-section-heading {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gold-bright);
}

.portfolio-section-lead {
  margin: 0 0 clamp(0.9rem, 2vw, 1.15rem);
  max-width: 40rem;
  font-size: var(--text-reading);
  line-height: var(--leading-reading);
  color: rgba(255, 255, 255, 0.72);
}

.portfolio-bento--external {
  margin-bottom: 0;
}

@media (min-width: 560px) {
  .portfolio-bento--external {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.portfolio-card--external .portfolio-card__label {
  color: rgba(160, 210, 255, 0.92);
}

/* 별도 도메인 카드 — 화면 캡처 미리보기(썸네일보다 크게) */
.portfolio-card--has-preview {
  gap: 0;
  padding: 0;
  min-height: unset;
  overflow: hidden;
}

.portfolio-card__preview {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 11px 11px 0 0;
  background: rgba(0, 15, 35, 0.6);
  line-height: 0;
}

.portfolio-card__preview img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: clamp(11rem, 32vw, 18rem);
  object-fit: cover;
  object-position: top center;
}

/* 로고 등 가로형 이미지 — 잘리지 않게 */
.portfolio-card--preview-contain .portfolio-card__preview {
  background: radial-gradient(ellipse 100% 80% at 50% 30%, rgba(30, 70, 120, 0.35), rgba(0, 15, 35, 0.75));
}

.portfolio-card--preview-contain .portfolio-card__preview img {
  object-fit: contain;
  object-position: center;
  padding: clamp(0.75rem, 2vw, 1.25rem);
  height: clamp(9rem, 26vw, 14rem);
  box-sizing: border-box;
}

.portfolio-card__stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding: clamp(1rem, 2.2vw, 1.25rem);
  flex: 1;
  width: 100%;
  box-sizing: border-box;
}

.portfolio-bento {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.75rem, 2vw, 1.1rem);
  /* 큰 intrinsic width(img 등) 때문에 열이 밀려 겹침 나지 않도록 */
  align-items: start;
}

.portfolio-bento > * {
  min-width: 0;
}

@media (min-width: 720px) {
  .portfolio-bento {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: minmax(9.5rem, auto);
  }

  /* 별도 도메인 3열: 행 높이를 캡처 이미지에 맡김 */
  .portfolio-bento--external {
    grid-auto-rows: auto;
  }

  .portfolio-card--wide {
    grid-column: span 2;
  }
}

.portfolio-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding: clamp(1.1rem, 2.5vw, 1.35rem);
  min-height: 9rem;
  text-decoration: none;
  color: inherit;
  text-align: left;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  background: linear-gradient(155deg, rgba(10, 22, 42, 0.92) 0%, rgba(5, 12, 26, 0.88) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.22s ease;
}

.portfolio-card:hover,
.portfolio-card:focus-visible {
  border-color: rgba(232, 207, 106, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 12px 36px rgba(0, 0, 0, 0.35);
  transform: translateY(-2px);
  outline: none;
}

.portfolio-card--accent {
  border-color: rgba(212, 175, 55, 0.35);
  background:
    radial-gradient(ellipse 90% 70% at 100% 0%, rgba(212, 175, 55, 0.14), transparent 55%),
    linear-gradient(155deg, rgba(12, 28, 52, 0.95) 0%, rgba(6, 14, 30, 0.9) 100%);
}

.portfolio-card__icon {
  font-size: 1.35rem;
  line-height: 1;
  opacity: 0.95;
  filter: grayscale(0.15);
}

.portfolio-card__label {
  font-family: "Noto Sans KR", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

.portfolio-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.02rem, 2.2vw, 1.18rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-on-dark);
  margin: 0;
}

.portfolio-card__desc {
  margin: 0;
  flex: 1;
  font-size: clamp(0.82rem, 1.8vw, 0.9rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.65);
}

.portfolio-card__cta {
  margin-top: 0.35rem;
  font-family: "Noto Sans KR", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gold-bright);
  border-bottom: 1px solid rgba(232, 207, 106, 0.35);
  padding-bottom: 1px;
}

.portfolio-card[href^="http"] .portfolio-card__cta::after {
  content: " ↗";
  font-size: 0.85em;
  opacity: 0.85;
}

.portfolio-strip {
  padding: clamp(1.35rem, 3vw, 1.85rem) clamp(1rem, 2.5vw, 1.5rem);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.22);
}

.portfolio-strip__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.4vw, 1.2rem);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.03em;
}

.portfolio-strip__lead {
  margin: 0 0 1.25rem;
  font-size: var(--text-reading);
  line-height: var(--leading-reading);
  color: rgba(255, 255, 255, 0.76);
}

.portfolio-strip__lead strong {
  color: rgba(232, 207, 106, 0.95);
  font-weight: 600;
}

.portfolio-strip__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.portfolio-commission {
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
  padding: clamp(1.35rem, 3.5vw, 2rem) clamp(1.1rem, 3vw, 1.65rem);
  max-width: 38rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  border: 1px solid rgba(212, 175, 55, 0.38);
  border-radius: 12px;
  background: linear-gradient(165deg, rgba(8, 14, 28, 0.55) 0%, rgba(4, 10, 22, 0.5) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  scroll-margin-top: var(--hbg-header-sticky-offset);
}

.portfolio-commission__title {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 600;
  color: var(--gold-bright);
  letter-spacing: 0.04em;
}

.portfolio-commission__lead {
  margin: 0 0 1rem;
  font-size: var(--text-reading);
  line-height: var(--leading-reading);
  color: rgba(255, 255, 255, 0.78);
  text-align: left;
}

.portfolio-commission__lead strong {
  color: rgba(232, 207, 106, 0.95);
  font-weight: 600;
}

.portfolio-commission--with-form {
  text-align: left;
  max-width: 32rem;
}

.portfolio-commission--with-form .portfolio-commission__title {
  text-align: center;
}

.portfolio-inquiry-form {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0.25rem 0 1rem;
}

.portfolio-inquiry-label {
  margin-top: 0.45rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
}

.portfolio-inquiry-label:first-of-type {
  margin-top: 0;
}

.portfolio-inquiry-input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 8px;
  background: rgba(4, 12, 24, 0.65);
  color: rgba(255, 255, 255, 0.92);
  font-family: "Noto Sans KR", sans-serif;
  font-size: 0.95rem;
}

.portfolio-inquiry-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.portfolio-inquiry-input:focus {
  outline: none;
  border-color: rgba(232, 207, 106, 0.55);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

.portfolio-inquiry-input:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 2px;
}

.portfolio-inquiry-textarea {
  min-height: 7rem;
  resize: vertical;
  line-height: 1.55;
}

.portfolio-inquiry-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.portfolio-inquiry-actions {
  margin-top: 0.65rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

.portfolio-inquiry-msg {
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
  line-height: 1.5;
  text-align: center;
}

.portfolio-inquiry-msg--ok {
  color: rgba(160, 220, 180, 0.95);
}

.portfolio-inquiry-msg--err {
  color: rgba(255, 180, 170, 0.95);
}

@media (max-width: 520px) {
  .portfolio-bento {
    grid-template-columns: 1fr;
  }

  .portfolio-card--wide {
    grid-column: auto;
  }

  .portfolio-pillars {
    flex-direction: column;
    align-items: stretch;
  }

  .portfolio-pillars__item {
    justify-content: flex-start;
  }
}

/* ——— 하위 페이지 (videos, prayer, about) ——— */
.subpage-main {
  min-height: 48vh;
  padding-top: var(--space-section-y-tight);
  padding-bottom: calc(var(--space-section-y) + env(safe-area-inset-bottom, 0px));
  padding-left: calc(var(--space-page-x) + env(safe-area-inset-left, 0px));
  padding-right: calc(var(--space-page-x) + env(safe-area-inset-right, 0px));
}

.subpage-inner {
  max-width: 38rem;
  margin: 0 auto;
}

.subpage-title {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3.6vw, 1.95rem);
  font-weight: 600;
  color: var(--text-on-dark);
  margin: 0 0 1.25rem;
  letter-spacing: 0.03em;
  line-height: var(--leading-tight);
}

.subpage-lead {
  margin: 0 0 1.05rem;
  font-size: var(--text-reading);
  line-height: var(--leading-reading);
  color: rgba(255, 255, 255, 0.82);
}

.subpage-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  align-items: center;
}

.subpage-main .phrase-teaser-btn {
  margin-top: 0;
}

button.phrase-teaser-btn {
  cursor: pointer;
  font-family: "Noto Sans KR", sans-serif;
}

/* ——— faith/ 신앙고백 상세 ——— */
.faith-detail-main {
  min-height: 50vh;
  padding-bottom: calc(var(--space-section-y) + env(safe-area-inset-bottom, 0px));
}

.faith-detail-hero {
  text-align: center;
  padding: clamp(2rem, 6vw, 3.5rem) var(--space-page-x) clamp(2.25rem, 5vw, 3rem);
  border-bottom: 1px solid rgba(212, 175, 55, 0.22);
  background: linear-gradient(180deg, rgba(8, 18, 38, 0.96) 0%, rgba(6, 12, 26, 0.9) 100%);
}

.faith-detail-hero .faith-detail-title {
  margin-bottom: 0.35rem;
}

.faith-detail-hero .hbg-book-spread {
  margin-top: 0;
  margin-bottom: clamp(1rem, 3vw, 1.5rem);
}

.faith-detail-kicker {
  margin: 0 0 0.65rem;
  font-family: "Noto Sans KR", sans-serif;
  font-size: clamp(0.72rem, 1.6vw, 0.8rem);
  font-weight: 600;
  letter-spacing: 0.28em;
  color: rgba(255, 255, 255, 0.42);
}

.faith-detail-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.8vw, 2.6rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--text-on-dark);
  margin: 0 0 1rem;
  line-height: var(--leading-tight);
}

.faith-detail-tagline {
  margin: 0 auto;
  max-width: 32rem;
  font-size: clamp(1.02rem, 2.2vw, 1.14rem);
  line-height: var(--leading-reading);
  color: rgba(255, 255, 255, 0.74);
}

.faith-detail-cta-row {
  margin-top: clamp(1.75rem, 4vw, 2.25rem);
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1rem;
  justify-content: center;
  align-items: center;
}

.faith-detail-cta {
  display: inline-block;
  padding: 0.68rem 1.5rem;
  font-family: "Noto Sans KR", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  transition:
    border-color 0.25s var(--ease-out),
    background 0.25s var(--ease-out),
    color 0.25s var(--ease-out),
    box-shadow 0.25s var(--ease-out);
}

.faith-detail-cta--primary {
  color: #0a1224;
  background: linear-gradient(165deg, var(--gold-bright) 0%, var(--gold) 100%);
  border: 1px solid rgba(212, 175, 55, 0.65);
  box-shadow: 0 6px 28px rgba(212, 175, 55, 0.18);
}

.faith-detail-cta--primary:hover,
.faith-detail-cta--primary:focus-visible {
  color: #060d18;
  border-color: var(--gold);
  box-shadow: 0 8px 36px rgba(212, 175, 55, 0.28);
  outline: none;
}

.faith-detail-cta--ghost {
  color: var(--gold-bright);
  background: transparent;
  border: 1px solid rgba(212, 175, 55, 0.45);
}

.faith-detail-cta--ghost:hover,
.faith-detail-cta--ghost:focus-visible {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.08);
  outline: none;
}

.faith-detail-inner {
  max-width: 38rem;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 2.75rem) var(--space-page-x) 0;
}

.faith-detail-section {
  margin-bottom: clamp(2rem, 5vw, 2.75rem);
}

.faith-detail-h2 {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.8vw, 1.35rem);
  font-weight: 600;
  color: var(--gold-bright);
  margin: 0 0 1rem;
  letter-spacing: 0.04em;
}

.faith-detail-p {
  margin: 0 0 1rem;
  font-size: var(--text-reading);
  line-height: var(--leading-reading);
  color: rgba(255, 255, 255, 0.82);
}

.faith-detail-p--note {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.58);
  margin-bottom: 0;
}

.faith-detail-steps {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.75;
}

.faith-detail-steps li {
  margin-bottom: 0.45rem;
}

.faith-detail-section--pull {
  text-align: center;
  padding: 1.75rem 1rem;
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
}

.faith-detail-pull {
  margin: 0;
  font-size: var(--text-reading-lg);
  line-height: var(--leading-reading);
}

.faith-detail-pull + .faith-detail-pull {
  margin-top: 0.65rem;
}

.faith-detail-pull.dim {
  color: rgba(255, 255, 255, 0.58);
}

.faith-detail-pull.bright {
  color: var(--gold-bright);
  font-weight: 600;
}

.faith-detail-section--back-cover {
  padding-top: clamp(1.35rem, 3.5vw, 1.85rem);
  border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.faith-detail-p--back-cover {
  margin-bottom: 0.35rem;
  white-space: normal;
  font-family: var(--font-serif-ko);
  color: rgba(255, 255, 255, 0.88);
}

.faith-detail-back-cover-lines .faith-detail-p--back-cover:last-child {
  margin-bottom: 0;
}

.faith-detail-linklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.faith-detail-back {
  margin-top: 2.5rem;
  margin-bottom: 0;
}

/* ——— 31days/ 신앙고백 전용 ——— */
.faith-reader-crumb {
  max-width: var(--hbg-layout-max-width);
  margin: 0 auto;
  padding: 0.85rem var(--space-page-x) 0;
  font-family: "Noto Sans KR", sans-serif;
  font-size: clamp(0.8rem, 1.7vw, 0.88rem);
  color: rgba(255, 255, 255, 0.52);
}

.faith-reader-crumb a {
  color: var(--gold-bright);
  text-decoration: none;
  border-bottom: 1px solid rgba(232, 207, 106, 0.35);
}

.faith-reader-crumb a:hover,
.faith-reader-crumb a:focus-visible {
  color: var(--gold);
  border-bottom-color: rgba(212, 175, 55, 0.65);
  outline: none;
}

.faith-reader-crumb-sep {
  margin: 0 0.45em;
  color: rgba(255, 255, 255, 0.28);
}

.faith-reader-crumb-here {
  color: rgba(255, 255, 255, 0.42);
}

/* 31days: short-story.js 가 헤더 실측(px)을 body --hbg-faith-reader-live-pad 에 넣음 — 목차 sticky·스크롤이 본문과 같은 기준 */
.page-short-story {
  --hbg-faith-reader-live-pad: 92px;
}

@media (max-width: 720px) {
  .page-short-story {
    --hbg-faith-reader-live-pad: 118px;
  }
}

.page-short-story .short-story-toc {
  top: var(--hbg-faith-reader-live-pad);
  max-height: calc(100vh - var(--hbg-faith-reader-live-pad) - 10px);
}

/* 프로그램 스크롤은 JS가 헤더 높이만큼 빼 줌 — scroll-margin 은 네이티브 해시용 최소만 */
.page-short-story .phrase-day-block,
.page-short-story #short-story-foreword,
.page-short-story #short-story-prologue {
  scroll-margin-top: 0.5rem;
}

.short-story-main {
  min-height: 50vh;
  padding-bottom: var(--space-section-y);
}

#short-story-root {
  max-width: var(--hbg-layout-max-width);
  margin: 0 auto;
  /* 일반 섹션보다 타이트: 크럼바·히어로 바로 이어지게 */
  padding: clamp(1rem, 3vw, 1.65rem) var(--space-page-x) 0;
}

.short-story-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 12rem;
  grid-template-areas: "content toc";
  gap: clamp(1.25rem, 3vw, 2.25rem);
  align-items: start;
}

.short-story-content {
  grid-area: content;
  min-width: 0;
  max-width: 42rem;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.short-story-content ::selection {
  background: transparent;
}

/* 서문만 드래그·복사 허용 */
#short-story-foreword,
#short-story-foreword * {
  -webkit-user-select: text !important;
  user-select: text !important;
  -webkit-touch-callout: default;
}

#short-story-foreword ::selection {
  background: rgba(212, 175, 55, 0.35);
  color: inherit;
}

.short-story-copy-toast {
  position: fixed;
  left: 50%;
  bottom: calc(1.35rem + env(safe-area-inset-bottom, 0px));
  z-index: 300;
  max-width: min(28rem, calc(100vw - 2rem));
  margin: 0;
  padding: 1rem 1.2rem;
  font-family: "Noto Sans KR", sans-serif;
  font-size: 0.88rem;
  line-height: 1.58;
  color: var(--cream);
  background: rgba(15, 22, 40, 0.97);
  border: 1px solid rgba(212, 175, 55, 0.5);
  border-radius: 6px;
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.45);
  transform: translateX(-50%) translateY(130%);
  opacity: 0;
  transition: transform 0.38s var(--ease-out), opacity 0.38s var(--ease-out);
  pointer-events: none;
}

.short-story-copy-toast.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.short-story-toc {
  grid-area: toc;
  position: sticky;
  top: 5.75rem;
  align-self: start;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 6.25rem);
  overflow: hidden;
  padding: 0.85rem 0 0 0.85rem;
  border-left: 1px solid rgba(212, 175, 55, 0.22);
  background: linear-gradient(180deg, rgba(5, 7, 13, 0.55) 0%, rgba(10, 26, 47, 0.38) 100%);
  border-radius: 0 4px 4px 0;
}

/* 제목은 고정 · Day 맞춤 스크롤은 여기만 (위 빈 칸처럼 보이던 현상 방지) */
.short-story-toc-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0 0.5rem 1rem 0;
  scrollbar-gutter: stable;
}

.short-story-toc-title {
  flex-shrink: 0;
  margin: 0 0 0.6rem;
  padding-right: 0.5rem;
  font-family: "Noto Sans KR", sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: rgba(255, 255, 255, 0.38);
}

.short-story-toc-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.short-story-toc-list li {
  margin: 0;
  padding: 0;
}

.short-story-toc-link {
  display: block;
  padding: 0.3rem 0;
  font-family: "Noto Sans KR", sans-serif;
  font-size: 0.78rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  border-radius: 2px;
  transition: color 0.2s, background 0.2s;
}

.short-story-toc-link--day {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.58);
}

.short-story-toc-link:hover,
.short-story-toc-link:focus-visible {
  color: var(--gold-bright);
  outline: none;
}

.short-story-toc-link.is-current,
.short-story-toc-link[aria-current="page"] {
  color: var(--gold-bright);
  font-weight: 700;
  background: rgba(212, 175, 55, 0.12);
  padding-left: 0.35rem;
  margin-left: -0.35rem;
}

@media (max-width: 960px) {
  .short-story-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "toc"
      "content";
    gap: 0;
  }

  .short-story-content {
    max-width: none;
  }

  .short-story-toc {
    position: relative;
    top: auto;
    max-height: min(14rem, 38vh);
    margin: 0 0 1.5rem;
    padding: 0.75rem 0 0 0.85rem;
    border-left: none;
    border: 1px solid rgba(212, 175, 55, 0.22);
    border-radius: 4px;
    background: rgba(5, 7, 13, 0.45);
  }

  /* 데스크톱 전용 .page-short-story .short-story-toc { top: var(...) } 보다 나중·동일 특이도로 덮음 */
  .page-short-story .short-story-toc {
    top: auto;
    max-height: min(14rem, 38vh);
  }

  .short-story-toc-scroll {
    padding: 0 0.85rem 0.75rem 0;
  }

  .short-story-toc-title {
    margin-bottom: 0.45rem;
    padding-right: 0.85rem;
  }
}

.short-story-hero {
  text-align: center;
  margin-bottom: clamp(1.5rem, 4vw, 2.25rem);
  padding-bottom: clamp(1.2rem, 3.2vw, 1.85rem);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

/* 히어로 안: 시리즈 제목 바로 아래, 부제(tagline) 위 */
.short-story-hero .short-story-title {
  margin-bottom: 0.35rem;
}

.short-story-hero .hbg-book-spread {
  margin-top: 0;
  margin-bottom: clamp(1rem, 3vw, 1.5rem);
}

/* 앞·뒤 합성 표지 한 장 (faith/ · 31days 공통) */
.hbg-book-spread {
  margin-left: auto;
  margin-right: auto;
  max-width: min(56rem, 100%);
  text-align: center;
}

.hbg-book-spread-figure {
  margin: 0;
}

.hbg-book-spread-full {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 5px;
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.35),
    0 18px 48px rgba(0, 0, 0, 0.42);
  cursor: zoom-in;
}

/* 표지 확대(신앙고백 합성 이미지) */
.hbg-img-lightbox {
  margin: 0;
  padding: clamp(3rem, 8vh, 4rem) clamp(0.75rem, 2vw, 1.25rem);
  width: 100%;
  max-width: 100vw;
  height: 100%;
  max-height: 100vh;
  overflow: auto;
  border: none;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.hbg-img-lightbox::backdrop {
  background: rgba(4, 10, 22, 0.92);
  cursor: zoom-out;
}

.hbg-img-lightbox-img {
  max-width: min(96vw, 1400px);
  max-height: min(88vh, 900px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.55);
}

.hbg-img-lightbox-close {
  position: fixed;
  top: max(0.75rem, env(safe-area-inset-top, 0px));
  right: max(0.75rem, env(safe-area-inset-right, 0px));
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(8, 14, 28, 0.85);
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.2s var(--ease-out),
    border-color 0.2s var(--ease-out);
}

.hbg-img-lightbox-close:hover,
.hbg-img-lightbox-close:focus-visible {
  background: rgba(20, 28, 48, 0.95);
  border-color: rgba(212, 175, 55, 0.55);
  outline: none;
}

.short-story-series-label {
  margin: 0 0 0.35rem;
  font-family: "Noto Sans KR", sans-serif;
  font-size: clamp(0.7rem, 1.6vw, 0.78rem);
  font-weight: 600;
  letter-spacing: 0.32em;
  color: rgba(255, 255, 255, 0.45);
}

.short-story-series-kind {
  margin: 0 0 0.85rem;
  font-family: "Noto Sans KR", sans-serif;
  font-size: clamp(0.82rem, 1.9vw, 0.92rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.58);
}

.short-story-title {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 4.2vw, 2.25rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  margin: 0 0 1rem;
  line-height: var(--leading-tight);
  color: var(--text-on-dark);
}

.short-story-tagline {
  margin: 0 auto;
  max-width: 30rem;
  font-size: clamp(1.05rem, 2.3vw, 1.2rem);
  color: rgba(255, 255, 255, 0.72);
  line-height: var(--leading-reading);
}

.short-story-foreword {
  margin-bottom: clamp(2rem, 5vw, 2.75rem);
}

.short-story-prologue {
  margin-bottom: clamp(2.75rem, 7vw, 4rem);
}

.short-story-foreword-heading,
.short-story-prologue-heading {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.12em;
  margin: 0 0 1.25rem;
  text-align: center;
}

.short-story-foreword-body,
.short-story-prologue-body,
.short-story-epilogue-body {
  max-width: 38rem;
  margin: 0 auto;
  text-align: left;
}

.short-story-foreword-body p,
.short-story-prologue-body p,
.short-story-epilogue-body p {
  margin: 0 0 1.15rem;
  font-size: var(--text-reading);
  line-height: var(--leading-reading);
  color: rgba(255, 255, 255, 0.88);
}

.short-story-foreword-body p {
  white-space: pre-line;
}

.short-story-foreword-body .faith-prose-line,
.short-story-foreword-body .faith-prose-divider,
.short-story-foreword-body .faith-prose-gap {
  white-space: normal;
}

.short-story-foreword-body p:last-child,
.short-story-prologue-body p:last-child,
.short-story-epilogue-body p:last-child {
  margin-bottom: 0;
}

.phrase-blog-index {
  margin-bottom: clamp(3rem, 8vw, 4.5rem);
}

.phrase-blog-index-heading {
  font-family: "Noto Sans KR", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
  margin: 0 0 1.25rem;
}

.phrase-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17.5rem), 1fr));
  gap: 1rem 1.15rem;
  max-width: 42rem;
  margin: 0 auto;
}

.phrase-blog-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  padding: 1.15rem 1.25rem 1.35rem;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 4px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.22);
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out), border-color 0.25s,
    background 0.25s, box-shadow 0.25s;
}

.phrase-blog-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.phrase-blog-card:hover,
.phrase-blog-card:focus-visible {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.08);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.3);
  outline: none;
}

.phrase-blog-card-day {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold-bright);
}

.phrase-blog-card-date {
  font-family: "Noto Sans KR", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.5);
}

.phrase-blog-card-title {
  font-size: clamp(1.05rem, 2.2vw, 1.18rem);
  font-weight: 600;
  line-height: var(--leading-tight);
  color: var(--text-on-dark);
}

.phrase-blog-card-excerpt {
  font-size: 0.94rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.68);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.phrase-blog-card-more {
  margin-top: 0.35rem;
  font-family: "Noto Sans KR", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--gold);
}

.phrase-day-block {
  padding-top: clamp(0.85rem, 2vw, 1.15rem);
  margin-bottom: clamp(2rem, 5vw, 2.85rem);
  border-top: var(--section-rule);
}

.phrase-day-block#day-1 {
  border-top: none;
  padding-top: 0;
}

.phrase-day-block-header {
  text-align: center;
  margin-bottom: clamp(1.1rem, 2.8vw, 1.65rem);
}

.phrase-day-block-title {
  font-family: var(--font-serif-ko);
  font-size: clamp(1.2rem, 2.8vw, 1.45rem);
  font-weight: 600;
  margin: 0.5rem 0 0;
  line-height: var(--leading-tight);
  color: var(--text-on-dark);
}

.phrase-day-entries {
  max-width: 40rem;
  margin: 0 auto;
}

/* Day 본문: 짧은 카드 대신 산문 블록 */
.phrase-day-prose {
  position: relative;
  margin: 0 auto var(--space-block);
  max-width: 38rem;
  padding: clamp(1.25rem, 3vw, 1.75rem) 0;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
}

.phrase-day-prose.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.phrase-day-prose-inner {
  text-align: left;
}

/* 원고 줄바꿈·‘—’ 호흡: JS가 줄마다 p.faith-prose-line 으로 나눔 */
.page-short-story .faith-prose-stanza {
  margin: 0 0 1.1rem;
}

.page-short-story .faith-prose-stanza:last-child {
  margin-bottom: 0;
}

.page-short-story .faith-prose-line {
  margin: 0 0 0.2em;
  font-size: var(--text-reading);
  line-height: 1.95;
  color: rgba(255, 255, 255, 0.88);
}

.page-short-story .faith-prose-line--wordlabel {
  margin-top: 1rem;
  margin-bottom: 0.38rem;
  font-weight: 650;
  color: rgba(212, 175, 55, 0.96);
  letter-spacing: -0.02em;
}

.page-short-story .faith-prose-line--wordlabel + .faith-prose-line {
  opacity: 0.93;
}

.page-short-story .faith-prose-divider {
  margin: 0.5rem 0;
  text-align: center;
  font-family: var(--font-serif-ko);
  font-size: 1.06em;
  letter-spacing: 0.32em;
  color: rgba(212, 175, 55, 0.44);
  line-height: 1.35;
}

.page-short-story .faith-prose-gap {
  margin: 0;
  padding: 0;
  height: 0.42rem;
  font-size: 0;
  line-height: 0;
  overflow: hidden;
  visibility: hidden;
}

.phrase-day-entries .phrase-card {
  margin-left: auto;
  margin-right: auto;
}

.phrase-day-placeholder {
  text-align: center;
  padding: 2rem var(--space-page-x);
  color: rgba(255, 255, 255, 0.55);
  font-size: 1.02rem;
  border: 1px dashed rgba(212, 175, 55, 0.25);
  border-radius: 4px;
  margin: 0;
}

/* 스크롤 앵커 (고정 헤더) */
#hero,
#welcome,
#phrase-teaser,
#core-message,
#expand,
#cta,
#church {
  scroll-margin-top: 7.5rem;
}

.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;
}

/* ——— 에세이 본문 (레거시 클래스 testimony-*) ——— */
.testimony-section {
  padding: 4.5rem 1.25rem 4rem;
  background: transparent;
  border-top: 1px solid rgba(212, 175, 55, 0.12);
}

.expand-section {
  padding: var(--space-section-y-tight) var(--space-page-x) var(--space-section-y);
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.06) 0%, transparent 28%);
  border-top: var(--section-rule-gold);
}

.cta-section {
  padding: var(--space-section-y-tight) var(--space-page-x) 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, transparent 50%);
  border-top: var(--section-rule);
}

.cta-section .prayer-cta {
  margin-top: 0;
  margin-left: auto;
  margin-right: auto;
  max-width: 40rem;
}

.testimony-article {
  max-width: 40rem;
  margin: 0 auto;
  background: transparent;
  border-top: var(--section-rule);
}

.testimony-header {
  text-align: center;
  margin-bottom: 3rem;
}

.testimony-header--lead {
  padding: var(--space-section-y) var(--space-page-x) 0;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.testimony-article .testimony-section {
  border-top: none;
}

.testimony-header--lead + div[itemprop="articleBody"] .testimony-section--core {
  padding: 1.5rem var(--space-page-x) clamp(2.5rem, 6vw, 3.5rem);
}

.testimony-label {
  font-family: "Noto Sans KR", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.75rem;
}

.testimony-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 5.5vw, 2.65rem);
  font-weight: 700;
  color: var(--text-on-dark);
  margin: 0;
  line-height: var(--leading-tight);
  letter-spacing: 0.02em;
}

.testimony-body {
  font-size: var(--text-reading-lg);
  line-height: var(--leading-reading);
  color: rgba(255, 255, 255, 0.92);
}

.testimony-body p {
  margin: 0 0 clamp(1.75rem, 4vw, 2.35rem);
}

.testimony-stanza {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}

.testimony-stanza.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* API로 그려지는 블로그 본문: 대기 없이 바로 표시 (스크롤 전에 투명 문단 방지) */
#essay-panel .testimony-stanza,
#essay-panel .essay-stanza {
  opacity: 1;
  transform: none;
  transition: none;
}

.testimony-pause {
  padding-top: 0.35rem;
  color: rgba(255, 255, 255, 0.7);
}

.testimony-turn {
  font-size: clamp(1.35rem, 3.6vw, 1.65rem);
  font-weight: 700;
  color: var(--text-on-dark);
  padding: clamp(1.75rem, 4vw, 2.5rem) 0;
  margin-bottom: clamp(2rem, 4vw, 2.5rem) !important;
  border-top: var(--section-rule-gold);
  border-bottom: var(--section-rule-gold);
  text-align: center;
  line-height: var(--leading-tight);
}

.testimony-emphasis {
  font-size: clamp(1.28rem, 3.2vw, 1.5rem);
  font-weight: 700;
  color: var(--gold-bright);
}

.testimony-to-you {
  padding-top: 0.5rem;
  font-weight: 600;
  color: var(--gold-bright);
}

.testimony-witness {
  font-weight: 700;
  font-size: 1.08em;
  margin-top: 2rem !important;
}

.testimony-closing {
  font-size: clamp(1.3rem, 3.2vw, 1.55rem);
  font-weight: 700;
  color: var(--text-on-dark);
  text-align: center;
  padding-bottom: 0.75rem;
  margin-bottom: 0 !important;
  line-height: var(--leading-tight);
}

.prayer-cta {
  margin-top: 0;
  padding: clamp(2.75rem, 7vw, 3.75rem) clamp(1.75rem, 5vw, 2.5rem);
  text-align: center;
  background: linear-gradient(165deg, var(--navy-mid) 0%, var(--navy-deep) 55%, var(--navy-ink) 100%);
  color: var(--text-on-dark);
  border-radius: 4px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  border: 1px solid var(--gold-soft);
}

.prayer-cta-lead {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.5vw, 1.6rem);
  margin: 0 0 0.65rem;
  color: var(--gold);
  letter-spacing: 0.03em;
  line-height: var(--leading-tight);
}

.prayer-cta-sub {
  margin: 0 auto clamp(1.75rem, 4vw, 2.25rem);
  font-size: var(--text-reading);
  color: rgba(255, 255, 255, 0.88);
  opacity: 1;
  line-height: var(--leading-reading);
  max-width: 26rem;
}

.btn-prayer {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 0.85rem 2rem;
  font-family: "Noto Sans KR", sans-serif;
  font-size: clamp(0.98rem, 2vw, 1.08rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.25;
  color: var(--navy-ink);
  background: linear-gradient(180deg, var(--gold-bright) 0%, var(--gold) 100%);
  border: 1px solid rgba(255, 220, 160, 0.55);
  border-radius: 999px;
  cursor: pointer;
  box-shadow:
    0 6px 28px rgba(212, 175, 55, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s;
}

.btn-prayer:hover,
.btn-prayer:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 36px rgba(212, 175, 55, 0.45);
  outline: none;
}

/* 기도 요청 다이얼로그 */
.prayer-dialog {
  max-width: 26rem;
  width: calc(100% - 2rem);
  padding: 0;
  border: 1px solid var(--gold-soft);
  border-radius: 6px;
  background: linear-gradient(165deg, rgba(10, 26, 47, 0.98) 0%, var(--navy-deep) 100%);
  color: var(--text-on-dark);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.prayer-dialog::backdrop {
  background: rgba(5, 8, 15, 0.72);
  backdrop-filter: blur(4px);
}

.prayer-dialog-form {
  padding: clamp(1.75rem, 4vw, 2.25rem) clamp(1.35rem, 4vw, 1.85rem);
}

.prayer-dialog-title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 1.4rem);
  margin: 0 0 0.75rem;
  color: var(--gold-bright);
}

.prayer-dialog-note {
  font-size: clamp(0.95rem, 2vw, 1.02rem);
  line-height: var(--leading-reading);
  color: rgba(255, 255, 255, 0.72);
  margin: 0 0 1.25rem;
}

.prayer-dialog-msg {
  margin: 0 0 0.75rem;
  min-height: 1.25em;
}

.prayer-dialog-msg--err {
  color: #f0a8a8;
}

.prayer-field {
  display: block;
  margin-bottom: 1rem;
}

.prayer-field-label {
  display: block;
  font-family: "Noto Sans KR", sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
  color: rgba(255, 255, 255, 0.75);
}

.prayer-field input,
.prayer-field textarea {
  width: 100%;
  padding: 0.85rem 0.9rem;
  font-family: var(--font-serif-ko);
  font-size: var(--text-reading);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 4px;
  background: rgba(5, 7, 13, 0.65);
  color: var(--text-on-dark);
}

.prayer-field textarea {
  resize: vertical;
  min-height: 7rem;
  line-height: 1.6;
}

.prayer-field input::placeholder,
.prayer-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.prayer-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
  margin-top: 1.25rem;
}

/* 키보드 탭 순서: 보내기 → 닫기. 시각 순서는 닫기(왼쪽)·보내기(오른쪽) 유지 */
.prayer-dialog-actions .btn-prayer-secondary {
  order: 1;
}

.prayer-dialog-actions .btn-prayer {
  order: 2;
}

.btn-prayer-secondary {
  padding: 0.65rem 1.25rem;
  font-family: "Noto Sans KR", sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.btn-prayer-secondary:hover,
.btn-prayer-secondary:focus-visible {
  border-color: var(--gold);
  color: var(--gold-bright);
  outline: none;
}

/* ——— 교회 연결 ——— */
.church-section {
  margin-top: var(--space-block);
  padding: var(--space-section-y) var(--space-page-x);
  background: var(--navy-deep);
  color: var(--text-on-dark);
  text-align: center;
  border-top: 2px solid rgba(212, 175, 55, 0.4);
  box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.25);
}

.church-inner {
  max-width: min(42rem, 100%);
  margin: 0 auto;
}

/* 가로형 공식 로고 (1024×280) */
.church-emblem {
  display: block;
  width: min(100%, 26rem);
  height: auto;
  margin: 0 auto 1.35rem;
  border-radius: 6px;
  object-fit: contain;
  object-position: center;
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.25), 0 10px 36px rgba(0, 0, 0, 0.4);
}

.church-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.4vw, 1.75rem);
  margin: 0 0 1.25rem;
  color: var(--gold);
  letter-spacing: 0.06em;
  line-height: var(--leading-tight);
}

.church-section p {
  margin: 0 0 clamp(1.75rem, 4vw, 2.25rem);
  opacity: 0.9;
  color: rgba(255, 255, 255, 0.88);
  font-size: var(--text-reading);
  line-height: var(--leading-reading);
}

.church-link {
  display: inline-block;
  padding: 0.85rem 1.85rem;
  border: 1px solid var(--gold);
  color: var(--gold-bright);
  text-decoration: none;
  font-family: "Noto Sans KR", sans-serif;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  font-weight: 500;
  transition: background 0.3s, color 0.3s;
}

.church-link:hover,
.church-link:focus-visible {
  background: rgba(212, 175, 55, 0.12);
  color: var(--text-on-dark);
}

.site-footer {
  padding: 0;
  text-align: center;
  background: #000000;
  border-top: 1px solid rgba(212, 175, 55, 0.22);
}

.site-footer--mission .footer-mission {
  padding-top: clamp(3.5rem, 10vw, 5.5rem);
  padding-left: calc(var(--space-page-x) + env(safe-area-inset-left, 0px));
  padding-right: calc(var(--space-page-x) + env(safe-area-inset-right, 0px));
  padding-bottom: calc(clamp(2.5rem, 6vw, 3.5rem) + env(safe-area-inset-bottom, 0px));
}

.footer-kicker {
  font-family: "Noto Sans KR", sans-serif;
  font-size: clamp(0.72rem, 1.6vw, 0.82rem);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 0.75rem;
}

.footer-headline {
  font-family: var(--font-serif-ko);
  font-size: clamp(1.15rem, 2.8vw, 1.45rem);
  font-weight: 600;
  color: var(--text-on-dark);
  margin: 0 0 2rem;
  letter-spacing: 0.04em;
}

.footer-produced {
  font-family: "Noto Sans KR", sans-serif;
  font-size: clamp(0.7rem, 1.5vw, 0.78rem);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin: 0 0 0.5rem;
}

.footer-signature {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 10vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--gold);
  margin: 0 0 2.25rem;
  letter-spacing: 0.04em;
  text-shadow: 0 0 60px rgba(212, 175, 55, 0.25);
}

.footer-prayer-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.75rem;
  font-family: "Noto Sans KR", sans-serif;
  font-size: clamp(0.88rem, 2vw, 0.98rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--navy-ink);
  background: linear-gradient(180deg, #f0a030 0%, var(--gold) 45%, #b8892a 100%);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(212, 175, 55, 0.35);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s;
}

.footer-prayer-cta:hover,
.footer-prayer-cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(240, 160, 48, 0.4);
  outline: none;
}

.footer-prayer-icon {
  font-size: 1.15em;
}

.footer-seals {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(0.65rem, 2.5vw, 1.25rem);
  padding: clamp(1rem, 2.5vw, 1.35rem) calc(var(--space-page-x) + env(safe-area-inset-left, 0px))
    clamp(1rem, 2.5vw, 1.35rem) calc(var(--space-page-x) + env(safe-area-inset-right, 0px));
  background: #000000;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-seals__img {
  display: block;
  max-height: clamp(40px, 8vw, 56px);
  width: auto;
  max-width: min(160px, 28vw);
  object-fit: contain;
  opacity: 0.92;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
  transition: opacity 0.2s ease;
}

.footer-seals__img:hover {
  opacity: 1;
}

.footer-meta {
  margin: 0;
  padding-top: 1.25rem;
  padding-right: calc(var(--space-page-x) + env(safe-area-inset-right, 0px));
  padding-bottom: calc(1.75rem + env(safe-area-inset-bottom, 0px));
  padding-left: calc(var(--space-page-x) + env(safe-area-inset-left, 0px));
  font-size: clamp(0.82rem, 1.6vw, 0.9rem);
  color: rgba(255, 255, 255, 0.38);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: #000000;
}

.footer-meta a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-meta a:hover,
.footer-meta a:focus-visible {
  color: var(--gold-bright);
}

/* ——— 모바일: 스크롤 앵커(2단 헤더)·44px 터치·다이얼로그 스크롤 ——— */
@media (max-width: 720px) {
  #hero,
  #welcome,
  #phrase-teaser,
  #core-message,
  #expand,
  #cta,
  #church {
    scroll-margin-top: max(9.5rem, calc(4.75rem + env(safe-area-inset-top, 0px)));
  }

  .essay-archive--cat-list + .essay-panel-wrap #essay-panel {
    scroll-margin-top: max(8.75rem, calc(4.25rem + env(safe-area-inset-top, 0px)));
  }

  .hero-cta {
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    -webkit-tap-highlight-color: rgba(212, 175, 55, 0.2);
    touch-action: manipulation;
  }

  .welcome-card-btn {
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 0.65rem 1.35rem;
    -webkit-tap-highlight-color: rgba(110, 210, 150, 0.2);
    touch-action: manipulation;
  }

  .essay-day-pill {
    min-height: 2.75rem;
    min-width: 5.5rem;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(212, 175, 55, 0.12);
  }

  button.essay-cat-list-item {
    min-height: 2.75rem;
    -webkit-tap-highlight-color: rgba(212, 175, 55, 0.12);
  }

  .btn-prayer,
  .btn-prayer-secondary {
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    touch-action: manipulation;
  }

  .footer-prayer-cta {
    min-height: 2.75rem;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(212, 175, 55, 0.15);
  }

  .church-link {
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(212, 175, 55, 0.15);
  }

  .prayer-dialog {
    width: min(calc(100vw - 1.25rem), 26rem);
    max-height: calc(100vh - 1.5rem - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    margin: auto;
    box-sizing: border-box;
    overflow: hidden;
  }

  .prayer-dialog-form {
    max-height: calc(100vh - 5.5rem - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  }
}

/* 소개 페이지 · 이메일 구독 */
.newsletter-subscribe-block {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(212, 175, 55, 0.22);
  max-width: 32rem;
}
.newsletter-subscribe-title {
  font-family: "Noto Serif KR", serif;
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: rgba(255, 255, 255, 0.92);
}
.newsletter-subscribe-lead {
  margin-top: 0;
  margin-bottom: 1.1rem;
}
.newsletter-subscribe-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}
.newsletter-subscribe-input {
  flex: 1 1 12rem;
  min-width: 0;
  padding: 0.6rem 0.75rem;
  font-size: 0.95rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.25);
  color: #e8e8ec;
}
.newsletter-subscribe-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}
.newsletter-subscribe-input:focus {
  outline: none;
  border-color: rgba(212, 175, 55, 0.45);
}

.newsletter-subscribe-input:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 2px;
  border-color: rgba(212, 175, 55, 0.65);
}

.newsletter-subscribe-btn {
  padding: 0.6rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  background: linear-gradient(180deg, #e8cf6a, #d4af37);
  color: #0a1520;
  letter-spacing: 0.03em;
}
.newsletter-subscribe-btn:hover {
  filter: brightness(1.05);
}

.newsletter-subscribe-btn:focus-visible {
  outline: 3px solid var(--gold-bright);
  outline-offset: 2px;
}

.newsletter-subscribe-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}
.newsletter-subscribe-msg {
  margin: 0.85rem 0 0;
  font-size: 0.88rem;
  line-height: 1.45;
}
.newsletter-subscribe-msg--ok {
  color: #a8e6c4;
}
.newsletter-subscribe-msg--err {
  color: #ffb4b4;
}

/* ——— 영상 페이지 (관리자 등록) ——— */
.site-video-grid {
  display: grid;
  gap: clamp(1.75rem, 4vw, 2.5rem);
  margin: 1.5rem 0 0;
}

.site-video-card {
  padding: 1.25rem 0;
  border-top: 1px solid rgba(212, 175, 55, 0.18);
}

.site-video-card:first-child {
  border-top: none;
  padding-top: 0;
}

.site-video-card-title {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.5vw, 1.35rem);
  font-weight: 600;
  color: var(--gold-bright);
  letter-spacing: 0.02em;
}

.site-video-card-desc {
  margin: 0 0 1rem;
  font-size: 0.98rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
}

.site-video-embed {
  position: relative;
  width: 100%;
  max-width: 720px;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(212, 175, 55, 0.2);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.site-video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.site-video-card-fallback {
  margin: 0;
  font-size: 0.92rem;
}

.site-video-card-fallback a {
  color: var(--gold);
}

/* ——— 기도 페이지 · 안내 카드 ——— */
.prayer-resource-section {
  margin-top: clamp(2rem, 5vw, 2.75rem);
  padding-top: clamp(1.5rem, 4vw, 2rem);
  border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.prayer-resource-heading {
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.prayer-resource-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.prayer-resource-card {
  margin: 0;
  padding: 1.1rem 1.15rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.prayer-resource-card-title {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--cream);
}

.prayer-resource-card-body {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
}

.prayer-resource-card-actions {
  margin: 0.85rem 0 0;
}

/* ——— 기도의 벽 (prayer-wall/) ——— */
.prayer-wall-page .subpage-inner {
  max-width: 42rem;
}

.prayer-wall-back {
  margin: 0 0 1rem;
  font-size: 0.92rem;
}

.prayer-wall-intro-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(232, 207, 106, 0.85);
}

.prayer-wall-hero-split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.15rem;
}

.prayer-wall-hero-split .prayer-wall-title {
  margin: 0 0 1rem;
  flex: 0 1 auto;
  min-width: min(12rem, 100%);
}

.prayer-wall-hero-split .prayer-wall-community-lines {
  flex: 0 1 14rem;
  max-width: min(22rem, 100%);
  margin: 0 0 1.1rem;
}

@media (max-width: 640px) {
  .prayer-wall-hero-split {
    flex-direction: column;
    align-items: stretch;
  }

  .prayer-wall-hero-split .prayer-wall-community-lines {
    flex: none;
    max-width: none;
  }
}

.prayer-wall-title-icon {
  margin-right: 0.35rem;
  font-size: 0.95em;
  vertical-align: -0.05em;
}

.prayer-wall-community-lines {
  margin: 0 0 1.25rem;
  padding: 1.1rem 1.25rem;
  border: none;
  border-left: 3px solid rgba(232, 207, 106, 0.55);
  border-radius: 0 12px 12px 0;
  background: rgba(0, 0, 0, 0.2);
  font-family: 'Noto Serif KR', 'Noto Sans KR', serif;
  font-size: 1.05rem;
  line-height: 1.7;
  font-style: italic;
  color: rgba(255, 245, 220, 0.92);
}

.prayer-wall-community-lines p {
  margin: 0;
}

.prayer-wall-community-lines p + p {
  margin-top: 0.35rem;
}

.prayer-wall-community-nowrap {
  white-space: nowrap;
}

.prayer-wall-intro {
  margin: 0 0 1.15rem;
  padding: 1rem 1.15rem;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(20, 45, 72, 0.55), rgba(8, 18, 36, 0.72));
  border: 1px solid rgba(212, 175, 55, 0.22);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
}

.prayer-wall-intro-line {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
}

.prayer-wall-intro-line + .prayer-wall-intro-line {
  margin-top: 0.45rem;
}

.prayer-wall-lead {
  margin-top: 0.5rem;
}

.prayer-wall-lead--note {
  margin-top: 0.25rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.76);
}

.prayer-wall-auth-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.85rem;
  margin: 1.25rem 0 1.5rem;
}

.prayer-wall-user {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.88);
}

.prayer-wall-admin-hint {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.58);
  max-width: 22rem;
  line-height: 1.45;
}

/* ——— 기도의 벽 CTA · 작성 폼 · 카드 ——— */
.prayer-wall-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin: 0.75rem 0 1.35rem;
}

.prayer-wall-cta-arrow {
  font-size: 1.15rem;
}

/* 링크·제출 버튼 공통: 한 규칙으로만 그려서 모양이 어긋나지 않게 함 */
.prayer-wall-cta-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  box-sizing: border-box;
  padding: 0.65rem 1.35rem;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.25;
  border-radius: 999px;
  color: #1a0f06;
  background: linear-gradient(135deg, #ff9a4d 0%, #ff6b2c 45%, #e8481c 100%);
  box-shadow:
    0 6px 22px rgba(255, 100, 40, 0.45),
    0 2px 8px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 200, 120, 0.5);
}

a.prayer-wall-cta-hero {
  text-decoration: none;
}

button.prayer-wall-cta-hero {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  font: inherit;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.25;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
  border-style: solid;
}

.prayer-wall-cta-hero:hover {
  filter: brightness(1.06);
  color: #120804;
}

.prayer-wall-cta-hero:focus-visible {
  outline: 3px solid var(--gold-bright);
  outline-offset: 3px;
}

.prayer-wall-cta-emoji {
  font-size: 1.1em;
}

.prayer-wall-compose {
  margin-top: 0.5rem;
  margin-bottom: 2.25rem;
  padding: 1.35rem 1.25rem 1.5rem;
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(18, 42, 68, 0.75), rgba(6, 14, 30, 0.88));
  border: 1px solid rgba(212, 175, 55, 0.28);
  scroll-margin-top: 5.5rem;
}

.prayer-wall-compose-arrow {
  margin: 0;
  font-size: 1.1rem;
  opacity: 0.85;
}

.prayer-wall-compose-title {
  margin: 0.15rem 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--gold-bright);
}

.prayer-wall-compose-ask {
  margin: 0.35rem 0 0;
  font-size: 1.08rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.94);
}

.prayer-wall-compose-invite {
  margin: 0.2rem 0 0.85rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.68);
}

.prayer-wall-textarea--hero {
  min-height: 10rem;
  font-size: 1rem;
  line-height: 1.65;
}

.prayer-wall-vis-fieldset {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
}

.prayer-wall-vis-legend {
  padding: 0 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(232, 207, 106, 0.95);
}

.prayer-wall-vis-option {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  margin: 0.5rem 0 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.86);
  cursor: pointer;
}

.prayer-wall-vis-option input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.prayer-wall-vis-ico {
  margin-right: 0.15rem;
  opacity: 0.75;
}

.prayer-wall-vis--segments .prayer-wall-vis-segment-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.prayer-wall-vis-segment {
  position: relative;
  flex: 1;
  margin: 0;
  cursor: pointer;
}

.prayer-wall-vis-segment input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.prayer-wall-vis-segment-ui {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.35rem 0.5rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.28);
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
  color: rgba(255, 250, 235, 0.9);
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    color 0.15s ease;
}

.prayer-wall-vis-segment input:focus-visible + .prayer-wall-vis-segment-ui {
  outline: 2px solid var(--gold-bright);
  outline-offset: 2px;
}

.prayer-wall-vis-segment input:checked + .prayer-wall-vis-segment-ui {
  border-color: rgba(232, 207, 106, 0.58);
  background: rgba(80, 65, 40, 0.48);
  color: #fff8e8;
  box-shadow:
    0 0 0 1px rgba(212, 175, 55, 0.2),
    inset 0 1px 0 rgba(255, 240, 200, 0.12);
}

.prayer-wall-vis-segment-detail {
  margin: 0.65rem 0 0;
  font-size: 0.85rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.65);
}

.prayer-field-hint {
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.86em;
}

.prayer-wall-login-later {
  margin: 1rem 0 0.35rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(255, 230, 180, 0.85);
}

.prayer-wall-submit-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-top: 0.85rem;
}

.prayer-wall-submit-arrow {
  font-size: 1.1rem;
}

.prayer-wall-list-heading {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.04em;
}

.prayer-wall-card-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.prayer-wall-card {
  margin: 0;
}

.prayer-wall-card-link {
  display: block;
  padding: 1.05rem 1.15rem;
  text-decoration: none;
  color: inherit;
  border-radius: 12px;
  background: linear-gradient(155deg, rgba(22, 48, 78, 0.55), rgba(8, 18, 38, 0.75));
  border: 1px solid rgba(212, 175, 55, 0.18);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.prayer-wall-card-link:hover {
  border-color: rgba(232, 207, 106, 0.35);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.32);
  transform: translateY(-2px);
}

.prayer-wall-card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  margin-bottom: 0.55rem;
}

.pw-badge {
  display: inline-block;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pw-badge--pub {
  background: rgba(80, 140, 200, 0.35);
  border: 1px solid rgba(120, 180, 240, 0.35);
  color: #c8e4ff;
}

.pw-badge--anon {
  background: rgba(120, 100, 60, 0.4);
  border: 1px solid rgba(200, 175, 120, 0.35);
  color: #f5e6c0;
}

.prayer-wall-card-time {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
}

.prayer-wall-card-excerpt {
  margin: 0 0 0.75rem;
  font-size: 0.96rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
}

.prayer-wall-card-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 235, 200, 0.88);
}

.prayer-wall-card-stat {
  white-space: nowrap;
}

.prayer-wall-article-badges {
  margin: 0 0 0.5rem;
}

.prayer-wall-stats-emotion {
  margin: 0 0 1rem;
}

.prayer-wall-stat-sentence {
  margin: 0 0 0.35rem;
  font-size: 1.02rem;
  line-height: 1.5;
  color: rgba(255, 248, 235, 0.94);
}

.prayer-wall-stat-sentence--soft {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.98rem;
}

.prayer-wall-stat-subline {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
}

.prayer-wall-stat-dot {
  margin: 0 0.2rem;
  opacity: 0.5;
}

.prayer-wall-react-emoji {
  margin-right: 0.15rem;
}

.prayer-wall-react-badge {
  font-size: 0.74rem;
  padding: 0.42rem 0.65rem 0.42rem 0.72rem;
}

@media (min-width: 480px) {
  .prayer-wall-react-badge {
    font-size: 0.78rem;
  }
}

.prayer-wall-flash {
  margin: 0 0 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  font-size: 0.92rem;
  line-height: 1.5;
}

.prayer-wall-flash--ok {
  background: rgba(80, 160, 120, 0.18);
  border: 1px solid rgba(120, 200, 160, 0.35);
  color: #c8f0dc;
}

.prayer-wall-flash--err {
  background: rgba(180, 60, 60, 0.2);
  border: 1px solid rgba(220, 100, 100, 0.4);
  color: #ffd0d0;
}

.prayer-wall-post-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.prayer-wall-post-li {
  margin: 0;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.prayer-wall-post-li:first-child {
  padding-top: 0;
}

.prayer-wall-post-link {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  text-decoration: none;
  color: var(--cream);
}

.prayer-wall-post-link:hover .prayer-wall-post-title {
  color: var(--gold-bright);
}

.prayer-wall-post-title {
  font-weight: 600;
  font-size: 1.02rem;
}

.prayer-wall-post-time {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

.prayer-wall-post-author {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.prayer-wall-pager {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
  font-size: 0.92rem;
}

.prayer-wall-pager a {
  color: var(--gold);
}

.prayer-wall-compose {
  margin-top: clamp(2rem, 5vw, 2.75rem);
  padding-top: 1.75rem;
  border-top: 1px solid rgba(212, 175, 55, 0.18);
}

.prayer-wall-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.prayer-wall-textarea {
  width: 100%;
  min-height: 7rem;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
  color: var(--cream);
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.55;
  resize: vertical;
}

.prayer-wall-article {
  margin-bottom: 1.5rem;
}

.prayer-wall-article-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.25rem, 3vw, 1.55rem);
  color: var(--cream);
}

.prayer-wall-article-meta {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
}

.prayer-wall-article-body {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.9);
}

/* 상세: 원글을 댓글과 같은 톤·카드로 */
.prayer-wall-op-sec {
  margin-bottom: 0.25rem;
}

.prayer-wall-op-sec .prayer-wall-comments-h {
  margin-bottom: 0.65rem;
}

.prayer-wall-comment-list--flat {
  margin: 0;
  padding: 0;
}

.prayer-wall-comment--original {
  padding: 1rem 1.15rem;
  margin: 0;
  border: 1px solid rgba(212, 175, 55, 0.24);
  border-radius: 14px;
  background: linear-gradient(
    165deg,
    rgba(40, 58, 86, 0.5) 0%,
    rgba(12, 22, 42, 0.75) 100%
  );
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  border-bottom: none;
}

.prayer-wall-comment--original .prayer-wall-comment-body {
  margin-top: 0.5rem;
}

.prayer-wall-comment-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.65rem;
}

.prayer-wall-comment-meta-row .prayer-wall-comment-author {
  font-weight: 600;
}

.prayer-wall-comment-meta-row .prayer-wall-comment-time {
  margin-left: auto;
}

@media (max-width: 520px) {
  .prayer-wall-comment-meta-row .prayer-wall-comment-time {
    margin-left: 0;
    flex-basis: 100%;
  }
}

.prayer-wall-comment-badge {
  flex-shrink: 0;
  margin: 0;
  font-size: 0.72rem;
}

.prayer-wall-back-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}

.prayer-wall-post-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: #0f1a28;
  background: linear-gradient(165deg, #f0dc8a, #d4ae38 45%, #b8891c);
  border: 1px solid rgba(255, 240, 190, 0.55);
  box-shadow:
    0 6px 22px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(212, 175, 55, 0.35),
    inset 0 1px 0 rgba(255, 255, 240, 0.45);
  white-space: nowrap;
}

.prayer-wall-post-cta:hover {
  filter: brightness(1.07);
  color: #0a1420;
}

.prayer-wall-post-cta:focus-visible {
  outline: 3px solid var(--gold-bright);
  outline-offset: 2px;
}

@media (max-width: 520px) {
  .prayer-wall-back-row {
    flex-direction: column;
    align-items: stretch;
  }

  .prayer-wall-post-cta {
    justify-content: center;
  }
}

.prayer-wall-post-cta-ico {
  font-size: 1.05em;
}

.prayer-wall-missed-cta {
  margin-top: 1.25rem;
}

.prayer-wall-react-lead {
  margin: 0 0 1rem;
  font-size: 0.93rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
}

.prayer-wall-react-lead-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  margin-right: 0.2rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #0f1a28;
  background: linear-gradient(165deg, #eed688, #c9a22e);
  vertical-align: 0.1em;
}

.prayer-wall-btn-row--react {
  gap: 0.55rem;
}

.prayer-wall-btn-row-secondary {
  display: flex;
  flex: 1 1 auto;
  gap: 0.55rem;
  min-width: 0;
}

@media (min-width: 768px) {
  .prayer-wall-btn-row-secondary {
    display: contents;
  }
}

/* 아멘 오른쪽: 버튼이 아닌 댓글 개수 문구 */
.prayer-wall-react-comment-meta {
  margin: 0;
  align-self: center;
  font-family: "Noto Sans KR", system-ui, sans-serif;
  font-size: 0.86rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.25;
  white-space: nowrap;
  padding: 0.25rem 0;
}

.prayer-wall-reactions {
  margin: 0.35rem 0 1.5rem;
  padding: 1.15rem 0;
  border-top: none;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.prayer-wall-stats-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 0 0 1rem;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.82);
}

.prayer-wall-count {
  white-space: nowrap;
}

/* 비로그인: 기도했어요·아멘·마음 — 약간 떠 있는 3D 칩 */
.prayer-wall-stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.34rem 0.75rem 0.34rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  border: 1px solid rgba(180, 150, 80, 0.5);
  background: linear-gradient(
    160deg,
    rgba(36, 58, 88, 0.95) 0%,
    rgba(10, 22, 42, 0.98) 48%,
    rgba(6, 14, 28, 1) 100%
  );
  color: rgba(255, 250, 235, 0.96);
  box-shadow:
    0 5px 14px rgba(0, 0, 0, 0.42),
    0 2px 4px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -3px 8px rgba(0, 0, 0, 0.28);
}

.prayer-wall-stat-badge--prayed {
  border-color: rgba(210, 185, 110, 0.65);
  background: linear-gradient(
    155deg,
    rgba(110, 88, 48, 0.98) 0%,
    rgba(72, 58, 32, 0.96) 35%,
    rgba(38, 30, 18, 1) 100%
  );
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.45),
    0 2px 5px rgba(20, 12, 4, 0.5),
    inset 0 1px 0 rgba(255, 220, 150, 0.22),
    inset 0 -4px 10px rgba(0, 0, 0, 0.35);
}

.prayer-wall-stat-badge--ghost {
  font-weight: 500;
  border-color: rgba(190, 165, 95, 0.45);
  background: linear-gradient(
    160deg,
    rgba(32, 48, 72, 0.95) 0%,
    rgba(14, 26, 48, 0.98) 50%,
    rgba(8, 16, 32, 1) 100%
  );
  color: rgba(255, 255, 255, 0.88);
  box-shadow:
    0 5px 12px rgba(0, 0, 0, 0.38),
    0 1px 3px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -3px 8px rgba(0, 0, 0, 0.25);
}

.prayer-wall-stat-badge-text {
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

/* 숫자 칩: 살짝 파인 리세스 */
.prayer-wall-stat-badge-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, rgba(12, 10, 8, 0.92), rgba(0, 0, 0, 0.85));
  border: 1px solid rgba(0, 0, 0, 0.45);
  color: #f2dfa8;
  box-shadow:
    inset 0 2px 5px rgba(0, 0, 0, 0.55),
    inset 0 -1px 0 rgba(255, 220, 140, 0.12),
    0 1px 2px rgba(0, 0, 0, 0.35);
}

.prayer-wall-stat-badge--prayed .prayer-wall-stat-badge-count {
  border-color: rgba(40, 32, 18, 0.7);
  color: #ffe9a8;
  box-shadow:
    inset 0 2px 6px rgba(0, 0, 0, 0.6),
    inset 0 -1px 0 rgba(255, 210, 120, 0.18),
    0 1px 3px rgba(20, 10, 0, 0.4);
}

.prayer-wall-stat-badge--ghost .prayer-wall-stat-badge-count {
  border-color: rgba(0, 0, 0, 0.5);
  color: #e8d9a8;
  box-shadow:
    inset 0 2px 5px rgba(0, 0, 0, 0.55),
    inset 0 -1px 0 rgba(200, 180, 120, 0.1),
    0 1px 2px rgba(0, 0, 0, 0.35);
}

.prayer-wall-btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

/* 반응: 눌러지는·떠 있는 3D 버튼 칩 */
.prayer-wall-react-badge {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0.4rem 0.88rem 0.4rem 0.98rem;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid rgba(175, 150, 85, 0.55);
  background: linear-gradient(
    160deg,
    rgba(42, 62, 92, 0.98) 0%,
    rgba(14, 28, 52, 0.98) 45%,
    rgba(8, 16, 34, 1) 100%
  );
  color: rgba(255, 250, 235, 0.96);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.4),
    0 2px 5px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -4px 10px rgba(0, 0, 0, 0.22);
  transform: translateY(0);
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.prayer-wall-react-badge:hover {
  border-color: rgba(232, 207, 106, 0.58);
  background: linear-gradient(
    160deg,
    rgba(48, 72, 105, 1) 0%,
    rgba(18, 34, 58, 1) 45%,
    rgba(10, 20, 40, 1) 100%
  );
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.45),
    0 3px 6px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -4px 10px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}

.prayer-wall-react-badge:active {
  transform: translateY(1px);
  box-shadow:
    0 3px 10px rgba(0, 0, 0, 0.38),
    0 1px 2px rgba(0, 0, 0, 0.3),
    inset 0 2px 6px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.prayer-wall-react-badge:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

.prayer-wall-react-badge--prayed {
  border-color: rgba(215, 185, 105, 0.65);
  background: linear-gradient(
    155deg,
    rgba(120, 95, 52, 0.98) 0%,
    rgba(78, 62, 34, 0.98) 38%,
    rgba(38, 30, 18, 1) 100%
  );
  box-shadow:
    0 7px 18px rgba(0, 0, 0, 0.45),
    0 2px 6px rgba(28, 18, 6, 0.45),
    inset 0 1px 0 rgba(255, 230, 170, 0.25),
    inset 0 -5px 12px rgba(0, 0, 0, 0.3);
}

.prayer-wall-react-badge--prayed:hover {
  border-color: rgba(238, 215, 130, 0.72);
  background: linear-gradient(
    155deg,
    rgba(132, 105, 58, 1) 0%,
    rgba(88, 70, 38, 1) 38%,
    rgba(44, 35, 20, 1) 100%
  );
  box-shadow:
    0 9px 22px rgba(0, 0, 0, 0.48),
    0 3px 8px rgba(30, 20, 8, 0.42),
    inset 0 1px 0 rgba(255, 235, 190, 0.28),
    inset 0 -5px 12px rgba(0, 0, 0, 0.26);
  transform: translateY(-1px);
}

.prayer-wall-react-badge--ghost {
  font-weight: 500;
  border-color: rgba(190, 165, 95, 0.48);
  background: linear-gradient(
    160deg,
    rgba(38, 55, 82, 0.98) 0%,
    rgba(16, 30, 54, 0.98) 48%,
    rgba(8, 18, 38, 1) 100%
  );
  color: rgba(255, 255, 255, 0.9);
}

.prayer-wall-react-badge--ghost:hover {
  border-color: rgba(232, 207, 106, 0.52);
  background: linear-gradient(
    160deg,
    rgba(44, 64, 94, 1) 0%,
    rgba(18, 34, 60, 1) 48%,
    rgba(10, 22, 44, 1) 100%
  );
}

.prayer-wall-react-badge.is-on {
  border-color: rgba(240, 215, 120, 0.92);
  color: #fffaf0;
  box-shadow:
    0 5px 14px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(232, 207, 106, 0.35),
    inset 0 1px 0 rgba(255, 245, 200, 0.22),
    inset 0 -5px 14px rgba(0, 0, 0, 0.32);
}

.prayer-wall-react-badge--prayed.is-on {
  background: linear-gradient(
    155deg,
    rgba(125, 100, 55, 1) 0%,
    rgba(88, 70, 38, 1) 35%,
    rgba(48, 38, 22, 1) 100%
  );
}

/* 반응 수: 괄호 대신 금색 실원 + 짙은 숫자(고대비) */
.prayer-wall-react-count-disc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 1.75rem;
  height: 1.75rem;
  padding: 0 0.32rem;
  border-radius: 50%;
  background: linear-gradient(165deg, #fff0a0 0%, #eecf46 42%, #c9a22e 100%);
  border: 1px solid rgba(45, 35, 8, 0.55);
  box-shadow:
    0 2px 12px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.prayer-wall-react-disc-num {
  font-size: 0.75rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: #0f1408;
  letter-spacing: -0.03em;
}

.prayer-wall-react-badge--primary .prayer-wall-react-count-disc {
  background: linear-gradient(165deg, #fff6b8 0%, #f0d24a 40%, #b8891c 100%);
}

.prayer-wall-react-badge.is-on .prayer-wall-react-count-disc {
  box-shadow:
    0 0 0 2px rgba(255, 215, 120, 0.55),
    0 3px 14px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
  border-color: rgba(60, 48, 15, 0.65);
}

.prayer-wall-react-badge--ghost .prayer-wall-react-count-disc {
  background: linear-gradient(165deg, #ffed9a 0%, #dfc040 50%, #a67c16 100%);
}

.prayer-wall-react-badge--ghost.is-on .prayer-wall-react-count-disc {
  box-shadow:
    0 0 0 2px rgba(232, 207, 106, 0.45),
    0 3px 12px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 250, 220, 0.65);
}

.prayer-wall-react-badge:disabled,
.prayer-wall-react-badge[disabled] {
  opacity: 0.58;
  cursor: not-allowed;
  filter: grayscale(0.12);
}

.prayer-wall-react-badge[aria-busy='true'] {
  opacity: 0.75;
  pointer-events: none;
}

.pw-react-toast {
  margin: 0.35rem 0 0.5rem;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.pw-react-toast:not([hidden]) {
  animation: prayer-wall-toast-in 0.35s ease;
}

@keyframes prayer-wall-toast-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes prayer-wall-react-count-bump {
  0% {
    transform: scale(1);
  }
  35% {
    transform: scale(1.18);
  }
  100% {
    transform: scale(1);
  }
}

.prayer-wall-react-count--bump {
  animation: prayer-wall-react-count-bump 0.45s ease;
}

.prayer-wall-react-forms .prayer-wall-react-badge {
  justify-content: space-between;
  align-items: center;
  text-align: left;
}

.prayer-wall-react-btn-main {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  flex-wrap: wrap;
  flex: 1 1 auto;
  min-width: 0;
}

.prayer-wall-react-inline-count {
  display: inline-flex;
  align-items: center;
  margin-left: 0.12rem;
}

.prayer-wall-react-badge--primary {
  font-size: 0.84rem;
  padding: 0.52rem 1rem 0.52rem 1.05rem;
  font-weight: 700;
  border-color: rgba(255, 220, 160, 0.62) !important;
  box-shadow:
    0 9px 26px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(240, 210, 130, 0.42),
    inset 0 1px 0 rgba(255, 248, 210, 0.38),
    inset 0 -5px 14px rgba(0, 0, 0, 0.22) !important;
}

.prayer-wall-react-badge--primary:hover {
  filter: brightness(1.06);
  border-color: rgba(255, 235, 195, 0.78) !important;
}

.prayer-wall-react-badge--secondary {
  opacity: 0.87;
  font-size: 0.77rem;
  font-weight: 500;
  border-color: rgba(155, 145, 115, 0.4) !important;
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.09) !important;
}

.prayer-wall-react-badge--secondary:hover {
  opacity: 0.94;
  border-color: rgba(200, 180, 120, 0.45) !important;
}

.prayer-wall-react-suffix {
  flex-shrink: 0;
  margin-left: 0.4rem;
  padding-left: 0.25rem;
  font-size: 0.95em;
  font-weight: 700;
  color: rgba(255, 238, 190, 0.98);
}

.prayer-wall-react-hint {
  margin: 0.5rem 0 0;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.62);
}

.prayer-wall-rate-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.prayer-wall-rate-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
}

.prayer-wall-rate-label select {
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.3);
  color: var(--cream);
}

.prayer-wall-comments-sec {
  margin-top: 1.75rem;
}

.prayer-wall-comments-h {
  font-size: 1.05rem;
  margin: 0 0 0.75rem;
  color: var(--gold-bright);
}

.prayer-wall-op-heading-ico {
  margin-right: 0.28rem;
  font-size: 1.05em;
  vertical-align: -0.06em;
}

/* '댓글' 제목은 밖에 두고, 목록·안내·입력만 오른쪽으로 한 단 들임 */
.prayer-wall-comments-sec > *:not(.prayer-wall-comments-h) {
  margin-left: clamp(0.85rem, 2.8vw, 1.45rem);
  padding-left: clamp(0.5rem, 1.8vw, 0.85rem);
}

.prayer-wall-comment-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.prayer-wall-comment {
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.prayer-wall-comment-author {
  font-size: 0.8rem;
  margin-right: 0.5rem;
}

.prayer-wall-comment-time {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.5);
}

.prayer-wall-comment-body {
  margin-top: 0.45rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
}

.prayer-wall-comment-form {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 1rem 1.05rem;
  border-radius: 10px;
  border: 1px solid rgba(212, 175, 55, 0.18);
  background: rgba(5, 8, 16, 0.55);
}

.prayer-wall-comment-form .prayer-field-label,
.prayer-wall-comment-guest .prayer-field-label {
  font-size: 0.86rem;
  font-weight: 600;
  color: rgba(255, 248, 235, 0.92);
}

.prayer-wall-comment-field-hint {
  display: block;
  margin: 0.2rem 0 0.4rem;
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.58);
}

.prayer-wall-comment-field-hint strong {
  font-weight: 600;
  color: rgba(255, 235, 200, 0.88);
}

.prayer-wall-comment-form .prayer-wall-textarea {
  min-height: 0;
  min-height: calc(3 * 1.55em + 1.3rem);
}

.prayer-wall-comment-form .prayer-wall-textarea:focus-visible {
  outline: none;
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

.prayer-wall-comment-guest {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 1rem 1.05rem;
  border-radius: 10px;
  border: 1px solid rgba(212, 175, 55, 0.18);
  background: rgba(5, 8, 16, 0.55);
}

.prayer-wall-comment-guest .prayer-wall-textarea {
  min-height: 0;
  min-height: calc(3 * 1.55em + 1.3rem);
  opacity: 0.72;
  cursor: not-allowed;
}

.prayer-wall-comment-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin-top: 0.15rem;
}

.prayer-wall-comment-submit {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.65rem;
  padding: 0.6rem 1.35rem;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  background: linear-gradient(180deg, #e8cf6a, #c9a227);
  color: #0a1520;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.prayer-wall-comment-submit:hover {
  filter: brightness(1.06);
}

.prayer-wall-comment-submit:focus-visible {
  outline: 3px solid var(--gold-bright);
  outline-offset: 2px;
}

a.prayer-wall-comment-submit--link {
  text-decoration: none;
  color: #0a1520;
}

.prayer-wall-comment-guest-note {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ——— 소개 · 운영자 프로필 ——— */
.about-site-operator {
  margin: clamp(2rem, 5vw, 2.75rem) 0;
  padding: clamp(1.25rem, 3vw, 1.65rem);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(15, 40, 64, 0.55), rgba(5, 10, 20, 0.65));
  border: 1px solid rgba(212, 175, 55, 0.22);
}

.about-site-operator-title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gold-bright);
  letter-spacing: 0.04em;
}

.about-site-operator-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.15rem;
  align-items: flex-start;
}

.about-site-operator-avatar {
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(212, 175, 55, 0.45);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.about-site-operator-text {
  flex: 1 1 12rem;
  min-width: 0;
}

.about-site-operator-name {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--cream);
}

.about-site-operator-bio {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
}

/* 기도의 벽: 하단 고정 CTA · 모바일 터치 흐름 */
.prayer-wall-fab {
  display: none;
}

.prayer-wall-fab-inner {
  max-width: 42rem;
  margin: 0 auto;
}

.prayer-wall-fab-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: #0f1a28;
  background: linear-gradient(165deg, #f0dc8a, #d4ae38 45%, #b8891c);
  border: 1px solid rgba(255, 240, 190, 0.55);
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(212, 175, 55, 0.35),
    inset 0 1px 0 rgba(255, 255, 240, 0.45);
}

.prayer-wall-fab-link:hover {
  filter: brightness(1.06);
  color: #0a1420;
}

.prayer-wall-fab-link:focus-visible {
  outline: 3px solid var(--gold-bright);
  outline-offset: 3px;
}

.prayer-wall-fab-ico {
  font-size: 1.1em;
  line-height: 1;
}

.prayer-wall-next-nav {
  margin: 1.35rem 0 0;
  text-align: center;
  font-size: 0.95rem;
}

.prayer-wall-op-body-stack {
  margin-top: 0.45rem;
}

.prayer-wall-op-more-btn {
  appearance: none;
  margin: 0.65rem 0 0;
  padding: 0.45rem 1rem;
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.4);
  background: rgba(24, 38, 58, 0.85);
  color: rgba(255, 240, 210, 0.95);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.prayer-wall-op-more-btn:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 2px;
}

/* 상세 글: 기본 3줄 + 더보기 (모바일·데스크톱 공통) */
.prayer-wall-op-body-inner--collapsible {
  line-height: 1.65;
}

.prayer-wall-op-body-inner--collapsible:not(.is-expanded) {
  max-height: calc(1.65em * 3);
  overflow: hidden;
  position: relative;
}

.prayer-wall-op-body-inner--collapsible:not(.is-expanded)::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2.25rem;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(12, 20, 36, 0.96));
}

.prayer-wall-op-body-inner--collapsible.is-expanded::after {
  display: none;
}

.prayer-wall-thread .prayer-wall-op-body-inner--collapsible:not(.is-expanded)::after {
  background: linear-gradient(to bottom, transparent, rgba(10, 18, 34, 0.98));
}

/* 나눔 + 반응 + 댓글 한 카드 */
.prayer-wall-thread {
  margin: 0 0 1.5rem;
  border: 1px solid rgba(212, 175, 55, 0.24);
  border-radius: 14px;
  background: linear-gradient(
    165deg,
    rgba(40, 58, 86, 0.45) 0%,
    rgba(12, 22, 42, 0.72) 100%
  );
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.prayer-wall-thread .prayer-wall-comment--original {
  margin: 0;
  padding: 1rem 1.15rem 0.75rem;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.prayer-wall-thread .prayer-wall-op-sec {
  margin-bottom: 0;
}

.prayer-wall-thread .prayer-wall-op-sec .prayer-wall-comments-h {
  margin-top: 0;
  margin-bottom: 0.5rem;
  padding-left: 1.15rem;
}

.prayer-wall-thread .prayer-wall-reactions {
  margin: 0;
  padding: 0.85rem 1.15rem 1rem;
  border-top: 1px solid rgba(212, 175, 55, 0.14);
  border-bottom: 1px solid rgba(212, 175, 55, 0.12);
}

.prayer-wall-thread > .prayer-wall-flash {
  margin: 0.65rem 1.15rem 0;
}

.prayer-wall-thread .prayer-wall-comments-sec {
  margin-top: 0;
  padding: 0.85rem 1.15rem 0.5rem;
}

.prayer-wall-thread .prayer-wall-comments-h {
  margin-top: 0;
}

.prayer-wall-thread .prayer-wall-comment-list .prayer-wall-comment:last-child {
  border-bottom: none;
}

.prayer-wall-thread-next {
  margin: 0;
  padding: 0.75rem 1.15rem 1.05rem;
  text-align: center;
  font-size: 0.92rem;
  border-top: 1px solid rgba(212, 175, 55, 0.12);
  background: rgba(0, 0, 0, 0.1);
}

@media (max-width: 767px) {
  .prayer-wall-page .subpage-inner {
    padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
  }

  .prayer-wall-fab {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    padding: 0.5rem 1rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
    pointer-events: none;
    background: linear-gradient(
      to top,
      rgba(8, 14, 28, 0.97) 0%,
      rgba(8, 14, 28, 0.88) 45%,
      rgba(8, 14, 28, 0) 100%
    );
  }

  .prayer-wall-fab-inner {
    pointer-events: auto;
  }

  .prayer-wall-vis-segment-detail {
    display: none;
  }

  .prayer-wall-react-lead--desktop-only,
  .prayer-wall-react-hint--desktop-only {
    display: none;
  }

  .prayer-wall-textarea--hero.prayer-wall-textarea--mobile-collapsible {
    min-height: 3.1rem;
    max-height: 6.75rem;
    transition:
      min-height 0.22s ease,
      max-height 0.22s ease;
  }

  .prayer-wall-textarea--hero.prayer-wall-textarea--mobile-collapsible:focus {
    min-height: 12rem;
    max-height: 36rem;
  }

  .prayer-wall-comment--original .prayer-wall-op-plain-body,
  .prayer-wall-comments-sec .prayer-wall-comment-body {
    font-size: 1.05rem;
    line-height: 1.75;
  }

  .prayer-wall-op-body-inner--collapsible {
    line-height: 1.75;
  }

  .prayer-wall-op-body-inner--collapsible:not(.is-expanded) {
    max-height: calc(1.75em * 3);
  }

  .prayer-wall-btn-row--react {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .prayer-wall-btn-row-secondary {
    gap: 10px;
  }

  .prayer-wall-react-forms .prayer-wall-react-badge--primary {
    width: 100%;
    min-height: 48px;
    justify-content: center;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .prayer-wall-btn-row-secondary .prayer-wall-react-badge {
    flex: 1;
    justify-content: center;
    min-height: 44px;
    padding-left: 0.65rem;
    padding-right: 0.65rem;
  }

  .prayer-wall-react-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .prayer-wall-react-btn-main {
    justify-content: center;
    gap: 0.28rem;
  }

  .prayer-wall-react-forms .prayer-wall-react-badge {
    font-size: 0.95rem;
  }

  .prayer-wall-react-badge--secondary {
    font-size: 0.9rem;
  }

  .prayer-wall-react-count-disc {
    min-width: 1.88rem;
    height: 1.88rem;
  }

  .prayer-wall-react-disc-num {
    font-size: 0.82rem;
  }

  button.prayer-wall-cta-hero {
      min-height: 48px;
  }

  .prayer-wall-comment-submit,
  .prayer-wall-comment-submit--link {
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .phrase-card,
  .phrase-extra {
    opacity: 1;
    transform: none;
  }

  .testimony-stanza {
    opacity: 1;
    transform: none;
  }

  .welcome-card {
    opacity: 1;
    transform: none;
  }

  .essay-stanza {
    opacity: 1;
    transform: none;
  }

  .prayer-wall-react-badge,
  .prayer-wall-react-badge:hover,
  .prayer-wall-react-badge:active {
    transform: none;
  }

  .prayer-wall-react-count--bump {
    animation: none;
  }

  .portfolio-card:hover,
  .portfolio-card:focus-visible {
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ——— Shop 원페이지 랜딩 (shop/) ——— */
.shop-landing-page {
  padding-bottom: 0;
}

@media (max-width: 900px) {
  .shop-landing-page {
    padding-bottom: calc(4.35rem + env(safe-area-inset-bottom, 0px));
  }
}

.shop-landing {
  padding-left: 0;
  padding-right: 0;
  max-width: none;
}

.shop-landing section[id] {
  scroll-margin-top: calc(var(--hbg-header-sticky-offset) + 0.35rem);
}

.shop-hero {
  padding: clamp(2.5rem, 8vw, 4rem) var(--space-page-x) clamp(3rem, 9vw, 5rem);
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  background: radial-gradient(ellipse 120% 80% at 50% 0%, rgba(212, 175, 55, 0.08), transparent 55%);
}

.shop-hero__inner {
  max-width: 40rem;
  margin: 0 auto;
  text-align: center;
}

.shop-hero__kicker {
  font-family: "Noto Sans KR", sans-serif;
  font-size: clamp(0.78rem, 2vw, 0.88rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(232, 207, 106, 0.85);
  margin: 0 0 1rem;
}

.shop-hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 4.5vw, 2.35rem);
  font-weight: 700;
  line-height: var(--leading-tight);
  color: var(--text-on-dark);
  margin: 0 0 1.25rem;
  letter-spacing: 0.02em;
}

.shop-hero__title-em {
  color: var(--gold-bright);
}

.shop-hero__lead {
  margin: 0 auto 1.75rem;
  font-size: clamp(1.05rem, 2.4vw, 1.2rem);
  line-height: var(--leading-reading);
  color: rgba(255, 255, 255, 0.86);
  max-width: 36rem;
}

.shop-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
}

.shop-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.65rem 1.5rem;
  font-family: "Noto Sans KR", sans-serif;
  font-size: clamp(0.95rem, 2.2vw, 1.02rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  border-radius: 4px;
  transition: color 0.2s, border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.shop-btn--primary {
  color: var(--navy-deep);
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.shop-btn--primary:hover,
.shop-btn--primary:focus-visible {
  color: var(--navy-deep);
  filter: brightness(1.06);
  outline: none;
}

.shop-btn--ghost {
  color: rgba(110, 210, 150, 0.95);
  border: 1px solid var(--mission-line);
  background: rgba(0, 0, 0, 0.2);
}

.shop-btn--ghost:hover,
.shop-btn--ghost:focus-visible {
  color: var(--gold-bright);
  border-color: rgba(212, 175, 55, 0.55);
  outline: none;
}

.shop-products {
  background: rgba(5, 13, 26, 0.35);
}

.shop-products--solo {
  padding-top: clamp(2rem, 6vw, 3.5rem);
}

.shop-products__page-title {
  text-align: center;
  margin-bottom: clamp(1.5rem, 4vw, 2.25rem);
}

.shop-products__status-msg {
  text-align: center;
  margin: 0 auto;
  max-width: 28rem;
  font-size: var(--text-reading);
  color: rgba(255, 200, 200, 0.92);
}

.shop-product-card__placeholder {
  width: 100%;
  height: 100%;
  min-height: 12rem;
  background: linear-gradient(145deg, rgba(15, 40, 64, 0.5), rgba(5, 13, 26, 0.85));
}

.shop-products__flow-hint {
  margin: 0 0 0.25rem;
  font-size: clamp(0.94rem, 2.4vw, 1rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.68);
}

.shop-trust-strip {
  margin: 0 auto 1rem;
  max-width: 36rem;
  padding: 0.75rem 1rem;
  font-size: clamp(0.92rem, 2.3vw, 1rem);
  line-height: 1.55;
  text-align: center;
  color: rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  background: rgba(0, 0, 0, 0.2);
}

.shop-trust-strip--tight {
  margin-bottom: 0.85rem;
  text-align: left;
}

.shop-trust-strip__link {
  margin-left: 0.35rem;
  color: rgba(232, 207, 106, 0.95);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.shop-trust-strip__link:hover,
.shop-trust-strip__link:focus-visible {
  color: var(--gold-bright);
  outline: none;
}

.shop-products__shop-cta {
  margin: 0 0 1.25rem;
  text-align: center;
}

.shop-products__shop-cta .shop-btn {
  min-height: 52px;
  padding-left: 1.75rem;
  padding-right: 1.75rem;
}

.shop-bank-callout {
  margin: 0 auto 1.5rem;
  max-width: 26rem;
  padding: 1.1rem 1.15rem 1.15rem;
  border-radius: 10px;
  border: 1px solid rgba(212, 175, 55, 0.45);
  background: linear-gradient(165deg, rgba(20, 45, 35, 0.55) 0%, rgba(6, 14, 26, 0.92) 100%);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}

.shop-bank-callout__title {
  font-family: "Noto Sans KR", sans-serif;
  font-size: clamp(1.05rem, 2.5vw, 1.15rem);
  font-weight: 700;
  margin: 0 0 0.85rem;
  color: rgba(232, 207, 106, 0.98);
  letter-spacing: 0.02em;
}

.shop-bank-callout__row {
  margin: 0 0 0.5rem;
  font-size: clamp(0.98rem, 2.3vw, 1.05rem);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.65rem;
}

.shop-bank-callout__row--acct {
  align-items: center;
}

.shop-bank-callout__label {
  flex: 0 0 auto;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(180, 230, 200, 0.88);
}

.shop-bank-callout__value {
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.shop-bank-callout__number {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.35rem 0.5rem;
  font-family: ui-monospace, monospace;
  font-size: clamp(0.95rem, 2.4vw, 1.05rem);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(0, 0, 0, 0.35);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.shop-bank-callout__copy {
  flex-shrink: 0;
  min-height: 44px;
  padding: 0.4rem 0.85rem;
  font-family: "Noto Sans KR", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy-deep);
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 6px;
  cursor: pointer;
}

.shop-bank-callout__copy:hover,
.shop-bank-callout__copy:focus-visible {
  filter: brightness(1.05);
  outline: 2px solid rgba(232, 207, 106, 0.45);
  outline-offset: 2px;
}

.shop-bank-callout__note {
  margin: 0.5rem 0 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
}

.shop-bank-callout__hint {
  margin: 0.75rem 0 0;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: clamp(0.88rem, 2.1vw, 0.94rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.68);
}

.shop-add-feedback--list {
  margin: 0 0 0.5rem;
}

.shop-product-grid {
  display: grid;
  gap: clamp(1.25rem, 3vw, 1.75rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  margin-top: 1.5rem;
}

.shop-product-card {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  border-radius: 10px;
  border: 1px solid rgba(212, 175, 55, 0.18);
  background: rgba(0, 0, 0, 0.22);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

.shop-product-card__media-link {
  display: block;
  margin: 0 0 1rem;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  outline-offset: 3px;
}

.shop-product-card__media-link:focus-visible {
  outline: 2px solid rgba(212, 175, 55, 0.85);
}

.shop-product-card__media-link .shop-product-card__media {
  margin: 0;
}

.shop-product-card__media {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  margin: 0 0 1rem;
  aspect-ratio: 1 / 1;
  background: rgba(0, 0, 0, 0.35);
}

.shop-product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.shop-product-card__title {
  font-family: "Noto Sans KR", sans-serif;
  font-size: clamp(1.08rem, 2.4vw, 1.22rem);
  font-weight: 700;
  margin: 0 0 0.25rem;
  color: var(--text-on-dark);
}

.shop-product-card__title-link {
  color: inherit;
  text-decoration: none;
}

.shop-product-card__title-link:hover,
.shop-product-card__title-link:focus-visible {
  color: rgba(212, 175, 55, 0.95);
  text-decoration: underline;
}

.shop-product-card__price {
  margin: 0.2rem 0 0.35rem;
  font-family: "Noto Sans KR", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(230, 240, 255, 0.95);
}

.shop-product-card__price--muted {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.92rem;
}

.shop-product-card .en-name {
  margin: 0 0 0.65rem;
  font-family: var(--font-serif-ko);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: rgba(212, 175, 55, 0.88);
}

.shop-product-card__more {
  margin: auto 0 0;
  padding-top: 0.75rem;
  font-size: 0.9rem;
}

.shop-product-card__desc {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
}

.shop-products__note {
  margin: 1.75rem 0 0;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.68);
}

/* 블로그 글 — essays.shop_product_id 로 연결된 제품 */
.essay-shop-linked {
  margin: clamp(1.75rem, 4vw, 2.5rem) auto 0;
  max-width: 48rem;
  padding: 1.25rem 1.35rem;
  border-radius: 10px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: rgba(3, 22, 14, 0.55);
  box-sizing: border-box;
}

.essay-shop-linked__inner {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .essay-shop-linked__inner {
    grid-template-columns: minmax(0, 9rem) minmax(0, 1fr);
    align-items: center;
  }
}

.essay-shop-linked__fig {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  max-width: 10rem;
  background: rgba(0, 0, 0, 0.35);
}

.essay-shop-linked__fig img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.essay-shop-linked__kicker {
  margin: 0 0 0.35rem;
  font-family: "Noto Sans KR", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(232, 207, 106, 0.88);
}

.essay-shop-linked__title {
  margin: 0 0 0.35rem;
  font-family: "Noto Sans KR", sans-serif;
  font-size: clamp(1.05rem, 2.3vw, 1.2rem);
  font-weight: 700;
  color: var(--text-on-dark);
}

.essay-shop-linked__en {
  margin: 0 0 0.5rem;
  font-size: 0.88rem;
  color: rgba(212, 175, 55, 0.9);
}

.essay-shop-linked__hint {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
}

a.essay-shop-linked__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 1rem;
  padding: 0.6rem 1.4rem;
  width: 100%;
  box-sizing: border-box;
  font-family: "Noto Sans KR", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: center;
  text-decoration: none;
  color: var(--navy-deep);
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

a.essay-shop-linked__cta:hover,
a.essay-shop-linked__cta:focus-visible {
  filter: brightness(1.05);
  outline: 2px solid rgba(232, 207, 106, 0.45);
  outline-offset: 2px;
}

/* shop/product.php 상세 */
.shop-product-detail__inner {
  max-width: 40rem;
}

.shop-product-detail__header {
  text-align: center;
  margin-bottom: 1rem;
}

.shop-product-detail__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin: 0 0 0.35rem;
}

.shop-product-detail__en {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  color: rgba(212, 175, 55, 0.9);
}

.shop-product-detail__price {
  margin: 0;
  font-family: "Noto Sans KR", sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: rgba(180, 240, 200, 0.95);
}

.shop-product-detail__price--muted {
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
  font-size: 1rem;
}

.shop-product-detail__gallery {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.shop-product-detail__fig {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.shop-product-detail__fig img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

.shop-product-detail__story-title {
  font-family: "Noto Sans KR", sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.65rem;
  color: rgba(212, 175, 55, 0.92);
  letter-spacing: 0.02em;
}

.shop-product-detail__desc {
  margin-bottom: 2rem;
  text-align: left;
  font-size: clamp(1rem, 2.5vw, 1.06rem);
  line-height: 1.75;
}

.shop-product-detail__order {
  padding-top: 0.5rem;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.shop-product-detail__order--primary {
  padding-top: 0;
  margin-bottom: 1.75rem;
  border-top: none;
  border-bottom: 1px solid rgba(212, 175, 55, 0.22);
  padding-bottom: 1.35rem;
}

.shop-product-detail__order--repeat {
  margin-top: 1.75rem;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(212, 175, 55, 0.22);
  margin-bottom: 0.5rem;
}

.shop-product-detail__order-lead {
  font-size: clamp(0.94rem, 2.3vw, 1.02rem) !important;
  color: rgba(255, 255, 255, 0.78) !important;
}

.shop-product-detail__order-title {
  font-family: "Noto Sans KR", sans-serif;
  font-size: 1.1rem;
  margin: 1rem 0 0.5rem;
}

.shop-product-detail__cart-actions {
  margin-top: 0.75rem;
}

.shop-product-detail__cart-btns {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.75rem;
  align-items: flex-start;
}

.shop-product-detail__cart-btns--primary-row {
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  max-width: 22rem;
  margin-left: auto;
  margin-right: auto;
}

.shop-product-detail__cart-btns--primary-row .shop-btn {
  min-height: 52px;
  justify-content: center;
  text-align: center;
}

.shop-product-detail__cart-btns--primary-row .shop-btn--primary {
  font-weight: 700;
  letter-spacing: 0.04em;
}

@media (min-width: 480px) {
  .shop-product-detail__cart-btns--primary-row {
    flex-direction: row;
    flex-wrap: wrap;
    max-width: none;
    justify-content: center;
    align-items: center;
  }

  .shop-product-detail__cart-btns--primary-row .shop-btn--ghost {
    flex: 1 1 11rem;
  }

  .shop-product-detail__cart-btns--primary-row .shop-btn--primary {
    flex: 1 1 12rem;
  }
}

.shop-product-card__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0.35rem 0 0.5rem;
}

.hbg-shop-qty {
  width: 4.5rem;
  max-width: 100%;
  min-height: 48px;
  padding: 0.45rem 0.55rem;
  font-size: 1.02rem;
  box-sizing: border-box;
}

.shop-landing .shop-checkout input.portfolio-inquiry-input {
  min-height: 48px;
  font-size: 1rem;
}

.shop-landing .shop-checkout textarea.portfolio-inquiry-textarea {
  min-height: 5.5rem;
  font-size: 1rem;
  line-height: 1.5;
}

.shop-landing .shop-checkout .portfolio-inquiry-actions {
  text-align: center;
  margin-top: 0.5rem;
}

.shop-landing .shop-checkout #hbg-co-submit {
  min-height: 52px;
  width: 100%;
  max-width: 22rem;
  margin-left: auto;
  margin-right: auto;
  display: block;
  font-size: 1.02rem;
  font-weight: 700;
}

.shop-add-feedback {
  margin: 0.5rem 0 0;
  font-size: 0.92rem;
  color: rgba(160, 220, 180, 0.95);
}

.nav-shop-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem;
  margin: -0.2rem;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  vertical-align: middle;
  line-height: 1;
}

.nav-shop-cart:hover,
.nav-shop-cart:focus-visible {
  color: rgba(212, 175, 55, 0.95);
  outline: none;
}

.nav-shop-cart:focus-visible {
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.45);
  border-radius: 6px;
}

.nav-shop-cart__icon {
  display: flex;
  line-height: 0;
}

.nav-shop-cart__svg {
  display: block;
}

.nav-shop-cart__badge,
.nav-shop-cart .hbg-shop-cart-n.nav-shop-cart__badge {
  position: absolute;
  top: -2px;
  right: -6px;
  min-width: 1.125rem;
  height: 1.125rem;
  padding: 0 0.22rem;
  border-radius: 999px;
  background: linear-gradient(145deg, #c9a227, #e8d48a);
  color: #0a1628;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.125rem;
  text-align: center;
  box-sizing: border-box;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.nav-shop-cart__badge[hidden],
.nav-shop-cart .hbg-shop-cart-n[hidden] {
  display: none !important;
}

.shop-checkout__lines {
  margin: 1rem 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.shop-checkout__line {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.15);
}

.shop-checkout__line-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.shop-checkout__line-title {
  font-weight: 600;
  flex: 1;
}

.shop-checkout__line-meta {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.shop-checkout__qty {
  width: 3.25rem;
  padding: 0.25rem 0.35rem;
}

.shop-checkout__remove {
  flex-shrink: 0;
  background: transparent;
  border: none;
  color: rgba(255, 180, 160, 0.95);
  cursor: pointer;
  font-size: 0.85rem;
  text-decoration: underline;
}

.shop-checkout__hint {
  margin: 0 0 1rem;
  font-size: 0.88rem;
}

.shop-checkout__summary {
  margin: 0 0 1.25rem;
  padding: 1rem 1.1rem;
  border-radius: 10px;
  border: 1px solid rgba(212, 175, 55, 0.28);
  background: rgba(0, 0, 0, 0.22);
}

.shop-checkout__partial-note {
  margin: 0 0 0.65rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: rgba(255, 200, 160, 0.92);
}

.shop-checkout__grand-total {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

.shop-checkout__total-amount {
  font-size: 1.12rem;
  letter-spacing: 0.02em;
  color: rgba(212, 175, 55, 0.98);
}

.shop-checkout__deposit {
  margin: 0;
  padding: 0;
  border: none;
}

.shop-checkout__deposit-legend {
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.88);
}

.shop-checkout__deposit-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.shop-checkout__deposit-label {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.92rem;
  line-height: 1.45;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.88);
}

.shop-checkout__deposit-label input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.shop-checkout__deposit-hint {
  margin: 0.65rem 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.55);
}

.shop-checkout__line-sum {
  margin-top: 0.45rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(212, 175, 55, 0.9);
}

.shop-checkout__line-sum--muted {
  font-weight: 400;
  color: rgba(255, 255, 255, 0.55);
}

.shop-checkout-faq {
  margin-top: clamp(2rem, 5vw, 2.75rem);
  padding-top: clamp(1.25rem, 3vw, 1.75rem);
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.shop-checkout-faq__title {
  font-family: "Noto Sans KR", sans-serif;
  font-size: clamp(1rem, 2.4vw, 1.12rem);
  font-weight: 600;
  margin: 0 0 1rem;
  color: rgba(212, 175, 55, 0.92);
  letter-spacing: 0.02em;
}

.shop-checkout-faq__list {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.shop-checkout-faq__item {
  margin: 0;
}

.shop-checkout-faq__q {
  margin: 0 0 0.35rem;
  font-size: clamp(0.95rem, 2.2vw, 1.02rem);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

.shop-checkout-faq__a {
  margin: 0;
  font-size: clamp(0.92rem, 2.1vw, 0.98rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
}

.shop-product-detail__back {
  margin: 2rem 0 0;
  text-align: center;
}

.shop-section {
  padding: clamp(2.75rem, 7vw, 4.5rem) var(--space-page-x);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.shop-section__inner {
  max-width: var(--hbg-layout-max-width);
  margin: 0 auto;
}

.shop-section__title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.2vw, 1.75rem);
  font-weight: 700;
  color: var(--text-on-dark);
  margin: 0 0 1rem;
  letter-spacing: 0.03em;
}

.shop-section__lead {
  margin: 0 0 1.25rem;
  font-size: var(--text-reading-lg);
  line-height: var(--leading-reading);
  color: rgba(255, 255, 255, 0.88);
}

.shop-section__lead--tight {
  margin-bottom: 1rem;
  font-size: var(--text-reading);
}

.shop-section__body {
  margin: 0;
  font-size: var(--text-reading);
  line-height: var(--leading-reading);
  color: rgba(255, 255, 255, 0.82);
}

.shop-section__body + .shop-section__body {
  margin-top: 1rem;
}

.shop-inline-link {
  color: rgba(110, 210, 150, 0.95);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.shop-inline-link:hover,
.shop-inline-link:focus-visible {
  color: var(--gold-bright);
  outline: none;
}

.shop-story__grid {
  display: grid;
  gap: clamp(1.75rem, 5vw, 2.75rem);
  align-items: start;
}

@media (min-width: 800px) {
  .shop-story__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }
}

.shop-quote {
  margin: 1.75rem 0 0;
  padding: 1.25rem 1.35rem;
  border-left: 3px solid rgba(212, 175, 55, 0.55);
  background: rgba(0, 0, 0, 0.22);
  border-radius: 0 6px 6px 0;
}

.shop-quote p {
  margin: 0;
  font-size: clamp(1.02rem, 2.2vw, 1.12rem);
  line-height: var(--leading-reading);
  font-style: italic;
  color: rgba(255, 255, 255, 0.9);
}

.shop-quote footer {
  margin-top: 0.85rem;
  font-size: 0.88rem;
  font-style: normal;
  color: rgba(255, 255, 255, 0.55);
}

.shop-visual-card {
  min-height: 12rem;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--mission-line);
  background: linear-gradient(145deg, rgba(15, 40, 64, 0.6), rgba(5, 13, 26, 0.85));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.shop-visual-card__label {
  font-family: "Noto Sans KR", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(232, 207, 106, 0.85);
  margin: 0 0 0.75rem;
}

.shop-visual-card__hint {
  margin: 0;
  font-size: 0.95rem;
  line-height: var(--leading-reading);
  color: rgba(255, 255, 255, 0.72);
}

.shop-pulse-list {
  margin: 0 0 1.25rem;
  padding-left: 1.35rem;
  font-size: var(--text-reading);
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.85);
}

.shop-pulse-list li {
  margin-bottom: 0.5rem;
}

.shop-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.shop-steps > li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.15rem 1.25rem;
  border-radius: 6px;
  border: 1px solid rgba(61, 168, 102, 0.28);
  background: rgba(0, 0, 0, 0.18);
}

.shop-steps__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  min-width: 2.5rem;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--navy-deep);
  background: var(--gold-bright);
}

.shop-steps__title {
  display: block;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.95);
}

.shop-steps__desc {
  margin: 0.35rem 0 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.65;
}

.shop-code {
  font-family: ui-monospace, monospace;
  font-size: 0.88em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.35);
  color: rgba(232, 207, 106, 0.95);
}

.shop-channel-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15.5rem), 1fr));
}

.shop-channel-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  min-height: 5.5rem;
  padding: 1.15rem 1.25rem;
  text-decoration: none;
  border-radius: 6px;
  border: 1px solid var(--mission-line);
  background: rgba(0, 0, 0, 0.22);
  color: rgba(255, 255, 255, 0.92);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.shop-channel-tile:hover,
.shop-channel-tile:focus-visible {
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  outline: none;
}

.shop-channel-tile--accent {
  border-color: rgba(212, 175, 55, 0.45);
  background: rgba(212, 175, 55, 0.08);
}

.shop-channel-tile--muted {
  cursor: default;
  opacity: 0.85;
}

.shop-channel-tile__label {
  font-family: "Noto Sans KR", sans-serif;
  font-weight: 600;
  font-size: 1.02rem;
}

.shop-channel-tile__action {
  font-size: 0.92rem;
  color: rgba(110, 210, 150, 0.95);
}

.shop-channel-tile__hint {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.5);
}

.shop-faq__inner {
  max-width: 44rem;
}

.shop-faq-list {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.shop-faq-item {
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
  padding: 0;
}

.shop-faq-item summary {
  cursor: pointer;
  padding: 1rem 1.15rem;
  font-family: "Noto Sans KR", sans-serif;
  font-weight: 600;
  font-size: clamp(0.98rem, 2.1vw, 1.05rem);
  list-style: none;
  min-height: 48px;
  display: flex;
  align-items: center;
}

.shop-faq-item summary::-webkit-details-marker {
  display: none;
}

.shop-faq-item summary::after {
  content: "";
  margin-left: auto;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid rgba(212, 175, 55, 0.7);
  border-bottom: 2px solid rgba(212, 175, 55, 0.7);
  transform: rotate(45deg);
  transition: transform 0.2s;
}

.shop-faq-item[open] summary::after {
  transform: rotate(225deg);
}

.shop-faq-item p {
  margin: 0;
  padding: 0 1.15rem 1.1rem;
  font-size: 0.95rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.78);
}

.shop-inquiry .portfolio-inquiry-form {
  margin-top: 1.5rem;
}

.shop-bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  justify-content: center;
  padding: 2rem var(--space-page-x) 2.5rem;
  border-top: 1px solid rgba(212, 175, 55, 0.12);
}

.shop-bottom-links__a {
  font-family: "Noto Sans KR", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(110, 210, 150, 0.9);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.shop-bottom-links__a:hover,
.shop-bottom-links__a:focus-visible {
  color: var(--gold-bright);
  text-decoration: underline;
  outline: none;
}

.shop-sticky-cta {
  display: none;
  position: fixed;
  z-index: 120;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.65rem var(--space-page-x) calc(0.65rem + env(safe-area-inset-bottom, 0px));
  gap: 0.65rem;
  justify-content: center;
  flex-wrap: wrap;
  background: linear-gradient(to top, rgba(5, 9, 15, 0.97), rgba(5, 9, 15, 0.88));
  border-top: 1px solid rgba(212, 175, 55, 0.22);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.45);
}

@media (max-width: 900px) {
  .shop-sticky-cta {
    display: flex;
  }
}

.shop-sticky-cta__btn {
  flex: 1 1 8rem;
  max-width: 14rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.55rem 1rem;
  font-family: "Noto Sans KR", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: 4px;
  border: 1px solid rgba(61, 168, 102, 0.45);
  color: rgba(110, 210, 150, 0.95);
  background: rgba(0, 0, 0, 0.35);
}

.shop-sticky-cta__btn--primary {
  border-color: rgba(212, 175, 55, 0.5);
  color: var(--navy-deep);
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
}

.shop-sticky-cta__btn:hover,
.shop-sticky-cta__btn:focus-visible {
  filter: brightness(1.05);
  outline: 2px solid rgba(232, 207, 106, 0.5);
  outline-offset: 2px;
}

/* 블로그 카드 피드 — 영어·일어 제외 분류·전체 목록 (대표 1 + 2열 + 그리드) */
.essay-split--journal-feed #essay-panel-wrap {
  display: block !important;
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

.essay-split--journal-feed .essay-archive {
  display: none !important;
}

.journal-feed {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 3vw, 1.5rem);
  width: 100%;
  padding: 0.25rem 0 2rem;
}

.journal-feed-card {
  display: grid;
  grid-template-columns: 1fr;
  text-decoration: none;
  color: inherit;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.28);
  background: linear-gradient(165deg, rgba(12, 22, 38, 0.95) 0%, rgba(5, 10, 20, 0.92) 100%);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.journal-feed-card:hover,
.journal-feed-card:focus-visible {
  border-color: rgba(212, 175, 55, 0.55);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  transform: translateY(-2px);
  outline: none;
}

.journal-feed-card--hero {
  grid-template-columns: 1fr;
}

.journal-feed-card--hero .journal-feed-card__media {
  aspect-ratio: 16 / 9;
  max-height: min(52vh, 22rem);
}

.journal-feed-card--tile .journal-feed-card__media {
  aspect-ratio: 4 / 3;
  max-height: 13rem;
}

.journal-feed-card__media {
  position: relative;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.35);
}

.journal-feed-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.journal-feed-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 8rem;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 700;
  color: rgba(212, 175, 55, 0.45);
  background: radial-gradient(ellipse at 30% 20%, rgba(212, 175, 55, 0.12), transparent 55%),
    linear-gradient(145deg, rgba(8, 14, 28, 0.9), rgba(4, 8, 18, 0.95));
}

.journal-feed-card__body {
  padding: 1rem 1.15rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.journal-feed-card__title {
  margin: 0;
  font-family: "Noto Serif KR", serif;
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  font-weight: 600;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.94);
}

.journal-feed-card--hero .journal-feed-card__title {
  font-size: clamp(1.2rem, 3vw, 1.55rem);
}

.journal-feed-card__deck {
  margin: 0;
  font-family: "Noto Sans KR", sans-serif;
  font-size: 0.88rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.62);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.journal-feed-card__date {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: rgba(212, 175, 55, 0.75);
}

.journal-feed__row {
  display: grid;
  /* 좁은 화면에서도 2열 유지: 히어로 아래 두 장이 세로로 풀폭 쌓이면 한 덩어리처럼 보임 */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.5rem, 2vw, 1.1rem);
  align-items: stretch;
}

.journal-feed__row--one {
  grid-template-columns: 1fr;
  max-width: 22rem;
  margin-left: auto;
  margin-right: auto;
}

.journal-feed__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr));
  gap: clamp(0.75rem, 2vw, 1rem);
}

.journal-feed__grid .journal-feed-card--tile .journal-feed-card__title {
  font-size: 0.95rem;
}

.journal-feed__grid .journal-feed-card--tile .journal-feed-card__deck {
  font-size: 0.8rem;
  -webkit-line-clamp: 2;
}

/* 카드 모드 글 상세: 본문 아래 이어 읽기 (영어·일어 제외) */
.journal-related {
  margin-top: clamp(2rem, 5vw, 2.75rem);
  padding-top: clamp(1.25rem, 3vw, 1.75rem);
  border-top: 1px solid rgba(212, 175, 55, 0.28);
  width: 100%;
}

.journal-related__title {
  margin: 0 0 1rem;
  font-family: "Noto Sans KR", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(212, 175, 55, 0.88);
}

.journal-feed--related {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr));
  gap: clamp(0.75rem, 2vw, 1rem);
  padding-bottom: 0.5rem;
}

.journal-feed-card--current {
  border-color: rgba(212, 175, 55, 0.62);
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.28), 0 12px 36px rgba(0, 0, 0, 0.38);
}

@media (max-width: 640px) {
  .journal-feed__row:not(.journal-feed__row--one) {
    gap: 0.5rem;
  }

  .journal-feed-card--tile .journal-feed-card__media {
    max-height: 10.5rem;
    aspect-ratio: 1 / 1;
  }

  .journal-feed-card--tile .journal-feed-card__body {
    padding: 0.65rem 0.75rem 0.85rem;
  }

  .journal-feed-card--tile .journal-feed-card__title {
    font-size: 0.92rem;
    line-height: 1.3;
  }
}
