/* Public guides — shares landing tokens, article-focused layout */

/* Header must live here too: index.html keeps navbar in inline CSS, while
   /guides relies on external sheets. Stale cached landing.css (max-age=3600)
   caused "unstyled header until refresh" when navigating from home. */
.modern-navbar {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(99, 102, 241, 0.08);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999999;
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
  overflow: visible;
}
.modern-navbar .nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.modern-navbar .nav-logo {
  font-size: 24px;
  font-weight: 800;
  background: linear-gradient(135deg, #6366f1, #8b8cf8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-decoration: none;
  flex-shrink: 0;
}
.modern-navbar .nav-menu {
  display: flex;
  list-style: none;
  gap: 35px;
  flex: 1;
  justify-content: center;
  margin: 0 40px;
  padding: 0;
  align-items: center;
}
.modern-navbar .nav-menu li {
  display: flex;
  align-items: center;
  margin: 0;
}
.modern-navbar .nav-menu > li > a {
  color: #1e293b;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  font-size: 1rem;
  padding: 8px 0;
  display: inline-flex;
  align-items: center;
}
.modern-navbar .nav-menu > li > a:hover,
.modern-navbar .nav-menu > li > a.active {
  color: #6366f1;
}
.modern-navbar .nav-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-shrink: 0;
}
.modern-navbar .modern-btn {
  background: linear-gradient(135deg, #6366f1, #7c6cf0);
  color: #fff !important;
  border: none;
  border-radius: 50px;
  padding: 12px 28px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.25);
  height: 44px;
}
.modern-navbar .modern-btn-outline {
  background: transparent;
  color: #5b4fc7 !important;
  border: 2px solid #c4b5fd;
  border-radius: 50px;
  padding: 12px 28px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
}
.modern-navbar .mobile-menu-btn { display: none; }
@media (max-width: 768px) {
  .modern-navbar .nav-menu { display: none; }
  .modern-navbar .nav-container { padding: 0 16px; height: 64px; }
  .modern-navbar .nav-actions { gap: 8px; }
  .modern-navbar .modern-btn,
  .modern-navbar .modern-btn-outline {
    padding: 8px 14px;
    font-size: 0.85rem;
    height: 40px;
  }
}
@media (max-width: 480px) {
  .modern-navbar .nav-container { padding: 0 10px; height: 60px; }
  .modern-navbar .nav-logo { font-size: 16px; }
  .modern-navbar .modern-btn,
  .modern-navbar .modern-btn-outline { padding: 8px 10px; font-size: 0; gap: 0; }
  .modern-navbar .modern-btn i,
  .modern-navbar .modern-btn-outline i { font-size: 1.1rem; }
}

.gd-wrap {
  padding: 112px 0 72px;
  background:
    radial-gradient(ellipse 80% 50% at 10% 0%, rgba(124, 108, 240, 0.08), transparent 55%),
    linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  min-height: 70vh;
}

.gd-hero {
  max-width: 720px;
  margin: 0 auto 48px;
}

.gd-hero .lp-kicker { margin-bottom: 12px; display: inline-block; }

.gd-hero h1 {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 800;
  color: var(--lp-ink);
  letter-spacing: -0.03em;
  line-height: 1.25;
  margin: 0 0 14px;
}

.gd-hero p {
  color: var(--lp-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0;
}

.gd-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 16px;
  font-size: 0.85rem;
  color: #94a3b8;
}

.gd-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (max-width: 768px) {
  .gd-grid { grid-template-columns: 1fr; }
  .gd-wrap { padding-top: 96px; }
}

.gd-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius);
  padding: 28px 26px;
  box-shadow: var(--lp-shadow);
  transition: var(--lp-transition-hover);
}

.gd-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--lp-shadow-hover);
  border-color: rgba(124, 108, 240, 0.35);
}

.gd-card-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--lp-primary-dark);
  background: var(--lp-primary-soft);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.gd-card h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--lp-ink);
  margin: 0 0 10px;
  line-height: 1.4;
}

.gd-card p {
  margin: 0;
  color: var(--lp-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.gd-card-more {
  margin-top: 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--lp-primary-dark);
}

.gd-article {
  max-width: 740px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--lp-border);
  border-radius: 20px;
  padding: 40px 40px 48px;
  box-shadow: var(--lp-shadow);
}

@media (max-width: 640px) {
  .gd-article { padding: 28px 20px 36px; border-radius: 16px; }
}

.gd-article h1 {
  font-size: clamp(1.55rem, 2.8vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--lp-ink);
  line-height: 1.3;
  margin: 0 0 12px;
}

.gd-lead {
  font-size: 1.05rem;
  color: var(--lp-muted);
  line-height: 1.75;
  margin: 0 0 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--lp-border);
}

.gd-article h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--lp-ink);
  margin: 36px 0 14px;
  line-height: 1.35;
}

.gd-article h3 {
  font-size: 1.05rem;
  font-weight: 650;
  color: #334155;
  margin: 24px 0 10px;
}

.gd-article p {
  color: #475569;
  font-size: 1rem;
  line-height: 1.8;
  margin: 0 0 14px;
}

.gd-article ul,
.gd-article ol {
  margin: 0 0 16px;
  padding-left: 1.25rem;
  color: #475569;
  line-height: 1.75;
}

.gd-article li { margin-bottom: 8px; }

.gd-article strong { color: #1e293b; }

.gd-callout {
  margin: 24px 0;
  padding: 16px 18px;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border-left: 3px solid var(--lp-primary);
  border-radius: 0 12px 12px 0;
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.7;
}

.gd-cta {
  margin-top: 40px;
  padding: 24px;
  background: var(--lp-primary-soft);
  border-radius: 14px;
  text-align: center;
}

.gd-cta p {
  margin: 0 0 14px;
  color: #4338ca;
  font-weight: 500;
}

.gd-back {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--lp-primary-dark);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.gd-back:hover { text-decoration: underline; }

.gd-related {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--lp-border);
}

.gd-related h2 {
  font-size: 1.1rem;
  margin: 0 0 14px;
}

.gd-related ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.gd-related a {
  color: var(--lp-primary-dark);
  text-decoration: none;
  font-weight: 500;
}

.gd-related a:hover { text-decoration: underline; }

.gd-related li { margin-bottom: 10px; }
