@charset "utf-8";
/* Pholio developer portal (/developers). Builds on pholio.css; keep overrides scoped to .dev-* classes. */

:root {
	--dev-dark: #28292b;
	--dev-light: #efefef;
	--dev-surface: #ffffff;
	--dev-muted: #6c6e74;
	--dev-border: #dcdcdf;
	--dev-blue: #5880b7;
	--dev-teal: #69bfc8;
	--dev-code-bg: #1e1f21;
	--dev-code-fg: #e8e8ea;
	--dev-mono: SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

.dev-page {
	min-height: 70vh;
}

/* Height of the fixed light header (see .header_is_fixed_light in pholio.css). */
.dev-page__top {
	height: 104px;
}

/*
 * Section navigation: one tab bar directly under the site header on every page,
 * including the API reference, whose Scalar sidebar takes the left-hand side.
 * It stays under the fixed header while the guides scroll.
 */
/* pholio.css sets main { overflow: hidden }, which stops position: sticky; clip still clips. */
.developers main.content {
	overflow: clip;
}

.dev-tabs {
	position: sticky;
	top: 104px;
	z-index: 10;
	background: var(--dev-light);
	border-bottom: 1px solid var(--dev-border);
}

.dev-nav {
	list-style: none;
	margin: 0;
	padding: 0;
}

.dev-nav_tabs {
	display: flex;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.pholio-light a.dev-nav__link {
	display: block;
	padding: 14px 16px 11px;
	white-space: nowrap;
	border-bottom: 3px solid transparent;
	color: var(--dev-dark);
	font-weight: 500;
}

/* Reserves the bold width, so the tabs don't shift when the active one changes. */
.dev-nav__link::after {
	content: attr(data-label);
	display: block;
	height: 0;
	overflow: hidden;
	visibility: hidden;
	font-weight: 700;
}

.pholio-light a.dev-nav__link:hover {
	color: var(--dev-blue);
}

.pholio-light a.dev-nav__link_active {
	border-bottom-color: var(--dev-teal);
	color: var(--dev-blue);
	font-weight: 700;
}

.dev-body {
	padding-top: 50px;
}

/* Hero (landing page) */
.dev-hero {
	padding: 20px 0 50px;
	margin-bottom: 40px;
	border-bottom: 1px solid var(--dev-border);
}

.dev-hero__title {
	font-size: 2.75rem;
	font-weight: 300;
	line-height: 1.2;
	margin: 0 0 20px;
	color: var(--dev-dark);
}

.dev-hero__title strong {
	font-weight: 800;
}

.dev-hero__lead {
	font-size: 1.15rem;
	max-width: 720px;
	color: var(--dev-muted);
}

.dev-hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 24px;
	margin-top: 30px;
}

.dev-hero__actions .ph-btn span {
	font-weight: 700;
}

.pholio-light a.dev-link-arrow {
	font-weight: 700;
	color: var(--dev-blue);
}

.dev-link-arrow::after {
	content: " \2192";
}

.dev-eyebrow {
	margin: 0 0 8px;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--dev-blue);
}

@media (max-width: 991.98px) {
	.dev-body {
		padding-top: 30px;
	}

	.dev-hero__title {
		font-size: 2rem;
	}
}

/* Content */
.dev-content {
	min-width: 0;
	max-width: 1140px;
	color: var(--dev-dark);
}

.dev-title {
	font-size: 2.25rem;
	font-weight: 800;
	margin: 0 0 16px;
}

.dev-lead {
	font-size: 1.1rem;
	color: var(--dev-muted);
	max-width: 760px;
}

.dev-content h2 {
	font-size: 1.5rem;
	font-weight: 800;
	margin: 40px 0 16px;
}

.dev-content h2.mt-0 {
	margin-top: 0;
}

/* Clears the fixed header and the sticky tab bar. */
.dev-content h2[id] {
	scroll-margin-top: 185px;
}

/* Sub-headings; overrides the 38px/900 h3 from pholio.css. */
.dev-content h3.dev-subtitle {
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1.4;
	margin: 28px 0 12px;
}

.pholio-light .dev-content p a,
.pholio-light .dev-content li a,
.pholio-light .dev-content td a {
	color: var(--dev-blue);
	font-weight: 500;
}

.pholio-light .dev-content p a:hover,
.pholio-light .dev-content li a:hover,
.pholio-light .dev-content td a:hover {
	color: var(--dev-teal);
}

.dev-list {
	padding-left: 1.25rem;
	margin-bottom: 20px;
}

.dev-list li {
	margin-bottom: 8px;
	line-height: 1.65;
}

.dev-content code {
	font-family: var(--dev-mono);
	font-size: 0.875em;
	padding: 2px 6px;
	border-radius: 4px;
	background: #e2e3e6;
	color: var(--dev-dark);
	word-break: break-word;
}

.dev-code {
	margin: 0 0 24px;
	padding: 18px 20px;
	border-radius: 6px;
	background: var(--dev-code-bg);
	overflow-x: auto;
}

.dev-content .dev-code code {
	padding: 0;
	background: none;
	color: var(--dev-code-fg);
	font-size: 0.875rem;
	line-height: 1.6;
	white-space: pre;
	word-break: normal;
}

.dev-table {
	background: var(--dev-surface);
	color: var(--dev-dark);
	font-size: 0.95rem;
	margin-bottom: 24px;
}

.dev-table th {
	font-weight: 700;
	border-top: 0;
	white-space: nowrap;
}

.dev-table td:first-child {
	white-space: nowrap;
}

/* Tables whose first column holds sentences rather than codes. */
.dev-table_prose td:first-child {
	white-space: normal;
	width: 35%;
}

/* Cards (landing page) */
.dev-cards {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
	margin: 30px 0 20px;
}

@media (min-width: 576px) {
	.dev-cards {
		grid-template-columns: repeat(2, 1fr);
	}
}

.pholio-light a.dev-card {
	display: block;
	padding: 26px 24px;
	border: 1px solid var(--dev-border);
	border-radius: 6px;
	background: var(--dev-surface);
	color: var(--dev-dark);
	transition: border-color 0.3s, box-shadow 0.3s;
}

.pholio-light a.dev-card:hover {
	color: var(--dev-dark);
	border-color: var(--dev-teal);
	box-shadow: 0 6px 20px rgba(40, 41, 43, 0.08);
}

.dev-card_featured {
	border-top: 3px solid var(--dev-blue) !important;
}

.dev-card__icon {
	display: block;
	font-size: 28px;
	margin-bottom: 14px;
	color: var(--dev-blue);
}

.dev-card__title {
	font-size: 1.15rem;
	margin: 0 0 8px;
}

.dev-card__text {
	margin: 0;
	font-size: 0.95rem;
	color: var(--dev-muted);
}

/*
 * Full-width pages (API reference): site header, the tab bar, then the framed
 * Scalar reference filling the rest of the viewport. No footer, so the page is
 * exactly one viewport tall.
 */
.dev-page_fullwidth {
	display: flex;
	flex-direction: column;
	height: 100vh;
	height: 100dvh;
	background: var(--dev-surface);
}

.dev-api-frame {
	display: block;
	flex: 1 1 auto;
	width: 100%;
	min-height: 0;
	border: 0;
}

/* No reveal footer on full-width pages, so the page is exactly one viewport tall. */
.dev-main_fullwidth {
	margin-bottom: 0;
}
