/* 세무 블로그 (목록·글·첫 화면 '최근 글') — 색과 글꼴은 style.css 의 :root 값을 그대로 쓴다 */

.blog-page .topbar__nav { margin-left: auto; }
.blog-page .topbar__tel { margin-left: 0; }
@media (max-width: 1150px) { .blog-page .topbar__tel { margin-left: auto; } }

.crumbs { font-size: 13px; color: var(--ink-2); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 목록 ---------- */
.blog { max-width: 1120px; margin: 0 auto; padding: 28px 24px 80px; }
.blog__head { margin-top: 24px; padding: 40px 44px 38px; background: var(--white); border-radius: 18px; box-shadow: 0 1px 2px rgba(15, 42, 79, .06), 0 18px 40px -28px rgba(15, 42, 79, .35); }
.blog__eyebrow { display: inline-block; padding: 3px 12px; border-radius: 999px; background: var(--blue-soft); color: var(--blue-dark); font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.blog__title { margin-top: 14px; font-family: var(--serif); font-size: clamp(28px, 3.4vw, 40px); line-height: 1.3; letter-spacing: -0.02em; color: var(--navy); }
.blog__lead { margin-top: 14px; max-width: 38em; color: var(--ink-2); }
.blog__naver { display: inline-flex; align-items: center; gap: 6px; margin-top: 22px; padding: 9px 18px; border-radius: 999px; background: #03C75A; color: var(--white); font-size: 14px; font-weight: 700; text-decoration: none; transition: filter .15s; }
.blog__naver:hover { filter: brightness(.94); }
.blog__empty { margin-top: 32px; color: var(--ink-2); text-align: center; }

.blog-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.blog-chip { padding: 8px 16px; border: 1px solid var(--rule); border-radius: 999px; background: var(--white); color: var(--ink-2); font-size: 14px; font-weight: 600; text-decoration: none; transition: color .15s, border-color .15s, background-color .15s; }
.blog-chip:hover { color: var(--navy); border-color: var(--navy); }
.blog-chip.is-on { background: var(--navy); border-color: var(--navy); color: var(--white); }

/* 카드 (목록·관련 글·첫 화면 공통) */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin: 24px 0 0; padding: 0; list-style: none; }
.card[hidden] { display: none; }
.card > a { display: flex; flex-direction: column; height: 100%; overflow: hidden; background: var(--white); border-radius: 14px; text-decoration: none; box-shadow: 0 1px 2px rgba(15, 42, 79, .06), 0 12px 28px -22px rgba(15, 42, 79, .5); transition: transform .18s, box-shadow .18s; }
.card > a:hover { transform: translateY(-3px); box-shadow: 0 1px 2px rgba(15, 42, 79, .06), 0 20px 36px -22px rgba(15, 42, 79, .55); }
.card__thumb { display: block; aspect-ratio: 1 / 1; overflow: hidden; background: var(--blue-soft); }
.card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card > a:hover .card__thumb img { transform: scale(1.03); }
.card__ph { display: flex; align-items: center; justify-content: center; height: 100%; padding: 24px; background: var(--navy); color: var(--white); font-family: var(--serif); font-size: 20px; font-weight: 700; line-height: 1.4; text-align: center; }
.card__body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 22px; }
.card__meta { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2); }
.card__meta em { white-space: nowrap; font-style: normal; font-weight: 700; color: var(--blue-dark); }
.card__meta time { font-variant-numeric: tabular-nums; }
.card__title { font-size: 18px; line-height: 1.45; letter-spacing: -0.015em; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card > a:hover .card__title { color: var(--blue-dark); }
.card__desc { font-size: 14px; line-height: 1.6; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* 첫 화면 '최근 글' */
.cards--home { gap: 16px; }
.cards--home .card__title { font-size: 16px; }
.cards--home .card__desc { display: none; }
.blog-more { margin-top: 18px; text-align: right; }
.blog-more a { color: var(--blue-dark); font-weight: 700; text-decoration: none; }
.blog-more a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 글 ---------- */
.post { max-width: 780px; margin: 0 auto; padding: 28px 24px 80px; }
.post__head { margin-top: 28px; padding-bottom: 26px; border-bottom: 1px solid var(--rule); }
.post__meta { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--ink-2); }
.post__meta a { padding: 3px 12px; border-radius: 999px; background: var(--blue-soft); color: var(--blue-dark); font-weight: 700; font-size: 13px; text-decoration: none; }
.post__title { margin-top: 14px; font-family: var(--serif); font-size: clamp(26px, 3.2vw, 36px); line-height: 1.38; letter-spacing: -0.02em; color: var(--navy); }
.post__author { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-size: 14px; color: var(--ink-2); }
.post__author img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; }

.post__body { margin-top: 32px; font-size: 17px; line-height: 1.85; color: var(--ink); overflow-wrap: anywhere; }
.post__body > * + * { margin-top: 14px; }
.post__body .gap { height: 6px; margin: 0; }
.post__body .c { text-align: center; }
.post__body .r { text-align: right; }
.post__body h2 { margin-top: 48px; padding-left: 14px; border-left: 4px solid var(--blue); font-size: 22px; line-height: 1.45; color: var(--navy); }
.post__body h3 { margin-top: 32px; font-size: 19px; line-height: 1.5; color: var(--navy); }
.post__body h2 + *, .post__body h3 + * { margin-top: 14px; }
.post__body strong { font-weight: 700; }
.post__body u { text-decoration-color: var(--marker); text-decoration-thickness: 3px; text-underline-offset: 3px; }
.post__body .hl { color: var(--blue-dark); font-weight: 600; }
.post__body mark { padding: 0 3px; background: linear-gradient(transparent 55%, rgba(255, 201, 77, .6) 55%); color: inherit; }
.post__body a { color: var(--blue); text-underline-offset: 3px; }
.post__body figure { margin: 28px 0; }
.post__body figure img { margin: 0 auto; height: auto; border-radius: 10px; }
.post__body figure.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.post__body figcaption { margin-top: 8px; font-size: 14px; color: var(--ink-2); text-align: center; }
.post__body .quote { margin: 28px 0; padding: 20px 24px; background: var(--white); border-left: 4px solid var(--marker); border-radius: 0 12px 12px 0; }
.post__body .quote p + p { margin-top: 6px; }
.post__body hr { margin: 36px 0; border: 0; border-top: 1px solid var(--rule); }
.post__body .table-wrap { margin: 24px 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.post__body table { width: 100%; min-width: 480px; border-collapse: collapse; background: var(--white); font-size: 15px; line-height: 1.6; }
.post__body td { padding: 10px 12px; border: 1px solid var(--rule); vertical-align: top; }
.post__body tr:first-child td { background: var(--blue-soft); font-weight: 700; color: var(--navy); }
.post__body .linkcard { display: grid; gap: 4px; margin: 24px 0; padding: 16px 20px; background: var(--white); border: 1px solid var(--rule); border-radius: 12px; color: var(--ink); text-decoration: none; }
.post__body .linkcard:hover { border-color: var(--blue); }
.post__body .linkcard span { font-size: 14px; color: var(--ink-2); }
.post__body .linkcard em { font-style: normal; font-size: 13px; color: var(--blue-dark); }
.post__body .attach { padding: 12px 16px; background: var(--white); border-radius: 10px; font-size: 15px; }

.post__source { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--rule); font-size: 14px; color: var(--ink-2); }
.post__source a { color: var(--blue-dark); text-underline-offset: 3px; }

/* 상담 유도 */
.cta { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; align-items: center; gap: 20px; margin-top: 32px; padding: 24px 28px; background: var(--navy); color: var(--white); border-radius: 16px; }
.cta img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; box-shadow: 0 0 0 3px rgba(255, 255, 255, .2); }
.cta strong { font-family: var(--serif); font-size: 19px; line-height: 1.4; }
.cta p { margin-top: 4px; font-size: 14px; color: #C9D6EA; }
.cta__btns { display: flex; flex-direction: column; gap: 8px; }
.cta .btn { min-height: 44px; font-size: 15px; white-space: nowrap; }
.cta .btn--ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .45); }
.cta .btn--ghost:hover { border-color: var(--white); color: var(--white); }
.blog .cta { margin-top: 56px; }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 32px; }
.post-nav a { display: grid; gap: 4px; padding: 16px 18px; background: var(--white); border-radius: 12px; font-size: 15px; font-weight: 600; line-height: 1.45; color: var(--ink); text-decoration: none; }
.post-nav a:hover { color: var(--blue-dark); }
.post-nav span { font-size: 12px; font-weight: 700; color: var(--ink-2); }
.post-nav__next { grid-column: 2; text-align: right; }

.related { margin-top: 56px; }
.related h2 { font-family: var(--serif); font-size: 22px; color: var(--navy); }
.related .cards { gap: 16px; }
.related .card__title { font-size: 16px; }
.related .card__desc { display: none; }

@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .blog, .post { padding: 20px 16px 64px; }
  .blog__head { padding: 28px 22px 26px; border-radius: 14px; }
  .cards { grid-template-columns: 1fr; gap: 14px; }
  .card > a { flex-direction: row; }
  .card__thumb { flex: none; width: 112px; aspect-ratio: auto; }
  .card__ph { font-size: 13px; padding: 10px; }
  .card__body { padding: 14px 16px; gap: 4px; }
  .card__title { font-size: 16px; }
  .card__desc { display: none; }
  .post__body { font-size: 16px; line-height: 1.8; }
  .post__body h2 { margin-top: 40px; font-size: 20px; }
  .cta { grid-template-columns: 56px minmax(0, 1fr); padding: 22px 20px; }
  .cta img { width: 56px; height: 56px; }
  .cta__btns { grid-column: 1 / -1; flex-direction: row; }
  .cta .btn { flex: 1; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav__next { grid-column: auto; text-align: left; }
}
.post__body .disclaimer { margin-top: 32px; font-size: 13px; line-height: 1.6; color: var(--ink-2); }
.post__body > figure:first-child img { max-width: min(100%, 560px); }

/* 첫 화면 상단 메뉴에 '세무 블로그'가 더해져 좁은 PC 폭에서 넘치지 않도록 */
@media (min-width: 961px) and (max-width: 1240px) {
  .topbar__in { gap: 16px; }
  .topbar__nav { gap: 6px; font-size: 14px; }
  .topbar__nav a { padding: 7px 12px; }
  .topbar__tel { padding: 8px 14px; }
}

/* 블로그 페이지에서는 상단 '블로그' 메뉴를 선택된 상태로 */
.topbar__nav a[aria-current="page"] { color: var(--navy); background: linear-gradient(180deg, #FFE08A, var(--marker)); border-color: var(--marker); }
@media (min-width: 961px) and (max-width: 1060px) {
  .topbar__in { gap: 10px; }
  .topbar__nav { gap: 4px; }
  .topbar__nav a { padding: 6px 10px; }
  .brand { padding-right: 14px; }
}
