/* ThinkBuild Foundry — "Lab" homepage template */

body.tb-home-template #content > .ast-container { max-width: none; padding: 0; display: block; }
body.tb-home-template .site-content { padding: 0 !important; }

.tb-home { overflow-x: clip; }
.tb-wrap { max-width: var(--tb-max); margin: 0 auto; padding: 0 40px; }
.tb-sec { padding: 64px 0 96px; }
.tb-h2 { font-size: clamp(32px, 3.6vw, 48px); margin: 0 0 48px; }
.tb-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.tb-head-row .tb-h2 { margin: 0; }
.tb-more { font-weight: 600; text-decoration: none; }

/* ---------- Hero ---------- */
.tb-hero { padding: 104px 0 96px; }
.tb-hero__grid { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); gap: 56px; align-items: center; }
.tb-hero h1 { font-size: clamp(46px, 5.6vw, 76px); line-height: 1; margin: 0 0 24px; }
.tb-hero h1 em { font-style: normal; color: var(--tb-orange); }
.tb-hero__lead { font-size: 19px; max-width: 520px; margin: 0 0 36px; }
.tb-hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.tb-tags { display: flex; gap: 10px; flex-wrap: wrap; margin: 40px 0 0; padding: 0; list-style: none; }
.tb-tags li {
	font-family: var(--tb-font-mono); font-size: 13px; color: var(--tb-soft);
	border: 1px solid rgba(255,255,255,.14); border-radius: 6px; padding: 6px 12px;
}
.tb-figure {
	margin: 0; border: 1px solid rgba(124,196,245,.25); border-radius: var(--tb-radius);
	padding: 24px; background: var(--tb-panel);
}
.tb-figure svg, .tb-figure img { display: block; width: 100%; height: auto; border-radius: 8px; }
.tb-figure figcaption {
	display: flex; justify-content: space-between; margin-top: 14px;
	font-family: var(--tb-font-mono); font-size: 13px; color: var(--tb-muted);
}

/* ---------- Cards ---------- */
.tb-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.tb-card {
	border: 1px solid var(--tb-line); border-radius: var(--tb-radius); background: var(--tb-panel);
	padding: 30px; display: flex; flex-direction: column; gap: 12px; transition: border-color .2s;
}
.tb-card:hover { border-color: rgba(124,196,245,.6); }
.tb-card__idx { font-family: var(--tb-font-mono); font-size: 13px; color: var(--tb-muted); }
.tb-card h3 { font-size: 26px; margin: 0; }
.tb-card p { margin: 0; flex-grow: 1; }
.tb-card a { font-weight: 600; text-decoration: none; }

/* ---------- Principles ---------- */
.tb-principles { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 56px; align-items: start; border-top: 1px solid var(--tb-line); padding-top: 64px; }
.tb-principles h2 { font-size: clamp(32px, 3.8vw, 52px); line-height: 1.05; margin: 0; }
.tb-principles ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 28px; }
.tb-principles li { display: grid; grid-template-columns: 56px minmax(0,1fr); gap: 16px; }
.tb-principles li > span { font-family: var(--tb-font-mono); font-size: 13px; color: var(--tb-orange-text); padding-top: 4px; }
.tb-principles h3 { font-size: 20px; margin: 0 0 6px; }
.tb-principles p { margin: 0; }

/* ---------- CTA ---------- */
.tb-cta {
	border: 1px solid rgba(242,130,10,.5); border-radius: 18px; padding: 56px;
	display: grid; grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); gap: 32px; align-items: center;
	background: rgba(242,130,10,.07);
}
.tb-cta .tb-label { color: var(--tb-orange-text); }
.tb-cta h2 { font-size: clamp(30px, 3.4vw, 44px); margin: 0; }
.tb-cta__actions { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.tb-cta__tel { font-family: var(--tb-font-mono); font-size: 14px; color: var(--tb-soft); text-decoration: none; min-height: 44px; display: flex; align-items: center; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
	.tb-hero__grid, .tb-principles, .tb-cta { grid-template-columns: minmax(0,1fr); }
	.tb-grid3 { grid-template-columns: minmax(0,1fr); }
	.tb-hero { padding: 64px 0; }
}
@media (max-width: 640px) {
	.tb-wrap { padding: 0 20px; }
	.tb-cta { padding: 32px 24px; }
}
.tb-cta h2 em { font-style: normal; color: var(--tb-orange-text); }
.tb-h2 em, .tb-principles h2 em { font-style: normal; color: var(--tb-orange-text); }

/* v2.2.1 — Latest blog posts */
.tb-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.tb-post { display: flex; flex-direction: column; background: var(--tb-panel-solid); border: 1px solid var(--tb-line); border-radius: 16px; overflow: hidden; transition: border-color .2s; }
.tb-post:hover { border-color: rgba(124,196,245,.6); }
.tb-post__img { display: block; aspect-ratio: 16 / 10; background: #0A1E36; overflow: hidden; }
.tb-post__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.tb-post:hover .tb-post__img img { transform: scale(1.03); }
.tb-post__ph { display: flex; height: 100%; align-items: center; justify-content: center; font-family: var(--tb-font-mono); color: var(--tb-blue); font-size: 14px; }
.tb-post__body { display: flex; flex-direction: column; gap: 10px; padding: 26px 28px 28px; flex-grow: 1; }
.tb-post time { font-family: var(--tb-font-mono); font-size: 13px; color: var(--tb-orange-text); }
.tb-post h3 { font-size: 22px; line-height: 1.25; margin: 0; }
.tb-post h3 a { color: #FFFFFF; text-decoration: none; }
.tb-post h3 a:hover { color: var(--tb-blue); }
.tb-post p { margin: 0; flex-grow: 1; }
.tb-post .tb-more { margin-top: 6px; }
/* A single post: wide feature card */
.tb-posts--one { grid-template-columns: minmax(0, 1fr); }
.tb-posts--one .tb-post { flex-direction: row; }
.tb-posts--one .tb-post__img { flex: 0 0 52%; aspect-ratio: auto; min-height: 340px; }
.tb-posts--one .tb-post__body { justify-content: center; padding: 44px 48px; gap: 14px; }
.tb-posts--one .tb-post h3 { font-size: clamp(26px, 2.6vw, 34px); }
@media (max-width: 860px) {
	.tb-posts--one .tb-post { flex-direction: column; }
	.tb-posts--one .tb-post__img { flex: none; aspect-ratio: 16 / 10; min-height: 0; }
	.tb-posts--one .tb-post__body { padding: 26px 24px 28px; }
}
