/* 나라를 위한 기도 — ludgi 구조 스타일 */
:root {
  --bg: #eef4fc;
  --card: #fff;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --green: #059669;
  --radius: 16px;
  --shadow: 0 8px 30px rgba(17, 24, 39, 0.08);
}

* { box-sizing: border-box; }

html, body,
body h1, body h2, body h3, body h4, body h5, body h6,
body p, body a, body span, body strong, body em, body li, body label,
body button, body input, body textarea, body select {
  font-family: "Pretendard Variable", Pretendard, "Noto Sans KR", -apple-system, BlinkMacSystemFont, system-ui, sans-serif !important;
}

/* 스크롤은 되지만 스크롤바 숨김 */
html {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
html::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  scrollbar-width: none;
  -ms-overflow-style: none;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body::-webkit-scrollbar {
  display: none;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* 임베드: 푸터만 숨김, 헤더는 검색·지역별·업종별 버튼만 */
body.is-embed .lg-footer { display: none !important; }
body.is-embed #sb-collapse,
body.is-embed #sb-mobile-toggle,
body.is-embed #sb-overlay,
body.is-embed #globalTabsRoot,
body.is-embed .global-tabs {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
body.is-embed .lg-header-row--actions { display: none !important; }
body.is-embed .lg-wrap { padding-top: 0; }
body.is-embed .lg-header { display: none !important; }
body.is-embed .lg-logo { font-size: 0.92rem; }
body.is-embed .lg-hub {
  padding: 0 10px 6px;
  position: sticky !important;
  top: 0 !important;
  z-index: 80 !important;
  background: #eef4fc !important;
  background-image: none !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.24) !important;
  box-shadow: 0 1px 0 rgba(148, 163, 184, 0.24) !important;
}
body.is-embed .lg-hub-toolbar {
  justify-content: center;
  position: relative;
  z-index: 1;
}
body.is-embed .lg-hub::before {
  content: none !important;
}

.lg-header {
  background: var(--bg);
  border-bottom: none;
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 16px;
}
.lg-header--stack {
  flex-direction: column;
  align-items: stretch;
  flex-wrap: nowrap;
  gap: 8px;
}
.lg-header-row {
  display: flex;
  align-items: center;
  gap: 10px 14px;
  width: 100%;
  min-width: 0;
}
.lg-header-row--actions {
  justify-content: flex-end;
  gap: 8px;
}
.lg-header--simple {
  flex-wrap: nowrap;
  border-bottom: none;
  padding-bottom: 8px;
  position: relative;
  top: auto;
}
.lg-header-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}
.lg-header-link {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #475569 !important;
  border: 1px solid #d8dee9;
  background: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
}
.lg-header-link:hover {
  text-decoration: none !important;
  border-color: #3b82f6;
  color: #1d4ed8 !important;
}
.lg-header-link--ding {
  background: linear-gradient(148deg, #fff9c4 0%, #ffee58 30%, #ffc107 65%, #ff8f00 100%);
  border: 2px solid rgba(255, 255, 255, 0.75);
  color: #1a1208 !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
  padding: 9px 14px;
}
.lg-header-link--ding:hover {
  text-decoration: none !important;
  border-color: #ff8f00;
  color: #1a1208 !important;
  filter: brightness(1.04);
  box-shadow: 0 8px 22px rgba(255, 193, 7, 0.35);
}

/* SEO 단독(/biz) — 홈·앱 한 줄 바로가기. 앱 iframe(is-embed)에서는 숨김 */
.lg-seo-shortcuts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 8px 16px 10px;
}
body.is-embed .lg-seo-shortcuts { display: none !important; }
.lg-seo-shortcut {
  display: inline-flex;
  align-items: center;
  text-decoration: none !important;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  border-radius: 999px;
  transition: filter 0.15s ease, border-color 0.15s ease;
}
.lg-seo-shortcut--ding {
  padding: 8px 14px;
  font-size: 0.82rem;
  color: #1a1208 !important;
  background: linear-gradient(148deg, #fff9c4 0%, #ffee58 30%, #ffc107 65%, #ff8f00 100%);
  border: 2px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.lg-seo-shortcut--ding:hover {
  filter: brightness(1.04);
  text-decoration: none !important;
  color: #1a1208 !important;
}
.lg-seo-shortcut--play {
  padding: 5px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #78350f !important;
  background: #fffbeb;
  border: 1px solid #fde68a;
}
.lg-seo-shortcut--play:hover {
  background: #fef3c7;
  border-color: #fcd34d;
  text-decoration: none !important;
  color: #92400e !important;
}

/* legacy — 미사용 */
.lg-seo-funnel {
  display: none !important;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 16px 12px;
}
body.is-embed .lg-seo-funnel { display: none !important; }
.lg-seo-funnel-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px 11px 11px;
  border-radius: 14px;
  text-decoration: none !important;
  font-weight: 800;
  font-size: 14px;
  line-height: 1.25;
  border: 2px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  flex: 1 1 260px;
  max-width: 100%;
  color: #1a1208 !important;
}
.lg-seo-funnel-btn:hover { filter: brightness(1.03); text-decoration: none !important; color: #1a1208 !important; }
.lg-seo-funnel-btn--home {
  background: linear-gradient(148deg, #fff9c4 0%, #ffee58 28%, #ffc107 62%, #ff8f00 100%);
}
.lg-seo-funnel-btn--play {
  background: linear-gradient(148deg, #fffde7 0%, #ffd740 30%, #ffb300 70%, #ff8f00 100%);
}
.lg-seo-funnel-btn img {
  width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 2px solid #fff;
}
.lg-seo-funnel-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.lg-seo-funnel-text small { font-size: 0.78rem; font-weight: 700; opacity: 0.9; }
.lg-seo-funnel-play-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(145deg, #2d2a26, #1a1208);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.lg-seo-funnel-play-icon::after {
  content: ''; width: 0; height: 0;
  border-top: 7px solid transparent; border-bottom: 7px solid transparent; border-left: 11px solid #ffc107;
  margin-left: 3px;
}

/* 허브 — 종류 1개 드롭다운 */
.lg-hub {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px 8px;
  background: var(--bg);
  border-bottom: none;
  position: sticky;
  top: 0;
  z-index: 49;
}
/* 허브 — 종류 1개 드롭다운 */
.lg-hub--minimal {
  padding: 6px 16px 8px;
}
.lg-hub-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.lg-hub-home-btn {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 8px;
  border: 2px solid #fff;
  background: #fff;
  color: #475569 !important;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none !important;
  box-shadow: 0 2px 8px rgba(17, 24, 39, 0.06);
  white-space: nowrap;
}
.lg-hub-home-btn:hover {
  border-color: #bfdbfe;
  color: #1d4ed8 !important;
  text-decoration: none !important;
}
.lg-hub-rank-btn {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 8px;
  border: 2px solid #fff;
  background: #fff;
  color: #1d4ed8 !important;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none !important;
  box-shadow: 0 2px 8px rgba(17, 24, 39, 0.06);
  white-space: nowrap;
}
.lg-hub-rank-btn:hover,
.lg-hub-rank-btn.is-active {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8 !important;
  text-decoration: none !important;
}
.lg-kind-picker {
  position: relative;
  display: inline-block;
}
.lg-kind-picker > summary {
  list-style: none;
  cursor: pointer;
}
.lg-kind-picker > summary::-webkit-details-marker { display: none; }
.lg-kind-picker-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 2px solid #fff;
  background: #fff;
  color: #1e293b;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  user-select: none;
  box-shadow: 0 2px 8px rgba(17, 24, 39, 0.06);
}
.lg-kind-picker[open] .lg-kind-picker-btn {
  border-color: #1d4ed8;
  background: #eff6ff;
  color: #1d4ed8;
}
.lg-kind-caret {
  font-size: 0.7rem;
  opacity: 0.7;
  transition: transform 0.15s;
}
.lg-kind-picker[open] .lg-kind-caret { transform: rotate(180deg); }
.lg-kind-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 60;
  min-width: 11rem;
  padding: 4px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}
.lg-kind-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  color: #1e293b !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
}
.lg-kind-menu-item:hover { background: #f1f5f9; }
.lg-kind-menu-item.is-active {
  background: #eff6ff;
  color: #1d4ed8 !important;
  font-weight: 800;
}

.lg-hub-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  margin-bottom: 5px;
}
.lg-hub-row:last-child { margin-bottom: 0; }
.lg-hub-row--sub { padding-top: 2px; }
.lg-hub-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #1e293b !important;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none !important;
  white-space: nowrap;
}
.lg-hub-btn:hover {
  border-color: #3b82f6;
  background: #eff6ff;
  color: #1d4ed8 !important;
}
.lg-hub-btn.is-active {
  border-color: #1d4ed8;
  background: #eff6ff;
  color: #1d4ed8 !important;
}
.lg-ico {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  opacity: 0.85;
}
.lg-ico svg { display: block; }
.lg-hub-btn.is-active .lg-ico { opacity: 1; }

/* GEO — 상세 페이지 인용용 사실 표 */
.lg-cite-facts {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafc;
  grid-column: 1 / -1;
  width: 100%;
  box-sizing: border-box;
}
.lg-cite-facts-title {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 0.02em;
}
.lg-cite-facts-dl { margin: 0; }
.lg-cite-facts-row {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 4px 10px;
  padding: 3px 0;
  font-size: 0.84rem;
  line-height: 1.45;
}
.lg-cite-facts-row dt {
  margin: 0;
  font-weight: 700;
  color: #64748b;
}
.lg-cite-facts-row dd {
  margin: 0;
  color: #0f172a;
  word-break: break-all;
}
.lg-cite-facts-row dd a { word-break: break-all; }

.lg-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.lg-logo {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--ink);
  white-space: nowrap;
  flex: 0 0 auto;
}
.lg-logo:hover { text-decoration: none; }
.lg-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
}
.lg-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-width: 0;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #1e293b !important;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none !important;
  white-space: nowrap;
}
.lg-nav-btn:hover {
  background: #eff6ff;
  border-color: #3b82f6;
  color: #1d4ed8 !important;
  text-decoration: none !important;
}
.lg-nav-btn.is-active {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #fff !important;
}
.lg-nav--sources {
  width: 100%;
}
.lg-source-tabs {
  display: none;
}
.lg-source-tab {
  display: none;
}
.lg-index-search input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.95rem;
}
.lg-index-search button {
  border: none;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  border-radius: 10px;
  padding: 10px 18px;
  cursor: pointer;
}
@media (max-width: 640px) {
  .lg-header {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 10px 12px;
  }
  .lg-header-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .lg-header-row--actions {
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
  }
  .lg-logo { font-size: 0.95rem; }
  .lg-nav {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
  }
  .lg-nav-btn {
    flex: 1 1 0;
    padding: 10px 6px;
    font-size: 13px;
  }
  .lg-nav--sources .lg-nav-btn {
    flex: 1 1 25%;
    font-size: 12px;
    padding: 10px 4px;
  }
  .lg-header-actions { gap: 6px; }
  .lg-header-link { padding: 7px 8px; font-size: 0.75rem; }
  .lg-hub-btn { font-size: 12px; padding: 5px 8px; }
  .lg-index-search--google {
    flex-wrap: nowrap;
    padding: 4px 6px 4px 12px;
    max-width: 100%;
  }
  .lg-index-search--google input {
    width: auto;
    flex: 1 1 auto;
    min-width: 0;
    order: unset;
    padding: 8px 4px;
    font-size: 0.92rem;
  }
  .lg-search-ico {
    order: unset;
    flex: 0 0 18px;
  }
  .lg-search-submit--pill {
    order: unset;
    width: auto;
    margin-top: 0;
    padding: 8px 14px;
    font-size: 0.82rem;
    white-space: nowrap;
  }
}

.lg-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 20px 48px;
}
.lg-wrap:has(.lg-index--google) {
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: none;
  padding: 0;
}

/* 구글형 홈 */
.lg-index--google {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: auto;
  padding: 40px 20px 32px;
  text-align: center;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}
.lg-hero--google {
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
  margin: 0;
  width: 100%;
  max-width: 584px;
}
.lg-hero--google h1 {
  margin: 0 0 28px;
  font-size: clamp(1.45rem, 3.5vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #202124;
}
.lg-index-search--google {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 584px;
  margin: 0 auto;
  padding: 6px 8px 6px 14px;
  border: 1px solid #dfe1e5;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 6px rgba(32, 33, 36, 0.12);
  transition: box-shadow 0.2s;
}
.lg-index-search--google:focus-within {
  border-color: transparent;
  box-shadow: 0 1px 6px rgba(32, 33, 36, 0.18), 0 0 0 1px rgba(32, 33, 36, 0.08);
}
.lg-search-ico {
  flex: 0 0 20px;
  color: #9aa0a6;
  display: flex;
  align-items: center;
}
.lg-index-search--google input {
  flex: 1 1 auto;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 10px 4px;
  font-size: 1rem;
  outline: none;
  box-shadow: none;
}
.lg-search-submit--pill {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 0.88rem;
}
.lg-index-stats--google {
  margin: 16px 0 0;
  font-size: 0.8rem;
  color: #70757a;
}
.lg-index-stats--google strong {
  font-weight: 700;
  color: #5f6368;
}
.lg-gov-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 20px;
  margin-top: 32px;
}
.lg-gov-links a {
  font-size: 0.82rem;
  color: #70757a !important;
  text-decoration: none !important;
  font-weight: 500;
}
.lg-gov-links a:hover {
  text-decoration: underline !important;
  color: #1a73e8 !important;
}
.lg-gov-links--home { margin-top: 28px; }
.lg-gov-links--footer {
  margin: 8px 0 10px;
  gap: 6px 16px;
}
.lg-src-btns--index {
  justify-content: center;
  margin: 20px 0 8px;
}
.lg-browse {
  width: 100%;
  text-align: left;
  margin-top: 8px;
}
.lg-browse-block { margin-bottom: 18px; }
.lg-browse-title {
  margin: 0 0 8px;
  font-size: 0.88rem;
  font-weight: 800;
  color: #475569;
}
.lg-browse-more {
  margin: 4px 0 0;
  text-align: center;
  font-size: 0.84rem;
}
.lg-browse-more a { font-weight: 700; }

/* 응원 순위 TOP10 */
.lg-index--cheer-rank {
  max-width: 640px;
  margin: 0 auto;
  padding: 16px 0 28px;
}
.lg-cheer-rank-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lg-cheer-rank-item { margin: 0; padding: 0; }
.lg-cheer-rank-card {
  display: grid;
  grid-template-columns: 2.2rem 1fr auto;
  gap: 10px 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  border: 2px solid #fff;
  background: #fff;
  box-shadow: 0 2px 10px rgba(17, 24, 39, 0.06);
  text-decoration: none !important;
  color: inherit !important;
}
.lg-cheer-rank-card:hover {
  border-color: #bfdbfe;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.12);
  text-decoration: none !important;
}
.lg-cheer-rank-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: linear-gradient(145deg, #2563eb, #1d4ed8);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 900;
}
.lg-cheer-rank-item:nth-child(1) .lg-cheer-rank-num {
  background: linear-gradient(145deg, #f59e0b, #d97706);
}
.lg-cheer-rank-item:nth-child(2) .lg-cheer-rank-num,
.lg-cheer-rank-item:nth-child(3) .lg-cheer-rank-num {
  background: linear-gradient(145deg, #64748b, #475569);
}
.lg-cheer-rank-body { min-width: 0; text-align: left; }
.lg-cheer-rank-name {
  display: block;
  font-size: 0.95rem;
  color: #0f172a;
  margin-bottom: 2px;
}
.lg-cheer-rank-meta {
  display: block;
  font-size: 0.76rem;
  color: #64748b;
  line-height: 1.4;
}
.lg-cheer-rank-count {
  font-size: 0.78rem;
  font-weight: 700;
  color: #1d4ed8;
  white-space: nowrap;
  text-align: right;
}
.lg-cheer-rank-count em {
  font-style: normal;
  font-size: 1rem;
  font-weight: 900;
}
.lg-cheer-rank-item--more { display: none; }
.lg-cheer-rank-item--more.is-visible { display: list-item; }
.lg-cheer-rank-more {
  margin: 14px 0 0;
  text-align: center;
}
.lg-cheer-rank-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 10rem;
  padding: 11px 20px;
  border: 2px solid #bfdbfe;
  border-radius: 999px;
  background: #fff;
  color: #1d4ed8;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.08);
}
.lg-cheer-rank-more-btn:hover {
  border-color: #93c5fd;
  background: #eff6ff;
}
body.is-embed .lg-index--cheer-rank {
  max-width: 100%;
  padding: 8px 0 20px;
}

.lg-footer-data {
  margin: 0 0 4px;
  font-size: 0.78rem;
  color: #9aa0a6;
}
body.is-embed .lg-index--google {
  min-height: auto !important;
  padding-bottom: 24px;
}

.lg-footer {
  text-align: center;
  padding: 20px 24px 24px;
  margin-top: auto;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--line);
  background: #f8f9fa;
}

/* 홈 */
.lg-hero--compact {
  margin-bottom: 16px;
}
.lg-hero--compact h1 {
  margin: 0 0 6px;
  font-size: 1.35rem;
}
.lg-index h1 {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 3vw, 2rem);
  letter-spacing: -0.03em;
}
.lg-index-lead { color: var(--muted); margin: 0 0 20px; }
.lg-index-search {
  display: flex;
  gap: 8px;
  max-width: 560px;
  margin-bottom: 16px;
}
.lg-index-stats { color: var(--muted); font-size: 0.9rem; margin: 0 0 12px; }
.lg-index-note { color: var(--muted); font-size: 0.8rem; margin: -8px 0 16px; line-height: 1.5; }
.lg-index-actions { margin: 0 0 20px; }
.lg-list-title { font-size: 1.05rem; margin: 0 0 12px; }
.lg-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.lg-list li {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.lg-list li:last-child { border-bottom: none; }
.lg-list a { font-weight: 800; font-size: 1.02rem; }
.lg-list-meta {
  display: block;
  font-size: 0.84rem;
  color: var(--muted);
  margin-top: 4px;
}
.lg-list-empty { color: var(--muted); }

/* 상세 */
/* 검색 버튼 자리 — 작은 스피너 */
.lg-search-form {
  display: flex;
  align-items: center;
  gap: 8px;
}
.lg-search-submit[hidden] { display: none !important; }
.lg-search-wait {
  display: inline-block;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border: 3px solid #dbeafe;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: lg-spin 0.7s linear infinite;
  vertical-align: middle;
}
.lg-search-wait[hidden] { display: none !important; }
@keyframes lg-spin {
  to { transform: rotate(360deg); }
}

.lg-back { margin: 0 0 14px; }
.lg-back a {
  display: inline-flex;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 800;
  color: #1d4ed8;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  padding: 8px 14px;
}
.lg-back a:hover {
  background: #dbeafe;
  text-decoration: none;
}

.lg-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
}
.lg-page-stage {
  width: 100%;
}
.lg-detail-core {
  min-width: 0;
}
@media (max-width: 960px) {
  .lg-page {
    grid-template-columns: 1fr;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .lg-prayer {
    order: -1;
    position: relative;
    z-index: 2;
    flex: none;
    width: 100%;
    overflow: visible;
    margin-bottom: 4px;
  }
  .lg-main {
    position: relative;
    z-index: 1;
    flex: none;
    width: 100%;
  }
}

.lg-head {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
  margin-bottom: 20px;
  align-items: start;
}
@media (max-width: 800px) {
  .lg-head { grid-template-columns: 1fr; }
}
@media (min-width: 1180px) {
  .lg-head {
    grid-template-columns: minmax(0, 1fr) 320px;
    grid-template-areas:
      "headText snapshot"
      "headText citeFacts";
    column-gap: 20px;
    row-gap: 14px;
    align-items: start;
  }
  .lg-head-text {
    grid-area: headText;
    min-width: 0;
  }
  .lg-snapshot-col {
    grid-area: snapshot;
  }
  .lg-snapshot {
    position: static;
  }
  .lg-cite-facts {
    grid-area: citeFacts;
    grid-column: auto;
    width: auto;
    margin-top: 0;
  }
}

.lg-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.lg-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 999px;
}
.lg-badge-blue { background: #eff6ff; color: var(--blue-dark); }
.lg-badge-gray { background: #f3f4f6; color: #374151; }
.lg-badge-green { background: #ecfdf5; color: #047857; }
.lg-badge-warn { background: #fff7ed; color: #c2410c; }

.lg-head h1 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.lg-h1-meta {
  margin: 0 0 12px;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.55;
  max-width: 640px;
}
.lg-seo-kicker {
  margin: 0 0 6px;
  font-size: 0.95rem;
  color: #1e3a5f;
  line-height: 1.4;
}
.lg-lead { color: var(--muted); margin: 0; max-width: 640px; }
.lg-related-links {
  margin: 0;
  padding-left: 1.15rem;
  line-height: 1.7;
  color: var(--muted);
}
.lg-related-links a { font-weight: 700; }
.lg-note { font-size: 0.82rem; color: var(--muted); margin: 10px 0 0; }

.lg-snapshot-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-self: start;
  width: 100%;
  min-width: 0;
}
/* 딩동 검증 메달 (트로피 UI) — site.css 에서 @import */
.lg-award-box {
  width: 100%;
  box-sizing: border-box;
  background: linear-gradient(180deg, #fffbeb 0%, #ffffff 48%, #f8fafc 100%);
  border: 2px solid rgba(251, 191, 36, 0.5);
  border-radius: var(--radius);
  padding: 12px 14px 10px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.1);
  text-align: center;
}
.lg-award-box-title {
  margin: 0 0 6px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #92400e;
}
.lg-award-box--bronze { border-color: rgba(194, 65, 12, 0.45); }
.lg-award-box--bronze .lg-award-box-title { color: #9a3412; }
.lg-award-box--silver {
  border-color: rgba(100, 116, 139, 0.45);
  background: linear-gradient(180deg, #f8fafc 0%, #fff 48%, #f1f5f9 100%);
}
.lg-award-box--silver .lg-award-box-title { color: #475569; }
.lg-award-box--gold { border-color: rgba(217, 119, 6, 0.55); }
.lg-award-box--gold .lg-award-box-title { color: #b45309; }
.lg-award-box--diamond {
  border-color: rgba(8, 145, 178, 0.5);
  background: linear-gradient(180deg, #ecfeff 0%, #fff 48%, #f0fdfa 100%);
}
.lg-award-box--diamond .lg-award-box-title { color: #0e7490; }
.lg-award-box--elite {
  border-color: rgba(30, 64, 175, 0.55);
  background: linear-gradient(180deg, #fff7cc 0%, #fff 42%, #eff6ff 100%);
  box-shadow: 0 10px 28px rgba(30, 64, 175, 0.16);
}
.lg-award-box--elite .lg-award-box-title { color: #1e3a8a; }
.lg-award-box--watch { border-color: rgba(217, 119, 6, 0.45); }
.lg-award-box--watch .lg-award-box-title { color: #b45309; }
.lg-award-box--risk {
  border-color: rgba(185, 28, 28, 0.45);
  background: linear-gradient(180deg, #fef2f2 0%, #fff 48%, #fff1f2 100%);
}
.lg-award-box--risk .lg-award-box-title { color: #b91c1c; }
.lg-award-box .lg-award-medal {
  min-height: 0;
  margin: 0 auto;
}
.lg-award-box .lg-trophy-plaque {
  border: 1px solid rgba(255, 255, 255, 0.85);
}

.lg-badge-embed {
  margin-top: 12px;
  text-align: center;
}
.lg-badge-embed-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  color: #0f172a;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}
.lg-badge-embed-btn:hover {
  border-color: rgba(37, 99, 235, 0.35);
  color: #1d4ed8;
}

.lg-trophy-badge {
  display: flex;
  align-self: center;
  min-height: 0;
  padding: 2px 0;
}
.lg-award-medal {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  min-height: 132px;
  isolation: isolate;
}
.lg-award-medal__glow {
  position: absolute;
  top: 6%;
  left: 50%;
  width: 68%;
  height: 44%;
  transform: translateX(-50%);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.22;
  z-index: 0;
}
/* 메달 뒤 장식 후광 제거 (기능 영향 없음) */
.lg-award-medal__glow {
  display: none;
}
.lg-award-medal__svg-wrap {
  position: relative;
  z-index: 1;
  width: 116px;
  flex: 0 0 auto;
  line-height: 0;
}
.lg-award-medal__svg {
  display: block;
  width: 116px;
  height: 124px;
  margin: 0 auto 2px;
  shape-rendering: geometricPrecision;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}
.lg-award-ribbon { opacity: 0.92; }
.lg-award-inner-ring { stroke: rgba(255, 255, 255, 0.45); }
.lg-award-grade-text {
  font-family: "Noto Sans KR", "Pretendard", sans-serif;
  font-size: 13px;
  font-weight: 900;
  fill: rgba(15, 23, 42, 0.92);
  letter-spacing: -0.04em;
}
.lg-award-score-text {
  font-family: "Noto Sans KR", "Pretendard", sans-serif;
  font-size: 22px;
  font-weight: 900;
  fill: #0f172a;
}
.lg-award-brand-text {
  font-family: "Noto Sans KR", "Pretendard", sans-serif;
  font-size: 9px;
  font-weight: 800;
  fill: rgba(15, 23, 42, 0.72);
  letter-spacing: 0.12em;
}
.lg-award-gem {
  fill: #38bdf8;
  stroke: #0ea5e9;
  stroke-width: 0.8;
}
.lg-award-medal--bronze .lg-award-stop-a { stop-color: #fde6d2; }
.lg-award-medal--bronze .lg-award-stop-b { stop-color: #c97a45; }
.lg-award-medal--bronze .lg-award-stop-c { stop-color: #7c3d12; }
.lg-award-medal--bronze .lg-award-face-a { stop-color: #fff7ed; }
.lg-award-medal--bronze .lg-award-face-b { stop-color: #fdba74; }
.lg-award-medal--bronze .lg-award-ribbon { fill: #b45309; }
.lg-award-medal--bronze .lg-award-medal__glow { background: #fb923c; }
.lg-award-medal--watch .lg-award-stop-a { stop-color: #fef3c7; }
.lg-award-medal--watch .lg-award-stop-b { stop-color: #fbbf24; }
.lg-award-medal--watch .lg-award-stop-c { stop-color: #b45309; }
.lg-award-medal--watch .lg-award-face-a { stop-color: #fffbeb; }
.lg-award-medal--watch .lg-award-face-b { stop-color: #fcd34d; }
.lg-award-medal--watch .lg-award-ribbon { fill: #d97706; }
.lg-award-medal--watch .lg-award-medal__glow { background: #f59e0b; }
.lg-award-medal--watch .lg-award-grade-text { fill: #92400e; }
.lg-award-medal--risk .lg-award-stop-a { stop-color: #fecaca; }
.lg-award-medal--risk .lg-award-stop-b { stop-color: #f87171; }
.lg-award-medal--risk .lg-award-stop-c { stop-color: #991b1b; }
.lg-award-medal--risk .lg-award-face-a { stop-color: #fef2f2; }
.lg-award-medal--risk .lg-award-face-b { stop-color: #fca5a5; }
.lg-award-medal--risk .lg-award-ribbon { fill: #b91c1c; }
.lg-award-medal--risk .lg-award-medal__glow { background: #ef4444; opacity: 0.35; }
.lg-award-medal--risk .lg-award-grade-text,
.lg-award-medal--risk .lg-award-score-text { fill: #7f1d1d; }
.lg-award-medal--silver .lg-award-stop-a { stop-color: #f8fafc; }
.lg-award-medal--silver .lg-award-stop-b { stop-color: #cbd5e1; }
.lg-award-medal--silver .lg-award-stop-c { stop-color: #64748b; }
.lg-award-medal--silver .lg-award-face-a { stop-color: #f8fafc; }
.lg-award-medal--silver .lg-award-face-b { stop-color: #94a3b8; }
.lg-award-medal--silver .lg-award-ribbon { fill: #64748b; }
.lg-award-medal--silver .lg-award-medal__glow { background: #cbd5e1; }
.lg-award-medal--gold .lg-award-stop-a { stop-color: #fffbeb; }
.lg-award-medal--gold .lg-award-stop-b { stop-color: #fbbf24; }
.lg-award-medal--gold .lg-award-stop-c { stop-color: #b45309; }
.lg-award-medal--gold .lg-award-face-a { stop-color: #fef9c3; }
.lg-award-medal--gold .lg-award-face-b { stop-color: #f59e0b; }
.lg-award-medal--gold .lg-award-ribbon { fill: #d97706; }
.lg-award-medal--gold .lg-award-medal__glow { background: #fbbf24; }
.lg-award-medal--diamond .lg-award-stop-a { stop-color: #ecfeff; }
.lg-award-medal--diamond .lg-award-stop-b { stop-color: #67e8f9; }
.lg-award-medal--diamond .lg-award-stop-c { stop-color: #0e7490; }
.lg-award-medal--diamond .lg-award-face-a { stop-color: #f0fdfa; }
.lg-award-medal--diamond .lg-award-face-b { stop-color: #22d3ee; }
.lg-award-medal--diamond .lg-award-ribbon { fill: #0891b2; }
.lg-award-medal--diamond .lg-award-medal__glow { background: #22d3ee; }
.lg-award-medal--elite .lg-award-stop-a { stop-color: #fef9c3; }
.lg-award-medal--elite .lg-award-stop-b { stop-color: #f59e0b; }
.lg-award-medal--elite .lg-award-stop-c { stop-color: #1e3a8a; }
.lg-award-medal--elite .lg-award-face-a { stop-color: #fff7cc; }
.lg-award-medal--elite .lg-award-face-b { stop-color: #fbbf24; }
.lg-award-medal--elite .lg-award-ribbon { fill: #1e40af; }
.lg-award-medal--elite .lg-award-medal__glow {
  background: linear-gradient(135deg, #fbbf24, #38bdf8);
  opacity: 0.28;
}
.lg-award-medal--elite .lg-award-grade-text {
  font-size: 10px;
  letter-spacing: -0.08em;
}
.lg-award-plaque {
  position: relative;
  z-index: 1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22);
}
.lg-award-plaque--bronze {
  background: linear-gradient(180deg, #fff7ed 0%, #fdba74 45%, #c2410c 100%);
}
.lg-award-plaque--watch {
  background: linear-gradient(180deg, #fffbeb 0%, #fcd34d 45%, #d97706 100%);
}
.lg-award-plaque--risk {
  background: linear-gradient(180deg, #fef2f2 0%, #fca5a5 45%, #b91c1c 100%);
}
.lg-award-plaque--watch .lg-trophy-brand,
.lg-award-plaque--risk .lg-trophy-brand { color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); }
.lg-award-plaque--watch .lg-trophy-year,
.lg-award-plaque--watch .lg-trophy-label,
.lg-award-plaque--risk .lg-trophy-year,
.lg-award-plaque--risk .lg-trophy-label { color: #fef3c7; }
.lg-award-plaque--silver {
  background: linear-gradient(180deg, #f8fafc 0%, #cbd5e1 45%, #64748b 100%);
}
.lg-award-plaque--gold {
  background: linear-gradient(180deg, #fff7cc 0%, #fbbf24 45%, #d97706 100%);
}
.lg-award-plaque--diamond {
  background: linear-gradient(180deg, #ecfeff 0%, #67e8f9 45%, #0e7490 100%);
}
.lg-award-plaque--elite {
  background: linear-gradient(180deg, #fff7cc 0%, #fbbf24 38%, #1e3a8a 100%);
}
.lg-award-plaque--elite .lg-trophy-brand { color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35); }
.lg-award-plaque--elite .lg-trophy-year,
.lg-award-plaque--elite .lg-trophy-label { color: #fef3c7; }
.lg-trophy-award {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  min-height: 112px;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.28));
}
.lg-trophy-svg {
  display: block;
  width: 100%;
  max-height: 72px;
  flex: 1 1 auto;
  margin-bottom: 4px;
}
.lg-trophy-plaque {
  flex: 0 0 auto;
  width: 100%;
  padding: 6px 4px 5px;
  border-radius: 8px;
  text-align: center;
  line-height: 1.15;
  background: linear-gradient(180deg, #fff7cc 0%, #fbbf24 45%, #d97706 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 2px 6px rgba(0, 0, 0, 0.2);
}
.lg-trophy-year {
  display: block;
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #78350f;
  opacity: 0.9;
}
.lg-trophy-brand {
  display: block;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  color: #1e3a5f;
  margin: 2px 0;
  line-height: 1.2;
  word-break: keep-all;
}
.lg-trophy-label {
  display: block;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #7c2d12;
}
@media (max-width: 800px) {
  .lg-award-box .lg-award-medal__svg-wrap { width: 100px; }
  .lg-award-box .lg-award-medal__svg { width: 100px; height: 108px; }
  .lg-trophy-brand { font-size: 0.76rem; }
  .lg-trophy-label { font-size: 0.52rem; }
}

.lg-badge-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.lg-badge-modal[hidden] {
  display: none !important;
}
body.lg-badge-modal-open {
  overflow: hidden;
}
.lg-badge-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}
.lg-badge-modal__panel {
  position: relative;
  width: min(100%, 520px);
  max-height: min(92vh, 820px);
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  padding: 18px 18px 20px;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.22);
}
.lg-badge-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.lg-badge-modal__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
}
.lg-badge-modal__close {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.lg-badge-modal__hint {
  margin: 0 0 14px;
  font-size: 0.82rem;
  color: #64748b;
}
.lg-badge-modal__preview {
  margin-bottom: 16px;
  padding: 12px;
  border-radius: 12px;
  background: #f8fafc;
  text-align: center;
}
.lg-badge-modal__preview img {
  max-width: 100%;
  height: auto;
}
.lg-badge-qr-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}
.lg-badge-qr-card__text strong {
  display: block;
  margin: 0 0 4px;
  font-size: 0.84rem;
  color: #0f172a;
}
.lg-badge-qr-card__text p {
  margin: 0 0 6px;
  font-size: 0.74rem;
  line-height: 1.45;
  color: #64748b;
}
.lg-badge-qr-card__text a {
  font-size: 0.7rem;
  color: #1d4ed8;
  word-break: break-all;
}
.lg-badge-qr-card__img-wrap {
  width: 112px;
  height: 112px;
  padding: 6px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #dbeafe;
}
.lg-badge-qr-card__img {
  width: 100%;
  height: 100%;
  display: block;
  image-rendering: -webkit-optimize-contrast;
}
.lg-badge-snippet {
  margin-bottom: 12px;
}
.lg-badge-snippet__label {
  margin: 0 0 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #475569;
}
.lg-badge-snippet__code {
  margin: 0 0 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #0f172a;
  color: #e2e8f0;
  font-size: 0.68rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-all;
  overflow-x: auto;
}
.lg-badge-snippet__copy {
  display: inline-flex;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  color: #1e293b;
  cursor: pointer;
}

.lg-badge-platform {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #e2e8f0;
}
.lg-badge-platform__head {
  margin-bottom: 12px;
}
.lg-badge-platform__title {
  margin: 0 0 6px;
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
}
.lg-badge-platform__lead {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.55;
  color: #64748b;
}
.lg-badge-platform__lead strong {
  color: #1d4ed8;
  font-weight: 700;
}
.lg-badge-platform__tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}
.lg-badge-platform__tab {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-height: 52px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #334155;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.lg-badge-platform__tab:hover {
  border-color: #93c5fd;
  background: #fff;
}
.lg-badge-platform__tab.is-active {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.15);
}
.lg-badge-platform__tab-label {
  font-size: 0.82rem;
  font-weight: 800;
  color: #0f172a;
}
.lg-badge-platform__tab-hint {
  font-size: 0.68rem;
  font-weight: 600;
  color: #64748b;
}
.lg-badge-platform__tab.is-active .lg-badge-platform__tab-label {
  color: #1d4ed8;
}
.lg-badge-platform__panel[hidden] {
  display: none !important;
}
.lg-badge-platform__steps {
  margin: 0 0 12px;
  padding-left: 1.15rem;
  font-size: 0.8rem;
  line-height: 1.55;
  color: #475569;
}
.lg-badge-platform__steps li {
  margin-bottom: 6px;
}
.lg-badge-platform__steps li:last-child {
  margin-bottom: 0;
}
.lg-badge-snippet--platform {
  margin-bottom: 0;
}
@media (max-width: 420px) {
  .lg-badge-qr-card {
    grid-template-columns: 1fr;
  }
  .lg-badge-qr-card__img-wrap {
    margin: 0 auto;
  }
  .lg-badge-platform__tabs {
    grid-template-columns: 1fr;
  }
  .lg-badge-platform__tab {
    min-height: 44px;
  }
}

.lg-snapshot {
  align-self: stretch;
  width: 100%;
  box-sizing: border-box;
  background: linear-gradient(145deg, #2563eb, #1d4ed8);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 18px 16px 14px;
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.35);
}
.lg-snapshot-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  opacity: 0.85;
  margin: 0 0 10px;
}
.lg-snapshot-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.lg-snapshot-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.lg-snapshot-item {
  padding: 8px 0;
  min-width: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.lg-snapshot-main .lg-snapshot-item:last-child {
  border-bottom: none;
  padding-bottom: 2px;
}
.lg-snapshot-k {
  font-size: 0.68rem;
  opacity: 0.82;
  margin: 0 0 2px;
}
.lg-snapshot-v {
  font-size: 1.02rem;
  font-weight: 800;
  margin: 0;
  line-height: 1.25;
  word-break: keep-all;
}
.lg-snapshot-v--sm {
  font-size: 0.92rem;
}
.lg-snapshot-hint {
  margin: 5px 0 0;
  font-size: 0.66rem;
  line-height: 1.35;
  opacity: 0.88;
  font-weight: 500;
}
.lg-criteria-toggle {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  color: #dbeafe;
  font-size: inherit;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  font-family: inherit;
}
.lg-criteria-toggle:hover { color: #fff; }
.lg-criteria-panel {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
  font-size: 0.68rem;
  line-height: 1.45;
  font-weight: 500;
  opacity: 0.95;
}
.lg-criteria-panel p {
  margin: 0 0 6px;
}
.lg-criteria-panel p:last-child {
  margin-bottom: 0;
}
.lg-subh {
  margin: 14px 0 6px;
  font-size: 0.95rem;
  font-weight: 800;
  color: #1e3a5f;
}

.lg-section {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.lg-section-muted { background: #f9fafb; }
.lg-section h2 {
  margin: 0 0 16px;
  font-size: 1.08rem;
  padding-bottom: 10px;
  border-bottom: 2px solid #eff6ff;
}

.lg-dl {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px 16px;
  margin: 0;
}
.lg-dl > div {
  background: #f9fafb;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
}
.lg-dl dt {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--muted);
  margin-bottom: 4px;
}
.lg-dl dd { margin: 0; font-weight: 600; word-break: break-all; }
.lg-dl dd a { color: #2563eb; text-decoration: underline; text-underline-offset: 2px; }
.lg-dl dd a:hover { color: #1d4ed8; }

.lg-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 720px) {
  .lg-compare { grid-template-columns: 1fr; }
}
.lg-compare-col {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: #fff;
}
.lg-compare-col h3 {
  margin: 0 0 10px;
  font-size: 0.95rem;
}
.lg-alert {
  border-radius: 12px;
  border: 1px solid #fecaca;
  background: #fef2f2;
}
.lg-alert--mid {
  border-color: #fde68a;
  background: #fffbeb;
}
.lg-alert--high {
  border-color: #fca5a5;
  background: #fef2f2;
}
.lg-alert-list {
  margin: 0;
  padding-left: 1.2rem;
  color: #7f1d1d;
  font-weight: 600;
  line-height: 1.55;
}
.lg-alert--mid .lg-alert-list { color: #92400e; }
.lg-note--ok { color: #166534; font-weight: 600; }

.lg-nearby {
  list-style: none;
  margin: 0;
  padding: 0;
}
.lg-nearby li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.lg-nearby li:last-child { border-bottom: none; }
.lg-nearby span {
  display: block;
  font-size: 0.84rem;
  color: var(--muted);
  margin-top: 4px;
}

.lg-btn-outline {
  display: inline-block;
  background: #fff;
  color: var(--blue-dark);
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 12px;
  border: 2px solid var(--blue);
}
.lg-btn-outline:hover { text-decoration: none; }

/* 기도 사이드 */
.lg-prayer {
  position: relative;
  background: linear-gradient(160deg, #0f172a, #1e3a5f);
  color: #f8fafc;
  border-radius: var(--radius);
  padding: 22px 18px;
  box-shadow: var(--shadow);
}
.lg-prayer--home {
  position: relative;
  top: auto;
  max-width: 100%;
}
.lg-home-prayer-wrap {
  margin: 0 auto 18px;
  max-width: 720px;
  width: 100%;
}
.lg-home-prayer-tagline {
  font-size: 0.88rem;
  color: rgba(248, 250, 252, 0.92);
  text-align: center;
  margin: 0 0 16px;
  line-height: 1.55;
  font-weight: 500;
}
.lg-home-prayer-cheer {
  text-align: center;
  font-size: 0.76rem;
  color: #d4b86a;
  margin: 12px 0 0;
  line-height: 1.45;
  letter-spacing: 0.02em;
}
.lg-prayer-open--home {
  min-width: 68%;
  margin: 0 auto;
}
.lg-prayer-open-finger {
  display: block;
  font-size: 2rem;
  line-height: 1;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  filter: drop-shadow(0 2px 8px rgba(251, 191, 36, 0.5));
  transform-origin: center 85%;
}
.lg-prayer-open--home .lg-prayer-open-finger {
  font-size: 2.15rem;
}
.lg-prayer-mute--line {
  color: rgba(248, 250, 252, 0.75);
}
.lg-prayer-mute--line.is-muted .lg-prayer-mute-svg path:first-child {
  opacity: 0.35;
}
.lg-prayer-epilogue {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.84rem;
  line-height: 1.65;
  color: rgba(248, 250, 252, 0.82);
  text-align: center;
  font-style: italic;
}
.lg-prayer-join {
  margin: 14px 0 0;
  font-weight: 700;
  color: #fbbf24;
  text-align: center;
  font-size: 0.88rem;
  line-height: 1.5;
}
.lg-prayer--home .lg-prayer-toggle:not([hidden]) {
  display: inline-block;
}
.lg-index--google .lg-home-prayer-wrap + .lg-hero--google {
  margin-top: 0;
}
@media (min-width: 961px) {
  .lg-prayer {
    position: sticky;
    top: 16px;
  }
}
.lg-prayer-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 12px;
}
.lg-prayer-kicker {
  flex: 1 1 auto;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: #fbbf24;
  letter-spacing: 0.08em;
  margin: 0;
  line-height: 1.4;
}
.lg-prayer-mute {
  position: relative;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  margin: 0;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  font-family: inherit;
  line-height: 1;
}
.lg-prayer-mute-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 1rem;
}
.lg-prayer-mute.is-muted .lg-prayer-mute-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 2px;
  background: #f87171;
  border-radius: 2px;
  transform: translate(-50%, -50%) rotate(-40deg);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.35);
}
.lg-prayer-mute:hover {
  background: rgba(255, 255, 255, 0.14);
}
.lg-prayer-toggle {
  flex: 0 0 auto;
  margin: 0;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.lg-prayer-toggle:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}
.lg-prayer[data-expanded="0"] .lg-prayer-mute {
  /* 접혀도 음소거 버튼 유지 */
}
.lg-prayer-teaser {
  text-align: center;
  padding: 8px 4px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 12px;
}
.lg-prayer-teaser-title {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 800;
  color: #fef3c7;
}
.lg-prayer-teaser-desc {
  margin: 0 0 12px;
  font-size: 0.8rem;
  color: #cbd5e1;
  line-height: 1.45;
}
/* 응원 문구 — 기도 본문과 동일 서체, 강조 박스 없음 */
.lg-prayer-body .lg-prayer-cheer-line {
  margin: 0 0 0.85em;
}
.lg-prayer-open {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 72%;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid #fbbf24;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.35);
  animation: lg-prayer-open-pulse 1.6s ease-in-out infinite;
}
.lg-prayer-open-emoji {
  display: block;
  font-size: 1.75rem;
  line-height: 1;
  animation: lg-prayer-finger-bob 1s ease-in-out infinite;
}
.lg-prayer-open-text {
  display: block;
  line-height: 1.35;
}
.lg-prayer-open:hover {
  background: rgba(15, 23, 42, 0.82);
}
@keyframes lg-prayer-open-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}
@keyframes lg-prayer-finger-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}
.lg-prayer-actions {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.lg-prayer[data-expanded="0"] .lg-prayer-toolbar {
  margin-bottom: 0;
  justify-content: space-between;
}
.lg-prayer[data-expanded="0"] .lg-prayer-kicker {
  display: none;
}
.lg-prayer-tap {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
}
.lg-prayer-tap:disabled {
  cursor: default;
}
.lg-prayer-tap.is-waiting .lg-prayer-img {
  filter: brightness(0.72);
}
.lg-prayer-tap-cue {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 70%;
  padding: 14px 16px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.35);
  pointer-events: none;
  animation: lg-prayer-tap-pulse 1.6s ease-in-out infinite;
}
.lg-prayer-tap-cue[hidden] {
  display: none !important;
}
.lg-prayer-tap-emoji {
  font-size: 28px;
  line-height: 1;
}
.lg-prayer-tap-text {
  display: block;
}
@keyframes lg-prayer-tap-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.04); }
}
.lg-prayer-script[hidden] {
  display: none !important;
}
.lg-prayer-img {
  width: 100%;
  max-height: min(420px, 55vh);
  min-height: 160px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 14px;
  display: block;
  background: rgba(255, 255, 255, 0.08);
}
body.is-embed .lg-prayer {
  margin-bottom: 12px;
}
body.is-embed .lg-wrap {
  padding-bottom: 32px;
}
/* 앱 iframe — PC·모바일 동일 폭(늘리지 않음) */
body.is-embed {
  --lg-embed-col: min(100%, 480px);
}
body.is-embed .lg-wrap,
body.is-embed .lg-wrap:has(.lg-index--google),
body.is-embed .lg-header,
body.is-embed .lg-hub {
  max-width: var(--lg-embed-col) !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}
body.is-embed .lg-wrap,
body.is-embed .lg-wrap:has(.lg-index--google) {
  padding-left: 14px !important;
  padding-right: 14px !important;
}
body.is-embed .lg-index--google {
  max-width: var(--lg-embed-col) !important;
  width: 100% !important;
  margin: 0 auto !important;
  align-items: center !important;
  text-align: center !important;
  padding: 8px 0 20px !important;
  min-height: auto !important;
}
body.is-embed .lg-hero--google,
body.is-embed .lg-index-search--google,
body.is-embed .lg-home-prayer-wrap,
body.is-embed .lg-browse,
body.is-embed .lg-region-grid--compact,
body.is-embed .lg-main {
  max-width: var(--lg-embed-col) !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}
body.is-embed .lg-main {
  box-sizing: border-box !important;
}
/* 홈(구글형) 임베드 — PC·모바일 동일 중앙 480px 열 */
body.is-embed:has(.lg-index--google) .lg-hub,
body.is-embed:has(.lg-index--google) .lg-wrap {
  max-width: min(100%, 480px) !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}
body.is-embed:has(.lg-index--google) .lg-wrap {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}
body.is-embed:has(.lg-index--google) .lg-index--google,
body.is-embed:has(.lg-index--google) .lg-home-prayer-wrap,
body.is-embed:has(.lg-index--google) .lg-prayer--home,
body.is-embed:has(.lg-index--google) .lg-hero--google,
body.is-embed:has(.lg-index--google) .lg-browse {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
body.is-embed:has(.lg-index--google) .lg-prayer--home {
  text-align: center;
}
body.is-embed:has(.lg-index--google) .lg-prayer--home[data-expanded="0"] .lg-prayer-toolbar {
  justify-content: flex-end;
}
@media (max-width: 768px) {
  body.is-embed {
    --lg-embed-col: min(100%, 480px);
  }
  body.is-embed .lg-page {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    align-items: stretch !important;
  }
  body.is-embed .lg-prayer {
    order: -1;
    position: relative !important;
    top: auto !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  body.is-embed .lg-head {
    grid-template-columns: 1fr !important;
  }
  body.is-embed .lg-snapshot-col {
    width: 100% !important;
  }
}
@media (min-width: 769px) {
  /* 상세 — 본문 열 중앙, 기도문은 오른쪽에만 붙임 */
  body.is-embed:has(.lg-page-stage) {
    --lg-detail-core: min(720px, calc(100% - 324px));
    --lg-prayer-w: 300px;
    --lg-detail-gap: 24px;
    --lg-detail-stage: calc(var(--lg-detail-core) + var(--lg-prayer-w) + var(--lg-detail-gap));
  }
  body.is-embed:has(.lg-page-stage) .lg-hub {
    max-width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
    box-sizing: border-box !important;
  }
  body.is-embed:has(.lg-page-stage) .lg-hub-toolbar {
    width: var(--lg-detail-stage) !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-right: calc(var(--lg-prayer-w) + var(--lg-detail-gap)) !important;
    justify-content: center !important;
  }
  body.is-embed:has(.lg-page-stage) .lg-wrap {
    max-width: 100% !important;
    width: 100% !important;
    overflow: visible !important;
  }
  body.is-embed:has(.lg-page-stage) .lg-page-stage {
    width: var(--lg-detail-stage);
    max-width: 100%;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box;
  }
  body.is-embed:has(.lg-page-stage) .lg-crumb {
    width: var(--lg-detail-core);
    max-width: 100%;
    box-sizing: border-box;
  }
  body.is-embed:has(.lg-page-stage) .lg-page {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    gap: 0 !important;
  }
  body.is-embed:has(.lg-page-stage) .lg-detail-core {
    width: var(--lg-detail-core);
    max-width: 100%;
  }
  body.is-embed:has(.lg-page-stage) .lg-main {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
  }
  body.is-embed:has(.lg-page-stage) .lg-prayer {
    position: absolute !important;
    right: 0 !important;
    top: 0 !important;
    width: var(--lg-prayer-w) !important;
    max-width: var(--lg-prayer-w) !important;
    margin: 0 !important;
    order: unset !important;
  }
  body.is-embed:has(.lg-page-stage) .lg-head {
    align-items: start;
  }
}
@media (min-width: 769px) {
  /* 상세(.lg-page)만 넓게 — 홈은 480px 유지 (구형 선택자 호환) */
  body.is-embed:has(.lg-page):not(:has(.lg-page-stage)) {
    --lg-embed-col: min(100%, 1040px);
  }
  body.is-embed:has(.lg-page):not(:has(.lg-page-stage)) .lg-page {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 300px !important;
    gap: 24px !important;
    align-items: start !important;
  }
  body.is-embed:has(.lg-page):not(:has(.lg-page-stage)) .lg-prayer {
    order: unset !important;
    position: sticky !important;
    top: 16px !important;
    width: auto !important;
    max-width: 300px !important;
    margin: 0 !important;
  }
  body.is-embed:has(.lg-page):not(:has(.lg-page-stage)) .lg-main {
    min-width: 0 !important;
    overflow-x: hidden !important;
  }
}
body.is-embed .lg-prayer-img {
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}
body.is-embed .lg-hero--google h1 {
  text-align: left;
  font-size: 1.45rem;
}
.lg-prayer-verse {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-left: 3px solid #fbbf24;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 0 8px 8px 0;
}
.lg-prayer-verse p {
  margin: 0 0 6px;
  font-size: 0.82rem;
  line-height: 1.75;
  color: #e2e8f0;
  font-style: italic;
}
.lg-prayer-verse cite {
  display: block;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 700;
  color: #fbbf24;
  text-align: right;
}
.lg-prayer h2,
.lg-prayer-title {
  text-align: center;
  font-size: 1.12rem;
  margin: 0 0 6px;
  line-height: 1.45;
  color: #fef3c7;
}
.lg-prayer-theme {
  text-align: center;
  font-size: 0.78rem;
  color: #93c5fd;
  margin: 0 0 6px;
  font-weight: 700;
}
.lg-prayer-reason {
  text-align: center;
  font-size: 0.76rem;
  color: #cbd5e1;
  margin: 0 0 14px;
  line-height: 1.5;
  font-style: italic;
}
.lg-prayer-body {
  font-size: 0.88rem;
  line-height: 1.85;
  text-align: left;
  opacity: 0.96;
  margin: 0;
}
.lg-prayer-body p {
  margin: 0 0 12px;
}
.lg-prayer-body p:last-child {
  margin-bottom: 0;
}
.lg-prayer-for-wrap {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.lg-prayer-for {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  text-align: center;
  font-size: 0.84rem;
  color: #fcd34d;
  font-weight: 600;
  line-height: 1.5;
}
.lg-prayer-for-msg {
  word-break: keep-all;
}
.lg-prayer-for-icons {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.lg-prayer-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 1.2em;
  height: 1.2em;
  min-width: 1.2em;
  min-height: 1.2em;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(252, 211, 77, 0.7);
  background: rgba(255, 255, 255, 0.1);
  color: #fef3c7;
  cursor: pointer;
  font: inherit;
  line-height: 1;
  text-decoration: none;
  box-sizing: border-box;
  vertical-align: middle;
  opacity: 0;
  transform: scale(0.35);
  transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}
.lg-prayer-icon.is-pop {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}
.lg-prayer-icon:hover {
  background: rgba(251, 191, 36, 0.22);
  color: #fff;
  text-decoration: none;
}
.lg-prayer-icon svg {
  width: 0.62em;
  height: 0.62em;
  display: block;
}
.lg-prayer-icon--blog {
  color: #fef3c7;
}
.lg-prayer-icon[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  transform: translateX(-50%) translateY(2px);
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(252, 211, 77, 0.55);
  color: #fef3c7;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
  z-index: 2;
}
.lg-prayer-icon.is-pop:hover::after,
.lg-prayer-icon.is-pop:focus-visible::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
/* 기도 칸 버튼 (기준 디자인 — 수정·덮어쓰기 금지) */
.lg-btn-kakao,
.lg-btn-promo,
.lg-btn-home,
.lg-btn-below,
.lg-btn-promo-cta,
.lg-btn-promo-free {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1.3 !important;
  text-align: center;
  box-sizing: border-box;
}
.lg-btn-kakao,
.lg-btn-promo,
.lg-btn-home,
.lg-btn-below {
  width: 100%;
}
.lg-btn-kakao {
  background: #fee500 !important;
  color: #3c1e1e !important;
  font-weight: 800;
  padding: 10px 12px;
  border-radius: 10px;
  border: none !important;
  font-size: 0.88rem;
  min-height: 42px;
}
.lg-btn-kakao:hover { text-decoration: none; filter: brightness(0.97); }
.lg-btn-promo {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 2px solid #fbbf24 !important;
  color: #fef3c7 !important;
  font-weight: 800;
  font-size: 0.88rem;
  background: rgba(251, 191, 36, 0.12) !important;
  min-height: 42px;
}
.lg-btn-promo:hover {
  text-decoration: none;
  background: rgba(251, 191, 36, 0.22) !important;
  color: #fff !important;
}

/* 아래 본문: 기도 칸과 동일 클래스·동일 크기 */
.lg-btn-below {
  width: 100%;
  max-width: 100%;
  margin-top: 4px;
  padding: 10px 12px !important;
  font-size: 0.88rem !important;
  font-weight: 800 !important;
  border-radius: 10px !important;
  min-height: 42px;
}
.lg-section-promo .lg-btn-promo.lg-btn-below,
.lg-section-muted .lg-btn-kakao.lg-btn-below {
  /* 기도 칸과 같은 색·테두리 (본문 흰 배경에서도 보이게 기도칸 톤 유지) */
}
.lg-section-promo .lg-btn-promo.lg-btn-below {
  margin-top: 4px;
  background: #1e3a5f !important;
  border: 2px solid #fbbf24 !important;
  color: #fef3c7 !important;
}
.lg-section-promo .lg-btn-promo.lg-btn-below:hover {
  background: #254a75 !important;
  color: #fff !important;
  text-decoration: none;
}
.lg-section-muted .lg-btn-kakao.lg-btn-below,
.lg-section-promo .lg-btn-kakao.lg-btn-below {
  background: #fee500 !important;
  color: #3c1e1e !important;
  border: none !important;
}
.lg-section-muted .lg-btn-kakao.lg-btn-below:hover,
.lg-section-promo .lg-btn-kakao.lg-btn-below:hover {
  filter: brightness(0.97);
  text-decoration: none;
}

.lg-section-promo {
  border-color: #bfdbfe;
  background: linear-gradient(180deg, #fff 0%, #f0f9ff 100%);
}
.lg-section-promo--bottom {
  margin-top: 8px;
}
.lg-btn-below--ghost {
  margin-top: 8px !important;
  background: #fee500 !important;
  border: none !important;
  color: #3c1e1e !important;
}
.lg-btn-below--ghost:hover {
  filter: brightness(0.97) !important;
  text-decoration: none;
}

/* 공식 프로필 히어로 (럿지형 CTA) */
.lg-promo-hero {
  margin: 0 0 20px;
  border: 1px solid #93c5fd;
  border-radius: 16px;
  background: linear-gradient(135deg, #eff6ff 0%, #fff 55%, #fefce8 100%);
  overflow: hidden;
}
.lg-promo-hero-inner {
  padding: 20px 18px 18px;
}
.lg-promo-hero-eyebrow {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1d4ed8;
}
.lg-promo-hero-title {
  margin: 0 0 8px;
  font-size: 1.12rem;
  line-height: 1.45;
  color: #0f172a;
}
.lg-promo-hero-desc {
  margin: 0 0 12px;
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.55;
}
.lg-promo-hero-list {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 10px;
  font-size: 0.82rem;
  color: #334155;
}
.lg-promo-hero-list li::before {
  content: "✓ ";
  color: #2563eb;
  font-weight: 800;
}
.lg-promo-hero-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 6px;
}
.lg-promo-hero-price-k {
  font-size: 0.8rem;
  color: #64748b;
}
.lg-promo-hero-price-v {
  font-size: 1.35rem;
  color: #b45309;
  letter-spacing: -0.02em;
}
.lg-promo-hero-note {
  margin: 0 0 14px;
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.45;
}
.lg-promo-hero-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
}
.lg-btn-promo-cta {
  padding: 10px 14px;
  border-radius: 10px;
  background: #1e3a5f !important;
  border: 2px solid #fbbf24 !important;
  color: #fef3c7 !important;
  font-weight: 800;
  font-size: 0.88rem;
  min-height: 42px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.2);
}
.lg-btn-promo-cta:hover {
  text-decoration: none;
  background: #254a75 !important;
  color: #fff !important;
}
.lg-btn-promo-free {
  padding: 10px 14px;
  border-radius: 10px;
  border: none !important;
  background: #fee500 !important;
  color: #3c1e1e !important;
  font-weight: 800;
  font-size: 0.88rem;
  min-height: 42px;
}
.lg-btn-promo-free:hover {
  text-decoration: none;
  filter: brightness(0.97);
}

/* 접이식 보조 섹션 (SEO HTML 유지) */
.lg-details {
  margin: 0 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
.lg-details > summary {
  padding: 14px 16px;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  list-style: none;
  color: #0f172a;
}
.lg-details > summary::-webkit-details-marker { display: none; }
.lg-details > summary::after {
  content: "＋";
  float: right;
  color: #94a3b8;
  font-weight: 400;
}
.lg-details[open] > summary::after { content: "－"; }
.lg-details--open > summary::after { content: "－"; }
.lg-details-body {
  padding: 0 16px 14px;
  border-top: 1px solid var(--line);
}
.lg-details--open { border-color: #bfdbfe; }
.lg-details--open > summary { background: #f8fafc; }

.lg-footer-trust {
  margin: 10px 0 4px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.78rem;
  line-height: 1.7;
  color: #cbd5e1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
}
.lg-footer-trust strong { color: #f1f5f9; }
.lg-footer-trust a { color: #93c5fd; }
.lg-footer-copy {
  margin: 4px 0 0;
  font-size: 0.75rem;
  color: #94a3b8;
}

@media (min-width: 720px) {
  .lg-promo-hero-inner { padding: 24px 22px 20px; }
  .lg-promo-hero-title { font-size: 1.25rem; }
  .lg-promo-hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
  }
  .lg-btn-promo-cta { flex: 1 1 200px; }
  .lg-btn-promo-free { flex: 1 1 160px; }
}

.lg-promo-list {
  margin: 0 0 14px;
  padding-left: 1.2rem;
  color: #374151;
  line-height: 1.7;
}
.lg-btn-home {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(251, 191, 36, 0.35) !important;
  color: #f8fafc !important;
  font-weight: 700;
  font-size: 0.88rem;
  background: #1e3a5f !important;
  min-height: 42px;
}
.lg-btn-home:hover {
  text-decoration: none;
  background: #254a75 !important;
  color: #fff !important;
}
/* 기도 칸 — embed·본문 스타일 덮어쓰기 방지 */
.lg-prayer-actions .lg-btn-kakao,
.lg-prayer-actions .lg-btn-promo,
.lg-prayer-actions .lg-btn-home {
  box-shadow: none;
}
body.is-embed .lg-prayer-actions .lg-btn-kakao {
  background: #fee500 !important;
  color: #3c1e1e !important;
  border: none !important;
}
body.is-embed .lg-prayer-actions .lg-btn-promo {
  background: rgba(251, 191, 36, 0.12) !important;
  border: 2px solid #fbbf24 !important;
  color: #fef3c7 !important;
}
body.is-embed .lg-prayer-actions .lg-btn-home {
  background: #1e3a5f !important;
  border: 1px solid rgba(251, 191, 36, 0.35) !important;
  color: #f8fafc !important;
}

/* 네이버 지도 */
.lg-map-section .lg-map-addr { font-weight: 700; margin: 0 0 8px; }
.lg-map-panel {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  margin: 12px 0;
  background: #e5e7eb;
}
.lg-map {
  width: 100%;
  height: 320px;
  min-height: 280px;
}
.lg-map-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  color: var(--muted);
  font-size: 0.9rem;
  z-index: 2;
}
.lg-map-fallback[hidden],
.lg-map-fallback.is-hidden {
  display: none !important;
}
.lg-map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
.lg-briefing { margin: 0; line-height: 1.8; color: #374151; }
.lg-hero-sum {
  margin: 0 0 12px;
  padding: 12px 14px;
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  font-size: 0.95rem;
  line-height: 1.75;
  color: #1e3a5f;
  font-weight: 600;
}
.lg-section--brief { background: #fafafa; border-color: #e5e7eb; }
.lg-tabnav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 20px;
  padding: 12px 0 14px;
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}
.lg-tabnav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: clamp(0.75rem, 2.1vw, 0.8125rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none !important;
  color: #1e3a5f;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #c7d2fe;
  box-shadow: 0 1px 2px rgba(30, 58, 138, 0.06);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  text-align: center;
  line-height: 1.3;
  word-break: keep-all;
}
.lg-tabnav a:hover,
.lg-tabnav a:focus-visible {
  background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
  color: #1d4ed8;
  border-color: #60a5fa;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.14);
  outline: none;
}
.lg-tabnav a:active {
  transform: scale(0.98);
}
@media (max-width: 900px) {
  .lg-tabnav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .lg-tabnav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 10px 0 12px;
    margin: 0 0 16px;
  }
  .lg-tabnav a {
    min-height: 46px;
    padding: 10px 12px;
    font-size: 0.875rem;
    border-radius: 12px;
  }
  .lg-section[id] { scroll-margin-top: 96px; }
}
@media (min-width: 901px) {
  .lg-tabnav {
    position: static;
    top: auto;
    z-index: auto;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
  }
  .lg-tabnav a {
    min-height: 44px;
  }
}
.lg-section[id] { scroll-margin-top: 72px; }
.lg-live-badge {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #047857;
  background: #ecfdf5;
  vertical-align: middle;
}
.lg-snapshot-sub { font-size: 0.78rem; color: var(--muted); font-weight: 500; }
.lg-section-sub { font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.lg-similar-list { list-style: none; margin: 0; padding: 0; }
.lg-similar-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.lg-similar-item:last-child { border-bottom: none; }
.lg-similar-meta { display: block; font-size: 0.82rem; color: var(--muted); margin-top: 2px; }
.lg-similar-blurb { margin: 6px 0 0; font-size: 0.88rem; color: #4b5563; line-height: 1.55; }
.lg-support-list { list-style: none; margin: 0; padding: 0; }
.lg-support-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.lg-support-list li:last-child { border-bottom: none; }
.lg-support-list a { font-size: 1rem; }
.lg-support-org {
  display: inline-block;
  margin-left: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #047857;
  background: #ecfdf5;
  padding: 2px 8px;
  border-radius: 4px;
}
.lg-support-list p { margin: 6px 0 0; font-size: 0.85rem; color: var(--muted); }
.lg-faq-list { margin: 0; }
.lg-faq-list > div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.lg-faq-list > div:last-child { border-bottom: none; }
.lg-faq-list dt { font-weight: 800; margin: 0 0 6px; }
.lg-faq-list dd { margin: 0; color: var(--muted); line-height: 1.6; }
.lg-dl--compact > div { grid-column: span 1; }
.lg-checklist {
  margin: 0;
  padding-left: 1.2rem;
  line-height: 1.8;
  color: #374151;
}
.lg-checklist li { margin-bottom: 6px; }


.lg-crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 0.86rem;
  color: var(--muted);
  margin: 0 0 14px;
}
.lg-crumb a { color: #4b5563; font-weight: 600; }
.lg-crumb strong { color: var(--ink); }

.lg-hero {
  background: linear-gradient(145deg, #ffffff 0%, #eef4ff 100%);
  border: 1px solid #dbe4ff;
  border-radius: 20px;
  padding: 22px 22px 18px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}
.lg-hero-kicker {
  margin: 0 0 6px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--blue-dark);
  text-transform: uppercase;
}
.lg-hero h1 { margin: 0 0 8px; font-size: 1.55rem; line-height: 1.3; font-weight: 700; }
.lg-hero-lead { margin: 0 0 14px; color: #4b5563; }

.lg-region-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}
.lg-region-grid--compact { grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); }
.lg-region-card,
.lg-district-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 12px 14px;
  color: inherit;
  box-shadow: 0 2px 10px rgba(17, 24, 39, 0.04);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.lg-region-card:hover,
.lg-district-card:hover {
  transform: translateY(-2px);
  border-color: #bfdbfe;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.12);
  text-decoration: none;
}
/* 마크 + 지역명 한 줄 */
.lg-region-card__row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.lg-region-mark {
  display: block;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: #94a3b8;
}
.lg-region-grid--compact .lg-region-mark {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}
/* 시·도별 색 칩 (글자 없음) */
.lg-region-mark--seoul { background: #e11d48; }
.lg-region-mark--busan { background: #0284c7; }
.lg-region-mark--daegu { background: #dc2626; }
.lg-region-mark--incheon { background: #2563eb; }
.lg-region-mark--gwangju { background: #9333ea; }
.lg-region-mark--daejeon { background: #4f46e5; }
.lg-region-mark--ulsan { background: #059669; }
.lg-region-mark--sejong { background: #d97706; }
.lg-region-mark--gyeonggi { background: #1d4ed8; }
.lg-region-mark--gangwon { background: #0369a1; }
.lg-region-mark--chungbuk { background: #16a34a; }
.lg-region-mark--chungnam { background: #0d9488; }
.lg-region-mark--jeonbuk { background: #65a30d; }
.lg-region-mark--jeonnam { background: #0891b2; }
.lg-region-mark--gyeongbuk { background: #c2410c; }
.lg-region-mark--gyeongnam { background: #1e40af; }
.lg-region-mark--jeju { background: #ea580c; }
.lg-region-mark--foreign { background: #64748b; }
.lg-region-card__row strong,
.lg-district-card strong {
  font-size: 1.05rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.lg-region-card__sub {
  font-size: 0.75rem;
  color: var(--muted);
  padding-left: 22px;
  line-height: 1.2;
}
.lg-region-grid--compact .lg-region-card__sub { display: none; }
.lg-region-card em,
.lg-district-card em {
  margin: 2px 0 0;
  padding-left: 22px;
  font-style: normal;
  font-weight: 800;
  color: var(--blue-dark);
  font-size: 0.9rem;
  line-height: 1.2;
}
.lg-region-grid--compact .lg-region-card em {
  padding-left: 20px;
}
.lg-district-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}

.lg-section-block { margin-bottom: 22px; }
.lg-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.lg-section-head h2 { margin: 0; font-size: 1.1rem; }
.lg-section-head a { font-weight: 700; font-size: 0.9rem; }

.lg-share-btn {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #374151;
  cursor: pointer;
}
.lg-share-btn:hover {
  border-color: #93c5fd;
  color: var(--blue-dark);
  text-decoration: none;
  background: #eff6ff;
}
.lg-share {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 8px;
  position: relative;
  z-index: 24;
}

/* 공식 출처 버튼 (홈택스 · 정부24 · 공공데이터포털) */
.lg-src-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
  position: relative;
  z-index: 24;
}
.lg-src-btns--detail { margin: 4px 0 10px; }
.lg-src-btns--index { margin: 0 0 18px; }
.lg-src-btns--footer {
  justify-content: center;
  margin: 10px 0 8px;
}
.lg-src-btns--footer {
  justify-content: center;
  margin: 8px 0 6px;
}
.lg-src-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px 7px 9px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: #fff;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
.lg-src-btn:hover {
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}
.lg-src-btn__mark {
  display: flex;
  flex-shrink: 0;
  line-height: 0;
}
.lg-src-btn__name {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.lg-src-btn--hometax {
  border-color: #c5d4eb;
  background: #f8fafc;
}
.lg-src-btn--hometax .lg-src-btn__name { color: #003478; }
.lg-src-btn--hometax:hover { border-color: #003478; }
.lg-src-btn--gov24 {
  border-color: #c5d8f0;
  background: #f8fafc;
}
.lg-src-btn--gov24 .lg-src-btn__name { color: #0b4ea2; }
.lg-src-btn--gov24:hover { border-color: #0b4ea2; }
.lg-src-btn--data {
  border-color: #b8e4f8;
  background: #f8fafc;
}
.lg-src-btn--data .lg-src-btn__name { color: #0077b3; }
.lg-src-btn--data:hover { border-color: #00a0e9; }
.lg-meta-row {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0 0 6px;
}

.lg-list--cards li {
  background: #fff;
  border: 2px solid #fff;
  border-radius: 14px;
  padding: 0;
  margin-bottom: 8px;
  list-style: none;
  box-shadow: 0 2px 10px rgba(17, 24, 39, 0.06);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.lg-list--cards li:hover {
  transform: translateY(-1px);
  border-color: #bfdbfe;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.12);
}
.lg-list--cards { padding: 0; background: transparent; border: none; box-shadow: none; }
.lg-list-card {
  display: block;
  padding: 12px 14px;
  color: inherit !important;
  text-decoration: none !important;
}
.lg-list-card:hover { text-decoration: none !important; }
.lg-list--cards a.lg-list-card,
.lg-list--cards a { font-size: 1.02rem; display: block; }
.lg-list-bno {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: #4b5563;
  margin-top: 2px;
}

.lg-site-card {
  display: block;
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0f172a, #1e3a8a);
  color: #fff !important;
  text-decoration: none !important;
}
.lg-site-card-k {
  display: block;
  font-size: 0.75rem;
  opacity: 0.8;
  margin-bottom: 4px;
}
.lg-site-card strong { display: block; font-size: 1rem; word-break: break-all; }
.lg-site-card span { display: block; margin-top: 6px; font-size: 0.82rem; opacity: 0.85; }

.lg-pager {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
  margin: 18px 0 8px;
  font-weight: 700;
}
.lg-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 8px 0;
}
.lg-footer-links a { color: #4b5563; font-weight: 600; font-size: 0.86rem; }
.lg-footer-note { font-size: 0.8rem; color: #9ca3af; max-width: 720px; margin: 0 auto; line-height: 1.5; }

/* 앱 임베드: 흐린 파랑 단색 — 박스·칸 구분 제거 */
body.is-embed {
  --bg: #eef4fc;
  --card: transparent;
  --line: rgba(37, 99, 235, 0.1);
  background: #eef4fc !important;
}
body.is-embed .lg-wrap,
body.is-embed .lg-header,
body.is-embed .lg-hub,
body.is-embed .lg-index,
body.is-embed .lg-index--google {
  background: #eef4fc !important;
}
body.is-embed .lg-hero,
body.is-embed .lg-hero--compact,
body.is-embed .lg-hero--google {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 0 10px !important;
  margin-bottom: 10px !important;
}
body.is-embed .lg-list,
body.is-embed .lg-list--cards {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}
body.is-embed .lg-list--cards li,
body.is-embed .lg-list li {
  background: #fff !important;
  border: 2px solid #fff !important;
  border-radius: 14px !important;
  box-shadow: 0 2px 10px rgba(17, 24, 39, 0.06) !important;
  margin-bottom: 8px !important;
  padding: 0 !important;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
body.is-embed .lg-list--cards li:hover,
body.is-embed .lg-list li:hover {
  transform: translateY(-1px);
  border-color: #bfdbfe !important;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.12) !important;
}
body.is-embed .lg-list--cards .lg-list-card,
body.is-embed .lg-list--cards a.lg-list-card {
  padding: 12px 14px !important;
}
body.is-embed .lg-list li:last-child {
  border-bottom: 2px solid #fff !important;
}
body.is-embed .lg-hub-home-btn,
body.is-embed .lg-kind-picker-btn {
  border: 2px solid #fff !important;
  background: #fff !important;
  box-shadow: 0 2px 8px rgba(17, 24, 39, 0.06) !important;
}
/* 지역·업종 버튼 — 흰색 카드 유지 (클릭 가능하게) */
body.is-embed .lg-region-card,
body.is-embed .lg-district-card {
  background: #fff !important;
  border: 1px solid var(--line) !important;
  border-radius: 14px !important;
  box-shadow: 0 2px 10px rgba(17, 24, 39, 0.04) !important;
  padding: 12px 12px 14px !important;
}
body.is-embed .lg-region-card:hover,
body.is-embed .lg-district-card:hover {
  transform: translateY(-2px) !important;
  border-color: #bfdbfe !important;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.12) !important;
  background: #fff !important;
}
body.is-embed .lg-index-search--google {
  background: #fff !important;
  border: 1px solid #dfe1e5 !important;
  box-shadow: 0 1px 6px rgba(32, 33, 36, 0.1) !important;
}
body.is-embed .lg-src-btn {
  background: #fff !important;
}
body.is-embed .lg-section,
body.is-embed .lg-section-muted {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
body.is-embed .lg-crumb {
  margin-bottom: 10px;
}
body.is-embed .lg-district-grid,
body.is-embed .lg-region-grid,
body.is-embed .lg-region-grid--compact,
body.is-embed .lg-browse,
body.is-embed .lg-browse-block,
body.is-embed .lg-section-block,
body.is-embed .lg-main,
body.is-embed .lg-note {
  background: #eef4fc !important;
  background-image: none !important;
}
@media (max-width: 768px) {
  body.is-embed .lg-main {
    width: 100% !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
  }
  body.is-embed .lg-head {
    gap: 14px !important;
  }
  body.is-embed .lg-snapshot {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  body.is-embed .lg-head h1 {
    font-size: 1.35rem !important;
    overflow-wrap: anywhere;
  }
  body.is-embed .lg-lead,
  body.is-embed .lg-h1-meta,
  body.is-embed .lg-hero-sum {
    max-width: 100% !important;
  }
}
body.is-embed .lg-share,
body.is-embed .lg-src-btns,
body.is-embed .lg-meta-row {
  flex-wrap: wrap;
}
body.is-embed .lg-list-card,
body.is-embed .lg-list--cards a.lg-list-card {
  word-break: break-word;
  overflow-wrap: anywhere;
}
body.is-embed,
html:has(body.is-embed) {
  overflow: visible !important;
  height: auto !important;
  min-height: 0 !important;
  background: #eef4fc !important;
  background-image: none !important;
}

/* —— 사업자 상세 C: 판정 히어로 · 타이핑 · 접기 (2026-07) —— */
.lg-type-target:not(.lg-type-ready) {
  display: none;
}
@media (prefers-reduced-motion: reduce) {
  .lg-type-target:not(.lg-type-ready) {
    display: block;
  }
}
.lg-verdict-hero {
  margin: 0 0 14px;
  padding: 16px 18px 14px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92) 0%, rgba(248, 250, 252, 0.88) 100%);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  max-width: 640px;
}
.lg-verdict-hero--ok {
  border-color: rgba(16, 185, 129, 0.35);
  background: linear-gradient(145deg, rgba(236, 253, 245, 0.95) 0%, rgba(255, 255, 255, 0.9) 55%, rgba(239, 246, 255, 0.92) 100%);
}
.lg-verdict-hero--warn {
  border-color: rgba(245, 158, 11, 0.45);
  background: linear-gradient(145deg, rgba(255, 251, 235, 0.96) 0%, rgba(255, 255, 255, 0.9) 100%);
}
.lg-claude-mark {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 2px 0 8px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(17, 24, 39, 0.16);
  background: linear-gradient(135deg, rgba(255, 237, 213, 0.96), rgba(255, 255, 255, 0.96));
  color: #111827;
  font-size: 0.68rem;
  letter-spacing: 0.02em;
}
.lg-claude-mark-ico {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
}
.lg-verdict-hero-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  margin-bottom: 12px;
}
.lg-verdict-kicker {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}
.lg-verdict-title {
  font-size: clamp(1.15rem, 2.8vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
}
.lg-verdict-hero--ok .lg-verdict-title { color: #047857; }
.lg-verdict-hero--warn .lg-verdict-title { color: #c2410c; }
.lg-verdict-scan {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.04);
}
.lg-verdict-scan-node {
  flex: 0 0 auto;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  color: #334155;
  transition: border-color 0.35s ease, box-shadow 0.35s ease, color 0.35s ease;
}
.lg-verdict-scan-beam {
  flex: 1 1 auto;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #94a3b8 0%, #cbd5e1 50%, #94a3b8 100%);
  background-size: 200% 100%;
  animation: lgVerdictBeam 1.1s ease-in-out infinite;
}
.lg-verdict-scan--done .lg-verdict-scan-beam {
  animation: none;
  background: linear-gradient(90deg, #10b981, #2563eb);
}
.lg-verdict-scan--done .lg-verdict-scan-node--ftc,
.lg-verdict-scan--done .lg-verdict-scan-node--nts {
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.12);
  color: #065f46;
}
@keyframes lgVerdictBeam {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
.lg-verdict-sub {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.55;
  color: #475569;
}
.lg-hero-sum {
  margin: 0 0 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.95) 0%, rgba(240, 253, 244, 0.92) 100%);
  border: 1px solid rgba(59, 130, 246, 0.22);
  border-radius: 12px;
  font-size: 0.96rem;
  line-height: 1.78;
  color: #0f2744;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  min-height: 3.2em;
}
.lg-hero-sum.lg-type-live {
  border-color: rgba(37, 99, 235, 0.35);
}
.lg-type-caret {
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 2px;
  vertical-align: -0.12em;
  background: #2563eb;
  animation: lgTypeCaret 0.75s step-end infinite;
}
@keyframes lgTypeCaret {
  50% { opacity: 0; }
}
.lg-lead-fold {
  margin: 0 0 12px;
  max-width: 640px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fafbfc;
  overflow: hidden;
}
.lg-lead-fold > summary {
  cursor: pointer;
  list-style: none;
  padding: 11px 14px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #334155;
  user-select: none;
}
.lg-lead-fold > summary::-webkit-details-marker { display: none; }
.lg-lead-fold > summary::after {
  content: '▾';
  float: right;
  opacity: 0.55;
  font-size: 0.8rem;
}
.lg-lead-fold[open] > summary::after { content: '▴'; }
.lg-lead-fold-body {
  padding: 0 14px 12px;
  border-top: 1px solid var(--line);
}
.lg-lead-fold .lg-lead { margin-top: 10px; font-size: 0.9rem; line-height: 1.7; }
.lg-briefing--type {
  min-height: 2.5em;
}
.lg-trust-ring-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lg-trust-ring {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}
.lg-trust-ring-svg {
  width: 44px;
  height: 44px;
  display: block;
}
.lg-trust-ring-track {
  stroke: rgba(255, 255, 255, 0.22);
}
.lg-trust-ring-fill {
  stroke: #fde68a;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.8s ease;
}
.lg-trust-ring-num {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
}
.lg-snapshot-v--trust {
  font-size: 1.35rem;
  line-height: 1;
}
.lg-trust-denom {
  font-size: 0.72rem;
  font-weight: 700;
  opacity: 0.75;
  margin-left: 1px;
}
.lg-snapshot-item--trust .lg-snapshot-hint { margin-top: 4px; }
@media (prefers-reduced-motion: reduce) {
  .lg-verdict-scan-beam { animation: none !important; }
  .lg-type-caret { display: none !important; }
  .lg-verdict-scan--done .lg-verdict-scan-beam {
    background: linear-gradient(90deg, #10b981, #2563eb);
  }
}
.lg-brief-hero {
  grid-column: 1 / -1;
  width: 100%;
  margin: 14px 0 0;
  padding: 30px 18px 14px;
  border-radius: 14px;
  border: 1px solid rgba(99, 102, 241, 0.22);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.96) 0%, rgba(238, 242, 255, 0.92) 48%, rgba(240, 253, 244, 0.9) 100%);
  box-shadow: 0 12px 32px rgba(79, 70, 229, 0.08);
}
.lg-brief-hero-title {
  margin: 0 0 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: none;
  color: #4338ca;
}
.lg-gemini-mark {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(99, 102, 241, 0.24);
  background: linear-gradient(135deg, rgba(219, 234, 254, 0.95), rgba(237, 233, 254, 0.95), rgba(220, 252, 231, 0.95));
  color: #312e81;
  font-size: 0.66rem;
  letter-spacing: 0.02em;
}
.lg-gemini-mark-ico {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
}
.lg-brief-title-text {
  color: #4338ca;
  letter-spacing: 0.04em;
  font-size: 0.86rem;
  line-height: 1.2;
}
.lg-brief-hero .lg-briefing {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.82;
  color: #1e293b;
  min-height: 4.5em;
}
.lg-brief-hero .lg-note {
  margin-top: 10px;
  margin-bottom: 0;
}
.lg-inline-brief {
  margin-top: 8px;
  padding: 14px 14px 12px;
  border-radius: 12px;
  border: 1px solid rgba(99, 102, 241, 0.22);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.96) 0%, rgba(238, 242, 255, 0.92) 48%, rgba(240, 253, 244, 0.9) 100%);
  box-shadow: 0 10px 24px rgba(79, 70, 229, 0.08);
}
.lg-inline-brief-head {
  margin: 1.1em 0 0;
}
.lg-inline-brief .lg-briefing {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.82;
  color: #1e293b;
}
.lg-inline-brief .lg-note {
  display: none;
  margin-top: 10px;
  margin-bottom: 0;
}
.lg-inline-brief.lg-inline-brief--note-ready .lg-note {
  display: block;
}
@media (max-width: 800px) {
  .lg-brief-hero { padding: 26px 14px 12px; }
  .lg-brief-hero-title { gap: 5px; }
  .lg-gemini-mark { padding: 2px 7px; }
  .lg-brief-title-text { font-size: 0.82rem; }
  .lg-brief-hero .lg-briefing { font-size: 0.9rem; }
  .lg-inline-brief-head { margin-top: 1em; }
  .lg-inline-brief { margin-top: 6px; }
  .lg-inline-brief .lg-briefing { font-size: 0.9rem; }
}
