/* =============================================
   Jcubed – global layout, header, hero, footer
   Plain CSS (no build step); Tailwind utilities
   come from the Tailwind CDN configured in functions.php.
   ============================================= */

/* Anchor links (#cta, #work, service sections) land exactly below the sticky header:
   92px bar + 3px progress line/border on mobile, 128px + 3px from 768px. */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 95px;
}

@media (min-width: 768px) {
    html {
        scroll-padding-top: 131px;
    }
}

/* Logged-in users: the sticky header also sits below the WordPress admin bar
   (46px from 601px, 32px from 783px; below 601px the admin bar scrolls away). */
@media (min-width: 601px) and (max-width: 767px) {
    html:has(body.admin-bar) {
        scroll-padding-top: 141px;
    }
}

@media (min-width: 768px) and (max-width: 782px) {
    html:has(body.admin-bar) {
        scroll-padding-top: 177px;
    }
}

@media (min-width: 783px) {
    html:has(body.admin-bar) {
        scroll-padding-top: 163px;
    }
}

body {
    background: #050505;
    overflow-x: clip;
}

.font-serif {
    font-weight: 500;
}

/* Reveal on scroll */
.rv {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .8s ease, transform .8s ease;
}

.rv.in {
    opacity: 1;
    transform: none;
}

/* Underline link (footer) */
.ul {
    background: linear-gradient(#FF6A1A, #FF6A1A) 0 100%/0 1px no-repeat;
    transition: background-size .35s;
}

.ul:hover {
    background-size: 100% 1px;
}

/* =============================================
   Header
   ============================================= */

.admin-bar #hd {
    top: var(--wp-admin--admin-bar--height, 32px);
}

@media (max-width: 600px) {
    .admin-bar #hd {
        top: 0;
    }
}

#hd {
    transition-property: background-color, border-color;
}

#hd[data-s="1"] {
    border-color: rgba(255, 255, 255, .12);
    background: rgba(5, 5, 5, .92);
}

#hdi {
    height: 92px;
}

#hlogo {
    height: 58px;
    width: auto;
}

@media (min-width: 768px) {
    #hdi {
        height: 128px;
    }

    #hlogo {
        height: 100px;
    }
}

.nl {
    position: relative;
    transition: color .25s;
}

.nl:hover {
    color: #FF6A1A;
}

.nl::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: #FF6A1A;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s;
}

.nl:hover::after,
.nl.on::after {
    transform: scaleX(1);
}

.nl.on {
    color: #fff;
}

/* Mobile menu */
#menu {
    overflow-y: auto;
    justify-content: flex-start;
    /* Clears the sticky header (about 95px tall, plus the logo bar), so the first link is not hidden under it */
    padding-top: calc(120px + env(safe-area-inset-top, 0px));
}

nav.mnav {
    font-size: clamp(1.375rem, 6vw, 1.75rem);
}

nav.mnav .mm {
    display: block;
    padding-top: .75rem;
    padding-bottom: .75rem;
}

/* =============================================
   Hero
   ============================================= */

.hp {
    min-width: 0;
}

.hero-h {
    font-size: clamp(2rem, 9vw, 4.25rem);
    text-wrap: balance;
    overflow-wrap: break-word;
}

.hero-cta {
    display: flex;
    flex-direction: column;
}

@media (min-width: 640px) and (max-width: 767px) {
    .hero-cta {
        flex-direction: row;
    }
}

@media (min-width: 1100px) {
    .hero-cta {
        flex-direction: row;
    }
}

@media (min-width: 768px) {
    .hero-h {
        font-size: clamp(2.25rem, 4.6vw, 4.75rem);
    }

    .hero-grid {
        min-height: min(calc(100svh - 92px), 820px);
        align-content: center;
    }

    /* Align hero text with the 1400px header container; the image still bleeds right.
       Scoped to .jc-hero so it outranks the Tailwind px-5 utility. */
    .jc-hero {
        container-type: inline-size;
    }

    .jc-hero .hp {
        padding-left: max(2.5rem, calc((100cqw - 1400px) / 2 + 2.5rem));
    }
}

/* Outlined primary button (transparent background) */
.jc-btn-outline:hover {
    color: #FF6A1A;
    border-color: #FF6A1A;
    background-color: transparent;
}

.jc-btn-outline:focus-visible {
    outline: 2px solid #FF6A1A;
    outline-offset: 4px;
    background-color: transparent;
}

/* =============================================
   Footer
   ============================================= */

footer .soc {
    gap: .5rem;
}

footer .soc a {
    width: 2.25rem;
    height: 2.25rem;
}

footer .soc svg,
footer .soc img {
    width: 14px;
    height: 14px;
}

@media (prefers-reduced-motion: reduce) {
    .rv {
        opacity: 1;
        transform: none;
        transition: none;
    }

    #hd,
    #hdi,
    #hlogo {
        transition: none;
    }
}

/* Footer social icons: the SVG is used as a mask, so the icon takes the link's colour (hover changes it) */
.jc-social__icon {
    display: block;
    width: 18px;
    height: 18px;
    background-color: currentColor;
    -webkit-mask: var(--jc-social-icon) center / contain no-repeat;
    mask: var(--jc-social-icon) center / contain no-repeat;
    transition: transform .3s ease;
}

.jc-social:hover .jc-social__icon,
.jc-social:focus-visible .jc-social__icon {
    transform: scale(1.12);
}

/* Case study content (the_content inside .jc-prose) */
.jc-prose {
    font-size: 18px;
    line-height: 1.8;
    color: rgba(5, 5, 5, .8);
}

.jc-prose > * + * {
    margin-top: 1.25rem;
}

.jc-prose h2,
.jc-prose h3,
.jc-prose h4 {
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 500;
    line-height: 1.15;
    color: #050505;
    margin-top: 2.5rem;
}

.jc-prose h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
}

.jc-prose h3 {
    font-size: clamp(1.4rem, 2.4vw, 1.9rem);
}

.jc-prose a {
    color: #FF6A1A;
    text-decoration: underline;
}

.jc-prose ul,
.jc-prose ol {
    padding-left: 1.25rem;
}

.jc-prose ul {
    list-style: disc;
}

.jc-prose ol {
    list-style: decimal;
}

.jc-prose blockquote {
    border-left: 3px solid #FF6A1A;
    padding-left: 1.25rem;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.5rem;
    color: #050505;
}

.jc-prose img {
    width: 100%;
    height: auto;
    margin: 2rem 0;
}

/* Case study hub: ticker (scrolls once per loop; stops for reduced motion) */
.jc-ticker {
    animation: jc-ticker 40s linear infinite;
}

@keyframes jc-ticker {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .jc-ticker {
        animation: none;
    }
}

/* Case study hub: tiles lift on hover */
.jc-tile {
    transition: transform .4s ease, box-shadow .4s ease;
}

.jc-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 48px -24px rgba(5, 5, 5, .45);
}

/* Case study hub: horizontal gallery; the scrollbar is hidden, the row still scrolls */
.jc-gallery {
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.jc-gallery::-webkit-scrollbar {
    display: none;
}

/* Blog post content: tables and quote citations */
.jc-prose table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.jc-prose th,
.jc-prose td {
    border-bottom: 1px solid rgba(5, 5, 5, .15);
    padding: .75rem .5rem;
    text-align: left;
    vertical-align: top;
}

.jc-prose th {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: rgba(5, 5, 5, .6);
}

.jc-prose figure.wp-block-table {
    margin: 2rem 0;
    overflow-x: auto;
}

.jc-prose cite {
    display: block;
    margin-top: .75rem;
    font-style: normal;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: rgba(5, 5, 5, .6);
}

.jc-prose .wp-block-heading {
    font-family: "Playfair Display", Georgia, serif;
}

/* Blog pagination: square buttons, the current page in orange */
.jc-pagination .page-numbers {
    display: inline-flex;
    height: 44px;
    min-width: 44px;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border: 1px solid rgba(5, 5, 5, .2);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .08em;
    color: #050505;
    transition: background-color .25s ease, border-color .25s ease, color .25s ease;
}

.jc-pagination a.page-numbers:hover,
.jc-pagination a.page-numbers:focus-visible {
    border-color: #FF6A1A;
    color: #FF6A1A;
}

.jc-pagination .page-numbers.current {
    border-color: #FF6A1A;
    background-color: #FF6A1A;
    color: #050505;
}

.jc-pagination .page-numbers.dots {
    border-color: transparent;
}

/* ===== Blog post article: every block type ===== */
.jc-prose {
    font-size: 18px;
    line-height: 1.8;
    color: rgba(5, 5, 5, .82);
}

.jc-prose > * + * {
    margin-top: 1.4rem;
}

.jc-prose h1,
.jc-prose h2,
.jc-prose h3,
.jc-prose h4,
.jc-prose h5,
.jc-prose h6 {
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 500;
    color: #050505;
    line-height: 1.12;
    scroll-margin-top: 8rem;
}

.jc-prose h1 { font-size: clamp(2.4rem, 4.2vw, 3.4rem); margin-top: 3rem; }
.jc-prose h2 { font-size: clamp(2rem, 3.2vw, 2.6rem); margin-top: 3.4rem; padding-top: 1.2rem; border-top: 1px solid rgba(5, 5, 5, .12); }
.jc-prose h3 { font-size: clamp(1.6rem, 2.4vw, 2rem); margin-top: 2.6rem; }
.jc-prose h4 { font-size: 1.5rem; margin-top: 2.2rem; }
.jc-prose h5 { font-family: inherit; font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: #FF6A1A; margin-top: 2.2rem; }
.jc-prose h6 { font-family: inherit; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .45); margin-top: 2rem; }

/* Only the bottom margin is reset, so the gap from ".jc-prose > * + *" still separates paragraphs */
.jc-prose p {
    margin-bottom: 0;
}

.jc-prose a {
    color: #FF6A1A;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.jc-prose strong { color: #050505; font-weight: 700; }
.jc-prose em { font-style: italic; }

/* Lists: orange markers */
.jc-prose ul,
.jc-prose ol {
    padding-left: 0;
    list-style: none;
}

.jc-prose ul li,
.jc-prose ol li {
    position: relative;
    padding-left: 2rem;
    margin-top: .6rem;
}

.jc-prose ul li::before {
    content: "";
    position: absolute;
    left: .3rem;
    top: .72em;
    width: .45rem;
    height: .45rem;
    background: #FF6A1A;
}

.jc-prose ol {
    counter-reset: jc-item;
}

.jc-prose ol li {
    counter-increment: jc-item;
}

.jc-prose ol li::before {
    content: counter(jc-item, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: .2em;
    font-family: "Playfair Display", Georgia, serif;
    font-size: .9em;
    color: #FF6A1A;
}

/* Quotes */
.jc-prose blockquote {
    position: relative;
    margin: 2.6rem 0;
    padding: 2.4rem 2.2rem 2rem;
    background: #ffffff;
    border-top: 4px solid #FF6A1A;
    box-shadow: 0 24px 50px -36px rgba(5, 5, 5, .4);
}

.jc-prose blockquote::before {
    content: "\201C";
    display: block;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 72px;
    line-height: .6;
    color: #FF6A1A;
}

.jc-prose blockquote p {
    font-family: "Playfair Display", Georgia, serif;
    font-style: italic;
    font-size: clamp(1.4rem, 2.2vw, 1.9rem);
    line-height: 1.35;
    color: #050505;
}

.jc-prose cite {
    display: block;
    margin-top: 1.2rem;
    font-style: normal;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .45);
}

/* Tables */
.jc-prose figure.wp-block-table {
    margin: 2.4rem 0;
    overflow-x: auto;
    box-shadow: 0 24px 50px -40px rgba(5, 5, 5, .35);
}

.jc-prose table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    background: #ffffff;
}

.jc-prose thead th {
    background: #050505;
    color: #F7EFE3;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    padding: 1rem 1.1rem;
    text-align: left;
}

.jc-prose tbody td {
    padding: .9rem 1.1rem;
    border-bottom: 1px solid rgba(5, 5, 5, .1);
    vertical-align: top;
}

.jc-prose tbody tr:nth-child(even) td {
    background: #FBF4EA;
}

.jc-prose tbody tr:last-child td {
    border-bottom: 0;
}

/* Code */
.jc-prose code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .88em;
    background: rgba(5, 5, 5, .06);
    padding: .15em .4em;
}

.jc-prose pre.wp-block-code {
    margin: 2.2rem 0;
    padding: 1.8rem 2rem;
    background: #050505;
    border-left: 4px solid #FF6A1A;
    overflow-x: auto;
}

.jc-prose pre.wp-block-code code {
    background: none;
    padding: 0;
    font-size: 14px;
    line-height: 1.7;
    color: #F7EFE3;
    white-space: pre;
}

/* Separators */
.jc-prose hr.wp-block-separator {
    border: 0;
    height: 1px;
    margin: 3rem auto;
    width: 100%;
    background: linear-gradient(90deg, transparent, rgba(5, 5, 5, .25), transparent);
}

/* Images inside the article */
.jc-prose figure.wp-block-image {
    margin: 2.4rem 0;
}

.jc-prose figure img {
    width: 100%;
    height: auto;
}

.jc-prose figcaption {
    margin-top: .8rem;
    font-size: 13px;
    color: rgba(255, 255, 255, .45);
    text-align: center;
}

/* ===== Blog post article, dark variant ===== */
.jc-prose--dark {
    color: rgba(247, 239, 227, .78);
}

.jc-prose--dark h1,
.jc-prose--dark h2,
.jc-prose--dark h3,
.jc-prose--dark h4,
.jc-prose--dark h6 {
    color: #F7EFE3;
}

.jc-prose--dark h2 {
    border-top-color: rgba(247, 239, 227, .12);
}

.jc-prose--dark h6 {
    color: rgba(247, 239, 227, .5);
}

.jc-prose--dark a {
    color: #FF6A1A;
}

.jc-prose--dark strong {
    color: #F7EFE3;
}

.jc-prose--dark blockquote {
    background: #0E0E0E;
    box-shadow: none;
    border: 1px solid rgba(247, 239, 227, .1);
    border-top: 4px solid #FF6A1A;
}

.jc-prose--dark blockquote p {
    color: #F7EFE3;
}

.jc-prose--dark cite {
    color: rgba(247, 239, 227, .5);
}

.jc-prose--dark figure.wp-block-table {
    box-shadow: none;
    border: 1px solid rgba(247, 239, 227, .1);
}

.jc-prose--dark table {
    background: #0E0E0E;
}

.jc-prose--dark thead th {
    background: #161616;
    color: #FF6A1A;
}

.jc-prose--dark tbody td {
    border-bottom-color: rgba(247, 239, 227, .08);
    color: rgba(247, 239, 227, .8);
}

.jc-prose--dark tbody tr:nth-child(even) td {
    background: #121212;
}

.jc-prose--dark code {
    background: rgba(247, 239, 227, .1);
    color: #F7EFE3;
}

.jc-prose--dark pre.wp-block-code {
    background: #0E0E0E;
    border: 1px solid rgba(247, 239, 227, .1);
    border-left: 4px solid #FF6A1A;
}

.jc-prose--dark hr.wp-block-separator {
    background: linear-gradient(90deg, transparent, rgba(247, 239, 227, .2), transparent);
}

.jc-prose--dark ul li::before {
    background: #FF6A1A;
}

.jc-prose--dark ol li::before {
    color: #FF6A1A;
}

/* Single post: code block header bar */
.jc-code-wrap {
    margin: 2.2rem 0;
}

.jc-code-wrap pre.wp-block-code {
    margin: 0;
    border-top: 0;
}

.jc-code-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .55rem 1rem;
    background: #161616;
    border: 1px solid rgba(247, 239, 227, .1);
    border-left: 4px solid #FF6A1A;
    border-bottom: 0;
    font-size: 11px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: rgba(247, 239, 227, .55);
}

.jc-copy {
    font: inherit;
    letter-spacing: .08em;
    color: #FF6A1A;
    background: none;
    border: 1px solid rgba(255, 106, 26, .4);
    padding: .25rem .6rem;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}

.jc-copy:hover {
    background: #FF6A1A;
    color: #050505;
}

/* Single post: table lines in the theme orange */
.jc-prose--dark figure.wp-block-table,
.jc-prose--dark table,
.jc-prose--dark th,
.jc-prose--dark td {
    border-color: #FF6A1A !important;
}

.jc-prose--dark table {
    border: 1px solid #FF6A1A;
}

.jc-prose--dark thead th {
    border-bottom: 1px solid #FF6A1A;
}

.jc-prose--dark tbody td {
    border-bottom: 1px solid rgba(255, 106, 26, .35);
}

.jc-prose--dark tbody tr:last-child td {
    border-bottom: 1px solid #FF6A1A;
}

/* Copy button: icon and label */
.jc-copy {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}

.jc-copy svg {
    display: block;
}

/* Single post: table header line in the theme orange (core table styles set a light line here) */
.jc-prose--dark .wp-block-table thead,
.jc-prose--dark thead,
.jc-prose--dark thead tr,
.jc-prose--dark thead th {
    border-color: #FF6A1A !important;
    border-bottom-color: #FF6A1A !important;
}

/* Wide tables scroll sideways inside the article instead of squeezing their columns */
.jc-prose figure.wp-block-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.jc-prose figure.wp-block-table table {
    width: max-content;
    min-width: 100%;
}

/* Slim scrollbar under the table: the table keeps its own frame, the wrapper drops its extra border
   so the scrollbar no longer sits on top of a second orange line */
.jc-prose figure.wp-block-table {
    border: 0;
    padding-bottom: 12px;
}

/* scrollbar-color is inherited from html; reset it so the slim -webkit table scrollbar below applies */
.jc-prose figure.wp-block-table {
    scrollbar-color: auto;
}

.jc-prose figure.wp-block-table::-webkit-scrollbar {
    height: 3px;
}

.jc-prose figure.wp-block-table::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, .06);
}

.jc-prose figure.wp-block-table::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #FF6A1A, #FFB27A);
    border-radius: 999px;
}

.jc-prose figure.wp-block-table th,
.jc-prose figure.wp-block-table td {
    min-width: 11rem;
    white-space: normal;
}

/* =============================================
   Contact page: Contact Form 7 form inside .jc-contact-form
   Keeps the form's own classes (form-row, form-col) and styles the CF7 output around them.
   ============================================= */
.jc-contact-form .wpcf7-form,
.jc-contact-form form {
    color: #050505;
    font-family: Inter, "Helvetica Neue", Arial, sans-serif;
}

.jc-contact-form .form-row {
    display: grid;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

@media (min-width: 640px) {
    .jc-contact-form .form-row:has(> .form-col) {
        grid-template-columns: 1fr 1fr;
    }
}

.jc-contact-form .form-col {
    min-width: 0;
}

.jc-contact-form label {
    display: block;
    margin-bottom: .5rem;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #050505;
}

.jc-contact-form .wpcf7-form-control-wrap {
    display: block;
}

.jc-contact-form input[type="text"],
.jc-contact-form input[type="email"],
.jc-contact-form input[type="tel"],
.jc-contact-form textarea {
    width: 100%;
    margin: 0;
    padding: 14px 16px;
    font: inherit;
    font-size: 16px;
    color: #050505;
    background: #fff;
    border: 1px solid rgba(5, 5, 5, .18);
    border-radius: 0;
    -webkit-appearance: none;
    appearance: none;
}

.jc-contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.jc-contact-form input:focus,
.jc-contact-form textarea:focus {
    outline: none;
    border-color: #FF6A1A;
    box-shadow: 0 0 0 3px rgba(255, 106, 26, .2);
}

.jc-contact-form input::placeholder,
.jc-contact-form textarea::placeholder {
    color: rgba(5, 5, 5, .45);
}

.jc-contact-form input[type="submit"],
.jc-contact-form button[type="submit"] {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: .5rem;
    padding: 18px 32px;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #fff;
    background: #050505;
    border: 0;
    border-radius: 0;
    cursor: pointer;
    transition: background-color .3s, color .3s;
}

.jc-contact-form input[type="submit"]::after {
    content: "→";
    color: #FF6A1A;
    font-size: 18px;
    transition: transform .3s;
}

.jc-contact-form input[type="submit"]:hover,
.jc-contact-form input[type="submit"]:focus-visible {
    background: #FF6A1A;
    color: #050505;
}

.jc-contact-form input[type="submit"]:hover::after {
    color: #050505;
    transform: translateX(4px);
}

.jc-contact-form .wpcf7-not-valid-tip {
    display: block;
    margin-top: .4rem;
    font-size: 13px;
    color: #b42318;
}

.jc-contact-form .wpcf7-response-output {
    margin: 1.5rem 0 0;
    padding: 14px 16px;
    font-size: 15px;
    border: 1px solid rgba(5, 5, 5, .18);
    background: #FBF4EA;
}

.jc-contact-form .wpcf7-spinner {
    display: none;
}

/* Contact form: tighter label/field spacing, full-width submit in the site's button style */
.jc-contact-form .form-row {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    margin-bottom: 1rem;
}

.jc-contact-form .form-row:has(> .form-col) {
    display: grid;
    gap: 1rem;
}

@media (min-width: 640px) {
    .jc-contact-form .form-row:has(> .form-col) {
        grid-template-columns: 1fr 1fr;
    }
}

.jc-contact-form .form-row > label {
    margin-bottom: 0;
}

.jc-contact-form .form-col > label {
    margin-bottom: .4rem;
}

.jc-contact-form input[type="submit"],
.jc-contact-form button[type="submit"] {
    width: 100%;
    justify-content: space-between;
    margin-top: .75rem;
    padding: 20px 28px;
}

/* Contact Form 7 adds a <br> and <p> wrappers (wpautop) that created the big gap under each label.
   Remove them: the labels and fields are spaced by the form-row rules above. */
.jc-contact-form p {
    margin: 0;
}

.jc-contact-form br {
    display: none;
}

.jc-contact-form .form-row > label,
.jc-contact-form .form-col > label {
    margin-bottom: .4rem;
}

/* Space under every field before the next one */
.jc-contact-form .form-row {
    margin-bottom: 1.75rem;
}




/* Contact form card: white card with soft shadow on the cream section */
.jc-contact-block .jc-contact-form {
    background: #fff;
    color: #050505;
    box-shadow: 0 18px 40px -28px rgba(5, 5, 5, .35), 0 0 0 1px rgba(5, 5, 5, .05);
}


/* Match the latest screenshot: no card heading, dark labels, plain centred submit, compact fields */
.jc-contact-block .jc-contact-form {
    padding: 36px 32px;
}

@media (min-width: 768px) {
    .jc-contact-block .jc-contact-form {
        padding: 44px 40px;
    }
}

.jc-contact-block .jc-contact-form label {
    color: #050505;
}

.jc-contact-block .jc-contact-form input[type="text"],
.jc-contact-block .jc-contact-form input[type="email"],
.jc-contact-block .jc-contact-form input[type="tel"] {
    min-height: 48px;
}

.jc-contact-block .jc-contact-form textarea {
    min-height: 180px;
}

.jc-contact-block .jc-contact-form input[type="submit"],
.jc-contact-block .jc-contact-form button[type="submit"] {
    justify-content: center;
}

.jc-contact-block .jc-contact-form input[type="submit"]::after {
    content: none;
}


/* Larger submit text (button size unchanged) */
.jc-contact-block .jc-contact-form input[type="submit"],
.jc-contact-block .jc-contact-form button[type="submit"] {
    font-size: 16px;
    letter-spacing: .16em;
}

/* Slightly shorter submit button; text stays large */
.jc-contact-block .jc-contact-form input[type="submit"],
.jc-contact-block .jc-contact-form button[type="submit"] {
    padding: 18px 28px 16px;
    line-height: 1.4;
}

/* Submit loading state: orange button with black "Sending" text (dots animate in JS) */
.jc-contact-block .jc-contact-form input[type="submit"].is-loading,
.jc-contact-block .jc-contact-form button[type="submit"].is-loading {
    background: #FF6A1A;
    color: #050505;
    cursor: wait;
}

/* =============================================
   About page
   ============================================= */

/* Emphasised phrases inside About paragraphs */
.jc-about-prose p {
    margin: 0;
}

.jc-about-prose strong {
    color: #050505;
    font-weight: 600;
}

/* Founder portrait placeholder (used until real photos are added) */
.jc-portrait-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(135deg, rgba(255, 106, 26, .10), rgba(255, 106, 26, 0) 55%),
        #141414;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}

.jc-portrait-placeholder::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 48px;
    height: 3px;
    background: #FF6A1A;
}

.jc-portrait-initials {
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(4.5rem, 12vw, 8.5rem);
    line-height: 1;
    letter-spacing: .04em;
    color: #FF6A1A;
}

.jc-portrait-note {
    margin-top: 1.5rem;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .45);
}

/* Leadership biographies on the dark background: bold text stays white. */
.jc-about-leadership .jc-about-prose strong {
    color: #FFFFFF;
}

/* Founder portrait placeholders: refined frame with an inner hairline and softer gradient */
.jc-portrait-placeholder {
    background: linear-gradient(160deg, #1d1d1d 0%, #0b0b0b 70%);
}

.jc-portrait-placeholder::after {
    content: "";
    position: absolute;
    inset: 16px;
    border: 1px solid rgba(255, 255, 255, .08);
    pointer-events: none;
}

.jc-portrait-initials {
    font-size: clamp(4rem, 9vw, 6.5rem);
    letter-spacing: .02em;
}

/* Founder portrait placeholders: a faint cube grid (the "Cubed" motif) with an orange glow behind the initials */
.jc-portrait-placeholder {
    background-color: #0d0d0d;
    background-image:
        radial-gradient(circle at 50% 42%, rgba(255, 106, 26, .22), rgba(255, 106, 26, 0) 55%),
        linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: auto, 44px 44px, 44px 44px;
    background-position: center, center, center;
}

.jc-portrait-placeholder::after {
    inset: 22px;
    border: 1px solid rgba(255, 106, 26, .35);
}

.jc-portrait-initials {
    font-size: clamp(4.5rem, 10vw, 7rem);
    text-shadow: 0 0 40px rgba(255, 106, 26, .35);
}

/* Case study media links: colour change on hover */
.jc-prose a {
    transition: color .25s ease, text-decoration-color .25s ease;
    text-decoration-color: rgba(255, 106, 26, .55);
    text-underline-offset: 3px;
}

.jc-prose a:hover,
.jc-prose a:focus-visible {
    color: #050505;
    text-decoration-color: #050505;
}

/* =============================================
   Case study story (single-case-studies.php)
   ============================================= */
.jc-case-copy p {
    margin: 0;
}

.jc-case-copy strong {
    color: #050505;
    font-weight: 600;
}

.jc-case-copy--dark strong {
    color: #FFFFFF;
}

/* Selected Media Coverage: full-width rows, whole row clickable */
.jc-media-link {
    text-decoration: none;
    transition: color .3s ease;
}

.jc-media-link::after {
    content: "";
    position: absolute;
    inset: 0;
}

.jc-media-arrow {
    transition: background-color .3s ease, border-color .3s ease, color .3s ease, transform .3s ease;
}

.jc-media-list li:hover .jc-media-link,
.jc-media-link:focus-visible {
    color: #FF6A1A;
}

.jc-media-list li:hover .jc-media-arrow {
    background: #FF6A1A;
    border-color: #FF6A1A;
    color: #050505;
    transform: translate(3px, -3px);
}
/* Case study timeline (The Challenge, Our Approach, The Impact) */
.jc-cs-timeline { position: relative; list-style: none; margin: 0; padding: 0; }
.jc-cs-timeline::before { content: ""; position: absolute; top: 32px; bottom: 32px; left: 31px; width: 2px; background: linear-gradient(180deg, rgba(255, 106, 26, .15), #FF6A1A); }
.jc-cs-step { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 28px; padding-bottom: 120px; }
@media (min-width: 768px) { .jc-cs-step { gap: 64px; } }
.jc-cs-step.is-last { padding-bottom: 0; }
.jc-cs-step__dot { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; border: 2px solid #FF6A1A; border-radius: 50%; background: #FBF4EA; box-shadow: 0 0 0 8px #FBF4EA; font-family: "Playfair Display", Georgia, serif; font-size: 20px; color: #FF6A1A; transition: background .3s, color .3s; }
.jc-cs-step.is-active .jc-cs-step__dot { background: #FF6A1A; color: #050505; }
.jc-cs-step__body { padding-top: 8px; }
.jc-cs-step__lead p, .jc-cs-step__text p { margin: 0; }
.jc-cs-step__text strong { color: #050505; font-weight: 600; }
.jc-cs-step__text p { font-family: Inter, "Helvetica Neue", Arial, sans-serif; font-size: 19px; line-height: 1.8; color: rgba(5, 5, 5, .8); }
.jc-cs-step__lead { font-family: "Playfair Display", Georgia, serif; }

/* Selected Media Coverage
   - 50px under the timeline, then a rule that starts on the timeline line (31px in)
   - heading and list start on the same line
   - one link per row, larger text */
.jc-media-coverage {
    position: relative;
    padding-top: 50px;
    padding-left: 31px;
}

.jc-media-coverage::before {
    content: "";
    position: absolute;
    top: 0;
    left: 31px;
    right: 0;
    height: 1px;
    background: rgba(5, 5, 5, .12);
}

.jc-media-coverage > h2 {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
    font-size: clamp(1.8rem, 2.8vw, 2.3rem);
}

.jc-media-coverage ul {
    margin-top: 1.75rem;
    display: block;
    max-width: none;
}


/* Media coverage: a row of outlet logos, each linking to its article. Logos keep their own colours.
   Each logo sits in a fixed-size box. On hover the box gets a white background and a soft shadow, so the link is clear without movement. */
.jc-media-coverage ul.jc-media-grid {
    list-style: none;
    padding: 0;
    /* Starts right under the heading; the -12px cancels the tile padding so the first logo lines up with the heading */
    margin: 1.5rem 0 0 -12px;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 0 2.5rem;
    overflow-x: auto;
}

/* On desktop the row fits, so nothing needs scrolling. Without this, the hover zoom on the last logo shows a scrollbar. */
@media (min-width: 1024px) {
    .jc-media-coverage ul.jc-media-grid { overflow: visible; }
}

.jc-media-coverage .jc-media-grid li { display: flex; margin: 0; padding: 0; font-size: inherit; line-height: inherit; }
.jc-media-coverage .jc-media-grid li::marker { content: none; }

/* No list bullet (the prose list style draws an orange square here) */
.jc-media-coverage .jc-media-grid li::before { content: none; display: none; }

.jc-media-coverage .jc-media-tile {
    display: flex;
    flex: none;
    width: auto;
    height: auto;
    flex-direction: column;
    align-items: center;
    color: #050505;
    text-decoration: none;
}

.jc-media-tile__media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 132px;
    padding: 12px;
    background: transparent;
    transition: background-color .35s ease, box-shadow .35s ease;
}

/* Higher specificity than .jc-prose img, which adds a margin and auto height */
.jc-media-coverage .jc-media-tile img.jc-media-tile__logo {
    display: block;
    width: auto;
    height: 100px;
    max-width: 260px;
    max-height: 100px;
    margin: 0;
    object-fit: contain;
    transform-origin: center;
    transition: transform .4s cubic-bezier(.2, .7, .2, 1);
}

a.jc-media-tile:hover img.jc-media-tile__logo,
a.jc-media-tile:focus-visible img.jc-media-tile__logo {
    transform: scale(1.08);
}

/* Logo row: the row is split into 5 equal cells, so 5 logos always show in full and sit still.
   Each logo is scaled to fit its cell (wide logos by width, tall ones by height).
   With 6 or more logos the row loops slowly, still showing 5 at a time; hover pauses. The script sets --jc-cell and .is-moving. */
.jc-media-coverage .jc-media-marquee {
    --jc-gap: clamp(14px, 2.4vw, 40px);
    margin: 2rem 0 0;
    overflow: hidden;
    padding: 26px 0;
}

.jc-media-track { display: flex; width: 100%; }

.jc-media-track > ul[aria-hidden="true"] { display: none; }

.jc-media-coverage .jc-media-track > ul.jc-media-grid {
    flex: 1 1 auto;
    margin: 0;
    padding: 0;
    overflow: visible;
    justify-content: space-between;
    gap: 0 var(--jc-gap);
}

.jc-media-coverage .jc-media-track > ul.jc-media-grid > li {
    position: relative;
    flex: 0 1 auto;
    justify-content: center;
}

.jc-media-coverage .jc-media-track .jc-media-tile { width: 100%; height: auto; }

.jc-media-coverage .jc-media-track .jc-media-tile__media { width: 100%; height: auto; padding: 6px 0; }

.jc-media-coverage .jc-media-track .jc-media-tile img.jc-media-tile__logo {
    width: auto;
    height: 100px;
    max-width: var(--jc-cell, 200px);
    max-height: none;
    object-fit: contain;
}

/* While still: the first logo starts under the heading, the last ends at the right edge, the ones between spread evenly */
.jc-media-marquee:not(.is-moving) .jc-media-track > ul.jc-media-grid > li:first-child img.jc-media-tile__logo { object-position: 0% 50%; transform-origin: 0% 50%; }
.jc-media-marquee:not(.is-moving) .jc-media-track > ul.jc-media-grid > li:nth-child(2):nth-last-child(4) img.jc-media-tile__logo { object-position: 25% 50%; transform-origin: 25% 50%; }
.jc-media-marquee:not(.is-moving) .jc-media-track > ul.jc-media-grid > li:nth-child(4):nth-last-child(2) img.jc-media-tile__logo { object-position: 75% 50%; transform-origin: 75% 50%; }
.jc-media-marquee:not(.is-moving) .jc-media-track > ul.jc-media-grid > li:last-child img.jc-media-tile__logo { object-position: 100% 50%; transform-origin: 100% 50%; }

/* While still nothing overflows, so a logo that grows on hover is not cut at the row edge */
.jc-media-coverage .jc-media-marquee:not(.is-moving) { overflow: visible; }

/* Orange line between logos, centred in the gap; none after the last logo while still */
.jc-media-coverage .jc-media-track > ul.jc-media-grid > li::after {
    content: "";
    position: absolute;
    top: 50%;
    right: calc(var(--jc-sep, var(--jc-gap)) / -2);
    width: 2px;
    height: 36px;
    margin-top: -18px;
    background: #FF6A1A;
}

.jc-media-coverage .jc-media-track > ul.jc-media-grid > li:last-child::after { display: none; }

.jc-media-marquee.is-moving {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}

.jc-media-marquee.is-moving .jc-media-track {
    width: max-content;
    animation: jc-media-scroll 40s linear infinite;
}

.jc-media-marquee.is-moving .jc-media-track > ul[aria-hidden="true"] { display: flex; }

/* While looping each logo gets an equal cell, so 5 show at a time */
.jc-media-marquee.is-moving .jc-media-track > ul.jc-media-grid > li { flex: 0 0 var(--jc-cell); }

.jc-media-marquee.is-moving .jc-media-track .jc-media-tile img.jc-media-tile__logo { width: 100%; height: 100px; max-width: none; max-height: none; }

.jc-media-marquee.is-moving .jc-media-track > ul.jc-media-grid {
    flex: none;
    justify-content: flex-start;
    padding-right: var(--jc-gap);
}

.jc-media-marquee.is-moving .jc-media-track > ul.jc-media-grid > li:last-child::after { display: block; }

.jc-media-marquee.is-moving:hover .jc-media-track { animation-play-state: paused; }

@keyframes jc-media-scroll {
    to { transform: translateX(-33.3333%); }
}

a.jc-media-tile:focus-visible { outline: 2px solid #FF6A1A; outline-offset: 4px; }

@media (prefers-reduced-motion: reduce) {
    .jc-media-track { animation: none; }
    .jc-media-coverage .jc-media-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
}

@media (prefers-reduced-motion: reduce) {
    .jc-media-tile__media { transition: none; }
}


.jc-media-coverage li {
    margin-top: .9rem;
    font-size: clamp(1.05rem, 1.4vw, 1.25rem);
    line-height: 1.5;
    white-space: normal;
}

.jc-media-coverage li strong {
    color: #050505;
    font-weight: 600;
}

/* Our Approach: a paragraph that is entirely bold in the editor reads as the lead */
.jc-cs-panel__text .jc-cs-lead-p,
.jc-cs-step__text .jc-cs-lead-p {
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(1.4rem, 2vw, 1.75rem);
    line-height: 1.4;
    color: #050505;
}

/* The bold in the editor only marks the lead; the lead itself is styled in serif, not bold */
.jc-cs-panel__text .jc-cs-lead-p strong,
.jc-cs-step__text .jc-cs-lead-p strong {
    font-weight: 400;
    color: #050505;
}

/* First paragraph of each case study section: serif lead, medium weight */
.jc-cs-lead-p,
.jc-cs-step__lead p {
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 500;
    font-size: clamp(1.4rem, 2vw, 1.75rem);
    line-height: 1.4;
    color: #050505;
}
/* About leadership: photo with orange offset block, name over the photo, bio below.
   Photos stay in colour; hover adds a zoom, the offset block shifts and the name rises. */
.jc-leader__media { padding-right: 14px; padding-bottom: 14px; }
.jc-leader__offset {
    position: absolute;
    inset: 14px -14px -14px 14px;
    background: #FF6A1A;
    z-index: 0;
    transition: inset .8s ease;
}
.jc-leader:hover .jc-leader__offset { inset: 4px -4px -4px 4px; }
.jc-leader__photo { z-index: 1; background: #0d0d0d; }
.jc-leader__photo img,
.jc-leader__photo .jc-portrait-placeholder {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    transition: transform .8s ease, filter .8s ease;
}
.jc-leader:hover .jc-leader__photo img,
.jc-leader:hover .jc-leader__photo .jc-portrait-placeholder {
    transform: scale(1.06);
    filter: brightness(1.06) saturate(1.08);
}
.jc-leader__caption {
    background: linear-gradient(180deg, rgba(5, 5, 5, 0) 0%, rgba(5, 5, 5, .92) 70%);
    padding-top: 6rem;
}
.jc-leader__caption > * { transition: transform .8s ease; }
.jc-leader:hover .jc-leader__caption > * { transform: translateY(-8px); }
.jc-leader__role { display: inline-block; transition: letter-spacing .8s ease; }
.jc-leader:hover .jc-leader__role { letter-spacing: .3em; }
.jc-leader__name { color: #FFFFFF; }
.jc-leader__bio p { margin: 0; }
.jc-leader__bio p + p { margin-top: 1.25rem; }

/* Case study hub: swipe on phones, grid on larger screens */
.jc-hub-track { scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.jc-hub-track::-webkit-scrollbar { display: none; }

/* Blog: featured posts (60%) and latest posts (40%) side by side on desktop, when there is no sidebar */
@media (min-width: 1024px) {
    .jc-blog-split {
        display: grid;
        grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
        column-gap: 3.5rem;
        align-items: start;
    }

    /* The latest posts column stays in view while the featured posts scroll (same top as the sidebar) */
    .jc-blog-split > div:last-child {
        position: sticky;
        top: 11rem;
    }
}

/* Services: the image column stays in view on desktop while the text beside it scrolls */
@media (min-width: 1024px) {
    .jc-service-media {
        position: sticky;
        top: 11rem;
        align-self: start;
    }
}

/* Blog Featured view: three featured posts side by side on desktop */
@media (min-width: 1024px) {
    .jc-blog-featured-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}

/* Blog latest list: the rows start at the heading's left edge (the global article > * rule centred them) */
article.group > * {
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Post card title: enough line height that letters like g and y are not cut at the bottom of the two-line clamp */
.jc-post-card-title {
    line-height: 1.25 !important;
    min-height: 2.5em !important;
}

/* Contact form: asterisk after the labels of required fields */
.jc-contact-form .jc-required {
    color: #FF6A1A;
    font-weight: 600;
}

/* Single post: category, title and read time sit over the bottom of the featured image, on a dark fade */
.jc-post-hero__overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 3rem 1.5rem 1.5rem;
    background: linear-gradient(to top, rgba(5, 5, 5, .92) 0%, rgba(5, 5, 5, .65) 55%, rgba(5, 5, 5, 0) 100%);
}

.jc-post-hero__overlay h1 { margin-bottom: .75rem; }

.jc-post-hero__overlay .font-mono { color: rgba(255, 255, 255, .8); }

@media (min-width: 768px) {
    .jc-post-hero__overlay { padding: 5rem 2.5rem 2.25rem; }
}

/* On phones the image is too short for a long title, so the title block sits just below the image there */
@media (max-width: 767px) {
    .jc-post-hero__overlay {
        position: static;
        padding: 1.5rem 1.25rem 1.5rem;
        background: none;
    }
}

/* Case Studies hub cards: on hover an orange wash spreads from the arrow, and the arrow moves to the centre and turns to point up and right */
.jc-hub-card__body { padding-bottom: calc(1.75rem + 2.75rem + 1.5rem) !important; }

.jc-hub-card__wash {
    position: absolute;
    inset: 0;
    background: rgba(255, 106, 26, .45);
    clip-path: circle(0% at 3.125rem calc(100% - 3.125rem));
    transition: clip-path .8s cubic-bezier(.2, .7, .2, 1);
    pointer-events: none;
}

.jc-hub-card__arrow {
    position: absolute;
    left: 1.75rem;
    bottom: 1.75rem;
    transition: left .8s cubic-bezier(.2, .7, .2, 1), bottom .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1);
}

.jc-hub-card:hover .jc-hub-card__wash,
.jc-hub-card:focus-visible .jc-hub-card__wash {
    clip-path: circle(150% at 3.125rem calc(100% - 3.125rem));
}

.jc-hub-card:hover .jc-hub-card__arrow,
.jc-hub-card:focus-visible .jc-hub-card__arrow {
    left: 50%;
    bottom: 50%;
    transform: translate(-50%, 50%) rotate(-45deg) scale(1.3);
}

@media (min-width: 768px) {
    .jc-hub-card__body { padding-bottom: calc(2.25rem + 2.75rem + 1.5rem) !important; }
    .jc-hub-card__wash { clip-path: circle(0% at 3.625rem calc(100% - 3.625rem)); }
    .jc-hub-card:hover .jc-hub-card__wash,
    .jc-hub-card:focus-visible .jc-hub-card__wash { clip-path: circle(150% at 3.625rem calc(100% - 3.625rem)); }
    .jc-hub-card__arrow { left: 2.25rem; bottom: 2.25rem; }
}

@media (prefers-reduced-motion: reduce) {
    .jc-hub-card__wash, .jc-hub-card__arrow { transition: none; }
}

/* Single post: a light dark layer (0.3) over the featured image */
.jc-post-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 5, .3);
    pointer-events: none;
}

/* On phones the title block sits below the image; keep it above the layer */
@media (max-width: 767px) {
    .jc-post-hero__overlay { position: relative; }
}

/* Services: the orange outline sits right against the image edge (no gap) */
.jc-service-frame {
    right: -5px !important;
    bottom: -5px !important;
}

/* Contact page: a shorter hero and less space above the form, so the form starts within the first screen */
@media (min-width: 768px) {
    .jc-contact-hero-inner { padding-top: 4rem !important; padding-bottom: 2.5rem !important; }
    .jc-contact-block-inner { padding-top: 2.5rem !important; }
}

/* Case study timeline: full-height (lining) numbers so 01, 02, 03 sit in the true centre of the circle */
.jc-cs-step__dot {
    font-variant-numeric: lining-nums;
    font-feature-settings: "lnum" 1;
    line-height: 1;
}

/* Services: when the image is on the left, the outline sits on the left and bottom (mirror of the right-hand image) */
.jc-service-frame--left {
    right: auto !important;
    left: -5px !important;
    border-right-width: 0 !important;
    border-left: 5px solid #FF6A1A;
}

/* Hover speed: every hover effect on the case study cards and the leader photos runs at the same speed and easing */
.jc-hub-card img,
.jc-hub-card > span,
.jc-hub-card p {
    transition-duration: 1.2s !important;
    transition-timing-function: cubic-bezier(.2, .7, .2, 1) !important;
}

.jc-leader__offset,
.jc-leader__photo img,
.jc-leader__photo .jc-portrait-placeholder,
.jc-leader__caption > *,
.jc-leader__role {
    transition-duration: .5s !important;
    transition-timing-function: cubic-bezier(.2, .7, .2, 1) !important;
}

/* Blog page: all posts as equally sized cards, three to a row on desktop */
@media (min-width: 1024px) {
    .jc-blog-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}

/* Blog page with the Categories box ticked: posts take 60% of the row, the Categories box the other 40% on the right */
@media (min-width: 1024px) {
    .jc-blog-with-sidebar { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr) !important; }
}

/* Blog cards: smaller headline (was 24-28px) */
.jc-post-card-title {
    font-size: clamp(1.25rem, 1.5vw, 1.375rem) !important;
}

/* Blog cards: every card fills the full row height, and the excerpt keeps clear space above the divider */
.jc-blog-grid { align-items: stretch; }
.jc-post-card { height: 100%; }
.jc-post-card-excerpt { padding-bottom: 1.75rem; }

/* Blog cards: the script sets the title height per row, so the title's own minimum is no longer needed */
.jc-blog-grid .jc-post-card-title { min-height: 0 !important; }
