/* True Fresh Bali: UI polish v1.1.0 */

/* Only on the Our Story page: remove the accidental pink Home active state.
   The hover/focus behavior is preserved for actual interactions. */
body.tf-story-page .tf-story-home-item,
body.tf-story-page .tf-story-home-item > a,
body.tf-story-page .tf-story-home-link {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border-color: transparent !important;
}
body.tf-story-page .tf-story-home-item::before,
body.tf-story-page .tf-story-home-item::after,
body.tf-story-page .tf-story-home-link::before,
body.tf-story-page .tf-story-home-link::after {
    background: transparent !important;
    box-shadow: none !important;
}
body.tf-story-page .tf-story-home-link:hover,
body.tf-story-page .tf-story-home-link:focus-visible,
body.tf-story-page .tf-story-home-item:hover > a,
body.tf-story-page .tf-story-home-item:focus-within > a {
    background: #d81b60 !important;
    background-color: #d81b60 !important;
    color: #fff !important;
}

/* Homepage only: unify standard Gutenberg buttons in page content.
   Existing block placement, click destinations and widths are unchanged. */
body.home :is(main, .entry-content, .wp-block-post-content)
.wp-block-buttons .wp-block-button:not(.is-style-outline) .wp-block-button__link {
    background: #d81b60 !important;
    background-color: #d81b60 !important;
    color: #ffffff !important;
    border: 2px solid #d81b60 !important;
    border-radius: 999px !important;
    padding: 12px 26px !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    max-width: 100% !important;
    transition: background-color .2s ease, border-color .2s ease, transform .2s ease !important;
}
body.home :is(main, .entry-content, .wp-block-post-content)
.wp-block-buttons .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
    background: #b71550 !important;
    background-color: #b71550 !important;
    border-color: #b71550 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
}
body.home :is(main, .entry-content, .wp-block-post-content)
.wp-block-buttons .wp-block-button.is-style-outline .wp-block-button__link {
    background: transparent !important;
    background-color: transparent !important;
    color: #d81b60 !important;
    border: 2px solid #d81b60 !important;
    border-radius: 999px !important;
    padding: 12px 26px !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    max-width: 100% !important;
    transition: background-color .2s ease, color .2s ease, transform .2s ease !important;
}
body.home :is(main, .entry-content, .wp-block-post-content)
.wp-block-buttons .wp-block-button.is-style-outline .wp-block-button__link:hover {
    background: #d81b60 !important;
    background-color: #d81b60 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
}
body.home :is(main, .entry-content, .wp-block-post-content)
.wp-block-buttons .wp-block-button__link:focus-visible {
    outline: 3px solid #252525 !important;
    outline-offset: 3px;
}
@media (max-width: 600px) {
    body.home :is(main, .entry-content, .wp-block-post-content)
    .wp-block-buttons .wp-block-button .wp-block-button__link {
        font-size: 14px !important;
        padding: 11px 22px !important;
    }
}
@media (prefers-reduced-motion: reduce) {
    body.home :is(main, .entry-content, .wp-block-post-content)
    .wp-block-buttons .wp-block-button__link {
        transform: none !important;
        transition: none !important;
    }
}

/* v1.1.0: Accessible outline buttons on the dark Homepage Cover hero.
   Normal: white label/outline for contrast over the image.
   Hover and keyboard focus: pink background and white label.
   Keeps outline buttons outside Cover blocks untouched (pink on white). */
body.home :is(main, .entry-content, .wp-block-post-content)
.wp-block-cover .wp-block-buttons .wp-block-button.is-style-outline .wp-block-button__link,
body.home :is(main, .entry-content, .wp-block-post-content)
.wp-block-cover .wp-block-buttons .wp-block-button.is-style-outline .wp-block-button__link:visited {
    background: transparent !important;
    background-color: transparent !important;
    border-color: #ffffff !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0,0,0,.25);
}
body.home :is(main, .entry-content, .wp-block-post-content)
.wp-block-cover .wp-block-buttons .wp-block-button.is-style-outline .wp-block-button__link:hover,
body.home :is(main, .entry-content, .wp-block-post-content)
.wp-block-cover .wp-block-buttons .wp-block-button.is-style-outline .wp-block-button__link:focus-visible {
    background: #d81b60 !important;
    background-color: #d81b60 !important;
    border-color: #d81b60 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    text-shadow: none;
}
