:root {
    --header-bg: #a5d6a7;
    --body-bg: #fffdf8;
    --ink: #27352f;
    --main: #0b4f3a;
    --brown: #6d4c41;
    --cream: #f7efe3;
    --line: #e4ded4;
    --muted: #6b746f;
    --danger: #9b2c2c;
    --max: 1100px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--body-bg); color: var(--ink); font-family: "Noto Sans KR", "Malgun Gothic", Arial, sans-serif; line-height: 1.75; }
a { color: var(--main); text-decoration: none; }
a:hover { text-decoration: underline; }
.site-header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); border-bottom: 1px solid rgba(0,0,0,.08); }
.header-inner { max-width: var(--max); min-height: 82px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 26px; }
.brand { color: var(--main); font-weight: 900; font-size: 1.65rem; white-space: nowrap; }
.site-menu { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-left: auto; }
.site-menu a { color: #183d30; font-weight: 700; }
.site-menu .admin-link { padding: 7px 12px; border: 1px solid rgba(11,79,58,.35); border-radius: 999px; }
.menu-button { display: none; margin-left: auto; border: 1px solid rgba(0,0,0,.18); background: rgba(255,255,255,.55); border-radius: 8px; padding: 8px 12px; font-weight: 700; }
.site-main { max-width: var(--max); margin: 0 auto; padding: 38px 24px 70px; min-height: calc(100vh - 180px); }
.hero { background: linear-gradient(135deg, #fff 0%, var(--cream) 100%); border: 1px solid var(--line); border-radius: 20px; padding: 42px; margin-bottom: 30px; }
.hero h1 { margin: 0 0 12px; color: var(--main); font-size: clamp(2rem, 4vw, 3.2rem); }
.hero p { margin: 0; color: var(--muted); font-size: 1.08rem; }
.board-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; margin: 28px 0 44px; }
.board-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; box-shadow: 0 8px 25px rgba(65,47,35,.05); }
.board-card h2 { margin: 0 0 8px; font-size: 1.25rem; }
.board-card p { margin: 0; color: var(--muted); font-size: .95rem; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 34px 0 16px; }
.section-head h1, .section-head h2 { margin: 0; color: var(--brown); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 16px; border: 0; border-radius: 10px; background: var(--main); color: #fff; font-weight: 800; cursor: pointer; }
.button:hover { text-decoration: none; filter: brightness(.96); }
.button.secondary { background: var(--brown); }
.button.light { background: var(--cream); color: var(--brown); border: 1px solid #d8c7b5; }
.post-list { border-top: 2px solid var(--brown); background: #fff; }
.post-row { display: grid; grid-template-columns: 92px 1fr 120px; align-items: center; gap: 18px; padding: 18px 10px; border-bottom: 1px solid var(--line); }
.post-thumb { width: 92px; height: 72px; border-radius: 10px; background: var(--cream); object-fit: cover; }
.post-title { margin: 0 0 5px; font-size: 1.08rem; font-weight: 850; }
.post-meta { color: var(--muted); font-size: .88rem; }
.notice-badge, .status-badge { display: inline-block; font-size: .75rem; line-height: 1; padding: 5px 7px; border-radius: 999px; background: #f2dfbe; color: #6a4710; font-weight: 800; vertical-align: middle; }
.article { max-width: 800px; margin: 0 auto; }
.article-head { border-bottom: 2px solid var(--brown); padding-bottom: 20px; margin-bottom: 28px; }
.article-head h1 { margin: 0 0 12px; font-size: clamp(1.75rem,4vw,2.5rem); line-height: 1.3; }
.article-content { font-size: 17px; line-height: 1.9; overflow-wrap: anywhere; }
.article-content img { max-width: 100%; height: auto; display: block; margin: 28px auto; border-radius: 10px; }
.article-content table { width: 100%; border-collapse: collapse; margin: 22px 0; }
.article-content th, .article-content td { border: 1px solid #d9d2c8; padding: 10px; }
.article-content blockquote { margin: 24px 0; padding: 14px 18px; border-left: 5px solid var(--header-bg); background: #f6faf6; }
.featured-image { width: 100%; max-height: 600px; object-fit: contain; background: #fff; border-radius: 14px; margin-bottom: 26px; }
.form-card, .comments, .comment-form { max-width: 800px; margin: 28px auto; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 800; margin-bottom: 7px; }
.field input[type=text], .field input[type=password], .field input[type=email], .field input[type=number], .field textarea, .field select { width: 100%; padding: 11px 12px; border: 1px solid #cfc7bc; border-radius: 9px; background: #fff; font: inherit; }
.field textarea { min-height: 180px; resize: vertical; }
.field small { display: block; color: var(--muted); margin-top: 5px; }
.two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.comment { padding: 18px 0; border-bottom: 1px solid var(--line); }
.comment:last-child { border-bottom: 0; }
.comment-head { display: flex; gap: 10px; align-items: center; margin-bottom: 7px; }
.comment-author { font-weight: 850; }
.comment-date { color: var(--muted); font-size: .85rem; }
.flash { padding: 13px 16px; margin: 0 0 18px; border-radius: 10px; border: 1px solid transparent; }
.flash-success { background: #e8f7eb; border-color: #b9dfc2; color: #235b31; }
.flash-error { background: #fff0ef; border-color: #e7b8b4; color: #8a2424; }
.empty { padding: 34px; text-align: center; color: var(--muted); background: #fff; border: 1px dashed #cfc7bc; border-radius: 12px; }
.pagination { display: flex; justify-content: center; gap: 7px; margin: 28px 0; }
.pagination a, .pagination span { min-width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.pagination .current { background: var(--main); color: #fff; border-color: var(--main); }
.site-footer { border-top: 1px solid var(--line); background: #f8f3ea; }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 30px 24px; display: flex; justify-content: space-between; gap: 20px; color: var(--muted); }
.honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
@media (max-width: 900px) {
    .board-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .post-row { grid-template-columns: 76px 1fr; }
    .post-row > .post-date { grid-column: 2; }
    .post-thumb { width: 76px; height: 62px; }
}
@media (max-width: 720px) {
    .header-inner { min-height: 68px; padding: 0 16px; flex-wrap: wrap; }
    .brand { font-size: 1.35rem; }
    .menu-button { display: block; }
    .site-menu { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; margin: 0 -16px; padding: 8px 16px 16px; background: var(--header-bg); }
    .site-menu.is-open { display: flex; }
    .site-menu a { padding: 11px 4px; border-bottom: 1px solid rgba(0,0,0,.08); }
    .site-main { padding: 24px 14px 50px; }
    .hero { padding: 28px 22px; }
    .board-grid { grid-template-columns: 1fr; }
    .post-row { grid-template-columns: 1fr; }
    .post-thumb { width: 100%; height: 180px; }
    .post-row > .post-date { grid-column: auto; }
    .two-cols { grid-template-columns: 1fr; }
    .form-card, .comments, .comment-form { padding: 18px; }
    .footer-inner { flex-direction: column; }
}
.dictionary-search{display:grid;grid-template-columns:1fr 180px auto;gap:10px}.legal-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:20px 0}.legal-card h2{margin:.25rem 0;color:#5d4037}.legal-meta{font-size:.85rem;color:#6d4c41}.legal-short{font-size:1.08rem;font-weight:700}.example-box,.quiz-box{background:#fff6e8;border-left:5px solid #8d6e63;padding:12px 15px;margin-top:14px;border-radius:8px}.character-strip{display:flex;gap:12px;align-items:center}.character-strip img{width:54px;height:54px;object-fit:contain}@media(max-width:700px){.dictionary-search{grid-template-columns:1fr}.legal-grid{grid-template-columns:1fr}}


/* v1.2.5 — 4지선다 보기 번호 */
.ung-quiz-number{display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:24px;margin-right:7px;border-radius:50%;background:#eef6ef;color:#2d6a4f;font-weight:800}
.ung-quiz-option.is-correct .ung-quiz-number{background:#5ca16b;color:#fff}
.ung-quiz-option.is-wrong .ung-quiz-number{background:#d6756d;color:#fff}
