@font-face {
  font-family: 'Paperlogy';
  src: url('./images/Paperlogy-1Thin.woff2') format('woff2');
  font-style: normal;
  font-weight: 100;
  font-display: swap;
}

@font-face {
  font-family: 'Paperlogy';
  src: url('./images/Paperlogy-2ExtraLight.woff2') format('woff2');
  font-style: normal;
  font-weight: 200;
  font-display: swap;
}

@font-face {
  font-family: 'Paperlogy';
  src: url('./images/Paperlogy-3Light.woff2') format('woff2');
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: 'Paperlogy';
  src: url('./images/Paperlogy-4Regular.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Paperlogy';
  src: url('./images/Paperlogy-5Medium.woff2') format('woff2');
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: 'Paperlogy';
  src: url('./images/Paperlogy-6SemiBold.woff2') format('woff2');
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: 'Paperlogy';
  src: url('./images/Paperlogy-7Bold.woff2') format('woff2');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: 'Paperlogy';
  src: url('./images/Paperlogy-8ExtraBold.woff2') format('woff2');
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: 'Paperlogy';
  src: url('./images/Paperlogy-9Black.woff2') format('woff2');
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

:root {
  --bg-color: #ffffff;
  --surface-color: #ffffff;
  --surface-muted: #f8fafc;
  --surface-soft: #f3f4f6;
  --text-color: #111827;
  --text-sub-color: #4b5563;
  --line-color: #e5e7eb;
  --point: #1d4ed8;
  --shadow-color: rgba(15, 23, 42, 0.12);

  --bg: var(--bg-color);
  --surface: var(--surface-color);
  --text: var(--text-color);
  --sub: var(--text-sub-color);
  --line: var(--line-color);
  --font-sans: 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
  --mobile-content-padding: 8px;

  --content-max: 1120px;
  --body-spacing: -0.012em;
  --h2-spacing: -0.022em;
  --top-menu-display: none;
  --top-menu-home: none;
  --top-menu-tag: none;
  --top-menu-guestbook: none;
  --top-menu-rss: none;
}

html[data-theme='dark'] {
  color-scheme: dark;
  --bg-color: #121212;
  --surface-color: #1a1a1a;
  --surface-muted: #1f1f1f;
  --surface-soft: #242424;
  --text-color: #e0e0e0;
  --text-sub-color: #b8b8b8;
  --line-color: #2b2b2b;
  --shadow-color: rgba(0, 0, 0, 0.45);
}

html[data-theme='light'] {
  color-scheme: light;
}

html[data-font='paperlogy'] {
  --font-sans: 'Paperlogy', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 400;
  letter-spacing: var(--body-spacing);
  line-height: 1.78;
  text-rendering: optimizeLegibility;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

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

img,
video,
iframe,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Tistory "new" badge icon (orange N) hide */
img[src*='new_ico_' i],
img[alt='N'][src*='/category/' i],
.ico_new,
[class*='new_ico'] {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
}

.category-smart-menu > ul > li > a img[alt='N'],
.category-smart-menu > ul > li > ul a img[alt='N'],
.category-smart-menu > ul > li > a .ico_new,
.category-smart-menu > ul > li > ul a .ico_new {
  display: none !important;
}

a {
  color: var(--text);
  text-underline-offset: 0.16em;
}

a:hover {
  color: var(--point);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: 8px;
  top: -42px;
  z-index: 100;
  border-radius: 8px;
  background: #111827;
  color: #fff;
  padding: 8px 12px;
  text-decoration: none;
}

.skip-link:focus {
  top: 8px;
}

.wrap {
  width: min(calc(100% - 40px), var(--content-max));
  margin: 0 auto;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  position: static;
  top: auto;
  z-index: 120;
  box-shadow: none;
}

.site-header .wrap {
  padding: 16px 0 12px;
}

.site-header-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
}

.site-branding {
  flex: 1;
  min-width: 0;
  max-width: min(100%, 920px);
}

.site-title {
  margin: 0;
  letter-spacing: -0.025em;
}

.site-title a {
  text-decoration: none;
}

.site-desc {
  margin: 10px 0 0;
  color: color-mix(in srgb, var(--sub) 84%, var(--text) 16%);
  font-size: clamp(1.02rem, 0.22vw + 0.96rem, 1.14rem);
  line-height: 1.66;
  letter-spacing: -0.01em;
  max-width: 100%;
  text-wrap: pretty;
}

.site-nav {
  display: var(--top-menu-display);
  margin-top: 14px;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

.site-nav li {
  display: inline-flex;
}

.site-nav .nav-home {
  display: var(--top-menu-home);
}

.site-nav .nav-tag {
  display: var(--top-menu-tag);
}

.site-nav .nav-guestbook {
  display: var(--top-menu-guestbook);
}

.site-nav .nav-rss {
  display: var(--top-menu-rss);
}

.site-nav a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  text-decoration: none;
  font-weight: 500;
  color: var(--sub);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 0;
  padding-top: 2px;
  min-height: 36px;
  flex: 0 0 auto;
}

.theme-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 56px;
  height: 32px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--sub);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  border-color: color-mix(in srgb, var(--point) 38%, var(--line) 62%);
}

.theme-toggle:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--point) 45%, #ffffff 55%);
  outline-offset: 2px;
}

.theme-toggle-icon {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.theme-toggle-icon svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-toggle-icon-moon svg {
  fill: currentColor;
  stroke: none;
}

.theme-toggle-knob {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--point);
  box-shadow: 0 3px 10px var(--shadow-color);
  transition: transform 0.22s ease, background-color 0.22s ease;
}

.theme-toggle-icon-sun {
  opacity: 1;
}

.theme-toggle-icon-moon {
  opacity: 0.45;
}

html[data-theme='dark'] .theme-toggle-knob {
  transform: translateX(24px);
}

html[data-theme='dark'] .theme-toggle-icon-sun {
  opacity: 0.45;
}

html[data-theme='dark'] .theme-toggle-icon-moon {
  opacity: 1;
}

.search-form {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.search-form input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
}

.search-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.search-form button:hover,
.search-form button:focus-visible {
  background: var(--surface-muted);
}

.search-form button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

main.wrap {
  padding: 24px 0 38px;
}

.content-area {
  width: 100%;
  min-width: 0;
}

.list-intro {
  display: none;
}

.list-intro h2 {
  margin: 0 0 6px;
  font-size: 1rem;
  color: var(--sub);
  letter-spacing: -0.01em;
}

.post {
  display: block;
  border-bottom: 1px solid var(--line);
  padding: 34px 0;
}

body#tt-body-category .post-article,
body#tt-body-tag .post-article,
body#tt-body-search .post-article {
  display: none;
}

.list-empty {
  margin: 20px 0 0;
  color: var(--sub);
}

.post-head h1,
.post-head h2 {
  margin: 10px 0 0;
  font-size: clamp(1.44rem, 1.9vw, 1.7rem);
  line-height: 1.42;
  letter-spacing: -0.5px;
  font-weight: 400;
}

.post-head h1 a,
.post-head h2 a {
  text-decoration: none;
  font-weight: 400;
  letter-spacing: -0.5px;
  transition: color 0.22s ease;
}

.post-meta {
  margin: 0;
  font-size: 0.9rem;
  color: var(--sub);
}

.post-head time {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--sub);
}

.post-summary {
  margin: 16px 0 0;
  color: var(--text);
  font-weight: 400;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.post-list-item {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-top: 16px;
}

.post-list-item s_article_rep_thumbnail,
.post-list-item s_list_rep_thumbnail {
  display: block;
  flex: 0 0 160px;
}

.post-list-item .post-thumb {
  display: block;
  width: 160px;
  height: 160px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-soft);
}

.post-list-item .post-thumb[hidden] {
  display: none !important;
}

.post-list-item .post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-list-text {
  flex: 1;
  min-width: 0;
  padding-right: 6px;
}

.post-list-text .post-summary {
  margin: 0;
}

.post-more {
  display: inline-block;
  margin-top: 14px;
  font-weight: 500;
}

.post-list-text .post-more {
  margin-top: 10px;
}

.post-body {
  margin-top: 20px;
  letter-spacing: var(--body-spacing);
  font-weight: 400;
}

.post-body > *:first-child {
  margin-top: 0;
}

.post-body > *:last-child {
  margin-bottom: 0;
}

.post-body h2 {
  margin: 2.4em 0 0.95em;
  padding: 0.18em 0 0.62em;
  border-bottom: 1px solid var(--line);
  letter-spacing: var(--h2-spacing);
  font-weight: 700;
  text-wrap: balance;
  scroll-margin-top: 90px;
}

.post-body h3 {
  margin: 2em 0 0.7em;
  letter-spacing: -0.015em;
}

.post-body li,
.post-body blockquote {
  line-height: 1.92;
}

.post-body blockquote {
  margin: 1.4em 0;
  padding: 0.9em 1em;
  border-left: 4px solid color-mix(in srgb, var(--line) 60%, var(--text) 40%);
  background: var(--surface-muted);
  color: var(--text);
}

.post-body pre,
.post-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
}

.post-body pre {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  background: var(--surface-muted);
}

.post-body figure[data-ke-type='table'],
.post-body figure[data-ke-type='html'],
.post-body figure[data-ke-type='video'] {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.post-body figure[data-ke-type='table'] {
  overflow-x: auto;
}

.post-body table,
.post-body table[style] {
  width: 100% !important;
  max-width: 100% !important;
  border-collapse: collapse;
  table-layout: auto;
  display: table;
}

.post-body iframe,
.post-body iframe[style] {
  width: 100% !important;
  max-width: 100% !important;
}

.post-body th,
.post-body td {
  border: 1px solid var(--line);
  padding: 9px;
  text-align: left;
}

.post-tags {
  margin: 28px 0 0;
  color: var(--sub);
  font-size: 0.95rem;
}

.another_category {
  margin-top: 22px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
}

.another_category h4 {
  margin: 0;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 0.98rem;
  line-height: 1.42;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: color-mix(in srgb, var(--text) 82%, var(--sub) 18%);
}

.another_category table {
  width: 100% !important;
  margin-top: 0;
  border-collapse: collapse !important;
  table-layout: fixed !important;
  display: table !important;
}

.another_category th,
.another_category td {
  padding: 10px 14px;
  border-top: 1px solid color-mix(in srgb, var(--line) 88%, var(--surface) 12%);
  vertical-align: middle;
}

.another_category tr:first-child th,
.another_category tr:first-child td {
  border-top: 0;
}

.another_category th {
  text-align: left;
  font-weight: 500;
}

.another_category th a {
  color: var(--text);
  text-decoration: none;
  line-height: 1.45;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.another_category th a:hover,
.another_category th a:focus-visible {
  color: var(--point);
}

.another_category td {
  width: 110px;
  text-align: right;
  color: var(--sub);
  font-size: 0.84rem;
  white-space: nowrap;
  padding-left: 8px;
  font-variant-numeric: tabular-nums;
}

.another_category .cmt,
.another_category img[alt='N'],
.another_category .ico_new,
.another_category [class*='new_ico'] {
  display: none !important;
}

.related-posts {
  margin-top: 28px;
}

.related-posts-title {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--sub);
  letter-spacing: -0.01em;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.related-card {
  min-width: 0;
}

.related-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.related-card-link:hover,
.related-card-link:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px var(--shadow-color);
  border-color: color-mix(in srgb, var(--point) 28%, var(--line) 72%);
}

.related-card-link:focus-visible {
  outline: none;
}

.related-thumb {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface-soft);
}

.related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 11px 12px 12px;
  min-height: 92px;
}

.related-title {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.45;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.related-date {
  font-size: 0.82rem;
  color: var(--sub);
}

.related-card.text_type .related-content {
  padding-top: 14px;
}

.comments,
.guestbook,
.tag-cloud {
  margin-top: 26px;
}

html[data-article-comment='off'] .post-comments {
  display: none !important;
}

html[data-cover-comment='off'] .cover-section-comment {
  display: none !important;
}

.comments-heading {
  margin: 0 0 10px;
  font-size: 1.05rem;
  letter-spacing: -0.015em;
}

.post-comments .tt-comment-cont,
.cover-comment-inline {
  border: 1px solid color-mix(in srgb, var(--line) 86%, var(--text) 14%);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 88%, var(--surface-muted) 12%);
  padding: 14px;
}

.post-comments .tt-box-total,
.cover-comment-inline .tt-box-total {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 82%, var(--text) 18%);
}

.post-comments .tt-area-write,
.cover-comment-inline .tt-area-write {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 12px;
}

.post-comments .tt-box-thumb,
.cover-comment-inline .tt-box-thumb {
  flex: 0 0 34px;
}

.post-comments .tt-thumbnail,
.cover-comment-inline .tt-thumbnail {
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--surface-soft) center / cover no-repeat;
}

.post-comments .tt_wrap_write,
.post-comments .tt-box-content,
.post-comments .tt-box-textarea,
.post-comments .tt-editor-content,
.cover-comment-inline .tt_wrap_write,
.cover-comment-inline .tt-box-content,
.cover-comment-inline .tt-box-textarea,
.cover-comment-inline .tt-editor-content {
  width: 100%;
  min-width: 0;
}

.post-comments .tt-box-account,
.cover-comment-inline .tt-box-account {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 8px;
}

.post-comments .tt-box-account input,
.cover-comment-inline .tt-box-account input {
  min-height: 40px;
  font: inherit;
}

.post-comments .tt-editor-content,
.cover-comment-inline .tt-editor-content,
.post-comments .tt-box-textarea .tt-inner-g,
.cover-comment-inline .tt-box-textarea .tt-inner-g {
  border: 1px solid color-mix(in srgb, var(--line) 84%, var(--text) 16%);
  border-radius: 10px;
  background: var(--surface);
  padding: 10px 12px;
}

.post-comments .tt-cmt,
.cover-comment-inline .tt-cmt {
  min-height: 120px;
  line-height: 1.6;
  outline: none;
  white-space: pre-wrap;
  word-break: break-word;
}

.post-comments .tt-cmt:empty::before,
.cover-comment-inline .tt-cmt:empty::before {
  content: attr(placeholder);
  color: var(--sub);
}

.post-comments .tt-box-write,
.cover-comment-inline .tt-box-write {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.post-comments .tt-box-write .tt_box_namecard,
.cover-comment-inline .tt-box-write .tt_box_namecard {
  margin-right: auto;
  color: var(--sub);
  font-size: 0.84rem;
}

.post-comments .tt_btn_register,
.post-comments .tt-btn_register,
.post-comments .tt-btn-register,
.post-comments .tt-area-write button[type='submit'],
.post-comments .tt-area-write input[type='submit'],
.cover-comment-inline .tt_btn_register,
.cover-comment-inline .tt-btn_register,
.cover-comment-inline .tt-btn-register,
.cover-comment-inline .tt-area-write button[type='submit'],
.cover-comment-inline .tt-area-write input[type='submit'] {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid color-mix(in srgb, var(--point) 72%, var(--line) 28%);
  border-radius: 10px;
  padding: 0 14px;
  background: color-mix(in srgb, var(--point) 12%, #ffffff 88%);
  color: var(--point);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.post-comments .tt_btn_register[disabled],
.post-comments .tt-btn_register[disabled],
.post-comments .tt-btn-register[disabled],
.cover-comment-inline .tt_btn_register[disabled],
.cover-comment-inline .tt-btn_register[disabled],
.cover-comment-inline .tt-btn-register[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

html[data-comment-embed='on'] body {
  background: var(--surface);
}

html[data-comment-embed='on'] .site-header,
html[data-comment-embed='on'] .cover-home,
html[data-comment-embed='on'] .list-intro,
html[data-comment-embed='on'] .list-feed,
html[data-comment-embed='on'] .post,
html[data-comment-embed='on'] .paging,
html[data-comment-embed='on'] .tag-cloud,
html[data-comment-embed='on'] .site-footer {
  display: none !important;
}

html[data-comment-embed='on'] .main {
  padding: 0;
}

html[data-comment-embed='on'] .main > .wrap {
  max-width: none;
  padding: 0;
}

html[data-comment-embed='on'] .guestbook {
  margin: 0;
  padding: 0;
}

html[data-comment-embed='on'] .guestbook > h2 {
  display: none;
}

html[data-comment-embed='on'] .guestbook .tt-comment-cont {
  border: 0 !important;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0 !important;
}

html[data-comment-embed='on'] .guestbook .tt-box-total {
  display: none;
}

html[data-comment-embed='on'] .guestbook .tt-box-write {
  margin-bottom: 0;
}

.tag-cloud ul {
  list-style: none;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

.tag-cloud a {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  text-decoration: none;
}

.post-admin {
  margin-top: 18px;
  display: flex;
  gap: 12px;
}

.post-admin a {
  font-size: 0.9rem;
  color: var(--sub);
}

.paging {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  margin-top: 34px;
  flex-wrap: wrap;
}

.paging span {
  display: inline-flex;
  gap: 4px;
}

.paging a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  border: 0;
  border-radius: 0;
  padding: 0 10px;
  background: transparent;
  color: var(--sub);
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: color 0.16s ease, opacity 0.16s ease;
}

.paging span a {
  min-width: 34px;
  padding: 0;
}

.paging a:hover,
.paging a:focus-visible {
  color: var(--text);
  opacity: 0.92;
}

.paging .selected,
.paging a.selected {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 36px;
  padding: 0;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 2px solid var(--text);
  border-radius: 0;
  color: var(--text);
  font-weight: 700;
}

.paging a.no-more-prev,
.paging a.no-more-next,
.paging a.disabled {
  opacity: 0.72;
  pointer-events: none;
  background: transparent;
  border: 0;
  color: color-mix(in srgb, var(--sub) 90%, var(--text) 10%);
}

.cover-home {
  display: grid;
  gap: 18px;
  margin-bottom: 20px;
}

.cover-section {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  padding: 18px;
}

.cover-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.cover-section-title {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.36;
  letter-spacing: -0.02em;
  font-weight: var(--cover-section-title-weight, 700);
}

.cover-section-more {
  color: var(--sub);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: var(--cover-section-more-weight, 600);
}

.cover-section-more:hover,
.cover-section-more:focus-visible {
  color: var(--point);
}

.cover-section-landing {
  overflow: hidden;
}

.cover-landing-wrap {
  display: grid;
  gap: 12px;
}

.cover-landing-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, var(--cover-hero-image-width, 34%));
  gap: 20px;
  border: 1px solid color-mix(in srgb, var(--line) 84%, var(--text) 16%);
  border-radius: 16px;
  background: linear-gradient(135deg, var(--cover-hero-bg-start, #eff5fb), var(--cover-hero-bg-end, #e7f0ff));
  padding: 22px;
}

.cover-landing-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.cover-landing-card > :only-child {
  grid-column: 1 / -1;
}

.cover-landing-kicker {
  margin: 0 0 8px;
  color: var(--sub);
  font-size: 0.8rem;
  font-weight: var(--cover-hero-badge-weight, 700);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cover-landing-title {
  margin: 0;
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  line-height: 1.28;
  letter-spacing: -0.028em;
  font-weight: var(--cover-hero-title-weight, 700);
}

.cover-landing-title a {
  color: var(--text);
  text-decoration: none;
}

.cover-landing-summary {
  margin: 12px 0 0;
  color: var(--sub);
  line-height: 1.7;
  font-weight: var(--cover-hero-summary-weight, 400);
}

.cover-landing-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cover-landing-actions[hidden] {
  display: none !important;
}

.cover-landing-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--cover-hero-btn-radius, 12px);
  padding: 0 14px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: var(--cover-hero-btn-weight, 600);
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, color 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.cover-landing-btn[hidden] {
  display: none !important;
}

.cover-landing-btn:hover,
.cover-landing-btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--point) 20%, transparent 80%);
}

.cover-landing-btn.primary {
  border-color: color-mix(in srgb, var(--cover-hero-btn-primary-bg, var(--point)) 66%, var(--line) 34%);
  background: color-mix(in srgb, var(--cover-hero-btn-primary-bg, var(--point)) 14%, #ffffff 86%);
  color: var(--cover-hero-btn-primary-bg, var(--point));
}

.cover-landing-btn.secondary {
  border-color: color-mix(in srgb, var(--cover-hero-btn-secondary-bg, var(--surface)) 52%, var(--line) 48%);
  background: color-mix(in srgb, var(--cover-hero-btn-secondary-bg, var(--surface)) 70%, #ffffff 30%);
  color: var(--cover-hero-btn-secondary-text, var(--text));
}

.cover-hero-btnstyle-solid .cover-landing-btn.primary {
  border-color: transparent;
  background: var(--cover-hero-btn-primary-bg, var(--point));
  color: var(--cover-hero-btn-primary-text, #ffffff);
}

.cover-hero-btnstyle-solid .cover-landing-btn.secondary {
  border-color: transparent;
  background: var(--cover-hero-btn-secondary-bg, #ffffff);
  color: var(--cover-hero-btn-secondary-text, var(--text));
}

.cover-hero-btnstyle-outline .cover-landing-btn {
  background: transparent;
  box-shadow: none;
}

.cover-hero-btnstyle-outline .cover-landing-btn.primary {
  border-color: var(--cover-hero-btn-primary-bg, var(--point));
  color: var(--cover-hero-btn-primary-bg, var(--point));
}

.cover-hero-btnstyle-outline .cover-landing-btn.secondary {
  border-color: var(--cover-hero-btn-secondary-bg, var(--line));
  color: var(--cover-hero-btn-secondary-text, var(--text));
}

.cover-hero-layout-left .cover-landing-card {
  grid-template-columns: minmax(220px, var(--cover-hero-image-width, 34%)) minmax(0, 1fr);
}

.cover-hero-layout-left .cover-landing-body {
  order: 2;
}

.cover-hero-layout-left .cover-landing-thumb {
  order: 1;
}

.cover-hero-layout-top .cover-landing-card {
  grid-template-columns: 1fr;
}

.cover-hero-layout-top .cover-landing-thumb {
  max-width: min(100%, 760px);
  justify-self: center;
}

.cover-hero-align-center .cover-landing-body {
  align-items: center;
  text-align: center;
}

.cover-hero-align-center .cover-landing-actions {
  justify-content: center;
}

.cover-hero-title-bottom .cover-landing-summary {
  order: 2;
}

.cover-hero-title-bottom .cover-landing-title {
  order: 3;
  margin-top: 10px;
}

.cover-landing-thumb {
  display: block;
  align-self: center;
  justify-self: stretch;
  width: 100%;
  max-width: 100%;
  aspect-ratio: var(--cover-hero-image-ratio, 16 / 10);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--line) 76%, var(--text) 24%);
  background: color-mix(in srgb, var(--surface) 64%, #ffffff 36%);
}

.cover-landing-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  object-position: center;
}

.cover-landing-wrap.is-multi {
  gap: 10px;
}

.cover-landing-wrap.is-multi .cover-landing-card.is-secondary {
  grid-template-columns: minmax(0, 1fr) minmax(170px, 28%);
  gap: 14px;
  border-radius: 14px;
  padding: 16px;
}

.cover-landing-wrap.is-multi .cover-landing-card.is-secondary .cover-landing-kicker {
  margin-bottom: 6px;
  font-size: 0.74rem;
}

.cover-landing-wrap.is-multi .cover-landing-card.is-secondary .cover-landing-title {
  font-size: clamp(1.03rem, 1.7vw, 1.34rem);
  line-height: 1.34;
}

.cover-landing-wrap.is-multi .cover-landing-card.is-secondary .cover-landing-summary {
  margin-top: 8px;
  line-height: 1.58;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.cover-landing-wrap.is-multi .cover-landing-card.is-secondary .cover-landing-actions {
  display: none !important;
}

.cover-landing-wrap.is-multi .cover-landing-card.is-secondary .cover-landing-thumb img {
  aspect-ratio: 4 / 3;
}

.cover-grid {
  display: grid;
  gap: 12px;
}

.cover-grid-guide {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cover-grid-guide.cover-grid-count-1 {
  grid-template-columns: 1fr;
}

.cover-grid-guide.cover-grid-count-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cover-grid-guide.cover-grid-count-4plus {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cover-grid-spotlight {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cover-grid-latest {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cover-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-muted);
  min-height: 100%;
  overflow: hidden;
}

.cover-card-thumb {
  display: block;
}

.cover-card-thumb img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.cover-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
}

.cover-card-title {
  margin: 0;
  font-size: 1.03rem;
  line-height: 1.42;
  letter-spacing: -0.02em;
  font-weight: var(--cover-card-title-weight, 700);
}

.cover-card-title a {
  color: var(--text);
  text-decoration: none;
}

.cover-card-summary {
  margin: 0;
  color: var(--sub);
  line-height: 1.62;
  font-weight: var(--cover-card-summary-weight, 400);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.cover-card-link {
  margin-top: auto;
  color: var(--point);
  font-size: 0.9rem;
  font-weight: var(--cover-card-link-weight, 600);
  text-decoration: none;
}

.cover-card-link:hover,
.cover-card-link:focus-visible {
  text-decoration: underline;
}

.cover-card-spotlight .cover-card-thumb img {
  aspect-ratio: 16 / 9;
}

.cover-section-steps {
  border-color: color-mix(in srgb, var(--line) 84%, var(--point) 16%);
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 92%, var(--point) 8%), var(--surface));
}

.cover-steps-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  counter-reset: cover-step;
}

.cover-step-item {
  position: relative;
  counter-increment: cover-step;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-muted);
  padding: 14px 14px 14px 52px;
}

.cover-step-item::before {
  content: counter(cover-step);
  position: absolute;
  left: 14px;
  top: 14px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--point) 65%, var(--line) 35%);
  background: color-mix(in srgb, var(--point) 12%, #ffffff 88%);
  color: var(--point);
  font-size: 0.82rem;
  font-weight: var(--cover-step-number-weight, 700);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cover-step-title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.4;
  letter-spacing: -0.015em;
  font-weight: var(--cover-step-title-weight, 700);
}

.cover-step-title a {
  color: var(--text);
  text-decoration: none;
}

.cover-step-summary {
  margin: 7px 0 0;
  color: var(--sub);
  line-height: 1.58;
  font-weight: var(--cover-step-summary-weight, 400);
}

.cover-step-link {
  margin-top: 10px;
  display: inline-flex;
  color: var(--point);
  font-size: 0.9rem;
  font-weight: var(--cover-step-link-weight, 600);
  text-decoration: none;
}

.cover-step-link:hover,
.cover-step-link:focus-visible {
  text-decoration: underline;
}

.cover-section-faq {
  border-color: color-mix(in srgb, var(--line) 80%, var(--text) 20%);
}

.cover-faq-list {
  display: grid;
  gap: 10px;
}

.cover-faq-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-muted);
  padding: 14px;
}

.cover-faq-question {
  margin: 0;
  font-size: 1rem;
  line-height: 1.4;
  letter-spacing: -0.015em;
  font-weight: var(--cover-faq-question-weight, 700);
}

.cover-faq-question a {
  color: var(--text);
  text-decoration: none;
}

.cover-faq-answer {
  margin: 8px 0 0;
  color: var(--sub);
  line-height: 1.62;
  font-weight: var(--cover-faq-answer-weight, 400);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.cover-faq-link {
  margin-top: 10px;
  display: inline-flex;
  color: var(--point);
  font-size: 0.9rem;
  font-weight: var(--cover-faq-link-weight, 600);
  text-decoration: none;
}

.cover-faq-link:hover,
.cover-faq-link:focus-visible {
  text-decoration: underline;
}

.cover-section-cta {
  border: 0;
  padding: 0;
  background: transparent;
}

.cover-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid color-mix(in srgb, var(--line) 82%, var(--point) 18%);
  border-radius: 14px;
  padding: 18px 20px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--point) 9%, var(--surface) 91%), color-mix(in srgb, var(--point) 4%, var(--surface-muted) 96%));
}

.cover-cta-content {
  min-width: 0;
}

.cover-cta-title {
  margin: 0;
  font-size: clamp(1.05rem, 1.6vw, 1.32rem);
  letter-spacing: -0.02em;
  line-height: 1.36;
  font-weight: var(--cover-cta-title-weight, 700);
}

.cover-cta-title a {
  color: var(--text);
  text-decoration: none;
}

.cover-cta-summary {
  margin: 8px 0 0;
  color: var(--sub);
  line-height: 1.62;
  font-weight: var(--cover-cta-summary-weight, 400);
}

.cover-cta-button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--point) 72%, var(--line) 28%);
  background: color-mix(in srgb, var(--point) 12%, #ffffff 88%);
  color: var(--point);
  font-weight: var(--cover-cta-button-weight, 600);
  text-decoration: none;
}

.cover-cta-button:hover,
.cover-cta-button:focus-visible {
  color: color-mix(in srgb, var(--point) 88%, #0f172a 12%);
}

.cover-section-comment {
  border-color: color-mix(in srgb, var(--line) 78%, var(--point) 22%);
  background: var(--surface);
}

.cover-comment-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid color-mix(in srgb, var(--line) 80%, var(--text) 20%);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 86%, var(--surface-muted) 14%);
  padding: 16px;
}

.cover-comment-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
  flex: 1 1 auto;
}

.cover-comment-title {
  margin: 0;
  font-size: 1.08rem;
  letter-spacing: -0.018em;
}

.cover-comment-title a {
  color: inherit;
  text-decoration: none;
}

.cover-comment-summary {
  margin: 0;
  color: var(--sub);
  line-height: 1.64;
}

.cover-comment-helper {
  display: none;
}

.cover-comment-inline,
.cover-comment-embed {
  display: none !important;
}

.cover-comment-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid color-mix(in srgb, var(--point) 68%, var(--line) 32%);
  border-radius: 10px;
  margin: 0 0 0 auto;
  padding: 0 14px;
  background: color-mix(in srgb, var(--point) 10%, #ffffff 90%);
  color: var(--point);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}

.cover-comment-fallback:hover,
.cover-comment-fallback:focus-visible {
  color: color-mix(in srgb, var(--point) 88%, #0f172a 12%);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 18px 0 28px;
  color: var(--sub);
  font-size: 0.92rem;
}

.site-footer .wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.site-footer.footer-align-center .wrap {
  align-items: center;
  text-align: center;
}

.site-footer.footer-align-right .wrap {
  align-items: flex-end;
  text-align: right;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  flex-wrap: nowrap;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin: 0 0 8px;
  padding-bottom: 2px;
}

.footer-link-source {
  display: none;
}

.footer-link-item {
  flex: 0 0 auto;
  color: var(--sub);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.footer-link-item:hover,
.footer-link-item:focus-visible {
  color: var(--point);
}

.footer-links::-webkit-scrollbar {
  display: none;
}

.site-footer.footer-align-center .footer-links {
  justify-content: center;
}

.site-footer.footer-align-right .footer-links {
  justify-content: flex-end;
}

.creator {
  margin-top: 6px;
}

.creator a {
  color: var(--point);
  text-decoration: none;
  font-weight: 600;
}

.tt-comment-cont {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.tt-area-write textarea,
.tt-area-write input,
.tt-area-write button {
  font: inherit;
}

@media (max-width: 768px) {
  .search-form:not(.header-search) {
    flex-direction: column;
  }


  .post-list-item {
    flex-direction: column;
    gap: 12px;
  }

  .post-list-item s_article_rep_thumbnail,
  .post-list-item s_list_rep_thumbnail {
    flex: none;
    width: 100%;
  }

  .post-list-item .post-thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .related-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .related-content {
    min-height: 0;
  }

  .cover-home {
    gap: 12px;
    margin-bottom: 16px;
  }

  .cover-section {
    padding: 14px;
    border-radius: 12px;
  }

  .cover-section-head {
    margin-bottom: 10px;
  }

  .cover-section-title {
    font-size: 1.06rem;
  }

  .cover-landing-card {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 14px;
  }

  .cover-landing-wrap.is-multi .cover-landing-card.is-secondary {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
  }

  .cover-landing-wrap.is-multi .cover-landing-card.is-secondary .cover-landing-summary {
    -webkit-line-clamp: 2;
  }

  .cover-landing-body {
    align-items: flex-start;
    text-align: left;
  }

  .cover-hero-align-center .cover-landing-body {
    align-items: center;
    text-align: center;
  }

  .cover-landing-actions {
    margin-top: 14px;
  }

  .cover-landing-btn {
    width: 100%;
    justify-content: center;
  }

  .cover-grid-guide,
  .cover-grid-spotlight,
  .cover-grid-latest {
    grid-template-columns: 1fr;
  }

  .cover-grid-guide.cover-grid-count-1,
  .cover-grid-guide.cover-grid-count-2,
  .cover-grid-guide.cover-grid-count-3,
  .cover-grid-guide.cover-grid-count-4plus {
    grid-template-columns: 1fr;
  }

  .cover-step-item {
    padding: 12px 12px 12px 44px;
  }

  .cover-step-item::before {
    left: 12px;
    top: 12px;
    width: 22px;
    height: 22px;
    font-size: 0.76rem;
  }

  .cover-cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
  }

  .cover-cta-button {
    width: 100%;
    justify-content: center;
  }

  .cover-comment-card {
    padding: 14px;
    flex-direction: column;
    align-items: flex-start;
  }

  .post-comments .tt-comment-cont {
    padding: 12px;
    border-radius: 12px;
  }

  .post-comments .tt-area-write {
    gap: 8px;
  }

  .post-comments .tt-box-thumb {
    display: none;
  }

  .post-comments .tt-box-account {
    grid-template-columns: 1fr;
  }

  .post-comments .tt-cmt {
    min-height: 108px;
  }

  .post-comments .tt-box-write {
    align-items: flex-start;
    flex-direction: column;
  }

  .post-comments .tt_btn_register,
  .post-comments .tt-btn_register,
  .post-comments .tt-btn-register,
  .cover-comment-fallback {
    width: 100%;
    margin-left: 0;
    justify-content: center;
  }
}

/* ===== One-Column Focus Layout ===== */
.page-layout {
  display: block;
}

.header-search {
  display: none;
  align-items: center;
  gap: 6px;
  margin: 0;
  max-width: 240px;
  flex: 0 1 240px;
}

html[data-header-search='on'] .header-search {
  display: flex;
}

.header-search input {
  height: 36px;
  padding: 8px 10px;
  font-size: 0.9rem;
}

.header-search button {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  padding: 0;
}

.category-smart-nav {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.category-smart-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.category-smart-menu > ul {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  overscroll-behavior-x: contain;
}

.category-smart-menu > ul > li {
  position: relative;
}

.category-smart-menu > ul > li > a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-decoration: none;
  background: var(--surface);
  white-space: nowrap;
  line-height: 1.25;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.category-smart-menu > ul > li.has-submenu > a::after {
  content: '';
  width: 6px;
  height: 6px;
  margin-left: 4px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 0.2s ease;
}

.category-smart-menu > ul > li.is-open > a::after {
  transform: rotate(-135deg) translateY(-1px);
}

.category-smart-menu > ul > li > a:hover,
.category-smart-menu > ul > li > a:focus-visible {
  background: var(--surface-muted);
  border-color: color-mix(in srgb, var(--point) 28%, var(--line) 72%);
  color: var(--point) !important;
  transform: translateY(-1px);
}

.category-smart-menu > ul > li > ul {
  position: absolute;
  top: 100%;
  left: 0;
  width: min(92vw, 420px);
  min-width: 260px;
  max-height: min(70vh, 560px);
  overflow: auto;
  display: none;
  z-index: 35;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 10px 22px var(--shadow-color);
}

.category-smart-menu > ul > li.is-open > ul,
.category-smart-menu > ul > li.is-open:focus-within > ul {
  display: block;
}

.category-smart-menu > ul > li > ul li + li {
  margin-top: 4px;
}

.category-smart-menu > ul > li > ul a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
  border-radius: 8px;
  padding: 8px 10px;
  text-decoration: none;
  background: transparent;
  white-space: nowrap;
}

.category-smart-menu > ul > li > ul a:hover,
.category-smart-menu > ul > li > ul a:focus-visible {
  background: var(--surface-muted);
  color: var(--point) !important;
}

.category-smart-menu .c_cnt {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  margin-left: 4px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-size: 0.82rem;
  color: color-mix(in srgb, var(--text) 76%, var(--sub) 24%);
}

.category-smart-menu img {
  width: 10px;
  height: 10px;
}

/* Desktop: attach category control directly under theme toggle */
@media (min-width: 769px) {
  .site-header .wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 18px;
    row-gap: 8px;
    align-items: start;
  }

  .site-header-top {
    display: contents;
  }

  .site-branding {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .header-actions {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    justify-self: end;
    margin: 0;
    padding-top: 0;
  }

  .category-smart-nav {
    grid-column: 2;
    grid-row: 2;
    width: max-content;
    margin: 0;
    padding-top: 0;
    border-top: 0;
    justify-self: end;
    align-self: start;
  }

  .site-nav {
    grid-column: 1 / -1;
    grid-row: 3;
    margin-top: 10px;
  }

  .category-smart-menu > ul {
    flex-wrap: nowrap;
    justify-content: flex-end;
    overflow: visible;
    gap: 8px;
  }

  .category-smart-menu > ul > li > a {
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 12px;
  }
}

.post-body p {
  margin: 0 0 1em;
}

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

.auto-toc {
  margin: 0 0 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-muted);
  padding: 12px 14px;
}

.auto-toc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.auto-toc-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.auto-toc-toggle {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--sub);
  padding: 4px 10px;
  font: inherit;
  font-size: 0.84rem;
  cursor: pointer;
}

.auto-toc-toggle:hover,
.auto-toc-toggle:focus-visible {
  border-color: color-mix(in srgb, var(--point) 30%, var(--line) 70%);
  color: var(--point);
}

.auto-toc-list {
  margin: 10px 0 0;
  padding-left: 20px;
}

.auto-toc-item {
  margin: 6px 0;
}

.auto-toc-item.toc-depth-3 {
  margin-left: 14px;
  list-style-type: circle;
}

.auto-toc-link {
  color: var(--point);
  text-decoration: none;
}

.auto-toc-link:hover,
.auto-toc-link:focus-visible {
  text-decoration: underline;
}

/* ===== Mobile Full-Bleed Readability ===== */
@media (max-width: 768px) {
  .site-header {
    position: static;
    top: auto;
    border-bottom: 0;
    box-shadow: none;
  }

  .wrap {
    width: 100%;
  }

  .site-header .wrap {
    padding: 12px 8px 8px;
  }

  .site-header-top {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .site-branding {
    max-width: none;
  }

  .site-title a.is-mobile-shrink {
    font-size: clamp(1.26rem, 5.3vw, calc(var(--site-title-size) * 0.84)) !important;
    line-height: 1.22;
    letter-spacing: -0.02em;
  }

  .site-desc {
    display: none;
  }

  .list-intro {
    display: none;
  }

  main.wrap {
    padding: 0;
  }

  .content-area {
    width: 100%;
    max-width: none !important;
    margin: 0 !important;
  }

  html[data-mobile-fullbleed='on'] .cover-home {
    margin-left: 0;
    margin-right: 0;
  }

  html[data-mobile-fullbleed='on'] .cover-section {
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    padding-left: 0;
    padding-right: 0;
  }

  html[data-mobile-fullbleed='on'] .cover-section-head {
    padding-left: 12px;
    padding-right: 12px;
  }

  html[data-mobile-fullbleed='on'] .cover-landing-card,
  html[data-mobile-fullbleed='on'] .cover-card,
  html[data-mobile-fullbleed='on'] .cover-faq-item,
  html[data-mobile-fullbleed='on'] .cover-cta {
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }

  html[data-mobile-fullbleed='on'] .cover-landing-card,
  html[data-mobile-fullbleed='on'] .cover-card,
  html[data-mobile-fullbleed='on'] .cover-faq-item,
  html[data-mobile-fullbleed='on'] .cover-cta {
    padding-left: 12px;
    padding-right: 12px;
  }

  html[data-mobile-fullbleed='on'] .cover-step-item {
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    padding-left: 44px;
    padding-right: 12px;
  }

  html[data-mobile-fullbleed='on'] .cover-landing-thumb {
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }

  .list-intro,
  .post-head,
  .post-summary,
  .post-more,
  .post-body,
  .post-tags,
  .related-posts,
  .comments,
  .paging,
  .tag-cloud,
  .guestbook {
    padding-left: var(--mobile-content-padding);
    padding-right: var(--mobile-content-padding);
  }

  .post {
    padding: 22px 0;
  }

  .another_category {
    margin-top: 16px;
    border-radius: 10px;
  }

  .another_category h4 {
    padding: 10px 12px;
    font-size: 0.9rem;
  }

  .another_category th,
  .another_category td {
    padding: 8px 12px;
  }

  .another_category td {
    width: 82px;
    font-size: 0.76rem;
    padding-left: 6px;
  }

  .post-list-item {
    padding-left: var(--mobile-content-padding);
    padding-right: var(--mobile-content-padding);
    gap: 10px;
  }

  .post-list-item .post-thumb {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    height: auto;
    aspect-ratio: 16 / 10;
    border-radius: 14px;
  }

  .post-head h1,
  .post-head h2 {
    font-size: clamp(1.62rem, 6.2vw, 1.9rem);
    line-height: 1.36;
    letter-spacing: -0.35px;
  }

  .post-summary {
    font-size: 1rem;
    line-height: 1.72;
  }

  .post-body img,
  .post-body iframe,
  .post-body video,
  .post-body table {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .header-actions {
    justify-content: flex-end;
    gap: 6px;
    margin-top: 0;
  }

  html[data-header-search='off'] .site-header .wrap {
    position: relative;
  }

  html[data-header-search='off'] .site-branding {
    padding-right: 56px;
  }

  html[data-header-search='off'] .header-actions {
    position: absolute;
    top: 14px;
    right: 8px;
    margin: 0;
    min-height: 0;
  }

  .theme-toggle {
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 999px;
    justify-content: center;
    background: var(--surface-muted);
  }

  .theme-toggle-icon {
    position: absolute;
    width: 16px;
    height: 16px;
    transition: opacity 0.18s ease, transform 0.18s ease;
  }

  .theme-toggle-icon-sun {
    opacity: 1;
    transform: scale(1);
  }

  .theme-toggle-icon-moon {
    opacity: 0;
    transform: scale(0.78);
  }

  html[data-theme='dark'] .theme-toggle-icon-sun {
    opacity: 0;
    transform: scale(0.78);
  }

  html[data-theme='dark'] .theme-toggle-icon-moon {
    opacity: 1;
    transform: scale(1);
  }

  .theme-toggle-knob {
    display: none;
  }

  .header-search {
    max-width: none;
    flex: 1 1 auto;
  }

  .header-search input {
    min-width: 0;
    height: 34px;
  }

  .header-search button {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
  }

  .category-smart-nav {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 0;
  }

  .category-smart-menu > ul {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    padding-bottom: 0;
    margin-bottom: 0;
    scrollbar-width: none;
    gap: 8px;
  }

  .category-smart-menu > ul > li > a {
    min-height: 38px;
    padding: 7px 14px !important;
    border-radius: 10px !important;
    font-size: 0.98rem !important;
    font-weight: 600;
    border-color: color-mix(in srgb, var(--line) 88%, var(--text) 12%);
    background: transparent;
    box-shadow: none;
  }

  .category-smart-menu .c_cnt {
    font-size: 0.86em;
    opacity: 0.88;
  }

  .category-smart-menu > ul::-webkit-scrollbar {
    display: none;
  }

  .category-smart-menu > ul > li {
    flex: 0 0 auto;
  }

  .category-smart-menu > ul > li > ul {
    display: none;
    position: static;
    width: 100%;
    max-width: calc(100vw - (var(--mobile-content-padding) + var(--mobile-content-padding)));
    min-width: 0;
    margin-top: 6px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    box-shadow: none;
    max-height: 52vh;
    overflow: auto;
  }

  .category-smart-menu > ul > li > ul a {
    min-height: 38px;
    padding: 8px 10px;
    border-radius: 8px;
  }

  .category-smart-menu > ul > li:hover > ul,
  .category-smart-menu > ul > li:focus-within > ul {
    display: none;
  }

  .category-smart-menu > ul > li.is-open > ul,
  .category-smart-menu > ul > li.is-open:focus-within > ul {
    display: block;
  }

  .paging {
    margin-top: 24px;
    gap: 6px;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .paging::-webkit-scrollbar {
    display: none;
  }

  .paging span {
    flex: 0 0 auto;
    gap: 4px;
  }

  .paging a {
    flex: 0 0 auto;
    min-width: 34px;
    height: 34px;
    border-radius: 0;
    padding: 0 8px;
    white-space: nowrap;
    font-size: 0.94rem;
  }

  .paging span a {
    min-width: 32px;
  }

  .paging .selected,
  .paging a.selected {
    min-width: 32px;
    height: 34px;
    border-bottom: 2px solid var(--text);
    color: var(--text);
  }

  .footer-links {
    gap: 14px;
    margin-bottom: 8px;
    padding-bottom: 0;
  }

  .footer-link-item {
    font-size: 0.88rem;
  }
}
