/* =========================================================
   WEACT 2027 — 홈페이지 리뉴얼 제안 템플릿
   Layout: 구조 현장 기록 — 풀블리드 영상 히어로 + 넓은 그리드.
           개체 카드는 보호소 '케이지 카드'(펀치 구멍 이름표 + 상태 도장)를 모티프로 한다.
   ========================================================= */
:root {
  /* 브랜드: 현 로고 SVG에서 추출한 틸 계열 + 후원 CTA 전용 앰버 */
  --teal-950: #04232a;
  --teal-900: #062f38;
  --teal-800: #064265;
  --teal-700: #086872;
  --teal-600: #146d63;
  --teal-200: #b9dcdc;
  --teal-100: #ddeeee;
  --teal-50: #eff6f5;
  --blue: #2c57a7;
  --amber: #f2a541;
  --amber-deep: #b86a0a;
  --amber-50: #fdf3e3;
  --ink: #0e2328;
  --ink-2: #33494e;
  --muted: #63777b;
  --line: #d8e2e1;
  --paper: #f6f8f7;
  --white: #ffffff;
  --stamp-done: #2e7d5b;
  --stamp-review: #b86a0a;
  --stamp-prep: #2c57a7;
  --stamp-hof: #7a4e9c;
  --danger: #b4342f;

  --font-sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --font-hand: "Nanum Pen Script", "Gaegu", cursive;

  --header-h: 72px;
  --ribbon-h: 28px;
  --top: calc(var(--ribbon-h) + var(--header-h));
  --wrap: 1200px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 14px 34px -18px rgba(6, 47, 56, 0.35);
  --shadow-lg: 0 30px 60px -30px rgba(6, 47, 56, 0.45);

  --fs-12: 0.75rem;
  --fs-14: 0.875rem;
  --fs-16: 1rem;
  --fs-18: 1.125rem;
  --fs-22: 1.375rem;
  --fs-28: clamp(1.5rem, 1.2rem + 1.2vw, 1.75rem);
  --fs-40: clamp(1.9rem, 1.3rem + 2.4vw, 2.5rem);
  --fs-64: clamp(2.4rem, 1.4rem + 4.4vw, 4.25rem);
}

/* ---------- 기본 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-16);
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; text-wrap: balance; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
.tabnum { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.hand { font-family: var(--font-hand); font-weight: 400; letter-spacing: 0; }
.ico { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 700; font-size: var(--fs-16); white-space: nowrap;
  transition: transform .15s ease, background-color .2s ease, box-shadow .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-teal { background: var(--teal-700); color: #fff; }
.btn-teal:hover { background: var(--teal-800); }
.btn-amber { background: var(--amber); color: var(--teal-950); }
.btn-amber:hover { background: #f6b65f; box-shadow: 0 10px 24px -12px rgba(242, 165, 65, .9); }
.btn-ghost { border-color: currentColor; background: transparent; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-line { border-color: var(--line); background: #fff; color: var(--ink); }
.btn-line:hover { border-color: var(--teal-700); color: var(--teal-700); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: var(--fs-14); }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: var(--fs-18); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--teal-700); }
.link-arrow:hover { gap: 10px; }

/* ---------- 시안 리본 & AI 표기 ---------- */
.proto-ribbon {
  position: sticky; top: 0; z-index: 55; height: var(--ribbon-h);
  display: flex; align-items: center; justify-content: center; gap: 4px;
  background: var(--teal-950); color: #cfe7e6; font-size: var(--fs-12); letter-spacing: .02em;
  padding: 0 12px; white-space: nowrap; overflow: hidden;
}
.proto-ribbon .short { display: none; }
.is-hero-page .proto-ribbon { position: fixed; left: 0; right: 0; }
.proto-ribbon b { color: var(--amber); font-weight: 700; }

/* ---------- 헤더 ---------- */
.site-header {
  position: sticky; top: var(--ribbon-h); z-index: 50; height: var(--header-h);
  background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(10px);
  transition: background-color .25s ease, border-color .25s ease, color .25s ease;
}
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand img { height: 34px; width: auto; }
.brand .logo-w { display: none; }
.gnb { display: flex; gap: 4px; margin-left: 8px; }
.gnb > li { position: relative; list-style: none; }
.gnb > li > a {
  display: flex; align-items: center; height: var(--header-h); padding: 0 14px;
  font-weight: 700; font-size: 15.5px; letter-spacing: -0.01em;
}
.gnb > li > a[aria-current="page"] { color: var(--teal-700); box-shadow: inset 0 -3px 0 var(--teal-700); }
.gnb .sub {
  position: absolute; top: calc(var(--header-h) - 6px); left: 0; min-width: 200px;
  background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 14px; padding: 10px;
  box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.gnb > li:hover .sub, .gnb > li:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.gnb .sub a { display: block; padding: 8px 12px; border-radius: 8px; font-size: var(--fs-14); font-weight: 600; }
.gnb .sub a:hover { background: var(--teal-50); color: var(--teal-700); }
.header-tools { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px;
  border-radius: 999px; border: 1.5px solid var(--line); background: transparent; font-weight: 700; font-size: 13px;
}
.lang-btn[aria-pressed="true"] { background: var(--teal-700); border-color: var(--teal-700); color: #fff; }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: none; border-radius: 10px; }
.menu-btn .ico { width: 26px; height: 26px; }

/* 히어로 위 투명 헤더 */
.is-hero-page .site-header:not(.is-solid) { background: transparent; border-color: transparent; color: #fff; backdrop-filter: none; }
.is-hero-page .site-header:not(.is-solid) .logo-c { display: none; }
.is-hero-page .site-header:not(.is-solid) .logo-w { display: block; }
.is-hero-page .site-header:not(.is-solid) .lang-btn { border-color: rgba(255, 255, 255, .5); }
.is-hero-page .site-header:not(.is-solid) .gnb > li > a[aria-current="page"] { color: #fff; box-shadow: inset 0 -3px 0 var(--amber); }
.is-hero-page .site-header { position: fixed; left: 0; right: 0; top: var(--ribbon-h); }

/* 모바일 메뉴 */
.drawer {
  position: fixed; inset: 0; z-index: 60; background: var(--teal-950); color: #fff;
  padding: calc(env(safe-area-inset-top, 0px) + 20px) 24px 40px; overflow-y: auto;
  transform: translateX(100%); transition: transform .3s ease; visibility: hidden;
}
.drawer.open { transform: none; visibility: visible; }
.drawer-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.drawer-top img { height: 30px; }
.drawer details { border-bottom: 1px solid rgba(255, 255, 255, .12); }
.drawer summary { list-style: none; padding: 16px 0; font-size: var(--fs-22); font-weight: 800; display: flex; justify-content: space-between; cursor: pointer; }
.drawer summary::-webkit-details-marker { display: none; }
.drawer summary::after { content: "+"; color: var(--amber); }
.drawer details[open] summary::after { content: "–"; }
.drawer details a { display: block; padding: 8px 0 8px 4px; color: #bfdcdb; font-weight: 600; }
.drawer .drawer-cta { margin-top: 28px; display: grid; gap: 10px; }

/* 영문 변환 안내 바 */
.translate-bar {
  display: none; position: sticky; top: var(--top); z-index: 45;
  background: var(--amber-50); border-bottom: 1px solid #efd7b0; color: var(--ink); font-size: var(--fs-14);
}
.translate-bar .wrap { display: flex; align-items: center; gap: 12px; min-height: 46px; flex-wrap: wrap; padding-block: 6px; }
.translate-bar button { margin-left: auto; border: 0; background: var(--teal-700); color: #fff; border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: 13px; }
html[lang="en"] .translate-bar { display: block; }
.is-hero-page .translate-bar { position: fixed; left: 0; right: 0; }

/* ---------- 플로팅 버튼 ---------- */
.fab {
  position: fixed; right: 22px; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); z-index: 40;
  display: flex; flex-direction: column; gap: 10px;
}
.fab a {
  display: flex; align-items: center; gap: 8px; height: 50px; padding: 0 18px 0 14px; border-radius: 999px;
  background: #fff; color: var(--ink); font-weight: 800; font-size: var(--fs-14); box-shadow: var(--shadow);
  border: 1px solid var(--line); transition: transform .15s ease;
}
.fab a:hover { transform: translateX(-4px); }
.fab a .ico { width: 20px; height: 20px; color: var(--teal-700); }
.fab a.fab-donate { background: var(--amber); border-color: var(--amber); color: var(--teal-950); }
.fab a.fab-donate .ico { color: var(--teal-950); }

/* ---------- 섹션 공통 ---------- */
.section { padding-block: clamp(64px, 8vw, 120px); }
.section.tight { padding-block: clamp(48px, 6vw, 80px); }
.section.dark { background: var(--teal-950); color: #e3f0ef; }
.section.white { background: #fff; }
.sec-head { display: grid; gap: 12px; margin-bottom: clamp(28px, 4vw, 48px); max-width: 760px; }
.sec-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.sec-head.row { max-width: none; grid-template-columns: 1fr auto; align-items: end; }
.eyebrow { font-size: var(--fs-14); font-weight: 800; letter-spacing: .14em; color: var(--teal-700); text-transform: uppercase; }
.dark .eyebrow { color: var(--amber); }
.sec-head h2 { font-size: var(--fs-40); font-weight: 800; }
.sec-head p { color: var(--muted); font-size: var(--fs-18); max-width: 62ch; }
.dark .sec-head p { color: #a9c9c8; }

/* ---------- 메인 히어로 ---------- */
.hero { position: relative; min-height: min(100svh, 920px); display: grid; align-items: end; color: #fff; overflow: hidden; background: var(--teal-950); }
.hero video, .hero .hero-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 35, 42, .82) 0%, rgba(4, 35, 42, .55) 38%, rgba(4, 35, 42, 0) 70%),
    linear-gradient(0deg, rgba(4, 35, 42, .75) 0%, rgba(4, 35, 42, 0) 40%);
}
.hero-inner { position: relative; z-index: 2; padding-block: calc(var(--top) + 80px) clamp(56px, 8vw, 96px); display: grid; gap: 28px; }
.hero h1 { font-size: var(--fs-64); font-weight: 900; letter-spacing: -0.035em; line-height: 1.12; max-width: 14ch; }
.hero h1 em { font-style: normal; color: var(--amber); }
.hero .lead { font-size: var(--fs-18); color: #d6e9e8; max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: clamp(24px, 5vw, 56px); padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .2); max-width: 640px; }
.hero-stats .num { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); font-weight: 900; letter-spacing: -0.03em; line-height: 1; }
.hero-stats .lbl { font-size: var(--fs-14); color: #b5d3d2; margin-top: 6px; }
.scroll-cue { position: absolute; left: 50%; bottom: 18px; z-index: 3; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .6); border-radius: 14px; }
.scroll-cue::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: cue 1.6s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- 케이지 카드 (개체 카드) ---------- */
.kcard {
  position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--line); transition: transform .2s ease, box-shadow .2s ease;
}
.kcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.kcard .photo { position: relative; aspect-ratio: 1; background: var(--teal-50); overflow: hidden; }
.kcard .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.kcard:hover .photo img { transform: scale(1.04); }
.kcard .photo.nophoto {
  display: grid; place-items: center;
  background:
    repeating-linear-gradient(90deg, transparent 0 26px, rgba(8, 104, 114, .14) 26px 30px),
    linear-gradient(160deg, var(--teal-50), var(--teal-100));
}
.kcard .photo.nophoto span { font-family: var(--font-hand); font-size: 3.4rem; color: var(--teal-700); }
.nametag {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px; padding: 2px 14px 2px 26px; border-radius: 8px;
  background: #fffdf6; color: var(--ink); font-family: var(--font-hand); font-size: 1.7rem; line-height: 1.25;
  box-shadow: 0 4px 10px -4px rgba(0, 0, 0, .35); transform: rotate(-2.5deg);
}
.nametag::before { content: ""; position: absolute; left: 9px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .35); }
.kcard .body { padding: 14px 16px 16px; display: grid; gap: 6px; }
.kcard .facts { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: var(--fs-14); color: var(--ink-2); font-weight: 600; }
.kcard .facts span + span::before { content: "·"; margin-right: 10px; color: var(--line); }
.kcard .case { font-size: 11.5px; letter-spacing: .06em; color: var(--muted); font-variant-numeric: tabular-nums; }
.kcard .traits { display: flex; flex-wrap: wrap; gap: 4px; }
.kcard .traits span { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--teal-50); color: var(--teal-800); font-weight: 600; }
.kcard .new-badge { position: absolute; top: 14px; right: 14px; z-index: 2; background: var(--amber); color: var(--teal-950); font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; }
.stamp {
  position: absolute; right: 12px; bottom: 12px; z-index: 2;
  padding: 4px 12px; border: 3px double currentColor; border-radius: 8px; background: rgba(255, 255, 255, .9);
  font-weight: 900; font-size: 15px; letter-spacing: .08em; transform: rotate(-9deg);
  mix-blend-mode: multiply;
}
.stamp.done { color: var(--stamp-done); }
.stamp.review { color: var(--stamp-review); }
.stamp.prep { color: var(--stamp-prep); }
.stamp.hof { color: var(--stamp-hof); }
.demo-note { font-size: 11px; color: var(--muted); border-bottom: 1px dotted var(--muted); cursor: help; }

/* 가로 스크롤 */
.quick-chips { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- 스크롤 스토리: 뜬장에서 소파까지 ---------- */
.story { position: relative; height: 380vh; background: var(--teal-950); color: #e4f1f0; }
.story-pin { position: sticky; top: var(--top); height: calc(100vh - var(--top)); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.story-steps { display: grid; gap: 6px; list-style: none; counter-reset: s; }
.story-steps li { counter-increment: s; padding: 16px 18px 16px 64px; border-radius: 14px; position: relative; opacity: .38; transition: opacity .35s ease, background-color .35s ease; }
.story-steps li::before { content: "0" counter(s); position: absolute; left: 18px; top: 16px; font-weight: 900; color: var(--amber); font-variant-numeric: tabular-nums; }
.story-steps li h3 { font-size: var(--fs-22); font-weight: 800; color: #fff; }
.story-steps li p { color: #a9c9c8; font-size: var(--fs-16); margin-top: 4px; }
.story-steps li.active { opacity: 1; background: rgba(255, 255, 255, .06); }
.story-stage { position: relative; aspect-ratio: 4 / 5; max-height: calc(100vh - var(--top) - 64px); width: 100%; justify-self: center; border-radius: 22px; overflow: hidden; background: #0a3a43; box-shadow: var(--shadow-lg); }
.story-stage figure { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .6s ease; }
.story-stage figure.active { opacity: 1; }
.story-stage img { width: 100%; height: 100%; object-fit: cover; }
.story-stage figcaption { position: absolute; left: 16px; bottom: 16px; right: 16px; font-size: var(--fs-14); color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }

/* ---------- 임팩트 밴드 & 해외 입양 노선 ---------- */
.impact-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: rgba(255, 255, 255, .12); border-radius: var(--radius); overflow: hidden; }
.impact-grid > div { background: var(--teal-950); padding: 28px 24px; }
.impact-grid .num { font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem); font-weight: 900; letter-spacing: -0.03em; color: #fff; line-height: 1.1; }
.impact-grid .lbl { color: #9fc2c1; font-size: var(--fs-14); margin-top: 6px; }
@keyframes pulse { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(2.6); opacity: 0; } }

/* ---------- 숏폼 & 유튜브 ---------- */
.shorts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); }
.phone { position: relative; aspect-ratio: 9 / 16; border-radius: 30px; overflow: hidden; background: #000; border: 6px solid #0f1f23; box-shadow: var(--shadow-lg); }
.phone video, .phone img { width: 100%; height: 100%; object-fit: cover; }
.phone .ov { position: absolute; inset: auto 0 0 0; padding: 60px 16px 18px; background: linear-gradient(0deg, rgba(0, 0, 0, .75), transparent); color: #fff; display: grid; gap: 4px; }
.phone .ov b { font-size: var(--fs-14); }
.phone .ov span { font-size: 13px; color: #d9e6e5; }
.phone .mute { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .5); color: #fff; display: grid; place-items: center; }
.yt-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.yt { display: grid; gap: 10px; }
.yt-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; }
.yt-frame img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: opacity .2s; }
.yt-frame button { position: absolute; inset: 0; border: 0; background: none; display: grid; place-items: center; }
.yt-frame button::after { content: ""; width: 64px; height: 44px; border-radius: 12px; background: rgba(4, 35, 42, .82) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / 26px no-repeat; transition: background-color .2s; }
.yt-frame button:hover::after { background-color: var(--danger); }
.yt-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt h3 { font-size: var(--fs-16); font-weight: 700; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.yt .meta { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.dark .yt .meta { color: #8fb3b2; }

/* ---------- 소식 카드 ---------- */
.ngrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.ncard { display: grid; gap: 12px; align-content: start; }
.ncard .thumb { aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--teal-50); }
.ncard .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.ncard:hover .thumb img { transform: scale(1.04); }
.ncard .thumb.text-only { display: grid; place-items: end start; padding: 18px; background: repeating-linear-gradient(90deg, transparent 0 22px, rgba(8, 104, 114, .12) 22px 25px), var(--teal-900); color: #fff; font-weight: 800; font-size: var(--fs-18); line-height: 1.4; }
.ncard .cat { font-size: 12.5px; font-weight: 800; color: var(--teal-700); letter-spacing: .04em; }
.ncard h3 { font-size: var(--fs-18); font-weight: 700; line-height: 1.45; }
.ncard time { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.nlist { list-style: none; border-top: 2px solid var(--ink); }
.nlist li { border-bottom: 1px solid var(--line); }
.nlist a { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 16px 4px; }
.nlist a:hover h4 { color: var(--teal-700); }
.nlist .cat { font-size: 12px; font-weight: 800; color: var(--teal-700); min-width: 64px; }
.nlist h4 { font-size: var(--fs-16); font-weight: 600; }
.nlist time { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- 참여 카드 ---------- */
.join-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.join { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 380px; border-radius: var(--radius); overflow: hidden; color: #fff; padding: 22px; isolation: isolate; }
.join img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s ease; }
.join::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(4, 35, 42, .92) 0%, rgba(4, 35, 42, .15) 65%); }
.join:hover img { transform: scale(1.05); }
.join h3 { font-size: var(--fs-22); font-weight: 800; }
.join p { color: #cfe4e3; font-size: var(--fs-14); margin: 6px 0 14px; }

/* ---------- 후원 밴드 ---------- */
.donate-band { position: relative; color: #fff; overflow: hidden; background: var(--teal-900); }
.donate-band video, .donate-band .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.donate-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4, 35, 42, .92) 0%, rgba(4, 35, 42, .7) 45%, rgba(4, 35, 42, .25) 100%); }
.donate-band .wrap { position: relative; z-index: 2; display: grid; gap: 22px; padding-block: clamp(72px, 9vw, 130px); }
.donate-band h2 { font-size: var(--fs-40); font-weight: 900; max-width: 18ch; }
.donate-band p { color: #cfe4e3; max-width: 50ch; font-size: var(--fs-18); }
.amounts { display: flex; flex-wrap: wrap; gap: 10px; }
.amounts button { min-height: 46px; padding: 0 20px; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, .4); background: transparent; color: #fff; font-weight: 800; font-variant-numeric: tabular-nums; }
.amounts button[aria-pressed="true"] { background: #fff; color: var(--teal-950); border-color: #fff; }
.acct { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, .08); font-variant-numeric: tabular-nums; }
.acct button { border: 0; border-radius: 999px; padding: 4px 12px; background: rgba(255, 255, 255, .16); color: #fff; font-size: 13px; font-weight: 700; }

/* ---------- 파트너 ---------- */
.partners { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.partners li { list-style: none; aspect-ratio: 3 / 2; background: #fff; border: 1px solid var(--line); border-radius: 12px; display: grid; place-items: center; padding: 14px; }
.partners img { max-height: 64px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter .2s, opacity .2s; }
.partners li:hover img { filter: none; opacity: 1; }

/* ---------- 서브 페이지 머리 ---------- */
.page-hero { position: relative; color: #fff; background: var(--teal-900); overflow: hidden; }
.page-hero img.bg, .page-hero video.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4, 35, 42, .9), rgba(4, 35, 42, .35)); }
.page-hero .wrap { position: relative; z-index: 2; padding-block: clamp(56px, 8vw, 104px); display: grid; gap: 14px; }
.page-hero h1 { font-size: var(--fs-40); font-weight: 900; letter-spacing: -0.03em; max-width: 20ch; }
.page-hero p { color: #d2e7e6; max-width: 56ch; font-size: var(--fs-18); }
.crumbs { font-size: 13px; color: #a9c9c8; display: flex; gap: 8px; }
.crumbs a:hover { color: #fff; }
.subnav { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: var(--top); z-index: 30; }
.subnav .wrap { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.subnav a { flex: none; padding: 16px 14px; font-weight: 700; font-size: var(--fs-14); color: var(--muted); border-bottom: 3px solid transparent; }
.subnav a.on, .subnav a:hover { color: var(--teal-700); border-color: var(--teal-700); }

/* ---------- 입양 필터 ---------- */
.filters { position: sticky; top: var(--top); z-index: 20; background: rgba(246, 248, 247, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.filters .wrap { display: grid; gap: 12px; padding-block: 16px; }
.frow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.frow .flabel { font-size: 13px; font-weight: 800; color: var(--muted); min-width: 52px; }
.search { position: relative; flex: 1 1 260px; max-width: 360px; }
.search input { width: 100%; height: 44px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; padding: 0 16px 0 42px; font: inherit; font-size: var(--fs-14); }
.search input:focus { outline: none; border-color: var(--teal-700); box-shadow: 0 0 0 4px var(--teal-100); }
.search .ico { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.chip { min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-weight: 700; font-size: 13.5px; color: var(--ink-2); }
.chip:hover { border-color: var(--teal-700); color: var(--teal-700); }
.chip[aria-pressed="true"] { background: var(--teal-700); border-color: var(--teal-700); color: #fff; }
.chip .n { font-weight: 600; opacity: .7; margin-left: 4px; font-variant-numeric: tabular-nums; }
.result-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.result-bar .count { font-weight: 700; }
.result-bar .count b { color: var(--teal-700); font-size: var(--fs-22); font-variant-numeric: tabular-nums; }
select.sort { height: 40px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; padding: 0 14px; font: inherit; font-size: var(--fs-14); font-weight: 600; }
.agrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.more { display: flex; justify-content: center; margin-top: 36px; }
.empty { display: grid; justify-items: center; text-align: center; gap: 14px; padding: 40px 20px 60px; }
.empty img { width: min(320px, 80%); }
.empty h3 { font-size: var(--fs-22); }

/* ---------- 절차 ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: st; list-style: none; }
.steps li { counter-increment: st; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 22px; display: grid; gap: 8px; align-content: start; }
.steps li img { width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--teal-50); border-radius: 12px; }
.steps li .no { font-weight: 900; color: var(--amber-deep); font-size: var(--fs-14); }
.steps li .no::before { content: "STEP 0" counter(st); }
.steps li h3 { font-size: var(--fs-18); font-weight: 800; }
.steps li p { font-size: var(--fs-14); color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.faq summary { list-style: none; display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 18px 20px; cursor: pointer; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .q { color: var(--teal-700); font-weight: 900; }
.faq summary::after { content: ""; width: 12px; height: 12px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq .a { padding: 0 20px 20px 52px; color: var(--ink-2); white-space: pre-line; font-size: var(--fs-16); }
/* 긴 답변은 칸 안에서 스크롤. 위아래 그림자는 더 읽을 내용이 있을 때만 보인다(background-attachment: local) */
.faq .a.scroll { max-height: 17em; overflow-y: auto; margin-right: 6px; padding-right: 14px; scrollbar-width: thin; scrollbar-color: var(--teal-200) transparent;
  background: linear-gradient(#fff 40%, rgba(255, 255, 255, 0)) center top / 100% 36px no-repeat local,
    linear-gradient(rgba(255, 255, 255, 0), #fff 60%) center bottom / 100% 36px no-repeat local,
    radial-gradient(farthest-side at 50% 0, rgba(6, 47, 56, .16), transparent) center top / 100% 12px no-repeat scroll,
    radial-gradient(farthest-side at 50% 100%, rgba(6, 47, 56, .16), transparent) center bottom / 100% 12px no-repeat scroll; }
.faq .a.scroll::-webkit-scrollbar { width: 6px; }
.faq .a.scroll::-webkit-scrollbar-thumb { background: var(--teal-200); border-radius: 999px; }
.faq .a.scroll:focus-visible { outline: 2px solid var(--teal-700); outline-offset: -2px; border-radius: 8px; }
.faq .tag { font-size: 12px; color: var(--muted); font-weight: 600; }

/* ---------- 개체 상세 ---------- */
.detail { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.gallery { display: grid; gap: 12px; position: sticky; top: calc(var(--top) + 20px); }
.gallery .main { position: relative; aspect-ratio: 1; border-radius: 20px; overflow: hidden; background: var(--teal-50); }
.gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.gallery .main .nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); display: grid; place-items: center; box-shadow: var(--shadow); }
.gallery .main .prev { left: 12px; }
.gallery .main .next { right: 12px; }
.gallery .main .count { position: absolute; right: 14px; bottom: 14px; background: rgba(4, 35, 42, .7); color: #fff; font-size: 12px; padding: 3px 10px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.gallery .thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; }
.gallery .thumbs button { aspect-ratio: 1; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: none; }
.gallery .thumbs button[aria-current="true"] { border-color: var(--teal-700); }
.gallery .thumbs img { width: 100%; height: 100%; object-fit: cover; }
.profile { display: grid; gap: 20px; }
.profile .name-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.profile h1 { font-family: var(--font-hand); font-weight: 400; font-size: clamp(3rem, 2.2rem + 3vw, 4.4rem); line-height: 1; color: var(--teal-900); letter-spacing: 0; }
.profile .stamp { position: static; transform: rotate(-6deg); font-size: 18px; }
.profile .summary { font-size: var(--fs-18); color: var(--ink-2); font-weight: 600; }
.facts-table { display: grid; grid-template-columns: max-content 1fr; border-top: 2px solid var(--ink); }
.facts-table dt, .facts-table dd { margin: 0; padding: 11px 4px; border-bottom: 1px solid var(--line); font-size: var(--fs-16); }
.facts-table dt { color: var(--muted); font-weight: 700; padding-right: 28px; }
.facts-table dd { font-weight: 600; font-variant-numeric: tabular-nums; }
.likes { display: grid; gap: 10px; }
.likes div { display: grid; grid-template-columns: 76px 1fr; gap: 10px; font-size: var(--fs-14); }
.likes b { color: var(--teal-700); }
.apply { display: grid; gap: 10px; padding: 20px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.apply .row { display: flex; flex-wrap: wrap; gap: 10px; }
.apply .row .btn { flex: 1 1 180px; }
.apply .notice { display: flex; gap: 10px; align-items: flex-start; padding: 14px; border-radius: 12px; background: var(--amber-50); color: var(--ink); font-size: var(--fs-14); font-weight: 600; }
.apply .notice.done { background: #e4f2ea; }
.apply .changed { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.share { display: flex; gap: 8px; flex-wrap: wrap; }
.og-preview { display: grid; grid-template-columns: 120px 1fr; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.og-preview img { width: 120px; height: 100%; object-fit: cover; aspect-ratio: 1.2; }
.og-preview div { padding: 10px 12px; display: grid; gap: 2px; align-content: center; }
.og-preview b { font-size: var(--fs-14); }
.og-preview span { font-size: 12px; color: var(--muted); }
.article { display: grid; gap: 36px; max-width: 760px; }
.article section { display: grid; gap: 10px; }
.article h2 { font-size: var(--fs-22); font-weight: 800; display: flex; gap: 10px; align-items: center; }
.article h2::before { content: ""; width: 6px; height: 22px; border-radius: 3px; background: var(--amber); }
.article p { white-space: pre-line; color: var(--ink-2); font-size: 17px; line-height: 1.85; }
.legacy { font-size: 13px; color: var(--muted); padding: 14px 16px; background: var(--teal-50); border-radius: 12px; display: grid; gap: 4px; word-break: break-all; }
.legacy code { font-size: 12px; color: var(--teal-800); }

/* ---------- 탭 & 페이지네이션 ---------- */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 26px; }
.tabs button { min-height: 42px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-weight: 800; font-size: var(--fs-14); }
.tabs button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.tabs button .n { margin-left: 6px; opacity: .65; font-weight: 600; font-variant-numeric: tabular-nums; }
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 36px; flex-wrap: wrap; }
.pager button { min-width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-weight: 700; font-variant-numeric: tabular-nums; }
.pager button[aria-current="page"] { background: var(--teal-700); color: #fff; border-color: var(--teal-700); }

/* ---------- 2단 레이아웃 & 미디어 블록 ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.split.flip > :first-child { order: 2; }
.media { position: relative; border-radius: 20px; overflow: hidden; background: var(--teal-50); box-shadow: var(--shadow); }
.media img, .media video { width: 100%; height: 100%; object-fit: cover; }
.media-pair { display: grid; grid-template-columns: 1.2fr 1fr; gap: 12px; }
.media-pair .media { aspect-ratio: 4 / 5; }
.prose { display: grid; gap: 16px; }
.prose h2 { font-size: var(--fs-40); font-weight: 800; }
.prose h3 { font-size: var(--fs-22); font-weight: 800; }
.prose p { color: var(--ink-2); font-size: var(--fs-18); }
.checks { list-style: none; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%; background: var(--teal-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23086872' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 14px no-repeat; }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.pillar { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.pillar img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; }
.pillar div { padding: 20px; display: grid; gap: 8px; }
.pillar h3 { font-size: var(--fs-22); font-weight: 800; }
.pillar p { color: var(--muted); font-size: var(--fs-16); }

/* ---------- 후원 계산기 ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 28px; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: clamp(20px, 3vw, 36px); }
.calc .amounts button { color: var(--ink); border-color: var(--line); }
.calc .amounts button[aria-pressed="true"] { background: var(--teal-700); color: #fff; border-color: var(--teal-700); }
.calc .big { font-size: var(--fs-40); font-weight: 900; color: var(--teal-800); font-variant-numeric: tabular-nums; }
.impacts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.impact-card { border-radius: 16px; background: var(--teal-50); padding: 14px; display: grid; gap: 6px; justify-items: center; text-align: center; transition: transform .2s; }
.impact-card img { width: 100%; max-width: 150px; aspect-ratio: 1; object-fit: contain; }
.impact-card b { font-size: var(--fs-22); color: var(--teal-800); font-variant-numeric: tabular-nums; }
.impact-card span { font-size: 13px; color: var(--muted); }
.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.way { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 10px; align-content: start; }
.way h3 { font-size: var(--fs-18); font-weight: 800; display: flex; align-items: center; gap: 8px; }
.way h3 .ico { color: var(--teal-700); }
.way p { color: var(--muted); font-size: var(--fs-14); }
.way .btn { justify-self: start; }
.ext::after { content: "↗"; margin-left: 2px; font-size: .9em; }

/* ---------- 폼 ---------- */
.form { display: grid; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: clamp(20px, 3vw, 34px); }
.form .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; align-content: start; }
.field label, .field .lbl { font-size: var(--fs-14); font-weight: 800; color: var(--ink-2); }
.field label .req { color: var(--danger); margin-left: 2px; }
.field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), .field select, .field textarea {
  width: 100%; min-height: 46px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff;
  padding: 10px 14px; font: inherit; font-size: var(--fs-16); color: var(--ink);
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:not([type="checkbox"]):not([type="radio"]):focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal-700); box-shadow: 0 0 0 4px var(--teal-100); }
.field .hint { font-size: 12.5px; color: var(--muted); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--danger); }
.field .err { display: none; font-size: 12.5px; color: var(--danger); font-weight: 700; }
.field.invalid .err { display: block; }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-14); color: var(--ink-2); }
.agree input { width: 20px; height: 20px; accent-color: var(--teal-700); margin-top: 3px; }
.sheet-preview { font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; background: var(--teal-950); color: #bfe0de; border-radius: 12px; padding: 14px; overflow-x: auto; white-space: pre; }

/* ---------- 토스트 ---------- */
.toast { position: fixed; left: 50%; bottom: calc(28px + env(safe-area-inset-bottom, 0px)); z-index: 90; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 700; font-size: var(--fs-14); box-shadow: var(--shadow-lg); transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 푸터 ---------- */
.site-footer { background: var(--teal-950); color: #a9c9c8; padding-block: 56px calc(40px + env(safe-area-inset-bottom, 0px)); font-size: var(--fs-14); }
.site-footer .top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.site-footer h4 { color: #fff; font-size: var(--fs-14); margin-bottom: 12px; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a:hover { color: #fff; }
.site-footer .org { display: grid; gap: 6px; }
.site-footer .org img { height: 32px; width: auto; margin-bottom: 8px; }
.site-footer .bottom { display: flex; flex-wrap: wrap; gap: 14px 24px; justify-content: space-between; padding-top: 24px; }

/* ---------- 어드민 시안 ---------- */
.admin-body { background: #eef2f1; }
.admin { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; }
.admin-side { background: var(--teal-950); color: #b8d6d5; padding: 22px 16px; display: flex; flex-direction: column; gap: 6px; position: sticky; top: 0; height: 100vh; }
.admin-side .brand img { height: 28px; }
.admin-side .brand span { color: #fff; font-weight: 800; font-size: 13px; }
.admin-side nav { display: grid; gap: 2px; margin-top: 22px; }
.admin-side nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-weight: 700; font-size: var(--fs-14); }
.admin-side nav a.on, .admin-side nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.admin-side nav a[data-locked="true"] { opacity: .35; pointer-events: none; }
.admin-side .role { margin-top: auto; display: grid; gap: 6px; font-size: 12px; }
.admin-side .role select { height: 38px; border-radius: 10px; border: 0; padding: 0 10px; font: inherit; font-weight: 700; }
.admin-main { padding: 0 clamp(16px, 3vw, 36px) 80px; min-width: 0; }
.admin-bar { position: sticky; top: 0; z-index: 10; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 14px 0; background: #eef2f1; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.admin-bar h1 { font-size: var(--fs-22); font-weight: 800; margin-right: auto; display: flex; align-items: center; gap: 10px; }
.admin-bar .saved { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.publish { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 8px 0 16px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line); font-weight: 800; }
.switch { position: relative; width: 52px; height: 30px; border-radius: 999px; background: #c4d0cf; border: 0; transition: background-color .2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .2); transition: transform .2s; }
.switch[aria-checked="true"] { background: var(--teal-700); }
.switch[aria-checked="true"]::after { transform: translateX(22px); }
.switch:disabled { opacity: .5; cursor: not-allowed; }
.admin-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; display: grid; gap: 16px; }
.card h2 { font-size: var(--fs-18); font-weight: 800; display: flex; align-items: center; gap: 10px; }
.card h2 small { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.drop { border: 2px dashed var(--teal-200); border-radius: 16px; background: var(--teal-50); padding: 26px; text-align: center; display: grid; gap: 8px; justify-items: center; transition: background-color .2s, border-color .2s; cursor: pointer; }
.drop.over { background: var(--teal-100); border-color: var(--teal-700); }
.drop b { font-size: var(--fs-18); }
.drop span { font-size: 13px; color: var(--muted); }
.upl { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.upl figure { margin: 0; position: relative; border-radius: 12px; overflow: hidden; background: var(--teal-50); cursor: grab; border: 2px solid transparent; }
.upl figure.dragging { opacity: .4; }
.upl figure:first-child { border-color: var(--teal-700); }
.upl figure:first-child::before { content: "대표"; position: absolute; top: 6px; left: 6px; z-index: 2; background: var(--teal-700); color: #fff; font-size: 11px; font-weight: 800; padding: 1px 8px; border-radius: 999px; }
.upl img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.upl figcaption { font-size: 11px; padding: 6px 8px; line-height: 1.35; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.upl figcaption b { color: var(--stamp-done); }
.upl .rm { position: absolute; top: 6px; right: 6px; z-index: 2; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(4, 35, 42, .7); color: #fff; font-size: 14px; line-height: 1; }
.fgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px 16px; align-items: start; }
.auto-note { font-size: 12px; color: var(--stamp-done); font-weight: 700; }
.missing { display: none; padding: 12px 14px; border-radius: 12px; background: #fbeaea; color: var(--danger); font-size: 13px; font-weight: 700; }
.missing.show { display: block; }
.log { list-style: none; display: grid; gap: 10px; font-size: 13px; max-height: 360px; overflow-y: auto; }
.log li { display: grid; gap: 2px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.log time { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 12px; }
.metric { display: grid; grid-template-columns: 1fr auto; gap: 6px; font-size: 13px; }
.metric b { font-variant-numeric: tabular-nums; }
.meter { height: 8px; border-radius: 999px; background: var(--teal-100); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--teal-700); width: 0; transition: width .4s; }

/* ---------- 점검 안내 ---------- */
.maint { min-height: 100vh; display: grid; place-items: center; background: var(--paper); padding: 24px; }
.maint .box { max-width: 560px; text-align: center; display: grid; gap: 18px; justify-items: center; }
.maint img.illus { width: min(380px, 90%); }
.maint h1 { font-size: var(--fs-40); font-weight: 900; }
.maint .links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* ---------- 반응형 ---------- */
@media (max-width: 1080px) {
  .gnb { display: none; }
  .menu-btn { display: grid; place-items: center; }
  .header-tools .btn-donate-top { display: none; }
  .join-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .yt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer .top { grid-template-columns: 1fr 1fr; }
  .admin { grid-template-columns: minmax(0, 1fr); }
  .admin-side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .admin-side nav { display: flex; flex-wrap: wrap; margin: 0; }
  .admin-side .role { margin: 0 0 0 auto; }
  /* 1fr은 내용의 최소 폭보다 줄어들지 않아 모바일에서 가로 넘침이 생기므로 minmax(0, 1fr) */
  .admin-grid { grid-template-columns: minmax(0, 1fr); }
  #af > * { min-width: 0; }
  #btn-sample-photos { white-space: normal; height: auto; min-height: 40px; padding-block: 8px; text-align: left; }
}
@media (max-width: 900px) {
  .story { height: auto; }
  .story-pin { position: relative; top: 0; height: auto; grid-template-columns: 1fr; padding-block: 64px; }
  .story-stage { aspect-ratio: 4 / 5; max-height: none; }
    .impact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shorts { grid-template-columns: repeat(3, minmax(220px, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; }
  .shorts > * { scroll-snap-align: start; }
  .ngrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail { grid-template-columns: 1fr; }
  .gallery { position: static; }
  .split, .calc { grid-template-columns: 1fr; }
  .split.flip > :first-child { order: 0; }
  .pillars, .ways { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  :root { --header-h: 62px; }
  .brand img { height: 28px; }
  .header-tools .lang-btn span { display: none; }
  .proto-ribbon .long { display: none; }
  .proto-ribbon .short { display: inline; }
  .fab { left: 0; right: 0; bottom: 0; flex-direction: row; gap: 0; padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px)); background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -16px rgba(0, 0, 0, .3); }
  .fab a { flex: 1; justify-content: center; height: 46px; padding: 0 8px; margin: 0 4px; box-shadow: none; }
  .fab a:hover { transform: none; }
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }
  .admin-body { padding-bottom: 0; }
  .hero { min-height: 92svh; }
  .hero video, .hero .hero-poster { object-position: 58% 50%; }
  .hero::after { background: linear-gradient(0deg, rgba(4, 35, 42, .9) 0%, rgba(4, 35, 42, .45) 55%, rgba(4, 35, 42, .25) 100%); }
  .scroll-cue { display: none; }
  .sec-head.row { grid-template-columns: 1fr; }
  .ngrid, .join-grid, .yt-grid, .impacts { grid-template-columns: 1fr; }
  .impacts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .join { min-height: 300px; }
  .agrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .kcard .body { padding: 10px 12px 12px; }
  .nametag { font-size: 1.35rem; top: 10px; left: 10px; }
  .stamp { font-size: 12px; right: 8px; bottom: 8px; }
  .kcard .traits { display: none; }
  .filters { position: static; }
  .steps { grid-template-columns: 1fr; }
  .form .grid2 { grid-template-columns: 1fr; }
  .site-footer .top { grid-template-columns: 1fr; }
  .media-pair { grid-template-columns: 1fr; }
  .faq .a { padding-left: 20px; }
  .faq .a.scroll { max-height: min(24em, 55svh); }
  .nlist a { grid-template-columns: 1fr auto; }
  .nlist .cat { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* =========================================================
   v2 — 피드백 반영 (2026-10-11)
   ========================================================= */


/* ---------- 실시간 표시 점 (최근 구조 RESCUE LOG) ---------- */
.live { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: .14em; color: #ffa59e; }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #ff5a4f; animation: ping 1.8s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(255, 90, 79, .6); } 80%, 100% { box-shadow: 0 0 0 10px rgba(255, 90, 79, 0); } }

/* ---------- 스크롤 스토리: 진행 표시 ---------- */
.story-visual { display: grid; gap: 14px; width: 100%; justify-self: center; }
.story-stage { max-height: calc(100vh - var(--top) - 130px); }
.story-stage figure img { transform: scale(1.06); transition: transform 5s ease; }
.story-stage figure.active img { transform: scale(1); }
.story-meta { display: flex; align-items: center; gap: 16px; }
.story-segs { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.story-segs i { position: relative; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.story-segs i::after { content: ""; position: absolute; inset: 0; background: var(--amber); transform: scaleX(var(--p, 0)); transform-origin: left; transition: transform .2s linear; }
.story-count { font-weight: 800; font-size: 15px; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.story-count span { color: #6f9897; }
.story-chip { display: inline-flex; align-items: center; gap: 6px; width: max-content; padding: 5px 12px; border-radius: 999px; background: rgba(242, 165, 65, .14); color: var(--amber); font-size: 12.5px; font-weight: 800; }
.story-steps { position: relative; }
.story-steps::before { content: ""; position: absolute; left: 29px; top: 26px; bottom: 26px; width: 2px; background: rgba(255, 255, 255, .12); }
.story-steps::after { content: ""; position: absolute; left: 29px; top: 26px; width: 2px; height: var(--rail, 0px); background: var(--amber); transition: height .25s ease; }
.story-steps li { cursor: pointer; }
.story-steps li::before { left: 14px; top: 15px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--teal-950); border: 2px solid rgba(255, 255, 255, .2); font-size: 12px; z-index: 1; }
.story-steps li.active::before, .story-steps li.passed::before { background: var(--amber); border-color: var(--amber); color: var(--teal-950); }
.story-steps li.passed { opacity: .7; }
.story-steps li:hover { opacity: .9; }
.story-hint { display: flex; align-items: center; gap: 12px; font-size: 13.5px; color: #a9c9c8; font-weight: 600; }
.story-hint .mouse { position: relative; width: 22px; height: 34px; border: 2px solid rgba(255, 255, 255, .55); border-radius: 12px; flex: none; }
.story-hint .mouse::after { content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 7px; margin-left: -2px; border-radius: 2px; background: var(--amber); animation: cue 1.6s ease-in-out infinite; }
.story-hint .done-txt { display: none; color: var(--amber); }
.story.done .story-hint .go-txt { display: none; }
.story.done .story-hint .done-txt { display: inline; }
.story.done .story-hint .mouse::after { animation: none; }

/* ---------- 해외 입양 노선 지도 ---------- */
.route { margin-top: 40px; display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 18px; align-items: stretch; }
.route-map { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(255, 255, 255, .08); background: radial-gradient(120% 140% at 12% 100%, #0b4a55 0%, var(--teal-950) 62%); }
.route-scroll { overflow-x: auto; scrollbar-width: thin; }
.route-canvas { position: relative; aspect-ratio: 1600 / 562; min-width: 720px; background: url("../img/map/pacific-dots.webp") center / 100% 100% no-repeat; }
.route-canvas svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.route .arc-glow { fill: none; stroke: rgba(242, 165, 65, .16); stroke-width: 9; stroke-linecap: round; }
.route .arc { fill: none; stroke: var(--amber); stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 1 9; }
.route .city { fill: #fff; }
.route .origin { fill: var(--amber); }
.route .pulse { fill: none; stroke: var(--amber); stroke-width: 2.5; transform-origin: center; transform-box: fill-box; animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(2.8); opacity: 0; } }
.route .city-label { fill: #eaf5f4; font-size: 23px; font-weight: 800; font-family: var(--font-sans); paint-order: stroke; stroke: rgba(4, 35, 42, .9); stroke-width: 7px; stroke-linejoin: round; }
.route .city-sub { fill: #9fc2c1; font-size: 17px; font-weight: 600; font-family: var(--font-sans); paint-order: stroke; stroke: rgba(4, 35, 42, .9); stroke-width: 6px; }
.route .plane { fill: #fff; }
.route-legend { position: absolute; left: 16px; bottom: 14px; z-index: 2; display: flex; flex-wrap: wrap; gap: 8px; }
.route-legend span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: rgba(4, 35, 42, .7); color: #d6ebea; font-size: 12.5px; font-weight: 700; backdrop-filter: blur(4px); }
.route-legend .o::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }
.route-legend .d::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.route-legend .l::before { content: ""; width: 16px; border-top: 2px dotted var(--amber); }
.route-side { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; min-height: 260px; padding: 20px; border-radius: var(--radius); overflow: hidden; color: #fff; isolation: isolate; }
.route-side img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.route-side::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(4, 35, 42, .95) 0%, rgba(4, 35, 42, .1) 65%); }
.route-side b { font-size: var(--fs-18); font-weight: 800; }
.route-side span { font-size: 13.5px; color: #d2e7e6; }
.route-side .link-arrow { color: var(--amber); margin-top: 6px; }
.route-note { margin-top: 14px; color: #a9c9c8; font-size: var(--fs-14); }
.swipe-hint { display: none; font-size: 12.5px; color: #8fb3b2; margin-top: 8px; }

/* ---------- 푸터 SNS: 브랜드 고유 색상 ---------- */
.sns { display: flex; align-items: center; gap: 10px; }
.sns a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; transition: transform .15s ease, box-shadow .15s ease; }
.sns a:hover { transform: translateY(-2px); box-shadow: 0 10px 20px -10px rgba(0, 0, 0, .7); }
.sns svg { width: 22px; height: 22px; display: block; }
.sns .ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.sns .yt { background: #ff0000; }
.sns .fb { background: #1877f2; }
.sns .kk { background: #fee500; }

/* ---------- 서브 메뉴 활성 표시 ---------- */
.subnav a { transition: color .15s, border-color .15s; }
.subnav a.on { color: var(--teal-800); border-color: var(--teal-700); }

/* ---------- 폼: 세그먼트 선택 · 체크박스 · 사진 첨부 ---------- */
.radios { display: grid; grid-template-columns: repeat(auto-fit, minmax(76px, 1fr)); gap: 6px; }
.radios label { position: relative; display: flex; align-items: center; justify-content: center; gap: 6px; height: 46px; padding: 0 10px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink-2); font-weight: 700; font-size: 14px; white-space: nowrap; cursor: pointer; transition: border-color .15s, background-color .15s, color .15s; }
.radios label:hover { border-color: var(--teal-200); }
.radios input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.radios label:has(input:checked) { border-color: var(--teal-700); background: var(--teal-50); color: var(--teal-800); box-shadow: inset 0 0 0 1px var(--teal-700); }
.radios label:has(input:checked)::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: var(--teal-700) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 10px no-repeat; flex: none; }
.radios label:has(input:focus-visible) { outline: 3px solid var(--amber); outline-offset: 2px; }
.inline-check { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); font-weight: 600; cursor: pointer; }
.inline-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--teal-700); }
.field .lbl .req, .field label .req { color: var(--danger); margin-left: 2px; }
.form .field + .field, .form .grid2 { align-items: start; }
.filepick { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1.5px dashed var(--teal-200); border-radius: 14px; background: var(--teal-50); cursor: pointer; transition: border-color .2s, background-color .2s; }
.filepick:hover, .filepick.over { border-color: var(--teal-700); background: var(--teal-100); }
.filepick .fi { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: #fff; color: var(--teal-700); box-shadow: 0 6px 14px -8px rgba(6, 47, 56, .45); flex: none; }
.filepick .fi .ico { width: 22px; height: 22px; }
.filepick b { display: block; font-size: 15px; color: var(--ink); }
.filepick span { font-size: 12.5px; color: var(--muted); }
.file-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.file-list:empty { display: none; }
.file-list figure { position: relative; margin: 0; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--teal-50); }
.file-list img { width: 100%; height: 100%; object-fit: cover; }
.file-list figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 6px 4px; font-size: 10.5px; color: #fff; background: linear-gradient(0deg, rgba(0, 0, 0, .65), transparent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-list button { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(4, 35, 42, .75); color: #fff; font-size: 13px; line-height: 1; }

/* ---------- 문의 창구 카드 (배경 사진) ---------- */
.inq { display: grid; gap: 14px; }
.inq-card { position: relative; display: grid; gap: 6px; align-content: end; min-height: 176px; padding: 20px 22px; border-radius: 18px; overflow: hidden; color: #fff; isolation: isolate; }
.inq-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s ease; }
.inq-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(4, 35, 42, .94) 0%, rgba(4, 35, 42, .66) 55%, rgba(4, 35, 42, .2) 100%); }
.inq-card:hover > img { transform: scale(1.05); }
.inq-card .k { font-size: 11.5px; font-weight: 800; letter-spacing: .14em; color: var(--amber); }
.inq-card h3 { font-size: var(--fs-18); font-weight: 800; }
.inq-card p { color: #cfe4e3; font-size: 14px; max-width: 36ch; }
.inq-card .acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.btn-kakao { background: #fee500; color: #191919; }
.btn-kakao:hover { background: #ffeb3b; }
.btn-kakao svg { width: 18px; height: 18px; }
.btn-glass { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .35); backdrop-filter: blur(6px); }
.btn-glass:hover { background: rgba(255, 255, 255, .24); }

/* ---------- 뉴스레터 ---------- */
.nl-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 32px; align-items: center; padding: clamp(26px, 4vw, 52px); border-radius: 26px; overflow: hidden; color: #fff; isolation: isolate; margin-bottom: 40px; }
.nl-hero > img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.nl-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(4, 35, 42, .95) 0%, rgba(4, 35, 42, .82) 45%, rgba(4, 35, 42, .35) 100%); }
.nl-hero .eyebrow { color: var(--amber); }
.nl-hero h2 { font-size: var(--fs-40); font-weight: 900; letter-spacing: -0.03em; }
.nl-hero p { color: #d2e7e6; font-size: var(--fs-18); max-width: 42ch; }
.nl-form { display: grid; gap: 12px; margin-top: 8px; padding: 16px; border-radius: 18px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); backdrop-filter: blur(8px); max-width: 520px; }
.nl-row { display: flex; gap: 8px; }
.nl-row input { flex: 1; min-width: 0; height: 52px; border-radius: 999px; border: 0; padding: 0 20px; font: inherit; font-size: var(--fs-16); }
.nl-row input:focus { outline: 3px solid var(--amber); outline-offset: 2px; }
.nl-row .btn { height: 52px; }
.nl-form .agree { color: #d9ebea; }
.nl-form .err { display: none; color: #ffb4ae; font-size: 12.5px; font-weight: 700; }
.nl-form.invalid .err { display: block; }
.nl-hero .form-result { max-width: 520px; }
.nl-hero .form-result .sheet-preview { background: rgba(0, 0, 0, .35); }
.nl-cover { justify-self: end; width: min(320px, 100%); display: grid; gap: 10px; padding: 14px; border-radius: 18px; background: #fff; color: var(--ink); box-shadow: var(--shadow-lg); transform: rotate(2.5deg); }
.nl-cover .img { aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--teal-50); }
.nl-cover .img img { width: 100%; height: 100%; object-fit: cover; }
.nl-cover .k { font-size: 11px; font-weight: 800; letter-spacing: .14em; color: var(--teal-700); }
.nl-cover b { font-size: 17px; line-height: 1.35; }
.nl-cover span { font-size: 13px; color: var(--muted); }
.issues { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.issue { display: grid; gap: 10px; align-content: start; padding: 12px; border-radius: 16px; background: #fff; border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.issue:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.issue .img { aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--teal-900); display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 22px; }
.issue .img img { width: 100%; height: 100%; object-fit: cover; }
.issue .no { font-size: 12px; font-weight: 800; letter-spacing: .06em; color: var(--teal-700); }
.issue b { font-size: 15px; line-height: 1.4; }

/* ---------- 후원: 감성 여정 ---------- */
.journey { position: relative; display: grid; gap: 26px; padding: clamp(22px, 3.5vw, 44px); border-radius: 26px; background: var(--teal-950); color: #e3f0ef; overflow: hidden; }
.journey-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.journey .amounts button { color: #fff; border-color: rgba(255, 255, 255, .35); }
.journey .amounts button[aria-pressed="true"] { background: var(--amber); color: var(--teal-950); border-color: var(--amber); }
.journey-msg { font-size: clamp(1.35rem, 1rem + 1.5vw, 2rem); font-weight: 800; line-height: 1.45; color: #fff; max-width: 32ch; min-height: 2.9em; }
.journey-msg em { font-style: normal; color: var(--amber); }
.stages { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stages .line { position: absolute; left: 12.5%; right: 12.5%; top: 22px; height: 2px; background: rgba(255, 255, 255, .14); }
.stages .line i { display: block; height: 100%; width: 0; background: var(--amber); transition: width .5s ease; }
.stage { display: grid; gap: 10px; align-content: start; opacity: .4; filter: grayscale(.85); transition: opacity .45s ease, filter .45s ease; }
.stage.lit { opacity: 1; filter: none; }
.stage .dot { position: relative; z-index: 1; justify-self: center; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--teal-950); border: 2px solid rgba(255, 255, 255, .25); color: #fff; font-weight: 900; font-size: 14px; transition: background-color .3s, border-color .3s, color .3s; }
.stage.lit .dot { background: var(--amber); border-color: var(--amber); color: var(--teal-950); }
.stage .ph { position: relative; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; }
.stage .ph img { width: 100%; height: 100%; object-fit: cover; }
.stage .ph span { position: absolute; left: 10px; bottom: 10px; padding: 2px 8px; border-radius: 999px; background: rgba(4, 35, 42, .65); color: #fff; font-size: 11px; }
.stage .amt { font-size: 12px; font-weight: 800; color: var(--amber); letter-spacing: .04em; }
.stage h3 { font-size: 17px; font-weight: 800; color: #fff; }
.stage p { font-size: 14px; color: #a9c9c8; }
.journey-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.journey-cta small { color: #8fb3b2; font-size: 12.5px; max-width: 52ch; }
.helpers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.helper { display: grid; align-content: start; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.helper:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.helper .ph { position: relative; aspect-ratio: 1; background: var(--teal-50); }
.helper .ph img { width: 100%; height: 100%; object-fit: cover; }
.helper .tag { position: absolute; top: 10px; left: 10px; padding: 3px 10px; border-radius: 999px; background: var(--danger); color: #fff; font-size: 12px; font-weight: 800; }
.helper .bd { display: grid; gap: 6px; padding: 14px 16px 16px; }
.helper h3 { font-family: var(--font-hand); font-weight: 400; font-size: 2rem; line-height: 1; color: var(--teal-900); letter-spacing: 0; }
.helper p { font-size: 14px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.helper .btn { justify-self: start; margin-top: 4px; }

/* ---------- 입양 필터 (드롭다운) ---------- */
.filters .wrap { gap: 12px; padding-block: 14px; }
.ftop { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.status-tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.status-tabs button { position: relative; height: 44px; padding: 0 14px; border: 0; background: none; color: var(--muted); font-weight: 800; font-size: 14.5px; white-space: nowrap; }
.status-tabs button .n { margin-left: 4px; font-weight: 600; opacity: .8; font-variant-numeric: tabular-nums; }
.status-tabs button:hover { color: var(--ink); }
.status-tabs button[aria-selected="true"] { color: var(--teal-800); }
.status-tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 3px; border-radius: 3px; background: var(--teal-700); }
.fbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.dd { position: relative; }
.dd-btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px 0 16px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--muted); font-size: 14px; font-weight: 600; }
.dd-btn b { color: var(--ink); font-weight: 800; }
.dd-btn .ico { width: 16px; height: 16px; transition: transform .2s; }
.dd-btn:hover { border-color: var(--teal-200); }
.dd-btn.set { border-color: var(--teal-700); background: var(--teal-50); }
.dd-btn.set b { color: var(--teal-800); }
.dd.open .dd-btn .ico { transform: rotate(180deg); }
.dd-menu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; display: none; min-width: 210px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.dd.open .dd-menu { display: grid; gap: 2px; }
.dd-menu button { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 12px; border: 0; border-radius: 10px; background: none; font-size: 14px; font-weight: 600; text-align: left; color: var(--ink-2); }
.dd-menu button:hover { background: var(--teal-50); }
.dd-menu button[aria-selected="true"] { color: var(--teal-800); font-weight: 800; background: var(--teal-50); }
.dd-menu button .n { color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.dd-menu button:disabled { opacity: .35; cursor: not-allowed; }
.fsep { width: 1px; height: 26px; background: var(--line); margin: 0 4px; }
.ftags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ftag { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 8px 0 12px; border: 0; border-radius: 999px; background: var(--teal-800); color: #fff; font-size: 13px; font-weight: 700; }
.ftag span { font-size: 15px; opacity: .75; }
.fclear { border: 0; background: none; color: var(--muted); font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 연혁 ---------- */
.hist { display: grid; gap: 22px; }
.hist-hint { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--teal-700); }
.yrail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(108px, 1fr); gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: thin; }
.ycard { display: grid; gap: 8px; text-align: left; padding: 14px 14px 12px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; transition: border-color .15s, background-color .15s, transform .15s; }
.ycard:hover { border-color: var(--teal-700); transform: translateY(-2px); }
.ycard .y { font-size: 20px; font-weight: 900; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.ycard .c { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.ycard .m { height: 6px; border-radius: 3px; background: var(--teal-100); overflow: hidden; }
.ycard .m i { display: block; height: 100%; background: var(--teal-600); }
.ycard[aria-selected="true"] { background: var(--teal-900); border-color: var(--teal-900); }
.ycard[aria-selected="true"] .y { color: #fff; }
.ycard[aria-selected="true"] .c { color: #9fc2c1; }
.ycard[aria-selected="true"] .m { background: rgba(255, 255, 255, .15); }
.ycard[aria-selected="true"] .m i { background: var(--amber); }
.ysum { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 22px; align-items: center; padding: 18px 22px; border-radius: 18px; background: var(--teal-50); }
.ysum .big { font-size: var(--fs-28); font-weight: 900; letter-spacing: -0.02em; white-space: nowrap; }
.ysum .big small { display: block; font-size: 13px; color: var(--muted); font-weight: 700; letter-spacing: 0; }
.stack { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: #fff; }
.stack i { display: block; height: 100%; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 12.5px; color: var(--ink-2); font-weight: 600; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend span::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.ysum .nav { display: flex; gap: 6px; }
.ysum .nav button { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; }
.ysum .nav button:hover:not(:disabled) { border-color: var(--teal-700); color: var(--teal-700); }
.ysum .nav button:disabled { opacity: .35; cursor: not-allowed; }
.tl2 { list-style: none; display: grid; }
.tl2 li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.tl2 .mon { font-size: 22px; font-weight: 900; color: var(--teal-800); font-variant-numeric: tabular-nums; line-height: 1.2; }
.tl2 .mon small { display: block; font-size: 12px; font-weight: 700; color: var(--muted); }
.tl2 .evs { display: flex; flex-wrap: wrap; gap: 8px; align-content: start; }
.ev { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.ev::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--teal-600)); flex: none; }
.ev.org { background: var(--amber-50); border-color: #efd7b0; font-weight: 800; }

/* ---------- 관리자 로그인 ---------- */
.login { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(400px, .9fr); background: #fff; }
.login-visual { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; padding: 44px; color: #fff; overflow: hidden; isolation: isolate; }
.login-visual > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.login-visual::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(4, 35, 42, .95) 0%, rgba(4, 35, 42, .35) 60%, rgba(4, 35, 42, .15) 100%); }
.login-visual h2 { font-size: var(--fs-40); font-weight: 900; letter-spacing: -0.03em; max-width: 15ch; }
.login-visual p { color: #d2e7e6; max-width: 42ch; }
.login-panel { display: grid; place-items: center; padding: 40px 24px; }
.login-box { width: min(400px, 100%); display: grid; gap: 18px; }
.login-box .brand img { height: 36px; }
.login-box h1 { font-size: var(--fs-28); font-weight: 900; }
.login-box > p { color: var(--muted); }
.login-form { display: grid; gap: 14px; }
.login-form .row2 { display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; }
.login-form .row2 a { color: var(--teal-700); font-weight: 700; }
.pw { position: relative; }
.pw button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--muted); font-size: 13px; font-weight: 700; padding: 6px; }
.login-err { display: none; padding: 10px 12px; border-radius: 10px; background: #fbeaea; color: var(--danger); font-size: 13px; font-weight: 700; }
.login-err.show { display: block; }
.demo-accounts { display: grid; gap: 8px; padding: 14px; border-radius: 14px; background: var(--teal-50); font-size: 13px; }
.demo-accounts > span { color: var(--ink-2); font-weight: 700; }
.demo-accounts button { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-weight: 700; font-size: 13.5px; }
.demo-accounts button:hover { border-color: var(--teal-700); }
.demo-accounts button span { color: var(--muted); font-weight: 600; font-size: 12.5px; }
.sec-notes { display: grid; gap: 4px; font-size: 12.5px; color: var(--muted); list-style: none; }
.sec-notes li::before { content: "· "; }
.admin-user { display: grid; gap: 2px; padding: 12px; border-radius: 12px; background: rgba(255, 255, 255, .06); color: #cfe4e3; font-size: 12.5px; }
.admin-user b { color: #fff; font-size: 14px; }
.admin-user button { justify-self: start; margin-top: 6px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; background: none; color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; }

/* ---------- 게시글 상세 ---------- */
.post-wrap { max-width: 800px; margin-inline: auto; }
.post-head { display: grid; gap: 14px; padding-bottom: 26px; margin-bottom: 30px; border-bottom: 1px solid var(--line); }
.post-cat { display: inline-flex; width: max-content; padding: 4px 12px; border-radius: 999px; background: var(--teal-50); color: var(--teal-800); font-size: 13px; font-weight: 800; }
.post-head h1 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.45rem); font-weight: 900; letter-spacing: -0.03em; line-height: 1.3; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.post-meta .by { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); font-weight: 700; }
.post-meta .by img { width: 30px; height: 30px; border-radius: 50%; background: var(--teal-950); padding: 6px; }
.post-body { display: grid; gap: 14px; font-size: 17.5px; line-height: 1.9; color: var(--ink-2); }
.post-body figure { margin: 8px 0; border-radius: 16px; overflow: hidden; background: var(--teal-50); }
.post-body figure img { width: 100%; height: auto; }
.post-empty { display: grid; gap: 10px; padding: 24px; border-radius: 18px; background: var(--teal-50); }
.post-empty b { font-size: var(--fs-18); }
.post-empty p { color: var(--ink-2); font-size: 15px; }
.post-empty a { color: var(--teal-700); font-weight: 700; font-size: 14px; }
.post-share { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 40px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
.post-nav a { display: grid; gap: 4px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; transition: border-color .15s, transform .15s; }
.post-nav a:hover { border-color: var(--teal-700); transform: translateY(-2px); }
.post-nav small { font-size: 12px; font-weight: 800; color: var(--muted); }
.post-nav b { font-size: 15px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.post-nav .next { text-align: right; }
.post-nav .none { visibility: hidden; }
.post-top { background: #fff; border-bottom: 1px solid var(--line); }
.post-top .crumbs { color: var(--muted); padding-block: 18px; }
.post-top .crumbs a:hover { color: var(--teal-700); }

/* ---------- 개체 상세 v2 ---------- */
.keyfacts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.keyfacts div { display: grid; gap: 2px; padding: 14px 10px; border-radius: 14px; background: #fff; border: 1px solid var(--line); text-align: center; }
.keyfacts span { font-size: 12px; font-weight: 700; color: var(--muted); }
.keyfacts b { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.apply.open-card { background: var(--teal-950); border-color: var(--teal-950); color: #fff; }
.apply.open-card .changed { color: #9fc2c1; }
.apply.open-card .changed a { color: #fff; }
.apply.open-card .btn-line { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.apply.open-card .btn-line:hover { background: rgba(255, 255, 255, .1); }
.apply.open-card .btn-teal { background: var(--amber); color: var(--teal-950); }
.apply.open-card .btn-teal:hover { background: #f6b65f; }
.detail-article { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 48px; align-items: start; }
.toc { position: sticky; top: calc(var(--top) + 24px); display: grid; gap: 2px; border-left: 2px solid var(--line); }
.toc b { padding: 0 14px 8px; font-size: 12px; letter-spacing: .12em; color: var(--muted); }
.toc a { margin-left: -2px; padding: 6px 14px; border-left: 2px solid transparent; font-size: 14px; font-weight: 700; color: var(--muted); }
.toc a.on, .toc a:hover { color: var(--teal-800); border-left-color: var(--teal-700); }

.sec-nav-m { display: none; }

/* ---------- v2 반응형 ---------- */
@media (max-width: 1080px) {
  .issues, .helpers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .login { grid-template-columns: 1fr; }
  .login-visual { min-height: 260px; padding: 28px; }
}
@media (max-width: 900px) {
  .partners { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .route { grid-template-columns: 1fr; }
  .swipe-hint { display: block; }
  .nl-hero { grid-template-columns: 1fr; }
  .nl-cover { justify-self: start; transform: none; }
  .stages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stages .line { display: none; }
  .detail-article { grid-template-columns: 1fr; }
  .toc { display: none; }
  .sec-nav-m { display: flex; }
  .ysum { grid-template-columns: 1fr auto; }
  .ysum > div:nth-child(2) { grid-column: 1 / -1; order: 3; }
}
@media (max-width: 760px) {
  /* 좁은 화면에서는 범례가 인천 라벨을 덮지 않도록 지도 아래로 내린다 */
  .route-map { display: flex; flex-direction: column; }
  .route-legend { order: 2; position: static; padding: 4px 14px 14px; }
}
@media (max-width: 640px) {
  .ftop { flex-direction: column; align-items: stretch; }
  .search { max-width: none; flex: none; }
  .fbar { display: grid; grid-template-columns: 1fr 1fr; }
  .fsep { display: none; }
  .dd-btn { width: 100%; justify-content: space-between; }
  .dd-menu { left: 0; right: 0; min-width: 0; }
  .ftags { grid-column: 1 / -1; }
  .issues, .helpers { grid-template-columns: 1fr; }
  .partners { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .keyfacts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tl2 li { grid-template-columns: 1fr; gap: 8px; }
  .nl-row { flex-direction: column; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav .next { text-align: left; }
  .story-meta { display: none; }
}

/* ---------- v2 폼 높이 통일 (입력칸·선택·세그먼트 모두 48px) ---------- */
.field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), .field select { height: 48px; min-height: 48px; padding-top: 0; padding-bottom: 0; }
.radios { grid-template-columns: repeat(auto-fit, minmax(64px, 1fr)); }
.radios label { height: 48px; }
/* 선택지가 4개인 그룹은 칸이 좁아지면(태블릿·모바일) 2×2로 바꿔 글자가 테두리 밖으로 나가지 않게 한다 */
.field:has(> .radios) { container-type: inline-size; }
@container (max-width: 460px) {
  .radios:has(> label:nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.field label.inline-check { font-size: 13px; font-weight: 600; color: var(--muted); }
/* 섹션 메뉴 바로 아래에 오는 필터 바는 메뉴 높이만큼 내려서 고정 (겹침 방지) */
.subnav + .filters { top: calc(var(--top) + 55px); }
/* 그리드 항목의 최소 폭(min-content)이 상태 탭 전체 길이로 커져 모바일에서 가로 넘침이 생기던 문제 */
.filters .wrap > * { min-width: 0; }
.status-tabs { max-width: 100%; }
.status-tabs::-webkit-scrollbar { display: none; }

/* =========================================================
   v3 — 메인 캐러셀 · 최근 구조(사진 카드)
   ========================================================= */

/* ---------- 가로 목록 캐러셀: 왼쪽은 본문 정렬, 오른쪽은 화면 끝까지 ---------- */
.rail-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.rail-top .quick-chips { margin: 0; min-width: 0; }
.rail-nav { display: inline-flex; align-items: center; flex: none; padding: 4px; border-radius: 14px; background: var(--teal-50); border: 1px solid var(--teal-100); }
.rail-btn { width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 10px; background: none; color: var(--teal-800); cursor: pointer; transition: background-color .15s, opacity .15s; }
.rail-btn:hover:not(:disabled) { background: #fff; }
.rail-btn:disabled { opacity: .3; cursor: default; }
.rail-btn:focus-visible { outline: 3px solid var(--amber); outline-offset: 1px; }
.rail-div { width: 1px; height: 16px; background: var(--teal-200); }
.rail {
  --rail-pad: max(20px, calc((100% - var(--wrap)) / 2));
  display: grid; grid-auto-flow: column; grid-auto-columns: 280px; gap: 20px;
  overflow-x: auto; overscroll-behavior-x: contain;
  padding: 6px var(--rail-pad) 12px; scroll-padding-inline: var(--rail-pad);
  scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.rail.dragging { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.rail.dragging > * { pointer-events: none; }
.rail img { -webkit-user-drag: none; user-select: none; }
.rail:focus-visible { outline: 3px solid var(--amber); outline-offset: -3px; }
.rail-foot { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 20px; }
.rail-dots { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 20px; }
.rail-dot { position: relative; flex: none; width: 9px; height: 9px; padding: 0; border: 0; border-radius: 999px; background: var(--teal-200); cursor: pointer; transition: width .3s ease, height .3s ease, background-color .3s ease; }
.rail-dot::after { content: ""; position: absolute; inset: -9px -5px; } /* 누르기 쉬운 크기 */
.rail-dot:hover { background: var(--teal-600); }
.rail-dot[aria-current="true"] { width: 28px; background: var(--teal-700); }
.rail-dot.far { width: 6px; height: 6px; } /* 앞뒤로 점이 더 있다는 표시 */
.rail-dot:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.rail-foot .rail-nav { display: none; }
.rail-static .rail-nav, .rail-static .rail-foot { visibility: hidden; }
.more-card { display: grid; place-items: center; min-height: 300px; padding: 24px; background: var(--teal-900); color: #fff; text-align: center; }
.more-card > div { display: grid; gap: 10px; justify-items: center; }
.more-card b { font-size: 20px; }
.more-card span { color: #a9c9c8; }
@media (max-width: 900px) { .rail { grid-auto-columns: 44%; gap: 16px; } }
@media (max-width: 640px) {
  .rail { grid-auto-columns: 72%; gap: 14px; }
  .rail-top .rail-nav { display: none; }
  .rail-foot .rail-nav { display: inline-flex; }
  .rail-foot { justify-content: space-between; }
  .rail-dots { justify-content: flex-start; gap: 8px; }
  .rail-dot { width: 8px; height: 8px; }
  .rail-dot[aria-current="true"] { width: 22px; }
  .rail-btn { width: 36px; height: 36px; }
}
@media (prefers-reduced-motion: reduce) { .rail-dot { transition: none; } }


/* ---------- 최근 구조: 구조 소식의 인스타그램 표지를 크게 보여 주는 사진 카드 ---------- */
.rb-head .live { color: var(--danger); }
.rescue { padding-block: clamp(56px, 7vw, 96px); background: var(--paper); }
.rb { display: grid; grid-template-columns: minmax(220px, 270px) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.rb-head { display: grid; gap: 18px; justify-items: start; }
.rb-head h2 { font-size: var(--fs-40); font-weight: 900; line-height: 1.18; letter-spacing: -0.03em; }
.rb-stat { display: flex; align-items: center; gap: 12px; width: 100%; padding-block: 16px; border-block: 1px solid var(--line); }
.rb-stat b { font-size: 3rem; font-weight: 900; line-height: 1; letter-spacing: -0.03em; color: var(--teal-700); }
.rb-stat span { font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.rb-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; list-style: none; }
.rb-cards a { display: grid; gap: 10px; }
.rb-cards .cover { position: relative; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; background: var(--teal-50); box-shadow: var(--shadow); }
.rb-cards .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.rb-cards a:hover .cover img { transform: scale(1.04); }
.ago-chip { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: rgba(255, 255, 255, .94); color: var(--danger); font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ago-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #ff5a4f; }
.rb-cards .meta { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.rb-cards h3 { font-size: 17px; font-weight: 800; line-height: 1.4; }
.rb-cards a:hover h3 { color: var(--teal-700); }
@media (max-width: 900px) {
  .rb { grid-template-columns: 1fr; }
  .rb-head { grid-template-columns: minmax(0, 1fr) auto; align-items: end; width: 100%; }
  .rb-head .live { grid-column: 1 / -1; }
  .rb-head h2 br { display: none; }
  .rb-stat { grid-column: 1 / -1; }
  .rb-cards { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 46%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
  .rb-cards::-webkit-scrollbar { display: none; }
  .rb-cards li { scroll-snap-align: start; }
}
@media (max-width: 640px) {
  .rb-head { grid-template-columns: 1fr; }
  .rb-cards { grid-auto-columns: 74%; }
}
