/*
Theme corrections 1.8.1
Loaded last to avoid conflicts with older accumulated fix rules.
*/

/* Header image selected in Customizer */
.site-header {
    display: flex;
    min-height: 300px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Welcome HTML and paragraphs */
.welcome-panel .welcome-text {
    white-space: normal;
}
.welcome-panel .welcome-text p {
    margin: 0 0 1em;
}
.welcome-panel .welcome-text p:last-child {
    margin-bottom: 0;
}

/* Left navigation: same base formatting as Useful Links */
.left-sidebar .side-nav-list.kcd-useful-links {
    list-style: none;
    margin: 0;
    padding: 0;
}
.left-sidebar .side-nav-list.kcd-useful-links > li {
    position: relative;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid rgba(212,176,100,.16);
}
.left-sidebar .side-nav-list.kcd-useful-links > li:last-child {
    border-bottom: 0;
}
.left-sidebar .side-nav-list.kcd-useful-links > li::before {
    content: none;
}
.left-sidebar .side-nav-list.kcd-useful-links > li > a {
    position: relative;
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 8px 8px 8px 20px;
    color: var(--text);
    font-size: inherit;
    font-weight: 700;
    line-height: 1.25;
    text-align: left;
    background: transparent;
    border: 0;
    box-shadow: none;
    transform: none;
    transition: color .18s ease, background .18s ease, padding-left .18s ease;
}
.left-sidebar .side-nav-list.kcd-useful-links > li > a::before {
    content: "◆";
    position: absolute;
    left: 3px;
    top: 50%;
    color: #77736b;
    font-size: .65rem;
    line-height: 1;
    transform: translateY(-50%);
}
.left-sidebar .side-nav-list.kcd-useful-links .kcd-nav-label {
    display: inline;
    font-size: inherit;
    line-height: inherit;
}
.left-sidebar .side-nav-list.kcd-useful-links > li > a:hover,
.left-sidebar .side-nav-list.kcd-useful-links > li > a:focus,
.left-sidebar .side-nav-list.kcd-useful-links > li.current-menu-item > a,
.left-sidebar .side-nav-list.kcd-useful-links > li.current_page_item > a,
.left-sidebar .side-nav-list.kcd-useful-links > li.current-menu-ancestor > a {
    padding-left: 22px;
    color: var(--gold2);
    background: linear-gradient(90deg, rgba(181,138,58,.16), rgba(181,138,58,.07) 60%, transparent 100%);
}
.left-sidebar .side-nav-list.kcd-useful-links > li > a:hover::before,
.left-sidebar .side-nav-list.kcd-useful-links > li > a:focus::before,
.left-sidebar .side-nav-list.kcd-useful-links > li.current-menu-item > a::before,
.left-sidebar .side-nav-list.kcd-useful-links > li.current_page_item > a::before,
.left-sidebar .side-nav-list.kcd-useful-links > li.current-menu-ancestor > a::before {
    color: var(--gold2);
}

/* News category exactly the same size and font as title */
.news-card h3 .news-category,
.news-card h3 .news-category a,
.news-card h3 .news-title-link {
    font: inherit;
    color: inherit;
}

/* Reliable image transparency fade */
.news-card .news-thumb {
    position: relative;
    overflow: hidden;
    background: transparent;
}
.news-card .news-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 55%, rgba(0,0,0,.82) 70%, rgba(0,0,0,.35) 88%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 55%, rgba(0,0,0,.82) 70%, rgba(0,0,0,.35) 88%, transparent 100%);
}
.news-card .news-thumb::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 45%;
    pointer-events: none;
    background: linear-gradient(to bottom, transparent, rgba(8,8,7,.32) 55%, rgba(8,8,7,.88));
}

/* WordPress Dashicons in download list */
.download-list .download-file-icon,
.download-list .download-action-icon .dashicons {
    width: 18px;
    height: 18px;
    font-size: 18px;
    line-height: 18px;
    color: var(--gold2);
    vertical-align: middle;
}
