/*
 * TM Base - blog: single posts, archives, search, 404.
 * Values carried over from TM Core's assets/css/groups/tm-blog.css and the
 * layout block in template 6124's html widget, minus the Elementor selectors.
 */

body.tmb-site.single-post { background: #EDEFF4; }

/* ---------- Title band ---------- */
.tmb-site .tmb-post__hero { background: var(--wp--preset--color--navy, #283071); color: #fff; padding: 64px 0 48px; }
.tmb-site .tmb-post__hero .tmb-eyebrow { color: #F9A96A; }
.tmb-site .tmb-post__hero a.tmb-eyebrow:hover { color: var(--wp--preset--color--orange, #F57B20); }
.tmb-site .tmb-post__title {
	margin: 0 0 22px; color: #fff; font-size: 44px; font-weight: 800; line-height: 1.1; letter-spacing: -.02em;
}
.tmb-site .tmb-post__meta {
	display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; margin: 0;
	border-top: 1px solid rgba(255, 255, 255, .18); padding-top: 18px;
	font-size: 14px; font-weight: 500; line-height: 1.5; color: #C3C7DE;
}
.tmb-site .tmb-post__meta > span[aria-hidden] { color: rgba(255, 255, 255, .3); }
.tmb-site .tmb-post__meta > span:first-child { color: #E4E7F5; font-weight: 600; }
.tmb-site .tmb-post__read { color: #F9A96A; font-weight: 600; }

/* ---------- Article + rail ---------- */
.tmb-site .tmb-post__layout { padding-top: 44px; padding-bottom: 8px; }
.tmb-site .tmb-post__main { max-width: 768px; }
.tmb-site .tmb-post__image { margin: 0 0 44px; }
.tmb-site .tmb-post__image img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 8; object-fit: cover; border-radius: 14px; }
.tmb-site .tmb-post__excerpt { margin: 0 0 44px; font-size: 20px; line-height: 1.6; color: #5A5F7A; }
.tmb-site .tmb-post__excerpt p { margin: 0; }
.tmb-site .tmb-post__aside { display: none; }

@media (min-width: 1025px) {
	.tmb-site .tmb-post__layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; column-gap: 52px; align-items: start; }
	.tmb-site .tmb-post__aside { display: block; position: sticky; top: 90px; }
}

.tmb-site .tmb-toc { background: #fff; border: 1px solid #E7E9F3; border-radius: 14px; padding: 20px 22px; margin-bottom: 18px; box-shadow: 0 4px 18px rgba(40, 48, 113, .06); }
.tmb-site .tmb-toc__title { margin: 0 0 12px; font-size: 12px; font-weight: 700; line-height: 1; letter-spacing: .12em; text-transform: uppercase; color: #8A93B2; }
.tmb-site .tmb-toc ul { list-style: none; margin: 0; padding: 0; }
.tmb-site .tmb-toc a {
	display: block; padding: 8px 0 8px 14px; border-left: 2px solid #E7E9F3;
	color: var(--wp--preset--color--navy, #283071); font-size: 14px; font-weight: 500; line-height: 1.4;
	transition: border-color .15s ease, color .15s ease, padding .15s ease;
}
.tmb-site .tmb-toc a:hover { border-color: var(--wp--preset--color--orange, #F57B20); color: var(--wp--preset--color--orange, #F57B20); padding-left: 18px; }

/* ---------- After the article ---------- */
.tmb-site .tmb-postnav { display: flex; justify-content: space-between; gap: 20px; margin-top: 8px; padding-top: 20px; border-top: 1px solid #DDE1EC; }
.tmb-site .tmb-postnav a { display: flex; flex-direction: column; max-width: 48%; font-size: 15px; font-weight: 600; line-height: 1.4; }
.tmb-site .tmb-postnav span { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #8A93B2; margin-bottom: 4px; }
.tmb-site .tmb-postnav__next { margin-left: auto; text-align: right; }

.tmb-site .tmb-share { display: flex; align-items: center; gap: 16px; margin-top: 24px; }
.tmb-site .tmb-share__label { margin: 0; font-size: 18px; font-weight: 600; color: var(--wp--preset--color--navy, #283071); }
.tmb-site .tmb-share ul { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; }
.tmb-site .tmb-share a {
	display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%;
	background: var(--wp--preset--color--navy, #283071); color: #fff;
}
.tmb-site .tmb-share a:hover { background: var(--wp--preset--color--orange, #F57B20); color: #fff; }

.tmb-site .tmb-author { display: flex; gap: 20px; align-items: flex-start; margin: 28px 0 56px; padding: 28px; background: #F4F5FB; border: 1px solid #E0E4EF; border-radius: 14px; }
.tmb-site .tmb-author__img { border-radius: 50%; flex: none; }
.tmb-site .tmb-author__name { margin: 0 0 6px; font-size: 18px; font-weight: 700; color: var(--wp--preset--color--navy, #283071); }
.tmb-site .tmb-author__bio { margin: 0; font-size: 15px; line-height: 1.65; }

/* ---------- Cards: related posts, archives, search ---------- */
.tmb-site .tmb-related { padding: 48px 0; }
.tmb-site .tmb-related .tmb-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1120px; margin: 0 auto; }
@media (max-width: 900px) { .tmb-site .tmb-related .tmb-cards { grid-template-columns: 1fr; max-width: 560px; } }
.tmb-site .tmb-related__head { margin: 0 0 32px; text-align: center; font-size: 26px; font-weight: 700; color: var(--wp--preset--color--navy, #283071); }
.tmb-site .tmb-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.tmb-site .tmb-card {
	display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid #E0E4EF; border-radius: 14px;
	box-shadow: 0 6px 20px rgba(40, 48, 113, .06); transition: transform .18s ease, box-shadow .18s ease;
}
.tmb-site .tmb-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(40, 48, 113, .12); }
.tmb-site .tmb-card__img { display: block; height: 158px; }
.tmb-site .tmb-card__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tmb-site .tmb-card__body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 20px; }
.tmb-site .tmb-card__title { margin: 0 0 10px; font-size: 17px; font-weight: 600; line-height: 1.35; }
.tmb-site .tmb-card__title a { color: var(--wp--preset--color--navy, #283071); }
.tmb-site .tmb-card__title a:hover { color: var(--wp--preset--color--orange, #F57B20); }
.tmb-site .tmb-card__excerpt { margin: 0; font-size: 13.5px; line-height: 1.5; color: #555; }
.tmb-site .tmb-card__more { margin-top: auto; padding-top: 14px; font-size: 13.5px; font-weight: 600; color: var(--wp--preset--color--orange, #F57B20); }
.tmb-site .tmb-card__more:hover { text-decoration: underline; }

/* ---------- Archives, search, 404 ----------
   The hero band matches the Blog page's Elementor hero (page 2491's top
   container): centred, radial navy gradient, large orange label, 46px title. */
.tmb-site .tmb-band {
	padding: 92px 0; text-align: center; color: #fff;
	background: radial-gradient(at 100% 0%, #2C3680 0%, #1B2150 100%);
}
.tmb-site .tmb-band .tmb-eyebrow {
	margin: 0 0 30px; color: var(--wp--preset--color--orange, #F57B20);
	font-size: 30px; font-weight: 700; line-height: 1.4; letter-spacing: -.5px; text-transform: uppercase;
}
.tmb-site .tmb-band__title { margin: 0; color: #fff; font-size: 46px; font-weight: 600; line-height: 1.12; letter-spacing: -.5px; }
.tmb-site .tmb-band__intro { max-width: 660px; margin: 30px auto 0; color: #B9CEFF; font-size: 18px; line-height: 1.7; }
.tmb-site .tmb-band__intro p { margin: 0; }
.tmb-site .tmb-band__search { margin-top: 30px; }
.tmb-site .tmb-band .tmb-search { margin: 0 auto; }
.tmb-site .tmb-band__actions { margin: 28px 0 0; }
.tmb-site .tmb-list { padding: 56px 0 72px; background: #EDEFF4; }
.tmb-site .tmb-empty { text-align: center; padding: 40px 0; }
.tmb-site .tmb-pager { margin-top: 40px; }
.tmb-site .tmb-pager .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.tmb-site .tmb-pager .page-numbers {
	display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 14px;
	border-radius: 8px; background: #fff; border: 1px solid #E0E4EF; font-weight: 600;
}
.tmb-site .tmb-pager .page-numbers.current { background: var(--wp--preset--color--navy, #283071); border-color: var(--wp--preset--color--navy, #283071); color: #fff; }

/* Reading progress bar. Transform, not width, so it never triggers layout. */
.tmb-site .tmb-readbar {
	position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 99999; pointer-events: none;
	background: var(--wp--preset--color--orange, #F57B20); transform: scaleX(0); transform-origin: 0 50%;
}

@media (max-width: 820px) {
	.tmb-site .tmb-post__hero { padding: 44px 0 34px; }
	.tmb-site .tmb-post__title { font-size: 32px; }
	.tmb-site .tmb-band { padding: 60px 0; }
	.tmb-site .tmb-band .tmb-eyebrow { margin-bottom: 18px; font-size: 22px; }
	.tmb-site .tmb-band__title { font-size: 32px; }
	.tmb-site .tmb-band__intro { margin-top: 18px; font-size: 16px; }
	.tmb-site .tmb-band__search { margin-top: 24px; }
	.tmb-site .tmb-post__layout { padding-top: 30px; }
	.tmb-site .tmb-post__excerpt { font-size: 18px; }
	.tmb-site .tmb-related { padding: 44px 0; }
	.tmb-site .tmb-related__head { font-size: 22px; }
	.tmb-site .tmb-author { flex-direction: column; }
}
