/**
 * Rezolve Investor - Events Widget Styles
 */

.rezolve-investor-events-wrapper {
	width: 100%;
}

.rezolve-investor-events-container {
	width: 100%;
}

.rezolve-investor-events-empty {
	text-align: center;
}

.rezolve-investor-events-empty-msg {
	margin: 0;
	opacity: 0.8;
}

/* List layout */
.rezolve-investor-events-layout-list .rezolve-investor-events-inner {
	display: flex;
	flex-direction: column;
}

.rezolve-investor-events-item {
	display: block;
	width: 100%;
}

.rezolve-investor-events-subfield {
	line-height: 1.5;
}

.rezolve-investor-events-value {
	word-break: break-word;
}

.rezolve-investor-events-value img {
	max-width: 100%;
	height: auto;
	display: block;
}

.rezolve-investor-events-value p:last-child {
	margin-bottom: 0;
}

/* Grid layout */
.rezolve-investor-events-layout-grid .rezolve-investor-events-inner {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1.5rem;
}

.rezolve-investor-events-layout-grid .rezolve-investor-events-item {
	margin-bottom: 0;
}

/* Table layout */
.rezolve-investor-events-table {
	width: 100%;
	border-collapse: collapse;
	table-layout: auto;
}

.rezolve-investor-events-table th,
.rezolve-investor-events-table td {
	padding: 0.75em 1em;
	text-align: left;
	border: 1px solid #ddd;
	vertical-align: top;
}

.rezolve-investor-events-table th {
	font-weight: 600;
}

.rezolve-investor-events-date {
	width: 30%;
}

.rezolve-investor-events-table .rezolve-investor-events-value img {
	max-width: 200px;
	height: auto;
}

/* Title column: link + optional Webcast line */
.rezolve-investor-events-title .rezolve-investor-events-title-link,
.rezolve-investor-events-title .rezolve-investor-events-title-text {
	display: block;
}

.rezolve-investor-events-webcast {
	margin-top: 0.35em;
	display: flex;
	align-items: center;
	gap: 0.35em;
	flex-wrap: wrap;
}

.rezolve-investor-events-webcast-icon {
	display: inline-flex;
	align-items: center;
	vertical-align: middle;
}

.rezolve-investor-events-icon-volume {
	display: inline-block;
	vertical-align: middle;
	flex-shrink: 0;
}

.rezolve-investor-events-webcast-link {
	text-decoration: none;
}

.rezolve-investor-events-webcast-link:hover {
	text-decoration: underline;
}
