/* ==========================================================================
   Collins Meroka — shared page components
   Loaded after sk-design.css. Everything here is used by the Blade partials in
   resources/views/partials, so a content page looks the same whichever
   type_format template rendered it.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Page hero
   One band directly under the fixed navbar on every content page.
   -------------------------------------------------------------------------- */
.cm-hero {
    position: relative;
    padding: 2.25rem 0 2.5rem;
    background: var(--bs-primary-subtle);
    border-bottom: 1px solid color-mix(in srgb, var(--sk-accent) 16%, #e5e5e5 84%);
}

.cm-hero__eyebrow {
    font-family: var(--sk-font-heading);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--bs-primary);
    margin: 0 0 0.5rem;
}

.cm-hero__title {
    font-family: var(--sk-font-heading);
    font-size: clamp(1.75rem, 3.6vw, 2.5rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.015em;
    color: #1a1a1a;
    margin: 0 0 0.85rem;
    text-wrap: balance;
}

.cm-hero__lead {
    font-size: 1.0625rem;
    line-height: 1.65;
    color: #3d3d3d;
    max-width: 44rem;
    margin: 0;
}

.cm-hero__meta {
    margin-top: 1.15rem;
}

.cm-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

/* Article heroes carry a byline instead of buttons, so they sit tighter. */
.cm-hero--article {
    padding-bottom: 2rem;
}

.cm-hero--compact {
    padding: 1.75rem 0 1.85rem;
}

.cm-hero--compact .cm-hero__title {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

@media (max-width: 575.98px) {
    .cm-hero__actions .btn {
        width: 100%;
    }
}

/* --------------------------------------------------------------------------
   2. Breadcrumbs
   -------------------------------------------------------------------------- */
.cm-crumbs {
    margin-bottom: 0.9rem;
}

.cm-crumbs__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.8125rem;
}

.cm-crumbs__item {
    display: inline-flex;
    align-items: center;
    color: #6b6b6b;
}

.cm-crumbs__item + .cm-crumbs__item::before {
    content: "/";
    margin-right: 0.5rem;
    color: #b9b0a7;
}

.cm-crumbs__link {
    color: #555;
    text-decoration: none;
    font-weight: 600;
}

.cm-crumbs__link:hover {
    color: var(--sk-accent);
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

/* --------------------------------------------------------------------------
   3. Article / content layout
   A measured reading column with an optional sticky sidebar.
   -------------------------------------------------------------------------- */
.cm-layout {
    padding: 2.5rem 0 3rem;
    background: #fff;
}

.cm-layout__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

.cm-layout__aside {
    min-width: 0;
}

.cm-layout__main {
    min-width: 0;
}

@media (min-width: 992px) {
    .cm-layout {
        padding: 3rem 0 4rem;
    }

    .cm-layout__grid {
        grid-template-columns: minmax(0, 1fr) 18.5rem;
        gap: 3.5rem;
    }

    .cm-layout--aside-first .cm-layout__grid {
        grid-template-columns: 18.5rem minmax(0, 1fr);
    }

    .cm-layout--aside-first .cm-layout__aside {
        order: -1;
    }

    .cm-layout__aside-inner {
        position: sticky;
        top: calc(var(--sk-navbar-height) + 1.5rem);
    }
}

/* --------------------------------------------------------------------------
   4. Prose — the wrapper around HTML that came out of the CMS editor
   -------------------------------------------------------------------------- */
.cm-rich {
    font-size: 1.0417rem;
    line-height: 1.75;
    color: #2d2d2d;
    max-width: 46rem;
}

.cm-rich--wide {
    max-width: 54rem;
}

.cm-rich > *:first-child {
    margin-top: 0;
}

.cm-rich > *:last-child {
    margin-bottom: 0;
}

.cm-rich p {
    margin: 0 0 1.15rem;
}

.cm-rich h2 {
    font-family: var(--sk-font-heading);
    font-size: clamp(1.375rem, 2.4vw, 1.667rem);
    font-weight: 700;
    line-height: 1.25;
    color: #1a1a1a;
    margin: 2.5rem 0 1rem;
    scroll-margin-top: calc(var(--sk-navbar-height) + 1.5rem);
}

.cm-rich h3 {
    font-family: var(--sk-font-heading);
    font-size: 1.222rem;
    font-weight: 700;
    line-height: 1.3;
    color: #1a1a1a;
    margin: 1.85rem 0 0.75rem;
    scroll-margin-top: calc(var(--sk-navbar-height) + 1.5rem);
}

.cm-rich h4 {
    font-family: var(--sk-font-heading);
    font-size: 1.0417rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 1.5rem 0 0.6rem;
}

/* A hairline under H2s gives long CMS pages a scannable rhythm. */
.cm-rich h2::after {
    content: "";
    display: block;
    width: 2.5rem;
    height: 2px;
    margin-top: 0.7rem;
    background: var(--sk-accent);
}

.cm-rich ul,
.cm-rich ol {
    margin: 0 0 1.25rem;
    padding-left: 0;
    list-style: none;
}

.cm-rich ul > li,
.cm-rich ol > li {
    position: relative;
    padding-left: 1.6rem;
    margin-bottom: 0.6rem;
}

.cm-rich ul > li::before {
    content: "";
    position: absolute;
    left: 0.15rem;
    top: 0.72em;
    width: 0.4rem;
    height: 0.4rem;
    background: var(--sk-accent);
}

.cm-rich ol {
    counter-reset: cm-rich-ol;
}

.cm-rich ol > li {
    counter-increment: cm-rich-ol;
}

.cm-rich ol > li::before {
    content: counter(cm-rich-ol) ".";
    position: absolute;
    left: 0;
    top: 0;
    font-family: var(--sk-font-heading);
    font-weight: 700;
    color: var(--sk-accent);
}

.cm-rich li > ul,
.cm-rich li > ol {
    margin: 0.6rem 0 0;
}

.cm-rich a {
    color: #1a1a1a;
    text-decoration: underline;
    text-decoration-color: var(--sk-accent);
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.18em;
}

.cm-rich a:hover {
    color: var(--sk-accent);
}

.cm-rich strong {
    font-weight: 700;
    color: #1a1a1a;
}

.cm-rich__img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1.75rem 0;
    border: 1px solid #e5e5e5;
}

/* Article lead image: cap the height so tall uploads do not push the copy
   below the fold. */
.cm-layout__main > .cm-rich__img:first-child {
    width: 100%;
    max-height: 26rem;
    object-fit: cover;
    margin-bottom: 2rem;
}

.cm-rich__cta {
    margin: 1.75rem 0;
}

.cm-rich__table {
    overflow-x: auto;
    margin: 0 0 1.5rem;
    border: 1px solid #e5e5e5;
}

.cm-rich__table > table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    font-size: 0.9444rem;
}

.cm-rich__table th,
.cm-rich__table td {
    padding: 0.7rem 0.9rem;
    border-bottom: 1px solid #ececec;
    text-align: left;
    vertical-align: top;
}

.cm-rich__table th {
    font-family: var(--sk-font-heading);
    font-weight: 700;
    color: #1a1a1a;
    background: #fafafa;
    white-space: nowrap;
}

.cm-rich__table tr:last-child td {
    border-bottom: 0;
}

.cm-rich blockquote {
    margin: 1.75rem 0;
    padding: 1.25rem 1.35rem;
    background: color-mix(in srgb, var(--sk-accent) 6%, #fff 94%);
    border-left: 3px solid var(--sk-accent);
    font-size: 1.0417rem;
}

.cm-rich blockquote p:last-child {
    margin-bottom: 0;
}

.cm-rich iframe,
.cm-rich video {
    max-width: 100%;
    margin: 1.5rem 0;
}

/* --------------------------------------------------------------------------
   5. Table of contents
   -------------------------------------------------------------------------- */
.cm-toc {
    padding: 1.15rem 1.25rem;
    background: #fafafa;
    border: 1px solid #e5e5e5;
    margin-bottom: 1.75rem;
    /* When it sits above the article body, keep it on the reading measure. */
    max-width: 46rem;
}

.cm-toc__heading {
    font-family: var(--sk-font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1a1a1a;
    margin: 0 0 0.75rem;
}

.cm-toc__list {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: cm-toc;
}

.cm-toc__item {
    counter-increment: cm-toc;
    border-top: 1px solid #ececec;
}

.cm-toc__item:first-child {
    border-top: 0;
}

.cm-toc__link {
    display: block;
    padding: 0.5rem 0;
    font-size: 0.9028rem;
    line-height: 1.4;
    color: #444;
    text-decoration: none;
}

.cm-toc__link::before {
    content: counter(cm-toc) ".";
    margin-right: 0.4rem;
    font-weight: 700;
    color: var(--sk-accent);
}

.cm-toc__link:hover {
    color: var(--sk-accent);
}

/* --------------------------------------------------------------------------
   6. Sidebar blocks
   -------------------------------------------------------------------------- */
.cm-aside-block {
    border: 1px solid #e5e5e5;
    background: #fff;
    padding: 1.15rem 1.25rem;
    margin-bottom: 1.5rem;
}

.cm-aside-block--accent {
    background: color-mix(in srgb, var(--sk-accent) 7%, #fff 93%);
    border-color: color-mix(in srgb, var(--sk-accent) 22%, #e5e5e5 78%);
}

.cm-aside-block__heading {
    font-family: var(--sk-font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1a1a1a;
    margin: 0 0 0.85rem;
}

.cm-aside-block__text {
    font-size: 0.9028rem;
    line-height: 1.6;
    color: #555;
    margin: 0 0 1rem;
}

.cm-aside-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cm-aside-list__item {
    border-top: 1px solid #ececec;
}

.cm-aside-list__item:first-child {
    border-top: 0;
}

.cm-aside-list__link {
    display: block;
    padding: 0.6rem 0;
    font-size: 0.9028rem;
    font-weight: 600;
    line-height: 1.4;
    color: #1a1a1a;
    text-decoration: none;
}

.cm-aside-list__link:hover {
    color: var(--sk-accent);
}

/* --------------------------------------------------------------------------
   7. Card grids and link lists
   -------------------------------------------------------------------------- */
.cm-cards {
    padding: 2.5rem 0 3rem;
    background: #fff;
    border-top: 1px solid #ececec;
}

.cm-cards--band {
    background: #fafafa;
}

.cm-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.25rem 1.35rem 1.35rem;
    background: #fff;
    border: 1px solid #e5e5e5;
    text-decoration: none;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.cm-card:hover {
    border-color: color-mix(in srgb, var(--sk-accent) 45%, #e5e5e5 55%);
    transform: translateY(-2px);
}

.cm-card__title {
    font-family: var(--sk-font-heading);
    font-size: 1.0556rem;
    font-weight: 700;
    line-height: 1.35;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.cm-card:hover .cm-card__title {
    color: var(--sk-accent);
}

.cm-card__text {
    font-size: 0.9028rem;
    line-height: 1.6;
    color: #595959;
    margin-bottom: 0.9rem;
}

.cm-card__more {
    margin-top: auto;
    font-family: var(--sk-font-heading);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--sk-accent);
}

.cm-card__more::after {
    content: " \2192";
}

.cm-linklist {
    display: grid;
    grid-template-columns: 1fr;
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid #e5e5e5;
}

@media (min-width: 576px) {
    .cm-linklist {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .cm-linklist {
        grid-template-columns: repeat(3, 1fr);
    }
}

.cm-linklist__item {
    border-bottom: 1px solid #e5e5e5;
}

.cm-linklist__link {
    display: block;
    padding: 0.85rem 1rem 0.85rem 0;
    font-family: var(--sk-font-heading);
    font-size: 0.9444rem;
    font-weight: 600;
    line-height: 1.4;
    color: #1a1a1a;
    text-decoration: none;
}

.cm-linklist__link:hover {
    color: var(--sk-accent);
}

/* --------------------------------------------------------------------------
   8. Byline and share
   -------------------------------------------------------------------------- */
.cm-byline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.8889rem;
    color: #5c5c5c;
}

.cm-byline__item {
    display: inline-flex;
    align-items: center;
}

.cm-byline__item + .cm-byline__item::before {
    content: "";
    width: 3px;
    height: 3px;
    margin-right: 0.75rem;
    border-radius: 50%;
    background: #bdb5ad;
}

.cm-byline__author {
    font-weight: 700;
    color: #1a1a1a;
    margin-left: 0.3rem;
}

a.cm-byline__author {
    text-decoration: underline;
    text-decoration-color: var(--sk-accent);
    text-underline-offset: 0.18em;
}

.cm-share {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e5e5;
}

.cm-share__label {
    font-family: var(--sk-font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1a1a1a;
    margin: 0 0 0.75rem;
}

.cm-share__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.cm-share__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.375rem;
    height: 2.375rem;
    border: 1px solid #e0e0e0;
    color: #444;
    text-decoration: none;
    transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.cm-share__link:hover {
    border-color: var(--sk-accent);
    background: var(--sk-accent);
    color: #fff;
}

/* --------------------------------------------------------------------------
   8b. Quote card, fact lists and post cards
   -------------------------------------------------------------------------- */
.cm-quote-card {
    padding: 1.5rem;
    background: #fff;
    border: 1px solid color-mix(in srgb, var(--sk-accent) 25%, #e5e5e5 75%);
}

.cm-quote-card__heading {
    font-family: var(--sk-font-heading);
    font-size: 1.1111rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 0.5rem;
}

.cm-quote-card__text {
    font-size: 0.9028rem;
    line-height: 1.6;
    color: #555;
    margin: 0 0 1rem;
}

.cm-quote-card__input {
    display: block;
    width: 100%;
    padding: 0.65rem 0.85rem;
    margin-bottom: 0.65rem;
    font-size: 1rem;
    border: 1px solid #d8d8d8;
    border-radius: 0;
    background: #fff;
}

.cm-quote-card__input:focus {
    outline: none;
    border-color: var(--sk-accent);
    box-shadow: 0 0 0 0.15rem color-mix(in srgb, var(--sk-accent) 25%, transparent);
}

.cm-quote-card__note {
    font-size: 0.7778rem;
    color: #777;
    margin: 0.75rem 0 0;
}

.cm-factlist {
    margin: 0;
    font-size: 0.9028rem;
}

.cm-factlist__term {
    font-family: var(--sk-font-heading);
    font-size: 0.7222rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #8a8a8a;
    margin-top: 0.85rem;
}

.cm-factlist__term:first-of-type {
    margin-top: 0;
}

.cm-factlist__value {
    margin: 0.15rem 0 0;
    line-height: 1.5;
    color: #2d2d2d;
}

.cm-factlist__value a {
    color: #1a1a1a;
    text-decoration: underline;
    text-decoration-color: var(--sk-accent);
    text-underline-offset: 0.15em;
    word-break: break-word;
}

.cm-post {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid #e5e5e5;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.cm-post:hover {
    border-color: color-mix(in srgb, var(--sk-accent) 45%, #e5e5e5 55%);
    transform: translateY(-2px);
}

.cm-post__media {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f2f2f2;
}

.cm-post__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cm-post__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 1.1rem 1.2rem 1.2rem;
}

.cm-post__title {
    font-family: var(--sk-font-heading);
    font-size: 1.0556rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 0.5rem;
}

.cm-post__title a {
    color: #1a1a1a;
    text-decoration: none;
}

.cm-post__title a:hover {
    color: var(--sk-accent);
}

.cm-post__excerpt {
    font-size: 0.9028rem;
    line-height: 1.6;
    color: #595959;
    margin: 0 0 0.85rem;
}

.cm-post__meta {
    margin: auto 0 0;
    font-size: 0.7778rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #8a8a8a;
}

.cm-post__kicker {
    font-family: var(--sk-font-heading);
    font-size: 0.7222rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--bs-primary);
    margin: 0 0 0.4rem;
}

/* --------------------------------------------------------------------------
   8c. Blog index feature block
   -------------------------------------------------------------------------- */
.cm-feature {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 992px) {
    .cm-feature {
        grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr);
        gap: 2.5rem;
    }
}

.cm-feature__lead {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e5e5e5;
}

.cm-feature__media {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f2f2f2;
}

.cm-feature__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cm-feature__body {
    padding: 1.35rem 1.5rem 1.5rem;
}

.cm-feature__title {
    font-family: var(--sk-font-heading);
    font-size: clamp(1.222rem, 2.2vw, 1.5rem);
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 0.65rem;
}

.cm-feature__title a {
    color: #1a1a1a;
    text-decoration: none;
}

.cm-feature__title a:hover {
    color: var(--sk-accent);
}

.cm-feature__excerpt {
    font-size: 0.9722rem;
    line-height: 1.65;
    color: #555;
    margin: 0 0 0.85rem;
}

.cm-feature__side-heading {
    font-family: var(--sk-font-heading);
    font-size: 0.7222rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1a1a1a;
    margin: 0 0 0.85rem;
}

.cm-feature__list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid #e5e5e5;
}

.cm-feature__list-item {
    border-bottom: 1px solid #e5e5e5;
}

.cm-mini {
    display: flex;
    gap: 0.85rem;
    padding: 0.85rem 0;
    text-decoration: none;
}

.cm-mini__img {
    width: 5.333rem;
    height: 4rem;
    object-fit: cover;
    flex-shrink: 0;
    background: #f2f2f2;
}

.cm-mini__body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.cm-mini__kicker {
    font-family: var(--sk-font-heading);
    font-size: 0.6667rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--bs-primary);
    margin-bottom: 0.2rem;
}

.cm-mini__title {
    font-family: var(--sk-font-heading);
    font-size: 0.8889rem;
    font-weight: 700;
    line-height: 1.35;
    color: #1a1a1a;
}

.cm-mini:hover .cm-mini__title {
    color: var(--sk-accent);
}

/* --------------------------------------------------------------------------
   8d. Author box, pagination and empty state
   -------------------------------------------------------------------------- */
.cm-author {
    margin-top: 2.5rem;
    padding: 1.5rem;
    background: #fafafa;
    border: 1px solid #e5e5e5;
    max-width: 46rem;
}

.cm-author__heading {
    font-family: var(--sk-font-heading);
    font-size: 0.7222rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8a8a8a;
    margin: 0 0 1rem;
}

.cm-author__body {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.cm-author__avatar {
    width: 4.889rem;
    height: 4.889rem;
    object-fit: cover;
    flex-shrink: 0;
}

.cm-author__detail {
    flex: 1 1 16rem;
    min-width: 0;
}

.cm-author__name {
    font-family: var(--sk-font-heading);
    font-size: 1.0556rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 0.4rem;
}

.cm-author__role {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #777;
    margin-top: 0.1rem;
}

.cm-author__bio {
    font-size: 0.9028rem;
    line-height: 1.6;
    color: #555;
    margin: 0 0 0.6rem;
}

.cm-author__link {
    font-family: var(--sk-font-heading);
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--sk-accent);
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.cm-pagination {
    margin-top: 2.5rem;
}

.cm-pagination .pagination {
    justify-content: center;
    margin: 0;
    gap: 0.25rem;
}

.cm-pagination .page-link {
    border-radius: 0;
    border-color: #e0e0e0;
    color: #1a1a1a;
    font-family: var(--sk-font-heading);
    font-weight: 600;
    padding: 0.45rem 0.85rem;
}

.cm-pagination .page-item.active .page-link {
    background: var(--sk-accent);
    border-color: var(--sk-accent);
    color: #fff;
}

.cm-pagination .page-link:hover {
    background: var(--bs-primary-subtle);
    border-color: var(--sk-accent);
    color: var(--bs-primary);
}

.cm-pagination__count {
    text-align: center;
    font-size: 0.8125rem;
    color: #777;
    margin: 1rem 0 0;
}

.cm-empty {
    text-align: center;
    padding: 3rem 1rem;
    border: 1px solid #e5e5e5;
    background: #fafafa;
}

.cm-empty__title {
    font-family: var(--sk-font-heading);
    font-size: 1.333rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 0.6rem;
}

.cm-empty__text {
    color: #555;
    margin: 0 0 1.25rem;
}

/* --------------------------------------------------------------------------
   8e. Author profile header
   -------------------------------------------------------------------------- */
.cm-profile {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 1.5rem 2rem;
}

.cm-profile__avatar {
    width: 8.333rem;
    height: 8.333rem;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--sk-accent);
    flex-shrink: 0;
}

.cm-profile__detail {
    flex: 1 1 22rem;
    min-width: 0;
}

.cm-profile__role {
    font-family: var(--sk-font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--bs-primary);
    margin: -0.35rem 0 0.85rem;
}

.cm-profile__bio {
    font-size: 1rem;
    line-height: 1.65;
    color: #3d3d3d;
    max-width: 44rem;
}

.cm-profile__bio p:last-child {
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   9. Section heads and CTA alignment fixes
   -------------------------------------------------------------------------- */
.cm-section-head {
    margin-bottom: 1.75rem;
}

.cm-section-head__title {
    font-family: var(--sk-font-heading);
    font-size: clamp(1.375rem, 2.5vw, 1.667rem);
    font-weight: 700;
    line-height: 1.25;
    color: #1a1a1a;
    margin: 0;
}

.cm-section-head__lead {
    font-size: 1rem;
    line-height: 1.65;
    color: #555;
    max-width: 44rem;
    margin: 0.6rem 0 0;
}

.sk-cta__inner {
    max-width: 40rem;
    margin-inline: auto;
    text-align: center;
}

.sk-cta__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

@media (max-width: 575.98px) {
    .sk-cta__actions .btn {
        width: 100%;
    }
}

/* --------------------------------------------------------------------------
   10. Chrome fixes
   -------------------------------------------------------------------------- */
/* The wordmark is a 5:1 image; let it keep its ratio at every breakpoint. */
.sk-navbar-brand__logo {
    height: 2rem;
    width: auto;
    max-width: none;
}

@media (max-width: 991.98px) {
    .sk-navbar-brand__logo {
        height: 1.75rem;
    }
}

/* Keep the floating WhatsApp button clear of the mobile viewport edge. */
@media (max-width: 767.98px) {
    .whatsapp-btn {
        bottom: 0.85rem;
        right: 0.85rem;
        padding: 0.75rem;
    }
}

/* Footer nav strip, mirroring the SEO Kenya pattern. */
.cm-footer-nav {
    background: #fff;
    border-top: 1px solid #e5e5e5;
}

.cm-footer-nav__list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    list-style: none;
    margin: 0;
    padding: 0;
    border-left: 1px solid #e5e5e5;
    border-right: 1px solid #e5e5e5;
}

@media (min-width: 992px) {
    .cm-footer-nav__list {
        grid-template-columns: repeat(4, 1fr);
    }
}

.cm-footer-nav__item {
    border-bottom: 1px solid #e5e5e5;
    border-right: 1px solid #e5e5e5;
}

@media (min-width: 992px) {
    .cm-footer-nav__item:nth-child(4n) {
        border-right: none;
    }
}

@media (max-width: 991.98px) {
    .cm-footer-nav__item:nth-child(2n) {
        border-right: none;
    }
}

.cm-footer-nav__link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 3.25rem;
    padding: 0.85rem 1rem;
    font-family: var(--sk-font-heading);
    font-size: 0.8889rem;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
    color: var(--sk-accent);
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.cm-footer-nav__link:hover,
.cm-footer-nav__link--active {
    background: var(--bs-primary-subtle);
    color: var(--bs-primary);
}

/* --------------------------------------------------------------------------
   11. Error page
   -------------------------------------------------------------------------- */
.cm-error {
    padding: 4rem 0 5rem;
    background: #fff;
}

.cm-error__code {
    font-family: var(--sk-font-heading);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--sk-accent);
    margin: 0 0 0.75rem;
}

.cm-error__title {
    font-family: var(--sk-font-heading);
    font-size: clamp(1.75rem, 3.5vw, 2.35rem);
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 1rem;
}

.cm-error__text {
    font-size: 1.0417rem;
    line-height: 1.7;
    color: #444;
    max-width: 38rem;
    margin: 0 0 1.75rem;
}

/* Blog show � same layout language as SEO Kenya (H1 + half-width body) */
.sk-blog {
    padding: 2.5rem 0 4rem;
    background: #fff;
}

.sk-blog__header {
    margin-bottom: 2.5rem;
}

.sk-blog__title {
    font-family: var(--sk-font-heading);
    font-size: clamp(1.778rem, 3.5vw, 2.222rem);
    font-weight: 700;
    line-height: 1.2;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.sk-blog__meta {
    padding: 0.875rem 1.125rem;
    background: #fff8f3;
    border: 1px solid #f0e0d4;
}

.sk-blog__meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem 1.25rem;
}

.sk-blog__meta-primary {
    font-size: 0.875rem;
    color: #444;
    line-height: 1.55;
}

.sk-blog__meta-date {
    font-weight: 600;
    color: #333;
}

.sk-blog__meta-author {
    color: var(--sk-accent);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.sk-blog__meta-author:hover {
    color: var(--sk-accent-hover, #E66300);
}

.sk-blog__industry-above-title {
    font-size: 0.875rem;
    line-height: 1.55;
    margin-bottom: 0.5rem;
}

.sk-blog__meta-read {
    font-size: 0.875rem;
    color: #777;
    line-height: 1.55;
}

.sk-blog__meta-read em {
    font-style: italic;
    font-weight: 400;
}

.sk-blog__content {
    margin-bottom: 3rem;
}

.sk-blog__share {
    padding-top: 2rem;
    border-top: 1px solid #e5e5e5;
}

.sk-blog__share-title {
    font-family: var(--sk-font-heading);
    font-size: 1.111rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.sk-blog__share-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.sk-blog__sidebar {
    top: 6rem;
    padding: 1.5rem;
    border: 1px solid #e5e5e5;
    background: #fafafa;
}

.sk-blog__sidebar-title {
    font-family: var(--sk-font-heading);
    font-size: 1.111rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.sk-blog__related-item {
    border-top: 1px solid #e8e8e8;
}

.sk-blog__related-item:first-child {
    border-top: none;
}

.sk-blog__related-link {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem 0;
    text-decoration: none;
    color: inherit;
}

.sk-blog__related-link:hover .sk-blog__related-name {
    color: var(--sk-accent);
}

.sk-blog__related-thumb {
    width: 4.5rem;
    height: 4.5rem;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #e5e5e5;
}

.sk-blog__related-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.sk-blog__related-name {
    font-family: var(--sk-font-heading);
    font-size: 0.944rem;
    font-weight: 600;
    line-height: 1.35;
    color: #1a1a1a;
}

.sk-blog__related-date {
    font-size: 0.8125rem;
    color: #888;
}

@media (min-width: 768px) {
    .sk-blog {
        padding-bottom: 5rem;
    }
}

@media (max-width: 575.98px) {
    .sk-blog__share-actions .btn {
        width: 100%;
    }

    .sk-blog__meta {
        padding: 0.75rem 0.875rem;
    }

    .sk-blog__meta-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.375rem;
    }
}
