/* 공지사항 board (board.js). Colours come from each site's variables. */
.board-head{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:16px}
.board-desc{margin:0;color:var(--muted)}
.board-search{display:flex;gap:8px}
.board-search input{width:240px;margin:0}
.board-search button{min-height:46px}
.board-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px}
.board-chip{min-height:40px;padding:0 16px;border-radius:999px;border:1px solid var(--line);background:var(--surface,#fff);color:var(--text);font-weight:600}
.board-chip:hover{background:var(--pebble);filter:none}
.board-chip.on{background:var(--accent);border-color:var(--accent);color:#fff;font-weight:700}
/* At most one page of rows: the table grows with the page instead of scrolling under its own sticky header. */
.board-wrap{max-height:none}
.board-table{width:100%;min-width:560px}
.board-table td{white-space:normal}
.board-table th:nth-child(1),.board-table td:nth-child(1){width:72px}
.board-table th:nth-child(2),.board-table td:nth-child(2){width:96px;color:var(--muted)}
.board-table th:nth-child(4),.board-table td:nth-child(4){width:120px;color:var(--muted)}
.board-table tr.pinned{background:#f4f8ff}
.board-table tr.pinned .board-link{font-weight:700}
.board-table tr.board-unread-row .board-link{font-weight:700}
.board-link{min-height:0;padding:0;border:0;background:none;color:var(--text);font-weight:500;text-align:left;cursor:pointer}
.board-link:hover{background:none;color:var(--accent);text-decoration:underline;filter:none}
.board-new{display:inline-flex;align-items:center;margin-left:8px;font-size:11px;font-weight:800;color:#fff;background:var(--accent);border-radius:4px;padding:2px 6px;vertical-align:middle}
.board-tag{display:inline-flex;border-radius:999px;padding:4px 10px;font-size:12px;font-weight:800}
.board-tag.must{background:var(--warn-soft,#fff1e6);color:var(--danger)}
.board-tag.cat{background:var(--soft);color:var(--info,var(--accent))}
.board-pager{display:flex;justify-content:center;gap:6px;margin-top:20px}
.board-pager button{width:40px;min-width:40px;height:40px;min-height:40px;padding:0}
.board-back{margin-bottom:16px}
.board-article{display:flex;flex-direction:column;gap:14px;padding:32px 36px}
.board-tags{display:flex;gap:8px}
.board-article h2{margin:0;font-size:28px;font-weight:800;line-height:1.38;letter-spacing:-.4px;word-break:keep-all}
.board-meta{margin:0;font-size:14px;color:var(--muted);padding-bottom:16px;border-bottom:1px solid var(--line)}
/* 원본 비율·해상도 그대로 표시: 화면 폭을 넘지 않되(max-width) 확대는 하지 않아 글자가 번지지 않습니다. */
/* Kept to a readable size; the full picture opens from the link. */
.board-image-link{align-self:flex-start;display:block;max-width:100%;cursor:zoom-in}
.board-image{display:block;width:auto;max-width:min(100%,640px);max-height:min(70vh,720px);height:auto;object-fit:contain;border-radius:14px;background:var(--soft)}
.board-body{font-size:16px;line-height:1.85;color:var(--text);white-space:pre-line;word-break:keep-all;overflow-wrap:anywhere}
.board-nearby{margin-top:16px;border:1px solid var(--line);border-radius:16px;overflow:hidden;background:var(--surface,#fff)}
.board-near{display:flex;align-items:center;gap:18px;width:100%;min-height:52px;padding:0 22px;border:0;border-radius:0;background:var(--surface,#fff);color:var(--text);font-weight:500;text-align:left}
.board-near+.board-near{border-top:1px solid var(--line)}
.board-near:hover{background:var(--pebble);filter:none}
.board-near span{flex:0 0 56px;font-size:13px;font-weight:700;color:var(--muted)}
/* Home: must-read strip and the latest posts */
.home-must{display:flex;align-items:center;gap:14px;flex-wrap:wrap;width:100%;min-height:52px;margin-bottom:20px;padding:14px 20px;border:0;border-radius:14px;background:var(--text);color:#fff;text-align:left;font-weight:500}
.home-must:hover{filter:brightness(1.12)}
.home-must-tag{font-size:12px;font-weight:800;color:var(--text);background:#86d6ff;border-radius:999px;padding:4px 10px}
.home-must strong{flex:1 1 280px;min-width:0;font-size:16px}
.home-must-date{font-size:13px;color:#c9daea}
.home-must-more{font-size:14px;font-weight:700;color:#86d6ff}
.home-col{display:flex;flex-direction:column;gap:20px;min-width:0}
.home-board-list{list-style:none;margin:8px 0 0;padding:0}
.home-board-list li+li{border-top:1px solid var(--line)}
.home-board-list button{display:flex;align-items:center;gap:12px;width:100%;min-height:52px;padding:0 4px;border:0;border-radius:0;background:none;color:var(--text);font-weight:500;text-align:left}
.home-board-list button:hover{background:var(--pebble);filter:none}
.home-board-title{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.home-board-title.is-unread{font-weight:700}
.home-board-date{font-size:13px;color:var(--muted)}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
/* Admin */
.board-admin-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:16px}
.board-admin-head .hint{margin:0;flex:1}
.board-form{margin-bottom:20px;max-width:none}
.board-two{display:grid;grid-template-columns:200px minmax(0,1fr);gap:12px}
.board-checks{display:flex;gap:20px;flex-wrap:wrap}
.board-check{display:flex;flex-direction:row;align-items:center;gap:8px;margin:0}
.board-check input{width:auto;min-height:0;margin:0;accent-color:var(--accent)}
.board-pin{font-size:12px;font-weight:800;color:var(--danger)}
.board-state{font-weight:700}
.board-state.live{color:var(--accent)}
.board-state.draft{color:var(--muted)}
.board-actions{display:flex;gap:4px}
.board-actions button{min-height:34px;padding:0 10px}
.board-row-meta{display:none}
.board-checks{margin-bottom:16px}
@media(max-width:650px){
 .board-head{flex-direction:column;align-items:stretch}
 /* Phone: number and title only; the category and date move under the title. */
 .board-table{min-width:0}
 .board-table th:nth-child(2),.board-table td:nth-child(2),.board-table th:nth-child(4),.board-table td:nth-child(4){display:none}
 .board-table th:nth-child(1),.board-table td:nth-child(1){width:56px;padding-right:4px}
 .board-row-meta{display:block;margin-top:4px;font-size:12px;color:var(--muted)}
 .board-search input{flex:1;width:auto}
 .board-article{padding:22px 20px}
 .board-article h2{font-size:22px}
 .board-two{grid-template-columns:1fr}
 .board-admin-head{flex-direction:column}
}
