/* Tire Library Help Center */

body.help-layout {
    background: #f8f9fa;
    color: #212529;
    font-family: 'Roboto', system-ui, -apple-system, sans-serif;
}

.help-topbar {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 0.75rem 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.help-brand {
    display: inline-flex;
    align-items: center;
    line-height: 0;
    text-decoration: none;
}

.help-brand__logo {
    height: 28px;
    max-width: 160px;
    width: auto;
}

.help-topbar-link {
    color: #495057;
    text-decoration: none;
    font-size: 0.95rem;
}

.help-topbar-link:hover { color: #0d6efd; }

.help-shell {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.help-sidebar {
    width: 260px;
    flex: 0 0 260px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.25rem;
    position: sticky;
    top: 1rem;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
}

.help-sidebar-nav { font-size: 0.9rem; }

.help-sidebar-heading {
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.7rem;
    color: #6c757d;
    margin: 1rem 0 0.25rem;
    font-weight: 600;
}

.help-sidebar-section:first-of-type .help-sidebar-heading { margin-top: 0; }

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

.help-sidebar-list li { margin: 0.1rem 0; }

.help-sidebar-link {
    display: block;
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
    color: #212529;
    text-decoration: none;
}

.help-sidebar-link:hover {
    background: #f1f3f5;
    color: #0d6efd;
}

.help-sidebar-link.active {
    background: #e7f1ff;
    color: #0d6efd;
    font-weight: 500;
}

.help-sidebar-external {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.help-sidebar-external-link {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    color: #0d6efd;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}

.help-sidebar-external-link:hover {
    background: #e7f1ff;
    border-color: #0d6efd;
    color: #0a58ca;
}

.help-main {
    flex: 1;
    min-width: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 2rem 2.25rem;
}

.help-hero {
    padding: 2.5rem 2rem;
    background: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%);
    border-radius: 8px;
    color: #fff;
    text-align: center;
}

.help-hero-title { font-weight: 600; margin-bottom: 0.5rem; }

.help-hero-subtitle { opacity: 0.9; margin-bottom: 1.5rem; }

.help-hero-search { max-width: 640px; margin: 0 auto; }

.help-search {
    position: relative;
}

.help-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0.25rem;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    z-index: 50;
    max-height: 360px;
    overflow-y: auto;
}

.help-search-results-hero {
    position: static;
    margin-top: 0.5rem;
    text-align: left;
    box-shadow: none;
    border: 0;
}

.help-search-result {
    display: block;
    padding: 0.6rem 0.85rem;
    border-bottom: 1px solid #f1f3f5;
    color: #212529;
    text-decoration: none;
}

.help-search-result:last-child { border-bottom: 0; }

.help-search-result:hover, .help-search-result:focus {
    background: #f8f9fa;
    color: #0d6efd;
    text-decoration: none;
}

.help-search-result-title { font-weight: 500; }
.help-search-result-category {
    font-size: 0.75rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.help-search-empty {
    padding: 1rem;
    color: #6c757d;
    text-align: center;
    font-size: 0.9rem;
}

.help-category-card {
    padding: 1rem 1.25rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.help-category-card h2 a { color: #212529; }
.help-category-card h2 a:hover { color: #0d6efd; }

.help-category-articles { margin: 0; }

.help-category-article {
    padding: 0.4rem 0;
    border-bottom: 1px solid #f1f3f5;
}

.help-category-article:last-child { border-bottom: 0; }

.help-category-article a {
    color: #212529;
    text-decoration: none;
    font-weight: 500;
}

.help-category-article a:hover { color: #0d6efd; }

.help-category-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    text-decoration: none;
    color: inherit;
}

.help-category-row:hover {
    border-color: #0d6efd;
    color: inherit;
    text-decoration: none;
}

.help-article-header { padding-bottom: 1rem; border-bottom: 1px solid #e5e7eb; margin-bottom: 1.5rem; }

.help-article-title { font-weight: 600; }

.help-article-body h2 {
    font-size: 1.35rem;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    scroll-margin-top: 1rem;
}

.help-article-body h3 {
    font-size: 1.1rem;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.help-article-body ul, .help-article-body ol { padding-left: 1.5rem; }

.help-article-body table {
    width: 100%;
    margin: 1rem 0;
    border-collapse: collapse;
}

.help-article-body th, .help-article-body td {
    border: 1px solid #dee2e6;
    padding: 0.5rem 0.75rem;
    text-align: left;
}

.help-article-body th { background: #f8f9fa; font-weight: 600; }

.help-article-body code {
    background: #f1f3f5;
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    font-size: 0.9em;
}

.help-article-body pre {
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    padding: 0.75rem 1rem;
    overflow-x: auto;
}

.help-article-body blockquote {
    border-left: 3px solid #0d6efd;
    padding: 0.5rem 1rem;
    margin: 1rem 0;
    background: #f8f9fa;
    color: #495057;
}

.help-contact-cta {
    border: 1px solid #e5e7eb;
}

.help-footer {
    padding: 1.5rem 0;
    border-top: 1px solid #e5e7eb;
    background: #fff;
    margin-top: 2rem;
}

.help-footer a { color: #6c757d; text-decoration: none; }
.help-footer a:hover { color: #0d6efd; }

@media (max-width: 768px) {
    .help-shell { flex-direction: column; padding: 1rem; }
    .help-sidebar { width: 100%; flex: 1 1 auto; position: static; max-height: none; }
    .help-main { padding: 1.25rem; }
}
