body {
  padding-top: 0 !important;
}

#masthead,
.site-header,
.custom-header,
.site-branding,
.custom-header-media {
  overflow: visible !important;
}

.custom-header-media {
  display: none !important;
}

#masthead .wrap {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
}

.site-header {
  background: #fff;
  margin: 0;
}

.site-branding {
  background: #fff;
  padding: 14px 0 6px !important;
  margin: 0 !important;
}

.site-branding .wrap {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.65rem 0.85rem;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.site-branding .site-branding-text {
  display: inline-block;
  max-width: calc(100% - 100px);
  vertical-align: middle;
}

.site-branding .site-title {
  margin: 0 !important;
  padding: 0 !important;
  font-size: clamp(1.05rem, 2.8vw, 1.65rem) !important;
  font-weight: 800 !important;
  letter-spacing: 0.05em;
  line-height: 1.35 !important;
  text-transform: uppercase;
  overflow: visible !important;
}

.site-branding .site-title,
.site-branding .site-title a {
  color: #222 !important;
  text-decoration: none;
}

.custom-logo-link {
  flex-shrink: 0;
  padding-right: 0.5em !important;
}

.custom-logo-link img.custom-logo {
  max-height: 72px;
  width: auto;
  height: auto;
  display: block;
}

.navigation-top {
  background: #fff;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  margin: 0;
  padding: 0;
}

/* Logo above nav: disable Twenty Seventeen overlay layout */
@media screen and (min-width: 48em) {
  .site-header {
    display: flex;
    flex-direction: column;
  }

  .custom-header {
    order: 1;
    flex: 0 0 auto;
  }

  .navigation-top {
    order: 2;
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    width: 100% !important;
    z-index: 1;
  }

  .site-navigation-fixed.navigation-top,
  .site-navigation-hidden.navigation-top {
    position: relative !important;
    top: auto !important;
    bottom: auto !important;
  }

  .site-branding {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    width: auto !important;
    z-index: 2;
  }
}

.navigation-top .wrap {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.site-content {
  padding: 0 !important;
}

/* White content column on green body (reference layout) */
.site-content-contain .site-content .content-area {
  background: #fff;
  width: 100%;
  max-width: 1250px;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-top: 20px !important;
  padding: 0 15px;
  box-sizing: border-box;
}

.site-content-contain .site-content .content-area .hentry {
  padding: 20px;
  box-sizing: border-box;
}

@media screen and (max-width: 1200px) {
  .site-content-contain .site-content .content-area {
    max-width: 960px !important;
  }
}

@media screen and (max-width: 992px) {
  .site-content-contain .site-content .content-area {
    max-width: 720px !important;
  }
}

@media screen and (max-width: 768px) {
  .site-content-contain .site-content .content-area {
    max-width: 540px !important;
  }
}

@media screen and (max-width: 576px) {
  .site-content-contain .site-content .content-area {
    max-width: 100% !important;
  }
}

article.twentyseventeen-panel {
  overflow: visible;
}

article .entry-content > .row.overflowX:first-child {
  margin-top: 0;
}

/* Affiliate brand cards — match reference site */
.entry-content .row.overflowX {
  margin-left: -15px;
  margin-right: -15px;
  width: calc(100% + 30px);
  max-width: none;
}

.entry-content .row.overflowX a {
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
}

.entry-content .listWrapper a:hover,
.entry-content .listWrapper a:focus {
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
}

.entry-content .listWrapper .right .up .section1 .section-left p a {
  color: #5cb629 !important;
  text-decoration: none !important;
}

.entry-content .listWrapper .right .up .section1 .section-right p a {
  color: #2ca5e4 !important;
  text-decoration: none !important;
}

.entry-content .listWrapper .right .up .section2 p a {
  color: #555 !important;
}

.entry-content .listWrapper .right .up .section3 .starLink a {
  color: #2980b9 !important;
}

.entry-content .listWrapper .right .bottom ul li a {
  color: #212529 !important;
}

.entry-content .listWrapper .left .starLink a {
  text-decoration: none !important;
}

.listHdng li {
  color: #fff !important;
}

.my-rating.starrating {
  display: inline-flex;
  gap: 2px;
  align-items: center;
  flex-wrap: nowrap;
  min-height: 20px;
  vertical-align: middle;
}

.navigation-top .main-navigation ul {
  list-style: none;
}

.main-navigation .icon {
  width: 0.75em;
  height: 0.75em;
  margin-left: 0.25em;
  vertical-align: middle;
  fill: currentColor;
}

@media screen and (min-width: 48em) {
  .js .menu-toggle {
    display: none !important;
  }

  .js .main-navigation .menu-top-container {
    display: block !important;
  }

  .js .main-navigation > .menu-top-container > .menu {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center !important;
    gap: 0;
    padding: 0.25em 0 0.45em !important;
    border-top: 0;
    background: transparent;
  }

  .js .main-navigation > .menu-top-container > .menu > .menu-item {
    border-bottom: none;
    display: inline-block;
    position: relative;
  }

  .js .main-navigation > .menu-top-container > .menu > .menu-item > a {
    padding: 0.85em 1em;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
  }

  .js .main-navigation .menu-item-has-children > a > .icon {
    display: inline-block !important;
  }
}

@media (max-width: 47.99em) {
  .js .main-navigation:not(.toggled-on) > .menu-top-container {
    display: none;
  }

  .js .main-navigation.toggled-on > .menu-top-container {
    display: block;
  }

  .js .menu-toggle {
    display: block;
    margin: 0 auto;
  }
}

.entry-content img {
  max-width: 100%;
  height: auto;
}

.alignnone.size-full.wp-image-2048 {
  max-width: 100%;
  height: auto;
}

.ap-gallery-carousel {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

@media (min-width: 576px) {
  .ap-gallery-carousel {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .ap-gallery-carousel {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1000px) {
  .ap-gallery-carousel {
    grid-template-columns: repeat(4, 1fr);
  }
}

.ap-gallery-carousel .item {
  width: 100%;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.rg-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background:
    radial-gradient(circle at top, #1f8a3b 0%, #0c4d22 42%, #062613 100%);
  overflow: auto;
}

.rg-card {
  width: min(460px, 100%);
  margin: auto;
  padding: 32px 28px 24px;
  background: #fff;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.rg-flag {
  width: 64px;
  height: auto;
  margin: 0 auto 8px;
}

.rg-brand-name {
  margin: 0;
  color: #16331d;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.rg-age {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 16px auto 8px;
  border: 3px solid #1a9842;
  border-radius: 50%;
  color: #1a9842;
  font-size: 22px;
  font-weight: 800;
}

.rg-card h1 {
  margin: 0 0 10px;
  color: #102416;
  font-size: 1.7rem;
  line-height: 1.2;
}

.rg-lead {
  margin: 0 auto 14px;
  max-width: 36ch;
  color: #3d4a40;
  font-size: 15px;
  line-height: 1.5;
}

.rg-points {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.rg-points li {
  margin: 0;
  padding: 6px 0;
  border-top: 1px solid #edf2ee;
  color: #243028;
  font-size: 14px;
  font-weight: 600;
}

.rg-timer span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #1a9842;
  color: #fff;
  font-size: 32px;
  font-weight: 800;
}

.rg-count {
  margin: 10px 0 12px;
  color: #5c6b61;
  font-size: 13px;
}

.rg-bar {
  height: 4px;
  margin: 0 auto 18px;
  max-width: 180px;
  overflow: hidden;
  border-radius: 99px;
  background: #e5eee7;
}

.rg-bar span {
  display: block;
  height: 100%;
  background: #1a9842;
  transform-origin: left center;
  animation: rg-drain 3s linear forwards;
}

@keyframes rg-drain {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}

.rg-icons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.rg-icons img {
  width: 42px;
  height: 42px;
}

img,
video,
iframe,
svg {
  max-width: 100%;
}

.entry-content table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

.site-footer {
  margin: 2em 0 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden;
  box-sizing: border-box;
}

.site-footer .wrap {
  width: 100% !important;
  max-width: 1000px !important;
  margin: 0 auto !important;
  padding: 1.5em 1em !important;
  box-sizing: border-box;
}

.site-footer .widget-area {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
}

.site-footer .widget-column.footer-widget-1,
.site-footer .widget-column.footer-widget-2 {
  float: none !important;
  width: auto !important;
  max-width: 100%;
}

.site-footer .widget-column.footer-widget-1 {
  flex: 1 1 220px;
}

.site-footer .widget-column.footer-widget-2 {
  flex: 1 1 240px;
}

.footer-widget-2 a,
.row.minu-row a {
  float: none !important;
  display: inline-block;
}

.row.minu-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  max-width: 100%;
}

.site-branding .wrap,
.site-branding .site-branding-text {
  min-width: 0;
}

.site-branding .site-branding-text {
  flex: 1 1 auto;
  max-width: none;
}

.site-branding .site-title {
  font-size: clamp(0.78rem, 3.6vw, 1.65rem) !important;
}

.listWrapper,
.listWrapper .left,
.listWrapper .right,
.listWrapper .right .up,
.listWrapper .right .bottom {
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

@media screen and (min-width: 48em) and (max-width: 67em) {
  .js .main-navigation > .menu-top-container > .menu > .menu-item > a {
    padding: 0.7em 0.45em;
    font-size: 13px;
  }
}

@media screen and (min-width: 48em) {
  .js .main-navigation > .menu-top-container > .menu > .menu-item:nth-last-child(-n + 2):hover > .sub-menu,
  .js .main-navigation > .menu-top-container > .menu > .menu-item:nth-last-child(-n + 2).focus > .sub-menu {
    left: auto !important;
    right: 0 !important;
  }

  .js .main-navigation ul ul a {
    width: auto;
    min-width: 12em;
    max-width: min(18em, 80vw);
    white-space: normal;
  }
}

@media screen and (max-width: 768px) {
  .custom-logo-link img.custom-logo {
    max-height: 52px;
  }

  .site-content-contain .site-content .content-area .hentry {
    padding: 12px 10px;
  }
}

@media screen and (max-width: 576px) {
  .site-content-contain .site-content .content-area {
    margin-top: 0 !important;
    padding: 0;
  }

  .entry-content .row.overflowX {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
  }

  .listWrapper .right .up {
    padding: 10px 8px;
  }

  .listWrapper .right .up .section4 .btn-success {
    white-space: normal;
    font-size: 14px !important;
    line-height: 1.2;
  }

  .listWrapper .right .up .section4 .btn-success span {
    font-size: 10px;
  }

  .js .main-navigation.toggled-on > .menu-top-container > .menu {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .js .main-navigation.toggled-on a {
    white-space: normal;
  }
}
