/* UI로 대체할 수 없는 콘텐츠·구조·상태 스타일. */
.board .comment-list > :not([hidden]) ~ :not([hidden]) { border-color: var(--ui-gray-medium); border-top-width: 1px; }
.board .comment-item { scroll-margin-top: 256px; }
.board .comment-reply { text-underline-offset: 4px; }
.board .comment-replies > :not([hidden]) ~ :not([hidden]) { margin-top: 16px; }
.board .comment-reply-item { scroll-margin-top: 256px; }
.board .comment-form-wrap { scroll-margin-top: 96px; }.board .comment-reply-target { text-underline-offset: 2px; }.board .comment-guest-input::placeholder { color: var(--ui-gray); }.board .comment-input-wrap:focus-within { border-color: var(--ui-gray-dark); }
.board .comment-input::placeholder { color: var(--ui-gray); }.board.search-page mark { padding-left: 4px; padding-right: 4px; color: var(--ui-gray); background-color: var(--ui-gray-light); border-radius: 4px; }
.board.search-page a:focus-visible { outline-width: 2px; outline-style: solid; outline-offset: 16px; }
.board .search-form:focus-within { border-color: var(--ui-gray); outline: 1px solid var(--ui-gray); outline-offset: 2px; }
.board .screen-reader { clip: rect(0px, 0px, 0px, 0px); }
.board .search-input::placeholder { color: var(--ui-gray); }
.board .search-results-reset { text-underline-offset: 4px; }
.board .search-menu:hover .search-menu-arrow { color: var(--ui-white); background-color: var(--ui-gray-dark); }
.board .search-result:hover .search-result-title { color: var(--ui-gray); }


.board .form-select { appearance: none; }
.board .form-select-icon { top: 50%; transform: translateY(-50%); }
.board .form-secret-input { accent-color: var(--ui-black); }
.board .form-secret-label:hover .form-secret-text { color: var(--ui-black); }
.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: var(--ui-gray-medium); 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: var(--ui-gray); background: var(--ui-gray-light); }
.board .post-content a { color: var(--ui-blue); text-decoration: underline !important; }
.board .post-content a:hover { color: var(--ui-blue); }
.board .post-content table { width: auto !important; border-collapse: collapse !important; border: 1px solid var(--ui-gray-medium) !important; margin: 10px 0 !important; }
.board .post-content table th,
.board .post-content table td { border: 1px solid var(--ui-gray-medium) !important; padding: 8px 10px !important; }
.board .post-content table th { background-color: var(--ui-gray-light) !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 .pagination .page-link[rel="prev"],
.board .pagination .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: var(--ui-red); }
.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: var(--ui-red); }
.board form:is(.search-compact-form, .list-search-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 {
    flex-wrap: nowrap;
    width: min(100%, 480px);
    gap: 0;
    padding: 8px 10px 8px 24px;
    border-radius: 999px;
    background: var(--ui-gray-light);
}
.board .list-search-form:focus-within { outline: 2px solid var(--ui-gray-dark); outline-offset: 3px; }
.board .search-scope { position: relative; flex: 0 0 132px; padding-right: 24px; }
.board .search-scope::after { content: ''; position: absolute; top: 50%; right: 0; height: 16px; border-right: 1px solid var(--ui-gray-medium); transform: translateY(-50%); }
.board .search-select { appearance: none; width: 100%; min-height: 40px; padding: 0 28px 0 4px; border: 0; background: transparent; color: var(--ui-gray-dark); font: inherit; font-weight: 600; cursor: pointer; }
.board .search-chevron { position: absolute; top: 50%; right: 24px; transform: translateY(-50%); pointer-events: none; }
.board .list-search-input { flex: 1; min-width: 0; min-height: 40px; height: 40px; padding-block: 0; padding-inline: 24px; border: 0; border-radius: 0; background: transparent; }
.board .list-search-input::placeholder { color: var(--ui-gray); }
.board :is(.list-search-input, .search-select):focus { outline: none; box-shadow: none; }
.board .list-search-submit { --ui-bg-primary: var(--ui-gray-dark); --ui-color-on-primary: var(--ui-white); flex-shrink: 0; border-radius: 50%; }
.board .list-search-submit .ph { font-size: 20px; }
@media (max-width: 479px) {
    .board .list-search-form { padding-left: 16px; }
    .board .search-scope { flex-basis: 92px; padding-right: 12px; }
    .board .search-chevron { right: 12px; }
    .board .list-search-input { padding-inline: 12px; }
}
@media (max-width: 767px) {
    .board form.list-search-form { width: 100%; }
}
