:root {
    --ink: #2e3335;
    --paper: #f8f9fa;
    --warm: #f2f4f5;
    --accent: #5f5f5f;
    --accent-soft: #ffdbcf;
    --muted: #5a6062;
    --border: rgba(174, 179, 181, 0.18);
    --edf-surface: #f8f9fa;
    --edf-surface-low: #f2f4f5;
    --edf-surface-high: #e5e9eb;
    --edf-primary: #5f5f5f;
    --edf-primary-dim: #535353;
    --edf-on-primary: #fbf8f8;
    --edf-on-surface: #2e3335;
    --edf-on-surface-variant: #5a6062;
    --edf-outline: #aeb3b5;
    --edf-outline-soft: rgba(174, 179, 181, 0.18);
    --edf-secondary-container: #ffdbcf;
    --edf-on-secondary-container: #734737;
    --edf-tertiary-container: #b4e6e8;
    --edf-on-tertiary-container: #245658;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--edf-surface);
}

body {
    margin: 0 !important;
    background: var(--edf-surface) !important;
    color: var(--edf-on-surface) !important;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    font-size: 16px !important;
    line-height: 1.625 !important;
    letter-spacing: 0 !important;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
.headline,
.article-card h2,
.article-tag,
.article-meta,
.meta,
.breadcrumb,
.page-label {
    font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    letter-spacing: 0 !important;
}

h1,
h2,
h3,
h4 {
    color: var(--edf-on-surface) !important;
    font-weight: 700 !important;
}

a {
    color: var(--edf-primary);
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

body > nav:not(.breadcrumb),
.edf-nav {
    position: sticky !important;
    top: 0 !important;
    left: auto !important;
    right: auto !important;
    z-index: 50 !important;
    width: 100% !important;
    background: var(--edf-surface) !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

body > nav:not(.breadcrumb) .nav-inner,
.edf-nav-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    max-width: 80rem !important;
    height: auto !important;
    margin: 0 auto !important;
    padding: 1rem 2rem !important;
}

body > nav:not(.breadcrumb) .logo,
.edf-nav-brand {
    color: var(--edf-primary) !important;
    font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    letter-spacing: 0 !important;
    text-decoration: none !important;
    white-space: nowrap;
}

body > nav:not(.breadcrumb) .logo span,
.edf-nav-brand span {
    color: inherit !important;
    font-weight: inherit !important;
}

body > nav:not(.breadcrumb) .nav-links,
.edf-nav-links {
    display: flex !important;
    align-items: center !important;
    gap: 1.5rem !important;
}

body > nav:not(.breadcrumb) .nav-links a:not(.btn),
.edf-nav-link {
    color: rgba(95, 95, 95, 0.72) !important;
    display: inline-flex !important;
    align-items: center !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    letter-spacing: 0 !important;
    text-decoration: none !important;
    transition: color 160ms ease;
    white-space: nowrap;
}

body > nav:not(.breadcrumb) .nav-links a:not(.btn):hover,
body > nav:not(.breadcrumb) .nav-links a:not(.btn).active,
.edf-nav-link:hover,
.edf-nav-link.active {
    color: var(--edf-primary) !important;
}

body > nav:not(.breadcrumb) .nav-links .btn,
.edf-nav-cta {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 2.5rem !important;
    padding: 0.5rem 1.5rem !important;
    border: 0 !important;
    border-radius: 2px !important;
    background: var(--edf-primary) !important;
    color: var(--edf-on-primary) !important;
    font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    letter-spacing: 0 !important;
    text-decoration: none !important;
    transition: background-color 160ms ease, opacity 160ms ease;
    white-space: nowrap;
}

body > nav:not(.breadcrumb) .nav-links .btn:hover,
.edf-nav-cta:hover {
    background: var(--edf-primary-dim) !important;
}

.container {
    width: 100% !important;
    max-width: 80rem !important;
    margin: 0 auto !important;
    padding-inline: 2rem !important;
}

.blog-header {
    padding: 6rem 0 4rem !important;
    background: var(--edf-surface) !important;
    text-align: left !important;
}

.blog-header .container {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.42fr) !important;
    gap: 4rem !important;
    align-items: end !important;
}

.blog-header h1 {
    max-width: 48rem !important;
    margin: 0 !important;
    font-size: 4.5rem !important;
    line-height: 1.08 !important;
}

.blog-header p {
    max-width: 30rem !important;
    margin: 0 !important;
    color: var(--edf-on-surface-variant) !important;
    font-size: 1.25rem !important;
    line-height: 1.6 !important;
}

.blog-grid {
    padding: 2rem 0 7rem !important;
    background: var(--edf-surface) !important;
}

.articles {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 1px !important;
    overflow: hidden !important;
    border: 1px solid var(--edf-outline-soft) !important;
    background: var(--edf-outline-soft) !important;
}

.article-card {
    min-width: 0 !important;
    min-height: 18rem !important;
    margin: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: var(--edf-surface) !important;
    box-shadow: none !important;
    transition: background-color 160ms ease, transform 160ms ease !important;
}

.article-card:nth-child(6n + 1) {
    background: var(--edf-secondary-container) !important;
}

.article-card:nth-child(6n + 2) {
    background: var(--edf-tertiary-container) !important;
}

.article-card:nth-child(6n + 4),
.article-card:nth-child(6n + 5) {
    background: var(--edf-surface-low) !important;
}

.article-card:first-child {
    grid-column: span 2 !important;
    min-height: 22rem !important;
}

.article-card:hover {
    transform: translateY(-2px) !important;
    box-shadow: none !important;
}

.article-card a {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    padding: 2rem !important;
    color: inherit !important;
    text-decoration: none !important;
}

.article-card h2 {
    margin: 0 0 1rem !important;
    color: var(--edf-on-surface) !important;
    font-size: 1.45rem !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
}

.article-card:first-child h2 {
    max-width: 40rem !important;
    font-size: 2.5rem !important;
    line-height: 1.12 !important;
}

.article-card p {
    margin: 0 !important;
    color: rgba(46, 51, 53, 0.78) !important;
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
}

.article-meta,
.meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem !important;
    margin: 0 0 1rem !important;
    color: rgba(90, 96, 98, 0.72) !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
}

.article-tag {
    display: inline-flex !important;
    align-items: center !important;
    width: fit-content !important;
    margin: 0 0 1rem !important;
    padding: 0.35rem 0.6rem !important;
    border-radius: 2px !important;
    background: rgba(95, 95, 95, 0.1) !important;
    color: var(--edf-primary) !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
}

body > .breadcrumb,
body > main > .breadcrumb,
article .breadcrumb,
.article-shell > .breadcrumb {
    display: block !important;
    max-width: 56rem !important;
    margin: 0 auto !important;
    padding: 3rem 2rem 1.25rem !important;
    color: rgba(90, 96, 98, 0.72) !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    line-height: 1.45 !important;
    background: transparent !important;
}

.breadcrumb a {
    color: rgba(90, 96, 98, 0.72) !important;
    text-decoration: none !important;
}

.breadcrumb a:hover {
    color: var(--edf-primary) !important;
}

.breadcrumb-sep,
.breadcrumb span {
    color: rgba(90, 96, 98, 0.55) !important;
}

body > article,
body > main > article,
.article-shell {
    width: 100% !important;
    max-width: 56rem !important;
    margin: 0 auto !important;
    padding: 0 2rem 6rem !important;
}

.article-header {
    margin: 0 0 2.5rem !important;
    padding: 0 !important;
}

body > article h1,
body > main > article h1,
.article-header h1 {
    max-width: 54rem !important;
    margin: 0 0 1.5rem !important;
    color: var(--edf-on-surface) !important;
    font-size: 3.75rem !important;
    font-weight: 700 !important;
    line-height: 1.08 !important;
}

body > article h2,
body > main > article h2,
.article-content h2 {
    margin: 4rem 0 1.25rem !important;
    color: var(--edf-on-surface) !important;
    font-size: 2.15rem !important;
    font-weight: 700 !important;
    line-height: 1.18 !important;
}

body > article h3,
body > main > article h3,
.article-content h3 {
    margin: 2rem 0 0.85rem !important;
    color: var(--edf-on-surface) !important;
    font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    font-size: 1.35rem !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
}

body > article p,
body > main > article p,
.article-content p,
.article-intro p {
    color: rgba(46, 51, 53, 0.84) !important;
    font-size: 1.05rem !important;
    line-height: 1.75 !important;
}

body > article li,
body > main > article li,
.article-content li {
    color: rgba(46, 51, 53, 0.84) !important;
    font-size: 1.03rem !important;
    line-height: 1.65 !important;
}

body > article ul,
body > article ol,
body > main > article ul,
body > main > article ol,
.article-content ul,
.article-content ol {
    padding-left: 1.35rem !important;
}

.tldr,
.toc,
.quick-answer,
.llm-summary,
.key-takeaways,
.info-box,
.callout,
.bottom-line-box,
.opportunities-box,
.constraints-box,
.annotation-box,
.article-intro,
.faq-item {
    margin: 2rem 0 !important;
    padding: 1.5rem !important;
    border: 1px solid var(--edf-outline-soft) !important;
    border-left: 0.25rem solid var(--edf-tertiary-container) !important;
    border-radius: 2px !important;
    background: var(--edf-surface-low) !important;
    color: var(--edf-on-surface) !important;
}

.tldr h2,
.tldr h3,
.toc h2,
.toc h3,
.quick-answer h2,
.quick-answer h3,
.llm-summary h2,
.llm-summary h3,
.key-takeaways h2,
.key-takeaways h3,
.info-box h2,
.info-box h3,
.callout h2,
.callout h3 {
    margin-top: 0 !important;
}

.toc ul {
    list-style: none !important;
    padding-left: 0 !important;
}

.toc a {
    color: var(--edf-primary) !important;
    text-decoration: none !important;
}

.toc a:hover {
    text-decoration: underline !important;
}

table,
.comparison-table,
.data-table,
.gut-check-table {
    width: 100% !important;
    margin: 2rem 0 !important;
    border-collapse: collapse !important;
    border: 1px solid var(--edf-outline-soft) !important;
    background: var(--edf-surface) !important;
    font-size: 0.95rem !important;
}

th,
td {
    padding: 0.9rem 1rem !important;
    border: 1px solid var(--edf-outline-soft) !important;
    color: rgba(46, 51, 53, 0.84) !important;
    vertical-align: top !important;
}

th {
    background: var(--edf-surface-high) !important;
    color: var(--edf-on-surface) !important;
    font-weight: 700 !important;
}

.product-card,
.strategy-card,
.feature-item,
.constraint-item,
.kw-item,
.keyword-col,
.source,
.sources,
.author-box {
    border: 1px solid var(--edf-outline-soft) !important;
    border-radius: 2px !important;
    background: var(--edf-surface-low) !important;
    box-shadow: none !important;
}

.cta-box {
    margin: 4rem 0 !important;
    padding: 3rem !important;
    border: 0 !important;
    border-radius: 2px !important;
    background: var(--edf-primary) !important;
    color: var(--edf-on-primary) !important;
    text-align: center !important;
    box-shadow: none !important;
}

.cta-box h2,
.cta-box h3 {
    margin-top: 0 !important;
    color: var(--edf-on-primary) !important;
}

.cta-box p,
.cta-box li {
    color: rgba(251, 248, 248, 0.86) !important;
}

.cta-box .btn,
.cta-box .btn-primary,
.cta-box .cta-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 3rem !important;
    margin-top: 0.5rem !important;
    padding: 0.9rem 1.5rem !important;
    border: 0 !important;
    border-radius: 2px !important;
    background: var(--edf-on-primary) !important;
    color: var(--edf-primary) !important;
    font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    letter-spacing: 0 !important;
    text-decoration: none !important;
}

.disclaimer,
.byline {
    color: rgba(90, 96, 98, 0.72) !important;
    font-size: 0.92rem !important;
}

body > footer,
.edf-footer {
    margin: 0 !important;
    padding: 0 !important;
    border-top: 1px solid rgba(174, 179, 181, 0.1) !important;
    background: var(--edf-surface-low) !important;
    color: var(--edf-on-surface-variant) !important;
    text-align: left !important;
}

body > footer .footer-inner,
.edf-footer-inner {
    width: 100% !important;
    max-width: 80rem !important;
    margin: 0 auto !important;
    padding: 3rem 2rem !important;
}

.edf-footer-grid,
.footer-grid {
    display: grid !important;
    grid-template-columns: 2fr 1fr 1fr !important;
    gap: 2rem !important;
    margin: 0 0 2rem !important;
}

.edf-footer-brand-name,
.footer-brand .logo {
    margin: 0 0 1rem !important;
    color: var(--edf-primary) !important;
    font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    font-size: 1.125rem !important;
    font-weight: 700 !important;
}

.edf-footer-brand p,
.footer-brand p,
body > footer p {
    max-width: 20rem;
    color: rgba(90, 96, 98, 0.72) !important;
    font-size: 0.875rem !important;
    line-height: 1.55 !important;
}

.edf-footer-heading,
.footer-links h4 {
    margin: 0 0 0.5rem !important;
    color: rgba(90, 96, 98, 0.48) !important;
    font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    text-transform: uppercase !important;
}

.edf-footer-col {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
}

.edf-footer-col a,
.footer-links a,
body > footer a {
    color: rgba(90, 96, 98, 0.72) !important;
    font-size: 0.875rem !important;
    text-decoration: none !important;
}

.edf-footer-col a:hover,
.footer-links a:hover,
body > footer a:hover {
    color: var(--edf-on-surface) !important;
    text-decoration: underline !important;
}

.edf-footer-bottom,
.footer-bottom {
    border-top: 1px solid rgba(174, 179, 181, 0.1) !important;
    padding-top: 1.5rem !important;
}

@media (max-width: 980px) {
    .blog-header .container {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .blog-header h1 {
        font-size: 3.25rem !important;
    }

    .articles {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 768px) {
    body > nav:not(.breadcrumb) .nav-inner,
    .edf-nav-inner {
        padding: 0.9rem 1rem !important;
    }

    body > nav:not(.breadcrumb) .nav-links,
    .edf-nav-links {
        gap: 0.8rem !important;
    }

    .edf-desktop-only,
    body > nav:not(.breadcrumb) .nav-links a.edf-desktop-only {
        display: none !important;
    }

    body > nav:not(.breadcrumb) .nav-links .btn,
    .edf-nav-cta {
        min-height: 2.25rem !important;
        padding: 0.45rem 0.85rem !important;
        font-size: 0.9rem !important;
    }

    .container {
        padding-inline: 1rem !important;
    }

    .blog-header {
        padding: 4rem 0 2.5rem !important;
    }

    .blog-header h1 {
        font-size: 2.6rem !important;
    }

    .blog-header p {
        font-size: 1.05rem !important;
    }

    .blog-grid {
        padding-bottom: 4rem !important;
    }

    .articles {
        grid-template-columns: 1fr !important;
    }

    .article-card:first-child {
        grid-column: auto !important;
        min-height: 18rem !important;
    }

    .article-card:first-child h2 {
        font-size: 1.75rem !important;
    }

    body > .breadcrumb,
    body > main > .breadcrumb,
    article .breadcrumb,
    .article-shell > .breadcrumb,
    body > article,
    body > main > article,
    .article-shell {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    body > article h1,
    body > main > article h1,
    .article-header h1 {
        font-size: 2.35rem !important;
        line-height: 1.12 !important;
    }

    body > article h2,
    body > main > article h2,
    .article-content h2 {
        font-size: 1.75rem !important;
    }

    .cta-box {
        padding: 2rem 1.25rem !important;
    }

    table,
    .comparison-table,
    .data-table,
    .gut-check-table {
        display: block !important;
        overflow-x: auto !important;
    }

    .edf-footer-grid,
    .footer-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 430px) {
    .edf-nav-link[href*="/login"],
    body > nav:not(.breadcrumb) .nav-links a[href*="/login"] {
        display: none !important;
    }
}
