/* ════════════════════════════════════════════════════════════════════════
   سامانه افشا — Enterprise Design System
   Brand: ink #323133 · accent (red, used sparingly) #C9253B
   ════════════════════════════════════════════════════════════════════════ */

/* ── Font ─────────────────────────────────────────────────────────────── */
@font-face {
    font-family: 'IRANSansX';
    src: url('../fonts/IRANSansXVFont.woff2') format('woff2-variations'),
         url('../fonts/IRANSansXVFont.woff2') format('woff2');
    font-weight: 100 900;
    font-display: swap;
    font-style: normal;
}

/* ── Design tokens ────────────────────────────────────────────────────── */
:root {
    --ink: #323133;
    --ink-2: #4a4a4d;
    --accent: #c9253b;
    --accent-2: #e02a44;
    --accent-soft: rgba(201, 37, 59, .09);
    --accent-ring: rgba(201, 37, 59, .25);

    --bg: #f5f6f8;
    --surface: #ffffff;
    --surface-2: #fafbfc;
    --surface-3: #f1f3f5;
    --border: #e6e8ec;
    --border-strong: #d4d8de;

    --text: #1f2024;
    --text-muted: #6b7180;
    --text-soft: #9aa0ad;
    --text-invert: #ffffff;

    --success: #15803d;
    --success-soft: #e8f5ec;
    --warning: #b45309;
    --warning-soft: #fdf3e7;
    --info: #1d4ed8;
    --info-soft: #eaf0fe;
    --danger: #c9253b;
    --danger-soft: #fcebee;
    --neutral-soft: #eef0f3;

    --radius-sm: 7px;
    --radius: 11px;
    --radius-lg: 16px;
    --radius-pill: 999px;

    --shadow-xs: 0 1px 2px rgba(20, 22, 28, .05);
    --shadow-sm: 0 1px 3px rgba(20, 22, 28, .07), 0 1px 2px rgba(20, 22, 28, .04);
    --shadow: 0 4px 14px rgba(20, 22, 28, .08), 0 1px 3px rgba(20, 22, 28, .05);
    --shadow-lg: 0 18px 50px rgba(20, 22, 28, .16);

    --header-h: 64px;
    --sidebar-w: 264px;
    --container: 1240px;

    --font: 'IRANSansX', 'Segoe UI', Tahoma, sans-serif;
    --ease: cubic-bezier(.4, 0, .2, 1);
}

[data-theme='dark'] {
    --ink: #e8e9ec;
    --ink-2: #c4c6cc;
    --accent: #ef4860;
    --accent-2: #f15c72;
    --accent-soft: rgba(239, 72, 96, .14);
    --accent-ring: rgba(239, 72, 96, .35);

    --bg: #0e0f13;
    --surface: #17181e;
    --surface-2: #1c1e25;
    --surface-3: #23262e;
    --border: #2a2d36;
    --border-strong: #383c47;

    --text: #e8e9ec;
    --text-muted: #9aa0ad;
    --text-soft: #6b7180;
    --text-invert: #ffffff;

    --success: #34d399;
    --success-soft: rgba(52, 211, 153, .14);
    --warning: #fbbf24;
    --warning-soft: rgba(251, 191, 36, .14);
    --info: #60a5fa;
    --info-soft: rgba(96, 165, 250, .14);
    --danger: #f87171;
    --danger-soft: rgba(248, 113, 113, .14);
    --neutral-soft: #23262e;

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, .5);
    --shadow: 0 6px 20px rgba(0, 0, 0, .5);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, .6);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { overflow-x: clip; max-width: 100%; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    font-size: 14.5px;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    font-variation-settings: 'wght' 400;
    transition: background .25s var(--ease), color .25s var(--ease);
}

a { color: inherit; text-decoration: none; transition: color .15s var(--ease); }
a:hover { color: var(--accent); }
img, svg { max-width: 100%; vertical-align: middle; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
table { border-collapse: collapse; width: 100%; }
h1, h2, h3, h4, h5 { font-weight: 700; line-height: 1.35; color: var(--text); font-variation-settings: 'wght' 700; }
::selection { background: var(--accent-soft); }

:focus-visible { outline: 2px solid var(--accent-ring); outline-offset: 2px; border-radius: 4px; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 999px; border: 2px solid var(--bg); }
::-webkit-scrollbar-track { background: transparent; }

/* ── Layout primitives ────────────────────────────────────────────────── */
.container { max-width: var(--container); margin-inline: auto; padding-inline: 22px; width: 100%; }
.section { padding-block: 44px; }
.section--tight { padding-block: 26px; }
.section__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.section__title { font-size: 19px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.section__title::before { content: ''; width: 4px; height: 20px; border-radius: 4px; background: var(--accent); display: inline-block; }
.section__link { color: var(--text-muted); font-size: 13px; font-weight: 600; }
.section__link:hover { color: var(--accent); }

.grid { display: grid; gap: 18px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--sidebar { grid-template-columns: 1fr 320px; align-items: start; }
.grid--auto { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.grid > * { min-width: 0; }

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 9px 16px; border-radius: var(--radius-sm); font-size: 13.5px; font-weight: 600;
    border: 1px solid transparent; white-space: nowrap; transition: all .15s var(--ease);
    line-height: 1.2; font-variation-settings: 'wght' 600;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--ink); color: var(--text-invert); }
[data-theme='dark'] .btn--primary { background: #2f3440; color: #fff; border-color: var(--border-strong); }
.btn--primary:hover { background: #46464a; color: #fff; }
[data-theme='dark'] .btn--primary:hover { background: #3a4150; }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-2); color: #fff; box-shadow: 0 6px 18px var(--accent-ring); }
.btn--outline { background: transparent; border-color: var(--border-strong); color: var(--text); }
.btn--outline:hover { border-color: var(--ink); color: var(--text); background: var(--surface-3); }
.btn--ghost { background: transparent; color: var(--text-muted); }
.btn--ghost:hover { background: var(--surface-3); color: var(--text); }
.btn--danger { background: var(--danger-soft); color: var(--danger); }
.btn--danger:hover { background: var(--danger); color: #fff; }
.btn--sm { padding: 6px 11px; font-size: 12.5px; border-radius: 6px; }
.btn--lg { padding: 12px 22px; font-size: 15px; }
.btn--block { width: 100%; }
.btn--icon { padding: 8px; width: 40px; height: 40px; }
.btn--icon.btn--sm { width: 34px; height: 34px; padding: 6px; }
.btn[disabled] { opacity: .55; pointer-events: none; }

/* ── Cards ────────────────────────────────────────────────────────────── */
.card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow-xs); overflow: hidden;
}
.card--pad { padding: 20px; }
.card--hover { transition: border-color .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease); }
.card--hover:hover { border-color: var(--border-strong); box-shadow: var(--shadow); transform: translateY(-2px); }
.card__header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.card__title { font-size: 15px; font-weight: 700; }
.card__body { padding: 20px; }
.card__footer { padding: 14px 20px; border-top: 1px solid var(--border); background: var(--surface-2); }

/* ── Stat cards ───────────────────────────────────────────────────────── */
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-xs); position: relative; overflow: hidden; }
.stat__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stat__label { color: var(--text-muted); font-size: 12.5px; font-weight: 600; }
.stat__icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-3); color: var(--ink); flex-shrink: 0; }
.stat__value { font-size: 28px; font-weight: 800; margin-top: 8px; letter-spacing: -.5px; font-variation-settings: 'wght' 800; }
.stat__delta { font-size: 12px; font-weight: 700; margin-top: 4px; display: inline-flex; align-items: center; gap: 4px; }
.stat__delta--up { color: var(--success); }
.stat__delta--down { color: var(--danger); }

/* ── Tables ───────────────────────────────────────────────────────────── */
.table-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow-x: auto; box-shadow: var(--shadow-xs); }
.table { font-size: 13.5px; width: 100%; }
.table thead th {
    text-align: start; font-weight: 700; font-size: 12px; color: var(--text-muted);
    padding: 13px 16px; border-bottom: 1px solid var(--border); background: var(--surface-2);
    white-space: normal;
}
/* Admin list tables: header stays fixed during page scroll, with no phantom
   scrollbar on short lists. The wrap is NOT a scroll container (overflow:visible)
   so the header sticks to the viewport just below the topbar; at desktop widths
   the widest table still fits, so nothing is clipped. On narrower widths the wrap
   becomes horizontally scrollable and the header reverts to normal flow. */
.admin__content .table-wrap { overflow: visible; }
.admin__content .table thead th { position: sticky; top: var(--header-h); z-index: 5; }
@media (max-width: 1300px) {
    .admin__content .table-wrap { overflow-x: auto; }
    .admin__content .table thead th { position: static; }
}
.table tbody td { padding: 13px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: none; }
.table--hover tbody tr { transition: background .12s var(--ease); }
.table--hover tbody tr:hover { background: var(--surface-2); }
.table--compact tbody td, .table--compact thead th { padding: 9px 12px; }
.table .num { font-variant-numeric: tabular-nums; direction: ltr; text-align: start; }

/* ── Badges & status pills ────────────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: var(--radius-pill); font-size: 11.5px; font-weight: 700; line-height: 1.6; white-space: nowrap; }
.badge--neutral { background: var(--neutral-soft); color: var(--text-muted); }
.badge--success { background: var(--success-soft); color: var(--success); }
.badge--warning { background: var(--warning-soft); color: var(--warning); }
.badge--info { background: var(--info-soft); color: var(--info); }
.badge--danger { background: var(--danger-soft); color: var(--danger); }
.badge--accent { background: var(--accent-soft); color: var(--accent); }
.badge__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ── Chips / tags ─────────────────────────────────────────────────────── */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: var(--radius-pill); background: var(--surface-3); border: 1px solid var(--border); font-size: 12.5px; font-weight: 600; color: var(--text-muted); transition: all .15s var(--ease); }
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip--active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ── Forms ────────────────────────────────────────────────────────────── */
.field { margin-bottom: 17px; }
.label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; color: var(--text); }
.label .req { color: var(--accent); margin-inline-start: 2px; }
.input, .select, .textarea {
    width: 100%; padding: 10px 13px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
    background: var(--surface); color: var(--text); font-size: 14px; transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.input::placeholder, .textarea::placeholder { color: var(--text-soft); }
.textarea { min-height: 110px; resize: vertical; line-height: 1.7; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7180' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 13px center; padding-inline-start: 13px; padding-inline-end: 36px; }
.help { font-size: 12px; color: var(--text-soft); margin-top: 6px; }
.field--error .input, .field--error .select, .field--error .textarea { border-color: var(--danger); }
.field__error { color: var(--danger); font-size: 12px; margin-top: 6px; display: block; }
.input-group { display: flex; align-items: stretch; }
.input-group .input { border-radius: 0; }
.input-group > :first-child { border-start-start-radius: var(--radius-sm); border-end-start-radius: var(--radius-sm); }
.input-group > :last-child { border-start-end-radius: var(--radius-sm); border-end-end-radius: var(--radius-sm); }
.checkbox, .radio { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13.5px; }
.checkbox input, .radio input { width: 17px; height: 17px; accent-color: var(--accent); }
.switch { position: relative; width: 42px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: var(--border-strong); border-radius: 999px; transition: .2s; }
.switch span::before { content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%; background: #fff; top: 3px; inset-inline-start: 3px; transition: .2s; }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::before { transform: translateX(-18px); }
[dir='ltr'] .switch input:checked + span::before { transform: translateX(18px); }

/* ── Alerts ───────────────────────────────────────────────────────────── */
.alert { display: flex; align-items: flex-start; gap: 11px; padding: 13px 16px; border-radius: var(--radius-sm); font-size: 13.5px; font-weight: 500; border: 1px solid transparent; margin-bottom: 14px; }
.alert--success { background: var(--success-soft); color: var(--success); }
.alert--error, .alert--danger { background: var(--danger-soft); color: var(--danger); }
.alert--info { background: var(--info-soft); color: var(--info); }
.alert--warning { background: var(--warning-soft); color: var(--warning); }
.alert svg { flex-shrink: 0; margin-top: 2px; }

/* ── Page header & breadcrumbs ────────────────────────────────────────── */
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head__title { font-size: 22px; font-weight: 800; letter-spacing: -.3px; }
.page-head__sub { color: var(--text-muted); font-size: 13.5px; margin-top: 3px; }
.breadcrumbs { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-muted); margin-bottom: 12px; flex-wrap: wrap; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .sep { color: var(--text-soft); }

/* ── Tabs ─────────────────────────────────────────────────────────────── */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 22px; overflow-x: auto; }
.tab { padding: 11px 16px; font-size: 13.5px; font-weight: 600; color: var(--text-muted); border-bottom: 2px solid transparent; white-space: nowrap; transition: all .15s var(--ease); }
.tab:hover { color: var(--text); }
.tab.is-active { color: var(--accent); border-bottom-color: var(--accent); }

/* ── Pagination ───────────────────────────────────────────────────────── */
.pagination { display: flex; align-items: center; gap: 5px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.page-link { min-width: 38px; height: 38px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 13px; font-weight: 600; color: var(--text-muted); background: var(--surface); transition: all .15s var(--ease); }
.page-link:hover { border-color: var(--ink); color: var(--text); }
.page-link.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
[data-theme='dark'] .page-link.is-active { background: var(--accent); border-color: var(--accent); }
.page-link.is-disabled { opacity: .4; pointer-events: none; }

/* ── Empty / loading states ───────────────────────────────────────────── */
.empty { text-align: center; padding: 56px 20px; color: var(--text-muted); }
.empty__icon { width: 64px; height: 64px; border-radius: 18px; background: var(--surface-3); display: grid; place-items: center; margin: 0 auto 16px; color: var(--text-soft); }
.empty__title { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.empty__text { font-size: 13.5px; max-width: 360px; margin-inline: auto; }
.skeleton { background: linear-gradient(90deg, var(--surface-3) 25%, var(--border) 37%, var(--surface-3) 63%); background-size: 400% 100%; animation: shimmer 1.4s infinite; border-radius: 6px; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

/* ── Avatar ───────────────────────────────────────────────────────────── */
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; display: inline-grid; place-items: center; font-weight: 700; font-size: 13px; flex-shrink: 0; overflow: hidden; }
.avatar--sm { width: 28px; height: 28px; font-size: 11px; }
.avatar--lg { width: 56px; height: 56px; font-size: 20px; }

/* ── Dropdown ─────────────────────────────────────────────────────────── */
.dropdown { position: relative; }
.dropdown__menu { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; min-width: 210px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 6px; z-index: 250; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .16s var(--ease), visibility .16s var(--ease), transform .16s var(--ease); }
.dropdown.is-open .dropdown__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown__item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--radius-sm); font-size: 13.5px; font-weight: 500; color: var(--text); width: 100%; text-align: start; }
.dropdown__item:hover { background: var(--surface-3); color: var(--text); }
.dropdown__item--danger { color: var(--danger); }
.dropdown__divider { height: 1px; background: var(--border); margin: 6px 0; }

/* ── Modal ────────────────────────────────────────────────────────────── */
.modal { position: fixed; inset: 0; background: rgba(15, 17, 21, .55); backdrop-filter: blur(3px); display: none; align-items: center; justify-content: center; z-index: 200; padding: 20px; }
.modal.is-open { display: flex; }
.modal__dialog { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; max-width: 520px; max-height: 90vh; overflow: auto; animation: pop .2s var(--ease); }
@keyframes pop { from { transform: scale(.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal__header { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.modal__body { padding: 22px; }
.modal__footer { padding: 16px 22px; border-top: 1px solid var(--border); display: flex; gap: 10px; justify-content: flex-start; }

/* ── Utilities ────────────────────────────────────────────────────────── */
.flex { display: flex; } .inline-flex { display: inline-flex; }
.items-center { align-items: center; } .items-start { align-items: flex-start; } .items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; } .justify-center { justify-content: center; } .justify-end { justify-content: flex-end; }
.flex-col { flex-direction: column; } .flex-wrap { flex-wrap: wrap; } .flex-1 { flex: 1; } .flex-grow { flex-grow: 1; }
.gap-1 { gap: 6px; } .gap-2 { gap: 10px; } .gap-3 { gap: 14px; } .gap-4 { gap: 18px; } .gap-6 { gap: 26px; }
.mt-1 { margin-top: 6px; } .mt-2 { margin-top: 10px; } .mt-3 { margin-top: 14px; } .mt-4 { margin-top: 18px; } .mt-6 { margin-top: 26px; }
.mb-1 { margin-bottom: 6px; } .mb-2 { margin-bottom: 10px; } .mb-3 { margin-bottom: 14px; } .mb-4 { margin-bottom: 18px; } .mb-6 { margin-bottom: 26px; }
.mb-0 { margin-bottom: 0; } .m-0 { margin: 0; }
.w-full { width: 100%; } .h-full { height: 100%; }
.text-center { text-align: center; } .text-start { text-align: start; } .text-end { text-align: end; }
.text-xs { font-size: 12px; } .text-sm { font-size: 13px; } .text-lg { font-size: 16px; } .text-xl { font-size: 19px; }
.text-muted { color: var(--text-muted); } .text-soft { color: var(--text-soft); } .text-accent { color: var(--accent); }
.text-success { color: var(--success); } .text-danger { color: var(--danger); }
.fw-medium { font-weight: 600; font-variation-settings: 'wght' 600; } .fw-bold { font-weight: 700; font-variation-settings: 'wght' 700; } .fw-black { font-weight: 800; font-variation-settings: 'wght' 800; }
.num { font-variant-numeric: tabular-nums; direction: ltr; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.line-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.divider { height: 1px; background: var(--border); margin: 18px 0; }
.hidden { display: none !important; }
.rounded { border-radius: var(--radius); } .shadow { box-shadow: var(--shadow); }
.actions-sticky { position: static; }
.filter-toggle { display: none; }
@media (max-width: 1024px) {
    .filter-toggle { display: flex; }
    .search-aside { order: -1; display: none; }
    .search-aside.is-open { display: block; }
}

/* ── Animations ───────────────────────────────────────────────────────── */
.fade-in { animation: fadeIn .4s var(--ease) both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.fade-in-2 { animation: fadeIn .4s var(--ease) .06s both; }
.fade-in-3 { animation: fadeIn .4s var(--ease) .12s both; }

/* ── Prose (article / announcement body) ──────────────────────────────── */
.prose { line-height: 2; color: var(--text); font-size: 15px; }
.prose > * + * { margin-top: 14px; }
.prose p { margin-bottom: 14px; }
.prose h1, .prose h2, .prose h3, .prose h4 { margin: 22px 0 10px; line-height: 1.5; }
.prose h2 { font-size: 19px; } .prose h3 { font-size: 17px; }
.prose ul, .prose ol { margin: 12px 0; padding-inline-start: 22px; }
.prose ul li { list-style: disc; margin-bottom: 6px; }
.prose ol li { list-style: decimal; margin-bottom: 6px; }
.prose a { color: var(--accent); text-decoration: underline; }
.prose img { border-radius: var(--radius); margin: 14px 0; }
.prose table { margin: 14px 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: start; }
.prose th { background: var(--surface-2); font-weight: 700; }
.prose blockquote { border-inline-start: 3px solid var(--accent); padding: 6px 16px; color: var(--text-muted); background: var(--surface-2); border-radius: var(--radius-sm); margin: 14px 0; }
.prose hr { border: none; border-top: 1px solid var(--border); margin: 20px 0; }
.prose pre, .prose code { background: var(--surface-2); border-radius: var(--radius-sm); }
.prose pre { padding: 12px 14px; overflow-x: auto; direction: ltr; }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .grid--4 { grid-template-columns: repeat(2, 1fr); }
    .grid--3 { grid-template-columns: repeat(2, 1fr); }
    .grid--sidebar { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
    .section { padding-block: 30px; }
    .page-head__title { font-size: 19px; }
    .hide-mobile { display: none !important; }
}
