/*
 *
 * CSS CONTENTS:
 *
 * 00. Web Font
 * 01. 공통 (root, reset, 변수)
 * 02. Type Selector Reset
 * 03. Accessibility Navigation
 * 04. Layout Selector
 * 05. Components (Header, GNB, Util, Search, Headline 등)
 * 06. Entry Content
 * 07. Comment
 * 08. Aside(sidebar)
 * 09. ETC
 * 10. Option(Color Type & List Type)
 * 11. Retina Display
 * 12. Media Screen (Responsive)
 *
 */

/* 00. Web Font */
@import url('https://fonts.googleapis.com/css2?family=Nanum+Myeongjo:wght@800&family=Pretendard:wght@400;600;700&display=swap');

/* 01. 공통 (root, reset, 변수) */
:root {
  --budrik-color-main: #222;
  --budrik-color-sub: #394d60;
  --budrik-color-bg: #fff;
  --budrik-color-border: #e5e5e5;
  --budrik-color-gray: #888;
  --budrik-color-point: #04beb8;
  --budrik-color-headline: #007aff;
  --budrik-color-footer: #f8f9fa;
  --budrik-color-link: #007aff;
  --budrik-color-hover: #0056b3;
  --budrik-font-main: 'Pretendard', 'Apple SD Gothic Neo', Arial, sans-serif;
  --budrik-font-title: 'Nanum Myeongjo', serif;
  --budrik-max-width: 1280px;
  --budrik-header-height: 64px;
  --budrik-gnb-height: 48px;
  --budrik-transition: 0.2s cubic-bezier(.4,0,.2,1);
  /* 폰트 사이즈 변수 */
  --budrik-font-xs: 0.75em;      /* 12px */
  --budrik-font-sm: 0.92em;      /* 14.7px, 본문보다 살짝 작게 */
  --budrik-font-md: 1em;         /* 16px */
  --budrik-font-lg: 1.25em;      /* 20px */
  --budrik-font-xl: 1.75em;      /* 28px */
  --budrik-spacing-sm: 1.2em;
  --budrik-spacing-xs: 0.2em;
  --budrik-header-font-size: 2rem;
  --budrik-header-font-weight: 700;
  --budrik-header-color: var(--budrik-color-main);
  --budrik-header-padding-bottom: 1.2em;
  --budrik-post-header-padding: 0 0 1.5em 0;
  --budrik-sidebar-width: 20em;
  --budrik-sidebar-gap: 3em;
  --budrik-sidebar-title-size: 1.25em;
  --budrik-sidebar-title-margin: 1em;
  --budrik-sidebar-title-padding: 0.5em;
  --budrik-sidebar-title-border: 0.15em;
  --budrik-sidebar-item-gap: 0.5em;
  --budrik-sidebar-item-padding: 0.6em 0.9em;
  --budrik-sidebar-item-radius: 0.375em;
  --budrik-sidebar-font-size: 1em;
  --budrik-sidebar-notice-padding: 0.6em 0;
  --budrik-sidebar-notice-font: 0.92em;
  --budrik-sidebar-notice-border: 1px;
}
body, button, dd, dl, dt, fieldset, form, h1, h2, h3, h4, h5, h6, input, legend, li, ol, p, select, table, td, textarea, th, ul {
  margin: 0;
  padding: 0;
}
body, button, input, select, textarea {
  color: inherit;
  font-family: inherit;
}
nav div, #container, #header_wrap #header_gnb {
  max-width: 100% !important;
}
button, input {
  border: 0;
  border-radius: 0;
  background-color: transparent;
}
img {
  border-style: none;
  box-sizing: border-box;
  max-width: 100%;
  height: auto;
}
ol, ul {
  list-style: none;
}
address, em {
  font-style: normal;
}
a {
  cursor: pointer;
  color: inherit;
  text-decoration: none !important;
}

/* 02. Type Selector Reset */
.container_postbtn .btn_menu_toolbar.following .ico_check_type1 {
  margin-top: 16px;
}
article, aside, canvas, details, figcaption, figure, footer, header, main, menu, nav, section, summary {
  display: block;
}

/* 03. Accessibility Navigation */
#acc-nav {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  height: 0;
}
#acc-nav a {
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  overflow: hidden;
  width: 1px;
  height: 1px;
  margin-left: -1px;
  margin-bottom: -1px;
  text-align: center;
  font-weight: bold;
  font-size: 0.875em;
  color: #000;
  white-space: nowrap;
}
#acc-nav a:focus,
#acc-nav a:hover,
#acc-nav a:active {
  width: 100%;
  height: auto;
  padding: 10px 0;
  background: #000;
  color: #fff;
  z-index: 1000;
}

/* 04. Layout Selector */
#wrap {
  width: 100%;
  min-height: 100vh;
  background: var(--budrik-color-bg);
}
#container {
  max-width: var(--budrik-max-width);
  margin: 0 auto;

}
.content-wrap {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  max-width: var(--budrik-max-width);
  margin: 0 auto;
  padding: 48px 0;
}

/* 썸네일 위치(레이아웃) */


/* 05. Components (Header, GNB, Util, Search, Headline 등) */
.header-main {
  display: flex;
  align-items: flex-end;
  min-height: 64px;
  background: #fff;
  padding-bottom: 0.7em;
}
.header-main .inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  width: 100%;
  max-width: var(--budrik-max-width);
  margin: 0 auto;
  padding: 0;
  height: 100%;
}
.header-main .logo {
  display: flex;
  align-items: flex-end;
  font-size: 2.2em;
  font-weight: 400;
  line-height: 1;
  padding-bottom: 0.1em;
}
.header-main .gnb {
  display: flex;
  align-items: flex-end;
  gap: 1.2em;
  font-size: var(--budrik-font-lg);
  font-weight: 400;
}

/* 고정 헤더 */
.header-main.fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 200;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  background: #fff;
  min-height: 56px;
  padding-top: 0.5em;
  padding-bottom: 0.5em;
  align-items: center;
}
.header-main.fixed .inner {
  display: flex;
  align-items: center;
  height: auto;
  min-height: 48px;
}
.header-main.fixed .logo,
.header-main.fixed .gnb {
  display: flex;
  align-items: center;
  height: 100%;
}
.header-main.fixed .logo {
  font-size: 2.2em;
}
.header-main.fixed .gnb {
  font-size: var(--budrik-font-lg);
}

.gnb-util-wrap,
.gnb,
.util {
  display: flex;
  align-items: flex-end;
  gap: 0.7em;
}
.gnb {
  display: flex;
  align-items: flex-end;
  gap: 1.2em;
  font-size: var(--budrik-font-lg);
  font-weight: 400;
  padding-top: 0;
}
.gnb ul {
  display: flex;
  gap: 1.2em;
  align-items: flex-end;
}
.gnb li {
  position: relative;
}
/* 메뉴 활성화 도트 및 스타일 - a.current만 사용 */
.gnb a {
  /* 기존 스타일 유지 */
  display: inline-block;
  vertical-align: middle;
  position: relative;
}
.gnb a.current {
  color: var(--budrik-color-link);
  position: relative;
  overflow: visible;
}
.gnb a.current::before {
  content: '';
  display: block;
  position: absolute;
  left: 50%;
  top: -5px;
  transform: translate(-50%, -100%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #2979ff;
  z-index: 1;
  box-sizing: border-box;
  border: none;
  outline: none;
  pointer-events: none;
}
.gnb a:hover {
  color: var(--budrik-color-link);
}

.search-btn {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: none;
  border: none;
  width: 2em;
  height: auto;
  font-size: var(--budrik-font-md);
  color: var(--budrik-color-main);
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1.2;
  cursor: pointer;
  vertical-align: bottom;
  padding-bottom: 0.28em;
}
.search-btn svg {
  display: block;
  position: relative;
  top: 3px;
}

.header-top {
  background: var(--budrik-color-footer);
  border-bottom: 1px solid var(--budrik-color-border);
}
.header-top-inner {
  max-width: var(--budrik-max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 48px;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.header-top-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.mode-toggle, .header-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  padding: 4px 12px;
  height: auto;
  min-height: 32px;
  line-height: 1;
  vertical-align: middle;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid var(--budrik-color-border);
  color: var(--budrik-color-main);
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border 0.2s;
}
.mode-toggle svg, .header-btn svg {
  width: 14px;
  height: 14px;
  min-width: 14px;
  min-height: 14px;
  max-width: 14px;
  max-height: 14px;
  display: inline-block;
  vertical-align: middle;
  object-fit: contain;
  overflow: visible;
  margin-right: 6px;
}
.mode-toggle span, .header-btn span,
.mode-toggle, .header-btn {
  line-height: 1;
  vertical-align: middle;
}
.mode-toggle.dark {
  background: var(--budrik-color-main);
  color: #fff;
  border: 1px solid var(--budrik-color-main);
}
.mode-toggle:hover, .header-btn:hover {
  background: var(--budrik-color-sub);
  color: #fff;
  border-color: var(--budrik-color-sub);
}

/* gnb-util-wrap 오른쪽 정렬 */
.gnb-util-wrap {
  display: flex;
  align-items: center;
}

/* 헤더 하단 */
.header-bottom {
  background: #fff;
}
.header-bottom .inner {
  max-width: var(--budrik-max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 1em 0;
  border-top: 4px solid #111;
  border-bottom: 1px solid #e5e5e5;
  box-sizing: border-box;
  background: #fff;
  column-gap: 1.2em;
}
.bottom-left,
.bottom-right {
  display: flex;
  align-items: center;
  gap: 0.7em;
  min-width: 0;
  justify-content: flex-start;
}
.bottom-left {
  justify-content: flex-start;
}
.bottom-right {
  justify-content: flex-start;
}
.bottom-left .date, .bottom-right .date {
  color: #888;
  font-size: 0.95em;
  margin-left: 0.5em;
}
.bottom-right .trophy {
  font-size: 1.1em;
  margin-right: 0.3em;
}

/* 헤더 탑, 메인, 하단 inner 패딩 제거 */
.header-top-inner,
.header-main .inner,
.header-bottom .inner {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* 헤더 중앙 정렬 */
.header-main .inner {
  max-width: var(--budrik-max-width);
  margin: 0 auto;
}

.header-main.fixed ~ .header-bottom {
  display: none !important;
}


/* 검색 모달 최신 디자인 (중복 없이 1회만) */
.search-modal {
  position: fixed;
  z-index: 9999;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.search-modal-content {
  background: #fff;
  border-radius: 1.5em;
  padding: 2.5em 2em 2em 2em;
  max-width: 480px;
  width: 90vw;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.search-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.7em;
}
.search-modal-title {
  font-size: var(--budrik-font-lg);
  font-weight: 400;
  color: var(--budrik-color-main);
  letter-spacing: -0.02em;
}
.search-modal-close {
  position: static;
  top: auto;
  right: auto;
  margin-left: 1em;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 10;
  transition: none;
}
.search-modal-close svg {
  display: block;
}
.search-modal-close:hover {
  filter: none;
  background: none;
}
.search-modal-form {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 0;
  border: 2px solid #222;
  border-radius: 0.5em;
  padding: 0.2em 1.2em;
  background: #fff;
  box-shadow: none;
}
.search-modal-form input[type="text"] {
  flex: 1 1 0;
  font-size: 1.1em;
  padding: 0.7em 0.5em 0.7em 0;
  border: none;
  border-radius: 0;
  outline: none;
  background: #fff;
  font-family: inherit;
  box-shadow: none;
}
.search-modal-form input[type="text"]:focus {
  background: #fff;
}
.search-modal-form input[type="text"]::placeholder {
  color: #bbb;
  font-size: 1em;
}
.search-modal-search-btn {
  background: none;
  border: none;
  border-radius: 50%;
  width: 2.6em;
  height: 2.6em;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 0;
  cursor: pointer;
  transition: background 0.2s;
}
.search-modal-search-btn:hover {
  background: #f0f0f0;
}
.search-modal-search-btn svg {
  display: block;
}


/* ===== 로고 하단정렬 보장 (텍스트/이미지 모두) ===== */



/* 헤더 하단 요소 */
.issue-label {
  font-size: 14px;
  font-weight: 700;
  color: #007aff;
}
.headline {
  color: var(--budrik-color-main);
  font-weight: 600;
}
.header-bottom .headline {
  color: inherit;
  font-weight: 400;
}

/* 06. Entry Content */
#content {
  width: 100%;
}

/* 포스트 헤더 */
.post-header {
  margin: 0;
  border: none;
  padding: var(--budrik-post-header-padding);
}
.post-header h1 {
  font-size: var(--budrik-font-xl);
  font-weight: 700;
}
.post-header h1 span {
  /* color: var(--budrik-color-sub); */
}

/* 포스트 아이템(기본) */
.post-item {
  border-bottom: 1px solid var(--budrik-color-border);
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 0.7em 0;
}
.post-item:first-child {
  border-top: 1px solid var(--budrik-color-border);
}
.post-item.has-thumb {
  gap: 1em;
}
.post-item.has-desc {
  padding-bottom: 1.5em;
}
.post-item.has-category,
.post-item.has-date {
  /* 필요시 추가 여백/정렬, 현재는 기본값만 */
}
.post-item.only-title {
  gap: 0.2em;
  margin-bottom: 0.5em;
  padding-bottom: 0.5em;
}
.post-item a {
  display: flex;
  align-items: center;
  gap: 0.2em;
  width: 100%;
  text-decoration: none;
  color: inherit;
}
.post-item a:hover {
  /* transform: translateY(-2px); */
}
.post-item a:hover .title {
  color: var(--budrik-color-link, #04beb8);
}
.post-item .title {
  display: block;
  font-family: var(--budrik-font-family, 'Pretendard', 'Apple SD Gothic Neo', 'Malgun Gothic', '맑은 고딕', '돋움', Dotum, Arial, sans-serif);
  font-size: var(--budrik-font-lg);
  font-weight: 400;
  color: var(--budrik-color-main);
  margin-bottom: 8px;
  line-height: 1.4;
  transition: color 0.2s;
}
.post-item .excerpt {
  display: block;
  font-size: var(--budrik-font-md);
  color: var(--budrik-color-gray);
  line-height: 1.6;
  margin-bottom: 16px;
}
.post-item .meta {
  margin-top: 4px;
  display: flex;
  gap: 8px;
  font-size: var(--budrik-font-sm);
  color: var(--budrik-color-gray);
}
.post-item .date {
  display: inline-block;
  color: #aaa;
}
.post-item .info {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
}

/* 썸네일 위치 기본값 (옵션 적용 전) */


/* 10. Option(Color Type & List Type) */
/* 색상 옵션 */
.color-type-1 {
  --color-sub: #007aff;
  --color-point: #04beb8;
}
.color-type-2 {
  --color-sub: #ff3b30;
  --color-point: #ff9500;
}
.color-type-3 {
  --color-sub: #34c759;
  --color-point: #30d158;
}

/* 리스트 타입 */
.list-type-1 .post-item {
  display: flex;
  gap: 24px;
}
.list-type-1 .post-item .thum {
  width: 200px;
  height: 150px;
  flex-shrink: 0;
}
.list-type-2 .post-item {
  text-align: center;
}
.list-type-2 .post-item .thum {
  height: 250px;
}

/* 옵션별 썸네일/요약 표시 제어 */
.list-latter-thumb-none .thum {
  display: none !important;
}
.list-latter-thumb-right .post-item .info {
  order: 1;
  flex: 1 1 0%;
  min-width: 0;
}
.list-latter-content-list .excerpt {
  display: none !important;
}
.list-latter-content-list-excerpt .excerpt {
  display: block !important;
}

/* 07. Comment */
.comments {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--budrik-color-border);
}
.comments h2 {
  font-size: 24px;
  font-weight: 600;
  color: var(--budrik-color-main);
  margin-bottom: 24px;
}
.tt-comments-wrap {
  width: 100%;
}

/* 08. Aside(sidebar) */
#aside {
  width: 20em;
}
.sidebar-1,
.sidebar-2 {
  margin-bottom: var(--budrik-spacing-sm);
}
.sidebar-1 h2,
.sidebar-2 h2 {
  font-size: var(--budrik-font-lg);
  font-weight: 600;
  color: var(--budrik-color-main);
  margin-bottom: var(--budrik-spacing-sm);
  padding-bottom: 0.5em;
  border-bottom: 0.15em solid var(--budrik-color-sub);
}

/* 카테고리 */
.category {
  margin-bottom: var(--budrik-spacing-sm);
}
.category ul {
  display: flex;
  flex-direction: column;
  gap: var(--budrik-spacing-xs);
}
.category li {
  list-style: none;
}
.category a {
  display: block;
  padding: 0.5em 1em;
  font-size: var(--budrik-font-md);
  color: var(--budrik-color-main);
  border-radius: 0.375em;
  transition: var(--budrik-transition);
}
.category a:hover {
  background: var(--budrik-color-footer);
  color: var(--budrik-color-link);
}

/* 공지사항 */
.notice ul {
  display: flex;
  flex-direction: column;
  gap: var(--budrik-spacing-xs);
}
.notice li {
  list-style: none;
}
.notice a {
  display: block;
  padding: 0.5em 0;
  font-size: var(--budrik-font-sm);
  color: var(--budrik-color-main);
  border-bottom: 1px solid var(--budrik-color-border);
  transition: var(--budrik-transition);
}
.notice a:hover {
  color: var(--budrik-color-link);
}

/* 포스트 리스트 */
.post-list.tab-ui {
  margin-bottom: 32px;
}
.tab-list {
  display: none;
}
.tab-list.active {
  display: block;
}
.tab-list h2 {
  font-size: 18px;
  font-weight: 600;
  color: var(--budrik-color-main);
  margin-bottom: 16px;
}
.tab-list ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tab-list li {
  list-style: none;
}
.tab-list a {
  display: flex;
  gap: 12px;
  padding: 8px;
  border-radius: 6px;
  transition: var(--budrik-transition);
}
.tab-list a:hover {
  background: var(--budrik-color-footer);
}
.tab-list img {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}
.tab-list .title {
  font-size: 14px;
  font-weight: 500;
  color: var(--budrik-color-main);
  line-height: 1.4;
  margin-bottom: 4px;
}
.tab-list .date {
  font-size: 12px;
  color: var(--budrik-color-gray);
}

/* 최근댓글 */
.recent-comment ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.recent-comment li {
  list-style: none;
}
.recent-comment a {
  display: block;
  padding: 8px 0;
  font-size: 14px;
  color: var(--budrik-color-main);
  border-bottom: 1px solid var(--budrik-color-border);
  transition: var(--budrik-transition);
}
.recent-comment a:hover {
  color: var(--budrik-color-link);
}

/* 소셜 리스트 */
.social-list.tab-ui {
  margin-bottom: 32px;
}
.social-channel ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.social-channel li {
  list-style: none;
}
.social-channel a {
  display: block;
  padding: 6px 12px;
  font-size: 12px;
  color: var(--budrik-color-main);
  background: var(--budrik-color-footer);
  border-radius: 12px;
  transition: var(--budrik-transition);
}
.social-channel a:hover {
  background: var(--budrik-color-sub);
  color: #fff;
}

/* 태그 */
.tags {
  margin-bottom: 32px;
}
.tags a {
  display: inline-block;
  padding: 4px 8px;
  margin: 2px;
  font-size: 12px;
  color: var(--budrik-color-main);
  background: var(--budrik-color-footer);
  border-radius: 4px;
  transition: var(--budrik-transition);
}
.tags a:hover {
  background: var(--budrik-color-sub);
  color: #fff;
}

/* 카운트 */
.count {
  margin-bottom: 32px;
}
.count h2 {
  font-size: 18px;
  font-weight: 600;
  color: var(--budrik-color-main);
  margin-bottom: 16px;
}
.count p {
  font-size: 14px;
  color: var(--budrik-color-gray);
  margin-bottom: 4px;
}
.count .total {
  font-size: 24px;
  font-weight: 700;
  color: var(--budrik-color-sub);
  margin-bottom: 8px;
}

/* 09. ETC */
/* 페이지네이션 */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.3em;
  margin: 3em 0;
}
.pagination a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 14px;
  color: var(--budrik-color-main);
  background: var(--budrik-color-bg);
  border: 1px solid var(--budrik-color-border);
  border-radius: 6px;
  transition: var(--budrik-transition);
  box-sizing: border-box;
  text-align: center;
  padding: 0;
  vertical-align: middle;
  line-height: 1;
}
.pagination a > span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.pagination a > span.selected {
  background: var(--budrik-color-sub);
  color: #fff;
  border-color: var(--budrik-color-sub);
  border: 1px solid var(--budrik-color-sub);
  border-radius: 6px;
}
.pagination a:hover {
  background: var(--budrik-color-sub);
  color: #fff;
  border-color: var(--budrik-color-sub);
}
.pagination .prev,
.pagination .next {
  width: auto;
  padding: 0 16px;
}

/* 태그 페이지 */
.tags {
  margin-bottom: 32px;
}
.tags a {
  display: inline-block;
  padding: 8px 16px;
  margin: 4px;
  font-size: 14px;
  color: var(--budrik-color-main);
  background: var(--budrik-color-footer);
  border-radius: 6px;
  transition: var(--budrik-transition);
}
.tags a:hover {
  background: var(--budrik-color-sub);
  color: #fff;
}

/* 보호된 글 */
.post-item.protected {
  text-align: center;
  padding: 48px 0;
}
.protected_form {
  max-width: 400px;
  margin: 0 auto;
  padding: 32px;
  background: var(--budrik-color-footer);
  border-radius: 8px;
}
.protected_form h2 {
  font-size: 24px;
  font-weight: 600;
  color: var(--budrik-color-main);
  margin-bottom: 16px;
}
.protected_form p {
  font-size: 16px;
  color: var(--budrik-color-gray);
  margin-bottom: 24px;
}
.protected_form input {
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  border: 1px solid var(--budrik-color-border);
  border-radius: 6px;
  margin-bottom: 16px;
  box-sizing: border-box;
}
.protected_form .btn {
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: var(--budrik-color-sub);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--budrik-transition);
}
.protected_form .btn:hover {
  background: var(--budrik-color-hover);
}

/* 관련글 */
.related-articles {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--budrik-color-border);
}
.related-articles h2 {
  font-size: 24px;
  font-weight: 600;
  color: var(--budrik-color-main);
  margin-bottom: 24px;
}
.related-articles ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.related-articles li {
  list-style: none;
}
.related-articles a {
  display: block;
  transition: var(--budrik-transition);
}
.related-articles a:hover {
  transform: translateY(-2px);
}
.related-articles figure {
  width: 100%;
  height: 120px;
  background: var(--budrik-color-footer);
  border-radius: 6px;
  margin-bottom: 8px;
  overflow: hidden;
}
.related-articles img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.related-articles .title {
  font-size: 14px;
  font-weight: 500;
  color: var(--budrik-color-main);
  line-height: 1.4;
}

/* 푸터 */
#footer {
  background: var(--budrik-color-footer);
  border-top: 1px solid var(--budrik-color-border);
  padding: 48px 0 24px;
  margin-top: 48px;
}
#footer .inner {
  max-width: var(--budrik-max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.order-menu {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 32px;
}
.order-menu a {
  font-size: 16px;
  color: var(--budrik-color-main);
  transition: var(--budrik-transition);
}
.order-menu a:hover {
  color: var(--budrik-color-link);
}
.page-top {
  display: block;
  width: 48px;
  height: 48px;
  background: var(--budrik-color-sub);
  color: #fff;
  text-align: center;
  line-height: 48px;
  border-radius: 50%;
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  transition: var(--budrik-transition);
}
.page-top:hover {
  background: var(--budrik-color-hover);
  transform: translateY(-2px);
}
.meta,
.copyright {
  text-align: center;
  font-size: 14px;
  color: var(--budrik-color-gray);
}

/* 11. Retina Display */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .logo img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* === 헤더 상단 버튼/토글 일관 스타일(중복 제거) === */


/* 헤더 상단 버튼 영역(.header-top-inner, .header-top-right)에 align-items: center를 강제 적용하여 버튼들이 세로 중앙 정렬되도록 한다. */
.header-top-inner,
.header-top-right {
  align-items: center !important;
}

.header-top-inner {
  height: auto !important;
  min-height: 40px;
  padding-top: 4px;
  padding-bottom: 4px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  max-width: var(--budrik-max-width);
  margin: 0 auto;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.header-top-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.mode-toggle, .header-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  padding: 4px 12px;
  height: auto;
  min-height: 32px;
  line-height: 1;
  vertical-align: middle;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid var(--budrik-color-border);
  color: var(--budrik-color-main);
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border 0.2s;
}
.mode-toggle svg, .header-btn svg {
  width: 14px;
  height: 14px;
  min-width: 14px;
  min-height: 14px;
  max-width: 14px;
  max-height: 14px;
  display: inline-block;
  vertical-align: middle;
  object-fit: contain;
  overflow: visible;
  margin-right: 6px;
}
.mode-toggle span, .header-btn span,
.mode-toggle, .header-btn {
  line-height: 1;
  vertical-align: middle;
}
.mode-toggle.dark {
  background: var(--budrik-color-main);
  color: #fff;
  border: 1px solid var(--budrik-color-main);
}
.mode-toggle:hover, .header-btn:hover {
  background: var(--budrik-color-sub);
  color: #fff;
  border-color: var(--budrik-color-sub);
}

/* 12. Media Screen (Responsive) */
@media (max-width: 1024px) {
  .header-top-inner {
    min-height: 28px;
    padding-top: 6px;
    padding-bottom: 6px;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .header-top-right {
    gap: 4px;
  }
  .mode-toggle, .header-btn {
    font-size: 11px;
    padding: 4px 6px;
    height: auto;
    min-height: 22px;
  }
  .mode-toggle svg, .header-btn svg {
    width: 9px;
    height: 9px;
    margin-right: 2px;
  }
}
@media (max-width: 767px) {
  .header-top-inner {
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    min-height: 18px;
    padding-top: 4px;
    padding-bottom: 4px;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .header-top-right {
    flex-wrap: wrap;
    gap: 2px;
  }
  .mode-toggle, .header-btn {
    font-size: 10px;
    padding: 4px 4px;
    height: auto;
    min-height: 18px;
  }
  .mode-toggle svg, .header-btn svg {
    width: 8px;
    height: 8px;
    margin-right: 1px;
  }
}
@media (max-width: 480px) {
  .header-top-inner {
    padding: 2px 2vw;
    min-height: 16px;
  }
  .mode-toggle, .header-btn {
    font-size: 11px;
    padding: 4px 2px;
    height: auto;
    min-height: 16px;
  }
  .header-btn svg {
    width: 0.8em;
    height: 0.8em;
  }
}

body.fixed-header-main {
  padding-top: 56px;
}

.post-list-left-thumb {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--budrik-color-border);
}
.post-list-left-thumb .thum {
  flex: 0 0 140px;
  width: 140px;
  height: 100px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--budrik-color-footer);
  margin-bottom: 0;
}
.post-list-left-thumb .thum img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.post-list-left-thumb .info {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.post-list-left-thumb .title {
  font-size: 18px;
  font-weight: 600;
  color: var(--budrik-color-main);
  margin-bottom: 8px;
  line-height: 1.4;
}
.post-list-left-thumb .excerpt {
  font-size: 15px;
  color: var(--budrik-color-gray);
  line-height: 1.6;
  margin-bottom: 0;
}

/* 기존 .post-item .thum 기본값은 float 없음, width 100% → 옵션 적용 시 위 규칙이 우선됨 */
.is-hide { display: none !important; }

.hide-category .category { display: none !important; }
.hide-date .date { display: none !important; }

/* 글 목록(리스트) 내 카테고리 */
.post-item .list-category-option {
  display: inline-block;
  margin-right: 8px;
  color: var(--budrik-color-main);
}

/* 글 목록(리스트) 내 날짜 */
.post-item .list-date-option {
  display: inline-block;
  color: var(--budrik-color-gray);
}

.hide-category .post-item .list-category-option {
  display: none !important;
}
.hide-date .post-item .list-date-option {
  display: none !important;
}

.post-list-container {
  margin-top: 1.5em;
}

.post-item .title,
.post-item .excerpt,
.post-item .list-category-option,
.post-item .list-date-option {
  margin: 0;
  padding: 0;
}

.post-item .info {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
}

.post-item .title {
  margin: 0;
}

.post-item .excerpt,
.post-item .meta {
  margin: 0;
}

/* 기본적으로 margin-top 없음 */
.post-item .excerpt,
.post-item .meta {
  margin-top: 0;
}

/* "글+내용" 옵션일 때만 margin-top 적용 */
.list-latter-content-list-excerpt .post-item .excerpt:not(:first-child),
.list-latter-content-list-excerpt .post-item .meta:not(:first-child) {
  margin-top: 0.45em;
}

.post-item .thum.left {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.post-item .thum.left img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.post-item .excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-all;
  max-height: 4.5em;
  line-height: 1.5;
}

/* 기본적으로 margin-top 없음 */
.post-item .excerpt,
.post-item .meta {
  margin-top: 0;
}

/* "글+내용" 옵션일 때만 margin-top 적용 (더 넓게) */
.list-latter-content-list-excerpt .post-item .excerpt:not(:first-child),
.list-latter-content-list-excerpt .post-item .meta:not(:first-child) {
  margin-top: 0.7em;
}

.post-item.only-title-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--budrik-spacing-md, 0.7em) 0;
  border-bottom: 1px solid var(--budrik-color-border);
}
.post-item.only-title-meta .meta-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.7em;
}
.post-item.only-title-meta .list-category-option {
  color: var(--budrik-color-gray);
  font-size: var(--budrik-font-sm, 0.95em);
}
.post-item.only-title-meta .title {
  font-family: var(--budrik-font-family, 'Pretendard', 'Apple SD Gothic Neo', 'Malgun Gothic', '맑은 고딕', '돋움', Dotum, Arial, sans-serif);
  font-size: var(--budrik-font-lg);
  font-weight: var(--budrik-font-weight, 400);
  color: var(--budrik-color-main);
}
.post-item.only-title-meta .list-date-option {
  color: var(--budrik-color-gray);
  font-size: var(--budrik-font-sm, 0.95em);
  white-space: nowrap;
}

/* --- 리스트/썸네일 구조 최소/명확하게 재작성 --- */
.post-item {
  border-bottom: 1px solid #eee;
  margin: 0;
  padding: 1.2em 0;
}
.post-item.list-latter-thumb-right a,
.post-item.list-latter-thumb-left a {
  display: flex;
  align-items: flex-start;
  gap: 1.2em;
  width: 100%;
}
.post-item.list-latter-thumb-right a {
  flex-direction: row-reverse;
}
.post-item.list-latter-thumb-left a {
  flex-direction: row;
}
.post-item .thum {
  width: 7.5rem;
  height: 7.5rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375em;
  overflow: hidden;
  margin: 0;
  background: none;
}
.post-item .thum img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.post-item .info {
  flex: 1 1 0%;
  min-width: 0;
}

.list-comment-option {
  display: inline-block;
  margin-right: 0;
  vertical-align: baseline;
}
.list-comment-option:hover {
  color: var(--budrik-color-point, #04beb8);
}
.list-comment-option:hover svg {
  color: var(--budrik-color-point, #04beb8);
}
.hide-comment .list-comment-option { display: none !important; }

.meta, .info, .post-item {
  color: var(--budrik-color-main, #222);
}

.post-item .list-category-option,
.post-item .list-date-option,
.post-item .list-comment-option,
.post-item .list-comment-option .comment-count {
  display: inline-block;
  vertical-align: middle;
  /* font-size 없음! */
}

.post-item .list-comment-option svg {
  width: 14px;
  height: 14px;
  vertical-align: -2px;
}

.post-item .list-comment-option .comment-count {
  display: inline-block;
  vertical-align: middle;
  line-height: 1;
  padding-left: 0;
  margin-left: 0;
  position: relative;
  top: -2px;
}

/* --- 사이드바 모든 모듈 공통 스타일 --- */
.module {
  margin-bottom: var(--budrik-spacing-sm);
}
.module-title {
  font-size: var(--budrik-font-lg);
  font-weight: 600;
  color: var(--budrik-color-main);
  margin-bottom: var(--budrik-spacing-sm);
  padding-bottom: 0.5em;
  border-bottom: 0.15em solid var(--budrik-color-sub);
}
/* --- 공지사항 --- */
.module.notice ul {
  display: flex;
  flex-direction: column;
  gap: var(--budrik-spacing-xs);
  margin: 0;
  padding: 0;
}
.module.notice li {
  list-style: none;
}
.module.notice a {
  display: block;
  padding: 0.5em 0;
  font-size: var(--budrik-font-sm);
  color: var(--budrik-color-main);
  border-bottom: 1px solid var(--budrik-color-border);
  transition: var(--budrik-transition);
}
.module.notice a:hover {
  color: var(--budrik-color-link);
}
/* --- 카테고리 --- */
.module.category ul {
  display: flex;
  flex-direction: column;
  gap: var(--budrik-spacing-xs);
  margin: 0;
  padding: 0;
}
.module.category li {
  list-style: none;
}
.module.category a {
  display: block;
  padding: 0.5em 1em;
  font-size: var(--budrik-font-md);
  color: var(--budrik-color-main);
  border-radius: 0.375em;
  transition: var(--budrik-transition);
}
.module.category a:hover {
  background: var(--budrik-color-footer);
  color: var(--budrik-color-link);
}
/* --- 태그 --- */
.module.tags {
  margin-bottom: var(--budrik-spacing-sm);
}
.module.tags a {
  display: inline-block;
  padding: 4px 8px;
  margin: 2px;
  font-size: 12px;
  color: var(--budrik-color-main);
  background: var(--budrik-color-footer);
  border-radius: 4px;
  transition: var(--budrik-transition);
}
.module.tags a:hover {
  background: var(--budrik-color-sub);
  color: #fff;
}
/* --- 방문자수 --- */
.module.count {
  margin-bottom: var(--budrik-spacing-sm);
}
.module.count .module-title {
  font-size: var(--budrik-font-lg);
  font-weight: 600;
  color: var(--budrik-color-main);
  margin-bottom: var(--budrik-spacing-sm);
  padding-bottom: 0.5em;
  border-bottom: 0.15em solid var(--budrik-color-sub);
}
.module.count p {
  font-size: var(--budrik-font-sm);
  color: var(--budrik-color-gray);
  margin-bottom: 4px;
}
.module.count .total {
  font-size: 1.5em;
  font-weight: 700;
  color: var(--budrik-color-sub);
  margin-bottom: 8px;
}
/* --- 최근댓글 --- */
.module.recent-comment ul {
  display: flex;
  flex-direction: column;
  gap: var(--budrik-spacing-xs);
  margin: 0;
  padding: 0;
}
.module.recent-comment li {
  list-style: none;
}
.module.recent-comment a {
  display: block;
  padding: 0.5em 0;
  font-size: var(--budrik-font-sm);
  color: var(--budrik-color-main);
  border-bottom: 1px solid var(--budrik-color-border);
  transition: var(--budrik-transition);
}
.module.recent-comment a:hover {
  color: var(--budrik-color-link);
}
/* --- 최근글/인기글 --- */
.module.recentPost, .module.popularPost {
  margin-bottom: var(--budrik-spacing-sm);
}
.module.recentPost .module-title, .module.popularPost .module-title {
  font-size: var(--budrik-font-lg);
  font-weight: 600;
  color: var(--budrik-color-main);
  margin-bottom: var(--budrik-spacing-sm);
  padding-bottom: 0.5em;
  border-bottom: 0.15em solid var(--budrik-color-sub);
}

.module.recentPost ul, .module.popularPost ul {
  list-style: none;
  padding: 0;
  margin: 0;
  gap: var(--budrik-spacing-xs);
  display: flex;
  flex-direction: column;
}

.module.recentPost li, .module.popularPost li {
  margin: 0;
  padding: 0;
}

.module.recentPost a, .module.popularPost a {
  display: flex;
  align-items: flex-start;
  gap: 0.8em;
  padding: 0.5em 0;
  text-decoration: none;
  color: var(--budrik-color-main);
  transition: var(--budrik-transition);
  min-width: 0;
}

.module.recentPost a:hover, .module.popularPost a:hover {
  color: var(--budrik-color-link, #04beb8);
}



.module.recentPost .title, .module.popularPost .title {
  font-size: var(--budrik-font-sm);
  line-height: 1.4;
  flex: 1 1 0%;
  min-width: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  overflow: hidden;
}

/* --- 이미지 없음 처리 --- */
.thumbnail-wrapper {
  width: 50px;
  height: 50px;
  background-color: rgba(57, 77, 96, 0.1);
  border-radius: 0.375em;
  position: relative;
  flex-shrink: 0;
}

.thumbnail-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 0.375em;
  object-fit: cover;
  z-index: 1;
}

.no-img-icon::before {
  content: "\e3b0";
  font-family: "Material Icons Outlined";
  font-size: 2em;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(57, 77, 96, 0.4);
  z-index: 0;
}
