/*
Theme Name: stebipost Child
Theme URI: https://stebipost.com
Description: 스테비포스트 — 스테비 정보 블로그용 GeneratePress 차일드 테마. 미니멀, 깔끔하고 신뢰감 있는 디자인.
Author: stebipost
Author URI: https://stebipost.com
Template: generatepress
Version: 1.0.0
Text Domain: stebipost-child
*/

/* =========================================================
   1. 디자인 토큰 (Design Tokens)
   ========================================================= */
:root {
  --white: #ffffff;
  --bg: #f2f0ed;
  --gray: #f2f0ed;
  --gray2: #e8e8e5;
  --ink: #111110;
  --ink2: #3a3a38;
  --ink3: #6e6e6a;
  --ink4: #a0a09c;
  --accent: #c1644a;

  --font-base:
    "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", sans-serif;
  --font-en: var(--font-base);

  --container: 1200px;
  --container-narrow: 760px;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --border-subtle: rgba(0, 0, 0, 0.08);

  --header-h: 72px;
  --header-h-mobile: 60px;

  --shadow-sm: 0 2px 8px rgba(17, 17, 16, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 48px rgba(17, 17, 16, 0.1);

  --t-fast: 0.18s ease;
  --t-base: 0.3s ease;
  --t-slow: 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* =========================================================
   2. 리셋 + 베이스
   ========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font-base);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink2);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--t-fast);
}
a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-base);
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.3;
  margin: 0 0 0.6em;
}

h1 {
  font-size: clamp(32px, 5vw, 48px);
}
h2 {
  font-size: 26px;
}
h3 {
  font-size: 20px;
  font-weight: 700;
}
h4 {
  font-size: 18px;
  font-weight: 700;
}

p {
  margin: 0 0 1.4em;
}
strong,
b {
  color: var(--ink);
  font-weight: 700;
}

::selection {
  background: var(--accent);
  color: var(--white);
}

/* GeneratePress 기본 컨테이너 폭 오버라이드 */
.site-content,
.inside-article,
.entry-content {
  background: transparent;
}

/* =========================================================
   3. 컨테이너 / 유틸
   ========================================================= */
.tnt-container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.tnt-container--narrow {
  max-width: var(--container-narrow);
}

.tnt-section {
  padding: 80px 0;
}
.tnt-section--sm {
  padding: 56px 0;
}

.tnt-eyebrow {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink3);
  margin-bottom: 16px;
}

.tnt-section-title {
  font-size: clamp(28px, 3.4vw, 40px);
  margin-bottom: 12px;
}
.tnt-section-sub {
  color: var(--ink3);
  font-size: 16px;
  margin-bottom: 48px;
  max-width: 600px;
}

/* =========================================================
   4. 버튼
   ========================================================= */
.tnt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-base);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.2px;
  cursor: pointer;
  transition:
    transform var(--t-fast),
    background var(--t-base),
    color var(--t-base),
    border-color var(--t-base);
  text-decoration: none !important;
  white-space: nowrap;
}
.tnt-btn:hover {
  transform: translateY(-1px);
}
.tnt-btn--primary {
  background: var(--accent);
  color: var(--white);
}
.tnt-btn--primary:hover {
  background: #a8553d;
  color: var(--white);
}
.tnt-btn--outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.tnt-btn--outline:hover {
  background: var(--accent);
  color: var(--white);
}
.tnt-btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.tnt-btn--ghost:hover {
  background: var(--ink);
  color: var(--white);
}
.tnt-btn--light {
  background: var(--white);
  color: var(--ink);
}
.tnt-btn--sm {
  padding: 10px 18px;
  font-size: 14px;
}

.tnt-btn .arrow {
  transition: transform var(--t-base);
}
.tnt-btn:hover .arrow {
  transform: translateX(4px);
}

/* =========================================================
   5. 헤더 (Sticky)
   ========================================================= */
.tnt-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  background: transparent;
  transition:
    background var(--t-base),
    backdrop-filter var(--t-base),
    border-color var(--t-base),
    box-shadow var(--t-base);
  border-bottom: 1px solid transparent;
}
.tnt-header.is-scrolled {
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--gray2);
}
/* 카테고리 아카이브: 스크롤 전에도 헤더 아래 구분선 */
body.tnt-category-archive .tnt-header {
  border-bottom-color: var(--gray2);
}
.tnt-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.tnt-logo {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-weight: 800;
  color: var(--ink);
  font-size: 18px;
  letter-spacing: -0.5px;
  text-decoration: none !important;
}
.tnt-logo .en {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink3);
  letter-spacing: 0;
}

.tnt-nav {
  display: flex;
  gap: 28px;
}
.tnt-nav a {
  color: var(--ink2);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  position: relative;
  padding: 6px 0;
}
.tnt-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--t-base);
}
.tnt-nav a:hover {
  color: var(--ink);
  text-decoration: none;
}
.tnt-nav a:hover::after {
  width: 100%;
}

/* PC 헤더 타이포 미세 조정 */
@media (min-width: 1025px) {
  .tnt-logo {
    font-size: 24px; /* PC: 한글 로고 조금 더 크게 */
    letter-spacing: -0.25px;
  }
  .tnt-logo .en {
    font-size: 13px; /* 한글 확대에 맞춰 영문만 소폭 */
    color: rgba(31, 33, 36, 0.58); /* 조금 더 흐리게 */
    font-weight: 500;
  }
  .tnt-nav a {
    font-size: 16px; /* 메뉴 글자도 소폭 확대 */
    font-weight: 550;
  }
}

.tnt-header__right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.tnt-icon-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  border-radius: 50%;
  transition: background var(--t-fast);
}
.tnt-icon-btn:hover {
  background: var(--gray);
}

.tnt-burger {
  display: none;
}
.tnt-burger svg {
  width: 24px !important;
  height: 24px !important;
  min-width: 24px;
  min-height: 24px;
  flex-shrink: 0;
}

/* 풀스크린 검색 */
.tnt-search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.97);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.tnt-search-overlay.is-open {
  display: flex;
}
.tnt-search-overlay form {
  width: 100%;
  max-width: 720px;
  border-bottom: 2px solid var(--ink);
}
.tnt-search-overlay input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-base);
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 800;
  color: var(--ink);
  padding: 16px 0;
  letter-spacing: -0.5px;
}
.tnt-search-overlay__close {
  position: absolute;
  top: 24px;
  right: 24px;
}

body.tnt-menu-open {
  overflow: hidden;
}

/* 모바일 메뉴 오픈 시 부모(헤더/본문/푸터)도 함께 밀리는 효과 */
@media (max-width: 1024px) {
  :root {
    --tnt-mobile-menu-w: min(300px, 85vw);
  }
  #tnt-header,
  #tnt-main,
  .tnt-footer,
  .tnt-progress {
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    will-change: transform;
  }
  body.tnt-menu-open #tnt-header,
  body.tnt-menu-open #tnt-main,
  body.tnt-menu-open .tnt-footer,
  body.tnt-menu-open .tnt-progress {
    transform: translate3d(calc(var(--tnt-mobile-menu-w) * -1), 0, 0);
  }
}

/* 모바일 사이드바 메뉴 — 우측에서 슬라이드 */
.tnt-mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 199;
  opacity: 0;
  pointer-events: none;
  -webkit-transition: opacity 0.3s ease;
  transition: opacity 0.3s ease;
}
.tnt-mobile-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}
.tnt-mobile-menu {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  width: 300px;
  max-width: 85vw;
  height: 100%;
  background: var(--white);
  z-index: 200;
  -webkit-transform: translate3d(100%, 0, 0);
  transform: translate3d(100%, 0, 0);
  -webkit-transition: -webkit-transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  padding: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.tnt-mobile-menu.is-open {
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
}
.tnt-mobile-menu__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-h);
  box-sizing: border-box;
  padding: 0 20px;
  border-bottom: 1px solid var(--gray2);
  flex-shrink: 0;
}
.tnt-mobile-menu__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.3px;
}
#tnt-mobile-close.tnt-mobile-close {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: none !important;
  border-radius: 50% !important;
  background: var(--gray) !important;
  color: var(--ink) !important;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  outline: none !important;
  outline-offset: 0 !important;
  box-shadow: none !important;
  -webkit-focus-ring-color: transparent;
  transition: background 0.15s ease;
}
#tnt-mobile-close.tnt-mobile-close::-moz-focus-inner {
  border: 0 !important;
  padding: 0 !important;
}
#tnt-mobile-close.tnt-mobile-close:hover {
  background: var(--gray2) !important;
}
#tnt-mobile-close.tnt-mobile-close:focus,
#tnt-mobile-close.tnt-mobile-close:focus-visible,
#tnt-mobile-close.tnt-mobile-close:active {
  outline: none !important;
  outline-width: 0 !important;
  box-shadow: none !important;
  border: none !important;
}
#tnt-mobile-close.tnt-mobile-close svg {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px;
  min-height: 20px;
  flex-shrink: 0;
  stroke: currentColor !important;
  color: inherit;
}
.tnt-mobile-menu nav {
  padding: 8px 0;
  display: flex;
  flex-direction: column;
}
.tnt-mobile-menu nav a {
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.3px;
  padding: 14px 20px;
  text-decoration: none;
  border-bottom: 1px solid var(--gray2);
  transition:
    background 0.15s ease,
    color 0.15s ease;
}
.tnt-mobile-menu nav a:last-child {
  border-bottom: none;
}
.tnt-mobile-menu nav a:hover {
  background: var(--gray);
  color: var(--accent);
}
.tnt-mobile-menu__cta {
  margin-top: auto;
  padding: 20px;
  border-top: 1px solid var(--gray2);
}

/* 본문 상단 헤더 높이 보정 */
body.tnt-body {
  padding-top: var(--header-h);
}

/* =========================================================
   6. 읽기 진행 바
   ========================================================= */
.tnt-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--accent);
  z-index: 110;
  transition: width 0.05s linear;
}

/* 맨 위로 이동 버튼 */
.tnt-back-to-top {
  position: fixed;
  right: 22px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  color: #3a3a38;
  box-shadow: 0 6px 14px rgba(17, 17, 16, 0.1);
  cursor: pointer;
  z-index: 120;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  pointer-events: none;
  will-change: opacity, transform;
  transition:
    opacity 0.28s ease,
    transform 0.28s ease,
    visibility 0.28s ease,
    background var(--t-fast),
    color var(--t-fast),
    border-color var(--t-fast);
}
.tnt-back-to-top span {
  display: inline-block;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  transform: translateY(-1px);
}
.tnt-back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.tnt-back-to-top:hover {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.tnt-back-to-top:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* =========================================================
   7. Hero 섹션
   ========================================================= */
.tnt-hero {
  background: var(--bg);
  padding: 80px 0;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
}
.tnt-hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
.tnt-hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.tnt-hero__title {
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 24px;
}
.tnt-hero__title .line {
  display: block;
  overflow: hidden;
}
.tnt-hero__title .line > span {
  display: inline-block;
}
.tnt-hero__sub {
  font-size: 18px;
  color: var(--ink2);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 40px;
}
.tnt-nowrap {
  white-space: nowrap;
}
.tnt-hero-latest {
  margin-top: 60px;
  display: block;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--ink);
  text-decoration: none !important;
  max-width: 560px;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.tnt-hero-latest__eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 6px;
}
.tnt-hero-latest__title {
  margin: 0 0 4px;
  font-size: 17px;
  line-height: 1.45;
  font-weight: 800;
  letter-spacing: -0.3px;
}
.tnt-hero-latest__meta {
  font-family: var(--font-en);
  font-size: 11px;
  color: #9a9a96;
  display: flex;
  gap: 6px;
  align-items: center;
}
.tnt-hero__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1/1;
  background: var(--gray2);
  position: relative;
  will-change: transform;
  transform-origin: center bottom;
}
.tnt-hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================================================
   8. 카테고리 그리드
   ========================================================= */
.tnt-cats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.tnt-cat-card {
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-md);
  color: var(--ink) !important;
  text-decoration: none !important;
  transition:
    transform var(--t-base),
    border-color var(--t-base),
    box-shadow var(--t-base);
  min-height: 200px;
  justify-content: space-between;
}
.tnt-cat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 0, 0, 0.14);
  box-shadow: var(--shadow-md);
}
.tnt-cat-card__icon {
  width: 40px;
  height: 40px;
  color: var(--accent);
  margin-bottom: 16px;
}
.tnt-cat-card__name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}
.tnt-cat-card__count {
  font-family: var(--font-en);
  font-size: 13px;
  color: #888;
}

/* =========================================================
   9. 글 카드 그리드 (최신 글)
   ========================================================= */
.tnt-posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.tnt-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.tnt-card__thumb {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--gray2);
}
.tnt-card__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transform-origin: center center;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}
.tnt-card:hover .tnt-card__thumb img,
.tnt-card:focus-within .tnt-card__thumb img,
.tnt-card__thumb:hover img {
  transform: scale(1.06) !important;
}

/* PC: 글 리스트·메인 카드 썸네일 — 호버 시 더 부드럽게 확대 (일부 기기는 hover 미매칭) */
@media (min-width: 1025px) {
  .tnt-card__thumb img {
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1) !important;
  }
}

.tnt-badge {
  display: inline-block;
  padding: 4px 10px;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  text-decoration: none !important;
}
.tnt-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
}
.tnt-card__body {
  padding: 16px 16px 20px;
}
.tnt-card__title {
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.5px;
  line-height: 1.4;
  margin: 0 0 8px;
}
.tnt-card__title a {
  color: inherit;
  text-decoration: none;
}
.tnt-card__title a:hover {
  color: var(--accent);
}
.tnt-card__excerpt {
  font-size: 14px;
  color: var(--ink3);
  line-height: 1.7;
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tnt-card__meta {
  font-family: var(--font-en);
  font-size: 12px;
  color: var(--ink4);
  letter-spacing: 0.3px;
}

.tnt-card--placeholder {
  pointer-events: none;
  opacity: 0.5;
}
.tnt-card--placeholder .tnt-card__thumb {
  background: var(--gray2);
}

/* =========================================================
   10. 추천 글 배너
   ========================================================= */
.tnt-banner {
  background: var(--accent);
  color: var(--white);
  padding: 24px 0 72px;
}
.tnt-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.tnt-banner__title {
  color: var(--white);
  font-size: clamp(24px, 3vw, 36px);
  margin: 0;
  letter-spacing: -0.5px;
}
.tnt-banner a {
  color: var(--white);
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.tnt-banner a:hover .arrow {
  transform: translateX(6px);
}
.tnt-banner .arrow {
  transition: transform var(--t-base);
}

/* 최신 글 아래 -> 추천 배너 위 간격 (PC/태블릿) */
.tnt-section--latest {
  padding-bottom: 52px;
}

/* =========================================================
   11. 단일 글 (Single Post)
   ========================================================= */
.tnt-single {
  padding: 64px 0 96px;
}
.tnt-single__head {
  margin: 0 0 48px;
  text-align: left;
}
.tnt-single__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.tnt-single__meta .tnt-badge {
  background: var(--gray);
  color: var(--ink);
}
.tnt-single__meta .meta-item {
  font-family: var(--font-en);
  font-size: 13px;
  color: var(--ink3);
}
.tnt-meta-readtime {
  font-size: 11px;
  font-weight: 400;
  color: #b5b5b0;
}
.tnt-single__title {
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -1px;
  line-height: 1.25;
  margin: 0 0 16px;
}
.tnt-single__lead {
  font-size: 18px;
  color: var(--ink2);
  line-height: 1.8;
}

/* 본문 + 사이드바 2열 레이아웃 */
.tnt-single__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

@media (min-width: 1024px) {
  .tnt-single__layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 56px;
  }
}

/* 우측 사이드바 */
.tnt-single__sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 1024px) {
  .tnt-single__sidebar {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    align-self: start;
  }
}

/* 본문 */
.tnt-content,
.tnt-content p,
.tnt-content li,
.tnt-content
  span:not(.tnt-badge):not(.meta-item):not(.tnt-meta-readtime):not(.arrow),
.entry-content,
.entry-content p,
.entry-content li {
  font-size: 17px !important;
  line-height: 1.95 !important;
  color: #1a1a1a !important;
  font-weight: 400 !important;
}
/* 단일 글 상단 메타 span — 본문 기본 글자 규칙 제외 */
.tnt-content .tnt-single__meta .meta-item,
.entry-content .tnt-single__meta .meta-item {
  font-size: 13px !important;
  line-height: 1.4 !important;
  color: var(--ink3) !important;
  font-weight: 400 !important;
}
.tnt-content .tnt-single__meta .tnt-meta-readtime,
.entry-content .tnt-single__meta .tnt-meta-readtime {
  font-size: 11px !important;
  line-height: 1.4 !important;
  color: #b5b5b0 !important;
  font-weight: 400 !important;
}
.tnt-content > * {
  max-width: 100%;
}
.tnt-content h2,
.entry-content h2 {
  font-size: 26px !important;
  font-weight: 800 !important;
  margin-top: 56px;
  margin-bottom: 16px;
  color: #111110 !important;
  letter-spacing: -0.5px;
}
.tnt-content h3,
.entry-content h3 {
  font-size: 20px !important;
  font-weight: 700 !important;
  margin-top: 40px;
  margin-bottom: 12px;
  color: #111110 !important;
}
.tnt-content p,
.entry-content p {
  margin: 0 0 1.5em;
}
.tnt-content a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-fast);
}
.tnt-content a:hover {
  border-bottom-color: var(--accent);
  text-decoration: none;
}
.tnt-content strong,
.entry-content strong {
  color: #111110 !important;
  font-weight: 700 !important;
}
.tnt-content ul,
.tnt-content ol,
.entry-content ul,
.entry-content ol {
  padding-left: 1.4em;
  margin: 0 0 1.5em;
}
.tnt-content li,
.entry-content li {
  margin-bottom: 0.5em;
}
.tnt-content blockquote {
  border-left: 3px solid var(--accent);
  margin: 2em 0;
  padding: 4px 0 4px 24px;
  color: var(--ink);
  font-weight: 500;
  font-size: 18px;
}
.tnt-content img {
  border-radius: var(--radius-md);
  margin: 2em 0;
}
.tnt-content figure {
  margin: 2em 0;
}
.tnt-content figcaption {
  font-size: 13px;
  color: var(--ink3);
  text-align: center;
  margin-top: 8px;
}

/* TOC */
.tnt-toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  align-self: start;
  font-size: 14px;
}
.tnt-toc__title {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink3);
  margin-bottom: 16px;
}
.tnt-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 1px solid var(--gray2);
}
.tnt-toc li a {
  display: block;
  padding: 8px 0 8px 16px;
  color: var(--ink3);
  text-decoration: none;
  font-size: 13px;
  line-height: 1.5;
  margin-left: -1px;
  border-left: 1px solid transparent;
  transition:
    color var(--t-fast),
    border-color var(--t-fast);
}
.tnt-toc li a:hover,
.tnt-toc li a.is-active {
  color: var(--ink);
  border-left-color: var(--accent);
}
.tnt-toc li.toc-h3 a {
  padding-left: 28px;
  font-size: 12px;
}

/* =========================================================
   사이드바 (단일 글) — 통일된 미니멀 스타일
   ========================================================= */

/* 공통 카드 */
.tnt-aside-cta,
.tnt-sidebar-widget {
  border-radius: var(--radius-md);
  padding: 22px 22px 24px;
  box-shadow: 0 8px 22px rgba(17, 17, 17, 0.04);
}

/* CTA 박스 — 뉴트럴 모던 카드 */
.tnt-aside-cta {
  background: #f7f7f6;
  color: var(--ink);
  font-size: 14px;
  border: 1px solid rgba(17, 17, 17, 0.06);
  box-shadow: 0 4px 12px rgba(17, 17, 17, 0.03);
}
.tnt-aside-cta h4 {
  color: var(--ink) !important;
  font-size: 17px !important;
  margin: 0 0 10px;
  font-weight: 700 !important;
  letter-spacing: -0.3px;
}
.tnt-aside-cta p {
  color: var(--ink2) !important;
  margin: 0 0 16px;
  font-size: 13px !important;
  line-height: 1.6;
}
.tnt-aside-cta .tnt-btn {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #c1644a;
  background: #c1644a;
  color: #fff;
  font-weight: 700;
}
.tnt-aside-cta .tnt-btn:hover {
  background: #ad583f;
  border-color: #ad583f;
  color: #fff;
}

/* 위젯 카드 — 화이트 + 은은한 테두리 (카테고리 카드와 톤 통일) */
.tnt-sidebar-widget {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

/* 위젯 제목 */
.tnt-sidebar-widget__title {
  font-family: var(--font-en);
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--ink) !important;
  margin: 0 0 14px;
  padding: 0 0 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 8px;
}
.tnt-sidebar-widget__title::before {
  content: "";
  width: 14px;
  height: 2px;
  background: rgba(17, 17, 17, 0.35);
  border-radius: 2px;
}

/* 리스트 */
.tnt-sidebar-widget__list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.tnt-sidebar-widget__list li {
  border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
}
.tnt-sidebar-widget__list li.is-empty {
  border-bottom: none;
  padding: 8px 0 2px;
  color: var(--ink3);
  font-size: 13px !important;
}
.tnt-sidebar-widget__list li:last-child {
  border-bottom: none;
}
.tnt-sidebar-widget__list a {
  color: var(--ink) !important;
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  font-size: 14px !important;
  line-height: 1.5;
  transition:
    color var(--t-fast),
    padding-left var(--t-fast);
}
.tnt-sidebar-widget__list a:hover {
  color: var(--accent) !important;
  padding-left: 6px;
}
.tnt-sidebar-widget__list .count {
  flex-shrink: 0;
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink3);
  background: var(--gray);
  padding: 3px 8px;
  border-radius: 999px;
  min-width: 24px;
  text-align: center;
}

/* 관련 글 + CTA 배너 */
.tnt-related {
  max-width: var(--container);
  margin: 80px auto 0;
}
.tnt-cta-banner {
  margin-top: 64px;
  background: var(--gray);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}
.tnt-cta-banner h3 {
  margin: 0 0 8px;
  font-size: 24px;
}
.tnt-cta-banner p {
  margin: 0;
  color: var(--ink3);
}

/* =========================================================
   12. 사이드바 위젯
   ========================================================= */
.tnt-sidebar {
  font-size: 14px;
}
.tnt-sidebar .widget {
  margin-bottom: 40px;
  padding: 0;
  background: transparent;
}
.tnt-sidebar .widget-title {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink3);
  margin-bottom: 16px;
}
.tnt-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.tnt-sidebar li {
  padding: 10px 0;
  border-bottom: 1px solid var(--gray2);
}
.tnt-sidebar li a {
  color: var(--ink);
  text-decoration: none;
}
.tnt-sidebar li a:hover {
  color: var(--accent);
}

/* =========================================================
   13. 푸터
   ========================================================= */
.tnt-footer {
  background: #1a1a1a;
  color: var(--ink4);
  padding: 48px 0 24px;
  margin-top: 0;
}
.tnt-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.tnt-footer h4 {
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.tnt-footer .tnt-logo {
  color: var(--white);
  margin-bottom: 10px;
}
.tnt-footer .tnt-logo .en {
  color: var(--ink4);
}
.tnt-footer p {
  color: var(--ink4);
  font-size: 14px;
  line-height: 1.65;
  margin: 0 0 14px;
  max-width: 320px;
}
.tnt-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.tnt-footer li {
  margin-bottom: 6px;
}
.tnt-footer a {
  color: var(--ink4);
  text-decoration: none;
  font-size: 14px;
  transition: color var(--t-fast);
}
.tnt-footer a:hover {
  color: var(--white);
}
.tnt-social {
  display: flex;
  gap: 8px;
}
.tnt-social a {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #333;
  border-radius: 50%;
  color: var(--ink4);
}
.tnt-social a:hover {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
}

.tnt-footer__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tnt-footer__tags a {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid #333;
  border-radius: 6px;
  font-size: 13px;
  color: var(--ink4);
  text-decoration: none;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}
.tnt-footer__tags a:hover {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
}

.tnt-footer__shop {
  border: 1px solid #333;
  border-radius: var(--radius-md);
  padding: 20px;
  background: transparent;
}
.tnt-footer__shop h4 {
  color: var(--white);
  margin-bottom: 8px;
  font-size: 14px;
  letter-spacing: 0;
}
.tnt-footer__shop p {
  color: var(--ink4);
  margin-bottom: 14px;
  font-size: 14px;
}
.tnt-footer__shop .tnt-btn {
  padding: 10px 18px;
  font-size: 13px;
  border-radius: 6px;
  background: var(--accent);
  color: var(--white);
  border: none;
}

.tnt-footer__bottom {
  border-top: 1px solid #333;
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink4);
}
.tnt-footer__bottom .links {
  display: flex;
  gap: 16px;
}

/* =========================================================
   14. GSAP 초기 상태 (no-flicker)
   ========================================================= */
body.home .gsap-fade,
body.front-page .gsap-fade {
  opacity: 0;
  transform: translateY(24px);
  will-change: opacity, transform;
}
body.home .tnt-hero__title .line > span,
body.front-page .tnt-hero__title .line > span {
  opacity: 0;
  transform: translateY(80px);
}
body.home .gsap-ready .gsap-fade,
body.front-page .gsap-ready .gsap-fade {
  /* JS가 잡아감 */
}
/* JS 미로딩/오류 대비: 1.5초 안에 GSAP가 안 잡으면 강제 표시 */
html:not(.gsap-loaded) body.home .gsap-fade,
html:not(.gsap-loaded) body.front-page .gsap-fade,
html:not(.gsap-loaded) body.home .tnt-hero__title .line > span,
html:not(.gsap-loaded) body.front-page .tnt-hero__title .line > span,
html:not(.gsap-loaded) body.home .tnt-hero__sub,
html:not(.gsap-loaded) body.front-page .tnt-hero__sub,
html:not(.gsap-loaded) body.home .tnt-hero__btns,
html:not(.gsap-loaded) body.front-page .tnt-hero__btns,
html:not(.gsap-loaded) body.home .tnt-hero-latest,
html:not(.gsap-loaded) body.front-page .tnt-hero-latest,
html:not(.gsap-loaded) body.home .tnt-hero__media,
html:not(.gsap-loaded) body.front-page .tnt-hero__media {
  animation: tntFallback 0.6s ease forwards 1.5s;
}
@keyframes tntFallback {
  to {
    opacity: 1;
    transform: none;
  }
}

/* =========================================================
   15. 접근성 — Reduced Motion
   (html.tnt-force-motion 가 있으면 ?tntmotion=1 미리보기로 우회)
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html:not(.tnt-force-motion) *,
  html:not(.tnt-force-motion) *::before,
  html:not(.tnt-force-motion) *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  /* 전역 transition 차단 예외: 글 카드 썸네일 호버(아카이브 등 — 메인은 tnt-force-motion으로 이미 예외) */
  html:not(.tnt-force-motion) .tnt-card__thumb img {
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1) !important;
  }
  /* 상단 이동 버튼은 표시/숨김 전환이 보이도록 예외 처리 */
  html:not(.tnt-force-motion) .tnt-back-to-top {
    transition:
      opacity 0.28s ease,
      transform 0.28s ease,
      visibility 0.28s ease,
      background var(--t-fast),
      color var(--t-fast),
      border-color var(--t-fast) !important;
  }
  html:not(.tnt-force-motion) .gsap-fade,
  html:not(.tnt-force-motion) .tnt-hero__title .line > span,
  html:not(.tnt-force-motion) .tnt-hero__sub,
  html:not(.tnt-force-motion) .tnt-hero__btns,
  html:not(.tnt-force-motion) .tnt-hero-latest,
  html:not(.tnt-force-motion) .tnt-hero__media {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* (모바일 강제 표시 규칙 제거됨 — 모든 디바이스에서 GSAP 애니메이션 활성화) */

/* =========================================================
   14-B. GSAP 다이나믹 애니메이션 보강
   - 패럴랙스 시 잘림 방지
   - 3D 회전 시 자연스러운 원근감
   ========================================================= */
.tnt-hero {
  overflow: clip; /* HERO 이미지 -120px 이동해도 페이지에 새 스크롤 안 생김 */
  perspective: 1200px;
}
.tnt-hero__media,
.tnt-hero__media img {
  will-change: transform;
}
.tnt-posts {
  perspective: 1000px;
}
.tnt-cat-card,
.tnt-card {
  will-change: transform, opacity;
  backface-visibility: hidden;
}
.tnt-banner__title {
  will-change: transform, letter-spacing;
}

/* =========================================================
   16. 반응형
   ========================================================= */
@media (max-width: 1024px) {
  .tnt-header {
    border-bottom-color: transparent; /* 모바일은 ::after 라인만 사용 */
  }
  .tnt-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 0.5px;
    background: rgba(0, 0, 0, 0.12);
    opacity: 0;
    transition: opacity var(--t-base);
    pointer-events: none;
  }
  /* 모바일: 본문이 헤더 아래로 지나가면 하단 구분선이 더 또렷하게 보이도록 */
  .tnt-header.is-scrolled {
    border-bottom-color: transparent;
  }
  .tnt-header.is-scrolled::after {
    opacity: 1;
  }
  /* 모바일 서브페이지(메인 제외)는 처음부터 헤더 하단선 표시 */
  body:not(.home):not(.front-page) .tnt-header {
    border-bottom-color: transparent;
  }
  body:not(.home):not(.front-page) .tnt-header::after {
    opacity: 1;
  }
  .tnt-nav,
  nav.tnt-nav {
    display: none !important;
  }
  .tnt-header__right .tnt-btn {
    display: none !important;
  }
  #tnt-search-toggle {
    display: none !important;
  }
  #tnt-burger {
    display: inline-flex !important;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
  }

  .tnt-cats {
    grid-template-columns: repeat(3, 1fr);
  }
  .tnt-posts {
    grid-template-columns: repeat(2, 1fr);
  }
  .tnt-single__sidebar {
    display: none;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: var(--header-h-mobile);
  }
  .tnt-section {
    padding: 48px 0;
  }
  .tnt-section-sub {
    margin-bottom: 32px;
  }

  .tnt-hero {
    padding: 64px 0 48px;
    min-height: 0;
  }
  .tnt-hero__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .tnt-hero__media {
    aspect-ratio: 1/1;
  }
  .tnt-hero-latest {
    max-width: 100%;
    margin-top: 26px;
  }
  .tnt-hero-latest__title {
    font-size: 16px;
  }

  .tnt-cats {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .tnt-cat-card {
    min-height: auto;
    padding: 16px;
    gap: 0;
    border: 1px solid var(--gray2);
  }
  .tnt-cat-card__icon {
    width: 32px;
    height: 32px;
    margin-bottom: 10px;
  }
  .tnt-cat-card__name {
    font-size: 15px;
    margin-bottom: 4px;
  }
  .tnt-cat-card__count {
    font-size: 12px;
  }

  .tnt-posts {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* 모바일 메인: 최신 글 -> 추천 배너 사이 여백 축소 */
  .tnt-section--latest {
    padding-bottom: 50px;
  }

  .tnt-banner {
    padding: 0 0 28px;
  }
  .tnt-banner__inner {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-height: 52px;
    gap: 12px;
    padding-bottom: 24px;
  }
  .tnt-banner__title {
    font-size: 22px;
    line-height: 1.32;
    letter-spacing: -0.4px;
    margin: 0;
  }
  .tnt-banner a {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
  }

  /* 사이드바 카드 — 모바일 컴팩트 */
  .tnt-aside-cta,
  .tnt-sidebar-widget {
    padding: 18px 18px 20px;
    box-shadow: none;
  }
  .tnt-single__sidebar {
    gap: 16px;
  }

  .tnt-footer {
    padding: 36px 0 20px;
  }
  .tnt-footer__grid {
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 20px;
  }
  .tnt-footer__grid > div:not(.tnt-footer__shop) {
    padding: 16px 0;
    border-bottom: 1px solid #333;
  }
  .tnt-footer__grid > div:first-child {
    padding-top: 0;
  }
  .tnt-footer .tnt-logo {
    margin-bottom: 8px;
  }
  .tnt-footer p {
    margin-bottom: 10px;
  }
  .tnt-footer__shop {
    padding: 16px;
    margin-top: 16px;
    border: none;
    background: #222;
    border-radius: 10px;
  }
  .tnt-footer__shop .tnt-btn {
    padding: 10px 18px;
    font-size: 13px;
    border-radius: 6px;
  }
  .tnt-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 14px;
    margin-top: 0;
  }
  .tnt-footer__bottom .links {
    gap: 12px;
  }

  .tnt-cta-banner {
    grid-template-columns: 1fr;
    padding: 32px 24px;
  }
  .tnt-content h2 {
    font-size: 22px;
    margin-top: 40px;
  }
  .tnt-content h3 {
    font-size: 18px;
    margin-top: 32px;
  }

  .tnt-back-to-top {
    right: 16px;
    bottom: 18px;
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 380px) {
  .tnt-container {
    padding: 0 18px;
  }
  .tnt-hero__title {
    font-size: 32px;
  }
  .tnt-cats {
    grid-template-columns: 1fr;
  }
}
