/* 김포아이 (gimpoi.com) - 김포 생활 정보. 한강 하구의 물빛(teal)과 김포평야의 노을(orange). Pretendard.
   Tokens use html:root so they win over the shared site CSS that loads after this file. */
html:root {
  --bg: #eef3f4; --surface: #ffffff; --text: #17262c; --muted: #56676d; --line: #d3dee1;
  --accent: #0e6e86; --on-accent: #ffffff; --warm: #d9772b; --tint: #e1ecee;
}
@media (prefers-color-scheme: dark) {
  html:root {
    --bg: #0f1719; --surface: #172225; --text: #e2ecee; --muted: #9db0b5; --line: #29393d;
    --accent: #5fc0d6; --on-accent: #0f1719; --warm: #f0a061; --tint: #1c2a2d;
  }
}
/* 1040px like mainpage.co.kr's home (2026-10-18): wider margins so the AdSense side rail fits beside the page on laptops
   (at 1080px it covered the page on first load) */
body.gimpo header.site, body.gimpo main, body.gimpo footer { max-width: 1040px; }
body.gimpo h1 { letter-spacing: -0.03em; line-height: 1.2; text-wrap: balance; }
body.gimpo main > section { margin-top: var(--section-gap); }
body.gimpo main > section.hero { margin-top: 0; }
/* ── 간격 규칙 (2026-11-27 사용자: "제목과 본문·소제목 여백을 규칙으로, 모든 페이지 일관성") ──────────────
   --title-gap  칸 제목(h2) → 바로 아래 내용        12px
   --desc-gap   칸 제목 → 설명 한 줄(.fine 등)       4px,  설명 → 내용 --body-gap 16px
   --sub-gap    작은 제목(h3, 안내·출처 상자 제목) → 내용  8px
   --head-gap   제목 줄(제목 + 오른쪽 버튼, .sec-head) 안 간격 12px, 제목과 버튼은 세로 가운데 정렬
   --section-gap 칸 ↔ 칸 48px (홈 v3 처럼 위 줄이 있는 칸은 padding 으로 같은 값)
   새 화면도 이 변수만 쓴다 (px 숫자 직접 금지) - scripts/design_qa 가 제목 아래 간격·제목 줄 정렬을 검사한다. */
body.gimpo { --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px; --sp-6: 32px; --sp-7: 48px;
  --title-gap: var(--sp-3); --desc-gap: var(--sp-1); --body-gap: var(--sp-4); --sub-gap: var(--sp-2); --head-gap: var(--sp-3); --section-gap: var(--sp-7); }
/* 기본 제목 규칙: 우선순위 (0,1,1) = 사이트 기본 h2(40px 위 여백)는 이기고, 뒤에 선언된 칸·부품 규칙(.x h2)에는 진다 (예전 body.gimpo h2 는 (0,1,2)라 제목 줄 margin 0 을 덮어 어긋났다) */
body.gimpo :where(h2) { font-size: 1.3rem; margin: 0 0 var(--title-gap); }
.tag { color: var(--accent); font-weight: 700; font-size: 0.82rem; }
.eyebrow { color: var(--accent); font-weight: 800; margin: 0 0 8px; }
.lead { color: var(--muted); line-height: 1.75; }
.fine { color: var(--muted); font-size: 0.82rem; }
.more { margin: 14px 0 0; text-align: right; }
.more a { font-weight: 700; color: var(--accent); text-decoration: none; }
.more a:hover { text-decoration: underline; }

/* hero: message on top, then boxes left and photo slides right */
/* 2026-10-28 user decision: the eyebrow, h1 and lead span the full width on top, so "김포에서 오늘 뭐 할까?" fits on
   one line at the same size; below them .hero-cols keeps the two columns (boxes left, photo card right) whose tops
   line up (2026-10-25). minmax(0, ...) keeps a wide child (the search input) from widening the column. */
.hero.split { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 22px; align-items: start; padding: 20px 0 6px; }
.hero.split .hero-text { min-width: 0; }
.hero.split .hero-text .lead { margin-bottom: 0; max-width: 40em; text-wrap: pretty; }
/* 2026-10-28 사용자 요청: PC 에서는 설명도 한 줄로 (폭 제한 없음). 휴대폰·태블릿은 위 40em 그대로 자연스럽게 줄바꿈. */
@media (min-width: 1100px) { .hero.split .hero-text .lead { max-width: none; } }
.hero-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); column-gap: 48px; align-items: start; min-width: 0; }
.hero.split .hero-tools { min-width: 0; }
.hero.split .hero-tools .g-stats { margin-top: 0; }
@media (max-width: 860px) {
  .hero-cols { grid-template-columns: minmax(0, 1fr); row-gap: 22px; }
}
/* Size as the page shows it today (the shared ".hero h1" clamp(2rem, 6.2vw, 3.4rem) loads after this file and won),
   except below 390px where it follows the screen width so the default title stays on one line at 360px
   even before Pretendard arrives (a wider fallback font: about 9.8em). 320px and narrower may wrap to two lines.
   No nowrap: hero_title can be changed (sb._home_text), and a longer one wraps to balanced lines. */
body.gimpo .hero h1 { font-size: max(1.75rem, min(8.21vw, 2rem), min(6.2vw, 3.4rem)); max-width: none; margin: 0 0 14px; }
.g-stats { list-style: none; padding: 0; margin: 22px 0 18px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.g-stats li { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.g-stats a { display: block; height: 100%; padding: 12px 14px; border-radius: inherit; color: var(--text); text-decoration: none; }   /* 2026-10-29: 카드 전체가 링크 */
.g-stats li:has(a:hover), .g-stats li:has(a:focus-visible) { border-color: var(--accent); }
.g-stats a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.g-stats span { display: block; font-size: 1.25rem; margin-bottom: 4px; }
.g-stats b { font-size: 1.5rem; font-variant-numeric: tabular-nums; margin-right: 2px; }
.g-stats small { display: block; color: var(--muted); font-size: 0.8rem; margin-top: 2px; }
.g-go { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.g-go a { display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 10px 14px; border-radius: 14px; background: var(--surface);
  border: 1px solid var(--line); color: var(--text); font-weight: 700; text-decoration: none; }
.g-go a:hover { border-color: var(--accent); }
.g-go span { font-size: 1.3rem; }
.g-go a { white-space: nowrap; min-width: 0; }
@media (max-width: 420px) {
  .g-go a { gap: 5px; padding: 10px 9px; font-size: clamp(0.74rem, 3.7vw, 1rem); letter-spacing: -0.03em; }
  .g-go span { font-size: 1.05rem; flex: none; }
}
.hero-pick { min-width: 0; background: var(--surface); border-radius: 18px; padding: 12px; box-shadow: 0 12px 32px rgba(14, 50, 60, .12); }
.hs-track { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 100%;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; border-radius: 12px; }
.hs-track::-webkit-scrollbar { display: none; }
.hs { scroll-snap-align: start; scroll-snap-stop: always; min-width: 0; }   /* 2026-11-27 사용자: 세게 밀어도 한 장씩 */
.hs a { display: grid; gap: 6px; color: var(--text); text-decoration: none; }
.hero-pick .thumb { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--tint); }
.hero-pick .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hcredit { position: absolute; right: 8px; bottom: 6px; color: #fff; font-size: 0.68rem; text-shadow: 0 1px 3px rgba(0, 0, 0, .7); }
.hero-pick .tag { margin: 10px 6px 0; }
.hero-pick strong { margin: 0 6px 2px; font-size: 1.15rem; }
.hs-route { margin: 0 6px 2px; color: var(--muted); font-size: 0.86rem; line-height: 1.45; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hs-all { margin: 4px 6px 0; text-align: right; font-size: 0.86rem; }
.hs-all a { color: var(--accent); font-weight: 700; text-decoration: none; }
.hs-dots { display: flex; justify-content: center; gap: 4px; margin-top: 8px; }
.hs-dots button { width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.hs-dots button::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--line); transition: width .2s, background .2s; }
.hs-dots button[aria-selected="true"]::before { width: 22px; background: var(--accent); }

/* place and restaurant cards */
.pcs { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.pc { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.pc .thumb { aspect-ratio: 16 / 10; background: var(--tint); }
.pc .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pc .noimg { display: grid; place-items: center; font-size: 2rem; }
.pc-body { display: grid; gap: 4px; padding: 12px 14px 14px; align-content: start; flex: 1; }
.pc-body strong { font-size: 1.08rem; line-height: 1.35; }
.addr { color: var(--muted); font-size: 0.85rem; }
.pc dl { display: grid; grid-template-columns: 5em 1fr; gap: 2px 10px; margin: 6px 0 0; font-size: 0.86rem; }
.pc dt { color: var(--muted); }
.pc dd { margin: 0; overflow-wrap: anywhere; }
.links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.links a { font-size: 0.84rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--accent);
  text-decoration: none; background: var(--bg); }
.links a:hover { border-color: var(--accent); }

/* events */
.evs { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ev { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 10px; align-items: start; }
.ev img { width: 120px; height: 90px; object-fit: cover; border-radius: 10px; display: block; }
.ev > div { display: grid; gap: 3px; }
.ev-date { margin: 0; font-weight: 700; color: var(--accent); font-size: 0.88rem; }
.ev-date b { background: var(--warm); color: #fff; font-size: 0.72rem; padding: 2px 8px; border-radius: 999px; margin-left: 4px; }
.ev strong { font-size: 1.02rem; }
.evs.compact { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
@media (max-width: 480px) { .ev { grid-template-columns: 88px minmax(0, 1fr); } .ev img { width: 88px; height: 70px; } }

/* chips */
.chips ul { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 8px 16px; border-radius: 999px; background: var(--surface);
  border: 1px solid var(--line); color: var(--text); font-weight: 700; text-decoration: none; }
.chips a:hover { border-color: var(--accent); }
.chips small { color: var(--muted); font-weight: 600; }

/* weather and holidays (same markup as tourpia; filled by assets/weather.js) */
/* 3일 날씨: mainpage.co.kr 크기의 가로 카드 (2026-10-16 user request - the tall cards took too much room) */
.wx-list { list-style: none; margin: 8px 0 6px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.wx-list li { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; column-gap: 8px; row-gap: 0;
  padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); line-height: 1.3; }
.wx-list li > .wx-day { grid-column: 1; grid-row: 1 / span 4; font-weight: 700; font-size: 0.92rem; color: var(--accent); white-space: nowrap; }
.wx-day small { display: block; font-weight: 400; color: var(--muted); font-size: 0.72rem; }
.wx-list svg { grid-column: 2; grid-row: 1 / span 4; width: 30px; height: 30px; color: var(--muted); }
.wx-list li > span:not(.wx-day) { grid-column: 3; min-width: 0; }
.wx-sun svg { color: var(--warm); }
.wx-rain svg, .wx-snow svg { color: #3d6fb4; }
.wx-cond { font-size: 0.85rem; color: var(--muted); }
.wx-temp { font-variant-numeric: tabular-nums; font-size: 0.92rem; color: var(--muted); }
.wx-temp b { color: var(--accent); font-size: 0.95rem; }
.wx-pop, .wx-note { font-size: 0.75rem; color: var(--muted); }
@media (max-width: 640px) {
  .wx-list { gap: 6px; }
  .wx-list li { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 8px 4px; }
  .wx-list li > .wx-day, .wx-list svg, .wx-list li > span:not(.wx-day) { grid-column: 1; grid-row: auto; }
  .wx-list svg { width: 26px; height: 26px; }
}
.lw { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 10px; }
.lw li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 10px; padding: 14px 16px; border: 1px solid var(--line);
  border-radius: 12px; background: var(--surface); border-top: 4px solid var(--warm); }
.lw strong { font-size: 1.05rem; }
.lw-days { font-weight: 800; color: var(--warm); }
.lw small { grid-column: 1 / -1; color: var(--muted); }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
/* fixed photo frames and long opening-hours text kept short (2026-10-06) */
.pc .thumb { position: relative; overflow: hidden; flex: none; }
.pc .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pc dd { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ev img { flex: none; }
/* area pages (2026-10-15) */
.dist { font-size: 0.84rem; font-weight: 700; color: var(--accent); }
h2 small { color: var(--muted); font-weight: 600; font-size: 0.8em; margin-left: 4px; }
.chips a[aria-current="page"] { border-color: var(--accent); background: var(--tint); }
.ev.noimg { grid-template-columns: minmax(0, 1fr); }
/* home hero on a 김포 landmark photo (2026-10-16) - dark wash on the text side so white text stays readable */
.hero.split.has-bg { position: relative; isolation: isolate; overflow: hidden; border-radius: 22px; padding: 40px 32px 52px; margin-top: 8px; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero.has-bg::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(6, 22, 28, .86) 0%, rgba(6, 22, 28, .62) 50%, rgba(6, 22, 28, .28) 100%); }
.hero.has-bg h1 { color: #fff; }
.hero.has-bg .eyebrow { color: #9fe3f0; }
.hero.has-bg .lead { color: rgba(255, 255, 255, .9); }
/* ".hero .hero-bgcredit": the base ".hero p" (1.1rem, muted grey, 34em) outranked a bare class and made the credit
   big, grey and two lines over the buttons (2026-10-18 user report) - small, white, one line */
.hero .hero-bgcredit { position: absolute; left: 32px; right: 32px; bottom: 14px; margin: 0; max-width: none;
  color: rgba(255, 255, 255, .92); font-size: 0.68rem; line-height: 1.4; letter-spacing: -0.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 2px rgba(0, 0, 0, .75); }
@media (max-width: 860px) {
  .hero.split.has-bg { padding: 28px 16px 44px; border-radius: 18px; }
  .hero.has-bg::before { background: linear-gradient(180deg, rgba(6, 22, 28, .84) 0%, rgba(6, 22, 28, .7) 55%, rgba(6, 22, 28, .5) 100%); }
  /* phone: the photo card reaches the bottom, so the credit leaves its absolute spot and sits under the card
     (2026-10-17 user report: it overlapped the card on mobile) */
  .hero.split.has-bg { padding-bottom: 16px; }
  .hero .hero-bgcredit { position: static; order: 1; margin-top: -12px; font-size: 0.6rem; line-height: 1.5; white-space: normal; }
}

/* 김포 산 나들이 (/mountain/) */
.gimpo h3 { font-size: 1.02rem; margin: 22px 0 10px; }
.mt-quote { margin: 12px 0 6px; padding: 14px 16px; background: var(--tint); border-left: 4px solid var(--accent); border-radius: 0 10px 10px 0; }
.mt-quote p { margin: 0 0 8px; line-height: 1.75; }
.mt-quote footer { margin-top: 10px; }
.cta { margin: 28px 0 8px; text-align: center; }
.cta .btn { display: inline-block; padding: 12px 22px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 700; text-decoration: none; }
.cta .btn:hover { filter: brightness(1.08); }

/* 착한가격업소 (/good-price/, area pages, events; 2026-10-18): menu left, price right */
.pc.gp .tag { color: #b3261e; font-weight: 700; }
.pc.gp dl { grid-template-columns: minmax(0, 1fr) auto; }
.pc.gp dt { color: var(--text, inherit); overflow-wrap: anywhere; }
.pc.gp dd { text-align: right; font-weight: 700; white-space: nowrap; }
.ev-gp { margin: 6px 0 0; font-size: 0.86rem; overflow-wrap: anywhere; }
.ev-gp b { color: #b3261e; margin-right: 4px; }
.gp-ask { margin-top: 24px; padding: 14px 16px; border: 1px dashed currentColor; border-radius: 12px; }
.gp-ask h2 { margin-top: 0; }
.ws-ask { margin-top: 24px; padding: 16px 18px; border: 1px solid var(--accent); border-radius: 14px; background: var(--surface); }
.ws-ask h2 { margin-top: 0; }
.ws-ask .cta { margin: 12px 0 0; }
.ws-perks { margin: .4rem 0 .8rem; padding-left: 1.3rem; line-height: 1.7; }
.ws .pc-body > .fine { margin: .5rem 0 0; }
/* 새로 문 연 가게 (/new-shops/, area pages; 2026-10-18) */
.pc.ns .tag { color: #0b6e4f; font-weight: 700; }
.ns-date { font-size: 0.86rem; color: var(--muted); }

/* place pages and card additions (2026-10-20) */
.pc .sum { margin: 4px 0 0; font-size: 0.9rem; line-height: 1.55; }
.pc:target { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.pc.solo { max-width: 640px; }
.ph { margin: 12px 0 18px; }
.ph img { display: block; width: 100%; max-width: 820px; height: auto; border-radius: 14px; background: var(--tint); }
.ph figcaption { color: var(--muted); font-size: 0.8rem; margin-top: 6px; }
.ov { max-width: 68ch; }
.ov p { margin: 0 0 10px; line-height: 1.75; }
/* place pages: nearby 착한가격업소 / 맛집·카페 / 가볼 곳 as photo cards (2026-10-21) */
.ncs { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.ncs li { display: flex; }
.nc { display: flex; flex-direction: column; width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; color: var(--text); text-decoration: none; transition: border-color .15s, transform .15s, box-shadow .15s; }
.nc:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(14, 50, 60, .1); }
.nc-ph { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--tint); overflow: hidden; flex: none; }
.nc-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nc-ph.noimg { display: grid; place-content: center; justify-items: center; gap: 4px; font-size: 2rem; }
.nc.gp .nc-ph.noimg { background: color-mix(in srgb, #b3261e 9%, var(--surface)); }
.nc-ph.noimg small { font-size: 0.8rem; font-weight: 800; color: #b3261e; }
.nc-body { display: grid; gap: 4px; padding: 10px 12px 12px; align-content: start; flex: 1; }
.nc-body strong { font-size: 1rem; line-height: 1.35; }
.nc.gp .tag { color: #b3261e; }
.nc-sum { font-size: 0.86rem; line-height: 1.5; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nc-menu { display: flex; justify-content: space-between; gap: 8px; font-size: 0.86rem; }
.nc-menu span { overflow-wrap: anywhere; }
.nc-menu b { white-space: nowrap; }
.nc .dist { margin-top: 2px; }
@media (max-width: 560px) {   /* phones: photo left, text right, so three cards fit on about one screen */
  .ncs { gap: 10px; }
  .nc { flex-direction: row; }
  .nc-ph { width: 116px; aspect-ratio: auto; min-height: 112px; }
  .nc-ph.noimg { font-size: 1.6rem; }
  .nc-ph.noimg small { font-size: 0.7rem; }
  .nc-body { padding: 10px 12px; min-width: 0; }
}
@media (prefers-color-scheme: dark) { .nc.gp .tag, .nc-ph.noimg small { color: #f2938c; } }
.ov p { text-wrap: pretty; }
.more a { font-weight: 700; color: var(--accent); }

/* 주제별 가게 모음 (/eat/<slug>/, 2026-10-22): the reason a shop is listed, the source of every value */
.pk-preview { margin: 10px 0 14px; padding: 10px 14px; border-radius: 10px; background: color-mix(in srgb, var(--warm) 14%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--warm) 45%, transparent); font-size: 0.9rem; font-weight: 700; }
.pk-criteria { margin: 22px 0 20px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.pk-criteria h2 { font-size: 1.05rem; margin: 0 0 var(--sub-gap); }
.pk-criteria ul { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; line-height: 1.6; font-size: 0.92rem; }
.pc.pk .pc-body { gap: 6px; }
.pk-why { margin: 2px 0 0; padding: 8px 10px; border-radius: 10px; background: var(--tint); font-size: 0.9rem; line-height: 1.5; overflow-wrap: anywhere; }
.pk-why b { color: var(--accent); margin-right: 4px; }
.pk-from { margin: 2px 0 0; color: var(--muted); font-size: 0.8rem; line-height: 1.5; overflow-wrap: anywhere; }
.pc.pk dl { grid-template-columns: 5.2em minmax(0, 1fr); gap: 6px 10px; }
.pc.pk dd { display: block; -webkit-line-clamp: unset; overflow: visible; overflow-wrap: anywhere; line-height: 1.5; }
.src { color: var(--muted); font-size: 0.74rem; font-weight: 600; }
.links a.src-btn { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.links a.fix { color: var(--muted); border-style: dashed; }
.pk-src ul { margin: 0 0 6px; padding-left: 1.2em; line-height: 1.7; font-size: 0.92rem; }
.pk-nav { margin-top: 28px; }
@media (max-width: 560px) {
  .pc.pk dl { grid-template-columns: 1fr; gap: 0; }
  .pc.pk dt { margin-top: 6px; font-size: 0.78rem; }
  .links a { min-height: 40px; display: inline-flex; align-items: center; }
}

/* 수정 제보 모달 (assets/feedback-modal.js) */
dialog.fb-modal { width: min(560px, calc(100vw - 24px)); height: min(720px, calc(100dvh - 32px)); padding: 0; border: 0;
  border-radius: 16px; background: var(--surface); color: var(--text); box-shadow: 0 18px 50px rgba(0,0,0,.28); overflow: hidden; }
dialog.fb-modal[open] { display: flex; flex-direction: column; }
dialog.fb-modal::backdrop { background: rgba(10, 20, 24, .55); }
.fb-bar { display: flex; align-items: center; justify-content: space-between; padding: 10px 10px 10px 18px; border-bottom: 1px solid var(--line); }
.fb-x { width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--text); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.fb-x:hover { background: var(--tint); }
.fb-body { position: relative; flex: 1; min-height: 0; }
.fb-body iframe { width: 100%; height: 100%; border: 0; display: block; background: #f8f9fa; opacity: 0; }
.fb-body.loaded iframe { opacity: 1; }
.fb-wait { position: absolute; inset: 0; margin: 0; display: grid; place-items: center; color: var(--muted); }
.fb-body.loaded .fb-wait { display: none; }

/* 블로그 후기 근거 (/eat/<slug>/ ranked by recent posts, cloud_plan.md C6) */
.pk-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pk-head strong { min-width: 0; overflow-wrap: anywhere; }
.pk-rank { flex: none; display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 6px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); font-weight: 800; font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.pk-buzz { margin: 2px 0 0; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); }
.pk-count { margin: 0; font-size: 0.92rem; line-height: 1.5; }
.pk-count b { color: var(--warm); font-size: 1.05rem; }
.pk-count span { color: var(--muted); font-size: 0.82rem; }
.pk-posts { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; font-size: 0.86rem; line-height: 1.45; }
.pk-posts li { display: flex; gap: 8px; align-items: baseline; min-width: 0; }
.pk-posts a { flex: 1; min-width: 0; color: var(--text); text-decoration: underline; text-decoration-color: var(--line);
  text-underline-offset: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-posts a:hover { text-decoration-color: var(--accent); }
.pk-posts time { flex: none; color: var(--muted); font-size: 0.78rem; font-variant-numeric: tabular-nums; }
.pk-more { display: inline-block; margin-top: 8px; font-size: 0.84rem; font-weight: 700; color: var(--accent); text-decoration: none; }
.pk-more::after { content: " ›"; }
.pk-more:hover { text-decoration: underline; }
@media (max-width: 560px) {
  .pk-posts a { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .pk-posts li { padding: 2px 0; }
  .pk-more { min-height: 40px; display: inline-flex; align-items: center; margin-top: 2px; }
}

/* 김포 가게 이야기 /review/<id>/ (src/gimpo/review_pages.py, 2026-10-23) */
.rv-note { margin: 12px 0 18px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); border-left: 4px solid var(--warm);
  background: var(--surface); }
.rv-note p { margin: 0; font-size: 0.92rem; line-height: 1.6; }
.rv-note p:first-child { font-weight: 700; }
.rv-note p + p { margin-top: 4px; font-weight: 400; color: var(--muted); }
.rv-body { line-height: 1.8; overflow-wrap: anywhere; }
.rv-body h2 { margin-top: 28px; }
.rv-body ul { padding-left: 1.2em; }
.rv-ph { margin: 18px 0; }
.rv-ph img { display: block; width: 100%; height: auto; border-radius: 12px; background: var(--tint); }
.rv-ph figcaption { margin-top: 6px; color: var(--muted); font-size: 0.84rem; }
.rv-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.rv-gallery .rv-ph { margin: 0; }
.rv-badge { display: inline-block; margin: 4px 0; padding: 2px 8px; border-radius: 999px; background: var(--tint); color: var(--accent);
  font-size: 0.78rem; font-weight: 700; width: fit-content; }
.rv-card strong a { color: var(--text); text-decoration: none; }
.rv-card strong a:hover { color: var(--accent); text-decoration: underline; }
.rv-src ul { padding-left: 1.2em; font-size: 0.88rem; line-height: 1.7; }

/* 김포 장터·행사 지도 /market/ (2026-10-24) */
.mk-today { background: #f3faf9; border-radius: 12px; padding: 12px 16px; }
.mk-on { font-size: 1.05rem; margin: .25rem 0; }
.mk-week { list-style: none; padding: 0; margin: .5rem 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.mk-week li { border: 1px solid var(--line); border-radius: 8px; padding: 6px 4px; font-size: .85rem; min-width: 0; overflow-wrap: anywhere; }
.mk-week li.today { border-color: #0b6e7f; background: color-mix(in srgb, #0b6e7f 8%, var(--surface)); }
.mk-week b { display: block; text-align: center; }
.mk-week b small { display: block; font-weight: normal; color: var(--muted); }
.mk-week span { display: block; margin-top: 4px; text-align: center; }   /* 2026-11-27 사용자: 장 이름도 날짜처럼 가운데 */
.mk-week .none { color: var(--muted); text-align: center; }
@media (max-width: 560px) {
  .mk-week { grid-template-columns: 1fr; }
  .mk-week li { display: flex; gap: 8px; flex-wrap: wrap; align-items: baseline; }
  .mk-week b { text-align: left; min-width: 4.5em; }
  .mk-week b small { display: inline; margin-left: 4px; }
  .mk-week span { margin-top: 0; text-align: left; }   /* 휴대폰은 한 줄 목록이라 왼쪽 그대로 */
}
.mk-mapwrap { margin: 1rem 0; }
.mk-map { height: 420px; border-radius: 12px; z-index: 0; }
.mk-legend .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin: 0 4px 0 8px; vertical-align: middle; }
.mk-legend .dot.market { background: #0b6e7f; }
.mk-legend .dot.event { background: #e8710a; }
.mk-pop strong { display: block; margin-bottom: 4px; }
.mk-pop-links a { margin-right: 8px; }
.mk-src { margin: .4rem 0 0; }
.mk-near { margin: .6rem 0 0; padding: 10px 12px; border-radius: 10px; background: var(--bg); }
.mk-near b { display: block; font-size: .9rem; margin-bottom: 4px; }
.mk-near ul { list-style: none; margin: 0; padding: 0; }
.mk-near li { padding: 3px 0; overflow-wrap: anywhere; }
.mk-near small { color: var(--muted); }
.mk-ev .ev-date { display: block; font-weight: 600; }
/* 김포시 선정 김포맛집 badge (2026-10-25) */
.city-pick { display: inline-flex; align-items: center; gap: 4px; width: fit-content; margin: 4px 0 2px; padding: 3px 9px; border-radius: 999px;
  background: #fff4d6; color: #7a4b00; border: 1px solid #f0d48a; font-size: 0.78rem; font-weight: 700; text-decoration: none; }
.city-pick:hover { border-color: #c9952b; }
h1 + .city-pick { margin: 0 0 12px; font-size: 0.85rem; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .city-pick { background: #3a2c0c; color: #ffd98a; border-color: #6b5320; } }
:root[data-theme="dark"] .city-pick { background: #3a2c0c; color: #ffd98a; border-color: #6b5320; }
/* 김포 가게·장소 찾기 /search/ (2026-10-25) */
.sr-mini { display: flex; gap: 8px; margin: 12px 0 4px; }
.sr-mini input, .sr-form input { flex: 1; min-width: 0; width: 0; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font: inherit; font-size: 1rem; }
.sr-mini button { flex: none; padding: 0 16px; border-radius: 12px; border: 0; background: var(--accent); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.sr-form { margin: 14px 0 8px; display: flex; }
.sr-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.sr-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.sr-chips button { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-size: 0.85rem; cursor: pointer; }
.sr-chips button:hover { border-color: var(--accent); }
.sr-count { color: var(--muted); font-size: 0.9rem; min-height: 1.2em; }
.pc.sr a.thumb { display: block; }
/* 공영주차장에 대고 걸어서 갈 곳 (/parking/<slug>/, 2026-10-25): a plain list, name first, kind and distance under it */
.pk-list { list-style: none; padding: 0; margin: 10px 0 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.pk-list li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px 14px; border-top: 1px solid var(--line); }
.pk-list li:first-child { border-top: 0; }
.pk-list strong { font-weight: 700; }
.pk-list .kind { grid-column: 1; color: var(--muted); font-size: 0.82rem; }
.pk-list .dist { grid-column: 2; grid-row: 1 / span 2; align-self: center; white-space: nowrap; color: var(--muted); font-size: 0.82rem; }
.pk-list a { color: var(--text); text-decoration: none; }
.pk-list a:hover strong { text-decoration: underline; }

/* 장날 나들이 운영자 사진 모음 (market_outing.py, 2026-10-27) */
.mo-photos { margin: 14px 0 0; }
.mo-photos ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 140px), 1fr)); gap: 8px; }
.mo-photos li a { display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--tint); border: 1px solid var(--line); }
.mo-photos img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mo-photos figcaption { margin-top: 6px; }
@media (max-width: 520px) { .mo-photos ul { grid-template-columns: repeat(3, 1fr); gap: 6px; } }
.pc.mo-info dl { grid-template-columns: max-content minmax(0, 1fr); }
.pc.mo-info dt { white-space: nowrap; }
.mk-legend .dot.pick { background: #b3261e; }
.mk-legend .dot.cafe { background: #7b4f2c; }
.mk-legend .dot.old { background: #5b5fc7; }
@media (max-width: 520px) { .mk-map.mo-map { height: 340px; } }
.mk-legend .dot.parking { background: #e6007e; width: 12px; height: 12px; }

/* 김포 하루 일정 만들기 /course/make/ (planner.py + planner.js, 2026-10-27) */
/* 2026-10-27 레이아웃: 휴대폰은 위 지도 + 아래로 겹쳐 올라오는 판, 900px 넘으면 왼쪽 지도 고정 + 오른쪽 판 */
.pl-app[hidden], .pl-sheet { display: none; }
.pl-lead { margin: 0; line-height: 1.6; }
.pl-app { --pl-pin: #d63c31; --pl-pin-ink: #ffffff; color-scheme: light dark; margin-top: 18px; }
@media (prefers-color-scheme: dark) { .pl-app { --pl-pin: #ef6157; --pl-pin-ink: #1b0b09; } }
.pl-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pl-app h2 small { color: var(--muted); font-size: 0.875rem; font-weight: 700; margin-left: 4px; }
.pl-app .fine { font-size: 0.875rem; }
.pl-k { display: block; color: var(--muted); font-size: 0.875rem; font-weight: 600; line-height: 1.4; }
.pl-layout { display: grid; grid-template-columns: minmax(0, 1fr); }
/* 지도: 휴대폰은 화면 폭 가득 (main 의 16px 여백만큼 밖으로) */
.pl-mapbox { margin: 0 -16px; min-width: 0; }
.pl-mapbox[hidden] { display: none; }
.pl-osm { display: none; }   /* 휴대폰: 지도 안의 출처 표시 (Leaflet) 로 충분, 판이 이 줄을 덮는다 */
.pl-map-wrap { position: relative; }
.pl-map { height: clamp(260px, 42vh, 440px); z-index: 0; background: var(--tint); }
.pl-pin { display: grid !important; place-content: center; border-radius: 50%; background: var(--pl-pin); color: var(--pl-pin-ink); font-weight: 800;
  font-size: 0.9375rem; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.35); box-sizing: border-box; }
.pl-pin.flash { animation: pl-pop 0.5s ease 2; }
@keyframes pl-pop { 50% { transform: scale(1.35); } }
.leaflet-tooltip.pl-pin-label { background: #ffffff; color: #17262c; border: 0; border-radius: 8px; padding: 1px 8px; font: inherit;
  font-size: 0.875rem; font-weight: 700; box-shadow: 0 1px 5px rgba(0,0,0,.3); white-space: nowrap; }
.leaflet-tooltip.pl-pin-label::before { display: none; }
.leaflet-tooltip.pl-pin-label.start { color: #8a4410; }
.pl-pop strong { display: block; margin-bottom: 2px; font-size: 1rem; }
.pl-pop div { color: #56676d; font-size: 0.875rem; margin-bottom: 6px; }
.pl-pop .pl-btn { min-height: 40px; padding: 4px 12px; }
/* 판 (바텀시트 모양) */
.pl-panel { position: relative; z-index: 1; margin: -20px -16px 0; padding: 8px 16px 28px; background: var(--surface); min-width: 0;
  border-radius: 22px 22px 0 0; box-shadow: 0 -6px 18px rgba(14, 50, 60, .10); border-bottom: 1px solid var(--line); }
.pl-grip { display: block; width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 12px; }
.pl-app section { margin-top: 0; }
.pl-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 12px; }
.pl-when { min-width: 0; }
.pl-date { display: block; min-height: 44px; padding: 2px 0; border: 0; border-bottom: 2px solid var(--line); border-radius: 0; background: transparent;
  color: var(--text); font: inherit; font-size: 1.25rem; font-weight: 800; letter-spacing: -0.01em; max-width: 100%; }
.pl-date:focus-visible { outline: none; border-bottom-color: var(--accent); }
.pl-tools { display: flex; gap: 2px; }
.pl-tool { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 76px; min-height: 56px;
  padding: 4px 6px; border: 0; border-radius: 12px; background: transparent; color: var(--accent); font: inherit; font-size: 0.875rem;
  font-weight: 700; cursor: pointer; }
.pl-tool:hover { background: var(--tint); }
.pl-msg { margin: 6px 0 0; color: var(--accent); font-size: 0.875rem; font-weight: 600; }
.pl-msg:empty { margin: 0; }
.pl-share-out { display: grid; gap: 4px; margin-top: 8px; font-size: 0.875rem; color: var(--muted); }
.pl-share-out[hidden] { display: none; }
.pl-share-out input { width: 100%; box-sizing: border-box; min-height: 44px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg); color: var(--text); font: inherit; font-size: 0.875rem; }
.pl-seg { display: grid; grid-template-columns: 1fr 1fr; border: 0; padding: 0; margin: 14px 0 0; min-width: 0; }
.pl-seg label { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 0 12px; border: 1px solid var(--line);
  background: var(--surface); cursor: pointer; font-weight: 700; }
.pl-seg label:first-of-type { border-radius: 12px 0 0 12px; }
.pl-seg label:last-of-type { border-radius: 0 12px 12px 0; border-left: 0; }
.pl-seg label:has(input:checked) { background: var(--tint); border-color: var(--accent); color: var(--accent); }
.pl-seg label:last-of-type:has(input:checked) { box-shadow: -1px 0 0 var(--accent); }
.pl-seg input { accent-color: var(--accent); width: 18px; height: 18px; margin: 0; }
.pl-box { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 4px 8px 4px 16px; border: 1px solid var(--line);
  border-radius: 14px; background: var(--surface); min-width: 0; }
.pl-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 2px var(--tint); }
.pl-box .pl-k { flex: none; }
.pl-box select { flex: 1; min-width: 0; min-height: 46px; border: 0; background: transparent; color: var(--text); font: inherit;
  font-size: 1.0625rem; font-weight: 800; cursor: pointer; }
.pl-box select:focus-visible { outline: none; }
.pl-gps { margin: 6px 2px 0; }
.pl-btn { min-height: 44px; padding: 8px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text);
  font: inherit; font-weight: 700; font-size: 1rem; cursor: pointer; }
.pl-btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.pl-btn:disabled { opacity: 0.6; cursor: default; }
.pl-app button:focus-visible, .pl-app a:focus-visible, .pl-search input:focus-visible { outline: 3px solid var(--warm); outline-offset: 2px; }
/* 일정 머리줄 */
.pl-plan { margin-top: 18px !important; }
.pl-dayhead { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0 -16px; padding: 16px 8px 14px 16px; background: var(--tint); }
.pl-dayhead h2 { margin: 0; font-size: 1.125rem; }
.pl-dayhead-date { color: var(--muted); font-size: 1rem; font-weight: 600; }
.pl-dayhead-act { margin-left: auto; display: flex; align-items: center; }
.pl-text-btn { min-height: 44px; padding: 0 10px; border: 0; background: none; color: var(--accent); font: inherit; font-size: 1rem; font-weight: 700; cursor: pointer; }
.pl-text-btn + .pl-text-btn { position: relative; }
.pl-text-btn + .pl-text-btn::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 1px; background: var(--line); }
.pl-text-btn[aria-expanded="true"] { text-decoration: underline; text-underline-offset: 4px; }
.pl-text-btn[hidden] { display: none; }
.pl-starts { margin-top: 10px; padding: 4px 14px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
.pl-starts[hidden] { display: none; }
.pl-starts-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.pl-starts-list li { display: grid; gap: 4px; padding-top: 12px; border-top: 1px solid var(--line); min-width: 0; }
.pl-start-head { display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: baseline; }
.pl-start-stops { color: var(--muted); font-size: 0.875rem; overflow-wrap: anywhere; }
.pl-starts-list .pl-btn { justify-self: start; margin-top: 2px; }
.pl-empty { margin: 14px 0 0; color: var(--muted); background: var(--bg); border: 1px dashed var(--line); border-radius: 14px; padding: 14px 16px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.pl-empty p { flex: 1 1 14em; margin: 0; }
.pl-empty[hidden] { display: none; }
/* 타임라인: 왼쪽 세로선 + 번호 (지도 핀과 같은 번호·색) */
.pl-tl { position: relative; list-style: none; margin: 14px 0 0; padding: 0; }
.pl-tl:not(:empty)::before { content: ""; position: absolute; left: 15px; top: 20px; bottom: 30px; width: 2px; background: var(--line); }
.pl-tl > li { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 10px; min-width: 0; }
.pl-n { grid-column: 1; align-self: start; width: 32px; height: 32px; margin-top: 14px; border-radius: 50%; background: var(--pl-pin); color: var(--pl-pin-ink);
  display: grid; place-content: center; font-weight: 800; font-size: 0.9375rem; box-shadow: 0 0 0 4px var(--surface); position: relative; }
.pl-start-dot { grid-column: 1; justify-self: center; align-self: center; width: 16px; height: 16px; border-radius: 50%; background: #d9772b;
  box-shadow: 0 0 0 4px var(--surface); position: relative; }
.pl-origin-card { grid-column: 2; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 10px; padding: 10px 14px; border-radius: 14px; background: var(--bg); }
.pl-origin-card .pl-k { display: inline; }
.pl-tl > li.pl-tl-leg { align-items: center; }
.pl-card { grid-column: 2; display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 4px 12px; padding: 12px; min-width: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 2px 10px rgba(14, 50, 60, .07); }
.pl-tl-stop.flash .pl-card { animation: pl-ring 1.6s ease; }
@keyframes pl-ring { 0%, 60% { border-color: var(--pl-pin); box-shadow: 0 0 0 3px var(--pl-pin); } }
.pl-card-body, .pl-cand-body { display: grid; gap: 2px; min-width: 0; align-content: start; }
.pl-name { justify-self: start; padding: 0; margin: 0; border: 0; background: none; color: var(--text); font: inherit; font-size: 1.0625rem;
  font-weight: 800; line-height: 1.35; text-align: left; cursor: pointer; overflow-wrap: anywhere; }
.pl-name:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.pl-cand-name { font-size: 1.0625rem; line-height: 1.35; overflow-wrap: anywhere; }
.pl-sub { color: var(--muted); font-size: 0.875rem; overflow-wrap: anywhere; }
.pl-x { color: var(--muted); font-size: 0.875rem; line-height: 1.5; overflow-wrap: anywhere; }
.pl-x.on { color: var(--warm); font-weight: 700; }
.pl-x.pl-tr { color: var(--text); }
.pl-x.pl-from { color: var(--accent); font-weight: 600; }
.pl-x.pl-via { color: var(--accent); font-weight: 600; }   /* 구래역에서 버스 갈아타기 (src/gimpo/transfer.py) */
.pl-x.pl-via-note, .pl-x.pl-none { color: var(--muted); font-size: 0.8125rem; }
.pl-memo-sum { color: var(--accent); font-size: 0.875rem; font-weight: 700; overflow-wrap: anywhere; }
.pl-memo-sum[hidden] { display: none; }
.pl-links { display: flex; flex-wrap: wrap; gap: 0 14px; font-size: 0.875rem; }
.pl-links a { display: inline-flex; align-items: center; min-height: 32px; }
.pl-card-foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; margin-top: 6px; padding-top: 8px; border-top: 1px solid var(--line); }
.pl-mini { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text);
  font: inherit; font-size: 0.875rem; font-weight: 700; cursor: pointer; }
.pl-mini::after { content: " ▾"; color: var(--muted); }
.pl-mini[aria-expanded="true"] { border-color: var(--accent); background: var(--tint); color: var(--accent); }
.pl-mini[aria-expanded="true"]::after { content: " ▴"; }
.pl-ctl { margin-left: auto; display: flex; gap: 4px; }
.pl-icon { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text);
  font: inherit; font-size: 0.875rem; cursor: pointer; }
.pl-icon:disabled { opacity: 0.35; cursor: default; }
.pl-icon[data-act="del"] { color: #c0352b; }
@media (prefers-color-scheme: dark) { .pl-icon[data-act="del"] { color: #f2938c; } }
.pl-fields { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 10em) minmax(0, 1fr); gap: 8px; margin-top: 8px; }
.pl-fields[hidden] { display: none; }
@media (max-width: 480px) { .pl-fields { grid-template-columns: minmax(0, 1fr); } }
.pl-field { display: grid; gap: 4px; color: var(--muted); font-size: 0.875rem; font-weight: 600; min-width: 0; }
.pl-field input { min-height: 44px; width: 100%; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg);
  color: var(--text); font: inherit; font-size: 1rem; box-sizing: border-box; }
.pl-add { display: block; width: 100%; min-height: 52px; margin-top: 16px; border: 2px dashed var(--accent); border-radius: 14px; background: transparent;
  color: var(--accent); font: inherit; font-size: 1rem; font-weight: 800; cursor: pointer; }
.pl-add:hover { background: var(--tint); }
.pl-add[hidden] { display: none; }
/* 장소 추가 */
.pl-cands { margin-top: 30px !important; padding-top: 22px; border-top: 1px solid var(--line); scroll-margin-top: 12px; }
.pl-cands h2 { margin: 0 0 var(--title-gap); }
.pl-search { display: block; }
.pl-search input { width: 100%; box-sizing: border-box; min-height: 48px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--bg); color: var(--text); font: inherit; font-size: 1rem; }
.pl-kinds { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 6px; align-items: center; }
.pl-kinds button { min-height: 40px; padding: 4px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  color: var(--text); font: inherit; font-size: 1rem; font-weight: 700; cursor: pointer; }
.pl-kinds button small { color: var(--muted); font-size: 0.875rem; font-weight: 600; margin-left: 4px; }
.pl-kinds button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.pl-kinds button[aria-pressed="true"] small { color: inherit; opacity: 0.85; }
.pl-near { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 1rem; cursor: pointer; }
.pl-near input { width: 20px; height: 20px; accent-color: var(--accent); margin: 0; }
.pl-cand-list { list-style: none; padding: 0; margin: 8px 0 12px; display: grid; gap: 10px; }
.pl-cand { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 4px 12px; padding: 12px; min-width: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.pl-cand-act { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: 6px; }
.pl-put { min-height: 44px; min-width: 96px; padding: 0 18px; border-radius: 999px; border: 0; background: var(--accent); color: var(--on-accent);
  font: inherit; font-size: 1rem; font-weight: 800; cursor: pointer; }
.pl-badges { display: flex; flex-wrap: wrap; gap: 4px; margin: 2px 0; }
.pl-badge { padding: 1px 8px; border-radius: 999px; background: var(--tint); color: var(--accent); font-size: 0.875rem; font-weight: 700; }
.pl-more { width: 100%; }
/* 일정 공유·다른 사람이 만든 일정·등록업체 (src/gimpo/plan_share.py, 2026-10-27) */
.pl-post { margin-top: 12px; display: grid; gap: 4px; min-width: 0; }
.pl-post[hidden] { display: none; }
.pl-post .pl-btn { width: 100%; }
.pl-post .fine { margin: 0; color: var(--muted); overflow-wrap: anywhere; }
.pl-shared { margin-top: 30px !important; padding-top: 22px; border-top: 1px solid var(--line); min-width: 0; }
.pl-shared[hidden] { display: none; }
.pl-shared h2 { margin: 0 0 var(--sub-gap); }
.pl-shared > .fine { margin: 0 0 6px; color: var(--muted); overflow-wrap: anywhere; }
.pl-shared-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.pl-shared-list li { display: grid; gap: 4px; padding-top: 12px; border-top: 1px solid var(--line); min-width: 0; }
.pl-shared-title { overflow-wrap: anywhere; min-width: 0; }
.pl-shared-who { font-size: 0.875rem; color: var(--text); overflow-wrap: anywhere; }
.pl-shared-act[hidden], .pl-ask[hidden] { display: none; }
.pl-shared-act .pl-btn { margin-top: 2px; }
.pl-ask { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--accent); border-radius: 12px;
  background: var(--tint); min-width: 0; }
.pl-ask p { flex: 1 1 100%; margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.pl-th { overflow-wrap: anywhere; }
.pl-badge.pl-own { background: #fdf0d8; color: #7a4a00; }
.pl-badge.pl-new { background: #e3f4ea; color: #146c3a; }
.pl-x.pl-intro { color: var(--text); }
.pl-reg { margin: 4px 0 0; overflow-wrap: anywhere; }
.pl-reg[hidden] { display: none; }
.pl-reg a { font-weight: 700; }
.pl-reg .fine { display: block; color: var(--muted); margin-top: 2px; }
.pl-ph.noimg[data-k="등록업체"] { background: #fdf0d8; }
.pl-ph.noimg[data-k="등록업체"] span { color: #7a4a00; }
@media (prefers-color-scheme: dark) {
  .pl-badge.pl-own, .pl-ph.noimg[data-k="등록업체"] { background: #3a2c0c; color: #ffd98a; }
  .pl-badge.pl-new { background: #12341f; color: #9be3b5; }
  .pl-ph.noimg[data-k="등록업체"] span { color: #ffd98a; }
}
/* 관광공사 사진은 자르지 않는다 (공공누리 제3유형 변경금지): contain */
.pl-ph { display: grid; place-content: center; width: 76px; height: 76px; border-radius: 12px; background: var(--tint); overflow: hidden; }
.pl-ph img { width: 76px; height: 76px; object-fit: contain; display: block; }
.pl-ph.noimg span { color: var(--accent); font-size: 0.875rem; font-weight: 800; text-align: center; padding: 0 4px; }
.pl-ph.noimg[data-k="공원"], .pl-ph.noimg[data-k="산"] { background: #e3f0e4; }
.pl-ph.noimg[data-k="공원"] span, .pl-ph.noimg[data-k="산"] span { color: #2f6b3a; }
.pl-ph.noimg[data-k="음식점"] { background: #fbeadb; }
.pl-ph.noimg[data-k="음식점"] span { color: #9a4a12; }
.pl-ph.noimg[data-k="전통시장"] { background: #f6e6f0; }
.pl-ph.noimg[data-k="전통시장"] span { color: #8a2c62; }
@media (prefers-color-scheme: dark) {
  .pl-ph.noimg[data-k="공원"], .pl-ph.noimg[data-k="산"] { background: #1c3021; }
  .pl-ph.noimg[data-k="공원"] span, .pl-ph.noimg[data-k="산"] span { color: #9fd8a8; }
  .pl-ph.noimg[data-k="음식점"] { background: #33241a; }
  .pl-ph.noimg[data-k="음식점"] span { color: #f3b98a; }
  .pl-ph.noimg[data-k="전통시장"] { background: #31202b; }
  .pl-ph.noimg[data-k="전통시장"] span { color: #eaa6cf; }
}
.pl-toast { position: fixed; z-index: 1200; left: 16px; right: 16px; bottom: 88px; margin: 0 auto; width: fit-content; max-width: calc(100% - 32px);
  padding: 10px 18px; border-radius: 14px; background: var(--text); color: var(--bg); font-size: 0.9375rem; font-weight: 700; text-align: center;
  box-shadow: 0 6px 20px rgba(0,0,0,.25); opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s; pointer-events: none; }
.pl-toast.on { opacity: 1; transform: none; }
@media (min-width: 900px) {
  .pl-layout { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 20px; align-items: start; }
  .pl-mapbox { margin: 0; position: sticky; top: 12px; }
  .pl-map { height: calc(100vh - 120px); min-height: 420px; max-height: 760px; border-radius: 18px; border: 1px solid var(--line); }
  .pl-osm { display: block; margin: 6px 4px 0; }
  .pl-panel { margin: 0; padding: 16px 18px 24px; border: 1px solid var(--line); border-radius: 18px; box-shadow: none; }
  .pl-grip { display: none; }
  .pl-dayhead { margin: 0 -18px; padding-left: 18px; }
}
@media (max-width: 380px) {
  .pl-card, .pl-cand { grid-template-columns: 60px minmax(0, 1fr); gap: 4px 10px; }
  .pl-ph, .pl-ph img { width: 60px; height: 60px; }
}
/* 인쇄: 일정표만 (A4 한 장에 6~8곳) */
@media print {
  @page { size: A4; margin: 12mm; }
  body:has(.pl-sheet) header.site, body:has(.pl-sheet) footer, body:has(.pl-sheet) .fab, .pl-screen { display: none !important; }
  body:has(.pl-sheet) main { max-width: none; padding: 0; margin: 0; }
  body:has(.pl-sheet) { background: #fff; color: #000; }
  .pl-sheet { display: block; font-size: 9.5pt; line-height: 1.35; color: #000; }
  .pl-sheet h1 { font-size: 16pt; margin: 0 0 4px; }
  .pl-sheet-meta { margin: 0 0 8px; font-size: 10pt; }
  .pl-sheet table { width: 100%; border-collapse: collapse; table-layout: fixed; }
  .pl-sheet th, .pl-sheet td { border: 1px solid #999; padding: 4px 5px; vertical-align: top; text-align: left; overflow-wrap: anywhere; }
  .pl-sheet th { background: #eee; font-size: 9pt; }
  .pl-sheet tr { break-inside: avoid; }
  .pl-sheet th:nth-child(1) { width: 7%; } .pl-sheet th:nth-child(2) { width: 38%; } .pl-sheet th:nth-child(3) { width: 12%; }
  .pl-sheet th:nth-child(4) { width: 20%; } .pl-sheet th:nth-child(5) { width: 23%; }
  .pl-c-n { text-align: center !important; font-weight: 800; font-size: 11pt; }
  .pl-c-place span, .pl-c-tr span { display: block; font-size: 8.5pt; color: #333; }
  .pl-c-tr span.pl-via { font-weight: 700; color: #000; }
  .pl-c-tr span.pl-via-note { font-size: 7.5pt; color: #555; }
  .pl-c-place strong { font-size: 10.5pt; }
  .pl-c-place .pl-c-src { font-size: 7.5pt; color: #555; }
  .pl-sheet-note { margin: 8px 0 2px; font-size: 8pt; color: #333; }
  .pl-sheet-foot { margin: 2px 0 0; font-size: 7.5pt; color: #555; border-top: 1px solid #999; padding-top: 4px; }
}

/* 일정 만들기: 사이트 공통 공유 버튼은 숨긴다 (판에 "일정표 공유"가 있고, 휴대폰에서 지도·카드 링크를 가렸다). TOP 은 둔다. */
body:has(.pl-sheet) .fab .fab-share { display: none; }

/* 2026-10-27: 겹치는 이름표 숨김, 날씨 제목 위 여백, 휴대폰 지도는 제목 바로 아래 */
.leaflet-tooltip.pl-pin-label.pl-hide { visibility: hidden; }
.pl-screen > .wx { margin-top: 40px; }
.pl-screen > .wx > h2 { margin: 0 0 var(--title-gap); }
.pl-after { margin-top: 28px; }
.pl-screen > h1 { margin-bottom: 12px; }

/* ---- 머리말 메뉴 (src/gimpo/nav.py, 2026-10-28) --------------------------------------------------------------------
   휴대폰: 왼쪽 로고, 오른쪽 메뉴 버튼 -> 오른쪽에서 나오는 메뉴. JS 가 없으면 버튼 대신 머리말 아래 가로 링크 줄.
   900px 넘으면 머리말 안에 가로 링크. 다른 사이트 머리말은 건드리지 않는다 (body.gimpo 와 .gh 에만). */
body.gimpo header.site.gh { display: flex; align-items: center; flex-wrap: wrap; column-gap: 12px; padding-top: 8px; padding-bottom: 4px; }
body.gimpo header.site .gh-home { flex: none; min-height: 44px; }
body.gimpo header.site .gnav-bar { order: 3; flex: 1 0 100%; margin: 0 -16px; overflow-x: auto; scrollbar-width: none; }
body.gimpo header.site .gnav-bar::-webkit-scrollbar { display: none; }
body.gimpo header.site .gnav-bar ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 2px 16px; white-space: nowrap; }
body.gimpo header.site .gnav-bar a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; border-radius: 999px;
  color: var(--muted); font-size: 0.9rem; font-weight: 700; letter-spacing: 0; }
body.gimpo header.site .gnav-bar a:hover { color: var(--accent); }
body.gimpo header.site .gnav-bar a[aria-current="page"] { color: var(--accent); background: var(--tint); }
.gnav-btn { display: none; margin-left: auto; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 12px; background: none;
  color: var(--text); cursor: pointer; place-items: center; }
.gnav-btn:hover { background: var(--tint); }
.gnav-btn:focus-visible, .gnav-x:focus-visible, .gnav-list a:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.gjs .gnav-btn { display: inline-grid; }
.gjs body.gimpo header.site .gnav-bar { display: none; }
@media (min-width: 900px) {
  body.gimpo header.site.gh { flex-wrap: nowrap; padding-top: 14px; }
  body.gimpo header.site .gnav-bar, .gjs body.gimpo header.site .gnav-bar { display: block; order: 0; flex: 1 1 auto; margin: 0; overflow: visible; }
  body.gimpo header.site .gnav-bar ul { flex-wrap: wrap; justify-content: flex-end; padding: 0; gap: 0; }
  body.gimpo header.site .gnav-bar a { padding: 0 8px; font-size: 0.86rem; }
  .gnav-btn, .gjs .gnav-btn { display: none; }
}
/* 메뉴 (드로어). 광고 위에 오게 z-index 를 크게, 아래 여백은 앵커 광고 높이만큼 */
.gnav-drawer { position: fixed; inset: 0; z-index: 2147483000; }
.gnav-drawer[hidden] { display: none; }
.gnav-scrim { position: absolute; inset: 0; background: rgba(8, 20, 24, 0.45); opacity: 0; transition: opacity 0.2s ease; }
.gnav-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(84vw, 320px); background: var(--surface); color: var(--text);
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.2); transform: translateX(100%); transition: transform 0.22s ease; overflow-y: auto;
  overscroll-behavior: contain; padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
.gnav-drawer.on .gnav-scrim { opacity: 1; }
.gnav-drawer.on .gnav-panel { transform: none; }
@media (prefers-reduced-motion: reduce) { .gnav-scrim, .gnav-panel { transition: none; } }
.gnav-top { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; padding: 6px 6px 6px 20px;
  border-bottom: 1px solid var(--line); background: var(--surface); }
.gnav-title { font-weight: 800; font-size: 1.05rem; }
.gnav-x { width: 48px; height: 48px; padding: 0; border: 0; border-radius: 12px; background: none; color: var(--text); cursor: pointer;
  display: inline-grid; place-items: center; }
.gnav-x:hover { background: var(--tint); }
.gnav-list { list-style: none; margin: 0; padding: 6px 0; }
.gnav-list a { display: flex; align-items: center; min-height: 48px; padding: 0 20px; color: var(--text); text-decoration: none;
  font-size: 1rem; font-weight: 700; }
.gnav-list a:hover { background: var(--tint); }
.gnav-list a[aria-current="page"] { color: var(--accent); background: var(--tint); box-shadow: inset 4px 0 0 var(--accent); }
.gnav-h { margin: 10px 20px 0; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.82rem; font-weight: 800; }
.gnav-areas a { min-height: 44px; font-weight: 600; font-size: 0.95rem; }
/* 메뉴 묶음 (2026-11-01): 묶음 이름 아래 그 묶음 페이지들 */
.gnav-g { margin: 0; }
.gnav-g .gnav-h { margin-top: 6px; }
.gnav-sub { padding: 2px 0 4px; }
.gnav-sub a { min-height: 44px; font-weight: 600; font-size: 0.95rem; }
/* 묶음 탭 줄 (2026-11-01): 머리말 아래, 같은 묶음 페이지로. 휴대폰은 옆으로 넘긴다. 머리말과 달리 붙어 있지 않는다. */
body.gimpo .gsub { max-width: 1040px; margin: 0 auto; padding: 6px 0 0; }
body.gimpo .gsub ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 4px 16px; overflow-x: auto; scrollbar-width: none;
  white-space: nowrap; }
body.gimpo .gsub ul::-webkit-scrollbar { display: none; }
body.gimpo .gsub a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 0.9rem; font-weight: 700; text-decoration: none; }
body.gimpo .gsub a:hover { border-color: var(--accent); color: var(--accent); }
body.gimpo .gsub a[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
body.gimpo .gsub a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
body.gimpo .gsub + .gnav-drawer + script + main, body.gimpo .gsub ~ main { padding-top: 18px; }
html.gnav-open, html.gnav-open body { overflow: hidden; }

/* ---- 머리말 고정 (2026-10-30 사용자 요청: 모든 화면에서 김포아이 + 메뉴 버튼이 위에 붙어 있게) -----------------------------
   --gh-h: 머리말 높이, --stick-h: 머리말 + (휴대폰) 붙어 있는 지도 높이. nav.py 의 스크립트가 잰다. 배경은 화면 폭 가득. */
body.gimpo header.site.gh { position: sticky; top: 0; z-index: 1000; background: var(--bg);
  box-shadow: 0 0 0 100vmax var(--bg); clip-path: inset(0 -100vmax); }
html:has(body.gimpo) { scroll-padding-top: calc(var(--stick-h, 64px) + 8px); }

/* ---- 지도가 있는 화면 (/course/make/, /course/), 휴대폰 (2026-10-30 사용자 요청) -------------------------------------------
   /new-shops/ 도 같은 모양. 지도가 머리말 바로 아래에 붙고, 아래 칸(일정·코스 카드)은 위로 올라오며 지도 밑으로 들어간다.
   지도 아래 그라데이션은 글이 흐려 읽기 어렵다는 사용자 의견으로 뺐다 (2026-10-30). 경계는 얇은 선 하나. */
@media (max-width: 899px) {
  .pl-mapbox, .cc-mapbox, .nsm-mapbox { position: sticky; top: var(--gh-h, 60px); z-index: 2; background: var(--bg);
    border-bottom: 1px solid var(--line); }
  .pl-map { height: clamp(220px, 36vh, 380px); }
  .pl-mapbox .pl-kleg { padding-bottom: 2px; }   /* 아래쪽 .pl-kleg 규칙(26px)보다 강하게 - 범례 아래 빈칸 줄이기 */
  .pl-panel { margin-top: 0; }
  .pl-ins { top: var(--stick-h, 0px); }
}
@media (min-width: 900px) {
  .pl-mapbox { top: calc(var(--gh-h, 64px) + 12px); }
  .pl-map { height: calc(100vh - var(--gh-h, 64px) - 96px); }
  .pl-ins { top: var(--gh-h, 0px); }
}

/* ---- 휴대폰 첫 화면 여백 (2026-10-28): 빵부스러기 한 줄, 미리보기 안내는 작은 배지, h1 위아래 줄이기 ------------------- */
body.gimpo main { padding-top: 16px; }
body.gimpo .crumbs { margin: 0 0 6px; font-size: 0.82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-note { display: inline-block; margin: 0 0 6px; padding: 2px 10px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--muted); font-size: 0.78rem; font-weight: 600; line-height: 1.6; }
body.gimpo :is(main, .cc-app, .pl-screen) > h1 { margin-top: 2px; margin-bottom: 12px; }
@media (max-width: 899px) {
  /* 2026-10-30: 앵커 광고를 꺼서 본문 아래 96px 여백이 출처 칸과 꼬리말 사이를 크게 벌렸다 -> 28px. 대신 꼬리말 아래를 TOP 버튼만큼 */
  body.gimpo main { padding-top: 4px; padding-bottom: 28px; }
  body.gimpo footer { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
  body.gimpo :is(main, .cc-app, .pl-screen) > h1 { font-size: clamp(1.45rem, 6.6vw, 1.9rem); margin-bottom: 10px; }
}

/* ---- 일정 만들기: 날짜와 공유·인쇄 버튼을 한 줄에, "내 일정" 머리줄 (2026-10-28) --------------------------------------- */
/* 날짜 칸은 남은 폭을 다 채우지 않고 "2026. 11. 04." / "연도. 월. 일." 과 달력 아이콘만큼 (11rem = 176px, 크롬 휴대폰 기본
   폭은 이 글자 크기로 약 200px). 공유·인쇄는 같은 줄 오른쪽 끝. */
.pl-top { flex-wrap: nowrap; align-items: flex-end; justify-content: space-between; gap: 8px; }
.pl-when { flex: 0 1 auto; }
.pl-date { width: 11rem; max-width: 100%; box-sizing: border-box; }
.pl-tools { flex: none; gap: 0; }
.pl-tool { min-width: 60px; min-height: 52px; padding: 4px; font-size: 0.75rem; white-space: nowrap; }
/* 머리줄: 제목("내 일정" + 작은 회색 "4곳 · 11.4 (수)")과 동작 칩을 한 줄에 세로 가운데로. 띠 위아래 여백은 칩(44px) 둘레만큼.
   제목이 남는 폭을 차지해 칩을 오른쪽으로 민다 (flex-grow). 좁아서 칩이 둘째 줄로 내려가면 칩 줄은 제목과 같은 왼쪽 끝에서 시작. */
.pl-dayhead { align-items: center; gap: 4px 8px; padding: 8px 8px 6px 16px; }
.pl-dayhead h2 { flex: 1 0 auto; display: flex; align-items: center; flex-wrap: nowrap; gap: 0 6px; line-height: 1.3; }
.pl-dayhead-meta { color: var(--muted); font-size: 0.9rem; font-weight: 600; white-space: nowrap; }
.pl-dayhead-meta #pl-plan-n:not(:empty) + #pl-plan-date:not(:empty)::before { content: "· "; }
.pl-dayhead-meta #pl-plan-n { margin-right: 4px; }
.pl-dayhead-meta #pl-plan-n:not(:empty)::before { content: "· "; }   /* "내 일정 · 장소 4개" */
.pl-dayhead-act { margin-left: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pl-hbtn { min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--accent);
  font: inherit; font-size: 0.875rem; font-weight: 700; cursor: pointer; white-space: nowrap; }
.pl-hbtn:hover { border-color: var(--accent); }
.pl-hbtn[aria-expanded="true"] { border-color: var(--accent); background: var(--tint); }
.pl-hbtn-warn { color: #b3261e; }   /* 비우기: 다른 버튼과 떨어뜨리고 색으로 구별 (누르면 한 번 더 묻는다) */
.pl-hbtn[hidden] { display: none; }
@media (prefers-color-scheme: dark) { .pl-hbtn-warn { color: #f2938c; } }

/* 2026-10-28: 김포아이는 AdSense 앵커 광고를 껐다 - 휴대폰에서 공유·TOP 버튼을 앵커 자리(84px)에서 오른쪽 아래로 내린다.
   다른 사이트는 앵커 광고가 있어 src/site_builder.py 의 84px 그대로. 앵커를 다시 켜면 이 줄을 지운다. */
@media (max-width: 640px) { body.gimpo .fab { bottom: calc(16px + env(safe-area-inset-bottom)); } }

/* ---- 일정 만들기: 곳 사이 직선거리 줄, 사이에 넣기 (2026-10-28) ------------------------------------------------------- */
/* 곳과 곳 사이: 칩 모양 없이 "↕ 직선거리 1.2km" 글자만 (색·굵게), 오른쪽에 작은 "+ 장소 추가" (손가락 칸은 padding 으로 44px) */
.pl-leg { grid-column: 2; display: flex; align-items: center; flex-wrap: wrap; gap: 0 4px; min-width: 0; }
.pl-leg-d { display: inline-flex; align-items: center; gap: 4px; padding: 0 4px 0 2px; color: var(--accent); font-size: 0.875rem;
  font-weight: 700; white-space: nowrap; }
.pl-leg-d svg { flex: none; }
/* 2026-10-28 시안: 테두리 있는 작은 알약 (안쪽 span). 버튼 자체는 누르는 자리 44px. */
.pl-leg-add { min-height: 44px; padding: 0 0 0 6px; margin: 0; border: 0; background: none; color: var(--text, inherit); font: inherit;
  font-size: 0.8125rem; font-weight: 700; cursor: pointer; white-space: nowrap; }
.pl-leg-add span { display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); }
.pl-tl-leg-first .pl-leg-add { padding-left: 0; }
.pl-leg-add:hover span { color: var(--accent); border-color: var(--accent); }
.pl-leg-add[aria-pressed="true"] span { color: var(--accent); background: var(--tint); border-color: var(--accent); }
/* 사이에 넣기 모드 안내 (장소 추가 칸 머리, 목록을 내려도 위에 붙어 있게) */
.pl-ins { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 8px; margin: 0 0 10px; padding: 6px 6px 6px 14px;
  border: 1px solid var(--accent); border-radius: 12px; background: var(--tint); }
.pl-ins[hidden] { display: none; }
.pl-ins-t { flex: 1 1 auto; display: grid; min-width: 0; margin: 0; color: var(--accent); overflow-wrap: anywhere; }
.pl-ins-t strong { font-size: 0.9375rem; }
.pl-ins-t span { color: var(--muted); font-size: 0.8125rem; font-weight: 600; }
.pl-ins .pl-hbtn { flex: none; }

/* ---- 일정 만들기: 장소 종류별 색 (2026-10-28) ----------------------------------------------------------------------- */
/* 색 값은 src/gimpo/planner.py KIND_COLORS 한 곳 -> 페이지의 <style> (kind_css: .pl-kc-N { --kc, --kcm }). 여기서는 쓰기만 한다.
   --kc: 화면 모드 색 (라이트/다크), --kcm: 지도 후보 핀 색 (타일이 늘 밝아 라이트 색). 색만으로 구별하지 않게 종류 글자는 늘 함께. */
.pl-kdot { display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--kc, #6b7f86); margin-right: 6px;
  vertical-align: 0; }
.pl-kdot-map { background: var(--kcm, #6b7f86); box-shadow: 0 0 0 1.5px #fff, 0 0 0 2.5px rgba(0, 0, 0, .18); }   /* 지도 핀과 같은 모양 */
.pl-sub .pl-kdot, .pl-pop .pl-kdot { width: 9px; height: 9px; margin-right: 5px; }
.pl-kinds button.pl-kchip { display: inline-flex; align-items: center; }
.pl-kinds button.pl-kchip[aria-pressed="true"] { border-color: var(--kc); background: color-mix(in srgb, var(--kc) 14%, var(--surface));
  color: var(--text); box-shadow: inset 0 0 0 1px var(--kc); }
.pl-kinds button.pl-kchip[aria-pressed="true"] small { color: var(--muted); opacity: 1; }
.pl-map path.pl-cm { fill: var(--kcm, #6b7f86); }
/* 지도 아래 접히는 범례: 닫혀 있으면 색 점만, 펼치면 점 + 종류 이름. 휴대폰은 판이 20px 겹쳐 올라오니 그만큼 아래 여백 */
.pl-kleg { margin: 0; padding: 4px 16px 26px; background: var(--bg); font-size: 0.875rem; }
.pl-kleg summary { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; min-height: 44px; cursor: pointer; color: var(--text);
  font-weight: 600; list-style: none; }
.pl-kleg summary::-webkit-details-marker { display: none; }
.pl-kleg summary::after { content: "▾"; color: var(--muted); margin-left: auto; }
.pl-kleg[open] summary::after { content: "▴"; }
.pl-kleg-dots { display: inline-flex; gap: 6px; }
.pl-kleg-dots .pl-kdot { margin: 0; }
.pl-kleg[open] .pl-kleg-dots { display: none; }
.pl-kleg-list { list-style: none; margin: 0 0 4px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.pl-kleg-list li { display: inline-flex; align-items: center; white-space: nowrap; }
.pl-kleg-list .pl-kdot { margin-right: 6px; }
/* 출발 시간 고르기 (2026-10-28): 직접 쓰던 칸 -> select. 앞 곳보다 이르면 작은 회색 안내만 (순서를 막지 않는다) */
.pl-field select { min-height: 44px; width: 100%; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg);
  color: var(--text); font: inherit; font-size: 1rem; box-sizing: border-box; }
.pl-time-warn { color: var(--muted); font-size: 0.8125rem; }
.pl-time-warn[hidden] { display: none; }
@media (min-width: 900px) { .pl-kleg { margin: 6px 0 0; padding: 0 4px; background: none; } }   /* 지도 높이에서 이 칸만큼 뺐다 */

/* 2026-10-29 사용자 요청: 페이지 아래 '이용 안내'와 '자료 출처'를 칸으로 나눈다.
   .g-note = 옅은 배경 칸 (읽어야 할 안내), .g-src = 점선 칸 (출처, 작은 글자). 사이트 공통 꼬리말과도 떨어뜨린다. */
.g-note, .g-src { margin: 20px 0 0; padding: 14px 16px; border-radius: 12px; }
.g-note { background: var(--tint); border-left: 4px solid var(--accent); }
.g-src { border: 1.5px dashed color-mix(in srgb, var(--muted) 55%, transparent); color: var(--muted); font-size: 0.82rem; }
/* 2026-10-30: 모든 페이지 아래 '이용 안내'·'자료 출처' 칸 (src/gimpo/src_box.py). 출처 칸과 꼬리말 사이는 본문 아래 여백 하나만. */
.g-after { margin-top: 28px; }
body.gimpo footer { border-top: 1px solid var(--line); padding-top: 18px; }
body.gimpo .g-note h2, body.gimpo .g-src h2 { margin: 0 0 var(--sub-gap); font-size: 1rem; line-height: 1.4; letter-spacing: -0.01em; }
body.gimpo .g-src h2 { font-size: 0.9rem; color: var(--text); }
.g-note ul { margin: 0; padding-left: 1.1em; font-size: 0.875rem; line-height: 1.65; }
.g-note li + li { margin-top: 4px; }
.g-src-list { margin: 0; display: grid; gap: 6px; line-height: 1.55; }
.g-src-list > div { display: grid; grid-template-columns: 10em minmax(0, 1fr); gap: 0 10px; }
.g-src-list dt { font-weight: 700; color: var(--text); opacity: .8; }
.g-src-list dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.g-src-list > div:has(> dd:only-child) { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 480px) { .g-src-list > div { grid-template-columns: minmax(0, 1fr); } .g-src-list dt { margin-bottom: 1px; } }
@media print { .g-note, .g-src { display: none; } }
/* /course/ 이벤트 안내: 이용 안내 위의 작은 강조 칸 (2026-10-29). 출처 칸 안의 원문 자료 버튼은 목록과 띄운다. */
.cc-after .cc-event { margin: 0; padding: 12px 16px; border: 1px solid var(--accent); border-radius: 12px; background: var(--surface);
  color: var(--text); font-size: 0.9rem; line-height: 1.6; }
.cc-after .cc-event a { font-weight: 700; }
.g-src .links { margin: 14px 0 0; }
/* /food/ 맛집·카페 신규 등록 칸 (2026-10-29): 누르면 등록 양식 모달 (feedback-modal.js) */
.reg-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 14px 0 6px; padding: 14px 16px;
  border: 1px solid var(--accent); border-radius: 12px; background: var(--surface); }
.reg-cta p { flex: 1 1 260px; margin: 0; font-size: 0.9rem; line-height: 1.6; }
.reg-cta .reg-btn { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); font-weight: 700; text-decoration: none; }
.reg-cta .reg-btn:hover { filter: brightness(1.08); }
.reg-cta .reg-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
/* /food/ 등록업체 (2026-10-29) */
.pc.own .tag { color: #8a4b00; font-weight: 700; }
.own-pics { display: flex; gap: 6px; margin: 6px 0 2px; }
.own-pics img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; display: block; }
/* 등록업체 메뉴 (2026-11-01, src/gimpo/site.py _owner_home) */
.own-menu { list-style: none; margin: 0 0 6px; padding: 0; max-width: 68ch; }
.own-menu li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.own-menu .om-n { font-weight: 700; }
.own-menu .om-p { grid-column: 2; grid-row: 1; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.own-menu .om-d { grid-column: 1; color: var(--muted); font-size: .9em; }
.own-edit { margin: 22px 0 0; }
/* 사장님 광고판 (2026-11-15, src/gimpo/site.py _ad_board · _owner_home 가게 소식) */
.adb { margin: 18px 0 8px; padding: 16px; border: 1px solid var(--line); border-left: 4px solid var(--warm); border-radius: 12px; background: var(--surface); }
.adb h2 { margin: 0 0 var(--title-gap); font-size: 1.1rem; }
.adb-list { list-style: none; margin: 0 0 10px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.adb-it { display: flex; gap: 12px; align-items: flex-start; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); min-width: 0; }
.adb-ph { flex: none; width: 64px; height: 64px; border-radius: 8px; overflow: hidden; display: grid; place-items: center; background: var(--tint); font-size: 1.6rem; text-decoration: none; }
.adb-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.adb-b { min-width: 0; display: grid; gap: 2px; }
.adb-b .tag { color: #8a4b00; }
.adb-b strong a { color: var(--text); text-decoration: none; }
.adb-b strong a:hover { text-decoration: underline; }
.adb-t { margin: 2px 0; line-height: 1.55; word-break: keep-all; overflow-wrap: anywhere; }
.adb-d { color: var(--muted); font-size: 0.8rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.own-news { margin: 14px 0; padding: 12px 14px; border-left: 4px solid var(--warm); border-radius: 8px; background: var(--tint); max-width: 68ch; }
.own-news h3 { margin: 0 0 6px; }
.own-news .own-ad { margin: 0 0 6px; font-weight: 700; line-height: 1.6; word-break: keep-all; overflow-wrap: anywhere; }
.own-news .own-ad .adb-d { font-weight: 400; margin-left: 4px; }
@media (prefers-color-scheme: dark) { .adb-b .tag { color: var(--warm); } }
.adb.in-tab { margin: 0; padding: 0; border: 0; background: none; }
/* 광고 전광판 - 주요 페이지 맨 위 한 줄 띠 (2026-11-15, src/gimpo/site.py _ad_ticker, assets/ad-ticker.js) */
.adt { display: flex; align-items: center; gap: 8px; margin: 10px 0 4px; padding: 0 6px 0 12px; min-height: 44px; border: 1px solid var(--line);
  border-left: 4px solid var(--warm); border-radius: 10px; background: var(--surface); font-size: 0.92rem; }
.adt[hidden], .adt [hidden] { display: none; }
.adt-ic { flex: none; }
.adt-l { list-style: none; margin: 0; padding: 0; flex: 1 1 auto; min-width: 0; display: grid; }
.adt-l li { grid-area: 1 / 1; min-width: 0; opacity: 0; visibility: hidden; transition: opacity .35s ease; }
.adt-l li:first-child, .adt.ready .adt-l li.on { opacity: 1; visibility: visible; }
.adt.ready .adt-l li:not(.on) { opacity: 0; visibility: hidden; }
.adt-l a { display: flex; align-items: center; gap: 8px; min-height: 44px; min-width: 0; color: var(--text); text-decoration: none; }
.adt-l a:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; border-radius: 6px; }
.adt-k { flex: none; padding: 1px 7px; border-radius: 999px; border: 1px solid currentColor; color: #8a4b00; font-size: 0.72rem; font-weight: 700; }
.adt-l b { flex: none; max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adt-t { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.adt-p, .adt-x { flex: none; width: 36px; height: 36px; border: 0; border-radius: 50%; background: none; color: var(--muted); font: inherit; cursor: pointer; }
.adt-p:hover, .adt-x:hover { background: var(--tint); }
.adt-p:focus-visible, .adt-x:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
.adt-k.adt-k-own { color: var(--accent); }
.adt-news .adt-t { color: var(--text); }
@media (prefers-color-scheme: dark) { .adt-k { color: var(--warm); } .adt-k.adt-k-own { color: var(--accent); } }
@media (max-width: 600px) { .adt { align-items: flex-start; } .adt-ic { margin-top: 10px; } .adt-l a { flex-wrap: wrap; gap: 2px 8px; padding: 8px 0; }
  .adt-l b { max-width: 70%; } .adt-t { flex: 1 0 100%; white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-height: 1.45; word-break: keep-all; overflow-wrap: anywhere; }
  .adt-p, .adt-x { margin-top: 4px; } }
@media (prefers-reduced-motion: reduce) { .adt-l li { transition: none; } }
/* 카드 뉴스 샘플 (2026-11-15): bestgimpo gimpoi/owner/main.asp 미리보기와 같은 모양 - 한쪽을 바꾸면 같이 바꿀 것 */
.cn-card { container-type: inline-size; width: 100%; max-width: 320px; aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden;
  background: #fff; color: #17262c; border: 1px solid #d3dee1; display: grid; grid-template-rows: 46% 1fr; box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.cn-ph { background: linear-gradient(135deg, #f3d9b8, #e9b98a); display: grid; place-items: center; color: #7a4a12; font-weight: 700; font-size: 5cqw; overflow: hidden; position: relative; }
.cn-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.cn-b { padding: 4cqw 5cqw 3.5cqw; display: grid; grid-template-rows: auto auto 1fr auto; gap: 1cqw; min-height: 0; text-align: left; }
.cn-tag { font-size: 3.4cqw; line-height: 1.4; font-weight: 700; color: #8a4b00; }
.cn-name { font-size: 6.4cqw; font-weight: 800; line-height: 1.25; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cn-text { font-size: 4.4cqw; line-height: 1.45; margin: 0; word-break: keep-all; overflow-wrap: anywhere; overflow: hidden; min-height: 0; }
.cn-foot { display: flex; justify-content: space-between; gap: 2cqw; font-size: 3.4cqw; line-height: 1.4; color: #56676d; white-space: nowrap; }
.cn-foot b { color: #0e6e86; overflow: hidden; text-overflow: ellipsis; }
/* 광고판 글 카드 (2026-11-15): 카드 뉴스와 같은 .cn-card 를 링크로 쓴다 */
.adb-list:has(.adb-card) { grid-template-columns: repeat(auto-fill, minmax(240px, 320px)); gap: 14px; }
.adb-card { min-width: 0; }
a.cn-card { text-decoration: none; }
a.cn-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.16); }
a.cn-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
a.cn-card .cn-ph, a.cn-card .cn-b, a.cn-card .cn-tag, a.cn-card .cn-name, a.cn-card .cn-text { display: block; }
a.cn-card .cn-ph { display: grid; font-size: 18cqw; }
a.cn-card .cn-b { display: grid; }
a.cn-card .cn-foot { display: flex; }
/* 광고판 이용 안내 (2026-11-15 정리): 한 줄 소개 + 단추, 나머지는 눌러서 펴는 칸 */
.adb-guide { word-break: keep-all; overflow-wrap: anywhere; display: grid; gap: 12px; }
.adb-none { margin: 0; padding: 10px 12px; border-radius: 8px; background: var(--tint); font-weight: 700; }
.adg-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.adg-lead { flex: 1 1 280px; min-width: 0; }
.adg-lead h3 { margin: 0 0 4px; font-size: 1.05rem; }
.adg-lead p { margin: 0; color: var(--muted); line-height: 1.6; }
.adb-guide .om-acts { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 8px; margin: 0; }
.adg-more { display: grid; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); }
.adg-more details + details { border-top: 1px solid var(--line); }
.adg-more summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; padding: 0 14px;
  font-weight: 700; cursor: pointer; }
.adg-more summary::-webkit-details-marker { display: none; }
.adg-more summary::after { content: ""; flex: none; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); margin-top: -4px; transition: transform .15s ease; }
.adg-more details[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
.adg-more summary:hover { background: var(--tint); }
.adg-more summary:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.adg-more details > :not(summary) { margin: 0; padding: 4px 14px 14px; }
.adg-more .fine { line-height: 1.7; }
.adb-steps { list-style: none; counter-reset: adb; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px 18px; }
.adb-steps li { counter-increment: adb; display: grid; grid-template-columns: 28px 1fr; gap: 2px 10px; align-items: start; }
.adb-steps li::before { content: counter(adb); grid-row: 1 / span 2; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--on-accent); font-weight: 800; font-size: 0.9rem; }
.adb-steps span { grid-column: 2; color: var(--muted); font-size: 0.9rem; line-height: 1.6; }
.adb-where { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px 18px; }
.adb-where li { display: grid; gap: 2px; }
.adb-where span { color: var(--muted); font-size: 0.9rem; line-height: 1.6; }
.adg-sample { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 14px 20px; align-items: start; }
@media (max-width: 640px) { .adg-sample { grid-template-columns: minmax(0, 1fr); } .adg-head .om-acts { width: 100%; } .adg-head .om-btn { flex: 1 1 auto; } }
@media (prefers-reduced-motion: reduce) { .adg-more summary::after { transition: none; } }
/* 사장님 수정 버튼 (2026-11-02 사용자 요청: 글자 링크가 잘 안 보여 버튼으로) */
.own-edit a { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; max-width: 420px; min-height: 48px;
  padding: 10px 18px; border-radius: 12px; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 1rem;
  text-decoration: none; box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.own-edit a:hover { filter: brightness(1.08); }
.own-edit a:focus-visible { outline: 3px solid var(--warm); outline-offset: 2px; }

/* ---- 분류 탭 + 검색창 고정 (2026-11-01 사용자 요청, /food/·/places/, site.LIST_TABS_JS) ---------------------------------
   위로 올리면 머리말(김포아이 + 메뉴) 바로 아래에 붙는다. 탭은 한 줄 가로 스크롤 (두 줄이면 화면을 너무 가린다).
   자바스크립트가 없으면 (html.lt-on 없음) 예전처럼 바로가기 버튼, 모든 분류가 보인다. */
.lt-bar { position: sticky; top: var(--gh-h, 60px); z-index: 900; margin: 14px 0 0; padding: 8px 0 2px; background: var(--bg);
  box-shadow: 0 0 0 100vmax var(--bg); clip-path: inset(0 -100vmax); }
.lt-bar.stuck { clip-path: inset(0 -100vmax -1px); border-bottom: 1px solid var(--line); }
.lt-bar .sr-mini { margin: 0 0 8px; }
.lt-bar .sr-mini input { padding: 10px 14px; }
.lt-tabs ul { flex-wrap: nowrap; overflow-x: auto; margin: 0; padding: 0 0 6px; scrollbar-width: none; scroll-padding: 0 16px;
  -webkit-overflow-scrolling: touch; }
.lt-tabs ul::-webkit-scrollbar { display: none; }
.lt-tabs li { flex: none; }
.lt-tabs a { min-height: 40px; padding: 6px 14px; white-space: nowrap; }
.lt-tabs a[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.lt-tabs a[aria-selected="true"] small { color: inherit; opacity: .85; }
.lt-tabs a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
html.lt-on .lt-panels > section > h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html.lt-on .lt-panels > section > .pcs { margin-top: 14px; }
@media print { .lt-bar { position: static; } html.lt-on .lt-panels > section[hidden] { display: block; } }
/* 등록업체 공식 뱃지 묶음 (2026-11-02, src/gimpo/owner_badges.py) */
.own-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 2px; }
.own-badges .city-pick { margin: 0; }
h1 + .own-badges { margin: 0 0 12px; }
h1 + .own-badges .city-pick { font-size: 0.85rem; }
/* 식품안심업소 지정서 사진 (2026-11-03): 세로 지정서라 폭을 줄인다 */
.own-cert-ph { max-width: 340px; }
.own-cert-ph img { width: 100%; height: auto; border-radius: 10px; }

/* 홈 '김포 김포아이 등록업체' (2026-11-08): PC 4단 한 줄, 모바일 2단. 사진 위 동 배지 + 가게 이름만 */
.own-mini { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.own-mini a { display: block; color: inherit; text-decoration: none; }
.om-ph { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--tint); border: 1px solid var(--line); }
.om-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.om-noimg { display: grid; place-items: center; height: 100%; font-size: 2rem; }
.om-town { position: absolute; left: 8px; top: 8px; padding: 3px 9px; border-radius: 999px; background: rgba(0, 0, 0, .62); color: #fff;
  font-size: 0.78rem; font-weight: 700; line-height: 1.4; }
/* 새로 등록한 등록업체 NEW 스티커 (2026-11-20 사용자 요청): 승인 뒤 7일, 사진 왼쪽 위. 업종 배지는 그 아래로 */
.om-new { position: absolute; left: 8px; top: 8px; z-index: 2; padding: 3px 9px; border-radius: 6px; background: #ffd23f; color: #1a1a1a;
  font-size: 0.74rem; font-weight: 800; letter-spacing: .04em; line-height: 1.4; transform: rotate(-6deg);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .25); pointer-events: none; }
/* 홈 사장님 칸: 업종·동 배지 → NEW 한 줄 (2026-11-24 사용자 요청) */
.om-badges { position: absolute; left: 6px; top: 7px; right: 4px; z-index: 2; display: flex; flex-wrap: nowrap; align-items: center; gap: 4px; pointer-events: none; }
.om-badges .om-town, .om-badges .om-new { position: static; }
.om-badges .om-town { min-width: 0; padding: 3px 7px; font-size: 0.72rem; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.om-badges .om-new { flex: none; padding: 2px 6px; font-size: 0.66rem; }
.ph-new, .pc.own .thumb { position: relative; }
.ph-new .om-new { left: 12px; top: 12px; font-size: 0.86rem; }
.om strong { display: block; margin-top: 8px; font-size: 0.98rem; line-height: 1.4; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.om a:hover strong { text-decoration: underline; }
.om a:hover img { transform: scale(1.03); }
.om a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 12px; }
@media (max-width: 760px) { .own-mini { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; } .om strong { font-size: 0.92rem; } }
@media (prefers-reduced-motion: reduce) { .om-ph img { transition: none; } }
.om-acts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin: 16px 0 0; }
.om-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border-radius: 999px;
  border: 1.5px solid var(--accent); background: var(--surface); color: var(--accent); font-weight: 700; text-decoration: none; text-align: center; }
.om-btn.om-btn-main { background: var(--accent); color: var(--on-accent); }
.om-btn:hover { filter: brightness(1.08); }
.om-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
@media (max-width: 760px) { .om-acts { display: grid; grid-template-columns: minmax(0, 1fr); } }
/* 2026-11-08: 장소·맛집 카드 사진도 장소 페이지 링크 */
a.thumb { display: block; }
.pc strong a { color: inherit; }
.pc strong a:hover { text-decoration: underline; }

/* 등록업체 카드 좋아요·공유 (2026-11-10, /assets/owner-actions.js) */
.own-acts { display: flex; gap: 8px; margin-top: 10px; }
.own-acts button { display: inline-flex; align-items: center; gap: 5px; min-height: 36px; padding: 0 12px; border: 1px solid var(--line);
  border-radius: 999px; background: var(--surface); color: inherit; font: 600 0.86rem/1 Pretendard, sans-serif; cursor: pointer; }
.own-acts button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.own-like svg { fill: none; stroke: #e0245e; stroke-width: 2; transition: transform 0.15s; }
.own-like[aria-pressed="true"] svg { fill: #e0245e; }
.own-like[aria-pressed="true"] { border-color: #f5b5c8; }
.own-like:active svg { transform: scale(1.25); }
.own-like-n:empty { display: none; }
.own-share svg { color: var(--accent); }
.own-toast { position: fixed; left: 50%; bottom: 90px; transform: translate(-50%, 10px); padding: 10px 16px; border-radius: 999px;
  background: #17262c; color: #fff; font: 600 0.9rem/1.3 Pretendard, sans-serif; opacity: 0; transition: opacity 0.2s, transform 0.2s;
  z-index: 3000; pointer-events: none; }
.own-toast.on { opacity: 1; transform: translate(-50%, 0); }

/* 홈 스레드 순위 상위 3곳 (2026-11-14) */
.tr-mini { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 8px; }
.tr-mini li { background: var(--surface); padding: 10px 14px; border: 1px solid var(--line, #e5e7eb); border-radius: 12px; line-height: 1.5; }
.tr-mini b { display: inline-block; min-width: 2.6em; color: var(--accent, #0b6e4f); }
.tr-mini small { color: var(--muted, #6b7280); margin-left: 4px; }
.tr-mini a { margin-left: 6px; font-size: 0.9rem; white-space: nowrap; }

/* 가볼 만한 곳 페이지 '이 동네 등록업체' (2026-11-14): 3단, 이름 아래 동네·거리와 한 줄 소개 */
.own-near { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 6px; }
.own-near .om-sub { display: block; margin-top: 3px; color: var(--muted); font-size: 0.84rem; }
.own-near .om-intro { display: block; margin-top: 4px; font-size: 0.86rem; line-height: 1.45; color: inherit;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 760px) { .own-near { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 홈 v2 '살아있는 홈' 미리보기 (2026-11-27, hv2-). 지금 홈의 .g-* .hero-pick .own-mini .pcs 는 고치지 않는다. */
.hv2 { min-width: 0; }
.hv2 > section { margin-top: 34px; }
.hv2 > section > h2 { margin-top: 0; }
.hv2 > .hv2-hero { margin-top: 8px; }
.hv2 .hv2-h3 { margin: 22px 0 6px; font-size: 1.05rem; }
.hv2 .hv2-sub { display: block; margin-top: 2px; color: var(--muted); font-size: 0.8rem; line-height: 1.4; }
.hv2 .hv2-empty { margin: 8px 0; padding: 14px 16px; border: 1px dashed var(--line); border-radius: 12px; background: var(--surface); color: var(--muted); line-height: 1.6; }
.hv2 .hv2-nolink { display: block; }

/* 첫 화면: 등록 업체 슬라이드 + 숫자 버튼 3개 + 검색. DOM 은 슬라이드 먼저(휴대폰: 슬라이드 -> 버튼 -> 검색), 데스크톱은 버튼 왼쪽·슬라이드 오른쪽 */
.hv2-hero.hero.split { row-gap: 16px; padding-bottom: 16px; }
.hv2-hero .hero-cols { align-items: start; }
.hv2-hero .hero-pick { grid-column: 2; grid-row: 1; }
.hv2-hero .hv2-tools { grid-column: 1; grid-row: 1; }
.hv2-hero .hero-tools .g-stats { margin: 0 0 14px; }
.hv2-stats .hv2-live { color: var(--accent); font-weight: 700; font-size: 0.74rem; line-height: 1.35; }
.hv2-adtag { margin: 0 4px 8px; font-size: 0.8rem; font-weight: 700; color: var(--muted); }
.hv2-adtag small { display: block; margin-top: 3px; font-weight: 600; font-size: 0.76rem; line-height: 1.4; }
.hv2-adtag b { display: inline-block; margin-right: 6px; padding: 1px 7px; border-radius: 4px; background: var(--warm); color: #fff; font-size: 0.72rem; }
.hv2-pick .thumb { position: relative; }
.hv2-pick .om-new { position: absolute; left: 8px; top: 8px; z-index: 2; }
.hv2-noph { display: grid; place-items: center; }
.hv2-ph-ic { font-size: 3.4rem; line-height: 1; }
.hv2-g-food { background: color-mix(in srgb, var(--warm) 22%, var(--surface)); }
.hv2-g-life { background: color-mix(in srgb, var(--accent) 20%, var(--surface)); }
.hv2-g-learn { background: color-mix(in srgb, #6a5acd 20%, var(--surface)); }
.hv2-g-store { background: color-mix(in srgb, #2e8b57 20%, var(--surface)); }
.hv2-since { margin: 0 6px 2px; font-size: 0.8rem; font-weight: 700; color: var(--accent); }
.hv2-pick .hs-all { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; }
.hv2-pick .hs-all a.fix { color: var(--muted); font-weight: 600; }
.hv2-hero .hero-bgcredit { position: static; margin: 6px 0 0; order: 9; }
@media (max-width: 860px) {
  .hv2-hero .hero-pick, .hv2-hero .hv2-tools { grid-column: 1; grid-row: auto; }
}
@media (max-width: 760px) { .hv2-hero.hero.split.has-bg { padding: 22px 14px 14px; } .hv2-pick .thumb { aspect-ratio: 16 / 10; } }

/* 사장님 칸 (짧게): 슬라이드에 못 나온 가게 + 안내 전문 + 버튼 */
.hv2-ad { margin: -4px 0 12px; font-weight: 700; }
.hv2-own-grid { list-style: none; margin: 0 0 4px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.hv2-own-grid .om a { display: block; color: inherit; text-decoration: none; }
.hv2-own > .fine:not(.hv2-ad) { margin-top: 10px; }
@media (max-width: 760px) { .hv2-own-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; } }

/* 새 영업신고: 신고일 묶음 + 글자 줄 */
.hv2-ns-days { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 22px; margin-top: 10px; align-items: start; }
.hv2-ns-day h3 { margin: 0 0 6px; font-size: 0.95rem; color: var(--accent); }
.hv2-ns-day h3 small { color: var(--muted); font-weight: 600; margin-left: 4px; }
.hv2-ns-day ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.hv2-ns-day li > a, .hv2-ns-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 9px 12px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 12px; color: var(--text); text-decoration: none; }
.hv2-ns-row { grid-template-columns: 30px minmax(0, 1fr); }
.hv2-ns-day li > a:hover { border-color: var(--accent); }
.hv2-ns-day li > a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.hv2-ns-ic { font-size: 1.3rem; text-align: center; }
.hv2-ns-t { min-width: 0; }
.hv2-ns-t strong { display: block; line-height: 1.35; overflow-wrap: anywhere; }
.hv2-ns-t small { display: block; color: var(--muted); font-size: 0.8rem; line-height: 1.4; }
.hv2-ns-go { font-size: 0.82rem; font-weight: 700; color: var(--accent); white-space: nowrap; }
.hv2-ns-go::after { content: " ›"; }
@media (max-width: 760px) { .hv2-ns-days { grid-template-columns: minmax(0, 1fr); gap: 10px; } .hv2-ns-day li > a, .hv2-ns-row { padding: 7px 11px; } .hv2-ns-day ul { gap: 5px; } }

/* 관광공사 새 소식 */
.hv2-tp-new { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.hv2-tp-new a { display: block; color: inherit; text-decoration: none; }
.hv2-tp-mod { margin-top: 26px; padding-top: 4px; border-top: 1px solid var(--line); }
.hv2-tp-mod > ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 22px; }
.hv2-tp-mod li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: baseline; padding: 8px 2px; border-bottom: 1px solid var(--line); }
.hv2-tp-mod li a { display: block; min-width: 0; color: var(--text); text-decoration: none; }
.hv2-tp-mod li a:hover strong { text-decoration: underline; }
.hv2-tp-mod li a { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; }
.hv2-tp-mod li strong { display: block; font-size: 0.92rem; line-height: 1.35; overflow-wrap: anywhere; }
.hv2-tp-mod li small { color: var(--muted); font-size: 0.78rem; }
.hv2-tp-mod li > span { color: var(--muted); font-size: 0.82rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .hv2-tp-new { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; } .hv2-tp-mod > ul { grid-template-columns: minmax(0, 1fr); } }

/* 날씨 + 연휴 나란히, 더 찾아보기, 미니 카드 */
.hv2-pair { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 28px; }
.hv2-pair > section { margin-top: 34px; }
.hv2-pair > section > h2 { margin-top: 0; }
@media (min-width: 900px) { .hv2-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
.hv2-go .chips ul { margin-bottom: 0; }
.hv2-minis { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.hv2-minis a { display: block; color: inherit; text-decoration: none; }
@media (max-width: 760px) { .hv2-minis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; } }
@media (min-width: 761px) { .hv2 .evs.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* 2026-11-27 사용자: PC 는 첫 화면 왼쪽에 바로가기 8개(예전 g-go), 휴대폰은 첫 화면에서 빼고 아래 '더 찾아보기' 칩만 - 같은 목록을 폭에 따라 하나만 */
.hv2-hero .hero-tools .hv2-hgo { margin: 0 0 14px; }
@media (max-width: 860px) { .hv2-hero .hv2-hgo { display: none; } }
@media (min-width: 861px) { .hv2-go { display: none; } }

/* 홈 v3 2차 개편 (2026-11-27, hv3-). 홈 v2 .hv2-* 와 지금 홈 규칙은 고치지 않고, v2 히어로 틀(.hv2-hero)을 그대로 재사용한다. */
.hv3 { min-width: 0; }
.hv3 > .hv3-hero { margin-top: 8px; }
body.gimpo .hv3-hero h1 { font-size: 1.4rem; line-height: 1.3; margin: 0 0 6px; }
.hv3-hero .lead { margin: 0; font-size: 1rem; }
@media (min-width: 861px) { body.gimpo .hv3-hero h1 { font-size: 2rem; } .hv3-hero .lead { font-size: 1.1rem; } }
.hv3 > section { margin-top: 0; padding: 26px 0 8px; border-top: 0; }   /* 2026-11-29 사용자: 메인 화면 칸 사이 윗줄 없음 */
.hv3 > .hv3-hero { padding-top: 20px; border-top: 0; }
.hv3 > section > h2 { margin: 0 0 var(--title-gap); font-size: 1.125rem; font-weight: 800; line-height: 1.35; }
.hv3-key { color: var(--accent); font-style: normal; }
.hv3-cm-head h2 { font-size: 1.125rem; font-weight: 800; line-height: 1.35; }
.hv3-cm-btn { white-space: nowrap; }
.hv3-count { margin: var(--desc-gap) 0 0; color: var(--muted); font-size: 0.9rem; line-height: 1.5; }
.hv3-track { list-style: none; margin: var(--body-gap) 0 0; padding: 2px 0 12px; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain; scrollbar-width: thin; }
.hv3-card { flex: 0 0 70%; max-width: 260px; min-width: 0; scroll-snap-align: start; }
.hv3-card a { display: block; color: var(--text); text-decoration: none; }
.hv3-card .thumb { position: relative; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: var(--tint, var(--surface)); }
.hv3-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hv3-card strong { display: block; margin: 8px 0 2px; font-size: 0.94rem; font-weight: 700; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hv3-tags { display: block; color: var(--muted); font-size: 0.75rem; line-height: 1.45; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hv3-pcr { position: absolute; left: 6px; bottom: 6px; max-width: calc(100% - 12px); padding: 2px 6px; border-radius: 4px; background: rgba(0, 0, 0, .55); color: #fff;
  font-size: 0.64rem; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hv3-nophoto { display: grid; place-items: center; font-size: 2.6rem; }
.hv3-c0 { background: color-mix(in srgb, var(--accent) 20%, var(--surface)) !important; }
.hv3-c1 { background: color-mix(in srgb, var(--warm) 22%, var(--surface)) !important; }
.hv3-c2 { background: color-mix(in srgb, #2e8b57 20%, var(--surface)) !important; }
.hv3-c3 { background: color-mix(in srgb, #6a5acd 20%, var(--surface)) !important; }
.hv3-cshare { background: var(--tint, var(--surface)) !important; border: 1px dashed var(--accent); }
.hv3-stag { position: absolute; left: 8px; top: 8px; padding: 1px 7px; border-radius: 4px; background: var(--accent); color: #fff; font-size: 0.7rem; font-weight: 700; }
.hv3-more a { display: grid; place-items: center; aspect-ratio: 4 / 3; border: 1px dashed var(--line); border-radius: 8px; color: var(--accent); font-weight: 700;
  text-align: center; padding: 8px; line-height: 1.4; }
.hv3-go { padding-bottom: 14px; }
.hv3-credit { margin-top: 20px; padding: 18px 0 8px; border-top: 1px solid var(--line); display: grid; gap: 10px; justify-items: start; }
.hv3-credit p { margin: 0; color: var(--muted); font-size: 0.82rem; line-height: 1.55; }
.hv3-src-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--accent); border-radius: 999px;
  color: var(--accent); font-weight: 700; font-size: 0.9rem; text-decoration: none; background: var(--surface); }
.hv3-bar { display: none; }
@media (min-width: 861px) { .hv3-card { flex-basis: calc((100% - 36px) / 4); max-width: none; } }
@media (max-width: 860px) {
  .hv3 .hv2-pick .hs-all a.fix { display: none; }   /* 휴대폰은 아래 고정 바에 같은 링크가 있다 */
  .hv3-cm-btn.om-btn { border: 0; background: none; padding: 0; min-height: 0; color: var(--accent); font-weight: 700; font-size: 0.9rem; }
  .hv3-bar { display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -4px 14px rgba(14, 50, 60, .08); }
  .hv3-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 48px; border-radius: 10px;
    font-weight: 800; font-size: 0.95rem; line-height: 1.2; text-decoration: none; }
  .hv3-bar-sub { flex: 1 1 40%; border: 2px solid var(--accent); color: var(--accent); background: var(--surface); }
  .hv3-bar-sub small { font-size: 0.72rem; font-weight: 600; }
  .hv3-bar-main { flex: 1.5 1 60%; background: var(--accent); color: #fff; }
  body.gimpo:has(.hv3-bar) .fab { bottom: calc(80px + env(safe-area-inset-bottom)); }
  body:has(.hv3-bar) footer { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  html.gnav-open .hv3-bar { display: none; }
}
/* 2026-11-27 사용자: 슬라이드 아래 링크 두 줄 → 버튼 [더보기] [등록하기(무료)], 휴대폰에서도 둘 다 보임 */
.hv2-pick .hs-all.hv2-btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 10px 0 0; text-align: center; }
.hv2-pick .hs-all a.hv2-btn, .hv3 .hv2-pick .hs-all a.fix.hv2-btn { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 10px;
  border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--accent); font-weight: 700; font-size: 0.92rem; text-decoration: none; }
.hv2-pick .hs-all a.hv2-btn-main, .hv3 .hv2-pick .hs-all a.fix.hv2-btn-main { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.hv2-pick .hs-all a.hv2-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* 출처 버튼 하나 + /sources/ (2026-11-27, design/tasks/20261127-gimpoi-sources). .g-foot = 면책 한 줄 + 버튼, .g-keep = 꼭 남길 안전 안내,
   .sp-* = /sources/ 페이지. 옛 .g-note/.g-src 규칙은 LIVE False 동안 공개 페이지가 쓰므로 그대로 둔다 (공개 때 2차 정리). */
.sp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.g-foot { margin: 28px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.82rem; line-height: 1.6; }
.g-after .g-foot { margin-top: 0; }
.g-foot p { margin: 0; overflow-wrap: anywhere; }
.g-foot .g-foot-ph { margin-top: 2px; }
.g-foot .g-foot-go { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.g-foot .src-go { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--accent); background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 0.92rem; text-decoration: none; }
.g-foot .src-orig { color: var(--muted); font-size: 0.82rem; }
@media (max-width: 560px) { .g-foot .src-go { width: 100%; } }
.g-keep { margin: 20px 0 0; padding: 14px 16px; border-radius: 12px; background: var(--tint); border-left: 4px solid var(--accent); }
body.gimpo .g-keep h2 { margin: 0 0 var(--sub-gap); font-size: 1rem; line-height: 1.4; letter-spacing: -0.01em; }
.g-keep ul { margin: 0; padding-left: 1.1em; font-size: 0.875rem; line-height: 1.65; }
.g-keep li + li { margin-top: 4px; }
@media print { .g-keep { display: none; } }
.g-own-more { margin: 8px 0 0; font-size: 0.86rem; color: var(--muted); }
.g-own-more summary { cursor: pointer; min-height: 32px; }
.ph figcaption.ph-c { text-align: right; font-size: 0.72rem; margin-top: 4px; }

.sp { max-width: 1040px; }
.sp h1 { margin: 6px 0 10px; }
.sp section { margin-top: 24px; }
.sp h2 { margin: 0 0 var(--title-gap); font-size: 1.1rem; letter-spacing: -0.01em; }
.sp-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sp-chips a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; background: var(--surface);
  border: 1px solid var(--line); color: var(--text); font-size: 0.88rem; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.sp-chips small { color: var(--muted); font-weight: 600; }
.sp-chips-s a { min-height: 34px; font-size: 0.82rem; }
.sp-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 24px; }
.sp .sp-card { margin: 0; padding: 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); scroll-margin-top: 72px; min-width: 0; }
.sp-card.sp-pending { border-style: dashed; }
.sp-card h2 { font-size: 1rem; overflow-wrap: anywhere; }
.sp-dl { margin: 0 0 10px; display: grid; gap: 8px; font-size: 0.9rem; line-height: 1.55; }
.sp-dl > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; }
.sp-dl dt { font-weight: 700; color: var(--muted); font-size: 0.8rem; }
.sp-dl dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.sp-card .links { margin: 0 0 10px; }
.sp-pages { font-size: 0.86rem; }
.sp-pages summary, .sp-grp summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 700; }
.sp-pages ul { margin: 4px 0 0; padding-left: 1.1em; line-height: 1.7; }
.sp-grp { margin: 0 0 8px; padding: 0 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); scroll-margin-top: 72px; }
.sp-grp[open] { padding-bottom: 12px; }
.sp-grp .sp-how { margin: 10px 0 4px; font-weight: 700; font-size: 0.86rem; }
.sp-grp ul:not(.sp-chips) { margin: 0; padding-left: 1.1em; font-size: 0.86rem; line-height: 1.65; }
.sp-kogl { margin: 8px 0 0; padding-left: 1.1em; line-height: 1.7; font-size: 0.9rem; }
@media (min-width: 861px) { .sp-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sp-dl > div { grid-template-columns: 7.5em minmax(0, 1fr); gap: 0 10px; } }
.gnav-src { margin: 0; padding: 8px 20px 18px; border-top: 1px solid var(--line); }
.gnav-src a { display: flex; align-items: center; min-height: 44px; color: var(--muted); font-size: 0.9rem; text-decoration: none; }
/* 2026-11-27 사용자 2차 다듬기: 슬라이드 카드 - 업종·동·NEW·광고는 사진 안 배지, 점(pagination) 위아래 여백, 고정 바 두 버튼 같은 폭 */
.hv2-pick .thumb { position: relative; }
.hv2-chips { position: absolute; left: 10px; top: 10px; right: 10px; display: flex; flex-wrap: wrap; gap: 6px; pointer-events: none; }
.hv2-chip { display: inline-flex; align-items: center; min-height: 24px; padding: 2px 9px; border-radius: 999px; font-size: 0.76rem; font-weight: 700;
  line-height: 1.2; color: #1b2328; background: rgba(255, 255, 255, 0.92); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18); }
.hv2-chip-ad { color: #fff; background: var(--warm); }
.hv2-chip-new { color: #3a2a00; background: #ffd23f; }
.hv2-pick .hv2-os strong { margin-top: 10px; }
.hv2-pick .hs-dots { margin: 14px 0 12px; }
.hv2-pick .hs-all.hv2-btns { margin-top: 0; }
@media (max-width: 860px) {
  .hv3-bar-sub, .hv3-bar-main { flex: 1 1 50%; }
  .hv3-bar a { flex-direction: row; font-size: 0.98rem; }
}
.hv2-live .hv2-nw { white-space: nowrap; display: inline; margin: 0; font-size: inherit; }   /* .g-stats span(1.25rem)이 날짜 낱말을 키워 3번째 칸이 넘쳤음 */
/* 2026-11-27 PM 결정: 휴대폰(고정 바가 보이는 폭)은 슬라이드 아래 등록 버튼을 숨기고 [더보기] 한 칸 전체 폭 */
@media (max-width: 860px) {
  .hv3 .hv2-pick .hs-all a.fix.hv2-btn { display: none; }
  .hv2-pick .hs-all.hv2-btns { grid-template-columns: minmax(0, 1fr); }
}
.hv2-pick .hs-route { text-wrap: balance; }   /* 360px 에서 마지막 낱말만 둘째 줄로 떨어지던 것 */
/* 2026-11-27 검수 반영: 출처 버튼 밑 '김포아이 홈' 은 보통 글자 링크, /sources/ 카드 끝 '목차로 ↑' */
.pd-home-plain { margin: 12px 0 0; text-align: center; }
.pd-home-plain a { font-weight: 400; font-size: 0.86rem; color: var(--muted); text-decoration: underline; }
.sp-up { margin: 8px 0 0; text-align: right; font-size: 0.82rem; }
.sp-up a { display: inline-flex; align-items: center; min-height: 32px; padding: 0 4px; color: var(--muted); }
/* 꼬리말 아래 여백 = 고정 바 높이(약 65px) + 16px. 떠 있는 TOP·공유는 홈 휴대폰에서 숨기므로 자리를 비우지 않는다 (2026-11-30 사용자) */
@media (max-width: 860px) { body:has(.hv3-bar) footer { padding-bottom: calc(81px + env(safe-area-inset-bottom)); } }
.pd-home.pd-home-plain a { font-weight: 400; font-size: 0.86rem; color: var(--muted); text-decoration: underline; }
.sp-card details.sp-pages { border-bottom: 0; padding: 0; }   /* 공통 details 아래 가로선이 카드 안에 쓸모없이 한 줄 더 생겼음 */
.g-foot .g-foot-t { text-wrap: pretty; }
/* 2026-11-27 재검수 (PM): 사진 안 배지는 아래쪽으로 (위쪽 간판·가게 이름을 가리지 않게), 홈·자료 출처 휴대폰은 떠 있는 버튼이 내용을 덮지 않게 */
.hv2-chips { top: auto; bottom: 10px; }
.hv2-pick .thumb::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 46px; pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0)); }
.hv2-chips { z-index: 1; }
.hv3-count, .hv3 .hv3-cm p { text-wrap: pretty; }
@media (max-width: 860px) {
  body.gimpo:has(.hv3-bar) .fab { display: none; }   /* 홈 휴대폰: 아래 고정 바가 있고 페이지가 3화면이라 TOP·공유를 띄우지 않는다 */
  body.gimpo:has(.sp-dl) .fab .fab-share { display: none; }   /* 자료 출처: 공유 버튼이 카드 글자를 덮었다 */
  .sp-up { text-align: left; }   /* 목차로 ↑ 가 오른쪽 아래 TOP 버튼에 가리지 않게 */
}
/* 2026-11-27 사용자: 코스 카드 사진 지정(card_photo). 공공누리 제3유형(변경 금지)은 자르지도 글자를 얹지도 않는다 - 사진 전체 + 아래 출처 줄 */
.hv3-card .thumb.hv3-whole { display: flex; flex-direction: column; background: #eef2f1; }
.hv3-card .thumb.hv3-whole img { flex: 1 1 auto; min-height: 0; object-fit: contain; }
.hv3-card .thumb.hv3-whole .hv3-pcr { position: static; align-self: flex-start; margin: 3px 6px 4px; max-width: none; background: none; color: var(--muted); padding: 0; }
.hv3-card .thumb.hv3-whole .hv3-pcr { order: 2; }   /* 출처 줄은 사진 아래 */
/* 2026-11-27 사용자: '내 일정 만들기' 는 작은 버튼 (휴대폰·PC 같은 모양) */
.hv3-cm-btn.om-btn, .hv3 .hv3-cm-btn.om-btn { display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border: 1px solid var(--accent);
  border-radius: 999px; background: var(--surface); color: var(--accent); font-weight: 700; font-size: 0.84rem; line-height: 1; }
@media (max-width: 860px) { .hv3-cm-btn.om-btn { min-height: 34px; padding: 0 14px; border: 1px solid var(--accent); background: var(--surface); } }

/* ── 간격 규칙 공통 적용 (2026-11-27) ── */
/* 제목 줄: 제목 + 오른쪽 버튼. 제목 상자 여백을 0 으로 해야 버튼과 세로 가운데가 맞는다 (예전엔 공통 h2 여백 14px 이 남아 어긋남) */
body.gimpo .sec-head, body.gimpo .hv3-cm-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--sp-2) var(--head-gap); margin: 0 0 var(--title-gap); }
body.gimpo .sec-head > h2, body.gimpo .hv3-cm-head > h2, body.gimpo .sec-head > h3 { margin: 0; }
/* 제목 바로 아래 설명 한 줄: 제목에 붙이고(4px) 내용과는 16px */
body.gimpo h2 + p.fine, body.gimpo h2 + p.hv3-count, body.gimpo .sec-head + p.fine, body.gimpo .hv3-cm-head + p.hv3-count {
  margin-top: calc(var(--desc-gap) - var(--title-gap)); margin-bottom: var(--body-gap); }
body.gimpo .hv3-cm-head + p.hv3-count + .hv3-track { margin-top: 0; }
/* 작은 제목 */
body.gimpo main h3 { margin-bottom: var(--sub-gap); }
/* 제목 바로 다음 요소는 위 여백 0 - 제목 아래 간격은 제목의 margin-bottom(규칙 값)만으로 정해진다 */
body.gimpo main h2 + :not(p.fine):not(.hv3-count), body.gimpo main .sec-head + :not(p.fine), body.gimpo main .hv3-cm-head + :not(.hv3-count) { margin-top: 0; }
/* 안내·출처·꼭 읽어 주세요 상자 제목은 작은 제목 간격 (페이지마다 따로 만든 출처 칸 포함) */
body.gimpo .g-src > h2, body.gimpo .g-note > h2, body.gimpo .g-keep > h2 { margin: 0 0 var(--sub-gap); }
body.gimpo .g-src > h2 + p.fine, body.gimpo .g-note > h2 + p.fine, body.gimpo .g-keep > h2 + p.fine { margin-top: 0; }   /* 상자 제목 아래는 작은 제목 간격(8px)만 */

/* 2026-11-29 사용자: PC 에서는 김포 하루 코스 카드를 좌우 스크롤 없이 모두 펼쳐 보이기 (4열 그리드), 모바일은 가로 넘김 그대로 */
@media (min-width: 861px) {
  .hv3-cm .hv3-track { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 12px; overflow: visible; scroll-snap-type: none; padding-bottom: 0; }
  .hv3-cm .hv3-card { max-width: none; scroll-snap-align: none; }
}

/* 2026-11-29 사용자: 새 홈 '새로 생긴 가게 N곳 지도로 모두 보기' 버튼 PC 에서도 가운데 */
.hv3 section[aria-labelledby="ns-h"] .om-acts { justify-content: center; }
/* 2026-11-29 사용자: 새 홈 '더 찾아보기'(모바일) 버튼 2단, 가로 크기 동일 */
.hv3-go .chips ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.hv3-go .chips a { display: flex; justify-content: center; width: 100%; box-sizing: border-box; padding: 8px 10px; white-space: nowrap; }

/* 2026-11-29 사용자: 하루 코스 '코스 N개로 내 일정 만들기' - PC 는 목록 아래 가운데 버튼, 모바일은 넘김 끝 카드 */
.hv3-cm-more { display: none; }
@media (min-width: 861px) {
  .hv3-cm .hv3-track > .hv3-more { display: none; }
  .hv3-cm .hv3-cm-more { display: flex; justify-content: center; }
}
