/*
 * 부스터포스트 블로그 테마.
 * 블로그마다 달라지는 값(강조색·본문 크기·본문 너비·모서리·글꼴)은 각 페이지 head의 :root 변수로,
 * 고를 수 있는 모양(바탕·머리글 짜임·소제목·목록 상자·결론 상자)은 <body>·<header>의 클래스로 들어온다.
 * 기준: 레퍼런스 사이트들의 공통점 — 사이드바 없는 한 단, 본문 너비 720~760px, 본문 17~18px·줄간격 1.75~1.85,
 * 한글 어절 단위 줄바꿈, 좁은 화면에서 옆으로 미는 표, 결론 상자와 FAQ.
 */
@import url('/fonts/wanted-sans/WantedSansVariable.css');

:root {
  --accent: #1f5f8b;
  --accent-soft: color-mix(in srgb, var(--accent) 9%, #fff);
  --accent-line: color-mix(in srgb, var(--accent) 28%, #fff);
  --ink: #1e1f24;
  --ink-2: #3a3c44;
  --muted: #5d6068;
  --line: #e5e6ea;
  --fill: #f5f5f7;
  /* 페이지 바탕과 상자 바탕 (바탕 종류에 따라 아래 .t-* 에서 바뀐다) */
  --page: #fff;
  --surface: #fff;
  --font-body: 'Wanted Sans Variable', 'Wanted Sans', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --font-head: var(--font-body);
  --head-weight: 800;
  --body-size: 17px;
  --content: 740px;
  --wide: 1120px;
  --radius: 8px;
  --logo-weight: 800;
  --pad: 20px;
  color-scheme: only light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 16px;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--body-size);
  line-height: 1.8;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  border-radius: 3px;
}

.b-skip {
  position: absolute;
  left: 12px;
  top: -60px;
  padding: 8px 14px;
  background: var(--ink);
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  z-index: 10;
}
.b-skip:focus {
  top: 8px;
}

.b-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ───────── 머리글 ───────── */
.b-header {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.b-header__in {
  display: flex;
  align-items: center;
  gap: 8px 28px;
  flex-wrap: wrap;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 14px var(--pad);
}
.b-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 21px;
  font-weight: var(--logo-weight);
  letter-spacing: -0.03em;
  line-height: 1.3;
  text-decoration: none;
  color: var(--ink);
}
.b-nav {
  display: flex;
  gap: 4px 18px;
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
  font-size: 15px;
}
.b-nav a {
  padding: 6px 0;
  color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
}
.b-nav a:hover,
.b-nav a[aria-current='page'] {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}
.b-search {
  display: flex;
  flex: 0 1 220px;
  min-width: 150px;
}
.b-search input {
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid #8f929a;
  border-radius: var(--radius);
  background: #fff;
  font-family: var(--font-body);
  font: inherit;
  font-size: 15px;
  color: var(--ink);
}
.b-search input::placeholder {
  color: #70737b;
}

.b-header--accent {
  background: var(--accent);
  border-bottom-color: transparent;
}
.b-header--ink {
  background: #23252b;
  border-bottom-color: transparent;
}
.b-header--accent .b-logo,
.b-header--ink .b-logo,
.b-header--accent .b-nav a,
.b-header--ink .b-nav a {
  color: #fff;
}
.b-header--accent .b-nav a:hover,
.b-header--ink .b-nav a:hover,
.b-header--accent .b-nav a[aria-current='page'],
.b-header--ink .b-nav a[aria-current='page'] {
  color: #fff;
}
.b-header--accent .b-search input,
.b-header--ink .b-search input {
  border-color: transparent;
}
.b-header--accent :focus-visible,
.b-header--ink :focus-visible {
  outline-color: #fff;
}

/* ───────── 본문 틀 ───────── */
.b-main {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 36px var(--pad) 72px;
}
.b-narrow {
  max-width: var(--content);
  margin: 0 auto;
}

.b-intro {
  max-width: var(--content);
  margin: 0 0 36px;
}
.b-intro__title {
  margin: 0 0 8px;
  font-family: var(--font-head);
  font-size: 30px;
  line-height: 1.35;
  font-weight: var(--head-weight);
  letter-spacing: -0.03em;
}
.b-intro__text {
  margin: 0;
  color: var(--muted);
}

.b-section-title {
  margin: 0 0 16px;
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: var(--head-weight);
  letter-spacing: -0.02em;
}

/* ───────── 글 목록 ───────── */
.b-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.b-card {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.b-list > .b-card:first-child {
  border-top: 0;
  padding-top: 0;
}
.b-card__cat {
  display: inline-block;
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}
.b-card__title {
  margin: 0;
  font-family: var(--font-head);
  font-size: 21px;
  line-height: 1.45;
  font-weight: var(--head-weight);
  letter-spacing: -0.025em;
}
.b-card__title a {
  text-decoration: none;
}
.b-card__title a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
}
.b-card__excerpt {
  margin: 8px 0 0;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.b-card__date {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}

/* 목록형: 좁은 본문 폭으로 세로로 잇는다 */
.b-list--list {
  max-width: var(--content);
}

/* 격자형 */
.b-list--grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.b-list--grid > .b-card,
.b-list--grid > .b-card:first-child {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* 매거진형: 첫 글을 크게, 나머지는 두 단 */
.b-list--magazine {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 40px;
}
.b-list--magazine > .b-card:first-child {
  grid-column: 1 / -1;
  padding: 28px;
  margin-bottom: 8px;
  background: var(--accent-soft);
  border-radius: var(--radius);
}
.b-list--magazine > .b-card:first-child .b-card__title {
  font-size: 28px;
  line-height: 1.35;
}
.b-list--magazine > .b-card:nth-child(2),
.b-list--magazine > .b-card:nth-child(3) {
  border-top: 0;
}

.b-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 36px;
  font-size: 15px;
}
.b-pager a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid #8f929a;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
}
.b-pager a:hover {
  border-color: var(--ink);
  background: var(--fill);
}
.b-pager__now {
  color: var(--muted);
}

/* ───────── 글 ───────── */
.b-crumbs {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  font-size: 13px;
  color: var(--muted);
}
.b-crumbs li + li::before {
  content: '›';
  margin-right: 8px;
}
.b-crumbs a {
  text-decoration: none;
}
.b-crumbs a:hover {
  text-decoration: underline;
}

.b-post__title {
  margin: 0 0 14px;
  font-family: var(--font-head);
  font-size: 32px;
  line-height: 1.38;
  font-weight: var(--head-weight);
  letter-spacing: -0.03em;
}
.b-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 14px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--muted);
}
.b-meta a {
  color: inherit;
}

.b-disclosure {
  margin: 0 0 22px;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--fill);
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-2);
}

/* 결론 상자: 글에서 가장 먼저 읽히고, AI가 가장 자주 잘라 인용하는 부분 */
.b-answer {
  margin: 0 0 28px;
  padding: 20px 22px;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent-soft);
}
.b-answer__label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 800;
  color: var(--accent);
}
.b-answer p {
  margin: 0;
  font-size: calc(var(--body-size) + 1px);
  line-height: 1.75;
  font-weight: 500;
}

.b-toc {
  margin: 0 0 36px;
  padding: 16px 20px;
  border-radius: var(--radius);
  background: var(--fill);
  font-size: 15px;
}
.b-toc summary {
  cursor: pointer;
  font-weight: 700;
}
.b-toc ol {
  margin: 10px 0 0;
  padding-left: 22px;
}
.b-toc li {
  margin: 2px 0;
}
.b-toc a {
  text-decoration: none;
  color: var(--ink-2);
}
.b-toc a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.b-content h2 {
  margin: 52px 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ink);
  font-family: var(--font-head);
  font-size: 24px;
  line-height: 1.45;
  font-weight: var(--head-weight);
  letter-spacing: -0.025em;
}
.b-content h3 {
  margin: 34px 0 10px;
  font-family: var(--font-head);
  font-size: 19px;
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.b-content p {
  margin: 0 0 16px;
}
.b-content ul,
.b-content ol {
  margin: 0 0 18px;
  padding-left: 24px;
}
.b-content li {
  margin: 6px 0;
}
.b-content li > p {
  margin: 0;
}
.b-content a {
  color: var(--accent);
  text-underline-offset: 3px;
}
.b-content strong {
  font-weight: 700;
}
.b-content blockquote {
  margin: 0 0 18px;
  padding: 4px 0 4px 18px;
  border-left: 3px solid var(--accent-line);
  color: var(--ink-2);
}
.b-content hr {
  margin: 36px 0;
  border: 0;
  border-top: 1px solid var(--line);
}
.b-content code {
  padding: 2px 5px;
  border-radius: 4px;
  background: var(--fill);
  font-size: 0.92em;
}

/*
 * 본문 사진: 글 맨 위 사진과 소제목 아래 사진은 16:9, 제품 사진은 흰 바탕 4:3.
 * 제품 사진은 본문 폭보다 좁게 두어 제품 구역이 사진에 묻히지 않게 한다.
 */
.bp-figure {
  margin: 0 0 24px;
}
.bp-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  background: var(--fill);
}
.bp-figure--product img {
  max-width: 480px;
  border: 1px solid var(--line);
  background: #fff;
}
.bp-figure figcaption {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
.bp-figure figcaption a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.b-content > .bp-figure--cover:first-child {
  margin-top: 8px;
}

/*
 * 표: 좁은 화면에서는 표 안에서만 옆으로 민다 (페이지 전체가 밀리지 않게).
 * 칸 안의 낱말은 쪼개지 않고, 칸마다 최소 너비를 둔다. 그래서 칸이 적은 표는 화면에 맞고,
 * 칸이 많은 표만 옆으로 밀린다. 더 볼 내용이 가려진 쪽 가장자리에는 그림자가 생긴다.
 */
.bp-table {
  margin: 0 0 22px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(to right, var(--page) 40%, transparent) left center / 28px 100% no-repeat local,
    linear-gradient(to left, var(--page) 40%, transparent) right center / 28px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgb(0 0 0 / 0.16), rgb(0 0 0 / 0)) left center / 12px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgb(0 0 0 / 0.16), rgb(0 0 0 / 0)) right center / 12px 100% no-repeat scroll;
  background-color: var(--page);
}
.bp-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
}
.bp-table th,
.bp-table td {
  min-width: 6.5em;
  padding: 11px 14px;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid var(--line);
  overflow-wrap: normal;
}
.bp-table thead th {
  border-top: 0;
  background: var(--fill);
  font-weight: 700;
  white-space: nowrap;
}
.bp-table tbody td:first-child {
  font-weight: 700;
}
.bp-table:focus-visible {
  outline-offset: 0;
}

.b-faq {
  margin-top: 56px;
}
.b-faq h2 {
  margin: 0 0 14px;
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: var(--head-weight);
  letter-spacing: -0.025em;
}
.b-faq details {
  border-top: 1px solid var(--line);
}
.b-faq details:last-of-type {
  border-bottom: 1px solid var(--line);
}
.b-faq summary {
  cursor: pointer;
  padding: 16px 28px 16px 0;
  font-weight: 700;
  line-height: 1.6;
  list-style: none;
  position: relative;
}
.b-faq summary::-webkit-details-marker {
  display: none;
}
.b-faq summary::before {
  content: 'Q. ';
  color: var(--accent);
}
.b-faq summary::after {
  content: '';
  position: absolute;
  right: 6px;
  top: 26px;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.18s ease;
}
.b-faq details[open] summary::after {
  transform: rotate(-135deg);
  top: 30px;
}
.b-faq details p {
  margin: 0;
  padding: 0 0 18px;
  color: var(--ink-2);
}

.b-sources {
  margin-top: 44px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--fill);
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-2);
}
.b-sources h2 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
}
.b-sources ul {
  margin: 0 0 8px;
  padding-left: 20px;
}
.b-sources p {
  margin: 0;
}

.b-related {
  margin-top: 56px;
}
.b-related ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.b-related li {
  border-top: 1px solid var(--line);
}
.b-related a {
  display: block;
  padding: 14px 0;
  font-weight: 600;
  text-decoration: none;
}
.b-related a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.b-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--muted);
}
.b-tags li::before {
  content: '#';
}

/* 정적 페이지 */
.b-page h1 {
  margin: 0 0 20px;
  font-family: var(--font-head);
  font-size: 30px;
  line-height: 1.4;
  font-weight: var(--head-weight);
  letter-spacing: -0.03em;
}
.b-page h2 {
  margin: 36px 0 10px;
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: var(--head-weight);
}
.b-page p,
.b-page ul {
  margin: 0 0 14px;
}
.b-page ul {
  padding-left: 22px;
}
.b-page a {
  color: var(--accent);
  text-underline-offset: 3px;
}

.b-empty {
  padding: 40px 24px;
  border-radius: var(--radius);
  background: var(--fill);
  color: var(--ink-2);
}
.b-empty strong {
  display: block;
  margin-bottom: 4px;
  font-size: 18px;
}

/* ───────── 바닥글 ───────── */
.b-footer {
  border-top: 1px solid var(--line);
  background: var(--fill);
  font-size: 14px;
  color: var(--muted);
}
.b-footer__in {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 28px var(--pad) 40px;
}
.b-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}
.b-footer__links a {
  display: inline-block;
  padding: 6px 0;
  color: var(--ink-2);
  font-weight: 600;
  text-decoration: none;
}
.b-footer__links a:hover {
  text-decoration: underline;
}
.b-footer p {
  margin: 0 0 4px;
  line-height: 1.7;
}

/* ═════════════════ 고를 수 있는 모양 (디자인 값) ═════════════════ */

/* ───────── 바탕 ───────── */
.t-paper {
  --page: #faf7f0;
  --surface: #fffdf8;
  --fill: #f1ece1;
  --line: #e4dccd;
  --ink: #23201b;
  --ink-2: #3d3830;
  --muted: #5f584d;
  --accent-soft: color-mix(in srgb, var(--accent) 9%, #fffdf8);
}
.t-mist {
  --page: #f2f4f7;
  --surface: #fff;
  --fill: #eceff3;
  --line: #dde1e8;
}
.t-tint {
  --page: color-mix(in srgb, var(--accent) 5%, #fff);
  --surface: #fff;
  --fill: color-mix(in srgb, var(--accent) 7%, #f6f6f7);
  --line: color-mix(in srgb, var(--accent) 16%, #e5e6ea);
}
/* 바탕이 흰색이 아니면 글이 놓이는 본문 칸만 흰 상자로 띄운다 (긴 글은 흰 바탕이 가장 읽기 편하다) */
.t-mist .b-narrow:is(article),
.t-tint .b-narrow:is(article) {
  padding: 32px 36px 40px;
  background: var(--surface);
  border-radius: var(--radius);
}

/* 명조 본문은 줄 사이를 조금 더 띄운다 */
.t-body-serif {
  line-height: 1.9;
  letter-spacing: 0;
}
/* 굵기가 하나뿐인 제목 글꼴은 자간을 줄이지 않는다 */
.t-head-display,
.t-head-rounded {
  --logo-weight: 400;
}
.t-head-display :is(.b-logo, .b-intro__title, .b-post__title, .b-card__title, .b-content h2, .b-faq h2, .b-page h1),
.t-head-rounded :is(.b-logo, .b-intro__title, .b-post__title, .b-card__title, .b-content h2, .b-faq h2, .b-page h1) {
  letter-spacing: 0;
}
.t-head-serif :is(.b-intro__title, .b-post__title),
.t-head-myeongjo :is(.b-intro__title, .b-post__title) {
  letter-spacing: -0.02em;
}

/* ───────── 머리글 ───────── */
.b-logo__mark {
  flex: none;
  width: 30px;
  height: 30px;
}
.b-header--tint {
  background: var(--accent-soft);
  border-bottom-color: var(--accent-line);
}

/* 두 줄: 위에 이름과 검색, 아래 줄에 분류 */
.b-header--stacked .b-header__in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 240px);
  grid-template-areas:
    'logo search'
    'nav nav';
  gap: 10px 24px;
  padding-bottom: 0;
}
.b-header--stacked .b-logo {
  grid-area: logo;
  font-size: 24px;
}
.b-header--stacked .b-search {
  grid-area: search;
  min-width: 0;
}
.b-header--stacked .b-nav {
  grid-area: nav;
  padding-top: 4px;
  border-top: 1px solid var(--line);
}
.b-header--stacked.b-header--accent .b-nav,
.b-header--stacked.b-header--ink .b-nav {
  border-top-color: rgb(255 255 255 / 0.22);
}

/* 신문 제호: 이름을 가운데 크게, 그 아래 분류와 검색 */
.b-header--masthead .b-header__in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 220px);
  grid-template-areas:
    'logo logo'
    'nav search';
  align-items: center;
  gap: 14px 24px;
  padding-top: 26px;
}
.b-header--masthead .b-logo {
  grid-area: logo;
  justify-content: center;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 3px double var(--ink);
  font-size: 38px;
  letter-spacing: -0.035em;
}
/* 제호에 이름이 크게 있으므로 첫 화면 제목은 화면에서 숨기고 읽기 프로그램·검색엔진에만 남긴다 */
.b-header--masthead ~ .b-main .b-intro--home .b-intro__title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.b-header--masthead .b-logo__mark {
  width: 44px;
  height: 44px;
}
.b-header--masthead .b-nav {
  grid-area: nav;
}
.b-header--masthead .b-search {
  grid-area: search;
  align-self: end;
  min-width: 0;
}
.b-header--masthead.b-header--accent .b-logo,
.b-header--masthead.b-header--ink .b-logo {
  border-bottom-color: rgb(255 255 255 / 0.5);
}

/* ───────── 본문 소제목 ───────── */
.t-h2-bar .b-content h2 {
  padding: 2px 0 2px 16px;
  border-bottom: 0;
  border-left: 5px solid var(--accent);
}
.t-h2-band .b-content h2 {
  padding: 12px 18px;
  border-bottom: 0;
  border-radius: var(--radius);
  background: var(--fill);
}
.t-h2-plain .b-content h2 {
  padding-bottom: 0;
  border-bottom: 0;
  font-size: 26px;
}

/* ───────── 글 목록의 글 하나 ───────── */
.t-card-box .b-list:not(.b-list--compact) > .b-card,
.t-card-raised .b-list:not(.b-list--compact) > .b-card,
.t-card-fill .b-list:not(.b-list--compact) > .b-card {
  padding: 22px 24px;
  border-top: 0;
  border-radius: var(--radius);
}
.t-card-box .b-list:not(.b-list--compact) > .b-card {
  border: 1px solid var(--line);
  background: var(--surface);
}
.t-card-raised .b-list:not(.b-list--compact) > .b-card {
  background: var(--surface);
  box-shadow:
    0 1px 2px rgb(20 24 32 / 0.06),
    0 4px 14px rgb(20 24 32 / 0.06);
}
.t-card-fill .b-list:not(.b-list--compact) > .b-card {
  background: var(--fill);
}
.t-card-box .b-list--list,
.t-card-raised .b-list--list,
.t-card-fill .b-list--list {
  display: grid;
  gap: 14px;
}
.t-card-box .b-list--magazine,
.t-card-raised .b-list--magazine,
.t-card-fill .b-list--magazine {
  gap: 16px 20px;
}
.t-card-box .b-list--magazine > .b-card:first-child,
.t-card-raised .b-list--magazine > .b-card:first-child,
.t-card-fill .b-list--magazine > .b-card:first-child {
  margin-bottom: 0;
  background: var(--accent-soft);
}
/* 격자형에서 구분선만 고르면 윗줄만 긋는다 */
.t-card-line .b-list--grid > .b-card,
.t-card-line .b-list--grid > .b-card:first-child {
  padding: 18px 0 0;
  border: 0;
  border-top: 2px solid var(--ink);
  border-radius: 0;
}

/* 색인형: 날짜·분류·제목만 촘촘히 */
.b-list--compact {
  max-width: calc(var(--content) + 120px);
}
.b-list--compact > .b-card {
  display: grid;
  grid-template-columns: 7.5em minmax(0, 1fr);
  grid-template-areas:
    'date cat'
    'date title';
  column-gap: 20px;
  padding: 14px 0;
}
.b-list--compact .b-card__date {
  grid-area: date;
  margin: 3px 0 0;
  font-variant-numeric: tabular-nums;
}
.b-list--compact .b-card__cat {
  grid-area: cat;
  margin: 0;
}
.b-list--compact .b-card__title {
  grid-area: title;
  font-size: 18px;
}
.b-list--compact .b-card__excerpt {
  display: none;
}
.b-list--compact > .b-card:first-child {
  padding-top: 0;
}

/* 좌우 분할형: 왼쪽 소개·분류, 오른쪽 글 목록 */
.b-split {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
.b-split__side {
  position: sticky;
  top: 24px;
}
.b-split__side .b-intro {
  margin-bottom: 28px;
}
.b-split__cats h2 {
  margin: 0 0 8px;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: var(--head-weight);
  color: var(--muted);
}
.b-split__cats ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.b-split__cats li {
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.b-split__cats a {
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}
.b-split__cats a:hover {
  text-decoration: underline;
}
.b-split__cats span {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}
.b-split__main .b-list--list {
  max-width: none;
}

/* ───────── 결론 상자 ───────── */
.t-answer-fill .b-answer {
  border: 0;
}
.t-answer-side .b-answer {
  border: 0;
  border-left: 5px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--fill);
}

@media (max-width: 720px) {
  :root {
    --pad: 16px;
  }
  body {
    font-size: 16px;
  }
  .b-main {
    padding-top: 24px;
    padding-bottom: 56px;
  }
  .b-header__in {
    padding-top: 12px;
    padding-bottom: 10px;
  }
  .b-nav {
    order: 3;
    flex-basis: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    margin-inline: calc(var(--pad) * -1);
    padding-inline: var(--pad);
  }
  .b-nav::-webkit-scrollbar {
    display: none;
  }
  .b-nav a {
    padding: 10px 0;
  }
  .b-search {
    flex: 1 1 140px;
    margin-left: auto;
  }
  .b-intro__title {
    font-size: 24px;
  }
  .b-post__title {
    font-size: 25px;
  }
  .b-content h2,
  .b-faq h2 {
    font-size: 21px;
    margin-top: 44px;
  }
  .b-answer {
    padding: 16px;
  }
  .b-answer p {
    font-size: 16px;
  }
  .b-list--magazine {
    grid-template-columns: minmax(0, 1fr);
  }
  .b-list--magazine > .b-card:first-child {
    padding: 20px;
  }
  .b-list--magazine > .b-card:first-child .b-card__title {
    font-size: 23px;
  }
  .b-list--magazine > .b-card:nth-child(3) {
    border-top: 1px solid var(--line);
  }
  .b-card__title {
    font-size: 19px;
  }
  /* 머리글 짜임과 관계없이 좁은 화면에서는 이름·검색 한 줄, 분류 한 줄 */
  .b-header--stacked .b-header__in,
  .b-header--masthead .b-header__in {
    grid-template-columns: minmax(0, 1fr) minmax(120px, 44%);
    grid-template-areas:
      'logo search'
      'nav nav';
    padding-top: 12px;
    padding-bottom: 0;
  }
  .b-header--masthead .b-logo {
    justify-content: flex-start;
    padding-bottom: 0;
    border-bottom: 0;
    font-size: 23px;
  }
  .b-header--masthead .b-logo__mark {
    width: 30px;
    height: 30px;
  }
  .b-header--stacked .b-logo {
    font-size: 21px;
  }
  .b-header--stacked .b-nav,
  .b-header--masthead .b-nav {
    margin-inline: calc(var(--pad) * -1);
    padding-inline: var(--pad);
  }
  .b-header--masthead .b-nav {
    border-top: 3px double var(--line);
  }
  .t-mist .b-narrow:is(article),
  .t-tint .b-narrow:is(article) {
    margin-inline: calc(var(--pad) * -1);
    padding: 22px var(--pad) 28px;
    border-radius: 0;
  }
  .b-split {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  .b-split__side {
    position: static;
  }
  .b-split__cats {
    display: none;
  }
  .b-list--compact > .b-card {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      'cat'
      'title'
      'date';
  }
  .b-list--compact .b-card__date {
    margin-top: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .b-header,
  .b-footer,
  .b-toc,
  .b-related,
  .b-search {
    display: none;
  }
}
