/*
 * GigHQ blog: /blogs/ index (page-blogs.php) and single posts (single-blogs.php).
 * Brand: Lato, Off-White #FBFCFF background, white cards, Royal Blue #336BE5 headings and accents. Light only.
 * Every rule is scoped to .gh-blog or body.gh-blog-view so nothing leaks to other pages.
 * !important appears only where the global child style.css forces fonts and line-height.
 */

/* Theme wrapper resets, blog views only */
body.gh-blog-view { background: #FBFCFF; }
body.gh-blog-view #content,
body.gh-blog-view #content.site-content,
body.gh-blog-view #primary,
body.gh-blog-view #main.site-main {
	background: #FBFCFF !important;
	padding: 0 !important;
	margin: 0 !important;
	max-width: none !important;
	width: 100% !important;
}
body.gh-blog-view .site-main > * { margin-top: 0 !important; margin-bottom: 0 !important; }
body.gh-blog-view .header_wrapper#header_fixed { margin-bottom: 0 !important; }

.gh-blog {
	--gh-royal: #336BE5;
	--gh-navy: #2B54AB;
	--gh-sky: #7FA2EF;
	--gh-wash: #D8E1F4;
	--gh-tint: #F4F7FE;
	--gh-ink: #282B33;
	--gh-text: #3F434C;
	--gh-steel: #5F6880;
	--gh-cool: #B6C3DF;
	--gh-off: #FBFCFF;
	--gh-max: 1180px;
	font-family: Lato, system-ui, -apple-system, "Segoe UI", sans-serif;
	color: var(--gh-text);
	background: var(--gh-off);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}
.gh-blog *, .gh-blog *::before, .gh-blog *::after { box-sizing: border-box; }
.gh-blog h1, .gh-blog h2, .gh-blog h3, .gh-blog h4, .gh-blog h5, .gh-blog h6,
.gh-blog p, .gh-blog li, .gh-blog td, .gh-blog th, .gh-blog blockquote, .gh-blog figcaption,
.gh-blog a, .gh-blog span, .gh-blog b, .gh-blog strong, .gh-blog em, .gh-blog time,
.gh-blog input, .gh-blog button, .gh-blog label {
	font-family: Lato, system-ui, -apple-system, "Segoe UI", sans-serif !important;
}
.gh-blog h1, .gh-blog h2, .gh-blog h3 { color: var(--gh-royal); font-weight: 700; letter-spacing: -0.015em; margin: 0; padding: 0; line-height: 1.15 !important; }
.gh-blog p, .gh-blog li { margin: 0; line-height: 1.6 !important; }
.gh-blog a { color: var(--gh-royal); text-decoration: none; }
.gh-blog img, .gh-blog svg { display: block; max-width: 100%; }
.gh-blog figure { margin: 0; }
.gh-blog [hidden] { display: none !important; }
.gh-blog a:focus-visible, .gh-blog button:focus-visible, .gh-blog input:focus-visible {
	outline: 3px solid var(--gh-sky);
	outline-offset: 3px;
	border-radius: 6px;
}
.gh-blog .gh-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.gh-blog .gh-wrap { max-width: var(--gh-max); margin: 0 auto; padding: 0 32px; }

/* Shared bits (same look as the homepage) */
.gh-blog .gh-eyebrow {
	display: inline-block; margin: 0; font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase;
	color: var(--gh-navy); background: var(--gh-wash); padding: 6px 16px; border-radius: 999px;
}
.gh-blog .gh-kicker { margin: 0 0 6px !important; font-size: 12px !important; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gh-navy) !important; }
.gh-blog .gh-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 14px; color: var(--gh-steel); }
.gh-blog .gh-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	font-weight: 700; font-size: 16px; line-height: 1.2; border-radius: 999px; padding: 12px 24px; white-space: nowrap;
	border: 1.5px solid transparent; cursor: pointer;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.gh-blog .gh-btn svg { width: 16px; height: 16px; }
.gh-blog .gh-btn-primary { background: var(--gh-royal); color: #fff; }
.gh-blog .gh-btn-primary:hover, .gh-blog .gh-btn-primary:focus-visible { background: var(--gh-navy); color: #fff; }
.gh-blog .gh-btn-quiet { background: #fff; color: var(--gh-royal); border-color: var(--gh-wash); }
.gh-blog .gh-btn-quiet:hover, .gh-blog .gh-btn-quiet:focus-visible { background: var(--gh-royal); border-color: var(--gh-royal); color: #fff; }

/* Two-column layout: content + sidebar */
.gh-blog .gh-post-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 64px;
	align-items: start;
	padding-top: 56px;
	padding-bottom: 88px;
}

/* ---------- Single post ---------- */
.gh-blog .gh-post { min-width: 0; }
.gh-blog .gh-post-head { max-width: 760px; }
.gh-blog .gh-crumbs { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--gh-steel); margin-bottom: 20px; }
.gh-blog .gh-crumbs a { color: var(--gh-steel); font-weight: 700; }
.gh-blog .gh-crumbs a:hover { color: var(--gh-royal); }
.gh-blog .gh-post-title { font-size: clamp(34px, 4.2vw, 50px); line-height: 1.12 !important; text-wrap: balance; }
.gh-blog .gh-post-dek { font-size: 20px; color: var(--gh-text); margin-top: 18px; max-width: 680px; }
.gh-blog .gh-byline { display: flex; align-items: center; gap: 14px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--gh-wash); }
.gh-blog .gh-byline-avatar img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: 0 0 0 1.5px var(--gh-wash); }
.gh-blog .gh-byline-name { font-size: 16px; color: var(--gh-ink); }
.gh-blog .gh-byline-name a { color: var(--gh-ink); font-weight: 700; }
.gh-blog .gh-byline-name a:hover { color: var(--gh-royal); }
.gh-blog .gh-post-hero { margin: 32px 0 8px; max-width: 760px; }
.gh-blog .gh-post-hero img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 18px; border: 1px solid var(--gh-wash); background: #fff; }

/* Readable article body: ~70ch measure, 18px, 1.7 line height */
.gh-blog .gh-prose { max-width: 680px; margin-top: 36px; font-size: 18px; color: var(--gh-ink); }
.gh-blog .gh-prose > :first-child { margin-top: 0 !important; }
.gh-blog .gh-prose p,
.gh-blog .gh-prose li { font-size: 18px !important; line-height: 1.7 !important; color: var(--gh-ink); }
.gh-blog .gh-prose p { margin: 0 0 1.25em; }
.gh-blog .gh-prose strong, .gh-blog .gh-prose b { font-weight: 700; color: var(--gh-ink); }
.gh-blog .gh-prose a {
	color: var(--gh-royal); font-weight: 700;
	text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; text-decoration-color: var(--gh-sky);
}
.gh-blog .gh-prose a:hover { color: var(--gh-navy); text-decoration-color: currentColor; }
.gh-blog .gh-prose h2 { font-size: 30px; line-height: 1.2 !important; margin: 2em 0 .6em; scroll-margin-top: 110px; }
.gh-blog .gh-prose h3 { font-size: 23px; color: var(--gh-ink); font-weight: 700; letter-spacing: -0.01em; line-height: 1.3 !important; margin: 1.6em 0 .5em; scroll-margin-top: 110px; }
.gh-blog .gh-prose h4, .gh-blog .gh-prose h5, .gh-blog .gh-prose h6 { font-size: 19px; color: var(--gh-ink); font-weight: 700; line-height: 1.35 !important; margin: 1.4em 0 .4em; }
.gh-blog .gh-prose h2 a, .gh-blog .gh-prose h3 a { text-decoration: none; }
.gh-blog .gh-prose ul, .gh-blog .gh-prose ol { margin: 0 0 1.4em; padding-left: 1.4em; }
.gh-blog .gh-prose ul { list-style: disc; }
.gh-blog .gh-prose ol { list-style: decimal; }
.gh-blog .gh-prose li { margin: 0 0 .5em; padding-left: .25em; }
.gh-blog .gh-prose li::marker { color: var(--gh-royal); font-weight: 700; }
.gh-blog .gh-prose li > ul, .gh-blog .gh-prose li > ol { margin: .5em 0 0; }
.gh-blog .gh-prose blockquote,
.gh-blog .gh-prose .wp-block-quote,
.gh-blog .gh-prose .wp-block-pullquote {
	margin: 1.8em 0; padding: 18px 24px; border: 0; border-left: 4px solid var(--gh-royal);
	background: var(--gh-tint); border-radius: 0 14px 14px 0; text-align: left;
}
.gh-blog .gh-prose blockquote p { font-size: 19px !important; font-style: italic; margin: 0 0 .6em; }
.gh-blog .gh-prose blockquote p:last-child { margin-bottom: 0; }
.gh-blog .gh-prose blockquote cite { display: block; margin-top: 8px; font-size: 15px; font-style: normal; color: var(--gh-steel); }
.gh-blog .gh-prose code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important; font-size: .88em; background: var(--gh-tint); border: 1px solid var(--gh-wash); border-radius: 6px; padding: .1em .35em; color: var(--gh-ink); }
.gh-blog .gh-prose pre { margin: 1.6em 0; padding: 18px 20px; background: #fff; border: 1px solid var(--gh-wash); border-radius: 12px; overflow-x: auto; font-size: 15px; line-height: 1.6; }
.gh-blog .gh-prose pre code { background: none; border: 0; padding: 0; font-size: inherit; }
.gh-blog .gh-prose hr, .gh-blog .gh-prose .wp-block-separator { border: 0; border-top: 1px solid var(--gh-wash); margin: 2.4em 0; opacity: 1; }
.gh-blog .gh-prose img { height: auto; border-radius: 12px; }
.gh-blog .gh-prose figure, .gh-blog .gh-prose .wp-block-image { margin: 1.8em 0; }
.gh-blog .gh-prose figcaption { margin-top: 10px; font-size: 14px; color: var(--gh-steel); text-align: center; }
.gh-blog .gh-prose .wp-block-spacer { height: 0 !important; }
.gh-blog .gh-prose .wp-block-embed, .gh-blog .gh-prose iframe { max-width: 100%; }
.gh-blog .gh-prose .wp-block-columns { gap: 24px; margin: 1.6em 0; }
.gh-blog .gh-prose .wp-block-buttons { margin: 1.6em 0; }
.gh-blog .gh-prose .wp-block-button__link { text-decoration: none; font-weight: 700; border-radius: 999px; }

/* Tables */
.gh-blog .gh-prose .wp-block-table, .gh-blog .gh-prose figure.wp-block-table { margin: 1.8em 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.gh-blog .gh-prose table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--gh-wash); border-radius: 12px; overflow: hidden; font-size: 16px; }
.gh-blog .gh-prose th, .gh-blog .gh-prose td { padding: 12px 14px; text-align: left; vertical-align: top; border: 0; border-bottom: 1px solid var(--gh-wash); line-height: 1.5 !important; font-size: 16px; color: var(--gh-ink); }
.gh-blog .gh-prose thead th, .gh-blog .gh-prose tr:first-child th { background: var(--gh-tint); color: var(--gh-navy); font-weight: 700; }
.gh-blog .gh-prose tr:last-child td { border-bottom: 0; }

/* Yoast FAQ blocks */
.gh-blog .gh-prose .schema-faq { margin: 1.4em 0 2em; display: grid; gap: 14px; }
.gh-blog .gh-prose .schema-faq-section { background: #fff; border: 1px solid var(--gh-wash); border-radius: 14px; padding: 18px 22px; }
.gh-blog .gh-prose .schema-faq-question { display: block; font-size: 19px; color: var(--gh-ink); margin-bottom: 8px; line-height: 1.4; }
.gh-blog .gh-prose .schema-faq-answer { margin: 0; }

.gh-blog .gh-post-foot { max-width: 680px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--gh-wash); }
.gh-blog .gh-back { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; }
.gh-blog .gh-back svg { width: 18px; height: 18px; }

/* ---------- Sidebar ---------- */
.gh-blog .gh-side { min-width: 0; }
.gh-blog .gh-side-inner { display: grid; gap: 12px; }
.gh-blog .gh-side-card { position: relative; background: #fff; border: 1px solid var(--gh-wash); border-radius: 16px; padding: 16px 18px; }
.gh-blog .gh-side-card > p:not(.gh-kicker):not(.gh-side-note) { font-size: 14.5px; line-height: 1.5 !important; color: var(--gh-text); }
.gh-blog .gh-side-title { font-size: 18px; line-height: 1.25 !important; margin: 0 0 4px; }
.gh-blog .gh-side-app { background: linear-gradient(160deg, #fff 0%, var(--gh-tint) 100%); border-color: var(--gh-cool); }
.gh-blog .gh-side-app .gh-side-title { font-size: 21px; }
.gh-blog .gh-side-app .gh-btn { width: 100%; margin-top: 12px; padding: 11px 20px; }
.gh-blog .gh-side-note { margin-top: 6px !important; font-size: 13px; color: var(--gh-steel); text-align: center; }
.gh-blog .gh-side-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-weight: 700; font-size: 14.5px; }
.gh-blog .gh-side-link svg { width: 15px; height: 15px; transition: transform .15s ease; }
.gh-blog .gh-side-link:hover svg { transform: translateX(3px); }
.gh-blog .gh-side-link:hover { color: var(--gh-navy); }
.gh-blog .gh-side-coach { font-size: 14px; color: var(--gh-steel); padding: 2px 6px; }
.gh-blog .gh-side-coach a { font-weight: 700; }
.gh-blog .gh-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 2px; padding: 0; list-style: none; }
.gh-blog .gh-chips li { margin: 0; padding: 0; }
.gh-blog .gh-chips a {
	display: inline-block; font-weight: 700; font-size: 13px; line-height: 1.2; color: var(--gh-navy);
	background: var(--gh-tint); border: 1px solid var(--gh-wash); border-radius: 999px; padding: 6px 12px;
}
.gh-blog .gh-chips a:hover, .gh-blog .gh-chips a:focus-visible { background: var(--gh-royal); border-color: var(--gh-royal); color: #fff; }

/* ---------- Index ---------- */
.gh-blog .gh-blog-hero { padding: 72px 0 8px; background: linear-gradient(180deg, #fff 0%, var(--gh-off) 100%); border-bottom: 1px solid var(--gh-wash); }
.gh-blog .gh-blog-hero h1 { font-size: clamp(38px, 5vw, 60px); margin: 18px 0 12px; }
.gh-blog .gh-lede { font-size: 20px; max-width: 640px; color: var(--gh-text); }
.gh-blog .gh-search { position: relative; max-width: 560px; margin: 28px 0 48px; }
.gh-blog .gh-search svg { position: absolute; left: 18px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--gh-steel); pointer-events: none; }
.gh-blog .gh-search input {
	width: 100%; height: 54px; margin: 0; padding: 0 20px 0 50px; font-size: 17px; color: var(--gh-ink);
	background: #fff; border: 1.5px solid var(--gh-wash); border-radius: 999px; box-shadow: 0 6px 18px rgba(43, 84, 171, .06);
}
.gh-blog .gh-search input::placeholder { color: var(--gh-steel); opacity: 1; }
.gh-blog .gh-search input:focus { border-color: var(--gh-royal); outline: none; }
.gh-blog .gh-search input:focus-visible { outline: 3px solid var(--gh-sky); outline-offset: 2px; }
.gh-blog .gh-index { min-width: 0; }
.gh-blog .gh-index-title { font-size: 26px; margin: 48px 0 20px; }
.gh-blog .gh-grid { display: grid; gap: 24px; }
.gh-blog .gh-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gh-blog .gh-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gh-blog .gh-card {
	display: flex; flex-direction: column; background: #fff; border: 1px solid var(--gh-wash); border-radius: 18px; overflow: hidden;
	transition: box-shadow .15s ease, border-color .15s ease, transform .15s ease;
}
.gh-blog .gh-card:hover, .gh-blog .gh-card:focus-within { border-color: var(--gh-cool); box-shadow: 0 14px 30px rgba(43, 84, 171, .12); }
.gh-blog .gh-card-img { display: block; aspect-ratio: 16 / 9; background: var(--gh-tint); overflow: hidden; }
.gh-blog .gh-card-img img { width: 100%; height: 100%; object-fit: cover; }
.gh-blog .gh-card-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 22px; flex: 1; }
.gh-blog .gh-card-title { font-size: 20px; line-height: 1.3 !important; letter-spacing: -0.01em; }
.gh-blog .gh-card-title a { color: var(--gh-ink); }
.gh-blog .gh-card-title a:hover, .gh-blog .gh-card-title a:focus-visible { color: var(--gh-royal); }
.gh-blog .gh-card-excerpt { font-size: 15px; color: var(--gh-text); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.gh-blog .gh-card-lead { display: grid; grid-template-columns: 1.1fr 1fr; }
.gh-blog .gh-card-lead .gh-card-img { aspect-ratio: auto; min-height: 100%; }
.gh-blog .gh-card-lead .gh-card-body { padding: 28px 28px 30px; justify-content: center; gap: 10px; }
.gh-blog .gh-card-lead .gh-card-title { font-size: 28px; line-height: 1.2 !important; }
.gh-blog .gh-card-lead .gh-card-title a { color: var(--gh-royal); }
.gh-blog .gh-card-lead .gh-card-excerpt { font-size: 16px; -webkit-line-clamp: 4; }
.gh-blog .gh-more-wrap { text-align: center; margin-top: 32px; }
.gh-blog .gh-noresults, .gh-blog .gh-empty { padding: 32px 0; font-size: 17px; color: var(--gh-steel); text-align: center; }

/* Keep reading */
.gh-blog .gh-related { padding: 72px 0 96px; background: #fff; border-top: 1px solid var(--gh-wash); }
.gh-blog .gh-related-title { font-size: clamp(28px, 3vw, 36px); margin-bottom: 28px; }

/* Sticky sidebar on desktop. The sidebar is taller than short viewports, so the
   top offset goes negative there: it scrolls with the page until its last card is
   in view, then sticks. --gh-side-h is a slightly generous estimate of its height. */
@media (min-width: 1025px) {
	.gh-blog .gh-side { --gh-side-h: 920px; position: sticky; top: min(104px, calc(100vh - var(--gh-side-h) - 24px)); }
}

@media (max-width: 1024px) {
	.gh-blog .gh-post-layout { grid-template-columns: minmax(0, 1fr); gap: 56px; padding-top: 36px; }
	.gh-blog .gh-post-head, .gh-blog .gh-post-hero { max-width: none; }
	.gh-blog .gh-prose { margin-left: 0; }
	.gh-blog .gh-side-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.gh-blog .gh-side-coach { grid-column: 1 / -1; }
	.gh-blog .gh-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
	.gh-blog .gh-wrap { padding-left: 20px; padding-right: 20px; }
	.gh-blog .gh-post-layout { padding-top: 28px; padding-bottom: 64px; }
	.gh-blog .gh-post-title { font-size: 32px; }
	.gh-blog .gh-post-dek { font-size: 18px; }
	.gh-blog .gh-post-hero { margin-top: 24px; }
	.gh-blog .gh-post-hero img { border-radius: 14px; }
	.gh-blog .gh-prose { margin-top: 28px; }
	.gh-blog .gh-prose p, .gh-blog .gh-prose li { font-size: 17.5px !important; }
	.gh-blog .gh-prose h2 { font-size: 26px; }
	.gh-blog .gh-prose h3 { font-size: 21px; }
	.gh-blog .gh-side-inner { grid-template-columns: minmax(0, 1fr); }
	.gh-blog .gh-grid-2, .gh-blog .gh-grid-3 { grid-template-columns: minmax(0, 1fr); }
	.gh-blog .gh-card-lead { grid-template-columns: minmax(0, 1fr); }
	.gh-blog .gh-card-lead .gh-card-img { aspect-ratio: 16 / 9; }
	.gh-blog .gh-card-lead .gh-card-body { padding: 20px 20px 24px; }
	.gh-blog .gh-card-lead .gh-card-title { font-size: 24px; }
	.gh-blog .gh-blog-hero { padding-top: 48px; }
	.gh-blog .gh-lede { font-size: 18px; }
	.gh-blog .gh-search { margin-bottom: 36px; }
	.gh-blog .gh-related { padding: 56px 0 72px; }
}
@media (prefers-reduced-motion: reduce) {
	.gh-blog * { transition: none !important; }
}
