/* Public-site compatibility with the selected Lipode Arbitrage demo.
 * Measured against its style.css, responsive.css and inline theme settings.
 * The supplied root files remain intact; this sheet is loaded after them.
 */
:root,
:root body {
  color-scheme: light;
  margin: 0;
  padding: 0;
  background: #fff !important;
  color: #000 !important;
  font-family: 'Raleway', Arial, sans-serif !important;
  font-size: 18px;
  line-height: normal;
}
button, input, select, textarea { font-family: inherit; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 999;
  width: 100%;
  height: 71px;
  padding: 0;
  opacity: .95;
  background: #fff !important;
  border-bottom: 1px solid #ddd !important;
  box-shadow: none;
}
.header-container {
  position: relative;
  width: 1088px;
  max-width: none;
  height: 70px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
}
.header-left { display: flex; align-items: center; gap: 0; min-width: 0; }
.site-logo { display: flex; gap: 0; align-items: center; height: 70px; flex-shrink: 0; }
.site-logo .heart-icon,
.site-logo .reference-logo-icon {
  display: block;
  box-sizing: content-box;
  width: 48px !important;
  height: 48px !important;
  max-width: none !important;
  max-height: none !important;
  padding: 11px;
  flex-shrink: 0;
  object-fit: contain;
  background: #fff;
}
.site-logo:hover .heart-icon,
.site-logo:hover .reference-logo-icon { background: #f1f1f1; }
.site-logo .logo-text {
  display: block;
  height: 70px;
  padding: 0 15px;
  color: #4c585c !important;
  font: 700 38px/70px Arial, sans-serif;
  letter-spacing: normal;
  white-space: nowrap;
}
.site-logo:hover .logo-text { color: #fff !important; background: #ff7300; }
.main-nav { display: flex; position: static; width: auto; padding: 0; border: 0; box-shadow: none; }
.nav-list { display: flex; flex-direction: row; align-items: center; gap: 0; width: auto; }
.nav-list > li { width: auto; border: 0; }
.nav-list .nav-link {
  display: block;
  width: auto;
  height: 70px;
  padding: 0 15px;
  border: 0;
  border-radius: 0;
  font: 700 22px/70px 'Raleway', Arial, sans-serif;
  color: #4c585c !important;
  background: transparent;
  white-space: nowrap;
}
.nav-list .nav-link:hover,
.nav-list .nav-link:focus-visible { color: #fff !important; background: #ff7300; }
.arrow-down { display: inline; margin-left: 5px; font-size: 13px; }
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: #fff !important;
  box-shadow: none;
}
.dropdown-menu li { border: 0; }
.dropdown-menu li a {
  padding: 0 15px;
  height: 71px;
  font-size: 22px;
  font-weight: 700;
  line-height: 70px;
  color: #4c585c !important;
  border: 1px solid #f1f1f1;
  border-top: 0;
  white-space: nowrap;
}
.dropdown-menu li a:hover { background: #ff7300 !important; color: #fff !important; }
.header-right { display: flex; align-items: center; justify-content: flex-end; height: 70px; gap: 15px; margin-left: auto; }
.theme-toggle-btn { display: none !important; }
.search-btn { padding: 0; width: 32px; height: 70px; color: #4c585c !important; }
.search-btn:hover { color: #ff7300 !important; }
.search-icon { width: 32px; height: 32px; }
.reference-story-nav { display: flex; width: 40px; height: 70px; align-items: center; justify-content: center; color: #4c585c !important; }
.reference-story-nav svg { width: 32px; height: 32px; }
.reference-story-nav:hover { color: #ff7300 !important; }
.mobile-menu-btn { display: none; }
.search-overlay {
  position: fixed;
  top: 71px;
  left: 0;
  right: 0;
  z-index: 998;
  padding: 15px max(2%, calc((100% - 1088px) / 2));
  background: #fff !important;
  border-bottom: 1px solid #ddd !important;
  box-shadow: none;
}
.search-inner { width: 100%; max-width: 1088px; }
.search-inner input { font-size: 18px; color: #4c585c !important; background: #fff !important; border-color: #ddd; }
.search-inner input:focus { border-color: #ff7300; }
.close-search-btn { color: #4c585c !important; }
.publisher-search-results { max-width: 1088px; padding: 0; }
.publisher-search-results a { color: #4c585c !important; font-size: 18px; }
.publisher-search-results a:hover { color: #ff7300 !important; }

/* The original 1113px wrapper contains three 346px images, 25px apart.
 * A minimum row height keeps its 340px rhythm while allowing long real titles.
 */
.main-wrapper {
  width: 1113px;
  max-width: 100%;
  margin: 95px auto 0;
  padding: 0 12.5px;
}
.main-wrapper > .articles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 25px;
  row-gap: 0;
  align-items: start;
}
.main-wrapper > .articles-grid > .article-card {
  display: flex;
  min-width: 0;
  min-height: 340px;
  height: auto;
  padding: 15px 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none;
}
.main-wrapper > .articles-grid .thumbnail-wrapper {
  width: 100%;
  height: 210px;
  aspect-ratio: auto;
  border-radius: 5px;
  background: #f1f1f1 !important;
  box-shadow: none;
}
.main-wrapper > .articles-grid .thumbnail-wrapper img {
  width: 100%;
  height: 210px;
  object-fit: fill;
  border-radius: 5px;
  transform: none;
  transition: none;
}
.main-wrapper > .articles-grid .card-link { color: #4c585c; }
.main-wrapper > .articles-grid .card-title {
  margin: 0;
  padding-top: 10px;
  font: 700 22px/30px 'Raleway', Arial, sans-serif;
  letter-spacing: normal;
  color: #4c585c !important;
}
.main-wrapper > .articles-grid .card-link:hover .thumbnail-wrapper img { opacity: .8; transform: none; }
.main-wrapper > .articles-grid .card-link:hover .card-title { color: #ff7300 !important; }
.main-wrapper > .single-title { font: 700 36px/44px 'Raleway', Arial, sans-serif; color: #4c585c !important; margin: 30px 0; letter-spacing: normal; }
.publisher-image-placeholder { background: #f1f1f1 !important; }
.pagination-wrapper { margin: 25px 0 0; }
.pagination-wrapper .page-numbers { font-family: 'Raleway', Arial, sans-serif; font-size: 18px; font-weight: 700; color: #4c585c !important; background: #f1f1f1 !important; }
.pagination-wrapper .page-numbers.current,
.pagination-wrapper .page-numbers:hover { background: #ff7300 !important; color: #fff !important; }

.site-footer {
  width: 100%;
  min-height: 71px;
  padding: 0;
  margin: 120px 0 0;
  border-top: 1px solid #ddd !important;
  background: #fff !important;
  color: #4c585c !important;
}
.footer-container {
  width: 1088px;
  max-width: none;
  min-height: 70px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0;
}
.copyright-info,
.copyright-info a { font-size: 16px; font-weight: 700; line-height: 70px; color: #4c585c !important; }
.footer-links { flex-direction: row-reverse; gap: 30px; flex-wrap: wrap; }
.footer-links li a { font-size: 16px; font-weight: 700; line-height: 70px; color: #4c585c !important; }
.footer-links li a:hover { color: #ff7300 !important; }
.back-to-top {
  bottom: 40px;
  right: 40px;
  width: 50px;
  height: 50px;
  color: #fff !important;
  background: #4c585c !important;
  box-shadow: none;
  transform: none;
}
.back-to-top svg { width: 30px; height: 30px; }
.back-to-top:hover { opacity: .8; transform: none; }

@media (min-width: 768px) and (max-width: 1113px) {
  .header-container, .footer-container { width: 98%; margin: 0 1%; }
  .main-wrapper { width: 100%; padding: 0 1%; }
  .main-wrapper > .articles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2vw; row-gap: 0; }
  .main-wrapper > .articles-grid > .article-card { min-height: calc(350px + 1vw); padding: 1vw 0 40px; }
  .main-wrapper > .articles-grid .thumbnail-wrapper,
  .main-wrapper > .articles-grid .thumbnail-wrapper img { height: auto; aspect-ratio: auto; }
  .back-to-top { width: 30px; height: 30px; }
  .back-to-top svg { width: 20px; height: 20px; }
}

@media (max-width: 1113px) {
  .header-container { justify-content: flex-start; }
  .header-left { flex-shrink: 0; }
  .header-right { margin-left: auto; }
  .main-nav { display: none; }
  .main-nav.active {
    display: block;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    padding: 0;
    background: #fff !important;
    border: 1px solid #ddd;
    box-shadow: none;
  }
  .main-nav.active .nav-list { flex-direction: column; width: 100%; align-items: stretch; }
  .main-nav.active .nav-list > li { width: 100%; border: 0; }
  .main-nav.active .nav-link { width: 100%; height: 50px; line-height: 50px; text-align: left; }
  .main-nav.active .dropdown-menu { position: static; width: 100%; padding: 0; border: 0; background: #fff !important; }
  .main-nav.active .dropdown-menu li a { height: 50px; line-height: 50px; padding-left: 30px; }
  .mobile-menu-btn {
    display: flex;
    position: absolute;
    top: 18px;
    left: var(--reference-menu-left, 285px);
    width: 31px;
    height: 32px;
    padding: 2px 0;
    margin: 0 15px;
    border-radius: 0;
  }
  .mobile-menu-btn .bar { width: 30px; height: 4px; border-radius: 1px; background: #4c585c !important; }
  .header-left > .mobile-menu-btn { position: static; flex-shrink: 0; }
  .mobile-menu-btn.active .bar:nth-child(1) { transform: translateY(12px) rotate(45deg); }
  .mobile-menu-btn.active .bar:nth-child(3) { transform: translateY(-12px) rotate(-45deg); }
  .footer-links { display: none; }
}

@media (max-width: 767px) {
  .header-container, .footer-container { width: 100%; padding: 0 2%; margin: 0; }
  .site-logo .logo-text { display: none; }
  .mobile-menu-btn { left: calc(2% + 70px); }
  .main-wrapper { width: 100%; max-width: none; margin-top: 90px; padding: 0 2%; }
  .main-wrapper > .articles-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .main-wrapper > .articles-grid > .article-card { min-height: 0; padding: 0; margin: 0; }
  .main-wrapper > .articles-grid .thumbnail-wrapper,
  .main-wrapper > .articles-grid .thumbnail-wrapper img { height: auto; aspect-ratio: auto; }
  .main-wrapper > .articles-grid .card-title { padding-top: 0; margin: 0 0 25px; font-size: 22px; line-height: 30px; }
  .main-wrapper > .single-title { font-size: 24px; line-height: 27px; }
  .copyright-info, .copyright-info a { font-size: 11px; }
  .back-to-top { display: none; }
}
