/**
 * Blog theme — aligned with main Hamilton site (style.v3.css)
 * Service-page look: photo banners, white content, site fonts/buttons/FAQs
 */

/* =========================================================================
   HERO BANNER — same language as .inner-banner on service pages
   ========================================================================= */
.inner-banner.blog-banner {
	height: 340px !important;
	min-height: 280px !important;
	padding: 0 !important;
	position: relative;
	display: flex !important;
	align-items: center;
	justify-content: center;
	background-color: #111 !important;
	background-image: url(../images/about-banner.webp) !important;
	background-repeat: no-repeat !important;
	background-size: cover !important;
	background-position: center center !important;
}
.inner-banner.blog-banner:after {
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	content: "";
	position: absolute;
	background: rgba(0, 0, 0, 0.45) !important;
	z-index: 0;
}
.inner-banner.blog-banner p {
	position: relative;
	z-index: 1;
	margin: 0;
	padding: 0 20px;
	color: #fff !important;
	font-family: "roboto_condensedregular", sans-serif;
	font-size: clamp(22px, 3.2vw, 36px);
	line-height: 1.3;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-align: center;
	opacity: 1;
}
.inner-banner.blog-banner a {
	color: #fff !important;
	text-decoration: none;
	border-bottom: 2px solid rgba(255, 255, 255, 0.55);
}
.inner-banner.blog-banner a:hover {
	border-bottom-color: var(--color-brand);
	color: #fff !important;
}

@media (max-width: 767px) {
	.inner-banner.blog-banner {
		height: 220px !important;
		min-height: 200px !important;
		background-image: url(../images/mobile-about-banner.webp) !important;
	}
	.inner-banner.blog-banner p {
		font-size: 20px;
	}
}

/* =========================================================================
   ARTICLE SHELL — white content like .info-block / service body
   ========================================================================= */
.blog-post-wrap {
	font-family: 'muliregular', sans-serif;
	padding: 50px 20px 80px;
	background: var(--color-surface);
	color: var(--color-ink);
	border-top: 1px solid var(--color-border);
	border-bottom: 1px solid var(--color-border);
}

/* Article shell: single column by default (TOC in-document at top).
   Wide viewports: side sticky Jump-to — see media query after .blog-toc styles. */

/* Site #wrapper uses overflow:hidden, which kills position:sticky.
   On blog article pages, use overflow-x:clip (clips horizontal bleed without
   creating a sticky-blocking scroll container) so Jump-to can stick. */
body:has(.blog-post-wrap) #wrapper {
	overflow-x: clip;
	overflow-y: visible;
}

.blog-post-wrap .container {
	max-width: 900px;
	margin: 0 auto;
	display: block;
}
.blog-post-main {
	min-width: 0;
}

/* Breadcrumbs — quiet, site-like */
.blog-crumbs {
	font-size: 14px;
	color: var(--color-muted);
	margin: 0 0 18px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 8px;
}
.blog-post-wrap .blog-crumbs a {
	color: var(--color-ink-soft) !important;
	text-decoration: none !important;
	border-bottom: 1px solid transparent;
}
.blog-post-wrap .blog-crumbs a:hover {
	color: var(--color-brand) !important;
	border-bottom-color: var(--color-brand);
}
.blog-crumbs .crumb-sep {
	display: inline-block;
	width: 5px;
	height: 5px;
	border-right: 1.5px solid var(--color-border);
	border-top: 1.5px solid var(--color-border);
	transform: rotate(45deg);
	opacity: .8;
}
.blog-crumbs .crumb-current {
	color: var(--color-ink);
	font-weight: 600;
}

/* Meta row — plain text, not soft UI pills */
.blog-post-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	margin: 0 0 22px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--color-border);
	align-items: center;
}
.blog-post-meta .meta-chip {
	display: inline;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--color-muted);
	background: transparent;
	border: 0;
	border-radius: 0;
	padding: 0;
	box-shadow: none;
}
.blog-post-meta .meta-chip--accent {
	color: var(--color-on-brand);
	background: var(--color-brand);
	border: 0;
	border-radius: 3px;
	padding: 6px 12px;
	box-shadow: none;
}

/* Typography — match beauty-section / info-block */
.blog-post-wrap h1 {
	font-family: "roboto_condensedregular", sans-serif;
	font-size: clamp(32px, 4.5vw, 48px);
	line-height: 1.25;
	margin: 0 0 18px;
	color: var(--color-ink);
	letter-spacing: 0;
	max-width: none;
	text-align: left;
}
.blog-lead {
	font-size: 20px;
	font-family: 'muliregular', sans-serif;
	line-height: 1.7;
	color: #333;
	margin: 0 0 28px;
	padding-bottom: 0;
	border-bottom: 0;
}
.blog-lead strong {
	color: var(--color-ink);
}
.blog-post-wrap h2 {
	font-family: "roboto_condensedregular", sans-serif;
	font-size: clamp(26px, 3vw, 36px);
	line-height: 1.35;
	margin: 40px 0 14px;
	color: #333;
	letter-spacing: 0;
	padding-top: 8px;
	scroll-margin-top: 88px;
}
/* No magazine red underline — site headings do not use it */
.blog-post-wrap h2::after {
	display: none;
}
.blog-post-wrap h3 {
	font-family: "roboto_condensedregular", sans-serif;
	font-size: 22px;
	font-weight: 700;
	letter-spacing: 1px;
	margin: 28px 0 12px;
	color: var(--color-ink-soft);
	scroll-margin-top: 88px;
}
.blog-post-wrap p,
.blog-post-wrap li {
	font-size: 18px;
	font-family: 'muliregular', sans-serif;
	line-height: 1.85;
	color: #333;
}
.blog-post-wrap p { margin: 0 0 18px; }
.blog-post-wrap a:not(.btn-brand) {
	color: var(--color-brand);
	text-decoration: underline;
	text-underline-offset: 2px;
}
.blog-post-wrap a:not(.btn-brand):hover {
	color: var(--color-brand-dark);
}

/* Lists — simple site style, not card stacks */
.blog-post-wrap ul,
.blog-post-wrap ol {
	margin: 8px 0 24px;
	padding: 0 0 0 4px;
	list-style: none;
}
.blog-post-wrap ul li,
.blog-post-wrap ol li {
	position: relative;
	margin: 0 0 14px;
	padding: 0 0 0 28px;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}
.blog-post-wrap ul li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.55em;
	width: 10px;
	height: 10px;
	border-radius: 0;
	background: var(--color-brand);
	box-shadow: none;
	/* square accent like site check marks language */
}
.blog-post-wrap ol {
	counter-reset: blog-step;
}
.blog-post-wrap ol li {
	padding-left: 36px;
}
.blog-post-wrap ol li::before {
	counter-increment: blog-step;
	content: counter(blog-step) ".";
	position: absolute;
	left: 0;
	top: 0;
	width: auto;
	height: auto;
	border-radius: 0;
	background: transparent;
	color: var(--color-brand);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.85;
	text-align: left;
	box-shadow: none;
}

/* Figures — clean, less “card UI” */
.blog-figure {
	margin: 32px 0;
	background: transparent;
	border: 0;
	border-radius: 0;
	overflow: visible;
	box-shadow: none;
}
.blog-figure img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 0;
}
.blog-figure figcaption {
	font-size: 15px;
	line-height: 1.5;
	color: var(--color-muted);
	margin: 10px 0 0;
	padding: 0;
	text-align: left;
	border-top: 0;
	background: transparent;
	font-style: italic;
}

/* TOC — flat box, site borders.
   Default: in-document at top (static). Wide: sticky side column. */
.blog-toc {
	position: static;
	background: var(--color-bg);
	border: 1px solid var(--color-border);
	border-left: 4px solid var(--color-brand);
	border-radius: 0;
	padding: 18px 20px 12px;
	margin: 0 0 28px;
	box-shadow: none;
	max-height: none;
}
.blog-toc strong {
	display: block;
	margin: 0 0 12px;
	font-size: 13px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--color-ink);
	font-family: "roboto_condensedregular", sans-serif;
}
.blog-toc ul {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}
.blog-toc li {
	margin: 0 0 4px !important;
	padding: 0 !important;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
}
.blog-toc li::before {
	display: none !important;
	content: none !important;
}
.blog-toc a {
	display: block;
	padding: 8px 0;
	border-radius: 0;
	color: var(--color-ink) !important;
	text-decoration: none !important;
	font-size: 16px;
	line-height: 1.4;
	border-left: 0;
	border-bottom: 1px solid var(--color-border);
}
.blog-toc a:hover {
	background: transparent;
	color: var(--color-brand) !important;
	border-left: 0;
}

/* Desktop/wide: sticky side Jump-to (not a floating overlay FAB) */
@media (min-width: 1100px) {
	.blog-post-wrap .container {
		max-width: 1140px;
		display: grid;
		grid-template-columns: minmax(200px, 240px) minmax(0, 1fr);
		column-gap: 36px;
		row-gap: 0;
		align-items: start;
	}
	.blog-toc {
		position: sticky;
		top: 24px;
		align-self: start;
		max-height: calc(100vh - 48px);
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		margin: 0;
		z-index: 2;
	}
	.blog-post-main {
		max-width: 900px;
	}
	.blog-toc a {
		font-size: 15px;
		padding: 7px 0;
	}
}

/* Narrow / tablet: Jump to stays in flow at top — never permanent fixed overlay */
@media (max-width: 1099px) {
	.blog-toc {
		position: static;
		max-height: none;
		overflow: visible;
		margin: 0 0 28px;
	}
}

/* Key callout — site-style left brand bar */
.blog-key {
	background: var(--color-bg);
	border: 1px solid var(--color-border);
	border-left: 4px solid var(--color-brand);
	border-radius: 0;
	padding: 16px 18px;
	margin: 24px 0;
	box-shadow: none;
}
.blog-key p {
	margin: 0;
	color: #333;
}

/* CTA — site brand gradient buttons on dark strip */
.blog-cta {
	background: #1f1f1f;
	border: 0;
	border-radius: 0;
	padding: 40px 32px;
	margin: 48px 0 28px;
	color: #fff;
	box-shadow: none;
	position: relative;
	overflow: hidden;
	text-align: center;
}
.blog-cta::before {
	display: none;
}
.blog-cta h2 {
	margin: 0 0 12px;
	font-size: 32px;
	font-family: "roboto_condensedregular", sans-serif;
	color: #fff;
	position: relative;
	text-align: center;
}
.blog-cta h2::after { display: none; }
.blog-cta p {
	color: rgba(255, 255, 255, 0.9);
	position: relative;
	margin: 0 auto 20px;
	max-width: 640px;
	text-align: center;
	line-height: 1.7;
}
.blog-cta .blog-cta-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	position: relative;
	justify-content: center;
}
.blog-cta a.btn-brand {
	display: inline-block;
	margin: 0;
	background: var(--color-brand) !important;
	border: 2px solid var(--color-brand) !important;
	color: var(--color-on-brand) !important;
	text-decoration: none !important;
	border-radius: 3px;
	padding: 12px 28px;
	font-weight: 700;
	font-size: 15px;
	letter-spacing: .04em;
	text-transform: uppercase;
	box-shadow: 0 8px 20px rgba(185, 28, 28, 0.35) !important;
	transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}
.blog-cta a.btn-brand:hover,
.blog-cta a.btn-brand:focus {
	background: var(--color-brand-dark) !important;
	border-color: var(--color-brand-dark) !important;
	transform: translateY(-2px) !important;
	box-shadow: 0 12px 26px rgba(185, 28, 28, 0.5) !important;
	color: var(--color-on-brand) !important;
}
.blog-cta a.btn-brand--ghost {
	background: transparent !important;
	border: 2px solid rgba(255, 255, 255, 0.75) !important;
	box-shadow: none !important;
	color: #fff !important;
}
.blog-cta a.btn-brand--ghost:hover,
.blog-cta a.btn-brand--ghost:focus {
	background: rgba(255, 255, 255, 0.1) !important;
	border-color: #fff !important;
	transform: translateY(-2px) !important;
	box-shadow: none !important;
}

/* FAQ — closer to site accordion */
.blog-faq {
	margin: 12px 0 8px;
}
.blog-faq details {
	border: 1px solid var(--color-border);
	border-radius: 0;
	padding: 0;
	margin: 0 0 12px;
	background: var(--color-surface);
	overflow: hidden;
}
.blog-faq details[open] {
	border-color: var(--color-ink);
	box-shadow: none;
}
.blog-faq summary {
	cursor: pointer;
	font-weight: 700;
	font-size: 18px;
	color: var(--color-ink);
	list-style: none;
	padding: 16px 60px 16px 16px;
	position: relative;
	line-height: 1.45;
	background: var(--color-surface);
}
.blog-faq summary::-webkit-details-marker { display: none; }
.blog-faq summary::after {
	content: "";
	position: absolute;
	right: 16px;
	top: 50%;
	width: 32px;
	height: 32px;
	margin-top: -16px;
	border-radius: 50%;
	background: var(--color-ink);
	/* chevron via borders on pseudo of pseudo — use simple + rotation */
	box-shadow: none;
}
/* white chevron on black circle */
.blog-faq summary::before {
	content: "";
	position: absolute;
	right: 26px;
	top: 50%;
	width: 9px;
	height: 9px;
	margin-top: -6px;
	border-right: 2px solid #fff;
	border-bottom: 2px solid #fff;
	transform: rotate(45deg);
	z-index: 1;
	transition: transform .2s ease;
}
.blog-faq details[open] summary::before {
	margin-top: -2px;
	transform: rotate(225deg);
	border-color: #fff;
}
.blog-faq details[open] summary::after {
	background: var(--color-brand);
}
.blog-faq details p {
	margin: 0;
	padding: 4px 16px 18px;
	color: #333;
	font-size: 18px;
	line-height: 1.7;
}

/* Related links */
.blog-related {
	margin-top: 40px;
	padding: 28px 24px 16px;
	border: 1px solid var(--color-border);
	border-radius: 0;
	background: var(--color-bg);
	box-shadow: none;
}
.blog-related h2 {
	margin-top: 0;
	font-size: 28px;
	color: #333;
}
.blog-related ul {
	list-style: none !important;
	margin: 0 0 8px !important;
	padding: 0 !important;
}
.blog-related li {
	margin: 0 0 6px !important;
	padding: 0 !important;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
}
.blog-related li::before {
	display: none !important;
	content: none !important;
}
.blog-related a {
	display: block;
	padding: 12px 0;
	border-radius: 0;
	text-decoration: none !important;
	color: var(--color-ink) !important;
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--color-border);
	font-size: 17px;
	transition: color .15s ease;
}
.blog-related a::before {
	display: none;
}
.blog-related a:hover {
	background: transparent;
	border-color: var(--color-border);
	transform: none;
	color: var(--color-brand) !important;
}

/* Author */
.blog-author-box {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	border: 1px solid var(--color-border);
	border-radius: 0;
	padding: 20px;
	margin-top: 32px;
	background: var(--color-bg);
}
.blog-author-box::before {
	content: "TC";
	flex-shrink: 0;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--color-brand);
	color: var(--color-on-brand);
	font-weight: 800;
	font-size: 14px;
	letter-spacing: .04em;
	display: grid;
	place-items: center;
	box-shadow: none;
}
.blog-author-box p {
	margin: 0;
	font-size: 16px;
	color: #333;
	line-height: 1.6;
}
.blog-author-box p + p { margin-top: 6px; }
.blog-author-box strong {
	color: var(--color-ink);
	font-size: 16px;
}

/* =========================================================================
   BLOG INDEX (blogs.html)
   ========================================================================= */
.blog-wrap {
	padding: 0 0 70px;
	background: var(--color-surface);
	font-family: 'muliregular', sans-serif;
	color: var(--color-ink);
}
/* Hub uses photo strip via .inner-banner.blog-banner when present;
   if only .blog-wrap, add top intro on white */
.blog-wrap > .container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 50px 20px 0;
}
.blog-wrap h1 {
	font-family: "roboto_condensedregular", sans-serif;
	color: var(--color-ink);
	font-size: clamp(32px, 4vw, 48px);
	line-height: 1.25;
	text-align: center;
	margin: 0 0 16px;
	text-transform: none;
	letter-spacing: 0;
}
.blog-intro {
	text-align: center;
	max-width: 760px;
	margin: 0 auto 40px;
	color: #333;
	font-size: 18px;
	line-height: 1.7;
}
.blog-hub-cta {
	margin-top: 36px;
	text-align: center;
}
.blog-hub-cta .btn-brand {
	display: inline-block;
	padding: 12px 26px;
	border-radius: 6px;
	text-decoration: none;
	text-transform: none;
}
.blog-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
	padding: 0 0 20px;
}
@media (max-width: 900px) {
	.blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
	.blog-grid { grid-template-columns: 1fr; }
}
.blog-card {
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: 0;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: none;
	transition: box-shadow .2s ease, border-color .2s ease;
}
.blog-card:hover {
	transform: none;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
	border-color: var(--color-ink);
}
.blog-card__img {
	display: block;
	width: 100%;
	aspect-ratio: 16/10;
	object-fit: cover;
	background: #eee;
}
.blog-card__body {
	padding: 22px 20px 24px;
	display: flex;
	flex-direction: column;
	flex: 1;
}
.blog-card__meta {
	font-size: 12px;
	color: var(--color-muted);
	text-transform: uppercase;
	letter-spacing: .08em;
	margin: 0 0 10px;
	font-weight: 600;
}
.blog-card__title {
	font-family: "roboto_condensedregular", sans-serif;
	font-size: 24px;
	line-height: 1.25;
	margin: 0 0 12px;
	color: var(--color-ink);
}
.blog-card__title a {
	color: inherit;
	text-decoration: none;
}
.blog-card__title a:hover {
	color: var(--color-brand);
}
.blog-card__excerpt {
	font-size: 16px;
	line-height: 1.6;
	color: #333;
	margin: 0 0 18px;
}
.blog-card__more {
	margin: auto 0 0;
}
.blog-card__more a {
	display: inline-block;
	background: var(--color-brand);
	color: var(--color-on-brand);
	padding: 11px 22px;
	border-radius: 3px;
	font-weight: 700;
	font-size: 13px;
	letter-spacing: .05em;
	text-transform: uppercase;
	text-decoration: none;
	box-shadow: 0 6px 16px rgba(185, 28, 28, 0.28);
	transition: all .3s ease;
}
.blog-card__more a:hover {
	background: var(--color-brand-dark);
	transform: translateY(-1px);
	color: var(--color-on-brand);
}

@media (max-width: 600px) {
	.blog-post-wrap {
		padding: 32px 16px 64px;
	}
	/* The desktop side index is too tall before the article title on phones. */
	.blog-toc {
		display: none;
	}
	.blog-post-wrap p,
	.blog-post-wrap li {
		font-size: 17px;
	}
	.blog-cta {
		padding: 28px 18px;
	}
	.blog-cta-actions {
		flex-direction: column;
	}
	.blog-cta a.btn-brand {
		width: 100%;
		text-align: center;
	}
	.blog-wrap > .container {
		padding: 36px 16px 0;
	}
}
