:root {
    --bg-canvas: #0d111a;
    --bg-surface: #141b29;
    --bg-elevated: #1c263a;
    --bg-hover: #243049;
    --border-subtle: #26334d;
    --border-strong: #374869;
    --text-primary: #f1f5f9;
    --text-body: #dce4f0;
    --text-secondary: #9fb0c7;
    --text-muted: #6b7d99;
    --accent: #38bdf8;
    --accent-hover: #0ea5e9;
    --accent-soft: rgba(56, 189, 248, 0.13);
    --accent-glow: rgba(56, 189, 248, 0.22);
    --badge-expert: #10b981;
    --badge-master: #f59e0b;
    --badge-admin: #818cf8;
    --paren-round: #7dd3fc;     /* (...) terjemahan / catatan ringan */
    --paren-round-bg: rgba(125, 211, 252, 0.08);
    --paren-square: #fbbf24;    /* [...] bagian lagu / chord / label */
    --paren-square-bg: rgba(251, 191, 36, 0.10);
    --paren-curly: #c4b5fd;     /* {...} blok / aksen khusus */
    --paren-curly-bg: rgba(196, 181, 253, 0.10);
    --danger: #ef4444;
    --success: #22c55e;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-card: 0 12px 32px rgba(2, 6, 15, 0.45);
    --container: 1200px;
}

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

html {
    scroll-behavior: smooth;
    max-width: 100%;
    overflow-x: clip;
}

body {
    background-color: var(--bg-canvas);
    background-image: radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.06), transparent 48%);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
    line-height: 1.68;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
    display: flex;
    flex-direction: column;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s ease, background-color 0.2s ease; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; height: auto; display: block; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 20px auto;
    padding: 0 20px;
}

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, #38bdf8, #818cf8, #fbbf24);
    z-index: 9999;
    transition: width 0.1s linear;
}

/* Header & Navigation */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: rgba(13, 17, 26, 0.9);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    gap: 16px;
    min-width: 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
    min-width: 0;
    flex-shrink: 0;
}
.brand:hover { color: var(--text-primary); }
.brand-badge {
    background: var(--accent-soft);
    color: var(--accent);
    border: 1px solid rgba(56, 189, 248, 0.32);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 2px 8px;
    border-radius: 999px;
    flex-shrink: 0;
}

.main-nav { min-width: 0; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
    list-style: none;
}
.nav-links a {
    color: var(--text-secondary);
    font-size: 0.92rem;
    font-weight: 500;
}
.nav-links a:hover, .nav-links a.active { color: var(--text-primary); }

/* Profile Pill (Avatar + Username) */
.nav-profile-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px 4px 5px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 999px;
    color: var(--text-primary) !important;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.nav-profile-link:hover {
    border-color: var(--accent);
    background: var(--bg-hover);
}
.nav-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border-strong);
    flex-shrink: 0;
}
.nav-avatar-fallback {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    border: 1px solid rgba(56, 189, 248, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 700;
    flex-shrink: 0;
}
.nav-username {
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.86rem;
    font-weight: 600;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.btn-primary {
    background: var(--accent);
    color: #07111e;
}
.btn-primary:hover {
    background: var(--accent-hover);
    color: #07111e;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px var(--accent-glow);
}
.btn-outline {
    background: var(--bg-elevated);
    border-color: var(--border-strong);
    color: var(--text-primary);
}
.btn-outline:hover {
    background: var(--bg-hover);
    border-color: var(--accent);
    color: var(--text-primary);
}
.btn-ghost {
    background: var(--bg-elevated);
    color: var(--text-secondary);
}
.btn-ghost:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.menu-toggle {
    display: none;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Category Pills Bar */
.cat-bar {
    width: 100%;
    max-width: 100%;
    border-bottom: 1px solid var(--border-subtle);
    background: rgba(20, 27, 41, 0.85);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.cat-bar::-webkit-scrollbar { display: none; }
.cat-bar-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    width: max-content;
    min-width: 100%;
}
.cat-pill {
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-canvas);
    border: 1px solid var(--border-subtle);
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.2s ease;
}
.cat-pill:hover, .cat-pill.active {
    background: var(--accent-soft);
    color: var(--accent);
    border-color: rgba(56, 189, 248, 0.45);
}

/* Main Layout */
main {
    flex: 1;
    width: 100%;
    min-width: 0;
    padding: 36px 0 64px;
}

/* Hero Featured Card */
.hero-card {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 42px;
    box-shadow: var(--shadow-card);
}
.hero-media {
    position: relative;
    min-height: 320px;
    background: var(--bg-elevated);
}
.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-body {
    padding: 34px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    min-width: 0;
}
.hero-title {
    font-size: clamp(1.5rem, 2.5vw, 2.15rem);
    line-height: 1.22;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    overflow-wrap: anywhere;
}
.hero-title a { color: inherit; }
.hero-title a:hover { color: var(--accent); }
.hero-excerpt {
    color: var(--text-secondary);
    font-size: 0.98rem;
}

/* Content + Sidebar Grid */
.layout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 32px;
    align-items: start;
}

/* Article Grid */
.post-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.post-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-width: 0;
    box-shadow: 0 6px 20px rgba(2, 6, 15, 0.25);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.post-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-card);
}
.post-thumb {
    aspect-ratio: 1200 / 630;
    background: var(--bg-elevated);
    overflow: hidden;
}
.post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}
.post-card:hover .post-thumb img { transform: scale(1.04); }

.post-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 10px;
    min-width: 0;
}
.meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.meta-row.meta-dates {
    background: #ffffff0a;
    display: block;
    padding: 0 8px;
    border-bottom: solid 1px #ffffff2b;
    text-align: center;
}
.cat-tag {
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.72rem;
}
.post-title {
    font-size: 1.15rem;
    line-height: 1.35;
    color: var(--text-primary);
    overflow-wrap: anywhere;
}
.post-title a { color: inherit; }
.post-title a:hover { color: var(--accent); }
.post-excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: auto;
}
.post-footer {
    padding-top: 12px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Sidebar Widgets */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
}
.widget {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 22px;
    min-width: 0;
    box-shadow: 0 6px 20px rgba(2, 6, 15, 0.22);
}
.widget-title {
    font-size: 0.92rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-subtle);
}

.search-form { display: flex; gap: 8px; min-width: 0; }
.input-control {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    background: var(--bg-canvas);
    border: 1px solid var(--border-strong);
    color: var(--text-primary);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.input-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

input[type="file"].input-control {
    overflow: hidden;
    text-overflow: ellipsis;
}

select.input-control option {
    background: var(--bg-surface);
    color: var(--text-primary);
}
select.input-control option:disabled {
    color: var(--text-muted);
}

.popular-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.popular-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    min-width: 0;
}
.popular-rank {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--accent);
    background: var(--accent-soft);
    border-radius: 6px;
    padding: 2px 7px;
    line-height: 1.3;
    flex-shrink: 0;
}
.popular-item a {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.38;
    overflow-wrap: anywhere;
}
.popular-item a:hover { color: var(--accent); }
.popular-meta { font-size: 0.76rem; color: var(--text-muted); margin-top: 3px; }

/* Single Article Page */
.article-wrap {
    max-width: 780px;
    width: 100%;
    margin: 0 auto;
    min-width: 0;
}
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.84rem;
    color: var(--text-muted);
    margin-bottom: 18px;
    overflow-wrap: anywhere;
}
.article-header {
    margin-bottom: 28px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--border-subtle);
}
.article-h1 {
    font-size: clamp(1.65rem, 3.5vw, 2.55rem);
    line-height: 1.22;
    letter-spacing: -0.025em;
    margin: 12px 0 14px;
    overflow-wrap: anywhere;
}
.article-lead {
    font-size: 1.06rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 20px;
}
.article-cover {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    margin-bottom: 32px;
    aspect-ratio: 1200 / 630;
    background: var(--bg-surface);
    box-shadow: var(--shadow-card);
}
.article-cover img { width: 100%; height: 100%; object-fit: cover; }

/* Editorial Typography (Nyaman untuk Artikel & Lirik Panjang) */
.prose {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 32px 30px;
    font-size: 1.03rem;
    line-height: 1.85;
    color: var(--text-body);
    overflow-wrap: anywhere;
    box-shadow: 0 8px 24px rgba(2, 6, 15, 0.25);
}
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }

.prose h2 {
    font-size: 1.45rem;
    margin: 2em 0 0.85em;
    color: var(--text-primary);
    letter-spacing: -0.015em;
    padding: 8px 0 8px 14px;
    border-left: 3px solid var(--accent);
    background: linear-gradient(90deg, rgba(56, 189, 248, 0.08), transparent);
    border-radius: 0 6px 6px 0;
}
.prose h3 {
    font-size: 1.2rem;
    margin: 1.7em 0 0.65em;
    color: var(--text-primary);
}
.prose p {
    margin-bottom: 1.35em;
}
.prose ul, .prose ol {
    margin: 0.4em 0 1.5em 0;
    padding-left: 1.4em;
}
.prose li {
    margin-bottom: 0.65em;
    padding-left: 4px;
}
.prose li::marker {
    color: var(--accent);
    font-weight: 700;
}
.prose a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-color: rgba(56, 189, 248, 0.45);
    text-underline-offset: 3px;
}
.prose a:hover {
    color: #7dd3fc;
    text-decoration-color: #7dd3fc;
}
.prose blockquote {
    border-left: 4px solid #818cf8;
    background: var(--bg-elevated);
    padding: 16px 20px;
    margin: 1.7em 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--text-body);
}
.prose pre {
    background: #090d16;
    border: 1px solid var(--border-strong);
    padding: 16px 18px;
    border-radius: var(--radius-sm);
    overflow-x: auto;
    max-width: 100%;
    margin: 1.6em 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #93c5fd;
}
.prose code {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    padding: 2px 6px;
    border-radius: 5px;
    font-size: 0.88em;
    color: #93c5fd;
}
.prose pre code {
    background: transparent;
    border: none;
    padding: 0;
}
.prose img {
    border-radius: var(--radius-md);
    margin: 1.6em 0;
    border: 1px solid var(--border-subtle);
}

/* Pewarnaan Pasangan Tanda Kurung Tertutup: (), [], {} */
.paren-round {
    color: var(--paren-round);
    background: var(--paren-round-bg);
    padding: 1px 5px;
    border-radius: 5px;
}
.paren-square {
    color: var(--paren-square);
    background: var(--paren-square-bg);
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 5px;
}
.paren-curly {
    color: var(--paren-curly);
    background: var(--paren-curly-bg);
    padding: 1px 5px;
    border-radius: 5px;
}

/* Badges */
.role-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 8px;
    border-radius: 999px;
}
.role-badge.expert { background: rgba(16, 185, 129, 0.15); color: var(--badge-expert); }
.role-badge.master { background: rgba(245, 158, 11, 0.15); color: var(--badge-master); }
.role-badge.admin  { background: rgba(129, 140, 248, 0.15); color: var(--badge-admin); }

/* Tags & Share */
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.tag-chip {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 6px 13px;
    border-radius: 999px;
    font-size: 0.82rem;
}
.tag-chip:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
}

.author-box {
    margin-top: 32px;
    padding: 24px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

/* Alerts & Notifications */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.92rem;
    border: 1px solid transparent;
    overflow-wrap: anywhere;
}
.alert-success {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.35);
    color: #86efac;
}
.alert-error {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.35);
    color: #fca5a5;
}

/* Editor Studio */
.studio-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    flex-wrap: wrap;
    gap: 12px;
}

.editor-panel {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: 0 8px 24px rgba(2, 6, 15, 0.25);
}
.form-group {
    margin-bottom: 20px;
    min-width: 0;
}
.form-label {
    display: block;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}
.form-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
.editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-strong);
    border-bottom: none;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.tool-btn {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
}
.tool-btn:hover { border-color: var(--accent); color: var(--accent); }
textarea.editor-area {
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    min-height: 320px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    line-height: 1.6;
    resize: vertical;
}

.serp-preview {
    background: var(--bg-canvas);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-top: 10px;
    overflow-wrap: anywhere;
}
.serp-url { font-size: 0.78rem; color: var(--text-muted); }
.serp-title { font-size: 1.05rem; color: #60a5fa; margin: 4px 0; }
.serp-desc { font-size: 0.84rem; color: var(--text-secondary); }

.form-actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 28px;
    flex-wrap: wrap;
    gap: 14px;
}
.form-status-group {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    min-width: 0;
    max-width: 100%;
}
.status-select {
    width: auto;
    max-width: 100%;
}
.featured-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--text-secondary);
    cursor: pointer;
}
.btn-submit-article {
    padding: 11px 24px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 36px;
    flex-wrap: wrap;
}
.page-link {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: 0.88rem;
}
.page-link.active, .page-link:hover {
    background: var(--accent);
    color: #07111e;
    border-color: var(--accent);
    font-weight: 700;
}

/* Footer */
.site-footer {
    width: 100%;
    border-top: 1px solid var(--border-subtle);
    background: var(--bg-surface);
    padding: 36px 0;
    color: var(--text-muted);
    font-size: 0.86rem;
}
.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: var(--text-secondary); }
.footer-links a:hover { color: var(--accent); }

/* Responsive Breakpoints */
@media (max-width: 992px) {
    .hero-card { grid-template-columns: 1fr; }
    .hero-media { min-height: 240px; }
    .layout-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .container { padding: 0 16px; }
    .cat-bar-inner { padding: 10px 16px; }

    .header-inner {
        height: 60px;
        gap: 10px;
    }
    .main-nav { display: contents; }
    .brand { font-size: 1.08rem; gap: 7px; }
    .brand-badge { font-size: 0.64rem; padding: 2px 6px; }
    .header-actions { gap: 8px; }
    .header-actions .btn { padding: 7px 12px; font-size: 0.82rem; }
    .menu-toggle { display: inline-flex; width: 38px; height: 38px; }

    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        width: 100%;
        background: var(--bg-surface);
        border-bottom: 1px solid var(--border-subtle);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
        flex-direction: column;
        padding: 16px;
        gap: 14px;
        align-items: flex-start;
        z-index: 999;
    }
    .nav-links.open { display: flex; }
    .nav-links li { width: 100%; }
    .nav-profile-link { max-width: 100%; }
    .nav-username { max-width: 220px; }

    main { padding: 24px 0 48px; }
    .post-grid, .form-grid-2 { grid-template-columns: 1fr; gap: 16px; }
    .hero-body { padding: 20px; }
    .prose { padding: 20px 16px; font-size: 1rem; line-height: 1.8; }
    .editor-panel { padding: 18px 16px; }

    .form-actions-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .form-status-group {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .status-select,
    .btn-submit-article {
        width: 100%;
    }
}

@media (max-width: 400px) {
    .container { padding: 0 12px; }
    .cat-bar-inner { padding: 10px 12px; }
    .brand { font-size: 1rem; gap: 6px; }
    .hide-xs { display: none; }
}
