html { scroll-behavior: smooth; color-scheme: dark; }

.site-header { position: sticky; top: 0; z-index: 50; }
.site-header > nav { position: relative; }
.site-header [hidden] { display: none; }
.site-language { border: 0; cursor: pointer; }
.theme-moon { display: none; }
[data-theme="light"] .theme-sun { display: none; }
[data-theme="light"] .theme-moon { display: block; }

.mobile-navigation {
  position: absolute;
  right: 0;
  left: 0;
  padding: 8px 20px;
  border-bottom: 1px solid var(--yc-border);
  background: var(--yc-bg-main);
}
.mobile-navigation a { display: block; padding: 10px 4px; }
.yc-hero-bg { overflow: clip; }
.phone-preview { margin-inline: auto; }
.download-link { text-decoration: none; }
.download-link:hover { border-color: var(--yc-primary-light); }
.download-code img { display: block; width: 100%; height: auto; }
.setup-tip-title { color: var(--yc-primary-light); }

@media (min-width: 1024px) {
  .mobile-navigation { display: none; }
  .header-links { position: absolute; left: 50%; transform: translateX(-50%); }
  .hero-title { font-size: clamp(56px, 6.9vw, 88px); }
  :lang(en) .hero-title, :lang(vi) .hero-title { font-size: clamp(42px, 5.6vw, 72px); }
  .setup-tips-heading {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.news-section {
  scroll-margin-top: 72px;
  padding: 0 20px clamp(3rem, 7vw, 6rem);
  background: var(--yc-bg-card);
}
.news {
  max-width: 1160px;
  margin-inline: auto;
  padding: clamp(1.25rem, 3.5vw, 2.5rem);
  border: 1px solid var(--yc-border);
  border-radius: 18px;
  background: var(--yc-bg-main);
}
.news-title {
  color: var(--yc-text-primary);
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  font-weight: 900;
  line-height: 1.2;
}
.news-desc {
  max-width: 38rem;
  margin-top: 0.75rem;
  color: var(--yc-text-secondary);
  line-height: 1.65;
}
.news-list { margin-top: 1.25rem; }
/* Raw template tags should stay out of the static preview. */
.news-list[data-news-ready^="{"] { display: none; }
.news-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding-block: 0.8rem;
  border-bottom: 1px solid var(--yc-border);
}
.news-link {
  min-width: 0;
  color: var(--yc-text-primary);
  overflow-wrap: anywhere;
  font-weight: 600;
}
.news-link:hover { text-decoration: underline; }
.news-time {
  flex-shrink: 0;
  color: var(--yc-text-secondary);
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}
.news-more { margin-top: 1.25rem; }
.news-more a {
  color: var(--yc-text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.5rem 0.875rem;
  border: 1px solid var(--yc-border-strong);
  border-radius: 8px;
  background: var(--yc-bg-elevated);
  font-size: 0.875rem;
  font-weight: 700;
}
@media (min-width: 1024px) {
  .news-section { padding-inline: 60px; }
}
@media (max-width: 480px) {
  .news-item { flex-direction: column; }
}
