/* =========================================================
   Blog: list (/blog, /blog/{category}) and article (/blog/single/{name})
   Views: livewire/other/all_blogs, blog_details, partials/_blog-card, partials/blog-list
   Same colours as the other pages: dark green #143635, mint #81FBBF.
   ========================================================= */
.bl-page {
    --bl-ink: #143635;
    --bl-mint: #81FBBF;
    --bl-mint-soft: #EAF7F0;
    --bl-faint: #F4F9F7;
    --bl-text: #2F3B3A;
    --bl-muted: #5A6766;
    --bl-line: #DCE7E3;
    --bl-green: #2E9E6B;
    font-family: var(--fr-font, 'Open Sans', sans-serif);
    color: var(--bl-text);
    line-height: 1.55;
    background: #FFFFFF;
    padding-bottom: 72px;
}
.bl-page *, .bl-page *::before, .bl-page *::after { box-sizing: border-box; }
.bl-page h1, .bl-page h2, .bl-page h3, .bl-page p { margin: 0; }
.bl-page a { text-decoration: none; }
.bl-page [hidden] { display: none !important; }
.bl-page img { color: transparent; } /* no alt text over a missing image */
.bl-page a:focus-visible, .bl-page button:focus-visible, .bl-page input:focus-visible, .bl-page select:focus-visible { outline: 3px solid var(--bl-mint); outline-offset: 2px; }

/* Same width as the site header (.fr-chrome .auto__container) */
.bl-container { width: 100%; max-width: 1280px; margin: 0 auto; padding-left: 40px; padding-right: 40px; }
@media (max-width: 1180px) { .bl-container { padding-left: 30px; padding-right: 30px; } }
@media (max-width: 750px) { .bl-container { padding-left: 24px; padding-right: 24px; } }

/* ---------- small parts ---------- */
.bl-tag {
    display: inline-flex; align-items: center; background: var(--bl-mint-soft); color: var(--bl-ink) !important;
    font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; line-height: 1.4;
}
.bl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 13px; color: var(--bl-muted); }
.bl-btn {
    display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px;
    background: var(--bl-ink); color: #FFFFFF !important; font-size: 15px; font-weight: 700; border: 2px solid var(--bl-ink);
    cursor: pointer; transition: background .15s, color .15s;
}
.bl-btn:hover { background: #0B2221; }
.bl-btn--ghost { background: transparent; color: var(--bl-ink) !important; }
.bl-btn--ghost:hover { background: var(--bl-mint-soft); }
.bl-btn--mint { background: var(--bl-mint); border-color: var(--bl-mint); color: var(--bl-ink) !important; }
.bl-btn--mint:hover { background: #A6FCD2; }
.bl-link { font-weight: 600; color: var(--bl-ink) !important; font-size: 15px; border-bottom: 2px solid var(--bl-mint); padding-bottom: 2px; }
.bl-h2 { font-size: 28px; font-weight: 700; color: var(--bl-ink); line-height: 1.25; }

/* ---------- list: heading ---------- */
.bl-hero { background: var(--bl-mint-soft); border-bottom: 1px solid #D6EEE2; padding: 44px 0 34px; }
.bl-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--bl-green); }
.bl-kicker img { width: 22px; height: 22px; }
.bl-title { font-size: 42px; font-weight: 800; color: var(--bl-ink); line-height: 1.15; margin-top: 8px !important; }
.bl-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.bl-chip {
    display: inline-flex; align-items: center; min-height: 38px; padding: 0 16px; border-radius: 999px; background: #FFFFFF;
    border: 1px solid var(--bl-line); color: var(--bl-ink) !important; font-size: 14px; font-weight: 600; transition: border-color .15s, background .15s;
}
.bl-chip:hover { border-color: var(--bl-ink); }
.bl-chip.is-active { background: var(--bl-ink); border-color: var(--bl-ink); color: #FFFFFF !important; }

/* ---------- list: latest post ---------- */
.bl-featured {
    position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); margin-top: 36px;
    border: 1px solid var(--bl-line); border-radius: 24px; overflow: hidden; background: #FFFFFF; transition: box-shadow .2s;
}
.bl-featured:hover { box-shadow: 0 18px 40px rgba(20, 54, 53, .10); }
.bl-featured__img { display: block; min-height: 340px; background: var(--bl-faint); }
.bl-featured__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bl-featured__body { padding: 36px 40px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 14px; }
.bl-badge { background: var(--bl-ink); color: var(--bl-mint); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 6px 12px; border-radius: 8px; }
.bl-featured__title { font-size: 30px; font-weight: 700; line-height: 1.25; color: var(--bl-ink); }
.bl-featured__title a { color: inherit !important; }
.bl-featured__title a::after { content: ''; position: absolute; inset: 0; }
.bl-featured .bl-btn { margin-top: 6px; }
.bl-featured:hover .bl-btn { background: #0B2221; }

/* ---------- list: search and sort ---------- */
.bl-tools { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin: 44px 0 22px; flex-wrap: wrap; }
.bl-label { display: block; font-size: 13px; font-weight: 600; color: var(--bl-muted); margin-bottom: 6px; }
.bl-search { flex: 1 1 360px; max-width: 520px; margin: 0; }
.bl-search__box { position: relative; display: block; }
.bl-search__box svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--bl-muted); pointer-events: none; }
.bl-page .bl-search input {
    width: 100%; height: 50px; border: 1.5px solid var(--bl-line) !important; border-radius: 14px; padding: 0 16px 0 46px;
    font-size: 15px; color: var(--bl-ink); background: #FFFFFF; box-shadow: none; -webkit-appearance: none; appearance: none;
}
.bl-page .bl-search input:focus { border-color: var(--bl-ink) !important; outline: none; }
.bl-sort { margin: 0; }
.bl-page .bl-sort select {
    height: 50px; min-width: 200px; border: 1.5px solid var(--bl-line) !important; border-radius: 14px; padding: 0 40px 0 16px;
    font-size: 15px; font-weight: 600; color: var(--bl-ink); background: #FFFFFF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23143635' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center;
    -webkit-appearance: none; appearance: none; cursor: pointer;
}

/* ---------- cards ---------- */
.bl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.bl-card {
    position: relative; display: flex; flex-direction: column; border: 1px solid var(--bl-line); border-radius: 20px;
    overflow: hidden; background: #FFFFFF; transition: box-shadow .2s, transform .2s;
}
.bl-card:hover { box-shadow: 0 16px 34px rgba(20, 54, 53, .10); transform: translateY(-2px); }
.bl-card__img { display: block; aspect-ratio: 16 / 10; background: var(--bl-faint); overflow: hidden; }
.bl-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.bl-card:hover .bl-card__img img { transform: scale(1.04); }
.bl-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1 1 auto; }
.bl-card__title { font-size: 18px; font-weight: 600; line-height: 1.4; color: var(--bl-ink); }
.bl-card__title a { color: inherit !important; }
.bl-card__title a::after { content: ''; position: absolute; inset: 0; }
.bl-card__more { margin-top: auto; padding-top: 4px; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--bl-green); }
.bl-card:hover .bl-card__more svg { transform: translateX(3px); }
.bl-card__more svg { transition: transform .2s; }

.bl-empty { text-align: center; padding: 48px 20px; border: 1px dashed var(--bl-line); border-radius: 20px; color: var(--bl-muted); }
.bl-empty b { display: block; font-size: 18px; color: var(--bl-ink); margin-bottom: 4px; }
.bl-more { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 32px; min-height: 48px; }
.bl-spinner { width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--bl-mint-soft); border-top-color: var(--bl-ink); animation: bl-spin .8s linear infinite; }
.bl-more.is-loading .bl-btn { display: none; }
@keyframes bl-spin { to { transform: rotate(360deg); } }

/* ---------- article ---------- */
.bd-progress { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 1000; pointer-events: none; }
.bd-progress span { display: block; height: 100%; width: 0; background: var(--bl-green); }
.bl-crumbs { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 28px; font-size: 14px; color: var(--bl-muted); }
.bl-crumbs a { color: var(--bl-muted) !important; font-weight: 500; }
.bl-crumbs a:hover { color: var(--bl-ink) !important; text-decoration: underline; }
.bd-head { max-width: 900px; padding: 22px 0 28px; }
.bd-title { font-size: 42px; font-weight: 800; color: var(--bl-ink); line-height: 1.18; margin-top: 14px !important; letter-spacing: -.01em; }
.bd-info { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 16px; font-size: 15px; color: var(--bl-muted); }
.bd-info span { display: inline-flex; align-items: center; gap: 8px; }
.bd-info svg { color: var(--bl-green); }
.bd-hero { margin: 0; }
.bd-hero img { width: 100%; aspect-ratio: 21 / 9; max-height: 480px; object-fit: cover; border-radius: 24px; display: block; background: var(--bl-faint); }
.bd-hero figcaption { font-size: 12px; color: #7C8887; line-height: 1.5; margin-top: 10px; max-width: 900px; }

.bd-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; margin-top: 44px; align-items: start; }
.bd-side { position: sticky; top: 96px; display: grid; gap: 18px; }
.bd-toc { border: 1px solid var(--bl-line); border-radius: 18px; padding: 20px 20px 14px; }
.bd-toc b { display: block; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--bl-green); margin-bottom: 10px; }
.bd-toc ol { list-style: none; margin: 0; padding: 0; max-height: 52vh; overflow: auto; }
.bd-toc li { margin: 0; }
.bd-toc a { display: block; padding: 7px 0 7px 12px; border-left: 2px solid var(--bl-line); font-size: 14px; line-height: 1.4; color: var(--bl-muted) !important; }
.bd-toc a:hover { color: var(--bl-ink) !important; }
.bd-toc a.is-active { border-left-color: var(--bl-ink); color: var(--bl-ink) !important; font-weight: 600; }
.bd-cta { background: var(--bl-ink); color: #FFFFFF; border-radius: 18px; padding: 22px; }
.bd-cta b { font-size: 18px; display: block; }
.bd-cta p { color: rgba(255, 255, 255, .75); font-size: 14px; margin: 4px 0 16px !important; }

/* article text (whatever was entered or pasted in the editor): one font, size and colour */
.bd-prose { font-size: 17px; line-height: 1.8; color: var(--bl-text); max-width: 820px; overflow-wrap: break-word; }
.bd-prose * { font-family: var(--fr-font, 'Open Sans', sans-serif) !important; }
.bd-prose span, .bd-prose font { font-size: inherit !important; color: inherit !important; background: none !important; line-height: inherit !important; }
.bd-prose > *:first-child, .bd-prose > span:first-child > *:first-child { margin-top: 0 !important; }
.bd-prose p { margin: 0 0 18px !important; font-size: 17px; line-height: 1.8; color: var(--bl-text); }
.bd-prose h1, .bd-prose h2, .bd-prose h3, .bd-prose h4, .bd-prose h5, .bd-prose h6 { color: var(--bl-ink) !important; font-weight: 700 !important; line-height: 1.3 !important; letter-spacing: 0; text-transform: none; }
.bd-prose h1, .bd-prose h2 { font-size: 28px !important; margin: 44px 0 14px !important; scroll-margin-top: 100px; }
.bd-prose h3 { font-size: 21px !important; margin: 32px 0 10px !important; scroll-margin-top: 100px; }
.bd-prose h4, .bd-prose h5, .bd-prose h6 { font-size: 18px !important; margin: 26px 0 8px !important; }
.bd-prose :is(h1, h2, h3, h4, h5, h6) :is(span, b, strong, font) { font-weight: inherit !important; }
.bd-prose b, .bd-prose strong { color: var(--bl-ink); font-weight: 700; }
.bd-prose a { color: var(--bl-ink) !important; font-weight: 600; text-decoration: underline; text-decoration-color: var(--bl-mint); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.bd-prose a:hover { color: var(--bl-green) !important; }
.bd-prose a u { text-decoration: none; }
.bd-prose ul, .bd-prose ol { margin: 0 0 20px !important; padding-left: 0 !important; list-style: none; }
.bd-prose li { position: relative; padding-left: 26px; margin: 0 0 10px; font-size: 17px; line-height: 1.7; color: var(--bl-text); list-style: none; }
.bd-prose li p { margin: 0 !important; }
.bd-prose ul > li::before { content: ''; position: absolute; left: 6px; top: 11px; width: 8px; height: 8px; border-radius: 50%; background: var(--bl-green); }
.bd-prose ol { counter-reset: bd; }
.bd-prose ol > li { counter-increment: bd; }
.bd-prose ol > li::before { content: counter(bd) '.'; position: absolute; left: 0; top: 0; font-weight: 700; color: var(--bl-ink); }
.bd-prose img { max-width: 100%; height: auto !important; border-radius: 16px; display: block; margin: 24px 0; }
.bd-prose figure { margin: 24px 0; max-width: 100%; }
.bd-prose figure img { margin: 0; }
.bd-prose figcaption { font-size: 13px; color: var(--bl-muted); margin-top: 8px; }
.bd-prose blockquote { margin: 24px 0; padding: 18px 22px; border-left: 4px solid var(--bl-mint); background: var(--bl-faint); border-radius: 0 14px 14px 0; color: var(--bl-ink); }
.bd-prose hr { border: 0; border-top: 1px solid var(--bl-line); margin: 32px 0; }
.bd-prose table { width: 100% !important; border-collapse: separate; border-spacing: 0; border: 1px solid var(--bl-line); border-radius: 14px; overflow: hidden; margin: 8px 0 24px; font-size: 15px; }
.bd-prose td, .bd-prose th { padding: 12px 16px; border-bottom: 1px solid var(--bl-line); text-align: left; vertical-align: top; }
.bd-prose th, .bd-prose thead td { background: var(--bl-ink); color: #FFFFFF !important; }
.bd-prose tr:last-child td { border-bottom: 0; }
.bd-prose iframe, .bd-prose video { max-width: 100%; border-radius: 16px; }

.bd-foot { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--bl-line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; }
.bd-prose .bd-foot__cat { margin: 0 !important; font-size: 15px; color: var(--bl-muted); }
.bd-share { display: flex; align-items: center; gap: 8px; }
.bd-share__label { font-size: 14px; font-weight: 600; color: var(--bl-muted); margin-right: 4px; }
.bd-prose .bd-share a, .bd-share .bd-copy {
    position: relative; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--bl-line); background: #FFFFFF;
    display: inline-flex; align-items: center; justify-content: center; color: var(--bl-ink) !important; text-decoration: none; cursor: pointer; padding: 0;
    transition: background .15s, border-color .15s;
}
.bd-prose .bd-share a:hover, .bd-share .bd-copy:hover { background: var(--bl-mint-soft); border-color: var(--bl-ink); }
.bd-copy__done { position: absolute; bottom: calc(100% + 8px); right: 0; white-space: nowrap; background: var(--bl-ink); color: #FFFFFF; font-size: 12px; padding: 5px 10px; border-radius: 8px; }

.bl-similar { background: var(--bl-faint); padding: 56px 0 64px; margin-top: 64px; margin-bottom: -72px; }
.bl-similar__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
    .bd-layout { grid-template-columns: minmax(0, 1fr) 260px; gap: 36px; }
}
@media (max-width: 991px) {
    .bl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
    .bl-featured { grid-template-columns: minmax(0, 1fr); }
    .bl-featured__img { min-height: 0; aspect-ratio: 16 / 9; }
    .bl-featured__body { padding: 26px 28px 30px; }
    .bd-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .bd-side { position: static; order: -1; }
    .bd-cta { display: none; }
    .bd-toc ol { max-height: none; }
}
@media (max-width: 640px) {
    .bl-hero { padding: 30px 0 24px; }
    .bl-title { font-size: 32px; }
    .bl-cats { flex-wrap: nowrap; overflow-x: auto; margin: 18px -24px 0; padding: 0 24px 4px; scrollbar-width: none; }
    .bl-cats::-webkit-scrollbar { display: none; }
    .bl-chip { flex: 0 0 auto; }
    .bl-featured { margin-top: 24px; border-radius: 20px; }
    .bl-featured__title { font-size: 23px; }
    .bl-featured__body { padding: 22px 20px 24px; }
    .bl-tools { margin: 32px 0 18px; }
    .bl-search { flex-basis: 100%; max-width: none; }
    .bl-sort, .bl-page .bl-sort select { width: 100%; }
    .bl-grid { grid-template-columns: minmax(0, 1fr); }
    .bd-title { font-size: 29px; }
    .bd-info { font-size: 14px; }
    .bd-hero img { border-radius: 18px; aspect-ratio: 16 / 10; }
    .bd-prose, .bd-prose p, .bd-prose li { font-size: 16px; }
    .bd-prose h1, .bd-prose h2 { font-size: 23px !important; }
    .bd-prose h3 { font-size: 19px !important; }
    .bl-h2 { font-size: 23px; }
    .bl-similar { padding: 40px 0 48px; }
}
