/**
 * Editorial Blocks — shared design system
 * Loaded on both the front end and inside the block editor.
 */

:root {
	--eb-ink: #14213d;
	--eb-ink-soft: #52607a;
	--eb-bg-soft: #f8f7f4;
	--eb-border: #e6e2d8;
	--eb-radius: 14px;
	--eb-radius-sm: 8px;
	--eb-shadow: 0 4px 24px rgba(20, 33, 61, 0.07);
	--eb-teal: #0d9488;
	--eb-teal-dark: #0f766e;
	--eb-teal-soft: #f0fdfa;
	--eb-amber: #b45309;
	--eb-amber-soft: #fffbeb;
	--eb-rose: #be123c;
	--eb-rose-soft: #fff1f2;
	--eb-blue: #1d4ed8;
	--eb-blue-soft: #eff6ff;
	--eb-violet: #6d28d9;
	--eb-violet-soft: #f5f3ff;
}

/* ---------------------------------------------------------------- */
/* USSD Code block                                                   */
/* ---------------------------------------------------------------- */

.wp-block-editorial-blocks-ussd-code {
	margin: 2em 0;
}

.eb-ussd-card {
	position: relative;
	display: flex;
	align-items: center;
	gap: 22px;
	padding: 28px 30px;
	background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
	border-radius: var(--eb-radius);
	box-shadow: var(--eb-shadow);
	overflow: hidden;
	color: #fff;
}

.eb-ussd-card::before {
	content: "";
	position: absolute;
	top: -60px;
	right: -60px;
	width: 200px;
	height: 200px;
	background: radial-gradient(circle, rgba(45, 212, 191, 0.22) 0%, rgba(45, 212, 191, 0) 70%);
	pointer-events: none;
}

.eb-ussd-icon {
	flex-shrink: 0;
	width: 54px;
	height: 54px;
	border-radius: 50%;
	background: rgba(45, 212, 191, 0.14);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #2dd4bf;
}

.eb-ussd-icon svg {
	width: 26px;
	height: 26px;
}

.eb-ussd-content {
	flex: 1;
	min-width: 0;
}

.eb-ussd-label {
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-size: 11px;
	font-weight: 600;
	color: #94a3b8;
	margin: 0 0 6px;
}

.eb-ussd-code {
	font-family: ui-monospace, "SF Mono", "Cascadia Code", Consolas, "Liberation Mono", Menlo, monospace;
	font-size: clamp(26px, 4vw, 38px);
	font-weight: 700;
	letter-spacing: 0.04em;
	color: #5eead4;
	text-shadow: 0 0 26px rgba(45, 212, 191, 0.35);
	line-height: 1.15;
	word-break: break-all;
}

.eb-ussd-description {
	margin: 8px 0 0;
	font-size: 14.5px;
	line-height: 1.55;
	color: #cbd5e1;
}

.eb-ussd-meta {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 12px;
	flex-wrap: wrap;
}

.eb-ussd-provider {
	display: inline-block;
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: #94a3b8;
	border: 1px solid rgba(255, 255, 255, 0.14);
	padding: 3px 11px;
	border-radius: 999px;
}

.eb-ussd-copy {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.14);
	color: #e2e8f0;
	font-size: 12.5px;
	font-weight: 600;
	padding: 8px 14px;
	border-radius: 999px;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.15s ease;
}

.eb-ussd-copy:hover {
	background: rgba(45, 212, 191, 0.18);
	color: #5eead4;
}

.eb-ussd-copy:active {
	transform: scale(0.96);
}

.eb-ussd-copy svg {
	width: 14px;
	height: 14px;
}

/* ---------------------------------------------------------------- */
/* Modern Quote block                                                */
/* ---------------------------------------------------------------- */

.wp-block-editorial-blocks-modern-quote {
	--eb-quote-accent: var(--eb-teal);
	margin: 2.4em 0;
}

.eb-quote-inner {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 20px;
	align-items: start;
	background: #fff;
	border: 1px solid var(--eb-border);
	border-radius: 10px;
	padding: 26px 28px;
}

.eb-quote-badge {
	width: 52px;
	height: 52px;
	flex-shrink: 0;
	border-radius: 8px;
	background: linear-gradient(135deg, var(--eb-ink) 0%, var(--eb-quote-accent) 100%);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	font-family: Georgia, "Iowan Old Style", serif;
	font-weight: 700;
	font-size: 22px;
	transform: rotate(-4deg);
	box-shadow: 0 8px 16px rgba(20, 33, 61, 0.16);
}

.eb-quote-badge svg {
	width: 20px;
	height: 20px;
	transform: rotate(4deg);
}

.eb-quote-avatar {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: rotate(4deg) scale(1.35);
}

.eb-quote-content {
	min-width: 0;
}

.eb-quote-eyebrow {
	display: flex;
	align-items: center;
	gap: 7px;
	font-family: ui-monospace, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-size: 10.5px;
	font-weight: 700;
	color: var(--eb-quote-accent);
	margin: 0 0 12px;
}

.eb-quote-eyebrow [contenteditable] {
	display: inline-block;
	min-width: 1ch;
}

.eb-quote-eyebrow-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--eb-quote-accent);
	flex-shrink: 0;
}

.eb-quote-text {
	font-family: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
	font-style: italic;
	font-size: clamp(18px, 2vw, 21px);
	line-height: 1.58;
	color: var(--eb-ink);
	margin: 0;
}

.eb-quote-rule {
	height: 1px;
	background: var(--eb-border);
	margin: 18px 0 12px;
}

.eb-quote-citation-row {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 8px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.eb-quote-citation {
	font-weight: 700;
	font-size: 12.5px;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--eb-ink);
}

.eb-quote-role {
	font-size: 12.5px;
	color: var(--eb-ink-soft);
}

.eb-quote-sep {
	color: var(--eb-border);
	font-size: 12px;
}

.wp-block-editorial-blocks-modern-quote.is-style-teal { --eb-quote-accent: var(--eb-teal); }
.wp-block-editorial-blocks-modern-quote.is-style-amber { --eb-quote-accent: var(--eb-amber); }
.wp-block-editorial-blocks-modern-quote.is-style-rose { --eb-quote-accent: var(--eb-rose); }
.wp-block-editorial-blocks-modern-quote.is-style-ink { --eb-quote-accent: var(--eb-ink); }

/* ---------------------------------------------------------------- */
/* Callout block                                                     */
/* ---------------------------------------------------------------- */

.wp-block-editorial-blocks-callout {
	margin: 2em 0;
}

.eb-callout {
	display: flex;
	gap: 14px;
	padding: 20px 22px;
	background: var(--eb-callout-soft, var(--eb-bg-soft));
	border: 1px solid var(--eb-border);
	border-left: 4px solid var(--eb-callout-accent, var(--eb-teal));
	border-radius: var(--eb-radius);
}

.eb-callout-icon {
	flex-shrink: 0;
	width: 24px;
	height: 24px;
	margin-top: 1px;
	color: var(--eb-callout-accent, var(--eb-teal));
}

.eb-callout-icon svg {
	width: 100%;
	height: 100%;
}

.eb-callout-body {
	flex: 1;
	min-width: 0;
}

.eb-callout-title {
	font-weight: 700;
	font-size: 15px;
	color: var(--eb-ink);
	margin: 0 0 4px;
}

.eb-callout-text {
	font-size: 14.5px;
	line-height: 1.65;
	color: var(--eb-ink-soft);
	margin: 0;
}

.eb-callout-text p {
	margin: 0 0 0.6em;
}
.eb-callout-text p:last-child {
	margin-bottom: 0;
}

.eb-callout[data-type="info"] { --eb-callout-accent: var(--eb-blue); --eb-callout-soft: var(--eb-blue-soft); }
.eb-callout[data-type="success"] { --eb-callout-accent: var(--eb-teal); --eb-callout-soft: var(--eb-teal-soft); }
.eb-callout[data-type="warning"] { --eb-callout-accent: var(--eb-amber); --eb-callout-soft: var(--eb-amber-soft); }
.eb-callout[data-type="tip"] { --eb-callout-accent: var(--eb-violet); --eb-callout-soft: var(--eb-violet-soft); }

/* ---------------------------------------------------------------- */
/* Key Stat block                                                    */
/* ---------------------------------------------------------------- */

.wp-block-editorial-blocks-key-stat {
	margin: 2em 0;
}

.eb-stat {
	display: inline-block;
	min-width: 200px;
	padding: 24px 26px;
	background: #fff;
	border: 1px solid var(--eb-border);
	border-radius: var(--eb-radius);
}

.eb-stat-number {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: clamp(38px, 6vw, 58px);
	font-weight: 800;
	line-height: 1;
	background: linear-gradient(135deg, var(--eb-ink) 0%, var(--eb-teal) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	margin: 0;
}

.eb-stat-label {
	margin: 12px 0 0;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-size: 12px;
	font-weight: 700;
	color: var(--eb-ink);
}

.eb-stat-description {
	margin: 6px 0 0;
	font-size: 13.5px;
	line-height: 1.55;
	color: var(--eb-ink-soft);
}

/* ---------------------------------------------------------------- */
/* Highlight text format                                             */
/* ---------------------------------------------------------------- */

mark.eb-highlight {
	background: transparent;
	background-image: linear-gradient(180deg, transparent 58%, var(--eb-mark-color, rgba(13, 148, 136, 0.32)) 58%);
	color: inherit;
	padding: 0 1px;
	border-radius: 2px;
}

mark.eb-highlight-teal { --eb-mark-color: rgba(13, 148, 136, 0.32); }
mark.eb-highlight-amber { --eb-mark-color: rgba(217, 119, 6, 0.32); }
mark.eb-highlight-rose { --eb-mark-color: rgba(190, 18, 60, 0.28); }

/* ---------------------------------------------------------------- */
/* Fact Box block                                                    */
/* ---------------------------------------------------------------- */

.wp-block-editorial-blocks-fact-box {
	margin: 2em 0;
}

.eb-fact {
	display: flex;
	gap: 16px;
	padding: 22px 24px;
	background: #fff;
	border: 1px solid var(--eb-border);
	border-radius: 10px;
}

.eb-fact-badge {
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--eb-teal-soft);
	color: var(--eb-teal-dark);
	display: flex;
	align-items: center;
	justify-content: center;
}

.eb-fact-badge svg {
	width: 20px;
	height: 20px;
}

.eb-fact-body {
	flex: 1;
	min-width: 0;
}

.eb-fact-eyebrow {
	font-family: ui-monospace, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-size: 10.5px;
	font-weight: 700;
	color: var(--eb-teal-dark);
	margin: 0 0 8px;
}

.eb-fact-text {
	font-size: 17px;
	font-weight: 600;
	line-height: 1.55;
	color: var(--eb-ink);
	margin: 0;
}

.eb-fact-source {
	margin-top: 10px;
	font-size: 12.5px;
	color: var(--eb-ink-soft);
}

.eb-fact-source a {
	color: var(--eb-teal-dark);
	text-decoration: underline;
}

/* ---------------------------------------------------------------- */
/* Transaction Steps block                                           */
/* ---------------------------------------------------------------- */

.wp-block-editorial-blocks-transaction-steps {
	margin: 2em 0;
}

.eb-txn-card {
	background: linear-gradient(160deg, #0f172a 0%, #1e293b 100%);
	border-radius: 14px;
	padding: 26px 28px;
	color: #fff;
	box-shadow: var(--eb-shadow);
}

.eb-txn-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	padding-bottom: 18px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.eb-txn-title {
	font-weight: 700;
	font-size: 15px;
}

.eb-txn-code {
	font-family: ui-monospace, "SF Mono", Consolas, monospace;
	font-size: 12.5px;
	color: #5eead4;
	background: rgba(45, 212, 191, 0.12);
	border: 1px solid rgba(45, 212, 191, 0.3);
	padding: 3px 10px;
	border-radius: 999px;
}

.eb-txn-list {
	position: relative;
	margin-top: 20px;
}

.eb-txn-list::before {
	content: "";
	position: absolute;
	left: 13px;
	top: 14px;
	bottom: 14px;
	width: 1px;
	background: rgba(255, 255, 255, 0.14);
}

.eb-txn-step {
	position: relative;
	display: grid;
	grid-template-columns: 28px 1fr;
	column-gap: 14px;
	padding-bottom: 22px;
}

.eb-txn-step:last-child {
	padding-bottom: 0;
}

.eb-txn-node {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: rgba(45, 212, 191, 0.15);
	border: 1px solid rgba(45, 212, 191, 0.4);
	color: #5eead4;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: ui-monospace, "SF Mono", Consolas, monospace;
	font-size: 12px;
	font-weight: 700;
	position: relative;
	z-index: 1;
}

.eb-txn-body {
	padding-top: 3px;
}

.eb-txn-instruction {
	margin: 0;
	font-size: 14.5px;
	line-height: 1.55;
	color: #e2e8f0;
}

.eb-txn-input-chip {
	display: inline-flex;
	margin-top: 8px;
	padding: 3px 10px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 6px;
	font-family: ui-monospace, "SF Mono", Consolas, monospace;
	font-size: 12px;
	letter-spacing: 0.02em;
	color: #5eead4;
}

/* ---------------------------------------------------------------- */
/* Timeline block (ruler / measured-time concept)                    */
/* ---------------------------------------------------------------- */

.wp-block-editorial-blocks-timeline {
	margin: 2em 0;
}

.eb-timeline {
	position: relative;
}

.eb-timeline::before {
	content: "";
	position: absolute;
	left: 88px;
	top: 6px;
	bottom: 6px;
	width: 1px;
	background: var(--eb-border);
}

.eb-timeline-event {
	position: relative;
	display: grid;
	grid-template-columns: 64px 20px 1fr;
	column-gap: 14px;
	padding-bottom: 30px;
}

.eb-timeline-event:last-child {
	padding-bottom: 0;
}

.eb-timeline-date {
	font-family: ui-monospace, "SF Mono", Consolas, monospace;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: var(--eb-ink-soft);
	text-align: right;
	padding-top: 3px;
	white-space: nowrap;
}

.eb-timeline-marker {
	position: relative;
	display: flex;
	justify-content: center;
}

.eb-timeline-tick {
	position: absolute;
	left: -9px;
	top: 9px;
	width: 9px;
	height: 1px;
	background: var(--eb-border);
}

.eb-timeline-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--eb-teal);
	box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--eb-teal);
	margin-top: 5px;
	position: relative;
	z-index: 1;
}

.eb-timeline-content {
	padding-top: 1px;
}

.eb-timeline-title {
	font-weight: 700;
	font-size: 15px;
	color: var(--eb-ink);
	margin-bottom: 4px;
}

.eb-timeline-description {
	margin: 0;
	font-size: 13.5px;
	line-height: 1.6;
	color: var(--eb-ink-soft);
}

/* ---------------------------------------------------------------- */
/* Image Comparison block                                            */
/* ---------------------------------------------------------------- */

.wp-block-editorial-blocks-image-compare {
	margin: 2em 0;
}

.eb-compare {
	position: relative;
	aspect-ratio: 16 / 10;
	border-radius: 12px;
	overflow: hidden;
	background: var(--eb-bg-soft);
}

.eb-compare-after,
.eb-compare-before {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.eb-compare-before {
	clip-path: inset( 0 calc( 100% - var( --eb-pos, 50% ) ) 0 0 );
}

.eb-compare-handle {
	position: absolute;
	top: 0;
	bottom: 0;
	left: var( --eb-pos, 50% );
	width: 2px;
	background: #fff;
	transform: translateX( -50% );
	pointer-events: none;
	box-shadow: 0 0 0 1px rgba( 0, 0, 0, 0.08 );
}

.eb-compare-handle::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #fff;
	transform: translate( -50%, -50% );
	box-shadow: 0 4px 14px rgba( 20, 33, 61, 0.25 );
}

.eb-compare-handle::before {
	content: "\2194";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate( -50%, -50% );
	z-index: 1;
	font-size: 14px;
	color: var(--eb-ink);
}

.eb-compare-label {
	position: absolute;
	top: 14px;
	font-family: ui-monospace, "SF Mono", Consolas, monospace;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #fff;
	background: rgba( 20, 33, 61, 0.65 );
	padding: 4px 10px;
	border-radius: 999px;
	pointer-events: none;
}

.eb-compare-label.is-before { left: 14px; }
.eb-compare-label.is-after { right: 14px; }

.eb-compare-range {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: ew-resize;
	appearance: none;
	-webkit-appearance: none;
}

.eb-compare-kbd-hint {
	position: absolute;
	bottom: 14px;
	left: 50%;
	transform: translateX(-50%);
	font-family: ui-monospace, "SF Mono", Consolas, monospace;
	font-size: 11px;
	letter-spacing: 0.08em;
	color: #fff;
	background: rgba(20, 33, 61, 0.65);
	padding: 4px 10px;
	border-radius: 999px;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.15s ease;
}

.eb-compare-range:focus-visible ~ .eb-compare-kbd-hint,
.eb-compare:hover .eb-compare-kbd-hint {
	opacity: 1;
}

.eb-compare-placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 60px 20px;
	border: 1.5px dashed var(--eb-border);
	border-radius: 12px;
	color: var(--eb-ink-soft);
	text-align: center;
}

.eb-compare-placeholder svg {
	width: 32px;
	height: 32px;
	color: var(--eb-teal);
}

.eb-compare-placeholder p {
	margin: 0;
	font-size: 13.5px;
}

/* ---------------------------------------------------------------- */
/* Smart Table block                                                 */
/* ---------------------------------------------------------------- */

.wp-block-editorial-blocks-smart-table {
	margin: 2em 0;
}

.eb-table-wrap {
	overflow-x: auto;
	border: 1px solid var(--eb-border);
	border-radius: 10px;
}

.eb-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.eb-table thead th {
	text-align: left;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 11px;
	font-weight: 700;
	color: var(--eb-ink-soft);
	background: var(--eb-bg-soft);
	padding: 12px 16px;
	border-bottom: 2px solid var(--eb-ink);
	position: relative;
}

.eb-table[data-sortable="true"] thead th {
	cursor: pointer;
	user-select: none;
	transition: color 0.15s ease;
}

.eb-table[data-sortable="true"] thead th:hover {
	color: var(--eb-ink);
}

.eb-table[data-sortable="true"] thead th::after {
	content: "";
	display: inline-block;
	margin-left: 6px;
	width: 0;
	height: 0;
	border-left: 3.5px solid transparent;
	border-right: 3.5px solid transparent;
	vertical-align: middle;
	opacity: 0.35;
	border-bottom: 4px solid currentColor;
}

.eb-table[data-sortable="true"] thead th[aria-sort="descending"]::after {
	border-bottom: none;
	border-top: 4px solid currentColor;
	opacity: 1;
}

.eb-table[data-sortable="true"] thead th[aria-sort="ascending"]::after {
	opacity: 1;
}

.eb-table tbody td {
	padding: 12px 16px;
	border-bottom: 1px solid var(--eb-border);
	color: var(--eb-ink);
}

.eb-table tbody tr:last-child td {
	border-bottom: none;
}

.eb-table tbody tr.is-emphasized {
	background: var(--eb-teal-soft);
}

.eb-table tbody tr.is-emphasized td {
	font-weight: 700;
	color: var(--eb-teal-dark);
	box-shadow: inset 3px 0 0 var(--eb-teal);
}

.eb-table tbody td:first-child {
	font-weight: 600;
}

/* ---------------------------------------------------------------- */
/* Definition block                                                  */
/* ---------------------------------------------------------------- */

.wp-block-editorial-blocks-definition {
	margin: 2em 0;
}

.eb-definition {
	padding: 24px 26px;
	background: #fff;
	border: 1px solid var(--eb-border);
	border-radius: 10px;
}

.eb-definition-head {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 10px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--eb-border);
}

.eb-definition-term {
	font-family: Georgia, "Iowan Old Style", serif;
	font-weight: 700;
	font-size: 22px;
	color: var(--eb-ink);
}

.eb-definition-pron {
	font-family: ui-monospace, "SF Mono", Consolas, monospace;
	font-size: 12.5px;
	color: var(--eb-ink-soft);
}

.eb-definition-pos {
	font-style: italic;
	font-size: 12.5px;
	color: var(--eb-teal-dark);
}

.eb-definition-body {
	display: flex;
	gap: 10px;
	align-items: baseline;
	font-size: 15px;
	line-height: 1.6;
	color: var(--eb-ink);
}

.eb-definition-text {
	flex: 1;
	min-width: 0;
}

.eb-definition-index {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--eb-teal-soft);
	color: var(--eb-teal-dark);
	font-size: 10.5px;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transform: translateY(2px);
}

.eb-definition-example {
	margin-top: 12px;
	padding-left: 14px;
	border-left: 2px solid var(--eb-border);
	font-style: italic;
	font-size: 13.5px;
	line-height: 1.6;
	color: var(--eb-ink-soft);
}

/* ---------------------------------------------------------------- */
/* Reference List block                                              */
/* ---------------------------------------------------------------- */

.wp-block-editorial-blocks-reference-list {
	margin: 2em 0;
}

.eb-refs-title {
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-size: 11px;
	font-weight: 700;
	color: var(--eb-ink-soft);
	border-bottom: 1px solid var(--eb-border);
	padding-bottom: 8px;
	margin-bottom: 12px;
}

.eb-refs-list {
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: eb-refs;
}

.eb-refs-item {
	position: relative;
	padding-left: 32px;
	margin-bottom: 10px;
	font-size: 13.5px;
	line-height: 1.6;
	color: var(--eb-ink-soft);
}

.eb-refs-item:last-child {
	margin-bottom: 0;
}

.eb-refs-item::before {
	counter-increment: eb-refs;
	content: "[" counter( eb-refs ) "]";
	position: absolute;
	left: 0;
	top: 0;
	font-family: ui-monospace, "SF Mono", Consolas, monospace;
	font-weight: 700;
	font-size: 12px;
	color: var(--eb-teal-dark);
}

.eb-refs-item a {
	color: var(--eb-ink);
	text-decoration: underline;
	text-decoration-color: var(--eb-border);
	text-underline-offset: 2px;
}

.eb-refs-item a:hover {
	text-decoration-color: var(--eb-teal);
}

/* ---------------------------------------------------------------- */
/* Pros & Cons block                                                 */
/* ---------------------------------------------------------------- */

.wp-block-editorial-blocks-pros-cons {
	margin: 2em 0;
}

.eb-proscons {
	display: grid;
	grid-template-columns: 1fr 1fr;
	border: 1px solid var(--eb-border);
	border-radius: 12px;
	overflow: hidden;
}

.eb-proscons-col {
	padding: 22px 24px;
}

.eb-proscons-col.is-pros {
	background: var(--eb-teal-soft);
	border-right: 1px solid var(--eb-border);
}

.eb-proscons-col.is-cons {
	background: var(--eb-rose-soft);
}

.eb-proscons-heading {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 700;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin: 0 0 14px;
}

.eb-proscons-heading svg {
	width: 16px;
	height: 16px;
}

.is-pros .eb-proscons-heading { color: var(--eb-teal-dark); }
.is-cons .eb-proscons-heading { color: var(--eb-rose); }

.eb-proscons-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.eb-proscons-item {
	display: flex;
	gap: 8px;
	font-size: 14px;
	line-height: 1.5;
	color: var(--eb-ink);
}

.eb-proscons-item svg {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	margin-top: 2px;
}

.is-pros .eb-proscons-item svg { color: var(--eb-teal); }
.is-cons .eb-proscons-item svg { color: var(--eb-rose); }

@media ( max-width: 600px ) {
	.eb-proscons {
		grid-template-columns: 1fr;
	}
	.eb-proscons-col.is-pros {
		border-right: none;
		border-bottom: 1px solid var(--eb-border);
	}
}

/* ---------------------------------------------------------------- */
/* Status Tracker block                                              */
/* ---------------------------------------------------------------- */

.wp-block-editorial-blocks-status-track {
	margin: 2em 0;
}

.eb-status-steps {
	display: flex;
	align-items: flex-start;
}

.eb-status-step {
	flex: 1;
	position: relative;
	text-align: center;
	padding: 0 4px;
}

.eb-status-step::after {
	content: "";
	position: absolute;
	top: 11px;
	left: 50%;
	width: 100%;
	height: 2px;
	background: var(--eb-border);
	z-index: 0;
}

.eb-status-step:last-child::after {
	display: none;
}

.eb-status-step.is-complete::after {
	background: var(--eb-teal);
}

.eb-status-node {
	position: relative;
	z-index: 1;
	width: 24px;
	height: 24px;
	margin: 0 auto 8px;
	border-radius: 50%;
	background: #fff;
	border: 2px solid var(--eb-border);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	font-weight: 700;
	color: var(--eb-ink-soft);
}

.eb-status-node svg {
	width: 12px;
	height: 12px;
}

.eb-status-step.is-complete .eb-status-node {
	background: var(--eb-teal);
	border-color: var(--eb-teal);
	color: #fff;
}

.eb-status-step.is-current .eb-status-node {
	border-color: var(--eb-teal);
	color: var(--eb-teal);
	box-shadow: 0 0 0 4px var(--eb-teal-soft);
}

.eb-status-label,
.eb-status-label-field input {
	font-size: 12px;
	font-weight: 600;
	color: var(--eb-ink-soft);
	text-align: center;
}

.eb-status-step.is-complete .eb-status-label,
.eb-status-step.is-current .eb-status-label {
	color: var(--eb-ink);
}

.eb-status-bar-wrap {
	padding: 4px 0;
}

.eb-status-bar-head {
	display: flex;
	justify-content: space-between;
	font-size: 13px;
	font-weight: 600;
	color: var(--eb-ink);
	margin-bottom: 8px;
}

.eb-status-bar-track {
	height: 10px;
	border-radius: 999px;
	background: var(--eb-bg-soft);
	border: 1px solid var(--eb-border);
	overflow: hidden;
}

.eb-status-bar-fill {
	height: 100%;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--eb-teal) 0%, var(--eb-ink) 100%);
	transition: width 0.3s ease;
}
