/* 게시판(notice-board 등) 공통 */

.board_page .wrap_tit {
  margin: 0 0 48px;
  font-size: clamp(28px, 2.6vw, 30px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.03em;
  color: #171717;
}

.board-list-head,
.board-form-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.board-list-head .wrap_tit,
.board-form-head .wrap_tit {
  margin-bottom: 0;
}

.board-search .blind {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.board-search {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin: 20px 0 24px;
}

.board-search__count {
  margin: 0 auto 0 0;
  padding: 0 20px;
  align-self: center;
  color: #333;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}

.board-search__field {
  display: block;
  margin: 0;
}

.board-search__field--category,
.board-search__field--type {
  flex: 0 0 auto;
  width: 120px;
}

.board-search__field--keyword {
  /* flex: 1 1 220px; */
  min-width: 250px;
}

.board-search select,
.board-search input[type="search"] {
  box-sizing: border-box;
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #d5d5d5;
  border-radius: 20px;
  background: #fff;
  color: #171717;
  font-family: inherit;
  text-align: center;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.2;
  appearance: none;
  -webkit-appearance: none;
}
.board-search input[type="search"] {border-radius: 20px;}
.board-search select {
  padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M1.1 1.1 6 6l4.9-4.9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
}

.board-search input[type="search"]::placeholder {
  color: #999;
}

.board-search input[type="search"]::-webkit-search-decoration,
.board-search input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.board-search__submit {
  flex: 0 0 auto;
  min-width: 88px;
  height: 42px;
  padding: 0 18px;
  border: 1px solid #666;
  border-radius: 20px;
  background: #4a4a4a;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.board-search__submit:hover,
.board-search__submit:focus-visible {
  background: #1a1a1a;
  border-color: #1a1a1a;
}

.board-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  height: 42px;
  padding: 0 18px;
  border: 1px solid #171717;
  background: #fff;
  color: #171717;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.board-btn--primary {
  background: #171717;
  color: #fff;
}

.board-btn--primary:hover,
.board-btn--primary:focus-visible {
  background: #105bab;
  border-color: #105bab;
  color: #fff;
}

.board-btn--danger {
  background: #fff;
  border-color: #b42318;
  color: #b42318;
}

.board-btn--danger:hover,
.board-btn--danger:focus-visible {
  background: #b42318;
  border-color: #b42318;
  color: #fff;
}

.board-btn--ghost:hover,
.board-btn--ghost:focus-visible {
  background: #171717;
  color: #fff;
}

.board-list {
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
  border-bottom: 1px solid #d5d5d5;
}

.board-list li {
  border-top: 1px solid #d5d5d5;
}

.board-list > li > a,
.board-list__row,
.board-list__item-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 8px;
  color: inherit;
  text-decoration: none;
}

.board-list__cols {
  display: grid;
  grid-template-columns: 64px 88px minmax(0, 1fr) 100px 72px 110px;
  gap: 12px 16px;
  align-items: center;
  width: 100%;
}

.board-list__cols--head {
  padding: 10px 8px 12px;
  border-bottom: 1px solid #d5d5d5;
  color: #6b6b6b;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.board-list__cols--head .board-list__main {
  display: flex;
  justify-content: center;
  text-align: center;
}

.board-list--cols > li > a.board-list__row {
  display: grid;
  grid-template-columns: 64px 88px minmax(0, 1fr) 100px 72px 110px;
  gap: 12px 16px;
  justify-content: stretch;
  padding: 18px 8px;
}

.board-list__no,
.board-list__category,
.board-list__writer,
.board-list__views {
  flex: none;
  color: #6b6b6b;
  font-size: 14px;
  font-weight: 400;
  white-space: nowrap;
}

.board-list--cols .board-list__no,
.board-list--cols .board-list__category,
.board-list--cols .board-list__writer,
.board-list--cols .board-list__views,
.board-list--cols .board-list__date {
  text-align: center;
}

.board-list__no {
  font-weight: 600;
}

.board-list--cols .board-list__category {
  display: flex;
  justify-content: center;
  align-items: center;
}

.board-list--cols .board-list__main {
  min-width: 0;
}

.board-list--cols .board-list__meta {
  display: contents;
}

.board-list--cols time.board-list__date {
  margin: 0;
}

.board-list li.is-hidden {
  display: none;
}

.board-list__main {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  min-width: 0;
}

.board-list__title-link {
  display: inline-flex;
  min-width: 0;
  max-width: 100%;
  color: inherit;
  text-decoration: none;
}

.board-list__admin-btn {
  box-sizing: border-box;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  min-width: 52px;
  height: 28px;
  padding: 0 10px;
  border: 1px solid #c9c9c9;
  border-radius: 4px;
  background: #fff;
  color: #4a4a4a;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
  vertical-align: middle;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.board-list__admin-btn:hover,
.board-list__admin-btn:focus-visible {
  border-color: #171717;
  color: #171717;
}

.board-list__admin-btn--danger {
  border-color: #e0b4b4;
  color: #b42318;
}

.board-list__admin-btn--danger:hover,
.board-list__admin-btn--danger:focus-visible {
  border-color: #b42318;
  background: #fff5f5;
  color: #b42318;
}

.board-list__badge {
  flex: none;
  margin-right: 20px;
  padding: 10px 18px;
  border-radius: 45px;
  background: #e7eef8;
  color: #105bab;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
}

.board-list__badge--10 {
  background: #e8f6ee;
  color: #1b7a45;
}

.board-list__badge--20 {
  background: #fff1e8;
  color: #c45a12;
}

.board-list__badge--30 {
  background: #e7eef8;
  color: #105bab;
}

/* 서포터즈 운영진 게시판(G410) */
.board-list__badge--log {
  background: #e8f6ee;
  color: #1b7a45;
}

.board-list__badge--plan {
  background: #e7eef8;
  color: #105bab;
}

.board-list__badge--promotion {
  background: #fff1e8;
  color: #c45a12;
}

.board-list__badge--report {
  background: #f3eef8;
  color: #6b3fa0;
}

.board-list__badge--open {
  background: #e8f6ee;
  color: #1b7a45;
}

.board-list__badge--closed {
  background: #ececec;
  color: #6b6b6b;
}

.board-list__badge--upcoming {
  background: #fff1e8;
  color: #c45a12;
}

.board-list__badge--extended {
  background: #e8f1ff;
  color: #2458c5;
}

.board-list__title {
  position: relative;
  display: inline-flex;
  align-items: center;
  max-width: 820px;
  padding: 0 5px;
  overflow: hidden;
  background-image: linear-gradient(#a8cff9, #a8d2ff);
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: 0 10px;
  color: #4a4a4a;
  font-size: clamp(18px, 1.4vw, 20px);
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: color 0.3s ease, background-size 0.45s ease;
}

.board-list__title > span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.board-list__attach,
.board-list__link {
  flex: none;
  display: inline-block;
  margin-left: 8px;
  padding: 0.08em 0.16em 0.08em 0;
  color: #8a8a8a;
  font-size: 0.72em;
  line-height: 1;
}

.board-list a:hover .board-list__title,
.board-list a:focus-visible .board-list__title,
.board-list__title-link:hover .board-list__title,
.board-list__title-link:focus-visible .board-list__title {
  color: #111;
  background-size: 100% 10px;
}

.board-list a:hover .board-list__attach,
.board-list a:focus-visible .board-list__attach,
.board-list a:hover .board-list__link,
.board-list a:focus-visible .board-list__link,
.board-list__title-link:hover .board-list__link,
.board-list__title-link:focus-visible .board-list__link {
  color: #105bab;
}

.board-list time {
  flex: none;
  color: #6b6b6b;
  font-size: 16px;
  font-weight: 300;
}

.board-list__tail {
  display: inline-flex;
  align-items: center;
  flex: none;
  gap: 28px;
}

.board-list:not(.board-list--cols) .board-list__row > .board-list__main,
.board-list__item-inner > .board-list__main,
.webzine-list__main {
  flex: 1 1 auto;
}

.board-list:not(.board-list--cols) .board-list__no,
.webzine-list .board-list__no,
.board-list__item-inner > .board-list__no {
  min-width: 36px;
  margin-right: 6px;
  color: #6b6b6b;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
}

.board-list__tail .board-list__views {
  min-width: 2.5em;
  color: #6b6b6b;
  font-size: 16px;
  font-weight: 300;
  text-align: right;
}

.board-list__empty {
  margin: 48px 0;
  text-align: center;
  color: rgba(0, 0, 0, 0.45);
  font-size: 16px;
}

.board-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 40px;
}

.board-pagination__pages {
  display: contents;
}

.board-pagination__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #d5d5d5;
  background: #fff;
  color: #4a4a4a;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.board-pagination__btn:hover,
.board-pagination__btn:focus-visible {
  border-color: #171717;
  color: #171717;
  outline: none;
}

.board-pagination__btn.is-active {
  background: #171717;
  border-color: #171717;
  color: #fff;
  pointer-events: none;
}

.board-pagination__btn.is-disabled,
.board-pagination__btn:disabled,
.board-pagination__btn[aria-disabled="true"] {
  opacity: 0.35;
  pointer-events: none;
  cursor: default;
}

/* 상세 */

.board-view {
  max-width: 100%;
  margin: 0 auto;
}

.board-view .wrap_tit {
  margin-bottom: 20px;
}

.board-view__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px 24px;
  margin: 0 0 40px;
  color: #6b6b6b;
  font-size: 15px;
  font-weight: 300;
}

.board-view__meta-left {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  min-width: 0;
}

.board-view__meta-left em {
  margin-left: 6px;
  font-style: normal;
  font-weight: 500;
  color: #333;
}

.board-view__meta-right {
  display: inline-flex;
  align-items: center;
  flex: none;
  gap: 12px;
}

.board-view__meta time {
  flex: none;
  font-weight: 300;
}

.board-view__status {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 45px;
  background: #e8f6ee;
  color: #1b7a45;
  font-size: 13px;
  font-weight: 700;
}

.board-view__status.is-closed {
  background: #ececec;
  color: #6b6b6b;
}

.board-view__status.is-upcoming {
  background: #fff1e8;
  color: #c45a12;
}

.board-view__status.is-extended {
  background: #e8f1ff;
  color: #2458c5;
}

.board-view__biz {
  display: grid;
  gap: 14px 24px;
  margin: 0 0 28px;
  padding: 24px 28px;
  border: 1px solid #e5e5e5;
  background: #fafafa;
}

.board-view__biz > div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-width: 0;
}

.board-view__biz dt {
  margin: 0;
  color: #6b6b6b;
  font-size: 14px;
  font-weight: 700;
}

.board-view__biz dd {
  margin: 0;
  min-width: 0;
  color: #171717;
  font-size: 15px;
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.board-view__pre {
  white-space: pre-wrap;
}

.board-view__share {
  display: inline-flex;
  align-items: center;
  margin: 0;
}

.board-view__share.board-share {
  margin: 0;
}

.board-view__meta .board-share__btn {
  padding: 4px 10px;
  font-size: 0.8125rem;
}

.board-view__body {
  padding: 40px 0 48px;
  border-top: 1px solid #d5d5d5;
  border-bottom: 1px solid #d5d5d5;
  font-size: 17px;
  line-height: 1.85;
  color: #171717;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.board-view__body a {
  overflow-wrap: anywhere;
}

.board-view__body img,
.board-view__body video {
  max-width: 100% !important;
  width: auto;
  height: auto !important;
  display: block;
}

.board-view__body figure {
  max-width: 100%;
  margin: 16px 0;
}

.board-view__body figure img {
  margin: 0 auto;
}

.board-view__body iframe {
  max-width: 100%;
  border: 0;
}

.board-view__table-scroll {
  width: 100%;
  max-width: 100%;
  margin: 20px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.board-view__body table {
  width: 100% !important;
  max-width: 100%;
  margin: 20px 0;
  border-collapse: collapse;
  border-spacing: 0;
  table-layout: auto;
  word-break: break-word;
}

.board-view__table-scroll > table {
  margin: 0;
}

.board-view__body th,
.board-view__body td {
  padding: 10px 12px;
  border: 1px solid #d5d5d5;
  vertical-align: top;
  text-align: left;
  color: #171717;
  font-size: 15px;
  line-height: 1.6;
  word-break: break-word;
}

.board-view__body th {
  background: #f7f8fa;
  font-weight: 700;
}

.board-view__body table img {
  max-width: 100% !important;
  height: auto !important;
}

.board-view__body p + p {
  margin-top: 14px;
}

.board-view__files {
  margin-top: 32px;
  padding: 24px 28px;
  background: #f7f8fa;
}

.board-view__files h3 {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 700;
  color: #171717;
}

.board-view__files ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.board-view__files li + li {
  margin-top: 8px;
}

.board-view__files a {
  display: flex;
  align-items: flex-start;
  max-width: 100%;
  min-width: 0;
  gap: 8px;
  color: #105bab;
  font-size: 15px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.board-view__files a i {
  flex: none;
  margin-top: 0.2em;
}

.board-view__files a span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.board-view__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 48px;
}

.board-view__foot > a:not(.board-btn) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  height: 48px;
  padding: 0 28px;
  border: 1px solid #171717;
  color: #171717;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.board-view__foot > a:not(.board-btn):hover,
.board-view__foot > a:not(.board-btn):focus-visible {
  background: #171717;
  color: #fff;
}

.board-view__foot .board-btn {
  min-width: 160px;
  height: 48px;
}

.board-view__foot .board-btn--primary {
  color: #fff;
}

.board-view__foot .board-btn--danger {
  min-width: 160px;
  height: 48px;
}

/* 등록/수정 폼 */

.board-form {
  max-width: 100%;
  margin: 32px auto 0;
}

.board-form__row {
  margin-bottom: 22px;
}

.board-form__row label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #171717;
}

.board-form__row input[type="text"],
.board-form__row input[type="url"],
.board-form__row input[type="date"],
.board-form__row select,
.board-form__row textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid #d5d5d5;
  background: #fff;
  color: #171717;
  font: inherit;
  font-size: 15px;
  line-height: 1.5;
}

.board-form__row input[type="date"] {
  min-height: 48px;
  appearance: none;
  -webkit-appearance: none;
  color-scheme: light;
}

.board-form__row input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.55;
  margin-left: 8px;
}

.board-form__row--inline > div {
  min-width: 0;
}

.board-form__row textarea {
  min-height: 280px;
  resize: vertical;
}

.board-form__row--editor .tox-tinymce {
  border: 1px solid #d5d5d5 !important;
  border-radius: 0 !important;
}

.board-form__row--editor .tox .tox-edit-area__iframe {
  background: #fff;
}

.board-form__row.is-off {
  display: none !important;
}

.board-form__row--inline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.board-form__hint {
  margin: 8px 0 0;
  color: #8a8a8a;
  font-size: 13px;
}

.board-form__files {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  color: #555;
  font-size: 14px;
}

.board-form__files li + li {
  margin-top: 4px;
}

/* 대표이미지 / 첨부파일 공통 미디어 영역 */

.board-media {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  margin-bottom: 22px;
}

.board-media--single {
  grid-template-columns: 1fr;
  max-width: 100%;
}

.board-media__panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 18px 18px 16px;
  border: 1px solid #d9dde3;
  border-radius: 12px;
  background: #fafbfc;
}

.board-media__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.board-media__head strong {
  color: #171717;
  font-size: 14px;
  font-weight: 700;
}

.board-media__badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #e8eef6;
  color: #105bab;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.board-media__panel .board-form__hint {
  margin: 0 0 12px;
}

.board-dropzone {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  min-height: 180px;
  margin: 0;
  overflow: hidden;
  border: 1.5px dashed #c5ccd6;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.board-dropzone:hover,
.board-dropzone:focus-within {
  border-color: #105bab;
  background: #f7faff;
}

.board-dropzone.is-dragover {
  border-color: #105bab;
  border-style: solid;
  background: #eef5ff;
  box-shadow: inset 0 0 0 2px rgba(16, 91, 171, 0.12);
}

.board-dropzone__input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  border: 0;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.board-dropzone__preview {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 180px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.board-dropzone__preview img {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.board-dropzone__preview:not(.is-empty) img {
  display: block;
}

.board-dropzone__clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin: 10px 0 0;
  padding: 8px 12px;
  border: 1px solid #e2b6b6;
  border-radius: 8px;
  background: #fff8f8;
  color: #c0392b;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}

.board-dropzone__clear[hidden] {
  display: none !important;
}

.board-dropzone__clear:hover,
.board-dropzone__clear:focus-visible {
  background: #ffecec;
  outline: none;
}

.board-dropzone__placeholder {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px 16px;
  color: #8a93a3;
  text-align: center;
}

.board-dropzone__preview.is-empty .board-dropzone__placeholder,
.board-dropzone--attach .board-dropzone__placeholder {
  display: flex;
}

.board-dropzone__placeholder i {
  font-size: 28px;
  color: #a8b0bd;
}

.board-dropzone__placeholder em {
  font-style: normal;
  font-size: 14px;
  font-weight: 600;
  color: #5b6472;
}

.board-dropzone__placeholder small {
  font-size: 12px;
  line-height: 1.4;
  color: #8a93a3;
}

.board-dropzone--attach {
  min-height: 140px;
}

.board-dropzone--attach .board-dropzone__preview {
  min-height: 140px;
  aspect-ratio: auto;
}

.board-form__files--live li,
.board-form__files li,
.board-attach__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  background: #fff;
  color: #333;
  font-size: 13px;
  word-break: break-all;
  cursor: grab;
}

.board-form__files li + li,
.board-attach__item + .board-attach__item {
  margin-top: 6px;
}

.board-form__files li i,
.board-attach__item > i {
  flex: none;
  color: #8a93a3;
}

.board-attach__item.is-dragging {
  opacity: 0.55;
}

.board-attach__grip {
  flex: none;
  width: 10px;
  height: 14px;
  background: radial-gradient(circle, #9aa0a6 1.1px, transparent 1.2px);
  background-size: 5px 5px;
}

.board-attach__name {
  flex: 1 1 auto;
  min-width: 0;
}

.board-attach__remove {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #d14343;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

.board-attach__remove:hover,
.board-attach__remove:focus-visible {
  background: #fff1f1;
  outline: none;
}

@media (max-width: 768px) {
  .board-media {
    grid-template-columns: 1fr;
  }

  .board-media--single {
    max-width: none;
  }
}

.board-form__actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid #d5d5d5;
}

@media (max-width: 960px) {
  .board_page .wrap_tit {
    margin-bottom: 15px;
    font-size: 24px;
  }

  /* 공통 게시판: 구분 → 제목 → 날짜 (왼쪽 정렬) */
  .board-list:not(.board-list--cols) > li > a,
  .board-list:not(.board-list--cols) .board-list__row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 8px;
    padding: 16px 4px;
    text-align: left;
  }

  .board-list:not(.board-list--cols) .board-list__main {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    text-align: left;
  }

  .board-list:not(.board-list--cols) .board-list__no,
  .webzine-list .board-list__no, .board-list__views {display: none;}

  .board-list:not(.board-list--cols) .board-list__date,
  .board-list:not(.board-list--cols) time {
    align-self: flex-start;
    width: auto;
    margin: 0;
    text-align: left;
  }

  /* 운영진 게시판: 번호/구분 → 제목 → 작성자·조회·날짜 */
  .board-list__cols--head {
    display: none;
  }

  .board-list--cols > li > a.board-list__row {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "no category"
      "main main"
      "meta meta";
    gap: 8px 10px;
    align-items: center;
    justify-content: stretch;
    padding: 16px 4px;
    text-align: left;
  }

  .board-list--cols .board-list__no {
    grid-area: no;
    width: auto;
    text-align: left;
  }

  .board-list--cols .board-list__category {
    grid-area: category;
    justify-content: flex-start;
    text-align: left;
  }

  .board-list--cols .board-list__main {
    grid-area: main;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
    width: 100%;
    text-align: left;
  }

  .board-list--cols .board-list__meta {
    grid-area: meta;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 6px 14px;
    width: 100%;
  }

  .board-list--cols .board-list__writer,
  .board-list--cols .board-list__views,
  .board-list--cols .board-list__date {
    margin: 0;
    text-align: left;
  }

  .board-list--cols .board-list__views::before {
    content: "조회 ";
  }

  .board-list__badge {
    margin-right: 12px;
    padding: 8px 14px;
    font-size: 13px;
  }

  .board-list__title {
    max-width: 100%;
    font-size: 17px;
    white-space: normal;
  }

  .board-list time, .board-list__views {
    font-size: 14px;
  }

  .board-list-head,
  .board-form-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .board-search {
    margin: 16px 0 20px;
  }

  .board-search__count {
    flex: 1 1 100%;
    margin: 0 0 4px;
    font-size: 14px;
  }

  .board-search__field--category,
  .board-search__field--type {
    width: calc(50% - 4px);
  }

  .board-search__field--keyword {
    flex: 1 1 100%;
    min-width: auto;
  }

  .board-search__submit {
    width: 100%;
  }

  .board-view__meta {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 24px;
    font-size: 14px;
  }

  .board-view__meta-right {
    width: 100%;
    justify-content: space-between;
  }

  .board-view__body {
    padding: 28px 0 32px;
    font-size: 15px;
  }

  .board-view__body table,
  .board-view__table-scroll > table {
    width: auto !important;
    min-width: 640px;
    max-width: none;
    table-layout: auto;
  }

  .board-view__body th,
  .board-view__body td {
    padding: 8px 10px;
    font-size: 14px;
    min-width: 96px;
  }

  .board-view__files {
    padding: 18px 16px;
  }

  .board-form__row--inline {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .board-form__row input[type="text"], .board-form__row input[type="url"], 
  .board-form__row input[type="date"], .board-form__row select, .board-form__row textarea,
  .board-form__row input[type="date"] {
    padding: 6px 4px;font-size: 14px;     min-height: auto;
  }

  .board-form__row {
    margin-bottom: 10px;
  }
}

/* 웹진게시판 — 썸네일+제목+날짜 가로 목록 */

.webzine-list {
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
  border-bottom: 1px solid #d5d5d5;
}

.webzine-list > li {
  border-top: 1px solid #d5d5d5;
}

.webzine-list a {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 15px 8px;
  color: inherit;
  text-decoration: none;
}

.webzine-list__thumb {
  flex: none;
  display: block;
  width: 200px;
  height: 100px;
  overflow: hidden;
  background: #f0f2f5;
  border-radius: 10px;
}

.webzine-list__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.webzine-list__thumb-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #9aa3af;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.webzine-list__main {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 8px 10px;
  min-width: 0;
}

.webzine-list__main .board-list__badge {
  margin-right: 8px;
}

.webzine-list__title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  color: #4a4a4a;
  font-size: clamp(17px, 1.35vw, 20px);
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.webzine-list__title > span {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  padding: 0 2px;
  background-image: linear-gradient(#a8cff9, #a8d2ff);
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: 0 10px;
  text-overflow: ellipsis;
  transition: color 0.3s ease, background-size 0.45s ease;
}

.webzine-list time {
  flex: none;
  color: #6b6b6b;
  font-size: 16px;
  font-weight: 300;
  white-space: nowrap;
}

.webzine-list a:hover .webzine-list__thumb img,
.webzine-list a:focus-visible .webzine-list__thumb img {
  transform: scale(1.04);
}

.webzine-list a:hover .webzine-list__title,
.webzine-list a:focus-visible .webzine-list__title {
  color: #111;
}

.webzine-list a:hover .webzine-list__title > span,
.webzine-list a:focus-visible .webzine-list__title > span {
  color: #111;
  background-size: 100% 10px;
}

@media (max-width: 768px) {
  .board-list__title {font-size: 16px; padding: 0 2px 0 0;}
  .board-list:not(.board-list--cols) .board-list__main {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
    gap: 6px 8px;
  }
  .board-list:not(.board-list--cols) > li > a,
  .board-list__item-inner {gap: 6px; padding: 12px 4px; align-items: flex-start; flex-direction: column;}
  .board-pagination__btn {
    min-width: 25px;
    height: 25px;
    padding: 8px;
    font-size: 12px;
  }
  .board-pagination {gap: 3px;}
  .board-search select, .board-search input[type="search"] {
    height: 35px;
    font-size: 13px;
  }

  .webzine-list a {
    gap: 12px;
    padding: 14px 4px;
  }

  .webzine-list__thumb {
    width: 96px;
    height: 64px;
  }

  .webzine-list__title {
    font-size: 16px;
    white-space: normal;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .webzine-list time {
    font-size: 13px;
  }
}

@media (max-width: 520px) {
  .webzine-list a {
    flex-wrap: wrap;
    flex-direction: column;
    align-items: flex-start;
  }
  .webzine-list__thumb {
    width: auto;
    height: auto;
  }

  .webzine-list__main {
    flex: 1 1 calc(100% - 112px);
  }

  .webzine-list .board-list__tail {
    width: 100%;
    box-sizing: border-box;
  }

  .webzine-list time {
    width: auto;
    padding-left: 0;
  }
}

/* 갤러리게시판 — 카드 그리드 */

.gallery-board-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 24px;
  width: 100%;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.gallery-board-grid > li {
  margin: 0;
  min-width: 0;
}

.gallery-board-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  color: inherit;
  text-decoration: none;
}

.gallery-board-card__thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 12px;
  background: #f0f2f5;
}

.gallery-board-card__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.gallery-board-card__thumb-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #9aa3af;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gallery-board-card__pin {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  display: block;
  line-height: 0;
  pointer-events: none;
}

.gallery-board-card__pin .notice-pin {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin: 0;
  border-radius: 50%;
  background: #105bab;
  color: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}

.gallery-board-card__pin .notice-pin svg {
  display: block;
  width: 14px;
  height: 14px;
  flex: none;
}

.gallery-board-card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 14px 2px 0;
}

.gallery-board-card__title {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 0 2px;
  overflow: hidden;
  background-image: linear-gradient(#a8cff9, #a8d2ff);
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: 0 10px;
  color: #4a4a4a;
  font-size: clamp(15px, 1.2vw, 18px);
  font-weight: 600;
  line-height: 1.45;
  word-break: keep-all;
  transition: color 0.3s ease, background-size 0.45s ease;
}

.gallery-board-card time {
  color: #6b6b6b;
  font-size: 14px;
  font-weight: 300;
}

.gallery-board-card__pdf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 10px 2px 0;
  padding: 15px 25px;
  border: 1px solid #d8dee6;
  border-radius: 20px;
  background: #fff;
  width: 100%;
  color: #673AB7;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.gallery-board-card__pdf i {
  font-size: 14px;
}

.gallery-board-card__pdf:hover,
.gallery-board-card__pdf:focus-visible {
  border-color: #c0392b;
  background: #fff5f4;
  color: #a93226;
}

.gallery-board-card__pdf:focus-visible {
  outline: 2px solid #c0392b;
  outline-offset: 2px;
}

.gallery_page .board-view__pdf-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 10px;
  color: #c0392b;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.gallery_page .board-view__pdf-link:hover,
.gallery_page .board-view__pdf-link:focus-visible {
  text-decoration: underline;
}

.gallery-board-card:hover .gallery-board-card__thumb img,
.gallery-board-card:focus-visible .gallery-board-card__thumb img {
  transform: scale(1.05);
}

.gallery-board-card:hover .gallery-board-card__title,
.gallery-board-card:focus-visible .gallery-board-card__title {
  color: #111;
  background-size: 100% 10px;
}

.gallery-board-card:focus-visible {
  outline: none;
}

.gallery-board-card:focus-visible .gallery-board-card__thumb {
  outline: 2px solid #333;
  outline-offset: 3px;
}

.gallery-form__thumb-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  width: 280px;
  max-width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid #d5d5d5;
  border-radius: 10px;
  background: #f0f2f5;
}

.gallery-form__thumb-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-form__thumb-empty {
  color: #9aa3af;
  font-size: 13px;
  font-weight: 600;
}

.gallery-form__thumb-preview.is-empty img {
  display: none;
}

.gallery_page .board-view__hero {
  margin: 0 0 24px;
  overflow: hidden;
  border-radius: 12px;
  background: #f0f2f5;
}

.gallery_page .board-view__hero img {
  display: block;
  width: 100%;
  max-height: 580px;
  object-fit: cover;
}

@media (max-width: 900px) {
  .gallery-board-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 16px;
  }
}

@media (max-width: 560px) {
  .gallery-board-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .gallery-board-card__title {
    font-size: 16px;
  }

  .gallery-board-card time {
    font-size: 13px;
  }
}

/* 영상게시판 — 갤러리 카드 + 재생 아이콘 / 상세 임베드 */

.video-board-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 18px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.video-board-card:hover .video-board-card__play,
.video-board-card:focus-visible .video-board-card__play {
  background: rgba(16, 91, 171, 0.9);
  transform: translate(-50%, -50%) scale(1.06);
}

.video-board-embed {
  position: relative;
  width: 100%;
  margin: 0 0 28px;
  overflow: hidden;
  border-radius: 12px;
  background: #111;
  aspect-ratio: 16 / 9;
}

.video-board-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}