/* ============================================================
   Exchanged Timeline — Public Collections styles
   ([et_collections] index + [et_collection] single page)
   ============================================================ */

/* ---------------------------------------------------------- */
/* Shared error / empty states                                 */
/* ---------------------------------------------------------- */
.et-shortcode-error,
.et-collections-empty {
	padding: 1em 1.25em;
	background: #f6f7f7;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	color: #50575e;
}

/* ---------------------------------------------------------- */
/* Index — card grid                                           */
/* ---------------------------------------------------------- */

.et-collections-index {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 280px, 1fr ) );
	gap: 1.25em;
	margin: 1em 0 2em;
}

.et-collection-card {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	padding: 1.1em 1.2em 1em;
	display: flex;
	flex-direction: column;
	gap: .5em;
	transition: box-shadow .15s ease, transform .15s ease;
}
.et-collection-card:hover {
	box-shadow: 0 4px 14px rgba( 0, 0, 0, .08 );
	transform: translateY( -1px );
}

.et-collection-card-subtitle {
	font-size: .8em;
	text-transform: uppercase;
	letter-spacing: .05em;
	color: #646970;
	font-weight: 600;
}

.et-collection-card-name {
	margin: 0;
	font-size: 1.25em;
	line-height: 1.25;
}
.et-collection-card-name a {
	color: inherit;
	text-decoration: none;
}
.et-collection-card-name a:hover { text-decoration: underline; }

.et-collection-card-description {
	color: #3c434a;
	font-size: .95em;
	line-height: 1.5;
	margin: 0;
	flex: 1; /* push meta row to the bottom */
}

.et-collection-card-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: .5em;
	font-size: .85em;
	color: #646970;
}

.et-collection-card-count {
	background: #f0f0f1;
	padding: .15em .6em;
	border-radius: 10px;
	font-weight: 500;
}

.et-collection-card-link {
	color: #2271b1;
	font-weight: 600;
	text-decoration: none;
}
.et-collection-card-link:hover { text-decoration: underline; }

/* ---------------------------------------------------------- */
/* Single — collection detail page                             */
/* ---------------------------------------------------------- */

.et-collection-page {
	max-width: 760px;
	margin: 0 auto;
}

.et-collection-header {
	margin: 0 0 1em;
}
.et-collection-title {
	margin: 0;
	font-size: 1.85em;
	line-height: 1.2;
}
.et-collection-subtitle {
	margin: .25em 0 0;
	color: #646970;
	font-size: 1em;
	font-style: italic;
}

.et-collection-description {
	margin: 1em 0;
	color: #1d2327;
	line-height: 1.65;
}
.et-collection-description p { margin: 0 0 .9em; }

.et-collection-actions {
	display: flex;
	flex-wrap: wrap;
	gap: .6em;
	margin: 1em 0 1.5em;
}
.et-collection-action {
	display: inline-block;
	padding: .5em 1em;
	background: #2271b1;
	color: #fff !important;
	border: 1px solid #2271b1;
	border-radius: 4px;
	text-decoration: none;
	font-weight: 600;
	cursor: pointer;
	font-size: .95em;
	line-height: 1.4;
}
.et-collection-action:hover { background: #135e96; border-color: #135e96; }
.et-collection-action[disabled],
.et-collection-action[data-rl-state="added"] {
	background: #1a7f37;
	border-color: #1a7f37;
	cursor: default;
}
/* Legacy class kept for back-compat with any pages already styling it. */
.et-collection-timeline-link a { /* superseded by .et-collection-action */ }

.et-collection-empty {
	margin: 1.5em 0;
	color: #646970;
}

/* Items list */
.et-collection-items {
	list-style: none;
	padding: 0;
	margin: 1em 0;
	counter-reset: et-coll-item;
}
.et-collection-item {
	counter-increment: et-coll-item;
	padding: 1em 0 1em 2.75em;
	position: relative;
	border-top: 1px solid #dcdcde;
}
.et-collection-item:last-child { border-bottom: 1px solid #dcdcde; }
.et-collection-item::before {
	content: counter( et-coll-item );
	position: absolute;
	left: 0;
	top: 1em;
	width: 2em;
	text-align: right;
	color: #8c8f94;
	font-weight: 600;
	font-size: .95em;
}

.et-collection-item-row {
	display: flex;
	align-items: baseline;
	gap: .5em;
	flex-wrap: wrap;
}

.et-collection-item-name {
	font-weight: 600;
	font-size: 1.05em;
	flex: 1;
}
.et-collection-item-name a {
	color: #1d2327;
	text-decoration: none;
}
.et-collection-item-name a:hover {
	color: #2271b1;
	text-decoration: underline;
}

.et-collection-item-year {
	color: #646970;
	font-size: .9em;
	font-variant-numeric: tabular-nums;
}

.et-collection-item-summary {
	margin: .4em 0 0;
	color: #50575e;
	font-size: .92em;
	line-height: 1.55;
}

.et-collection-item-note {
	margin: .5em 0 0;
	padding: .55em .8em;
	background: #fffbea;
	border-left: 3px solid #f0c040;
	color: #3c434a;
	font-size: .92em;
	line-height: 1.5;
	font-style: italic;
}

/* Type badges — shared with admin styles but redeclared here so the
   public surface doesn't depend on admin.css being loaded. */
.et-item-type-badge {
	display: inline-block;
	padding: 1px 8px;
	border-radius: 10px;
	font-size: .7em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: #fff;
	vertical-align: middle;
}
.et-item-type-author { background: #3b82f6; }
.et-item-type-work   { background: #f59e0b; }
