/*
Theme Name: FindBoat Child
Theme URI: https://findboat.boats/
Description: Child theme of Boat Rental for FindBoat. Adds the archive title and category description to archive pages. Carries the FindBoat palette and fixes.
Author: FindBoat
Template: boat-rental
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: findboat-child
*/

/* Archive header: category/tag title + description, matching the FindBoat palette */
.archive-header{margin:0 0 2rem;}
.archive-header .page-title{color:#16324F;font-size:2rem;line-height:1.25;margin:0 0 .5rem;}
.archive-header .taxonomy-description{color:#4B5563;font-size:1.05rem;line-height:1.7;max-width:720px;}
.archive-header .taxonomy-description p{margin:0;}

/* FindBoat palette: white background, near-black text, navy headings, strong blue links */
body,.entry-content,.entry-summary{color:#1F2937;background-color:#ffffff; }
h1,h2,h3,h4,h5,h6,.entry-title a{color:#16324F; }
a{color:#0B5FA5; }
a:hover,a:focus{color:#16324F; }
/* Navy category pills with white text (grid cards, archives and single posts) */
.entry-meta-top .entry-meta .entry-meta-item .entry-meta-wrapper .cat-links a,.entry-meta .entry-meta-item .entry-meta-wrapper .cat-links a,.cat-links a[rel="category tag"],a[class*="twp_cat_"]{display:inline-block!important;width:auto!important;min-width:0!important;max-width:none!important;white-space:nowrap!important;overflow:visible!important;clip-path:none!important;flex:none!important;background:#16324F!important;color:#ffffff!important;font-size:12px!important;line-height:1.5!important;padding:4px 14px!important;border-radius:999px!important;text-decoration:none!important;box-sizing:border-box!important;text-transform:none!important; }
.entry-meta .cat-links a::before,.entry-meta .cat-links a::after{content:none!important;display:none!important; }
.entry-meta-top,.entry-meta,.entry-meta-item,.entry-meta-wrapper,.cat-links{width:auto!important;max-width:none!important;overflow:visible!important;clip-path:none!important; }
.entry-meta-item{flex:none!important;flex-shrink:0!important; }
.cat-links a:hover,a[class*="twp_cat_"]:hover{background:#0B5FA5!important;color:#ffffff!important; }
/* Solid blue Read More and submit buttons */
.read-more a,a.read-more,input[type="submit"],button[type="submit"] {background:#0B5FA5;border-color:#0B5FA5;color:#ffffff; }
/* Header menu links stay near-black for contrast */
.main-navigation a,nav a{color:#1F2937; }
nav a:hover{color:#0B5FA5; }
/* Footer widgets on navy: white headings, text and links */
.site-footer,.footer-widgets{color:#ffffff; }
.site-footer h2,.footer-widgets h2{color:#ffffff; }
.site-footer a,.footer-widgets a{color:#ffffff; }
.site-footer a:hover{color:#BFE0F5; }
/* Hide the theme's Book Now header button: this is a blog, not a rental booking page */
.header-button-box{display:none!important; }
/* White background behind the logo so the navy logo reads at full contrast */
.site-branding,.site-logo{background:#ffffff!important; }

/* ------------------------------------------------------------------
   FindBoat archive grid fix (homepage + category archives).
   The parent theme renders 3 cramped columns beside the sidebar with
   a tall portrait thumbnail (300x225 source, cropped by cover).
   Two wider columns, uniform 16:9 images and equal-height cards
   keep every title fully readable. Single-post sidebars untouched.
   ------------------------------------------------------------------ */
.site-content .article-wraper-archive {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 28px !important;
    align-items: stretch !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}
.site-content .article-wraper-archive .theme-article-post {
    display: flex !important;
    flex-direction: column !important;
    width: auto !important;
    max-width: none !important;
    flex: none !important;
    margin: 0 !important;
    padding: 0 !important;
    min-width: 0 !important;
    height: 100% !important;
}
.site-content .article-wraper-archive .theme-article-post .theme-article-image {
    flex: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border-radius: 8px 8px 0 0 !important;
}
.site-content .article-wraper-archive .theme-article-post .post-thumbnail.data-bg {
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
    min-height: 0 !important;
    width: 100% !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}
.site-content .article-wraper-archive .theme-article-post .post-thumbnail.data-bg::before,
.site-content .article-wraper-archive .theme-article-post .post-thumbnail.data-bg::after,
.site-content .article-wraper-archive .theme-article-post .theme-article-image::before,
.site-content .article-wraper-archive .theme-article-post .theme-article-image::after {
    background: none !important;
    background-image: none !important;
    box-shadow: none !important;
    opacity: 0 !important;
}
.site-content .article-wraper-archive .theme-article-post .theme-article-details {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    padding: 20px 24px 24px !important;
    background: #ffffff !important;
    border: 1px solid #E5E7EB !important;
    border-top: 0 !important;
    border-radius: 0 0 8px 8px !important;
}
.site-content .article-wraper-archive .theme-article-post .entry-meta-top {
    margin: 0 0 6px !important;
}
.site-content .article-wraper-archive .theme-article-post h2.entry-title.entry-title-medium,
.site-content .article-wraper-archive .theme-article-post .entry-title {
    font-size: 22px !important;
    line-height: 1.35 !important;
    margin: 0 0 10px !important;
}
.site-content .article-wraper-archive .theme-article-post h2.entry-title.entry-title-medium a,
.site-content .article-wraper-archive .theme-article-post h2.entry-title.entry-title-medium span,
.site-content .article-wraper-archive .theme-article-post .entry-title a,
.site-content .article-wraper-archive .theme-article-post .entry-title span {
    font-size: 22px !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
    color: #16324F !important;
    display: inline !important;
    overflow: visible !important;
    white-space: normal !important;
    text-overflow: clip !important;
    max-height: none !important;
    -webkit-line-clamp: unset !important;
}
.site-content .article-wraper-archive .theme-article-post .entry-content {
    flex: 1 1 auto !important;
}
.site-content .article-wraper-archive .theme-article-post .entry-content p {
    color: #4B5563 !important;
    font-size: 16px !important;
    line-height: 1.65 !important;
    hyphens: manual !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    margin: 0 0 16px !important;
}
.site-content .article-wraper-archive .theme-article-post a.theme-btn-link {
    margin-top: auto !important;
    align-self: flex-start !important;
    display: inline-block !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    padding: 10px 18px !important;
    color: #ffffff !important;
    background: #0B5FA5 !important;
    border: 1px solid #0B5FA5 !important;
    border-radius: 6px !important;
    text-decoration: none !important;
}
.site-content .article-wraper-archive .theme-article-post a.theme-btn-link:hover,
.site-content .article-wraper-archive .theme-article-post a.theme-btn-link:focus {
    background: #16324F !important;
    border-color: #16324F !important;
    color: #ffffff !important;
}
@media (max-width: 991px) {
    .site-content .article-wraper-archive {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 20px !important;
    }
}
@media (max-width: 767px) {
    .site-content .article-wraper-archive {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 24px !important;
    }
    .site-content .article-wraper-archive .theme-article-post h2.entry-title.entry-title-medium,
    .site-content .article-wraper-archive .theme-article-post h2.entry-title.entry-title-medium a,
    .site-content .article-wraper-archive .theme-article-post h2.entry-title.entry-title-medium span {
        font-size: 20px !important;
        line-height: 1.35 !important;
    }
    .site-content .article-wraper-archive .theme-article-post .theme-article-details {
        padding: 18px 20px 20px !important;
    }
}
/* Also clear any gradient overlay on the thumbnail link itself. */
.site-content .article-wraper-archive .theme-article-post .theme-article-image a::before,
.site-content .article-wraper-archive .theme-article-post .theme-article-image a::after,
.site-content .article-wraper-archive .theme-article-post .post-thumbnail a::before,
.site-content .article-wraper-archive .theme-article-post .post-thumbnail a::after {
    background: none !important;
    background-image: none !important;
    box-shadow: none !important;
    opacity: 0 !important;
}

/* Clear any gradient carried by the thumbnail link / image wrapper
   itself (not only its pseudo-elements), so the photo shows as shot. */
.site-content .article-wraper-archive .theme-article-post .theme-article-image,
.site-content .article-wraper-archive .theme-article-post .theme-article-image a.theme-image-responsive {
    background: none !important;
    background-image: none !important;
}
/* Publish date on post cards (homepage and archives), next to the category pill. */
.theme-article-details .entry-meta .posted-on {
    display: inline-block;
    flex: none;
    align-self: center;
    margin-left: 12px;
    color: #4B5563;
    font-size: 12px;
    line-height: 1.5;
    white-space: nowrap;
}
.theme-article-details .entry-meta .posted-on time {
    color: #4B5563;
}