@font-face { font-family: "Noto Sans"; src: url("../assets/noto-sans-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; }
/* =========================================================
   CORELY HELP CENTER
   Purple and lavender visual system
   ========================================================= */
:root {
    --primary: #7146ff;
    --primary-hover: #6038eb;
    --primary-soft: #f1ecff;
    --primary-border: #ded5ff;
    --background: #f6f7fb;
    --surface: #ffffff;
    --surface-soft: #faf9ff;
    --surface-purple: #f3efff;
    --surface-purple-light: #f8f6ff;
    --text: #0b1232;
    --text-secondary: #626982;
    --text-muted: #57627a;
    --border: #e4e2f0;
    --border-light: #eceaf5;
    --success: #159b70;
    --warning: #d99525;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-card: 0 8px 24px rgba(72, 48, 140, 0.05);
    --shadow-hover: 0 8px 22px rgba(72, 48, 140, 0.10);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --sidebar-width: 232px;
    --header-height: 76px;
    --font: "Noto Sans", Arial, Helvetica, sans-serif;
}
/* =========================================================
   RESET
   ========================================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: auto;
    scroll-padding-top: 100px;
}
body {
    min-width: 320px;
    background: var(--background);
    color: var(--text);
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
button,
input,
textarea,
select {
    font: inherit;
}
button {
    cursor: pointer;
}
a {
    color: inherit;
    text-decoration: none;
}
[hidden] {
    display: none !important;
}
/* =========================================================
   APPLICATION LAYOUT
   ========================================================= */
.app-layout {
    min-height: 100vh;
    background: var(--background);
}
.main-layout {
    display: flex;
    min-height: calc(100vh - var(--header-height));
}
/* =========================================================
   HEADER
   ========================================================= */
.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    height: var(--header-height);
    padding: 0 30px;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(12px);
}
/* Brand */
.brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 10px;
    min-width: 230px;
    height: 100%;
}
.brand-icon {
    display: none;
}
.brand-name {
    display: block;
    width: 112px;
    height: 49px;
    overflow: hidden;
    flex-shrink: 0;
    color: transparent;
    font-size: 0;
    background-image: url("../assets/corely-logo.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}
.brand-divider {
    margin: 0 2px;
    color: #c5c9d6;
    font-size: 1.5rem;
    font-weight: 400;
}
.brand-section {
    color: var(--text);
    font-size: 1.0625rem;
    font-weight: 600;
    white-space: nowrap;
}
/* Header search */
.header-search {
    position: relative;
    display: flex;
    align-items: center;
    width: min(440px, 42vw);
    height: 42px;
    padding: 0 12px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.header-search:focus-within {
    background: var(--surface);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(113, 70, 255, 0.09);
}
.search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--text-muted);
    font-size: 1.375rem;
    line-height: 1;
}
.header-search input,
.hero-search input {
    width: 100%;
    min-width: 0;
    height: 100%;
    padding: 0 10px;
    color: var(--text);
    background: transparent;
    border: none;
    outline: none;
    font-size: 1rem;
}
.header-search input::placeholder,
.hero-search input::placeholder {
    color: #9299ad;
}
.search-shortcut,
.hero-search-shortcut {
    flex-shrink: 0;
    padding: 3px 8px;
    color: var(--text-muted);
    background: #f1f0f8;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
}
/* Header actions */
.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 160px;
}
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
    color: var(--text-secondary);
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    transition: 0.2s ease;
}
.back-link:hover {
    color: var(--primary);
    background: var(--primary-soft);
    border-color: var(--primary-border);
}
.back-link span {
    font-size: 1.1875rem;
}
/* =========================================================
   SIDEBAR
   ========================================================= */
.sidebar {
    position: sticky;
    top: var(--header-height);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    width: var(--sidebar-width);
    height: calc(100vh - var(--header-height));
    padding: 25px 13px 16px;
    overflow-y: auto;
    background: #fbfaff;
    border-right: 1px solid var(--border);
}
/* Help Center sidebar heading */
.sidebar-heading {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 13px 0 17px;
    margin-bottom: 22px;
    color: var(--text);
    background: #f1ecff;
    border: 1px solid #e8e0ff;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.1px;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}
.sidebar-heading::before {
    content: "";
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 0;
    width: 3px;
    background: var(--primary);
    border-radius: 0 4px 4px 0;
}
.sidebar-heading:hover {
    color: var(--primary);
    background: #ebe4ff;
    border-color: #d9ceff;
    box-shadow: 0 3px 10px rgba(72, 48, 140, 0.07);
    transform: translateY(-1px);
}
.sidebar-heading:focus-visible {
    outline: 3px solid rgba(113, 70, 255, 0.2);
    outline-offset: 3px;
}
.sidebar-heading-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    color: var(--primary);
    background: #ebe4ff;
    border-radius: 9px;
    font-size: 1.1875rem;
}
.sidebar-section-label {
    padding: 0 11px;
    margin-bottom: 10px;
    color: #9ba1b2;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.9px;
}
#category-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
#category-list a,
#category-list button,
.category-link {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    min-height: 40px;
    padding: 8px 11px;
    color: #555d76;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    transition: background 0.18s ease, color 0.18s ease;
}
#category-list a:hover,
#category-list button:hover,
.category-link:hover {
    color: var(--primary);
    background: #f1ecff;
}
#category-list a.active,
#category-list button.active,
.category-link.active {
    color: var(--primary);
    background: #ebe4ff;
}
#category-list svg,
#category-list .category-icon,
#category-list .nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: currentColor;
}
.sidebar-bottom {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-top: auto;
    padding: 15px 10px 8px;
    border-top: 1px solid var(--border-light);
}
.sidebar-help-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 29px;
    height: 29px;
    flex-shrink: 0;
    color: var(--primary);
    background: #ebe4ff;
    border-radius: 9px;
    font-weight: 700;
}
.sidebar-bottom strong {
    display: block;
    margin-bottom: 3px;
    color: var(--text);
    font-size: 0.875rem;
    font-weight: 700;
}
.sidebar-bottom span {
    display: block;
    color: var(--text-muted);
    font-size: 0.8125rem;
    line-height: 1.5;
}
/* =========================================================
   MAIN CONTENT
   ========================================================= */
.content-area {
    flex: 1;
    min-width: 0;
    padding: 20px;
}
.page-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}
/* =========================================================
   HERO
   ========================================================= */
.help-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 245px;
    padding: 38px 44px;
    overflow: hidden;
    background: linear-gradient(115deg, #f0eaff 0%, #f8f5ff 58%, #f1edff 100%);
    border: 1px solid #e4dcff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}
.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 690px;
}
.eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--primary);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 1.1px;
}
.help-hero h1 {
    margin-bottom: 9px;
    color: var(--text);
    font-size: clamp(2rem, 3vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -1.1px;
    line-height: 1.25;
}
.help-hero p {
    max-width: 560px;
    margin-bottom: 22px;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}
.hero-search {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 570px;
    height: 48px;
    padding: 0 13px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #ded5ff;
    border-radius: var(--radius-md);
    box-shadow: 0 2px 7px rgba(72, 48, 140, 0.06);
    transition: 0.2s ease;
}
.hero-search:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(113, 70, 255, 0.10);
}
.hero-search input {
    padding: 0 12px;
    font-size: 1rem;
}
.hero-search-shortcut {
    padding: 5px 10px;
}
.hero-suggestions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 13px;
    color: var(--text-muted);
    font-size: 0.8125rem;
}
.hero-suggestions button {
    padding: 4px 9px;
    color: #66618a;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid #e5ddff;
    border-radius: 20px;
    font-size: 0.8125rem;
}
.hero-suggestions button:hover {
    color: var(--primary);
    background: #ffffff;
    border-color: var(--primary-border);
    cursor: pointer;
}
/* Hero decoration */
.hero-decoration {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 245px;
    height: 180px;
    flex-shrink: 0;
    margin-left: 20px;
}
.hero-decoration-circle {
    position: absolute;
    border-radius: 50%;
    background: #ded3ff;
}
.circle-one {
    top: 3px;
    right: 10px;
    width: 150px;
    height: 150px;
    opacity: 0.7;
}
.circle-two {
    right: 110px;
    bottom: 2px;
    width: 65px;
    height: 65px;
    background: #e8e0ff;
}
.hero-decoration-card {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 190px;
    padding: 19px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #e2d9ff;
    border-radius: 14px;
    box-shadow: var(--shadow-card);
    transform: rotate(-3deg);
}
.decoration-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 33px;
    height: 33px;
    margin-bottom: 13px;
    color: var(--primary);
    background: #ebe4ff;
    border-radius: 10px;
    font-size: 1.1875rem;
}
.hero-decoration-card strong {
    margin-bottom: 4px;
    color: var(--text);
    font-size: 0.9375rem;
}
.hero-decoration-card > span:last-child {
    color: var(--text-muted);
    font-size: 0.8125rem;
}
/* =========================================================
   HOME SECTIONS
   ========================================================= */
.home-section {
    margin-top: 34px;
}
.section-heading,
.content-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
}
.section-heading h2,
.content-heading h2 {
    margin-bottom: 5px;
    color: var(--text);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.45px;
}
.section-heading p,
.content-heading p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
}
.section-link {
    color: var(--primary);
    font-size: 0.9375rem;
    font-weight: 600;
    white-space: nowrap;
}
/* =========================================================
   CATEGORY CARDS
   ========================================================= */
.category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.category-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 13px;
    min-height: 105px;
    padding: 17px;
    background: #fbfaff;
    border: 1px solid #e7e1f7;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: border-color 0.2s ease, box-shadow 0.2s ease,
        transform 0.2s ease;
    cursor: pointer;
}
.category-card:nth-child(even) {
    background: #f6f3ff;
}
.category-card:hover {
    background: #ffffff;
    border-color: #d5caff;
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}
.category-card-icon,
.category-icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 39px;
    height: 39px;
    flex-shrink: 0;
    color: var(--primary);
    background: #ebe4ff;
    border-radius: 11px;
    font-size: 1.25rem;
}
.category-card-content {
    min-width: 0;
    flex: 1;
}
.category-card h3,
.category-card-title {
    margin-bottom: 4px;
    color: var(--text);
    font-size: 1rem;
    font-weight: 700;
}
.category-card p,
.category-card-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.55;
}
.category-card-count {
    display: inline-block;
    margin-top: 7px;
    color: var(--primary);
    font-size: 0.8125rem;
    font-weight: 600;
}
.category-card-arrow {
    margin-left: auto;
    color: #9281d0;
    font-size: 1.1875rem;
}
/* =========================================================
   POPULAR ARTICLES
   ========================================================= */
.popular-articles-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.popular-article,
.popular-article-card,
.article-card {
    display: flex;
    flex-direction: column;
    min-height: 112px;
    padding: 14px 16px;
    background: #ffffff;
    border: 1px solid #e5e0f2;
    border-radius: 13px;
    box-shadow: var(--shadow-sm);
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
    cursor: pointer;
}
.popular-article:nth-child(4n + 2),
.popular-article-card:nth-child(4n + 2),
.article-card:nth-child(4n + 2) {
    background: #faf8ff;
}
.popular-article:hover,
.popular-article-card:hover,
.article-card:hover {
    background: #ffffff;
    border-color: #cfc0ff;
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}
.popular-article h3,
.popular-article-card h3,
.article-card h3 {
    margin-bottom: 5px;
    color: var(--text);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.45;
}
.popular-article p,
.popular-article-card p,
.article-card p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
}
.popular-article-arrow {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: auto;
    padding-top: 8px;
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    transition: gap 0.2s ease;
}
.popular-article:hover .popular-article-arrow,
.popular-article-card:hover .popular-article-arrow,
.article-card:hover .popular-article-arrow {
    gap: 9px;
}
.popular-article:focus-visible,
.popular-article-card:focus-visible,
.article-card:focus-visible {
    outline: 3px solid rgba(113, 70, 255, 0.2);
    outline-offset: 3px;
}
/* =========================================================
   DOCUMENTATION SECTION
   ========================================================= */
.documentation-section {
    margin-top: 39px;
    padding: 27px 24px;
    background: #f0ecfb;
    border: 1px solid #e5def7;
    border-radius: var(--radius-lg);
}
.content-heading {
    margin-bottom: 19px;
}
/* =========================================================
   GUIDE OVERVIEW CARDS
   ========================================================= */
.guide-overview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.guide-overview-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 115px;
    padding: 17px 18px;
    background: #ffffff;
    border: 1px solid #e5e0f2;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: border-color 0.2s ease, box-shadow 0.2s ease,
        transform 0.2s ease;
    cursor: pointer;
}
.guide-overview-card:hover {
    border-color: #cfc0ff;
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}
.guide-overview-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    min-width: 0;
}
.guide-overview-title {
    display: block;
    width: 100%;
    margin-bottom: 6px;
    color: var(--text);
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.45;
}
.guide-overview-description {
    display: block;
    width: 100%;
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
}
.guide-overview-meta {
    display: block;
    width: 100%;
    margin-top: 9px;
    color: var(--primary);
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.5;
}
.guide-overview-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary);
    font-size: 1.375rem;
}
/* =========================================================
   FAQ LIST
   ========================================================= */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.faq-group {
    margin-bottom: 20px;
}
.faq-group-title {
    margin-bottom: 12px;
    color: var(--text);
    font-size: 1.125rem;
    font-weight: 700;
}
.faq-item {
    margin-bottom: 9px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.faq-item:hover {
    border-color: #d9d1f7;
}
.faq-item.active {
    border-color: #d7ccff;
    box-shadow: var(--shadow-sm);
}
.faq-question {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 24px;
    align-items: center;
    column-gap: 16px;
    width: 100%;
    min-height: 56px;
    padding: 16px 18px;
    color: var(--text);
    background: transparent;
    border: none;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
}
.faq-question:hover {
    color: var(--primary);
}
.faq-question > span:first-child {
    min-width: 0;
}
.faq-chevron {
    display: flex;
    align-items: center;
    justify-content: center;
    justify-self: end;
    width: 24px;
    height: 24px;
    min-width: 24px;
    flex: 0 0 24px;
    margin: 0;
    color: var(--primary);
    font-size: 0;
    line-height: 1;
}
.faq-chevron { transition: transform .2s ease; }
.faq-item.active .faq-chevron {
    transform: rotate(180deg);
}
.faq-question::before,
.faq-question::after {
    content: none !important;
    display: none !important;
}
.faq-answer {
    padding: 0 18px 17px;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.8;
}
.faq-answer p + p {
    margin-top: 10px;
}
.faq-answer ul,
.faq-answer ol {
    padding-left: 21px;
    margin: 9px 0;
}
.faq-answer li {
    margin-bottom: 5px;
}
.faq-answer strong {
    color: var(--text);
    font-weight: 700;
}
/* =========================================================
   QUICK FAQ
   ========================================================= */
.quick-faq-item {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}
.quick-faq-item + .quick-faq-item {
    margin-top: 9px;
}
.quick-faq-item.active {
    border-color: #d7ccff;
}
.quick-faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 15px 17px;
    color: var(--text);
    background: transparent;
    border: none;
    text-align: left;
    font-size: 0.9375rem;
    font-weight: 600;
}
.quick-faq-answer {
    padding: 0 17px 15px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.75;
}
/* =========================================================
   ARTICLE READING VIEW
   ========================================================= */
.article-view {
    width: 100%;
}
.article-back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 23px;
    padding: 8px 12px;
    color: var(--text-secondary);
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    font-weight: 600;
    transition: 0.2s ease;
}
.article-back-button:hover {
    color: var(--primary);
    background: var(--primary-soft);
    border-color: var(--primary-border);
}
.article-back-button span {
    font-size: 1.125rem;
}
.article-content {
    padding: 30px 32px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}
.article-category-label {
    display: inline-block;
    margin-bottom: 10px;
    padding: 5px 10px;
    color: var(--primary);
    background: var(--primary-soft);
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 700;
}
.article-content h1 {
    margin-bottom: 20px;
    color: var(--text);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.7px;
    line-height: 1.35;
}
.article-body {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.85;
}
.article-body h2 {
    margin: 27px 0 10px;
    color: var(--text);
    font-size: 1.25rem;
    font-weight: 700;
}
.article-body h3 {
    margin: 21px 0 8px;
    color: var(--text);
    font-size: 1.0625rem;
    font-weight: 700;
}
.article-body p {
    margin-bottom: 13px;
}
.article-body ul,
.article-body ol {
    padding-left: 23px;
    margin: 10px 0 17px;
}
.article-body li {
    padding-left: 3px;
    margin-bottom: 7px;
}
.article-body strong {
    color: var(--text);
    font-weight: 700;
}
.article-body a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.article-body blockquote {
    margin: 17px 0;
    padding: 13px 17px;
    color: var(--text-secondary);
    background: #f5f1ff;
    border-left: 3px solid var(--primary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.article-body code {
    padding: 2px 5px;
    color: #6743dc;
    background: var(--primary-soft);
    border-radius: 4px;
    font-size: 0.875rem;
}
.article-body table {
    width: 100%;
    margin: 17px 0;
    border-collapse: collapse;
    font-size: 0.9375rem;
}
.article-body th,
.article-body td {
    padding: 10px 12px;
    border: 1px solid var(--border);
    text-align: left;
}
.article-body th {
    color: var(--text);
    background: #f4f1fc;
    font-weight: 700;
}
/* Guide topics */
.article-introduction {
    margin-bottom: 25px;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
}
.guide-topic-section {
    padding: 21px 0;
    border-top: 1px solid var(--border-light);
}
.guide-topic-heading {
    margin-bottom: 11px;
    color: var(--text);
    font-size: 1.125rem;
    font-weight: 700;
}
.article-section {
    margin-top: 24px;
    padding: 20px;
    background: #f8f6ff;
    border: 1px solid #e9e3f8;
    border-radius: var(--radius-md);
}
.related-articles {
    margin-top: 30px;
    padding-top: 23px;
    border-top: 1px solid var(--border);
}
.related-articles h2 {
    margin-bottom: 13px;
    color: var(--text);
    font-size: 1.125rem;
}
.related-article-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 13px;
    margin-bottom: 8px;
    color: var(--text-secondary);
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    font-weight: 600;
    transition: 0.2s ease;
}
.related-article-link:hover {
    color: var(--primary);
    border-color: var(--primary-border);
    background: #fbfaff;
}
/* =========================================================
   SEARCH RESULTS
   ========================================================= */
.search-guide-result,
.search-faq-result {
    padding: 17px 19px;
    margin-bottom: 10px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: 0.2s ease;
    cursor: pointer;
}
.search-guide-result:hover,
.search-faq-result:hover {
    border-color: var(--primary-border);
    box-shadow: var(--shadow-hover);
}
.search-guide-result h3,
.search-faq-result h3 {
    margin-bottom: 5px;
    color: var(--text);
    font-size: 1rem;
    font-weight: 700;
}
.search-guide-result p,
.search-faq-result p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.65;
}
.search-result-category {
    display: inline-block;
    margin-bottom: 6px;
    color: var(--primary);
    font-size: 0.8125rem;
    font-weight: 700;
}
.search-result-type {
    display: inline-block;
    padding: 3px 7px;
    margin-left: 6px;
    color: #777f96;
    background: #f0edfa;
    border-radius: 5px;
    font-size: 0.8125rem;
    font-weight: 600;
}
/* =========================================================
   EMPTY SEARCH STATE
   ========================================================= */
.empty-state {
    padding: 55px 20px;
    text-align: center;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}
.empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 0 auto 15px;
    color: var(--primary);
    background: #ebe4ff;
    border-radius: 14px;
    font-size: 1.75rem;
}
.empty-state h3 {
    margin-bottom: 7px;
    color: var(--text);
    font-size: 1.125rem;
    font-weight: 700;
}
.empty-state p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}
/* =========================================================
   SUPPORT SECTION
   ========================================================= */
.support-section {
    display: flex;
    align-items: center;
    gap: 17px;
    margin-top: 35px;
    padding: 21px 23px;
    background: #eee9fc;
    border: 1px solid #e1d8f8;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}
.support-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 43px;
    height: 43px;
    flex-shrink: 0;
    color: var(--primary);
    background: #ffffff;
    border-radius: 12px;
    font-size: 1.375rem;
    font-weight: 700;
}
.support-text {
    flex: 1;
}
.support-text h2 {
    margin-bottom: 3px;
    color: var(--text);
    font-size: 1.0625rem;
    font-weight: 700;
}
.support-text p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
}
.support-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 33px;
    height: 33px;
    flex-shrink: 0;
    color: #ffffff;
    background: var(--primary);
    border-radius: 9px;
    font-size: 1.1875rem;
}
/* =========================================================
   FOOTER
   ========================================================= */
.footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 23px 2px 10px;
    margin-top: 20px;
    color: var(--text-muted);
    font-size: 0.8125rem;
}
/* =========================================================
   SCROLLBARS
   ========================================================= */
.sidebar::-webkit-scrollbar {
    width: 5px;
}
.sidebar::-webkit-scrollbar-track {
    background: transparent;
}
.sidebar::-webkit-scrollbar-thumb {
    background: #e2dcef;
    border-radius: 10px;
}
.sidebar::-webkit-scrollbar-thumb:hover {
    background: #c8bfdc;
}
/* =========================================================
   RESPONSIVE: TABLETS
   ========================================================= */
@media (max-width: 1100px) {
    .content-area {
        padding: 28px 25px;
    }
    .topbar {
        padding: 0 22px;
    }
    .hero-decoration {
        width: 190px;
    }
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .popular-articles-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 850px) {
    :root {
        --sidebar-width: 205px;
    }
    .topbar {
        gap: 15px;
    }
    .brand {
        min-width: auto;
    }
    .brand-name {
        width: 95px;
        height: 42px;
    }
    .header-search {
        width: min(350px, 38vw);
    }
    .header-actions {
        min-width: auto;
    }
    .help-hero {
        padding: 30px;
    }
    .hero-decoration {
        width: 150px;
        margin-left: 5px;
    }
    .hero-decoration-card {
        width: 165px;
        padding: 15px;
    }
    .guide-overview-grid {
        grid-template-columns: 1fr;
    }
}
/* =========================================================
   RESPONSIVE: MOBILE
   ========================================================= */
@media (max-width: 650px) {
    :root {
        --header-height: 65px;
    }
    .topbar {
        height: var(--header-height);
        padding: 0 15px;
        gap: 10px;
    }
    .brand {
        gap: 7px;
    }
    .brand-name {
        width: 85px;
        height: 38px;
    }
    .brand-divider {
        font-size: 1.1875rem;
    }
    .brand-section {
        font-size: 0.875rem;
    }
    .header-search {
        display: none;
    }
    .back-link {
        padding: 7px 9px;
        font-size: 0.875rem;
    }
    .main-layout {
        display: block;
    }
    .sidebar {
        position: relative;
        top: auto;
        width: 100%;
        height: auto;
        padding: 12px 14px;
        overflow: visible;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
    .sidebar-heading {
        min-height: 38px;
        padding: 0 10px 0 14px;
        margin-bottom: 10px;
        font-size: 0.9375rem;
    }
    .sidebar-heading::before {
        top: 8px;
        bottom: 8px;
    }
    .sidebar-section-label {
        padding: 0 4px;
        margin-bottom: 7px;
    }
    #category-list {
        flex-direction: row;
        gap: 7px;
        overflow-x: auto;
        padding-bottom: 5px;
    }
    #category-list a,
    #category-list button,
    .category-link {
        width: auto;
        min-width: max-content;
        min-height: 35px;
        padding: 7px 10px;
        font-size: 0.875rem;
    }
    .sidebar-bottom {
        display: none;
    }
    .content-area {
        padding: 21px 15px;
    }
    .help-hero {
        min-height: auto;
        padding: 27px 22px;
    }
    .hero-content {
        max-width: 100%;
    }
    .help-hero h1 {
        font-size: 2rem;
    }
    .help-hero p {
        font-size: 0.9375rem;
    }
    .hero-decoration {
        display: none;
    }
    .hero-search {
        height: 45px;
    }
    .hero-suggestions {
        gap: 6px;
    }
    .hero-suggestions span:first-child {
        width: 100%;
    }
    .home-section {
        margin-top: 27px;
    }
    .section-heading,
    .content-heading {
        align-items: flex-start;
    }
    .section-heading h2,
    .content-heading h2 {
        font-size: 1.375rem;
    }
    .section-link {
        display: none;
    }
    .category-grid,
    .popular-articles-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .category-card {
        min-height: 90px;
    }
    .popular-article,
    .popular-article-card,
    .article-card {
        min-height: 105px;
        padding: 13px 15px;
    }
    .documentation-section {
        margin-top: 29px;
        padding: 21px 15px;
    }
    .guide-overview-grid {
        gap: 10px;
    }
    .article-content {
        padding: 22px 18px;
    }
    .article-content h1 {
        font-size: 1.625rem;
    }
    .support-section {
        gap: 12px;
        padding: 17px;
        margin-top: 28px;
    }
    .footer {
        padding-top: 18px;
    }
}
/* =========================================================
   RESPONSIVE: SMALL MOBILE
   ========================================================= */
@media (max-width: 380px) {
    .brand-name {
        width: 75px;
    }
    .brand-section {
        font-size: 0.8125rem;
    }
    .back-link {
        gap: 4px;
        font-size: 0.8125rem;
    }
    .content-area {
        padding-right: 12px;
        padding-left: 12px;
    }
    .help-hero {
        padding: 23px 17px;
    }
    .help-hero h1 {
        font-size: 1.75rem;
    }
    .hero-search-shortcut {
        display: none;
    }
    .article-content {
        padding: 19px 14px;
    }
}
/* =========================================================
   POPULAR ARTICLES — UPDATED LAYOUT
   ========================================================= */
.popular-article,
.popular-article-card,
.article-card {
    position: relative;
    min-height: 112px;
    padding: 15px 17px;
    text-align: left;
}
.popular-article-main {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}
.popular-article-category {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    width: fit-content;
    padding: 3px 8px;
    margin-bottom: 8px;
    color: var(--primary);
    background: var(--primary-soft);
    border-radius: 5px;
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.5;
}
.popular-article-title {
    margin-bottom: 5px;
    color: var(--text);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.45;
}
.popular-article-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.55;
}
.popular-article-arrow {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    padding-top: 10px;
    margin-top: auto;
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
}
.popular-article-arrow svg {
    width: 15px;
    height: 15px;
    transition: transform 0.2s ease;
}
.popular-article:hover .popular-article-arrow svg {
    transform: translateX(3px);
}
/* =========================================================
   SEARCH RESULTS — SUMMARY
   ========================================================= */
.search-results-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    padding: 15px 18px;
    margin-bottom: 24px;
    background: #f0ecfb;
    border: 1px solid #e3dcf5;
    border-radius: var(--radius-md);
}
.search-results-count {
    color: var(--primary);
    font-size: 1.0625rem;
    font-weight: 700;
}
.search-results-label {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}
.search-results-query {
    padding: 3px 9px;
    color: #6743dc;
    background: #ffffff;
    border: 1px solid var(--primary-border);
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    overflow-wrap: anywhere;
}
/* =========================================================
   SEARCH RESULTS — SECTIONS
   ========================================================= */
.search-results-section,
.search-guides-section,
.search-faqs-section {
    margin-bottom: 27px;
}
.search-results-section h2,
.search-guides-section h2,
.search-faqs-section h2 {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 13px;
    color: var(--text);
    font-size: 1.125rem;
    font-weight: 700;
}
.search-results-section h2::before,
.search-guides-section h2::before,
.search-faqs-section h2::before {
    content: "";
    display: block;
    width: 4px;
    height: 18px;
    background: var(--primary);
    border-radius: 4px;
}
/* =========================================================
   SEARCH RESULTS — GUIDE CARDS
   ========================================================= */
.search-guide-result {
    position: relative;
    padding: 17px 19px;
    margin-bottom: 10px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
    cursor: pointer;
}
.search-guide-result:hover {
    border-color: #cfc0ff;
    box-shadow: var(--shadow-hover);
    transform: translateY(-1px);
}
.search-guide-result .search-result-category {
    display: inline-block;
    margin-bottom: 7px;
    color: var(--primary);
    font-size: 0.8125rem;
    font-weight: 700;
}
.search-guide-result h3 {
    margin-bottom: 6px;
    color: var(--text);
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.5;
}
.search-guide-result p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.65;
}
.search-guide-result .search-result-type {
    display: inline-block;
    padding: 3px 7px;
    margin-left: 6px;
    color: #77718f;
    background: #f0edfa;
    border-radius: 5px;
    font-size: 0.8125rem;
    font-weight: 600;
}
.search-guide-result .search-guide-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 12px;
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 700;
}
/* =========================================================
   SEARCH RESULTS — FAQ CARDS
   ========================================================= */
.search-faq-result {
    padding: 15px 18px;
    margin-bottom: 9px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: border-color 0.2s ease,
        box-shadow 0.2s ease;
}
.search-faq-result:hover {
    border-color: #d5caff;
    box-shadow: var(--shadow-sm);
}
.search-faq-result .search-result-category {
    display: inline-block;
    margin-bottom: 6px;
    color: var(--primary);
    font-size: 0.8125rem;
    font-weight: 700;
}
.search-faq-result h3 {
    margin-bottom: 5px;
    color: var(--text);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.55;
}
.search-faq-result p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.7;
}
/* =========================================================
   SEARCH TERM HIGHLIGHTING
   ========================================================= */
mark {
    padding: 1px 3px;
    color: #5630c7;
    background: #eee7ff;
    border-radius: 3px;
    font-weight: 700;
}
/* =========================================================
   SEARCH RESULTS — MOBILE
   ========================================================= */
@media (max-width: 650px) {
    .search-results-summary {
        align-items: flex-start;
        padding: 13px 14px;
    }
    .search-guide-result,
    .search-faq-result {
        padding: 14px 15px;
    }
    .search-guide-result h3 {
        font-size: 1rem;
    }
    .search-results-section h2,
    .search-guides-section h2,
    .search-faqs-section h2 {
        font-size: 1.125rem;
    }
    .popular-article,
    .popular-article-card,
    .article-card {
        min-height: 105px;
    }
}
/* =========================================================
   SEARCH SUGGESTIONS — COMPACT DROPDOWN
   ========================================================= */
#faq-search-suggestions,
#hero-search-suggestions {
    position: absolute;
    top: calc(100% + 9px);
    left: 0;
    z-index: 200;
    width: 100%;
    max-height: 220px;
    padding: 6px;
    overflow-x: hidden;
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(35, 22, 80, 0.13);
    scrollbar-width: thin;
    scrollbar-color: #d8d0ed transparent;
}
#faq-search-suggestions[hidden],
#hero-search-suggestions[hidden] {
    display: none !important;
}
/* Individual suggestion */
.search-suggestion {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    width: 100%;
    min-height: 54px;
    padding: 9px 11px;
    overflow: hidden;
    color: var(--text);
    background: transparent;
    border: none;
    border-radius: 8px;
    text-align: left;
    transition: background 0.15s ease;
}
.search-suggestion + .search-suggestion {
    margin-top: 2px;
}
.search-suggestion:hover,
.search-suggestion.active {
    background: #f5f1ff;
}
.search-suggestion:focus-visible {
    outline: 2px solid rgba(113, 70, 255, 0.35);
    outline-offset: -2px;
}
/* Suggestion title */
.search-suggestion-title {
    display: block;
    width: 100%;
    overflow: hidden;
    color: var(--text);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* Suggestion category/type */
.search-suggestion-meta {
    display: block;
    max-width: 100%;
    overflow: hidden;
    color: var(--text-muted);
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* Subtle matching-word highlight inside suggestions */
.search-suggestion mark {
    padding: 0;
    color: var(--primary);
    background: transparent;
    font-weight: 700;
}
/* Suggestion dropdown scrollbar */
#faq-search-suggestions::-webkit-scrollbar,
#hero-search-suggestions::-webkit-scrollbar {
    width: 5px;
}
#faq-search-suggestions::-webkit-scrollbar-track,
#hero-search-suggestions::-webkit-scrollbar-track {
    background: transparent;
}
#faq-search-suggestions::-webkit-scrollbar-thumb,
#hero-search-suggestions::-webkit-scrollbar-thumb {
    background: #d8d0ed;
    border-radius: 10px;
}
#faq-search-suggestions::-webkit-scrollbar-thumb:hover,
#hero-search-suggestions::-webkit-scrollbar-thumb:hover {
    background: #b9acd9;
}
/* Clear search buttons */
.search-clear {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    flex-shrink: 0;
    padding: 0;
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-radius: 6px;
    font-size: 1.1875rem;
    line-height: 1;
    transition: color 0.15s ease, background 0.15s ease;
}
.search-clear:hover {
    color: var(--primary);
    background: var(--primary-soft);
}
.search-clear:focus-visible {
    outline: 2px solid rgba(113, 70, 255, 0.35);
    outline-offset: 2px;
}
/* =========================================================
   SEARCH SUGGESTIONS — MOBILE
   ========================================================= */
@media (max-width: 650px) {
    #hero-search-suggestions {
        max-height: 190px;
        border-radius: 10px;
    }
    .search-suggestion {
        min-height: 50px;
        padding: 8px 10px;
    }
    .search-suggestion-title {
        font-size: 0.9375rem;
    }
}
input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
    display: none;
}
.sidebar-heading { text-decoration: none; }

/* The same wordmark and text family used in the Corely app shell. */
.brand-wordmark { display: block; width: clamp(94px, 10vw, 130px); height: auto; }
.topbar { background: white; }
.help-hero { overflow: visible; padding: clamp(22px, 3vw, 44px); }
.hero-content { max-width: 54rem; }
.category-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.category-card {
    grid-column: span 4;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    grid-template-rows: auto 1fr auto;
    gap: 5px 14px;
    padding: 20px;
    text-align: left;
    align-items: start;
}
.category-card > svg { grid-row: 1 / 4; padding: 9px; }
.category-card > :is(h3, p, span) { grid-column: 2; }
.category-card h3 { font-size: 1.125rem; margin: 0; }
.category-card p { font-size: .9375rem; }
.category-card, .category-card:nth-child(even) { background: var(--surface); }
.category-card:hover { border-color: var(--primary); }
.category-card-count { align-self: end; }
.article-body { max-width: 74ch; font-size: 1.0625rem; line-height: 1.75; color: #364155; }
.article-body :is(p, li) { font-size: inherit; }
.documentation-section { background: #f9f9fc; }
:where(button, a, input):focus-visible { outline: 3px solid #6745de; outline-offset: 3px; }
.hero-search input, .header-search input { font-size: 1rem; min-width: 0; }
.hero-suggestions button { min-height: 32px; }
body:has(#article-view:not([hidden])) .help-hero { display: none; }
@media (max-width: 1100px) { .category-card { grid-column: span 6; } }
@media (max-width: 650px) {
    .category-card { grid-column: 1 / -1; padding: 16px; }
    .content-area { padding: 16px; }
    .topbar { gap: 6px; padding: 0 12px; }
    .brand { min-width: 0; }
    .brand-section, .back-link { font-size: .8125rem; }
    #category-list button { min-height: 44px; }
    .article-content { padding: 18px 14px; }
    .documentation-section { padding: 16px 10px; }
    body:has(#article-view:not([hidden])) .help-hero { display: block; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: 0s !important; }
}

.search-result-open { display: inline-flex; align-items: center; gap: 6px; }

.faq-heading { margin: 0; font: inherit; }
.faq-item > .search-result-meta { margin: 14px 18px 0; }
.faq-item:focus-within { outline: 3px solid #7255d8; outline-offset: 2px; }
.faq-question:focus-visible { outline: none; }
.faq-question[aria-expanded="true"] { background: #f6f3ff; color: #49359c; }
.faq-chevron { background: #efebfc; border-radius: 7px; padding: 3px; }
.faq-answer { padding: 16px 18px 20px; border-top: 1px solid var(--border); font-size: 1rem; }
.faq-answer p { max-width: 72ch; }
:is(.guide-overview-card, .category-card, .popular-article, .related-article-link, .search-guide-result, .category-link):focus-visible {
    outline: 3px solid #7255d8; outline-offset: 2px;
}
.screenshot-slot { margin: 28px 0; max-width: 48rem; }
.screenshot-frame {
    aspect-ratio: 16 / 9; display: grid; place-content: center; justify-items: center;
    gap: 10px; background: #f0eef7; color: #594d72; border: 1px dashed #afa5c8; border-radius: 12px;
}
.screenshot-slot figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 9px 2px; color: var(--text-secondary); font-size: .875rem; }
