/* help.sparqone.com — site overrides (loaded after sparq-base.css) */

body {
    line-height: 1.7;
}

/* Typography overrides */
h1 { margin-bottom: 1rem; }
h2 { margin: 2rem 0 1rem; }
h3 { margin: 1.5rem 0 0.75rem; }

p { margin: 0 0 1rem; }

/* Utility classes */
.text-muted { color: var(--text-muted); }
.text-muted-custom { color: var(--text-muted) !important; }
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-4 { margin-top: 2rem; }

/* Layout */
.container {
    max-width: 1100px;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* Navbar — must match all sparQ sites */
.navbar {
    background: var(--bg) !important;
    border-bottom: none !important;
    padding: 0.75rem 0;
}

.navbar .container {
    max-width: 1100px;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.75rem;
}

.navbar-nav {
    align-items: center;
    margin: 0;
    padding: 0;
}

.navbar-nav .nav-item {
    margin: 0;
}

.site-name {
    font-weight: 500;
    font-size: 1rem;
}

.nav-pill {
    background: #dbeafe !important;
    color: #2563eb !important;
    border-radius: 999px;
    padding: 0.25rem 0.85rem !important;
    font-size: 0.85rem;
}

.nav-pill:hover {
    background: #bfdbfe !important;
}

/* Hero section */
.hero {
    text-align: center;
    padding: 3rem 0 2rem;
    border-bottom: 1px solid var(--border);
}

.hero h1 {
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
}

.hero .subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Main content layout */
.content-wrapper {
    display: flex;
    gap: 3rem;
    padding: 2rem 0;
}

/* Sidebar */
.sidebar {
    width: 240px;
    flex-shrink: 0;
}

.sidebar-section {
    margin-bottom: 1.5rem;
}

.sidebar-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li {
    margin-bottom: 0.25rem;
}

.sidebar-nav a {
    display: block;
    padding: 0.5rem 0.75rem;
    color: var(--text);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    transition: background 0.15s;
}

.sidebar-nav a:hover {
    background: var(--bg-secondary);
    text-decoration: none;
}

.sidebar-nav a.active {
    background: var(--accent);
    color: white;
}

/* Main content */
.main-content {
    flex: 1;
    min-width: 0;
}

/* Cards */
.card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
}

.card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.card:hover {
    border-color: var(--accent);
}

.card a {
    color: inherit;
    text-decoration: none;
    display: block;
}

/* Module icon */
.module-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

/* Breadcrumbs */
.breadcrumb {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.breadcrumb a {
    color: var(--text-muted);
}

.breadcrumb span {
    margin: 0 0.5rem;
}

/* Info boxes */
.info-box {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg);
    margin: 1.5rem 0;
}

.info-box.tip {
    background: #ecfdf5;
    border-left: 4px solid var(--success);
}

.info-box.note {
    background: #eff6ff;
    border-left: 4px solid var(--accent);
}

.info-box.warning {
    background: #fffbeb;
    border-left: 4px solid var(--warning);
}

.info-box-title {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.25rem;
}

.info-box.tip .info-box-title { color: #059669; }
.info-box.note .info-box-title { color: #2563eb; }
.info-box.warning .info-box-title { color: var(--warning); }

/* Lists */
ul, ol {
    padding-left: 1.5rem;
    margin: 1rem 0;
}

li {
    margin-bottom: 0.5rem;
}

/* Code */
code {
    font-family: var(--font-mono);
    font-size: 0.9em;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border);
    padding: 2rem 0;
    margin-top: 3rem;
    text-align: center;
}

.footer-links {
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--text);
    margin: 0 1rem;
    font-size: 0.9rem;
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        border-bottom: 1px solid var(--border);
        padding-bottom: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 1.75rem;
    }
}
