/* Guides hub + article pages. Uses the TidyBox design system from
   _brand.css / landing.css: white cards, 24px radius, --tb-* accents. */

.tb-guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.tb-guide-card {
    background: #fff;
    border: 1px solid var(--landing-border, #e3e8ef);
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 6px 24px rgba(35, 95, 103, 0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tb-guide-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(35, 95, 103, 0.1);
}

.tb-guide-card__cover {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.tb-guide-card__body {
    padding: 20px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.tb-guide-card__title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--tb-dark, #1d3b3f);
    line-height: 1.35;
}

.tb-guide-card__title a {
    color: inherit;
    text-decoration: none;
}

.tb-guide-card__desc {
    color: var(--tb-muted, #5b6b6d);
    font-size: 0.95rem;
    line-height: 1.55;
    flex: 1;
}

.tb-guide-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--tb-muted, #5b6b6d);
}

.tb-guide-card__more {
    color: var(--tb-primary, #235F67);
    font-weight: 600;
    text-decoration: none;
}

.tb-guides-existing {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.tb-guide-card--compact {
    padding: 20px 24px;
    text-decoration: none;
}

/* Article page */

.tb-article-wrap {
    max-width: 760px;
}

.tb-article__breadcrumb {
    margin-bottom: 18px;
    font-size: 0.9rem;
}

.tb-article__breadcrumb a {
    color: var(--tb-primary, #235F67);
    text-decoration: none;
    font-weight: 600;
}

.tb-article {
    background: #fff;
    border: 1px solid var(--landing-border, #e3e8ef);
    border-radius: 24px;
    box-shadow: 0 6px 24px rgba(35, 95, 103, 0.06);
    padding: 36px 40px 44px;
}

.tb-article__title {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--tb-dark, #1d3b3f);
    line-height: 1.25;
    margin-bottom: 8px;
}

.tb-article__meta {
    color: var(--tb-muted, #5b6b6d);
    font-size: 0.85rem;
    margin-bottom: 18px;
}

.tb-article__fallback {
    background: #fff8e6;
    border: 1px solid #f0d9a0;
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 0.88rem;
    color: #7a5c12;
    margin-bottom: 18px;
}

.tb-article__cover {
    width: 100%;
    border-radius: 16px;
    margin-bottom: 24px;
}

.tb-article__body {
    color: var(--tb-dark, #223);
    line-height: 1.7;
    font-size: 1.02rem;
}

.tb-article__body h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--tb-dark, #1d3b3f);
    margin: 28px 0 10px;
}

.tb-article__body h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--tb-dark, #1d3b3f);
    margin: 22px 0 8px;
}

.tb-article__body p {
    margin: 0 0 14px;
}

/* Tailwind preflight resets list-style: none — restore markers explicitly. */
.tb-article__body ul,
.tb-article__body ol {
    margin: 0 0 14px;
    padding-left: 26px;
}

.tb-article__body ul {
    list-style: disc outside;
}

.tb-article__body ol {
    list-style: decimal outside;
}

.tb-article__body li {
    margin-bottom: 6px;
}

.tb-article__body a {
    color: var(--tb-primary, #235F67);
}

.tb-article__body img,
.tb-article__body video {
    max-width: 100%;
    border-radius: 16px;
    margin: 10px 0 18px;
}

.tb-article__body video {
    width: 100%;
    background: #000;
}

.tb-article__body blockquote {
    border-left: 3px solid var(--tb-primary, #235F67);
    margin: 0 0 14px;
    padding: 6px 18px;
    color: var(--tb-muted, #5b6b6d);
    background: rgba(35, 95, 103, 0.04);
    border-radius: 0 12px 12px 0;
}

.tb-article__body hr {
    border: 0;
    border-top: 1px solid var(--landing-border, #e3e8ef);
    margin: 24px 0;
}

.tb-article__body code {
    background: rgba(35, 95, 103, 0.08);
    border-radius: 6px;
    padding: 1px 6px;
    font-size: 0.92em;
}

@media (max-width: 640px) {
    .tb-article {
        padding: 24px 20px 30px;
    }

    .tb-article__title {
        font-size: 1.5rem;
    }
}
