/* Blog single — article typography & layout */

.blog-single__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 1.25rem;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #60697b;
}

.blog-single__meta time {
    font-weight: 500;
}

.blog-single__meta-divider {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(96, 105, 123, 0.45);
}

.blog-single__body {
    display: flex;
    justify-content: center;
}

.blog-article {
    width: 100%;
    max-width: 46rem;
    font-family: 'Onest', system-ui, sans-serif;
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #404a5f;
    letter-spacing: 0.01em;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

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

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

.blog-article p {
    margin: 0 0 1.35rem;
}

.blog-article p.lead,
.blog-article > p:first-of-type {
    font-size: 1.125rem;
    line-height: 1.75;
    color: #343f52;
}

.blog-article h2 {
    font-family: 'Onest', system-ui, sans-serif;
    font-size: clamp(1.35rem, 2.2vw, 1.75rem);
    font-weight: 700;
    line-height: 1.3;
    color: #343f52;
    margin: 2.75rem 0 1rem;
    scroll-margin-top: 6rem;
}

.blog-article h3 {
    font-family: 'Onest', system-ui, sans-serif;
    font-size: clamp(1.15rem, 1.8vw, 1.4rem);
    font-weight: 700;
    line-height: 1.35;
    color: #343f52;
    margin: 2.25rem 0 0.85rem;
    scroll-margin-top: 6rem;
}

.blog-article h4 {
    font-family: 'Onest', system-ui, sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    color: #343f52;
    margin: 1.75rem 0 0.65rem;
}

.blog-article h2 + h3,
.blog-article h3 + h4 {
    margin-top: 0.75rem;
}

.blog-article [style*="font-family"] {
    font-family: inherit !important;
}

.blog-article a {
    color: #49938e;
    text-decoration: underline;
    text-underline-offset: 0.18em;
    text-decoration-thickness: 1px;
    transition: color 0.2s ease;
}

.blog-article a:hover,
.blog-article a:focus-visible {
    color: #3a7a76;
}

.blog-article strong,
.blog-article b {
    font-weight: 700;
    color: #343f52;
}

.blog-article em,
.blog-article i {
    font-style: italic;
}

.blog-article ul,
.blog-article ol {
    margin: 0 0 1.35rem;
    padding-left: 1.5rem;
}

.blog-article ul {
    list-style-type: disc;
}

.blog-article ol {
    list-style-type: decimal;
}

.blog-article li {
    margin-bottom: 0.55rem;
    padding-left: 0.25rem;
}

.blog-article li > ul,
.blog-article li > ol {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.blog-article blockquote {
    margin: 1.75rem 0;
    padding: 1.15rem 1.35rem;
    border-left: 4px solid #49938e;
    background: linear-gradient(90deg, rgba(73, 147, 142, 0.1) 0%, rgba(73, 147, 142, 0.03) 100%);
    border-radius: 0 0.5rem 0.5rem 0;
    color: #343f52;
    font-style: italic;
}

.blog-article blockquote p:last-child {
    margin-bottom: 0;
}

.blog-article hr {
    border: 0;
    height: 1px;
    margin: 2.5rem 0;
    background: linear-gradient(90deg, transparent, rgba(164, 174, 198, 0.55), transparent);
}

.blog-article img,
.blog-article video {
    max-width: 100%;
    height: auto;
}

.blog-embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin: 1.75rem 0;
    overflow: hidden;
    border-radius: 0.5rem;
    background: #111827;
    box-shadow: 0 0.75rem 2rem rgba(30, 34, 40, 0.1);
}

.blog-embed iframe {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    border: 0;
}

.blog-article iframe[src*="youtube"],
.blog-article iframe[src*="youtu.be"],
.blog-article iframe[src*="vimeo"] {
    display: block;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border: 0;
    border-radius: 0.5rem;
}

.blog-embed iframe[src*="youtube"],
.blog-embed iframe[src*="youtu.be"],
.blog-embed iframe[src*="vimeo"] {
    position: absolute;
    inset: 0;
    height: 100%;
    max-width: none;
    border-radius: 0;
}

.blog-article img {
    display: block;
    margin: 1.75rem auto;
    border-radius: 0.5rem;
    box-shadow: 0 0.75rem 2rem rgba(30, 34, 40, 0.1);
}

.blog-article figure {
    margin: 1.75rem 0;
}

.blog-article figcaption {
    margin-top: 0.6rem;
    font-size: 0.85rem;
    line-height: 1.5;
    color: #60697b;
    text-align: center;
}

.blog-article table {
    width: 100%;
    margin: 1.75rem 0;
    border-collapse: collapse;
    font-size: 0.95rem;
    line-height: 1.5;
}

.blog-article th,
.blog-article td {
    padding: 0.7rem 1rem;
    border: 1px solid rgba(164, 174, 198, 0.35);
    text-align: left;
    vertical-align: top;
}

.blog-article th {
    background: #f6f7f9;
    font-weight: 600;
    color: #343f52;
}

.blog-article tr:nth-child(even) td {
    background: rgba(246, 247, 249, 0.65);
}

.blog-article .table-responsive,
.blog-article div:has(> table) {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1.75rem 0;
}

.blog-article pre,
.blog-article code {
    font-family: ui-monospace, 'Cascadia Code', monospace;
    font-size: 0.9em;
}

.blog-article pre {
    margin: 1.5rem 0;
    padding: 1rem 1.15rem;
    overflow-x: auto;
    border-radius: 0.5rem;
    background: #f6f7f9;
    border: 1px solid rgba(164, 174, 198, 0.3);
}

.blog-article :not(pre) > code {
    padding: 0.15em 0.4em;
    border-radius: 0.25rem;
    background: rgba(73, 147, 142, 0.1);
    color: #343f52;
}

.blog-article sup,
.blog-article sub {
    font-size: 0.75em;
}

@media (max-width: 767.98px) {
    .blog-article {
        font-size: 1rem;
        line-height: 1.75;
    }

    .blog-article h2 {
        margin-top: 2rem;
    }

    .blog-article th,
    .blog-article td {
        padding: 0.55rem 0.65rem;
        font-size: 0.875rem;
    }
}
