/* =====================================================================
   악어새택스 — 디자인 시스템 (v2: 고딕 타이포 · 컴팩트 밀도 · 메가메뉴)
   컨셉: "물결선(waterline) 위의 악어새" — 안전한 절세와 위험한 절세의 경계.
   색: 깊은 강녹색 + 악어새 호박색 포인트 + 맑은 종이빛.
   타이포: 전부 고딕(Pretendard). 제목=두꺼운 고딕 · 본문·라벨·숫자=Pretendard.
   ===================================================================== */

/* ===== 토큰 ===== */
:root {
  /* 색 */
  --river:      #0c2826;   /* 가장 깊은 강녹색 — 다크 섹션/로고/강조 */
  --croc:       #14524a;   /* 브랜드 그린 */
  --croc-600:   #1c6b60;   /* 호버/밝은 그린 */
  --reed:       #6f9b90;   /* 다크 위 보조 텍스트 */
  --plover:     #e0a23f;   /* 악어새 호박색 포인트 (아껴서) */
  --plover-600: #c9892b;
  --plover-soft:#f7e6c4;
  --paper:      #f6f9f6;   /* 페이지 배경 */
  --panel:      #ffffff;   /* 카드 */
  --panel-2:    #eef4f0;   /* 부드러운 패널 */
  --ink:        #15201e;   /* 본문 */
  --muted:      #54655f;   /* 보조 텍스트 */
  --line:       #d8e3dd;   /* 가는 선 */
  --line-soft:  #e7eee9;

  /* 형태 */
  --r-sm: 9px;
  --r:    16px;
  --r-lg: 22px;
  --r-pill: 999px;
  --shadow:    0 18px 44px -16px rgba(12, 40, 38, .22);
  --shadow-sm: 0 8px 22px -10px rgba(12, 40, 38, .16);
  --shadow-menu: 0 22px 50px -20px rgba(12, 40, 38, .32);

  /* 타이포 (전부 고딕) — Pretendard Variable(다이나믹 서브셋: 쓰는 글자만 내려받아 가벼움) */
  --sans:  "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
           "Malgun Gothic", system-ui, sans-serif;
  --head:  var(--sans);                 /* 제목 = 같은 고딕, 더 두껍게 */
  --serif: var(--sans);                 /* (구버전 호환 — 더 이상 명조 아님) */

  /* 레이아웃 (더 넓게 + 여백 절제) */
  --maxw: 1200px;
  --readw: 740px;
  --gut: clamp(1.15rem, 4.2vw, 3rem);
}

/* ===== 리셋·기본 ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 1.0625rem;          /* 본문 기본 17px — 화면 대비 또렷하게 */
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
button { font-family: inherit; }
::selection { background: var(--plover-soft); color: var(--river); }

.container { width: min(var(--maxw), 100% - 2 * var(--gut)); margin-inline: auto; }
.section { padding: clamp(3.4rem, 6.5vw, 5.5rem) 0; }
.section--tight { padding: clamp(2rem, 4vw, 3rem) 0; }
.section--dark { background: var(--river); color: #eaf2ee; }
.section--soft { background: var(--panel-2); }
.center { text-align: center; }

/* ===== 타이포 유틸 ===== */
.eyebrow {
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--croc);
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}
.eyebrow::before {
  content: "";
  width: 1.6rem; height: 1px;
  background: var(--plover);
}
.section--dark .eyebrow { color: var(--plover); }
.section--dark .eyebrow::before { background: var(--plover); }

.display {
  font-family: var(--head);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.022em;
  color: var(--river);
}
.section--dark .display { color: #fff; }

.h-xl { font-size: clamp(2.6rem, 5.6vw, 4.4rem); }
.h-l  { font-size: clamp(1.85rem, 3.4vw, 2.7rem); }
.h-m  { font-size: clamp(1.4rem, 2.4vw, 1.75rem); }

.lead {
  font-size: clamp(1.08rem, 1.5vw, 1.28rem);
  color: var(--muted);
  line-height: 1.62;
}
.section--dark .lead { color: var(--reed); }

.kicker { color: var(--plover-600); font-weight: 700; }

/* ===== 시그니처: 물결선 + 악어새 ===== */
.waterline { position: relative; height: 20px; margin: 0; }
.waterline::before {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 10%, var(--line) 90%, transparent);
}
.section--dark .waterline::before {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.18) 10%, rgba(255,255,255,.18) 90%, transparent);
}

/* 시그니처 마크 = 실제 로고(logo-mark.svg). 마스크로 그려 맥락 색을 그대로 입힘 */
.bird {
  display: block; width: 100%; aspect-ratio: 97.39 / 100;
  background-color: currentColor;
  -webkit-mask: url("logo-mark.svg") center / contain no-repeat;
          mask: url("logo-mark.svg") center / contain no-repeat;
}

/* ===== 버튼 ===== */
.btn {
  --btn-bg: var(--croc);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.45rem;
  border-radius: var(--r-pill);
  font-weight: 700; font-size: .98rem;
  border: 1.5px solid transparent;
  background: var(--btn-bg); color: var(--btn-fg);
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease, color .16s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(0); }
.btn--accent { --btn-bg: var(--plover); --btn-fg: var(--river); }
.btn--accent:hover { background: var(--plover-600); }
.btn--outline { background: transparent; color: var(--croc); border-color: var(--line); }
.btn--outline:hover { border-color: var(--croc); background: #fff; }
.btn--ghost { background: transparent; color: var(--croc); padding-inline: .4rem; }
.btn--ghost:hover { box-shadow: none; color: var(--croc-600); }
.btn--sm { padding: .56rem 1.1rem; font-size: .92rem; }
.btn--lg { padding: 1rem 1.75rem; font-size: 1.04rem; }
.btn--block { width: 100%; justify-content: center; }
.section--dark .btn--outline { color: #fff; border-color: rgba(255,255,255,.3); }
.section--dark .btn--outline:hover { background: rgba(255,255,255,.08); border-color: #fff; }
.btn .arr { transition: transform .16s ease; }
.btn:hover .arr { transform: translateX(3px); }

/* 텍스트 링크(화살표) */
.tlink {
  display: inline-flex; align-items: center; gap: .35rem;
  font-weight: 700; color: var(--croc);
  border-bottom: 1.5px solid transparent;
  transition: border-color .16s ease, gap .16s ease;
}
.tlink:hover { border-color: var(--plover); gap: .55rem; }

/* ===== 헤더 / 내비 ===== */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, .9);
  border-bottom-color: var(--line-soft);
  box-shadow: 0 10px 30px -24px rgba(12, 40, 38, .5);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; height: 72px;
}

/* 브랜드 로고 (마크 이미지 + 워드마크) */
.brand { display: inline-flex; align-items: center; gap: .5rem; }
.brand__mark { height: 30px; width: auto; color: var(--croc); }
.brand__name {
  font-family: var(--head); font-weight: 800; font-size: 1.3rem;
  color: var(--river); letter-spacing: -.018em; line-height: 1;
}
.brand__name .tx { color: var(--croc); }

/* 내비게이션 */
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav__links { display: flex; align-items: center; gap: .3rem; list-style: none; }
.nav__item { position: relative; display: flex; align-items: center; }
.nav__link {
  display: inline-flex; align-items: center; gap: .25rem;
  font-weight: 600; font-size: 1rem; color: var(--muted);
  padding: .6rem .9rem; border-radius: var(--r-sm);
  transition: color .16s ease, background .16s ease;
}
.nav__link:hover { color: var(--river); background: var(--panel-2); }
.nav__item.is-active > .nav__link { color: var(--river); }
.nav__item.is-active > .nav__link::after {
  content: ""; position: absolute; left: .7rem; right: .7rem; bottom: .2rem;
  height: 2px; background: var(--plover); border-radius: 2px;
}
.nav__link .caret {
  width: .62rem; height: .62rem; transition: transform .18s ease; opacity: .7;
}
.nav__item.has-menu:hover .nav__link .caret,
.nav__item.has-menu:focus-within .nav__link .caret { transform: rotate(180deg); }
.nav__cta { margin-left: .5rem; }

/* 메가메뉴 (드롭다운) */
.megamenu {
  position: absolute; top: 100%; right: 0; left: auto;
  margin-top: .55rem; min-width: 264px;
  background: var(--panel); border: 1px solid var(--line-soft);
  border-radius: 18px; box-shadow: var(--shadow-menu);
  padding: .7rem;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  pointer-events: none; transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 70;
}
.megamenu::before {  /* hover 다리: 링크↔메뉴 사이 틈 메움 */
  content: ""; position: absolute; left: 0; right: 0; top: -.7rem; height: .7rem;
}
.nav__item.has-menu:hover > .megamenu,
.nav__item.has-menu:focus-within > .megamenu {
  opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto;
}
.megamenu__col { display: grid; gap: .15rem; }
.megamenu__label {
  font-size: .72rem; font-weight: 600; letter-spacing: .01em;
  color: var(--muted); padding: .5rem .8rem .4rem; display: flex; align-items: center; gap: .4rem;
}
.megamenu a {
  display: flex; flex-direction: column; gap: .15rem;
  padding: .65rem .8rem; border-radius: 12px;
  color: var(--ink); font-weight: 600; font-size: .98rem;
  transition: background .14s ease, color .14s ease;
}
.megamenu a small { font-weight: 500; font-size: .82rem; color: var(--muted); line-height: 1.35; }
.megamenu a:hover { background: var(--panel-2); color: var(--croc); }
.megamenu a:hover small { color: var(--croc-600); }
.megamenu__more {
  margin-top: .4rem; padding: .7rem .8rem; border-top: 1px solid var(--line-soft);
  font-size: .85rem; color: var(--croc) !important; font-weight: 700;
  display: inline-flex; align-items: center;
}

/* 모바일 토글 + 서브 캐럿 */
.nav__toggle {
  display: none; width: 44px; height: 44px;
  background: none; border: 0; cursor: pointer; color: var(--river);
}
.nav__toggle svg { width: 26px; margin: 0 auto; }
.nav__caret {
  display: none; background: none; border: 0; cursor: pointer;
  color: var(--muted); padding: .4rem; margin-left: auto;
}
.nav__caret svg { width: 1rem; transition: transform .18s ease; }

/* ===== 히어로 (홈) ===== */
.hero { position: relative; overflow: hidden; padding: clamp(3.4rem, 7vw, 6rem) 0 clamp(2.4rem, 5vw, 4rem); }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(70% 60% at 88% -8%, rgba(20, 82, 74, .10), transparent 60%),
    radial-gradient(50% 50% at 6% 4%, rgba(224, 162, 63, .08), transparent 60%);
  pointer-events: none;
}
.hero__inner { position: relative; max-width: 820px; }
.hero__title { margin: 1.4rem 0 0; }
.hero__title .accent { color: var(--croc); position: relative; white-space: nowrap; }
.hero__sub { margin: 1.6rem 0 2.2rem; max-width: 34em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .7rem; }
.hero__tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.tag {
  font-family: var(--sans); font-size: .86rem; font-weight: 600; letter-spacing: 0;
  color: var(--croc); background: #fff; border: 1px solid var(--line);
  padding: .42rem .85rem; border-radius: var(--r-pill);
}

/* ===== 섹션 헤더 블록 ===== */
.section-head { max-width: 660px; }
.section-head .display { margin-top: .8rem; }
.section-head .lead { margin-top: .8rem; }
.section-head--center { margin-inline: auto; text-align: center; }

/* ===== 페이지 히어로 (하위 페이지) ===== */
.page-hero { padding: clamp(2.4rem, 5vw, 3.6rem) 0 0; }
.page-hero__inner { max-width: 780px; }
.page-hero .display { margin-top: .8rem; }
.page-hero .lead { margin-top: .9rem; }
.breadcrumb {
  display: flex; gap: .5rem; align-items: center;
  font-family: var(--sans); font-size: .82rem; letter-spacing: 0;
  color: var(--muted); margin-bottom: 1.2rem;
}
.breadcrumb a:hover { color: var(--croc); }
.breadcrumb .sep { opacity: .5; }

/* ===== 카드 그리드 ===== */
.grid { display: grid; gap: 1.2rem; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

.card {
  position: relative; background: var(--panel);
  border: 1px solid var(--line-soft); border-radius: var(--r-lg);
  padding: 1.6rem;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card--link:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--croc); }
.card__tagline { font-family: var(--sans); font-size: .8rem; font-weight: 700; letter-spacing: .01em; color: var(--plover-600); }
.card__title { font-size: 1.22rem; font-weight: 700; margin: .55rem 0 .45rem; color: var(--river); letter-spacing: -.01em; }
.card p { color: var(--muted); font-size: 1rem; line-height: 1.55; }
.card__foot { margin-top: 1rem; }

/* ===== 서비스 상세 블록 ===== */
.svc {
  display: grid; grid-template-columns: 1fr; gap: 1.2rem;
  background: var(--panel); border: 1px solid var(--line-soft);
  border-radius: var(--r-lg); padding: clamp(1.4rem, 3vw, 2.2rem);
  position: relative; overflow: hidden;
}
.svc::before {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--croc), var(--plover));
}
.svc + .svc { margin-top: 1rem; }
.svc__head { display: flex; align-items: baseline; gap: .9rem; flex-wrap: wrap; }
.svc__label { font-family: var(--sans); font-size: .85rem; font-weight: 700; letter-spacing: .01em; color: var(--croc); }
.svc__title { font-family: var(--head); font-size: clamp(1.4rem, 2.4vw, 1.85rem); font-weight: 800; color: var(--river); letter-spacing: -.02em; }
.svc__body { color: var(--muted); font-size: 1.04rem; }
.svc__list { list-style: none; display: grid; gap: .6rem; margin: 1rem 0 0; }
.svc__list li { position: relative; padding-left: 1.7rem; color: var(--ink); }
.svc__list li::before {
  content: ""; position: absolute; left: 0; top: .5em;
  width: .55rem; height: .55rem; border-radius: 50%; border: 2px solid var(--plover);
}
.svc__foot { margin-top: 1.2rem; padding-top: 1.1rem; border-top: 1px solid var(--line-soft); }
@media (min-width: 760px) {
  .svc { grid-template-columns: 1.1fr 1fr; align-items: start; }
  .svc__foot { grid-column: 1 / -1; }
}

/* ===== 체크리스트 ===== */
.checklist { list-style: none; display: grid; gap: .9rem; }
.checklist li { position: relative; padding-left: 2.2rem; color: var(--muted); }
.checklist li b { color: var(--ink); display: block; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .12em;
  width: 1.5rem; height: 1.5rem; border-radius: 50%;
  background: var(--croc) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center / .85rem no-repeat;
}

/* ===== 인용 / 철학 패널 ===== */
.quote-panel {
  background: linear-gradient(155deg, var(--croc), var(--river));
  color: #fff; border-radius: var(--r-lg); padding: clamp(1.6rem, 3.5vw, 2.4rem);
  box-shadow: var(--shadow);
}
.quote-panel__text { font-family: var(--head); font-size: clamp(1.3rem, 2.2vw, 1.6rem); font-weight: 800; line-height: 1.4; letter-spacing: -.02em; }
.quote-panel__by { margin-top: 1.1rem; color: var(--plover); font-weight: 600; font-size: .95rem; }

/* ===== 진행 단계 ===== */
.steps { list-style: none; counter-reset: step; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.steps li {
  position: relative; background: var(--panel); border: 1px solid var(--line-soft);
  border-radius: var(--r); padding: 1.6rem 1.5rem 1.4rem;
}
.steps li::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--sans); font-size: 1rem; font-weight: 700; color: var(--plover-600);
  display: block; margin-bottom: .6rem; letter-spacing: .01em;
}
.steps h3 { font-size: 1.12rem; color: var(--river); margin-bottom: .3rem; letter-spacing: -.01em; }
.steps p { color: var(--muted); font-size: .98rem; }

/* ===== 대표 프로필 ===== */
.profile { display: grid; gap: clamp(1.4rem, 4vw, 2.6rem); align-items: center; }
.profile__photo {
  aspect-ratio: 4 / 5; border-radius: var(--r-lg);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(224,162,63,.18), transparent 60%),
    linear-gradient(160deg, var(--panel-2), #e2ebe6);
  border: 1px solid var(--line);
  display: grid; place-items: center; position: relative; overflow: hidden;
}
.profile__photo img, .profile__photo .bird { width: 56%; opacity: .92; }
.profile__photo .bird { color: var(--croc); }
.profile__photo figcaption {
  position: absolute; bottom: 0; left: 0; right: 0;
  font-family: var(--sans); font-size: .78rem; letter-spacing: .01em;
  color: var(--muted); text-align: center; padding: .6rem; background: rgba(255,255,255,.5);
}
.profile__name { font-family: var(--head); font-size: clamp(1.65rem, 3vw, 2.15rem); font-weight: 800; color: var(--river); letter-spacing: -.02em; }
.profile__role { font-family: var(--sans); font-size: .9rem; font-weight: 600; letter-spacing: .01em; color: var(--croc); margin-top: .4rem; }
.profile__facts { list-style: none; display: grid; gap: .8rem; margin-top: 1.4rem; }
.profile__facts li { display: grid; grid-template-columns: auto 1fr; gap: .9rem; align-items: baseline; }
.profile__facts dt, .profile__facts .k {
  font-family: var(--sans); font-size: .8rem; font-weight: 600; letter-spacing: .01em;
  color: var(--plover-600); white-space: nowrap;
}
.profile__facts .v { color: var(--ink); }
@media (min-width: 820px) { .profile { grid-template-columns: 320px 1fr; } }

/* ===== 게시판(세무정보) ===== */
.chip {
  font-family: var(--sans); font-size: .88rem; font-weight: 600; letter-spacing: 0;
  padding: .48rem .9rem; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: #fff; color: var(--muted);
  cursor: pointer; transition: all .15s ease;
}
.chip:hover { border-color: var(--croc); color: var(--croc); }
.chip.is-active { background: var(--river); border-color: var(--river); color: #fff; }

.posts { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.post-card {
  display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--r-lg);
  padding: 1.6rem; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--croc); }
.post-card__cat {
  align-self: flex-start;
  font-family: var(--sans); font-size: .76rem; font-weight: 600; letter-spacing: .01em;
  color: var(--croc); background: var(--panel-2);
  padding: .26rem .58rem; border-radius: var(--r-pill); margin-bottom: .8rem;
}
.post-card__title { font-family: var(--head); font-size: 1.18rem; font-weight: 700; color: var(--river); line-height: 1.38; letter-spacing: -.01em; }
.post-card__dek { color: var(--muted); font-size: .98rem; margin-top: .55rem; flex: 1; }
.post-card__meta {
  display: flex; align-items: center; gap: .5rem; margin-top: 1.1rem;
  font-family: var(--sans); font-size: .82rem; color: var(--muted);
}
.post-card__meta .ext { margin-left: auto; color: var(--croc); }
.post-card__date { font-family: var(--sans); font-size: .82rem; color: var(--muted); }
.is-hidden { display: none !important; }

/* ── 세무정보 상세(요약) 페이지 ── */
.post-detail__wrap { max-width: 760px; }
.post-detail .breadcrumb { margin-bottom: .2rem; }
.post-detail__cat {
  display: inline-block; margin-top: 1.2rem;
  font-family: var(--sans); font-size: .78rem; font-weight: 700; letter-spacing: .01em;
  color: var(--croc); background: var(--panel-2);
  padding: .28rem .66rem; border-radius: var(--r-pill);
}
.post-detail__title { margin-top: .9rem; }
.post-detail__meta {
  margin-top: .85rem; color: var(--muted); font-size: .92rem;
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
}
.post-detail__meta .dot { opacity: .45; }
.post-detail .prose { margin-top: 1.6rem; }
.post-detail .prose p { font-size: 1.06rem; }
.post-detail .prose p:first-of-type { color: var(--river); font-weight: 600; }   /* 첫 문장 = 리드(강조) */
.post-detail__cont {
  margin-top: 2.2rem; padding: clamp(1.3rem, 3vw, 1.7rem);
  border-radius: var(--r-lg); background: var(--panel-2);
  border: 1px solid var(--line-soft);
}
.post-detail__cont-label { color: var(--muted); font-size: .98rem; line-height: 1.75; margin-bottom: 1.2rem; }
.post-detail__cont-label strong { color: var(--river); }
.post-detail__back { margin-top: 2rem; }

/* 게시판 목록(토스풍 리스트 카드) */
.board {
  display: block; background: var(--panel);
  border: 1px solid var(--line-soft); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.board__row {
  display: flex; align-items: center; gap: .9rem;
  padding: 1.1rem 1.3rem; border-bottom: 1px solid var(--line-soft);
  transition: background .14s ease;
}
.board__row:last-child { border-bottom: 0; }
.board__row:hover { background: var(--panel-2); }
.board__tag {
  flex: none;
  font-family: var(--sans); font-size: .76rem; font-weight: 700; letter-spacing: .01em;
  color: var(--croc); background: var(--panel-2); padding: .26rem .6rem; border-radius: var(--r-pill);
}
.board__ttl { flex: 1; font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
.board__date { flex: none; font-family: var(--sans); font-size: .85rem; color: var(--muted); }
.board__go { flex: none; width: 1.05rem; height: 1.05rem; color: var(--line); transition: transform .16s ease, color .16s ease; }
.board__row:hover .board__go { transform: translateX(3px); color: var(--croc); }
.board__clip { width: .95em; height: .95em; margin-left: .4em; vertical-align: -.12em; color: var(--muted); display: inline-block; }

/* 자료실 첨부파일 */
.attach { margin-top: 2rem; border: 1px solid var(--line-soft); border-radius: var(--r); background: var(--panel); padding: 1.1rem 1.2rem; }
.attach__title { font-family: var(--sans); font-size: .85rem; font-weight: 700; color: var(--muted); margin-bottom: .6rem; }
.attach__item {
  display: flex; gap: .7rem; align-items: center;
  padding: .7rem .8rem; border-radius: var(--r-sm);
  font-weight: 600; color: var(--ink);
  transition: background .15s ease;
}
.attach__item:hover { background: var(--panel-2); }
.attach__item svg { flex: none; width: 1.05rem; height: 1.05rem; color: var(--croc); }
.attach__name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.attach__dl { flex: none; font-family: var(--sans); font-size: .85rem; color: var(--croc); font-weight: 700; }
@media (max-width: 560px) {
  .board__row { flex-wrap: wrap; gap: .45rem .7rem; padding: .95rem 1.05rem; }
  .board__ttl { order: 9; flex-basis: 100%; }
  .board__date { margin-left: auto; font-size: .78rem; }
}

/* ===== 글 상세 (article) ===== */
.article { max-width: var(--readw); margin-inline: auto; }
.article__notice {
  display: flex; gap: .8rem; align-items: flex-start;
  background: var(--plover-soft); border: 1px solid #ecd39a;
  border-radius: var(--r); padding: 1rem 1.1rem; margin-bottom: 1.8rem;
  font-size: .94rem; color: #6b4e16;
}
.article__notice b { color: #573f0f; }
.article__cat { font-family: var(--sans); font-size: .82rem; font-weight: 700; letter-spacing: .01em; color: var(--croc); }
.article__title { font-family: var(--head); font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; color: var(--river); line-height: 1.2; letter-spacing: -.022em; margin: .7rem 0; }
.article__meta { display: flex; align-items: center; gap: .7rem; font-family: var(--sans); font-size: .85rem; color: var(--muted); padding-bottom: 1.4rem; border-bottom: 1px solid var(--line); }
.prose { margin-top: 1.6rem; }
.prose > * + * { margin-top: 1.1rem; }
.prose p { color: #2c3a37; line-height: 1.8; }
.prose h2 { font-family: var(--head); font-size: 1.5rem; font-weight: 800; color: var(--river); margin-top: 2.2rem; letter-spacing: -.02em; }
.prose h3 { font-size: 1.18rem; font-weight: 700; color: var(--river); margin-top: 1.6rem; }
.prose ul { padding-left: 1.2rem; color: #2c3a37; }
.prose li { margin-top: .45rem; }
.prose blockquote {
  border-left: 3px solid var(--plover); padding: .4rem 0 .4rem 1.2rem;
  color: var(--croc); font-weight: 600; font-size: 1.18rem;
}
.prose strong { color: var(--river); }

/* 저자 박스 */
.author {
  display: flex; gap: 1.1rem; align-items: center;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--r); padding: 1.2rem; margin-top: 2.4rem;
}
.author__avatar { width: 56px; height: 56px; flex: none; border-radius: 50%; background: linear-gradient(160deg, var(--croc), var(--river)); display: grid; place-items: center; overflow: hidden; }
.author__avatar img, .author__avatar .bird { width: 64%; }
.author__avatar .bird { color: var(--plover); }
.author__name { font-weight: 700; color: var(--river); }
.author__name b { color: var(--croc); }
.author__desc { font-size: .92rem; color: var(--muted); margin-top: .15rem; }

/* ===== 상담문의 ===== */
.contact-grid { display: grid; gap: clamp(1.5rem, 4vw, 2.4rem); align-items: start; }
@media (min-width: 880px) { .contact-grid { grid-template-columns: 1.1fr .9fr; } }
.form { display: grid; gap: .9rem; }
.field { display: grid; gap: .4rem; }
.field label { font-family: var(--sans); font-size: .85rem; font-weight: 600; letter-spacing: 0; color: var(--ink); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 1rem; color: var(--ink);
  padding: .82rem 1rem; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: #fff; transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 170px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--croc);
  box-shadow: 0 0 0 3px rgba(20, 82, 74, .12);
}
.form__row { display: grid; gap: .9rem; grid-template-columns: 1fr 1fr; }
.consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.consent input { margin-top: .2rem; }
.form__note { display: none; align-items: center; gap: .5rem; color: var(--croc); font-weight: 700; background: var(--panel-2); padding: .9rem 1.1rem; border-radius: var(--r-sm); }
.form__note.show { display: flex; }
.form__note--error { color: #a63d26; background: #fbeeea; }

/* 오시는길 지도 */
.map-embed {
  margin-top: 1.8rem; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line-soft); box-shadow: var(--shadow-sm);
  aspect-ratio: 16 / 7; background: var(--panel-2);
}
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-links { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.1rem; }
@media (max-width: 560px) { .map-embed { aspect-ratio: 4 / 3; } }

.channels { display: grid; gap: .8rem; }
/* 넓은 화면: 채널 카드 2열(짧은 항목끼리 나란히) — 왼쪽 폼과 높이 균형 */
@media (min-width: 880px) {
  .channels { grid-template-columns: 1fr 1fr; }
  .channel--wide { grid-column: 1 / -1; }
}
.channel {
  display: flex; gap: .9rem; align-items: center;
  background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--r);
  padding: 1rem 1.1rem; transition: border-color .16s ease, transform .16s ease;
}
.channel:hover { border-color: var(--croc); transform: translateX(3px); }
.channel__ic { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--panel-2); }
.channel__ic svg { width: 22px; color: var(--croc); }
.channel__k { font-weight: 700; color: var(--river); }
.channel__v { font-size: .9rem; color: var(--muted); font-family: var(--sans); }
.channel--kakao .channel__ic { background: #FEE500; }
.channel--kakao .channel__ic svg { color: #3c1e1e; }

/* ===== CTA 밴드 ===== */
.cta-band { text-align: center; }
.cta-band .display { margin: .9rem 0; }
.cta-band__btns { display: flex; gap: .7rem; justify-content: center; flex-wrap: wrap; margin-top: 1.6rem; }

/* ===== 플로팅 상담 버튼 ===== */
.fab {
  position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem);
  z-index: 55; display: inline-flex; align-items: center; gap: .55rem;
  padding: .85rem 1.3rem; border-radius: var(--r-pill);
  background: var(--plover); color: var(--river); font-weight: 800;
  box-shadow: 0 12px 30px -8px rgba(224, 162, 63, .6);
  transition: transform .18s ease, box-shadow .18s ease;
}
.fab:hover { transform: translateY(-3px) scale(1.02); }
.fab svg { width: 20px; }

/* ===== 푸터 ===== */
.site-footer { background: var(--river); color: #cfded8; padding-top: 0; }
.site-footer__inner { padding: clamp(2.6rem, 5vw, 3.8rem) 0 2.2rem; }
.site-footer__top { display: grid; gap: 2rem; }
.footer-brand { display: inline-flex; align-items: center; }
.footer-logo { height: 108px; width: auto; max-width: 100%; }
.footer-blurb { margin-top: 1.1rem; max-width: 32em; color: #b3cabf; font-size: 1.05rem; }
.footer-cols { display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.footer-col h4 { font-family: var(--sans); font-size: 1rem; font-weight: 700; letter-spacing: 0; color: var(--plover); margin-bottom: .95rem; }
.footer-col a, .footer-col p { display: block; color: #cdded7; font-size: 1.02rem; margin-bottom: .62rem; }
.footer-col a:hover { color: #fff; }
.site-footer__bot {
  margin-top: 2.4rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; justify-content: space-between; align-items: center;
  font-size: .84rem; color: var(--reed);
}
.site-footer__bot .biz { font-family: var(--sans); font-size: .84rem; letter-spacing: 0; }
.site-footer__links { display: inline-flex; flex-wrap: wrap; gap: .6rem 1.2rem; align-items: center; }
.site-footer__links a { color: #cdded7; }
.site-footer__links a:hover { color: #fff; }
@media (min-width: 820px) { .site-footer__top { grid-template-columns: 1.3fr 2fr; } }

/* ===== 스크롤 리빌 ===== */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .07s; }
.reveal[data-delay="2"] { transition-delay: .14s; }
.reveal[data-delay="3"] { transition-delay: .21s; }

/* ===== 접근성 ===== */
:focus-visible { outline: 3px solid var(--plover); outline-offset: 2px; border-radius: 4px; }
.skip-link {
  position: absolute; left: -999px; top: .5rem; z-index: 100;
  background: var(--river); color: #fff; padding: .6rem 1rem; border-radius: var(--r-sm);
}
.skip-link:focus { left: .5rem; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .post-card, .channel, .fab, .megamenu { transition: none; }
}

/* ===== 반응형: 모바일 내비 ===== */
@media (max-width: 880px) {
  .nav__links {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: .4rem var(--gut) 1.4rem;
    box-shadow: var(--shadow); display: none;
    max-height: calc(100vh - 72px); overflow-y: auto;
  }
  .nav__links.open { display: flex; }
  .nav__item { flex-wrap: wrap; border-bottom: 1px solid var(--line-soft); }
  .nav__item:last-child { border-bottom: 0; }
  .nav__link { flex: 1; padding: .95rem .2rem; font-size: 1.06rem; border-radius: 0; }
  .nav__link:hover { background: transparent; }
  .nav__item.is-active > .nav__link { color: var(--croc); }
  .nav__item.is-active > .nav__link::after { display: none; }
  .nav__link .caret { display: none; }
  .nav__caret { display: inline-flex; }

  /* 모바일에선 메가메뉴를 인라인 아코디언으로 */
  .megamenu {
    position: static; opacity: 1; visibility: visible; transform: none;
    pointer-events: auto; box-shadow: none; border: 0; border-radius: 0;
    background: transparent; padding: 0 0 .6rem .3rem; margin: 0;
    min-width: 0; width: 100%; display: none;
  }
  .nav__item.open .megamenu { display: grid; }
  .megamenu::before { display: none; }
  .megamenu__label { padding-top: .3rem; }
  .nav__item.open .nav__caret svg { transform: rotate(180deg); }

  .nav__cta { margin: .8rem 0 0; }
  .nav__cta .btn { width: 100%; justify-content: center; }
  .nav__toggle { display: block; }
}
@media (max-width: 560px) {
  .form__row { grid-template-columns: 1fr; }
  .fab span { display: none; }
  .fab { padding: .9rem; }
}

/* ===== 토스풍 게시판/고객센터 (공지·자료실) ===== */
/* 상단 고정 분류 탭 */
.tabbar {
  position: sticky; top: 72px; z-index: 40;
  margin-top: clamp(1.6rem, 3vw, 2.2rem);
  background: rgba(246, 249, 246, .82);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.tabbar__inner { display: flex; flex-wrap: wrap; gap: .5rem; padding: .75rem 0; }

/* 게시판 본문 영역 */
.board-area { padding-top: clamp(2rem, 4vw, 2.8rem); }
.board-block + .board-block { margin-top: clamp(2.4rem, 5vw, 3.6rem); }
.board-block__head { display: flex; align-items: baseline; gap: .8rem; flex-wrap: wrap; margin-bottom: 1rem; }
.board-block__head .h-m { color: var(--river); font-family: var(--head); font-weight: 800; letter-spacing: -.02em; }
.board-block__sub { color: var(--muted); font-size: .96rem; }

/* FAQ 검색 */
.faq-search { position: relative; margin-bottom: 1rem; }
.faq-search svg {
  position: absolute; left: 1.05rem; top: 50%; transform: translateY(-50%);
  width: 1.15rem; height: 1.15rem; color: var(--muted); pointer-events: none;
}
.faq-search input {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--ink);
  padding: .92rem 1.1rem .92rem 2.8rem; border: 1px solid var(--line);
  border-radius: var(--r-pill); background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.faq-search input::placeholder { color: var(--muted); }
.faq-search input:focus { outline: none; border-color: var(--croc); box-shadow: 0 0 0 3px rgba(20, 82, 74, .12); }

/* FAQ 아코디언 (<details>) */
.faq { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.qa { border-bottom: 1px solid var(--line-soft); }
.qa:last-of-type { border-bottom: 0; }
.qa > summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: 1rem;
  padding: 1.15rem 1.3rem; font-weight: 700; color: var(--river); letter-spacing: -.01em;
  transition: background .14s ease, color .14s ease;
}
.qa > summary::-webkit-details-marker { display: none; }
.qa > summary::marker { content: ""; }
.qa > summary:hover { background: var(--panel-2); }
.qa__q { flex: 1; }
.qa__chevron { flex: none; width: 1.15rem; height: 1.15rem; color: var(--muted); transition: transform .2s ease, color .2s ease; }
.qa[open] > summary { color: var(--croc); }
.qa[open] > summary .qa__chevron { transform: rotate(180deg); color: var(--croc); }
.qa__a { padding: 0 1.3rem 1.25rem; }
.qa__a p { color: #2c3a37; line-height: 1.75; }
.qa__a b { color: var(--river); }
.qa.is-hidden { display: none; }
.faq-empty { padding: 1.6rem 1.3rem; color: var(--muted); text-align: center; }
