/* ─────────────────────────────────────────────────────────────
 * Help Center — front-end stylesheet
 * Used by: templates/landing.php, single.php, faq.php, group.php
 *
 * Theming: all colors come from CSS variables. The plugin injects
 * --hcc-accent / --hcc-accent-rgb / --hcc-accent-strong inline,
 * sourced from the Hero Colour setting.
 * ───────────────────────────────────────────────────────────── */

:root {
    --hcc-accent: #4d4ed4;
    --hcc-accent-rgb: 77, 78, 212;
    --hcc-accent-strong: #3a3bb0;

    --hcc-text: #1f2937;
    --hcc-text-dim: #374151;
    --hcc-muted: #6b7280;
    --hcc-muted-soft: #9ca3af;

    --hcc-border: #e5e7eb;
    --hcc-border-soft: #f3f4f6;

    --hcc-card-bg: #ffffff;
    --hcc-row-bg: #f8f9fa;
    --hcc-row-hover: #f9fafb;
    --hcc-soft-fill: #f3f4f6;

    --hcc-radius-lg: 16px;
    --hcc-radius: 12px;
    --hcc-radius-md: 8px;
    --hcc-radius-sm: 6px;

    --hcc-shadow: 0 4px 12px rgba(0, 0, 0, .08);
    --hcc-shadow-soft: 0 2px 8px rgba(0, 0, 0, .05);
}

/* ═════════════════════════════════════════════════════════════
 * Shared container
 * ═══════════════════════════════════════════════════════════ */

.hcc-container { max-width: 1200px; margin: 0 auto; padding: 20px; }

.hcc-detail-wrap { max-width: 1200px; margin: 60px auto 80px; padding: 0 20px; }
.hcc-detail-row  { display: flex; gap: 30px; }

/* ═════════════════════════════════════════════════════════════
 * Landing page
 * ═══════════════════════════════════════════════════════════ */

.hcc-landing { margin-top: 30px; }
/* Contain the full-bleed hero overflow at the viewport edge. Scoped to
 * body because this stylesheet only loads on help-center pages, so the
 * rest of the site is untouched. */
body { overflow-x: clip; }

.hcc-hero {
    color: #fff;
    text-align: center;
    padding: 120px 32px 64px;
    /* Full-bleed: span the entire viewport, and pull up over the parent's
     * top margin/padding so the gradient touches the theme header.
     * Padding-top is bumped to compensate for the negative margin-top so
     * the inner content stays visually positioned the same. */
    margin: -64px calc(50% - 50vw) 56px;
    border-radius: 0;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--hcc-accent) 0%, var(--hcc-accent-strong) 100%);
}
.hcc-hero-inner { max-width: 720px; margin: 0 auto; position: relative; z-index: 2; }
.hcc-hero-eyebrow {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: rgba(255, 255, 255, .9);
    margin: 0 0 14px;
}
.hcc-hero-title {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: -.02em;
    color: #fff;
    margin: 0 0 28px;
    line-height: 1.15;
}

.hcc-search-form {
    max-width: 580px;
    margin: 0 auto;
    display: flex;
    align-items: stretch;
    background: #fff;
    border-radius: 999px;
    padding: 4px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
    transition: box-shadow .2s;
}
.hcc-search-form:focus-within { box-shadow: 0 12px 32px rgba(0, 0, 0, .22); }
.hcc-search-form input[type="search"] {
    flex: 1;
    border: 0;
    background: transparent;
    padding: 12px 20px;
    font-size: 15px;
    outline: 0;
    color: var(--hcc-text);
    min-width: 0;
}
.hcc-search-form input[type="search"]::placeholder { color: var(--hcc-muted-soft); }
.hcc-search-form button {
    border: 0;
    background: var(--hcc-accent);
    color: #fff;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    transition: background .15s;
}
.hcc-search-form button:hover { background: var(--hcc-accent-strong); }

.hcc-popular {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
}
.hcc-popular-label { color: rgba(255, 255, 255, .85); font-size: 13px; font-weight: 500; margin-right: 4px; }
.hcc-popular a {
    color: #fff;
    text-decoration: none;
    padding: 6px 14px;
    background: rgba(255, 255, 255, .15);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    transition: background .15s, transform .15s;
}
.hcc-popular a:hover { background: rgba(255, 255, 255, .28); transform: translateY(-1px); }

.hcc-nav-bar {
    display: flex;
    gap: 6px;
    justify-content: center;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--hcc-border);
    margin-bottom: 40px;
    flex-wrap: wrap;
}
.hcc-nav-bar a { color: var(--hcc-accent); text-decoration: none; font-size: .95em; font-weight: 500; padding: 4px 8px; border-radius: var(--hcc-radius-sm); }
.hcc-nav-bar a:hover { background: rgba(var(--hcc-accent-rgb), .08); text-decoration: none; }
.hcc-nav-sep { color: #d1d5db; font-size: .8em; }

/* ─── Topic sections (document-style landing) ─── */

.hcc-topics {
    display: flex;
    flex-direction: column;
    gap: 56px;
}

.hcc-topic {
    /* no card — sections sit on the page background */
}

.hcc-topic-head {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 22px;
}
.hcc-topic-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hcc-accent);
    background: rgba(var(--hcc-accent-rgb), .1);
    border-radius: var(--hcc-radius);
}
.hcc-topic-info { flex: 1; min-width: 0; }
.hcc-topic-name {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--hcc-text);
    margin: 0 0 4px;
    line-height: 1.3;
}
.hcc-topic-name a { color: inherit; text-decoration: none; }
.hcc-topic-name a:hover { color: var(--hcc-accent); }
.hcc-topic-desc {
    font-size: 14px;
    color: var(--hcc-muted);
    margin: 0;
    line-height: 1.55;
}
.hcc-topic-cta {
    align-self: center;
    color: var(--hcc-accent);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.hcc-topic-cta:hover { color: var(--hcc-accent-strong); }

/* Topic article list — used inside .hcc-topic on the landing.
 * Long titles wrap naturally; no ellipsis. */
.hcc-topic-articles {
    background: var(--hcc-card-bg);
    border: 1px solid var(--hcc-border);
    border-radius: var(--hcc-radius);
    overflow: hidden;
}
.hcc-topic-articles .hcc-row { border-radius: 0; border: 0; }
.hcc-topic-articles .hcc-row + .hcc-row { border-top: 1px solid var(--hcc-border-soft); }
.hcc-topic-articles .hcc-row:hover { background: rgba(var(--hcc-accent-rgb), .04); color: var(--hcc-accent); }

.hcc-row--more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 20px;
    background: var(--hcc-row-bg);
    color: var(--hcc-accent);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    border-top: 1px solid var(--hcc-border-soft);
    transition: background .15s, color .15s;
}
.hcc-row--more:hover { background: rgba(var(--hcc-accent-rgb), .08); color: var(--hcc-accent-strong); }

/* ─── Section heading (Browse topics / Popular articles) ─── */

.hcc-section { margin-top: 56px; }
.hcc-section:first-of-type { margin-top: 0; }

.hcc-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--hcc-border);
}
.hcc-section-title    { font-size: 22px; font-weight: 700; color: var(--hcc-text); margin: 0; letter-spacing: -.01em; }
.hcc-section-subtitle { font-size: 14px; color: var(--hcc-muted); margin: 4px 0 0; font-weight: 400; }
.hcc-section-link     { color: var(--hcc-accent); text-decoration: none; font-size: 14px; font-weight: 500; white-space: nowrap; }
.hcc-section-link:hover { color: var(--hcc-accent-strong); text-decoration: underline; }

/* ─── Popular articles section (single card with rows) ─── */

.hcc-section-card {
    background: var(--hcc-card-bg);
    border: 1px solid var(--hcc-border);
    border-radius: var(--hcc-radius);
    box-shadow: var(--hcc-shadow);
    overflow: hidden;
}
.hcc-section-card .hcc-row { border-radius: 0; border-bottom: 1px solid var(--hcc-border-soft); border-top: 0; }
.hcc-section-card .hcc-row:first-child { border-top: 0; }
.hcc-section-card .hcc-row:last-child { border-bottom: 0; }

/* ─── Bottom CTA card ─── */

.hcc-cta {
    margin-top: 56px;
    padding: 40px 32px;
    text-align: center;
    background: linear-gradient(135deg, rgba(var(--hcc-accent-rgb), .06) 0%, rgba(var(--hcc-accent-rgb), .12) 100%);
    border: 1px solid rgba(var(--hcc-accent-rgb), .18);
    border-radius: var(--hcc-radius);
}
.hcc-cta-title { font-size: 22px; font-weight: 700; color: var(--hcc-text); margin: 0 0 8px; letter-spacing: -.01em; }
.hcc-cta-text  { color: var(--hcc-muted); margin: 0 0 20px; font-size: 15px; }
.hcc-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hcc-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 11px 22px;
    text-decoration: none;
    font-size: 14px; font-weight: 600;
    border-radius: var(--hcc-radius-sm);
    transition: background .2s, color .2s, border-color .2s;
    cursor: pointer;
    border: 1px solid transparent;
}
.hcc-btn--primary { background: var(--hcc-accent); color: #fff; }
.hcc-btn--primary:hover { background: var(--hcc-accent-strong); color: #fff; }
.hcc-btn--ghost   { background: transparent; color: var(--hcc-accent); border-color: rgba(var(--hcc-accent-rgb), .3); }
.hcc-btn--ghost:hover { background: rgba(var(--hcc-accent-rgb), .08); border-color: var(--hcc-accent); color: var(--hcc-accent-strong); }

/* ─── Search results page ─── */

.hcc-search-hero {
    background: linear-gradient(135deg, var(--hcc-accent) 0%, var(--hcc-accent-strong) 100%);
    color: #fff;
    padding: 112px 40px 64px;
    /* Full-bleed (same trick as .hcc-hero): span the entire viewport
     * and pull up over the parent's top spacing so the gradient touches
     * the theme header. Padding-top compensates for the negative margin
     * so inner content stays visually positioned the same. */
    margin: -64px calc(50% - 50vw) 40px;
    border-radius: 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hcc-search-hero-title { font-size: 26px; font-weight: 700; color: #fff; margin: 0 0 6px; }
.hcc-search-hero-meta  { font-size: 14px; color: rgba(255, 255, 255, .85); margin: 0 0 22px; }
.hcc-search-hero .hcc-search-form { margin: 0 auto; }

.hcc-results-list { display: flex; flex-direction: column; }
.hcc-result {
    display: block;
    padding: 20px 22px;
    background: var(--hcc-card-bg);
    border: 1px solid var(--hcc-border);
    border-radius: var(--hcc-radius-md);
    text-decoration: none;
    color: var(--hcc-text);
    margin-bottom: 12px;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.hcc-result:hover { border-color: var(--hcc-accent); box-shadow: 0 6px 18px rgba(0, 0, 0, .06); transform: translateY(-1px); }
.hcc-result-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--hcc-accent);
    background: rgba(var(--hcc-accent-rgb), .08);
    padding: 3px 10px;
    border-radius: 999px;
    margin-bottom: 8px;
}
.hcc-result-title   { font-size: 17px; font-weight: 600; color: var(--hcc-text); margin: 0 0 6px; line-height: 1.4; }
.hcc-result-excerpt { font-size: 14px; color: var(--hcc-muted); margin: 0; line-height: 1.55; }

.hcc-results-empty {
    text-align: center;
    padding: 60px 24px;
    background: var(--hcc-card-bg);
    border: 1px solid var(--hcc-border);
    border-radius: var(--hcc-radius);
}
.hcc-results-empty h2 { font-size: 20px; color: var(--hcc-text); margin: 0 0 8px; }
.hcc-results-empty p  { color: var(--hcc-muted); margin: 0 0 20px; }

.hcc-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 28px; }
.hcc-pagination a,
.hcc-pagination span.current,
.hcc-pagination .hcc-page > span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 36px; height: 36px; padding: 0 12px;
    border: 1px solid var(--hcc-border); border-radius: var(--hcc-radius-sm);
    text-decoration: none; color: var(--hcc-text); font-size: 13px; font-weight: 500;
    background: var(--hcc-card-bg);
}
.hcc-pagination a:hover { border-color: var(--hcc-accent); color: var(--hcc-accent); }
.hcc-pagination .current,
.hcc-pagination span.current { background: var(--hcc-accent); border-color: var(--hcc-accent); color: #fff; }

.hcc-empty {
    text-align: center;
    padding: 60px 20px;
    background: var(--hcc-card-bg);
    border-radius: var(--hcc-radius);
    box-shadow: var(--hcc-shadow);
    border: 2px dashed #d1d5db;
}
.hcc-empty-icon { margin-bottom: 20px; color: var(--hcc-muted-soft); }
.hcc-empty h3   { font-size: 20px; font-weight: 600; color: var(--hcc-text-dim); margin-bottom: 12px; }
.hcc-empty p    { color: var(--hcc-muted); margin-bottom: 24px; }
.hcc-empty-cta  {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 24px; background: var(--hcc-accent); color: #fff;
    text-decoration: none; border-radius: var(--hcc-radius-sm); font-weight: 500;
    transition: background .2s;
}
.hcc-empty-cta:hover { background: var(--hcc-accent-strong); color: #fff; }

/* ═════════════════════════════════════════════════════════════
 * Sidebar (shared by single, faq, group)
 * ═══════════════════════════════════════════════════════════ */

.hcc-sidebar {
    width: 280px;
    flex-shrink: 0;
    background: var(--hcc-card-bg);
    border-radius: var(--hcc-radius);
    box-shadow: var(--hcc-shadow);
    border: 1px solid var(--hcc-border);
    padding: 24px;
    height: fit-content;
    position: sticky;
    top: 80px;
    align-self: flex-start;
}
.hcc-sidebar-head { margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--hcc-border); }
.hcc-sidebar-head h3 { margin: 0; font-size: 18px; color: var(--hcc-text); }
.hcc-sidebar-head h3 a { display: flex; align-items: center; gap: 8px; color: var(--hcc-accent); text-decoration: none; font-weight: 500; }
.hcc-sidebar-head h3 a:hover { color: var(--hcc-accent-strong); }

.hcc-sidebar-label {
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
    color: var(--hcc-muted-soft); margin-bottom: 10px; padding: 0 4px;
}

.hcc-nav-list { list-style: none; padding: 0; margin: 0; }
.hcc-nav-item { margin-bottom: 2px; }
.hcc-nav-item a {
    display: block;
    padding: 8px 12px;
    color: #4b5563;
    text-decoration: none;
    border-radius: var(--hcc-radius-sm);
    font-weight: 500;
    font-size: 14px;
    line-height: 1.45;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    transition: background .2s, color .2s, box-shadow .2s;
}
.hcc-nav-item a:hover { background: var(--hcc-soft-fill); color: var(--hcc-text); }
/* Active state: inset shadow paints the accent bar inside the padding,
 * so the text doesn't shift relative to inactive items. */
.hcc-nav-item.is-active a {
    background: rgba(var(--hcc-accent-rgb), .1);
    color: var(--hcc-accent);
    box-shadow: inset 3px 0 0 var(--hcc-accent);
    font-weight: 600;
}

/* Sidebar accordion groups (used on FAQ + group + single pages) */
.hcc-nav-group { margin-bottom: 8px; }
.hcc-nav-group-head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    padding: 9px 12px;
    background: var(--hcc-row-bg);
    border-radius: var(--hcc-radius-sm);
    margin-bottom: 4px;
    transition: background .2s;
}
.hcc-nav-group-head .hcc-nav-group-icon { margin-top: 1px; }
.hcc-nav-group-head .hcc-nav-group-toggle { margin-top: 6px; }
.hcc-nav-group-head:hover { background: #f1f3f5; }
.hcc-nav-group-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 24px; height: 24px; flex-shrink: 0;
    color: var(--hcc-accent);
    background: rgba(var(--hcc-accent-rgb), .1);
    border-radius: var(--hcc-radius-sm);
}
.hcc-nav-group-name {
    flex: 1;
    min-width: 0;
    font-weight: 600;
    color: var(--hcc-text-dim);
    font-size: 13px;
    line-height: 1.35;
    text-transform: uppercase;
    letter-spacing: .05em;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}
.hcc-nav-group-toggle { font-size: 11px; color: var(--hcc-muted-soft); transition: transform .2s; flex-shrink: 0; }
.hcc-nav-group-head.is-open .hcc-nav-group-toggle { transform: rotate(180deg); }
.hcc-nav-group-children { list-style: none; padding: 0; margin: 0 0 0 14px; display: none; }
.hcc-nav-group-children.is-open { display: block; }

/* ═════════════════════════════════════════════════════════════
 * Main content card (shared by single, faq, group)
 * ═══════════════════════════════════════════════════════════ */

.hcc-main {
    flex: 1; min-width: 0;
    background: var(--hcc-card-bg);
    border-radius: var(--hcc-radius);
    box-shadow: var(--hcc-shadow);
    border: 1px solid var(--hcc-border);
    padding: 50px;
}
.hcc-article-head { margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--hcc-border); }
.hcc-article-title { font-size: 32px; font-weight: 700; color: var(--hcc-text); margin: 0 0 12px; line-height: 1.25; }

.hcc-breadcrumb {
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
    font-size: 13px; color: var(--hcc-muted-soft); margin-bottom: 16px;
}
.hcc-breadcrumb a { color: var(--hcc-accent); text-decoration: none; }
.hcc-breadcrumb a:hover { text-decoration: underline; }
.hcc-breadcrumb svg { color: #d1d5db; }

.hcc-article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--hcc-muted); }
.hcc-meta-group { color: var(--hcc-accent); text-decoration: none; font-weight: 500; }
.hcc-meta-group:hover { text-decoration: underline; }
.hcc-meta-sep { color: #d1d5db; }
.hcc-meta-date { color: var(--hcc-muted-soft); }

/* Article body (post content) */
.hcc-article-body { line-height: 1.78; color: #4b5563; font-size: .97em; }
.hcc-article-body h2, .hcc-article-body h3, .hcc-article-body h4, .hcc-article-body h5, .hcc-article-body h6 { margin: 2em 0 .8em; color: var(--hcc-text); }
.hcc-article-body h2 { font-size: 26px; }
.hcc-article-body h3 { font-size: 22px; }
.hcc-article-body h4 { font-size: 18px; }
.hcc-article-body p  { margin-bottom: 16px; }
.hcc-article-body ul, .hcc-article-body ol { margin-bottom: 16px; padding-left: 24px; }
.hcc-article-body li { margin-bottom: 8px; }
.hcc-article-body a  { color: var(--hcc-accent); text-decoration: none; }
.hcc-article-body a:hover { text-decoration: underline; }
.hcc-article-body blockquote { border-left: 4px solid var(--hcc-accent); padding-left: 16px; margin: 20px 0; font-style: italic; color: var(--hcc-muted); }
.hcc-article-body code { background: var(--hcc-soft-fill); padding: 2px 6px; border-radius: 4px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; }
.hcc-article-body pre  { background: var(--hcc-soft-fill); padding: 16px; border-radius: var(--hcc-radius-md); overflow-x: auto; margin: 20px 0; }
.hcc-article-body pre code { background: transparent; padding: 0; }
.hcc-article-body img { max-width: 100%; height: auto; border-radius: var(--hcc-radius-md); margin: 16px 0; }
.hcc-article-body table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.hcc-article-body table th, .hcc-article-body table td { border: 1px solid var(--hcc-border); padding: 10px 14px; text-align: left; }
.hcc-article-body table th { background: #f9fafb; font-weight: 600; color: var(--hcc-text-dim); }

/* Responsive iframe wrapper added by JS */
.hcc-embed { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; margin: 20px 0; }
.hcc-embed iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

/* ═════════════════════════════════════════════════════════════
 * "Was this article helpful?" footer
 * ═══════════════════════════════════════════════════════════ */

.hcc-helpful {
    margin-top: 40px;
    padding: 22px 24px;
    background: var(--hcc-row-bg);
    border: 1px solid var(--hcc-border);
    border-radius: var(--hcc-radius);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}
.hcc-helpful-q  { margin: 0; font-weight: 600; color: var(--hcc-text); font-size: 15px; }
.hcc-helpful-actions { display: flex; gap: 8px; margin-left: auto; }
.hcc-helpful-btn {
    background: var(--hcc-card-bg);
    border: 1px solid var(--hcc-border);
    border-radius: 999px;
    padding: 7px 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: var(--hcc-muted);
    transition: border-color .2s, color .2s, background .2s;
}
.hcc-helpful-btn:hover { border-color: var(--hcc-accent); color: var(--hcc-accent); }
.hcc-helpful-btn.is-on { border-color: var(--hcc-accent); color: var(--hcc-accent); background: rgba(var(--hcc-accent-rgb), .06); }
.hcc-helpful-btn[disabled] { cursor: default; opacity: .85; }
.hcc-helpful-thanks { color: var(--hcc-accent); font-weight: 500; font-size: 14px; margin-left: auto; }

/* ═════════════════════════════════════════════════════════════
 * Article group tag (badge above the article title)
 * ═══════════════════════════════════════════════════════════ */

.hcc-article-group-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px 5px 6px;
    background: rgba(var(--hcc-accent-rgb), .08);
    border-radius: 999px;
    margin-bottom: 16px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    color: var(--hcc-accent);
    transition: background .15s, color .15s;
}
.hcc-article-group-tag:hover {
    background: rgba(var(--hcc-accent-rgb), .15);
    color: var(--hcc-accent-strong);
}
.hcc-article-group-tag-icon {
    width: 24px; height: 24px;
    background: var(--hcc-accent);
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ═════════════════════════════════════════════════════════════
 * Prev / Next article navigation
 * ═══════════════════════════════════════════════════════════ */

.hcc-article-nav {
    margin-top: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.hcc-article-nav-card {
    display: flex;
    flex-direction: column;
    padding: 18px 22px;
    background: var(--hcc-card-bg);
    border: 1px solid var(--hcc-border);
    border-radius: var(--hcc-radius);
    text-decoration: none;
    color: var(--hcc-text);
    transition: border-color .15s, box-shadow .15s, transform .15s;
    min-width: 0;
}
.hcc-article-nav-card:hover {
    border-color: var(--hcc-accent);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .06);
    transform: translateY(-1px);
}
.hcc-article-nav-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--hcc-muted-soft);
    margin-bottom: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.hcc-article-nav-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--hcc-text);
    line-height: 1.4;
    overflow-wrap: anywhere;
}
.hcc-article-nav-card:hover .hcc-article-nav-title { color: var(--hcc-accent); }
.hcc-article-nav-card.is-prev { grid-column: 1; }
.hcc-article-nav-card.is-next {
    grid-column: 2;
    text-align: right;
    align-items: flex-end;
}
.hcc-article-nav-card.is-next .hcc-article-nav-label { flex-direction: row-reverse; }

/* ═════════════════════════════════════════════════════════════
 * Related articles (single page)
 * ═══════════════════════════════════════════════════════════ */

.hcc-related { margin-top: 50px; padding-top: 30px; border-top: 1px solid var(--hcc-border); }
.hcc-related h3 { font-size: 20px; color: var(--hcc-text); margin: 0 0 20px; font-weight: 600; }
.hcc-related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.hcc-related-card {
    background: var(--hcc-card-bg);
    border: 1px solid var(--hcc-border);
    border-radius: var(--hcc-radius-md);
    box-shadow: var(--hcc-shadow-soft);
    padding: 20px;
    transition: box-shadow .2s;
}
.hcc-related-card:hover { box-shadow: 0 4px 16px rgba(0, 0, 0, .1); }
.hcc-related-card h4 { font-size: 15px; font-weight: 600; color: var(--hcc-text); margin: 0 0 10px; line-height: 1.4; }
.hcc-related-card h4 a { color: var(--hcc-text); text-decoration: none; }
.hcc-related-card h4 a:hover { color: var(--hcc-accent); }
.hcc-related-excerpt { color: var(--hcc-muted); font-size: 13px; line-height: 1.5; margin-bottom: 14px; }
.hcc-read-more { display: inline-flex; align-items: center; color: var(--hcc-accent); text-decoration: none; font-weight: 500; font-size: 13px; }
.hcc-read-more:hover { color: var(--hcc-accent-strong); }

/* ═════════════════════════════════════════════════════════════
 * FAQ accordion
 * ═══════════════════════════════════════════════════════════ */

.hcc-faq-count { margin: 0; font-size: 14px; color: var(--hcc-muted-soft); }

.hcc-faq-list { margin-top: 8px; }
.hcc-faq-item {
    margin-bottom: 12px;
    border: 1px solid var(--hcc-border);
    border-radius: 10px;
    overflow: hidden;
    scroll-margin-top: 100px;
    transition: border-color .2s, box-shadow .2s;
}
.hcc-faq-item.is-highlight { border-color: var(--hcc-accent); box-shadow: 0 0 0 3px rgba(var(--hcc-accent-rgb), .12); }

.hcc-faq-q {
    padding: 16px 20px;
    background: #f9fafb;
    font-weight: 600;
    color: var(--hcc-text);
    font-size: 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    user-select: none;
    transition: background .15s;
}
.hcc-faq-q:hover { background: var(--hcc-soft-fill); }
.hcc-faq-q-text { flex: 1; line-height: 1.4; }
.hcc-faq-chevron { flex-shrink: 0; color: var(--hcc-muted-soft); transition: transform .25s; }
.hcc-faq-item.is-open .hcc-faq-chevron { transform: rotate(180deg); }
.hcc-faq-item.is-open .hcc-faq-q { background: #fff; }

.hcc-faq-a { display: none; border-top: 1px solid var(--hcc-border); }
.hcc-faq-item.is-open .hcc-faq-a { display: block; }
.hcc-faq-a-body { padding: 18px 20px 12px; color: #4b5563; line-height: 1.72; font-size: .95em; }
.hcc-faq-a-body p:first-child { margin-top: 0; }
.hcc-faq-a-body p:last-child  { margin-bottom: 0; }
.hcc-faq-a-body a { color: var(--hcc-accent); text-decoration: none; }
.hcc-faq-a-body a:hover { text-decoration: underline; }
.hcc-faq-a-body ul, .hcc-faq-a-body ol { padding-left: 22px; margin-bottom: 12px; }
.hcc-faq-a-body li { margin-bottom: 6px; }
.hcc-faq-a-body strong { color: var(--hcc-text); }
.hcc-faq-a-body code { background: var(--hcc-soft-fill); padding: 2px 5px; border-radius: 4px; font-size: .88em; }
.hcc-faq-a-body blockquote { border-left: 3px solid var(--hcc-accent); padding-left: 14px; margin: 12px 0; color: var(--hcc-muted); font-style: italic; }

.hcc-faq-copy-row { display: flex; justify-content: flex-end; padding: 4px 20px 14px; }
.hcc-faq-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: transparent;
    border: 1px solid var(--hcc-border);
    border-radius: var(--hcc-radius-sm);
    padding: 5px 10px;
    font-size: 12px;
    color: var(--hcc-muted-soft);
    cursor: pointer;
    line-height: 1;
    transition: border-color .2s, color .2s, background .2s;
}
.hcc-faq-copy-btn:hover { border-color: var(--hcc-accent); color: var(--hcc-accent); background: rgba(var(--hcc-accent-rgb), .04); }
.hcc-faq-copy-btn.is-copied { border-color: #16a34a; color: #16a34a; background: rgba(22, 163, 74, .06); }
.hcc-faq-copy-label { font-weight: 500; }

#hcc-toast {
    position: fixed; bottom: 28px; right: 28px;
    background: var(--hcc-text); color: #fff;
    padding: 10px 18px; border-radius: var(--hcc-radius-md);
    font-size: 13px; font-weight: 500;
    opacity: 0; pointer-events: none; transform: translateY(8px);
    transition: opacity .2s, transform .2s;
    z-index: 9999;
}
#hcc-toast.is-visible { opacity: 1; transform: translateY(0); }

.hcc-no-faq { text-align: center; padding: 40px 20px; background: #f9fafb; border-radius: var(--hcc-radius-md); border: 1px dashed #d1d5db; }
.hcc-no-faq p { margin: 0 0 16px; color: var(--hcc-muted); }

/* ═════════════════════════════════════════════════════════════
 * Group archive (article list)
 * ═══════════════════════════════════════════════════════════ */

.hcc-group-title-row { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 12px; }
.hcc-group-icon {
    width: 48px; height: 48px;
    background: linear-gradient(135deg, var(--hcc-accent) 0%, var(--hcc-accent-strong) 100%);
    border-radius: var(--hcc-radius);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; color: #fff;
}
.hcc-group-desc  { margin: 0; font-size: 14px; color: var(--hcc-muted); line-height: 1.5; }
.hcc-group-count { margin: 0; font-size: 13px; color: var(--hcc-muted-soft); }

.hcc-row-list { display: flex; flex-direction: column; }
.hcc-row-list-empty { color: var(--hcc-muted-soft); padding: 20px 0; }
.hcc-row {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px;
    padding: 16px 22px;
    text-decoration: none; color: var(--hcc-text);
    border-bottom: 1px solid var(--hcc-border-soft);
    transition: background .15s, color .15s;
}
.hcc-row:first-child { border-top: 1px solid var(--hcc-border-soft); }
.hcc-row:hover { background: var(--hcc-row-hover); color: var(--hcc-accent); }
.hcc-row-title {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.45;
    flex: 1;
    min-width: 0;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}
.hcc-row-arrow { flex-shrink: 0; color: var(--hcc-muted-soft); transition: color .15s, transform .15s; }
.hcc-row:hover .hcc-row-arrow { color: var(--hcc-accent); transform: translateX(3px); }

/* ═════════════════════════════════════════════════════════════
 * Mobile sidebar toggle
 * ═══════════════════════════════════════════════════════════ */

.hcc-mobile-toggle { display: none; margin-bottom: 16px; }
.hcc-mobile-btn {
    display: flex; align-items: center; gap: 8px;
    background: var(--hcc-accent); color: #fff; border: 0;
    padding: 10px 16px; border-radius: var(--hcc-radius-sm);
    font-weight: 500; cursor: pointer; font-size: 14px;
}
.hcc-mobile-btn:hover { background: var(--hcc-accent-strong); }

/* ═════════════════════════════════════════════════════════════
 * Breakpoints
 * ═══════════════════════════════════════════════════════════ */

@media (max-width: 992px) {
    .hcc-detail-row { flex-direction: column; }
    .hcc-sidebar { width: 100%; position: static; display: none; }
    .hcc-sidebar.is-open { display: block; }
    .hcc-mobile-toggle { display: block; }
    .hcc-main { padding: 30px; }
    .hcc-article-title { font-size: 26px; }
}

@media (max-width: 768px) {
    .hcc-hero { padding: 44px 20px 40px; margin-bottom: 40px; }
    .hcc-hero-title { font-size: 28px; }
    .hcc-popular { gap: 6px; }
    .hcc-detail-wrap { margin: 30px auto 50px; padding: 0 14px; }
    .hcc-main { padding: 20px; }
    .hcc-article-title { font-size: 22px; }
    .hcc-article-head { margin-bottom: 20px; padding-bottom: 16px; }
    .hcc-related-grid { grid-template-columns: 1fr; }
    #hcc-toast { bottom: 16px; right: 16px; }
    .hcc-helpful-actions, .hcc-helpful-thanks { margin-left: 0; }
    .hcc-section { margin-top: 40px; }
    .hcc-section-head { flex-direction: column; align-items: flex-start; gap: 6px; }
    .hcc-section-title { font-size: 19px; }
    .hcc-article-nav { grid-template-columns: 1fr; gap: 12px; }
    .hcc-article-nav-card.is-prev,
    .hcc-article-nav-card.is-next { grid-column: 1; text-align: left; align-items: flex-start; }
    .hcc-article-nav-card.is-next .hcc-article-nav-label { flex-direction: row; }
    .hcc-topics { gap: 40px; }
    .hcc-topic-head { flex-wrap: wrap; }
    .hcc-topic-cta { width: 100%; padding-left: 66px; align-self: auto; margin-top: -8px; }
    .hcc-topic-name { font-size: 19px; }
    .hcc-row { padding: 14px 18px; }
    .hcc-cta { padding: 32px 22px; margin-top: 40px; }
    .hcc-cta-title { font-size: 19px; }
    .hcc-search-hero { padding: 36px 20px 40px; }
    .hcc-search-hero-title { font-size: 21px; }
    .hcc-result { padding: 16px 18px; }
}

@media (max-width: 480px) {
    .hcc-container { padding: 12px; }
    .hcc-hero { padding: 36px 18px 32px; }
    .hcc-hero-title { font-size: 24px; }
    .hcc-search-form input[type="search"] { padding: 10px 14px; font-size: 14px; }
    .hcc-search-form button { padding: 0 16px; }
    .hcc-row { padding: 14px 16px; }
}
