.ggt-guide-single .ggt-guide-related,
.ggt-guide-archive .ggt-story-archive-header {
	width: var(--ggt-story-prose, min(680px, calc(100vw - 48px)));
	margin: 0 auto;
	padding: 0 0 32px;
}

.ggt-guide-related {
	border-top: 1px solid var(--ggt-story-line, rgba(17, 17, 17, 0.12));
	margin-top: 40px;
	padding-top: 24px;
}

.ggt-guide-related h2 {
	font-size: 1.1rem;
	margin: 0 0 12px;
}

.ggt-guide-related-list {
	margin: 0;
	padding-left: 1.1em;
}

.ggt-guide-related-list a {
	text-decoration: underline;
	text-underline-offset: 2px;
}

.ggt-guide-archive-list {
	width: var(--ggt-story-prose, min(680px, calc(100vw - 48px)));
	margin: 0 auto 48px;
}

.ggt-guide-format {
	display: block;
	font-size: 12px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	opacity: 0.65;
	margin-bottom: 4px;
}

.ggt-guide-archive .pagination,
.ggt-guide-archive .nav-links {
	width: var(--ggt-story-prose, min(680px, calc(100vw - 48px)));
	margin: 0 auto 48px;
}

/* -------------------------------------------------------------------------
   Comparison tables (Kirki-style glance matrix)
   ------------------------------------------------------------------------- */

.ggt-guide-entry .ggt-ch-compare-wrap,
.ggt-guide-entry table.ggt-ch-compare {
	--ggt-ch-tbl-border: #e8e8ec;
	--ggt-ch-tbl-ink: #1a1a1f;
	--ggt-ch-tbl-muted: #8b8b96;
	--ggt-ch-tbl-yes: #2f9e62;
	--ggt-ch-tbl-no: #e04b4b;
	--ggt-ch-tbl-soft: #f4f1fa;
	--ggt-ch-tbl-accent: #6b4eff;
	width: min(920px, 100%);
	margin: 1.75rem auto;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.ggt-guide-entry .ggt-ch-compare-wrap {
	border: 1px solid var(--ggt-ch-tbl-border);
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 1px 0 rgba(17, 17, 17, 0.03);
}

.ggt-guide-entry table.ggt-ch-compare {
	margin: 0;
	border-collapse: separate;
	border-spacing: 0;
	width: 100%;
	min-width: 420px;
	font-size: 0.98rem;
	line-height: 1.35;
	color: var(--ggt-ch-tbl-ink);
}

.ggt-guide-entry .ggt-ch-compare-wrap table.ggt-ch-compare {
	border: 0;
	border-radius: 0;
	box-shadow: none;
	background: transparent;
}

.ggt-guide-entry table.ggt-ch-compare th,
.ggt-guide-entry table.ggt-ch-compare td {
	padding: 16px 18px;
	border-bottom: 1px solid var(--ggt-ch-tbl-border);
	border-right: 0;
	border-left: 0;
	border-top: 0;
	vertical-align: middle;
	text-align: center;
	background: transparent;
}

.ggt-guide-entry table.ggt-ch-compare tr:last-child th,
.ggt-guide-entry table.ggt-ch-compare tr:last-child td {
	border-bottom: 0;
}

.ggt-guide-entry table.ggt-ch-compare th:first-child,
.ggt-guide-entry table.ggt-ch-compare td:first-child {
	text-align: left;
	font-weight: 500;
	min-width: 11rem;
	color: var(--ggt-ch-tbl-ink);
}

.ggt-guide-entry table.ggt-ch-compare thead th {
	font-size: 0.72rem;
	font-weight: 650;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ggt-ch-tbl-muted);
	padding-top: 18px;
	padding-bottom: 14px;
}

/* Matrix: last product column highlighted (Kirki-style). */
.ggt-guide-entry .ggt-ch-compare-wrap--matrix table.ggt-ch-compare thead th:last-child {
	color: var(--ggt-ch-tbl-accent);
}

.ggt-guide-entry .ggt-ch-compare-wrap--matrix table.ggt-ch-compare th:last-child,
.ggt-guide-entry .ggt-ch-compare-wrap--matrix table.ggt-ch-compare td:last-child {
	background: var(--ggt-ch-tbl-soft);
}

.ggt-guide-entry .ggt-ch-compare-wrap--matrix table.ggt-ch-compare thead th:last-child {
	border-top-right-radius: 13px;
}

.ggt-guide-entry .ggt-ch-compare-wrap--matrix table.ggt-ch-compare tr:last-child td:last-child,
.ggt-guide-entry .ggt-ch-compare-wrap--matrix table.ggt-ch-compare tr:last-child th:last-child {
	border-bottom-right-radius: 13px;
}

.ggt-guide-entry .ggt-ch-mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.35em;
	height: 1.35em;
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1;
	speak: literal;
}

.ggt-guide-entry .ggt-ch-mark--yes {
	color: var(--ggt-ch-tbl-yes);
}

.ggt-guide-entry .ggt-ch-mark--no {
	color: var(--ggt-ch-tbl-no);
}

.ggt-guide-entry .ggt-ch-mark--unknown,
.ggt-guide-entry .ggt-ch-mark--partial {
	color: #b0b0b8;
	font-weight: 600;
	font-size: 1.35rem;
}

.ggt-guide-entry .ggt-ch-cell--yes,
.ggt-guide-entry .ggt-ch-cell--no,
.ggt-guide-entry .ggt-ch-cell--unknown,
.ggt-guide-entry .ggt-ch-cell--partial {
	font-variant-numeric: tabular-nums;
}

/* Fallback: plain tables in guide body without enhance (edge cases). */
.ggt-guide-entry > table:not(.ggt-ch-compare) {
	width: 100%;
	border-collapse: collapse;
	margin: 1.5rem 0;
}

.ggt-guide-entry > table:not(.ggt-ch-compare) th,
.ggt-guide-entry > table:not(.ggt-ch-compare) td {
	padding: 12px 14px;
	border: 1px solid var(--ggt-ch-tbl-border, #e8e8ec);
}

@media (max-width: 640px) {
	.ggt-guide-entry table.ggt-ch-compare th,
	.ggt-guide-entry table.ggt-ch-compare td {
		padding: 12px 12px;
		font-size: 0.92rem;
	}

	.ggt-guide-entry table.ggt-ch-compare th:first-child,
	.ggt-guide-entry table.ggt-ch-compare td:first-child {
		min-width: 8.5rem;
		position: sticky;
		left: 0;
		background: #fff;
		z-index: 1;
		box-shadow: 4px 0 8px -6px rgba(0, 0, 0, 0.18);
	}

	.ggt-guide-entry .ggt-ch-compare-wrap--matrix table.ggt-ch-compare td:first-child,
	.ggt-guide-entry .ggt-ch-compare-wrap--matrix table.ggt-ch-compare th:first-child {
		background: #fff;
	}
}
