/* ev.ayo.pe.kr — 전기차 충전소 독자 스킨 (2026-09-27, 사이트 고유 디자인 규칙).
 *
 * 콘셉트: **충전기 키오스크 화면 × 배터리 게이지**. 충전소에 서서 보는 충전기 터치 화면(둥근 베젤·큰 숫자·
 * 진행 막대)과 계기판 배터리 표시를 화면 말투로 쓴다. 밝은 화면이다(어두운 게임 스토어 game 과 겹치지 않게).
 * site.css(디자인 A) 위에 덮어쓰고 전부 body.site-ev 아래로 가둔다. 마크업은 공유 템플릿 그대로 — CSS 만.
 *
 *   헤더   : 흰 키오스크 윗판 + 아래 초록 충전선 · 상호는 배터리 모양(충전 80% 채움 + 단자 돌기)
 *   탭     : 커넥터 모양 캡슐(핀 구멍 두 개)
 *   제목   : 밑줄이 충전 진행 막대
 *   요약표 : 키오스크 안내 패널(둥근 모서리 · 청록 라벨)
 *   질답   : 항목마다 세로 배터리 아이콘 — 25·50·75·100% 로 차오르며 돈다
 *   목록   : 2열 충전 타일 — 왼쪽 콘센트 원형 아이콘
 *   글꼴   : Sunflower(제목·라벨) · 본문 시스템 고딕
 *
 * ⚠️ 광고 유닛(<ins>·.ad-top·.ad-row 안쪽)에는 배경·테두리·라벨을 씌우지 않는다.
 * ⚠️ 질문(h2)과 답(p) 사이에 요소를 끼우지 않는다 — 장식은 ::before/::after 로만.
 * ⚠️ 배터리 채움은 장식이다 — 실시간 충전 상태를 말하지 않는다(적재하지 않는다).
 */

body.site-ev {
  --fg: #0f2a2e;
  --fg-soft: #36555a;
  --muted: #6a8589;
  --line: #cfe3e5;
  --line-soft: #e3f0f1;
  --bg: #ffffff;
  --bg-soft: #f0f8f8;
  --accent: #0a7c86;          /* 충전기 청록 */
  --accent-strong: #065a62;
  --accent-soft: #dff3f4;
  --accent-wash: #f2fafa;
  --accent-line: #a8d8dc;
  --charge: #1fbf5b;          /* 충전 초록 */
  --charge-hi: #7ee08a;
  --volt: #d7f542;            /* 번개 연두 */
  --sf: "Sunflower", -apple-system, "Apple SD Gothic Neo", sans-serif;
  --radius: 14px;
  --wrap: 880px;
  background: #e8f1f2;
  background-image: radial-gradient(circle at 50% -200px, #ffffff 0, #e8f1f2 520px);
}

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

body.site-ev h1,
body.site-ev .brand,
body.site-ev .qa-head,
body.site-ev .mapsec-head,
body.site-ev .near h2,
body.site-ev section.list > h2,
body.site-ev section.children > h2,
body.site-ev section.other-sites > h2,
body.site-ev .menu-cards li > a,
body.site-ev .site-head nav a,
body.site-ev .count,
body.site-ev .dist { font-family: var(--sf); }

/* ── 헤더: 키오스크 윗판 + 케이블 ─────────────────────────────────────── */
body.site-ev .site-head {
  position: relative;
  max-width: none;
  margin: 0 0 8px;
  padding: 20px max(20px, calc((100% - var(--wrap)) / 2 + 20px)) 26px;
  border-bottom: 0;
  background: #fff;
  box-shadow: inset 0 -4px 0 var(--charge), 0 1px 0 var(--line);
}
body.site-ev .brand {
  margin-right: auto;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.2;
}
body.site-ev .brand a {
  position: relative;
  display: inline-block;
  padding: 8px 22px 8px 16px;
  margin-right: 8px;
  border: 3px solid #16323a;
  border-radius: 10px;
  color: #06262b;
  background: linear-gradient(90deg, var(--charge-hi) 0 78%, #fff 78%);
}
/* 배터리 단자 돌기 */
body.site-ev .brand a::after {
  content: "";
  position: absolute;
  right: -9px; top: 50%;
  width: 6px; height: 16px;
  margin-top: -8px;
  border-radius: 0 3px 3px 0;
  background: #16323a;
}
body.site-ev .brand a:hover { text-decoration: none; background: linear-gradient(90deg, var(--charge-hi) 0 100%, #fff 100%); }

/* 탭: 커넥터 캡슐 */
body.site-ev .site-head nav { gap: 8px; }
body.site-ev .site-head nav a {
  position: relative;
  padding: 6px 16px 6px 34px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 2px solid var(--accent);
  color: var(--accent-strong);
  font-size: 15px;
  font-weight: 700;
}
body.site-ev .site-head nav a::before {
  content: "";
  position: absolute;
  left: 9px; top: 50%;
  width: 16px; height: 16px;
  margin-top: -8px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 45%, currentColor 1.8px, transparent 2.2px),
    radial-gradient(circle at 65% 45%, currentColor 1.8px, transparent 2.2px),
    #fff;
  box-shadow: 0 0 0 1.5px currentColor;
}
body.site-ev .site-head nav a:hover,
body.site-ev .site-head nav a.on {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
}
body.site-ev .site-head nav a.on::before,
body.site-ev .site-head nav a:hover::before {
  background:
    radial-gradient(circle at 35% 45%, var(--accent) 1.8px, transparent 2.2px),
    radial-gradient(circle at 65% 45%, var(--accent) 1.8px, transparent 2.2px),
    var(--volt);
  box-shadow: none;
}

/* 검색: 터치 입력칸 */
body.site-ev .top-search { margin-top: 18px; }
body.site-ev .site-search input[type="search"] {
  border: 2px solid var(--accent-line);
  border-radius: 999px;
  padding-left: 20px;
  background: #fff;
}
body.site-ev .site-search input[type="search"]:focus { border-color: var(--accent); outline: 3px solid var(--accent-soft); }
body.site-ev .site-search button {
  border-radius: 999px;
  padding: 0 22px;
  background: var(--accent);
  font-family: var(--sf);
  font-size: 16px;
  font-weight: 700;
}
body.site-ev .site-search button:hover { background: var(--accent-strong); }

/* ── 본문: 키오스크 화면 ─────────────────────────────────────────────── */
body.site-ev main {
  margin-top: 16px;
  padding-top: 10px;
  padding-bottom: 28px;
  background: #fff;
  border: 10px solid #16323a;
  border-radius: 28px;
  box-shadow: 0 16px 36px rgba(15, 42, 46, .12);
}
body.site-ev .crumb { font-size: 13px; }
body.site-ev .crumb a { color: var(--muted); }
body.site-ev .crumb a::after { content: " ›"; color: var(--accent-line); }

body.site-ev h1 {
  margin: 10px 0 22px;
  padding-bottom: 16px;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -.3px;
  line-height: 1.3;
  color: var(--fg);
  background:
    linear-gradient(90deg, var(--charge) 0 64%, transparent 64%) left bottom / 100% 6px no-repeat,
    linear-gradient(var(--line-soft), var(--line-soft)) left bottom / 100% 6px no-repeat;
}
body.site-ev .lead { margin: 0 0 22px; color: var(--fg-soft); }
body.site-ev .data-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 16px;
  padding: 3px 12px;
  border-radius: 999px;
  background: #0f2a2e;
  color: var(--volt);
  font-size: 12.5px;
}
body.site-ev .data-date::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--charge);
  box-shadow: 0 0 6px var(--charge);
}

/* ── 요약표: 안내 패널 ───────────────────────────────────────────────── */
body.site-ev .summary {
  border: 2px solid var(--accent-line);
  border-radius: 18px;
  background: var(--accent-wash);
  font-size: 15px;
}
body.site-ev .summary tr + tr th,
body.site-ev .summary tr + tr td { border-top: 1px solid var(--line); }
body.site-ev .summary th {
  width: 108px;
  background: transparent;
  color: var(--accent);
  font-family: var(--sf);
  font-size: 14px;
  font-weight: 700;
}
body.site-ev .summary td { color: var(--fg); font-weight: 600; }
body.site-ev .btn { border-radius: 999px; }
body.site-ev .btn-phone {
  border: 2px solid var(--accent);
  background: #fff;
  color: var(--accent-strong);
  font-weight: 700;
}
body.site-ev .btn-phone:hover { background: var(--accent); color: #fff; }

/* ── 질답: 배터리 항목 ───────────────────────────────────────────────── */
body.site-ev .qa-head {
  font-size: 19px;
  font-weight: 700;
  color: var(--fg);
}
body.site-ev .qa-head::before {
  content: "";
  width: 22px; height: 26px;
  border-radius: 0;
  background: var(--charge);
  clip-path: polygon(58% 0, 8% 58%, 44% 58%, 34% 100%, 92% 38%, 54% 38%);   /* 번개 */
}
body.site-ev .qa-list {
  padding: 4px 20px;
  border: 0;
  border-radius: 18px;
  background: var(--bg-soft);
  box-shadow: none;
}
body.site-ev .qa-item {
  --lvl: 25%;
  position: relative;
  padding: 18px 0 18px 42px;
  border-bottom: 1px solid var(--line);
}
body.site-ev .qa-item:nth-child(4n+2) { --lvl: 50%; }
body.site-ev .qa-item:nth-child(4n+3) { --lvl: 75%; }
body.site-ev .qa-item:nth-child(4n)   { --lvl: 100%; }
/* 세로 배터리: 몸통(테두리 + 채움) · 위 단자는 box-shadow 로 */
body.site-ev .qa-item::before {
  content: "";
  position: absolute;
  left: 4px; top: 22px;
  width: 18px; height: 28px;
  border: 2.5px solid #16323a;
  border-radius: 4px;
  background: linear-gradient(to top, var(--charge) 0 var(--lvl), #fff var(--lvl));
}
body.site-ev .qa-item::after {
  content: "";
  position: absolute;
  left: 9px; top: 18px;
  width: 8px; height: 4px;
  border-radius: 2px 2px 0 0;
  background: #16323a;
}
body.site-ev .qa-item h2 { font-size: 17px; color: var(--fg); }
body.site-ev .qa-item h2::before { content: none; }
body.site-ev .qa-item p { padding-left: 0; color: var(--fg-soft); }

/* 지역 허브 질답(.qa-list 없이 바로 .qa-item) */
body.site-ev section.qa > .qa-item:first-child { border-top: 0; }

/* ── 지도·주변 ───────────────────────────────────────────────────────── */
body.site-ev .mapsec-head { font-size: 18px; font-weight: 700; }
body.site-ev .map-canvas,
body.site-ev .pano-canvas { border-radius: 18px; border: 2px solid var(--accent-line); }
body.site-ev .near { border-top: 2px dotted var(--accent-line); }
body.site-ev .near h2 {
  border-left: 0;
  padding-left: 0;
  font-size: 19px;
  font-weight: 700;
  color: var(--fg);
}
body.site-ev .near h2::before {
  content: "충전하는 동안";
  display: inline-block;
  margin-right: 8px;
  padding: 1px 9px;
  border-radius: 999px;
  background: var(--volt);
  color: #0f2a2e;
  font-size: 12.5px;
  vertical-align: 2px;
}
body.site-ev .near-block {
  padding: 4px 18px 16px;
  border-radius: 18px;
  background: var(--accent-wash);
  border: 1px solid var(--line);
}
body.site-ev .near > .near-block > p,
body.site-ev .near ul,
body.site-ev .near .more { padding-left: 0; }
body.site-ev .near li { padding: 3px 0; }
body.site-ev .dist {
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}

/* ── 목록: 충전 타일 ─────────────────────────────────────────────────── */
body.site-ev section.list > h2,
body.site-ev section.children > h2,
body.site-ev section.other-sites > h2 {
  font-size: 17px;
  font-weight: 700;
  color: var(--fg);
  border-bottom: 0;
  padding-bottom: 0;
}
body.site-ev .place-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
body.site-ev .place-list li:not(.ad-row) {
  position: relative;
  padding: 14px 14px 14px 62px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  background: #fff;
  align-content: start;
}
/* 콘센트 원형 아이콘(핀 셋) */
body.site-ev .place-list li:not(.ad-row)::before {
  content: "";
  position: absolute;
  left: 14px; top: 14px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 40%, #16323a 3px, transparent 3.5px),
    radial-gradient(circle at 66% 40%, #16323a 3px, transparent 3.5px),
    radial-gradient(circle at 50% 70%, #16323a 2.5px, transparent 3px),
    var(--accent-soft);
  box-shadow: inset 0 0 0 2.5px var(--accent);
}
body.site-ev .place-list li:not(.ad-row):hover { border-color: var(--charge); box-shadow: 0 0 0 3px rgba(31, 191, 91, .15); }
body.site-ev .place-list li > a { color: var(--fg); font-weight: 700; }
body.site-ev .place-list li.ad-row { grid-column: 1 / -1; padding: 0; border: 0; }
body.site-ev .cat {
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 600;
}

/* 지역·조건·다른 사이트: 충전 잔량 칩 */
body.site-ev .region-links { gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
body.site-ev .region-links li {
  position: relative;
  padding: 10px 14px 12px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
body.site-ev .region-links li::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 4px; width: 100%;
  background: linear-gradient(90deg, var(--charge) 0 60%, var(--line-soft) 60%);
}
body.site-ev .region-links li:nth-child(3n+2)::after { background: linear-gradient(90deg, var(--charge) 0 85%, var(--line-soft) 85%); }
body.site-ev .region-links li:nth-child(3n)::after { background: linear-gradient(90deg, var(--charge) 0 40%, var(--line-soft) 40%); }
body.site-ev .region-links li:hover { border-color: var(--accent); background: var(--accent-wash); }
body.site-ev .region-links li > a { color: var(--fg); }
body.site-ev .count { color: var(--accent); font-weight: 500; }

/* 홈: 충전 시작 버튼 */
body.site-ev .menu-cards { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
body.site-ev .menu-cards li {
  padding: 26px 22px;
  border: 0;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--accent), #0b9a6e);
  box-shadow: 0 10px 22px rgba(10, 124, 134, .25);
}
body.site-ev .menu-cards li:hover { filter: brightness(1.07); background: linear-gradient(135deg, var(--accent), #0b9a6e); }
body.site-ev .menu-cards li > a { color: #fff; font-size: 24px; font-weight: 700; }
body.site-ev .menu-cards .count { color: var(--volt); font-size: 15px; }

/* ── 출처·삭제요청·바닥 ───────────────────────────────────────────────── */
body.site-ev .removal {
  border: 2px solid var(--accent-line);
  border-radius: 20px;
  background: var(--accent-wash);
  box-shadow: none;
}
body.site-ev .removal::before { background: var(--accent-soft); }
body.site-ev .removal-icon { border-radius: 50%; background: #0f2a2e; color: var(--volt); }
body.site-ev .btn-removal { background: var(--accent); box-shadow: none; }
body.site-ev .btn-removal:hover { background: var(--accent-strong); }

body.site-ev .site-foot {
  margin-top: 30px;
  padding-top: 18px;
  padding-bottom: 40px;
  border-top: 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

@media (max-width: 600px) {
  body.site-ev .site-head { padding: 16px 16px 24px; }
  body.site-ev .brand { font-size: 18px; }
  body.site-ev main { border-width: 6px; border-radius: 20px; margin-inline: 8px; padding-inline: 14px; }
  body.site-ev h1 { font-size: 25px; }
  body.site-ev .summary th { width: 84px; }
  body.site-ev .qa-list { padding: 2px 14px; }
  body.site-ev .place-list { grid-template-columns: 1fr; }
  body.site-ev .region-links { grid-template-columns: 1fr 1fr; }
  body.site-ev .near-block { padding: 2px 14px 14px; }
}

/* ── 다크 모드: 야간 충전소 ──────────────────────────────────────────── */
@media (prefers-color-scheme: dark) {
  body.site-ev {
    --fg: #e4f3f4;
    --fg-soft: #b3cdd0;
    --muted: #86a2a6;
    --line: #25434a;
    --line-soft: #1c353b;
    --bg: #11262a;
    --bg-soft: #162f34;
    --accent: #3cc3cf;
    --accent-strong: #7fdde5;
    --accent-soft: #143a40;
    --accent-wash: #132d32;
    --accent-line: #2a5a62;
    background: #0a181b;
  }
  body.site-ev .site-head { background: #0f2226; box-shadow: inset 0 -4px 0 #1f8f4a; }
  body.site-ev .brand a { border-color: #b3cdd0; background: linear-gradient(90deg, #1f8f4a 0 78%, #0f2226 78%); color: #fff; }
  body.site-ev .brand a::after { background: #b3cdd0; }
  body.site-ev main { background: #11262a; border-color: #050c0e; }
  body.site-ev .qa-item::before { border-color: #b3cdd0; background: linear-gradient(to top, var(--charge) 0 var(--lvl), #11262a var(--lvl)); }
  body.site-ev .qa-item::after { background: #b3cdd0; }
  body.site-ev .place-list li:not(.ad-row),
  body.site-ev .region-links li,
  body.site-ev .btn-phone,
  body.site-ev .site-search input[type="search"],
  body.site-ev .site-head nav a::before { background-color: #11262a; }
  body.site-ev .site-head nav a { color: var(--accent-strong); }
  body.site-ev .site-head nav a.on,
  body.site-ev .site-head nav a:hover { color: #06262b; }
  body.site-ev .place-list li:not(.ad-row)::before {
    background:
      radial-gradient(circle at 34% 40%, #e4f3f4 3px, transparent 3.5px),
      radial-gradient(circle at 66% 40%, #e4f3f4 3px, transparent 3.5px),
      radial-gradient(circle at 50% 70%, #e4f3f4 2.5px, transparent 3px),
      var(--accent-soft);
  }
}

/* 띄어쓰기 없는 긴 이름(예: 기관명 30자)이 좁은 화면에서 가로 스크롤을 만들지 않게 */
body.site-ev .place-list li > a,
body.site-ev .near li > a,
body.site-ev h1 { min-width: 0; overflow-wrap: anywhere; }
