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

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

/* 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(--font-color);
    text-decoration-color: var(--font-color);
}

/*
 article tags
 */

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

/* 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;
    background-color: var(--color-brand-original-light);
    border-radius: var(--border-radius);
}

.blog-cta.light {
    background-color: var(--color-brand-light);
    border-radius: var(--border-radius);
}

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

.blog-cta cluster-l > box-l {
    background-color: transparent;
    border-radius: var(--border-radius);
    border: solid #000 var(--border-thin);
}

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

/* 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 .bg-light {
    background-color: var(--color-brand-light);
}

.blog-cta a {
    color: var(--font-color);
    text-decoration: none;
    font-weight: 600;
}

.blog-cta:hover a {
    font-weight: 600;
}

.blog-cta a:hover .bg-light {
    color: var(--font-color);
}

/* Featured post */

.featured-post {
    background: var(--background-color);
    border-radius: var(--border-radius);
    border: solid var(--color-brand-original-light) var(--border-thin);
}

.featured-post a {
    color: var(--font-color);
}

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

.featured-post .date {
    color: var(--color-light-grey);
}

.featured-post:hover {
    border-radius: var(--border-radius);
    border: solid var(--color-brand-light) var(--border-thin);
    box-shadow: 0 0 20px #2837461a;
}

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

.featured-post-icon-label {
    color: var(--color-purple-bright);
}

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

/* 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(--background-color);
    border-radius: var(--border-radius);
    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%;
    border: solid var(--color-brand-original-light) var(--border-thin);
    border-radius: var(--border-radius);
    box-shadow: 0 0 20px #2837461a;
}

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

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

.post-card > * {
    color: var(--font-color);
}

.post-card:hover {
    border-radius: var(--border-radius);
    border: solid var(--color-brand-light) var(--border-thin);
}

.post-details {
    height: 100%;
}

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

.post-details .date {
    color: var(--color-grey);
}

.post-card .read-more {
    color: var(--font-color);
    font-weight: 600;
}

.post-card:hover a .read-more {
    font-weight: 600;
}

.post-card a {
    color: var(--font-color);
}

/* Buttons */
box-l.button {
    font-weight: 600;
    border-radius: var(--s-3);
    border: solid var(--color-brand-dark) var(--border-sm);
    box-shadow: 0 0 20px #2837461a;
    stroke-width: 2.5px;
    text-align: center;
    color: var(--font-color);
    text-decoration-color: var(--font-color);
}

.button.white {
    background-color: white;
}

box-l.bg-light.button:hover {
    background-color: var(--color-brand);
}

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

/* Article pagination */
nav.article-navigation .right > sidebar-l {
    text-align: right;
}

/* Admonitions */

.admonition {
    display: block;
}

.admonition.info {
    background-color: var(--color-bright-complement);
    border-radius: var(--border-radius);
    border-left: 3px solid var(--color-bright);
}

.admonition.info .admonition-title {
    border-bottom: 3px dashed var(--color-bright);
}

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

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

.admonition.todo .admonition-title {
    border-bottom: 3px dashed var(--color-orange);
}

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

.admonition.tip {
    border-left: 3px solid var(--color-brand);
    border-radius: var(--border-radius);
    background: var(--color-success-light);
}

.admonition.tip .admonition-title {
    border-bottom: 3px dashed var(--color-brand);
}

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

.admonition.note {
    border-left: 3px solid var(--color-bright);
    border-radius: var(--border-radius);
    background: var(--color-info-light);
}

.admonition.note .admonition-title {
    border-bottom: 3px dashed var(--color-bright);
}

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

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

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

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

.admonition.default {
    border-left: 3px solid var(--color-bright);
    border-radius: var(--border-radius);
    background: var(--color-bright-complement);
}

.admonition.default .admonition-title {
    border-bottom: 3px dashed var(--color-bright);
}

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

/* Footer elements */

footer {
    background-color: var(--color-dark);
    color: white;
    padding: var(--s2) 0;
    font-size: var(--font-size);
}

footer .subhead {
    font-size: var(--s1);
}

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

.social-links {
    color: var(--color-brand);
}

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

.footer-social {
    width: 32px;
    height: 32px;
    border-radius: 100%;
    background-color: var(--color-brand-light);
    color: var(--color-brand-dark);
}

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(--color-brand-dark);
}

.btn {
    display: inline-block;
    padding: var(--s-1) var(--s0);
    background-color: var(--color-brand);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
}

/* 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: 1.5px solid #9fd2b4;
    background-color: #fff !important;
    border-radius: 6px;
    font-family: Whitneyhtf, sans-serif !important;
    margin-bottom: 24px;
    padding: 8px 16px;
    font-size: 18px;
    line-height: 1;
    transition: all .2s;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.hbspt-form .hs-button {
    border: 1.5px solid var(--color-brand) !important;
    background-color: var(--color-brand) !important;
    color: var(--color-brand-dark) !important;
    text-align: center;
    border-radius: 6px;
    justify-content: center;
    align-items: center;
    padding: 11px 18px 12px;
    font-family: Whitneyhtf, sans-serif !important;
    font-size: 18px !important;
    font-weight: 500;
    line-height: 20px !important;
    transition: all .2s ease-in-out;
}

.hbspt-form .hs-button:hover {
    border-color: var(--color-brand-dark) !important;
    background-color: var(--color-brand-dark) !important;
    color: var(--color-brand-dark) !important;
    text-decoration: none;
}

.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: 1.5px solid #EB2C4C;
}

.hbspt-form ul.hs-error-msgs {
    list-style: none;
    padding: 0;
    position: relative;
    color: #EB2C4C;
    font-family: Whitneyhtf book, sans-serif;
    font-size: 14px;
    font-weight: 600;
}

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

.submitted-message {
    background-color: var(--color-brand-light);
    border-radius: 8px;
    padding: 1.25rem;
    text-align: center;
}

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

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


/* 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: .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: -.5%;
    margin-right: -.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-image: linear-gradient(270deg, #e0f4e3, #fff);
    width: 100%;
    margin-top: -1px;
    margin-bottom: -1px;
    overflow: hidden;
}

/* Blog post / article Show */
stack-l.article > .title-section {
    background-color: var(--color-light);
}

stack-l.article .date {
    color: var(--color-grey);
}

.banner-section {
    position: relative;
}

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

.article p {
    line-height: 1.75;
}

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

.content {
    position: relative;
}

article .content p {
    position: relative;
    font-size: var(--font-size-xl);
    line-height: var(--line-height-xl);
    margin-block-end: var(--s1);
}

.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 */
.content center-l:has(> blockquote) {
    background-color: var(--color-lightish);
    border-radius: var(--border-radius);
    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-size: var(--font-size-2xl);
    line-height: var(--line-height-2xl);
    padding: 0 var(--s-1);
    font-style: italic;
}

.content blockquote span.quotations {
    font-weight: 600;
    font-size: var(--font-size-7xl);
    line-height: 0.8;
}

.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-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: 1317px) {

    /* padding for small screens */
    .article main.content > * {
        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);
    }

    main.main-section .home-banner > * {
        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);
    }
    /* posts */

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

    /* 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 center-l:has(> blockquote) {
        background-color: var(--color-lightish);
        border-radius: var(--border-radius);

    }

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

    .content blockquote span.quotations {
        font-weight: 600;
        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: var(--font-size-lg);
    }

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