/* ─────────────────────────────────────────────
   보디야나선원 홈페이지
   한지 빛 바탕 · 먹색 글씨 · 로고의 붉은 낙관 · 청사포 바다
   제목 Noto Serif KR / 본문 Noto Sans KR
   ───────────────────────────────────────────── */

:root {
  --paper: #fbf7f0;
  --paper-2: #f4ede2;
  --paper-3: #ebe2d3;
  --card: #fffdf9;
  --ink: #2b2420;
  --ink-2: #574c43;
  --ink-3: #7f7266;
  --line: #e6dccc;
  --line-2: #d6c9b5;
  --seal: #cd171c;
  --accent: #b3261e;
  --accent-ink: #8e1c16;
  --accent-soft: #f7e4dc;
  --sea: #2a5f6d;
  --sea-soft: #e0ecee;
  --night: #191512;
  --night-2: #241e1a;
  --night-ink: #f3ebe0;
  --night-ink-2: #c4b7a8;
  --radius: 22px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(43, 36, 32, .05), 0 18px 40px -20px rgba(43, 36, 32, .28);
  --max: 1180px;
  --gutter: clamp(18px, 4vw, 36px);
  --header-h: 76px;
  --serif: "Noto Serif KR", "Nanum Myeongjo", "AppleMyungjo", serif;
  --sans: "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  /* 한지 결 */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .32 0 0 0 0 .25 0 0 0 0 .18 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--paper) var(--grain);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.78;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
b, strong { font-weight: 700; }
/* 빨리어 로마자(ā, ī 등)는 라틴 글꼴로 */
[lang="pi"] { font-family: Georgia, "Times New Roman", serif; font-style: italic; letter-spacing: .01em; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
  margin: 0 0 .6em;
  color: inherit;
}
h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); line-height: 1.2; }
h2 { font-size: clamp(1.75rem, 3.3vw, 2.5rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; }
.h3like { font-size: clamp(1.35rem, 2.2vw, 1.62rem); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }

:focus-visible { outline: 3px solid var(--sea); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: -9999px; top: 12px; z-index: 100;
  background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px;
}
.skip:focus { left: 16px; color: #fff; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.alt { background: var(--paper-2) var(--grain); }
.dark { background: var(--night); color: var(--night-ink); }

/* 낙관 모양 머리표 */
.eyebrow {
  display: inline-flex; align-items: center; gap: .65em;
  font-family: var(--sans); font-size: .8rem; font-weight: 700;
  letter-spacing: .18em; color: var(--accent);
  margin: 0 0 16px;
}
.eyebrow::before {
  content: ""; width: 9px; height: 9px; border-radius: 2px;
  background: var(--seal); transform: rotate(45deg);
}
.dark .eyebrow, .on-photo .eyebrow { color: #f1b9a9; }
.dark .eyebrow::before, .on-photo .eyebrow::before { background: #e8483f; }

.lead { font-size: 1.14rem; color: var(--ink-2); }
.dark p, .dark .lead { color: var(--night-ink-2); }
.muted { color: var(--ink-3); }
.note { margin-top: 24px; font-size: .95rem; color: var(--ink-3); }
.note a { color: var(--ink-2); font-weight: 600; }

/* 아이콘 */
.ic { width: 1.25em; height: 1.25em; flex: none; vertical-align: -0.22em; }

/* 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.45em; border-radius: 999px;
  font-family: var(--sans); font-weight: 700; font-size: .97rem; line-height: 1.2;
  text-decoration: none; border: 1.5px solid transparent;
  transition: background .25s, color .25s, border-color .25s, transform .25s;
  cursor: pointer;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); color: #fff; }
.btn-ghost { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--paper-2); color: var(--ink); }
.dark .btn-ghost, .on-photo .btn-ghost { border-color: rgba(255, 250, 242, .42); color: #fff; }
.dark .btn-ghost:hover, .on-photo .btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .08); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.btn-row.center { justify-content: center; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .45em;
  font-weight: 700; text-decoration: none; color: var(--ink);
  border-bottom: 1.5px solid var(--line-2); padding-bottom: 3px; margin-top: 8px;
}
.link-arrow::after { content: "→"; transition: transform .25s; }
.link-arrow:hover { border-color: var(--accent); color: var(--accent); }
.link-arrow:hover::after { transform: translateX(4px); }
.dark .link-arrow { color: var(--night-ink); border-color: rgba(243, 235, 224, .3); }

/* 배지 */
.badge {
  display: inline-block; padding: 3px 11px; border-radius: 999px;
  font-size: .78rem; font-weight: 700; letter-spacing: .02em; line-height: 1.6;
  background: var(--accent); color: #fff; white-space: nowrap;
}
.badge.soft { background: var(--accent-soft); color: var(--accent-ink); }
.badge.sea { background: var(--sea-soft); color: var(--sea); }
.badge.line { background: transparent; border: 1px solid var(--line-2); color: var(--ink-2); }

/* ───── 머리글 ───── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 247, 240, .94);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: background .35s, border-color .35s;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.brand { display: block; flex: none; }
.brand img { height: 46px; width: auto; }
.brand .logo-white { display: none; }

.nav { display: flex; align-items: center; gap: 2px; }
.nav > a {
  position: relative; padding: 8px 13px; border-radius: 8px;
  font-size: .98rem; font-weight: 500; color: var(--ink-2); text-decoration: none; white-space: nowrap;
  transition: color .2s, background .2s;
}
.nav > a:hover { color: var(--ink); background: rgba(43, 36, 32, .05); }
.nav > a[aria-current="page"] { color: var(--ink); font-weight: 700; }
.nav > a[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: -2px; width: 6px; height: 6px; margin-left: -3px;
  border-radius: 1px; background: var(--seal); transform: rotate(45deg);
}
.nav .cafe-btn {
  display: inline-flex; align-items: center; gap: 8px; margin-left: 12px;
  padding: 7px 15px 7px 9px; border: 1.5px solid var(--line-2); border-radius: 999px;
  font-weight: 700; font-size: .92rem; color: var(--ink);
}
.nav .cafe-btn:hover { border-color: #03c75a; background: transparent; }
.nav .cafe-btn::after { display: none; }
.naver-n {
  display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 5px;
  background: #03c75a; color: #fff; font: 800 12px/1 var(--sans);
}

.menu-toggle {
  display: none; align-items: center; justify-content: center;
  width: 46px; height: 46px; margin-right: -8px; border: 0; border-radius: 10px;
  background: transparent; color: var(--ink); cursor: pointer;
}
.menu-toggle .ic { width: 26px; height: 26px; }
.menu-toggle .ic-close { display: none; }
.nav-open .menu-toggle .ic-menu { display: none; }
.nav-open .menu-toggle .ic-close { display: block; }

/* 사진 위의 투명 머리글 (맨 위에 있을 때만) */
.has-hero:not(.nav-open) .site-header:not(.scrolled) {
  background: transparent; border-bottom-color: transparent;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.has-hero:not(.nav-open) .site-header:not(.scrolled) .logo-ink { display: none; }
.has-hero:not(.nav-open) .site-header:not(.scrolled) .logo-white { display: block; }
.has-hero:not(.nav-open) .site-header:not(.scrolled) .nav > a { color: rgba(255, 250, 242, .9); text-shadow: 0 1px 10px rgba(0, 0, 0, .25); }
.has-hero:not(.nav-open) .site-header:not(.scrolled) .nav > a:hover { color: #fff; background: rgba(255, 255, 255, .12); }
.has-hero:not(.nav-open) .site-header:not(.scrolled) .nav > a[aria-current="page"] { color: #fff; }
.has-hero:not(.nav-open) .site-header:not(.scrolled) .nav > a[aria-current="page"]::after { background: #fff; }
.has-hero:not(.nav-open) .site-header:not(.scrolled) .cafe-btn { border-color: rgba(255, 255, 255, .5); color: #fff; text-shadow: none; }
.has-hero:not(.nav-open) .site-header:not(.scrolled) .menu-toggle { color: #fff; }

@media (max-width: 1020px) {
  :root { --header-h: 64px; }
  .brand img { height: 38px; }
  .menu-toggle { display: inline-flex; }
  .nav {
    display: none; position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 40px; background: var(--paper) var(--grain);
    border-top: 1px solid var(--line); overflow-y: auto;
  }
  .nav-open .nav { display: flex; }
  .nav-open { overflow: hidden; }
  /* 흐림 효과가 있으면 펼친 메뉴가 화면이 아니라 머리글 안에 갇히므로 메뉴를 열 때는 끈다 */
  .nav-open .site-header { background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav > a { padding: 17px 4px; font-family: var(--serif); font-size: 1.25rem; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav > a:hover { background: transparent; }
  .nav > a[aria-current="page"] { color: var(--accent); }
  .nav > a[aria-current="page"]::after { left: auto; right: 8px; top: 50%; bottom: auto; margin-top: -3px; }
  .nav .cafe-btn { justify-content: center; margin: 24px 0 0; padding: 15px; font-family: var(--sans); font-size: 1rem; border: 1.5px solid var(--line-2); border-radius: 999px; }
}

/* ───── 첫 화면 (홈) ───── */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: flex-end;
  min-height: min(94vh, 900px);
  margin-top: calc(-1 * var(--header-h));
  padding: calc(var(--header-h) + 72px) 0 clamp(120px, 14vw, 170px);
  color: #fff;
  background: #2b2420;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 64% 50%; }
@media (prefers-reduced-motion: no-preference) {
  .hero-bg img { animation: slowZoom 18s ease-out both; }
}
@keyframes slowZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(22, 17, 14, .82) 0%, rgba(22, 17, 14, .58) 34%, rgba(22, 17, 14, .12) 66%, rgba(22, 17, 14, 0) 100%),
    linear-gradient(0deg, rgba(22, 17, 14, .55) 0%, rgba(22, 17, 14, 0) 42%),
    linear-gradient(180deg, rgba(22, 17, 14, .45) 0%, rgba(22, 17, 14, 0) 22%);
}
.hero-text { max-width: 640px; }
.hero h1 { font-size: clamp(2.7rem, 6.6vw, 5.2rem); line-height: 1.14; letter-spacing: -0.025em; margin-bottom: .4em; text-shadow: 0 2px 30px rgba(0, 0, 0, .25); }
.hero .lead { color: rgba(255, 250, 242, .88); max-width: 31em; font-size: clamp(1.05rem, 1.6vw, 1.2rem); }
.hero-vertical {
  position: absolute; right: clamp(18px, 4.5vw, 64px); top: 52%; transform: translateY(-50%);
  writing-mode: vertical-rl; font-family: var(--serif); font-size: clamp(.95rem, 1.3vw, 1.15rem);
  letter-spacing: .55em; color: rgba(255, 255, 255, .9); text-shadow: 0 1px 14px rgba(0, 0, 0, .45);
  display: flex; align-items: center; gap: 18px;
}
.hero-vertical::after { content: ""; width: 1px; height: 64px; background: rgba(255, 255, 255, .6); }
.scroll-cue {
  position: absolute; left: 50%; bottom: 96px; width: 1px; height: 48px; overflow: hidden;
  background: rgba(255, 255, 255, .25);
}
.scroll-cue::after { content: ""; position: absolute; left: 0; top: -48px; width: 1px; height: 48px; background: #fff; animation: cue 2.4s ease-in-out infinite; }
@keyframes cue { to { top: 48px; } }

/* 첫 화면 아래 걸친 일정 띠 */
.hero-strip { position: relative; z-index: 2; margin-top: clamp(-96px, -9vw, -70px); }
.strip {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.strip > div { padding: 22px 26px; border-left: 1px solid var(--line); }
.strip > div:first-child { border-left: 0; }
.strip span { display: block; font-size: .83rem; font-weight: 700; letter-spacing: .08em; color: var(--accent); }
.strip b { display: block; margin-top: 4px; font-family: var(--serif); font-size: 1.12rem; font-weight: 600; color: var(--ink); }
.strip small { display: block; color: var(--ink-3); font-size: .85rem; }

.notice {
  display: flex; align-items: center; gap: 12px 18px; flex-wrap: wrap;
  margin-top: 14px; padding: 15px 22px; border-radius: 16px; text-decoration: none;
  background: var(--night); color: var(--night-ink);
}
.notice:hover { color: #fff; background: #000; }
.notice-text { flex: 1 1 320px; color: var(--night-ink-2); }
.notice-text strong { color: #fff; margin-right: 6px; }
.notice-go { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: #fff; white-space: nowrap; }

@media (max-width: 900px) {
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip > div:nth-child(3) { border-left: 0; }
  .strip > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 900px) {
  .hero::before {
    background:
      linear-gradient(0deg, rgba(22, 17, 14, .92) 0%, rgba(22, 17, 14, .74) 42%, rgba(22, 17, 14, .28) 72%, rgba(22, 17, 14, .1) 100%),
      linear-gradient(180deg, rgba(22, 17, 14, .55) 0%, rgba(22, 17, 14, 0) 24%);
  }
}
@media (max-width: 760px) {
  .hero { min-height: 88svh; align-items: flex-end; padding-bottom: 120px; }
  .hero-bg img { object-position: 70% 50%; }
  .hero-vertical { top: calc(var(--header-h) + 24px); transform: none; font-size: .9rem; }
  .hero-vertical::after { height: 36px; }
  .scroll-cue { display: none; }
  .strip > div { padding: 15px 16px; }
  .strip b { font-size: .98rem; letter-spacing: -0.02em; }
  .strip small { font-size: .8rem; }
}

/* ───── 하위 페이지 첫 화면 ───── */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: flex-end;
  min-height: clamp(380px, 58vh, 560px);
  margin-top: calc(-1 * var(--header-h));
  padding: calc(var(--header-h) + 56px) 0 clamp(44px, 6vw, 76px);
  color: #fff; background: #2b2420;
}
.page-hero .hero-bg img { object-position: var(--pos, 50% 50%); }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(0deg, rgba(22, 17, 14, .8) 0%, rgba(22, 17, 14, .35) 50%, rgba(22, 17, 14, .1) 100%),
    linear-gradient(90deg, rgba(22, 17, 14, .55) 0%, rgba(22, 17, 14, 0) 70%),
    linear-gradient(180deg, rgba(22, 17, 14, .45) 0%, rgba(22, 17, 14, 0) 25%);
}
.page-hero h1 { margin-bottom: .3em; text-shadow: 0 2px 26px rgba(0, 0, 0, .3); }
.page-hero .lead { color: rgba(255, 250, 242, .88); max-width: 620px; margin: 0; }

.jump-bar { position: sticky; top: var(--header-h); z-index: 30; background: rgba(251, 247, 240, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.jump { display: flex; gap: 4px; overflow-x: auto; padding: 10px 0; scrollbar-width: none; }
.jump::-webkit-scrollbar { display: none; }
.jump a {
  flex: none; padding: 7px 15px; border-radius: 999px; text-decoration: none;
  font-size: .92rem; font-weight: 600; color: var(--ink-2);
}
.jump a:hover { background: var(--paper-2); color: var(--ink); }

/* ───── 공통 배치 ───── */
.split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 96px); align-items: center;
}
.split.reverse > :first-child { order: 2; }
.split.wide-left { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
@media (max-width: 860px) {
  .split, .split.wide-left { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
}

.media-frame { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper-3); }
.media-frame.tall { aspect-ratio: 4 / 4.7; }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame figcaption, .media-cap {
  position: absolute; left: 16px; bottom: 14px; padding: 4px 12px; border-radius: 999px;
  font-size: .8rem; color: #fff; background: rgba(25, 21, 18, .5);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}

.section-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 56px;
  margin-bottom: clamp(32px, 4.5vw, 52px); flex-wrap: wrap;
}
.section-head h2 { margin-bottom: 0; }
.section-head > p { max-width: 500px; margin: 0; color: var(--ink-2); }
.dark .section-head > p { color: var(--night-ink-2); }
.section-foot { margin: 30px 0 0; color: var(--ink-3); font-size: .95rem; }
.section-foot a { color: var(--ink-2); font-weight: 700; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.mt-lg { margin-top: clamp(48px, 6vw, 80px); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }

.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: inherit;
  transition: border-color .3s, box-shadow .3s, transform .3s;
}
a.card:hover { color: inherit; border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-3px); }
.card-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-3); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s ease; }
a.card:hover .card-media img { transform: scale(1.04); }
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 24px 26px 28px; flex: 1; }
.card-body h3 { margin: 2px 0 2px; }
.card-body p { margin: 0; color: var(--ink-2); }
.card-body .meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.card-more { margin-top: auto !important; padding-top: 14px; font-weight: 700; color: var(--accent) !important; }

.num { font-family: var(--serif); font-size: 2.6rem; font-weight: 500; line-height: 1; color: var(--seal); letter-spacing: -0.02em; }
.num small { display: block; margin-top: 10px; font-family: var(--sans); font-size: .74rem; font-weight: 700; letter-spacing: .18em; color: var(--ink-3); }

.panel {
  display: block; padding: clamp(26px, 3.2vw, 40px); border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line); color: inherit; text-decoration: none;
}
a.panel { transition: border-color .3s, box-shadow .3s, transform .3s; }
a.panel:hover { color: inherit; border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-3px); }
.panel h3 { margin-bottom: .4em; }
.panel p:last-child { margin-bottom: 0; }
.panel .btn-row { margin-top: 22px; }

.icon {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
  background: var(--paper-2); color: var(--accent); margin-bottom: 18px;
}
.icon .ic { width: 24px; height: 24px; }

/* ───── 이름 풀이 ───── */
.etym {
  position: relative; overflow: hidden; padding: clamp(32px, 5vw, 56px);
  border-radius: var(--radius); background: var(--card); border: 1px solid var(--line);
}
.etym .mark { position: absolute; right: -40px; bottom: -40px; width: 260px; opacity: .06; pointer-events: none; }
.etym dl { margin: 0; display: grid; gap: 4px; }
.etym .row { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 6px 22px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.etym dt { font-family: var(--serif); font-size: clamp(2rem, 4.2vw, 2.9rem); font-weight: 600; line-height: 1.1; }
.etym dt i { display: block; margin-top: 6px; font-family: Georgia, "Times New Roman", serif; font-size: .95rem; font-weight: 400; color: var(--ink-3); letter-spacing: .04em; }
.etym dd { margin: 0; font-size: 1.15rem; color: var(--ink-2); }
.etym .plus { font-family: var(--serif); font-size: 1.4rem; color: var(--ink-3); text-align: left; padding: 2px 0; }
.etym .sum { margin: 26px 0 0; display: flex; align-items: center; gap: 14px; font-family: var(--serif); font-size: clamp(1.35rem, 2.4vw, 1.75rem); font-weight: 600; }
.etym .sum img { width: 46px; height: 46px; border-radius: 8px; }

/* ───── 인용 ───── */
.quote {
  position: relative; margin: 0 0 18px; padding-top: 34px;
  font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 1.95rem); line-height: 1.62; font-weight: 500;
}
.quote::before {
  content: "\201C"; position: absolute; top: -18px; left: -4px;
  font-family: Georgia, "Times New Roman", serif; font-size: 4.6rem; line-height: 1; color: var(--seal);
}
.cite { font-size: .95rem; color: var(--ink-3); margin-bottom: 22px; }
.sign { font-family: var(--serif); font-size: 1.05rem; color: var(--ink); }

/* 사진 위 큰 인용 띠 */
.quote-band {
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
  padding: clamp(110px, 16vw, 200px) 0; background: var(--night);
}
.quote-band .hero-bg img { object-position: 30% 45%; opacity: .9; }
.quote-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(25, 21, 18, .15) 0%, rgba(25, 21, 18, .55) 45%, rgba(25, 21, 18, .92) 75%),
    linear-gradient(0deg, var(--night) 0%, rgba(25, 21, 18, 0) 30%);
}
.quote-band .wrap { display: flex; justify-content: flex-end; }
.quote-band blockquote { max-width: 560px; margin: 0; }
.quote-band blockquote p { font-family: var(--serif); font-size: clamp(1.45rem, 2.8vw, 2.1rem); line-height: 1.65; color: #fff; margin: 0 0 .5em; }
.quote-band blockquote p + p { color: rgba(255, 250, 242, .78); font-size: clamp(1.15rem, 2vw, 1.45rem); }
.quote-band .cite { color: var(--night-ink-2); margin-top: 22px; display: flex; align-items: center; gap: 10px; }
.quote-band .cite::before { content: ""; width: 28px; height: 1px; background: currentColor; }
@media (max-width: 760px) {
  .quote-band::before { background: linear-gradient(0deg, rgba(25, 21, 18, .95) 0%, rgba(25, 21, 18, .7) 55%, rgba(25, 21, 18, .35) 100%); }
  .quote-band .hero-bg img { object-position: 25% 40%; }
}

/* ───── 수행 카드 ───── */
.practice-card { padding: 30px 28px 28px; }
.practice-card .num { margin-bottom: 22px; }
.practice-card h3 { font-size: 1.4rem; margin-bottom: 4px; }
.practice-card .when { font-weight: 700; color: var(--accent); margin-bottom: 12px; }
.practice-card p { color: var(--ink-2); margin-bottom: 0; }
.today-flag { position: absolute; top: 28px; right: 26px; display: none; }
.is-today .today-flag { display: inline-block; }
.practice-card.is-today { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

/* ───── 법문 (어두운 띠) ───── */
.dharma-sec { padding-top: clamp(40px, 6vw, 72px); }
.video {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
  background: #000; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .7);
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-cap { margin: 12px 4px 0; font-size: .88rem; color: var(--ink-3); }
.dark .video-cap { color: var(--night-ink-2); }
.video-cap a { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.dark .video-cap a:hover { color: #fff; }

/* 파일로 열었을 때 영상 대신 보이는 유튜브 단추 */
.yt-fallback {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 24px; text-align: center; text-decoration: none; color: #fff;
  background: linear-gradient(rgba(20, 16, 14, .55), rgba(20, 16, 14, .78)), url("../img/ajanta-800.jpg") center / cover;
}
.yt-fallback:hover { color: #fff; }
.yt-fallback-play {
  width: 68px; height: 48px; border-radius: 14px; background: #ff0033;
  display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); transition: transform .25s;
}
.yt-fallback-play::after { content: ""; border-left: 18px solid #fff; border-top: 11px solid transparent; border-bottom: 11px solid transparent; margin-left: 4px; }
.yt-fallback:hover .yt-fallback-play { transform: scale(1.06); }
.yt-fallback b { font-size: 1.12rem; }
.yt-fallback small { max-width: 30em; font-size: .82rem; line-height: 1.6; color: rgba(255, 250, 242, .72); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chip {
  padding: 7px 15px; border-radius: 999px; font-size: .92rem; text-decoration: none;
  border: 1px solid var(--line-2); color: var(--ink-2);
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.dark .chip { border-color: rgba(243, 235, 224, .22); color: var(--night-ink); }
.dark .chip:hover { background: rgba(243, 235, 224, .08); border-color: rgba(243, 235, 224, .55); color: #fff; }

/* ───── 카페·후원 ───── */
.duo .panel { position: relative; overflow: hidden; padding: clamp(30px, 4.4vw, 52px); }
.duo .panel h2 { margin-bottom: .5em; }
.duo .panel .mark { position: absolute; right: -30px; top: -30px; width: 200px; opacity: .07; pointer-events: none; }
.cafe-panel { background: linear-gradient(165deg, #fffdf9 0%, #eef5ee 100%); }
.support-panel { background: linear-gradient(165deg, #fffdf9 0%, #f9e9e2 100%); }
.stat { display: flex; align-items: baseline; gap: 2px; margin: 6px 0 14px; }
.stat b { font-family: var(--serif); font-size: 2.2rem; font-weight: 600; color: #11864a; line-height: 1; }
.stat span { color: var(--ink-3); font-size: .92rem; }

/* ───── 오시는 길 요약 ───── */
.info-list { list-style: none; display: grid; gap: 14px; margin: 8px 0 0; }
.info-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.info-list .ic { color: var(--accent); margin-top: 4px; }
.info-list a { color: var(--ink); font-weight: 700; text-decoration: none; }
.map-frame { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; }
.map-frame img { width: 100%; height: auto; transition: transform .9s ease; }
.map-frame:hover img { transform: scale(1.02); }

/* ───── 소개 ───── */
.prose-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(36px, 6vw, 104px); }
.prose { font-size: 1.07rem; color: var(--ink-2); }
.prose p { margin-bottom: 1.15em; }
.prose .sign { text-align: right; margin-top: 1.8em; }
.big-quote { font-family: var(--serif); font-size: clamp(1.8rem, 3.6vw, 2.7rem); line-height: 1.42; color: var(--ink); margin-bottom: .45em; }
.prose-aside { position: sticky; top: calc(var(--header-h) + 36px); align-self: start; }
.prose-aside .mark { width: 92px; margin-top: 28px; opacity: .9; }
@media (max-width: 860px) {
  .prose-grid { grid-template-columns: 1fr; }
  .prose-aside { position: static; }
}

.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.gallery figure { position: relative; margin: 0; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1; background: var(--paper-3); }
.gallery figure.g-wide { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s ease; }
.gallery figure:hover img { transform: scale(1.04); }
@media (max-width: 760px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery figure.g-wide { grid-row: span 1; aspect-ratio: 16 / 10; }
}

.facts { display: grid; grid-template-columns: auto 1fr; gap: 10px 22px; margin: 26px 0 0; }
.facts dt { font-weight: 700; color: var(--ink); white-space: nowrap; }
.facts dd { margin: 0; color: var(--ink-2); }

/* ───── 주간 일정표 ───── */
.timetable {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.timetable th, .timetable td { padding: 16px 22px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.timetable tbody tr:last-child th, .timetable tbody tr:last-child td { border-bottom: 0; }
.timetable thead th { background: var(--paper-3); font-size: .86rem; font-weight: 700; color: var(--ink-2); letter-spacing: .08em; }
.timetable tbody th { width: 90px; font-family: var(--serif); font-size: 1.15rem; }
.timetable td b { display: inline-block; min-width: 112px; margin-right: 10px; font-variant-numeric: tabular-nums; color: var(--ink); }
.timetable td { color: var(--ink-2); }
.timetable .closed { color: var(--ink-3); }
.timetable .empty { color: var(--line-2); }
.timetable tr.is-today th, .timetable tr.is-today td { background: var(--accent-soft); }
.timetable tr.is-today th::after {
  content: "오늘"; display: block; width: max-content; margin-top: 6px; padding: 0 9px; border-radius: 999px;
  font-family: var(--sans); font-size: .72rem; font-weight: 700; line-height: 1.7; color: #fff; background: var(--accent);
}
@media (max-width: 700px) {
  .timetable thead { display: none; }
  .timetable, .timetable tbody, .timetable tr, .timetable th, .timetable td { display: block; width: 100%; }
  .timetable tr { display: grid; grid-template-columns: 66px 1fr; border-bottom: 1px solid var(--line); }
  .timetable tbody tr:last-child { border-bottom: 0; }
  .timetable tbody th { grid-row: span 3; width: auto; border-bottom: 0; }
  .timetable td { border-bottom: 0; padding: 4px 16px 4px 0; }
  .timetable td:first-of-type { padding-top: 16px; }
  .timetable td:last-of-type { padding-bottom: 16px; }
  .timetable td.empty { display: none; }
  .timetable td b { min-width: 100px; }
}

/* ───── 상세 블록 ───── */
.stack { display: grid; gap: clamp(56px, 8vw, 104px); }
.detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 80px); align-items: center; }
.detail.reverse .detail-media { order: 2; }
.detail-media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper-3); }
.detail-media img { width: 100%; height: 100%; object-fit: cover; }
.time-list { list-style: none; display: grid; gap: 8px; margin: 6px 0 20px; }
.time-list li { display: flex; gap: 14px; padding: 13px 18px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.time-list b { min-width: 108px; font-variant-numeric: tabular-nums; }
@media (max-width: 860px) {
  .detail { grid-template-columns: 1fr; }
  .detail.reverse .detail-media { order: 0; }
}

/* 자주 묻는 질문 */
.faq details { border-bottom: 1px solid var(--line-2); }
.faq details:first-child { border-top: 1px solid var(--line-2); }
.faq summary {
  position: relative; cursor: pointer; list-style: none;
  padding: 19px 46px 19px 0; font-weight: 700; font-size: 1.06rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 8px; top: 13px;
  font-size: 1.6rem; font-weight: 300; color: var(--ink-3); transition: transform .25s;
}
.faq details[open] summary::after { transform: rotate(45deg); color: var(--accent); }
.faq details p { margin: -4px 0 22px; color: var(--ink-2); }
.contact-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 700; }
.contact-line a { text-decoration: none; }

/* ───── 명상 과정 ───── */
.program { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(30px, 5vw, 80px); align-items: center; }
.program.reverse .program-media { order: 2; }
.program-media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper-3); }
.program-media img { width: 100%; height: 100%; object-fit: cover; }
.program-media.mosaic { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; background: transparent; border-radius: 0; }
.program-media.mosaic img { border-radius: var(--radius-sm); }
.program-media.mosaic img:first-child { grid-row: span 2; }
.program-body .num { margin-bottom: 18px; }
.program-body h2 { margin-bottom: .3em; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tags li { padding: 6px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: .92rem; font-weight: 600; color: var(--ink-2); }
@media (max-width: 860px) {
  .program { grid-template-columns: 1fr; }
  .program.reverse .program-media { order: 0; }
}

.current {
  margin-top: clamp(36px, 4.5vw, 56px); padding: clamp(26px, 3.2vw, 38px);
  border-radius: var(--radius); background: var(--card); border: 1.5px solid var(--accent);
  box-shadow: 0 0 0 6px var(--accent-soft);
}
.current-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.current-head h3 { margin: 0; }
.current-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 26px; margin: 0; }
.current-grid dt { font-size: .8rem; font-weight: 700; letter-spacing: .1em; color: var(--ink-3); }
.current-grid dd { margin: 3px 0 0; font-weight: 700; }
.current .btn-row { margin-top: 24px; }
@media (max-width: 900px) { .current-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .current-grid { grid-template-columns: 1fr; } }

.apply-steps { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-bottom: 34px; }
.apply-steps li { counter-increment: s; padding: 30px 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.apply-steps li::before {
  content: "0" counter(s); display: block; margin-bottom: 14px;
  font-family: var(--serif); font-size: 2rem; line-height: 1; color: var(--seal);
}
.apply-steps h3 { font-size: 1.18rem; margin-bottom: .3em; }
.apply-steps p { margin: 0; color: var(--ink-2); }
@media (max-width: 860px) { .apply-steps { grid-template-columns: 1fr; } }

/* ───── 법문 페이지 ───── */
.pl-group + .pl-group { margin-top: clamp(44px, 5.5vw, 64px); }
.pl-group-title { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.pl-group-title h3 { margin: 0; font-size: 1.4rem; }
.pl-group-title span { color: var(--ink-3); font-size: .93rem; }
.pl-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 18px; }
.pl { display: block; text-decoration: none; color: inherit; }
.pl:hover { color: inherit; }
.pl .thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--paper-3); }
.pl .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.pl:hover .thumb img { transform: scale(1.05); }
.pl .thumb::after {
  content: ""; position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(20, 16, 14, .68) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6.5v11l9-5.5z' fill='%23fff'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.pl h4 { font-family: var(--sans); font-size: 1rem; font-weight: 700; margin: 12px 0 2px; }
.pl p { margin: 0; font-size: .88rem; color: var(--ink-3); }
@media (max-width: 1000px) { .pl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.library { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.library li { padding: 20px 22px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); font-weight: 600; }
.library li::before { content: ""; display: block; width: 8px; height: 8px; margin-bottom: 12px; border-radius: 2px; background: var(--seal); transform: rotate(45deg); }

.books { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.book {
  position: relative; padding: 30px 26px 28px 30px; border-radius: 6px 16px 16px 6px;
  background: var(--card); border: 1px solid var(--line); box-shadow: inset 8px 0 0 var(--seal);
}
.book .role { margin: 0 0 8px; font-size: .78rem; font-weight: 700; letter-spacing: .14em; color: var(--accent); }
.book h4 { font-family: var(--serif); font-size: 1.3rem; margin: 0 0 8px; }
.book p:last-child { margin: 0; font-size: .92rem; color: var(--ink-3); }
@media (max-width: 860px) { .books { grid-template-columns: 1fr; } }

/* ───── 후원 ───── */
.support-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 22px; align-items: stretch; }
.support-card { display: flex; flex-direction: column; }
.support-card .btn-row { margin-top: auto; padding-top: 24px; }
.support-card.featured { border: 1.5px solid var(--accent); box-shadow: 0 0 0 6px var(--accent-soft); }
.checks { list-style: none; display: grid; gap: 9px; margin: 4px 0 0; }
.checks li { position: relative; padding-left: 26px; color: var(--ink-2); }
.checks li::before { content: ""; position: absolute; left: 2px; top: .58em; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
@media (max-width: 960px) { .support-grid { grid-template-columns: 1fr; } }

/* ───── 오시는 길 ───── */
.visit-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 52px); align-items: start; }
.visit-info .facts { grid-template-columns: 1fr; gap: 0; margin: 0; }
.visit-info .facts > div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.visit-info .facts > div:first-child { padding-top: 0; }
.visit-info .facts dt { display: flex; align-items: center; gap: 8px; color: var(--accent); font-size: .88rem; letter-spacing: .08em; }
.visit-info .facts dd { margin-top: 6px; font-size: 1.1rem; color: var(--ink); font-weight: 600; }
.visit-info .facts dd a { text-decoration: none; }
.copy {
  margin-left: 6px; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line-2);
  background: transparent; font: 600 .8rem var(--sans); color: var(--ink-2); cursor: pointer; vertical-align: 2px;
}
.copy:hover { border-color: var(--ink); color: var(--ink); }
.map-figure { margin: 0; }
.map-figure > a { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; }
.map-figure figcaption { margin-top: 12px; font-size: .9rem; color: var(--ink-3); }
.map-figure figcaption a { color: var(--ink-2); font-weight: 700; }
@media (max-width: 960px) { .visit-grid { grid-template-columns: 1fr; } .map-figure { order: -1; } }

.ways { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 22px; align-items: start; }
.way { padding: clamp(26px, 3.2vw, 38px); border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.way h2 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: .8em; }
.way h2 .ic { color: var(--accent); }
.way h2 .muted { font-family: var(--sans); font-size: .9rem; font-weight: 500; }
.way p:last-child { margin-bottom: 0; }
.way-side { display: grid; gap: 22px; }
.steps { list-style: none; counter-reset: st; }
.steps li {
  counter-increment: st; display: grid; grid-template-columns: 34px 1fr auto; gap: 14px; align-items: start;
  padding: 15px 0; border-bottom: 1px dashed var(--line-2);
}
.steps li:last-child { border-bottom: 0; padding-bottom: 0; }
.steps li::before {
  content: counter(st); display: grid; place-items: center; width: 30px; height: 30px;
  border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; font-size: .9rem;
}
.steps li:last-child::before { content: "★"; background: var(--ink); }
.steps p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.steps .dist { font-size: .88rem; color: var(--ink-3); white-space: nowrap; padding-top: 2px; }
@media (max-width: 860px) { .ways { grid-template-columns: 1fr; } }

/* ───── 바닥글 ───── */
.site-footer { position: relative; overflow: hidden; background: var(--night); color: var(--night-ink-2); padding: 0 0 34px; font-size: .95rem; }
.footer-bless {
  text-align: center; padding: clamp(64px, 9vw, 104px) 0 clamp(48px, 7vw, 72px);
  border-bottom: 1px solid rgba(243, 235, 224, .1);
}
.footer-bless img { width: 54px; margin: 0 auto 22px; opacity: .95; }
.footer-bless p { margin: 0; font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.2rem); color: var(--night-ink); letter-spacing: .04em; }
.footer-bless small { display: block; margin-top: 12px; color: var(--night-ink-2); font-size: 1rem; letter-spacing: .06em; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1.4fr 1fr 1fr; gap: 36px; padding-top: 56px; }
.footer-brand img { width: 220px; height: auto; margin-bottom: 18px; }
.footer-brand p { max-width: 22em; }
.site-footer h4 { font-family: var(--sans); font-size: .86rem; font-weight: 700; letter-spacing: .14em; color: var(--night-ink); margin-bottom: 16px; }
.site-footer ul { list-style: none; display: grid; gap: 9px; }
.site-footer a { color: var(--night-ink-2); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 10px 24px; flex-wrap: wrap;
  margin-top: 52px; padding-top: 22px; border-top: 1px solid rgba(243, 235, 224, .1); font-size: .85rem;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ───── 휴대폰 아래쪽 탭 ───── */
.quickbar { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .quickbar {
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 5px 6px calc(5px + env(safe-area-inset-bottom));
    background: rgba(25, 21, 18, .97);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, .06);
  }
  .quickbar a {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    min-height: 52px; padding: 4px 0; border-radius: 10px;
    color: rgba(255, 250, 242, .78); text-decoration: none; font-size: .74rem; font-weight: 600; letter-spacing: -0.01em;
  }
  .quickbar a:active { background: rgba(255, 255, 255, .08); }
  .quickbar a[aria-current="page"] { color: #fff; }
  .quickbar a[aria-current="page"]::before {
    content: ""; position: absolute; top: -5px; left: 50%; width: 22px; height: 3px; margin-left: -11px;
    border-radius: 0 0 3px 3px; background: #e8483f;
  }
  .quickbar .ic { width: 23px; height: 23px; }
  .quickbar .naver-n { width: 22px; height: 22px; font-size: 13px; }
  .nav-open .quickbar { display: none; }
}

/* ───── 휴대폰 첫 화면 아이콘 메뉴 ───── */
.quick-grid { display: none; }
@media (max-width: 760px) {
  .quick-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
  .quick-grid a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px;
    padding: 18px 4px 15px; border-radius: 18px; text-decoration: none;
    background: var(--card); border: 1px solid var(--line); color: var(--ink);
    font-size: .93rem; font-weight: 700; letter-spacing: -0.02em;
  }
  .quick-grid a:active { background: var(--paper-2); }
  .quick-grid .qi { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 15px; background: var(--paper-2); color: var(--accent); }
  .quick-grid .qi .ic { width: 25px; height: 25px; }
  .quick-grid .naver-n { width: 26px; height: 26px; border-radius: 7px; font-size: 15px; }
}

/* ───── 휴대폰에서 옆으로 넘기는 줄 ───── */
.swipe-hint { display: none; }
@media (max-width: 760px) {
  .swipe-sm {
    position: relative; display: flex !important; gap: 14px;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
    margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) 18px;
    scroll-padding: 0 var(--gutter); scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .swipe-sm::-webkit-scrollbar { display: none; }
  .swipe-sm > * { flex: 0 0 84%; scroll-snap-align: start; }
  .js .swipe-sm > .reveal { opacity: 1; transform: none; }
  .swipe-hint {
    display: flex; align-items: center; justify-content: flex-end; gap: 6px;
    margin: -14px 0 8px; font-size: .82rem; font-weight: 600; color: var(--ink-3);
  }
  .swipe-hint::before { content: "←"; color: var(--accent); }
  .swipe-hint::after { content: "→"; color: var(--accent); }
}

/* ───── 휴대폰 메뉴 아래쪽 연락처 ───── */
.nav-extra { display: none; }
@media (max-width: 1020px) {
  .nav-extra { display: block; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: .95rem; }
  .nav-calls { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
  .nav-calls a {
    display: flex; align-items: center; justify-content: center; gap: 6px; padding: 13px 8px;
    border-radius: 14px; background: var(--card); border: 1px solid var(--line);
    font-weight: 700; color: var(--ink); text-decoration: none; font-variant-numeric: tabular-nums;
  }
  .nav-calls .ic { color: var(--accent); }
  .nav-extra p { margin: 0 0 12px; }
  .nav-tip { padding: 12px 14px; border-radius: 12px; background: var(--paper-2); font-size: .88rem; color: var(--ink-3); }
}

/* ───── 휴대폰 크기 다듬기 ───── */
@media (max-width: 760px) {
  section { padding: 60px 0; }
  .hero { min-height: 82svh; }
  .section-head { margin-bottom: 26px; }
  .duo .panel .mark { width: 150px; }
  /* 법문 재생목록도 옆으로 넘기기 */
  .pl-grid {
    position: relative; display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 10px; scroll-padding: 0 var(--gutter);
    scrollbar-width: none;
  }
  .pl-grid::-webkit-scrollbar { display: none; }
  .pl-grid > .pl { flex: 0 0 72%; scroll-snap-align: start; }
}

/* ───── 천천히 나타나기 ───── */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform .9s ease; }
  .js .reveal.in { opacity: 1; transform: none; }
  .js .hero-text > * { animation: rise 1.1s ease both; }
  .js .hero-text > *:nth-child(2) { animation-delay: .12s; }
  .js .hero-text > *:nth-child(3) { animation-delay: .24s; }
  .js .hero-text > *:nth-child(4) { animation-delay: .36s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* 인쇄 */
@media print {
  .site-header, .quickbar, .site-footer, .video, .btn-row, .hero-bg { display: none !important; }
  .hero, .page-hero { color: var(--ink); min-height: 0; margin: 0; padding: 24px 0; background: none; }
  .hero::before, .page-hero::before { display: none; }
  body { background: #fff; padding: 0; }
  section { padding: 24px 0; }
}
