/* =============================================================================
   DSD Pro · Insights blog · v1.2.1 · 2026-11-24
   Archive (/blog/, categories, search) + single post. Loaded only on blog pages.
   Colours come from Automatic.css (fallbacks after the comma).
   ========================================================================== */

:root {
	--dsd-bl-ink: var(--base, #101010);
	--dsd-bl-text: #4a4f56;
	--dsd-bl-muted: #6b7078;
	--dsd-bl-line: #e3e7ee;
	--dsd-bl-navy: var(--primary-ultra-dark, #24456f);
	--dsd-bl-blue: var(--primary, #4675b8);
	--dsd-bl-lime: var(--secondary, #9fc54d);
	--dsd-bl-sky: var(--tertiary, #61bdf0);
	--dsd-bl-card-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 16px 32px -24px rgba(16, 24, 40, .22);
	--dsd-bl-lift-shadow: 0 2px 4px rgba(16, 24, 40, .05), 0 26px 48px -22px rgba(70, 117, 184, .4);
	/* icons (used as masks, so they take the text colour) */
	--dsd-i-cal: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E");
	--dsd-i-clock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");
	--dsd-i-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
	--dsd-i-list: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 6h13M8 12h13M8 18h13M3 6h.01M3 12h.01M3 18h.01'/%3E%3C/svg%3E");
	--dsd-i-chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	--dsd-i-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-4.3-4.3'/%3E%3C/svg%3E");
	--dsd-i-fb: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h-2.5A3.5 3.5 0 0 0 9 6.5V10H6.5v3.5H9V21h3.5v-7.5H15l.5-3.5h-3V7a1 1 0 0 1 1-1H15z'/%3E%3C/svg%3E");
	--dsd-i-li: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='3'/%3E%3Cpath d='M8 10.5V17M8 7.5v.01M12 17v-6.5M12 13.5c0-1.7 1-3 2.5-3s2.5 1 2.5 3V17'/%3E%3C/svg%3E");
	--dsd-i-x: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M4 4l16 16M20 4L4 20'/%3E%3C/svg%3E");
	--dsd-i-mail: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='M22 6l-10 7L2 6'/%3E%3C/svg%3E");
	--dsd-i-link: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.5.5l3-3a5 5 0 0 0-7-7l-1.7 1.7'/%3E%3Cpath d='M14 11a5 5 0 0 0-7.5-.5l-3 3a5 5 0 0 0 7 7l1.7-1.7'/%3E%3C/svg%3E");
	--dsd-i-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
}

/* ---------- Shared bits ---------- */
.dsd-bl-chip {
	display: inline-flex; align-items: center; width: fit-content; padding: 5px 12px; border-radius: 999px;
	font-family: Montserrat, sans-serif; font-weight: 800; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; line-height: 1.3;
	background: #e3f2fc; color: var(--dsd-bl-navy); border: 1.5px solid #9cc6ef;
}
.dsd-bl-chip:empty { display: none; }
[data-cat="seo"].dsd-bl-chip { background: #eef6e1; color: #2a5a12; border-color: #b9dc78; }
[data-cat="ai"].dsd-bl-chip { background: #e6f6fd; color: #1d5a7d; border-color: #9fd8f6; }
[data-cat="hosting-security"].dsd-bl-chip { background: #e8edf5; color: #101826; border-color: #b5c3d8; }
[data-cat="design"].dsd-bl-chip { background: #fdeaea; color: var(--accent-ultra-dark, #7a0808); border-color: #f2a0a0; }
[data-cat="page"].dsd-bl-chip { background: #f1f4f8; color: #2b2f35; border-color: #d9dee6; }
[data-cat="business-tips"].dsd-bl-chip { background: #f0f6e6; color: var(--dsd-bl-navy); border-color: #c8dca0; }

.dsd-bl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-size: 14px; color: var(--dsd-bl-muted); }
.dsd-bl-meta > * { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.dsd-bl-meta > :empty { display: none; }
.dsd-bl-meta__date::before, .dsd-bl-meta__read::before { content: ""; width: 15px; height: 15px; flex: none; background: currentColor; -webkit-mask: var(--dsd-i-cal) center / contain no-repeat; mask: var(--dsd-i-cal) center / contain no-repeat; }
.dsd-bl-meta__read::before { -webkit-mask-image: var(--dsd-i-clock); mask-image: var(--dsd-i-clock); }

/* ---------- Archive: hero search ---------- */
.dsd-bl-search { width: 100%; max-width: 560px; align-self: center; }
.dsd-bl-search form {
	display: flex; align-items: center; gap: 8px; width: 100%; box-sizing: border-box; padding: 6px 6px 6px 18px; border-radius: 999px;
	background: rgba(255, 255, 255, .88); border: 1px solid #ffffff;
	box-shadow: inset 0 1px 0 #ffffff, 0 18px 40px -20px rgba(36, 69, 111, .45);
	-webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%);
}
.dsd-bl-search form::before { content: ""; width: 20px; height: 20px; flex: none; background: var(--dsd-bl-blue); -webkit-mask: var(--dsd-i-search) center / contain no-repeat; mask: var(--dsd-i-search) center / contain no-repeat; }
.dsd-bl-search form:focus-within { box-shadow: 0 0 0 3px rgba(97, 189, 240, .35), 0 18px 40px -20px rgba(36, 69, 111, .45); }
.dsd-bl-search input[type="search"] { flex: 1; min-width: 0; border: 0 !important; background: transparent !important; font: inherit; font-size: 16.5px; color: var(--dsd-bl-ink); min-height: 44px; padding: 0 !important; outline: none; box-shadow: none !important; }
.dsd-bl-search button {
	display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 8px 18px; border-radius: 999px;
	background: var(--dsd-bl-blue); color: var(--white, #fff); border: 2px solid var(--accent, #f20d0d); cursor: pointer;
	font-family: Montserrat, sans-serif; font-weight: 800; font-size: 14px; box-shadow: 0 3px 0 rgba(16, 16, 16, .22);
}
.dsd-bl-search button:hover { background: var(--primary-dark, #365f99); }

/* ---------- Archive: category chips ---------- */
.dsd-bl-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; width: 100%; }
.dsd-bl-chips__chip {
	display: inline-flex; align-items: center; gap: 8px; min-height: 44px; box-sizing: border-box; padding: 10px 16px; border-radius: 999px;
	border: 1.5px solid #d9dee6; background: #ffffff; color: #2b2f35; text-decoration: none;
	font-family: "Source Sans 3", sans-serif; font-weight: 600; font-size: 14.5px; transition: all .25s cubic-bezier(.4, 0, .2, 1);
}
.dsd-bl-chips__chip b { font-weight: 700; font-size: 12px; color: var(--dsd-bl-muted); background: #f1f4f8; border-radius: 999px; padding: 2px 8px; }
.dsd-bl-chips__chip:hover { border-color: var(--dsd-bl-sky); translate: 0 -1px; color: #2b2f35; }
.dsd-bl-chips__chip.is-on { background: #e3f2fc; border-color: var(--dsd-bl-blue); color: var(--dsd-bl-navy); box-shadow: 0 8px 20px -8px rgba(70, 117, 184, .45); translate: 0 -2px; }
.dsd-bl-chips__chip.is-on b { background: #ffffff; color: var(--dsd-bl-navy); }
@media (max-width: 640px) {
	.dsd-bl-chips { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; padding: 4px clamp(1rem, 4vw, 2.5rem) 10px; margin: 0 calc(-1 * clamp(1rem, 4vw, 2.5rem)); width: auto; }
	.dsd-bl-chips__chip { flex: none; }
}

/* ---------- Archive: heading line ---------- */
.dsd-bl-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; width: 100%; }
.dsd-bl-head__title { margin: 0; font-family: Montserrat, sans-serif; font-weight: 900; font-size: clamp(1.375rem, 2.2vw, 1.75rem); letter-spacing: -.02em; color: var(--dsd-bl-ink); }
.dsd-bl-head__count { margin: 0; font-size: 14px; color: var(--dsd-bl-muted); }

/* ---------- Post grid + cards ---------- */
.dsd-bl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--grid-gap, clamp(1.35rem, 1.2rem + .6vw, 1.75rem)); width: 100%; }
@media (max-width: 1024px) { .dsd-bl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .dsd-bl-grid { grid-template-columns: minmax(0, 1fr); } }

.dsd-bl-card {
	position: relative; display: flex; flex-direction: column; padding: 12px; box-sizing: border-box; overflow: hidden;
	background: #ffffff; border: 1px solid var(--dsd-bl-line); border-radius: 24px; box-shadow: var(--dsd-bl-card-shadow);
	color: inherit; text-decoration: none; min-width: 0;
	transition: translate .35s cubic-bezier(.175, .885, .32, 1.275), box-shadow .3s, border-color .3s;
}
.dsd-bl-card:hover { translate: 0 -4px; box-shadow: var(--dsd-bl-lift-shadow); color: inherit; }
.dsd-bl-card__media { position: relative; overflow: hidden; border-radius: 16px; aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--dsd-bl-blue), var(--dsd-bl-sky)); }
.dsd-bl-card__img, .dsd-bl-card__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: scale .6s cubic-bezier(.2, .7, .2, 1); }
.dsd-bl-card:hover .dsd-bl-card__img { scale: 1.04; }
.dsd-bl-card__media .dsd-bl-chip { position: absolute; left: 12px; top: 12px; z-index: 1; box-shadow: 0 6px 16px -8px rgba(16, 24, 40, .35); }
.dsd-bl-card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px 10px 10px; flex: 1; }
.dsd-bl-card__title { margin: 0; font-family: Montserrat, sans-serif; font-weight: 800; font-size: clamp(1.125rem, 1.5vw, 1.25rem); line-height: 1.25; letter-spacing: -.01em; color: var(--dsd-bl-ink); transition: color .2s; }
.dsd-bl-card:hover .dsd-bl-card__title { color: var(--dsd-bl-navy); }
.dsd-bl-card__excerpt { margin: 0; font-size: 15.5px; line-height: 1.6; color: #55595f; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dsd-bl-card__more { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 6px; font-family: Montserrat, sans-serif; font-weight: 800; font-size: 14px; color: var(--primary-dark, #365f99); }
.dsd-bl-card__more::after { content: ""; width: 16px; height: 16px; background: currentColor; -webkit-mask: var(--dsd-i-arrow) center / contain no-repeat; mask: var(--dsd-i-arrow) center / contain no-repeat; transition: translate .2s; }
.dsd-bl-card:hover .dsd-bl-card__more::after { translate: 4px 0; }
.dsd-bl-badge { display: none; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: #101826; color: #ffffff; font-family: Montserrat, sans-serif; font-weight: 800; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; }
.dsd-bl-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--dsd-bl-lime); box-shadow: 0 0 0 3px rgba(159, 197, 77, .3); }

/* Featured: the newest post on page 1 of the blog becomes a wide card */
body.blog:not(.paged) .dsd-bl-grid--main > .dsd-bl-card:first-of-type {
	grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: center; padding: clamp(14px, 1.6vw, 20px);
	margin-bottom: clamp(16px, 3vw, 36px);
}
body.blog:not(.paged) .dsd-bl-grid--main > .dsd-bl-card:first-of-type::after { content: ""; position: absolute; right: -70px; top: -70px; width: 240px; height: 240px; border-radius: 50%; pointer-events: none; z-index: 0; background: radial-gradient(circle, rgba(97, 189, 240, .32), rgba(97, 189, 240, 0) 70%); }
body.blog:not(.paged) .dsd-bl-grid--main > .dsd-bl-card:first-of-type > * { position: relative; z-index: 1; }
body.blog:not(.paged) .dsd-bl-grid--main > .dsd-bl-card:first-of-type .dsd-bl-card__media { aspect-ratio: 16 / 11; border-radius: 18px; }
body.blog:not(.paged) .dsd-bl-grid--main > .dsd-bl-card:first-of-type .dsd-bl-card__body { gap: 16px; padding: clamp(4px, 1.5vw, 16px) clamp(4px, 2vw, 24px) clamp(4px, 1.5vw, 16px) 0; }
body.blog:not(.paged) .dsd-bl-grid--main > .dsd-bl-card:first-of-type .dsd-bl-badge { display: inline-flex; }
body.blog:not(.paged) .dsd-bl-grid--main > .dsd-bl-card:first-of-type .dsd-bl-card__title { font-weight: 900; font-size: clamp(1.625rem, 2.8vw, 2.375rem); line-height: 1.08; letter-spacing: -.025em; }
body.blog:not(.paged) .dsd-bl-grid--main > .dsd-bl-card:first-of-type .dsd-bl-card__excerpt { font-size: 17.5px; -webkit-line-clamp: 4; }
body.blog:not(.paged) .dsd-bl-grid--main > .dsd-bl-card:first-of-type .dsd-bl-card__more {
	margin-top: 6px; min-height: 50px; padding: 12px 26px; box-sizing: border-box; border-radius: 14px; border: 3px solid var(--dsd-bl-blue);
	background: var(--dsd-bl-sky); color: var(--accent-ultra-dark, #7a0808); box-shadow: 0 3px 0 rgba(16, 16, 16, .22), 0 10px 24px -10px rgba(16, 24, 40, .35);
}
@media (max-width: 860px) {
	body.blog:not(.paged) .dsd-bl-grid--main > .dsd-bl-card:first-of-type { grid-template-columns: minmax(0, 1fr); }
	body.blog:not(.paged) .dsd-bl-grid--main > .dsd-bl-card:first-of-type .dsd-bl-card__body { padding: 4px 8px 12px; }
}

/* ---------- Pagination ---------- */
.dsd-bl-pager { width: 100%; margin-top: clamp(20px, 3vw, 32px); }
.dsd-bl-pager ul, .dsd-bl-pager .page-numbers:not(li *) { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
.dsd-bl-pager li { margin: 0; }
.dsd-bl-pager a.page-numbers, .dsd-bl-pager span.page-numbers {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 48px; height: 48px; padding: 0 14px; box-sizing: border-box;
	border-radius: 14px; border: 1.5px solid #d9dee6; background: #ffffff; color: var(--dsd-bl-navy); text-decoration: none;
	font-family: Montserrat, sans-serif; font-weight: 800; font-size: 15px; transition: all .2s;
}
.dsd-bl-pager a.page-numbers:hover { border-color: var(--dsd-bl-sky); translate: 0 -1px; }
.dsd-bl-pager span.current { background: var(--dsd-bl-blue); border-color: var(--dsd-bl-navy); color: #ffffff; box-shadow: 0 3px 0 rgba(16, 16, 16, .22); }
.dsd-bl-pager span.dots { border-color: transparent; background: transparent; }
.dsd-bl-pager svg { width: 16px; height: 16px; }

/* ---------- Empty search ---------- */
.dsd-bl-empty { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 48px 24px; text-align: center; background: #ffffff; border: 1px solid var(--dsd-bl-line); border-radius: 24px; box-shadow: var(--dsd-bl-card-shadow); width: 100%; box-sizing: border-box; }
.dsd-bl-empty__icon { width: 52px; height: 52px; border-radius: 15px; border: 3px solid var(--dsd-bl-blue); background: #e3f2fc; box-sizing: border-box; position: relative; }
.dsd-bl-empty__icon::after { content: ""; position: absolute; inset: 11px; background: var(--dsd-bl-navy); -webkit-mask: var(--dsd-i-search) center / contain no-repeat; mask: var(--dsd-i-search) center / contain no-repeat; }
.dsd-bl-empty h3 { margin: 0; font-family: Montserrat, sans-serif; font-weight: 900; font-size: 22px; color: var(--dsd-bl-ink); }
.dsd-bl-empty p { margin: 0; max-width: 28em; font-size: 16.5px; line-height: 1.6; color: var(--dsd-bl-text); }
.dsd-bl-empty__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ============================ SINGLE POST ============================ */
/* Hero bits (inside the blended hero) */
.dsd-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: #b8c6da; }
.dsd-crumbs a { color: #9cc6ef; text-decoration: none; }
.dsd-crumbs a:hover { color: #ffffff; }
.dsd-bl-byline { display: flex; align-items: center; gap: 12px; }
.dsd-bl-byline__name { display: block; margin: 0; font-family: Montserrat, sans-serif; font-weight: 800; font-size: 15px; color: var(--dsd-bl-ink); }
.dsd-bl-byline__role { display: block; margin: 0; font-size: 13.5px; color: var(--dsd-bl-muted); }
.dsd-brand-icon { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 14px; background: #ffffff; border: 1px solid var(--dsd-bl-line); box-shadow: 0 3px 0 rgba(16, 16, 16, .12); overflow: hidden; }
.dsd-brand-icon img { width: 32px; height: 32px; object-fit: contain; }
.dsd-brand-icon.is-empty { font-family: Montserrat, sans-serif; font-weight: 900; font-size: 11px; color: var(--dsd-bl-blue); }
.dsd-bl-bar-left { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.dsd-hero-blend__bar .dsd-bl-meta { color: #55595f; }

/* Share buttons */
.dsd-share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.dsd-share__label { font-family: Montserrat, sans-serif; font-weight: 800; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: #4a4f56; margin-right: 4px; }
.dsd-share .dsd-share__item {
	position: relative; display: inline-grid; place-items: center; flex: none; width: 46px; min-width: 0; max-width: 46px; height: 46px; min-height: 0; margin: 0; box-sizing: border-box; padding: 0; border-radius: 14px;
	background: #ffffff; border: 1.5px solid var(--dsd-bl-line); color: var(--dsd-bl-navy); cursor: pointer;
	box-shadow: 0 3px 0 rgba(16, 16, 16, .08); transition: all .2s; text-decoration: none;
}
.dsd-share__item::before { content: ""; width: 19px; height: 19px; background: currentColor; -webkit-mask: var(--dsd-i-link) center / contain no-repeat; mask: var(--dsd-i-link) center / contain no-repeat; }
.dsd-share__item--facebook::before { -webkit-mask-image: var(--dsd-i-fb); mask-image: var(--dsd-i-fb); }
.dsd-share__item--linkedin::before { -webkit-mask-image: var(--dsd-i-li); mask-image: var(--dsd-i-li); }
.dsd-share__item--x::before { width: 16px; height: 16px; -webkit-mask-image: var(--dsd-i-x); mask-image: var(--dsd-i-x); }
.dsd-share__item--email::before { -webkit-mask-image: var(--dsd-i-mail); mask-image: var(--dsd-i-mail); }
.dsd-share__item:hover { border-color: var(--dsd-bl-sky); color: var(--dsd-bl-blue); translate: 0 -2px; box-shadow: 0 12px 24px -12px rgba(70, 117, 184, .5); }
.dsd-share__item:focus-visible { outline: 2px solid var(--accent, #f20d0d); outline-offset: 3px; }
.dsd-share__item.is-copied { background: #eef6e1; border-color: var(--dsd-bl-lime); color: #2a5a12; }
.dsd-share__item.is-copied::before { -webkit-mask-image: var(--dsd-i-check); mask-image: var(--dsd-i-check); }
.dsd-share--rail { flex-direction: column; flex-wrap: nowrap; }
.dsd-share--rail .dsd-share__label { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 10.5px; letter-spacing: .14em; color: var(--dsd-bl-muted); margin: 0 0 6px; }

/* Body layout: contents | article | share rail */
.dsd-bl-body__inner { width: 100%; max-width: 77.5rem; margin: 0 auto; padding: clamp(48px, 6vw, 80px) clamp(1rem, 4vw, 2.5rem) clamp(56px, 7vw, 88px); box-sizing: border-box; }
/* 1.1.5: where the side boxes stop when you scroll = WordPress admin bar (logged in only) + floating header + ACSS medium space.
   When the ACSS header height is set (rebuild plan, Phase 0), swap 5rem for var(--header-height). */
.dsd-bl-art { --dsd-bl-stick: calc(var(--wp-admin--admin-bar--height, 0px) + 5rem + var(--space-m)); display: grid; grid-template-columns: 240px minmax(0, 720px) 56px; justify-content: center; align-items: start; gap: clamp(28px, 4vw, 56px); }
.dsd-bl-art__toc, .dsd-bl-art__rail { position: sticky; top: var(--dsd-bl-stick); min-width: 0; }
.dsd-bl-art__rail { display: flex; justify-content: center; }
.dsd-bl-art__main { min-width: 0; }
@media (max-width: 1180px) { .dsd-bl-art { grid-template-columns: 220px minmax(0, 720px); } .dsd-bl-art__rail { display: none !important; } }
@media (max-width: 900px) { .dsd-bl-art { grid-template-columns: minmax(0, 1fr); } .dsd-bl-art__toc { position: static; } }

/* "On this page" (a drop-down on phones, an open card on bigger screens) */
.dsd-toc { position: relative; display: block; padding: 20px; border-radius: 20px; background: #ffffff; border: 1px solid var(--dsd-bl-line); box-shadow: var(--dsd-bl-card-shadow); }
.dsd-toc__title { list-style: none; display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-family: Montserrat, sans-serif; font-weight: 800; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--dsd-bl-navy); cursor: default; pointer-events: none; }
.dsd-toc__title::-webkit-details-marker { display: none; }
.dsd-toc__title::before { content: ""; width: 16px; height: 16px; background: var(--dsd-bl-blue); -webkit-mask: var(--dsd-i-list) center / contain no-repeat; mask: var(--dsd-i-list) center / contain no-repeat; }
.dsd-toc__nav { display: flex; flex-direction: column; gap: 4px; }
.dsd-toc__link { display: block; padding: 9px 12px; border-radius: 10px; border-left: 3px solid transparent; color: var(--dsd-bl-text); text-decoration: none; font-size: 15px; line-height: 1.35; }
.dsd-toc__link:hover { background: #f2f7fc; color: var(--dsd-bl-navy); }
.dsd-toc__link.is-on { background: #e3f2fc; border-left-color: var(--dsd-bl-blue); color: var(--dsd-bl-navy); font-weight: 700; }
.dsd-toc__prog { height: 6px; border-radius: 999px; background: var(--dsd-bl-line); overflow: hidden; margin-top: 14px; }
.dsd-toc__prog span { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--dsd-bl-blue), var(--dsd-bl-sky), var(--dsd-bl-lime)); transition: width .2s linear; }
@media (max-width: 900px) {
	.dsd-toc { padding: 0; }
	.dsd-toc__title { margin: 0; padding: 16px 18px; min-height: 44px; box-sizing: border-box; cursor: pointer; pointer-events: auto; font-size: 15px; letter-spacing: 0; text-transform: none; }
	.dsd-toc__title span { flex: 1; }
	.dsd-toc__title::after { content: ""; width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--dsd-i-chev) center / contain no-repeat; mask: var(--dsd-i-chev) center / contain no-repeat; transition: rotate .2s; }
	.dsd-toc[open] .dsd-toc__title::after { rotate: 180deg; }
	.dsd-toc__nav { padding: 0 10px 12px; }
	.dsd-toc__prog { display: none; }
}

/* Article text */
.dsd-bl-prose { font-family: "Source Sans 3", sans-serif; font-size: clamp(1.09rem, 1rem + .3vw, 1.1875rem); line-height: 1.78; color: #2b2f35; counter-reset: dsdh2; }
.dsd-bl-prose > * { margin-top: 0; margin-bottom: 1.15em; }
.dsd-bl-prose h2 { counter-increment: dsdh2; scroll-margin-top: calc(var(--wp-admin--admin-bar--height, 0px) + 5rem + var(--space-m)); margin: 1.9em 0 .6em; font-family: Montserrat, sans-serif; font-weight: 900; font-size: clamp(1.5625rem, 2.4vw, 2rem); line-height: 1.15; letter-spacing: -.025em; color: var(--dsd-bl-ink); }
.dsd-bl-prose h2::before { content: counter(dsdh2, decimal-leading-zero); display: block; margin-bottom: 8px; font-family: "JetBrains Mono", monospace; font-size: 13px; font-weight: 600; letter-spacing: .06em; color: var(--secondary-dark, #317b12); }
.dsd-bl-prose h3 { margin: 1.5em 0 .4em; font-family: Montserrat, sans-serif; font-weight: 800; font-size: clamp(1.1875rem, 1.6vw, 1.375rem); line-height: 1.3; color: var(--dsd-bl-ink); }
.dsd-bl-prose a:not(.wp-block-button__link) { color: var(--primary-dark, #365f99); text-decoration: underline; text-decoration-color: #9cc6ef; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.dsd-bl-prose a:not(.wp-block-button__link):hover { color: var(--dsd-bl-navy); text-decoration-color: var(--dsd-bl-blue); }
.dsd-bl-prose strong { color: var(--dsd-bl-ink); }
.dsd-bl-prose ul:not([class*="is-style"]), .dsd-bl-prose ol:not([class*="is-style"]) { padding-left: 1.25em; }
.dsd-bl-prose li::marker { color: var(--dsd-bl-blue); }

/* End of article: tags + share, company box */
.dsd-bl-endbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 0; margin-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--dsd-bl-line); border-bottom: 1px solid var(--dsd-bl-line); }
.dsd-bl-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.dsd-bl-tags a { padding: 7px 14px; border-radius: 999px; background: #f1f4f8; color: var(--dsd-bl-navy); text-decoration: none; font-size: 14px; font-weight: 600; }
.dsd-bl-tags a:hover { background: #e3f2fc; }
.dsd-bl-about {
	position: relative; overflow: hidden; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(18px, 2.4vw, 28px); align-items: center;
	padding: clamp(22px, 3vw, 34px); margin-top: clamp(28px, 4vw, 40px); background: #ffffff; border: 1px solid var(--dsd-bl-line); border-radius: 24px; box-shadow: var(--dsd-bl-card-shadow);
}
.dsd-bl-about::after { content: ""; position: absolute; right: -70px; top: -70px; width: 240px; height: 240px; border-radius: 50%; pointer-events: none; z-index: 0; background: radial-gradient(circle, rgba(159, 197, 77, .28), rgba(159, 197, 77, 0) 70%); }
.dsd-bl-about > * { position: relative; z-index: 1; }
.dsd-bl-about .dsd-brand-icon { width: clamp(64px, 7vw, 84px); height: clamp(64px, 7vw, 84px); border-radius: 22px; }
.dsd-bl-about .dsd-brand-icon img { width: 64%; height: auto; }
.dsd-bl-about__text { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.dsd-bl-about__kicker { margin: 0; font-family: "JetBrains Mono", monospace; font-size: 13px; font-weight: 600; color: var(--secondary-dark, #317b12); }
.dsd-bl-about__title { margin: 0; font-family: Montserrat, sans-serif; font-weight: 900; font-size: 20px; color: var(--dsd-bl-ink); }
.dsd-bl-about__p { margin: 0 0 8px; font-size: 16px; line-height: 1.6; color: var(--dsd-bl-text); }
@media (max-width: 560px) { .dsd-bl-about { grid-template-columns: minmax(0, 1fr); } }

/* Related posts section */
.dsd-bl-related .dsd-head--split { width: 100%; }

/* Archive: the article list sits close under the hero */
.dsd-bl-list .dsd-section__inner { padding-top: clamp(1rem, 2vw, 1.5rem); }
.dsd-bl-list .brxe-shortcode, .dsd-bl-related .brxe-shortcode { width: 100%; }

/* ---------- 1.1.1: match the approved single-post design (Version 2, blended hero) ---------- */

/* Header (1.1.4): on single posts the header floats on top of the hero like every other page (no solid bar).
   The hero is dark, so on desktop the menu text and dropdown arrows are white until you scroll; then it becomes the
   normal light pill with dark text. Phones/tablets (991px and under): see 1.1.6 below for the white menu button. */
@media (min-width: 992px) {
	body.single-post #brx-header:not(.scrolling) .dsd-nav .brx-nav-nested-items > li > a:not(.dsd-nav__link--mobile),
	body.single-post #brx-header:not(.scrolling) .dsd-nav .brx-nav-nested-items > li > .brx-submenu-toggle > * { color: var(--white); }
	body.single-post #brx-header:not(.scrolling) .dsd-nav .brx-nav-nested-items > li > a:not(.dsd-nav__link--mobile):hover,
	body.single-post #brx-header:not(.scrolling) .dsd-nav .brx-nav-nested-items > li > .brx-submenu-toggle:hover > * { color: var(--tertiary-light); }
}

/* Bricks Shortcode elements are full width by default. In these rows they only take the room they need:
   byline on one line, share buttons on the right (hero bar), tags left + share right (end of article). */
.dsd-bl-byline > .brxe-shortcode,
.dsd-bl-endbar > .brxe-shortcode,
.dsd-bl-about > .brxe-shortcode { width: auto; min-width: 0; flex: 0 0 auto; }
.dsd-bl-byline > :last-child { min-width: max-content; }

/* 1.1.3: bring the article up closer to the hero (CJ). The background lives in the hero, so it doesn't move.
   Removes the standard section padding on the article section and trims the article's own top padding (gap 340px → ~215px on desktop; 1.1.4: value is var(--space-l)). */
.dsd-hero-blend-zone .dsd-hero-blend-next.dsd-bl-body { padding-top: 0; }
.dsd-hero-blend-zone .dsd-bl-body .dsd-bl-body__inner { padding-top: var(--space-l); }

/* ---------- 1.1.6: iPhone fixes (CJ) ---------- */

/* Phones/tablets: the menu button is white while it sits on the dark hero.
   Once you scroll (header gets .scrolling) or the menu is open, it goes back to the normal dark colour.
   (.brx-toggle-div is the hidden close button inside the menu panel, so it is left alone.) */
@media (max-width: 991px) {
	body.single-post #brx-header:not(.scrolling):not(:has(.brx-open)) .dsd-nav__toggle:not(.brx-toggle-div) { color: var(--white); }
}

/* Phones: the share buttons shrink to fit so they stay on one line (hero bar and end of article). */
@media (max-width: 478px) {
	.dsd-share.dsd-share--row { flex-wrap: nowrap; gap: calc(var(--space-xs) / 2); width: 100%; min-width: 0; }
	.dsd-share--row .dsd-share__label { flex: none; margin-right: 0; }
	.dsd-share.dsd-share--row .dsd-share__item {
		flex: 0 1 calc(var(--space-xl) * .85);
		width: auto; max-width: calc(var(--space-xl) * .85); min-width: 0; height: auto; aspect-ratio: 1;
		border-radius: calc(var(--space-xl) * .25);
	}
	.dsd-share--row .dsd-share__item::before { width: 45%; height: 45%; }
	.dsd-hero-blend__bar > .brxe-shortcode:has(.dsd-share),
	.dsd-bl-endbar > .brxe-shortcode:has(.dsd-share) { flex: 1 1 100%; width: 100%; min-width: 0; }
}
/* Very small phones: hide the word "Share" (screen readers still hear it) so the buttons keep a usable size. */
@media (max-width: 359px) {
	.dsd-share--row .dsd-share__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* ---------- 1.1.7: reading progress on phones (CJ) ---------- */

/* Inside the open "On this page" drawer: the same progress bar as desktop, under the links. */
@media (max-width: 900px) {
	.dsd-toc .dsd-toc__prog { display: block; margin: 0 var(--space-s) var(--space-s); }
}

/* Drawer closed: a thin bar along the bottom of the screen fills as you read, beginning to end.
   It appears once you start the article and hides while the drawer is open (the drawer has its own). */
.dsd-readbar { display: none; }
@media (max-width: 900px) {
	.dsd-readbar {
		display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 998;
		height: calc(var(--space-xs) / 3);
		background: color-mix(in oklch, var(--primary) 15%, transparent);
		opacity: 0; transition: opacity .3s; pointer-events: none;
	}
	.dsd-readbar.is-on { opacity: 1; }
	body.dsd-toc-is-open .dsd-readbar { opacity: 0; }
	.dsd-readbar > span {
		display: block; height: 100%; width: 0;
		background: linear-gradient(90deg, var(--primary), var(--tertiary), var(--secondary));
		border-radius: 0 var(--radius-xs, 999px) var(--radius-xs, 999px) 0;
		transition: width .2s linear;
	}
}

/* 1.2.1: when the back to top button is the progress ring, it already shows how far you've read,
   so the thin bottom reading bar on phones stays hidden (no double progress). */
body:has(.dsd-btt--ring) .dsd-readbar { display: none; }
