header#header img {
    padding: 15px;
}

div#main header#header h1 {
    padding: 0;
}

div#main p {
    text-align: justify;
    margin: 0 0 0.5em 0;
}

div#main h1 {
    font-size: 2.5em;
    font-weight: 1000;
    padding: 0;
}

div#main h2 {
    font-size: 1.5em;
    font-weight: 800;
    margin: 1.2em 0 0.4em 0 !important;
}

div#main h2:first-child {
    margin-top: 0 !important;
}

div.month-container {
    margin-left: 10px;
    padding-left: 30px;
    border-left: 3px dotted black;
}

.home-img-featured img {
    height: auto !important;   /* override fixed height */
    width: 100%;
    max-width: 100%;
}

/* Filters for reviews and event lists */
.filters {
  margin-bottom: 1em;
  border: 1px solid #ccc;
  padding: 2em;
  border-radius: 0.5em;
}

.filter {
  margin-left: 1em;
}

.filter h4 {
  display: inline-block;
  margin-right: 2em;
}

.baobab-dark-green {
  background-color: #1d514e;
  color: white !important;
}

.baobab-dark-green:hover {
  box-shadow: inset 0 0 0 1px #f4f4f4;
  color: #f4f4f4 !important;
}

.baobab-white-smoke {
  background-color: #f4f4f4;
  color: #1d514e !important;
}

.baobab-white-smoke:hover {
  box-shadow: inset 0 0 0 1px #1d514e;
  color: #1d514e !important;
}

.baobab-dark-gray {
  background-color: #646464;
  color: white !important;
}

.baobab-dark-gray:hover {
  box-shadow: inset 0 0 0 1px #f4f4f4;
  color: #f4f4f4 !important;
}

.baobab-light-sea-green {
  background-color: #2ebaae;
  color: white !important;
}

.baobab-light-sea-green-text {
  color: #2ebaae; !important;
}

.baobab-light-sea-green:hover {
  box-shadow: inset 0 0 0 1px #f4f4f4;
  color: #f4f4f4 !important;
}

.baobab-pink {
  background-color: #f9627d;
  color: white !important;
}

.baobab-pink-text {
  color: #f9627d; !important;
}
.baobab-pink:hover {
  box-shadow: inset 0 0 0 1px #f4f4f4;
  color: #f4f4f4 !important;
}



/* News item header: title + date on one line, teal left accent */
.news-header {
    display: flex;
    align-items: baseline;
    gap: 1em;
    border-left: 3px solid #2ebaae;
    padding-left: 0.8em;
    margin-bottom: 0.8em;
}

.news-header .news-title {
    font-size: 1.2em;
    font-weight: 700;
    color: #1d514e;
    margin: 0 !important;
}

.news-header .news-date {
    font-size: 0.75em;
    color: #999;
    font-weight: 400;
    white-space: nowrap;
    letter-spacing: 0.05em;
}

.news-img img {
    height: auto !important;
    width: 100%;
    max-width: 100%;
}

div#main .news-body h2, .news-body h3, .news-body h4 {
    font-size: 0.8em;
}

.button-full-width {
    display: block;
    width: 100%;
    text-align: center;
}

/* Full-width newsflash bar(s). The bar renders in normal flow just above
   #wrapper; the theme's `body { padding-top: 3.5em }` already clears the
   fixed navbar, so no extra top offset is needed here. */
.newsflashes {
    /* Subtle depth so the bar lifts off the page content below it. */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
}

.newsflash {
    width: 100%;
    padding: 0.5rem 1rem;
    text-align: center;
}

/* The rich-text content is wrapped in a <p>; drop the theme's 2em paragraph
   margin (otherwise it pads the bar out) and override the theme's hardcoded
   bold/link colors so all text inherits the auto-contrast color. */
.newsflash p {
    margin: 0;
}

.newsflash a,
.newsflash strong,
.newsflash b {
    color: inherit;
}

.newsflash a {
    text-decoration: underline;
}

/* Navbar search autocomplete dropdown.
   Selectors are scoped under #header so they out-specify the theme's
   `#header ul li { display: inline-block }` rule (id specificity), which would
   otherwise stop the rows being flex (breaking truncation and pill alignment). */
#header .search-suggestions {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 1000;
    /* Reset the header's tall line-height (3.5em) so rows and pills aren't huge. */
    line-height: 1.4;
    /* Definite width so long titles truncate cleanly and the pill stays put. */
    width: 340px;
    max-width: 90vw;
    margin: 0;
    padding: 0;
    list-style: none;
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#header .search-suggestions li {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0;
    border-bottom: 1px solid #f0f0f0;
}

#header .search-suggestions li:last-child {
    border-bottom: none;
}

#header .search-suggestions li a {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.5rem 0.75rem;
    color: #1d514e;
    text-decoration: none;
    border-bottom: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#header .search-suggestions li.active,
#header .search-suggestions li:hover {
    background: #f5f5f5;
}

/* Type badge: a rounded pill in the brand palette, pinned to the right edge. */
#header .search-suggestion-type {
    flex: 0 0 auto;
    margin-left: auto;
    margin-right: 0.6rem;
    padding: 0.1rem 0.55rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #f4f4f4;
    background: #646464;
}

#header .search-suggestion-type--review {
    background: #2ebaae;
}

#header .search-suggestion-type--event {
    background: #f9627d;
}

#header .search-suggestion-type--page {
    background: #646464;
}

/* Footer row linking to the full results page (which also searches content). */
#header .search-suggestions .search-suggestion-all {
    border-top: 1px solid #ddd;
    background: #fafafa;
}

#header .search-suggestions .search-suggestion-all a {
    color: #2ebaae;
    font-weight: 700;
    font-size: 0.85rem;
}