/* 퇴사길 — 퇴근길 지하철 노선도: 흰 바탕, 하늘색 노선, 역 동그라미(지금 역은 채움). */
:root {
  --ground: #ffffff;
  --ink: #1b1f24;
  --ink-2: #474e57;
  --ink-3: #5f6771;
  --line: #0a78ad;
  --line-deep: #075e88;
  --line-soft: #e4f2f9;
  --rule: #e4e7ea;
  --font: "Spoqa Han Sans Neo", "Apple SD Gothic Neo", sans-serif;
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M4 2.5h5.5V8M9.5 2.5 2.5 9.5' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: #b9c6cf transparent; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.8; word-break: keep-all; overflow-wrap: anywhere; }
::selection { background: var(--line-soft); color: var(--ink); }
a { color: var(--line-deep); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--line); }
:focus-visible { outline: 2px solid var(--line); outline-offset: 3px; border-radius: 4px; }

/* 머리 */
.bar { border-bottom: 6px solid var(--line); }
.bar-in { max-width: 760px; margin: 0 auto; padding: 16px 20px 4px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.mark { display: inline-flex; align-items: center; gap: 9px; font-size: 23px; font-weight: 700; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
.dot { width: 18px; height: 18px; border: 4px solid var(--line); border-radius: 50%; background: #fff; }
.sub { font-size: 13.5px; color: var(--ink-3); }
.lines { max-width: 760px; margin: 0 auto; padding: 8px 20px 12px; display: flex; gap: 18px; overflow-x: auto; scrollbar-width: none; }
.lines::-webkit-scrollbar { display: none; }
.ln { flex: none; font-size: 15px; font-weight: 500; color: var(--ink-2); text-decoration: none; padding: 4px 0; border-bottom: 3px solid transparent; transition: color .18s ease-out, border-color .18s ease-out; }
.ln:hover { color: var(--ink); border-bottom-color: var(--line-soft); }
.ln[aria-current="page"] { color: var(--ink); font-weight: 700; border-bottom-color: var(--line); }

.page { max-width: 760px; margin: 0 auto; padding: 26px 20px 56px; }
.intro h1, .post h1 { font-size: 27px; font-weight: 700; line-height: 1.42; letter-spacing: -0.025em; margin: 6px 0 10px; text-wrap: balance; }
.intro p { margin: 0 0 24px; color: var(--ink-2); font-size: 16.5px; }

/* 노선도 */
.route { margin: 8px 0 26px; padding: 16px 18px 6px; background: var(--line-soft); border-radius: 14px; }
.route-top { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 8px; font-size: 14px; font-weight: 700; color: var(--line-deep); }
.route-top span:last-child { font-weight: 500; color: var(--ink-3); }
.stops { list-style: none; margin: 0; padding: 0; position: relative; }
.stops li { position: relative; padding: 6px 0 12px 38px; }
.stops li::before { content: ""; position: absolute; z-index: 1; left: 1px; top: 9px; width: 22px; height: 22px; border: 5px solid var(--line); border-radius: 50%; background: #fff; }
.stops li:not(:last-child)::after { content: ""; position: absolute; left: 9px; top: 20px; bottom: -20px; width: 6px; background: var(--line); }
.stops li.now::before { background: var(--line); box-shadow: 0 0 0 3px var(--line-soft), 0 0 0 5px var(--line); }
.when { display: block; font-size: 14px; font-weight: 700; color: var(--line-deep); }
.what { display: block; font-size: 16.5px; font-weight: 500; line-height: 1.6; }
.what a { color: var(--ink); text-decoration: none; }
.what a:hover, .what a:focus-visible { text-decoration: underline; }
.what a:hover { color: var(--line-deep); }
.route.big .what { font-size: 17px; }

/* 글 */
.crumb { font-size: 13.5px; color: var(--ink-3); }
.crumb a { color: var(--ink-3); text-decoration: none; }
.crumb a:hover { color: var(--line-deep); }
.lead { margin: 0 0 18px; font-size: 17.5px; font-weight: 500; line-height: 1.75; }
.toc { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 10px 0; margin: 0 0 10px; }
.toc summary { cursor: pointer; font-weight: 700; font-size: 15px; color: var(--ink-2); list-style: none; display: flex; align-items: center; gap: 8px; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::before { content: ""; width: 10px; height: 10px; border: 3px solid var(--line); border-radius: 50%; background: #fff; }
.toc[open] summary::before { background: var(--line); }
.toc ol { margin: 8px 0 2px; padding-left: 22px; font-size: 15.5px; line-height: 1.9; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--line-deep); }
.body > * { max-width: 68ch; }
.body h2 { font-size: 21px; font-weight: 700; line-height: 1.45; margin: 44px 0 12px; scroll-margin-top: 16px; }
.body h2::before { content: ""; display: inline-block; width: 12px; height: 12px; border: 3.5px solid var(--line); border-radius: 50%; margin-right: 9px; vertical-align: 1px; }
.body h3 { font-size: 18px; margin: 26px 0 8px; }
.body p { margin: 0 0 18px; }
.body ul, .body ol { margin: 0 0 18px; padding-left: 22px; }
.body li { margin: 6px 0; }
.body b { font-weight: 700; }
.tip { background: var(--line-soft); border-radius: 12px; padding: 13px 16px; margin: 0 0 20px; }
.tip p { margin: 0; font-size: 16px; }
.table-wrap { margin: 6px 0 22px; overflow-x: auto; }
.body table { width: 100%; border-collapse: collapse; font-size: 15.5px; font-variant-numeric: tabular-nums; }
.body th { text-align: left; font-weight: 700; padding: 10px 12px; border-bottom: 3px solid var(--line); }
.body td { padding: 10px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.refs, .more { margin-top: 36px; }
.refs h2, .more h2 { font-size: 17px; font-weight: 700; margin: 0 0 8px; }
.refs ul { margin: 0; padding-left: 20px; font-size: 15px; }
.refs li { margin: 6px 0; }
.out::after { content: ""; display: inline-block; width: .7em; height: .7em; margin-left: 3px; background: currentColor; -webkit-mask: var(--arrow) center/contain no-repeat; mask: var(--arrow) center/contain no-repeat; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { border-bottom: 1px solid var(--rule); }
.rows a { display: block; padding: 13px 0; color: var(--ink); text-decoration: none; }
.rows .t { display: block; font-weight: 700; font-size: 16.5px; line-height: 1.5; }
.rows a:hover .t { color: var(--line-deep); }
.rows .m { display: flex; gap: 10px; font-size: 13.5px; color: var(--ink-3); margin-top: 2px; }
.end { width: calc(100% - 40px); max-width: 720px; margin: 0 auto; padding: 22px 0 40px; border-top: 1px solid var(--rule); font-size: 13.5px; color: var(--ink-3); }
.end p { margin: 0 0 6px; }
.end a { color: var(--ink-2); }
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .intro h1, .post h1 { font-size: 23px; }
  .body table, .body thead, .body tbody, .body tr, .body td { display: block; }
  .body thead { display: none; }
  .body tr { border-top: 3px solid var(--line); margin: 0 0 12px; padding: 4px 0; }
  .body td { border: 0; padding: 5px 0; display: flex; justify-content: space-between; gap: 14px; text-align: right; }
  .body td::before { content: attr(data-k); color: var(--ink-3); font-size: 13.5px; font-weight: 700; text-align: left; flex: none; max-width: 45%; }
  .body td:first-child { font-weight: 700; text-align: left; }
  .body td:first-child::before { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
