/* Tiger Theme — archive, search & home layouts.
   Ported from the proven native docs archive design (Plan 18 §6). */

.tgkb-wrap {
	max-width: 1120px;
	margin: 0 auto;
	padding: 34px 24px 88px;
}

/* Breadcrumb */
.tgkb-bc {
	font-size: 14px;
	color: var(--tg-muted);
	margin-bottom: 22px;
}
.tgkb-bc a {
	color: var(--tg-muted);
	text-decoration: none;
}
.tgkb-bc a:hover {
	color: var(--tg-link);
}
.tgkb-bc .tg-bc-cur {
	color: var(--tg-ink);
	font-weight: 600;
}
.tgkb-bc .tg-bc-sep {
	color: #c2c8d2;
}

/* ---- Docs archive: sidebar + hero + 2-col cards ---- */
.tgkb-arch-grid {
	display: grid;
	grid-template-columns: 232px minmax(0, 1fr);
	gap: 56px;
	align-items: start;
}
.tgkb-side {
	position: sticky;
	top: 96px;
}
.tgkb-side-h {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: #667080;
	margin: 0 0 14px;
	padding-left: 14px;
}
.tgkb-side-nav {
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.tgkb-side-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	font-size: 14.5px;
	color: var(--tg-muted);
	text-decoration: none;
	padding: 9px 14px;
	border-radius: 9px;
	transition: background .15s, color .15s;
}
.tgkb-side-link:hover {
	background: #eef0f4;
	color: var(--tg-ink);
}
.tgkb-side-link.is-current {
	background: var(--tg-teal);
	color: #fff;
	font-weight: 600;
}
.tgkb-side-count {
	font-size: 12px;
	color: #667080;
	font-weight: 600;
}
.tgkb-side-link.is-current .tgkb-side-count {
	color: rgba(255, 255, 255, .55);
}

.tgkb-arch-head2 {
	border-bottom: 1px solid var(--tg-line);
	padding-bottom: 26px;
	margin-bottom: 30px;
}
.tgkb-arch-head2 h1 {
	font-size: clamp(28px, 4vw, 36px);
	font-weight: 800;
	color: var(--tg-ink);
	margin: 0 0 12px;
	letter-spacing: -.01em;
	line-height: 1.15;
}
.tgkb-arch-desc {
	font-size: 17px;
	color: var(--tg-muted);
	line-height: 1.6;
	margin: 0 0 12px;
	max-width: 640px;
}
.tgkb-arch-count {
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .05em;
	color: #667080;
	margin: 0;
}

/* ---- Blog archive head (centered) ---- */
.tgkb-arch-head {
	text-align: center;
	max-width: 720px;
	margin: 6px auto 40px;
}
.tgkb-arch-title {
	font-size: clamp(30px, 5vw, 42px);
	font-weight: 800;
	color: var(--tg-ink);
	margin: 0 0 12px;
	letter-spacing: -.01em;
	line-height: 1.12;
}

/* ---- Cards ---- */
.tgkb-cards {
	display: grid;
	gap: 22px;
}
.tgkb-cards--2 {
	grid-template-columns: repeat(2, 1fr);
}
.tgkb-cards--3 {
	grid-template-columns: repeat(3, 1fr);
}
.tgkb-card {
	display: flex;
	flex-direction: column;
	background: var(--tg-surface);
	border: 1px solid #ececf0;
	border-radius: var(--tg-radius);
	padding: 24px;
	text-decoration: none;
	transition: transform .25s, box-shadow .25s;
	box-shadow: var(--tg-shadow);
}
.tgkb-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--tg-shadow-lg);
}
.tgkb-card-title {
	font-size: 18px;
	font-weight: 700;
	color: var(--tg-ink);
	margin-bottom: 9px;
	line-height: 1.3;
}
.tgkb-card-ex {
	font-size: 14.5px;
	color: var(--tg-muted);
	line-height: 1.6;
	margin-bottom: 16px;
	flex: 1;
}
.tgkb-card-more {
	font-size: 14px;
	font-weight: 600;
	color: var(--tg-link);
}
.tgkb-card-cat {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .03em;
	color: var(--tg-link);
	margin-bottom: 9px;
}

/* Image cards (blog) */
.tgkb-card--img {
	padding: 0;
	overflow: hidden;
}
.tgkb-card-media {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #eef0f4;
}
.tgkb-card-media img,
.tgkb-card-thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.tgkb-card--img .tgkb-card-body {
	display: flex;
	flex-direction: column;
	padding: 22px 24px 24px;
	flex: 1;
}
.tgkb-card-foot {
	font-size: 13px;
	color: #667080;
	font-weight: 500;
	margin-top: auto;
}

/* ---- Search results ---- */
.tgkb-results {
	display: flex;
	flex-direction: column;
	gap: 4px;
	max-width: 760px;
}
.tgkb-result {
	display: block;
	padding: 18px 20px;
	border-radius: 12px;
	text-decoration: none;
	transition: background .15s;
}
.tgkb-result:hover {
	background: #eef0f4;
}
.tgkb-result-title {
	display: block;
	font-size: 17px;
	font-weight: 700;
	color: var(--tg-ink);
	margin-bottom: 4px;
}
.tgkb-result-ex {
	display: block;
	font-size: 14.5px;
	color: var(--tg-muted);
	line-height: 1.6;
}

/* ---- Home: hero ---- */
.tiger-hero-eyebrow {
	color: var(--tg-link);
}
.tiger-hero-title {
	font-weight: 800;
	letter-spacing: -.02em;
	line-height: 1.08;
	margin: 0 0 20px;
}
.tiger-hero-sub {
	line-height: 1.6;
	margin: 0 auto 32px;
	max-width: 620px;
}
.tiger-hero-cta {
	gap: 12px;
}
.tiger-hero-note {
	margin-top: 20px;
}

/* ---- Home: feature cards ---- */
.tiger-feature-cards .tiger-card {
	background: var(--tg-surface);
	border: 1px solid #ececf0;
	border-radius: var(--tg-radius);
	padding: 30px 28px;
	box-shadow: var(--tg-shadow);
	transition: transform .25s, box-shadow .25s;
}
.tiger-feature-cards .tiger-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--tg-shadow-lg);
}
.tiger-card-ico {
	font-size: 30px;
	margin: 0 0 14px;
	line-height: 1;
}

/* ---- Home: latest post cards (reuses .tgkb-card grid) ---- */
.tiger-post-cards .tgkb-card-title a,
.tgkb-card-title a {
	color: inherit;
	text-decoration: none;
}
.tiger-post-cards .tgkb-card-cat a {
	color: var(--tg-link);
	text-decoration: none;
}
.tiger-post-cards .tgkb-card-date {
	color: #667080;
	margin-top: auto;
}

/* ---- CTA band ---- */
.tiger-cta-band .tiger-cta-title {
	font-weight: 800;
	letter-spacing: -.01em;
}

/* ---- Blog: list layout (Customizer) ---- */
.tgkb-list {
	display: flex;
	flex-direction: column;
	gap: 0;
	max-width: 760px;
}
.tgkb-arch-head--left {
	text-align: left;
	margin-left: 0;
	margin-right: 0;
	max-width: 760px;
}
.tgkb-card--row {
	flex-direction: row;
	padding: 22px 4px;
	border: 0;
	border-bottom: 1px solid var(--tg-line);
	border-radius: 0;
	box-shadow: none;
	background: transparent;
}
.tgkb-card--row:hover {
	transform: none;
	box-shadow: none;
}
.tgkb-card--row .tgkb-card-body {
	padding: 0;
}
.tgkb-card--row .tgkb-card-title {
	font-size: 20px;
}

/* ---- Blog: sidebar layout (Customizer) ---- */
.tgkb-blog-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 52px;
	align-items: start;
}
.tgkb-blog-side {
	position: sticky;
	top: 96px;
	display: flex;
	flex-direction: column;
	gap: 28px;
}
.tgkb-widget {
	background: var(--tg-surface);
	border: 1px solid var(--tg-line);
	border-radius: var(--tg-radius);
	padding: 22px;
}
.tgkb-widget-title {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: #667080;
	margin: 0 0 14px;
}
.tgkb-widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.tgkb-widget li {
	margin: 0 0 9px;
	font-size: 14.5px;
}
.tgkb-widget a {
	color: var(--tg-muted);
	text-decoration: none;
}
.tgkb-widget a:hover {
	color: var(--tg-link);
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
	.tgkb-blog-grid {
		grid-template-columns: 1fr;
		gap: 32px;
	}
	.tgkb-blog-side {
		position: static;
	}
	.tgkb-card--row {
		flex-direction: column;
	}
	.tgkb-arch-grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}
	.tgkb-side {
		position: static;
	}
	.tgkb-side-h {
		display: none;
	}
	.tgkb-side-nav {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 8px;
	}
	.tgkb-side-link {
		border: 1px solid var(--tg-line);
		border-radius: 999px;
		padding: 7px 14px;
	}
	.tgkb-cards--2,
	.tgkb-cards--3 {
		grid-template-columns: 1fr;
	}
}

@media (min-width: 641px) and (max-width: 900px) {
	.tgkb-cards--3 {
		grid-template-columns: repeat(2, 1fr);
	}
}
