/* cafe.ayo.pe.kr — 카페·빵집·편의점·패스트푸드·분식 고유 스킨 (2026-09-27 사용자 지시).
 *
 * 콘셉트: **카페 카운터 칠판 메뉴보드 + 테이크아웃 컵**
 *   헤더   : 나무 테두리 칠판 — 분필 손글씨 상호, 분필로 그린 탭
 *   요약표 : 작은 칠판 가격판(분필 글씨)
 *   질답   : 라떼색 종이 위, 질문마다 커피잔 자국(갈색 링) 안의 Q
 *   목록   : 골판지 컵 슬리브 카드(왼쪽 주름 띠)
 *   홈     : 메뉴마다 테이크아웃 컵 모양(뚜껑 + 사다리꼴 몸통)
 *   글꼴   : 제목 Nanum Pen Script(분필) · 본문 Sunflower
 *
 * 전부 body.site-cafe 아래. site.css 위에 덮는다.
 * ⚠️ 광고 유닛(<ins>·.ad-top·li.ad-row 안쪽)에는 배경·테두리·라벨을 씌우지 않는다.
 * ⚠️ 질문(h2)과 답(p) 사이에 요소를 끼우지 않는다 — 장식은 ::before/::after 로만.
 */

body.site-cafe {
  --fg: #2e211a;
  --fg-soft: #57443a;
  --muted: #8c7868;
  --line: #e3d3c0;
  --line-soft: #eee2d3;
  --bg: #fffaf3;
  --bg-soft: #f4e9dc;
  --accent: #8a4b2a;          /* 에스프레소 크레마 */
  --accent-strong: #6b3519;
  --accent-soft: #f3e0d0;
  --accent-wash: #fbf1e7;
  --accent-line: #dcb89c;
  --board: #273029;           /* 칠판 */
  --chalk: #f4f1e8;
  --mint: #a8d5c2;            /* 분필 민트 */
  --pink: #f2b8c6;            /* 분필 분홍 */
  --radius: 14px;
  --wrap: 900px;
  background: #f1e6d8;
  font-family: "Sunflower", -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-weight: 300;
  font-size: 16.5px;
}
body.site-cafe b, body.site-cafe strong { font-weight: 700; }

body.site-cafe .brand,
body.site-cafe h1,
body.site-cafe .qa-head,
body.site-cafe section.list > h2,
body.site-cafe section.children > h2,
body.site-cafe section.other-sites > h2,
body.site-cafe .mapsec-head,
body.site-cafe .menu-cards li > a,
body.site-cafe .site-head nav a {
  font-family: "Nanum Pen Script", "Sunflower", cursive;
  font-weight: 400;
  letter-spacing: 0;
}

/* ── 헤더: 칠판 메뉴보드 ─────────────────────────────────────────────── */
body.site-cafe .site-head {
  position: relative;
  max-width: calc(var(--wrap) - 16px);
  margin: 14px auto 0;
  padding: 18px 24px 20px;
  gap: 10px 26px;
  border: 10px solid #9a6b43;
  border-bottom: 10px solid #9a6b43;
  border-radius: 6px;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(255, 255, 255, .06), transparent 45%),
    radial-gradient(ellipse at 80% 80%, rgba(255, 255, 255, .05), transparent 50%),
    var(--board);
  box-shadow: inset 0 0 0 2px #6e4a2b, inset 0 0 30px rgba(0, 0, 0, .35), 0 6px 14px rgba(60, 35, 15, .25);
}
body.site-cafe .brand { font-size: 38px; line-height: 1; }
body.site-cafe .brand a { color: var(--chalk); text-shadow: 0 0 1px rgba(255, 255, 255, .5); }
body.site-cafe .brand a:hover { color: #fff; text-decoration: none; }
body.site-cafe .brand::after {
  content: "";
  display: block;
  height: 3px;
  margin-top: 4px;
  width: 70%;
  border-radius: 3px;
  background: repeating-linear-gradient(90deg, var(--pink) 0 14px, transparent 14px 20px);
  opacity: .85;
}
body.site-cafe .site-head nav { gap: 6px 14px; }
body.site-cafe .site-head nav a {
  padding: 2px 10px;
  border: 1.5px dashed rgba(244, 241, 232, .55);
  border-radius: 12px 4px 12px 4px;
  background: transparent;
  color: var(--chalk);
  font-size: 23px;
  line-height: 1.3;
}
body.site-cafe .site-head nav a:nth-child(3n+2) { color: var(--mint); }
body.site-cafe .site-head nav a:nth-child(3n+3) { color: var(--pink); }
body.site-cafe .site-head nav a.on,
body.site-cafe .site-head nav a:hover {
  border-style: solid;
  border-color: var(--chalk);
  background: rgba(244, 241, 232, .12);
  text-decoration: none;
}

body.site-cafe .top-search { max-width: var(--wrap); margin-top: 18px; }
body.site-cafe .site-search input[type="search"] {
  border: 2px solid #d9c3a8;
  border-radius: 999px;
  background: #fffaf3;
  padding-left: 20px;
  font-family: inherit;
}
body.site-cafe .site-search button {
  border-radius: 999px;
  padding: 0 22px;
  background: var(--accent);
  font-family: inherit;
  font-weight: 700;
}
body.site-cafe .site-search button:hover { background: var(--accent-strong); }

body.site-cafe main,
body.site-cafe .site-foot,
body.site-cafe .ad-top { max-width: var(--wrap); }

/* ── 경로·제목 ─────────────────────────────────────────────────────── */
body.site-cafe .crumb { font-size: 13.5px; }
body.site-cafe .crumb a { color: var(--fg-soft); }
body.site-cafe .crumb a::after { content: " ~ "; color: var(--accent-line); }
body.site-cafe .crumb span { color: var(--accent); font-weight: 700; }

body.site-cafe h1 {
  margin: 12px 0 22px;
  font-size: 46px;
  line-height: 1.1;
  color: var(--accent-strong);
}
body.site-cafe h1::after {
  content: "";
  display: block;
  width: 120px; height: 10px;
  margin-top: 6px;
  background: radial-gradient(circle at 5px 5px, var(--accent-line) 3.5px, transparent 4px) 0 0 / 16px 10px repeat-x;
}
body.site-cafe .lead { margin: -6px 0 24px; color: var(--fg-soft); font-size: 17px; }
body.site-cafe .data-date {
  display: inline-block;
  margin: -8px 0 18px;
  padding: 3px 12px;
  border-radius: 999px;
  background: #fffaf3;
  border: 1px solid var(--line);
  font-size: 13px;
}

/* ── 요약표: 작은 칠판 ───────────────────────────────────────────────── */
body.site-cafe .summary {
  border: 6px solid #9a6b43;
  border-radius: 8px;
  background: var(--board);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, .3);
  font-size: 15.5px;
}
body.site-cafe .summary th {
  background: transparent;
  color: var(--mint);
  font-weight: 500;
  font-size: 14px;
}
body.site-cafe .summary td { color: var(--chalk); font-weight: 500; }
body.site-cafe .summary td a:not(.btn) { color: var(--pink); }
body.site-cafe .summary tr + tr th,
body.site-cafe .summary tr + tr td { border-top: 1px dashed rgba(244, 241, 232, .22); }
body.site-cafe .phone-note { color: rgba(244, 241, 232, .65); }
body.site-cafe .btn { border-radius: 999px; font-family: inherit; }
body.site-cafe .btn-phone {
  border: 1.5px solid var(--chalk);
  background: transparent;
  color: var(--chalk);
}
body.site-cafe .btn-phone:hover { background: var(--chalk); color: var(--board); }

/* ── 질답: 커피잔 자국 ───────────────────────────────────────────────── */
body.site-cafe .qa-head { font-size: 32px; color: var(--accent-strong); margin-bottom: 8px; }
body.site-cafe .qa-head::before {
  content: "";
  width: 26px; height: 22px;
  border-radius: 0 0 11px 11px;
  background: var(--accent);
  box-shadow: 8px -2px 0 -5px transparent;
  position: relative;
}
body.site-cafe .qa-list {
  padding: 8px 26px;
  border: 0;
  border-radius: 22px;
  background: #fffaf3;
  box-shadow: 0 1px 0 var(--line), 0 12px 24px rgba(107, 53, 25, .08);
}
body.site-cafe .qa-item { padding: 20px 0 20px 50px; border-bottom: 2px dotted var(--line); }
body.site-cafe .qa-item:last-child { border-bottom: 0; }
body.site-cafe .qa-item h2 {
  position: relative;
  font-size: 18px;
  font-weight: 700;
  color: var(--fg);
}
body.site-cafe .qa-item h2::before {
  content: "Q";
  position: absolute;
  left: -50px; top: -4px;
  width: 36px; height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle, transparent 12px, rgba(138, 75, 42, .55) 13px, rgba(138, 75, 42, .25) 15px, transparent 17px);
  color: var(--accent);
  font-family: "Nanum Pen Script", cursive;
  font-size: 26px;
  font-weight: 400;
  transform: rotate(-12deg);
}
body.site-cafe .qa-item:nth-child(even) h2::before { transform: rotate(20deg); }
body.site-cafe .qa-item p { padding-left: 0; color: var(--fg-soft); line-height: 1.85; }
body.site-cafe section.qa > .qa-item { padding-left: 50px; }

/* ── 지도 ─────────────────────────────────────────────────────────────── */
body.site-cafe .mapsec-head { font-size: 28px; color: var(--accent-strong); }
body.site-cafe .map-canvas,
body.site-cafe .pano-canvas { border: 3px solid #fffaf3; border-radius: 20px; box-shadow: 0 6px 16px rgba(107, 53, 25, .15); }

/* ── 목록: 컵 슬리브 카드 ────────────────────────────────────────────── */
body.site-cafe section.list > h2,
body.site-cafe section.children > h2,
body.site-cafe section.other-sites > h2 {
  font-size: 30px;
  color: var(--accent-strong);
  border-bottom: 0;
  padding-bottom: 0;
}
body.site-cafe .place-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
body.site-cafe .place-list li {
  position: relative;
  padding: 14px 16px 14px 34px;
  border: 0;
  border-radius: 16px;
  background: #fffaf3;
  box-shadow: 0 2px 0 var(--line), 0 6px 14px rgba(107, 53, 25, .06);
  align-content: start;
  overflow: hidden;
}
body.site-cafe .place-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 20px;
  background: repeating-linear-gradient(0deg, #c49a6c 0 3px, #b0845a 3px 6px);
}
body.site-cafe .place-list li:nth-child(3n+2)::before { background: repeating-linear-gradient(0deg, #9fcab7 0 3px, #86b7a2 3px 6px); }
body.site-cafe .place-list li:nth-child(3n)::before { background: repeating-linear-gradient(0deg, #eab0bf 0 3px, #dc98a9 3px 6px); }
body.site-cafe .place-list li > a { color: var(--fg); font-weight: 700; font-size: 16.5px; }
body.site-cafe .place-list li:hover { box-shadow: 0 2px 0 var(--accent-line), 0 8px 18px rgba(107, 53, 25, .12); }
body.site-cafe .place-list li.ad-row {
  grid-column: 1 / -1;
  padding: 0; background: none; box-shadow: none; border-radius: 0; overflow: visible;
}
body.site-cafe .place-list li.ad-row::before { content: none; }

body.site-cafe .cat {
  background: var(--board);
  color: var(--chalk);
  border-radius: 999px;
  padding: 1px 9px;
  font-weight: 500;
}
body.site-cafe .dist { background: var(--accent); color: #fff; }

/* 지역 링크: 원두 칩 */
body.site-cafe .region-links { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
body.site-cafe .region-links li {
  position: relative;
  padding: 10px 14px 10px 30px;
  border: 0;
  border-radius: 999px;
  background: #fffaf3;
  box-shadow: 0 2px 0 var(--line);
}
body.site-cafe .region-links li::before {
  content: "";
  position: absolute;
  left: 12px; top: 50%;
  width: 10px; height: 13px;
  margin-top: -6.5px;
  border-radius: 50%;
  background: linear-gradient(100deg, #6b3519 45%, #3d1d0c 47%, #3d1d0c 53%, #6b3519 55%);
  transform: rotate(20deg);
}
body.site-cafe .region-links li:hover { background: var(--accent-soft); }
body.site-cafe .region-links li > a { color: var(--fg); font-weight: 700; }

/* 홈: 테이크아웃 컵 */
body.site-cafe .menu-cards { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 22px 16px; margin-top: 30px; }
body.site-cafe .menu-cards li {
  position: relative;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 150px;
  padding: 34px 18px 22px;
  border: 0;
  border-radius: 0 0 18px 18px;
  background:
    linear-gradient(transparent 38%, #c49a6c 38%, #c49a6c 70%, transparent 70%),
    #fffaf3;
  clip-path: polygon(0 12px, 100% 12px, 90% 100%, 10% 100%);
  text-align: center;
}
body.site-cafe .menu-cards li::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 22px;
  background: #3d2a20;
  border-radius: 10px 10px 2px 2px;
}
body.site-cafe .menu-cards li:nth-child(3n+2) { background: linear-gradient(transparent 38%, #9fcab7 38%, #9fcab7 70%, transparent 70%), #fffaf3; }
body.site-cafe .menu-cards li:nth-child(3n) { background: linear-gradient(transparent 38%, #eab0bf 38%, #eab0bf 70%, transparent 70%), #fffaf3; }
body.site-cafe .menu-cards li:hover { filter: brightness(1.04); border: 0; }
body.site-cafe .menu-cards li > a { font-size: 28px; color: var(--fg); line-height: 1.1; }
body.site-cafe .menu-cards .count { color: var(--fg); font-weight: 700; }
body.site-cafe .count { color: var(--muted); }

/* ── 주변 정보 ───────────────────────────────────────────────────────── */
body.site-cafe .near { border-top: 0; }
body.site-cafe .near-block {
  padding: 4px 22px 18px;
  border-radius: 22px;
  background: #fffaf3;
  box-shadow: 0 2px 0 var(--line);
}
body.site-cafe .near h2 {
  border-left: 0;
  padding-left: 0;
  font-weight: 700;
  color: var(--accent-strong);
}
body.site-cafe .near h2::before {
  content: "";
  display: inline-block;
  width: 14px; height: 11px;
  margin-right: 8px;
  border-radius: 0 0 6px 6px;
  background: var(--accent);
  box-shadow: 4px -1px 0 -2px var(--accent);
}
body.site-cafe .near ul,
body.site-cafe .near > .near-block > p,
body.site-cafe .near .more { padding-left: 22px; }
body.site-cafe .near li { padding: 4px 0; }
body.site-cafe .near li > a { color: var(--fg); font-weight: 700; }

/* ── 출처·삭제요청·푸터 ──────────────────────────────────────────────── */
body.site-cafe .source h2 { font-weight: 700; font-size: 18px; }
body.site-cafe .removal { border: 2px dashed var(--accent-line); border-radius: 22px; background: #fffaf3; box-shadow: none; }
body.site-cafe .removal::before { background: var(--accent-soft); }
body.site-cafe .removal-icon { border-radius: 50%; background: var(--board); color: var(--chalk); }
body.site-cafe .btn-removal { background: var(--accent); }

body.site-cafe .site-foot {
  max-width: calc(var(--wrap) - 16px);
  margin: 56px auto 24px;
  padding: 20px 24px;
  border: 6px solid #9a6b43;
  border-radius: 6px;
  background: var(--board);
  color: rgba(244, 241, 232, .75);
}

/* ── 404: 오늘은 품절 ──────────────────────────────────────────────── */
body.site-cafe main.not-found h1::before {
  content: "sold out";
  display: block;
  margin-bottom: 6px;
  color: var(--pink);
  font-size: 30px;
  transform: rotate(-4deg);
  transform-origin: left;
}

@media (max-width: 600px) {
  body.site-cafe .region-links li > a { min-width: 0; overflow-wrap: anywhere; }
  body.site-cafe { font-size: 15.5px; }
  body.site-cafe .site-head { margin: 10px 10px 0; padding: 14px 16px 16px; border-width: 8px; }
  body.site-cafe .brand { font-size: 32px; }
  body.site-cafe .site-head nav a { font-size: 20px; }
  body.site-cafe h1 { font-size: 36px; }
  body.site-cafe .qa-list { padding: 4px 16px; }
  body.site-cafe .qa-item,
  body.site-cafe section.qa > .qa-item { padding-left: 42px; }
  body.site-cafe .qa-item h2::before { left: -44px; }
  body.site-cafe .place-list { grid-template-columns: 1fr; }
  body.site-cafe .region-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.site-cafe .region-links li { min-width: 0; padding-right: 10px; }
  body.site-cafe .menu-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.site-cafe .menu-cards li > a { font-size: 27px; }
  body.site-cafe .near-block { padding: 4px 14px 16px; }
  body.site-cafe .near ul,
  body.site-cafe .near > .near-block > p,
  body.site-cafe .near .more { padding-left: 0; }
  body.site-cafe .site-foot { margin: 40px 10px 16px; }
}

/* ── 다크: 마감 후 카페 ─────────────────────────────────────────────── */
@media (prefers-color-scheme: dark) {
  body.site-cafe {
    --fg: #f1e7dc;
    --fg-soft: #cdbdad;
    --muted: #9c8a7a;
    --line: #3e3129;
    --line-soft: #33281f;
    --bg: #1c1612;
    --bg-soft: #271f19;
    --accent: #e0a47c;
    --accent-strong: #f2c09d;
    --accent-soft: #3a2a20;
    --accent-wash: #2a1f18;
    --accent-line: #6b4a35;
    background: #16110e;
  }
  body.site-cafe .qa-list,
  body.site-cafe .place-list li,
  body.site-cafe .region-links li,
  body.site-cafe .near-block,
  body.site-cafe .removal,
  body.site-cafe .data-date,
  body.site-cafe .site-search input[type="search"] { background: #231b16; }
  body.site-cafe .place-list li.ad-row { background: none; }
  body.site-cafe .site-search input[type="search"] { border-color: #4a3a2e; color: var(--fg); }
  body.site-cafe .site-search button { background: #8a4b2a; }
  body.site-cafe .menu-cards li { background: linear-gradient(transparent 38%, #8a6440 38%, #8a6440 70%, transparent 70%), #2a211a; }
  body.site-cafe .menu-cards li:nth-child(3n+2) { background: linear-gradient(transparent 38%, #4d7a68 38%, #4d7a68 70%, transparent 70%), #2a211a; }
  body.site-cafe .menu-cards li:nth-child(3n) { background: linear-gradient(transparent 38%, #8a5563 38%, #8a5563 70%, transparent 70%), #2a211a; }
  body.site-cafe .menu-cards li::before { background: #0e0b09; }
  body.site-cafe .cat { background: #33403a; }
  body.site-cafe .dist { color: #1c1612; }
  body.site-cafe .qa-item h2::before { background: radial-gradient(circle, transparent 12px, rgba(224, 164, 124, .6) 13px, rgba(224, 164, 124, .25) 15px, transparent 17px); }
}
