/*!
 * Cloudhim design layer (v1.3.2)
 * ──────────────────────────────
 * Carries the home hero's look (fine grid, blue/violet glow, gradient
 * accents, Inter headings) through the rest of the site. Loaded after
 * cloudhim.css on every page.
 *
 *   ch-band            dark title band: archives, search, 404, home page 2+
 *   ch-band--light     light title band: posts and pages
 */
:root {
  --ch-night: #0b1220;
  --ch-line-dark: rgba(148, 163, 184, .14);
  --ch-grad: linear-gradient(135deg, #3b82f6, #6366f1);
  --ch-hl: linear-gradient(90deg, #60a5fa 0%, #a78bfa 55%, #22d3ee 100%);
  --ch-hl-light: linear-gradient(90deg, #2563eb 0%, #7c3aed 60%, #0891b2 100%);
  --ch-head: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ── Header ─────────────────────────────────────────────────────────────── */
.ch-header { box-shadow: 0 1px 0 rgba(15, 23, 42, .04), 0 8px 24px -18px rgba(15, 23, 42, .25); }
.ch-header .bh-menu > .bh-menu__item > .bh-menu__link { font-weight: 600; color: #334155; }
.ch-header .bh-menu > .bh-menu__item > .bh-menu__link::after { background: var(--ch-grad); }
.ch-header .bh-header-search { border-radius: 9999px; background: #f1f5f9; border-color: transparent; }
.ch-header .bh-header-search:focus-within { background: #fff; border-color: #93c5fd; }

/* ── Breadcrumbs: dark above a dark band, light above a light one ──────── */
.bh-breadcrumbs { background: var(--ch-night); border-bottom: 1px solid var(--ch-line-dark); }
.bh-crumbs { color: #64748b; padding: .6rem 0; }
.bh-crumb__link { color: #94a3b8; }
.bh-crumb__link:hover { color: #fff; }
.bh-crumb__sep { color: #334155; }
.bh-crumb__label { color: #cbd5e1; }
.bh-crumb__text { color: #64748b; }

.bh-breadcrumbs--light { background: #f8fafc; border-bottom-color: #eef2f7; }
.bh-breadcrumbs--light .bh-crumb__link { color: #64748b; }
.bh-breadcrumbs--light .bh-crumb__link:hover { color: #2563eb; }
.bh-breadcrumbs--light .bh-crumb__sep { color: #cbd5e1; }
.bh-breadcrumbs--light .bh-crumb__label { color: #334155; }
.bh-breadcrumbs--light .bh-crumb__text { color: #94a3b8; }

/* ── Title band ─────────────────────────────────────────────────────────── */
.ch-band {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--ch-night); color: #cbd5e1; border-bottom: 1px solid #1e293b;
}
.ch-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(148, 163, 184, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, .07) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 75% 90% at 50% 0%, #000 25%, transparent 78%);
  mask-image: radial-gradient(ellipse 75% 90% at 50% 0%, #000 25%, transparent 78%);
}
.ch-band::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: 32rem; height: 32rem; top: -18rem; left: -8rem; border-radius: 9999px;
  background: rgba(37, 99, 235, .32); filter: blur(80px);
}
.ch-band__glow {
  position: absolute; z-index: -1; pointer-events: none; border-radius: 9999px; filter: blur(80px);
  width: 24rem; height: 24rem; bottom: -16rem; right: -4rem; background: rgba(124, 58, 237, .25);
}
.ch-band__inner { max-width: 72rem; margin: 0 auto; padding: 3rem 1rem 3.25rem; }
@media (min-width: 1024px) { .ch-band__inner { padding: 3.75rem 1.5rem 4rem; } }
.ch-band--center .ch-band__inner { text-align: center; }
.ch-band--center .ch-band__desc, .ch-band--center .bh-searchform { margin-left: auto; margin-right: auto; }

.ch-band__kicker {
  display: inline-flex; align-items: center; gap: .45rem; margin: 0 0 1.1rem;
  padding: .3rem .8rem; border-radius: 9999px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
  color: #e2e8f0; font-size: .75rem; font-weight: 600; letter-spacing: .03em;
}
.ch-band__kicker .bh-ico { width: .9rem; height: .9rem; color: #60a5fa; }
.ch-band__title {
  margin: 0 0 .85rem; color: #fff; font-family: var(--ch-head); font-weight: 800;
  font-size: clamp(1.9rem, 1.3rem + 2.5vw, 3rem); line-height: 1.1; letter-spacing: -.028em; text-wrap: balance;
}
.ch-hl {
  background: var(--ch-hl); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: #93c5fd;
}
.ch-band__desc { margin: 0; max-width: 42rem; font-size: 1.05rem; line-height: 1.65; color: #94a3b8; }
.ch-band__count {
  display: inline-flex; align-items: center; gap: .4rem; margin: 1.25rem 0 0;
  font-size: .8125rem; font-weight: 500; color: #64748b;
}
.ch-band__count strong { color: #e2e8f0; font-weight: 700; }

.ch-band .bh-searchform {
  margin-top: 1.75rem; border-radius: .9rem; padding: .35rem;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
}
.ch-band .bh-searchform:focus-within { border-color: #60a5fa; box-shadow: 0 0 0 4px rgba(96, 165, 250, .18); }
.ch-band .bh-searchform input { color: #f8fafc; padding: .65rem .85rem; }
.ch-band .bh-searchform input::placeholder { color: #64748b; }
.ch-band .bh-searchform button { border-radius: .65rem; background: var(--ch-grad); padding: 0 1.2rem; }
.ch-band .bh-chip { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .14); color: #cbd5e1; }
.ch-band .bh-chip:hover { border-color: #60a5fa; color: #fff; background: rgba(96, 165, 250, .12); }
.ch-band .bh-btn { margin-top: 1.5rem; }

/* Light band: posts and pages. Same grid and glow, on white. */
.ch-band--light {
  background: linear-gradient(180deg, #f5f8ff 0%, #ffffff 100%);
  color: #475569; border-bottom: 1px solid #eef2f7;
}
.ch-band--light::before {
  background-image:
    linear-gradient(rgba(37, 99, 235, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, .06) 1px, transparent 1px);
}
.ch-band--light::after { background: rgba(59, 130, 246, .14); }
.ch-band--light .ch-band__glow { background: rgba(139, 92, 246, .1); }
.ch-band--light .ch-band__title { color: #0f172a; }
.ch-band--light .ch-hl { background: var(--ch-hl-light); -webkit-background-clip: text; background-clip: text; color: #2563eb; }
.ch-band--light .ch-band__desc { color: #475569; }
.ch-band--light .ch-band__inner { padding-top: 2.75rem; padding-bottom: 2.75rem; }
@media (min-width: 1024px) { .ch-band--light .ch-band__inner { padding-top: 3.25rem; padding-bottom: 3rem; } }

/* Post / page header */
.ch-post-head { max-width: 48rem; }
.ch-post-chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.25rem; }
.ch-chip {
  display: inline-flex; align-items: center; padding: .28rem .7rem; border-radius: 9999px;
  font-size: .75rem; font-weight: 600; text-decoration: none; transition: all .15s ease;
  color: #475569; background: #fff; border: 1px solid #e2e8f0;
}
.ch-chip:hover { color: #1d4ed8; border-color: #93c5fd; background: #eff6ff; }
.ch-chip--cat { color: #1d4ed8; background: #eff6ff; border-color: #bfdbfe; }
.ch-chip--cat:hover { background: #dbeafe; }
.ch-post-dek { margin: 0 0 1.5rem; font-size: 1.125rem; line-height: 1.65; color: #475569; max-width: 44rem; }
.ch-band--light .bh-post-meta { color: #64748b; font-size: .875rem; }
.ch-band--light .bh-post-meta__name { color: #0f172a; font-weight: 600; text-decoration: none; }
.ch-band--light .bh-post-meta__name:hover { color: #2563eb; }
.ch-band--light .bh-post-meta__sep { color: #cbd5e1; }
.ch-band--light .bh-post-meta .bh-ico { color: #3b82f6; }
.ch-band--light .bh-post-meta__avatar { box-shadow: 0 0 0 2px #fff, 0 0 0 3px #dbeafe; }
.ch-updated { margin: .75rem 0 0; font-size: .8rem; color: #94a3b8; }
.ch-updated time { color: #64748b; }

/* ── Section headings ───────────────────────────────────────────────────── */
.ch-kicker {
  display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 .4rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #2563eb;
}
.ch-kicker::before { content: ""; width: 1.25rem; height: 2px; border-radius: 2px; background: var(--ch-grad); }
.bh-section-head { align-items: flex-end; margin-bottom: 1.75rem; }
.bh-section-title, .bh-related__title { font-family: var(--ch-head); font-weight: 800; letter-spacing: -.025em; color: #0f172a; }
.bh-section-title { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.ch-section-link {
  display: inline-flex; align-items: center; gap: .3rem; font-size: .875rem; font-weight: 600;
  color: #2563eb; text-decoration: none; white-space: nowrap;
}
.ch-section-link:hover { color: #1d4ed8; }
.ch-section-link .bh-ico { transition: transform .15s ease; }
.ch-section-link:hover .bh-ico { transform: translateX(3px); }
.bh-listwrap { padding-top: 3rem; }

/* ── Cards ──────────────────────────────────────────────────────────────── */
.bh-card { border-color: #e5e9f0; border-radius: 1.1rem; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.bh-card:hover {
  border-color: #c7d7fe; transform: translateY(-4px);
  box-shadow: 0 22px 44px -22px rgba(37, 99, 235, .38), 0 2px 6px rgba(15, 23, 42, .04);
}
.bh-card__body { padding: 1.15rem 1.25rem 1.2rem; }
.bh-card__cat { padding: .22rem .65rem; border-radius: 9999px; background: #eff6ff; color: #1d4ed8; letter-spacing: .04em; margin-bottom: .65rem; }
.bh-card__cat:hover { background: #dbeafe; text-decoration: none; }
.bh-card__title { font-family: var(--ch-head); font-weight: 700; font-size: 1.08rem; letter-spacing: -.012em; line-height: 1.35; }
.bh-card__meta { padding-top: .9rem; border-top: 1px solid #f1f5f9; }
.bh-card__more { margin-left: auto; display: inline-flex; align-items: center; gap: .25rem; font-weight: 600; color: #2563eb; transition: gap .15s ease; }
.bh-card__more .bh-ico { color: currentColor !important; }
.bh-card:hover .bh-card__more { gap: .45rem; }
.bh-card__media--empty { background: linear-gradient(135deg, #0f1b33, #1e3a8a); color: #60a5fa; }

/* ── Pagination ─────────────────────────────────────────────────────────── */
.bh-pager__num, .bh-pager__step { border-color: #e2e8f0; border-radius: .75rem; font-weight: 600; }
.bh-pager__num.is-current { background: var(--ch-grad); border-color: transparent; box-shadow: 0 8px 18px -8px rgba(59, 130, 246, .7); }

/* ── Sidebar ────────────────────────────────────────────────────────────── */
.bh-sidebar .widget { border-color: #e5e9f0; border-radius: 1rem; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.bh-sidebar .widget-title { display: flex; align-items: center; gap: .55rem; font-size: .78rem; font-weight: 700; letter-spacing: .07em; }
.bh-sidebar .widget-title::before { content: ""; width: 3px; height: .95rem; border-radius: 3px; background: var(--ch-grad); flex-shrink: 0; }
.bh-sidebar .widget-search input[type="search"] { border-radius: .65rem; background: #f8fafc; }
.bh-sidebar .widget-search button { background: var(--ch-grad); border-radius: .65rem; }
.bh-sidebar .widget-recent-posts__title { color: #0f172a !important; font-weight: 600; }
.bh-sidebar .widget-recent-posts__title:hover { color: #2563eb !important; text-decoration: none !important; }
.bh-sidebar .widget-count { background: #eff6ff !important; color: #1d4ed8; font-weight: 600; }

/* ── Article body ───────────────────────────────────────────────────────── */
.prose :where(h1, h2, h3, h4) { font-family: var(--ch-head) !important; font-weight: 800; letter-spacing: -.02em; color: #0f172a; }
.prose :where(h2) { padding-top: .25rem; }
.prose :where(a) { color: #2563eb; text-decoration: underline; text-decoration-color: rgba(37, 99, 235, .3); text-underline-offset: 3px; }
.prose :where(a):hover { text-decoration-color: currentColor; }
.prose :where(blockquote) {
  border-left: 3px solid #6366f1; background: #f8fafc; border-radius: 0 .75rem .75rem 0;
  padding: .75rem 1.25rem; font-style: normal; color: #334155;
}

/* Inline code only. Prettify's line numbers wrap every line of a code box in
   its own <code> inside an <li>, so "code not directly in pre" also matched
   those and painted a light strip behind each line. Anything inside a <pre>
   is excluded here and forced transparent below. */
.prose code:not(pre code) {
  background: #eef2ff; color: #4338ca; border-radius: .35rem; padding: .12rem .4rem; font-weight: 500;
}
.prose code:not(pre code)::before, .prose code:not(pre code)::after { content: none; }
.prose pre code,
.prose pre ol.linenums,
.prose pre ol.linenums li,
.prose pre ol.linenums li code {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding-top: 0; padding-bottom: 0;
  font-weight: 400;
}
.prose pre code { padding: 0 !important; color: inherit; }
.prose pre ol.linenums li code { padding: 0 !important; color: #e2e8f0; }
/* A code box: dark, framed, on both light and dark pages. */
.prose pre { background: #0f172a !important; border-color: #1e293b !important; box-shadow: 0 14px 30px -18px rgba(15, 23, 42, .5); }

.prose :where(table) { font-size: .9em; }
.prose :where(thead th) { background: #f8fafc; }
.prose :where(hr) { border-color: #e2e8f0; }
.bh-featured { border-radius: 1.1rem; border-color: #e5e9f0; box-shadow: 0 24px 48px -28px rgba(15, 23, 42, .35); }

.bh-author-box { background: linear-gradient(135deg, #f8fafc, #eff6ff) !important; border-color: #e0e7ff !important; border-radius: 1.1rem !important; }
.bh-author-box__name a { font-family: var(--ch-head); font-weight: 800; }
.bh-related__card { border-radius: 1rem; border-color: #e5e9f0; }
.bh-related__heading { font-family: var(--ch-head); font-weight: 700; }
#comments h2 { font-family: var(--ch-head); font-weight: 800; letter-spacing: -.02em; }
.bh-comment-form { border-radius: 1.1rem !important; }
.bh-comment-form__submit { background: var(--ch-grad) !important; border-radius: .65rem !important; }

/* ── Buttons, empty states ─────────────────────────────────────────────── */
.bh-btn { border-radius: .75rem; }
.bh-btn--primary { background: var(--ch-grad); box-shadow: 0 10px 22px -10px rgba(59, 130, 246, .75); }
.bh-btn--primary:hover { background: var(--ch-grad); filter: brightness(1.08); }
.bh-empty__title { font-family: var(--ch-head); font-weight: 800; }

/* ── Footer (light) ─────────────────────────────────────────────────────── */
.bh-footer { margin-top: 5rem; background: linear-gradient(180deg, #f8fafc, #f1f5f9); border-top: 1px solid #e5e9f0; }
.bh-footer__name { font-family: var(--ch-head); font-weight: 800; font-size: 1.1rem; letter-spacing: -.02em; color: #0f172a; }
.bh-footer__heading { display: flex; align-items: center; gap: .5rem; color: #0f172a; }
.bh-footer__heading::before { content: ""; width: 3px; height: .85rem; border-radius: 3px; background: var(--ch-grad); flex-shrink: 0; }
.bh-footer__links a:hover { color: #2563eb; }
.bh-footer__social a:hover { color: #2563eb; border-color: #93c5fd; background: #eff6ff; }

/* ── 404 ────────────────────────────────────────────────────────────────── */
.ch-404 { font-size: clamp(4.5rem, 3rem + 6vw, 7.5rem); font-weight: 800; line-height: 1; letter-spacing: -.05em; margin: 0 0 .5rem; font-family: var(--ch-head); }

@media (prefers-reduced-motion: reduce) {
  .bh-card:hover { transform: none; }
}
