/* herb.ayo.pe.kr — 사이트 고유 디자인(2026-09-27). 콘셉트: 한지 약첩 × 약장 서랍.
   base.html·site.css 위에 덮는다. 모든 규칙은 body.site-herb 아래로 격리한다.
   글꼴: 나눔명조(제목·질문) + Noto Sans KR(본문). 여백·글씨 크기는 minwon 다듬기(2026-09-27) 기준. */
body.site-herb {
  --hb-ink: #2f2418;
  --hb-sub: #6d5f4e;
  --hb-line: #e2d6c3;
  --hb-bg: #f7f1e6;
  --hb-card: #fffdf8;
  --hb-brown: #6b3f1d;
  --hb-brown-d: #4a2a12;
  --hb-red: #a4372b;
  --hb-green: #55693a;
  background: var(--hb-bg);
  color: var(--hb-ink);
  font-family: "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
}

/* ── 머리: 약장 서랍 ─────────────────────────────── */
body.site-herb .site-head { background: var(--hb-brown-d); color: #f6ead6; border-bottom: 3px double #c9a36b; }
body.site-herb .brand a { color: #f6ead6; font-family: "Nanum Myeongjo", serif; font-weight: 800; letter-spacing: -0.01em; }
body.site-herb .brand::before {
  content: "藥";
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; margin-right: 8px;
  background: var(--hb-red); color: #fff4e3; border-radius: 3px;
  font: 700 15px/1 "Nanum Myeongjo", serif; vertical-align: -2px;
}
body.site-herb .site-head nav a { color: #f6ead6; background: rgba(255,255,255,.1); border: 1px solid rgba(201,163,107,.5); border-radius: 3px; }
body.site-herb .site-head nav a.on,
body.site-herb .site-head nav a:hover { color: var(--hb-brown-d); background: #e9cf9f; }
body.site-herb .site-search input[type="search"] { border: 1px solid var(--hb-brown); border-radius: 3px 0 0 3px; background: #fffdf8; }
body.site-herb .site-search button { background: var(--hb-brown); color: #fff4e3; border: 0; border-radius: 0 3px 3px 0; }

/* ── 제목·요약: 약첩 ─────────────────────────────── */
body.site-herb h1 { font-family: "Nanum Myeongjo", serif; font-size: 24px; font-weight: 800; margin: 18px 0 22px; color: var(--hb-brown-d); }
body.site-herb .lead { font-size: 14.5px; line-height: 1.8; color: var(--hb-sub); }
body.site-herb .data-date, body.site-herb .crumb a { color: var(--hb-sub); }
body.site-herb .summary { background: var(--hb-card); border: 1px solid var(--hb-line); border-radius: 2px; box-shadow: 3px 3px 0 var(--hb-line); margin-bottom: 26px; }
body.site-herb .summary th { font-size: 13.5px; color: var(--hb-sub); font-weight: 500; padding: 12px 16px; white-space: nowrap; background: #f3ead9; }
body.site-herb .summary td { font-size: 14.5px; padding: 12px 18px; line-height: 1.6; }
body.site-herb .summary tr + tr td, body.site-herb .summary tr + tr th { border-top: 1px dashed var(--hb-line); }

/* ── 질답: 약첩 종이 ─────────────────────────────── */
body.site-herb .qa-list { background: transparent; border: 0; box-shadow: none; padding: 0; }
body.site-herb .qa-item {
  background: var(--hb-card);
  border: 1px solid var(--hb-line);
  border-top: 3px solid var(--hb-brown);
  border-radius: 2px;
  padding: 20px 24px;
  margin: 0 0 14px;
}
body.site-herb .qa-item:last-child { border-bottom: 1px solid var(--hb-line); }
body.site-herb .qa-item h2 { font-family: "Nanum Myeongjo", serif; font-size: 16px; line-height: 1.55; font-weight: 800; margin: 0 0 8px; color: var(--hb-brown-d); }
body.site-herb .qa-item h2::before { color: var(--hb-red); }
body.site-herb .qa-item p { margin: 0; font-size: 14.5px; line-height: 1.85; color: #43362a; }

/* ── 관련 목록: 약장 서랍 칸 ───────────────────────── */
body.site-herb .near-block { background: var(--hb-card); border: 1px solid var(--hb-line); border-radius: 2px; padding: 22px 24px; margin: 0 0 16px; }
body.site-herb .near-block h2 { font-family: "Nanum Myeongjo", serif; font-size: 16.5px; font-weight: 800; margin: 0 0 8px; color: var(--hb-brown-d); }
body.site-herb .near-block > p { font-size: 14.5px; line-height: 1.75; color: #43362a; margin: 0 0 12px; }
body.site-herb .near-block ul { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
body.site-herb .near-block ul li { list-style: none; padding: 10px 12px; font-size: 14px; border: 1px solid var(--hb-line); background: #fbf5ea; border-radius: 2px; }
body.site-herb .near-block a { color: var(--hb-brown); font-weight: 700; text-decoration: none; }
body.site-herb .near-block a:hover { text-decoration: underline; }
body.site-herb .near-block .addr { display: block; color: var(--hb-sub); font-size: 12.5px; margin-top: 2px; }
body.site-herb .more a { color: var(--hb-red); font-weight: 700; }

/* ── 목록·허브 ─────────────────────────────────────── */
body.site-herb .place-list li { background: var(--hb-card); border: 1px solid var(--hb-line); border-radius: 2px; margin: 10px 0; padding: 14px 18px; font-size: 14.5px; }
body.site-herb .place-list li > a { color: var(--hb-ink); font-weight: 700; }
body.site-herb .place-list li > a:hover { color: var(--hb-red); }
body.site-herb .place-list .addr { color: var(--hb-sub); }
body.site-herb .cat { background: #efe2c9; color: var(--hb-brown-d); border-radius: 2px; padding: 1px 7px; }
body.site-herb .region-links li { background: var(--hb-card); border: 1px solid var(--hb-line); border-radius: 2px; }
body.site-herb .region-links li:hover { border-color: var(--hb-brown); }
body.site-herb .count { color: var(--hb-red); }
body.site-herb .menu-cards li { background: var(--hb-card); border: 1px solid var(--hb-brown); border-radius: 2px; box-shadow: 3px 3px 0 var(--hb-line); }

/* ── 출처·삭제요청·발 ───────────────────────────────── */
body.site-herb .source { border-top: 1px dashed var(--hb-line); padding-top: 18px; margin-top: 28px; }
body.site-herb .source h2 { font-family: "Nanum Myeongjo", serif; font-size: 16.5px; font-weight: 800; margin: 0 0 8px; }
body.site-herb .source p { font-size: 14px; color: var(--hb-sub); }
body.site-herb .source a { color: var(--hb-brown); }
body.site-herb .btn { background: var(--hb-brown); color: #fff4e3; border-radius: 3px; }
body.site-herb .site-foot { background: var(--hb-brown-d); color: #e6d4b5; }
body.site-herb .site-foot a { color: #fff4e3; }

@media (max-width: 640px) {
  body.site-herb h1 { font-size: 21px; }
  body.site-herb .qa-item { padding: 16px; }
  body.site-herb .qa-item h2 { font-size: 15px; }
  body.site-herb .qa-item p { font-size: 14px; }
  body.site-herb .near-block { padding: 18px 16px; }
  body.site-herb .near-block ul { grid-template-columns: 1fr 1fr; }
}
