/*
Theme Name: MCMC
Author: FIVE Creative
Author URI: https://fivecreative.com.au
Description: WordPress theme for Merri Creek Management Committee
Requires at least: 6.8
Tested up to: 7.1
Requires PHP: 8.0
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mcmc
*/


/* ============================================================
   LEGACY TOKENS
   Design tokens (type, sizes, colours, pairs, themes) are defined in
   src/scss/abstracts/_tokens.scss and compiled into main.min.css.
   These remaining --mcmc-* vars serve the legacy rules below and go
   as each module is rebuilt.
   ============================================================ */

:root {

    --mcmc-header-gap: 2.25rem;
    --mcmc-header-height: var(--nav-height);

    /* Outer page margins follow the design's side margins */
    --mcmc-gutter: var(--gutter);

    /* Spacing scale (4px base) */
    --mcmc-sp-1:  0.25rem;
    --mcmc-sp-2:  0.5rem;
    --mcmc-sp-3:  0.75rem;
    --mcmc-sp-4:  1rem;
    --mcmc-sp-5:  1.25rem;
    --mcmc-sp-6:  1.5rem;
    --mcmc-sp-10: 2.5rem;
    --mcmc-sp-15: 3.75rem;
    --mcmc-sp-20: 4rem;
    --mcmc-sp-30: 7.5rem;

    --mcmc-radius: 0;
}

@media (max-width: 1200px) {
    :root {
        --mcmc-header-gap: 1.5rem;
    }
}


/* ============================================================
   GLOBAL
   ============================================================ */
body {
    overflow-x: clip; /* not hidden: that makes body a scroll container and breaks the sticky header */
}

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

/* Plain text links only: buttons and arrow links in rich text keep their own hover */
p a:not([class]):hover {
    text-decoration: none;
    opacity: 0.5;
}

ul,
ol {
    margin: 0 0 var(--mcmc-sp-6);
    padding-left: 1.5rem;
}

h6, 
.h6, 
h5, 
.h5, 
h4, 
.h4, 
h3, 
.h3, 
h2, 
.h2, 
h1, 
.h1 {
    margin-bottom: 36px;
}

p:last-child,
h1:last-child,
h2:last-child,
h3:last-child,
h4:last-child,
h5:last-child,
h6:last-child,
ol:last-child,
ul:last-child {
    margin-bottom: 0;
}

b, strong {
    font-weight: var(--type-weight-medium);
}

.bg-dark-purple,
.bg-dark-purple * {
    color: var(--bs-off-white);
}

/* Explicit selectors for elements whose own type rules may win over the * above */
.bg-dark-purple h1,
.bg-dark-purple h2,
.bg-dark-purple h3,
.bg-dark-purple h4,
.bg-dark-purple h5,
.bg-dark-purple h6,
.bg-dark-purple p,
.bg-dark-purple li,
.bg-dark-purple td,
.bg-dark-purple th,
.bg-dark-purple label,
.bg-dark-purple a:not(.btn) {
    color: var(--bs-off-white);
}

/* Outer page margins — the design side margins (see --gutter) */
.container-fluid {
    padding-inline: var(--mcmc-gutter);
}
/* Bootstrap rows use the design's column gutter (20 / 30 / 40) */
.row {
    --bs-gutter-x: var(--grid-gutter);
}


   SECTIONS — FLEXIBLE LAYOUT
   ============================================================ */

/* Legacy sections only (div wrapper); rebuilt sections are <section> and set their own padding.
   Not the article column of a page without sections (page.php), which sets its own
   (templates/_article.scss): this rule took its side margin away below 1105px. */
div.mcmc-section {
    --mcmc-section-bg: var(--bs-body-bg);
}

div.mcmc-section:not(.mcmc-article) {
    padding: var(--mcmc-sp-30) 0;
}

@media (max-width: 1105px) {
    div.mcmc-section:not(.mcmc-article) { padding: var(--mcmc-sp-15) 0; } /* 60px */
}

.mcmc-section.mcmc-section--no-padding-below {
    padding-bottom: 0;
}


.mcmc-section--columned_content .mcmc-section--top-border h2,
.mcmc-section--columned_content .mcmc-section--top-border h3,
.mcmc-section--columned_content .mcmc-section--top-border h4,
.mcmc-section--columned_content .mcmc-section--top-border h5,
.mcmc-section--columned_content .mcmc-section--top-border h6 {
    font-weight: var(--type-weight-medium);
}


.mcmc-section.bg-dark-purple     { --mcmc-section-bg: var(--bs-dark-purple); }
.mcmc-section.bg-light-purple        { --mcmc-section-bg: var(--bs-light-purple); }
.mcmc-section.bg-off-white       { --mcmc-section-bg: var(--bs-off-white); }

.mcmc-section.bg-white           { --mcmc-section-bg: var(--bs-white); }
.mcmc-section.bg-yellow { --mcmc-section-bg: var(--bs-yellow); }
.mcmc-section.bg-pink      { --mcmc-section-bg: var(--bs-pink); }

.mcmc-section--columned_content .mcmc-section--top-border::before {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background: var(--bs-heading-color);
    margin-bottom: var(--mcmc-sp-5);
}

.mcmc-section--columned_content .mcmc-col-divider {
    margin: var(--mcmc-sp-15) 0;
}

.mcmc-section--columned_content .mcmc-col-divider::before {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background: var(--bs-heading-color);
}

.mcmc-section--columned_content .mcmc-col-divider--hidden::before {
    content: none;
}

@media (max-width: 767.98px) {
    .mcmc-section--columned_content .mcmc-col-divider {
        margin: 50px 0;
    }
}


/* Section — Hero (front page) */
.mcmc-section.mcmc-section--hero_banner_front_page {
    padding: 0;
    height: calc(100svh - (var(--mcmc-header-height) + var(--mcmc-gutter)));
    display: flex;
    flex-direction: column;
}

/* Propagate height through Bootstrap grid so .hero-fp-wrap can grow */
.mcmc-section--hero_banner_front_page > .container-fluid {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.mcmc-section--hero_banner_front_page .row {
    --bs-gutter-x: 0;
    flex: 1;
    min-height: 0;
}


.mcmc-section--hero_banner_front_page .row > .col {
    min-height: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.hero-fp-wrap {
    flex: 1;
    min-height: 0;
    position: relative;
    display: flex;
    flex-direction: column;
}

.hero-fp-photo {
    flex: 1;
    min-height: 0;
    border-radius: var(--mcmc-radius);
    overflow: hidden;
    margin-bottom: 69px;
}


.hero-fp-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.hero-fp-overlay {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 39.375rem;               /* 630px */
    max-width: 50%;
    aspect-ratio: 630 / 409;
    /* min-height: 25.5625rem;         409px — floor if content exceeds ratio */
    background: var(--bs-dark-purple);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3.625rem 3.625rem 2.25rem 3.25rem;
    z-index: 1;
    gap: 1.375rem;                     /* 22px — Figma gap-[22px] between title and button */
}

.hero-fp-overlay .hero-fp-title {
    color: var(--bs-off-white);
    font-size: var(--type-header-a-fs) !important;
    font-weight: var(--type-weight-semibold);
    letter-spacing: var(--type-ls-display);
    line-height: var(--type-lh-display);
    margin: 0;
    max-width: 31.9375rem;          /* 511px */
}

.hero-fp-btn {
    --bs-btn-hover-bg: transparent;
    --bs-btn-hover-color: var(--bs-off-white);
    --bs-btn-hover-border-color: var(--bs-off-white);
    align-self: flex-end;
    background: var(--bs-off-white);
    color: var(--bs-dark-purple);
    border-color: var(--bs-off-white);
}


/* Section — Hero (inner pages) */
/* ── Intro Module (hero_banner flexible layout) ─ */
.mcmc-section.mcmc-section--hero_banner,
.mcmc-section.mcmc-section--post-intro {
    padding-top: 0;
}

.mcmc-intro-module {
    display: flex;
    flex-direction: column;
    /* justify-content: space-between; */
    gap: 4rem;
    width: 100%;
    /* min-height: calc(100svh - (var(--mcmc-header-height) + (var(--mcmc-gutter) * 2))); */
}

.mcmc-intro-module svg {
    overflow: visible;
}

.mcmc-intro-module__gap {
    gap: 8px;
}

.mcmc-intro-module__header {
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
    padding-top: 7.5rem;
}

.mcmc-intro-module__breadcrumb,
.mcmc-intro-module__breadcrumb .rank-math-breadcrumb,
.mcmc-intro-module__breadcrumb .rank-math-breadcrumb p {
    font-weight: var(--type-weight-book);
    line-height: var(--type-lh-text);
    color: var(--bs-body-color);
    margin: 0;
}

.mcmc-intro-module__breadcrumb .rank-math-breadcrumb p {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    row-gap: 0;
    flex-wrap: wrap;
}

.mcmc-intro-module__breadcrumb .rank-math-breadcrumb a,
.mcmc-intro-module__breadcrumb .rank-math-breadcrumb .separator {
    opacity: 0.5;
    color: inherit;
    text-decoration: none;
}
.mcmc-intro-module__breadcrumb .rank-math-breadcrumb a:hover {
    opacity: 1;
}

.mcmc-intro-module__breadcrumb .rank-math-breadcrumb .separator {
    font-size: 0;
    display: inline-flex;
    align-items: center;
    align-self: center;
    width: 0.75rem; /* 11px — Figma Arrow_Right_MD */
    height: 0.75rem;
    margin-bottom: -3px; /* align with text baseline */
}

.mcmc-intro-module__breadcrumb .rank-math-breadcrumb .separator::before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background-color: currentColor;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='4 5 16 14' fill='none'%3E%3Cpath d='M5 12H19M13 6L19 12L13 18' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='4 5 16 14' fill='none'%3E%3Cpath d='M5 12H19M13 6L19 12L13 18' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    -webkit-mask-position: center;
    mask-repeat: no-repeat;
    mask-size: contain;
    mask-position: center;
}

@media (max-width: 767.98px) {
    .mcmc-intro-module__breadcrumb .rank-math-breadcrumb .last {
        max-width: 12.5rem; /* 200px */
    }
}

.mcmc-intro-module__heading {
    font-size: var(--type-h1-fs);
    line-height: var(--type-lh-display);
    font-weight: var(--type-weight-semibold);
    max-width: 63.75rem; /* 1020px */
    margin: 0;
}

.mcmc-intro-module__body {
    display: flex;
    flex-direction: column;
    gap: var(--mcmc-header-gap); /* 36px */
}

.mcmc-intro-module__content {
    max-width: 63.75rem; /* 1020px */
    font-weight: var(--type-weight-book);
    line-height: var(--type-lh-text);
    margin: 0;
}

.mcmc-intro-module__content p:last-child {
    margin: 0;
}

/* Section — Full width image + written content */
.mcmc-section.mcmc-section--full_width_image_written_content .image-wrap img {
    width: 100%;
    display: none;
    height: auto;
}

.mcmc-section.mcmc-section--full_width_image_written_content .image-wrap img + img {
    display: block;
}

.mcmc-section.mcmc-section--full_width_image_written_content .card-body > * {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.mcmc-section.mcmc-section--full_width_image_written_content .card-body > *:last-child {
    margin-bottom: 0;
}


/* Section — Coloured section with image */
.mcmc-section--coloured_section_with_image img {
    display: block;
    margin: 0 0 0 auto;
    height: 100%;
    width: 100%;
    object-fit: cover;
    border-radius: 0 0 var(--mcmc-radius) var(--mcmc-radius);
    aspect-ratio: 1.2;
}

.mcmc-section--coloured_section_with_image .card-body {
    padding-top: 40px;
    padding-bottom: 40px;
}

/* Outline button hover inside this section: text matches the CARD's bg colour.
   Targets .card.bg-[color] so the card's class wins over the outer section's bg class
   when they differ. Specificity: section-class + card-class + btn-class = 0,4,0. */
.mcmc-section--coloured_section_with_image .card.bg-dark-purple .btn.btn-outline{
    --bs-btn-hover-color: var(--bs-dark-purple);
}

.mcmc-section--coloured_section_with_image .card.bg-light-purple .btn.btn-outline{
    --bs-btn-hover-color: var(--bs-light-purple);
}
.mcmc-section--coloured_section_with_image .card.bg-off-white .btn.btn-outline{
    --bs-btn-hover-color: var(--bs-off-white);
}
.mcmc-section--coloured_section_with_image .card.bg-white .btn.btn-outline{
    --bs-btn-hover-color: var(--bs-white);
}
.mcmc-section--coloured_section_with_image .card.bg-yellow .btn.btn-outline{
    --bs-btn-hover-color: var(--bs-yellow);
}
.mcmc-section--coloured_section_with_image .card.bg-pink .btn.btn-outline{
    --bs-btn-hover-color: var(--bs-pink);
}
.mcmc-section--coloured_section_with_image .card.bg-orange .btn.btn-outline{
    --bs-btn-hover-color: var(--bs-orange);
}
.mcmc-section--coloured_section_with_image .card.bg-dark-green .btn.btn-outline{
    --bs-btn-hover-color: var(--bs-dark-green);
}
/* dark-purple * rule forces off-white on all descendants; fight it explicitly on hover */
.mcmc-section--coloured_section_with_image .card.bg-dark-purple .btn.btn-outline:hover{
    color: var(--bs-btn-hover-color);
}


/* ── Linked Cards ──────────────────────────────────────────────────────────── */
.mcmc-linked-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--mcmc-sp-15);
}

.mcmc-linked-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--bs-body-color);
    border-bottom: 1px solid currentColor;
    transition: opacity .2s ease;
}

.mcmc-linked-card--url {
    padding-bottom: 1.25rem; /* 20px — Figma gap between title row and divider */
}

.mcmc-linked-card--file {
    gap: 0.75rem;           /* 12px — Figma gap between title row and meta tag */
    padding-bottom: 1.5rem; /* 24px — Figma gap between meta tag and divider */
}

.mcmc-linked-card--none {
    padding-bottom: 1.25rem;
    gap: 0.75rem;
    border: none;
}

.mcmc-linked-card--none .mcmc-linked-card__title {
    font-weight: var(--type-weight-medium);
    margin-bottom: 0;
}

.mcmc-linked-card__head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--mcmc-sp-4);
    width: 100%;
}

.mcmc-linked-card__title {
    font-weight: var(--type-weight-medium);
    line-height: var(--type-lh-text);
}

/* .mcmc-linked-card__description {
    font-size: var(--type-small-fs);
    line-height: var(--type-lh-text);
} */

.mcmc-linked-card__description > * {
    margin-bottom: 0;
}


@keyframes mcmc-arrow-exit {
    from { transform: translateX(0); }
    to   { transform: translateX(103%); }
}

@keyframes mcmc-arrow-enter {
    from { transform: translateX(-103%); }
    to   { transform: translateX(0); }
}

@keyframes mcmc-arrow-exit-left {
    from { transform: translateX(0); }
    to   { transform: translateX(-103%); }
}

@keyframes mcmc-arrow-enter-left {
    from { transform: translateX(103%); }
    to   { transform: translateX(0); }
}

.mcmc-arrow-wrap {
    position: relative;
    display: inline-flex;
    overflow: hidden;
    flex-shrink: 0;
}

.mcmc-arrow-clone {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: translateX(-103%);
}

.mcmc-linked-card:hover .mcmc-linked-card__arrow {
    animation: mcmc-arrow-exit 0.3s ease forwards;
}

.mcmc-linked-card:hover .mcmc-arrow-clone {
    animation: mcmc-arrow-enter 0.3s ease forwards;
}

@media (prefers-reduced-motion: reduce) {
    .mcmc-linked-card:hover .mcmc-linked-card__arrow,
    .mcmc-linked-card:hover .mcmc-arrow-clone {
        animation: none;
    }
}

.mcmc-linked-card__meta {
    gap: 0.5rem;
}

.mcmc-linked-card:hover .mcmc-linked-card__meta {
    --bs-btn-bg: var(--bs-body-color);
    --bs-btn-color: var(--bs-body-bg);
    --bs-btn-border-color: var(--bs-body-color);
}

@media (max-width: 1105px) {
    .mcmc-linked-cards {
        column-gap: var(--mcmc-sp-5);
    }

    .mcmc-section.mcmc-section--hero_banner_front_page {
        height: calc(100svh - var(--mcmc-header-height) - 40px);
        padding-bottom: calc(var(--mcmc-gutter) * 2);
    }
}

@media (max-width: 767.98px) {
    .mcmc-linked-cards {
        grid-template-columns: 1fr;
        row-gap: var(--mcmc-sp-10);
    }


    .mcmc-linked-card--none {
        padding-bottom: 0;
    }
}

/* Section — list item spacing (legacy sections only) */
div.mcmc-section ul li,
div.mcmc-section ol li {
    margin: 0 0 0.625rem;
}


/* ── News Cards ───────────────────────────────────────────────────────────── */


.mcmc-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.71875rem 0.875rem; /* 11.5px 14px — Figma tag spec */
    border-radius: 0.3125rem; /* 5px */
    border: 1px solid transparent;
    font-size: var(--type-small-fs);
    font-weight: var(--type-weight-medium);
    color: var(--bs-soft-black);
    cursor: pointer;
    text-decoration: none;
    max-height: 2.125rem; /* 34px */
    transition: background-color .25s ease, border-color .25s ease, color .25s ease;
    line-height: var(--type-lh-text) !important;
}

.mcmc-tag:hover {
    background-color: transparent !important;
    border-color: var(--bs-body-color);
    color: var(--bs-body-color) !important;
}

.mcmc-tag.bg-dark-purple {
    color: var(--bs-off-white);
}

@media (max-width: 767.98px) {
    .mcmc-tag {
        max-height: 2rem; 
    }
}

/* ── News Card - New (Figma node 1068:12429) ──────────────────────────────── */
.mcmc-news-card-new {
    position: relative;
    background: var(--bs-off-white);
    border-radius: var(--mcmc-radius);
    overflow: hidden;
    color: var(--bs-body-color);
}


.mcmc-news-card-new__inner {
    position: relative;
    z-index: 1;
    padding: 3.25rem 1.875rem 1.875rem; /* 52px top, 30px sides/bottom — Figma content origin */
    justify-content: space-between;
}

@media (max-width: 767.98px) {
    .mcmc-news-card-new__inner { padding: 3.1875rem 1.25rem 1.25rem; /* 51px top, 20px sides/bottom — Figma mobile */ }
}

.mcmc-news-card-new__upper {
    display: flex;
    flex-direction: column;
    gap: 3rem; /* 48px — Figma gap between date and body */
    flex: 1;
}

.mcmc-news-card-new__meta {
    font-size: var(--type-small-fs);
    font-weight: var(--type-weight-medium);
    line-height: var(--type-lh-text);
    margin: 0;
}

.mcmc-news-card-new__body {
    display: flex;
    flex-direction: column;
    gap: var(--mcmc-sp-6); /* 24px — locks read more directly to text */
}

.mcmc-news-card-new__text {
    display: flex;
    flex-direction: column;
    gap: var(--mcmc-sp-6); /* 24px — Figma gap between title and excerpt */
}

.mcmc-news-card-new__title {
    font-weight: var(--type-weight-medium);
    line-height: var(--type-lh-text);
    margin: 0;
}

.mcmc-news-card-new__title a{
    color: inherit;
    text-decoration: none;
}

.mcmc-news-card-new__excerpt {
    font-weight: var(--type-weight-book);
    line-height: var(--type-lh-text);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mcmc-news-card-new__readmore {
    display: inline-flex;
    align-items: baseline;
    gap: 0;
    font-size: var(--type-small-fs);
    font-weight: var(--type-weight-medium);
    line-height: var(--type-lh-text);
    color: var(--bs-body-color);
    text-decoration: none;
}

.mcmc-news-card-new__readmore .mcmc-arrow-wrap {
    max-width: 0;
    margin-right: 0;
    transition: max-width 0.25s ease, margin-right 0.25s ease;
}

.mcmc-news-card-new__readmore:hover .mcmc-arrow-wrap {
    max-width: 12px;
    margin-right: var(--mcmc-sp-2);
}

.mcmc-news-card-new__readmore .mcmc-arrow-wrap svg {
    transform: translateX(-103%);
    transition: transform 0.25s ease;
}

.mcmc-news-card-new__readmore:hover .mcmc-arrow-wrap svg {
    transform: translateX(0);
}

.mcmc-news-card-new__tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--mcmc-sp-3); /* 12px — Figma tag gap */
    padding-top: var(--mcmc-sp-10); /* 40px separation from body */
}

.mcmc-view-all {
    font-size: var(--type-body-fs);
    text-decoration: none;
    color: inherit;
}

.mcmc-view-all:hover {
    text-decoration: underline;
    color: inherit;
}


/* ── Quote Module ─────────────────────────────────────────────────────────── */
.mcmc-section--quote {
    padding: var(--mcmc-sp-10) 0;
}


.mcmc-section--quote blockquote {
    position: relative;
    padding: 100px 40px;
    border-radius: var(--mcmc-radius);
    border: 4px solid var(--bs-body-color);
    color: var(--bs-body-color);
}

.mcmc-section--quote.bg-dark-purple blockquote,
.bg-dark-purple .mcmc-section--quote blockquote {
    color: var(--bs-off-white);
    border-color: var(--bs-off-white);
}

.mcmc-quote-inner {
    display: flex;
    gap: var(--mcmc-sp-15);
    align-items: flex-end;
    flex-direction: column;
    font-weight: var(--type-weight-medium);
}

.mcmc-quote-text {
    flex: 1 0 0;
    min-width: 0;
}

.mcmc-quote-text > * {
    margin-bottom: 0;
}

.mcmc-quote-author {
    flex: 1 0 0;
    min-width: 0;
    text-align: right;
}

@media (min-width: 768px) {
    .mcmc-section--quote {
        padding: var(--mcmc-sp-15) 0;
    }

    .mcmc-section--quote blockquote {
        padding: 90px 60px;
    }

    .mcmc-quote-inner {
        flex-direction: row;
    }
}




/* Form width — every form that appears within .mcmc-intro-module: any
   <form> embedded in the content area (a Gravity Forms shortcode or
   otherwise) plus the site search form
   (.mcmc-search-form, which sits directly in .mcmc-intro-module rather
   than its __content). Mobile/tablet fallback below is narrower than any
   phone/tablet viewport, so it's effectively "full width" there; the
   min-width:992px overrides further down switch it to 50% of the section. */
.mcmc-intro-module__content form {
    --mcmc-form-width: 40rem; /* 640px */
    max-width: var(--mcmc-form-width);
}


/* The pasted embed puts a <br> after each of its three <script src="...">
   locale/date-library tags, ahead of the <form> itself — visible blank
   lines above the form otherwise. Scoped to script+br specifically (rather
   than all <br> in .mcmc-intro-module__content) since that container is
   shared with ordinary page content elsewhere, where a <br> is legitimate. */


/* ============================================================
   COMPONENTS
   ============================================================ */

/* Image hover zoom */


/* Card utility */
.card-body > *:last-child {
    margin-bottom: 0;
}

.card {
    --bs-card-spacer-y: 1.875rem;
    --bs-card-spacer-x: 1.875rem;
    --bs-border-radius: var(--mcmc-radius);
}


/* Typography utilities */


/* Layout utilities */
.col.col-narrow {
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
}


/* Button overrides */


button.btn.btn-link {
    padding: 0;
    height: auto;
}

button.btn.btn-link:hover {
    text-decoration: none;
}

/* Team members */


/* Recent work swiper */
.mcmc-section--recent_work_slider {
    overflow: hidden;
}


.recent-work-swiper-wrapper .swiper {
    overflow: visible;
}

.recent-work-swiper-wrapper .swiper-slide {
    width: 85%;
    height: auto;
}

.recent-work-swiper-wrapper.swiper-no-peek .swiper {
    overflow: hidden;
}

.recent-work-swiper-wrapper.swiper-no-peek .swiper-slide {
    width: 100%; /* 1 column on mobile */
}

.recent-work-swiper-wrapper .swiper-button-next {
    width: var(--arrow-circle-size);  /* spreadsheet "Arrow in Circle height" */
    height: var(--arrow-circle-size);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--bs-heading-color);
    flex-shrink: 0;
    position: static;
    margin: 0;
}

.recent-work-swiper-wrapper .swiper-button-next:hover svg:not(.mcmc-arrow-clone) {
    animation: mcmc-arrow-exit 0.3s ease forwards;
}

.recent-work-swiper-wrapper .swiper-button-next:hover .mcmc-arrow-clone {
    animation: mcmc-arrow-enter 0.3s ease forwards;
}

.recent-work-swiper-wrapper .swiper-button-prev {
    width: var(--arrow-circle-size);  /* spreadsheet "Arrow in Circle height" */
    height: var(--arrow-circle-size);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--bs-heading-color);
    flex-shrink: 0;
    position: static;
    margin: 0;
}

.recent-work-swiper-wrapper .swiper-button-prev .mcmc-arrow-clone {
    transform: translateX(103%);
}

.recent-work-swiper-wrapper .swiper-button-next .mcmc-arrow-wrap,
.recent-work-swiper-wrapper .swiper-button-prev .mcmc-arrow-wrap {
    width: 1.5rem;
    height: 1.5rem;
}

.recent-work-swiper-wrapper .swiper-button-next svg,
.recent-work-swiper-wrapper .swiper-button-prev svg {
    width: 100%;
    height: 100%;
}

.recent-work-swiper-wrapper .swiper-button-prev:hover svg:not(.mcmc-arrow-clone) {
    animation: mcmc-arrow-exit-left 0.3s ease forwards;
}

.recent-work-swiper-wrapper .swiper-button-prev:hover .mcmc-arrow-clone {
    animation: mcmc-arrow-enter-left 0.3s ease forwards;
}

.swiper-button-disabled {
    visibility: hidden !important;
}

/* Section title */
.col-content-section-title {
    margin: 0 0 var(--mcmc-sp-15);
}

.col-content-section-title h2 {
    margin-bottom: 0;
}

@media (max-width: 767.98px) {
    .col-content-section-title {
        margin-bottom: var(--mcmc-sp-10);
    }
}

.mcmc-col-image {
    border-radius: var(--mcmc-radius);
    overflow: hidden;
    height: 100%;
    position: relative;
}

.mcmc-col-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
}

@media (max-width: 767.98px) {
    .mcmc-col-image {
        aspect-ratio: 1.412;
    }

    .mcmc-section--columned_content .mcmc-row--has-image .mcmc-col--has-image {
        order: -1;
    }
}

@media (min-width: 768px) {
    .mcmc-row--has-image > div:not(.mcmc-col--has-image) {
        padding-top: var(--mcmc-sp-15);
        padding-bottom: var(--mcmc-sp-15);
    }
}

@media (min-width: 1440px) {
    .mcmc-row--has-image {
        align-items: center;
    }
    .mcmc-row--has-image .mcmc-col-image {
        min-height: 50vh;
    }
}

@media (min-width: 1919px) {
    .mcmc-row--has-image > div:not(.mcmc-col--has-image) {
        padding-top: var(--mcmc-sp-30);
        padding-bottom: var(--mcmc-sp-30);
    }
}

/* Full-width single column: no sibling defines row height, so render image at natural dimensions */
.mcmc-section--columned_content .col.mcmc-col--has-image .mcmc-col-image {
    height: auto;
}

.mcmc-section--columned_content .col.mcmc-col--has-image .mcmc-col-image img {
    position: static;
    height: 100%;
    width: 100%;
    object-fit: cover;
    max-height: 80vh;
}

@media (max-width: 767.98px) {
    .mcmc-section--columned_content .col.mcmc-col--has-image .mcmc-col-image {
        aspect-ratio: auto;
    }

    .mcmc-section--columned_content .col.mcmc-col--has-image .mcmc-col-image img {
        height: 60vh;
    }
}

/* .mcmc-col--has-box {
    display: flex;
    flex-direction: column;
} */

.mcmc-col-box {
    border-radius: var(--mcmc-radius);
    padding: var(--mcmc-sp-6);
    margin-top: var(--mcmc-sp-6);
}

@media (min-width: 768px) {
    .mcmc-col--has-box .mcmc-col-box {
        margin-top: var(--mcmc-sp-15);
    }
}

.mcmc-col-box__content strong {
    font-weight: var(--type-weight-medium);
}

.mcmc-col-box__content > *:last-child {
    margin-bottom: 0;
}

.mcmc-col-box__icon-list {
    list-style: none;
    padding: 0;
    margin: var(--mcmc-sp-6) 0 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.mcmc-section--columned_content .mcmc-col-box__icon-item {
    display: flex;
    align-items: center;
    gap: var(--mcmc-sp-3);
    margin: 0;
}

.mcmc-col-box__icon img {
    width: 1.5rem;
    height: 1.5rem;
    object-fit: contain;
    display: block;
}

/* ============================================================
   PAGINATION (archives)
   ============================================================ */

/* Pagination links — shared across search, category, archive pages */
.mcmc-pagination a:not(.mcmc-pagination__btn) {
    text-decoration: none;
    font-weight: var(--type-weight-medium);
}

.mcmc-pagination a:not(.mcmc-pagination__btn):hover {
    text-decoration: underline;
}

/* Figma-style pagination (search page) */
.mcmc-pagination__links {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.mcmc-pagination__links:has(.mcmc-pagination__prev):has(.mcmc-pagination__next) {
    justify-content: space-between;
}

.mcmc-pagination__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: var(--type-small-fs);
    font-weight: var(--type-weight-medium);
    line-height: var(--type-lh-text);
    text-decoration: none;
    color: var(--bs-body-color);
}

.mcmc-pagination__btn:hover {
    color: var(--bs-body-color);
    text-decoration: none;
}

.mcmc-pagination__prev .mcmc-arrow-wrap {
    transform: scaleX(-1);
}

.mcmc-pagination__btn:hover .mcmc-linked-card__arrow {
    animation: mcmc-arrow-exit 0.3s ease forwards;
}

.mcmc-pagination__btn:hover .mcmc-arrow-clone {
    animation: mcmc-arrow-enter 0.3s ease forwards;
}

@media (prefers-reduced-motion: reduce) {
    .mcmc-pagination__btn:hover .mcmc-linked-card__arrow,
    .mcmc-pagination__btn:hover .mcmc-arrow-clone {
        animation: none;
    }
}

.mcmc-pagination__rule {
    height: 1px;
    background-color: var(--bs-body-color);
    margin-top: 1.5rem;
}

.mcmc-section--search-results .mcmc-pagination {
    margin-top: var(--mcmc-sp-20);
}


/* ── Posts Grid (posts_grid flexible layout) ────────────────────────────── */

.mcmc-tag--active {
    border-color: var(--bs-body-color);
}

.mcmc-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3.75rem; /* 60px — Figma desktop card grid gap */
}

@media (max-width: 1199.98px) {
    .mcmc-posts-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767.98px) {
    .mcmc-posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem; /* 24px — Figma mobile card grid gap */
    }
}

.mcmc-posts-grid__item {
    display: flex;
    flex-direction: column;
}


.mcmc-section--posts_grid .mcmc-pagination {
    margin-top: var(--mcmc-sp-20);
}

/* ── Posts Grid Filters (posts_grid_filters flexible layout) ─────────── */

.mcmc-pgf {
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
}

.mcmc-pgf__rule-header {
    display: flex;
    flex-direction: column;
}

.mcmc-pgf__heading {
    font-size: var(--type-h3-fs);
    font-weight: var(--type-weight-medium);
    line-height: var(--type-lh-text);
    margin: 0;
}

.mcmc-pgf__body {
    display: flex;
    flex-direction: column;
}

.mcmc-pgf__rule {
    height: 2.25rem; /* 36px — matches Figma rule row height */
    border-top: 1px solid var(--bs-body-color);
}

.mcmc-pgf__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.mcmc-pgf__taxes {
    display: flex;
    align-items: center;
    column-gap: 2.25rem; /* 36px — Figma gap between taxonomy buttons */
    row-gap: 0.5rem;
    flex-wrap: wrap;
}

.mcmc-pgf__tax-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem; /* 12px — Figma gap between label and icon */
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: var(--type-body-fs);
    font-weight: var(--type-weight-medium);
    line-height: var(--type-lh-text);
    color: var(--bs-body-color);
    transition: opacity 0.2s ease;
}

/* Dim non-active buttons when one is expanded */
.mcmc-pgf__taxes:has(.is-active) .mcmc-pgf__tax-btn:not(.is-active) {
    opacity: 0.5;
}

/* Hovering a tax button dims the rest */
.mcmc-pgf__taxes:has(.mcmc-pgf__tax-btn:hover) .mcmc-pgf__tax-btn:not(:hover) {
    opacity: 0.5;
}

/* Hovering clear filters dims all tax buttons */
.mcmc-pgf:has(.mcmc-pgf__clear:hover) .mcmc-pgf__tax-btn {
    opacity: 0.5;
}

/* +/− icon built from two CSS bars */
.mcmc-pgf__tax-icon {
    position: relative;
    display: inline-block;
    width: 0.625rem;  /* 10px */
    height: 0.625rem;
    flex-shrink: 0;
}

.mcmc-pgf__tax-icon::before,
.mcmc-pgf__tax-icon::after {
    content: '';
    position: absolute;
    background-color: currentColor;
}

/* Horizontal bar — always present (the minus) */
.mcmc-pgf__tax-icon::before {
    width: 100%;
    height: 1.5px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

/* Vertical bar — adds the plus; hidden when expanded */
.mcmc-pgf__tax-icon::after {
    width: 1.5px;
    height: 100%;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    transition: opacity 0.15s ease;
}

.mcmc-pgf__tax-btn.is-active .mcmc-pgf__tax-icon::after {
    opacity: 0;
}

.mcmc-pgf__clear {
    font-size: var(--type-small-fs);
    font-weight: var(--type-weight-medium);
    color: var(--bs-body-color);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    align-items: center;
}

.mcmc-pgf__clear:hover {
    text-decoration: none;
    color: var(--bs-body-color);
}

.mcmc-pgf__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem; /* 12px — Figma pill gap */
}

/* In filter context: all pills show solid border */
.mcmc-pgf__pills .mcmc-tag {
    border-color: var(--bs-body-color);
}

/* Non-active pill hover: outline → fill toggle */
.mcmc-pgf__pills .mcmc-tag:not(.mcmc-tag--active):hover {
    background-color: var(--bs-body-color) !important;
    color: var(--bs-off-white) !important;
    border-color: var(--bs-body-color);
}

/* Active/selected pill: filled */
.mcmc-pgf__pills .mcmc-tag.mcmc-tag--active {
    background-color: var(--bs-body-color);
    color: var(--bs-off-white);
}

/* Active pill hover: fill → outline toggle */
.mcmc-pgf__pills .mcmc-tag.mcmc-tag--active:hover {
    background-color: transparent !important;
    color: var(--bs-body-color) !important;
    border-color: var(--bs-body-color);
}

/* Rule: scaleX reveal from left */
[data-animate="rule-reveal"] {
    transform: scaleX(0);
    transform-origin: left center;
}

[data-animate="rule-reveal"].mcmc-anim-in {
    transform: scaleX(1);
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-reduced-motion: reduce) {
    [data-animate="rule-reveal"] { transform: none; }
}

/* AJAX grid loading state */
#mcmc-posts-grid-wrap {
    transition: opacity 0.2s ease;
}

#mcmc-posts-grid-wrap.mcmc-loading {
    opacity: 0.4;
    pointer-events: none;
}

/* Mobile clear link right-aligns in rule-header column */
.mcmc-pgf__rule-header .mcmc-pgf__clear {
    align-self: flex-end;
}

@media (max-width: 767.98px) {
    .mcmc-pgf {
        gap: 0;
    }

    .mcmc-pgf__body {
        gap: 1.5rem; /* 24px — Figma mobile gap between rule-header and bar */
    }

    .mcmc-pgf__rule-header {
        gap: 0.75rem; /* 12px — Figma mobile gap between clear link and rule */
    }

    .mcmc-pgf__rule {
        height: 0; /* gap handles spacing; keep only the border-top line */
    }


    .mcmc-pgf__panel {
        margin-top: 1.5rem; /* 12px — Figma mobile gap between bar and panel */
    }
}


/* ============================================================
   LOGIN PAGE
   ============================================================ */

.login input[type="submit"] {
    border-radius: 0px !important;
}

.login #nav {
    text-align: center;
    justify-content: center;
}

.login #backtoblog a:hover,
.login #nav a:hover,
.login h1 a:hover {
    color: var(--bs-body-color);
    text-decoration: underline;
}


/* ============================================================
   RESPONSIVE — min-width (ascending)
   ============================================================ */

@media (min-width: 768px) {


    .recent-work-swiper-wrapper .swiper-slide {
        width: calc(50% - 40px); /* 2 slides + 30px peek; gap=24px */
    }

    .recent-work-swiper-wrapper.swiper-no-peek .swiper-slide {
        width: calc((100% - 24px) / 2); /* 2 equal columns; gap=24px */
    }

    .mcmc-section--coloured_section_with_image .card-body {
        padding-left: 0;
        padding-right: 40px;
    }
    .mcmc-section--coloured_section_with_image img {
        border-radius: var(--mcmc-radius) 0 0 var(--mcmc-radius);
        aspect-ratio: unset;
    }

}

@media (min-width: 992px) {

    /* .mcmc-search-noresults is included here rather than folded into
       .mcmc-intro-module__content: the search template (search.php) has
       no __content wrapper at all — its "no results" message sits directly
       in .mcmc-intro-module — but it's the same kind of body copy every
       other __content paragraph gets this treatment for. */
    .mcmc-intro-module__heading,
    .mcmc-intro-module__content,
    .mcmc-search-noresults {
        max-width: 75%;
    }

    /* Every form in .mcmc-intro-module should end up at 50% of the section
       from here up — 40rem never actually binds on mobile (phones are
       already narrower), so the fixed cap above stays as the mobile/tablet
       fallback. The two selectors need different multipliers though,
       because they sit at different depths:
       - .mcmc-intro-module__content form: the __content parent is itself
         capped at 75% just above, so a plain 50% here would resolve
         against that already-narrowed parent (50% of 75% = 37.5% of the
         section). Dividing by .75 compensates back up to a true 50%.
       - .mcmc-search-form: sits directly in .mcmc-intro-module (full
         section width, uncapped), so a plain 50% already lands correctly
         — no compensation needed. */
    .mcmc-intro-module__content form {
        --mcmc-form-width: calc(50% / 0.75);
    }


    .mcmc-section.mcmc-section--full_width_image_written_content .image-wrap img {
        display: block;
    }

    .mcmc-section.mcmc-section--full_width_image_written_content .image-wrap img + img {
        display: none;
    }


    .mcmc-section--coloured_section_with_image .col-lg-6:first-child {
        padding-right: var(--mcmc-sp-10);
    }

    .mcmc-section--section_with_image .col-lg-6:first-child {
        padding-right: var(--mcmc-sp-10);
    }

}


@media (min-width: 1200px) {


    .recent-work-swiper-wrapper .swiper-slide {
        width: calc(33.333% - 60px); /* 3 slides + 30px peek; gap=60px */
    }

    .recent-work-swiper-wrapper.swiper-no-peek .swiper-slide {
        width: calc((100% - 120px) / 3); /* 3 equal columns; gap=60px */
    }

}


@media (min-width: 1920px) {


    /* hero-fp-title range 2 lives in the @media (min-width: 1440px) block below */

    .mcmc-section--coloured_section_with_image .card-body {
        padding-top: var(--mcmc-sp-20);
        padding-bottom: var(--mcmc-sp-20);
    }

}


/* ============================================================
   RESPONSIVE — max-width (descending)
   ============================================================ */

/* Hero title range 2: scales from 60px@1440 → 72px@1920 */

@media (max-width: 1105px) {


    


    .mcmc-intro-module {
        min-height: calc(100svh - (var(--mcmc-header-height) + var(--mcmc-gutter)));
        /* justify-content: space-between; */
    }
    .mcmc-intro-module .mcmc-intro-module__header {
        padding-top: var(--mcmc-sp-15);
    }

}

@media (max-width: 991.98px) {

    .mcmc-intro-module {
        gap: var(--mcmc-sp-15); /* 60px on tablet/mobile */
    }

    .mcmc-intro-module__header {
        gap: var(--mcmc-sp-6); /* 24px */
    }

    .card {
        --bs-card-spacer-y: 1.875rem;
        --bs-card-spacer-x: 1.875rem;
    }


}

@media (max-width: 767.98px) {


    /* Hero — reset desktop flex chain, use fixed photo height */

    /* .mcmc-section--hero_banner_front_page > .container-fluid,
    .mcmc-section--hero_banner_front_page .row > .col {
        display: block;
        flex: none;
    } */

    .hero-fp-wrap {
        /* flex: none;
        display: block;
        padding-top: 0; */
        padding-bottom: 2.7rem;
    }

    .hero-fp-photo {
        /* flex: none;
        height: 32.8125rem; */
        margin-bottom: 0;
    }

    .hero-fp-btn {
        align-self: flex-end;
    }

    p, ul, ol {
        margin-bottom: 1.125rem;
    }


    .hero-fp-overlay {
        bottom: 0;
        width: 16.5625rem;         /* 265px */
        max-width: 100%;
        aspect-ratio: 265 / 251;
        min-height: 15.6875rem;    /* 251px — floor if content exceeds ratio */
        padding: 1.75rem var(--mcmc-sp-5) 0.875rem 1.375rem;
    }

    .hero-fp-overlay .hero-fp-title {
        max-width: 13.8125rem;         /* 221px */
    }

}


/* is-active toggles opacity on this wrapper, not the <img> itself — a
   plugin on this site (Cloudinary) rewrites <img> tags site-wide to add
   its own lazy-loading attributes, and in doing so blanks out any custom
   data attribute on the first/eagerly-loaded image specifically. Keeping
   our data-pnav-index (read by scripts.js to match block ↔ image) on this
   wrapping <div> instead keeps it out of Cloudinary's reach entirely. */


/* ============================================================
   Stats Section
   ============================================================ */

.mcmc-stats__item {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.mcmc-stats__value {
    font-size: var(--type-h1-fs);
    font-weight: var(--type-weight-semibold);
    line-height: var(--type-lh-display);
    color: inherit;
}

.mcmc-stats__body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mcmc-stats__description {
    font-weight: var(--type-weight-book);
    line-height: var(--type-lh-text);
    color: inherit;
}

.mcmc-stats__rule {
    border: none;
    border-top: 1px solid currentColor;
    opacity: 1;
    margin: 0;
}

@media (max-width: 767.98px) {
    .mcmc-stats {
        row-gap: var(--mcmc-sp-10);
    }

    .mcmc-stats__item {
        gap: 1.5rem;
    }

}

/* ============================================================
   COLUMNED ACCORDIONS
   ============================================================ */

.mcmc-col-accordions {
    --bs-gutter-y: 36px;
}

.mcmc-col-accordion__header {
    display: flex;
    flex-direction: column;
    gap: var(--mcmc-sp-6);
    width: 100%;
    padding: 2.25rem 0 0 0;
    background: none;
    border: none;
    border-top: 1px solid var(--bs-soft-black);
    cursor: pointer;
    text-align: left;
    color: inherit;
    font-family: inherit;
}
.mcmc-col-accordion__header--static {
    cursor: default;
}

@media (max-width: 767.98px) {
    .mcmc-col-accordion__header {
        gap: var(--mcmc-sp-3);
        padding-top: var(--mcmc-sp-5); 
    }
}

.mcmc-col-accordion__eyebrow {
    font-weight: var(--type-weight-book);
    line-height: var(--type-lh-text);
}

.mcmc-col-accordion__title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--mcmc-sp-4);
}

.mcmc-col-accordion__title {
    font-weight: var(--type-weight-medium);
    line-height: var(--type-lh-text);
    margin: 0;
}

.mcmc-col-accordion__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    position: relative;
    width: 1.5rem; /* 24px — matches Figma icon size */
    height: 1.5rem;
}

.mcmc-col-accordion__icon-plus,
.mcmc-col-accordion__icon-minus {
    transition: opacity 0.25s ease;
}

.mcmc-col-accordion__icon-minus {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
}

.mcmc-col-accordion.is-open .mcmc-col-accordion__icon-plus {
    opacity: 0;
}

.mcmc-col-accordion.is-open .mcmc-col-accordion__icon-minus {
    opacity: 1;
}

.mcmc-col-accordion__panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s ease;
}

.mcmc-col-accordion.is-open .mcmc-col-accordion__panel {
    grid-template-rows: 1fr;
}

.mcmc-col-accordion__panel-inner {
    overflow: hidden;
}

.mcmc-col-accordion__panel-content {
    padding-top: var(--mcmc-sp-6);
    padding-bottom: 2.25rem; /* 36px */
    line-height: var(--type-lh-text);
}

.mcmc-col-accordion__panel-content > *:last-child {
    margin-bottom: 0;
}

.mcmc-col-accordion__img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--mcmc-radius);
    margin-top: var(--mcmc-sp-6); /* 24px — matches Figma gap */
    object-fit: cover;
}


/* ── Coloured Tiles ─────────────────────────────────────────────────── */

.mcmc-coloured-tiles {
    display: flex;
    flex-direction: column;
    gap: var(--mcmc-sp-15); /* 60px — heading to grid */
}

.mcmc-coloured-tiles__grid {
    --bs-gutter-x: min(var(--mcmc-gutter), var(--mcmc-sp-15)); /* caps at 60px even when --mcmc-gutter grows past it */
    --bs-gutter-y: var(--bs-gutter-x);
}

.mcmc-coloured-tiles__heading {
    font-size: var(--type-h2-fs);
    font-weight: var(--type-weight-medium);
    line-height: var(--type-lh-text);
    margin: 0;
}

.mcmc-coloured-tile {
    display: flex;
    flex-direction: column;
    border-radius: var(--mcmc-radius);
    overflow: hidden;
    text-decoration: none;
    height: 100%;
    position: relative;
}

.mcmc-coloured-tile__image-wrap {
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}


.mcmc-coloured-tile__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

a.mcmc-coloured-tile .mcmc-coloured-tile__image {
    transition: transform 0.4s ease;
}

a.mcmc-coloured-tile:hover .mcmc-coloured-tile__image {
    transform: scale(1.05);
}

.mcmc-coloured-tile__content {
    padding: 1.875rem; /* 30px */
    display: flex;
    flex-direction: column;
    gap: 2.25rem; /* 36px */
    flex: 1;
}

.mcmc-coloured-tile__heading {
    font-size: var(--type-h3-fs);
    font-weight: var(--type-weight-medium);
    line-height: var(--type-lh-text);
    margin: 0;
    color: inherit;
}

.mcmc-coloured-tile__text p {
    line-height: var(--type-lh-text);
    color: inherit;
}

.mcmc-coloured-tile__text > *:last-child {
    margin-bottom: 0;
}

/* No-image variant */
.mcmc-coloured-tile--no-image {
    min-height: 28.75rem; /* 460px */
}

.mcmc-coloured-tile--no-image .mcmc-coloured-tile__content {
    padding-top: 5rem; /* 80px */
    justify-content: space-between;
}

@media (max-width: 767.98px) {
    .mcmc-coloured-tile--no-image {
        min-height: 0;
    }

    .mcmc-coloured-tile--no-image .mcmc-coloured-tile__content {
        padding-top: 3.125rem; /* 50px */
        gap: var(--mcmc-sp-20);
    }

    .mcmc-coloured-tiles {
        gap: var(--mcmc-sp-10); /* 40px — heading to grid */
    }
}

@media (max-width: 767.98px) {

    .mcmc-coloured-tile__content {
        padding: 1.875rem 1.25rem; /* 30px top/bottom, 20px sides */
        gap: var(--mcmc-sp-6); /* 24px */
    }


}


/* Compact intro (single posts) — fills its content, not the screen */
.mcmc-intro-module--compact {
    min-height: 0;
}


