/* ── Help Center Styles ─────────────────────────────── */

:root {
    --hp-hero-bg: linear-gradient(135deg, #0a0e1f 0%, #1a2744 100%);
    --hp-hero-text: #e2e8f0;
    --hp-hero-heading: #ffffff;
    --hp-card-bg: #ffffff;
    --hp-card-border: #e2e8f0;
    --hp-card-shadow: 0 1px 3px rgba(0,0,0,.06);
    --hp-card-hover-shadow: 0 8px 24px rgba(0,0,0,.1);
    --hp-section-heading: #1e293b;
    --hp-body-text: #475569;
    --hp-step-badge-bg: var(--ms-indigo-600, #4f46e5);
    --hp-step-badge-text: #ffffff;
    --hp-table-header-bg: #f8fafc;
    --hp-table-border: #e2e8f0;
    --hp-link: var(--ms-teal-600, #0a6b6e);
    --hp-link-hover: var(--ms-teal-700, #085c5e);
    --hp-breadcrumb-text: #94a3b8;
    --hp-breadcrumb-active: #e2e8f0;
    --hp-category-text: #64748b;
    --hp-icon-bg: rgba(79, 70, 229, .1);
    --hp-icon-color: var(--ms-indigo-600, #4f46e5);
}

[data-theme="dark"] {
    --hp-hero-bg: linear-gradient(135deg, #070a14 0%, #111827 100%);
    --hp-hero-text: #94a3b8;
    --hp-hero-heading: #f1f5f9;
    --hp-card-bg: #1e293b;
    --hp-card-border: #334155;
    --hp-card-shadow: 0 1px 3px rgba(0,0,0,.2);
    --hp-card-hover-shadow: 0 8px 24px rgba(0,0,0,.3);
    --hp-section-heading: #f1f5f9;
    --hp-body-text: #94a3b8;
    --hp-step-badge-bg: var(--ms-indigo-500, #6366f1);
    --hp-table-header-bg: #0f172a;
    --hp-table-border: #334155;
    --hp-link: var(--ms-teal-400, #5eead4);
    --hp-link-hover: var(--ms-teal-300, #99f6e4);
    --hp-breadcrumb-text: #64748b;
    --hp-breadcrumb-active: #cbd5e1;
    --hp-category-text: #94a3b8;
    --hp-icon-bg: rgba(99, 102, 241, .15);
    --hp-icon-color: var(--ms-indigo-400, #818cf8);
}

/* ── Hero ──────────────────────────────────────────── */

.hp-hero {
    background: var(--hp-hero-bg);
    padding: 3rem 0 2.5rem;
    text-align: center;
}

.hp-hero h1 {
    color: var(--hp-hero-heading);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: .5rem;
}

.hp-hero p {
    color: var(--hp-hero-text);
    font-size: 1.1rem;
    max-width: 540px;
    margin: 0 auto;
}

/* ── Breadcrumb ────────────────────────────────────── */

.hp-breadcrumb {
    list-style: none;
    display: flex;
    gap: .5rem;
    padding: 0;
    margin: 0 0 .5rem;
    font-size: .875rem;
}

.hp-breadcrumb a {
    color: var(--hp-breadcrumb-text);
    text-decoration: none;
}

.hp-breadcrumb a:hover {
    color: var(--hp-breadcrumb-active);
    text-decoration: underline;
}

.hp-breadcrumb-sep {
    color: var(--hp-breadcrumb-text);
}

.hp-breadcrumb-current {
    color: var(--hp-breadcrumb-active);
}

/* ── Category sections (index) ─────────────────────── */

.hp-categories {
    padding: 2.5rem 0 3rem;
}

.hp-category-heading {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--hp-section-heading);
    margin-bottom: 1rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid var(--hp-card-border);
}

.hp-category-heading i {
    margin-right: .5rem;
    color: var(--hp-icon-color);
}

/* ── Article cards (index) ─────────────────────────── */

.hp-card {
    background: var(--hp-card-bg);
    border: 1px solid var(--hp-card-border);
    border-radius: .75rem;
    padding: 1.5rem;
    text-decoration: none;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: box-shadow .2s ease, transform .2s ease;
    box-shadow: var(--hp-card-shadow);
}

.hp-card:hover {
    box-shadow: var(--hp-card-hover-shadow);
    transform: translateY(-2px);
    text-decoration: none;
}

.hp-card-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: .625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--hp-icon-bg);
    color: var(--hp-icon-color);
    font-size: 1.15rem;
}

.hp-card-icon.ms-icon-teal {
    background: rgba(10, 107, 110, .1);
    color: var(--ms-teal-600, #0a6b6e);
}

[data-theme="dark"] .hp-card-icon.ms-icon-teal {
    background: rgba(94, 234, 212, .1);
    color: var(--ms-teal-400, #5eead4);
}

.hp-card-icon.ms-icon-amber {
    background: rgba(217, 119, 6, .1);
    color: #d97706;
}

[data-theme="dark"] .hp-card-icon.ms-icon-amber {
    background: rgba(253, 230, 138, .1);
    color: #fde68a;
}

.hp-card-body h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--hp-section-heading);
    margin-bottom: .25rem;
}

.hp-card-body p {
    font-size: .875rem;
    color: var(--hp-body-text);
    margin-bottom: 0;
    line-height: 1.5;
}

.hp-card-arrow {
    color: var(--hp-link);
    font-size: .8rem;
    margin-top: .5rem;
    display: inline-block;
    font-weight: 500;
}

/* ── Article page ──────────────────────────────────── */

.hp-article-hero {
    background: var(--hp-hero-bg);
    padding: 2.5rem 0 2rem;
}

.hp-article-hero h1 {
    color: var(--hp-hero-heading);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: .25rem;
}

.hp-article-hero p {
    color: var(--hp-hero-text);
    font-size: 1rem;
    margin-bottom: 0;
}

.hp-article-icon {
    font-size: 1.5rem;
    margin-bottom: .75rem;
    color: var(--hp-hero-text);
}

/* ── Content sections ──────────────────────────────── */

.hp-content {
    max-width: 860px;
    margin: 0 auto;
    padding: 2rem 1rem 3rem;
}

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

.hp-section-card {
    background: var(--hp-card-bg);
    border: 1px solid var(--hp-card-border);
    border-radius: .75rem;
    overflow: hidden;
    box-shadow: var(--hp-card-shadow);
}

.hp-section-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--hp-card-border);
    display: flex;
    align-items: center;
    gap: .625rem;
}

.hp-section-header i {
    color: var(--hp-icon-color);
    font-size: .95rem;
}

.hp-section-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--hp-section-heading);
    margin: 0;
}

.hp-section-body {
    padding: 1.25rem;
}

.hp-section-body p {
    color: var(--hp-body-text);
    line-height: 1.7;
    margin-bottom: .75rem;
}

.hp-section-body p:last-child {
    margin-bottom: 0;
}

.hp-section-body ul {
    color: var(--hp-body-text);
    padding-left: 1.25rem;
    line-height: 1.7;
}

.hp-section-body a {
    color: var(--hp-link);
}

.hp-section-body a:hover {
    color: var(--hp-link-hover);
}

/* ── Steps ─────────────────────────────────────────── */

.hp-step {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
}

.hp-step:not(:last-child) {
    border-bottom: 1px solid var(--hp-card-border);
}

.hp-step:first-child {
    padding-top: 0;
}

.hp-step:last-child {
    padding-bottom: 0;
}

.hp-step-badge {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--hp-step-badge-bg);
    color: var(--hp-step-badge-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .875rem;
    flex-shrink: 0;
}

.hp-step-content h3 {
    font-size: .95rem;
    font-weight: 600;
    color: var(--hp-section-heading);
    margin-bottom: .25rem;
}

.hp-step-content p {
    font-size: .9rem;
    color: var(--hp-body-text);
    margin-bottom: 0;
    line-height: 1.6;
}

/* ── Tables ────────────────────────────────────────── */

.hp-table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    font-size: .9rem;
}

.hp-table thead th {
    background: var(--hp-table-header-bg);
    color: var(--hp-section-heading);
    font-weight: 600;
    padding: .75rem 1rem;
    border-bottom: 2px solid var(--hp-table-border);
    text-align: left;
}

.hp-table tbody td {
    padding: .65rem 1rem;
    color: var(--hp-body-text);
    border-bottom: 1px solid var(--hp-table-border);
}

.hp-table tbody tr:last-child td {
    border-bottom: none;
}

/* ── Alerts (TIP / WARNING) ────────────────────────── */

.hp-alert {
    border-radius: .75rem;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    font-size: .9rem;
    line-height: 1.6;
}

.hp-alert-icon {
    flex-shrink: 0;
    font-size: 1.1rem;
    margin-top: .1rem;
}

.hp-alert-tip {
    background: rgba(10, 107, 110, .08);
    border: 1px solid rgba(10, 107, 110, .2);
    color: var(--hp-body-text);
}

.hp-alert-tip .hp-alert-icon {
    color: var(--ms-teal-600, #0a6b6e);
}

[data-theme="dark"] .hp-alert-tip {
    background: rgba(94, 234, 212, .06);
    border-color: rgba(94, 234, 212, .15);
}

[data-theme="dark"] .hp-alert-tip .hp-alert-icon {
    color: var(--ms-teal-400, #5eead4);
}

.hp-alert-warning {
    background: rgba(217, 119, 6, .08);
    border: 1px solid rgba(217, 119, 6, .2);
    color: var(--hp-body-text);
}

.hp-alert-warning .hp-alert-icon {
    color: #d97706;
}

[data-theme="dark"] .hp-alert-warning {
    background: rgba(253, 230, 138, .06);
    border-color: rgba(253, 230, 138, .15);
}

[data-theme="dark"] .hp-alert-warning .hp-alert-icon {
    color: #fde68a;
}

/* ── Related articles ──────────────────────────────── */

.hp-related {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 2px solid var(--hp-card-border);
}

.hp-related h2 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--hp-section-heading);
    margin-bottom: 1rem;
}

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

/* ── CTA (index) ───────────────────────────────────── */

.hp-cta {
    text-align: center;
    padding: 2.5rem 1rem;
    border-top: 1px solid var(--hp-card-border);
}

.hp-cta h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--hp-section-heading);
    margin-bottom: .5rem;
}

.hp-cta p {
    color: var(--hp-body-text);
    margin-bottom: 1.25rem;
}

/* ── Responsive ────────────────────────────────────── */

@media (max-width: 768px) {
    .hp-hero h1 { font-size: 1.5rem; }
    .hp-hero p { font-size: 1rem; }
    .hp-article-hero h1 { font-size: 1.4rem; }
    .hp-content { padding: 1.5rem 1rem 2rem; }
    .hp-related-grid { grid-template-columns: 1fr; }
}

/* ── Reduced motion ────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
    .hp-card {
        transition: none;
    }
    .hp-card:hover {
        transform: none;
    }
}
