/* 세무회계 인식 — 칼럼(목록·글) 공용 스타일. 색·글꼴은 index.html 과 같은 토큰 */
:root {
  --navy: #0b3d22; --navy-deep: #062818; --blue: #1f7a4a; --blue-btn: #26874f; --sky: #8cc7a0;
  --pale: #ebf1ed; --pale-2: #f5f8f6; --text: #333333; --sub: #4a5550; --muted: #82948a; --ink: #1c2a22; --line-c: #dbe5df;
  --wrap: 1280px; --ease: cubic-bezier(.22,1,.36,1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", sans-serif; color: var(--text); background: #fff; word-break: keep-all; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
.wrap { width: min(100% - 48px, var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.chip { display: inline-block; font-style: normal; font-size: 12px; font-weight: 700; color: #d6342c; border: 1.5px solid #d6342c; border-radius: 3px; padding: 1px 5px; margin-left: 6px; vertical-align: middle; }

/* 헤더 (항상 흰 바탕) */
.hd { position: sticky; top: 0; z-index: 50; height: 78px; display: flex; align-items: center; background: rgba(255,255,255,.96); box-shadow: 0 2px 16px rgba(11,61,34,.07); }
.hd .bar { display: flex; align-items: center; justify-content: space-between; width: 100%; padding-left: 50px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--navy); }
.logo img { height: 44px; width: auto; }
.logo b { display: block; font-size: 23px; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.logo small { display: block; font-size: 9.5px; letter-spacing: .18em; color: var(--sub); }
.gnb { display: flex; gap: clamp(28px, 5vw, 90px); font-size: 17px; font-weight: 600; color: var(--ink); }
.gnb a { position: relative; padding: 8px 0; }
.gnb a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--blue); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.gnb a:hover::after, .gnb a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.gnb a[aria-current="page"] { color: var(--blue); }
.hd-cta { align-self: flex-start; height: 78px; width: 180px; display: grid; place-items: center; background: var(--blue-btn); color: #fff; font-size: 18px; font-weight: 700; border-bottom-left-radius: 24px; transition: background .2s; }
.hd-cta:hover { background: var(--blue); }
.menu-btn { display: none; width: 44px; height: 44px; margin-right: 12px; color: var(--ink); }
.menu-btn span { display: block; height: 2px; background: currentColor; margin: 7px 8px; }

/* 페이지 머리 */
.ph-head { position: relative; overflow: hidden; background: var(--navy); color: #fff; padding: 110px 0 96px; }
.ph-head .ring { position: absolute; right: -120px; top: 50%; translate: 0 -50%; width: 520px; opacity: .9; }
.ph-head .ring circle, .ph-head .ring line { fill: none; stroke: rgba(255,255,255,.22); stroke-width: 2.4; stroke-dasharray: 1.01; stroke-dashoffset: 1.01; animation: draw 2.2s cubic-bezier(.65,0,.35,1) .2s forwards; }
.ph-head .ring line { animation-delay: 1s; }
.ph-head .ring .leaf { fill: var(--sky); opacity: 0; transform-box: fill-box; transform-origin: 0 100%; animation: sprout 1s var(--ease) 2s forwards; }
.crumb { font-size: 14px; color: rgba(255,255,255,.65); }
.crumb a:hover { color: #fff; }
.ph-head h1 { margin-top: 18px; font-size: clamp(34px, 4vw, 54px); font-weight: 700; letter-spacing: -.03em; }
.ph-head p { margin-top: 16px; font-size: 18px; line-height: 1.7; color: rgba(255,255,255,.82); max-width: 34em; }
.js .rise { opacity: 0; animation: up .9s var(--ease) forwards; }
.js .rise.d1 { animation-delay: .1s; } .js .rise.d2 { animation-delay: .22s; } .js .rise.d3 { animation-delay: .34s; }

/* 목록 도구 */
.tools { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 44px 0 10px; }
.cats { display: flex; flex-wrap: wrap; gap: 8px; }
.cats button { height: 44px; padding: 0 20px; border: 1px solid var(--line-c); background: #fff; font-weight: 600; color: var(--sub); transition: all .25s; }
.cats button:hover { border-color: var(--blue); color: var(--blue); }
.cats button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.search { position: relative; width: min(100%, 320px); }
.search input { width: 100%; height: 48px; border: 1px solid var(--line-c); padding: 0 46px 0 16px; font-size: 15px; background: var(--pale-2); transition: border-color .2s, background .2s; }
.search input:focus { outline: none; border-color: var(--blue); background: #fff; }
.search svg { position: absolute; right: 14px; top: 50%; translate: 0 -50%; color: var(--muted); }

/* 대표 글 */
.feat { display: grid; grid-template-columns: 1.15fr 1fr; margin-top: 30px; background: var(--pale-2); border-top-left-radius: 56px; overflow: hidden; transition: box-shadow .4s, transform .4s var(--ease); }
.feat:hover { box-shadow: 0 24px 50px rgba(11,61,34,.12); transform: translateY(-4px); }
.thumb { position: relative; overflow: hidden; background: var(--navy); min-height: 220px; }
.thumb .art { position: absolute; inset: 0; transition: transform 1.2s var(--ease); }
.feat:hover .thumb .art, .card:hover .thumb .art { transform: scale(1.06); }
.thumb img.ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.feat:hover .thumb img.ph, .card:hover .thumb img.ph { transform: scale(1.06); }
.thumb .art svg { width: 100%; height: 100%; display: block; }
.thumb .tag { position: absolute; left: 20px; top: 20px; background: rgba(255,255,255,.92); color: var(--navy); font-size: 13px; font-weight: 700; padding: 6px 10px; }
.feat .body { padding: 50px 48px; display: flex; flex-direction: column; }
.label { font-size: 14px; font-weight: 700; color: var(--blue); }
.feat h2 { margin-top: 14px; font-size: clamp(24px, 2.2vw, 32px); font-weight: 700; line-height: 1.4; color: var(--ink); letter-spacing: -.02em; }
.feat p { margin-top: 16px; font-size: 16px; line-height: 1.8; color: var(--sub); }
.meta { margin-top: auto; padding-top: 26px; display: flex; gap: 14px; font-size: 14px; color: var(--muted); align-items: center; }
.meta .who { display: flex; align-items: center; gap: 8px; color: var(--sub); font-weight: 600; }
.meta .who img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; }

/* 글 카드 */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 26px; margin-top: 56px; }
.card { display: flex; flex-direction: column; transition: transform .4s var(--ease); }
.card:hover { transform: translateY(-6px); }
.card .thumb { aspect-ratio: 16 / 10; min-height: 0; }
.card:nth-child(3n+1) .thumb { border-top-left-radius: 34px; }
.card .label { margin-top: 20px; }
.card h3 { margin-top: 10px; font-size: 20px; font-weight: 700; line-height: 1.45; color: var(--ink); transition: color .25s; }
.card:hover h3 { color: var(--blue); }
.card p { margin-top: 10px; font-size: 15px; line-height: 1.7; color: var(--sub); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .meta { padding-top: 14px; margin-top: 0; }
.card[hidden] { display: none; }
.empty { margin-top: 40px; text-align: center; color: var(--muted); }
.pager { display: flex; justify-content: center; gap: 8px; margin: 70px 0 0; }
.pager a { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line-c); font-weight: 600; color: var(--sub); transition: all .2s; }
.pager a:hover { border-color: var(--blue); color: var(--blue); }
.pager a[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.js [data-r] { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js [data-r].in { opacity: 1; transform: none; }
.js .card[data-r].in:hover { transform: translateY(-6px); }

/* 상담 띠 */
.cta { margin-top: 120px; background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.cta .wrap { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding: 70px 0; flex-wrap: wrap; }
.cta h2 { font-size: clamp(24px, 2.4vw, 34px); font-weight: 400; line-height: 1.45; }
.cta h2 b { font-weight: 700; }
.cta p { margin-top: 10px; color: rgba(255,255,255,.75); }
.cta .btns { display: flex; gap: 10px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 10px; height: 58px; padding: 0 30px; font-weight: 700; background: #fff; color: var(--navy); border-top-right-radius: 22px; transition: gap .3s var(--ease), background .2s; }
.btn:hover { gap: 18px; background: var(--sky); }
.btn.line { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.5); }
.btn.line:hover { background: rgba(255,255,255,.1); }

/* 푸터 */
.ft { padding: 60px 0 46px; font-size: 14px; color: #7b8a81; }
.ft .top { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.ft dl { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 6px 24px; line-height: 1.7; }
.ft dt { display: inline; font-weight: 600; color: #4a5650; } .ft dd { display: inline; margin-left: 6px; }
.ft .copy { margin-top: 26px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; }
.sample { color: #d6342c; font-weight: 700; }

/* ---------- 글 상세 ---------- */
.post-head { background: var(--pale-2); padding: 80px 0 60px; }
.post-head .crumb { color: var(--muted); }
.post-head .crumb a:hover { color: var(--blue); }
.post-head h1 { margin-top: 20px; font-size: clamp(30px, 3.4vw, 46px); font-weight: 700; line-height: 1.35; letter-spacing: -.03em; color: var(--ink); max-width: 22em; }
.post-head .meta { margin-top: 26px; padding-top: 0; }
.review-note { margin-top: 22px; display: inline-flex; gap: 8px; align-items: center; background: #fff; border: 1px solid var(--line-c); padding: 10px 14px; font-size: 14px; color: var(--sub); }
.review-note b { color: var(--blue); }
.post-wrap { display: grid; grid-template-columns: 240px minmax(0, 720px); gap: 80px; justify-content: center; padding: 70px 0 0; }
.toc { position: sticky; top: 110px; align-self: start; font-size: 14px; }
.toc p { font-weight: 700; color: var(--ink); margin-bottom: 14px; }
.toc a { display: block; padding: 8px 0 8px 14px; border-left: 2px solid var(--line-c); color: var(--muted); transition: color .2s, border-color .2s; }
.toc a.on, .toc a:hover { color: var(--blue); border-color: var(--blue); }
.article { font-size: 17.5px; line-height: 1.9; color: #2e3a33; }
.article > * + * { margin-top: 22px; }
.article h2 { margin-top: 64px; font-size: 26px; line-height: 1.45; font-weight: 700; color: var(--ink); letter-spacing: -.02em; scroll-margin-top: 110px; }
.article h2::before { content: ""; display: block; width: 28px; height: 4px; background: var(--blue); margin-bottom: 16px; }
.summary { background: var(--navy); color: #fff; padding: 30px 32px; border-top-left-radius: 34px; }
.summary p { font-weight: 700; font-size: 15px; color: var(--sky); }
.summary ul { margin-top: 12px; }
.summary li { position: relative; padding-left: 20px; line-height: 1.75; font-size: 16.5px; }
.summary li + li { margin-top: 6px; }
.summary li::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 8px; background: var(--sky); border-radius: 50%; }
.table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.6; }
.table th, .table td { padding: 14px 12px; border-bottom: 1px solid var(--line-c); text-align: left; vertical-align: top; }
.table th { background: var(--pale); color: var(--ink); font-weight: 700; }
.table td:first-child { white-space: nowrap; font-weight: 700; color: var(--blue); }
.tip { background: var(--pale-2); border-left: 4px solid var(--blue); padding: 20px 24px; font-size: 16px; }
.faq dt { font-weight: 700; color: var(--ink); margin-top: 22px; }
.faq dt::before { content: "Q. "; color: var(--blue); }
.faq dd { margin-top: 8px; color: var(--sub); }
.author { display: grid; grid-template-columns: 96px 1fr; gap: 22px; align-items: center; margin-top: 70px !important; padding: 28px; border: 1px solid var(--line-c); border-top-left-radius: 34px; }
.author img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; }
.author b { font-size: 19px; color: var(--ink); } .author span { font-size: 14px; color: var(--blue); font-weight: 700; margin-left: 6px; }
.author p { margin-top: 6px; font-size: 15px; line-height: 1.7; color: var(--sub); }
.related { margin-top: 110px; }
.related h2 { font-size: 26px; font-weight: 700; color: var(--ink); }
.related .grid { margin-top: 30px; }
.progress-top { position: fixed; left: 0; top: 0; height: 3px; width: 100%; background: var(--blue); transform-origin: left; transform: scaleX(0); z-index: 60; }

@keyframes up { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes sprout { from { opacity: 0; transform: scale(.2) rotate(-25deg); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-r], .js .rise { opacity: 1; transform: none; }
  .ph-head .ring circle, .ph-head .ring line { stroke-dashoffset: 0; } .ph-head .ring .leaf { opacity: 1; }
}

@media (max-width: 1100px) {
  .gnb { display: none; }
  .gnb.open { display: flex; position: fixed; inset: 78px 0 auto; background: #fff; flex-direction: column; gap: 0; padding: 10px 24px 24px; box-shadow: 0 16px 30px rgba(0,0,0,.12); }
  .gnb.open a { padding: 16px 0; border-bottom: 1px solid var(--pale); }
  .menu-btn { display: block; order: 2; } .logo { margin-right: auto; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .post-wrap { grid-template-columns: minmax(0, 1fr); gap: 30px; }   /* 1fr 은 표 최소폭만큼 넓어져 본문이 화면 밖으로 밀렸다(11/10 대표님 폰) */
  .toc { position: static; display: none; }
}
@media (max-width: 760px) {
  .hd { height: 62px; } .hd .bar { padding-left: 16px; }
  .logo img { height: 34px; } .logo b { font-size: 19px; }
  .hd-cta { height: 62px; width: 96px; font-size: 15px; border-bottom-left-radius: 18px; }
  .gnb.open { inset: 62px 0 auto; }
  .ph-head { padding: 70px 0 60px; } .ph-head .ring { width: 300px; right: -110px; opacity: .6; }
  .ph-head p { font-size: 16px; }
  .cats { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 4px; }
  .cats button { flex: none; height: 40px; padding: 0 16px; }
  .search { width: 100%; }
  .feat { grid-template-columns: 1fr; border-top-left-radius: 34px; }
  .feat .body { padding: 28px 22px; }
  .grid { grid-template-columns: 1fr; gap: 40px; }
  .cta .wrap { padding: 50px 0; }
  .post-head { padding: 50px 0 40px; }
  .article { font-size: 16.5px; }
  .summary { padding: 24px 22px; }
  .table { font-size: 14px; } .table th, .table td { padding: 10px 8px; }
  .table td:first-child { white-space: normal; }
  .table th, .table td { word-break: keep-all; overflow-wrap: anywhere; }   /* 4열 표(구로·관악 칼럼)가 360px 폰에서 넘쳤다 — 낱말은 지키되 넘칠 때만 끊는다 */
  .author { grid-template-columns: 64px 1fr; padding: 20px; } .author img { width: 64px; height: 64px; }
}
@media (max-width: 420px) {
  .table { font-size: 13.5px; } .table th, .table td { padding: 9px 6px; }
}
