/* ─── Navigation ─── */

.navbar {
	background: var(--primary-color);
	color: var(--paper);
	padding: var(--space-3) 0;
	position: sticky;
	top: 0;
	z-index: 100;
	box-shadow: var(--shadow);
}

.nav-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 var(--space-5);
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: var(--space-3);
}

.nav-brand {
	font-size: var(--text-xl);
	font-weight: var(--weight-bold);
	color: var(--paper);
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	line-height: 1;
}

.nav-brand:hover {
	color: var(--paper);
}

.nav-brand-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--paper);
}

.nav-brand-icon svg {
	width: 28px;
	height: 32px;
	fill: currentColor;
	shape-rendering: geometricPrecision;
}

.nav-toggle {
	display: none;
	background: transparent;
	border: 1px solid rgb(255 255 255 / 30%);
	color: var(--paper);
	padding: var(--space-2) var(--space-3);
	border-radius: var(--radius-sm);
	cursor: pointer;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
	display: block;
	width: 18px;
	height: 2px;
	background: currentColor;
	position: relative;
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
	content: "";
	position: absolute;
	left: 0;
}

.nav-toggle-bar::before {
	top: -6px;
}

.nav-toggle-bar::after {
	top: 6px;
}

.nav-menu {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: var(--space-1);
	align-items: center;
}

.nav-item {
	margin: 0;
	position: relative;
}

.nav-item--right {
	margin-left: auto;
}

.nav-link {
	display: inline-flex;
	align-items: center;
	gap: var(--space-1);
	color: var(--paper);
	text-decoration: none;
	padding: var(--space-2) var(--space-3);
	border-radius: var(--radius-sm);
	font: inherit;
	font-weight: var(--weight-medium);
	background: transparent;
	border: none;
	cursor: pointer;
	white-space: nowrap;
}

@media (prefers-reduced-motion: no-preference) {
	.nav-link {
		transition: background-color var(--transition-fast);
	}
}

.nav-link:hover,
.nav-link.active,
.nav-item--has-menu[data-open="true"] .nav-link--button {
	background: rgb(255 255 255 / 12%);
	color: var(--paper);
}

.nav-link:focus-visible {
	outline: 2px solid var(--paper);
	outline-offset: 2px;
}

.nav-chevron {
	margin-left: 2px;
	opacity: 0.7;
}

@media (prefers-reduced-motion: no-preference) {
	.nav-chevron {
		transition: transform var(--transition-fast);
	}
}

.nav-item--has-menu[data-open="true"] .nav-chevron {
	transform: rotate(180deg);
	opacity: 1;
}

/* ─── Dropdown panel ─── */

.nav-dropdown {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	width: 360px;
	max-width: calc(100vw - var(--space-5) * 2);
	box-sizing: border-box;
	background: var(--paper);
	color: var(--text-default);
	border: 1px solid var(--border-color);
	border-radius: var(--radius);
	box-shadow: var(--shadow-lg);
	padding: var(--space-3);
	z-index: 200;
}

.nav-dropdown--mega {
	width: 540px;
	padding: var(--space-4);
}

.nav-dropdown--two-col {
	width: 760px;
}

.nav-dropdown--right {
	left: auto;
	right: 0;
}

/* At narrower desktop widths the two-column Products dropdown would
 * extend past the viewport. Collapse to single column. */
@media (width <= 1100px) and (width > 900px) {
	.nav-dropdown--two-col {
		width: 540px;
	}

	.nav-dropdown--two-col .nav-dropdown-grid {
		grid-template-columns: 1fr;
	}
}

.nav-dropdown[hidden] {
	display: none;
}

/* Card grid: each item is a vertical card with icon, label, description. */
.nav-dropdown-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-2);
}

.nav-dropdown--two-col .nav-dropdown-grid {
	grid-template-columns: 1fr 1fr;
	gap: var(--space-2);
}

.nav-dropdown-link {
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
	padding: var(--space-3);
	color: var(--text-default);
	text-decoration: none;
	border-radius: var(--radius);
	height: 100%;
}

@media (prefers-reduced-motion: no-preference) {
	.nav-dropdown-link {
		transition: background-color var(--transition-fast);
	}
}

.nav-dropdown-link:hover,
.nav-dropdown-link:focus-visible {
	background: var(--light-bg);
}

.nav-dropdown-link:focus-visible {
	outline: 2px solid var(--primary-light);
	outline-offset: -2px;
}

.nav-dropdown-icon {
	flex: 0 0 32px;
	width: 32px;
	height: 32px;
	border-radius: var(--radius-sm);
	background: var(--light-bg);
	color: var(--primary-light);
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.nav-dropdown-link:hover .nav-dropdown-icon,
.nav-dropdown-link:focus-visible .nav-dropdown-icon {
	background: var(--primary-light);
	color: var(--paper);
}

@media (prefers-reduced-motion: no-preference) {
	.nav-dropdown-icon {
		transition: var(--transition-fast);
	}
}

.nav-dropdown-icon svg {
	width: 16px;
	height: 16px;
}

.nav-dropdown-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.nav-dropdown-label {
	font-weight: var(--weight-semibold);
	font-size: var(--text-sm);
	color: var(--primary-color);
	line-height: var(--leading-tight);
}

.nav-dropdown-description {
	font-size: var(--text-xs);
	color: var(--text-muted);
	line-height: var(--leading-snug);
}

/* When a dropdown is anchored to a middle trigger (Resources, Company)
 * and would overflow the right edge of the viewport, shift it so its
 * right edge aligns with the nav-container's right padding. */
.nav-item--has-menu[data-overflow-right="true"] .nav-dropdown {
	left: auto;
	right: 0;
}

/* ─── Mobile ─── */

@media (width <= 900px) {
	.nav-toggle {
		display: inline-flex;
		align-items: center;
		gap: var(--space-2);
	}

	.nav-menu {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: stretch;
		background: var(--primary-color);
		padding: var(--space-3);
		gap: var(--space-1);
		box-shadow: var(--shadow);
	}

	.nav-menu[data-open="true"] {
		display: flex;
	}

	.nav-item--right {
		margin-left: 0;
	}

	.nav-link--button {
		justify-content: space-between;
		width: 100%;
	}

	.nav-dropdown,
	.nav-dropdown--mega,
	.nav-dropdown--two-col,
	.nav-dropdown--right {
		position: static;
		left: auto;
		right: auto;
		width: auto;
		margin-top: var(--space-1);
		padding: var(--space-2);
	}

	.nav-dropdown--two-col .nav-dropdown-grid {
		grid-template-columns: 1fr;
	}
}

/* ─── Buttons ─── */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-2);
	padding: var(--space-2) var(--space-4);
	font-size: var(--text-sm);
	font-weight: var(--weight-medium);
	font-family: inherit;
	line-height: 1.2;
	border-radius: var(--radius-sm);
	border: 1px solid transparent;
	cursor: pointer;
	text-decoration: none;
	background: transparent;
}

@media (prefers-reduced-motion: no-preference) {
	.btn {
		transition: var(--transition-fast);
	}
}

.btn:focus-visible {
	outline: 2px solid var(--primary-light);
	outline-offset: 2px;
}

.btn-primary {
	background: var(--btn-primary-bg);
	color: var(--paper);
	border-color: var(--btn-primary-bg);
}

.btn-primary:hover {
	background: var(--btn-primary-bg-hover);
	border-color: var(--btn-primary-bg-hover);
	color: var(--paper);
}

.btn-secondary {
	background: var(--btn-secondary-bg);
	color: var(--primary-color);
	border-color: var(--btn-secondary-border);
	font-weight: var(--weight-semibold);
}

.btn-secondary:hover {
	background: var(--btn-secondary-bg-hover);
	border-color: var(--btn-secondary-border);
	color: var(--primary-color);
}

.btn-warning {
	background: var(--btn-warning-bg);
	color: var(--primary-color);
	border-color: var(--btn-warning-border);
	font-weight: var(--weight-semibold);
}

.btn-warning:hover {
	background: var(--btn-warning-bg-hover);
	border-color: var(--btn-warning-border);
	color: var(--primary-color);
}

.btn-sm {
	padding: var(--space-1) var(--space-3);
	font-size: var(--text-xs);
}

.btn[disabled] {
	opacity: 0.6;
	cursor: not-allowed;
}

/* ─── Card ─── */

.card {
	background: var(--paper);
	padding: var(--space-5);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	margin-bottom: var(--space-5);
}

@media (prefers-reduced-motion: no-preference) {
	.card--lift {
		transition: var(--transition-fast);
	}

	.card--lift:hover {
		transform: translateY(-2px);
		box-shadow: var(--shadow-lg);
	}
}

/* ─── Alert ─── */

.alert {
	padding: var(--space-3) var(--space-4);
	border-radius: var(--radius-sm);
	margin-bottom: var(--space-4);
	border: 1px solid transparent;
	display: flex;
	align-items: flex-start;
	gap: var(--space-2);
}

.alert::before {
	flex-shrink: 0;
	font-weight: var(--weight-bold);
	line-height: 1.4;
}

.alert-success {
	background: var(--alert-success-bg);
	color: var(--alert-success-fg);
	border-color: var(--alert-success-rule);
}

.alert-success::before {
	content: "\2713";
}

.alert-error {
	background: var(--alert-error-bg);
	color: var(--alert-error-fg);
	border-color: var(--alert-error-rule);
}

.alert-error::before {
	content: "!";
}

.alert-warning {
	background: var(--alert-warning-bg);
	color: var(--alert-warning-fg);
	border-color: var(--alert-warning-rule);
}

.alert-warning::before {
	content: "\26A0";
}

.alert-info {
	background: var(--alert-info-bg);
	color: var(--alert-info-fg);
	border-color: var(--alert-info-rule);
}

.alert-info::before {
	content: "\2139";
}

/* ─── Forms ─── */

.form-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: var(--space-3) var(--space-5);
}

.form-grid.full-width {
	grid-template-columns: 1fr;
}

.form-row {
	display: flex;
	flex-direction: column;
	gap: var(--space-1);
}

.form-row.span-2,
.form-row--full {
	grid-column: 1 / -1;
}

label {
	font-weight: var(--weight-semibold);
	font-size: var(--text-sm);
	color: var(--text-default);
}

label .required {
	color: var(--error-color);
}

input[type="text"],
input[type="url"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="tel"],
input[type="search"],
select,
textarea {
	padding: var(--space-2) var(--space-3);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-sm);
	font-size: var(--text-sm);
	font-family: inherit;
	background: var(--paper);
	width: 100%;
}

@media (prefers-reduced-motion: no-preference) {
	input,
	select,
	textarea {
		transition:
			border-color 0.15s ease,
			box-shadow 0.15s ease;
	}
}

input:focus,
select:focus,
textarea:focus {
	outline: none;
	border-color: var(--primary-light);
	box-shadow: 0 0 0 3px rgb(29 111 165 / 15%);
}

textarea {
	min-height: 100px;
	resize: vertical;
	font-family: var(--font-mono);
}

.form-actions {
	display: flex;
	gap: var(--space-3);
	margin-top: var(--space-5);
	padding-top: var(--space-5);
	border-top: 1px solid var(--border-color);
	align-items: center;
	flex-wrap: wrap;
}

.form-note {
	font-size: var(--text-sm);
	color: var(--text-muted);
	margin: 0;
	flex: 1 1 280px;
}

.form-error {
	background: var(--alert-error-bg);
	color: var(--alert-error-fg);
	border: 1px solid var(--alert-error-rule);
	border-radius: var(--radius-sm);
	padding: var(--space-3) var(--space-4);
	margin: 0 0 var(--space-4) 0;
	font-size: var(--text-sm);
	grid-column: 1 / -1;
}

.signup-credentials {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: var(--space-2) var(--space-4);
	margin: var(--space-4) 0;
	padding: var(--space-4);
	background: var(--paper);
	border: 1px solid var(--alert-success-rule);
	border-radius: var(--radius-sm);
}

.signup-credentials dt {
	font-weight: var(--weight-semibold);
	color: var(--text-default);
	margin: 0;
}

.signup-credentials dd {
	margin: 0;
	font-family: var(--font-mono);
	color: var(--text-strong);
	word-break: break-all;
}

/* ─── E911 provisioning wizard ─── */

.e911-step {
	margin-bottom: var(--space-6);
}

.e911-form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--space-4);
}

.e911-form .form-row {
	grid-column: 1 / -1;
}

.form-row--half {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--space-4);
	grid-column: 1 / -1;
}

.form-row--quarter {
	grid-column: 1 / 2;
}

.form-optional {
	font-weight: normal;
	color: var(--text-muted);
}

.e911-address-card {
	background: var(--paper);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-sm);
	padding: var(--space-4) var(--space-5);
	margin-bottom: var(--space-5);
}

.e911-dl {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: var(--space-2) var(--space-4);
	margin: 0;
}

.e911-dl dt {
	font-weight: var(--weight-semibold);
	color: var(--text-default);
	margin: 0;
}

.e911-dl dd {
	margin: 0;
	color: var(--text-strong);
}

.btn--sm {
	padding: var(--space-1) var(--space-2);
	font-size: var(--text-xs);
}

.e911-actions-cell {
	display: flex;
	gap: var(--space-2);
	white-space: nowrap;
}

@media (width <= 600px) {
	.e911-form {
		grid-template-columns: 1fr;
	}

	.form-row--half {
		grid-template-columns: 1fr;
	}

	.form-row--quarter {
		grid-column: 1 / -1;
	}
}

/* ─── Offices grid (contact page) ─── */

.offices-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: var(--space-5);
	margin-top: var(--space-4);
}

.office {
	background: var(--paper);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-sm);
	padding: var(--space-5);
}

.office address {
	font-style: normal;
}

.office h3 {
	margin: 0 0 var(--space-3) 0;
	font-size: var(--text-lg);
	color: var(--primary-color);
}

.office p {
	margin: 0 0 var(--space-3) 0;
	line-height: var(--leading-relaxed);
}

.office p:last-child {
	margin-bottom: 0;
}

.office-label {
	display: inline-block;
	min-width: 3.5em;
	font-weight: var(--weight-semibold);
	color: var(--text-muted);
	font-size: var(--text-sm);
}

.office-map {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	border: 1px solid var(--border-color);
	border-radius: var(--radius-sm);
	margin-top: var(--space-4);
}

/* ─── Network status list (status page) ─── */

.status-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: var(--space-3);
	list-style: none;
	margin: 0;
	padding: 0;
}

.status-list li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-3);
	padding: var(--space-3) var(--space-4);
	background: var(--paper);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-sm);
}

.status-name {
	font-weight: var(--weight-semibold);
	color: var(--text-strong);
}

.status-indicator {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	font-size: var(--text-sm);
	color: var(--text-muted);
}

.status-indicator::before {
	content: "";
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--text-muted);
}

.status-indicator--operational::before {
	background: var(--success-color);
}

.status-indicator--degraded::before {
	background: var(--warning-color);
}

.status-indicator--down::before {
	background: var(--error-color);
}

.status-updated {
	margin: var(--space-4) 0 0;
	color: var(--text-muted);
	font-size: var(--text-sm);
}

/* ─── Product figure (image + caption) ─── */

.product-figure {
	margin: var(--space-6) auto;
	max-width: 600px;
	text-align: center;
}

.product-figure img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: var(--radius-sm);
	border: 1px solid var(--border-color);
}

.product-figure figcaption {
	margin-top: var(--space-3);
	font-size: var(--text-sm);
	color: var(--text-muted);
}

.product-figure--left {
	margin-left: 0;
	margin-right: 0;
	text-align: left;
}

.product-figure--sm {
	max-width: 360px;
}

/* ─── Pricing calculator (spreadsheet-style) ─── */

.pricing-calc {
	width: 100%;
	border-collapse: collapse;
	font-variant-numeric: tabular-nums;
	background: var(--paper);
	border: 1px solid var(--border-color);
	box-shadow: var(--shadow);
}

.pricing-calc th,
.pricing-calc td {
	padding: var(--space-2) var(--space-3);
	border-bottom: 1px solid var(--border-color);
	border-right: 1px solid var(--border-color);
	text-align: left;
	vertical-align: middle;
}

.pricing-calc th:last-child,
.pricing-calc td:last-child {
	border-right: 0;
}

.pricing-calc thead th {
	background: var(--light-bg);
	font-size: var(--text-xs);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	font-weight: var(--weight-semibold);
	color: var(--text-muted);
	white-space: nowrap;
}

.pricing-calc__group-label {
	background: var(--light-bg);
	color: var(--primary-color);
}

.pricing-calc__group-title {
	display: block;
	font-weight: var(--weight-semibold);
	font-size: var(--text-sm);
	letter-spacing: 0.3px;
}

.pricing-calc__group-description {
	display: block;
	font-weight: var(--weight-normal);
	font-size: var(--text-xs);
	color: var(--text-muted);
	margin-top: 2px;
	letter-spacing: 0;
	text-transform: none;
}

.pricing-calc__rate,
.pricing-calc__total {
	font-family: var(--font-mono);
	text-align: right;
	white-space: nowrap;
}

.pricing-calc__unit {
	color: var(--text-muted);
	font-size: var(--text-sm);
	margin-left: 4px;
	white-space: nowrap;
}

.pricing-calc__unit-icon {
	display: inline-flex;
	align-items: center;
	vertical-align: middle;
	margin-left: 4px;
	color: var(--btn-primary-bg);
}

.pricing-calc__unit-icon svg {
	width: 14px;
	height: 14px;
}

.pricing-calc-meta--legend {
	font-size: var(--text-sm);
	color: var(--text-muted);
	margin: 0;
}

.pricing-calc-meta--legend .pricing-calc__unit-icon svg {
	width: 14px;
	height: 14px;
}

.pricing-calc-footer {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: var(--space-3);
	flex-wrap: wrap;
	margin-top: var(--space-3);
	padding-top: var(--space-3);
	border-top: 1px solid var(--border-color);
}

.pricing-calc-footer__brand {
	margin: 0;
	font-weight: var(--weight-bold);
	font-size: var(--text-lg);
	letter-spacing: -0.5px;
	color: var(--primary-color);
}

.pricing-calc__discount {
	color: var(--text-muted);
	font-family: var(--font-mono);
	text-align: right;
	white-space: nowrap;
	font-size: var(--text-sm);
}

.pricing-calc__discount--active {
	color: var(--success-color);
	font-weight: var(--weight-semibold);
}

.pricing-calc input[data-volume] {
	width: 100%;
	max-width: 140px;
	padding: var(--space-1) var(--space-2);
	font-family: var(--font-mono);
	font-size: var(--text-sm);
	text-align: right;
	border: 1px solid var(--border-color);
	border-radius: var(--radius-sm);
	background: var(--paper);
}

.pricing-calc input[data-volume]:focus {
	outline: 2px solid var(--primary-light);
	outline-offset: 1px;
	border-color: var(--primary-light);
}

.pricing-calc tfoot tr {
	background: var(--light-bg);
}

.pricing-calc tfoot th,
.pricing-calc tfoot td {
	font-weight: var(--weight-bold);
	font-size: var(--text-md);
	border-bottom: 0;
}

.pricing-calc tfoot td.pricing-calc__total {
	font-size: var(--text-lg);
	color: var(--primary-color);
}

.pricing-calc tfoot tr.is-hidden {
	display: none;
}

.pricing-calc tfoot tr.pricing-calc__minimum {
	background: #dbeafe;
}

.pricing-calc tfoot tr.pricing-calc__minimum th,
.pricing-calc tfoot tr.pricing-calc__minimum td {
	border-top: 2px solid var(--primary-color);
	color: var(--primary-color);
}

.pricing-calc tfoot tr.pricing-calc__grand {
	background: var(--btn-secondary-bg);
}

.pricing-calc tfoot tr.pricing-calc__grand th,
.pricing-calc tfoot tr.pricing-calc__grand td,
.pricing-calc tfoot tr.pricing-calc__grand td.pricing-calc__total {
	color: var(--primary-color);
	border-top: 2px solid var(--btn-secondary-border);
}

.pricing-calc-wrapper {
	overflow-x: auto;
	margin: var(--space-5) 0;
}

.pricing-calc-meta {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-3);
	font-size: var(--text-sm);
	color: var(--text-muted);
	margin: var(--space-3) 0 var(--space-2);
}

.pricing-calc-meta strong {
	color: var(--text-default);
}

@media (width <= 720px) {
	.pricing-calc input[data-volume] {
		max-width: 100px;
	}

	.pricing-calc th,
	.pricing-calc td {
		padding: var(--space-2);
		font-size: var(--text-sm);
	}
}

/* Open-source project cards on /open-source/ */

.oss-cards {
	display: grid;
	gap: var(--space-4);
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	margin-top: var(--space-3);
}

.oss-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	background: var(--paper);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-sm);
	padding: var(--space-4);
	transition:
		border-color 0.15s,
		box-shadow 0.15s,
		transform 0.15s;
}

.oss-card:hover,
.oss-card:focus-within {
	border-color: var(--primary-light);
	box-shadow: 0 4px 14px rgb(0 0 0 / 8%);
	transform: translateY(-1px);
}

.oss-card__header {
	display: flex;
	align-items: center;
	gap: var(--space-2);
	margin-bottom: var(--space-3);
	padding-bottom: var(--space-2);
	border-bottom: 1px solid var(--border-color);
}

.oss-card__icon {
	flex: 0 0 auto;
	display: inline-flex;
	color: var(--primary-color);
}

.oss-card__icon svg {
	width: 22px;
	height: 22px;
}

.oss-card__title {
	font-family: var(--font-mono);
	font-size: var(--text-md);
	margin: 0;
	color: var(--primary-color);
	letter-spacing: -0.2px;
	overflow-wrap: anywhere;
}

.oss-card__title a {
	color: inherit;
	text-decoration: none;
}

.oss-card__title a:hover {
	color: var(--primary-light);
	text-decoration: underline;
}

.oss-card__description {
	flex: 1;
	margin: 0 0 var(--space-3);
	font-size: var(--text-sm);
	line-height: 1.55;
	color: var(--text-default);
}

.oss-card__url {
	margin: 0;
	padding-top: var(--space-2);
	border-top: 1px solid var(--border-color);
	font-family: var(--font-mono);
	font-size: var(--text-xs);
	color: var(--text-muted);
	overflow-wrap: anywhere;
}

.oss-card__install {
	display: flex;
	align-items: baseline;
	gap: var(--space-2);
	min-width: 0;
	margin: 0 0 var(--space-3);
	padding: var(--space-2) var(--space-3);
	background: var(--light-bg);
	border: 1px solid var(--border-color);
	font-family: var(--font-mono);
	font-size: var(--text-xs);
	color: var(--text-default);
}

.oss-card__install code {
	flex: 1 1 0;
	min-width: 0;
	background: none;
	padding: 0;
	font-size: inherit;
	color: inherit;
	white-space: nowrap;
	overflow-x: auto;
}

.oss-card__install-label {
	flex: 0 0 auto;
	font-family: var(--font-sans);
	font-size: var(--text-xs);
	font-weight: var(--weight-semibold);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--text-muted);
}

.oss-card__meta {
	margin: 0;
	padding-top: var(--space-2);
	border-top: 1px solid var(--border-color);
	font-size: var(--text-xs);
	line-height: 1.55;
	color: var(--text-muted);
}

.oss-card__meta strong {
	color: var(--text-default);
}

.oss-card__uptime {
	display: flex;
	justify-content: center;
	margin: var(--space-3) 0 0;
	padding-top: var(--space-3);
	border-top: 1px solid var(--border-color);
}

.oss-card__uptime img {
	display: block;
	height: auto;
	width: 200px;
	max-width: 100%;
	border-radius: 3px;
}

.oss-card__heading {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.oss-card__subtitle {
	margin: 0;
	font-size: var(--text-xs);
	color: var(--text-muted);
	line-height: 1.4;
}

.oss-card__subtitle code {
	font-family: var(--font-mono);
	font-size: var(--text-xs);
	color: var(--text-strong);
	background: var(--light-bg);
	padding: 1px 6px;
	border-radius: 3px;
	border: 1px solid var(--border-color);
}

.oss-card--cloud .oss-card__icon {
	color: var(--primary-light);
}

.uptime-source {
	margin: var(--space-4) 0 var(--space-5);
	text-align: center;
	font-size: var(--text-xs);
	color: var(--text-muted);
}

.oss-card--colo .oss-card__header,
.oss-card--cloud .oss-card__header {
	justify-content: center;
	text-align: center;
}

.oss-card--cloud .oss-card__heading {
	align-items: center;
}

.oss-card__url a {
	color: inherit;
}

.oss-card__action {
	margin: var(--space-2) 0 0;
	font-size: var(--text-sm);
}

.oss-card__action a {
	font-weight: 500;
}

/* Trademark callout on every "Twilio" mention — dotted underline +
   help cursor signals there's a tooltip; the native browser title
   attribute carries the disclosure text. */
abbr.tm {
	text-decoration: underline dotted;
	text-decoration-color: currentColor;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	cursor: help;
}

/* Trusted by — quiet customer roll on /about/ */

.trusted-by {
	list-style: none;
	margin: var(--space-3) 0 0;
	padding: var(--space-5) 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--space-4) var(--space-6);
}

.trusted-by__item {
	flex: 1 1 130px;
	max-width: 180px;
	height: 60px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.trusted-by__logo {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	filter: grayscale(100%);
	opacity: 0.75;
	transition:
		filter 0.15s,
		opacity 0.15s;
}

.trusted-by__item:hover .trusted-by__logo {
	filter: grayscale(0%);
	opacity: 1;
}

.trusted-by--grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--space-3) var(--space-4);
}

@media (width >= 768px) {
	.trusted-by--grid {
		grid-template-columns: repeat(5, 1fr);
		gap: var(--space-4) var(--space-5);
	}
}

.trusted-by--grid .trusted-by__item {
	flex: none;
	width: auto;
	max-width: none;
}

/* VoiceML validator */

.validator-input {
	width: 100%;
	padding: var(--space-3);
	border: 1px solid var(--border-color);
	background: var(--paper);
	font-family: var(--font-mono);
	font-size: var(--text-sm);
	line-height: var(--leading-snug);
	resize: vertical;
	min-height: 14em;
	color: var(--text-default);
}

.validator-input:focus-visible {
	outline: 2px solid var(--primary-light);
	outline-offset: 1px;
}

.validator-actions {
	display: flex;
	gap: var(--space-2);
	flex-wrap: wrap;
	margin-top: var(--space-3);
	margin-bottom: var(--space-5);
}

.validator-result h2 {
	margin: 0 0 var(--space-3);
}

.validator-summary {
	display: grid;
	gap: var(--space-4);
	margin-top: var(--space-4);
}

.validator-group h3 {
	margin: 0 0 var(--space-2);
	font-size: var(--text-md);
}

.validator-table {
	width: 100%;
}

.validator-count {
	text-align: right;
	font-variant-numeric: tabular-nums;
}

.validator-errors {
	margin: var(--space-2) 0 0;
	padding-left: var(--space-4);
}

.validator-row--unknown td:first-child {
	color: var(--alert-error-fg);
}

/* Credentials bootstrap (api/v2.{1,2}/credentials/) — mini playground for
   the /account/apikey endpoint. */

.creds-bootstrap-form {
	display: grid;
	gap: var(--space-3);
	max-width: 480px;
	margin-bottom: var(--space-4);
}

.creds-bootstrap-form label {
	display: block;
	font-weight: var(--weight-semibold);
	font-size: var(--text-sm);
	margin-bottom: var(--space-1);
}

.creds-bootstrap-form input {
	width: 100%;
	padding: var(--space-2) var(--space-3);
	border: 1px solid var(--border-color);
	background: var(--paper);
	font: inherit;
	font-family: var(--font-mono);
	font-size: var(--text-sm);
}

.creds-bootstrap-form input:focus-visible {
	outline: 2px solid var(--primary-light);
	outline-offset: 1px;
}

.creds-key-card {
	margin-top: var(--space-4);
	padding: var(--space-4) var(--space-5);
	background: var(--paper);
	border: 1px solid var(--primary-light);
	border-left: 4px solid var(--primary-light);
}

.creds-key-card__label {
	font-size: var(--text-sm);
	font-weight: var(--weight-semibold);
	color: var(--text-muted);
	letter-spacing: 0.5px;
	text-transform: uppercase;
	margin-bottom: var(--space-2);
}

.creds-key-card__value {
	display: block;
	padding: var(--space-3);
	margin-bottom: var(--space-3);
	background: var(--light-bg);
	border: 1px solid var(--border-color);
	font-family: var(--font-mono);
	font-size: var(--text-md);
	font-weight: var(--weight-semibold);
	color: var(--primary-color);
	letter-spacing: 1px;
	word-break: break-all;
	user-select: all;
}

.creds-key-card__actions {
	display: flex;
	gap: var(--space-2);
}

/* Homepage features rotator — slow cross-fade between audience cards
   and platform features. JS positions panels absolutely and sets the
   container height to match the active panel, so we don't carry the
   taller panel's whitespace under the shorter one. */

.features-rotator {
	position: relative;
	transition: height 0.6s ease;
}

/* Tighter padding inside the rotator panels than the default
   .features-section (var(--space-7) on top + bottom = 96px) — at the
   homepage's one-row card grid, the default reads as a heavy empty
   band above and below the cards. */
.features-rotator .features-section {
	padding-top: var(--space-5);
	padding-bottom: var(--space-5);
}

/* No-JS fallback: only the active panel renders, container auto-sizes. */
.features-rotator__panel:not(.is-active) {
	display: none;
}

/* JS state: panels stack absolutely, container height is managed by JS. */
.features-rotator[data-rotator-ready] .features-rotator__panel {
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	opacity: 0;
	visibility: hidden;
	transition:
		opacity 0.6s ease,
		visibility 0s linear 0.6s;
}

.features-rotator[data-rotator-ready] .features-rotator__panel.is-active {
	opacity: 1;
	visibility: visible;
	transition:
		opacity 0.6s ease,
		visibility 0s linear 0s;
}

@media (prefers-reduced-motion: reduce) {
	.features-rotator,
	.features-rotator[data-rotator-ready] .features-rotator__panel {
		transition: none;
	}
}

.trusted-by--footer {
	margin: 0;
	padding: 0 0 var(--space-4);
	gap: var(--space-3) var(--space-5);
	border-top: none;
	border-bottom: none;
}

.trusted-by--footer .trusted-by__item {
	flex: 1 1 100px;
	max-width: 140px;
	height: 48px;
}

.trusted-by--footer .trusted-by__logo {
	opacity: 0.55;
}

/* Quote dialog (customer name capture before print) */

.quote-dialog {
	max-width: 480px;
	width: calc(100% - 2rem);
	padding: var(--space-5);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow-lg, 0 8px 24px rgb(0 0 0 / 18%));
	background: var(--paper);
	color: var(--text-default);
}

.quote-dialog::backdrop {
	background: rgb(0 0 0 / 40%);
}

.quote-dialog h2 {
	font-size: var(--text-xl);
	margin: 0 0 var(--space-2);
	color: var(--primary-color);
}

.quote-dialog p {
	margin: 0 0 var(--space-3);
	color: var(--text-muted);
	font-size: var(--text-sm);
}

.quote-dialog label {
	display: block;
	font-weight: var(--weight-semibold);
	font-size: var(--text-sm);
	margin-bottom: 4px;
	color: var(--text-default);
}

.quote-dialog input[type="text"] {
	width: 100%;
	padding: var(--space-2) var(--space-3);
	font-size: var(--text-md);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-sm);
	background: var(--paper);
	color: var(--text-default);
}

.quote-dialog input[type="text"]:focus {
	outline: 2px solid var(--primary-light);
	outline-offset: 1px;
	border-color: var(--primary-light);
}

.quote-dialog__actions {
	display: flex;
	gap: var(--space-2);
	justify-content: flex-end;
	margin-top: var(--space-4);
}

/* Quote document: hidden on screen, formatted as a business quote in print */

.quote-doc {
	display: none;
}

.quote-doc__bill-to.is-shown {
	display: block;
}

@media print {
	body {
		background: #fff;
		color: #000;
	}

	header,
	nav,
	footer,
	.skip-link,
	.alert,
	.hero-actions,
	.cta-block,
	.eyebrow,
	.lede {
		display: none !important;
	}

	main h1,
	main > h2:not(.quote-doc__heading) {
		display: none;
	}

	.section-block > h2 {
		display: none;
	}

	.section-block {
		margin: 0 0 var(--space-3);
		padding: 0;
		page-break-inside: avoid;
	}

	.pricing-calc-meta {
		display: none;
	}

	.pricing-calc-wrapper {
		margin: 0;
		overflow: visible;
		page-break-inside: avoid;
	}

	.pricing-calc {
		box-shadow: none;
		border: 1px solid #000;
		font-size: 10pt;
		width: 100%;
	}

	/* Prevent tfoot from repeating on every printed page; render it once at the
	   natural end of the table. */
	.pricing-calc tfoot {
		display: table-row-group;
	}

	.pricing-calc tfoot tr {
		page-break-inside: avoid;
	}

	.pricing-calc thead th {
		background: #f0f0f0 !important;
		color: #000 !important;
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
	}

	.pricing-calc__group-label {
		background: #f0f0f0 !important;
		color: #000 !important;
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
	}

	.pricing-calc tfoot tr.pricing-calc__minimum {
		background: #dbeafe !important;
		color: var(--primary-color) !important;
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
	}

	.pricing-calc tfoot tr.pricing-calc__grand {
		background: var(--btn-secondary-bg) !important;
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
	}

	.pricing-calc tfoot tr.pricing-calc__grand th,
	.pricing-calc tfoot tr.pricing-calc__grand td {
		color: var(--primary-color) !important;
		border-top: 2px solid var(--btn-secondary-border) !important;
	}

	.pricing-calc input[data-volume] {
		border: 0;
		background: transparent;
		padding: 0;
		width: auto;
	}

	/* Quote header document */

	.quote-doc--header {
		display: grid;
		grid-template-columns: 1fr auto;
		gap: 24pt;
		align-items: start;
		border-bottom: 2pt solid var(--primary-color);
		padding-bottom: 12pt;
		margin-bottom: 14pt;
	}

	.quote-doc__brand {
		font-size: 22pt;
		font-weight: var(--weight-bold);
		margin: 0 0 2pt;
		color: var(--primary-color);
		letter-spacing: -0.5pt;
	}

	.quote-doc__legal {
		font-size: 9pt;
		margin: 0 0 6pt;
		color: #555;
	}

	.quote-doc__company address {
		font-style: normal;
		font-size: 9pt;
		line-height: 1.55;
		color: #222;
	}

	.quote-doc__meta {
		text-align: right;
	}

	.quote-doc__title {
		font-size: 28pt;
		font-weight: var(--weight-bold);
		letter-spacing: 4pt;
		text-transform: uppercase;
		margin: 0 0 10pt;
		color: var(--primary-color);
	}

	.quote-doc__meta dl {
		display: grid;
		grid-template-columns: auto auto;
		justify-content: end;
		gap: 2pt 12pt;
		font-size: 9pt;
		margin: 0;
		text-align: right;
	}

	.quote-doc__meta dt {
		font-weight: var(--weight-semibold);
		color: #555;
		text-align: left;
	}

	.quote-doc__meta dd {
		margin: 0;
		color: #000;
		font-variant-numeric: tabular-nums;
	}

	.quote-doc__heading {
		display: block;
		font-size: 13pt;
		font-weight: var(--weight-semibold);
		text-transform: uppercase;
		letter-spacing: 1.5pt;
		color: var(--primary-color);
		margin: 0 0 10pt;
	}

	/* Bill-to / customer name block (only rendered when populated) */

	.quote-doc__bill-to {
		display: none;
		margin: 0 0 14pt;
		padding: 8pt 12pt;
		background: #f7f7f7 !important;
		border-left: 3pt solid var(--primary-color);
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
	}

	.quote-doc__bill-to.is-shown {
		display: block;
	}

	.quote-doc__bill-to-label {
		font-size: 8pt;
		text-transform: uppercase;
		letter-spacing: 1pt;
		color: #666;
		margin: 0 0 2pt;
	}

	.quote-doc__bill-to-name {
		font-size: 12pt;
		font-weight: var(--weight-semibold);
		color: var(--primary-color);
		margin: 0;
	}

	/* Quote footer document */

	.quote-doc--footer {
		display: block;
		margin-top: 18pt;
		padding-top: 12pt;
		border-top: 1pt solid #999;
		font-size: 8.5pt;
		line-height: 1.5;
		color: #333;
		page-break-inside: avoid;
	}

	.quote-doc--footer p {
		margin: 0 0 6pt;
	}

	.quote-doc__disclaimer {
		font-style: italic;
	}

	.quote-doc__regulatory {
		color: #666;
		font-size: 7.5pt;
		margin-top: 8pt !important;
	}

	@page {
		margin: 0.5in 0.6in;
	}
}

/* ─── Tables ─── */

.table-container {
	background: var(--paper);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	margin-bottom: var(--space-5);
	overflow-x: auto;
}

.data-table {
	width: 100%;
	border-collapse: collapse;
}

.data-table th,
.data-table td {
	padding: var(--space-3) var(--space-4);
	text-align: left;
	border-bottom: 1px solid var(--border-color);
}

.data-table th {
	background: var(--light-bg);
	font-weight: var(--weight-semibold);
	font-size: var(--text-xs);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	white-space: nowrap;
}

.data-table tbody tr:hover {
	background: var(--light-bg);
}

.data-table .num {
	text-align: right;
	font-variant-numeric: tabular-nums;
	font-family: var(--font-mono);
}

/* ─── Compatibility badge ─── */

.compat-badge {
	display: inline-flex;
	align-items: center;
	gap: var(--space-1);
	padding: 2px var(--space-2);
	border-radius: var(--radius-pill);
	font-size: var(--text-xs);
	font-weight: var(--weight-semibold);
	border: 1px solid transparent;
}

.compat-supported {
	background: var(--alert-success-bg);
	color: var(--alert-success-fg);
	border-color: var(--alert-success-rule);
}

.compat-partial {
	background: var(--alert-warning-bg);
	color: var(--alert-warning-fg);
	border-color: var(--alert-warning-rule);
}

.compat-roadmap {
	background: var(--alert-info-bg);
	color: var(--alert-info-fg);
	border-color: var(--alert-info-rule);
}

.compat-unsupported {
	background: var(--alert-error-bg);
	color: var(--alert-error-fg);
	border-color: var(--alert-error-rule);
}

/* ─── Menu carousel ─── */

.menu-carousel {
	background: var(--paper);
	border-top: 1px solid var(--border-color);
	border-bottom: 1px solid var(--border-color);
	padding: var(--space-7) 0 var(--space-5);
	overflow: hidden;
	position: relative;
}

.menu-carousel-track {
	display: grid;
}

.menu-carousel-slide {
	grid-area: 1 / 1;
	box-sizing: border-box;
	min-height: 220px;
	background: var(--paper);
	opacity: 0;
}

.menu-carousel-slide:not([inert]) {
	opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
	.menu-carousel-slide {
		transition: opacity 1.2s ease;
	}
}

.menu-carousel-eyebrow {
	font-family: var(--font-mono);
	font-size: var(--text-xs);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--text-muted);
	margin: 0 0 var(--space-2) 0;
}

.menu-carousel-title {
	font-size: var(--text-3xl);
	margin: 0 0 var(--space-3) 0;
	color: var(--primary-color);
}

.menu-carousel-title--hero {
	font-size: var(--text-4xl);
	max-width: 18ch;
}

.menu-carousel-actions {
	display: flex;
	gap: var(--space-3);
	flex-wrap: wrap;
	margin: 0;
}

.menu-carousel-slide--hero {
	min-height: 280px;
}

.menu-carousel-description {
	font-size: var(--text-md);
	line-height: var(--leading-relaxed);
	color: var(--text-default);
	margin: 0 0 var(--space-5) 0;
	max-width: 72ch;
}

.menu-carousel-controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-3);
	margin-top: var(--space-5);
	padding: 0 var(--space-5);
	flex-wrap: wrap;
}

/* Figured-carousel slide layout — two-column (text + figure) with a
   slight asymmetry favoring the text on the hero. Stacks on narrow
   viewports so the figure drops below the copy. */

.menu-carousel-layout {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--space-7);
	align-items: center;
}

.menu-carousel-layout--hero {
	grid-template-columns: 1.1fr 0.9fr;
}

@media (width <= 960px) {
	.menu-carousel-layout,
	.menu-carousel-layout--hero {
		grid-template-columns: 1fr;
		gap: var(--space-5);
	}
}

.menu-carousel-figure-col {
	min-width: 0;
}

/* Figure component vocabulary — proof grid, code sample, status list,
   feature tiles, tunnel diagram, chip + number list, rate table, doc
   TOC, compat badges. All reuse the site's primary / muted / border
   tokens so they stay consistent with the rest of the page. */

.vt-figure {
	background: var(--light-bg);
	border: 1px solid var(--border-color);
	border-radius: var(--radius);
	padding: var(--space-4);
	box-shadow: var(--shadow);
}

.vt-proof-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--space-3);
	list-style: none;
	margin: 0;
	padding: 0;
}

.vt-proof-grid li {
	background: var(--paper);
	border: 1px solid var(--border-color);
	border-radius: var(--radius);
	padding: var(--space-3) var(--space-4);
}

.vt-proof-label {
	display: block;
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--text-muted);
	margin-bottom: 6px;
}

.vt-proof-value {
	font-size: var(--text-xl);
	font-weight: var(--weight-semibold);
	color: var(--primary-color);
	line-height: var(--leading-tight);
}

.vt-proof-value .sub {
	font-size: var(--text-xs);
	color: var(--text-muted);
	font-weight: var(--weight-regular);
	margin-left: 3px;
}

.vt-proof-note {
	margin-top: 4px;
	font-size: var(--text-xs);
	color: var(--text-muted);
}

.vt-code {
	background: #11171a;
	color: #f6f6f6;
	font-family: var(--font-mono);
	font-size: var(--text-sm);
	line-height: var(--leading-snug);
	border-radius: var(--radius-sm);
	padding: var(--space-4);
	box-shadow: var(--shadow);
	position: relative;
	overflow: hidden;
}

.vt-code-lang {
	position: absolute;
	top: 0;
	right: 0;
	padding: 6px var(--space-3);
	background: #263238;
	color: #c8d3d9;
	font-size: 11px;
	font-weight: var(--weight-semibold);
	letter-spacing: 0.5px;
	text-transform: uppercase;
	border-radius: 0 var(--radius-sm) 0 var(--radius-sm);
}

.vt-code .c-tag {
	color: #80cbc4;
}

.vt-code .c-attr {
	color: #ffcb6b;
}

.vt-code .c-str {
	color: #c3e88d;
}

.vt-code .c-text {
	color: #eff;
}

.vt-code .c-cmt {
	color: #7a8a8a;
	font-style: italic;
}

.vt-status-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: var(--space-2);
}

.vt-status-list li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-3);
	padding: 11px var(--space-3);
	background: var(--paper);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-sm);
}

.vt-status-name {
	font-weight: var(--weight-semibold);
	color: var(--text-strong);
	font-size: var(--text-sm);
}

.vt-status-name .meta {
	color: var(--text-muted);
	font-weight: var(--weight-regular);
	font-size: var(--text-xs);
	margin-left: 6px;
}

.vt-status-indicator {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	font-size: var(--text-xs);
	color: var(--success-color);
	font-weight: var(--weight-medium);
}

.vt-status-indicator::before {
	content: "";
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--success-color);
}

.vt-feature-grid {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: var(--space-2);
}

.vt-feature-tile {
	background: var(--paper);
	border: 1px solid var(--border-color);
	border-radius: var(--radius);
	padding: var(--space-3);
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: var(--space-2);
}

.vt-feature-icon {
	width: 40px;
	height: 40px;
	background: var(--light-bg);
	color: var(--primary-light);
	border-radius: var(--radius-sm);
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.vt-feature-icon svg {
	width: 22px;
	height: 22px;
}

.vt-feature-name {
	font-weight: var(--weight-semibold);
	font-size: var(--text-sm);
	color: var(--text-strong);
}

.vt-feature-meta {
	font-size: 11px;
	color: var(--text-muted);
	font-family: var(--font-mono);
}

.vt-tunnel {
	background: var(--paper);
	border: 1px solid var(--border-color);
	border-radius: var(--radius);
	padding: var(--space-4);
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
}

.vt-tunnel-row {
	display: flex;
	align-items: center;
	gap: var(--space-2);
}

.vt-tunnel-node {
	flex: 1;
	min-width: 0;
	background: var(--light-bg);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-sm);
	padding: var(--space-3);
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.vt-tunnel-node--accent {
	background: var(--paper);
	border-color: var(--primary-light);
	box-shadow: 0 0 0 1px var(--primary-light);
}

.vt-tunnel-node .k {
	font-family: var(--font-mono);
	font-size: 10px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--text-muted);
}

.vt-tunnel-node .v {
	font-weight: var(--weight-semibold);
	font-size: var(--text-sm);
	color: var(--primary-color);
}

.vt-tunnel-arrow {
	color: var(--primary-light);
	font-size: var(--text-lg);
	font-weight: var(--weight-bold);
}

.vt-tunnel-legend {
	display: flex;
	justify-content: space-between;
	font-size: 11px;
	font-family: var(--font-mono);
	color: var(--text-muted);
	padding-top: var(--space-2);
	border-top: 1px solid var(--border-color);
}

.vt-chips {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
	margin-bottom: var(--space-3);
}

.vt-chip {
	display: inline-flex;
	align-items: center;
	padding: 4px var(--space-3);
	border-radius: 999px;
	border: 1px solid var(--border-color);
	background: var(--paper);
	font-size: 11px;
	font-weight: var(--weight-medium);
	color: var(--text-muted);
	font-family: var(--font-mono);
}

.vt-chip--active {
	background: var(--primary-dark);
	color: var(--paper);
	border-color: var(--primary-dark);
}

.vt-num-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.vt-num-list li {
	background: var(--paper);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-sm);
	padding: var(--space-2) var(--space-3);
	display: grid;
	grid-template-columns: 1.4fr 0.5fr 0.5fr;
	align-items: center;
	font-family: var(--font-mono);
	font-size: var(--text-sm);
}

.vt-num-list .n {
	color: var(--text-strong);
}

.vt-num-list .pop {
	color: var(--text-muted);
	font-size: 11px;
}

.vt-num-list .pr {
	color: var(--primary-color);
	text-align: right;
	font-weight: var(--weight-semibold);
}

.vt-rates {
	width: 100%;
	border-collapse: collapse;
	font-variant-numeric: tabular-nums;
	background: var(--paper);
	border: 1px solid var(--border-color);
	box-shadow: var(--shadow);
	border-radius: var(--radius-sm);
	overflow: hidden;
}

.vt-rates th,
.vt-rates td {
	padding: 9px var(--space-3);
	border-bottom: 1px solid var(--border-color);
	text-align: left;
}

.vt-rates thead th {
	background: var(--light-bg);
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-weight: var(--weight-semibold);
	color: var(--text-muted);
}

.vt-rates th.r,
.vt-rates td.r {
	text-align: right;
	font-family: var(--font-mono);
	color: var(--primary-color);
	font-weight: var(--weight-semibold);
}

.vt-rates td.label {
	font-size: var(--text-sm);
	color: var(--text-default);
}

.vt-rates td.label .sub {
	color: var(--text-muted);
	font-size: 11px;
}

.vt-rates tbody tr:last-child td {
	border-bottom: 0;
}

.vt-rates-mark {
	font-size: 9px;
	vertical-align: super;
	margin-left: 2px;
	color: var(--text-muted);
}

.vt-rates-note {
	margin: var(--space-2) 0 0;
	font-size: 10px;
	color: var(--text-muted);
	font-family: var(--font-mono);
}

.vt-rates-note .vt-rates-mark {
	vertical-align: baseline;
	margin-right: 2px;
}

.vt-toc {
	list-style: none;
	margin: 0;
	padding: 0;
	background: var(--paper);
	border: 1px solid var(--border-color);
	border-radius: var(--radius);
	overflow: hidden;
}

.vt-toc li {
	display: flex;
	align-items: center;
	gap: var(--space-3);
	padding: var(--space-2) var(--space-4);
	border-bottom: 1px solid var(--border-color);
}

.vt-toc li:last-child {
	border-bottom: 0;
}

.vt-toc .icon {
	width: 28px;
	height: 28px;
	border-radius: var(--radius-sm);
	background: var(--light-bg);
	color: var(--primary-light);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
}

.vt-toc .icon svg {
	width: 14px;
	height: 14px;
}

.vt-toc .label {
	font-weight: var(--weight-semibold);
	font-size: var(--text-sm);
	color: var(--primary-color);
	flex: 1;
}

.vt-toc .meta {
	font-family: var(--font-mono);
	font-size: 11px;
	color: var(--text-muted);
}

.vt-compat {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
	margin-top: var(--space-3);
}

.vt-compat-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 3px var(--space-3);
	border-radius: 999px;
	font-size: 11px;
	font-weight: var(--weight-semibold);
	background: var(--alert-success-bg);
	color: var(--alert-success-fg);
	border: 1px solid var(--alert-success-rule);
	font-family: var(--font-mono);
}

.vt-compat-badge::before {
	content: "\2713";
}

.menu-carousel-arrow,
.menu-carousel-pause {
	width: 36px;
	height: 36px;
	border-radius: var(--radius-pill);
	border: 1px solid var(--border-color);
	background: #fff;
	color: var(--text-strong);
	cursor: pointer;
	font-size: var(--text-base);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	position: relative;
	z-index: 1;
}

@media (prefers-reduced-motion: no-preference) {
	.menu-carousel-arrow,
	.menu-carousel-pause {
		transition: var(--transition-fast);
	}
}

.menu-carousel-arrow:hover,
.menu-carousel-pause:hover {
	background: var(--light-bg);
	border-color: var(--primary-light);
	color: var(--primary-light);
}

.menu-carousel-arrow:focus-visible,
.menu-carousel-pause:focus-visible {
	outline: 2px solid var(--primary-light);
	outline-offset: 2px;
}

.menu-carousel-dots {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: var(--space-2);
}

.menu-carousel-dot {
	width: 10px;
	height: 10px;
	border-radius: var(--radius-pill);
	border: 1px solid var(--border-color);
	background: var(--paper);
	cursor: pointer;
	padding: 0;
}

@media (prefers-reduced-motion: no-preference) {
	.menu-carousel-dot {
		transition: var(--transition-fast);
	}
}

.menu-carousel-dot:hover {
	background: var(--border-color);
}

.menu-carousel-dot[aria-current="true"] {
	background: var(--primary-light);
	border-color: var(--primary-light);
}

.menu-carousel-dot:focus-visible {
	outline: 2px solid var(--primary-light);
	outline-offset: 2px;
}

@media (width <= 720px) {
	.menu-carousel-title {
		font-size: var(--text-2xl);
	}

	.menu-carousel-slide {
		min-height: 260px;
	}
}

/* ─── Features section ─── */

.features-section {
	padding: var(--space-7) 0;
}

.features-headline {
	text-align: center;
	margin-bottom: var(--space-6);
}

.features-headline h2 {
	font-size: var(--text-2xl);
	margin: 0 0 var(--space-2) 0;
}

.features-headline p {
	font-size: var(--text-md);
	color: var(--text-muted);
	margin: 0;
}

.features-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--space-6) var(--space-5);
}

.feature {
	flex: 1 1 220px;
	max-width: 280px;
	text-align: center;
}

.feature--inline {
	text-align: left;
	display: grid;
	grid-template-columns: 56px 1fr;
	gap: var(--space-3) var(--space-4);
	align-items: start;
	margin: var(--space-6) 0;
	padding: var(--space-5);
	background: var(--light-bg);
	border-radius: var(--radius);
}

.feature--inline .feature-icon {
	margin: 0;
	width: 56px;
	height: 56px;
	background: var(--paper);
	border: 1px solid var(--border-color);
	border-radius: var(--radius);
	grid-row: 1 / span 2;
}

.feature--inline h2 {
	margin: 0;
	font-size: var(--text-xl);
	color: var(--primary-color);
}

.feature--inline p {
	margin: 0;
	font-size: var(--text-sm);
	color: var(--text-default);
}

.feature-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--primary-light);
	margin-bottom: var(--space-3);
}

.feature-icon svg {
	width: 32px;
	height: 32px;
}

.feature h3 {
	font-size: var(--text-lg);
	margin: 0 0 var(--space-2) 0;
}

.feature p {
	font-size: var(--text-sm);
	color: var(--text-default);
	line-height: var(--leading-relaxed);
	margin: 0;
}

.feature p a {
	color: var(--text-default);
}

.feature p a:hover {
	color: var(--primary-dark);
}

/* ─── Section blocks (rendered from marketingCopy) ─── */

.section-block {
	margin: var(--space-7) 0;
}

.section-block h2 {
	font-size: var(--text-2xl);
	margin: 0 0 var(--space-4) 0;
}

.section-block:has(.features-grid) > h2 {
	text-align: center;
	margin-bottom: var(--space-6);
}

.section-block h3 {
	margin: 0 0 var(--space-2) 0;
}

.section-block > h3:not(:first-of-type),
.section-block h3 + * + h3 {
	margin-top: var(--space-6);
}

.section-block .lede {
	max-width: 72ch;
	margin-bottom: var(--space-4);
}

.section-block ul {
	margin: 0 0 var(--space-4) 0;
	padding-left: var(--space-5);
}

.section-block ul li {
	margin-bottom: var(--space-2);
}

.proof-block .proof-list {
	list-style: none;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: var(--space-4);
}

.proof-block .proof-list li {
	background: var(--light-bg);
	border-radius: var(--radius);
	padding: var(--space-4);
}

.proof-label {
	display: inline-block;
	font-family: var(--font-mono);
	font-size: var(--text-xs);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--text-muted);
	margin-bottom: var(--space-1);
}

.cta-block {
	background: var(--alert-info-bg);
	border: 1px solid var(--alert-info-rule);
	border-left: 4px solid var(--primary-color);
	padding: var(--space-6);
	border-radius: var(--radius);
}

.cta-block h2 {
	color: var(--alert-info-fg);
}

.cta-block p {
	color: var(--alert-info-fg);
}

.caveat-block {
	border-left: 3px solid var(--warning-color);
	background: var(--alert-warning-bg);
	color: var(--alert-warning-fg);
	padding: var(--space-4);
	border-radius: 0 var(--radius) var(--radius) 0;
	margin: var(--space-5) 0;
}

/* FAQ search */

.faq-search {
	margin: var(--space-5) 0 var(--space-4);
}

.faq-search input[type="search"] {
	width: 100%;
	padding: var(--space-3) var(--space-4);
	font-size: var(--text-md);
	font-family: var(--font-body);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-sm);
	background: var(--paper);
	color: var(--text-default);
}

.faq-search input[type="search"]:focus {
	outline: 2px solid var(--primary-light);
	outline-offset: 1px;
	border-color: var(--primary-light);
}

.faq-search__status {
	margin: var(--space-2) 0 0;
	min-height: 1.2em;
	font-size: var(--text-sm);
	color: var(--text-muted);
}

.faq-empty {
	margin: var(--space-5) 0;
	font-size: var(--text-sm);
	color: var(--text-muted);
}

.faq-empty__clear {
	background: 0;
	border: 0;
	padding: 0;
	color: var(--primary-light);
	font: inherit;
	cursor: pointer;
	text-decoration: underline;
}

/* FAQ layout: sticky category rail + content */

.faq-layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-4);
}

@media (width >= 900px) {
	.faq-layout {
		grid-template-columns: 200px 1fr;
		gap: var(--space-6);
		align-items: start;
	}
}

.faq-nav {
	display: none;
}

@media (width >= 900px) {
	.faq-nav {
		display: block;
		position: sticky;
		top: var(--space-5);
		font-size: var(--text-sm);
	}
}

.faq-nav__heading {
	margin: 0 0 var(--space-2);
	font-size: var(--text-xs);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--text-muted);
	font-weight: var(--weight-semibold);
}

.faq-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	border-left: 1px solid var(--border-color);
}

.faq-nav li {
	margin: 0;
}

.faq-nav a {
	display: block;
	padding: 6px var(--space-3);
	margin-left: -1px;
	border-left: 2px solid transparent;
	color: var(--text-default);
	text-decoration: none;
	transition:
		color 0.15s,
		border-color 0.15s;
}

.faq-nav a:hover {
	color: var(--primary-color);
}

.faq-nav a.is-active {
	color: var(--primary-color);
	border-left-color: var(--primary-light);
	font-weight: var(--weight-semibold);
}

/* FAQ items */

.faq-block .faq-item {
	border-bottom: 1px solid var(--border-color);
	padding: var(--space-3) 0;
}

.faq-block .faq-item summary {
	display: flex;
	align-items: flex-start;
	gap: var(--space-2);
	cursor: pointer;
	font-weight: var(--weight-semibold);
	color: var(--primary-color);
	font-size: var(--text-md);
	list-style: none;
	padding-right: var(--space-4);
	position: relative;
}

.faq-block .faq-item summary::-webkit-details-marker {
	display: none;
}

/* Custom chevron in the right margin; rotates 180° when open. */
.faq-block .faq-item summary::after {
	content: "";
	position: absolute;
	right: 0;
	top: 0.6em;
	width: 8px;
	height: 8px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform 0.2s ease;
}

.faq-block .faq-item[open] summary::after {
	transform: rotate(225deg);
	top: 0.85em;
}

@media (prefers-reduced-motion: reduce) {
	.faq-block .faq-item summary::after {
		transition: none;
	}
}

.faq-item__question {
	flex: 1;
}

.faq-item__anchor {
	flex: 0 0 auto;
	color: var(--text-muted);
	text-decoration: none;
	font-weight: var(--weight-normal);
	opacity: 0;
	transition: opacity 0.15s;
}

.faq-block .faq-item summary:hover .faq-item__anchor,
.faq-block .faq-item summary:focus-within .faq-item__anchor,
.faq-item__anchor:focus {
	opacity: 1;
}

.faq-item__anchor:hover {
	color: var(--primary-light);
}

.faq-item__answer {
	margin-top: var(--space-2);
}

.faq-item__answer p:first-child {
	margin-top: 0;
}

.faq-block .faq-item p {
	margin-top: var(--space-2);
}

/* Code block — Redoc-inspired dark panel.
 * Bg #11171a / accent #263238 mirror the Redoc API doc theme so request
 * samples on marketing pages match the API reference visually. */
.code-block {
	position: relative;
	margin: 0;
	padding: var(--space-5);
	background: #11171a;
	color: #f6f6f6;
	font-family: var(--font-mono);
	font-size: var(--text-sm);
	line-height: 1.65;
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow);
	overflow-x: auto;
	tab-size: 4;
}

.code-block code {
	font-family: inherit;
	font-size: inherit;
	color: inherit;
	background: none;
	padding: 0;
	white-space: pre;
}

.code-block[data-lang]::before {
	content: attr(data-lang);
	position: absolute;
	top: 0;
	right: 0;
	padding: var(--space-2) var(--space-3);
	background: #263238;
	color: #c8d3d9;
	font-size: var(--text-xs);
	font-weight: var(--weight-semibold);
	letter-spacing: 0.5px;
	text-transform: uppercase;
	border-radius: 0 var(--radius-sm) 0 var(--radius-sm);
	pointer-events: none;
	user-select: none;
}

.code-block::-webkit-scrollbar {
	height: 8px;
}

.code-block::-webkit-scrollbar-track {
	background: rgb(255 255 255 / 4%);
}

.code-block::-webkit-scrollbar-thumb {
	background: rgb(255 255 255 / 18%);
	border-radius: var(--radius-pill);
}

.code-block::-webkit-scrollbar-thumb:hover {
	background: rgb(255 255 255 / 30%);
}

.code-block ::selection {
	background: rgb(255 255 255 / 20%);
	color: #fff;
}

/* Code-sample tabs (Redoc-styled). All panels stack without JS; tab strip
 * is hidden in that case so each panel reads as a normal code block. */
.code-tabs {
	margin: var(--space-4) 0;
}

.code-tabs__list {
	display: flex;
	flex-wrap: nowrap;
	overflow-x: auto;
	background: #263238;
	border-radius: var(--radius-sm) var(--radius-sm) 0 0;
	padding: 0 var(--space-2);
}

.code-tabs__tab {
	background: transparent;
	color: #a8b3ba;
	border: 0;
	padding: var(--space-3) var(--space-4);
	font-family: var(--font-mono);
	font-size: var(--text-xs);
	font-weight: var(--weight-medium);
	letter-spacing: 0.5px;
	cursor: pointer;
	white-space: nowrap;
	border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.code-tabs__tab:hover {
	color: #fff;
}

.code-tabs__tab[aria-selected="true"] {
	background: #11171a;
	color: #fff;
	font-weight: var(--weight-semibold);
}

.code-tabs__tab:focus-visible {
	outline: 2px solid var(--primary-light);
	outline-offset: -2px;
}

.code-tabs .code-block {
	border-radius: 0 0 var(--radius-sm) var(--radius-sm);
	box-shadow: none;
}

.code-tabs .code-block::before {
	display: none;
}

html:not(.js) .code-tabs__list {
	display: none;
}

html:not(.js) .code-tabs [role="tabpanel"] {
	margin-top: var(--space-4);
}

/* ─── Footer ─── */

.footer {
	background: var(--light-bg);
	color: var(--text-muted);
	padding: var(--space-7) 0 var(--space-4);
	margin-top: 0;
	border-top: 1px solid var(--border-color);
}

.footer-grid {
	display: grid;
	grid-template-columns: 1.5fr 2fr 1fr 1fr;
	gap: var(--space-5);
	margin-bottom: var(--space-5);
}

.footer-brand {
	font-size: var(--text-xl);
	font-weight: var(--weight-bold);
	color: var(--primary-color);
	margin-bottom: var(--space-2);
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	line-height: 1;
}

.footer-brand-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--primary-color);
}

.footer-brand-icon svg {
	width: 28px;
	height: 32px;
	fill: currentColor;
	shape-rendering: geometricPrecision;
}

.footer-tagline {
	font-size: var(--text-sm);
	margin-bottom: var(--space-4);
}

.footer-quick-links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--space-2);
}

.footer-quick-links a {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	color: var(--text-muted);
	font-size: var(--text-sm);
	text-decoration: none;
}

.footer-quick-links a:hover {
	color: var(--primary-light);
}

/* Brand column: stretch to full grid-row height so the action buttons
   can be pushed to the bottom edge, level with the bottom of the
   neighboring columns' link lists. */
.footer-col:first-child {
	display: flex;
	flex-direction: column;
}

/* Account-action buttons sit at the bottom of the brand column */
.footer-actions {
	display: flex;
	gap: var(--space-2);
	margin: var(--space-3) 0 0;
	margin-top: auto;
}

.footer-actions .btn {
	flex: 1;
	justify-content: center;
}

/* Heading row: column heading + optional inline CTA. In a 2-col footer
   group (Products), the row mirrors the underlying items grid so the CTA
   sits directly above the second sub-column (e.g., over "Messaging"). */
.footer-heading-row {
	display: flex;
	align-items: center;
	gap: var(--space-3);
	margin-bottom: var(--space-3);
}

.footer-col--wide .footer-heading-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--space-1) var(--space-4);
	align-items: center;
}

.footer-heading-row .footer-heading {
	margin: 0;
}

.footer-heading-cta {
	display: inline-flex;
	align-items: center;
	justify-self: start;
	gap: var(--space-2);
	color: var(--text-default);
	font-size: var(--text-sm);
	font-weight: var(--weight-semibold);
	text-decoration: none;
}

.footer-heading-cta:hover {
	color: var(--primary-color);
}

.footer-heading-cta:hover .footer-quick-icon {
	background: var(--primary-light);
	color: var(--paper);
	border-color: var(--primary-light);
}

.footer-quick-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: var(--radius-sm);
	background: var(--paper);
	color: var(--text-default);
	border: 1px solid var(--border-color);
}

.footer-quick-icon svg {
	width: 14px;
	height: 14px;
}

.footer-quick-links a:hover .footer-quick-icon {
	background: var(--primary-light);
	color: var(--paper);
	border-color: var(--primary-light);
}

@media (prefers-reduced-motion: no-preference) {
	.footer-quick-icon {
		transition: var(--transition-fast);
	}
}

.footer-heading {
	font-size: var(--text-xs);
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--text-default);
	margin: 0 0 var(--space-3) 0;
}

.footer-links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: var(--space-1);
}

.footer-links--two-col {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--space-1) var(--space-4);
}

.footer-links a {
	color: var(--text-muted);
	font-size: var(--text-sm);
	text-decoration: none;
}

.footer-links a:hover {
	color: var(--primary-light);
	text-decoration: underline;
}

.footer-meta {
	border-top: 1px solid var(--border-color);
	padding-top: var(--space-4);
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: var(--space-3);
	font-size: var(--text-xs);
}

.footer-pops-link,
.footer-legal-link {
	color: var(--text-muted);
	text-decoration: none;
}

.footer-pops-link:hover,
.footer-legal-link:hover {
	color: var(--primary-light);
	text-decoration: underline;
}

@media (width <= 720px) {
	.footer-grid {
		grid-template-columns: 1fr;
	}
}

/* ─── API playground ───────────────────────────────────────────────── */

.playground {
	display: flex;
	flex-direction: column;
	gap: var(--space-6);
}

.playground-header {
	border: 1px solid var(--border-color);
	background: var(--paper);
	padding: var(--space-5);
}

.playground-key h2 {
	margin: 0 0 var(--space-2);
	font-size: var(--text-lg);
}

.playground-key-state {
	display: inline-block;
	padding: 2px var(--space-2);
	font-size: var(--text-sm);
	font-weight: var(--weight-semibold);
	border: 1px solid var(--border-color);
}

.playground-key-state--set {
	background: var(--alert-success-bg);
	color: var(--alert-success-fg);
	border-color: var(--alert-success-rule);
}

.playground-key-state--unset {
	background: var(--light-bg);
	color: var(--text-muted);
}

.playground-key-meta {
	margin-left: var(--space-2);
	font-size: var(--text-sm);
	color: var(--text-muted);
}

.playground-key-actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
	margin-top: var(--space-3);
}

.playground-key-form {
	margin-top: var(--space-4);
	padding-top: var(--space-4);
	border-top: 1px solid var(--border-color);
}

.playground-key-form[hidden] {
	display: none;
}

.playground-key-form h3 {
	margin: 0 0 var(--space-2);
	font-size: var(--text-md);
}

.playground-layout {
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: var(--space-4);
	align-items: start;
}

.playground-sidebar {
	border: 1px solid var(--border-color);
	background: var(--paper);
	padding: var(--space-3);
	max-height: calc(100vh - var(--space-7));
	overflow-y: auto;
	position: sticky;
	top: var(--space-4);
}

.playground-sidebar h2 {
	margin: 0 0 var(--space-2);
	font-size: var(--text-sm);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--text-muted);
}

.playground-op-group {
	margin-bottom: var(--space-3);
}

.playground-op-group > summary {
	display: flex;
	align-items: center;
	gap: var(--space-2);
	margin: 0 0 var(--space-1);
	padding: var(--space-1) 0;
	font-size: var(--text-xs);
	font-weight: var(--weight-semibold);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--text-muted);
	cursor: pointer;
	list-style: none;
	user-select: none;
}

.playground-op-group > summary::-webkit-details-marker {
	display: none;
}

.playground-op-group > summary::before {
	content: "";
	display: inline-block;
	width: 0.6em;
	height: 0.6em;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(-45deg);
	transition: transform 120ms ease;
	flex: 0 0 auto;
}

.playground-op-group[open] > summary::before {
	transform: rotate(45deg);
}

.playground-op-group > summary:focus-visible {
	outline: 2px solid var(--primary-light);
	outline-offset: 2px;
}

.playground-op-group-name {
	flex: 1 1 auto;
}

.playground-op-group-count {
	color: var(--text-muted);
	font-weight: var(--weight-regular);
}

.playground-op-group ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.playground-op-btn {
	display: block;
	width: 100%;
	text-align: left;
	background: transparent;
	border: 1px solid transparent;
	padding: var(--space-1) var(--space-2);
	cursor: pointer;
	font: inherit;
	color: var(--text-default);
	font-size: var(--text-sm);
	line-height: var(--leading-snug);
}

.playground-op-btn:hover {
	background: var(--light-bg);
}

.playground-op-btn.is-active {
	background: var(--light-bg);
	border-color: var(--primary-light);
}

.playground-op-btn:focus-visible {
	outline: 2px solid var(--primary-light);
	outline-offset: 2px;
}

.playground-op-method {
	display: inline-block;
	min-width: 48px;
	margin-right: var(--space-1);
	padding: 1px 5px;
	font-family: var(--font-mono);
	font-size: 10px;
	font-weight: var(--weight-bold);
	letter-spacing: 0.5px;
	text-align: center;
	vertical-align: middle;
	background: var(--alert-info-bg);
	color: var(--alert-info-fg);
	border: 1px solid var(--alert-info-rule);
}

.playground-op-method--get {
	background: var(--alert-success-bg);
	color: var(--alert-success-fg);
	border-color: var(--alert-success-rule);
}

.playground-op-method--post {
	background: var(--alert-info-bg);
	color: var(--alert-info-fg);
	border-color: var(--alert-info-rule);
}

.playground-op-method--put,
.playground-op-method--patch {
	background: var(--alert-warning-bg);
	color: var(--alert-warning-fg);
	border-color: var(--alert-warning-rule);
}

.playground-op-method--delete {
	background: var(--alert-error-bg);
	color: var(--alert-error-fg);
	border-color: var(--alert-error-rule);
}

.playground-body {
	display: grid;
	gap: var(--space-1);
	margin-top: var(--space-3);
}

.playground-body label {
	font-weight: var(--weight-semibold);
	font-size: var(--text-sm);
}

.playground-body textarea {
	width: 100%;
	padding: var(--space-2) var(--space-3);
	border: 1px solid var(--border-color);
	background: var(--paper);
	font-family: var(--font-mono);
	font-size: var(--text-sm);
	line-height: var(--leading-snug);
	resize: vertical;
	min-height: 8em;
}

.playground-body textarea:focus-visible {
	outline: 2px solid var(--primary-light);
	outline-offset: 1px;
}

.playground-main {
	min-width: 0;
}

.playground-op {
	border: 1px solid var(--border-color);
	background: var(--paper);
	padding: var(--space-5);
}

.playground-op-header h2 {
	margin: 0 0 var(--space-2);
	font-size: var(--text-xl);
}

.playground-op-meta {
	font-family: var(--font-mono);
	font-size: var(--text-sm);
	color: var(--text-muted);
	margin: 0 0 var(--space-2);
}

.playground-op-meta code {
	background: var(--light-bg);
	padding: 2px var(--space-2);
}

.playground-op-summary {
	color: var(--text-muted);
	margin: 0 0 var(--space-4);
}

.playground-op-form {
	margin-bottom: var(--space-4);
}

.playground-op-form:empty {
	display: none;
}

.playground-form-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-3);
}

.playground-field label {
	display: block;
	font-weight: var(--weight-semibold);
	font-size: var(--text-sm);
	margin-bottom: var(--space-1);
}

.playground-field input,
.playground-field select {
	width: 100%;
	padding: var(--space-2) var(--space-3);
	border: 1px solid var(--border-color);
	background: var(--paper);
	font: inherit;
	font-family: var(--font-mono);
	font-size: var(--text-sm);
}

.playground-field input:focus-visible,
.playground-field select:focus-visible {
	outline: 2px solid var(--primary-light);
	outline-offset: 1px;
}

.playground-actions {
	display: flex;
	gap: var(--space-2);
	margin-bottom: var(--space-5);
}

.playground-response,
.playground-curl {
	margin-top: var(--space-5);
}

.playground-response h3,
.playground-curl h3 {
	margin: 0 0 var(--space-2);
	font-size: var(--text-md);
}

.playground-curl-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-3);
	margin-bottom: var(--space-2);
}

.playground-status {
	font-family: var(--font-mono);
	font-size: var(--text-sm);
	margin: 0 0 var(--space-3);
}

.playground-status--ok strong {
	color: var(--success-color);
}

.playground-status--client-error strong {
	color: var(--warning-color);
}

.playground-status--server-error strong {
	color: var(--error-color);
}

.playground-elapsed {
	margin-left: var(--space-2);
	color: var(--text-muted);
}

.playground-headers {
	margin-bottom: var(--space-3);
}

.playground-headers summary {
	cursor: pointer;
	font-size: var(--text-sm);
	color: var(--text-muted);
	margin-bottom: var(--space-2);
}

.playground-empty {
	color: var(--text-muted);
	font-size: var(--text-sm);
	margin: 0;
}

.playground-hint {
	font-size: var(--text-sm);
	color: var(--text-muted);
	margin-top: var(--space-2);
}

@media (width <= 900px) {
	.playground-layout {
		grid-template-columns: 1fr;
	}

	.playground-sidebar {
		position: static;
		max-height: 360px;
	}
}

@media (width <= 480px) {
	.playground-header,
	.playground-op {
		padding: var(--space-4);
	}

	.playground-op-btn {
		padding: var(--space-2);
	}
}
