/* =============================================================================
   DSD Pro · Insights content blocks · v1.1.5 · 2026-11-24
   Styles you pick in the post editor (block › Styles). Loads on blog pages and in the editor.
   ========================================================================== */

/* Drop cap (Paragraph › Typography › Drop cap) */
.has-drop-cap:not(:focus)::first-letter {
	float: left; font-family: Montserrat, sans-serif; font-weight: 900; font-size: 4.1em; line-height: .85; margin: .06em .1em 0 0;
	background: linear-gradient(135deg, var(--primary, #4675b8), var(--tertiary, #61bdf0) 50%, var(--secondary, #9fc54d));
	-webkit-background-clip: text; background-clip: text; color: transparent;
}

/* List › Ticks */
ul.is-style-dsd-ticks, ol.is-style-dsd-ticks { list-style: none; padding: 0 !important; display: flex; flex-direction: column; gap: 10px; }
.is-style-dsd-ticks li { position: relative; padding-left: 34px; }
.is-style-dsd-ticks li::before {
	content: ""; position: absolute; left: 0; top: .3em; width: 22px; height: 22px; box-sizing: border-box; border-radius: 7px;
	border: 2px solid var(--secondary-dark, #317b12); background: #e9f3d6;
}
.is-style-dsd-ticks li::after {
	content: ""; position: absolute; left: 5px; top: calc(.3em + 5px); width: 12px; height: 12px; background: var(--secondary-dark, #317b12);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* List › Steps (numbered) */
ol.is-style-dsd-steps, ul.is-style-dsd-steps { list-style: none; padding: 0 !important; counter-reset: dsdstep; display: flex; flex-direction: column; gap: 12px; }
.is-style-dsd-steps li { counter-increment: dsdstep; position: relative; padding-left: 50px; min-height: 34px; }
.is-style-dsd-steps li::before {
	content: counter(dsdstep); position: absolute; left: 0; top: .1em; width: 34px; height: 34px; box-sizing: border-box; border-radius: 10px;
	border: 3px solid var(--primary, #4675b8); background: var(--tertiary, #61bdf0); color: var(--accent-ultra-dark, #7a0808);
	display: grid; place-items: center; font-family: Montserrat, sans-serif; font-weight: 900; font-size: 15px; line-height: 1; box-shadow: 0 3px 0 rgba(16, 16, 16, .2);
}

/* Group › In short */
.wp-block-group.is-style-dsd-inshort {
	position: relative; overflow: hidden; padding: clamp(22px, 2.4vw, 30px); border-radius: 22px;
	background: linear-gradient(135deg, #e6f1fb 0%, #f2f7fc 60%, #eef6e1 100%); border: 1px solid #d6e6f5;
}
.wp-block-group.is-style-dsd-inshort > p:first-child {
	display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-family: Montserrat, sans-serif; font-weight: 800; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--primary-ultra-dark, #24456f);
}
.wp-block-group.is-style-dsd-inshort > p:first-child strong { color: inherit; }
.wp-block-group.is-style-dsd-inshort > *:last-child { margin-bottom: 0; }

/* Group › Tip / Good to know / Watch out (first line = bold title) */
.wp-block-group.is-style-dsd-tip, .wp-block-group.is-style-dsd-note, .wp-block-group.is-style-dsd-warn {
	position: relative; padding: clamp(18px, 2vw, 24px) clamp(18px, 2vw, 24px) clamp(18px, 2vw, 24px) calc(clamp(18px, 2vw, 24px) + 58px);
	border-radius: 18px; border: 1.5px solid; font-size: .95em; line-height: 1.65; margin: 1.8em 0;
}
.wp-block-group.is-style-dsd-tip > *, .wp-block-group.is-style-dsd-note > *, .wp-block-group.is-style-dsd-warn > * { margin: 0; }
.wp-block-group.is-style-dsd-tip > p:first-child, .wp-block-group.is-style-dsd-note > p:first-child, .wp-block-group.is-style-dsd-warn > p:first-child { font-family: Montserrat, sans-serif; font-weight: 800; font-size: 15.5px; margin-bottom: 4px; }
.wp-block-group.is-style-dsd-tip::before, .wp-block-group.is-style-dsd-note::before, .wp-block-group.is-style-dsd-warn::before {
	content: ""; position: absolute; left: clamp(18px, 2vw, 24px); top: clamp(18px, 2vw, 24px); width: 42px; height: 42px; box-sizing: border-box; border-radius: 12px; border: 3px solid; box-shadow: 0 3px 0 rgba(16, 16, 16, .18);
}
.wp-block-group.is-style-dsd-tip::after, .wp-block-group.is-style-dsd-note::after, .wp-block-group.is-style-dsd-warn::after {
	content: ""; position: absolute; left: calc(clamp(18px, 2vw, 24px) + 11px); top: calc(clamp(18px, 2vw, 24px) + 11px); width: 20px; height: 20px;
	-webkit-mask: var(--dsd-ic) center / contain no-repeat; mask: var(--dsd-ic) center / contain no-repeat;
}
.wp-block-group.is-style-dsd-tip { background: #f0f8fe; border-color: #9fd8f6; --dsd-ic: 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='M9 18h6M10 21h4'/%3E%3Cpath d='M12 3a6 6 0 0 0-3.5 10.9c.6.5 1 1.2 1 2.1h5c0-.9.4-1.6 1-2.1A6 6 0 0 0 12 3z'/%3E%3C/svg%3E"); }
.wp-block-group.is-style-dsd-tip::before { background: var(--tertiary, #61bdf0); border-color: var(--primary, #4675b8); }
.wp-block-group.is-style-dsd-tip::after { background: var(--primary-ultra-dark, #24456f); }
.wp-block-group.is-style-dsd-tip > p:first-child { color: var(--primary-ultra-dark, #24456f); }
.wp-block-group.is-style-dsd-note { background: #f3f9ea; border-color: #c8e29a; --dsd-ic: 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%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v6M12 7.5v.01'/%3E%3C/svg%3E"); }
.wp-block-group.is-style-dsd-note::before { background: var(--secondary, #9fc54d); border-color: var(--secondary-dark, #317b12); }
.wp-block-group.is-style-dsd-note::after { background: var(--base, #101010); }
.wp-block-group.is-style-dsd-note > p:first-child { color: #2a5a12; }
.wp-block-group.is-style-dsd-warn { background: #fff3f3; border-color: #f7c2c2; --dsd-ic: 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='M10.3 3.9L1.8 18a2 2 0 0 0 1.7 3h17a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0z'/%3E%3Cpath d='M12 9v4M12 17v.01'/%3E%3C/svg%3E"); }
.wp-block-group.is-style-dsd-warn::before { background: #f2a0a0; border-color: var(--accent-dark, #900a0a); }
.wp-block-group.is-style-dsd-warn::after { background: var(--accent-ultra-dark, #7a0808); }
.wp-block-group.is-style-dsd-warn > p:first-child { color: var(--accent-ultra-dark, #7a0808); }

/* Group › Side card (picture + text side by side) */
.wp-block-group.is-style-dsd-side {
	display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); column-gap: clamp(16px, 2.4vw, 28px); align-items: center;
	padding: clamp(14px, 1.6vw, 18px); border-radius: 22px; background: #ffffff; border: 1px solid #e3e7ee; box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 16px 32px -24px rgba(16, 24, 40, .22); margin: 2em 0;
}
.wp-block-group.is-style-dsd-side > * { grid-column: 2; margin-top: 0; }
.wp-block-group.is-style-dsd-side > .wp-block-image { grid-column: 1; grid-row: 1 / span 9; margin: 0; align-self: center; }
.wp-block-group.is-style-dsd-side > .wp-block-image img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 16px; }
.wp-block-group.is-style-dsd-side > p { margin: 0 0 6px; font-size: 16px; line-height: 1.65; color: #4a4f56; }
.wp-block-group.is-style-dsd-side > p:first-of-type { font-family: Montserrat, sans-serif; font-weight: 900; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.25; color: var(--base, #101010); }
@media (max-width: 560px) { .wp-block-group.is-style-dsd-side { grid-template-columns: minmax(0, 1fr); } .wp-block-group.is-style-dsd-side > * { grid-column: 1; } .wp-block-group.is-style-dsd-side > .wp-block-image { grid-row: auto; margin-bottom: 14px; } }

/* Group › Call to action box */
.wp-block-group.is-style-dsd-cta {
	position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 18px; align-items: center;
	padding: clamp(20px, 2.4vw, 28px); border-radius: 22px; background: #ffffff; border: 1px solid #e3e7ee; box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 16px 32px -24px rgba(16, 24, 40, .22); margin: 2.2em 0;
}
.wp-block-group.is-style-dsd-cta::after { content: ""; position: absolute; right: -70px; top: -70px; width: 240px; height: 240px; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, rgba(97, 189, 240, .32), rgba(97, 189, 240, 0) 70%); }
.wp-block-group.is-style-dsd-cta > * { position: relative; z-index: 1; margin: 0; grid-column: 1; }
.wp-block-group.is-style-dsd-cta > p:first-child { font-family: Montserrat, sans-serif; font-weight: 900; font-size: clamp(19px, 1.7vw, 22px); line-height: 1.25; color: var(--base, #101010); }
.wp-block-group.is-style-dsd-cta > p { font-size: 15.5px; color: #55595f; }
.wp-block-group.is-style-dsd-cta > .wp-block-buttons { grid-column: 2; grid-row: 1 / span 2; }
@media (max-width: 640px) { .wp-block-group.is-style-dsd-cta { grid-template-columns: minmax(0, 1fr); row-gap: 6px; } .wp-block-group.is-style-dsd-cta > .wp-block-buttons { grid-column: 1; grid-row: auto; margin-top: 10px; } }

/* Buttons inside posts: the site's blue button */
.dsd-bl-prose .wp-block-button__link, .editor-styles-wrapper .wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 26px; box-sizing: border-box; border-radius: 14px;
	background: var(--primary, #4675b8); border: 3px solid var(--accent, #f20d0d); color: var(--white, #fff); text-decoration: none;
	font-family: Montserrat, sans-serif; font-weight: 800; font-size: 15px; box-shadow: 0 3px 0 rgba(16, 16, 16, .22), 0 10px 24px -10px rgba(16, 24, 40, .35); transition: translate .12s, background-color .15s;
}
.dsd-bl-prose .wp-block-button__link:hover { translate: 0 -2px; background: var(--primary-dark, #365f99); color: #fff; }

/* Quote › Pull quote (dark card) */
.wp-block-quote.is-style-dsd-pull {
	position: relative; overflow: hidden; margin: 2em 0; padding: clamp(28px, 3vw, 40px) clamp(24px, 3vw, 44px); border: 0; border-radius: 24px; background: #101826; color: #ffffff;
}
.wp-block-quote.is-style-dsd-pull::before {
	content: "\201C"; position: absolute; left: clamp(14px, 2vw, 24px); top: -18px; font-family: Georgia, serif; font-size: 160px; line-height: 1;
	background: linear-gradient(135deg, var(--tertiary, #61bdf0), var(--secondary, #9fc54d)); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .9;
}
.wp-block-quote.is-style-dsd-pull::after { content: ""; position: absolute; width: 360px; height: 360px; right: -140px; bottom: -200px; border-radius: 50%; background: radial-gradient(circle closest-side, rgba(97, 189, 240, .35), rgba(97, 189, 240, 0)); }
.wp-block-quote.is-style-dsd-pull p { position: relative; z-index: 1; margin: 0; padding-top: 28px; font-family: Montserrat, sans-serif; font-weight: 800; font-size: clamp(21px, 2.1vw, 27px); line-height: 1.35; letter-spacing: -.015em; color: #ffffff; }
.wp-block-quote.is-style-dsd-pull cite { position: relative; z-index: 1; display: block; margin-top: 14px; font-style: normal; font-family: "JetBrains Mono", monospace; font-size: 13px; color: #b9dc78; }
.wp-block-quote.is-style-dsd-pull cite::before { content: "// "; }

/* Quote › Default (simple quote) */
.wp-block-quote:not(.is-style-dsd-pull) { margin: 1.6em 0; padding: 6px 0 6px 22px; border-left: 4px solid var(--secondary, #9fc54d); font-size: 1.08em; font-style: italic; color: var(--primary-ultra-dark, #24456f); }
.wp-block-quote:not(.is-style-dsd-pull) p { margin: 0; }
.wp-block-quote:not(.is-style-dsd-pull) cite { display: block; margin-top: 8px; font-size: 14px; font-style: normal; color: #6b7078; }

/* Images, captions, gallery */
.dsd-bl-prose .wp-block-image, .dsd-bl-prose .wp-block-gallery { margin: 2em 0; }
.dsd-bl-prose .wp-block-image img, .editor-styles-wrapper .wp-block-image img { border-radius: 20px; height: auto; }
.wp-block-image.is-style-dsd-wide img { aspect-ratio: 2 / 1; object-fit: cover; width: 100%; }
.dsd-bl-prose .wp-element-caption, .dsd-bl-prose figcaption { display: flex; gap: 8px; margin-top: 10px; font-size: 14.5px; line-height: 1.5; color: #6b7078; text-align: left; }
.dsd-bl-prose .wp-block-image figcaption::before { content: ""; flex: none; width: 18px; height: 2px; margin-top: .7em; background: var(--secondary, #9fc54d); }
.dsd-bl-prose .wp-block-gallery.has-nested-images { gap: clamp(12px, 1.6vw, 18px); }
.dsd-bl-prose .wp-block-gallery.has-nested-images figure.wp-block-image { margin: 0; }
.dsd-bl-prose .wp-block-gallery.has-nested-images figure.wp-block-image img { border-radius: 18px; aspect-ratio: 4 / 3; object-fit: cover; }
.dsd-bl-prose .wp-block-gallery.has-nested-images figure.wp-block-image figcaption {
	position: static; background: none; color: #6b7078; padding: 0; margin-top: 8px; font-size: 14px; max-height: none; text-shadow: none;
}
.dsd-bl-prose .wp-block-gallery.has-nested-images figure.wp-block-image figcaption::before { display: none; }

/* ---------- 1.1.1: match the approved single-post design ---------- */

/* Drop cap: WordPress's own drop-cap style (8.4em, thin) was winning. Ours is stronger now. */
.dsd-bl-prose p.has-drop-cap:not(:focus)::first-letter,
.editor-styles-wrapper p.has-drop-cap:not(:focus)::first-letter {
	float: left; font-family: Montserrat, sans-serif; font-weight: 900; font-style: normal; font-size: 4.1em; line-height: .85; margin: .06em .1em 0 0; text-transform: none;
	background: linear-gradient(135deg, var(--primary, #4675b8), var(--tertiary, #61bdf0) 50%, var(--secondary, #9fc54d));
	-webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Groups: on this site WordPress wraps a Group's blocks in an extra inner box. Let it step aside
   so In short, Tip, Good to know, Watch out, Side card and Call to action box lay out as designed. */
.wp-block-group[class*="is-style-dsd-"] > .wp-block-group__inner-container { display: contents; }
.wp-block-group.is-style-dsd-inshort > .wp-block-group__inner-container > p:first-child {
	display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-family: Montserrat, sans-serif; font-weight: 800; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--primary-ultra-dark, #24456f);
}
.wp-block-group.is-style-dsd-inshort > .wp-block-group__inner-container > p:first-child strong { color: inherit; }
.wp-block-group.is-style-dsd-inshort > .wp-block-group__inner-container > *:last-child { margin-bottom: 0; }
/* In short: light-bulb icon before the title (approved design) */
.wp-block-group.is-style-dsd-inshort > p:first-child::before,
.wp-block-group.is-style-dsd-inshort > .wp-block-group__inner-container > p:first-child::before {
	content: ""; width: 18px; height: 18px; flex: none; background: currentColor;
	-webkit-mask: 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%3Cpath d='M9 18h6M10 21h4'/%3E%3Cpath d='M12 3a6 6 0 0 0-3.5 10.9c.6.5 1 1.2 1 2.1h5c0-.9.4-1.6 1-2.1A6 6 0 0 0 12 3z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: 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%3Cpath d='M9 18h6M10 21h4'/%3E%3Cpath d='M12 3a6 6 0 0 0-3.5 10.9c.6.5 1 1.2 1 2.1h5c0-.9.4-1.6 1-2.1A6 6 0 0 0 12 3z'/%3E%3C/svg%3E") center / contain no-repeat;
}
:is(.wp-block-group.is-style-dsd-tip, .wp-block-group.is-style-dsd-note, .wp-block-group.is-style-dsd-warn) > .wp-block-group__inner-container > * { margin: 0; }
:is(.wp-block-group.is-style-dsd-tip, .wp-block-group.is-style-dsd-note, .wp-block-group.is-style-dsd-warn) > .wp-block-group__inner-container > p:first-child { font-family: Montserrat, sans-serif; font-weight: 800; font-size: 15.5px; margin-bottom: 4px; }
.wp-block-group.is-style-dsd-tip > .wp-block-group__inner-container > p:first-child { color: var(--primary-ultra-dark, #24456f); }
.wp-block-group.is-style-dsd-note > .wp-block-group__inner-container > p:first-child { color: #2a5a12; }
.wp-block-group.is-style-dsd-warn > .wp-block-group__inner-container > p:first-child { color: var(--accent-ultra-dark, #7a0808); }
.wp-block-group.is-style-dsd-side > .wp-block-group__inner-container > * { grid-column: 2; margin-top: 0; }
.wp-block-group.is-style-dsd-side > .wp-block-group__inner-container > .wp-block-image { grid-column: 1; grid-row: 1 / span 9; margin: 0; align-self: center; }
.wp-block-group.is-style-dsd-side > .wp-block-group__inner-container > .wp-block-image img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 16px; }
.wp-block-group.is-style-dsd-side > .wp-block-group__inner-container > p { margin: 0 0 6px; font-size: 16px; line-height: 1.65; color: #4a4f56; }
.wp-block-group.is-style-dsd-side > .wp-block-group__inner-container > p:first-of-type { font-family: Montserrat, sans-serif; font-weight: 900; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.25; color: var(--base, #101010); }
@media (max-width: 560px) { .wp-block-group.is-style-dsd-side > .wp-block-group__inner-container > * { grid-column: 1; } .wp-block-group.is-style-dsd-side > .wp-block-group__inner-container > .wp-block-image { grid-row: auto; margin-bottom: 14px; } }
/* Call to action box: title, line and button stacked on the left (approved design) */
.wp-block-group.is-style-dsd-cta { grid-template-columns: minmax(0, 1fr); row-gap: 4px; }
.wp-block-group.is-style-dsd-cta > .wp-block-group__inner-container > * { position: relative; z-index: 1; margin: 0; grid-column: 1; }
.wp-block-group.is-style-dsd-cta > .wp-block-group__inner-container > p:first-child { font-family: Montserrat, sans-serif; font-weight: 900; font-size: clamp(19px, 1.7vw, 22px); line-height: 1.25; color: var(--base, #101010); }
.wp-block-group.is-style-dsd-cta > .wp-block-group__inner-container > p { font-size: 15.5px; color: #55595f; }
.wp-block-group.is-style-dsd-cta > .wp-block-buttons,
.wp-block-group.is-style-dsd-cta > .wp-block-group__inner-container > .wp-block-buttons { grid-column: 1; grid-row: auto; margin-top: 14px; }

/* Gallery: two pictures side by side. Our gap was wider than the gap WordPress sizes the pictures for,
   so the second picture dropped to a new line. Tell WordPress the same gap we use. */
.dsd-bl-prose .wp-block-gallery.has-nested-images { --wp--style--unstable-gallery-gap: var(--space-s); gap: var(--wp--style--unstable-gallery-gap); }
