@charset "UTF-8";

@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;600;700;800;900&display=swap");

:root {
  --blue-900: #173f8f;
  --blue-800: #214aa0;
  --blue-700: #2d5cc2;
  --blue-100: #eaf1ff;
  --blue-050: #f6f8fd;

  --ink: #111111;
  --text: #35383e;
  --muted: #9a9fa8;
  --line: #e5e7eb;
  --footer: #343535;

  --article-width: 820px;
  --list-width: 790px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--text);

  font-family:
    "Noto Sans KR",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: break-word;

  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
}

.skin-wrap {
  min-height: 100vh;

  display: flex;
  flex-direction: column;
}

/* 우측 상단 메뉴 */

.floating-header {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 1000;
}

.menu-button {
  width: 38px;
  height: 38px;
  padding: 10px;

  display: grid;
  grid-template-columns: repeat(3, 3px);
  grid-template-rows: repeat(3, 3px);
  justify-content: center;
  align-content: center;
  gap: 3px;

  border: 1px solid #d9dce1;
  border-radius: 50%;

  background: rgba(255, 255, 255, 0.96);

  box-shadow:
    0 2px 7px rgba(0, 0, 0, 0.08);

  cursor: pointer;
}

.menu-button span {
  width: 3px;
  height: 3px;

  border-radius: 50%;
  background: #333333;
}

.menu-panel {
  position: absolute;
  top: 46px;
  right: 0;

  width: 130px;
  padding: 8px;

  display: none;

  border: 1px solid #e3e5e8;
  border-radius: 11px;

  background: #ffffff;

  box-shadow:
    0 12px 30px rgba(15, 23, 42, 0.13);
}

.menu-panel.is-open {
  display: grid;
}

.menu-panel a {
  padding: 9px 10px;

  border-radius: 7px;

  color: #50555d;
  font-size: 13px;
  font-weight: 600;
}

.menu-panel a:hover {
  background: #f3f5f8;
  color: var(--blue-900);
}

/* 메인 레이아웃 */

.main-area {
  width: min(
    calc(100% - 36px),
    var(--list-width)
  );

  margin: 0 auto;
  padding: 205px 0 0;

  flex: 1;
}

#tt-body-page .main-area {
  width: min(
    calc(100% - 36px),
    var(--article-width)
  );

  padding-top: 180px;
}

.list-ad:empty,
.list-ad-top:empty,
.list-ad-bottom:empty {
  display: none;
}

.list-ad-top {
  margin-bottom: 35px;
}

.list-ad-bottom {
  margin-top: 55px;
}

/* 글 목록 */

.post-list {
  width: 100%;
}

.post-list-item {
  width: 100%;
  min-height: 168px;

  padding: 0 0 30px;
  margin: 0 0 30px;

  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    136px;

  gap: 30px;
  align-items: center;

  border-bottom: 1px solid #e7e8ea;
}

.post-list-item.no-thumb {
  grid-template-columns:
    minmax(0, 1fr);
}

.post-list-copy {
  min-width: 0;
}

.post-list-title {
  margin: 0 0 7px;

  color: #202124;

  font-size: 25px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.04em;
}

.post-list-title a {
  display: block;

  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.post-list-title a:hover {
  color: var(--blue-800);
}

.post-list-summary {
  display: -webkit-box;

  margin: 0 0 10px;
  overflow: hidden;

  color: #686c73;

  font-size: 15px;
  line-height: 1.72;

  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.post-list-meta {
  display: flex;
  align-items: center;
  gap: 7px;

  color: #a5a9b0;

  font-size: 11px;
}

.post-list-meta a,
.notice-label {
  color: var(--blue-700);
  font-weight: 600;
}

.post-list-thumb {
  width: 136px;
  height: 136px;

  display: block;
  overflow: hidden;

  background: #f1f2f4;
}

.post-list-thumb img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  transition:
    transform 0.25s ease;
}

.post-list-item:hover
.post-list-thumb img {
  transform: scale(1.025);
}

.empty-state {
  padding: 90px 20px;

  color: #989ca4;

  text-align: center;
}

/* 카테고리·검색·보관함·태그 페이지에서도 각 글을 한 번씩 표시 */

/* 페이지 번호 */

.paging {
  margin: 48px 0 85px;

  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
}

.paging-numbers {
  display: flex;
  align-items: center;
  gap: 5px;
}

.paging a {
  min-width: 35px;
  height: 35px;
  padding: 0 8px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 3px;

  color: #555b65;

  font-size: 14px;
  cursor: pointer;
}

.paging a:hover,
.paging a.selected {
  background: var(--blue-900);
  color: #ffffff;
}

.paging-arrow {
  min-width: 30px !important;
  width: 30px;
  height: 30px !important;

  border: 1px solid #cfd3d8;
  border-radius: 50% !important;

  color: #8d929a !important;

  font-size: 20px !important;
  line-height: 1;
}

.paging-arrow:hover {
  border-color: var(--blue-800);

  background: #ffffff !important;
  color: var(--blue-800) !important;
}

.paging .no-more-prev,
.paging .no-more-next {
  opacity: 0.35;
  pointer-events: none;
}

/* 상세 글 상단 */

.post-view {
  width: 100%;
}

.post-header {
  margin-bottom: 18px;

  text-align: center;
}

.post-category {
  display: inline-block;

  margin-bottom: 7px;

  color: var(--blue-900);

  font-size: 12px;
  font-weight: 800;
}

.post-header h1 {
  margin: 0;

  color: #0f1012;

  font-size: 29px;
  font-weight: 800;
  line-height: 1.33;
  letter-spacing: -0.045em;
}

.post-meta {
  margin-top: 10px;

  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;

  color: #b2b5ba;

  font-size: 9px;
}

.post-meta > * + *::before {
  content: "·";

  margin-right: 9px;

  color: #d2d4d8;
}

/* 자동 목차 */

.auto-toc {
  margin: 17px 0 34px;
  padding: 16px 24px 18px;

  border: 1px solid #d8dade;

  background: #ffffff;
}

.auto-toc[hidden] {
  display: none;
}

.auto-toc > strong {
  display: block;

  margin-bottom: 12px;

  color: #22252a;

  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.auto-toc ul {
  margin: 0;
  padding-left: 20px;

  display: grid;
  gap: 9px;
}

.auto-toc li {
  color: var(--blue-700);
  font-size: 12px;
}

.auto-toc li::marker {
  color: var(--blue-700);
}

.auto-toc a {
  color: var(--blue-700);
}

.auto-toc a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auto-toc .toc-depth-3 {
  margin-left: 14px;
  color: #70809c;
}

.auto-toc .toc-depth-3 a {
  color: #70809c;
}

/* 본문 */

.article-body {
  color: #30343a;

  font-size: 14px;
  line-height: 1.78;
  letter-spacing: -0.012em;
}

.article-body::after {
  content: "";

  display: block;
  clear: both;
}

.article-body p {
  margin: 0 0 14px;
}

.article-body a {
  color: var(--blue-700);
}

.article-body a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-body strong,
.article-body b {
  color: #1e2228;
  font-weight: 700;
}

.article-body h2 {
  scroll-margin-top: 28px;
}

.article-body h3 {
  scroll-margin-top: 28px;

  margin: 24px 0 11px;
  padding-left: 9px;

  border-left:
    3px solid var(--blue-800);

  color: #1d2636;

  font-size: 16px;
  font-weight: 800;
  line-height: 1.45;
}

.article-body h4 {
  margin: 22px 0 9px;

  color: #20242a;

  font-size: 15px;
  font-weight: 800;
}

.article-body ul,
.article-body ol {
  margin: 10px 0 16px;
  padding-left: 24px;
}

.article-body li {
  margin: 5px 0;
}

.article-body li::marker {
  color: #6d7c99;
}

.article-body hr {
  height: 1px;

  margin: 34px 0;

  border: 0;
  background: #e5e7eb;
}

/* 제목 2 단위 파란 카드 */

.article-section-card {
  margin: 42px 0 48px;
  padding: 0 13px 18px;

  overflow: hidden;

  border: 1px solid #e8eaee;
  border-radius: 8px;

  background: #ffffff;

  box-shadow:
    0 10px 26px rgba(23, 34, 56, 0.08);
}

.article-section-card > h2 {
  margin: 0 -13px 16px;
  padding: 9px 11px 10px;

  background: var(--blue-900);
  color: #ffffff;

  font-size: 17px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -0.025em;
}

.article-section-card > :last-child {
  margin-bottom: 0;
}

/* 첫 이미지 다음 도입 문단 */

.article-body .lead-box {
  margin: 10px 0 24px;
  padding: 10px 12px;

  border: 1px solid #dce7fb;
  border-radius: 5px;

  background: #f1f5fd;
  color: #3f4856;

  font-size: 12px;
  line-height: 1.65;
}

/* 인용문 요약 박스 */

.article-body blockquote {
  position: relative;

  margin: 17px 0 4px;
  padding: 10px 12px 10px 28px;

  border: 0;
  border-left:
    3px solid var(--blue-700);

  border-radius: 5px;

  background: var(--blue-100);
  color: #42516a;

  font-size: 11px;
  line-height: 1.65;
}

.article-body blockquote::before {
  content: "✓";

  position: absolute;
  left: 10px;
  top: 10px;

  color: var(--blue-800);

  font-weight: 900;
}

.article-body blockquote p:last-child {
  margin-bottom: 0;
}

/* 본문 이미지 */

.article-body figure,
.article-body .imageblock,
.article-body .image-container,
.article-body .imagegridblock {
  max-width: 100% !important;
}

.article-body figure,
.article-body .imageblock,
.article-body .image-container {
  margin: 22px auto !important;
}

.article-body figure img,
.article-body .imageblock img,
.article-body .image-container img {
  display: block;
  width: 100%;
}

.article-body figcaption {
  margin-top: 8px;

  color: #a1a5ac;

  font-size: 10px;
  text-align: center;
}

/* 링크 미리보기 카드 */

.article-body
figure[data-ke-type="opengraph"] {
  margin: 11px 0 !important;

  overflow: hidden;

  border: 1px solid #eceef1;
  border-radius: 0;

  background: #ffffff;
}

.article-body
figure[data-ke-type="opengraph"] a {
  min-height: 74px;

  display: flex;
  align-items: stretch;

  color: inherit;
  text-decoration: none;
}

.article-body
figure[data-ke-type="opengraph"]
.og-image {
  order: 2;

  width: 92px;
  min-width: 92px;

  margin-left: auto;

  background-position: center;
  background-size: cover;
}

.article-body
figure[data-ke-type="opengraph"]
.og-text {
  min-width: 0;
  padding: 9px 11px;

  flex: 1;
}

.article-body
figure[data-ke-type="opengraph"]
.og-host {
  color: #a1a5ac;
  font-size: 8px;
}

.article-body
figure[data-ke-type="opengraph"]
.og-title {
  margin-top: 2px;

  overflow: hidden;

  color: var(--blue-700);

  font-size: 11px;
  font-weight: 600;

  white-space: nowrap;
  text-overflow: ellipsis;
}

.article-body
figure[data-ke-type="opengraph"]
.og-desc {
  display: -webkit-box;

  margin-top: 2px;
  overflow: hidden;

  color: #555c66;

  font-size: 9px;
  line-height: 1.45;

  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* 표 */

.article-body table {
  width: 100%;

  margin: 22px 0;

  border-collapse: collapse;
  border-top:
    2px solid var(--blue-900);

  font-size: 12px;
}

.article-body th,
.article-body td {
  padding: 9px 10px;

  border: 1px solid #dfe3e8;

  text-align: left;
}

.article-body th {
  background: var(--blue-050);
  font-weight: 700;
}

/* 코드 */

.article-body pre {
  max-width: 100%;

  margin: 20px 0;
  padding: 15px 17px;

  overflow: auto;

  border-radius: 7px;

  background: #121a29;
  color: #e5ecf5;

  font-size: 11px;
  line-height: 1.7;
  white-space: pre;
}

.article-body code {
  padding: 2px 5px;

  border-radius: 4px;

  background: #eef1f5;
  color: #bd3150;

  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Consolas,
    monospace;

  font-size: 0.9em;
}

.article-body pre code {
  padding: 0;

  background: transparent;
  color: inherit;
}

/* 태그 */

.tag-trail {
  margin-top: 36px;

  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;

  color: #979ca5;

  font-size: 10px;
}

.tag-trail > span {
  margin-right: 3px;
}

.tag-trail a {
  padding: 4px 8px;

  border: 1px solid #e3e5e8;
  border-radius: 999px;
}

/* 관리자 메뉴 */

.admin-tools {
  margin-top: 16px;

  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.admin-tools a,
.admin-tools button {
  padding: 5px 9px;

  border: 1px solid #e2e4e7;
  border-radius: 5px;

  background: #ffffff;
  color: #8c9199;

  cursor: pointer;

  font-size: 10px;
}

/* 이전 글·다음 글 */

.post-neighbors {
  margin-top: 42px;
  padding-top: 19px;

  display: grid;
  gap: 8px;

  border-top: 1px solid #e6e8eb;
}

.post-neighbors a {
  padding: 10px 12px;

  display: grid;
  grid-template-columns:
    52px
    minmax(0, 1fr);

  gap: 8px;

  background: #f7f8fa;

  font-size: 11px;
}

.post-neighbors span {
  color: #a1a5ac;
}

.post-neighbors strong {
  min-width: 0;

  overflow: hidden;

  color: #4c5159;

  font-weight: 600;

  white-space: nowrap;
  text-overflow: ellipsis;
}

/* 댓글 */

.comment-area {
  margin-top: 42px;
  padding-top: 22px;

  border-top: 1px solid #e5e7eb;
}

.tt-comment-cont,
.tt-area-reply,
.tt-area-write,
.tt-box-total {
  max-width: 100% !important;
  font-family: inherit !important;
}

/* 보호글 */

.protected-box {
  margin-top: 28px;
  padding: 25px;

  border: 1px solid #e3e5e8;

  background: #f8f9fa;

  text-align: center;
}

.protected-form {
  margin-top: 16px;

  display: flex;
  justify-content: center;
  gap: 7px;
}

.protected-form label {
  position: absolute;

  width: 1px;
  height: 1px;

  overflow: hidden;

  clip: rect(0, 0, 0, 0);
}

.protected-form input {
  width: 205px;
  padding: 9px 10px;

  border: 1px solid #d3d7dc;

  background: #ffffff;
}

.protected-form button {
  padding: 9px 16px;

  background: var(--blue-900);
  color: #ffffff;

  cursor: pointer;
}

/* 하단 */

.site-footer {
  margin-top: 100px;

  background: var(--footer);
  color: #8f9292;
}

.footer-inner {
  width: min(
    calc(100% - 36px),
    1180px
  );

  min-height: 270px;

  margin: 0 auto;
  padding: 48px 0 38px;

  display: grid;
  grid-template-columns:
    1fr
    auto;

  gap: 30px;
  align-content: start;

  font-size: 11px;
}

.footer-policy-nav {
  grid-column: 1 / -1;

  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;

  padding-bottom: 22px;

  border-bottom:
    1px solid rgba(255, 255, 255, 0.08);
}

.footer-policy-nav a {
  position: relative;

  color: #e5e7eb;

  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;

  transition:
    color 0.18s ease,
    transform 0.18s ease;
}

.footer-policy-nav a + a::before {
  content: "";

  position: absolute;
  top: 50%;
  left: -12px;

  width: 1px;
  height: 11px;

  background: rgba(255, 255, 255, 0.18);

  transform: translateY(-50%);
}

.footer-policy-nav a:hover,
.footer-policy-nav a:focus-visible {
  color: #ffffff;
  transform: translateY(-1px);
}

.footer-policy-nav a:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 4px;
  border-radius: 2px;
}

.footer-info p,
.footer-copyright,
.footer-notice {
  margin: 0;
}

.footer-info {
  display: grid;
  gap: 17px;
}

.footer-copyright {
  padding-top: 34px;
  text-align: right;
}

.footer-notice {
  grid-column: 1 / -1;

  margin-top: 24px;
  padding-top: 19px;

  border-top:
    1px solid rgba(255, 255, 255, 0.04);

  color: #777a7a;

  font-size: 13px;
  line-height: 1.8;
}

/* 독립 안내 페이지 */

.policy-page {
  color: var(--text);

  font-size: 16px;
  line-height: 1.85;
}

.policy-page > :first-child {
  margin-top: 0;
}

.policy-page h2 {
  margin: 48px 0 16px;
  padding-bottom: 10px;

  border-bottom: 1px solid var(--line);

  color: var(--ink);

  font-size: 22px;
  line-height: 1.45;
}

.policy-page h3 {
  margin: 30px 0 10px;

  color: var(--ink);

  font-size: 18px;
  line-height: 1.5;
}

.policy-page p,
.policy-page ul {
  margin: 12px 0;
}

.policy-page ul {
  padding-left: 1.4em;
}

.policy-page li + li {
  margin-top: 8px;
}

.policy-page a {
  color: var(--blue-700);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.policy-page a:hover,
.policy-page a:focus-visible {
  color: var(--blue-900);
}

.policy-page .policy-summary,
.policy-page .policy-note {
  margin: 24px 0;
  padding: 20px 22px;

  border: 1px solid #dbe4f5;
  border-radius: 14px;
  background: var(--blue-050);
}

.policy-page .policy-summary strong,
.policy-page .policy-note strong {
  color: var(--blue-900);
}

.policy-page .policy-meta {
  margin-top: 42px;
  padding-top: 18px;

  border-top: 1px solid var(--line);

  color: #686d76;

  font-size: 14px;
}

/* 맨 위로 버튼 */

.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 900;

  width: 35px;
  height: 35px;

  border: 1px solid #d8dce1;
  border-radius: 50%;

  background: rgba(255, 255, 255, 0.95);
  color: var(--blue-900);

  cursor: pointer;

  box-shadow:
    0 5px 15px rgba(15, 23, 42, 0.1);

  opacity: 0;
  visibility: hidden;

  transform: translateY(7px);

  transition: 0.2s ease;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;

  transform: translateY(0);
}

/* 태블릿·모바일 */

@media (max-width: 760px) {
  body {
    word-break: normal;
  }

  .main-area,
  #tt-body-page .main-area {
    width: min(
      calc(100% - 28px),
      var(--list-width)
    );

    padding-top: 115px;
  }

  #tt-body-page .main-area {
    width: min(
      calc(100% - 28px),
      var(--article-width)
    );
  }

  .floating-header {
    top: 13px;
    right: 13px;
  }

  .post-list-item {
    min-height: 112px;

    grid-template-columns:
      minmax(0, 1fr)
      96px;

    gap: 17px;

    padding-bottom: 22px;
    margin-bottom: 22px;
  }

  .post-list-title {
    margin-bottom: 5px;

    font-size: 19px;
  }

  .post-list-summary {
    font-size: 13px;
    line-height: 1.62;

    -webkit-line-clamp: 2;
  }

  .post-list-thumb {
    width: 96px;
    height: 96px;
  }

  .post-list-meta {
    font-size: 9px;
  }

  .post-header h1 {
    font-size: 25px;
  }

  .post-category {
    font-size: 11px;
  }

  .auto-toc {
    padding: 15px 18px 17px;
  }

  .article-body {
    font-size: 14px;
  }

  .article-section-card {
    margin: 34px 0 40px;
  }

  .article-section-card > h2 {
    font-size: 16px;
  }

  .article-body table {
    display: block;

    overflow-x: auto;

    white-space: nowrap;
  }

  .paging {
    margin-bottom: 60px;
  }

  .site-footer {
    margin-top: 75px;
  }

  .footer-inner {
    min-height: 250px;

    padding: 36px 0 32px;

    grid-template-columns: 1fr;
    gap: 18px;
  }

  .footer-policy-nav {
    gap: 9px 20px;
    padding-bottom: 18px;
  }

  .footer-policy-nav a {
    font-size: 12px;
  }

  .footer-policy-nav a + a::before {
    left: -10px;
  }

  .footer-copyright {
    padding-top: 0;
    text-align: left;
  }

  .footer-notice {
    grid-column: auto;

    margin-top: 8px;

    font-size: 11px;
  }

  .policy-page {
    font-size: 15px;
  }

  .policy-page h2 {
    margin-top: 38px;

    font-size: 19px;
  }

  .policy-page h3 {
    font-size: 17px;
  }

  .policy-page .policy-summary,
  .policy-page .policy-note {
    padding: 17px 18px;

    border-radius: 12px;
  }
}

@media (max-width: 430px) {
  .post-list-item {
    grid-template-columns:
      minmax(0, 1fr)
      82px;

    gap: 13px;
  }

  .post-list-thumb {
    width: 82px;
    height: 82px;
  }

  .post-list-title {
    font-size: 17px;
  }

  .post-list-summary {
    -webkit-line-clamp: 2;
  }

  .paging-numbers a:nth-child(n + 7) {
    display: none;
  }
}

/* ==================================================
   상세 글 최종 크기·가독성 보정
   - PC 본문 폭: 820px
   - 본문/목차 항목: 18px
   - 티스토리 기본 area_view 구조와 사용자 정의 article-body 구조 모두 지원
================================================== */

:root {
  --article-width: 820px;
  --article-font-size: 18px;
  --article-line-height: 1.8;
}

/* 상세 글 전체 폭 */
#tt-body-page .main-area {
  width: min(calc(100% - 48px), var(--article-width));
  max-width: var(--article-width);
}

#tt-body-page .post-view {
  width: 100%;
  max-width: none;
}

/* 기본 티스토리 스킨 구조를 사용하는 경우에도 같은 폭 적용 */
.skin_view .area_title,
.skin_view .area_view {
  width: min(calc(100% - 48px), var(--article-width));
  max-width: var(--article-width);
  margin-left: auto;
  margin-right: auto;
}

/* 글 상단 */
.post-category,
.skin_view .area_title .category {
  font-size: 14px;
}

.post-header h1,
.skin_view .area_title h1,
.skin_view .area_title .title_post {
  max-width: 100%;
  font-size: 36px;
  line-height: 1.35;
  letter-spacing: -0.045em;
}

.post-meta,
.skin_view .area_title .info_post {
  margin-top: 13px;
  font-size: 11px;
}

/* 본문 기본 크기 */
.article-body,
.skin_view .area_view {
  font-size: var(--article-font-size);
  line-height: var(--article-line-height);
}

.article-body p,
.skin_view .area_view p {
  font-size: inherit;
  line-height: inherit;
}

/* 대표 이미지 아래 도입 문단: 실제 글의 lead-intro와 스킨용 lead-box 모두 지원 */
.article-body .lead-box,
.article-body .lead-intro,
.skin_view .area_view .lead-box,
.skin_view .area_view .lead-intro {
  margin: 12px 0 26px;
  padding: 14px 16px;
  border: 1px solid #cdd6f4;
  border-radius: 8px;
  background: #f4f6fb;
  color: #2a2f45;
  font-size: var(--article-font-size);
  line-height: var(--article-line-height);
}

/* 제목 2 단위 카드: 두 HTML 구조 모두 지원 */
.article-section-card,
.skin_view .area_view .post-card {
  font-size: var(--article-font-size);
  line-height: var(--article-line-height);
}

.article-section-card p,
.skin_view .area_view .post-card p {
  font-size: inherit;
  line-height: inherit;
}

.article-section-card > h2,
.skin_view .area_view .post-card > h2,
.skin_view .area_view .post-card h2:first-child {
  padding: 11px 14px 12px;
  font-size: 22px;
  line-height: 1.45;
}

.article-body h3,
.skin_view .area_view h3 {
  font-size: 20px;
  line-height: 1.5;
}

.article-body h4,
.skin_view .area_view h4 {
  font-size: 18px;
  line-height: 1.5;
}

/* 요약 인용문은 본문보다 한 단계만 작게 */
.article-body blockquote,
.skin_view .area_view blockquote {
  font-size: 16px;
  line-height: 1.75;
}

/* ==================================================
   자동 목차: 본문과 같은 18px, 세로 1열
================================================== */
.auto-toc {
  width: 100%;
  max-width: none;
  margin: 26px 0 44px;
  padding: 26px 32px 28px;
  border: 1px solid #d7dbe2;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

.auto-toc > strong {
  display: block;
  margin: 0 0 18px;
  color: #171a20;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.4;
  text-align: center;
}

.auto-toc ul {
  display: block;
  grid-template-columns: none;
  margin: 0;
  padding: 0;
  list-style: none;
}

.auto-toc li {
  position: relative;
  margin: 0;
  padding: 7px 0 7px 24px;
  color: #2459c4;
  font-size: var(--article-font-size);
  line-height: var(--article-line-height);
}

.auto-toc li::before {
  content: "";
  position: absolute;
  top: 1.17em;
  left: 5px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2459c4;
  transform: translateY(-50%);
}

.auto-toc li::marker {
  content: "";
}

.auto-toc a {
  display: block;
  color: #2459c4;
  font-size: inherit;
  font-weight: 500;
  line-height: inherit;
  word-break: keep-all;
}

.auto-toc a:hover {
  color: #173f8f;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.auto-toc .toc-depth-3 {
  margin-left: 18px;
  padding-left: 22px;
  color: #667796;
  font-size: var(--article-font-size);
}

.auto-toc .toc-depth-3 a {
  color: #667796;
}

/* 모바일 */
@media (max-width: 760px) {
  :root {
    --article-font-size: 16px;
    --article-line-height: 1.75;
  }

  #tt-body-page .main-area,
  .skin_view .area_title,
  .skin_view .area_view {
    width: calc(100% - 28px);
    max-width: none;
  }

  .post-header h1,
  .skin_view .area_title h1,
  .skin_view .area_title .title_post {
    font-size: 28px;
    line-height: 1.38;
  }

  .auto-toc {
    margin: 22px 0 36px;
    padding: 21px 20px 23px;
  }

  .auto-toc > strong {
    margin-bottom: 15px;
    font-size: 17px;
  }

  .auto-toc li {
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .auto-toc .toc-depth-3 {
    margin-left: 10px;
  }

  .article-section-card > h2,
  .skin_view .area_view .post-card > h2,
  .skin_view .area_view .post-card h2:first-child {
    font-size: 19px;
  }

  .article-body blockquote,
  .skin_view .area_view blockquote {
    font-size: 15px;
  }
}

/* 글 상세 화면 홈 이동 버튼 */
.floating-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.home-link-button {
  display: none;
}

#tt-body-page .home-link-button {
  min-width: 48px;
  height: 38px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d9dce1;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #333333;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.08);
}

#tt-body-page .home-link-button:hover {
  color: var(--blue-900);
  border-color: #c8ccd2;
}
