@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=DM+Sans:wght@400;500;700&display=swap");

:root {
    --help-bg: #f6f7fb;
    --help-ink: #1f2430;
    --help-muted: #5d6678;
    --help-panel: #ffffff;
    --help-line: #dfe4ef;
    --help-accent: #126a6f;
    --help-accent-soft: #e4f4f2;
    --help-warm: #f3b562;
    --help-blue: #4267b2;
}

.help-body {
    margin: 0;
    background: var(--help-bg);
    color: var(--help-ink);
    font-family: "DM Sans", "Helvetica Neue", Arial, sans-serif;
}

.help-shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 32px 24px 72px;
}

.help-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 32px;
    align-items: center;
    padding: 34px 0 28px;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--help-accent);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.help-hero h1,
.guide-section h2 {
    margin: 0;
    font-family: "Space Grotesk", "DM Sans", sans-serif;
    font-weight: 700;
    letter-spacing: 0;
}

.help-hero h1 {
    font-size: clamp(2.3rem, 5vw, 4.5rem);
    line-height: 1;
}

.lead,
.section-heading p {
    color: var(--help-muted);
    line-height: 1.65;
}

.lead {
    max-width: 720px;
    margin: 18px 0 0;
    font-size: 1.08rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.primary-link,
.secondary-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
}

.primary-link {
    background: var(--help-accent);
    color: #ffffff;
}

.primary-link:hover {
    background: #0f5559;
    color: #ffffff;
}

.secondary-link {
    border: 1px solid var(--help-line);
    color: var(--help-ink);
    background: #ffffff;
}

.secondary-link:hover {
    color: var(--help-accent);
    border-color: var(--help-accent);
}

.guide-nav {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 12px 0 18px;
    background: rgba(246, 247, 251, 0.94);
    backdrop-filter: blur(8px);
}

.guide-nav a {
    flex: 0 0 auto;
    padding: 8px 12px;
    border: 1px solid var(--help-line);
    border-radius: 8px;
    color: var(--help-ink);
    background: #ffffff;
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
}

.guide-nav a:hover {
    color: #ffffff;
    background: var(--help-accent);
    border-color: var(--help-accent);
}

.guide-section {
    padding: 42px 0;
    border-top: 1px solid var(--help-line);
}

.section-heading {
    max-width: 760px;
    margin-bottom: 22px;
}

.section-heading h2 {
    font-size: clamp(1.8rem, 3vw, 2.55rem);
}

.section-heading p {
    margin: 12px 0 0;
}

.step-grid,
.term-grid,
.example-grid,
.definition-list,
.callout-row {
    display: grid;
    gap: 16px;
}

.step-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.term-grid,
.definition-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.example-grid,
.callout-row,
.two-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.step-panel,
.term-grid article,
.definition-list > div,
.example-grid article,
.callout,
.legend-panel,
.faq-list details {
    border: 1px solid var(--help-line);
    border-radius: 8px;
    background: var(--help-panel);
}

.step-panel,
.term-grid article,
.definition-list > div,
.example-grid article,
.callout,
.legend-panel {
    padding: 20px;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: var(--help-accent-soft);
    color: var(--help-accent);
    font-weight: 700;
}

.guide-section h3 {
    margin: 0 0 10px;
    font-family: "Space Grotesk", "DM Sans", sans-serif;
    font-size: 1.12rem;
    font-weight: 700;
}

.guide-section p,
.guide-section li {
    color: var(--help-muted);
    line-height: 1.6;
}

.guide-section ul,
.guide-section ol {
    padding-left: 1.2rem;
}

.tip,
.example {
    margin-top: 14px;
    padding: 12px 14px;
    border-left: 4px solid var(--help-accent);
    border-radius: 6px;
    background: var(--help-accent-soft);
}

.example {
    border-left-color: var(--help-warm);
    background: #fff5e6;
}

.content-columns,
.visual-guide {
    display: grid;
    gap: 18px;
}

.content-columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.content-columns.two-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.content-columns > div {
    padding: 20px;
    border: 1px solid var(--help-line);
    border-radius: 8px;
    background: #ffffff;
}

.visual-guide {
    grid-template-columns: 1fr;
    align-items: stretch;
}

.screenshot-placeholder,
.mini-placeholder {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 260px;
    padding: 24px;
    border: 2px dashed #b9c3d6;
    border-radius: 8px;
    background: linear-gradient(135deg, #ffffff 0%, #eef5fb 100%);
    color: var(--help-muted);
    text-align: center;
    overflow: hidden;
}

.screenshot-placeholder {
    position: relative;
    height: 260px;
}

.hero-placeholder {
    height: 340px;
    min-height: 340px;
}

.wide-placeholder {
    margin-top: 20px;
    height: 320px;
    min-height: 320px;
}

.network-placeholder {
    height: 620px;
    min-height: 430px;
}

.screenshot-placeholder > img {
    display: block;
    position: absolute;
    inset: 24px;
    width: calc(100% - 48px);
    height: calc(100% - 48px);
    object-fit: contain;
    border-radius: 6px;
}

.network-placeholder > img {
    top: 0;
    right: auto;
    bottom: 0;
    left: 50%;
    width: 112%;
    height: 100%;
    max-width: none;
    transform: translateX(-50%);
    object-fit: cover;
}

.screenshot-placeholder.image-cover > img {
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.screenshot-placeholder:has(> img) {
    background: #ffffff;
}

.screenshot-placeholder:has(> img) > span,
.screenshot-placeholder:has(> img) > strong,
.screenshot-placeholder:has(> img) > small {
    display: none;
}

.screenshot-placeholder span {
    margin-bottom: 8px;
    color: var(--help-accent);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.screenshot-placeholder strong {
    color: var(--help-ink);
    font-size: 1.15rem;
}

.screenshot-placeholder small {
    max-width: 440px;
    margin-top: 8px;
    line-height: 1.5;
}

.node-legend {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.node-legend li {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.legend-copy {
    display: block;
    min-width: 0;
    line-height: 1.55;
}

.legend-dot {
    width: 16px;
    height: 16px;
    margin-top: 4px;
    border-radius: 50%;
    border: 2px solid #202532;
}

.seed-dot {
    background: #e6194b;
}

.predicted-dot {
    background: #fabed4;
    border-style: dashed;
}

.context-dot {
    background: #d8dde8;
    border-color: #8d97aa;
}

.shared-dot {
    background: linear-gradient(90deg, #e6194b 0 50%, #4267b2 50% 100%);
}

.mini-placeholder {
    min-height: 120px;
    margin-top: 16px;
    font-weight: 700;
}

.faq-list {
    display: grid;
    gap: 12px;
}

.faq-list details {
    padding: 0;
}

.faq-list summary {
    cursor: pointer;
    padding: 16px 18px;
    color: var(--help-ink);
    font-weight: 700;
}

.faq-list details p {
    margin: 0;
    padding: 0 18px 18px;
}

@media (max-width: 920px) {
    .help-hero,
    .step-grid,
    .term-grid,
    .definition-list,
    .content-columns,
    .visual-guide,
    .example-grid,
    .callout-row,
    .two-columns {
        grid-template-columns: 1fr;
    }

    .guide-nav {
        position: static;
    }

    .node-legend {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .help-shell {
        padding: 22px 16px 56px;
    }

    .hero-actions {
        display: grid;
    }

    .screenshot-placeholder {
        min-height: 220px;
    }

    .node-legend {
        grid-template-columns: 1fr;
    }
}
