/*
 * Docspress design system
 *
 * Order: tokens, foundation, header, shell, navigation, content, WordPress
 * integrations, responsive states. Each component has one source of truth;
 * responsive rules are grouped at the end of the component sections.
 */

:root {
	--bg: #ffffff;
	--surface: #f6f6f7;
	--surface-strong: #efeff1;
	--sidebar: #f7f7f8;
	--ink: #3c3c43;
	--ink-soft: #5f5f66;
	--muted: #85858b;
	--faint: #9a9aa0;
	--line: #e2e2e3;
	--accent: #e87917;
	--accent-soft: rgba(232, 121, 23, .36);

	--header-h: 64px;
	--local-h: 48px;
	--admin-bar-h: 0px;
	--local-drawer-top: calc(var(--admin-bar-h) + var(--header-h) + var(--local-h));
	--drawer-head-h: 52px;

	--shell-max: 1500px;
	--shell-pad: clamp(18px, 3vw, 40px);
	--shell-gap: clamp(24px, 3vw, 40px);
	--rail-left: clamp(208px, 17vw, 250px);
	--rail-right: clamp(280px, 24vw, 380px);
	--content-max: 780px;
	--reading-max: 700px;

	--font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial,
		"Noto Sans CJK SC", "PingFang SC", "Hiragino Sans GB", sans-serif;
}

body.admin-bar {
	--admin-bar-h: 32px;
	--local-drawer-top: calc(var(--admin-bar-h) + var(--header-h) + var(--local-h));
}

@media (max-width: 782px) {
	body.admin-bar {
		--admin-bar-h: 46px;
	}
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	scrollbar-gutter: stable;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.75;
}

body.no-scroll {
	overflow: hidden;
}

a {
	color: var(--accent);
	text-underline-offset: .14em;
}

button,
input,
textarea,
select {
	font: inherit;
}

img,
svg,
video,
iframe {
	max-width: 100%;
}

img {
	height: auto;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
		transition-duration: .01ms !important;
	}
}

/* Accessibility */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus {
	top: 8px;
	left: 8px;
	z-index: 99999;
	width: auto;
	height: auto;
	margin: 0;
	padding: 10px 14px;
	clip: auto;
	background: var(--bg);
	color: var(--ink);
	box-shadow: 0 2px 12px rgba(0, 0, 0, .12);
}

/* Header */
.top-header {
	position: sticky;
	top: var(--admin-bar-h);
	z-index: 1000;
	height: var(--header-h);
	background: rgba(255, 255, 255, .98);
	border-bottom: 1px solid var(--line);
}

.header-inner {
	display: flex;
	align-items: center;
	gap: 28px;
	height: 100%;
	max-width: var(--shell-max);
	margin: 0 auto;
	padding: 0 var(--shell-pad);
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	min-width: max-content;
	color: var(--ink);
	font-weight: 600;
	letter-spacing: -.01em;
	text-decoration: none;
}

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

.brand-symbol {
	display: block;
	flex: 0 0 30px;
	width: 30px;
	height: 30px;
	overflow: visible;
}

.brand-symbol picture,
.brand-logo {
	display: block;
	width: 30px;
	height: 30px;
	max-width: none;
	max-height: none;
	object-fit: contain;
}

.brand-logo {
	margin: 0;
}

.brand-symbol.has-custom-logo {
	flex-basis: auto;
	width: auto;
	max-width: 160px;
}

.brand-symbol.has-custom-logo .custom-logo {
	width: auto;
	max-width: 160px;
	height: 36px;
}

.global-nav {
	display: flex;
	align-items: center;
	margin-left: auto;
}

.global-nav-list,
.footer-menu {
	display: flex;
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.global-nav a,
.global-nav-list a,
.footer-menu a {
	color: #51515a;
	font-size: .94rem;
	font-weight: 500;
	text-decoration: none;
}

.global-nav a:hover,
.global-nav-list a:hover,
.global-nav-list .current-menu-item > a,
.global-nav-list .current_page_item > a {
	color: var(--accent);
}

.header-search-form {
	min-width: 180px;
}

.header-mobile-btn {
	display: none;
	align-items: center;
	justify-content: center;
	position: relative;
	width: 40px;
	height: 40px;
	margin-left: auto;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--ink);
	cursor: pointer;
}

.header-mobile-btn:hover {
	background: var(--surface);
}

.header-mobile-btn span,
.header-mobile-btn::before,
.header-mobile-btn::after {
	content: "";
	display: block;
	width: 19px;
	height: 1.5px;
	background: currentColor;
	transition: transform .18s ease, opacity .18s ease;
}

.header-mobile-btn span {
	margin: 4px 0;
}

.header-mobile-btn[aria-expanded="true"] span {
	opacity: 0;
}

.header-mobile-btn[aria-expanded="true"]::before,
.header-mobile-btn[aria-expanded="true"]::after {
	position: absolute;
	top: 50%;
	left: 50%;
}

.header-mobile-btn[aria-expanded="true"]::before {
	transform: translate(-50%, -50%) rotate(45deg);
}

.header-mobile-btn[aria-expanded="true"]::after {
	transform: translate(-50%, -50%) rotate(-45deg);
}

/* Search */
.docspress-search-form {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
	margin: 0;
}

.docspress-search-label {
	display: block;
	width: 100%;
}

.search-field {
	width: 100%;
	height: 36px;
	padding: 0 38px 0 11px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--surface);
	color: var(--ink);
	font-size: .8rem;
}

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

.search-submit {
	display: grid;
	place-items: center;
	position: absolute;
	top: 0;
	right: 0;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--faint);
	cursor: pointer;
}

.search-submit:hover {
	color: var(--ink);
}

.docspress-icon {
	display: block;
	width: 17px;
	height: 17px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.5;
	stroke-linecap: round;
}

/* Local navigation */
.mobile-local {
	display: none;
	position: sticky;
	top: calc(var(--admin-bar-h) + var(--header-h));
	z-index: 900;
	height: var(--local-h);
	background: rgba(255, 255, 255, .98);
	border-bottom: 1px solid var(--line);
}

.mobile-local-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	height: 100%;
	max-width: var(--shell-max);
	margin: 0 auto;
	padding: 0 var(--shell-pad);
}

.local-trigger {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-width: 0;
	padding: 7px 5px;
	border: 0;
	background: transparent;
	color: #51515a;
	font-size: .84rem;
	font-weight: 600;
	cursor: pointer;
}

.local-trigger:hover,
.local-trigger[aria-expanded="true"] {
	color: var(--accent);
}

.local-trigger > span:not(.icon) {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.local-trigger .icon {
	position: relative;
	flex: 0 0 16px;
	width: 16px;
	height: 16px;
	color: var(--accent);
}

.icon-menu,
.icon-toc {
	border-top: 1.5px solid currentColor;
}

.icon-menu::before,
.icon-menu::after,
.icon-toc::before,
.icon-toc::after {
	content: "";
	position: absolute;
	width: 16px;
	border-top: 1.5px solid currentColor;
}

.icon-menu::before,
.icon-menu::after {
	left: 0;
}

.icon-menu::before,
.icon-toc::before {
	top: 5px;
}

.icon-menu::after,
.icon-toc::after {
	top: 11px;
}

.icon-toc::before,
.icon-toc::after {
	right: 0;
	width: 11px;
}

.local-context {
	min-width: 0;
	margin-left: auto;
	color: var(--muted);
	font-size: .78rem;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Shared shell */
.doc-frame {
	position: relative;
	display: grid;
	grid-template-columns: var(--rail-left) minmax(0, 1fr) var(--rail-right);
	column-gap: var(--shell-gap);
	max-width: var(--shell-max);
	min-height: calc(100vh - var(--admin-bar-h) - var(--header-h));
	margin: 0 auto;
	padding: 0 var(--shell-pad) 80px;
	isolation: isolate;
}

.doc-frame::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	z-index: -1;
	width: calc(var(--shell-pad) + var(--rail-left));
	background: var(--sidebar);
	border-right: 1px solid var(--line);
}

.content-wrap,
.article-wrap {
	min-width: 0;
	padding-top: clamp(30px, 3vw, 44px);
}

.left-sidebar,
.right-toc,
.standard-sidebar {
	min-width: 0;
	align-self: start;
}

.left-sidebar,
.right-toc,
.standard-sidebar:not(.rightbar-drawer) {
	position: sticky;
	top: calc(var(--admin-bar-h) + var(--header-h) + 24px);
	max-height: calc(100vh - var(--admin-bar-h) - var(--header-h) - 48px);
	overflow: auto;
	scrollbar-width: thin;
}

.left-sidebar {
	padding: 28px 18px 40px 2px;
	background: var(--sidebar);
	font-size: .92rem;
	line-height: 1.5;
}

.right-toc {
	padding: 30px 0 40px 14px;
	border-left: 1px solid var(--line);
	font-size: .8rem;
	line-height: 1.5;
}

.standard-frame .standard-sidebar {
	padding: clamp(34px, 3vw, 46px) 0 40px clamp(18px, 2vw, 28px);
	border-left: 1px solid var(--line);
	font-size: .98rem;
	line-height: 1.65;
}

.standard-frame .standard-article,
.standard-frame .post-list {
	width: 100%;
	max-width: var(--content-max);
}

.standard-frame .standard-article {
	margin: 0;
}

/* Site navigation */
.site-root-link {
	display: flex;
	align-items: center;
	gap: 9px;
	margin: 0 0 25px;
	color: var(--ink);
	font-size: 1rem;
	font-weight: 650;
	text-decoration: none;
}

.site-root-link:hover {
	color: var(--accent);
}

.site-root-mark {
	display: grid;
	place-items: center;
	width: 25px;
	height: 25px;
	border: 1px solid #a9a9ae;
	border-radius: 50%;
	color: var(--accent);
	font-size: .72rem;
	font-weight: 700;
}

.site-nav-list,
.site-nav-list ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav-list > li {
	margin: 0;
	border-top: 1px solid rgba(226, 226, 227, .8);
}

.site-nav-list a {
	display: block;
	padding: 10px 0;
	color: #66666d;
	font-size: 1rem;
	line-height: 1.6;
	text-decoration: none;
}

.site-nav-list a:hover,
.site-nav-list .current-menu-item > a,
.site-nav-list .current_page_item > a {
	color: var(--accent);
}

.site-nav-list .sub-menu {
	margin: 0 0 8px;
	padding-left: 13px;
	border-left: 1px solid #d4d4d7;
}

.site-nav-list .sub-menu a {
	padding: 5px 0;
	font-size: .92rem;
	line-height: 1.55;
}

/* Contextual rightbars */
.standard-sidebar .widget,
.forum-panel-section {
	margin: 0 0 28px;
}

.standard-sidebar .widget:last-child,
.forum-panel-section:last-child {
	margin-bottom: 0;
}

.standard-sidebar .widget-title,
.forum-panel-section h2 {
	margin: 0 0 11px;
	color: #77777d;
	font-size: .86rem;
	font-weight: 650;
	letter-spacing: .08em;
	line-height: 1.4;
	text-transform: uppercase;
}

.sidebar-post-list,
.forum-topic-list,
.forum-context-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.sidebar-post-list li,
.forum-topic-list li {
	margin: 0;
	padding: 10px 0;
	border-bottom: 1px solid var(--line);
}

.sidebar-post-list a,
.forum-topic-list a,
.forum-context-list a {
	display: block;
	color: #58585f;
	font-size: 1rem;
	line-height: 1.62;
	text-decoration: none;
}

.sidebar-post-list a:hover,
.forum-topic-list a:hover,
.forum-context-list a:hover {
	color: var(--accent);
}

.sidebar-post-list time,
.forum-topic-list time {
	display: block;
	margin-top: 3px;
	color: var(--faint);
	font-size: .82rem;
	line-height: 1.5;
}

.forum-context-list li {
	margin: 0 0 7px;
}

.forum-context-list a {
	font-size: .96rem;
}

/* WordPress block widgets use the same restrained rail rhythm as native widgets. */
.standard-sidebar .widget > h2,
.standard-sidebar .widget > h3,
.standard-sidebar .widget > h4,
.standard-sidebar .widget .wp-block-heading,
.standard-sidebar .widget-title {
	margin: 0 0 10px;
	color: #77777d;
	font-size: .76rem;
	font-weight: 650;
	letter-spacing: .08em;
	line-height: 1.35;
	text-transform: uppercase;
}

.standard-sidebar .wp-block-search__label {
	display: block;
	margin: 0 0 7px;
	color: #77777d;
	font-size: .76rem;
	font-weight: 650;
	letter-spacing: .08em;
	line-height: 1.35;
	text-transform: uppercase;
}

.standard-sidebar .wp-block-search__inside-wrapper {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 6px;
}

.standard-sidebar .wp-block-search__input,
.standard-sidebar .wp-block-search__button {
	width: 100%;
	height: 36px;
	min-height: 36px;
	padding: 6px 9px;
	border: 1px solid var(--line);
	border-radius: 6px;
	background: var(--bg);
	color: var(--ink-soft);
	font: inherit;
	font-size: 14px;
	line-height: 1.35;
}

.standard-sidebar .wp-block-search__button {
	width: auto;
	padding-right: 11px;
	padding-left: 11px;
	background: var(--surface);
	cursor: pointer;
}

.standard-sidebar .wp-block-search__button:hover {
	border-color: #b5b5ba;
	color: var(--accent);
}

.standard-sidebar .wp-block-latest-posts,
.standard-sidebar .wp-block-latest-comments {
	margin: 0;
	padding: 0;
	list-style: none;
}

.standard-sidebar .wp-block-latest-posts li,
.standard-sidebar .wp-block-latest-comments__comment {
	margin: 0;
	padding: 7px 0;
	border-bottom: 1px solid var(--line);
}

.standard-sidebar .wp-block-latest-posts__post-title,
.standard-sidebar .wp-block-latest-comments__comment-link,
.standard-sidebar .wp-block-latest-comments__comment-author {
	color: #58585f;
	font-size: .9rem;
	line-height: 1.45;
	text-decoration: none;
}

.standard-sidebar .wp-block-latest-posts__post-title:hover,
.standard-sidebar .wp-block-latest-comments__comment-link:hover,
.standard-sidebar .wp-block-latest-comments__comment-author:hover {
	color: var(--accent);
}

/* Front-page portal */
.home-portal {
	width: 100%;
	max-width: 900px;
}

.home-portal-intro {
	padding-bottom: 28px;
	border-bottom: 1px solid var(--line);
}

.home-portal-intro h1 {
	margin: 7px 0 10px;
	font-size: clamp(2rem, 3vw, 2.45rem);
	font-weight: 600;
	line-height: 1.18;
	letter-spacing: -.025em;
}

.home-portal-deck {
	max-width: 620px;
	margin: 0;
	color: var(--ink-soft);
	font-size: 1rem;
	line-height: 1.65;
}

.home-portal-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 18px;
}

.home-portal-action {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	padding: 5px 10px;
	border: 1px solid var(--line);
	border-radius: 5px;
	color: var(--ink-soft);
	font-size: .82rem;
	line-height: 1.35;
	text-decoration: none;
}

.home-portal-action:hover,
.home-portal-action.is-primary {
	border-color: var(--accent-soft);
	color: var(--accent);
}

.home-portal-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(220px, .9fr);
	gap: clamp(24px, 3vw, 42px);
	margin-top: 28px;
}

.home-portal-section {
	min-width: 0;
	padding-top: 13px;
	border-top: 1px solid var(--line);
}

.home-portal-section-heading {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 10px;
}

.home-portal-kicker {
	margin-bottom: 4px;
	color: var(--accent);
	font-size: .68rem;
	font-weight: 700;
	letter-spacing: .12em;
	line-height: 1.2;
	text-transform: uppercase;
}

.home-portal-section h2 {
	margin: 0;
	color: var(--ink);
	font-size: 1.18rem;
	font-weight: 600;
	line-height: 1.35;
}

.home-portal-section-heading > a {
	flex: 0 0 auto;
	color: var(--muted);
	font-size: .78rem;
	line-height: 1.4;
	text-decoration: none;
}

.home-portal-section-heading > a:hover,
.home-article-list a:hover,
.home-topic-list a:hover,
.home-portal-footer-links a:hover {
	color: var(--accent);
}

.home-article-list,
.home-topic-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.home-article-list > li,
.home-topic-list > li {
	margin: 0;
	padding: 10px 0;
	border-bottom: 1px solid var(--line);
}

.home-item-meta,
.home-topic-list time {
	margin-bottom: 3px;
	color: var(--faint);
	font-size: .72rem;
	line-height: 1.35;
}

.home-article-list h3 {
	margin: 0 0 3px;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.42;
}

.home-article-list h3 a,
.home-topic-list a {
	color: var(--ink);
	text-decoration: none;
}

.home-article-list p,
.home-forum-intro,
.home-portal-empty {
	margin: 0;
	color: var(--ink-soft);
	font-size: .86rem;
	line-height: 1.55;
}

.home-forum-intro {
	margin: 0 0 8px;
}

.home-topic-list > li {
	display: grid;
	gap: 3px;
}

.home-topic-list a {
	font-size: .9rem;
	line-height: 1.45;
}

.home-topic-list time {
	display: block;
	margin: 0;
}

.home-portal-footer-links {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 26px;
	padding-top: 14px;
	border-top: 1px solid var(--line);
}

.home-portal-footer-links a {
	color: var(--muted);
	font-size: .82rem;
	text-decoration: none;
}

/* Drawers and panel controls */
.drawer-backdrop {
	display: none;
	position: fixed;
	top: var(--admin-bar-h);
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 1090;
	background: rgba(20, 20, 18, .2);
	opacity: 0;
	transition: opacity .24s ease;
}

.drawer-backdrop.visible {
	display: block;
	opacity: 1;
}

.drawer-backdrop.below-header {
	top: calc(var(--admin-bar-h) + var(--header-h));
}

.drawer-backdrop.below-local {
	top: var(--local-drawer-top);
}

.chapter-drawer,
.toc-drawer,
.standard-sidebar.rightbar-drawer {
	position: fixed;
	top: var(--local-drawer-top);
	bottom: 0;
	z-index: 1110;
	height: auto;
	overflow: auto;
	visibility: hidden;
	pointer-events: none;
	transition: transform .24s ease, visibility 0s linear .24s;
}

.chapter-drawer {
	left: 0;
	width: min(84vw, 340px);
	background: var(--sidebar);
	box-shadow: 10px 0 28px rgba(0, 0, 0, .11);
	transform: translateX(-102%);
}

.toc-drawer,
.standard-sidebar.rightbar-drawer {
	right: 0;
	width: min(88vw, 390px);
	background: var(--bg);
	box-shadow: -10px 0 28px rgba(0, 0, 0, .1);
	transform: translateX(102%);
}

.chapter-drawer.open,
.toc-drawer.open,
.standard-sidebar.rightbar-drawer.open {
	visibility: visible;
	pointer-events: auto;
	transform: translateX(0);
	transition-delay: 0s;
}

.chapter-drawer-head,
.toc-drawer-head,
.rightbar-drawer-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	position: sticky;
	top: 0;
	z-index: 2;
	height: var(--drawer-head-h);
	padding: 0 18px;
	border-bottom: 1px solid var(--line);
	background: inherit;
}

.chapter-drawer-head strong,
.toc-drawer-head strong,
.rightbar-drawer-head strong {
	font-size: .9rem;
	font-weight: 650;
}

.chapter-drawer-body,
.toc-drawer-body,
.rightbar-drawer-body {
	padding: 22px 18px 50px;
}

.toc-drawer-body {
	font-size: .82rem;
	line-height: 1.5;
}

.toc-drawer-body a {
	display: block;
	padding: 9px 0;
	color: #67676c;
	text-decoration: none;
}

.toc-drawer-body a:hover,
.toc-drawer-body a.active {
	color: var(--accent);
}

.close-btn {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #67676c;
	cursor: pointer;
}

.close-btn:hover {
	background: var(--surface-strong);
	color: var(--ink);
}

.close-icon,
.close-icon::after {
	display: block;
	width: 20px;
	border-top: 1.5px solid currentColor;
	transform: rotate(45deg);
}

.close-icon::after {
	content: "";
	transform: rotate(90deg);
}

/* Global mobile menu */
.global-menu-panel {
	display: none;
	position: fixed;
	top: calc(var(--admin-bar-h) + var(--header-h));
	right: 0;
	left: 0;
	z-index: 1120;
	width: 100vw;
	max-height: calc(100dvh - var(--admin-bar-h) - var(--header-h) - 16px);
	overflow: auto;
	background: var(--bg);
	border-bottom: 1px solid var(--line);
	box-shadow: 0 14px 30px rgba(0, 0, 0, .08);
}

.global-menu-panel.open {
	display: block;
}

.global-menu-links {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 3px;
	padding: 28px 24px 30px;
}

.global-menu-search {
	width: min(100%, 360px);
	margin: 0 0 17px;
}

.global-menu-search .search-field {
	height: 40px;
}

.global-menu-links .global-nav-list {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 3px;
}

.global-menu-panel a {
	position: relative;
	min-width: 190px;
	padding: 9px 18px;
	color: var(--ink);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.35;
	text-align: center;
	text-decoration: none;
}

.global-menu-panel a:hover,
.global-menu-panel .current-menu-item > a,
.global-menu-panel .current_page_item > a {
	color: var(--accent);
}

/* Documentation tree */
.docs-tree,
.docs-tree ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.docs-tree {
	font-size: .9rem;
}

.tree-node {
	margin: 1px 0;
}

.tree-row {
	display: grid;
	grid-template-columns: 22px minmax(0, 1fr);
	align-items: start;
	min-height: 31px;
}

.tree-toggle {
	display: grid;
	place-items: center;
	width: 22px;
	height: 29px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #8b8b91;
	cursor: pointer;
}

.tree-toggle::before {
	content: "";
	display: block;
	width: 7px;
	height: 7px;
	border-top: 1.5px solid currentColor;
	border-right: 1.5px solid currentColor;
	transform: rotate(45deg);
	transform-origin: center;
	transition: transform .15s ease;
}

.tree-toggle:hover {
	color: var(--ink);
}

.tree-toggle[aria-expanded="true"]::before {
	transform: rotate(135deg);
}

.tree-spacer {
	width: 22px;
	height: 1px;
}

.tree-link {
	min-width: 0;
	padding: 5px 7px 5px 3px;
	border-radius: 4px;
	color: #51515a;
	line-height: 1.42;
	text-decoration: none;
}

.tree-link:hover {
	background: rgba(255, 255, 255, .58);
	color: var(--ink);
}

.tree-link.active {
	background: transparent;
	color: var(--accent);
	font-weight: 600;
}

.tree-link.section-current {
	color: #343439;
	font-weight: 600;
}

.tree-children {
	display: none;
	margin-left: 11px !important;
	padding-left: 11px !important;
	border-left: 1px solid #dedee1;
}

.tree-node.is-open > .tree-children {
	display: block;
}

.tree-children .tree-children {
	margin-left: 10px !important;
}

.tree-children .tree-children .tree-children {
	margin-left: 0 !important;
	padding-left: 8px !important;
	border-left: 0;
}

.tree-label {
	margin: 17px 0 7px 25px;
	color: var(--muted);
	font-size: .7rem;
	font-weight: 700;
	letter-spacing: .09em;
	text-transform: uppercase;
}

.docs-root-link {
	display: block;
	margin: 0 0 17px 25px;
	color: #3f3f46;
	font-size: .78rem;
	font-weight: 700;
	text-decoration: none;
}

.docs-root-link:hover {
	color: var(--accent);
}

.docs-tree-empty {
	margin: 0 0 0 25px;
	color: var(--muted);
	font-size: .8rem;
}

/* Editorial document layout */
.article-wrap {
	padding-top: 28px;
}

.docspress-article {
	--article-rail: clamp(170px, 23%, 210px);
	--article-gap: clamp(28px, 3vw, 34px);
	display: grid;
	grid-template-columns: var(--article-rail) minmax(0, 1fr);
	column-gap: var(--article-gap);
	width: 100%;
	max-width: 924px;
	margin: 0 auto;
}

.docspress-article > * {
	grid-column: 2;
	min-width: 0;
}

.docspress-article > h2.docspress-section,
.docspress-article > .docspress-aside--note,
.docspress-article > .docspress-aside--historical,
.docspress-article > .docspress-margin,
.docspress-article > .docspress-figure--margin {
	grid-column: 1;
}

.docspress-article > .docspress-section-rule,
.docspress-article > .docspress-figure--breakout {
	grid-column: 1 / -1;
}

.docspress-article > .docspress-aside--context,
.docspress-article > .docspress-definition,
.docspress-article > .docspress-text-panel,
.docspress-article > .docspress-pair,
.docspress-article > .docspress-table-wrap,
.docspress-article > .docspress-carousel,
.docspress-article > .docspress-figure--inline,
.docspress-article > .docspress-figure--float,
.docspress-article > .docspress-prevnext {
	grid-column: 2;
}

.docspress-article > .docspress-figure--float {
	justify-self: end;
	width: 46%;
	max-width: 46%;
}

.docspress-eyebrow,
.page-eyebrow {
	margin: 0 0 12px;
	color: var(--accent);
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .14em;
	line-height: 1.2;
	text-transform: uppercase;
}

.docspress-article h1,
.standard-article h1 {
	margin: 10px 0 18px;
	font-size: clamp(1.85rem, 2.8vw, 2.4rem);
	font-weight: 600;
	line-height: 1.18;
	letter-spacing: -.02em;
}

.docspress-deck {
	margin: 0 0 31px;
	color: var(--ink-soft);
	font-size: 1.0625rem;
	line-height: 1.7;
}

.docspress-meta,
.entry-meta {
	margin-bottom: 32px;
	color: #7a7a80;
	font-size: .82rem;
	line-height: 1.55;
}

.docspress-article,
.standard-frame .entry-content {
	font-size: clamp(1.0625rem, 1.1vw, 1.125rem);
	line-height: 1.9;
}

.docspress-article p,
.standard-frame .entry-content p {
	margin: .15rem 0 1.15rem;
}

.docspress-section {
	align-self: start;
	margin: .15rem 0 0;
	color: #35353a;
	font-size: 1.12rem;
	font-weight: 600;
	line-height: 1.4;
	text-align: right;
	scroll-margin-top: calc(var(--local-drawer-top) + 20px);
}

.docspress-subsection {
	margin: 1.9rem 0 .65rem;
	font-size: 1.18rem;
	font-weight: 600;
	line-height: 1.45;
}

.docspress-section-rule {
	width: 100%;
	margin: 32px 0 22px;
	border: 0;
	border-top: 1px solid var(--accent-soft);
}

.docspress-margin,
.docspress-aside--note,
.docspress-aside--historical {
	align-self: start;
	width: 100%;
	color: var(--ink-soft);
	font-size: .82rem;
	line-height: 1.55;
	text-align: right;
}

.docspress-margin::before,
.docspress-aside--note::before,
.docspress-aside--historical::before {
	content: "";
	display: block;
	width: 30px;
	margin: 0 0 7px auto;
	border-top: 1px solid #c6c6ca;
}

.docspress-note {
	margin: .15rem 0 0;
	padding: 12px 0 0;
	border: 0;
	font-size: inherit;
}

.docspress-note strong,
.docspress-aside__title,
.docspress-definition__term {
	display: block;
	margin-bottom: 4px;
	font-weight: 600;
}

.docspress-quote,
blockquote {
	margin: 1.8rem 0;
	padding-left: 18px;
	border-left: 1px solid var(--accent);
	color: #4f4f55;
	font-size: 1.0625rem;
	line-height: 1.62;
}

.docspress-quote cite {
	display: block;
	margin-top: .55rem;
	color: #7a7a80;
	font-size: .73rem;
	font-style: normal;
	line-height: 1.45;
}

.docspress-definition {
	margin: 1.2rem 0;
	padding: 10px 15px;
	border-left: 2px solid var(--accent);
	background: var(--surface);
}

.docspress-definition__term,
.docspress-definition b {
	color: var(--accent);
	font-size: .8rem;
}

.docspress-aside--context,
.docspress-text-panel,
.docspress-callout {
	background: var(--surface);
}

.docspress-aside--context,
.docspress-text-panel {
	padding: 18px;
}

.docspress-text-panel h4 {
	margin: 0 0 .6rem;
	color: #51515a;
	font-size: .76rem;
	font-weight: 600;
	letter-spacing: .09em;
	text-transform: uppercase;
}

.docspress-text-panel p:last-child {
	margin-bottom: 0;
}

.docspress-callout {
	margin: 1.35rem 0;
	padding: 14px 16px;
	font-size: .88rem;
	line-height: 1.62;
}

.docspress-callout strong {
	display: block;
	margin-bottom: 3px;
}

.docspress-pair {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	margin: 1rem 0 1.55rem;
}

.docspress-fact-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin: 1.35rem 0;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}

.docspress-fact {
	padding: 11px 13px;
	border-right: 1px solid var(--line);
}

.docspress-fact:last-child {
	border-right: 0;
}

.docspress-fact b {
	display: block;
	font-size: 1.12rem;
	font-weight: 600;
}

.docspress-fact span {
	color: #74747a;
	font-size: .7rem;
}

.docspress-steps {
	margin: 1.35rem 0;
	padding: 0;
	list-style: none;
	counter-reset: step;
}

.docspress-steps li {
	display: grid;
	grid-template-columns: 32px minmax(0, 1fr);
	gap: 10px;
	margin-bottom: 15px;
	counter-increment: step;
}

.docspress-steps li::before {
	content: counter(step);
	display: grid;
	place-items: center;
	width: 24px;
	height: 24px;
	border: 1px solid #b7b7bc;
	border-radius: 50%;
	color: #51515a;
	font-size: .7rem;
	font-weight: 600;
	line-height: 1;
}

.docspress-table-wrap {
	overflow: auto;
	margin: 1rem 0 1.45rem;
}

.docspress-article table,
.standard-article table {
	width: 100%;
	border-collapse: collapse;
}

.docspress-article th,
.docspress-article td,
.standard-article th,
.standard-article td {
	padding: 10px 8px;
	border-bottom: 1px solid var(--line);
	text-align: left;
	vertical-align: top;
}

.docspress-article thead th,
.standard-article thead th {
	color: #51515a;
	font-weight: 600;
	border-bottom-color: var(--accent-soft);
}

.docspress-source {
	margin-top: 1.35rem;
	padding-top: 8px;
	border-top: 1px solid var(--line);
	color: #7a7a80;
	font-size: .74rem;
	line-height: 1.48;
}

.docspress-prevnext {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin-top: 2.35rem;
	border-top: 1px solid var(--line);
}

.docspress-prevnext a {
	padding: 13px 0;
	color: #51515a;
	text-decoration: none;
}

.docspress-prevnext a:hover {
	color: var(--accent);
}

.docspress-prevnext .docspress-next-link {
	text-align: right;
}

.docspress-nav-kicker,
.docspress-nav-title {
	display: block;
}

.docspress-nav-kicker {
	color: #85858b;
	font-size: .66rem;
	letter-spacing: .08em;
	text-transform: uppercase;
}

/* Documentation figures and native media */
.docspress-article figure {
	margin: 1rem 0 1.45rem;
}

.docspress-article img {
	display: block;
	max-width: 100%;
	height: auto;
}

.docspress-article > .docspress-figure--margin,
.docspress-article > .wp-caption.docspress-figure--margin {
	width: var(--article-rail);
	max-width: var(--article-rail);
	height: 0;
	margin: 0;
	overflow: visible;
	justify-self: end;
	text-align: right;
}

.docspress-article > .docspress-figure--float,
.docspress-article > .wp-caption.docspress-figure--float {
	width: 46%;
	max-width: 46%;
	margin: 1rem 0 1.35rem auto;
	justify-self: end;
}

.docspress-article > .docspress-figure--inline,
.docspress-article > .wp-caption.docspress-figure--inline {
	width: 100%;
	max-width: 100%;
}

.docspress-article > .docspress-figure--breakout,
.docspress-article > .wp-caption.docspress-figure--breakout {
	width: 100%;
	max-width: none;
}

.docspress-article figcaption,
.wp-caption-text,
.gallery-caption {
	margin-top: 6px;
	color: #7a7a80;
	font-size: .7rem;
	line-height: 1.42;
	text-align: right;
}

.docspress-carousel {
	margin: 1rem 0 1.7rem;
}

.docspress-carousel-track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc(50% - 8px);
	gap: 16px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.docspress-carousel-track::-webkit-scrollbar {
	display: none;
}

.docspress-carousel-card {
	scroll-snap-align: start;
	margin: 0;
}

.docspress-carousel-card img {
	width: 100%;
}

.docspress-carousel-ui {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 11px;
}

.docspress-carousel-hint {
	color: #7a7a80;
	font-size: .76rem;
}

.docspress-carousel-controls {
	display: flex;
	gap: 6px;
}

.docspress-carousel-button {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border: 1px solid var(--line);
	border-radius: 50%;
	background: transparent;
	color: #5a5a60;
	cursor: pointer;
}

.alignleft {
	float: left;
	margin: .25rem 1.25rem 1rem 0;
}

.alignright {
	float: right;
	margin: .25rem 0 1rem 1.25rem;
}

.aligncenter {
	display: block;
	margin-right: auto;
	margin-left: auto;
}

.alignnone {
	margin-right: 0;
	margin-left: 0;
}

.gallery {
	display: grid;
	gap: 14px;
	margin: 1.2rem 0 1.55rem;
}

.gallery-columns-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gallery-columns-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery-columns-4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gallery-item {
	min-width: 0;
	margin: 0;
}

.gallery-icon img {
	width: 100%;
}

/* Indexes and ordinary content */
.index-frame .content-wrap {
	padding-top: 38px;
}

.index-page {
	width: min(100%, 924px);
	margin: 0 auto;
	padding: 0 0 88px;
}

.index-page h1 {
	margin: 0 0 17px;
	font-size: clamp(1.85rem, 2.8vw, 2.4rem);
	font-weight: 600;
	line-height: 1.18;
	letter-spacing: -.02em;
}

.index-deck {
	max-width: 660px;
	margin: 0 0 28px;
	color: var(--ink-soft);
	font-size: 1.08rem;
	line-height: 1.66;
}

.docs-directory-content > * {
	max-width: 760px;
}

.docs-directory-content > :first-child {
	margin-top: 0;
}

.lead-search {
	display: flex;
	align-items: center;
	max-width: 640px;
	min-height: 44px;
	margin: 0 0 44px;
	padding: 0 14px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--surface);
}

.lead-search .search-field {
	height: 44px;
	padding-left: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	font-size: .86rem;
}

.lead-search .search-submit {
	top: 4px;
}

.directory-block {
	margin: 0 0 42px;
}

.directory-heading {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 20px;
	margin: 0 0 9px;
	padding-bottom: 9px;
	border-bottom: 1px solid var(--line);
}

.directory-heading h2 {
	margin: 0;
	font-size: 1.08rem;
	font-weight: 600;
	line-height: 1.35;
}

.directory-heading span {
	color: var(--muted);
	font-size: .7rem;
	letter-spacing: .08em;
	text-transform: uppercase;
}

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

.directory-row {
	display: grid;
	grid-template-columns: 42px minmax(0, 1fr) 18px;
	gap: 11px;
	padding: 13px 2px 14px;
	border-bottom: 1px solid #ececee;
	color: inherit;
	text-decoration: none;
}

.directory-row:hover .directory-title,
.directory-subrow:hover .directory-subtitle {
	color: var(--accent);
}

.directory-num {
	padding-top: 2px;
	color: var(--faint);
	font-size: .7rem;
	font-variant-numeric: tabular-nums;
}

.directory-title {
	display: block;
	margin-bottom: 3px;
	color: #414147;
	font-size: .98rem;
	font-weight: 600;
	line-height: 1.4;
}

.directory-desc {
	display: block;
	max-width: 650px;
	color: #737379;
	font-size: .82rem;
	line-height: 1.55;
}

.directory-arrow {
	position: relative;
	width: 18px;
	height: 18px;
	margin-top: 2px;
	color: #aaaab0;
}

.directory-arrow::before {
	content: "";
	position: absolute;
	top: 8px;
	right: 2px;
	width: 11px;
	border-top: 1.5px solid currentColor;
}

.directory-arrow::after {
	content: "";
	position: absolute;
	top: 5px;
	right: 2px;
	width: 6px;
	height: 6px;
	border-top: 1.5px solid currentColor;
	border-right: 1.5px solid currentColor;
	transform: rotate(45deg);
}

.directory-row.is-primary .directory-title,
.directory-row.is-primary .directory-arrow {
	font-size: 1rem;
}

.directory-row.is-primary .directory-arrow {
	color: var(--accent);
}

.directory-group {
	border-bottom: 1px solid #ececee;
}

.directory-group > .directory-row {
	border-bottom: 0;
}

.directory-sublist {
	margin: -2px 0 8px 53px;
	padding: 0;
	border-left: 1px solid #e5e5e7;
	list-style: none;
}

.directory-subrow {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 18px;
	gap: 10px;
	padding: 8px 2px 8px 13px;
	color: #65656b;
	text-decoration: none;
}

.directory-subtitle {
	font-size: .84rem;
	line-height: 1.45;
}

.directory-empty {
	padding: 18px;
	background: var(--surface);
	color: #68686e;
	font-size: .86rem;
}

.standard-article h1 {
	margin-bottom: 22px;
}

.standard-article .entry-content h2 {
	margin: 2.25em 0 .72em;
	font-size: 1.42rem;
	line-height: 1.38;
}

.standard-article .entry-content h3 {
	margin: 1.9em 0 .62em;
	font-size: 1.18rem;
	line-height: 1.45;
}

.post-list {
	display: grid;
	gap: 0;
}

.post-summary {
	padding: 28px 0;
	border-bottom: 1px solid var(--line);
}

.post-summary:first-child {
	padding-top: 4px;
}

.post-summary h2 {
	margin: 0 0 10px;
	font-size: 1.32rem;
	line-height: 1.38;
}

.post-summary h2 a {
	color: var(--ink);
	text-decoration: none;
}

.post-summary h2 a:hover {
	color: var(--accent);
}

.post-summary p {
	margin: 0;
	color: var(--ink-soft);
	font-size: 1.05rem;
	line-height: 1.82;
}

/* Forum */
.forum-content {
	padding-top: clamp(32px, 3vw, 46px);
}

.forum-article {
	max-width: 900px;
}

.forum-article h1 {
	margin-bottom: 28px;
}

#bbpress-forums {
	color: var(--ink);
	font-size: 1rem;
	line-height: 1.8;
}

#bbpress-forums ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

#bbpress-forums a {
	color: #55555c;
	text-decoration: none;
}

#bbpress-forums a:hover {
	color: var(--accent);
}

#bbpress-forums .bbp-breadcrumb {
	margin-bottom: 18px;
	color: #88888f;
	font-size: .88rem;
}

#bbpress-forums .bbp-forums,
#bbpress-forums .bbp-topics,
#bbpress-forums .bbp-replies {
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--line);
}

#bbpress-forums .bbp-header,
#bbpress-forums .bbp-footer {
	padding: 10px 0;
	color: var(--muted);
	font-size: .84rem;
	letter-spacing: .05em;
	text-transform: uppercase;
}

#bbpress-forums .bbp-forum {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 80px 80px 150px;
	gap: 16px;
	padding: 15px 0;
	border-top: 1px solid var(--line);
}

#bbpress-forums .bbp-topic {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 72px 72px 150px;
	gap: 16px;
	padding: 15px 0;
	border-top: 1px solid var(--line);
}

#bbpress-forums .bbp-forum-info,
#bbpress-forums .bbp-topic-title {
	min-width: 0;
}

#bbpress-forums .bbp-forum-title,
#bbpress-forums .bbp-topic-permalink {
	font-size: 1.06rem;
	font-weight: 600;
	line-height: 1.5;
}

#bbpress-forums .bbp-forum-content,
#bbpress-forums .bbp-topic-meta {
	margin-top: 4px;
	color: var(--muted);
	font-size: .9rem;
	line-height: 1.65;
}

#bbpress-forums .bbp-forum-topic-count,
#bbpress-forums .bbp-forum-reply-count,
#bbpress-forums .bbp-forum-freshness,
#bbpress-forums .bbp-topic-freshness {
	color: var(--muted);
	font-size: .86rem;
	line-height: 1.55;
}

#bbpress-forums .bbp-reply {
	display: grid;
	grid-template-columns: 130px minmax(0, 1fr);
	gap: 22px;
	padding: 22px 0;
	border-top: 1px solid var(--line);
}

#bbpress-forums .bbp-reply-author {
	color: #66666d;
	font-size: .92rem;
}

#bbpress-forums .bbp-reply-author .bbp-author-name {
	display: block;
	margin-bottom: 4px;
	font-weight: 600;
}

#bbpress-forums .bbp-reply-content {
	min-width: 0;
	font-size: 1.08rem;
	line-height: 1.9;
}

#bbpress-forums .bbp-reply-header {
	grid-column: 1 / -1;
	grid-row: 1;
	margin-bottom: -8px;
	color: #929298;
	font-size: .86rem;
}

#bbpress-forums .bbp-reply-header + .bbp-reply-author {
	grid-column: 1;
	grid-row: 2;
}

#bbpress-forums .bbp-reply-header ~ .bbp-reply-content {
	grid-column: 2;
	grid-row: 2;
}

#bbpress-forums .bbp-topic-form,
#bbpress-forums .bbp-reply-form {
	margin-top: 28px;
	padding-top: 22px;
	border-top: 1px solid var(--line);
}

#bbpress-forums fieldset {
	margin: 0 0 18px;
	padding: 0;
	border: 0;
}

#bbpress-forums input[type="text"],
#bbpress-forums input[type="email"],
#bbpress-forums input[type="password"],
#bbpress-forums textarea,
#bbpress-forums select {
	max-width: 100%;
	padding: 9px 10px;
	border: 1px solid var(--line);
	border-radius: 5px;
	background: var(--bg);
	font: inherit;
}

#bbpress-forums input[type="submit"] {
	padding: 9px 14px;
	border: 1px solid #cfcfd2;
	border-radius: 5px;
	background: var(--surface);
	color: #55555c;
	font: inherit;
	cursor: pointer;
}

/* WordPress-native navigation, comments, widgets, and pagination */
.navigation.pagination,
.posts-navigation,
.post-navigation,
.comment-navigation {
	max-width: 720px;
	margin: 30px auto;
}

.nav-links {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
}

.pagination .nav-links {
	justify-content: flex-start;
	flex-wrap: wrap;
	gap: 6px;
}

.page-numbers {
	min-width: 34px;
	padding: 7px 10px;
	border: 1px solid var(--line);
	border-radius: 5px;
	color: #5d5d64;
	text-align: center;
	text-decoration: none;
}

.page-numbers.current {
	border-color: var(--accent-soft);
	color: var(--accent);
}

.post-navigation a,
.posts-navigation a,
.comment-navigation a {
	color: #55555c;
	text-decoration: none;
}

.post-navigation a:hover,
.posts-navigation a:hover,
.comment-navigation a:hover {
	color: var(--accent);
}

.comment-list,
.comment-list .children {
	margin: 0;
	padding: 0;
	list-style: none;
}

.comment-list .children {
	margin-left: 24px;
}

.comment-body {
	padding: 18px 0;
	border-top: 1px solid var(--line);
}

.comment-meta {
	margin-bottom: 8px;
	color: #7a7a80;
	font-size: .76rem;
}

.comment-author .avatar {
	float: left;
	margin: 0 10px 6px 0;
	border-radius: 50%;
}

.comment-content {
	clear: both;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	max-width: 100%;
	padding: 9px 10px;
	border: 1px solid var(--line);
	border-radius: 6px;
	font: inherit;
}

.comment-form input[type="submit"] {
	padding: 9px 13px;
	border: 1px solid var(--line);
	border-radius: 6px;
	background: var(--surface);
	font: inherit;
	cursor: pointer;
}

.widget ul {
	margin: 0;
	padding-left: 1rem;
}

.widget li {
	margin: .38rem 0;
}

.widget a {
	color: #5d5d64;
	text-decoration: none;
}

.widget a:hover {
	color: var(--accent);
}

.sticky {
	padding-left: 14px;
	border-left: 2px solid var(--accent-soft);
}

.bypostauthor > .comment-body {
	border-top-color: var(--accent-soft);
}

/* Footer */
.site-footer {
	border-top: 1px solid var(--line);
	background: var(--bg);
}

.footer-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	max-width: var(--shell-max);
	margin: 0 auto;
	padding: 24px var(--shell-pad);
	color: #77777d;
	font-size: .78rem;
}

.footer-menu {
	gap: 16px;
}

/* Intentional compatibility for content authored before the namespaced classes. */
.docspress-docs-page .note,
.docspress-docs-page .quote,
.docspress-docs-page .definition,
.docspress-docs-page .callout,
.docspress-docs-page .text-panel,
.docspress-docs-page .pair,
.docspress-docs-page .fact-grid,
.docspress-docs-page .steps,
.docspress-docs-page .table-wrap,
.docspress-docs-page .source {
	/* The legacy content vocabulary is styled by the same design tokens. */
}

.docspress-docs-page .note {
	grid-column: 1;
	margin: .15rem 0 0;
	padding: 12px 0 0;
	color: var(--ink-soft);
	font-size: .82rem;
	line-height: 1.55;
	text-align: right;
}

.docspress-docs-page .note::before {
	content: "";
	display: block;
	width: 30px;
	margin: 0 0 7px auto;
	border-top: 1px solid #c6c6ca;
}

.docspress-docs-page .quote {
	margin: 1.8rem 0;
	color: #4f4f55;
	font-size: 1.0625rem;
	line-height: 1.62;
}

.docspress-docs-page .definition,
.docspress-docs-page .callout,
.docspress-docs-page .text-panel {
	background: var(--surface);
}

.docspress-docs-page .definition {
	margin: 1.2rem 0;
	padding: 10px 15px;
	border-left: 2px solid var(--accent);
}

.docspress-docs-page .definition b {
	color: var(--accent);
	font-size: .8rem;
}

.docspress-docs-page .callout {
	margin: 1.35rem 0;
	padding: 14px 16px;
	font-size: .88rem;
	line-height: 1.62;
}

.docspress-docs-page .text-panel {
	grid-column: 2;
	margin: 1.3rem 0 1.55rem;
	padding: 18px;
}

.docspress-docs-page .pair {
	grid-column: 2;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	margin: 1rem 0 1.55rem;
}

.docspress-docs-page .fact-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin: 1.35rem 0;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}

.docspress-docs-page .fact {
	padding: 11px 13px;
	border-right: 1px solid var(--line);
}

.docspress-docs-page .fact b {
	display: block;
	font-size: 1.12rem;
}

.docspress-docs-page .fact span {
	color: #74747a;
	font-size: .7rem;
}

.docspress-docs-page .steps {
	margin: 1.35rem 0;
	padding: 0;
	list-style: none;
	counter-reset: step;
}

.docspress-docs-page .steps li {
	display: grid;
	grid-template-columns: 32px minmax(0, 1fr);
	gap: 10px;
	margin-bottom: 15px;
	counter-increment: step;
}

.docspress-docs-page .steps li::before {
	content: counter(step);
	display: grid;
	place-items: center;
	width: 24px;
	height: 24px;
	border: 1px solid #b7b7bc;
	border-radius: 50%;
	font-size: .7rem;
}

.docspress-docs-page .table-wrap {
	grid-column: 2;
	overflow: auto;
	margin: 1rem 0 1.45rem;
}

.docspress-docs-page .source {
	margin-top: 1.35rem;
	padding-top: 8px;
	border-top: 1px solid var(--line);
	color: #7a7a80;
	font-size: .74rem;
}

/* Inner image classes are a progressive enhancement; wrapper classes remain the fallback. */
@supports selector(.docspress-article:has(img)) {
	.docspress-article > p:has(> img.docspress-figure--margin),
	.docspress-article > figure:has(img.docspress-figure--margin),
	.docspress-article > .wp-caption:has(img.docspress-figure--margin) {
		grid-column: 1;
		width: var(--article-rail);
		max-width: var(--article-rail);
		height: 0;
		margin: 0;
		overflow: visible;
		justify-self: end;
		text-align: right;
	}

	.docspress-article > p:has(> img.docspress-figure--float),
	.docspress-article > figure:has(img.docspress-figure--float),
	.docspress-article > .wp-caption:has(img.docspress-figure--float) {
		grid-column: 2;
		width: 46%;
		max-width: 46%;
		margin: 1rem 0 1.35rem auto;
		justify-self: end;
	}

	.docspress-article > p:has(> img.docspress-figure--breakout),
	.docspress-article > figure:has(img.docspress-figure--breakout),
	.docspress-article > .wp-caption:has(img.docspress-figure--breakout) {
		grid-column: 1 / -1;
		width: 100%;
		max-width: none;
	}
}

/* Responsive shell states: below 1200px both contextual rails become drawers. */
@media (max-width: 1200px) {
	html,
	body {
		overflow-x: hidden;
	}

	.mobile-local {
		display: block;
	}

	.doc-frame {
		display: block;
		min-height: 0;
		padding-right: var(--shell-pad);
		padding-bottom: 64px;
		padding-left: var(--shell-pad);
	}

	.doc-frame::before,
	.left-sidebar,
	.right-toc {
		display: none;
	}

	.content-wrap,
	.article-wrap,
	.index-frame .content-wrap,
	.forum-content {
		padding-top: 28px;
	}

	.standard-frame .standard-article,
	.standard-frame .post-list,
	.index-page {
		max-width: 780px;
		margin-right: auto;
		margin-left: auto;
	}

	.chapter-drawer,
	.toc-drawer,
	.standard-sidebar.rightbar-drawer {
		display: block;
	}

	.standard-frame .standard-sidebar.rightbar-drawer {
		padding: 0;
		border: 0;
	}

	.standard-frame .standard-sidebar.rightbar-drawer .rightbar-drawer-body {
		padding: 22px 22px 50px;
	}

	.docspress-article {
		--article-rail: clamp(150px, 22vw, 190px);
		--article-gap: clamp(24px, 3vw, 32px);
		max-width: 760px;
	}
}

@media (max-width: 900px) {
	.home-portal-grid {
		grid-template-columns: 1fr;
	}

	.header-inner {
		gap: 18px;
		padding-right: 16px;
		padding-left: 16px;
	}

	.header-search-form,
	.global-nav {
		display: none;
	}

	.header-mobile-btn {
		display: flex;
		flex-direction: column;
	}

	.docspress-article {
		--article-rail: 138px;
		--article-gap: 24px;
	}
}

@media (max-width: 640px) {
	:root {
		--header-h: 60px;
		--local-h: 48px;
	}

	.mobile-local-inner {
		gap: 4px;
		padding-right: 12px;
		padding-left: 12px;
	}

	.local-trigger {
		padding-right: 3px;
		padding-left: 3px;
		font-size: .8rem;
	}

	.local-context {
		display: none;
	}

	.home-portal-intro {
		padding-bottom: 22px;
	}

	.home-portal-intro h1 {
		font-size: 1.85rem;
	}

	.home-portal-deck {
		font-size: .94rem;
	}

	.content-wrap,
	.article-wrap,
	.index-frame .content-wrap,
	.forum-content {
		padding-top: 22px;
	}

	.docspress-article {
		display: block;
		font-size: 1.04rem;
		line-height: 1.88;
	}

	.docspress-article > * {
		width: auto;
		max-width: none;
	}

	.docspress-article > .docspress-figure--float,
	.docspress-article > .wp-caption.docspress-figure--float {
		width: 64%;
		max-width: 64%;
		margin-right: auto;
		margin-left: auto;
	}

	.docspress-article > .docspress-figure--margin,
	.docspress-article > .wp-caption.docspress-figure--margin {
		width: 48%;
		max-width: 48%;
		height: auto;
		margin: 1rem auto 1.25rem;
		text-align: left;
	}

	.docspress-section,
	.docspress-margin,
	.docspress-aside--note,
	.docspress-aside--historical {
		text-align: left;
	}

	.docspress-section {
		margin: 0 0 .72rem;
		font-size: 1.12rem;
	}

	.docspress-section-rule {
		margin: 28px 0 19px;
	}

	.docspress-margin::before,
	.docspress-aside--note::before,
	.docspress-aside--historical::before {
		margin-right: 0;
		margin-left: 0;
	}

	.docspress-pair,
	.docspress-docs-page .pair {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
	}

	.docspress-fact-grid,
	.docspress-docs-page .fact-grid {
		grid-template-columns: 1fr;
	}

	.docspress-fact,
	.docspress-docs-page .fact {
		border-right: 0;
		border-bottom: 1px solid var(--line);
	}

	.docspress-fact:last-child,
	.docspress-docs-page .fact:last-child {
		border-bottom: 0;
	}

	.docspress-article table,
	.standard-article table,
	.docspress-docs-page .table-wrap table {
		min-width: 620px;
	}

	.docspress-prevnext {
		grid-template-columns: 1fr;
		margin-top: 2rem;
		border-top: 0;
	}

	.docspress-prevnext a {
		padding: 14px 0 15px;
	}

	.docspress-prevnext a + a {
		border-top: 1px solid var(--line);
	}

	.docspress-prevnext .docspress-next-link,
	.docspress-prevnext .docspress-next-link .docspress-nav-kicker,
	.docspress-prevnext .docspress-next-link .docspress-nav-title {
		text-align: right;
	}

	.index-page {
		padding-bottom: 56px;
	}

	.index-page h1,
	.standard-article h1 {
		font-size: 1.85rem;
		line-height: 1.25;
	}

	.index-deck {
		font-size: 1rem;
		line-height: 1.62;
	}

	.lead-search {
		margin-bottom: 34px;
	}

	.directory-block {
		margin-bottom: 34px;
	}

	.directory-row {
		grid-template-columns: 32px minmax(0, 1fr) 14px;
		gap: 8px;
		padding: 12px 0 13px;
	}

	.directory-desc {
		font-size: .78rem;
	}

	.directory-sublist {
		margin-left: 40px;
	}

	.directory-subrow {
		padding-left: 10px;
	}

	#bbpress-forums .bbp-forum,
	#bbpress-forums .bbp-topic {
		display: block;
		padding: 15px 0;
	}

	#bbpress-forums .bbp-forum-topic-count,
	#bbpress-forums .bbp-forum-reply-count,
	#bbpress-forums .bbp-forum-freshness,
	#bbpress-forums .bbp-topic-freshness {
		display: inline-block;
		margin: 8px 12px 0 0;
	}

	#bbpress-forums .bbp-reply {
		display: block;
	}

	#bbpress-forums .bbp-reply-header {
		margin-bottom: 12px;
	}

	#bbpress-forums .bbp-reply-author {
		margin-bottom: 10px;
	}

	#bbpress-forums .bbp-reply-content {
		font-size: 1rem;
		line-height: 1.85;
	}

	#bbpress-forums .bbp-forum-info .bbp-forum-content,
	#bbpress-forums p.bbp-topic-meta {
		font-size: .88rem;
		line-height: 1.6;
	}

	.docspress-carousel-track {
		grid-auto-columns: 78%;
		gap: 10px;
	}

	.alignleft,
	.alignright {
		float: none;
		display: block;
		margin: 1rem auto;
	}

	.gallery-columns-3,
	.gallery-columns-4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.footer-inner {
		align-items: flex-start;
		flex-direction: column;
		padding-right: 18px;
		padding-left: 18px;
	}

	.footer-menu {
		flex-wrap: wrap;
	}

	.docspress-docs-page .note {
		margin: 1rem 0;
		padding-top: 12px;
		text-align: left;
	}

	.docspress-docs-page .note::before {
		margin-right: 0;
		margin-left: 0;
	}
}

@media (max-width: 782px) {
	/* WordPress adds this margin for the fixed admin bar; the sticky header
	 * already accounts for it through --admin-bar-h. */
	html {
		margin-top: 0 !important;
	}
}

/* Desktop is the only state with all three rails visible. */
@media (min-width: 1201px) {
	.mobile-local,
	.chapter-drawer,
	.toc-drawer,
	.drawer-backdrop,
	.global-menu-panel {
		display: none !important;
	}

	.standard-sidebar.rightbar-drawer {
		position: sticky;
		top: calc(var(--admin-bar-h) + var(--header-h) + 24px);
		right: auto;
		width: auto;
		max-height: calc(100vh - var(--admin-bar-h) - var(--header-h) - 48px);
		overflow: auto;
		visibility: visible;
		pointer-events: auto;
		transform: none;
		box-shadow: none;
	}

	.standard-frame .standard-sidebar.rightbar-drawer .rightbar-drawer-head {
		display: none;
	}

	.standard-frame .standard-sidebar.rightbar-drawer .rightbar-drawer-body {
		padding: 0 0 40px;
	}
}

@media (min-width: 901px) and (max-width: 1200px) {
	.local-trigger {
		font-size: .86rem;
	}
}

@media (max-width: 640px) {
	.chapter-drawer,
	.toc-drawer,
	.standard-sidebar.rightbar-drawer {
		width: min(88vw, 360px);
	}
}

/* If JavaScript is unavailable, keep contextual content readable in flow. */
@media (max-width: 1200px) {
	html:not(.js) .chapter-drawer,
	html:not(.js) .toc-drawer,
	html:not(.js) .drawer-backdrop,
	html:not(.js) .global-menu-panel,
	html:not(.js) .mobile-local {
		display: none;
	}

	html:not(.js) .left-sidebar {
		display: block;
		position: static;
		max-height: none;
	}

	html:not(.js) .standard-frame .standard-sidebar.rightbar-drawer {
		position: static;
		display: block;
		width: auto;
		padding: 22px 0 40px;
		border-top: 1px solid var(--line);
		border-left: 0;
		box-shadow: none;
		visibility: visible;
		pointer-events: auto;
		transform: none;
	}
}

body.rtl .global-nav {
	margin-right: auto;
	margin-left: 0;
}

body.rtl .doc-frame::before {
	right: 0;
	left: auto;
	border-right: 0;
	border-left: 1px solid var(--line);
}

body.rtl .left-sidebar {
	padding-right: 2px;
	padding-left: 18px;
}

body.rtl .right-toc,
body.rtl .standard-frame .standard-sidebar {
	padding-right: 14px;
	padding-left: 0;
	border-right: 1px solid var(--line);
	border-left: 0;
}

body.rtl .tree-children {
	margin-right: 11px !important;
	margin-left: 0 !important;
	padding-right: 11px !important;
	padding-left: 0 !important;
	border-right: 1px solid #dedee1;
	border-left: 0;
}

body.rtl .docspress-section,
body.rtl .docspress-margin,
body.rtl .docspress-aside--note,
body.rtl .docspress-aside--historical {
	text-align: left;
}

body.rtl .right-toc a {
	padding-right: 10px;
	padding-left: 0;
	border-right: 1px solid transparent;
	border-left: 0;
}

body.rtl .right-toc a.active {
	border-right-color: var(--accent-soft);
	border-left-color: transparent;
}

body.rtl .directory-arrow {
	transform: scaleX(-1);
}

body.rtl .docspress-prevnext .docspress-next-link {
	text-align: left;
}

@media (max-width: 640px) {
	body.rtl .docspress-section,
	body.rtl .docspress-margin,
	body.rtl .docspress-aside--note,
	body.rtl .docspress-aside--historical {
		text-align: right;
	}

	body.rtl .docspress-prevnext .docspress-next-link,
	body.rtl .docspress-prevnext .docspress-next-link .docspress-nav-kicker,
	body.rtl .docspress-prevnext .docspress-next-link .docspress-nav-title {
		text-align: left;
	}
}
