/* =====================================================================
   CHANNEL SOFTECH — BLOG DETAILS PAGE (blog-details.php)
   Loads after blog.css, which already styles the banner artwork,
   tags, author, article cards and the call to action.

   1. Reading progress bar
   2. Article banner
   3. Cover image
   4. Layout + article text
   5. Content blocks — takeaways, tip, steps, checklist, compare,
      quote, figure, inline call to action
   6. Tags, share, author, previous / next
   7. Sidebar — contents, help card
   8. Related articles
   9. Tablet and phone
   ===================================================================== */

/* ---------- 1. READING PROGRESS BAR ---------- */
.cs-post-progress {
    position: fixed;
    z-index: 1100;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    pointer-events: none;
}

.cs-post-progress span {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--cs-accent-gradient);
    box-shadow: 0 0 10px rgba(21, 157, 211, 0.6);
    transform: scaleX(0);
    transform-origin: left;
}

/* ---------- 2. ARTICLE BANNER ---------- */
.cs-post-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(40px, 5vw, 70px) 0 0;
    background: var(--cs-seam, #fcfdfe);
}

/* the banner artwork only covers the top part, the cover sits below it */
.cs-post-hero .cs-blog-hero__bg {
    bottom: 32%;
}

.cs-post-hero::after {
    position: absolute;
    z-index: -2;
    right: 0;
    bottom: 0;
    left: 0;
    height: 32%;
    background: #fff;
    content: "";
}

.cs-post-hero__inner {
    max-width: 880px;
    margin: 0 auto;
    text-align: center;
}

.cs-post-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
    font-size: 13px;
}

.cs-post-breadcrumb li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--blog-text);
}

.cs-post-breadcrumb li + li::before {
    color: #a9bfcc;
    font-family: "Font Awesome 6 Free";
    font-size: 9px;
    font-weight: 900;
    content: "\f054";
}

.cs-post-breadcrumb a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--blog-ink);
    font-weight: 500;
    transition: color 0.25s ease;
}

.cs-post-breadcrumb a:hover {
    color: var(--blog-blue);
}

.cs-post-breadcrumb [aria-current="page"] {
    color: var(--blog-blue);
    font-weight: 500;
}

.cs-post-category {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border: 1px solid rgba(8, 112, 175, 0.18);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.8);
    color: var(--blog-blue);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    box-shadow: 0 6px 16px rgba(8, 72, 112, 0.08);
}

.cs-post-hero .cs-title {
    margin: 16px 0 0;
    font-size: var(--cs-fs-hero);
    line-height: 1.12;
    text-wrap: balance;
}

.cs-post-hero__lead {
    max-width: 700px;
    margin: 16px auto 0;
}

.cs-post-hero__meta {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px 22px;
    margin-top: 26px;
    padding: 10px 22px 10px 10px;
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 10px 26px rgba(8, 72, 112, 0.08);
    text-align: left;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.cs-post-hero__divider {
    width: 1px;
    height: 30px;
    background: var(--blog-line);
}

.cs-post-hero__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--blog-text);
    font-size: 14px;
}

.cs-post-hero__facts li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.cs-post-hero__facts i {
    color: var(--blog-blue);
}

/* ---------- 3. COVER IMAGE ---------- */
.cs-post-cover {
    position: relative;
    margin: clamp(30px, 4vw, 48px) auto 0;
    aspect-ratio: 21 / 9;
    overflow: hidden;
    border: 6px solid #fff;
    border-radius: clamp(20px, 3vw, 32px);
    background: var(--blog-img-bg);
    box-shadow: 0 40px 80px -30px rgba(8, 72, 112, 0.4);
}

.cs-post-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------- 4. LAYOUT + ARTICLE TEXT ---------- */
.cs-post-main {
    padding: clamp(40px, 5vw, 64px) 0 var(--cs-section-y);
    background: #fff;
}

.cs-post-content {
    color: var(--blog-text);
    font-size: 16px;
    line-height: 1.85;
}

.cs-post-content > * + * {
    margin-top: 18px;
}

.cs-post-content p {
    margin-bottom: 0;
}

.cs-post-content strong {
    color: var(--blog-ink);
    font-weight: 600;
}

.cs-post-content a {
    color: var(--blog-blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cs-post-intro {
    color: var(--blog-ink);
    font-size: 18px;
    line-height: 1.8;
}

/* first letter of the article */
.cs-post-content h2 {
    position: relative;
    margin-top: 44px;
    padding-left: 18px;
    color: var(--blog-ink);
    font-size: clamp(22px, 1.4rem + 0.5vw, 28px);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
    scroll-margin-top: 120px;
}

.cs-post-content h2::before {
    position: absolute;
    top: 0.2em;
    bottom: 0.2em;
    left: 0;
    width: 4px;
    border-radius: 4px;
    background: var(--cs-accent-gradient);
    content: "";
}

.cs-post-content h2 + p {
    margin-top: 14px;
}

/* ---------- 5. CONTENT BLOCKS ---------- */
/* key takeaways */
.cs-post-takeaways {
    position: relative;
    overflow: hidden;
    margin-top: 28px !important;
    padding: 24px 26px;
    border: 1px solid #cfe6f2;
    border-radius: 20px;
    background:
        radial-gradient(circle at 100% 0%, rgba(21, 157, 211, 0.14), transparent 45%),
        linear-gradient(160deg, #f6fbfe, #eaf6fc);
}

.cs-post-content .cs-post-takeaways__title {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 12px;
    padding: 0;
    color: var(--blog-ink);
    font-size: 18px;
    scroll-margin-top: 0;
}

.cs-post-content .cs-post-takeaways__title::before {
    display: none;
}

.cs-post-takeaways__title i {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 10px;
    background: var(--cs-grad-brand);
    color: #fff;
    font-size: 15px;
}

.cs-post-takeaways ul,
.cs-post-checklist {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cs-post-takeaways li,
.cs-post-checklist li {
    position: relative;
    padding-left: 30px;
    color: var(--blog-ink);
    font-size: 15px;
    line-height: 1.65;
}

.cs-post-takeaways li::before,
.cs-post-checklist li::before {
    position: absolute;
    top: 3px;
    left: 0;
    display: grid;
    width: 20px;
    height: 20px;
    place-items: center;
    border-radius: 50%;
    background: var(--blog-blue);
    color: #fff;
    font-family: "bootstrap-icons";
    font-size: 12px;
    line-height: 1;
    content: "\F26E";
}

.cs-post-checklist {
    padding: 22px 24px;
    border: 1px solid var(--blog-line);
    border-radius: 18px;
    background: #fbfdfe;
}

/* tip */
.cs-post-tip {
    display: flex;
    gap: 14px;
    padding: 18px 20px;
    border-left: 4px solid var(--blog-cyan);
    border-radius: 0 16px 16px 0;
    background: #eef8fc;
}

.cs-post-tip > i {
    flex: 0 0 auto;
    color: #f2a516;
    font-size: 20px;
    line-height: 1.5;
}

.cs-post-tip p {
    margin: 0;
    color: var(--blog-ink);
    font-size: 15px;
    line-height: 1.7;
}

/* numbered steps */
.cs-post-steps {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: steps;
}

.cs-post-steps li {
    position: relative;
    padding: 14px 18px 14px 62px;
    border: 1px solid var(--blog-line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 6px 16px rgba(8, 72, 112, 0.05);
    color: var(--blog-text);
    font-size: 15px;
    line-height: 1.65;
    counter-increment: steps;
}

.cs-post-steps li::before {
    position: absolute;
    top: 50%;
    left: 14px;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 10px;
    background: var(--cs-grad-brand);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    transform: translateY(-50%);
    content: counter(steps);
}

/* instead of / try */
.cs-post-compare {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.cs-post-compare__col {
    padding: 20px 22px;
    border-radius: 18px;
}

.cs-post-compare__col--bad {
    border: 1px solid #f6d6d6;
    background: #fff7f7;
}

.cs-post-compare__col--good {
    border: 1px solid #cdeedd;
    background: #f3fcf7;
}

.cs-post-content .cs-post-compare h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    color: var(--blog-ink);
    font-size: 16px;
    font-weight: 700;
}

.cs-post-compare__col--bad h3 i {
    color: #e05252;
}

.cs-post-compare__col--good h3 i {
    color: #1fa463;
}

.cs-post-compare ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cs-post-compare li {
    padding: 8px 12px;
    border-radius: 10px;
    background: #fff;
    color: var(--blog-ink);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}

.cs-post-compare__col--bad li {
    color: #8a8f92;
    text-decoration: line-through;
    text-decoration-color: rgba(224, 82, 82, 0.5);
}

/* pull quote */
.cs-post-quote {
    position: relative;
    margin: 30px 0 0;
    padding: 30px 30px 26px 34px;
    overflow: hidden;
    border-radius: 22px;
    background: var(--cs-grad-brand);
    box-shadow: 0 20px 40px -18px rgba(6, 90, 140, 0.5);
}

.cs-post-quote::before {
    position: absolute;
    top: -26px;
    right: 18px;
    color: rgba(255, 255, 255, 0.12);
    font-family: Georgia, serif;
    font-size: 170px;
    line-height: 1;
    content: "\201C";
}

.cs-post-quote p {
    position: relative;
    margin: 0;
    color: #fff;
    font-size: clamp(17px, 1rem + 0.35vw, 21px);
    font-weight: 500;
    line-height: 1.6;
}

.cs-post-quote cite {
    display: block;
    margin-top: 14px;
    color: #bfe8f8;
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
}

/* image with caption */
.cs-post-figure {
    margin: 30px 0 0;
}

.cs-post-figure img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 20px;
    background: var(--blog-img-bg);
    box-shadow: 0 20px 40px -22px rgba(8, 72, 112, 0.35);
}

.cs-post-figure figcaption {
    margin-top: 10px;
    color: var(--blog-text);
    font-size: 13px;
    font-style: italic;
    text-align: center;
}

/* inline call to action */
.cs-post-inline-cta {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 34px !important;
    padding: 22px 24px;
    overflow: hidden;
    border-radius: 20px;
    background:
        radial-gradient(circle at 100% 0%, rgba(21, 157, 211, 0.5), transparent 50%),
        linear-gradient(135deg, #0b2235, #0870af);
}

/* only the text on the left: the button's own spans (label, round arrow) keep their layout */
.cs-post-inline-cta > div strong,
.cs-post-inline-cta > div span {
    display: block;
}

.cs-post-inline-cta > div strong {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
}

.cs-post-inline-cta > div span {
    margin-top: 3px;
    color: #cfeefa;
    font-size: 14px;
    line-height: 1.5;
}

.cs-post-content .cs-post-inline-cta a {
    text-decoration: none;
}

/* ---------- 6. TAGS, SHARE, AUTHOR, PREVIOUS / NEXT ---------- */
.cs-post-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 40px;
    padding: 20px 0;
    border-top: 1px solid var(--blog-line);
    border-bottom: 1px solid var(--blog-line);
}

.cs-post-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.cs-post-tags__label,
.cs-post-share__label {
    color: var(--blog-ink);
    font-size: 14px;
    font-weight: 600;
}

.cs-post-tags a {
    padding: 6px 13px;
    border-radius: 50px;
    background: #eef7fc;
    color: var(--blog-blue);
    font-size: 13px;
    font-weight: 500;
    transition: background 0.25s ease, color 0.25s ease;
}

.cs-post-tags a:hover {
    background: var(--blog-blue);
    color: #fff;
}

.cs-post-share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.cs-post-share__btn {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    padding: 0;
    border: 1px solid var(--blog-line);
    border-radius: 50%;
    background: #fff;
    color: var(--blog-ink);
    font-size: 15px;
    cursor: pointer;
    transition:
        transform 0.3s var(--blog-ease),
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease;
}

.cs-post-share__btn:hover {
    border-color: transparent;
    color: #fff;
    transform: translateY(-3px);
}

.cs-post-share__btn--whatsapp:hover {
    background: #25d366;
}

.cs-post-share__btn--linkedin:hover {
    background: #0a66c2;
}

.cs-post-share__btn--facebook:hover {
    background: #1877f2;
}

.cs-post-share__btn--x:hover {
    background: #111;
}

.cs-post-share__btn--copy:hover,
.cs-post-share__btn--copy.is-copied {
    border-color: transparent;
    background: var(--blog-blue);
    color: #fff;
}

/* author box */
.cs-post-author {
    display: flex;
    gap: 20px;
    margin-top: 32px;
    padding: 26px;
    border: 1px solid var(--blog-line);
    border-radius: 22px;
    background:
        radial-gradient(circle at 100% 0%, rgba(21, 157, 211, 0.1), transparent 45%),
        #f8fcfe;
}

.cs-post-author__avatar {
    display: grid;
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    place-items: center;
    border-radius: 50%;
    background: var(--cs-grad-brand);
    box-shadow: 0 0 0 5px #fff, 0 10px 24px rgba(8, 112, 175, 0.3);
    color: #fff;
    font-size: 22px;
    font-weight: 700;
}

.cs-post-author__label {
    color: var(--blog-blue);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cs-post-author__name {
    margin: 4px 0 8px;
    color: var(--blog-ink);
    font-size: 19px;
    font-weight: 700;
}

.cs-post-author p {
    margin: 0;
    color: var(--blog-text);
    font-size: 14px;
    line-height: 1.75;
}

.cs-post-author__body {
    min-width: 0;
}

/* designation under the name */
.cs-post-author__role {
    display: block;
    margin: -4px 0 8px;
    color: var(--blog-blue);
    font-size: 14px;
    font-weight: 600;
}

/* short bio: at most 3 lines, then "…" (the full text is in the tooltip) */
.cs-post-author__bio {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

.cs-post-author__link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 10px;
    color: var(--blog-blue);
    font-size: 14px;
    font-weight: 600;
}

.cs-post-author__link i {
    font-size: 12px;
    transition: transform 0.3s var(--blog-ease);
}

.cs-post-author__link:hover i {
    transform: translateX(4px);
}

/* previous / next */
.cs-post-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 24px;
}

.cs-post-nav__item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border: 1px solid var(--blog-line);
    border-radius: 18px;
    background: #fff;
    color: var(--blog-ink);
    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.35s var(--blog-ease);
}

.cs-post-nav__item--next {
    justify-content: flex-end;
    text-align: right;
}

.cs-post-nav__img {
    flex: 0 0 84px;
    height: 64px;
    overflow: hidden;
    border-radius: 12px;
    background: var(--blog-img-bg);
}

.cs-post-nav__img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cs-post-nav__text {
    min-width: 0;
}

.cs-post-nav__text small {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--blog-blue);
    font-size: 12px;
    font-weight: 600;
}

.cs-post-nav__text strong {
    display: block;
    margin-top: 4px;
    color: var(--blog-ink);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.cs-post-nav__item:hover {
    border-color: rgba(8, 112, 175, 0.3);
    box-shadow: 0 14px 28px -14px rgba(8, 72, 112, 0.3);
    color: var(--blog-ink);
    transform: translateY(-3px);
}

/* ---------- 7. SIDEBAR ---------- */
.cs-post-sidebar {
    position: sticky;
    top: 124px;
    display: grid;
    gap: 20px;
}

.cs-post-card {
    padding: 22px;
    border: 1px solid var(--blog-line);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 14px 34px -18px rgba(8, 72, 112, 0.25);
}

.cs-post-card__title {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--blog-line);
    color: var(--blog-ink);
    font-size: 17px;
    font-weight: 700;
}

.cs-post-card__title i {
    color: var(--blog-blue);
}

/* contents list (sidebar + phone) */
.cs-post-toc ol {
    display: grid;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cs-post-toc a {
    position: relative;
    display: block;
    padding: 9px 12px 9px 16px;
    border-radius: 10px;
    color: var(--blog-text);
    font-size: 14px;
    line-height: 1.45;
    transition: background 0.25s ease, color 0.25s ease;
}

.cs-post-toc a::before {
    position: absolute;
    top: 9px;
    bottom: 9px;
    left: 4px;
    width: 3px;
    border-radius: 3px;
    background: var(--cs-accent-gradient);
    opacity: 0;
    transform: scaleY(0.3);
    transition: opacity 0.25s ease, transform 0.3s var(--blog-ease);
    content: "";
}

.cs-post-toc a:hover {
    background: #f2f9fd;
    color: var(--blog-ink);
}

.cs-post-toc a.is-active {
    background: #eef7fc;
    color: var(--blog-blue);
    font-weight: 600;
}

.cs-post-toc a.is-active::before {
    opacity: 1;
    transform: none;
}

/* phone version: opens and closes */
.cs-post-toc--mobile {
    margin-bottom: 26px;
    border: 1px solid var(--blog-line);
    border-radius: 18px;
    background: #f8fcfe;
}

.cs-post-toc--mobile summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 18px;
    color: var(--blog-ink);
    font-size: 15px;
    font-weight: 600;
    list-style: none;
    cursor: pointer;
}

.cs-post-toc--mobile summary::-webkit-details-marker {
    display: none;
}

.cs-post-toc--mobile summary span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cs-post-toc--mobile summary i {
    color: var(--blog-blue);
    transition: transform 0.3s ease;
}

.cs-post-toc--mobile[open] summary .fa-chevron-down {
    transform: rotate(180deg);
}

.cs-post-toc--mobile ol {
    padding: 0 10px 12px;
}

/* help card */
.cs-post-help {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border: 0;
    background:
        radial-gradient(circle at 100% 0%, rgba(21, 157, 211, 0.55), transparent 50%),
        linear-gradient(150deg, #0b2235, #0870af);
    color: #fff;
}

.cs-post-help::after {
    position: absolute;
    z-index: -1;
    right: -50px;
    bottom: -60px;
    width: 180px;
    height: 180px;
    border: 30px solid rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    content: "";
}

.cs-post-help__icon {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 21px;
}

.cs-post-help h2 {
    margin: 14px 0 8px;
    color: #fff;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.35;
}

.cs-post-help p {
    margin: 0 0 18px;
    color: #cfeefa;
    font-size: 14px;
    line-height: 1.65;
}

/* ---------- 8. RELATED ARTICLES ---------- */
.cs-post-related {
    padding: var(--cs-section-y) 0;
    background: linear-gradient(180deg, #fff 0%, var(--blog-soft) 100%);
}

.cs-post-related__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 30px;
}

.cs-post-related__head .cs-eyebrow,
.cs-post-related__head .cs-title {
    text-align: left;
}

.cs-post-related__head .cs-title {
    margin: 0;
}

/* ---------- 9. TABLET AND PHONE ---------- */
@media (max-width: 991.98px) {
    .cs-post-sidebar {
        position: static;
    }

    .cs-post-cover {
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 767.98px) {
    .cs-post-hero__meta {
        flex-direction: column;
        gap: 12px;
        padding: 14px 18px;
        border-radius: 20px;
    }

    .cs-post-hero__divider {
        width: 60px;
        height: 1px;
    }

    .cs-post-intro {
        font-size: 17px;
    }

    .cs-post-compare,
    .cs-post-nav {
        grid-template-columns: minmax(0, 1fr);
    }

    .cs-post-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    /* related articles swipe sideways on phones */
    .cs-post-related__grid {
        display: flex;
        gap: 14px;
        margin-inline: calc(var(--bs-gutter-x, 1.5rem) * -0.5);
        padding: 6px calc(var(--bs-gutter-x, 1.5rem) * 0.5) 18px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .cs-post-related__grid::-webkit-scrollbar {
        display: none;
    }

    .cs-post-related__grid .cs-blog-card {
        flex: 0 0 84%;
        scroll-snap-align: start;
    }
}

@media (max-width: 575.98px) {
    .cs-post-breadcrumb [aria-current="page"] {
        display: none;
    }

    .cs-post-cover {
        border-width: 4px;
        aspect-ratio: 4 / 3;
    }

    .cs-post-content {
        font-size: 15px;
    }

    .cs-post-takeaways,
    .cs-post-checklist,
    .cs-post-compare__col {
        padding: 18px;
    }

    .cs-post-quote {
        padding: 24px 22px 22px;
    }

    .cs-post-author {
        flex-direction: column;
        gap: 14px;
        padding: 20px;
    }

    .cs-post-inline-cta .cs-btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cs-post-progress span {
        transition: none;
    }
}

/* ---------- admin preview bar (drafts and scheduled posts, admins only) ---------- */
.cs-post-preview-bar {
    position: sticky;
    top: 0;
    z-index: 1100;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 12px;
    padding: 10px 16px;
    background: #fff4d6;
    border-bottom: 1px solid #f0d58a;
    color: #7a5600;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

.cs-post-preview-bar a {
    color: #0870af;
    text-decoration: underline;
}

/* the category on an article links to /blog/category/... */
a.cs-post-category {
    text-decoration: none;
}

a.cs-post-category:hover {
    border-color: var(--blog-blue);
}
