/* Editorial layout only. Tokens and visual components come from the site. */
.guide .guide-stack {
    display: grid;
    gap: 24px;
    min-width: 0;
}

.guide .guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 24px;
    min-width: 0;
}

.guide .guide-prose {
    color: var(--looply-muted);
    line-height: 1.65;
    min-width: 0;
    overflow-wrap: break-word;
}

.guide .guide-prose > * + * {
    margin-top: 16px;
}

.guide .guide-prose h1,
.guide .guide-prose h2,
.guide .guide-prose h3 {
    color: var(--looply-text);
}

.guide .guide-prose h2,
.guide .guide-prose h3 {
    line-height: 1.2;
}

.guide .guide-prose h2 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    letter-spacing: -0.02em;
}

.guide .guide-prose h3 {
    font-size: 1.3rem;
}

.guide .guide-prose ul,
.guide .guide-prose ol {
    padding-left: 24px;
}

.guide .guide-prose li + li {
    margin-top: 8px;
}

.guide a:not(.btn) {
    color: var(--looply-primary-strong);
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
}

.guide .guide-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    color: var(--looply-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-top: 24px;
}

.guide .guide-table {
    max-width: 100%;
    overflow-x: auto;
    border: 1px solid var(--looply-border);
    border-radius: var(--looply-radius-md);
}

.guide .guide-table table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    text-align: left;
}

.guide .guide-table caption,
.guide .guide-table th,
.guide .guide-table td {
    padding: 16px;
    vertical-align: top;
}

.guide .guide-table caption,
.guide .guide-table th {
    color: var(--looply-text);
    background: var(--looply-surface-alt);
}

.guide .guide-table td {
    border-top: 1px solid var(--looply-border);
}

.guide .guide-card {
    min-width: 0;
    gap: 16px;
}

.guide .guide-card h3 {
    font-size: 1.3rem;
    line-height: 1.2;
}

.guide .guide-card p {
    color: var(--looply-muted);
    line-height: 1.65;
}

.guide .guide-card > a {
    margin-top: auto;
}

/* Keep the reused CTA heading fully readable at narrow guide widths. */
.guide .banner-wrapper h2 {
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
    line-clamp: unset;
}
