@charset "utf-8";

/*
 * AI JAVAPARK - Developer Theme v1.0
 *
 * CSS CONTENTS:
 *
 * 01. Web Font
 * 02. Type Selector Reset
 * 03. Accessibility Navigation
 * 04. Layout Selector
 * 05. Components
 * 06. Entry Content
 * 07. Comment
 * 08. Widget & Template Page
 * 09. ETC
 * 10. Post Type & Color Type
 * 11. Retina Display
 * 12. Media Screen - Tablet
 * 13. Media Screen - Mobile
 *
 */

/* ─── Design Tokens ─────────────────────────────── */
:root {
  --bg:          #ffffff;
  --surface:     #f8fafc;
  --border:      #e2e8f0;
  --border-dark: #cbd5e1;
  --text:        #0f172a;
  --text-muted:  #64748b;
  --text-light:  #94a3b8;
  --accent:      #0ea5e9;
  --accent-dark: #0284c7;
  --code-bg:     #0f172a;
  --code-text:   #e2e8f0;
  --tag-bg:      #f1f5f9;
  --radius:      6px;
  --max-w:       860px;
  --max-w-wide:  960px;
}

/* ─── 01. Web Font ───────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&family=Nanum+Gothic+Coding&display=swap');

/* ─── 02. Type Selector Reset ────────────────────── */
body {
  font-weight: 400;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1em;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 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;
}

/* ─── 03. 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: 600;
  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(--accent);
  color: #fff;
  z-index: 1000;
}

/* ─── 04. Layout Selector ────────────────────────── */
#wrap {
  max-width: 1200px;
  margin: 0 auto;
}

#header {
  position: relative;
  width: 100%;
  border-bottom: 1px solid var(--border);
  background-color: var(--bg);
}

#header h1 {
  padding: 22px 0;
  text-align: center;
  font-size: 1.25em;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text);
}

#header h1 a {
  display: inline-block;
  text-decoration: none;
  vertical-align: top;
  color: var(--text);
  transition: color 0.15s ease;
}

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

/* ── Mobile menu (hamburger) ── */
#header .mobile-menu {
  position: absolute;
  top: 14px;
  left: 20px;
  z-index: 500;
  width: 40px;
  height: 40px;
  outline: none;
}

#header .mobile-menu span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 1.5px;
  margin: -1.5px 0 0 -11px;
  background-color: var(--text);
  text-indent: -999em;
}

#header .mobile-menu:before,
#header .mobile-menu:after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 1.5px;
  margin-left: -11px;
  background-color: var(--text);
}

#header .mobile-menu:before { margin-top: -8px; }
#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: -1px;
}

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

/* ── Side drawer menu ── */
#header .menu {
  position: fixed;
  top: 0;
  left: -300px;
  z-index: 400;
  width: 300px;
  height: 100%;
  padding: 80px 32px 160px;
  background-color: var(--bg);
  border-right: 1px solid var(--border);
  box-shadow: 4px 0 24px rgba(15,23,42,0.08);
  box-sizing: border-box;
  transition: left 0.3s cubic-bezier(0.4,0,0.2,1);
}

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

#header .menu p {
  position: absolute;
  left: 32px;
  bottom: 60px;
  font-size: 0.75em;
  color: var(--text-light);
  letter-spacing: 0.05em;
}

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

/* ── Search ── */
#header .search {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 0;
  padding-right: 40px;
}

#header .search input {
  display: none;
  width: 100%;
  height: 40px;
  padding: 0 10px;
  font-size: 0.9375em;
  line-height: 40px;
  color: var(--text);
  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;
}

#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;
  opacity: 0.5;
  transition: opacity 0.15s ease;
}

#header .search:hover:before {
  opacity: 1;
}

#header .search.on {
  width: 280px;
  border-bottom: 1.5px solid var(--accent);
}

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

#header .search.on button {
  display: block;
}

#header .search.on:before {
  display: none;
}

/* ── Global Nav ── */
#gnb {
  overflow: auto;
  height: 100%;
  margin-bottom: 8px;
}

#gnb ul li {
  margin-bottom: 4px;
  font-size: 1em;
  line-height: 1.6;
}

#gnb ul li a {
  display: block;
  padding: 4px 0;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  transition: color 0.15s ease;
}

#gnb ul li ul li ul li a.link_sub_item {
  color: var(--text-muted);
}

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

#gnb ul li ul {
  margin: 16px 0 0;
}

#gnb ul li ul li {
  font-size: 0.9375em;
}

#gnb ul li ul li ul {
  margin: 4px 0 10px;
}

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

#gnb ul li ul li ul li a:before {
  content: "–";
  margin-right: 6px;
  color: var(--text-light);
}

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

/* ── Inner / Footer ── */
#content .inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
}

#content>.inner {
  max-width: var(--max-w);
}

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

#footer {
  position: relative;
  padding: 28px 0;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}

#footer p {
  text-align: center;
  font-size: 0.75em;
  color: var(--text-light);
  letter-spacing: 0.02em;
}

#footer p a {
  text-decoration: none;
  color: var(--text-light);
  transition: color 0.15s ease;
}

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

#footer .admin {
  color: var(--text-muted);
}

#footer .admin:before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 12px;
  margin: 0 8px;
  background-color: var(--border);
  vertical-align: middle;
}

#tt-body-index #footer {
  border-top: 0;
}

/* ─── 05. Components ─────────────────────────────── */
.social-link a {
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  text-indent: -999em;
  background-image: url(./images/ico_package.png);
  background-repeat: no-repeat;
  vertical-align: top;
  opacity: 0.5;
  transition: opacity 0.15s ease;
}

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

.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: 140px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.875em;
  font-weight: 500;
  line-height: 44px;
  text-align: center;
  color: var(--text-muted);
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ── Cover: Thumbnail List ── */
.cover-thumbnail-list {
  margin: 0 auto -1px;
  padding: 40px 0 56px;
  border-bottom: 1px solid var(--border);
}

.cover-thumbnail-list h2 {
  margin-bottom: 24px;
  font-size: 0.875em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.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(--text);
}

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

.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;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  font-size: 0.75em;
  color: var(--text-light);
  letter-spacing: 0.1em;
}

.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 ease;
}

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

.cover-thumbnail-list ul li .category {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 0.75em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--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;
  font-weight: 600;
  font-size: 0.9375em;
  line-height: 1.45em;
  color: var(--text);
}

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

.cover-thumbnail-list ul li .date {
  display: block;
  margin-top: 6px;
  font-size: 0.75em;
  color: var(--text-light);
}

/* ── Cover: Slider ── */
.cover-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  background-color: var(--code-bg);
}

.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-color: rgba(15,23,42,0.5);
  text-decoration: none;
  color: #fff;
  vertical-align: middle;
}

.cover-slider ul li .category {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 0.75em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom: 1.5px solid var(--accent);
  color: var(--accent);
  padding-bottom: 2px;
}

.cover-slider ul li .title {
  display: block;
  max-width: 580px;
  margin: 0 auto 28px;
  font-size: 2.25em;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.cover-slider ul li .btn {
  border-color: rgba(255,255,255,0.4);
  color: #fff;
}

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

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

.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(255,255,255,0.1);
  opacity: 1;
}

/* ── Cover: Masonry ── */
.cover-masonry {
  margin-bottom: -1px;
  padding: 60px 0 49px;
  border-bottom: 1px solid var(--border);
}

.cover-masonry h2 {
  margin-bottom: 28px;
  font-size: 0.875em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

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

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

.cover-masonry ul li a {
  display: block;
  text-decoration: none;
  color: var(--text);
}

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

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

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

.cover-masonry ul li .category {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 0.75em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.cover-masonry ul li .title {
  display: block;
  font-weight: 600;
  font-size: 1.0625em;
  line-height: 1.45;
  color: var(--text);
}

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

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

/* ── Cover: List ── */
.cover-list {
  margin-bottom: -1px;
  padding: 30px 0 60px;
  border-bottom: 1px solid var(--border);
}

.cover-list h2 {
  margin: 28px 0 0;
  font-size: 0.875em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.cover-list ul li {
  border-top: 1px solid var(--border);
}

.cover-list ul li:first-child { border-top: 0; }

.cover-list ul li a {
  display: block;
  min-height: 160px;
  padding: 28px 0;
  text-decoration: none;
  color: var(--text);
  transition: color 0.15s ease;
}

.cover-list ul li figure {
  float: right;
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0 0 0 64px;
  background-color: var(--surface);
  border-radius: var(--radius);
  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;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75em;
  color: var(--text-light);
  letter-spacing: 0.08em;
}

.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: 8px;
  font-size: 0.75em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.cover-list ul li .title {
  display: block;
  font-weight: 600;
  font-size: 1.0625em;
  line-height: 1.45;
  color: var(--text);
}

.cover-list ul li a:hover .title {
  color: var(--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;
  margin-top: 6px;
  font-size: 0.9em;
  line-height: 1.6;
  color: var(--text-muted);
}

.cover-list ul li .date {
  display: block;
  margin-top: 8px;
  font-size: 0.8125em;
  color: var(--text-light);
}

/* ── Cover: Gallery ── */
.cover-gallery {
  margin: 0 auto -1px;
  padding: 60px 0 75px;
  border-bottom: 1px solid var(--border);
}

.cover-gallery h2 {
  margin-bottom: 28px;
  font-size: 0.875em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

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

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

.cover-gallery ul li a {
  display: block;
  position: relative;
  width: 100%;
  background-color: var(--surface);
  border-radius: var(--radius);
  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-size: 0.9375em;
  font-weight: 600;
  line-height: 1.4;
  padding: 0 16px;
  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-color: rgba(15,23,42,0.55);
}

.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;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75em;
  color: var(--text-light);
  letter-spacing: 0.08em;
}

.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;
}

/* ── Cover: Footer ── */
.cover-footer {
  position: relative;
  z-index: 10;
  text-align: center;
}

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

.cover-footer p {
  margin: -4px 0 16px;
  text-align: center;
  font-weight: 600;
  font-size: 1.125em;
  color: var(--text);
}

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

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

.cover-footer .menu ul li a {
  display: block;
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.15s ease;
}

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

.cover-footer p:first-child {
  margin-top: 60px;
}

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

/* ── Post Header (list view top) ── */
.post-header {
  position: relative;
  overflow: hidden;
  max-width: var(--max-w);
  margin: 0 auto 28px;
  padding: 48px 0 14px;
  border-bottom: 1px solid var(--border);
}

.post-header h1 {
  float: left;
  font-size: 0.875em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.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;
  opacity: 0.4;
  transition: opacity 0.15s ease;
}

.post-header .list-type button:hover {
  opacity: 1;
  background-color: transparent;
}

.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; }

/* ── Post Item (list) ── */
.post-item {
  overflow: hidden;
  width: 100%;
  border-bottom: 1px solid var(--border);
  transition: background-color 0.15s ease;
}

.post-item a {
  display: block;
  min-height: 132px;
  padding: 28px 0;
  text-decoration: none;
  color: var(--text);
}

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

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

.post-item .thum {
  float: right;
  overflow: hidden;
  max-width: 148px;
  margin-left: 64px;
  border-radius: var(--radius);
}

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

.post-item .category {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 0.75em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.post-item .title {
  display: block;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: 2.8em;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 1.0625em;
  line-height: 1.45;
  color: var(--text);
  transition: color 0.15s ease;
}

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

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

.post-item .date {
  display: block;
  margin-top: 8px;
  font-size: 0.8125em;
  color: var(--text-light);
}

/* ── Pagination ── */
.pagination {
  max-width: var(--max-w);
  margin: 56px auto 120px;
  text-align: center;
}

.pagination .current {
  display: none;
}

.pagination .view-more {
  display: inline-block;
  width: 140px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.875em;
  font-weight: 500;
  line-height: 44px;
  color: var(--text-muted);
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.pagination .view-more:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: none;
}

.pagination a {
  display: inline-block;
  width: 32px;
  height: 32px;
  margin: 0 2px;
  text-decoration: none;
  font-size: 0.875em;
  font-weight: 500;
  line-height: 32px;
  color: var(--text-muted);
  vertical-align: middle;
  border-radius: var(--radius);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.pagination a:hover {
  background-color: var(--surface);
  color: var(--text);
}

.pagination .selected {
  color: var(--accent);
  font-weight: 700;
}

.pagination .prev,
.pagination .next {
  width: 44px;
  height: 44px;
  background-image: url(./images/ico_package.png);
  background-repeat: no-repeat;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-indent: -999em;
  vertical-align: middle;
  box-sizing: border-box;
  opacity: 0.5;
  transition: opacity 0.15s ease, border-color 0.15s ease;
}

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

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

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

/* ── Post Header (single view) ── */
.hgroup {
  max-width: var(--max-w);
  margin: 48px auto 40px;
  padding: 0 0 24px;
  border-bottom: 1px solid var(--border);
}

.hgroup .category {
  display: inline-block;
  margin-bottom: 12px;
  padding-top: 2px;
  font-size: 0.75em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.hgroup h1 {
  display: block;
  margin-bottom: 12px;
  font-weight: 700;
  font-size: 1.75em;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--text);
}

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

.hgroup .post-meta a {
  text-decoration: none;
  color: var(--text-light);
  transition: color 0.15s ease;
}

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

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

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

/* ── Another category ── */
.another_category {
  margin: 56px auto 72px;
  padding: 0 !important;
  border: 0 !important;
}

.another_category h4 {
  margin-bottom: 24px;
  font-weight: 600;
  font-size: 0.875em !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

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

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

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

.another_category table th a {
  text-decoration: none;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.another_category table th a:hover {
  color: var(--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(--text-light);
}

/* ── Tags ── */
.tags {
  position: relative;
  overflow: hidden;
  max-width: var(--max-w);
  margin: 48px auto;
  padding: 20px 0 20px 60px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  box-sizing: border-box;
}

.tags h2 {
  float: left;
  width: 60px;
  margin-left: -60px;
  font-weight: 600;
  font-size: 0.8125em;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  line-height: 1.8;
}

.tags .items a {
  display: inline-block;
  margin: 2px 4px 2px 0;
  padding: 3px 10px;
  text-decoration: none;
  font-size: 0.8125em;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text-muted);
  background-color: var(--tag-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  transition: all 0.15s ease;
}

.tags .items a:hover {
  color: var(--accent);
  border-color: var(--accent);
  background-color: rgba(14,165,233,0.06);
}

.tags .items a:before {
  content: "#";
  color: var(--text-light);
  margin-right: 1px;
}

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

.related-articles h2 {
  margin-bottom: 24px;
  font-weight: 600;
  font-size: 0.875em;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.related-articles h2 em {
  border-bottom: 1.5px solid var(--accent);
  font-style: normal;
  color: var(--text);
}

.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(--text);
}

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

.related-articles ul li .thum {
  display: block;
  position: relative;
  overflow: hidden;
  height: 0;
  margin-bottom: 10px;
  padding-bottom: 75.76%;
  background-color: var(--surface);
  border-radius: var(--radius);
}

.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;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75em;
  color: var(--text-light);
  letter-spacing: 0.08em;
}

.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 ease;
}

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

.related-articles ul li .category {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 0.75em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.related-articles ul li .title {
  display: block;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: 2.75em;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.9375em;
  line-height: 1.45;
  color: var(--text);
  transition: color 0.15s ease;
}

.related-articles ul li .date {
  display: block;
  font-size: 0.8125em;
  color: var(--text-light);
}

/* ─── 06. Entry Content ──────────────────────────── */
.entry-content {
  max-width: var(--max-w);
  margin: 0 auto;
  font-size: 1.0625em;
  line-height: 1.8;
  color: var(--text);
  word-break: keep-all;
  overflow-wrap: break-word;
}

.entry-content h1 {
  margin: 52px 0 18px;
  font-size: 1.625em;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.entry-content h2 {
  margin: 48px 0 16px;
  font-size: 1.375em;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.entry-content h3 {
  margin: 40px 0 14px;
  font-weight: 700;
  font-size: 1.125em;
  line-height: 1.4;
}

.entry-content h4 {
  margin: 32px 0 12px;
  font-weight: 600;
  font-size: 1em;
  line-height: 1.5;
  color: var(--text-muted);
}

.entry-content p {
  margin-bottom: 1.25em;
}

.entry-content p img {
  max-width: 100%;
  height: auto;
  margin-top: 24px;
  border-radius: var(--radius);
}

.entry-content hr {
  display: block;
  height: 0;
  border: 0;
  border-bottom: 1px solid var(--border);
  margin: 40px 0;
}

/* ── Code blocks ── */
.entry-content pre {
  word-break: break-word;
  white-space: pre-wrap;
  word-wrap: break-word;
  background-color: var(--code-bg);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0 28px;
  overflow-x: auto;
}

.entry-content pre code {
  font-family: 'JetBrains Mono', 'Fira Code', 'D2Coding', 'Nanum Gothic Coding', Consolas, monospace;
  font-size: 0.9em;
  color: var(--code-text);
  background: none;
  padding: 0;
  border-radius: 0;
}

.entry-content pre code.hljs {
  padding: 0;
  background: none;
}

.entry-content code {
  font-family: 'JetBrains Mono', 'Fira Code', 'D2Coding', 'Nanum Gothic Coding', Consolas, monospace;
  font-size: 0.875em;
  background-color: var(--surface);
  color: var(--accent);
  border: none;
  border-radius: 4px;
  padding: 2px 6px;
}

/* ── Lists ── */
.entry-content ul,
.entry-content ol {
  margin: 0 0 1.5em 1.25em;
  padding: 0;
}

.entry-content ul {
  list-style: none;
}

.entry-content ul li {
  position: relative;
  padding-left: 1.25em;
  text-indent: 0;
  margin-bottom: 0.4em;
  list-style: none;
}

.entry-content ul li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.entry-content ol {
  list-style: decimal;
}

.entry-content ol li {
  position: relative;
  padding-left: 0.25em;
  text-indent: 0;
  margin-bottom: 0.4em;
  list-style: decimal;
}

/* ── Links ── */
.entry-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s ease;
}

.entry-content a:hover {
  color: var(--accent-dark);
}

/* ── Images ── */
.entry-content img.alignleft {
  float: left;
  margin: 0 24px 16px 0;
}

.entry-content img.aligncenter {
  display: block;
  margin: 0 auto 16px;
}

.entry-content img.alignright {
  float: right;
  margin: 0 0 16px 24px;
}

/* ── Blockquote ── */
.entry-content blockquote {
  margin: 24px 0 32px;
  padding: 16px 20px;
  border-left: 3px solid var(--accent);
  background-color: rgba(14,165,233,0.04);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-muted);
}

.entry-content blockquote p {
  margin: 16px 0 0;
}

.entry-content blockquote p:first-child {
  margin-top: 0;
}

/* ── Table ── */
.entry-content table {
  width: 100%;
  margin-bottom: 24px;
  border-collapse: collapse;
  font-size: 0.9375em;
}

.entry-content table thead th {
  padding: 10px 12px;
  border-bottom: 2px solid var(--border-dark);
  text-align: left;
  font-weight: 600;
  color: var(--text);
}

.entry-content table tbody td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}

.entry-content table tbody tr:last-child td {
  border-bottom: 0;
}

/* ── Form input ── */
.entry-content input {
  display: inline-block;
  height: 40px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.875em;
  line-height: 1.25;
  color: var(--text);
  box-sizing: border-box;
  vertical-align: middle;
  transition: border-color 0.15s ease;
}

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

/* ── Protected form ── */
.entry-content .protected_form {
  margin-bottom: 40px;
  padding: 100px 0 160px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.entry-content .protected_form p:before {
  content: "";
  display: block;
  width: 64px;
  height: 84px;
  margin: 0 auto 28px;
  background: url(./images/ico_package.png) no-repeat -50px -100px;
}

.entry-content .protected_form input {
  width: 220px;
  height: 48px;
  margin-bottom: 10px;
  background-color: transparent;
  vertical-align: top;
}

.entry-content .cap1 {
  text-align: center;
  font-size: 0.875em;
  font-style: italic;
  color: var(--text-muted);
}

/* ─── 07. Comment ────────────────────────────────── */
#tt-body-guestbook .tt-comment-cont {
  max-width: var(--max-w);
  margin: 48px auto;
}

.comments {
  max-width: var(--max-w);
  margin: 0 auto 56px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.comments h2 {
  font-weight: 600;
  font-size: 0.875em;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

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

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

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

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

.comments .comment-list ul li .author-meta {
  position: absolute;
  overflow: hidden;
  top: 24px;
  height: 48px;
  left: 0;
  right: 0;
  padding: 4px 0 0 60px;
}

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

.comments .comment-list ul li .author-meta .avatar {
  position: absolute;
  left: 0;
  top: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--border);
}

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

.comments .comment-list ul li .author-meta a {
  text-decoration: none;
  color: var(--text);
  transition: color 0.15s ease;
}

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

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

.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(--text-light);
  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: 8px;
  background-color: var(--border);
}

.comments .comment-list ul li .author-meta .date a {
  margin-left: 8px;
}

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

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

.comments .comment-list ul li .control a {
  margin: 0 2px;
  text-decoration: none;
  font-size: 0.75em;
  color: var(--text-light);
  transition: color 0.15s ease;
}

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

.comments .comment-list ul li p {
  position: relative;
  margin: 24px 0 0 60px;
  font-size: 0.9375em;
  line-height: 1.65;
  color: var(--text-muted);
}

.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(--border);
  border-radius: var(--radius);
  font-size: 0.9375em;
  line-height: 1.4;
  color: var(--text);
  background-color: var(--bg);
  transition: border-color 0.15s ease;
}

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

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

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

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

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

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

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

.comments .comment-form .field .secret label:before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  border: 1px solid var(--border);
  border-radius: 3px;
  vertical-align: middle;
  background-color: var(--bg);
  transition: border-color 0.15s ease;
}

.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;
  border-color: var(--accent);
}

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

/* ─── 08. Widget & Template Page ─────────────────── */

/* ─── 09. ETC ────────────────────────────────────── */
#dimmed {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 300;
  width: 100%;
  height: 100%;
  background-color: rgba(15,23,42,0.45);
  backdrop-filter: blur(2px);
}

/* ─── 10. Post Type & Color Type ─────────────────── */

/* ── Thumbnail post type ── */
.post-type-thumbnail .post-item {
  float: left;
  width: 24.0625%;
  margin: 0 0 48px;
  padding-left: 1.25%;
  border: 0;
}

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

.post-type-thumbnail .post-item a {
  padding: 0;
}

.post-type-thumbnail .post-item .thum {
  display: block;
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: none;
  height: 0;
  margin: 0 0 9px;
  padding-bottom: 75.76%;
  background-color: var(--surface);
  border-radius: var(--radius);
}

.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;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75em;
  color: var(--text-light);
  letter-spacing: 0.08em;
}

.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 ease;
}

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

.post-type-thumbnail .post-item .title {
  display: block;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  width: 100%;
  height: 2.75em;
  font-weight: 600;
  font-size: 0.9375em;
  line-height: 1.375em;
  color: var(--text);
}

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

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

/* ── Color Type: chocolate (kept for Tistory compatibility) ── */
.color-chocolate,
.color-chocolate .cover-footer,
.color-chocolate #footer {
  background-color: #f8f4f0;
}

.color-chocolate #header h1 a,
.color-chocolate #gnb ul li a,
.color-chocolate #footer .admin,
.color-chocolate .cover-thumbnail-list ul li a,
.color-chocolate .cover-masonry ul li a,
.color-chocolate .cover-list ul li a,
.color-chocolate .cover-footer p,
.color-chocolate .cover-footer .menu ul li a,
.color-chocolate .post-item a,
.color-chocolate .hgroup h1,
.color-chocolate .hgroup .post-meta a,
.color-chocolate .entry-content h1,
.color-chocolate .entry-content h2,
.color-chocolate .entry-content h3,
.color-chocolate .entry-content h4,
.color-chocolate .entry-content a,
.color-chocolate .related-articles ul li a,
.color-chocolate .comments .comment-list ul li .author-meta span,
.color-chocolate .comments .comment-list ul li .author-meta .date a,
.color-chocolate .pagination .selected {
  color: #5c3d2e;
}

.color-chocolate #header .menu p,
.color-chocolate #footer p,
.color-chocolate .cover-thumbnail-list ul li .date,
.color-chocolate .cover-masonry ul li .excerpt,
.color-chocolate .cover-list ul li .excerpt,
.color-chocolate .cover-list ul li .date,
.color-chocolate .post-item .excerpt,
.color-chocolate .post-item .date,
.color-chocolate .hgroup .post-meta,
.color-chocolate .another-category td,
.color-chocolate .tags .items a,
.color-chocolate .related-articles ul li .date,
.color-chocolate .comments .comment-list ul li .author-meta .date,
.color-chocolate .comments .comment-list ul li .author-meta .control a {
  color: #a0857a;
}

.color-chocolate .cover-thumbnail-list ul li .category,
.color-chocolate .cover-masonry ul li .category,
.color-chocolate .hgroup .category {
  color: #8b6155;
  border-color: #a0857a;
}

.color-chocolate .entry-content p,
.color-chocolate .entry-content table,
.color-chocolate .entry-content ul li,
.color-chocolate .entry-content ol li,
.color-chocolate .another-category table,
.color-chocolate .another-category table th a,
.color-chocolate .comments .comment-list ul li p {
  color: #7a5c52;
}

.color-chocolate #gnb ul li a:hover,
.color-chocolate .cover-footer .menu ul li a:hover,
.color-chocolate .cover-thumbnail-list ul li a:hover .title,
.color-chocolate .cover-masonry ul li a:hover .title,
.color-chocolate .cover-list ul li a:hover .title,
.color-chocolate .post-item a:hover .title,
.color-chocolate .related-articles ul li a:hover .title {
  color: #3b1f15;
}

.color-chocolate .entry-content ul li:before {
  background-color: #a0857a;
}

.color-chocolate #header .mobile-menu:before,
.color-chocolate #header .mobile-menu:after,
.color-chocolate #header .mobile-menu span {
  background-color: #5c3d2e;
}

.color-chocolate .pagination a:hover,
.color-chocolate #header .search:hover:before {
  background-color: #ede5e0;
}

.color-chocolate .btn,
.color-chocolate .cover-list ul li,
.color-chocolate .post-item,
.color-chocolate .hgroup,
.color-chocolate .entry-content table,
.color-chocolate .entry-content table thead th,
.color-chocolate .entry-content table tbody td,
.color-chocolate .entry-content blockquote,
.color-chocolate .comments,
.color-chocolate .comments .comment-list ul li,
.color-chocolate .comments .comment-form input[type=text],
.color-chocolate .comments .comment-form input[type=password],
.color-chocolate .comments .comment-form textarea,
.color-chocolate .comments .comment-form .field .secret label:before,
.color-chocolate .pagination .prev,
.color-chocolate .pagination .next,
.color-chocolate .pagination a {
  border-color: #ddd0c8;
}

.color-chocolate .social-link a,
.color-chocolate #header .search button,
.color-chocolate #header .search:before,
.color-chocolate .cover-thumbnail-list ul li .thum:before,
.color-chocolate .cover-gallery ul li a:before,
.color-chocolate .post-header .list-type button,
.color-chocolate .related-articles ul li .thum:before {
  background-image: url(./images/ico_package_chocolate.png);
}

.color-chocolate .btn:hover,
.color-chocolate .pagination .prev:hover,
.color-chocolate .pagination .next:hover {
  border-color: #5c3d2e;
}

.color-chocolate #header .search.on {
  border-color: #5c3d2e;
}

/* ─── 11. Retina Display ─────────────────────────── */
@media only screen and (-webkit-min-device-pixel-ratio:1.5) {

  #header .search button,
  #header .search:before,
  .social-link a,
  .cover-slider .prev,
  .cover-slider .next,
  .cover-gallery ul li a:before,
  .post-header .list-type button,
  .pagination .prev,
  .pagination .next,
  .comments .comment-form .field .secret input[type=checkbox]:checked+label:before {
    background-image: url(./images/ico_package_2x.png);
    background-size: 200px auto;
  }

  .color-chocolate .social-link a,
  .color-chocolate #header .search button,
  .color-chocolate .cover-gallery ul li a:before,
  .color-chocolate .post-header .list-type button {
    background-image: url(./images/ico_package_chocolate_2x.png);
    background-size: 200px auto;
  }
}

/* ─── 12. Media Screen - Tablet ──────────────────── */
@media screen and (max-width: 1023px) {
  #header .search.on {
    width: 200px;
  }

  #content .guest_inner,
  #content>.inner {
    padding: 0 40px;
  }

  .post-header {
    padding: 40px;
  }

  .cover-thumbnail-list {
    padding: 40px 40px 65px;
  }

  .cover-slider ul li .title {
    max-width: none;
    padding: 0 80px;
  }

  .cover-slider .prev {
    left: 14px;
    margin-left: 0;
  }

  .cover-slider .next {
    left: auto;
    right: 14px;
    margin-left: 0;
  }

  .cover-masonry {
    padding: 60px 40px 80px;
  }

  .cover-list {
    padding: 30px 40px 80px;
  }

  .cover-gallery {
    padding: 60px 40px 120px;
  }
}

/* ─── 13. Media Screen - Mobile ──────────────────── */
@media screen and (max-width: 767px) {
  #header .mobile-menu {
    top: 10px;
    left: 14px;
  }

  #header .menu {
    padding: 72px 24px 160px;
  }

  #header .menu .social-link,
  #header .menu p {
    left: 24px;
  }

  #header h1 {
    padding: 14px 62px;
    line-height: 1.3;
    font-size: 1.125em;
  }

  #header h1 a {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #header .search {
    top: 10px;
    right: 4px;
  }

  #header .search.on {
    position: absolute;
    top: 56px;
    left: 0;
    right: auto;
    z-index: 100;
    width: 100%;
    padding: 10px 16px;
    border: 0;
    border-bottom: 1.5px solid var(--accent);
    background-color: var(--bg);
    box-sizing: border-box;
  }

  #header .search.on input {
    border-bottom: 0;
  }

  #header .search.on button {
    top: -46px;
    right: 4px;
  }

  #content .guest_inner,
  #content>.inner {
    padding: 0 16px;
  }

  .post-header {
    padding: 20px 16px;
  }

  .cover-thumbnail-list {
    padding: 32px 16px 56px;
  }

  .cover-thumbnail-list ul li,
  .related-articles ul li {
    width: 48.5%;
    padding-left: 3%;
  }

  .cover-thumbnail-list ul li:nth-child(odd),
  .related-articles ul li:nth-child(odd) {
    clear: both;
    padding-left: 0;
  }

  .cover-slider ul li {
    width: 100%;
    box-sizing: border-box;
  }

  .cover-slider ul li .title {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: 5.2em;
    padding: 0 16px;
    font-size: 1.75em;
  }

  .cover-slider .prev {
    top: auto;
    bottom: 0;
    left: 0;
  }

  .cover-slider .next {
    top: auto;
    right: 0;
    bottom: 0;
  }

  .cover-masonry {
    padding: 48px 16px 64px;
  }

  .cover-masonry ul li {
    float: none;
    width: 100%;
  }

  .cover-masonry ul li .category,
  .cover-list ul li .category {
    margin-bottom: 6px;
  }

  .cover-thumbnail-list ul li .title,
  .related-articles ul li .title,
  .cover-list ul li .title {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: 4.2em;
    line-height: 1.4;
  }

  .cover-list {
    padding: 24px 16px 64px;
  }

  .cover-list h2 {
    margin: 24px 0 0;
  }

  .cover-list ul li a {
    min-height: 88px;
    padding: 20px 0;
  }

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

  .cover-list ul li .title {
    -webkit-line-clamp: 2;
    margin-bottom: 4px;
    padding-top: 4px;
    font-size: 0.9375em;
  }

  .cover-list ul li .category {
    display: none;
  }

  .cover-list ul li .excerpt {
    -webkit-line-clamp: 2;
    font-size: 0.8125em;
  }

  .cover-gallery {
    padding: 48px 16px 100px;
  }

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

  .hgroup {
    margin: 32px auto 28px;
    padding: 0 0 20px;
  }

  .hgroup h1 {
    font-size: 1.375em;
  }

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

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

  .tags {
    padding: 16px 0 16px 0;
  }

  .tags h2 {
    float: none;
    width: auto;
    margin: 0 0 10px;
  }

  .related-articles {
    margin: 32px 0 48px;
  }

  .related-articles ul li {
    float: none;
    width: 100%;
    padding: 0;
    margin-bottom: 16px;
  }

  .related-articles ul li .thum {
    display: none;
  }

  .entry-content h1 { font-size: 1.375em; }
  .entry-content h2 { font-size: 1.25em; }
  .entry-content h3 { font-size: 1.0625em; }

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

  .comments .comment-list ul li ul li {
    padding: 16px 0 0 48px;
  }
}
