/**
 * Documentation surface: archive, collection, article.
 *
 * BetterDocs renders these three pages from its own templates, its own
 * stylesheet and a generated CSS block from its customizer, and none of that
 * markup is replaced here. Every rule below restates one of BetterDocs' own
 * selectors in the site's design language.
 *
 * Two things make that work:
 *
 * 1. Print order. `src/Frontend/DocsSurface.php` names BetterDocs' handles as
 *    dependencies, so this file always prints last. BetterDocs enqueues part of
 *    its CSS while rendering a shortcode, which is later than any priority on
 *    `wp_enqueue_scripts`, so a dependency list is the only reliable ordering.
 * 2. `!important` on BetterDocs' own elements. Its generated CSS reaches seven
 *    classes deep (`.betterdocs-category-box-wrapper .betterdocs-category-box-
 *    inner-wrapper .betterdocs-categories-folder.layout-4 .category-box …`), and
 *    matching that depth rule-for-rule would make this file unreadable. The
 *    `!important` flags are load-bearing: remove one and the property silently
 *    falls back to the customizer's value.
 *
 * Colours, type, spacing and radii come from `arabiclab-core`'s `tokens.css`,
 * enqueued on every front-end page. Each token carries a fallback so the surface
 * still reads correctly if that plugin is deactivated.
 */

/* =========================================================================
   1. Ground
   ========================================================================= */

html body .betterdocs-wrapper {
	background-color: var(--paper, #fffdf8) !important;
	color: var(--ink, #1b2a24);
	font-family: var(--f-body, "Commissioner", "Segoe UI", Tahoma, sans-serif);
}

html body .betterdocs-wrapper .betterdocs-content-wrapper {
	box-sizing: border-box;
	max-width: var(--maxw, 1180px) !important;
	margin-inline: auto !important;
	padding-block: 48px !important;
	padding-inline: 16px !important;
}

html body .betterdocs-wrapper :is(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--teal, #2c746e) !important;
	outline-offset: 3px;
	border-radius: 6px;
}

/* =========================================================================
   2. Archive: search band, collection cards
   ========================================================================= */

/* BetterDocs ships two search layouts; the site has used both. Layout 1 prints
   a form in the page flow, layout 2 prints its modal layout inline. */
html body .betterdocs-docs-archive-wrapper .betterdocs-search-form-wrapper,
html body .betterdocs-docs-archive-wrapper .betterdocs-search-modal-layout-1 .betterdocs-search-layout-1 {
	background-color: var(--mint, #e8f6ef) !important;
	border-block-end: 1px solid var(--line, rgba(21, 69, 58, 0.16));
	padding-block: 64px !important;
	padding-inline: max(16px, env(safe-area-inset-left)) !important;
	margin-block: 0 !important;
}

html body .betterdocs-search-form-wrapper .betterdocs-live-search,
html body .betterdocs-search-modal-layout-1 .betterdocs-search-layout-1 .search-header {
	max-width: 720px !important;
	margin-inline: auto !important;
}

html body .betterdocs-search-form-wrapper .betterdocs-live-search {
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	text-align: center;
}

/* The eyebrow is printed between the heading and the form, the only slot
   BetterDocs leaves inside this band; `order` puts it back above the heading,
   where the design system opens a section. */
html body .albd-search-eyebrow {
	order: -1;
	margin: 0 0 16px !important;
	color: var(--teal, #2c746e);
}

html body .betterdocs-search-form-wrapper .betterdocs-searchform {
	width: 100%;
}

/* The production site's search pill: 560px wide, white, 12px shadow, and a gold
   ring on focus rather than the teal one the rest of the form set uses. */
html body .betterdocs-search-modal-layout-1 .betterdocs-search-layout-1 .search-bar {
	max-width: 560px !important;
	margin-inline: auto !important;
}

html body .betterdocs-search-heading {
	margin-block: 0 24px !important;
	text-align: center;
}

html body .betterdocs-search-heading :is(h1, h2, h3, h4, h5, h6).heading {
	font-family: var(--f-display, "Fraunces", Georgia, serif) !important;
	font-weight: 500 !important;
	font-size: clamp(1.75rem, 4.6vw, 2.7rem) !important;
	line-height: 1.12 !important;
	letter-spacing: -0.01em !important;
	text-wrap: balance;
	color: var(--forest, #15453a) !important;
	margin: 0 !important;
	padding: 0 !important;
	text-transform: none !important;
}

/* The pill is the system's signature shape; the field sits inside it. */
html body .betterdocs-searchform,
html body .betterdocs-search-modal-layout-1 .betterdocs-search-layout-1 .search-bar {
	display: flex !important;
	align-items: center !important;
	gap: 8px;
	background-color: #fff !important;
	border: 1.5px solid rgba(21, 69, 58, 0.25) !important;
	border-radius: 999px !important;
	min-height: 56px;
	padding-block: 5px !important;
	padding-inline: 16px 5px !important;
	box-shadow: 0 12px 30px -22px rgba(12, 47, 38, 0.45) !important;
	transition: border-color var(--dur-ui, 200ms) var(--ease-brand, ease),
		box-shadow var(--dur-ui, 200ms) var(--ease-brand, ease);
}

html body .betterdocs-searchform:focus-within,
html body .betterdocs-search-modal-layout-1 .betterdocs-search-layout-1 .search-bar:focus-within {
	border-color: var(--sun, #f2b53a) !important;
	box-shadow: 0 0 0 3px rgba(242, 181, 58, 0.3) !important;
}

html body .betterdocs-searchform .betterdocs-search-field,
html body .betterdocs-search-modal-layout-1 .betterdocs-search-layout-1 .search-bar .search-input {
	background-color: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	min-height: 44px;
	/* The glyph is a flex sibling, not an overlay, so 12px is breathing room
	   rather than clearance — without it the placeholder starts against it. */
	padding-block: 0 !important;
	padding-inline: 12px 0 !important;
	margin: 0 !important;
	font-size: 1rem !important;
	font-family: var(--f-body, "Commissioner", sans-serif) !important;
	color: var(--ink, #1b2a24) !important;
	width: 100%;
}

/* `base.css` rings every focused input in teal, which lands *inside* this pill
   and draws a second ring around the one the pill already draws in gold. The
   pill is the control, so focus is shown there and not on the field. */
html body .betterdocs-searchform .betterdocs-search-field:focus,
html body .betterdocs-searchform .betterdocs-search-field:focus-visible {
	outline: 0 !important;
	box-shadow: none !important;
}

html body .betterdocs-searchform .betterdocs-search-field::placeholder,
html body .betterdocs-search-modal-layout-1 .betterdocs-search-layout-1 .search-bar .search-input::placeholder {
	color: var(--muted, #4d5d56) !important;
	opacity: 1;
}

html body .betterdocs-searchform .docs-search-icon {
	width: 20px !important;
	height: 20px !important;
	flex: 0 0 20px;
	fill: var(--emerald, #17785f) !important;
	margin: 0 !important;
}

html body .betterdocs-searchform .docs-search-loader {
	width: 20px !important;
	height: 20px !important;
	flex: 0 0 20px;
}

html body .betterdocs-live-search .docs-search-result {
	background-color: var(--paper, #fffdf8) !important;
	border: 1px solid var(--line, rgba(21, 69, 58, 0.16)) !important;
	border-radius: var(--r, 14px) !important;
	box-shadow: var(--shadow-lg, 0 2px 6px rgba(12, 47, 38, 0.06), 0 24px 60px rgba(12, 47, 38, 0.14)) !important;
	overflow: hidden;
}

html body .betterdocs-live-search .docs-search-result li {
	border-block-end: 1px solid var(--line, rgba(21, 69, 58, 0.16)) !important;
}

html body .betterdocs-live-search .docs-search-result li a {
	color: var(--ink, #1b2a24) !important;
	font-size: 0.94rem !important;
}

html body .betterdocs-live-search .docs-search-result li:hover {
	background-color: var(--ivory, #f7f3ea) !important;
}

/* --- the cards --- */

html body .betterdocs-docs-archive-wrapper .betterdocs-category-box-wrapper {
	padding-block: 56px 64px !important;
	background-color: transparent !important;
	width: 100% !important;
}

html body .betterdocs-category-box-inner-wrapper,
html body .betterdocs-category-box-inner-wrapper.layout-4,
html body .betterdocs-category-box-inner-wrapper .betterdocs-categories-folder.layout-4 {
	display: grid !important;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
	gap: 18px !important;
	background-color: transparent !important;
	border: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
}

html body .betterdocs-category-box-inner-wrapper .category-box,
html body .betterdocs-category-box-inner-wrapper .category-box.layout-4 {
	display: flex !important;
	flex-direction: column !important;
	justify-content: flex-start !important;
	align-items: stretch !important;
	text-align: start !important;
	background-color: var(--paper, #fffdf8) !important;
	border: 1px solid var(--line, rgba(21, 69, 58, 0.16)) !important;
	border-radius: 18px !important;
	padding: 26px !important;
	margin: 0 !important;
	box-shadow: none !important;
	text-decoration: none !important;
	transition: transform var(--dur-tap, 180ms) var(--ease-brand, ease),
		box-shadow var(--dur-ui, 200ms) var(--ease-brand, ease),
		border-color var(--dur-ui, 200ms) var(--ease-brand, ease);
}

html body .betterdocs-category-box-inner-wrapper .category-box:hover,
html body .betterdocs-category-box-inner-wrapper .category-box:focus-visible {
	transform: translateY(-2px);
	background-color: var(--paper, #fffdf8) !important;
	box-shadow: var(--shadow, 0 1px 2px rgba(12, 47, 38, 0.04), 0 8px 28px rgba(12, 47, 38, 0.07)) !important;
	border-color: var(--gold, #c9a24b) !important;
}

html body .betterdocs-category-box-inner-wrapper .category-box .betterdocs-category-header {
	padding: 0 !important;
}

html body .betterdocs-category-box-inner-wrapper .category-box .betterdocs-single-category-inner {
	display: flex !important;
	flex-direction: column !important;
	align-items: stretch !important;
	height: 100%;
}

/* At four columns a card is about 275px wide, too narrow to set a folder glyph
   beside a title that wraps to two lines, so the header is a three-row grid:
   glyph and doc count on the top line (count pushed to the far end), title
   below it, date closing the card. The `1fr` title row is what keeps every
   card's count on one line and every card's date on another however long the
   title runs — before this the date drifted with the title and could spill
   past the border. */
/* The header is the flex column that lets the grid fill the card; without this
   the grid only ever reaches its content height and the date stops tracking the
   card's foot. */
html body .betterdocs-category-box-inner-wrapper.layout-4 .category-box .betterdocs-single-category-inner .betterdocs-category-header {
	display: flex !important;
	align-items: stretch !important;
	width: 100%;
	height: 100%;
}

html body .betterdocs-category-box-inner-wrapper.layout-4 .category-box .betterdocs-single-category-inner .betterdocs-category-header-inner {
	width: 100%;
}

html body .betterdocs-category-box-inner-wrapper.layout-4 .category-box .betterdocs-single-category-inner .betterdocs-category-header-inner {
	display: grid !important;
	flex: 1 1 auto !important;
	grid-template-columns: auto minmax(0, 1fr);
	grid-template-areas:
		"icon count"
		"title title"
		"date date";
	grid-template-rows: auto 1fr auto;
	align-items: start;
	column-gap: 12px;
	row-gap: 12px;
	padding: 0 !important;
	border: 0 !important;
	text-align: start;
}

html body .betterdocs-category-box-inner-wrapper .category-box .betterdocs-category-icon {
	grid-area: icon;
	align-self: center;
}

html body .betterdocs-category-box-inner-wrapper .category-box .betterdocs-dynamic-wrapper {
	flex: 1 1 auto;
	min-width: 0;
	display: block !important;
	text-align: start;
}

html body .betterdocs-category-box-inner-wrapper .category-box .betterdocs-category-icon .betterdocs-folder-icon {
	background: rgba(44, 116, 110, 0.1) !important;
	border-radius: 999px !important;
	width: 34px !important;
	height: 34px !important;
	margin: 0 !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

html body .betterdocs-category-icon .betterdocs-folder-icon svg {
	width: 18px !important;
	height: 18px !important;
}

html body .betterdocs-category-icon .betterdocs-folder-icon svg :is(path, rect) {
	fill: var(--teal, #2c746e) !important;
}

/* `display: contents` lifts the title, count and date out of this wrapper so
   the grid above can place them; the div has no semantics to lose. */
html body .betterdocs-category-box-inner-wrapper .category-box .betterdocs-category-title-counts {
	display: contents !important;
	text-align: start !important;
	margin: 0 !important;
}

html body .betterdocs-category-box-inner-wrapper .category-box .betterdocs-category-title,
html body .betterdocs-category-box-inner-wrapper .category-box .betterdocs-category-title a {
	font-family: var(--f-display, "Fraunces", Georgia, serif) !important;
	font-weight: 500 !important;
	font-size: 1.35rem !important;
	line-height: 1.25 !important;
	letter-spacing: -0.01em !important;
	color: var(--forest, #15453a) !important;
	text-align: start !important;
	margin: 0 !important;
	padding: 0 !important;
	text-transform: none !important;
	text-decoration: none !important;
	grid-area: title;
}

html body .betterdocs-category-box-inner-wrapper .category-box:hover .betterdocs-category-title {
	color: var(--forest, #15453a) !important;
}

html body .betterdocs-category-box-inner-wrapper .betterdocs-sub-category-items-counts,
html body .betterdocs-category-box-inner-wrapper .betterdocs-category-items-counts {
	background-color: rgba(44, 116, 110, 0.1) !important;
	border-radius: 999px !important;
	color: var(--teal, #2c746e) !important;
	font-size: 0.84rem !important;
	font-weight: 600 !important;
	/* The chip is a fixed 30px pill, so its text is centred by the line box:
	   with a shorter line-height and only 2px of padding, the label sat 1px from
	   the top and 12px from the bottom. */
	line-height: 30px !important;
	height: 30px;
	min-height: 30px;
	padding: 0 12px !important;
	margin: 0 !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	text-align: center !important;
	grid-area: count;
	justify-self: end;
	align-self: center;
}

html body .betterdocs-category-box-inner-wrapper .betterdocs-sub-category-items-counts span,
html body .betterdocs-category-box-inner-wrapper .betterdocs-category-items-counts span {
	color: inherit !important;
	font-size: inherit !important;
	display: inline !important;
}

html body .betterdocs-category-box-inner-wrapper .betterdocs-last-update,
html body .betterdocs-category-box-inner-wrapper .betterdocs-categories-folder.layout-4 .betterdocs-last-update {
	background-color: transparent !important;
	border-radius: 0 !important;
	color: var(--muted, #4d5d56) !important;
	font-size: 0.78rem !important;
	line-height: 1.4 !important;
	padding: 0 !important;
	margin: 0 !important;
	text-align: start !important;
	grid-area: date;
}

/* =========================================================================
   3. Collection: category and tag archives
   ========================================================================= */

html body .betterdocs-docs-archive-wrapper .betterdocs-content-wrapper.betterdocs-archive-main {
	display: block !important;
}

html body .betterdocs-taxonomy-wrapper .betterdocs-content-wrapper {
	display: flex !important;
	align-items: flex-start !important;
	gap: 40px !important;
}

html body .betterdocs-taxonomy-wrapper .betterdocs-full-sidebar-left {
	flex: 0 0 268px !important;
	position: sticky !important;
	inset-block-start: calc(var(--hdr, 64px) + 16px);
	align-self: flex-start !important;
	background-color: transparent !important;
	padding: 0 !important;
	max-width: none !important;
}

html body .betterdocs-taxonomy-wrapper .betterdocs-content-area {
	flex: 1 1 0 !important;
	min-width: 0 !important;
	padding: 0 !important;
	background-color: transparent !important;
}

/* The band above the content already carries this collection's name as the
   page's h1, so the folder strip repeats it as meta rather than as a title. */
html body .betterdocs-main-category-folder {
	background-color: transparent !important;
	border: 0 !important;
	border-block-end: 1px solid var(--line, rgba(21, 69, 58, 0.16)) !important;
	border-radius: 0 !important;
	padding: 0 0 18px !important;
	margin-block: 0 8px !important;
	box-shadow: none !important;
}

html body .betterdocs-main-category-folder .betterdocs-category-title {
	display: none !important;
}

html body .betterdocs-wrapper.betterdocs-taxonomy-wrapper .betterdocs-content-area .betterdocs-main-category-folder .betterdocs-category-header-inner {
	justify-content: flex-start !important;
	flex-flow: row wrap !important;
	gap: 10px;
	padding: 0 !important;
	border: 0 !important;
	text-align: start;
}

html body .betterdocs-main-category-folder .betterdocs-category-icon .betterdocs-folder-icon {
	background: rgba(44, 116, 110, 0.1) !important;
	border-radius: 999px !important;
	width: 32px !important;
	height: 32px !important;
	margin: 0 !important;
}

html body .betterdocs-main-category-folder .betterdocs-sub-category-counter,
html body .betterdocs-main-category-folder .betterdocs-category-items-counts {
	background-color: rgba(44, 116, 110, 0.1) !important;
	border-radius: 999px !important;
	color: var(--teal, #2c746e) !important;
	font-size: 0.78rem !important;
	font-weight: 600 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	padding: 2px 10px !important;
	margin: 0 !important;
}

html body .betterdocs-main-category-folder .betterdocs-category-items-counts span {
	color: inherit !important;
	font-size: inherit !important;
}

html body .betterdocs-title-excerpt-lists {
	display: block !important;
	grid-template-columns: none !important;
	gap: 0 !important;
}

html body .betterdocs-title-excerpt-list {
	background-color: transparent !important;
	border: 0 !important;
	border-block-end: 1px solid var(--line, rgba(21, 69, 58, 0.16)) !important;
	border-radius: 0 !important;
	padding: 22px 0 !important;
	margin: 0 !important;
	box-shadow: none !important;
}

html body .betterdocs-title-excerpt-list:last-child {
	border-block-end: 0 !important;
}

html body .betterdocs-title-excerpt-list .betterdocs-entry-title {
	font-family: var(--f-display, "Fraunces", Georgia, serif) !important;
	font-weight: 500 !important;
	font-size: 1.15rem !important;
	line-height: 1.3 !important;
	color: var(--forest, #15453a) !important;
	margin: 0 0 6px !important;
}

html body .betterdocs-title-excerpt-list .betterdocs-entry-title a {
	color: inherit !important;
	text-decoration: none !important;
}

html body .betterdocs-title-excerpt-list .betterdocs-entry-title a:hover {
	color: var(--emerald, #17785f) !important;
	text-decoration: underline !important;
	text-underline-offset: 4px;
}

html body .betterdocs-title-excerpt-list .betterdocs-entry-title svg {
	width: 18px !important;
	height: 18px !important;
	margin-inline-end: 8px;
	vertical-align: -2px;
}

html body .betterdocs-title-excerpt-list .betterdocs-entry-title svg :is(path, rect) {
	fill: var(--teal, #2c746e) !important;
}

html body .betterdocs-title-excerpt-list .update-date {
	background-color: transparent !important;
	color: var(--muted, #4d5d56) !important;
	font-size: 0.78rem !important;
	padding: 0 !important;
	margin: 0 !important;
}

html body .betterdocs-title-excerpt-list p {
	color: var(--muted, #4d5d56) !important;
	font-size: 0.94rem !important;
	line-height: 1.6 !important;
	margin: 6px 0 0 !important;
}

html body .betterdocs-pagination ul {
	display: flex !important;
	gap: 8px;
	margin-block-start: 32px !important;
}

html body .betterdocs-pagination ul li a {
	background-color: var(--paper, #fffdf8) !important;
	border: 1px solid var(--line, rgba(21, 69, 58, 0.16)) !important;
	border-radius: 999px !important;
	color: var(--ink, #1b2a24) !important;
	font-size: 0.94rem !important;
	height: 44px !important;
	width: 44px !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
}

html body .betterdocs-pagination ul li.active a {
	background-color: var(--forest, #15453a) !important;
	border-color: var(--forest, #15453a) !important;
	color: var(--on-dark, #fffdf8) !important;
}

/* =========================================================================
   4. Sidebar: the collection tree, on every page that has one
   ========================================================================= */

/* BetterDocs draws a `border-right: 1px solid #eaecf0` divider on the sidebar
   column — from its block stylesheets, and per layout (`-layout-7` on the single
   doc, `-layout-1` on a collection). The column and its card are the same box,
   so the line landed just outside the card's own border and read as a doubled
   edge; being a physical `right`, it was also on the wrong side in RTL. The card
   is the divider now, on every docs surface. */
html body .betterdocs-sidebar {
	border: 0 !important;
	background-color: transparent !important;
	padding: 0 !important;
}

html body .betterdocs-sidebar .betterdocs-sidebar-content {
	background-color: var(--paper, #fffdf8) !important;
	border: 1px solid var(--line, rgba(21, 69, 58, 0.16)) !important;
	border-radius: var(--r, 14px) !important;
	box-shadow: var(--shadow, 0 1px 2px rgba(12, 47, 38, 0.04), 0 8px 28px rgba(12, 47, 38, 0.07)) !important;
	padding: 14px !important;
	max-height: calc(100vh - 140px);
	overflow-y: auto;
	overscroll-behavior: contain;
}

html body .betterdocs-sidebar .betterdocs-category-grid-wrapper,
html body .betterdocs-sidebar .betterdocs-category-grid-inner-wrapper {
	display: block !important;
	background-color: transparent !important;
	border: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	gap: 0 !important;
}

html body .betterdocs-sidebar .betterdocs-single-category-wrapper {
	background-color: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	margin: 0 0 4px !important;
	padding: 0 !important;
	width: 100% !important;
}

html body .betterdocs-sidebar .betterdocs-single-category-wrapper .betterdocs-category-header {
	padding: 0 !important;
	box-shadow: none !important;
}

html body .betterdocs-sidebar .betterdocs-category-header-inner {
	display: flex !important;
	flex-flow: row nowrap !important;
	align-items: center !important;
	justify-content: flex-start !important;
	gap: 8px;
	min-height: 44px;
	padding: 0 10px !important;
	border: 0 !important;
	border-radius: 999px !important;
	text-align: start;
}

html body .betterdocs-sidebar .betterdocs-single-category-wrapper.active .betterdocs-category-header-inner {
	background-color: var(--mint, #e8f6ef) !important;
}

html body .betterdocs-sidebar .betterdocs-category-header-inner .betterdocs-folder-icon {
	background: rgba(44, 116, 110, 0.1) !important;
	border-radius: 999px !important;
	width: 26px !important;
	height: 26px !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	flex: 0 0 26px;
}

html body .betterdocs-sidebar .betterdocs-category-header-inner .betterdocs-folder-icon svg {
	width: 14px !important;
	height: 14px !important;
}

html body .betterdocs-sidebar .betterdocs-category-title,
html body .betterdocs-sidebar .betterdocs-category-title a {
	font-family: var(--f-body, "Commissioner", "Segoe UI", Tahoma, sans-serif) !important;
	font-weight: 600 !important;
	font-size: 0.94rem !important;
	line-height: 1.3 !important;
	letter-spacing: 0 !important;
	color: var(--forest, #15453a) !important;
	text-transform: none !important;
	margin: 0 !important;
	padding: 0 !important;
	text-decoration: none !important;
}

html body .betterdocs-sidebar .betterdocs-category-items-counts {
	background-color: rgba(44, 116, 110, 0.1) !important;
	border-radius: 999px !important;
	color: var(--teal, #2c746e) !important;
	font-size: 0.72rem !important;
	font-weight: 700 !important;
	min-width: 22px;
	text-align: center !important;
	padding: 2px 7px !important;
	margin: 0 0 0 auto !important;
}

html body .betterdocs-sidebar .betterdocs-category-items-counts span {
	color: inherit !important;
	font-size: inherit !important;
}

html body .betterdocs-sidebar .betterdocs-articles-list {
	display: block !important;
	margin: 2px 0 10px !important;
	padding: 0 !important;
	list-style: none !important;
}

html body .betterdocs-sidebar .betterdocs-articles-list li {
	display: block !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
}

html body .betterdocs-sidebar .betterdocs-articles-list li a {
	display: flex !important;
	align-items: center;
	min-height: 44px;
	padding: 8px 12px !important;
	margin: 0 !important;
	border-radius: 10px !important;
	color: var(--ink, #1b2a24) !important;
	font-size: 0.9rem !important;
	line-height: 1.4 !important;
	text-decoration: none !important;
	transition: background-color var(--dur-tap, 180ms) var(--ease-brand, ease),
		color var(--dur-tap, 180ms) var(--ease-brand, ease);
}

html body .betterdocs-sidebar .betterdocs-articles-list li a:hover {
	background-color: var(--ivory, #f7f3ea) !important;
	color: var(--forest, #15453a) !important;
}

html body .betterdocs-sidebar .betterdocs-articles-list li a.active,
html body .betterdocs-sidebar .betterdocs-articles-list li a.active:hover {
	background-color: var(--mint, #e8f6ef) !important;
	color: var(--forest, #15453a) !important;
	font-weight: 600 !important;
}

html body .betterdocs-sidebar .betterdocs-articles-list li svg {
	width: 16px !important;
	height: 16px !important;
	flex: 0 0 16px;
	margin-inline-end: 8px !important;
	fill: var(--teal, #2c746e) !important;
}

/* The sidebar's own search box is the same form component in a 268px column. */
html body .betterdocs-sidebar .betterdocs-searchform {
	min-height: 44px !important;
	padding: 4px 14px !important;
	border-radius: 999px !important;
	margin-block: 0 12px !important;
	box-shadow: none !important;
}

html body .betterdocs-sidebar .betterdocs-searchform .betterdocs-search-field {
	min-height: 36px !important;
	font-size: 0.9rem !important;
}

html body .betterdocs-sidebar .betterdocs-searchform .docs-search-icon {
	width: 16px !important;
	height: 16px !important;
	flex: 0 0 16px;
}

/* =========================================================================
   5. Article: the reading column
   ========================================================================= */

html body .betterdocs-single-wrapper .betterdocs-content-wrapper {
	display: flex !important;
	grid-template-columns: none !important;
	align-items: flex-start !important;
	gap: 40px !important;
}

html body .betterdocs-single-wrapper .betterdocs-full-sidebar-left {
	flex: 0 0 268px !important;
	position: sticky !important;
	inset-block-start: calc(var(--hdr, 64px) + 16px);
	align-self: flex-start !important;
	background-color: transparent !important;
	padding: 0 !important;
	max-width: none !important;
	width: auto !important;
}

html body .betterdocs-single-wrapper .betterdocs-content-area {
	flex: 1 1 0 !important;
	min-width: 0 !important;
	padding: 0 !important;
	background-color: transparent !important;
}

/* The content column arrives as a white panel with its own padding on both
   layouts; the article sits on the page's paper instead. */
html body .betterdocs-wrapper.betterdocs-single-wrapper .betterdocs-content-wrapper .betterdocs-content-area .betterdocs-content-inner-area,
html body .betterdocs-wrapper.betterdocs-taxonomy-wrapper .betterdocs-content-wrapper .betterdocs-content-area .betterdocs-content-inner-area {
	background-color: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	padding: 0 !important;
	margin: 0 !important;
}

html body #betterdocs-sidebar-right {
	flex: 0 0 264px !important;
	position: sticky !important;
	inset-block-start: calc(var(--hdr, 64px) + 16px);
	align-self: flex-start !important;
	background-color: transparent !important;
	padding: 0 !important;
}

html body .betterdocs-single-wrapper .betterdocs-mobile-nav {
	border: 1px solid var(--line, rgba(21, 69, 58, 0.16)) !important;
	border-radius: 999px !important;
	padding: 8px 14px !important;
	margin-block-end: 18px !important;
	background-color: var(--paper, #fffdf8) !important;
}

/* --- the meta row above the article --- */

html body .betterdocs-doc-meta {
	display: flex !important;
	align-items: center !important;
	gap: 10px;
	flex-wrap: wrap;
	margin-block-end: 24px !important;
}

html body .betterdocs-doc-meta .betterdocs-read-time,
html body .betterdocs-doc-meta .betterdocs.reading-time,
html body .betterdocs-doc-meta .betterdocs-ai-actions,
html body .betterdocs-doc-meta .betterdocs-listen {
	background-color: var(--paper, #fffdf8) !important;
	border: 1px solid var(--line, rgba(21, 69, 58, 0.16)) !important;
	border-radius: 999px !important;
	padding: 0 !important;
	margin: 0 !important;
	box-shadow: none !important;
	overflow: hidden;
}

/* The pill is the target: BetterDocs' own button inside it is 25px tall and
   would otherwise be the only thing a reader can hit. */
html body .betterdocs-doc-meta .betterdocs-listen-trigger,
html body .betterdocs-doc-meta .betterdocs-ai-actions-primary,
html body .betterdocs-doc-meta .betterdocs-ai-actions-toggle {
	min-height: 44px !important;
	padding-inline: 14px !important;
}

html body .betterdocs-doc-meta :is(p, span, a, button, .betterdocs-ai-actions-label, .betterdocs-listen-label) {
	color: var(--muted, #4d5d56) !important;
	font-size: 0.84rem !important;
	font-weight: 500 !important;
}

html body .betterdocs-doc-meta :is(svg, svg *) {
	color: var(--teal, #2c746e) !important;
}

/* The listen player's controls are drawn at 8–20px. They only appear while a
   reader is listening, which is exactly when a thumb is aiming at them. */
html body .betterdocs-listen-player button {
	min-width: 40px !important;
	min-height: 40px !important;
}

@media (max-width: 1024px) {
	html body .betterdocs-listen-player button {
		min-width: 44px !important;
		min-height: 44px !important;
	}
}

/* --- the article itself --- */

html body #betterdocs-single-content {
	font-family: var(--f-body, "Commissioner", "Segoe UI", Tahoma, sans-serif), var(--f-ar, "Amiri", serif) !important;
	font-size: 1.0625rem !important;
	line-height: 1.65 !important;
	color: var(--ink, #1b2a24) !important;
}

html body #betterdocs-single-content > * {
	max-width: 68ch;
}

html body #betterdocs-single-content p {
	font-size: inherit !important;
	line-height: inherit !important;
	margin-block: 0 14px !important;
	font-family: inherit !important;
	color: inherit !important;
}

html body #betterdocs-single-content :is(ul, ol, table, figure, blockquote) {
	margin-block-end: 14px !important;
}

html body #betterdocs-single-content :is(h2, h3, h4, h5, h6) {
	font-family: var(--f-display, "Fraunces", Georgia, serif) !important;
	font-weight: 500 !important;
	line-height: 1.2 !important;
	letter-spacing: -0.01em !important;
	color: var(--forest, #15453a) !important;
	text-wrap: balance;
	margin-block: 40px 14px !important;
	padding-block: 0 !important;
	text-transform: none !important;
}

html body #betterdocs-single-content h2 {
	font-size: clamp(1.5rem, 3vw, 2rem) !important;
	border-block-start: 1px solid var(--line, rgba(21, 69, 58, 0.16));
	padding-block-start: 22px !important;
}

html body #betterdocs-single-content h3 {
	font-size: clamp(1.35rem, 2.6vw, 1.65rem) !important;
}

html body #betterdocs-single-content h4 {
	font-size: clamp(1.2rem, 2.2vw, 1.4rem) !important;
}

/* Authors write sections as `h4` in the editor, so the section rule lands on
   `h2` and `h4` alike; `h5` stays a sub-heading. */
html body #betterdocs-single-content h4:not(:first-child) {
	border-block-start: 1px solid var(--line, rgba(21, 69, 58, 0.16));
	padding-block-start: 22px !important;
}

html body #betterdocs-single-content :is(h5, h6) {
	font-size: 1.05rem !important;
	color: var(--forest-mid, #1c5446) !important;
	letter-spacing: 0 !important;
}

html body #betterdocs-single-content :is(h2, h3, h4, h5, h6) .batterdocs-anchor {
	text-decoration: none !important;
	color: inherit !important;
}

html body #betterdocs-single-content a {
	color: var(--emerald, #17785f) !important;
	text-decoration: underline !important;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
}

html body #betterdocs-single-content a:hover {
	color: var(--forest, #15453a) !important;
}

html body #betterdocs-single-content :is(ul, ol) {
	padding-inline-start: 22px !important;
	margin-block-start: 0 !important;
}

html body #betterdocs-single-content li {
	margin-block: 6px !important;
	line-height: 1.6 !important;
}

html body #betterdocs-single-content li::marker {
	color: var(--teal, #2c746e);
}

html body #betterdocs-single-content blockquote {
	border: 0 !important;
	border-inline-start: 2px solid var(--gold, #c9a24b) !important;
	border-radius: 0 !important;
	background-color: transparent !important;
	padding-block: 4px !important;
	padding-inline: 20px 0 !important;
	margin-inline: 0 !important;
	font-family: var(--f-display, "Fraunces", Georgia, serif) !important;
	font-style: italic;
	font-size: 1.15rem !important;
	line-height: 1.5 !important;
	color: var(--forest, #15453a) !important;
}

html body #betterdocs-single-content blockquote p {
	font-family: inherit !important;
	font-size: inherit !important;
	color: inherit !important;
}

html body #betterdocs-single-content blockquote cite {
	display: block;
	margin-block-start: 8px;
	font-family: var(--f-body, "Commissioner", sans-serif) !important;
	font-style: normal;
	font-size: 0.84rem !important;
	color: var(--muted, #4d5d56) !important;
}

html body #betterdocs-single-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.94rem;
}

html body #betterdocs-single-content :is(th, td) {
	border: 1px solid var(--line, rgba(21, 69, 58, 0.16)) !important;
	padding: 10px 12px !important;
	text-align: start;
}

html body #betterdocs-single-content th {
	background-color: var(--ivory, #f7f3ea) !important;
	font-weight: 600 !important;
	color: var(--forest, #15453a) !important;
}

html body #betterdocs-single-content td {
	font-variant-numeric: tabular-nums;
}

html body #betterdocs-single-content img {
	max-width: 100%;
	height: auto;
	border-radius: var(--r, 14px);
	border: 1px solid var(--line, rgba(21, 69, 58, 0.16));
}

html body #betterdocs-single-content hr {
	border: 0 !important;
	border-block-start: 1px solid var(--gold, #c9a24b) !important;
	margin-block: 36px !important;
}

html body #betterdocs-single-content code {
	background-color: var(--ivory, #f7f3ea) !important;
	border-radius: 6px;
	padding: 1px 6px;
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 0.9em;
}

/* Arabic and other right-to-left passages. A verse is content, so it is marked
   up as such in the editor (`dir="rtl" lang="ar"`); anything so marked is
   treated as a Qur'anic or ḥadīth quotation rather than body copy. Unmarked
   Arabic still reads in Amiri through the font stack above. */
html body #betterdocs-single-content :is(p, blockquote, div)[dir="rtl"],
html body #betterdocs-single-content :is(p, blockquote, div)[lang="ar"],
html body #betterdocs-single-content .arabic {
	direction: rtl;
	text-align: end;
	font-family: var(--f-ar, "Amiri", serif) !important;
	font-size: 1.55rem !important;
	line-height: 1.9 !important;
	color: var(--forest, #15453a) !important;
	background-color: var(--ivory, #f7f3ea) !important;
	border: 0 !important;
	border-inline-start: 3px solid var(--gold, #c9a24b) !important;
	border-radius: 4px var(--r, 14px) var(--r, 14px) 4px !important;
	padding: 14px 18px !important;
	margin-block: 18px !important;
}

/* =========================================================================
   6. Table of contents
   ========================================================================= */

html body .betterdocs-toc,
html body #betterdocs-sidebar-right .betterdocs-toc,
html body .sticky-toc-container {
	background-color: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	padding-block: 0 !important;
	padding-inline: 0 !important;
	margin: 0 !important;
	box-shadow: none !important;
	width: auto !important;
}

html body .betterdocs-toc .toc-title,
html body .betterdocs-toc > .toc-title {
	font-family: var(--f-body, "Commissioner", sans-serif) !important;
	font-size: 0.78rem !important;
	font-weight: 600 !important;
	letter-spacing: 0.14em !important;
	text-transform: uppercase !important;
	color: var(--teal, #2c746e) !important;
	display: block !important;
	margin-block-end: 12px !important;
	padding: 0 !important;
}

html body .betterdocs-toc .toc-list {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* BetterDocs draws the rail as a 1px `#d0d5dd` bar on the list's own
   pseudo-element, which the rule above cannot reach. */
html body .betterdocs-toc .toc-list::before {
	display: none !important;
}

html body .betterdocs-toc .toc-list::after {
	display: none !important;
}

html body .betterdocs-toc .toc-list .toc-list {
	padding-inline-start: 12px !important;
}

html body .betterdocs-toc .toc-list li {
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
}

html body .betterdocs-toc .toc-list li a {
	display: block !important;
	padding-block: 12px !important;
	padding-inline: 10px 0 !important;
	margin: 0 !important;
	font-size: 0.9rem !important;
	line-height: 1.45 !important;
	color: var(--muted, #4d5d56) !important;
	text-decoration: none !important;
	transition: color var(--dur-tap, 180ms) var(--ease-brand, ease),
		border-color var(--dur-tap, 180ms) var(--ease-brand, ease);
}

html body .betterdocs-toc .toc-list li a:hover {
	color: var(--forest, #15453a) !important;
}

/* The current item is marked by colour and weight alone. The rail and the gold
   marker that production's in-page contents uses were removed from this rail by
   request: beside a long article they drew a second vertical line next to the
   reading column. BetterDocs draws its own marker as a 4px bar on the anchor's
   `::after` (`#a1dcc0`, or `#528fff` in toc.css), so that goes with it. */
html body .betterdocs-toc .toc-list li a.active,
html body .betterdocs-toc .toc-list li.is-active > a {
	color: var(--forest, #15453a) !important;
	font-weight: 600 !important;
}

html body .betterdocs-toc .toc-list li a.active::after,
html body .betterdocs-toc .toc-list li.is-active > a::after,
html body .betterdocs-toc .toc-list li a.active::before,
html body .betterdocs-toc .toc-list li.is-active > a::before {
	display: none !important;
}

html body .betterdocs-toc .toc-list li a::before {
	color: var(--gold-deep, #b6892f);
	font-variant-numeric: tabular-nums;
}

/* =========================================================================
   7. Article footer: tags, feedback, navigation, credit
   ========================================================================= */

html body .betterdocs-entry-footer {
	border-block-start: 1px solid var(--line, rgba(21, 69, 58, 0.16)) !important;
	margin-block-start: 44px !important;
	padding-block-start: 22px !important;
}

html body .betterdocs-tags a,
html body .betterdocs-tags .betterdocs-tag {
	background-color: rgba(44, 116, 110, 0.1) !important;
	border: 0 !important;
	border-radius: 999px !important;
	color: var(--teal, #2c746e) !important;
	font-size: 0.78rem !important;
	font-weight: 600 !important;
	padding: 3px 12px !important;
}

/* Previous/next: two cards on one row, each half the column, arrows inward.
   `grid` without explicit tracks stacked them into one narrow column, and the
   template's 42px arrow SVG then set each card's width, so the row is flex with
   a wrapping basis instead: one card fills the row when there is only one. */
html body .docs-navigation {
	display: flex !important;
	flex-wrap: wrap;
	gap: 12px;
	margin-block-start: 32px !important;
	background-color: transparent !important;
	padding: 0 !important;
}

html body .docs-navigation a {
	display: flex !important;
	align-items: center !important;
	gap: 12px !important;
	flex: 1 1 240px;
	min-width: 0;
	background-color: var(--paper, #fffdf8) !important;
	border: 1px solid var(--line, rgba(21, 69, 58, 0.16)) !important;
	border-radius: var(--r, 14px) !important;
	padding: 16px 18px !important;
	color: var(--ink, #1b2a24) !important;
	text-decoration: none !important;
	transition: border-color var(--dur-ui, 200ms) var(--ease-brand, ease),
		box-shadow var(--dur-ui, 200ms) var(--ease-brand, ease);
}

html body .docs-navigation a:hover {
	border-color: var(--gold, #c9a24b) !important;
}

/* The arrows ship at 42px, which is a glyph size for an icon that should be a
   cue beside the title. 16px, in the teal the rest of the article chrome uses. */
html body .docs-navigation a svg {
	width: 16px !important;
	height: 16px !important;
	flex: 0 0 16px;
	fill: var(--teal, #2c746e);
}

html body .docs-navigation a[rel="next"] {
	justify-content: flex-end !important;
	text-align: end !important;
}

/* The arrows are drawn pointing right/left, so the mirrored view flips them. */
html body [dir="rtl"] .docs-navigation a svg {
	transform: scaleX(-1);
}

html body .docs-navigation a :is(span, p) {
	font-size: 0.78rem !important;
	letter-spacing: 0.14em !important;
	text-transform: uppercase !important;
	color: var(--teal, #2c746e) !important;
	font-weight: 600 !important;
}

html body .docs-navigation a :is(h2, h3, h4, h5) {
	font-family: var(--f-display, "Fraunces", Georgia, serif) !important;
	font-weight: 500 !important;
	font-size: 1.05rem !important;
	color: var(--forest, #15453a) !important;
	margin: 4px 0 0 !important;
}

html body .feedback-update-form .feedback-form-link,
html body .betterdocs-credit {
	color: var(--muted, #4d5d56) !important;
	font-size: 0.84rem !important;
}

/* --- reactions, sharing, and the comment form --- */

html body .betterdocs-article-reactions,
html body .betterdocs-social-share {
	background-color: var(--paper, #fffdf8) !important;
	border: 1px solid var(--line, rgba(21, 69, 58, 0.16)) !important;
	border-radius: var(--r, 14px) !important;
	box-shadow: none !important;
	padding: 20px !important;
	margin-block: 0 18px !important;
}

/* Both widgets ship an inner panel with its own tinted ground, border and
   40px padding; the card above is the only frame either one needs. */
html body .betterdocs-article-reactions-box,
html body .betterdocs-social-share-links {
	background-color: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	list-style: none !important;
}

html body .betterdocs-article-reactions-subheading,
html body .betterdocs-social-share-title-tag {
	font-family: var(--f-body, "Commissioner", sans-serif) !important;
	font-size: 0.94rem !important;
	font-weight: 600 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	color: var(--forest, #15453a) !important;
	margin: 0 0 14px !important;
	line-height: 1.4 !important;
}

html body .betterdocs-article-reactions-box {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	flex-wrap: wrap;
	gap: 14px;
}

html body .betterdocs-article-reactions-subheading {
	margin: 0 !important;
}

html body .betterdocs-article-reaction-links {
	display: flex !important;
	align-items: center;
	gap: 10px;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

html body .betterdocs-article-reaction-links li {
	margin: 0 !important;
	padding: 0 !important;
	background-color: transparent !important;
	border: 0 !important;
}

html body .betterdocs-article-reaction-links li a,
html body .betterdocs-article-reaction-links li button {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 44px !important;
	height: 44px !important;
	border-radius: 50% !important;
	background-color: var(--paper, #fffdf8) !important;
	border: 1px solid var(--line, rgba(21, 69, 58, 0.16)) !important;
	box-shadow: none !important;
	font-size: 1.1rem;
	line-height: 1;
	transition: transform var(--dur-tap, 180ms) var(--ease-brand, ease),
		border-color var(--dur-ui, 200ms) var(--ease-brand, ease);
}

html body .betterdocs-article-reaction-links li a:hover,
html body .betterdocs-article-reaction-links li button:hover {
	transform: translateY(-2px);
	border-color: var(--gold, #c9a24b) !important;
}

html body .betterdocs-social-share-links {
	display: flex !important;
	align-items: center;
	gap: 10px;
}

html body .betterdocs-social-share-links li {
	margin: 0 !important;
	padding: 0 !important;
	background-color: transparent !important;
	border: 0 !important;
}

html body .betterdocs-social-share-links a {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 44px !important;
	height: 44px !important;
	border-radius: 50% !important;
	background-color: var(--forest, #15453a) !important;
	color: var(--on-dark, #fffdf8) !important;
	object-fit: contain;
	text-decoration: none !important;
}

html body .betterdocs-social-share-links a:hover {
	background-color: var(--forest-deep, #0c2f26) !important;
}

html body .betterdocs-social-share-links img {
	display: block !important;
	background-color: transparent !important;
	width: 28px !important;
	height: 28px !important;
}

/* BetterDocs opens the row with one decorative share glyph: a bare `<img>` in
   its own `<li>`, with no link around it. The circle rule above caught it and
   the raw sprite then sat beside four styled links, in its own colours, looking
   like a fifth network that does nothing. The card's heading already says what
   the row is, so it goes. */
html body .betterdocs-social-share-links li:not(:has(a)) {
	display: none !important;
}

/* The comment form is the site's form component, so it takes the system's
   field spec: 48px, 10px radius, teal focus ring, 0.94rem label above. */
/* The comment area carries 84px of its own before the reply heading, on top of
   the previous/next row's 40px: 124px of paper between two things that belong
   together. The heading now starts 68px after the row. */
html body .betterdocs-wrapper .comments-area {
	padding-block-start: 28px !important;
}

html body .betterdocs-wrapper .comment-respond {
	background-color: transparent !important;
	border: 0 !important;
	padding: 0 !important;
}

html body .betterdocs-wrapper .comment-reply-title {
	font-family: var(--f-display, "Fraunces", Georgia, serif) !important;
	font-weight: 500 !important;
	font-size: 1.35rem !important;
	color: var(--forest, #15453a) !important;
	margin-block: 8px 4px !important;
}

html body .betterdocs-wrapper .comment-notes,
html body .betterdocs-wrapper .logged-in-as,
html body .betterdocs-wrapper .comment-form-cookies-consent label {
	color: var(--muted, #4d5d56) !important;
	font-size: 0.84rem !important;
}

html body .betterdocs-wrapper .comment-form :is(label, .comment-form-author label) {
	display: block;
	font-size: 0.94rem !important;
	font-weight: 600 !important;
	color: var(--forest, #15453a) !important;
	margin-block-end: 6px !important;
}

html body .betterdocs-wrapper .comment-form :is(input[type="text"], input[type="email"], input[type="url"], textarea) {
	background-color: #fff !important;
	border: 1.5px solid rgba(21, 69, 58, 0.3) !important;
	border-radius: 10px !important;
	min-height: 48px;
	padding: 10px 14px !important;
	font-family: var(--f-body, "Commissioner", sans-serif) !important;
	font-size: 1rem !important;
	color: var(--ink, #1b2a24) !important;
	box-shadow: none !important;
	width: 100%;
}

html body .betterdocs-wrapper .comment-form textarea {
	min-height: 130px;
	resize: vertical;
}

html body .betterdocs-wrapper .comment-form :is(input, textarea):focus {
	border-color: var(--teal, #2c746e) !important;
	outline: 3px solid rgba(44, 116, 110, 0.25) !important;
	outline-offset: 0 !important;
	box-shadow: none !important;
}

html body .betterdocs-wrapper .comment-form .submit,
html body .betterdocs-wrapper .comment-form input[type="submit"] {
	background: linear-gradient(135deg, #1a5546, #15453a 50%, #0e3a30) !important;
	border: 0 !important;
	border-radius: 999px !important;
	color: #fff !important;
	font-family: var(--f-body, "Commissioner", sans-serif) !important;
	font-weight: 700 !important;
	font-size: 1rem !important;
	letter-spacing: 0.005em;
	min-height: 52px;
	padding: 12px 26px !important;
	cursor: pointer;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 14px 30px -14px rgba(12, 47, 38, 0.9);
	transition: transform var(--dur-tap, 180ms) var(--ease-brand, ease);
}

html body .betterdocs-wrapper .comment-form .submit:hover,
html body .betterdocs-wrapper .comment-form input[type="submit"]:hover {
	transform: translateY(-2px);
}

html body .betterdocs-wrapper .comment-form p {
	margin-block: 0 18px !important;
}

/* =========================================================================
   8. Search modal
   ========================================================================= */

html body .betterdocs-search-modal-layout-1 .betterdocs-search-layout-1 {
	background-color: var(--ivory, #f7f3ea) !important;
}

html body .betterdocs-search-modal-layout-1 .betterdocs-search-layout-1 .search-header .search-heading {
	font-family: var(--f-display, "Fraunces", Georgia, serif) !important;
	font-weight: 500 !important;
	color: var(--forest, #15453a) !important;
	font-size: clamp(1.5rem, 3.4vw, 2.2rem) !important;
}

html body .betterdocs-search-modal-layout-1 .betterdocs-search-layout-1 .search-bar .search-button {
	background-color: var(--forest, #15453a) !important;
	border-radius: 999px !important;
	color: var(--on-dark, #fffdf8) !important;
	font-weight: 600 !important;
}

html body .betterdocs-search-wrapper .betterdocs-search-details {
	background-color: var(--paper, #fffdf8) !important;
	border-radius: var(--r, 14px) !important;
	box-shadow: var(--shadow-lg, 0 2px 6px rgba(12, 47, 38, 0.06), 0 24px 60px rgba(12, 47, 38, 0.14)) !important;
}

html body .betterdocs-search-wrapper .betterdocs-search-header {
	background-color: var(--paper, #fffdf8) !important;
	border-block-end: 1px solid var(--line, rgba(21, 69, 58, 0.16)) !important;
}

html body .betterdocs-search-wrapper .betterdocs-search-item-list {
	background-color: var(--paper, #fffdf8) !important;
	border-block-end: 1px solid var(--line, rgba(21, 69, 58, 0.16)) !important;
}

html body .betterdocs-search-wrapper .betterdocs-search-item-list:hover {
	background-color: var(--ivory, #f7f3ea) !important;
}

html body .betterdocs-search-wrapper .betterdocs-search-item-list .content-main h4 {
	color: var(--forest, #15453a) !important;
	font-family: var(--f-body, "Commissioner", sans-serif) !important;
	font-weight: 600 !important;
}

html body .betterdocs-search-wrapper .betterdocs-search-item-list .content-sub h5 {
	color: var(--muted, #4d5d56) !important;
}

/* =========================================================================
   9. The closing band
   ========================================================================= */

/* The band prints inside the theme's content wrapper, so it removes itself
   from that context and runs the full width of the page. */
html body #arabiclabth-content > .albd-closing {
	width: 100vw;
	max-width: 100vw;
	margin-inline: calc(50% - 50vw);
	padding-inline: max(16px, env(safe-area-inset-left));
}

/* The band is the site's closing component, so it takes `arabiclab-core`'s
   `.al-band`, `.al-h2`, `.al-lede`, `.al-btn` and `.al-btn__arrow` as they are.
   Only three things are adjusted here: the measure of the copy, the size of the
   gloss, and the fill of the one button. */
html body .albd-closing {
	text-align: center;
	background-color: var(--honey, #fff4dc);
}

html body .albd-closing .al-wrap {
	max-width: 640px;
	margin-inline: auto;
}

/* `.al-gloss` is a hero-scale word (up to 4.6rem). At the end of a page that is
   a full stop, not an opening line, so it drops to about two thirds. */
/* `.al-gloss` in `tokens.css` is gold on paper (2.2:1). On this band's honey
   ground `--gold-deep` measures 2.9:1, so the gold is deepened to #8a6520
   (4.85:1): still illumination, and now readable. */
html body .albd-closing .al-gloss {
	font-size: clamp(1.8rem, 4vw, 2.6rem);
	color: #8a6520;
	margin: 0 0 10px;
	opacity: 1;
}

html body .albd-closing .al-lede {
	max-width: 46ch;
	margin-inline: auto;
	margin-block: 12px 24px;
}

html body .albd-closing__actions {
	margin: 0;
}

/* The production site's primary button is a three-stop forest gradient with a
   soft green glow, not a flat fill; this band is the docs surface's only
   primary action, so it carries that treatment. The gold-filled variant and the
   36px arrow well come from `tokens.css` untouched. */
html body .albd-closing .al-btn--forest {
	background: linear-gradient(135deg, #1a5546, #15453a 50%, #0e3a30);
	color: #fff;
	border: 0;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 14px 30px -14px rgba(12, 47, 38, 0.9);
}

html body .albd-closing .al-btn--forest:hover {
	color: #fff;
}

/* =========================================================================
   10. Narrow screens
   ========================================================================= */

@media (max-width: 1024px) {

	html body .betterdocs-taxonomy-wrapper .betterdocs-content-wrapper,
	html body .betterdocs-single-wrapper .betterdocs-content-wrapper {
		display: block !important;
	}

	html body .betterdocs-taxonomy-wrapper .betterdocs-full-sidebar-left,
	html body .betterdocs-single-wrapper .betterdocs-full-sidebar-left,
	html body #betterdocs-sidebar-right {
		position: static !important;
		width: 100% !important;
		flex-basis: auto !important;
		margin-block-end: 24px;
	}

	html body .betterdocs-sidebar .betterdocs-sidebar-content {
		max-height: none;
	}

	html body #betterdocs-sidebar-right {
		margin-block-start: 32px;
	}

	html body .betterdocs-toc,
	html body .sticky-toc-container {
		border-block-start: 1px solid var(--line, rgba(21, 69, 58, 0.16)) !important;
		padding-block: 20px 0 !important;
		padding-inline: 0 !important;
	}

	/* Stacked under the article, each row is a touch target. */
	html body .betterdocs-toc .toc-list li a {
		padding-block: 12px !important;
	}
}

@media (max-width: 640px) {

	html body .betterdocs-docs-archive-wrapper .betterdocs-search-form-wrapper,
	html body .betterdocs-docs-archive-wrapper .betterdocs-search-modal-layout-1 .betterdocs-search-layout-1 {
		padding-block: 40px !important;
	}

	html body .betterdocs-wrapper .betterdocs-content-wrapper {
		padding-block: 32px !important;
	}

	html body .betterdocs-category-box-inner-wrapper,
	html body .betterdocs-category-box-inner-wrapper.layout-4 {
		grid-template-columns: 1fr !important;
	}
}

@media (prefers-reduced-motion: reduce) {

	html body .betterdocs-wrapper *,
	html body .albd-closing * {
		transition-duration: 1ms !important;
		animation-duration: 1ms !important;
	}

	html body .betterdocs-category-box-inner-wrapper .category-box:hover,
	html body .albd-closing .al-btn:hover {
		transform: none;
	}
}
