/*
 * ADesign Credit: the credit line in ADesign's look, as on adesign.ro. A full-width dark
 * strip with the tag centred in Martian Mono: the angle brackets, the dot and the slash
 * in ADesign's blue, "by ADesign" in its grey. A site retunes it through the custom
 * properties below. Nothing moves.
 */

/* Martian Mono, SIL Open Font License 1.1 (../fonts/OFL.txt): the latin subset adesign.ro serves. */
@font-face {
	font-family: 'Martian Mono';
	font-style: normal;
	font-weight: 100 800;
	font-stretch: 75% 112.5%;
	font-display: swap;
	src: url('../fonts/martian-mono-latin.woff2') format('woff2');
}

.adesign-credit {
	box-sizing: border-box;
	margin: 0;
	padding: var(--adesign-credit-padding, 1rem);
	background: var(--adesign-credit-background, #0b0d12);
	color: var(--adesign-credit-color, #e9ecf2);
	font-family: var(--adesign-credit-font-family, 'Martian Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace);
	font-size: var(--adesign-credit-font-size, 0.75rem);
	font-style: normal;
	font-weight: 400;
	letter-spacing: 0;
	line-height: 1.5;
	text-align: center;
	text-transform: none;
}

/* One class stronger than a theme's link styles, such as theme.json's :root :where(a). */
.adesign-credit .adesign-credit__link {
	color: inherit;
	text-decoration: none;
}

.adesign-credit .adesign-credit__link:hover {
	text-decoration: underline;
	text-underline-offset: 0.25em;
}

.adesign-credit .adesign-credit__link:focus-visible {
	outline: 2px solid var(--adesign-credit-mark-color, #387eff);
	outline-offset: 4px;
}

/* 5.2:1 on the strip. */
.adesign-credit .adesign-credit__mark {
	color: var(--adesign-credit-mark-color, #387eff);
}

/* 6.3:1 on the strip. */
.adesign-credit .adesign-credit__by {
	color: var(--adesign-credit-by-color, #8b93a3);
}

/* The new-tab hint: read by screen readers, not shown. */
.adesign-credit .adesign-credit__hint {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* On paper, a plain dark line: browsers drop the strip's background when printing. */
@media print {

	.adesign-credit {
		background: none;
		color: #000;
	}

	.adesign-credit .adesign-credit__mark,
	.adesign-credit .adesign-credit__by {
		color: inherit;
	}
}
