/*
 * manual.css  —  Manual Book Digital
 * Fix: Tabler icon alignment, sidebar layout, responsive
 */

/* ══════════════════════════════════════════
   RESET & CSS VARIABLES
══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --c-bg:          #f8f9fa;
    --c-surface:     #ffffff;
    --c-border:      #a2a9b1;
    --c-border-lt:   #e1e4e8;
    --c-text:        #202122;
    --c-muted:       #6b7280;
    --c-link:        #0645ad;
    --c-link-h:      #0b0080;
    --c-primary:     #3366cc;
    --c-primary-dk:  #2a55b0;
    --c-accent:      #eaf3ff;
    --c-sidebar:     #f6f7f8;
    --sidebar-w:     172px;
    --topbar-h:      32px;
    --font-ui:       'Source Sans 3', 'Segoe UI', Arial, sans-serif;
    --font-article:  'Lora', Georgia, serif;
    --radius:        4px;
    --shadow-sm:     0 1px 3px rgba(0,0,0,.08);
    --shadow-md:     0 3px 10px rgba(0,0,0,.12);
    --transition:    .15s ease;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: var(--font-ui);
    font-size: .9375rem;
    color: var(--c-text);
    background: var(--c-bg);
    line-height: 1.6;
}

a { color: var(--c-link); text-decoration: none; }
a:hover { color: var(--c-link-h); text-decoration: underline; }

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

/* ══════════════════════════════════════════
   TOPBAR
══════════════════════════════════════════ */
.topbar {
    height: var(--topbar-h);
    background: #fff;
    border-bottom: 1px solid var(--c-border-lt);
    font-size: .8125rem;
    position: sticky;
    top: 0;
    z-index: 300;
}
.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 16px;
    max-width: 1600px;
    margin: 0 auto;
}
.topbar-user {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--c-muted);
}
.topbar-links {
    display: flex;
    align-items: center;
    gap: 14px;
}
.topbar-links a {
    color: var(--c-link);
    font-size: .8125rem;
}
.topbar-links a:hover { text-decoration: underline; }

/* ══════════════════════════════════════════
   LAYOUT
══════════════════════════════════════════ */
.wrap-all {
    display: flex;
    min-height: calc(100vh - var(--topbar-h));
}

/* ══════════════════════════════════════════
   SIDEBAR
══════════════════════════════════════════ */
.sidebar {
    width: var(--sidebar-w);
    min-width: var(--sidebar-w);
    background: var(--c-sidebar);
    border-right: 1px solid var(--c-border-lt);
    position: sticky;
    top: var(--topbar-h);
    height: calc(100vh - var(--topbar-h));
    overflow-y: auto;
    overflow-x: hidden;
    flex-shrink: 0;
    scrollbar-width: thin;
    scrollbar-color: var(--c-border-lt) transparent;
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--c-border-lt); }

/* Logo */
.sidebar-logo a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px 12px;
    border-bottom: 1px solid var(--c-border-lt);
    text-decoration: none;
}
.sidebar-logo a:hover { background: var(--c-accent); text-decoration: none; }
.logo-mark {
    width: 34px; height: 34px;
    background: var(--c-primary);
    color: #fff;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .05em;
    flex-shrink: 0;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.2; overflow: hidden; }
.logo-title {
    font-weight: 700;
    font-size: .8rem;
    color: var(--c-text);
    white-space: nowrap;
}
.logo-sub {
    font-size: .68rem;
    color: var(--c-muted);
    text-transform: uppercase;
    letter-spacing: .1em;
}

/* Sidebar Search */
.sidebar-search {
    padding: 8px 10px;
    border-bottom: 1px solid var(--c-border-lt);
}
.sidebar-search form {
    display: flex;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
}
.sidebar-search input {
    flex: 1;
    border: none;
    outline: none;
    padding: 5px 8px;
    font-size: .78rem;
    background: transparent;
    min-width: 0;
}
.sidebar-search button {
    border: none;
    background: var(--c-primary);
    color: #fff;
    padding: 5px 9px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

/* ── Nav Sistem ────────────────────────── */
.sidebar-nav { padding: 4px 0 16px; }

.nav-system {
    border-bottom: 1px solid var(--c-border-lt);
}

.nav-system-title {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    font-size: .8rem;
    font-weight: 700;
    color: var(--c-text);
    text-decoration: none;
    transition: background var(--transition);
    line-height: 1.3;
}
.nav-system-title:hover {
    background: var(--c-accent);
    text-decoration: none;
}
.nav-system.active .nav-system-title {
    color: var(--c-primary);
    background: var(--c-accent);
}
.nav-system-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    padding: 2px 5px;
    font-size: .65rem;
    font-weight: 700;
    background: var(--c-primary);
    color: #fff;
    border-radius: 3px;
    letter-spacing: .05em;
    flex-shrink: 0;
}
.nav-system.active .nav-system-code { background: var(--c-primary-dk); }
.nav-system-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Kategori */
.nav-categories {
    list-style: none;
    padding: 2px 0 6px 0;
}
.nav-categories > li > a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px 5px 16px;
    font-size: .8rem;
    color: var(--c-text);
    text-decoration: none;
    transition: background var(--transition);
    line-height: 1.3;
}
.nav-categories > li > a:hover,
.nav-categories > li.active > a {
    background: var(--c-accent);
    color: var(--c-primary);
    text-decoration: none;
}
.nav-categories > li.active > a { font-weight: 600; }

/* ✅ FIX: Tabler Icon dalam nav — ukuran konsisten */
.nav-categories > li > a .ti,
.nav-subcategories li a .ti,
.nav-general li a .ti {
    font-size: 1rem;
    flex-shrink: 0;
    color: var(--c-muted);
    width: 16px;
    text-align: center;
}
.nav-categories > li.active > a .ti,
.nav-categories > li > a:hover .ti { color: var(--c-primary); }

/* Sub-kategori */
.nav-subcategories {
    list-style: none;
    border-left: 2px solid var(--c-border-lt);
    margin: 2px 0 4px 28px;
}
.nav-subcategories li a {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    font-size: .775rem;
    color: var(--c-muted);
    text-decoration: none;
    border-radius: 2px;
}
.nav-subcategories li a:hover,
.nav-subcategories li.active a {
    color: var(--c-primary);
    background: var(--c-accent);
    text-decoration: none;
}
.nav-subcategories li.active a { font-weight: 600; }

/* Label grup */
.nav-group-label {
    padding: 12px 12px 3px;
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--c-muted);
    font-weight: 700;
}

/* Nav umum */
.nav-general { list-style: none; }
.nav-general li a {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px;
    font-size: .8rem;
    color: var(--c-muted);
    text-decoration: none;
    transition: background var(--transition);
}
.nav-general li a:hover {
    color: var(--c-link);
    background: var(--c-accent);
    text-decoration: none;
}

/* ══════════════════════════════════════════
   MAIN SECTION
══════════════════════════════════════════ */
.main-section {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: var(--c-surface);
}

/* Tabs bar */
.tabs-bar {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid var(--c-border);
    background: var(--c-bg);
    padding: 0 20px;
    gap: 8px;
    flex-wrap: nowrap;
    min-height: 40px;
}
.tabs-left, .tabs-right { display: flex; align-items: stretch; }
.tabs-left ul, .tabs-right ul {
    list-style: none;
    display: flex;
    align-items: stretch;
}
.tabs-left ul li a,
.tabs-right ul li a {
    display: flex;
    align-items: center;
    padding: 0 14px;
    font-size: .8125rem;
    color: var(--c-muted);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    height: 100%;
}
.tabs-left ul li a.active,
.tabs-right ul li a.active {
    color: var(--c-text);
    border-bottom-color: var(--c-primary);
    font-weight: 600;
}
.tabs-left ul li a:hover,
.tabs-right ul li a:hover {
    background: var(--c-accent);
    text-decoration: none;
}

/* Desktop search dalam tabs */
.desktop-search {
    flex: 1;
    display: flex;
    align-items: center;
    max-width: 420px;
    margin: 0 auto;
}
.desktop-search form {
    display: flex;
    width: 100%;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
}
.desktop-search input {
    flex: 1;
    border: none;
    outline: none;
    padding: 6px 10px;
    font-size: .8125rem;
    min-width: 0;
    font-family: var(--font-ui);
}
.desktop-search button {
    border: none;
    background: none;
    padding: 6px 10px;
    cursor: pointer;
    color: var(--c-muted);
    display: flex;
    align-items: center;
}
.desktop-search button:hover { background: var(--c-accent); }

/* Article area */
.article-area {
    flex: 1;
    padding: 28px 36px;
    max-width: 900px;
    width: 100%;
}

/* Footer */
.page-footer {
    border-top: 1px solid var(--c-border-lt);
    padding: 14px 36px;
    font-size: .78rem;
    color: var(--c-muted);
    background: var(--c-bg);
}
.footer-main { margin-bottom: 5px; }
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-links a { color: var(--c-link); font-size: .78rem; }

/* ══════════════════════════════════════════
   TYPOGRAPHY
══════════════════════════════════════════ */
.page-heading {
    font-family: var(--font-article);
    font-size: 2rem;
    font-weight: 400;
    border-bottom: 1px solid var(--c-border-lt);
    padding-bottom: 6px;
    margin-bottom: 8px;
    line-height: 1.3;
}
.page-sub {
    color: var(--c-muted);
    font-size: .9rem;
    margin-bottom: 24px;
}
.article-title {
    font-family: var(--font-article);
    font-size: 1.8rem;
    font-weight: 400;
    border-bottom: 1px solid var(--c-border-lt);
    padding-bottom: 6px;
    margin-bottom: 6px;
    line-height: 1.3;
}
.siteSub {
    color: var(--c-muted);
    font-size: .85rem;
    margin-bottom: 8px;
    font-style: italic;
}
.role-note {
    background: var(--c-accent);
    border-left: 3px solid var(--c-primary);
    padding: 8px 14px;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-size: .875rem;
    margin: 14px 0;
}
.section-heading {
    font-family: var(--font-article);
    font-size: 1.3rem;
    font-weight: 400;
    border-bottom: 1px solid var(--c-border-lt);
    padding-bottom: 4px;
    margin-bottom: 12px;
    line-height: 1.35;
}
.section-block { margin-top: 28px; }

/* ══════════════════════════════════════════
   ARTICLE CONTENT
══════════════════════════════════════════ */
.article-content { margin-top: 16px; line-height: 1.75; }
.article-content h2 {
    font-family: var(--font-article);
    font-size: 1.2rem;
    border-bottom: 1px solid var(--c-border-lt);
    margin: 22px 0 8px;
    padding-bottom: 3px;
}
.article-content h3 { font-size: 1rem; margin: 18px 0 6px; }
.article-content p  { margin-bottom: 12px; }
.article-content ul, .article-content ol { padding-left: 22px; margin-bottom: 12px; }
.article-content li { margin-bottom: 4px; }
.article-content img {
    max-width: 100%;
    border: 1px solid var(--c-border-lt);
    border-radius: var(--radius);
    display: block;
    margin: 10px 0;
}
.article-content code {
    background: #f3f4f5;
    padding: 1px 5px;
    border-radius: 3px;
    font-size: .875em;
    font-family: 'Fira Code', 'Courier New', monospace;
}
.article-content pre {
    background: #f3f4f5;
    padding: 14px;
    border-radius: var(--radius);
    overflow-x: auto;
    margin-bottom: 14px;
    font-size: .875rem;
}
.article-content pre code { background: none; padding: 0; }
.article-content table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 14px;
    font-size: .875rem;
}
.article-content th, .article-content td {
    border: 1px solid var(--c-border-lt);
    padding: 7px 12px;
    text-align: left;
}
.article-content th { background: var(--c-bg); font-weight: 600; }
.article-content tr:nth-child(even) { background: #fafbfc; }

/* ══════════════════════════════════════════
   BADGES
══════════════════════════════════════════ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: .71rem;
    font-weight: 600;
    letter-spacing: .03em;
    background: #e8ecf0;
    color: var(--c-muted);
    vertical-align: middle;
    white-space: nowrap;
}
.badge-version { background: #dff0d8; color: #3c763d; }
.badge-cat     { background: #d9edf7; color: #31708f; }
.badge-tag     { background: #f5f0ff; color: #6f42c1; cursor: pointer; }
.badge-tag:hover { background: #ede4ff; text-decoration: none; }
.badge-type-steps { background: #fff3cd; color: #856404; }
.badge-type-html  { background: #d1ecf1; color: #0c5460; }
.badge-type-md    { background: #e2e3e5; color: #383d41; }

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 10px 0 18px;
    align-items: center;
}

/* ══════════════════════════════════════════
   SYSTEM CARDS (homepage)
══════════════════════════════════════════ */
.system-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin: 20px 0 32px;
}
.system-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--c-border-lt);
    border-radius: var(--radius);
    padding: 18px;
    text-decoration: none;
    color: var(--c-text);
    background: var(--c-surface);
    transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
    box-shadow: var(--shadow-sm);
}
.system-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--c-primary);
    text-decoration: none;
    transform: translateY(-1px);
}
.system-card-code {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--c-primary);
    margin-bottom: 6px;
}
.system-card-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}
.system-card-desc {
    font-size: .82rem;
    color: var(--c-muted);
    flex: 1;
    line-height: 1.45;
}
.system-card-arrow {
    margin-top: 14px;
    color: var(--c-primary);
    font-size: 1.1rem;
    align-self: flex-end;
    font-weight: 700;
}

/* ══════════════════════════════════════════
   ARTICLE LIST
══════════════════════════════════════════ */
.article-list { list-style: none; padding: 0; }
.article-list-item {
    border-bottom: 1px solid var(--c-border-lt);
    padding: 12px 0;
}
.article-list-item:last-child { border-bottom: none; }
.article-list-link {
    font-size: .9375rem;
    font-weight: 600;
    color: var(--c-link);
}
.article-list-link:hover { text-decoration: underline; }
.article-list-summary {
    font-size: .85rem;
    color: var(--c-muted);
    margin: 4px 0 6px;
    line-height: 1.45;
}
.article-list-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.article-list-date { font-size: .75rem; color: var(--c-muted); }
.article-list-views {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: .75rem;
    color: var(--c-muted);
}

/* ══════════════════════════════════════════
   BREADCRUMB
══════════════════════════════════════════ */
.breadcrumb {
    font-size: .8rem;
    color: var(--c-muted);
    margin-bottom: 14px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}
.breadcrumb a { color: var(--c-link); }
.breadcrumb a:hover { text-decoration: underline; }
.bc-sep { color: var(--c-border); font-size: .9rem; }

/* ══════════════════════════════════════════
   TABLE OF CONTENTS
══════════════════════════════════════════ */
.contents-panel {
    border: 1px solid var(--c-border-lt);
    background: var(--c-bg);
    border-radius: var(--radius);
    display: inline-block;
    min-width: 240px;
    max-width: 360px;
    margin: 18px 0;
    font-size: .85rem;
    float: right;
    margin-left: 20px;
}
.contents-header {
    background: var(--c-border-lt);
    padding: 7px 12px;
    font-weight: 600;
    font-size: .83rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: var(--radius) var(--radius) 0 0;
}
.toc-toggle {
    background: none;
    border: none;
    color: var(--c-link);
    cursor: pointer;
    font-size: .78rem;
    padding: 0;
}
.toc-list {
    list-style: decimal;
    padding: 10px 14px 10px 34px;
    margin: 0;
}
.toc-list li { margin-bottom: 4px; }
.toc-list a { color: var(--c-link); font-size: .83rem; }

/* ══════════════════════════════════════════
   STEPS
══════════════════════════════════════════ */
.steps-container { margin-top: 16px; clear: both; }
.step-block {
    border: 1px solid var(--c-border-lt);
    border-radius: var(--radius);
    margin-bottom: 20px;
    overflow: hidden;
    background: var(--c-surface);
}
.step-header {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--c-bg);
    padding: 10px 16px;
    border-bottom: 1px solid var(--c-border-lt);
}
.step-number {
    width: 30px; height: 30px;
    background: var(--c-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    font-weight: 700;
    flex-shrink: 0;
}
.step-title { font-size: 1rem; font-weight: 600; margin: 0; }
.step-body { padding: 14px 16px; }
.step-body p { margin: 0; line-height: 1.65; }
.step-screenshot { padding: 0 16px 14px; }
.step-screenshot img {
    max-width: 100%;
    border: 1px solid var(--c-border-lt);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.step-tip {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    background: #fffbea;
    border-left: 3px solid #f0ad4e;
    padding: 9px 14px;
    font-size: .85rem;
    margin: 0 16px 14px;
    border-radius: 0 var(--radius) var(--radius) 0;
    line-height: 1.5;
}

/* ══════════════════════════════════════════
   FEEDBACK
══════════════════════════════════════════ */
.feedback-section {
    border-top: 1px solid var(--c-border-lt);
    margin-top: 36px;
    padding-top: 18px;
    clear: both;
}
.feedback-question { font-weight: 600; margin-bottom: 12px; font-size: .9375rem; }
.feedback-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-feedback {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 18px;
    border: 1px solid var(--c-border);
    border-radius: 20px;
    background: #fff;
    cursor: pointer;
    font-size: .875rem;
    font-family: var(--font-ui);
    transition: background var(--transition), border-color var(--transition);
}
.btn-helpful:hover    { background: #dff0d8; border-color: #5cb85c; }
.btn-nothelpful:hover { background: #f2dede; border-color: #d9534f; }
.btn-feedback:disabled { opacity: .55; cursor: not-allowed; }
.feedback-count { font-size: .75rem; color: var(--c-muted); }
.feedback-msg {
    margin-top: 12px;
    font-size: .875rem;
    padding: 7px 14px;
    border-radius: var(--radius);
    display: inline-block;
}
.feedback-ok  { background: #dff0d8; color: #3c763d; }
.feedback-err { background: #f2dede; color: #a94442; }

/* ══════════════════════════════════════════
   TAGS & RELATED
══════════════════════════════════════════ */
.article-tags-footer {
    margin-top: 18px;
    font-size: .85rem;
    color: var(--c-muted);
    border-top: 1px solid var(--c-border-lt);
    padding-top: 12px;
}
.article-tags-footer a { margin-left: 7px; }

.related-articles {
    margin-top: 26px;
    border-top: 1px solid var(--c-border-lt);
    padding-top: 14px;
}
.related-articles h3 { font-size: 1rem; font-weight: 600; margin-bottom: 10px; }
.related-articles ul { list-style: none; padding: 0; }
.related-articles li { padding: 5px 0; font-size: .875rem; }
.related-summary { color: var(--c-muted); }

/* ══════════════════════════════════════════
   SEARCH PAGE
══════════════════════════════════════════ */
.search-bar-inline { margin: 16px 0 24px; }
.search-bar-inline form {
    display: flex;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    overflow: hidden;
    max-width: 500px;
    background: #fff;
}
.search-bar-inline input {
    flex: 1;
    border: none;
    outline: none;
    padding: 9px 14px;
    font-size: .9rem;
    font-family: var(--font-ui);
    min-width: 0;
}
.search-bar-inline button {
    border: none;
    background: var(--c-primary);
    color: #fff;
    padding: 9px 18px;
    cursor: pointer;
    font-size: .875rem;
    font-family: var(--font-ui);
    font-weight: 600;
}
.search-system-badge {
    display: inline-block;
    font-size: .71rem;
    background: var(--c-accent);
    color: var(--c-primary);
    border-radius: 3px;
    padding: 1px 6px;
    margin-left: 8px;
    vertical-align: middle;
    font-weight: 600;
}
.empty-state {
    color: var(--c-muted);
    font-style: italic;
    font-size: .875rem;
    padding: 12px 0;
}
.empty-state p { margin-bottom: 6px; }

/* ══════════════════════════════════════════
   MOBILE SIDEBAR TOGGLE
══════════════════════════════════════════ */
.sidebar-toggle {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 46px; height: 46px;
    background: var(--c-primary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 400;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    box-shadow: 0 3px 10px rgba(0,0,0,.25);
}
.sidebar-toggle span {
    display: block;
    width: 18px; height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform .2s, opacity .2s;
}
.sidebar-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.sidebar-toggle.is-active span:nth-child(2) { opacity: 0; }
.sidebar-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ══════════════════════════════════════════
   RESPONSIVE — TABLET & MOBILE
══════════════════════════════════════════ */
@media (max-width: 900px) {
    .article-area { padding: 20px 24px; }
    .page-footer  { padding: 12px 24px; }
    .tabs-bar     { padding: 0 12px; }
    .desktop-search { max-width: 280px; }
}

@media (max-width: 768px) {
    :root { --sidebar-w: 220px; }

    .sidebar {
        position: fixed;
        top: 0; left: 0;
        height: 100vh;
        z-index: 350;
        transform: translateX(-100%);
        transition: transform .25s ease;
        box-shadow: 3px 0 16px rgba(0,0,0,.15);
    }
    .sidebar.sidebar-open { transform: translateX(0); }

    .sidebar-toggle { display: flex; }

    .article-area { padding: 16px; }
    .page-footer  { padding: 12px 16px; }

    .tabs-bar     { padding: 0 8px; gap: 0; }
    .desktop-search { display: none; }
    .tabs-right   { display: none; }

    .system-cards { grid-template-columns: 1fr 1fr; gap: 12px; }
    .article-title { font-size: 1.45rem; }

    .contents-panel { float: none; max-width: 100%; margin-left: 0; }
}

@media (max-width: 480px) {
    .system-cards { grid-template-columns: 1fr; }
    .article-title { font-size: 1.3rem; }
    .page-heading  { font-size: 1.5rem; }
    .feedback-buttons { flex-direction: column; }
    .btn-feedback  { justify-content: center; }
}