:root {
  /* Canonical Phuket Analytics brand palette. Do not redefine per page. */
  --pa-canvas: #f3efe7;
  --pa-surface: #fbf8f1;
  --pa-forest: #0e4337;
  --pa-editorial-accent: #a7533c;
  --pa-logo-accent: #b34d34;
  --pa-guide-accent: #8da48f;
  --pa-report-accent: var(--pa-editorial-accent);
  --pa-editorial-on-dark: #e3a08e;
  --pa-muted: #67716b;
  --pa-line: #d8d2c7;

  /* Compatibility aliases for the existing public templates. */
  --coral: var(--pa-editorial-accent);
  --section-coral: var(--pa-editorial-accent);
  --knowledge-coral: var(--pa-editorial-accent);
  --guide-accent: var(--pa-guide-accent);
}

/* Internal news: one calm language for conclusion, source and subscription. */
.news-article .article-editorial-position {
  border: 0 !important;
  border-top: 3px solid var(--pa-editorial-accent) !important;
  border-radius: 20px !important;
  background: #f0e8df !important;
}

.news-article .article-editorial-position small {
  color: var(--pa-editorial-accent) !important;
}

.news-article .article-source {
  border: 1px solid rgba(14, 67, 55, 0.2) !important;
  background: #e7ece8 !important;
  color: var(--pa-forest) !important;
  margin-bottom: 30px !important;
}

.news-article .article-source small {
  color: var(--pa-editorial-accent) !important;
}

.news-article .article-source p {
  color: var(--pa-muted) !important;
}

.news-article .article-source-main-link {
  border: 1px solid var(--pa-forest) !important;
  background: var(--pa-forest) !important;
  color: var(--pa-surface) !important;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease !important;
}

.news-article .article-source-main-link:hover,
.news-article .article-source-main-link:focus-visible {
  border-color: #1c5849 !important;
  background: #1c5849 !important;
  transform: translateY(-1px);
}

/* Shared Telegram subscription block: quiet editorial burgundy, never legacy lime. */
.telegram-follow {
  border: 0 !important;
  border-top: 3px solid !important;
  border-top-color: var(--pa-editorial-accent) !important;
  border-radius: 20px !important;
  background: #ebe5dd !important;
}

.news-article .telegram-follow {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.news-article .article-source + .telegram-follow {
  margin-top: 0 !important;
}

.telegram-follow-label > span,
.telegram-follow a span {
  color: var(--pa-editorial-accent) !important;
}

.telegram-follow a {
  border-bottom-color: var(--pa-editorial-accent) !important;
  transition: color 0.18s ease, border-color 0.18s ease !important;
}

.telegram-follow a:hover,
.telegram-follow a:focus-visible {
  border-bottom-color: #7f4638 !important;
  color: #7f4638 !important;
}

.news-article .related-stories {
  padding-top: 42px !important;
}

.news-article .related-stories header {
  margin: 0 0 24px;
  padding-top: 34px;
  border-top: 1px solid var(--pa-line);
}

.news-article .related-stories header p {
  display: none;
}

.news-article .related-stories header h2 {
  margin: 0;
  color: var(--pa-forest);
  font-size: clamp(24px, 2.2vw, 30px);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.news-article .related-stories > div {
  border-color: var(--pa-line);
  background: var(--pa-line);
}

.news-article .related-stories a {
  background: var(--pa-surface);
}

.news-article .related-stories small {
  color: var(--pa-editorial-accent);
}

@media (max-width: 720px) {
  .news-article .article-editorial-position {
    margin-top: 38px !important;
    padding: 24px 22px !important;
  }

  .news-article .article-source {
    gap: 24px !important;
    margin-bottom: 24px !important;
    padding: 26px 22px !important;
  }

  .news-article .article-source-main-link {
    box-sizing: border-box;
    width: 100%;
  }

  .news-article .telegram-follow {
    padding: 25px 22px !important;
  }

  .news-article .related-stories {
    padding-top: 32px !important;
  }

  .news-article .related-stories header {
    margin-bottom: 18px;
    padding-top: 28px;
  }

  .news-article .related-stories header h2 {
    font-size: 25px;
  }
}
