/* =========================================================
   INESC Awards — frontend list
   Card styling mirrors the sidebar person card in inesc-posts
   so the visual language stays consistent across the site.
========================================================= */

.inesc-awards {
	--ia-blue:       #005f80;
	--ia-dark-blue:  #004d6d;
	--ia-green:      #97ca3d;
	--ia-green-dark: #84b62f;
	--ia-gray:       #6a858e;
	--ia-placeholder-bg: #d9d9d9;
	--ia-text:       #2c3338;
	--ia-rule:       #e5e7e9;

	max-width: 1200px;
	margin: 0 auto;
	color: var(--ia-text);
}

.inesc-awards__list {
	display: flex;
	flex-direction: column;
	gap: 3rem;
}

/* ----- Year section ----- */
.inesc-awards__year {
	scroll-margin-top: 80px;
}

.inesc-awards__year-title {
	font-size: clamp(1.6rem, 2.4vw, 2.2rem);
	font-weight: 600;
	color: var(--ia-blue);
	margin: 0 0 1.4rem;
	padding-bottom: 0.4rem;
	border-bottom: 2px solid var(--ia-green);
}

.inesc-awards__empty {
	color: var(--ia-gray);
	font-style: italic;
}

/* ----- Grid of winner cards ----- */
.inesc-awards__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem 1.5rem;
}

@media (max-width: 780px) {
	.inesc-awards__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* ----- Card (matches screenshot) ----- */
.inesc-awards__card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 1rem 0.6rem 0.6rem;
	background: transparent;
	gap: 0.4rem;
}

.inesc-awards__photo {
	width: clamp(7rem, 10vw, 9.5rem);
	aspect-ratio: 1;
	border-radius: 50%;
	background: var(--ia-placeholder-bg) no-repeat center / cover;
	margin: 0.4rem 0 0.6rem;
	flex-shrink: 0;
}

.inesc-awards__photo-placeholder {
	display: block;
	width: 100%;
	height: 100%;
}

.inesc-awards__name {
	font-size: 1.15rem;
	font-weight: 500;
	color: var(--ia-blue);
	line-height: 1.2;
	margin: 0;
}

.inesc-awards__role {
	font-size: 1rem;
	font-weight: 400;
	color: var(--ia-green);
	line-height: 1.3;
	margin: 0;
}

.inesc-awards__email {
	font-size: 0.95rem;
	font-weight: 600;
	margin: 0.3rem 0 0;
	word-break: break-all;
}

.inesc-awards__email a {
	color: var(--ia-dark-blue);
	text-decoration: none;
}

.inesc-awards__email a:hover,
.inesc-awards__email a:focus {
	color: var(--ia-green);
	text-decoration: underline;
}

/* ----- Collapsible nominees ----- */
.inesc-awards__nominees {
	width: 100%;
	margin-top: 0.8rem;
	border-top: 1px solid var(--ia-green);
}

.inesc-awards__nominees-toggle {
	list-style: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	padding: 0.5rem 0;
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--ia-blue);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	user-select: none;
}

.inesc-awards__nominees-toggle::-webkit-details-marker { display: none; }
.inesc-awards__nominees-toggle::marker { content: ''; }

.inesc-awards__nominees-chevron {
	width: 0.55rem;
	height: 0.55rem;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform 0.2s ease;
	margin-bottom: 3px;
}

.inesc-awards__nominees[open] .inesc-awards__nominees-chevron {
	transform: rotate(-135deg);
	margin-bottom: -3px;
}

.inesc-awards__nominees-list {
	list-style: none;
	margin: 0.2rem 0 0.6rem;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	font-size: 0.95rem;
	color: var(--ia-blue);
}

.inesc-awards__nominees-list li {
	padding: 0;
}

/* ----- Load more ----- */
.inesc-awards__more-wrap {
	display: flex;
	justify-content: center;
	margin-top: 2.5rem;
}

.inesc-awards__more {
	background: var(--ia-green);
	color: #fff;
	border: 0;
	padding: 0.7rem 1.8rem;
	font-size: 0.95rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	cursor: pointer;
	line-height: 1;
	transition: background 0.15s ease;
}

.inesc-awards__more:hover:not(:disabled),
.inesc-awards__more:focus:not(:disabled) {
	background: var(--ia-green-dark);
}

.inesc-awards__more:disabled {
	opacity: 0.6;
	cursor: progress;
}

/* ----- Small screens ----- */
@media (max-width: 480px) {
	.inesc-awards__grid {
		grid-template-columns: 1fr;
		gap: 1.5rem 1rem;
	}
}
