/**
 * OrbitQuote — /help (server-rendered, no-SPA)
 * Portado 1:1 do <style scoped> de frontend/help/HelpDocs.vue.
 * Tokens (--panel, --panel-2, --border, --muted, --text, --shadow, --radius)
 * vivem em layout.css :root — referenciados aqui, nunca redeclarados.
 */

.help-page {
    display: grid;
    gap: 24px;
}

.help-header {
    background: linear-gradient(135deg, #ecf8ff 0%, #e6f4ff 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    display: grid;
    gap: 12px;
}

.help-header-top {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.help-header-top .badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--brand-soft);
    background: var(--brand-soft);
    color: var(--brand-deep);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.help-crumbs {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
}

.help-title {
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.02em;
}

.help-subtitle {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.7;
    max-width: 720px;
}

.help-actions {
    margin-top: 8px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.help-search {
    margin-top: 10px;
    display: grid;
    gap: 8px;
}

.help-search-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.help-search-field {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 8px 12px;
}

.help-search-field input {
    border: none;
    background: transparent;
    outline: none;
    flex: 1;
    font-size: 14px;
    color: var(--text);
}

.help-search-field input::placeholder {
    color: var(--muted);
}

.help-search-clear {
    border: none;
    border-radius: 8px;
    padding: 6px 10px;
    background: var(--panel-2);
    color: var(--muted);
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
}

.help-search-clear:hover {
    color: var(--text);
}

.help-search-meta {
    font-size: 12px;
    color: var(--muted);
}

.help-shell {
    display: grid;
    grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.help-nav {
    position: sticky;
    top: 24px;
    align-self: start;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
}

.help-nav-group {
    margin-bottom: 16px;
}

.help-nav-group:last-child {
    margin-bottom: 0;
}

.help-nav-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 8px;
}

.help-nav a {
    display: block;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
}

.help-nav a:hover {
    background: var(--panel-2);
    border-color: var(--border);
}

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

.help-section {
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
    scroll-margin-top: 120px;
}

.help-section:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
}

.help-section h2 {
    font-size: 22px;
    margin: 0 0 12px;
}

.help-section h3 {
    font-size: 16px;
    margin: 18px 0 8px;
}

.help-section p {
    margin: 0 0 12px;
    color: var(--muted);
}

.help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.help-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    box-shadow: var(--shadow);
}

.help-card p {
    margin: 0;
    color: var(--muted);
}

.help-card-title {
    font-weight: 700;
    margin: 0 0 8px;
}

.help-list {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
}

.help-list li {
    margin-bottom: 6px;
}

.help-steps {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
}

.help-steps li {
    margin-bottom: 8px;
}

.help-callout {
    margin-top: 12px;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--panel-2);
    color: var(--muted);
}

.help-callout strong {
    color: var(--text);
}

.help-code {
    background: #0f172a;
    color: #e2e8f0;
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 13px;
    line-height: 1.6;
    overflow: auto;
    margin: 12px 0 0;
}

.help-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 14px;
}

.help-table th,
.help-table td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
}

.help-table th {
    font-weight: 700;
    color: var(--text);
    background: var(--panel-2);
}

.help-empty {
    padding: 16px;
    border-radius: 10px;
    border: 1px dashed var(--border);
    background: var(--panel-2);
    color: var(--muted);
    margin-bottom: 24px;
}

@media (max-width: 900px) {
    .help-shell {
        grid-template-columns: 1fr;
    }

    .help-nav {
        position: static;
    }
}

.is-hidden {
    display: none;
}
