.user-guide .layout-shell {
    display: block;
}

.user-guide .content-area {
    width: calc(100vw - 2rem);
    max-width: none;
    margin: 0 auto;
    padding: 2.5rem 0 4rem;
}

.guide-shell {
    --guide-ink: #132238;
    --guide-muted: #516071;
    --guide-line: rgba(19, 34, 56, 0.12);
    --guide-accent: #b94f35;
    --guide-accent-dark: #8e3822;
    --guide-card: rgba(255, 255, 255, 0.92);
    color: var(--guide-ink);
}

.guide-hero,
.guide-detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.9fr);
    gap: 1.5rem;
    align-items: stretch;
    background:
        radial-gradient(circle at top right, rgba(185, 79, 53, 0.18), transparent 28rem),
        linear-gradient(135deg, #fffdf8 0%, #f3ede2 100%);
    border: 1px solid rgba(185, 79, 53, 0.16);
    border-radius: 32px;
    padding: 2rem;
    box-shadow: 0 30px 70px rgba(30, 41, 59, 0.08);
}

.guide-eyebrow,
.guide-card-category {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--guide-accent-dark);
}

.guide-hero h1,
.guide-detail-hero h1 {
    margin: 0.5rem 0 0.85rem;
    font-size: clamp(2.1rem, 4vw, 3.5rem);
    line-height: 0.98;
}

.guide-lede {
    margin: 0;
    max-width: 44rem;
    color: var(--guide-muted);
    font-size: 1.06rem;
    line-height: 1.65;
}

.guide-hero-meta,
.guide-card-meta,
.guide-chip-row,
.guide-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.guide-hero-meta {
    margin-top: 1.25rem;
}

.guide-badge,
.guide-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.45rem 0.85rem;
    font-size: 0.9rem;
}

.guide-badge {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(185, 79, 53, 0.18);
}

.guide-chip {
    background: #f8eadf;
    color: var(--guide-accent-dark);
}

.guide-assistant-card,
.guide-search-panel,
.guide-card,
.guide-detail-card,
.guide-note {
    background: var(--guide-card);
    border: 1px solid var(--guide-line);
    border-radius: 24px;
    box-shadow: 0 24px 50px rgba(19, 34, 56, 0.06);
}

.guide-assistant-card {
    padding: 1.5rem;
}

.guide-assistant-label {
    margin: 0 0 0.5rem;
    color: var(--guide-accent-dark);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.guide-assistant-card h2,
.guide-note h2,
.section-heading h2 {
    margin: 0;
    font-size: 1.35rem;
}

.guide-assistant-copy,
.guide-card-summary,
.guide-detail-copy,
.guide-note p,
.section-heading p,
.guide-search-status,
.guide-breadcrumbs,
.guide-assistant-feedback {
    color: var(--guide-muted);
    line-height: 1.6;
}

.guide-assistant-form,
.guide-search-form {
    display: grid;
    gap: 0.8rem;
}

.guide-assistant-form {
    margin-top: 1rem;
}

.guide-assistant-form textarea,
.guide-search-form input {
    width: 100%;
    border: 1px solid rgba(81, 96, 113, 0.2);
    border-radius: 16px;
    background: #fffdfa;
    padding: 0.9rem 1rem;
    color: var(--guide-ink);
    font: inherit;
}

.guide-assistant-result {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--guide-line);
}

.guide-assistant-result p:first-child {
    margin-top: 0;
}

.guide-assistant-links {
    margin: 0.8rem 0 0;
    padding-left: 1.25rem;
}

.guide-assistant-links li + li {
    margin-top: 0.45rem;
}

.guide-assistant-links a {
    color: var(--guide-accent-dark);
}

.guide-search-panel,
.guide-note {
    margin-top: 1.5rem;
    padding: 1.25rem 1.4rem;
}

.guide-search-form {
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
}

.guide-grid {
    display: grid;
    gap: 1.2rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    margin-top: 1.5rem;
}

.guide-grid-compact {
    margin-top: 1rem;
}

.guide-card,
.guide-detail-card {
    padding: 1.4rem;
}

.guide-card h2,
.guide-card h3,
.guide-detail-card h2 {
    margin: 0.4rem 0 0.7rem;
}

.guide-card h2 a,
.guide-card h3 a,
.guide-breadcrumbs a {
    color: var(--guide-ink);
    text-decoration: none;
}

.guide-card h2 a:hover,
.guide-card h3 a:hover,
.guide-breadcrumbs a:hover {
    color: var(--guide-accent-dark);
}

.guide-card-meta {
    margin: 1rem 0 0.9rem;
    font-size: 0.92rem;
    color: var(--guide-muted);
}

.guide-card-actions {
    margin-top: 1.15rem;
}

.guide-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.guide-detail-shell .guide-detail-hero {
    margin-bottom: 1.5rem;
}

.guide-detail-actions {
    display: grid;
    gap: 0.75rem;
    align-content: start;
    justify-items: start;
}

.guide-detail-sections {
    display: grid;
    gap: 1rem;
}

.guide-tip-box {
    margin-top: 1rem;
    padding: 0.95rem 1rem;
    border-left: 4px solid var(--guide-accent);
    background: #fff6ef;
    border-radius: 16px;
}

.guide-tip-box p {
    margin: 0;
}

.guide-related {
    margin-top: 2rem;
}

.guide-empty-state {
    padding: 2rem;
    border-radius: 24px;
    background: #fffdfa;
    border: 1px dashed rgba(81, 96, 113, 0.3);
}

.step-list {
    margin: 0;
    padding-left: 1.2rem;
    display: grid;
    gap: 0.7rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 900px) {
    .guide-hero,
    .guide-detail-hero {
        grid-template-columns: 1fr;
    }

    .guide-search-form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .user-guide .content-area {
        width: calc(100vw - 1rem);
        padding: 1.5rem 0 3rem;
    }

    .guide-hero,
    .guide-detail-hero,
    .guide-assistant-card,
    .guide-search-panel,
    .guide-card,
    .guide-detail-card,
    .guide-note {
        border-radius: 20px;
    }

    .guide-hero,
    .guide-detail-hero {
        padding: 1.35rem;
    }
}
