.blog-card {
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.blog-card:hover {
    border-color: #7fb5a5;
    box-shadow: 0 8px 24px rgba(24, 33, 31, 0.045);
}

.blog-card-cover,
.blog-author-cover {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--dpt-brand-soft);
}

.blog-card-cover {
    aspect-ratio: 16 / 10;
}

.blog-card-cover img,
.blog-author-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-cover-placeholder {
    display: flex;
    width: 100%;
    height: 100%;
    min-height: 11rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--dpt-brand);
    background-color: var(--dpt-brand-soft);
}

.blog-author-cover {
    min-height: 11rem;
    aspect-ratio: 16 / 9;
}

.blog-card-title,
.blog-related-title {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.blog-article-title {
    overflow-wrap: anywhere;
    font-size: clamp(2rem, 3.5vw, 3.3rem);
    line-height: 1.12;
    letter-spacing: -0.04em;
    text-wrap: balance;
}

.blog-content {
    min-width: 0;
    color: #43504c;
    font-family: "IBM Plex Sans", system-ui, sans-serif;
    font-size: 1rem;
    line-height: 1.85;
    overflow-wrap: anywhere;
}

.blog-content > :first-child {
    margin-top: 0;
}

.blog-content > :last-child {
    margin-bottom: 0;
}

.blog-content h1,
.blog-content h2,
.blog-content h3,
.blog-content h4 {
    color: var(--dpt-ink);
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.025em;
    scroll-margin-top: 6rem;
}

.blog-content h1,
.blog-content h2 {
    margin: 2.5rem 0 1rem;
    font-size: 1.65rem;
}

.blog-content h3 {
    margin: 2rem 0 0.75rem;
    font-size: 1.2rem;
}

.blog-content h4 {
    margin: 1.5rem 0 0.75rem;
    font-size: 1.05rem;
}

.blog-content p,
.blog-content ul,
.blog-content ol {
    margin: 1rem 0;
}

.blog-content ul,
.blog-content ol {
    padding-left: 1.4rem;
}

.blog-content ul {
    list-style: square;
}

.blog-content ol {
    list-style: decimal;
}

.blog-content li + li {
    margin-top: 0.45rem;
}

.blog-content a {
    color: var(--dpt-brand);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: #87b9b1;
    text-underline-offset: 3px;
}

.blog-content a:hover {
    color: var(--dpt-brand-strong);
}

.blog-content strong {
    color: var(--dpt-ink);
}

.blog-content code {
    border: 1px solid var(--dpt-line);
    padding: 0.15rem 0.4rem;
    color: var(--dpt-brand-strong);
    background: var(--dpt-brand-soft);
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 0.9em;
}

.blog-content pre {
    max-width: 100%;
    margin: 1.5rem 0;
    overflow-x: auto;
    border: 1px solid #2d3a36;
    padding: 1.15rem;
    color: #e8eee9;
    background: var(--dpt-ink);
    overflow-wrap: normal;
}

.blog-content pre code {
    border: 0;
    padding: 0;
    color: inherit;
    background: transparent;
}

.blog-content blockquote {
    margin: 1.5rem 0;
    border-left: 3px solid var(--dpt-brand);
    padding: 1rem 1.25rem;
    color: #43504c;
    background: var(--dpt-brand-soft);
}

.blog-content figure {
    margin: 2rem 0;
}

.blog-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1.5rem auto;
    border: 1px solid var(--dpt-line);
}

.blog-content figcaption {
    margin-top: -0.75rem;
    color: #64748b;
    font-size: 0.875rem;
    line-height: 1.6;
    text-align: center;
}

.blog-content .blog-callout {
    margin: 1.5rem 0;
    border: 1px solid #add1c3;
    padding: 1rem 1.25rem;
    background: var(--dpt-brand-soft);
}

.blog-content table {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 1.5rem 0;
    overflow-x: auto;
    border-collapse: collapse;
    font-size: 0.94rem;
}

.blog-content th,
.blog-content td {
    border: 1px solid var(--dpt-line);
    padding: 0.8rem;
    text-align: left;
    vertical-align: top;
}

.blog-content th {
    color: var(--dpt-ink);
    background: var(--dpt-brand-soft);
    font-weight: 700;
}

.blog-content .article-table-wrap {
    width: 100%;
    margin: 1.5rem 0;
    overflow-x: auto;
}

.blog-content .article-table-wrap table {
    display: table;
    min-width: 46rem;
    margin: 0;
}

.blog-content .article-video,
.blog-content .youtube-embed {
    margin: 1.75rem 0;
    overflow: hidden;
    border: 1px solid var(--dpt-line);
    background: var(--dpt-ink);
}

.blog-content .article-video video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    background: var(--dpt-ink);
}

.blog-content .youtube-embed {
    position: relative;
    padding-top: 56.25%;
}

.blog-content .youtube-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.blog-content .references {
    margin-top: 3rem;
    border-top: 1px solid var(--dpt-line);
    padding-top: 0.75rem;
}

.blog-content .references li {
    overflow-wrap: anywhere;
}

@media (min-width: 640px) {
    .blog-author-cover {
        aspect-ratio: auto;
    }
}
