@import url('/css/pretendard/static/pretendard-subset.css');

/*
 * common.css — WE-CMS 전체 공통 스타일시트
 *
 * 목적: 모든 페이지에 적용되는 레이아웃, 타이포그래피, 컴포넌트 스타일 정의.
 * 구조: Reset → Layout(container/sidebar/content) → Typography → Form → Button →
 *       Table → Pagination → Chip → Modal → Error → Tabs → Autocomplete →
 *       Content Viewer → SVN Browser → Admin Nav
 *
 * html font-size(16px) 기준 rem 단위 사용. 전체 비례 크기 조절 가능.
 */

/* ===== Reset ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    line-height: 1.6;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    min-height: 100vh;
}

a {
    color: #2563eb;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== GNB (Global Navigation Bar) ===== */
.gnb {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #1e293b;
    color: #f8fafc;
    height: 56px;
    display: flex;
    align-items: center;
    padding: 0 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.gnb-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: #f8fafc;
    margin-right: 32px;
    text-decoration: none;
}

.gnb-logo:hover {
    text-decoration: none;
    color: #fff;
}

.gnb-menu {
    display: flex;
    gap: 4px;
    flex: 1;
}

.gnb-menu a {
    color: #cbd5e1;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: background 0.15s, color 0.15s;
    text-decoration: none;
}

.gnb-menu a:hover,
.gnb-menu a.active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
}

.gnb-user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    color: #94a3b8;
    font-size: 0.85rem;
}

.gnb-user strong {
    color: #e2e8f0;
}

.gnb-user form {
    display: inline;
}

.gnb-user .btn-logout {
    background: transparent;
    border: 1px solid #475569;
    color: #94a3b8;
    padding: 4px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background 0.15s, color 0.15s;
}

.gnb-user .btn-logout:hover {
    background: #475569;
    color: #f8fafc;
}

/* ===== Container (flex sidebar + content) ===== */
.container {
    display: flex;
    min-height: calc(100vh - 56px - 48px); /* gnb + footer */
    max-width: 1440px;
    margin: 0 auto;
    padding: 0;
}

.container--full {
    max-width: 100%;
}

/* ===== Sidebar ===== */
.sidebar {
    width: 260px;
    min-width: 260px;
    position: sticky;
    top: 56px;
    height: calc(100vh - 56px);
    overflow-y: auto;
    overflow-x: hidden;
    background: #fff;
    border-right: 1px solid #e2e8f0;
    padding: 8px;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    color: #334155;
}

/* ===== Content ===== */
.content {
    flex: 1;
    padding: 24px 32px;
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.content-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
    text-decoration: none;
    line-height: 1.4;
}

.btn:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    text-decoration: none;
}

.btn-primary {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

.btn-primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

.btn-danger {
    background: #dc2626;
    color: #fff;
    border-color: #dc2626;
}

.btn-danger:hover {
    background: #b91c1c;
    border-color: #b91c1c;
}

.btn-sm {
    padding: 4px 10px;
    font-size: 0.8rem;
}

.btn + .btn {
    margin-left: 6px;
}

/* ===== Forms ===== */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
    color: #334155;
    font-size: 0.875rem;
}

.form-group label .required {
    color: #dc2626;
    margin-left: 2px;
}

.form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.875rem;
    color: #1e293b;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.form-control:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-control::placeholder {
    color: #9ca3af;
}

.form-control[readonly] {
    background: #f1f5f9;
    cursor: not-allowed;
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

select.form-control {
    cursor: pointer;
}

.form-inline {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    flex-wrap: nowrap;
}
.form-inline .form-control {
    flex: 1;
    min-width: 0;
}

.form-text {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 4px;
}

.form-error {
    font-size: 0.8rem;
    color: #dc2626;
    margin-top: 4px;
}

.form-success {
    font-size: 0.8rem;
    color: #16a34a;
    margin-top: 4px;
}

/* ===== Error Page ===== */
.error-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
}

.error-page .error-code {
    font-size: 6rem;
    font-weight: 800;
    color: #cbd5e1;
    line-height: 1;
}

.error-page .error-message {
    font-size: 1.25rem;
    color: #475569;
    margin: 16px 0 24px;
}

/* ===== Table ===== */
.table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.table th,
.table td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.875rem;
}

.table th {
    background: #f8fafc;
    font-weight: 600;
    color: #475569;
    white-space: nowrap;
}

.table tbody tr:hover {
    background: #f1f5f9;
}

.table tbody tr:last-child td {
    border-bottom: none;
}
.table-notice { margin-bottom: 0; }
.notice-row { background: #fffbeb; }
.notice-row:hover { background: #fef3c7; }
.badge-notice {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    margin-right: 6px;
    background: #f59e0b;
    color: #fff;
    border-radius: 4px;
    vertical-align: middle;
}

.table td a {
    color: #1e293b;
    font-weight: 500;
}

.table td a:hover {
    color: #2563eb;
}

.table .col-center {
    text-align: center;
}

.table .col-right {
    text-align: right;
}

.table .col-narrow {
    width: 80px;
}

.table .col-author {
    width: 120px;
    white-space: nowrap;
}

.table .col-date {
    width: 100px;
    white-space: nowrap;
}

/* ===== Pagination ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-top: 20px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.8rem;
    color: #475569;
    text-decoration: none;
    transition: background 0.15s;
}

.pagination a:hover {
    background: #f1f5f9;
    text-decoration: none;
}

.pagination .active {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
    font-weight: 600;
}

.pagination .disabled {
    color: #cbd5e1;
    pointer-events: none;
}

/* ===== Chip ===== */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 10px;
    background: #eff6ff;
    color: #1d4ed8;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.chip a {
    color: inherit;
    text-decoration: none;
}

.chip a:hover {
    text-decoration: underline;
}

.chip .chip-remove {
    cursor: pointer;
    font-size: 0.85rem;
    color: #93c5fd;
    margin-left: 2px;
    line-height: 1;
}

.chip .chip-remove:hover {
    color: #dc2626;
}

.chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 6px;
}
.chip-list-usertag {
    font-size: 0.8rem;
    margin-top: 2px;
}
.chip-linked {
    display: inline-block;
    font-size: 0.7rem;
    padding: 1px 8px;
    margin-left: 6px;
    background: #e0f2fe;
    color: #0369a1;
    border-radius: 999px;
    text-decoration: none;
    vertical-align: middle;
}
.chip-linked:hover { background: #bae6fd; }

/* ===== Alert ===== */
.alert {
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 0.875rem;
    margin-bottom: 16px;
    border: 1px solid transparent;
}

.alert-success {
    background: #f0fdf4;
    color: #166534;
    border-color: #bbf7d0;
}

.alert-error {
    background: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
}

.alert-info {
    background: #eff6ff;
    color: #1e40af;
    border-color: #bfdbfe;
}

/* ===== Tree styles ===== */
.tree-list {
    list-style: none;
    padding-left: 0;
}

.tree-list .tree-list {
    padding-left: 18px;
}

.tree-item {
    margin: 1px 0;
}

.tree-row {
    display: flex;
    align-items: center;
    padding: 4px 6px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.1s;
}

.tree-row:hover {
    background: #f1f5f9;
}

.tree-row.active {
    background: #eff6ff;
    color: #1d4ed8;
}

.tree-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    color: #64748b;
    flex-shrink: 0;
    transition: transform 0.15s;
    user-select: none;
}

.tree-toggle.expanded {
    transform: rotate(90deg);
}

.tree-toggle.empty::before {
    content: '·';
    font-size: 1.6rem;
    line-height: 0;
}

.tree-link {
    flex: 1;
    color: #334155;
    font-size: 0.85rem;
    padding: 2px 4px;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tree-link:hover {
    color: #2563eb;
    text-decoration: none;
}

/* ===== Member Select Dropdown ===== */
.member-select-wrapper { position: relative; }
.member-select-dropdown {
    position: absolute; z-index: 10; width: 100%;
    max-height: 240px; overflow-y: auto;
    background: #fff; border: 1px solid #e2e8f0;
    border-radius: 6px; box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-top: 2px;
}
.member-select-dropdown label {
    display: block; padding: 8px 12px; cursor: pointer; font-size: 0.85rem;
}
.member-select-dropdown label:hover { background: #f1f5f9; }

/* ===== Tree Select Dropdown ===== */
.tree-select-wrapper { position: relative; }
.tree-select-dropdown {
    position: absolute; z-index: 10; width: 100%;
    max-height: 300px; overflow-y: auto;
    background: #fff; border: 1px solid #e2e8f0;
    border-radius: 6px; box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-top: 2px;
}
.tree-select-option {
    padding: 6px 12px; cursor: pointer; font-size: 0.85rem;
}
.tree-select-option:hover { background: #f1f5f9; }
.tree-select-option.selected { background: #eff6ff; color: #2563eb; }
.tree-select-option.disabled { color: #cbd5e1; pointer-events: none; }

/* ===== Footer ===== */
.footer {
    text-align: center;
    padding: 14px 24px;
    color: #94a3b8;
    font-size: 0.8rem;
    border-top: 1px solid #e2e8f0;
    background: #fff;
}

/* ===== Tabs ===== */
.tabs {
    display: flex;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 24px;
    gap: 0;
}

.tabs a,
.tabs button {
    padding: 10px 20px;
    font-size: 0.9rem;
    color: #64748b;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.15s, border-color 0.15s;
}

.tabs a:hover,
.tabs button:hover {
    color: #1e293b;
    text-decoration: none;
}

.tabs a.active,
.tabs button.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
    font-weight: 600;
}

/* ===== Modal ===== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-overlay.show {
    display: flex;
}

.modal {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    max-width: 560px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 600;
    font-size: 1rem;
}

.modal-header .modal-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #94a3b8;
    cursor: pointer;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 20px;
    border-top: 1px solid #e2e8f0;
}

/* ===== Auth page (no sidebar) ===== */
.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 56px - 48px);
    padding: 40px 16px;
}

.auth-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    padding: 40px;
    width: 100%;
    max-width: 440px;
}

.auth-card h1 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 28px;
    color: #0f172a;
}

/* ===== Toggle switch ===== */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-switch .slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #cbd5e1;
    border-radius: 24px;
    transition: background 0.2s;
}

.toggle-switch .slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
}

.toggle-switch input:checked + .slider {
    background: #2563eb;
}

.toggle-switch input:checked + .slider::before {
    transform: translateX(20px);
}

/* ===== Admin navigation ===== */
.admin-nav {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.admin-nav a {
    padding: 8px 16px;
    border-radius: 6px;
    color: #475569;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s;
}

.admin-nav a:hover {
    background: #f1f5f9;
    text-decoration: none;
}

.admin-nav a.active {
    background: #1e293b;
    color: #fff;
}

/* ===== Comment ===== */
.comment-list {
    margin-top: 24px;
}

.comment-item {
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.comment-item.reply {
    margin-left: 40px;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 0.85rem;
}

.comment-header .author {
    font-weight: 600;
    color: #1e293b;
}

.comment-header .badge {
    font-size: 0.7rem;
    padding: 1px 6px;
    border-radius: 4px;
    background: #eff6ff;
    color: #2563eb;
}

.comment-header .badge-secret {
    background: #fef3c7;
    color: #92400e;
}

.comment-header .date {
    color: #94a3b8;
}

.comment-body {
    color: #334155;
    font-size: 0.9rem;
    line-height: 1.6;
}

.comment-actions {
    display: flex;
    gap: 8px;
    margin-top: 6px;
}

.comment-actions button,
.comment-actions a {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 0.8rem;
    cursor: pointer;
    padding: 2px 4px;
    text-decoration: none;
}

.comment-actions button:hover,
.comment-actions a:hover {
    color: #2563eb;
}

/* ===== File drop zone ===== */
.drop-zone {
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 32px;
    text-align: center;
    color: #94a3b8;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.drop-zone:hover,
.drop-zone.drag-over {
    border-color: #2563eb;
    background: #eff6ff;
}

/* ===== Breadcrumb ===== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: #2563eb;
}

.breadcrumb .separator {
    color: #cbd5e1;
}

/* ===== Search bar ===== */
.search-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    align-items: center;
}

.search-bar .form-control {
    max-width: 400px;
}

/* ===== Radio group ===== */
.radio-group {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 12px;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.875rem;
    cursor: pointer;
    color: #475569;
}

/* ===== Autocomplete ===== */
.autocomplete-wrapper {
    position: relative;
}

.autocomplete-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
    display: none;
}

.autocomplete-list.show {
    display: block;
}

.autocomplete-list .autocomplete-item {
    padding: 8px 12px;
    font-size: 0.85rem;
    cursor: pointer;
    color: #334155;
}

.autocomplete-list .autocomplete-item:hover {
    background: #eff6ff;
    color: #1d4ed8;
}

/* ===== 본문 pre 태그 오버플로 처리 ===== */
.content pre {
    max-width: 100%;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* ===== SVN code viewer ===== */
.code-viewer {
    background: #1e293b;
    color: #e2e8f0;
    border-radius: 8px;
    overflow: auto;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.8rem;
    line-height: 1.7;
}

.code-viewer pre {
    margin: 0;
    padding: 16px;
}

.code-viewer .line-number {
    display: inline-block;
    width: 40px;
    text-align: right;
    padding-right: 12px;
    color: #64748b;
    user-select: none;
}

/* ===== Utility ===== */
.text-muted {
    color: #94a3b8;
}

.text-center {
    text-align: center;
}

.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mr-8 { margin-right: 8px; }
.gap-8 { gap: 8px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.flex-wrap { flex-wrap: wrap; }
.hidden { display: none !important; }

/* ===== Loading spinner ===== */
.loading-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.6);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}
.loading-overlay.show { display: flex; }
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e2e8f0;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Sidebar toggle button (desktop: hidden) ===== */
.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    color: #f8fafc;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 4px 8px;
    margin-right: 8px;
}

/* ===== Sidebar backdrop (desktop: hidden) ===== */
.sidebar-backdrop {
    display: none;
}

.post-viewer {
	padding: 20px;
	border: 1px solid #ccc;
	border-radius: 15px;
	overflow-wrap: break-word;
	word-break: break-word;
	min-height: 500px;
}
.toastui-editor-contents {
    font-size: 16px;
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
    /* GNB */
    .gnb {
        height: auto;
        flex-wrap: wrap;
        padding: 8px 12px;
    }
    .gnb-logo { margin-right: auto; }
    .gnb-menu {
        order: 3;
        width: 100%;
        gap: 0;
        margin-top: 4px;
    }
    .gnb-menu a { padding: 6px 10px; font-size: 0.8rem; }
    .gnb-user { gap: 8px; font-size: 0.8rem; }

    /* Sidebar toggle button */
    .sidebar-toggle { display: inline-flex; }

    /* Sidebar — drawer */
    .sidebar {
        position: fixed;
        top: 0;
        left: -280px;
        z-index: 1500;
        width: 280px;
        min-width: 280px;
        height: 100vh;
        transition: left 0.25s ease;
    }
    .sidebar.open { left: 0; }

    /* Sidebar backdrop */
    .sidebar-backdrop.show {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 1499;
    }

    /* Container / Content */
    .container { flex-direction: column; }
    .content { padding: 16px 12px; }
    .content-header { flex-wrap: wrap; gap: 8px; }
    .content-header h1 { font-size: 1.2rem; }

    /* Table */
    .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .table th, .table td { padding: 8px 10px; font-size: 0.8rem; }

    /* Search bar / Form */
    .search-bar { flex-wrap: wrap; }
    .search-bar .form-control { max-width: 100%; }
    .form-inline { flex-wrap: wrap; }

    /* Admin nav */
    .admin-nav { flex-wrap: wrap; gap: 4px; }
    .admin-nav a { padding: 6px 10px; font-size: 0.8rem; }

    /* Tabs */
    .tabs { overflow-x: auto; }
    .tabs a, .tabs button { padding: 8px 14px; font-size: 0.8rem; white-space: nowrap; }

    /* Comment reply indent */
    .comment-item.reply { margin-left: 20px; }

    /* Auth card */
    .auth-card { padding: 24px 16px; }

    /* Modal */
    .modal { width: 95%; }

	.post-viewer {
		padding: 5px;
		border-top: 1px solid #ccc;
		border-bottom: 1px solid #ccc;
		border-left: none;
		border-right: none;
		border-radius: 0;
		overflow-wrap: break-word;
		word-break: break-word;
	}
}


