/*
 * 기관 블로그 화면 공용 스타일.
 *
 * blog/ 아래 네 페이지가 모두 이 파일 하나만 쓴다. HTML에 <style> 블록을 두지
 * 않는 것이 관리 화면과 같은 규칙이며 정적 테스트가 이를 검사한다.
 *
 * 색과 간격은 homepage.css의 --hp-* 토큰을 그대로 쓴다.
 */

/* 좌우 여백은 관리 화면(admin_page.css의 .admin-page)과 같은 값을 쓴다.
 * 고정 max-width 대신 뷰포트 비율이라 넓은 화면에서 두 화면의 본문 시작선이
 * 어긋나지 않는다. */
.blog-page {
    width: 80%;
    margin: 0 auto;
    padding: 32px 0 80px;
}

.blog-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.blog-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--hp-blue-dark);
    margin: 0;
}

.blog-subtitle {
    color: var(--hp-text-secondary);
    margin: 6px 0 0;
    font-size: 14px;
}

.blog-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* ---------------------------------------------------------- 필터 */

.blog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding: 14px 16px;
    margin-bottom: 20px;
    background: var(--hp-card);
    border: 1px solid var(--hp-border);
    border-radius: 0;
}

.blog-filters .form-select,
.blog-filters .form-control {
    width: auto;
    min-width: 130px;
    font-size: 14px;
}

.blog-search {
    display: flex;
    gap: 6px;
    margin-left: auto;
}

.blog-search .form-control {
    min-width: 200px;
}

/* ---------------------------------------------------------- 배지와 태그 */

.blog-category {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 0;
    background: color-mix(in srgb, var(--hp-blue) 10%, transparent);
    color: var(--hp-blue);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.blog-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 0;
    background: var(--hp-paper-tint);
    color: var(--hp-text-secondary);
    font-size: 12px;
    font-weight: 600;
}

.blog-status.is-draft {
    background: var(--hp-paper-tint);
    color: var(--hp-text-secondary);
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 12px;
}

.blog-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 0;
    background: var(--hp-paper-tint);
    color: var(--hp-text-secondary);
    font-size: 12px;
    text-decoration: none;
}

.blog-tag:hover {
    background: var(--hp-border);
    color: var(--hp-text);
}

/* ---------------------------------------------------------- 내 글 목록
 *
 * 여기만 카드가 아니라 표를 쓴다. 읽으라고 늘어놓는 목록이 아니라 이어 쓰거나
 * 지울 것을 고르는 작업 목록이라, 상태와 날짜가 한눈에 줄 맞춰 보여야 한다. */

.blog-table-wrap {
    overflow-x: auto;
    background: var(--hp-card);
    border: 1px solid var(--hp-border);
    border-radius: 0;
}

.blog-table {
    width: 100%;
    min-width: 780px;
    border-collapse: collapse;
    font-size: 14px;
}

.blog-table th,
.blog-table td {
    padding: 11px 14px;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid var(--hp-border);
}

.blog-table th {
    background: var(--hp-bg);
    color: var(--hp-text-secondary);
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
}

.blog-table tbody tr:last-child td {
    border-bottom: 0;
}

.blog-table tbody tr:hover td {
    background: var(--hp-bg);
}

.blog-table .blog-table-title {
    font-weight: 600;
    color: var(--hp-text);
    text-decoration: none;
}

.blog-table .blog-table-title:hover {
    color: var(--hp-blue);
}

.blog-table .blog-table-actions {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
    white-space: nowrap;
}

.blog-table .blog-table-number {
    color: var(--hp-text-secondary);
    text-align: right;
    white-space: nowrap;
}

/* ---------------------------------------------------------- 기관 사이드바
 *
 * 통합 피드와 기관 홈이 같은 사이드바를 쓴다. 기관을 골라도 사이드바는 그대로
 * 있고 오른쪽 본문만 바뀌므로, 다른 기관으로 옮겨 다니기가 쉽다. */

.blog-layout {
    display: grid;
    grid-template-columns: 232px minmax(0, 1fr);
    gap: 26px;
    align-items: start;
}

.blog-sidebar {
    position: sticky;
    top: 20px;
    background: var(--hp-card);
    border: 1px solid var(--hp-border);
    border-radius: 0;
    padding: 14px 12px;
}

.blog-sidebar-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--hp-text-secondary);
    margin: 0 0 10px;
    padding: 0 6px;
}

.blog-sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.blog-sidebar-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 0;
    color: var(--hp-text);
    text-decoration: none;
    font-size: 14px;
}

.blog-sidebar-item:hover {
    background: var(--hp-paper-tint);
    color: var(--hp-text);
}

.blog-sidebar-item.is-active {
    background: color-mix(in srgb, var(--hp-blue) 10%, transparent);
    color: var(--hp-blue);
    font-weight: 600;
}

.blog-sidebar-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.blog-sidebar-count {
    flex: 0 0 auto;
    color: var(--hp-text-secondary);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.blog-sidebar-item.is-active .blog-sidebar-count {
    color: var(--hp-blue);
}

.blog-sidebar-divider {
    height: 1px;
    background: var(--hp-border);
    margin: 8px 4px;
}

.blog-sidebar-empty {
    padding: 8px 10px;
    font-size: 13px;
    color: var(--hp-text-secondary);
}

/* ---------------------------------------------------------- 기관 홈 배너 */

.blog-banner {
    padding: 28px 24px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--hp-blue-dark), var(--hp-blue-light));
    border-radius: 0;
    color: var(--hp-card);
}

.blog-banner h1 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px;
}

.blog-banner p {
    margin: 0;
    opacity: 0.92;
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-line;
}

.blog-banner-meta {
    margin-top: 14px;
    font-size: 13px;
    opacity: 0.85;
}

.blog-banner-image {
    display: block;
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    border-radius: 0;
    margin-bottom: 18px;
}

/* ---------------------------------------------------------- 글 상세 */

.blog-post {
    max-width: 820px;
    margin: 0 auto;
    background: var(--hp-card);
    border: 1px solid var(--hp-border);
    border-radius: 0;
    padding: 32px 36px 40px;
}

/* 제목·작성 정보는 왼쪽, 수정·삭제는 오른쪽 빈 자리에 둔다. */
.blog-post-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 18px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--hp-border);
}

.blog-post-headline {
    min-width: 0;
}

.blog-post-head .blog-actions {
    flex: 0 0 auto;
}

.blog-post-head h1 {
    font-size: 27px;
    font-weight: 700;
    color: var(--hp-text);
    margin: 10px 0 14px;
    line-height: 1.35;
}

.blog-post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    font-size: 13px;
    color: var(--hp-text-secondary);
}

.blog-post-meta .blog-metric {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* 밑줄 제거는 homepage.css 의 전역 규칙이 맡는다. 여기서는 색만 정한다. */
.blog-post-meta a:hover {
    color: var(--hp-blue);
}

/* 본문은 서버가 sanitize한 HTML을 그대로 렌더한다. 저장 형식은 편집기와 무관한
 * 표준 HTML이며, 정렬·들여쓰기만 `style` 없이 표현할 방법이 없어 우리가 소유한
 * `blog-align-*`·`blog-indent-*` 클래스로 남는다. */
.blog-post-body {
    font-size: 16px;
    line-height: 1.8;
    color: var(--hp-text);
    word-break: break-word;
}

.blog-post-body h1,
.blog-post-body h2,
.blog-post-body h3,
.blog-post-body h4 {
    font-weight: 700;
    color: var(--hp-blue-dark);
    margin: 32px 0 12px;
    line-height: 1.4;
}

.blog-post-body h1 { font-size: 24px; }
.blog-post-body h2 { font-size: 21px; }
.blog-post-body h3 { font-size: 18px; }
.blog-post-body h4 { font-size: 16px; }

.blog-post-body p {
    margin: 0 0 16px;
}

.blog-post-body ul,
.blog-post-body ol {
    margin: 0 0 16px;
    padding-left: 26px;
}

.blog-post-body li {
    margin-bottom: 6px;
}

.blog-post-body blockquote {
    margin: 0 0 16px;
    padding: 10px 18px;
    border-left: 4px solid var(--hp-blue-light);
    background: var(--hp-bg);
    color: var(--hp-text-secondary);
}

.blog-post-body pre {
    margin: 0 0 16px;
    padding: 14px 16px;
    background: var(--hp-bg);
    border: 1px solid var(--hp-border);
    border-radius: 0;
    overflow-x: auto;
    font-size: 14px;
}

.blog-post-body code {
    background: var(--hp-paper-tint);
    padding: 1px 5px;
    border-radius: 0;
    font-size: 14px;
}

.blog-post-body pre code {
    background: none;
    padding: 0;
}

.blog-post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 0;
    margin: 8px 0;
}

.blog-post-body table {
    width: 100%;
    margin: 0 0 16px;
    border-collapse: collapse;
    font-size: 14px;
}

.blog-post-body th,
.blog-post-body td {
    border: 1px solid var(--hp-border);
    padding: 8px 10px;
    text-align: left;
}

.blog-post-body th {
    background: var(--hp-bg);
    font-weight: 600;
}

.blog-post-body hr {
    margin: 28px 0;
    border: 0;
    border-top: 1px solid var(--hp-border);
}

.blog-post-body .blog-align-center { text-align: center; }
.blog-post-body .blog-align-right { text-align: right; }
.blog-post-body .blog-align-justify { text-align: justify; }
.blog-post-body .blog-indent-1 { padding-left: 3em; }
.blog-post-body .blog-indent-2 { padding-left: 6em; }
.blog-post-body .blog-indent-3 { padding-left: 9em; }
.blog-post-body .blog-indent-4 { padding-left: 12em; }

/* ---------------------------------------------------------- 첨부 */

.blog-attachments {
    margin-top: 32px;
    padding: 16px 18px;
    background: var(--hp-bg);
    border: 1px solid var(--hp-border);
    border-radius: 0;
}

.blog-attachments h2 {
    font-size: 14px;
    font-weight: 600;
    color: var(--hp-text-secondary);
    margin: 0 0 10px;
}

.blog-attachment {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    font-size: 14px;
}

.blog-attachment + .blog-attachment {
    border-top: 1px solid var(--hp-border);
}

.blog-attachment-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.blog-attachment-size {
    color: var(--hp-text-secondary);
    font-size: 12px;
    white-space: nowrap;
}

.blog-attachment-empty {
    color: var(--hp-text-secondary);
    font-size: 13px;
}

/* ---------------------------------------------------------- 댓글 */

.blog-comments {
    max-width: 820px;
    margin: 24px auto 0;
    background: var(--hp-card);
    border: 1px solid var(--hp-border);
    border-radius: 0;
    padding: 26px 36px 30px;
}

.blog-comments h2 {
    font-size: 16px;
    font-weight: 700;
    color: var(--hp-text);
    margin: 0 0 18px;
}

.blog-comment {
    padding: 14px 0;
    border-top: 1px solid var(--hp-border);
}

.blog-comment-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    font-size: 13px;
}

.blog-comment-author {
    font-weight: 600;
    color: var(--hp-text);
}

.blog-comment-date {
    color: var(--hp-text-secondary);
    font-size: 12px;
}

.blog-comment-actions {
    margin-left: auto;
    display: flex;
    gap: 6px;
}

.blog-comment-body {
    font-size: 14px;
    line-height: 1.7;
    color: var(--hp-text);
    white-space: pre-wrap;
    word-break: break-word;
}

.blog-comment.is-deleted .blog-comment-body {
    color: var(--hp-text-secondary);
    font-style: italic;
}

.blog-comment-replies {
    margin: 10px 0 0 24px;
    padding-left: 16px;
    border-left: 2px solid var(--hp-border);
}

.blog-comment-replies .blog-comment {
    border-top: 0;
    padding: 10px 0;
}

.blog-comment-form {
    margin-top: 18px;
}

.blog-comment-form textarea {
    resize: vertical;
    min-height: 84px;
}

.blog-comment-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 8px;
}

/* ---------------------------------------------------------- 에디터 */

.blog-editor {
    max-width: 900px;
    margin: 0 auto;
}

.blog-editor-fields {
    display: grid;
    gap: 14px;
    margin-bottom: 16px;
}

.blog-editor-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.blog-editor-row > * {
    flex: 1;
    min-width: 200px;
}

.blog-editor-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--hp-text-secondary);
    margin-bottom: 5px;
}

/* 에디터 본문 높이는 고정한다. 내용이 늘어날 때마다 툴바가 화면 밖으로
 * 밀려나면 서식 버튼을 쓰기 어려워진다. */
#blogEditorSurface {
    min-height: 420px;
    background: var(--hp-card);
}

/* 실제로 글이 써지는 곳은 Quill 이 안에 만드는 .ql-editor 다. 그 높이를 같이
 * 늘려 주지 않으면 편집 영역은 한 줄뿐이고 나머지는 그냥 빈 상자여서, 첫 줄
 * 자리를 정확히 눌러야만 입력이 시작된다. */
#blogEditorSurface .ql-editor {
    min-height: 420px;
}

.blog-editor-fallback {
    width: 100%;
    min-height: 420px;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.7;
    border: 1px solid var(--hp-border);
    border-radius: 0;
}

.blog-editor-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--hp-border);
}

.blog-editor-status {
    font-size: 13px;
    color: var(--hp-text-secondary);
}

.blog-editor-attachments {
    margin-top: 18px;
}

/* ---------------------------------------------------------- 페이지네이션 */

.blog-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
    font-size: 13px;
    color: var(--hp-text-secondary);
}

.blog-pagination-controls {
    display: flex;
    gap: 4px;
    align-items: center;
    margin-left: auto;
}

.blog-page-link {
    min-width: 34px;
    padding: 5px 9px;
    border: 1px solid var(--hp-border);
    border-radius: 0;
    background: var(--hp-card);
    color: var(--hp-text);
    font-size: 13px;
    cursor: pointer;
}

.blog-page-link:hover:not(:disabled) {
    border-color: var(--hp-blue-light);
    color: var(--hp-blue);
}

.blog-page-link.active {
    background: var(--hp-blue);
    border-color: var(--hp-blue);
    color: var(--hp-card);
    font-weight: 600;
}

.blog-page-link:disabled {
    opacity: 0.45;
    cursor: default;
}

/* ---------------------------------------------------------- 상태 표시 */

.blog-empty {
    padding: 56px 20px;
    text-align: center;
    color: var(--hp-text-secondary);
    background: var(--hp-card);
    border: 1px dashed var(--hp-border);
    border-radius: 0;
}

.blog-loading {
    padding: 40px 20px;
    text-align: center;
    color: var(--hp-text-secondary);
}

.blog-alert {
    margin-bottom: 18px;
}

.blog-back {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--hp-text-secondary);
    text-decoration: none;
}

.blog-back:hover {
    color: var(--hp-blue);
}

/* ---------------------------------------------------------- 설정 모달 */

.blog-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1050;
    background: color-mix(in srgb, var(--hp-ink) 45%, transparent);
    padding: 40px 16px;
    overflow-y: auto;
}

.blog-modal.show {
    display: block;
}

.blog-modal-card {
    max-width: 560px;
    margin: 0 auto;
    background: var(--hp-card);
    border-radius: 0;
    padding: 24px 26px 26px;
}

.blog-modal-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.blog-modal-title-row h2 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

/* 첨부는 파일을 고르는 순간 올라간다. 따로 누를 단추가 없으므로 입력칸은
 * 한 줄을 다 쓴다. */
.blog-editor-file {
    max-width: 420px;
}

@media (max-width: 900px) {
    /* 좁은 화면에서는 사이드바를 본문 위로 접어 올린다. */
    .blog-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .blog-sidebar {
        position: static;
    }

    .blog-sidebar-list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
    }

    .blog-sidebar-divider {
        display: none;
    }
}

@media (max-width: 760px) {
    /* 관리 화면과 같은 지점에서 같은 여백으로 바꾼다. */
    .blog-page {
        width: auto;
        margin: 0;
        padding: 20px 12px 48px;
    }
}

@media (max-width: 720px) {
    .blog-post,
    .blog-comments {
        padding: 22px 18px 26px;
    }

    /* 좁은 화면에서는 오른쪽에 나란히 둘 자리가 없다. */
    .blog-post-head {
        flex-direction: column;
        gap: 12px;
    }

    .blog-search {
        margin-left: 0;
        width: 100%;
    }
}

/* ================= 통합 피드: 작성자(업체명)·정렬 표 ================= */

/* 작성자(업체명): 이름은 잉크, 업체는 괄호로 옅게 */
.author {
    display: inline;
    white-space: nowrap;
}
.blog-card-foot .author,
.list-meta .author {
    white-space: normal;
}
.byline-name {
    font-weight: 700;
    color: var(--hp-text);
}
.author-co {
    color: var(--hp-text-secondary);
    font-weight: 400;
}
.blog-card-foot .foot-sep {
    color: var(--hp-faint);
}

/* 리스트(표) 보기 — 줄 없는 본문, 헤더만 아래 1px 실선 */
.table-scroll {
    overflow-x: auto;
}
.blog-feed-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--hp-card);
    border: 1px solid var(--hp-border);
    font-size: 13px;
    min-width: 680px;
}
.blog-feed-table th,
.blog-feed-table td {
    padding: 12px 14px;
    text-align: left;
    vertical-align: middle;
}
.blog-feed-table thead th {
    background: transparent;
    border-bottom: 1px solid var(--hp-ink);
    font-size: 12px;
    font-weight: 700;
    color: var(--hp-text-secondary);
    letter-spacing: 0.02em;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
}
.blog-feed-table thead th:hover {
    color: var(--hp-text);
}
.blog-feed-table thead th.sorted {
    color: var(--hp-text);
}
.blog-feed-table .th-inner {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.blog-feed-table .sort-ind {
    font-size: 9px;
    color: var(--hp-faint);
}
.blog-feed-table thead th.sorted .sort-ind {
    color: var(--hp-blue);
}
.blog-feed-table tbody tr:hover {
    background: var(--hp-paper-tint);
    cursor: pointer;
}
.blog-feed-table .cell-title {
    font-weight: 700;
    color: var(--hp-text);
}
.blog-feed-table .col-num {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    color: var(--hp-text-secondary);
}
.blog-feed-table .col-num .th-inner {
    flex-direction: row-reverse;
}
.blog-feed-table td.col-date {
    white-space: nowrap;
    color: var(--hp-text-secondary);
    font-variant-numeric: tabular-nums;
}
.blog-feed-table .blog-status {
    font-size: 11px;
    padding: 1px 7px;
}

/* 비로그인 열람자에게 보이는 댓글 안내. 입력란 자리를 그대로 물려받는다. */
.comment-signin {
    margin: 0;
    padding: 18px 20px;
    border: 1px solid var(--hp-border);
    background: var(--hp-paper-tint);
    font-size: 14px;
    color: var(--hp-text-secondary);
}
.comment-signin a {
    font-weight: 700;
    color: var(--hp-blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ------------------------------------------------ 글 화면의 입력 컨트롤

   posts/ 세 화면(글 보기·내 글·글 작성)은 Bootstrap 을 함께 싣기 때문에
   손대지 않으면 입력란과 버튼이 부트스트랩 기본값 — 둥근 모서리, 파란
   포커스 링 — 으로 그려진다. 사이트의 나머지는 사각 모서리에 딥 그린
   단일 강조라, 글을 쓰는 화면만 다른 제품처럼 보였다.

   범위를 .blog-page 안으로 한정한다. 이 클래스를 다는 화면이 곧 그 세
   장이고, 관리자·데이터 화면의 부트스트랩 폼까지 건드리지 않는다. */
.blog-page .form-control,
.blog-page .form-select {
    border-radius: 0;
    border: 1px solid var(--hp-border);
    background: var(--hp-card);
    color: var(--hp-text);
    font-family: inherit;
    font-size: 14.5px;
    padding: 0.55rem 0.75rem;
}
.blog-page .form-control:focus,
.blog-page .form-select:focus {
    border-color: var(--hp-ink);
    box-shadow: none;
    outline: none;
}
.blog-page .form-control::placeholder { color: var(--hp-muted); }

/* 파일 선택 버튼도 사각으로. 브라우저마다 다른 기본 버튼이 이 자리에서만
   둥글게 남으면 그것대로 눈에 띈다. */
.blog-page .form-control[type="file"]::file-selector-button {
    border: 1px solid var(--hp-ink);
    border-radius: 0;
    background: transparent;
    color: var(--hp-ink);
    font-family: inherit;
    font-weight: 600;
    padding: 0.35rem 0.9rem;
    margin-right: 0.75rem;
}

/* 본문 편집기 — Quill 이 CDN 에서 자기 테마(.ql-snow)를 들고 온다. 테두리
   색과 모서리만 사이트 값으로 덮어, 서식 버튼의 동작은 그대로 두면서
   상자만 지면에 맞춘다. */
.blog-page .ql-toolbar.ql-snow,
.blog-page .ql-container.ql-snow {
    border-color: var(--hp-border);
    border-radius: 0;
    font-family: inherit;
}
.blog-page .ql-toolbar.ql-snow { background: var(--hp-paper-tint); }

/* 임시저장/확인 묶음. 두 버튼 사이 간격만 준다 — 모양은 btn-hp 가 갖는다. */
.blog-page .blog-editor-toolbar .blog-actions,
.blog-page #editorActions,
.blog-page #editorTopActions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

/* 댓글의 수정·삭제처럼 본문 흐름 안에 놓이는 작은 동작. 상자를 두르면
   댓글마다 버튼이 줄지어 서서 글보다 눈에 띈다 — 밑줄 링크로 둔다.
   Bootstrap 의 btn-link 는 파란 글자에 자체 여백을 갖고 있어 쓰지 않는다. */
.blog-linkbtn {
    border: 0;
    background: none;
    padding: 0;
    font: inherit;
    font-size: 12.5px;
    color: var(--hp-nav-muted);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}
.blog-linkbtn:hover { color: var(--hp-ink); }
.blog-linkbtn--danger { color: var(--hp-danger); }
.blog-linkbtn--danger:hover { color: var(--hp-danger); }
