main.main-section .content {
    position: relative;
}

main.content {
    margin-block-start: var(--s2);
}

ul,
ol {
    display: flex;
    flex-direction: column;
    padding-inline-start: 1em;
}

/* Every-Layout customizations */

box-l.vertical-center {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Helpers */
._align\:text {
    display: inline-flex;
    vertical-align: middle;
}

/*
    Stack items should have no margin block end, due to the margin it adds .
    This can be overridden!
*/

stack-l > * {
    margin-block-end: 0;
}

/*
  link-buttons
 */

a.button {
    color: var(--bz-dark-blue);
    text-decoration-color: var(--bz-dark-blue);
}

/*
 article tags
 */

.updated-on-str {
    color: var(--bz-muted-ink);
    padding: 0 var(--s1);
    font-style: italic;
}

@media screen and (max-width: 991px) {
    .updated-on-str {
        padding-left: 0;
    }
}

.tag > a {
    font-weight: 550;
}

/* Tag pills (article meta) */
.meta cluster-l.tags {
    align-items: center;
}

a.tag.pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    background-color: var(--bz-light-grey);
    border: var(--bz-border-hairline) solid var(--bz-gray-light);
    color: var(--bz-green);
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    text-decoration: none;
    transition: var(--bz-transition);
}

a.tag.pill:hover {
    background-color: var(--bz-light-green);
    border-color: var(--bz-medium-green);
    color: var(--bz-dark-green);
    text-decoration: none;
}

/* Article byline: author headshot + name + title/bio */
.post-authors {
    width: 100%;
}

.post-author {
    align-items: center;
}

.post-author .author-photo-circle {
    text-decoration: none;
    flex-shrink: 0;
}

.post-author-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--s-6);
}

.post-author-name {
    font-family: var(--font-ui);
    font-size: 18px;
    line-height: 24px;
    font-weight: 600;
    color: var(--bz-dark-blue);
    text-decoration: none;
}

.post-author-name:hover {
    text-decoration: underline;
}

.post-author-title {
    color: var(--bz-muted-ink);
    font-size: 16px;
    line-height: 24px;
    margin: 0;
}

.post-author-bio {
    color: var(--bz-muted-ink);
    font-style: italic;
    font-size: var(--font-size-sm);
    line-height: 1.4;
    margin: 0;
    max-width: var(--measure);
}

.author-photo-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: var(--bz-medium-green);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--bz-dark-green);
    font-size: var(--font-size-2xl);
}

.author-photo-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-photo-circle.large {
    width: 96px;
    height: 96px;
    font-size: var(--font-size-3xl);
}

.author-photo-circle.small {
    width: 44px;
    height: 44px;
    font-size: var(--font-size-lg);
    flex: none;
}

/* Blog post meta row: reading time, tags, updated */
.post-meta-row {
    margin-block-end: var(--s-1);
}

.post-meta-row .reading-time {
    color: var(--bz-muted-ink);
    font-size: 14px;
    line-height: 20px;
}

.post-tags .tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    background-color: var(--bz-white);
    border: var(--bz-border-hairline) solid var(--bz-gray-light);
    font-family: var(--font-ui);
    font-size: 14px;
    line-height: 20px;
    transition: var(--bz-transition);
}

.post-tags .tag > a {
    color: var(--bz-green);
    font-weight: 500;
    text-decoration: none;
}

.post-tags .tag:hover {
    background-color: var(--bz-light-green);
    border-color: var(--bz-medium-green);
}

.post-tags .tag:hover > a {
    color: var(--bz-dark-green);
}

.author-card-link {
    color: var(--bz-dark-blue);
    text-decoration: none;
}

.author-card-link:hover {
    text-decoration: underline;
}

.author-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--s0);
    padding: var(--s1) 0;
}

.author-bio {
    color: var(--bz-muted-ink);
    font-style: italic;
    text-align: center;
    max-width: var(--measure);
}

.author-links a {
    font-weight: 550;
}

/* Site container: same width as the header. The outer box measures
   --body-measure at the root font, exactly like the nav's <center-l>
   (ch units follow the element's own font size); the inner box applies the
   nav container's max width and gutters, then restores the article font. */
.site-container {
    box-sizing: content-box;
    max-width: var(--body-measure);
    margin-inline: auto;
    font-size: var(--font-size);
}

.site-container > .site-container__inner {
    box-sizing: border-box;
    max-width: var(--site-max-width);
    margin-inline: auto;
    padding-inline: var(--site-gutter);
}

/* Inside a post, restore the article font the CTA inherited before */
.article .site-container > .site-container__inner {
    font-size: var(--article-font-size);
}

/* Section banner (home, /blog/): eyebrow, title, one-line intro */
.home-banner__inner {
    position: relative;
    z-index: var(--z2);
    padding-block: var(--s4) var(--s3);
}

.home-banner__inner .eyebrow {
    margin-block-end: var(--s-2);
}

.home-banner__intro {
    max-width: 40rem;
    margin-block-start: var(--s-1);
    color: var(--bz-muted-ink);
}

.home-banner__intro p {
    font-size: var(--article-font-size);
    line-height: var(--article-line-height);
}

/* CTA */
.blog-cta .call-learnings {
    font-size: var(--font-size-2xl);
}

.blog-cta .call-learnings > .learning {
    display: flex;
    gap: var(--s0);
    align-items: center;
}

.blog-cta .call-learnings > .learning > svg {
    width: 1.75cap;
    height: 1.75cap;
    vertical-align: middle;
    display: inline-block;
    flex-shrink: 0; /* Prevent icon from shrinking if text is long */
}

.blog-cta .call-learnings > .learning > p {
    vertical-align: middle;
    display: inline-block;
    font-size: var(--font-size-lg);
}

.blog-cta {
    position: relative;
    margin: var(--s7) auto 0;
    background-color: var(--bz-light-green);
    color: var(--bz-dark-blue);
    border-radius: var(--bz-radius-3xl);
}

.blog-cta.light {
    background-color: var(--bz-light-green);
}

.blog-cta > box-l {
    border-radius: var(--bz-radius-3xl);
}

.blog-cta cluster-l > box-l {
    background-color: transparent;
    border-radius: var(--bz-radius-xl);
    border: solid var(--bz-gray-light) var(--bz-border-hairline);
}

.blog-cta h2 {
    font-size: 40px;
    line-height: 52px;
}

.blog-cta .cta-box cover-l {
    z-index: 1;
}

/* CTA button */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 11px 18px 12px;

    border: solid var(--bz-medium-green) var(--bz-border-control);
    border-radius: var(--bz-radius-md);
    background-color: var(--bz-medium-green);
    color: var(--bz-dark-green);

    font-family: var(--font-ui);
    font-size: 18px;
    font-weight: 500;
    line-height: 20px;
    text-decoration: none;
    align-self: flex-start;
    cursor: pointer;
    transition: var(--bz-transition);
}

.cta-button:hover {
    background-color: var(--bz-dark-med-green);
    border-color: var(--bz-dark-med-green);
    color: var(--bz-dark-green);
    text-decoration: none;
}

/* CTA Waves in-front of footer */
.cta-illustration {
    margin-block-start: -80px !important;
    width: 100%;
    height: auto;
    max-height: 380px;
    margin-top: -80px;
    z-index: -1;
    position: relative;
    /*overflow: hidden*/
}

/* img-full for cta waves */
.img-full {
    object-fit: fill;
    width: 100%;
}

.blog-cta .bg-image {
    z-index: 0;
    position: absolute;
    right: 0;
    bottom: 0;
}

.blog-cta .bg-image > svg {
    z-index: 0;
    position: absolute;
    right: 0;
    bottom: 0;
}

.blog-cta a {
    color: var(--bz-dark-green);
    text-decoration: none;
}

/* Featured post */

.featured-post {
    background: var(--bz-white);
    border-radius: var(--bz-radius-xl);
    border: solid var(--bz-gray-light) var(--bz-border-hairline);
    overflow: hidden;
    transition: var(--bz-transition);
}

.featured-post a {
    color: var(--bz-dark-blue);
}

.featured-post:hover a {
    text-decoration: underline;
}

.featured-post .date {
    color: var(--bz-muted-ink);
}

.featured-post:hover {
    border-color: var(--bz-medium-green);
}

.featured-post box-l.side-content {
    font-size: 18px;
    line-height: 28px;
    border-bottom-right-radius: var(--bz-radius-xl);
    border-top-right-radius: var(--bz-radius-xl);
}

.featured-post-icon-label {
    color: var(--bz-green);
}

.featured-post frame-l {
    border-bottom-left-radius: var(--bz-radius-xl);
    border-top-left-radius: var(--bz-radius-xl);
}

/* Post listings */
.posts-list > grid-l stack-l,
.posts-list > grid-l stack-l > *:not(a):not(cluster-l) {
    height: 100%;
}

/* Post card (in listings) */

.post-card-parent {
    background: var(--bz-white);
    border-radius: var(--bz-radius-xl);
    border: none;
}

/* Needed to make this more specific, and extend height to max inc box border :'( */
box-l.post-card {
    box-sizing: border-box;
    height: 100%;
    background-color: var(--bz-white);
    border: solid var(--bz-gray-light) var(--bz-border-hairline);
    border-radius: var(--bz-radius-xl);
    transition: var(--bz-transition);
}

.post-card > stack-l {
    height: 100%;
}

.post-card frame-l {
    border-radius: var(--bz-radius-md);
}

.post-card > * {
    color: var(--bz-dark-blue);
}

box-l.post-card:hover {
    border-color: var(--bz-medium-green);
}

.post-details {
    height: 100%;
}

.post-details > stack-l {
    min-block-size: 15ex;
}

.post-details .card-title {
    font-family: var(--font-header);
    font-size: 25px;
    line-height: 38px;
    font-weight: 400;
}

.post-details .description p {
    font-size: 16px;
    line-height: 24px;
}

.post-details .date {
    color: var(--bz-muted-ink);
    font-size: 16px;
}

.post-card a {
    color: var(--bz-dark-blue);
}

.post-card a:hover .card-title {
    color: var(--bz-green);
}

/* Buttons: secondary by default (bonsai.io .button.secondary) */
box-l.button {
    font-family: var(--font-ui);
    font-size: 18px;
    font-weight: 500;
    line-height: 20px;
    padding: 11px 18px 12px;
    border-radius: var(--bz-radius-md);
    border: solid var(--bz-green) var(--bz-border-control);
    background-color: transparent;
    text-align: center;
    color: var(--bz-green);
    text-decoration: none;
    transition: var(--bz-transition);
}

box-l.button p {
    font-size: inherit;
    line-height: inherit;
}

a:hover > box-l.button,
box-l.button:hover {
    background-color: var(--bz-dark-med-green);
    border-color: var(--bz-dark-med-green);
    color: var(--bz-dark-green);
}

/* Primary button (bonsai.io .button) */
box-l.bg-light.button {
    background-color: var(--bz-medium-green);
    border-color: var(--bz-medium-green);
    color: var(--bz-dark-green);
}

/* White tile (author / tag grids): a card, not a button */
box-l.button.white {
    padding: var(--s1);
    background-color: var(--bz-white);
    border: solid var(--bz-gray-light) var(--bz-border-hairline);
    border-radius: var(--bz-radius-xl);
    color: var(--bz-dark-blue);
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
}

a:hover > box-l.button.white,
box-l.button.white:hover {
    background-color: var(--bz-white);
    border-color: var(--bz-medium-green);
    color: var(--bz-dark-blue);
}

.author-card > center-l:nth-child(2) {
    font-family: var(--font-ui);
    font-size: 18px;
    font-weight: 600;
}

.author-card > center-l:last-child,
.tags-item > center-l:last-child {
    color: var(--bz-muted-ink);
    font-size: 14px;
}

.tags-item a {
    color: var(--bz-green);
    font-family: var(--font-ui);
    font-size: 18px;
    font-weight: 500;
    text-decoration: none;
}

.tags-item a:hover {
    color: var(--bz-dark-green);
}

a.all-tags > box-l.button.white {
    border: solid var(--bz-green) var(--bz-border-control);
    border-radius: var(--bz-radius-md);
    padding: 11px 18px 12px;
    color: var(--bz-green);
    font-weight: 500;
    font-size: 18px;
}

a.all-tags:hover > box-l.button.white {
    background-color: var(--bz-dark-med-green);
    border-color: var(--bz-dark-med-green);
    color: var(--bz-dark-green);
}

box-l.button icon-l.start {
    margin-inline-start: var(--s0);
}

/* Listing pagination */
.paginator {
    font-family: var(--font-ui);
    font-size: 18px;
    margin-block-start: var(--s3);
}

.paginator a.page-link {
    color: var(--bz-green);
    font-weight: 500;
    text-decoration: none;
}

.paginator a.page-link:hover {
    color: var(--bz-dark-green);
}

.paginator .page-link.disabled,
.paginator .page-numbers {
    color: var(--bz-muted-ink);
}

/* Article pagination */
nav.article-navigation {
    font-family: var(--font-ui);
}

nav.article-navigation a {
    color: var(--bz-green);
    font-weight: 500;
}

nav.article-navigation .right > sidebar-l {
    text-align: right;
}

/* Admonitions (left rule kept; tinted panel, hairline under title) */

.admonition {
    display: block;
    border-radius: var(--bz-radius-md);
    border-left: 3px solid var(--bz-green);
    background-color: var(--bz-light-grey);
}

.admonition .admonition-title {
    border-bottom: var(--bz-border-hairline) solid var(--bz-gray-light);
}

.admonition.info,
.admonition.tip,
.admonition.default {
    background-color: var(--bz-light-green);
}

.admonition.info .admonition-title,
.admonition.tip .admonition-title,
.admonition.default .admonition-title {
    border-bottom-color: var(--bz-medium-green);
}

.admonition.note {
    background-color: var(--bz-light-grey);
}

.admonition-icon-info,
.admonition-icon-tip,
.admonition-icon-note,
.admonition-icon-default {
    color: var(--bz-green);
}

.admonition.todo {
    border-left-color: var(--color-orange);
}

.admonition-icon-todo {
    color: var(--color-orange);
}

.admonition.warning {
    border-left-color: var(--color-warning);
    background-color: var(--color-warning-light);
}

.admonition.warning .admonition-title {
    border-bottom-color: var(--color-warning-border);
}

.admonition-icon-warning {
    color: var(--color-warning-icon);
}

/* Footer elements */

footer {
    background-color: var(--bz-dark-blue);
    color: var(--bz-white);
    padding: var(--s2) 0;
    font-size: 16px;
    line-height: 24px;
}

footer h2 {
    color: var(--bz-white);
}

footer a {
    color: var(--bz-medium-green);
    font-family: var(--font-ui);
    font-size: 18px;
    line-height: 28px;
    text-decoration: none;
    transition: var(--bz-transition);
}

footer a:hover {
    color: var(--bz-white);
    text-decoration: none;
}

footer p a {
    font-size: inherit;
    line-height: inherit;
}

footer .subhead {
    font-family: var(--font-ui);
    font-size: 18px;
    line-height: 28px;
    font-weight: 700;
    color: var(--bz-white);
}

footer .footer-content {
    padding: var(--s3) 0;
}

.social-links {
    color: var(--bz-medium-green);
}

cluster-l.social-links > div {
    display: flex;
}

.footer-social {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background-color: var(--bz-medium-green);
    color: var(--bz-dark-green);
    transition: var(--bz-transition);
}

.footer-social:hover {
    background-color: var(--bz-white);
}

footer .footer-social > center-l > div {
    display: block;
    margin-inline: 0;
    width: 100%;
    height: 100%;
}

footer .footer-social > center-l cover-l {
    display: flex;
    flex-direction: column;
}

footer .footer-social svg {
    color: var(--bz-dark-green);
}

footer .footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.btn {
    display: inline-block;
    padding: 11px 18px 12px;
    background-color: var(--bz-medium-green);
    color: var(--bz-dark-green);
    border: var(--bz-border-control) solid var(--bz-medium-green);
    border-radius: var(--bz-radius-md);
    font-family: var(--font-ui);
    font-weight: 500;
    cursor: pointer;
    transition: var(--bz-transition);
}

.btn:hover {
    background-color: var(--bz-dark-med-green);
    border-color: var(--bz-dark-med-green);
}

/* HubSpot form styling */

.hbspt-form > form > fieldset {
    max-width: none;
}

.hbspt-form .legal-consent-container {
    font-size: var(--font-size-sm);
    margin-bottom: 24px;
}

.hbspt-form label,
.hbspt-form .input {
    width: 100%;
    box-sizing: border-box;
    margin: 0 !important;
}

.hbspt-form input {
    box-sizing: border-box;
}

@media screen and (min-width: 1317px) {
    .hbspt-form .form-columns-2,
    .hbspt-form .form-columns-1 {
        display: flex;
        width: 100%;
        gap: var(--s1);
        max-width: none;
        justify-content: space-between;
    }

    .hbspt-form .form-columns-2:has(.hs-error-msg),
    .hbspt-form .form-columns-1:has(.hs-error-msg) {
        padding-bottom: 34px;
    }
}

.hbspt-form .hs-input {
    width: 100% !important;
    height: 48px;
    border: var(--bz-border-control) solid var(--bz-medium-green);
    background-color: var(--bz-white) !important;
    border-radius: var(--bz-radius-md);
    font-family: var(--font-ui) !important;
    margin-bottom: 24px;
    padding: 8px 16px;
    font-size: 18px;
    line-height: 1;
    transition: all 0.2s;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.hbspt-form .hs-button {
    border: var(--bz-border-control) solid var(--bz-medium-green) !important;
    background-color: var(--bz-medium-green) !important;
    color: var(--bz-dark-green) !important;
    text-align: center;
    border-radius: var(--bz-radius-md);
    justify-content: center;
    align-items: center;
    padding: 11px 18px 12px;
    font-family: var(--font-ui) !important;
    font-size: 18px !important;
    font-weight: 500;
    line-height: 20px !important;
    transition: all 0.2s ease-in-out;
}

.hbspt-form .hs-button:hover {
    border-color: var(--bz-dark-med-green) !important;
    background-color: var(--bz-dark-med-green) !important;
    color: var(--bz-dark-green) !important;
    text-decoration: none;
    cursor: pointer;
}

.hbspt-form .input textarea {
    box-sizing: border-box;
    min-height: 96px;
}

.hbspt-form .hs-fieldtype-phonenumber {
    display: flex;
    flex-direction: column;
    position: relative;
}

.hbspt-form .hs-fieldtype-phonenumber label {
    order: -1;
}

.hbspt-form .hs-fieldtype-phonenumber .input {
    order: 0;
}

.hbspt-form .hs-fieldtype-phonenumber .hs-field-desc {
    margin-bottom: 0;
    font-size: 12px;
    font-style: italic;
    line-height: 14px;
    position: relative;
    bottom: var(--s1);
    order: 1;
}

.hbspt-form :not(.hs-company).hs-form-field {
    width: 100% !important;
}

.hbspt-form .hs-input.error {
    border: var(--bz-border-control) solid var(--color-red);
}

.hbspt-form ul.hs-error-msgs {
    list-style: none;
    padding: 0;
    position: relative;
    color: var(--color-red);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
}

.hbspt-form .hs-error-msg {
    font-weight: 600;
}

.submitted-message {
    background-color: var(--bz-light-green);
    border-radius: var(--bz-radius-xl);
    padding: 1.25rem;
    text-align: center;
}

.hs_recaptcha {
    visibility: hidden;
    height: 0px;
}

.hs-input:focus-visible {
    outline: none;
    color: initial;
    border-color: var(--bz-green);
}

/* Waves illustrations from header (see partials/home_banner.html) */
.waves-illustr {
    z-index: var(--z1);
    object-fit: cover;
    width: 100%;
    height: auto;
    margin-top: -1px;
    margin-bottom: -1px;
    overflow: hidden;
}

.waves-illustr.dark-bg {
    z-index: 0;
    opacity: 0.1;
}

.waves-illustr.dark-bg.platform {
    object-position: 50% 0%;
    max-height: 17vw;
    margin-top: -60px;
}

.waves-illustr.position\:absolute {
    position: absolute;
}

.waves-illustr.home-hero {
    z-index: -1;
    height: 32.708vw;
    margin-top: -136px;
    margin-bottom: 0;
}

.waves-illustr.z-0 {
    z-index: 0;
}

.waves-img {
    object-fit: cover;
    object-position: 50% 50%;
    width: 101%;
    max-width: none;
    position: relative;
    height: 100%;
    margin-top: 0;
    margin-left: -0.5%;
    margin-right: -0.5%;
}

/* Keep box-l padding left-right, but override tb */
.home-banner {
    position: relative;
}

box-l.pad-tb-only {
    padding-left: 0;
    padding-right: 0;
}

box-l.pad-rl-only {
    padding-top: 0;
    padding-bottom: 0;
}

box-l.no-pad-bottom {
    padding-bottom: 0;
}

.bg.light-green-gradient {
    background-color: var(--bz-light-grey);
    width: 100%;
    margin-top: -1px;
    margin-bottom: -1px;
    overflow: hidden;
}

/* Blog post / article Show */
stack-l.article > .title-section {
    background-color: var(--bz-light-grey);
    border-bottom: var(--bz-border-hairline) solid var(--bz-gray-light);
}

/* Date as an eyebrow-style kicker above the title */
stack-l.article .title-section .date {
    color: var(--bz-muted-ink);
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 600;
    line-height: 14px;
    letter-spacing: .2px;
    text-transform: uppercase;
}

stack-l.article .title-section .article-title {
    margin-block-start: var(--s-1);
}

.banner-section {
    position: relative;
}

.article {
    font-size: var(--article-font-size);
    line-height: var(--article-line-height);
}

.post p,
.post li {
    font-size: var(--article-font-size);
    line-height: var(--article-line-height);
}

center-l.content {
    z-index: var(--z1);
}

.content {
    position: relative;
}

.post h2,
.post h3,
.post h4 {
    margin-block-start: var(--s3);
}

/* In-article headings, sized by the --article-h* tokens. A body-level h1 is
   demoted to h2 size so it never competes with the title band. */
.post h1,
.post h2 {
    font-family: var(--font-header);
    font-weight: 400;
    font-size: var(--article-h2-size);
    line-height: var(--article-h2-line);
}

.post h3 {
    font-family: var(--font-header);
    font-weight: 700;
    font-size: var(--article-h3-size);
    line-height: var(--article-h3-line);
}

.post h4 {
    font-size: var(--article-h4-size);
    line-height: var(--article-h4-line);
}

.post h5 {
    font-size: var(--article-h5-size);
    line-height: var(--article-h5-line);
}

.post h6 {
    font-size: var(--article-h6-size);
    line-height: var(--article-h6-line);
}

.post img {
    border-radius: var(--bz-radius-xl);
}

/* Plain markdown blockquote: serif italic with a medium-green rule */
.post stack-l > blockquote {
    margin-inline: 0;
    padding-inline-start: var(--s1);
    border-left: var(--bz-border-nav) solid var(--bz-medium-green);
    font-family: var(--font-header);
    font-style: italic;
}

.post stack-l > blockquote p {
    font-size: 22px;
    line-height: 34px;
}

.content li {
    position: relative;
}

.content li:not(:only-child):not(:last-child):has(> *) > * {
    margin-block-end: var(--s1);
}

.content li > * + * {
    font-size: inherit;
    margin-block-start: var(--s1);
}

.z--1 {
    z-index: var(--z-1);
}
.z-0 {
    z-index: var(--z0);
}

.z-1 {
    z-index: var(--z1);
}

/* List Blocks */
.content ol > li > *:first-child:not(pre),
.content ol > li > *:first-child:not(pre) > * {
    display: inline;
}

.content ul > li > *:first-child:not(pre),
.content ul > li > *:first-child:not(pre) > * {
    display: inline;
}

/* List Blocks' code blocks */
.content ol > li > pre {
    padding-inline-start: var(--s1);
}

.content pre {
    border-radius: var(--border-radius);
    padding-inline-start: var(--s1);
    padding-block-start: var(--s1);
    padding-block-end: var(--s1);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.content frame-l {
    border-radius: var(--border-radius);
}

/* large code blocks */
.content pre > code {
    display: inline-block;
    font-size: var(--font-size);
    background-color: inherit;
    word-break: normal;
    white-space: pre;
    border-radius: var(--border-radius);
    line-height: var(--line-height-sm);
}

.content *:not(pre) > code {
    background-color: var(--color-light-grey);
    word-break: break-word;
    white-space: pre-wrap;
    border-radius: var(--border-radius);
    padding: var(--s-7) var(--s-5);
}

/* blockquote shortcode: bonsai.io quote panel */
.content center-l:has(> blockquote) {
    background-color: var(--bz-light-green);
    border-radius: var(--bz-radius-3xl);
    margin-block-start: 2rem;
    margin-block-end: 2rem;
}

.content blockquote {
    margin-inline-start: 1rem;
    margin-inline-end: 1rem;
    margin-block-start: 1rem;
    margin-block-end: 1rem;
}

.content blockquote > p {
    display: block;
}

.content blockquote > box-l.content > p {
    text-align: center;
    font-family: var(--font-header);
    font-size: 32px;
    line-height: 52px;
    letter-spacing: -.3px;
    padding: 0 var(--s-1);
    font-style: italic;
}

.content blockquote span.quotations {
    font-family: var(--font-header);
    font-weight: 700;
    font-size: var(--font-size-7xl);
    line-height: 0.8;
    color: var(--bz-green);
}

blockquote + center-l.author {
    font-size: 18px;
    line-height: 28px;
    color: var(--bz-muted-ink);
    padding-block-end: var(--s1);
}

.content blockquote span.quotations.quotation-end {
    position: relative;
    bottom: -1ex;
}

.content blockquote p:last-child:has(> span.quotations) {
    text-align: right;
}

.content blockquote p:last-child:has(> span.quotations) > span.quotations {
    display: inline-block;
}

blockquote + center-l.author {
    text-align: center;
}

blockquote + center-l.author.with-dash:before {
    content: "-";
}

/* Koan */

.content center-l.koan > box-l.content > p {
    text-align: center;
    font-family: var(--font-header);
    font-size: var(--font-size-2xl);
    line-height: var(--line-height-3xl);
    padding: 0 var(--s-1);
    font-style: italic;
    margin-bottom: 25px;
}

.content center-l.koan > box-l > img {
    width: 256px;
}

@media screen and (max-width: 1680px) {
    /* padding for small screens (.site-container brings its own gutters) */
    .article main.content > *:not(.site-container) {
        padding-left: var(--s3);
        padding-right: var(--s3);
    }

    .article .title-section > * {
        padding-left: var(--s3);
        padding-right: var(--s3);
    }

    .article .article-navigation > * {
        margin-left: var(--s3);
        margin-right: var(--s3);
    }

    footer .footer-content > * {
        margin-left: var(--s3);
        margin-right: var(--s3);
    }

    .home-banner:not(.main-section *) > center-l,
    center-l.content[max="var(--body-measure)"]:not(.main-section *) {
        padding-left: var(--s3);
        padding-right: var(--s3);
    }

    main.main-section .home-banner > *:not(.site-container) {
        margin-left: var(--s3);
        margin-right: var(--s3);
    }

    main.main-section .content > * {
        margin-left: var(--s3);
        margin-right: var(--s3);
    }

    main.main-section .content .featured-post sidebar-l > cover-l {
        min-height: 100%;
    }

    main.main-section .content .featured-post sidebar-l > cover-l > a {
        margin-block: 0;
    }
}

@media screen and (max-width: 991px) {
    /* footer */
    /* NOTE: this is so brittle, but the only way to avoid !important for now */
    footer [data-i="Stack-var(--s3)false"] > * + * {
        margin-block-start: var(--s1);
    }
    /* NOTE: this is also very brittle, for the same reason */
    footer [data-i="Sidebar-left42ch50%var(--s7)"] {
        gap: var(--s3);
    }
    /* Small screen handling of blockquote */

    .content .blockquote blockquote {
        display: flex;
        margin-inline: var(--s-1);
        gap: var(--s-1);
        margin-block-start: var(--s-1);
        margin-block-end: var(--s-1);
    }


    .content .blockquote blockquote > :last-child {
        align-self: end;
    }

    .content blockquote span.quotations {
        font-size: var(--font-size-3xl);
        line-height: normal;
    }

    .content blockquote > p,
    .content blockquote > box-l.content {
        text-align: center;
        display: inline;
        padding: 0;
        margin: 0;
    }
    .content blockquote > box-l.content > p {
        padding: 0;
        font-size: 24px;
        line-height: 34px;
    }

    .content center-l.koan > box-l.content > p {
        font-size: var(--font-size-lg);
        padding: 0;
    }
}

@media screen and (max-width: 767px) {
    /* Tighter page gutters on phones (16px, per bonsai.io) */
    .article main.content > *:not(.site-container),
    .article .title-section > *,
    .home-banner:not(.main-section *) > center-l,
    center-l.content[max="var(--body-measure)"]:not(.main-section *) {
        padding-left: var(--s0);
        padding-right: var(--s0);
    }

    footer .footer-content > *,
    main.main-section .home-banner > *:not(.site-container),
    main.main-section .content > *,
    .article .article-navigation > * {
        margin-left: var(--s0);
        margin-right: var(--s0);
    }
}
