.site-header { position: sticky; z-index: 100; top: 0; height: var(--header-h); background: rgba(255,248,241,.90); border-bottom: 1px solid transparent; backdrop-filter: blur(18px); transition: border-color .2s, box-shadow .2s; }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 5px 20px rgba(74,36,24,.06); }
.header-inner { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; width: var(--wide); height: 100%; margin: auto; }
.brand { display: inline-flex; align-items: center; gap: 9px; width: fit-content; font-weight: 850; letter-spacing: -.045em; }
.brand img { width: 42px; height: 42px; object-fit: contain; }
.brand-name { font-size: 17px; line-height: 1.1; }
.nav-list { display: flex; gap: clamp(14px, 2vw, 31px); align-items: center; padding: 0; margin: 0; list-style: none; }
.nav-link { position: relative; padding: 8px 0; font-size: 15px; font-weight: 760; letter-spacing: -.025em; white-space: nowrap; }
.nav-link::after { position: absolute; right: 0; bottom: 3px; left: 0; height: 2px; content: ""; border-radius: 2px; background: var(--primary); transform: scaleX(0); transition: transform .18s ease; }
.nav-link.active::after, .nav-link:hover::after { transform: scaleX(1); }
.header-actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.manage-link { padding: 9px 14px; border: 1px solid var(--ink); border-radius: 99px; font-size: 14px; font-weight: 750; line-height: 1; }
.mobile-menu-button { display: none; justify-self: end; padding: 8px; border: 0; background: transparent; }
.mobile-drawer { display: none; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 11px 18px; border: 1px solid transparent; border-radius: 99px; background: var(--primary); color: #fff; cursor: pointer; font-size: 16px; font-weight: 780; line-height: 1.2; transition: transform .16s, box-shadow .16s, background .16s; }
.button:hover { box-shadow: 0 8px 18px rgba(240,100,110,.25); transform: translateY(-2px); }
.button-dark { background: var(--cta); }
.button-dark:hover { box-shadow: 0 8px 18px rgba(74,36,24,.22); }
.button-light { border-color: var(--line); background: var(--paper); color: var(--ink); }
.button-light:hover { box-shadow: var(--shadow-soft); }
.button-small { min-height: 38px; padding: 8px 13px; font-size: 14px; }
.button:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.icon-button { display: inline-grid; width: 42px; height: 42px; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); cursor: pointer; }

.section { padding: 104px 0; }
.section-soft { background: var(--soft); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.eyebrow { margin: 0 0 9px; color: var(--primary-dark); font-family: var(--font-deco); font-size: 19px; font-weight: 700; }
.section-title { max-width: 760px; margin: 0; font-size: clamp(31px, 4vw, 52px); font-weight: 850; letter-spacing: -.065em; line-height: 1.17; }
.section-copy { max-width: 585px; margin: 14px 0 0; color: var(--muted); letter-spacing: -.025em; }
.section-more { flex: none; color: var(--primary-dark); font-size: 15px; font-weight: 780; }

.card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--paper); box-shadow: var(--shadow-soft); }
.tag { display: inline-flex; align-items: center; min-height: 28px; padding: 5px 10px; border-radius: 99px; background: #fff0d4; color: #7e511d; font-size: 13px; font-weight: 750; line-height: 1; }
.tag-cat { background: #fde1e6; color: #a1425b; }
.tag-green { background: #e8f1e7; color: #4e794d; }
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; padding: 12px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,253,249,.85); box-shadow: var(--shadow-soft); }
.filter-bar input, .filter-bar select { min-height: 43px; padding: 0 13px; border: 1px solid var(--line); border-radius: 11px; outline: none; background: #fff; color: var(--ink); font-size: 15px; }
.filter-bar input { min-width: min(100%, 235px); flex: 1; }
.filter-bar select { min-width: 130px; }
.form-label { display: grid; gap: 7px; color: var(--ink); font-size: 14px; font-weight: 750; }
.field, .select, .textarea { width: 100%; min-height: 46px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 11px; outline: none; background: #fff; color: var(--ink); }
.textarea { min-height: 110px; resize: vertical; }
.field:focus, .select:focus, .textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(240,100,110,.12); }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); box-shadow: var(--shadow-soft); }
.stat { position: relative; padding: 30px 26px; text-align: center; }
.stat + .stat::before { position: absolute; top: 23%; bottom: 23%; left: 0; width: 1px; content: ""; background: var(--line); }
.stat-value { display: block; color: var(--primary-dark); font-size: clamp(31px, 4vw, 50px); font-weight: 900; letter-spacing: -.07em; line-height: 1.08; }
.stat-label { display: block; margin-top: 8px; color: var(--muted); font-size: 15px; font-weight: 650; }

.site-footer { padding: 48px 0; border-top: 1px solid var(--line); background: #fff4eb; }
.footer-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; width: var(--wide); margin: auto; }
.footer-brand { display: flex; align-items: center; gap: 9px; font-size: 17px; font-weight: 850; }
.footer-brand img { width: 38px; height: 38px; object-fit: contain; }
.footer-copy { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; color: var(--muted); font-size: 14px; }
.toast-container { position: fixed; z-index: 1000; right: 20px; bottom: 20px; display: grid; gap: 9px; max-width: min(390px, calc(100% - 40px)); }
.toast { padding: 13px 16px; border-radius: 14px; background: var(--ink); color: #fff; box-shadow: var(--shadow); font-size: 14px; animation: toast-in .2s ease; }
.toast.error { background: #9f3646; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }

.dialog-backdrop { position: fixed; z-index: 900; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(59,34,25,.4); }
.dialog { position: relative; width: min(560px, 100%); max-height: min(720px, calc(100vh - 40px)); overflow: auto; padding: 30px; border-radius: var(--radius-md); background: var(--paper); box-shadow: var(--shadow); }
.dialog-close { position: absolute; top: 16px; right: 16px; }
.helpmap-pin-wrap { background: transparent; border: 0; }
.helpmap-pin { position: relative; display: grid; width: 34px; height: 34px; place-items: center; border: 3px solid var(--cta); border-radius: 50% 50% 50% 4px; background: var(--dog); box-shadow: 0 4px 10px rgba(74,36,24,.24); transform: rotate(-45deg); transition: transform .15s, background .15s; }
.helpmap-pin.cat { background: var(--cat); }.helpmap-pin.selected { background: var(--primary); transform: rotate(-45deg) scale(1.18); }.helpmap-pin span { width: 9px; height: 9px; border-radius: 50%; background: var(--cta); }

@media (max-width: 860px) {
  .header-inner { grid-template-columns: 1fr auto; }
  .header-inner nav, .manage-link { display: none; }
  .mobile-menu-button { display: inline-grid; }
  .mobile-drawer { position: absolute; top: calc(100% + 7px); right: 16px; left: 16px; display: grid; gap: 4px; padding: 12px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); box-shadow: var(--shadow); }
  .mobile-drawer a { padding: 12px 13px; border-radius: 10px; font-size: 16px; font-weight: 750; }
  .mobile-drawer a.active { background: var(--soft); color: var(--primary-dark); }
  .section { padding: 74px 0; }
  .section-heading { align-items: start; flex-direction: column; gap: 13px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); border-radius: var(--radius-md); }
  .stat:nth-child(3)::before { display: none; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 540px) {
  .brand-name { font-size: 15px; }
  .brand img { width: 37px; height: 37px; }
  .section-title { font-size: 31px; }
  .filter-bar { align-items: stretch; }
  .filter-bar input, .filter-bar select { min-width: 0; width: 100%; }
  .footer-inner { align-items: start; flex-direction: column; }
}

/* Renewal polish: a light logo, a real mobile drawer, and toast elements
   that do not reserve a visible bar while empty. */
.brand { gap: 8px; }
.brand .brand-symbol { width: 43px; height: 43px; object-fit: contain; }
.brand .brand-wordmark { width: min(178px, 29vw); height: auto; object-fit: contain; }
.brand-name { display: none; }
.footer-brand .brand-symbol { width: 35px; height: 35px; }
.footer-brand .brand-wordmark { width: 142px; height: auto; }
.manage-link { padding: 4px 0; border: 0; border-radius: 0; color: var(--muted); font-size: 14px; font-weight: 400; }
.manage-link:hover { color: var(--primary-dark); }
.preview-strip { padding: 7px 16px; background: var(--cta); color: #fff; text-align: center; font-size: 14px; }
.toast-container { position: fixed; z-index: 1000; right: 20px; bottom: 20px; display: grid; gap: 9px; max-width: min(390px, calc(100% - 40px)); opacity: 0; visibility: hidden; pointer-events: none; }
.toast-container:not([hidden]) { opacity: 1; visibility: visible; pointer-events: auto; }
.toast { position: static; padding: 13px 16px; border-radius: 14px; background: var(--ink); color: #fff; box-shadow: var(--shadow); font-size: 14px; animation: toast-in .2s ease; }
.mobile-menu-scrim { position: fixed; z-index: 110; inset: 0; border: 0; background: rgba(59,34,25,.35); }
.mobile-drawer { position: fixed; z-index: 120; top: 0; right: 0; bottom: 0; left: auto; display: grid; align-content: start; gap: 6px; width: min(340px, 88vw); padding: calc(var(--header-h) + 22px) 18px 24px; border: 0; border-radius: 28px 0 0 28px; background: var(--paper); box-shadow: var(--shadow); transform: translateX(105%); transition: transform .22s ease; }
.mobile-drawer.is-open { transform: translateX(0); }
.mobile-drawer a { padding: 14px 13px; border-radius: 12px; font-family: var(--font-display); font-size: 18px; font-weight: 400; }
.mobile-drawer a.active { background: var(--soft); color: var(--primary-dark); }
body.mobile-menu-open { overflow: hidden; }

/* KCC Ganpan is a display face; forms and the whole admin remain Pretendard. */
.brand, .nav-link, .button, .tag, .filter-chip, .eyebrow, .section-title,
.site-footer h1, .site-footer h2, .site-footer h3, .stat-value, .facility-list-item h3,
.facility-detail h2, .join-card h2, .recruit-banner h2, .page-hero h1, .hero h1,
.story-copy h2, .comparison-card h2, .animal-content h3, .animal-flip-back h3,
.activity-card h3, .timeline-body h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-synthesis: none;
  letter-spacing: -.01em;
}

@media (min-width: 861px) { .mobile-menu-button, .mobile-drawer, .mobile-menu-scrim { display: none !important; } }
@media (max-width: 860px) {
  .desktop-nav { display: none; }
  .mobile-menu-button { display: inline-grid; }
  .brand-symbol { width: 39px; height: 39px; }
}
@media (max-width: 540px) { .brand-wordmark { width: 148px; } }
