.hc-public {
    max-width: 1040px;
    margin: 0 auto;
    padding: 32px 20px calc(88px + var(--safe-bottom, 0px));
}

.hc-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent, #6ea8fe);
}

.hc-section-heading {
    display: grid;
    gap: 12px;
    margin-bottom: 24px;
}

.hc-section-heading h2 {
    margin: 0;
    font-size: clamp(1.9rem, 4vw, 2.6rem);
}

.hc-section-heading p {
    margin: 0;
    max-width: 760px;
    color: var(--text-muted, rgba(255, 255, 255, 0.72));
    line-height: 1.65;
}

.hc-hero {
    display: grid;
    gap: 20px;
    padding: 32px;
    margin-bottom: 32px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.025);
}

.hc-hero h1 {
    margin: 0;
    max-width: 760px;
    font-size: clamp(2.1rem, 5vw, 3.6rem);
    line-height: 1.02;
}

.hc-hero h2 {
    margin: 0;
    font-size: 1.1rem;
}

.hc-hero p {
    margin: 0;
    max-width: 760px;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text-muted, rgba(255, 255, 255, 0.74));
}

.hc-hero--home {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    padding: 12px 0 28px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    text-align: center;
    justify-items: center;
}

.hc-inline-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hc-inline-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.84rem;
    color: var(--text-muted, rgba(255, 255, 255, 0.72));
}

.hc-search-wrap {
    position: relative;
    width: 100%;
    max-width: 760px;
}

.hc-search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    opacity: 0.55;
    pointer-events: none;
}

.hc-search {
    width: 100%;
    min-height: 58px;
    padding: 16px 18px 16px 54px;
    border-radius: 16px;
    font-size: 1rem;
    font-family: inherit;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.14);
    color: inherit;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hc-search:focus {
    border-color: rgba(56, 189, 248, 0.65);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.12);
}

.hc-search-results {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: grid;
    gap: 8px;
    padding: 10px;
    background: rgba(8, 15, 28, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.26);
    max-height: min(420px, calc(var(--viewport-height, 100dvh) - 180px));
    overflow-y: auto;
    z-index: 50;
}

.hc-search-results[hidden] {
    display: none;
}

.hc-search-result {
    display: grid;
    gap: 8px;
    padding: 14px 16px;
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
    border: 1px solid transparent;
}

.hc-search-result:hover,
.hc-search-result.is-active {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(56, 189, 248, 0.18);
    transform: translateY(-1px);
}

.hc-search-result-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.hc-search-result-title {
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.4;
}

.hc-search-result-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.12);
    color: #7dd3fc;
    font-size: 0.74rem;
    font-weight: 700;
    white-space: nowrap;
}

.hc-search-result-summary {
    color: var(--text-muted, rgba(255, 255, 255, 0.7));
    font-size: 0.9rem;
    line-height: 1.6;
}

.hc-search-result-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted, rgba(255, 255, 255, 0.58));
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.hc-search-status {
    padding: 16px;
    text-align: center;
    color: var(--text-muted, rgba(255, 255, 255, 0.64));
    font-size: 0.9rem;
}

.hc-overview {
    display: grid;
    gap: 20px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 36px;
}

.hc-category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.hc-category-panel {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px;
    border-radius: 18px;
    text-decoration: none;
    color: inherit;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: border-color 0.16s ease, background 0.16s ease;
}

.hc-category-panel:hover {
    border-color: rgba(56, 189, 248, 0.26);
    background: rgba(255, 255, 255, 0.045);
}

.hc-category-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #7dd3fc;
    font-size: 24px;
    flex-shrink: 0;
}

.hc-category-panel-copy {
    display: block;
}

.hc-category-panel-copy h3 {
    margin: 0;
    font-size: 1.1rem;
}

.hc-content {
    display: grid;
    gap: 20px;
}

.hc-empty {
    margin: 0;
    padding: 24px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted, rgba(255, 255, 255, 0.68));
}

.hc-category {
    display: grid;
    gap: 18px;
}

.hc-category-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.hc-category-title {
    margin: 0;
    font-size: 1.4rem;
}

.hc-category-meta {
    margin: 6px 0 0;
    color: var(--text-muted, rgba(255, 255, 255, 0.66));
    font-size: 0.92rem;
}

.hc-category-link {
    color: var(--accent, #7dd3fc);
    text-decoration: none;
    font-weight: 700;
}

.hc-category-link:hover {
    text-decoration: underline;
}

.hc-category-list {
    max-width: 860px;
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hc-category-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
    color: inherit;
    transition: color 0.16s ease, border-color 0.16s ease;
}

.hc-category-row:hover {
    border-color: rgba(56, 189, 248, 0.22);
}

.hc-category-row-main {
    min-width: 0;
}

.hc-category-row-main h2 {
    margin: 0 0 8px;
    font-size: 1.2rem;
    line-height: 1.35;
}

.hc-category-row-main p {
    margin: 0;
    max-width: 720px;
    color: var(--text-muted, rgba(255, 255, 255, 0.68));
    line-height: 1.7;
}

.hc-category-row-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    color: var(--accent, #7dd3fc);
    font-size: 0.9rem;
    font-weight: 700;
}

.hc-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.hc-article-card {
    display: grid;
    gap: 10px;
    align-content: start;
    min-height: 100%;
    padding: 20px;
    border-radius: 18px;
    text-decoration: none;
    color: inherit;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: border-color 0.16s ease, background 0.16s ease;
}

.hc-article-card:hover {
    border-color: rgba(56, 189, 248, 0.26);
    background: rgba(255, 255, 255, 0.04);
}

.hc-article-card h3 {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.45;
}

.hc-article-card p {
    margin: 0;
    color: var(--text-muted, rgba(255, 255, 255, 0.68));
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hc-read-more {
    color: var(--accent, #7dd3fc);
    font-size: 0.88rem;
    font-weight: 700;
}

.hc-breadcrumb,
.hc-article,
.hc-support-cta {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hc-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
    font-size: 0.85rem;
}

.hc-breadcrumb a {
    color: var(--accent, #7dd3fc);
    text-decoration: none;
}

.hc-breadcrumb a:hover {
    text-decoration: underline;
}

.hc-breadcrumb-sep {
    opacity: 0.4;
}

.hc-article {
    padding: 8px 0 0;
}

.hc-article-header {
    display: grid;
    gap: 14px;
    margin-bottom: 36px;
}

.hc-article-header h1 {
    margin: 0;
    max-width: 780px;
    font-size: clamp(2.1rem, 4vw, 3.4rem);
    line-height: 1.08;
}

.hc-article-summary {
    max-width: 760px;
    font-size: 1.12rem;
    color: var(--text-muted, rgba(255, 255, 255, 0.72));
    line-height: 1.8;
}

.hc-article-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.hc-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 11px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    background: rgba(14, 165, 233, 0.14);
    color: #7dd3fc;
}

.hc-meta-date {
    color: var(--text-muted, rgba(255, 255, 255, 0.58));
    font-size: 0.84rem;
}

.hc-article-body {
    max-width: 760px;
    font-size: 1.06rem;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.88);
}

.hc-article-body h1,
.hc-article-body h2,
.hc-article-body h3,
.hc-article-body h4 {
    margin: 42px 0 16px;
    line-height: 1.2;
    color: #fff;
}

.hc-article-body h2 {
    font-size: 1.95rem;
}

.hc-article-body h3 {
    font-size: 1.45rem;
}

.hc-article-body p,
.hc-article-body ul,
.hc-article-body ol,
.hc-article-body table,
.hc-article-body blockquote,
.hc-article-body pre {
    margin: 20px 0;
}

.hc-article-body ul,
.hc-article-body ol {
    padding-left: 28px;
}

.hc-article-body li {
    margin-bottom: 10px;
}

.hc-article-body img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    margin: 28px auto;
}

.hc-article-body a {
    color: var(--accent, #7dd3fc);
}

.hc-article-body table {
    width: 100%;
    display: block;
    overflow-x: auto;
    border-collapse: collapse;
}

.hc-article-body th,
.hc-article-body td {
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
}

.hc-article-body th {
    background: rgba(255, 255, 255, 0.04);
}

.hc-article-body blockquote {
    margin: 28px 0;
    padding: 18px 22px;
    border-left: 3px solid #38bdf8;
    background: rgba(14, 165, 233, 0.08);
    border-radius: 0 16px 16px 0;
}

.hc-article-body pre {
    padding: 18px;
    overflow-x: auto;
    border-radius: 16px;
    background: rgba(2, 6, 23, 0.72);
}

.hc-article-body code {
    font-family: "SF Mono", "Fira Code", monospace;
}

.hc-article-footer {
    margin-top: 34px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hc-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent, #7dd3fc);
    text-decoration: none;
    font-weight: 700;
}

.hc-back-link:hover {
    text-decoration: underline;
}

.hc-support-cta {
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.hc-feedback-container {
    display: grid;
    justify-items: center;
    gap: 12px;
}

.hc-feedback-container p {
    margin: 0;
    color: var(--text-muted, rgba(255, 255, 255, 0.72));
}

.hc-feedback-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hc-vote-btn {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: inherit;
    cursor: pointer;
    transition: transform 0.16s ease, border-color 0.16s ease, color 0.16s ease, background 0.16s ease;
}

.hc-vote-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(56, 189, 248, 0.3);
    color: #7dd3fc;
    background: rgba(255, 255, 255, 0.03);
}

@media (max-width: 768px) {
    .hc-public {
        padding: 24px 16px calc(72px + var(--safe-bottom, 0px));
    }

    .hc-hero {
        padding: 24px;
        border-radius: 24px;
    }

    .hc-hero h1 {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .hc-search {
        min-height: 56px;
        padding: 14px 16px 14px 48px;
    }

    .hc-category-row {
        display: grid;
        gap: 12px;
        padding: 20px 0;
    }

    .hc-category-grid,
    .hc-articles-grid {
        grid-template-columns: 1fr;
    }

    .hc-category-header,
    .hc-search-result-head {
        align-items: start;
    }

    .hc-feedback-actions {
        width: 100%;
    }

    .hc-vote-btn {
        flex: 1 1 0;
    }
}

@media (max-width: 1100px) {
    .hc-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .hc-public {
        padding: 20px 12px calc(56px + var(--safe-bottom, 0px));
    }

    .hc-hero,
    .hc-category-panel,
    .hc-article-card {
        padding: 18px;
    }

    .hc-search-results {
        padding: 8px;
        border-radius: 18px;
    }

    .hc-search-result-badge {
        white-space: normal;
    }
}

html[data-layout="tablet"][data-orientation="portrait"] .hc-public {
    padding-inline: 18px;
}

html[data-layout="tablet"][data-orientation="portrait"] .hc-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

html[data-layout="tablet"][data-orientation="portrait"] .hc-search-result-meta {
    flex-wrap: wrap;
}

html[data-layout="tablet"][data-orientation="portrait"] .hc-feedback-actions {
    width: 100%;
}

html[data-layout="tablet"][data-orientation="portrait"] .hc-vote-btn {
    flex: 1 1 0;
}

html[data-layout="phone"] .hc-hero,
html[data-layout="phone"] .hc-category-panel,
html[data-layout="phone"] .hc-article-card,
html[data-layout="phone"] .hc-empty {
    padding: 20px;
    border-radius: 20px;
}

html[data-layout="phone"] .hc-category-grid,
html[data-layout="phone"] .hc-articles-grid {
    gap: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

html[data-layout="phone"] .hc-category-panel,
html[data-layout="phone"] .hc-article-card {
    padding: 16px 0;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0;
    background: transparent;
}

html[data-layout="phone"] .hc-category-panel:hover,
html[data-layout="phone"] .hc-article-card:hover {
    background: transparent;
}

html[data-layout="phone"] .hc-search-result-meta {
    flex-wrap: wrap;
}

html[data-height="short"] .hc-hero {
    gap: 16px;
    margin-bottom: 24px;
}

html[data-theme="light"] .hc-public {
    --accent: #0369a1;
    --text-muted: rgba(17, 24, 39, 0.55);
    color: #111827;
}

html[data-theme="light"] .hc-kicker,
html[data-theme="light"] .hc-hero,
html[data-theme="light"] .hc-inline-pill,
html[data-theme="light"] .hc-empty,
html[data-theme="light"] .hc-article-card {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.05);
}

html[data-theme="light"] .hc-search {
    border-color: rgba(0, 0, 0, 0.1);
    background: rgba(0, 0, 0, 0.03);
}

html[data-theme="light"] .hc-search:focus {
    border-color: rgba(14, 165, 233, 0.18);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
}

html[data-theme="light"] .hc-search-results {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] .hc-search-result:hover,
html[data-theme="light"] .hc-search-result.is-active,
html[data-theme="light"] .hc-category-panel:hover,
html[data-theme="light"] .hc-article-card:hover,
html[data-theme="light"] .hc-vote-btn:hover {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(14, 165, 233, 0.18);
}

html[data-theme="light"] .hc-search-result-badge,
html[data-theme="light"] .hc-chip {
    background: rgba(14, 165, 233, 0.1);
    color: #0369a1;
}

html[data-theme="light"] .hc-overview,
html[data-theme="light"] .hc-category-list,
html[data-theme="light"] .hc-article-footer,
html[data-theme="light"] .hc-support-cta,
html[data-theme="light"] .hc-category-panel,
html[data-theme="light"] .hc-category-row,
html[data-theme="light"] .hc-vote-btn {
    border-color: rgba(0, 0, 0, 0.05);
}

html[data-theme="light"] .hc-article-body {
    color: rgba(17, 24, 39, 0.88);
}

html[data-theme="light"] .hc-article-body h1,
html[data-theme="light"] .hc-article-body h2,
html[data-theme="light"] .hc-article-body h3,
html[data-theme="light"] .hc-article-body h4 {
    color: #111827;
}

html[data-theme="light"] .hc-article-body th,
html[data-theme="light"] .hc-article-body td {
    border-color: rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] .hc-article-body th {
    background: rgba(0, 0, 0, 0.03);
}

html[data-theme="light"] .hc-article-body blockquote {
    border-left-color: #0284c7;
    background: rgba(14, 165, 233, 0.06);
}

html[data-theme="light"] .hc-article-body pre {
    background: #f8faff;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

html[data-theme="light"][data-layout="phone"] .hc-category-grid,
html[data-theme="light"][data-layout="phone"] .hc-articles-grid {
    border-top-color: rgba(0, 0, 0, 0.05);
}

html[data-theme="light"][data-layout="phone"] .hc-category-panel,
html[data-theme="light"][data-layout="phone"] .hc-article-card {
    background: transparent;
    border-color: rgba(0, 0, 0, 0.05);
}

html[data-theme="light"][data-layout="phone"] .hc-category-panel:hover,
html[data-theme="light"][data-layout="phone"] .hc-article-card:hover {
    background: transparent;
}
