/* 레이아웃 8 — 변경 기록형: 어두운 바탕 + 호박색 꼬리표, Gothic A1 + JetBrains Mono */
:root {
  --bg: #0F1113; --panel: #16191C; --ink: #E8E6E1; --ink2: #B9BCC0; --muted: #80858B; --line: #262A2F; --line2: #353A40;
  --hi: #F2B544; --hi-d: #C98F1E;
  --sans: 'Gothic A1', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.7 var(--sans); word-break: keep-all; overflow-wrap: anywhere; overflow-x: hidden; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p, ol, ul { margin: 0; }
img { display: block; max-width: 100%; }
.ic { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* 머리글 */
.cl-top { border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; background: rgba(15,17,19,.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.cl-top__in { max-width: 1000px; margin: 0 auto; padding: 0 24px; height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cl-brand { display: flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 800; font-size: 15.5px; white-space: nowrap; }
.cl-brand .brand__mark { width: 22px; height: 22px; color: #2E3338; }
.cl-brand span { font: 500 13px/1 var(--mono); color: var(--muted); }
.cl-nav { display: flex; gap: 2px; }
.cl-nav__a { padding: 6px 11px; border-radius: 6px; font-size: 14px; color: var(--muted); text-decoration: none; white-space: nowrap; }
.cl-nav__a:hover { color: var(--ink); background: var(--panel); }
.cl-nav__a.is-on { color: var(--ink); background: var(--panel); }

.cl-wrap { max-width: 1000px; margin: 0 auto; padding: 0 24px 96px; }
.cl-pad { padding-top: 36px; }

/* 머리 */
.cl-head { padding: 64px 0 36px 240px; }
.cl-head__k { font: 500 12px/1 var(--mono); color: var(--hi); letter-spacing: .06em; }
.cl-head__t { margin-top: 14px; font-size: 40px; line-height: 1.25; font-weight: 800; letter-spacing: -0.03em; }
.cl-head__l { margin-top: 12px; max-width: 560px; color: var(--ink2); font-size: 16px; }
.cl-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-left: 240px; }
.cl-seg { display: flex; flex-wrap: wrap; padding: 3px; gap: 2px; border: 1px solid var(--line2); border-radius: 8px; background: var(--panel); }
.cl-seg__a { padding: 6px 12px; border-radius: 6px; font-size: 13.5px; color: var(--muted); text-decoration: none; white-space: nowrap; }
.cl-seg__a:hover { color: var(--ink); }
.cl-seg__a.is-on { background: var(--ink); color: var(--bg); font-weight: 700; }
.cl-search { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border: 1px solid var(--line2); border-radius: 8px; color: var(--muted); }
.cl-search:focus-within { border-color: var(--hi); }
.cl-search__in { border: 0; outline: none; background: transparent; width: 170px; min-width: 0; font-size: 14px; color: var(--ink); }
.cl-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.cl-tags--bar { margin: 14px 0 0 240px; }
.cl-tag { padding: 2px 8px; border-radius: 4px; font: 500 12px/1.6 var(--mono); color: var(--ink2); background: var(--panel); border: 1px solid var(--line); text-decoration: none; }
.cl-tag:hover { border-color: var(--line2); color: var(--ink); }
.cl-tag.is-on { background: var(--hi); border-color: var(--hi); color: var(--bg); }
.cl-sum { margin: 28px 0 0 240px; padding: 10px 14px; border: 1px solid var(--line2); border-radius: 8px; font-size: 14px; color: var(--ink2); display: flex; gap: 12px; flex-wrap: wrap; }
.cl-sum a { color: var(--hi); margin-left: auto; }
.cl-empty { padding: 48px 0 48px 240px; color: var(--muted); }

/* 기록 꼭지 */
.cl-entry { display: grid; grid-template-columns: 240px minmax(0, 1fr); border-top: 1px solid var(--line); padding: 48px 0 56px; }
.cl-feed .cl-entry:first-of-type { margin-top: 32px; }
.cl-side { position: relative; }
.cl-side__in { position: sticky; top: 84px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding-right: 24px; }
.cl-ver { font: 700 13px/1 var(--mono); padding: 5px 8px; border-radius: 4px; background: var(--hi); color: var(--bg); }
.cl-ver--ok { background: #7FD1A0; }
.cl-date { margin-top: 10px; font: 500 15px/1.3 var(--mono); color: var(--ink); }
.cl-ago { font-size: 13px; color: var(--muted); }
.cl-kind { margin-top: 6px; font-size: 13px; color: var(--ink2); text-decoration: none; border-bottom: 1px dotted var(--line2); }
.cl-kind:hover { color: var(--hi); }
.cl-main { max-width: 640px; min-width: 0; }
.cl-img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); margin-bottom: 28px; }
.cl-t { font-size: 28px; line-height: 1.35; font-weight: 800; letter-spacing: -0.03em; }
.cl-t a { text-decoration: none; }
.cl-t a:hover { text-decoration: underline; text-decoration-color: var(--hi); text-underline-offset: 5px; }
.cl-m { margin-top: 8px; font-size: 13.5px; color: var(--muted); }
.cl-prose { margin-top: 24px; font-size: 16px; line-height: 1.85; color: var(--ink2); }
.cl-prose > * + * { margin-top: 1em; }
.cl-prose h2 { margin-top: 1.9em; font-size: 15px; font-weight: 800; color: var(--ink); display: flex; align-items: center; gap: 10px; }
.cl-prose h2::before { content: ''; width: 8px; height: 8px; border-radius: 2px; background: var(--hi); flex: none; }
.cl-prose h3 { font-size: 15px; color: var(--ink); margin-top: 1.6em; }
.cl-prose h2 + *, .cl-prose h3 + * { margin-top: .5em; }
.cl-prose ul, .cl-prose ol { padding-left: 1.3em; }
.cl-prose li::marker { color: var(--muted); }
.cl-prose strong { color: var(--ink); font-weight: 700; }
.cl-prose a { color: var(--hi); }
.cl-foot2 { margin-top: 28px; padding-top: 18px; border-top: 1px dashed var(--line2); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; }
.cl-acts { display: flex; flex-wrap: wrap; gap: 16px; }
.cl-acts--btn { margin-top: 28px; gap: 10px; }
.cl-link { font-size: 14px; color: var(--muted); text-decoration: none; }
.cl-link:hover { color: var(--ink); }
.cl-link--hi { color: var(--hi); font-weight: 700; }
.cl-link--hi:hover { color: #FFD27F; }
.cl-back { display: inline-block; margin-bottom: 8px; font-family: var(--mono); font-size: 13px; }
.cl-older { display: flex; align-items: center; gap: 14px; padding: 8px 0 0 240px; }
.cl-older span { font: 500 12.5px/1 var(--mono); color: var(--muted); }
.cl-end { padding: 12px 0 0 240px; font: 500 12.5px/1 var(--mono); color: var(--muted); }

/* 버튼 */
.cl-btn { display: inline-flex; align-items: center; justify-content: center; padding: 11px 20px; border-radius: 8px; border: 1px solid var(--hi); background: var(--hi); color: var(--bg); font-size: 14.5px; font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap; }
.cl-btn:hover { background: #FFD27F; border-color: #FFD27F; }
.cl-btn--line { background: transparent; border-color: var(--line2); color: var(--ink); font-weight: 500; }
.cl-btn--line:hover { background: var(--panel); border-color: var(--muted); }

/* 한 꼭지 보기 */
.cl-cta { margin-left: 240px; display: flex; gap: 24px; align-items: center; justify-content: space-between; padding: 24px 26px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line2); max-width: 640px; }
.cl-cta__t { font-size: 18px; font-weight: 800; }
.cl-cta__s { margin-top: 6px; font-size: 14px; color: var(--ink2); }
.cl-pn { margin: 40px 0 0 240px; max-width: 640px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cl-pn a { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: 10px; border: 1px solid var(--line); text-decoration: none; }
.cl-pn a:hover { border-color: var(--hi); }
.cl-pn span { font: 500 12px/1.4 var(--mono); color: var(--muted); }
.cl-pn b { font-size: 15px; line-height: 1.45; }
.cl-pn--r { text-align: right; }

/* 상담 */
.cl-from { margin-top: 18px; padding: 10px 14px; border-left: 3px solid var(--hi); background: var(--panel); font-size: 14px; color: var(--muted); }
.cl-from b { color: var(--ink); font-weight: 600; margin-left: 4px; }
.cl-form { margin-top: 28px; display: grid; gap: 16px; }
.cl-form__row { display: grid; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--ink2); }
.cl-field { width: 100%; padding: 11px 13px; border-radius: 8px; border: 1px solid var(--line2); background: var(--panel); font-size: 16px; font-weight: 400; color: var(--ink); outline: none; }
.cl-field:focus { border-color: var(--hi); }
select.cl-field { appearance: auto; }
textarea.cl-field { resize: vertical; }
.cl-form .cl-btn { justify-self: start; padding: 12px 28px; }
.cl-err { min-height: 1.2em; color: #FF8A75; font-size: 14px; }
.cl-hint { font-size: 13px; color: var(--muted); }

/* 바닥글 */
.cl-foot { border-top: 1px solid var(--line); }
.cl-foot__in { max-width: 1000px; margin: 0 auto; padding: 32px 24px 40px 264px; display: flex; gap: 24px; align-items: center; justify-content: space-between; font-size: 13.5px; color: var(--muted); }
.cl-foot .cl-btn { padding: 8px 14px; font-size: 13px; flex: none; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 16px); max-width: calc(100% - 32px); padding: 11px 18px; border-radius: 8px; background: var(--ink); color: var(--bg); font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 50; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 860px) {
  .cl-head, .cl-bar, .cl-tags--bar, .cl-sum, .cl-empty, .cl-older, .cl-end, .cl-cta, .cl-pn { margin-left: 0; padding-left: 0; }
  .cl-head { padding: 44px 0 26px; }
  .cl-entry { grid-template-columns: 1fr; padding: 32px 0 40px; }
  .cl-side__in { position: static; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; padding: 0 0 18px; }
  .cl-date { margin-top: 0; font-size: 14px; }
  .cl-kind { margin-top: 0; }
  .cl-foot__in { padding: 28px 24px 36px; }
}
@media (max-width: 560px) {
  .cl-top__in { padding: 0 16px; }
  .cl-brand span { display: none; }
  .cl-nav__a { padding: 6px 8px; font-size: 13.5px; }
  .cl-wrap { padding: 0 16px 72px; }
  .cl-pad { padding-top: 24px; }
  .cl-head__t { font-size: 30px; }
  .cl-head__l { font-size: 15px; }
  .cl-bar { flex-direction: column; align-items: stretch; }
  .cl-search__in { width: 100%; }
  .cl-t { font-size: 23px; }
  .cl-img { border-radius: 8px; margin-bottom: 20px; }
  .cl-prose { font-size: 15.5px; }
  .cl-cta { flex-direction: column; align-items: flex-start; padding: 20px; }
  .cl-pn { grid-template-columns: 1fr; }
  .cl-pn--r { text-align: left; }
  .cl-older { flex-direction: column; align-items: stretch; }
  .cl-foot__in { flex-direction: column; align-items: flex-start; padding: 24px 16px 32px; }
}
