/* Story entity buttons row (Interviews + Research) */
.zgr-story-entity-buttons {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	margin: 1rem 0 2rem;
}

.zenger-modal-box.zgr-modal-box--research {
	border-radius: .8em !important;
	max-height: 90vh;
	width: 41em;
}
/* Keep research button visually identical to Interviews button */
a.zgr-research-btn,
.zgr-research-btn {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 0.8rem;
	height: 2rem;
	padding: .5rem 1.2rem;
	background: #122b50;
	color: #fff;
	border: 0;
	border-radius: 9999px;
	font-size: 0.86rem;
	font-weight: 500;
	font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	text-decoration: none !important;
	cursor: pointer;
	transition: background-color 0.15s ease;
	box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
	white-space: nowrap;
	-webkit-appearance: none;
	appearance: none;
	outline: none;
}

.zgr-research-btn:hover {
	background: #0d1f38;
}

.zgr-research-btn:focus-visible {
	outline: 2px solid #122b50;
	outline-offset: 2px;
}

.zgr-research-btn svg {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	pointer-events: none;
	fill: none;
	stroke: currentColor;
}

/* Research modal */
.zgr-research-modal {
	text-align: left;
	max-width: 760px;
}

.zgr-research-modal-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 0.75rem;
	padding: 0em 2em 1em 2em;
}

.zgr-research-title {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0;
	font-size: 1.15rem;
	font-weight: 700;
	color: #222;
}

.zgr-research-title svg {
	width: 18px;
	height: 18px;
	stroke: currentColor;
	flex-shrink: 0;
}

.zgr-research-subtitle {
	margin: 0.35rem 0 0;
	font-size: .875rem;
	color: #6b7280;
}

/* Research modal uses the core modal close button, restyled here */
.zgr-modal-box--research .zenger-modal-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 9999px;
	border: 0;
	background: transparent;
	color: #6b7280;
	cursor: pointer;
	font-size: 0; /* hide fallback text glyph once SVG is injected */
	line-height: 1;
}

.zgr-modal-box--research .zenger-modal-close:hover {
	background: #122b50;
	color: #fff;
}

.zgr-modal-box--research .zenger-modal-close svg {
	width: 20px;
	height: 20px;
	stroke: currentColor;
}

.zgr-research-ad {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 120px;
	border: 2px dashed #d1d5db;
	border-radius: 0.5rem;
	background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
	margin: 0.75rem 0 1rem;
}

.zgr-research-ad-content {
	text-align: center;
	padding: 0 1rem;
}

.zgr-research-ad-title {
	margin: 0;
	color: #6b7280;
	font-size: .85rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .08em;
}

.zgr-research-ad-subtitle {
	margin: 0.5rem 0 0;
	color: #6b7280;
	font-size: .75rem;
	font-style: italic;
	line-height: 1.4;
}

.zgr-research-list {
	display: grid;
	gap: 0.75rem;
}

.zgr-research-item {
	background: #f4f5f7;
	border-radius: 0.5rem;
	padding: 1rem;
}

.zgr-research-item-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 0.5rem;
	margin-bottom: .35rem;
}

.zgr-research-item-title {
	flex: 1;
	margin: 0;
	font-size: 1rem;
	color: #222;
}

.zgr-research-tag {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 6px;
	padding: .2rem .45rem;
	font-size: .72rem;
	font-weight: 600;
	white-space: nowrap;
}

.zgr-research-tag--report { background: #e8edf6; color: #122b50; }
.zgr-research-tag--study { background: #dcfce7; color: #166534; }
.zgr-research-tag--paper { background: #f3e8ff; color: #6b21a8; }
.zgr-research-tag--survey { background: #ffedd5; color: #9a3412; }
.zgr-research-tag--guidelines { background: #fce7f3; color: #9d174d; }
.zgr-research-tag--statement { background: #fef3c7; color: #92400e; }
.zgr-research-tag--default { background: #e5e7eb; color: #374151; }

.zgr-research-item-author {
	margin: 0;
	font-size: .875rem;
	color: #4b5563;
}

.zgr-research-item-desc {
	margin: .45rem 0 0;
	font-size: .8rem;
	color: #6b7280;
	line-height: 1.45;
}

.zgr-research-item-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-top: .6rem;
}

.zgr-research-item-date {
	font-size: .75rem;
	color: #6b7280;
}

.zgr-research-item-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #122b50;
	text-decoration: none;
}

.zgr-research-item-link:hover {
	color: #0d1f38;
}

.zgr-research-verified {
	margin-top: 0.75rem;
	padding: 0.75rem;
	border: 1px solid #bbf7d0;
	border-radius: 0.5rem;
	background: #f0fdf4;
	color: #14532d;
	font-size: .85rem;
}

.zgr-research-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 0.75rem;
	padding-top: 0.75rem;
	border-top: 1px solid #e5e7eb;
}

.zgr-research-logo img {
	width: 128px;
	height: auto;
}
