/* ==========================================================================
   Click Media | Blog (listing + single post)
   Loads after app.css and contact.css (breadcrumbs).
   Prefixes: cm-bl- (listing), cm-bp- (post), cm-prose (article content)
   ========================================================================== */

/* ==========================================================================
   LISTING
   ========================================================================== */

/* ---------- Hero ---------- */
.cm-bl-hero { position: relative; padding: calc(var(--cm-header-h) + 36px) 0 28px; }
.cm-bl-hero::before {
    content: ''; position: absolute; inset: 0 0 auto; height: 460px; z-index: -1; pointer-events: none;
    background: radial-gradient(640px 320px at 90% 0%, rgba(139, 92, 246, .16), transparent 70%), radial-gradient(520px 300px at 0% 30%, rgba(16, 201, 165, .1), transparent 70%);
}
.cm-bl-hero__grid { display: grid; gap: 26px; align-items: end; }
.cm-bl-hero__grid > * { min-width: 0; }
.cm-bl-hero h1 { font-size: clamp(36px, 7.4vw, 60px); font-weight: 800; letter-spacing: -.035em; margin-bottom: 14px; max-width: 760px; }
.cm-bl-hero__lead { font-size: clamp(16.5px, 2.2vw, 18.5px); max-width: 580px; margin: 0; }

/* ---------- Search ---------- */
.cm-bl-search__label { display: block; font-size: 13px; font-weight: 700; color: var(--cm-muted); margin-bottom: 8px; }
.cm-bl-search__box {
    position: relative; display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 16px; border-radius: 18px;
    background: var(--cm-surface); box-shadow: var(--cm-shadow), inset 0 0 0 1px var(--cm-line); transition: box-shadow .3s;
}
.cm-bl-search__box:focus-within { box-shadow: var(--cm-shadow), inset 0 0 0 2px var(--cm-primary); }
.cm-bl-search__box > i { color: var(--cm-muted); }
.cm-bl-search__box input { flex: 1; min-width: 0; height: 44px; border: 0; outline: 0; background: none; font: inherit; font-size: 16px; color: var(--cm-ink); }
.cm-bl-search__box input::-webkit-search-cancel-button { display: none; }
.cm-bl-search__kbd { display: none; padding: 2px 8px; border-radius: 6px; font: 600 12px var(--cm-font); color: var(--cm-muted); background: var(--cm-bg); box-shadow: inset 0 0 0 1px var(--cm-line); }
.cm-bl-search__box:focus-within .cm-bl-search__kbd { display: none !important; }
.cm-bl-search__clear { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; color: var(--cm-muted); background: var(--cm-bg); }
.cm-bl-search__clear:hover { color: #fff; background: var(--cm-ink); }
.cm-bl-search__go { flex: none; }

/* ---------- Categories ---------- */
.cm-bl-cats-wrap { position: sticky; top: 0; z-index: 20; padding: 10px 0; transition: transform .45s var(--cm-ease); }
body:has(.cm-header.is-scrolled:not(.is-hidden)) .cm-bl-cats-wrap { transform: translateY(64px); }
.cm-bl-cats {
    display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; width: max-content; max-width: 100%; padding: 6px; border-radius: 999px;
    background: rgba(255, 255, 255, .9); backdrop-filter: blur(14px); box-shadow: var(--cm-shadow-sm), inset 0 0 0 1px var(--cm-line);
}
.cm-bl-cats::-webkit-scrollbar { display: none; }
.cm-bl-cat { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--cm-ink-2); transition: background .25s, color .25s; }
.cm-bl-cat span { min-width: 22px; padding: 1px 7px; border-radius: 999px; font-size: 12px; text-align: center; background: var(--cm-bg-2); color: var(--cm-muted); }
.cm-bl-cat:hover { background: var(--cm-bg); color: var(--cm-ink); }
.cm-bl-cat.is-active { background: var(--cm-ink); color: #fff; }
.cm-bl-cat.is-active span { background: rgba(255, 255, 255, .2); color: #fff; }

/* ---------- Featured ---------- */
.cm-bl-featured-wrap { padding: 18px 0 8px; }
.cm-bl-featured__link {
    display: grid; overflow: hidden; border-radius: var(--cm-r-xl); background: var(--cm-surface); box-shadow: var(--cm-shadow-sm), inset 0 0 0 1px var(--cm-line);
    transition: box-shadow .5s var(--cm-ease), transform .5s var(--cm-ease);
}
.cm-bl-featured__link:hover { transform: translateY(-4px); box-shadow: var(--cm-shadow-lg); }
.cm-bl-featured__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--cm-bg-2); }
.cm-bl-featured__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--cm-ease); }
.cm-bl-featured__link:hover img { transform: scale(1.05); }
.cm-bl-featured__body { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 22px 20px 26px; }
.cm-bl-featured__label { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 800; letter-spacing: .03em; color: var(--cm-primary); background: var(--cm-primary-soft); }
.cm-bl-featured__label i { color: var(--cm-sun); }
.cm-bl-featured__title { font-size: clamp(25px, 3.8vw, 38px); line-height: 1.12; letter-spacing: -.025em; margin: 0; }
.cm-bl-featured__excerpt { font-size: 16.5px; color: var(--cm-ink-2); }
.cm-bl-featured__meta { font-size: 14px; font-weight: 600; color: var(--cm-muted); }
.cm-bl-featured__btn { margin-top: 4px; pointer-events: none; }

/* ---------- List + bar ---------- */
.cm-bl-list { padding: 26px 0 70px; }
.cm-bl-list__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; min-height: 36px; }
.cm-bl-list__summary { margin: 0; font-family: var(--cm-display); font-weight: 700; font-size: 20px; color: var(--cm-ink); }
.cm-bl-list__reset { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--cm-primary); }
.cm-bl-list__reset[hidden] { display: none; }

/* ---------- Grid + cards ---------- */
.cm-bl-results { position: relative; transition: opacity .25s; }
.cm-bl-results[aria-busy="true"] { opacity: .45; pointer-events: none; }
.cm-bl-results[aria-busy="true"]::after {
    content: ''; position: absolute; top: 80px; left: 50%; width: 42px; height: 42px; margin-left: -21px; border-radius: 50%;
    border: 3px solid var(--cm-primary-soft); border-top-color: var(--cm-primary); animation: cm-bl-spin .8s linear infinite;
}
.cm-bl-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.cm-bl-card { animation: cm-bl-in .6s var(--cm-ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
.cm-bl-card__link {
    display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: var(--cm-r-lg); background: var(--cm-surface);
    box-shadow: var(--cm-shadow-sm), inset 0 0 0 1px var(--cm-line); transition: transform .5s var(--cm-ease), box-shadow .5s var(--cm-ease);
}
.cm-bl-card__link:hover { transform: translateY(-6px); box-shadow: var(--cm-shadow), inset 0 0 0 1px rgba(91, 61, 245, .25); }
.cm-bl-card__media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--cm-bg-2); }
.cm-bl-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--cm-ease); }
.cm-bl-card__link:hover .cm-bl-card__media img { transform: scale(1.06); }
.cm-bl-card__cat { position: absolute; left: 12px; top: 12px; max-width: calc(100% - 24px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 6px 11px; border-radius: 999px; font-size: 12px; font-weight: 800; color: var(--cm-ink); background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); }
.cm-bl-card__body { display: flex; flex-direction: column; flex: 1; gap: 8px; padding: 18px 20px 20px; }
.cm-bl-card__meta { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; font-weight: 600; color: var(--cm-muted); }
.cm-bl-card__title { font-size: 20px; line-height: 1.25; letter-spacing: -.01em; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cm-bl-card__excerpt { flex: 1; font-size: 15px; color: var(--cm-ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cm-bl-card__more { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 14.5px; font-weight: 700; color: var(--cm-primary); }
.cm-bl-card__more i { transition: transform .35s var(--cm-ease); }
.cm-bl-card__link:hover .cm-bl-card__more i { transform: translateX(4px); }

/* ---------- Empty + error ---------- */
.cm-bl-empty, .cm-bl-error { text-align: center; padding: 48px 20px; border-radius: var(--cm-r-lg); background: var(--cm-surface); box-shadow: inset 0 0 0 1px var(--cm-line); }
.cm-bl-empty__icon { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; margin-bottom: 14px; font-size: 22px; color: var(--cm-primary); background: var(--cm-primary-soft); }
.cm-bl-empty h2 { font-size: 24px; margin-bottom: 6px; }
.cm-bl-empty p { max-width: 440px; margin: 0 auto 18px; }
.cm-bl-error { margin-top: 18px; }
.cm-bl-error p { margin-bottom: 14px; }

/* ---------- Pagination ---------- */
.cm-bl-pages { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 36px; }
.cm-bl-pages ul { display: flex; gap: 6px; }
.cm-bl-pages__btn { min-width: 44px; height: 44px; padding: 0 10px; border-radius: 14px; display: grid; place-items: center; font-weight: 700; color: var(--cm-ink); background: var(--cm-surface); box-shadow: inset 0 0 0 1px var(--cm-line); transition: background .25s, color .25s, box-shadow .25s; }
a.cm-bl-pages__btn:hover { background: var(--cm-bg); box-shadow: inset 0 0 0 1px var(--cm-primary); color: var(--cm-primary); }
.cm-bl-pages__btn.is-current { background: var(--cm-ink); color: #fff; box-shadow: none; }
.cm-bl-pages__btn.is-disabled { opacity: .4; }
.cm-bl-pages__dots { display: grid; place-items: center; min-width: 24px; height: 44px; color: var(--cm-muted); }
.cm-bl-pages__info { flex-basis: 100%; text-align: center; margin: 6px 0 0; font-size: 13.5px; color: var(--cm-muted); }

/* ==========================================================================
   SINGLE POST
   ========================================================================== */

.cm-bp-progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 200; pointer-events: none; }
.cm-bp-progress span { display: block; height: 100%; width: 100%; background: var(--cm-grad); transform: scaleX(0); transform-origin: 0 50%; }

/* ---------- Header ---------- */
.cm-bp-head { position: relative; padding: calc(var(--cm-header-h) + 36px) 0 28px; }
.cm-bp-head::before {
    content: ''; position: absolute; inset: 0 0 auto; height: 420px; z-index: -1; pointer-events: none;
    background: radial-gradient(620px 300px at 85% 0%, rgba(139, 92, 246, .14), transparent 70%), radial-gradient(480px 260px at 5% 30%, rgba(255, 77, 109, .08), transparent 70%);
}
.cm-bp-head__inner { max-width: 860px; }
.cm-bp-head__cat { display: inline-block; margin-bottom: 16px; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 800; letter-spacing: .03em; color: var(--cm-primary); background: var(--cm-primary-soft); transition: background .25s, color .25s; }
.cm-bp-head__cat:hover { background: var(--cm-primary); color: #fff; }
.cm-bp-head h1 { font-size: clamp(32px, 6vw, 54px); line-height: 1.08; letter-spacing: -.035em; margin-bottom: 16px; overflow-wrap: anywhere; }
.cm-bp-head__lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--cm-ink-2); margin-bottom: 22px; }
.cm-bp-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cm-bp-meta__avatar { width: 46px; height: 46px; flex: none; border-radius: 50%; display: grid; place-items: center; font-family: var(--cm-display); font-weight: 800; font-size: 16px; color: #fff; background: var(--cm-grad); }
.cm-bp-meta__who { display: flex; flex-direction: column; font-size: 14px; color: var(--cm-muted); }
.cm-bp-meta__who strong { font-size: 15px; color: var(--cm-ink); }
.cm-bp-meta__share { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--cm-ink); background: var(--cm-surface); box-shadow: inset 0 0 0 1px var(--cm-line); }
.cm-bp-meta__share[hidden] { display: none; }

/* ---------- Cover ---------- */
.cm-bp-cover { margin: 0 0 34px; border-radius: var(--cm-r-xl); overflow: hidden; aspect-ratio: 16 / 9; background: var(--cm-bg-2); box-shadow: var(--cm-shadow); }
.cm-bp-cover img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Layout ---------- */
.cm-bp-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding-bottom: 40px; }
.cm-bp-main { min-width: 0; max-width: 760px; }
.cm-bp-side { display: none; }

/* ---------- Table of contents ---------- */
.cm-bp-toc ol { counter-reset: toc; display: grid; gap: 2px; }
.cm-bp-toc li a { display: block; padding: 7px 10px; border-radius: 10px; font-size: 14.5px; line-height: 1.4; color: var(--cm-ink-2); transition: background .25s, color .25s; }
.cm-bp-toc li.is-h3 a { padding-left: 24px; font-size: 13.5px; }
.cm-bp-toc li a:hover { background: var(--cm-bg); color: var(--cm-ink); }
.cm-bp-toc li a.is-active { background: var(--cm-primary-soft); color: var(--cm-primary); font-weight: 700; }
.cm-bp-toc--inline { margin-bottom: 28px; border-radius: 18px; background: var(--cm-surface); box-shadow: inset 0 0 0 1px var(--cm-line); }
.cm-bp-toc--inline summary { display: flex; align-items: center; gap: 10px; padding: 16px 18px; cursor: pointer; list-style: none; font-weight: 800; color: var(--cm-ink); }
.cm-bp-toc--inline summary::-webkit-details-marker { display: none; }
.cm-bp-toc--inline summary span { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--cm-muted); }
.cm-bp-toc--inline summary::after { content: '\f078'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 12px; color: var(--cm-muted); transition: transform .3s; }
.cm-bp-toc--inline[open] summary::after { transform: rotate(180deg); }
.cm-bp-toc--inline ol { padding: 0 10px 14px; }

/* ---------- Sidebar ---------- */
.cm-bp-side__sticky { position: sticky; top: calc(var(--cm-header-h) + 20px); display: grid; gap: 22px; }
.cm-bp-side__label { margin: 0 0 8px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--cm-muted); }
.cm-bp-toc--side ol { max-height: 46vh; overflow-y: auto; scrollbar-width: thin; }
.cm-bp-side__icons { display: flex; flex-wrap: wrap; gap: 8px; }
.cm-bp-side__icons a, .cm-bp-side__icons button { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--cm-ink); background: var(--cm-surface); box-shadow: inset 0 0 0 1px var(--cm-line); transition: background .25s, color .25s, transform .3s var(--cm-ease); }
.cm-bp-side__icons a:hover, .cm-bp-side__icons button:hover { background: var(--cm-ink); color: #fff; transform: translateY(-2px); }
.cm-bp-side__card { padding: 18px; border-radius: 18px; background: var(--cm-grad-soft); }
.cm-bp-side__card p { font-size: 14.5px; margin-bottom: 14px; }
.cm-bp-side__card strong { display: block; color: var(--cm-ink); margin-bottom: 2px; }

/* ---------- Tags ---------- */
.cm-bp-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--cm-line); }
.cm-bp-tags span { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--cm-muted); margin-right: 4px; }
.cm-bp-tags a { padding: 6px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 700; color: var(--cm-ink-2); background: var(--cm-bg); transition: background .25s, color .25s; }
.cm-bp-tags a:hover { background: var(--cm-primary); color: #fff; }

/* ---------- Share ---------- */
.cm-bp-share { position: relative; display: grid; gap: 16px; margin-top: 28px; padding: 24px 22px; border-radius: 22px; background: var(--cm-surface); box-shadow: var(--cm-shadow-sm), inset 0 0 0 1px var(--cm-line); }
.cm-bp-share h2 { font-size: 22px; margin-bottom: 4px; }
.cm-bp-share p { margin: 0; font-size: 15px; }
.cm-bp-share__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.cm-bp-share__btn { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; color: #fff; transition: transform .35s var(--cm-ease), box-shadow .35s; }
.cm-bp-share__btn:hover { transform: translateY(-3px); box-shadow: var(--cm-shadow); }
.cm-bp-share__btn--whatsapp { background: #25D366; }
.cm-bp-share__btn--x { background: #0F1419; }
.cm-bp-share__btn--facebook { background: #1877F2; }
.cm-bp-share__btn--linkedin { background: #0A66C2; }
.cm-bp-share__btn--email { background: var(--cm-coral); }
.cm-bp-share__btn--copy, .cm-bp-share__btn--native { color: var(--cm-ink); background: var(--cm-bg); box-shadow: inset 0 0 0 1px var(--cm-line); }
.cm-bp-share__btn--native[hidden] { display: none; }
.cm-bp-share__toast { position: absolute; right: 18px; top: -14px; margin: 0; padding: 7px 13px; border-radius: 999px; font-size: 13px !important; font-weight: 700; color: #fff; background: var(--cm-mint); opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; pointer-events: none; }
.cm-bp-share__toast.is-on { opacity: 1; transform: none; }

/* ---------- CTA ---------- */
.cm-bp-cta { position: relative; overflow: hidden; display: grid; gap: 16px; margin-top: 22px; padding: 26px 22px; border-radius: 22px; background: var(--cm-grad); color: rgba(255, 255, 255, .88); }
.cm-bp-cta::after { content: ''; position: absolute; width: 280px; height: 280px; border-radius: 50%; right: -110px; top: -140px; background: rgba(255, 255, 255, .14); pointer-events: none; }
.cm-bp-cta__icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 18px; color: var(--cm-primary); background: #fff; }
.cm-bp-cta h2 { color: #fff; font-size: 23px; margin-bottom: 6px; }
.cm-bp-cta p { margin: 0; font-size: 15.5px; }
.cm-bp-cta .cm-btn { position: relative; z-index: 1; justify-self: start; }

/* ---------- Related ---------- */
.cm-bp-related { background: var(--cm-bg); }

/* ==========================================================================
   ARTICLE CONTENT (from WordPress)
   ========================================================================== */
.cm-prose { font-size: 17.5px; line-height: 1.75; color: var(--cm-ink-2); overflow-wrap: break-word; }
.cm-prose > *:first-child { margin-top: 0; }
.cm-prose p { margin: 0 0 1.25em; }
.cm-prose h2, .cm-prose h3, .cm-prose h4 { color: var(--cm-ink); letter-spacing: -.02em; scroll-margin-top: calc(var(--cm-header-h) + 24px); }
.cm-prose h2 { font-size: clamp(25px, 3.4vw, 32px); line-height: 1.2; margin: 1.8em 0 .6em; }
.cm-prose h3 { font-size: clamp(21px, 2.8vw, 25px); line-height: 1.25; margin: 1.6em 0 .5em; }
.cm-prose h4 { font-size: 19px; margin: 1.4em 0 .4em; }
.cm-prose a { color: var(--cm-primary); font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: rgba(91, 61, 245, .3); transition: text-decoration-color .25s; }
.cm-prose a:hover { text-decoration-color: currentColor; }
.cm-prose strong, .cm-prose b { color: var(--cm-ink); }
.cm-prose ul, .cm-prose ol { margin: 0 0 1.4em; padding-left: 1.4em; }
.cm-prose ul { list-style: disc; }
.cm-prose ol { list-style: decimal; }
.cm-prose li { margin-bottom: .45em; padding-left: .2em; }
.cm-prose li::marker { color: var(--cm-primary); font-weight: 700; }
.cm-prose blockquote, .cm-prose .wp-block-quote, .cm-prose .wp-block-pullquote {
    margin: 1.8em 0; padding: 22px 24px; border: 0; border-left: 4px solid var(--cm-primary); border-radius: 0 18px 18px 0;
    background: var(--cm-primary-soft); font-family: var(--cm-display); font-size: 1.12em; line-height: 1.5; color: var(--cm-ink);
}
.cm-prose blockquote p:last-child { margin-bottom: 0; }
.cm-prose blockquote cite { display: block; margin-top: 10px; font-family: var(--cm-font); font-size: 14px; font-style: normal; color: var(--cm-muted); }
.cm-prose img { max-width: 100%; height: auto; border-radius: 16px; }
.cm-prose figure { margin: 1.8em 0; max-width: 100%; }
.cm-prose figure img { display: block; margin: 0 auto; }
.cm-prose figcaption, .cm-prose .wp-caption-text { margin-top: 10px; text-align: center; font-size: 14px; color: var(--cm-muted); }
.cm-prose .wp-caption { max-width: 100%; }
.cm-prose .aligncenter { margin-left: auto; margin-right: auto; text-align: center; }
.cm-prose hr { margin: 2.4em 0; border: 0; height: 1px; background: var(--cm-line); }
.cm-prose table { display: block; width: 100%; max-width: 100%; overflow-x: auto; margin: 1.6em 0; border-collapse: collapse; font-size: 15px; }
.cm-prose th, .cm-prose td { padding: 11px 14px; border: 1px solid var(--cm-line); text-align: left; vertical-align: top; }
.cm-prose th { background: var(--cm-bg); color: var(--cm-ink); font-weight: 700; }
.cm-prose pre { margin: 1.6em 0; padding: 18px; border-radius: 14px; overflow-x: auto; font-size: 14px; color: #E8E6FF; background: var(--cm-ink); }
.cm-prose code { padding: 2px 6px; border-radius: 6px; font-size: .88em; background: var(--cm-bg); color: var(--cm-ink); }
.cm-prose pre code { padding: 0; background: none; color: inherit; }
.cm-prose iframe, .cm-prose video, .cm-prose embed, .cm-prose object { display: block; max-width: 100%; border: 0; border-radius: 16px; }
.cm-prose iframe[src*="youtube"], .cm-prose iframe[src*="youtu.be"], .cm-prose iframe[src*="vimeo"], .cm-prose video { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.cm-prose .wp-block-embed, .cm-prose .wp-block-video { margin: 1.8em 0; }
.cm-prose .wp-block-embed__wrapper { position: relative; }
.cm-prose .twitter-tweet, .cm-prose .instagram-media, .cm-prose .tiktok-embed { margin: 1.6em auto !important; }
.cm-prose .wp-block-gallery, .cm-prose .gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 1.8em 0; padding: 0; list-style: none; }
.cm-prose .wp-block-gallery figure, .cm-prose .gallery-item { margin: 0; }
.cm-prose .wp-block-gallery img, .cm-prose .gallery img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; }
.cm-prose .wp-block-button__link, .cm-prose .wp-block-button a { display: inline-flex; padding: 13px 22px; border-radius: 999px; font-weight: 700; text-decoration: none; color: #fff; background: var(--cm-primary); }
.cm-prose .wp-block-columns { display: grid; gap: 20px; margin: 1.6em 0; }
.cm-prose .has-text-align-center { text-align: center; }
.cm-prose .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ==========================================================================
   BREAKPOINTS
   ========================================================================== */
@media (min-width: 640px) {
    .cm-bl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
    .cm-bp-share { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 26px 28px; }
    .cm-bp-cta { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; padding: 28px; }
    .cm-bp-cta .cm-btn { justify-self: end; }
    .cm-prose .wp-block-gallery, .cm-prose .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .cm-prose .wp-block-columns { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
    .cm-prose .alignleft { float: left; max-width: 46%; margin: .4em 1.6em 1em 0; }
    .cm-prose .alignright { float: right; max-width: 46%; margin: .4em 0 1em 1.6em; }
}

@media (min-width: 960px) {
    .cm-bl-hero__grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; }
    .cm-bl-search__kbd { display: inline-block; }
    .cm-bl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
    .cm-bl-featured__link { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
    .cm-bl-featured__media { aspect-ratio: auto; min-height: 420px; }
    .cm-bl-featured__body { justify-content: center; padding: 40px 44px; }

    .cm-bp-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 64px; }
    .cm-bp-side { display: block; }
    .cm-bp-toc--inline { display: none; }
}

@media (min-width: 1200px) {
    .cm-bp-layout { grid-template-columns: minmax(0, 760px) 300px; justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
    .cm-bl-card { animation: none; }
}

@keyframes cm-bl-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes cm-bl-spin { to { transform: rotate(360deg); } }
