/* importfood.ayo.pe.kr — 수입식품 독자 스킨 (2026-09-27, 사이트 고유 디자인 규칙).
 *
 * 콘셉트: **통관 서류 × 항공우편**. 수입식품 페이지는 "어느 나라에서 · 누가 들여왔는가" 를 답하는 곳이라
 * 세관 신고서·화물 목록(manifest)·여권 도장의 말투로 화면을 짠다.
 * site.css(디자인 A) 위에 덮어쓰고 전부 body.site-importfood 아래로 가둔다 — 다른 사이트에 새지 않는다.
 * 마크업 변형은 place/detail.html 의 `siteKey == 'importfood'` 조건 블록(제조국 도장·제조국 행)뿐이다.
 *
 *   헤더   : 항공우편 사선 띠(빨강·파랑) + 서류 제목(명조) + 모노 서브타이틀
 *   탭     : 서류 칸(각진 테두리, 선택 시 먹 채움)
 *   도장   : 상세 제목 옆 붉은 고무도장 — MADE IN {제조국}
 *   요약표 : 세관 신고서 칸(모노 라벨 · 점선 기입줄 · 굵은 외곽선)
 *   질답   : 화물 목록 — 항목마다 No.01 번호 칸(CSS counter), 왼쪽 천공선
 *   목록   : 화물 꼬리표 — 오른쪽 절취 홈, 품목은 모노 태그
 *   나라   : 여권 입국 도장 칩(이중 테두리 · 번갈아 기울임)
 *   글꼴   : 제목 Nanum Myeongjo · 본문 IBM Plex Sans KR · 라벨/번호 Nanum Gothic Coding
 *
 * ⚠️ 광고 유닛(<ins>·.ad-top·.ad-row 안쪽)에는 배경·테두리·라벨을 씌우지 않는다(site.css 애드센스 절).
 * ⚠️ 질문(h2)과 답(p) 사이에 요소를 끼우지 않는다 — 장식은 ::before/::after 로만.
 */

body.site-importfood {
  --fg: #16213a;
  --fg-soft: #3c4863;
  --muted: #6d7690;
  --line: #d9cfbb;
  --line-soft: #e8e0cf;
  --bg: #fffdf8;
  --bg-soft: #f5efe2;
  --accent: #1f4e9c;          /* 항공우편 파랑 */
  --accent-strong: #163a76;
  --accent-soft: #e6ecf8;
  --accent-wash: #f3f6fc;
  --accent-line: #b8c8e8;
  --ink: #16213a;             /* 서류 먹색 */
  --stamp: #c2372b;           /* 세관 도장 빨강 */
  --manila: #efe6d2;          /* 서류 봉투 */
  --mono: "Nanum Gothic Coding", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --serif: "Nanum Myeongjo", "AppleMyungjo", "Batang", serif;
  --radius: 3px;
  --wrap: 860px;
  background: var(--manila);
  background-image:
    linear-gradient(rgba(22, 33, 58, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 33, 58, .035) 1px, transparent 1px);
  background-size: 22px 22px;
  font-family: "IBM Plex Sans KR", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

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

/* ── 헤더: 항공우편 봉투 ─────────────────────────────────────────────── */
body.site-importfood .site-head {
  position: relative;
  max-width: none;
  margin: 0 0 4px;
  padding: 30px max(20px, calc((100% - var(--wrap)) / 2 + 20px)) 16px;
  border-bottom: 2px solid var(--ink);
  background: var(--bg);
  align-items: flex-end;
}
body.site-importfood .site-head::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 10px;
  background: repeating-linear-gradient(-45deg,
    var(--stamp) 0 14px, #fffdf8 14px 21px, var(--accent) 21px 35px, #fffdf8 35px 42px);
}
body.site-importfood .brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-right: auto;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.5px;
  line-height: 1.15;
}
body.site-importfood .brand::before {
  content: "IMPORTED FOOD · 수입신고 기록";
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: var(--stamp);
}
body.site-importfood .brand a { color: var(--ink); }
body.site-importfood .brand a:hover { color: var(--accent); text-decoration: none; }

body.site-importfood .site-head nav { gap: 0; border: 1.5px solid var(--ink); }
body.site-importfood .site-head nav a {
  padding: 7px 16px;
  border-radius: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
}
body.site-importfood .site-head nav a + a { border-left: 1.5px solid var(--ink); }
body.site-importfood .site-head nav a.on,
body.site-importfood .site-head nav a:hover {
  background: var(--ink);
  color: #fffdf8;
  text-decoration: none;
}

/* 검색창: 신고서 기입 칸 */
body.site-importfood .site-search input[type="search"] {
  border: 1.5px solid var(--ink);
  border-radius: 0;
  background: #fff;
  font-family: var(--mono);
  font-size: 15px;
}
body.site-importfood .site-search button {
  border-radius: 0;
  background: var(--stamp);
  font-family: var(--mono);
  font-weight: 700;
  letter-spacing: 1px;
}
body.site-importfood .site-search button:hover { background: #9d2a20; }

/* ── 경로·제목 ─────────────────────────────────────────────────────────── */
body.site-importfood .crumb {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .3px;
  text-transform: none;
}
body.site-importfood .crumb a { color: var(--fg-soft); }
body.site-importfood .crumb a::after { content: "  /"; color: var(--muted); }
body.site-importfood .crumb span { color: var(--stamp); font-weight: 700; }

body.site-importfood main { position: relative; }
body.site-importfood h1 {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 30px;
  line-height: 1.3;
  letter-spacing: -.6px;
  color: var(--ink);
  margin: 18px 0 18px;
  padding: 0 128px 14px 0;
  border-bottom: 3px double var(--ink);
}
body.site-importfood .lead { margin: 0 0 22px; }
body.site-importfood .data-date {
  margin: 0 0 16px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--fg-soft);
}

/* 제조국 고무도장 — 제목 오른쪽에 비스듬히 찍힌다 */
body.site-importfood .if-stamp {
  position: absolute;
  right: 22px;
  top: 34px;
  width: 112px;
  margin: 0;
  padding: 8px 6px 7px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  color: var(--stamp);
  border: 3px double var(--stamp);
  border-radius: 10px;
  transform: rotate(-9deg);
  opacity: .88;
  mix-blend-mode: multiply;
  text-align: center;
  pointer-events: none;
}
body.site-importfood .if-stamp-top,
body.site-importfood .if-stamp-bot {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
}
body.site-importfood .if-stamp-bot { border-top: 1.5px solid var(--stamp); padding-top: 2px; width: 80%; }
body.site-importfood .if-stamp b {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.15;
  word-break: keep-all;
}

/* ── 요약표: 세관 신고서 ─────────────────────────────────────────────── */
body.site-importfood .summary {
  border: 2px solid var(--ink);
  border-radius: 0;
  background: #fff;
  box-shadow: 5px 5px 0 rgba(22, 33, 58, .14);
  font-size: 15px;
}
body.site-importfood .summary tr + tr th,
body.site-importfood .summary tr + tr td { border-top: 1px dashed #b9ad95; }
body.site-importfood .summary th {
  width: 104px;
  background: var(--bg-soft);
  border-right: 1.5px solid var(--ink);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 1px;
}
body.site-importfood .summary td { font-weight: 600; color: var(--ink); }
body.site-importfood .btn { border-radius: 0; font-family: var(--mono); }
body.site-importfood .btn-phone { border: 1.5px solid var(--ink); color: var(--ink); background: #fff; }

/* ── 질답: 화물 목록(manifest) ───────────────────────────────────────── */
body.site-importfood .qa-head {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 2px;
  color: var(--ink);
  text-transform: uppercase;
}
body.site-importfood .qa-head::before {
  content: "✓";
  width: 24px; height: 24px;
  border-radius: 2px;
  background: var(--stamp);
  font-size: 14px;
  transform: rotate(-4deg);
}
body.site-importfood .qa-head::after {
  content: "";
  flex: 1;
  height: 0;
  border-top: 1.5px dashed var(--ink);
  opacity: .5;
}
body.site-importfood .qa-list {
  counter-reset: manifest;
  padding: 0 22px 0 30px;
  border: 1.5px solid var(--ink);
  border-radius: 0;
  background:
    radial-gradient(circle at 12px 50%, var(--manila) 4.5px, transparent 5px) 0 0 / 24px 22px repeat-y,
    #fff;
  box-shadow: 5px 5px 0 rgba(22, 33, 58, .10);
}
body.site-importfood .qa-item {
  counter-increment: manifest;
  padding: 18px 0 18px 64px;
  position: relative;
  border-bottom: 1px dashed #c9bda4;
}
body.site-importfood .qa-item::before {
  content: "No." counter(manifest, decimal-leading-zero);
  position: absolute;
  left: 0; top: 19px;
  width: 50px;
  padding: 2px 0;
  border: 1.5px solid var(--ink);
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 700;
  text-align: center;
  color: var(--ink);
  background: var(--bg-soft);
}
body.site-importfood .qa-item h2 {
  font-family: "IBM Plex Sans KR", sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}
body.site-importfood .qa-item h2::before { content: none; }
body.site-importfood .qa-item p { color: var(--fg-soft); line-height: 1.85; }
/* 광고가 qa-item 밖(형제)에 끼면 번호 칸이 붙지 않는다 — 광고 래퍼는 건드리지 않는다. */

/* ── 목록: 화물 꼬리표 ───────────────────────────────────────────────── */
body.site-importfood section.list > h2,
body.site-importfood section.children > h2,
body.site-importfood .source h2,
body.site-importfood .near h2 {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 21px;
  color: var(--ink);
  border-bottom: 2px solid var(--ink);
}
body.site-importfood .place-list { display: grid; gap: 10px; }
body.site-importfood .place-list li {
  position: relative;
  padding: 13px 58px 13px 16px;
  border: 1.5px solid var(--ink);
  background:
    radial-gradient(circle at 100% 50%, var(--manila) 9px, transparent 9.5px),
    linear-gradient(90deg, transparent calc(100% - 44px), var(--bg-soft) calc(100% - 44px));
  background-color: #fff;
}
/* 꼬리표 끈 구멍 + 절취선 */
body.site-importfood .place-list li::after {
  content: "";
  position: absolute;
  right: 44px; top: 6px; bottom: 6px;
  border-left: 1.5px dashed #b9ad95;
}
body.site-importfood .place-list li > a { color: var(--ink); font-size: 16px; }
body.site-importfood .place-list li:hover { border-color: var(--accent); }
body.site-importfood .place-list li.ad-row {
  padding: 0; border: 0; background: none;
}
body.site-importfood .place-list li.ad-row::after { content: none; }
body.site-importfood .addr:empty { display: none; }
body.site-importfood .cat {
  border-radius: 0;
  border: 1px solid var(--ink);
  background: #fff;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 700;
}

/* 나라·지역 링크: 여권 입국 도장 */
body.site-importfood .region-links {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
body.site-importfood .region-links li {
  padding: 10px 12px;
  border: 3px double var(--accent);
  border-radius: 12px;
  background: #fff;
  transform: rotate(-1.2deg);
}
body.site-importfood .region-links li:nth-child(3n+2) { transform: rotate(1deg); border-color: var(--stamp); }
body.site-importfood .region-links li:nth-child(3n) { transform: rotate(-.4deg); border-color: #2f6b4f; }
body.site-importfood .region-links li > a { color: var(--ink); font-family: var(--serif); font-weight: 800; }
body.site-importfood .region-links li:hover { background: var(--accent-wash); }

/* 메뉴 첫 화면 카드: 탑승권 */
body.site-importfood .menu-cards { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
body.site-importfood .menu-cards li {
  position: relative;
  padding: 26px 20px 20px;
  border: 2px solid var(--ink);
  border-radius: 0;
  background:
    linear-gradient(90deg, #fff calc(100% - 96px), var(--bg-soft) calc(100% - 96px));
  box-shadow: 5px 5px 0 rgba(22, 33, 58, .14);
}
body.site-importfood .menu-cards li::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 8px;
  background: repeating-linear-gradient(-45deg,
    var(--stamp) 0 10px, #fff 10px 15px, var(--accent) 15px 25px, #fff 25px 30px);
}
body.site-importfood .menu-cards li::after {
  content: "";
  position: absolute;
  right: 96px; top: 14px; bottom: 8px;
  border-left: 1.5px dashed var(--ink);
}
body.site-importfood .menu-cards li > a { font-family: var(--serif); font-weight: 800; font-size: 22px; color: var(--ink); }
body.site-importfood .menu-cards li:hover { background: linear-gradient(90deg, var(--accent-wash) calc(100% - 96px), var(--bg-soft) calc(100% - 96px)); }
body.site-importfood .count {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--stamp);
}

/* ── 출처·삭제요청·푸터 ──────────────────────────────────────────────── */
body.site-importfood .source {
  padding: 4px 18px 14px;
  border: 1.5px dashed var(--ink);
  background: #fff;
}
body.site-importfood .source h2 { border-bottom: 0; font-size: 17px; }
body.site-importfood .removal { border-radius: 0; }
body.site-importfood .site-foot {
  position: relative;
  margin-top: 56px;
  padding: 26px 20px 44px;
  border-top: 0;
  background: var(--ink);
  color: #c9d2e6;
}
body.site-importfood .site-foot::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 7px;
  background: repeating-linear-gradient(-45deg,
    var(--stamp) 0 12px, #fffdf8 12px 18px, #4d7fd6 18px 30px, #fffdf8 30px 36px);
}
body.site-importfood .site-foot a { color: #fff; }

@media (max-width: 600px) {
  body.site-importfood .site-head { padding: 26px 16px 12px; }
  body.site-importfood .brand { font-size: 22px; }
  body.site-importfood .site-head nav a { padding: 6px 12px; font-size: 13px; }
  body.site-importfood h1 { font-size: 24px; padding-right: 0; }
  body.site-importfood .if-stamp {
    position: static;
    width: auto;
    display: inline-flex;
    flex-direction: row;
    gap: 8px;
    padding: 4px 12px;
    margin: -4px 0 16px;
    transform: rotate(-2deg);
  }
  body.site-importfood .if-stamp-bot { border-top: 0; padding-top: 0; width: auto; border-left: 1.5px solid var(--stamp); padding-left: 8px; }
  body.site-importfood .if-stamp b { font-size: 16px; }
  body.site-importfood .qa-list { padding: 0 14px 0 26px; }
  body.site-importfood .qa-item { padding-left: 0; padding-top: 44px; }
  body.site-importfood .qa-item::before { top: 16px; }
  body.site-importfood .qa-item p { padding-left: 0; }
  body.site-importfood .summary th { width: 84px; letter-spacing: 0; }
}

/* ── 다크 모드: 야간 세관 ────────────────────────────────────────────── */
@media (prefers-color-scheme: dark) {
  body.site-importfood {
    --fg: #e8ecf5;
    --fg-soft: #b9c2d6;
    --muted: #8a94ab;
    --line: #37405a;
    --line-soft: #2b3248;
    --bg: #151b2b;
    --bg-soft: #1d2438;
    --accent: #7ea6f0;
    --accent-strong: #a5c1f5;
    --accent-soft: #1e2a45;
    --accent-wash: #1a2238;
    --accent-line: #34466e;
    --ink: #e8ecf5;
    --stamp: #f07a6c;
    --manila: #0f1422;
  }
  body.site-importfood .summary,
  body.site-importfood .qa-list,
  body.site-importfood .place-list li,
  body.site-importfood .region-links li,
  body.site-importfood .source,
  body.site-importfood .site-search input[type="search"],
  body.site-importfood .btn-phone,
  body.site-importfood .cat { background-color: #151b2b; }
  body.site-importfood .qa-list {
    background: radial-gradient(circle at 12px 50%, var(--manila) 4.5px, transparent 5px) 0 0 / 24px 22px repeat-y, #151b2b;
  }
  body.site-importfood .menu-cards li { background: linear-gradient(90deg, #151b2b calc(100% - 96px), var(--bg-soft) calc(100% - 96px)); }
  body.site-importfood .site-head nav a.on,
  body.site-importfood .site-head nav a:hover { color: #151b2b; }
  body.site-importfood .if-stamp { mix-blend-mode: normal; }
  body.site-importfood .site-foot { background: #0b0f1a; }
}
