/* Public board styles are isolated from the homepage and admin layouts. */
.board-page { box-sizing: border-box; color: #222; font-size: 17px; line-height: 1.6; }
.board-page *, .board-page *::before, .board-page *::after { box-sizing: border-box; }
.board-page a { color: inherit; }
.board-page a:focus-visible, .board-page button:focus-visible, .board-page input:focus-visible { outline: 3px solid #4098ea; outline-offset: 4px; }
.board-page .board-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.board-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 24px; }
.board-count { color: #555; white-space: nowrap; }
.board-count strong { color: #0051ba; font-weight: 700; }
.board-count > span { margin-left: 16px; padding-left: 16px; border-left: 1px solid #dce2e9; font-size: 14px; color: #7b8491; }
.board-search { display: flex; width: 400px; max-width: 100%; min-width: 0; gap: 8px; }
.board-search input { width: 100%; min-width: 0; height: 50px; padding: 0 18px; border: 1px solid #dce2e9; border-radius: 8px; background: #fff; color: #222; font: inherit; font-size: 15px; }
.board-search input::placeholder { color: #9299a3; }
.board-search button { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: 12px; padding: 0 22px; border: 0; border-radius: 8px; background: #003583; color: #fff; font: inherit; font-size: 15px; cursor: pointer; }
.board-search button:hover, .board-button:hover { background: #0051ba; }
.board-list { border-top: 2px solid #003583; }
.board-list-heading, .board-row { display: grid; grid-template-columns: 90px minmax(0, 1fr) 160px 150px; gap: 20px; align-items: center; text-align: center; }
.board-list-heading { min-height: 60px; background: #f5f8fc; border-bottom: 1px solid #dce2e9; color: #303d51; font-size: 16px; font-weight: 600; }
.board-row { min-height: 88px; padding: 22px 0; border-bottom: 1px solid #e4e8ee; transition: background .2s, color .2s; }
.board-row:hover { background: #f8faff; }
.board-row-title { min-width: 0; text-align: left; font-size: 19px; font-weight: 500; overflow-wrap: anywhere; }
.board-row:hover .board-row-title { color: #0051ba; }
.board-number, .board-author, .board-date { color: #737c89; font-size: 15px; }
.board-author { overflow-wrap: anywhere; }
.board-date { font-variant-numeric: tabular-nums; }
.board-empty { display: flex; min-height: 330px; flex-direction: column; align-items: center; justify-content: center; padding: 52px 20px; text-align: center; border-bottom: 1px solid #dce2e9; }
.board-empty-icon { display: grid; place-items: center; width: 76px; height: 76px; margin-bottom: 22px; border-radius: 50%; color: #3b78b9; background: #eef5fd; }
.board-empty h4 { color: #303d51; font-size: 23px; font-weight: 600; }
.board-empty p { margin-top: 10px; color: #7b8491; font-size: 16px; word-break: keep-all; }
.board-empty .board-button { margin-top: 26px; }
.board-reset { margin-top: 20px; text-align: right; color: #0051ba; font-size: 15px; }
.board-pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 44px; }
.board-pagination a { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #e2e7ed; border-radius: 50%; font-size: 15px; }
.board-pagination a:hover { border-color: #0051ba; color: #0051ba; }
.board-pagination a.is-current { border-color: #003583; background: #003583; color: #fff; font-weight: 600; }
.board-post { border-top: 2px solid #003583; }
.board-post-heading { padding: 36px 40px 30px; border-bottom: 1px solid #dce2e9; }
.board-category { display: inline-block; margin-bottom: 16px; padding: 5px 15px; border-radius: 30px; background: #eef5fd; color: #0051ba; font-size: 14px; font-weight: 600; }
.board-post-heading h1 { color: #111; font-size: 30px; font-weight: 700; line-height: 1.5; overflow-wrap: anywhere; }
.board-post-meta { display: flex; flex-wrap: wrap; gap: 12px 30px; margin-top: 22px; color: #737c89; font-size: 15px; }
.board-post-meta > div { display: flex; gap: 12px; }
.board-post-meta dt { color: #303d51; font-weight: 500; }
.board-attachments { display: flex; align-items: flex-start; gap: 28px; padding: 22px 40px; border-bottom: 1px solid #e4e8ee; background: #f8faff; }
.board-attachments h2 { display: flex; align-items: center; flex: 0 0 auto; gap: 8px; padding-top: 3px; color: #303d51; font-size: 15px; font-weight: 600; }
.board-attachments ul { min-width: 0; }
.board-attachments a { display: flex; align-items: center; gap: 12px; padding: 3px 0; font-size: 15px; }
.board-attachments a > span { overflow-wrap: anywhere; }
.board-attachments a > svg { flex-shrink: 0; color: #0051ba; }
.board-attachments a:hover { color: #0051ba; }
.board-attachments small { flex-shrink: 0; color: #7b8491; font-size: 13px; }
.board-post-content { min-height: 260px; padding: 44px 40px 60px; font-size: 17px; line-height: 1.85; overflow-wrap: anywhere; overflow-x: auto; }
.board-post-content p { margin: 0 0 1em; }
.board-post-content img, .board-post-content video { max-width: 100%; height: auto; }
.board-post-content iframe { max-width: 100%; }
.board-post-content a { color: #0051ba; text-decoration: underline !important; }
.board-post-content ul, .board-post-content ol { margin: 1em 0; padding-left: 1.6em; }
.board-post-content ul { list-style: disc; }
.board-post-content h1, .board-post-content h2, .board-post-content h3, .board-post-content h4 { margin: 1em 0 .5em; font-weight: 700; line-height: 1.5; }
.board-post-content h1 { font-size: 2em; }
.board-post-content h2 { font-size: 1.6em; }
.board-post-content h3 { font-size: 1.3em; }
.board-post-content table { max-width: 100%; margin: 1em 0; }
.board-post-content th, .board-post-content td { padding: 12px 16px; border: 1px solid #dce2e9; }
.board-post-content th { background: #f5f8fc; font-weight: 600; }
.board-post-content blockquote { margin: 1em 0; padding: 14px 24px; border-left: 3px solid #4098ea; background: #f5f8fc; }
.board-post-content pre { padding: 20px; overflow-x: auto; background: #f5f8fc; }
.board-neighbors { border-top: 1px solid #9aa9bc; }
.board-neighbor { display: flex; align-items: baseline; gap: 30px; padding: 22px 40px; border-bottom: 1px solid #e4e8ee; font-size: 16px; }
.board-neighbor-label { display: flex; justify-content: space-between; flex: 0 0 90px; gap: 14px; color: #303d51; font-weight: 500; }
.board-neighbor-label > span { color: #7b8491; }
.board-neighbor a { min-width: 0; overflow-wrap: anywhere; }
.board-neighbor a:hover { color: #0051ba; }
.board-neighbor-empty { color: #9299a3; }
.board-post-actions { margin-top: 44px; text-align: center; }
.board-page .board-button { display: inline-flex; min-width: 170px; min-height: 54px; align-items: center; justify-content: center; gap: 36px; padding: 12px 28px; border: 1px solid #003583; border-radius: 40px; background: #003583; color: #fff; font-size: 17px; font-weight: 600; }
.board-page .board-button:hover { background: #0051ba; }
.board-page .board-button-outline { min-height: 46px; background: #fff; color: #003583; font-size: 15px; }
.board-page .board-button-outline:hover { background: #eef5fd; }
@media screen and (max-width: 1024px) {
    .board-list-heading, .board-row { grid-template-columns: 60px minmax(0, 1fr) 110px 110px; gap: 14px; }
    .board-row-title { font-size: 17px; }
    .board-post-heading, .board-attachments, .board-neighbor { padding-left: 24px; padding-right: 24px; }
    .board-post-content { padding: 32px 24px 44px; }
}
@media screen and (max-width: 786px) {
    .board-toolbar { align-items: stretch; flex-direction: column-reverse; gap: 22px; margin-bottom: 16px; }
    .board-search { width: 100%; }
    .board-count { font-size: 15px; }
    .board-list-heading { display: none; }
    .board-row { grid-template-columns: minmax(0, 1fr) auto; gap: 10px 16px; padding: 22px 8px; }
    .board-number { display: none; }
    .board-row-title { grid-column: 1 / -1; font-size: 17px; }
    .board-author { text-align: left; font-size: 13px; }
    .board-date { text-align: right; font-size: 13px; }
    .board-empty { min-height: 300px; padding: 40px 14px; }
    .board-empty h4 { font-size: 20px; }
    .board-empty p { font-size: 14px; }
    .board-pagination { gap: 5px; margin-top: 30px; }
    .board-pagination a { width: 34px; height: 34px; font-size: 13px; }
    .board-post-heading { padding: 26px 4px; }
    .board-post-heading h1 { font-size: 23px; }
    .board-post-meta { gap: 8px 20px; font-size: 13px; }
    .board-attachments { flex-direction: column; gap: 10px; padding: 18px 16px; }
    .board-attachments a { flex-wrap: wrap; gap: 4px 10px; font-size: 14px; }
    .board-post-content { padding: 30px 4px 44px; font-size: 16px; }
    .board-neighbor { gap: 16px; padding: 18px 4px; font-size: 14px; }
    .board-neighbor-label { flex-basis: 66px; }
    .board-post-actions { margin-top: 30px; }
    .board-page .board-button { min-height: 50px; font-size: 15px; }
}
