:root {
  --bg: #f5f6f8;
  --card: #ffffff;
  --text: #1b1f24;
  --muted: #5f6b78;
  --line: #e3e6ea;
  --accent: #1f6feb;
  --accent-soft: #e8f0fe;
  --warn: #b54708;
  --warn-soft: #fff4e5;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111418;
    --card: #1b2027;
    --text: #e9edf1;
    --muted: #9aa6b2;
    --line: #2c333c;
    --accent: #6ea8ff;
    --accent-soft: #1d2a3d;
    --warn: #f5a35b;
    --warn-soft: #2e2116;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.top, main, .foot { max-width: 560px; margin: 0 auto; padding: 0 16px; }
.top { padding-top: 14px; }
.home { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; }
h1 { font-size: 24px; line-height: 1.35; margin: 10px 0 6px; }
h2 { font-size: 17px; margin: 0 0 12px; }
h3 { font-size: 15px; margin: 16px 0 6px; }
.by { margin: 0 0 8px; font-size: 14px; color: var(--muted); }
.by a { color: var(--accent); font-weight: 600; text-decoration: none; }
.lead { color: var(--muted); margin: 0 0 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin: 0 0 14px; }
.choice { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); cursor: pointer; }
.choice:first-of-type { border-top: 0; padding-top: 0; }
.choice input { margin-top: 5px; flex: none; width: 18px; height: 18px; accent-color: var(--accent); }
.choice small { display: block; color: var(--muted); font-size: 13px; }
.field { display: block; font-weight: 600; margin: 0 0 14px; }
.field:last-child { margin-bottom: 0; }
.money { display: flex; align-items: center; margin-top: 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); padding: 0 12px; }
.money:focus-within { border-color: var(--accent); }
.money input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 20px; font-weight: 700; text-align: right; padding: 10px 6px 10px 0; outline: none; }
.money em { font-style: normal; color: var(--muted); font-weight: 500; }
.hint, .tip { display: block; font-weight: 400; font-size: 13px; color: var(--muted); margin-top: 4px; }
.hint { text-align: right; min-height: 1em; }
.tip { margin: 8px 0 0; }
.result { background: var(--accent-soft); border-color: transparent; }
.big { font-size: 34px; font-weight: 800; margin: 0; color: var(--accent); line-height: 1.2; }
.sub { color: var(--muted); font-size: 14px; margin: 6px 0 0; }
.warn { background: var(--warn-soft); color: var(--warn); border-radius: 8px; padding: 8px 10px; font-size: 14px; margin: 10px 0 0; }
.rows { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 8px; }
.row { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; padding: 3px 0; }
.row span:first-child { flex: none; max-width: 55%; }
.row span:last-child { text-align: right; font-weight: 600; }
.row.strong { font-weight: 700; }
.seg { display: flex; gap: 8px; margin: 4px 0 0; }
.seg label { flex: 1; position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; text-align: center; padding: 9px 0; border: 1px solid var(--line); border-radius: 10px; font-weight: 600; cursor: pointer; }
.seg input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); }
.plan { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.plan p { margin: 0; }
.plan b { font-size: 24px; color: var(--accent); }
.notice { font-size: 14px; color: var(--text); background: var(--card); border-left: 4px solid var(--accent); border-radius: 8px; padding: 10px 12px; margin: 0 0 14px; }
.how ul { padding-left: 18px; margin: 0; font-size: 14px; }
.how li { margin: 0 0 6px; }
.more a { display: block; color: var(--accent); font-weight: 600; text-decoration: none; }
.privacy { font-size: 13px; color: var(--muted); text-align: center; margin: 4px 0 8px; }
.foot { color: var(--muted); font-size: 12px; text-align: center; padding-bottom: 28px; }
.foot a { color: inherit; }
.seg3 span { padding: 8px 2px; font-size: 14px; line-height: 1.35; }
.chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0 0 14px; }
.chip { font: inherit; font-weight: 700; font-size: 15px; padding: 9px 0; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--text); cursor: pointer; }
.chip[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.chip:focus-visible { outline: 2px solid var(--accent); }
.times { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.times.two { grid-template-columns: repeat(2, 1fr); }
.times .money { margin-top: 0; padding: 0 10px; min-width: 0; }
.times .money input { width: 100%; font-size: 20px; padding-right: 4px; }
.times .money em { font-size: 14px; white-space: nowrap; }
.more a + a { margin-top: 8px; }
[hidden] { display: none !important; }
.nw { white-space: nowrap; }
.hint-warn { display: block; font-weight: 400; font-size: 13px; color: var(--warn); margin: 6px 0 0; }
.hint-warn:empty { margin: 0; }
.date { font-size: 14px; margin: 0 0 16px; padding: 8px 12px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); }
.seg span small { font-weight: 500; font-size: 13px; color: var(--muted); }
.seg input:checked + span small { color: inherit; }
.times .field { margin: 0; }
.times .field .money { margin-top: 6px; }
.opt { font-weight: 400; color: var(--muted); }
.subjects { margin: 14px 0 0; }
.subj { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-weight: 600; font-size: 15px; }
.subj:first-child { border-top: 0; }
.subj .sn { flex: 1; min-width: 0; }
.subj .money { margin-top: 0; flex: none; width: 128px; padding: 0 10px; }
.subj .money input { font-size: 18px; padding: 8px 4px 8px 0; }
.subj .money em { font-size: 13px; white-space: nowrap; }
.verdict { border-radius: 8px; padding: 8px 10px; font-size: 15px; font-weight: 700; margin: 10px 0 0; }
.verdict.ok { background: #e6f4ea; color: #137333; }
.verdict.mid { background: var(--warn-soft); color: var(--warn); }
.verdict.no { background: #fce8e6; color: #b3261e; }
@media (prefers-color-scheme: dark) {
  .verdict.ok { background: #16301f; color: #81c995; }
  .verdict.no { background: #3a1d1b; color: #f2b8b5; }
}
.row.bad span:last-child { color: #b3261e; }
@media (prefers-color-scheme: dark) { .row.bad span:last-child { color: #f2b8b5; } }
#prac-card .times + .tip { margin-bottom: 14px; }

/* 블로그 글·계산기 카드 (2026-11-07 사용자 「가시성이 좋지 않다」) */
.more .pick { display: flex; align-items: center; gap: 12px; padding: 10px; margin-top: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--text, inherit); font-weight: 700; line-height: 1.4; }
.more .pick:hover, .more .pick:focus-visible { border-color: var(--accent); }
.more .pick img, .more .pick i { flex: none; width: 64px; height: 64px; border-radius: 10px; object-fit: cover; }
.more .pick i { display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.more .pick small { display: block; font-size: 12px; font-weight: 600; color: var(--accent); margin-bottom: 2px; }

/* 블로그 글 캐러셀 (2026-11-07 사용자 「F안」 — 썸네일 크게, 아래쪽에 제목 얹어 2줄까지, 넘으면 …)
   D안(썸네일만, 사용자가 보관 요청): 줄 <div class="rail"> 를 <div class="rail rail-d"> 로 바꾸면 제목이 화면에서 숨고(화면 읽기 프로그램은 읽음) 썸네일만 남는다. */
.more .rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 10px) / 2.25); gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 10px -16px 0; padding: 0 16px 4px; scroll-padding: 0 16px; scrollbar-width: none; }
.more .rail::-webkit-scrollbar { display: none; }
.more .rail:not(:has(> :nth-child(3))) { grid-auto-columns: calc((100% - 10px) / 2); margin: 10px 0 0; padding: 0; overflow: visible; }
.more .src { font-style: normal; font-size: 12px; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 2px 7px; border-radius: 6px; margin-left: 6px; vertical-align: 2px; }
.more a.post { position: relative; display: block; margin: 0; scroll-snap-align: start; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--bg); color: #fff; text-decoration: none; }
.more a.post:hover, .more a.post:focus-visible { border-color: var(--accent); }
.more .post img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.more .post span { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 8px; font-size: 13px; font-weight: 700; background: linear-gradient(to top, rgba(10,12,16,.9) 0%, rgba(10,12,16,.8) 70%, rgba(10,12,16,0) 100%); text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.more .post b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.35; max-height: 2.7em; }
/* 글이 1편이면: 썸네일 왼쪽 + 제목 오른쪽 (D안이어도 제목 보임) */
.more .rail:has(> .post:only-child) { grid-auto-columns: 100%; margin: 10px 0 0; padding: 0; overflow: visible; }
.more a.post:only-child { display: flex; align-items: center; color: var(--text); }
.more .post:only-child img { width: 44%; flex: none; }
.more .post:only-child span { position: static; padding: 0 14px; font-size: 16px; background: none; text-shadow: none; }
.more .post:only-child b { -webkit-line-clamp: 3; max-height: 4.05em; }
/* D안 */
.more .rail-d .post:not(:only-child) span { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
