/* Blog detail template: mobile-first UX + SEO-friendly reading experience */
:root {
    --ok-green: #0a472e;
    --ok-green-2: #166534;
    --ok-lime: #bac34e;
    --ok-soft: #f6f8ef;
    --ok-soft-2: #eef7e9;
    --ok-text: #111827;
    --ok-muted: #667085;
    --ok-border: #e8ece3;
    --ok-card: #ffffff;
    --ok-radius: 24px;
    --ok-shadow: 0 18px 45px rgba(17, 24, 39, .07);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
}

.ok-blog-page {
    background: linear-gradient(180deg, #f7f8f4 0%, #ffffff 52%);
    color: var(--ok-text);
    padding-bottom: 0;
}

.ok-blog-shell {
    width: min(100%, 1180px);
    margin: 0 auto;
    padding: 18px 16px 42px;
}

.ok-blog-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    white-space: nowrap;
    color: #7a8276;
    font-size: 12px;
    font-weight: 700;
    margin: 4px 0 22px;
    -webkit-overflow-scrolling: touch;
}

.ok-blog-breadcrumb a {
    color: var(--ok-green);
    text-decoration: none;
}

.ok-blog-hero {
    text-align: left;
    max-width: 860px;
    margin: 0 auto 22px;
}

.ok-blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ok-blog-tags--hero {
    margin-bottom: 16px;
}

.ok-blog-tag {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #ecf7e6;
    color: var(--ok-green);
    border: 1px solid #dbeccd;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
}

.ok-blog-hero h1 {
    color: var(--ok-text);
    font-size: clamp(34px, 10vw, 64px);
    line-height: .98;
    letter-spacing: -0.055em;
    margin: 0;
    text-wrap: balance;
}

.ok-blog-summary {
    color: #475467;
    font-size: clamp(17px, 4.6vw, 22px);
    line-height: 1.55;
    margin: 18px 0 0;
    max-width: 760px;
}

.ok-blog-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    color: #717b68;
    font-size: 13px;
    font-weight: 800;
}

.ok-blog-share-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.ok-icon-share,
.ok-community-card a {
    min-height: 44px;
}

.ok-share-icons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.ok-icon-share {
    width: 46px;
    height: 46px;
    min-width: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--ok-border);
    border-radius: 999px;
    background: white;
    color: var(--ok-green);
    text-decoration: none;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: transform .16s ease, background .16s ease, border-color .16s ease;
}

.ok-icon-share:hover {
    transform: translateY(-1px);
    background: var(--ok-soft-2);
    border-color: #d7e6c8;
}

.ok-icon-share:focus-visible {
    outline: 3px solid rgba(186,195,78,.45);
    outline-offset: 2px;
}

.ok-blog-cover {
    width: min(100%, 1000px);
    margin: 24px auto 24px;
    border-radius: 28px;
    overflow: hidden;
    background: #e5e7eb;
    border: 1px solid var(--ok-border);
    box-shadow: var(--ok-shadow);
}

.ok-blog-cover img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.ok-article-info {
    background: #ffffff;
}

.ok-article-info--mobile {
    margin: -2px auto 22px;
    width: min(100%, 1000px);
}

.ok-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.ok-info-grid div {
    background: #f8faf5;
    border: 1px solid var(--ok-border);
    border-radius: 18px;
    padding: 13px;
}

.ok-info-grid span {
    display: block;
    color: #7a8276;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .05em;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.ok-info-grid strong {
    display: block;
    color: var(--ok-text);
    font-size: 15px;
    line-height: 1.2;
}

.ok-info-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.ok-info-topics a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 8px 11px;
    border-radius: 999px;
    background: #ecf7e6;
    color: var(--ok-green);
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
}

.ok-info-note {
    color: #667085;
    font-size: 13px;
    line-height: 1.55;
    margin: 14px 0 0;
}

.ok-blog-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
    align-items: start;
}

.ok-blog-main {
    min-width: 0;
}

.ok-blog-card,
.ok-sidebar-card {
    background: var(--ok-card);
    border: 1px solid var(--ok-border);
    border-radius: var(--ok-radius);
    box-shadow: 0 10px 30px rgba(17, 24, 39, .05);
}

.ok-blog-card {
    padding: 20px;
    margin-bottom: 18px;
}

.ok-keypoints {
    background: linear-gradient(135deg, #f0f8e8 0%, #ffffff 100%);
}

.ok-keypoints h2,
.ok-trust-box h2,
.ok-faq h2,
.ok-share-bottom h2 {
    color: var(--ok-text);
    font-size: 22px;
    line-height: 1.15;
    letter-spacing: -0.025em;
    margin: 0 0 16px;
}

.ok-keypoints ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.ok-keypoints li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    color: #344054;
    font-size: 16px;
    line-height: 1.55;
}

.ok-keypoints li span {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--ok-green);
    color: white;
    font-size: 13px;
    font-weight: 900;
    margin-top: 1px;
}

.ok-keypoints li p {
    margin: 0;
}

.ok-toc-mobile summary {
    cursor: pointer;
    color: var(--ok-text);
    font-size: 17px;
    font-weight: 950;
    list-style-position: outside;
}

.ok-toc-mobile nav,
.ok-sidebar-toc nav {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.ok-toc-link {
    color: #475467;
    font-size: 14px;
    line-height: 1.35;
    text-decoration: none;
    font-weight: 800;
    border-left: 3px solid transparent;
    padding: 2px 0 2px 10px;
}

.ok-toc-link--h3 {
    margin-left: 12px;
    font-size: 13px;
    font-weight: 700;
}

.ok-toc-link:hover,
.ok-toc-link.is-active {
    color: var(--ok-green);
    border-left-color: var(--ok-lime);
}

.ok-article-card {
    padding: 22px 20px;
}

.ok-article-content {
    font-size: 18px;
    line-height: 1.82;
    color: #344054;
    overflow-wrap: anywhere;
}

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

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

.ok-article-content h2,
.ok-article-content h3,
.ok-article-content h4 {
    color: var(--ok-text);
    line-height: 1.18;
    letter-spacing: -0.035em;
    margin: 2.25em 0 .65em;
}

.ok-article-content h2 {
    font-size: clamp(27px, 7vw, 40px);
}

.ok-article-content h3 {
    font-size: clamp(23px, 6vw, 30px);
}

.ok-article-content p,
.ok-article-content ul,
.ok-article-content ol {
    margin: 0 0 1.35em;
}

.ok-article-content ul,
.ok-article-content ol {
    padding-left: 1.35em;
}

.ok-article-content li {
    margin-bottom: .55em;
}

.ok-article-content a {
    color: var(--ok-green);
    font-weight: 900;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.ok-article-content img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 22px;
    margin: 28px auto;
}

.ok-article-content blockquote {
    margin: 28px 0;
    padding: 18px 18px 18px 22px;
    border-left: 5px solid var(--ok-lime);
    background: var(--ok-soft);
    border-radius: 18px;
    color: var(--ok-green);
    font-weight: 800;
}

.ok-article-content table {
    width: 100%;
    display: block;
    overflow-x: auto;
    border-collapse: collapse;
    margin: 24px 0;
    -webkit-overflow-scrolling: touch;
}

.ok-article-content th,
.ok-article-content td {
    border: 1px solid var(--ok-border);
    padding: 12px;
    text-align: left;
    vertical-align: top;
}

.ok-trust-box {
    background: #111827;
    color: white;
}

.ok-trust-box h2 {
    color: white;
}

.ok-trust-box p {
    color: #d0d5dd;
    margin: 0;
    line-height: 1.7;
}

.ok-faq details {
    border: 1px solid var(--ok-border);
    border-radius: 18px;
    padding: 14px 16px;
    margin-top: 10px;
    background: #fff;
}

.ok-faq summary {
    cursor: pointer;
    color: var(--ok-text);
    font-weight: 950;
    line-height: 1.4;
}

.ok-faq details div {
    color: #475467;
    margin-top: 12px;
    line-height: 1.7;
}

.ok-share-bottom p {
    color: #667085;
    margin: -4px 0 16px;
    line-height: 1.6;
}

.ok-share-grid,
.ok-sidebar-share-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ok-blog-sidebar {
    display: none;
}

.ok-section-head {
    margin: 32px 0 18px;
}

.ok-section-head p {
    color: var(--ok-green);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .14em;
    font-weight: 950;
    margin: 0 0 8px;
}

.ok-section-head h2 {
    color: var(--ok-text);
    font-size: clamp(28px, 7vw, 42px);
    line-height: 1.08;
    letter-spacing: -0.045em;
    margin: 0;
}

.ok-related-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.ok-related-card {
    display: grid;
    grid-template-columns: 112px 1fr;
    gap: 14px;
    background: white;
    border: 1px solid var(--ok-border);
    border-radius: 22px;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(17, 24, 39, .05);
}

.ok-related-card img {
    width: 112px;
    height: 100%;
    min-height: 132px;
    object-fit: cover;
    background: #eef0ea;
}

.ok-related-card div {
    padding: 14px 14px 14px 0;
}

.ok-related-card span {
    display: block;
    color: #7a8276;
    font-size: 11px;
    font-weight: 900;
    margin-bottom: 6px;
}

.ok-related-card h3 {
    color: var(--ok-text);
    font-size: 16px;
    line-height: 1.2;
    margin: 0 0 7px;
}

.ok-related-card p {
    color: #667085;
    font-size: 13px;
    line-height: 1.45;
    margin: 0;
}


.ok-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 70;
    transform: translateX(-50%) translateY(20px);
    opacity: 0;
    pointer-events: none;
    background: #111827;
    color: white;
    border-radius: 999px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 900;
    transition: opacity .2s ease, transform .2s ease;
}

.ok-toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.ok-blog-notfound {
    max-width: 960px;
    margin: 0 auto;
    padding: 48px 16px;
}

.ok-blog-notfound div {
    background: white;
    border: 1px solid var(--ok-border);
    border-radius: 28px;
    padding: 36px;
    text-align: center;
    color: #667085;
}

@media (min-width: 768px) {
    .ok-blog-shell {
        padding: 30px 24px 64px;
    }

    .ok-blog-hero {
        text-align: center;
    }

    .ok-blog-tags--hero,
    .ok-blog-meta,
    .ok-blog-share-inline {
        justify-content: center;
    }

    .ok-blog-cover {
        border-radius: 36px;
        margin-top: 32px;
        margin-bottom: 36px;
    }

    .ok-blog-card {
        padding: 28px;
        border-radius: 30px;
        margin-bottom: 24px;
    }

    .ok-article-card {
        padding: 36px;
    }

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

    .ok-related-card {
        display: block;
        border-radius: 28px;
    }

    .ok-related-card img {
        width: 100%;
        height: 190px;
        min-height: 0;
    }

    .ok-related-card div {
        padding: 20px;
    }

    .ok-related-card h3 {
        font-size: 19px;
    }
}

@media (min-width: 1100px) {
    .ok-blog-page {
        padding-bottom: 0;
    }

    .ok-blog-layout {
        grid-template-columns: minmax(0, 1fr) 320px;
        gap: 32px;
    }

    .ok-blog-main {
        max-width: 800px;
    }


    .ok-article-info--mobile {
        display: none;
    }

    .ok-article-info--desktop .ok-info-grid {
        grid-template-columns: 1fr;
    }

    .ok-article-info--desktop .ok-info-grid div {
        padding: 12px;
    }

    .ok-blog-sidebar {
        display: block;
        position: sticky;
        top: 24px;
    }

    .ok-sidebar-card {
        padding: 22px;
        margin-bottom: 18px;
        border-radius: 28px;
    }

    .ok-sidebar-card h2 {
        color: var(--ok-text);
        font-size: 13px;
        letter-spacing: .13em;
        text-transform: uppercase;
        margin: 0 0 14px;
    }

    .ok-community-card {
        background: var(--ok-green);
        color: white;
    }

    .ok-community-card h2 {
        color: white;
    }

    .ok-community-card p {
        color: rgba(255,255,255,.82);
        line-height: 1.6;
        margin: 0 0 16px;
    }

    .ok-community-card a {
        display: inline-flex;
        width: 100%;
        align-items: center;
        justify-content: center;
        border-radius: 16px;
        background: white;
        color: var(--ok-green);
        font-weight: 950;
        text-decoration: none;
        padding: 12px 14px;
    }

    .ok-toc-mobile {
        display: none;
    }

}

/* v3 SEO/readability additions */
.ok-source-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    margin-top: 12px;
    padding: 9px 12px;
    border-radius: 999px;
    background: #f0f8e8;
    color: var(--ok-green);
    font-size: 13px;
    font-weight: 950;
    text-decoration: none;
    border: 1px solid #dbeccd;
}

.ok-source-link:hover {
    background: #e6f4d9;
}

.ok-article-content p + h2,
.ok-article-content ul + h2,
.ok-article-content ol + h2 {
    padding-top: .35em;
}

.ok-article-content h2::before {
    content: "";
    display: block;
    width: 46px;
    height: 5px;
    border-radius: 99px;
    background: var(--ok-lime);
    margin: 0 0 14px;
}

.ok-article-content > p:first-of-type {
    font-size: 1.05em;
    color: #1f2937;
}

.ok-article-content mark,
.ok-article-content .highlight {
    background: #f1f7d9;
    color: #1f2937;
    padding: .08em .22em;
    border-radius: .35em;
}

@media (max-width: 380px) {
    .ok-info-grid {
        grid-template-columns: 1fr;
    }
}

/* Tag cloud refinement */
.ok-blog-tags,
.ok-info-topics {
    align-items: center;
}

.ok-blog-tag,
.ok-info-topics a {
    letter-spacing: -0.01em;
}

.ok-blog-tag:hover,
.ok-info-topics a:hover {
    transform: translateY(-1px);
}
