:root {
  --main: #3b5366;
  --main-dark: #2c3f4e;
  --point: #1e6fd9;
  --line: #e3e6ea;
  --text: #222;
  --sub: #777;
  --bg: #f4f5f7;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body { margin: 0; font-family: Pretendard, "Malgun Gothic", sans-serif; color: var(--text); background: var(--bg); font-size: 15px; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--point); }
img { max-width: 100%; vertical-align: middle; }
button { font-family: inherit; cursor: pointer; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }

/* header */
.site-header { background: #fff; }
.topbar { display: flex; justify-content: space-between; align-items: center; min-height: 44px; padding-top: 6px; padding-bottom: 6px; font-size: 13px; color: #555; }
.today-box { display: flex; flex-direction: column; gap: 3px; line-height: 1.45; min-width: 0; }
.today { font-size: 14px; }
.weather { display: flex; align-items: center; gap: 5px; font-size: 13px; color: #666; white-space: nowrap; }
.weather .w-icon { font-size: 17px; line-height: 1; }
.weather .w-temp { font-weight: 700; color: var(--text); }
.weather .w-max { color: #d9480f; }
.weather .w-min { color: #1c7ed6; }
.weather .w-pop { color: #1c7ed6; }
.top-links { display: flex; gap: 18px; align-items: center; flex-shrink: 0; white-space: nowrap; margin-left: 10px; }
.top-links button { border: 0; background: none; font-size: 13px; color: #555; padding: 0; }
.top-links button::before { content: "\1F50D"; font-size: 11px; margin-right: 3px; }
.search-box { display: flex; gap: 6px; padding-bottom: 10px; justify-content: flex-end; }
.search-box input { width: 320px; max-width: 70%; height: 38px; border: 2px solid var(--main); padding: 0 12px; font-size: 15px; }
.search-box button { height: 38px; padding: 0 18px; border: 0; background: var(--main); color: #fff; }
.logo-area { text-align: center; padding: 8px 16px 14px; }
.logo img { max-height: 64px; }
.logo-text { font-size: 34px; font-weight: 800; color: var(--main); }
.gnb { background: var(--main); position: relative; z-index: 20; }
.gnb-inner { display: flex; justify-content: center; position: relative; }
.gnb-list { display: flex; list-style: none; margin: 0; padding: 0; }
.gnb-list > li { position: relative; }
.gnb-list > li > a { display: block; padding: 0 20px; line-height: 40px; color: #fff; font-size: 15px; font-weight: 500; }
.gnb-list > li:hover > a { background: var(--main-dark); color: #fff; }
.gnb-sub { display: none; position: absolute; left: 0; top: 40px; min-width: 150px; background: #fff; border: 1px solid var(--line); list-style: none; margin: 0; padding: 6px 0; box-shadow: 0 6px 16px rgba(0,0,0,.08); }
.gnb-list > li:hover .gnb-sub { display: block; }
.gnb-sub a { display: block; padding: 6px 16px; font-size: 14px; white-space: nowrap; }
.btn-allmenu { position: absolute; right: 16px; top: 0; height: 40px; width: 42px; border: 0; background: #2f6fb5; color: #fff; font-size: 18px; }
.allmenu { background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 8px 20px rgba(0,0,0,.06); }
.allmenu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 20px; padding: 24px 16px; }
.allmenu dl { margin: 0; }
.allmenu dt { font-weight: 700; margin-bottom: 6px; color: var(--main); }
.allmenu dd { margin: 0; font-size: 14px; line-height: 1.9; color: #555; }

.site-main { padding-top: 24px; padding-bottom: 40px; }

/* main top */
.main-top { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.headline-main { background: #fff; border: 1px solid var(--line); }
.headline-main .img { aspect-ratio: 16/9; overflow: hidden; }
.headline-main .img img { width: 100%; height: 100%; object-fit: cover; }
.headline-main h2 { font-size: 22px; margin: 14px 16px 6px; line-height: 1.4; }
.headline-main p { margin: 0 16px 16px; color: var(--sub); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.headline-side { display: flex; flex-direction: column; gap: 10px; }
.headline-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.overlay-card { position: relative; display: block; aspect-ratio: 16/10; overflow: hidden; background: #ccc; }
.overlay-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.overlay-card:hover img { transform: scale(1.04); }
.overlay-card span { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 10px 10px; color: #fff; font-size: 14px; font-weight: 500; background: linear-gradient(transparent, rgba(0,0,0,.75)); }
.headline-smalls { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); flex: 1; }
.small-item { display: grid; grid-template-columns: 96px 1fr; grid-template-rows: 1fr auto; column-gap: 10px; padding: 10px; background: #fff; }
.small-item img { grid-row: 1 / 3; width: 96px; height: 64px; object-fit: cover; }
.small-item strong { font-size: 14px; font-weight: 500; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.small-item time { font-size: 12px; color: var(--sub); text-align: right; }

.main-second { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 10px; margin-bottom: 24px; }
.latest-box { background: #fff; border: 1px solid var(--line); padding: 14px; }
.latest-first a { display: grid; grid-template-columns: 140px 1fr; gap: 12px; margin-bottom: 10px; }
.latest-first img { width: 140px; height: 92px; object-fit: cover; }
.latest-first strong { display: block; font-size: 16px; margin-bottom: 4px; }
.latest-first p { margin: 0; font-size: 13px; color: var(--sub); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.title-list { list-style: none; margin: 0; padding: 0; }
.title-list li { padding: 7px 0; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feature-card { background: #fff; border: 1px solid var(--line); }
.feature-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.feature-card .badge { display: inline-block; margin: 12px 14px 0; padding: 1px 8px; font-size: 12px; border: 1px solid var(--line); border-radius: 3px; color: #555; }
.feature-card h3 { margin: 8px 14px; font-size: 18px; line-height: 1.4; }
.feature-card p { margin: 0 14px 14px; font-size: 13px; color: var(--sub); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

.main-slider { position: relative; background: #333; padding: 18px 44px; margin-bottom: 24px; color: #fff; }
.main-slider a:hover { color: #fff; opacity: .85; }
.slider-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 30px) / 4); gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.slider-track::-webkit-scrollbar { display: none; }
.slide { scroll-snap-align: start; }
.slide img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.slide strong { display: block; margin-top: 8px; font-size: 14px; font-weight: 500; line-height: 1.4; }
.slide-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border: 1px solid var(--line); background: #fff; border-radius: 50%; font-size: 20px; line-height: 1; }
.slide-btn.prev { left: 6px; }
.slide-btn.next { right: 6px; }
.main-banners { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; margin-bottom: 24px; }

.main-bottom { display: grid; grid-template-columns: 1fr 300px; gap: 20px; align-items: start; }
.main-bottom .sub-side { position: sticky; top: 10px; }
.side-banner { margin-bottom: 20px; }
.side-banner img { display: block; width: 100%; }
.main-tabs { background: #fff; border: 1px solid var(--line); padding: 0 20px 20px; min-width: 0; }
.tab-menu { display: flex; flex-wrap: wrap; list-style: none; margin: 0 -20px 10px; padding: 0 10px; border-bottom: 1px solid var(--line); }
.tab-menu button { border: 0; background: none; padding: 14px 12px; font-size: 15px; color: #555; border-bottom: 3px solid transparent; }
.tab-menu button.on { color: var(--main); font-weight: 700; border-bottom-color: var(--main); }
.btn-more { display: block; width: 100%; margin-top: 16px; height: 46px; border: 1px solid var(--line); background: #fafafa; font-size: 15px; }

/* news item */
.news-item { display: grid; grid-template-columns: 200px 1fr; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.news-item:not(:has(.thumb)) { grid-template-columns: 1fr; }
.news-item .thumb img { width: 200px; height: 130px; object-fit: cover; }
.news-item .tit { margin: 0 0 6px; font-size: 18px; line-height: 1.45; }
.news-item .summary { margin: 0 0 8px; color: #666; font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-item .meta, .side-item .meta { margin: 0; font-size: 12px; color: var(--sub); display: flex; gap: 10px; }
.news-item .meta .cat { color: var(--main); }

/* sub layout */
.sub-layout { display: grid; grid-template-columns: 1fr 300px; gap: 30px; align-items: start; }
.sub-layout > *, .main-bottom > *, .main-top > *, .main-second > *, .headline-side > * { min-width: 0; }
.sub-content, .article-view, .board-list, .board-view, .question-form, .static-page, .member-box { background: #fff; border: 1px solid var(--line); padding: 24px 28px; }
.sub-side { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 10px; }
.side-box { background: #fff; border: 1px solid var(--line); padding: 18px; }
.side-box h3 { margin: 0 0 10px; font-size: 16px; padding-bottom: 8px; border-bottom: 2px solid var(--main); }
.rank-list { list-style: none; margin: 0; padding: 0; counter-reset: r; }
.rank-list li { display: flex; gap: 10px; padding: 6px 0; font-size: 14px; }
.rank-list em { font-style: normal; font-weight: 700; color: var(--point); min-width: 18px; }
.rank-list a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.side-item { display: grid; grid-template-columns: 90px 1fr; gap: 10px; padding: 8px 0; }
.side-item:not(:has(.thumb)) { grid-template-columns: 1fr; }
.side-item .thumb img { width: 90px; height: 60px; object-fit: cover; }
.side-item .tit { margin: 0; font-size: 14px; font-weight: 500; line-height: 1.4; }
.list-head h2, .board-title { margin: 0 0 8px; font-size: 26px; }
.breadcrumb { margin: 0 0 10px; font-size: 13px; color: var(--sub); }
.sub-menu { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 12px 0; padding: 0; }
.sub-menu a { display: block; padding: 4px 14px; border: 1px solid var(--line); border-radius: 20px; font-size: 14px; }
.sub-menu a.on { background: var(--main); color: #fff; border-color: var(--main); }
.total { font-size: 14px; color: var(--sub); border-bottom: 2px solid var(--text); padding-bottom: 10px; margin: 10px 0 0; }
.empty, .empty-page { text-align: center; padding: 60px 0; color: var(--sub); }
.pagination { display: flex; justify-content: center; gap: 4px; margin-top: 26px; }
.pagination a, .pagination strong { min-width: 34px; height: 34px; line-height: 32px; text-align: center; border: 1px solid var(--line); font-size: 14px; background: #fff; }
.pagination strong { background: var(--main); color: #fff; border-color: var(--main); }

/* article */
.article-visual { margin: 0 0 20px; background: #111; }
.article-visual img { display: block; width: 100%; max-height: 560px; object-fit: cover; }
.article-head { border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 24px; }
.article-head h1 { font-size: 30px; line-height: 1.35; margin: 4px 0 10px; }
.article-head .subtitle { font-size: 17px; font-weight: 500; color: #444; border-left: 3px solid var(--main); padding-left: 12px; margin: 0 0 14px; }
.article-info { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--sub); }
.article-info .writer { color: var(--text); font-weight: 600; }
.article-tools { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; justify-content: flex-end; }
.article-tools button, .article-tools a { border: 1px solid var(--line); background: #fff; padding: 3px 10px; font-size: 12px; color: #555; }
.article-body { font-size: 17px; line-height: 1.85; word-break: keep-all; overflow-wrap: anywhere; }
.article-body img { height: auto; }
.article-body iframe { max-width: 100%; }
.article-body * { max-width: 100%; }
.article-body table { display: block; overflow-x: auto; }
.article-body pre { white-space: pre-wrap; }
.article-body figure { margin: 0 0 20px; }
.article-body .caption-desc { font-size: 14px; color: #666; }
.article-vote { margin: 36px 0 10px; padding: 22px 16px 14px; text-align: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.vote-guide { margin: 0 0 14px; font-size: 15px; font-weight: 600; color: #444; }
.vote-btns { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.vote-btn { display: inline-flex; align-items: center; gap: 8px; min-width: 150px; justify-content: center; padding: 11px 22px; border-radius: 30px; border: 1.5px solid; background: #fff; font-size: 15px; font-weight: 600; transition: background .15s, color .15s, transform .1s; }
.vote-btn strong { font-size: 16px; }
.vote-btn.up { color: #e8590c; border-color: #f5a06b; }
.vote-btn.down { color: #4263eb; border-color: #91a7ff; }
.vote-btn:not(:disabled):hover { transform: translateY(-1px); }
.vote-btn.up:not(:disabled):hover, .vote-btn.up.on { background: #e8590c; border-color: #e8590c; color: #fff; }
.vote-btn.down:not(:disabled):hover, .vote-btn.down.on { background: #4263eb; border-color: #4263eb; color: #fff; }
.vote-btn:disabled { cursor: default; }
.vote-btn:disabled:not(.on) { opacity: .55; }
.vote-msg { min-height: 20px; margin: 10px 0 0; font-size: 13px; color: var(--sub); }
.hot-news h3 { display: flex; align-items: center; gap: 6px; }
.hot-badge { display: inline-block; padding: 1px 6px; border-radius: 4px; background: #e8590c; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .5px; }
.hot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.hot-list a { display: grid; grid-template-columns: 96px 1fr; gap: 10px; align-items: center; }
.hot-thumb { position: relative; display: block; width: 96px; height: 64px; border-radius: 6px; overflow: hidden; background: #e9ecef; }
.hot-thumb img { width: 100%; height: 100%; object-fit: cover; }
.hot-thumb em { position: absolute; left: 0; top: 0; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; background: #e8590c; color: #fff; font-style: normal; font-size: 12px; font-weight: 700; border-bottom-right-radius: 6px; }
.hot-tit { font-size: 14px; line-height: 1.45; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.article-copyright { margin-top: 30px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--sub); }
.writer-more { margin-top: 24px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 10px; background: #fafbfc; }
.writer-more-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.writer-photo { position: relative; width: 84px; height: 84px; flex: none; border-radius: 50%; overflow: hidden; background: #eef1f4; border: 1px solid #dde2e8; }
.writer-photo em { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; font-style: normal; font-size: 28px; font-weight: 700; color: #9aa4ae; }
.writer-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.writer-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.writer-meta strong { font-size: 17px; color: var(--main); }
.writer-meta a { font-size: 13px; color: var(--sub); }
.writer-more ul { list-style: none; margin: 0 0 14px; padding: 0; }
.writer-more li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.writer-more li a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.writer-more li time { flex: none; font-size: 13px; color: var(--sub); }
.writer-more-btn { display: block; text-align: center; padding: 11px 0; border-radius: 8px; background: var(--main); color: #fff; font-weight: 600; font-size: 15px; }
.writer-more-btn:hover { background: var(--main-dark); color: #fff; }
.related, .prev-next, .replies { margin-top: 28px; }
.related h3, .replies h3 { font-size: 17px; border-bottom: 2px solid var(--text); padding-bottom: 8px; }
.related ul { padding-left: 18px; }
.prev-next { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.prev-next a { display: block; padding: 10px 14px; background: #fff; font-size: 14px; }
.prev-next span { display: inline-block; width: 70px; color: var(--sub); }
.replies em { color: var(--point); font-style: normal; }
.reply-form { display: grid; gap: 8px; background: #fafafa; border: 1px solid var(--line); padding: 14px; }
.reply-user { display: flex; gap: 8px; }
.reply-login-info { margin: 0; font-size: 13px; color: var(--sub); }
.reply-login-info strong { color: var(--main); }
.reply-login-info a { color: var(--point); font-weight: 600; text-decoration: underline; }
.reply-locked { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.reply-locked p { margin: 0 auto 0 0; font-size: 14px; color: #555; }
.reply-login-btn, .reply-join-btn { padding: 7px 20px; font-size: 14px; border: 1px solid var(--main); }
.reply-login-btn { background: var(--main); color: #fff; }
.reply-login-btn:hover { background: var(--main-dark); color: #fff; }
.reply-join-btn { background: #fff; color: var(--main); }
.reply-form input, .reply-form textarea { border: 1px solid #ccc; padding: 8px 10px; font: inherit; font-size: 14px; }
.reply-form textarea { min-height: 80px; resize: vertical; }
.reply-form button { justify-self: end; padding: 7px 24px; border: 0; background: var(--main); color: #fff; }
.reply-list { list-style: none; padding: 0; margin: 10px 0 0; }
.reply-list li { border-bottom: 1px solid var(--line); padding: 12px 0; }
.reply-meta { display: flex; gap: 10px; font-size: 13px; }
.reply-meta time { color: var(--sub); }
.reply-list p { margin: 6px 0; font-size: 14px; }
.reply-del { display: flex; gap: 4px; justify-content: flex-end; }
.reply-del input { width: 100px; border: 1px solid #ccc; font-size: 12px; padding: 2px 6px; }
.reply-del button { border: 1px solid var(--line); background: #fff; font-size: 12px; }
.alert { background: #fff4f4; border: 1px solid #f3c2c2; color: #b42318; padding: 10px 14px; font-size: 14px; }

/* board / forms */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; border-top: 2px solid var(--text); }
.tbl th, .tbl td { padding: 11px 8px; border-bottom: 1px solid var(--line); text-align: center; }
.tbl td.subject { text-align: left; }
.board-view header { border-top: 2px solid var(--text); border-bottom: 1px solid var(--line); padding: 14px 0; }
.board-view h1 { font-size: 22px; margin: 0 0 6px; }
.board-view .meta { margin: 0; display: flex; gap: 14px; font-size: 13px; color: var(--sub); }
.board-body { padding: 24px 0; min-height: 200px; }
.attach-list { background: #fafafa; border: 1px solid var(--line); padding: 10px 30px; font-size: 14px; }
.board-btns { text-align: center; margin-top: 20px; }
.btn { display: inline-block; padding: 9px 26px; border: 1px solid #bbb; background: #fff; font-size: 14px; }
.btn.primary { background: var(--main); border-color: var(--main); color: #fff; }
.form-table { display: grid; gap: 0; border-top: 2px solid var(--text); }
.form-table > label { display: grid; grid-template-columns: 140px 1fr; border-bottom: 1px solid var(--line); }
.form-table > label > span:first-child { background: #f7f7f7; padding: 12px 14px; font-size: 14px; font-weight: 600; }
.form-table input:not([type=checkbox]):not([type=file]), .form-table textarea { margin: 8px 12px; border: 1px solid #ccc; padding: 8px 10px; font: inherit; font-size: 14px; }
.form-table input[type=file] { margin: 12px; }
.captcha { padding: 8px 12px; display: flex; align-items: center; gap: 6px; }
.captcha input { width: 80px; margin: 0 !important; }
.agree { font-size: 13px; color: var(--sub); }
.done-box { text-align: center; padding: 60px 0; }
.member-box { max-width: 420px; margin: 30px auto; }
.member-box h2 { text-align: center; margin-top: 0; }
.member-box form { display: grid; gap: 10px; }
.member-box input:not([type=checkbox]) { height: 44px; border: 1px solid #ccc; padding: 0 12px; font-size: 15px; }
.member-box .btn { height: 46px; font-size: 16px; }
.member-box .check { font-size: 13px; }
.member-links { text-align: center; font-size: 14px; }
.static-body { font-size: 15px; line-height: 1.9; }
.static-body h3 { margin: 30px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--line); font-size: 18px; color: var(--main-dark); }
.static-body h3:first-child { margin-top: 0; }
.static-body h4 { margin: 20px 0 6px; font-size: 16px; }
.static-body p { margin: 0 0 10px; }
.static-body ol, .static-body ul { margin: 0 0 12px; padding-left: 22px; }
.static-body li { margin-bottom: 4px; }
.static-body li > ul { margin: 4px 0 0; }
.static-body table { width: 100%; border-collapse: collapse; margin: 8px 0 14px; font-size: 14px; }
.static-body th, .static-body td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.static-body th { background: #f7f8fa; width: 30%; font-weight: 600; }

/* 우리마을뉴스 소개 */
.intro { --i-blue: #1f4fa3; --i-orange: #f28c1b; color: #333; word-break: keep-all; overflow-wrap: break-word; }
.intro section { margin: 0; }
.intro-hero { text-align: center; padding: 56px 20px 48px; margin: -4px 0 8px; border-radius: 14px;
  background: linear-gradient(180deg, #f3f7fd 0%, #fff 100%); border: 1px solid #e6edf7; }
.intro-logo { width: 300px; max-width: 80%; height: auto; }
.intro-eyebrow { margin: 22px 0 6px !important; font-size: 12px; font-weight: 700; letter-spacing: .18em; color: var(--i-orange); }
.static-body .intro-headline { margin: 0 0 18px; padding: 0; border: 0; font-size: 32px; line-height: 1.35; font-weight: 800; color: #1b2a3a; letter-spacing: -.02em; }
.intro-lead { max-width: 720px; margin: 0 auto !important; text-wrap: balance; font-size: 16px; line-height: 1.9; color: #555; }
.intro-lead strong { color: var(--i-blue); }
.intro-section { padding: 44px 0 4px; }
.intro-label { margin: 0 0 4px !important; font-size: 12px; font-weight: 700; letter-spacing: .16em; color: var(--i-orange); }
.static-body .intro-title { margin: 0 0 22px; padding: 0 0 0 14px; border: 0; border-left: 4px solid var(--i-blue); font-size: 22px; line-height: 1.3; color: #1b2a3a; }
.intro-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.intro-card { position: relative; padding: 26px 22px 22px; border: 1px solid var(--line); border-radius: 12px; background: #fff;
  box-shadow: 0 2px 10px rgba(20, 40, 80, .05); transition: transform .15s, box-shadow .15s; }
.intro-card:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(20, 40, 80, .1); }
.intro-num { display: block; font-size: 30px; font-weight: 800; line-height: 1; color: var(--i-blue); opacity: .9; }
.intro-card:nth-child(2) .intro-num { color: var(--i-orange); }
.static-body .intro-card h4 { margin: 14px 0 8px; font-size: 17px; color: #1b2a3a; }
.intro-card p { margin: 0 !important; font-size: 14px; line-height: 1.75; color: #666; }
.static-body .intro-topics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 0; padding: 0; list-style: none; }
.intro-topics li { display: flex; flex-direction: column; gap: 2px; margin: 0 !important; padding: 14px 18px; border-radius: 10px; background: #f7f9fc; border-left: 3px solid var(--i-orange); }
.intro-topics li:nth-child(odd) { border-left-color: var(--i-blue); }
.intro-topics b { font-size: 15px; color: #1b2a3a; }
.intro-topics span { font-size: 13.5px; color: #666; line-height: 1.6; }
.intro-join { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.intro-join-item { display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: 12px; color: #fff !important;
  background: var(--i-blue); transition: filter .15s, transform .15s; }
.intro-join-item:nth-child(2) { background: #2d6cc4; }
.intro-join-item:nth-child(3) { background: var(--i-orange); }
.intro-join-item:hover { filter: brightness(1.08); transform: translateY(-2px); }
.intro-join-item b { font-size: 16px; }
.intro-join-item b::after { content: " →"; }
.intro-join-item span { font-size: 13.5px; line-height: 1.65; opacity: .92; }
.static-body .intro-info { margin: 0; border-top: 2px solid #1b2a3a; }
.static-body .intro-info th, .static-body .intro-info td { border-left: 0; border-right: 0; padding: 11px 14px; }
.static-body .intro-info th { width: 180px; background: #f7f9fc; color: #444; }
.intro-closing { margin: 48px 0 8px !important; padding: 30px 20px; text-align: center; font-size: 17px; line-height: 1.8; color: #555;
  border-top: 1px solid var(--line); }
.intro-closing strong { color: var(--i-blue); }
@media (max-width: 768px) {
  .intro-hero { padding: 36px 16px 32px; }
  .intro-logo { width: 220px; }
  .static-body .intro-headline { font-size: 24px; }
  .intro-lead { font-size: 15px; }
  .intro-lead br { display: none; }
  .intro-section { padding-top: 34px; }
  .static-body .intro-title { font-size: 19px; }
  .intro-cards, .intro-join, .static-body .intro-topics { grid-template-columns: 1fr; }
  .static-body .intro-info th { width: 110px; }
}

/* footer */
.site-footer { background: #fff; border-top: 1px solid var(--line); margin-top: 20px; font-size: 13px; color: #666; }
.footer-links { border-bottom: 1px solid var(--line); }
.footer-links .wrap { display: flex; flex-wrap: wrap; gap: 4px 22px; padding-top: 14px; padding-bottom: 14px; }
.footer-body { padding-top: 24px; padding-bottom: 40px; }
.footer-logo { max-height: 40px; margin-bottom: 12px; }
.footer-body address { font-style: normal; line-height: 1.9; }
.copyright { color: #999; }
.btn-top { position: fixed; right: 30px; bottom: 30px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #333; color: #fff; opacity: .8; display: none; }
.btn-top.show { display: block; }
.layer-popup { position: absolute; z-index: 1000; background: #fff; border: 1px solid #999; box-shadow: 0 6px 24px rgba(0,0,0,.25); }
.layer-popup-body img { display: block; width: 100%; }
.layer-popup-foot { display: flex; justify-content: space-between; align-items: center; padding: 6px 10px; background: #222; color: #fff; font-size: 13px; }
.layer-popup-foot button { border: 0; background: none; color: #fff; }

@media (max-width: 1024px) {
  .main-second { grid-template-columns: 1fr 1fr; }
  .latest-box { grid-column: 1 / -1; }
  .sub-layout, .main-bottom { grid-template-columns: 1fr; }
  .sub-side { position: static; }
}
@media (max-width: 768px) {
  body { font-size: 14px; }
  .wrap { padding: 0 12px; }

  /* 헤더: 화면 폭에 꼭 맞게 */
  .topbar { min-height: 38px; padding-top: 4px; padding-bottom: 4px; font-size: 12px; }
  .today { font-size: 13px; }
  .weather { font-size: 12px; gap: 3px; }
  .weather .w-icon { font-size: 15px; }
  .weather .w-desc { display: none; }
  .top-links { gap: 12px; }
  .top-links a, .top-links button { font-size: 12px; }
  .search-box input { flex: 1; width: auto; max-width: none; }
  .logo-area { padding: 2px 12px 10px; }
  .logo img { max-height: 46px; }
  .logo-text { font-size: 26px; }

  /* 상단 메뉴: 가로 스크롤 + 오른쪽 전체메뉴 버튼 고정 */
  .gnb-inner { display: block; padding: 0; }
  .gnb-list { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 0 56px 0 4px; }
  .gnb-list::-webkit-scrollbar { display: none; }
  .gnb-list > li { flex: none; }
  .gnb-list > li > a { padding: 0 12px; line-height: 44px; font-size: 15px; white-space: nowrap; }
  .gnb-sub { display: none !important; }
  .btn-allmenu { right: 0; height: 44px; width: 48px; }
  .btn-allmenu::before { content: ""; position: absolute; right: 100%; top: 0; width: 28px; height: 100%; background: linear-gradient(to right, rgba(59, 83, 102, 0), var(--main)); pointer-events: none; }
  .allmenu-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; padding: 18px 16px; }

  .site-main { padding-top: 12px; padding-bottom: 24px; }

  /* 메인 */
  .main-top, .main-second { grid-template-columns: 1fr; }
  .headline-main h2 { font-size: 19px; margin: 12px 14px 6px; }
  .headline-cards { gap: 8px; }
  .overlay-card span { font-size: 13px; padding: 24px 8px 8px; }
  .headline-smalls { grid-template-columns: 1fr; }
  .latest-first a { grid-template-columns: 110px 1fr; }
  .latest-first img { width: 110px; height: 74px; }
  .main-slider { padding: 14px 12px; margin-left: -12px; margin-right: -12px; }
  .slide-btn { display: none; }
  .slider-track { grid-auto-columns: 70%; }
  .main-tabs { padding: 0 14px 14px; }
  .tab-menu { margin: 0 -14px 6px; padding: 0 4px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .tab-menu::-webkit-scrollbar { display: none; }
  .tab-menu button { padding: 12px 10px; white-space: nowrap; }

  /* 기사 목록 */
  .news-item { grid-template-columns: 1fr 108px; gap: 12px; padding: 14px 0; }
  .news-item .thumb { order: 2; }
  .news-item .thumb img { width: 108px; height: 72px; border-radius: 4px; }
  .news-item .tit { font-size: 16px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .news-item .summary { display: none; }
  .list-head h2, .board-title { font-size: 21px; }

  /* 본문 카드는 화면 끝까지 (뉴스 앱처럼) */
  .sub-layout { gap: 12px; }
  .sub-content, .article-view, .board-list, .board-view, .question-form, .static-page {
    margin: 0 -12px; padding: 18px 16px; border-left: 0; border-right: 0;
  }
  .side-box { margin-left: -12px; margin-right: -12px; border-left: 0; border-right: 0; padding: 16px; }
  .sub-side { gap: 12px; }
  .side-banner { margin-bottom: 12px; }

  /* 기사 상세 */
  .article-visual { margin: -18px -16px 16px; }
  .article-head { margin-bottom: 18px; }
  .article-head h1 { font-size: 22px; line-height: 1.4; }
  .article-head .subtitle { font-size: 15px; }
  .article-info { gap: 10px; font-size: 12px; }
  .article-tools { justify-content: flex-start; gap: 5px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -16px; padding-right: 16px; }
  .article-tools::-webkit-scrollbar { display: none; }
  .article-tools button, .article-tools a { flex: none; padding: 5px 10px; white-space: nowrap; }
  .article-body { font-size: 17px; line-height: 1.8; }
  .article-vote { margin-top: 28px; padding: 18px 0 12px; }
  .vote-btns { gap: 10px; flex-wrap: nowrap; }
  .vote-btn { flex: 1; min-width: 0; max-width: 170px; padding: 10px 8px; font-size: 14px; }
  .writer-more { padding: 14px; }
  .writer-more li { font-size: 14px; }
  .prev-next a { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .prev-next span { width: 60px; }
  .reply-user { flex-direction: column; }
  .reply-form input, .reply-form textarea { font-size: 16px; }

  .form-table > label { grid-template-columns: 1fr; }
  .tbl .writer, .tbl .cnt { display: none; }
  .btn-top { right: 14px; bottom: 18px; width: 40px; height: 40px; }
  .footer-links .wrap { gap: 4px 14px; font-size: 12px; }
  .footer-body { padding-top: 18px; padding-bottom: 28px; font-size: 12px; }
  .layer-popup { left: 10px !important; right: 10px; width: auto !important; max-width: calc(100vw - 20px); }
}
@media (max-width: 380px) {
  .gnb-list > li > a { padding: 0 10px; font-size: 14px; }
  .article-head h1 { font-size: 20px; }
  .news-item { grid-template-columns: 1fr 96px; }
  .news-item .thumb img { width: 96px; height: 64px; }
}
@media print {
  .site-header, .site-footer, .sub-side, .replies, .article-tools, .btn-top, .prev-next { display: none !important; }
  .sub-layout { display: block; }
}
