/* ============================================================================
   Shared chrome for the marketing blog: /blog and every article page.

   Scope note: this file deliberately defines ONLY classes that the blog pages
   do not already style inline. .nav, .nav-logo, .nav-login, .footer* and the
   article body classes stay in each page's own <style> block, so nothing here
   can collide with or override them. Each page links this sheet before its
   inline <style>, so on any tie the page's own rule still wins.

   Custom properties (--blue, --white, --border, ...) come from the including
   page's :root. Literal fallbacks are given so the sheet degrades sanely if it
   is ever linked from a page that does not define them.
   ============================================================================ */

/* ---------- Nav menu (was missing entirely from article pages) ---------- */
.nav-menu {
    display: flex;
    gap: 16px;
}

.nav-menu a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--white, #fff);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-signup {
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    color: var(--white, #fff);
    background: var(--blue, #0ea5e9);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.nav-signup:hover {
    background: var(--blue-dark, #0284c7);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    cursor: pointer;
}

/* ---------- Mobile drawer ---------- */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 9;
    background: rgba(10, 22, 40, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: flex;
    flex-direction: column;
    padding: 100px 24px 32px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
}

.mobile-menu.open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
}

.mobile-menu-links a {
    padding: 15px 4px;
    font-size: 17px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-menu-cta {
    margin-top: 28px;
    padding: 14px;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    /* Was var(--accent-primary) on the index, a token no stylesheet on the site
       defines - so this button rendered with no background at all on mobile. */
    background: var(--blue, #0ea5e9);
    border-radius: 10px;
}

.mobile-menu-cta:hover {
    background: var(--blue-dark, #0284c7);
}

/* ---------- "Keep Reading" block under each article ---------- */
.related {
    max-width: 780px;
    margin: 64px auto 0;
    padding: 0 24px;
}

.related-heading {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray-light, #999);
    margin-bottom: 20px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.related-card {
    display: flex;
    flex-direction: column;
    background: var(--white, #fff);
    border: 1px solid var(--border, #e5e5e5);
    border-radius: 14px;
    padding: 22px 20px;
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.related-card:hover {
    transform: translateY(-3px);
    border-color: var(--blue, #0ea5e9);
    box-shadow: 0 10px 28px rgba(14, 165, 233, 0.1);
}

.related-tag {
    align-self: flex-start;
    background: rgba(14, 165, 233, 0.1);
    color: var(--blue-dark, #0284c7);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 11px;
    border-radius: 100px;
    margin-bottom: 12px;
}

.related-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.01em;
    color: var(--black, #0a0a0a);
    text-wrap: balance;
    margin-bottom: 14px;
}

/* Push the meta line to the card foot so the three cards align. */
.related-meta {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--gray-light, #999);
}

.related-meta-dot {
    width: 3px;
    height: 3px;
    background: var(--gray-light, #999);
    border-radius: 50%;
}

.related-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    font-size: 14px;
    font-weight: 600;
    color: var(--blue-dark, #0284c7);
    text-decoration: none;
}

.related-all:hover {
    gap: 12px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .nav-menu,
    .nav-signup {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }
}

@media (max-width: 900px) {
    .related-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .related-card,
    .nav-signup,
    .mobile-menu {
        transition: none;
    }

    .related-card:hover,
    .nav-signup:hover {
        transform: none;
    }
}
