/**
 * Reaver — Guides hub and articles
 */

.guides-page {
    padding-top: 96px;
    padding-bottom: 0;
}

.guides-kicker {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.guides-hero {
    padding: 2.5rem 0 3rem;
    text-align: center;
}

.guides-hero h1,
.guides-title {
    margin-bottom: 1.25rem;
    font-size: clamp(2.5rem, 8vw, 4.25rem);
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.1;
    color: var(--text-primary);
}

.guides-title::after {
    content: '';
    display: block;
    width: 4.5rem;
    height: 4px;
    margin: 0.85rem auto 0;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--accent-acid-green-text), var(--accent-hot-pink-text));
}

.guides-lede {
    max-width: 38rem;
    margin: 0 auto 1.75rem;
    font-size: 1.125rem;
    line-height: 1.65;
    color: var(--text-secondary);
}

.guides-hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.guides-split-band {
    padding: 0 0 3rem;
}

.guides-split-card {
    background: var(--card-bg);
    border: 1px solid var(--border-medium);
    border-radius: 1.25rem;
    padding: 1.5rem 1.6rem 1.4rem;
    box-shadow: var(--shadow-sm);
    height: 100%;
}

.guides-split-docs {
    border-top: 3px solid var(--accent-acid-green);
}

.guides-split-guides {
    border-top: 3px solid var(--accent-hot-pink);
}

.guides-text-link {
    color: var(--accent-hot-pink-text);
    font-weight: 600;
    text-decoration: none;
}

.guides-text-link:hover {
    color: var(--accent-hot-pink-text-hover);
    text-decoration: underline;
}

.guides-text-link.is-here {
    color: var(--text-secondary);
    font-weight: 600;
    cursor: default;
}

.guides-cta-inner a:not(.btn) {
    color: var(--accent-hot-pink-text);
    text-decoration: underline;
}

.guides-cta-inner a:not(.btn):hover {
    color: var(--accent-hot-pink-text-hover);
}

.guides-catalog {
    padding: 0 0 1rem;
}

.guides-group {
    margin-bottom: 2.75rem;
}

.guides-group-title {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 1.15rem;
}

.guides-card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: var(--card-bg);
    border: 1px solid var(--border-medium);
    border-radius: 1.25rem;
    padding: 1.35rem 1.4rem;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: inherit;
    transition: transform var(--transition-fast), box-shadow var(--transition-base), border-color var(--transition-fast);
}

a.guides-card.is-live {
    border-top: 3px solid var(--accent-acid-green-text);
    cursor: pointer;
}

a.guides-card.is-live:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-acid-green-text);
    color: inherit;
    text-decoration: none;
}

a.guides-card.is-live:focus-visible {
    outline: 3px solid var(--text-primary);
    outline-offset: 3px;
    color: inherit;
    text-decoration: none;
}

.guides-card.is-soon {
    background: color-mix(in srgb, var(--card-bg) 88%, var(--gray-100));
    cursor: default;
}

.guides-card-icon {
    flex: 0 0 2.75rem;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(204, 255, 0, 0.22);
    color: var(--text-primary);
    font-size: 1.15rem;
}

.guides-card.is-soon .guides-card-icon {
    background: var(--gray-100);
    color: var(--text-secondary);
}

.guides-card-body {
    min-width: 0;
    flex: 1;
}

.guides-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 0.35rem;
}

.guides-soon {
    background: rgba(122, 0, 88, 0.12);
    color: var(--accent-hot-pink-text);
    border-radius: 999px;
    padding: 0.15rem 0.55rem;
    letter-spacing: 0.06em;
}

.guides-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 0.4rem;
    color: var(--text-primary);
}

.guides-card-desc {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.55;
}

.guides-card-query {
    margin: 0.65rem 0 0;
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.guides-honest {
    padding: 0.5rem 0 3rem;
}

.guides-honest-card {
    max-width: 46rem;
    margin: 0 auto;
    background: var(--card-bg);
    border: 1px solid var(--border-medium);
    border-left: 4px solid var(--accent-hot-pink);
    border-radius: 1rem;
    padding: 1.5rem 1.6rem;
}

.guides-cta {
    padding: 0 0 4rem;
}

.guides-cta-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem 2rem;
    background: var(--card-bg);
    border: 1px solid var(--border-medium);
    border-radius: 1.25rem;
    padding: 1.6rem 1.75rem;
    box-shadow: var(--shadow-md);
}

.guides-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

/* Article */
.guides-article-page {
    padding-bottom: 4rem;
}

.guide-crumb {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.guide-crumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.guide-crumb li:not(:last-child)::after {
    content: '/';
    margin-left: 0.45rem;
    color: var(--text-secondary);
}

.guide-crumb a {
    color: var(--accent-hot-pink-text);
    text-decoration: underline;
}

.guide-crumb a:hover,
.guide-crumb a:focus-visible {
    color: var(--accent-hot-pink-text-hover);
}

.guide-layout {
    display: block;
}

.guide-layout.has-rail {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2.25rem 2.75rem;
    align-items: start;
}

@media (min-width: 992px) {
    .guide-layout.has-rail {
        grid-template-columns: minmax(0, 1fr) 16.5rem;
    }

    .guide-rail {
        position: sticky;
        top: 6.5rem;
        max-height: calc(100vh - 8rem);
        overflow: auto;
    }
}

.guide-article {
    min-width: 0;
    max-width: none;
}

.guide-rail {
    max-width: none;
}

.guide-toc,
.guide-related {
    margin-bottom: 1.75rem;
}

.guide-toc ol,
.guide-related ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.guide-toc li,
.guide-related li {
    border-top: 1px solid var(--border-medium);
}

.guide-toc a,
.guide-related a {
    display: block;
    padding: 0.55rem 0;
    color: var(--text-primary);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    line-height: 1.4;
}

.guide-toc a:hover,
.guide-related a:hover {
    color: var(--accent-hot-pink-text);
}

.guide-table-wrap {
    overflow: visible;
    margin-bottom: 1.25rem;
}

.guide-table-wrap table {
    margin-bottom: 0;
    min-width: 0;
}

@media (max-width: 767.98px) {
    .guide-table-wrap table,
    .guide-table-wrap tbody {
        display: block;
        width: 100%;
        border: 0;
    }

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

    .guide-table-wrap tr {
        display: block;
        background: var(--card-bg);
        border: 1px solid var(--border-medium);
        border-radius: 1rem;
        padding: 1rem 1.1rem 0.85rem;
        margin: 0 0 0.85rem;
        box-shadow: var(--shadow-sm);
    }

    .guide-table-wrap tr:last-child {
        margin-bottom: 0;
    }

    .guide-table-wrap td {
        display: block;
        width: auto !important;
        border: 0;
        border-top: 1px solid var(--border-medium);
        padding: 0.7rem 0 0.2rem;
        margin-top: 0.65rem;
        text-align: left !important;
        overflow-wrap: anywhere;
    }

    .guide-table-wrap td:first-child {
        border-top: 0;
        margin-top: 0;
        padding-top: 0;
        font-size: 1.05rem;
        font-weight: 700;
        color: var(--text-primary);
        overflow-wrap: break-word;
    }

    .guide-table-wrap td:not(:first-child)::before {
        content: attr(data-label);
        display: block;
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: var(--text-secondary);
        margin-bottom: 0.25rem;
    }
}

.guide-cta-follow {
    margin-top: 2.5rem;
}

.guide-article h1 {
    font-size: clamp(1.85rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 0.85rem;
}

.guide-lede {
    font-size: 1.15rem;
    line-height: 1.65;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.guide-body {
    max-width: none;
}

.guide-more {
    margin-top: 2.5rem;
}

.guide-more-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.guide-more-list li {
    border-top: 1px solid var(--border-medium);
}

.guide-more-list a {
    display: block;
    padding: 0.85rem 0;
    color: var(--text-primary);
    font-weight: 600;
    text-decoration: none;
}

.guide-more-list a:hover {
    color: var(--accent-hot-pink-text);
}

[data-theme="dark"] .guides-split-card,
[data-theme="dark"] .guides-card,
[data-theme="dark"] .guides-honest-card,
[data-theme="dark"] .guides-cta-inner,
[data-theme="dark"] .guide-table-wrap tr {
    background: var(--card-bg);
}

[data-theme="dark"] .guides-card.is-soon {
    background: #1f1f23;
}

[data-theme="dark"] .guides-card.is-soon .guides-card-icon {
    background: #3f3f46;
}

[data-theme="dark"] .guides-soon {
    background: rgba(255, 110, 199, 0.16);
    color: var(--accent-hot-pink-text);
}

[data-theme="dark"] a.guides-card.is-live {
    border-top-color: var(--accent-acid-green);
}

[data-theme="dark"] a.guides-card.is-live:hover {
    border-color: var(--accent-acid-green);
}

[data-theme="dark"] .guides-title::after {
    background: linear-gradient(90deg, var(--accent-acid-green), var(--accent-hot-pink));
}

@media (prefers-reduced-motion: reduce) {
    a.guides-card.is-live:hover {
        transform: none;
    }
}

@media (forced-colors: active) {
    .guides-title,
    .guides-card-title,
    .guides-lede {
        color: CanvasText;
        background: none;
        -webkit-text-fill-color: CanvasText;
    }

    .guides-title::after,
    .guides-split-docs,
    .guides-split-guides,
    a.guides-card.is-live {
        border-color: CanvasText;
        background: CanvasText;
    }

    .guides-card,
    .guides-split-card,
    .guides-honest-card,
    .guides-cta-inner,
    .guide-table-wrap tr {
        border: 1px solid CanvasText;
        background: Canvas;
    }
}

@media (max-width: 767.98px) {
    .guides-hero {
        padding-top: 1.5rem;
        text-align: left;
    }

    .guides-title::after {
        margin-left: 0;
    }

    .guides-lede {
        margin-left: 0;
        font-size: 1.05rem;
    }

    .guides-hero-actions {
        justify-content: flex-start;
    }

    .guides-hero-actions .btn,
    .guides-cta-actions .btn {
        width: 100%;
        text-align: center;
    }

    .guides-card {
        padding: 1.15rem 1.1rem;
    }
}
