/* 보림사 시안 D · 기관형
   ui-ux-pro-max design system: Museum/Gallery → Minimalism & Swiss Style, gallery neutrals + one exhibition accent
   accent: 쪽빛(indigo) · 국보 badge: muted 주홍 · type: Pretendard, modular scale 13/15/17/20/24/32/44/56 */
:root {
  --bg: #ffffff;
  --surface: #f6f7f9;
  --surface-2: #eef1f5;
  --ink: #18181b;
  --ink-2: #3f3f46;
  --muted: #6b6b76;
  --border: #e4e4e7;
  --border-strong: #c9ccd3;
  --accent: #23395d;
  --accent-hover: #182a47;
  --accent-soft: #eaf0f8;
  --accent-line: #b9c8de;
  --nt: #9a3a2e;
  --nt-soft: #f8ece9;
  --on-dark: #ffffff;
  --foot-bg: #1d2128;
  --foot-ink: #a7adb8;
  --focus: #2f6fde;
  --font: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --fs-xs: 0.8125rem; --fs-sm: 0.9375rem; --fs-md: 1.0625rem; --fs-lg: 1.25rem; --fs-xl: 1.5rem; --fs-2xl: 2rem; --fs-3xl: 2.75rem; --fs-4xl: 3.5rem;
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 20px; --sp-6: 24px; --sp-8: 32px; --sp-10: 40px; --sp-12: 48px; --sp-16: 64px; --sp-20: 80px; --sp-24: 96px;
  --r-sm: 4px; --r: 8px; --r-lg: 12px; --r-pill: 999px;
  --shadow-1: 0 1px 2px rgb(24 24 27 / 0.06);
  --shadow-2: 0 8px 24px rgb(24 24 27 / 0.08), 0 2px 6px rgb(24 24 27 / 0.05);
  --shadow-3: 0 16px 40px rgb(24 24 27 / 0.12);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --t: 200ms;
  --wrap: 1280px;
  --gutter: 40px;
  --gnb-h: 80px;
}
html[data-fs="lg"] { font-size: 112.5%; }
html[data-fs="xl"] { font-size: 125%; }
@media (max-width: 64rem) { :root { --gutter: 24px; --gnb-h: 64px; } }
@media (max-width: 40rem) { :root { --gutter: 16px; --fs-3xl: 2.125rem; --fs-4xl: 2.5rem; --fs-2xl: 1.625rem; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--gnb-h) + var(--sp-6)); overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--ink-2); font-family: var(--font); font-size: var(--fs-md); line-height: 1.7; word-break: keep-all; overflow-wrap: break-word; -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 700; line-height: 1.3; letter-spacing: -0.025em; text-wrap: balance; }
p { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.2em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.ico { flex-shrink: 0; }
.wrap, .container { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: var(--sp-4); top: -100px; z-index: 1000; padding: var(--sp-2) var(--sp-4); background: var(--accent); color: var(--on-dark); border-radius: var(--r-sm); }
.skip:focus { top: var(--sp-2); }
::selection { background: var(--accent-soft); color: var(--ink); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2); min-height: 48px; padding: 0 var(--sp-6); border: 1px solid transparent; border-radius: var(--r); background: var(--surface-2); color: var(--ink); font-size: var(--fs-sm); font-weight: 600; text-decoration: none; white-space: nowrap; transition: background-color var(--t) var(--ease), border-color var(--t) var(--ease), color var(--t) var(--ease), box-shadow var(--t) var(--ease); }
.btn:hover { background: var(--border); }
.btn:active { transform: translateY(1px); }
.btn--primary, .actions .btn:first-child:not(.btn--quiet) { background: var(--accent); color: var(--on-dark); }
.btn--primary:hover, .actions .btn:first-child:not(.btn--quiet):hover { background: var(--accent-hover); }
.btn--outline, .btn--quiet { background: var(--bg); border-color: var(--border-strong); color: var(--ink); }
.btn--outline:hover, .btn--quiet:hover { border-color: var(--accent); color: var(--accent); background: var(--bg); }
.btn--ghost { background: rgb(255 255 255 / 0.12); border-color: rgb(255 255 255 / 0.6); color: var(--on-dark); backdrop-filter: blur(4px); }
.btn--ghost:hover { background: rgb(255 255 255 / 0.22); }
.btn--lg { min-height: 56px; padding: 0 var(--sp-8); font-size: var(--fs-md); }
.btn--sm { min-height: 40px; padding: 0 var(--sp-4); font-size: var(--fs-xs); }
.link { display: inline-flex; align-items: center; min-height: 44px; background: none; border: 0; padding: 0; color: var(--accent); font-weight: 600; font-size: var(--fs-sm); text-decoration: underline; text-decoration-color: var(--accent-line); }
.link:hover { text-decoration-color: var(--accent); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: var(--r); background: transparent; color: var(--ink); transition: background-color var(--t) var(--ease); }
.icon-btn:hover { background: var(--surface); }
.more { display: inline-flex; align-items: center; gap: var(--sp-1); min-height: 44px; font-size: var(--fs-sm); font-weight: 600; color: var(--muted); text-decoration: none; transition: color var(--t) var(--ease); }
.more:hover { color: var(--accent); }
.kicker { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: var(--sp-2); }
.fill, .note { font-size: var(--fs-xs); color: var(--muted); }
.fill { display: inline-block; padding: 0 var(--sp-2); border: 1px dashed var(--border-strong); border-radius: var(--r-sm); }

/* ---------- utility bar ---------- */
.util { background: var(--surface); border-bottom: 1px solid var(--border); font-size: var(--fs-xs); color: var(--muted); }
.util__in { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); min-height: 40px; }
.util__today { display: flex; gap: var(--sp-6); }
.util__today span, .util__tel { display: inline-flex; align-items: center; gap: var(--sp-1); }
.util b { color: var(--ink); font-weight: 600; }
.util__right { display: flex; align-items: center; gap: var(--sp-6); }
.fs { display: flex; align-items: center; gap: var(--sp-1); }
.fs span { margin-right: var(--sp-1); }
.fs button { width: 28px; height: 28px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--bg); font-size: 12px; font-weight: 600; color: var(--ink-2); line-height: 1; }
.fs button.fs--lg { font-size: 14px; }
.fs button.fs--xl { font-size: 16px; }
.fs button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-dark); }
.util__tel { text-decoration: none; }
.util__tel:hover b { color: var(--accent); }
.util b, .util__today span { white-space: nowrap; }
@media (max-width: 40rem) { .util__hide, .util__tel span, .util__tel b { display: none !important; } .util__tel { width: 36px; height: 36px; justify-content: center; } .util__today { gap: var(--sp-3); } .util__right { gap: var(--sp-2); } }

/* ---------- GNB + mega menu ---------- */
.gnb { position: sticky; top: 0; z-index: 100; background: var(--bg); border-bottom: 1px solid var(--border); }
.gnb__in { display: flex; align-items: center; gap: var(--sp-8); height: var(--gnb-h); }
.logo { display: inline-flex; align-items: center; gap: var(--sp-3); text-decoration: none; flex-shrink: 0; }
.logo__seal { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r); background: var(--accent); color: var(--on-dark); font-family: "Noto Serif KR", "Nanum Myeongjo", serif; font-size: 15px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.logo__text { display: grid; line-height: 1.25; }
.logo__text b { font-size: var(--fs-lg); color: var(--ink); letter-spacing: -0.03em; }
.logo__text small { font-size: 12px; color: var(--muted); letter-spacing: 0.02em; }
.gnb__nav { margin-left: auto; height: 100%; }
.gnb__list { display: flex; height: 100%; list-style: none; margin: 0; padding: 0; }
.gnb__item { position: relative; height: 100%; }
.gnb__top { display: flex; align-items: center; height: 100%; padding: 0 var(--sp-6); font-size: var(--fs-md); font-weight: 600; color: var(--ink); text-decoration: none; position: relative; transition: color var(--t) var(--ease); }
.gnb__top::after { content: ""; position: absolute; left: var(--sp-6); right: var(--sp-6); bottom: -1px; height: 3px; background: var(--accent); transform: scaleX(0); transition: transform var(--t) var(--ease); }
.gnb__item:hover .gnb__top, .gnb__item:focus-within .gnb__top, .gnb__top[aria-current="true"] { color: var(--accent); }
.gnb__item:hover .gnb__top::after, .gnb__item:focus-within .gnb__top::after, .gnb__top[aria-current="true"]::after { transform: scaleX(1); }
.gnb__tools { display: flex; gap: var(--sp-1); }
.gnb__burger { display: none; }
.gnb__burger .ico-close, .gnb[data-open] .gnb__burger .ico-open { display: none; }
.gnb[data-open] .gnb__burger .ico-close { display: block; }
@media (min-width: 64.0625rem) {
  .gnb__item { width: 150px; }
  .gnb__top { justify-content: center; padding: 0 var(--sp-3); }
  .gnb__top::after { left: var(--sp-5); right: var(--sp-5); }
  .gnb__sub { text-align: center; height: 200px; align-content: start; }
  .gnb__panel { height: 200px !important; }
  .gnb__sub a { white-space: normal !important; line-height: 1.45; padding-block: var(--sp-2) !important; }
  .gnb__sub { position: absolute; top: 100%; left: 0; width: 100%; list-style: none; margin: 0; padding: var(--sp-5) var(--sp-3) var(--sp-8); display: grid; gap: var(--sp-1); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity var(--t) var(--ease), transform var(--t) var(--ease), visibility 0s linear var(--t); z-index: 2; }
  .gnb__sub a { display: block; padding: var(--sp-1) 0; font-size: var(--fs-sm); color: var(--ink-2); text-decoration: none; white-space: nowrap; transition: color var(--t) var(--ease); }
  .gnb__sub a:hover { color: var(--accent); text-decoration: underline; }
  .gnb__panel { position: absolute; left: 0; right: 0; top: 100%; height: 190px; background: var(--bg); border-top: 1px solid var(--border); box-shadow: var(--shadow-2); opacity: 0; visibility: hidden; transition: opacity var(--t) var(--ease), visibility 0s linear var(--t); z-index: 1; }
  .gnb:has(.gnb__nav:hover, .gnb__nav:focus-within) .gnb__sub, .gnb:has(.gnb__nav:hover, .gnb__nav:focus-within) .gnb__panel { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .gnb__item + .gnb__item .gnb__sub { border-left: 1px solid var(--border); }
}
@media (max-width: 64rem) {
  .gnb__burger { display: inline-grid; }
  .gnb__in { gap: var(--sp-4); }
  .gnb__tools { margin-left: auto; }
  .logo__seal { width: 38px; height: 38px; font-size: 13px; }
  .logo__text small { display: none; }
  .gnb__nav { position: absolute; left: 0; right: 0; top: 100%; height: auto; max-height: calc(100dvh - var(--gnb-h)); overflow-y: auto; background: var(--bg); border-top: 1px solid var(--border); box-shadow: var(--shadow-3); display: none; margin: 0; }
  .gnb[data-open] .gnb__nav { display: block; }
  .gnb__list { display: block; height: auto; padding: var(--sp-2) var(--gutter) var(--sp-6); }
  .gnb__item { height: auto; border-bottom: 1px solid var(--border); }
  .gnb__top { height: auto; padding: var(--sp-4) 0; font-size: var(--fs-lg); }
  .gnb__top::after { display: none; }
  .gnb__sub { list-style: none; margin: 0 0 var(--sp-4); padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-1) var(--sp-4); }
  .gnb__sub a { display: flex; align-items: center; min-height: 40px; font-size: var(--fs-sm); color: var(--ink-2); text-decoration: none; }
  .gnb__panel { display: none; }
}
.search-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-top: 1px solid var(--border); box-shadow: var(--shadow-3); z-index: 5; }
.search-panel__in { display: flex; align-items: center; gap: var(--sp-3); padding-block: var(--sp-6); color: var(--muted); }
.search-panel input { flex: 1; min-width: 0; height: 56px; border: 0; border-bottom: 2px solid var(--ink); background: transparent; font-size: var(--fs-xl); color: var(--ink); padding: 0 var(--sp-2); }
.search-panel input:focus-visible { outline: none; border-bottom-color: var(--accent); }

/* ---------- hero ---------- */
.hero-d { position: relative; isolation: isolate; min-height: clamp(520px, 72vh, 720px); display: flex; align-items: center; color: var(--on-dark); background: var(--ink); overflow: hidden; }
.hero-d__media { position: absolute; inset: 0; z-index: -2; }
.hero-d__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.hero-d::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(12 16 24 / 0.78) 0%, rgb(12 16 24 / 0.5) 38%, rgb(12 16 24 / 0.08) 70%), linear-gradient(0deg, rgb(12 16 24 / 0.35), transparent 40%); }
.hero-d__in { padding-block: var(--sp-16) calc(var(--sp-24) + var(--sp-8)); }
.hero-d__kicker { display: inline-flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-sm); font-weight: 600; color: rgb(255 255 255 / 0.85); margin-bottom: var(--sp-4); }
.hero-d__kicker::before { content: ""; width: 24px; height: 2px; background: currentColor; }
.hero-d h1 { color: var(--on-dark); font-size: var(--fs-4xl); line-height: 1.22; letter-spacing: -0.035em; max-width: 16ch; }
.hero-d__lead { margin-top: var(--sp-5); font-size: var(--fs-lg); color: rgb(255 255 255 / 0.88); max-width: 34ch; line-height: 1.6; }
.hero-d__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-10); }
@media (max-width: 40rem) { .hero-d { min-height: 0; } .hero-d__in { padding-block: var(--sp-16) var(--sp-24); } .hero-d__lead { font-size: var(--fs-md); } .hero-d::before { background: linear-gradient(0deg, rgb(12 16 24 / 0.8), rgb(12 16 24 / 0.45)); } }

/* ---------- quick menu ---------- */
.quick { position: relative; z-index: 3; margin-top: calc(-1 * var(--sp-16)); }
.quick__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-2); overflow: hidden; }
.quick__list li + li { border-left: 1px solid var(--border); }
.quick__list a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--sp-3); min-height: 132px; padding: var(--sp-4); text-decoration: none; font-size: var(--fs-sm); font-weight: 600; color: var(--ink); transition: background-color var(--t) var(--ease), color var(--t) var(--ease); }
.quick__ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); transition: background-color var(--t) var(--ease), color var(--t) var(--ease); }
.quick__list a:hover { background: var(--surface); color: var(--accent); }
.quick__list a:hover .quick__ico { background: var(--accent); color: var(--on-dark); }
.quick__list a:focus-visible { outline-offset: -3px; }
@media (max-width: 64rem) { .quick__list { grid-template-columns: repeat(3, minmax(0, 1fr)); } .quick__list li:nth-child(4) { border-left: 0; } .quick__list li:nth-child(n+4) { border-top: 1px solid var(--border); } }
@media (max-width: 40rem) { .quick { margin-top: calc(-1 * var(--sp-12)); } .quick__list a { min-height: 104px; gap: var(--sp-2); font-size: var(--fs-xs); } .quick__ico { width: 44px; height: 44px; } }

/* ---------- sections ---------- */
.sec { padding-block: var(--sp-24); }
.sec--tint { background: var(--surface); }
.sec__head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-4); margin-bottom: var(--sp-10); }
.sec__head h2 { font-size: var(--fs-2xl); }
@media (max-width: 40rem) { .sec { padding-block: var(--sp-16); } .sec__head { margin-bottom: var(--sp-6); } }

/* ---------- collection cards ---------- */
.c-grid, .grid4 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-6); }
@media (max-width: 64rem) { .c-grid, .grid4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 48rem) { .c-grid, .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); } }
.c-card a, .card a { display: flex; flex-direction: column; height: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; text-decoration: none; color: var(--ink-2); transition: box-shadow var(--t) var(--ease), border-color var(--t) var(--ease), transform var(--t) var(--ease); }
.c-card a:hover, .card a:hover { border-color: var(--border-strong); box-shadow: var(--shadow-2); transform: translateY(-2px); }
.c-card__media { position: relative; aspect-ratio: 4 / 3; background: var(--surface-2); overflow: hidden; }
.c-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease); }
.c-card a:hover .c-card__media img, .card a:hover .card__pic img { transform: scale(1.04); }
.c-card__empty { width: 100%; height: 100%; display: grid; place-content: center; justify-items: center; gap: var(--sp-2); color: var(--muted); font-size: var(--fs-xs); background: repeating-linear-gradient(135deg, var(--surface) 0 10px, var(--surface-2) 10px 20px); }
.badge { position: absolute; top: var(--sp-3); left: var(--sp-3); display: inline-flex; align-items: center; height: 26px; padding: 0 var(--sp-3); border-radius: var(--r-pill); font-size: 12px; font-weight: 700; background: var(--bg); color: var(--ink-2); box-shadow: var(--shadow-1); }
.badge--nt { background: var(--nt); color: var(--on-dark); }
.badge--tr { background: var(--accent); color: var(--on-dark); }
.c-card__body { display: grid; gap: var(--sp-1); padding: var(--sp-4) var(--sp-5) var(--sp-5); }
.c-card h3, .card h3 { font-size: var(--fs-md); font-weight: 700; line-height: 1.45; transition: color var(--t) var(--ease); }
.c-card a:hover h3, .card a:hover h3 { color: var(--accent); }
.c-card__meta, .card__meta { display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-3); font-size: var(--fs-xs); color: var(--muted); }
.c-card__meta span + span::before, .card__meta span + span::before { content: ""; display: inline-block; width: 1px; height: 10px; background: var(--border-strong); margin-right: var(--sp-3); vertical-align: middle; }
/* shared card from list pages */
.card__pic { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.card__pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease); }
.card__type { aspect-ratio: 4 / 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--sp-1); color: var(--muted); background: repeating-linear-gradient(135deg, var(--surface) 0 10px, var(--surface-2) 10px 20px); }
.card__type span:first-child { font-weight: 700; color: var(--ink-2); }
.card__type span:last-child { font-size: var(--fs-xs); }
.card h3 { padding: var(--sp-4) var(--sp-5) 0; }
.card__meta { padding: var(--sp-1) var(--sp-5) var(--sp-5); }
.card__meta span:first-child { color: var(--accent); font-weight: 600; }

/* ---------- about split ---------- */
.about-d { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-16); align-items: center; }
.about-d__media { margin: 0; }
.about-d__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 30%; border-radius: var(--r-lg); }
.about-d__media figcaption { margin-top: var(--sp-3); font-size: var(--fs-xs); color: var(--muted); }
.about-d__text { display: grid; gap: var(--sp-5); justify-items: start; }
.about-d__text h2 { font-size: var(--fs-2xl); }
.about-d__text > p:not(.kicker) { max-width: 52ch; }
.stats-d { width: 100%; margin: var(--sp-3) 0 var(--sp-4); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stats-d div { padding: var(--sp-5) var(--sp-4); }
.stats-d div + div { border-left: 1px solid var(--border); }
.stats-d dt { font-size: var(--fs-xs); color: var(--muted); }
.stats-d dd { margin: var(--sp-1) 0 0; font-size: var(--fs-2xl); font-weight: 700; color: var(--ink); letter-spacing: -0.03em; line-height: 1.1; }
.stats-d small { font-size: var(--fs-sm); font-weight: 500; margin-left: 2px; color: var(--muted); }
@media (max-width: 64rem) { .about-d { grid-template-columns: 1fr; gap: var(--sp-10); } }
@media (max-width: 40rem) { .stats-d { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stats-d div:nth-child(3) { border-left: 0; } .stats-d div:nth-child(n+3) { border-top: 1px solid var(--border); } }

/* ---------- board: notices + events ---------- */
.board-d { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-6); }
.panel { border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--sp-8); background: var(--bg); }
.panel__head { display: flex; align-items: center; justify-content: space-between; padding-bottom: var(--sp-4); margin-bottom: var(--sp-2); border-bottom: 2px solid var(--ink); }
.panel__head h2 { font-size: var(--fs-xl); }
.notice { list-style: none; margin: 0; padding: 0; }
.notice a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--sp-3); min-height: 60px; border-bottom: 1px solid var(--border); text-decoration: none; color: var(--ink); }
.notice li:last-child a { border-bottom: 0; }
.notice__title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; transition: color var(--t) var(--ease); }
.notice a:hover .notice__title { color: var(--accent); text-decoration: underline; }
.notice time { font-size: var(--fs-xs); color: var(--muted); }
.tag { display: inline-flex; align-items: center; height: 24px; padding: 0 var(--sp-2); border-radius: var(--r-sm); background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 700; white-space: nowrap; }
.events-d { list-style: none; margin: 0; padding: 0; }
.events-d li { display: flex; align-items: center; gap: var(--sp-4); padding-block: var(--sp-3); border-bottom: 1px solid var(--border); }
.events-d li:last-child { border-bottom: 0; }
.date-chip { display: grid; justify-items: center; align-content: center; width: 60px; height: 64px; flex-shrink: 0; border-radius: var(--r); background: var(--surface); color: var(--ink-2); line-height: 1.1; }
.date-chip b { font-size: var(--fs-xl); color: var(--ink); }
.date-chip small { font-size: 11px; color: var(--muted); }
.events-d li.is-next .date-chip { background: var(--accent); color: var(--on-dark); }
.events-d li.is-next .date-chip b, .events-d li.is-next .date-chip small { color: var(--on-dark); }
.events-d__body { display: grid; min-width: 0; }
.events-d__body b { color: var(--ink); font-weight: 700; }
.events-d__body span { font-size: var(--fs-xs); color: var(--muted); }
@media (max-width: 64rem) { .board-d { grid-template-columns: 1fr; } }
@media (max-width: 40rem) { .panel { padding: var(--sp-5); } .notice a { grid-template-columns: minmax(0, 1fr) auto; } .notice .tag { display: none; } }

/* ---------- archive search band ---------- */
.search-band { background: var(--accent); color: var(--on-dark); padding-block: var(--sp-20); position: relative; overflow: hidden; }
.search-band::after { content: "寶林"; position: absolute; right: -0.05em; bottom: -0.28em; font-family: "Noto Serif KR", "Nanum Myeongjo", serif; font-size: 18rem; font-weight: 700; line-height: 1; color: rgb(255 255 255 / 0.05); pointer-events: none; }
.search-band__in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--sp-6) var(--sp-12); align-items: center; }
.search-band h2 { color: var(--on-dark); font-size: var(--fs-2xl); }
.search-band p { color: rgb(255 255 255 / 0.8); margin-top: var(--sp-2); }
.search-band__form { display: flex; gap: var(--sp-2); }
.search-band__form input { flex: 1; min-width: 0; height: 56px; padding: 0 var(--sp-5); border: 0; border-radius: var(--r); background: var(--bg); color: var(--ink); font-size: var(--fs-md); }
.search-band__form input::placeholder { color: var(--muted); }
.search-band .btn--primary { background: var(--ink); }
.search-band .btn--primary:hover { background: #000; }
.search-band__chips { grid-column: 2; list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.search-band__chips a { display: inline-flex; align-items: center; height: 36px; padding: 0 var(--sp-4); border: 1px solid rgb(255 255 255 / 0.35); border-radius: var(--r-pill); font-size: var(--fs-xs); font-weight: 600; text-decoration: none; transition: background-color var(--t) var(--ease); }
.search-band__chips a:hover { background: rgb(255 255 255 / 0.14); }
.search-band :focus-visible { outline-color: var(--on-dark); }
@media (max-width: 64rem) { .search-band__in { grid-template-columns: 1fr; } .search-band__chips { grid-column: 1; } }
@media (max-width: 40rem) { .search-band { padding-block: var(--sp-16); } .search-band__form { flex-direction: column; } }

/* ---------- info cards ---------- */
.info-d { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-6); }
.info-d li { display: flex; flex-direction: column; gap: var(--sp-3); padding: var(--sp-8); border: 1px solid var(--border); border-radius: var(--r-lg); }
.info-d__ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: var(--r); background: var(--accent-soft); color: var(--accent); margin-bottom: var(--sp-2); }
.info-d h3 { font-size: var(--fs-lg); }
.info-d dl { margin: 0; display: grid; gap: var(--sp-2); }
.info-d dl div { display: flex; justify-content: space-between; gap: var(--sp-3); padding-bottom: var(--sp-2); border-bottom: 1px dashed var(--border); font-size: var(--fs-sm); }
.info-d dt { color: var(--muted); }
.info-d dd { margin: 0; color: var(--ink); font-weight: 600; }
.info-d p { font-size: var(--fs-sm); }
.info-d__addr { color: var(--ink); font-weight: 600; font-size: var(--fs-md) !important; }
.info-d__tel { font-size: var(--fs-2xl) !important; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; line-height: 1.2; }
.info-d__btns { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin-top: auto; padding-top: var(--sp-2); }
.info-d li > .btn:last-child { margin-top: auto; align-self: flex-start; }
@media (max-width: 64rem) { .info-d { grid-template-columns: 1fr; } }

/* ---------- inner: subhead, page-top ---------- */
.subhead { background: var(--surface); border-bottom: 1px solid var(--border); }
.crumb { display: flex; align-items: center; gap: var(--sp-2); min-height: 48px; font-size: var(--fs-xs); color: var(--muted); }
.crumb a { display: inline-flex; align-items: center; text-decoration: none; }
.crumb a:hover { color: var(--accent); text-decoration: underline; }
.crumb [aria-current] { color: var(--ink); font-weight: 600; max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tabs { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--sp-1); overflow-x: auto; scrollbar-width: none; }
.tabs a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 var(--sp-4); font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); text-decoration: none; white-space: nowrap; border-bottom: 3px solid transparent; transition: color var(--t) var(--ease), border-color var(--t) var(--ease); }
.tabs a:hover { color: var(--accent); }
.tabs a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }
.page-top { padding-block: var(--sp-16) var(--sp-10); border-bottom: 1px solid var(--border); margin-bottom: var(--sp-12); }
.page-top h1 { font-size: var(--fs-3xl); letter-spacing: -0.035em; }
.page-top .lead { margin-top: var(--sp-4); font-size: var(--fs-lg); color: var(--muted); max-width: 52ch; line-height: 1.6; }
.page-top .actions { margin-top: var(--sp-8); }
.display-s { font-size: var(--fs-2xl); font-weight: 700; color: var(--ink); line-height: 1.35; letter-spacing: -0.03em; margin: 0; max-width: 26ch; }
.statement { font-size: var(--fs-xl); font-weight: 600; color: var(--ink); line-height: 1.6; letter-spacing: -0.02em; max-width: 46ch; }
.lead { color: var(--muted); }

/* archive list */
.arc { padding-bottom: var(--sp-24); }
.filters { display: grid; gap: var(--sp-4); margin-bottom: var(--sp-10); padding: var(--sp-6); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); }
.search input { width: 100%; height: 52px; padding: 0 var(--sp-5); border: 1px solid var(--border-strong); border-radius: var(--r); background: var(--bg); font-size: var(--fs-md); color: var(--ink); }
.search input:focus-visible { outline: 2px solid var(--focus); outline-offset: 0; border-color: var(--focus); }
.chips { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); }
.chips legend { float: left; width: 3.5rem; font-size: var(--fs-xs); font-weight: 700; color: var(--ink-2); padding: 0; }
.chip { display: inline-flex; align-items: center; gap: var(--sp-1); height: 40px; padding: 0 var(--sp-4); border: 1px solid var(--border-strong); border-radius: var(--r-pill); background: var(--bg); font-size: var(--fs-xs); font-weight: 600; color: var(--ink-2); transition: all var(--t) var(--ease); }
.chip .num { color: var(--muted); font-weight: 500; }
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-dark); }
.chip[aria-pressed="true"] .num { color: rgb(255 255 255 / 0.75); }
.arc__bar { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4); padding-top: var(--sp-4); border-top: 1px solid var(--border); }
.arc__bar p { font-size: var(--fs-sm); color: var(--ink-2); font-weight: 600; }
.seg { display: inline-flex; padding: 3px; background: var(--surface-2); border-radius: var(--r); }
.seg button { height: 36px; padding: 0 var(--sp-4); border: 0; border-radius: 6px; background: transparent; font-size: var(--fs-xs); font-weight: 600; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--bg); color: var(--ink); box-shadow: var(--shadow-1); }
.empty { padding: var(--sp-16) 0; text-align: center; color: var(--muted); }

/* tables */
.table-wrap { overflow-x: auto; }
.rows { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); border-top: 2px solid var(--ink); }
.rows th, .rows td { text-align: left; padding: var(--sp-4) var(--sp-4) var(--sp-4) 0; border-bottom: 1px solid var(--border); vertical-align: middle; }
.rows thead th { background: var(--surface); font-weight: 700; color: var(--ink); white-space: nowrap; padding-left: var(--sp-4); }
.rows tbody th, .rows tbody td { padding-left: var(--sp-4); }
.rows tbody th { font-weight: 600; color: var(--ink); }
.rows tbody th a { text-decoration: none; }
.rows tbody tr:hover { background: var(--surface); }
.rows tbody th a:hover { color: var(--accent); text-decoration: underline; }
.rows__date { font-weight: 700; color: var(--ink); white-space: nowrap; }
.rows__date small { margin-left: var(--sp-1); font-weight: 500; color: var(--muted); }
.rows tr.is-next { background: var(--accent-soft); }
.rows tr.is-next .rows__date { color: var(--accent); }
@media (max-width: 40rem) { .hide-s { display: none; } }

/* facts */
.facts { margin: 0; display: grid; border-top: 2px solid var(--ink); }
.facts > div { display: grid; grid-template-columns: minmax(0, 8.5rem) minmax(0, 1fr); border-bottom: 1px solid var(--border); }
.facts dt { padding: var(--sp-4); background: var(--surface); font-size: var(--fs-sm); font-weight: 700; color: var(--ink); }
.facts dd { margin: 0; padding: var(--sp-4); min-width: 0; color: var(--ink-2); overflow-wrap: anywhere; font-size: var(--fs-sm); }
.facts small { color: var(--muted); font-size: var(--fs-xs); }
.facts--tight > div { grid-template-columns: minmax(0, 7rem) minmax(0, 1fr); }
.facts--tight dt, .facts--tight dd { padding: var(--sp-3) var(--sp-4); }

/* record detail */
.obj { padding-bottom: var(--sp-24); }
.obj__head { padding-block: var(--sp-12) var(--sp-8); }
.obj__crumb { display: none; }
.obj__head h1 { font-size: var(--fs-3xl); letter-spacing: -0.035em; }
.obj__hanja { margin-top: var(--sp-2); font-size: var(--fs-lg); color: var(--muted); }
.obj__body { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--sp-12); align-items: start; }
@media (max-width: 64rem) { .obj__body { grid-template-columns: 1fr; gap: var(--sp-8); } }
.obj__media { display: grid; gap: var(--sp-3); }
.obj__lead { display: block; width: 100%; padding: 0; border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); cursor: zoom-in; }
.obj__lead > span { display: block; aspect-ratio: 4 / 3; }
.obj__lead img { width: 100%; height: 100%; object-fit: contain; background: var(--surface); }
.obj__thumbs { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--sp-2); overflow-x: auto; }
.obj__thumbs button { padding: 0; border: 2px solid transparent; border-radius: var(--r); overflow: hidden; background: none; transition: border-color var(--t) var(--ease); }
.obj__thumbs button:hover { border-color: var(--accent); }
.obj__thumbs span { display: block; width: 84px; height: 84px; }
.obj__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.obj__cap { font-size: var(--fs-xs); color: var(--muted); }
.obj__type { aspect-ratio: 4 / 3; border: 1px solid var(--border); border-radius: var(--r-lg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--sp-2); color: var(--muted); background: repeating-linear-gradient(135deg, var(--surface) 0 12px, var(--surface-2) 12px 24px); }
.obj__type span:first-child { font-size: var(--fs-xl); font-weight: 700; color: var(--ink-2); }
.obj__type p { font-size: var(--fs-sm); }
.obj__desig { display: inline-flex; align-items: center; height: 30px; padding: 0 var(--sp-4); border-radius: var(--r-pill); background: var(--accent); color: var(--on-dark); font-size: var(--fs-xs); font-weight: 700; margin-bottom: var(--sp-4); }
.perma { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); }
.perma code { font-family: var(--font); font-size: var(--fs-xs); color: var(--muted); overflow-wrap: anywhere; }
.perma .link { min-height: 32px; font-size: var(--fs-xs); }
.obj__inscr, .obj__text, .obj__rel { padding-top: var(--sp-16); }
.obj__inscr h2, .obj__text h2, .obj__rel h2 { font-size: var(--fs-xl); padding-bottom: var(--sp-3); margin-bottom: var(--sp-5); border-bottom: 2px solid var(--ink); }
.obj__inscr .statement { padding: var(--sp-6) var(--sp-8); background: var(--surface); border-left: 4px solid var(--accent); border-radius: 0 var(--r) var(--r) 0; font-size: var(--fs-lg); font-weight: 500; max-width: none; }
.obj__text { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); column-gap: var(--sp-12); }
.obj__text h2 { grid-column: 1 / -1; }
@media (max-width: 64rem) { .obj__text { grid-template-columns: 1fr; row-gap: var(--sp-8); } }
.prose { display: grid; gap: var(--sp-4); line-height: 1.85; color: var(--ink-2); }
.prose p, .prose li { max-width: 68ch; }
.prose h2 { font-size: var(--fs-xl); margin-top: var(--sp-6); }
.prose a { color: var(--accent); }
.obj__src { display: grid; gap: var(--sp-2); align-content: start; padding: var(--sp-6); background: var(--surface); border-radius: var(--r-lg); font-size: var(--fs-xs); color: var(--muted); }
.obj__src h3 { font-size: var(--fs-sm); margin-top: var(--sp-2); }
.obj__src ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-2); }
.obj__src a { color: var(--accent); }
.obj__rel { display: block; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); padding-top: var(--sp-16); }
.pager a { display: grid; gap: var(--sp-1); padding: var(--sp-5) var(--sp-6); border: 1px solid var(--border); border-radius: var(--r); text-decoration: none; color: var(--ink); font-weight: 700; transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease); }
.pager a:hover { border-color: var(--accent); box-shadow: var(--shadow-1); color: var(--accent); }
.pager small { font-size: var(--fs-xs); font-weight: 500; color: var(--muted); }
.pager__next { text-align: right; }

.lb { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: var(--sp-6); border: 0; background: #0d0f13; color: var(--on-dark); }
.lb[open] { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: var(--sp-4); }
.lb::backdrop { background: #0d0f13; }
.lb img { width: 100%; height: 100%; object-fit: contain; }
.lb__bar { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4); flex-wrap: wrap; }
.lb__bar div { display: flex; gap: var(--sp-2); }
.lb .btn { background: rgb(255 255 255 / 0.12); color: var(--on-dark); border-color: transparent; }
.lb .btn:hover { background: rgb(255 255 255 / 0.22); }

/* about, practice, visit, news */
.statement-sec { padding-block: var(--sp-16); background: var(--surface); }
.about { padding-block: var(--sp-20); }
.about__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-16); }
.about__in h2 { font-size: var(--fs-xl); padding-bottom: var(--sp-3); margin-bottom: var(--sp-5); border-bottom: 2px solid var(--ink); }
.about__in .prose h2:not(:first-child) { margin-top: var(--sp-8); }
@media (max-width: 64rem) { .about__in { grid-template-columns: 1fr; } }
.chron { padding-block: var(--sp-20); background: var(--surface); }
.chron h2 { font-size: var(--fs-2xl); margin-bottom: var(--sp-10); }
.chron__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-6); }
.chron__list li { padding: var(--sp-6); background: var(--bg); border: 1px solid var(--border); border-radius: var(--r); border-top: 3px solid var(--accent); }
.chron__list .num { display: block; font-size: var(--fs-xl); font-weight: 700; color: var(--accent); margin-bottom: var(--sp-2); }
.chron__list p { font-size: var(--fs-sm); }
@media (max-width: 64rem) { .chron__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.greet { padding-block: var(--sp-20); }
.rites { padding-bottom: var(--sp-16); }
.rites h2, .manners h2 { font-size: var(--fs-2xl); margin-bottom: var(--sp-8); }
.rites__list { list-style: none; margin: 0 0 var(--sp-4); padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-6); }
.rites__list li { display: grid; gap: var(--sp-1); padding: var(--sp-8); border: 1px solid var(--border); border-radius: var(--r-lg); }
.rites__list .num { font-size: var(--fs-3xl); font-weight: 700; color: var(--accent); letter-spacing: -0.03em; line-height: 1.1; }
.rites__list h3 { font-size: var(--fs-lg); }
@media (max-width: 40rem) { .rites__list { grid-template-columns: 1fr; } }
.sched { padding-block: var(--sp-16); }
.sched__in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--sp-12); align-items: start; }
.sched__in > div { display: grid; gap: var(--sp-4); justify-items: start; }
.sched__in h2 { font-size: var(--fs-2xl); }
@media (max-width: 64rem) { .sched__in { grid-template-columns: 1fr; gap: var(--sp-8); } }
.visit-band { padding-block: var(--sp-16); background: var(--surface); }
.visit-band__in, .visit__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-12); align-items: start; }
.visit-band__in > div, .visit__in > div { display: grid; gap: var(--sp-5); justify-items: start; }
@media (max-width: 64rem) { .visit-band__in, .visit__in { grid-template-columns: 1fr; gap: var(--sp-8); } }
.visit { padding-bottom: var(--sp-16); }
.visit__old { font-size: var(--fs-sm); color: var(--muted); }
.manners { padding-block: var(--sp-16); background: var(--surface); }
.manners__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-6); counter-reset: m; }
.manners__list li { counter-increment: m; display: grid; gap: var(--sp-2); padding: var(--sp-8); background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-lg); }
.manners__list li::before { content: counter(m, decimal-leading-zero); font-size: var(--fs-sm); font-weight: 700; color: var(--accent); }
.manners__list h3 { font-size: var(--fs-lg); }
@media (max-width: 64rem) { .manners__list { grid-template-columns: 1fr; } }
.news { padding-bottom: var(--sp-24); }
.rows--news td.num { white-space: nowrap; color: var(--muted); width: 8rem; }
.post { padding-block: var(--sp-12) var(--sp-24); }
.post__in { display: grid; gap: var(--sp-5); max-width: 860px; }
.post__in .obj__crumb { display: none; }
.post__date { font-size: var(--fs-sm); color: var(--muted); padding-bottom: var(--sp-5); border-bottom: 1px solid var(--border); }

/* ---------- footer ---------- */
.foot-d { background: var(--foot-bg); color: var(--foot-ink); padding-block: var(--sp-12) var(--sp-10); font-size: var(--fs-sm); }
.foot-d__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-6); padding-bottom: var(--sp-8); border-bottom: 1px solid rgb(255 255 255 / 0.1); }
.logo--foot .logo__text b { color: var(--on-dark); }
.logo--foot .logo__text small { color: var(--foot-ink); }
.foot-d__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-6); }
.foot-d a { color: var(--on-dark); text-decoration: none; }
.foot-d a:hover { text-decoration: underline; }
.foot-d :focus-visible { outline-color: var(--on-dark); }
.foot-d__info { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-6); padding-top: var(--sp-8); }
.foot-d address { font-style: normal; line-height: 1.8; }
.sep { display: inline-block; width: 1px; height: 12px; margin: 0 var(--sp-2); background: rgb(255 255 255 / 0.25); vertical-align: middle; }
.foot-d__family { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.foot-d__family a { display: inline-flex; align-items: center; gap: var(--sp-1); height: 40px; padding: 0 var(--sp-4); border: 1px solid rgb(255 255 255 / 0.18); border-radius: var(--r); font-size: var(--fs-xs); color: var(--foot-ink); }
.foot-d__family a:hover { color: var(--on-dark); border-color: rgb(255 255 255 / 0.4); text-decoration: none; }
.foot-d__copy { margin-top: var(--sp-8); font-size: 12px; color: rgb(167 173 184 / 0.75); }
.design-switch { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4); margin-top: var(--sp-6); font-size: var(--fs-xs); }
.design-switch a { color: var(--foot-ink); text-decoration: underline; }
.design-switch a[aria-current="true"] { color: var(--on-dark); font-weight: 700; }

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

/* =====================================================================
   디테일 보정 (v2)
   ===================================================================== */
h1, h2, h3 { letter-spacing: -0.03em; }
.sec__head h2 { font-size: 2.25rem; line-height: 1.25; }
.sec__desc { margin-top: var(--sp-3); color: var(--muted); max-width: 60ch; font-size: var(--fs-md); }
.sec--tight { padding-block: var(--sp-20); }
.kicker { display: inline-flex; align-items: center; gap: var(--sp-2); }
.kicker::before { content: ""; width: 16px; height: 2px; background: currentColor; }
@media (max-width: 40rem) { .sec__head h2 { font-size: var(--fs-2xl); } .sec__head { flex-wrap: wrap; } }
.badge--lc { background: var(--bg); color: var(--ink); border: 1px solid var(--border-strong); box-shadow: none; }
.board-d { align-items: start; }
.c-card__body { gap: var(--sp-2); }
.c-card h3 { font-size: 1.0625rem; }
.hero-d h1 { font-weight: 800; }
.hero-d__kicker { letter-spacing: 0.02em; }
.quick__list a { font-size: var(--fs-md); }
.info-d li { transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease); }
.info-d li:hover { border-color: var(--border-strong); box-shadow: var(--shadow-1); }
.flip { transform: scaleX(-1); }
.badge-inline { display: inline-flex; align-items: center; height: 26px; padding: 0 var(--sp-3); border-radius: var(--r-pill); font-size: 12px; font-weight: 700; white-space: nowrap; border: 1px solid var(--border-strong); color: var(--ink); background: var(--bg); }
.badge-inline--nt { background: var(--nt); border-color: var(--nt); color: var(--on-dark); }
.badge-inline--tr { background: var(--accent); border-color: var(--accent); color: var(--on-dark); }

/* ---------- archive hero ---------- */
.arc-hero { background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%); border-bottom: 1px solid var(--border); }
.arc-hero__in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--sp-16); align-items: end; padding-block: var(--sp-20) var(--sp-16); }
.arc-hero h1 { font-size: var(--fs-4xl); font-weight: 800; letter-spacing: -0.04em; line-height: 1.15; }
.arc-hero__lead { margin-top: var(--sp-5); font-size: var(--fs-lg); color: var(--ink-2); max-width: 44ch; line-height: 1.65; }
.arc-search { display: flex; align-items: center; gap: var(--sp-3); margin-top: var(--sp-10); padding: var(--sp-2) var(--sp-2) var(--sp-2) var(--sp-5); background: var(--bg); border: 2px solid var(--ink); border-radius: var(--r-lg); box-shadow: var(--shadow-2); color: var(--muted); max-width: 640px; }
.arc-search:focus-within { border-color: var(--accent); }
.arc-search input { flex: 1; min-width: 0; height: 52px; border: 0; background: transparent; font-size: var(--fs-lg); color: var(--ink); }
.arc-search input:focus-visible { outline: none; }
.arc-stats { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.arc-stats div { padding: var(--sp-5) var(--sp-4) var(--sp-5) 0; border-bottom: 1px solid var(--border); }
.arc-stats div:first-child { grid-column: 1 / -1; }
.arc-stats div:first-child dd { font-size: 4rem; }
.arc-stats dt { font-size: var(--fs-xs); color: var(--muted); font-weight: 600; }
.arc-stats dd { margin: var(--sp-1) 0 0; font-size: var(--fs-3xl); font-weight: 800; color: var(--ink); letter-spacing: -0.04em; line-height: 1; }
@media (max-width: 64rem) { .arc-hero__in { grid-template-columns: 1fr; gap: var(--sp-10); padding-block: var(--sp-12); } }
@media (max-width: 40rem) { .arc-hero h1 { font-size: 2.25rem; } .arc-stats div:first-child dd { font-size: 3rem; } .arc-search input { font-size: var(--fs-md); } }

/* ---------- collections ---------- */
.col-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-6); }
.col-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 64rem) { .col-grid, .col-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 40rem) { .col-grid, .col-grid--3 { grid-template-columns: 1fr; } }
.col-card a { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--ink-2); }
.col-card__media { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden; background: var(--accent); }
.col-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.col-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgb(12 16 24 / 0.45), transparent 45%); }
.col-card a:hover .col-card__media img { transform: scale(1.05); }
.col-card__type { width: 100%; height: 100%; display: grid; place-content: center; justify-items: center; gap: var(--sp-3); color: rgb(255 255 255 / 0.9); font-weight: 700; background: radial-gradient(120% 80% at 70% 10%, #2f4b78 0%, var(--accent) 60%); }
.col-card__count { position: absolute; z-index: 1; left: var(--sp-4); bottom: var(--sp-4); display: inline-flex; align-items: center; height: 28px; padding: 0 var(--sp-3); border-radius: var(--r-pill); background: rgb(255 255 255 / 0.92); color: var(--ink); font-size: 12px; font-weight: 700; }
.col-card__body { display: grid; gap: var(--sp-1); padding-top: var(--sp-4); }
.col-card h3 { font-size: var(--fs-lg); transition: color var(--t) var(--ease); }
.col-card p { font-size: var(--fs-sm); color: var(--muted); line-height: 1.6; }
.col-card a:hover h3 { color: var(--accent); }

/* ---------- timeline (to scale) ---------- */
.tl { margin: 0; padding: var(--sp-8) var(--sp-8) var(--sp-6); background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-lg); overflow-x: auto; }
.tl__plot { position: relative; height: calc(var(--rows) * 64px + 24px); min-width: 760px; }
.tl__pt { position: absolute; bottom: calc(var(--r) * 64px); transform: translateX(-1px); display: grid; gap: 2px; padding: 0 0 var(--sp-3) var(--sp-3); border-left: 2px solid var(--accent); text-decoration: none; white-space: nowrap; }
.tl__pt::after { content: ""; position: absolute; left: -6px; bottom: -5px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--bg); }
.tl__pt[style*="--r:1"], .tl__pt[style*="--r:2"], .tl__pt[style*="--r:3"] { padding-bottom: calc(var(--r) * 64px + var(--sp-3)); bottom: 0; }
.tl__yr { font-size: var(--fs-lg); font-weight: 800; color: var(--ink); line-height: 1; }
.tl__nm { font-size: var(--fs-xs); color: var(--muted); }
.tl__pt:hover .tl__nm, .tl__pt:hover .tl__yr { color: var(--accent); }
.tl__pt.is-on { border-left-color: var(--nt); }
.tl__pt.is-on::after { background: var(--nt); width: 14px; height: 14px; left: -8px; bottom: -7px; }
.tl__pt.is-on .tl__yr { color: var(--nt); }
.tl__axis { position: relative; height: 40px; min-width: 760px; background: var(--surface); border-radius: var(--r-sm); }
.tl__era { position: absolute; top: 0; bottom: 0; display: grid; place-items: center; border-left: 1px solid var(--bg); font-size: var(--fs-xs); font-weight: 700; color: var(--ink-2); background: var(--surface-2); }
.tl__era:nth-child(2) { background: #e3e8ef; }
.tl__era:nth-child(3) { background: #d8dfe9; }
.tl__era.is-on { background: var(--accent); color: var(--on-dark); }
.tl__ticks { position: relative; height: 24px; min-width: 760px; }
.tl__ticks span { position: absolute; top: var(--sp-1); transform: translateX(-50%); font-size: 11px; color: var(--muted); }
.tl__cap { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); margin-top: var(--sp-4); padding-top: var(--sp-4); border-top: 1px solid var(--border); font-size: var(--fs-xs); color: var(--muted); }
.tl__cap a { color: var(--accent); font-weight: 600; }
.tl--mini { padding: var(--sp-6); }
.tl--mini .tl__plot { height: calc(var(--rows) * 52px + 16px); }

/* ---------- location ---------- */
.loc-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.loc-list > li { display: grid; grid-template-columns: minmax(0, 18rem) minmax(0, 1fr); gap: var(--sp-6); align-items: center; padding-block: var(--sp-5); border-bottom: 1px solid var(--border); }
.loc-list__name { display: flex; align-items: center; gap: var(--sp-2); color: var(--accent); }
.loc-list__name b { color: var(--ink); font-size: var(--fs-md); }
.loc-list__name span { font-size: var(--fs-xs); color: var(--muted); margin-left: var(--sp-1); }
.loc-list__items { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.loc-list__items a { display: inline-flex; align-items: center; gap: var(--sp-2); height: 48px; padding: 0 var(--sp-4) 0 4px; border: 1px solid var(--border); border-radius: var(--r-pill); font-size: var(--fs-xs); font-weight: 600; color: var(--ink-2); text-decoration: none; background: var(--bg); transition: border-color var(--t) var(--ease), color var(--t) var(--ease); }
.loc-list__items img, .loc-list__dot { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.loc-list__dot { display: grid; place-items: center; background: var(--surface-2); color: var(--muted); }
.loc-list__items a:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 64rem) { .loc-list > li { grid-template-columns: 1fr; gap: var(--sp-3); } }

/* ---------- browse: facets + results ---------- */
.browse { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: var(--sp-10); align-items: start; }
.facets { position: sticky; top: calc(var(--gnb-h) + var(--sp-4)); display: grid; gap: var(--sp-5); padding: var(--sp-6); background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-lg); max-height: calc(100dvh - var(--gnb-h) - var(--sp-8)); overflow-y: auto; }
.facets__search { display: flex; align-items: center; gap: var(--sp-2); height: 44px; padding: 0 var(--sp-3); border: 1px solid var(--border-strong); border-radius: var(--r); color: var(--muted); }
.facets__search:focus-within { border-color: var(--focus); outline: 2px solid var(--focus); outline-offset: -1px; }
.facets__search input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: var(--fs-sm); color: var(--ink); }
.facets__search input:focus-visible { outline: none; }
.facet { border: 0; margin: 0; padding: var(--sp-4) 0 0; border-top: 1px solid var(--border); display: grid; gap: 2px; }
.facet legend { float: left; width: 100%; padding: 0; margin-bottom: var(--sp-2); font-size: var(--fs-xs); font-weight: 800; color: var(--ink); }
.facet__opt { display: flex; align-items: center; gap: var(--sp-3); width: 100%; height: 36px; padding: 0 var(--sp-2); border: 0 !important; border-radius: var(--r-sm); background: transparent !important; color: var(--ink-2) !important; font-size: var(--fs-sm); font-weight: 500; text-align: left; }
.facet__opt:hover { background: var(--surface) !important; }
.facet__box { width: 18px; height: 18px; flex-shrink: 0; border: 1.5px solid var(--border-strong); border-radius: 4px; background: var(--bg); display: grid; place-items: center; transition: background-color var(--t) var(--ease), border-color var(--t) var(--ease); }
.facet__opt[aria-pressed="true"] .facet__box { background: var(--accent); border-color: var(--accent); }
.facet__opt[aria-pressed="true"] .facet__box::after { content: ""; width: 9px; height: 5px; border: 2px solid var(--on-dark); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.facet__opt[aria-pressed="true"] { color: var(--ink) !important; font-weight: 700; }
.facet__label { flex: 1; }
.facet__n { font-size: var(--fs-xs); color: var(--muted); }
.facets .link { justify-self: start; min-height: 36px; font-size: var(--fs-xs); }
.results__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--sp-3); padding-bottom: var(--sp-4); margin-bottom: var(--sp-5); border-bottom: 2px solid var(--ink); }
.results__count { font-size: var(--fs-sm); font-weight: 700; color: var(--ink); }
.results__tools { display: flex; align-items: center; gap: var(--sp-3); }
.sort select { height: 42px; padding: 0 var(--sp-8) 0 var(--sp-4); border: 1px solid var(--border-strong); border-radius: var(--r); background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236b6b76' stroke-width='2'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E") no-repeat right 12px center; appearance: none; font-size: var(--fs-xs); font-weight: 600; color: var(--ink); cursor: pointer; }
.seg button { display: inline-flex; align-items: center; gap: var(--sp-1); }
.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); margin-bottom: var(--sp-5); }
.af { display: inline-flex; align-items: center; gap: var(--sp-2); height: 34px; padding: 0 var(--sp-3); border: 1px solid var(--accent-line); border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent); font-size: var(--fs-xs); font-weight: 700; }
.af:hover { background: var(--accent); color: var(--on-dark); }
.active-filters .link { min-height: 34px; font-size: var(--fs-xs); }
.c-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 64rem) {
  .browse { grid-template-columns: 1fr; gap: var(--sp-6); }
  .facets { position: static; max-height: none; }
  .facet { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .c-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- collection page ---------- */
.col-hero { background: var(--surface); border-bottom: 1px solid var(--border); }
.col-hero__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--sp-16); align-items: center; padding-block: var(--sp-16); }
.col-hero h1 { font-size: var(--fs-4xl); font-weight: 800; letter-spacing: -0.04em; line-height: 1.15; }
.col-hero__sum { margin-top: var(--sp-4); font-size: var(--fs-lg); color: var(--ink-2); line-height: 1.6; }
.col-hero__meta { margin: var(--sp-8) 0 0; display: flex; flex-wrap: wrap; gap: var(--sp-8); padding-top: var(--sp-5); border-top: 1px solid var(--border-strong); }
.col-hero__meta dt { font-size: var(--fs-xs); color: var(--muted); font-weight: 600; }
.col-hero__meta dd { margin: var(--sp-1) 0 0; font-size: var(--fs-xl); font-weight: 800; color: var(--ink); }
.col-hero__media { aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; background: var(--accent); }
.col-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.col-hero__media .col-card__type { font-size: var(--fs-lg); }
@media (max-width: 64rem) { .col-hero__in { grid-template-columns: 1fr; gap: var(--sp-8); padding-block: var(--sp-12); } .col-hero h1 { font-size: 2.25rem; } }
.col-body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--sp-16); align-items: start; }
.col-body__text { font-size: var(--fs-lg); line-height: 1.85; position: sticky; top: calc(var(--gnb-h) + var(--sp-8)); }
.col-body__h { font-size: var(--fs-xl); padding-bottom: var(--sp-3); border-bottom: 2px solid var(--ink); }
.col-items { list-style: none; margin: 0; padding: 0; }
.col-items a { display: grid; grid-template-columns: 40px 96px minmax(0, 1fr) auto; align-items: center; gap: var(--sp-5); padding-block: var(--sp-4); border-bottom: 1px solid var(--border); text-decoration: none; color: var(--muted); transition: background-color var(--t) var(--ease); }
.col-items a:hover { background: var(--surface); }
.col-items a:hover b { color: var(--accent); }
.col-items__no { font-size: var(--fs-lg); font-weight: 800; color: var(--accent-line); text-align: center; }
.col-items img, .col-items__ph { width: 96px; height: 96px; border-radius: var(--r); object-fit: cover; }
.col-items__ph { display: grid; place-items: center; background: repeating-linear-gradient(135deg, var(--surface) 0 8px, var(--surface-2) 8px 16px); color: var(--muted); }
.col-items__body { display: grid; gap: var(--sp-1); min-width: 0; }
.col-items__body b { color: var(--ink); font-size: var(--fs-md); transition: color var(--t) var(--ease); }
.col-items__body span { font-size: var(--fs-xs); }
@media (max-width: 64rem) { .col-body { grid-template-columns: 1fr; gap: var(--sp-10); } .col-body__text { position: static; } }
@media (max-width: 40rem) { .col-items a { grid-template-columns: 64px minmax(0, 1fr); } .col-items__no, .col-items a > .ico { display: none; } .col-items img, .col-items__ph { width: 64px; height: 64px; } }

/* ---------- record (detail) ---------- */
.rec-head { background: var(--surface); border-bottom: 1px solid var(--border); }
.rec-head__in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: var(--sp-6); padding-block: var(--sp-12) var(--sp-10); }
.rec-head__badges { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.rec-head__no { font-size: var(--fs-xs); color: var(--muted); }
.rec-head h1 { font-size: var(--fs-4xl); font-weight: 800; letter-spacing: -0.04em; line-height: 1.15; }
.rec-head__hanja { display: grid; gap: var(--sp-1); margin-top: var(--sp-3); font-size: var(--fs-lg); color: var(--ink-2); }
.rec-head__hanja span { font-size: var(--fs-sm); color: var(--muted); font-style: italic; }
.rec-head__actions { display: flex; gap: var(--sp-2); }
@media (max-width: 40rem) { .rec-head h1 { font-size: 2rem; } .rec-head__in { padding-block: var(--sp-8); } }
.rec-tabs { position: sticky; top: var(--gnb-h); z-index: 50; background: rgb(255 255 255 / 0.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.rec-tabs ul { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--sp-1); overflow-x: auto; scrollbar-width: none; }
.rec-tabs a { display: inline-flex; align-items: center; height: 52px; padding: 0 var(--sp-4); font-size: var(--fs-sm); font-weight: 600; color: var(--muted); text-decoration: none; white-space: nowrap; border-bottom: 3px solid transparent; transition: color var(--t) var(--ease), border-color var(--t) var(--ease); }
.rec-tabs a:hover { color: var(--ink); }
.rec-tabs a[aria-current] { color: var(--accent); border-bottom-color: var(--accent); }
.rec-sec { padding-top: var(--sp-16); scroll-margin-top: calc(var(--gnb-h) + 64px); }
.rec-h { font-size: var(--fs-xl); padding-bottom: var(--sp-3); margin-bottom: var(--sp-6); border-bottom: 2px solid var(--ink); }
.rec-overview { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--sp-12); align-items: start; padding-top: var(--sp-12); }
@media (max-width: 64rem) { .rec-overview { grid-template-columns: 1fr; gap: var(--sp-8); } }
.rec-media__lead { position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; cursor: zoom-in; }
.rec-media__lead img { width: 100%; max-height: 640px; object-fit: contain; }
.rec-media__zoom { position: absolute; right: var(--sp-4); bottom: var(--sp-4); display: inline-flex; align-items: center; gap: var(--sp-1); height: 36px; padding: 0 var(--sp-4); border-radius: var(--r-pill); background: rgb(24 24 27 / 0.75); color: var(--on-dark); font-size: var(--fs-xs); font-weight: 600; opacity: 0.9; transition: opacity var(--t) var(--ease); }
.rec-media__lead:hover .rec-media__zoom { opacity: 1; }
.rec-media__cap { margin-top: var(--sp-3); font-size: var(--fs-xs); color: var(--muted); }
.rec-media__thumbs { list-style: none; margin: var(--sp-4) 0 0; padding: 0; display: flex; gap: var(--sp-2); overflow-x: auto; }
.rec-media__thumbs button { padding: 0; border: 2px solid transparent; border-radius: var(--r); overflow: hidden; background: none; transition: border-color var(--t) var(--ease); }
.rec-media__thumbs button:hover { border-color: var(--accent); }
.rec-media__thumbs img { width: 80px; height: 80px; object-fit: cover; }
.rec-media__empty { aspect-ratio: 4 / 3; display: grid; place-content: center; justify-items: center; gap: var(--sp-2); border: 1px solid var(--border); border-radius: var(--r-lg); color: var(--muted); background: repeating-linear-gradient(135deg, var(--surface) 0 12px, var(--surface-2) 12px 24px); text-align: center; padding: var(--sp-6); }
.rec-media__empty b { color: var(--ink-2); font-size: var(--fs-lg); }
.rec-media__empty span { font-size: var(--fs-sm); }
.rec-info .rec-h { margin-bottom: 0; border-bottom: 0; padding-bottom: var(--sp-3); }
.rec-cols { margin-top: var(--sp-8); }
.rec-cols h3 { font-size: var(--fs-sm); margin-bottom: var(--sp-3); }
.rec-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-2); }
.rec-cols a { display: flex; align-items: center; gap: var(--sp-2); min-height: 48px; padding: 0 var(--sp-4); border: 1px solid var(--border); border-radius: var(--r); text-decoration: none; color: var(--ink); font-weight: 600; font-size: var(--fs-sm); transition: border-color var(--t) var(--ease), color var(--t) var(--ease); }
.rec-cols a .num { margin-left: auto; font-size: var(--fs-xs); color: var(--muted); font-weight: 500; }
.rec-cols a .ico { color: var(--accent); }
.rec-cols a:hover { border-color: var(--accent); color: var(--accent); }
.rec-quote { margin: 0; padding: var(--sp-8) var(--sp-10); background: var(--surface); border-left: 4px solid var(--accent); border-radius: 0 var(--r-lg) var(--r-lg) 0; font-size: var(--fs-lg); font-weight: 500; color: var(--ink); line-height: 1.8; font-family: "Noto Serif KR", "Nanum Myeongjo", var(--font); }
.rec-text .prose { font-size: 1.125rem; max-width: 72ch; }
.rec-note { font-size: var(--fs-sm); color: var(--muted); margin-bottom: var(--sp-4); }
.rec-cite__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-8) var(--sp-12); }
.rec-cite__grid h3 { font-size: var(--fs-sm); margin-bottom: var(--sp-3); }
.rec-cite__text { padding: var(--sp-5); margin-bottom: var(--sp-3); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); font-size: var(--fs-sm); color: var(--ink); line-height: 1.7; overflow-wrap: anywhere; }
.rec-src { list-style: none; margin: 0 0 var(--sp-3); padding: 0; display: grid; gap: var(--sp-2); }
.rec-src a { display: inline-flex; align-items: center; gap: var(--sp-1); font-size: var(--fs-sm); color: var(--accent); font-weight: 600; }
.rec-cite__photos { grid-column: 1 / -1; }
.rows--sm { font-size: var(--fs-xs); }
.rows--sm th, .rows--sm td { padding-block: var(--sp-3); }
@media (max-width: 64rem) { .rec-cite__grid { grid-template-columns: 1fr; } }
.rec-pager { margin-top: var(--sp-8); }
.pager small { display: inline-flex; align-items: center; gap: var(--sp-1); }

/* ---------- zoom lightbox ---------- */
.lb__stage { position: relative; overflow: hidden; display: grid; place-items: center; min-height: 0; touch-action: none; }
.lb--zoom img { max-width: 100%; max-height: 100%; width: auto; height: auto; transform-origin: center; transition: transform 120ms var(--ease); user-select: none; }
.lb .btn--sm { min-width: 44px; }

/* ---------- timeline label stacking fix ---------- */
.tl__pt { z-index: calc(10 - var(--r)); }
.tl__yr, .tl__nm { position: relative; background: var(--bg); padding-right: var(--sp-2); width: max-content; }
.tl__pt:not([style*="--r:0"]) .tl__yr { padding-top: 2px; }

/* ---------- covers for records without photos ---------- */
.book, .plaque { position: relative; width: 100%; height: 100%; overflow: hidden; }
.book { background: linear-gradient(90deg, rgb(0 0 0 / 0.22) 0 6%, transparent 6% 7.5%, rgb(255 255 255 / 0.06) 7.5% 8%, transparent 8%), radial-gradient(140% 100% at 80% 0%, #33507e 0%, #213456 55%, #1a2a46 100%); }
.book::before { content: ""; position: absolute; left: 3%; top: 8%; bottom: 8%; width: 0; border-left: 1px dashed rgb(255 255 255 / 0.25); }
.book__slip { position: absolute; top: 9%; right: 12%; max-height: 82%; padding: 0.9em 0.55em; writing-mode: vertical-rl; background: #f4efe2; color: #2a2620; border: 1px solid #d9cfb6; box-shadow: inset 0 0 0 3px #f4efe2, inset 0 0 0 4px #b9a985; font-family: "Noto Serif KR", "Nanum Myeongjo", var(--font); font-size: 0.9rem; font-weight: 600; letter-spacing: 0.08em; line-height: 1.4; }
.book__note, .plaque__note { position: absolute; left: 12%; bottom: 8%; font-size: 11px; color: rgb(255 255 255 / 0.65); }
.book--lg .book__slip { font-size: 1.35rem; padding: 1.1em 0.7em; right: 16%; }
.book--lg .book__note { font-size: var(--fs-xs); }
.plaque { display: grid; place-content: center; justify-items: center; gap: var(--sp-2); padding: var(--sp-6); text-align: center; background: linear-gradient(180deg, #f5f3ee, #ebe7de); }
.plaque::before { content: ""; position: absolute; inset: 10px; border: 1px solid #d6cfbf; border-radius: 2px; }
.plaque__kind { font-size: 11px; font-weight: 700; color: var(--accent); letter-spacing: 0.1em; }
.plaque b { font-family: "Noto Serif KR", "Nanum Myeongjo", var(--font); font-size: var(--fs-lg); color: var(--ink); line-height: 1.35; }
.plaque__note { position: static; color: var(--muted); }
.plaque--lg b { font-size: var(--fs-2xl); }
.rec-media__empty { padding: 0; background: none; aspect-ratio: 4 / 3; overflow: hidden; }
.col-items__ph { overflow: hidden; background: none; }
.col-items__ph .book__slip { font-size: 9px; padding: 0.6em 0.35em; right: 10%; box-shadow: none; }
.col-items__ph .book__note, .col-items__ph .plaque__note { display: none; }
.col-items__ph .plaque b { font-size: 11px; }
.col-items__ph .plaque { padding: 6px; }
.col-items__ph .plaque::before { inset: 4px; }
@media (max-width: 40rem) {
  .col-grid, .col-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); }
  .col-card__media { aspect-ratio: 1; }
  .col-card p { display: none; }
  .col-card h3 { font-size: var(--fs-md); }
}

/* =====================================================================
   v3 · 프리미엄 디테일
   ===================================================================== */
:root { --gold: #a8874f; --gold-soft: #d8c39a; --serif: "Noto Serif KR", "Nanum Myeongjo", serif; --ink-deep: #0e131c; }
.kicker { color: var(--gold); }
.kicker--light { color: var(--gold-soft); }
.logo__seal { font-family: var(--serif); background: linear-gradient(145deg, #2c4672, var(--accent) 60%, #17263f); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.12), inset 0 0 0 3px var(--accent), inset 0 0 0 4px rgb(216 195 154 / 0.55); }
.gnb { box-shadow: 0 1px 0 var(--border); border-bottom: 0; }
.gnb__top { letter-spacing: -0.02em; }

/* mega menu: height follows the longest column, promo fills the left */
@media (min-width: 64.0625rem) {
  .gnb__sub, .gnb__panel { height: calc(var(--mega-rows) * 40px + 64px) !important; }
  .gnb__sub { padding-top: var(--sp-6) !important; gap: 0 !important; }
  .gnb__sub a { padding-block: 9px !important; font-size: 15px; color: var(--ink-2); }
  .gnb__sub a:hover { color: var(--accent); text-decoration: none; }
  .gnb__item:hover .gnb__sub, .gnb__item:focus-within .gnb__sub { background: linear-gradient(180deg, var(--surface), transparent); }
  .gnb__panel { background: var(--bg); }
  .gnb__panel-in { height: 100%; display: flex; align-items: center; }
  .gnb__promo { display: flex; align-items: center; gap: var(--sp-5); max-width: 340px; text-decoration: none; color: var(--ink); }
  .gnb__promo img { width: 112px; height: 112px; object-fit: cover; border-radius: var(--r); flex-shrink: 0; }
  .gnb__promo span { display: grid; gap: var(--sp-1); }
  .gnb__promo small { font-size: 12px; font-weight: 700; color: var(--gold); letter-spacing: 0.04em; }
  .gnb__promo b { font-size: var(--fs-md); line-height: 1.45; letter-spacing: -0.02em; }
  .gnb__promo em { display: inline-flex; align-items: center; gap: 4px; font-style: normal; font-size: var(--fs-xs); font-weight: 600; color: var(--accent); margin-top: var(--sp-1); }
  .gnb__promo:hover em { text-decoration: underline; }
}
@media (max-width: 80rem) and (min-width: 64.0625rem) { .gnb__promo { display: none; } }
@media (max-width: 64rem) { .gnb__panel-in { display: none; } }

/* hero */
.hero-d { min-height: clamp(640px, 88vh, 860px); align-items: stretch; flex-direction: column; justify-content: flex-end; }
.hero-d::before { background: linear-gradient(90deg, rgb(10 14 22 / 0.82) 0%, rgb(10 14 22 / 0.5) 40%, rgb(10 14 22 / 0.05) 72%), linear-gradient(0deg, rgb(10 14 22 / 0.88) 0%, rgb(10 14 22 / 0.2) 34%, transparent 55%); }
.hero-d__media img { animation: heroZoom 18s var(--ease) both; }
@keyframes heroZoom { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero-d__in { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-block: var(--sp-20) var(--sp-12); }
.hero-d__kicker { color: var(--gold-soft); }
.hero-d h1 { font-size: clamp(2.5rem, 4.6vw, 4rem); line-height: 1.2; text-shadow: 0 2px 24px rgb(0 0 0 / 0.25); }
.hero-d__vert { position: absolute; right: calc((100% - var(--wrap)) / 2 + var(--gutter)); top: 50%; transform: translateY(-62%); writing-mode: vertical-rl; font-family: var(--serif); font-weight: 500; font-size: 1.125rem; letter-spacing: 0.6em; color: rgb(255 255 255 / 0.72); padding-block: var(--sp-6); border-left: 1px solid rgb(216 195 154 / 0.5); padding-left: var(--sp-3); margin: 0; }
.hero-d__cap { display: flex; align-items: center; gap: var(--sp-2); font-size: 12px; color: rgb(255 255 255 / 0.6); padding-bottom: var(--sp-4); }
.hero-d__cap span { color: rgb(255 255 255 / 0.4); margin-left: var(--sp-1); }
@media (max-width: 64rem) { .hero-d__vert { display: none; } }

/* quick bar inside hero */
.quick { margin-top: 0 !important; position: relative; z-index: 2; background: rgb(10 14 22 / 0.5); backdrop-filter: blur(14px) saturate(1.1); -webkit-backdrop-filter: blur(14px) saturate(1.1); border-top: 1px solid rgb(255 255 255 / 0.12); }
.quick__list { background: none !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; overflow: visible !important; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.quick__list li + li { border-left: 1px solid rgb(255 255 255 / 0.1) !important; border-top: 0 !important; }
.quick__list a { position: relative; flex-direction: row !important; align-items: flex-start !important; justify-content: flex-start !important; gap: var(--sp-3) !important; min-height: 112px !important; padding: var(--sp-6) var(--sp-5) !important; color: var(--on-dark) !important; text-align: left; transition: background-color var(--t) var(--ease) !important; }
.quick__list a:hover { background: rgb(255 255 255 / 0.08) !important; }
.quick__ico { width: auto !important; height: auto !important; background: none !important; border-radius: 0 !important; color: var(--gold-soft) !important; padding-top: 2px; }
.quick__list a:hover .quick__ico { background: none !important; color: var(--on-dark) !important; }
.quick__txt { display: grid; gap: var(--sp-1); min-width: 0; }
.quick__txt b { font-size: var(--fs-md); font-weight: 700; letter-spacing: -0.02em; }
.quick__txt > span { font-size: 13px; color: rgb(255 255 255 / 0.62); line-height: 1.45; }
.quick__txt > span b { font-size: 13px; font-weight: 600; color: var(--on-dark); }
.quick__go { position: absolute; right: var(--sp-4); top: var(--sp-6); color: var(--gold-soft); opacity: 0; transform: translateX(-6px); transition: opacity var(--t) var(--ease), transform var(--t) var(--ease); }
.quick__list a:hover .quick__go, .quick__list a:focus-visible .quick__go { opacity: 1; transform: none; }
.quick__list a:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: -3px; }
@media (max-width: 80rem) { .quick__list a { padding: var(--sp-5) var(--sp-4) !important; } .quick__txt > span { font-size: 12px; } }
@media (max-width: 64rem) {
  .quick { background: var(--ink-deep); backdrop-filter: none; }
  .quick__list { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .quick__list li:nth-child(4) { border-left: 0 !important; }
  .quick__list li:nth-child(n+4) { border-top: 1px solid rgb(255 255 255 / 0.1) !important; }
}
@media (max-width: 40rem) {
  .hero-d { min-height: 0; }
  .hero-d__in { padding-block: var(--sp-16) var(--sp-8); }
  .quick__list { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .quick__list li:nth-child(odd) { border-left: 0 !important; }
  .quick__list li:nth-child(even) { border-left: 1px solid rgb(255 255 255 / 0.1) !important; }
  .quick__list li:nth-child(n+3) { border-top: 1px solid rgb(255 255 255 / 0.1) !important; }
  .quick__list a { min-height: 88px !important; flex-direction: column !important; gap: var(--sp-2) !important; }
  .quick__go { display: none; }
}

/* section heads: refined rule */
.sec__head { position: relative; padding-bottom: var(--sp-6); border-bottom: 1px solid var(--border); }
.sec__head::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 48px; height: 2px; background: var(--ink); }
.sec--tint .sec__head { border-bottom-color: var(--border-strong); }

/* cards polish */
.c-card a { border-radius: var(--r-lg); }
.c-card__media::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 -60px 60px -40px rgb(10 14 22 / 0.18); pointer-events: none; }
.c-card__body { padding: var(--sp-5) var(--sp-5) var(--sp-6); }
.c-card a:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgb(14 19 28 / 0.12); }

/* about: layered composition */
.about-wrap { overflow: hidden; }
.about-d { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--sp-20); }
.about-d__media { position: relative; padding: 0 var(--sp-16) var(--sp-16) 0; }
.about-d__main { margin: 0; }
.about-d__main img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: var(--r-lg); box-shadow: 0 24px 60px rgb(14 19 28 / 0.18); }
.about-d__sub { position: absolute; right: 0; bottom: 0; width: 46%; margin: 0; padding: 8px; background: var(--bg); border-radius: var(--r-lg); box-shadow: 0 18px 44px rgb(14 19 28 / 0.18); }
.about-d__sub img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r); }
.about-d__seal { position: absolute; left: -14px; top: 32px; display: grid; place-items: center; width: 64px; height: 64px; background: #9a3a2e; color: #f6e9e2; font-family: var(--serif); font-size: 13px; font-weight: 700; line-height: 1.15; text-align: center; border-radius: 6px; box-shadow: inset 0 0 0 2px #9a3a2e, inset 0 0 0 3px rgb(246 233 226 / 0.6), 0 6px 18px rgb(0 0 0 / 0.18); transform: rotate(-4deg); }
.about-d__cap { margin-top: var(--sp-3); font-size: var(--fs-xs); color: var(--muted); }
.about-d__quote { font-family: var(--serif); font-size: var(--fs-xl); font-weight: 500; color: var(--accent); padding-left: var(--sp-4); border-left: 2px solid var(--gold); }
.about-d__media figcaption { display: none; }
@media (max-width: 64rem) { .about-d { gap: var(--sp-12); } .about-d__media { padding: 0 var(--sp-10) var(--sp-10) 0; max-width: 560px; } }

/* board */
.panel { border-radius: var(--r-lg); box-shadow: var(--shadow-1); }
.panel__head { border-bottom-width: 1px; border-bottom-color: var(--border); position: relative; }
.panel__head::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 32px; height: 2px; background: var(--ink); }
.new { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-left: var(--sp-2); border-radius: 50%; background: #9a3a2e; color: var(--on-dark); font-size: 10px; font-weight: 800; font-style: normal; vertical-align: 2px; }
.dday { display: inline-flex; align-items: center; height: 20px; margin-left: var(--sp-2); padding: 0 var(--sp-2); border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 800; font-style: normal; vertical-align: 1px; }

/* search band with photo */
.search-band { background: var(--ink-deep); padding-block: var(--sp-24); isolation: isolate; }
.search-band__bg { position: absolute; inset: 0; z-index: -2; }
.search-band__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.search-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgb(19 33 58 / 0.94) 0%, rgb(19 33 58 / 0.82) 45%, rgb(19 33 58 / 0.55) 100%); }
.search-band::after { z-index: -1; color: rgb(216 195 154 / 0.08); font-family: var(--serif); }
.search-band__form { align-items: center; gap: var(--sp-3) !important; padding: 6px 6px 6px var(--sp-5); background: var(--bg); border-radius: var(--r-lg); color: var(--muted); box-shadow: 0 20px 50px rgb(0 0 0 / 0.3); }
.search-band__form input { height: 56px !important; padding: 0 !important; border-radius: 0 !important; font-size: var(--fs-lg) !important; }
.search-band__form input:focus-visible { outline: none; }
.search-band .btn--primary { background: var(--accent); }
.search-band .btn--primary:hover { background: var(--accent-hover); }
.search-band__chips a { border-color: rgb(216 195 154 / 0.35); color: rgb(255 255 255 / 0.9); }
.search-band__chips a:hover { background: rgb(216 195 154 / 0.15); border-color: var(--gold-soft); }
@media (max-width: 40rem) { .search-band__form { flex-direction: row !important; flex-wrap: wrap; padding: var(--sp-2); } .search-band__form > .ico { display: none; } .search-band__form input { flex: 1 1 100%; padding: 0 var(--sp-3) !important; } .search-band__form .btn { flex: 1; } }

/* info */
.info-d li { border-radius: var(--r-lg); background: var(--bg); }
.info-d__ico { background: none; border: 1px solid var(--accent-line); color: var(--accent); border-radius: 50%; }

/* closing band */
.closing { position: relative; overflow: hidden; background: var(--ink-deep); color: var(--on-dark); padding-block: var(--sp-24); text-align: center; }
.closing__in { position: relative; display: grid; justify-items: center; gap: var(--sp-8); }
.closing__hanja { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -54%); font-family: var(--serif); font-weight: 700; font-size: clamp(10rem, 24vw, 20rem); line-height: 1; color: rgb(216 195 154 / 0.06); letter-spacing: 0.1em; pointer-events: none; white-space: nowrap; }
.closing__text { position: relative; font-family: var(--serif); font-size: clamp(1.375rem, 2.4vw, 2rem); font-weight: 500; line-height: 1.7; color: #f3efe6; }
.btn--outline-light { position: relative; background: transparent; border-color: rgb(216 195 154 / 0.6); color: var(--gold-soft); }
.btn--outline-light:hover { background: rgb(216 195 154 / 0.12); border-color: var(--gold-soft); color: var(--on-dark); }
.foot-d { background: #11161f; }

/* reveal on scroll (visible without JS) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } .hero-d__media img { animation: none; } }
.quick__txt > span b { white-space: nowrap; }

/* =====================================================================
   현판 서예 (迦智山 寶林寺) · 마스크로 색을 입혀 쓴다
   ===================================================================== */
.calli { display: block; background: currentColor; -webkit-mask: var(--calli-src) center / contain no-repeat; mask: var(--calli-src) center / contain no-repeat; }
.calli--full { --calli-src: url("/img/brand/hyeonpan.webp"); aspect-ratio: 833 / 1398; }
.calli--borim { --calli-src: url("/img/brand/borim.png"); aspect-ratio: 385 / 923; }

/* 로고: 세로형 낙관 */
.logo__seal { width: 36px !important; height: 54px !important; border-radius: 6px !important; padding: 6px 0; color: #f6efe0; }
.logo__seal .calli--borim { height: 100%; width: auto; margin-inline: auto; }
.logo--foot .logo__seal { color: #f6efe0; }
@media (max-width: 64rem) { .logo__seal { width: 30px !important; height: 46px !important; padding: 5px 0; } }

/* 첫 화면 세로 사명 */
.hero-d__calli { position: absolute; right: calc((100% - var(--wrap)) / 2 + var(--gutter)); top: 50%; transform: translateY(-58%); z-index: 1; filter: drop-shadow(0 6px 24px rgb(0 0 0 / 0.35)); pointer-events: none; }
.hero-d__calli .calli { height: clamp(240px, 38vh, 360px); width: auto; color: rgb(255 255 255 / 0.88); }
.hero-d__calli::after { content: ""; position: absolute; left: -28px; top: 6%; bottom: 6%; width: 1px; background: linear-gradient(180deg, transparent, rgb(216 195 154 / 0.7), transparent); }
@media (max-width: 64rem) { .hero-d__calli { display: none; } }

/* 맺음 문구 배경 */
.closing__calli { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); height: 150%; width: auto; color: rgb(216 195 154 / 0.07); pointer-events: none; }

/* 아카이브 검색 영역 배경: 글꼴 대신 서예 */
.search-band::after { content: "" !important; right: 4%; bottom: -12%; width: 300px; height: auto; aspect-ratio: 833 / 1398; background: rgb(216 195 154 / 0.09); -webkit-mask: url("/img/brand/hyeonpan.webp") center / contain no-repeat; mask: url("/img/brand/hyeonpan.webp") center / contain no-repeat; font-size: 0 !important; }
@media (max-width: 64rem) { .search-band::after { width: 180px; } }
.search-band::after { display: none; }
.closing__calli { color: rgb(216 195 154 / 0.09); height: 170%; }

/* 가로형 현판 서예 */
.calli--h { --calli-src: url("/img/brand/hyeonpan-h.webp"); aspect-ratio: 2026 / 402; }
.hero-d__calli-h { display: none; width: min(78vw, 320px); color: rgb(255 255 255 / 0.92); margin-bottom: var(--sp-6); filter: drop-shadow(0 4px 16px rgb(0 0 0 / 0.35)); }
@media (max-width: 64rem) { .hero-d__calli-h { display: block; } }
.closing__title { position: relative; width: min(80vw, 420px); color: var(--gold-soft); margin-bottom: calc(-1 * var(--sp-2)); }
.foot-d__sign { display: inline-flex; align-items: center; gap: var(--sp-4); text-decoration: none !important; }
.foot-d__calli { height: 30px; width: auto; color: #e9dcc0; }
.foot-d__sign small { font-size: 12px; color: var(--foot-ink); padding-left: var(--sp-4); border-left: 1px solid rgb(255 255 255 / 0.15); }
@media (max-width: 40rem) { .foot-d__calli { height: 22px; } .foot-d__sign small { display: none; } }
@media (max-width: 40rem) { .closing__text br { display: none; } .closing__text { font-size: 1.25rem; max-width: 20em; text-wrap: balance; } }

/* =====================================================================
   보림사 소개 (about)
   ===================================================================== */
.ab-hero { position: relative; isolation: isolate; overflow: hidden; color: var(--on-dark); background: var(--ink-deep); }
.ab-hero__media { position: absolute; inset: 0; z-index: -2; }
.ab-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; animation: heroZoom 18s var(--ease) both; }
.ab-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(10 14 22 / 0.85), rgb(10 14 22 / 0.45) 55%, rgb(10 14 22 / 0.25)), linear-gradient(0deg, rgb(10 14 22 / 0.6), transparent 50%); }
.ab-hero__in { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-10); min-height: 460px; padding-block: var(--sp-16); }
.ab-hero h1 { color: var(--on-dark); font-size: var(--fs-4xl); font-weight: 800; letter-spacing: -0.04em; }
.ab-hero__lead { margin-top: var(--sp-5); font-size: var(--fs-lg); line-height: 1.7; color: rgb(255 255 255 / 0.85); }
.ab-hero__calli { height: 300px; width: auto; color: rgb(255 255 255 / 0.85); filter: drop-shadow(0 6px 24px rgb(0 0 0 / 0.35)); flex-shrink: 0; }
@media (max-width: 64rem) { .ab-hero__calli { display: none; } .ab-hero__in { min-height: 360px; } .ab-hero__lead br { display: none; } }

.ab-intro__in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--sp-16); align-items: start; }
.ab-intro__text { display: grid; gap: var(--sp-5); }
.ab-intro__text h2 { font-size: 2.25rem; line-height: 1.3; }
.ab-intro__text p:not(.kicker) { font-size: 1.125rem; line-height: 1.85; max-width: 60ch; }
.ab-facts { margin: 0; border-top: 2px solid var(--ink); }
.ab-facts div { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: var(--sp-4); padding-block: var(--sp-4); border-bottom: 1px solid var(--border); }
.ab-facts dt { font-size: var(--fs-xs); font-weight: 700; color: var(--gold); padding-top: 3px; }
.ab-facts dd { margin: 0; color: var(--ink); font-weight: 600; }
.ab-facts small { font-weight: 400; color: var(--muted); }
@media (max-width: 64rem) { .ab-intro__in { grid-template-columns: 1fr; gap: var(--sp-10); } }

.ab-founder { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--sp-16); align-items: start; }
.ab-founder__media { position: relative; padding: 0 var(--sp-12) var(--sp-20) 0; }
.ab-founder__main, .ab-founder__sub { margin: 0; }
.ab-founder__main img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-lg); box-shadow: 0 24px 60px rgb(14 19 28 / 0.18); }
.ab-founder__sub { position: absolute; right: 0; bottom: 0; width: 50%; padding: 8px; background: var(--bg); border-radius: var(--r-lg); box-shadow: 0 18px 44px rgb(14 19 28 / 0.18); }
.ab-founder__sub img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r); }
.ab-founder figcaption { margin-top: var(--sp-2); font-size: 12px; color: var(--muted); }
.ab-founder__sub figcaption { padding: 0 var(--sp-1) var(--sp-1); }
.ab-founder__text { display: grid; gap: var(--sp-5); }
.ab-founder__text h2 { font-size: 2.25rem; display: grid; gap: var(--sp-2); }
.ab-founder__text h2 small { font-family: var(--serif); font-size: var(--fs-md); font-weight: 500; color: var(--muted); letter-spacing: 0.02em; }
.ab-founder__text > p { font-size: 1.0625rem; line-height: 1.85; }
.ab-life { list-style: none; margin: var(--sp-4) 0 0; padding: 0; position: relative; }
.ab-life::before { content: ""; position: absolute; left: 3.5rem; top: 8px; bottom: 8px; width: 1px; background: var(--border-strong); }
.ab-life li { position: relative; display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); gap: var(--sp-6); padding-block: var(--sp-2); }
.ab-life li::before { content: ""; position: absolute; left: calc(3.5rem - 4px); top: 15px; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 2px solid var(--gold); }
.ab-life li:nth-child(4)::before, .ab-life li:nth-child(5)::before { background: var(--gold); }
.ab-life .num { font-weight: 800; color: var(--ink); font-size: var(--fs-md); }
.ab-life p { font-size: var(--fs-sm); color: var(--ink-2); }
@media (max-width: 64rem) { .ab-founder { grid-template-columns: 1fr; gap: var(--sp-10); } .ab-founder__media { max-width: 520px; } }

.ab-quote { position: relative; isolation: isolate; overflow: hidden; background: var(--ink-deep); color: var(--on-dark); padding-block: var(--sp-24); }
.ab-quote__bg { position: absolute; inset: 0; z-index: -2; }
.ab-quote__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.ab-quote::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(14 19 28 / 0.92), rgb(14 19 28 / 0.7)); }
.ab-quote__in { display: grid; gap: var(--sp-6); justify-items: start; }
.ab-quote__text { font-family: var(--serif); font-size: clamp(2rem, 4.4vw, 3.5rem); font-weight: 700; line-height: 1.3; color: #f3efe6; }
.ab-quote__text::before { content: "“"; display: block; font-size: 1.6em; line-height: 0.6; color: var(--gold); margin-bottom: var(--sp-2); }
.ab-quote__by { font-size: var(--fs-md); color: var(--gold-soft); padding-left: var(--sp-4); border-left: 2px solid var(--gold); display: grid; gap: 2px; }
.ab-quote__by span { font-size: var(--fs-xs); color: rgb(255 255 255 / 0.55); }

/* 구산선문 지도 */
.gmap { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--sp-12); align-items: center; }
.gmap__fig { margin: 0; padding: var(--sp-6); background: var(--surface); border-radius: var(--r-lg); }
.gmap__fig svg { display: block; width: 100%; height: auto; max-height: 760px; font-family: var(--font); }
.gmap__fig figcaption { margin-top: var(--sp-3); font-size: 12px; color: var(--muted); }
.gmap__south path { fill: #fff; stroke: #c9d3e3; stroke-width: 1.2; stroke-linejoin: round; transition: fill var(--t) var(--ease); }
.gmap__south path:hover { fill: #f7f9fc; }
.gmap__north { fill: #eceff3; stroke: #d3d9e2; stroke-width: 1.2; stroke-dasharray: 4 4; }
.gmap__pt { cursor: pointer; }
.gmap__dot { fill: #fff; stroke: var(--accent); stroke-width: 3; transition: r var(--t) var(--ease), fill var(--t) var(--ease); }
.gmap__no { font-size: 15px; font-weight: 800; fill: var(--accent); pointer-events: none; }
.gmap__lb { font-size: 17px; font-weight: 800; fill: var(--ink); paint-order: stroke; stroke: #fff; stroke-width: 5px; stroke-linejoin: round; letter-spacing: -0.02em; }
.gmap__sub { font-size: 12.5px; font-weight: 500; fill: var(--muted); paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }
.gmap__pt.is-me .gmap__dot { fill: #9a3a2e; stroke: #9a3a2e; }
.gmap__pt.is-me .gmap__no { fill: #fff; }
.gmap__pt.is-me .gmap__lb { fill: #9a3a2e; font-size: 19px; }
.gmap__pulse { fill: none; stroke: #9a3a2e; stroke-width: 2; opacity: 0.5; transform-origin: center; transform-box: fill-box; animation: gpulse 2.4s var(--ease) infinite; }
@keyframes gpulse { 0% { transform: scale(0.7); opacity: 0.7; } 100% { transform: scale(1.8); opacity: 0; } }
.gmap__pt.is-hl .gmap__dot { fill: var(--accent); }
.gmap__pt.is-hl .gmap__no { fill: #fff; }
.gmap__pt.is-me.is-hl .gmap__dot { fill: #7d2c22; }
.gmap__list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.gmap__list li { display: flex; align-items: center; gap: var(--sp-4); padding: var(--sp-4) var(--sp-3); border-bottom: 1px solid var(--border); cursor: default; transition: background-color var(--t) var(--ease); }
.gmap__list li:hover, .gmap__list li.is-hl, .gmap__list li:focus-visible { background: var(--surface); }
.gmap__badge { display: grid; place-items: center; width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; border: 2px solid var(--accent); color: var(--accent); font-size: 14px; font-weight: 800; }
.gmap__list li.is-me .gmap__badge { background: #9a3a2e; border-color: #9a3a2e; color: #fff; }
.gmap__body { display: grid; gap: 2px; min-width: 0; }
.gmap__body b { color: var(--ink); font-size: var(--fs-md); }
.gmap__hanja { font-family: var(--serif); font-weight: 500; font-size: var(--fs-xs); color: var(--muted); margin-left: var(--sp-1); }
.gmap__body > span { font-size: var(--fs-xs); color: var(--muted); }
.gmap__here { margin-left: auto; display: inline-flex; align-items: center; height: 24px; padding: 0 var(--sp-3); border-radius: var(--r-pill); background: #f8ece9; color: #9a3a2e; font-size: 12px; font-weight: 800; }
.gmap__list li.is-me { background: linear-gradient(90deg, #fbf3f1, transparent); }
@media (max-width: 64rem) { .gmap { grid-template-columns: 1fr; gap: var(--sp-8); } .gmap__fig { max-width: 560px; margin-inline: auto; } }
@media (prefers-reduced-motion: reduce) { .gmap__pulse { animation: none; } }

/* 연혁 */
.ab-chron { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-6); }
.ab-chron li { display: grid; grid-template-rows: auto 1fr; gap: var(--sp-3); }
.ab-chron__y { font-size: var(--fs-2xl); font-weight: 800; color: var(--ink); letter-spacing: -0.03em; padding-bottom: var(--sp-3); border-bottom: 2px solid var(--ink); position: relative; }
.ab-chron li.has-pic .ab-chron__y { color: var(--accent); border-bottom-color: var(--accent); }
.ab-chron__card { display: flex; flex-direction: column; gap: var(--sp-3); padding: var(--sp-5); background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-lg); }
.ab-chron__pic { margin: calc(-1 * var(--sp-5)) calc(-1 * var(--sp-5)) 0; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--r-lg) var(--r-lg) 0 0; }
.ab-chron__pic img { width: 100%; height: 100%; object-fit: cover; }
.ab-chron__card p { font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.65; }
.ab-chron__card .more { margin-top: auto; min-height: 32px; font-size: var(--fs-xs); color: var(--accent); }
@media (max-width: 64rem) { .ab-chron { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 40rem) { .ab-chron { grid-template-columns: 1fr; } }

/* 작설차와 숲 */
.ab-tea__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--sp-16); align-items: center; }
.ab-tea__pic { margin: 0; }
.ab-tea__pic img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-lg); }
.ab-tea__pic figcaption { margin-top: var(--sp-2); font-size: 12px; color: var(--muted); }
.ab-tea__in > div { display: grid; gap: var(--sp-5); justify-items: start; }
.ab-tea h2 { font-size: 2.25rem; line-height: 1.3; }
.ab-tea p:not(.kicker) { font-size: 1.0625rem; line-height: 1.85; max-width: 56ch; }
@media (max-width: 64rem) { .ab-tea__in { grid-template-columns: 1fr; gap: var(--sp-10); } .ab-tea__pic { max-width: 520px; } }

/* 주지스님 인사말 */
.ab-greet { display: flex; gap: var(--sp-10); align-items: flex-start; padding: var(--sp-12); background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-lg); }
.ab-greet__seal { width: 64px !important; height: 96px !important; padding: 10px 0 !important; flex-shrink: 0; }
.ab-greet h2 { font-size: var(--fs-2xl); margin-bottom: var(--sp-4); }
.ab-greet__empty { color: var(--muted); font-size: var(--fs-md); }
@media (max-width: 40rem) { .ab-greet { flex-direction: column; padding: var(--sp-8); gap: var(--sp-5); } }
@media (max-width: 40rem) {
  .gmap__fig { padding: var(--sp-3); }
  .gmap__dot { r: 24px; stroke-width: 4; }
  .gmap__pulse { r: 34px; }
  .gmap__no { font-size: 24px; transform: translateY(3px); }
  .gmap__lb { font-size: 30px; stroke-width: 8px; transform: translateX(var(--lbx, 12px)) translateY(10px); }
  .gmap__pt.is-me .gmap__lb { font-size: 32px; }
  .gmap__sub { display: none; }
}
@media (max-width: 40rem) { .gmap__lb--l { --lbx: -12px; } }

/* 한글 붓글씨 로고 (가지산 보림사) */
.calli--ko { --calli-src: url("/img/brand/name-ko.webp"); aspect-ratio: 2069 / 407; }
.logo__word { display: block; line-height: 0; }
.logo__word .calli { height: 28px; width: auto; color: var(--ink); }
.logo__text { gap: 5px; }
.logo:hover .logo__word .calli { color: var(--accent); }
@media (max-width: 64rem) { .logo__word .calli { height: 23px; } }
/* 영문 소제목 제거 후 제목 간격 */
.sec__head h2, .about-d__text h2, .ab-intro__text h2, .ab-founder__text h2, .ab-tea h2, .arc-hero h1, .col-hero h1, .rec-head h1 { margin-top: 0; }
.ab-chron { align-items: start; } .ab-chron li { grid-template-rows: auto auto; }
.logo__word .calli { height: 32px; } @media (max-width: 64rem) { .logo__word .calli { height: 26px; } }

/* 로고: 가로형 한자 서예, 금색 */
.logo__word .calli { height: 30px; color: #8f6f3a; }
.logo:hover .logo__word .calli { color: #6f5328; }
@media (max-width: 64rem) { .logo__word .calli { height: 24px; } }

/* =====================================================================
   법회와 재 (practice)
   ===================================================================== */
.pr-hero { position: relative; isolation: isolate; overflow: hidden; color: var(--on-dark); background: var(--ink-deep); }
.pr-hero__media { position: absolute; inset: 0; z-index: -2; }
.pr-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; animation: heroZoom 18s var(--ease) both; }
.pr-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(10 14 22 / 0.88), rgb(10 14 22 / 0.55) 50%, rgb(10 14 22 / 0.2)), linear-gradient(0deg, rgb(10 14 22 / 0.5), transparent 50%); }
.pr-hero__in { min-height: 440px; display: flex; flex-direction: column; justify-content: center; gap: var(--sp-5); padding-block: var(--sp-16); }
.pr-hero h1 { color: var(--on-dark); font-size: var(--fs-4xl); font-weight: 800; letter-spacing: -0.04em; }
.pr-hero__lead { font-size: var(--fs-lg); line-height: 1.7; color: rgb(255 255 255 / 0.86); max-width: 40ch; }
.pr-hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-4); }
@media (max-width: 40rem) { .pr-hero__lead br { display: none; } .pr-hero__in { min-height: 380px; } }
.pr-note { display: inline-flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-xs); font-weight: 600; color: var(--gold); padding: var(--sp-2) var(--sp-3); border: 1px dashed var(--gold-soft); border-radius: var(--r-pill); }

/* 하루 띠 (0~24시, 실제 비율) */
.dayline { position: relative; height: 128px; margin: var(--sp-4) 0 var(--sp-10); }
.dayline__bar { position: absolute; left: 0; right: 0; top: 62px; height: 14px; border-radius: var(--r-pill); background: linear-gradient(90deg, #1b2740 0%, #2a3a5e 14%, #c9a46a 22%, #f1dfb8 30%, #f6efe0 50%, #f1dfb8 68%, #c98e5a 76%, #3a4565 84%, #1b2740 100%); box-shadow: inset 0 0 0 1px rgb(14 19 28 / 0.08); }
.dayline__mk { position: absolute; top: 0; transform: translateX(-50%); display: grid; justify-items: center; gap: 2px; }
.dayline__mk b { font-size: var(--fs-lg); font-weight: 800; color: var(--ink); }
.dayline__mk i { font-style: normal; font-size: var(--fs-xs); color: var(--muted); font-weight: 600; }
.dayline__mk::after { content: ""; width: 16px; height: 16px; margin-top: 6px; border-radius: 50%; background: var(--bg); border: 3px solid var(--accent); box-shadow: 0 2px 8px rgb(14 19 28 / 0.2); }
.dayline__mk.is-next b { color: var(--accent); }
.dayline__mk.is-next::after { background: var(--accent); box-shadow: 0 0 0 6px rgb(35 57 93 / 0.15); }
.dayline__now { position: absolute; top: 54px; bottom: 24px; width: 2px; background: #9a3a2e; transform: translateX(-1px); }
.dayline__now i { position: absolute; top: 36px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 11px; font-weight: 800; color: #9a3a2e; white-space: nowrap; }
.dayline__ticks { position: absolute; left: 0; right: 0; bottom: 0; height: 20px; }
.dayline__ticks span { position: absolute; transform: translateX(-50%); font-size: 11px; color: var(--muted); }
.dayline__ticks span:first-child { transform: none; }
.dayline__ticks span:last-child { transform: translateX(-100%); }
@media (max-width: 40rem) { .dayline__mk i { display: none; } .dayline__ticks span:nth-child(even) { display: none; } }

.rites-d { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-6); }
.rites-d li { position: relative; display: grid; gap: var(--sp-2); align-content: start; padding: var(--sp-8); border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--bg); transition: box-shadow var(--t) var(--ease), border-color var(--t) var(--ease); }
.rites-d li.is-next { border-color: var(--accent); box-shadow: 0 16px 40px rgb(35 57 93 / 0.12); }
.rites-d__ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--accent-line); color: var(--accent); margin-bottom: var(--sp-3); }
.rites-d li:nth-child(1) .rites-d__ico { color: #2f4b78; }
.rites-d li:nth-child(2) .rites-d__ico { color: var(--gold); border-color: var(--gold-soft); }
.rites-d li:nth-child(3) .rites-d__ico { color: #4a3a6a; }
.rites-d__badge { position: absolute; top: var(--sp-6); right: var(--sp-6); display: inline-flex; align-items: center; height: 26px; padding: 0 var(--sp-3); border-radius: var(--r-pill); background: var(--accent); color: var(--on-dark); font-size: 12px; font-weight: 700; }
.rites-d__time { font-size: var(--fs-3xl); font-weight: 800; color: var(--ink); letter-spacing: -0.03em; line-height: 1.1; }
.rites-d h3 { font-size: var(--fs-xl); }
.rites-d__sub { font-size: var(--fs-sm); font-weight: 600; color: var(--gold); }
.rites-d li > p:last-child { font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.75; margin-top: var(--sp-2); }
@media (max-width: 64rem) { .rites-d { grid-template-columns: 1fr; } }

/* 사물 */
.samul { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--sp-16); align-items: center; }
.samul__text { display: grid; gap: var(--sp-4); }
.samul__text h2 { font-size: var(--fs-2xl); line-height: 1.35; }
.samul__text p { line-height: 1.85; }
.samul__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-4); }
.samul__list li { display: grid; gap: var(--sp-2); justify-items: center; text-align: center; padding: var(--sp-8) var(--sp-4); background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-lg); }
.samul__hanja { font-family: var(--serif); font-size: 2.25rem; font-weight: 700; color: var(--accent); line-height: 1.2; letter-spacing: 0.04em; }
.samul__list b { color: var(--ink); font-size: var(--fs-md); }
.samul__list p { font-size: var(--fs-xs); color: var(--muted); line-height: 1.6; }
@media (max-width: 64rem) { .samul { grid-template-columns: 1fr; gap: var(--sp-8); } }
@media (max-width: 40rem) { .samul__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 다가오는 법회 + 사진 */
.pr-sched { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--sp-16); align-items: start; }
.pr-sched__media figure { margin: 0; position: sticky; top: calc(var(--gnb-h) + var(--sp-8)); }
.pr-sched__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-lg); box-shadow: 0 24px 60px rgb(14 19 28 / 0.16); }
.pr-sched__media figcaption { margin-top: var(--sp-3); font-size: 12px; color: var(--muted); }
.events-d--lg li { padding-block: var(--sp-5); }
.events-d--lg .date-chip { width: 68px; height: 72px; }
.events-d--lg .events-d__body b { font-size: var(--fs-lg); }
.events-d--lg .events-d__body span { font-size: var(--fs-sm); }
@media (max-width: 64rem) { .pr-sched { grid-template-columns: 1fr; gap: var(--sp-8); } .pr-sched__media { max-width: 480px; } .pr-sched__media figure { position: static; } }

/* 연중 재일 */
.year-d { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-4); }
.year-d li { display: grid; gap: var(--sp-2); align-content: start; padding: var(--sp-6); background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-lg); border-top: 3px solid var(--gold); }
.year-d__date { font-size: var(--fs-xs); font-weight: 700; color: var(--gold); }
.year-d b { color: var(--ink); font-size: var(--fs-lg); }
.year-d p { font-size: var(--fs-sm); color: var(--muted); }
@media (max-width: 64rem) { .year-d { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 재·기도 접수 띠 */
.pr-band { position: relative; isolation: isolate; overflow: hidden; background: var(--ink-deep); color: var(--on-dark); padding-block: var(--sp-24); }
.pr-band__bg { position: absolute; inset: 0; z-index: -2; }
.pr-band__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.pr-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgb(14 19 28 / 0.94), rgb(19 33 58 / 0.82) 55%, rgb(19 33 58 / 0.6)); }
.pr-band__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--sp-12); align-items: center; }
.pr-band__text { display: grid; gap: var(--sp-5); justify-items: start; }
.pr-band h2 { color: var(--on-dark); font-size: var(--fs-2xl); }
.pr-band__text p { color: rgb(255 255 255 / 0.82); line-height: 1.8; }
.pr-band__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-2); }
.pr-band__cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-4); }
.pr-band__cards li { display: grid; gap: var(--sp-2); align-content: start; padding: var(--sp-6); border: 1px solid rgb(216 195 154 / 0.28); border-radius: var(--r-lg); background: rgb(255 255 255 / 0.05); backdrop-filter: blur(6px); }
.pr-band__cards span { color: var(--gold-soft); margin-bottom: var(--sp-2); }
.pr-band__cards b { font-size: var(--fs-lg); }
.pr-band__cards p { font-size: var(--fs-sm); color: rgb(255 255 255 / 0.72); line-height: 1.65; }
@media (max-width: 64rem) { .pr-band__in { grid-template-columns: 1fr; } }
@media (max-width: 40rem) { .pr-band__cards { grid-template-columns: 1fr; } }

/* 템플스테이 */
.stay-d { display: flex; align-items: center; gap: var(--sp-6); padding: var(--sp-8) var(--sp-10); border: 1px solid var(--border); border-radius: var(--r-lg); }
.stay-d__ico { display: grid; place-items: center; width: 60px; height: 60px; flex-shrink: 0; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.stay-d > div { flex: 1; display: grid; gap: var(--sp-1); }
.stay-d h2 { font-size: var(--fs-xl); }
.stay-d p { font-size: var(--fs-sm); color: var(--muted); }
@media (max-width: 40rem) { .stay-d { flex-direction: column; align-items: flex-start; padding: var(--sp-6); } }
/* 寶林 마크 제거 후: 로고는 금색 한자 서예만 */
.logo { gap: 0; }
.logo__word .calli { height: 34px; }
@media (max-width: 64rem) { .logo__word .calli { height: 26px; } }
.foot-d__sign { gap: var(--sp-5); }
.foot-d__calli { height: 34px; }

/* 도량 예절 일러스트 */
.manners__list li { padding-top: var(--sp-6); overflow: hidden; }
.mn-ill { order: -1; }
.mn-ill { display: block; width: calc(100% + 2 * var(--sp-8)); max-width: none; height: auto; margin: calc(-1 * var(--sp-6)) calc(-1 * var(--sp-8)) var(--sp-4); background: linear-gradient(180deg, #f7f9fc, #ffffff); border-bottom: 1px solid var(--border); padding: var(--sp-4) var(--sp-6) 0; }
.manners__list li:hover .mn-ill { background: linear-gradient(180deg, #f1f5fb, #ffffff); }
.manners__list li { align-content: start; } .manners__list li::before { margin-bottom: var(--sp-1); }
/* 사물 서예 */
.samul__calli { width: 100%; max-width: 132px; aspect-ratio: 2.1 / 1; color: var(--ink); margin-bottom: var(--sp-2); transition: color var(--t) var(--ease); }
.samul__list li:hover .samul__calli { color: var(--accent); }
.samul__list li { padding-top: var(--sp-10); }

/* 도량 예절 일러스트 v2: 장면이 카드 상단을 채움 */
.mn-ill { padding: 0 !important; background: none !important; border-bottom: 0 !important; aspect-ratio: 400 / 240; }
.manners__list li { padding-top: var(--sp-8); }
.manners__list li:hover .mn-ill { background: none !important; }

/* =====================================================================
   연중 법회와 재일: 음력 한 달 띠 + 연간 띠
   ===================================================================== */
.cal-d { display: grid; gap: var(--sp-10); }
.cal-d__block { padding: var(--sp-10); background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-lg); }
.cal-d__h { display: flex; align-items: baseline; gap: var(--sp-3); font-size: var(--fs-xl); margin-bottom: var(--sp-6); }
.cal-d__h small { font-size: var(--fs-xs); font-weight: 600; color: var(--gold); }

.month-strip { list-style: none; margin: 0 0 var(--sp-8); padding: 0; display: grid; grid-template-columns: repeat(30, minmax(0, 1fr)); gap: 3px; }
.month-strip li { position: relative; display: grid; justify-items: center; align-content: start; gap: 4px; padding-top: var(--sp-2); height: 76px; background: var(--surface); border-radius: 4px; }
.month-strip span { font-size: 11px; color: var(--muted); }
.month-strip li.is-full { background: #eef0e6; }
.month-strip li.is-full::after { content: ""; position: absolute; bottom: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-soft); }
.month-strip li.is-ev { background: var(--accent); }
.month-strip li.is-ev span { color: rgb(255 255 255 / 0.75); font-weight: 700; }
.month-strip li.is-ev b { writing-mode: vertical-rl; font-size: 12px; font-weight: 700; color: var(--on-dark); letter-spacing: 0.05em; }
.cal-d__cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-4); }
.cal-d__cards li { display: flex; gap: var(--sp-4); padding: var(--sp-5); border: 1px solid var(--border); border-radius: var(--r); }
.cal-d__day { display: grid; place-items: center; width: 56px; height: 56px; flex-shrink: 0; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: var(--fs-xl); font-weight: 800; line-height: 1; }
.cal-d__day small { font-size: 11px; font-weight: 700; margin-top: -10px; }
.cal-d__cards b { color: var(--ink); font-size: var(--fs-md); }
.cal-d__cards p { font-size: var(--fs-xs); color: var(--muted); margin-top: 2px; }
.cal-d__next { display: inline-flex; align-items: center; gap: 4px; font-size: 12px !important; font-weight: 600; color: var(--accent) !important; margin-top: var(--sp-2) !important; }

.year-axis { position: relative; height: 150px; margin: var(--sp-4) 0 var(--sp-8); }
.year-axis__line { position: absolute; left: 0; right: 0; top: 96px; height: 2px; background: var(--ink); }
.year-axis__band { position: absolute; top: 84px; height: 26px; background: linear-gradient(180deg, #e9dcc0, #dcc79b); border-radius: 4px; display: grid; place-items: center; overflow: hidden; }
.year-axis__band i { font-style: normal; font-size: 11px; font-weight: 800; color: #6f5328; white-space: nowrap; }
.year-axis__mk { position: absolute; top: calc(66px - var(--row) * 38px); transform: translateX(-1px); padding: 0 0 calc(var(--row) * 38px + 18px) 0; border-left: 2px solid var(--accent); }
.year-axis__mk::after { content: ""; position: absolute; left: -7px; bottom: -6px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--bg); }
.year-axis__mk b { position: absolute; left: 8px; top: -6px; white-space: nowrap; font-size: var(--fs-xs); font-weight: 800; color: var(--ink); background: var(--bg); padding-right: 4px; }
.year-axis__months { position: absolute; left: 0; right: 0; top: 118px; height: 20px; }
.year-axis__months span { position: absolute; transform: translateX(-50%); font-size: 11px; color: var(--muted); }
.year-axis::before { content: ""; position: absolute; left: 0; right: 0; top: 92px; height: 10px; background: repeating-linear-gradient(90deg, var(--border-strong) 0 1px, transparent 1px calc(100% / 12)); opacity: 0.8; }
.cal-d__list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.cal-d__list li { display: grid; grid-template-columns: 7rem 14rem minmax(0, 1fr) auto; gap: var(--sp-4); align-items: center; padding-block: var(--sp-4); border-bottom: 1px solid var(--border); }
.cal-d__lunar { font-size: var(--fs-sm); font-weight: 700; color: var(--gold); }
.cal-d__list b { color: var(--ink); }
.cal-d__note { font-size: var(--fs-sm); color: var(--muted); }
.cal-d__list .cal-d__next { margin-top: 0 !important; white-space: nowrap; }
@media (max-width: 64rem) {
  .cal-d__block { padding: var(--sp-6); overflow-x: auto; }
  .cal-d__cards { grid-template-columns: 1fr; }
  .cal-d__list li { grid-template-columns: 6rem minmax(0, 1fr); }
  .cal-d__note, .cal-d__list .cal-d__next { grid-column: 2; }
  .year-axis { min-width: 640px; }
}
@media (max-width: 40rem) { .month-strip { min-width: 560px; } }
.mn-ill { margin-top: calc(-1 * var(--sp-8)) !important; border-radius: var(--r-lg) var(--r-lg) 0 0; }
.year-axis__mk { padding-bottom: calc(30px + var(--row) * 38px); }
.year-axis__months span { transform: none; padding-left: 4px; border-left: 1px solid var(--border-strong); line-height: 1; }
.ab-greet { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--sp-12); align-items: start; padding: var(--sp-16) var(--sp-12); }
.ab-greet h2 { font-size: var(--fs-3xl); line-height: 1.25; }
.ab-greet__text { font-family: var(--serif); font-size: 1.125rem; line-height: 2; color: var(--ink-2); }
.ab-greet__text p { max-width: 60ch; }
.ab-greet__sign { margin-top: var(--sp-8); text-align: right; font-family: var(--serif); font-size: var(--fs-lg); font-weight: 700; color: var(--ink); letter-spacing: 0.04em; }
.ab-greet__sign::before { content: ""; display: inline-block; width: 32px; height: 1px; background: var(--gold); vertical-align: middle; margin-right: var(--sp-3); }
@media (max-width: 64rem) { .ab-greet { grid-template-columns: 1fr; gap: var(--sp-6); padding: var(--sp-10) var(--sp-6); } }
.mn-ill--pic { aspect-ratio: 3 / 2 !important; object-fit: cover; transition: transform 600ms var(--ease); }
.manners__list li:hover .mn-ill--pic { transform: scale(1.03); }
/* 연간 띠: 안거 구간이 가로선 위로, 표지는 맨 위 */
.year-axis__line { z-index: 0; }
.year-axis__band { z-index: 1; box-shadow: 0 0 0 1px #d6c08f inset; }
.year-axis__band i { font-size: 12px; letter-spacing: 0.04em; }
.year-axis__mk { z-index: 2; }

/* =====================================================================
   로고: 삼보륜 + 대한불교 조계종 + 가지산 보림사
   ===================================================================== */
.lockup { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.lockup__mark { width: 44px; height: 44px; flex-shrink: 0; }
.lockup__ord { display: grid; gap: 3px; padding-right: 11px; font-size: 12px; font-weight: 500; color: #5a5a63; line-height: 1; }
.lockup__ord span:last-child { letter-spacing: 0.58em; margin-right: -0.58em; }
.lockup__name { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; white-space: nowrap; }
.lockup:hover .lockup__name { color: var(--accent); }
.lockup--dark { color: #fff; }
.lockup--dark .lockup__ord { color: var(--foot-ink); }
.lockup--dark:hover .lockup__name { color: var(--gold-soft); }
@media (max-width: 64rem) { .lockup__mark { width: 36px; height: 36px; } .lockup__ord { font-size: 10.5px; padding-right: 8px; } .lockup__name { font-size: 21px; } .lockup { gap: 8px; } }
@media (max-width: 23rem) { .lockup__ord { display: none; } }
/* 로고: 완성본 이미지 (가지산 보림사 조계종 로고) */
.brand-logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand-logo img { height: 36px; width: auto; display: block; }
.brand-logo:hover img { opacity: 0.85; }
.brand-logo--foot img { height: 34px; }
@media (max-width: 64rem) { .brand-logo img { height: 28px; } }
@media (max-width: 24rem) { .brand-logo img { height: 24px; } }

/* 메뉴 레터링 (로고와 같은 계열 글꼴) */
.menu-mark { display: block; height: var(--mh); width: calc(var(--mh) * var(--mr)); background: currentColor; -webkit-mask: var(--src) center / contain no-repeat; mask: var(--src) center / contain no-repeat; }
.gnb__top { color: #24211f; }
@media (max-width: 64rem) { .gnb__top .menu-mark { height: calc(var(--mh) * 1.12); width: calc(var(--mh) * 1.12 * var(--mr)); } .gnb__top { padding-block: var(--sp-5) !important; } }

/* =====================================================================
   모바일 최종 정리 (이 블록은 항상 파일 맨 끝에 둔다: 앞의 데스크톱 규칙보다 우선)
   ===================================================================== */
@media (max-width: 64rem) {
  /* 좌우 분할 → 한 칸 */
  .about-d, .ab-intro__in, .ab-founder, .ab-tea__in, .ab-greet, .gmap, .samul, .pr-sched, .pr-band__in,
  .col-body, .col-hero__in, .arc-hero__in, .rec-overview, .rec-cite__grid, .board-d, .search-band__in,
  .visit__in, .visit-band__in, .sched__in, .about__in, .obj__body, .obj__text, .browse, .loc-list > li {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .about-d, .ab-intro__in, .ab-founder, .ab-tea__in, .gmap, .samul, .pr-sched, .col-body, .col-hero__in, .rec-overview { gap: var(--sp-8) !important; }
  .search-band__chips { grid-column: 1 !important; }
  /* 카드 격자 → 두 칸 */
  .c-grid, .grid4, .c-grid--3, .col-grid, .col-grid--3, .ab-chron, .chron__list, .year-d, .samul__list { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .info-d, .manners__list, .rites-d, .rites__list, .cal-d__cards, .pr-band__cards { grid-template-columns: minmax(0, 1fr) !important; }
  .stats-d { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .stats-d div:nth-child(3) { border-left: 0 !important; }
  .stats-d div:nth-child(n+3) { border-top: 1px solid var(--border); }
  /* 사진 겹침 구성 단순화 */
  .about-d__media, .ab-founder__media { padding: 0 var(--sp-10) var(--sp-10) 0 !important; max-width: 520px; }
  .about-d__seal { left: -6px; top: 16px; width: 52px; height: 52px; font-size: 11px; }
  .pr-sched__media figure, .col-body__text, .facets { position: static !important; }
  .col-body__text { font-size: var(--fs-md); }
  .pr-sched__media { max-width: 480px; }
  .ab-tea__pic, .about-d__main { max-width: 520px; }
  /* 섹션 제목 */
  .sec__head h2, .ab-intro__text h2, .ab-founder__text h2, .ab-tea h2, .about-d__text h2 { font-size: 1.75rem !important; }
  .sec__head { flex-wrap: wrap; }
  /* 표제 영역 */
  .hero-d__calli, .ab-hero__calli { display: none !important; }
  .ab-hero__in, .pr-hero__in { min-height: 340px !important; padding-block: var(--sp-12) !important; }
  .facets { max-height: none !important; }
}

@media (max-width: 40rem) {
  :root { --fs-4xl: 2.125rem; --fs-3xl: 1.875rem; --fs-2xl: 1.5rem; }
  .sec, .sec--tight { padding-block: var(--sp-12) !important; }
  .sec__head { margin-bottom: var(--sp-6) !important; padding-bottom: var(--sp-4); }
  .sec__head h2, .ab-intro__text h2, .ab-founder__text h2, .ab-tea h2, .about-d__text h2 { font-size: 1.5rem !important; }
  .sec__desc { font-size: var(--fs-sm); }
  /* 첫 화면 */
  .hero-d { min-height: 0 !important; }
  .hero-d__in { padding-block: var(--sp-12) var(--sp-8) !important; }
  .hero-d h1 { font-size: 1.875rem !important; }
  .hero-d__lead { font-size: var(--fs-sm) !important; margin-top: var(--sp-3) !important; }
  .hero-d__actions { margin-top: var(--sp-6) !important; gap: var(--sp-2) !important; }
  .hero-d__actions .btn { flex: 1; min-height: 48px; padding: 0 var(--sp-3); font-size: var(--fs-sm); }
  .hero-d__cap { display: none; }
  .hero-d__calli-h { width: 220px; margin-bottom: var(--sp-4); }
  .quick__list a { padding: var(--sp-4) var(--sp-3) !important; min-height: 84px !important; }
  .quick__txt b { font-size: var(--fs-sm); }
  .quick__txt > span { font-size: 11px !important; }
  /* 카드 */
  .c-grid, .grid4, .c-grid--3 { gap: var(--sp-3) !important; }
  .c-card__body { padding: var(--sp-3) var(--sp-3) var(--sp-4) !important; }
  .c-card h3 { font-size: var(--fs-sm) !important; }
  .c-card__meta { font-size: 11px; }
  .badge { top: 8px; left: 8px; height: 22px; font-size: 11px; padding: 0 8px; }
  .col-grid, .col-grid--3 { gap: var(--sp-3) !important; }
  .ab-chron, .year-d, .chron__list { grid-template-columns: minmax(0, 1fr) !important; }
  .samul__list li { padding: var(--sp-6) var(--sp-3) !important; }
  /* 보림사 소개(홈) */
  .about-d__media { padding: 0 var(--sp-8) var(--sp-8) 0 !important; }
  .about-d__sub { width: 44%; }
  .about-d__quote { font-size: var(--fs-lg); }
  .stats-d dd { font-size: 1.5rem; }
  /* 게시판·법회 */
  .panel { padding: var(--sp-5) !important; }
  .events-d li { gap: var(--sp-3); }
  .date-chip { width: 52px; height: 58px; }
  /* 검색 영역 */
  .search-band { padding-block: var(--sp-12) !important; }
  .search-band__form { flex-wrap: nowrap !important; }
  .search-band__form input { flex: 1 1 auto !important; font-size: var(--fs-md) !important; height: 48px !important; }
  .search-band__form .btn { flex: 0 0 auto !important; padding: 0 var(--sp-4); min-height: 48px; }
  /* 아카이브 */
  .arc-hero__in { padding-block: var(--sp-10) var(--sp-8) !important; gap: var(--sp-6) !important; }
  .arc-hero__lead { font-size: var(--fs-md); }
  .arc-search { margin-top: var(--sp-6); }
  .arc-stats { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  .arc-stats div:first-child { grid-column: 1 / -1; }
  .arc-stats dd { font-size: 1.5rem !important; }
  .arc-stats div:first-child dd { font-size: 2.25rem !important; }
  .arc-stats div:last-child { display: none; }
  .facets { padding: var(--sp-4) !important; gap: var(--sp-3) !important; }
  .facet { display: flex !important; flex-wrap: nowrap; overflow-x: auto; gap: var(--sp-1) !important; padding-top: var(--sp-3) !important; scrollbar-width: none; }
  .facet legend { float: none; width: auto; flex-shrink: 0; margin: 0 var(--sp-2) 0 0; align-self: center; }
  .facet__opt { width: auto !important; flex-shrink: 0; height: 34px; padding: 0 var(--sp-3) !important; border: 1px solid var(--border-strong) !important; border-radius: var(--r-pill) !important; gap: var(--sp-1) !important; }
  .facet__opt[aria-pressed="true"] { background: var(--accent) !important; border-color: var(--accent) !important; color: var(--on-dark) !important; }
  .facet__opt[aria-pressed="true"] .facet__n { color: rgb(255 255 255 / 0.8); }
  .facet__box { display: none; }
  .results__bar { gap: var(--sp-2); }
  .loc-list__items a { height: 40px; }
  .loc-list__items img, .loc-list__dot { width: 32px; height: 32px; }
  .tl { padding: var(--sp-4) !important; }
  /* 컬렉션 · 성보 상세 */
  .col-hero__in { padding-block: var(--sp-8) !important; }
  .col-items a { grid-template-columns: 64px minmax(0, 1fr) !important; gap: var(--sp-3) !important; }
  .rec-head__in { padding-block: var(--sp-8) var(--sp-6) !important; }
  .rec-head h1 { font-size: 1.875rem !important; }
  .rec-head__actions { width: 100%; }
  .rec-head__actions .btn { flex: 1; }
  .rec-tabs a { height: 46px; padding: 0 var(--sp-3); font-size: var(--fs-xs); }
  .rec-sec { padding-top: var(--sp-10) !important; }
  .rec-quote { padding: var(--sp-5) var(--sp-5) !important; font-size: var(--fs-md) !important; }
  .rec-text .prose { font-size: var(--fs-md); }
  .facts > div, .facts--tight > div { grid-template-columns: minmax(0, 6rem) minmax(0, 1fr) !important; }
  .facts dt, .facts dd { padding: var(--sp-3) !important; font-size: var(--fs-xs) !important; }
  .pager { grid-template-columns: minmax(0, 1fr) !important; }
  .pager__next { text-align: left !important; }
  /* 소개 */
  .ab-hero h1, .pr-hero h1 { font-size: 2rem !important; }
  .ab-hero__lead, .pr-hero__lead { font-size: var(--fs-md) !important; }
  .ab-intro__text p:not(.kicker), .ab-founder__text > p, .ab-tea p:not(.kicker) { font-size: var(--fs-md) !important; }
  .ab-quote { padding-block: var(--sp-16) !important; }
  .ab-quote__text { font-size: 1.75rem !important; }
  .ab-greet { padding: var(--sp-8) var(--sp-5) !important; }
  .ab-greet h2 { font-size: var(--fs-2xl) !important; }
  .ab-greet h2 br { display: none; }
  .ab-greet__text { font-size: var(--fs-md) !important; line-height: 1.9 !important; }
  .ab-greet__sign { font-size: var(--fs-md) !important; }
  .ab-life li { grid-template-columns: 3rem minmax(0, 1fr) !important; gap: var(--sp-4) !important; }
  .ab-life::before { left: 3rem !important; }
  .ab-life li::before { left: calc(3rem - 4px) !important; }
  .gmap__fig { padding: var(--sp-2) !important; }
  /* 법회 */
  .pr-hero__actions .btn { flex: 1 1 100%; }
  .dayline { height: 112px !important; }
  .dayline__mk b { font-size: var(--fs-sm) !important; }
  .rites-d li { padding: var(--sp-6) !important; }
  .rites-d__time { font-size: var(--fs-2xl) !important; }
  .cal-d__block { padding: var(--sp-5) !important; }
  .cal-d__list li { grid-template-columns: minmax(0, 1fr) !important; gap: 2px !important; }
  .cal-d__note, .cal-d__list .cal-d__next { grid-column: 1 !important; }
  .pr-band { padding-block: var(--sp-12) !important; }
  .stay-d { padding: var(--sp-5) !important; }
  /* 방문 */
  .page-top { padding-block: var(--sp-10) var(--sp-6) !important; margin-bottom: var(--sp-6) !important; }
  .page-top h1 { font-size: 1.875rem !important; }
  .manners__list li { padding: var(--sp-6) var(--sp-5) !important; padding-top: var(--sp-6) !important; }
  .mn-ill { margin: calc(-1 * var(--sp-6)) calc(-1 * var(--sp-5)) var(--sp-4) !important; width: calc(100% + 2 * var(--sp-5)) !important; }
  /* 맺음·하단 */
  .closing { padding-block: var(--sp-16) !important; }
  .closing__title { width: 240px; }
  .foot-d__top { flex-direction: column; align-items: flex-start; }
  .foot-d__info { flex-direction: column; }
  .brand-logo--foot img { height: 26px; }
}

/* 페이지 제목 레터링: 기준 높이 = 메뉴 높이 × 배율 */
.h1-mark { line-height: 0 !important; font-size: 0 !important; }
.title-mark { --k: 2.7; display: block; height: calc(var(--th) * var(--k) * 1px); width: calc(var(--th) * var(--k) * var(--tr) * 1px); max-width: 100%; background: currentColor; -webkit-mask: var(--src) left center / contain no-repeat; mask: var(--src) left center / contain no-repeat; }
.ab-hero .title-mark, .pr-hero .title-mark { color: #fff; filter: drop-shadow(0 2px 16px rgb(0 0 0 / 0.3)); }
.arc-hero .title-mark, .page-top .title-mark { color: var(--ink); --k: 2.4; }
@media (max-width: 40rem) { .title-mark { --k: 1.7 !important; } .arc-hero .title-mark { --k: 1.45 !important; } }
@media (max-width: 40rem) { .c-card__meta span:nth-child(2) { display: none; } }
@media (max-width: 40rem) { .wrap.ab-greet { margin-inline: var(--sp-4) !important; width: auto !important; } }
/* 모바일: 좁은 화면에서 읽기 어려운 도표는 숨기고 목록으로 대신 */
@media (max-width: 40rem) {
  .month-strip, .year-axis { display: none !important; }
  .dayline { margin-inline: var(--sp-4) !important; }
  .dayline__now i { display: none; }
}

/* 경내 약도 */
.smap-wrap { margin: 0 0 var(--sp-10); }
.smap-scroll { border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; background: #f3f1ea; }
.smap { display: block; width: 100%; height: auto; font-family: inherit; }
.smap__bg { fill: #f3f1ea; }
.smap__ct { fill: none; stroke: #d9d4c4; stroke-width: 2; }
.smap__forest { opacity: .9; }
.smap__tree { fill: #b9c7a3; }
.smap__river { fill: none; stroke: #a9c9dc; stroke-width: 46; stroke-linecap: round; }
.smap__river--s { stroke-width: 34; }
.smap__trail { fill: none; stroke: #9bae7c; stroke-width: 4; stroke-dasharray: 12 10; }
.smap__precinct { fill: #e6e0cf; stroke: #cfc5a9; stroke-width: 3; }
.smap__road { fill: none; stroke: #fff; stroke-width: 38; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 1px #c9c2ae); }
.smap__road--s { stroke-width: 18; }
.smap__bld { fill: #fbfaf6; stroke: #b9ae8e; stroke-width: 2.5; }
.smap__bld--key { fill: #d8c9a3; stroke: #9c8656; }
.smap__land { font-size: 26px; font-weight: 600; fill: #6d6555; text-anchor: middle; paint-order: stroke; stroke: #f3f1ea; stroke-width: 6px; }
.smap__land--g { fill: #5f7448; }
.smap__land--road { fill: #8a8370; font-weight: 500; }
.smap__land--water { fill: #4f7f9c; }
.smap__land--trail { fill: #6f8455; font-size: 22px; }
.smap__park rect { fill: #3d5a80; } .smap__park text { fill: #fff; font-size: 28px; font-weight: 800; text-anchor: middle; }
.smap__compass circle { fill: #fff; stroke: #cfc5a9; stroke-width: 2; } .smap__compass path { fill: var(--nt); } .smap__compass text { font-size: 16px; font-weight: 700; text-anchor: middle; fill: #6d6555; }
.smap__pin { cursor: pointer; }
.smap__halo { fill: var(--nt); opacity: 0; transition: opacity .2s ease, transform .2s ease; }
.smap__dot { fill: var(--nt); stroke: #fff; stroke-width: 5; filter: drop-shadow(0 3px 6px rgb(0 0 0 / .25)); }
.smap__n { fill: #fff; font-size: 24px; font-weight: 800; text-anchor: middle; }
.smap__lbl { font-size: 25px; font-weight: 700; fill: #24211f; paint-order: stroke; stroke: #fff; stroke-width: 7px; stroke-linejoin: round; }
.smap__pin:hover .smap__halo, .smap__pin:focus-visible .smap__halo, .smap__pin.is-on .smap__halo { opacity: .25; }
.smap__pin:focus-visible { outline: none; } .smap__pin:focus-visible .smap__dot { stroke: var(--accent); }
.smap-wrap figcaption { margin-top: var(--sp-3); font-size: var(--fs-xs); color: var(--muted); }
.loc-list__n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--nt); color: #fff; font-size: 13px; font-weight: 800; flex-shrink: 0; }
.loc-list > li { scroll-margin-top: 120px; transition: background-color .2s ease; }
.loc-list > li.is-on { background: #f7efe9; }
@media (max-width: 40rem) {
  .smap-scroll { overflow-x: auto; overscroll-behavior-x: contain; }
  .smap { width: 760px; max-width: none; }
}
.loc-list__name .loc-list__n { color: #fff; margin-left: 0; font-size: 13px; }
/* 약도 v2: 숲 바탕 + 마당 */
.smap-scroll { background: #e3ead8; }
.smap__bg { fill: #e3ead8; }
.smap__tree { fill: #c6d4b0; }
.smap__field { fill: #d3e0bd; stroke: #bccca2; stroke-width: 2; }
.smap__precinct { fill: #f1ead8; stroke: #d2c5a3; stroke-width: 3; }
.smap__yard { fill: #ebe4cf; stroke: #d2c5a3; stroke-width: 2; stroke-dasharray: 8 6; }
.smap__parklot { fill: #dcdcd8; stroke: #fff; stroke-width: 6; }
.smap__bld { fill: #fffdf8; stroke: #a99b78; }
.smap__bld--key { fill: #d4c194; stroke: #8f7646; stroke-width: 3; }
.smap__edge { fill: none; stroke: var(--nt); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.smap__land { stroke: #eef2e6; }

/* 모바일 홈 간추리기: 핵심만 */
@media (max-width: 40rem) {
  .m-hide { display: none !important; }
  /* 바로가기: 3×2 아이콘 격자 */
  .quick__list { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .quick__list a { flex-direction: column !important; align-items: center !important; justify-content: center !important; text-align: center; gap: var(--sp-2) !important; min-height: 92px !important; padding: var(--sp-4) var(--sp-1) !important; }
  .quick__txt > span, .quick__go { display: none !important; }
  .quick__txt b { font-size: 13px !important; }
  .quick__ico { margin: 0 !important; }
  /* 대표 성보 4점만 */
  .c-grid > li:nth-child(n+5), .c-grid > *:nth-child(n+5) { display: none !important; }
  /* 보림사 소개: 사진 한 장 + 짧은 글 */
  .about-d__sub, .about-d__seal, .about-d__quote, .stats-d, .about-d figcaption { display: none !important; }
  .about-d__media { padding: 0 !important; }
  .about-d__text > p:not(.about-d__quote) { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
  /* 소식·법회 3건씩 */
  .notice > li:nth-child(n+4), .events-d > li:nth-child(n+4) { display: none; }
  /* 검색: 입력창만 */
  .search-band__chips, .search-band .sec__desc, .search-band__in > div > p { display: none !important; }
  /* 맺음 */
  .closing { padding-block: var(--sp-12) !important; }
  .closing__calli { display: none; }
  .closing__text { font-size: var(--fs-md) !important; }
}
@media (max-width: 40rem) { .about-d__main img, .about-d__main { aspect-ratio: 16 / 10; object-fit: cover; height: auto !important; } .about-d__main img { width: 100%; height: 100% !important; } }

/* 모바일 하단 탭바 (떠 있는 알약형) */
.tabbar { display: none; }
@media (max-width: 64rem) {
  .tabbar { position: fixed; z-index: 60; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; max-width: 480px; margin-inline: auto; padding: 6px; background: rgb(255 255 255 / 0.92); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); border: 1px solid rgb(0 0 0 / 0.06); border-radius: 999px; box-shadow: 0 10px 30px rgb(20 24 40 / 0.16), 0 2px 6px rgb(20 24 40 / 0.06); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 56px; border-radius: 999px; color: #3a3d4a; font-size: 12px; font-weight: 600; text-decoration: none; transition: background-color .2s ease, color .2s ease; -webkit-tap-highlight-color: transparent; }
  .tabbar a:active { background: rgb(35 57 93 / 0.06); }
  .tabbar a[aria-current="page"] { background: #e6e8ee; color: var(--accent); }
  .tabbar a:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
  .tabbar svg { width: 22px; height: 22px; }
  body { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
}
@media print { .tabbar { display: none !important; } }
/* 필터 패널: 가로 스크롤 제거, 세로 스크롤바는 얇게, 자리 미리 확보 */
@media (min-width: 64.01rem) {
  .facets { overflow-x: hidden !important; overflow-y: auto; scrollbar-width: thin; scrollbar-gutter: stable; scrollbar-color: #c9ccd4 transparent; }
  .facets::-webkit-scrollbar { width: 6px; } .facets::-webkit-scrollbar-thumb { background: #c9ccd4; border-radius: 3px; }
  .facets * { min-width: 0; max-width: 100%; }
  .facet__opt { width: 100%; box-sizing: border-box; }
  .facet__n { flex-shrink: 0; margin-left: auto; }
}

/* 모바일 홈: 대표 성보 한 줄 가로 스크롤 + 보림사 이야기 카드 하나 */
@media (max-width: 40rem) {
  .sec[aria-labelledby="col-h"] .c-grid { display: flex !important; gap: var(--sp-3) !important; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--sp-4); margin-inline: calc(-1 * var(--sp-4)); padding: 2px var(--sp-4) var(--sp-3); scrollbar-width: none; overscroll-behavior-x: contain; }
  .sec[aria-labelledby="col-h"] .c-grid::-webkit-scrollbar { display: none; }
  .sec[aria-labelledby="col-h"] .c-grid > * { display: block !important; flex: 0 0 62%; scroll-snap-align: start; }
  .sec[aria-labelledby="col-h"] .c-card__meta span:nth-child(2) { display: inline; }

  .about-wrap { padding-block: var(--sp-10) !important; }
  .about-d { display: block !important; background: var(--bg, #fff); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 8px 24px rgb(14 19 28 / 0.06); padding: 0 !important; }
  .about-d__media { padding: 0 !important; max-width: none !important; }
  .about-d__main img { border-radius: 0 !important; box-shadow: none !important; aspect-ratio: 16 / 10 !important; height: auto !important; }
  .about-d__cap { display: none !important; }
  .about-d__text { padding: var(--sp-5) var(--sp-5) var(--sp-6); }
  .about-d__text h2 { font-size: 1.25rem !important; margin-bottom: var(--sp-3) !important; }
  .about-d__text h2 br { display: none; }
  .about-d__text > p:not(.about-d__quote) { -webkit-line-clamp: 3 !important; font-size: var(--fs-sm) !important; margin-bottom: var(--sp-4) !important; }
  .about-d__text .btn { width: 100%; justify-content: center; }
}
@media (max-width: 40rem) { .wrap.about-d { margin-inline: var(--sp-4) !important; width: auto !important; } }
@media (max-width: 40rem) {
  .about-d__main img { aspect-ratio: 21 / 9 !important; object-position: 50% 35% !important; }
  .about-d__text > p:not(.about-d__quote) { display: none !important; }
  .about-d__text { padding: var(--sp-4) var(--sp-5) var(--sp-5) !important; }
  .about-d__text h2 { margin-bottom: var(--sp-4) !important; }
}
@media (max-width: 40rem) { figure.about-d__main { aspect-ratio: auto !important; } figure.about-d__main img { display: block; } }
@media (max-width: 40rem) { .about-d__text .btn { margin-top: 0 !important; } .about-d__main img { object-position: 50% 12% !important; } .about-d__text h2 { margin-bottom: var(--sp-4) !important; } }
/* 모바일 바로가기: 6개 한 줄 */
@media (max-width: 40rem) {
  .quick .wrap { padding-inline: var(--sp-2) !important; }
  .quick__list { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; gap: 0 !important; }
  .quick__list li { border: 0 !important; }
  .quick__list a { min-height: 76px !important; padding: var(--sp-3) 2px !important; gap: 6px !important; border: 0 !important; }
  .quick__ico svg { width: 20px; height: 20px; }
  .quick__txt b { font-size: 11px !important; line-height: 1.3 !important; word-break: keep-all; display: block; }
}
@media (max-width: 40rem) { .quick__list a { justify-content: flex-start !important; padding-top: var(--sp-4) !important; } }
@media (max-width: 40rem) { .about-d__main picture { display: block; } .about-d__main img { object-position: 50% 40% !important; } }

/* 내비게이션 상태 색: 금색 (마우스 올림·선택) */
:root { --nav-on: #9c7a3c; --nav-on-bg: #f6efe1; }
.gnb__item:hover .gnb__top, .gnb__item:focus-within .gnb__top, .gnb__top[aria-current="true"] { color: var(--nav-on) !important; }
.gnb__top::after { background: var(--nav-on) !important; }
.gnb__sub a:hover, .gnb__sub a:focus-visible { color: var(--nav-on) !important; }
.tabs a:hover { color: var(--nav-on); }
.tabs a[aria-current="page"] { color: var(--nav-on); border-bottom-color: var(--nav-on); }
.rec-tabs a[aria-current] { color: var(--nav-on); border-bottom-color: var(--nav-on); }
.crumb a:hover { color: var(--nav-on); }
.tabbar a[aria-current="page"] { background: var(--nav-on-bg) !important; color: var(--nav-on) !important; }
.tabbar a:active { background: rgb(156 122 60 / 0.1) !important; }
/* 약도 v3: OSM 실측 (좌표 단위가 작아 글자·선 굵기 재조정) */
.smap--osm .smap__river { stroke-width: 14; }
.smap--osm .smap__road { stroke-width: 12; }
.smap--osm .smap__road--s { stroke-width: 7; }
.smap--osm .smap__road--foot { fill: none; stroke: #b7a77f; stroke-width: 2.5; stroke-dasharray: 6 5; }
.smap--osm .smap__precinct { stroke-width: 2; }
.smap--osm .smap__bld { stroke-width: 1.5; }
.smap--osm .smap__bld--key { stroke-width: 2; }
.smap--osm .smap__land { font-size: 15px; stroke-width: 4px; }
.smap--osm .smap__n { font-size: 15px; }
.smap--osm .smap__dot { stroke-width: 3; }
.smap--osm .smap__lbl { font-size: 15px; stroke-width: 4.5px; }
.smap--osm .smap__park text { font-size: 16px; }
.smap--osm .smap__compass text { font-size: 10px; }
.smap--osm .smap__compass circle { stroke-width: 1.5; }
.smap--osm .smap__parklot { fill: #d9dbd6; stroke: #fff; stroke-width: 3; }
.smap__fac rect { fill: #2f3b52; stroke: #fff; stroke-width: 2; }
.smap__fac-p { fill: #fff; font-size: 14px; font-weight: 800; text-anchor: middle; }
.smap__fac-ic path, .smap__fac-ic circle { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.smap__fac-l { font-size: 13px; font-weight: 600; fill: #2f3b52; paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }
