/* Tiger Theme — single post / page readable layout + sticky TOC.
   Ported from the proven native docs single design (Plan 18 §6). */

.tiger-single .tgkb-wrap,
.tiger-page .tgkb-wrap {
	max-width: 1120px;
	margin: 0 auto;
	padding: 40px 24px 88px;
}

/* Header */
.tgkb-head {
	margin-bottom: 30px;
}
.tgkb-cat {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--tg-link);
	background: #fdeee6;
	padding: 5px 12px;
	border-radius: 999px;
	text-decoration: none;
	margin-bottom: 16px;
}
.tgkb-title {
	font-size: clamp(30px, 5vw, 42px);
	line-height: 1.12;
	font-weight: 800;
	margin: 0 0 14px;
	color: var(--tg-ink);
	letter-spacing: -.015em;
}
.tgkb-meta {
	font-size: 14px;
	color: #667080;
	gap: 4px;
}
.tgkb-hero-img img {
	width: 100%;
	object-fit: cover;
}

/* Two-column: article + TOC */
.tgkb-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 236px;
	gap: 52px;
	align-items: start;
}

/* Article typography */
.tgkb-article {
	font-size: 16.5px;
	line-height: 1.78;
	color: #3a4152;
	min-width: 0;
	max-width: none;
}
.tgkb-article > *:first-child {
	margin-top: 0;
}
.tgkb-article h2 {
	font-size: 25px;
	font-weight: 700;
	color: var(--tg-ink);
	margin: 44px 0 14px;
	scroll-margin-top: 100px;
	letter-spacing: -.01em;
}
.tgkb-article h3 {
	font-size: 19px;
	font-weight: 700;
	color: var(--tg-ink);
	margin: 26px 0 10px;
}
.tgkb-article p {
	margin: 0 0 16px;
}
.tgkb-article a {
	color: var(--tg-link);
	text-decoration: none;
	font-weight: 500;
}
.tgkb-article a:hover {
	text-decoration: underline;
}
.tgkb-article ul,
.tgkb-article ol {
	margin: 0 0 16px;
	padding-left: 22px;
}
.tgkb-article li {
	margin: 7px 0;
}
.tgkb-article strong {
	color: var(--tg-ink);
	font-weight: 700;
}
.tgkb-article img {
	border-radius: 12px;
}
.tgkb-article table {
	width: 100%;
	border-collapse: collapse;
	margin: 6px 0 22px;
	font-size: 15px;
	background: var(--tg-surface);
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(16, 24, 40, .05);
}
.tgkb-article th,
.tgkb-article td {
	border: 1px solid #e9ebf1;
	padding: 11px 15px;
	text-align: left;
	vertical-align: top;
}
.tgkb-article th {
	background: #f4f5f8;
	font-weight: 700;
	color: var(--tg-ink);
}
.tgkb-article blockquote {
	margin: 0 0 18px;
	padding: 14px 18px;
	background: var(--tg-surface);
	border-left: 3px solid var(--tg-brand);
	border-radius: 8px;
	color: #3a4152;
}
.tgkb-article code {
	background: #eef0f4;
	padding: 2px 6px;
	border-radius: 5px;
	font-size: .9em;
}
.tgkb-article pre {
	background: #15192e;
	color: #e6e8ee;
	padding: 18px 20px;
	border-radius: 12px;
	overflow: auto;
	font-size: 14px;
	line-height: 1.6;
}
.tgkb-article pre code {
	background: none;
	padding: 0;
	color: inherit;
}

/* TOC */
.tgkb-toc {
	position: sticky;
	top: 96px;
}
.tgkb-toc-h {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: #667080;
	margin: 0 0 12px;
}
.tgkb-toc-nav a {
	display: block;
	font-size: 13.5px;
	line-height: 1.4;
	color: var(--tg-muted);
	text-decoration: none;
	padding: 6px 0 6px 14px;
	border-left: 2px solid var(--tg-line);
	transition: color .15s, border-color .15s;
}
.tgkb-toc-nav a:hover {
	color: var(--tg-ink);
}
.tgkb-toc-nav a.is-active {
	color: var(--tg-link);
	border-left-color: var(--tg-brand);
	font-weight: 600;
}

/* Post navigation */
.tgkb-post-nav {
	margin-top: 56px;
	padding-top: 28px;
	border-top: 1px solid var(--tg-line);
	gap: 16px;
}
.tgkb-post-nav .wp-block-post-navigation-link a {
	color: var(--tg-ink);
	text-decoration: none;
	font-weight: 600;
}
.tgkb-post-nav .wp-block-post-navigation-link a:hover {
	color: var(--tg-link);
}

/* Comments */
.tgkb-comments {
	margin-top: 64px;
	padding-top: 36px;
	border-top: 1px solid var(--tg-line);
}
.tgkb-h2 {
	font-size: 26px;
	font-weight: 800;
	color: var(--tg-ink);
	margin: 0 0 24px;
	letter-spacing: -.01em;
}

@media (max-width: 900px) {
	.tgkb-grid {
		grid-template-columns: 1fr;
		gap: 0;
	}
	.tgkb-toc {
		display: none;
	}
}
