/* onnuri.ayo.pe.kr — 온누리상품권 가맹점 · 시장·상점가 고유 스킨 (2026-09-27 사용자 지시).
 * site.css 하단의 옛 .site-onnuri 테마(단청 빨강·청록 점선)를 이 파일이 덮는다.
 *
 * 콘셉트: **상품권 도안(지폐처럼 찍은 증권)**
 *   헤더   : 연녹색 증권 바탕에 기요셰(겹친 원 무늬), 금색 겹테두리, 오른쪽 일련번호
 *   탭     : 절취선이 있는 쿠폰 꼬투리
 *   요약표 : 증서 — 금색 이중 테두리와 모서리 장식
 *   질답   : 항목마다 "제 1 호" 식 붉은 일련번호 도장
 *   목록   : 왼쪽 꼬투리(점선 절취선 + 반원 홈)가 달린 상품권 카드
 *   글꼴   : Hahmlet 한 가족(굵기로 제목·본문 구분 — 인쇄 증권의 세리프)
 *
 * 전부 body.site-onnuri 아래.
 * ⚠️ 광고 유닛(<ins>·.ad-top·li.ad-row 안쪽)에는 배경·테두리·라벨을 씌우지 않는다.
 * ⚠️ 질문(h2)과 답(p) 사이에 요소를 끼우지 않는다 — 장식은 ::before/::after 로만.
 */

body.site-onnuri {
  --fg: #1d2a22;
  --fg-soft: #3f4f45;
  --muted: #74847a;
  --line: #cfdcc9;
  --line-soft: #e2ebdd;
  --bg: #fbfcf6;
  --bg-soft: #eef4e6;
  --accent: #1f6b45;          /* 증권 녹색 */
  --accent-strong: #134d30;
  --accent-soft: #dcefdf;
  --accent-wash: #f1f8ef;
  --accent-line: #9cc7a8;
  --gold: #b8913a;
  --seal: #c23a2b;            /* 일련번호 인주 */
  --paper: #f4f6ec;
  --radius: 4px;
  --wrap: 880px;
  background: var(--paper);
  background-image:
    repeating-radial-gradient(circle at 0 0, transparent 0 22px, rgba(31, 107, 69, .035) 22px 23px),
    repeating-radial-gradient(circle at 100% 100%, transparent 0 22px, rgba(184, 145, 58, .04) 22px 23px);
  font-family: "Hahmlet", "Nanum Myeongjo", serif;
  font-weight: 400;
}

body.site-onnuri .brand,
body.site-onnuri h1,
body.site-onnuri .qa-head,
body.site-onnuri .qa-item h2,
body.site-onnuri section.list > h2,
body.site-onnuri section.children > h2,
body.site-onnuri section.other-sites > h2,
body.site-onnuri .near h2,
body.site-onnuri .mapsec-head,
body.site-onnuri .menu-cards li > a {
  font-family: "Hahmlet", serif;
  font-weight: 800;
  letter-spacing: -0.3px;
}

/* ── 헤더: 증권 도안 ────────────────────────────────────────────────── */
body.site-onnuri .site-head {
  position: relative;
  max-width: calc(var(--wrap) - 16px);
  margin: 16px auto 0;
  padding: 22px 28px 20px;
  gap: 12px 24px;
  border: 2px solid var(--gold);
  border-radius: 6px;
  background:
    repeating-radial-gradient(circle at 85% 50%, transparent 0 7px, rgba(31, 107, 69, .12) 7px 8px),
    repeating-radial-gradient(circle at 15% 120%, transparent 0 9px, rgba(184, 145, 58, .14) 9px 10px),
    linear-gradient(135deg, #e6f1dc, #f6f1dd 60%, #e3eed6);
  box-shadow: inset 0 0 0 5px #fbfcf6, inset 0 0 0 6px var(--gold), 0 4px 0 rgba(31, 107, 69, .15);
}
body.site-onnuri .site-head::after {
  content: "No. 0000 0000";
  position: absolute;
  right: 18px; top: 10px;
  color: var(--seal);
  font-family: "Hahmlet", serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 2px;
}
body.site-onnuri .brand { font-size: 28px; line-height: 1.1; }
body.site-onnuri .brand a { color: var(--accent-strong); }
body.site-onnuri .brand a:hover { color: var(--accent); text-decoration: none; }
body.site-onnuri .brand::before {
  content: "";
  display: inline-block;
  width: 26px; height: 26px;
  margin-right: 10px;
  vertical-align: -4px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: radial-gradient(circle, var(--gold) 4px, transparent 5px), repeating-radial-gradient(circle, transparent 0 3px, rgba(184, 145, 58, .5) 3px 4px);
}

/* 쿠폰 꼬투리 탭: 오른쪽 절취선 + 반원 홈 */
body.site-onnuri .site-head nav { gap: 8px; }
body.site-onnuri .site-head nav a {
  position: relative;
  padding: 6px 22px 6px 14px;
  border-radius: 3px;
  background:
    radial-gradient(circle at 100% 50%, transparent 6px, #fbfcf6 6.5px);
  border: 0;
  color: var(--accent-strong);
  font-weight: 600;
  font-size: 15px;
  box-shadow: 0 1px 0 var(--line);
}
body.site-onnuri .site-head nav a::after {
  content: "";
  position: absolute;
  right: 10px; top: 5px; bottom: 5px;
  border-right: 1.5px dashed var(--gold);
}
body.site-onnuri .site-head nav a.on,
body.site-onnuri .site-head nav a:hover {
  background: radial-gradient(circle at 100% 50%, transparent 6px, var(--accent) 6.5px);
  color: #fbfcf6;
  text-decoration: none;
}
body.site-onnuri .site-head nav a.on::after,
body.site-onnuri .site-head nav a:hover::after { border-color: #e7d49c; }

body.site-onnuri .top-search { max-width: var(--wrap); margin-top: 18px; }
body.site-onnuri .site-search input[type="search"] {
  border: 1.5px solid var(--accent);
  border-radius: 3px;
  background: #fbfcf6;
  font-family: inherit;
}
body.site-onnuri .site-search button {
  border-radius: 3px;
  background: var(--accent);
  font-family: inherit;
  font-weight: 600;
}
body.site-onnuri .site-search button:hover { background: var(--accent-strong); }

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

/* ── 경로·제목 ─────────────────────────────────────────────────────── */
body.site-onnuri .crumb { font-size: 13px; }
body.site-onnuri .crumb a { color: var(--fg-soft); }
body.site-onnuri .crumb a::after { content: " ❯ "; color: var(--gold); font-size: 10px; }
body.site-onnuri .crumb span { color: var(--accent-strong); font-weight: 600; }

body.site-onnuri h1 {
  margin: 14px 0 22px;
  font-size: 32px;
  line-height: 1.3;
  color: var(--accent-strong);
}
body.site-onnuri h1::after {
  content: "";
  display: block;
  height: 8px;
  margin-top: 10px;
  max-width: 260px;
  background:
    linear-gradient(var(--gold), var(--gold)) 0 0 / 100% 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) 0 100% / 100% 1px no-repeat,
    repeating-linear-gradient(45deg, transparent 0 3px, rgba(184, 145, 58, .6) 3px 4px);
}
body.site-onnuri .lead { margin: -6px 0 24px; color: var(--fg-soft); }
body.site-onnuri .data-date { margin: -8px 0 18px; font-size: 13px; color: var(--muted); }
body.site-onnuri .data-date::before { content: "발행 기준 · "; color: var(--seal); font-weight: 600; }

/* ── 요약표: 증서 ─────────────────────────────────────────────────── */
body.site-onnuri .summary {
  border: 3px double var(--gold);
  border-radius: 0;
  background:
    repeating-radial-gradient(circle at 100% 0, transparent 0 10px, rgba(31, 107, 69, .05) 10px 11px),
    #fdfdf8;
  font-size: 15px;
  outline: 1px solid var(--gold);
  outline-offset: 3px;
  margin: 4px 4px 22px;
  width: calc(100% - 8px);
}
body.site-onnuri .summary th {
  background: transparent;
  color: var(--accent);
  font-weight: 600;
  border-right: 1px solid var(--line);
}
body.site-onnuri .summary td { font-weight: 600; }
body.site-onnuri .summary tr + tr th,
body.site-onnuri .summary tr + tr td { border-top: 1px solid var(--line-soft); }
body.site-onnuri .summary td a:not(.btn) { color: var(--accent-strong); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
body.site-onnuri .btn { border-radius: 3px; font-family: inherit; }
body.site-onnuri .btn-phone { border: 1.5px solid var(--accent); color: var(--accent); background: #fdfdf8; }
body.site-onnuri .btn-phone:hover { background: var(--accent); color: #fff; }

/* ── 질답: 일련번호 도장 ────────────────────────────────────────────── */
body.site-onnuri .qa-head { font-size: 22px; color: var(--accent-strong); }
body.site-onnuri .qa-head::before {
  content: "";
  width: 24px; height: 24px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold) 3px, transparent 4px), repeating-radial-gradient(circle, transparent 0 3px, rgba(184, 145, 58, .6) 3px 4px);
  border: 1.5px solid var(--gold);
}
body.site-onnuri .qa-list {
  counter-reset: oq;
  padding: 6px 24px;
  border: 1px solid var(--gold);
  border-radius: 0;
  background: #fdfdf8;
  box-shadow: 0 0 0 4px #fdfdf8, 0 0 0 5px var(--line);
}
body.site-onnuri .qa-item { padding: 20px 0; border-bottom: 1px dashed var(--line); }
body.site-onnuri .qa-item:last-child { border-bottom: 0; }
body.site-onnuri .qa-item h2 {
  counter-increment: oq;
  flex-direction: column;
  gap: 4px;
  font-size: 18px;
  color: var(--fg);
}
body.site-onnuri .qa-item h2::before {
  content: "제 " counter(oq, decimal-leading-zero) " 호";
  align-self: flex-start;
  padding: 0 8px;
  border: 1.5px solid var(--seal);
  border-radius: 3px;
  color: var(--seal);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  transform: rotate(-2deg);
}
body.site-onnuri .qa-item p { padding-left: 0; color: var(--fg-soft); line-height: 1.85; }
body.site-onnuri section.qa > .qa-item h2::before { content: "문"; }

/* ── 지도 ─────────────────────────────────────────────────────────────── */
body.site-onnuri .mapsec-head { font-size: 20px; color: var(--accent-strong); }
body.site-onnuri .map-canvas,
body.site-onnuri .pano-canvas { border: 3px double var(--gold); border-radius: 0; }

/* ── 목록: 꼬투리 달린 상품권 ───────────────────────────────────────── */
body.site-onnuri section.list > h2,
body.site-onnuri section.children > h2,
body.site-onnuri section.other-sites > h2 {
  font-size: 20px;
  color: var(--accent-strong);
  border-bottom: 3px double var(--gold);
}
body.site-onnuri .place-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
body.site-onnuri .place-list li {
  position: relative;
  padding: 14px 16px 14px 46px;
  border: 0;
  border-radius: 4px;
  background:
    radial-gradient(circle at 30px 0, transparent 7px, transparent 7.5px),
    linear-gradient(90deg, #e3eed6 0 30px, transparent 30px),
    repeating-radial-gradient(circle at 100% 100%, transparent 0 9px, rgba(31, 107, 69, .05) 9px 10px),
    #fdfdf8;
  box-shadow: inset 0 0 0 1px var(--accent-line);
  align-content: start;
  -webkit-mask: radial-gradient(circle at 30px 0, transparent 7px, #000 7.5px) top / 100% 51% no-repeat,
                radial-gradient(circle at 30px 100%, transparent 7px, #000 7.5px) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle at 30px 0, transparent 7px, #000 7.5px) top / 100% 51% no-repeat,
                radial-gradient(circle at 30px 100%, transparent 7px, #000 7.5px) bottom / 100% 51% no-repeat;
}
body.site-onnuri .place-list li::before {
  content: "";
  position: absolute;
  left: 30px; top: 10px; bottom: 10px;
  border-left: 1.5px dashed var(--accent);
}
body.site-onnuri .place-list li::after {
  content: "₩";
  position: absolute;
  left: 8px; top: 50%;
  margin-top: -9px;
  width: 16px;
  text-align: center;
  color: var(--accent);
  font-weight: 800;
  font-size: 13px;
}
body.site-onnuri .place-list li > a { color: var(--fg); font-weight: 800; font-size: 16.5px; }
body.site-onnuri .place-list li:hover { box-shadow: inset 0 0 0 2px var(--accent); }
body.site-onnuri .place-list li.ad-row {
  grid-column: 1 / -1;
  padding: 0; background: none; box-shadow: none; -webkit-mask: none; mask: none; border-radius: 0;
}
body.site-onnuri .place-list li.ad-row::before,
body.site-onnuri .place-list li.ad-row::after { content: none; }

body.site-onnuri .cat {
  background: transparent;
  border: 1px solid var(--gold);
  color: #7a5d1c;
  border-radius: 2px;
  font-weight: 600;
}
body.site-onnuri .dist { background: var(--accent); color: #fff; border-radius: 2px; }

/* 지역 링크: 동전 */
body.site-onnuri .region-links { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
body.site-onnuri .region-links li {
  position: relative;
  padding: 10px 14px 10px 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fdfdf8;
}
body.site-onnuri .region-links li::before {
  content: "";
  position: absolute;
  left: 9px; top: 50%;
  width: 22px; height: 22px;
  margin-top: -11px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f3dc9a, var(--gold) 70%);
  box-shadow: inset 0 0 0 2px rgba(122, 93, 28, .35);
}
body.site-onnuri .region-links li:hover { border-color: var(--gold); background: #fbf6e6; }
body.site-onnuri .region-links li > a { color: var(--fg); font-weight: 600; }
body.site-onnuri .count { color: var(--accent); }

/* 홈 메뉴 카드: 권종 */
body.site-onnuri .menu-cards { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
body.site-onnuri .menu-cards li {
  position: relative;
  flex-direction: column;
  align-items: flex-start;
  min-height: 130px;
  padding: 26px 26px 20px;
  border: 2px solid var(--gold);
  border-radius: 6px;
  background:
    repeating-radial-gradient(circle at 90% 60%, transparent 0 8px, rgba(31, 107, 69, .12) 8px 9px),
    linear-gradient(135deg, #e6f1dc, #f6f1dd);
  box-shadow: inset 0 0 0 5px #fbfcf6, inset 0 0 0 6px var(--gold);
}
body.site-onnuri .menu-cards li::after {
  content: "ONNURI";
  position: absolute;
  right: 18px; bottom: 12px;
  color: var(--accent-line);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 3px;
}
body.site-onnuri .menu-cards li:hover { border-color: var(--accent); background: linear-gradient(135deg, #d8ebcb, #f1ead0); }
body.site-onnuri .menu-cards li > a { font-size: 25px; color: var(--accent-strong); }
body.site-onnuri .menu-cards .count { font-size: 14px; color: var(--seal); font-weight: 600; }

/* ── 주변 정보 ───────────────────────────────────────────────────────── */
body.site-onnuri .near { border-top: 3px double var(--gold); }
body.site-onnuri .near h2 { border-left: 0; padding-left: 0; color: var(--accent-strong); font-size: 18px; }
body.site-onnuri .near h2::before { content: "※ "; color: var(--seal); }
body.site-onnuri .near-block + .near-block { border-top: 1px dashed var(--line); }
body.site-onnuri .near ul,
body.site-onnuri .near > .near-block > p,
body.site-onnuri .near .more { padding-left: 20px; }
body.site-onnuri .near li { padding: 4px 0; }
body.site-onnuri .near li > a { color: var(--fg); font-weight: 600; }

/* ── 출처·삭제요청·푸터 ──────────────────────────────────────────────── */
body.site-onnuri .source h2 { font-weight: 800; font-size: 17px; }
body.site-onnuri .removal { border: 1px solid var(--gold); border-radius: 0; background: #fdfdf8; box-shadow: 0 0 0 4px #fdfdf8, 0 0 0 5px var(--line); }
body.site-onnuri .removal::before { display: none; }
body.site-onnuri .removal-icon { border: 1.5px solid var(--seal); border-radius: 50%; background: transparent; color: var(--seal); }
body.site-onnuri .btn-removal { background: var(--accent); box-shadow: none; }

body.site-onnuri .site-foot {
  margin-top: 56px;
  padding: 22px 20px 44px;
  border-top: 3px double var(--gold);
  color: var(--fg-soft);
}

/* ── 404: 사용 불가 증권 ────────────────────────────────────────────── */
body.site-onnuri main.not-found h1::before {
  content: "무효";
  display: inline-block;
  margin: 0 12px 6px 0;
  padding: 0 10px;
  border: 2px solid var(--seal);
  color: var(--seal);
  font-size: 18px;
  border-radius: 3px;
  transform: rotate(-6deg);
  vertical-align: middle;
}

@media (max-width: 600px) {
  body.site-onnuri .region-links li > a { min-width: 0; overflow-wrap: anywhere; }
  body.site-onnuri .site-head { margin: 10px 10px 0; padding: 26px 18px 18px; }
  body.site-onnuri .site-head::after { right: 14px; top: 8px; font-size: 10px; }
  body.site-onnuri .brand { font-size: 23px; }
  body.site-onnuri h1 { font-size: 26px; }
  body.site-onnuri .qa-list { padding: 4px 14px; }
  body.site-onnuri .place-list { grid-template-columns: 1fr; }
  body.site-onnuri .region-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.site-onnuri .region-links li { min-width: 0; }
  body.site-onnuri .near ul,
  body.site-onnuri .near > .near-block > p,
  body.site-onnuri .near .more { padding-left: 0; }
  body.site-onnuri .summary th { width: 70px; }
}

/* ── 다크: 밤 시장 ─────────────────────────────────────────────────── */
@media (prefers-color-scheme: dark) {
  body.site-onnuri {
    --fg: #e7efe6;
    --fg-soft: #bccabd;
    --muted: #8a9a8e;
    --line: #34443a;
    --line-soft: #2a372f;
    --bg: #151c18;
    --bg-soft: #1d2821;
    --accent: #6fc493;
    --accent-strong: #9adcb4;
    --accent-soft: #1f3327;
    --accent-wash: #18251d;
    --accent-line: #3d6a4f;
    --gold: #cfae5f;
    --seal: #ef7a6a;
    --paper: #121814;
  }
  body.site-onnuri .site-head,
  body.site-onnuri .menu-cards li {
    background:
      repeating-radial-gradient(circle at 85% 50%, transparent 0 7px, rgba(111, 196, 147, .1) 7px 8px),
      linear-gradient(135deg, #1b2a20, #252419);
    box-shadow: inset 0 0 0 5px #151c18, inset 0 0 0 6px var(--gold);
  }
  body.site-onnuri .site-head nav a { background: radial-gradient(circle at 100% 50%, transparent 6px, #1d2821 6.5px); }
  body.site-onnuri .site-head nav a.on,
  body.site-onnuri .site-head nav a:hover { background: radial-gradient(circle at 100% 50%, transparent 6px, #2f6b48 6.5px); }
  body.site-onnuri .summary,
  body.site-onnuri .qa-list,
  body.site-onnuri .region-links li,
  body.site-onnuri .removal,
  body.site-onnuri .site-search input[type="search"],
  body.site-onnuri .btn-phone { background: #1a221d; color: var(--fg); }
  body.site-onnuri .qa-list,
  body.site-onnuri .removal { box-shadow: 0 0 0 4px #121814, 0 0 0 5px var(--line); }
  body.site-onnuri .place-list li { background: linear-gradient(90deg, #22321f 0 30px, transparent 30px), #1a221d; }
  body.site-onnuri .place-list li.ad-row { background: none; }
  body.site-onnuri .cat { color: #e7d49c; }
  body.site-onnuri .dist { color: #151c18; }
  body.site-onnuri .site-search button { background: #2f6b48; }
  body.site-onnuri .region-links li:hover { background: #242a1c; }
}
