/*
 * Editorial presentation layer for the shared TeeOff header and footer.
 * Keep this file independent of the CMS markup so platform header updates
 * continue to flow through without needing theme changes.
 */

:root {
	--gn-blog-navy: #222222;
	--gn-blog-green: #f06530;
	--gn-blog-ink: #222222;
	--gn-blog-muted: #696969;
	--gn-blog-border: #dddddd;
	--gn-blog-surface: #ffffff;
	--gn-blog-canvas: #f5f5f5;
	--gn-blog-radius: 14px;
}

body {
	color: var(--gn-blog-ink);
	background: var(--gn-blog-canvas);
	font-family: var(--font-body, Arial, sans-serif);
	line-height: 1.6;
}

body #blog {
	max-width: 1280px;
	padding-bottom: 64px;
}

.blog-masthead {
	position: relative;
	margin-bottom: 32px;
	padding: 24px 0 !important;
	background: var(--gn-blog-surface) !important;
	border-top: 1px solid var(--gn-blog-border);
	border-bottom: 1px solid var(--gn-blog-border);
}

.blog-masthead h1 {
	margin: 0;
	color: var(--gn-blog-navy);
	font-size: clamp(1.6rem, 2.7vw, 2.25rem);
	font-weight: 800;
	letter-spacing: -.035em;
	line-height: 1.1;
}

.blog-masthead h1 a {
	color: inherit;
	text-decoration: none;
}

.blog-masthead h1::after {
	display: block;
	width: 36px;
	height: 4px;
	margin: 12px auto 0;
	background: var(--gn-blog-green);
	border-radius: 999px;
	content: "";
}

.blog-masthead .icon-Chevron-Left {
	font-size: 1.25rem;
}

.blog-home,
.blog-single {
	align-items: start;
}

@media (min-width: 1024px) {
	.blog-single {
		display: grid;
		grid-template-columns: repeat(12, minmax(0, 1fr));
	}

	.blog-single > section {
		grid-column: 1 / span 8;
	}

	.blog-single > .blog-sidebar {
		grid-column: 9 / span 4;
		grid-row: 1;
	}
}

.blog-feed {
	min-width: 0;
}

.blog-featured,
.blog-post-card,
.blog-article {
	background: var(--gn-blog-surface);
	border-color: var(--gn-blog-border) !important;
	border-radius: var(--gn-blog-radius) !important;
	box-shadow: 0 2px 8px rgb(20 36 51 / 6%) !important;
}

.blog-featured {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr);
	grid-template-rows: auto auto 1fr auto;
	column-gap: 28px;
	padding: 0 28px 28px;
}

.blog-featured > h2 {
	grid-column: 1 / -1;
	margin: 0 -28px 24px;
	padding: 12px 28px;
	color: #fff;
	background: var(--gn-blog-navy);
	font-size: .72rem;
	font-weight: 800;
	letter-spacing: .12em;
	line-height: 1.25;
	text-transform: uppercase;
}

.blog-featured > img {
	grid-row: 2 / span 4;
	width: 100%;
	height: 100%;
	min-height: 290px;
	border-radius: 9px;
	object-fit: cover;
}

.blog-featured h3,
.blog-post-card h3 {
	margin: 0 0 16px 0;
	font-family: var(--font-display, Arial, sans-serif);
	font-weight: 750;
	letter-spacing: -.025em;
	line-height: 1.22;
}

.blog-featured h3 {
	padding: 0 !important;
	font-size: clamp(1.45rem, 2.5vw, 2.15rem);
}

.blog-featured h3 a,
.blog-post-card h3 a,
.blog-article h3 a {
	color: var(--gn-blog-navy);
	text-decoration: none;
}

.blog-featured h3 a:hover,
.blog-post-card h3 a:hover,
.blog-article h3 a:hover {
	color: var(--gn-blog-green);
}

.blog-featured time,
.blog-post-card time,
.blog-article time {
	display: block;
	margin-top: 12px;
	color: var(--gn-blog-muted);
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .06em;
	line-height: 1.4;
	text-transform: uppercase;
}

.blog-featured .article-preview,
.blog-post-card .article-preview {
	margin: 16px 0 20px;
	padding: 0 !important;
	color: var(--gn-blog-muted);
	font-size: .96rem;
}

.blog-featured .viewmore,
.blog-post-card .viewmore,
.older-posts {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	width: fit-content;
	min-height: 42px;
	margin: 0 !important;
	padding: 0 16px;
	color: #fff !important;
	background: var(--gn-blog-green);
	border-radius: 6px;
	font-size: .8rem;
	font-weight: 800;
	letter-spacing: .04em;
	line-height: 1;
	text-decoration: none !important;
	text-transform: uppercase;
	transition: background-color .18s ease, transform .18s ease;
}

.blog-featured .viewmore:hover,
.blog-post-card .viewmore:hover,
.older-posts:hover {
	background: var(--gn-blog-navy);
	transform: translateY(-1px);
}

.blog-post-grid {
	gap: 28px;
}

.blog-post-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	transition: box-shadow .2s ease, transform .2s ease;
}

.blog-post-card:hover {
	box-shadow: 0 12px 24px rgb(20 36 51 / 12%) !important;
	transform: translateY(-3px);
}

.blog-post-card .homepage-thumbnail {
	width: 100%;
	height: 220px;
	background-color: #e4e9eb;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
}

.blog-post-card h3 {
	padding: 0 20px !important;
	font-size: 1.28rem;
}
.blog-single > h3 {
	margin-bottom: 16px;
	font-weight: 600;
}
.blog-post-card time {
	padding: 0 20px;
}

.blog-post-card .article-preview {
	padding: 0 20px !important;
}

.blog-post-card .viewmore {
	margin: auto 20px 20px !important;
}

.older-posts {
	justify-content: center;
	margin-left: auto !important;
}

.blog-sidebar {
	min-width: 0;
}

.blog-sidebar .sidebar {
	margin: 0 0 24px;
	padding: 24px;
	background: var(--gn-blog-surface);
	border: 1px solid var(--gn-blog-border);
	border-radius: var(--gn-blog-radius);
	box-shadow: 0 2px 8px rgb(20 36 51 / 5%);
}

.blog-sidebar .sidebar h2 {
	margin: 0 0 16px;
	padding-bottom: 12px;
	color: var(--gn-blog-navy);
	border-bottom: 3px solid var(--gn-blog-green);
	font-family: var(--font-display, Arial, sans-serif);
	font-size: 1rem;
	font-weight: 800;
	letter-spacing: .03em;
	line-height: 1.2;
	text-transform: uppercase;
}

.blog-sidebar .sidebar a {
	color: var(--gn-blog-navy);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.blog-sidebar .sidebar a:hover {
	color: var(--gn-blog-green);
}

.blog-article {
	padding: clamp(20px, 4vw, 44px) !important;
}

.blog-article .aricle-wrapper {
	min-height: 0;
}

.blog-article .aricle-wrapper > img,
.blog-article .aricle-wrapper > figure img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 540px;
	margin: 0 0 28px;
	border-radius: 9px;
	object-fit: cover;
}

.blog-article h3 {
	margin: 0;
	color: var(--gn-blog-navy);
	font-family: var(--font-display, Arial, sans-serif);
	font-size: clamp(1.75rem, 4vw, 2.65rem);
	font-weight: 800;
	line-height: 1.12;
}

.blog-article .aricle-wrapper > p,
.blog-article .aricle-wrapper li {
	font-size: 1.05rem;
}

.blog-article .aricle-wrapper a {
	color: var(--gn-blog-navy);
	font-weight: 700;
	text-decoration-color: var(--gn-blog-green);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

.blog-article .aricle-wrapper a:hover {
	color: var(--gn-blog-green);
}

.blog-home img,
.blog-single img {
	max-width: 100%;
}
.wp-block-paragraph {
	margin-bottom: 16px;
}

#blog a:focus-visible {
	outline: 3px solid var(--gn-blog-green);
	outline-offset: 3px;
}

@media (max-width: 767px) {
	.blog-masthead {
		margin-bottom: 20px;
		padding: 18px 0 !important;
	}

	.blog-featured {
		display: block;
		padding: 0 20px 20px;
	}

	.blog-featured > h2 {
		margin: 0 -20px 20px;
		padding: 12px 20px;
	}

	.blog-featured > img {
		height: 220px;
		min-height: 0;
		margin-bottom: 20px;
	}

	.blog-featured h3 {
		font-size: 1.55rem;
	}

	.blog-post-card .homepage-thumbnail {
		height: 200px;
	}

	.blog-sidebar .sidebar {
		padding: 20px;
	}
	
}
