/*
Theme Name: GeneratePress Child
Theme URI: https://generatepress.com
Template: generatepress
Author: Tom Usborne
Author URI: https://generatepress.com/about
Description: GeneratePress child theme
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: generatepress-child
*/

/* ==========================================================================
   Header — Site Tagline
   ========================================================================== */

.site-description {
	font-family: 'Inter', sans-serif;
	font-size: 17px;
	font-weight: 500;
	color: #5A6A7A;
	margin: 0;
}

/* Space between the logo and the tagline */
.site-branding {
	margin-left: 1.25rem;
}

@media (max-width: 767px) {
	.site-description {
		display: none;
	}
}

/* ==========================================================================
   Front Page — Hero
   ========================================================================== */

.fp-hero {
	background-color: #1A1A1A;
	background-image: repeating-linear-gradient(
		45deg,
		transparent,
		transparent 10px,
		rgba(42, 100, 120, 0.09) 10px,
		rgba(42, 100, 120, 0.09) 12px
	);
	padding: 100px 24px;
	text-align: center;
	width: 100%;
	position: relative;
	overflow: hidden;
}

/* Top-right corner accent */
.fp-hero::before {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	width: 380px;
	height: 380px;
	background-color: #2A6478;
	clip-path: polygon(100% 0%, 0% 0%, 100% 100%);
	opacity: 0.65;
	pointer-events: none;
}

/* Bottom-left corner accent */
.fp-hero::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 300px;
	height: 300px;
	background-color: #7D8CA3;
	clip-path: polygon(0% 0%, 0% 100%, 100% 100%);
	opacity: 0.5;
	pointer-events: none;
}

.fp-hero-inner {
	max-width: 780px;
	margin: 0 auto;
	position: relative;
	z-index: 1;
}

.fp-hero-heading {
	font-family: 'Syne', sans-serif;
	font-size: clamp(1.875rem, 4.5vw, 3.25rem);
	font-weight: 700;
	color: #ffffff;
	line-height: 1.2;
	margin: 0 0 1.25rem;
}

.fp-hero-subheading {
	font-family: 'Inter', sans-serif;
	font-size: clamp(1rem, 2vw, 1.25rem);
	color: rgba(255, 255, 255, 0.75);
	margin: 0 0 2.5rem;
	line-height: 1.6;
}

.fp-hero-btn {
	display: inline-block;
	background-color: #D4501A;
	color: #ffffff;
	font-family: 'Inter', sans-serif;
	font-size: 1rem;
	font-weight: 600;
	padding: 14px 36px;
	border-radius: 4px;
	text-decoration: none;
	transition: background-color 0.2s ease;
}

.fp-hero-btn:hover,
.fp-hero-btn:focus {
	background-color: #b84315;
	color: #ffffff;
	text-decoration: none;
}

/* ==========================================================================
   Front Page — Posts Grid
   ========================================================================== */

.fp-posts-section {
	padding: 64px 1rem;
}

.fp-posts-heading {
	font-family: 'Syne', sans-serif;
	font-size: clamp(1.375rem, 2.5vw, 1.875rem);
	font-weight: 700;
	color: #1A1A1A;
	line-height: 1.2;
	margin: 0 0 2rem;
	display: flex;
	align-items: center;
	gap: 1rem;
}

.fp-posts-heading::after {
	content: '';
	flex: 1;
	height: 2px;
	background-color: #D4501A;
}

.fp-posts-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}

.fp-post-card-thumb {
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 9;
}

.fp-post-card-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.fp-post-card {
	background-color: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.fp-post-card-inner {
	padding: 28px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.fp-post-card-title {
	font-family: 'Syne', sans-serif;
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.35;
	margin: 0 0 0.5rem;
}

.fp-post-card-title a {
	color: #1A1A1A;
	text-decoration: none;
}

.fp-post-card-title a:hover {
	color: #D4501A;
}

.fp-post-card-date {
	display: block;
	font-family: 'Inter', sans-serif;
	font-size: 0.8125rem;
	color: #7D8CA3;
	margin-bottom: 0.875rem;
}

.fp-post-card-excerpt {
	font-family: 'Inter', sans-serif;
	font-size: 0.9375rem;
	color: #1A1A1A;
	line-height: 1.65;
	flex: 1;
	margin-bottom: 1.25rem;
}

.fp-post-card-excerpt p {
	margin: 0;
}

.fp-post-card-readmore {
	display: inline-block;
	font-family: 'Inter', sans-serif;
	font-size: 0.875rem;
	font-weight: 600;
	color: #D4501A;
	background-color: transparent;
	border: 2px solid #D4501A;
	border-radius: 4px;
	padding: 0.6rem 1.4rem;
	text-decoration: none;
	align-self: flex-start;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.fp-post-card-readmore:hover,
.fp-post-card-readmore:focus {
	background-color: #D4501A;
	color: #ffffff;
	text-decoration: none;
}

/* ==========================================================================
   Contact Form 7
   ========================================================================== */

.debri-cf7 {
	max-width: 600px;
	margin-top: 2rem;
	font-family: 'Inter', sans-serif;
}

.debri-cf7 p {
	margin-bottom: 1.25rem;
}

.debri-cf7 label {
	display: block;
	font-size: 0.875rem;
	font-weight: 600;
	margin-bottom: 0.375rem;
	color: #1A1A1A;
}

.debri-cf7 input[type="text"],
.debri-cf7 input[type="email"],
.debri-cf7 textarea {
	width: 100%;
	padding: 0.625rem 0.75rem;
	font-family: 'Inter', sans-serif;
	font-size: 0.9375rem;
	border: 1px solid #d1d5db;
	border-radius: 4px;
	box-sizing: border-box;
	color: #1A1A1A;
}

.debri-cf7 input[type="text"]:focus,
.debri-cf7 input[type="email"]:focus,
.debri-cf7 textarea:focus {
	outline: none;
	border-color: #2A6478;
	box-shadow: 0 0 0 3px rgba(42, 100, 120, 0.15);
}

.debri-cf7 textarea {
	resize: vertical;
	min-height: 150px;
}

.debri-cf7 input[type="submit"] {
	background-color: #D4501A;
	color: #ffffff;
	font-family: 'Inter', sans-serif;
	font-size: 0.9375rem;
	font-weight: 600;
	padding: 0.7rem 1.75rem;
	border: none;
	border-radius: 4px;
	cursor: pointer;
}

.debri-cf7 input[type="submit"]:hover,
.debri-cf7 input[type="submit"]:focus {
	background-color: #b84316;
}

.debri-cf7 .wpcf7-not-valid-tip {
	font-size: 0.8125rem;
	color: #c0392b;
	margin-top: 0.25rem;
}

.debri-cf7 .wpcf7-response-output {
	margin-top: 1.25rem;
	padding: 0.75rem 1rem;
	border-radius: 4px;
	font-size: 0.9375rem;
	border: 1px solid #d1d5db;
}

.wpcf7-mail-sent-ok.wpcf7-response-output {
	border-color: #27ae60;
	color: #27ae60;
	background: #f0faf4;
}

.wpcf7-validation-errors.wpcf7-response-output,
.wpcf7-mail-sent-ng.wpcf7-response-output {
	border-color: #c0392b;
	color: #c0392b;
	background: #fdf3f2;
}

/* ==========================================================================
   Front Page — Responsive
   ========================================================================== */

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

@media (max-width: 560px) {
	.fp-hero {
		padding: 72px 20px;
	}

	.fp-posts-grid {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   Site Footer
   ========================================================================== */

.site-footer {
	background-color: #1A1A1A;
	color: #ffffff;
	font-family: 'Inter', sans-serif;
	margin-top: 4rem;
	width: 100vw;
	margin-left: calc(50% - 50vw);
}

.footer-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 60px 40px 48px;
}

.footer-grid {
	display: grid;
	grid-template-columns: 1.2fr 1fr 1.4fr;
	gap: 48px;
}

.footer-grid > * {
	min-width: 0;
}

/* Col 1 — Brand */

.footer-logo {
	display: block;
	margin-bottom: 0.75rem;
}

.footer-logo .custom-logo-link {
	display: inline-block;
}

.footer-logo .custom-logo {
	display: block;
	width: auto !important;
	height: auto !important;
	max-width: 160px;
}

.footer-logo-text {
	display: inline-block;
	font-family: 'Syne', sans-serif;
	font-size: 1.375rem;
	font-weight: 700;
	color: #ffffff;
	text-decoration: none;
}

.footer-logo-text:hover {
	color: #D4501A;
}

.footer-tagline {
	font-size: 0.875rem;
	color: #7D8CA3;
	line-height: 1.6;
	margin: 0;
	max-width: 240px;
}

/* Col 2 — Links */

.footer-col--links {
	display: flex;
	gap: 40px;
}

.footer-nav-group {
	flex: 1;
}

.footer-nav-heading {
	font-family: 'Syne', sans-serif;
	font-size: 1rem;
	font-weight: 500;
	color: #ffffff;
	margin: 0 0 1rem;
}

.footer-nav-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-nav-list li {
	margin-bottom: 0.625rem;
}

.footer-nav-list a {
	font-size: 0.9rem;
	color: #7D8CA3;
	text-decoration: none;
	transition: color 0.2s ease;
}

.footer-nav-list a:hover,
.footer-nav-list a:focus {
	color: #D4501A;
}

/* Col 3 — Newsletter */

.footer-newsletter-heading {
	font-family: 'Syne', sans-serif;
	font-size: 1rem;
	font-weight: 500;
	color: #ffffff;
	margin: 0 0 0.5rem;
}

.footer-newsletter-sub {
	font-size: 0.875rem;
	color: #7D8CA3;
	line-height: 1.6;
	margin: 0 0 1.25rem;
}

.footer-newsletter-fields {
	display: flex;
	flex-direction: column;
	gap: 0.625rem;
}

.footer-newsletter-field {
	display: flex;
	flex-direction: column;
}

.footer-newsletter-field input[type="text"],
.footer-newsletter-field input[type="email"] {
	width: 100%;
	padding: 0.6rem 0.75rem;
	font-family: 'Inter', sans-serif;
	font-size: 0.9rem;
	background-color: #2a2a2a;
	border: 1px solid #3a3a3a;
	border-radius: 4px;
	color: #ffffff;
	box-sizing: border-box;
}

.footer-newsletter-field input[type="text"]::placeholder,
.footer-newsletter-field input[type="email"]::placeholder {
	color: #7D8CA3;
}

.footer-newsletter-field input[type="text"]:focus,
.footer-newsletter-field input[type="email"]:focus {
	outline: none;
	border-color: #D4501A;
}

.footer-newsletter-btn {
	align-self: flex-start;
	background-color: #D4501A;
	color: #ffffff;
	font-family: 'Inter', sans-serif;
	font-size: 0.875rem;
	font-weight: 600;
	padding: 0.65rem 1.5rem;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	margin-top: 0.25rem;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.footer-newsletter-btn:hover,
.footer-newsletter-btn:focus {
	background-color: #b84316;
}

.sib-hidden-input {
	display: none !important;
	visibility: hidden;
}

.sib-form-message-panel {
	font-size: 0.875rem;
	padding: 0.625rem 0.875rem;
	border-radius: 4px;
	margin-bottom: 0.875rem;
}

/* Ensure Brevo's active class can always override the default display:none,
   regardless of stylesheet load order. */
.sib-form-message-panel--active {
	display: block !important;
}

.sib-form-message-panel--error {
	background-color: #3d1414;
	border: 1px solid #7a2020;
	color: #ffadad;
}

.sib-form-message-panel--success {
	background-color: #0d2e1a;
	border: 1px solid #1a5c35;
	color: #6ee7a0;
}

.entry__error--primary {
	font-size: 0.8rem;
	color: #ffadad;
	margin-top: 0.25rem;
}

/* Footer bar */

.footer-bar {
	border-top: 1px solid #2a2a2a;
}

.footer-bar-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px 40px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.footer-copyright {
	font-size: 0.8125rem;
	color: #7D8CA3;
}

.footer-linkedin {
	color: #7D8CA3;
	display: flex;
	align-items: center;
	transition: color 0.2s ease;
}

.footer-linkedin:hover,
.footer-linkedin:focus {
	color: #D4501A;
}

/* ==========================================================================
   Footer — Responsive
   ========================================================================== */

@media (max-width: 960px) {
	.footer-grid {
		grid-template-columns: 1fr 1fr;
	}

	.footer-col--newsletter {
		grid-column: 1 / -1;
	}
}

@media (max-width: 600px) {
	.footer-inner {
		padding: 48px 20px 36px;
	}

	.footer-grid {
		grid-template-columns: 1fr;
		gap: 36px;
	}

	.footer-col--newsletter {
		grid-column: auto;
	}

	.footer-col--links {
		flex-direction: column;
		gap: 28px;
	}

	.footer-bar-inner {
		padding: 16px 20px;
	}
}

/* ==========================================================================
   Single Post — Reading Progress Bar
   ========================================================================== */

#sp-progress-bar {
	position: fixed;
	top: 0;
	left: 0;
	width: 0%;
	height: 3px;
	background-color: #D4501A;
	z-index: 9999;
	transition: width 0.1s linear;
}

/* ==========================================================================
   Single Post — Hero
   ========================================================================== */

.sp-hero {
	position: relative;
	width: 100vw;
	margin-left: calc(50% - 50vw);
	height: 380px;
	background-color: #2A6478;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 2.5rem;
}

.sp-hero-rule {
	width: 32px;
	height: 3px;
	background-color: #D4501A;
	margin: 0 auto 1.25rem;
}

.sp-hero-content {
	position: relative;
	z-index: 1;
	text-align: center;
	padding: 0 24px;
	max-width: 820px;
	width: 100%;
}

.sp-hero-meta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	margin-bottom: 1rem;
	font-family: 'Inter', sans-serif;
	font-size: 1rem;
	font-weight: 500;
}

.sp-hero-cat {
	color: #D4501A;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-size: 0.9375rem;
}

.sp-hero-cat:hover {
	color: #ffffff;
}

.sp-hero-sep,
.sp-hero-reading-time {
	color: #D4501A;
}

.sp-hero-title {
	font-family: 'Syne', sans-serif;
	font-size: clamp(1.75rem, 4vw, 2.75rem);
	font-weight: 700;
	color: #ffffff;
	line-height: 1.2;
	margin: 0;
}

/* ==========================================================================
   Single Post — Meta, Content, Tags, Author, Related
   ========================================================================== */

.sp-post-meta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	font-family: 'Inter', sans-serif;
	font-size: 1rem;
	color: #7D8CA3;
	margin-bottom: 1rem;
	padding: 0 1rem;
}

.sp-meta-sep {
	color: #7D8CA3;
}

.sp-content {
	max-width: 1200px;
	margin: 0 auto 2.5rem;
	padding: 0 1rem;
	font-family: 'Inter', sans-serif;
	font-size: 1rem;
	line-height: 1.75;
	color: #1A1A1A;
}

.sp-content h2,
.sp-content h3,
.sp-content h4 {
	font-family: 'Syne', sans-serif;
	color: #1A1A1A;
	margin-top: 2rem;
	margin-bottom: 0.75rem;
}

.sp-content p {
	margin-bottom: 1.5rem;
}

.sp-content a {
	color: #2A6478;
	text-decoration: underline;
}

.sp-content a:hover {
	color: #D4501A;
}

.sp-content img {
	max-width: 100%;
	height: auto;
	border-radius: 4px;
}

/* Meta pills (skill level + topic tags beneath author line) */

.sp-meta-pills {
	max-width: 1200px;
	margin: 0 auto 2.5rem;
	padding: 0 1rem;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 0.5rem;
}

.sp-pill {
	display: inline-block;
	font-family: 'Inter', sans-serif;
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	border-radius: 4px;
	padding: 0.25rem 0.75rem;
	line-height: 1.5;
	text-decoration: none;
}

.sp-pill--skill {
	background-color: #D4501A;
	color: #ffffff;
	border: none;
}

.sp-pill--topic {
	background-color: #f0f0f0;
	color: #2A6478;
	border: 1px solid #c8d4da;
}

.sp-pill--topic:hover {
	background-color: #e0eaee;
}

/* Tags */

.sp-tags {
	max-width: 1200px;
	margin: 0 auto 3rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.sp-tag {
	display: inline-block;
	font-family: 'Inter', sans-serif;
	font-size: 0.8125rem;
	font-weight: 500;
	color: #7D8CA3;
	background-color: #f4f5f7;
	border: 1px solid #e5e7eb;
	border-radius: 3px;
	padding: 0.25rem 0.625rem;
	text-decoration: none;
	transition: color 0.2s, border-color 0.2s;
}

.sp-tag:hover {
	color: #D4501A;
	border-color: #D4501A;
}

/* Author box */

.sp-author-box {
	width: calc(100% - 2rem);
	max-width: 1200px;
	margin: 0 auto 3.5rem;
	display: flex;
	align-items: flex-start;
	gap: 1.25rem;
	padding: 1.5rem;
	border: none;
	border-radius: 6px 6px 6px 6px;
	background-color: #7D8CA3;
	clip-path: polygon(0 0, 100% 0, 100% calc(100% - 1.5rem), calc(100% - 1.5rem) 100%, 0 100%);
	box-sizing: border-box;
}

.sp-author-avatar {
	flex-shrink: 0;
	width: 100px;
}

.sp-author-img {
	border-radius: 50%;
	display: block;
	width: 100px;
	height: 100px;
	object-fit: cover;
}

.sp-author-info {
	flex: 1;
	min-width: 0;
}

.sp-author-name {
	font-family: 'Syne', sans-serif;
	font-size: 1rem;
	font-weight: 700;
	color: #ffffff;
	margin-bottom: 0.375rem;
}

.sp-author-bio {
	font-family: 'Inter', sans-serif;
	font-size: 0.9rem;
	color: #ffffff;
	line-height: 1.6;
	margin: 0 0 0.875rem;
}

.sp-author-divider {
	border: none;
	border-top: 1px solid #D4501A;
	margin: 0 0 0.75rem;
}

.sp-author-links {
	display: flex;
	align-items: center;
	gap: 1rem;
	flex-wrap: wrap;
}

.sp-author-linkedin {
	display: inline-flex;
	align-items: center;
	line-height: 1;
}

.sp-author-linkedin svg {
	display: block;
}

.sp-author-more {
	display: inline-block;
	font-family: 'Inter', sans-serif;
	font-size: 0.85rem;
	font-weight: 500;
}

/* All links in the author box: white + underline at rest, orange on hover */
.sp-author-box a {
	color: #ffffff;
	text-decoration: underline;
}

.sp-author-box a:hover {
	color: #D4501A;
	text-decoration: underline;
}

/* Share button */

.sp-share {
	max-width: 1200px;
	margin: 0 auto 2rem;
	padding: 0 1rem;
}

.sp-share-linkedin {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background-color: #1A1A1A;
	color: #ffffff;
	font-family: 'Inter', sans-serif;
	font-size: 0.875rem;
	font-weight: 600;
	padding: 0.6rem 1.25rem;
	border-radius: 4px;
	text-decoration: none;
	border: 1px solid #D4501A;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.sp-share-linkedin:hover,
.sp-share-linkedin:focus {
	background-color: #D4501A;
	color: #ffffff;
	text-decoration: none;
}

/* Post navigation */

.sp-post-nav {
	max-width: 1200px;
	margin: 0 auto 3rem;
	padding: 0 1rem;
}

.sp-post-nav-inner {
	display: flex;
	gap: 1rem;
}

.sp-post-nav-link {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	padding: 1rem 1.25rem;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	background-color: #ffffff;
	text-decoration: none;
	color: inherit;
	transition: border-color 0.15s, background-color 0.15s;
}

.sp-post-nav-link:hover {
	border-color: #D4501A;
	background-color: #fdf6f3;
	text-decoration: none;
}

.sp-post-nav-next {
	text-align: right;
	align-items: flex-end;
}

.sp-post-nav-empty {
	border-color: transparent;
	background: none;
	pointer-events: none;
}

.sp-post-nav-label {
	font-family: 'Inter', sans-serif;
	font-size: 0.75rem;
	font-weight: 500;
	color: #7D8CA3;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.sp-post-nav-title {
	font-family: 'Syne', sans-serif;
	font-size: 0.9375rem;
	font-weight: 700;
	color: #1A1A1A;
	line-height: 1.35;
}

.sp-post-nav-link:hover .sp-post-nav-title {
	color: #D4501A;
}

/* Related posts */

.sp-related {
	max-width: 1200px;
	margin: 0 auto 4rem;
	padding: 0 1rem;
}

.sp-related-heading {
	font-family: 'Syne', sans-serif;
	font-size: 1.25rem;
	font-weight: 700;
	color: #1A1A1A;
	margin-bottom: 1.5rem;
}

.sp-related-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.sp-related-card {
	background-color: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.sp-related-thumb {
	display: block;
	overflow: hidden;
}

.sp-related-image {
	display: block;
	width: 100%;
	height: 160px;
	object-fit: cover;
}

.sp-related-body {
	padding: 1rem;
}

.sp-related-title {
	font-family: 'Syne', sans-serif;
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.35;
	margin: 0 0 0.5rem;
}

.sp-related-title a {
	color: #1A1A1A;
	text-decoration: none;
}

.sp-related-title a:hover {
	color: #D4501A;
}

.sp-related-date {
	display: block;
	font-family: 'Inter', sans-serif;
	font-size: 0.8125rem;
	color: #7D8CA3;
}

/* ==========================================================================
   Single Post — Responsive
   ========================================================================== */

@media (max-width: 900px) {
	.sp-related-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.sp-author-box {
		margin-left: 1rem;
		margin-right: 1rem;
		width: auto;
	}
}

@media (max-width: 600px) {
	.sp-hero {
		height: 280px;
	}

	.sp-post-nav-inner {
		flex-direction: column;
	}

	.sp-post-nav-next {
		text-align: left;
		align-items: flex-start;
	}

	.sp-related-grid {
		grid-template-columns: 1fr;
	}

	.sp-author-box {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
}

/* ==========================================================================
   Archive — Page Header
   ========================================================================== */

.ac-hero {
	position: relative;
	width: 100vw;
	margin-left: calc(50% - 50vw);
	min-height: 210px;
	background-color: #1A1A1A;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 0;
}

.ac-hero-content {
	width: 100%;
	max-width: 820px;
	padding: 2.5rem 24px;
	text-align: center;
}

.ac-hero-title {
	font-family: 'Syne', sans-serif;
	font-size: clamp(1.5rem, 3vw, 2.25rem);
	font-weight: 700;
	color: #ffffff;
	line-height: 1.2;
	margin: 0 0 0.5rem;
}

.ac-hero-desc,
.ac-hero-desc p {
	font-family: 'Inter', sans-serif;
	font-size: 0.9375rem;
	color: #ffffff;
	line-height: 1.65;
	margin: 0;
}

/* Remove GP's top spacing on the main content area for archive pages so the
   featured card sits flush directly below the hero. */
.archive .site-main,
.home .site-main {
	padding-top: 0;
	margin-top: 0;
}

/* ==========================================================================
   Archive — Featured Post Horizontal Card
   ========================================================================== */

.ac-featured-wrap {
	width: 100vw;
	margin-left: calc(50% - 50vw);
	background-color: #F5F5F5;
	margin-bottom: 0;
}

.ac-featured-card {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1rem;
	display: flex;
	align-items: center;
	min-height: 400px;
	overflow: hidden;
}

.ac-featured-body {
	flex: 1 1 50%;
	padding: 48px 48px 48px 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
}

.ac-featured-meta {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 1rem;
	font-family: 'Inter', sans-serif;
	font-size: 0.8125rem;
	font-weight: 500;
}

.ac-featured-cat {
	color: #D4501A;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.ac-featured-cat:hover {
	color: #b84316;
}

.ac-featured-sep,
.ac-featured-reading-time {
	color: #D4501A;
}

.ac-featured-title {
	font-family: 'Syne', sans-serif;
	font-size: clamp(1.375rem, 2.5vw, 2rem);
	font-weight: 700;
	line-height: 1.25;
	margin: 0 0 1rem;
}

.ac-featured-title a {
	color: #1A1A1A;
	text-decoration: none;
}

.ac-featured-title a:hover {
	color: #D4501A;
}

.ac-featured-excerpt {
	font-family: 'Inter', sans-serif;
	font-size: 0.9375rem;
	color: #4a4a4a;
	line-height: 1.65;
	margin: 0 0 0.75rem;
}

.ac-featured-date {
	display: block;
	font-family: 'Inter', sans-serif;
	font-size: 0.8125rem;
	color: #7D8CA3;
	margin-bottom: 1.5rem;
}

.ac-featured-btn {
	display: inline-block;
	align-self: flex-start;
	font-family: 'Inter', sans-serif;
	font-size: 0.875rem;
	font-weight: 600;
	color: #ffffff;
	background-color: #D4501A;
	padding: 0.6rem 1.4rem;
	border-radius: 4px;
	text-decoration: none;
	transition: background-color 0.2s ease;
}

.ac-featured-btn:hover,
.ac-featured-btn:focus {
	background-color: #b84316;
}

.ac-featured-card .ac-featured-image-wrap {
	flex: 0 0 50%;
	max-width: 50%;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	padding: 20px 0 20px 20px;
}

.ac-featured-card .ac-featured-image-wrap .ac-featured-image {
	display: block;
	width: 100%;
	height: 300px;
	object-fit: cover;
	border-radius: 6px 0 0 6px;
}

/* ==========================================================================
   Archive — Header, Grid, Pagination
   ========================================================================== */



.ac-grid-section {
	padding: 3rem 1rem 0;
}

/* Category label on grid cards */

.fp-post-card-cat {
	display: inline-block;
	font-family: 'Inter', sans-serif;
	font-size: 0.75rem;
	font-weight: 600;
	color: #D4501A;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: 0.5rem;
}

.fp-post-card-cat:hover {
	color: #b84316;
}

/* Pagination */

.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: 'Inter', sans-serif;
	font-size: 0.875rem;
	font-weight: 500;
	padding: 0.4rem 0.75rem;
	border: 1px solid #e5e7eb;
	border-radius: 4px;
	color: #1A1A1A;
	text-decoration: none;
	margin: 0 2px;
	transition: background-color 0.15s, color 0.15s;
}

.page-numbers.current,
.page-numbers:hover,
.page-numbers:focus {
	background-color: #D4501A;
	border-color: #D4501A;
	color: #ffffff;
}

.page-numbers.dots {
	border-color: transparent;
	background: none;
}

nav.navigation.pagination {
	margin: 2.5rem 0 1rem;
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}

.ac-no-posts {
	font-family: 'Inter', sans-serif;
	color: #7D8CA3;
	padding: 3rem 0;
}

/* ==========================================================================
   Archive — Responsive
   ========================================================================== */

@media (max-width: 780px) {
	.ac-featured-card {
		flex-direction: column;
		padding: 0;
	}

	.ac-featured-card .ac-featured-image-wrap {
		order: -1;
		flex: 0 0 auto;
		width: 100%;
		max-width: 100%;
		padding: 0;
		justify-content: center;
	}

	.ac-featured-card .ac-featured-image-wrap .ac-featured-image {
		width: 100%;
		height: 220px;
		border-radius: 0;
	}

	.ac-featured-body {
		padding: 32px 20px;
	}
}

/* ==========================================================================
   Page — Hero & Content
   ========================================================================== */

.pg-hero {
	position: relative;
	width: 100vw;
	margin-left: calc(50% - 50vw);
	background-color: #1A1A1A;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 3.5rem 1.5rem;
	margin-bottom: 3rem;
}

.pg-hero-content {
	text-align: center;
	max-width: 820px;
	width: 100%;
}

.pg-hero-rule {
	width: 32px;
	height: 3px;
	background-color: #D4501A;
	margin: 0 auto 1.25rem;
}

.pg-hero-title {
	font-family: 'Syne', sans-serif;
	font-size: clamp(1.75rem, 4vw, 2.75rem);
	font-weight: 700;
	color: #ffffff;
	line-height: 1.2;
	margin: 0;
}

.pg-content {
	max-width: 1200px;
	margin: 0 auto 4rem;
	padding: 0 1rem;
	font-family: 'Inter', sans-serif;
	font-size: 1rem;
	line-height: 1.75;
	color: #1A1A1A;
}

.pg-content h2,
.pg-content h3,
.pg-content h4 {
	font-family: 'Syne', sans-serif;
	color: #1A1A1A;
	margin-top: 2rem;
	margin-bottom: 0.75rem;
}

.pg-content p {
	margin-bottom: 1.5rem;
}

.pg-content a {
	color: #D4501A;
	text-decoration: underline;
}

.pg-content a:hover {
	color: #2A6478;
}

.pg-content img {
	max-width: 100%;
	height: auto;
}

@media (max-width: 600px) {
	.pg-hero {
		padding: 2.5rem 1.25rem;
	}
}

/* ==========================================================================
   Page — Contact two-column layout
   ========================================================================== */

.pg-contact-grid {
	max-width: 1200px;
	margin: 0 auto 4rem;
	padding: 0 1rem;
	display: grid;
	grid-template-columns: 1fr 1.75fr;
	gap: 4rem;
	align-items: start;
}

/* Intro column inherits .pg-content typography */
.pg-contact-intro {
	margin: 0;
}

/* Form column */
.pg-contact-form {
	background-color: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	padding: 2rem;
}

/* CF7 field resets — consistent with site fonts */
.pg-contact-form .wpcf7-form label {
	display: block;
	font-family: 'Inter', sans-serif;
	font-size: 0.875rem;
	font-weight: 500;
	color: #1A1A1A;
	margin-bottom: 0.375rem;
}

.pg-contact-form .wpcf7-form input[type="text"],
.pg-contact-form .wpcf7-form input[type="email"],
.pg-contact-form .wpcf7-form input[type="tel"],
.pg-contact-form .wpcf7-form textarea {
	width: 100%;
	font-family: 'Inter', sans-serif;
	font-size: 0.9375rem;
	color: #1A1A1A;
	background-color: #ffffff;
	border: 1px solid #d1d5db;
	border-radius: 4px;
	padding: 0.625rem 0.875rem;
	box-sizing: border-box;
	transition: border-color 0.15s;
}

.pg-contact-form .wpcf7-form input[type="text"]:focus,
.pg-contact-form .wpcf7-form input[type="email"]:focus,
.pg-contact-form .wpcf7-form input[type="tel"]:focus,
.pg-contact-form .wpcf7-form textarea:focus {
	border-color: #2A6478;
	outline: none;
}

.pg-contact-form .wpcf7-form textarea {
	min-height: 160px;
	resize: vertical;
}

.pg-contact-form .wpcf7-form .wpcf7-submit {
	display: inline-block;
	font-family: 'Inter', sans-serif;
	font-size: 0.9375rem;
	font-weight: 600;
	color: #ffffff;
	background-color: #D4501A;
	border: none;
	border-radius: 4px;
	padding: 0.75rem 2rem;
	cursor: pointer;
	transition: background-color 0.15s;
}

.pg-contact-form .wpcf7-form .wpcf7-submit:hover {
	background-color: #b84416;
}

/* Stack on mobile */
@media (max-width: 700px) {
	.pg-contact-grid {
		grid-template-columns: 1fr;
		gap: 2rem;
	}
}

/* ==========================================================================
   Author archive
   ========================================================================== */

/* ==========================================================================
   Author Archive — Hero
   ========================================================================== */

.au-hero {
	background-color: #7D8CA3;
	width: 100vw;
	margin-left: calc(50% - 50vw);
	padding: 60px 8px;
	text-align: center;
	margin-bottom: 0;
}

.au-hero-inner {
	max-width: 960px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
}

.au-hero-avatar {
	line-height: 0;
}

.au-hero-img {
	width: 100px !important;
	height: 100px !important;
	border-radius: 50% !important;
	object-fit: cover;
	border: 3px solid rgba(255, 255, 255, 0.55);
	display: block;
}

.au-hero-name {
	font-family: 'Syne', sans-serif;
	font-size: clamp(1.5rem, 3.5vw, 2.25rem);
	font-weight: 700;
	color: #ffffff;
	line-height: 1.2;
	margin: 0;
}

.au-hero-bio {
	font-family: 'Inter', sans-serif;
	font-size: 0.9375rem;
	color: rgba(255, 255, 255, 0.9);
	line-height: 1.65;
	margin: 0;
	max-width: 680px;
}

.au-hero-linkedin {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 6px;
	background-color: rgba(255, 255, 255, 0.2);
	color: #ffffff;
	transition: background-color 0.2s ease;
	text-decoration: none;
}

.au-hero-linkedin:hover,
.au-hero-linkedin:focus {
	background-color: rgba(255, 255, 255, 0.35);
	color: #ffffff;
}

.au-hero-linkedin svg {
	display: block;
}

/* ==========================================================================
   Author Archive — Post section
   ========================================================================== */

/* Override .fp-posts-section's 64px padding for the author archive */
.au-posts-section {
	padding: 2rem 1rem 3rem;
}

.au-posts-section .fp-posts-heading {
	margin-bottom: 1.25rem;
}

.au-no-posts {
	padding: 0 1rem;
	font-family: 'Inter', sans-serif;
	color: #7D8CA3;
}

/* ==========================================================================
   Brevo (Sendinblue) Newsletter Form — Dark Footer Overrides
   Override inline styles injected by the Brevo embed.
   ========================================================================== */

/* Form container: strip the white background and light border */
#sib-container,
.sib-form-container,
.sib-container--large,
.sib-container--vertical {
	background-color: transparent !important;
	border-color: transparent !important;
	border-width: 0 !important;
	max-width: 100% !important;
}

/* Input fields: dark background, light text, subtle border */
.sib-form .input,
.sib-form input[type="text"],
.sib-form input[type="email"] {
	background-color: #2a2a2a !important;
	color: #ffffff !important;
	border: 1px solid #3a3a3a !important;
	border-radius: 4px !important;
	font-family: 'Inter', sans-serif !important;
	font-size: 0.9rem !important;
	padding: 0.6rem 0.75rem !important;
	width: 100% !important;
	box-sizing: border-box !important;
}

.sib-form .input::placeholder,
.sib-form input[type="text"]::placeholder,
.sib-form input[type="email"]::placeholder {
	color: #7D8CA3 !important;
}

.sib-form .input:focus,
.sib-form input[type="text"]:focus,
.sib-form input[type="email"]:focus {
	outline: none !important;
	border-color: #D4501A !important;
}

/* Labels: light colour for readability on dark background */
.sib-form .entry__label,
.sib-form label {
	color: #ffffff !important;
	font-family: 'Inter', sans-serif !important;
	font-size: 13px !important;
}

/* Subscribe button: brand orange */
.sib-form .sib-form-block__button,
.sib-form button[type="submit"] {
	background-color: #D4501A !important;
	color: #ffffff !important;
	border: none !important;
	border-radius: 4px !important;
	font-family: 'Inter', sans-serif !important;
	font-size: 0.875rem !important;
	font-weight: 600 !important;
	padding: 0.65rem 1.5rem !important;
	cursor: pointer !important;
}

.sib-form .sib-form-block__button:hover,
.sib-form .sib-form-block__button:focus,
.sib-form button[type="submit"]:hover,
.sib-form button[type="submit"]:focus {
	background-color: #b84316 !important;
}

/* Compact spacing — reduce Brevo's default outer/inner padding */
.sib-form {
	padding: 0 !important;
	margin: 0 !important;
}

.sib-form-container {
	padding: 0 !important;
}

#sib-container {
	padding: 0 !important;
}

/* Tighten the gap between each field block */
.sib-form .sib-form-block,
.sib-form [style*="padding: 8px 0"] {
	padding: 4px 0 !important;
}

/* Remove extra margin below labels */
.sib-form .entry__label {
	margin-bottom: 4px !important;
}

/* Close up the gap between the field and its error message */
.sib-form .form__entry {
	margin-bottom: 0 !important;
}

/* Remove top margin on the button block */
.sib-form .sib-form-block:last-of-type {
	padding-top: 6px !important;
}

/* ==========================================================================
   404 — Hero
   ========================================================================== */

.e404-hero {
	width: 100vw;
	margin-left: calc(50% - 50vw);
	background-color: #1A1A1A;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 80px 24px;
	text-align: center;
	margin-bottom: 0;
}

.e404-hero-inner {
	max-width: 680px;
	width: 100%;
}

.e404-number {
	font-family: 'Syne', sans-serif;
	font-size: clamp(6rem, 20vw, 10rem);
	font-weight: 700;
	color: #D4501A;
	line-height: 1;
	margin: 0 0 0.25rem;
}

.e404-heading {
	font-family: 'Syne', sans-serif;
	font-size: clamp(1.375rem, 3vw, 2rem);
	font-weight: 700;
	color: #ffffff;
	line-height: 1.25;
	margin: 0 0 1rem;
}

.e404-subtext {
	font-family: 'Inter', sans-serif;
	font-size: 1rem;
	color: rgba(255, 255, 255, 0.7);
	line-height: 1.65;
	margin: 0 0 2rem;
}

.e404-btn {
	display: inline-block;
	background-color: #D4501A;
	color: #ffffff;
	font-family: 'Inter', sans-serif;
	font-size: 1rem;
	font-weight: 600;
	padding: 14px 36px;
	border-radius: 4px;
	text-decoration: none;
	transition: background-color 0.2s ease;
}

.e404-btn:hover,
.e404-btn:focus {
	background-color: #b84315;
	color: #ffffff;
	text-decoration: none;
}

/* Tighten the top gap between hero and cards section */
.e404-posts-section {
	padding-top: 48px;
}

@media (max-width: 560px) {
	.e404-hero {
		padding: 56px 20px;
	}
}

/* ==========================================================================
   Header — Mobile Layout
   ========================================================================== */

/* Root cause: GP sets .site-branding-container { flex-shrink:0 } and the logo
   is 320px wide. On a 375px screen with 30px side padding, only 315px is
   available — the branding overflows the row, collapsing free space to zero,
   so margin-left:auto on the hamburger has nothing to push against and it
   wraps to the next line.
   Fix: allow the branding container (and its image) to shrink on mobile.
   We deliberately do NOT touch flex-wrap or justify-content on .inside-header
   because GP uses flex-wrap:wrap to place #site-navigation on its own row
   below the header when the menu is open. */
@media (max-width: 768px) {
	/* Cap the branding container BEFORE flex line-collection so the hamburger
	   fits on the same row. flex-shrink fires after lines are assigned, so
	   the container's base size must already leave room for the ~56px toggle.
	   80px gives comfortable clearance. margin-left:auto on the toggle wrapper
	   then pushes it to the right edge within the remaining space. */
	.has-inline-mobile-toggle .site-branding-container {
		max-width: calc(100% - 80px);
		min-width: 0;
	}

	/* Scale the logo image down to fit the constrained container.
	   max-width overrides GP's width:320px (our selector is 0,3,0 vs GP's 0,2,0). */
	.has-inline-mobile-toggle .site-branding-container .header-image {
		max-width: 100%;
		height: auto;
	}
}

