Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Home/FeaturedCard/styles.css

Template page
Revision as of 16:09, 18 April 2026 by Eloise Zomia (talk | contribs) (Created page with ".fc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0 0 2rem; } .fc-section-label { font-size: 11px; letter-spacing: 0.08em; color: var(--color-text-tertiary, #6a6a65); margin: 0 0 0.75rem; } .fc-card { position: relative; display: block; background: var(--color-surface, #fff); border: 1px solid rgba(0, 0, 0, 0.08); border-radius: 10px; overflow: hidden; transition: border-color 180ms ease, transform 180ms ease;...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
.fc-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin: 0 0 2rem;
}

.fc-section-label {
	font-size: 11px;
	letter-spacing: 0.08em;
	color: var(--color-text-tertiary, #6a6a65);
	margin: 0 0 0.75rem;
}

.fc-card {
	position: relative;
	display: block;
	background: var(--color-surface, #fff);
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 10px;
	overflow: hidden;
	transition: border-color 180ms ease, transform 180ms ease;
}

.fc-card:hover {
	border-color: rgba(0, 0, 0, 0.20);
	transform: translateY(-2px);
}

.fc-overlay {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: block;
}

.fc-media {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #e9e6dd;
}

.fc-media a,
.fc-media .mw-file-description,
.fc-media > span {
	display: block;
	width: 100%;
	height: 100%;
}

.fc-media img,
.fc-img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	display: block;
	transition: transform 400ms ease;
}

.fc-card:hover .fc-media img {
	transform: scale(1.03);
}

.fc-body {
	padding: 14px 16px 18px;
}

.fc-title {
	margin: 0 0 4px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: -0.005em;
}

.fc-title a,
.fc-title a:visited {
	color: inherit;
	text-decoration: none;
}

.fc-sub {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	color: var(--color-text-secondary, #6a6a65);
	max-height: calc(1.5em * 2);
	overflow: hidden;
}

.fc-sub:empty {
	display: none;
}

.fc-sub:empty {
	display: none;
}

/* Hero variant */
.fc-card--hero {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
	min-height: 340px;
	margin: 0 0 2.5rem;
}

.fc-card--hero .fc-media {
	aspect-ratio: auto;
	height: 100%;
}

.fc-card--hero .fc-body {
	padding: 36px 32px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.fc-card--hero .fc-eyebrow {
	font-size: 11px;
	letter-spacing: 0.08em;
	color: var(--color-text-tertiary, #6a6a65);
	margin: 0 0 14px;
}

.fc-card--hero .fc-title {
	font-size: 26px;
	font-weight: 500;
	line-height: 1.2;
	margin: 0 0 10px;
}

.fc-card--hero .fc-sub {
	font-size: 15px;
	line-height: 1.5;
}

/* Mobile */
@media (max-width: 720px) {
	.fc-grid {
		grid-template-columns: 1fr;
		gap: 12px;
	}
	.fc-card--hero {
		grid-template-columns: 1fr;
		min-height: 0;
	}
	.fc-card--hero .fc-media {
		aspect-ratio: 16 / 9;
	}
	.fc-card--hero .fc-body {
		padding: 22px 20px 26px;
	}
	.fc-card--hero .fc-title {
		font-size: 22px;
	}
}