/*
Theme Name: Frequency Maintained Child
Template: frequency-maintained
Version: 2026.10.22.1
*/

/* Align homepage branding with the intro's 20px inset. */
body.home .site-branding {
    margin-left: 20px;
    max-width: calc(80% - 20px);
}

/* Narrow leading column in Frequency's existing horizontal home layout. */
.seo-home-intro {
    display: inline-block;
    vertical-align: top;
    box-sizing: border-box;
    width: min(20rem, calc(100vw - 80px));
    max-width: 100%;
    max-height: calc(100dvh - 180px);
    overflow-y: auto;
    padding: 0 0 1rem;
    margin: 0 80px 0 20px;
    white-space: normal;
    overflow-wrap: anywhere;
    opacity: 1;
    transition: opacity 350ms ease;
}
.seo-home-intro.is-scroll-covered { opacity: 0; pointer-events: none; transition-duration: 0ms; }
@media (prefers-reduced-motion: reduce) {
    .seo-home-intro { transition: none; }
}
.seo-home-intro h2, .seo-home-intro p { white-space: normal; }
.seo-home-intro h2 { margin-top: 0; font-size: 1.4rem; line-height: 1.3; }
.seo-home-intro p { font-size: 1rem; line-height: 1.6; }
.seo-home-intro + #post-load { vertical-align: top; }

/* Keep the existing menu fade, but place its line below the label. */
.main-navigation a::after,
.main-navigation a:hover::after {
    bottom: -0.12em;
}

/* Match the large, underlined contact fields through Jetpack's new wrappers. */
form.contact-form .contact-form__select-wrapper {
    display: block;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    font: inherit;
    font-family: 'Roboto', Arial, sans-serif;
    color: #666;
    background: transparent;
    border: 0;
    border-bottom: 1px solid #ddd;
    border-radius: 0;
}
form.contact-form .contact-form__select-wrapper select {
    font: inherit;
    min-width: 0;
    width: 100%;
    padding: 0 1em 0 0;
    margin: 0;
    line-height: 1.2;
}
form.contact-form select option {
    font: inherit;
    color: #000;
    background: #fff;
}
form.contact-form .contact-form__select-wrapper .jetpack-field-dropdown__icon::after {
    font-size: 16px;
    inset-inline-end: 8px;
}

/* Keep the submit button compact and left-aligned, as in the original form. */
form.contact-form button[type="submit"].pushbutton-wide {
    display: flex;
    width: auto;
    max-width: 100%;
}


/* Keep cooking slideshows and their inner containers at the same content width. */
body.postid-114 .wp-block-jetpack-slideshow.aligncenter,
body.page-id-114 .wp-block-jetpack-slideshow.aligncenter {
    width: 100% !important;
    max-width: 100%;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box;
}
body.postid-114 .wp-block-jetpack-slideshow_container,
body.page-id-114 .wp-block-jetpack-slideshow_container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
body.postid-114 .wp-block-jetpack-slideshow_container {
    overflow: hidden;
}

/* Slides are media, not text lists: avoid inherited list spacing inside them. */
body.postid-114 .entry-content .wp-block-jetpack-slideshow .swiper-wrapper,
body.postid-114 .entry-content .wp-block-jetpack-slideshow .swiper-slide {
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
}
