/* JIT로 표현하기 어려운 콘텐츠·구조·상태 스타일. */
.board [hidden]:not([hidden="until-found"]) { display: none; }
.board .comment-list > :not([hidden]) ~ :not([hidden]) { border-color: #dee0e3; border-top-width: 1px; }

.board .comment-replies > :not([hidden]) ~ :not([hidden]) { margin-top: 16px; }

.board.search-page mark { padding-left: 4px; padding-right: 4px; color: #596675; background-color: #f2f4f6; border-radius: 4px; }
.board.search-page a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.board.board-search form.search-form { flex-wrap: nowrap; }
.board.board-search .search-panel { background: radial-gradient(ellipse at 90% 0%, #e4ecff 0%, transparent 55%), linear-gradient(125deg, #f8fafc, #f0f4fa); }
.board.board-search .search-orbit { width: 460px; height: 460px; right: -230px; top: -230px; border: 1px solid #d9e3f5; box-shadow: 0 0 0 48px #e5ecf680, 0 0 0 96px #e5ecf640; }
.board.board-search .search-form { box-shadow: 0 12px 36px -16px #243b6433; }


.board .post-content :is(h1, h2, h3, h4) { font-weight: 700; line-height: 1.4; margin-top: 1em; margin-right: 0; margin-bottom: 0.5em; margin-left: 0; }
.board .post-content h1 { font-size: 2em; }
.board .post-content h4 { font-size: 1.125em; }
.board .post-content :is(ul, ol) { margin-top: 0.75em; margin-right: 0; margin-bottom: 0.75em; margin-left: 0; padding-left: 1.5em; }
.board .post-content ul { list-style-type: disc; }
.board .post-content ol { list-style-type: decimal; }
.board .post-content blockquote { border-left-width: 4px; border-style: solid; border-color: #dee0e3; margin-top: 10px; margin-right: 0; margin-bottom: 10px; margin-left: 0; padding-top: 10px; padding-right: 15px; padding-bottom: 10px; padding-left: 15px; color: #596675; background: #f2f4f6; }
.board .post-content a { color: #3182f6; text-decoration: underline !important; }
.board .post-content a:hover { color: #3182f6; }
.board .post-content table { width: auto !important; border-collapse: collapse !important; border: 1px solid #dee0e3 !important; margin: 10px 0 !important; }
.board .post-content table th,
.board .post-content table td { border: 1px solid #dee0e3 !important; padding: 8px 10px !important; }
.board .post-content table th { background-color: #f2f4f6 !important; }
.board .post-content img { width: 100%; height: auto; border-radius: 4px; margin-top: 20px; margin-right: 0; margin-bottom: 20px; margin-left: 0; display: block; }
.board .post-content embed,
.board .post-content object,
.board .post-content iframe { width: 100% !important; max-width: 100% !important; aspect-ratio: 16 / 9; height: auto !important; display: block; margin-top: 20px; margin-right: 0; margin-bottom: 20px; margin-left: 0; border: 0 !important; outline: none; box-shadow: none; }
.board .page-link[rel="prev"],
.board .page-link[rel="next"] { white-space: nowrap; flex-shrink: 0; min-width: max-content; padding-left: 12px; padding-right: 12px; }
.board [data-board-write-form] select[aria-invalid="true"] { border-color: #c62828; }
.board.comment-delete-page { width: min(100%, 520px); }
.board .comment-delete-form button { justify-self: start; }
@media (prefers-reduced-motion: reduce) {
:where(.board) *,
:where(.board) ::before,
:where(.board) ::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.board form [aria-invalid="true"],
.board form [aria-invalid="true"]:focus { border-color: #c62828; }
.board form:is(.search-compact-form, .search-form) { flex-wrap: wrap; }
.board form:is(.search-compact-form, .list-search-form, .search-form) > .field-error { flex: 0 0 100%; width: 100%; order: 1; }

/* 검색 범위·입력·제출을 하나의 검색 바로 묶는다. */
.board form.list-search-form { width: min(100%, 480px); }

.board .search-scope::after { content: ''; position: absolute; top: 50%; right: 0; height: 16px; border-right: 1px solid #dee0e3; transform: translateY(-50%); }

@media (max-width: 767px) {
    .board form.list-search-form { width: 100%; }
}

/* 서버 페이지네이션의 링크와 현재 페이지 상태. */
.board .pagination { flex-wrap: wrap; gap: 6px; }
.board .page-link { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; min-height: 38px; padding: 6px 10px; border: 1px solid #dee0e3; border-radius: 8px; color: #596675; }
.board .pagination .active .page-link,
.board .page-link[aria-current="page"] { background: #191f28; border-color: #191f28; color: #fff; }
.board .pagination .disabled .page-link { opacity: 0.45; }
.board .field > label { font-weight: 500; }
