.tcgp-qn,
.tcgp-qn-history,
.tcgp-qn-source,
.tcgp-qn-single {
	--tcgp-qn-text: #151b23;
	--tcgp-qn-muted: #667085;
	--tcgp-qn-accent: #1f5f9f;
	--tcgp-qn-accent-dark: #123b65;
	--tcgp-qn-green: #1f7a4d;
	--tcgp-qn-gold: #b98a2d;
	--tcgp-qn-border: #d9dee7;
	--tcgp-qn-surface: #f7f9fc;
	color: var(--tcgp-qn-text);
}

.tcgp-qn {
	max-width: 760px;
}

.tcgp-qn__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 2rem;
}

.tcgp-qn__heading {
	margin: 0;
	font-size: clamp(1.1rem, 2vw, 1.4rem);
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1.25;
	text-transform: uppercase;
}

.tcgp-qn__history-link {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	color: inherit;
	font-weight: 650;
	text-decoration: none;
}

.tcgp-qn__history-link:hover,
.tcgp-qn__history-link:focus-visible,
.tcgp-qn__title:hover,
.tcgp-qn__title:focus-visible {
	color: var(--tcgp-qn-accent);
}

.tcgp-qn__list,
.tcgp-qn-history__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.tcgp-qn__item {
	margin: 0 0 2rem;
}

.tcgp-qn__time,
.tcgp-qn-history__time {
	display: block;
	margin-bottom: .55rem;
	color: var(--tcgp-qn-muted);
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
	font-size: 1rem;
	font-variant-numeric: tabular-nums;
}

.tcgp-qn__title {
	color: inherit;
	font-size: clamp(1.25rem, 2.9vw, 1.72rem);
	font-weight: 760;
	line-height: 1.42;
	text-decoration-color: var(--tcgp-qn-accent);
	text-decoration-thickness: .08em;
	text-underline-offset: .12em;
}

.tcgp-qn__empty {
	color: var(--tcgp-qn-muted);
}

.tcgp-qn-history__filters {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 12px;
	margin: 0 0 18px;
	padding: 16px 18px;
	border: 1px solid var(--tcgp-qn-border);
	border-radius: 8px;
	background: var(--tcgp-qn-surface);
}

.tcgp-qn-history__field {
	display: grid;
	gap: 6px;
	min-width: min(100%, 260px);
}

.tcgp-qn-history__filters label {
	color: var(--tcgp-qn-muted);
	font-size: .82rem;
	font-weight: 800;
	letter-spacing: 0;
}

.tcgp-qn-history__filters select {
	min-height: 44px;
	padding: 8px 38px 8px 12px;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	background-color: #fff;
	color: var(--tcgp-qn-text);
	font: inherit;
}

.tcgp-qn-history__filters select:focus-visible {
	border-color: var(--tcgp-qn-accent);
	box-shadow: 0 0 0 3px rgba(31, 95, 159, .14);
	outline: 0;
}

.tcgp-qn-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 9px 15px;
	border: 1px solid transparent;
	border-radius: 6px;
	font-size: .94rem;
	font-weight: 800;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
}

.tcgp-qn-button--primary,
.tcgp-qn-button--primary:visited {
	border-color: var(--tcgp-qn-accent);
	background: var(--tcgp-qn-accent);
	color: #fff;
}

.tcgp-qn-button--primary:hover,
.tcgp-qn-button--primary:focus-visible {
	border-color: var(--tcgp-qn-accent-dark);
	background: var(--tcgp-qn-accent-dark);
	color: #fff;
}

.tcgp-qn-button--secondary,
.tcgp-qn-button--secondary:visited {
	border-color: #cbd5e1;
	background: #fff;
	color: var(--tcgp-qn-accent);
}

.tcgp-qn-button--secondary:hover,
.tcgp-qn-button--secondary:focus-visible {
	border-color: var(--tcgp-qn-accent);
	background: #f4f7fb;
	color: var(--tcgp-qn-accent-dark);
}

.tcgp-qn-button:focus-visible,
.tcgp-qn-history__reset:focus-visible,
.tcgp-qn-single__back:focus-visible {
	outline: 3px solid rgba(31, 95, 159, .22);
	outline-offset: 3px;
}

.tcgp-qn-history__reset {
	align-self: center;
	padding: 8px 4px;
	color: var(--tcgp-qn-accent);
	font-size: .9rem;
	font-weight: 750;
	text-underline-offset: 3px;
}

.tcgp-qn-history__list {
	border-top: 1px solid var(--tcgp-qn-border);
}

.tcgp-qn-history__item {
	display: grid;
	grid-template-columns: minmax(150px, 185px) minmax(0, 1fr);
	gap: 26px;
	padding: 28px 4px;
	border-bottom: 1px solid var(--tcgp-qn-border);
}

.tcgp-qn-history__meta {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
}

.tcgp-qn-history__time {
	display: block;
	margin: 0 0 3px;
	font-family: inherit;
	font-size: .88rem;
	font-weight: 750;
}

.tcgp-qn-history__game,
.tcgp-qn-history__type,
.tcgp-qn-single__game {
	display: inline-flex;
	align-items: center;
	min-height: 26px;
	padding: 4px 8px;
	border-radius: 4px;
	font-size: .76rem;
	font-weight: 800;
	line-height: 1.15;
}

.tcgp-qn-history__game,
.tcgp-qn-single__game {
	background: #eaf2fb;
	color: var(--tcgp-qn-accent-dark);
}

.tcgp-qn-history__type {
	background: #f6f1e7;
	color: #73551d;
}

.tcgp-qn-history__content {
	min-width: 0;
}

.tcgp-qn-history__item h3 {
	margin: 0 0 9px;
	font-size: clamp(1.25rem, 2vw, 1.65rem);
	line-height: 1.2;
}

.tcgp-qn-history__item h3 a {
	color: var(--tcgp-qn-text);
	text-decoration: none;
}

.tcgp-qn-history__item h3 a:hover,
.tcgp-qn-history__item h3 a:focus-visible {
	color: var(--tcgp-qn-accent);
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}

.tcgp-qn-history__item p {
	max-width: 74ch;
	margin: 0;
	color: var(--tcgp-qn-muted);
	font-size: 1rem;
	line-height: 1.65;
}

.tcgp-qn-history__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 17px;
}

.tcgp-qn-pagination ul {
	display: flex;
	flex-wrap: wrap;
	gap: .45rem;
	margin: 2rem 0 0;
	padding: 0;
	list-style: none;
}

.tcgp-qn-pagination a,
.tcgp-qn-pagination span {
	display: block;
	min-width: 42px;
	padding: 9px 12px;
	border: 1px solid var(--tcgp-qn-border);
	border-radius: 6px;
	background: #fff;
	color: var(--tcgp-qn-accent);
	font-weight: 750;
	text-align: center;
	text-decoration: none;
}

.tcgp-qn-pagination .current {
	border-color: var(--tcgp-qn-accent);
	background: var(--tcgp-qn-accent);
	color: #fff;
}

.tcgp-qn-source {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-top: clamp(34px, 6vw, 54px);
	padding: 24px 0;
	border-top: 1px solid var(--tcgp-qn-border);
	border-bottom: 1px solid var(--tcgp-qn-border);
}

.tcgp-qn-source__details {
	display: grid;
	gap: 3px;
	min-width: 0;
	color: var(--tcgp-qn-muted);
	font-size: .92rem;
}

.tcgp-qn-source__details strong {
	overflow-wrap: anywhere;
	color: var(--tcgp-qn-text);
	font-size: 1.05rem;
}

.tcgp-qn-source__label {
	color: var(--tcgp-qn-gold);
	font-size: .74rem;
	font-weight: 850;
	text-transform: uppercase;
}

.tcgp-qn-source__button {
	flex: 0 0 auto;
}

.tcgp-qn-history-page .site-main--page {
	max-width: 1120px;
}

.tcgp-qn-history-page .page-content__header {
	margin-bottom: 22px;
	padding: clamp(20px, 3vw, 30px);
}

.tcgp-qn-history-page .page-content__title {
	font-size: clamp(2rem, 4vw, 3.25rem);
	letter-spacing: 0;
}

.single-tcgp_quick_news .site-main--single,
.tcgp-qn-single-page {
	max-width: 980px;
}

.tcgp-qn-single__back {
	display: inline-flex;
	margin-bottom: 28px;
	color: var(--tcgp-qn-accent);
	font-size: .92rem;
	font-weight: 800;
	text-decoration: none;
}

.tcgp-qn-single__back:hover {
	color: var(--tcgp-qn-accent-dark);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.tcgp-qn-single__header {
	max-width: 880px;
	padding-bottom: clamp(24px, 4vw, 38px);
	border-bottom: 1px solid var(--tcgp-qn-border);
}

.tcgp-qn-single__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 14px;
	margin-bottom: 16px;
	color: var(--tcgp-qn-muted);
	font-size: .88rem;
	font-weight: 700;
}

.tcgp-qn-single__title {
	max-width: 18ch;
	margin: 0;
	color: var(--tcgp-qn-text);
	font-size: clamp(2.1rem, 5vw, 3.75rem);
	font-weight: 900;
	letter-spacing: 0;
	line-height: 1.06;
	overflow-wrap: anywhere;
}

.tcgp-qn-single__content {
	max-width: 76ch;
	padding-top: clamp(26px, 4vw, 40px);
	color: #354052;
	font-size: clamp(1.04rem, 1.5vw, 1.16rem);
	line-height: 1.75;
}

.tcgp-qn-single__content > *:first-child {
	margin-top: 0;
}

.tcgp-qn-single__content > *:last-child {
	margin-bottom: 0;
}

@media (max-width: 520px) {
	.tcgp-qn__header {
		align-items: flex-start;
		margin-bottom: 1.5rem;
	}

	.tcgp-qn__heading {
		letter-spacing: 0;
	}

	.tcgp-qn__history-link span:first-child {
		display: none;
	}

	.tcgp-qn__item {
		margin-bottom: 1.6rem;
	}

	.tcgp-qn-history__filters,
	.tcgp-qn-history__field,
	.tcgp-qn-history__filters .tcgp-qn-button {
		width: 100%;
	}

	.tcgp-qn-history__item {
		grid-template-columns: 1fr;
		gap: 14px;
		padding: 24px 0;
	}

	.tcgp-qn-history__meta {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
	}

	.tcgp-qn-history__actions .tcgp-qn-button {
		width: 100%;
	}

	.tcgp-qn-single__back {
		margin-bottom: 22px;
	}

	.tcgp-qn-single__title {
		font-size: 2.15rem;
	}

	.tcgp-qn-source {
		align-items: stretch;
		flex-direction: column;
	}

	.tcgp-qn-source__button {
		width: 100%;
	}
}
