/* The Streamable quick-answer card (v1). Mobile first; two-pane at 768px and up.
   Colors read the site's Primer variables when present, with hex fallbacks. */

.tsqa,
.tsqa-catchup {
	--tsqa-fg: var(--color-fg-default, #1f2328);
	--tsqa-muted: var(--color-fg-muted, #59636e);
	--tsqa-border: var(--color-border-default, #d1d9e0);
	--tsqa-subtle: var(--color-canvas-subtle, #f6f8fa);
	--tsqa-bg: var(--color-canvas-default, #ffffff);
	--tsqa-link: var(--color-accent-fg, #0b62b8);
	--tsqa-accent: #1f2328; /* overridden inline per service */
	box-sizing: border-box;
	color: var(--tsqa-fg);
}

.tsqa *,
.tsqa-catchup * {
	box-sizing: border-box;
}

/* ---------- Card ---------- */

.tsqa {
	max-width: 768px;
	margin: 0 auto 24px;
	background: var(--tsqa-bg);
	border: 1px solid var(--tsqa-border);
	border-radius: 12px;
	box-shadow: 0 1px 3px rgba(31, 35, 40, 0.08);
	overflow: hidden;
	font-size: 15px;
	line-height: 1.35;
}

.tsqa__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 16px 10px;
}

.tsqa__overview {
	grid-column: 1 / -1;
	margin: 0;
	color: var(--tsqa-muted);
	font-size: 14px;
	line-height: 1.5;
}

.tsqa__title {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--tsqa-fg);
}

.tsqa__chip {
	flex-shrink: 0;
	padding: 3px 9px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
}

.tsqa__chip--positive { color: #0a5c2e; background: #e3f5ea; }
.tsqa__chip--caution  { color: #7a4a00; background: #fff4d6; }

.tsqa__body {
	display: grid;
	gap: 14px;
	padding: 0 16px 16px;
}

.tsqa__facts {
	display: grid;
	gap: 10px;
	margin: 0;
}

.tsqa__row {
	display: grid;
	grid-template-columns: 92px minmax(0, 1fr);
	column-gap: 12px;
}

.tsqa__row dt {
	margin: 0;
	font-weight: 400;
	font-style: normal;
	color: var(--tsqa-muted);
}

.tsqa__row dd {
	margin: 0;
	padding: 0;
}

.tsqa__strong {
	font-weight: 600;
}

.tsqa__action {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.tsqa__cta,
.tsqa__cta:visited {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 50px;
	padding: 0 16px;
	border-radius: 8px;
	background: var(--tsqa-accent);
	color: #ffffff;
	font-size: 16px;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
	transition: filter 0.15s ease;
}

.tsqa__cta:hover {
	color: #ffffff;
	text-decoration: none;
	filter: brightness(1.12);
}

.tsqa__cta:focus-visible {
	outline: 3px solid var(--tsqa-link);
	outline-offset: 2px;
}

.tsqa__domain {
	margin: 0;
	font-size: 12px;
	color: var(--tsqa-muted);
	text-align: center;
}

.tsqa__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 4px 16px;
	padding: 0 16px;
	min-height: 46px;
	border-top: 1px solid var(--tsqa-border);
	background: var(--tsqa-subtle);
}

.tsqa__cal,
.tsqa__cal:visited {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	font-size: 14px;
	font-weight: 600;
	color: var(--tsqa-link);
	text-decoration: none;
}

.tsqa__cal:hover {
	text-decoration: underline;
}

.tsqa__checked {
	font-size: 12px;
	color: var(--tsqa-muted);
}

/* Desktop and tablet: facts left, action right. */
@media (min-width: 768px) {
	.tsqa__head {
		padding: 16px 20px 12px;
	}

	.tsqa__body {
		grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
		align-items: center;
		gap: 24px;
		padding: 0 20px 20px;
	}

	.tsqa__row {
		grid-template-columns: 104px minmax(0, 1fr);
	}

	.tsqa__foot {
		padding: 0 20px;
	}
}

/* ---------- Catch-up module (sits inside .markdown-body) ---------- */

.tsqa-catchup {
	margin: 24px 0;
}

.markdown-body .tsqa-catchup .tsqa-catchup__title,
.tsqa-catchup .tsqa-catchup__title {
	margin: 0 0 12px;
	padding: 0;
	border: 0;
	font-size: 19px;
	line-height: 1.3;
}

.tsqa-catchup__grid {
	display: grid;
	gap: 12px;
}

@media (min-width: 768px) {
	.tsqa-catchup__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 16px;
	}
}

.tsqa-catchup__item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px;
	border: 1px solid var(--tsqa-border);
	border-radius: 10px;
	background: var(--tsqa-bg);
	box-shadow: 0 1px 2px rgba(31, 35, 40, 0.06);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.tsqa-catchup__item:hover {
	border-color: var(--tsqa-muted);
	box-shadow: 0 2px 8px rgba(31, 35, 40, 0.12);
}

.markdown-body .tsqa-catchup img.tsqa-catchup__poster,
.tsqa-catchup__poster {
	flex-shrink: 0;
	width: 64px;
	height: 96px;
	max-width: none;
	margin: 0;
	border-radius: 6px;
	object-fit: cover;
	background: var(--tsqa-subtle);
	box-shadow: 0 1px 4px rgba(31, 35, 40, 0.25);
}

.tsqa-catchup__text {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
	font-size: 14px;
	line-height: 1.4;
}

.markdown-body .tsqa-catchup a.tsqa-catchup__name,
.tsqa-catchup__name {
	font-size: 15px;
	font-weight: 700;
	color: var(--tsqa-fg);
	text-decoration: none;
}

.tsqa-catchup__meta {
	color: var(--tsqa-muted);
}

.markdown-body .tsqa-catchup a.tsqa-catchup__buy,
.tsqa-catchup__buy {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-weight: 600;
	color: var(--tsqa-link);
	text-decoration: none;
}

.markdown-body .tsqa-catchup a:hover {
	text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
	.tsqa__cta,
	.tsqa-catchup__item { transition: none; }
}
