/* ==========================================================================
   Grow, Leaf Doctor, Glossary, articles and the plain reference pages

   Same type as the rest of the site: League Gothic for page headings, Archivo
   for everything else. Hooked after base.css and library.css, which it overrides.
   ========================================================================== */

/* Page headings ------------------------------------------------------------ */

.bud-reference-header,
.bud-archive-header {
	margin: clamp(1rem, 2vw, 1.5rem) 0 1.5rem;
	padding: 0;
	border: 0;
}

.bud-reference-header::after,
.bud-archive-header::after {
	display: none;
}

.bud-title,
.bud-archive-header h1 {
	margin: 0 0 0.5rem;
	font-family: var(--bud-face);
	font-size: clamp(2.5rem, 5vw, 3.75rem);
	font-weight: 400;
	line-height: 1;
	letter-spacing: 0;
	text-transform: uppercase;
	color: #fff;
}

.bud-standfirst,
.bud-definition {
	max-width: 46rem;
	font-family: var(--bud-sans);
	font-size: 1.1rem;
	line-height: 1.5;
	color: #dfe4df;
}

.bud-reference-header .bud-eyebrow {
	display: flex;
	flex-wrap: wrap;
	gap: 0.2rem 0.9rem;
	margin: 0 0 0.35rem;
	padding: 0;
	font-size: 0.84rem;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
}

.bud-reference-header .bud-eyebrow a {
	color: var(--bud-lime);
	text-decoration: none;
}

.bud-read-date {
	margin: 0.6rem 0 0;
	font-size: 0.88rem;
	color: #aeb7af;
}

/* Reading layout: the article, a rail beside it ----------------------------- */

.bud-read {
	padding-bottom: clamp(2rem, 4vw, 3.5rem);
}

.bud-read-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: clamp(2rem, 4vw, 3.5rem);
	align-items: start;
}

.bud-read-layout .bud-body {
	max-width: none;
	font-size: 1rem;
	line-height: 1.7;
}

.bud-read-layout .bud-body figure:not(.alignleft, .alignright) {
	margin-inline: 0;
}

.bud-read-layout .bud-body figure:not(.alignleft, .alignright) img,
.bud-read-layout .bud-body > p > img:only-child:not(.alignleft, .alignright) {
	display: block;
	width: 100%;
}

.bud-read-layout .bud-body :is(th, td) {
	overflow-wrap: normal;
}

.bud-body h2 {
	margin-top: 2rem;
	padding-bottom: 0;
	border-bottom: 0;
	font-size: 1.4rem;
}

.bud-body img,
.bud-body iframe,
.bud-body video {
	max-width: 100%;
	height: auto;
}

/* A wide table scrolls inside itself rather than pushing the page sideways. */
.bud-body table {
	display: block;
	max-width: 100%;
	overflow-x: auto;
}

/* As tall as the article, so what's in it can follow the reader down. */
.bud-rail {
	display: flex;
	flex-direction: column;
	align-self: stretch;
	gap: 1.75rem;
	min-width: 0;
}

/* Takes the spare height, which leaves anything after it at the article's end. */
.bud-rail-stay {
	flex: 1 0 auto;
}

.bud-rail h2 {
	margin: 0 0 0.5rem;
	padding: 0;
	border: 0;
	font-family: var(--bud-face);
	font-size: 1.5rem;
	font-weight: 400;
	line-height: 1;
	text-transform: uppercase;
	color: #fff;
}

.bud-rail ol,
.bud-rail ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.bud-rail li {
	border-top: 1px solid var(--bud-line);
}

.bud-rail li a {
	display: block;
	padding: 0.5rem 0;
	font-size: 0.92rem;
	line-height: 1.3;
	color: #dfe4df;
	text-decoration: none;
}

.bud-rail li a:hover,
.bud-rail-all:hover {
	color: var(--bud-lime);
}

.bud-rail-all {
	display: inline-block;
	margin-top: 0.5rem;
	font-size: 0.88rem;
	font-weight: 600;
	color: #fff;
	text-decoration: none;
}

.bud-rail-follow {
	position: sticky;
	top: 96px;
	display: grid;
	gap: 1.75rem;
}

/* Too short a screen to hold the contents and the ad at once */
@media (max-height: 759px) {
	.bud-rail-stay .bud-rail-follow {
		position: static;
	}
}

.bud-rail-more {
	padding: 1.1rem 1.2rem 1.2rem;
	border-radius: 14px;
	background: var(--bud-surface);
}

.bud-rail-more h2 {
	margin-bottom: 0.75rem;
}

.bud-rail-more li a {
	padding-block: 0.6rem;
}

.bud-toc-phone {
	display: none;
}

.bud-triage-card {
	padding: 1rem 1.1rem;
	border: 0;
	border-radius: 14px;
	background: var(--bud-surface);
	font-size: 0.92rem;
	line-height: 1.45;
}

.bud-triage-card ol {
	counter-reset: none;
}

.bud-triage-card ol li {
	padding: 0.5rem 0;
}

.bud-triage-card ol li a,
.bud-triage-card p a {
	display: inline;
	padding: 0;
	color: var(--bud-lime);
}

.bud-triage-card p {
	margin: 0.5rem 0 0;
}

.bud-article-tail .bud-triage-card {
	margin-bottom: 1.5rem;
}

.bud-reassure {
	max-width: 44rem;
	border-radius: 12px;
}

/* Tiles for guides ---------------------------------------------------------- */

.bud-guide-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
	gap: 0.625rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bud-guide-grid .bud-index-item {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
}

.bud-guide-grid .bud-index-item[hidden] {
	display: none;
}

.bud-guide {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	border-radius: 14px;
	background: var(--bud-surface);
	text-decoration: none;
	transition: background 0.15s ease;
}

.bud-guide:hover {
	background: var(--bud-surface-elevated);
}

.bud-guide-art {
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
}

.bud-guide-art img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.25s ease;
}

.bud-guide:hover .bud-guide-art img {
	transform: scale(1.03);
}

.bud-guide-art.is-blank {
	display: grid;
	place-items: center;
	background: var(--bud-surface-elevated);
}

.bud-guide-art.is-blank img {
	width: 20%;
	height: auto;
	opacity: 0.35;
}

.bud-guide-copy {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	padding: 0.9rem 1rem 1.05rem;
}

.bud-guide em {
	font-size: 0.8rem;
	font-style: normal;
	font-weight: 700;
	color: var(--bud-lime);
}

.bud-guide strong {
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.25;
	color: #fff;
}

.bud-guide:hover strong {
	color: var(--bud-lime);
}

.bud-guide-copy > span {
	font-size: 0.9rem;
	line-height: 1.4;
	color: #aeb7af;
}

/* A guide or article with a featured image */
.bud-article-hero {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	margin: clamp(0.75rem, 2vw, 1.25rem) 0 clamp(1.5rem, 3vw, 2.25rem);
	overflow: hidden;
	border-radius: 18px;
	background: var(--bud-surface);
}

.bud-article-hero .bud-reference-header {
	align-self: center;
	margin: 0;
	padding: clamp(1.5rem, 4vw, 3.5rem);
}

.bud-article-hero-picture {
	min-height: 320px;
}

.bud-article-hero-picture img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.bud-rail a.has-thumb {
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr);
	gap: 0.7rem;
	align-items: center;
}

.bud-rail a.has-thumb img {
	display: block;
	width: 56px;
	height: 56px;
	border-radius: 8px;
	object-fit: cover;
}

.bud-learn-section {
	margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}

.bud-learn-section h2 {
	margin: 0 0 0.75rem;
	padding: 0;
	border: 0;
	font-family: var(--bud-face);
	font-size: clamp(1.6rem, 2.4vw, 2rem);
	font-weight: 400;
	line-height: 1;
	text-transform: uppercase;
	color: #fff;
}

/* Topic links, plain text along a rule */
.bud-link-row {
	display: flex;
	gap: 1.25rem;
	margin: 0 0 1.5rem;
	border-bottom: 1px solid var(--bud-line-strong);
	overflow-x: auto;
	scrollbar-width: none;
}

.bud-link-row a {
	flex: none;
	padding: 0.5rem 0;
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
	font-size: 0.92rem;
	font-weight: 600;
	color: #c9d0ca;
	text-decoration: none;
}

.bud-link-row a:hover {
	color: #fff;
}

.bud-link-row a[aria-current] {
	border-bottom-color: var(--bud-lime);
	color: #fff;
}

/* Grow, by stage of the grow */
.bud-stage-path {
	position: sticky;
	top: var(--bud-header-stuck, 77px);
	z-index: 40;
	margin-bottom: 1.25rem;
	background: rgba(13, 15, 14, 0.94);
	backdrop-filter: blur(8px);
}

.bud-stage {
	margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
	scroll-margin-top: 3.25rem;
}

.bud-stage-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.15rem 0.85rem;
	margin-bottom: 0.9rem;
}

.bud-learn-section .bud-stage-head h2 {
	margin: 0;
	font-size: clamp(1.75rem, 2.4vw, 2.1rem);
}

.bud-stage-head b {
	margin-right: 0.1em;
	font-weight: 400;
	color: var(--bud-lime);
}

.bud-stage-head p {
	margin: 0;
	font-size: 0.95rem;
	color: var(--bud-muted);
}

/* The guide to start with, then the rest of the stage */
.bud-stage-split {
	display: grid;
	grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
	gap: clamp(1.25rem, 2.5vw, 2rem);
	align-items: start;
}

.bud-stage-feature {
	display: block;
	overflow: hidden;
	border-radius: 14px;
	background: var(--bud-surface);
	text-decoration: none;
	transition: background 0.15s ease;
}

.bud-stage-feature:hover {
	background: var(--bud-surface-elevated);
}

.bud-stage-feature img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.bud-stage-feature-copy {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	padding: 0.85rem 1rem 1rem;
}

.bud-stage-feature em {
	font-size: 0.8rem;
	font-style: normal;
	font-weight: 700;
	color: var(--bud-lime);
}

.bud-stage-feature strong {
	font-size: 1.1rem;
	font-weight: 700;
	line-height: 1.25;
	color: #fff;
}

.bud-stage-feature:hover strong {
	color: var(--bud-lime);
}

.bud-stage-feature-copy > span {
	font-size: 0.9rem;
	line-height: 1.4;
	color: #aeb7af;
}

.bud-stage-rows {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
	column-gap: clamp(1.25rem, 2.5vw, 2rem);
	border-top: 1px solid var(--bud-line);
}

.bud-stage-rows a {
	display: flex;
	align-items: flex-start;
	gap: 0.7rem;
	padding: 0.65rem 0;
	border-bottom: 1px solid var(--bud-line);
	text-decoration: none;
}

.bud-stage-rows img {
	flex: none;
	width: 56px;
	height: 56px;
	border-radius: 8px;
	object-fit: cover;
}

.bud-stage-rows span {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	min-width: 0;
}

.bud-stage-rows strong {
	font-size: 0.98rem;
	font-weight: 700;
	line-height: 1.3;
	color: #fff;
}

.bud-stage-rows em {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	font-size: 0.85rem;
	font-style: normal;
	line-height: 1.35;
	color: #aeb7af;
}

.bud-stage-rows a:hover strong {
	color: var(--bud-lime);
}

/* Reference has nothing to start with, so its list takes the width of the page */
.bud-stage.is-reference .bud-stage-split {
	display: block;
}

@media (max-width: 760px) {
	.bud-stage-split {
		grid-template-columns: minmax(0, 1fr);
	}
}


/* The way on from a guide */
.bud-guide-steps {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.5rem;
	margin: clamp(1.75rem, 3vw, 2.5rem) 0;
}

.bud-guide-steps-stage {
	display: flex;
	grid-column: 1 / -1;
	align-items: center;
	gap: 0.6rem;
	margin-bottom: 0.25rem;
	font-weight: 700;
	color: #fff;
	text-decoration: none;
}

.bud-guide-steps-stage b {
	font-family: var(--bud-face);
	font-size: 1.5rem;
	font-weight: 400;
	line-height: 1;
	color: var(--bud-lime);
}

.bud-guide-steps-stage i {
	margin-left: auto;
	font-size: 0.9rem;
	font-style: normal;
	color: var(--bud-lime);
}

.bud-guide-steps-stage:hover span {
	color: var(--bud-lime);
}

.bud-guide-step {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	padding: 0.9rem 1rem;
	border-radius: 14px;
	background: var(--bud-surface);
	text-decoration: none;
	transition: background 0.15s ease;
}

.bud-guide-step:hover {
	background: var(--bud-surface-elevated);
}

.bud-guide-step em {
	font-size: 0.82rem;
	font-style: normal;
	font-weight: 700;
	color: #aeb7af;
}

.bud-guide-step strong {
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.25;
	color: #fff;
}

.bud-guide-step.is-next {
	grid-column: 2;
	text-align: right;
}

.bud-guide-step.is-next em {
	color: var(--bud-lime);
}

@media (max-width: 640px) {
	.bud-guide-steps {
		grid-template-columns: minmax(0, 1fr);
	}

	/* On a phone, the way forward comes first */
	.bud-guide-step.is-next {
		grid-column: auto;
		order: -1;
		text-align: left;
	}

	.bud-guide-steps-stage {
		order: -2;
	}
}

/* Grow's way into Leaf Doctor: the paper of its drawings, a stethoscope, and a leaf. */
.bud-leaf-banner {
	position: relative;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 1.25rem;
	min-height: 132px;
	margin: clamp(2rem, 4vw, 3rem) 0 clamp(1.75rem, 3vw, 2.5rem);
	padding: 1.4rem clamp(9rem, 18vw, 13rem) 1.4rem 1.5rem;
	overflow: hidden;
	border-radius: 18px;
	background: #f3f1e8;
	color: #161916;
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bud-leaf-banner:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.bud-leaf-banner-badge {
	position: relative;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: #161916;
	color: var(--bud-lime);
}

.bud-leaf-banner-text {
	position: relative;
	z-index: 1;
}

.bud-leaf-banner strong {
	display: block;
	font-family: var(--bud-face);
	font-size: clamp(1.7rem, 2.6vw, 2.3rem);
	font-weight: 400;
	line-height: 1.05;
	text-transform: uppercase;
	color: #161916;
}

.bud-leaf-banner-text > span {
	display: block;
	margin-top: 0.25rem;
	font-size: 0.95rem;
	color: #4a4f49;
}

.bud-leaf-banner-go {
	position: relative;
	z-index: 1;
	padding: 0.7rem 1.15rem;
	border-radius: 999px;
	background: #161916;
	font-size: 0.92rem;
	font-weight: 700;
	white-space: nowrap;
	color: #fff;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.bud-leaf-banner:hover .bud-leaf-banner-go,
.bud-leaf-banner:focus-visible .bud-leaf-banner-go {
	background: var(--bud-lime);
	color: #161916;
}

/* The drawing peeks in from the right edge, leaning in. */
.bud-leaf-banner img {
	position: absolute;
	top: 50%;
	right: -1.5rem;
	width: clamp(10rem, 20vw, 14rem);
	height: auto;
	transform: translateY(-46%) rotate(-12deg);
	pointer-events: none;
}

/* Topics, as buttons to pick from */
.bud-topic-tiles {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr));
	gap: 0.625rem;
}

.bud-topic-tiles a {
	position: relative;
	display: grid;
	gap: 0.15rem;
	padding: 1rem 2.75rem 1rem 1.1rem;
	border: 1px solid var(--bud-line-strong);
	border-radius: 14px;
	background: var(--bud-surface);
	color: #fff;
	text-decoration: none;
	transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}

.bud-topic-tiles a::after {
	content: "\2192";
	position: absolute;
	top: 50%;
	right: 1.1rem;
	font-size: 1.1rem;
	color: var(--bud-muted);
	transform: translateY(-50%);
	transition: color 0.15s ease, transform 0.15s ease;
}

.bud-topic-tiles a:hover,
.bud-topic-tiles a:focus-visible {
	border-color: var(--bud-lime);
	background: #1b211d;
	transform: translateY(-1px);
}

.bud-topic-tiles a:hover::after,
.bud-topic-tiles a:focus-visible::after {
	color: var(--bud-lime);
	transform: translate(3px, -50%);
}

.bud-topic-tiles strong {
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.25;
}

.bud-topic-tiles span {
	font-size: 0.84rem;
	color: var(--bud-muted);
}

/* Search & 404 --------------------------------------------------------------- */

.bud-archive-header .bud-search-form,
.bud-404-search .bud-search-form {
	max-width: 38rem;
	margin-top: 1.1rem;
}

.bud-search-form input[type="search"] {
	min-width: 0;
}

.bud-404-header {
	margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}

.bud-explore-tiles {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
	gap: 0.75rem;
}

.bud-explore-tiles > a {
	display: flex;
	align-items: flex-start;
	gap: 0.9rem;
	padding: 1.05rem 1.15rem;
	border: 1px solid var(--bud-line-strong);
	border-radius: 14px;
	background: var(--bud-surface);
	color: #fff;
	text-decoration: none;
	transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}

.bud-explore-tiles > a:hover,
.bud-explore-tiles > a:focus-visible {
	border-color: var(--bud-lime);
	background: #1b211d;
	transform: translateY(-1px);
}

.bud-explore-icon {
	flex: none;
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 10px;
	background: rgba(163, 230, 53, 0.12);
	color: var(--bud-lime);
	transition: background-color 0.15s ease, color 0.15s ease;
}

.bud-explore-tiles > a:hover .bud-explore-icon,
.bud-explore-tiles > a:focus-visible .bud-explore-icon {
	background: var(--bud-lime);
	color: #0b0d0b;
}

.bud-explore-icon svg {
	display: block;
	width: 22px;
	height: 22px;
}

.bud-explore-copy {
	display: grid;
	gap: 0.2rem;
	min-width: 0;
}

.bud-explore-copy strong {
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.25;
	color: #fff;
	transition: color 0.15s ease;
}

.bud-explore-tiles > a:hover .bud-explore-copy strong,
.bud-explore-tiles > a:focus-visible .bud-explore-copy strong {
	color: var(--bud-lime);
}

.bud-explore-copy span {
	font-size: 0.85rem;
	line-height: 1.4;
	color: var(--bud-muted);
}

.bud-search-cats {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	margin-bottom: 1.5rem;
}

.bud-search-cats > a {
	flex: none;
	min-height: 38px;
	padding: 0.35rem 0.9rem;
	border: 1px solid var(--bud-line-strong);
	border-radius: 999px;
}

.bud-search-cats > a[aria-current] {
	border-color: var(--bud-lime);
}

.bud-search-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr));
	gap: 0.85rem;
}

.bud-search-card {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	border: 1px solid var(--bud-line-strong);
	border-radius: 14px;
	background: var(--bud-surface);
	overflow: hidden;
	transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}

.bud-search-card:hover {
	border-color: var(--bud-lime);
	background: #1b211d;
	transform: translateY(-1px);
}

.bud-search-card-main {
	display: flex;
	align-items: flex-start;
	gap: 0.95rem;
	padding: 1.05rem 1.15rem;
	color: inherit;
	text-decoration: none;
	flex: 1;
}

.bud-search-thumb {
	flex: none;
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	border-radius: 10px;
	background: var(--charcoal);
	border: 1px solid var(--bud-line);
	overflow: hidden;
}

.bud-search-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.bud-search-thumb.is-strain img {
	padding: 0.3rem;
	object-fit: contain;
}

.bud-search-thumb.is-symbol b {
	font-family: var(--plate-serif);
	font-size: 1.35rem;
	font-weight: 900;
	letter-spacing: -0.03em;
	color: var(--bud-lime);
}

.bud-search-thumb.is-icon {
	color: var(--bud-lime);
}

.bud-search-thumb.is-icon svg {
	display: block;
	width: 26px;
	height: 26px;
}

.bud-search-copy {
	min-width: 0;
	flex: 1;
}

.bud-search-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 0.5rem;
	margin-bottom: 0.35rem;
}

.bud-search-badge {
	display: inline-block;
	padding: 0.12rem 0.5rem;
	border-radius: 999px;
	background: rgba(163, 230, 53, 0.14);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--bud-lime);
}

.bud-search-chip {
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--bud-muted);
}

.bud-search-chip + .bud-search-chip::before {
	content: "\00b7";
	margin-right: 0.4rem;
	color: #6d756e;
}

.bud-search-copy h2 {
	margin: 0;
	font-family: var(--bud-sans);
	font-size: 1.08rem;
	font-weight: 700;
	line-height: 1.25;
	color: #fff;
	transition: color 0.15s ease;
}

.bud-search-card-main:hover .bud-search-copy h2 {
	color: var(--bud-lime);
}

.bud-search-copy p {
	margin: 0.35rem 0 0;
	font-size: 0.88rem;
	line-height: 1.45;
	color: #c9d0ca;
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.bud-search-sublinks {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
	padding: 0.55rem 1.15rem;
	border-top: 1px solid var(--bud-line);
	background: rgba(13, 15, 14, 0.45);
	font-size: 0.8rem;
	font-weight: 600;
}

.bud-search-sublinks a {
	color: var(--bud-muted);
	text-decoration: none;
}

.bud-search-sublinks a:hover {
	color: var(--bud-lime);
}

.bud-search-empty {
	padding: 1.5rem 0 2rem;
}

.bud-search-empty h2 {
	margin: 0 0 0.4rem;
	font-family: var(--bud-face);
	font-size: clamp(1.75rem, 2.6vw, 2.2rem);
	font-weight: 400;
	line-height: 1;
	text-transform: uppercase;
	color: #fff;
}

.bud-search-empty > p {
	max-width: 44rem;
	margin: 0 0 1.5rem;
	font-size: 1rem;
	line-height: 1.5;
	color: #dfe4df;
}

.bud-search-empty > p a {
	color: var(--bud-lime);
	font-weight: 600;
}

/* Phones and tablets ---------------------------------------------------------- */

@media (max-width: 980px) {
	.bud-read-layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.bud-rail .bud-toc {
		display: none;
	}

	.bud-rail-follow {
		position: static;
	}

	.bud-toc-phone:not([hidden]) {
		display: block;
		max-width: 44rem;
		margin-bottom: 1.25rem;
		padding: 0.7rem 1rem;
		border-radius: 12px;
		background: var(--bud-surface);
	}

	.bud-toc-phone summary {
		font-weight: 700;
		color: #fff;
		cursor: pointer;
	}

	.bud-toc-phone ol {
		margin: 0.5rem 0 0;
		padding: 0;
		list-style: none;
	}

	.bud-toc-phone a {
		display: block;
		padding: 0.45rem 0;
		color: #dfe4df;
		text-decoration: none;
	}

}

@media (max-width: 760px) {
	.bud-article-hero {
		grid-template-columns: minmax(0, 1fr);
	}

	.bud-article-hero-picture {
		order: -1;
		min-height: 0;
		aspect-ratio: 16 / 10;
	}

	/* Badge beside the words, the button under them, the leaf tucked in the corner. */
	.bud-leaf-banner {
		grid-template-columns: auto minmax(0, 1fr);
		gap: 0.9rem 1rem;
		padding: 1.25rem 1.25rem 1.35rem;
	}

	.bud-leaf-banner-badge {
		width: 52px;
		height: 52px;
	}

	.bud-leaf-banner-go {
		grid-column: 1 / -1;
		justify-self: start;
	}

	.bud-leaf-banner img {
		top: auto;
		right: -2rem;
		bottom: -2.5rem;
		width: 8.5rem;
		opacity: 0.9;
		transform: rotate(-12deg);
	}

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