/**
 * [기본 게시판 스킨]
 * - 역할: 썸네일 리스트 · 상세 · 글쓰기 (디자인 시스템)
 * - 작성/수정일: 2026-08-07
 */

/* --------------------------------------------------------------------------
 * 공통
 * -------------------------------------------------------------------------- */
.an-bo-list.section-pad--sm,
.an-bo-detail.section-pad--sm,
.an-bo-write.section-pad--sm {
  padding-bottom: var(--space-100, 100px);
}

/* [경로]
 * - 역할: 기본은 왼쪽 묶음(상세). 목록만 홈·제목 / RSS 분리
 * - 작성/수정일: 2026-08-07
 */
.an-bo-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin-bottom: var(--space-25, 24px);
  color: var(--muted-color, #7c7c7c);
  font-size: var(--fs-caption, 12px);
}

.an-bo-list .an-bo-crumb {
  justify-content: space-between;
  gap: 8px 16px;
}

.an-bo-crumb a {
  color: inherit;
  text-decoration: none;
}

.an-bo-crumb a:hover {
  color: var(--title-color, #171717);
}

.an-bo-crumb__trail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.an-bo-crumb__icon,
.an-bo-crumb__rss {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex-shrink: 0;
}

.an-bo-crumb__icon i,
.an-bo-crumb__rss i {
  font-size: 14px;
  line-height: 1;
}

.an-bo-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--title-color, #171717);
  cursor: pointer;
  text-decoration: none;
}

.an-bo-icon-btn:hover,
.an-bo-icon-btn[aria-expanded="true"] {
  color: var(--muted-color, #7c7c7c);
}

/* --------------------------------------------------------------------------
 * 목록
 * -------------------------------------------------------------------------- */
.an-bo-list__intro {
  margin-bottom: var(--space-30, 32px);
}

/* [목록 설명] H1 은 전역 page_hero — 작성/수정일: 2026-08-08 */
.an-bo-list__desc {
  margin: 0;
  max-width: 640px;
  color: var(--text-color, #444);
  font-size: var(--fs-body, 15px);
  line-height: 1.7;
}

.an-bo-cate {
  margin-bottom: var(--space-25, 24px);
  overflow-x: auto;
}

.an-bo-cate__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.an-bo-cate__list a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--border-color, #e5e5e5);
  border-radius: 999px;
  color: var(--text-color, #444);
  font-size: var(--fs-caption, 12px);
  font-weight: 500;
  text-decoration: none;
}

.an-bo-cate__list a:hover,
.an-bo-cate__list a#bo_cate_on {
  border-color: var(--title-color, #171717);
  background: var(--title-color, #171717);
  color: #fff;
}

.an-bo-list__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: var(--space-20, 20px);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color, #e5e5e5);
}

.an-bo-list__count {
  margin: 0;
  color: var(--text-color, #444);
  font-size: var(--fs-label, 14px);
}

.an-bo-list__count strong {
  color: var(--title-color, #171717);
}

.an-bo-list__page {
  margin-left: 8px;
  color: var(--muted-color, #7c7c7c);
}

.an-bo-list__tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.an-bo-list__admin {
  position: relative;
}

.an-bo-list__admin-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 20;
  min-width: 140px;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  border: 1px solid var(--border-color, #e5e5e5);
  border-radius: var(--radius-sm, 5px);
  background: var(--white-color, #fff);
  box-shadow: var(--shadow-md, 0 8px 24px rgba(0, 0, 0, 0.08));
}

.an-bo-list__admin-menu[hidden] {
  display: none;
}

.an-bo-list__admin-menu button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  border: 0;
  background: transparent;
  color: var(--title-color, #171717);
  font-size: var(--fs-label, 14px);
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.an-bo-list__admin-menu button:hover {
  background: var(--section-bg-color, #f5f5f5);
}

.an-bo-search {
  margin-bottom: var(--space-20, 20px);
}

.an-bo-search__form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
}

.an-bo-search__form > .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.an-bo-search__sfl {
  flex: 0 0 auto;
  min-width: 120px;
  height: 44px;
  padding: 0 44px 0 14px;
  border: 1px solid var(--border-color, #e5e5e5);
  border-radius: var(--radius-sm, 5px);
  background-color: var(--white-color, #fff);
  color: var(--title-color, #171717);
  font-size: var(--fs-label, 14px);
}

/* [검색 필드] input + 아이콘을 flex로 한 박스에 고정 (모바일 absolute 깨짐 방지) — 작성/수정일: 2026-08-08 */
.an-bo-search__field {
  display: flex;
  align-items: center;
  flex: 1 1 220px;
  min-width: 0;
  height: 44px;
  padding: 0 4px 0 0;
  border: 1px solid var(--border-color, #e5e5e5);
  border-radius: var(--radius-sm, 5px);
  background: var(--white-color, #fff);
}

.an-bo-search__field:focus-within {
  border-color: var(--title-color, #171717);
}

.an-bo-search__input {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  height: 100%;
  padding: 0 8px 0 14px;
  border: 0;
  border-radius: var(--radius-sm, 5px);
  background: transparent;
  color: var(--title-color, #171717);
  font-size: var(--fs-label, 14px);
  outline: none;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
}

.an-bo-search__input::-webkit-search-cancel-button,
.an-bo-search__input::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

.an-bo-search__icon-btn {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm, 5px);
  background: transparent;
  color: var(--muted-color, #7c7c7c);
  transform: none;
  cursor: pointer;
  line-height: 1;
}

.an-bo-search__icon-btn:hover {
  color: var(--title-color, #171717);
  background: var(--section-bg-color, #f5f5f5);
}

.an-bo-search__icon-btn i {
  font-size: 16px;
  line-height: 1;
  pointer-events: none;
}

.an-bo-list__select-all {
  margin-bottom: 12px;
}

.an-bo-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-color, #444);
  font-size: var(--fs-caption, 12px);
  cursor: pointer;
}

.an-bo-check input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--title-color, #171717);
}

/* 썸네일 리스트 아이템 */
.an-bo-thumb-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.an-bo-item {
  display: flex;
  gap: 12px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border-color, #e5e5e5);
}

.an-bo-item__chk {
  flex: 0 0 auto;
  padding-top: 6px;
}

.an-bo-item__chk input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--title-color, #171717);
}

.an-bo-item__body {
  display: flex;
  flex: 1 1 auto;
  gap: 20px;
  min-width: 0;
  align-items: flex-start;
}

.an-bo-item__content {
  flex: 1 1 auto;
  min-width: 0;
}

.an-bo-item__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-bottom: 10px;
}

.an-bo-item__cate,
.an-bo-item__badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--section-bg-color, #f5f5f5);
  color: var(--muted-color, #7c7c7c);
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
}

.an-bo-item__badge {
  background: var(--title-color, #171717);
  color: #fff;
}

/* [게시판 목록] 제목 h5. 전역 an-list-title(h6)보다 우선 — 작성/수정일: 2026-08-20 */
h2.an-list-title.an-bo-item__title {
  display: inline-flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin: 0;
  min-width: 0;
  font-size: var(--fs-h5);
  font-weight: 700;
  color: var(--title-color, #171717);
}

.an-bo-item__title a {
  color: inherit;
  text-decoration: none;
}

.an-bo-item__title a:hover {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

/* [목록 아이콘] 제목 옆 인라인 표시 — 작성/수정일: 2026-08-07 */
.an-bo-item__icon {
  flex: 0 0 auto;
  color: var(--muted-color, #7c7c7c);
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
}

.an-bo-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  color: var(--muted-color, #7c7c7c);
  font-size: var(--fs-caption, 12px);
}

.an-bo-item__meta li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.an-bo-item__meta i {
  font-size: 12px;
}

/* [게시판 목록] 조회·좋아요 — 전시 stats와 동일 — 작성/수정일: 2026-08-20 */
.an-bo-item__stat {
  font-size: var(--fs-label, 14px);
  font-weight: 600;
  line-height: 1;
}

.an-bo-item__stat i {
  display: inline-block;
  width: 1em;
  font-size: 1em;
  line-height: 1;
  text-align: center;
}

.an-bo-item__stat em {
  font-style: normal;
  font-size: var(--fs-caption);
  font-weight: inherit;
  line-height: 1;
  color: var(--title-color, #171717);
  font-variant-numeric: tabular-nums;
}

/* [좋아요] 목록 하트 버튼 — 작성/수정일: 2026-08-08 */
.an-bo-item__good {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.an-bo-item__good.is-active,
.an-bo-item__good:hover {
  color: var(--title-color, #171717);
}

.an-bo-item__excerpt {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--text-color, #444);
  font-size: var(--fs-label, 14px);
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.an-bo-item__aside {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-start;
  gap: 14px;
}

.an-bo-item__thumb {
  display: block;
  flex: 0 0 auto;
  width: 120px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 14px;
  background: var(--section-bg-color, #f5f5f5);
}

.an-bo-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.an-bo-item.is-no-thumb .an-bo-item__aside {
  margin-left: auto;
}

.an-bo-empty {
  padding: var(--space-80, 80px) 0;
  text-align: center;
  color: var(--muted-color, #7c7c7c);
}

.an-bo-empty p {
  margin: 0 0 20px;
  font-size: var(--fs-body, 15px);
}

.an-bo-list__paging {
  margin-top: var(--space-55, 70px);
}

/* [페이징] 전시 스킨 an-pagination--ex 와 동일 — 작성/수정일: 2026-08-07 */
.an-bo-list__paging .an-pagination--ex {
  margin-top: 0;
}

.an-bo-list__paging .an-pagination--ex .an-pagination__nav {
  width: auto;
  min-width: 72px;
  padding: 0 14px;
  font-size: var(--fs-caption, 12px);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.an-bo-list__paging .an-pagination--ex .active,
.an-bo-list__paging .an-pagination--ex a.active {
  border-radius: var(--radius-full, 999px);
}

/* [목록 반응형] 767px 이하 — 썸네일 가로 100%, 비율 5:2 — 작성/수정일: 2026-08-07 */
@media (max-width: 575.98px) {
  .an-bo-item__body {
    flex-direction: column;
  }

  .an-bo-item__aside {
    width: 100%;
  }

  .an-bo-item__thumb {
    width: 100%;
    aspect-ratio: 5 / 2;
  }
}

/* --------------------------------------------------------------------------
 * 상세
 * -------------------------------------------------------------------------- */

/* [뒤로가기] 헤더 아래 · 목록 이동 — 작성/수정일: 2026-08-07 */
.an-bo-detail__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 var(--space-20, 20px);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--title-color, #171717);
  font-size: var(--fs-label, 14px);
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  transition: color var(--duration-base, 0.2s);
}

.an-bo-detail__back i {
  font-size: 18px;
  line-height: 1;
}

.an-bo-detail__back:hover {
  color: var(--muted-color, #7c7c7c);
}

.an-bo-detail__back:hover span {
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.an-bo-detail .an-bo-crumb {
  justify-content: flex-start;
  gap: 8px;
  margin-bottom: var(--space-25, 24px);
}

.an-bo-detail__head {
  margin-bottom: var(--space-30, 32px);
}

.an-bo-detail__title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.an-bo-detail__title-main {
  min-width: 0;
}

.an-bo-detail__eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--muted-color, #7c7c7c);
  font-size: var(--fs-caption, 12px);
  font-weight: 600;
}

.an-bo-detail__title {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: var(--letter-tight, -0.02em);
  line-height: 1.3;
  color: var(--title-color, #171717);
}

.an-bo-detail__menu {
  position: relative;
  flex: 0 0 auto;
}

.an-bo-detail__menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--title-color, #171717);
  cursor: pointer;
}

.an-bo-detail__menu-btn:hover,
.an-bo-detail__menu-btn[aria-expanded="true"] {
  background: transparent;
  color: var(--title-color, #171717);
}

.an-bo-detail__menu-list {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 20;
  min-width: 148px;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  border: 1px solid var(--border-color, #e5e5e5);
  border-radius: var(--radius-sm, 5px);
  background: var(--white-color, #fff);
  box-shadow: var(--shadow-md, 0 8px 24px rgba(0, 0, 0, 0.08));
}

.an-bo-detail__menu-list[hidden] {
  display: none;
}

.an-bo-detail__menu-list a,
.an-bo-detail__menu-list button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  color: var(--title-color, #171717);
  font-family: inherit;
  font-size: var(--fs-label, 14px);
  font-weight: 500;
  line-height: inherit;
  text-decoration: none;
}

.an-bo-detail__menu-list button {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.an-bo-detail__menu-list a:hover,
.an-bo-detail__menu-list button:hover {
  background: var(--section-bg-color, #f5f5f5);
}

.an-bo-detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted-color, #7c7c7c);
  font-size: var(--fs-caption, 12px);
}

.an-bo-detail__meta li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.an-bo-detail__meta a {
  color: inherit;
  text-decoration: none;
}

.an-bo-detail__ip {
  margin-left: 2px;
}

.an-bo-detail__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color, #e5e5e5);
}

.an-bo-detail__icons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.an-bo-detail__icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--title-color, #171717);
  font: inherit;
  cursor: pointer;
  transition: color 0.2s ease;
}

.an-bo-detail__icon-btn.is-static {
  cursor: default;
}

.an-bo-detail__icon-btn:hover {
  background: transparent;
  color: var(--muted-color, #7c7c7c);
}

.an-bo-detail__icon-btn[aria-pressed="true"] {
  background: transparent;
  color: var(--title-color, #171717);
}

.an-bo-detail__icon-btn i {
  font-size: 18px;
  line-height: 1;
}

.an-bo-detail__icon-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: var(--radius-full, 999px);
  background: var(--white-color, #fff);
  border: 1px solid var(--border-color, #e5e5e5);
  color: var(--title-color, #171717);
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

.an-bo-detail__media {
  margin-bottom: var(--space-30, 32px);
}

.an-bo-detail__media img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md, 10px);
}

.an-bo-detail__content,
.an-bo-detail__aside {
  margin-bottom: var(--space-40, 40px);
}

.an-bo-detail__sec-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 600;
  color: var(--title-color, #171717);
}

/* [WYSIWYG] gurumi 본문(.g5-gurumi-view) 타이포는 에디터 CSS 전담 — 스킨은 제외 — 작성/수정일: 2026-08-12 */
.an-bo-detail__body {
  overflow-wrap: anywhere;
}

.an-bo-detail__body:not(.g5-gurumi-view) {
  color: var(--text-color, #444);
  font-size: var(--fs-body, 15px);
  line-height: 1.8;
}

.an-bo-detail__body:not(.g5-gurumi-view) :where(p) {
  margin: 0 0 1em;
}

.an-bo-detail__body:not(.g5-gurumi-view) :where(h1) {
  font-size: var(--fs-h4, 24px);
  font-weight: 700;
  color: var(--title-color, #171717);
}

.an-bo-detail__body:not(.g5-gurumi-view) :where(h2) {
  font-size: var(--fs-h5, 20px);
  font-weight: 700;
  color: var(--title-color, #171717);
}

.an-bo-detail__body:not(.g5-gurumi-view) :where(h3) {
  font-size: var(--fs-h6, 18px);
  font-weight: 700;
  color: var(--title-color, #171717);
}

.an-bo-detail__body:not(.g5-gurumi-view) a:not(.editor-link-preview__card) {
  color: var(--title-color, #171717);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.an-bo-detail__body img,
.an-bo-detail__body .editor-image {
  max-width: 100%;
  height: auto;
}

/* [이미지 정렬] gurumi data-align · view_image 래퍼 대응 — 작성/수정일: 2026-08-09 */
.an-bo-detail__body .editor-image[data-align="left"],
.an-bo-detail__body img[data-align="left"] {
  display: block;
  margin-inline: 0 auto 0 0;
}

.an-bo-detail__body .editor-image[data-align="center"],
.an-bo-detail__body img[data-align="center"] {
  display: block;
  margin-inline: auto;
}

.an-bo-detail__body .editor-image[data-align="right"],
.an-bo-detail__body img[data-align="right"] {
  display: block;
  margin-inline: 0 0 0 auto;
}

.an-bo-detail__body a.view_image:has(img[data-align="left"]),
.an-bo-detail__body a.view_image:has(img[data-align="center"]),
.an-bo-detail__body a.view_image:has(img[data-align="right"]) {
  display: block;
  max-width: 100%;
  width: fit-content;
}

.an-bo-detail__body a.view_image:has(img[data-align="center"]) {
  margin-inline: auto;
}

.an-bo-detail__body a.view_image:has(img[data-align="right"]) {
  margin-inline: 0 0 0 auto;
}

.an-bo-detail__body a.view_image:has(img[data-align="left"]) {
  margin-inline: 0 auto 0 0;
}

.an-bo-detail__signature {
  margin-top: 24px;
  color: var(--muted-color, #7c7c7c);
  font-size: var(--fs-caption, 12px);
}

.an-bo-resource-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border-color, #e5e5e5);
  border-radius: 6px;
  overflow: hidden;
}

.an-bo-resource-list li + li {
  border-top: 1px solid var(--border-color, #e5e5e5);
}

.an-bo-resource-list a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  color: var(--title-color, #171717);
  text-decoration: none;
  transition: background var(--duration-base, 0.2s);
}

.an-bo-resource-list a:hover {
  background: var(--section-bg-color, #f5f5f5);
}

.an-bo-resource-list a > i {
  flex: 0 0 auto;
  font-size: 18px;
  color: var(--muted-color, #7c7c7c);
  line-height: 1;
}

.an-bo-resource-list__main {
  display: grid;
  flex: 1 1 auto;
  gap: 4px;
  min-width: 0;
}

.an-bo-resource-list__main strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: var(--fs-label, 14px);
  font-weight: 600;
}

.an-bo-resource-list__main em {
  color: var(--muted-color, #7c7c7c);
  font-size: var(--fs-caption, 12px);
  font-style: normal;
}

.an-bo-detail__nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0 0 var(--space-40, 40px);
  padding-top: 0;
  border-top: 0;
}

.an-bo-detail__nav-item {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 18px 20px;
  border: 1px solid var(--border-color, #e5e5e5);
  border-radius: 6px;
  color: var(--title-color, #171717);
  text-decoration: none;
}

.an-bo-detail__nav-item span {
  font-size: var(--fs-caption, 12px);
  font-weight: 600;
  color: var(--muted-color, #7c7c7c);
}

.an-bo-detail__nav-item strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: var(--fs-label, 14px);
  font-weight: 600;
}

.an-bo-detail__nav-item--next {
  text-align: right;
}

.an-bo-detail__nav-item.is-empty {
  visibility: hidden;
}

.an-bo-detail__comments {
  padding-top: var(--space-20, 20px);
  border-top: 1px solid var(--border-color, #e5e5e5);
}

@media (max-width: 767.98px) {
  .an-bo-detail__nav {
    grid-template-columns: 1fr;
  }

  .an-bo-detail__nav-item--next {
    text-align: left;
  }
}

/* --------------------------------------------------------------------------
 * 글쓰기
 * -------------------------------------------------------------------------- */
.an-bo-write__intro {
  margin-bottom: var(--space-40, 40px);
}

.an-bo-write__title {
  margin: 0 0 var(--space-10, 10px);
  font-size: var(--fs-h3, 28px);
  font-weight: 700;
  letter-spacing: var(--letter-tight, -0.02em);
  color: var(--title-color, #171717);
}

.an-bo-write__desc {
  margin: 0;
  max-width: 640px;
  font-size: var(--fs-body, 15px);
  color: var(--text-color, #444);
  line-height: 1.7;
}

/* [기본 작성] 상세와 동일하게 an-container 전폭 사용 — 작성/수정일: 2026-08-09 */
.an-bo-write__form {
  max-width: none;
  width: 100%;
}

.an-bo-write__panel {
  margin-bottom: var(--space-40, 40px);
  padding-bottom: var(--space-40, 40px);
  border-bottom: 1px solid var(--border-color, #e5e5e5);
}

.an-bo-write__panel:has(+ .an-bo-write__actions) {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.an-bo-write__panel-title {
  margin: 0 0 var(--space-25, 24px);
  font-size: var(--fs-h6, 18px);
  font-weight: 700;
  color: var(--title-color, #171717);
  letter-spacing: var(--letter-tight, -0.02em);
}

.an-bo-write__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-20, 20px);
}

.an-bo-write__grid .form-inner {
  margin-top: 0;
}

.an-bo-write__options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: var(--space-20, 20px);
}

.an-bo-write__options-label {
  color: var(--title-color, #171717);
  font-size: var(--fs-label, 14px);
  font-weight: 500;
}

.an-bo-write__checks {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.an-bo-write__check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--text-color, #444);
  font-size: var(--fs-label, 14px);
  font-weight: 400;
  line-height: 1.4;
  cursor: pointer;
}

.an-bo-write__check input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--title-color, #171717);
  cursor: pointer;
}

.an-bo-write__subject {
  margin-top: var(--space-20, 20px);
}

.an-bo-write__content-label {
  display: block;
  margin-bottom: var(--space-10, 10px);
  color: var(--title-color, #171717);
  font-size: var(--fs-label, 14px);
  font-weight: 500;
  line-height: 1.5;
}

.an-bo-write__editor {
  width: 100%;
}

.an-bo-write__editor .g5-gurumi-wrap {
  width: 100%;
  border: 1px solid var(--border-color, #e5e5e5);
  border-radius: var(--radius-sm, 5px);
  background: var(--white-color, #fff);
  overflow: visible;
}

.an-bo-write__editor .g5-gurumi-toolbar {
  position: sticky;
  top: var(--an-editor-toolbar-sticky-top, 56px);
  z-index: 45;
  background: var(--white-color, #fff);
  border-bottom: 1px solid var(--border-color, #e5e5e5);
}

.an-bo-write__editor
  .g5-gurumi-wrap
  input:not([type="button"]):not([type="submit"]),
.an-bo-write__editor .g5-gurumi-wrap textarea,
.an-bo-write__editor .g5-gurumi-wrap select {
  width: auto;
  height: auto;
  min-height: 0;
  box-shadow: none;
}

.an-bo-write__editor .g5-gurumi-block-dropdown {
  padding: 0.35rem 0;
}

.an-bo-write__editor .g5-gurumi-block-item {
  min-height: 2.375rem;
  padding: 0.55rem 0.875rem;
  gap: 0.5rem;
  line-height: 1.35;
}

.an-bo-write__editor .g5-gurumi-block-divider {
  margin: 0.3rem 0;
}

.an-bo-write__editor textarea.g5-gurumi-source {
  display: none !important;
}

.an-bo-write__hint {
  margin: 8px 0 12px;
  color: var(--muted-color, #7c7c7c);
  font-size: var(--fs-caption, 12px);
}

.an-bo-write__captcha {
  max-width: 420px;
}

.an-bo-write__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  margin-top: var(--space-10, 10px);
  padding-top: var(--space-30, 32px);
  border-top: 1px solid var(--border-color, #e5e5e5);
}

@media (max-width: 767.98px) {
  .an-bo-write__grid {
    grid-template-columns: 1fr;
  }

  .an-bo-write__actions {
    flex-direction: column-reverse;
  }

  .an-bo-write__actions .primary-btn1,
  .an-bo-write__actions .secondary-btn {
    width: 100%;
    justify-content: center;
  }

  .an-bo-search__form {
    flex-direction: column;
    align-items: stretch;
  }

  .an-bo-search__sfl,
  .an-bo-search__field {
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .an-bo-search__field {
    display: flex;
  }

  .an-bo-search__icon-btn {
    flex: 0 0 36px;
  }
}
