/* 한국어 글꼴: 깔끔한 고딕(Pretendard, 무료 공개 글꼴) — 필요한 글자만 나눠 받는 방식이라 가벼움 */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css');
/* Pets.pi 공통 스타일 — 가이드라인 색·글꼴 */
/* 글꼴 — 외부 주소 대신 우리 서버 /fonts 에 둔다 (무료 공개 글꼴, README 참고).
   파일이 없으면 기기 기본 글꼴로 보인다. */
@font-face { font-family: 'Fraunces'; src: url('/fonts/Fraunces-SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Gowun Batang'; src: url('/fonts/GowunBatang-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Gowun Batang'; src: url('/fonts/GowunBatang-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Gowun Dodum'; src: url('/fonts/GowunDodum-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('/fonts/Nunito-Variable.woff2') format('woff2'); font-weight: 400 800; font-display: swap; }

:root {
  --navy: #0E1A36;
  --navy-2: #16264A;
  --navy-soft: #3A4A6E;
  --ink-2: #4A5470;
  --gold: #D4AE6A;
  --gold-ink: #A9823A;
  --gold-deep: #8A6A2E;
  --cream: #F7E9D0;
  --milk: #FBF6EE;
  --paper: #FFFDF8;
  --line: #E4D9C6;
  --placeholder: #EADFCB;
  --peach: #F4B6A0;
  --sage: #B5C9AE;
  --butter: #F6DFA4;
  --sky: #B9CCE4;
  --lavender: #DCCDE6;

  --font-display: 'Fraunces', Georgia, 'Pretendard Variable', Pretendard, serif;
  --font-display-ko: 'Pretendard Variable', Pretendard, system-ui, sans-serif;
  --font-body: 'Pretendard Variable', Pretendard, 'Nunito', system-ui, -apple-system, sans-serif;

  --radius: 6px;
  --radius-lg: 8px;
  --wrap: 1080px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--milk);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); }
a:hover { color: var(--navy-soft); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── 상단 바 ── */
.topbar { position: sticky; top: 0; z-index: 50; background: var(--navy); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 60px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; flex-shrink: 0; }
.brand img { width: 34px; height: 34px; border-radius: 6px; object-fit: cover; }
.wordmark { font-family: var(--font-display); font-weight: 600; font-size: 22px; color: var(--cream); line-height: 1; }
.wordmark b { font-weight: 600; color: var(--gold); }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.btn-emergency {
  height: 38px; padding: 0 14px; border-radius: 6px; border: 0;
  background: var(--gold); color: var(--navy); font-weight: 800; font-size: 13px;
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none; white-space: nowrap;
}
.btn-emergency:hover { color: var(--navy); background: #DDBB7C; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 6px; border: 1px solid var(--navy-soft);
  background: transparent; color: var(--cream); display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.lang-select {
  height: 38px; border-radius: 6px; border: 1px solid var(--navy-soft);
  background: transparent; color: var(--cream); padding: 0 10px; font-size: 13px; font-weight: 700;
}
.lang-select option { color: var(--navy); }

/* 메뉴 서랍 */
.drawer { position: fixed; inset: 0; z-index: 60; display: none; }
.drawer.open { display: block; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(14, 26, 54, 0.45); }
.drawer-panel {
  position: absolute; right: 0; top: 0; bottom: 0; width: min(320px, 86vw);
  background: var(--milk); padding: 20px; display: flex; flex-direction: column; gap: 6px; overflow-y: auto;
}
.drawer-panel a { display: block; padding: 12px 8px; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 700; }
.drawer-panel a small { display: block; font-weight: 400; color: var(--ink-2); font-family: var(--font-display-ko); }

/* ── 섹션 ── */
.section { padding: 40px 0 8px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 14px; }
.eyebrow { font-size: 12px; letter-spacing: 0.2em; font-weight: 800; color: var(--gold-ink); text-transform: uppercase; }
.section-title { margin: 2px 0 0; font-family: var(--font-display); font-size: 28px; font-weight: 600; line-height: 1.15; }
.section-sub { font-family: var(--font-display-ko); font-size: 16px; color: var(--ink-2); }
.more { font-size: 14px; font-weight: 700; white-space: nowrap; }

/* ── 버튼 ── */
.btn {
  min-height: 48px; padding: 0 20px; border-radius: 6px; border: 0; cursor: pointer;
  background: var(--navy); color: var(--cream); font-weight: 800; font-size: 15px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;
}
.btn:hover { color: var(--cream); background: var(--navy-2); }
.btn-outline { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.btn-outline:hover { background: var(--paper); color: var(--navy); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #DDBB7C; color: var(--navy); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

/* ── 칩 ── */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 36px; padding: 0 14px; border-radius: 6px; border: 1px solid var(--line);
  background: var(--paper); font-size: 13px; font-weight: 700; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--cream); }

/* ── 카드 ── */
.card { background: var(--paper); border-radius: var(--radius); border: 1px solid var(--line); }
.row-scroll { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.row-scroll > * { scroll-snap-align: start; }
.lost-card {
  flex: 0 0 168px; background: var(--paper); border-radius: var(--radius); padding: 8px 8px 12px;
  box-shadow: 0 1px 0 var(--line); display: flex; flex-direction: column; gap: 6px; text-decoration: none;
}
.lost-card .ph { height: 128px; border-radius: 6px; background: var(--placeholder); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.lost-card .ph img { width: 100%; height: 100%; object-fit: cover; }
.lost-card strong { font-size: 15px; }
.lost-card span.meta { font-size: 13px; color: var(--ink-2); }
.badge { align-self: flex-start; font-size: 11px; font-weight: 800; border-radius: 6px; padding: 2px 8px; }
.badge-lost { background: var(--gold); color: var(--navy); }
.badge-found { background: var(--sage); color: var(--navy); }

.empty {
  background: var(--paper); border: 1px dashed var(--line); border-radius: var(--radius);
  padding: 28px 20px; text-align: center; color: var(--ink-2); display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.empty svg { width: 72px; height: 72px; }

/* ── 폼 ── */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 800; font-size: 14px; }
.field input, .field select, .field textarea {
  min-height: 46px; border-radius: 6px; border: 1px solid var(--line); background: var(--paper); padding: 10px 12px;
}
.field textarea { min-height: 96px; resize: vertical; }
.field .hint { font-size: 13px; color: var(--ink-2); }
.seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }

/* ── 지도 ── */
.map-box { position: relative; height: 320px; border-radius: var(--radius-lg); overflow: hidden; background: #EFE7D6; border: 1px solid var(--line); }
.map-box.map-box { background: #EFE7D6; font-family: var(--font-body); }
.map-search { display: flex; gap: 8px; margin-bottom: 10px; }
.map-search input { flex: 1; min-width: 0; min-height: 44px; border-radius: 6px; border: 1px solid var(--line); background: var(--paper); padding: 0 16px; }
.pin { background: none; border: 0; }
.place-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.place-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; }
.place-item strong { display: block; }
.place-item span { font-size: 13px; color: var(--ink-2); }
.tag24 { font-size: 11px; font-weight: 800; background: var(--navy); color: var(--cream); border-radius: 6px; padding: 2px 7px; }

/* ── 사진 슬라이드 ── */
.slide-box { position: relative; height: 220px; border-radius: var(--radius-lg); overflow: hidden; background: var(--placeholder); }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; display: flex; align-items: center; justify-content: center; }
.slide.on { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.dots span { width: 6px; height: 6px; border-radius: 3px; background: #D6CBB6; transition: width .3s; }
.dots span.on { width: 18px; background: var(--navy); }
@media (prefers-reduced-motion: reduce) { .slide { transition: none; } }

/* ── 달력 ── */
.cal { overflow: hidden; }
.cal-cover { min-height: 150px; background: var(--placeholder); display: flex; flex-direction: column; justify-content: space-between; gap: 12px; padding: 12px 16px; }
.cal-cover-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.cal-month { font-family: var(--font-display); font-size: 28px; font-weight: 600; white-space: nowrap; }
.cal-nav { display: flex; gap: 6px; }
.cal-nav button { width: 36px; height: 36px; border-radius: 6px; border: 1px solid var(--navy); background: var(--paper); cursor: pointer; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; padding: 12px 10px 14px; text-align: center; font-size: 12px; }
.cal-dow { font-weight: 800; color: var(--ink-2); padding-bottom: 4px; }
.cal-dow.sun { color: var(--gold-deep); }
.cal-day {
  min-height: 56px; border-radius: 6px; background: var(--milk); border: 0; padding: 4px 2px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 12px;
}
.cal-day.today { background: var(--navy); color: var(--cream); font-weight: 800; }
.cal-day svg { width: 22px; height: 22px; }
.cal-day .habits { display: flex; gap: 2px; }
.cal-day .habits i { width: 5px; height: 5px; border-radius: 50%; background: var(--gold-ink); display: block; }

/* 시트 (하단에서 올라오는 창) */
.sheet { position: fixed; inset: 0; z-index: 70; display: none; }
.sheet.open { display: block; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(14, 26, 54, 0.45); }
.sheet-panel {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 88vh; overflow-y: auto;
  background: var(--milk); border-radius: 24px 24px 0 0; padding: 20px 16px 28px;
}
.sheet-panel h3 { margin: 0 0 12px; font-family: var(--font-display); font-size: 24px; font-weight: 600; }
.sticker-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.sticker-btn {
  aspect-ratio: 1; border-radius: 6px; border: 2px solid transparent; background: var(--paper); cursor: pointer;
  display: flex; align-items: center; justify-content: center; padding: 6px;
}
.sticker-btn svg { width: 100%; height: 100%; }
.sticker-btn[aria-pressed="true"] { border-color: var(--gold-ink); background: #FFF6E3; }
.sticker-btn[disabled] { opacity: 0.4; cursor: not-allowed; }

/* ── 이달의 사진 ── */
.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: end; }
.polaroid { background: var(--paper); border-radius: 6px; padding: 6px 6px 10px; display: flex; flex-direction: column; gap: 6px; }
.polaroid .ph { background: var(--placeholder); }
.polaroid.p1 { border: 2px solid var(--gold); }
.polaroid.p1 .ph { height: 124px; }
.polaroid.p2 { transform: rotate(-3deg); }
.polaroid.p2 .ph { height: 96px; }
.polaroid.p3 { transform: rotate(3deg); }
.polaroid.p3 .ph { height: 84px; }
.polaroid div.rank { font-size: 12px; font-weight: 800; text-align: center; }

/* ── 장소 카드 ── */
.place-cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.place-cat { border-radius: var(--radius); padding: 16px; min-height: 96px; display: flex; flex-direction: column; justify-content: space-between; text-decoration: none; font-weight: 800; }
.place-cat small { font-weight: 400; font-size: 13px; font-family: var(--font-display-ko); }
@media (min-width: 720px) { .place-cats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ── 메인 영상 ── */
.hero { position: relative; min-height: 300px; background: var(--navy-2); display: flex; align-items: flex-end; overflow: hidden; }
.hero video, .hero img.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero .hero-text { position: relative; padding: 24px 16px; width: 100%; max-width: var(--wrap); margin: 0 auto; }
.hero h1 { margin: 0; font-family: var(--font-display); font-size: 36px; font-weight: 600; color: var(--cream); line-height: 1.05; }
.hero p { margin: 4px 0 0; font-family: var(--font-display-ko); font-size: 17px; color: var(--gold); }
.ad-tag { position: absolute; top: 14px; right: 14px; font-size: 11px; font-weight: 800; letter-spacing: .12em; background: var(--cream); color: var(--navy); border-radius: 6px; padding: 3px 7px; }
.hero-search { margin-top: 20px; display: flex; flex-direction: column; gap: 8px; max-width: 560px; }
.hero-search label { color: var(--cream); font-weight: 800; font-size: 15px; }
.hero-search-row { display: flex; gap: 8px; }
.hero-search-row input { flex: 1; min-width: 0; min-height: 50px; border-radius: 6px; border: 0; background: var(--paper); padding: 0 18px; font-size: 16px; }
.hero-search-row .btn { min-height: 50px; }
.hero-area { color: #C9BFA9; font-size: 13px; }
@media (min-width: 720px) { .hero { min-height: 420px; } .hero h1 { font-size: 56px; } }

/* ── 푸터 ── */
.footer { margin-top: 48px; background: var(--navy); color: #C9BFA9; padding: 32px 0 40px; font-size: 13px; }
.footer .wrap { display: flex; flex-direction: column; gap: 14px; }
.footer a { color: #C9BFA9; }
.footer .brand img { width: 44px; height: 44px; border-radius: 6px; }
.footer .tagline { font-size: 11px; letter-spacing: .3em; }

/* 토스트 */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90;
  background: var(--navy); color: var(--cream); padding: 12px 18px; border-radius: 6px; font-weight: 700; font-size: 14px;
  max-width: calc(100vw - 32px); display: none;
}
.toast.show { display: block; }

/* 인쇄 (실종 전단) */
@media print {
  .topbar, .footer, .no-print { display: none !important; }
  body { background: #fff; }
}

/* 첫 화면 로고 · 장소 칩 (2026-11-21) */
.hero-logo { width: 150px; height: auto; display: block; margin-bottom: 14px; }
.cat-chips { display: flex; gap: 10px; overflow-x: auto; padding: 18px 2px 4px; scrollbar-width: none; }
.cat-chips::-webkit-scrollbar { display: none; }
.cat-chips a { flex: 0 0 auto; width: 64px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: var(--cream); font-size: 12px; font-weight: 700; }
.cat-chips img { width: 52px; height: 52px; display: block; }
.leaflet-div-icon.pin { background: none; border: 0; }
.pin img { display: block; filter: drop-shadow(0 2px 2px rgba(14,26,54,.25)); }

/* ── 머리 메뉴 (PC) ── */
.topnav { display: none; gap: 22px; margin-left: 24px; margin-right: auto; }
.topnav a { color: var(--cream); text-decoration: none; font-weight: 700; font-size: 15px; padding: 6px 0; border-bottom: 2px solid transparent; }
.topnav a:hover { color: #fff; border-bottom-color: var(--gold); }
@media (min-width: 900px) { .topnav { display: flex; } }
.icon-btn.dark { color: var(--navy); border-color: var(--line); }
.link-btn { background: none; border: 0; padding: 0; font-size: 13px; color: var(--ink-2); text-decoration: underline; cursor: pointer; }
body.no-scroll { overflow: hidden; }

/* ── 오른쪽 빠른 메뉴 ── */
.quick { position: fixed; right: 14px; bottom: 20px; z-index: 45; display: flex; flex-direction: column; gap: 8px; opacity: 0; pointer-events: none; transform: translateY(8px); transition: .25s; }
.quick.show { opacity: 1; pointer-events: auto; transform: none; }
.quick-btn { width: 46px; height: 46px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line); color: var(--navy); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 3px 12px rgba(14,26,54,.16); }
.quick-btn.gold { background: var(--gold); border-color: var(--gold); }
.quick-btn img { width: 32px; height: 32px; }

/* ── 최근 본 것 (아래에서 올라오는 창) ── */
.sheet-lite { position: fixed; inset: 0; z-index: 70; display: none; }
.sheet-lite.open { display: block; }
.sheet-lite-bg { position: absolute; inset: 0; background: rgba(14,26,54,.45); }
.sheet-lite-panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 70vh; overflow: auto; background: var(--milk); border-radius: 20px 20px 0 0; padding: 18px 16px 28px; }
@media (min-width: 720px) { .sheet-lite-panel { left: auto; right: 20px; bottom: 20px; width: 360px; border-radius: 6px; } }
.sheet-lite-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.recent-list { display: flex; flex-direction: column; }
.recent-list a { display: flex; align-items: center; gap: 10px; padding: 10px 4px; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 14px; }
.recent-list img { width: 32px; height: 32px; }

/* ── 동네 검색 창 (화면 전체) ── */
.search-ov { position: fixed; inset: 0; z-index: 80; display: none; background: rgba(14,26,54,.5); }
.search-ov.open { display: block; }
.search-ov-panel { background: var(--milk); min-height: 100%; padding: 16px 16px 40px; }
@media (min-width: 720px) { .search-ov-panel { min-height: 0; max-width: 640px; margin: 60px auto 0; border-radius: 6px; padding: 22px 24px 28px; } }
.search-ov-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-size: 18px; }
.search-ov-form { display: flex; gap: 8px; }
.search-ov-form input { flex: 1; min-width: 0; min-height: 50px; border-radius: 6px; border: 1px solid var(--line); background: var(--paper); padding: 0 18px; font-size: 16px; }
.search-ov-sec { margin-top: 22px; }
.search-ov-sec-head { display: flex; justify-content: space-between; align-items: center; font-weight: 800; font-size: 14px; margin-bottom: 8px; }
.search-ov-sec .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.search-ov-cats { display: flex; gap: 12px; flex-wrap: wrap; }
.search-ov-cats a { width: 60px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; font-size: 12px; font-weight: 700; }
.search-ov-cats img { width: 48px; height: 48px; }

/* ── 휴대폰 아래 탭 바 ── */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 46; display: flex; justify-content: space-around; align-items: flex-end; height: 62px; padding-bottom: env(safe-area-inset-bottom); background: var(--paper); border-top: 1px solid var(--line); }
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 100%; text-decoration: none; color: var(--ink-2); font-size: 11px; font-weight: 700; }
.tabbar svg { width: 24px; height: 24px; }
.tabbar a[aria-current="page"] { color: var(--navy); }
.tabbar a[aria-current="page"] svg { stroke-width: 2.2; }
.tabbar .tab-main .tab-plus { width: 46px; height: 46px; margin-top: -18px; border-radius: 50%; background: var(--gold); color: var(--navy); font-size: 28px; font-weight: 400; line-height: 44px; text-align: center; box-shadow: 0 3px 10px rgba(14,26,54,.2); }
@media (max-width: 899px) {
  body { padding-bottom: 62px; }
  .quick { bottom: 76px; }
  .quick [href="/lost.html#new"] { display: none; } /* 아래 탭 바에 이미 있음 */
}
@media (min-width: 900px) { .tabbar { display: none; } }
@media print { .tabbar, .quick, .search-ov, .sheet-lite { display: none !important; } }

/* ═══════════════════════════════════════════════
   산뜻한 스카이 블루 테마 (2026-11-21)
   바탕 흰색 · 주색 스카이 블루 · 포인트 햇살 노랑
   글자는 진한 파랑 잉크(가독성), 흰 글자는 진한 하늘색 위에만
   ═══════════════════════════════════════════════ */
:root {
  --sky: #2EA3E6;        /* 주색 — 버튼, 띠 */
  --sky-deep: #0B78BE;   /* 작은 글자·링크용 진한 하늘색 */
  --sky-mid: #6CC2F2;
  --sky-soft: #E6F4FD;   /* 옅은 띠 바탕 */
  --sky-mist: #F3FAFE;
  --sun: #FFC93C;        /* 포인트 — 응급·공고 버튼 */
  --navy: #15324C;       /* 글자 잉크 (예전 남색 자리) */
  --navy-2: #1E4466;
  --navy-soft: #5D7A93;
  --ink-2: #4E6577;
  --gold: #FFC93C;
  --gold-ink: #C98A00;
  --gold-deep: #A06C00;
  --cream: #FFFFFF;
  --milk: #FFFFFF;
  --paper: #FFFFFF;
  --line: #DCEAF4;
  --placeholder: #E7F2FA;
  --peach: #FFC9B8; --sage: #BFE8D2; --butter: #FFE9A8; --sky-2: #BFE3FA; --lavender: #E1D6F7;
}
body { background: #fff; }

/* 머리: 흰 바탕 + 아래 선 */
.topbar { background: #fff; border-bottom: 1px solid var(--line); }
.wordmark { color: var(--navy); }
.wordmark b { color: var(--sky); }
.icon-btn { color: var(--navy); border-color: var(--line); }
.topnav a { color: var(--navy); }
.topnav a:hover { color: var(--sky-deep); border-bottom-color: var(--sky); }
.btn-emergency { background: var(--sun); color: var(--navy); }

/* 버튼 · 칩 */
.btn { background: var(--sky); color: #fff; }
.btn:hover { background: var(--sky-deep); color: #fff; }
.btn-gold { background: var(--sun); color: var(--navy); }
.btn-gold:hover { background: #FFD766; color: var(--navy); }
.btn-outline { background: #fff; color: var(--sky-deep); border-color: var(--sky); }
.chip[aria-pressed="true"] { background: var(--sky); border-color: var(--sky); color: #fff; }
.tag24, .cal-day.today, .dots span.on { background: var(--sky); color: #fff; }
.toast { background: var(--navy); color: #fff; }
.eyebrow { color: var(--sky-deep); }

/* 검색 띠 · 칩 글자 */
.hero-search label { color: var(--navy); }
.hero-search-row input { border: 1px solid var(--line); background: #fff; }
.hero-area { color: var(--ink-2); }
.cat-chips a { color: var(--navy); }

/* 아래 */
.footer { background: var(--sky-mist); color: var(--ink-2); border-top: 1px solid var(--line); }
.footer a { color: var(--ink-2); }
.footer .wordmark { color: var(--navy); }
.tabbar .tab-main .tab-plus { background: var(--sun); color: var(--navy); }
.tabbar a[aria-current="page"] { color: var(--sky-deep); }
.quick-btn.gold { background: var(--sun); border-color: var(--sun); }

/* ── 처음 로그인 환영 카드 ── */
.wc-ov, .wc-ov.open { z-index: 90; display: flex; align-items: flex-end; justify-content: center; }
.wc-panel { width: 100%; min-height: 0; max-height: 92vh; overflow: auto; border-radius: 22px 22px 0 0; padding: 26px 20px 28px; text-align: center; background: #fff; }
@media (min-width: 720px) { .wc-ov { align-items: center; } .wc-panel { max-width: 440px; margin: 0; border-radius: 6px; padding: 30px 28px; } }
.wc-logo { display: block; margin: 0 auto 10px; border-radius: 50%; }
.wc-panel h2 { margin: 0; font-size: 22px; font-weight: 900; color: var(--navy); }
.wc-sub { margin: 6px 0 18px; font-size: 14px; color: var(--ink-2); }
.wc-q { display: block; text-align: left; font-weight: 800; font-size: 14px; margin: 16px 0 8px; color: var(--navy); }
.wc-pets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.wc-pets button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px; border-radius: 6px; border: 1.5px solid var(--line); background: var(--sky-mist); font: inherit; font-size: 14px; font-weight: 700; color: var(--navy); cursor: pointer; }
.wc-pets button[aria-checked="true"] { border-color: var(--sky); background: var(--sky-soft); box-shadow: 0 0 0 3px rgba(46,163,230,.18); }
.wc-emo { font-size: 28px; line-height: 1; }
.wc-in { width: 100%; min-height: 48px; border-radius: 6px; border: 1px solid var(--line); background: #fff; padding: 0 18px; font-size: 16px; box-sizing: border-box; }
.wc-in:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 3px rgba(46,163,230,.18); }
.wc-note { margin: 14px 0 0; font-size: 12px; color: var(--ink-2); }
.wc-btns { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; margin-top: 18px; }
.wc-btns .btn { min-height: 48px; justify-content: center; }

/* ── 미리보기 3: 박스 모서리를 전체적으로 덜 둥글게 (동그란 아이콘 버튼은 그대로) ── */
:root { --radius: 6px; --radius-lg: 8px; }
.btn, .btn-emergency, .lang-select { border-radius: 6px; }
.chip { border-radius: 6px; }
.badge, .tag24, .ad-tag { border-radius: 6px; }
.field input, .field select, .field textarea, .map-search input, .hero-search-row input, .search-ov-form input, .wc-in { border-radius: 6px; }
.lost-card .ph, .cal-day, .sticker-btn, .wc-pets button { border-radius: 6px; }
.sheet-panel { border-radius: 14px 14px 0 0; }
.sheet-lite-panel { border-radius: 14px 14px 0 0; }
@media (min-width: 720px) { .sheet-lite-panel { border-radius: 6px; } .search-ov-panel { border-radius: 6px; } .wc-panel { border-radius: 6px; } }
.wc-panel { border-radius: 14px 14px 0 0; }
.toast { border-radius: 6px; }

/* 맨 위 노란 "지금 문 연 병원" 버튼 — 세로 낮게 (38 → 32px), 옆 동그란 버튼도 맞춤 */
.btn-emergency { height: 32px; padding: 0 12px; border-radius: 6px; font-size: 12.5px; }
.topbar .icon-btn { width: 34px; height: 34px; }


/* 지도 목록 안내문 (24시 병원이 없을 때 전체 병원으로 바꿔 보여 줄 때) */
.map-note { margin: 0 0 10px; padding: 10px 12px; border-radius: 6px; background: #FFF6D6; color: #6B5000; font-size: 13px; line-height: 1.5; }

/* 지도 오른쪽 위 "내 위치로" 버튼 */
.map-locate { width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 6px; background: #fff; color: var(--sky-deep, #0B78BE); box-shadow: 0 2px 8px rgba(8,34,60,.22); cursor: pointer; }
.map-locate:hover { color: var(--navy); }

/* 다이어리: 우리 아이 줄 (휴대폰 중간 크기 사진, 3마리까지) */
.pet-strip-head { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; }
.pet-strip-head strong { font-size: 16px; font-weight: 900; color: var(--navy); }
.pet-edit-link { border: 0; background: none; color: var(--sky-deep); font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; padding: 4px 2px; }
.pet-strip { display: flex; gap: 12px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.pet-card { flex: 0 0 auto; width: 104px; display: flex; flex-direction: column; align-items: center; gap: 6px; border: 0; background: none; padding: 0; font: inherit; cursor: pointer; color: var(--navy); }
.pet-ph { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--sky-mist, #EAF5FC); border: 3px solid transparent; box-shadow: 0 4px 12px rgba(21,50,76,.12); transition: border-color .2s, transform .2s; }
.pet-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pet-emoji { font-size: 44px; }
.pet-card[aria-pressed="true"] .pet-ph { border-color: var(--sky, #2EA3E6); transform: scale(1.04); }
.pet-name { font-size: 14px; font-weight: 800; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pet-card[aria-pressed="false"] .pet-name { color: var(--ink-2); }
.pet-add .pet-ph { background: #fff; border: 2px dashed var(--line); box-shadow: none; }
.pet-plus { font-size: 36px; font-weight: 300; color: var(--sky-deep); line-height: 1; }
.pet-add .pet-name { color: var(--ink-2); font-weight: 700; font-size: 13px; }
@media (min-width: 720px) { .pet-card { width: 128px; } .pet-ph { width: 120px; height: 120px; } }
.cal-cover.has-photo { background-size: cover; background-position: center; min-height: 200px; color: #fff; }
.cal-cover.has-photo .cal-month { color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.35); }
.cal-cover-name { font-size: 13px; color: var(--ink-2); }
.cal-cover.has-photo .cal-cover-name { color: #fff; font-weight: 800; font-size: 15px; text-shadow: 0 1px 6px rgba(0,0,0,.4); }
.pet-photo-pick { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.pet-photo-preview { width: 88px; height: 88px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--sky-mist, #EAF5FC); font-size: 30px; cursor: pointer; flex: 0 0 auto; }
.pet-photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.pet-photo-pick .hint { font-size: 12px; color: var(--ink-2); margin-top: 6px; }
.cal-cover.has-photo .cal-nav button { color: var(--navy); background: rgba(255,255,255,.9); border-color: #fff; font-size: 18px; font-weight: 800; }
.cal-cover.has-photo { background-position: center 35%; }
/* 우리 아이 사진: 둥근 원 대신 네모(모서리만 살짝 둥글게) — 얼굴이 더 크게 보이게 */
.pet-ph { border-radius: 6px; }
.pet-add .pet-ph { border-radius: 6px; }
.pet-photo-preview { border-radius: 6px; }
.pet-card[aria-pressed="true"] .pet-ph { transform: none; }
@media (max-width: 719px) { .pet-strip { gap: 10px; } .pet-card { width: calc((100% - 20px) / 3); } .pet-ph { width: 100%; height: auto; aspect-ratio: 1; } }

/* 다이어리: 그날 사진 · 영상, 달력 칸 사진, 책자 버튼 */
.day-media { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.day-media-box { position: relative; aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; border: 2px dashed var(--line); background: #F7FAFC; }
.day-media-box.filled { border-style: solid; border-color: transparent; }
.day-media-box img, .day-media-box video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.day-media-pick { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; cursor: pointer; font-size: 26px; color: var(--ink-2); }
.day-media-pick small { font-size: 12px; font-weight: 700; }
.day-media-box.filled .day-media-pick { opacity: 0; }
.day-media-x { position: absolute; top: 6px; right: 6px; z-index: 2; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(0,0,0,.55); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }
.cal-day { position: relative; }
.cal-day.has-photo { background-size: cover; background-position: center; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.7); font-weight: 800; }
.cal-day.has-photo svg { filter: drop-shadow(0 1px 2px rgba(0,0,0,.4)); }
.cal-day .vmark { position: absolute; right: 3px; bottom: 2px; font-style: normal; font-size: 9px; color: #fff; background: rgba(0,0,0,.55); border-radius: 4px; padding: 1px 3px; }
.book-cta { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 14px 16px; border-radius: 6px; background: linear-gradient(100deg, #2EA3E6, #5CC0F0); color: #fff; text-decoration: none; }
.book-cta:hover { color: #fff; filter: brightness(1.04); }
.book-cta-ico { font-size: 30px; }
.book-cta strong { font-size: 16px; font-weight: 900; }
.book-cta span span { font-size: 12px; opacity: .95; }
.book-cta b { margin-left: auto; font-size: 26px; }

/* 책자 페이지 */
.bk-back { display: inline-block; margin-bottom: 10px; font-size: 14px; font-weight: 700; color: var(--sky-deep); text-decoration: none; }
.bk-range { display: flex; align-items: center; gap: 10px; padding: 12px; margin-top: 18px; }
.bk-nav { width: 40px; height: 40px; border-radius: 6px; border: 1px solid var(--line); background: #fff; font-size: 20px; font-weight: 800; color: var(--navy); cursor: pointer; flex: 0 0 auto; }
.bk-from { display: flex; flex-direction: column; gap: 2px; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.bk-from input { font: inherit; font-size: 15px; font-weight: 800; color: var(--navy); border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; }
.bk-to { font-weight: 800; color: var(--navy); flex: 1; }
.bk-buy { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
@media (max-width: 599px) { .bk-buy { grid-template-columns: 1fr; } }
.bk-buy-btn { display: flex; align-items: center; gap: 12px; text-align: left; padding: 14px 16px; border-radius: 6px; border: 0; cursor: pointer; font: inherit; color: #fff; background: linear-gradient(100deg, #2EA3E6, #5CC0F0); }
#buy-ebook { background: linear-gradient(100deg, #15324C, #2B5578); }
.bk-buy-btn .ico { font-size: 30px; }
.bk-buy-btn strong { display: block; font-size: 16px; font-weight: 900; }
.bk-buy-btn small { display: block; font-size: 12px; opacity: .92; margin-top: 2px; }
.bk-price { margin-left: auto; background: rgba(255,255,255,.9); color: var(--navy); border-radius: 6px; padding: 6px 10px; font-size: 14px; white-space: nowrap; }
.bk-buy-btn.owned .bk-price { background: #FFC93C; }
.bk-result { margin-top: 14px; padding: 16px; border-radius: 6px; background: #EAF7EE; border: 1px solid #BFE5CA; }
.bk-result strong { display: block; font-size: 16px; color: #1E6B3A; }
.bk-result-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 6px; }
.bk-result small { color: var(--ink-2); font-size: 12px; }
.bk-h2 { margin: 30px 0 4px; font-size: 20px; font-weight: 900; color: var(--navy); }
.bk-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
@media (max-width: 719px) { .bk-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } }
.bk-page { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #fff; }
.bk-page.bk-empty { opacity: .6; }
.bk-ph { position: relative; aspect-ratio: 3 / 4; background: #F4F8FB; display: grid; place-items: center; }
.bk-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bk-st { width: 56%; } .bk-st svg { width: 100%; height: auto; display: block; }
.bk-st.sm { position: absolute; right: 4px; bottom: 4px; width: 30%; background: rgba(255,255,255,.9); border-radius: 50%; padding: 2px; }
.bk-v { position: absolute; left: 4px; top: 4px; font-style: normal; font-size: 10px; color: #fff; background: rgba(0,0,0,.6); border-radius: 4px; padding: 2px 5px; }
.bk-meta { padding: 6px 8px; font-size: 11px; min-height: 40px; }
.bk-meta b { display: block; color: var(--navy); font-size: 12px; }
.bk-meta span { color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bk-one { border: 0; border-top: 1px solid var(--line); background: #F7FAFC; padding: 8px 4px; font: inherit; font-size: 11px; font-weight: 800; color: var(--sky-deep); cursor: pointer; }
.bk-one.owned { color: #1E6B3A; background: #EAF7EE; }
.bk-busy { position: fixed; inset: 0; z-index: 90; background: rgba(14,26,54,.55); display: grid; place-items: center; }
.bk-busy[hidden] { display: none; }
.bk-busy-card { background: #fff; border-radius: 6px; padding: 24px 28px; display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 240px; text-align: center; }
.bk-busy-card span { color: var(--ink-2); font-size: 14px; }
.bk-spin { width: 36px; height: 36px; border-radius: 50%; border: 4px solid #D6EAF7; border-top-color: #2EA3E6; animation: bkspin 1s linear infinite; }
@keyframes bkspin { to { transform: rotate(360deg); } }

/* 전자책 */
.eb-wrap { max-width: 560px; margin: 0 auto; padding: 16px; }
.eb-book { position: relative; min-height: 70vh; }
.eb-page { display: none; background: #fff; border-radius: 6px; box-shadow: 0 10px 30px rgba(21,50,76,.14); overflow: hidden; padding-bottom: 18px; animation: ebin .35s ease; }
.eb-page.on { display: block; }
@keyframes ebin { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
.eb-page header { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 18px 10px; border-bottom: 3px solid #2EA3E6; background: #EAF5FC; }
.eb-page header b { font-size: 22px; font-weight: 900; color: var(--navy); }
.eb-page header span { color: var(--ink-2); font-size: 14px; }
.eb-media { position: relative; margin: 14px 14px 0; border-radius: 6px; overflow: hidden; background: #F4F8FB; min-height: 120px; display: grid; place-items: center; }
.eb-media img, .eb-media video { width: 100%; display: block; max-height: 62vh; object-fit: cover; }
.eb-media video { background: #000; object-fit: contain; }
.eb-st { position: absolute; right: 10px; bottom: 10px; width: 64px; background: rgba(255,255,255,.92); border-radius: 50%; padding: 4px; pointer-events: none; }
.eb-big-st { width: 46%; padding: 24px 0; } .eb-st svg, .eb-big-st svg { width: 100%; height: auto; display: block; }
.eb-memo { margin: 14px 18px 0; font-size: 18px; font-weight: 700; color: var(--navy); line-height: 1.5; }
.eb-habits { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 18px 0; }
.eb-habits span { background: #FFF6D6; color: #6B5000; border-radius: 6px; padding: 4px 10px; font-size: 13px; font-weight: 700; }
.eb-cover { padding: 0; }
.eb-cover-ph { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.eb-cover-t { padding: 18px 22px 8px; }
.eb-cover-t i { display: block; width: 56px; height: 6px; background: #FFC93C; border-radius: 3px; }
.eb-cover-t h1 { margin: 12px 0 6px; font-size: 30px; font-weight: 900; color: var(--navy); line-height: 1.15; }
.eb-cover-t p { margin: 0; color: var(--ink-2); font-weight: 700; }
.eb-cover-t small { display: block; margin-top: 14px; color: var(--sky-deep); font-weight: 700; }
.eb-end { text-align: center; padding: 60px 0; }
.eb-end img { width: 96px; } .eb-end p { font-weight: 900; color: var(--navy); }
.eb-ctrl { display: flex; justify-content: center; align-items: center; gap: 16px; margin: 16px 0 30px; }
.eb-ctrl button { width: 48px; height: 48px; border-radius: 6px; border: 1px solid var(--line); background: #fff; font-size: 22px; font-weight: 800; color: var(--navy); cursor: pointer; }
.eb-ctrl span { font-weight: 800; color: var(--navy); min-width: 70px; text-align: center; }
.bk-one { white-space: nowrap; }
.eb-media video ~ .eb-st { top: 10px; bottom: auto; }

/* 개인정보 · 약관 */
.legal h2 { margin: 28px 0 8px; font-size: 18px; font-weight: 900; color: var(--navy); }
.legal p, .legal li { font-size: 15px; line-height: 1.7; color: var(--ink, #23384B); }
.legal ul { padding-left: 20px; margin: 0; }
.legal hr { margin: 36px 0 8px; border: 0; border-top: 1px solid var(--line); }

/* 달력 기념일 (해마다 자동) */
.cal-day .ev { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-style: normal; font-size: 9px; line-height: 1.2; font-weight: 700; color: var(--sky-deep, #0B78BE); letter-spacing: -.02em; }
.cal-day .ev.pet { font-size: 12px; }
.cal-day.has-photo .ev { color: #fff; }
.cal-day.today .ev { color: #fff; }
.cal-events { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.cal-events .ce { font-size: 12px; padding: 4px 8px; border-radius: 6px; background: #EAF5FC; color: var(--navy); }
.cal-events .ce b { font-weight: 900; margin-right: 2px; }
.cal-events .ce i { font-style: normal; color: var(--ink-2); font-size: 11px; }
.cal-events .ce.pet { background: #FFF6D6; color: #6B5000; }

/* 우리 아이 견종 스티커 */
.bs-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.bs-select { font: inherit; font-size: 13px; font-weight: 700; color: var(--navy); border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; max-width: 58%; background: #fff; }
.bs-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bs-grid .sticker-btn { height: auto; aspect-ratio: auto; display: flex; flex-direction: column; align-items: center; padding: 4px 2px 6px; }
.bs-grid .sticker-btn svg, .bs-grid .sticker-btn .st-img { width: 100%; height: auto; aspect-ratio: 1; }
.bs-grid .sticker-btn small { font-size: 10px; font-weight: 700; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.sticker-btn.locked { position: relative; opacity: .45; }
.sticker-btn.locked::after { content: '🔒'; position: absolute; top: 2px; right: 3px; font-size: 11px; }
.bs-buy { width: 100%; margin-top: 10px; padding: 11px; border: 0; border-radius: 6px; background: linear-gradient(100deg, #2EA3E6, #5CC0F0); color: #fff; font: inherit; font-weight: 800; font-size: 14px; cursor: pointer; }
.st-img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pet-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
#pet-breed { width: 100%; }

/* 우리 아이 AI 스티커 */
.ai-status { font-size: 13px; color: var(--ink-2); margin-top: 8px; display: flex; align-items: center; gap: 8px; }
.ai-buy { background: linear-gradient(100deg, #8E6CF0, #C78BF0); }
.bk-spin.sm { width: 16px; height: 16px; border-width: 3px; flex: 0 0 auto; }

/* 지도: 위치가 부정확할 때 안내 · 직접 고르기 */
.map-loc-note { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 10px; padding: 10px 12px; border-radius: 6px; background: #FFF6D6; color: #6B5000; font-size: 13px; }
.map-loc-note .chip { background: #fff; }
.map-box.picking { cursor: crosshair; outline: 3px solid #2EA3E6; outline-offset: -3px; }

/* 책자: 쪽 카드 누르기 · 크게 보기 */
.bk-open { display: block; width: 100%; border: 0; padding: 0; background: none; text-align: left; font: inherit; cursor: pointer; color: inherit; }
.bk-plus { font-size: 28px; color: #B7C6D3; font-weight: 300; }
@media (max-width: 719px) { .bk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.bk-view { position: fixed; inset: 0; z-index: 95; background: rgba(14,26,38,.94); display: flex; flex-direction: column; color: #fff; }
.bk-view[hidden] { display: none; }
.bk-view-top { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.bk-view-top strong { flex: 1; font-size: 16px; }
.bk-view-top span { font-size: 13px; opacity: .8; }
.bk-view-x { width: 40px; height: 40px; border-radius: 6px; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 24px; cursor: pointer; }
.bk-view-page { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 8px; }
.bk-view-page img { max-height: 100%; max-width: calc(100% - 96px); aspect-ratio: 1240 / 1748; background: #fff; border-radius: 6px; box-shadow: 0 10px 30px rgba(0,0,0,.4); object-fit: contain; transition: opacity .2s; }
.bk-view-nav { width: 40px; height: 64px; border-radius: 6px; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 28px; cursor: pointer; flex: 0 0 auto; }
.bk-view-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; padding: 14px 14px 4px; }
.bk-view-actions .btn-outline { background: #fff; }
.bk-view-note { text-align: center; font-size: 12px; opacity: .8; margin: 4px 14px 14px; min-height: 1em; }
@media (max-width: 599px) { .bk-view-nav { display: none; } .bk-view-page img { max-width: 100%; } }
.bk-page { align-items: stretch; }
.bk-page > *, .bk-open .bk-ph, .bk-open .bk-meta { width: 100%; box-sizing: border-box; }
.bk-page.bk-empty { opacity: .75; }
.bk-view { z-index: 300; background: #0E1A26; }

/* 그림일기: 위 그림 칸(4:3) · 아래 줄 공책 */
.pd-wrap { border: 2px solid #15324C; border-radius: 6px; padding: 10px; background: #FFFDF8; margin-bottom: 14px; }
.pd-editor, .pd-pic { position: relative; }
.pd-pic { width: 100%; aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; background: #F4F8FB; border: 1.5px solid #15324C; touch-action: none; user-select: none; -webkit-user-select: none; }
.pd-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.pd-empty { position: absolute; inset: 0; display: grid; place-items: center; }
.pd-add { display: flex; flex-direction: column; align-items: center; gap: 4px; color: #7C8DA0; font-size: 13px; font-weight: 700; cursor: pointer; }
.pd-add span { font-size: 34px; }
.pd-st { position: absolute; aspect-ratio: 1; display: block; }
.pd-st svg, .pd-st img { width: 100%; height: 100%; display: block; pointer-events: none; }
.pd-edit .pd-st { cursor: grab; }
.pd-st.on { outline: 2px dashed #2EA3E6; outline-offset: 2px; border-radius: 6px; }
.pd-del, .pd-rot { position: absolute; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; line-height: 1; color: #fff; font-style: normal; }
.pd-del { top: -13px; right: -13px; background: #E8546B; cursor: pointer; }
.pd-rot { bottom: -13px; right: -13px; background: #2EA3E6; cursor: nwse-resize; }
.pd-tools { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.pd-tools .chip { cursor: pointer; }
.pd-help { font-size: 12px; color: var(--ink-2); margin: 6px 2px 8px; }
.pd-lines { width: 100%; box-sizing: border-box; border: 0; resize: vertical; background-color: transparent;
  background-image: linear-gradient(transparent 31px, #B9CCE4 31px, #B9CCE4 32px); background-size: 100% 32px;
  font: inherit; font-size: 17px; line-height: 32px; padding: 0 4px; min-height: 160px; color: var(--navy); outline: none; }
.day-media.one { grid-template-columns: 1fr; max-width: 240px; }

/* 책자 미리보기: 작은 그림일기 (위 그림 + 아래 줄) */
.bk-meta.top { padding: 8px 10px 4px; min-height: 0; }
.bk-ph.pd-mini { aspect-ratio: auto; display: block; padding: 0 8px 8px; background: #fff; }
.pd-mini .pd-pic { border-width: 1px; border-radius: 6px; touch-action: auto; }
.pd-mini .bk-plus { position: absolute; left: 50%; top: 38%; transform: translate(-50%, -50%); }
.bk-lines { margin-top: 6px; min-height: 54px; font-size: 11px; line-height: 18px; color: var(--navy);
  background-image: linear-gradient(transparent 17px, #D6E2EE 17px, #D6E2EE 18px); background-size: 100% 18px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* 결제 확인 창 */
.pay-ov { position: fixed; inset: 0; z-index: 400; background: rgba(14,26,54,.5); display: grid; place-items: center; padding: 16px; }
.pay-card { width: min(360px, 100%); background: #fff; border-radius: 6px; padding: 22px 20px 18px; text-align: center; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.pay-ico { width: 52px; height: 52px; margin: 0 auto 10px; border-radius: 50%; background: #F3ECFF; color: #6B46C1; font-size: 28px; font-weight: 900; display: grid; place-items: center; }
.pay-card strong { display: block; font-size: 17px; color: var(--navy); }
.pay-amt { font-size: 32px; font-weight: 900; color: #6B46C1; margin: 8px 0 4px; }
.pay-card p { font-size: 13px; color: var(--ink-2); margin: 0 0 16px; }
.pay-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* 전자책: 그림일기 */
.eb-pd { margin: 14px; padding: 10px; border: 2px solid #15324C; border-radius: 6px; background: #FFFDF8; }
.eb-video { width: 100%; margin-top: 10px; border-radius: 6px; background: #000; }
.eb-lines { margin-top: 10px; min-height: 96px; font-size: 17px; line-height: 32px; color: var(--navy); white-space: pre-wrap; padding: 0 4px;
  background-image: linear-gradient(transparent 31px, #B9CCE4 31px, #B9CCE4 32px); background-size: 100% 32px; }

/* 마이페이지 */
.me-card { padding: 16px; margin-top: 16px; }
.me-hello { font-size: 16px; color: var(--navy); margin-bottom: 12px; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; }
.me-hello b { font-size: 20px; font-weight: 900; }
.me-hello span { font-size: 13px; color: var(--ink-2); }
#me-save.saved { background: #1E9E5A; }
.me-head { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; }
.me-pets { display: grid; gap: 14px; }
.pet-profile { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 14px; }
@media (max-width: 559px) { .pet-profile { grid-template-columns: 1fr; } }
.pp-photo { aspect-ratio: 1; border-radius: 6px; overflow: hidden; background: #EAF5FC; display: grid; place-items: center; font-size: 56px; }
.pp-photo img { width: 100%; height: 100%; object-fit: cover; }
.pp-name { font-size: 22px; font-weight: 900; color: var(--navy); }
.pp-name .sex { font-style: normal; font-size: 16px; padding: 2px 8px; border-radius: 6px; margin-left: 4px; }
.pp-name .sex.m { background: #E2F0FB; color: #1C6FB0; } .pp-name .sex.f { background: #FCE6EC; color: #C2416A; }
.pp-sub { color: var(--ink-2); font-weight: 700; margin: 2px 0 10px; }
.pp-rows { display: grid; gap: 6px; }
.pr { display: grid; grid-template-columns: 110px 1fr; gap: 8px; font-size: 14px; }
.pr span { color: var(--ink-2); } .pr b { color: var(--navy); font-weight: 700; }
.pp-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.pp-lost { background: #E8546B; }
.pf-photo { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.pf-photo-box { width: 120px; height: 120px; border-radius: 6px; border: 2px dashed var(--line); background: #F7FAFC; display: grid; place-items: center; text-align: center; cursor: pointer; overflow: hidden; flex: 0 0 auto; font-size: 28px; color: var(--ink-2); }
.pf-photo-box small { font-size: 12px; font-weight: 700; }
.pf-photo-box img { width: 100%; height: 100%; object-fit: cover; }
.pf-photo .hint { font-size: 12px; color: var(--ink-2); }
.pf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 479px) { .pf-grid { grid-template-columns: 1fr; } }
.pf-grid select, .pf-grid input { width: 100%; }
.field .lbl { display: block; font-weight: 800; font-size: 14px; margin-bottom: 6px; }
.lost-pet-photo { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 6px; background: #FFF0F2; margin-bottom: 12px; font-size: 13px; color: #8A2A3E; }
.lost-pet-photo img { width: 72px; height: 72px; border-radius: 6px; object-fit: cover; }

/* Stories 카드: 발도장 · 태그 아이콘 크게 */
.st-post .meta { padding: 12px 14px; font-size: 14px; }
.st-post .who { font-size: 15px; }
.st-post .tag { font-size: 14px; display: inline-block; margin-top: 2px; }
.st-post .heart { display: inline-flex; align-items: center; gap: 6px; font-size: 18px; color: #E86C7E; }
.st-post .heart svg { width: 28px; height: 28px; }
.st-tags span { font-size: 15px; padding: 9px 14px; }

/* 미아 공고: 내 아이 정보 불러오기 */
.lp-pick { border: 1.5px solid #F3B7C2; background: #FFF7F8; border-radius: 6px; padding: 12px; margin-bottom: 14px; }
.lp-pick-t { display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; }
.lp-pick-t b { font-size: 15px; color: #8A2A3E; }
.lp-pick-t span { font-size: 12.5px; color: var(--ink-2); }
.lp-pets { display: flex; gap: 8px; flex-wrap: wrap; }
.lp-pet { display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; border: 1.5px solid #E6D3D7; background: #fff; font: inherit; font-size: 14px; cursor: pointer; color: var(--navy); }
.lp-pet img, .lp-pet i { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; font-style: normal; font-size: 22px; background: #F4F8FB; }
.lp-pet[aria-pressed="true"] { border-color: #E8546B; background: #FFE9EC; box-shadow: 0 0 0 2px #E8546B33; }
.lost-pet-photo[hidden] { display: none; }

/* 챕터 큰 사진 (서브 페이지 제목 위) — images/012_banners/banner-*.webp, 가로 12:5 */
.ch-banner { position: relative; aspect-ratio: 12 / 5; border-radius: 6px; overflow: hidden; background: var(--sky-mist, #EEF6FC); margin: 0 0 22px; box-shadow: 0 10px 28px rgba(21,50,76,.12); }
.ch-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ch-banner[hidden] { display: none; }
@media (max-width: 719px) { .ch-banner { aspect-ratio: 16 / 9; border-radius: 6px; margin-bottom: 18px; } }

/* 지도 Care: 장소 사진 6장 띠 — 세로 3:4, 모서리 없이 딱 붙게. 3장씩(휴대폰 2장) 보이고 ‹ › 로 한 장씩 */
.pl-strip { position: relative; margin: 0 0 22px; }
.pl-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc(100% / 3); gap: 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 0; }
.pl-track::-webkit-scrollbar { display: none; }
.pl-card { position: relative; aspect-ratio: 3 / 4; border-radius: 0; overflow: hidden; border: 0; padding: 0; cursor: pointer; scroll-snap-align: start; background: var(--sky-mist, #EEF6FC); font: inherit; text-align: left; }
.pl-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.pl-card:hover img { transform: scale(1.04); }
.pl-card::after { content: ''; position: absolute; inset: 55% 0 0; background: linear-gradient(rgba(14,26,38,0), rgba(14,26,38,.62)); }
.pl-cap { position: absolute; z-index: 1; left: 14px; right: 14px; bottom: 12px; color: #fff; display: flex; flex-direction: column; gap: 2px; text-shadow: 0 1px 6px rgba(0,0,0,.3); }
.pl-cap b { font-size: 16px; font-weight: 900; line-height: 1.25; }
.pl-cap small { font-size: 12px; opacity: .9; }
/* 지금 보고 있는 장소: 안쪽 노란 테두리 (옆 사진과 붙어 있어도 보이게) */
.pl-card[aria-pressed="true"]::before { content: ''; position: absolute; inset: 0; z-index: 2; box-shadow: inset 0 0 0 4px var(--sun, #FFC83D); pointer-events: none; }
.pl-arrow { position: absolute; z-index: 3; top: calc(50% - 20px); width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line, #DCE6EE); background: #fff; color: var(--navy); font-size: 22px; line-height: 1; cursor: pointer; box-shadow: 0 4px 12px rgba(21,50,76,.15); }
.pl-arrow.prev { left: -16px; } .pl-arrow.next { right: -16px; }
.pl-arrow:disabled { opacity: 0; pointer-events: none; }
@media (max-width: 719px) {
  .pl-cap b { font-size: 15px; }
}


/* Come Home: 위 가로 사진 1장 + 아래 3:4 사진 3장 (모서리 없이 딱 붙게) */
.chs { margin: 0 0 22px; }
.chs-bottom { margin: 28px 0 0; }
.chs-top { position: relative; aspect-ratio: 12 / 5; overflow: hidden; background: var(--sky-mist, #EEF6FC); }
.chs-top img, .chs-row img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.chs-row { display: grid; grid-template-columns: repeat(3, 1fr); }
.chs-row figure { position: relative; margin: 0; aspect-ratio: 3 / 4; overflow: hidden; background: var(--sky-mist, #EEF6FC); }
.chs-row figure::after { content: ''; position: absolute; inset: 55% 0 0; background: linear-gradient(rgba(14,26,38,0), rgba(14,26,38,.62)); }
.chs-row figcaption { position: absolute; z-index: 1; left: 16px; right: 16px; bottom: 14px; color: #fff; display: flex; flex-direction: column; gap: 3px; text-shadow: 0 1px 6px rgba(0,0,0,.3); }
.chs-row figcaption b { font-size: 18px; font-weight: 900; line-height: 1.25; }
.chs-row figcaption small { font-size: 13px; opacity: .92; }
@media (max-width: 719px) {
  .chs-top { aspect-ratio: 16 / 10; }
  .chs-row figcaption { left: 8px; right: 8px; bottom: 8px; }
  .chs-row figcaption b { font-size: 13px; }
  .chs-row figcaption small { display: none; }
}

/* Care: 6장 중 3장씩 크게, ‹ › 로 한 장씩 (휴대폰은 2장) */
.pl-strip[hidden] { display: none; }
@media (max-width: 719px) {
  .pl-track { grid-auto-columns: 50%; }
  .pl-arrow { display: block; width: 34px; height: 34px; font-size: 19px; top: calc(50% - 17px); }
  .pl-arrow.prev { left: 6px; } .pl-arrow.next { right: 6px; }
}
/* 서브 페이지 큰 사진: 모서리 없이 (사진 띠 · Come Home 과 같은 모양) */
.ch-banner { border-radius: 0 !important; box-shadow: none !important; }
/* 달력 칸 스티커: 그림 스티커(img)도 작게 고정 */
.cal-day svg, .cal-day img { width: 24px; height: 24px; object-fit: contain; }

/* 다이어리 달력: 넓은 화면에서 칸을 더 길게 */
@media (min-width: 720px) { .cal-day { min-height: 92px; padding-top: 8px; font-size: 13px; } }
@media (max-width: 719px) { .cal-day { min-height: 64px; } }
/* 로그인 안내 깜빡임 */
@keyframes pwFlash { 0%, 100% { box-shadow: 0 0 0 0 rgba(46,163,230,0); } 30% { box-shadow: 0 0 0 6px rgba(46,163,230,.45); } }
#login-box.flash { animation: pwFlash 1.2s ease 2; border-color: var(--sky, #2EA3E6); }
/* 다이어리 우리 아이 사진: 가운데 · 크게 (PC 240px — 예전 120px 의 4배 넓이, 휴대폰 2장씩) */
.pet-strip-head { justify-content: center; position: relative; margin-top: 26px; }
.pet-strip-head strong { font-size: 19px; }
.pet-strip-head .pet-edit-link { position: absolute; right: 0; }
.pet-strip { justify-content: center; flex-wrap: wrap; gap: 22px; margin-top: 14px; overflow: visible; }
.pet-card { width: 240px; gap: 10px; }
.pet-ph { width: 240px; height: 240px; border-radius: 6px; border-width: 4px; }
.pet-add .pet-ph { border-radius: 6px; }
.pet-emoji { font-size: 96px; }
.pet-plus { font-size: 64px; }
.pet-name { font-size: 18px; }
.pet-add .pet-name { font-size: 16px; }
@media (max-width: 719px) {
  .pet-strip { gap: 14px; }
  .pet-card { width: calc((100% - 14px) / 2); max-width: 200px; }
  .pet-ph { width: 100%; height: auto; aspect-ratio: 1; }
  .pet-emoji { font-size: 72px; }
  .pet-name { font-size: 16px; }
}

/* ── 지금 챕터: 위 메뉴 · 서랍 메뉴 색 ── */
.topnav a.on { color: var(--sky-deep, #0B78BE); border-bottom-color: var(--sky, #2EA3E6); }
.drawer-panel a.on span { color: var(--sky-deep, #0B78BE); }
.drawer-panel a.on { box-shadow: inset 3px 0 0 var(--sky, #2EA3E6); padding-left: 12px; }

/* ── 서브 페이지 위 사진: 화면 가로 끝까지 (Expo · Stories 처럼) ── */
html, body { overflow-x: clip; }
.ch-bleed { width: 100vw; max-width: none; margin-left: calc(50% - 50vw); margin-right: 0; margin-top: -40px; }
.ch-banner.ch-bleed { aspect-ratio: auto; height: clamp(260px, 38vw, 560px); margin-bottom: 26px; }
.chs.ch-bleed .chs-top { aspect-ratio: auto; height: clamp(260px, 38vw, 560px); }
/* Care 사진 띠: 끝까지, PC 6장 한 줄 · 태블릿 4장 · 휴대폰 2장 반 */
.pl-strip.ch-bleed { margin-bottom: 26px; }
.pl-strip.ch-bleed .pl-track { grid-auto-columns: calc(100% / 6); }
.pl-strip.ch-bleed .pl-arrow.prev { left: 12px; } .pl-strip.ch-bleed .pl-arrow.next { right: 12px; }
@media (max-width: 1099px) { .pl-strip.ch-bleed .pl-track { grid-auto-columns: 25%; } }
@media (max-width: 719px) {
  .pl-strip.ch-bleed .pl-track { grid-auto-columns: 40%; }
  .pl-strip.ch-bleed .pl-cap small { display: none; }
  .pl-strip.ch-bleed .pl-cap b { font-size: 14px; }
}

/* ── 휴대폰 서랍 메뉴: 좁게 · 반투명 (뒤 사진이 보이게) ── */
.drawer-backdrop { background: rgba(14, 26, 54, 0.18); }
.drawer-panel { width: auto; min-width: 210px; max-width: 72vw; padding: 16px 18px; background: rgba(255, 255, 255, 0.62); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); box-shadow: -8px 0 30px rgba(14,26,54,.18); }
.drawer-panel a { padding: 10px 6px; border-bottom-color: rgba(21,50,76,.12); }
.drawer-panel a span { font-size: 17px; }
.drawer-panel a small { font-size: 12.5px; }
.drawer-panel .field select { background: rgba(255,255,255,.8); }

/* ── 푸터: 가운데 · 큰 로고가 글자 위 ── */
.footer .wrap { align-items: center; text-align: center; }
.footer .brand { flex-direction: column; gap: 10px; }
.footer .brand img { width: 184px; height: 184px; border-radius: 6px; }
.footer .brand .wordmark { font-size: 30px !important; }
.footer .brand .tagline { margin-top: 4px; }
@media (max-width: 719px) { .footer .brand img { width: 140px; height: 140px; border-radius: 6px; } }

/* ── (2차) 휴대폰 서랍 메뉴: 화면 폭의 2/5 ── */
@media (max-width: 899px) {
  .drawer-panel { width: 40vw; min-width: 0; max-width: none; padding: 14px 12px; }
  .drawer-panel a { padding: 9px 4px; }
  .drawer-panel a span { font-size: 15px; }
  .drawer-panel a small { font-size: 11px; line-height: 1.35; }
  .drawer-panel .field label { font-size: 12px; }
  .drawer-panel .field select { padding: 8px 6px; font-size: 13px; }
}

/* ── (2차) 푸터: 하늘색 띠 · 더 길게 · 로고 위 여백 넉넉히 ── */
.footer { background: var(--sky, #2EA3E6); color: rgba(255,255,255,.88); border-top: 0; padding: 96px 0 84px; margin-top: 72px; }
.footer a { color: #fff; }
.footer .wordmark { color: #fff !important; }
.footer .wordmark b { color: var(--sun, #FFC83D) !important; }
.footer .tagline { color: rgba(255,255,255,.85); }
.footer .wrap { gap: 16px; }
.footer .brand { margin-bottom: 14px; }
.footer .brand img { background: none; box-shadow: none; border-radius: 0; filter: drop-shadow(0 8px 18px rgba(11,70,120,.25)); }
.footer .map-credit, .footer .map-credit * { color: rgba(255,255,255,.8); }
@media (max-width: 719px) { .footer { padding: 72px 0 120px; } }

/* ── (2차) 지금 챕터: 색 · 밑줄 항상 유지 ── */
.topbar .topnav a.on, .topbar .topnav a.on:hover { color: var(--sky-deep, #0B78BE) !important; border-bottom: 3px solid var(--sky, #2EA3E6) !important; font-weight: 800; }

/* ── 모든 서브 페이지 위 사진 높이 통일 (Places 기준) ── */
:root { --hero-h: clamp(260px, 38vw, 560px); }
.ch-banner.ch-bleed, .chs.ch-bleed .chs-top { height: var(--hero-h); }
.pl-strip.ch-bleed .pl-track { height: var(--hero-h); }
.pl-strip.ch-bleed .pl-card { aspect-ratio: auto; height: 100%; }

/* ── (3차) 내용 폭 넓게 · 위 사진 더 길게 ── */
:root { --wrap: 1280px; --hero-h: clamp(300px, 40vw, 640px); }

/* ── 지도 페이지: 사진 카드 + 지도 ── */
.pl-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; margin-top: 4px; }
.pl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 0; }
.pl-grid > .empty, .pl-grid > .map-note, .pl-grid > .section-sub { grid-column: 1 / -1; }
.pl-item { display: flex; flex-direction: column; gap: 8px; }
.pl-item-ph { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 6px; background: var(--sky-mist, #EEF6FC); cursor: pointer; }
.pl-item-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.pl-item-ph:hover img { transform: scale(1.04); }
.pl-item-ph::after { content: ''; position: absolute; inset: 40% 0 0; background: linear-gradient(rgba(14,26,38,0), rgba(14,26,38,.7)); }
.pl-item-cap { position: absolute; z-index: 1; left: 14px; right: 14px; bottom: 12px; color: #fff; display: flex; flex-direction: column; gap: 3px; text-shadow: 0 1px 6px rgba(0,0,0,.35); }
.pl-item-cap strong { font-size: 20px; font-weight: 900; line-height: 1.2; }
.pl-item-cap span { font-size: 13px; opacity: .92; }
.pl-item .chips { gap: 6px; }
.pl-side { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 10px; }
.pl-side .map-box { height: 240px; }
.pl-side-head { display: none; }
.pl-mapbtn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border-radius: 6px; border: 1px solid var(--line); background: #fff; color: var(--navy); font: inherit; font-weight: 800; cursor: pointer; box-shadow: 0 4px 12px rgba(21,50,76,.08); }
.pl-mapbtn:hover { border-color: var(--sky); color: var(--sky-deep); }
.pl-fab { display: none; }
/* 큰 지도 (PC): 왼쪽 한 줄 목록 + 오른쪽 큰 지도, 화면 가로 끝까지 */
.pl-layout.full { grid-template-columns: 380px minmax(0, 1fr); width: 100vw; margin-left: calc(50% - 50vw); padding: 0 16px; }
.pl-layout.full .pl-grid { grid-template-columns: 1fr; max-height: calc(100vh - 96px); overflow-y: auto; padding-right: 6px; }
.pl-layout.full .pl-side { top: 72px; }
.pl-layout.full .pl-side .map-box { height: calc(100vh - 140px); min-height: 420px; }
.pl-layout.full .pl-mapbtn { display: none; }
.pl-layout.full .pl-side-head { display: block; }
@media (max-width: 1023px) { .pl-layout { grid-template-columns: minmax(0, 1fr) 280px; } }
/* 휴대폰: 사진 카드 한 줄 + 아래 "지도" 버튼 → 전체 화면 지도 */
@media (max-width: 719px) {
  .pl-layout { grid-template-columns: 1fr; }
  .pl-grid { grid-template-columns: 1fr; }
  .pl-side { display: none; }
  .pl-fab { display: flex; position: fixed; z-index: 40; left: 50%; transform: translateX(-50%); bottom: 92px; align-items: center; gap: 6px; padding: 12px 22px; border-radius: 999px; border: 0; background: var(--navy); color: #fff; font: inherit; font-weight: 800; box-shadow: 0 8px 22px rgba(14,26,54,.3); cursor: pointer; }
  body.map-full .pl-fab { display: none; }
  .pl-layout.full { width: auto; margin-left: 0; padding: 0; }
  .pl-layout.full .pl-side { display: flex; position: fixed; z-index: 70; inset: 60px 0 0 0; top: 60px; background: #fff; padding: 10px; gap: 8px; }
  .pl-layout.full .pl-side .map-box { flex: 1; height: auto; min-height: 0; }
  .pl-layout.full .pl-grid { max-height: none; overflow: visible; }
}

/* Stories 위 사진: 앞발이 잘리지 않게 아래쪽 기준 */
.st-hero img { object-position: center 80%; }

/* 영상 자리 (Come Home 등) */
.ad-video { margin: 28px 0 0; }
.ad-video video { width: 100%; max-height: 520px; display: block; background: #000; }

.pl-item.on .pl-item-ph { outline: 3px solid var(--sun, #FFC83D); outline-offset: -3px; }
/* Places 위 사진: 고양이 앞발이 잘리지 않게 아래쪽 기준 */
#map-banner img { object-position: 60% bottom; }

/* ── 로고: 코기 + "PETS" 그림 글씨 + .pi ── */
.wordmark { display: inline-flex; align-items: baseline; gap: 2px; line-height: 1; }
.wm-img { height: 22px; width: auto; display: block; align-self: center; }
.wm-white { display: none; }
.wordmark b { font-family: var(--font-body); font-weight: 900; font-size: 20px; color: var(--sky, #2EA3E6); letter-spacing: -.01em; align-self: flex-end; margin-bottom: -2px; }
.topbar .brand img:not(.wm-img) { width: 42px; height: 42px; }
.topbar .brand { gap: 10px; }
@media (max-width: 719px) { .wm-img { height: 19px; } .wordmark b { font-size: 17px; } }
/* 푸터: 큰 코기 위, 흰 PETS + 노란 .pi */
.footer .wm-dark { display: none; }
.footer .wm-white { display: block; height: 40px; }
.footer .wordmark b { font-size: 34px; color: var(--sun, #FFC83D) !important; margin-bottom: -4px; }
.footer .brand { align-items: center; }
/* 로고 글씨 그림은 .brand img(동그란 코기) 규칙을 따르지 않게 */
.brand img.wm-img { width: auto !important; height: 22px !important; border-radius: 0 !important; filter: none !important; box-shadow: none !important; background: none !important; }
.footer .brand img.wm-img { height: 40px !important; }
@media (max-width: 719px) { .brand img.wm-img { height: 19px !important; } .footer .brand img.wm-img { height: 34px !important; } }

/* 푸터 로고: 코기 + PETS 한 장(pets-lockup) */
.footer .brand img.ft-lockup { width: 220px !important; height: auto !important; border-radius: 0 !important; background: none !important; filter: drop-shadow(0 8px 18px rgba(11,70,120,.22)); }
@media (max-width: 719px) { .footer .brand img.ft-lockup { width: 170px !important; } }

/* ── 위 메뉴 막대 더 높게 + 코기 · PETS 한 장 로고 ── */
:root { --bar-h: 92px; }
@media (max-width: 719px) { :root { --bar-h: 68px; } }
.topbar .wrap { height: var(--bar-h); }
.topbar .brand img.hd-lockup { height: calc(var(--bar-h) - 12px) !important; width: auto !important; border-radius: 0 !important; }
.topnav { gap: 26px; margin-left: 34px; }
.topnav a { font-size: 16px; }
.pl-side, .pl-layout.full .pl-side { top: calc(var(--bar-h) + 14px); }
.pl-layout.full .pl-grid { max-height: calc(100vh - var(--bar-h) - 36px); }
.pl-layout.full .pl-side .map-box { height: calc(100vh - var(--bar-h) - 84px); }
@media (max-width: 719px) { .pl-layout.full .pl-side { inset: var(--bar-h) 0 0 0; top: var(--bar-h); } }

/* ── Memory 페이지 ── */
.mm-h { margin: 44px 0 6px; font-size: 26px; font-weight: 900; color: var(--navy); }
.mm-p { margin: 0 0 18px; color: var(--ink-2); }
.mm-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.mm-card { text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 4px; }
.mm-card .ph { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 6px; background: var(--sky-mist); margin-bottom: 8px; }
.mm-card .ph img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.mm-card:hover .ph img { transform: scale(1.04); }
.mm-card strong { font-size: 18px; font-weight: 900; color: var(--navy); }
.mm-card span { font-size: 14px; color: var(--ink-2); }
.mm-cta { margin-top: 22px; }
.mm-rainbow { margin: 64px 0 0; width: 100vw; margin-left: calc(50% - 50vw); background: linear-gradient(180deg, #F7F3FF 0%, #FDF6EC 100%); padding: 64px 16px; }
.mm-rb-in { max-width: 720px; margin: 0 auto; text-align: center; }
.mm-rb-icon { font-size: 44px; }
.mm-rainbow h2 { margin: 6px 0 8px; font-size: 30px; font-weight: 900; color: var(--navy); }
.mm-rainbow p { margin: 0 0 26px; color: var(--ink-2); }
.mm-rb-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; text-align: left; }
.mm-rb-list li { background: rgba(255,255,255,.75); border: 1px solid #EDE4F7; border-radius: 6px; padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.mm-rb-list b { color: var(--navy); }
.mm-rb-list span { font-size: 13.5px; color: var(--ink-2); }
.mm-soon { display: inline-block; padding: 8px 18px; border-radius: 999px; background: #fff; border: 1px solid #E6DAF5; color: #7A63A8; font-weight: 800; font-size: 14px; }
@media (max-width: 719px) { .mm-cards, .mm-rb-list { grid-template-columns: 1fr; } }

/* 위 메뉴 로고: 막대 높이에 꼭 맞게, 위아래 여백 고르게 */
.topbar .brand { align-self: stretch; display: flex; align-items: center; padding: 6px 0; }
.topbar .brand img.hd-lockup { height: calc(var(--bar-h) - 14px) !important; display: block; }
.hd-lockup-w { display: none !important; }
.mm-banner img { object-position: center 72%; }

/* Memory 페이지: 웃는 코기 대신 PETS 글씨만 (추모 분위기) */
.brand img.hd-word, .footer .brand img.ft-word { display: none !important; }
.memory-page .brand img.hd-lockup, .memory-page .footer .brand img.ft-lockup { display: none !important; }
.memory-page .brand img.hd-word { display: block !important; width: auto !important; height: 30px !important; border-radius: 0 !important; }
.memory-page .footer .brand img.ft-word { display: block !important; width: 240px !important; height: auto !important; border-radius: 0 !important; filter: none !important; }
@media (max-width: 719px) { .memory-page .brand img.hd-word { height: 24px !important; } .memory-page .footer .brand img.ft-word { width: 180px !important; } }

/* Memory: 추억 앨범 카드는 사진이 잘 보이게 조금 더 높게, 함께한 날들 3장 딱 붙게 */
.mm-card .ph { aspect-ratio: 4 / 3.4; }
.mm-days { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.mm-days figure { position: relative; margin: 0; aspect-ratio: 4 / 5; overflow: hidden; }
.mm-days img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mm-days figure::after { content: ''; position: absolute; inset: 60% 0 0; background: linear-gradient(rgba(14,26,38,0), rgba(14,26,38,.55)); }
.mm-days figcaption { position: absolute; z-index: 1; left: 16px; bottom: 14px; color: #fff; font-weight: 800; font-size: 17px; text-shadow: 0 1px 6px rgba(0,0,0,.35); }
@media (max-width: 719px) { .mm-days figcaption { left: 8px; bottom: 8px; font-size: 13px; } }
.mm-days { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 719px) { .mm-days { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ── (수정) 장소 사진 띠: 4장씩(휴대폰 2장), 노란 테두리 없음, 한 장씩 펼쳐지며 넘김 ── */
.pl-strip.ch-bleed .pl-track { grid-auto-columns: 25% !important; scroll-snap-type: x mandatory; }
.pl-card[aria-pressed="true"]::before { display: none !important; }
.pl-strip.ch-bleed .pl-arrow { display: grid !important; place-items: center; width: 46px; height: 46px; font-size: 26px; background: rgba(255,255,255,.92); }
.pl-strip.ch-bleed .pl-arrow.prev { left: 16px; } .pl-strip.ch-bleed .pl-arrow.next { right: 16px; }
@keyframes plUnfold { from { transform: scaleX(.35); opacity: .2; filter: brightness(1.15); } to { transform: scaleX(1); opacity: 1; filter: none; } }
.pl-card.reveal { animation: plUnfold .55s cubic-bezier(.2,.8,.2,1); transform-origin: center; }
@media (max-width: 1099px) { .pl-strip.ch-bleed .pl-track { grid-auto-columns: 33.333% !important; } }
@media (max-width: 719px) { .pl-strip.ch-bleed .pl-track { grid-auto-columns: 50% !important; } .pl-strip.ch-bleed .pl-arrow { width: 38px; height: 38px; font-size: 21px; } .pl-strip.ch-bleed .pl-arrow.prev { left: 8px; } .pl-strip.ch-bleed .pl-arrow.next { right: 8px; } }

/* ── 로고 20% 작게 ── */
.topbar .brand img.hd-lockup { height: calc((var(--bar-h) - 14px) * .8) !important; }
.memory-page .brand img.hd-word { height: 24px !important; }
.footer .brand img.ft-lockup { width: 176px !important; }
.memory-page .footer .brand img.ft-word { width: 192px !important; }
@media (max-width: 719px) { .memory-page .brand img.hd-word { height: 19px !important; } .footer .brand img.ft-lockup { width: 136px !important; } .memory-page .footer .brand img.ft-word { width: 144px !important; } }

/* ── 장소 사진 넘김: 가운데 크게(64%) + 양옆 좁게(18%), 끝없이, 펼쳐지는 움직임 ── */
.pc { position: relative; height: var(--hero-h); overflow: hidden; margin-bottom: 26px; background: #EEF3F7; }
.pc[hidden] { display: none; }
.pc-stage { position: absolute; inset: 0; }
.pc-slide { position: absolute; top: 0; bottom: 0; padding: 0; border: 0; overflow: hidden; cursor: pointer; background: #DDE6EE; font: inherit; text-align: left;
  transition: left .7s cubic-bezier(.22,.8,.22,1), width .7s cubic-bezier(.22,.8,.22,1), opacity .5s; }
.pc-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pc-slide[data-pos="c"]  { left: calc(18% + 4px); width: calc(64% - 8px); z-index: 2; opacity: 1; }
.pc-slide[data-pos="l"]  { left: 0; width: 18%; z-index: 1; opacity: 1; }
.pc-slide[data-pos="r"]  { left: 82%; width: 18%; z-index: 1; opacity: 1; }
.pc-slide[data-pos="ll"] { left: 0; width: 0; z-index: 0; opacity: 0; }
.pc-slide[data-pos="rr"] { left: 100%; width: 0; z-index: 0; opacity: 0; }
.pc-slide .pl-cap { opacity: 0; transition: opacity .4s .3s; }
.pc-slide[data-pos="c"] .pl-cap { opacity: 1; }
.pc-slide[data-pos="c"] .pl-cap b { font-size: 24px; }
.pc-slide[data-pos="c"] .pl-cap small { font-size: 14px; }
.pc-slide::after { content: ''; position: absolute; inset: 55% 0 0; background: linear-gradient(rgba(14,26,38,0), rgba(14,26,38,.55)); opacity: 0; transition: opacity .4s; }
.pc-slide[data-pos="c"]::after { opacity: 1; }
.pc-slide[data-pos="l"] img, .pc-slide[data-pos="r"] img { filter: brightness(.92); }
.pc-arrow { position: absolute; z-index: 3; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border: 0; background: none; color: #fff; font-size: 54px; line-height: 1; cursor: pointer; text-shadow: 0 2px 10px rgba(0,0,0,.45); }
.pc-arrow.prev { left: 9%; transform: translate(-50%, -50%); }
.pc-arrow.next { left: 91%; transform: translate(-50%, -50%); }
.pc-count { position: absolute; z-index: 3; right: calc(18% + 18px); bottom: 16px; padding: 4px 10px; border-radius: 4px; background: rgba(14,26,38,.72); color: #fff; font-size: 13px; font-weight: 800; }
@media (max-width: 719px) {
  .pc-slide[data-pos="c"] { left: calc(10% + 3px); width: calc(80% - 6px); }
  .pc-slide[data-pos="l"] { width: 10%; } .pc-slide[data-pos="r"] { left: 90%; width: 10%; }
  .pc-arrow { font-size: 40px; } .pc-arrow.prev { left: 5%; } .pc-arrow.next { left: 95%; }
  .pc-count { right: calc(10% + 10px); bottom: 10px; }
  .pc-slide[data-pos="c"] .pl-cap b { font-size: 18px; }
}
/* 사진은 크기 그대로, 칸만 옆으로 펼쳐짐 (확대 없음): 사진 폭을 가운데 칸 폭으로 고정하고 칸이 가려 보여 줌 */
.pc-slide img { left: 50%; right: auto; width: 64vw; max-width: none; transform: translateX(-50%); }
.pc-slide[data-pos="l"] img, .pc-slide[data-pos="r"] img { filter: none; }
@media (max-width: 719px) { .pc-slide img { width: 80vw; } }

/* ── 미닫이 넘김: 레일 위 사진들이 옆으로 이동 (사진 크기 그대로) ── */
.pc-stage { overflow: hidden; }
.pc-rail { position: absolute; top: 0; bottom: 0; left: 0; display: flex; gap: 4px; will-change: transform; }
.pc-rail .pc-slide { position: relative; left: auto !important; flex: 0 0 auto; width: calc(64vw - 8px) !important; height: 100%; opacity: 1 !important; transition: none; }
.pc-rail .pc-slide img { left: 0; width: 100%; transform: none; }
.pc-rail .pc-slide .pl-cap, .pc-rail .pc-slide::after { opacity: 0; transition: opacity .35s; }
.pc-rail .pc-slide.on .pl-cap, .pc-rail .pc-slide.on::after { opacity: 1; }
.pc-rail .pc-slide.on .pl-cap b { font-size: 24px; }
@media (max-width: 719px) { .pc-rail .pc-slide { width: calc(80vw - 6px) !important; } .pc-rail .pc-slide.on .pl-cap b { font-size: 18px; } }

/* 지도 확대 · 축소: 오른쪽 아래 (출처 글씨 위), 휴대폰에서도 누르기 쉽게 */
.leaflet-bottom.leaflet-right .leaflet-control-zoom { margin: 0 12px 30px 0; box-shadow: 0 2px 8px rgba(8,34,60,.22); border: 0; }
.leaflet-control-zoom a { width: 38px !important; height: 38px !important; line-height: 38px !important; font-size: 20px !important; }
/* PC: 화면 오른쪽 빠른 버튼(최근 본 것 · 검색 · 맨 위로)과 겹치지 않게 조금 왼쪽으로 */
@media (min-width: 720px) { .leaflet-bottom.leaflet-right .leaflet-control-zoom { margin-right: 64px; } }

/* ── 겹쳐 펼치기 넘김 (최종) ── */
.pc-stage .pc-slide { position: absolute; top: 0; bottom: 0; flex: none; height: auto; opacity: 1 !important;
  transition: left .7s cubic-bezier(.4,0,.2,1), width .7s cubic-bezier(.4,0,.2,1); box-shadow: 0 0 0 4px #fff; }
.pc-stage .pc-slide img { left: 50%; width: 64vw; transform: translateX(-50%); filter: none; transition: none; }
.pc-stage .pc-slide[data-pos="c"]  { left: 18% !important; width: 64% !important; z-index: 4; }
.pc-stage .pc-slide[data-pos="l"]  { left: 0 !important; width: 18% !important; z-index: 3; }
.pc-stage .pc-slide[data-pos="r"]  { left: 82% !important; width: 18% !important; z-index: 3; }
.pc-stage .pc-slide[data-pos="ll"] { left: 0 !important; width: 18% !important; z-index: 1; }
.pc-stage .pc-slide[data-pos="rr"] { left: 82% !important; width: 18% !important; z-index: 1; }
/* 넘어가는 동안: 새로 가운데로 오는 사진이 맨 위 */
.pc-stage[data-dir] .pc-slide[data-pos="c"] { z-index: 5; }
.pc-stage .pc-slide .pl-cap, .pc-stage .pc-slide::after { opacity: 0; transition: opacity .35s; }
.pc-stage .pc-slide[data-pos="c"] .pl-cap, .pc-stage .pc-slide[data-pos="c"]::after { opacity: 1; transition-delay: .35s; }
@media (max-width: 719px) {
  .pc-stage .pc-slide img { width: 80vw; }
  .pc-stage .pc-slide[data-pos="c"] { left: 10% !important; width: 80% !important; }
  .pc-stage .pc-slide[data-pos="l"], .pc-stage .pc-slide[data-pos="ll"] { width: 10% !important; }
  .pc-stage .pc-slide[data-pos="r"], .pc-stage .pc-slide[data-pos="rr"] { left: 90% !important; width: 10% !important; }
}
/* 확대 · 축소: 아래 빠른 버튼 · 휴대폰 탭 막대와 안 겹치게 위로 */
.leaflet-bottom.leaflet-right .leaflet-control-zoom { margin-bottom: 180px !important; margin-right: 12px !important; }
@media (max-width: 719px) { .leaflet-bottom.leaflet-right .leaflet-control-zoom { margin-bottom: 150px !important; } }

/* 한국어 화면: 제목도 같은 고딕(굵게)으로 — 영어 제목 세리프와 어울리게 */
html[lang="ko"] .section-title, html[lang="ko"] .cal-month, html[lang="ko"] h1, html[lang="ko"] h2 { font-family: 'Pretendard Variable', Pretendard, system-ui, sans-serif; font-weight: 800; letter-spacing: -.02em; }
body { letter-spacing: -.005em; }

/* ── 다이어리 달력: 날짜마다 가는 선, 칸 더 길게 ── */
.cal-grid { gap: 0 !important; padding: 0 !important; border-top: 1px solid #DCE6EE; border-left: 1px solid #DCE6EE; margin: 10px 12px 14px; }
.cal-grid > .cal-dow { padding: 10px 0 8px; border-right: 1px solid #DCE6EE; border-bottom: 1px solid #DCE6EE; background: #F6F9FC; }
.cal-grid > .cal-day, .cal-grid > .cal-empty, .cal-grid > div:not(.cal-dow) { border-right: 1px solid #DCE6EE; border-bottom: 1px solid #DCE6EE; border-radius: 0 !important; }
.cal-day { background: #fff; justify-content: flex-start; padding-top: 8px !important; }
.cal-day.today { background: #E9F5FD !important; color: var(--navy) !important; box-shadow: inset 0 0 0 2px var(--sky, #2EA3E6); }
.cal-day.today .ev { color: var(--sky-deep, #0B78BE) !important; }
@media (min-width: 720px) { .cal-day { min-height: 118px !important; } }
@media (max-width: 719px) { .cal-day { min-height: 78px !important; } .cal-grid { margin: 8px 6px 10px; } }

/* ── 작은 지도: 확대 · 축소 버튼이 다 보이게 가운데쯤 ── */
.pl-layout:not(.full) .leaflet-bottom.leaflet-right .leaflet-control-zoom,
.xp-layout:not(.full) .leaflet-bottom.leaflet-right .leaflet-control-zoom,
#pick-map .leaflet-control-zoom, #suggest-map .leaflet-control-zoom { margin-bottom: 70px !important; margin-right: 10px !important; }

/* ── Places 위 사진: 화살표 없앰 (아래 장소 버튼으로만 바뀜) ── */
.pc-arrow { display: none !important; }
.pc-slide[data-pos="l"], .pc-slide[data-pos="r"] { cursor: default; }
.pc-stage.instant .pc-slide, .pc-stage.instant .pc-slide .pl-cap, .pc-stage.instant .pc-slide::after { transition: none !important; }

/* ── 글자 간격 · 줄 간격 정리 (한국어 · 영어) ── */
/* 한국어: 낱말이 줄 끝에서 쪼개지지 않게, 줄 간격 조금 넉넉히 */
html[lang="ko"] body { word-break: keep-all; overflow-wrap: break-word; line-height: 1.65; letter-spacing: -.01em; }
html[lang="en"] body { letter-spacing: 0; line-height: 1.55; }
/* 제목 줄 간격 · 제목과 설명 사이 */
.section-title { line-height: 1.25; }
html[lang="ko"] .section-title { line-height: 1.3; }
.section-title + .section-sub, h1 + .section-sub, .section-title + p { margin-top: 6px; }
.section-sub { line-height: 1.6; }
.mm-h { line-height: 1.3; }
.mm-p, .xp-note, .pd-help { line-height: 1.65; }
/* 영어 대문자 작은 제목(EYEBROW)은 넓게, 한국어는 좁게 */
html[lang="ko"] .eyebrow, html[lang="ko"] .xp-eyebrow { letter-spacing: .14em; }
/* 큰 글씨 제목: 한국어는 줄 간격 조금 더 */
html[lang="ko"] .hs-text h2, html[lang="ko"] .sb-text h2, html[lang="ko"] .xp-hero h1, html[lang="ko"] .st-hero-text h1 { line-height: 1.15; letter-spacing: -.02em; }
/* 버튼 · 칩 · 메뉴: 한 줄, 글자 사이 기본 */
.btn, .chip, .topnav a, .btn-emergency, .tabbar a span { letter-spacing: -.01em; white-space: nowrap; }
html[lang="en"] .btn, html[lang="en"] .chip, html[lang="en"] .topnav a { letter-spacing: 0; }
/* 푸터 한 줄 문구: 너무 벌어지지 않게 */
.footer .tagline { letter-spacing: .14em; }
/* 카드 · 사진 위 글씨 */
.pl-cap b, .mm-card strong, .xp-poster h3, .mm-days figcaption { line-height: 1.3; letter-spacing: -.01em; }
.pl-cap small, .mm-card span { line-height: 1.5; }
/* 작은 글씨(달력 행사 이름 등)는 좁게 유지 */
.cal-day .ev { letter-spacing: -.03em; }

/* ── 여백: 위 큰 사진과 제목 사이 넉넉히, 아래 작은 제목들도 위아래 여백 ── */
.ch-bleed, .chs.ch-bleed, .pc.ch-bleed { margin-bottom: 56px !important; }
.ch-bleed + .eyebrow, .ch-bleed + .section-head, .ch-bleed + div > .eyebrow { margin-top: 0; }
.section-title { margin-bottom: 4px; }
.section-sub { margin-bottom: 28px; }
.section-head { margin-bottom: 8px; }
.mm-h { margin: 72px 0 10px !important; }
.mm-p { margin-bottom: 26px !important; }
.mm-rainbow { margin-top: 88px !important; }
.pet-strip-head { margin-top: 44px !important; margin-bottom: 6px; }
#cal-events, .cal-events { margin-top: 18px; }
@media (max-width: 719px) {
  .ch-bleed, .chs.ch-bleed, .pc.ch-bleed { margin-bottom: 36px !important; }
  .section-sub { margin-bottom: 22px; }
  .mm-h { margin-top: 52px !important; }
  .mm-rainbow { margin-top: 64px !important; }
}

/* ── 크게 본 지도: "작게 보기" 버튼을 지도 왼쪽 위에 띄움, 지도 맨 위가 메뉴 막대에 가리지 않게 ── */
.pl-side, .xp-side { position: sticky; }
.pl-layout.full .pl-side, .xp-layout.full .xp-side { position: sticky; }
.pl-layout.full .pl-side-head, .xp-layout.full .pl-side-head { display: block !important; position: absolute; z-index: 1001; top: 12px; left: 12px; margin: 0; }
.pl-layout.full .pl-side, .xp-layout.full .xp-side { position: sticky; }
.map-shrink { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border: 0; border-radius: 6px; background: #fff; color: var(--navy); font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; box-shadow: 0 2px 10px rgba(8,34,60,.25); }
.map-shrink span { font-size: 16px; color: var(--sky-deep, #0B78BE); }
.map-shrink:hover { color: var(--sky-deep, #0B78BE); }
.pl-layout.full .pl-side, .xp-layout.full .xp-side { top: calc(var(--bar-h, 92px) + 12px); }
.pl-layout.full .pl-side .map-box { height: calc(100vh - var(--bar-h, 92px) - 36px) !important; }
.xp-layout.full .xp-side .map-box { height: calc(100vh - var(--bar-h, 92px) - 70px) !important; }
@media (max-width: 719px) {
  .pl-layout.full .pl-side, .xp-layout.full .xp-side { position: fixed !important; inset: var(--bar-h, 68px) 0 0 0 !important; top: var(--bar-h, 68px) !important; }
  .pl-layout.full .pl-side-head, .xp-layout.full .pl-side-head { top: 20px; left: 20px; }
  .pl-layout.full .pl-side .map-box, .xp-layout.full .xp-side .map-box { height: auto !important; }
}

/* Memory → 무지개다리 들어가기 버튼 */
.mm-enter { display: inline-block; padding: 14px 30px; border-radius: 999px; background: linear-gradient(90deg, #F7B9C8, #F9D59B, #B9E3C9, #B9C9F7, #D7B9F7); color: #3E2E24; font-weight: 900; font-size: 16px; text-decoration: none; box-shadow: 0 8px 24px rgba(120,90,160,.25); transition: transform .2s; }
.mm-enter:hover { transform: translateY(-2px); }
.pp-rb { font-size: 13px; }

/* 헤더 무지개 아이콘 → 무지개다리 */
.icon-btn.hd-rb { font-size: 18px; line-height: 1; text-decoration: none; display: inline-grid; place-items: center; }
.icon-btn.hd-rb:hover { transform: translateY(-1px); }
/* 무지개 아이콘 (위 메뉴 · Memory 페이지) — 무지개다리로 이동, 박스 없이 */
.rb-ico { display: block; }
/* 위 메뉴: 버튼(34px)과 아래 끝을 맞춤 — 무지개 높이 38px 중 4px 만 위로 올라옴 */
.icon-btn.hd-rb, .home .topbar:not(.solid) .icon-btn.hd-rb { position: relative; width: auto; height: 34px; padding: 0 2px; border: 0; background: none; box-shadow: none; display: flex; align-items: flex-end; overflow: visible; }
.icon-btn.hd-rb .rb-ico { width: 60px; height: 38px; margin-bottom: -1px; filter: drop-shadow(0 1px 1.5px rgba(0,0,0,.12)); transition: transform .2s ease; }
.icon-btn.hd-rb:hover .rb-ico, .icon-btn.hd-rb:focus-visible .rb-ico { transform: translateY(-2px); }
/* 마우스를 올리면 "무지개다리로 가기" 글씨가 떠오름 */
.hd-tip { position: absolute; top: calc(100% + 8px); left: 50%; transform: translate(-50%, -4px); white-space: nowrap; pointer-events: none; opacity: 0;
  padding: 6px 11px; border-radius: 999px; background: rgba(11,42,74,.92); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 0; transition: opacity .2s ease, transform .2s ease; z-index: 5; }
.icon-btn.hd-rb:hover .hd-tip, .icon-btn.hd-rb:focus-visible .hd-tip { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 719px) { .icon-btn.hd-rb { height: 30px; } .icon-btn.hd-rb .rb-ico { width: 46px; height: 29px; } .hd-tip { display: none; } }
.mm-rb { display: flex; flex-direction: column; align-items: center; gap: 8px; width: max-content; margin: 8px auto 40px; color: var(--navy, #0B2A4A); font-size: 15px; font-weight: 700; text-decoration: none; }
.mm-rb .rb-ico.big { width: 162px; height: 102px; transition: transform .25s ease; }
.mm-rb:hover .rb-ico.big { transform: translateY(-3px); }
.mm-head { margin-top: 8px; }
@media (max-width: 640px) { .mm-rb .rb-ico.big { width: 120px; height: 75px; } .mm-rb { margin-bottom: 28px; } }

/* 위 메뉴: 삼선(메뉴) 버튼은 상자 없이 선만 · "지금 문 연 병원" 버튼 높이 낮게 (PC · 휴대폰, 2026-11-25) */
.topbar .icon-btn[data-drawer-open], .home .topbar:not(.solid) .icon-btn[data-drawer-open] { border: 0 !important; background: none !important; box-shadow: none !important; backdrop-filter: none !important; width: 36px; }
.topbar .icon-btn[data-drawer-open] svg { width: 22px; height: 22px; }
.home .topbar:not(.solid) .icon-btn[data-drawer-open] svg { filter: drop-shadow(0 1px 2px rgba(0,0,0,.35)); }
.topbar .btn-emergency { height: 30px; padding: 0 12px; font-size: 13px; }
@media (max-width: 719px) { .topbar .btn-emergency { height: 26px; padding: 0 10px; font-size: 12px; } }
/* 무지개 아이콘 작게 · "지금 문 연 병원" 더 낮게 (2026-11-25) */
.icon-btn.hd-rb .rb-ico { width: 44px; height: 28px; }
.mm-rb .rb-ico.big { width: 112px; height: 70px; }
.mm-rb-icon .rb-ico { width: 64px; height: 40px; margin: 0 auto; }
.topbar .btn-emergency { height: 26px; padding: 0 11px; font-size: 12.5px; }
@media (max-width: 719px) { .icon-btn.hd-rb .rb-ico { width: 36px; height: 23px; } .mm-rb .rb-ico.big { width: 88px; height: 55px; } .topbar .btn-emergency { height: 22px; padding: 0 8px; font-size: 11.5px; } }
/* 무지개 아이콘 아래 끝 = "지금 문 연 병원" 버튼 아래 끝 (같은 높이 상자에서 아래 맞춤) */
.topbar .icon-btn.hd-rb, .home .topbar:not(.solid) .icon-btn.hd-rb { height: 26px; align-self: center; }
.icon-btn.hd-rb .rb-ico { margin-bottom: 0; }
@media (max-width: 719px) { .topbar .icon-btn.hd-rb, .home .topbar:not(.solid) .icon-btn.hd-rb { height: 22px; } }
/* 무지개 그림 아래쪽 빈 여백(그림 칸의 1/10)만큼 내려서, 무지개 아래 끝 = 버튼 아래 끝 */
.icon-btn.hd-rb .rb-ico { margin-bottom: -2.8px; }
@media (max-width: 719px) { .icon-btn.hd-rb .rb-ico { margin-bottom: -2.3px; } }

/* 2026-11-30: 한국어 줄바꿈 다듬기 — 낱말 안 쪼갬 + 줄 길이 고르게, 제목은 균형 있게, 알림은 문장마다 줄바꿈 */
html[lang="ko"] p, html[lang="ko"] li, html[lang="ko"] .sub, html[lang="ko"] small { text-wrap: pretty; }
html[lang="ko"] h1, html[lang="ko"] h2, html[lang="ko"] h3, html[lang="ko"] .title { text-wrap: balance; }
.toast, .pw-toast, [role="status"] { white-space: pre-line; }

/* 2026-11-30: 30일 책자 기간 — 휴대폰에서 날짜가 두 줄로 깨지지 않게: 가운데에 시작일 · 끝 날짜를 세로로, 양옆 ‹ › */
.bk-to { white-space: nowrap; }
@media (max-width: 599px) {
  .bk-range { display: grid !important; grid-template-columns: 44px 1fr 44px; grid-template-areas: "prev from next" "prev to next"; align-items: center; column-gap: 10px; row-gap: 6px; padding: 12px 10px; }
  .bk-range #bk-prev { grid-area: prev; } .bk-range #bk-next { grid-area: next; }
  .bk-range .bk-from { grid-area: from; align-items: center; text-align: center; }
  .bk-range .bk-from input { width: 100%; max-width: 220px; box-sizing: border-box; text-align: center; font-size: 16px; }
  .bk-range .bk-to { grid-area: to; text-align: center; font-size: 14px; color: var(--ink-2); }
  .bk-nav { width: 44px; height: 44px; }
}
/* 미아 공고: 맨 위 사진 올리기 (가운데) + 아래 미리보기 */
.lp-photo-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 4px 0 18px; }
.lp-photo { width: min(360px, 100%); display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px 16px; border: 2px dashed #BFD9EE; border-radius: 8px; background: #F5FAFE; cursor: pointer; text-align: center; font-size: 15px; }
.lp-photo:hover { border-color: var(--sky, #2FA3E6); }
.lp-photo-ic { font-size: 30px; line-height: 1; }
.lp-photo small { font-size: 13px; color: #5A6B7A; }
.lp-photo-prev { position: relative; width: min(360px, 100%); }
.lp-photo-prev[hidden] { display: none; }
.lp-photo-prev img { width: 100%; max-height: 360px; object-fit: contain; border-radius: 8px; background: #F2F5F8; display: block; }
.lp-photo-x { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(0,0,0,.55); color: #fff; font-size: 18px; cursor: pointer; }
