@charset "utf-8";

/*
 * ============================================
 * 핫투데이 (HotToday) 커스텀 스킨 CSS
 * 브랜드 컬러: Red + Black/White
 * 컨셉: 도파민 자극형 연예 뉴스 블로그
 * ============================================
 *
 * 적용 방법:
 * 티스토리 관리 → 스킨 편집 → CSS 탭에 전체 붙여넣기
 *
 * 라이트/다크 모드:
 * - 시스템 설정(prefers-color-scheme)에 자동 연동
 * - 시맨틱 CSS 변수로 전체 테마 제어
 * - 부드러운 전환 애니메이션 적용
 */

/* ── 01. Web Font ── */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

/* ══════════════════════════════════════════
   02. 시맨틱 CSS 변수 — Light Mode (기본)
   ══════════════════════════════════════════ */
:root {
  color-scheme: light dark;

  /* 브랜드 Red — 라이트 모드 */
  --hot-accent: #DC2626;
  --hot-accent-hover: #B91C1C;
  --hot-accent-soft: #FEE2E2;
  --hot-accent-glow: rgba(220, 38, 38, 0.15);

  /* 배경 계층 (뒤→앞) */
  --hot-bg-base: #F3F4F6;        /* 페이지 전체 배경 */
  --hot-bg-surface: #FFFFFF;      /* 카드, 콘텐츠 영역 */
  --hot-bg-elevated: #FFFFFF;     /* 떠있는 요소 */
  --hot-bg-inset: #F3F4F6;        /* 인셋(blockquote, tags 배경) */
  --hot-bg-header: #111111;       /* 헤더/푸터 (항상 다크 톤) */
  --hot-bg-overlay: rgba(0,0,0,0.04); /* hover 오버레이 */

  /* 텍스트 계층 */
  --hot-text-primary: #1A1A1A;
  --hot-text-secondary: #4B5563;
  --hot-text-tertiary: #6B7280;
  --hot-text-muted: #9CA3AF;
  --hot-text-on-accent: #FFFFFF;
  --hot-text-on-header: #F3F4F6;  /* 다크 헤더 위 텍스트 */
  --hot-text-on-header-sub: #CCCCCC;

  /* 보더 */
  --hot-border-default: #E5E7EB;
  --hot-border-strong: #1A1A1A;
  --hot-border-subtle: #F3F4F6;

  /* 컴포넌트 */
  --hot-card-shadow: 0 2px 8px rgba(0,0,0,0.08);
  --hot-card-shadow-hover: 0 8px 24px rgba(220, 38, 38, 0.15);
  --hot-placeholder-bg: #f0f0f0;
  --hot-placeholder-text: #ddd;

  /* 아이콘 필터 (다크 헤더 위에서 흰색으로) */
  --hot-icon-filter: invert(1);
  --hot-icon-filter-menu: none;

  /* 전환 */
  --hot-transition-color: color 0.3s, background-color 0.3s, border-color 0.3s, box-shadow 0.3s;
}

/* ══════════════════════════════════════════
   02-B. 시맨틱 CSS 변수 — Dark Mode
   ══════════════════════════════════════════ */
@media (prefers-color-scheme: dark) {
  :root {
    /* 브랜드 Red — 다크 모드: 약간 밝게 조정 (어두운 배경 대비) */
    --hot-accent: #EF4444;
    --hot-accent-hover: #F87171;
    --hot-accent-soft: #451A1A;
    --hot-accent-glow: rgba(239, 68, 68, 0.2);

    /* 배경 계층 */
    --hot-bg-base: #0F0F0F;
    --hot-bg-surface: #1A1A1A;
    --hot-bg-elevated: #222222;
    --hot-bg-inset: #161616;
    --hot-bg-header: #0A0A0A;
    --hot-bg-overlay: rgba(255,255,255,0.04);

    /* 텍스트 계층 — 다크 배경에서 충분히 밝게 */
    --hot-text-primary: #FFFFFF;
    --hot-text-secondary: #ECECEC;
    --hot-text-tertiary: #BBBFC6;
    --hot-text-muted: #8B9099;
    --hot-text-on-accent: #FFFFFF;
    --hot-text-on-header: #FFFFFF;
    --hot-text-on-header-sub: #CCCCCC;

    /* 보더 */
    --hot-border-default: #2D2D2D;
    --hot-border-strong: #555555;
    --hot-border-subtle: #1F1F1F;

    /* 컴포넌트 */
    --hot-card-shadow: 0 2px 8px rgba(0,0,0,0.4);
    --hot-card-shadow-hover: 0 8px 24px rgba(239, 68, 68, 0.2);
    --hot-placeholder-bg: #2D2D2D;
    --hot-placeholder-text: #444;

    /* 아이콘 필터 (다크 배경이므로 반전 불필요) */
    --hot-icon-filter: none;
    --hot-icon-filter-menu: none;
  }
}

/* ── 03. Type Selector Reset ── */
body {
  font-weight: 400;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1em;
  line-height: 1.25;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  background-color: var(--hot-bg-base);
  color: var(--hot-text-primary);
  transition: var(--hot-transition-color);
}

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  font-size: 100%;
}

div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, code, form, fieldset, legend, input, textarea, p, blockquote, th, td, figure {
  margin: 0;
  padding: 0;
}

header, footer, section, article, aside, nav, hgroup, details, menu, figure, figcaption {
  display: block;
}

button, input[type=submit], input[type=reset], input[type=button] {
  overflow: visible;
  cursor: pointer;
}

input[type=text], input[type=email], input[type=password], input[type=submit], textarea {
  -webkit-appearance: none;
}

input, select, textarea, button {
  font-family: 'Pretendard', sans-serif;
  font-size: 100%;
  border-radius: 0;
}

button {
  overflow: visible;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

ul li {
  list-style: none;
}

img, fieldset {
  border: none;
  vertical-align: top;
}

hr {
  display: none;
}

/* ── 04. Accessibility Navigation ── */
#acc-nav {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  height: 0;
}

#acc-nav a {
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  overflow: hidden;
  width: 1px;
  height: 1px;
  margin-left: -1px;
  margin-bottom: -1px;
  text-align: center;
  font-weight: bold;
  font-size: 0.875em;
  color: #000;
  white-space: nowrap;
}

#acc-nav a:focus, #acc-nav a:hover, #acc-nav a:active {
  width: 100%;
  height: auto;
  padding: 10px 0;
  background: var(--hot-accent);
  color: var(--hot-text-on-accent);
  z-index: 1000;
}

/* ══════════════════════════════════════════
   05. Header — 항상 다크 톤 (브랜드 아이덴티티)
   ══════════════════════════════════════════ */
#header {
  position: relative;
  width: 100%;
  background-color: var(--hot-bg-header);
  border-bottom: 3px solid var(--hot-accent);
  transition: var(--hot-transition-color);
}

#header h2 {
  padding: 20px 0;
  text-align: center;
  font-size: 1.75em;
  font-weight: 900;
  line-height: 1;
  color: var(--hot-text-on-header);
  letter-spacing: -0.02em;
}

#header h2 a {
  display: inline-block;
  text-decoration: none;
  vertical-align: top;
  color: var(--hot-text-on-header);
}

#header h2 a:hover {
  color: var(--hot-accent);
}

/* 모바일 메뉴 버튼 */
#header .mobile-menu span,
#header .mobile-menu:before,
#header .mobile-menu:after {
  background-color: var(--hot-text-on-header);
}

#header .mobile-menu {
  position: absolute;
  top: 12px;
  left: 33px;
  z-index: 500;
  width: 40px;
  height: 40px;
  outline: none;
}

#header .mobile-menu span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 26px;
  height: 2px;
  margin: -2px 0 0 -13px;
  text-indent: -999em;
}

#header .mobile-menu:before,
#header .mobile-menu:after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 26px;
  height: 2px;
  margin-left: -13px;
}

#header .mobile-menu:before { margin-top: -9px; }
#header .mobile-menu:after { margin-top: 5px; }
#header .mobile-menu.on { position: fixed; }
#header .mobile-menu.on span { display: none; }

#header .mobile-menu.on:before,
#header .mobile-menu.on:after {
  margin-top: -2px;
  background-color: var(--hot-text-primary);
}

#header .mobile-menu.on:before { transform: rotate(-45deg); }
#header .mobile-menu.on:after { transform: rotate(45deg); }

/* 슬라이드 메뉴 */
#header .menu {
  position: fixed;
  top: 0;
  left: -348px;
  z-index: 400;
  width: 348px;
  height: 100%;
  padding: 94px 40px 189px;
  background-color: var(--hot-bg-surface);
  box-sizing: border-box;
  transition: left .3s ease-in-out, background-color 0.3s;
}

#header .menu .social-link {
  position: absolute;
  left: 40px;
  bottom: 129px;
}

#header .menu p {
  position: absolute;
  left: 40px;
  bottom: 79px;
  font-size: 0.75em;
  color: var(--hot-text-muted);
}

#header .menu.on { left: 0; }

/* 검색 */
#header .search {
  position: absolute;
  top: 12px;
  right: 19px;
  width: 0;
  padding-right: 40px;
}

#header .search input {
  display: none;
  width: 100%;
  height: 40px;
  padding: 0 10px;
  font-size: 1em;
  line-height: 40px;
  color: var(--hot-text-on-header);
  border: 0;
  box-sizing: border-box;
  background-color: transparent;
}

#header .search button {
  display: none;
  position: absolute;
  top: 0;
  right: 0;
  z-index: 10;
  width: 40px;
  height: 40px;
  background: url(./images/ico_package.png) no-repeat 0 0;
  text-indent: -999em;
  outline: none;
  filter: var(--hot-icon-filter);
}

#header .search:before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  z-index: 20;
  width: 40px;
  height: 40px;
  background: url(./images/ico_package.png) no-repeat 0 0;
  text-indent: -999em;
  cursor: pointer;
  filter: var(--hot-icon-filter);
}

#header .search:hover:before {
  background-color: rgba(255,255,255,0.1);
}

#header .search.on {
  width: 322px;
  border-bottom: 1px solid var(--hot-accent);
}

#header .search.on input { display: block; outline: none; }
#header .search.on button { display: block; }
#header .search.on:before { display: none; }

/* ── 06. GNB — 네비게이션 ── */
#gnb {
  overflow: auto;
  height: 100%;
  margin-bottom: 8px;
}

#gnb ul li {
  margin-bottom: 6px;
  font-size: 1.125em;
  line-height: 1.5;
}

#gnb ul li a {
  display: block;
  text-decoration: none;
  color: var(--hot-text-secondary);
  transition: color 0.2s;
}

#gnb ul li a:hover {
  text-decoration: none;
  color: var(--hot-accent);
}

#gnb ul li ul { margin: 22px 0 0; }
#gnb ul li ul li { font-size: 1em; }
#gnb ul li ul li ul { margin: 6px 0 13px; }

#gnb ul li ul li ul li {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5625rem;
}

#gnb ul li ul li ul li a:before {
  content: "—";
  margin-right: 8px;
  color: var(--hot-accent);
}

#gnb ul li ul li ul li a { padding: 0 12px; }
#gnb ul li ul li ul li a { color: var(--hot-text-muted); }

/* ── 07. Content Area ── */
#content .inner {
  max-width: 960px;
  margin: 0 auto;
}

#content > .inner {
  max-width: 860px;
}

#content .inner:after {
  content: "";
  clear: both;
  display: block;
  height: 0;
  visibility: hidden;
}

/* ══════════════════════════════════════════
   08. Footer — 항상 다크 톤 (헤더와 통일)
   ══════════════════════════════════════════ */
#footer {
  position: relative;
  padding: 40px 0;
  background-color: var(--hot-bg-header);
  border-top: 3px solid var(--hot-accent);
  transition: var(--hot-transition-color);
}

#footer p {
  text-align: center;
  font-size: 0.8em;
  color: var(--hot-text-muted);
  letter-spacing: 0.05em;
}

#footer p a {
  text-decoration: none;
  color: var(--hot-text-on-header-sub);
}

#footer p a:hover {
  color: var(--hot-accent);
}

#footer .admin {
  color: var(--hot-text-on-header-sub);
}

#footer .admin:before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 15px;
  margin: 0 9px;
  background-color: #444;
  vertical-align: middle;
}

#tt-body-index #footer {
  border-top: 3px solid var(--hot-accent);
}

/* ── 09. Components ── */
.social-link a {
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 5px;
  text-indent: -999em;
  background-image: url(./images/ico_package.png);
  background-repeat: no-repeat;
  vertical-align: top;
  filter: var(--hot-icon-filter);
}

.social-link a:hover {
  background-position-y: -68px;
}

.social-link .pinterest { background-position: 0 -50px; }
.social-link .facebook { background-position: -50px -50px; }
.social-link .twitter { background-position: -100px -50px; }
.social-link .instagram { background-position: -150px -50px; }

.btn, a.btn {
  display: inline-block;
  width: 158px;
  height: 50px;
  border: 2px solid var(--hot-accent);
  font-size: 0.875em;
  font-weight: 700;
  line-height: 50px;
  color: var(--hot-accent);
  transition: all 0.2s;
}

.btn:hover {
  background-color: var(--hot-accent);
  border-color: var(--hot-accent);
  color: var(--hot-text-on-accent);
}

/* ══════════════════════════════════════════
   10. Cover — 썸네일 리스트
   ══════════════════════════════════════════ */
.cover-thumbnail-list {
  margin: 0 auto -1px;
  padding: 40px 20px 56px;
  border-bottom: 1px solid var(--hot-border-default);
  background-color: var(--hot-bg-surface);
  transition: var(--hot-transition-color);
}

.cover-thumbnail-list h2 {
  margin-bottom: 26px;
  font-size: 1.1em;
  font-weight: 800;
  color: var(--hot-text-primary);
}

.cover-thumbnail-list h2:before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 18px;
  margin-right: 10px;
  background-color: var(--hot-accent);
  vertical-align: middle;
}

.cover-thumbnail-list ul { width: 100%; }

.cover-thumbnail-list ul li {
  float: left;
  width: 24.0625%;
  margin: 0 0 32px;
  padding-left: 1.25%;
}

.cover-thumbnail-list ul li:nth-child(4n+1) {
  clear: both;
  padding-left: 0;
}

.cover-thumbnail-list ul li a {
  display: block;
  text-decoration: none;
  color: var(--hot-text-primary);
  transition: transform 0.2s;
}

.cover-thumbnail-list ul li a:hover {
  transform: translateY(-4px);
}

.cover-thumbnail-list ul li .thum {
  display: block;
  position: relative;
  overflow: hidden;
  height: 0;
  margin-bottom: 12px;
  padding-bottom: 75%;
  background-color: var(--hot-placeholder-bg);
  border-radius: 6px;
}

.cover-thumbnail-list ul li .thum:before {
  content: "NO IMAGE";
  position: absolute;
  top: 50%;
  left: 0;
  z-index: 0;
  width: 100%;
  height: 18px;
  margin: -9px 0 0 0;
  text-align: center;
  font-weight: bold;
  font-size: 0.875em;
  color: var(--hot-placeholder-text);
}

.cover-thumbnail-list ul li .thum img {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.cover-thumbnail-list ul li a:hover .thum img {
  transform: scale(1.05);
}

/* 카테고리 뱃지 — 빨간 태그 스타일 */
.cover-thumbnail-list ul li .category {
  display: inline-block;
  margin-bottom: 8px;
  padding: 2px 8px;
  background-color: var(--hot-accent);
  border: 0;
  border-radius: 3px;
  font-family: 'Pretendard', sans-serif;
  font-size: 0.75em;
  font-weight: 700;
  color: var(--hot-text-on-accent);
}

.cover-thumbnail-list ul li .title {
  display: block;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: 2.75em;
  padding-right: 5%;
  font-weight: 800;
  font-size: 0.95em;
  line-height: 1.375em;
  color: var(--hot-text-primary);
}

.cover-thumbnail-list ul li a:hover .title {
  text-decoration: none;
  color: var(--hot-accent);
}

/* ── 11. Cover — 슬라이더 ── */
.cover-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  background-color: #000;
}

.cover-slider ul li {
  display: table;
  width: 100%;
  height: 460px;
  text-align: center;
  background-position: 50% 50%;
  background-size: cover;
}

.cover-slider ul li a {
  display: table-cell;
  background: linear-gradient(transparent 30%, rgba(0,0,0,0.8));
  text-decoration: none;
  color: #fff;
  vertical-align: bottom;
  padding-bottom: 60px;
}

.cover-slider ul li .category {
  display: inline-block;
  margin-bottom: 16px;
  padding: 4px 14px;
  background-color: var(--hot-accent);
  border: 0;
  border-radius: 3px;
  font-weight: 700;
}

.cover-slider ul li .title {
  display: block;
  max-width: 580px;
  margin: 0 auto 28px;
  font-size: 2.5em;
  font-weight: 900;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.cover-slider ul li .btn {
  border-color: var(--hot-accent);
  background-color: var(--hot-accent);
  color: #fff;
}

.cover-slider ul li .btn:hover {
  background-color: #fff;
  color: var(--hot-accent);
}

.cover-slider .prev,
.cover-slider .next {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 20;
  width: 70px;
  height: 70px;
  margin: -25px 0 0 0;
  background: url(./images/ico_package.png) no-repeat 0 -250px;
  text-indent: -999em;
  filter: invert(1);
}

.cover-slider .prev { margin-left: -506px; background-position: 0 -250px; }
.cover-slider .next { margin-left: 436px; background-position: -100px -250px; }

.cover-slider .prev:hover,
.cover-slider .next:hover {
  background-color: rgba(220, 38, 38, 0.3);
}

/* ── 12. Cover — Masonry ── */
.cover-masonry {
  margin-bottom: -1px;
  padding: 40px 20px 49px;
  border-bottom: 1px solid var(--hot-border-default);
  background-color: var(--hot-bg-surface);
  transition: var(--hot-transition-color);
}

.cover-masonry h2 {
  margin-bottom: 30px;
  font-size: 1.1em;
  font-weight: 800;
  color: var(--hot-text-primary);
}

.cover-masonry h2:before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 18px;
  margin-right: 10px;
  background-color: var(--hot-accent);
  vertical-align: middle;
}

.cover-masonry ul {
  display: inline-block;
  margin-left: -42px;
  vertical-align: top;
}

.cover-masonry ul li {
  float: left;
  width: 33.3333%;
  margin: 0 0 37px;
  padding-left: 42px;
  box-sizing: border-box;
}

.cover-masonry ul li a {
  display: block;
  text-decoration: none;
  color: var(--hot-text-primary);
  transition: transform 0.2s;
}

.cover-masonry ul li a:hover { transform: translateY(-3px); }

.cover-masonry ul li .thum {
  display: block;
  margin-bottom: 12px;
  border-radius: 6px;
  overflow: hidden;
}

.cover-masonry ul li .thum img {
  width: 100%;
  height: auto;
  transition: transform 0.3s;
}

.cover-masonry ul li a:hover .thum img { transform: scale(1.05); }

.cover-masonry ul li .category {
  display: inline-block;
  margin-bottom: 7px;
  padding: 2px 8px;
  background-color: var(--hot-accent);
  border: 0;
  border-radius: 3px;
  font-family: 'Pretendard', sans-serif;
  font-size: 0.75em;
  font-weight: 700;
  color: var(--hot-text-on-accent);
}

.cover-masonry ul li .title {
  display: block;
  font-weight: 800;
  font-size: 1.125em;
  line-height: 1.4;
  color: var(--hot-text-primary);
}

.cover-masonry ul li a:hover .title { color: var(--hot-accent); }

.cover-masonry ul li .excerpt {
  display: block;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: 4.8em;
  margin-top: 6px;
  font-size: 0.875em;
  line-height: 1.6;
  color: var(--hot-text-tertiary);
}

/* ── 13. Cover — List ── */
.cover-list {
  margin-bottom: -1px;
  padding: 30px 20px 60px;
  border-bottom: 1px solid var(--hot-border-default);
  background-color: var(--hot-bg-surface);
  transition: var(--hot-transition-color);
}

.cover-list h2 {
  margin: 30px 0 0 0;
  font-size: 1.1em;
  font-weight: 800;
  color: var(--hot-text-primary);
}

.cover-list h2:before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 18px;
  margin-right: 10px;
  background-color: var(--hot-accent);
  vertical-align: middle;
}

.cover-list ul li { border-top: 1px solid var(--hot-border-default); }
.cover-list ul li:first-child { border-top: 0; }

.cover-list ul li a {
  display: block;
  min-height: 172px;
  padding: 30px 0;
  text-decoration: none;
  color: var(--hot-text-primary);
  transition: background-color 0.2s;
}

.cover-list ul li a:hover { background-color: var(--hot-bg-overlay); }

.cover-list ul li figure {
  float: right;
  position: relative;
  width: 172px;
  height: 172px;
  margin: 0 0 0 80px;
  background-color: var(--hot-placeholder-bg);
  border-radius: 6px;
  overflow: hidden;
}

.cover-list ul li figure:before {
  content: "NO IMAGE";
  position: absolute;
  top: 50%;
  left: 0;
  z-index: 0;
  width: 100%;
  height: 18px;
  margin: -9px 0 0 0;
  text-align: center;
  font-weight: bold;
  font-size: 0.875em;
  color: var(--hot-placeholder-text);
}

.cover-list ul li figure img {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-list ul li .category {
  display: inline-block;
  margin-bottom: 7px;
  padding: 2px 8px;
  background-color: var(--hot-accent);
  border: 0;
  border-radius: 3px;
  font-family: 'Pretendard', sans-serif;
  font-size: 0.75em;
  font-weight: 700;
  color: var(--hot-text-on-accent);
}

.cover-list ul li .title {
  display: block;
  font-weight: 800;
  font-size: 1.125em;
  line-height: 1.4em;
  color: var(--hot-text-primary);
}

.cover-list ul li a:hover .title { color: var(--hot-accent); }

.cover-list ul li .excerpt {
  display: block;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: 4.8em;
  font-size: 0.875em;
  line-height: 1.6;
  color: var(--hot-text-tertiary);
}

/* ── 14. Cover — Gallery ── */
.cover-gallery {
  margin: 0 auto -1px;
  padding: 40px 20px 75px;
  border-bottom: 1px solid var(--hot-border-default);
  background-color: var(--hot-bg-surface);
  transition: var(--hot-transition-color);
}

.cover-gallery h2 {
  margin-bottom: 30px;
  font-size: 1.1em;
  font-weight: 800;
  color: var(--hot-text-primary);
}

.cover-gallery h2:before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 18px;
  margin-right: 10px;
  background-color: var(--hot-accent);
  vertical-align: middle;
}

.cover-gallery ul {
  display: inline-block;
  margin-left: -12px;
}

.cover-gallery ul li {
  float: left;
  width: 25%;
  margin: 0 0 12px 0;
  padding-left: 12px;
  box-sizing: border-box;
}

.cover-gallery ul li a {
  display: block;
  position: relative;
  width: 100%;
  background-color: var(--hot-bg-header);
  border-radius: 6px;
  overflow: hidden;
}

.cover-gallery ul li .title {
  display: block;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  position: absolute;
  top: 50%;
  left: 0;
  z-index: 30;
  overflow: hidden;
  width: 100%;
  max-height: 4.2em;
  text-align: center;
  font-weight: 700;
  line-height: 1.4;
  padding: 0 15px;
  color: #fff;
  box-sizing: border-box;
  transform: translateY(-50%);
  visibility: hidden;
}

.cover-gallery ul li a:hover .title { visibility: visible; }

.cover-gallery ul li a:hover:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: 20;
  width: 100%;
  height: 100%;
  background: linear-gradient(transparent, rgba(220, 38, 38, 0.7));
}

.cover-gallery ul li a:before {
  content: "NO IMAGE";
  position: absolute;
  top: 50%;
  left: 0;
  z-index: 0;
  width: 100%;
  height: 18px;
  margin: -9px 0 0 0;
  text-align: center;
  font-weight: bold;
  font-size: 0.875em;
  color: #555;
}

.cover-gallery ul li figure { height: 0; padding-bottom: 100%; }

.cover-gallery ul li figure img {
  position: relative;
  width: 100%;
  height: auto;
  z-index: 10;
  transition: transform 0.3s;
}

.cover-gallery ul li a:hover figure img { transform: scale(1.08); }

/* ── 15. Cover Footer ── */
.cover-footer {
  position: relative;
  z-index: 10;
  text-align: center;
  background-color: var(--hot-bg-surface);
  transition: var(--hot-transition-color);
}

.cover-footer .image {
  height: 200px;
  margin-bottom: 40px;
  background-position: 50% 50%;
  background-size: cover;
}

.cover-footer p {
  margin: -5px 0 20px;
  text-align: center;
  font-weight: 800;
  font-size: 1.25em;
  color: var(--hot-text-primary);
}

.cover-footer .menu ul { text-align: center; }

.cover-footer .menu ul li {
  display: inline-block;
  margin: 40px 0 48px;
  padding: 0 14px;
  font-size: 0.875em;
}

.cover-footer .menu ul li a {
  display: block;
  text-decoration: none;
  color: var(--hot-text-tertiary);
  font-weight: 600;
  transition: color 0.2s;
}

.cover-footer .menu ul li a:hover { color: var(--hot-accent); }

.cover-footer p:first-child { margin-top: 76px; }
.cover-footer .social-link:first-child a { margin-top: 80px; }

/* ── 16. Post Header ── */
.post-header {
  position: relative;
  overflow: hidden;
  max-width: 860px;
  margin: 0 auto 30px;
  padding: 40px 0 15px;
  border-bottom: 2px solid var(--hot-border-strong);
  transition: var(--hot-transition-color);
}

.post-header h1 {
  float: left;
  font-size: 1.1em;
  font-weight: 800;
  color: var(--hot-text-primary);
}

.post-header .list-type { float: right; }

.post-header .list-type button {
  float: left;
  width: 24px;
  height: 24px;
  margin-left: 4px;
  background-image: url(./images/ico_package.png);
  background-repeat: no-repeat;
  text-indent: -999em;
  outline: none;
}

.post-header .list-type button:hover { background-color: var(--hot-accent-soft); }

.post-header .list-type .list { background-position: 0 -200px; }
.post-header .list-type .thum { background-position: -100px -200px; }
.post-header .list-type .list.current { background-position: -50px -200px; }
.post-header .list-type .thum.current { background-position: -150px -200px; }

/* ══════════════════════════════════════════
   17. Post Item — 리스트형
   ══════════════════════════════════════════ */
.post-item {
  overflow: hidden;
  width: 100%;
  border-bottom: 1px solid var(--hot-border-default);
  transition: var(--hot-transition-color);
}

.post-item:hover {
  background-color: var(--hot-bg-overlay);
}

.post-item a {
  display: block;
  min-height: 148px;
  padding: 24px 16px;
  text-decoration: none;
  color: var(--hot-text-primary);
}

.post-item:first-child a { padding-top: 0; }

.post-item a:hover .title {
  text-decoration: none;
  color: var(--hot-accent);
}

.post-item .thum {
  float: right;
  overflow: hidden;
  max-width: 148px;
  margin-left: 40px;
  border-radius: 6px;
}

.post-item .thum img {
  width: 195px;
  height: 148px;
  margin: 0 0 0 -23.5px;
  object-fit: cover;
  transition: transform 0.3s;
}

.post-item a:hover .thum img { transform: scale(1.05); }

.post-item .category {
  display: inline-block;
  margin-bottom: 10px;
  padding: 2px 8px;
  background-color: var(--hot-accent);
  border: 0;
  border-radius: 3px;
  font-family: 'Pretendard', sans-serif;
  font-size: 0.75em;
  font-weight: 700;
  color: var(--hot-text-on-accent);
}

.post-item .title {
  display: block;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: 2.8em;
  font-weight: 800;
  font-size: 1.125em;
  line-height: 1.4;
  color: var(--hot-text-primary);
}

.post-item .excerpt {
  display: block;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.875em;
  line-height: 1.6;
  color: var(--hot-text-tertiary);
}

.post-item .excerpt.protected:before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 13px;
  margin-right: 10px;
  background: url(./images/ico_package.png) no-repeat -0 -100px;
  vertical-align: baseline;
}

/* ── 18. Pagination ── */
.pagination {
  max-width: 860px;
  margin: 60px auto 100px;
  text-align: center;
}

.pagination .current { display: none; }

.pagination .view-more {
  display: inline-block;
  width: 200px;
  height: 50px;
  border: 2px solid var(--hot-accent);
  font-size: 0.875em;
  font-weight: 700;
  line-height: 50px;
  color: var(--hot-accent);
  transition: all 0.2s;
}

.pagination .view-more:hover {
  background-color: var(--hot-accent);
  color: var(--hot-text-on-accent);
}

.pagination a {
  display: inline-block;
  width: 30px;
  height: 30px;
  margin: 0 3px;
  text-decoration: none;
  font-size: 0.875em;
  font-weight: 600;
  line-height: 30px;
  color: var(--hot-text-muted);
  border-radius: 4px;
  vertical-align: middle;
}

.pagination a:hover {
  background-color: var(--hot-accent-soft);
  color: var(--hot-accent);
}

.pagination .selected {
  background-color: var(--hot-accent);
  color: var(--hot-text-on-accent);
}

.pagination .prev,
.pagination .next {
  width: 50px;
  height: 50px;
  background-image: url(./images/ico_package.png);
  background-repeat: no-repeat;
  border: 2px solid var(--hot-border-default);
  text-indent: -999em;
  vertical-align: middle;
  box-sizing: border-box;
  border-radius: 4px;
}

.pagination .prev { background-position: -50px 0; }
.pagination .next { background-position: -100px 0; }

.pagination .prev:hover,
.pagination .next:hover {
  background-color: transparent;
  border-color: var(--hot-accent);
}

.pagination .no-more-prev,
.pagination .no-more-next { display: none; }

/* ══════════════════════════════════════════
   19. Article — hgroup
   ══════════════════════════════════════════ */
.hgroup {
  max-width: 860px;
  margin: 50px auto 40px;
  padding: 0 0 24px;
  border-bottom: 2px solid var(--hot-border-strong);
  transition: var(--hot-transition-color);
}

.hgroup .category {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 12px;
  background-color: var(--hot-accent);
  border: 0;
  border-radius: 4px;
  font-family: 'Pretendard', sans-serif;
  font-size: 0.8em;
  font-weight: 700;
  color: var(--hot-text-on-accent);
}

.hgroup h1 {
  display: block;
  margin-bottom: 12px;
  font-weight: 900;
  font-size: 2em;
  line-height: 1.3;
  color: var(--hot-text-primary);
}

.hgroup .post-meta {
  display: block;
  font-size: 0.8125em;
  color: var(--hot-text-muted);
}

.hgroup .post-meta a {
  text-decoration: none;
  color: var(--hot-text-muted);
}

.hgroup .post-meta a:hover { color: var(--hot-accent); }

.hgroup .post-meta span:before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 10px;
  margin: 0 7px 0 10px;
  background-color: var(--hot-border-default);
  vertical-align: baseline;
}

.hgroup .post-meta span:first-child:before { content: none; }

/* ── 20. Tags ── */
.tags {
  position: relative;
  overflow: hidden;
  max-width: 860px;
  margin: 40px auto;
  padding: 20px 20px 20px 60px;
  border: 1px solid var(--hot-border-default);
  border-radius: 8px;
  background-color: var(--hot-bg-inset);
  color: var(--hot-text-muted);
  box-sizing: border-box;
  transition: var(--hot-transition-color);
}

.tags h2 {
  float: left;
  width: 47px;
  margin-left: -47px;
  font-weight: 700;
  font-size: 0.875em;
  color: var(--hot-accent);
}

.tags .items a {
  display: inline-block;
  margin: 3px 4px;
  padding: 3px 10px;
  text-decoration: none;
  font-size: 0.8125em;
  line-height: 1.5;
  color: var(--hot-text-tertiary);
  background-color: var(--hot-bg-surface);
  border: 1px solid var(--hot-border-default);
  border-radius: 20px;
  transition: all 0.2s;
}

.tags .items a:hover {
  background-color: var(--hot-accent);
  border-color: var(--hot-accent);
  color: var(--hot-text-on-accent);
}

.tags .items a:before { content: "#"; }

/* ── 21. Related Articles ── */
.related-articles {
  overflow: hidden;
  width: 100%;
  margin: 57px 0 69px;
}

.related-articles h2 {
  margin-bottom: 28px;
  font-weight: 700;
  font-size: 1em;
  color: var(--hot-text-primary);
}

.related-articles h2 strong {
  color: var(--hot-accent);
  font-style: normal;
}

.related-articles ul li {
  float: left;
  width: 24.0625%;
  padding-left: 1.25%;
}

.related-articles ul li:first-child { padding-left: 0; }

.related-articles ul li a {
  display: block;
  text-decoration: none;
  color: var(--hot-text-primary);
}

.related-articles ul li a:hover .title { color: var(--hot-accent); }

.related-articles ul li .thum {
  display: block;
  position: relative;
  overflow: hidden;
  height: 0;
  margin-bottom: 12px;
  padding-bottom: 75%;
  background-color: var(--hot-placeholder-bg);
  border-radius: 6px;
}

.related-articles ul li .thum:before {
  content: "NO IMAGE";
  position: absolute;
  top: 50%;
  left: 0;
  z-index: 0;
  width: 100%;
  height: 18px;
  margin: -9px 0 0 0;
  text-align: center;
  font-weight: bold;
  font-size: 0.875em;
  color: var(--hot-placeholder-text);
}

.related-articles ul li .thum img {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.related-articles ul li a:hover .thum img { transform: scale(1.05); }

.related-articles ul li .title {
  display: block;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: 2.75em;
  font-weight: 700;
  font-size: 0.9em;
  line-height: 1.375em;
  color: var(--hot-text-primary);
}

/* ── 22. another_category ── */
.another_category {
  margin: 60px auto 80px;
  padding: 0 !important;
  border: 0 !important;
}

.another_category h4 {
  margin-bottom: 28px;
  font-weight: 700;
  font-size: 1em !important;
  color: var(--hot-text-primary);
}

.another_category h4 em {
  border-bottom: 2px solid var(--hot-accent);
  font-style: normal;
}

.another_category table {
  width: 100%;
  border-collapse: collapse;
  border: 0 !important;
  font-size: 0.875em;
  color: var(--hot-text-tertiary);
}

.another_category table th {
  padding: 8px 0 4px;
  border: 0 !important;
  text-align: left;
  font-weight: 400;
}

.another_category table th a {
  text-decoration: none;
  color: var(--hot-text-tertiary);
}

.another_category table th a:hover { color: var(--hot-accent); }

.another_category td {
  width: 60px;
  padding: 8px 0 4px;
  border-left: 0 !important;
  border-top: 0 !important;
  font-size: 0.8125em;
  line-height: 1;
  color: var(--hot-text-muted);
}

/* ══════════════════════════════════════════
   23. Entry Content — 본문
   ══════════════════════════════════════════ */
.entry-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 0 80px;
  font-size: 1.0625em;
  line-height: 1.8;
  color: var(--hot-text-secondary);
}

/*
 * ── 인라인 스타일 강제 덮어쓰기 ──
 * 티스토리 에디터가 <p style="color:#333">, <span style="color:#555"> 등
 * 인라인 색상을 하드코딩하여 저장하므로, 다크모드에서 글씨가 배경에 묻힘.
 * !important로 인라인 style보다 우선 적용되게 강제함.
 * 라이트모드에서도 동일하게 적용하여 일관성 유지.
 */
.entry-content p,
.entry-content div,
.entry-content span,
.entry-content li,
.entry-content td,
.entry-content th,
.entry-content dd,
.entry-content dt,
.entry-content font,
.entry-content b,
.entry-content i,
.entry-content em,
.entry-content strong,
.entry-content u,
.entry-content s {
  color: var(--hot-text-secondary) !important;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  color: var(--hot-text-primary) !important;
}

.entry-content a {
  color: var(--hot-accent) !important;
}

.entry-content h2 {
  margin: 40px 0 16px;
  font-size: 1.5em;
  font-weight: 800;
  border-left: 4px solid var(--hot-accent);
  padding-left: 14px;
}

.entry-content h3 {
  margin: 30px 0 12px;
  font-size: 1.25em;
  font-weight: 700;
}

.entry-content blockquote {
  margin: 20px 0;
  padding: 16px 20px;
  border-left: 4px solid var(--hot-accent);
  background-color: var(--hot-bg-inset);
  font-style: normal;
  transition: var(--hot-transition-color);
}

.entry-content blockquote p,
.entry-content blockquote span {
  color: var(--hot-text-tertiary) !important;
}

.entry-content a:hover {
  color: var(--hot-accent-hover) !important;
}

/* 본문 이미지 */
.entry-content img {
  border-radius: 4px;
}

/* 본문 코드 블록 */
.entry-content pre,
.entry-content code {
  background-color: var(--hot-bg-inset);
  border: 1px solid var(--hot-border-default);
  border-radius: 4px;
  color: var(--hot-text-secondary);
}

/* ── 24. Protected Form ── */
.protected_form {
  max-width: 400px;
  margin: 40px auto;
  text-align: center;
}

.protected_form p {
  margin-bottom: 20px;
  color: var(--hot-text-tertiary);
}

.protected_form input {
  height: 44px;
  padding: 0 16px;
  border: 2px solid var(--hot-border-default);
  border-radius: 4px;
  background-color: var(--hot-bg-surface);
  color: var(--hot-text-primary);
  transition: var(--hot-transition-color);
}

.protected_form input:focus {
  border-color: var(--hot-accent);
  outline: none;
}

.protected_form .btn {
  height: 44px;
  line-height: 44px;
  width: auto;
  padding: 0 24px;
  background-color: var(--hot-accent);
  border: 0;
  color: var(--hot-text-on-accent);
  font-weight: 700;
  border-radius: 4px;
}

/* ══════════════════════════════════════════
   25. Post Type (Thumbnail) — 카드 그리드
   ══════════════════════════════════════════ */
/* 원본 스킨 클래스: body.post-type-thumbnail */
.post-type-thumbnail .post-item {
  float: left;
  width: 24.0625%;
  padding-left: 1.25%;
  margin-bottom: 24px;
  border-bottom: 0;
  box-sizing: border-box;
}

.post-type-thumbnail .post-item:nth-child(4n+1) {
  clear: both;
  padding-left: 0;
}

.post-type-thumbnail .post-item a {
  min-height: auto;
  padding: 0;
  background-color: var(--hot-bg-elevated);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--hot-card-shadow);
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.3s;
}

.post-type-thumbnail .post-item a:hover {
  transform: translateY(-4px);
  box-shadow: var(--hot-card-shadow-hover);
}

.post-type-thumbnail .post-item .thum {
  display: block;
  position: relative;
  overflow: hidden;
  float: none;
  max-width: none;
  height: 0;
  padding-bottom: 75%;
  margin: 0;
  border-radius: 0;
  background-color: var(--hot-placeholder-bg);
}

.post-type-thumbnail .post-item .thum:before {
  content: "NO IMAGE";
  position: absolute;
  top: 50%;
  left: 0;
  z-index: 0;
  width: 100%;
  height: 18px;
  margin: -9px 0 0 0;
  text-align: center;
  font-weight: bold;
  font-size: 0.875em;
  color: var(--hot-placeholder-text);
}

.post-type-thumbnail .post-item .thum img {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  transition: transform 0.3s;
}

.post-type-thumbnail .post-item a:hover .thum img {
  transform: scale(1.05);
}

.post-type-thumbnail .post-item .title {
  display: block;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: 2.75em;
  padding: 10px 14px 14px;
  font-weight: 800;
  font-size: 0.95em;
  line-height: 1.375em;
  color: var(--hot-text-primary);
}

.post-type-thumbnail .post-item a:hover .title {
  color: var(--hot-accent);
}

.post-type-thumbnail .post-item .category {
  padding: 12px 14px 0;
}

.post-type-thumbnail .post-item .excerpt {
  display: none;
}

.post-type-thumbnail .pagination {
  margin-top: 0;
}

/* ══════════════════════════════════════════
   26. Media Queries — Tablet (≤1023px)
   ══════════════════════════════════════════ */
@media screen and (max-width: 1023px) {
  .cover-thumbnail-list ul li { width: 33.333%; }
  .cover-thumbnail-list ul li:nth-child(4n+1) { clear: none; }
  .cover-thumbnail-list ul li:nth-child(3n+1) { clear: both; padding-left: 0; }

  .cover-masonry ul li { width: 50%; }
  .cover-gallery ul li { width: 33.333%; }

  .post-type-thumbnail .post-item { width: 48.5%; margin-bottom: 20px; }
  .post-type-thumbnail .post-item:nth-child(4n+1) { padding-left: 1.25%; }
  .post-type-thumbnail .post-item:nth-child(2n+1) { clear: both; padding-left: 0; }

  .related-articles ul li { width: 33.333%; }
  .related-articles ul li:nth-child(4) { display: none; }
}

/* ══════════════════════════════════════════
   27. Media Queries — Mobile (≤680px)
   ══════════════════════════════════════════ */
@media screen and (max-width: 680px) {
  #header h2 {
    font-size: 1.375em;
    padding: 16px 0;
  }

  #header .mobile-menu { top: 8px; left: 16px; }
  #header .search { top: 8px; right: 10px; }

  .cover-thumbnail-list ul li { width: 50%; }
  .cover-thumbnail-list ul li:nth-child(3n+1) { clear: none; }
  .cover-thumbnail-list ul li:nth-child(2n+1) { clear: both; padding-left: 0; }

  .cover-masonry ul { margin-left: -16px; }
  .cover-masonry ul li { width: 100%; padding-left: 16px; }

  .cover-gallery ul { margin-left: -8px; }
  .cover-gallery ul li { width: 50%; padding-left: 8px; margin-bottom: 8px; }

  .cover-slider ul li { height: 320px; }
  .cover-slider ul li .title { font-size: 1.5em; }

  .cover-list ul li figure { width: 100px; height: 100px; margin-left: 20px; }

  .post-item .thum { max-width: 100px; margin-left: 16px; }
  .post-item .thum img { width: 132px; height: 100px; }

  .post-type-thumbnail .post-item { width: 48.5%; padding-left: 2.5%; margin-bottom: 16px; }
  .post-type-thumbnail .post-item:nth-child(2n+1) { clear: both; padding-left: 0; }

  .hgroup { margin: 30px 16px 30px; }
  .hgroup h1 { font-size: 1.5em; }

  .entry-content { padding: 0 16px 60px; }
  .tags { margin: 30px 16px; }

  .related-articles ul li { width: 50%; }
  .related-articles ul li:nth-child(n+3) { display: none; }

  .pagination { margin: 40px auto 80px; }

  /* 댓글 모바일 대응 */
  .comments .comment-list ul li ul li { padding: 20px 0 0 48px; }

  .comments .comment-list ul li ul li:before {
    content: "";
    position: absolute;
    top: 34px;
    left: 18px;
    width: 12px;
    height: 12px;
    background: url(./images/ico_package.png) no-repeat 0 -150px;
  }

  .comments .comment-list ul li .author-meta,
  .comments .comment-list ul li ul li .author-meta {
    position: relative;
    top: 0;
    left: 0;
  }

  .comments .comment-list ul li .author-meta .nickname,
  .comments .comment-list ul li .author-meta .date {
    display: block;
    float: none;
    line-height: 1.5;
  }

  .comments .comment-list ul li .author-meta .date {
    margin-left: 0;
    margin-top: 2px;
  }

  .comments .comment-list ul li .author-meta .date::before {
    display: none;
  }

  .comments .comment-list ul li p {
    margin: 14px 0 0;
  }

  .comments .comment-list ul li .control {
    position: relative;
    top: auto;
    right: auto;
    display: block;
    margin: 9px 0 18px -2px;
  }

  .comments .comment-form input[type=text],
  .comments .comment-form input[type=password] {
    width: 100px;
  }

  .comments .comment-form .field .secret {
    margin-left: 0;
  }

  .comments .comment-form .field .submit {
    display: block;
    float: none;
    margin: 60px auto 0;
  }
}

/* ══════════════════════════════════════════
   28. 댓글 영역 (Comment)
   ══════════════════════════════════════════
   원본 CSS에 #666, #999, #e6e6e6 등 하드코딩되어 있어
   다크모드에서 전혀 안 보이는 문제. 변수로 전면 덮어쓰기.
   ══════════════════════════════════════════ */

/* 방명록 래퍼 */
#tt-body-guestbook .tt-comment-cont {
  max-width: 860px;
  margin: 50px auto;
}

.comments {
  max-width: 860px;
  margin: 0 auto 60px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--hot-border-default);
  transition: var(--hot-transition-color);
}

.comments h2 {
  font-weight: 400;
  font-size: 1em;
  color: var(--hot-text-primary);
}

.comments .comment-list {
  font-size: 16px;
  margin-bottom: 6px;
  overflow: hidden;
}

.comments .comment-list ul li {
  padding: 30px 0 25px;
  border-top: 1px solid var(--hot-border-default);
  position: relative;
  min-height: 48px;
}

.comments .comment-list ul li:first-child {
  border: none;
}

.comments .comment-list ul li ul li {
  padding: 26px 0 0 60px;
  border-top: 0;
  border-bottom: 0;
}

/* 댓글 작성자 메타 */
.comments .comment-list ul li .author-meta {
  position: absolute;
  overflow: hidden;
  top: 30px;
  height: 48px;
  left: 0;
  right: 0;
  padding: 4px 0 0 60px;
}

.comments .comment-list ul li ul li .author-meta {
  top: 26px;
  left: 60px;
}

.comments .comment-list ul li .author-meta .avatar {
  position: absolute;
  left: 0;
  top: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.comments .comment-list ul li .author-meta span {
  display: inline-block;
}

.comments .comment-list ul li .author-meta a {
  text-decoration: none;
  color: var(--hot-text-primary);
}

.comments .comment-list ul li .author-meta .nickname {
  float: left;
  font-size: 0.875em;
  font-weight: 600;
  line-height: 20px;
  color: var(--hot-text-primary);
}

.comments .comment-list ul li .author-meta .nickname .tistoryProfileLayerTrigger {
  margin-bottom: 3px;
  margin-right: 0;
  vertical-align: bottom;
}

.comments .comment-list ul li .author-meta .date {
  float: left;
  margin-left: 10px;
  font-size: 0.75em;
  color: var(--hot-text-muted);
  line-height: 20px;
}

.comments .comment-list ul li .author-meta .date:before,
.comments .comment-list ul li .author-meta .date a:before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 9px;
  margin-right: 10px;
  background-color: var(--hot-border-default);
}

.comments .comment-list ul li .author-meta .date a {
  margin-left: 10px;
  color: var(--hot-text-muted);
}

.comments .comment-list ul li .control {
  position: absolute;
  top: 33px;
  right: 0;
}

.comments .comment-list ul li ul li .control {
  top: 29px;
}

.comments .comment-list ul li .control a {
  margin: 0 2px;
  text-decoration: none;
  font-size: 12px;
  color: var(--hot-text-muted);
}

.comments .comment-list ul li .control a:hover {
  color: var(--hot-accent);
}

/* ── 댓글 본문 — 핵심 가독성 영역 ── */
.comments .comment-list ul li p {
  position: relative;
  margin: 29px 0 0 60px;
  font-size: 0.875em;
  line-height: 1.5714;
  color: var(--hot-text-secondary);
}

/* ── 댓글 작성 폼 ── */
.comments .comment-form .field {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin-bottom: 8px;
}

.comments .comment-form input[type=text],
.comments .comment-form input[type=password],
.comments .comment-form textarea {
  border: 1px solid var(--hot-border-default);
  font-size: 0.9375em;
  line-height: 1.25;
  color: var(--hot-text-secondary);
  background-color: var(--hot-bg-surface);
  transition: var(--hot-transition-color);
}

.comments .comment-form input[type=text]:focus,
.comments .comment-form input[type=password]:focus,
.comments .comment-form textarea:focus {
  border-color: var(--hot-accent);
  outline: none;
}

.comments .comment-form input[type=text],
.comments .comment-form input[type=password] {
  width: 140px;
  height: 52px;
  margin-right: 6px;
  padding: 10px;
  box-sizing: border-box;
}

.comments .comment-form input::-webkit-input-placeholder,
.comments .comment-form textarea::-webkit-input-placeholder {
  color: var(--hot-text-muted);
}

.comments .comment-form textarea {
  display: block;
  width: 100%;
  margin-bottom: 10px;
  padding: 10px;
  resize: none;
  box-sizing: border-box;
}

.comments .comment-form .field .secret {
  display: inline-block;
  margin-left: 15px;
  vertical-align: middle;
}

.comments .comment-form .field .secret input {
  display: none;
}

.comments .comment-form .field .secret label {
  font-size: 0.8125em;
  line-height: 52px;
  color: var(--hot-text-tertiary);
  outline: none;
  cursor: pointer;
}

.comments .comment-form .field .secret label:before {
  content: "";
  display: inline-block;
  width: 19px;
  height: 18px;
  margin-right: 9px;
  border: 1px solid var(--hot-border-default);
  vertical-align: middle;
  background-color: var(--hot-bg-surface);
}

.comments .comment-form .field .secret input[type=checkbox]:checked+label:before {
  background-image: url(./images/ico_package.png);
  background-repeat: no-repeat;
  background-position: -150px -100px;
}

.comments .comment-form .field .submit {
  float: right;
}

/* ══════════════════════════════════════════
   28-B. 티스토리 내장 댓글 (tt-comment-cont)
   ══════════════════════════════════════════ */
.guest_inner .tt-comment-cont {
  padding-top: 40px;
}

.tt-comment-cont .tt-box-total .tt_txt_g {
  font-size: 14px;
  color: var(--hot-text-tertiary);
}

.tt-comment-cont .tt-box-total .tt_num_g {
  font-size: 14px;
  color: var(--hot-text-primary);
}

.tt-comment-cont .tt-wrap-cmt .tt-link-user {
  font-size: 14px;
  color: var(--hot-text-primary) !important;
}

.tt-comment-cont .tt-wrap-cmt .tt_desc {
  font-size: 14px;
  color: var(--hot-text-secondary) !important;
}

.tt-comment-cont .tt-txt-mention {
  color: var(--hot-accent) !important;
}

.tt-comment-cont .tt-btn_register {
  width: 158px;
  height: 50px;
  background-color: var(--hot-bg-surface);
  color: var(--hot-text-primary);
  border-radius: 0;
  border-color: var(--hot-border-default);
  transition: var(--hot-transition-color);
}

.tt-comment-cont .tt-btn_register:hover,
.tt-comment-cont .tt-btn_register:focus {
  background-color: var(--hot-accent);
  border-color: var(--hot-accent);
  color: var(--hot-text-on-accent);
}

/* 내장 댓글 입력 영역 */
.tt-comment-cont .tt-area-write textarea,
.tt-comment-cont .tt-area-write input {
  background-color: var(--hot-bg-surface) !important;
  color: var(--hot-text-secondary) !important;
  border-color: var(--hot-border-default) !important;
}

.tt-comment-cont .tt-area-write textarea:focus,
.tt-comment-cont .tt-area-write input:focus {
  border-color: var(--hot-accent) !important;
}

/* 내장 댓글 목록 텍스트 */
.tt-comment-cont .tt-wrap-cmt {
  border-color: var(--hot-border-default) !important;
}

.tt-comment-cont .tt-list-cmt .tt-wrap-cmt .tt-box-meta .tt-txt-date {
  color: var(--hot-text-muted) !important;
}

.tt-comment-cont .tt-list-cmt .tt-wrap-cmt .tt-box-meta a {
  color: var(--hot-text-muted) !important;
}

.tt-comment-cont .tt-list-cmt .tt-wrap-cmt .tt-box-meta a:hover {
  color: var(--hot-accent) !important;
}

/* ══════════════════════════════════════════
   28-C. #article-view 기본 스타일
   ══════════════════════════════════════════
   티스토리가 자체 주입하는 #article-view 규칙의
   하드코딩 색상(color: #333)을 변수로 덮어쓰기.
   ══════════════════════════════════════════ */
#article-view {
  color: var(--hot-text-secondary) !important;
}

#article-view h2[data-ke-size],
#article-view h3[data-ke-size],
#article-view h4[data-ke-size] {
  color: var(--hot-text-primary) !important;
}

#article-view p,
#article-view div,
#article-view span,
#article-view li,
#article-view td,
#article-view th,
#article-view font,
#article-view b,
#article-view i,
#article-view em,
#article-view strong {
  color: var(--hot-text-secondary) !important;
}

#article-view a {
  color: var(--hot-accent) !important;
}

#article-view a:hover {
  color: var(--hot-accent-hover) !important;
}

#article-view blockquote,
#article-view blockquote p,
#article-view blockquote span {
  color: var(--hot-text-tertiary) !important;
}

/* ══════════════════════════════════════════
   28-D. 기타 (dimmed 오버레이, 광고 래퍼)
   ══════════════════════════════════════════ */
#dimmed {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 300;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.43);
}

.revenue_unit_wrap.position_list {
  max-width: 860px;
  margin: 30px auto;
}

/* ══════════════════════════════════════════
   29. 스크롤바 커스텀
   ══════════════════════════════════════════ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--hot-bg-base); }
::-webkit-scrollbar-thumb { background: var(--hot-accent); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--hot-accent-hover); }

/* ── 29. 선택 영역 커스텀 ── */
::selection { background-color: var(--hot-accent-soft); color: var(--hot-accent); }