* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Noto Sans KR', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}
h1, h2, h3 { font-family: 'Noto Serif KR', serif; color: var(--heading); }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 680px; }

/* ---------- Theme variables ---------- */
body.theme-warm {
  --bg: #fdf8f5;
  --bg-alt: #f6ece5;
  --text: #4a3f3a;
  --heading: #3a2c26;
  --accent: #c17a5f;
  --accent-dark: #a45f45;
  --accent-soft: #f7ebe4;
  --muted: #8a7a72;
  --border: #e8d9d0;
  --card-bg: #ffffff;
}
body.theme-elegant {
  --bg: #ffffff;
  --bg-alt: #f7f6f3;
  --text: #333333;
  --heading: #1f1f1f;
  --accent: #b08d57;
  --accent-dark: #8f6f3f;
  --accent-soft: #f5efe3;
  --muted: #77746c;
  --border: #e5e2da;
  --card-bg: #fbfaf7;
}
body.theme-nature {
  --bg: #f6f5ef;
  --bg-alt: #ebe7d9;
  --text: #3f4238;
  --heading: #2e3327;
  --accent: #6b8f5e;
  --accent-dark: #4f6e45;
  --accent-soft: #ecf1e7;
  --muted: #777a6c;
  --border: #dcd8c4;
  --card-bg: #ffffff;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo { font-family: 'Noto Serif KR', serif; font-size: 1.3rem; font-weight: 700; color: var(--heading); }
.nav { display: flex; gap: 28px; align-items: center; font-size: 0.95rem; }
.nav a:hover { color: var(--accent); }
.admin-link { opacity: 0.6; font-size: 0.85rem; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--bg-alt), var(--bg));
  padding: 100px 0;
  text-align: center;
}
.hero h1 { font-size: 2.4rem; margin: 0 0 16px; }
.hero p { font-size: 1.15rem; margin: 0 0 32px; color: var(--text); opacity: 0.85; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-outline { background: transparent; border-color: var(--accent); color: var(--accent-dark); }
.btn-outline:hover { background: var(--bg-alt); }
.btn-danger { background: #b3423a; color: #fff; }
.btn-danger:hover { background: #8f312a; }
.btn-small { padding: 8px 16px; font-size: 0.85rem; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section h2 { font-size: 1.7rem; margin-bottom: 24px; }
.message-section { background: var(--bg); }
.culture-section { background: var(--bg-alt); }
.products-section { background: var(--bg); }
.contact-cta { background: var(--bg-alt); text-align: center; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }

.prose { white-space: pre-wrap; font-size: 1.02rem; }

/* ---------- Product grid ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}
.product-card, .admin-product-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.product-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.product-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
  color: var(--text);
  opacity: 0.5;
  font-size: 0.9rem;
}
.pdf-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
  color: var(--accent-dark);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}
.pdf-badge:hover { text-decoration: underline; }
.startup-slide-pdf { height: 180px; }
.product-body { padding: 20px; }
.product-body h3 { margin: 0 0 10px; font-size: 1.15rem; }
.product-body p { margin: 0; font-size: 0.95rem; opacity: 0.85; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--heading);
  color: #f4efec;
  padding: 40px 0;
  text-align: center;
  font-size: 0.9rem;
}
.site-footer a { text-decoration: underline; }
.footer-title { font-family: 'Noto Serif KR', serif; font-size: 1.1rem; margin: 0 0 10px; }
.footer-copy { opacity: 0.6; margin-top: 12px; }

/* ---------- Forms ---------- */
.board-form { display: flex; flex-direction: column; gap: 18px; margin-top: 20px; }
.board-form label { display: flex; flex-direction: column; gap: 8px; font-size: 0.92rem; }
.board-form input[type=text],
.board-form input[type=email],
.board-form input[type=password],
.board-form input[type=file],
.board-form textarea {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.98rem;
  font-family: inherit;
  background: var(--card-bg);
  color: var(--text);
}
.checkbox-row { flex-direction: row !important; align-items: center; gap: 10px !important; }
.form-actions { display: flex; gap: 12px; margin-top: 8px; }
.form-error { color: #b3423a; background: #fbeceb; border: 1px solid #f0c9c6; padding: 10px 14px; border-radius: 8px; }
.form-success { color: #3f6b47; background: #eaf3ec; border: 1px solid #c9e0cd; padding: 10px 14px; border-radius: 8px; }

/* ---------- Board table ---------- */
.board-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.board-guide { opacity: 0.7; font-size: 0.9rem; margin-bottom: 24px; }
.board-table { width: 100%; border-collapse: collapse; }
.board-table th, .board-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 0.93rem;
}
.board-table th { color: var(--heading); font-weight: 600; background: var(--bg-alt); }
.col-id, .col-date, .col-author, .col-action { width: 110px; text-align: center; }
.col-title a:hover { color: var(--accent-dark); }
.lock { margin-right: 6px; }
.board-empty { text-align: center; opacity: 0.6; padding: 40px 0; }

.post-meta { display: flex; gap: 16px; opacity: 0.6; font-size: 0.88rem; margin-bottom: 24px; }
.post-content { min-height: 120px; margin-bottom: 24px; }

.board-reply-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  vertical-align: middle;
}
.board-reply {
  background: var(--bg-alt);
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 24px;
}
.board-reply-label { margin: 0 0 8px; font-weight: 600; color: var(--accent-dark); font-size: 0.9rem; }
.board-reply-date { margin: 10px 0 0; font-size: 0.78rem; opacity: 0.6; }
.board-reply-form { margin-bottom: 24px; }

/* ---------- Login ---------- */
.login-section { padding: 120px 0; }

/* ---------- Error pages (404 / 500) ---------- */
.error-page { text-align: center; padding: 60px 0; }
.error-code {
  font-family: 'Noto Serif KR', serif;
  font-size: 4rem;
  line-height: 1;
  margin: 0 0 12px;
  color: var(--accent);
  opacity: 0.35;
}
.error-actions { justify-content: center; margin-top: 28px; }
.login-box { text-align: left; }

/* ---------- Admin tabs ---------- */
.admin-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
.admin-tab-btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 12px 6px;
  margin-right: 18px;
  font-size: 1rem;
  font-family: 'Noto Serif KR', serif;
  color: var(--text);
  opacity: 0.55;
  cursor: pointer;
}
.admin-tab-btn:hover { opacity: 0.85; }
.admin-tab-btn.active { opacity: 1; color: var(--accent-dark); border-bottom-color: var(--accent); }
.admin-tab-panel { display: none; }
.admin-tab-panel.active { display: block; }

/* ---------- Admin ---------- */
.divider { border: none; border-top: 1px solid var(--border); margin: 48px 0; }
.theme-form { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 20px; }
.theme-option {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 16px; cursor: pointer; font-size: 0.9rem;
}
.theme-swatch { width: 20px; height: 20px; border-radius: 50%; display: inline-block; }
.theme-swatch-warm { background: #c17a5f; }
.theme-swatch-elegant { background: #b08d57; }
.theme-swatch-nature { background: #6b8f5e; }
.admin-product-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin: 24px 0 40px; }
.backup-restore-title { margin-top: 36px; }
.branding-preview {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  margin: 12px 0;
  display: flex;
  justify-content: center;
}
.branding-preview-img { max-height: 100px; max-width: 100%; object-fit: contain; }
.board-guide code { background: var(--bg-alt); padding: 2px 6px; border-radius: 4px; font-size: 0.85em; }
.image-form { display: flex; gap: 8px; align-items: center; margin-top: 14px; }
.image-form input[type=file] { font-size: 0.8rem; flex: 1; }
.product-edit-form { margin-top: 4px; gap: 12px; }
.product-edit-form input[type=file] { font-size: 0.8rem; }
.inline-form { display: inline-block; margin-top: 10px; }
.link-button { background: none; border: none; color: inherit; cursor: pointer; font: inherit; opacity: 0.7; }
.link-button:hover { opacity: 1; }

/* ---------- Hero / decoration images ---------- */
.hero { position: relative; overflow: hidden; }
.hero-inner { position: relative; z-index: 2; }
.hero-decor {
  position: absolute;
  bottom: -18px;
  width: 150px;
  max-height: 220px;
  object-fit: contain;
  object-position: bottom;
  z-index: 1;
  pointer-events: none;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.08));
}
.hero-decor-left { left: -12px; }
.hero-decor-right { right: -12px; transform: scaleX(-1); }

.cta-decor { width: 92px; max-height: 130px; object-fit: contain; margin: 0 auto 18px; display: block; }

@media (max-width: 860px) {
  .hero-decor { width: 108px; }
}
@media (max-width: 600px) {
  .hero-decor { display: none; }
}

/* ---------- Logo ---------- */
.logo { display: flex; align-items: center; gap: 10px; }
.logo-image { height: 34px; width: auto; object-fit: contain; }
.footer-logo { height: 40px; width: auto; object-fit: contain; margin: 0 auto 12px; display: block; }
.login-logo { height: 44px; width: auto; object-fit: contain; margin: 0 auto 20px; display: block; }

/* ---------- Confirm modal ---------- */
.confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.confirm-box {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 28px;
  max-width: 320px;
  width: 90%;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}
.confirm-message { margin: 0 0 20px; font-size: 0.98rem; color: var(--text); }
.confirm-actions { display: flex; justify-content: flex-end; gap: 10px; }

@media (max-width: 640px) {
  .nav { gap: 14px; font-size: 0.85rem; }
  .hero { padding: 64px 0; }
  .hero h1 { font-size: 1.8rem; }
  .board-table th, .board-table td { font-size: 0.82rem; padding: 10px 6px; }
  .col-date { display: none; }
}

/* ---------- Memorial pages ---------- */
.memorial-hero { background: var(--bg-alt); }
.featured-section { padding-top: 0; }
.featured-badge { text-align: center; opacity: 0.7; font-size: 0.9rem; margin-bottom: 10px; }
.featured-card {
  display: block;
  background: var(--card-bg);
  border: 1px solid var(--accent);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}
.featured-card h3 { margin: 0 0 6px; }
.featured-nickname { margin: 0; opacity: 0.7; font-size: 0.9rem; }

.memorial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.memorial-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: block;
}
.memorial-card-image { width: 100%; height: 160px; object-fit: cover; display: block; }
.memorial-card-body { padding: 16px; }
.memorial-card-body h3 { margin: 0 0 6px; font-size: 1.05rem; }
.memorial-card-nickname { margin: 0 0 4px; font-size: 0.85rem; opacity: 0.75; }
.memorial-card-rating { margin: 0; font-size: 0.85rem; }

.album-header { display: flex; align-items: center; gap: 12px; }
.album-visibility-badge {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
}
.album-visibility-badge.is-public { color: var(--accent-dark); border-color: var(--accent); }
.album-visibility-badge.is-private { opacity: 0.6; }
.album-profile-form { margin-top: 16px; }
.album-rating-row { margin: 20px 0; }
.album-rating-static { opacity: 0.75; font-size: 0.9rem; }
.album-section-title { margin-top: 40px; }

.bloom-timeline { display: flex; flex-direction: column; gap: 16px; margin-top: 20px; }
.bloom-entry {
  display: flex;
  gap: 16px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.bloom-entry-image { width: 140px; height: 140px; object-fit: cover; flex-shrink: 0; }
.bloom-entry-body { padding: 14px 16px; flex: 1; }
.bloom-entry-edit-form { gap: 10px; margin-bottom: 10px; }
.bloom-entry-edit-form textarea { font-size: 0.9rem; }
.bloom-entry-date { margin: 0 0 6px; font-size: 0.8rem; opacity: 0.6; }

.comment-list { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
.comment-item {
  background: var(--bg-alt);
  border-radius: 10px;
  padding: 14px 16px;
}
.comment-meta { margin: 0 0 6px; font-size: 0.85rem; }
.comment-meta span { opacity: 0.6; margin-left: 8px; }
.comment-content { margin: 0 0 8px; white-space: pre-wrap; }

@media (max-width: 640px) {
  .bloom-entry { flex-direction: column; }
  .bloom-entry-image { width: 100%; height: 180px; }
}

/* ---------- Admin: visit stats ---------- */
.stats-summary { display: flex; gap: 16px; margin: 20px 0; flex-wrap: wrap; }
.stats-card {
  background: var(--bg-alt);
  border-radius: 10px;
  padding: 18px 28px;
  text-align: center;
  min-width: 120px;
}
.stats-number { font-size: 1.8rem; font-weight: 700; margin: 0; font-family: 'Noto Serif KR', serif; color: var(--accent-dark); }
.stats-label { margin: 4px 0 0; font-size: 0.85rem; opacity: 0.7; }
.round-edit-form { margin-top: 16px; }

/* ---------- Startup story (모두의창업) ---------- */
.startup-fab {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 400;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--card-bg);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 10px 18px 10px 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  font-size: 0.85rem;
  color: var(--text);
  animation: startup-float 3s ease-in-out infinite;
}
.startup-fab:hover { color: var(--accent-dark); }
.startup-fab-icon { font-size: 1.3rem; }
@keyframes startup-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@media (max-width: 640px) {
  .startup-fab { right: 12px; bottom: 12px; font-size: 0.78rem; padding: 8px 14px 8px 10px; }
}

.startup-hero { text-align: center; padding: 56px 0 24px; }
.startup-slides {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 8px 0 20px;
  scroll-snap-type: x mandatory;
}
.startup-slide {
  flex: 0 0 auto;
  width: 280px;
  scroll-snap-align: start;
  border-radius: 12px;
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--border);
}
.startup-slide img { width: 100%; height: 180px; object-fit: cover; display: block; }
.startup-slide-caption { padding: 10px 14px; font-size: 0.85rem; }

.round-tabs { display: flex; gap: 8px; flex-wrap: wrap; border-bottom: 1px solid var(--border); margin: 24px 0; }
.round-tab-btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 12px 6px;
  margin-right: 18px;
  font-size: 1rem;
  font-family: 'Noto Serif KR', serif;
  color: var(--text);
  opacity: 0.55;
  cursor: pointer;
}
.round-tab-btn:hover { opacity: 0.85; }
.round-tab-btn.active { opacity: 1; color: var(--accent-dark); border-bottom-color: var(--accent); }
.round-tab-panel { display: none; }
.round-tab-panel.active { display: block; }
.round-status-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin: 20px 0; }
.round-status-item {
  background: var(--bg-alt);
  border-radius: 10px;
  padding: 16px;
  text-align: center;
}
.round-status-item p:first-child { margin: 0 0 6px; font-size: 0.8rem; opacity: 0.7; }
.round-status-item p:last-child { margin: 0; font-weight: 600; font-family: 'Noto Serif KR', serif; }

/*
 * ---------- Layout structures ----------
 * Rule of thumb for every layout variant below: only ever adjust
 * max-width, padding, text-align, flex/grid direction, or add margin
 * to elements that do NOT also carry the shared `.wrap` class (which
 * owns the page's `margin: 0 auto` centering). Never set `margin` on
 * `.wrap` itself or on an element combining `.wrap` with another
 * class — that previously broke the magazine hero by cancelling its
 * centering. Sticking to this keeps every layout safe at any
 * viewport width without extra media queries.
 */

/* ----- magazine: left-aligned, editorial list ----- */
body.layout-magazine .section h2,
body.layout-magazine .hero h1,
body.layout-magazine .hero p {
  text-align: left;
}
body.layout-magazine .hero { text-align: left; }
body.layout-magazine .hero-inner { max-width: 640px; padding-left: 12px; border-left: 4px solid var(--accent); }
body.layout-magazine .contact-cta { text-align: left; }
body.layout-magazine .contact-cta .wrap { max-width: 640px; }
body.layout-magazine .cta-decor { margin: 0 0 18px; }
body.layout-magazine .cta-buttons { justify-content: flex-start; }
body.layout-magazine .product-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
body.layout-magazine .product-card {
  display: flex;
  align-items: stretch;
  border-left: 4px solid var(--accent);
}
body.layout-magazine .product-image { width: 200px; height: auto; flex-shrink: 0; }
body.layout-magazine .product-image-placeholder { width: 200px; }
body.layout-magazine .product-body { display: flex; flex-direction: column; justify-content: center; }
body.layout-magazine .board-table { border: 1px solid var(--border); }
@media (max-width: 640px) {
  body.layout-magazine .product-card { flex-direction: column; }
  body.layout-magazine .product-image, body.layout-magazine .product-image-placeholder { width: 100%; }
}

/* ----- focus: narrow centered column, minimal & editorial ----- */
body.layout-focus .hero { padding: 128px 0; }
body.layout-focus .hero-inner { max-width: 600px; margin: 0 auto; }
body.layout-focus .hero h1 { font-size: 2.6rem; letter-spacing: -0.01em; }
body.layout-focus .section .wrap { max-width: 720px; }
body.layout-focus .section h2 { font-size: 1.5rem; text-align: center; }
body.layout-focus .message-section .prose,
body.layout-focus .culture-section .prose { text-align: center; }
body.layout-focus .product-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 480px;
  margin: 0 auto;
}
body.layout-focus .product-card { border: none; border-top: 1px solid var(--border); border-radius: 0; text-align: center; }
body.layout-focus .product-image, body.layout-focus .product-image-placeholder { height: 200px; }
@media (max-width: 640px) {
  body.layout-focus .hero { padding: 80px 0; }
  body.layout-focus .hero h1 { font-size: 1.9rem; }
}

/* ========== Phase 1: 모바일 내비 · 제품 상세 · 홈 신규 섹션 ========== */

/* ---------- 모바일 내비게이션 ---------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;   /* 최소 터치 타깃 44x44 */
  height: 44px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 auto;
  background: var(--heading);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
body.nav-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .header-inner { position: relative; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    display: none;
  }
  body.nav-open .nav { display: flex; }
  .nav a {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    font-size: 1rem;
  }
}

/* ---------- 공통 유틸 ---------- */
.fine-print { font-size: 0.85rem; opacity: 0.65; margin-top: 20px; }
.section-cta { justify-content: center; margin-top: 32px; }
.is-todo { opacity: 0.55; }
.text-link { color: var(--accent-dark); text-decoration: underline; font-size: 0.92rem; }

/* ---------- 홈: 유골이 흙이 되는 과정 ---------- */
.how-section { background: var(--bg-alt); }
.how-steps {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
}
.how-step-num {
  display: block;
  font-family: "Noto Serif KR", serif;
  font-size: 1.6rem;
  color: var(--accent);
  opacity: 0.5;
  margin-bottom: 10px;
}
.how-step-title { font-family: "Noto Serif KR", serif; font-size: 1.1rem; margin: 0 0 8px; color: var(--heading); }
.how-step-body { margin: 0; font-size: 0.95rem; opacity: 0.85; }

/* ---------- 홈: 3단 비교 ---------- */
.compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 28px;
}
.compare-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
}
.compare-card.is-ours { border-color: var(--accent); }
.compare-card h3 { margin: 0 0 12px; font-size: 1.05rem; }
.compare-card p { margin: 0; font-size: 0.95rem; opacity: 0.85; }

/* ---------- 제품 상세 ---------- */
.product-hero { background: linear-gradient(180deg, var(--bg-alt), var(--bg)); text-align: center; padding: 96px 0 72px; }
.product-hero h1 { font-size: 2.1rem; margin: 0 0 16px; }
.product-hero-sub { font-size: 1.08rem; opacity: 0.85; margin: 0; }

/* 층 도식: JSON은 아래층부터, 화면은 위층부터 보이도록 뒤집는다 */
.layer-diagram {
  display: flex;
  flex-direction: column-reverse;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 28px;
}
.layer-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 24px;
  border-top: 1px solid var(--border);
  background: var(--card-bg);
}
.layer-row:last-child { border-top: none; }
.layer-reservoir { background: var(--bg-alt); }
.layer-index {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.layer-name { font-family: "Noto Serif KR", serif; margin: 0 0 6px; color: var(--heading); }
.layer-desc { margin: 0; font-size: 0.95rem; opacity: 0.85; }
.layer-spec { margin: 8px 0 0; font-size: 0.85rem; opacity: 0.7; }

/* 타임라인 */
.timeline { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; }
.timeline-item { background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; padding: 24px 20px; }
.timeline-label { margin: 0 0 8px; font-size: 0.82rem; color: var(--accent-dark); }
.timeline-title { font-family: "Noto Serif KR", serif; margin: 0 0 10px; color: var(--heading); }
.timeline-desc { margin: 0; font-size: 0.92rem; opacity: 0.85; }
.timeline-note { margin-top: 24px; font-size: 0.95rem; opacity: 0.8; }

/* 사용 방법 */
.howto-list { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-direction: column; gap: 20px; }
.howto-item { display: flex; gap: 18px; align-items: flex-start; }
.howto-num {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  color: var(--accent-dark);
  font-family: "Noto Serif KR", serif;
  display: flex;
  align-items: center;
  justify-content: center;
}
.howto-title { font-family: "Noto Serif KR", serif; margin: 4px 0 6px; color: var(--heading); }
.howto-body { margin: 0 0 6px; font-size: 0.95rem; opacity: 0.85; }

/* 식물 */
.plant-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-top: 28px; }
.plant-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; padding: 24px 20px; }
.plant-card-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.plant-card-head h3 { margin: 0; font-size: 1.05rem; }
.plant-badge { font-size: 0.72rem; padding: 3px 9px; border-radius: 999px; background: var(--accent); color: #fff; }
.plant-meaning { margin: 0 0 14px; font-size: 0.92rem; opacity: 0.85; }
.plant-spec { margin: 0; font-size: 0.86rem; }
.plant-spec > div { display: flex; gap: 8px; padding: 4px 0; border-top: 1px solid var(--border); }
.plant-spec dt { opacity: 0.6; min-width: 52px; margin: 0; }
.plant-spec dd { margin: 0; }

/* FAQ 아코디언 */
.faq-list { margin-top: 28px; border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  cursor: pointer;
  padding: 20px 28px 20px 0;
  font-family: "Noto Serif KR", serif;
  color: var(--heading);
  list-style: none;
  position: relative;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 18px;
  font-size: 1.2rem;
  color: var(--accent);
}
.faq-item[open] .faq-q::after { content: "\2212"; }
.faq-a { margin: 0 0 22px; font-size: 0.95rem; opacity: 0.85; line-height: 1.75; }

/* 구성·가격 */
.package-spec { margin: 28px 0 0; text-align: left; }
.package-spec > div { display: flex; gap: 16px; padding: 16px 0; border-top: 1px solid var(--border); }
.package-spec dt { min-width: 74px; margin: 0; opacity: 0.6; font-size: 0.9rem; }
.package-spec dd { margin: 0; }
.package-items { margin: 0; padding-left: 18px; }

/* about / footer */
.about-body { font-size: 1.05rem; opacity: 0.85; }
.footer-tagline { opacity: 0.75; margin: 4px 0 12px; }

/* ---------- 접근성: 포커스 링과 모션 축소 ---------- */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent-dark);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 640px) {
  .product-hero { padding: 64px 0 48px; }
  .product-hero h1 { font-size: 1.6rem; }
  .layer-row { padding: 18px 16px; }
}

/* ---------- 정책 문서 (개인정보 · 약관 · 운영 원칙) ---------- */
.policy-page { padding-top: 48px; }
.policy-page h1 { font-size: 1.8rem; margin: 0 0 12px; }
.policy-page h2 { font-size: 1.12rem; margin: 0 0 10px; }

.policy-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.policy-tab {
  padding: 10px 14px;
  font-size: 0.9rem;
  border-bottom: 2px solid transparent;
  opacity: 0.6;
}
.policy-tab:hover { opacity: 0.9; }
.policy-tab.active { opacity: 1; color: var(--accent-dark); border-bottom-color: var(--accent); }

.policy-date { font-size: 0.85rem; opacity: 0.6; margin: 0 0 24px; }
.policy-notice {
  font-size: 0.85rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  margin: 0 0 24px;
  opacity: 0.85;
}
.policy-intro { font-size: 1rem; line-height: 1.85; margin: 0 0 36px; }

.policy-section { margin-bottom: 32px; }
.policy-section p { margin: 0; font-size: 0.95rem; line-height: 1.85; opacity: 0.9; }
.policy-muted { opacity: 0.7; }

.policy-list { margin: 0; padding-left: 18px; font-size: 0.95rem; line-height: 1.9; }
.policy-list li { margin-bottom: 8px; }

.policy-dl { margin: 0; font-size: 0.93rem; }
.policy-dl > div {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
}
.policy-dl dt { min-width: 120px; margin: 0; opacity: 0.6; }
.policy-dl dd { margin: 0; }

/* 표는 좁은 화면에서 가로로만 스크롤되고 페이지 전체는 밀리지 않게 */
.table-scroll { overflow-x: auto; margin-bottom: 36px; }
.policy-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 560px; }
.policy-table th, .policy-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.policy-table thead th { background: var(--bg-alt); color: var(--heading); font-weight: 600; }
.policy-table tbody th { font-weight: 600; color: var(--heading); white-space: nowrap; }

.policy-operator { border-top: 1px solid var(--border); padding-top: 28px; }

/* 푸터 정책 링크 */
.footer-policy {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 14px 0 6px;
  font-size: 0.85rem;
}
.footer-policy a { opacity: 0.85; }
.footer-policy a:hover { opacity: 1; }

@media (max-width: 640px) {
  .policy-dl > div { flex-direction: column; gap: 4px; }
  .policy-dl dt { min-width: 0; }
}

/* ========== Phase 2: 추모 공간 개방 · 헌화 · 가든 기록 ========== */

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

/* ---------- 목록 ---------- */
.memorial-sub { font-size: 1.05rem; opacity: 0.85; margin: 0 0 28px; }
.memorial-login-hint { font-size: 0.88rem; opacity: 0.7; margin-top: 18px; }

.sort-tabs { display: flex; gap: 4px; }
.sort-tab {
  font-size: 0.85rem;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  opacity: 0.7;
}
.sort-tab.active { opacity: 1; border-color: var(--accent); color: var(--accent-dark); }

/* 카드마다 아이의 대표 색을 띠로 얹는다 */
.memorial-card { position: relative; }
.memorial-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--pet-color, var(--accent));
  z-index: 1;
}
.memorial-card-blank {
  background: linear-gradient(160deg, var(--pet-color, var(--bg-alt)), var(--bg-alt));
  opacity: 0.45;
}
.memorial-card-meta { margin: 0 0 6px; font-size: 0.85rem; opacity: 0.7; }
.memorial-card-anniv { margin: 6px 0 0; font-size: 0.82rem; color: var(--accent-dark); }

/* ---------- 공간 만들기 폼 ---------- */
.field-help { display: block; font-size: 0.82rem; opacity: 0.6; font-weight: 400; margin-top: 2px; }

.color-field { border: none; padding: 0; margin: 0; }
.color-field legend { font-size: 0.92rem; padding: 0; margin-bottom: 10px; }
.color-options { display: flex; flex-wrap: wrap; gap: 10px; }
.color-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.85rem;
}
.color-option input { position: absolute; opacity: 0; width: 0; height: 0; }
.color-option:has(input:checked) { border-color: var(--accent); background: var(--bg-alt); }
.color-option:has(input:focus-visible) { outline: 2px solid var(--accent-dark); outline-offset: 2px; }
.color-swatch { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0,0,0,0.08); }

/* ---------- 공간 상세 ---------- */
.album-page { padding: 48px 0 72px; }
.album-created { margin-bottom: 28px; }

.album-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}
.album-headline { flex: 1; min-width: 0; }
.album-color-dot {
  flex-shrink: 0;
  width: 14px; height: 14px;
  margin-top: 12px;
  border-radius: 50%;
  background: var(--pet-color, var(--accent));
}
.album-title { font-size: 1.7rem; margin: 0 0 8px; }
.album-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; font-size: 0.9rem; opacity: 0.7; }
.album-meta span + span::before { content: "· "; opacity: 0.5; }

.album-anniversary {
  background: var(--bg-alt);
  border-left: 3px solid var(--pet-color, var(--accent));
  padding: 14px 18px;
  border-radius: 0 8px 8px 0;
  margin: 0 0 28px;
  font-size: 0.95rem;
}

.album-intro { margin: 0 0 32px; }

/* 헌화 */
.album-flower {
  text-align: center;
  padding: 28px 20px;
  background: var(--bg-alt);
  border-radius: 12px;
  margin-bottom: 32px;
}
.flower-count { margin: 0 0 16px; font-family: "Noto Serif KR", serif; font-size: 1.05rem; color: var(--heading); }
.flower-done { margin: 0; font-size: 0.9rem; opacity: 0.65; }
.flower-btn { background: var(--pet-color, var(--accent)); border-color: transparent; color: #3a2c26; }
.flower-btn:hover { filter: brightness(0.95); background: var(--pet-color, var(--accent)); }

.album-edit { margin-bottom: 32px; }
.album-edit > summary { cursor: pointer; font-size: 0.9rem; opacity: 0.7; padding: 8px 0; }
.album-edit > summary:hover { opacity: 1; }
.share-link code { display: inline-block; margin-top: 6px; word-break: break-all; font-size: 0.8rem; }

.album-section { margin-bottom: 48px; }
.album-section > h2 { font-size: 1.2rem; margin-bottom: 20px; }
.garden-add { margin-bottom: 32px; padding-bottom: 28px; border-bottom: 1px solid var(--border); }

/* ---------- 가든 기록 타임라인 (이 서비스의 감정적 핵심) ---------- */
.garden-timeline { list-style: none; margin: 0; padding: 0; position: relative; }
/* 세로 줄기 */
.garden-timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--pet-color, var(--accent)), var(--border));
  opacity: 0.45;
}
.garden-item { display: flex; gap: 20px; padding-bottom: 36px; }
.garden-item:last-child { padding-bottom: 0; }
.garden-marker { flex-shrink: 0; width: 16px; display: flex; justify-content: center; padding-top: 6px; }
.garden-dot {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--pet-color, var(--accent));
  position: relative;
  z-index: 1;
}
.garden-content { flex: 1; min-width: 0; }
.garden-date {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 12px;
  font-size: 0.85rem;
}
.garden-date time { color: var(--heading); font-weight: 500; }
.garden-seq { opacity: 0.5; font-size: 0.78rem; }
.garden-photo {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 12px;
  background: var(--bg-alt);
}
.garden-caption { margin: 0; font-size: 0.98rem; line-height: 1.8; white-space: pre-wrap; }
.garden-edit { margin-top: 10px; }
.garden-edit > summary { cursor: pointer; font-size: 0.82rem; opacity: 0.6; }
.garden-edit > summary:hover { opacity: 1; }

/* ---------- 위로의 한마디 ---------- */
.comment-list { list-style: none; padding: 0; }
.quick-phrases { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.quick-phrase {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.85rem;
  font-family: inherit;
  color: var(--text);
  cursor: pointer;
}
.quick-phrase:hover { border-color: var(--accent); color: var(--accent-dark); }
.comment-form { margin-top: 28px; }

@media (max-width: 640px) {
  .album-title { font-size: 1.35rem; }
  .garden-item { gap: 14px; }
  .garden-photo { max-height: 280px; }
  .board-head { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ---------- 문의: 자주 묻는 질문 + Q&A ---------- */
.support-sub { color: var(--muted); margin-bottom: 40px; line-height: 1.8; }
.support-block { margin-bottom: 56px; }
.support-block:last-of-type { margin-bottom: 0; }
.support-block > h2 { margin: 0 0 6px; }
.support-block-sub { margin: 0 0 20px; font-size: 0.9rem; color: var(--muted); }
.support-block .board-head { align-items: flex-end; margin-bottom: 20px; }

.qna-list { list-style: none; padding: 0; margin: 0; }
.qna-item { border-top: 1px solid var(--border); }
.qna-item:last-child { border-bottom: 1px solid var(--border); }
.qna-item > a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 18px 4px;
  text-decoration: none;
  color: var(--text);
}
.qna-item > a:hover .qna-title { color: var(--accent-dark); }
.qna-title { line-height: 1.6; }
.qna-meta { display: flex; gap: 12px; align-items: baseline; flex-shrink: 0; font-size: 0.82rem; color: var(--muted); }
.qna-status {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 9px;
  white-space: nowrap;
}
.qna-status.is-answered { border-color: var(--accent); color: var(--accent-dark); }

/* ---------- 애도 아카이브 ---------- */
.guide-sub { color: var(--muted); margin-bottom: 32px; line-height: 1.8; }
.guide-list { list-style: none; padding: 0; margin: 0; counter-reset: none; }
.guide-item { border-top: 1px solid var(--border); }
.guide-item:last-child { border-bottom: 1px solid var(--border); }
.guide-item > a {
  display: flex;
  gap: 18px;
  align-items: baseline;
  padding: 22px 4px;
  text-decoration: none;
  color: var(--text);
}
.guide-item > a:hover .guide-title { color: var(--accent-dark); }
.guide-num { font-size: 0.82rem; color: var(--muted); letter-spacing: 0.08em; flex-shrink: 0; }
.guide-text { display: flex; flex-direction: column; gap: 7px; }
.guide-title { font-size: 1.06rem; line-height: 1.6; }
.guide-summary { font-size: 0.9rem; color: var(--muted); line-height: 1.75; }

.guide-article .guide-back { margin-bottom: 18px; font-size: 0.88rem; }
.guide-article .guide-back a { color: var(--muted); text-decoration: none; }
.guide-article .guide-back a:hover { color: var(--accent-dark); }
.guide-article h1 { line-height: 1.5; margin-bottom: 28px; }
.guide-body p { margin: 0 0 1.5em; line-height: 2; font-size: 1rem; }
.guide-cta { margin: 36px 0 8px; }
.guide-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.guide-nav-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 46%;
  text-decoration: none;
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.6;
}
.guide-nav-next { text-align: right; margin-left: auto; }
.guide-nav-item:hover { color: var(--accent-dark); }
.guide-nav-label { font-size: 0.76rem; color: var(--muted); }

/* ---------- 상담 안내 ---------- */
.support-box {
  margin: 36px 0 0;
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius, 10px);
  background: var(--bg-alt);
}
.support-intro { margin: 0; font-size: 0.92rem; line-height: 1.85; color: var(--muted); }
.support-note { margin: 14px 0 0; font-size: 0.86rem; color: var(--muted); }
.support-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 12px; }
.support-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; font-size: 0.9rem; }
.support-desc, .support-contact { color: var(--muted); font-size: 0.86rem; }

.cat-badge {
  display: inline-block;
  margin-right: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  font-size: 0.72rem;
  color: var(--muted);
  white-space: nowrap;
}

/* ---------- 조용히 신고하기 ---------- */
.report-row { margin-top: 28px; }
.report-box > summary {
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--muted);
  opacity: 0.65;
  list-style: none;
}
.report-box > summary::-webkit-details-marker { display: none; }
.report-box > summary:hover { opacity: 1; color: var(--accent-dark); }
.report-box .board-form { margin-top: 14px; max-width: 460px; }
.report-done { font-size: 0.86rem; color: var(--muted); }

.tab-badge {
  display: inline-block;
  min-width: 18px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  line-height: 1.5;
}
.report-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.report-hidden-flag {
  margin-left: 6px;
  font-size: 0.72rem;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 1px 7px;
}
.report-gone { color: var(--muted); font-size: 0.88rem; }
.report-status { font-size: 0.82rem; color: var(--muted); }
.report-row-kept, .report-row-removed { opacity: 0.55; }

@media (max-width: 640px) {
  .qna-item > a { flex-direction: column; gap: 8px; }
  .guide-item > a { gap: 12px; padding: 18px 2px; }
  .guide-nav { flex-direction: column; }
  .guide-nav-item { max-width: 100%; }
  .guide-nav-next { text-align: left; margin-left: 0; }
}

/* ---------- 기념일 설정 ---------- */
.anniversary-form { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
.anniversary-form fieldset { border: none; padding: 0; margin: 0; }
.anniversary-form legend { padding: 0; font-size: 0.95rem; color: var(--heading); }
.anniversary-form input[type="date"] { font-family: inherit; }

/* ---------- 추모 공간: 함께하는 규모 ---------- */
.memorial-hero .wrap { text-align: center; }
.memorial-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0 0 14px;
  padding: 0;
}
.memorial-stat {
  min-width: 110px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card-bg);
}
.memorial-stat dt { font-size: 0.82rem; color: var(--muted); margin-bottom: 6px; }
.memorial-stat dd {
  margin: 0;
  font-family: "Noto Serif KR", serif;
  font-size: 1.7rem;
  line-height: 1.2;
  color: var(--heading);
}
.memorial-stats-note { font-size: 0.85rem; color: var(--muted); margin: 0 0 28px; }

/* 카드 다듬기 */
.memorial-grid { list-style: none; padding: 0; margin: 0; }
.memorial-card { transition: border-color 0.15s, transform 0.15s; text-decoration: none; color: var(--text); }
.memorial-card:hover { border-color: var(--pet-color, var(--accent)); transform: translateY(-2px); }
.memorial-card-blank {
  display: flex;
  align-items: center;
  justify-content: center;
}
.memorial-card-initial {
  font-family: "Noto Serif KR", serif;
  font-size: 2.4rem;
  color: var(--heading);
  opacity: 0.5;
}
.memorial-card-name { margin: 0 0 6px; font-size: 1.05rem; font-family: "Noto Serif KR", serif; }
.memorial-card-foot {
  margin: 10px 0 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.82rem;
}
.memorial-card-flowers { color: var(--muted); }
.featured-card { border-top: 4px solid var(--pet-color, var(--accent)); }

@media (max-width: 640px) {
  .memorial-stats { gap: 10px; }
  .memorial-stat { min-width: 96px; padding: 13px 14px; }
  .memorial-stat dd { font-size: 1.4rem; }
}

/* ---------- 공간 만들기: 선택 항목 접기 ---------- */
.form-lead { color: var(--muted); line-height: 1.8; margin: 0 0 28px; }
.optional-fields { border: 1px solid var(--border); border-radius: 10px; }
.optional-fields > summary {
  cursor: pointer;
  padding: 14px 16px;
  font-size: 0.9rem;
  color: var(--muted);
}
.optional-fields > summary:hover { color: var(--accent-dark); }
.optional-fields[open] > summary { border-bottom: 1px solid var(--border); }
.optional-fields-body { padding: 18px 16px 4px; display: grid; gap: 18px; }
.account-field { border: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.account-field > legend { padding: 0; font-size: 0.95rem; color: var(--heading); }
