@charset "utf-8";

/* ============================================
   00. Variables
   ============================================ */
:root {
  --side-w: 280px;
  --bg: #ffffff;
  --side-bg: #fbfaf9;
  --text: #1c1a19;
  --text-sub: #5f5954;
  --text-mute: #a29b95;
  --line: #eae6e2;
  --line-soft: #f3f0ed;
  --accent: #4e2e28;
  --accent-soft: #f0e9e7;
  --radius: 10px;
}

/* ============================================
   01. Reset
   ============================================ */
* { box-sizing: border-box; }

html, body { width: 100%; margin: 0; padding: 0; }

body {
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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, figure { display: block; }
ul li { list-style: none; }
img, fieldset { border: 0; vertical-align: top; }
a { color: inherit; text-decoration: none; }

button {
  margin: 0; padding: 0; border: 0;
  background: transparent; cursor: pointer;
  font-family: inherit; color: inherit;
}

input, textarea, select {
  font-family: inherit; font-size: inherit;
  border-radius: 0; -webkit-appearance: none;
}

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

#acc-nav a {
  position: absolute; top: 0; left: 0; z-index: 1000;
  width: 1px; height: 1px; overflow: hidden;
}
#acc-nav a:focus {
  width: 100%; height: auto; padding: 10px 0;
  background: #000; color: #fff; text-align: center;
}

/* ============================================
   02. Sidebar
   ============================================ */
#sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 200;
  width: var(--side-w);
  background: var(--side-bg);
  border-right: 1px solid var(--line);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.side-inner {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 44px 28px 28px;
}

/* Profile */
.profile {
  margin-bottom: 38px;
  text-align: center;
}

.profile .avatar {
  display: block;
  overflow: hidden;
  width: 128px; height: 128px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background-color: var(--accent-soft);
  background-size: cover;
  background-position: 50% 50%;
}

.profile .avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.profile .nickname {
  display: block;
  margin-bottom: 8px;
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.profile .bio {
  font-size: 0.8125rem;
  line-height: 1.65;
  color: var(--text-mute);
  word-break: keep-all;
}

/* Main nav */
.main-nav { margin-bottom: 26px; }

.main-nav li { margin-bottom: 2px; }

.main-nav a {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-sub);
  transition: background .15s, color .15s;
}

.main-nav a:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.main-nav a.on { font-weight: 600; }

.main-nav > ul > li { position: relative; }
.main-nav .has-sub > a { padding-right: 40px; }

.sub-toggle {
  position: absolute; top: 0; right: 0;
  width: 38px; height: 38px;
  border-radius: 8px;
  color: var(--text-mute);
}

.sub-toggle::after {
  content: "";
  position: absolute; top: 50%; left: 50%;
  width: 6px; height: 6px;
  margin: -5px 0 0 -3px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform .2s;
}

.sub-toggle:hover { color: var(--accent); }

.main-nav .has-sub.open > .sub-toggle::after {
  margin-top: -1px;
  transform: rotate(-135deg);
}

.sub-nav { display: none; padding: 2px 0 6px; }
.main-nav .has-sub.open > .sub-nav { display: block; }

.main-nav .sub-nav a {
  padding: 6px 12px 6px 26px;
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--text-mute);
}

.main-nav .sub-nav a::before { content: "\00b7 "; }
.main-nav .sub-nav a:hover { background: var(--accent-soft); color: var(--accent); }
.main-nav .sub-nav a.on { font-weight: 600; }
.main-nav .sub-nav ul { padding-left: 14px; }

/* Category accordion */
.cat-box {
  margin-bottom: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.cat-btn {
  position: relative;
  display: block; width: 100%;
  padding: 4px 12px;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.cat-btn::after {
  content: "";
  position: absolute; top: 50%; right: 12px;
  width: 6px; height: 6px;
  margin-top: -5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform .2s;
}

.cat-box.open .cat-btn::after {
  margin-top: -1px;
  transform: rotate(-135deg);
}

.cat-list { display: none; padding-top: 10px; }
.cat-box.open .cat-list { display: block; }

.cat-list a {
  display: block;
  padding: 5px 12px;
  font-size: 0.8125rem;
  color: var(--text-sub);
}
.cat-list a:hover { color: var(--accent); }

.cat-list ul ul { padding-left: 12px; }
.cat-list ul ul a { font-size: 0.78rem; color: var(--text-mute); }
.cat-list ul ul a::before { content: "· "; }

/* Search */
.side-search { position: relative; margin-bottom: 32px; }

.side-search input {
  width: 100%; height: 38px;
  padding: 0 36px 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 0.8125rem;
  color: var(--text);
}
.side-search input:focus { outline: none; border-color: var(--accent); }
.side-search input::placeholder { color: #c4beb9; }

.side-search button {
  position: absolute; top: 0; right: 0;
  width: 36px; height: 38px;
}
.side-search button::before {
  content: "";
  position: absolute; top: 12px; left: 11px;
  width: 10px; height: 10px;
  border: 1.5px solid var(--text-mute);
  border-radius: 50%;
}
.side-search button::after {
  content: "";
  position: absolute; top: 22px; left: 20px;
  width: 6px; height: 1.5px;
  background: var(--text-mute);
  transform: rotate(45deg);
}

/* Sidebar footer */
.side-foot { margin-top: auto; padding-top: 24px; }

.social-link { margin-bottom: 12px; }

.social-link a {
  display: inline-block;
  margin-right: 10px;
  font-size: 0.75rem;
  color: var(--text-mute);
}
.social-link a:hover { color: var(--accent); }

.side-foot .copyright {
  font-size: 0.6875rem;
  color: #bdb7b1;
}
.side-foot .admin { margin-left: 8px; color: var(--text-mute); }
.side-foot .admin:hover { color: var(--accent); }

/* ============================================
   03. Topbar (mobile)
   ============================================ */
#topbar { display: none; }
.nav-dim { display: none; }

/* ============================================
   04. Main
   ============================================ */
#main {
  display: flex;
  flex-direction: column;
  margin-left: var(--side-w);
  min-height: 100vh;
}

#content {
  flex: 1 0 auto;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 32px;
}

#content .inner { width: 100%; }

#footer {
  flex: 0 0 auto;
  width: 100%;
  max-width: 760px;
  margin: 80px auto 0;
  padding: 28px 32px 60px;
  border-top: 1px solid var(--line-soft);
}
#footer p { font-size: 0.75rem; color: #bdb7b1; }
#footer a:hover { color: var(--accent); }

/* ============================================
   05. List
   ============================================ */
.list-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 56px 0 24px;
  border-bottom: 1px solid var(--line);
}
.list-head h1 { font-size: 1.375rem; font-weight: 700; letter-spacing: -0.02em; }
.list-head .count { font-size: 0.8125rem; color: var(--text-mute); }

.post-item { border-bottom: 1px solid var(--line-soft); }

.post-item > a {
  display: flex;
  gap: 24px;
  padding: 28px 0;
  align-items: flex-start;
}

.post-item .thum {
  flex: 0 0 132px;
  width: 132px; height: 99px;
  order: 2;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--line-soft);
}
.post-item .thum:empty { display: none; }
.post-item .thum img { width: 100%; height: 100%; object-fit: cover; }

.post-item .text { flex: 1 1 auto; min-width: 0; }

.post-item .cat {
  display: inline-block;
  margin-bottom: 7px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.post-item .title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 7px;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.02em;
}
.post-item a:hover .title { color: var(--accent); }

.post-item .excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 9px;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-sub);
}

.post-item .date {
  display: block;
  font-size: 0.75rem;
  color: var(--text-mute);
}

.post-item .excerpt.protected::before { content: "🔒 "; }

/* ============================================
   06. Cover
   ============================================ */
.cover-block { padding: 56px 0 8px; }

.cover-title {
  margin-bottom: 22px;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.grid-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px 24px;
}

.grid-list .thum {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  margin-bottom: 12px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--line-soft) 50% 50% / cover no-repeat;
}
.grid-list .thum img { width: 100%; height: 100%; object-fit: cover; }

.grid-list .cat {
  display: block;
  margin-bottom: 5px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.grid-list .title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.02em;
}
.grid-list a:hover .title { color: var(--accent); }

.grid-list .excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 5px;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--text-sub);
}

.grid-list.gallery .thum { aspect-ratio: 1 / 1; }

.row-list li { border-bottom: 1px solid var(--line-soft); }
.row-list a { display: flex; gap: 24px; padding: 24px 0; }
.row-list .thum {
  flex: 0 0 120px; width: 120px; height: 120px;
  overflow: hidden; border-radius: var(--radius);
  background: var(--line-soft);
}
.row-list .thum img { width: 100%; height: 100%; object-fit: cover; }
.row-list .text { flex: 1 1 auto; min-width: 0; }
.row-list .cat {
  display: block; margin-bottom: 6px;
  font-size: 0.6875rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent);
}
.row-list .title {
  display: block; margin-bottom: 6px;
  font-size: 1rem; font-weight: 700; letter-spacing: -0.02em;
}
.row-list .excerpt {
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
  font-size: 0.875rem; color: var(--text-sub);
}

/* ============================================
   07. Post View
   ============================================ */
.hgroup {
  padding: 64px 0 24px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.hgroup .cat {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.hgroup h1 {
  margin-bottom: 14px;
  font-size: 1.875rem;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.03em;
  word-break: keep-all;
}

.hgroup .meta { font-size: 0.8125rem; color: var(--text-mute); }
.hgroup .meta span + span::before {
  content: "";
  display: inline-block;
  width: 1px; height: 10px;
  margin: 0 9px;
  background: var(--line);
  vertical-align: -1px;
}

/* Tags */
.tags {
  margin: 48px 0;
  padding: 20px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.tags .items a {
  display: inline-block;
  margin: 3px 6px 3px 0;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--line-soft);
  font-size: 0.75rem;
  color: var(--text-sub);
}
.tags .items a::before { content: "#"; opacity: .5; }
.tags .items a:hover { background: var(--accent-soft); color: var(--accent); }

/* Related */
.related { margin: 56px 0; }
.related h2 {
  margin-bottom: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mute);
}

/* Comments */
.comments {
  margin: 56px 0;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.tt-comment-cont .tt-btn_register {
  width: auto; min-width: 120px; height: 42px;
  border-radius: 8px;
  border-color: var(--line);
  background: #fff; color: var(--text);
}
.tt-comment-cont .tt-btn_register:hover,
.tt-comment-cont .tt-btn_register:focus {
  background: #fff; border-color: var(--accent); color: var(--accent);
}

/* Protected form */
.protected_form {
  margin: 40px 0;
  padding: 70px 0;
  text-align: center;
  border-radius: var(--radius);
  background: var(--side-bg);
}
.protected_form p { margin-bottom: 20px; font-size: 0.875rem; color: var(--text-sub); }
.protected_form input {
  width: 200px; height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  vertical-align: top;
}
.protected_form .btn {
  height: 42px; padding: 0 20px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  vertical-align: top;
}

/* ============================================
   08. Pagination
   ============================================ */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin: 56px 0 100px;
}

.pagination a {
  display: inline-flex;
  align-items: center; justify-content: center;
  min-width: 34px; height: 34px;
  padding: 0 8px;
  border-radius: 8px;
  font-size: 0.8125rem;
  color: var(--text-mute);
}
.pagination a:hover { background: var(--line-soft); color: var(--text); }
.pagination .selected { background: var(--accent); color: #fff; font-weight: 600; }

.pagination .prev, .pagination .next {
  padding: 0 14px;
  border: 1px solid var(--line);
  font-size: 0.75rem;
}
.pagination .no-more-prev, .pagination .no-more-next { display: none; }
.pagination .current { display: none; }

/* ============================================
   09. Post Archive
   ============================================ */
#post-archive { padding: 56px 0 40px; }
.archive-page #article-view #post-archive { padding-top: 24px; }

.archive-loading, .archive-empty {
  padding: 90px 0;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-mute);
}

.archive-page .hgroup {
  padding-bottom: 12px;
  margin-bottom: 0;
  border-bottom: 0;
}

.archive-cat { margin-top: 44px; }
.archive-cat:first-child { margin-top: 0; }

.archive-cat > h2 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.archive-cat > h2 span {
  flex: 0 0 auto;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--accent);
}
.archive-cat > h2 em {
  flex: 1 1 auto;
  text-align: right;
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-mute);
  font-variant-numeric: tabular-nums;
}

.timeline {
  position: relative;
  margin: 0;
  padding: 22px 0 0;
  list-style: none;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 0; bottom: 12px; left: 5px;
  width: 1px;
  background: var(--line);
}

.tl-year {
  position: relative;
  margin: 20px 0 8px;
  padding-left: 28px;
}
.tl-year:first-child { margin-top: 0; }
.tl-year span {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--bg);
  box-shadow: 0 0 0 1px var(--line);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-mute);
  font-variant-numeric: tabular-nums;
}
.tl-year::before {
  content: "";
  position: absolute;
  top: 8px; left: 0;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--accent);
}

.tl-item {
  position: relative;
  display: flex;
  gap: 14px;
  padding: 5px 0 5px 28px;
  line-height: 1.7;
}
.tl-item::before {
  content: "";
  position: absolute;
  top: 14px; left: 2px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: 0 0 0 1.5px var(--line);
  transition: background .15s, box-shadow .15s;
}
.tl-item:hover::before {
  background: var(--accent);
  box-shadow: 0 0 0 1.5px var(--accent);
}

.tl-date {
  flex: 0 0 auto;
  font-size: 0.75rem;
  color: #c4beb9;
  font-variant-numeric: tabular-nums;
}

.tl-sub {
  flex: 0 0 auto;
  align-self: center;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--line-soft);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-mute);
}
.tl-item:hover .tl-sub { background: var(--accent-soft); color: var(--accent); }
.tl-item a {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.875rem;
  color: var(--text-sub);
}
.tl-item a:hover { color: var(--accent); text-decoration: underline; }

/* ============================================
   10. Responsive
   ============================================ */
@media screen and (max-width: 1023px) {
  #topbar {
    display: flex;
    align-items: center;
    position: sticky;
    top: 0; z-index: 150;
    height: 56px;
    padding: 0 8px;
    background: rgba(255,255,255,.92);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
  }

  .nav-toggle {
    position: relative;
    width: 40px; height: 40px;
    flex: 0 0 40px;
  }
  .nav-toggle span,
  .nav-toggle::before,
  .nav-toggle::after {
    content: "";
    position: absolute; left: 11px;
    width: 18px; height: 1.5px;
    background: var(--text);
    transition: .2s;
  }
  .nav-toggle::before { top: 14px; }
  .nav-toggle span { top: 19.5px; }
  .nav-toggle::after { top: 25px; }

  .nav-open .nav-toggle span { opacity: 0; }
  .nav-open .nav-toggle::before { top: 19.5px; transform: rotate(45deg); }
  .nav-open .nav-toggle::after { top: 19.5px; transform: rotate(-45deg); }

  .topbar-title {
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: 48px;
    text-align: center;
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: -0.02em;
  }

  #sidebar {
    transform: translateX(-100%);
    transition: transform .28s ease;
    box-shadow: none;
  }
  .nav-open #sidebar {
    transform: translateX(0);
    box-shadow: 0 0 40px rgba(0,0,0,.12);
  }

  .nav-dim {
    display: block;
    position: fixed; inset: 0;
    z-index: 190;
    background: rgba(0,0,0,.35);
    opacity: 0; visibility: hidden;
    transition: opacity .28s;
  }
  .nav-open .nav-dim { opacity: 1; visibility: visible; }
  .nav-open { overflow: hidden; }

  #main { margin-left: 0; }
  #content { padding: 0 24px; }
  #footer { padding: 28px 24px 60px; }
}

@media screen and (max-width: 640px) {
  body { font-size: 15px; }
  :root { --side-w: 260px; }

  #content { padding: 0 18px; }
  #footer { padding: 24px 18px 48px; }

  .list-head { padding: 32px 0 18px; }
  .hgroup { padding: 36px 0 20px; }
  .hgroup h1 { font-size: 1.5rem; }

  .post-item > a { gap: 14px; padding: 22px 0; }
  .post-item .thum { flex: 0 0 92px; width: 92px; height: 69px; }
  .post-item .title { font-size: 1rem; }
  .post-item .excerpt { -webkit-line-clamp: 2; font-size: 0.8125rem; }

  .grid-list { grid-template-columns: 1fr; gap: 26px; }
  .grid-list.gallery { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  .row-list .thum { flex: 0 0 92px; width: 92px; height: 92px; }

  .archive-cat > h2 { flex-wrap: wrap; gap: 8px; }
  .archive-cat > h2 em { flex-basis: 100%; text-align: left; }
  .tl-item { gap: 10px; }

  .pagination { margin: 40px 0 70px; }

  #article-view, .entry-content { font-size: 16px; }
  #article-view table th,
  #article-view table td { padding: 8px 10px; font-size: 0.9375rem; }
}

/* ============================================
   11. Entry Content (Tistory Editor)
   ============================================ */
#article-view, .entry-content {
  padding: 34px 0 20px;
  color: #2b2724;
  font-size: 17px;
  line-height: 1.85;
  word-wrap: break-word;
}

#article-view strong, #article-view b {
  font-weight: 700;
  color: var(--text);
}

#article-view p + p, #article-view p { margin-bottom: 26px; }

#article-view h2, #article-view h3, #article-view h4 {
  margin: 2em 0 0.7em;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.025em;
  color: var(--text);
}
#article-view h2 {
  margin-top: 2.4em;
  margin-bottom: 0.9em;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent);
  font-size: 1.5em;
  font-weight: 800;
}

#article-view h3 {
  position: relative;
  padding-left: 15px;
  font-size: 1.25em;
}
#article-view h3::before {
  content: "";
  position: absolute;
  top: 0.3em; left: 0;
  width: 4px; height: 0.8em;
  border-radius: 2px;
  background: var(--accent);
}

#article-view h4 {
  font-size: 1.1em;
  color: var(--accent);
}

#article-view h2[data-ke-size] { font-size: 1.5em; line-height: 1.46; }
#article-view h3[data-ke-size] { font-size: 1.28em; line-height: 1.48; }
#article-view h4[data-ke-size] { font-size: 1.12em; line-height: 1.55; }

#article-view p[data-ke-size='size18'] { font-size: 1.12em; line-height: 1.75; }
#article-view p[data-ke-size='size16'] { line-height: 1.8; }
#article-view p[data-ke-size='size14'] { font-size: 0.9em; line-height: 1.75; }

#article-view h2 + h2, #article-view h3 + h3, #article-view h4 + h4 { margin-top: 0; }
#article-view h2 + h3, #article-view h2 + h4, #article-view h3 + h4 { margin-top: 10px; }
#article-view h2 + p, #article-view h3 + p, #article-view h4 + p { margin-top: 10px; }

#article-view a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
#article-view figure[data-ke-type='contentSearch'] a { text-decoration: none; }

#article-view ul li, #article-view ol li { margin: 0 0 6px 22px; line-height: 1.8; }
#article-view ul { list-style: disc; }
#article-view ol { list-style: decimal; }
#article-view ul, #article-view ol { margin: 16px auto 26px; padding: 0 0 0 10px; }
#article-view li > ul, #article-view li > ol { margin: 5px auto 12px; }

#article-view div[data-ke-type='moreLess'] {
  margin: 24px 0;
  padding: 20px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--side-bg);
}
#article-view .moreless-content :first-child { margin-top: 0; }
#article-view div[data-ke-type='moreLess'] .moreless-content { display: none; }
#article-view div[data-ke-type='moreLess'].open .moreless-content { display: block; }
#article-view div[data-ke-type='moreLess'] .btn-toggle-moreless {
  font-size: 0.9375rem; color: var(--text-mute); cursor: pointer; text-decoration: none;
}

/* 인용문 */
#article-view blockquote { display: block; margin: 26px auto; }
#article-view blockquote[data-ke-style='style1'] {
  text-align: center;
  background: url(https://t1.daumcdn.net/axz_keditor/dist/latest/image/blockquote-style1.svg) no-repeat 50% 0;
  padding: 34px 0 0; font-size: 1.1em; line-height: 1.7; border: 0;
}
#article-view blockquote[data-ke-style='style2'] {
  padding: 2px 0 2px 16px;
  border-left: 3px solid var(--accent);
  color: var(--text-sub); line-height: 1.8;
}
#article-view blockquote[data-ke-style='style3'] {
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--side-bg);
  color: var(--text-sub); line-height: 1.8;
}

/* 콜아웃 — 마크다운 > 인용 */
#article-view blockquote:not([data-ke-style]),
#article-view blockquote[data-ke-style='style1'] {
  padding: 16px 20px;
  border: 0;
  border-radius: 8px;
  background: var(--accent-soft);
  background-image: none;
  color: #2b2724;
  font-size: 1em;
  line-height: 1.75;
  text-align: left;
}
#article-view blockquote::before,
#article-view blockquote::after { content: none; }
#article-view blockquote > :last-child { margin-bottom: 0; }
#article-view blockquote strong { color: var(--accent); }

/* 이미지 */
#article-view figure { max-width: 100%; clear: both; }
#article-view figure img { display: inline-block; }
#article-view iframe, #article-view figure img, #article-view figure iframe { max-width: 100%; }
#article-view figure img:not([width]), #article-view figure iframe:not([width]) { width: 100%; }
#article-view span[data-lightbox] { cursor: pointer; }

#article-view figure.imageblock { display: table; position: relative; margin: 26px 0; }
#article-view figure.imageblock.alignLeft { text-align: left; }
#article-view figure.imageblock.alignCenter { margin: 26px auto; text-align: center; }
#article-view figure.imageblock.alignRight { text-align: right; margin-left: auto; }
#article-view figure.imageblock.floatLeft { float: left; margin-right: 20px; }
#article-view figure.imageblock.floatRight { float: right; margin-left: 20px; }
#article-view figure.imageblock.widthContent { display: block; }
#article-view figure.imageblock.widthContent img { width: 100%; }
#article-view figure.imageblock img { max-width: 100%; height: auto; border-radius: 6px; }
#article-view figure.imageblock.floatLeft figcaption,
#article-view figure.imageblock.floatRight figcaption { text-align: left; }

#article-view figure figcaption {
  width: 100%;
  padding-top: 10px;
  font-size: 0.8125rem;
  color: var(--text-mute);
  text-align: center;
  word-break: break-word;
}

#article-view figure.imagegridblock { position: relative; width: 100%; margin: 26px 0; }
#article-view figure.imagegridblock .image-container {
  display: flex; justify-content: space-between;
  align-items: baseline; flex-wrap: wrap;
}
#article-view figure.imagegridblock .image-container > span { margin-top: 2px; }
#article-view figure.imagegridblock img { margin: 0; height: inherit; border-radius: 6px; }
#article-view figure.imagegridblock span img { width: 100%; }

/* 파일 첨부 */
#article-view figure.fileblock {
  position: relative;
  width: 100%; max-width: 470px; height: 73px;
  margin: 24px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
}
#article-view figure.fileblock a { display: block; text-decoration: none; }
#article-view figure.fileblock .image {
  float: left; width: 30px; height: 30px;
  margin: 22px 17px 21px 22px;
  background: url('https://t1.daumcdn.net/tistory_admin/static/manage/post-editor/img_editor_content.svg') 0 0;
}
#article-view figure.fileblock .desc { position: absolute; left: 70px; right: 60px; top: 4px; bottom: 0; }
#article-view figure.fileblock .filename {
  width: 100%; height: 20px; margin: 16px 0 0;
  font-size: 14px; color: var(--text); text-overflow: ellipsis;
}
#article-view figure.fileblock .size { height: 16px; font-size: 12px; color: var(--text-mute); }
#article-view figure.fileblock .name {
  display: block; max-width: 272px; height: 20px;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
#article-view figure.fileblock a::after {
  content: ''; position: absolute; right: 24px; top: 19px;
  width: 30px; height: 30px;
  background: url('https://t1.daumcdn.net/tistory_admin/static/manage/post-editor/img_editor_content.svg') -40px 0;
}

/* 구분선 */
#article-view hr:not([data-ke-style]) {
  height: 1px;
  margin: 44px auto;
  border: 0;
  background: var(--line);
}

hr[data-ke-style], #article-view hr[data-ke-style] {
  border: none; font-size: 0; line-height: 0;
  margin: 26px auto; cursor: default !important;
  background: url(https://t1.daumcdn.net/axz_keditor/dist/latest/image/divider-line.svg);
  background-size: 200px 420px;
}
#article-view hr[data-ke-style='style1'] { background-position: center 0; width: 64px; height: 4px; padding: 20px; }
#article-view hr[data-ke-style='style2'] { background-position: center -48px; width: 64px; height: 3px; padding: 20px; }
#article-view hr[data-ke-style='style3'] { background-position: center -96px; width: 64px; height: 8px; padding: 18px 20px; }
#article-view hr[data-ke-style='style4'] { background-position: center -144px; width: 2px; height: 60px; padding: 0 51px; }
#article-view hr[data-ke-style='style4'] + hr[data-ke-style='style4'] { margin-top: 0; }
#article-view hr[data-ke-style='style5'] { background-position: center -208px; background-repeat: repeat-x; height: 2px; padding: 21px 0; }
#article-view hr[data-ke-style='style6'] { background-position: center -256px; background-repeat: repeat-x; height: 2px; padding: 21px 0; }
#article-view hr[data-ke-style='style7'] { background-position: center -304px; width: 200px; height: 19px; padding: 18px 20px 17px; }
#article-view hr[data-ke-style='style8'] { background-position: center -362px; width: 200px; height: 19px; padding: 18px 20px 17px; }

/* 테이블 */
#article-view table { width: 100%; margin: 26px 0; border-collapse: collapse; border-color: var(--line); }
#article-view table[data-ke-style] { margin-bottom: 26px; }
#article-view table tbody tr { box-sizing: content-box; }
#article-view table th,
#article-view table td {
  padding: 11px 13px;
  border: 1px solid var(--line);
  font-size: 1rem;
  line-height: 1.7;
  word-break: break-word;
}
#article-view table th {
  background: var(--side-bg);
  font-weight: 700;
  text-align: left;
  color: var(--text);
}

#article-view table[data-ke-style='style1'] tr:first-child td { border-bottom: 1px solid #6ed3d8; }
#article-view table[data-ke-style='style2'] tr:first-child td { border-bottom: 1px solid #008300; }
#article-view table[data-ke-style='style3'] tr:first-child td { border-bottom: 1px solid #006dbe; }
#article-view table[data-ke-style='style4'] tr:nth-child(2n) td { background: #f9f9f9; }
#article-view table[data-ke-style='style5'] tr:nth-child(2n) td { background: #f8fbfb; }
#article-view table[data-ke-style='style6'] tr:nth-child(2n) td { background: #f5f7f5; }
#article-view table[data-ke-style='style7'] tr:nth-child(2n) td { background: #f6f8fb; }
#article-view table[data-ke-style='style8'] tr:first-child td { border-bottom: 2px solid #797979; }
#article-view table[data-ke-style='style9'] tr:first-child td { border-bottom: 2px solid #6ed3d8; }
#article-view table[data-ke-style='style10'] tr:first-child td { border-bottom: 2px solid #008300; }
#article-view table[data-ke-style='style11'] tr:first-child td { border-bottom: 2px solid #2780d4; }
#article-view table[data-ke-style='style8'],
#article-view table[data-ke-style='style9'],
#article-view table[data-ke-style='style10'],
#article-view table[data-ke-style='style11'] { border-left: 0; border-right: 0; }
#article-view table[data-ke-style='style8'] td,
#article-view table[data-ke-style='style9'] td,
#article-view table[data-ke-style='style10'] td,
#article-view table[data-ke-style='style11'] td { border-right-color: transparent; border-left-color: transparent; }

#article-view table[data-ke-style='style12'] tr:nth-child(odd) td,
#article-view table[data-ke-style='style13'] tr:nth-child(odd) td,
#article-view table[data-ke-style='style14'] tr:nth-child(odd) td,
#article-view table[data-ke-style='style15'] tr:nth-child(odd) td { background: #f9f9f9; }
#article-view table[data-ke-style='style12'] tr td:first-child,
#article-view table[data-ke-style='style13'] tr td:first-child,
#article-view table[data-ke-style='style14'] tr td:first-child,
#article-view table[data-ke-style='style15'] tr td:first-child { background: #efefef; }
#article-view table[data-ke-style='style12'] tr:first-child td { background: #9b9b9b; border: 1px solid #888; color: #fff; }
#article-view table[data-ke-style='style13'] tr:first-child td { background: #6ed3d8; border: 1px solid #5cbcc1; color: #fff; }
#article-view table[data-ke-style='style14'] tr:first-child td { background: #008300; border: 1px solid #006d00; color: #fff; }
#article-view table[data-ke-style='style15'] tr:first-child td { background: #2780d4; border: 1px solid #1568b7; color: #fff; }
#article-view table[data-ke-style='style16'],
#article-view table[data-ke-style='style16'] tr,
#article-view table[data-ke-style='style16'] tr td { border-color: transparent; }

/* 코드 블럭 */
#article-view :not(pre) > code {
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--accent-soft);
  font-family: "SF Mono", Menlo, Consolas, Monaco, monospace;
  font-size: 0.875em;
  color: var(--accent);
  word-break: break-all;
}

#article-view pre { white-space: pre; word-wrap: normal; word-break: normal; }
#article-view pre code {
  display: block;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7f4f1;
  color: #2b2724;
  font-family: "SF Mono", Menlo, Consolas, Monaco, monospace;
  font-size: 0.8125rem;
  line-height: 1.7;
  tab-size: 2;
  overflow: auto;
}

/* 오픈그래프 */
#article-view figure[data-ke-type='opengraph'] { margin: 24px 0; }
#article-view figure[data-ke-type='opengraph'] a {
  display: flex; align-items: center; width: 100%;
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: var(--text);
}
#article-view figure[data-ke-type='opengraph'] div.og-image {
  flex: 0 0 160px; width: 160px; height: 160px;
  border-right: 1px solid var(--line);
  background-size: cover; background-position: center;
}
#article-view figure[data-ke-type='opengraph'] div.og-image button { display: none; }
#article-view figure[data-ke-type='opengraph'] div.og-text { padding: 20px; min-width: 0; }
#article-view figure[data-ke-type='opengraph'] p.og-title {
  margin: 0 0 8px; font-size: 1.0625rem; font-weight: 700;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
#article-view figure[data-ke-type='opengraph'] .og-desc {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; margin: 0;
  font-size: 0.8125rem; color: var(--text-mute);
}

@media (max-width: 600px) {
  #article-view figure[data-ke-type='opengraph'] div.og-image { flex: 0 0 90px; width: 90px; height: 90px; }
  #article-view figure[data-ke-type='opengraph'] div.og-text { padding: 12px 14px; }
  #article-view figure[data-ke-type='opengraph'] p.og-title { font-size: 0.9375rem; }
  #article-view figure[data-ke-type='opengraph'] .og-desc { display: none; }
}

/* 비디오 */
#article-view figure[data-ke-type='video'] { display: block; position: relative; margin: 26px 0; text-align: center; }
#article-view figure[data-ke-type='video'][data-ke-style='alignLeft'] { text-align: left; }
#article-view figure[data-ke-type='video'][data-ke-style='alignCenter'] { margin: 26px auto; text-align: center; }
#article-view figure[data-ke-type='video'][data-ke-style='alignRight'] { text-align: right; margin-left: auto; }
#article-view figure[data-ke-type='video'] img { display: block; max-width: 100%; margin: 0 auto; }
#article-view figure[data-ke-type='video'][data-video-host] iframe { display: block; margin: 0; }
#article-view figure[data-ke-type='video'] > iframe[width='0'][height='0'] {
  width: 100%; aspect-ratio: 16 / 9; height: auto;
}

/* 이모티콘 / 지도 */
#article-view figure[data-ke-type=emoticon][data-ke-align=alignCenter] { text-align: center; }
#article-view figure[data-ke-type=emoticon][data-ke-align=alignLeft] { text-align: left; }
#article-view figure[data-ke-type=emoticon][data-ke-align=alignRight] { text-align: right; }
#article-view figure[data-ke-type='map'], #article-view iframe[data-ke-type='map'] { display: block; margin: 26px auto; }

/* 이미지 슬라이드 */
#article-view figure.imageslideblock { position: relative; clear: both; font-size: 0; outline: 0; margin: 26px 0; }
#article-view figure.imageslideblock .btn { display: none; outline: none; }
#article-view figure.imageslideblock.ready .btn { display: inline-block; }
#article-view figure.imageslideblock.ready .mark { opacity: 1; }
#article-view figure.imageslideblock div.image-container {
  position: relative; display: flex;
  align-items: center; justify-content: center;
  min-height: 300px; max-height: 700px;
  margin: 0 auto; overflow: hidden;
  border-radius: var(--radius); background: #000;
}
#article-view figure.imageslideblock div.image-container span.image-wrap { display: none; }
#article-view figure.imageslideblock div.image-container span.image-wrap.selected { display: inline; }
#article-view figure.imageslideblock div.image-container img { max-width: 100%; max-height: 100%; }
#article-view figure.imageslideblock div.image-container .btn {
  position: absolute; top: 50%; margin-top: -20px;
  width: 60px; height: 60px; border: 0; background: transparent;
}
#article-view figure.imageslideblock div.image-container .btn-prev { left: 0; }
#article-view figure.imageslideblock div.image-container .btn-next { right: 0; }
#article-view figure.imageslideblock div.image-container:hover .btn span { opacity: .3; }
#article-view figure.imageslideblock div.image-container .btn:hover span { opacity: 1; }
#article-view figure.imageslideblock div.image-container .btn span {
  display: inline-block; width: 40px; height: 40px;
  overflow: hidden; text-indent: -10000px; opacity: 0;
  transition: opacity .2s;
  background-image: url('https://t1.daumcdn.net/tistory_admin/static/manage/post-editor/img_editor_content.svg');
}
#article-view figure.imageslideblock div.image-container .btn .ico-prev { background-position: -220px 0; }
#article-view figure.imageslideblock div.image-container .btn .ico-next { background-position: -260px 0; }
#article-view figure.imageslideblock div.mark {
  display: block; height: 44px; text-align: center;
  opacity: 0; transition: opacity .2s;
}
#article-view figure.imageslideblock div.mark span {
  display: inline-block; width: 30px; height: 4px;
  margin: 20px 1px; overflow: hidden; text-indent: -10000px;
  background: #d6d6d6; cursor: pointer;
}
#article-view figure.imageslideblock div.mark span:first-child { background: #000; margin-left: 0; }
#article-view figure.imageslideblock figcaption { font-size: 14px; color: var(--text-mute); text-align: center; }

@media (max-width: 600px) {
  #article-view figure.imageslideblock div.image-container { min-width: 100%; width: 100%; max-height: 100%; }
  #article-view figure.imageslideblock div.image-container .btn span { opacity: .3; }
}

/* 구 에디터 */
.btn_more, .btn_less {
  display: block; position: relative;
  width: 100%; height: 21px; margin: 20px 0;
  border: 0; background: transparent; text-align: left;
  font-size: 14px; line-height: 14px; color: #888;
}
.btn_less::before, .btn_more::before {
  content: "..."; display: inline-block; padding-right: 5px;
  font-size: 14px; line-height: 6px; vertical-align: top;
}
.box-timeline-content { word-break: break-all; }

/* 광고 */
.revenue_unit_wrap.position_list { max-width: 760px; margin: 30px auto; }