/* Article layout of the blog posts that use the "Custom Blog Post" template: header, contents list, flexible
   blocks, subscribe band, FAQ, related articles and demo band. Values come from the live site's blog post
   stylesheet (Custom CSS & JS "Blog CSS"), tidied. One responsive step at 475px (phones), FAQ steps at 980 and 767. */

:root {
    --feature-max: 1340px;
    --feature-gap-small: 64px;
    --feature-gap-medium: 96px;
    --feature-gap-large: 128px;
}

.post-feature {
    background: var(--color-cream);
}

/* ==========================================================================
   Header
   ========================================================================== */
.post-feature__head {
    padding-top: 160px;
}

.post-feature__tag {
    display: flex;
    justify-content: center;
    margin-bottom: 48px;
}

.tag-label {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 165px;
    padding: 2px 10px 0;
    background: var(--color-rust);
    font-family: var(--font-bold);
    font-size: 16px;
    text-transform: uppercase;
    color: var(--color-cream);
}

.post-feature__title {
    width: 80%;
    max-width: var(--feature-max);
    margin: 0 auto 96px;
    padding-bottom: 10px;
    font-family: var(--font-regular);
    font-size: clamp(59px, 6vw, 87px);
    font-weight: 400;
    line-height: 1.06;
    letter-spacing: 0.5px;
    text-align: center;
    color: var(--color-ink);
}

.post-feature__image,
.post-feature__meta,
.toc {
    width: 80%;
    max-width: var(--feature-max);
    margin: 0 auto;
}

.post-feature__image {
    margin-bottom: 71px; /* 64px plus the inline image gap live has under the picture */
}

.post-feature__image img {
    display: block;
    width: 100%;
    height: auto;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 5.85% 100%, 0 91%);
}

.post-feature__meta {
    display: flex;
    justify-content: space-between;
}

.post-feature__author {
    display: flex;
    align-items: center;
    gap: 30px;
}

.post-feature__author .avatar {
    width: 84px;
    height: 84px;
    border-radius: 500px;
}

.post-feature__author-info {
    color: var(--color-ink);
}

.post-feature__author-name {
    font-family: var(--font-medium);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
}

.post-feature__author-role {
    font-family: var(--font-regular);
    font-size: 16px;
    line-height: 1.4;
}

.post-feature__share-date {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    min-height: 120px;
}

.post-feature__share {
    display: flex;
    gap: 15px;
}

.post-feature__share-link {
    display: flex;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    transition: transform 0.5s;
}

.post-feature__share-link img {
    display: flex;
    width: 32px;
    height: 32px;
}

.post-feature__share-link:hover {
    transform: scale(0.95);
}

.post-feature__date {
    font-family: var(--font-medium);
    font-size: 16px;
    font-weight: 500;
    color: var(--color-slate);
}

.post-feature__copied {
    font-family: var(--font-medium);
    font-size: 14px;
    color: var(--color-slate);
}

.toc__list {
    width: fit-content;
    margin-bottom: 128px;
    list-style: none;
}

.toc__link {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 50px;
    border-bottom: 1px solid var(--color-steel);
    font-family: var(--font-bold);
    color: var(--color-ink);
}

.toc__link svg {
    margin-right: 8px;
}

.toc__link svg path {
    transition: fill 0.2s;
}

.toc__link:hover {
    color: var(--color-rust);
}

.toc__link:hover svg path {
    fill: var(--color-rust);
}

/* ==========================================================================
   Blocks: shared width and spacing
   ========================================================================== */
.leaderboard,
.copy-text,
.card-grid,
.quote,
.border-text,
.counters,
.post-button,
.figure-block,
.labels,
.bullet-list,
.steps,
.images-grid,
.two-cards,
.related {
    width: 80%;
    max-width: var(--feature-max);
    margin: 0 auto;
}

.post-content .margin-small { margin-bottom: var(--feature-gap-small); }

.post-content .margin-medium { margin-bottom: var(--feature-gap-medium); }

.post-content .margin-large { margin-bottom: var(--feature-gap-large); }

/* ==========================================================================
   Leaderboard
   ========================================================================== */
.leaderboard {
    margin-bottom: clamp(100px, 14vh, 128px);
}

.leaderboard__date {
    display: none;
}

.leaderboard p {
    font-family: var(--font-light);
    font-size: 45px;
    font-weight: 300;
    line-height: 1.4;
    color: var(--color-ink);
}

.leaderboard a {
    position: relative;
    border-bottom: 2px solid var(--color-rust);
    color: inherit;
}

.leaderboard p:has(.small-bold) {
    margin-bottom: 24px;
    padding: 0;
    font-family: var(--font-bold);
    font-size: 18px;
    line-height: 1.33;
}

.leaderboard--rule {
    padding-top: 30px;
    border-top: 4px solid var(--color-rust);
}

/* ==========================================================================
   Copy text
   ========================================================================== */
.copy-text {
    display: flex;
    flex-direction: column;
    margin-bottom: clamp(40px, 4.4vh, 64px);
}

.copy-text h2 {
    width: 100%;
    margin-bottom: 20px;
    padding-bottom: 10px;
    font-family: var(--font-regular);
    font-size: clamp(42px, 2.9vw, 57px);
    font-weight: 400;
    line-height: 1.12;
    color: var(--color-ink);
}

.copy-text h2:not(:first-child) {
    margin-top: 40px;
}

.copy-text h3 {
    margin: 20px 0;
    padding-bottom: 10px;
    font-family: var(--font-bold);
    font-size: 24px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--color-ink);
}

.copy-text h5 {
    margin-bottom: 24px;
    padding-bottom: 10px;
    font-family: var(--font-bold);
    font-size: 28px;
    line-height: 1.2;
    color: var(--color-rust);
}

.copy-text p,
.copy-text ul {
    margin-bottom: 1lh;
    padding: 0;
    font-family: var(--font-regular);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--color-ink);
}

.copy-text ul {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.copy-text li {
    position: relative;
    display: inline-block;
    padding-left: 28px;
}

.copy-text li::before,
.border-text--flag li::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 0;
    width: 12px;
    height: 12px;
    background: var(--color-rust);
}

.copy-text strong {
    font-family: var(--font-bold);
    font-weight: 700;
}

.copy-text a {
    position: relative;
    border-bottom: 2px solid var(--color-rust);
    color: var(--color-ink);
}

.copy-text span[style*="color: #676c79"] {
    font-size: 16px;
}

.copy-text span[style*="color: #676c79"] a {
    border-width: 1px;
    border-color: var(--color-slate);
}

.copy-text table {
    border-collapse: collapse;
}

.copy-text table strong {
    font-family: var(--font-bold);
}

.copy-text th {
    font-family: var(--font-light);
    font-weight: 100;
    text-transform: uppercase;
}

.copy-text td,
.copy-text th {
    padding: 10px 12px;
}

.copy-text td {
    font-size: 18px;
}

.copy-text code {
    padding: 40px;
    background: #aab4be;
}

.copy-text .big-bold {
    font-size: 22px;
    line-height: 1.5;
}

.copy-text .half-col {
    width: 50%;
}

.copy-text .half-col ul {
    flex-flow: row wrap;
}

.copy-text .half-col ul li {
    display: flex;
    width: calc(50% - 8px);
}

.copy-text .four-col br {
    display: none;
}

.copy-text > :last-child {
    margin-bottom: 0;
    padding-bottom: 0;
}

/* ==========================================================================
   Card grid
   ========================================================================== */
.card-grid {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(40px, 4.4vh, 64px) 40px;
    margin-bottom: clamp(40px, 4.4vh, 64px);
}

.card-grid__item {
    display: flex;
    gap: 16px;
    width: calc(50% - 20px);
}

.card-grid__mark {
    min-width: 12px;
    height: 12px;
    background: var(--color-rust);
}

.card-grid__body {
    margin-top: -2px;
}

.card-grid__title {
    margin-top: -2px;
    padding-bottom: 10px;
    font-family: var(--font-bold);
    font-size: clamp(16px, 0.9375vw, 18px);
    font-weight: 400;
    line-height: 1.4;
    color: var(--color-ink);
}

.card-grid__body p {
    font-family: var(--font-regular);
    font-size: clamp(16px, 0.9375vw, 18px);
    line-height: 1.4;
    color: var(--color-ink);
}

/* ==========================================================================
   Quote and framed text
   ========================================================================== */
.quote,
.border-text {
    display: flex;
    gap: 25px;
    margin-bottom: clamp(100px, 14vh, 128px);
}

.quote--right,
.border-text--right {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.quote__image img,
.border-text__image img {
    width: 25vw;
    max-width: 360px;
    height: 100%;
}

/* live leaves the framed-text picture inline, so its line box adds the 7px descender gap under it */
.border-text__image img { display: inline; }

.quote__image img {
    object-fit: cover;
}

.quote__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 32px;
    max-width: 85%;
}

.quote__text {
    font-family: "quincy-cf", serif; /* licensed Adobe font, not shipped with the theme (live loads no file for it either) */
    font-size: 33px;
    font-style: italic;
    font-weight: 400;
    line-height: 1.2;
    color: var(--color-ink);
}

.quote__author {
    font-family: var(--font-regular);
    font-size: 18px;
    line-height: 1.4;
    color: var(--color-slate);
}

.quote__author--avatar {
    display: flex;
    align-items: center;
    gap: 20px;
}

.quote__avatar {
    width: 64px;
    border-radius: 500px;
}

.quote__name {
    font-family: var(--font-bold);
    font-weight: 400;
    color: var(--color-rust);
}

.border-text__box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: calc(100% - 385px);
    border: 1px solid var(--color-ink);
}

.border-text__text {
    width: 90%;
    font-family: var(--font-bold);
    font-size: 18px;
    font-weight: 300;
    line-height: 1.3;
    color: var(--color-ink);
}

.border-text__text a {
    border-bottom: 2px solid var(--color-rust);
    color: var(--color-ink);
}

.border-text--black .border-text__box {
    border: 0;
    background: var(--color-ink);
}

.border-text--black .border-text__text {
    color: var(--color-steel);
}

.border-text--full .border-text__image {
    display: none;
}

.border-text--full .border-text__box {
    width: 100%;
    max-width: 100%;
    padding: 70px 96px;
}

.border-text--full .border-text__text {
    width: 100%;
}

.border-text--flag {
    gap: 40px;
}

.border-text--flag ul {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.border-text--flag li {
    position: relative;
    display: inline-block;
    padding-left: 28px;
}

.border-text--flag .border-text__box {
    display: flex;
    width: 31%;
    max-width: 31%;
    border: 0;
}

.border-text--flag .border-text__image {
    width: 65%;
}

.border-text--flag .border-text__text {
    width: 100%;
    font-family: var(--font-regular);
}

.border-text--flag .border-text__image img {
    width: 100%;
    max-width: 100%;
}

/* ==========================================================================
   Counters, button
   ========================================================================== */
.counters {
    margin: clamp(100px, 14vh, 128px) auto;
}

.counters__grid {
    display: flex;
    justify-content: center;
    gap: clamp(56px, 5.5vw, 80px);
    padding: 60px 0;
    border: 1px solid var(--color-ink);
}

.counters__number {
    font-family: var(--font-medium);
    font-size: clamp(77px, 6vw, 87px);
    font-weight: 500;
    line-height: 1;
    color: var(--color-rust);
}

.counters__text {
    font-family: var(--font-regular);
    font-size: clamp(16px, 0.9375vw, 18px);
    line-height: 1.4;
    color: var(--color-ink);
}

.post-button {
    margin-bottom: clamp(40px, 4.4vh, 64px);
}

.post-button--spaced {
    margin-bottom: clamp(100px, 14vh, 128px);
}

.post-button__link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 356px;
    height: 55px;
    border: 1px solid var(--color-steel);
    border-radius: 50px;
    font-family: var(--font-bold);
    color: var(--color-ink);
    transition: border-color 0.5s;
}

.post-button__link:hover {
    border-color: var(--color-rust);
}

/* ==========================================================================
   Subscribe band (Formidable form 7)
   ========================================================================== */
.subscribe {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 128px 0;
    padding: 96px 0;
    background: var(--color-ink);
}

.subscribe__title {
    margin-bottom: 20px;
    padding-bottom: 10px;
    font-family: var(--font-regular);
    font-size: clamp(42px, 2.9vw, 57px);
    font-weight: 400;
    line-height: 1.12;
    text-align: center;
    color: var(--color-cream);
}

.subscribe__text {
    margin-bottom: 45px;
    font-family: var(--font-regular);
    font-size: clamp(16px, 0.9375vw, 18px);
    line-height: 1.4;
    color: var(--color-cream);
}

.subscribe .frm_forms {
    width: 100%;
    max-width: fit-content;
}

.subscribe form#form_subscribe {
    padding: 0;
    border: 0;
}

.subscribe form#form_subscribe fieldset {
    padding: 0;
}

.subscribe form#form_subscribe .frm_fields_container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.subscribe form#form_subscribe .form-field,
.subscribe form#form_subscribe .sub-email,
.subscribe form#form_subscribe .subscribe-btn {
    margin: 0;
}

.subscribe form#form_subscribe .sub-email {
    position: relative;
}

.subscribe form#form_subscribe .sub-email input {
    box-sizing: border-box;
    width: 320px;
    height: 55px;
    padding: 20px;
    border-radius: 50px;
    background-color: var(--color-cream);
    font-family: var(--font-bold);
    font-size: 18px;
    color: var(--color-ink);
}

.subscribe form#form_subscribe .sub-email input::placeholder {
    opacity: 1;
    font-size: 18px;
    color: var(--color-ink);
}

.subscribe form#form_subscribe .sub-email input:focus {
    background-color: var(--color-white);
}

.subscribe form#form_subscribe .sub-email input[aria-invalid="true"] {
    border: 3px solid var(--color-rust);
}

.subscribe form#form_subscribe button.frm_button_submit {
    height: 56px;
    margin: 0;
    padding: 0 24px;
    border: 1px solid transparent;
    border-radius: 50px;
    background: var(--color-rust);
    box-shadow: none;
    font-family: var(--font-bold);
    font-size: 18px;
    color: var(--color-cream);
}

.subscribe form#form_subscribe button.frm_button_submit:hover {
    border-color: var(--color-rust);
    background: transparent;
}

.subscribe form#form_subscribe .frm_error {
    position: absolute;
    top: -33px;
    display: flex;
    padding-left: 32px;
    font-family: var(--font-regular);
    font-size: 18px;
    line-height: 24px;
    color: var(--color-rust);
}

.subscribe form#form_subscribe .frm_error::before {
    content: "";
    position: absolute;
    left: 0;
    width: 22px;
    height: 22px;
    background: url("../images/form-error.png") center / contain no-repeat;
}

/* the "You're on the list." message that replaces the form after a signup (the Formidable stylesheet is off, so it
   kept the body ink on the ink band) */
.subscribe .frm_message,
.subscribe .frm_message :is(h3, p) {
    color: var(--color-cream);
    text-align: center;
}

/* ==========================================================================
   Figure with caption, labels, list, steps, images, two cards
   ========================================================================== */
.figure-block {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.figure-block__image img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Inside the lightbox link the picture stays inline, which leaves the small gap live has under it. */
.figure-block__image a img {
    display: inline-block;
}

.figure-block__caption p {
    margin: 0;
    padding: 0;
    font-family: var(--font-regular);
    font-size: 16px;
    line-height: 1.2;
    color: var(--color-slate);
}

.figure-block__caption a {
    color: var(--color-rust);
    text-decoration: underline;
}

.labels__title,
.bullet-list__title {
    margin-bottom: 24px;
    font-family: var(--font-bold);
    font-size: 28px;
    line-height: 1.2;
    color: var(--color-rust);
}

.labels__rows {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.labels__row {
    display: flex;
    align-items: center;
    gap: 26px;
}

.labels__label {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 171px;
    height: 64px;
    padding: 0;
    background: var(--color-slate);
    font-family: var(--font-bold);
    font-size: 24px;
    line-height: 1;
    color: var(--color-cream);
}

.labels__heading {
    padding: 0;
    font-family: var(--font-bold);
    font-size: 22px;
    line-height: 1.27;
}

.labels__body p {
    font-family: var(--font-regular);
    font-size: 18px;
    line-height: 1.33;
}

.labels__body a {
    border-bottom: 1px solid var(--color-rust);
    color: var(--color-ink);
}

.bullet-list__items {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 80px;
    list-style: none;
}

.bullet-list__item {
    position: relative;
    display: flex;
    align-items: center;
    width: calc(50% - 40px);
    padding-left: 28px;
    font-family: var(--font-regular);
    font-size: 18px;
    line-height: 1.33;
    color: var(--color-ink);
}

.bullet-list__item::before {
    content: "";
    position: absolute;
    left: 0;
    width: 12px;
    height: 12px;
    background: var(--color-rust);
}

.steps__heading {
    margin-bottom: 64px;
    padding: 0;
    font-family: var(--font-regular);
    font-size: clamp(42px, 2.9vw, 57px);
    font-weight: 400;
    line-height: 1.12;
    color: var(--color-ink);
}

.steps__row {
    display: flex;
    gap: 26px;
}

.steps__item {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.steps__number {
    font-family: var(--font-medium);
    font-size: 87px;
    letter-spacing: 0.5px;
    line-height: 1;
    color: var(--color-rust);
}

.steps__text p {
    font-family: var(--font-regular);
    font-size: 18px;
    line-height: 1.33;
}

.images-grid__row {
    display: flex;
    flex-wrap: wrap;
}

.two-cards__intro p {
    margin-bottom: 32px;
    font-family: var(--font-regular);
    font-size: 18px;
    line-height: 1.33;
    color: var(--color-ink);
}

.two-cards__row {
    display: flex;
    gap: 24px;
}

.two-cards__item {
    width: 50%;
}

.two-cards__number {
    margin-bottom: 24px;
    font-family: var(--font-medium);
    font-size: 87px;
    font-weight: 500;
    line-height: 1;
    color: var(--color-slate);
}

.two-cards__title {
    padding-bottom: 10px;
    font-family: var(--font-bold);
    font-size: 28px;
    line-height: 1.2;
    color: var(--color-rust);
}

.two-cards__text p {
    font-family: var(--font-regular);
    font-size: 18px;
    line-height: 1.33;
    color: var(--color-ink);
}

.two-cards__text a {
    border-bottom: 2px solid var(--color-rust);
    color: var(--color-ink);
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.post-faq {
    position: relative;
    width: 100%;
    padding: 0 0 250px;
    background: var(--color-cream);
    color: var(--color-ink);
}

.post-faq::before,
.post-faq::after {
    content: "";
    position: absolute;
    z-index: 999;
    width: 50%;
    height: 63px;
    background: var(--color-steel);
    transform: scaleY(-1);
}

.post-faq::before {
    right: 0;
    bottom: 0;
    clip-path: polygon(5% 0, 100% 0, 100% 100%, 0 100%);
}

.post-faq::after {
    bottom: 63px;
    left: 0;
    clip-path: polygon(0 0, 100% 0, 95% 100%, 0 100%);
}

.post-faq__inner {
    width: 80%;
    max-width: var(--feature-max);
    margin: 0 auto;
}

.post-faq__label {
    margin: 0 0 64px;
    padding: 0;
    border: 0;
    font-family: var(--font-bold);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    text-transform: uppercase;
    color: var(--color-ink);
}

.post-faq__title {
    width: 100%;
    margin-bottom: 20px;
    padding: 0;
    font-family: var(--font-medium);
    font-size: clamp(42px, 2.9vw, 57px);
    font-weight: 500;
    line-height: 1.12;
    color: var(--color-ink);
}

.post-faq__intro {
    margin-bottom: 60px;
}

.post-faq__intro p {
    margin-bottom: 1lh;
    padding: 0;
    font-family: var(--font-regular);
    font-size: 18px;
    line-height: 1.4;
    color: var(--color-ink);
}

.post-faq__list {
    width: auto;
    max-width: 80%;
    margin-right: auto;
}

.post-faq__item {
    border-top: 1px solid var(--color-steel);
}

.post-faq__item:last-child {
    border-bottom: 1px solid var(--color-steel);
}

.post-faq__button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    width: 100%;
    min-height: 48px;
    padding: 10px 16px 10px 0;
    border: 0;
    background: transparent;
    font: inherit;
    text-align: left;
    color: var(--color-ink);
    cursor: pointer;
}

.post-faq__question {
    padding: 0;
    font-family: var(--font-medium);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: -0.25px;
    color: var(--color-ink);
}

.post-faq__icon {
    position: relative;
    flex: 0 0 14px;
    width: 14px;
    height: 14px;
}

.post-faq__icon span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 1.5px;
    background: var(--color-ink);
    transform: translate(-50%, -50%);
    transition: transform 0.25s ease;
}

.post-faq__icon span:last-child {
    transform: translate(-50%, -50%) rotate(90deg);
}

.post-faq__item.is-open .post-faq__icon span:last-child {
    transform: translate(-50%, -50%) rotate(0deg);
}

.post-faq__answer {
    overflow: hidden;
}

.post-faq__answer-inner {
    max-width: 96%;
    padding: 0 0 10px;
    font-family: var(--font-regular);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--color-ink);
}

.post-faq__answer-inner a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: var(--color-rust);
}

.post-faq__answer-inner p {
    margin: 0 0 1lh;
}

.post-faq__answer-inner p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   Related articles and demo band
   ========================================================================== */
.related {
    margin: clamp(100px, 14vh, 128px) auto;
}

.related__intro {
    display: none;
}

.related__title {
    margin: 0 0 24px;
    padding: 0;
    font-family: var(--font-bold);
    font-size: clamp(16px, 0.9375vw, 18px);
    font-weight: 400;
    line-height: 2;
    color: var(--color-ink);
}

.related__rule {
    margin: 0;
    padding: 20px 0 64px;
    border: 0 solid var(--color-steel);
    border-top-width: 1px;
}

.related__grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 24px;
    margin-bottom: 96px;
}

.related__item {
    display: flex;
    flex-direction: column;
    width: 33%;
}

.related__thumb {
    position: relative;
    display: flex;
    width: 100%;
    height: 232px;
    margin-bottom: 24px;
}

.related__thumb img {
    width: 100%;
    object-fit: cover;
    object-position: bottom left;
}

.related__tag {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 24px;
    padding-top: 2px;
    border-right: 3px solid var(--color-cream);
    border-bottom: 3px solid var(--color-cream);
    background: var(--color-rust);
    font-family: var(--font-bold);
    font-size: clamp(14px, 0.83vw, 16px);
    text-transform: uppercase;
    color: var(--color-cream);
}

.related__meta {
    display: flex;
    flex-direction: column;
}

.related__meta h3 {
    margin-bottom: 10px;
    padding: 0;
    font-family: var(--font-bold);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--color-ink);
}

.related__meta p {
    margin-bottom: 24px;
    padding: 0;
    font-family: var(--font-regular);
    font-size: 18px;
    line-height: 1.4;
    color: var(--color-ink);
}

.related__item time {
    display: flex;
    font-family: var(--font-medium);
    font-size: 16px;
    font-weight: 500;
    color: var(--color-slate);
}

.related__footer {
    position: relative;
    display: flex;
    justify-content: center;
}

.related__footer::before,
.related__footer::after {
    content: "";
    position: absolute;
    top: calc(50% - 1px);
    display: block;
    width: calc(50% - 189px);
    height: 1px;
    background: var(--color-steel);
}

.related__footer::before { left: 0; }

.related__footer::after { right: 0; }

.related__button,
.demo__button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 56px;
    padding: 0 24px;
    border-radius: 50px;
    background: var(--color-rust);
    font-family: var(--font-bold);
    font-size: 18px;
    color: var(--color-cream);
    transition: background-color 0.5s, color 0.5s;
}

.related__button:hover {
    background: var(--color-ink);
}

.demo__button:hover {
    background: var(--color-cream);
    color: var(--color-ink);
}

.related__button:hover path {
    fill: var(--color-rust);
    stroke: var(--color-rust);
}

.demo__button:hover path {
    fill: var(--color-rust);
    stroke: var(--color-rust);
}

.demo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 128px 0;
    background: var(--color-ink);
}

.demo__title {
    width: 80%;
    padding-bottom: 10px;
    margin: 0 auto 64px;
    font-family: var(--font-regular);
    font-size: clamp(77px, 6vw, 87px);
    font-weight: 400;
    line-height: 1.05;
    text-align: center;
    color: var(--color-cream);
}

/* ==========================================================================
   Lightbox (assets/js/post-feature.js)
   ========================================================================== */
.lightbox {
    max-width: calc(100vw - 208px);
    max-height: calc(100vh - 208px);
    padding: 0;
    border: 0;
    background: transparent;
}

.lightbox::backdrop {
    background: rgba(0, 0, 0, 0.85);
}

.lightbox img {
    display: block;
    max-width: calc(100vw - 208px);
    max-height: calc(100vh - 208px);
}

/* live fancybox keeps about 104px around the picture on desktops; small screens use the whole width */
@media (max-width: 767px) {
    .lightbox,
    .lightbox img {
        max-width: 94vw;
        max-height: 94vh;
    }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
    .post-faq__label { padding-bottom: 40px; }

    .post-faq__intro { margin-bottom: 50px; }

    .post-faq__list { width: 100%; max-width: none; }
}

@media (max-width: 768px) {
    .subscribe form#form_subscribe .frm_fields_container { flex-direction: column; }
}

@media (max-width: 767px) {
    .post-faq {
        margin-bottom: 60px;
        padding-bottom: 60px;
    }

    .post-faq::before,
    .post-faq::after { height: 28px; }

    .post-faq::after { bottom: 28px; }

    .post-faq__inner { width: calc(100% - 40px); }

    .post-faq__label {
        margin: 0;
        padding: 12px 0 32px;
        font-size: 12px;
    }

    .post-faq__title {
        margin-bottom: 24px;
        font-size: 44px;
        line-height: 0.98;
    }

    .post-faq__intro {
        margin-bottom: 40px;
        font-size: 16px;
    }

    .post-faq__list { margin-bottom: 40px; }

    .post-faq__button {
        gap: 20px;
        min-height: 58px;
        padding: 12px 4px 12px 0;
    }

    .post-faq__question {
        font-size: 16px;
        line-height: 1.25;
    }

    .post-faq__answer-inner {
        padding: 0 34px 24px 0;
        font-size: 15px;
    }
}

@media (max-width: 475px) {
    .post-feature__head { padding-top: 96px; }

    .post-feature__tag { margin-bottom: 40px; }

    .tag-label {
        min-width: 126px;
        font-size: 15px;
    }

    .post-feature__title {
        width: 100%;
        margin-bottom: 40px;
        padding: 0 24px;
        font-family: var(--font-medium);
        font-size: 28px;
        font-weight: 500;
        line-height: 1.16;
    }

    .post-feature__image {
        width: 100%;
        margin-bottom: 31px;
        padding: 0 24px;
    }

    .post-feature__meta {
        width: 100%;
        margin-bottom: 60px;
        padding: 0 24px;
    }

    .post-feature__author { gap: 10px; }

    .post-feature__author .avatar {
        width: 36px;
        height: 36px;
    }

    .post-feature__author-name,
    .post-feature__author-role { font-size: 13px; }

    .post-feature__share { gap: 5px; }

    .post-feature__share-date { min-height: auto; }

    .post-feature__date,
    .toc { display: none; }

    .leaderboard {
        width: 100%;
        margin-bottom: 60px;
        padding: 40px 24px;
        background: var(--color-ink);
    }

    .leaderboard.margin-large:first-child { margin-bottom: 60px; }

    .leaderboard--rule {
        border: 0;
        background: var(--color-rust);
    }

    .leaderboard__date {
        display: block;
        margin-bottom: 40px;
        font-size: 13px;
        color: var(--color-cream);
    }

    .leaderboard--rule .leaderboard__date { display: none; }

    .leaderboard p {
        font-size: 18px;
        line-height: 22px;
        color: var(--color-steel);
    }

    .leaderboard--rule p { color: var(--color-cream); }

    .copy-text,
    .figure-block,
    .labels,
    .bullet-list,
    .steps,
    .images-grid,
    .two-cards {
        width: 100%;
        padding: 0 24px;
    }

    .copy-text { margin-bottom: 40px; }

    .copy-text h2 {
        margin: 24px 0;
        padding: 0;
        font-family: var(--font-bold);
        font-size: 24px;
    }

    .copy-text p,
    .copy-text ul { font-size: 18px; }

    .copy-text ul:has(a) { gap: 18px; }

    .copy-text p:last-child { margin: 0; }

    .copy-text h3,
    .card-grid__title,
    .card-grid__body p {
        margin-top: -3px;
        font-size: 18px;
    }

    .copy-text h5 {
        margin: 16px 0 1lh;
        padding: 0;
        font-size: 18px;
        line-height: 22px;
    }

    .copy-text li::before { top: 5px; }

    /* Wide tables scroll inside the column instead of pushing the page sideways (live overflows here). */
    .copy-text table {
        display: block;
        max-width: 100%;
        overflow-x: auto;
    }

    .copy-text td,
    .copy-text th {
        font-size: 15px;
        line-height: 1.15;
    }

    .copy-text td {
        font-family: var(--font-medium);
        font-weight: 500;
    }

    .copy-text .big-bold {
        font-size: 18px;
        line-height: 1.33;
    }

    .copy-text .half-col { width: 100%; }

    .copy-text .half-col ul { flex-direction: column; gap: 16px; }

    .copy-text .half-col ul li { width: 100%; }

    .copy-text code { padding: 20px; }

    .copy-text .four-col br { display: block; }

    .card-grid {
        gap: 24px;
        width: 100%;
        margin-bottom: 60px;
        padding: 0 24px;
    }

    .card-grid__item { width: 100%; }

    .quote,
    .border-text {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .quote--left,
    .border-text--left { margin-bottom: 96px; }

    .quote--right { margin-bottom: 60px; }

    .border-text--right {
        flex-direction: column-reverse;
        margin-bottom: 60px;
    }

    .quote__image,
    .border-text__image { margin-bottom: 24px; }

    .quote__image img,
    .border-text__image img {
        width: 100%;
        max-width: 100%;
    }

    .quote__content {
        width: 100%;
        max-width: 100%;
        padding: 40px 0 0;
        border-width: 2px 0 0;
    }

    .quote__author {
        width: fit-content;
        margin: -50px auto 0;
        padding: 0 20px;
        background: var(--color-cream);
        font-size: 13px;
        line-height: 24px;
        text-align: center;
    }

    .quote__name { font-size: 18px; line-height: 24px; }

    .quote__text {
        padding: 0 24px 50px;
        border-bottom: 2px solid var(--color-rust);
        text-align: center;
    }

    .quote__avatar { display: none; }

    .border-text {
        padding: 0 24px;
        margin-bottom: 96px;
    }

    .border-text__text { width: 100%; }

    .border-text__box {
        width: 100%;
        max-width: 100%;
        padding: 40px;
        border: 1px solid;
    }

    .border-text--full .border-text__text {
        font-family: var(--font-regular);
        text-align: center;
    }

    .border-text--full .border-text__box { padding: 40px 16px; }

    .border-text--black { background: var(--color-ink); }

    .border-text--black .border-text__text { color: var(--color-steel); }

    .border-text--flag .border-text__image { display: none; }

    .border-text--flag .border-text__box {
        width: 100%;
        max-width: 100%;
        padding: 0;
    }

    .counters {
        width: 100%;
        margin: 0 0 96px;
    }

    .counters__grid {
        flex-direction: column;
        gap: 40px;
        padding: 0 24px;
        border: 0;
    }

    .counters__item {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    .counters__number { font-size: 65px; }

    .counters__text { font-size: 18px; }

    .post-button {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .post-button__link {
        gap: 13px;
        width: auto;
        height: 41px;
        padding: 0 24px;
        font-family: var(--font-medium);
        font-size: 15px;
        font-weight: 500;
    }

    .subscribe {
        margin: 96px 0 60px;
        padding: 60px 24px;
    }

    .subscribe__title {
        margin-bottom: 24px;
        padding: 0;
        font-family: var(--font-bold);
        font-size: 22px;
        line-height: 28px;
    }

    .subscribe__text {
        width: 85%;
        margin-bottom: 40px;
        font-size: 18px;
        line-height: 24px;
        text-align: center;
    }

    .subscribe form#form_subscribe .frm_fields_container {
        flex-direction: column;
        gap: 24px;
    }

    .subscribe form#form_subscribe .sub-email input {
        width: 342px;
        height: 41px;
        font-size: 16px;
        text-align: center;
    }

    .subscribe form#form_subscribe button.frm_button_submit {
        width: 139px;
        height: 41px;
    }

    .figure-block { gap: 12px; padding: 0; }

    .figure-block__caption { padding: 0 24px; }

    .figure-block__caption p { font-size: 14px; }

    .labels__title,
    .bullet-list__title {
        margin-bottom: 24px;
        font-size: 18px;
        line-height: 22px;
    }

    .labels__rows { gap: 40px; }

    .labels__row {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    .labels__label {
        flex-basis: 36px;
        width: 82px;
        height: 36px;
        font-size: 12px;
    }

    .labels__heading { font-size: 18px; line-height: 24px; }

    .labels__body p { font-size: 18px; line-height: 24px; }

    .bullet-list__item {
        align-items: flex-start;
        width: 100%;
    }

    .bullet-list__item::before { top: 6px; }

    .steps__heading {
        width: 100%;
        margin-bottom: 24px;
        font-family: var(--font-medium);
        font-size: 24px;
    }

    .steps__row { flex-direction: column; gap: 24px; }

    .steps__item { gap: 12px; }

    .steps__number { font-size: 65px; }

    .images-grid__row { row-gap: 12px; }

    .two-cards__intro p { margin-bottom: 24px; }

    .two-cards__row { flex-direction: column; gap: 40px; }

    .two-cards__item { width: 100%; }

    .two-cards__number { font-size: 65px; }

    .two-cards__title {
        margin-bottom: 1em;
        padding: 0;
        font-size: 18px;
        line-height: 1.33;
    }

    .post-content .margin-small { margin-bottom: 24px; }

    .post-content .margin-medium { margin-bottom: 40px; }

    .post-content .margin-large { margin-bottom: 96px; }

    .related {
        width: 100%;
        margin: 0;
        padding: 0 24px;
    }

    .related__intro {
        display: block;
        margin-bottom: 40px;
        font-family: var(--font-regular);
        font-size: 18px;
        line-height: 24px;
        text-align: center;
    }

    .related__title,
    .related__rule { display: none; }

    .related__grid {
        flex-direction: column;
        gap: 40px;
    }

    .related__item { width: 100%; }

    .related__thumb {
        height: 224px;
        margin-bottom: 14px;
    }

    .related__meta h3,
    .related__meta p {
        margin-bottom: 10px;
        font-size: 3.5vw;
    }

    .related__button {
        gap: 13px;
        height: 41px;
        padding: 0 24px;
        font-size: 15px;
    }

    .related__footer { padding-bottom: 96px; }

    .related__footer::before,
    .related__footer::after { content: none; }

    .demo { display: none; }
}


/* the subscribe field and button stack from 1024px down (live) */
@media (max-width: 1024px) {
    .subscribe form#form_subscribe .frm_fields_container { flex-direction: column; }
}

/* related thumbnails: live sets their height per range (232px on desktops, 168px from 1000 to 1024, 130px from 476 to 1000, 224px on phones) */
@media (min-width: 476px) and (max-width: 1000px) {
    .related__thumb { height: 130px; }
}

@media (min-width: 1001px) and (max-width: 1024px) {
    .related__thumb { height: 168px; }
}

/* Article blocks that were styled by the Blog CSS snippet (leaderboard, copy text, tag label, demo band, section margins). */
:is(.post-content .margin-small):is(section.margin-small) {
    margin-bottom: 64px;
}

:is(.post-content .margin-large):is(section.margin-large,
.margin-large) {
    margin-bottom: 128px;
}

@media screen and (max-width:475px) {
    :is(.post-content .margin-small):is(section.margin-small) {
        margin-bottom: 24px;
    }

    :is(.post-content .margin-large):is(section.margin-large) {
        margin-bottom: 96px;
    }

    :is(.copy-text > :last-child):is(.copy-text h2) {
        margin: 24px 0;
    }

}

.leaderboard,
.copy-text,
.card-grid,
.quote-block,.border-text-block,
.counters-section,
.button-wrapper {
    max-width: 1340px;
    margin: 0 auto;
    width: 80%;
}

span.tag-label {
    background: var(--color-rust);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'FK Grotesk 700';
    text-transform: uppercase;
    color: var(--color-cream);
    font-size: 16px;
    padding: 2px 10px 0;
    min-width: 165px;
}

.leaderboard p {
    font-size: 45px;
    line-height: 140%;
    font-family: 'FK Grotesk 300';
    font-weight: 300;
    color: var(--color-ink);
}

.copy-text {
    display: flex;
    flex-direction: column;
}

.copy-text h2 {
    font-size: clamp(42px, 2.9vw, 57px);
    color: var(--color-ink);
    line-height: 112%;
    margin-bottom: 20px;
    font-family: 'FK Grotesk 400';
    font-weight: 400;
    width: 100%;
}

.copy-text p {
    font-family: 'FK Grotesk 400';
    font-weight: 400;
    font-size: 18px;
    color: var(--color-ink);
    line-height: 140%;
    padding: 0;
    margin-bottom: 1lh;
}

.copy-text ul {
    font-family: 'FK Grotesk 400';
    font-weight: 400;
    font-size: 18px;
    color: var(--color-ink);
    line-height: 140%;
    padding-bottom: 0;
    margin-bottom: 1lh;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.copy-text li {
    position: relative;
    display: inline-block;
    align-items: center;
    padding-left: 28px;
}

.copy-text li:before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    background: var(--color-rust);
    position: absolute;
    top: 3px;
    left: 0px;
}

.copy-text a {
    color: var(--color-ink);
    position: relative;
    border-bottom: solid 2px var(--color-rust);
}

.copy-text > *:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
}

@media screen and (max-width:475px) {
    .copy-text ul {
        font-size: 18px;
    }

    .copy-text li:before {
        top: 5px;
    }

}

.copy-text h3 {
    font-family: 'FK Grotesk 700';
    color: var(--color-ink);
    font-size: 24px;
    line-height: 140%;
    font-weight: normal;
    margin: 20px 0;
}

section.demo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 128px 0;
    background: var(--color-ink);
}

@media screen and (max-width:475px) {
    span.tag-label {
        font-size: 15px;
        min-width: 126px;
    }

    .leaderboard {
        background: var(--color-ink);
        width: 100%;
        padding: 40px 24px;
    }

    /* the ruled statement block keeps 30px over its text on phones and stays a rust box with cream text (live) */
    .leaderboard.leaderboard--rule { padding-top: 30px; background: var(--color-rust); }

    section.leaderboard.margin-large:first-child {
        margin-bottom: 60px;
    }

    .leaderboard p {
        font-size: 18px;
        line-height: 22px;
        color: var(--color-steel);
    }

    .leaderboard--rule p { color: var(--color-cream); }

    section.copy-text {
        width: 100%;
        padding: 0 24px;
    }

    .copy-text h2 {
        font-size: 24px;
        width: 100%;
        font-family: 'FK Grotesk 700';
        padding: 0;
    }

    .copy-text p {
        font-size: 18px;
    }

    .copy-text p:last-child {
        margin: 0;
    }

    .card-content h3,
    .copy-text h3,
    .card-content p {
        font-size: 18px;
    }

    .card-content h3,
    .copy-text h3 {
        margin-top: -3px;
    }

    section.demo {
        display: none;
        padding: 60px 24px 96px;
        background: var(--color-cream);
        border-bottom: solid 1.5px var(--color-ink);
    }

}

section.margin-small {
    margin-bottom: 64px;
}

section.margin-large,
.margin-large {
    margin-bottom: 128px;
}

@media screen and (max-width:475px) {
    section.margin-small {
        margin-bottom: 24px;
    }

    section.margin-large {
        margin-bottom: 96px;
    }

    .copy-text h2 {
        margin: 24px 0;
    }

}
