/* Homepage sections. */

.home .tmp-main { padding-top: 16px; }

/* Featured: big card + latest list (side by side on desktop). */
.tmp-featured { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin-bottom: 28px; }
.tmp-featured > * { min-width: 0; }
@media (min-width: 1024px) { .tmp-featured { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } }
.tmp-featured .tmp-card--large { margin: 0; height: 100%; }
@media (min-width: 1024px) {
	.tmp-featured .tmp-card--large { flex-direction: column; }
	.tmp-featured .tmp-card--large .tmp-card__media { flex: none; aspect-ratio: 16 / 9; min-height: 0; }
}
.tmp-featured__side { padding: 20px; border: 1px solid var(--tmp-border); border-radius: var(--tmp-radius); background: var(--tmp-card); }
.tmp-featured__title { margin: 0 0 8px; font-size: 1.15rem; }
.tmp-featured__list { margin: 0; padding: 0; list-style: none; counter-reset: latest; }
.tmp-featured__list li { position: relative; padding: 12px 0 12px 40px; border-bottom: 1px solid var(--tmp-border); counter-increment: latest; line-height: 1.5; }
.tmp-featured__list li:last-child { border-bottom: 0; }
.tmp-featured__list li::before { content: counter(latest, decimal-leading-zero); position: absolute; top: 12px; left: 0; color: var(--tmp-accent-orange-deep); font-weight: 700; }
.tmp-featured__list a { display: block; color: var(--tmp-ink); font-size: 17px; font-weight: 600; text-decoration: none; }
.tmp-featured__list a:hover { color: var(--tmp-brand-blue); }
.tmp-featured__list time { color: var(--tmp-muted); font-size: 14px; }

/* Tools strip: scrolls sideways on phones. */
.tmp-tools { margin-bottom: 32px; }
.tmp-tools__list { display: flex; gap: 12px; margin: 0; padding: 0 0 4px; list-style: none; overflow-x: auto; scroll-snap-type: x proximity; }
.tmp-tools__list li { flex: 0 0 auto; scroll-snap-align: start; }
@media (min-width: 600px) { .tmp-tools__list li { flex: 1 1 0; } }
.tmp-tool {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 64px;
	padding: 12px 16px;
	border: 1px solid var(--tmp-border);
	border-radius: var(--tmp-radius);
	background: var(--tmp-card);
	color: var(--tmp-ink);
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none;
	white-space: nowrap;
}
.tmp-tool:hover { border-color: var(--tmp-brand-blue); }
.tmp-tool__icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; background: var(--tmp-tint-orange); color: var(--tmp-accent-orange-deep); font-size: 20px; font-weight: 700; }
.tmp-tool__name { flex: 1; }

/* Category sections */
.tmp-home-section { margin-bottom: 36px; }
.tmp-home-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 2px solid var(--tmp-border); }
.tmp-home-section__title { position: relative; margin: 0; font-size: 1.35rem; }
.tmp-home-section__title::after { content: ""; position: absolute; left: 0; bottom: -10px; width: 48px; height: 3px; background: var(--tmp-gradient); }
.tmp-home-section__more { flex: none; font-size: 15px; font-weight: 600; text-decoration: none; }

/* Phones: first card large, the rest as compact rows. */
@media (max-width: 599px) {
	.tmp-home-section .tmp-grid--4 { gap: 12px; }
	.tmp-home-section .tmp-card:not(:first-child) { flex-direction: row; }
	.tmp-home-section .tmp-card:not(:first-child) .tmp-card__media { flex: 0 0 110px; aspect-ratio: 1; }
	.tmp-home-section .tmp-card:not(:first-child) .tmp-card__body { padding: 10px 12px; }
	.tmp-home-section .tmp-card:not(:first-child) .tmp-card__title { font-size: 16px; }
	.tmp-home-section .tmp-card:not(:first-child) .tmp-card__placeholder { font-size: 30px; }
}

/* Beginner guides band */
.tmp-guides { margin: 0 0 36px; padding: 32px 0; background: var(--tmp-tint-blue); }
.tmp-guides .tmp-home-section__title { margin-bottom: 20px; }

/* Trust band */
.tmp-trust { margin-bottom: 16px; }
.tmp-trust__inner { display: grid; gap: 20px; padding: 24px; border-radius: var(--tmp-radius); background: var(--tmp-ink); color: var(--tmp-on-dark-muted); }
@media (min-width: 1024px) { .tmp-trust__inner { grid-template-columns: 2fr 1fr; align-items: center; padding: 32px 40px; } }
.tmp-trust__title { margin: 0 0 8px; color: #fff; }
.tmp-trust p { margin: 0 0 12px; }
.tmp-trust .tmp-trust-links { margin: 0; }
.tmp-trust .tmp-trust-links a { border-color: rgba(255, 255, 255, .25); color: #fff; }
.tmp-trust__faces { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tmp-trust__faces img { width: 56px; height: 56px; border: 2px solid #fff; border-radius: 50%; object-fit: cover; }
