.wmb {
    --ink:#202a35;
    --muted:#566475;
    --line:#dbe1e7;
    --accent:#23445a;
    color:var(--ink);
    font:inherit;
    line-height:1.55;
    max-width:100%;
    width:100%;
    margin:1.5rem auto 2.5rem;
    overflow-wrap:anywhere;
    text-align:left;
}

.wmb * {
    box-sizing:border-box;
}

.wmb .wmb-head {
    border-bottom:2px solid var(--ink);
    padding:0 0 14px;
}

.wmb .wmb-head h2 {
    margin:0;
    font-size:clamp(1.45rem,3vw,2rem);
    font-weight:700;
    letter-spacing:-.045em;
    color:var(--ink);
}

.wmb :is(button,.wmb-btn,.wmb-delete summary) {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:6px;
    border:1px solid #cbd4db;
    padding:8px 15px;
    background:#fff;
    color:var(--ink);
    font:inherit;
    font-size:.9rem;
    font-weight:600;
    line-height:1.4;
    cursor:pointer;
    text-decoration:none;
}

.wmb :is(button,.wmb-btn,.wmb-delete summary):hover {
    background:#edf2f5;
    color:var(--ink);
}

.wmb :is(button,.wmb-btn).wmb-primary {
    background:var(--accent);
    border-color:var(--accent);
    color:white;
}

.wmb :is(input,textarea,a,button,summary):focus-visible {
    outline:2px solid #287bb3;
    outline-offset:2px;
}

.wmb .wmb-tools,.wmb .wmb-actions,.wmb .wmb-checks {
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:8px;
}

.wmb .wmb-tools {
    justify-content:space-between;
    padding:16px 0;
    color:var(--muted);
    font-size:.9rem;
}

.wmb .wmb-tools form {
    display:flex;
    gap:6px;
    max-width:100%;
    margin:0;
}

.wmb :is(input[type=text],input[type=search],input:not([type]),textarea) {
    background:#fff;
    color:var(--ink);
    border:1px solid #cbd4db;
    border-radius:5px;
    padding:8px 10px;
    line-height:1.55;
    font:inherit;
    max-width:100%;
}

.wmb .wmb-tools input {
    min-width:0;
    width:14rem;
}

.wmb .wmb-row {
    display:grid;
    grid-template-columns:55px minmax(0,1fr) minmax(62px,12%) 92px 48px;
    gap:10px;
    align-items:center;
    min-height:53px;
    border-bottom:1px solid var(--line);
    padding:10px 6px;
    font-size:.95rem;
}

.wmb .wmb-cols {
    min-height:37px;
    background:#f5f7f9;
    font-size:.82rem;
    font-weight:600;
    color:var(--muted);
}

.wmb .wmb-no,.wmb .wmb-meta,.wmb .wmb-cols span:not(:nth-child(2)) {
    text-align:center;
    font-size:.83rem;
    color:var(--muted);
}

.wmb .wmb-title a {
    color:var(--ink);
    text-decoration:none;
    font-weight:600;
}

.wmb .wmb-title a:hover {
    text-decoration:underline;
}

.wmb .wmb-tag,.wmb .wmb-title small {
    border-radius:4px;
    background:#e9f0f4;
    color:var(--accent);
    font-size:.72rem;
    padding:2px 5px;
    white-space:nowrap;
}

.wmb .wmb-pages {
    display:flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    padding:20px 0 6px;
}

.wmb .wmb-pages :is(a,strong) {
    border-radius:5px;
    padding:4px 9px;
    text-decoration:none;
}

.wmb .wmb-pages strong {
    background:var(--accent);
    color:white;
}

.wmb .wmb-actions {
    justify-content:flex-end;
    margin:14px 0;
}

.wmb .wmb-empty {
    text-align:center;
    padding:30px 8px;
    border-bottom:1px solid var(--line);
    color:var(--muted);
}

.wmb .wmb-form {
    margin:14px 0;
}

.wmb .wmb-form>label {
    display:block;
    margin:12px 0;
    font-weight:600;
}

.wmb .wmb-form :is(textarea,input[name=subject]) {
    width:100%;
    display:block;
    margin:5px 0;
    font-weight:400;
}

.wmb textarea {
    resize:vertical;
}

.wmb article {
    padding:20px 0 0;
}

.wmb article h3 {
    font-size:1.45rem;
    line-height:1.4;
    margin:0 0 6px;
    color:var(--ink);
}

.wmb .wmb-byline,.wmb .wmb-comment small {
    color:var(--muted);
    font-size:.82rem;
}

.wmb .wmb-body,.wmb .wmb-text {
    white-space:pre-wrap;
}

.wmb .wmb-body {
    padding:24px 0;
    border-top:1px solid var(--line);
    border-bottom:1px solid var(--line);
    margin-top:16px;
    min-height:105px;
}

.wmb .wmb-comments {
    margin-top:28px;
}

.wmb .wmb-comments h4 {
    font-size:1.05rem;
    margin:0;
}

.wmb .wmb-comment {
    padding:13px 0;
    border-bottom:1px solid var(--line);
}

.wmb .wmb-comment p {
    margin:6px 0;
}

.wmb .wmb-comment .wmb-actions {
    margin:0;
}

.wmb .wmb-delete summary {
    list-style:none;
}

.wmb .wmb-delete[open] {
    padding:8px;
    border:1px solid var(--line);
    border-radius:6px;
}

.wmb .wmb-delete p {
    margin:4px 0;
}

.wmb .wmb-delete button {
    color:#982b27;
}

.wmb .wmb-checks label {
    display:flex;
    align-items:center;
    gap:5px;
}

.wmb .wmb-checks input {
    margin:0;
}


@media(max-width:650px) {
    .wmb .wmb-cols {
        display:none;
    }

    .wmb .wmb-row:not(.wmb-cols) {
        display:flex;
        flex-wrap:wrap;
        gap:3px 10px;
        padding:12px 2px;
    }

    .wmb .wmb-title {
        order:1;
        width:100%;
        font-size:1rem;
    }

    .wmb .wmb-no,.wmb .wmb-meta {
        order:2;
        font-size:.77rem;
    }

    .wmb .wmb-views:before {
        content:"조회 ";
    }

    .wmb .wmb-tools input {
        width:10rem;
    }

    .wmb .wmb-checks {
        gap:12px;
    }

    .wmb .wmb-form button {
        min-height:40px;
    }
}

.wmb .wmb-metadata {
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 12px 16px;
    margin: 16px 0;
}
.wmb .wmb-metadata legend { padding: 0 5px; font-weight: 600; }
.wmb .wmb-metadata label { display: block; margin: 4px 0 10px; }
.wmb .wmb-metadata input { display: block; width: 100%; max-width: 24rem; padding: 8px; font: inherit; color: var(--ink); background: #fff; border: 1px solid #cbd4db; border-radius: 5px; }
.wmb .wmb-metadata small { color: var(--muted); }
