/* 시안 mockup/cd.html(2026-11-22 확정)의 CSS를 그대로 옮긴 것. T2와 T12에서 쓰지 않는 규칙을 덜고 인라인 style을 클래스로 옮긴다(설계 12장). */

/* ============ 토큰과 바탕 ============ */
.mk-cd {
  /* 테마 토큰. 기본은 navy이고, 아래 [data-theme]이 이 값만 덮어쓴다 */
  --head-bg: #1b3a6b;                        /* 위 막대와 홈 머리 바탕 */
  --head-ink: #ffffff;                       /* 머리 글자, 로고, 지금 메뉴 */
  --head-ink-2: #dfe3ea;                     /* 머리 메뉴, "발견했어요" 설명 */
  --head-line: rgba(255, 255, 255, 0.78);    /* "발견했어요" 테두리 */
  --head-fill: rgba(255, 255, 255, 0.14);    /* 지금 메뉴 받침 */
  --head-fill-hover: rgba(255, 255, 255, 0.08);
  --head-focus: #ffffff;                     /* 머리 위 초점 고리 */
  --cta-bg: #ffffff;                         /* "잃어버렸어요" */
  --cta-ink: #1b3a6b;
  --cta-hover: #eef1f6;
  --cta-icon-bg: #1b3a6b;
  --cta-icon-ink: #ffffff;
  --found-icon-bg: #ffffff;                  /* "발견했어요" 동그라미 */
  --found-icon-ink: #1b3a6b;
  --signal-bg: #1b3a6b;                      /* 지금 할 일: 전단지 만들기, 이미지로 받기 */
  --signal-ink: #ffffff;
  --signal-hover: #234781;
  --primary-bg: #1b3a6b;                     /* 주 버튼 */
  --primary-ink: #ffffff;
  --primary-line: transparent;
  --primary-hover: #234781;
  --tonal-bg: #e8e7e2;                       /* 공유 버튼 */
  --tonal-ink: #1a1a18;
  --tonal-line: transparent;
  --tonal-hover: #dedcd6;
  --accent: #1b3a6b;                         /* 링크, 초점, 전단지 제목과 연락처 */
  --caution: #7a4e00;
  --caution-tint: #fbefd5;
  --bg: #eae9e5;
  --surface: #ffffff;
  --fill: #f4f3f0;
  --fill-2: #e8e7e2;
  --fill-2-hover: #dedcd6;
  --ink: #1a1a18;
  --ink-2: #5c5b56;
  --ink-3: #6b6a65;
  --line: #8a8984;
  --hair: rgba(26, 26, 24, 0.10);
  --hair-strong: rgba(26, 26, 24, 0.16);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --r-card: 20px;
  --shadow-card: 0 1px 2px rgba(26, 26, 24, 0.05), 0 8px 24px -12px rgba(26, 26, 24, 0.2);
  --shadow-card-hover: 0 1px 2px rgba(26, 26, 24, 0.06), 0 16px 36px -14px rgba(26, 26, 24, 0.3);
  --pad: 20px;
  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  --display: "Black Han Sans", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  word-break: keep-all;
  overflow-wrap: break-word;
}
@media (min-width: 1024px) {
  .mk-cd { --pad: 40px; }
}
/* 테마 후보: 배치는 같고 색 토큰만 바꾼다. 바탕, 면, 글자, 경고색은 넷 다 같다 */
.mk-cd[data-theme="ink"] {
  --head-bg: #2b2a27; --head-ink: #ffffff; --head-ink-2: #e1e1e1;
  --head-line: rgba(255, 255, 255, 0.78); --head-fill: rgba(255, 255, 255, 0.14);
  --head-fill-hover: rgba(255, 255, 255, 0.08); --head-focus: #ffffff;
  --cta-bg: #ffffff; --cta-ink: #1a1a18; --cta-hover: #f0efeb; --cta-icon-bg: #1a1a18; --cta-icon-ink: #ffffff;
  --found-icon-bg: #ffffff; --found-icon-ink: #1a1a18;
  --signal-bg: #1a1a18; --signal-ink: #ffffff; --signal-hover: #3a3935;
  --primary-bg: #1a1a18; --primary-ink: #ffffff; --primary-hover: #3a3935;
  --accent: #1a1a18;
}
.mk-cd[data-theme="lime"] {
  --head-bg: #d9eac0; --head-ink: #1a1a18; --head-ink-2: #45443f;
  --head-line: rgba(26, 26, 24, 0.8); --head-fill: rgba(26, 26, 24, 0.08);
  --head-fill-hover: rgba(26, 26, 24, 0.06); --head-focus: #1a1a18;
  --cta-bg: #1a1a18; --cta-ink: #ffffff; --cta-hover: #3a3935; --cta-icon-bg: #ffffff; --cta-icon-ink: #1a1a18;
  --found-icon-bg: #1a1a18; --found-icon-ink: #ffffff;
  --signal-bg: #1a1a18; --signal-ink: #ffffff; --signal-hover: #3a3935;
  --primary-bg: #1a1a18; --primary-ink: #ffffff; --primary-hover: #3a3935;
  --accent: #1a1a18;
}
.mk-cd[data-theme="graylime"] {
  --head-bg: #dedcd6; --head-ink: #1a1a18; --head-ink-2: #45443f;
  --head-line: rgba(26, 26, 24, 0.8); --head-fill: rgba(26, 26, 24, 0.08);
  --head-fill-hover: rgba(26, 26, 24, 0.06); --head-focus: #1a1a18;
  --cta-bg: #c4e19a; --cta-ink: #1a1a18; --cta-hover: #b6d886; --cta-icon-bg: #1a1a18; --cta-icon-ink: #ffffff;
  --found-icon-bg: #1a1a18; --found-icon-ink: #ffffff;
  --signal-bg: #c4e19a; --signal-ink: #1a1a18; --signal-hover: #b6d886;
  --primary-bg: #1a1a18; --primary-ink: #ffffff; --primary-line: transparent; --primary-hover: #3a3935;
  --accent: #1a1a18;
}
/* 2026-11-21 둘째: 회색과 연두를 다시 섞은 변형 3개. 연두는 지금 할 일에만 */
.mk-cd[data-theme="white"] {
  --head-bg: #ffffff; --head-ink: #1a1a18; --head-ink-2: #45443f;
  --head-line: rgba(26, 26, 24, 0.8); --head-fill: rgba(26, 26, 24, 0.06);
  --head-fill-hover: rgba(26, 26, 24, 0.05); --head-focus: #1a1a18;
  --cta-bg: #c4e19a; --cta-ink: #1a1a18; --cta-hover: #b6d886; --cta-icon-bg: #1a1a18; --cta-icon-ink: #ffffff;
  --found-icon-bg: #1a1a18; --found-icon-ink: #ffffff;
  --signal-bg: #c4e19a; --signal-ink: #1a1a18; --signal-hover: #b6d886;
  --primary-bg: #1a1a18; --primary-ink: #ffffff; --primary-hover: #3a3935;
  --accent: #1a1a18;
}
.mk-cd[data-theme="inklime"] {
  --head-bg: #2b2a27; --head-ink: #ffffff; --head-ink-2: #e1e1e1;
  --head-line: rgba(255, 255, 255, 0.78); --head-fill: rgba(255, 255, 255, 0.14);
  --head-fill-hover: rgba(255, 255, 255, 0.08); --head-focus: #ffffff;
  --cta-bg: #c4e19a; --cta-ink: #1a1a18; --cta-hover: #b6d886; --cta-icon-bg: #1a1a18; --cta-icon-ink: #ffffff;
  --found-icon-bg: #ffffff; --found-icon-ink: #1a1a18;
  --signal-bg: #c4e19a; --signal-ink: #1a1a18; --signal-hover: #b6d886;
  --primary-bg: #1a1a18; --primary-ink: #ffffff; --primary-hover: #3a3935;
  --accent: #1a1a18;
}
.mk-cd[data-theme="sage"] {
  --head-bg: #d9dccd; --head-ink: #1a1a18; --head-ink-2: #45443f;
  --head-line: rgba(26, 26, 24, 0.8); --head-fill: rgba(26, 26, 24, 0.08);
  --head-fill-hover: rgba(26, 26, 24, 0.06); --head-focus: #1a1a18;
  --cta-bg: #1a1a18; --cta-ink: #ffffff; --cta-hover: #3a3935; --cta-icon-bg: #c4e19a; --cta-icon-ink: #1a1a18;
  --found-icon-bg: #1a1a18; --found-icon-ink: #ffffff;
  --signal-bg: #c4e19a; --signal-ink: #1a1a18; --signal-hover: #b6d886;
  --primary-bg: #1a1a18; --primary-ink: #ffffff; --primary-hover: #3a3935;
  --accent: #1a1a18;
}
.mk-cd, .mk-cd *, .mk-cd *::before, .mk-cd *::after { box-sizing: border-box; }
.mk-cd h1, .mk-cd h2, .mk-cd h3, .mk-cd p, .mk-cd ol, .mk-cd ul,
.mk-cd dl, .mk-cd dd, .mk-cd figure { margin: 0; padding: 0; }
.mk-cd ol, .mk-cd ul { list-style: none; }
.mk-cd img { display: block; max-width: 100%; }
.mk-cd a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.mk-cd button {
  font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0;
  cursor: pointer; text-align: inherit; -webkit-tap-highlight-color: transparent;
}
.mk-cd input, .mk-cd select, .mk-cd textarea { font: inherit; color: inherit; margin: 0; }
.mk-cd mark { background: none; color: inherit; }
.mk-cd :focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.mk-cd .cd-on-pine :focus-visible { outline-color: var(--head-focus); }
.mk-cd [id] { scroll-margin-top: 84px; }
.mk-cd .cd-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.mk-cd .cd-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.mk-cd .cd-ic {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.mk-cd .cd-wrap { max-width: 1280px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* ============ 화면 구분 ============ */
.mk-cd .cd-screen-label {
  background: #dedcd6; color: #5c5b56;
  font-size: 13px; line-height: 1.4; font-weight: 500;
  padding: 12px 0; border-bottom: 1px solid var(--hair-strong);
}
.mk-cd .cd-screen { padding-bottom: 56px; }

/* ============ 위 막대: 머리색 한 줄 ============ */
.mk-cd .cd-top { position: sticky; top: 0; z-index: 20; background: var(--head-bg); color: var(--head-ink); }
.mk-cd .cd-top-in { display: flex; align-items: center; gap: 8px; height: 56px; }
.mk-cd .cd-logo {
  flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-size: 17px; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap;
}
.mk-cd .cd-logo-ring { width: 18px; height: 18px; border-radius: 50%; border: 3px solid currentColor; }
.mk-cd .cd-nav {
  flex: 1; min-width: 0; overflow-x: auto; padding: 6px 4px;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent);
}
.mk-cd .cd-nav[data-end] { -webkit-mask-image: none; mask-image: none; }
.mk-cd .cd-nav::-webkit-scrollbar { display: none; }
.mk-cd .cd-nav ul { display: flex; gap: 2px; white-space: nowrap; }
.mk-cd .cd-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--head-ink-2);
  transition: background-color 180ms ease, color 180ms ease;
}
.mk-cd .cd-nav a[aria-current="page"] { color: var(--head-ink); font-weight: 700; background: var(--head-fill); }

/* ============ 홈 머리: 머리색 바탕, 큰 제목, 길 나누기 ============ */
.mk-cd .cd-hero { background: var(--head-bg); color: var(--head-ink); padding: 20px 0 76px; }
.mk-cd .cd-display {
  font-family: var(--display); font-weight: 400; font-synthesis: none;
  font-size: 36px; line-height: 1.22; letter-spacing: -0.005em;
}
.mk-cd .cd-display span { display: block; }
.mk-cd .cd-paths { display: grid; gap: 10px; margin-top: 24px; }
.mk-cd .cd-path {
  display: grid; grid-template-columns: minmax(0, 1fr) 48px; align-items: center; column-gap: 14px;
  min-height: 84px; padding: 16px 16px 16px 20px; border-radius: 18px;
  transition: transform 160ms var(--ease-out), background-color 180ms ease;
}
.mk-cd .cd-path-title { display: block; font-size: 24px; line-height: 1.25; font-weight: 800; letter-spacing: -0.03em; }
.mk-cd .cd-path-desc { display: block; margin-top: 4px; font-size: 15px; line-height: 1.45; }
.mk-cd .cd-path-icon { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; }
.mk-cd .cd-path-icon .cd-ic { width: 22px; height: 22px; stroke-width: 2.2; }
.mk-cd .cd-path-lost { background: var(--cta-bg); color: var(--cta-ink); }
.mk-cd .cd-path-lost:focus-visible { outline-color: var(--head-focus); }
.mk-cd .cd-path-lost .cd-path-icon { background: var(--cta-icon-bg); color: var(--cta-icon-ink); }
.mk-cd .cd-path-found { color: var(--head-ink); box-shadow: inset 0 0 0 2px var(--head-line); }
.mk-cd .cd-path-found .cd-path-desc { color: var(--head-ink-2); }
.mk-cd .cd-path-found .cd-path-icon { background: var(--found-icon-bg); color: var(--found-icon-ink); }

/* ============ 한 칸 검색판: 머리 아래로 걸친다 ============ */
.mk-cd .cd-search {
  position: relative; display: grid; gap: 10px; margin-top: -52px; padding: 16px;
  background: var(--surface); border-radius: 22px;
  box-shadow: 0 2px 4px rgba(26, 26, 24, 0.06), 0 18px 40px -18px rgba(26, 26, 24, 0.42);
}
.mk-cd .cd-field { position: relative; display: block; }
.mk-cd .cd-field > .cd-ic {
  position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
  color: var(--ink-2); pointer-events: none;
}
.mk-cd .cd-input {
  display: block; width: 100%; height: 52px; padding: 0 14px;
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface);
  font-size: 16px; color: var(--ink); -webkit-appearance: none; appearance: none;
  transition: border-color 160ms ease;
}
.mk-cd .cd-field > .cd-input { padding-left: 46px; }
.mk-cd .cd-input::placeholder { color: var(--ink-3); opacity: 1; }
.mk-cd .cd-input::-webkit-search-decoration,
.mk-cd .cd-input::-webkit-search-cancel-button { -webkit-appearance: none; }
.mk-cd .cd-input:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.mk-cd textarea.cd-input { height: auto; min-height: 104px; padding: 12px 14px; line-height: 1.55; resize: vertical; }
.mk-cd .cd-region { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.mk-cd .cd-select {
  position: relative; display: flex; align-items: center; gap: 8px; height: 52px;
  padding: 8px 12px 8px 14px; border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--surface); cursor: pointer;
}
.mk-cd .cd-select-k { flex: none; font-size: 13px; color: var(--ink-2); }
.mk-cd .cd-select select {
  flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; cursor: pointer;
  font-size: 16px; font-weight: 600; padding: 0 22px 0 0; -webkit-appearance: none; appearance: none;
  height: calc(100% + 16px); margin: -8px 0;
}
.mk-cd .cd-select select:focus-visible { outline: none; }
.mk-cd .cd-select:focus-within { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.mk-cd .cd-select > .cd-ic {
  position: absolute; right: 12px; top: 50%; width: 16px; height: 16px;
  transform: translateY(-50%); color: var(--ink-2); pointer-events: none;
}

/* 종류 전환(강아지, 고양이, 기타)과 필터의 세 칸 고르기: 받침이 미끄러진다 (C). 고른 칸 번호는 data-i */
.mk-cd .cd-seg {
  position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 4px; border-radius: 14px; background: #e3e2dd;
}
.mk-cd .cd-seg-thumb {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 3);
  border-radius: 10px; background: var(--surface);
  box-shadow: 0 1px 2px rgba(26, 26, 24, 0.1), 0 3px 8px rgba(26, 26, 24, 0.1);
  transition: transform 320ms var(--ease-drawer);
}
.mk-cd .cd-seg[data-i="1"] .cd-seg-thumb { transform: translateX(100%); }
.mk-cd .cd-seg[data-i="2"] .cd-seg-thumb { transform: translateX(200%); }
.mk-cd .cd-seg label { position: relative; display: block; cursor: pointer; }
.mk-cd .cd-seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.mk-cd .cd-seg-txt {
  display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 10px;
  font-size: 15px; font-weight: 600; color: var(--ink-2); transition: color 200ms ease;
}
.mk-cd .cd-seg input:checked + .cd-seg-txt { color: var(--ink); font-weight: 700; }
.mk-cd .cd-seg input:focus-visible + .cd-seg-txt { outline: 3px solid var(--accent); outline-offset: 0; }

/* ============ 버튼, 링크, 칩 ============ */
.mk-cd .cd-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: 14px;
  font-size: 16px; line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap;
  transition: transform 140ms var(--ease-out), background-color 180ms ease, box-shadow 180ms ease;
}
.mk-cd .cd-btn .cd-ic { width: 18px; height: 18px; }
.mk-cd .cd-btn-primary { background: var(--primary-bg); color: var(--primary-ink); box-shadow: inset 0 0 0 2px var(--primary-line); }
.mk-cd .cd-btn-signal { background: var(--signal-bg); color: var(--signal-ink); }
.mk-cd .cd-btn-secondary { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.mk-cd .cd-btn-tonal { background: var(--tonal-bg); color: var(--tonal-ink); box-shadow: inset 0 0 0 1.5px var(--tonal-line); }
.mk-cd .cd-btn-block { display: flex; width: 100%; }
.mk-cd .cd-link {
  display: inline-flex; align-items: center; gap: 4px; min-height: 44px;
  color: var(--accent); font-weight: 700;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px;
}
.mk-cd .cd-chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px 0 16px;
  border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--hair-strong);
  font-size: 15px; font-weight: 500; white-space: nowrap;
  transition: transform 140ms var(--ease-out), background-color 180ms ease;
}
.mk-cd .cd-chip .cd-ic { width: 16px; height: 16px; color: var(--ink-2); }
.mk-cd .cd-chip.is-set { background: var(--fill-2); color: var(--ink); font-weight: 700; box-shadow: inset 0 0 0 1.5px var(--ink); }
.mk-cd .cd-chip.is-set .cd-ic { color: var(--ink); }

/* 눌림: 손가락이 닿는 순간 반응 (C) */
.mk-cd .cd-btn:active, .mk-cd .cd-chip:active { transform: scale(0.97); }
.mk-cd .cd-path:active { transform: scale(0.98); }
.mk-cd .cd-pcard:active { transform: scale(0.985); }
.mk-cd .cd-card:has(> .cd-card-hit:active) { transform: scale(0.99); }

/* ============ 묶음 머리 ============ */
.mk-cd .cd-sec { margin-top: 48px; }
.mk-cd .cd-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.mk-cd .cd-h1 { font-size: 30px; line-height: 1.2; letter-spacing: -0.03em; font-weight: 800; color: var(--ink); }
.mk-cd .cd-h2 { font-size: 22px; line-height: 1.32; letter-spacing: -0.024em; font-weight: 800; color: var(--ink); text-wrap: balance; }
.mk-cd .cd-h3 { font-size: 17px; line-height: 1.4; letter-spacing: -0.015em; font-weight: 800; color: var(--ink); }
.mk-cd .cd-count { flex: none; display: flex; flex-direction: column; align-items: flex-end; line-height: 1; }
.mk-cd .cd-count-k { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.mk-cd .cd-count-v { margin-top: 4px; font-size: 32px; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.mk-cd .cd-lede { margin-top: 6px; max-width: 40em; font-size: 15px; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.mk-cd .cd-sec-foot { display: grid; gap: 12px; margin-top: 16px; }
.mk-cd .cd-source { font-size: 13px; line-height: 1.5; color: var(--ink-2); }

/* ============ 카드 격자 ============ */
.mk-cd .cd-grid { display: grid; gap: 12px; margin-top: 16px; }
.mk-cd .cd-grid-home { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mk-cd .cd-grid-list { grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }

/* ============ 카드 공통 (C의 흰 면) ============ */
.mk-cd .cd-pcard,
.mk-cd .cd-card {
  display: block; overflow: hidden; background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow-card);
  transition: transform 160ms var(--ease-out), box-shadow 240ms ease;
}
.mk-cd .cd-pcard { height: 100%; }
.mk-cd .cd-photo { position: relative; display: block; overflow: hidden; background: #dddbd5; }
.mk-cd .cd-photo img { width: 100%; height: 100%; object-fit: cover; }
.mk-cd .cd-photo-45 { aspect-ratio: 4 / 5; }
.mk-cd .cd-photo-43 { aspect-ratio: 4 / 3; }
.mk-cd .cd-card > .cd-photo { cursor: pointer; }

/* 흔적: 사진 바로 밑, 목에 감긴 자리에 목줄 색으로 칠한 굵은 띠(D). 그 위에 흔적 글을 굵게 쓴다.
   안쪽 박음질 점선은 글자색을 옅게 따른다. 흔적이 둘이면 띠도 두 줄, 없으면 점선 테두리만 있는 빈 띠.
   글자색(--t)은 흰색과 본문색 중 띠 색과 대비가 큰 쪽이고 4.5:1 이상이다 */
.mk-cd .cd-bands { display: block; }
.mk-cd .cd-band {
  position: relative; display: flex; align-items: center; min-height: 50px; padding: 12px;
  background: var(--c); color: var(--t, var(--ink));
  font-size: 18px; line-height: 1.25; font-weight: 800; letter-spacing: -0.02em;
}
.mk-cd .cd-band::after {
  content: ""; position: absolute; left: 6px; right: 6px; top: 6px; bottom: 6px;
  border-top: 1.5px dashed; border-bottom: 1.5px dashed; opacity: 0.45; pointer-events: none;
}
.mk-cd .cd-band + .cd-band { border-top: 2px solid var(--surface); }
.mk-cd .cd-card .cd-band { min-height: 54px; padding: 13px 18px; font-size: 20px; }
.mk-cd .cd-band.cd-band-none { background: var(--surface); color: var(--ink-2); font-size: 15px; font-weight: 600; letter-spacing: 0; }
.mk-cd .cd-band-none::after { border: 1.5px dashed #86857f; border-radius: 8px; opacity: 1; }

.mk-cd .cd-body { display: block; padding: 12px 12px 14px; }
.mk-cd .cd-card-hit { display: block; width: 100%; padding: 0; }
.mk-cd .cd-hit-body { display: block; padding: 14px 18px 16px; }

/* 고리 표식: 보호소 숫자 칸에서 "흔적" 뜻으로 쓴다 */
.mk-cd .cd-ring {
  flex: none; width: 14px; height: 14px; border-radius: 50%; border: 3.5px solid var(--c);
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.18), inset 0 0 0 0.5px rgba(0, 0, 0, 0.18);
}

.mk-cd .cd-title { display: block; margin-top: 0; font-size: 18px; line-height: 1.3; font-weight: 800; letter-spacing: -0.02em; }
.mk-cd .cd-card .cd-title { font-size: 20px; }
.mk-cd .cd-meta { display: block; margin-top: 2px; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.mk-cd .cd-place { display: flex; align-items: flex-start; gap: 5px; margin-top: 8px; font-size: 15px; line-height: 1.45; }
.mk-cd .cd-place .cd-ic { width: 16px; height: 16px; margin-top: 3px; color: var(--ink-2); }
.mk-cd .cd-due { display: block; margin-top: 0; font-size: 13px; line-height: 1.4; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.mk-cd .cd-foot-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.mk-cd .cd-foot-row .cd-dues { flex: 1; min-width: 0; margin-top: 0; }
.mk-cd .cd-disclose {
  flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--fill); color: var(--ink-2);
  transition: transform 340ms var(--ease-drawer), background-color 200ms ease;
}
.mk-cd .cd-disclose .cd-ic { width: 16px; height: 16px; }
.mk-cd .cd-card.is-open .cd-disclose { transform: rotate(180deg); background: var(--fill-2); color: var(--ink); }
.mk-cd .cd-card.is-open { box-shadow: var(--shadow-card-hover); }

.mk-cd .cd-nophoto { display: grid; place-items: center; padding: 16px; background: #e3e2dd; cursor: pointer; }
.mk-cd .cd-nophoto-in { display: grid; justify-items: center; gap: 6px; font-size: 14px; color: var(--ink-2); }
.mk-cd .cd-nophoto-in .cd-ic { width: 28px; height: 28px; stroke-width: 1.5; }

/* ============ 카드 펼침: 지금 위치에서 이어진다 (C) ============ */
.mk-cd .cd-more {
  display: grid; grid-template-rows: 0fr; visibility: hidden;
  transition: grid-template-rows 260ms var(--ease-drawer), visibility 0s linear 260ms;
}
.mk-cd .cd-card.is-open .cd-more {
  grid-template-rows: 1fr; visibility: visible;
  transition: grid-template-rows 380ms var(--ease-drawer), visibility 0s linear 0s;
}
.mk-cd .cd-more-in { min-height: 0; overflow: hidden; }
.mk-cd .cd-more-body {
  padding: 0 18px 18px; opacity: 0; transform: translateY(-6px);
  transition: opacity 140ms ease-out, transform 260ms var(--ease-drawer);
}
.mk-cd .cd-card.is-open .cd-more-body {
  opacity: 1; transform: none;
  transition: opacity 260ms ease-out 60ms, transform 380ms var(--ease-drawer);
}
.mk-cd .cd-rule { height: 1px; background: var(--hair); margin-bottom: 16px; }
.mk-cd .cd-k { font-size: 13px; line-height: 1.4; font-weight: 700; color: var(--ink-2); }
.mk-cd .cd-quote {
  margin-top: 6px; padding: 12px 14px; border-radius: 14px; background: var(--fill);
  font-size: 16px; line-height: 1.65;
}
.mk-cd .cd-quote mark {
  font-weight: 800; text-decoration: underline; text-decoration-color: var(--c);
  text-decoration-thickness: 4px; text-underline-offset: 5px; text-decoration-skip-ink: none;
}
.mk-cd .cd-quote mark.cd-m2 { text-decoration-color: var(--c2); }
.mk-cd .cd-facts { margin-top: 14px; }
.mk-cd .cd-facts div {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 11px 0; border-top: 1px solid var(--hair); font-size: 15px; line-height: 1.45;
}
.mk-cd .cd-facts dt { flex: none; color: var(--ink-2); }
.mk-cd .cd-facts dd { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.mk-cd .cd-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; margin-top: 16px; }
.mk-cd .cd-more .cd-source { margin-top: 12px; }

/* ============ 홈: 할 일, 경고, 바닥 ============ */
.mk-cd .cd-steps ol {
  margin-top: 16px; padding: 4px 18px; background: var(--surface);
  border-radius: 20px; box-shadow: var(--shadow-card);
}
.mk-cd .cd-steps li { display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 14px; padding: 16px 0; }
.mk-cd .cd-steps li + li { border-top: 1px solid var(--hair); }
.mk-cd .cd-step-n {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--fill-2); color: var(--ink);
  font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums;
}
.mk-cd .cd-step-t { padding-top: 4px; font-size: 16px; line-height: 1.5; font-weight: 600; }
.mk-cd .cd-step-act { grid-column: 2; justify-self: start; margin-top: 12px; }

/* 경고는 C의 주의색: 옅은 호박 바탕, 글자는 본문색 */
.mk-cd .cd-caution {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; align-items: start;
  margin-top: 24px; padding: 18px 20px 10px; background: var(--caution-tint); color: var(--ink);
  border-radius: 20px;
}
.mk-cd .cd-caution-icon {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--caution); color: #fff;
}
.mk-cd .cd-caution-icon .cd-ic { width: 22px; height: 22px; stroke-width: 2.2; }
.mk-cd .cd-caution-title { padding-top: 9px; font-size: 18px; line-height: 1.4; font-weight: 800; letter-spacing: -0.02em; }
.mk-cd .cd-caution .cd-link { grid-column: 2; justify-self: start; }
.mk-cd .cd-caution .cd-link:focus-visible { outline-color: var(--accent); }

.mk-cd .cd-footer { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--hair-strong); }
.mk-cd .cd-footer .cd-logo { color: var(--ink); font-size: 15px; }
.mk-cd .cd-footer p { margin-top: 8px; max-width: 46em; font-size: 13px; line-height: 1.6; color: var(--ink-2); }

/* ============ 찾기 화면 ============ */
.mk-cd .cd-page-head { padding-top: 28px; }
.mk-cd .cd-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.mk-cd .cd-group { margin-top: 32px; }
.mk-cd .cd-more-all { margin-top: 20px; }
.mk-cd .cd-report {
  display: grid; gap: 14px; margin-top: 32px; padding: 20px;
  background: var(--surface); border-radius: 20px; box-shadow: var(--shadow-card);
}
.mk-cd .cd-report-text { display: flex; align-items: flex-start; gap: 12px; font-size: 16px; line-height: 1.5; font-weight: 700; }
.mk-cd .cd-report-text .cd-ic { margin-top: 2px; color: var(--ink); }

/* ============ 보호소 화면 ============ */
.mk-cd .cd-shelter { display: grid; gap: 40px; padding-top: 28px; }
.mk-cd .cd-eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 700; color: var(--ink-2); }
.mk-cd .cd-eyebrow .cd-ic { width: 16px; height: 16px; }
.mk-cd .cd-shelter .cd-h1 { margin-top: 4px; }
.mk-cd .cd-notice {
  display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; padding: 12px 14px;
  border-radius: 14px; background: #e3e2dd;
  font-size: 15px; line-height: 1.5; color: var(--ink);
}
.mk-cd .cd-notice .cd-ic { margin-top: 1px; color: var(--ink); }
.mk-cd .cd-info { margin-top: 16px; padding: 0 16px; background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-card); }
.mk-cd .cd-info div { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 13px 0; }
.mk-cd .cd-info div + div { border-top: 1px solid var(--hair); }
.mk-cd .cd-info dt { font-size: 15px; color: var(--ink-2); }
.mk-cd .cd-info dd { font-size: 16px; font-weight: 600; }
.mk-cd .cd-info dd a {
  display: inline-flex; align-items: center; min-height: 44px; margin: -10px 0;
  color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums;
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px;
}
.mk-cd .cd-info + .cd-source { margin-top: 10px; padding: 0 4px; }
.mk-cd .cd-stats { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin-top: 20px; }
.mk-cd .cd-stat { padding: 14px 16px 16px; background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-card); }
.mk-cd .cd-stat-k { display: flex; align-items: center; gap: 6px; font-size: 13px; line-height: 1.4; font-weight: 600; color: var(--ink-2); }
.mk-cd .cd-stat-k .cd-ring { width: 12px; height: 12px; border-width: 3px; box-shadow: none; }
.mk-cd .cd-stat-v { margin-top: 4px; font-size: 40px; line-height: 1.05; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.mk-cd .cd-duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin-top: 12px; }

/* ============ 전단지 만들기 ============ */
.mk-cd .cd-page-head-plain { padding-top: 28px; }
.mk-cd .cd-page-head-plain .cd-lede { margin-top: 8px; }
.mk-cd .cd-fs-head { display: grid; gap: 4px; }
.mk-cd .cd-fly { display: grid; gap: 24px; margin-top: 20px; }
.mk-cd .cd-form {
  display: grid; gap: 28px; padding: 20px;
  background: var(--surface); border-radius: 22px; box-shadow: var(--shadow-card);
}
.mk-cd .cd-fs { display: grid; gap: 18px; min-width: 0; }
.mk-cd .cd-fs + .cd-fs { padding-top: 26px; border-top: 1px solid var(--hair); }
.mk-cd .cd-fs-grid { display: grid; gap: 18px; }
.mk-cd .cd-f { display: grid; gap: 8px; min-width: 0; align-content: start; }
.mk-cd .cd-f[hidden] { display: none; }
.mk-cd .cd-f-label { font-size: 15px; line-height: 1.4; font-weight: 700; color: var(--ink); }
.mk-cd .cd-req { margin-left: 6px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.mk-cd .cd-help { font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.mk-cd .cd-pair { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 10px; }
.mk-cd .cd-select-plain { padding-right: 40px; font-weight: 600; cursor: pointer; }
.mk-cd .cd-select-wrap { position: relative; }
.mk-cd .cd-select-wrap > .cd-ic {
  position: absolute; right: 14px; top: 50%; width: 16px; height: 16px;
  transform: translateY(-50%); color: var(--ink-2); pointer-events: none;
}

/* 사진 고르기 */
.mk-cd .cd-pick { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 16px; align-items: center; }
.mk-cd .cd-pick-thumb { position: relative; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; background: #e3e2dd; }
.mk-cd .cd-pick-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: 35% 50%; }
.mk-cd .cd-pick-tag {
  position: absolute; left: 8px; top: 8px; padding: 4px 9px; border-radius: 8px;
  background: rgba(255, 255, 255, 0.94); color: var(--ink);
  font-size: 13px; line-height: 1.3; font-weight: 800;
}
.mk-cd .cd-pick-tag[hidden] { display: none; }
.mk-cd .cd-pick-side { display: grid; gap: 10px; justify-items: start; }
.mk-cd .cd-pick-side label { cursor: pointer; }
.mk-cd .cd-pick-side input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 3px; }

/* 동물등록 체크 */
.mk-cd .cd-check {
  position: relative; display: grid; grid-template-columns: 26px minmax(0, 1fr); column-gap: 12px; align-items: center;
  min-height: 44px; cursor: pointer; font-size: 16px; line-height: 1.45; font-weight: 700;
}
.mk-cd .cd-check input { position: absolute; left: 0; top: 50%; width: 26px; height: 26px; margin: -13px 0 0; opacity: 0; cursor: pointer; }
.mk-cd .cd-check-box {
  width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  border: 2px solid var(--line); background: var(--surface); color: transparent;
  transition: background-color 160ms ease, border-color 160ms ease;
}
.mk-cd .cd-check-box .cd-ic { width: 16px; height: 16px; stroke-width: 3; }
.mk-cd .cd-check input:checked + .cd-check-box { background: var(--ink); border-color: var(--ink); color: #fff; }
.mk-cd .cd-check input:focus-visible + .cd-check-box { outline: 3px solid var(--accent); outline-offset: 2px; }
.mk-cd .cd-check-help { padding-left: 38px; }

/* 사례금 */
.mk-cd .cd-suffix { position: relative; }
.mk-cd .cd-suffix .cd-input { padding-right: 46px; font-variant-numeric: tabular-nums; }
.mk-cd .cd-suffix-t { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-weight: 700; color: var(--ink-2); pointer-events: none; }
.mk-cd .cd-note { display: flex; align-items: flex-start; gap: 8px; font-size: 15px; line-height: 1.5; font-weight: 600; color: var(--ink); }
.mk-cd .cd-note .cd-ic { width: 18px; height: 18px; margin-top: 2px; color: var(--ink); stroke-width: 2; }

/* 미리보기: canvas 하나를 그대로 보여 준다 */
.mk-cd .cd-preview-stick { display: grid; gap: 14px; }
.mk-cd .cd-preview-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.mk-cd .cd-sheet {
  background: #fff; border-radius: 6px;
  box-shadow: 0 1px 2px rgba(26, 26, 24, 0.08), 0 14px 34px -16px rgba(26, 26, 24, 0.38);
  overflow: hidden;
}
.mk-cd canvas[data-flyer] { display: block; width: 100%; height: auto; aspect-ratio: 1240 / 1754; }
.mk-cd .cd-dl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.mk-cd .cd-dl .cd-btn { min-height: 52px; padding: 0 14px; }
.mk-cd .cd-status { min-height: 1px; font-size: 15px; line-height: 1.5; font-weight: 700; color: var(--ink); }

/* 붙이는 곳 안내: 경고라 C의 주의색 */
.mk-cd .cd-guide {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; align-items: start;
  padding: 20px; border-radius: 20px; background: var(--caution-tint); color: var(--ink);
}
.mk-cd .cd-guide-icon {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--caution); color: #fff;
}
.mk-cd .cd-guide-icon .cd-ic { width: 22px; height: 22px; stroke-width: 2.2; }
.mk-cd .cd-guide-body { display: grid; gap: 8px; padding-top: 2px; }
.mk-cd .cd-guide-title { font-size: 18px; line-height: 1.45; font-weight: 800; letter-spacing: -0.02em; }
.mk-cd .cd-guide-text { font-size: 16px; line-height: 1.6; font-weight: 500; }
.mk-cd .cd-guide-src { font-size: 13px; line-height: 1.5; font-weight: 500; }

/* ============ 손으로 가리킬 때만 (터치 오작동 방지) ============ */
@media (hover: hover) and (pointer: fine) {
  .mk-cd .cd-nav a:hover { color: var(--head-ink); background: var(--head-fill-hover); }
  .mk-cd .cd-btn-primary:hover { background: var(--primary-hover); }
  .mk-cd .cd-btn-signal:hover { background: var(--signal-hover); }
  .mk-cd .cd-path-lost:hover { background: var(--cta-hover); }
  .mk-cd .cd-path-found:hover { background: var(--head-fill-hover); }
  .mk-cd .cd-btn-secondary:hover, .mk-cd .cd-chip:hover { background: #f6f5f2; }
  .mk-cd .cd-chip.is-set:hover { background: var(--fill-2-hover); }
  .mk-cd .cd-btn-tonal:hover { background: var(--tonal-hover); }
  .mk-cd .cd-pcard:hover, .mk-cd .cd-card:hover { box-shadow: var(--shadow-card-hover); }
  .mk-cd .cd-input:hover, .mk-cd .cd-select:hover { border-color: var(--ink); }
  .mk-cd .cd-link:hover { text-decoration-thickness: 3px; }
}

/* ============ 넓은 화면 ============ */
@media (min-width: 720px) {
  .mk-cd .cd-paths { grid-template-columns: 1fr 1fr; }
  .mk-cd .cd-grid-home { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mk-cd .cd-grid-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* 펼친 카드는 2칸을 차지한다: 사진 | 특징 (D). 다 접힌 뒤에 자리를 돌려준다 */
  .mk-cd .cd-grid-list > .cd-card.is-span {
    grid-column: span 2; display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto 1fr;
  }
  .mk-cd .cd-card.is-span > .cd-photo { grid-column: 1; grid-row: 1; }
  .mk-cd .cd-card.is-span > .cd-card-hit { grid-column: 1; grid-row: 2; align-self: start; }
  .mk-cd .cd-card.is-span > .cd-more { grid-column: 2; grid-row: 1 / span 2; }
  .mk-cd .cd-card.is-span .cd-more-body { min-height: 100%; padding: 20px 22px 22px; border-left: 1px solid var(--hair); }
  .mk-cd .cd-card.is-span .cd-rule { display: none; }
  .mk-cd .cd-report { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .mk-cd .cd-fs-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 16px; }
  .mk-cd .cd-f-full { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .mk-cd .cd-top-in { height: 64px; gap: 24px; }
  .mk-cd .cd-logo { font-size: 18px; }
  .mk-cd .cd-nav { display: flex; justify-content: flex-end; -webkit-mask-image: none; mask-image: none; }
  .mk-cd .cd-screen { padding-bottom: 80px; }

  .mk-cd .cd-hero { padding: 64px 0 120px; }
  .mk-cd .cd-hero-in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end; }
  .mk-cd .cd-display { grid-column: 1 / span 7; font-size: clamp(52px, 5vw, 66px); line-height: 1.14; }
  .mk-cd .cd-paths { grid-column: 8 / span 5; grid-template-columns: 1fr; gap: 12px; margin-top: 0; }
  .mk-cd .cd-path { min-height: 104px; padding: 20px 20px 20px 26px; border-radius: 22px; }
  .mk-cd .cd-path-title { font-size: 28px; }
  .mk-cd .cd-path-desc { font-size: 16px; }
  .mk-cd .cd-path-icon { width: 52px; height: 52px; }
  .mk-cd .cd-path { grid-template-columns: minmax(0, 1fr) 52px; }
  .mk-cd .cd-search {
    margin-top: -68px; padding: 12px; border-radius: 24px;
    grid-template-columns: 220px minmax(0, 1fr) 400px auto; align-items: center;
  }
  .mk-cd .cd-search .cd-btn { min-height: 52px; padding: 0 32px; }

  .mk-cd .cd-sec { margin-top: 72px; }
  .mk-cd .cd-h2 { font-size: 30px; letter-spacing: -0.03em; }
  .mk-cd .cd-count-v { font-size: 44px; }
  .mk-cd .cd-lede { font-size: 17px; }
  .mk-cd .cd-grid { gap: 20px; margin-top: 24px; }
  .mk-cd .cd-sec-foot { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 20px; margin-top: 24px; }
  .mk-cd .cd-sec-foot .cd-btn { padding: 0 28px; }
  .mk-cd .cd-body { padding: 14px 16px 18px; }
  .mk-cd .cd-pcard .cd-band { min-height: 54px; padding: 13px 16px; font-size: 19px; }

  .mk-cd .cd-steps ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding: 0; background: none; box-shadow: none; margin-top: 24px; }
  .mk-cd .cd-steps li {
    grid-template-columns: minmax(0, 1fr); row-gap: 16px; align-content: start;
    padding: 24px; background: var(--surface); border-radius: 20px; box-shadow: var(--shadow-card);
  }
  .mk-cd .cd-steps li + li { border-top: 0; }
  .mk-cd .cd-step-n { width: 40px; height: 40px; font-size: 17px; }
  .mk-cd .cd-step-t { padding-top: 0; font-size: 18px; letter-spacing: -0.01em; }
  .mk-cd .cd-step-act { grid-column: 1; margin-top: 0; }
  .mk-cd .cd-caution { grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; padding: 20px 28px; margin-top: 20px; }
  .mk-cd .cd-caution-icon { width: 52px; height: 52px; }
  .mk-cd .cd-caution-title { padding-top: 0; font-size: 22px; }
  .mk-cd .cd-caution .cd-link { grid-column: 3; font-size: 17px; }

  .mk-cd .cd-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; padding-top: 56px; }
  .mk-cd .cd-h1 { font-size: 44px; line-height: 1.12; letter-spacing: -0.035em; }
  .mk-cd .cd-chips { margin-top: 0; justify-content: flex-end; }
  .mk-cd .cd-group { margin-top: 48px; }
  .mk-cd .cd-more-all { display: flex; justify-content: center; margin-top: 28px; }
  .mk-cd .cd-more-all .cd-btn { width: auto; padding: 0 28px; }
  .mk-cd .cd-report { margin-top: 40px; padding: 22px 28px; }

  .mk-cd .cd-shelter { grid-template-columns: 400px minmax(0, 1fr); column-gap: 56px; align-items: start; padding-top: 56px; }
  .mk-cd .cd-shelter-side { position: sticky; top: 88px; }
  .mk-cd .cd-shelter .cd-h1 { font-size: 40px; }
  .mk-cd .cd-shelter-main .cd-grid-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mk-cd .cd-shelter-main .cd-grid { margin-top: 20px; }

  /* 전단지: 입력칸 왼쪽, 미리보기 오른쪽에 따라 붙고, 안내 상자는 그 아래 */
  .mk-cd .cd-page-head-plain { padding-top: 56px; max-width: 46em; }
  .mk-cd .cd-fly {
    grid-template-columns: minmax(0, 1fr) 380px; grid-template-rows: 1fr auto;
    column-gap: 56px; row-gap: 20px; margin-top: 32px;
  }
  .mk-cd .cd-form { grid-column: 1; grid-row: 1 / span 2; padding: 32px; gap: 32px; }
  .mk-cd .cd-preview { grid-column: 2; grid-row: 1; }
  .mk-cd .cd-preview-stick { position: sticky; top: 80px; }
  .mk-cd .cd-guide { grid-column: 2; grid-row: 2; }
}

/* ============ 찾기와 입양: 종류 탭, 한 칸 검색, 필터, 정렬 (2026-11-22) ============
   화면 2(찾기)와 화면 5(입양)가 같은 부품을 쓴다. 휴대폰은 "필터" 버튼으로 그 자리에서 펼치고(화면을 덮지 않는다),
   1024 이상은 목록 왼쪽에 늘 펼쳐 둔다. 시안은 카드의 data-*만 읽어 그 자리에서 거르고 다시 줄 세운다 */
.mk-cd .cd-fhead { padding-top: 28px; }
.mk-cd .cd-fhead-ctl { display: grid; gap: 12px; margin-top: 16px; }
.mk-cd .cd-seg-tabs .cd-seg-txt { min-height: 48px; font-size: 16px; }
.mk-cd .cd-seg-n { margin-left: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.mk-cd .cd-qfield > .cd-input { padding-right: 50px; }
.mk-cd .cd-qfield > .cd-input::placeholder { font-size: 15px; }
.mk-cd .cd-qclear {
  position: absolute; right: 4px; top: 50%; width: 44px; height: 44px; margin-top: -22px;
  display: grid; place-items: center; border-radius: 10px; color: var(--ink-2);
}
.mk-cd .cd-qclear .cd-ic { width: 18px; height: 18px; stroke-width: 2.2; }

.mk-cd .cd-fbody { margin-top: 16px; }
.mk-cd .cd-fbar { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; }
.mk-cd .cd-ftoggle {
  min-height: 52px; padding: 0 16px; border-radius: 12px;
  background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line);
}
.mk-cd .cd-ftoggle[aria-expanded="true"] { background: var(--fill-2); box-shadow: inset 0 0 0 1.5px var(--ink); }
.mk-cd .cd-fbadge {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px;
  display: inline-grid; place-items: center; background: var(--ink); color: #fff;
  font-size: 13px; line-height: 1; font-weight: 800; font-variant-numeric: tabular-nums;
}

/* 필터 판: 휴대폰은 접혀 있다가 그 자리에서 펼친다(카드 펼침과 같은 움직임) */
.mk-cd .cd-fpanel {
  display: grid; grid-template-rows: 0fr; visibility: hidden;
  transition: grid-template-rows 260ms var(--ease-drawer), visibility 0s linear 260ms;
}
.mk-cd .cd-finder.is-fopen .cd-fpanel {
  grid-template-rows: 1fr; visibility: visible;
  transition: grid-template-rows 360ms var(--ease-drawer), visibility 0s linear 0s;
}
.mk-cd .cd-fpanel-in { min-height: 0; overflow: hidden; }
.mk-cd .cd-fpanel-body {
  display: grid; gap: 22px; margin-top: 12px; padding: 20px;
  background: var(--surface); border-radius: 20px;
}
.mk-cd .cd-fpanel-h { display: none; }
.mk-cd .cd-fg-region { display: grid; gap: 10px; }
.mk-cd .cd-fg { min-width: 0; margin: 0; padding: 0; border: 0; }
.mk-cd .cd-fg > legend { display: block; padding: 0; margin-bottom: 10px; }
.mk-cd .cd-select:has(select:disabled) { background: var(--fill); border-color: var(--hair-strong); cursor: default; }
.mk-cd .cd-select select:disabled { color: var(--ink-2); cursor: default; }
.mk-cd .cd-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.mk-cd .cd-pill { position: relative; display: block; cursor: pointer; }
.mk-cd .cd-pill input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.mk-cd .cd-pill-t {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 12px;
  border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--hair-strong);
  font-size: 15px; font-weight: 500; white-space: nowrap;
  transition: background-color 160ms ease, box-shadow 160ms ease;
}
.mk-cd .cd-pill input:checked + .cd-pill-t { background: var(--fill-2); box-shadow: inset 0 0 0 1.5px var(--ink); font-weight: 700; }
.mk-cd .cd-pill input:focus-visible + .cd-pill-t { outline: 3px solid var(--accent); outline-offset: 2px; }
.mk-cd .cd-dot { flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(26, 26, 24, 0.3); }
.mk-cd .cd-fpanel-foot {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px;
  padding-top: 18px; border-top: 1px solid var(--hair);
}

/* 건수와 고른 필터 칩 */
.mk-cd .cd-fsum { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 16px; }
.mk-cd .cd-found { margin-right: 6px; font-size: 18px; line-height: 1.4; font-weight: 800; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.mk-cd .cd-found:focus { outline: none; }
.mk-cd .cd-fchips { display: flex; flex-wrap: wrap; gap: 8px; }
.mk-cd .cd-fchips .cd-chip { padding: 0 12px 0 16px; }
.mk-cd .cd-fchips[hidden], .mk-cd .cd-freset[hidden], .mk-cd .cd-fbadge[hidden], .mk-cd .cd-qclear[hidden] { display: none; }

/* 먼저 볼 아이들: 흔적 카드만 짧게 가로로 민다 */
.mk-cd .cd-strip {
  display: flex; gap: 12px; margin: 16px calc(var(--pad) * -1) 0; padding: 4px var(--pad) 16px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad);
}
.mk-cd .cd-strip > li { flex: 0 0 168px; scroll-snap-align: start; }
.mk-cd .cd-mini .cd-band { min-height: 44px; padding: 10px 12px; font-size: 16px; }
.mk-cd .cd-mini .cd-title { font-size: 16px; }
.mk-cd .cd-mini .cd-meta { font-size: 14px; }
.mk-cd .cd-strip-none {
  margin-top: 12px; padding: 14px 16px; border-radius: 14px; background: #e3e2dd;
  font-size: 15px; line-height: 1.5; font-weight: 600; color: var(--ink);
}
.mk-cd .cd-strip-sec[hidden], .mk-cd .cd-strip[hidden], .mk-cd .cd-strip-none[hidden], .mk-cd .cd-lede[hidden],
.mk-cd .cd-strip > li[hidden], .mk-cd .cd-empty[hidden], .mk-cd .cd-more-all[hidden] { display: none; }
@media (max-width: 1023px) {
  .mk-cd .cd-strip { scrollbar-width: none; }
  .mk-cd .cd-strip::-webkit-scrollbar { display: none; }
}

/* 걸러진 카드와 3장이 안 되는 목록의 사이 광고는 숨긴다 */
.mk-cd .cd-grid-list > li.cd-card[hidden], .mk-cd .cd-grid-list > .cd-ad.is-off { display: none; }

/* 결과 0건: 풀 수 있는 조건을 건수와 같이 보인다 */
.mk-cd .cd-empty {
  display: grid; gap: 6px; margin-top: 16px; padding: 24px 20px;
  background: var(--surface); border-radius: 20px; box-shadow: var(--shadow-card);
}
.mk-cd .cd-empty-t { font-size: 20px; line-height: 1.35; font-weight: 800; letter-spacing: -0.02em; }
.mk-cd .cd-empty-d { font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.mk-cd .cd-empty-acts { display: grid; gap: 10px; margin-top: 12px; }
.mk-cd .cd-empty-acts .cd-btn { width: 100%; justify-content: space-between; gap: 14px; white-space: normal; text-align: left; }
.mk-cd .cd-btn-n { flex: none; font-size: 15px; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }

@media (hover: hover) and (pointer: fine) {
  .mk-cd .cd-ftoggle:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
  .mk-cd .cd-pill:hover .cd-pill-t { box-shadow: inset 0 0 0 1.5px var(--ink); }
  .mk-cd .cd-qclear:hover { background: var(--fill); color: var(--ink); }
}
@media (min-width: 720px) {
  /* 펼친 카드가 2칸을 차지해 생긴 빈칸은 뒤 카드가 채운다 */
  .mk-cd .cd-fresults .cd-grid-list { grid-auto-flow: row dense; }
}
@media (min-width: 1024px) {
  .mk-cd .cd-fhead { padding-top: 56px; }
  .mk-cd .cd-fhead-ctl { grid-template-columns: 440px minmax(0, 1fr); gap: 16px; margin-top: 24px; }
  .mk-cd .cd-fbody {
    display: grid; grid-template-columns: 280px minmax(0, 1fr) auto; grid-template-rows: auto 1fr;
    grid-template-areas: "panel sum bar" "panel res res"; column-gap: 40px; align-items: start; margin-top: 32px;
  }
  .mk-cd .cd-fbar { grid-area: bar; display: block; }
  .mk-cd .cd-ftoggle { display: none; }
  .mk-cd .cd-fpanel { grid-area: panel; grid-template-rows: 1fr; visibility: visible; transition: none; }
  .mk-cd .cd-fpanel-in { overflow: visible; }
  .mk-cd .cd-fpanel-body { margin-top: 0; padding: 24px; box-shadow: var(--shadow-card); }
  .mk-cd .cd-fpanel-h { display: block; }
  .mk-cd .cd-fpanel-foot { display: none; }
  .mk-cd .cd-fsum { grid-area: sum; min-height: 52px; margin-top: 0; }
  .mk-cd .cd-fresults { grid-area: res; }
  .mk-cd .cd-fresults > .cd-group { margin-top: 32px; }
  .mk-cd .cd-strip { margin: 20px 0 0; padding: 4px 0 16px; scroll-padding-inline: 0; scrollbar-width: thin; }
  .mk-cd .cd-strip > li { flex-basis: 184px; }
  .mk-cd .cd-empty { padding: 28px; }
  .mk-cd .cd-empty-acts { display: flex; flex-wrap: wrap; }
  .mk-cd .cd-empty-acts .cd-btn { width: auto; }
  .mk-cd .cd-fresults .cd-grid-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1180px) {
  .mk-cd .cd-fresults .cd-grid-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .mk-cd .cd-fpanel, .mk-cd .cd-finder.is-fopen .cd-fpanel, .mk-cd .cd-pill-t { transition: none; }
}
@media (prefers-contrast: more) {
  .mk-cd .cd-fpanel-body, .mk-cd .cd-empty { box-shadow: 0 0 0 1px var(--ink); }
}

/* ============ 화면 5: 입양을 기다리는 아이들, 홈의 입양 링크 (2026-11-22) ============
   카드에는 남은 날 막대 대신 "공고 끝남 n일 지남"과 먼저 전화로 물어보라는 안내. 입양 신청 버튼은 없다(우리 사이트는 입양을 받지 않는다) */
.mk-cd .cd-fhead > .cd-lede { margin-top: 8px; }
.mk-cd .cd-ended { display: grid; gap: 2px; flex: 1; min-width: 0; }
.mk-cd .cd-ended-t { font-size: 15px; line-height: 1.4; font-weight: 800; color: var(--ink); }
.mk-cd .cd-ended-d { font-size: 13px; line-height: 1.4; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.mk-cd .cd-ask {
  display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; padding: 10px 12px;
  border-radius: 12px; background: var(--fill); color: var(--ink);
  font-size: 15px; line-height: 1.5; font-weight: 600;
}
.mk-cd .cd-ask .cd-ic { width: 18px; height: 18px; margin-top: 2px; }
.mk-cd .cd-facts dd a {
  display: inline-flex; align-items: center; min-height: 44px; margin: -12px 0;
  color: var(--accent); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px;
}
.mk-cd .cd-n4 { margin-top: 14px; font-weight: 500; }
.mk-cd .cd-n4 .cd-ic { color: var(--caution); }
.mk-cd .cd-step-d { display: block; margin-top: 4px; font-size: 15px; line-height: 1.5; font-weight: 500; color: var(--ink-2); }
.mk-cd .cd-adopt-foot { display: grid; gap: 4px; margin-top: 16px; }
.mk-cd .cd-adopt-note { font-size: 15px; line-height: 1.55; color: var(--ink); }
.mk-cd .cd-adopt-foot .cd-link { justify-self: start; }

/* 홈: 잃어버린 쪽보다 덜 눈에 띄게 먹색 테두리만 */
.mk-cd .cd-adopt-link {
  display: grid; grid-template-columns: minmax(0, 1fr) 40px; align-items: center; column-gap: 14px;
  margin-top: 24px; padding: 18px 18px 18px 20px; border-radius: 20px;
  box-shadow: inset 0 0 0 1.5px var(--ink); color: var(--ink);
  transition: background-color 180ms ease, transform 160ms var(--ease-out);
}
.mk-cd .cd-adopt-link-t { display: block; font-size: 17px; line-height: 1.4; font-weight: 800; letter-spacing: -0.015em; }
.mk-cd .cd-adopt-link-d { display: block; margin-top: 2px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.mk-cd .cd-adopt-link-i { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--fill-2); }
.mk-cd .cd-adopt-link-i .cd-ic { width: 18px; height: 18px; transform: rotate(-90deg); }
.mk-cd .cd-adopt-link:active { transform: scale(0.99); }
@media (hover: hover) and (pointer: fine) {
  .mk-cd .cd-adopt-link:hover { background: var(--fill); }
}
@media (min-width: 1024px) {
  .mk-cd .cd-adopt-link { margin-top: 32px; padding: 20px 24px 20px 28px; }
  .mk-cd .cd-adopt-link-t { font-size: 19px; }
  .mk-cd .cd-adopt-link-d { font-size: 16px; }
  .mk-cd .cd-adopt-steps .cd-step-t { font-size: 17px; }
  .mk-cd .cd-adopt-foot { margin-top: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .mk-cd .cd-adopt-link:active { transform: none; }
}

/* ============ 특성 축 (2026-11-21 셋째) ============
   루트 data-hero, data-band, data-due, data-proof, data-stats, data-title, data-grid 값으로 갈라 쓴다.
   숨기는 변형은 display:none 이라 화면 읽기 프로그램에서도 빠진다. 전단지 화면에는 이 묶음의 클래스가 없다(ads 광고 자리만 있다) */

/* --- hero=exhibit: 실물 카드 전시 (WhyUp 구도만. 색과 글꼴은 이 안의 것) --- */
.mk-cd:not([data-hero="exhibit"]) .cd-exhibit { display: none; }
.mk-cd .cd-exhibit { margin-top: 20px; }
.mk-cd .cd-ex-stage {
  display: grid; grid-template-columns: 180px minmax(0, 1fr); column-gap: 14px; align-items: center;
}
.mk-cd .cd-ex-stack { position: relative; display: block; padding: 0 12px 14px 0; isolation: isolate; }
.mk-cd .cd-ex-card,
.mk-cd .cd-ex-back { display: block; overflow: hidden; background: var(--surface); color: var(--ink); border-radius: 16px; }

.mk-cd .cd-ex-card {
  position: relative; z-index: 3;
  box-shadow: 0 0 0 1px var(--hair), 0 14px 30px -14px rgba(26, 26, 24, 0.5);
}
.mk-cd .cd-ex-back {
  position: absolute; left: 0; top: 0; right: 12px; bottom: 14px;
  box-shadow: 0 0 0 1px var(--hair-strong), 0 8px 20px -12px rgba(26, 26, 24, 0.4);
}
.mk-cd .cd-ex-b1 { z-index: 2; transform: translate(6px, 7px); }
.mk-cd .cd-ex-b2 { z-index: 1; transform: translate(12px, 14px); background: #f4f3f0; }
.mk-cd .cd-ex-back > * { visibility: hidden; }
.mk-cd .cd-ex-card .cd-body { display: none; }
.mk-cd .cd-ex-stack .cd-band { min-height: 46px; padding: 10px 12px; font-size: 17px; }
.mk-cd .cd-ex-notes { display: grid; gap: 10px; justify-items: start; min-width: 0; padding-bottom: 14px; }
.mk-cd .cd-ex-note {
  position: relative; display: inline-flex; align-items: center; gap: 8px; max-width: 100%;
  padding: 10px 14px 10px 12px; border-radius: 12px; background: var(--surface); color: var(--ink);
  font-size: 14px; line-height: 1.3; font-weight: 700; letter-spacing: -0.01em;
  filter: drop-shadow(0 0 0.7px rgba(26, 26, 24, 0.55)) drop-shadow(0 6px 10px rgba(26, 26, 24, 0.16));
}
/* 꼬리: 휴대폰에서는 모두 왼쪽 카드를 가리킨다 */
.mk-cd .cd-ex-note::before {
  content: ""; position: absolute; left: -5px; top: 50%; width: 11px; height: 11px; margin-top: -5.5px;
  background: var(--surface); border-radius: 2px; transform: rotate(45deg);
}
.mk-cd .cd-ex-note .cd-ic { width: 16px; height: 16px; color: var(--ink-2); stroke-width: 2; }
.mk-cd .cd-ex-note .cd-ring { width: 14px; height: 14px; border-width: 3.5px; }

/* --- band=c: apple의 얇은 띠와 고리 칩. 같은 글을 CSS로만 바꾼다 --- */
/* 얇은 띠는 apple처럼 사진 바로 밑 6px 면. 띠 묶음의 배경 위쪽 6px에 칠한다 */
.mk-cd[data-band="c"] .cd-bands {
  display: flex; flex-wrap: wrap; gap: 6px; padding: 18px 12px 0;
  background: linear-gradient(var(--c), var(--c)) left top / 100% 6px no-repeat;
}
.mk-cd[data-band="c"] .cd-bands-2 {
  background: linear-gradient(90deg, var(--c) 0 50%, var(--c2) 50% 100%) left top / 100% 6px no-repeat;
}
.mk-cd[data-band="c"] .cd-bands .cd-band {
  display: inline-flex; gap: 7px; min-height: 0; max-width: 100%; padding: 5px 10px 5px 8px; border-radius: 10px;
  background: #f2f1ee; background: color-mix(in srgb, var(--c) 16%, #fff); color: var(--ink);
  font-size: 15px; line-height: 1.35; font-weight: 600; letter-spacing: 0;
}
.mk-cd[data-band="c"] .cd-bands .cd-band::after { display: none; }
.mk-cd[data-band="c"] .cd-bands .cd-band::before {
  content: ""; flex: none; width: 14px; height: 14px; border-radius: 50%; border: 3.5px solid var(--c);
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.18), inset 0 0 0 0.5px rgba(0, 0, 0, 0.18);
}
.mk-cd[data-band="c"] .cd-bands .cd-band + .cd-band { border-top: 0; }
.mk-cd[data-band="c"] .cd-bands .cd-band-none { background: var(--fill); color: var(--ink-2); font-weight: 500; }
.mk-cd[data-band="c"] .cd-bands .cd-band-none::before { border: 1.5px dashed #86857f; box-shadow: none; }
.mk-cd[data-band="c"] .cd-card .cd-bands { padding: 20px 18px 0; }
.mk-cd[data-band="c"] .cd-body,
.mk-cd[data-band="c"] .cd-hit-body { padding-top: 10px; }
.mk-cd[data-band="c"] .cd-ex-stack .cd-bands { padding: 16px 12px 12px; }

/* --- band=tag: 띠 없이 사진 왼쪽 아래 꼬리표. 띠 글은 화면 읽기용으로만 남긴다 --- */
.mk-cd:not([data-band="tag"]) .cd-tags { display: none; }
.mk-cd[data-band="tag"] .cd-bands {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.mk-cd .cd-tags {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 10px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px; pointer-events: none;
  filter: drop-shadow(0 0 0.7px rgba(26, 26, 24, 0.5)) drop-shadow(0 4px 10px rgba(26, 26, 24, 0.3));
}
.mk-cd .cd-tag {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%;
  padding: 9px 14px 9px 22px; border-radius: 0 9px 9px 0; background: #fff; color: var(--ink);
  font-size: 15px; line-height: 1.3; font-weight: 800; letter-spacing: -0.015em;
  clip-path: polygon(13px 0, 100% 0, 100% 100%, 13px 100%, 0 50%);
}
.mk-cd .cd-tag .cd-ring { width: 14px; height: 14px; border-width: 3.5px; }
.mk-cd .cd-tag-none { color: var(--ink-2); font-weight: 600; }
.mk-cd .cd-tag-none .cd-ring { border: 1.5px dashed #86857f; box-shadow: none; }
.mk-cd .cd-card .cd-tags { padding: 14px; }
.mk-cd .cd-card .cd-tag { font-size: 16px; padding: 10px 16px 10px 24px; }

/* --- due: 공고 남은 날. 3일 이하는 주의색, 빨강은 쓰지 않는다 --- */
.mk-cd .cd-dues { display: block; margin-top: 8px; container-type: inline-size; }
/* container-type 안쪽의 막대가 가로 밀기 줄 밖 문서 폭으로 새지 않게 카드가 자리를 잡는다 */
.mk-cd .cd-pcard { position: relative; }

.mk-cd[data-due="text"] .cd-due,
.mk-cd[data-due="bar"] .cd-due { display: none; }
.mk-cd:not([data-due="text"]) .cd-due-t { display: none; }
.mk-cd:not([data-due="bar"]) .cd-due-b { display: none; }
.mk-cd:not([data-due="text"]):not([data-due="bar"]) .cd-law,
.mk-cd:not([data-due="text"]):not([data-due="bar"]) .cd-due-from { display: none; }
.mk-cd .cd-left {
  font-size: 15px; line-height: 1.4; font-weight: 800; color: var(--ink);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.mk-cd .cd-due-t { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; row-gap: 0; }
.mk-cd .cd-due-t > span { font-size: 13px; line-height: 1.4; color: var(--ink-2); font-variant-numeric: tabular-nums; }
/* 막대: 시작부터 끝까지. 지난 쪽은 옅게, 남은 쪽은 먹색, 지금 자리에 동그라미 (WhyUp 게이지의 굵은 둥근 선) */
.mk-cd .cd-due-b { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; row-gap: 4px; align-items: center; }
.mk-cd .cd-meter { position: relative; display: block; height: 6px; border-radius: 999px; background: #dedcd6; }
.mk-cd .cd-meter i { position: absolute; top: 0; bottom: 0; right: 0; left: var(--p); border-radius: 999px; background: var(--ink); }
.mk-cd .cd-meter::after {
  content: ""; position: absolute; top: 50%; left: max(6px, var(--p)); width: 12px; height: 12px; margin: -6px 0 0 -6px;
  border-radius: 50%; background: var(--surface); box-shadow: 0 0 0 2.5px var(--ink);
}
.mk-cd .cd-due-d {
  display: none; grid-column: 1; justify-content: space-between; gap: 8px;
  font-size: 13px; line-height: 1.4; color: var(--ink-2); font-variant-numeric: tabular-nums;
}
@container (min-width: 200px) {
  .mk-cd .cd-due-d { display: flex; }
}
.mk-cd .cd-dues.is-soon .cd-left { color: var(--caution); }
.mk-cd .cd-dues.is-soon .cd-meter i { background: var(--caution); }
.mk-cd .cd-dues.is-soon .cd-meter::after { box-shadow: 0 0 0 2.5px var(--caution); }

.mk-cd .cd-due-from, .mk-cd .cd-nw { white-space: nowrap; }
.mk-cd .cd-law { margin-top: 14px; font-weight: 500; }
.mk-cd .cd-law .cd-ic { color: var(--caution); }

/* --- proof=on: 근거 칸 3개 (WhyUp "숫자마다 근거를 밝혀요") --- */
.mk-cd:not([data-proof="on"]) .cd-proof { display: none; }
.mk-cd .cd-proof ul {
  margin-top: 16px; padding: 4px 18px; background: var(--surface);
  border-radius: 20px; box-shadow: var(--shadow-card);
}
.mk-cd .cd-proof li { padding: 16px 0; }
.mk-cd .cd-proof li + li { border-top: 1px solid var(--hair); }
.mk-cd .cd-proof p { margin-top: 6px; font-size: 15px; line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
.mk-cd .cd-proof b { color: var(--ink); font-weight: 800; font-variant-numeric: tabular-nums; }

/* --- stats=3: 보호소 숫자 칸에 "3일 안에 공고 끝남" --- */
.mk-cd:not([data-stats="3"]) .cd-stat-soon { display: none; }
.mk-cd[data-stats="3"] .cd-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mk-cd[data-stats="3"] .cd-stat { display: flex; flex-direction: column; padding: 14px 14px 16px; }
.mk-cd[data-stats="3"] .cd-stat-v { margin-top: auto; padding-top: 6px; }
.mk-cd .cd-stat-k .cd-ic { width: 14px; height: 14px; color: var(--caution); stroke-width: 2.4; }
.mk-cd .cd-stat-soon .cd-stat-v { color: var(--caution); }

/* --- title=sans: 큰 제목을 Pretendard 800으로 (전단지 제목은 그대로) --- */
.mk-cd[data-title="sans"] .cd-display {
  font-family: var(--sans); font-weight: 800; font-synthesis: none; letter-spacing: -0.04em; line-height: 1.2;
}

/* --- grid: 홈 카드 휴대폰 배치. 720 이상은 모두 4열 --- */
@media (max-width: 719px) {
  .mk-cd[data-grid="1"] .cd-grid-home { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .mk-cd[data-grid="1"] .cd-grid-home .cd-body { padding: 14px 18px 18px; }
  .mk-cd[data-grid="1"] .cd-grid-home .cd-title { font-size: 20px; }
  .mk-cd[data-grid="1"][data-band="d"] .cd-grid-home .cd-band { min-height: 54px; padding: 13px 18px; font-size: 20px; }
  .mk-cd[data-grid="1"][data-band="c"] .cd-grid-home .cd-bands { padding: 20px 18px 0; }
  .mk-cd[data-grid="1"] .cd-grid-home .cd-tags { padding: 14px; }
  .mk-cd[data-grid="1"] .cd-grid-home .cd-tag { font-size: 16px; padding: 10px 16px 10px 24px; }
  .mk-cd[data-grid="scroll"] .cd-grid-home {
    display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad);
    margin-left: calc(var(--pad) * -1); margin-right: calc(var(--pad) * -1);
    padding: 4px var(--pad) 20px; scrollbar-width: none;
  }
  .mk-cd[data-grid="scroll"] .cd-grid-home::-webkit-scrollbar { display: none; }
  .mk-cd[data-grid="scroll"] .cd-grid-home > li { flex: 0 0 72%; scroll-snap-align: start; }
}

@media (min-width: 1024px) {
  .mk-cd[data-band="c"] .cd-pcard .cd-bands { padding: 20px 16px 0; }

  .mk-cd[data-hero="exhibit"] .cd-hero-in { align-items: start; }
  .mk-cd[data-hero="exhibit"] .cd-display { grid-column: 1 / span 7; grid-row: 1; }
  .mk-cd[data-hero="exhibit"] .cd-paths { grid-column: 1 / span 7; grid-row: 2; grid-template-columns: 1fr 1fr; margin-top: 40px; }
  .mk-cd .cd-exhibit { grid-column: 8 / span 5; grid-row: 1 / span 2; align-self: center; margin-top: 0; }
  .mk-cd .cd-ex-stage { display: block; position: relative; width: 360px; margin: 0 0 0 auto; }
  .mk-cd .cd-ex-stack { padding: 0 60px 48px 0; }
  .mk-cd .cd-ex-card,
  .mk-cd .cd-ex-back { border-radius: 20px; }
  .mk-cd .cd-ex-back { right: 60px; bottom: 48px; }
  .mk-cd .cd-ex-b1 { transform: translate(30px, 24px); }
  .mk-cd .cd-ex-b2 { transform: translate(60px, 48px); background: var(--surface); }
  .mk-cd .cd-ex-back > * { visibility: visible; }
  .mk-cd .cd-ex-card .cd-body { display: block; padding: 14px 18px 16px; }
  .mk-cd .cd-ex-stack .cd-band { min-height: 54px; padding: 13px 18px; font-size: 19px; }
  .mk-cd[data-band="c"] .cd-ex-stack .cd-bands { padding: 20px 18px 0; }
  .mk-cd .cd-ex-stack .cd-tags { padding: 14px; }

  .mk-cd .cd-ex-notes { position: absolute; inset: 0; z-index: 1; display: block; padding: 0; pointer-events: none; }
  .mk-cd .cd-ex-note { position: absolute; padding: 11px 16px 11px 14px; font-size: 15px; white-space: nowrap; }
  /* 흔적: 사진 아래쪽 왼편에서 띠를 가리킨다 */
  .mk-cd .cd-ex-n1 { left: -44px; top: 160px; }
  .mk-cd .cd-ex-n1::before { left: 30px; top: auto; bottom: -5px; margin-top: 0; }
  /* 남은 날: 사진 오른쪽 위 모서리 */
  .mk-cd .cd-ex-n2 { right: 0; top: -22px; }
  .mk-cd .cd-ex-n2::before { left: 26px; top: auto; bottom: -5px; margin-top: 0; }
  /* 보호소: 글 오른쪽 아래, 뒤 카드 위 */
  .mk-cd .cd-ex-n3 { right: 0; bottom: 18px; }
  .mk-cd .cd-ex-n3::before { left: -5px; top: 50%; margin-top: -5.5px; }

  .mk-cd .cd-proof ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 24px; padding: 0; background: none; box-shadow: none; }
  .mk-cd .cd-proof li { padding: 24px; background: var(--surface); border-radius: 20px; box-shadow: var(--shadow-card); }
  .mk-cd .cd-proof li + li { border-top: 0; }
  .mk-cd .cd-proof .cd-h3 { font-size: 19px; }
  .mk-cd .cd-proof p { margin-top: 8px; font-size: 16px; }

  .mk-cd[data-title="sans"] .cd-display { line-height: 1.16; }
}

/* --- ads: 광고 자리 (2026-11-22). 실제 광고를 불러오지 않고 회색 틀만 그린다 ---
   cd-ad-l은 light부터, cd-ad-s는 standard에만 보인다. cd-ad-m은 1023 이하만, cd-ad-d는 1024 이상만 보인다 */
.mk-cd .cd-ad { display: none; }
.mk-cd[data-ads="light"] .cd-ad-l,
.mk-cd[data-ads="standard"] .cd-ad-l,
.mk-cd[data-ads="standard"] .cd-ad-s { display: grid; }
.mk-cd:not([data-proof="on"]) .cd-ad.cd-ad-before-proof { display: none; }
.mk-cd .cd-ad {
  position: relative; place-items: center; align-content: center;
  width: 100%; max-width: 336px; aspect-ratio: 336 / 280; margin: 48px auto;
  padding: 40px 16px 24px;
  background: var(--fill); border: 1px solid var(--hair-strong); border-radius: 16px;
  color: var(--ink-2); text-align: center;
}
.mk-cd .cd-ad-k { position: absolute; left: 14px; top: 12px; font-size: 13px; line-height: 1.4; font-weight: 700; color: var(--ink-2); }
.mk-cd .cd-ad-sz { font-size: 13px; line-height: 1.5; font-weight: 500; font-variant-numeric: tabular-nums; }
.mk-cd .cd-ad-sz-d { display: none; }
/* 목록 사이 광고: 카드 한 칸을 차지하지만 흰 면과 그림자 대신 회색 틀 */
.mk-cd .cd-ad.cd-ad-feed { max-width: none; aspect-ratio: auto; min-height: 280px; margin: 24px 0; }
/* 하단 고정 띠: 화면 끝에 폭 전체 50px로 그린다 */
.mk-cd .cd-ad.cd-ad-band {
  grid-auto-flow: column; justify-content: center; column-gap: 12px;
  max-width: none; aspect-ratio: auto; height: 50px; margin: 56px 0 0; padding: 14px var(--pad);
  border-width: 1px 0; border-radius: 0;
}
.mk-cd .cd-ad-band .cd-ad-k { position: static; }
@media (max-width: 1023px) {
  .mk-cd[data-ads] .cd-ad.cd-ad-d { display: none; }
  .mk-cd[data-ads="standard"] .cd-screen { padding-bottom: 0; }
}
@media (min-width: 720px) {
  .mk-cd .cd-ad.cd-ad-feed { margin: 0; min-height: 0; align-self: stretch; }
  .mk-cd[data-ads="standard"] .cd-screen-list .cd-grid-list { row-gap: 40px; }
}
@media (min-width: 1024px) {
  .mk-cd[data-ads] .cd-ad.cd-ad-m { display: none; }
  .mk-cd .cd-ad { max-width: 728px; aspect-ratio: auto; height: 90px; margin: 56px auto; padding: 12px 16px; }
  .mk-cd .cd-ad-sz-m { display: none; }
  .mk-cd .cd-ad-sz-d { display: inline; }
  .mk-cd .cd-ad.cd-ad-side { max-width: 300px; height: 250px; margin: 48px auto 0; padding: 40px 16px 24px; }
  .mk-cd .cd-ad.cd-ad-feed { max-width: none; height: auto; padding: 40px 16px 24px; }
  .mk-cd[data-ads="standard"] .cd-screen-list .cd-more-all { margin-top: 48px; }
  .mk-cd:not([data-ads="off"]) .cd-shelter-side { position: static; }
}

/* --- rail: 날개 광고 (2026-11-22). 화면 폭 1660 이상에서만 본문 상자 바깥 양옆에 160x600 틀을 하나씩 둔다 ---
   길(cd-rail)은 날개 구역 높이만큼 세운 빈 기둥이고, 틀이 그 안에서 sticky로 따라 내려온다. 구역이 끝나면 틀도 함께 올라간다.
   길을 구역의 왼쪽과 오른쪽 바깥으로 (본문 안쪽 여백 + 16px)만큼 빼서 본문 상자(cd-wrap)와 16px 띄운다 */
.mk-cd .cd-rail { display: none; }
@media (min-width: 1660px) {
  .mk-cd[data-rail="on"] .cd-rail-zone,
  .mk-cd[data-rail="on"] .cd-shelter { position: relative; }
  .mk-cd[data-rail="on"] .cd-rail { display: block; position: absolute; top: 0; bottom: 0; width: 160px; }
  .mk-cd[data-rail="on"] .cd-rail-l { right: calc(100% + var(--pad) + 16px); }
  .mk-cd[data-rail="on"] .cd-rail-r { left: calc(100% + var(--pad) + 16px); }
  /* 보호소: 제목이 왼쪽 기둥 안에 있어 격자 위 여백 56과 위치, 제목, 고지 높이만큼 내려서 정보 칸(주소, 전화) 높이에서 시작한다.
     1024 이상은 기둥 폭이 400px로 고정이라 이 높이가 233px로 일정하다(헤드리스 크롬 1920에서 잼) */
  .mk-cd[data-rail="on"] .cd-shelter > .cd-rail { top: 233px; }
  .mk-cd[data-rail="on"] .cd-ad.cd-ad-rail {
    display: grid; position: sticky; top: 88px;
    width: 160px; max-width: none; height: 600px; aspect-ratio: auto; margin: 0; padding: 40px 12px 24px;
  }
  /* 애드센스 수동 고정 광고 규칙: 화면에 따라오는 광고는 한 번에 하나, 양옆 대칭 고정은 금지(support.google.com/adsense/answer/10734935).
     그래서 오른쪽만 따라 내려오고, 왼쪽은 구역 맨 위에 그대로 있다가 스크롤과 함께 지나간다 */
  .mk-cd[data-rail="on"] .cd-rail-l .cd-ad.cd-ad-rail { position: static; }
}

/* ============ 접근성 설정 ============ */
@media (prefers-reduced-motion: reduce) {
  .mk-cd .cd-btn:active, .mk-cd .cd-chip:active, .mk-cd .cd-path:active,
  .mk-cd .cd-pcard:active, .mk-cd .cd-card:has(> .cd-card-hit:active) { transform: none; }
  .mk-cd .cd-seg-thumb { transition: none; }
  .mk-cd .cd-disclose { transition: background-color 200ms ease; }
  .mk-cd .cd-more,
  .mk-cd .cd-card.is-open .cd-more { transition: none; }
  .mk-cd .cd-more-body,
  .mk-cd .cd-card.is-open .cd-more-body { transform: none; transition: opacity 180ms ease; }
}
@media (prefers-contrast: more) {
  .mk-cd { --ink-2: #45443f; --hair: rgba(26, 26, 24, 0.32); --line: #66655f; }
  .mk-cd .cd-pcard, .mk-cd .cd-card, .mk-cd .cd-search, .mk-cd .cd-info,
  .mk-cd .cd-stat, .mk-cd .cd-report, .mk-cd .cd-form, .mk-cd .cd-steps ol,
  .mk-cd .cd-ex-card, .mk-cd .cd-proof ul, .mk-cd .cd-proof li { box-shadow: 0 0 0 1px var(--ink); }
  .mk-cd .cd-ad { border-color: var(--ink-2); }
}

/* ============ 인쇄: 전단지 canvas만 A4 한 장 ============ */
@media print {
  @page { size: A4 portrait; margin: 0; }
  .mk-cd { background: #fff !important; }
  .mk-cd > :not(.cd-screen-flyer) { display: none !important; }
  .mk-cd .cd-screen-flyer :not(:has(canvas[data-flyer])):not(canvas[data-flyer]) { display: none !important; }
  .mk-cd .cd-screen-flyer,
  .mk-cd .cd-screen-flyer :has(canvas[data-flyer]) {
    display: block !important; position: static !important; margin: 0 !important; padding: 0 !important;
    border: 0 !important; border-radius: 0 !important; box-shadow: none !important; background: none !important;
    max-width: none !important; width: auto !important; overflow: visible !important;
  }
  .mk-cd canvas[data-flyer] {
    display: block !important; width: 204mm !important; height: auto !important;
    margin: 4mm auto 0 !important; break-inside: avoid; page-break-inside: avoid;
  }
}


/* 띠 색 클래스(M4, M7). lib/marks.mjs의 COLORS에서 만든다 */
.mk-cd .b-red{--c:#D43D3D;--t:#fff}.mk-cd .s-red{--c2:#D43D3D}
.mk-cd .b-pink{--c:#E58FB0;--t:#1a1a18}.mk-cd .s-pink{--c2:#E58FB0}
.mk-cd .b-orange{--c:#E8873A;--t:#1a1a18}.mk-cd .s-orange{--c2:#E8873A}
.mk-cd .b-yellow{--c:#E8B931;--t:#1a1a18}.mk-cd .s-yellow{--c2:#E8B931}
.mk-cd .b-gold{--c:#C9A227;--t:#1a1a18}.mk-cd .s-gold{--c2:#C9A227}
.mk-cd .b-green{--c:#2E7D4F;--t:#fff}.mk-cd .s-green{--c2:#2E7D4F}
.mk-cd .b-khaki{--c:#6B6B3A;--t:#fff}.mk-cd .s-khaki{--c2:#6B6B3A}
.mk-cd .b-blue{--c:#2F6FDB;--t:#fff}.mk-cd .s-blue{--c2:#2F6FDB}
.mk-cd .b-navy{--c:#1F3A93;--t:#fff}.mk-cd .s-navy{--c2:#1F3A93}
.mk-cd .b-purple{--c:#7B5EA7;--t:#fff}.mk-cd .s-purple{--c2:#7B5EA7}
.mk-cd .b-brown{--c:#8A5A35;--t:#fff}.mk-cd .s-brown{--c2:#8A5A35}
.mk-cd .b-beige{--c:#D8C3A0;--t:#1a1a18}.mk-cd .s-beige{--c2:#D8C3A0}
.mk-cd .b-gray{--c:#9AA0A6;--t:#1a1a18}.mk-cd .s-gray{--c2:#9AA0A6}
.mk-cd .b-black{--c:#2B2B2B;--t:#fff}.mk-cd .s-black{--c2:#2B2B2B}
.mk-cd .b-white{--c:#FFFFFF;--t:#1a1a18}.mk-cd .s-white{--c2:#FFFFFF}
.mk-cd .b-none{--c:#dedcd6;--t:#1a1a18}
.mk-cd .cd-band{background:var(--c);color:var(--t)}
.mk-cd .cd-band.has-sub{box-shadow:inset -18px 0 0 var(--c2);padding-right:26px}
.mk-cd .b-white.cd-band{box-shadow:inset 0 0 0 1px var(--hair-strong)}
.mk-cd .cd-hurt{display:grid;place-items:center;gap:10px;padding:16px;background:#e3e2dd;text-align:center;color:var(--ink-2);font-size:14px}
.mk-cd .cd-hurt .cd-btn{min-height:44px}
body{margin:0}
/* 시안에 없던 부품(목록, 안내 글, 장례 줄, 빈 결과, 인쇄). 시안의 토큰을 쓴다 */
.mk-cd .cd-list{list-style:none;margin:12px 0 0;padding:0;display:grid;gap:8px}
.mk-cd .cd-list li{display:flex;justify-content:space-between;gap:12px;align-items:baseline;padding:14px 16px;background:var(--surface);border-radius:14px;box-shadow:var(--shadow-card)}
.mk-cd .cd-list a{color:var(--ink);font-weight:600;text-decoration:none}
.mk-cd .cd-list a:hover{text-decoration:underline}
.mk-cd .cd-list-grid{grid-template-columns:repeat(auto-fill,minmax(220px,1fr))}
.mk-cd .cd-rows{list-style:none;margin:16px 0;padding:0;display:grid;gap:10px}
.mk-cd .cd-row{padding:16px;background:var(--surface);border-radius:14px;box-shadow:var(--shadow-card)}
.mk-cd .cd-row-t{margin:0 0 4px;font-weight:700}
.mk-cd .cd-row .cd-meta{margin:2px 0}
.mk-cd .cd-chipnote{display:inline-block;margin-left:4px;padding:1px 8px;border-radius:999px;background:var(--fill-2);color:var(--ink);font-size:13px;font-weight:600}
.mk-cd .cd-notice-strong{margin:16px 0;font-weight:600}
.mk-cd .cd-article{max-width:720px}
.mk-cd .cd-article p,.mk-cd .cd-bullets li{line-height:1.7}
.mk-cd .cd-bullets{padding-left:1.2em;display:grid;gap:8px}
.mk-cd .cd-sources ul{padding-left:1.2em;font-size:14px;color:var(--ink-2)}
.mk-cd .cd-empty{display:grid;gap:10px;justify-items:start;padding:24px 0}
.mk-cd .cd-more-link{margin:20px 0}
.mk-cd .cd-due-end{color:var(--ink-2)}
.mk-cd .cd-form-err{color:#a1261d;font-weight:600}
.mk-cd .cd-preview canvas{width:100%;height:auto;border-radius:12px;box-shadow:var(--shadow-card);background:#fff}
.mk-cd [data-todo]{background:#fbefd5;outline:1px dashed var(--caution)}
.mk-cd .cd-notice-page .cd-qfield{display:flex;gap:8px;align-items:center}
.cd-print-only{display:none}
@media print{body *{visibility:hidden}.cd-print-only{display:block;visibility:visible;position:absolute;left:0;top:0;width:100%}}
.mk-cd .cd-ex-n3{max-width:46vw;white-space:normal}

/* 날개 구역(설계 13장): 시안은 구역이 본문 상자 안에 있었지만, 빌드는 본문 맨 바깥 단계에 구역을 둔다.
   그래서 본문 상자(최대 1280px, 가운데) 바깥 끝에서 16px 띄운 자리를 화면 가운데 기준으로 잡는다. 1660px 미만에서는 날개가 없다(A3) */
@media (min-width: 1660px) {
  .mk-cd[data-rail="on"] .cd-zone-full > .cd-rail-l { right: calc(50% + 656px); }
  .mk-cd[data-rail="on"] .cd-zone-full > .cd-rail-r { left: calc(50% + 656px); }
}

/* 찾기 목록 사이 광고(설계 13장): 줄 하나를 다 쓰고 위아래 카드와 40px 이상 띄운다(A4). 태블릿 336x280, 컴퓨터 728x90 */
@media (min-width: 720px) {
  .mk-cd .cd-grid-list > .cd-ad.cd-ad-feed { grid-column: 1 / -1; justify-self: center; width: 100%; max-width: 336px; height: 280px; min-height: 0; margin: 20px 0; aspect-ratio: auto; }
}
@media (min-width: 1024px) {
  .mk-cd .cd-grid-list > .cd-ad.cd-ad-feed { max-width: 728px; height: 90px; padding: 12px 16px; }
}

/* 관심 공고 저장(S16): 카드 단추 셋. 원 공고 보기는 한 줄을 다 쓰고 공유와 저장은 아래 줄에 반씩(375px에서 셋이 한 줄이면 넘친다). 누른 상태는 책갈피를 채우고 테두리를 진하게 */
.mk-cd .cd-actions{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.mk-cd .cd-actions > .cd-btn-primary{grid-column:1 / -1}
.mk-cd .cd-save[aria-pressed="true"]{box-shadow:inset 0 0 0 2px var(--ink)}
.mk-cd .cd-save[aria-pressed="true"] .cd-ic{fill:currentColor}
.mk-cd .cd-toast{position:fixed;left:50%;bottom:max(16px,env(safe-area-inset-bottom));transform:translateX(-50%);z-index:50;width:max-content;max-width:min(92vw,420px);margin:0;padding:12px 16px;border-radius:14px;background:var(--ink);color:#fff;font-size:15px;line-height:1.45;box-shadow:var(--shadow-card)}
.mk-cd .cd-toast[hidden]{display:none}
.mk-cd .cd-saved-n{color:var(--ink-2);font-size:.6em}
.mk-cd .cd-saved-clear{margin:24px 0}
.mk-cd .cd-row .cd-btn{margin-top:10px}
/* 가까운 보호소(S17) */
.mk-cd .cd-near{margin-bottom:8px}
.mk-cd .cd-near [data-near-result]{margin-top:12px}
.mk-cd [data-near-go][aria-disabled="true"]{opacity:.6;cursor:progress}
.mk-cd .cd-near-list li{flex-direction:column;align-items:flex-start;gap:4px}
.mk-cd .cd-step-link{color:var(--accent);font-weight:700;text-decoration:underline;text-underline-offset:3px;white-space:nowrap}
/* 카드의 "공고 기간이 지났어요" 줄: 시안의 .cd-ended(공고 끝난 목록 줄)와 이름이 겹쳐 아이콘이 위로 떨어지던 것을 다른 안내 줄과 같게 */
.mk-cd .cd-note.cd-ended{display:flex;gap:8px}
/* 동물 영업 목록 찾아보기(S10): 입력 줄, 목록 고르기, 결과 묶음. 업종과 날짜는 상호와 같은 줄에 붙여 잘라 내도 같이 남게(L4) */
.mk-cd .cd-check-form{display:grid;gap:14px;margin:16px 0}
.mk-cd .cd-check-row{margin:0;border:0;padding:0}
.mk-cd .cd-check-row > label,.mk-cd .cd-check-row > legend{display:block;margin-bottom:6px;font-weight:700}
.mk-cd fieldset.cd-check-row label{display:inline-flex;align-items:center;gap:6px;min-height:44px;margin-right:14px}
.mk-cd .cd-check-lists label{font-weight:400}
.mk-cd select.cd-input{padding-right:36px}
.mk-cd .cd-check-group{margin-top:20px}
.mk-cd .cd-check-kind{display:inline-block;margin-right:6px;padding:1px 8px;border-radius:999px;background:var(--surface-2,#f1f1ef);color:var(--ink-2);font-size:13px;font-weight:700;vertical-align:1px}
/* 실종 글(docs/실종글.md): 목록 줄(작은 사진 + 글), 글 화면 사진과 항목 */
.mk-cd .cd-missing-rows{display:grid;gap:10px}
.mk-cd .cd-missing-row a,.mk-cd div.cd-missing-row{display:flex;gap:12px;align-items:center;color:inherit;text-decoration:none}
.mk-cd .cd-missing-row img{flex:none;width:96px;height:72px;object-fit:cover;border-radius:10px;background:var(--surface-2,#eceae5)}
.mk-cd .cd-missing-row span{display:flex;flex-direction:column;gap:2px;min-width:0}
.mk-cd .cd-missing-photo{display:block;width:100%;max-width:640px;height:auto;margin:12px 0;border-radius:14px;background:var(--surface-2,#eceae5)}
.mk-cd .cd-missing-dl{display:grid;grid-template-columns:max-content 1fr;gap:6px 14px;margin:12px 0}
.mk-cd .cd-missing-dl dt{color:var(--ink-2);font-weight:700}
.mk-cd .cd-missing-dl dd{margin:0}
.mk-cd .cd-missing-tel{font-size:24px;font-weight:800}
.mk-cd .cd-missing-report{margin-top:20px}
.mk-cd .cd-missing-report summary{cursor:pointer;min-height:44px;display:flex;align-items:center}
.mk-cd .cd-missing-warn{display:block;margin-top:6px}
/* 2026-11-25 저점 사용자 점검과 모바일 최적화 */
.mk-cd .cd-card{scroll-margin-top:72px}
.mk-cd .cd-callbox{margin-top:16px;display:grid;gap:8px}
.mk-cd .cd-call{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;column-gap:8px;row-gap:0;min-height:56px;font-size:17px}
.mk-cd .cd-call-n{font-weight:600;font-variant-numeric:tabular-nums;opacity:.85}
.mk-cd .cd-call-say{font-size:15px;line-height:1.5;color:var(--ink-2)}
.mk-cd .cd-callbox + .cd-note{margin-top:14px}
.mk-cd .cd-dd-note{display:block;margin-top:2px;font-size:13px;font-weight:500;line-height:1.45;color:var(--ink-2)}
.mk-cd .cd-list:not(.cd-near-list) li{position:relative;min-height:52px;align-items:center}
.mk-cd .cd-list:not(.cd-near-list) li > a::after{content:"";position:absolute;inset:0;border-radius:14px}
@supports selector(li:has(a)){.mk-cd .cd-list:not(.cd-near-list) li > a:focus-visible{outline:none}.mk-cd .cd-list:not(.cd-near-list) li:has(> a:focus-visible){outline:3px solid var(--accent);outline-offset:2px}}
.mk-cd .cd-list:not(.cd-near-list) li .cd-meta{position:relative;pointer-events:none;flex:none}
.mk-cd .cd-footer-links{list-style:none;display:flex;flex-wrap:wrap;gap:0 18px;margin:8px 0 0;padding:0}
.mk-cd .cd-footer-links a{display:inline-flex;align-items:center;min-height:44px;font-size:15px;font-weight:600;color:var(--ink);text-decoration:underline;text-underline-offset:3px}
.mk-cd .cd-ex-stage{color:inherit;text-decoration:none;border-radius:18px}
.mk-cd .cd-ex-stage:focus-visible{outline:3px solid var(--head-focus,#1a1a18);outline-offset:4px}
.mk-cd .cd-ex-t{min-width:0;overflow-wrap:anywhere}
.mk-cd .cd-region-note{margin-top:6px}
.mk-cd .cd-duo-top{margin-top:16px}
.mk-cd .cd-pick-thumb img[hidden]{display:none}
.mk-cd .cd-pick-empty{position:absolute;inset:0;display:grid;place-content:center;justify-items:center;gap:8px;padding:12px;text-align:center;font-size:14px;line-height:1.4;color:var(--ink-2)}
.mk-cd .cd-pick-thumb img:not([hidden]) + .cd-pick-empty{display:none}
@media (max-width:419px){.mk-cd .cd-sort .cd-select-k{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}}
