/*
Theme Name: Rank Asia
Description: The Rank Asia child theme for family-ready travel and food guides.
Theme URI:   https://themeforest.net/item/salient-responsive-multipurpose-theme/4363266
Author: Mango Compass
Template: salient
Version: 1.2.9
*/

:root {
  --rankasia-ink: #17322d;
  --rankasia-jade: #066b58;
  --rankasia-mango: #ffb547;
  --rankasia-cream: #fffaf0;
  --rankasia-muted: #5f6f6a;
  --rankasia-rule: #dfe6e3;
  --rankasia-soft: #f5f7f6;
}
body { color: var(--rankasia-ink); }

body #header-outer #top #logo img {
  content: url('assets/images/rank-asia-logo-editorial.png');
}

.cmplz-cookiebanner .cmplz-links ul {
  display: flex !important;
  flex-wrap: wrap;
  gap: 0.35rem 0.8rem;
  justify-content: center;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.cmplz-cookiebanner .cmplz-links li {
  display: inline-flex;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.cmplz-cookiebanner .cmplz-links li::marker {
  content: '';
}

.single-post .post-content p,
.single-post .post-content li {
  line-height: 1.75;
}

.single-post .post-content > h2 {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 0.8rem;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.single-post .post-content > h3 {
  margin-top: 2rem;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  line-height: 1.3;
}

.single-post .post-content ul,
.single-post .post-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.25rem;
}

.rankasia-article-intro {
  font-size: clamp(1.12rem, 2vw, 1.35rem);
  line-height: 1.65;
  color: var(--rankasia-muted);
}
.rankasia-quick-facts {
  margin: clamp(2.25rem, 5vw, 3.5rem) 0;
  padding: clamp(1.25rem, 3vw, 1.75rem) 0;
  border-top: 1px solid var(--rankasia-rule);
  border-bottom: 1px solid var(--rankasia-rule);
}

.rankasia-quick-facts h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  line-height: 1.2;
}

.rankasia-quick-facts ul { margin-bottom: 0; }

.rankasia-note {
  display: grid;
  grid-template-columns: minmax(8.5rem, 0.22fr) 1fr;
  align-items: start;
  column-gap: clamp(1.5rem, 4vw, 4rem);
  margin: clamp(3rem, 7vw, 5rem) 0;
  padding: clamp(1.4rem, 3vw, 1.8rem) 0;
  border-top: 1px solid var(--rankasia-rule);
  border-bottom: 1px solid var(--rankasia-rule);
  color: var(--rankasia-muted);
  font-size: 1rem;
  line-height: 1.75;
}

.rankasia-note strong {
  display: block;
  margin: 0;
  color: var(--rankasia-ink);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.rankasia-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}

.rankasia-card {
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--rankasia-rule);
}

.rankasia-card > :first-child { margin-top: 0; }

.rankasia-kicker {
  color: var(--rankasia-jade);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rankasia-source-note {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rankasia-rule);
  color: var(--rankasia-muted);
  font-size: 0.92rem;
}

.rankasia-home-hero {
  position: relative;
  display: grid;
  overflow: hidden;
  height: clamp(560px, 78vh, 760px);
  margin-bottom: clamp(3rem, 8vw, 7rem);
  border-radius: 0;
  background: var(--rankasia-ink);
  color: #fff;
}

.rankasia-home-hero img {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center;
  opacity: 1;
}

.rankasia-home-hero::after {
  z-index: 1;
  grid-area: 1 / 1;
  background:
    linear-gradient(90deg, rgba(9, 24, 21, 0.88) 0%, rgba(9, 24, 21, 0.52) 48%, rgba(9, 24, 21, 0.12) 78%),
    linear-gradient(0deg, rgba(9, 24, 21, 0.82) 0%, rgba(9, 24, 21, 0) 48%);
  content: '';
  pointer-events: none;
}

.rankasia-home-hero__copy {
  z-index: 2;
  grid-area: 1 / 1;
  align-self: end;
  max-width: 780px;
  margin: 0;
  padding: clamp(2.5rem, 4vw, 4rem);
  text-align: left;
}

.rankasia-home-hero__copy h1 {
  max-width: 10ch;
  margin: 0.2em 0;
  color: #fff;
  font-size: clamp(2.6rem, 6vw, 5.5rem);
  line-height: 0.98;
  text-wrap: balance;
}

.rankasia-home-hero__copy > p:last-child {
  max-width: 52ch;
  margin-bottom: 0;
  text-wrap: balance;
}

.rankasia-home-hero .rankasia-kicker {
  color: #ffd18a;
}

/* The homepage methodology strip was retired in 1.2.4. Keep stale imported
   page content from resurfacing while production catches up with the source. */
body.home .rankasia-note {
  display: none;
}

.nectar-social .whatsapp-share {
  border-color: #18864b;
  color: #18864b;
}

.nectar-social .whatsapp-share i {
  color: inherit;
}

.nectar-social.fixed .whatsapp-share,
.nectar-social.hover .whatsapp-share:hover,
#single-below-header .nectar-social.hover .whatsapp-share:hover {
  border-color: #25d366 !important;
  background-color: #25d366 !important;
  color: #fff !important;
}

.sharing-default-minimal .nectar-social .whatsapp-share:hover {
  border-color: #18864b;
  background-color: #18864b;
  color: #fff;
}

.rankasia-story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: 1.5rem;
  margin: 2rem 0 4rem;
}

.rankasia-story-card {
  overflow: hidden;
  border: 1px solid var(--rankasia-rule);
  border-radius: 10px;
  background: #fff;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.rankasia-story-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(23, 50, 45, 0.11);
}

.rankasia-story-card__link {
  display: flex;
  height: 100%;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.rankasia-story-card__link:focus-visible {
  outline-offset: -4px;
}

.rankasia-story-card__image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.rankasia-story-card__body { padding: 1.25rem; }
.rankasia-story-card__body h3 { margin: 0.25rem 0 0.6rem; }
.rankasia-story-card__body h3 { color: var(--rankasia-ink); }
.rankasia-story-card__body p:last-child {
  margin-bottom: 0;
  color: var(--rankasia-muted);
  line-height: 1.6;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--rankasia-mango);
  outline-offset: 3px;
}

@media (min-width: 691px) {
  body.home .container-wrap {
    padding-top: 0 !important;
  }

  body.home #header-space {
    height: 0 !important;
  }

  body.home #header-outer.at-top {
    background: linear-gradient(
      180deg,
      rgba(5, 18, 16, 0.9) 0%,
      rgba(5, 18, 16, 0.64) 68%,
      rgba(5, 18, 16, 0) 100%
    ) !important;
    box-shadow: none !important;
  }

  body.home .rankasia-home-hero {
    width: 100vw;
    max-width: none;
    overflow: visible;
    height: clamp(640px, 86vh, 820px);
    margin-right: calc(50% - 50vw);
    margin-left: calc(50% - 50vw);
    border-radius: 0;
  }

  body.home .rankasia-home-hero__copy h1 {
    padding: 0.04em 0 0.08em;
    line-height: 1.02;
  }

  body #header-outer #top #logo,
  body #header-outer #top #logo img {
    width: 158px !important;
    height: auto !important;
    max-height: 32px !important;
  }
}

@media (min-width: 691px) and (max-width: 1180px) {
  #header-outer #top nav > ul.sf-menu:not(.buttons) {
    display: none !important;
  }
}

@media (max-width: 690px) {
  body.home .container-wrap {
    padding-top: 0 !important;
  }

  body.home #header-space {
    height: 0 !important;
  }

  body.home #header-outer.at-top {
    background: linear-gradient(
      180deg,
      rgba(8, 18, 16, 0.78) 0%,
      rgba(8, 18, 16, 0.42) 62%,
      rgba(8, 18, 16, 0) 100%
    ) !important;
  }

  body #header-outer #top #logo {
    display: flex !important;
    width: 132px !important;
    height: 48px !important;
    max-height: 48px !important;
    align-items: center;
  }

  body #header-outer #top #logo img {
    width: 132px !important;
    height: auto !important;
    max-height: none !important;
  }

  #header-outer .mobile-search,
  #header-outer .slide-out-widget-area-toggle.mobile-icon,
  #header-outer .slide-out-widget-area-toggle.mobile-icon > div,
  #header-outer .slide-out-widget-area-toggle.mobile-icon a {
    width: 44px !important;
    min-width: 44px;
    height: 44px !important;
    min-height: 44px;
  }

  #header-outer .mobile-search,
  #header-outer .slide-out-widget-area-toggle.mobile-icon a {
    display: flex !important;
    align-items: center;
    justify-content: center;
  }

  #header-outer .mobile-search .icon-salient-search {
    position: static !important;
    display: block !important;
    width: 20px;
    height: 20px !important;
    line-height: 20px !important;
    transform: none !important;
  }

  #header-outer .mobile-search .icon-salient-search::before {
    display: block;
    line-height: 20px !important;
  }

  body.single-post #page-header-bg {
    height: 360px !important;
    min-height: 360px !important;
    padding: 44px 0 28px;
  }

  body.single-post #page-header-bg h1.entry-title {
    max-width: 19ch;
    padding: 0;
    font-size: clamp(2rem, 9vw, 2.35rem) !important;
    line-height: 1.08 !important;
    letter-spacing: -0.035em;
  }

  .single-post .post-content > h2 {
    margin-top: 2.5rem;
    font-size: 1.75rem;
  }

  .single-post .post-content > h3 {
    margin-top: 1.75rem;
    font-size: 1.25rem;
  }

  .single-post .post-content p,
  .single-post .post-content li {
    line-height: 1.68;
  }

  .rankasia-article-intro {
    font-size: 1.08rem;
    line-height: 1.6;
  }

  .rankasia-quick-facts {
    margin: 2.25rem 0;
    padding: 1.2rem 0;
  }

  .rankasia-note {
    display: block;
    margin: 2.75rem 0;
    padding: 1.25rem 0;
  }

  .rankasia-note strong {
    margin-bottom: 0.35rem;
  }

  .rankasia-home-hero {
    width: 100vw;
    max-width: none;
    margin-right: calc(50% - 50vw);
    margin-bottom: 3.5rem;
    margin-left: calc(50% - 50vw);
    border-radius: 0;
  }

  .rankasia-home-hero img {
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: 59% center;
  }

  .rankasia-home-hero::after {
    background:
      linear-gradient(0deg, rgba(4, 15, 13, 0.72) 0%, rgba(4, 15, 13, 0.28) 50%, rgba(4, 15, 13, 0) 82%),
      linear-gradient(90deg, rgba(4, 15, 13, 0.58) 0%, rgba(4, 15, 13, 0.02) 78%);
  }

  .rankasia-home-hero__copy {
    max-width: none;
    padding: 7rem 1.5rem 2.75rem;
    text-align: left;
  }

  .rankasia-home-hero__copy h1 {
    max-width: 9ch;
    font-size: clamp(2.65rem, 12vw, 3.35rem);
    line-height: 1;
  }

  body.home .main-content h2 {
    font-size: 2rem;
    line-height: 1.12;
  }

  .rankasia-story-grid {
    gap: 0;
    margin: 1.5rem 0 3rem;
  }

  .rankasia-story-card {
    border-width: 1px 0 0;
    border-radius: 0;
  }

  .rankasia-story-card:hover {
    transform: none;
    box-shadow: none;
  }

  .rankasia-story-card__link {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    min-height: 164px;
    padding: 1rem 0;
  }

  .rankasia-story-card:last-child {
    border-bottom-width: 1px;
  }

  .rankasia-story-card__image,
  .rankasia-story-card__image img {
    width: 112px;
    height: 132px;
  }

  .rankasia-story-card__image {
    align-self: start;
    overflow: hidden;
    border-radius: 6px;
  }

  .rankasia-story-card__image img {
    aspect-ratio: auto;
    object-fit: cover;
  }

  .rankasia-story-card__body {
    padding: 0 0 0 1rem;
  }

  .rankasia-story-card__body .rankasia-kicker {
    margin-bottom: 0.35rem;
    font-size: 0.75rem;
    line-height: 1.35;
  }

  .rankasia-story-card__body h3 {
    margin: 0 0 0.4rem;
    font-size: 1.08rem;
    line-height: 1.25;
  }

  .rankasia-story-card__body p:last-child {
    display: -webkit-box;
    overflow: hidden;
    font-size: 0.9rem;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }
}
