/* 이사 길잡이 — moving.topickly.com
   밝은 테마 하나로 간다(광고 이미지가 밝은 배경 기준이라 어두운 테마에서 튄다).
   색: 남색 글자 · 흰 바탕 · 주황 버튼(광고 이미지의 신청 버튼과 같은 계열) · 청록 = 손없는날 · 상자 갈색 = 체크 */
:root {
  color-scheme: light;
  --ink: #13233a;
  --ink-2: #4b5b70;
  --ink-3: #7a8799;
  --paper: #ffffff;
  --panel: #f2f5f9;
  --line: #dde4ec;
  --accent: #ee5a1f;
  --accent-deep: #c9430f;
  --accent-soft: #fff1e8;
  --teal: #0b8a7a;
  --teal-soft: #e6f4f1;
  --kraft: #c8964f;
  --kraft-soft: #faf2e4;
  --red: #d92d2d;
  --blue: #2463d1;
  --head: "IBM Plex Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.75 var(--body); word-break: keep-all; overflow-wrap: anywhere; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 16px; }

/* 머리 */
.top { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(6px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 16px; height: 56px; max-width: 1080px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font: 700 18px/1 var(--head); letter-spacing: -0.02em; white-space: nowrap; }
.logo { width: 28px; height: 28px; flex: none; }
.nav { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; padding: 6px 10px; border-radius: 8px; white-space: nowrap; }
.nav a:hover { background: var(--panel); color: var(--ink); }
.top-cta { flex: none; background: var(--accent); color: #fff; text-decoration: none; font-weight: 700; font-size: 14px; padding: 8px 14px; border-radius: 999px; white-space: nowrap; }
.top-cta:hover { background: var(--accent-deep); }
@media (max-width: 640px) {
  .top-in { height: auto; flex-wrap: wrap; row-gap: 0; padding-top: 10px; }
  .nav { order: 3; width: 100%; margin: 4px -10px 0; padding-bottom: 6px; }
  .top-cta { margin-left: auto; }
}

/* 글 */
.art { padding-top: 18px; padding-bottom: 56px; }
.crumbs { font-size: 14px; color: var(--ink-3); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs i { font-style: normal; color: var(--line); }
h1, h2, h3 { font-family: var(--head); letter-spacing: -0.025em; text-wrap: balance; color: var(--ink); }
h1 { font-size: clamp(27px, 5.4vw, 38px); line-height: 1.3; margin: 14px 0 10px; }
h2 { font-size: clamp(22px, 4.2vw, 27px); line-height: 1.38; margin: 0 0 14px; }
h3 { font-size: 19px; line-height: 1.4; margin: 0 0 6px; }
/* 대가성 표시. 본문과 광고 버튼 사이에 끼는 자리라 위아래를 넉넉히 띄우고,
   읽는 흐름을 끊지 않게 오른쪽으로 민다(위 이미지에 딱 붙어 답답했다). */
.byline { margin: 18px 0 20px; font-size: 14px; color: var(--ink-3); text-align: right; }
.hero-img { display: block; max-width: 100%; margin: 0 auto; border-radius: 18px; overflow: hidden; box-shadow: 0 10px 30px -18px rgba(19,35,58,.45); }
.lead { margin: 26px 0 8px; }
.lead p { margin: 0 0 14px; font-size: 18px; line-height: 1.8; }
.detail { margin: 26px auto 0; max-width: 100%; }
.detail a { display: block; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.detail figcaption { margin-top: 8px; font-size: 13px; line-height: 1.6; color: var(--ink-3); }
.art section { padding-top: 34px; margin-top: 34px; border-top: 1px solid var(--line); }
.art section:first-of-type { border-top: 0; }
/* 목차로 뛰었을 때 제목이 고정 머리에 가리지 않게 */
section[id], .picks { scroll-margin-top: 116px; }
@media (min-width: 641px) { section[id], .picks { scroll-margin-top: 76px; } }
.art p { margin: 0 0 14px; }

/* 버튼 상자 */
.cta { margin: 26px 0; padding: 20px 18px 16px; border: 2px solid var(--ink); border-radius: 18px; background: var(--paper); text-align: center; }
.cta--mid { border-width: 1px; border-color: var(--line); background: var(--accent-soft); }
.cta-q { margin: 0 0 12px; font: 700 18px/1.4 var(--head); }
.btn { display: flex; justify-content: center; align-items: center; gap: 10px; width: 100%; max-width: 420px; margin: 0 auto; padding: 15px 18px; border-radius: 14px; background: var(--accent); color: #fff; font: 700 18px/1.3 var(--head); text-decoration: none; box-shadow: 0 6px 0 var(--accent-deep); transition: transform .12s ease, box-shadow .12s ease; }
.btn:hover { transform: translateY(2px); box-shadow: 0 4px 0 var(--accent-deep); }
.btn:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--accent-deep); }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }
.cta-note { margin: 14px 0 0 !important; font-size: 13px; color: var(--ink-3); }

/* 목차 */
.toc { margin: 8px 0 0; padding: 16px 18px; background: var(--panel); border-radius: 14px; }
.toc p { margin: 0 0 6px; font: 700 15px/1.4 var(--head); color: var(--ink-2); }
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc li { position: relative; margin: 4px 0; padding-left: 16px; font-size: 16px; }
.toc li::before { content: ""; position: absolute; left: 2px; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--kraft); }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* 목록 */
.dots { margin: 0 0 16px; padding-left: 22px; }
.dots li { margin: 6px 0; }
.check { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.check li { position: relative; padding: 12px 14px 12px 46px; background: var(--kraft-soft); border-radius: 12px; line-height: 1.6; }
.check li::before { content: ""; position: absolute; left: 14px; top: 14px; width: 20px; height: 20px; border: 2px solid var(--kraft); border-radius: 5px; background: #fff; }
.check li::after { content: ""; position: absolute; left: 20px; top: 17px; width: 7px; height: 12px; border: solid var(--kraft); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.steps { list-style: none; counter-reset: st; margin: 0 0 16px; padding: 0; display: grid; gap: 12px; }
.steps li { counter-increment: st; position: relative; padding: 2px 0 0 50px; min-height: 36px; }
.steps li::before { content: counter(st); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; font: 700 16px/34px var(--head); text-align: center; }
.steps strong { display: block; font-family: var(--head); font-size: 18px; line-height: 1.5; }
.steps span { display: block; color: var(--ink-2); }

/* 알림 상자 */
.box { margin: 18px 0; padding: 16px 18px; border-radius: 14px; }
.box strong { display: block; margin-bottom: 4px; font-family: var(--head); }
.box p { margin: 0 !important; }
.box--note { background: var(--teal-soft); }
.box--note strong { color: var(--teal); }
.box--warn { background: var(--accent-soft); }
.box--warn strong { color: var(--accent-deep); }

/* 표 */
.tbl { overflow-x: auto; margin: 0 0 18px; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.6; font-variant-numeric: tabular-nums; }
th, td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { background: var(--panel); font-family: var(--head); font-weight: 700; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 600; white-space: nowrap; }

/* 손없는날 */
.upcoming { margin: 18px 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; }
.upcoming-h { margin: 0 0 10px !important; font: 700 17px/1.4 var(--head); }
.upcoming-h span { margin-left: 6px; font: 400 13px/1 var(--body); color: var(--ink-3); }
.upcoming-f { margin: 10px 0 0 !important; font-size: 13px; color: var(--ink-3); }
.upcoming .more { display: inline-block; margin-top: 8px; font-size: 15px; font-weight: 600; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.chip { display: inline-flex; align-items: baseline; gap: 2px; padding: 6px 12px; border-radius: 999px; background: var(--teal-soft); color: var(--ink); font-size: 15px; font-variant-numeric: tabular-nums; }
.chip b { font-weight: 700; }
.chip em { margin-left: 6px; font-style: normal; font-size: 12px; font-weight: 700; color: var(--accent-deep); }
.chip--hot { background: var(--accent-soft); }
.chips--plain .chip { background: var(--panel); }
.area { margin: 16px 0; }
.area-h { margin: 0 0 8px !important; font: 700 15px/1.4 var(--head); color: var(--ink-2); }

.cals { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); margin: 6px 0 8px; }
.cal { border: 1px solid var(--line); border-radius: 16px; padding: 14px 12px 12px; background: var(--paper); }
.cal-h { display: flex; justify-content: space-between; align-items: baseline; margin: 0 4px 10px; }
.cal-h strong { font: 700 18px/1.3 var(--head); }
.cal-h strong a { color: var(--ink); }
.cal-h span { font-size: 13px; font-weight: 700; color: var(--teal); }
.cal-g { list-style: none; display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; margin: 0; padding: 0; text-align: center; font-variant-numeric: tabular-nums; }
.cal-g li { min-height: 44px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 4px; font-size: 15px; line-height: 1; }
.cal-g .dow { min-height: 26px; font-size: 12px; font-weight: 700; color: var(--ink-3); }
.cal-g .dow.red { color: var(--red); }
.cal-g .dow.blue { color: var(--blue); }
.cal-g .n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; }
.cal-g .red .n { color: var(--red); }
.cal-g .blue .n { color: var(--blue); }
.cal-g .lucky .n { background: var(--teal); color: #fff; font-weight: 700; }
.cal-g .lu { margin-top: 2px; font-size: 10px; color: var(--teal); }
.cal-g .past { opacity: .35; }
.cal-hol { margin: 8px 4px 0 !important; font-size: 12px; line-height: 1.5; color: var(--red); }
.cal-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 13px; color: var(--ink-3); }
.lg { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-left: 8px; }
.lg:first-child { margin-left: 0; }
.lg-lucky { background: var(--teal); }
.lg-red { background: var(--red); }
.lg-blue { background: var(--blue); }
.go { font-weight: 600; }

/* 링크 묶음 */
.cards { list-style: none; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); margin: 0 0 16px; padding: 0; }
.cards a { display: block; height: 100%; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); }
.cards a:hover { border-color: var(--ink); }
.cards strong { display: block; font: 700 17px/1.45 var(--head); }
.cards span { display: block; margin-top: 4px; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.regions { list-style: none; display: grid; gap: 8px; margin: 0 0 16px; padding: 0; }
.regions li { display: flex; gap: 14px; align-items: center; padding: 12px 16px; background: var(--panel); border-radius: 12px; }
.regions strong { flex: none; width: 3.2em; font: 700 17px/1.4 var(--head); }
.regions span { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.regions a { font-weight: 600; }

/* 자주 묻는 질문 */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; position: relative; padding: 15px 34px 15px 0; font: 700 17px/1.5 var(--head); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font: 400 24px/1 var(--body); color: var(--ink-3); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 16px !important; color: var(--ink-2); }

.related ul { margin: 0; padding-left: 20px; }
.related li { margin: 8px 0; }

/* 홈 */
.home { padding-top: 26px; padding-bottom: 56px; }
.home h1 { margin-top: 6px; }
.home .lead { margin-top: 12px; }
.home section { padding-top: 34px; margin-top: 30px; border-top: 1px solid var(--line); }
.home section:first-of-type { border-top: 0; margin-top: 6px; padding-top: 10px; }
.picks { list-style: none; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin: 0; padding: 0; }
.pick { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.pick-img { display: block; }
.pick-t { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.pick-t p { margin: 0 0 14px; color: var(--ink-2); font-size: 16px; }
.pick-t .btn { margin-top: auto; font-size: 17px; }
.pick-t .cta-note { text-align: center; }

/* 바닥 */
.foot { background: var(--panel); border-top: 1px solid var(--line); padding: 30px 0 40px; font-size: 14px; color: var(--ink-2); }
.foot-brand { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font: 700 16px/1 var(--head); color: var(--ink); }
.foot-disc { margin: 0 0 14px; line-height: 1.7; }
.foot-disc strong { color: var(--ink); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 14px; }
.foot-nav a { color: var(--ink-2); }
.foot-copy { margin: 0; color: var(--ink-3); font-size: 13px; }
