/* === Web Fonts === */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+KR:wght@400;600;700&display=swap');

/* === Design Tokens === */
:root {
  --bg:           #faf7f2;
  --bg-card:      #fff8ef;
  --bg-muted:     #f0e9df;
  --bg-subtle:    #f5ede0;

  --header-bg:    #2c1a0e;

  --accent:       #1e3a5f;
  --accent-hover: #152b46;
  --accent-light: rgba(30, 58, 95, 0.08);

  --gold:         #9a6e3a;
  --gold-light:   rgba(154, 110, 58, 0.12);

  --text:         #3d2b1f;
  --text-muted:   #7a6552;
  --text-light:   #a89282;

  --border:       #e0d4c4;
  --border-faint: rgba(44, 26, 14, 0.07);

  --shadow:       0 2px 20px rgba(44, 26, 14, 0.08);
  --shadow-md:    0 8px 32px rgba(44, 26, 14, 0.10);
  --shadow-lg:    0 16px 48px rgba(44, 26, 14, 0.12);

  --radius-sm:    8px;
  --radius:       14px;
  --radius-lg:    20px;
  --radius-pill:  999px;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Pretendard', 'Pretendard Variable', -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: inherit;
  line-height: 1.3;
  letter-spacing: -0.025em;
  margin: 0 0 0.5em;
  font-weight: 700;
}

h1 { font-size: 2.1rem; font-weight: 800; }
h2 { font-size: 1.4rem; font-weight: 700; }
h3 { font-size: 1.08rem; font-weight: 600; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 150ms ease;
}
a:hover { color: var(--accent-hover); text-decoration: underline; }

p { margin: 0 0 1em; }
ul { list-style: none; padding: 0; margin: 0; }
img { max-width: 100%; height: auto; display: block; }

/* === Layout === */
.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

main.container { padding: 36px 0 56px; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background: var(--header-bg);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.28);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 0;
}

.brand, .nav a { color: #fff; text-decoration: none; }

.brand-image { display: inline-flex; align-items: center; flex: 0 0 auto; }

.brand-image img {
  display: block;
  width: auto;
  max-width: min(320px, 60vw);
  height: 38px;
  object-fit: contain;
}

/* === Navigation === */
.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu > li { position: relative; }

.nav-menu > li > a {
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  transition: color 150ms, background 150ms;
  white-space: nowrap;
}
.nav-menu > li > a:hover,
.nav-menu > li:hover > a { color: #fff; background: rgba(255, 255, 255, 0.08); text-decoration: none; }

.nav-cta {
  color: #f0c060 !important;
  background: rgba(240, 192, 96, 0.12);
  border: 1px solid rgba(240, 192, 96, 0.28);
}
.nav-cta:hover { background: rgba(240, 192, 96, 0.2) !important; color: #ffd980 !important; }

/* caret toggle (hidden on desktop, hover drives dropdown) */
.sub-toggle { display: none; }

/* Dropdown */
.subnav {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 190px;
  list-style: none;
  margin: 0;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 150ms, transform 150ms, visibility 150ms;
  z-index: 200;
}
.nav-menu > li.has-sub:hover > .subnav { opacity: 1; visibility: visible; transform: translateY(0); }

.subnav li { margin: 0; }
.subnav a {
  display: block;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.9rem;
  white-space: nowrap;
  transition: background 150ms, color 150ms;
}
.subnav a:hover { background: var(--bg-muted); color: var(--accent); text-decoration: none; }

/* Auth cluster */
.nav-auth { display: flex; align-items: center; gap: 8px; padding-left: 8px; }
.nav-auth > a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
}
.nav-auth > a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); text-decoration: none; }

.nav-accent {
  background: rgba(240, 192, 96, 0.14) !important;
  color: #f0c060 !important;
}

/* 관리자 화면 입구. 권한이 있는 사람에게만 보인다. */
.nav-admin {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
  font-weight: 600;
}
.nav-admin:hover { background: rgba(255, 255, 255, 0.22) !important; }

.nav-user {
  display: inline-flex;
  align-items: center;
  padding: 7px 4px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.84rem;
}

.nav-inline-form, .inline-form { display: inline-flex; margin: 0; }

.nav-button {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.78);
  font: inherit;
  font-size: 0.84rem;
  cursor: pointer;
  transition: all 150ms;
  width: auto;
}
.nav-button:hover { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.3); color: #fff; }

/* Hamburger toggle */
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: transparent;
  border: 0;
  cursor: pointer;
  box-shadow: none;
}
.nav-toggle:hover { background: transparent; transform: none; }
.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 200ms, opacity 200ms;
}
body.nav-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-scrim {
  position: fixed;
  inset: 0;
  background: rgba(20, 12, 6, 0.5);
  z-index: 150;
  opacity: 0;
  transition: opacity 200ms;
}
body.nav-open .nav-scrim { opacity: 1; }

/* ---- Mobile nav (drawer) ---- */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 84vw);
    margin: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 80px 18px 28px;
    background: var(--header-bg);
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.4);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 240ms ease;
    z-index: 160;
  }
  body.nav-open .nav { transform: translateX(0); }

  .nav-menu { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .nav-menu > li { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .nav-menu > li > a { padding: 14px 8px; font-size: 1rem; border-radius: 0; }

  .has-sub { display: grid; grid-template-columns: 1fr auto; align-items: center; }
  .has-sub > .subnav { grid-column: 1 / -1; }

  .sub-toggle {
    display: block;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 0;
    cursor: pointer;
    position: relative;
    box-shadow: none;
  }
  .sub-toggle:hover { background: transparent; transform: none; }
  .sub-toggle::before, .sub-toggle::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 2px;
    background: rgba(255, 255, 255, 0.7);
    transform: translate(-50%, -50%);
    transition: transform 200ms;
  }
  .sub-toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
  .has-sub.open .sub-toggle::after { transform: translate(-50%, -50%) rotate(0); }

  .subnav {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    min-width: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0 0 8px 8px;
    display: none;
  }
  .has-sub.open > .subnav { display: block; }
  .subnav a { color: rgba(255, 255, 255, 0.66); padding: 10px 10px; }
  .subnav a:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }

  .nav-auth {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px 0 0;
    margin-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }
  .nav-auth > a { padding: 12px 8px; }
  .nav-user { padding: 8px; }
  .nav-inline-form { width: 100%; }
  .nav-button { width: 100%; text-align: center; justify-content: center; display: inline-flex; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--header-bg);
  color: rgba(255, 255, 255, 0.6);
  margin-top: 56px;
}

.site-footer .container {
  display: grid;
  gap: 24px;
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.footer-panel {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 20px 22px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-panel h2, .footer-panel h3 {
  margin: 0;
  font-family: 'Pretendard', sans-serif;
  color: #fff;
}

.footer-panel h2 { font-size: 20px; }
.footer-panel h3 { font-size: 13px; letter-spacing: 0.09em; text-transform: uppercase; }

.footer-brand { display: inline-flex; align-items: center; }

.footer-brand img {
  display: block;
  width: auto;
  max-width: 240px;
  height: 28px;
  object-fit: contain;
  opacity: 0.68;
}

.footer-lead, .footer-address, .footer-list {
  margin: 0;
  color: rgba(255, 255, 255, 0.52);
}

.footer-lead { font-size: 0.84rem; line-height: 1.75; }
.footer-address { font-size: 0.79rem; line-height: 1.8; }

.footer-list {
  padding: 0;
  list-style: none;
  display: grid;
  gap: 7px;
  font-size: 0.82rem;
}

.footer-list li, .footer-panel strong { color: rgba(255, 255, 255, 0.76); }

.footer-links a, .footer-panel a {
  color: rgba(255, 255, 255, 0.52);
  text-decoration: none;
  transition: color 150ms;
}

.footer-panel a:hover { color: rgba(255, 255, 255, 0.95); text-decoration: none; }

.footer-sub {
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  color: rgba(255, 255, 255, 0.26);
  font-size: 0.76rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.button-primary, .button-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: var(--radius-pill);
  padding: 10px 20px;
  font: 600 0.9rem 'Pretendard', sans-serif;
  transition: all 150ms;
  cursor: pointer;
}

.button-primary {
  background: linear-gradient(180deg, #22517f 0%, var(--accent-hover) 100%);
  color: #fff;
  border: none;
  box-shadow: 0 8px 20px rgba(30, 58, 95, 0.22);
}

.button-primary:hover {
  background: linear-gradient(180deg, #1e4973 0%, #11243c 100%);
  transform: translateY(-1px);
  text-decoration: none;
  color: #fff;
}

.button-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.button-ghost:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  text-decoration: none;
}

.button-ghost.dark {
  background: var(--bg-muted);
  color: var(--accent);
  border-color: var(--border);
}

.button-ghost.dark:hover {
  background: var(--bg-subtle);
  color: var(--accent-hover);
  text-decoration: none;
}

/* ============================================================
   TYPOGRAPHY HELPERS
   ============================================================ */
.eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-family: 'Pretendard', sans-serif;
}

.meta-line { margin: 5px 0 0; color: var(--text-muted); font-size: 13px; }

.meta-cluster { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ============================================================
   FLASH MESSAGES
   ============================================================ */
.flash-success, .flash-error {
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  font-size: 0.9rem;
}

.flash-success {
  background: #d1fae5;
  color: #065f46;
  border-left: 3px solid #10b981;
}

.flash-error {
  background: #fee2e2;
  color: #991b1b;
  border-left: 3px solid #ef4444;
}

/* ============================================================
   CARD BASE
   ============================================================ */
.page-hero, .auth-card, section, article {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-faint);
  margin-bottom: 20px;
}

.page-hero-compact {
  background: linear-gradient(135deg, rgba(44, 26, 14, 0.04), rgba(154, 110, 58, 0.09)), var(--bg-card);
}

/* ============================================================
   HERO SECTION (HOME)
   ============================================================ */
.hero-copy {
  max-width: 620px;
  line-height: 1.8;
  color: var(--text-muted);
  font-size: 16px;
  margin: 0;
}

.hero-metrics {
  display: flex;
  gap: 16px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.hero-metrics div {
  min-width: 110px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.hero-metrics strong {
  display: block;
  font-size: 24px;
  font-family: 'Pretendard', sans-serif;
  color: var(--accent);
}

.hero-metrics span { font-size: 13px; color: var(--text-muted); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 24px;
  background: linear-gradient(135deg, rgba(44, 26, 14, 0.04), rgba(154, 110, 58, 0.09)), var(--bg-card);
}

.hero-copy-column {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 420px;
  padding-right: 8px;
}

.hero-copy-column .eyebrow { margin-bottom: 10px; }

.hero-copy-column h1 {
  margin: 6px 0 14px;
  max-width: 8.5em;
  color: var(--header-bg);
}

.hero-stage { position: relative; display: grid; align-content: start; }

.hero-visual-frame {
  position: relative;
  min-height: 420px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(180deg, #faf5ee 0%, #ede4d8 100%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.hero-visual-glow {
  position: absolute;
  inset: -10% auto auto -10%;
  width: 55%;
  height: 55%;
  background: radial-gradient(circle, rgba(255, 218, 140, 0.5) 0%, rgba(255, 218, 140, 0) 70%);
  pointer-events: none;
  animation: driftGlow 10s ease-in-out infinite alternate;
}

.hero-visual-art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  animation: floatPanel 14s ease-in-out infinite;
}

.hero-floating-note {
  position: absolute;
  max-width: 190px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: rgba(255, 248, 239, 0.9);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
  display: grid;
  gap: 4px;
}

.hero-floating-note strong { font-size: 13px; color: var(--accent); }
.hero-floating-note span { font-size: 12px; line-height: 1.5; color: var(--text-muted); }

.note-a { top: 18px; right: 18px; animation: floatNoteA 9s ease-in-out infinite; }
.note-b { right: 26px; bottom: 20px; animation: floatNoteB 11s ease-in-out infinite; }

.hero-panel {
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 248, 239, 0.92) 0%, rgba(240, 233, 223, 0.95) 100%);
  padding: 22px;
  border: 1px solid var(--border);
}

.hero-panel h2 { margin-top: 0; }

.hero-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }

/* ============================================================
   AI HERO
   ============================================================ */
.ai-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr);
  gap: 26px;
  align-items: center;
}

.ai-hero-copy { position: relative; z-index: 1; }

.ai-hero-panel {
  position: relative;
  min-height: 330px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: radial-gradient(circle at center, #faf5ee 0%, var(--bg-muted) 100%);
  border: 1px solid var(--border);
}

.ai-orbit {
  position: absolute;
  inset: 50% auto auto 50%;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(30, 58, 95, 0.14);
  transform: translate(-50%, -50%);
}

.ai-orbit-1 { width: 230px; height: 230px; animation: orbitPulse 8s ease-in-out infinite; }
.ai-orbit-2 { width: 310px; height: 310px; animation: orbitPulse 12s ease-in-out infinite reverse; }

.ai-core {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 132px;
  height: 132px;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: #fff;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 14px;
  box-shadow: 0 24px 44px rgba(30, 58, 95, 0.28);
}

.ai-core strong { font-size: 24px; letter-spacing: 0.08em; }
.ai-core span { font-size: 11px; line-height: 1.4; color: rgba(255, 255, 255, 0.78); }

.ai-node {
  position: absolute;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 248, 239, 0.9);
  border: 1px solid var(--border);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-md);
}

.node-a { top: 42px; right: 40px; }
.node-b { bottom: 44px; left: 34px; }
.node-c { top: 142px; left: 24px; }

/* ============================================================
   MISSION STRIP
   ============================================================ */
.mission-strip {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.mission-card, .mission-grid article {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border-faint);
}

.mission-card { padding: 24px; }
.mission-card h2, .mission-grid h3 { margin: 0 0 12px; }

.mission-grid { display: grid; gap: 14px; }
.mission-grid article { padding: 18px 20px; margin: 0; }

.mission-grid span {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  background: var(--bg-muted);
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
  font-family: 'Pretendard', sans-serif;
}

/* ============================================================
   QUICK LINKS
   ============================================================ */
.quick-links { display: grid; gap: 10px; }

.quick-links a {
  text-decoration: none;
  color: var(--accent);
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 12px 14px;
  border: 1px solid var(--border);
  transition: all 150ms;
}

.quick-links a:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

/* ============================================================
   SECTION GRID
   ============================================================ */
.section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.content-card {
  margin-bottom: 0;
  position: relative;
  overflow: hidden;
}

.content-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold) 0%, rgba(154, 110, 58, 0.15) 100%);
}

.accent-card {
  background: linear-gradient(150deg, var(--accent) 0%, #2a4d80 100%);
  color: #fff;
}

.accent-card::before { display: none; }
.accent-card a { color: rgba(255, 255, 255, 0.9); }

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.section-head h2 { margin: 0; font-size: 1.05rem; }

.section-head a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  transition: color 150ms;
}

.section-head a:hover { color: var(--accent); }

.section-caption { color: var(--text-muted); font-size: 13px; }

/* ============================================================
   FORMS
   ============================================================ */
form { display: grid; gap: 10px; }

.search-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  margin-bottom: 18px;
}

ul { padding-left: 18px; }

input, textarea, select {
  font: inherit;
  font-size: 14px;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text);
  transition: border-color 150ms, box-shadow 150ms;
  width: 100%;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

textarea { min-height: 120px; }

label {
  display: grid;
  gap: 6px;
  font-size: 0.87rem;
  font-weight: 500;
  color: var(--text);
}

button {
  width: fit-content;
  font: inherit;
  padding: 10px 20px;
  background: linear-gradient(180deg, #22517f 0%, var(--accent-hover) 100%);
  border: 0;
  color: #fff;
  cursor: pointer;
  border-radius: var(--radius-sm);
  box-shadow: 0 6px 16px rgba(30, 58, 95, 0.18);
  transition: all 150ms;
}

button:hover {
  background: linear-gradient(180deg, #1e4973 0%, #11243c 100%);
  transform: translateY(-1px);
}

/* ============================================================
   CONTENT LISTS
   ============================================================ */
.content-list {
  display: grid;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.content-list li {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-muted);
}

.editorial-list li {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-muted) 100%);
  padding: 16px 18px;
  border-radius: var(--radius-sm);
}

.editorial-list a {
  font-weight: 600;
  text-decoration: none;
  font-size: 16px;
  color: var(--text);
  transition: color 150ms;
}

.editorial-list a:hover { color: var(--accent); }

.content-list.spacious { gap: 14px; }

.list-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-muted) 100%);
  padding: 18px 20px;
  border-radius: var(--radius);
}

.list-card-block { align-items: flex-start; }

/* ============================================================
   DETAIL / ARTICLE VIEWS
   ============================================================ */
.detail-sheet { padding: 0; overflow: hidden; border-radius: var(--radius-lg); }

.detail-hero {
  padding: 32px 32px 22px;
  background: linear-gradient(135deg, rgba(44, 26, 14, 0.04), rgba(154, 110, 58, 0.08)), var(--bg-card);
  border-bottom: 1px solid var(--border);
}

.detail-summary { color: var(--text-muted); line-height: 1.8; margin-top: 16px; }

.detail-body {
  padding: 32px;
  line-height: 1.85;
  font-size: 16px;
  color: var(--text);
}

.detail-body p:first-child { margin-top: 0; }
.detail-body p, .detail-body li { line-height: 1.9; }

.download-card, .action-strip { margin: 0 32px 32px; }

.download-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--bg-muted);
  border: 1px solid var(--border);
}

/* ============================================================
   STATUS BADGES
   ============================================================ */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--bg-muted);
  color: var(--text-muted);
  font-size: 12px;
  margin-left: 8px;
}

.status-badge.muted { background: var(--bg-muted); color: var(--text-light); }

/* ============================================================
   AUTH PAGES
   ============================================================ */
.auth-container {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--bg);
}

.auth-card { width: min(520px, calc(100% - 24px)); margin: 0; }

.auth-card.auth-hub {
  width: min(980px, calc(100% - 24px));
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 22px;
}

.auth-card.auth-narrow { width: min(560px, calc(100% - 24px)); }

.auth-panel {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.auth-panel-side {
  background: linear-gradient(180deg, var(--bg-muted) 0%, var(--bg-subtle) 100%);
}

.auth-copy { margin: 0 0 10px; }

.auth-tab-nav { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0 22px; }

.auth-tab-nav a {
  text-decoration: none;
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  background: var(--bg-muted);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-weight: 600;
  transition: all 150ms;
}

.auth-tab-nav a.is-active {
  background: linear-gradient(180deg, #22517f 0%, var(--accent-hover) 100%);
  border-color: var(--accent-hover);
  color: #fff;
  box-shadow: 0 8px 20px rgba(30, 58, 95, 0.2);
}

.auth-links { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; }

.auth-links a { text-decoration: none; color: var(--accent); font-weight: 600; }

.form-help { margin: 8px 0 0; color: var(--text-muted); font-size: 13px; }

.auth-action-list { display: grid; gap: 12px; margin-top: 18px; }

.auth-action-card {
  display: grid;
  gap: 6px;
  text-decoration: none;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--border);
  color: var(--text);
  transition: all 150ms;
}

.auth-action-card:hover { transform: translateY(-1px); box-shadow: var(--shadow); text-decoration: none; }
.auth-action-card strong { font-size: 15px; }
.auth-action-card span { color: var(--text-muted); line-height: 1.6; }

.auth-result-card {
  display: grid;
  gap: 6px;
  margin: 0 0 18px;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  background: var(--bg-muted);
  border: 1px solid var(--border);
}

.auth-result-card span { color: var(--text-muted); font-size: 13px; }
.auth-result-card strong { color: var(--text); font-size: 22px; }

/* ============================================================
   ABOUT PAGES
   ============================================================ */
.about-shell {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 26px;
  align-items: start;
  margin-bottom: 40px;
}

.about-sidebar { position: sticky; top: 92px; }

.about-accordion {
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-muted) 100%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.about-accordion summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 700;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.about-accordion summary::-webkit-details-marker { display: none; }

.about-subnav { display: grid; padding: 10px; gap: 6px; }

.about-subnav a {
  text-decoration: none;
  color: var(--text-muted);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: all 150ms;
}

.about-subnav a.is-active { background: var(--bg-muted); color: var(--text); }
.about-subnav a:hover { background: var(--bg-muted); color: var(--text); text-decoration: none; }

.about-content { padding: 28px 30px; }
.about-content-head { margin-bottom: 24px; }
.about-summary { color: var(--text-muted); }

/* ============================================================
   RICH TEXT CONTENT
   ============================================================ */
.legacy-richtext { color: var(--text); line-height: 1.9; }

.legacy-richtext h3, .legacy-richtext h4 {
  color: var(--header-bg);
  margin: 1.8em 0 0.75em;
}

.legacy-richtext p, .legacy-richtext li { line-height: 1.9; }

.legacy-richtext table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 24px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-card);
}

.legacy-richtext td, .legacy-richtext th {
  border: 1px solid var(--border);
  padding: 12px 14px;
  vertical-align: top;
}

.legacy-richtext blockquote {
  margin: 24px 0;
  padding: 18px 20px;
  border-left: 4px solid var(--gold);
  background: var(--bg-muted);
  color: var(--text);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.legacy-richtext .btn, .legacy-richtext .btn-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg-muted);
  color: var(--accent);
  font-weight: 600;
}

/* ============================================================
   PROFILE / MEMBER
   ============================================================ */
.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.profile-item {
  padding: 18px 20px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-muted) 100%);
  border: 1px solid var(--border);
  display: grid;
  gap: 8px;
}

.profile-item span { color: var(--text-muted); font-size: 13px; }
.profile-item strong { color: var(--text); font-size: 18px; }

.user-chip {
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 13px;
}

/* ============================================================
   JOURNAL / VIEWER
   ============================================================ */
.journal-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.journal-subnav a {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  background: var(--accent-light);
  border: 1px solid rgba(30, 58, 95, 0.11);
  text-decoration: none;
  font-weight: 600;
  color: var(--accent);
  transition: all 150ms;
}

.journal-subnav a.is-active, .journal-subnav a:hover {
  background: rgba(30, 58, 95, 0.13);
  border-color: rgba(30, 58, 95, 0.22);
  text-decoration: none;
}

.journal-viewer-hero { margin-bottom: 22px; }

.journal-viewer-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr);
  gap: 20px;
  margin-bottom: 20px;
}

.viewer-filter-card, .viewer-spotlight-card, .viewer-list-card {
  display: grid;
  gap: 18px;
}

.section-heading { display: grid; gap: 6px; }
.section-heading h2, .viewer-issue-item h3 { margin: 0; }

.viewer-filter-form { display: grid; gap: 14px; }

.viewer-filter-form label {
  display: grid;
  gap: 8px;
  font-weight: 600;
  color: var(--text);
}

.viewer-filter-form input, .viewer-filter-form select {
  width: 100%;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text);
  font: inherit;
}

.viewer-search-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(30, 58, 95, 0.05), rgba(154, 110, 58, 0.08));
}

.viewer-search-card h3, .viewer-search-card p,
.viewer-issue-copy p, .viewer-issue-copy h3,
.viewer-spotlight-card p { margin: 0; }

.viewer-dbpia-search, .viewer-action-row, .viewer-issue-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.viewer-spotlight-meta { display: flex; gap: 10px; flex-wrap: wrap; }
.empty-state-copy { color: var(--text-muted); }

.viewer-list-card { gap: 16px; }
.viewer-issue-list { display: grid; gap: 14px; }

.viewer-issue-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
}

.viewer-issue-item:first-child { border-top: 0; padding-top: 0; }

.viewer-issue-copy { display: grid; gap: 6px; }
.viewer-issue-number { color: var(--accent); font-weight: 700; }
.viewer-issue-date { color: var(--text-muted); }

.viewer-issue-actions a, .viewer-issue-actions button {
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--accent);
  text-decoration: none;
  font: inherit;
  font-size: 0.84rem;
  cursor: pointer;
  transition: all 150ms;
  box-shadow: none;
}

.viewer-issue-actions button:hover, .viewer-issue-actions a:hover {
  background: var(--bg-muted);
  transform: none;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes floatPanel {
  0%, 100% { transform: scale(1.02) translateY(0); }
  50%       { transform: scale(1.025) translateY(-6px); }
}

@keyframes driftGlow {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(18px, 12px, 0); }
}

@keyframes floatNoteA {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-5px); }
}

@keyframes floatNoteB {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}

@keyframes orbitPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.7; }
  50%       { transform: translate(-50%, -50%) scale(1.03); opacity: 1; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .ai-hero,
  .auth-card.auth-hub,
  .about-shell,
  .footer-grid,
  .mission-strip,
  .journal-viewer-grid,
  .hero-grid,
  .section-grid {
    grid-template-columns: 1fr;
  }

  .site-header-inner { flex-direction: column; }
  .hero-visual-frame { min-height: 320px; }
  .ai-hero-panel { min-height: 280px; }
  .hero-copy-column { min-height: auto; padding-right: 0; }

  .hero-floating-note {
    position: static;
    max-width: none;
    margin: 14px;
    animation: none;
  }

  .search-row { grid-template-columns: 1fr; }
  .download-card, .list-card { flex-direction: column; align-items: flex-start; }
  .profile-grid { grid-template-columns: 1fr; }
  .about-sidebar { position: static; }
  .detail-hero, .detail-body { padding: 24px; }
  .download-card, .action-strip { margin: 0 24px 24px; }
  .auth-panel, .about-content { padding: 24px 20px; }
}

@media (max-width: 600px) {
  body { font-size: 14px; }

  .site-header .container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  .hero-copy-column h1 { font-size: 1.75rem; }
  .section-grid, .mission-strip { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  section, article, .auth-card, .page-hero { padding: 20px; }
}

/* ============================================================
   HOME v2 (scoped to .hm)
   — 시안1a: 다크+명조+골드 히어로 슬라이드
   — 시안1b: 화이트+Pretendard+앰버 본문 섹션
   ============================================================ */
.hm {
  --hm-amber:       #b9692f;
  --hm-amber-soft:  #c98443;
  --hm-amber-deep:  #a85f28;
  --hm-gold:        #cda35a;
  --hm-gold-btn:    #b8893f;
  --hm-ink:         #1c180f;
  --hm-ink-soft:    #211d18;
  --hm-body:        #6c6457;
  --hm-white:       #ffffff;
  --hm-warm:        #faf7f2;
  --hm-line:        #f0ece5;
  margin-top: -36px;
  margin-bottom: -56px;
}

/* 컨테이너 밖으로 빠져나가는 풀블리드 섹션 */
.hm-bleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}
body:has(.hm) { overflow-x: hidden; }

.hm-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 44px;
}

/* ---------- Hero (시안1a: 다크 슬라이드) ---------- */
.hm-hero {
  position: relative;
  height: min(640px, 82vh);
  min-height: 480px;
  overflow: hidden;
  background: #14110e;
  border-radius: 0 0 24px 24px;
}
.hm-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hm-hero-bg.is-active { opacity: 1; }
.hm-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(13,10,8,.86) 0%, rgba(13,10,8,.6) 42%, rgba(13,10,8,.28) 78%, rgba(13,10,8,.4) 100%);
}
.hm-hero-inner {
  position: relative;
  z-index: 5;
  max-width: 1180px;
  height: 100%;
  margin: 0 auto;
  padding: 0 44px;
  display: flex;
  align-items: center;
}
.hm-slide {
  position: absolute;
  max-width: 640px;
  opacity: 0;
  transition: opacity 1s ease;
  pointer-events: none;
}
.hm-slide.is-active { opacity: 1; pointer-events: auto; }
.hm-eyebrow {
  font-size: 13px;
  letter-spacing: 4px;
  color: var(--hm-gold);
  font-weight: 600;
  margin: 0 0 22px;
}
.hm-slide h1 {
  font-family: 'Noto Serif KR', serif;
  font-size: clamp(30px, 4.2vw, 54px);
  line-height: 1.32;
  font-weight: 600;
  color: #fbf6ec;
  margin: 0 0 22px;
  text-wrap: balance;
}
.hm-slide-lead {
  font-size: 18px;
  color: #ddd2c0;
  line-height: 1.7;
  margin: 0 0 32px;
  font-weight: 300;
}
.hm-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  background: var(--hm-gold-btn);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  border-radius: 4px;
  text-decoration: none;
  transition: background .25s ease, transform .25s ease;
}
.hm-cta:hover { background: #a1762f; color: #fff; text-decoration: none; transform: translateY(-2px); }

.hm-hero-dots {
  position: absolute;
  bottom: 36px;
  left: 0;
  right: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.hm-hero-dots button {
  width: 22px;
  height: 6px;
  border: none;
  border-radius: 3px;
  background: var(--hm-gold);
  opacity: .35;
  cursor: pointer;
  transition: all .4s ease;
  padding: 0;
}
.hm-hero-dots button.is-active { width: 44px; opacity: 1; }
.hm-hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.04);
  color: #fff;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: background .25s ease;
}
.hm-hero-arrow:hover { background: rgba(255,255,255,.14); }
.hm-hero-arrow.is-prev { left: 30px; }
.hm-hero-arrow.is-next { right: 30px; }

/* ---------- 공통 섹션 (시안1b: 밝고 현대적) ---------- */
.hm-sec { padding: 80px 0; }
.hm-sec.is-white { background: var(--hm-white); }
.hm-sec.is-warm { background: var(--hm-warm); }

.hm-sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 34px;
  flex-wrap: wrap;
  gap: 12px;
}
.hm-sec-head.is-center { justify-content: center; text-align: center; margin-bottom: 40px; }
.hm-sec-head h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--hm-ink);
  margin: 0;
  letter-spacing: -.5px;
}
.hm-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--hm-amber);
  font-weight: 700;
  margin: 0 0 10px;
  letter-spacing: .5px;
}
.hm-dash {
  width: 18px;
  height: 2px;
  background: var(--hm-amber);
  display: inline-block;
}
.hm-more {
  font-size: 14px;
  color: var(--hm-amber);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.hm-more:hover { color: var(--hm-amber-deep); text-decoration: none; }
.hm-desc {
  font-size: 16px;
  color: var(--hm-body);
  line-height: 1.8;
  margin: 0 0 28px;
}
.hm-empty { color: var(--hm-body); padding: 14px 0; }

/* ---------- 공개강좌 (YouTube 카드) ---------- */
.hm-video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px -24px rgba(0,0,0,.4);
  background: #14110e;
}
.hm-video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.hm-video {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(120% 120% at 20% 0%, rgba(201,132,67,.35), transparent 55%),
    linear-gradient(135deg, #2a2018 0%, #3a2c1e 55%, #211d18 100%);
  background-size: cover;
  background-position: center;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px -24px rgba(0,0,0,.4);
  text-decoration: none;
}
.hm-video:hover { text-decoration: none; }
.hm-video-shade { position: absolute; inset: 0; background: rgba(10,8,6,.35); }
.hm-video-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
}
.hm-video-play {
  width: 74px;
  height: 74px;
  background: #e0241a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 26px;
  padding-left: 6px;
  box-shadow: 0 10px 30px rgba(224,36,26,.45);
  transition: transform .3s ease;
}
.hm-video:hover .hm-video-play { transform: scale(1.08); }
.hm-video-title {
  color: #fff;
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 800;
  letter-spacing: -.3px;
  text-align: center;
  padding: 0 20px;
}
.hm-video-sub { color: #e8ddcb; font-size: 14px; font-weight: 500; }
.hm-video-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(0,0,0,.5);
  padding: 6px 12px;
  border-radius: 6px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.hm-video-badge em { color: #e0241a; font-style: normal; font-size: 13px; }

/* ---------- 성서마당 ---------- */
.hm-journal {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 60px;
  align-items: center;
}
.hm-journal-cover {
  aspect-ratio: 3 / 4;
  background: linear-gradient(160deg, var(--hm-amber-soft), var(--hm-amber-deep));
  border-radius: 14px;
  box-shadow: 0 26px 50px -20px rgba(168,95,40,.5);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px 28px;
  color: #fff;
}
.hm-journal-tag {
  font-size: 12px;
  letter-spacing: 2px;
  font-weight: 700;
  opacity: .9;
  display: block;
}
.hm-journal-rule {
  width: 30px;
  height: 3px;
  background: #fff;
  margin: 14px 0;
  border-radius: 2px;
  opacity: .8;
  display: block;
}
.hm-journal-cover strong {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.35;
  word-break: keep-all;
}
.hm-journal-no { font-size: 12px; opacity: .85; }

.hm-pills { display: flex; gap: 12px; flex-wrap: wrap; }
.hm-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  background: #fff;
  border: 1px solid #e7ddce;
  color: #3d362d;
  font-weight: 600;
  font-size: 15px;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.hm-pill:hover { transform: translateY(-2px); text-decoration: none; color: #3d362d; box-shadow: 0 8px 20px -10px rgba(0,0,0,.25); }
.hm-pill.is-solid { background: var(--hm-amber); border-color: var(--hm-amber); color: #fff; font-weight: 700; }
.hm-pill.is-solid:hover { color: #fff; background: var(--hm-amber-deep); }

/* ---------- 신학마당 / 성서광장 (2단 카드) ---------- */
.hm-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.hm-duo-card {
  display: block;
  border-radius: 18px;
  padding: 42px 38px;
  text-decoration: none;
  transition: transform .35s ease, box-shadow .35s ease;
}
.hm-duo-card:hover { transform: translateY(-6px); text-decoration: none; box-shadow: 0 24px 48px -24px rgba(0,0,0,.35); }
.hm-duo-card.is-light {
  background: linear-gradient(150deg, #fbf0e6, #fff);
  border: 1px solid #f0e2d2;
}
.hm-duo-card.is-dark { background: var(--hm-ink-soft); color: #fff; }
.hm-duo-icon {
  width: 48px;
  height: 48px;
  background: var(--hm-amber);
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  margin-bottom: 20px;
}
.hm-duo-card.is-dark .hm-duo-icon { background: var(--hm-amber-soft); }
.hm-duo-card h3 {
  font-size: 23px;
  font-weight: 800;
  margin: 0 0 12px;
  color: var(--hm-ink);
}
.hm-duo-card.is-dark h3 { color: #fff; }
.hm-duo-card p {
  font-size: 15px;
  color: var(--hm-body);
  line-height: 1.7;
  margin: 0 0 22px;
}
.hm-duo-card.is-dark p { color: #c4baa9; }
.hm-duo-more { font-size: 14px; color: var(--hm-amber); font-weight: 700; }
.hm-duo-card.is-dark .hm-duo-more { color: #e0a567; }

/* ---------- 출간도서 ---------- */
.hm-books {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.hm-book {
  display: block;
  text-decoration: none;
  transition: transform .35s ease;
}
.hm-book:hover { transform: translateY(-8px); text-decoration: none; }
.hm-book-cover {
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
}
/* 실제 표지 이미지가 있을 때 — 자리표시자 대신 사진을 쓴다 */
.hm-book-cover.is-photo {
  padding: 0;
  overflow: hidden;
  background: var(--hm-warm, #f5ede0);
  box-shadow: 0 22px 44px -22px rgba(44, 26, 14, .45);
}
.hm-book-cover.is-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.hm-book-brand { font-size: 11px; letter-spacing: 1.5px; font-weight: 600; opacity: .9; }
.hm-book-cover strong {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.35;
  word-break: keep-all;
}
.hm-book-cat { font-size: 12px; opacity: .85; }
.hm-book-name {
  display: block;
  margin-top: 16px;
  font-size: 17px;
  font-weight: 800;
  color: var(--hm-ink);
}
.hm-book-meta { display: block; font-size: 13px; color: #8a8073; margin-top: 3px; }

/* ---------- 성서광장 리스트 카드 ---------- */
.hm-plaza-card {
  background: var(--hm-warm);
  border: 1px solid var(--hm-line);
  border-radius: 18px;
  padding: 34px 32px;
}
.hm-plaza-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}
.hm-plaza-head h3 {
  font-size: 21px;
  font-weight: 800;
  color: var(--hm-ink);
  margin: 0;
}
.hm-plaza-list li { border-bottom: 1px solid var(--hm-line); }
.hm-plaza-list li:last-child { border-bottom: none; }
.hm-plaza-list a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 2px;
  color: var(--hm-ink);
  text-decoration: none;
  transition: color .15s ease;
}
.hm-plaza-list a:hover { color: var(--hm-amber); text-decoration: none; }
.hm-plaza-title {
  font-size: 15px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hm-plaza-date { font-size: 12.5px; color: #a29a8b; white-space: nowrap; }

/* ---------- 플로팅 버튼 (AI 서비스 · 후원안내) ---------- */
.hm-float {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 11px;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.hm-float:active { cursor: grabbing; }
.hm-fbtn {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 20px;
  border: none;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease;
}
.hm-fbtn:hover { transform: translateY(-3px); text-decoration: none; }
.hm-fbtn.is-ai {
  background: var(--hm-ink-soft);
  color: #fff;
  box-shadow: 0 12px 26px -8px rgba(0,0,0,.5);
}
.hm-fbtn.is-ai:hover { color: #fff; }
.hm-fbtn-icon {
  width: 24px;
  height: 24px;
  background: var(--hm-amber);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #fff;
}
.hm-fbtn.is-donate {
  background: var(--hm-amber);
  color: #fff;
  box-shadow: 0 12px 26px -8px rgba(185,105,47,.5);
}
.hm-fbtn.is-donate:hover { color: #fff; }

/* ---------- 반응형 ---------- */
@media (max-width: 900px) {
  .hm-wrap { padding: 0 24px; }
  .hm-hero-inner { padding: 0 24px; }
  .hm-sec { padding: 56px 0; }
  .hm-journal { grid-template-columns: 1fr; gap: 36px; }
  .hm-journal-cover { max-width: 280px; }
  .hm-duo { grid-template-columns: 1fr; }
  .hm-books { grid-template-columns: 1fr 1fr; }
  .hm-hero-arrow { display: none; }
}
@media (max-width: 600px) {
  .hm { margin-top: -36px; }
  .hm-hero { min-height: 420px; height: 70vh; }
  .hm-slide-lead { font-size: 15.5px; }
  .hm-sec-head h2 { font-size: 26px; }
  .hm-books { grid-template-columns: 1fr; }
  .hm-duo-card { padding: 32px 26px; }
  .hm-plaza-card { padding: 26px 20px; }
  .hm-float { right: 14px; bottom: 14px; }
}

/* ============================================================
   자료실 (Resources) — 앱/도구 카드
   ============================================================ */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}
.resource-card {
  display: flex;
  flex-direction: column;
  padding: 26px 24px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px -20px rgba(0,0,0,.35);
  text-decoration: none;
  color: var(--text);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.resource-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 20px 44px -20px rgba(30,58,95,.32);
  text-decoration: none;
  color: var(--text);
}
.resource-tag {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--gold);
  background: rgba(154,110,58,.1);
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}
.resource-name {
  margin: 0 0 10px;
  font-size: 1.28rem;
  line-height: 1.35;
  color: var(--header-bg);
}
.resource-desc {
  margin: 0 0 22px;
  font-size: .95rem;
  line-height: 1.65;
  color: var(--text-muted);
  flex: 1 1 auto;
}
.resource-go {
  align-self: flex-start;
  font-weight: 600;
  font-size: .92rem;
  color: var(--accent);
}
.resource-card:hover .resource-go { color: var(--accent-hover); }

@media (max-width: 900px) {
  .resource-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .resource-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   BOOKS v2 — 출간도서 (2026-08-11)
   기존 사이트 구성을 따르되 사이트 디자인 토큰에 맞춤.
   접두사 .bk- 로 기존 스타일과 충돌을 피한다.
   ============================================================ */

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ── 페이지 헤더 ───────────────────────────────── */
.bk-hero {
  background: linear-gradient(135deg, #2c1a0e 0%, #46301d 55%, #2c1a0e 100%);
  color: #fff;
  padding: 76px 0 60px;
  margin-bottom: 44px;
}
.bk-hero-inner { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.bk-hero h1 {
  margin: 0 0 14px;
  font-family: 'Noto Serif KR', serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.bk-breadcrumb { display: flex; align-items: center; gap: 10px; font-size: 0.875rem; color: rgba(255,255,255,0.62); }
.bk-breadcrumb a { color: rgba(255,255,255,0.78); text-decoration: none; }
.bk-breadcrumb a:hover { color: #fff; }

/* ── 카테고리 탭 ───────────────────────────────── */
.bk-tabs {
  max-width: 1120px;
  margin: 0 auto 28px;
  padding: 0 24px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  border-bottom: 1px solid var(--border);
}
.bk-tab {
  padding: 12px 22px;
  font-size: 0.95rem;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .15s ease, border-color .15s ease;
}
.bk-tab:hover { color: var(--text); }
.bk-tab.is-active { color: var(--gold); border-bottom-color: var(--gold); font-weight: 600; }

/* ── 검색 ─────────────────────────────────────── */
.bk-search {
  max-width: 1120px;
  margin: 0 auto 40px;
  padding: 0 24px;
  display: flex;
  gap: 8px;
}
.bk-search input[type="text"] {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.bk-search input[type="text"]:focus { outline: 2px solid var(--gold-light); border-color: var(--gold); }
.bk-btn {
  flex: 0 0 auto;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-family: inherit;
  font-weight: 600;
  color: #fff;
  background: var(--gold);
  border: 1px solid var(--gold);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.bk-btn:hover { filter: brightness(0.94); }
.bk-btn-ghost { color: var(--text-muted); background: #fff; border-color: var(--border); }
.bk-btn-ghost:hover { color: var(--text); background: var(--bg-muted); }

/* ── 표지 그리드 ───────────────────────────────── */
.bk-grid {
  max-width: 1120px;
  margin: 0 auto 72px;
  padding: 0 24px;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px 28px;
}
.bk-card a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
}
.bk-cover {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4.3;
  background: var(--bg-muted);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.bk-card a:hover .bk-cover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.bk-cover img { width: 100%; height: 100%; object-fit: contain; display: block; }
.bk-cover-empty {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; color: var(--text-light);
}
.bk-soldout {
  position: absolute; top: 8px; left: 8px;
  padding: 3px 9px;
  font-size: 0.72rem; font-weight: 600;
  color: #fff; background: rgba(44, 26, 14, 0.78);
  border-radius: var(--radius-pill);
}
.bk-title {
  margin-top: 14px;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.45;
  text-align: center;
  color: var(--text);
}
.bk-card a:hover .bk-title { color: var(--gold); }
.bk-author { margin-top: 4px; font-size: 0.82rem; color: var(--text-light); text-align: center; }

.bk-empty {
  max-width: 1120px;
  margin: 0 auto 80px;
  padding: 60px 24px;
  text-align: center;
  color: var(--text-muted);
}

/* ── 상세 ─────────────────────────────────────── */
.bk-detail { max-width: 1000px; margin: 0 auto 80px; padding: 0 24px; }
.bk-detail-top {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 56px;
  align-items: start;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--border);
}
.bk-detail-cover {
  position: relative;
  aspect-ratio: 3 / 4.3;
  background: var(--bg-muted);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.bk-detail-cover img { width: 100%; height: 100%; object-fit: contain; display: block; }

.bk-detail-title {
  margin: 4px 0 6px;
  font-family: 'Noto Serif KR', serif;
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
}
.bk-detail-subtitle { margin: 0 0 26px; font-size: 1rem; color: var(--text-muted); }

.bk-spec { margin: 0 0 28px; font-size: 0.92rem; }
.bk-spec > div { display: flex; gap: 10px; padding: 5px 0; }
.bk-spec dt { flex: 0 0 62px; color: var(--text-light); }
.bk-spec dd { margin: 0; color: var(--text); font-weight: 500; }

.bk-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.bk-buy {
  display: inline-flex;
  align-items: center;
  padding: 12px 34px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  background: var(--header-bg);
  border: 1px solid var(--header-bg);
  border-radius: var(--radius-pill);
  text-decoration: none;
}
.bk-buy:hover { filter: brightness(1.25); }
.bk-buy.is-disabled { background: var(--bg-muted); border-color: var(--border); color: var(--text-light); cursor: default; }
.bk-buy-ghost { color: var(--text); background: #fff; border-color: var(--border); }
.bk-buy-ghost:hover { background: var(--bg-muted); filter: none; }

.bk-inquiry { margin: 16px 0 0; font-size: 0.88rem; color: var(--text-muted); }

.bk-summary {
  margin: 40px 0 0;
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--text);
}
.bk-body { margin-top: 24px; font-size: 1rem; line-height: 1.9; color: var(--text); }
.bk-body img { max-width: 100%; height: auto; }
.bk-body p { margin: 0 0 1.1em; }

.bk-detail-foot { margin-top: 52px; display: flex; justify-content: center; }

/* ── 관리자 폼 보조 ────────────────────────────── */
.field-hint { font-weight: 400; font-size: 0.82rem; color: var(--text-light); }
.cover-preview { display: flex; gap: 14px; align-items: flex-start; margin: 10px 0 4px; }
.cover-preview img {
  width: 90px; height: auto; border-radius: 4px;
  border: 1px solid var(--border); background: #fff;
}
.cover-preview p { margin: 0 0 3px; font-size: 0.85rem; }

/* ── 반응형 ───────────────────────────────────── */
@media (max-width: 900px) {
  .bk-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 20px; }
  .bk-detail-top { grid-template-columns: 220px 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .bk-hero { padding: 52px 0 40px; margin-bottom: 32px; }
  .bk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
  .bk-detail-top { grid-template-columns: 1fr; gap: 28px; }
  .bk-detail-cover { max-width: 240px; margin: 0 auto; }
  .bk-detail-title { font-size: 1.35rem; }
  .bk-actions { justify-content: stretch; }
  .bk-buy { flex: 1; justify-content: center; }
}

/* ============================================================
   PAGINATION (2026-08-11)
   ============================================================ */
.pager {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin: 44px auto 8px;
  padding: 0 24px;
}
.pager-btn,
.pager-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.pager-num { padding: 0; }
.pager-btn:hover,
.pager-num:hover { background: var(--bg-muted); color: var(--text); }
.pager-num.is-current {
  color: #fff;
  background: var(--gold);
  border-color: var(--gold);
  font-weight: 600;
}
.pager-btn.is-disabled { color: var(--text-light); background: var(--bg-muted); cursor: default; opacity: .55; }
.pager-gap { padding: 0 4px; color: var(--text-light); }
.pager-summary {
  margin: 0 auto 56px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-light);
}

@media (max-width: 640px) {
  .pager-btn, .pager-num { min-width: 34px; height: 34px; font-size: 0.85rem; padding: 0 9px; }
  .pager-btn[aria-label] { display: none; }   /* 모바일에서는 «» 숨김 */
}

/* ============================================================
   POLICY — 이용약관 · 개인정보보호정책 (2026-08-11)
   법령 문구는 원문 구조를 그대로 살려 읽기 좋게만 다듬는다.
   ============================================================ */
.policy-doc {
  max-width: 860px;
  margin: 0 auto 80px;
  padding: 0 24px;
  font-size: 0.95rem;
  line-height: 1.95;
  color: var(--text);
}
.policy-doc h1,
.policy-doc h2,
.policy-doc h3,
.policy-doc h4 {
  margin: 2.2em 0 0.8em;
  font-family: 'Noto Serif KR', serif;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text);
}
.policy-doc h1 { font-size: 1.35rem; }
.policy-doc h2 { font-size: 1.15rem; }
.policy-doc h3,
.policy-doc h4 { font-size: 1.02rem; }
.policy-doc h1:first-child,
.policy-doc h2:first-child { margin-top: 0; }

.policy-doc p { margin: 0 0 1.1em; }
.policy-doc ul,
.policy-doc ol { margin: 0 0 1.3em; padding-left: 1.5em; }
.policy-doc li { margin-bottom: 0.4em; }
.policy-doc strong { font-weight: 600; }
.policy-doc a { color: var(--gold); }

.policy-doc table {
  width: 100%;
  margin: 1.2em 0 1.6em;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.policy-doc th,
.policy-doc td {
  padding: 9px 12px;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.policy-doc th { background: var(--bg-muted); font-weight: 600; }

.policy-doc img { max-width: 100%; height: auto; }

.policy-updated {
  margin-top: 3em;
  padding-top: 1.2em;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-light);
}

@media (max-width: 640px) {
  .policy-doc { font-size: 0.9rem; line-height: 1.85; }
  .policy-doc table { display: block; overflow-x: auto; }
}

/* ── 성서마당 목록: 표지 썸네일 ─────────────────────── */
.jn-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.jn-thumb {
  flex: 0 0 auto;
  width: 64px;
  display: block;
  border-radius: 3px;
  overflow: hidden;
  background: var(--bg-muted);
  box-shadow: var(--shadow);
}
.jn-thumb img { width: 100%; height: auto; display: block; }
.jn-text { flex: 1 1 auto; min-width: 0; }

@media (max-width: 640px) {
  .jn-thumb { width: 48px; }
}

/* 홈 성서마당 — 실제 표지 이미지 */
.hm-journal-cover.is-photo {
  display: block;
  padding: 0;
  overflow: hidden;
  background: var(--hm-warm, #f5ede0);
  text-decoration: none;
}
.hm-journal-cover.is-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* 성서마당 목록 — 표지 썸네일이 있는 행 */
.jn-list { list-style: none; margin: 0; padding: 0; }
.jn-list .jn-row {
  align-items: center;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-faint);
}
.jn-list .jn-row:last-child { border-bottom: 0; }
.jn-thumb {
  flex: 0 0 auto;
  width: 58px;
  aspect-ratio: 3 / 4.3;
  display: block;
  border-radius: 3px;
  overflow: hidden;
  background: var(--bg-muted);
  box-shadow: var(--shadow);
}
.jn-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jn-text { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.policy-cta { margin: 2.4em 0 0; }

/* ============================================================
   SUB HERO — 서브페이지 상단 배너 (2026-08-11)
   옛 사이트 jumbotron 사진(1920x600)을 그대로 쓰되 높이만 줄였다.
   배정 규칙은 app/Support/PageHero.php 참조.
   ============================================================ */
.sub-hero {
  position: relative;
  min-height: 260px;
  display: flex;
  align-items: flex-end;
  background-color: var(--header-bg);
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
}

/* 사진이 밝아도 흰 글씨가 읽히도록 아래쪽을 어둡게 깐다. */
.sub-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(30, 18, 9, 0.30) 0%,
    rgba(30, 18, 9, 0.52) 55%,
    rgba(30, 18, 9, 0.72) 100%
  );
}

.sub-hero-inner {
  position: relative;
  z-index: 1;
  padding: 0 0 34px;
  color: #fff;
}

.sub-hero-eyebrow {
  margin: 0 0 10px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: none;
  color: rgba(255, 255, 255, 0.78);
}

.sub-hero-eyebrow::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 1px;
  margin-right: 10px;
  vertical-align: middle;
  background: var(--gold);
}

.sub-hero-title {
  margin: 0;
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.28);
}

/* 배너가 제목을 이미 보여주므로 본문 위쪽 여백을 줄인다. */
main.container.has-sub-hero { padding-top: 30px; }

@media (max-width: 720px) {
  .sub-hero { min-height: 180px; }
  .sub-hero-inner { padding-bottom: 24px; }
  .sub-hero-eyebrow { font-size: 0.72rem; margin-bottom: 7px; }
}

/* 사진 배너가 있으면 .bk-hero 의 어두운 띠는 겹치므로 빵부스러기만 남긴다. */
main.container.has-sub-hero .bk-hero {
  background: none;
  color: inherit;
  padding: 0;
  margin-bottom: 26px;
}
main.container.has-sub-hero .bk-hero-inner { max-width: none; padding: 0; }
main.container.has-sub-hero .bk-breadcrumb { color: var(--text-light); }
main.container.has-sub-hero .bk-breadcrumb a { color: var(--text-muted); }
main.container.has-sub-hero .bk-breadcrumb a:hover { color: var(--accent); }

/* 배너에 이미 메뉴 이름이 찍히므로 본문 상단의 영문 eyebrow 는 겹친다. */
main.container.has-sub-hero > .page-hero > .eyebrow,
main.container.has-sub-hero > .page-hero > .eyebrow + .hero-copy { margin-top: 0; }
main.container.has-sub-hero > .page-hero > .eyebrow { display: none; }

/* eyebrow 와 h1 이 모두 빠져 설명문만 남은 카드는 여백을 줄인다. */
main.container.has-sub-hero > .page-hero { padding: 20px 24px; }

/* ============================================================
   ABOUT — 연구소 안내 (2026-08-11 문서 반영)
   ============================================================ */

/* 인사말 소장님 사진 — 본문을 감싸 흐르게 한다. */
.about-portrait {
  float: left;
  margin: 4px 26px 16px 0;
  text-align: center;
}
.about-portrait img {
  display: block;
  width: 176px;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.about-portrait figcaption {
  margin-top: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}
.legacy-richtext.has-portrait::after { content: ""; display: block; clear: both; }

@media (max-width: 620px) {
  .about-portrait { float: none; margin: 0 auto 20px; }
}

/* 정의형 목록 — 주요 영역 / 오시는 길 */
.about-deflist,
.about-roster {
  margin: 18px 0 28px;
  padding: 20px 22px;
  background: var(--bg-subtle);
  border-radius: var(--radius);
  border: 1px solid var(--border-faint);
}
.about-deflist dt,
.about-roster dt {
  font-weight: 700;
  color: var(--accent);
}
.about-deflist dd,
.about-roster dd {
  margin: 4px 0 14px;
  color: var(--text);
  line-height: 1.7;
}
.about-deflist dd:last-of-type,
.about-roster dd:last-of-type { margin-bottom: 0; }

/* 넓은 화면에서는 직함과 이름을 두 칸으로 */
@media (min-width: 720px) {
  .about-deflist,
  .about-roster {
    display: grid;
    grid-template-columns: 128px 1fr;
    column-gap: 20px;
    row-gap: 12px;
    align-items: baseline;
  }
  .about-deflist dd,
  .about-roster dd { margin: 0; }
  .about-roster { grid-template-columns: 108px 1fr; }
}

/* 유튜브 · 지도 */
.about-video,
.about-map { margin-top: 36px; }
.about-video h3,
.about-map h3 {
  margin: 0 0 14px;
  font-size: 1.05rem;
  color: var(--text);
}
.about-video-frame,
.about-map-frame {
  position: relative;
  padding-top: 56.25%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--bg-muted);
}
.about-map-frame { padding-top: 62%; }
.about-video-frame iframe,
.about-map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.about-map-links {
  display: flex;
  gap: 18px;
  margin: 14px 0 0;
  font-size: 0.9rem;
}
