﻿nav ul li.cat a span { font-weight: 700; }

body { background-color: #f5f2ff !important; }

.blog--homebanner { background-color: #31312f; color: #FFF; margin-bottom: 30px; padding: 30px 0; }
.blog--homebanner h1 { color: #FFF; font-size: 2.5rem !important; margin-top: unset; margin-bottom: 10px; }
.blog--homebanner > div { font-size: 1.5rem; }

@media screen and (max-width: 599px) {
    .blog--homebanner > div { font-size: 1rem; }
}



/* Blog listing reuses the main-site `.rss-feed .blogpost` card design (loaded via home.css) so it
   matches goldenfinishes.com/news exactly — the container carries the `rss-feed` class (Index.cshtml).
   These are the only overrides needed for this theme's older main.css defaults that would fight it:
   the header must be a block (main.css leaves it flex), the stacked/white date sub-spans must go
   inline, the badge must be square, and the title/meta links take the GF purple/gold. */
header.post-header { display: block; }
.posts.rss-feed .blogpost .post-header { display: block; }
.posts.rss-feed .blogpost a.image { display: block; }
.posts.rss-feed .blogpost .post-date { border-radius: 0; margin-bottom: 15px; }
.posts.rss-feed .blogpost .post-date span { display: inline; height: auto; font-size: inherit; padding-left: 0; }
.posts.rss-feed .blogpost .post-date .m { margin: 0 3px; }
/* main.css forces `h2 { font-size:1.6em !important }`, so re-assert the live title size with !important */
.posts.rss-feed .blogpost .cattitle .title, .posts.rss-feed .blogpost .cattitle .title a { font-size: 1.875rem !important; }
.posts.rss-feed .blogpost .cattitle a { color: #283551; }
.posts.rss-feed .blogpost .cattitle a:hover { color: #fcb54c; }
/* main.css's `.post .post-info { font-size:1.1em }` (no colour) differs from live — restore live values */
.posts.rss-feed .blogpost .post-info { color: #fcb54c; font-size: 13px; margin-bottom: 8px; padding: 0 25px; }
.posts.rss-feed .blogpost .post-info span { margin-right: 7px; font-size: 1.2em; }
.posts.rss-feed .blogpost .post-author a { padding-left: 5px; padding-right: 10px; color: #283551; }
.posts.rss-feed .blogpost .post-author a:hover { color: #fcb54c; }
.posts.rss-feed .blogpost .post-category a { padding-left: 5px; color: #283551; }
.posts.rss-feed .blogpost .post-category a:hover { color: #fcb54c; }
.posts.rss-feed .blogpost .glyphicon { color: #fcb54c; }

.rss-feed .blogpost.post-home { padding-bottom: 0px !important; margin-bottom: 0px; }
.rss-feed .blogpost.post-home .post-header { border: none; margin: 0px; }

/* FIX (mobile overlap): the main-site nav CSS `.container:has(header){position:fixed;...}` (the
   floating header pill) ALSO matches the blog's `.container.lg`, because the post cards and the
   single-post page use `<header class="post-header">`. That pulls the whole listing/post container
   out of flow so #content collapses to its min-height and the posts overlay the banner + footer.
   Neutralise the pill styling for any .container INSIDE #content (the real site header sits OUTSIDE
   #content, so it keeps its fixed pill). Scoped by the #content id so it always wins. */
#content .container:has(header) { position: static !important; top: auto !important; left: auto !important; transform: none !important; max-height: none !important; background-color: transparent !important; border-radius: 0 !important; z-index: auto !important; }

.filter-body { display: flex; gap: 1rem; }
.filter-body > * { flex: 1; border-radius: 3px; overflow: hidden; padding: 0px; margin: 0px; }


a.blogbutton { font-weight: 700 !important; display: inline-block; border-radius: 3px; clear: both; margin: 15px 0 0 0; padding: 0 15px; color: #fff !important; background-color: #fcb54c; line-height: 40px; text-decoration: none !important; }
a.blogbutton:hover { background-color: #30264b; }

.post .post-body a:hover, .post .post-tags a:hover { color: #666; }

#searchbox { display: flex; }

.search input[type=text] { border-radius: 0px; background-color: #fff; border: none; height: 40px; width: calc(100% - 85px) !important; outline: none !important; }
.search input[type=submit] { float: right; border: none; padding: 0; height: 40px; width: 85px !important; font-size: 1.1em; background-color: #000; color: #fff; border: 1px solid #000; font-weight: 700; text-transform: uppercase !important; padding: 0 10px; }
.search input[type=submit]:hover { background-color: #fff; color: #000; }

.search-page .search-page-searchbox form input[type=submit] { margin: 0px; border: none; padding: 0; height: 40px; width: 120px !important; font-size: 1.1em; background-color: #fcb54c; color: #fff; border-radius: 3px; border: none; font-weight: 700; text-transform: uppercase !important; padding: 0 10px; }

.widget.search form { }

.widget.search form { gap: 0px; border-radius: 3px; overflow: hidden; }

.widget ul { list-style: none; padding: 10px 0 0 0; margin: 0px; }

.search-page .searchpage ul.paging li.active { background-color: #000; }

.widget { background-color: transparent; }

.widget.drop .top { border-radius: 3px; overflow: hidden; background-color: #fff; display: flex; justify-content: space-between; align-items: center; padding: 7px; min-height: 40px; font-weight: 500; }
.widget.drop .top h4 { font-weight: 500; }
.widget.drop .top i { font-size: 1.1rem; }
.widget.drop .widget-content { background-color: #fff; padding: 15px; transform: translateY(-2px); }
.widget.drop .widget-content ul { padding: 0px; }

.post-single { max-width: 1300px; margin: 0 auto; font-size: 1.1rem; }

.post-single .right { display: flex; align-items: center; width: 100%; justify-content: center; }

.post-single h1 { font-size: 3rem !important; }

.post-single .post-header-content { max-width: 530px !important; }

.post-single .post-header-content .post-info { padding: 10px 0px; border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; }
.post-single .post-header-content .post-info .glyphicon { color: #fcb54c; }

.post-single .post-header.post-header-split { display: flex; align-items: stretch; gap: 24px; }

.post-single .post-header.post-header-split .post-header-media { flex: 0 0 calc(50% - 12px); max-width: calc(50% - 12px); }

.post-single .post-header.post-header-split .post-header-media img { display: block; width: 100%; height: auto; border-radius: 3px; }

.post-single .post-header.post-header-split .post-header-content { display: flex; flex-direction: column; justify-content: center; }

.post-single .post-header.post-header-split .post-date { margin-bottom: 10px; }

@media screen and (max-width: 767px) {
    .post-single .post-header.post-header-split { display: block; }

    .post-single .post-header.post-header-split .post-header-media,
    .post-single .post-header.post-header-split .post-header-content { max-width: 100%; }

    .post-single .post-header.post-header-split .post-header-media { margin-bottom: 16px; }
    .filter-body { display: flex; gap: 1rem; flex-direction: column; max-width: 500px; margin: 0 auto; }
    .filter-body > * { flex: 1; border-radius: 3px; overflow: hidden; padding: 0px; margin: 0px; }
    .widget.search form { width: 100%; }

    .posts { grid-template-columns: repeat(4, 1fr); }
}

@media screen and (max-width: 500px) {
    .posts { grid-template-columns: repeat(2, 1fr); }
}

.widget.drop .widget-header { margin: 0px; }

.post-edit-link { color: #fcb54c; }

.page-global { box-shadow: none; max-width: 1300px; margin: 0 auto; padding: 0px !important; }
.page-global .page-global-title { font-size: 2.0rem !important; }
.searchpage .searchresult { font-size: 1.1rem; }
.search-page .searchresult span.text { font-size: 1.1rem; }
.search-page .searchresult a { }
.search-page .searchresult a { color: #fcb54c; font-weight: 600; font-size: 1.5rem; }


/* ============================================================
   Old Standard-2015 sidebar (#blognav) restored.
   Overrides the orange .filter-body redesign above so the
   sidebar renders as the original white horizontal widget bar.
   ============================================================ */
.sidebar-wrapper { background-color: #30264b; margin-top: 30px; padding: 30px 0; }

/* widget bar layout — fixed-width boxes spaced apart on one line (matches live) */
.widgetzone { display: flex; flex-wrap: nowrap; justify-content: space-between; max-width: 1400px; width: 100%; margin: 0 auto; }
.widgetzone > div { flex: 0 1 320px; min-width: 0; max-width: 320px; padding: 0 .5rem; }

/* dropdown widgets (.dummy-drop-box) */
#blognav .widget { background-color: transparent; }
#blognav .dummy-drop-box { cursor: pointer; border-radius: 2px; position: relative; color: #4a4a4a; font-size: 1.2em; background-color: #fff; width: 100%; }
#blognav .dummy-drop-box .inner { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0px 15px; height: 50px; width: 100%; font-weight: 400; }
#blognav .dummy-drop-box .inner span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
#blognav .dummy-drop-box .inner i { flex: 0 0 auto; font-size: 1.0em; color: #283551 !important; transition: transform 0.2s ease; }
#blognav .dummy-drop-box.open .inner i { transform: rotate(180deg); }
#blognav .dummy-drop-box .dropdown-container { display: none; position: absolute; left: 0px; top: 100%; z-index: 15; border: 1px solid #d7d7d7; width: 100%; background-color: #fff; max-height: 350px; overflow: auto !important; padding: 10px 0px; }
#blognav .dummy-drop-box.open .dropdown-container { display: block; }
#blognav .dummy-drop-box .dropdown-container ul { font-size: 1rem; list-style: none; padding: 0px; margin: 0px; }
#blognav .dummy-drop-box .dropdown-container li { padding: 0px; }
#blognav .dummy-drop-box .dropdown-container a { padding: 5px 15px; display: inline-block; color: #283551; }
#blognav .dummy-drop-box .dropdown-container a:hover { color: #fcb54c; }
/* month-list year sub-toggle */
#blognav .dummy-drop-box .year { cursor: pointer; }
#blognav .dummy-drop-box .year-title { padding: 5px 15px; font-weight: 600; }
#blognav .dummy-drop-box .year-ul { display: none; padding: 0px; }
#blognav .dummy-drop-box .year-ul.open { display: block; }

/* search widget */
#blognav .widget.search { margin: 0; }
#blognav .widget.search #searchbox { display: block; }
#blognav .widget.search input[type=text] { background-color: #fff; border: 1px solid #757575; border-radius: 0; padding-left: 1rem; height: 50px; width: 75% !important; outline: none !important; font-size: 1.1em; }
#blognav .widget.search input[type=submit] { border-radius: 0px 3px 3px 0px; border: none; float: right; width: 25% !important; height: 50px; background-color: #fcb54c; color: #fff; font-size: 1em; font-weight: 700; cursor: pointer; }
#blognav .widget.search input[type=submit]:hover { background-color: #fcb54c; border-color: #fcb54c; }
/* the search widget is now a dropdown too — inset its form inside the expanded panel (it's an
   input row, not the indented link list of the other dropdowns) */
#blognav .widget.search .dummy-drop-box .dropdown-container { padding: 14px 15px; }
/* let the input grow and the button size to its label (overrides the base 75/25 split) so the
   "SEARCH" text never crowds inside the narrower dropdown */
#blognav .widget.search .dropdown-container #searchbox form { display: flex; }
#blognav .widget.search .dropdown-container input[type=text] { width: auto !important; flex: 1 1 auto; min-width: 0; }
#blognav .widget.search .dropdown-container input[type=submit] { width: auto !important; float: none; flex: 0 0 auto; }

footer .inner { clip-path: none !important; }
footer.footer-overlap { margin-top: 0px !important; }
/* home link icon */
#blognav .homelink { color: #fcb54c; font-size: 1.5em; }

@media screen and (min-width: 992px) {
    #blognav > .rel { display: flex; align-items: center; gap: 15px; justify-content: center; max-width: 1400px; margin: 0 auto; }
    #blognav .nav-padd { width: 100%; }
}

@media screen and (min-width: 768px) {
    .sidebar-wrapper .hburg { display: none; }
}

@media only screen and (max-width: 991px) {
    .content-wrapper.space {padding-top: 90px; }
    .sidebar-wrapper { max-height: calc(100vh - 21vw); overflow: auto; background-color: #fff; padding-bottom: 10px; padding-top: 10px; }
    .sidebar-wrapper .rel { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; padding: 15px; }
    .sidebar-wrapper .rel .hburg { cursor: pointer; color: #30264b; font-size: 2em; }
    .sidebar-wrapper .rel.shut { max-height: 62px; overflow: hidden; }
    .sidebar-wrapper .rel .fa-times { display: block; }
    .sidebar-wrapper .rel .fa-bars { display: none; }
    .sidebar-wrapper .rel.shut .fa-bars { display: block !important; }
    .sidebar-wrapper .rel.shut .fa-times { display: none !important; }
    .sidebar-wrapper .widgetzone { flex-wrap: wrap; padding: 1rem 0px; }
    .sidebar-wrapper .widgetzone > div { flex: 0 0 100%; width: 100%; }
    .sidebar-wrapper .widget { padding:  0; }
    .posts { grid-template-columns: repeat(4, 1fr); }
    .banner.home {height: auto !important; min-height: 10px;}
}

/* ============================================================
   Mobile (<=991px): open the #blognav sidebar as a bottom sheet
   that slides up from the bottom, with a dark overlay behind it.
   The closed state (the in-flow hamburger bar) is unchanged.
   ============================================================ */
.blognav-overlay { display: none; }

@keyframes blognav-slide-up {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

@keyframes blognav-slide-down {
    from { transform: translateY(0); }
    to { transform: translateY(100%); }
}

@keyframes blognav-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes blognav-fade-out {
    from { opacity: 1; }
    to { opacity: 0; }
}

@media only screen and (max-width: 991px) {
    body.blognav-open { overflow: hidden; }

    /* OPEN: fixed bottom sheet sliding up from the bottom */
    .sidebar-wrapper .rel:not(.shut) { position: fixed; left: 0; right: 0; bottom: 0; top: auto; display: block; margin: 0; padding: 30px 18px 24px; max-height: 85vh; overflow-y: auto; -webkit-overflow-scrolling: touch; background: #fff; border-radius: 20px 20px 0 0; box-shadow: 0 -10px 30px rgba(20, 13, 40, .3); z-index: 1001; animation: blognav-slide-up .35s cubic-bezier(.22, .61, .36, 1); }
    /* grab handle at the top of the sheet */
    .sidebar-wrapper .rel:not(.shut)::before { content: ""; position: absolute; top: 11px; left: 50%; transform: translateX(-50%); width: 44px; height: 5px; border-radius: 3px; background: #d7d3e0; }
    /* close (X) button, top-right of the sheet */
    .sidebar-wrapper .rel:not(.shut) .fa-times { position: absolute; top: 16px; right: 18px; margin: 0; font-size: 1.6em; color: #30264b; z-index: 2; }
    /* widgets stack full width inside the sheet */
    .sidebar-wrapper .rel:not(.shut) .nav-padd { width: 100%; }
    .sidebar-wrapper .rel:not(.shut) .widgetzone { flex-wrap: wrap; padding: 6px 0 0; }
    .sidebar-wrapper .rel:not(.shut) .widgetzone > div { flex: 0 0 100%; width: 100%; max-width: 100%; padding: 6px 0; }
    /* Dropdowns open in-flow as an accordion sub-list (NOT an absolute overlay), so opening one
       pushes the rest of the nav down and the sheet grows/scrolls to fit it. Id-scoped so it
       out-specifies the base `#blognav .dummy-drop-box .dropdown-container { position:absolute }`. */
    #blognav .dummy-drop-box.open { overflow: hidden; }
    #blognav .dummy-drop-box.open .dropdown-container { position: static; max-height: none; overflow: visible !important; border: none; border-top: 1px solid #ece8f5; border-radius: 0; background-color: #f6f4fb; padding: 4px 0; z-index: auto; }
    #blognav .dummy-drop-box.open .dropdown-container a { display: inline-flex; padding: 11px 18px 11px 30px; text-decoration: none;}
    #blognav .dummy-drop-box.open .dropdown-container li + li a { border-top: 1px solid #ece8f5; }
    #blognav .dummy-drop-box.open .dropdown-container li {margin: 0px;}
    /* dark overlay behind the sheet (follows .rel in the DOM) */
    .sidebar-wrapper .rel:not(.shut) ~ .blognav-overlay { display: block; position: fixed; inset: 0; background: rgba(20, 13, 40, .55); z-index: 1000; animation: blognav-fade-in .3s ease; }

    /* CLOSING: JS adds .closing so the sheet slides back down (and the overlay fades out)
       before .shut is applied. animation-fill-mode: forwards holds the end state. */
    .sidebar-wrapper .rel:not(.shut).closing { animation: blognav-slide-down .3s cubic-bezier(.4, 0, 1, 1) forwards; pointer-events: none; }
    .sidebar-wrapper .rel:not(.shut).closing ~ .blognav-overlay { animation: blognav-fade-out .3s ease forwards; pointer-events: none; }
}


/* ============================================================
   Single post (.post.post-page) — matches the live /news post page:
   split header (image left, meta right), inline date, dark title,
   bordered author line. Mirrors the live PostViewSingle markup/CSS.
   ============================================================ */
.post.post-page { background-color: #fff; border-radius: 15px; overflow: hidden; max-width: 1400px; margin: 0 auto; padding: 48px 64px; }
/* split header: image left, meta right. Live uses .flx-bx.fl-ju-space-even.fl-al-cent;
   this project lacks the fl-ju-space-even / max-w-1030 utilities, so supply them here. */
.post.post-page .post-graphic { display: flex; justify-content: space-evenly; align-items: center; gap: 30px; flex-wrap: wrap; }
.post.post-page .post-img { flex: 1 1 420px; min-width: 0; max-width: 1030px; padding: 0 20px; position: relative; }
.post.post-page .post-img img { display: block; width: 100%; height: auto; position: relative; z-index: 1; }
.post.post-page .post-graphic > div:last-child { flex: 0 1 530px; min-width: 0; }
.post.post-page .post-header { display: block; max-width: 530px; padding: 0; margin: 0; border-bottom: none; }
.post.post-page .cattitle h1 { color: #33294d; font-size: 2.8em !important; margin: 30px 0 !important; font-weight: 700; text-align: left; text-transform: none; }
/* inline date (replaces the old circular green badge) */
.post.post-page .post-date { display: block; width: auto; height: auto; aspect-ratio: auto; border-radius: 0; background-color: transparent; color: #283551; font-family: inherit; font-weight: normal; font-size: 1.2em; text-transform: uppercase; text-align: left; line-height: normal; margin-bottom: 15px; }
.post.post-page .post-date span { display: inline; height: auto; font-size: 1em; font-family: inherit; color: #283551; font-weight: normal; }
.post.post-page .post-date .m { margin: 0 3px; }
.post.post-page .post-info { display: block; color: #fcb54c; font-size: 13px; padding: 15px 0; margin-top: 15px; border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; }
.post.post-page .post-info span { margin-right: 7px; }
.post.post-page .post-info a { color: #283551; }
.post.post-page .post-info a:hover { color: #fcb54c; }
.post.post-page .glyphicon { color: #fcb54c; }
/* in-body content links: GF purple / gold (main.css sets weight but no colour, so they'd be blue) */
.post.post-page .post-body a { color: #283551; }
.post.post-page .post-body a:hover { color: #fcb54c; }
/* the first body image is shown in the split header, so hide it in the body */
.post.post-page .post-body *:first-child img { display: none; }

@media only screen and (max-width: 991px) {
    .post.post-page { padding: 2rem; }
    .post.post-page .post-graphic { flex-wrap: wrap; }
    .post.post-page .cattitle h1 { font-size: 2em !important; margin: 15px 0 !important; }
    .post.post-page .post-img { flex-basis: 100%; }
    .post.post-page .post-graphic > div:last-child { flex-basis: 100%; }
    .post.post-page .post-header { max-width: 100%; }
}
