@charset "UTF-8";
/* =========================================================================
   말씀모아 — 사용자 화면 디자인 시스템 (2025 개편)
   프레임워크 의존 없음(순수 CSS). 기존 브랜드 노란색(#fed400) 유지.
   ========================================================================= */

:root {
  --brand:        #fed400;   /* 브랜드 노랑 */
  --brand-deep:   #f5c400;   /* 진한 노랑(hover) */
  --brand-ink:    #2b2620;   /* 노랑 위 텍스트 */
  --ink:          #1f2328;   /* 본문 먹색 */
  --ink-soft:     #52606d;   /* 보조 텍스트 */
  --ink-faint:    #8a94a0;   /* 흐린 텍스트 */
  --line:         #e8ebef;   /* 경계선 */
  --line-soft:    #f1f3f6;
  --bg:           #ffffff;
  --bg-soft:      #f8f9fb;   /* 섹션 배경 */
  --bg-card:      #ffffff;
  --accent:       #b8860b;   /* 성경/링크 포인트(딥골드) */
  --danger:       #c0392b;
  --radius:       14px;
  --radius-sm:    10px;
  --radius-pill:  999px;
  --shadow:       0 1px 2px rgba(24,28,35,.04), 0 6px 20px rgba(24,28,35,.06);
  --shadow-lg:    0 8px 40px rgba(24,28,35,.12);
  --maxw:         1080px;
  --header-h:     62px;
  --font: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
          "Malgun Gothic", "맑은 고딕", "Noto Sans KR", system-ui, sans-serif;
}

/* ---------- reset ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 15px;
  letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-top: var(--header-h);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1,h2,h3,h4 { margin: 0; font-weight: 700; letter-spacing: -.02em; line-height: 1.3; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 18px; }
.section { padding: 28px 0; }
.section--soft { background: var(--bg-soft); }
.sp8{height:8px}.sp16{height:16px}.sp24{height:24px}.sp40{height:40px}

/* ---------- header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--header-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  height: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 18px;
  display: flex; align-items: center; gap: 18px;
}
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 19px; letter-spacing: -.03em; }
.brand__mark {
  width: 30px; height: 30px; border-radius: 9px; flex: 0 0 auto;
  background: var(--brand); color: var(--brand-ink);
  display: grid; place-items: center; font-size: 16px; font-weight: 900;
}
.nav { display: flex; align-items: center; gap: 2px; margin-left: 8px; }
.nav a {
  padding: 8px 13px; border-radius: var(--radius-pill);
  color: var(--ink-soft); font-weight: 600; font-size: 14.5px;
  white-space: nowrap; transition: background .15s, color .15s;
}
.nav a:hover { background: var(--bg-soft); color: var(--ink); }
.nav a.active { background: var(--brand); color: var(--brand-ink); }
.header-spacer { flex: 1; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: var(--radius-pill);
  border: 1px solid var(--line); background: var(--bg);
  display: grid; place-items: center; color: var(--ink-soft);
}
.icon-btn:hover { border-color: var(--brand); color: var(--ink); }
.icon-btn svg { width: 20px; height: 20px; }

/* hamburger */
.hamburger { display: none; }

/* mobile drawer */
.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(20,22,26,.42);
  opacity: 0; visibility: hidden; transition: .22s; z-index: 1100;
}
.drawer-backdrop.open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(82vw, 320px);
  background: var(--bg); z-index: 1101;
  transform: translateX(100%); transition: transform .26s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column; box-shadow: var(--shadow-lg);
}
.drawer.open { transform: translateX(0); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.drawer__nav { padding: 8px 10px; overflow-y: auto; }
.drawer__nav a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 14px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 16px; color: var(--ink);
}
.drawer__nav a:active, .drawer__nav a.active { background: var(--bg-soft); }
.drawer__nav a.active { color: var(--accent); }
.drawer__nav .sub a { font-size: 15px; color: var(--ink-soft); padding-left: 26px; }
.drawer__foot { margin-top: auto; padding: 16px 18px; border-top: 1px solid var(--line); }

/* ---------- hero / page title ---------- */
.page-head { padding: 30px 0 14px; }
.page-head__eyebrow { color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: .04em; }
.page-head h1 { font-size: 26px; margin-top: 4px; }
.page-head p { color: var(--ink-soft); margin-top: 6px; font-size: 14.5px; }

.hero {
  background: linear-gradient(180deg, #fffbe6 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line-soft);
}
.hero__inner { padding: 34px 0 26px; }
.hero h1 { font-size: clamp(24px, 5vw, 34px); }
.hero .tagline { color: var(--ink-soft); margin-top: 8px; font-size: 15px; }

/* ---------- search box ---------- */
.searchbar { position: relative; margin-top: 16px; }
.searchbar form { display: flex; gap: 8px; flex-wrap: wrap; }
.search-field {
  flex: 1 1 240px; position: relative; display: flex; align-items: center;
  background: var(--bg); border: 1.5px solid var(--line);
  border-radius: var(--radius-pill); padding: 0 6px 0 16px;
  transition: border-color .15s, box-shadow .15s;
}
.search-field:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(254,212,0,.18); }
.search-field svg { width: 20px; height: 20px; color: var(--ink-faint); flex: 0 0 auto; }
.search-field input {
  flex: 1; border: none; outline: none; background: transparent;
  font-size: 15.5px; padding: 13px 8px; color: var(--ink); min-width: 0;
}
.btn-search {
  background: var(--brand); color: var(--brand-ink); border: none;
  border-radius: var(--radius-pill); padding: 0 22px; font-weight: 700; font-size: 15px;
  flex: 0 0 auto; height: 48px;
}
.btn-search:hover { background: var(--brand-deep); }

/* filter chips */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.chip {
  border: 1px solid var(--line); background: var(--bg);
  color: var(--ink-soft); border-radius: var(--radius-pill);
  padding: 7px 14px; font-size: 13.5px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
}
.chip:hover { border-color: var(--brand); color: var(--ink); }
.chip.active { background: var(--brand-ink); color: #fff; border-color: var(--brand-ink); }
.chip select {
  border: none; background: transparent; font: inherit; color: inherit;
  font-weight: 600; outline: none; cursor: pointer; padding-right: 2px;
}

/* ---------- sermon list (card style, mobile-first) ---------- */
.result-meta { display: flex; align-items: baseline; justify-content: space-between; margin: 6px 0 12px; }
.result-meta .count { color: var(--ink-soft); font-size: 13.5px; }
.result-meta .count b { color: var(--ink); }

.sermon-list { display: flex; flex-direction: column; gap: 10px; }
.sermon-card {
  display: block; position: relative;
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 18px;
  transition: transform .12s, box-shadow .15s, border-color .15s;
}
.sermon-card:hover { border-color: #dfe3e8; box-shadow: var(--shadow); transform: translateY(-1px); }
.sermon-card__top { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; flex-wrap: wrap; }
.badge {
  font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: var(--radius-pill);
  letter-spacing: .01em;
}
.badge--audio { background: #eef6ff; color: #1c6fd6; }
.badge--video { background: #fdeef3; color: #c0357a; }
.badge--church { background: #fff6d6; color: #997a00; }
.sermon-card__title { font-size: 17px; font-weight: 700; color: var(--ink); line-height: 1.35; }
.sermon-card__title mark { background: #fff1a8; color: inherit; padding: 0 1px; border-radius: 3px; }
.sermon-card__bible { color: var(--accent); font-weight: 600; font-size: 13.5px; margin-top: 4px; }
.sermon-card__meta {
  display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap;
  color: var(--ink-faint); font-size: 13px; margin-top: 9px;
}
.sermon-card__meta .who { color: var(--ink-soft); font-weight: 600; }
.sermon-card__meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .5; }
.sermon-card__hit { display: inline-flex; align-items: center; gap: 4px; }
.sermon-card__hit svg { width: 14px; height: 14px; }

/* empty state */
.empty { text-align: center; padding: 60px 20px; color: var(--ink-faint); }
.empty svg { width: 46px; height: 46px; margin: 0 auto 14px; color: var(--line); }
.empty p { font-size: 15px; }

/* ---------- simple tiles (bible / church / series lists) ---------- */
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.tile {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 15px 16px;
  transition: border-color .15s, box-shadow .15s, transform .12s;
}
.tile:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-1px); }
.tile__name { font-weight: 700; font-size: 15.5px; color: var(--ink); }
.tile__cnt { font-size: 12.5px; color: var(--ink-faint); background: var(--bg-soft); padding: 3px 9px; border-radius: var(--radius-pill); font-weight: 600; }

/* ---------- pagination ---------- */
.pager { display: flex; justify-content: center; align-items: center; gap: 5px; margin: 26px 0 8px; flex-wrap: wrap; }
.pager a, .pager span {
  min-width: 40px; height: 40px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); background: var(--bg); border-radius: var(--radius-sm);
  color: var(--ink-soft); font-weight: 600; font-size: 14px;
}
.pager a:hover { border-color: var(--brand); color: var(--ink); }
.pager .current { background: var(--brand-ink); color: #fff; border-color: var(--brand-ink); }
.pager .disabled { color: var(--line); pointer-events: none; }

/* ---------- sermon detail ---------- */
.detail { max-width: 760px; margin: 0 auto; }
.detail__back { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-soft); font-weight: 600; font-size: 14px; margin: 4px 0 14px; }
.detail__back:hover { color: var(--ink); }
.detail__title { font-size: clamp(21px, 4.5vw, 27px); line-height: 1.32; }
.detail__sub { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; color: var(--ink-soft); font-size: 14px; margin-top: 10px; }
.detail__sub .who { font-weight: 700; color: var(--ink); }
.detail__actions { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 7px; justify-content: center;
  border-radius: var(--radius-pill); padding: 11px 18px; font-weight: 700; font-size: 14px;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink);
  transition: .15s;
}
.btn svg { width: 17px; height: 17px; }
.btn:hover { border-color: #d7dbe0; background: var(--bg-soft); }
.btn--brand { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn--brand:hover { background: var(--brand-deep); border-color: var(--brand-deep); }
.btn--ghost { background: transparent; }

.player { margin: 20px 0; }
.player audio { width: 100%; height: 46px; border-radius: var(--radius-pill); }

.infocard { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 18px; }
.infocard dl { margin: 0; display: grid; grid-template-columns: 96px 1fr; }
.infocard dt { background: var(--bg-soft); padding: 12px 14px; font-weight: 700; font-size: 13.5px; color: var(--ink-soft); border-bottom: 1px solid var(--line-soft); }
.infocard dd { margin: 0; padding: 12px 14px; font-size: 14.5px; border-bottom: 1px solid var(--line-soft); word-break: break-all; }
.infocard dt:last-of-type, .infocard dd:last-of-type { border-bottom: none; }

.download-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.copy-btn { font-size: 12px; padding: 5px 11px; border-radius: var(--radius-pill); border: 1px solid var(--line); background: var(--bg); color: var(--ink-soft); font-weight: 600; }
.copy-btn:hover { border-color: var(--brand); }
.filename { font-size: 12.5px; color: var(--ink-soft); word-break: break-all; }

.scripture {
  margin-top: 22px; background: var(--bg-soft); border: 1px solid var(--line-soft);
  border-left: 3px solid var(--brand); border-radius: var(--radius);
  padding: 20px 22px; line-height: 1.95; font-size: 15.5px; color: #2c333a;
}

/* toast */
.toast-wrap { position: fixed; top: calc(var(--header-h) + 12px); left: 50%; transform: translateX(-50%); z-index: 2000; display: flex; flex-direction: column; gap: 8px; width: max-content; max-width: 90vw; }
.toast { background: var(--ink); color: #fff; padding: 11px 18px; border-radius: var(--radius-pill); font-size: 14px; box-shadow: var(--shadow-lg); animation: toastin .25s ease; }
@keyframes toastin { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- support (후원) — 은은한 안내 ---------- */
.support-nudge {
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(180deg, #fffdf2, #fffaf0);
  border: 1px solid #f2e7b8; border-radius: var(--radius);
  padding: 14px 16px; margin: 22px 0;
}
.support-nudge__ic { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; }
.support-nudge__ic svg { width: 20px; height: 20px; }
.support-nudge__tx { flex: 1; font-size: 13.5px; color: var(--ink-soft); line-height: 1.5; }
.support-nudge__tx b { color: var(--ink); font-weight: 700; }
.support-nudge a.support-nudge__btn { flex: 0 0 auto; font-size: 13px; font-weight: 700; color: var(--accent); border: 1px solid #e6d68a; background: #fff; border-radius: var(--radius-pill); padding: 8px 14px; white-space: nowrap; }
.support-nudge a.support-nudge__btn:hover { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }

/* footer inline support strip */
.support-inline { text-align: center; font-size: 13px; color: var(--ink-faint); margin: 26px 0 6px; }
.support-inline a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* app download */
.app-cta { text-align: center; margin: 34px 0; }
.app-cta p { color: var(--ink-soft); font-size: 14px; margin-bottom: 12px; }
.app-cta .badges { display: inline-flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.app-cta img { height: 46px; width: auto; border-radius: 8px; }

/* about / support text pages */
.prose { max-width: 720px; margin: 0 auto; }
.prose p { color: var(--ink); font-size: 15.5px; line-height: 1.9; }
.prose .verse { color: var(--danger); font-style: normal; background: var(--bg-soft); border-radius: var(--radius-sm); padding: 14px 16px; display: block; margin-top: 16px; line-height: 1.8; }
.support-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 14px 0; text-align: center; }
.support-box h3 { font-size: 15px; color: var(--ink-soft); font-weight: 600; }
.support-box .link { display: inline-block; margin-top: 8px; font-size: 15px; color: var(--accent); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; word-break: break-all; }
.support-box .bank { font-weight: 700; font-size: 16px; margin-top: 4px; }
.note-box { background: var(--bg-soft); border-radius: var(--radius-sm); padding: 14px 16px; font-size: 13.5px; color: var(--ink-soft); line-height: 1.7; margin-top: 12px; }

/* ---------- footer ---------- */
.site-footer { background: #1c1f24; color: #aab2bd; margin-top: 46px; }
.site-footer__inner { max-width: var(--maxw); margin: 0 auto; padding: 40px 18px 26px; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.site-footer h4 { color: #fff; font-size: 14px; margin-bottom: 12px; }
.site-footer .f-brand { font-size: 20px; font-weight: 800; color: var(--brand); }
.site-footer p { font-size: 13px; line-height: 1.7; margin-top: 8px; }
.site-footer a { color: #aab2bd; }
.site-footer a:hover { color: #fff; }
.site-footer .socials { display: flex; gap: 10px; margin-top: 14px; }
.site-footer .socials a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; }
.site-footer .socials a:hover { background: var(--brand); color: var(--brand-ink); }
.site-footer .socials svg { width: 18px; height: 18px; }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,.09); margin-top: 30px; padding-top: 18px; text-align: center; font-size: 12.5px; color: #6b7480; }

/* back to top */
.to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 900;
  width: 46px; height: 46px; border-radius: 50%; background: var(--brand-ink); color: #fff;
  display: grid; place-items: center; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transition: .2s; border: none;
}
.to-top.show { opacity: 1; visibility: visible; }
.to-top svg { width: 20px; height: 20px; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .nav { display: none; }
  .hamburger { display: grid; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 22px; }
}
@media (max-width: 560px) {
  body { font-size: 14.5px; }
  .btn-search { width: 100%; }
  .search-field { flex: 1 1 100%; }
  .infocard dl { grid-template-columns: 78px 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .sermon-card__title { font-size: 16px; }
  .tile-grid { grid-template-columns: 1fr 1fr; }
  .header-actions .kakao-text { display: none; }
}
