/*!
 * Kloudbean Changelog -- front-end design system (light theme).
 *
 * Two coexisting contexts, both using the shared components below:
 *   .kbcl-scope   full dedicated pages (archive + single) -- a clean, light
 *                 "product" canvas, independent of whatever theme is
 *                 active, similar in spirit to how Linear/Vercel/Stripe
 *                 treat their changelog as its own designed surface.
 *   .kbcl-inline  shortcode output ([kloudbean_changelog], subscribe form
 *                 used standalone) -- intentionally theme-neutral so it
 *                 doesn't fight whatever page it's dropped into.
 *
 * Shared components (pills, buttons, the subscribe form, icons) are
 * theme-neutral by default and layered with context-specific text/background
 * rules, so they look right in both places without duplication.
 */

/* ==========================================================================
   1. Design tokens
   ========================================================================== */

.kbcl-scope {
	--kbcl-bg: #ffffff;
	--kbcl-bg-elevated: #f4f5f8;
	--kbcl-bg-card: #ffffff;
	--kbcl-border: rgba(15, 23, 42, 0.09);
	--kbcl-border-strong: rgba(15, 23, 42, 0.16);
	--kbcl-text: #0f1729;
	--kbcl-text-muted: #5b6478;
	--kbcl-text-faint: #8a93a6;
	--kbcl-accent: #7c3aed;
	--kbcl-accent-2: #0284c7;
	--kbcl-shadow: 0 20px 45px -20px rgba(15, 23, 42, 0.18);
	--kbcl-radius-sm: 8px;
	--kbcl-radius-md: 14px;
	--kbcl-radius-lg: 22px;
	--kbcl-ease: cubic-bezier(0.16, 1, 0.3, 1);

	color: var(--kbcl-text);
	background: var(--kbcl-bg);
}

/*
 * Category color system. Bare attribute selectors (not tied to a specific
 * element/class) so the same --kbcl-cat / --kbcl-cat-bg custom properties
 * can cascade from whichever element carries data-category -- the pill
 * itself, but also a parent .kbcl-entry/.kbcl-filter, letting descendants
 * like the timeline rail dot pick up the matching color via var(--kbcl-cat).
 * Colors are deepened relative to the dark theme so they still hold enough
 * contrast against a white background.
 */
[data-category="new"] {
	--kbcl-cat: #059669;
	--kbcl-cat-bg: rgba(5, 150, 105, 0.12);
}
[data-category="improved"] {
	--kbcl-cat: #2563eb;
	--kbcl-cat-bg: rgba(37, 99, 235, 0.12);
}
[data-category="fixed"] {
	--kbcl-cat: #d97706;
	--kbcl-cat-bg: rgba(217, 119, 6, 0.12);
}
[data-category="security"] {
	--kbcl-cat: #dc2626;
	--kbcl-cat-bg: rgba(220, 38, 38, 0.12);
}
[data-category="deprecated"] {
	--kbcl-cat: #64748b;
	--kbcl-cat-bg: rgba(100, 116, 139, 0.12);
}
[data-category="announcement"] {
	--kbcl-cat: #9333ea;
	--kbcl-cat-bg: rgba(147, 51, 234, 0.12);
}

/* ==========================================================================
   2. Base / reset within our scope only -- never touch global tags
   ========================================================================== */

.kbcl-scope,
.kbcl-inline {
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

.kbcl-scope a,
.kbcl-inline a {
	color: inherit;
}

/*
 * Hardening against the host theme's own global styles (e.g. Elementor's
 * "Global Colors" kit CSS, or any theme/page-builder that styles bare
 * h1-h6/a/button tags site-wide). Those rules match our own headings,
 * links, and the subscribe button, and typically carry a class+tag
 * selector (specificity 0,1,1), which beats our plain class selectors
 * (0,1,0) regardless of stylesheet load order -- silently recoloring AND
 * resizing our text to the host theme's palette/scale. Confirmed against
 * a real theme's global kit CSS to cover not just color, but font-size,
 * font-weight, and line-height too (all three are common global-style
 * targets on h1-h3 specifically).
 *
 * :where() keeps this reset itself at the same specificity as a single
 * class (0,1,0), so any later, more specific rule below still overrides it
 * via normal source order. !important is only needed to win against the
 * *host* theme's rules, which are outside our control -- every rule below
 * that intentionally sets one of these properties on one of these tags is
 * marked !important to win that same fight. Scoped to .kbcl-scope only
 * (full dedicated pages); .kbcl-inline is deliberately theme-neutral and
 * should keep blending into whatever page it's embedded in.
 *
 * Deliberately longhand (background-color), never the `background`
 * shorthand: the shorthand resets background-clip/background-image as a
 * side effect, which would fight .kbcl-hero__title's gradient-text-clip
 * technique below if this rule (or that one) ever used `background: ...`
 * with !important -- the !important would attach to the shorthand's
 * implicit background-clip:border-box too, permanently overriding any
 * later background-clip:text. Longhand avoids that trap entirely.
 */
.kbcl-scope :where(h1, h2, h3, h4, h5, h6, a) {
	color: inherit !important;
	background-color: transparent !important;
	font-size: inherit !important;
	font-weight: inherit !important;
	line-height: inherit !important;
	letter-spacing: inherit !important;
}

/*
 * button gets extra resets: unlike headings/links, "global button"
 * styles commonly also set a background, border, and font-size
 * (Elementor's kit CSS does exactly this).
 * .kbcl-tag/.kbcl-filter/.kbcl-nav-adjacent__link/pagination links
 * intentionally keep their own borders and render as <a>, not <button>,
 * so they're unaffected by this.
 */
.kbcl-scope :where(button) {
	color: inherit !important;
	background-color: transparent !important;
	background-image: none !important;
	border: none !important;
	border-radius: 0 !important;
	font-family: inherit !important;
	font-size: inherit !important;
	font-weight: inherit !important;
	line-height: inherit !important;
}

.kbcl-scope *,
.kbcl-inline * {
	box-sizing: border-box;
}

@media (prefers-reduced-motion: reduce) {
	.kbcl-scope *,
	.kbcl-inline * {
		transition-duration: 0.001ms !important;
		animation-duration: 0.001ms !important;
	}
}

/* ==========================================================================
   3. Page canvas (breaks out to full viewport width, Gutenberg's own
      alignfull formula, so it renders as an immersive section regardless
      of the active theme's content container)
   ========================================================================== */

.kbcl-page {
	position: relative;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	width: auto;
	max-width: 1000vw;
	overflow: hidden;
	padding: 72px 0 96px;
}

.kbcl-page::before,
.kbcl-page::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	filter: blur(80px);
	opacity: 0.18;
	pointer-events: none;
	z-index: 0;
}
.kbcl-page::before {
	width: 520px;
	height: 520px;
	top: -220px;
	right: -120px;
	background: radial-gradient(circle, var(--kbcl-accent), transparent 70%);
}
.kbcl-page::after {
	width: 460px;
	height: 460px;
	bottom: -180px;
	left: -140px;
	background: radial-gradient(circle, var(--kbcl-accent-2), transparent 70%);
	opacity: 0.12;
}

/* Faint dot-grid texture, pure CSS, no image requests. */
.kbcl-page__grid {
	position: absolute;
	inset: 0;
	z-index: 0;
	background-image: radial-gradient(rgba(15, 23, 42, 0.05) 1px, transparent 1px);
	background-size: 28px 28px;
	-webkit-mask-image: linear-gradient(to bottom, black, transparent 85%);
	mask-image: linear-gradient(to bottom, black, transparent 85%);
	pointer-events: none;
}

.kbcl-container {
	position: relative;
	z-index: 1;
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 24px;
}
.kbcl-container--narrow {
	max-width: 760px;
}

/* ==========================================================================
   4. Hero
   ========================================================================== */

.kbcl-hero {
	margin-bottom: 56px;
}

.kbcl-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--kbcl-accent-2);
	margin: 0 0 16px;
}
.kbcl-eyebrow::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--kbcl-accent-2);
	box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.16);
}

.kbcl-hero__title {
	font-size: clamp(2.5rem, 5vw, 3.75rem) !important;
	font-weight: 800 !important;
	line-height: 1.05 !important;
	letter-spacing: -0.02em !important;
	margin: 0 0 16px;
	/*
	 * Deliberately background-image (longhand), never the `background`
	 * shorthand: the shorthand implicitly resets background-clip to
	 * border-box as one of its longhands, and marking a shorthand
	 * !important makes that implicit reset !important too -- which would
	 * permanently defeat the background-clip:text below regardless of
	 * source order, filling the whole box instead of clipping to the
	 * letters. Longhand avoids touching background-clip at all.
	 *
	 * !important on every property here: overrides the .kbcl-scope h1
	 * reset above, and the host theme's own global h1 color, so the
	 * gradient-text effect survives on any theme.
	 */
	background-image: linear-gradient(135deg, #0f1729 20%, var(--kbcl-accent) 85%, var(--kbcl-accent-2) 120%) !important;
	-webkit-background-clip: text !important;
	background-clip: text !important;
	-webkit-text-fill-color: transparent !important;
	color: transparent !important;
}

.kbcl-hero__subtitle {
	font-size: clamp(1rem, 1.5vw, 1.2rem);
	color: var(--kbcl-text-muted);
	max-width: 46ch;
	margin: 0 0 32px;
	line-height: 1.6;
}

.kbcl-hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 24px;
}

.kbcl-rss-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.875rem !important;
	font-weight: 600 !important;
	line-height: 1.4 !important;
	color: var(--kbcl-text-muted) !important;
	text-decoration: none;
	transition: color 0.2s var(--kbcl-ease);
}
.kbcl-rss-link:hover {
	color: var(--kbcl-accent-2) !important;
}
.kbcl-rss-link svg {
	width: 16px;
	height: 16px;
}

/* ==========================================================================
   5. Shared components: pills, chips, buttons
   ========================================================================== */

.kbcl-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1;
	padding: 5px 11px;
	border-radius: 999px;
	color: var(--kbcl-cat, currentColor);
	background: var(--kbcl-cat-bg, rgba(100, 116, 139, 0.12));
	white-space: nowrap;
}
.kbcl-pill::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--kbcl-cat, currentColor);
	flex-shrink: 0;
}

.kbcl-chip {
	display: inline-flex;
	align-items: center;
	font-size: 0.75rem;
	font-family: "SF Mono", "Fira Code", ui-monospace, Menlo, Consolas, monospace;
	color: var(--kbcl-text-faint, #7c8698);
	padding: 4px 9px;
	border: 1px solid var(--kbcl-border, rgba(15, 23, 42, 0.12));
	border-radius: 6px;
}

.kbcl-tag {
	display: inline-flex;
	align-items: center;
	font-size: 0.8rem !important;
	font-weight: 400 !important;
	line-height: 1.4 !important;
	color: var(--kbcl-text-muted, #6b7280) !important;
	background: transparent;
	border: 1px solid var(--kbcl-border, rgba(15, 23, 42, 0.12));
	border-radius: 999px;
	padding: 5px 12px;
	text-decoration: none;
	transition: border-color 0.2s var(--kbcl-ease), color 0.2s var(--kbcl-ease);
}
.kbcl-tag:hover {
	border-color: var(--kbcl-accent, #7c3aed);
	color: var(--kbcl-accent, #7c3aed) !important;
}

.kbcl-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 22px;
	border-radius: 999px !important;
	border: none;
	/*
	 * font-family is set explicitly (not just inherited from .kbcl-scope)
	 * because browsers' own default UA stylesheet gives <button>/<input>
	 * a special non-inheriting font (the OS UI font), independent of any
	 * theme -- without this, the button would use the browser/OS default
	 * font instead of ours on every site, theme conflict or not.
	 *
	 * !important throughout: overrides both the .kbcl-scope button reset
	 * above and the host theme's own global button styles (page builders
	 * commonly style bare <button> site-wide -- color, background, size,
	 * border, and border-radius all included).
	 */
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
	font-size: 0.9rem !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	color: #fff !important;
	background: linear-gradient(135deg, #7c3aed, #4f46e5) !important;
	cursor: pointer;
	white-space: nowrap;
	transition: transform 0.2s var(--kbcl-ease), box-shadow 0.2s var(--kbcl-ease), opacity 0.2s var(--kbcl-ease);
	box-shadow: 0 8px 20px -6px rgba(124, 58, 237, 0.4);
}
.kbcl-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 12px 26px -6px rgba(124, 58, 237, 0.5);
}
.kbcl-btn:disabled {
	opacity: 0.6;
	cursor: default;
	transform: none;
}

.kbcl-icon {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}
.kbcl-icon--sm {
	width: 14px;
	height: 14px;
}

/* ==========================================================================
   6. Subscribe form (shared: used inside the hero and as a standalone
      shortcode, so it can't assume a dark or light host background)
   ========================================================================== */

.kbcl-subscribe-form {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	max-width: 30rem;
}

.kbcl-subscribe-form__field {
	position: relative;
	flex: 1 1 220px;
}
.kbcl-subscribe-form__field svg {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	width: 16px;
	height: 16px;
	color: var(--kbcl-text-faint, #8a93a6);
	pointer-events: none;
}

.kbcl-subscribe-form input[type="email"] {
	width: 100%;
	font-size: 0.9rem;
	padding: 12px 14px 12px 38px;
	border-radius: 999px;
	border: 1px solid var(--kbcl-border, rgba(15, 23, 42, 0.14));
	background: rgba(15, 23, 42, 0.03);
	color: inherit;
	outline: none;
	transition: border-color 0.2s var(--kbcl-ease), background 0.2s var(--kbcl-ease);
}
.kbcl-subscribe-form input[type="email"]::placeholder {
	color: var(--kbcl-text-faint, #8a93a6);
}
.kbcl-subscribe-form input[type="email"]:focus {
	border-color: var(--kbcl-accent, #7c3aed);
	background: rgba(15, 23, 42, 0.045);
}

.kbcl-subscribe-message {
	width: 100%;
	font-size: 0.85rem;
	margin: 6px 0 0;
	min-height: 1.2em;
}
.kbcl-subscribe-message[data-state="success"] {
	color: #059669;
}
.kbcl-subscribe-message[data-state="error"] {
	color: #dc2626;
}

/* Honeypot: present in the DOM for bots that blindly fill every field, but
   hidden and unreachable for sighted, keyboard, and screen-reader users. */
.kbcl-subscribe-form__hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ==========================================================================
   7. Category filter row (archive)
   ========================================================================== */

.kbcl-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 48px;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--kbcl-border);
}

.kbcl-filter {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.8rem !important;
	font-weight: 600 !important;
	line-height: 1.4 !important;
	padding: 7px 14px;
	border-radius: 999px;
	border: 1px solid var(--kbcl-border);
	color: var(--kbcl-text-muted) !important;
	text-decoration: none;
	transition: all 0.2s var(--kbcl-ease);
}
.kbcl-filter:hover {
	border-color: var(--kbcl-border-strong);
	color: var(--kbcl-text) !important;
}
.kbcl-filter[aria-current="true"] {
	background: var(--kbcl-text) !important;
	border-color: var(--kbcl-text);
	color: var(--kbcl-bg) !important;
}
.kbcl-filter__dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--kbcl-cat, currentColor);
}

/* ==========================================================================
   8. Timeline (archive entry list)
   ========================================================================== */

.kbcl-month {
	margin-bottom: 8px;
}
.kbcl-month__label {
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--kbcl-accent-2);
	margin: 0 0 8px;
}

.kbcl-timeline {
	list-style: none;
	margin: 0 0 40px;
	padding: 0;
	position: relative;
}
.kbcl-timeline::before {
	content: "";
	position: absolute;
	top: 8px;
	bottom: 8px;
	left: 27px;
	width: 1px;
	background: linear-gradient(to bottom, var(--kbcl-border-strong), transparent 96%);
}

.kbcl-entry {
	position: relative;
	display: grid;
	grid-template-columns: 56px 1fr;
	gap: 24px;
	padding: 28px 0;
	border-bottom: 1px solid var(--kbcl-border);
}
.kbcl-timeline > .kbcl-entry:first-child {
	padding-top: 4px;
}
.kbcl-timeline > .kbcl-entry:last-child {
	border-bottom: none;
}

.kbcl-entry__link {
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: var(--kbcl-radius-md);
}
.kbcl-entry__link:focus-visible {
	outline: 2px solid var(--kbcl-accent-2);
	outline-offset: 4px;
}

.kbcl-rail {
	position: relative;
	text-align: center;
	/*
	 * Reserves room for .kbcl-rail__dot INSIDE this box (rather than the
	 * dot escaping above it via a negative margin, as before). That
	 * mattered because .kbcl-timeline > .kbcl-entry:first-child below uses
	 * a much smaller padding-top than other entries -- for that entry,
	 * pulling the dot upward by a fixed amount relative to .kbcl-rail was
	 * enough to push it above the entire <li>, overlapping the month
	 * label sitting right above the list. Since every month gets its own
	 * <ul class="kbcl-timeline">, this hit the first entry of every
	 * month, not just the very first entry on the page.
	 */
	padding-top: 16px;
}
.kbcl-rail__day {
	font-size: 1.375rem;
	font-weight: 800;
	line-height: 1;
	color: var(--kbcl-text);
}
.kbcl-rail__weekday {
	display: block;
	font-size: 0.65rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--kbcl-text-faint);
	margin-top: 2px;
}
.kbcl-rail__dot {
	position: absolute;
	top: 2px;
	left: 50%;
	transform: translateX(-50%);
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--kbcl-cat, var(--kbcl-accent));
	box-shadow: 0 0 0 4px var(--kbcl-bg), 0 0 0 5px var(--kbcl-border-strong);
}

.kbcl-entry__body {
	position: relative;
	min-width: 0;
}
.kbcl-entry__meta-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 10px;
}

.kbcl-entry__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
	align-items: start;
}
.kbcl-entry--has-media .kbcl-entry__grid {
	grid-template-columns: 1fr 200px;
}

.kbcl-entry__title {
	font-size: 1.25rem !important;
	font-weight: 700 !important;
	line-height: 1.35 !important;
	margin: 0 0 8px;
	color: var(--kbcl-text) !important;
	transition: color 0.2s var(--kbcl-ease);
}
.kbcl-entry:hover .kbcl-entry__title {
	color: var(--kbcl-accent-2) !important;
}

.kbcl-entry__excerpt {
	color: var(--kbcl-text-muted);
	line-height: 1.65;
	margin: 0 0 14px;
	max-width: 62ch;
}

.kbcl-entry__media img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--kbcl-radius-sm);
	border: 1px solid var(--kbcl-border);
	display: block;
}

.kbcl-entry__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 14px;
	position: relative;
	z-index: 2;
}

.kbcl-entry__cta {
	position: relative;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.85rem !important;
	font-weight: 700 !important;
	line-height: 1.4 !important;
	color: var(--kbcl-accent-2) !important;
	text-decoration: none;
}
.kbcl-entry__cta svg {
	width: 14px;
	height: 14px;
	transition: transform 0.2s var(--kbcl-ease);
}
.kbcl-entry:hover .kbcl-entry__cta svg {
	transform: translateX(3px);
}

/* ==========================================================================
   9. Empty state
   ========================================================================== */

.kbcl-empty {
	text-align: center;
	padding: 64px 24px;
	border: 1px dashed var(--kbcl-border-strong);
	border-radius: var(--kbcl-radius-lg);
	color: var(--kbcl-text-muted);
}

/* ==========================================================================
   10. Pagination (styles WP core's default the_posts_pagination markup)
   ========================================================================== */

.kbcl-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.kbcl-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 12px;
	border-radius: 999px;
	border: 1px solid var(--kbcl-border);
	color: var(--kbcl-text-muted) !important;
	text-decoration: none;
	font-size: 0.85rem !important;
	font-weight: 600 !important;
	line-height: 1 !important;
	transition: all 0.2s var(--kbcl-ease);
}
.kbcl-pagination .page-numbers:hover {
	border-color: var(--kbcl-border-strong);
	color: var(--kbcl-text) !important;
}
.kbcl-pagination .page-numbers.current {
	background: linear-gradient(135deg, #7c3aed, #4f46e5) !important;
	border-color: transparent;
	color: #fff !important;
}
.kbcl-pagination .page-numbers.dots {
	border: none;
}

/* ==========================================================================
   11. Single entry
   ========================================================================== */

.kbcl-breadcrumb {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.85rem !important;
	font-weight: 600 !important;
	line-height: 1.4 !important;
	color: var(--kbcl-text-muted) !important;
	text-decoration: none;
	margin-bottom: 28px;
	transition: color 0.2s var(--kbcl-ease);
}
.kbcl-breadcrumb:hover {
	color: var(--kbcl-text) !important;
}
.kbcl-breadcrumb svg {
	width: 14px;
	height: 14px;
}

.kbcl-single__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin-bottom: 18px;
}

.kbcl-single__title {
	font-size: clamp(1.9rem, 4vw, 2.75rem) !important;
	font-weight: 800 !important;
	line-height: 1.15 !important;
	letter-spacing: -0.01em !important;
	margin: 0 0 20px;
	color: var(--kbcl-text) !important;
}

.kbcl-meta-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 18px;
	color: var(--kbcl-text-faint);
	font-size: 0.85rem;
	margin-bottom: 36px;
	padding-bottom: 28px;
	border-bottom: 1px solid var(--kbcl-border);
}
.kbcl-meta-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.kbcl-meta-item svg {
	width: 15px;
	height: 15px;
}

.kbcl-cover {
	margin-bottom: 40px;
	border-radius: var(--kbcl-radius-lg);
	overflow: hidden;
	border: 1px solid var(--kbcl-border);
	box-shadow: var(--kbcl-shadow);
}
.kbcl-cover img {
	width: 100%;
	display: block;
}

/* Prose: typography for arbitrary post_content HTML. */
.kbcl-prose {
	font-size: 1.05rem;
	line-height: 1.75;
	color: #29303d;
}
.kbcl-prose > *:first-child {
	margin-top: 0;
}
.kbcl-prose h1 {
	font-size: 1.75rem !important;
	font-weight: 700 !important;
	line-height: 1.3 !important;
	margin: 2.2em 0 0.7em;
	color: var(--kbcl-text) !important;
	letter-spacing: -0.01em;
}
.kbcl-prose h2 {
	font-size: 1.5rem !important;
	font-weight: 700 !important;
	line-height: 1.35 !important;
	margin: 2.2em 0 0.7em;
	color: var(--kbcl-text) !important;
	letter-spacing: -0.01em;
}
.kbcl-prose h3 {
	font-size: 1.2rem !important;
	font-weight: 700 !important;
	line-height: 1.4 !important;
	margin: 1.8em 0 0.6em;
	color: var(--kbcl-text) !important;
}
.kbcl-prose h4,
.kbcl-prose h5,
.kbcl-prose h6 {
	font-size: 1.05rem !important;
	font-weight: 700 !important;
	line-height: 1.4 !important;
	margin: 1.6em 0 0.5em;
	color: var(--kbcl-text) !important;
}
.kbcl-prose p {
	margin: 0 0 1.2em;
}
.kbcl-prose ul,
.kbcl-prose ol {
	margin: 0 0 1.4em;
	padding-left: 1.4em;
}
.kbcl-prose li {
	margin-bottom: 0.55em;
	padding-left: 0.3em;
}
.kbcl-prose ul > li::marker {
	color: var(--kbcl-accent-2);
}
.kbcl-prose ol > li::marker {
	color: var(--kbcl-accent-2);
	font-weight: 700;
}
.kbcl-prose a {
	color: var(--kbcl-accent-2) !important;
	/*
	 * Explicit values, not `inherit`: inherit would pick up whatever
	 * font-size/font-weight cascades down from the *host theme's* body
	 * element (many themes set a body-level font-weight like 300), which
	 * is exactly the kind of unpredictable host-theme dependency this
	 * whole reset exists to avoid. 1em/inherit-from-.kbcl-prose-p (400) are
	 * our own explicit, predictable values instead.
	 */
	font-size: 1em !important;
	font-weight: 400 !important;
	text-decoration: underline;
	text-decoration-color: rgba(2, 132, 199, 0.35);
	text-underline-offset: 2px;
}
.kbcl-prose a:hover {
	text-decoration-color: currentColor;
}
.kbcl-prose strong {
	color: var(--kbcl-text);
	font-weight: 700;
}
.kbcl-prose blockquote {
	margin: 1.6em 0;
	padding: 4px 0 4px 20px;
	border-left: 3px solid var(--kbcl-accent);
	color: var(--kbcl-text-muted);
	font-style: italic;
}
.kbcl-prose code {
	font-family: "SF Mono", "Fira Code", ui-monospace, Menlo, Consolas, monospace;
	font-size: 0.88em;
	background: rgba(15, 23, 42, 0.055);
	border: 1px solid var(--kbcl-border);
	border-radius: 5px;
	padding: 0.15em 0.4em;
}
.kbcl-prose pre {
	background: var(--kbcl-bg-elevated);
	border: 1px solid var(--kbcl-border);
	border-radius: var(--kbcl-radius-sm);
	padding: 16px 18px;
	overflow-x: auto;
	margin: 1.6em 0;
}
.kbcl-prose pre code {
	background: none;
	border: none;
	padding: 0;
}
.kbcl-prose img {
	max-width: 100%;
	border-radius: var(--kbcl-radius-sm);
	border: 1px solid var(--kbcl-border);
	margin: 1.6em 0;
}
.kbcl-prose hr {
	border: none;
	border-top: 1px solid var(--kbcl-border);
	margin: 2.4em 0;
}
.kbcl-prose table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.6em 0;
	font-size: 0.92em;
}
.kbcl-prose th,
.kbcl-prose td {
	border: 1px solid var(--kbcl-border);
	padding: 8px 12px;
	text-align: left;
}
.kbcl-prose th {
	background: rgba(15, 23, 42, 0.035);
	font-weight: 700;
}

.kbcl-single__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 44px;
	padding-top: 28px;
	border-top: 1px solid var(--kbcl-border);
}

/* Prev / Next entry navigation */
.kbcl-nav-adjacent {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-top: 40px;
}
.kbcl-nav-adjacent__link {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 20px;
	border: 1px solid var(--kbcl-border);
	border-radius: var(--kbcl-radius-md);
	text-decoration: none;
	transition: border-color 0.2s var(--kbcl-ease), transform 0.2s var(--kbcl-ease), background 0.2s var(--kbcl-ease);
}
.kbcl-nav-adjacent__link:hover {
	border-color: var(--kbcl-border-strong);
	background: rgba(15, 23, 42, 0.025);
	transform: translateY(-2px);
}
.kbcl-nav-adjacent__link--next {
	text-align: right;
	align-items: flex-end;
}
.kbcl-nav-adjacent__label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--kbcl-text-faint);
}
.kbcl-nav-adjacent__label svg {
	width: 13px;
	height: 13px;
}
.kbcl-nav-adjacent__title {
	font-size: 0.95rem !important;
	font-weight: 700 !important;
	color: var(--kbcl-text) !important;
	line-height: 1.4 !important;
}

/* Bottom subscribe CTA band */
.kbcl-cta {
	margin-top: 56px;
	padding: 40px;
	border-radius: var(--kbcl-radius-lg);
	border: 1px solid var(--kbcl-border);
	background: linear-gradient(160deg, rgba(124, 58, 237, 0.08), rgba(2, 132, 199, 0.05));
	text-align: center;
}
.kbcl-cta__title {
	font-size: 1.3rem;
	font-weight: 800;
	margin: 0 0 8px;
}
.kbcl-cta__subtitle {
	color: var(--kbcl-text-muted);
	margin: 0 0 24px;
}
.kbcl-cta .kbcl-subscribe-form {
	margin: 0 auto;
	justify-content: center;
}

/* ==========================================================================
   12. Inline / shortcode-embedded variant (theme-neutral)
   ========================================================================== */

.kbcl-inline-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.kbcl-inline-item {
	padding: 16px 0;
	border-bottom: 1px solid rgba(127, 127, 127, 0.18);
}
.kbcl-inline-item:last-child {
	border-bottom: none;
}
.kbcl-inline-item__meta {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 6px;
}
.kbcl-inline-item__date {
	font-size: 0.75rem;
	color: rgba(127, 127, 127, 0.9);
}
.kbcl-inline-item__title {
	display: block;
	font-weight: 700;
	text-decoration: none;
	margin-bottom: 4px;
}
.kbcl-inline-item__title:hover {
	color: var(--kbcl-accent, #7c3aed);
}
.kbcl-inline-item__excerpt {
	font-size: 0.9rem;
	opacity: 0.75;
	margin: 0;
	line-height: 1.5;
}
.kbcl-inline-empty {
	opacity: 0.7;
	font-size: 0.9rem;
}

/* ==========================================================================
   13. Responsive
   ========================================================================== */

@media (max-width: 720px) {
	.kbcl-page {
		padding: 48px 0 64px;
	}
	.kbcl-entry {
		grid-template-columns: 40px 1fr;
		gap: 14px;
	}
	.kbcl-rail__day {
		font-size: 1.1rem;
	}
	.kbcl-timeline::before {
		left: 19px;
	}
	.kbcl-rail__dot {
		left: 50%;
	}
	.kbcl-entry--has-media .kbcl-entry__grid {
		grid-template-columns: 1fr;
	}
	.kbcl-entry__media {
		order: -1;
	}
	.kbcl-nav-adjacent {
		grid-template-columns: 1fr;
	}
	.kbcl-nav-adjacent__link--next {
		text-align: left;
		align-items: flex-start;
	}
	.kbcl-cta {
		padding: 28px 20px;
	}
}

@media (max-width: 480px) {
	.kbcl-hero__actions {
		flex-direction: column;
		align-items: flex-start;
	}
	.kbcl-subscribe-form {
		width: 100%;
	}
	.kbcl-meta-row {
		gap: 12px;
	}
}
