/* ==========================================================================
   Ghana Mind Set — block styles
   Loaded on the site and inside the editor, so posts look the same in both.
   Site colours come from main.css tokens (dark-mode aware); the fallbacks
   after each comma are used inside the editor.
   ========================================================================== */

/* Opening paragraph ------------------------------------------------------- */
.is-style-ghm-lead {
	font-family: var(--font-display, "Fraunces", Georgia, serif);
	font-size: 1.3em;
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: -0.008em;
	color: var(--ink, #17140f);
}

/* Letter greeting --------------------------------------------------------- */
.is-style-ghm-salutation {
	font-family: var(--font-display, "Fraunces", Georgia, serif);
	font-size: 1.25em;
	font-style: italic;
	color: var(--ink, #17140f);
}

/* Big number -------------------------------------------------------------- */
.is-style-ghm-stat {
	font-family: var(--font-display, "Fraunces", Georgia, serif);
	font-size: clamp(2.3rem, 5vw, 3.3rem);
	font-weight: 600;
	line-height: 1;
	letter-spacing: -0.03em;
	color: var(--accent, #0e5c3b);
}

.is-style-ghm-stat + p {
	margin-top: 0.4em;
	font-family: var(--font-ui, "Instrument Sans", system-ui, sans-serif);
	font-size: 0.8em;
	line-height: 1.45;
	color: var(--ink-3, #7a7166);
}

.wp-block-columns.ghm-facts {
	gap: 1.4em;
	padding: 1.4em 0;
	border-block: 1px solid var(--rule, #e4dccc);
}

/* Small label heading ----------------------------------------------------- */
.wp-block-heading.is-style-ghm-kicker,
h2.is-style-ghm-kicker,
h3.is-style-ghm-kicker,
h4.is-style-ghm-kicker {
	margin-bottom: 0;
	font-family: var(--font-ui, "Instrument Sans", system-ui, sans-serif);
	font-size: 0.68em;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--red, #b42f27);
}

/* Pull quote -------------------------------------------------------------- */
.wp-block-quote.is-style-ghm-pull {
	max-width: 820px;
	margin-block: 2em;
	padding: 1.1em 0 1.2em;
	border: 0;
	border-block: 2px solid var(--ink, #17140f);
	font-family: var(--font-display, "Fraunces", Georgia, serif);
	font-size: 1.45em;
	font-style: italic;
	line-height: 1.3;
	letter-spacing: -0.012em;
	text-align: center;
}

.wp-block-quote.is-style-ghm-pull::before {
	content: "\201C";
	display: block;
	height: 0.42em;
	font-size: 2.6em;
	font-style: normal;
	line-height: 0.75;
	color: var(--gold, #c98d10);
}

.wp-block-quote.is-style-ghm-pull p {
	text-wrap: balance;
}

.wp-block-quote.is-style-ghm-pull cite {
	display: block;
	margin-top: 1em;
	font-family: var(--font-ui, "Instrument Sans", system-ui, sans-serif);
	font-size: 0.48em;
	font-style: normal;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ink-3, #7a7166);
}

/* Scripture --------------------------------------------------------------- */
.wp-block-quote.is-style-ghm-scripture {
	position: relative;
	margin-block: 1.8em;
	padding: 1.3em 1.5em 1.3em 1.7em;
	border: 0;
	border-radius: 16px;
	background: var(--paper-2, #f4eee2);
	font-family: var(--font-display, "Fraunces", Georgia, serif);
	font-size: 1.15em;
	font-style: italic;
	line-height: 1.5;
}

.wp-block-quote.is-style-ghm-scripture::before {
	content: "";
	position: absolute;
	top: 1.2em;
	bottom: 1.2em;
	left: 0;
	width: 4px;
	border-radius: 0 3px 3px 0;
	background: var(--k-gold, #f0b429);
}

.wp-block-quote.is-style-ghm-scripture cite {
	display: block;
	margin-top: 0.8em;
	font-family: var(--font-ui, "Instrument Sans", system-ui, sans-serif);
	font-size: 0.55em;
	font-style: normal;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--red, #b42f27);
}

/* Cards (group styles) ---------------------------------------------------- */
.wp-block-group.is-style-ghm-note,
.wp-block-group.is-style-ghm-highlight,
.wp-block-group.is-style-ghm-kente {
	padding: 1.4em 1.6em;
	border-radius: 16px;
}

.wp-block-group.is-style-ghm-note {
	border: 1px solid var(--rule, #e4dccc);
	background: var(--paper-2, #f4eee2);
}

.wp-block-group.is-style-ghm-highlight {
	background: #0c4a31;
	color: #f6f0e2;
}

.wp-block-group.is-style-ghm-highlight .is-style-ghm-kicker {
	color: #f0b429;
}

.wp-block-group.is-style-ghm-highlight a {
	color: #f0b429;
}

.wp-block-group.is-style-ghm-kente {
	position: relative;
	overflow: hidden;
	padding-top: 1.9em;
	border: 1px solid var(--rule, #e4dccc);
	background: var(--paper-2, #f4eee2);
}

.wp-block-group.is-style-ghm-kente::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 7px;
	background-image:
		linear-gradient(0deg, rgb(0 0 0 / 0.16) 0 1px, transparent 1px),
		repeating-linear-gradient(90deg, #0f6b43 0 18px, #f0b429 18px 21px, #0f6b43 21px 36px, #15120e 36px 40px, #f0b429 40px 58px, #c4302b 58px 61px, #f0b429 61px 76px, #15120e 76px 80px, #c4302b 80px 98px, #f0b429 98px 101px, #c4302b 101px 116px, #15120e 116px 120px);
	background-size: 100% 3px, auto;
}

.wp-block-group.is-style-ghm-signoff {
	margin-top: 2em;
	padding-top: 1.2em;
	border-top: 1px solid var(--rule, #e4dccc);
}

.wp-block-group.is-style-ghm-signoff p {
	margin: 0;
	line-height: 1.5;
}

.wp-block-group[class*="is-style-ghm"] > * {
	margin-top: 0;
	margin-bottom: 0;
}

.wp-block-group.is-style-ghm-note > * + *,
.wp-block-group.is-style-ghm-highlight > * + *,
.wp-block-group.is-style-ghm-kente > * + * {
	margin-top: 0.75em;
}

.wp-block-group.is-style-ghm-kente h3,
.wp-block-group.is-style-ghm-note h3:not(.is-style-ghm-kicker) {
	font-size: 1.3em;
}

.ghm-read-also a {
	font-family: var(--font-display, "Fraunces", Georgia, serif);
	font-weight: 560;
	text-decoration: none;
}

/* Lists ------------------------------------------------------------------- */
.wp-block-list.is-style-ghm-checks {
	padding-left: 0;
	list-style: none;
}

.wp-block-list.is-style-ghm-checks li {
	position: relative;
	padding-left: 1.9em;
}

.wp-block-list.is-style-ghm-checks li + li {
	margin-top: 0.55em;
}

.wp-block-list.is-style-ghm-checks li::before {
	content: "";
	position: absolute;
	top: 0.32em;
	left: 0;
	width: 1.15em;
	height: 1.15em;
	border-radius: 50%;
	background: var(--accent, #0e5c3b) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5.5 12.5l4 4 9-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 72% no-repeat;
}

.wp-block-list.is-style-ghm-timeline {
	padding-left: 0.5em;
	list-style: none;
}

.wp-block-list.is-style-ghm-timeline li {
	position: relative;
	margin: 0;
	padding: 0 0 1.2em 1.7em;
	border-left: 2px solid var(--rule, #e4dccc);
}

.wp-block-list.is-style-ghm-timeline li + li {
	margin-top: 0;
}

.wp-block-list.is-style-ghm-timeline li:last-child {
	padding-bottom: 0.2em;
	border-left-color: transparent;
}

.wp-block-list.is-style-ghm-timeline li::before {
	content: "";
	position: absolute;
	top: 0.42em;
	left: -8px;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--k-gold, #f0b429);
	box-shadow: 0 0 0 4px var(--paper, #fbf8f2);
}

.wp-block-list.is-style-ghm-timeline li > strong:first-child {
	display: block;
	font-family: var(--font-ui, "Instrument Sans", system-ui, sans-serif);
	font-size: 0.74em;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--red, #b42f27);
}

/* Black star divider ------------------------------------------------------ */
.wp-block-separator.is-style-ghm-stars {
	width: auto;
	max-width: none;
	height: auto;
	margin-block: 2.2em;
	border: 0;
	background: none !important;
	opacity: 1;
	text-align: center;
}

.wp-block-separator.is-style-ghm-stars::before {
	content: "\2605\2003\2605\2003\2605";
	font-size: 0.85em;
	color: var(--gold, #c98d10);
}

/* Framed image ------------------------------------------------------------ */
.wp-block-image.is-style-ghm-framed img {
	padding: 8px;
	border: 1px solid var(--rule, #e4dccc);
	border-radius: 6px;
	background: var(--paper, #fbf8f2);
	box-shadow: 0 20px 40px -26px rgb(0 0 0 / 0.5);
}

/* Buttons ----------------------------------------------------------------- */
.wp-block-button .wp-block-button__link {
	padding: 0.85em 1.5em;
	border-radius: 999px;
	font-family: var(--font-ui, "Instrument Sans", system-ui, sans-serif);
	font-size: 0.8em;
	font-weight: 600;
	text-decoration: none;
}

.prose .wp-block-button .wp-block-button__link {
	text-decoration: none;
}

.prose .wp-block-button:not(.is-style-outline):not(.is-style-ghm-gold) .wp-block-button__link:not(.has-background) {
	background: var(--ink, #17140f);
	color: var(--paper, #fbf8f2);
}

.wp-block-button.is-style-ghm-gold .wp-block-button__link {
	background: #f0b429;
	color: #17140f;
}

/* Questions and answers --------------------------------------------------- */
.wp-block-details {
	padding: 0.85em 0;
	border-bottom: 1px solid var(--rule, #e4dccc);
}

.wp-block-details + .wp-block-details {
	margin-top: 0 !important;
}

.wp-block-details summary {
	display: flex;
	justify-content: space-between;
	gap: 1em;
	cursor: pointer;
	list-style: none;
	font-family: var(--font-display, "Fraunces", Georgia, serif);
	font-weight: 560;
	line-height: 1.35;
}

.wp-block-details summary::-webkit-details-marker {
	display: none;
}

.wp-block-details summary::after {
	content: "+";
	flex: none;
	font-family: var(--font-ui, "Instrument Sans", system-ui, sans-serif);
	font-weight: 400;
	color: var(--gold, #c98d10);
}

.wp-block-details[open] summary::after {
	content: "\2212";
}

.wp-block-details > :not(summary) {
	margin-top: 0.6em;
	color: var(--ink-2, #48413a);
}

/* Columns inside essays --------------------------------------------------- */
.prose .wp-block-columns {
	margin-block: 1.8em;
}

.prose .wp-block-column > * + * {
	margin-top: 0.8em;
}

/* Palette colours follow light/dark mode on the site ----------------------- */
body .has-ink-color {
	color: var(--ink, #17140f) !important;
}

body .has-paper-color {
	color: var(--paper, #fbf8f2) !important;
}

body .has-sand-background-color {
	background-color: var(--paper-2, #f4eee2) !important;
}

body .has-paper-background-color {
	background-color: var(--paper, #fbf8f2) !important;
}

body .has-green-color {
	color: var(--accent, #0e5c3b) !important;
}

body .has-grey-color {
	color: var(--ink-3, #7a7166) !important;
}
