/* 블로그 전체 덧씌우기 (Chirpy 7 테마 CSS 뒤에 불러옴)
   - 서체: Pretendard (본문·제목). 코드 서체는 테마 기본 유지.
   - 코드 색: 라이트는 테마가 이미 GitHub 색이라 그대로, 다크만 GitHub Dark로 바꿈.
   Chirpy 7은 다크 모드를 :root[data-bs-theme=dark]로 표시한다. */
:root {
  --ask-font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo",
              "Noto Sans KR", "Malgun Gothic", sans-serif;
  --bs-body-font-family: var(--ask-font);
  --bs-font-sans-serif: var(--ask-font);
}
/* 테마가 Lato를 직접 지정한 곳 */
html h1, html h2, html h3, html h4, html h5, html h6,
html header .post-desc, html #toc-bar .label, html #search-results a, html #notification.toast .toast-body,
html #toc-popup .header .label, html #toc-popup #toc-popup-content, html #topbar-title, html .pagination,
html #toc-solo-trigger .label, html #archives .date.day, html .tag span {
  font-family: var(--ask-font);
}
html h1, html h2, html h3 { letter-spacing: -0.015em; }

/* GitHub Dark 코드 색 (Primer) */
:root[data-bs-theme=dark] { --highlight-bg-color: #161b22; --highlight-lineno-color: #6e7681; --highlighter-rouge-color: #e6edf3; }
:root[data-bs-theme=dark] .highlight, :root[data-bs-theme=dark] .highlight .w,
:root[data-bs-theme=dark] .highlight .p, :root[data-bs-theme=dark] .highlight .n,
:root[data-bs-theme=dark] .highlight .nx { color: #e6edf3; background-color: #161b22; }
:root[data-bs-theme=dark] .highlight .p, :root[data-bs-theme=dark] .highlight .n,
:root[data-bs-theme=dark] .highlight .nx, :root[data-bs-theme=dark] .highlight .w { background-color: transparent; }
:root[data-bs-theme=dark] .highlight :is(.c, .ch, .cd, .cm, .cpf, .c1, .cs) { color: #8b949e; font-style: italic; }
:root[data-bs-theme=dark] .highlight .cp { color: #8b949e; font-weight: 600; }
:root[data-bs-theme=dark] .highlight :is(.k, .kd, .kn, .kp, .kr, .kt, .kv, .o, .ow) { color: #ff7b72; }
:root[data-bs-theme=dark] .highlight :is(.kc, .m, .mb, .mf, .mh, .mi, .il, .mo, .mx, .na, .no, .py, .se) { color: #79c0ff; }
:root[data-bs-theme=dark] .highlight :is(.s, .sa, .sb, .sc, .dl, .sd, .s2, .sh, .si, .sx, .s1, .ss) { color: #a5d6ff; }
:root[data-bs-theme=dark] .highlight :is(.sr, .nt) { color: #7ee787; }
:root[data-bs-theme=dark] .highlight :is(.nf, .fm, .nd) { color: #d2a8ff; }
:root[data-bs-theme=dark] .highlight :is(.nb, .bp, .nc, .ne, .nn, .ni, .nl, .nv, .vc, .vg, .vi, .vm) { color: #ffa657; }
:root[data-bs-theme=dark] .highlight .gd { color: #ffa198; background-color: #490202; }
:root[data-bs-theme=dark] .highlight .gi { color: #7ee787; background-color: #04260f; }
:root[data-bs-theme=dark] .highlight :is(.gh, .gu) { color: #79c0ff; font-weight: 700; }
:root[data-bs-theme=dark] .highlight .err { color: #f85149; background-color: transparent; }

/* ── 클래식 미니멀 강조색: 카키·월넛 브라운 (부트스트랩 기본 파랑 #0d6efd 대체) ──
   라이트: 링크 #6b4f34(흰 배경 7.5:1), 강조 #7a6a45(5.3:1), 버튼 채움 #5a4330(흰 글자 9.2:1)
   다크  : 링크 #d4bc94(9.3:1), 강조 #c9b48a(8.5:1), 버튼 채움 #c9b48a(어두운 글자 8.5:1)            */
:root, :root[data-bs-theme=light], :root:not([data-bs-theme]) {
  --cl-accent: #6b4f34; --cl-accent-2: #7a6a45; --cl-fill: #5a4330; --cl-fill-2: #4a3727; --cl-on-fill: #ffffff;
  --cl-line: #8a7f5c; --cl-ring: 107, 79, 52;
  --link-color: var(--cl-accent); --toc-highlight: var(--cl-accent-2); --btn-share-hover-color: var(--cl-accent);
  --bs-link-color: var(--cl-accent); --bs-link-color-rgb: 107, 79, 52; --bs-link-hover-color: var(--cl-fill-2);
  --bs-link-hover-color-rgb: 74, 55, 39;
}
/* 대표 이미지(구성도)는 다크판이 기본 → 라이트 모드에서는 라이트판으로 바꿔 보여 준다 */
html:not([data-bs-theme=dark]) img[src$="/llmops-arch-dark.svg"] { content: url("/assets/img/posts/llmops-arch.svg"); }
html:not([data-bs-theme=dark]) img[src$="/llmops-pipeline-dark.svg"] { content: url("/assets/img/posts/llmops-pipeline.svg"); }

html:root[data-bs-theme=dark] {   /* html:root = 테마 기본값(:root[...])보다 한 단계 높은 우선순위 */
  /* 다크: Cloudflare 대시보드 참고 — 거의 검정 바탕, 밝은 파랑 링크, 오렌지 포인트.
     바탕 #121212(머티리얼 다크), 층마다 한 단계 밝게(#1c1c1e → #252528 → #303034). 링크 #6cb2ff 8.4:1, 오렌지 #ff9a3d 8.9:1 */
  --cl-accent: #6cb2ff; --cl-accent-2: #ff9a3d; --cl-fill: #2f7cf6; --cl-fill-2: #4d90f8; --cl-on-fill: #ffffff;
  --cl-line: #2c4f7a; --cl-ring: 108, 178, 255;
  --link-color: var(--cl-accent); --toc-highlight: var(--cl-accent-2); --btn-share-hover-color: var(--cl-accent);
  --bs-link-color: var(--cl-accent); --bs-link-color-rgb: 108, 178, 255; --bs-link-hover-color: #9ccbff;
  --bs-link-hover-color-rgb: 156, 203, 255;
  --main-bg: #121212; --sidebar-bg: #121212; --topbar-bg: rgba(18, 18, 18, .85); --card-bg: #1c1c1e;
  --main-border-color: #2a2a2e; --sidebar-border-color: #222225; --border-color: #2a2a2e;
  --sidebar-hover-bg: #1e1e21; --sidebar-btn-bg: #1c1c1e; --menu-bg: #1c1c1e; --card-header-bg: #1c1c1e;
  --button-bg: #1c1c1e; --btn-border-color: #2a2a2e; --search-border-color: #2c2c30; --mask-bg: #2c2c30;
  --img-bg: #121212; --post-list-text-color: #c9cdd2; --site-title-color: #d6d9dd; --blockquote-text-color: #a3a8b0;
  /* 본문은 고대비, 주변부는 한 단계 낮춤 */
  --text-color: #e9ebee; --heading-color: #ffffff; --text-muted-color: #8b9099;
}
:root[data-bs-theme=dark] body { background: var(--main-bg); }
:root[data-bs-theme=dark] #sidebar { border-right: 1px solid var(--sidebar-border-color); }
html .btn-primary {
  --bs-btn-bg: var(--cl-fill); --bs-btn-border-color: var(--cl-fill); --bs-btn-color: var(--cl-on-fill);
  --bs-btn-hover-bg: var(--cl-fill-2); --bs-btn-hover-border-color: var(--cl-fill-2); --bs-btn-hover-color: var(--cl-on-fill);
  --bs-btn-active-bg: var(--cl-fill-2); --bs-btn-active-border-color: var(--cl-fill-2); --bs-btn-active-color: var(--cl-on-fill);
  --bs-btn-focus-shadow-rgb: var(--cl-ring);
}
html .btn-outline-primary {
  --bs-btn-color: var(--cl-accent); --bs-btn-border-color: var(--cl-line);
  --bs-btn-hover-bg: var(--cl-fill); --bs-btn-hover-border-color: var(--cl-fill); --bs-btn-hover-color: var(--cl-on-fill);
  --bs-btn-active-bg: var(--cl-fill-2); --bs-btn-active-border-color: var(--cl-fill-2); --bs-btn-active-color: var(--cl-on-fill);
  --bs-btn-focus-shadow-rgb: var(--cl-ring);
}
/* ── 읽기 대비: 본문은 진하게, 사이드바·목차·메타·푸터는 힘을 뺀다 ── */
:root, :root[data-bs-theme=light], :root:not([data-bs-theme]) { --cl-body: #1b1d21; }
:root[data-bs-theme=dark] { --cl-body: #eceef1; }
html .content { color: var(--cl-body); }
html .content :is(h1, h2, h3, h4, h5) { color: var(--heading-color); }
html #panel-wrapper, html footer, html .post-meta, html #sidebar .sidebar-bottom { opacity: .72; transition: opacity .2s ease; }
html #panel-wrapper:hover, html #sidebar .sidebar-bottom:hover { opacity: 1; }
html #sidebar #nav .nav-item:not(.active) .nav-link { opacity: .78; }
html #sidebar #nav .nav-item:not(.active) .nav-link:hover { opacity: 1; }
/* 다크: 네온 포인트 — 활성 메뉴·목차 표시·태그에 은은한 발광 */
:root[data-bs-theme=dark] #sidebar #nav .nav-item.active .nav-link { color: #ffffff; box-shadow: inset 3px 0 0 var(--cl-accent-2); }
:root[data-bs-theme=dark] .content a:not(.btn):not(.img-link) { text-decoration-color: rgba(var(--cl-ring), .5); }
:root[data-bs-theme=dark] .content :is(h2, h3)::selection { background: rgba(var(--cl-ring), .3); }

/* 이전·다음 글 버튼: 마우스를 올리면 월넛으로 차분하게 채움(파랑 대신), 화살표도 같은 글자색 */
html .post-navigation .btn:hover:not(.disabled) { background-color: var(--cl-fill); border-color: var(--cl-fill); color: var(--cl-on-fill); }
html .post-navigation .btn:hover:not(.disabled)::before { color: var(--cl-on-fill); }
html .pagination { --bs-pagination-active-bg: var(--cl-fill); --bs-pagination-active-border-color: var(--cl-fill);
  --bs-pagination-active-color: var(--cl-on-fill); --bs-pagination-focus-box-shadow: 0 0 0 .25rem rgba(var(--cl-ring), .3); }
html .dropdown-menu { --bs-dropdown-link-active-bg: var(--cl-fill); --bs-dropdown-link-active-color: var(--cl-on-fill); }
html .list-group { --bs-list-group-active-bg: var(--cl-fill); --bs-list-group-active-border-color: var(--cl-fill); --bs-list-group-active-color: var(--cl-on-fill); }
html .form-control:focus, html .nav-link:focus-visible { box-shadow: 0 0 0 .25rem rgba(var(--cl-ring), .3); }
html .btn-close { --bs-btn-close-focus-shadow: 0 0 0 .25rem rgba(var(--cl-ring), .3); }
::selection { background: rgba(var(--cl-ring), .25); }

/* ── 왼쪽 사이드바 접기 (데스크톱 850px 이상): 사이드바 안 오른쪽 위 버튼 / 접히면 왼쪽 위 펼치기 버튼 ── */
.sb-toggle { display: none; }
@media (min-width: 850px) {
  .sb-toggle {
    align-items: center; justify-content: center; width: 2.1rem; height: 2.1rem; border-radius: 8px; cursor: pointer;
    border: 0; background: transparent; color: var(--text-muted-color); z-index: 1101;
  }
  .sb-toggle:hover { color: var(--text-color); background: color-mix(in srgb, var(--text-color) 9%, transparent); }
  #sidebar .sb-fold { display: inline-flex; position: absolute; top: .75rem; right: .75rem; }
  .sb-unfold { position: fixed; top: calc(.6rem + env(safe-area-inset-top, 0px)); left: calc(.75rem + env(safe-area-inset-left, 0px)); }
  html.sb-collapsed .sb-unfold { display: inline-flex; }
  html.sb-collapsed #sidebar { transform: translateX(-100%); }
  html.sb-collapsed #main-wrapper { margin-left: 0; }
  html.sb-collapsed #topbar-wrapper .container, html.sb-collapsed #topbar { padding-left: 2.6rem; }
  #sidebar, #main-wrapper { transition: transform .3s ease, margin-left .3s ease; }
}

/* ── 상단 바 도구: 아이콘만 ── */
/* 테마는 상단 바 아이콘 하나로 전환(site-tools.js) → 사이드바의 3단 메뉴는 숨김 */
#sidebar .sidebar-bottom .btn-group.dropup { display: none; }
/* 테마 버튼은 옆의 GitHub·RSS 버튼(.sidebar-bottom > a)과 같은 모양: 1.75rem 원, 같은 바탕·테두리·아이콘 색.
   테마가 버튼 사이에 찍는 가운데 점(.icon-border)은 숨김 (2026-11-12) */
#sidebar .sidebar-bottom .icon-border { display: none; }
#sidebar .sidebar-bottom .theme-btn { width: 1.75rem; height: 1.75rem; margin: 0 .8rem .5rem 0; padding: 0; border: 0;
  border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: inherit; cursor: pointer;
  color: var(--sidebar-btn-color); background-color: var(--sidebar-btn-bg); transition: all .3s ease-in-out; }
#sidebar .sidebar-bottom .theme-btn:not(:focus-visible) { box-shadow: var(--sidebar-border-color) 0 0 0 1px; }
#sidebar .sidebar-bottom .theme-btn:hover { color: var(--sidebar-active-color); background-color: var(--sidebar-hover-bg); }
#sidebar .sidebar-bottom .theme-btn:focus-visible { outline: 2px solid var(--cl-accent); outline-offset: 2px; }
#sidebar .sidebar-bottom .theme-btn i { line-height: 1.75rem; }
.site-tools { display: flex; align-items: center; gap: .3rem; margin-left: auto; margin-right: .5rem; }
.site-tools .tool-wrap { position: relative; }
.site-tools > button, .site-tools .tool-wrap > button {
  display: inline-flex; align-items: center; justify-content: center; gap: .3rem;
  height: 2rem; min-width: 2rem; padding: 0 .55rem; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: .78rem; font-weight: 600; line-height: 1;
  border: 1px solid var(--btn-border-color, #8c959f); background: var(--main-bg, #fff); color: var(--text-color);
}
.site-tools .tool-label { display: none; }
.site-tools button:hover { border-color: var(--cl-accent); }
.site-tools button.is-on { background: var(--cl-fill); border-color: var(--cl-fill); color: var(--cl-on-fill); }
.site-tools .lang-btn .lang-code { letter-spacing: .04em; }
.site-tools .tool-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 575.98px) { .site-tools .tool-status { display: none; } .site-tools { gap: .2rem; } }
.site-menu {
  position: absolute; z-index: 1130; top: calc(100% + 6px); right: 0; min-width: 9.5rem;
  display: flex; flex-direction: column; padding: .3rem; border-radius: 12px;
  background: var(--main-bg, #fff); color: var(--text-color); border: 1px solid var(--main-border-color, #d0d7de);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .14);
}
.site-menu[hidden] { display: none; }
.site-menu button {
  font: inherit; font-size: .85rem; text-align: left; padding: .45rem .7rem; border-radius: 8px; cursor: pointer;
  border: 0; background: transparent; color: inherit; white-space: nowrap;
}
.site-menu button:hover, .site-menu button:focus-visible { background: rgba(var(--cl-ring), .12); outline: none; }
.site-menu button[aria-checked="true"]::before { content: "✓ "; color: var(--cl-accent); }
.site-tools button:focus-visible, .sb-toggle:focus-visible { outline: 3px solid var(--cl-accent); outline-offset: 2px; }

/* ── 번역 제안 (브라우저 언어가 한국어가 아닐 때 한 번) ── */
.lang-suggest {
  position: fixed; z-index: 1135; left: 50%; transform: translateX(-50%); top: calc(3.6rem + env(safe-area-inset-top, 0px));
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; max-width: calc(100% - 32px);
  padding: .5rem .6rem .5rem .9rem; border-radius: 999px; font-size: .85rem;
  background: var(--main-bg, #fff); color: var(--text-color); border: 1px solid var(--main-border-color);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .14);
}
.lang-suggest button { font: inherit; padding: .25rem .8rem; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--cl-line); background: transparent; color: var(--text-color); }
.lang-suggest button.primary { background: var(--cl-fill); border-color: var(--cl-fill); color: var(--cl-on-fill); }

/* ── 글 하단: [이전 글] [목록으로] [다음 글] ── */
.post-navigation.post-nav3 { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: .5rem; margin: 0; padding: 0; }
.post-navigation.post-nav3 .btn { width: auto; left: 0; right: 0; border-radius: 12px; padding: .8rem 1rem;
  display: flex; flex-direction: column; gap: .15rem; text-align: left;
  border: 0 !important; box-shadow: none !important; outline: 0; background: color-mix(in srgb, var(--text-color) 5%, transparent); }
.post-navigation.post-nav3 .btn:focus-visible { outline: 2px solid var(--cl-accent); outline-offset: 2px; }
.post-navigation.post-nav3 .btn::before { content: none; }
.post-navigation.post-nav3 .nav-next { text-align: right; align-items: flex-end; }
.post-navigation.post-nav3 .nav-list { align-items: center; justify-content: center; text-align: center; min-width: 7.5rem; }
.post-navigation.post-nav3 .nav-label { font-size: .72rem; letter-spacing: .04em; color: var(--text-muted-color); }
.post-navigation.post-nav3 .btn { min-width: 0; }
/* 제목은 한 줄만, 넘치면 말줄임표(전체 제목은 마우스를 올리면 보임: post-nav.html의 title) */
.post-navigation.post-nav3 .nav-title { font-size: 1rem; line-height: 1.45; display: block; width: 100%;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post-navigation.post-nav3 .btn:hover:not(.disabled) .nav-label { color: inherit; opacity: .85; }
.post-navigation.post-nav3 .nav-list .fa-list-ul { font-size: .9rem; }
@media (max-width: 575.98px) {
  .post-navigation.post-nav3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .post-navigation.post-nav3 .nav-list { grid-column: 1 / -1; grid-row: 2; flex-direction: row; gap: .4rem; }
  .post-navigation.post-nav3 .nav-list .nav-title { display: none; }
}

/* ── 다 읽은 뒤 추천 카드 ── */
.rec-card {
  position: fixed; z-index: 1120; left: max(16px, env(safe-area-inset-left, 0px));
  bottom: calc(20px + env(safe-area-inset-bottom, 0px)); width: min(22rem, calc(100% - 32px - 72px));
  padding: .8rem .9rem .7rem; border-radius: 16px; font-size: .9rem; line-height: 1.5;
  background: var(--main-bg, #fff); color: var(--text-color); border: 1px solid var(--main-border-color);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .18);
  opacity: 0; transform: translateY(12px); transition: opacity .25s ease, transform .25s ease;
}
.rec-card.is-in { opacity: 1; transform: none; }
.rec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .5rem; }
.rec-close { width: 1.8rem; height: 1.8rem; border-radius: 999px; border: 0; background: transparent; color: var(--text-muted-color); cursor: pointer; font-size: 1.1rem; }
.rec-close:hover { background: rgba(var(--cl-ring), .12); }
.rec-card a { text-decoration: none; color: inherit; }
/* 추천 항목: 모두 같은 "글 카드" 모양 + 꼬리표. 선택(호버)은 투명도 대신 한 단계 밝은/어두운 면 */
.rec-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .3rem; }
.rec-item { display: flex; flex-direction: column; gap: .2rem; padding: .55rem .7rem; border-radius: 10px;
  background: var(--rec-l1); transition: background .15s ease; }
.rec-item:hover, .rec-item:focus-visible { background: var(--rec-l2); }
.rec-label { align-self: flex-start; font-size: .7rem; font-weight: 600; letter-spacing: .02em; padding: .05rem .45rem;
  border-radius: 999px; background: var(--rec-chip); color: var(--text-muted-color); }
.rec-item.is-primary .rec-label { background: var(--rec-chip-strong); color: var(--rec-chip-strong-fg); }
.rec-item .rec-title { font-weight: 600; color: var(--text-color); line-height: 1.4; }
:root, :root[data-bs-theme=light], :root:not([data-bs-theme]) {
  --rec-l1: #f4f4f5; --rec-l2: #e7e7ea; --rec-chip: #e2e2e6; --rec-chip-strong: #5a4330; --rec-chip-strong-fg: #ffffff;
}
html:root[data-bs-theme=dark] {
  --rec-l1: #252528; --rec-l2: #303034; --rec-chip: #36363b; --rec-chip-strong: #ff9a3d; --rec-chip-strong-fg: #121212;
}
html:root[data-bs-theme=dark] .rec-card { background: #1c1c1e; border-color: #2c2c30; box-shadow: none; }
.rec-list { display: inline-block; margin-top: .5rem; padding: .2rem .5rem; font-size: .82rem; color: var(--text-muted-color) !important; text-decoration: underline !important; text-underline-offset: 3px; }
.rec-card a:focus-visible, .rec-close:focus-visible { outline: 3px solid var(--cl-accent); outline-offset: 2px; }
@media (max-width: 767.98px) { .rec-card { left: 16px; right: 88px; width: auto; } }
@media (prefers-reduced-motion: reduce) {
  .rec-card, #sidebar, #main-wrapper { transition: none !important; }
}

/* ── 팡! 누르면 점들이 방사형으로 퍼지며 흐려진다 (site-tools.js blogBurst). 좋아요·평가 버튼 공통.
      버튼은 position: relative. 색은 버튼에서 --fx-c1/--fx-c2로 바꾼다. 움직임 줄이기 설정이면 생략 ── */
.fx-burst { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; z-index: 2; }
.fx-burst i { position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 50%;
  background: var(--fx-c1, #ff9a3d); opacity: 0; animation: fx-burst .65s cubic-bezier(.2, .7, .3, 1) forwards; }
.fx-burst i:nth-child(even) { left: -2px; top: -2px; width: 4px; height: 4px; background: var(--fx-c2, #8a7f5c); animation-delay: .04s; }
@keyframes fx-burst {
  0% { opacity: 1; transform: rotate(var(--a)) translateY(-6px) scale(.5); }
  55% { opacity: 1; }
  100% { opacity: 0; transform: rotate(var(--a)) translateY(calc(-1 * var(--fx-r, 28px))) scale(1); }
}
.fx-pop { animation: fx-pop .38s ease-out; }
@keyframes fx-pop { 0% { transform: scale(1); } 35% { transform: scale(1.28); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .fx-burst { display: none; } .fx-pop { animation: none; } }

/* ── 시리즈 라이브러리 (_tabs/series.html): 표지·제목·소개만 보이고 글 목록은 토글 안 ── */
.series-lib { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 2rem 1.5rem; align-items: start; margin-top: .5rem; }
.series-card { min-width: 0; scroll-margin-top: 5rem; }
.series-card:target .series-thumb { outline: 3px solid var(--link-color, #0b5cad); outline-offset: 3px; }
.series-thumb { display: block; aspect-ratio: 1200 / 630; border-radius: 10px; border: 1px solid var(--main-border-color, #d0d7de);
  background: var(--card-bg, #f6f8fa) center / cover no-repeat; transition: transform .2s, box-shadow .2s; }
.series-thumb:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0, 0, 0, .14); }
.series-thumb:focus-visible { outline: 3px solid var(--link-color, #0b5cad); outline-offset: 3px; }
.content .series-title { font-size: 1.1rem; margin: .9rem 0 .35rem; line-height: 1.4; }
.series-title a { color: var(--heading-color, inherit); border-bottom: 0; }
.series-desc { font-size: .9rem; line-height: 1.6; margin: 0 0 .4rem; color: var(--text-color, #1f2328); }
.series-meta { font-size: .8rem; margin: 0 0 .5rem; color: var(--text-muted-color, #57606a); }
.series-posts { border-top: 1px solid var(--main-border-color, #d0d7de); padding-top: .45rem; }
.series-posts summary { cursor: pointer; font-size: .85rem; font-weight: 600; list-style: none; display: flex; align-items: center; }
.series-posts summary::-webkit-details-marker { display: none; }
.series-posts summary::after { content: "\25BE"; margin-left: auto; transition: transform .2s; }
.series-posts[open] summary::after { transform: rotate(180deg); }
.series-posts summary:focus-visible { outline: 3px solid var(--link-color, #0b5cad); outline-offset: 2px; }
.series-posts ol { margin: .5rem 0 0; padding-left: 1.5rem; }
.series-posts li { font-size: .88rem; margin: .25rem 0; }
.series-nav .series-nav-more { margin: .5rem 0 0; font-size: .85em; text-align: right; }
@media (prefers-reduced-motion: reduce) { .series-thumb, .series-posts summary::after { transition: none; } .series-thumb:hover { transform: none; } }
@media (prefers-contrast: more) { .series-thumb, .series-posts { border-color: currentColor; } }

/* 글 페이지의 '수정' 링크 (글쓰기 화면을 열어 본 브라우저에서만 생김) */
.post-edit-link { display: inline-block; margin-left: .75rem; font-size: .85rem; padding: .05rem .55rem; border: 1px solid var(--main-border-color, #d0d7de); border-radius: 999px; }

/* 글 목록의 '새 글' 버튼 (블로그 주인으로 로그인한 브라우저에서만 생김) */
.post-new-bar { display: flex; justify-content: flex-end; margin: 0 0 1rem; }
.post-new-link { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .9rem; font-size: .9rem; font-weight: 600; border: 1px solid var(--main-border-color, #d0d7de); border-radius: 999px; color: var(--text-color, inherit); }
.post-new-link:hover { background: var(--sidebar-hover-bg, rgba(0, 0, 0, .05)); text-decoration: none; }
