/* whatjendoes.com — homepage styles (mirrors wireframe, with mobile breakpoints) */

.wjd-home * {
	box-sizing: border-box;
}

.wjd-home body,
body.wjd-home {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
	font-size: 17px;
	color: #1a1a1a;
	background: #fff;
	margin: 0;
}

.wjd-wrap {
	width: 100%;
	margin: 0 auto;
	padding: 48px clamp(24px, 4vw, 80px);
}

/*
 * Sticky is applied to .wjd-header-wrap (the template-part's outer
 * wrapper), not .wjd-header itself — .wjd-header's immediate parent
 * (that wrapper) is exactly as tall as .wjd-header, leaving no room
 * for the sticky element to "float" within it. The wrapper's own
 * parent (.wjd-wrap) spans the full page, so stickiness works there.
 */
.wjd-header-wrap {
	position: sticky;
	top: 0;
	z-index: 100;
	background: #fff;
}

.wjd-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 14px 0;
	border-bottom: 1px solid #ddd;
	margin-bottom: 32px;
	flex-wrap: wrap;
	gap: 10px;
}

.wjd-wordmark {
	font-size: 40px;
	font-weight: 700;
	letter-spacing: -0.01em;
}
.wjd-wordmark a {
	color: inherit;
	text-decoration: none;
}

.wjd-tagline {
	font-size: 13px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #888;
	margin-top: 4px;
}

.wjd-nav {
	display: flex;
	align-items: center;
	gap: 32px;
	font-size: 18px;
	color: #555;
}
.wjd-nav p {
	margin: 0;
}
.wjd-nav a {
	color: inherit;
	text-decoration: none;
}
.wjd-nav a:hover {
	text-decoration: underline;
}

/* Collapsed search pill that expands to a real WP search on click */
.wjd-search-wrap {
	position: relative;
}
.wjd-search-toggle {
	display: flex;
	align-items: center;
	gap: 6px;
	background: #f0f0f0;
	border: none;
	border-radius: 99px;
	padding: 8px 16px;
	font-size: 14px;
	color: #999;
	cursor: pointer;
	font-family: inherit;
}
.wjd-search-toggle svg {
	width: 14px;
	height: 14px;
	flex-shrink: 0;
}
.wjd-search-wrap.is-open .wjd-search-toggle {
	display: none;
}
.wjd-search-wrap:not(.is-open) .wjd-search.wp-block-search {
	display: none;
}

/* Core Search block, styled to match the pill look */
.wjd-search.wp-block-search {
	margin: 0;
}
.wjd-search .wp-block-search__label {
	display: none;
}
.wjd-search .wp-block-search__inside-wrapper {
	border: none;
	background: #f2f2f2;
	border-radius: 99px;
	padding: 4px 4px 4px 18px;
}
.wjd-search .wp-block-search__input {
	border: none;
	background: none;
	outline: none;
	font-size: 15px;
	width: 140px;
	font-family: inherit;
	color: #1a1a1a;
}
.wjd-search .wp-block-search__button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border: none;
	border-radius: 50%;
	background: #1a1a1a;
	color: #fff;
	padding: 0;
	min-width: 0;
}
.wjd-search .wp-block-search__button svg {
	fill: #fff;
}

.wjd-hero {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	margin-bottom: 64px;
}

.wjd-hero-photo-link,
.wjd-hero-title-link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.wjd-hero-photo {
	background: #f0f0f0;
	border-radius: 12px;
	height: 420px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}
.wjd-hero-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.wjd-hero-copy {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 18px;
}

.wjd-pill {
	display: inline-block;
	width: fit-content;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 5px 14px;
	border-radius: 99px;
	text-decoration: none;
	margin-bottom: 10px;
}

.wjd-hero-title {
	font-size: 44px;
	font-weight: 700;
	line-height: 1.2;
}

.wjd-hero-excerpt {
	font-size: 19px;
	color: #666;
	line-height: 1.6;
}

.wjd-section-label {
	font-size: 14px;
	color: #999;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-bottom: 24px;
}

.wjd-recent-posts {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 40px;
	margin-bottom: 64px;
}

.wjd-recent-card a {
	display: block;
	color: inherit;
	text-decoration: none;
}

.wjd-post-thumb {
	background: #f0f0f0;
	border-radius: 8px;
	height: 260px;
	margin-bottom: 16px;
	overflow: hidden;
}
.wjd-post-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.wjd-post-title {
	font-size: 19px;
	margin-top: 12px;
}

.wjd-affiliate-strip {
	background: #f7f7f7;
	border-radius: 12px;
	padding: 40px;
	margin-bottom: 64px;
}

.wjd-affiliate-disclosure {
	font-size: 14px;
	color: #888;
	margin: -8px 0 24px;
}

.wjd-affiliate-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 28px;
}

.wjd-affiliate-item {
	display: block;
	text-decoration: none;
	color: inherit;
}

.wjd-affiliate-img {
	background: #e8e8e8;
	border-radius: 8px;
	height: 140px;
	width: 100%;
	object-fit: cover;
	margin-bottom: 12px;
}

.wjd-affiliate-name {
	font-size: 15px;
	color: #666;
}

.wjd-elsewhere-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
	margin-bottom: 64px;
}

.wjd-elsewhere-grid > .wp-block-column > .wp-block-group {
	background: #f7f7f7;
	border-radius: 12px;
	padding: 24px;
	height: 100%;
}

.wjd-elsewhere-grid .has-medium-font-size {
	font-size: 17px;
	font-weight: 600;
	margin: 0 0 6px;
}

.wjd-elsewhere-grid .has-medium-font-size a {
	color: #1a1a1a;
	text-decoration: none;
}

.wjd-elsewhere-grid .has-medium-font-size a:hover {
	text-decoration: underline;
}

.wjd-elsewhere-grid .has-small-font-size {
	font-size: 14px;
	color: #888;
	margin: 0;
}

.wjd-footer {
	border-top: 1px solid #ddd;
	margin-top: 16px;
	padding-top: 56px;
}

.wjd-footer-columns {
	margin-bottom: 48px;
}

.wjd-footer-col-label {
	font-size: 13px;
	color: #999;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-bottom: 20px;
}

.wjd-about-blurb {
	font-size: 15px;
	color: #666;
	line-height: 1.6;
	margin-bottom: 24px;
	max-width: 420px;
}

.wjd-subscribe .wp-block-hostinger-reach-subscription {
	margin: 0;
}

.wjd-footer-links {
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.wjd-footer-links p {
	margin: 0;
}
.wjd-footer-links a {
	font-size: 15px;
	color: #555;
	text-decoration: none;
}
.wjd-footer-links a:hover {
	text-decoration: underline;
}

.wjd-footer-bottom {
	border-top: 1px solid #eee;
	padding-top: 24px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 16px;
}

.wjd-copyright {
	font-size: 13px;
	color: #999;
}
.wjd-copyright p {
	margin: 0;
}

@media (max-width: 900px) {
	.wjd-recent-posts {
		grid-template-columns: repeat(2, 1fr);
	}
	.wjd-elsewhere-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 640px) {
	.wjd-wrap {
		padding: 32px 20px;
	}
	.wjd-hero {
		grid-template-columns: 1fr;
	}
	.wjd-recent-posts {
		grid-template-columns: 1fr;
	}
	.wjd-affiliate-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.wjd-elsewhere-grid {
		grid-template-columns: 1fr;
	}
	.wjd-header {
		flex-direction: column;
		align-items: flex-start;
	}
	.wjd-footer-columns {
		flex-direction: column;
	}
	.wjd-footer-columns .wp-block-column {
		flex-basis: 100% !important;
	}
	.wjd-footer-bottom {
		flex-direction: column;
		align-items: flex-start;
	}
	.wjd-nav {
		width: 100%;
		gap: 16px;
	}
	.wjd-search {
		width: 100%;
	}
	.wjd-search .wp-block-search__inside-wrapper,
	.wjd-search .wp-block-search__input {
		width: 100%;
	}
}
