/* RR Panel Pomoc — help.rrpanel.net */

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

:root {
    --blue: #2563eb;
    --blue-dark: #1e40af;
    --text: #1e293b;
    --muted: #64748b;
    --bg: #f8fafc;
    --border: #e2e8f0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    font-size: 16px;
}

/* Header */
.site-header {
    background: #0f172a;
    color: #fff;
    padding: 0.9rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: sticky;
    top: 0;
    z-index: 50;
}
.site-header .logo {
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    text-decoration: none;
}
.site-header .logo span { color: #60a5fa; }
.site-header a.back {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.85rem;
    white-space: nowrap;
}
.site-header a.back:hover { color: #fff; }

/* Layout */
.layout {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    min-height: calc(100vh - 60px);
}

/* Sidebar */
.sidebar {
    width: 260px;
    flex-shrink: 0;
    padding: 2rem 1rem 2rem 1.5rem;
}
.sidebar nav { position: sticky; top: 80px; }
.sidebar .nav-group {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin: 1.4rem 0 0.4rem;
    font-weight: 600;
}
.sidebar .nav-group:first-child { margin-top: 0; }
.sidebar a {
    display: block;
    padding: 0.3rem 0.7rem;
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 6px;
    border-left: 2px solid transparent;
}
.sidebar a:hover { background: #eef2ff; color: var(--blue-dark); }
.sidebar a.active {
    color: var(--blue-dark);
    font-weight: 600;
    border-left-color: var(--blue);
    background: #eef2ff;
}

/* Content */
.content {
    flex: 1;
    padding: 2.5rem 2rem 4rem;
    max-width: 760px;
    background: #fff;
    border-left: 1px solid var(--border);
}
.content h1 {
    font-size: 1.9rem;
    margin-bottom: 0.4rem;
    line-height: 1.25;
}
.content .lead {
    color: var(--muted);
    font-size: 1.05rem;
    margin-bottom: 2rem;
}
.content h2 {
    font-size: 1.3rem;
    margin: 2.4rem 0 0.8rem;
    padding-top: 0.5rem;
}
.content h3 { font-size: 1.05rem; margin: 1.6rem 0 0.5rem; }
.content p { margin-bottom: 1rem; }
.content ul, .content ol { margin: 0 0 1.2rem 1.4rem; }
.content li { margin-bottom: 0.45rem; }
.content strong { color: #0f172a; }

.ui-label {
    background: #eef2ff;
    color: var(--blue-dark);
    padding: 0.1rem 0.5rem;
    border-radius: 5px;
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
}

.tip, .warning {
    border-radius: 8px;
    padding: 0.9rem 1.1rem;
    margin: 1.2rem 0;
    font-size: 0.93rem;
}
.tip { background: #eff6ff; border: 1px solid #bfdbfe; }
.tip::before { content: "Warto wiedzieć"; display: block; font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--blue-dark); margin-bottom: 0.25rem; }
.warning { background: #fffbeb; border: 1px solid #fde68a; }
.warning::before { content: "Uwaga"; display: block; font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: #92400e; margin-bottom: 0.25rem; }

/* Index cards */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}
.cards a {
    display: block;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.1rem 1.2rem;
    text-decoration: none;
    color: var(--text);
    transition: border-color 0.15s, box-shadow 0.15s;
}
.cards a:hover { border-color: var(--blue); box-shadow: 0 2px 8px rgba(37,99,235,0.08); }
.cards a .card-title { font-weight: 650; color: #0f172a; margin-bottom: 0.25rem; display: block; }
.cards a .card-desc { font-size: 0.85rem; color: var(--muted); line-height: 1.5; }

/* Prev/next */
.prevnext {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 3.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    font-size: 0.9rem;
}
.prevnext a { color: var(--blue); text-decoration: none; }
.prevnext a:hover { text-decoration: underline; }

/* Mobile */
.menu-toggle {
    display: none;
    background: none;
    border: 1px solid #475569;
    color: #e2e8f0;
    border-radius: 6px;
    padding: 0.35rem 0.7rem;
    font-size: 0.85rem;
    cursor: pointer;
}

@media (max-width: 860px) {
    .layout { flex-direction: column; }
    .sidebar { width: 100%; padding: 0 1.5rem; }
    .sidebar nav { position: static; display: none; padding: 1rem 0; }
    .sidebar nav.open { display: block; }
    .menu-toggle { display: inline-block; }
    .content { border-left: none; padding: 1.5rem 1.5rem 3rem; }
    .content h1 { font-size: 1.5rem; }
}
