@font-face {
  font-family: 'Catholic';
  src: url('fonts/catholic.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
:root { --header-height: 80px; --brand: #8b2e49; --ink: #352e32; --muted: #776e73; --line: #e9e4e0; }
html { scroll-padding-top: calc(var(--header-height) + 20px); }
body { font-family: 'Noto Sans KR', 'Malgun Gothic', sans-serif; background: #fbfaf8; color: var(--ink); overflow-wrap: anywhere; }
h1, .font-serif { font-family: 'Noto Serif KR', serif; }
.font-catholic, .hero-main-title { font-family: 'Catholic', 'Noto Serif KR', serif; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; background: var(--brand); color: white; padding: 12px 16px; border-radius: 8px; }
.skip-link:focus { top: 8px; }
.site-nav { background: #fff; padding-top: env(safe-area-inset-top, 0px); box-shadow: none; border-bottom: 1px solid var(--line); }
.site-nav > div { max-width: 1160px; padding: 0 24px; }
.site-nav .nav-bar { height: var(--header-height); }
.nav-brand { gap: 10px; }
.nav-brand img { width: 40px; height: 40px; }
.desktop-nav { display: none; }
.desktop-nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; }
.mobile-nav-toggle { display: flex; align-items: center; }
#mobile-menu-button { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; color: var(--brand); }
#mobile-menu-button[aria-expanded="true"] { background: #f8eef1; }
#mobile-menu { padding: 12px 0 16px; max-height: calc(100dvh - var(--header-height) - env(safe-area-inset-top, 0px)); overflow-y: auto; overscroll-behavior: contain; border-top: 1px solid var(--line); }
#mobile-menu.hidden { display: none; }
#mobile-menu.is-open { display: block; }
.nav-categories { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.nav-categories button { min-height: 44px; padding: 8px 4px; font-size: 13px; font-weight: 600; border-radius: 8px; background: #f5f3f0; color: #655c61; }
.nav-categories button[aria-pressed="true"] { background: var(--brand); color: #fff; }
.nav-submenus { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.nav-submenus a { display: flex; align-items: center; min-height: 44px; padding: 9px 10px; border-radius: 6px; font-size: 14px; line-height: 1.5; color: #4c4147; }
.nav-submenus a:hover, .nav-submenus a[aria-current="page"] { background: #faf0f3; color: var(--brand); }
.nav-scrim { position: fixed; inset: var(--header-height) 0 0; z-index: 40; background: rgba(39, 28, 34, .16); }
.nav-scrim[hidden] { display: none; }
.material-icons { flex-shrink: 0; }
.section-layout, .menu-layout { width: 100%; max-width: 1160px; margin: 0 auto; padding: calc(var(--header-height) + 32px) 24px 64px; }
.section-layout { display: grid; grid-template-columns: minmax(0, 1fr); }
.section-sidebar { display: none; }
.page-content { min-width: 0; }
.page-heading { padding-bottom: 24px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.breadcrumb { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 12px; line-height: 1.5; }
.breadcrumb a { display: inline-flex; align-items: center; min-height: 24px; color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); }
.page-title { margin: 10px 0 8px; font-size: 36px; line-height: 1.35; letter-spacing: -.035em; font-weight: 700; color: #392e34; }
.page-description { max-width: 640px; margin: 0; font-size: 15px; line-height: 1.75; color: var(--muted); }
.page-description:empty { display: none; }
.legacy-article { padding: 0; border: 0; background: transparent; }
.content-loading, .content-error { padding: 16px 0; font-size: 14px; color: var(--muted); }
.content-error { color: var(--brand); }
.legacy-content { font-size: 15px; line-height: 1.75; min-width: 0; word-break: normal; overflow-wrap: anywhere; }
.legacy-content p { margin: 0 0 8px; }
.reco-stack { gap: 36px; }
.reco-section { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; min-width: 0; }
.reco-title { font-family: 'Noto Sans KR', sans-serif; font-size: 18px; line-height: 1.45; font-weight: 700; color: #49343e; border: 0; padding: 0; margin: 0 0 16px; }
.reco-subtitle { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.reco-profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 520px; }
.reco-profile-card { border: 0; border-radius: 0; background: transparent; overflow: visible; min-width: 0; }
.reco-profile-card img, .reco-profile-grid-priest .reco-profile-card img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: center 18%; border-radius: 12px; background: #f1edE7; }
.reco-profile-body { padding: 12px 0 0; }
.reco-role { font-size: 12px; line-height: 1.5; font-weight: 500; color: var(--muted); }
.reco-name { font-size: 16px; line-height: 1.55; font-weight: 600; color: var(--ink); }
.reco-profile-body .reco-role { margin-bottom: 4px; }
.reco-history-list { margin: 0; padding: 0; list-style: none; }
.reco-history-item { display: grid; grid-template-columns: 44px minmax(0, 1fr) minmax(200px, auto); gap: 4px 12px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); }
.history-term { grid-column: 1; grid-row: 1 / span 2; font-size: 12px; font-weight: 500; color: var(--brand); }
.history-name { grid-column: 2; font-size: 15px; font-weight: 600; line-height: 1.6; }
.legacy-content .history-period { grid-column: 3; margin: 0; font-size: 13px; line-height: 1.7; color: var(--muted); }
.legacy-content .history-note { grid-column: 2 / -1; margin: 0; font-size: 13px; line-height: 1.7; color: var(--muted); }
.reco-history-item.without-term { grid-template-columns: minmax(0, 1fr) minmax(200px, auto); }
.without-term .history-name { grid-column: 1; }
.legacy-content .without-term .history-period { grid-column: 2; }
.legacy-content .without-term .history-note { grid-column: 1 / -1; }
.reco-table-wrap { max-width: 100%; overflow: visible; border: 0; border-radius: 0; background: transparent; }
.reco-table { min-width: 0; width: 100%; table-layout: auto; }
.legacy-content .reco-table { background: transparent; margin: 0; }
.legacy-content .reco-table td, .legacy-content .reco-table th { padding: 12px; border: 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.7; white-space: normal; overflow-wrap: anywhere; }
.legacy-content .reco-table thead th { background: #f3f0ed; color: #5d4b53; }
.mobile-record-list { display: none; }
.samok-table th:first-child { width: 44%; }
.reco-kv { grid-template-columns: 120px minmax(0, 1fr); padding: 14px 0; border-color: var(--line); }
.reco-kv-key { font-size: 13px; }
.reco-kv-val { font-size: 15px; }
.reco-list-item { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; padding: 12px 0; }
.reco-person-card { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 20px 0; background: transparent; box-shadow: none; }
.reco-person-photo { border: 0; border-radius: 8px; }
.reco-photo { border: 0; border-radius: 12px; box-shadow: none; }
.reco-photo img { border-radius: 12px; }
.reco-note-box { border: 0; border-left: 3px solid #d9bac5; border-radius: 0; background: #f9f2f4; }
.org-chart { padding: 20px; border-color: var(--line); background: #fff; box-shadow: none; }
.org-card { border-color: var(--line); box-shadow: none; }
.org-card-title { font-size: 15px; }
.org-list { font-size: 14px; line-height: 1.7; }
.history-toolbar { margin-bottom: 28px; }
.history-summary { margin: 0 0 12px; font-size: 13px; color: var(--muted); }
.history-summary strong { color: var(--brand); font-weight: 600; }
#history-era-links { display: flex; flex-wrap: wrap; gap: 0 6px; }
.era-link { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 10px; font-size: 13px; font-weight: 500; color: var(--muted); border-bottom: 2px solid transparent; }
.era-link:first-child, .era-link:hover { color: var(--brand); border-bottom-color: var(--brand); }
.history-era-section { margin-bottom: 36px; }
.history-era-title { margin-bottom: 4px; padding-bottom: 12px; border-bottom: 1px solid var(--line); color: var(--brand); font-family: 'Noto Serif KR', serif; font-size: 22px; font-weight: 700; }
.history-event { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.history-date { font-size: 13px; font-weight: 500; color: var(--muted); line-height: 1.8; }
.history-description { font-size: 15px; line-height: 1.8; white-space: pre-line; color: #4e4349; }
.listing-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; }
#listing-search { width: 100%; max-width: 520px; min-height: 48px; padding: 11px 14px; border: 1px solid #ddd5d7; border-radius: 10px; font-size: 16px; background: #fff; color: var(--ink); }
.listing-count { color: var(--muted); font-size: 12px; white-space: nowrap; }
.listing-filters { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 12px; }
.listing-filter { min-height: 44px; padding: 8px 12px; font-size: 13px; line-height: 1.5; color: var(--muted); border-bottom: 2px solid transparent; }
.listing-filter.is-active { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }
.listing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; list-style: none; padding: 0; margin: 0; }
.listing-grid > li { min-width: 0; }
.menu-result { display: grid; grid-template-columns: minmax(0, 1fr) 18px; gap: 6px 12px; padding: 20px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.menu-category { grid-column: 1; color: var(--muted); font-size: 12px; }
.menu-result-name { grid-column: 1; font-size: 16px; font-weight: 600; line-height: 1.5; }
.menu-result svg { grid-column: 2; grid-row: 1 / span 2; align-self: center; width: 18px; height: 18px; color: #a3979d; }
.menu-result:hover .menu-result-name { color: var(--brand); }
.reco-board-actions, .reco-board-switch { display: flex; flex-wrap: wrap; gap: 8px; }
.reco-board-action, .reco-board-tab { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; line-height: 1.5; padding: 10px 16px; font-size: 14px; }
.reco-board-action { background: var(--brand); color: #fff !important; text-decoration: none !important; border: 0; border-radius: 9px; }
.reco-board-tab { border-radius: 7px; box-shadow: none !important; }
.board-scroll-note { font-size: 12px; color: var(--muted); }
.board-preview > summary { min-height: 44px; cursor: pointer; font-size: 14px; color: var(--muted); }
.reco-board-embed { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; margin-top: 8px; }
.reco-board-iframe { display: block; width: 100%; min-width: 800px; border: 0; height: 980px; }
.hero-overlay { background: linear-gradient(rgba(24, 13, 19, .32), rgba(24, 13, 19, .62)); }
.home-hero { margin-top: var(--header-height); height: 520px; }
.hero-main-title { font-weight: 400; letter-spacing: .01em; }
.home-info { margin-top: -40px; }
.home-info article { border: 1px solid var(--line); border-radius: 14px; box-shadow: none; padding: 24px; }
.home-info article:hover { transform: none; }
.home-info .mass-card { border-color: var(--brand); }
.home-info .text-right { min-width: 0; }
@media (min-width: 768px) {
  .reco-profile-grid { max-width: none; }
  .reco-profile-card { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 20px; align-items: center; }
  .reco-profile-card img, .reco-profile-grid-priest .reco-profile-card img { width: 100px; height: 134px; aspect-ratio: auto; }
  .reco-profile-body { padding: 0; }
  .home-info .intro-card { order: -1; }
}
@media (min-width: 1024px) {
  .board-preview > summary, .board-scroll-note { display: none; }
}
@media (min-width: 1200px) {
  .desktop-nav { display: flex; }
  .mobile-nav-toggle, #mobile-menu, .nav-scrim { display: none !important; }
}
@media (min-width: 1200px) {
  .section-layout { grid-template-columns: 208px minmax(0, 1fr); gap: 48px; }
  .section-sidebar { display: block; }
  .sidebar-sticky { position: sticky; top: calc(var(--header-height) + 32px); }
  .section-nav-title { font-family: 'Noto Sans KR', sans-serif; font-size: 16px; font-weight: 700; margin-bottom: 16px; }
  .side-link { display: flex; align-items: center; min-height: 44px; padding: 10px 12px; border: 0; border-radius: 6px; font-size: 14px; font-weight: 500; line-height: 1.5; color: #675a61; }
  .side-link .material-icons { display: none; }
  .side-link:hover, .side-link.is-active { background: #f7edef; color: var(--brand); }
  .sidebar-shortcuts { display: flex; flex-wrap: wrap; gap: 16px; padding: 16px 12px 0; margin-top: 16px; border-top: 1px solid var(--line); }
  .sidebar-shortcuts a { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; color: var(--muted); }
}
@media (max-width: 1199px) {
  :root { --header-height: 64px; }
  .site-nav > div { padding: 0 20px; }
  .section-layout, .menu-layout { padding-top: calc(var(--header-height) + 24px); }
}
@media (max-width: 1023px) { .listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) {
  .section-layout, .menu-layout { padding-right: 20px; padding-left: 20px; padding-bottom: 40px; }
  .page-title { font-size: 28px; }
  .page-description { font-size: 14px; }
  .page-heading { padding-bottom: 20px; margin-bottom: 24px; }
  .reco-stack { gap: 32px; }
  .reco-title { font-size: 17px; margin-bottom: 14px; }
  .reco-profile-grid { gap: 16px; }
  .reco-name { font-size: 14px; }
  .reco-history-item { grid-template-columns: 36px minmax(0, 1fr); gap: 3px 10px; padding: 12px 0; }
  .history-name { font-size: 14px; }
  .legacy-content .history-period { grid-column: 2; font-size: 13px; }
  .legacy-content .history-note { grid-column: 2; font-size: 13px; }
  .reco-history-item.without-term { grid-template-columns: minmax(0, 1fr); }
  .legacy-content .without-term .history-period, .legacy-content .without-term .history-note { grid-column: 1; }
  .reco-table-wrap > .reco-table { display: none; }
  .mobile-record-list { display: block; }
  .mobile-record-group { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .mobile-record-group-title { color: var(--brand); font-size: 14px; font-weight: 600; line-height: 1.6; }
  .record-fields { display: grid; gap: 8px; margin: 0; font-size: 14px; }
  .record-fields + .record-fields { padding-top: 10px; margin-top: 10px; border-top: 1px solid var(--line); }
  .record-fields.is-inline { grid-template-columns: minmax(0, .6fr) minmax(0, 1fr); }
  .record-field { min-width: 0; }
  .record-field dt { color: var(--muted); font-size: 12px; line-height: 1.7; }
  .record-field dd { font-size: 14px; line-height: 1.75; min-width: 0; }
  .record-field dd p:last-child { margin-bottom: 0; }
  .record-field.has-label { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 8px; }
  .record-fields.is-inline .record-field.has-label { display: block; }
  .samok-table-wrap .mobile-record-group { display: grid; grid-template-columns: minmax(100px, .85fr) minmax(0, 1fr); gap: 12px; align-items: center; }
  .samok-table-wrap .mobile-record-group-title { margin: 0; font-size: 13px; color: #5f4652; }
  .samok-table-wrap .record-fields { display: block; }
  .samok-table-wrap .record-field.has-label { display: block; }
  .samok-table-wrap .record-field dt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .samok-table-wrap .record-field:first-child dd { font-weight: 600; }
  .samok-table-wrap .record-field:last-child dd { color: var(--muted); font-size: 12px; }
  .reco-kv { grid-template-columns: 80px minmax(0, 1fr); gap: 12px; }
  .reco-person-card { grid-template-columns: 80px minmax(0, 1fr); gap: 16px; padding: 16px 0; }
  .reco-person-photo { width: 80px; height: 106px; max-width: none; margin: 0; }
  .org-chart { padding: 14px; }
  .history-toolbar { margin-bottom: 24px; }
  #history-era-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 4px; }
  .era-link { justify-content: center; }
  .era-link { font-size: 12px; padding: 8px 6px; }
  .history-event { display: block; padding: 16px 0; }
  .history-date { margin-bottom: 6px; font-size: 12px; }
  .history-description { font-size: 14px; }
  .listing-toolbar { display: block; }
  .listing-count { margin-top: 10px; }
  .listing-filter { padding-right: 10px; padding-left: 10px; }
  .listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
  .menu-result { padding: 16px 0; }
  .menu-result-name { font-size: 14px; }
  .reco-board-action { width: 100%; }
  .reco-board-iframe { height: min(760px, 85svh); min-height: 460px; }
  .home-hero { height: clamp(360px, 48svh, 430px); }
  .home-hero .hero-overlay { padding: 24px 16px 56px; }
  .hero-main-title { font-size: clamp(28px, 7.5vw, 36px); margin-bottom: 16px; }
  .hero-eyebrow { display: none; }
  .hero-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: 100%; max-width: 360px; margin-top: 24px; }
  .hero-actions a { justify-content: center; padding: 12px 8px; font-size: 14px; min-height: 48px; gap: 6px; }
  .home-info { margin-top: -32px; }
  .home-info > div { gap: 16px; }
  .home-info article { padding: 20px; }
  .home-info h3 { font-size: 20px; }
  body[data-page="home"] main { padding-top: 32px; padding-bottom: 32px; }
  body[data-page="home"] main > div { gap: 32px; }
  body[data-page="home"] main .space-y-12 > :not([hidden]) ~ :not([hidden]) { margin-top: 32px; }
}
@media (max-width: 359px) {
  .site-nav > div, .section-layout, .menu-layout { padding-right: 16px; padding-left: 16px; }
  .nav-categories button { font-size: 12px; }
  .nav-submenus a { font-size: 13px; }
  .home-info .text-right { font-size: 13px; }
  .listing-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
  .group:hover img, .home-info article:hover { transform: none !important; }
}
