/* ==========================================================================
   품으로 입양센터 — DREXLY 템플릿
   색·활자·컴포넌트는 00-디자인보드.png, 면 구성은 01-home / 02-페이지시안 / 06-mobile 을 따른다.
   기록(로그)을 신뢰의 축으로 삼는 조판 — 장식보다 표·날짜·상태를 앞에 둔다.
   ========================================================================== */

:root {
  /* 색 — 디자인보드 COLOR PALETTE */
  --sage: #8fae9b;
  --deep: #4f6f5e;
  --deep-press: #3d5849;
  --coral: #ff7a6e;
  --coral-press: #ea6153;
  --paper: #f7f2ea;
  --ink: #2b2b2b;

  /* 파생 */
  --paper-2: #efe8dd;
  --paper-3: #e7dece;
  --surface: #fffdf8;
  --sage-tint: #e6ede7;
  --sage-wash: rgba(143, 174, 155, 0.12);
  --coral-tint: #ffe9e5;
  --ink-2: #5b5850;
  --muted: #8b857a;
  --line: rgba(43, 43, 43, 0.13);
  --line-soft: rgba(43, 43, 43, 0.07);
  --warn: #b4622a;
  --warn-tint: #fdf0e3;

  /* 활자 — 디자인보드 TYPOGRAPHY (Pretendard Variable 단일 가족) */
  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    system-ui, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --latin: "Montserrat", "Pretendard Variable", Pretendard, system-ui, sans-serif;

  /* 조판 */
  --wrap: 1180px;
  --gutter: 32px;
  --section: 104px;
  --r: 12px;
  --r-lg: 20px;
  --r-pill: 999px;
  --shadow: 0 1px 2px rgba(43, 43, 43, 0.04), 0 10px 30px rgba(43, 43, 43, 0.06);
  --shadow-sm: 0 1px 2px rgba(43, 43, 43, 0.05), 0 4px 14px rgba(43, 43, 43, 0.045);
  --ease: cubic-bezier(0.22, 0.7, 0.28, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: -0.006em;
  /* 한국어는 어절 단위로 끊는다 — 「2층」·「9마리」가 갈라지지 않게 */
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  background-color: var(--paper);
  /* 따뜻한 종이 질감 — 아주 옅은 괘선 */
  background-image: repeating-linear-gradient(0deg, rgba(43, 43, 43, 0.016) 0 1px, transparent 1px 5px);
}

img { max-width: 100%; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.022em; line-height: 1.4; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--deep); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 200;
  padding: 12px 20px; background: var(--deep); color: #fff; border-radius: var(--r);
}
.skip:focus { left: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.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;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ico-sm { width: 16px; height: 16px; stroke-width: 1.6; }
.ico-lg { width: 28px; height: 28px; stroke-width: 1.3; }

/* ------------------------------------------------------------ 활자 부품 */
.eyebrow {
  display: inline-block; font-family: var(--latin); font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--deep);
}
.display {
  font-size: clamp(30px, 4.6vw, 40px); line-height: 1.42; font-weight: 600; letter-spacing: -0.03em;
}
.h2 { font-size: clamp(25px, 3.2vw, 32px); line-height: 1.38; font-weight: 600; letter-spacing: -0.028em; }
.h3 { font-size: 21px; line-height: 1.42; font-weight: 500; }
.lead { color: var(--ink-2); font-size: 16.5px; line-height: 1.85; }
.caption { font-size: 13px; line-height: 1.55; color: var(--muted); }
.mono-n { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

.section { padding-block: calc(var(--section) / 2); position: relative; }
.section-first { padding-top: calc(var(--section) * 0.62); }
.section-last { padding-bottom: var(--section); }
.section-paper { background: var(--paper-2); }
.section-sage { background: var(--sage-tint); }

.sec-head { max-width: 720px; margin-bottom: 40px; }
.sec-head .eyebrow { margin-bottom: 12px; }
.sec-head .h2 + p { margin-top: 14px; color: var(--ink-2); }
.with-rule::before {
  content: ""; display: block; width: 44px; height: 2px; background: var(--sage); margin-bottom: 20px;
}
.sec-head.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.sec-head.head-row > div { max-width: 720px; }
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* ------------------------------------------------------------ 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: var(--r);
  border: 1px solid var(--btn-bd, transparent); background: var(--btn-bg, transparent); color: var(--btn-fg, var(--ink));
  font-size: 15px; font-weight: 500; cursor: pointer;
  transition: background 0.24s var(--ease), border-color 0.24s var(--ease), color 0.24s var(--ease), transform 0.18s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-coral { --btn-bg: var(--coral); --btn-fg: #fff; --btn-bd: var(--coral); font-weight: 600; }
.btn-coral:hover { --btn-bg: var(--coral-press); --btn-bd: var(--coral-press); }
.btn-line { --btn-bg: var(--surface); --btn-fg: var(--ink); --btn-bd: var(--line); }
.btn-line:hover { --btn-bd: var(--deep); --btn-fg: var(--deep); }
.btn-deep { --btn-bg: var(--deep); --btn-fg: #fff; --btn-bd: var(--deep); }
.btn-deep:hover { --btn-bg: var(--deep-press); --btn-bd: var(--deep-press); }
.btn-on-deep { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, 0.55); }
.btn-on-deep:hover { --btn-bg: #fff; --btn-fg: var(--deep); --btn-bd: #fff; }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[aria-disabled="true"] { opacity: 0.55; pointer-events: none; }
.btn-text {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-size: 14.5px; font-weight: 500; color: var(--deep);
  border-bottom: 1px solid transparent; transition: gap 0.24s var(--ease), border-color 0.24s var(--ease);
}
.btn-text:hover { gap: 12px; border-bottom-color: var(--sage); }

.heart {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; background: var(--surface);
  border: 1px solid var(--line); cursor: pointer; color: var(--muted);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.heart:hover { color: var(--coral); border-color: var(--coral); }
.heart[aria-pressed="true"] { color: #fff; background: var(--coral); border-color: var(--coral); }
.heart[aria-pressed="true"] .ico { fill: currentColor; }

/* ------------------------------------------------------------ 헤더 */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(247, 242, 234, 0.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--line-soft); background: rgba(247, 242, 234, 0.97); }
.nav { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px; background: var(--sage-tint);
  display: inline-flex; align-items: center; justify-content: center; color: var(--deep);
}
.brand-mark .ico { width: 22px; height: 22px; }
.brand-name { font-size: 18.5px; font-weight: 600; letter-spacing: -0.03em; }
.navlinks { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.navlinks a { position: relative; font-size: 15px; color: var(--ink-2); padding: 6px 0; }
.navlinks a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--sage); transform: scaleX(0); transform-origin: left; transition: transform 0.28s var(--ease);
}
.navlinks a:hover { color: var(--ink); }
.navlinks a:hover::after, .navlinks a[aria-current="page"]::after { transform: scaleX(1); }
.navlinks a[aria-current="page"] { color: var(--deep); font-weight: 600; }
.nav-actions { display: flex; align-items: center; gap: 12px; flex: none; }
.menu-btn {
  display: none; width: 46px; height: 46px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--line); cursor: pointer; align-items: center; justify-content: center;
}

.scrim {
  position: fixed; inset: 0; z-index: 95; background: rgba(43, 43, 43, 0.42);
  opacity: 0; visibility: hidden; transition: opacity 0.32s var(--ease), visibility 0.32s;
}
.scrim.open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 100; width: min(340px, 88vw);
  background: var(--paper); padding: 22px 24px 32px; overflow-y: auto;
  transform: translateX(102%); transition: transform 0.34s var(--ease);
  box-shadow: -12px 0 40px rgba(43, 43, 43, 0.12);
}
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.drawer-close {
  width: 46px; height: 46px; border-radius: var(--r); background: var(--surface);
  border: 1px solid var(--line); cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.drawer nav { display: flex; flex-direction: column; border-top: 1px solid var(--line-soft); }
.drawer nav a {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 56px; border-bottom: 1px solid var(--line-soft); font-size: 16.5px; font-weight: 500;
}
.drawer nav a[aria-current="page"] { color: var(--deep); }
.drawer nav a .ico { color: var(--muted); }
.drawer-cta { margin-top: 24px; display: grid; gap: 10px; }
.drawer-note { margin-top: 20px; font-size: 13px; line-height: 1.7; color: var(--muted); }

/* ------------------------------------------------------------ 홈 히어로 */
.hero { padding-top: 34px; padding-bottom: 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.86fr); gap: 48px; align-items: center; }
.hero-copy { padding-block: 30px 46px; max-width: 560px; }
.hero-copy .eyebrow { margin-bottom: 18px; }
.hero-copy h1 { margin-bottom: 20px; }
.hero-copy .lead { margin-bottom: 30px; max-width: 470px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.hero-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px;
  padding-top: 20px; border-top: 1px solid var(--line-soft); font-size: 13.5px; color: var(--muted);
}
.hero-meta b { font-weight: 600; color: var(--deep); }
.hero-photo {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow); background: var(--paper-2);
}
.hero-photo img { display: block; width: 100%; height: auto; }
.hero-scroll {
  margin-top: 24px;
  display: flex; align-items: center; gap: 12px; padding-bottom: 26px;
  font-family: var(--latin); font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
}
.hero-scroll::after { content: ""; flex: 1; max-width: 120px; height: 1px; background: var(--line); }

/* ------------------------------------------------------------ 통계 띠 */
.stats { background: var(--deep); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { display: flex; align-items: center; gap: 14px; padding: 30px 20px; }
.stat + .stat { border-left: 1px solid rgba(255, 255, 255, 0.16); }
.stat .ico { color: rgba(255, 255, 255, 0.8); }
.stat b { display: block; font-size: 27px; font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; }
.stat span { font-size: 13px; color: rgba(255, 255, 255, 0.78); }

/* ------------------------------------------------------------ 오늘의 기록 (장부) */
.ledger {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 8px 28px; box-shadow: var(--shadow-sm);
}
.ledger-row {
  display: flex; align-items: baseline; gap: 14px; padding: 17px 0;
  border-bottom: 1px dashed var(--line-soft);
}
.ledger-row:last-child { border-bottom: 0; }
.ledger-row .lg-key { font-size: 15px; color: var(--ink-2); flex: none; }
.ledger-row .lg-dot { flex: 1; border-bottom: 1px dotted var(--line); transform: translateY(-4px); min-width: 20px; }
.ledger-row .lg-val { font-size: 20px; font-weight: 600; color: var(--deep); flex: none; }
.ledger-row .lg-val small { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 3px; }
.ledger-foot { margin-top: 18px; font-size: 13.5px; color: var(--muted); line-height: 1.7; }
.log-layout { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 52px; align-items: start; }

/* ------------------------------------------------------------ 적합성 자가 점검 */
.quiz {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 30px; box-shadow: var(--shadow-sm);
}
.quiz-list { display: grid; gap: 4px; }
.quiz-item {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--line-soft);
}
.quiz-item p { font-size: 15px; line-height: 1.6; }
.quiz-item .qn { font-family: var(--latin); font-size: 11px; color: var(--sage); font-weight: 600; margin-right: 8px; }
.yn { display: flex; gap: 8px; flex: none; }
.yn label {
  display: inline-flex; align-items: center; justify-content: center; min-width: 58px; height: 44px;
  padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper);
  font-size: 14px; cursor: pointer; transition: all 0.2s var(--ease);
}
.yn input { position: absolute; opacity: 0; width: 0; height: 0; }
.yn label:hover { border-color: var(--sage); }
.yn label:has(input:checked) { background: var(--deep); border-color: var(--deep); color: #fff; font-weight: 600; }
.yn label:has(input:focus-visible) { outline: 2px solid var(--deep); outline-offset: 2px; }
.meter-box { margin-top: 24px; padding: 22px; background: var(--paper-2); border-radius: var(--r); }
.meter-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.meter-top b { font-size: 15px; }
.meter-top span { font-size: 13px; color: var(--muted); }
.meter { height: 10px; border-radius: var(--r-pill); background: var(--paper-3); overflow: hidden; }
.meter i { display: block; height: 100%; width: 0%; background: var(--sage); border-radius: var(--r-pill); transition: width 0.5s var(--ease); }
.meter-msg { margin-top: 14px; font-size: 14.5px; line-height: 1.7; color: var(--ink-2); }
.quiz-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

/* ------------------------------------------------------------ 상태 배지 */
.badge {
  display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px;
  border-radius: var(--r-pill); font-size: 12.5px; font-weight: 600; letter-spacing: -0.01em;
  border: 1px solid transparent;
}
.badge .ico { width: 13px; height: 13px; stroke-width: 2; }
.badge-care { background: var(--sage-tint); color: var(--deep); border-color: rgba(79, 111, 94, 0.22); }
.badge-talk { background: var(--coral-tint); color: #c9503f; border-color: rgba(255, 122, 110, 0.4); }
.badge-cure { background: var(--warn-tint); color: var(--warn); border-color: rgba(180, 98, 42, 0.28); }
.badge-done { background: var(--paper-3); color: var(--ink-2); border-color: var(--line); }
.badge-note { background: var(--paper-2); color: var(--ink-2); border-color: var(--line-soft); font-weight: 500; }
.legend { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.legend p { font-size: 13px; color: var(--muted); }

/* ------------------------------------------------------------ 아이 카드 */
.animal-card {
  display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: box-shadow 0.28s var(--ease), transform 0.28s var(--ease);
}
.animal-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.ac-figure { position: relative; display: block; overflow: hidden; background: var(--paper-2); }
.ac-figure img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ac-figure .badge { position: absolute; left: 12px; top: 12px; background: rgba(255, 253, 248, 0.94); }
.ac-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.ac-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ac-title h3 { font-size: 19px; font-weight: 600; }
.ac-spec { font-size: 13.5px; color: var(--muted); }
.ac-line { font-size: 14.5px; color: var(--ink-2); line-height: 1.65; }
.ac-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  display: inline-flex; align-items: center; height: 25px; padding: 0 9px; border-radius: 7px;
  background: var(--paper-2); font-size: 12px; color: var(--ink-2);
}
.tag-care { background: var(--warn-tint); color: var(--warn); }
.ac-foot { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 6px; }
.ac-foot .btn { flex: 1; }

.animal-card.record { flex-direction: row; align-items: stretch; }
.record .rec-photo {
  flex: none; width: 92px; display: flex; align-items: flex-start; justify-content: center;
  padding: 20px 0 18px 18px;
}
.record .rec-photo img { width: 74px; height: 74px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--sage-wash); }
.record .ac-body { padding: 18px; gap: 8px; }
.record .rec-log { display: grid; gap: 4px; margin-top: 2px; }
.record .rec-log div { display: flex; gap: 8px; font-size: 12.5px; color: var(--muted); }
.record .rec-log b { font-weight: 500; color: var(--ink-2); min-width: 66px; }

/* 홈 미리보기 4열 */
.preview-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.preview-grid .ac-figure { aspect-ratio: 4 / 3; }
/* 미리보기 4열에서는 가로형 카드도 세로로 세운다 */
.preview-grid .animal-card.wide { flex-direction: column; }
.preview-grid .animal-card.wide .ac-figure { width: 100%; aspect-ratio: 4 / 3; }
.preview-grid .animal-card.wide .ac-figure img { min-height: 0; }

/* ------------------------------------------------------------ 여정(스크롤 기록선) */
.journey {
  --trail-w: 24px; --trail-gap: 28px;
  display: grid; grid-template-columns: var(--trail-w) minmax(0, 1fr); gap: 0 var(--trail-gap);
}
.trail { position: relative; }
.trail svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.trail .trail-track { stroke: var(--line); stroke-width: 2; fill: none; }
.trail .trail-fill { stroke: var(--sage); stroke-width: 2.5; fill: none; stroke-linecap: round; stroke-dasharray: var(--len); stroke-dashoffset: 0; }
.trail-js .trail-fill { stroke-dashoffset: calc(var(--len) * (1 - var(--p, 0))); }
.trail-steps { display: grid; gap: 22px; }
.trail-step {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 24px 26px;
}
.trail-step::before {
  content: ""; position: absolute; top: 32px; width: 11px; height: 11px;
  left: calc(-1 * (var(--trail-gap) + var(--trail-w) / 2) - 5.5px);
  border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 4px var(--paper);
}
.trail-step .ts-when { font-family: var(--latin); font-size: 11px; font-weight: 600; letter-spacing: 0.14em; color: var(--sage); text-transform: uppercase; }
.trail-step h3 { margin: 8px 0 10px; font-size: 19px; font-weight: 600; }
.trail-step p { font-size: 14.8px; line-height: 1.8; color: var(--ink-2); }
.trail-step .ts-fact { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line-soft); font-size: 13px; color: var(--muted); }

/* ------------------------------------------------------------ 절차 4단계 */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.step {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 26px 22px 24px;
}
.step .st-no { font-family: var(--latin); font-size: 13px; font-weight: 700; color: var(--coral); letter-spacing: 0.06em; }
.step h3 { margin: 10px 0 8px; font-size: 18px; font-weight: 600; }
.step p { font-size: 14.2px; line-height: 1.75; color: var(--ink-2); }
.step .st-when { margin-top: 14px; font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.step-detail { display: grid; gap: 10px; margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line-soft); }
.step-detail div { font-size: 13.4px; line-height: 1.65; display: flex; gap: 10px; }
.step-detail b { flex: none; min-width: 60px; font-weight: 600; color: var(--deep); font-size: 12.5px; padding-top: 1px; }

/* ------------------------------------------------------------ 안내(정직 고지) */
.notice {
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--coral);
  border-radius: var(--r); padding: 26px 28px;
}
.notice h3 { font-size: 18px; margin-bottom: 14px; }
.notice-list { display: grid; gap: 14px; }
.notice-list li { display: flex; gap: 12px; font-size: 14.6px; line-height: 1.78; color: var(--ink-2); }
.notice-list .ico { color: var(--coral); margin-top: 4px; }
.notice-list b { color: var(--ink); font-weight: 600; }

/* ------------------------------------------------------------ CTA 띠 */
.cta-band { background: var(--deep); color: #fff; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding-block: 54px; }
.cta-inner h2 { font-size: clamp(22px, 3vw, 28px); }
.cta-inner p { margin-top: 12px; color: rgba(255, 255, 255, 0.8); font-size: 15px; line-height: 1.8; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ------------------------------------------------------------ 면 머리 */
.page-head { padding-top: 56px; padding-bottom: 8px; }
.page-head .eyebrow { margin-bottom: 14px; }
.page-head h1 { margin-bottom: 16px; }
.page-head .lead { max-width: 620px; }
.crumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 22px; }
.crumb a:hover { color: var(--deep); }
.anchor-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.anchor-chips a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--surface);
  font-size: 14px; color: var(--ink-2); transition: all 0.2s var(--ease);
}
.anchor-chips a:hover { border-color: var(--deep); color: var(--deep); }
.head-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.62fr); gap: 46px; align-items: center; }
.head-photo {
  max-width: 340px; margin-inline-start: auto;
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); background: var(--paper-2);
}
.head-photo img { display: block; width: 100%; height: auto; }

/* ------------------------------------------------------------ 표 */
.table-scroll { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--r); }
table.sheet { width: 100%; min-width: 520px; border-collapse: collapse; background: var(--surface); font-size: 14.5px; }
table.sheet caption { text-align: left; font-size: 13px; color: var(--muted); padding-bottom: 10px; }
table.sheet th, table.sheet td { padding: 14px 16px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: top; line-height: 1.7; }
table.sheet thead th { background: var(--paper-2); font-size: 13px; font-weight: 600; color: var(--ink-2); border-bottom: 1px solid var(--line); }
table.sheet tbody tr:last-child td { border-bottom: 0; }
table.sheet td b { font-weight: 600; }
table.sheet .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sheet-wrap { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }

/* ------------------------------------------------------------ 아코디언 */
.accordion { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-trigger {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; width: 100%;
  min-height: 66px; padding: 16px 4px; background: none; border: 0; cursor: pointer;
  font-size: 16px; font-weight: 500; text-align: left; line-height: 1.6;
}
.acc-trigger .ico { color: var(--muted); transition: transform 0.3s var(--ease); }
.acc-item.open .acc-trigger { color: var(--deep); }
.acc-item.open .acc-trigger .ico { transform: rotate(180deg); color: var(--deep); }
/* 자바스크립트가 없으면 답이 전부 펼쳐진 채로 읽힌다 — 접는 것은 향상층이다 */
.acc-panel { display: block; padding: 0 4px 24px; }
.js .acc-panel { display: none; }
.js .acc-item.open .acc-panel { display: block; }
.acc-panel p { font-size: 14.8px; line-height: 1.85; color: var(--ink-2); }
.acc-panel p + p { margin-top: 12px; }

/* ------------------------------------------------------------ 서비스: 체크리스트 */
.svc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.checklist {
  position: sticky; top: 108px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow-sm);
}
.checklist h3 { font-size: 17px; margin-bottom: 6px; }
.checklist .caption { margin-bottom: 16px; }
.check-list { display: grid; gap: 2px; }
.check {
  display: flex; align-items: flex-start; gap: 11px; min-height: 44px; padding: 9px 0;
  font-size: 14.2px; line-height: 1.6; cursor: pointer; border-bottom: 1px solid var(--line-soft);
}
.check:last-child { border-bottom: 0; }
.check input { position: absolute; opacity: 0; width: 0; height: 0; }
.check .box {
  flex: none; width: 21px; height: 21px; margin-top: 2px; border-radius: 6px;
  border: 1px solid var(--line); background: var(--paper); display: inline-flex;
  align-items: center; justify-content: center; color: transparent; transition: all 0.2s var(--ease);
}
.check .box .ico { width: 13px; height: 13px; stroke-width: 2.6; }
.check:has(input:checked) .box { background: var(--deep); border-color: var(--deep); color: #fff; }
.check:has(input:checked) span:not(.box) { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line); }
.check:has(input:focus-visible) .box { outline: 2px solid var(--deep); outline-offset: 2px; }
.check-count {
  margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line-soft);
  font-size: 13.5px; color: var(--ink-2);
}
.check-count b { color: var(--deep); font-weight: 600; }

.proc-list { display: grid; gap: 18px; }
.info-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.info-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px;
  display: flex; flex-direction: column; gap: 12px;
}
.info-card .ic-mark {
  width: 44px; height: 44px; border-radius: 13px; background: var(--sage-tint); color: var(--deep);
  display: inline-flex; align-items: center; justify-content: center;
}
.info-card h3 { font-size: 18px; }
.info-card p { font-size: 14.5px; line-height: 1.8; color: var(--ink-2); }
.info-card .btn-text { margin-top: auto; }
.fee-note { margin-top: 18px; display: grid; gap: 10px; }
.fee-note p { font-size: 14px; line-height: 1.8; color: var(--ink-2); }

/* ------------------------------------------------------------ 입양하기 */
.adopt-layout { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 34px; align-items: start; }
.adopt-filters { grid-column: 1 / -1; }
.filters {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 22px 24px; box-shadow: var(--shadow-sm);
}
.filters-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.filters-head h2 { font-size: 17px; }
.filters-head .count { font-size: 14px; color: var(--ink-2); }
.filters-head .count b { color: var(--deep); font-weight: 600; }
.fgroup { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px 16px; align-items: start; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.fgroup > b { font-size: 13.5px; font-weight: 600; color: var(--ink-2); padding-top: 11px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 15px;
  border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--paper);
  font-size: 14px; cursor: pointer; transition: all 0.2s var(--ease); color: var(--ink-2);
}
.chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.chip:hover { border-color: var(--sage); }
.chip:has(input:checked) { background: var(--deep); border-color: var(--deep); color: #fff; font-weight: 500; }
.chip:has(input:focus-visible) { outline: 2px solid var(--deep); outline-offset: 2px; }
.age-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.age-row input {
  width: 84px; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--paper); font: inherit; font-size: 14px; color: var(--ink);
}
.age-row input:focus { outline: 2px solid var(--deep); outline-offset: 1px; }
.age-row .sep { color: var(--muted); font-size: 14px; }
.filters-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.filter-error {
  display: none; align-items: flex-start; gap: 10px; margin-top: 14px; padding: 13px 16px;
  background: var(--warn-tint); border: 1px solid rgba(180, 98, 42, 0.28); border-radius: var(--r);
  font-size: 14px; line-height: 1.6; color: var(--warn);
}
.filter-error.show { display: flex; }
.filter-error .ico { margin-top: 3px; }

.tray {
  display: none; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 22px;
  padding: 16px 18px; background: var(--coral-tint); border: 1px solid rgba(255, 122, 110, 0.32); border-radius: var(--r-lg);
}
.tray.show { display: flex; }
.tray > b { font-size: 14px; color: #b8452f; flex: none; }
.tray-items { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; min-width: 0; }
.tray-chip {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 6px 0 8px;
  background: var(--surface); border: 1px solid rgba(255, 122, 110, 0.3); border-radius: var(--r-pill); font-size: 14px;
}
.tray-chip img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.tray-chip button {
  width: 30px; height: 30px; border-radius: 50%; border: 0; background: transparent;
  cursor: pointer; color: var(--muted); display: inline-flex; align-items: center; justify-content: center;
}
.tray-chip button:hover { color: var(--coral-press); background: var(--coral-tint); }
.tray-note { font-size: 12.5px; color: #b8452f; flex-basis: 100%; }

.grid-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.grid-head h2 { font-size: 19px; }
/* 사진 중심 배치 — 표준 masonry 에 기대지 않는다.
   기본은 CSS Grid(align-items:start) 이고, masonry 를 지원하는 브라우저에서만 향상된다. */
.animal-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px; align-items: start;
}
@supports (grid-template-rows: masonry) {
  .animal-grid { grid-template-rows: masonry; }
}
.animal-grid > li { display: block; min-width: 0; }
/* display 를 직접 지정한 요소는 hidden 속성만으로 사라지지 않는다 — 명시적으로 끈다 */
.animal-grid > li[hidden], .animal-grid[hidden] { display: none; }
.animal-grid > li.full { grid-column: 1 / -1; }
.animal-grid .ac-figure { aspect-ratio: 4 / 5; }
.animal-card.wide { flex-direction: row; }
.animal-card.wide .ac-figure { flex: none; width: 40%; aspect-ratio: auto; }
.animal-card.wide .ac-figure img { height: 100%; min-height: 210px; }
.empty {
  display: none; padding: 46px 30px; text-align: center; background: var(--surface);
  border: 1px dashed var(--line); border-radius: var(--r-lg);
}
.empty.show { display: block; }
.empty .ico { color: var(--sage); }
.empty h3 { margin: 14px 0 10px; font-size: 18px; }
.empty p { font-size: 14.5px; color: var(--ink-2); line-height: 1.8; margin-bottom: 20px; }

.detail-col { position: sticky; top: 104px; }
.profile-stack { display: grid; }
.profile {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.js .profile[hidden] { display: none; }
.pr-photo { display: block; background: var(--paper-2); }
.pr-photo img { display: block; width: 100%; height: 260px; object-fit: cover; }
.pr-body { padding: 22px 24px 26px; }
.pr-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.pr-top h3 { font-size: 24px; font-weight: 600; }
.pr-spec { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.pr-line { font-size: 15px; line-height: 1.75; color: var(--ink-2); padding-bottom: 16px; border-bottom: 1px solid var(--line-soft); }
.pr-facts { display: grid; gap: 0; margin: 4px 0 16px; }
.pr-facts div { display: flex; gap: 14px; padding: 9px 0; border-bottom: 1px dashed var(--line-soft); font-size: 14px; }
.pr-facts b { flex: none; width: 78px; font-weight: 500; color: var(--muted); }
.pr-facts span { color: var(--ink); }
.pr-sub { font-size: 13px; font-weight: 600; letter-spacing: 0.02em; color: var(--deep); margin: 18px 0 10px; display: flex; align-items: center; gap: 7px; }
.pr-warn { background: var(--warn-tint); border-radius: var(--r); padding: 14px 16px; }
.pr-warn li { font-size: 13.8px; line-height: 1.75; color: #7d4d24; display: flex; gap: 8px; }
.pr-warn li + li { margin-top: 6px; }
.pr-warn li::before { content: "·"; flex: none; }
.pr-actions { display: flex; gap: 8px; margin-top: 20px; }
.pr-actions .btn { flex: 1; }

/* 건강 타임라인 */
.timeline { display: grid; gap: 0; }
.tl-item { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 14px; padding-bottom: 16px; position: relative; }
.tl-item::before {
  content: ""; position: absolute; left: 10px; top: 20px; bottom: 0; width: 1px; background: var(--line);
}
.tl-item:last-child { padding-bottom: 0; }
.tl-item:last-child::before { display: none; }
.tl-dot {
  width: 21px; height: 21px; border-radius: 50%; background: var(--deep); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; position: relative; z-index: 1;
}
.tl-dot .ico { width: 12px; height: 12px; stroke-width: 2.6; }
.tl-item.plan .tl-dot { background: var(--surface); border: 1.5px dashed var(--sage); color: var(--sage); }
.tl-when { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tl-what { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; margin: 1px 0 3px; }
.tl-desc { font-size: 13.5px; line-height: 1.65; color: var(--ink-2); }
.tl-state { font-size: 11.5px; font-weight: 600; padding: 1px 7px; border-radius: var(--r-pill); background: var(--sage-tint); color: var(--deep); }
.tl-item.plan .tl-state { background: var(--paper-2); color: var(--muted); }

/* 보이는 원은 22px 이지만 실제로 누르는 면은 44px 이다.
   음수 여백으로 줄 높이는 그대로 두고 적중 면적만 넓힌다. */
.tip-btn {
  width: 44px; height: 44px; margin: -11px -13px -11px -11px; padding: 0;
  border: 0; background: none; cursor: pointer; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
}
.tip-btn > span {
  width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--paper); color: var(--muted); font-size: 11px; font-weight: 700; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.tip-btn:hover > span { border-color: var(--deep); color: var(--deep); }
.tip-btn:hover { border-color: var(--deep); color: var(--deep); }
.tip {
  width: min(280px, calc(100vw - 32px)); padding: 16px 18px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); margin: 0;
  font-size: 13.5px; line-height: 1.7; color: var(--ink-2);
}
.tip b { display: block; font-size: 14px; color: var(--ink); margin-bottom: 6px; }
.tip[popover] { inset: auto; }
.tip:not(:popover-open):not(.tip-open) { display: none; }
.tip.tip-open { position: absolute; z-index: 60; }
@supports (anchor-name: --a) {
  .tip[popover] { position-area: block-end span-inline-start; margin-top: 8px; position-try-fallbacks: flip-block, flip-inline; }
}

/* ------------------------------------------------------------ 함께하기 */
.ways { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.way {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 24px 22px; display: flex; flex-direction: column; gap: 10px;
}
.way .w-mark { width: 46px; height: 46px; border-radius: 14px; background: var(--sage-tint); color: var(--deep); display: inline-flex; align-items: center; justify-content: center; }
.way h3 { font-size: 17px; }
.way p { font-size: 14px; line-height: 1.75; color: var(--ink-2); flex: 1; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.72fr); gap: 44px; align-items: center; }
.split.rev { grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr); }
.split-photo { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); background: var(--paper-2); }
.split-photo img { display: block; width: 100%; height: auto; }
.bullet { display: grid; gap: 12px; margin-top: 18px; }
.bullet li { display: flex; gap: 11px; font-size: 14.8px; line-height: 1.75; color: var(--ink-2); }
.bullet .ico { color: var(--sage); margin-top: 4px; }
.use-bars { display: grid; gap: 16px; }
.use-row { display: grid; gap: 7px; }
.use-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 14.5px; }
.use-top b { font-weight: 500; }
.use-top span { font-variant-numeric: tabular-nums; color: var(--deep); font-weight: 600; }
.use-bar { height: 9px; border-radius: var(--r-pill); background: var(--paper-3); overflow: hidden; }
.use-bar i { display: block; height: 100%; background: var(--sage); border-radius: var(--r-pill); }
.use-bar i.alt { background: var(--deep); }
.use-bar i.alt2 { background: var(--coral); }
.use-bar i.alt3 { background: var(--paper-3); box-shadow: inset 0 0 0 1px var(--line); }

.carousel { position: relative; }
.stories {
  /* 트랙을 고정 폭으로 둬야 넘쳐서 실제로 넘겨진다 — minmax(0,…) 는 줄어들어 스크롤이 죽는다 */
  display: grid; grid-auto-flow: column; grid-auto-columns: calc(33.333% - 13.4px);
  gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 6px; scrollbar-width: thin;
}
.story {
  scroll-snap-align: start; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column;
}
.story-photo { background: var(--paper-2); }
.story-photo img { display: block; width: 100%; height: 190px; object-fit: cover; }
.story-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.story-body h3 { font-size: 17.5px; }
.story-body p { font-size: 14.4px; line-height: 1.8; color: var(--ink-2); flex: 1; }
.story-by { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px dashed var(--line-soft); font-size: 12.5px; color: var(--muted); }
.dots { display: flex; justify-content: center; gap: 2px; margin-top: 18px; }
.dots button {
  width: 44px; height: 44px; border: 0; background: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.dots button::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--paper-3); box-shadow: inset 0 0 0 1px var(--line); transition: background 0.24s var(--ease), width 0.24s var(--ease); }
.dots button[aria-current="true"]::before { background: var(--deep); width: 22px; border-radius: var(--r-pill); box-shadow: none; }
@supports (scroll-marker-group: after) {
  .dots { display: none; }
  .stories { scroll-marker-group: after; }
  .stories::scroll-marker-group { display: flex; justify-content: center; gap: 2px; margin-top: 18px; }
  .story::scroll-marker {
    content: ""; width: 44px; height: 44px; border-radius: 50%;
    border: 18px solid transparent; background: var(--paper-3) content-box; box-sizing: border-box;
  }
  .story::scroll-marker:target-current { background: var(--deep) content-box; }
}
.partners { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.partner { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; }
.partner b { display: block; font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.partner span { font-size: 13.5px; color: var(--muted); line-height: 1.6; }

/* ------------------------------------------------------------ 센터 소개 */
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.principle { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; }
.principle .p-no { font-family: var(--latin); font-size: 12px; font-weight: 700; color: var(--sage); letter-spacing: 0.1em; }
.principle h3 { margin: 10px 0 10px; font-size: 18px; }
.principle p { font-size: 14.4px; line-height: 1.8; color: var(--ink-2); }
.daylog { display: grid; gap: 0; }
.daylog div { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 18px; padding: 14px 0; border-bottom: 1px dashed var(--line-soft); font-size: 14.6px; }
.daylog div:last-child { border-bottom: 0; }
.daylog b { font-weight: 600; color: var(--deep); font-variant-numeric: tabular-nums; }
.daylog span { color: var(--ink-2); line-height: 1.7; }
.spaces { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.space { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 20px; }
.space .ico { color: var(--deep); margin-bottom: 12px; }
.space h3 { font-size: 16px; margin-bottom: 8px; }
.space p { font-size: 13.6px; line-height: 1.7; color: var(--ink-2); }
.people { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.person { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px 22px; }
.person .p-mark {
  width: 52px; height: 52px; border-radius: 50%; background: var(--sage-tint); color: var(--deep);
  display: inline-flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 600; margin-bottom: 14px;
}
.person h3 { font-size: 16.5px; }
.person .p-role { font-size: 12.5px; color: var(--sage); font-weight: 600; margin: 4px 0 9px; }
.person p { font-size: 13.8px; line-height: 1.72; color: var(--ink-2); }
.legal { background: var(--paper-2); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: 28px 30px; }
.legal h3 { font-size: 17px; margin-bottom: 14px; }
.legal ol { display: grid; gap: 12px; counter-reset: l; }
.legal li { display: flex; gap: 12px; font-size: 14.4px; line-height: 1.8; color: var(--ink-2); counter-increment: l; }
.legal li::before {
  content: counter(l); flex: none; width: 22px; height: 22px; border-radius: 50%; margin-top: 4px;
  background: var(--deep); color: #fff; font-size: 11.5px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.visit-grid { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr); gap: 44px; align-items: start; }
.map-card { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.map-art {
  height: 200px; position: relative;
  background:
    linear-gradient(90deg, transparent 0 46%, rgba(143, 174, 155, 0.5) 46% 47.4%, transparent 47.4%),
    linear-gradient(0deg, transparent 0 62%, rgba(143, 174, 155, 0.35) 62% 63%, transparent 63%),
    repeating-linear-gradient(90deg, rgba(43, 43, 43, 0.05) 0 1px, transparent 1px 26px),
    repeating-linear-gradient(0deg, rgba(43, 43, 43, 0.05) 0 1px, transparent 1px 26px),
    var(--paper-2);
}
.map-pin {
  position: absolute; left: 46.7%; top: 62.5%; transform: translate(-50%, -100%);
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px 7px 9px;
  background: var(--coral); color: #fff; border-radius: var(--r-pill); font-size: 12.5px; font-weight: 600;
  box-shadow: 0 6px 18px rgba(255, 122, 110, 0.4); white-space: nowrap;
}
.map-info { padding: 22px 24px; display: grid; gap: 14px; }
.map-info div { display: flex; gap: 14px; font-size: 14.4px; line-height: 1.7; }
.map-info b { flex: none; width: 62px; font-weight: 500; color: var(--muted); font-size: 13.5px; padding-top: 1px; }
.map-info a:hover { color: var(--deep); }

/* ------------------------------------------------------------ 폼 */
.book-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px; box-shadow: var(--shadow-sm); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.field label .req { color: var(--coral); }
.control {
  width: 100%; min-height: 50px; padding: 13px 15px; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--r); font: inherit; font-size: 14.5px; color: var(--ink);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
textarea.control { min-height: 118px; resize: vertical; line-height: 1.7; }
select.control { appearance: none; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b857a' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M6 9.5l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; background-size: 18px; padding-right: 40px; }
.control:focus { outline: none; border-color: var(--deep); box-shadow: 0 0 0 3px rgba(79, 111, 94, 0.13); background: var(--surface); }
.field.filled .control { background: var(--surface); }
.field.invalid .control { border-color: #c4553f; box-shadow: 0 0 0 3px rgba(196, 85, 63, 0.12); }
.err { display: none; font-size: 12.5px; color: #c4553f; }
.field.invalid .err { display: block; }
.counter { text-align: right; font-size: 12px; color: var(--muted); }
.agree { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 22px 0 18px; font-size: 13.8px; color: var(--ink-2); }
.agree input { position: absolute; opacity: 0; width: 0; height: 0; }
.agree label { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.agree label .box {
  width: 21px; height: 21px; border-radius: 6px; border: 1px solid var(--line); background: var(--paper);
  display: inline-flex; align-items: center; justify-content: center; color: transparent; transition: all 0.2s var(--ease);
}
.agree label .box .ico { width: 13px; height: 13px; stroke-width: 2.6; }
.agree input:checked + label .box { background: var(--deep); border-color: var(--deep); color: #fff; }
.agree input:focus-visible + label .box { outline: 2px solid var(--deep); outline-offset: 2px; }
.form-note { font-size: 13px; line-height: 1.75; color: var(--muted); margin-top: 14px; }
.spinner {
  width: 15px; height: 15px; border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: #fff;
  border-radius: 50%; animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.book-side { display: grid; gap: 20px; }
.book-side .info-card { padding: 24px; }

/* ------------------------------------------------------------ 푸터 */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, 0.72); padding-block: 62px 32px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 44px; }
.footer-brand .brand-mark { background: rgba(255, 255, 255, 0.1); color: #fff; }
.footer-brand .brand-name { color: #fff; }
.footer-brand p { margin-top: 16px; font-size: 14px; line-height: 1.85; }
.footer-col h3 { font-family: var(--latin); font-size: 11px; font-weight: 600; letter-spacing: 0.16em; color: rgba(255, 255, 255, 0.5); margin-bottom: 18px; }
.footer-col li + li { margin-top: 10px; }
.footer-col a { font-size: 14px; }
.footer-col a:hover { color: #fff; }
.footer-info { display: grid; gap: 12px; }
.footer-info div { display: flex; gap: 12px; font-size: 13.8px; line-height: 1.7; }
.footer-info b { flex: none; width: 52px; font-weight: 500; color: rgba(255, 255, 255, 0.5); }
.social { display: flex; gap: 8px; margin-bottom: 18px; }
.social a {
  width: 44px; height: 44px; border-radius: var(--r); border: 1px solid rgba(255, 255, 255, 0.18);
  display: inline-flex; align-items: center; justify-content: center;
}
.social a:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.footer-box { border: 1px solid rgba(255, 255, 255, 0.16); border-radius: var(--r); padding: 16px 18px; font-size: 13.4px; line-height: 1.7; }
.footer-box b { display: block; color: #fff; font-weight: 600; margin-bottom: 5px; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 13px;
}
.footer-bottom nav { display: flex; gap: 20px; }
.footer-bottom a:hover { color: #fff; }

/* ------------------------------------------------------------ 토스트·맨 위로 */
.toast {
  position: fixed; left: 50%; bottom: 30px; z-index: 130; transform: translate(-50%, 18px);
  display: flex; align-items: center; gap: 11px; min-width: 260px; max-width: calc(100vw - 32px);
  padding: 14px 20px; background: var(--ink); color: #fff; border-radius: var(--r); font-size: 14px;
  box-shadow: 0 14px 36px rgba(43, 43, 43, 0.28); opacity: 0; visibility: hidden;
  /* 알림일 뿐이므로 아래 제출 버튼의 클릭을 삼키지 않는다 */
  pointer-events: none;
  transition: opacity 0.32s var(--ease), transform 0.32s var(--ease), visibility 0.32s;
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast .ico { color: var(--sage); }
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 80; width: 46px; height: 46px;
  border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--deep);
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(8px); box-shadow: var(--shadow-sm);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }

/* ------------------------------------------------------------ 등장 */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* 목록 사진 → 기록 화면 공유 요소 전환(지원 브라우저 한정) */
::view-transition-old(animal-photo),
::view-transition-new(animal-photo) { animation-duration: 0.34s; }

/* 스크롤 연동 기록선 — 지원 브라우저에서만 향상, 미지원은 처음부터 그려진 상태 */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .trail .trail-fill {
      animation: trail-draw linear both;
      animation-timeline: view();
      animation-range: entry 12% cover 62%;
    }
  }
}
@keyframes trail-draw { from { stroke-dashoffset: var(--len); } to { stroke-dashoffset: 0; } }

/* ============================================================= 반응형 */
@media (max-width: 1180px) {
  :root { --wrap: 1024px; --section: 92px; }
  .navlinks { gap: 22px; }
  .adopt-layout { grid-template-columns: minmax(0, 1fr) 340px; }
  .svc-layout { grid-template-columns: minmax(0, 1fr) 290px; gap: 34px; }
  .hero-grid { gap: 34px; }
}

@media (max-width: 1024px) {
  :root { --gutter: 26px; --section: 84px; }
  .navlinks { display: none; }
  .menu-btn { display: inline-flex; }
  .adopt-layout { grid-template-columns: minmax(0, 1fr); }
  .detail-col { position: static; }
  .svc-layout { grid-template-columns: minmax(0, 1fr); }
  .checklist { position: static; }
  .preview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ways, .spaces, .people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stories { grid-auto-columns: calc(50% - 10px); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; }
  .visit-grid, .log-layout { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .head-split { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .head-photo { max-width: 420px; }
}

@media (max-width: 860px) {
  :root { --section: 74px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .hero-copy { padding-block: 8px 4px; max-width: none; }
  .hero-scroll { display: none; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 22px 18px; }
  .stat + .stat { border-left: 0; }
  .stats-grid .stat:nth-child(even) { border-left: 1px solid rgba(255, 255, 255, 0.16); }
  .stats-grid .stat:nth-child(n + 3) { border-top: 1px solid rgba(255, 255, 255, 0.16); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .principles, .partners { grid-template-columns: minmax(0, 1fr); }
  .split, .split.rev { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .split-photo { max-width: 460px; }
  .info-cards { grid-template-columns: minmax(0, 1fr); }
  .journey { --trail-w: 16px; --trail-gap: 16px; }
  .trail-step { padding: 20px 20px; }
}

@media (max-width: 700px) {
  :root { --gutter: 20px; --section: 64px; --r-lg: 16px; }
  .nav { min-height: 66px; gap: 14px; }
  .brand-name { font-size: 17px; }
  .nav-actions .btn { padding: 0 15px; font-size: 14px; }
  /* 모바일은 사진 1열 */
  .preview-grid, .animal-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .animal-grid .ac-figure { aspect-ratio: 4 / 3; }
  .animal-card.wide { flex-direction: column; }
  .animal-card.wide .ac-figure { width: 100%; aspect-ratio: 4 / 3; }
  .animal-card.wide .ac-figure img { min-height: 0; }
  /* 모바일 순서: 사진 목록 → 개별 기록 → 하단 적합성 필터 */
  .adopt-layout { display: flex; flex-direction: column; }
  .adopt-filters { order: 3; }
  .grid-col { order: 1; }
  .detail-col { order: 2; }
  .ways, .spaces, .people, .steps, .form-grid { grid-template-columns: minmax(0, 1fr); }
  .stories { grid-auto-columns: minmax(0, 86%); }
  .fgroup { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .fgroup > b { padding-top: 0; }
  .quiz-item { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .quiz { padding: 22px 18px; }
  .book-card, .legal { padding: 22px 20px; }
  .ledger { padding: 4px 20px; }
  .cta-inner { padding-block: 42px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .pr-photo img { height: 210px; }
  .to-top { right: 14px; bottom: 14px; }
}

@media (max-width: 520px) {
  .nav-actions .btn-coral { display: none; }
  .hero-actions .btn { width: 100%; }
  .ledger-row { flex-wrap: wrap; }
  .ledger-row .lg-dot { display: none; }
  .ledger-row .lg-val { margin-left: auto; }
  .record .rec-photo { width: 74px; padding: 14px 0 14px 14px; }
  .record .rec-photo img { width: 60px; height: 60px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  /* 모션을 끈 사용자에게도 본문은 즉시 최종 상태로 보인다 */
  .js .reveal { opacity: 1; transform: none; }
  .trail .trail-fill { stroke-dashoffset: 0 !important; }
}

@media print {
  .site-header, .drawer, .scrim, .toast, .to-top, .tray, .menu-btn { display: none !important; }
  body { background: #fff; }
}
