/* =================================================================
   Site-Specific CSS — per-client layer
   All per-client overrides and custom styles for this site go here:
   brand color overrides, @font-face + font variable overrides,
   custom block styles, and page-specific adjustments.
   Uses --dm-* variables from global-settings.css.

   Client: Bonsai Commercial. Design source: Figma "Bonsai Website",
   Design page (Home 203:5076, Contact 191:4732). Desktop frame 1440px,
   30px side margins, 1380px content width. Values below are measured
   from reference-website/briefing/figma/outline.txt.
   ================================================================= */


/* -----------------------------------------------------------------
   Fonts
   Ashcroft (Peregrin Studio, licensed webfont kit) and Inter (OFL).
   Files live in the Media Library (uploads/2026/09); the relative
   path resolves from wp-content/themes/moose/css/ on any host that
   keeps the standard wp-content layout.
   ----------------------------------------------------------------- */
@font-face {
    font-family: 'Ashcroft';
    src: url('../../../uploads/2026/09/Ashcroft-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Ashcroft';
    src: url('../../../uploads/2026/09/Ashcroft-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Ashcroft';
    src: url('../../../uploads/2026/09/Ashcroft-Italic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../../../uploads/2026/09/Inter-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../../../uploads/2026/09/Inter-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}


/* -----------------------------------------------------------------
   Brand tokens
   Slot roles are fixed by the blueprint; values are the Figma colour
   styles. Keep theme.json and blocks/dm-block-controls.js in sync.
   ----------------------------------------------------------------- */
:root {
    /* 1 Primary: Charcoal #1E1009 (headings, body text) */
    --dm-bc-1: hsl(20, 54%, 7.6%);
    --dm-bc-1-hs: 20, 54%;
    --dm-bc-1-l: 7.6%;
    /* 2 CTA: Blue #84B2DF (buttons, tree mark, carousel controls) */
    --dm-bc-2: hsl(209.7, 58.7%, 69.6%);
    --dm-bc-2-hs: 209.7, 58.7%;
    --dm-bc-2-l: 69.6%;
    /* 3 Secondary accent: Hazelnut #8C401E (text links on cream) */
    --dm-bc-3: hsl(18.6, 64.7%, 33.3%);
    --dm-bc-3-hs: 18.6, 64.7%;
    --dm-bc-3-l: 33.3%;
    /* 4 CTA hover: Blueberry #3C81C3 (proposed, confirm with Ashley) */
    --dm-bc-4: hsl(209.3, 52.9%, 50%);
    --dm-bc-4-hs: 209.3, 52.9%;
    --dm-bc-4-l: 50%;
    /* 5 Secondary accent hover: Chocolate #49200F */
    --dm-bc-5: hsl(17.6, 65.9%, 17.3%);
    --dm-bc-5-hs: 17.6, 65.9%;
    --dm-bc-5-l: 17.3%;
    /* 6 Light background: Cream #F3EEE7 */
    --dm-bc-6: hsl(35, 33.3%, 92.9%);
    --dm-bc-6-hs: 35, 33.3%;
    --dm-bc-6-l: 92.9%;
    /* 7 Border: Dark Chocolate at 20% on Cream, flattened to #DFD8D1 */
    --dm-bc-7: hsl(30, 17.9%, 84.7%);
    --dm-bc-7-hs: 30, 17.9%;
    --dm-bc-7-l: 84.7%;
    /* 8 Secondary background: Sky Blue #CDDFF0 */
    --dm-bc-8: hsl(209.1, 53.9%, 87.3%);
    --dm-bc-8-hs: 209.1, 53.9%;
    --dm-bc-8-l: 87.3%;
    /* 9 Muted text / dark base: Dark Chocolate #2D150D */
    --dm-bc-9: hsl(15, 55.2%, 11.4%);
    --dm-bc-9-hs: 15, 55.2%;
    --dm-bc-9-l: 11.4%;

    --dm-body-color: hsl(20, 54%, 7.6%);

    /* Brand colours with no blueprint slot (image reveal, links on dark) */
    --dm-bonsai-milk-chocolate: #693013;
    --dm-bonsai-burnt-orange: #B05626;
    --dm-bonsai-sand: #E8C699;
    --dm-bonsai-cream: #F3EEE7;

    /* Buttons: flat Blue rectangle, Charcoal Inter Medium 16, 45px tall */
    --dm-button-color: var(--dm-brand-color-2);
    --dm-button-text-color: var(--dm-brand-color-1);
    --dm-button-padding: 1.28rem 1.8rem;
    --dm-button-border-radius: 0;

    /* Fonts */
    --dm-font-family-body: 'Ashcroft', Georgia, 'Times New Roman', serif;
    --dm-font-family-heading: 'Ashcroft', Georgia, 'Times New Roman', serif;
    --dm-font-family-ui: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

    /* Headings, fluid 320px to 1440px (factor = (max - min) / 1.12)
       h1 115/98 hero, h2 80/96 section, h3 55/60 statement and service,
       h4 35/42 hero subline and projects intro, h5 25/30 card titles */
    --dm-h1: clamp(4.8rem, calc(4.8rem + ((1vw - 0.32rem) * 5.9821)), 11.5rem);
    --dm-h2: clamp(4.4rem, calc(4.4rem + ((1vw - 0.32rem) * 3.2143)), 8rem);
    --dm-h3: clamp(3.4rem, calc(3.4rem + ((1vw - 0.32rem) * 1.875)), 5.5rem);
    --dm-h4: clamp(2.4rem, calc(2.4rem + ((1vw - 0.32rem) * 0.9821)), 3.5rem);
    --dm-h5: clamp(2.2rem, calc(2.2rem + ((1vw - 0.32rem) * 0.2679)), 2.5rem);
    --dm-h6: 1.8rem;

    /* Body scale: s 16 (attributions), body 18, m 25 (quotes), l 30 (leads) */
    --dm-body-s: clamp(1.5rem, calc(1.5rem + ((1vw - 0.32rem) * 0.0893)), 1.6rem);
    --dm-body: clamp(1.7rem, calc(1.7rem + ((1vw - 0.32rem) * 0.0893)), 1.8rem);
    --dm-body-m: clamp(2rem, calc(2rem + ((1vw - 0.32rem) * 0.4464)), 2.5rem);
    --dm-body-l: clamp(2.2rem, calc(2.2rem + ((1vw - 0.32rem) * 0.7143)), 3rem);

    /* Layout: 1380px content + 30px gutters at 1440px */
    --dm-container-width: 1380px;
    --dm-sec-pad-inline: clamp(20px, calc(20px + ((1vw - 3.2px) * 0.8929)), 30px);
    --dm-sec-pad-block: clamp(56px, calc(56px + ((1vw - 3.2px) * 2.8571)), 88px);
    --dm-grid-gap: 2rem;
    --dm-content-gap: 2rem;

    /* Header logo: 197 x 72 in Figma */
    --dm-logo-h: 7.2rem;
    --dm-logo-h-sticky: 7.2rem;

    /* Bonsai UI type roles */
    --dm-bonsai-eyebrow-size: 1.5rem;
    --dm-bonsai-link-size: 1.5rem;
}


/* -----------------------------------------------------------------
   Base elements
   ----------------------------------------------------------------- */
html,
body {
    overflow-x: clip;
}

body {
    background-color: var(--dm-brand-color-6);
    line-height: 1.2;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    --dm-font-weight: 500;
    --dm-line-height: 1.1;
}

h2 {
    --dm-line-height: 1.2;
}

a {
    color: var(--dm-brand-color-3);
}

a:hover {
    color: var(--dm-brand-color-5);
}

:focus-visible {
    outline: 2px solid var(--dm-brand-color-4);
    outline-offset: 3px;
}

::selection {
    background-color: var(--dm-brand-color-2);
    color: var(--dm-brand-color-1);
}

/* Buttons: Inter Medium, square, Blueberry on hover */
.btn {
    font-family: var(--dm-font-family-ui);
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 1.2125;
    justify-content: center;
    text-align: center;
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.btn:hover,
.btn:focus-visible {
    --dm-button-color: var(--dm-brand-color-4);
    --dm-button-text-color: var(--dm-brand-color-6);
    opacity: 1;
}


/* -----------------------------------------------------------------
   Bonsai utilities (applied as Additional CSS classes on blocks and
   used by the Bonsai block templates)
   ----------------------------------------------------------------- */

/* Eyebrow: PILLAR ONE, CLASS A RETAIL, READY TO GROW? */
.dm-eyebrow {
    font-family: var(--dm-font-family-ui);
    font-size: var(--dm-bonsai-eyebrow-size);
    font-weight: 400;
    line-height: 1.2133;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Text link with arrow: Read More, Explore, Read, Contact */
.dm-text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0;
    border: 0;
    background: none;
    font-family: var(--dm-font-family-ui);
    font-size: var(--dm-bonsai-link-size);
    font-weight: 500;
    line-height: 1.2133;
    color: var(--dm-brand-color-3);
    text-decoration: none;
    cursor: pointer;
}

.dm-text-link::after {
    content: '';
    display: block;
    flex-shrink: 0;
    width: 1.3rem;
    height: 1.2rem;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 12'%3E%3Cpath d='M0 6h11.5M6.5 1l5 5-5 5' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 12'%3E%3Cpath d='M0 6h11.5M6.5 1l5 5-5 5' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E") center / contain no-repeat;
    transition: transform 0.25s ease;
}

.dm-text-link:hover {
    color: var(--dm-brand-color-5);
}

.dm-text-link:hover::after {
    transform: translateX(0.3rem);
}

/* On leather: Sand links */
.dm-on-dark .dm-text-link,
.dm-text-link--on-dark {
    color: var(--dm-bonsai-sand);
}

.dm-on-dark .dm-text-link:hover,
.dm-text-link--on-dark:hover {
    color: var(--dm-bonsai-cream);
}

/* Full-bleed hairline under a section heading (Services, Spirit, Team) */
.dm-rule-below {
    position: relative;
}

.dm-rule-below::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 100vw;
    transform: translateX(-50%);
    border-bottom: 1px solid var(--dm-brand-color-7);
    pointer-events: none;
}

/* Dark leather sections: cream text */
.dm-on-dark,
.dm-on-dark :is(h1, h2, h3, h4, h5, h6, p) {
    --dm-text-color: var(--dm-bonsai-cream);
    color: var(--dm-bonsai-cream);
}

/* Lead paragraph (30/36) and statement copy */
.dm-lead {
    font-size: var(--dm-body-l);
    line-height: 1.2;
}

.dm-lead--chocolate {
    color: var(--dm-brand-color-5);
}

/* Body copy block with paragraph spacing (18/21.6, 22px between) */
.dm-copy {
    display: flex;
    flex-direction: column;
    gap: 2.2rem;
}

.dm-copy p {
    margin: 0;
}


/* =================================================================
   Bonsai components
   ================================================================= */

/* -----------------------------------------------------------------
   Read More disclosure (moose/dm-read-more, team bios)
   Height animates through grid rows; the panel is visibility:hidden
   while closed so hidden text is out of the tab order and the
   accessibility tree but stays in the HTML.
   ----------------------------------------------------------------- */
.dm-read-more {
    --dm-read-more-gap: 2.16rem;
    --dm-read-more-toggle-gap: 4.7rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.dm-read-more__panel {
    display: grid;
    grid-template-rows: 0fr;
    width: 100%;
    visibility: hidden;
    transition: grid-template-rows 0.55s cubic-bezier(0.33, 1, 0.68, 1), visibility 0s linear 0.55s;
}

.dm-read-more.is-open .dm-read-more__panel {
    grid-template-rows: 1fr;
    visibility: visible;
    transition: grid-template-rows 0.55s cubic-bezier(0.33, 1, 0.68, 1), visibility 0s linear 0s;
}

.dm-read-more__inner {
    min-height: 0;
    overflow: hidden;
}

.dm-read-more__inner::before {
    content: '';
    display: block;
    height: var(--dm-read-more-gap);
}

.dm-read-more__inner > :last-child {
    margin-bottom: 0;
}

.dm-read-more__toggle {
    margin-top: var(--dm-read-more-toggle-gap);
}

.dm-read-more__label[hidden] {
    display: none;
}

.dm-read-more.is-open .dm-read-more__toggle::after {
    transform: rotate(-90deg);
}

.dm-read-more.is-open .dm-read-more__toggle:hover::after {
    transform: rotate(-90deg) translateX(0.3rem);
}

/* Editor: inner blocks always visible and outlined */
.dm-read-more--editor {
    outline: 1px dashed var(--dm-brand-color-7);
    outline-offset: 0.6rem;
}

.dm-read-more--editor .dm-read-more__inner {
    overflow: visible;
}

.dm-read-more--editor .dm-read-more__inner::before {
    display: none;
}

.dm-read-more__editor-note {
    margin: 0 0 0.8rem;
    font: 400 1.2rem/1.3 var(--dm-font-family-ui);
    color: hsl(0, 0%, 45%);
}

.dm-read-more--editor > .dm-text-link {
    margin-top: 1.2rem;
}


/* -----------------------------------------------------------------
   Option button (moose/dm-option-button)
   ----------------------------------------------------------------- */
.dm-option-button {
    display: flex;
}

.dm-option-button--center {
    justify-content: center;
}

.dm-option-button__empty {
    --dm-button-color: transparent;
    --dm-button-text-color: currentColor;
    border-style: dashed;
    font-size: 1.3rem;
}


/* -----------------------------------------------------------------
   Service row (moose/dm-service-row), Figma y 2761 to 4017
   Columns at 1440: number 117 | body 680 | 166 | image 272 | 66 | link
   ----------------------------------------------------------------- */
.dm-service-row {
    position: relative;
    display: grid;
    grid-template-columns: 11.7rem minmax(0, 68rem) minmax(2rem, 1fr) 27.2rem minmax(2rem, 6.6rem) max-content;
    grid-template-areas: "num body . media . link";
    align-items: start;
    padding-block: 2.2rem 2.8rem;
}

.dm-service-row::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 100vw;
    transform: translateX(-50%);
    border-bottom: 1px solid var(--dm-brand-color-7);
    pointer-events: none;
}

.dm-service-row .dm-service-row__number {
    grid-area: num;
    margin: 1.4rem 0 0;
    font-family: var(--dm-font-family-ui);
    font-size: 2.5rem;
    font-weight: 400;
    line-height: 1.212;
    color: var(--dm-brand-color-9);
    font-variant-numeric: tabular-nums;
}

.dm-service-row__body {
    grid-area: body;
    display: flex;
    flex-direction: column;
    gap: 1.9rem;
}

.dm-service-row__title {
    --dm-font-size: var(--dm-h3);
    --dm-line-height: 1.0909;
    --dm-text-color: var(--dm-brand-color-9);
}

.dm-service-row__desc {
    font-size: var(--dm-body);
    line-height: 1.2;
}

.dm-service-row__media {
    grid-area: media;
    margin: 1.1rem 0 0;
    aspect-ratio: 272 / 145;
    overflow: hidden;
}

.dm-service-row__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dm-service-row__link {
    grid-area: link;
    justify-self: end;
    margin-top: 0.7rem;
}

@media (min-width: 768px) and (max-width: 991px) {
    .dm-service-row {
        grid-template-columns: 6rem minmax(0, 1fr) 24rem;
        grid-template-areas:
            "num body media"
            ". link link";
        column-gap: 2.4rem;
        row-gap: 1.6rem;
        padding-block: 3.2rem;
    }

    .dm-service-row .dm-service-row__number,
    .dm-service-row__media {
        margin-top: 0.6rem;
    }

    .dm-service-row__link {
        justify-self: start;
        margin-top: 0;
    }
}

@media (max-width: 767px) {
    .dm-service-row {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "num"
            "body"
            "media"
            "link";
        row-gap: 1.6rem;
        padding-block: 3.2rem;
    }

    .dm-service-row .dm-service-row__number {
        margin: 0;
        font-size: 2rem;
    }

    .dm-service-row__media {
        margin: 0.4rem 0 0;
    }

    .dm-service-row__link {
        justify-self: start;
        margin-top: 0;
    }
}


/* -----------------------------------------------------------------
   Project mosaic (moose/dm-project-mosaic), Figma y 4435 to 5193
   Group of four at 1440: large 680 | small 329 | small 329, wide 679
   spans both small columns; 21px columns, 23px between rows.
   ----------------------------------------------------------------- */
.dm-project-mosaic {
    display: flex;
    flex-direction: column;
    gap: 4.8rem;
}

.dm-project-mosaic__group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 28rem), 1fr));
    gap: 2.3rem 2.1rem;
}

.dm-project-mosaic__group--count-4 {
    grid-template-columns: minmax(0, 680fr) minmax(0, 329fr) minmax(0, 329fr);
    grid-template-areas:
        "a b c"
        "a d d";
}

.dm-project-mosaic__group--count-4 > :nth-child(1) { grid-area: a; }
.dm-project-mosaic__group--count-4 > :nth-child(2) { grid-area: b; }
.dm-project-mosaic__group--count-4 > :nth-child(3) { grid-area: c; }
.dm-project-mosaic__group--count-4 > :nth-child(4) { grid-area: d; }

.dm-project {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.dm-project__media {
    position: relative;
    display: block;
    overflow: hidden;
    background-color: var(--dm-project-fill, var(--dm-brand-color-5));
    aspect-ratio: 4 / 3;
}

.dm-project-mosaic__group--count-4 .dm-project--large .dm-project__media {
    flex: 1 1 auto;
    min-height: 30rem;
    aspect-ratio: auto;
}

.dm-project-mosaic__group--count-4 .dm-project--small .dm-project__media {
    aspect-ratio: 329 / 299;
}

.dm-project-mosaic__group--count-4 .dm-project--wide .dm-project__media {
    aspect-ratio: 678 / 329;
}

.dm-project__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}

a.dm-project__media:hover .dm-project__img,
a.dm-project__media:focus-visible .dm-project__img {
    transform: scale(1.03);
}

.dm-project__caption {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.6rem;
    margin-top: 1.4rem;
}

.dm-project--small .dm-project__caption {
    margin-top: 1.1rem;
}

.dm-project__name {
    --dm-font-size: var(--dm-h5);
    --dm-line-height: 1.2;
}

.dm-project--small .dm-project__name {
    --dm-line-height: 1.04;
}

.dm-project .dm-project__class {
    flex-shrink: 0;
    margin-top: 1.1rem;
    text-align: right;
}

.dm-project--small .dm-project__class {
    flex-shrink: 1;
    max-width: 14.3rem;
}

@media (max-width: 991px) {
    .dm-project-mosaic__group--count-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas:
            "a a"
            "b c"
            "d d";
    }

    .dm-project-mosaic__group--count-4 .dm-project--large .dm-project__media {
        flex: none;
        min-height: 0;
        aspect-ratio: 680 / 560;
    }
}

@media (max-width: 599px) {
    .dm-project-mosaic__group--count-4 {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "a" "b" "c" "d";
    }

    .dm-project-mosaic__group--count-4 .dm-project--large .dm-project__media,
    .dm-project-mosaic__group--count-4 .dm-project--small .dm-project__media,
    .dm-project-mosaic__group--count-4 .dm-project--wide .dm-project__media {
        aspect-ratio: 4 / 3;
    }

    .dm-project--small .dm-project__class {
        max-width: none;
    }
}


/* -----------------------------------------------------------------
   Header (moose/dm-header, Bonsai layout), Figma y 0 to 98
   Transparent over the leather hero; logo 197 x 72 at 30, 13.
   ----------------------------------------------------------------- */
.dm-header.dm-header--overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 0;
    background-color: transparent;
    box-shadow: none;
}

.dm-header--overlay.sticky {
    background-color: transparent;
    box-shadow: none;
}

.dm-header--overlay .dm-header__main-inner {
    height: auto;
    min-height: 0;
    padding-block: 1.3rem;
}

.dm-header--overlay .nav-search-wrapper {
    display: flex;
    align-items: center;
}

.dm-header--overlay .main-nav .menu > li > a,
.dm-header__login {
    display: block;
    padding: 1rem 2.5rem;
    font-family: var(--dm-font-family-ui);
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 1.2125;
    color: var(--dm-bonsai-cream);
    text-decoration: none;
    transition: color 0.2s ease;
}

.dm-header--overlay .main-nav .menu > li > a:hover,
.dm-header--overlay .main-nav .menu > li.current-menu-item > a,
.dm-header__login:hover {
    color: var(--dm-bonsai-sand);
}

.dm-header__login {
    display: none;
}

.dm-header--overlay .dm-header__cta {
    margin-left: 2.4rem;
}

.dm-header--overlay .mobile-menu__trigger {
    background-color: transparent;
    padding: 0.8rem 0;
}

.dm-header--overlay .mobile-menu__trigger-lines {
    background-color: var(--dm-bonsai-cream);
    height: 0.2rem;
}

.dm-header--overlay .mobile-menu__trigger[aria-expanded="true"] .mobile-menu__trigger-lines {
    background-color: var(--dm-brand-color-1);
}

.dm-header--overlay .mobile-menu__background {
    top: 0;
    background-color: rgba(30, 16, 9, 0.5);
}

.dm-header--overlay .mobile-menu__panel {
    top: 0;
    padding: 12rem var(--dm-sec-pad-inline) 3.2rem;
    background-color: var(--dm-brand-color-6);
    gap: 2.4rem;
}

.dm-header--overlay .main-nav-mobile ul.menu {
    gap: 0;
}

.dm-header--overlay .main-nav-mobile li a {
    padding: 1.2rem 0;
    border-radius: 0;
    border-bottom: 1px solid var(--dm-brand-color-7);
    font-family: var(--dm-font-family-heading);
    font-size: var(--dm-h4);
    font-weight: 500;
    color: var(--dm-brand-color-1);
}

.dm-header--overlay .main-nav-mobile li a:hover,
.dm-header--overlay .main-nav-mobile li.current-menu-item > a {
    background-color: transparent;
    color: var(--dm-brand-color-3);
}

.dm-header--overlay .dm-header__cta--mobile {
    margin: 0;
    width: 100%;
}

@media (max-width: 991px) {
    :root {
        --dm-logo-h: 5.6rem;
    }
}

@media (min-width: 992px) {
    .dm-header__login {
        display: block;
    }
}


/* -----------------------------------------------------------------
   Team grid (moose/dm-dynamic-team, Bonsai card), Figma y 8483
   330 x 255 greyscale photos, 20px columns, 75px between rows.
   ----------------------------------------------------------------- */
.dm-dynamic-team__grid {
    gap: 4.8rem 2rem;
}

@media (min-width: 992px) {
    .dm-dynamic-team__grid {
        row-gap: 7.5rem;
    }
}

.dm-dynamic-team__card {
    height: auto;
    background: none;
    border: 0;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
}

.dm-dynamic-team__card:hover {
    box-shadow: none;
}

.dm-dynamic-team__photo {
    aspect-ratio: 330 / 255;
    background-color: var(--dm-brand-color-7);
}

.dm-dynamic-team__photo img {
    aspect-ratio: 330 / 255;
    object-position: center 25%;
    filter: grayscale(1);
}

.dm-dynamic-team__info {
    padding: 1.4rem 0 0;
}

.dm-dynamic-team__name {
    font-family: var(--dm-font-family-heading);
    font-size: var(--dm-h5);
    font-weight: 500;
    line-height: 1.2;
}

.dm-dynamic-team__credentials {
    margin: 0;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
}

.dm-dynamic-team__role {
    margin: 0;
    font-size: 1.8rem;
    font-style: italic;
    font-weight: 400;
    line-height: 1.2;
    color: var(--dm-body-color);
}

.dm-read-more.dm-dynamic-team__read-more {
    --dm-read-more-gap: 1.8rem;
    --dm-read-more-toggle-gap: 1.8rem;
    width: 100%;
    min-height: 0;
    margin-top: 0;
    gap: 0;
    font-size: inherit;
    justify-content: flex-start;
}

.dm-dynamic-team__bio {
    font-size: var(--dm-body);
    line-height: 1.2;
}


/* -----------------------------------------------------------------
   Testimonials (moose/dm-dynamic-slider with dm_testimonial)
   Figma y 5528: Sky Blue cards 447 x 571, arrows and dots below.
   ----------------------------------------------------------------- */
.dm-testimonials .splide {
    display: grid;
    grid-template-columns: 1fr auto auto auto 1fr;
    grid-template-areas:
        "track track track track track"
        ". prev dots next .";
    align-items: center;
    column-gap: 2.2rem;
    row-gap: 5.7rem;
}

.dm-testimonials .splide__track {
    grid-area: track;
}

.dm-testimonials .splide__arrows {
    display: contents;
}

.dm-testimonials .splide__arrow {
    aspect-ratio: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.2rem;
    height: 3.2rem;
    padding: 0;
    border: 0;
    background: none;
    color: var(--dm-brand-color-2);
    cursor: pointer;
}

.dm-testimonials .splide__arrow:disabled {
    opacity: 0.4;
    cursor: default;
}

.dm-testimonials .splide__arrow--prev {
    grid-area: prev;
}

.dm-testimonials .splide__arrow--prev svg {
    transform: rotate(180deg);
}

.dm-testimonials .splide__arrow--next {
    grid-area: next;
}

.dm-testimonials .splide__pagination {
    grid-area: dots;
    gap: 1.6rem;
}

.dm-testimonials .splide__pagination:empty {
    display: none;
}

.dm-testimonials .splide__pagination__page {
    display: block;
    width: 1.1rem;
    height: 1.1rem;
    padding: 0;
    border: 1.5px solid var(--dm-brand-color-2);
    border-radius: 50%;
    background-color: transparent;
    cursor: pointer;
}

.dm-testimonials .splide__pagination__page.is-active {
    border: 1.5px solid var(--dm-brand-color-2);
    background-color: var(--dm-brand-color-2);
}

.dm-testimonials .splide:not(.is-overflow) .splide__arrow {
    display: none;
}

.dm-testimonial {
    display: flex;
}

.dm-testimonial__card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 4rem;
    width: 100%;
    min-height: 57.1rem;
    margin: 0;
    padding: 5.3rem 2.6rem 5.5rem;
    background-color: var(--dm-brand-color-8);
    color: var(--dm-brand-color-5);
}

.dm-testimonial__quote {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin: 0;
    font-family: var(--dm-font-family-body);
    font-size: var(--dm-body-m);
    line-height: 1.2;
}

.dm-testimonial__quote p {
    margin: 0;
}

.dm-testimonial__quote p:first-child::before {
    content: '\201C';
}

.dm-testimonial__quote p:last-child::after {
    content: '\201D';
}

.dm-testimonial__cite {
    display: flex;
    flex-direction: column;
    font-size: var(--dm-body-s);
    line-height: 1.2;
}

.dm-testimonial__name {
    font-size: 1.8rem;
    font-weight: 500;
}

.dm-testimonial__role {
    font-style: italic;
}

@media (max-width: 767px) {
    .dm-testimonial__card {
        min-height: 0;
        padding: 3.2rem 2.4rem;
    }
}


/* -----------------------------------------------------------------
   Footer (moose/dm-footer, Bonsai layout), Figma y 10392 to 11198
   ----------------------------------------------------------------- */
.dm-footer.dm-on-dark {
    position: relative;
    padding-block: 5.8rem 3.9rem;
    background-color: var(--dm-brand-color-9);
    background-image: url('../../../uploads/2026/09/bonsai-leather-footer.webp');
    background-size: cover;
    background-position: center top;
    color: var(--dm-bonsai-cream);
}

.dm-footer.dm-on-dark a {
    color: var(--dm-bonsai-cream);
    text-decoration: none;
}

.dm-footer.dm-on-dark a:hover {
    color: var(--dm-bonsai-sand);
}

.dm-footer .dm-footer__brand-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 4rem;
}

.dm-footer__wordmark {
    display: block;
    flex: 0 1 90.8rem;
    padding-left: 0.5rem;
}

.dm-footer__wordmark img {
    display: block;
    width: 100%;
    max-width: 90.8rem;
    height: auto;
}

.dm-footer__cta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2.4rem;
    flex: 0 0 33rem;
}

.dm-footer__cta-title {
    font-family: var(--dm-font-family-heading);
    font-size: var(--dm-h5);
    font-weight: 500;
    line-height: 1.2;
}

.dm-footer.dm-on-dark .dm-footer__cta-link {
    margin-top: 0.7rem;
    color: var(--dm-bonsai-sand);
}

.dm-footer.dm-on-dark .dm-footer__cta-link:hover {
    color: var(--dm-bonsai-cream);
}

.dm-footer__rule {
    height: 1px;
    background-color: rgba(243, 238, 231, 0.5);
}

.dm-footer__brand-row + .dm-footer__rule {
    margin-top: 19.4rem;
}

.dm-footer .dm-footer__columns {
    display: grid;
    grid-template-columns: minmax(0, 46.8fr) minmax(0, 34.9fr) minmax(0, 38.4fr) minmax(0, 17.9fr);
    align-items: start;
    padding-block: 3.9rem 5.5rem;
}

.dm-footer .dm-footer__heading {
    margin: 0 0 2.8rem;
    font-family: var(--dm-font-family-ui);
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.2133;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--dm-bonsai-cream);
}

.dm-footer__address {
    display: block;
    font-style: normal;
    font-family: var(--dm-font-family-body);
    font-size: var(--dm-h5);
    line-height: 1.2;
}

.dm-footer__address > span {
    display: block;
}

.dm-footer__company {
    font-weight: 500;
}

.dm-footer .dm-footer__contact-lines {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 3rem;
}

.dm-footer .dm-footer__link-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dm-footer .dm-footer__link-list li {
    margin: 0;
}

.dm-footer.dm-on-dark .dm-footer__link-list a {
    font-family: var(--dm-font-family-heading);
    font-size: var(--dm-h5);
    font-weight: 500;
    line-height: 1.2;
}

.dm-footer__emblem {
    align-self: end;
    justify-self: end;
    margin-right: 2.7rem;
}

.dm-footer__emblem img {
    display: block;
    width: 15.2rem;
    height: auto;
}

.dm-footer .dm-footer__bottom {
    display: grid;
    grid-template-columns: minmax(0, 46.7fr) minmax(0, 91.3fr);
    gap: 1.2rem 0;
    padding-top: 2.8rem;
    border: 0;
    margin: 0;
}

.dm-footer .dm-footer__copyright,
.dm-footer .dm-footer__credit {
    margin: 0;
    font-family: var(--dm-font-family-ui);
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.2133;
    text-transform: uppercase;
    color: var(--dm-bonsai-cream);
}

.dm-footer.dm-on-dark .dm-footer__credit a {
    text-decoration: underline;
    text-underline-offset: 0.3rem;
}

@media (max-width: 991px) {
    .dm-footer .dm-footer__brand-row {
        flex-direction: column;
        gap: 4rem;
    }

    .dm-footer__wordmark {
        flex: none;
        width: 100%;
    }

    .dm-footer__cta {
        flex: none;
        justify-content: flex-start;
        gap: 2.4rem;
    }

    .dm-footer__brand-row + .dm-footer__rule {
        margin-top: 6.4rem;
    }

    .dm-footer .dm-footer__columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4.8rem 2.4rem;
    }

    .dm-footer__emblem {
        margin-right: 0;
    }

    .dm-footer .dm-footer__bottom {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 767px) {
    /* The wide texture has to be cropped hard and enlarged in a tall,
       narrow footer, which shows compression artifacts; use a tall crop. */
    .dm-footer.dm-on-dark {
        background-image: url('../../../uploads/2026/09/bonsai-leather-footer-tall.webp');
    }
}

@media (max-width: 599px) {
    .dm-footer .dm-footer__columns {
        grid-template-columns: minmax(0, 1fr);
    }

    .dm-footer__emblem {
        justify-self: start;
    }

    .dm-footer__emblem img {
        width: 11rem;
    }
}


/* -----------------------------------------------------------------
   Home page sections (Figma 203:5076)
   Blueprint resets p/h margins inside sections at (0,1,1), so margin
   rules here carry two classes.
   ----------------------------------------------------------------- */
.dm-section-heading {
    padding-bottom: 3.4rem;
}

.dm-section-heading.dm-section-heading--tight {
    padding-bottom: 1.8rem;
}

/* Intro: statement column 680, image column starts 65px later.
   The reveal frame carries the same class, so cap it too: otherwise the
   frame fills the column and its colour shows beside the image. */
.dm-home-intro__image,
.dm-home-intro__image.dm-reveal--img {
    max-width: 56.8rem;
}

@media (min-width: 992px) {
    .dm-home-intro__grid {
        --dm-grid-template-columns: minmax(0, 680fr) minmax(0, 635fr);
        column-gap: 6.5rem;
    }
}

/* Foundations cards: image, eyebrow +23, title +9, body +15 */
.dm-foundation .dm-foundation__eyebrow {
    margin-top: 2.3rem;
}

.dm-foundation .dm-foundation__title {
    margin-top: 0.9rem;
}

.dm-foundation .dm-foundation__body {
    margin-top: 1.5rem;
}

@media (max-width: 991px) {
    .dm-home-foundations__grid {
        row-gap: 5.6rem;
    }
}

/* Spirit: content starts 38px under the rule */
.dm-home-spirit__grid {
    margin-top: 3.8rem;
}

@media (max-width: 991px) {
    .dm-home-spirit__grid {
        row-gap: 3.2rem;
    }
}

/* Team: intro 27px under the rule, cards 59px under the intro */
.dm-home-team__intro {
    margin-top: 2.7rem;
}

.dm-home-team .dm-dynamic-team {
    margin-top: 5.9rem;
}


/* -----------------------------------------------------------------
   Contact page (Figma 191:4732): two outlined boxes on Sky Blue
   ----------------------------------------------------------------- */
.dm-contact-box {
    border: 1px solid rgba(30, 16, 9, 0.5);
}

.dm-contact-portal .dm-option-button,
.dm-contact-portal .dm-option-button .btn {
    width: 100%;
}

/* Gravity Forms (gravity-theme): outlined fields, placeholder labels */
.dm-contact-form .gform_wrapper.gravity-theme {
    margin: 0;
}

.dm-contact-form .gform_wrapper.gravity-theme .gform_fields {
    grid-row-gap: 1.9rem;
}

.dm-contact-form .gform_wrapper.gravity-theme input[type="text"],
.dm-contact-form .gform_wrapper.gravity-theme input[type="email"],
.dm-contact-form .gform_wrapper.gravity-theme textarea {
    width: 100%;
    height: 4.5rem;
    padding: 0 1.8rem;
    border: 1px solid var(--dm-brand-color-1);
    border-radius: 0;
    background-color: transparent;
    box-shadow: none;
    font-family: var(--dm-font-family-ui);
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 1.2125;
    color: var(--dm-brand-color-1);
}

.dm-contact-form .gform_wrapper.gravity-theme .gfield textarea,
.dm-contact-form .gform_wrapper.gravity-theme .gfield textarea.small,
.dm-contact-form .gform_wrapper.gravity-theme .gfield textarea.medium,
.dm-contact-form .gform_wrapper.gravity-theme .gfield textarea.large {
    display: block;
    height: 17.5rem;
    padding: 1.2rem 1.8rem;
    resize: vertical;
}

.dm-contact-form .gform_wrapper.gravity-theme ::placeholder {
    color: var(--dm-brand-color-1);
    opacity: 1;
}

.dm-contact-form .gform_wrapper.gravity-theme input:focus,
.dm-contact-form .gform_wrapper.gravity-theme textarea:focus {
    outline: 2px solid var(--dm-brand-color-4);
    outline-offset: 0;
}

.dm-contact-form .gform_wrapper.gravity-theme .gform_footer {
    margin: 3.1rem 0 0;
    padding: 0;
}

.dm-contact-form .gform_wrapper.gravity-theme .gform_button {
    min-width: 11.6rem;
    margin: 0;
    padding: 1.28rem 3.2rem;
    border: 0;
    border-radius: 0;
    background-color: var(--dm-brand-color-2);
    font-family: var(--dm-font-family-ui);
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 1.2125;
    color: var(--dm-brand-color-1);
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.dm-contact-form .gform_wrapper.gravity-theme .gform_button:hover,
.dm-contact-form .gform_wrapper.gravity-theme .gform_button:focus-visible {
    background-color: var(--dm-brand-color-4);
    color: var(--dm-brand-color-6);
}

.dm-contact-form .gform_wrapper.gravity-theme .gfield_validation_message,
.dm-contact-form .gform_wrapper.gravity-theme .validation_message {
    margin-top: 0.6rem;
    padding: 0;
    border: 0;
    background: none;
    font-family: var(--dm-font-family-ui);
    font-size: 1.4rem;
    color: var(--dm-brand-color-3);
}

.dm-contact-form .gform_wrapper.gravity-theme .gfield_error input,
.dm-contact-form .gform_wrapper.gravity-theme .gfield_error textarea {
    border-color: var(--dm-brand-color-3);
}

.dm-contact-form .gform_wrapper.gravity-theme .gform_validation_errors {
    margin: 0 0 2rem;
    padding: 1.2rem 1.6rem;
    border: 1px solid var(--dm-brand-color-3);
    border-radius: 0;
    background: none;
    box-shadow: none;
}

.dm-contact-form .gform_wrapper.gravity-theme .gform_validation_errors > h2 {
    font-family: var(--dm-font-family-ui);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--dm-brand-color-3);
}

.dm-contact-form .gform_confirmation_message {
    font-size: var(--dm-body-l);
    line-height: 1.2;
}


/* -----------------------------------------------------------------
   Dark leather sections: Dark Chocolate base so cream text stays
   readable before (or without) the texture image
   ----------------------------------------------------------------- */
.dm-section.dm-on-dark {
    background-color: var(--dm-brand-color-9);
}

/* Testimonial cards sit on Sky Blue inside a dark section */
.dm-on-dark .dm-testimonial__card,
.dm-on-dark .dm-testimonial__card :is(p, span, blockquote, figcaption) {
    --dm-text-color: var(--dm-brand-color-5);
    color: var(--dm-brand-color-5);
}


/* -----------------------------------------------------------------
   Motion: image reveal frames and smooth scroll
   (inc/dm-image-reveal.php, js/dm-motion.js; off under Reduce Motion)
   ----------------------------------------------------------------- */
.dm-reveal--img {
    display: block;
    position: relative;
    overflow: hidden;
    max-width: 100%;
}

.dm-reveal--img > img.dm-image {
    width: 100%;
    height: 100%;
}

.dm-reveal--img,
.dm-service-row__media.dm-reveal,
.dm-dynamic-team__photo.dm-reveal {
    background-color: var(--dm-reveal-color, transparent);
}

.dm-motion .dm-reveal img {
    opacity: 0;
    transform: scale(1.06);
    transition: opacity 1s cubic-bezier(0.2, 0.7, 0.2, 1), transform 1.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.dm-motion .dm-reveal.is-revealed img {
    opacity: 1;
    transform: scale(1);
}

/* Parallax frames: GSAP owns the transform, the reveal only fades */
.dm-motion .dm-reveal[data-parallax] img {
    transition: opacity 1s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.dm-motion a.dm-reveal.is-revealed:hover img,
.dm-motion a.dm-reveal.is-revealed:focus-visible img {
    transform: scale(1.03);
}

html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
    .dm-reveal img {
        opacity: 1 !important;
        transform: none !important;
    }
}


/* Contact hero: let the two-line heading wrap naturally on phones */
@media (max-width: 599px) {
    .dm-contact-hero h1 br {
        display: none;
    }
}


/* -----------------------------------------------------------------
   Background video (moose/dm-bg-img "Show video")
   Sits above the background image and below section content; fades in
   once playing. Hidden under Reduce Motion so the image shows.
   ----------------------------------------------------------------- */
.dm-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    overflow: hidden;
    border: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1.2s ease;
}

.dm-bg-video.is-playing {
    opacity: 1;
}

.dm-bg-video--vimeo {
    container-type: size;
}

.dm-bg-video--vimeo iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: max(100cqw, 177.78cqh);
    height: max(100cqh, 56.25cqw);
    border: 0;
    transform: translate(-50%, -50%);
}

@media (prefers-reduced-motion: reduce) {
    .dm-bg-video {
        display: none;
    }
}


/* -----------------------------------------------------------------
   Insights (moose/dm-dynamic-blog, Bonsai card), Figma y 9440
   Cards 447 x 555: image 399 x 332 inset 24/26, eyebrow, centred
   title, Read link. Fill cycles Hazelnut, Chocolate, Chocolate.
   ----------------------------------------------------------------- */
.dm-home-insights .dm-section-heading {
    padding-bottom: 2.8rem;
}

.dm-home-insights .dm-dynamic-blog {
    margin-top: 6.2rem;
}

.dm-home-insights .dm-dynamic-blog__load-more {
    display: none;
}

.dm-dynamic-blog .dm-dynamic-blog__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
}

@media (min-width: 768px) {
    .dm-dynamic-blog .dm-dynamic-blog__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    .dm-dynamic-blog .dm-dynamic-blog__grid {
        grid-template-columns: repeat(var(--dm-blog-columns, 3), minmax(0, 1fr));
    }
}

.dm-dynamic-blog .dm-dynamic-blog__card {
    min-height: 55.5rem;
    transition: background-color 0.35s ease;
    padding: 2.6rem 2.4rem 3.3rem;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    background-color: var(--dm-brand-color-5);
    color: var(--dm-bonsai-cream);
}

/* Hazelnut is the hover state (Figma showed it on the first card) */
.dm-dynamic-blog .dm-dynamic-blog__card:hover,
.dm-dynamic-blog .dm-dynamic-blog__card:focus-within {
    background-color: var(--dm-brand-color-3);
}

.dm-dynamic-blog .dm-dynamic-blog__card:hover {
    box-shadow: none;
}

.dm-dynamic-blog .dm-dynamic-blog__image {
    aspect-ratio: 399 / 332;
    background-color: var(--dm-reveal-color, transparent);
}

.dm-dynamic-blog .dm-dynamic-blog__card:hover .dm-dynamic-blog__image img {
    transform: scale(1.03);
}

.dm-dynamic-blog .dm-dynamic-blog__content {
    flex: 1;
    align-items: center;
    padding: 1.9rem 0 0;
    text-align: center;
}

.dm-dynamic-blog .dm-dynamic-blog__cat {
    padding: 0;
    border-radius: 0;
    background: none;
    color: var(--dm-bonsai-cream);
    font-size: var(--dm-bonsai-eyebrow-size);
    font-weight: 400;
}

.dm-dynamic-blog .dm-dynamic-blog__title {
    max-width: 39.5rem;
    margin: 1.1rem 0 0;
    font-family: var(--dm-font-family-heading);
    font-size: var(--dm-h5);
    font-weight: 500;
    line-height: 1.2;
}

.dm-dynamic-blog .dm-dynamic-blog__title a,
.dm-dynamic-blog .dm-dynamic-blog__card:hover .dm-dynamic-blog__title a {
    color: var(--dm-bonsai-cream);
    text-decoration: none;
}

.dm-dynamic-blog .dm-dynamic-blog__title a:hover,
.dm-dynamic-blog .dm-dynamic-blog__title a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 0.3rem;
    text-decoration-thickness: 1px;
}

.dm-dynamic-blog .dm-dynamic-blog__read {
    margin-top: auto;
    padding-top: 3.8rem;
}

@media (max-width: 767px) {
    .dm-dynamic-blog .dm-dynamic-blog__card {
        min-height: 0;
    }
}


/* -----------------------------------------------------------------
   Solid header bar (pages that do not open with a dark hero)
   ----------------------------------------------------------------- */
.dm-header.dm-header--overlay.dm-header--solid {
    position: relative;
    background-color: var(--dm-brand-color-9);
    background-image: url('../../../uploads/2026/09/bonsai-leather-hero.webp');
    background-size: cover;
    background-position: center 30%;
}


/* -----------------------------------------------------------------
   Single post (templates/single.html)
   Leather hero like the Contact page; the featured image overlaps its
   bottom edge. Article column 896 + sidebar 447 at 1440.
   ----------------------------------------------------------------- */
:root {
    --dm-post-overlap: clamp(6rem, 11vw, 16rem);
}

.dm-post-hero {
    position: relative;
    padding-block: clamp(13rem, 14vw, 20rem) calc(var(--dm-post-overlap) + clamp(4rem, 4.5vw, 6.4rem));
    background-color: var(--dm-brand-color-9);
    background-image: url('../../../uploads/2026/09/bonsai-leather-cta.webp');
    background-size: cover;
    background-position: center;
}

.dm-post-hero__inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.dm-post-hero .dm-post-hero__cat {
    margin: 0 0 1.8rem;
    color: var(--dm-bonsai-cream);
}

.dm-post-hero .dm-post-hero__title {
    --dm-font-size: var(--dm-h3);
    --dm-line-height: 1.0909;
    max-width: 100rem;
    margin: 0;
    font-size: var(--dm-h3);
    line-height: 1.0909;
}

.dm-post-hero .dm-post-hero__date {
    margin-top: 2.2rem;
    font-size: 1.8rem;
    font-style: italic;
    color: var(--dm-bonsai-cream);
}

.dm-post-body {
    padding-block: 0 clamp(8rem, 10vw, 14.9rem);
}

.dm-post-body .dm-single-post {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 5.6rem;
}

@media (min-width: 992px) {
    .dm-post-body .dm-single-post {
        grid-template-columns: minmax(0, 896fr) minmax(30rem, 447fr);
        gap: 3.7rem;
    }
}

/* Featured image pulled up over the hero */
.dm-post-body .dm-single-post__image {
    position: relative;
    z-index: 1;
    margin: calc(-1 * var(--dm-post-overlap)) 0 5.6rem;
    border-radius: 0;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background-color: var(--dm-bonsai-milk-chocolate);
}

.dm-post-body .dm-single-post__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Article prose */
.dm-post-body .dm-single-post__content {
    max-width: 72rem;
    margin-bottom: 5.6rem;
}

.dm-post-body .dm-single-post__content :is(p, li) {
    font-size: var(--dm-body);
    line-height: 1.5;
    color: var(--dm-body-color);
}

.dm-post-body .dm-single-post__content p {
    margin: 0 0 2.2rem;
}

.dm-post-body .dm-single-post__content h2 {
    --dm-font-size: var(--dm-h4);
    font-size: var(--dm-h4);
    margin: 4.8rem 0 1.6rem;
}

.dm-post-body .dm-single-post__content h3 {
    --dm-font-size: var(--dm-h5);
    font-size: var(--dm-h5);
    margin: 3.6rem 0 1.2rem;
}

.dm-post-body .dm-single-post__content blockquote {
    margin: 4rem 0;
    padding: 0 0 0 2.4rem;
    border-left: 1px solid var(--dm-brand-color-3);
    font-style: normal;
}

.dm-post-body .dm-single-post__content blockquote p {
    font-size: var(--dm-body-l);
    line-height: 1.2;
    color: var(--dm-brand-color-5);
}

.dm-post-body .dm-single-post__content a:not([class]) {
    color: var(--dm-brand-color-3);
    text-underline-offset: 0.3rem;
}

/* Back link */
.dm-post-body .dm-single-post__back {
    padding-top: 3.2rem;
    border-top: 1px solid var(--dm-brand-color-7);
}

.dm-post-body .dm-single-post__back p {
    margin: 0;
}

.dm-post-body .dm-single-post__back a.dm-text-link {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    color: var(--dm-brand-color-3);
    flex-direction: row-reverse;
}

.dm-post-body .dm-single-post__back a.dm-text-link:hover {
    background: none;
    color: var(--dm-brand-color-5);
}

.dm-text-link--back::after {
    transform: rotate(180deg);
}

.dm-text-link--back:hover::after {
    transform: rotate(180deg) translateX(0.3rem);
}

/* Sidebar CTA: Sky Blue brand card, visible on all widths */
.dm-post-body .dm-single-post__sidebar {
    display: block;
}

@media (min-width: 992px) {
    /* Card top aligns with the featured image, overlapping the hero by the same amount */
    .dm-post-body .dm-single-post__sidebar {
        position: sticky;
        top: 3.2rem;
        align-self: start;
        z-index: 1;
        margin-top: calc(-1 * var(--dm-post-overlap));
    }
}

.dm-post-body .dm-single-post__cta-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 3.6rem 3.3rem 4rem;
    border: 0;
    border-radius: 0;
    background: var(--dm-brand-color-8);
}

.dm-post-body .dm-single-post__cta-card .dm-eyebrow {
    margin: 0 0 1rem;
}

.dm-post-body .dm-single-post__card-heading {
    --dm-font-size: var(--dm-h4);
    --dm-font-weight: 500;
    margin: 0;
    font-size: var(--dm-h4);
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.1;
}

.dm-post-body .dm-single-post__cta-text {
    margin: 1.8rem 0 3.2rem;
    font-size: var(--dm-body);
    line-height: 1.3;
    color: var(--dm-body-color);
}


/* -----------------------------------------------------------------
   Archive and search results (templates/archive.html, search.html)
   The blueprint puts dm-search-grid on both the query wrapper and the
   post list, which nests two 3-column grids; only the list is a grid.
   ----------------------------------------------------------------- */
.wp-block-query.dm-search-grid {
    display: block;
}

.dm-section:has(> .dm-container > .wp-block-query-title) {
    padding-block: clamp(5.6rem, 7vw, 10rem) clamp(8rem, 10vw, 14.9rem);
}

.wp-block-query-title {
    --dm-font-size: var(--dm-h2);
    font-size: var(--dm-h2);
    padding-bottom: 3.4rem;
    border-bottom: 1px solid var(--dm-brand-color-7);
}

.wp-block-query ul.dm-search-grid {
    margin: 4.8rem 0 0;
    padding: 0;
    list-style: none;
    gap: 5.6rem 2rem;
}

.dm-search-grid__item {
    gap: 1.6rem;
    padding-top: 2.4rem;
    border-top: 1px solid var(--dm-brand-color-3);
}

.dm-search-grid__item .wp-block-post-title {
    --dm-font-size: var(--dm-h5);
    font-size: var(--dm-h5);
    line-height: 1.2;
}

.dm-search-grid__item .wp-block-post-excerpt__excerpt {
    margin: 0;
    font-size: var(--dm-body);
    line-height: 1.4;
}

.dm-search-grid__item .wp-block-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-family: var(--dm-font-family-ui);
    font-size: var(--dm-bonsai-link-size);
    font-weight: 500;
    color: var(--dm-brand-color-3);
    text-decoration: none;
}

.dm-search-grid__item .wp-block-read-more:hover {
    color: var(--dm-brand-color-5);
}

@media (max-width: 767px) {
    .wp-block-query ul.dm-search-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}


/* -----------------------------------------------------------------
   Back to top: square Blue button with the brand arrow, like every
   other button; shows after 100px of scroll (js/global.js).
   ----------------------------------------------------------------- */
.back-to-top {
    right: clamp(1.6rem, 2.1vw, 3rem);
    bottom: clamp(1.6rem, 2.1vw, 3rem);
    z-index: var(--dm-z-fixed);
    align-items: center;
    justify-content: center;
    width: 4.5rem;
    height: 4.5rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    background-color: var(--dm-brand-color-2);
    color: var(--dm-brand-color-1);
    transform: translateY(0.8rem);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background-color 0.25s ease, color 0.25s ease;
}

.back-to-top.btt-show {
    transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus-visible {
    background-color: var(--dm-brand-color-4);
    color: var(--dm-brand-color-6);
}

.back-to-top:focus-visible {
    outline: 2px solid var(--dm-bonsai-cream);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px var(--dm-brand-color-4);
}

.back-to-top .back-to-top__icon {
    width: 1.4rem;
    height: 1.4rem;
    fill: none;
    transform: rotate(-90deg);
}


/* -----------------------------------------------------------------
   404 (templates/404.html): brand heading size and a single flat
   button (the core button link inside .btn otherwise draws a pill)
   ----------------------------------------------------------------- */
.error404 main h1.dm-text {
    --dm-font-size: var(--dm-h2);
    font-size: var(--dm-h2);
    line-height: 1.1;
}

.error404 main .wp-block-button.btn {
    padding: 0;
    border: 0;
}

.error404 main .wp-block-button.btn .wp-block-button__link {
    display: block;
    padding: var(--dm-button-padding);
    border-radius: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-decoration: none;
}


/* Desktop menu hover: colour change only, no blueprint underline */
.dm-header--overlay .main-nav .menu > li > a::before {
    content: none;
}
