/* Report tables share the article's paper, type and theme colors. */
.report-article {
	--report-table-rule: color-mix(in srgb, var(--theme-text) 13%, transparent);
	--report-table-edge: color-mix(in srgb, var(--theme-text) 30%, transparent);
}

/* Compact the gap between the navigation and the first page title. */
body > article.report-article {
	padding-top: 1.5rem;
}

.report-article > section > h2:first-child {
	margin-top: 0.5rem;
}

/* Keep dates primary and reading statistics together in a compact byline. */
.report-article .article-byline {
	opacity: 1;
	margin-bottom: 1.2rem;
}
.report-article .article-byline-main {
	font-size: 1.2rem;
}
.report-article .article-reading-stats {
	font-size: 1rem;
	color: color-mix(in srgb, var(--theme-text) 78%, var(--theme-bg));
}
.report-article .article-reading-stats > :is(.article-character-count, .article-reading-time) {
	white-space: nowrap;
}
.report-article .article-created-at {
	font-size: 0.9rem;
	color: color-mix(in srgb, var(--theme-text) 68%, var(--theme-bg));
}

/* Secondary editions use the existing list row and native disclosure. */
.report-article .report-editions {
	margin-top: 0.6rem;
	font-size: 1rem;
	line-height: 1.5;
	color: var(--theme-copy-btn-text);
}
.report-article .report-editions summary {
	cursor: pointer;
	padding-block: 0.5rem;
}
.report-article .report-editions ul {
	width: auto;
	padding-inline-start: 1.2rem;
	margin-block: 0.4rem;
	font-size: inherit;
}
.report-article .report-editions a:any-link { font-size: inherit; }
.report-article .report-editions time { white-space: nowrap; }
.report-article .report-editions summary:focus-visible {
	outline: 1px solid currentColor;
	outline-offset: 2px;
}

/* Keep long subsection headings out of the source-note column. */
.report-article > section > :is(h3, h4, h5, h6) {
	width: 55%;
}

/* Fill the text column; the right column remains reserved for source notes. */
.report-article > section > .table-scroll {
	width: 55%;
	max-width: 55%;
	margin: 2rem 0;
	left: auto;
	transform: none;
	overflow-x: auto;
	scrollbar-width: thin;
}

.report-article .table-scroll > table {
	width: 100%;
	min-width: 100%;
	margin: 0;
	border: 0;
	border-top: 1px solid var(--report-table-edge);
	border-bottom: 1px solid var(--report-table-edge);
	border-collapse: collapse;
	font-family: inherit;
	font-size: 1.3rem;
	line-height: 1.65;
	font-variant-numeric: tabular-nums;
	background: transparent;
}

.report-article table :is(th, td) {
	padding: 0.75rem 1rem;
	border: 0;
	border-bottom: 1px solid var(--report-table-rule);
	text-align: left;
	vertical-align: top;
	background: transparent;
	overflow-wrap: anywhere;
}

.report-article table thead :is(th, td) {
	font-weight: 600;
	color: var(--theme-heading);
	border-bottom-color: var(--report-table-edge);
}

.report-article table tbody tr,
.report-article table tbody tr:nth-child(even),
.report-article table tbody tr:hover {
	background: transparent;
}

.report-article table tbody tr:last-child :is(th, td) {
	border-bottom: 0;
}

/* Standalone table notes use the original right-side margin-note layout. */
.report-article .table-source-notes {
	margin: 0;
	padding: 0;
}

article .marginnote a:any-link {
	text-decoration: none;
	background-image: none;
	border-bottom: 0;
}

.report-article .source-image { display: block; margin: 0 0 0.8rem; }
.report-article .source-image > a { display: block; }
.report-article .source-image img {
	display: block;
	content-visibility: visible;
	contain-intrinsic-size: none;
	width: 100%;
	max-width: 100%;
	height: auto;
	max-height: none;
	margin: 0;
}
.report-article .marginnote:has(.source-image-gap) { position: relative; }
.report-article .source-image-gap {
	display: none;
	position: absolute;
	inset-inline: 0;
	margin: 0;
}
.report-article .source-image-gap.is-gap-visible { display: block; }
@container report-reading (max-width: 58rem) {
	.report-article .marginnote .source-image-gap {
		display: block;
		position: static;
		margin: 0 0 0.8rem;
	}
}
@media (max-width: 760px) {
	.report-article .marginnote .source-image-gap { display: block; position: static; margin: 0 0 0.8rem; }
}

@media (min-width: 761px) {
	.report-article .table-source-notes > .marginnote:first-child {
		margin-top: 2rem;
	}
}

@media (max-width: 760px) {
	.report-article > section > :is(h3, h4, h5, h6),
	.report-article > section > .table-scroll {
		width: 100%;
		max-width: 100%;
	}

	.report-article .table-scroll > table {
		font-size: 1.15rem;
	}

	.report-article table :is(th, td) {
		padding: 0.65rem 0.6rem;
	}

	.report-article .table-source-notes > .marginnote:not(.is-expanded) {
		display: none;
	}
}

/* Chinese reading refinements keep the original serif family and table rules. */
.report-article > section {
	container-name: report-reading;
	container-type: inline-size;
}

.report-article :is(h2, h3, h4, h5, h6),
.report-article :is(h2, h3, h4, h5, h6) .heading-en {
	font-family: inherit;
	font-style: normal;
	line-height: 1.4;
}

.report-article > section > h3 {
	font-weight: 600;
	margin-top: 2.6rem;
	margin-bottom: 1rem;
}

.report-article > section > .report-calendar-slot + h3.report-overview {
	margin-top: 1.25rem;
}

.report-article > section > h4 {
	font-size: 1.4rem;
	font-weight: 600;
	margin-top: 1.8rem;
	margin-bottom: 0.8rem;
}

.report-article p {
	text-align: left;
}

.report-article :is(p, li) > sup.footnote-ref {
	margin-inline: 0.12em;
}

.report-article .marginnote {
	--report-inline-note: 0;
	text-align: left;
	line-height: 1.55;
	overflow-wrap: break-word;
}

.report-article .source-meta {
	display: block;
	margin-top: 0.25em;
	font-size: 0.86em;
	line-height: 1.55;
	color: color-mix(in srgb, var(--theme-text) 72%, var(--theme-bg));
}

.report-article .source-note-layout {
	display: grid;
	grid-template-columns: 3ch minmax(0, 1fr);
	column-gap: 0.45em;
	align-items: baseline;
}

.report-article .source-note-layout > sup {
	font-size: 0.75em;
	line-height: 1;
	text-align: right;
	vertical-align: baseline;
}

.report-article .source-content {
	display: block;
	min-width: 0;
}

.report-article a.footnote-ref-link:any-link {
	text-decoration: none;
	background-image: none;
	border-bottom: 0;
}

.report-article :is(.footnote-ref, .sidenote-footnote).is-citation-active,
.report-article .sidenote-footnote:target {
	--highlight: var(--highlight-weak);
	transition-delay: 0s;
}

.report-article .marginnote a:focus-visible {
	outline: 1px solid currentColor;
	outline-offset: 3px;
}

/* Fold notes and widen text and tables together when both columns no longer fit. */
@container report-reading (max-width: 58rem) {
	.report-article > section > :is(p:not(.table-source-notes), ul, ol, dl, h3, h4, h5, h6, .article-byline, .table-scroll) {
		width: 100%;
		max-width: 100%;
	}

	.report-article .marginnote {
		--report-inline-note: 1;
		display: none;
		float: none;
		clear: both;
		position: static;
		translate: none !important;
		inline-size: 100%;
		width: 100%;
		margin: 0.8rem 0 1rem;
		padding: 0.8rem 1rem;
		box-sizing: border-box;
		background: var(--theme-pre-bg);
		border: 1px solid var(--theme-pre-border);
		border-radius: var(--radius-sm);
	}

	.report-article .marginnote.is-expanded {
		display: block;
	}

	.report-article .sidenote-only {
		display: block;
	}
}
