/*
Theme Name: ResultAtlas
Theme URI: https://resultatlas.com/
Author: ResultAtlas
Description: A minimal block theme for the ResultAtlas statistical-output reference site.
Requires at least: 7.1
Tested up to: 7.1
Requires PHP: 8.3
Version: 0.1.1
Text Domain: resultatlas
*/

:root {
	color-scheme: light;
}

html {
	scroll-behavior: smooth;
}

body {
	text-rendering: optimizeLegibility;
}

a {
	text-underline-offset: 0.16em;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
	outline: 3px solid currentColor;
	outline-offset: 3px;
}

.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	overflow: hidden;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background: #ffffff;
	clip: auto !important;
	clip-path: none;
	color: #111827;
	display: block;
	font-size: 1rem;
	height: auto;
	left: 1rem;
	padding: 0.75rem 1rem;
	top: 1rem;
	width: auto;
	z-index: 100000;
}

.wp-site-blocks {
	min-height: 100vh;
}

.ra-site-header,
.ra-site-footer {
	border-color: var(--wp--preset--color--line);
}

.ra-article-header {
	max-width: var(--wp--style--global--content-size);
}

.ra-content table {
	border-collapse: collapse;
	font-variant-numeric: tabular-nums;
	width: 100%;
}

.ra-content caption {
	font-weight: 700;
	padding-block-end: 0.5rem;
	text-align: left;
}

.ra-content th,
.ra-content td {
	border: 1px solid var(--wp--preset--color--line);
	padding: 0.65rem;
	text-align: left;
	vertical-align: top;
}

.ra-table-scroll {
	overflow-x: auto;
	overscroll-behavior-inline: contain;
	-webkit-overflow-scrolling: touch;
}

.ra-figure,
.ra-content figure {
	margin-block: var(--wp--preset--spacing--50);
}

.ra-figure img,
.ra-figure svg,
.ra-content figure img,
.ra-content figure svg {
	display: block;
	height: auto;
	max-width: 100%;
}

.ra-source-notes {
	border-top: 1px solid var(--wp--preset--color--line);
	margin-block-start: var(--wp--preset--spacing--70);
	padding-block-start: var(--wp--preset--spacing--50);
}

.ra-source-notes li {
	margin-block-end: 0.75rem;
}

.ra-provenance-label {
	background: var(--wp--preset--color--surface-muted);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 0.25rem;
	display: inline-block;
	font-size: 0.78em;
	font-weight: 700;
	letter-spacing: 0.02em;
	padding: 0.1rem 0.35rem;
	text-transform: uppercase;
}

@media (max-width: 640px) {
	.ra-content .ra-responsive-table table,
	.ra-content .ra-responsive-table thead,
	.ra-content .ra-responsive-table tbody,
	.ra-content .ra-responsive-table tr,
	.ra-content .ra-responsive-table th,
	.ra-content .ra-responsive-table td {
		display: block;
	}

	.ra-content .ra-responsive-table thead {
		clip: rect(0 0 0 0);
		clip-path: inset(50%);
		height: 1px;
		overflow: hidden;
		position: absolute;
		width: 1px;
	}

	.ra-content .ra-responsive-table tr {
		border: 1px solid var(--wp--preset--color--line);
		margin-block-end: 0.75rem;
	}

	.ra-content .ra-responsive-table td {
		border: 0;
		border-bottom: 1px solid var(--wp--preset--color--line);
	}

	.ra-content .ra-responsive-table td::before {
		content: attr(data-label);
		display: block;
		font-weight: 700;
		margin-block-end: 0.2rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}
