/**
 * Modern explore sidebar — replaces legacy sidebox1 cards site-wide.
 * Overrides style.min.css rules that crush links and float oversized portraits.
 */

.sidebar.rnc-explore {
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  justify-content: flex-start !important;
  align-items: stretch !important;
  gap: 0 !important;
  margin: 2.5rem 0 0 !important;
  width: min(100%, 340px);
  max-width: 340px;
  float: none !important;
  padding: 0 !important;
  background: transparent !important;
}

.sidebar.rnc-explore .rnc-explore-kicker {
  margin: 0 0 0.25rem;
  font-family: var(--priFont), Figtree, sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8a93a8;
}

.sidebar.rnc-explore .rnc-explore-heading {
  margin: 0 0 0.9rem;
  font-family: var(--secFont), Merriweather, Georgia, serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #0b2860;
  line-height: 1.2;
  background: none !important;
  padding: 0 !important;
}

.sidebar.rnc-explore .rnc-explore-heading span {
  background: none !important;
}

.sidebar.rnc-explore .rnc-explore-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.sidebar.rnc-explore .rnc-explore-card {
  display: grid !important;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  width: auto !important;
  max-width: none !important;
  aspect-ratio: auto !important;
  position: relative !important;
  right: auto !important;
  bottom: auto !important;
  padding: 0.8rem 0.85rem !important;
  margin: 0 !important;
  background: #fff !important;
  border: 1px solid #dce3ef !important;
  border-left: 3px solid var(--primaryColor, #f6b100) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  text-decoration: none !important;
  color: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
  text-indent: 0 !important;
  overflow: visible !important;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.sidebar.rnc-explore .rnc-explore-card:hover,
.sidebar.rnc-explore .rnc-explore-card:focus-visible {
  border-color: #b7c4dc !important;
  box-shadow: 0 10px 24px rgba(11, 40, 96, 0.1) !important;
  transform: translateY(-2px);
  color: inherit !important;
  background: #fff !important;
  outline: none;
}

.sidebar.rnc-explore .rnc-explore-card-media {
  display: block;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  background: #eef2f7;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #d0d8e6;
}

.sidebar.rnc-explore .rnc-explore-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: none !important;
  position: static !important;
  left: auto !important;
  top: auto !important;
}

.sidebar.rnc-explore .rnc-explore-card-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.sidebar.rnc-explore .rnc-explore-card-label {
  font-family: var(--priFont), Figtree, sans-serif;
  font-size: 0.98rem;
  font-weight: 800;
  color: #0b2860;
  line-height: 1.25;
}

.sidebar.rnc-explore .rnc-explore-card-deck {
  font-family: var(--bodyFont), "Open Sans", sans-serif;
  font-size: 0.82rem;
  line-height: 1.4;
  color: #5c6578;
}

.sidebar.rnc-explore .rnc-explore-card-go {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0942a2;
}

/* Kill legacy sidebox chrome if any remnant classes appear */
.sidebar.rnc-explore section,
.sidebar.rnc-explore .sidebox1 {
  all: unset;
}
.sidebar.rnc-explore::before,
.sidebar.rnc-explore::after,
.sidebar.rnc-explore section::before,
.sidebar.rnc-explore section::after {
  display: none !important;
  content: none !important;
}

/* Layout: keep main + explore readable when sidebar is visible */
.main_con:has(> .sidebar.rnc-explore) {
  display: flex !important;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  min-height: 0 !important;
}

.main_con:has(> .sidebar.rnc-explore) > main {
  float: none !important;
  flex: 1 1 28rem;
  width: auto !important;
  max-width: 720px !important;
  margin: 0 !important;
  text-align: left !important;
}

@media only screen and (max-width: 980px) {
  .main_con:has(> .sidebar.rnc-explore) {
    flex-direction: column;
  }

  .sidebar.rnc-explore {
    width: 100% !important;
    max-width: 100% !important;
    margin: 1.5rem 0 0 !important;
  }

  .sidebar.rnc-explore .rnc-explore-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .sidebar.rnc-explore .rnc-explore-card {
    grid-template-columns: 1fr !important;
    align-items: start;
    min-height: 100%;
  }

  .sidebar.rnc-explore .rnc-explore-card-go {
    display: none;
  }
}

@media only screen and (max-width: 700px) {
  .sidebar.rnc-explore .rnc-explore-list {
    grid-template-columns: 1fr;
  }

  .sidebar.rnc-explore .rnc-explore-card {
    grid-template-columns: 52px minmax(0, 1fr) auto !important;
    align-items: center;
  }

  .sidebar.rnc-explore .rnc-explore-card-go {
    display: inline;
  }

  .sidebar.rnc-explore .rnc-explore-card-media {
    width: 52px;
    height: 52px;
  }
}

/* Legal / utility pages: full-width reading, no explore rail */
body.page-id-44 .sidebar,
body.page-id-7 .sidebar,
body.page-id-6 .sidebar,
body.page-privacy-notice .sidebar,
body.page-sitemap .sidebar {
  display: none !important;
}

body.page-id-44 .main_con,
body.page-id-7 .main_con,
body.page-id-6 .main_con {
  display: block !important;
}

body.page-id-44 main,
body.page-id-7 main,
body.page-id-6 main {
  float: none !important;
  width: 100% !important;
  max-width: 820px !important;
  margin: 0 auto !important;
}
