.apisphere-docs {
	--apisphere-docs-primary: #215f46;
	--apisphere-docs-primary-dark: #174433;
	--apisphere-docs-border: #d7e0db;
	--apisphere-docs-muted: #52635b;
	--apisphere-docs-surface: #f6f9f7;
	color: #1f2b25;
	font-size: 1rem;
	line-height: 1.6;
	margin: 1.5rem auto;
	max-width: 76rem;
}

.apisphere-docs *,
.apisphere-docs *::before,
.apisphere-docs *::after {
	box-sizing: border-box;
}

.apisphere-docs__header {
	border-bottom: 1px solid var(--apisphere-docs-border);
	margin-bottom: 1.5rem;
	padding-bottom: 1rem;
}

.apisphere-docs__header h2,
.apisphere-docs__document h2 {
	color: var(--apisphere-docs-primary-dark);
	font-size: clamp(1.7rem, 4vw, 2.4rem);
	line-height: 1.2;
	margin-bottom: 0.5rem;
}

.apisphere-docs__search {
	background: var(--apisphere-docs-surface);
	border: 1px solid var(--apisphere-docs-border);
	border-radius: 0.5rem;
	margin: 1.5rem 0;
	padding: 1rem;
}

.apisphere-docs__search label {
	display: block;
	font-weight: 700;
	margin-bottom: 0.5rem;
}

.apisphere-docs__search-row {
	display: flex;
	gap: 0.5rem;
}

.apisphere-docs__search-row input {
	background: #fff;
	border: 1px solid #77877f;
	border-radius: 0.25rem;
	flex: 1 1 20rem;
	min-height: 2.75rem;
	padding: 0.5rem 0.75rem;
}

.apisphere-docs__search-row button,
.apisphere-docs__button {
	background: var(--apisphere-docs-primary);
	border: 2px solid var(--apisphere-docs-primary);
	border-radius: 0.25rem;
	color: #fff;
	cursor: pointer;
	display: inline-block;
	font-weight: 700;
	min-height: 2.75rem;
	padding: 0.5rem 1rem;
	text-decoration: none;
}

.apisphere-docs__search-row button:hover,
.apisphere-docs__search-row button:focus-visible,
.apisphere-docs__button:hover,
.apisphere-docs__button:focus-visible {
	background: var(--apisphere-docs-primary-dark);
	border-color: var(--apisphere-docs-primary-dark);
	color: #fff;
}

.apisphere-docs__audience,
.apisphere-docs__categories {
	margin: 1.5rem 0;
}

.apisphere-docs__audience ul,
.apisphere-docs__categories ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.apisphere-docs__audience a,
.apisphere-docs__categories a {
	border: 1px solid var(--apisphere-docs-primary);
	border-radius: 999px;
	color: var(--apisphere-docs-primary-dark);
	display: inline-block;
	padding: 0.35rem 0.75rem;
	text-decoration: none;
}

.apisphere-docs__audience a:hover,
.apisphere-docs__audience a:focus-visible,
.apisphere-docs__categories a:hover,
.apisphere-docs__categories a:focus-visible,
.apisphere-docs__audience a[aria-current="page"],
.apisphere-docs__categories a[aria-current="page"] {
	background: var(--apisphere-docs-primary);
	color: #fff;
}

.apisphere-docs__grid {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
}

.apisphere-docs__card {
	background: #fff;
	border: 1px solid var(--apisphere-docs-border);
	border-radius: 0.5rem;
	box-shadow: 0 0.15rem 0.5rem rgba(20, 56, 42, 0.06);
	padding: 1rem;
}

.apisphere-docs__card h4 {
	font-size: 1.15rem;
	line-height: 1.35;
	margin: 0.25rem 0 0.6rem;
}

.apisphere-docs__card h4 a,
.apisphere-docs__back {
	color: var(--apisphere-docs-primary-dark);
}

.apisphere-docs__category {
	color: var(--apisphere-docs-primary);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	margin: 0;
	text-transform: uppercase;
}

.apisphere-docs__audience-label,
.apisphere-docs__updated {
	color: var(--apisphere-docs-muted);
	font-size: 0.875rem;
}

.apisphere-docs__recent,
.apisphere-docs__results {
	margin-top: 2rem;
}

.apisphere-docs__document,
.apisphere-docs__restricted,
.apisphere-docs__notice {
	background: #fff;
	border: 1px solid var(--apisphere-docs-border);
	border-radius: 0.5rem;
	padding: clamp(1rem, 3vw, 2rem);
}

.apisphere-docs__summary {
	font-size: 1.1rem;
}

.apisphere-docs__content {
	border-top: 1px solid var(--apisphere-docs-border);
	margin-top: 1.25rem;
	padding-top: 1.25rem;
}

.apisphere-docs__content blockquote {
	background: var(--apisphere-docs-surface);
	border-left: 0.25rem solid var(--apisphere-docs-primary);
	margin: 1rem 0;
	padding: 0.75rem 1rem;
}

.apisphere-docs__content code {
	background: #edf2ef;
	border-radius: 0.2rem;
	padding: 0.1rem 0.25rem;
}

.apisphere-docs a:focus-visible,
.apisphere-docs button:focus-visible,
.apisphere-docs input:focus-visible {
	outline: 3px solid #c67516;
	outline-offset: 2px;
}

@media (max-width: 38rem) {
	.apisphere-docs__search-row {
		align-items: stretch;
		flex-direction: column;
	}

	.apisphere-docs__search-row input,
	.apisphere-docs__search-row button {
		width: 100%;
	}
}

