
.gd_wrap,
.gd_view {
    --gd-accent: var(--brand-accent);
    --gd-accent-deep: var(--brand-accent-deep);
    --gd-accent-soft: var(--brand-accent-soft);
    --gd-ink: var(--brand-ink);
    --gd-sub: var(--brand-sub); /* 보조 문구(docs/22 §3). 한때 본문색으로 잘못 옮겨졌다 */
    --gd-muted: var(--brand-muted);
    --gd-line: var(--brand-line);
    --gd-bg: #ffffff;
    --gd-soft: var(--brand-page);
    --gd-radius: 4px;
    --gd-ease: cubic-bezier(.22, .61, .36, 1);
    color: var(--gd-ink);
    box-sizing: border-box;
    font-size: 16px;         
}
.gd_wrap *,
.gd_view * { box-sizing: inherit; }
.gd_wrap,
.gd_view {
    margin: 0 auto; line-height: 1.65; letter-spacing: -.01em;
}
/* 목록은 화면 폭을 그대로 받고(인트로가 띠라서) 격자는 안쪽에서 잡는다.
   글을 읽는 화면만 좁게 간다 — 한 줄이 길면 읽기 어렵다. */
.gd_wrap { padding: 0 0 60px; }
.gd_view { max-width: var(--rise-container); padding: 0 var(--rise-gutter) 60px; }
/* 글 상세는 두 칸이다 — 왼쪽 목차(208) + 본문(최대 700), 사이 88. 시안 GuideDetail 의 치수 그대로다(docs/22).
   목차가 없는 글도 본문 자리는 같게 둔다 — 글마다 본문이 좌우로 흔들리지 않게. */
.gd_view {
    max-width: calc(1080px + var(--rise-gutter) * 2);
    display: grid; grid-template-columns: 208px minmax(0, 700px); column-gap: 88px; align-items: start;
}
.gd_main { grid-column: 2; grid-row: 1; min-width: 0; }
/* 매물 목록과 같은 짜임이다 — 흰 제목 → 세컨 컬러 면 → 흰 목록(docs/26). */
.gd_intro { background: #fff; }
.gd_intro_head {
    max-width: var(--rise-container); margin: 0 auto; padding: 34px var(--rise-gutter) 36px;
}
/* 시안: 위 여백 56 안에 위치 표시(위 22 는 .public-breadcrumbs 가 갖는다) → 18 → h1 34/900. */
.gd_intro_head .public-breadcrumbs { margin-bottom: 18px; }
.gd_intro h1 {
    font-size: 34px; font-weight: 900; line-height: 1.32; letter-spacing: -.045em;
    color: var(--brand-ink-strong); margin: 0;
}
.gd_intro_band {
    background: var(--brand-second); color: #fff;
    padding: 44px 0 50px; margin: 0 0 48px;
}
/* 두 블록을 나란히 둔다 — 세로로 쌓으면 인트로만 화면을 다 먹는다. */
.gd_intro_inner {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px;
    max-width: var(--rise-container); margin: 0 auto; padding: 0 var(--rise-gutter);
    counter-reset: introstep;
}
.gd_intro_row {
    position: relative; margin-top: 0; counter-increment: introstep;
    padding-top: 18px; border-top: 2px solid var(--brand-line);
}
/* 숫자는 장식이라 마크업이 아니라 CSS 가 만든다 — 본문에 없는 글자를 넣지 않는다(docs/22 §4). */
.gd_intro_row::before {
    content: counter(introstep, decimal-leading-zero);
    display: block; font-size: 12px; font-weight: 800; letter-spacing: .08em;
    color: var(--brand-accent-light); margin-bottom: 8px;
}
.gd_intro_row h2 { padding-right: 44px; }
.gd_intro_row h2 {
    font-size: 18px; font-weight: 700; line-height: 1.5; color: #fff;
    margin: 0 0 10px; padding-top: 0; border-top: 0;
}
.gd_intro_row p { font-size: 15px; color: var(--brand-dark-text); margin: 0; line-height: 1.75; }
/* 목록이 시작하는 자리. 매물 목록의 머리(.ch_listtop)와 같은 선·같은 제목 크기로 연다 — 제목·건수 줄 아래에 분류 칩. */
.gd_listtop {
    display: grid; gap: 14px; margin-bottom: 24px;
    padding-top: 20px; border-top: 2px solid var(--brand-second);
}
.gd_listhead { display: flex; align-items: baseline; gap: 12px; }
.gd_listhead h2 {
    font-size: 24px; font-weight: 900; color: var(--brand-ink-strong); margin: 0;
    letter-spacing: -.03em; white-space: nowrap;
}
.gd_total { font-size: 14px; color: var(--gd-muted); }
.gd_cats { display: flex; flex-wrap: wrap; gap: 8px; }
.gd_cats button {
    display: inline-flex; align-items: center; min-height: 36px; padding: 0 15px; border-radius: 999px;
    cursor: pointer; font-family: inherit;
    border: 1px solid var(--gd-line); background: var(--gd-bg);
    font-size: 14px; font-weight: 600; color: var(--gd-sub); text-decoration: none;
    transition: color .2s var(--gd-ease), border-color .2s var(--gd-ease), background .2s var(--gd-ease);
}
.gd_cats button:hover,
.gd_cats button:focus-visible { color: var(--gd-accent-deep); border-color: var(--gd-accent); }
.gd_cats button.on { background: var(--gd-accent); border-color: var(--gd-accent); color: #fff; }
.gd_list { list-style: none; margin: 0; padding: 0; }
.gd_item { border-bottom: 1px solid var(--gd-line); }
.gd_item:first-child { border-top: 1px solid var(--gd-line); }
.gd_item_link {
    display: flex; gap: 22px; align-items: flex-start;
    padding: 22px 4px; text-decoration: none; color: inherit;
    transition: background .25s var(--gd-ease);
}
.gd_item_link:hover,
.gd_item_link:focus-visible { background: var(--gd-soft); }
/* hover 는 '누를 수 있다'는 표시다 — 들어올리거나 그림자를 주지 않는다(docs/22 §4). */
.gd_thumb {
    flex: 0 0 200px; position: relative; overflow: hidden;
    aspect-ratio: 16 / 9; border-radius: 4px;
    background: var(--brand-gray); border: 1px solid var(--gd-line);
    display: flex; align-items: center; justify-content: center;
}
.gd_thumb img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; display: block;
}
.gd_thumb i { font-style: normal; font-size: 24px; font-weight: 900;
              color: var(--brand-accent-deep); letter-spacing: -.04em; }
.gd_body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.gd_cat {
    display: inline-block; align-self: flex-start; margin-bottom: 8px;
    padding: 3px 9px; border-radius: 3px;
    background: var(--gd-accent-soft); color: var(--gd-accent-deep);
    font-size: 12px; font-weight: 700; letter-spacing: -.02em;
}
.gd_cat a { color: inherit; text-decoration: none; }
/* 상세 머리의 분류 배지는 링크다. 여백이 바깥 span 에 있어 눌리는 건 글자(15px)뿐이었다 —
   배지 가장자리를 눌러도 아무 일이 없었다. 여백을 링크로 옮겨 배지 전체가 눌리게 한다.
   (목록의 배지는 링크가 아니라 그대로 둔다.) */
.gd_v_cat { display: inline-flex; align-items: center; min-height: 26px; font-size: 13px; font-weight: 700; color: var(--brand-ink-strong); }
.gd_title {
    font-size: 19px; font-weight: 700; line-height: 1.45; color: var(--gd-ink);
    margin: 0 0 8px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    transition: color .2s var(--gd-ease);
}
.gd_item_link:hover .gd_title,
.gd_item_link:focus-visible .gd_title { color: var(--gd-accent-deep); }
.gd_sum {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    font-size: 15px; line-height: 1.7; color: var(--gd-sub); margin-bottom: 12px; max-width: 62ch;
}
.gd_meta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto;
           font-size: 13px; color: var(--gd-muted); }
.gd_empty { padding: 60px 0; text-align: center; color: var(--gd-muted); font-size: 16px; }
.gd_v_head { padding: 22px 0 0; }
.gd_view h1 {
    font-size: 34px; font-weight: 900; line-height: 1.35; letter-spacing: -.045em;
    color: var(--brand-ink-strong); margin: 12px 0 18px;
}
/* 시안: 작성자·날짜(왼쪽)와 공유 버튼(오른쪽)이 한 줄, 위아래 괘선. */
.gd_v_bar {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px;
    padding: 14px 0; border-top: 1px solid var(--gd-line); border-bottom: 1px solid var(--gd-line);
}
.gd_v_meta { display: flex; flex-wrap: wrap; gap: 18px; font-size: 13px; color: var(--gd-muted); }
.gd_v_meta [itemprop="name"] { color: var(--gd-sub); font-weight: 600; }
.gd_share { display: flex; align-items: center; gap: 8px; }
.gd_share_btn {
    height: 34px; padding: 0 12px; border: 1px solid var(--gd-line); border-radius: 4px;
    background: var(--gd-bg); font-size: 13px; font-weight: 700; color: var(--brand-ink-strong);
    cursor: pointer; transition: color .2s var(--gd-ease), border-color .2s var(--gd-ease);
}
.gd_share_btn:hover { color: var(--gd-accent-deep); border-color: var(--gd-accent); }
.gd_share_btn { display: inline-flex; align-items: center; justify-content: center; gap: 5px; }
.gd_share_ico { flex: none; }
.gd_share_done { font-size: 13px; color: var(--gd-accent); font-weight: 600; }
.gd_toc {
    margin: 26px 0; padding: 18px 0 0;
    border-top: 2px solid var(--brand-ink-strong);
}
.gd_toc_t { margin: 0 0 10px; font-size: 15px; font-weight: 700; color: var(--gd-ink); }
.gd_toc_t, .gd_rel > h2 { display: flex; align-items: center; gap: 6px; }
.gd_t_ico { flex: none; color: var(--gd-accent); }
/* 목차는 번호를 그리지 않는다 — 본문 h2 가 이미 "1. …" 로 시작해 이중 번호("2. 2. …")가 됐다(프로토타입 .toc-list 도 ul). */
.gd_toc ol { margin: 0; padding-left: 0; list-style: none; }
.gd_toc li { padding: 3px 0; }
/* 목차 항목은 누르는 링크다 — 글자 높이(15px)만큼이라 기준(24px)에 못 미쳤다. */
.gd_toc a { display: flex; align-items: center; min-height: 26px; }
.gd_toc a { color: var(--gd-sub); text-decoration: none; font-size: 15px; }
.gd_toc a:hover,
.gd_toc a:focus-visible { color: var(--gd-accent-deep); text-decoration: underline; }
/* 왼쪽 칸 목차. 시안은 위치 표시·분류·제목을 지나 작성자 줄 높이에서 시작한다(시안 148px + 위치 표시 윗여백 22).
   읽다 보면 목차가 화면 밖으로 사라지므로 칸 안에서 따라 내려오게 붙여 둔다. */
.gd_toc--side {
    grid-column: 1; grid-row: 1; margin: 170px 0 0; padding: 0; border-top: 0;
    position: sticky; top: 24px;
}
.gd_toc--side .gd_toc_t {
    margin: 0 0 12px; padding-bottom: 10px; border-bottom: 2px solid var(--brand-ink-strong); font-size: 13px;
}
.gd_toc--side li { padding: 8px 0; }
.gd_toc--side a { min-height: 24px; font-size: 14px; line-height: 1.6; color: var(--brand-sub); }
.gd_toc--inline { display: none; }
/* 두 칸(208 + 88 + 700)과 좌우 여백이 들어가지 않는 폭부터는 한 칸으로 접고 본문 속 목차를 쓴다. */
@media (max-width: 1060px) {
    .gd_view { display: block; max-width: var(--rise-container); }
    .gd_toc--side { display: none; }
    .gd_toc--inline { display: block; }
}
.gd_body#bo_v_con,
.gd_view #bo_v_con {
    font-size: 17px; line-height: 1.8; color: var(--gd-ink); word-break: break-word;
    padding: 30px 0;
}
.gd_view #bo_v_con img { max-width: 100%; height: auto; border-radius: 8px; }
.gd_view #bo_v_con p { margin: 0 0 18px; }
.gd_view #bo_v_con h2 {
    font-size: 24px; font-weight: 900; line-height: 1.4; letter-spacing: -.035em; color: var(--brand-ink-strong);
    margin: 44px 0 14px; scroll-margin-top: 80px;
}
.gd_view #bo_v_con h3 {
    font-size: 19px; font-weight: 700; line-height: 1.45; color: var(--gd-ink);
    margin: 30px 0 10px; scroll-margin-top: 80px;
}
.gd_view #bo_v_con ul,
.gd_view #bo_v_con ol { margin: 18px 0; padding-left: 22px; }
.gd_view #bo_v_con ul { list-style: disc; }
.gd_view #bo_v_con ol { list-style: decimal; }
.gd_view #bo_v_con li { list-style: inherit; padding: 4px 0; }
.gd_view #bo_v_con li::marker { color: var(--gd-accent); }
.gd_view #bo_v_con blockquote {
    margin: 40px 0 0; padding: 24px 26px; border-top: 2px solid var(--brand-ink-strong);
    background: var(--brand-gray); color: var(--gd-ink); font-size: 16px; /* 시안: 옅은 면 + 위 괘선. 주황은 면에 쓰지 않는다 */
}
.gd_view #bo_v_con a {
    color: var(--gd-accent-deep); font-weight: 600;
    text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
}
.gd_view #bo_v_con a:hover { color: var(--gd-accent); text-decoration-thickness: 2px; }
.gd_bio {
    display: flex; gap: 16px; align-items: flex-start; margin: 44px 0 0;
    padding: 22px 0 0; border-top: 1px solid var(--gd-line);
}
.gd_bio_ico {
    flex: 0 0 40px; height: 40px; border-radius: 3px;
    background: var(--gd-accent); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 19px; font-weight: 800;
}
.gd_bio > div { min-width: 0; }
.gd_bio_n { margin: 0 0 5px; font-size: 15px; font-weight: 700; }
.gd_bio_n a { color: inherit; text-decoration: none; }
.gd_bio_n a:hover, .gd_bio_n a:focus-visible { color: var(--gd-accent-deep); text-decoration: underline; text-underline-offset: 3px; }
.gd_bio_d { margin: 0; font-size: 14px; color: var(--gd-sub); line-height: 1.7; }
.gd_rel { margin: 48px 0 0; }
.gd_rel > h2 {
    margin: 0; padding-bottom: 11px; border-bottom: 2px solid var(--brand-ink-strong);
    font-size: 17px; font-weight: 900; color: var(--brand-ink-strong);
}
.gd_rel ul { list-style: none; margin: 0; padding: 0; }
.gd_rel li a {
    display: flex; gap: 16px; align-items: baseline; padding: 15px 4px;
    border-bottom: 1px solid var(--gd-line); text-decoration: none; color: inherit;
}
.gd_rel li a:hover,
.gd_rel li a:focus-visible { background: var(--brand-page); }
.gd_rel_c { flex: none; width: 80px; font-size: 12px; color: var(--gd-muted); }
.gd_rel h3 { flex: 1 1 auto; min-width: 0; margin: 0; font-size: 16px; font-weight: 700; line-height: 1.5; }
/* 이전·다음 글. 거래의 .ch_v_nb 와 같은 역할이다(docs/23 §3). */
.gd_nb { display: flex; flex-wrap: wrap; gap: 10px; margin: 32px 0 0; }
.gd_nb a {
    flex: 1 1 200px; min-width: 0; padding: 14px 16px;
    border: 1px solid var(--gd-line); border-radius: 4px; text-decoration: none;
}
.gd_nb a:hover, .gd_nb a:focus-visible { border-color: var(--gd-accent); }
.gd_nb span { display: block; font-size: 12px; color: var(--gd-muted); margin-bottom: 5px; }
.gd_nb strong { display: block; font-size: 15px; font-weight: 700; color: var(--gd-ink); line-height: 1.5; }
.gd_actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 32px 0 0; }
.gd_btn {
    display: inline-flex; align-items: center; min-height: 46px; padding: 0 26px; border-radius: 4px;
    border: 1px solid var(--brand-ink-strong); background: var(--gd-bg);
    font-size: 15px; font-weight: 700; color: var(--brand-ink-strong);
    text-decoration: none; cursor: pointer;
    transition: color .2s var(--gd-ease), border-color .2s var(--gd-ease);
}
.gd_btn:hover,
.gd_btn:focus-visible { color: var(--gd-accent-deep); border-color: var(--gd-accent); }
.gd_btn--pri { background: var(--gd-accent); border-color: var(--gd-accent); color: #fff; }
/* 관리자 전용 '삭제'(휴지통으로). 되돌릴 수 있지만 공개 화면에서 바로 내려가므로 색으로 구분한다. */
.gd_btn--danger { border-color: #b91c1c; color: #b91c1c; }
.gd_btn--danger:hover, .gd_btn--danger:focus-visible { border-color: #b91c1c; color: #fff; background: #b91c1c; }
.gd_btn--pri:hover,
.gd_btn--pri:focus-visible { background: var(--gd-accent-deep); color: #fff; }
.gd_count.over { color: #b45309; font-weight: 600; }
@media (max-width: 760px) {
    .gd_intro_head { padding: 30px var(--rise-gutter) 24px; }
    .gd_intro_band { padding: 30px 0 34px; margin-bottom: 34px; }
    .gd_intro_inner { grid-template-columns: 1fr; gap: 0; }
    .gd_intro_row + .gd_intro_row { margin-top: 22px; }
    .gd_intro h1 { font-size: 24px; }
    .gd_intro_row h2 { font-size: 16px; }
    .gd_view h1 { font-size: 25px; }
    .gd_view #bo_v_con { font-size: 16px; padding: 24px 0; }
    .gd_view #bo_v_con h2 { font-size: 20px; margin-top: 34px; }
}
@media (max-width: 560px) {
    .gd_wrap,
.gd_view { padding-bottom: 48px; }
    .gd_intro h1 { font-size: 21px; }
    .gd_item_link { flex-direction: column; gap: 12px; padding: 18px 0; }
    .gd_thumb { flex: 0 0 auto; width: 100%; }
    .gd_title { font-size: 17px; }
    .gd_listhead h2 { font-size: 19px; }
}

/* 카카오톡 공유 버튼 — 브랜드 색(#FEE500/#191600)은 카카오 가이드 값이라 토큰을 쓰지 않는다. */
.gd_share_btn--kakao { background: #fee500; border-color: #fee500; color: #191600; font-weight: 700; }
.gd_share_btn--kakao:hover { background: #f5dc00; border-color: #f5dc00; color: #191600; }
.gd_share_btn--kakao:disabled { opacity: .55; cursor: wait; }

/* 상세 대표 이미지(프로토타입 .featured-image). 규칙이 없으면 원본 크기로 나가 컨테이너를 넘친다 — 2026-09-17 실측. */
.gd_cover { margin: 28px 0 36px; }
.gd_cover img {
    display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover;
    border: 1px solid var(--gd-line); border-radius: 4px; background: var(--brand-gray);
}
.gd_cover--blank {
    display: flex; flex-direction: column; justify-content: space-between; height: 300px; padding: 24px 26px;
    border: 1px solid var(--gd-line); border-radius: 4px; background: var(--brand-gray);
}
.gd_cover_mark { font-size: 18px; font-weight: 900; color: var(--gd-accent); letter-spacing: -.045em; }
.gd_cover_text { max-width: 520px; font-size: 25px; font-weight: 900; line-height: 1.35; letter-spacing: -.04em; color: var(--brand-ink-strong); }
.gd_cover_text span { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 700; letter-spacing: 0; color: var(--gd-muted); }

/* 소개 단락 아이콘(docs/31). 번호(01·02·03)와 같은 줄 오른쪽에 둔다 — 글 흐름을 밀지 않게.
   띠가 제목 바로 아래라 스크롤 반응이 아니라 처음 한 번 그려지는 것으로 충분하다(JS 없음). */
.gd_intro .intro-ico {
    position: absolute; top: 14px; right: 0; width: 34px; height: 34px;
    color: var(--brand-accent-light);
}
.gd_intro .intro-ico * { stroke-dasharray: 1; stroke-dashoffset: 0; animation: gd-intro-draw 1.1s cubic-bezier(.22, .61, .36, 1) .2s both; }
@keyframes gd-intro-draw { from { stroke-dashoffset: 1; } }
@media (prefers-reduced-motion: reduce) { .gd_intro .intro-ico * { animation: none; } }
