.co2-publisher,
.co2-publisher *,
.co2-publisher *::before,
.co2-publisher *::after {
	box-sizing: border-box;
}

.co2-publisher {
	--co2-ink: oklch(21.6% 0.029 252);
	--co2-muted: oklch(50.2% 0.026 248);
	--co2-paper: oklch(96.8% 0.008 228);
	--co2-card: oklch(100% 0 0);
	--co2-border: oklch(88.4% 0.013 231);
	--co2-primary: oklch(57.3% 0.203 15.2);
	--co2-primary-foreground: oklch(99% 0.003 240);
	--co2-ring: oklch(54.9% 0.073 232);
	--co2-secondary: oklch(93.6% 0.013 231);
	color: var(--co2-ink);
	font-family: "Source Sans 3", system-ui, sans-serif;
	line-height: 1.5;
}

.co2-publisher__form,
.co2-publisher__success {
	display: grid;
	gap: 1.5rem;
}

.co2-publisher__success-title {
	margin: 0;
	font-family: Newsreader, Georgia, serif;
	font-size: 1.5rem;
	font-weight: 400;
}

.co2-publisher__fields {
	display: grid;
	gap: 1.5rem;
}

@media (min-width: 640px) {
	.co2-publisher__fields--split {
		grid-template-columns: 1fr 1fr;
	}
}

.co2-publisher__field {
	display: block;
	color: var(--co2-ink);
	font-size: 0.875rem;
	font-weight: 600;
}

.co2-publisher__label-row {
	display: flex;
	align-items: center;
	gap: 0.4rem;
}

.co2-publisher__field input,
.co2-publisher__field select,
.co2-publisher__field textarea,
.co2-publisher__search input {
	width: 100%;
	margin-top: 0.5rem;
	padding: 0.65rem 0.75rem;
	border: 1px solid var(--co2-border);
	border-radius: 0;
	background: var(--co2-card);
	color: var(--co2-ink);
	font: inherit;
	font-weight: 400;
}

.co2-publisher__field textarea {
	resize: vertical;
}

.co2-publisher__field input:focus,
.co2-publisher__field select:focus,
.co2-publisher__field textarea:focus,
.co2-publisher__search input:focus,
.co2-publisher__sort:focus-visible,
.co2-publisher__button:focus-visible,
.co2-publisher__hint summary:focus-visible {
	outline: 2px solid var(--co2-ring);
	outline-offset: 2px;
}

.co2-publisher__field input[aria-invalid="true"],
.co2-publisher__field select[aria-invalid="true"],
.co2-publisher__field textarea[aria-invalid="true"],
.co2-publisher__consent input[aria-invalid="true"] {
	border-color: var(--co2-primary);
}

.co2-publisher__field input[readonly] {
	background: var(--co2-secondary);
	color: var(--co2-muted);
	cursor: default;
}

.co2-publisher__file-hint {
	display: block;
	margin-top: 0.35rem;
	color: var(--co2-muted);
	font-weight: 400;
}

.co2-publisher__hint {
	position: relative;
	font-weight: 400;
}

.co2-publisher__hint summary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1rem;
	height: 1rem;
	border: 1px solid currentColor;
	border-radius: 999px;
	color: var(--co2-muted);
	font-size: 0.65rem;
	line-height: 1;
	cursor: pointer;
	list-style: none;
}

.co2-publisher__hint summary::-webkit-details-marker {
	display: none;
}

.co2-publisher__hint p,
.co2-publisher__hint-body {
	position: absolute;
	z-index: 5;
	left: 0;
	top: calc(100% + 0.4rem);
	width: min(18rem, 70vw);
	margin: 0;
	padding: 0.75rem 0.9rem;
	border: 1px solid var(--co2-border);
	background: var(--co2-card);
	color: var(--co2-ink);
	font-size: 0.8125rem;
	font-weight: 400;
	box-shadow: 0 8px 24px oklch(21.6% 0.029 252 / 0.08);
}

.co2-publisher__hint-body p {
	position: static;
	width: auto;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
}

.co2-publisher__hint-body p + p {
	margin-top: 0.5rem;
}

.co2-publisher__hint a {
	color: var(--co2-primary);
}

.co2-publisher__word-count.is-over {
	color: var(--co2-primary);
	font-weight: 600;
}

.co2-publisher__consent {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	color: var(--co2-muted);
	font-size: 0.875rem;
	font-weight: 400;
}

.co2-publisher__consent input {
	margin-top: 0.2rem;
}

.co2-publisher__hp {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.co2-publisher__button {
	display: inline-block;
	padding: 0.75rem 1.4rem;
	border: 1px solid var(--co2-primary);
	background: var(--co2-primary);
	color: var(--co2-primary-foreground);
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
}

.co2-publisher__form > .co2-publisher__button {
	justify-self: start;
}

.co2-publisher__button:hover {
	opacity: 0.9;
}

.co2-publisher__button--ghost {
	background: transparent;
	color: var(--co2-ink);
	border-color: var(--co2-ink);
}

.co2-publisher__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.co2-publisher__success {
	padding: 2rem;
	border: 1px solid var(--co2-border);
	background: var(--co2-card);
}

.co2-publisher__errors {
	padding: 0.9rem 1rem;
	border: 1px solid var(--co2-primary);
	background: oklch(97% 0.02 15);
	color: var(--co2-ink);
	font-size: 0.875rem;
	font-weight: 400;
}

.co2-publisher__errors p,
.co2-publisher__errors ul {
	margin: 0;
}

.co2-publisher__errors ul {
	margin-top: 0.4rem;
	padding-left: 1.1rem;
}

.co2-publisher__toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.co2-publisher__search {
	display: block;
	width: min(100%, 20rem);
}

.co2-publisher__search input {
	margin-top: 0;
}

.co2-publisher__table-wrap {
	overflow-x: auto;
}

.co2-publisher__table {
	width: 100%;
	min-width: 36rem;
	border-collapse: collapse;
	font-size: 0.875rem;
	text-align: left;
}

.co2-publisher--newest .co2-publisher__table {
	min-width: 0;
}

.co2-publisher__table th {
	padding: 0.75rem;
	border-top: 1px solid var(--co2-border);
	border-bottom: 1px solid var(--co2-border);
	background: var(--co2-paper);
	font-weight: 600;
}

.co2-publisher__table th.is-num,
.co2-publisher__table th:last-child,
.co2-publisher__num,
.co2-publisher__year,
.co2-publisher__published {
	text-align: right;
}

.co2-publisher__table td {
	padding: 0.85rem 0.75rem;
	border-bottom: 1px solid var(--co2-border);
}

.co2-publisher__table tbody tr:hover td {
	background: var(--co2-paper);
}

.co2-publisher__name {
	font-weight: 600;
}

.co2-publisher__country,
.co2-publisher__muted,
.co2-publisher__year,
.co2-publisher__published,
.co2-publisher__note {
	color: var(--co2-muted);
}

.co2-publisher__year {
	font-variant-numeric: tabular-nums;
}

.co2-publisher__num {
	font-variant-numeric: tabular-nums;
	font-weight: 600;
}

.co2-publisher__muted {
	font-weight: 400;
}

.co2-publisher__net {
	color: var(--co2-primary);
}

.co2-publisher__sort {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

th.is-num .co2-publisher__sort,
th:last-child .co2-publisher__sort {
	margin-left: auto;
}

th[aria-sort] .co2-publisher__sort {
	color: var(--co2-primary);
}

.co2-publisher__empty {
	padding: 2.5rem 0.75rem;
	color: var(--co2-muted);
	text-align: center;
}

.co2-publisher__note {
	margin: 1.25rem 0 0;
	font-size: 0.75rem;
}

.co2-publisher__sr {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.co2-publisher--results {
	position: relative;
}

.co2-publisher__note-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1rem;
	height: 1rem;
	margin-left: 0.35rem;
	padding: 0;
	border: 1px solid currentColor;
	border-radius: 999px;
	background: none;
	color: var(--co2-muted);
	font: inherit;
	font-size: 0.65rem;
	font-weight: 400;
	line-height: 1;
	vertical-align: 0.1em;
	cursor: pointer;
}

.co2-publisher__note-toggle[aria-expanded="true"],
.co2-publisher__note-toggle:hover {
	color: var(--co2-primary);
}

.co2-publisher__note-toggle:focus-visible {
	outline: 2px solid var(--co2-ring);
	outline-offset: 2px;
}

.co2-publisher__table tbody tr[data-co2-has-note] {
	cursor: help;
}

.co2-publisher__popover {
	position: absolute;
	z-index: 10;
	width: min(24rem, calc(100% - 1rem));
	padding: 0.75rem 0.9rem;
	border: 1px solid var(--co2-border);
	background: var(--co2-card);
	color: var(--co2-ink);
	font-size: 0.8125rem;
	line-height: 1.5;
	white-space: pre-line;
	overflow-wrap: anywhere;
	box-shadow: 0 8px 24px oklch(21.6% 0.029 252 / 0.08);
}

.co2-publisher__popover[hidden] {
	display: none;
}

.co2-publisher button,
.co2-publisher input,
.co2-publisher select,
.co2-publisher textarea {
	font-family: inherit;
}
