/* Editorial Journal Blog & Detail Page UI (Always Light Mode) */
html.ch-blog-light,
html.ch-blog-light body,
html.ch-blog-light #___gatsby,
html.ch-blog-light #gatsby-focus-wrapper,
html.ch-blog-light main {
    background: #FFFFFF !important;
    background-color: #FFFFFF !important;
    color: #101828 !important;
}
html.ch-blog-light header.header a.menu_links { color: #101828 !important; }
html.ch-blog-light header.header a[href="/"] img[src*="createhopes-logo"] { filter: none !important; }
html.ch-blog-light .ch-theme-toggle { display: none !important; }

.bp {
    --bp-text: #101828;
    --bp-muted: #475467;
    --bp-surface: #F9FAFB;
    --bp-border: #EAECF0;
    --bp-btn-bg: #101828;
    --bp-btn-fg: #FFFFFF;
    width: min(1160px, calc(100% - 32px));
    margin: 0 auto;
    padding: 100px 0 90px;
    color: var(--bp-text);
    text-align: left;
}

#___gatsby .bp :is(h1, h2, h3, h4, p, li, strong):not(#f1) { color: var(--bp-text) !important; -webkit-text-fill-color: currentColor; }
#___gatsby .bp a:not(#f1) { color: #E2501A !important; }

/* Full-width rounded editorial Hero Card */
.bp-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 440px;
    margin: 0 0 48px;
    padding: 28px 40px 36px;
    border-radius: 24px;
    overflow: hidden;
    background-color: #060911;
    background-image: linear-gradient(125deg, #00AEEF 0%, #0070F3 38%, #090E1A 68%, #F05526 100%);
    background-size: cover;
    background-position: center;
    box-shadow: 0 24px 48px -18px rgba(6, 9, 17, 0.28);
}
.bp-hero__scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 9, 17, 0.42) 0%, rgba(6, 9, 17, 0.58) 48%, rgba(6, 9, 17, 0.90) 100%);
    pointer-events: none;
}
.bp-hero__top,
.bp-hero__content { position: relative; z-index: 2; }
.bp-hero__back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 99px;
    border: 1px solid rgba(255, 255, 255, 0.36);
    background: rgba(6, 9, 17, 0.45);
    backdrop-filter: blur(8px);
    color: #FFFFFF !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}
.bp-hero__back:hover { background: rgba(255, 255, 255, 0.18); }

.bp-hero__content { max-width: 780px; margin-top: 64px; }
.bp-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(28px, 4.2vw, 48px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.025em;
    color: #FFFFFF !important;
}
.bp-hero__lead {
    margin: 0 0 22px;
    font-size: clamp(15px, 1.8vw, 18px);
    line-height: 1.55;
    max-width: 660px;
    color: rgba(255, 255, 255, 0.9) !important;
}
#___gatsby .bp-hero :is(h1, .bp-hero__back, .bp-hero__pill):not(#f1) {
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
}
#___gatsby .bp-hero .bp-hero__lead:not(#f1) {
    color: rgba(255, 255, 255, 0.9) !important;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.9) !important;
}
.bp-hero__pills { display: flex; flex-wrap: wrap; gap: 10px; }
.bp-hero__pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 99px;
    border: 1px solid rgba(255, 255, 255, 0.44);
    background: rgba(6, 9, 17, 0.25);
    backdrop-filter: blur(6px);
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 600;
}

/* Two-column editorial layout */
.bp-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 56px;
    align-items: start;
}
.bp-main { min-width: 0; }

/* Article body typography + drop cap */
.bp-body { font-size: 17px; line-height: 1.75; }
.bp-body > * { margin: 0 0 22px; }
.bp-body > p:first-of-type::first-letter {
    float: left;
    margin: 4px 12px 0 0;
    font-size: 56px;
    font-weight: 700;
    line-height: 0.88;
    color: var(--bp-text);
}
.bp-body h2 { margin-top: 44px; margin-bottom: 14px; font-size: 28px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.25; }
.bp-body h3 { margin-top: 28px; margin-bottom: 10px; font-size: 21px; font-weight: 700; }
.bp-body ul { padding-left: 22px; list-style: disc; }
.bp-body ol { padding-left: 22px; list-style: decimal; }
.bp-body a { text-decoration: underline; text-underline-offset: 3px; }
.bp-body img { max-width: 100%; border-radius: 16px; }
.bp-body table { display: block; overflow-x: auto; width: 100%; border-collapse: collapse; font-size: 15px; }
.bp-body :is(th, td) { padding: 10px 12px; border: 1px solid var(--bp-border); text-align: left; }
.bp-body :is(code, pre) { background: rgba(128, 128, 128, 0.14); border-radius: 6px; padding: 2px 6px; }
.bp-body pre { overflow-x: auto; padding: 16px; }
.bp-body hr { border: 0; border-top: 1px solid var(--bp-border); }

/* Editorial pull-quote */
.bp-body blockquote {
    margin: 34px 0;
    padding: 8px 0 8px 24px;
    border-left: 3px solid #F05526;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.45;
}
.bp-body blockquote p { margin: 0; }

/* Sticky Right Sidebar */
.bp-sidebar {
    position: sticky;
    top: 96px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.bp-sidebar__block {
    padding-bottom: 24px;
    border-bottom: 1px solid var(--bp-border);
}
.bp-sidebar__block:last-child { border-bottom: 0; padding-bottom: 0; }
.bp-sidebar__label {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 600;
}
#___gatsby .bp .bp-sidebar__label:not(#f1) { color: var(--bp-muted) !important; }

/* Table of Contents in Sidebar */
.bp-contents { display: flex; flex-direction: column; gap: 10px; }
.bp-contents strong { font-size: 14px; font-weight: 700; }
.bp-contents ol { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.bp-contents a {
    display: block;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    transition: color 0.15s ease;
}
#___gatsby .bp .bp-contents a:not(#f1) { color: var(--bp-muted) !important; }
#___gatsby .bp .bp-contents a:hover:not(#f1),
#___gatsby .bp .bp-contents a.is-active:not(#f1) { color: var(--bp-text) !important; }

/* Written by / Contributors */
.bp-author-list { display: flex; flex-direction: column; gap: 14px; }
.bp-author {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.bp-author__avatar {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--bp-border);
    background: #FFFFFF;
    padding: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.bp-author__avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.bp-author > div strong { display: block; font-size: 14px; font-weight: 700; line-height: 1.3; }
.bp-author > div span { display: block; font-size: 13px; line-height: 1.3; }
#___gatsby .bp .bp-author > div span:not(#f1) { color: var(--bp-muted) !important; }

/* Sidebar Newsletter Card */
.bp-newsletter {
    padding: 20px;
    border: 1px solid var(--bp-border);
    border-radius: 16px;
    background: var(--bp-surface);
}
.bp-newsletter__title { margin: 0 0 12px; font-size: 15px; font-weight: 700; }
.bp-newsletter__form { display: flex; flex-direction: column; gap: 10px; }
.bp-newsletter__form input[type="email"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--bp-border);
    border-radius: 10px;
    background: transparent;
    color: var(--bp-text);
    font-size: 14px;
}
.bp-newsletter__form button {
    width: 100%;
    padding: 11px 16px;
    border-radius: 10px;
    border: 0;
    background: var(--bp-btn-bg);
    color: var(--bp-btn-fg);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}
.bp-newsletter__form button:hover { opacity: 0.9; }
.bp-newsletter__msg { margin: 0; font-size: 13px; font-weight: 600; }

/* Checklists, progress, share, FAQ, CTA, Related */
.bp-progress { position: fixed; z-index: 9999; top: 0; left: 0; width: 100%; height: 3px; background: linear-gradient(90deg, #F05526, #00AEEF); transform: scaleX(0); transform-origin: left; }
.bp-body .bp-checks { padding: 8px 20px; border: 1.5px solid rgba(240, 85, 38, 0.45); border-radius: 16px; list-style: none; }
.bp-checks li { padding: 8px 0; }
.bp-checks label { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.bp-checks input { flex: 0 0 20px; width: 20px; height: 20px; margin-top: 4px; accent-color: #F05526; }
.bp-checks input:checked ~ * { opacity: 0.6; }
.bp-body .bp-count { font-size: 14px; font-weight: 700; }
.bp-meter { display: block; width: 100%; height: 8px; margin-bottom: 6px !important; accent-color: #F05526; }

.bp-share {
    width: 100%;
    padding: 10px 18px;
    border: 1px solid var(--bp-border);
    border-radius: 99px;
    background: transparent;
    color: var(--bp-text);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}
.bp-share:hover { border-color: #F05526; color: #F05526; }

.bp-faq { margin: 0 !important; border-bottom: 1px solid var(--bp-border); }
.bp-faq summary { padding: 16px 0; font-weight: 700; cursor: pointer; }
.bp-faq p { margin: 0 0 16px; }

.bp-cta { margin-top: 48px; padding: 30px; border: 1.5px solid #F05526; border-radius: 20px; background: var(--bp-surface); }
.bp-cta h2, .bp-related h2 { margin: 0 0 8px; font-size: 24px; font-weight: 700; }
.bp-cta button { margin-top: 16px; padding: 12px 26px; border-radius: 99px; background: #F05526; color: #fff; font-weight: 700; }

.bp-related { margin-top: 44px; }
.bp-related ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-top: 14px; }
.bp-related a { display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid var(--bp-border); border-radius: 16px; font-weight: 700; line-height: 1.35; text-decoration: none; }
.bp-related img { display: block; width: 100%; aspect-ratio: 40 / 21; object-fit: cover; background: #0E1013; }
.bp-related__text { display: block; padding: 14px 18px 18px; }
.bp-related a:hover { border-color: #F05526; }
#___gatsby .bp .bp-related a:not(#f1) { color: var(--bp-text) !important; }
.bp-related small { display: block; margin-bottom: 6px; color: #E2501A; font-size: 12px; text-transform: uppercase; }

/* Custom branded & interactive HTML blocks for rich-html posts */
.bp-brand-band {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    border: 1px solid rgba(0, 174, 239, 0.42);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(240, 85, 38, 0.12), rgba(0, 112, 243, 0.12), rgba(0, 174, 239, 0.08));
}
.bp-brand-band__logos { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-weight: 800; font-size: 16px; }
.bp-brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 99px;
    border: 1px solid var(--bp-border);
    background: var(--bp-surface);
    font-size: 13px;
    font-weight: 700;
}
.bp-brand-badge--accent { border-color: rgba(240, 85, 38, 0.55); background: rgba(240, 85, 38, 0.14); }
.bp-brand-badge--devglim {
    border-color: rgba(0, 174, 239, 0.6);
    background: linear-gradient(135deg, rgba(0, 174, 239, 0.16), rgba(0, 112, 243, 0.16));
    color: #0070F3 !important;
}
html.ch-blog-light .bp-brand-badge--devglim { color: #0070F3 !important; }
.bp-brand-band__meta { font-size: 13px; color: var(--bp-muted); font-weight: 600; }

.bp-figure {
    padding: 12px;
    border: 1px solid var(--bp-border);
    border-radius: 18px;
    background: #F8FAFC;
    text-align: center;
}
.bp-figure img { width: 100%; height: auto; display: block; border-radius: 12px; }
.bp-figure figcaption { margin-top: 10px; font-size: 13px; color: var(--bp-muted) !important; }

.bp-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.bp-stat { padding: 18px; border: 1px solid var(--bp-border); border-radius: 16px; background: var(--bp-surface); }
.bp-stat strong { display: block; font-size: 24px; font-weight: 800; line-height: 1.15; color: #E2501A !important; }
.bp-stat span { display: block; margin-top: 6px; font-size: 14px; color: var(--bp-muted); line-height: 1.4; }

.bp-tabs { border: 1px solid var(--bp-border); border-radius: 18px; overflow: hidden; background: var(--bp-surface); }
.bp-tablist { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--bp-border); }
.bp-tab {
    padding: 8px 16px;
    border-radius: 99px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--bp-text);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}
.bp-tab:hover { border-color: rgba(0, 174, 239, 0.45); }
.bp-tab[aria-selected="true"] { background: #F05526; color: #fff !important; border-color: #F05526; }
.bp-tabpanel { padding: 22px 24px; }
.bp-tabpanel[hidden] { display: none; }
.bp-tabpanel h4 { margin: 0 0 8px; font-size: 19px; font-weight: 700; }
.bp-tabpanel p { margin: 0 0 12px; font-size: 16px; }
.bp-tabpanel ul { margin: 0; padding-left: 20px; font-size: 16px; }

.bp-estimator { padding: 22px 24px; border: 1.5px solid rgba(0, 174, 239, 0.45); border-radius: 18px; background: var(--bp-surface); }
.bp-estimator h4 { margin: 0 0 6px; font-size: 19px; font-weight: 700; }
.bp-estimator__sub { margin: 0 0 14px; font-size: 14px; color: var(--bp-muted); }
.bp-pill-group { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.bp-pill {
    padding: 8px 14px;
    border-radius: 99px;
    border: 1px solid var(--bp-border);
    background: transparent;
    color: var(--bp-text);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}
.bp-pill.is-active { background: #0070F3; border-color: #0070F3; color: #fff !important; }
.bp-estimator__result {
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid var(--bp-border);
    background: rgba(0, 174, 239, 0.08);
    font-size: 15px;
    line-height: 1.55;
}
.bp-estimator__result strong { display: block; margin-bottom: 4px; font-size: 16px; }

/* Blog Index Page (.bl) matching the same Journal UI */
.bl {
    --bl-text: #101828;
    --bl-muted: #475467;
    --bl-border: #EAECF0;
    --bl-surface: #FFFFFF;
    width: min(1160px, calc(100% - 32px));
    margin: 0 auto;
    padding: 100px 0 90px;
    color: var(--bl-text);
    text-align: left;
}
.bl-head { margin-bottom: 28px; }
.bl-eyebrow { margin: 0 0 6px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #F05526; }
.bl-head h1 { margin: 0 0 8px; font-size: clamp(30px, 4vw, 44px); font-weight: 700; letter-spacing: -0.02em; }
.bl-head p { margin: 0; font-size: 17px; color: var(--bl-muted); }

.bl-featured { display: block; text-decoration: none; margin-bottom: 40px; }
.bl-featured .bp-hero { margin-bottom: 0; min-height: 380px; transition: transform 0.2s ease; }
.bl-featured:hover .bp-hero { transform: translateY(-2px); }

.bl-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.bl-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--bl-border);
    border-radius: 18px;
    overflow: hidden;
    background: var(--bl-surface);
    transition: border-color 0.15s ease, transform 0.15s ease;
}
.bl-card:hover { border-color: #F05526; transform: translateY(-2px); }
.bl-card__img { width: 100%; height: 200px; object-fit: cover; display: block; background: #060911; }
.bl-card__body { display: flex; flex-direction: column; flex: 1; padding: 20px; }
.bl-card__meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; font-size: 12px; font-weight: 700; color: var(--bl-muted); }
.bl-card__pill { padding: 3px 10px; border-radius: 99px; border: 1px solid var(--bl-border); color: #E2501A; }
.bl-card h2 { margin: 0 0 8px; font-size: 20px; font-weight: 700; line-height: 1.3; }
.bl-card__excerpt { margin: 0 0 16px; font-size: 14px; line-height: 1.55; color: var(--bl-muted); flex: 1; }
.bl-card__link { font-size: 14px; font-weight: 700; color: #E2501A; text-decoration: none; }
.bl-card button.bl-card__link { background: transparent; border: 0; padding: 0; text-align: left; cursor: pointer; }

@media (max-width: 960px) {
    .bp-layout { grid-template-columns: 1fr; gap: 40px; }
    .bp-sidebar { position: static; }
    .bl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .bp-hero { min-height: 360px; padding: 22px 22px 26px; border-radius: 18px; }
    .bp-hero__content { margin-top: 40px; }
    .bl-grid { grid-template-columns: 1fr; }
}
