/* Design consistency layer for older Phuket Travel 101 blog pages. */
.legacy-blog-upgraded article {
  color: #111827;
}

.legacy-blog-upgraded .article-kicker {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-bottom: 1.25rem;
  padding: .45rem .75rem;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1;
  text-transform: uppercase;
}

.legacy-blog-upgraded .article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
  color: #6b7280;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.legacy-blog-upgraded .article-meta span:not(:last-child)::after {
  content: "";
  display: inline-block;
  width: .25rem;
  height: .25rem;
  margin-left: .75rem;
  border-radius: 999px;
  background: #d1d5db;
  vertical-align: middle;
}

.legacy-hero-credit {
  margin: .75rem .25rem 0;
  color: #6b7280;
  font-size: .8rem;
  line-height: 1.6;
}

.legacy-guide-path {
  margin: -1rem 0 2.5rem;
  padding: 1.25rem;
  border: 1px solid #e5e7eb;
  border-radius: 1.5rem;
  background: #f8fafc;
}

.legacy-guide-path__label {
  display: block;
  margin-bottom: .8rem;
  color: #6b7280;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.legacy-guide-path__links {
  display: grid;
  gap: .65rem;
}

.legacy-guide-path__links a {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: .7rem;
  padding: .75rem .85rem;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  background: #fff;
  color: #111827;
  font-size: .92rem;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
}

.legacy-guide-path__links a span {
  display: grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  font-size: .75rem;
  font-weight: 900;
}

.legacy-blog-content {
  max-width: none;
}

.legacy-blog-content > h2 {
  margin-top: 3.5rem !important;
  margin-bottom: 1.25rem !important;
  padding-top: 1.8rem;
  border-top: 1px solid #e5e7eb;
  color: #111827 !important;
  font-size: clamp(1.7rem, 4vw, 2.35rem) !important;
  line-height: 1.08 !important;
  letter-spacing: 0 !important;
  scroll-margin-top: 7rem;
}

.legacy-blog-content > h2:first-child {
  margin-top: 2rem !important;
}

.legacy-blog-content > h3 {
  margin-top: 2.25rem !important;
  color: #111827 !important;
  font-size: 1.35rem !important;
  line-height: 1.2 !important;
}

.legacy-blog-content p {
  color: #374151;
  line-height: 1.85;
}

.legacy-blog-content a {
  color: #2563eb !important;
  font-weight: 800 !important;
  text-decoration: underline !important;
  text-decoration-thickness: 1px !important;
  text-underline-offset: 3px !important;
}

.legacy-blog-content > ul,
.legacy-blog-content > ol {
  margin: 1.35rem 0 2rem;
  padding: 1.15rem 1.25rem 1.15rem 1.65rem;
  border: 1px solid #e5e7eb;
  border-radius: 1.25rem;
  background: #f8fafc;
}

.legacy-blog-content > ul > li,
.legacy-blog-content > ol > li {
  margin: .7rem 0;
  color: #374151;
  line-height: 1.65;
}

.legacy-blog-content blockquote {
  border-left-color: #2563eb !important;
  border-radius: 0 1rem 1rem 0;
  background: #eff6ff;
  color: #1e3a8a !important;
}

.legacy-blog-content table {
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 1.25rem;
}

.legacy-blog-content img {
  box-shadow: 0 18px 45px #0f172a14;
}

@media (min-width: 768px) {
  .legacy-guide-path__links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .legacy-blog-upgraded .article-meta {
    gap: .45rem;
  }

  .legacy-blog-upgraded .article-meta span:not(:last-child)::after {
    margin-left: .45rem;
  }
}
