.kisoma-public-content {
    --kisoma-content-blue: var(--secondary-color, #215679);
    --kisoma-content-green: var(--primary-color, #56cc99);
    --kisoma-content-ink: #172c3d;
    --kisoma-content-muted: #657789;
    --kisoma-content-border: #dfe8ee;
    --kisoma-content-soft: #f6faf8;
    background: #fff;
    color: var(--kisoma-content-ink);
}

.kisoma-public-content__container {
    max-width: 1180px;
}

.kisoma-content-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
    padding: 0;
    color: #718395;
    font-size: var(--kisoma-font-meta);
    line-height: 1.4;
    list-style: none;
}

.kisoma-content-breadcrumb a {
    color: #4f6f86;
    font-weight: 600;
    text-decoration: none;
}

.kisoma-content-breadcrumb a:hover,
.kisoma-content-breadcrumb a:focus-visible {
    color: var(--kisoma-content-blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.kisoma-content-breadcrumb li:not(:last-child)::after {
    content: "/";
    margin-left: 8px;
    color: #a7b4bf;
}

.kisoma-document-header {
    padding: clamp(38px, 6vw, 68px) 0 clamp(28px, 5vw, 52px);
    border-bottom: 1px solid #edf2f5;
    background: linear-gradient(180deg, #f9fcfb 0%, #fff 100%);
}

.kisoma-document-header__inner {
    max-width: 840px;
}

.kisoma-document-header__eyebrow,
.kisoma-article-category {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 12px;
    padding: 6px 11px;
    border: 1px solid rgba(86, 204, 153, .34);
    border-radius: 999px;
    background: #effaf5;
    color: #0b7650;
    font-size: var(--kisoma-font-eyebrow);
    font-weight: 700;
    letter-spacing: var(--kisoma-letter-eyebrow);
    line-height: 1;
    text-transform: uppercase;
}

.kisoma-document-header h1 {
    max-width: 820px;
    margin: 0;
    color: #143653;
    font-size: var(--kisoma-font-h1);
    font-weight: 700;
    letter-spacing: 0;
    line-height: var(--kisoma-leading-h1);
}

.kisoma-document-header__lede {
    max-width: 720px;
    margin: 14px 0 0;
    color: var(--kisoma-content-muted);
    font-size: var(--kisoma-font-body);
    line-height: var(--kisoma-leading-body);
}

.kisoma-document-header__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-top: 18px;
    color: #657789;
    font-size: var(--kisoma-font-meta);
    font-weight: 600;
}

.kisoma-document-header__meta span + span::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 4px;
    margin-right: 12px;
    border-radius: 50%;
    background: #b3c0c9;
    vertical-align: middle;
}

.kisoma-document-header__byline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #173653;
    font-weight: 700;
}

.kisoma-document-header__avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

/* Legal pages (Privacy/Terms/Refund) use the same dark green hero treatment
   as the blog listing's `.kisoma-blog-editorial__hero` -- same background,
   same padding scale, same white title -- so the two content-page families
   read as one consistent system instead of introducing another color. Just
   an H1, no eyebrow pill, no lede, no breadcrumb, no sub-navigation.
   Scoped to this class only; `.kisoma-document-header` stays untouched for
   blog/article pages that still use it. */
.kisoma-legal-topbar {
    padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(2.5rem, 5vw, 3.5rem);
    background: #063b2c;
}

.kisoma-legal-topbar__title {
    margin: 0;
    color: #fff;
    font-size: var(--kisoma-font-h1);
    font-weight: 800;
    letter-spacing: var(--kisoma-tracking-tight, -0.02em);
    line-height: var(--kisoma-leading-h1);
}

.kisoma-public-content__body {
    padding: clamp(32px, 5vw, 58px) 0 78px;
}

.kisoma-content-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: clamp(34px, 5vw, 64px);
    align-items: start;
}

.kisoma-content-layout--article {
    grid-template-columns: 230px minmax(0, 780px);
}

/* Document mode (legal pages) defaults to a single centered reading column
   with zero JS dependency -- the desktop TOC's `hidden` attribute means it
   never generates a grid box until JS confirms real headings exist, so a
   default that assumed two columns would render wide-then-snap-centered on
   every load (a visible layout shift) whenever a document has no usable
   TOC, which is the common case for legal content. `--has-toc` is added by
   public-content.js only once it has actually built a TOC, switching to the
   nav + content layout as a deliberate, opt-in enhancement rather than a
   default that needs correcting after paint. */
.kisoma-content-layout--document {
    grid-template-columns: minmax(0, 800px);
    justify-content: center;
}

.kisoma-content-layout--document.kisoma-content-layout--has-toc {
    grid-template-columns: 250px minmax(0, 820px);
    justify-content: normal;
}

.kisoma-content-document {
    grid-column: 2;
    width: 100%;
    max-width: 820px;
}

.kisoma-content-layout--article .kisoma-content-document {
    max-width: 780px;
}

.kisoma-content-layout--document .kisoma-content-document {
    grid-column: 1;
    max-width: 800px;
}

.kisoma-content-layout--document.kisoma-content-layout--has-toc .kisoma-content-document {
    grid-column: 2;
    max-width: 820px;
}

.kisoma-content-toc {
    position: sticky;
    top: 104px;
    padding: 6px 0 0;
}

.kisoma-content-toc__title {
    margin: 0 0 12px;
    color: #173653;
    font-size: var(--kisoma-font-nav);
    font-weight: 700;
}

.kisoma-content-toc__nav,
.kisoma-content-toc-mobile__nav {
    display: grid;
    gap: 3px;
}

.kisoma-content-toc__nav a,
.kisoma-content-toc-mobile__nav a {
    display: block;
    border-radius: 7px;
    color: #64778a;
    font-size: var(--kisoma-font-nav);
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
}

.kisoma-content-toc__nav a {
    padding: 7px 9px;
    border-left: 2px solid transparent;
}

.kisoma-content-toc__nav a.is-depth-3 {
    padding-left: 20px;
    font-size: var(--kisoma-font-caption);
}

.kisoma-content-toc__nav a:hover,
.kisoma-content-toc__nav a:focus-visible,
.kisoma-content-toc__nav a.is-active {
    color: #0f6848;
    background: #eff9f4;
    border-left-color: var(--kisoma-content-green);
}

.kisoma-content-toc-mobile {
    display: none;
    margin-bottom: 18px;
    border: 1px solid var(--kisoma-content-border);
    border-radius: 8px;
    background: #fff;
}

.kisoma-content-toc-mobile__button {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 14px;
    border: 0;
    background: transparent;
    color: #173653;
    font: inherit;
    font-size: var(--kisoma-font-meta);
    font-weight: 700;
    text-align: left;
}

.kisoma-content-toc-mobile__button i {
    transition: transform .18s ease;
}

.kisoma-content-toc-mobile.is-open .kisoma-content-toc-mobile__button i {
    transform: rotate(180deg);
}

.kisoma-content-toc-mobile__nav {
    display: none;
    padding: 0 14px 13px;
}

.kisoma-content-toc-mobile.is-open .kisoma-content-toc-mobile__nav {
    display: grid;
}

.kisoma-content-toc-mobile__nav a {
    padding: 8px 0;
    border-top: 1px solid #edf2f5;
}

.kisoma-content-toc-mobile__nav a.is-depth-3 {
    padding-left: 14px;
}

.kisoma-prose {
    overflow-wrap: break-word;
    color: #304455;
    font-size: var(--kisoma-font-body);
    line-height: var(--kisoma-leading-body);
}

.kisoma-prose > :first-child {
    margin-top: 0 !important;
}

.kisoma-prose > :last-child {
    margin-bottom: 0 !important;
}

.kisoma-prose p,
.kisoma-prose ul,
.kisoma-prose ol,
.kisoma-prose blockquote,
.kisoma-prose pre,
.kisoma-prose table,
.kisoma-prose figure {
    margin: 0 0 1.15em;
}

.kisoma-prose h1,
.kisoma-prose h2,
.kisoma-prose h3,
.kisoma-prose h4 {
    scroll-margin-top: 116px;
    color: #143653;
    font-weight: 700;
    letter-spacing: 0;
    line-height: var(--kisoma-leading-h3);
}

.kisoma-prose h1 {
    margin: 1.6em 0 .6em;
    font-size: var(--kisoma-font-h2);
}

.kisoma-prose h2 {
    margin: 2em 0 .58em;
    padding-top: .15em;
    font-size: var(--kisoma-font-h3);
}

.kisoma-prose h3 {
    margin: 1.65em 0 .55em;
    color: #1c435f;
    font-size: var(--kisoma-font-h3);
}

.kisoma-prose h4 {
    margin: 1.4em 0 .5em;
    color: #244a62;
    font-size: var(--kisoma-font-body);
}

.kisoma-prose ul,
.kisoma-prose ol {
    padding-left: 1.35em;
}

.kisoma-prose li {
    padding-left: .15em;
}

.kisoma-prose li + li {
    margin-top: .45em;
}

.kisoma-prose strong {
    color: #182f43;
    font-weight: 700;
}

.kisoma-prose em {
    color: #465c6d;
}

.kisoma-prose a {
    color: #0b7650;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.kisoma-prose a:hover,
.kisoma-prose a:focus-visible {
    color: var(--kisoma-content-blue);
}

.kisoma-prose a:focus-visible,
.kisoma-content-toc a:focus-visible,
.kisoma-content-toc-mobile button:focus-visible,
.kisoma-content-toc-mobile a:focus-visible,
.kisoma-article-end a:focus-visible {
    outline: 2px solid var(--kisoma-content-green);
    outline-offset: 3px;
}

/* Callout box (reference-inspired): a short, bolded statement in its own
   plain gray rounded box, used to break up long technical explanations
   into scannable takeaways -- rendered from ordinary <blockquote> content,
   so any post that uses a blockquote block gets this treatment for free. */
.kisoma-prose blockquote {
    padding: 18px 22px;
    border-radius: 10px;
    background: #f4f6f7;
    color: var(--kisoma-content-blue, #215679);
    font-size: var(--kisoma-font-body);
    font-weight: 700;
    line-height: var(--kisoma-leading-body);
}

.kisoma-prose blockquote p {
    margin: 0;
}

.kisoma-prose blockquote p + p {
    margin-top: 10px;
}

.kisoma-prose img,
.kisoma-prose video,
.kisoma-prose figure,
.kisoma-prose table {
    max-width: 100%;
}

.kisoma-prose img,
.kisoma-prose video {
    height: auto;
    border-radius: 8px;
}

.kisoma-prose figure img {
    display: block;
}

.kisoma-prose figcaption {
    margin-top: 8px;
    color: #728395;
    font-size: var(--kisoma-font-caption);
    line-height: 1.5;
}

.kisoma-prose table {
    display: block;
    width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
    font-size: var(--kisoma-font-meta);
    -webkit-overflow-scrolling: touch;
}

.kisoma-prose th,
.kisoma-prose td {
    padding: 10px 12px;
    border: 1px solid #dfe8ee;
    vertical-align: top;
}

.kisoma-prose th {
    color: #173653;
    background: #f3f7f9;
    font-weight: 700;
}

.kisoma-prose hr {
    height: 1px;
    margin: 2rem 0;
    border: 0;
    background: #dfe8ee;
}

.kisoma-prose pre {
    overflow-x: auto;
    padding: 14px 16px;
    border: 1px solid #dfe8ee;
    border-radius: 8px;
    background: #102a3f;
    color: #f3faf7;
    font-size: var(--kisoma-font-meta);
    line-height: 1.55;
}

.kisoma-prose code {
    padding: 2px 5px;
    border-radius: 5px;
    background: #edf5f8;
    color: #143653;
    font-size: .92em;
}

.kisoma-prose pre code {
    padding: 0;
    background: transparent;
    color: inherit;
}

.kisoma-article-image {
    margin: 0 0 clamp(28px, 5vw, 48px);
}

.kisoma-article-image img {
    display: block;
    width: 100%;
    max-height: 520px;
    border: 1px solid #dfe8ee;
    border-radius: 10px;
    object-fit: cover;
}

.kisoma-article-image__caption {
    margin: 10px 0 0;
    color: #728395;
    font-size: var(--kisoma-font-caption);
    font-style: italic;
    text-align: center;
}

.kisoma-article-end {
    max-width: 780px;
    margin-top: 34px;
    padding-top: 22px;
    border-top: 1px solid #e5edf2;
}

.kisoma-article-end a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0b7650;
    font-size: var(--kisoma-font-meta);
    font-weight: 700;
    text-decoration: none;
}

.kisoma-article-end a:hover {
    color: var(--kisoma-content-blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* "You might also like" (reference-inspired): reuses the blog listing's
   own card grid so a related article reads identically whether you found
   it from the blog index or from the bottom of another article. */
.kisoma-blog-related {
    margin-top: clamp(40px, 6vw, 64px);
    padding-top: clamp(32px, 5vw, 44px);
    border-top: 1px solid #e5edf2;
}

.kisoma-blog-related__title {
    margin: 0 0 clamp(20px, 3vw, 28px);
    color: #123552;
    font-size: var(--kisoma-font-h3);
    font-weight: 700;
}

.kisoma-blog-related .kisoma-blog-grid {
    margin-bottom: 0;
}

@media (max-width: 991.98px) {
    .kisoma-content-layout,
    .kisoma-content-layout--article,
    .kisoma-content-layout--document {
        display: block;
    }

    .kisoma-content-toc {
        display: none !important;
    }

    .kisoma-content-toc-mobile:not([hidden]) {
        display: block;
    }

    .kisoma-content-document,
    .kisoma-content-layout--article .kisoma-content-document {
        max-width: 100%;
    }
}

@media (max-width: 767.98px) {
    .kisoma-document-header {
        padding: 34px 0 28px;
    }

    .kisoma-document-header h1 {
        font-size: var(--kisoma-font-h1);
        line-height: var(--kisoma-leading-h1);
    }

    .kisoma-document-header__lede {
        font-size: var(--kisoma-font-body);
        line-height: var(--kisoma-leading-body);
    }

    .kisoma-legal-topbar {
        padding: 34px 0 24px;
    }

    .kisoma-public-content__body {
        padding: 26px 0 58px;
    }

    .kisoma-prose {
        font-size: var(--kisoma-font-body);
        line-height: var(--kisoma-leading-body);
    }

    .kisoma-prose h1,
    .kisoma-prose h2,
    .kisoma-prose h3,
    .kisoma-prose h4 {
        scroll-margin-top: 92px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .kisoma-content-toc-mobile__button i {
        transition: none;
    }
}

/* Slim blog masthead (reference-inspired): repeats atop every article, the
   same way the listing page's own dark hero introduces the blog itself --
   same color, just condensed to a single strip since an individual article
   already has its own (bigger) title just below. */
.kisoma-blog-masthead {
    padding: 22px 0;
    background: #063b2c;
}

/* !important on color: see the note above .kisoma-blog-categories__item --
   same sitewide `a { color !important }` rule, same narrow workaround --
   without it this link renders near-invisible dark ink on the dark green
   masthead. */
.kisoma-blog-masthead__title {
    display: inline-block;
    margin: 0;
    color: #fff !important;
    font-size: 22px;
    font-weight: 700;
    text-decoration: none;
}

.kisoma-blog-masthead__title:hover,
.kisoma-blog-masthead__title:focus-visible {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.kisoma-blog-masthead__tagline {
    margin: 4px 0 0;
    color: rgba(255, 255, 255, .76);
    font-size: var(--kisoma-font-meta);
}

/* Previous/next post navigation (reference-inspired): closes out the
   article the same way the listing's card grid opens it -- reuses the
   blue link color from .kisoma-editorial-card__meta-line so link color
   stays consistent across the blog rather than introducing a new one. */
.kisoma-article-adjacent {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(20px, 3vw, 32px);
    margin-top: clamp(36px, 5vw, 50px);
    padding-top: clamp(24px, 3.5vw, 32px);
    border-top: 1px solid #e5edf2;
}

.kisoma-article-adjacent__item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    text-decoration: none;
}

.kisoma-article-adjacent__item--next {
    grid-column: 2;
    align-items: flex-end;
    text-align: right;
}

.kisoma-article-adjacent__direction {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #728395;
    font-size: var(--kisoma-font-meta);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: var(--kisoma-letter-eyebrow);
}

.kisoma-article-adjacent__title {
    color: var(--kisoma-content-blue, #215679) !important;
    font-size: var(--kisoma-font-body);
    font-weight: 700;
    line-height: 1.4;
}

.kisoma-article-adjacent__item:hover .kisoma-article-adjacent__title,
.kisoma-article-adjacent__item:focus-visible .kisoma-article-adjacent__title {
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 575.98px) {
    .kisoma-article-adjacent {
        grid-template-columns: minmax(0, 1fr);
    }

    .kisoma-article-adjacent__item--next {
        grid-column: 1;
        align-items: flex-start;
        text-align: left;
    }
}

/* Editorial blog listing */
.kisoma-blog-editorial {
    background: #fff;
}

/* Dark banner (reference-inspired), same Kisoma dark green used on the
   Pricing and About pages -- not the reference's own color, and typography
   here is owned centrally by public-typography.css's H1/body groups. */
.kisoma-blog-editorial__hero {
    padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(2.5rem, 5vw, 3.5rem);
    background: #063b2c;
}

.kisoma-blog-editorial__hero-inner {
    max-width: 760px;
}

/* .kisoma-document-header__eyebrow is also used on light-background pages
   (legal documents, etc.) -- scope the dark-on-dark treatment to this hero
   only, never change the shared rule itself. */
.kisoma-blog-editorial__hero .kisoma-document-header__eyebrow {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: #9ee4bd;
}

.kisoma-blog-editorial__hero h1 {
    margin: 0;
    color: #fff;
}

.kisoma-blog-editorial__hero p {
    max-width: 620px;
    margin: 0.75rem 0 0;
    color: rgba(255, 255, 255, 0.76);
}

.kisoma-blog-editorial__body {
    padding: 0 0 76px;
}

/* Toolbar: category filter (left) + on-page search (right), sitting where
   the old section headings used to. */
.kisoma-blog-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.kisoma-blog-search {
    position: relative;
    flex: 0 0 auto;
    width: 260px;
    max-width: 100%;
}

.kisoma-blog-search i {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    color: #8b9aa6;
    font-size: 13px;
    pointer-events: none;
}

.kisoma-blog-search input {
    width: 100%;
    min-height: 42px;
    padding: 0 14px 0 36px;
    border: 1px solid #dce8ee;
    border-radius: 999px;
    background: #fff;
    color: #123552;
    font-size: var(--kisoma-font-meta);
}

.kisoma-blog-search input:focus-visible {
    outline: 2px solid var(--kisoma-content-green, #56cc99);
    outline-offset: 1px;
}

.kisoma-blog-search-status {
    margin: -10px 0 20px;
    color: #66798a;
    font-size: var(--kisoma-font-meta);
}

/* Lead story (reference-inspired): the latest article gets a large,
   two-column treatment above the grid -- same card visual language
   (image, colored category tag, meta, "Start reading" button) just at
   editorial-homepage scale. Only rendered for the default, unfiltered
   first page -- see blog.blade.php's $featuredPost. */
.kisoma-blog-featured {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: stretch;
    gap: clamp(24px, 3.5vw, 40px);
    margin-bottom: clamp(32px, 4.5vw, 46px);
    padding-bottom: clamp(28px, 4vw, 38px);
    border-bottom: 1px solid var(--kisoma-content-border, #dfe8ee);
}

.kisoma-blog-featured__image {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 11;
    border-radius: 14px;
    background: #eaf3f0;
}

.kisoma-blog-featured__image img,
.kisoma-blog-featured__image .kisoma-editorial-card__fallback {
    display: flex;
    width: 100%;
    height: 100%;
}

.kisoma-blog-featured__image img {
    object-fit: cover;
}

.kisoma-blog-featured__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.kisoma-blog-featured__tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.kisoma-blog-featured__tag {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 12px;
    border-radius: 999px;
    background: #123552;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: var(--kisoma-letter-eyebrow);
    line-height: 1;
    text-transform: uppercase;
}

.kisoma-blog-featured__content h2 {
    margin: 0;
    color: #123552;
    font-size: clamp(26px, 3.2vw, 36px);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.16;
}

.kisoma-blog-featured__content h2 a {
    color: inherit;
    text-decoration: none;
}

.kisoma-blog-featured__content h2 a:hover,
.kisoma-blog-featured__content h2 a:focus-visible {
    color: #0b7650;
}

.kisoma-blog-featured__content p {
    margin: 14px 0 0;
    color: #627686;
    font-size: var(--kisoma-font-body);
    line-height: var(--kisoma-leading-body);
}

.kisoma-blog-featured__content .kisoma-editorial-meta {
    margin: 16px 0 0;
}

.kisoma-blog-featured__content .kisoma-editorial-link--button {
    margin-top: 20px;
}

/* Colored category eyebrow on every card (lead story + grid) -- reuses
   the same green pill language as .kisoma-article-category on the
   article page, just card-scaled, and pulled out of the plain-text
   meta row so the topic reads as a tag, not another meta fact. */
.kisoma-editorial-card__category {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 10px;
    padding: 4px 10px;
    border: 1px solid rgba(86, 204, 153, .34);
    border-radius: 999px;
    background: #effaf5;
    color: #0b7650 !important;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: var(--kisoma-letter-eyebrow);
    line-height: 1.4;
    text-decoration: none;
    text-transform: uppercase;
}

.kisoma-editorial-card__category:hover,
.kisoma-editorial-card__category:focus-visible {
    border-color: rgba(11, 118, 80, .5);
    background: #e2f5ec;
}

.kisoma-editorial-card {
    min-width: 0;
}

.kisoma-editorial-card a {
    text-decoration: none;
}

.kisoma-editorial-card__image,
.kisoma-editorial-card__thumb {
    position: relative;
    display: block;
    overflow: hidden;
    background: #eaf3f0;
}

.kisoma-editorial-card__image {
    aspect-ratio: 16 / 10;
    border-radius: 12px;
}

.kisoma-editorial-card__image img,
.kisoma-editorial-card__thumb img,
.kisoma-editorial-card__fallback {
    display: flex;
    width: 100%;
    height: 100%;
}

.kisoma-editorial-card__image img,
.kisoma-editorial-card__thumb img {
    object-fit: cover;
}

.kisoma-editorial-card__fallback {
    min-height: 180px;
    align-items: center;
    justify-content: center;
    color: #0b7650;
    background: linear-gradient(135deg, #edf8f4, #e8f1f7);
    font-size: 32px;
}

.kisoma-editorial-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px 10px;
    margin-bottom: 10px;
    color: #6f8292;
    font-size: var(--kisoma-font-meta);
    font-weight: 700;
    line-height: 1.35;
}

.kisoma-editorial-meta span:first-child {
    color: #0b7650;
}

.kisoma-editorial-meta span + span::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 4px;
    margin-right: 10px;
    border-radius: 50%;
    background: #b9c5ce;
    vertical-align: middle;
}

.kisoma-editorial-card h3 {
    margin: 0;
    color: #123552;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.18;
}

.kisoma-editorial-card h3 a {
    color: inherit;
}

.kisoma-editorial-card h3 a:hover,
.kisoma-editorial-card h3 a:focus-visible {
    color: #0b7650;
}

.kisoma-editorial-card p {
    margin: 10px 0 0;
    color: #627686;
    font-size: var(--kisoma-font-body-small);
    line-height: var(--kisoma-leading-supporting);
}

/* Compact "Category | X minute read" line under the title (reference:
   plain colored category link + separator + reading time, no pill, no
   date, no excerpt, no separate button under it). */
.kisoma-editorial-card__meta-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 8px 0 0;
    color: var(--kisoma-content-ink, #172c3d);
    font-size: var(--kisoma-font-meta);
    font-weight: 500;
}

.kisoma-editorial-card__meta-line a {
    color: var(--kisoma-content-blue, #215679) !important;
    font-weight: 600;
    text-decoration: none;
}

.kisoma-editorial-card__meta-line a:hover,
.kisoma-editorial-card__meta-line a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.kisoma-editorial-card__meta-sep {
    color: #b9c5ce;
}

.kisoma-editorial-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 15px;
    color: #0b7650;
    font-size: var(--kisoma-font-button);
    font-weight: 700;
}

/* Outline-button CTA (reference-inspired "Start reading" treatment) instead
   of a bare text+arrow link -- reuses the same Kisoma green as every other
   outline control on the site, never a borrowed color.
   !important on color: a sitewide `a { color: #29363F !important; }` rule
   in style.css silently wins over any non-important link color anywhere on
   the public site (a pre-existing issue, not introduced here) -- this is
   the only way to make this specific button render its intended green
   rather than that default ink color. Scoped to this one class only. */
.kisoma-editorial-link--button {
    margin-top: 16px;
    padding: 9px 16px;
    border: 1px solid rgba(11, 118, 80, .4);
    border-radius: 8px;
    color: #0b7650 !important;
    text-align: center;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.kisoma-editorial-link--button:hover,
.kisoma-editorial-link--button:focus-visible {
    border-color: #0b7650;
    background: #effaf5;
    color: #0a5b3f !important;
}

.kisoma-blog-categories {
    display: flex;
    flex: 1 1 auto;
    gap: 10px;
    margin: 0;
    padding: 4px 0 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

/* !important on every color here: a sitewide `a { color: #29363F !important; }`
   rule in style.css silently wins over any non-important link color on the
   public site (pre-existing, not introduced here). Without it the active
   pill's white text is invisible against its own dark background -- a real
   contrast failure, not just a wrong shade. Scoped to this component only;
   the sitewide rule itself is out of scope to change safely. */
.kisoma-blog-categories__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    padding: 9px 14px;
    border: 1px solid #dce8ee;
    border-radius: 999px;
    color: #496273 !important;
    background: #fff;
    font-size: var(--kisoma-font-meta);
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
}

.kisoma-blog-categories__item small {
    color: #8b9aa6;
    font-size: 11px;
}

.kisoma-blog-categories__item:hover,
.kisoma-blog-categories__item:focus-visible {
    color: #0b7650 !important;
    border-color: rgba(86, 204, 153, .7);
}

.kisoma-blog-categories__item.is-active {
    color: #fff !important;
    border-color: #123552;
    background: #123552;
}

.kisoma-blog-categories__item.is-active small {
    color: rgba(255, 255, 255, .74);
}

.kisoma-editorial-card__content {
    padding: 0;
    margin-top: 16px;
}

/* One uniform grid for every article -- no separate featured/lead/compact
   tiers, matching the reference's plain, consistent card layout. */
.kisoma-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(20px, 2.6vw, 28px);
    margin-bottom: clamp(28px, 4vw, 40px);
}

/* Card image sits directly on the page -- no card border, background or
   shadow "box" around it (reference: image, then title, then a plain
   category | reading-time line, nothing else framing them). */
.kisoma-editorial-card--standard h3 {
    margin-top: 0;
    font-size: clamp(18px, 1.6vw, 21px);
    line-height: 1.3;
}

/* Numbered pagination (reference-inspired) -- built entirely from data the
   page already receives (current page / total pages), no new endpoints. */
.kisoma-blog-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: clamp(34px, 5vw, 54px);
}

/* !important on color: see the note above .kisoma-blog-categories__item --
   same sitewide `a { color !important }` rule, same narrow workaround. */
.kisoma-blog-pagination__number,
.kisoma-blog-pagination__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    min-height: 38px;
    padding: 0 6px;
    border-radius: 8px;
    color: #123552 !important;
    font-size: var(--kisoma-font-meta);
    font-weight: 700;
    text-decoration: none;
    transition: background-color 160ms ease, color 160ms ease;
}

.kisoma-blog-pagination__number:hover,
.kisoma-blog-pagination__number:focus-visible,
.kisoma-blog-pagination__arrow:hover,
.kisoma-blog-pagination__arrow:focus-visible {
    background: #f2f5f3;
}

.kisoma-blog-pagination__number.is-active {
    background: rgba(86, 204, 153, .22);
    color: #0b7650 !important;
}

.kisoma-blog-pagination__arrow.is-disabled {
    color: #b7c2cb !important;
    pointer-events: none;
}

.kisoma-blog-empty {
    max-width: 620px;
    margin: 28px auto 0;
    padding: clamp(34px, 6vw, 58px);
    border: 1px dashed #cfdee6;
    border-radius: 12px;
    background: #fff;
    text-align: center;
}

.kisoma-blog-empty__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin-bottom: 16px;
    border-radius: 50%;
    color: #0b7650;
    background: #edf9f4;
    font-size: 23px;
}

.kisoma-blog-empty h2 {
    margin: 0 0 8px;
    color: #123552;
    font-size: var(--kisoma-font-h3);
}

.kisoma-blog-empty p {
    margin: 0;
    color: #66798a;
}

.kisoma-editorial-card__image:focus-visible,
.kisoma-editorial-card h3 a:focus-visible,
.kisoma-editorial-link:focus-visible,
.kisoma-blog-categories__item:focus-visible,
.kisoma-blog-pagination__number:focus-visible,
.kisoma-blog-pagination__arrow:focus-visible {
    outline: 2px solid var(--kisoma-content-green);
    outline-offset: 4px;
}

@media (hover: hover) {
    .kisoma-editorial-card__image img,
    .kisoma-editorial-card__thumb img,
    .kisoma-editorial-link i {
        transition: transform .22s ease;
    }

    .kisoma-editorial-card:hover .kisoma-editorial-card__image img,
    .kisoma-editorial-card:hover .kisoma-editorial-card__thumb img {
        transform: scale(1.025);
    }

    .kisoma-editorial-link:hover i {
        transform: translateX(3px);
    }
}

@media (max-width: 991.98px) {
    .kisoma-blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .kisoma-blog-featured {
        grid-template-columns: minmax(0, 1fr);
    }

    .kisoma-blog-featured__image {
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 767.98px) {
    .kisoma-blog-editorial__hero {
        padding: 34px 0 24px;
    }

    .kisoma-blog-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .kisoma-blog-search {
        width: 100%;
    }

    .kisoma-blog-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .kisoma-editorial-card__content {
        padding: 18px;
    }

    .kisoma-blog-featured {
        gap: 18px;
        margin-bottom: 26px;
        padding-bottom: 24px;
    }
}

@media (max-width: 430px) {

    .kisoma-blog-pagination {
        justify-content: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .kisoma-editorial-card__image img,
    .kisoma-editorial-card__thumb img,
    .kisoma-editorial-link i {
        transition: none;
    }
}
