@charset "utf-8";

/* =========================================================
   DESIGN TOKENS — Café-Inspired Tistory Theme
   ========================================================= */
:root {
  /* Greens */
  --c-brand: #006241;
  --c-accent: #00754A;
  --c-deep: #1E3932;
  --c-uplift: #2b5148;
  --c-green-light: #d4e9e2;

  /* Gold */
  --c-gold: #cba258;
  --c-gold-light: #dfc49d;
  --c-gold-lightest: #faf6ee;

  /* Surfaces */
  --c-white: #ffffff;
  --c-neutral-cool: #f9f9f9;
  --c-neutral-warm: #f2f0eb;
  --c-ceramic: #edebe9;
  --c-black: #000000;

  /* Text */
  --c-text-black: rgba(0, 0, 0, 0.87);
  --c-text-black-soft: rgba(0, 0, 0, 0.58);
  --c-text-white: rgba(255, 255, 255, 1);
  --c-text-white-soft: rgba(255, 255, 255, 0.70);
  --c-text-editorial: #33433d;

  /* Semantic */
  --c-red: #c82014;
  --c-yellow: #fbbc05;

  /* Spacing (anchored 1rem = 10px via root font-size 62.5%) */
  --space-1: 0.4rem;
  --space-2: 0.8rem;
  --space-3: 1.6rem;
  --space-4: 2.4rem;
  --space-5: 3.2rem;
  --space-6: 4rem;
  --space-7: 4.8rem;
  --space-8: 5.6rem;
  --space-9: 6.4rem;

  /* Gutters */
  --outer-gutter: 1.6rem;
  --outer-gutter-md: 2.4rem;
  --outer-gutter-lg: 4rem;

  /* Radii */
  --radius-card: 12px;
  --radius-pill: 50px;
  --radius-thumb: 8px;

  /* Shadows */
  --shadow-card: 0 0 0.5px rgba(0, 0, 0, 0.14), 0 1px 1px rgba(0, 0, 0, 0.24);
  --shadow-card-hover: 0 2px 4px rgba(0, 0, 0, 0.10), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-nav: 0 1px 3px rgba(0, 0, 0, 0.10), 0 2px 2px rgba(0, 0, 0, 0.06), 0 0 2px rgba(0, 0, 0, 0.07);
  --shadow-float-base: 0 0 6px rgba(0, 0, 0, 0.24);
  --shadow-float-ambient: 0 8px 12px rgba(0, 0, 0, 0.14);

  /* Motion */
  --t-fast: 0.2s ease;
  --t-expander: 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* Type */
  --font-sans: "Pretendard Variable", "Pretendard", "Inter", "Helvetica Neue",
    "Apple SD Gothic Neo", Arial, sans-serif;
  --font-serif: "Iowan Old Style", "Lora", "Source Serif Pro", Georgia, serif;
  --font-mono: "JetBrains Mono", "Fira Code", "SF Mono", Consolas, monospace;

  /* Layout */
  --nav-height: 64px;
  --sidebar-width: 320px;
}

@media (min-width: 480px) { :root { --nav-height: 72px; } }
@media (min-width: 768px) { :root { --nav-height: 83px; --outer-gutter: 2.4rem; } }
@media (min-width: 1024px) { :root { --nav-height: 99px; --outer-gutter: 4rem; } }

/* =========================================================
   RESET / BASELINE
   ========================================================= */
html {
  font-size: 62.5%; /* 1rem = 10px anchor */
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

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

body {
  font-family: var(--font-sans);
  font-size: 1.6rem;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--c-text-black);
  background-color: var(--c-neutral-warm);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

input, textarea, button, select {
  font-family: inherit;
  letter-spacing: -0.01em;
  outline: none;
}

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

a {
  color: var(--c-text-black);
  text-decoration: none;
  transition: color var(--t-fast);
}

a:hover { color: var(--c-accent); }

::selection {
  background: var(--c-accent);
  color: #fff;
}

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

.clear { clear: both; width: 100%; }

* { box-sizing: border-box; }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 7px 16px;
  min-height: 36px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: all var(--t-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn:active { transform: scale(0.95); }

.btn-primary {
  background: var(--c-accent);
  color: #fff;
  border-color: var(--c-accent);
}
.btn-primary:hover {
  background: var(--c-brand);
  border-color: var(--c-brand);
  color: #fff;
}

.btn-outlined {
  background: transparent;
  color: var(--c-text-black);
  border-color: rgba(0, 0, 0, 0.20);
}
.btn-outlined:hover {
  border-color: rgba(0, 0, 0, 0.40);
  color: var(--c-text-black);
}

/* Primary Outlined — Green Accent text + border on transparent fill.
   Used as a secondary green CTA (e.g. RSS button paired with the
   solid-fill subscribe button). */
.btn-brand-outlined {
  background: transparent;
  color: var(--c-accent);
  border-color: var(--c-accent);
}
.btn-brand-outlined:hover {
  background: rgba(0, 117, 74, 0.06);
  color: var(--c-brand);
  border-color: var(--c-brand);
}

/* Tistory subscribe button — we reuse the native btn_subscription markup
   so the platform's JS can wire up the kakao subscribe modal and update
   the live state (subscribed vs not). The native state markup
   (.txt_tool_id, .txt_state, .ico_check_type1) is hidden visually but
   kept in the DOM so the script can mutate it. Our own visible label
   (.ts-subscribe-label) is what the user actually sees. */
.btn_subscription .ts-subscribe-state {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  padding: 0;
  margin: -1px;
}

.btn_subscription .ts-subscribe-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* The native button class wants to set its own dimensions; reset them
   so .btn rules win consistently. */
button.btn_subscription.btn {
  font-family: inherit;
  text-align: center;
}

.btn-block {
  width: 100%;
}

/* =========================================================
   GLOBAL TOP NAV
   ========================================================= */
#globalNav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: var(--c-white);
  box-shadow: var(--shadow-nav);
  z-index: 90;
}

.nav-inner {
  max-width: 1440px;
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--outer-gutter);
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-brand {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--c-brand);
  flex-shrink: 0;
}
.nav-brand:hover { color: var(--c-brand); opacity: 0.85; }

.nav-links {
  display: none;
  align-items: center;
  gap: 24px;
  flex: 1;
}
.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--c-text-black);
  padding: 8px 4px;
  letter-spacing: -0.01em;
}
.nav-links a:hover { color: var(--c-brand); }

.nav-actions {
  display: none;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.nav-search-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  border-radius: 50%;
  color: var(--c-text-black);
  font-size: 16px;
  cursor: pointer;
  transition: background var(--t-fast);
}
.nav-search-btn:hover { background: rgba(0, 98, 65, 0.06); color: var(--c-brand); }

.nav-hamburger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-left: auto;
  border: none;
  background: transparent;
  color: var(--c-text-black);
  font-size: 18px;
  cursor: pointer;
  border-radius: 50%;
  transition: background var(--t-fast);
}
.nav-hamburger:hover { background: rgba(0, 0, 0, 0.05); }

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .nav-actions { display: inline-flex; }
  .nav-hamburger { display: none; }
}

/* =========================================================
   PAGE LAYOUT (sidebar + main)
   ========================================================= */
.page-shell {
  max-width: 1440px;
  margin: 0 auto;
  padding-top: var(--nav-height);
  padding-left: var(--outer-gutter);
  padding-right: var(--outer-gutter);
  display: flex;
  gap: var(--space-5);
  align-items: flex-start;
}

#sidebar {
  display: none;
  width: var(--sidebar-width);
  flex-shrink: 0;
  padding-top: var(--space-4);
  padding-bottom: var(--space-6);
}

@media (min-width: 1024px) {
  #sidebar { display: block; }
}

.sidebar-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

#content {
  flex: 1;
  min-width: 0;
  padding-top: var(--space-4);
  padding-bottom: var(--space-7);
}

#content-inner {
  /* Single content column — every child (post list, article, paging,
     recent posts) inherits this width so cards align edge-to-edge. */
  max-width: 760px;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  /* Sidebar visible on the left; content column stays the same width
     but no longer centers within the remaining space — it sits flush left
     so the visual rhythm is: [sidebar] [gap] [content column]. */
  #content-inner { margin: 0; }
}

/* =========================================================
   CARDS (shared base)
   ========================================================= */
.card {
  background: var(--c-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

/* =========================================================
   PROFILE CARD
   ========================================================= */
.profile-card {
  padding: var(--space-4);
  text-align: center;
}

.profile-photo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-3);
}

.profile-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.06);
  background: var(--c-neutral-warm);
  transition: opacity 0.3s ease-in;
}

.profile-name {
  margin: 0 0 var(--space-2);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--c-brand);
  line-height: 1.3;
}
.profile-name a { color: inherit; }
.profile-name a:hover { color: var(--c-accent); }

/* Blogger nickname — small caps-y label between name and description */
.profile-blogger {
  margin: 0 0 var(--space-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-text-black-soft);
}
.profile-blogger:empty { display: none; }

.profile-desc {
  margin: 0 0 var(--space-3);
  font-size: 14px;
  font-weight: 400;
  color: var(--c-text-black-soft);
  line-height: 1.5;
  word-break: keep-all;
}
.profile-desc:empty { display: none; }

.profile-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: var(--space-3);
}

@media (min-width: 768px) and (max-width: 1023px) {
  .profile-photo { width: 80px; height: 80px; }
}

/* =========================================================
   CATEGORY CARD
   ========================================================= */
.category-card {
  padding: var(--space-3) 0;
}

.category-header {
  padding: 0 var(--space-3) var(--space-2);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-text-black-soft);
}

/* The Tistory category list is rendered as nested <ul>/<li> */
.widget.category {
  font-size: 15px;
}

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

.widget.category > ul > li > a {
  /* The synthetic root link is hidden in the original theme */
  display: none;
}

.widget.category li {
  list-style: none;
}

.widget.category a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px var(--space-3);
  font-size: 15px;
  font-weight: 400;
  color: var(--c-text-black);
  letter-spacing: -0.01em;
  border-left: 3px solid transparent;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
  word-break: keep-all;
}

.widget.category a:hover {
  background: rgba(0, 98, 65, 0.04);
  color: var(--c-brand);
}

.widget.category a.is-active,
.widget.category a.link_tit {
  border-left-color: var(--c-brand);
  color: var(--c-brand);
  font-weight: 600;
  background: rgba(0, 98, 65, 0.04);
}

/* Nested sub-categories — Tistory wraps them in inner <ul><li><ul> */
.widget.category ul li ul {
  margin: 0;
  padding: 0;
}

.widget.category ul li ul li a {
  padding-left: calc(var(--space-3) + 16px);
  font-size: 14px;
  color: var(--c-text-black-soft);
}

.widget.category ul li ul li a:before {
  content: "·";
  display: inline-block;
  margin-right: 8px;
  color: var(--c-text-black-soft);
}

.widget.category ul li ul li ul li a {
  padding-left: calc(var(--space-3) + 32px);
}

/* =========================================================
   SIDEBAR LIST CARDS (notice, recent comments)
   ========================================================= */
.sidebar-list-card {
  padding: var(--space-3) 0;
}

.sidebar-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-list li {
  padding: 0;
}

.sidebar-list a {
  display: block;
  padding: 8px var(--space-3);
  font-size: 14px;
  color: var(--c-text-black);
  line-height: 1.5;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: background var(--t-fast), color var(--t-fast);
}

.sidebar-list a:hover {
  background: rgba(0, 98, 65, 0.04);
  color: var(--c-brand);
}

/* =========================================================
   COUNTER CARD
   ========================================================= */
.counter-card {
  padding: var(--space-3);
}

.counter-row {
  display: flex;
  justify-content: space-around;
  text-align: center;
}

.counter-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.counter-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--c-text-black-soft);
}

.counter-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--c-text-black);
  letter-spacing: -0.01em;
}

.counter-value-accent {
  color: var(--c-accent);
}

/* =========================================================
   SEARCH CARD
   ========================================================= */
.search-card {
  padding: var(--space-3);
}

.search-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--c-neutral-warm);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-pill);
  transition: border-color var(--t-fast), background var(--t-fast);
}

.search-pill:focus-within {
  border-color: var(--c-accent);
  background: var(--c-white);
}

.search-icon {
  font-size: 14px;
  color: var(--c-text-black-soft);
  flex-shrink: 0;
}

.search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 14px;
  color: var(--c-text-black);
  letter-spacing: -0.01em;
}

.search-input::placeholder {
  color: var(--c-text-black-soft);
}

/* =========================================================
   MOBILE DRAWER
   ========================================================= */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 320px;
  max-width: 85vw;
  background: var(--c-neutral-warm);
  z-index: 110;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -2px 0 12px rgba(0, 0, 0, 0.10);
}

.mobile-drawer.open {
  transform: translateX(0);
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 105;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

html.drawer-open .drawer-backdrop {
  opacity: 1;
  visibility: visible;
}

html.drawer-open,
html.drawer-open body {
  overflow: hidden;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  background: var(--c-white);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.drawer-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--c-brand);
  letter-spacing: -0.01em;
}

.drawer-close {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  font-size: 18px;
  color: var(--c-text-black);
  cursor: pointer;
  border-radius: 50%;
  transition: background var(--t-fast);
}
.drawer-close:hover { background: rgba(0, 0, 0, 0.06); }

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-3);
}

.drawer-body .sidebar-stack {
  gap: var(--space-3);
}

@media (min-width: 1024px) {
  .mobile-drawer, .drawer-backdrop { display: none; }
}

/* =========================================================
   PAGE SECTION HEAD (list, tag, local, guestbook)
   ========================================================= */
.page-section {
  margin-bottom: var(--space-6);
}

.section-head {
  margin-bottom: var(--space-4);
  text-align: left;
}

.section-title {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--c-brand);
  line-height: 1.3;
}

.section-subtitle {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--c-text-black);
}

.section-body {
  padding: var(--space-4);
}

@media (min-width: 768px) {
  .section-title { font-size: 28px; }
}

/* =========================================================
   POST LIST
   ========================================================= */
.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.post-list-item { padding: 0; }

.post-list-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 20px 24px;
  background: var(--c-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  color: var(--c-text-black);
  transition: box-shadow var(--t-fast), transform var(--t-fast);
}

.post-list-link:hover {
  box-shadow: var(--shadow-card-hover);
  color: var(--c-text-black);
  transform: translateY(-1px);
}

.post-list-content {
  flex: 1;
  min-width: 0;
}

.post-list-title {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 600;
  color: var(--c-text-black);
  letter-spacing: -0.01em;
  line-height: 1.4;
  word-break: keep-all;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-list-link:hover .post-list-title { color: var(--c-brand); }

.post-list-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 400;
  color: var(--c-text-black-soft);
  letter-spacing: -0.01em;
}

.post-list-meta .meta-divider {
  color: rgba(0, 0, 0, 0.20);
}

.post-list-meta .meta-comment {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.post-list-arrow {
  font-size: 16px;
  color: var(--c-text-black-soft);
  flex-shrink: 0;
  transition: transform var(--t-fast), color var(--t-fast);
}

.post-list-link:hover .post-list-arrow {
  color: var(--c-brand);
  transform: translateX(2px);
}

@media (min-width: 768px) {
  .post-list-title { font-size: 18px; }
}

/* =========================================================
   ARTICLE / SINGLE POST
   ========================================================= */
.article-wrap {
  /* Inherits width from #content-inner — keeps article aligned with
     post-list cards, paging, and recent-posts grid above/below. */
  margin: 0;
}

.article-head {
  padding: var(--space-5) 0 var(--space-4);
  text-align: left;
}

.featured-badge {
  display: inline-block;
  padding: 4px 12px;
  margin-bottom: var(--space-3);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--c-gold);
  border: 1px solid var(--c-gold);
  border-radius: var(--radius-pill);
  background: transparent;
  text-transform: uppercase;
}

.article-title {
  margin: 0 0 var(--space-3);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--c-text-black);
  word-break: keep-all;
}

.article-title a { color: inherit; }
.article-title a:hover { color: var(--c-brand); }

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--c-text-black-soft);
  letter-spacing: -0.01em;
}

.article-meta .meta-author {
  font-weight: 600;
  color: var(--c-text-black);
}

.article-meta .meta-divider {
  color: rgba(0, 0, 0, 0.20);
}

.article-meta .date,
.article-head .date {
  /* Hide the duplicated date originally used for the ribbon flag */
  display: none;
}

.article-card {
  background: var(--c-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: var(--space-4) var(--space-3);
  margin-bottom: var(--space-5);
}

@media (min-width: 768px) {
  .article-title { font-size: 36px; }
  .article-card { padding: var(--space-5) var(--space-5); }
}

@media (min-width: 1024px) {
  .article-title { font-size: 40px; }
}

/* Tag label (post-level tags row) */
.tag_label {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  min-height: 0;
  text-align: left;
}

.tag_label span { font-size: 0; }

.tag_label a {
  display: inline-block;
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--c-brand);
  background: var(--c-neutral-warm);
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: background var(--t-fast), color var(--t-fast);
}

.tag_label a:before { content: "#"; }

.tag_label a:hover {
  background: var(--c-brand);
  color: #fff;
}

/* =========================================================
   ARTICLE BODY (Tistory editor output)
   ========================================================= */
#article-view {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--c-text-editorial);
  letter-spacing: -0.01em;
  word-wrap: break-word;
  min-height: 200px;
}

#article-view p,
#article-view p[data-ke-size='size16'] {
  margin: 0 0 1.5em;
  line-height: 1.75;
}

#article-view p[data-ke-size='size18'] { font-size: 1.12em; line-height: 1.67; }
#article-view p[data-ke-size='size14'] { font-size: 0.87em; line-height: 1.71; }

#article-view h2,
#article-view h2[data-ke-size] {
  margin: 1.6em 0 0.6em;
  font-size: 1.6em;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--c-brand);
}

#article-view h3,
#article-view h3[data-ke-size] {
  margin: 1.4em 0 0.5em;
  font-size: 1.32em;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--c-text-black);
}

#article-view h4,
#article-view h4[data-ke-size] {
  margin: 1.2em 0 0.4em;
  font-size: 1.15em;
  font-weight: 600;
  line-height: 1.4;
  color: var(--c-text-black);
}

#article-view h2+h3,
#article-view h2+h4,
#article-view h3+h4 { margin-top: 0.6em; }

#article-view a {
  color: var(--c-accent);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
  transition: color var(--t-fast);
}
#article-view a:hover { color: var(--c-brand); }
#article-view p a { color: var(--c-accent); }

/* Lists */
#article-view ul li,
#article-view ol li {
  margin: 0 0 4px 22px;
  line-height: 1.7;
}

#article-view ul,
#article-view ol {
  margin: 14px auto 24px;
  padding: 0 0 0 10px;
}

/* Inline code */
#article-view code {
  padding: 2px 6px;
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: var(--c-neutral-warm);
  color: var(--c-brand);
  border-radius: 4px;
}

/* Code block */
#article-view pre {
  margin: 1.5em 0;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: var(--radius-card);
  overflow: hidden;
}

#article-view pre code,
#article-view pre code.hljs {
  display: block;
  padding: 16px 20px;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.6;
  background: var(--c-deep);
  color: rgba(255, 255, 255, 0.90);
  border: none;
  border-radius: var(--radius-card);
  overflow-x: auto;
  white-space: pre;
}

/* Blockquote */
#article-view blockquote {
  margin: 1.5em 0;
  padding: 4px 0 4px 16px;
  border-left: 3px solid var(--c-brand);
  color: var(--c-text-editorial);
  font-size: 17px;
  font-style: normal;
  line-height: 1.6;
}

#article-view blockquote[data-ke-style='style1'] {
  background: none;
  padding: 34px 0 0 0;
  border: none;
  text-align: center;
  font-family: var(--font-serif);
  font-size: 1.12em;
  color: var(--c-text-editorial);
}

#article-view blockquote[data-ke-style='style2'] {
  border-left: 3px solid var(--c-brand);
  border-color: var(--c-brand);
  padding: 1px 0 1px 16px;
  color: var(--c-text-editorial);
  font-size: 1em;
}

#article-view blockquote[data-ke-style='style3'] {
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: var(--c-neutral-warm);
  border-radius: var(--radius-card);
  padding: 18px 22px;
  color: var(--c-text-editorial);
}

/* Horizontal rule */
#article-view hr {
  margin: 2em auto;
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.10);
  height: 0;
}

/* Image block */
#article-view figure.imageblock { margin: 1.5em 0; }
#article-view figure.imageblock img {
  border-radius: var(--radius-thumb);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

#article-view figure figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--c-text-black-soft);
  text-align: center;
  letter-spacing: -0.01em;
}

/* Table */
#article-view table {
  width: 100% !important;
  margin: 1.5em 0;
  border-collapse: collapse;
  border-color: rgba(0, 0, 0, 0.08);
}

#article-view table td,
#article-view table th {
  padding: 10px 12px;
  font-size: 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

/* MoreLess (접은 글) */
#article-view div[data-ke-type='moreLess'] {
  margin: 1.5em 0;
  padding: 18px 22px;
  background: var(--c-neutral-warm);
  border: 1px dashed rgba(0, 0, 0, 0.10);
  border-radius: var(--radius-card);
  color: var(--c-text-editorial);
}

#article-view .btn-toggle-moreless {
  color: var(--c-accent);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

/* OpenGraph card */
#article-view figure[data-ke-type='opengraph'] a {
  border-radius: var(--radius-card);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  color: var(--c-text-black);
}

#article-view figure[data-ke-type='opengraph'] a:hover {
  box-shadow: var(--shadow-card-hover);
}

/* File block */
#article-view figure.fileblock {
  border-radius: var(--radius-card);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: var(--shadow-card);
  background: var(--c-white);
}

/* =========================================================
   ADMIN ROW (post bottom edit/delete)
   ========================================================= */
.admin {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  text-align: right;
  font-size: 12px;
  letter-spacing: 0.05em;
}
.admin a { color: var(--c-text-black-soft); }
.admin a:hover { color: var(--c-red); }
.admin .line { padding: 0 6px; color: rgba(0, 0, 0, 0.20); }

/* =========================================================
   PAGING
   ========================================================= */
.paging {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: var(--space-6) 0;
  padding: 0;
  flex-wrap: wrap;
}

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

.paging a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--c-text-black);
  background: var(--c-white);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-card);
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
}

.paging a:hover {
  background: var(--c-brand);
  color: #fff;
}

.paging a:active { transform: scale(0.95); }

.paging a.selected,
.paging a.selected[href] {
  background: var(--c-brand);
  color: #fff;
  cursor: default;
}

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

.paging-nav {
  gap: 6px;
  font-weight: 600;
}

.paging-nav span { display: inline; }

/* =========================================================
   RECENT POSTS GRID
   ========================================================= */
.recent-posts-section {
  margin: var(--space-7) 0 var(--space-5);
}

.recent-posts-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

@media (min-width: 768px) {
  .recent-posts-grid { grid-template-columns: repeat(4, 1fr); }
}

.recent-post-card {
  list-style: none;
}

.recent-post-link {
  display: block;
  background: var(--c-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  color: var(--c-text-black);
  transition: box-shadow var(--t-fast), transform var(--t-fast);
}

.recent-post-link:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
  color: var(--c-text-black);
}

.recent-post-thumb {
  position: relative;
  width: 100%;
  padding-top: 66%;
  background: var(--c-neutral-warm);
  overflow: hidden;
}

.recent-post-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease-in;
}

.recent-post-body {
  padding: 12px 14px 14px;
}

.recent-post-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-text-black);
  letter-spacing: -0.01em;
  line-height: 1.4;
  word-break: keep-all;
}

.recent-post-link:hover .recent-post-title { color: var(--c-brand); }

/* =========================================================
   GUESTBOOK / COMMENT FORM
   ========================================================= */
#communicate {
  margin: 0;
  padding: 0;
  clear: both;
}

#communicate .communicateWrite { padding: 0; }

#communicate .communicateWrite .guest {
  margin-bottom: var(--space-3);
}

#communicate .communicateWrite .guest label {
  display: block;
  margin-bottom: 6px;
  width: auto;
  float: none;
  padding-top: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-text-black-soft);
  letter-spacing: -0.01em;
}

#communicate .communicateWrite .guest input,
#communicate .communicateWrite .textarea textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 14px;
  letter-spacing: -0.01em;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: var(--radius-card);
  background: var(--c-white);
  transition: border-color var(--t-fast);
  cursor: text;
}

#communicate .communicateWrite .textarea textarea {
  height: 140px;
  line-height: 1.6;
  resize: vertical;
}

#communicate .communicateWrite .guest input:focus,
#communicate .communicateWrite .textarea textarea:focus {
  border-color: var(--c-accent);
}

#communicate .communicateWrite .submit {
  margin: var(--space-3) 0 0;
  float: right;
}

#communicate .communicateWrite .submit input {
  margin: 0;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
  background: var(--c-accent);
  border: 1px solid var(--c-accent);
  border-bottom: 1px solid var(--c-accent);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--t-fast);
}

#communicate .communicateWrite .submit input:hover {
  background: var(--c-brand);
  border-color: var(--c-brand);
}

#communicate .communicateWrite .submit input:active {
  transform: scale(0.95);
}

#communicate .communicateWrite .secret {
  float: right;
  margin: var(--space-3) 8px 0 0;
  padding: 10px 12px 10px 30px;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: var(--radius-pill);
  font-size: 13px;
  letter-spacing: -0.01em;
}

#communicate .communicateWrite .secret label { cursor: pointer; }

#communicate .communicateWrite .secret input {
  position: absolute;
  top: 50%;
  left: 12px;
  margin-top: -8px;
}

/* Comment list */
#communicate .communicateList ol {
  list-style: none;
  margin: var(--space-4) 0 0;
  padding: 0;
}

#communicate .communicateList ol > li {
  margin-top: var(--space-3);
  padding: 16px 18px;
  background: var(--c-white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-top: 2px solid var(--c-brand);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

#communicate .communicateList ul {
  margin: 0;
  padding: 0;
}

#communicate .communicateList ul li {
  list-style: none;
  margin-top: 12px;
  padding: 12px 0 0 16px;
  border-top: 1px dotted rgba(0, 0, 0, 0.10);
  border-left: 3px solid rgba(0, 98, 65, 0.20);
}

#communicate .communicateList li > div { padding: 0; }

#communicate .communicateList .name {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-brand);
  float: left;
}

#communicate .communicateList .date {
  float: right;
  font-size: 12px;
  font-style: normal;
  color: var(--c-text-black-soft);
  letter-spacing: -0.01em;
}

#communicate .communicateList p {
  clear: both;
  margin: 8px 0;
  padding-top: 4px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--c-text-black);
}

#communicate .communicateList .control {
  width: 100%;
  text-align: right;
  font-size: 12px;
  font-style: normal;
  letter-spacing: -0.01em;
}

#communicate .communicateList .control a {
  margin: 0 0 0 4px;
  padding: 6px 8px;
  color: var(--c-text-black-soft);
  border-radius: 6px;
  transition: color var(--t-fast), background var(--t-fast);
}

#communicate .communicateList .control a:hover {
  color: var(--c-accent);
  background: rgba(0, 98, 65, 0.04);
}

#communicate .communicateList div img[src*="index"] {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--c-neutral-warm);
}

#communicate .communicateList .tt_more_preview_comments_wrap {
  text-align: center;
  cursor: pointer;
  padding: 14px 0;
  font-weight: 600;
  color: var(--c-accent);
}

/* =========================================================
   PROTECTED POST
   ========================================================= */
.protected-block {
  padding: var(--space-5) var(--space-3);
  text-align: center;
}

.protected-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-3);
  background: var(--c-neutral-warm);
  border-radius: 50%;
  color: var(--c-brand);
  font-size: 22px;
}

.protected-msg {
  margin: 0 0 var(--space-3);
  font-size: 15px;
  color: var(--c-text-black-soft);
  letter-spacing: -0.01em;
}

.protected-input {
  width: 100%;
  max-width: 280px;
  padding: 12px 16px;
  margin: 0 auto var(--space-3);
  font-size: 14px;
  letter-spacing: -0.01em;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: var(--radius-card);
  background: var(--c-white);
  display: block;
  transition: border-color var(--t-fast);
}

.protected-input:focus { border-color: var(--c-accent); }

.btn-protected { margin: 0 auto; }

/* =========================================================
   TAG PAGE
   ========================================================= */
.tag-cloud {
  text-align: center;
  word-break: keep-all;
  line-height: 2.4;
}

.tag-cloud .tag-pill {
  display: inline-block;
  margin: 4px 6px;
  padding: 4px 12px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--c-text-black);
  background: var(--c-neutral-warm);
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: background var(--t-fast), color var(--t-fast);
}

.tag-cloud .tag-pill:hover {
  background: var(--c-brand);
  color: #fff;
}

.tag-cloud .cloud1 { font-size: 22px; font-weight: 700; color: var(--c-brand); }
.tag-cloud .cloud1:hover { background: var(--c-brand); color: #fff; }

.tag-cloud .cloud2 { font-size: 19px; font-weight: 600; color: var(--c-accent); }
.tag-cloud .cloud2:hover { background: var(--c-accent); color: #fff; }

.tag-cloud .cloud3 { font-size: 16px; font-weight: 500; color: var(--c-text-black); }

.tag-cloud .cloud4 { font-size: 14px; font-weight: 400; color: var(--c-text-black-soft); }

.tag-cloud .cloud5 { font-size: 13px; font-weight: 400; color: var(--c-text-black-soft); }

/* =========================================================
   LOCAL BLOCK
   ========================================================= */
.local-block .spot {
  font-weight: 600;
  font-size: 15px;
  margin: 12px 0 8px;
  color: var(--c-brand);
}

.local-block .info a {
  display: inline-block;
  padding: 6px 0;
  font-size: 14px;
  color: var(--c-text-black);
}
.local-block .info a:hover { color: var(--c-accent); }

/* =========================================================
   FLOATING CIRCULAR BUTTON
   ========================================================= */
.float-circular {
  position: fixed;
  right: var(--outer-gutter);
  bottom: var(--outer-gutter);
  width: 56px;
  height: 56px;
  border: none;
  border-radius: 50%;
  background: var(--c-accent);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  box-shadow: var(--shadow-float-base), var(--shadow-float-ambient);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--t-fast), visibility var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
  z-index: 80;
}

.float-circular.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.float-circular:hover { background: var(--c-brand); }

.float-circular:active {
  transform: scale(0.95);
  box-shadow: var(--shadow-float-base), 0 8px 12px rgba(0, 0, 0, 0);
}

@media (min-width: 768px) {
  .float-circular {
    right: var(--outer-gutter-md);
    bottom: var(--outer-gutter-md);
  }
}

@media (min-width: 1024px) {
  .float-circular {
    right: var(--outer-gutter-lg);
    bottom: var(--outer-gutter-lg);
  }
}

/* =========================================================
   FOOTER
   ========================================================= */
#foot {
  margin-top: var(--space-7);
  padding: var(--space-6) 0 var(--space-5);
  background: var(--c-deep);
  border-radius: var(--radius-card);
  color: var(--c-text-white-soft);
  text-align: center;
}

.foot-inner {
  padding: 0 var(--space-3);
}

.foot-brand {
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
}

.foot-meta {
  font-size: 13px;
  letter-spacing: -0.01em;
  color: var(--c-text-white-soft);
}

.foot-meta a {
  color: var(--c-text-white-soft);
  text-decoration: none;
  transition: color var(--t-fast);
}

.foot-meta a:hover { color: #fff; }

.foot-divider {
  margin: 0 8px;
  color: rgba(255, 255, 255, 0.30);
}

/* =========================================================
   HIDE ORIGINAL ELEMENTS NO LONGER USED
   ========================================================= */
#sidebar-toggle,
#sidebar .blank,
#sidebar > h1 {
  display: none !important;
}

#head .date {
  display: none;
}

/* =========================================================
   RESPONSIVE TWEAKS
   ========================================================= */
@media (max-width: 767px) {
  .article-card { padding: var(--space-3); }
  .post-list-link { padding: 16px 18px; }
  .recent-post-body { padding: 10px 12px 12px; }
  .nav-inner { gap: 12px; }
  .nav-brand { font-size: 17px; }
}

@media (max-width: 479px) {
  #content-inner { padding: 0; }
  .section-title { font-size: 22px; }
  .article-title { font-size: 24px; }
  .post-list-arrow { display: none; }
}

/* =========================================================
   PRINT
   ========================================================= */
@media print {
  #globalNav, #sidebar, .float-circular, .paging, .recent-posts-section, #foot { display: none !important; }
  .page-shell { padding: 0; }
  .article-card { box-shadow: none; padding: 0; }
}
