/*
Theme Name: Salient Child
Theme URI: salient-child
Description: WTP Child Theme
Author: WTP Media
Author URI: wtp.media
Version: 1.0.0
Text Domain: salient-child
Template: salient
*/


/*--------------------------
*           Index          *
----------------------------
* 1. Global                *
*    1.1 Custom Properties *
*    1.2 Universal         *
*    1.3 Header            *
*    1.4 Footer            *
*    1.5 Sidebar           *
* 2. Home-page             *
* 3. Sub-page              *
* 4. Responsive            *
* 5. Keyframes             *
--------------------------*/

/*--------------------------
*        1. Global         *
--------------------------*/

/* 1.1 Custom Properties */
:root {
    /* Add color custom properties here (pulled from Salient > Accent Colors) */
    --color-brand: #e2d590;
    --color-brand-rgba: 226, 213, 144;
    --color-accent: #6e6e6d;
    --color-accent-rgba: 110, 110, 109;
    --color-black: #000;
    --color-black-rgba: 0, 0, 0;
    --color-white: #fff;
    --color-white-rgba: 255, 255, 255;

    /* Add font custom properties here (pulled from Salient > Typography) */
    --font-headings: 'Lato', sans-serif;
    --font-default: 'Lato', sans-serif;
}

/* 1.2 Universal */
html body strong {
    font-weight: bold;
}

/* Don't let phone number links wrap */
a[href^="tel:"],
a[href^="tel+"] {
    white-space: nowrap;
}

a[href^="mailto:"] {
    word-break: break-word !important;
}
/* End Don't let phone number links wrap */

/* Hidden Links */
a.hide-link,
a.hide-link:hover {
    color: inherit !important;
    text-decoration: none !important;
    cursor: text !important;
}
/* End Hidden Links */

html body p {
    text-wrap: pretty;
}

html body h2 {
    text-wrap: balance;
}

/* Add default top margin to headings (excludes when first element in container). Alter as necessary. */
/* Note: By default this only applies to blog posts. Remove '.single' if necessary on all pages. */
html body.single h1:not(:first-child),
html body.single h2:not(:first-child),
html body.single h3:not(:first-child),
html body.single h4:not(:first-child),
html body.single h5:not(:first-child),
html body.single h6:not(:first-child) {
    margin-top: 1em;
}
/* End Add default top margin to headings */

/* Color contrast (WCAG AA 4.5:1)
   Salient > Custom CSS fades every "p a" to 35% opacity, which fails contrast.
   #5a5a5a passes on white and both golds (#e2d590, #e8dda6) and still reads apart from the black body text. */
html body p a {
    opacity: 1 !important;
    color: #5a5a5a !important;
}

/* Solid gold buttons: white text on #e2d590 is 1.5:1, dark text is 11:1 */
html body .nectar-button.regular.accent-color,
html body .nectar-button.regular.accent-color:hover,
html body .nectar-button.regular.accent-color:focus {
    color: #1c1d20 !important;
}

/* Blog category links: #8a6b2e is the darker gold from the brand palette (5:1 on white) */
html body .post-area .post-content-wrap .meta-category a {
    display: inline-block;
    min-height: 24px;
    line-height: 24px;
    color: #8a6b2e !important;
}

/* Testimonial carousel dots: 24px tap area, same dot size */
html body .owl-theme[data-desktop-cols] .owl-dots .owl-dot {
    min-width: 24px;
    min-height: 24px;
}

html body .owl-theme[data-desktop-cols] .owl-dots .owl-dot span {
    margin: 9px;
}

html body .keep-it-white p a,
html body p.keep-it-white a {
    color: #fff !important;
}

/* Darker overlay behind the tabbed sections so the gold active tab passes */
html body .wpb_column:has(.tabbed) > .vc_column-inner > .column-bg-overlay-wrap .column-bg-overlay {
    opacity: 0.7 !important;
}
/* End Color contrast */

/* h3s that keep the h4 look (changed from h4 so headings don't skip a level) */
html body h3.wtp-h4-style,
html body .wtp-h4-style h3 {
    font-size: 25px !important;
    line-height: 35px !important;
    margin-bottom: 8px;
}

html body .wpb_wrapper h3.wtp-h4-style--20 {
    font-size: 20px !important;
    line-height: 26px !important;
}

html body .wtp-h4-style--split h2,
html body .wtp-h4-style--split h3 {
    font-size: 20px !important;
    line-height: 24px !important;
    margin-bottom: 0;
}
/* End h3s that keep the h4 look */

/* Before/after slider ([wtp_before_after]) */
.wtp-ba {
    --wtp-ba-accent: #c9a961;
    --wtp-ba-on-accent: #1c1d20;
    width: 100%;
}

html body .wtp-ba__frame {
    position: relative;
    aspect-ratio: 2 / 1;
    margin: 0;
    overflow: hidden;
    user-select: none;
    background-color: #1c1d20;
}

.wtp-ba__frame[hidden] {
    display: none;
}

.wtp-ba__frame.is-active {
    animation: wtp-ba-in 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

html body .wtp-ba__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
    object-fit: cover;
    pointer-events: none;
}

.wtp-ba__img--after {
    clip-path: inset(0 0 0 var(--split));
}

.wtp-ba__tag {
    position: absolute;
    bottom: 12px;
    z-index: 1;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
    pointer-events: none;
}

.wtp-ba__tag--before {
    left: 12px;
}

.wtp-ba__tag--after {
    right: 12px;
}

.wtp-ba__divider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--split);
    z-index: 1;
    width: 2px;
    margin-left: -1px;
    background-color: #fff;
    pointer-events: none;
}

.wtp-ba__knob {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin: -24px 0 0 -24px;
    border-radius: 999px;
    background-color: var(--wtp-ba-accent);
    color: var(--wtp-ba-on-accent);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

html body .wtp-ba__range {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: ew-resize;
    -webkit-appearance: none;
    appearance: none;
}

.wtp-ba__frame:has(.wtp-ba__range:focus-visible) .wtp-ba__knob {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

.wtp-ba__views {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

html body .wtp-ba__view {
    padding: 6px 14px;
    border: 1px solid #1c1d20;
    border-radius: 999px;
    background: transparent;
    color: #1c1d20;
    font: inherit;
    font-size: 14px;
    line-height: 1.4;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

html body .wtp-ba__view:hover,
html body .wtp-ba__view[aria-selected="true"] {
    background-color: #1c1d20;
    color: #fff;
}

@keyframes wtp-ba-in {
    from {
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wtp-ba__frame.is-active {
        animation: none;
    }
}
/* End Before/after slider */

/* Headings re-levelled for accessibility keep their original look.
   nectar-inherit-hN (Salient) restores the hN font; these fill the gaps Salient's tag rules leave. */
html body #ajax-content-wrap .wpb_wrapper .vc_custom_heading.nectar-inherit-h3,
html body #ajax-content-wrap .wpb_wrapper .vc_custom_heading.nectar-inherit-h4 {
    margin-bottom: 8px;
}

html body #ajax-content-wrap .wpb_wrapper .vc_custom_heading.nectar-inherit-h5 {
    font-size: 22px !important;
    line-height: 32px !important;
    margin-bottom: 10px;
}

html body #ajax-content-wrap .wpb_wrapper .vc_custom_heading.nectar-inherit-h6 {
    font-size: 20px !important;
    line-height: 30px !important;
}

/* Milestone numbers (no longer headings): same sizing Salient gives ".number h3" */
html body #ajax-content-wrap .nectar-milestone .number > .nectar-inherit-h3 {
    display: inline-block;
    font-size: inherit !important;
    line-height: inherit !important;
    color: inherit;
    margin-bottom: 8px;
}

html body #ajax-content-wrap .post-area h2.title.nectar-inherit-h3 {
    margin-bottom: 4px;
}

html body #ajax-content-wrap .nectar-split-heading.nectar-inherit-h4 h3 {
    font-size: 25px !important;
    line-height: 35px !important;
}

html body #ajax-content-wrap .nectar-scrolling-tabs .scrolling-tab-nav h3.tab-nav-heading {
    line-height: 1.3;
}

@media only screen and (max-width: 999px) {
    html body #ajax-content-wrap .wpb_wrapper .vc_custom_heading.nectar-inherit-h3 {
        font-size: 32px !important;
        line-height: 40px !important;
    }

    html body #ajax-content-wrap .wpb_wrapper .vc_custom_heading.nectar-inherit-h4 {
        font-size: 25px !important;
        line-height: 35px !important;
    }
}

@media only screen and (max-width: 690px) {
    html body #ajax-content-wrap .wpb_wrapper .vc_custom_heading.nectar-inherit-h4,
    html body #ajax-content-wrap .nectar-split-heading.nectar-inherit-h4 h3 {
        font-size: 23px !important;
        line-height: 32px !important;
    }
}
/* End re-levelled headings */

/* WP Rocket YouTube preview: fill WPBakery's video box instead of stacking under it */
html body .wpb_video_wrapper .rll-youtube-player {
    position: absolute;
    inset: 0;
    height: 100%;
    padding-bottom: 0;
    background-color: #000;
}

html body .wpb_video_wrapper .rll-youtube-player img {
    height: 100%;
    object-fit: contain;
}
/* End WP Rocket YouTube preview */

/* 1.3 Header */

/* 1.4 Footer */

/* 1.5 Sidebar */


/*------------------------
*      2. Home-page      *
-------------------------*/

/* Logo carousel (ADA, FDA...): Salient hides .carousel-wrap until <html> gets .js, then wraps it in
   .carousel-outer and animates the height open, which pushed the rows below down (layout shift).
   Reserve just under its final height on the column wrapper, which is never hidden (logos are 193x80,
   height scales with width up to 80px). !important beats Salient's equal-height min-height: 100%.
   Also in the WP Rocket critical CSS. */
.wpb_wrapper:has(.clients.five-cols) {
    min-height: min(80px, 18.4vw) !important;
}
@media (min-width: 690px) {
    .wpb_wrapper:has(.clients.five-cols) {
        min-height: min(80px, 6.8vw) !important;
    }
}
@media (min-width: 1000px) {
    .wpb_wrapper:has(.clients.five-cols) {
        min-height: min(80px, 5.8vw) !important;
    }
}


/*------------------------
*      3. Sub-page       *
------------------------*/


/* Dental Essentials (Resources > Dental Essentials), laid out like Dr. Virani's mock-up */
/* Plain :root (not .page-id-N): the page has a different ID on each site */
:root {
    --ofcd-ink: #2b2b2a;
    --ofcd-muted: #6e6e6d;
    --ofcd-green: #3f4839;
    --ofcd-panel: #fbfaf8;
    --ofcd-line: #e8e4dc;
    --ofcd-tile: #f1eee8;
    --ofcd-serif: 'Cormorant Garamond', Georgia, serif;
}

/* Full-width rows with the same side gutter as the service pages (about 6.4% of the screen) */
/* Content is capped at 1680px wide: past that, the gutters grow and the content stays centred */
html body .wpb_row.full-width-content.ofcd-wide {
    padding-left: max(6.4vw - 30px, (100vw - 1680px) / 2 - 30px); /* panel rows: Salient adds a 30px column margin */
    padding-right: max(6.4vw - 30px, (100vw - 1680px) / 2 - 30px);
}

html body .wpb_row.full-width-content.ofcd-wide.ofcd-hero {
    padding-left: max(6.4vw, (100vw - 1680px) / 2);
    padding-right: max(6.4vw, (100vw - 1680px) / 2);
}

@media (max-width: 999px) {
    /* Salient already pads stacked columns on small screens; only the banner text needs a gutter */
    html body .wpb_row.full-width-content.ofcd-wide {
        padding-left: 0;
        padding-right: 0;
    }

    html body .wpb_row.full-width-content.ofcd-wide.ofcd-hero {
        padding-left: 5vw;
        padding-right: 5vw;
    }
}

/* Hero */
html body .ofcd-hero p.ofcd-eyebrow {
    position: relative;
    margin-bottom: 18px;
    padding-bottom: 14px !important;
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--ofcd-ink);
}

.ofcd-hero p.ofcd-eyebrow::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 1px;
    background: var(--ofcd-ink);
}

html body .ofcd-hero h1.ofcd-title {
    font-family: var(--ofcd-serif) !important;
    font-weight: 500;
    font-size: 84px !important;
    line-height: 1 !important;
    letter-spacing: 0;
    text-transform: none !important;
    color: var(--ofcd-ink);
    margin-bottom: 14px;
}

html body .ofcd-hero p.ofcd-hero-sub {
    font-size: 17px;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--ofcd-ink);
    padding-bottom: 10px !important;
}

.ofcd-hero p.ofcd-hero-intro {
    max-width: 480px;
    font-size: 17px;
    line-height: 28px;
    color: var(--ofcd-ink);
}

html body ul.ofcd-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 36px;
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}

html body ul.ofcd-benefits li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    list-style: none;
    font-size: 11px;
    line-height: 16px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--ofcd-ink);
}

ul.ofcd-benefits .ofcd-svg {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
}

/* Panels */
html body .ofcd-panel > .vc_column-inner {
    height: 100%;
    padding: 30px 30px 32px;
    background: var(--ofcd-panel);
    border: 1px solid var(--ofcd-line);
    border-radius: 6px;
}

html body .ofcd-panel h3.ofcd-panel-title {
    font-family: var(--ofcd-serif) !important;
    font-weight: 500;
    font-size: 30px !important;
    line-height: 32px !important;
    letter-spacing: 1px;
    text-transform: uppercase !important;
    color: var(--ofcd-ink);
    margin-bottom: 6px;
}

/* Side-by-side panels whose neighbour's title has a forced line break ("How to Brush / with an Electric
   Toothbrush"): the one-line title takes the same height, text at the bottom, so subtitles and step images line up.
   That title is 2 lines from 1350px and 3 lines between 1000px and 1349px; below 1000px the panels stack. */
@media (min-width: 1000px) {
    html body .vc_row:has(h3.ofcd-panel-title br) .ofcd-panel h3.ofcd-panel-title:not(:has(br)) {
        display: flex;
        align-items: flex-end;
        min-height: 64px;
    }
}

@media (min-width: 1000px) and (max-width: 1349px) {
    html body .vc_row:has(h3.ofcd-panel-title br) .ofcd-panel h3.ofcd-panel-title:not(:has(br)) {
        min-height: 96px;
    }
}

/* ...and below 1100px one subtitle wraps to 2 lines, so both get 2 lines (border-box: 2 x 32px + 18px padding) */
@media (min-width: 1000px) and (max-width: 1099px) {
    html body .vc_row:has(h3.ofcd-panel-title br) .ofcd-panel p.ofcd-sub {
        min-height: 82px;
    }
}

.ofcd-panel p.ofcd-sub {
    color: var(--ofcd-muted);
    padding-bottom: 18px !important;
}

html body .ofcd-panel img.ofcd-img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0 !important;
    object-fit: cover;
}

/* How-to steps: four across, like the mock-up's photo strip */
html body ol.ofcd-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
}

html body ol.ofcd-steps li {
    margin: 0;
    list-style: none;
}

.ofcd-step-img {
    aspect-ratio: 5 / 4;
    overflow: hidden;
    border-radius: 4px;
    background: var(--ofcd-tile);
}

.ofcd-step-img--timer {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-white);
    border: 1px solid var(--ofcd-line);
}

.ofcd-step-img--timer .ofcd-svg {
    width: 62%;
    height: auto;
}

.ofcd-step-text {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    font-size: 12px;
    line-height: 17px;
    color: var(--ofcd-muted);
}

.ofcd-step-num {
    font-family: var(--ofcd-serif);
    font-size: 30px;
    line-height: 24px;
    color: var(--ofcd-ink);
}

/* Product: photo left, details middle, optional cutout right */
.ofcd-product {
    display: grid;
    grid-template-columns: 40% 1fr;
    gap: 22px;
    align-items: start;
    padding: 18px;
    background: #f3f1ec;
    border-radius: 6px;
}

.ofcd-product--cutout {
    grid-template-columns: 36% 1fr 22%;
}

.ofcd-product-photo {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 4px;
    background: var(--color-white);
}

/* Product shots sit on white, not cropped (cutout cards and --scene cards keep a cropped in-use photo).
   Matched by layout, not filename: uploads are renamed to match their alt text. */
html body .ofcd-panel .ofcd-product:not(.ofcd-product--cutout):not(.ofcd-product--scene) .ofcd-product-photo img.ofcd-img,
html body .ofcd-panel .ofcd-product-cutout img.ofcd-img {
    object-fit: contain;
}

/* White space around the product inside its white tile (tall products shrink with the top/bottom
   padding, so the sides stay narrower for wide ones like the toothpaste box). */
html body .ofcd-panel .ofcd-product:not(.ofcd-product--cutout):not(.ofcd-product--scene) .ofcd-product-photo img.ofcd-img {
    box-sizing: border-box;
    padding: 14% 7%;
}

/* Images too small for WordPress to make extra sizes have no srcset, and Salient sets those to width:auto. */
html body .ofcd-panel .ofcd-product-photo img.ofcd-img:not([srcset]) {
    width: 100%;
}

.ofcd-product-cutout {
    align-self: center;
}

html body .ofcd-panel .ofcd-product-cutout img.ofcd-img {
    height: auto;
    max-height: 260px;
}

html body .ofcd-product p.ofcd-kicker {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--ofcd-ink);
    padding-bottom: 6px !important;
}

html body .ofcd-product h4.ofcd-product-name {
    font-family: var(--ofcd-serif) !important;
    font-weight: 500;
    font-size: 24px !important;
    line-height: 28px !important;
    letter-spacing: 0;
    text-transform: none !important;
    color: var(--ofcd-ink);
    margin-bottom: 12px;
}

html body ul.ofcd-checks {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
}

html body ul.ofcd-checks li {
    position: relative;
    list-style: none;
    margin: 0 0 4px;
    padding-left: 24px;
    font-size: 14px;
    line-height: 22px;
    color: var(--ofcd-ink);
}

ul.ofcd-checks li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--ofcd-ink);
}

.ofcd-shop {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.ofcd-product + .ofcd-product {
    margin-top: 16px;
}

/* Replacement heads shared by both toothbrushes, under the two product cards. */
.ofcd-heads {
    margin-top: 16px;
    padding: 18px;
    background: #f3f1ec;
    border-radius: 6px;
}

.ofcd-shop-pair {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

html body a.ofcd-shop-btn {
    display: inline-block;
    white-space: nowrap;
    padding: 12px 34px;
    border: 1px solid var(--ofcd-green);
    border-radius: 999px;
    background: var(--ofcd-green);
    color: var(--color-white);
    font-size: 15px;
    letter-spacing: 0.5px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

html body a.ofcd-shop-btn:hover,
html body a.ofcd-shop-btn:focus-visible {
    background: transparent;
    color: var(--ofcd-green);
}

html body a.ofcd-shop-btn--secondary {
    padding: 6px 14px;
    background: transparent;
    color: var(--ofcd-green);
    font-size: 12px;
}

html body a.ofcd-shop-btn--secondary:hover,
html body a.ofcd-shop-btn--secondary:focus-visible {
    background: var(--ofcd-green);
    color: var(--color-white);
}

.ofcd-shop-sub {
    margin-top: 4px;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--ofcd-muted);
}

.ofcd-shop-pending {
    display: inline-block;
    padding: 12px 24px;
    border: 1px dashed var(--ofcd-line);
    border-radius: 999px;
    font-size: 13px;
    font-style: italic;
    white-space: nowrap;
    color: var(--ofcd-muted);
}

.ofcd-note {
    text-align: center;
    color: var(--ofcd-ink);
}

.ofcd-note small {
    font-size: 13px;
    color: var(--ofcd-muted);
}

/* Narrow desktops: the banner is closer to 2:1, so show the photo's plain left side behind the text */
@media (max-width: 1299px) {
    html body .ofcd-hero img.row-bg-img {
        object-position: 0% center !important;
    }

    /* Not enough room beside the details: stack the image above them, the cutout taking the photo's place */
    .ofcd-product,
    .ofcd-product--cutout {
        grid-template-columns: 1fr;
    }

    .ofcd-product-photo,
    .ofcd-product--cutout .ofcd-product-cutout {
        aspect-ratio: 16 / 10 !important;
    }

    .ofcd-product--cutout .ofcd-product-photo {
        display: none;
    }

    /* Wide tiles here: percentage padding follows the width, so keep it small */
    html body .ofcd-panel .ofcd-product:not(.ofcd-product--cutout):not(.ofcd-product--scene) .ofcd-product-photo img.ofcd-img {
        padding: 5% 7%;
    }

    .ofcd-product--cutout .ofcd-product-cutout {
        order: -1;
        align-self: start;
        aspect-ratio: 4 / 5;
        padding: 12px;
        border-radius: 4px;
        background: var(--color-white);
    }
}

@media (max-width: 999px) {
    html body .ofcd-panel {
        margin-bottom: 30px;
    }

    /* Keep the plain left side of the banner photo behind the text */
    html body .ofcd-hero img.row-bg-img {
        object-position: 12% center !important;
    }
}

@media (max-width: 690px) {
    html body .ofcd-hero h1.ofcd-title {
        font-size: 56px !important;
    }

    html body .ofcd-hero p.ofcd-hero-sub {
        font-size: 14px;
        letter-spacing: 3px;
    }

    html body ul.ofcd-benefits {
        gap: 18px;
    }

    html body ol.ofcd-steps {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 18px;
    }

    .ofcd-product,
    .ofcd-product--cutout {
        grid-template-columns: 1fr;
    }

    .ofcd-product-photo,
    .ofcd-product--cutout .ofcd-product-cutout {
        aspect-ratio: 4 / 3;
    }

    html body .ofcd-panel > .vc_column-inner {
        padding: 24px 20px;
    }
}

/*------------------------
*      4. Responsive     *
------------------------*/
/* Max-Width Queries */
@media (max-width: 690px) {
    html body h3.wtp-h4-style:not(.wtp-h4-style--20) {
        font-size: 23px !important;
        line-height: 32px !important;
    }
}

/* End Max-Width Queries */

/* Min-Width Queries */

/* End Min-Width Queries */


/*------------------------
*      5. Keyframes      *
-------------------------*/

/* Videos hub: [list_child_pages] cards (the theme's 50px h2 is too big for a card title) */
html body .child-pages-grid .child-page-item a .child-page-title {
    font-size: 26px;
    line-height: 34px;
    margin: 18px 0 14px;
}

@media (max-width: 767px) {
    html body .child-pages-grid .child-page-item a .child-page-title {
        font-size: 22px;
        line-height: 30px;
    }
}

/* HTML sitemap ([ofcd_html_sitemap] on /sitemap/) */
.ofcd-sitemap {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

html body .ofcd-sitemap h2 {
    font-size: 30px;
    line-height: 38px;
    margin-bottom: 16px;
}

html body .ofcd-sitemap ul {
    margin: 0 0 0 18px;
}

html body .ofcd-sitemap li {
    margin: 0 0 6px;
}

html body .ofcd-sitemap a {
    color: #1c1d20;
    text-decoration: underline;
    text-decoration-color: rgba(28, 29, 32, 0.3);
    text-underline-offset: 3px;
}

html body .ofcd-sitemap a:hover {
    text-decoration-color: currentColor;
}

html body .ofcd-sitemap ul ul {
    margin: 6px 0 4px 20px;
}

.ofcd-sitemap-col:first-child > ul {
    column-count: 2;
    column-gap: 40px;
}

.ofcd-sitemap-col:first-child > ul > li {
    break-inside: avoid;
}

@media (max-width: 999px) {
    .ofcd-sitemap {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 690px) {
    .ofcd-sitemap-col:first-child > ul {
        column-count: 1;
    }
}

/* Watch pages: "More Videos" cards ([ofcd_more_videos]) */
html body .ofcd-more-videos h2.ofcd-more-videos-title {
    font-size: 42px;
    line-height: 50px;
    margin-bottom: 30px;
}

.ofcd-video-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.ofcd-video-card-thumb {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(28, 29, 32, 0.12);
}

html body .ofcd-video-card-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0 !important;
    transition: transform 0.4s ease;
}

.ofcd-video-card-thumb:hover img {
    transform: scale(1.03);
}

.ofcd-video-play {
    position: absolute;
    left: 22px;
    bottom: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    padding-left: 3px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #1c1d20;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

html body .ofcd-video-card h3.ofcd-video-card-title {
    font-size: 22px;
    line-height: 30px;
    margin: 16px 0 14px;
}

html body .ofcd-video-card h3.ofcd-video-card-title a {
    color: #1c1d20;
}

html body a.ofcd-video-card-btn {
    display: inline-block;
    padding: 13px 34px;
    border: 1.5px solid #1c1d20;
    border-radius: 0px;
    color: #1c1d20;
    font-size: 13px;
    font-weight: 600;
    line-height: 18px;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: background-color 0.2s ease, color 0.2s ease;
}

html body a.ofcd-video-card-btn:hover {
    background: #1c1d20;
    color: #fff;
}

@media (max-width: 999px) {
    .ofcd-video-cards {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 690px) {
    .ofcd-video-cards {
        grid-template-columns: 1fr;
    }

    html body .ofcd-more-videos h2.ofcd-more-videos-title {
        font-size: 32px;
        line-height: 40px;
    }
}
