/* 김포아이 (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;
  }
}
body.gimpo header.site, body.gimpo main, body.gimpo footer { max-width: 1080px; }
body.gimpo h1 { letter-spacing: -0.03em; line-height: 1.2; text-wrap: balance; }
body.gimpo main > section { margin-top: 48px; }
body.gimpo main > section.hero { margin-top: 0; }
body.gimpo h2 { font-size: 1.3rem; margin: 0 0 14px; }
.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 left, photo slides right */
.hero.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: center; padding: 20px 0 6px; }
@media (max-width: 860px) { .hero.split { grid-template-columns: 1fr; gap: 24px; } }
.hero h1 { font-size: clamp(2.1rem, 6vw, 3.2rem); 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; padding: 12px 14px; }
.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; }
.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; min-width: 0; }
.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-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) */
.wx-list { list-style: none; margin: 10px 0 6px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.wx-list li { display: grid; justify-items: center; gap: 4px; padding: 14px 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-align: center; }
.wx-day { font-weight: 700; color: var(--accent); }
.wx-day small { display: block; font-weight: 400; color: var(--muted); font-size: 0.8rem; }
.wx-list svg { color: var(--muted); }
.wx-sun svg { color: var(--warm); }
.wx-rain svg, .wx-snow svg { color: #3d6fb4; }
.wx-cond { font-weight: 600; }
.wx-temp { font-variant-numeric: tabular-nums; color: var(--muted); }
.wx-temp b { color: var(--accent); font-size: 1.1rem; }
.wx-pop, .wx-note { font-size: 0.82rem; color: var(--muted); }
.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; }
