/* Searchlight VC Compatibility v0.4.0
 * Theme-independent recovery rendering for legacy Lambda/WPBakery content.
 * Top-level sections deliberately escape block-theme constrained layouts.
 */

.slvc-section,
.slvc-section *,
.slvc-row,
.slvc-row * {
    box-sizing: border-box;
}

/*
 * Twenty Twenty-Two and other block themes apply max-width/margin rules to
 * arbitrary children of constrained layouts. `alignfull` helps opt out, while
 * the viewport breakout below is the fallback when the parent itself is narrow.
 */
.slvc-section {
    position: relative;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    clear: both;
}

/* Full viewport breakout is opt-in. Generic rows remain in normal document flow. */
.slvc-section.slvc-full-bleed {
    position: relative !important;
    left: auto !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.slvc-container {
    width: 100% !important;
    max-width: 1170px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
}

.slvc-section.slvc-no-padding .slvc-container {
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.slvc-row {
    display: flex !important;
    flex-flow: row wrap !important;
    align-content: stretch;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    position: relative;
    float: none !important;
    clear: both;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.slvc-row::before,
.slvc-row::after {
    content: none !important;
    display: none !important;
}

.slvc-row-inner {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: -18px !important;
    margin-right: -18px !important;
    width: calc(100% + 36px) !important;
    max-width: none !important;
}

.slvc-row > .slvc-col {
    display: block !important;
    position: relative;
    min-width: 0 !important;
    float: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 18px;
    padding-right: 18px;
    overflow-wrap: normal;
    word-break: normal;
}

.slvc-column-inner,
.slvc-wrapper {
    display: block;
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.slvc-col-1  { flex: 0 0 8.333333% !important;  width: 8.333333% !important;  max-width: 8.333333% !important; }
.slvc-col-2  { flex: 0 0 16.666667% !important; width: 16.666667% !important; max-width: 16.666667% !important; }
.slvc-col-3  { flex: 0 0 25% !important;        width: 25% !important;        max-width: 25% !important; }
.slvc-col-4  { flex: 0 0 33.333333% !important; width: 33.333333% !important; max-width: 33.333333% !important; }
.slvc-col-5  { flex: 0 0 41.666667% !important; width: 41.666667% !important; max-width: 41.666667% !important; }
.slvc-col-6  { flex: 0 0 50% !important;        width: 50% !important;        max-width: 50% !important; }
.slvc-col-7  { flex: 0 0 58.333333% !important; width: 58.333333% !important; max-width: 58.333333% !important; }
.slvc-col-8  { flex: 0 0 66.666667% !important; width: 66.666667% !important; max-width: 66.666667% !important; }
.slvc-col-9  { flex: 0 0 75% !important;        width: 75% !important;        max-width: 75% !important; }
.slvc-col-10 { flex: 0 0 83.333333% !important; width: 83.333333% !important; max-width: 83.333333% !important; }
.slvc-col-11 { flex: 0 0 91.666667% !important; width: 91.666667% !important; max-width: 91.666667% !important; }
.slvc-col-12 { flex: 0 0 100% !important;       width: 100% !important;       max-width: 100% !important; }

.slvc-align-center { text-align: center; }
.slvc-align-right { text-align: right; }
.slvc-align-left { text-align: left; }
.slvc-align-middle { align-items: center; }

.slvc-text {
    min-width: 0;
    max-width: 100%;
}

.slvc-text h1,
.slvc-text h2,
.slvc-text h3,
.slvc-text h4,
.slvc-text h5,
.slvc-text h6,
.slvc-text p {
    overflow-wrap: break-word;
}

.slvc-image {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

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

/* WPBakery inherited a column's alignment for single-image elements. The
 * compatibility renderer must reproduce that explicitly because the image
 * shortcode itself usually has no alignment attribute on the Searchlight
 * homepage. */
.slvc-align-center .slvc-image,
.slvc-image.slvc-align-center {
    text-align: center;
}

.slvc-align-center .slvc-image img,
.slvc-image.slvc-align-center img {
    margin-left: auto;
    margin-right: auto;
}

.slvc-align-right .slvc-image img,
.slvc-image.slvc-align-right img {
    margin-left: auto;
    margin-right: 0;
}

/* The active homepage uses these Lambda row classes. Keep theme rules if present,
 * but provide enough fallback geometry for the recovery site to remain readable. */
.slvc-section.home-hero,
.slvc-section.cta-hero-row {
    min-height: 360px;
    align-items: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.slvc-section.home-hero {
    min-height: 430px;
    color: #fff;
}

.slvc-section.home-hero h1,
.slvc-section.home-hero h2,
.slvc-section.home-hero h3,
.slvc-section.cta-hero-row h1,
.slvc-section.cta-hero-row h2,
.slvc-section.cta-hero-row h3 {
    color: inherit;
}

.slvc-section.cta-hero-row {
    color: #fff;
    padding-top: 64px;
    padding-bottom: 64px;
}

/* Responsive Lambda divider/spacer. */
.slvc-divider {
    display: block;
    width: 100%;
    height: var(--slvc-divider-xs, 24px);
    clear: both;
}

.slvc-divider-visible {
    border-top: 1px solid var(--slvc-divider-color, currentColor);
}

/* WPBakery hoverbox recovery implementation. */
.slvc-hoverbox-wrapper {
    width: var(--slvc-hoverbox-width, 100%);
    max-width: 100%;
    margin: 24px auto;
    perspective: 1200px;
}

.slvc-hoverbox {
    position: relative;
    width: 100%;
    min-height: 320px;
    overflow: hidden;
    outline: none;
    background: #f3f3f3;
}

.slvc-hoverbox-shape-round .slvc-hoverbox {
    border-radius: 12px;
}

.slvc-hoverbox-front,
.slvc-hoverbox-back {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px;
    text-align: center;
    transition: opacity .25s ease, transform .25s ease;
}

.slvc-hoverbox-front {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 1;
    transform: scale(1);
}

.slvc-hoverbox-back {
    color: #fff;
    background: rgba(0,0,0,.86);
    opacity: 0;
    transform: scale(1.025);
}

.slvc-hoverbox-bg-peacoc .slvc-hoverbox-back { background: rgba(76,173,201,.96); }
.slvc-hoverbox-bg-black .slvc-hoverbox-back { background: rgba(0,0,0,.88); }
.slvc-hoverbox-bg-grey .slvc-hoverbox-back,
.slvc-hoverbox-bg-gray .slvc-hoverbox-back { background: rgba(70,70,70,.92); }

.slvc-hoverbox:hover .slvc-hoverbox-front,
.slvc-hoverbox:focus .slvc-hoverbox-front,
.slvc-hoverbox:focus-within .slvc-hoverbox-front {
    opacity: .12;
    transform: scale(1.035);
}

.slvc-hoverbox:hover .slvc-hoverbox-back,
.slvc-hoverbox:focus .slvc-hoverbox-back,
.slvc-hoverbox:focus-within .slvc-hoverbox-back {
    opacity: 1;
    transform: scale(1);
}

.slvc-hoverbox-title,
.slvc-hoverbox-primary-title {
    margin-top: 0;
}

.slvc-hoverbox-button {
    display: inline-block;
    margin-top: 18px;
    padding: .7em 1.1em;
    border: 1px solid currentColor;
    color: inherit;
    text-decoration: none;
}

.slvc-hoverbox-button:hover,
.slvc-hoverbox-button:focus {
    color: inherit;
    text-decoration: underline;
}

.slvc-video .slvc-video-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.slvc-video iframe {
    max-width: 100%;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    min-height: 260px;
}

.slvc-button-container { margin: 1rem 0; }
.slvc-button {
    display: inline-block;
    text-decoration: none;
    padding: .7em 1.15em;
    border: 1px solid currentColor;
    border-radius: 3px;
}
.slvc-button-center { text-align: center; }
.slvc-button-right { text-align: right; }

.slvc-grid,
.slvc-recent-posts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    width: 100%;
}

.slvc-grid-item,
.slvc-recent-post {
    min-width: 0;
}

.slvc-grid-image img,
.slvc-recent-post-image img {
    width: 100%;
    height: auto;
    display: block;
}

.slvc-grid-title,
.slvc-recent-post h3 {
    margin-top: .75rem;
}

.slvc-grid-title a,
.slvc-recent-post h3 a {
    color: inherit;
    text-decoration: none;
}

.slvc-grid-meta,
.slvc-recent-post-date {
    opacity: .7;
    font-size: .9em;
    margin-bottom: .5rem;
}

.slvc-media-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.slvc-media-item img {
    width: 100%;
    height: auto;
    display: block;
}

.slvc-socialicons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.slvc-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid currentColor;
    border-radius: 50%;
    color: inherit;
    text-decoration: none;
    font-family: Arial, sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
}

.slvc-social-link:hover,
.slvc-social-link:focus {
    text-decoration: none;
    transform: translateY(-1px);
}

@media (min-width: 576px) {
    .slvc-divider { height: var(--slvc-divider-sm, var(--slvc-divider-xs, 24px)); }
}

@media (min-width: 768px) {
    .slvc-divider { height: var(--slvc-divider-md, var(--slvc-divider-sm, 24px)); }
}

@media (min-width: 992px) {
    .slvc-divider { height: var(--slvc-divider-lg, var(--slvc-divider-md, 24px)); }
}

@media (max-width: 991px) {
    .slvc-container {
        padding-left: 22px !important;
        padding-right: 22px !important;
    }
    .slvc-section.slvc-no-padding .slvc-container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .slvc-row > .slvc-col {
        padding-left: 14px;
        padding-right: 14px;
    }
    .slvc-section.home-hero,
    .slvc-section.cta-hero-row {
        background-attachment: scroll !important;
    }
}

@media (max-width: 767px) {
    .slvc-row > .slvc-col {
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 0;
        padding-right: 0;
    }
    .slvc-container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    .slvc-row-inner {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }
    .slvc-grid,
    .slvc-media-grid,
    .slvc-recent-posts {
        grid-template-columns: 1fr;
    }
    .slvc-video iframe { min-height: 200px; }
    .slvc-section.home-hero { min-height: 330px; }
    .slvc-section.cta-hero-row { min-height: 280px; padding-top: 40px; padding-bottom: 40px; }
    .slvc-hoverbox-wrapper { width: 100% !important; }
    .slvc-hoverbox { min-height: 280px; }
}


/* Bridge the legacy Header Menu into block themes such as Twenty Twenty-Two. */
.slvc-legacy-navigation {
    width: 100%;
}

.slvc-legacy-menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.slvc-legacy-menu > li {
    position: relative;
    margin: 0;
    padding: 0;
}

.slvc-legacy-menu a {
    color: inherit;
    text-decoration: none;
}

.slvc-legacy-menu a:hover,
.slvc-legacy-menu a:focus {
    text-decoration: underline;
}

.slvc-legacy-menu .sub-menu {
    display: none;
    position: absolute;
    z-index: 1000;
    top: 100%;
    left: 0;
    min-width: 230px;
    list-style: none;
    margin: 0;
    padding: 12px 0;
    background: #fff;
    color: #111;
    box-shadow: 0 8px 28px rgba(0,0,0,.14);
}

.slvc-legacy-menu .sub-menu li {
    margin: 0;
    padding: 0;
}

.slvc-legacy-menu .sub-menu a {
    display: block;
    padding: 8px 16px;
}

.slvc-legacy-menu li:hover > .sub-menu,
.slvc-legacy-menu li:focus-within > .sub-menu {
    display: block;
}

@media (max-width: 767px) {
    .slvc-legacy-menu {
        justify-content: flex-start;
        gap: 8px 14px;
    }
    .slvc-legacy-menu .sub-menu {
        position: static;
        display: block;
        box-shadow: none;
        padding-left: 14px;
    }
}

/* ================================================================
 * Searchlight site shell v0.3.0
 * Replaces Twenty Twenty-Two's visual header/footer while keeping the
 * clean block theme as the underlying theme. No legacy theme PHP is run.
 * ================================================================ */

:root {
    --slvc-brand-blue: #00649c;
    --slvc-shell-text: #22272b;
    --slvc-shell-muted: #697078;
    --slvc-shell-border: #e1e4e6;
    --slvc-shell-footer: #2b3035;
    --slvc-shell-subfooter: #22272b;
}

body {
    color: var(--slvc-shell-text);
    font-family: Arial, Helvetica, sans-serif;
}

body h1,
body h2,
body h3,
body h4,
body h5,
body h6 {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
}

body a {
    text-underline-offset: .14em;
}

/* Keep normal legacy rows centred and wide even when the block theme's
 * post-content container is narrower than the old Searchlight layout. */
.slvc-section:not(.slvc-full-bleed) {
    width: min(1170px, calc(100vw - 40px)) !important;
    max-width: 1170px !important;
    margin-left: 50% !important;
    margin-right: 0 !important;
    transform: translateX(-50%);
}

/* Header */
.slvc-site-header {
    position: relative;
    z-index: 100;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    margin-block-start: 0 !important;
    background: #fff;
    color: var(--slvc-shell-text);
    border-bottom: 1px solid var(--slvc-shell-border);
}

.slvc-shell-inner {
    width: min(1170px, calc(100% - 40px));
    min-height: 96px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 34px;
}

.slvc-shell-brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    color: inherit;
    text-decoration: none;
}

.slvc-shell-logo-img {
    display: block;
    width: auto;
    height: auto;
    max-width: 205px;
    max-height: 72px;
}

.slvc-shell-site-name {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
}

.slvc-shell-nav {
    margin-left: auto;
    min-width: 0;
}

.slvc-shell-menu,
.slvc-shell-menu ul,
.slvc-shell-mobile-menu,
.slvc-shell-mobile-menu ul,
.slvc-shell-footer-menu,
.slvc-shell-footer-menu ul {
    list-style: none;
}

.slvc-shell-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0 27px;
    margin: 0;
    padding: 0;
    font-size: 14px;
    line-height: 1.3;
}

.slvc-shell-menu > li {
    position: relative;
    margin: 0;
    padding: 0;
}

.slvc-shell-menu a {
    display: block;
    padding: 38px 0 36px;
    color: var(--slvc-shell-text);
    text-decoration: none;
    white-space: nowrap;
}

.slvc-shell-menu > li.current-menu-item > a,
.slvc-shell-menu > li.current-menu-ancestor > a,
.slvc-shell-menu > li > a:hover,
.slvc-shell-menu > li > a:focus {
    color: var(--slvc-brand-blue);
}

.slvc-shell-menu .sub-menu {
    display: none;
    position: absolute;
    top: calc(100% - 1px);
    left: -18px;
    z-index: 101;
    min-width: 245px;
    margin: 0;
    padding: 10px 0;
    background: #fff;
    border-top: 3px solid var(--slvc-brand-blue);
    box-shadow: 0 10px 28px rgba(0,0,0,.14);
}

.slvc-shell-menu .sub-menu .sub-menu {
    top: -10px;
    left: 100%;
}

.slvc-shell-menu .sub-menu li {
    position: relative;
    margin: 0;
}

.slvc-shell-menu .sub-menu a {
    padding: 9px 18px;
    white-space: normal;
}

.slvc-shell-menu li:hover > .sub-menu,
.slvc-shell-menu li:focus-within > .sub-menu {
    display: block;
}

.slvc-shell-mobile-nav {
    display: none;
    margin-left: auto;
}

.slvc-shell-mobile-nav > summary {
    cursor: pointer;
    padding: 10px 14px;
    border: 1px solid var(--slvc-shell-border);
    border-radius: 3px;
    list-style: none;
}

.slvc-shell-mobile-nav > summary::-webkit-details-marker { display: none; }
.slvc-shell-mobile-nav > summary::before { content: "☰"; margin-right: 8px; }
.slvc-shell-mobile-nav[open] > summary::before { content: "×"; }

.slvc-shell-mobile-nav nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--slvc-shell-border);
    box-shadow: 0 12px 24px rgba(0,0,0,.12);
}

.slvc-shell-mobile-menu {
    width: min(100% - 40px, 1170px);
    margin: 0 auto;
    padding: 14px 0 18px;
}

.slvc-shell-mobile-menu li { margin: 0; }
.slvc-shell-mobile-menu a {
    display: block;
    padding: 9px 0;
    color: var(--slvc-shell-text);
    text-decoration: none;
}
.slvc-shell-mobile-menu .sub-menu { margin: 0 0 0 18px; padding: 0; }

/* Page shell / Twenty Twenty-Two neutralisation */
/*
 * Fallback for the orphaned Twenty Twenty-Two Wide Line separator that can
 * remain between the replaced header template part and page content. PHP also
 * suppresses this exact block at render time; this selector covers cached or
 * pre-rendered markup without hiding ordinary separators inside articles.
 */
.wp-site-blocks > .wp-block-separator.alignwide.is-style-wide,
.wp-site-blocks > main > .wp-block-separator.alignwide.is-style-wide {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

/* Do not let the block theme reintroduce a block-gap between our site shell
 * and the first content container after the separator has been removed. */
.wp-site-blocks > .slvc-site-header + main,
.wp-site-blocks > .slvc-site-header + .wp-block-group,
.wp-site-blocks > .slvc-site-header + .wp-block-post-content {
    margin-block-start: 0 !important;
}

.wp-site-blocks > main {
    margin-block-start: 0 !important;
}

.wp-block-post-title {
    width: min(1170px, calc(100vw - 40px));
    max-width: 1170px !important;
    margin-left: 50% !important;
    margin-right: 0 !important;
    transform: translateX(-50%);
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
}

.wp-block-post-content {
    margin-block-start: 0;
}

/* Footer reconstructed from the site's sanitised legacy footer widget data. */
.slvc-site-footer {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    margin-block-start: 70px !important;
    color: #d9dde0;
    background: var(--slvc-shell-footer);
    font-family: Arial, Helvetica, sans-serif;
}

.slvc-shell-footer-main {
    padding: 48px 0 42px;
}

.slvc-shell-footer-grid {
    width: min(1170px, calc(100% - 40px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 38px;
}

.slvc-shell-footer-column-wide {
    grid-column: 1 / -1;
}

.slvc-shell-footer-column h2,
.slvc-shell-footer-column h3,
.slvc-shell-footer-column h4 {
    margin: 0 0 15px;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    font-weight: 400;
}

.slvc-shell-footer-column ul,
.slvc-shell-footer-menu {
    margin: 0;
    padding: 0;
    list-style: none;
}

.slvc-shell-footer-column li,
.slvc-shell-footer-menu li {
    margin: 0 0 8px;
}

.slvc-shell-footer-column a,
.slvc-shell-footer-menu a {
    color: #d9dde0;
    text-decoration: none;
}

.slvc-shell-footer-column a:hover,
.slvc-shell-footer-column a:focus,
.slvc-shell-footer-menu a:hover,
.slvc-shell-footer-menu a:focus {
    color: #fff;
    text-decoration: underline;
}

.slvc-shell-footer-column p {
    color: #b9c0c5;
    font-size: 13px;
    line-height: 1.6;
}

.slvc-shell-subfooter {
    background: var(--slvc-shell-subfooter);
    border-top: 1px solid rgba(255,255,255,.08);
}

.slvc-shell-subfooter-inner {
    width: min(1170px, calc(100% - 40px));
    min-height: 64px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: #aeb5ba;
    font-size: 12px;
}

@media (max-width: 980px) {
    .slvc-shell-nav { display: none; }
    .slvc-shell-mobile-nav { display: block; }
    .slvc-shell-inner { min-height: 82px; }
    .slvc-shell-logo-img { max-width: 185px; max-height: 64px; }
    .slvc-shell-footer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 640px) {
    .slvc-section:not(.slvc-full-bleed),
    .wp-block-post-title {
        width: calc(100vw - 32px) !important;
    }
    .slvc-shell-inner,
    .slvc-shell-footer-grid,
    .slvc-shell-subfooter-inner,
    .slvc-shell-mobile-menu {
        width: calc(100% - 32px);
    }
    .slvc-shell-footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .slvc-shell-subfooter-inner {
        padding: 17px 0;
        min-height: 0;
        align-items: flex-start;
        flex-direction: column;
    }
}


/* -------------------------------------------------------------------------
 * Case study / legacy Oxygenna portfolio recovery
 * ---------------------------------------------------------------------- */
.slvc-portfolio {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    width: 100%;
    margin: 12px 0 54px;
}
.slvc-portfolio.slvc-portfolio-cols-1 { grid-template-columns: 1fr; }
.slvc-portfolio.slvc-portfolio-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.slvc-portfolio.slvc-portfolio-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.slvc-portfolio-item { min-width: 0; margin: 0; }
.slvc-portfolio-link {
    display: block;
    color: inherit;
    text-decoration: none;
}
.slvc-portfolio-media {
    position: relative;
    overflow: hidden;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}
.slvc-portfolio-image-img,
.slvc-portfolio-image-placeholder {
    display: block;
    width: auto;
    max-width: 72%;
    height: 220px;
    max-height: 220px;
    margin: 0 auto;
    object-fit: contain;
    transition: transform .28s ease;
}
.slvc-portfolio-image-placeholder {
    width: 100%;
    max-width: 100%;
    background: linear-gradient(135deg, #eef1f3, #dde4e8);
}
.slvc-portfolio-overlay {
    position: absolute;
    inset: auto 0 0;
    padding: 22px 22px 20px;
    color: #fff;
    background: linear-gradient(to top, rgba(17,26,31,.92), rgba(17,26,31,.58) 72%, rgba(17,26,31,0));
}
.slvc-portfolio-title {
    margin: 0;
    color: inherit;
    font-size: clamp(1.2rem, 2vw, 1.75rem);
    line-height: 1.12;
}
.slvc-portfolio-excerpt {
    margin: .55rem 0 0;
    color: inherit;
    font-size: .95rem;
    line-height: 1.4;
    opacity: .94;
}
.slvc-portfolio-link:hover .slvc-portfolio-image-img,
.slvc-portfolio-link:focus .slvc-portfolio-image-img {
    transform: scale(1.035);
}
.slvc-portfolio-link:focus-visible {
    outline: 3px solid #00649c;
    outline-offset: 4px;
}
.slvc-portfolio-caption h2 { margin: .8rem 0 0; font-size: 1.25rem; }
.slvc-portfolio-captions-below .slvc-portfolio-overlay { display: none; }
.slvc-portfolio-empty { padding: 32px 0; }

/* Twenty Twenty-Two adds its own post title before the legacy case-study hero.
 * The case-study content already contains the intended hero heading. */
body.single-oxy_portfolio_image .wp-block-post-title,
body.single-oxy_portfolio_image main > .wp-block-post-title {
    display: none !important;
}

/* Individual case studies use the WordPress featured image as the client mark.
 * Twenty Twenty-Two treats Featured Image as editorial photography and expands
 * it to the page width; legacy Searchlight case studies used these assets as
 * compact client logos instead. Restore the image, but constrain it to a small,
 * centred mark above the case-study content. */
body.single-oxy_portfolio_image .wp-block-post-featured-image {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 1170px !important;
    min-height: 0 !important;
    margin: 22px auto 14px !important;
    padding: 0 20px !important;
    background: transparent !important;
}
body.single-oxy_portfolio_image .wp-block-post-featured-image a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    max-width: 100% !important;
}
body.single-oxy_portfolio_image .wp-block-post-featured-image img {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: min(220px, 70vw) !important;
    max-height: 150px !important;
    margin: 0 auto !important;
    object-fit: contain !important;
}

/* Lambda sized case-study hero headings independently of the generic theme H1.
 * Long case-study headlines should remain prominent without filling the entire
 * viewport. The homepage hero is intentionally unaffected. */
body.single-oxy_portfolio_image .slvc-section.cta-hero-row h1 {
    width: min(100%, 1450px);
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(2rem, 3vw, 3.5rem) !important;
    line-height: 1.1 !important;
    letter-spacing: -0.015em;
    text-wrap: balance;
}

.slvc-blockquote {
    margin: 38px 0;
    padding: 28px 32px;
    border-left: 4px solid #00649c;
    background: #f3f6f8;
    font-size: 1.2rem;
    line-height: 1.55;
}
.slvc-blockquote p:first-child { margin-top: 0; }
.slvc-blockquote p:last-child { margin-bottom: 0; }
.slvc-blockquote cite {
    display: block;
    margin-top: 14px;
    font-size: .85em;
    font-style: normal;
    font-weight: 600;
}
.slvc-sharing {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 28px;
}
.slvc-sharing a {
    display: inline-block;
    padding: .55rem .8rem;
    border: 1px solid currentColor;
    text-decoration: none;
}
.slvc-contact-fallback {
    padding: 24px;
    background: #f3f6f8;
}
.slvc-contact-fallback p { margin-top: 0; }

@media (max-width: 900px) {
    .slvc-portfolio,
    .slvc-portfolio.slvc-portfolio-cols-3,
    .slvc-portfolio.slvc-portfolio-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
    .slvc-portfolio,
    .slvc-portfolio.slvc-portfolio-cols-2,
    .slvc-portfolio.slvc-portfolio-cols-3,
    .slvc-portfolio.slvc-portfolio-cols-4 { grid-template-columns: 1fr; }
    .slvc-portfolio-image-img {
        height: 190px;
        max-height: 190px;
        max-width: 68%;
    }
    .slvc-portfolio-image-placeholder { height: 190px; max-height: 190px; }
}


/* -------------------------------------------------------------------------
 * Team / legacy Oxygenna staff recovery
 * ---------------------------------------------------------------------- */
.slvc-staff-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px 24px;
    width: 100%;
    margin: 34px 0 56px;
}
.slvc-staff-list.slvc-staff-cols-1 { grid-template-columns: 1fr; }
.slvc-staff-list.slvc-staff-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.slvc-staff-list.slvc-staff-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.slvc-staff-list.slvc-staff-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.slvc-staff-list.slvc-staff-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.slvc-staff-card { min-width: 0; margin: 0; text-align: center; }
.slvc-staff-link {
    display: block;
    color: inherit;
    text-decoration: none;
}
.slvc-staff-media {
    width: min(100%, 260px);
    margin: 0 auto;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #eef1f3;
}
.slvc-staff-image-img,
.slvc-staff-image-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}
.slvc-staff-image-placeholder {
    background: linear-gradient(135deg, #eef1f3, #dde4e8);
}
.slvc-staff-copy { padding: 14px 6px 0; }
.slvc-staff-name {
    margin: 0;
    font-size: 1.35rem;
    line-height: 1.2;
}
.slvc-staff-position {
    margin: .35rem 0 0;
    font-size: .95rem;
    line-height: 1.4;
    color: #5f676d;
}
.slvc-staff-link:hover .slvc-staff-image-img,
.slvc-staff-link:focus .slvc-staff-image-img { transform: scale(1.03); }
.slvc-staff-link:focus-visible {
    outline: 3px solid #00649c;
    outline-offset: 4px;
}
.slvc-staff-empty { padding: 30px 0; }

/* The legacy staff profile content already provides its internal VC layout. */
body.single-oxy_staff .wp-block-post-title {
    width: min(1170px, calc(100vw - 48px)) !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

@media (max-width: 980px) {
    .slvc-staff-list,
    .slvc-staff-list.slvc-staff-cols-4,
    .slvc-staff-list.slvc-staff-cols-5,
    .slvc-staff-list.slvc-staff-cols-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
    .slvc-staff-list,
    .slvc-staff-list.slvc-staff-cols-2,
    .slvc-staff-list.slvc-staff-cols-3,
    .slvc-staff-list.slvc-staff-cols-4,
    .slvc-staff-list.slvc-staff-cols-5,
    .slvc-staff-list.slvc-staff-cols-6 { grid-template-columns: 1fr; }
    .slvc-staff-media { width: min(100%, 300px); }
}


@media (max-width: 600px) {
    body.single-oxy_portfolio_image .wp-block-post-featured-image {
        margin-top: 16px !important;
        margin-bottom: 10px !important;
    }
    body.single-oxy_portfolio_image .wp-block-post-featured-image img {
        max-width: min(180px, 64vw) !important;
        max-height: 120px !important;
    }
}

/* ================================================================
 * v0.3.8 — case-study intro lockup and restrained heading scale
 * ================================================================ */

/* The featured image is now rendered beside the first substantive case-study
 * heading by enhance_case_study_intro(); suppress TT2's separate Featured
 * Image block so the client mark appears only once. */
body.single-oxy_portfolio_image .wp-block-post-featured-image {
    display: none !important;
}

/* Client logo + intro heading lockup. The logo uses the case study's existing
 * featured image, so each case study automatically gets its own client mark. */
body.single-oxy_portfolio_image .slvc-case-intro-heading {
    display: flex;
    align-items: flex-start;
    gap: clamp(22px, 3vw, 42px);
    width: 100%;
    margin: 0 0 22px;
}
body.single-oxy_portfolio_image .slvc-case-intro-logo {
    flex: 0 0 clamp(110px, 13vw, 165px);
    width: clamp(110px, 13vw, 165px);
    padding-top: .25rem;
}
body.single-oxy_portfolio_image .slvc-case-intro-logo-img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-width: 165px !important;
    max-height: 120px !important;
    margin: 0 !important;
    object-fit: contain !important;
    object-position: center !important;
}
body.single-oxy_portfolio_image .slvc-case-intro-title {
    flex: 1 1 auto;
    min-width: 0;
}
body.single-oxy_portfolio_image .slvc-case-intro-title > h1 {
    margin-top: 0 !important;
    margin-bottom: .4em !important;
}

/* Case studies contain a mixture of H1/H2/H3 from several generations of
 * editors. Re-establish a coherent hierarchy independent of TT2's very large
 * global heading presets. */
body.single-oxy_portfolio_image .slvc-section:not(.cta-hero-row) h1 {
    font-size: clamp(2rem, 2.6vw, 3rem) !important;
    line-height: 1.08 !important;
    letter-spacing: -0.015em;
    text-wrap: balance;
}
body.single-oxy_portfolio_image .slvc-section:not(.cta-hero-row) h2 {
    font-size: clamp(1.65rem, 2vw, 2.25rem) !important;
    line-height: 1.15 !important;
    letter-spacing: -0.01em;
    text-wrap: balance;
}
body.single-oxy_portfolio_image .slvc-section:not(.cta-hero-row) h3 {
    font-size: clamp(1.35rem, 1.6vw, 1.75rem) !important;
    line-height: 1.2 !important;
}
body.single-oxy_portfolio_image .slvc-section:not(.cta-hero-row) h4,
body.single-oxy_portfolio_image .slvc-section:not(.cta-hero-row) h5,
body.single-oxy_portfolio_image .slvc-section:not(.cta-hero-row) h6 {
    font-size: clamp(1.1rem, 1.25vw, 1.4rem) !important;
    line-height: 1.25 !important;
}

/* Also cap hero headings regardless of whether legacy content used h1, h2 or
 * h3. Several case studies used inconsistent heading tags. */
body.single-oxy_portfolio_image .slvc-section.cta-hero-row h1,
body.single-oxy_portfolio_image .slvc-section.cta-hero-row h2,
body.single-oxy_portfolio_image .slvc-section.cta-hero-row h3 {
    width: min(100%, 1280px);
    margin-left: auto !important;
    margin-right: auto !important;
    font-size: clamp(1.9rem, 2.8vw, 3.15rem) !important;
    line-height: 1.1 !important;
    letter-spacing: -0.015em;
    text-wrap: balance;
}

@media (max-width: 700px) {
    body.single-oxy_portfolio_image .slvc-case-intro-heading {
        flex-direction: column;
        gap: 14px;
    }
    body.single-oxy_portfolio_image .slvc-case-intro-logo {
        flex-basis: auto;
        width: min(135px, 42vw);
    }
    body.single-oxy_portfolio_image .slvc-case-intro-logo-img {
        max-width: 135px !important;
        max-height: 100px !important;
    }
    body.single-oxy_portfolio_image .slvc-section:not(.cta-hero-row) h1 {
        font-size: clamp(1.8rem, 8vw, 2.4rem) !important;
    }
    body.single-oxy_portfolio_image .slvc-section:not(.cta-hero-row) h2 {
        font-size: clamp(1.5rem, 6.5vw, 2rem) !important;
    }
}


/* ================================================================
 * v0.3.9 — universal case-study intro treatment
 * ================================================================ */

/* v0.3.8 handled H1-led case studies. v0.3.9 applies the same lockup to
 * older case studies whose first substantive body heading is H2/H3. */
body.single-oxy_portfolio_image .slvc-case-intro-title > h1,
body.single-oxy_portfolio_image .slvc-case-intro-title > h2,
body.single-oxy_portfolio_image .slvc-case-intro-title > h3 {
    margin-top: 0 !important;
    margin-bottom: .4em !important;
}

/* Catch legacy case-study content outside an SLVC section as well. */
body.single-oxy_portfolio_image .wp-block-post-content h1 {
    font-size: clamp(2rem, 2.6vw, 3rem) !important;
    line-height: 1.08 !important;
    letter-spacing: -0.015em;
    text-wrap: balance;
}
body.single-oxy_portfolio_image .wp-block-post-content h2 {
    font-size: clamp(1.65rem, 2vw, 2.25rem) !important;
    line-height: 1.15 !important;
    letter-spacing: -0.01em;
    text-wrap: balance;
}
body.single-oxy_portfolio_image .wp-block-post-content h3 {
    font-size: clamp(1.35rem, 1.6vw, 1.75rem) !important;
    line-height: 1.2 !important;
}

/* Hero rules win over the general post-content fallback. */
body.single-oxy_portfolio_image .wp-block-post-content .slvc-section.cta-hero-row h1,
body.single-oxy_portfolio_image .wp-block-post-content .slvc-section.cta-hero-row h2,
body.single-oxy_portfolio_image .wp-block-post-content .slvc-section.cta-hero-row h3 {
    width: min(100%, 1280px);
    margin-left: auto !important;
    margin-right: auto !important;
    font-size: clamp(1.9rem, 2.8vw, 3.15rem) !important;
    line-height: 1.1 !important;
    letter-spacing: -0.015em;
    text-wrap: balance;
}

@media (max-width: 700px) {
    body.single-oxy_portfolio_image .wp-block-post-content h1 {
        font-size: clamp(1.8rem, 8vw, 2.4rem) !important;
    }
    body.single-oxy_portfolio_image .wp-block-post-content h2 {
        font-size: clamp(1.5rem, 6.5vw, 2rem) !important;
    }
}

/* ================================================================
 * v0.4.0 — Our Values page reconstruction
 * Page #634 used Oxygenna's text_columns="col-text-3" extension. Rather than
 * recreate a brittle legacy multi-column text flow, preserve the published
 * values and render them as a purposeful Searchlight component.
 * ================================================================ */

body.page-id-634 .wp-block-post-title {
    margin-bottom: 20px !important;
    font-size: clamp(2.5rem, 4vw, 4rem) !important;
    line-height: 1.05 !important;
}

body.page-id-634 .wp-block-post-content {
    margin-top: 0 !important;
}

.slvc-values-page,
.slvc-values-page * {
    box-sizing: border-box;
}

.slvc-values-page {
    width: min(1170px, calc(100vw - 40px));
    margin: 0 auto 72px;
    padding: 26px 0 0;
}

.slvc-values-lead {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(28px, 6vw, 80px);
    padding: 32px 0 38px;
    border-top: 1px solid var(--slvc-shell-border);
}

.slvc-values-kicker {
    margin: 0 0 8px;
    color: var(--slvc-brand-blue);
    font-family: Arial, Helvetica, sans-serif;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .13em;
    line-height: 1.2;
    text-transform: uppercase;
}

.slvc-values-lead h2,
.slvc-values-principles h2 {
    margin: 0;
    color: var(--slvc-shell-text);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 3vw, 3.1rem);
    font-weight: 400;
    line-height: 1.08;
}

.slvc-values-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(116px, 12vw, 164px);
    aspect-ratio: 1 / 1;
    padding: 14px;
    border-radius: 50%;
    background: #f3f7f9;
}

.slvc-values-mark-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.slvc-values-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--slvc-shell-border);
    border-left: 1px solid var(--slvc-shell-border);
}

.slvc-value-card {
    position: relative;
    min-height: 178px;
    margin: 0;
    padding: 26px 28px 30px;
    border-right: 1px solid var(--slvc-shell-border);
    border-bottom: 1px solid var(--slvc-shell-border);
    background: #fff;
}

.slvc-value-card::after {
    content: "";
    position: absolute;
    left: 28px;
    bottom: -1px;
    width: 48px;
    height: 3px;
    background: var(--slvc-brand-blue);
}

.slvc-value-index {
    display: block;
    margin: 0 0 28px;
    color: var(--slvc-brand-blue);
    font-family: Arial, Helvetica, sans-serif;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .12em;
}

.slvc-value-card h3 {
    max-width: 15ch;
    margin: 0;
    color: var(--slvc-shell-text);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.35rem, 1.7vw, 1.85rem);
    font-weight: 400;
    line-height: 1.15;
    text-transform: none;
}

.slvc-values-principles {
    display: grid;
    grid-template-columns: minmax(250px, .8fr) minmax(0, 1.6fr);
    gap: clamp(34px, 7vw, 90px);
    align-items: start;
    margin-top: 54px;
    padding: 42px 46px;
    background: #f3f5f6;
}

.slvc-values-principles-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 28px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: slvc-principle;
}

.slvc-values-principles-list li {
    counter-increment: slvc-principle;
    position: relative;
    margin: 0;
    padding: 15px 0 15px 34px;
    border-bottom: 1px solid #d9dee1;
    color: var(--slvc-shell-text);
    font-size: 1.05rem;
    line-height: 1.4;
}

.slvc-values-principles-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 15px;
    color: var(--slvc-brand-blue);
    font-weight: 700;
}

@media (max-width: 820px) {
    .slvc-values-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .slvc-values-principles {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 34px 30px;
    }
}

@media (max-width: 600px) {
    body.page-id-634 .wp-block-post-title,
    .slvc-values-page {
        width: calc(100vw - 32px) !important;
    }
    .slvc-values-page {
        padding-top: 12px;
        margin-bottom: 50px;
    }
    .slvc-values-lead {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 26px 0 30px;
    }
    .slvc-values-mark {
        width: 112px;
    }
    .slvc-values-grid {
        grid-template-columns: 1fr;
    }
    .slvc-value-card {
        min-height: 150px;
        padding: 24px 24px 26px;
    }
    .slvc-value-card::after {
        left: 24px;
    }
    .slvc-values-principles {
        margin-top: 38px;
        padding: 28px 24px;
    }
    .slvc-values-principles-list {
        grid-template-columns: 1fr;
    }
}

/* ================================================================
 * v0.4.1 — Our Values block-theme width + principles layout fix
 *
 * Twenty Twenty-Two's constrained-content rule applies a max-width to
 * direct Post Content children. v0.4.0 set a width but did not clear that
 * max-width, so the 1170px component was still squeezed to the theme's
 * content measure. This breakout keeps the component centred on the
 * viewport while preserving the clean TT2 foundation underneath.
 * ================================================================ */
body.page-id-634 .wp-block-post-title {
    width: min(1170px, calc(100vw - 48px)) !important;
    max-width: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
    font-size: clamp(2.35rem, 3.35vw, 3.5rem) !important;
}

body.page-id-634 .wp-block-post-content > .slvc-values-page,
body.page-id-634 .slvc-values-page {
    position: relative;
    left: 50%;
    width: min(1170px, calc(100vw - 48px)) !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    transform: translateX(-50%);
}

.slvc-values-lead {
    grid-template-columns: minmax(0, 1fr) minmax(120px, 164px);
}

.slvc-values-principles {
    grid-template-columns: minmax(300px, .85fr) minmax(0, 1.65fr);
    gap: clamp(44px, 6vw, 88px);
}

.slvc-values-principles-heading,
.slvc-values-principles-list,
.slvc-values-principles-list li {
    min-width: 0;
}

.slvc-values-principles-list {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    column-gap: 42px;
}

.slvc-values-principles-list li {
    padding-left: 32px;
    overflow-wrap: normal;
    word-break: normal;
    white-space: normal;
}

.slvc-values-principles-list li::before {
    width: 20px;
    text-align: center;
}

@media (max-width: 980px) {
    body.page-id-634 .wp-block-post-content > .slvc-values-page,
    body.page-id-634 .slvc-values-page,
    body.page-id-634 .wp-block-post-title {
        width: calc(100vw - 40px) !important;
    }
    .slvc-values-principles {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .slvc-values-principles-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 34px;
    }
}

@media (max-width: 640px) {
    body.page-id-634 .wp-block-post-content > .slvc-values-page,
    body.page-id-634 .slvc-values-page,
    body.page-id-634 .wp-block-post-title {
        width: calc(100vw - 32px) !important;
    }
    .slvc-values-principles-list {
        grid-template-columns: 1fr;
    }
}

/* ================================================================
 * v0.4.2 — Page-title shell alignment
 *
 * Earlier recovery versions widened Twenty Twenty-Two's Post Title using a
 * 50%/translateX breakout. That worked for some template arrangements, but
 * when TT2 wrapped the title in a constrained block the transform was based
 * on the constrained parent and could push the title off the left edge.
 *
 * The Searchlight shell already gives us a stable viewport-level content
 * measure, so titles now use ordinary auto margins and no transform. This is
 * deliberately global so normal pages and recovered custom post types such
 * as oxy_staff share one alignment contract.
 * ================================================================ */
.wp-block-post-title,
body.single-oxy_staff .wp-block-post-title,
body.page-id-634 .wp-block-post-title {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    width: min(1170px, calc(100vw - 48px)) !important;
    max-width: 1170px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    transform: none !important;
    box-sizing: border-box;
}

@media (max-width: 640px) {
    .wp-block-post-title,
    body.single-oxy_staff .wp-block-post-title,
    body.page-id-634 .wp-block-post-title {
        width: calc(100vw - 32px) !important;
    }
}


/* ================================================================
 * v0.4.3 — Staff profile duplicate-image cleanup
 *
 * Twenty Twenty-Two may emit a theme-level Featured Image above an
 * oxy_staff profile. The profile's legacy VC content already contains the
 * intended smaller portrait beside the biography, so hide the outer block
 * as a CSS fallback in addition to the render_block suppression.
 * ================================================================ */
body.single-oxy_staff .wp-block-post-featured-image {
    display: none !important;
}


/* v0.4.4 — Homepage latest-blog card consistency.
 * Legacy posts use featured images with mixed aspect ratios and Twenty Twenty-Two
 * otherwise allows long titles to inherit an oversized heading scale. Keep the
 * three cards visually aligned without modifying the posts themselves. */
.slvc-recent-posts {
    align-items: stretch;
}

.slvc-recent-post {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.slvc-recent-post-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f3f5f6;
}

.slvc-recent-post-image img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover;
    object-position: center;
}

.slvc-recent-post-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
}

.slvc-recent-post h3 {
    margin: .8rem 0 .65rem;
    font-size: clamp(1.5rem, 1.65vw, 2rem) !important;
    line-height: 1.12 !important;
    font-weight: 400;
    letter-spacing: 0;
}

.slvc-recent-post-date {
    margin-top: auto;
    padding-top: .4rem;
    font-size: 1rem;
    line-height: 1.4;
}

.slvc-recent-post-excerpt {
    font-size: 1rem;
    line-height: 1.55;
}

/* The heading immediately introducing the homepage recent-post grid should not
 * inherit Twenty Twenty-Two's very large H2 scale. Modern browsers support :has;
 * this is only a cosmetic enhancement and the cards remain correct without it. */
.slvc-column-content:has(.slvc-recent-posts) > h2,
.slvc-column-content:has(.slvc-recent-posts) .slvc-text > h2,
.slvc-column-content:has(.slvc-recent-posts) .slvc-column-text > h2 {
    font-size: clamp(2rem, 3vw, 3.25rem) !important;
    line-height: 1.05 !important;
}

@media (max-width: 767px) {
    .slvc-recent-post-image {
        aspect-ratio: 16 / 9;
    }
    .slvc-recent-post h3 {
        font-size: clamp(1.45rem, 7vw, 1.9rem) !important;
    }
}

/* ================================================================
 * v0.5.0 — Technical-remediation consolidation
 * ================================================================ */
.slvc-legacy-heading {
    max-width: 100%;
}
.slvc-legacy-feature {
    margin: 1rem 0;
}
.slvc-legacy-counter {
    display: inline-block;
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 1;
}

/* Stay In Touch: the historic Mailchimp raw block included a linked stylesheet,
 * an inline <style> block and scripts. PHP now strips executable/style elements;
 * these scoped rules provide a clean native form layout instead. */
.slvc-raw-html #mc_embed_signup {
    width: min(100%, 720px);
    max-width: 720px;
    margin: 0 auto;
    font-family: inherit;
}
.slvc-raw-html #mc_embed_signup .mc-field-group {
    margin: 0 0 1rem;
}
.slvc-raw-html #mc_embed_signup label,
.slvc-raw-html #mc_embed_signup strong {
    display: block;
    margin-bottom: .35rem;
}
.slvc-raw-html #mc_embed_signup input[type="text"],
.slvc-raw-html #mc_embed_signup input[type="email"] {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: .7rem .8rem;
    border: 1px solid #b8c0c5;
    background: #fff;
}
.slvc-raw-html #mc_embed_signup .datefield {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    align-items: center;
}
.slvc-raw-html #mc_embed_signup .datefield input {
    width: auto;
    min-width: 4rem;
}
.slvc-raw-html #mc_embed_signup .input-group ul {
    margin: .75rem 0 1rem;
    padding: 0;
    list-style: none;
}
.slvc-raw-html #mc_embed_signup .input-group li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: .65rem;
    margin: .55rem 0;
    align-items: start;
}
.slvc-raw-html #mc_embed_signup .input-group label {
    margin: 0;
}
.slvc-raw-html #mc-embedded-subscribe {
    display: inline-block;
    padding: .75rem 1.15rem;
    border: 1px solid currentColor;
    background: transparent;
    cursor: pointer;
}

/* Canonical /blog/ renderer. */
.slvc-blog-index {
    width: min(1170px, calc(100vw - 48px));
    max-width: 1170px;
    margin: 0 auto 4rem;
}
.slvc-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(24px, 3vw, 40px);
}
.slvc-blog-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.slvc-blog-card-media {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f3f5f6;
}
.slvc-blog-card-media img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover;
}
.slvc-blog-card-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding-top: 1rem;
}
.slvc-blog-card h2 {
    margin: 0 0 .75rem;
    font-size: clamp(1.45rem, 1.65vw, 1.9rem) !important;
    line-height: 1.15 !important;
    font-weight: 400;
}
.slvc-blog-card time {
    margin: 0 0 .8rem;
    color: #667078;
    font-size: .95rem;
}
.slvc-blog-card p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.55;
}
.slvc-blog-pagination {
    margin-top: 3rem;
}
.slvc-blog-pagination .page-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    padding: 0;
    list-style: none;
}
.slvc-blog-pagination a,
.slvc-blog-pagination .current {
    display: inline-flex;
    min-width: 2.5rem;
    min-height: 2.5rem;
    align-items: center;
    justify-content: center;
    padding: .35rem .7rem;
    border: 1px solid #d5dadd;
    text-decoration: none;
}

@media (max-width: 900px) {
    .slvc-blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 640px) {
    .slvc-blog-index {
        width: calc(100vw - 32px);
    }
    .slvc-blog-grid {
        grid-template-columns: 1fr;
    }
}

/* Keep homepage latest-post dates aligned even when titles vary significantly. */
.slvc-recent-post h3 {
    min-height: calc(1.12em * 4);
}
.slvc-recent-post h3 a,
.slvc-blog-card h2 a {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.slvc-recent-post h3 a {
    -webkit-line-clamp: 4;
}
.slvc-blog-card h2 a {
    -webkit-line-clamp: 3;
}
@media (max-width: 767px) {
    .slvc-recent-post h3 {
        min-height: 0;
    }
}


/* v0.5.2 — recovered /blog/ index */
.slvc-blog-index {
    width: min(1170px, calc(100vw - 48px));
    margin: 0 auto;
    padding: 24px 0 64px;
}
.slvc-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px 28px;
}
.slvc-blog-card { min-width: 0; }
.slvc-blog-card__media {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}
.slvc-blog-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.slvc-blog-card__title {
    font-size: clamp(1.45rem, 2vw, 2rem) !important;
    line-height: 1.15 !important;
    margin: 18px 0 10px !important;
}
.slvc-blog-card__meta { margin-bottom: 12px; }
.slvc-blog-card__excerpt { font-size: 1rem; line-height: 1.6; }
.slvc-blog-pagination { margin-top: 42px; }
.slvc-blog-pagination .page-numbers { display: flex; gap: 10px; flex-wrap: wrap; list-style: none; padding: 0; }
@media (max-width: 900px) { .slvc-blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) {
    .slvc-blog-index { width: calc(100vw - 32px); }
    .slvc-blog-grid { grid-template-columns: 1fr; }
}


/* v0.5.3 — legacy What We Do service artwork
 * Old pages placed 150px icons inside arbitrary paragraphs/list items and relied
 * on Lambda's alignleft/alignright float rules. Promote the first icon to a
 * stable intro position; neutralise any remaining legacy floats. */
body.slvc-what-we-do-page .slvc-service-text > .slvc-wrapper {
    display: flow-root;
}

body.slvc-what-we-do-page .slvc-service-intro-media {
    float: right;
    width: 170px;
    max-width: 22%;
    margin: 0 0 1.75rem 2.25rem;
    padding: 0;
    text-align: center;
}

body.slvc-what-we-do-page .slvc-service-intro-icon-img {
    display: block;
    width: 150px;
    max-width: 100%;
    height: auto;
    max-height: 150px;
    object-fit: contain;
    margin: 0 auto;
}

body.slvc-what-we-do-page .slvc-text img.alignleft,
body.slvc-what-we-do-page .slvc-text img.alignright {
    float: none !important;
    display: block;
    width: auto;
    max-width: min(180px, 100%);
    height: auto;
    margin: 1.5rem auto !important;
}

@media (max-width: 767px) {
    body.slvc-what-we-do-page .slvc-service-intro-media {
        float: none;
        width: 150px;
        max-width: 100%;
        margin: 0 auto 1.5rem;
    }
}

/* v0.5.5: page #77 is only the historic route owner for /blog/. Never show
   its old G-Cloud featured image as page chrome above the plugin Blog index. */
body.page-id-77 .wp-block-post-featured-image,
body.page-id-77 > .wp-site-blocks > .wp-block-post-featured-image,
body.page-id-77 main > .wp-block-post-featured-image {
    display: none !important;
}
