.gate-error {
	justify-content: center;
}

.gate-error[hidden] {
	display: none;
}

.avatar {
	position: relative;
	overflow: hidden;
}

.avatar img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hs-survey-card:hover {
	background: var(--hover);
}

.hs-home-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 24px;
}

.hs-home-section .muted {
	max-width: 72ch;
}

.hs-home-link {
	margin: 14px 0 0;
}

.hs-tool-grid {
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.hs-tool-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.hs-tool-step {
	position: absolute;
	top: 14px;
	right: 16px;
	font-size: 12px;
	color: var(--faint);
}

.hs-tool-question {
	color: var(--ink);
}

.hs-survey-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px 16px;
	padding: 24px 32px 12px;
	margin: 0;
}

.hs-survey-reason {
	max-width: 56ch;
	white-space: normal !important;
	color: var(--muted);
}

.hs-survey-note {
	margin: 0;
	padding: 16px 32px 24px;
	border-top: 1px solid var(--line);
}

.hs-survey-table th,
.hs-survey-table td {
	padding-inline: 12px;
}

.hs-survey-table th:first-child,
.hs-survey-table td:first-child {
	padding-left: 32px;
}

.hs-survey-table th:last-child,
.hs-survey-table td:last-child {
	padding-right: 32px;
}

.hs-survey-table td:first-child {
	min-width: 190px;
	white-space: normal;
}

.hs-survey-table td:nth-child(2) {
	min-width: 96px;
	white-space: normal;
}

.hs-home-section .code-sample pre {
	margin: 0;
	padding: 16px;
	overflow-x: auto;
}

.hs-ladder {
	display: block;
	width: min(640px, 80%);
	height: auto;
	font-family: var(--mono);
}

.hs-ladder-bar {
	fill: rgb(255 255 255 / 0.08);
	stroke: rgb(255 255 255 / 0.25);
}

.hs-ladder-bar.is-current {
	fill: #ff6500;
	stroke: #ff6500;
}

.hs-ladder-label {
	font-size: 11px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	fill: rgb(255 255 255 / 0.5);
}

.hs-ladder-ground {
	fill: none;
	stroke: rgb(255 255 255 / 0.3);
}

@media print {
	.sidebar,
	.sidebar-resize {
		display: none;
	}
}

.specs-search {
	position: relative;
	display: block;
	margin: 0 0 4px;
	color: var(--muted);
}

.specs-search .icon {
	position: absolute;
	top: 50%;
	left: 11px;
	transform: translateY(-50%);
	pointer-events: none;
}

.specs-search input {
	width: 100%;
	min-height: 38px;
	padding: 0 12px 0 34px;
	border: 1px solid var(--line-strong);
	border-radius: 0;
	background: var(--surface);
	color: var(--ink);
	font: 13px/20px var(--sans);
	letter-spacing: -0.01em;
}

.specs-search input::placeholder {
	color: var(--faint);
}

.specs-search input:focus-visible {
	outline: 2px solid var(--link);
	outline-offset: 2px;
}

.specs-nav,
.specs-results {
	flex: 0 1 auto;
	min-height: 0;
	overflow-y: auto;
}

.specs-nav[hidden],
.specs-results[hidden] {
	display: none;
}

.specs-results {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-top: 14px;
}

.specs-results .doc-nav-empty {
	margin: 0;
	padding: 0 10px;
}

.nav-item.specs-hit {
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
}

.nav-item.specs-hit span {
	white-space: normal;
}

.nav-item .specs-hit-kind {
	font-family: var(--mono);
	font-size: 10px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--faint);
}

.specs-decisions summary {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: 18px;
	padding: 6px 10px;
	color: var(--muted);
	cursor: pointer;
	list-style: none;
}

.specs-decisions summary::-webkit-details-marker {
	display: none;
}

.specs-decisions summary:hover {
	color: var(--ink);
}

.specs-decisions summary .icon {
	flex: none;
	transition: transform 0.15s ease;
}

.specs-decisions[open] summary .icon {
	transform: rotate(90deg);
}

.specs-decisions summary .nav-caption {
	display: block;
	flex: 1;
	margin: 0;
	padding: 0;
	color: inherit;
}

.specs-count {
	font-family: var(--mono);
	font-size: 11px;
	color: var(--faint);
}

.nav-item.specs-decision {
	align-items: flex-start;
	min-height: 0;
	padding-top: 6px;
	padding-bottom: 6px;
	font-size: 13px;
	line-height: 18px;
}

.nav-item.specs-decision span {
	white-space: normal;
}

.specs-hero {
	grid-template-columns: minmax(0, 1fr);
}

.specs-hero h1 {
	font-size: clamp(36px, 4.6vw, 60px);
	line-height: 1;
}

.specs-hero .lede {
	max-width: 64ch;
	margin-bottom: 0;
}

.specs-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 26px;
}

.specs-stats {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1px;
	margin: 0;
	background: var(--line);
}

.specs-stat {
	display: flex;
	flex-direction: column-reverse;
	gap: 6px;
	padding: 22px 24px 20px;
	background: var(--surface);
}

.specs-stat dd {
	margin: 0;
	color: var(--ink);
	font-size: 34px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: -0.045em;
}

.specs-stat dt {
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--muted);
}

.specs-cell {
	grid-column: 1 / -1;
	padding: 36px 40px 40px;
}

@media (max-width: 760px) {
	.specs-stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.specs-cell {
		padding: 28px 16px 32px;
	}
}

.hs-proto-frame {
	display: block;
	width: 100%;
	height: 560px;
	background: #fff;
	border: 1px solid var(--line);
}

.hs-proto-open {
	display: inline-block;
	margin-top: 6px;
	font-size: 13px;
}
