/* ══════════════════════════════════════════════════════════════
   galym_analytics/galym_analytics.css
   Galym Analytics page (kk / ru / en). Loaded after fonts.css and
   core.css. ONE centred column, mobile-first.
   Tokens and fonts from core.css / fonts.css only: no literal
   colours, no literal font names. Dark theme comes for free through
   the same variables ([data-theme="dark"]).
   Deliberately independent of course/course.css, so a change there
   cannot affect this page.
   ══════════════════════════════════════════════════════════════ */

.ga-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: calc(var(--nav-h, 80px) + 1.5rem) 5vw 4rem;
}
@media (min-width: 768px) {
  .ga-main { padding: calc(var(--nav-h, 80px) + 2rem) 8vw 5rem; }
}

/* core.css gives every <section> its own side padding; the column is
   already padded by .ga-main, so reset it here. */
.ga-main section { padding: 0; margin-top: 3rem; scroll-margin-top: 6rem; }
.ga-main .sec-title { font-size: clamp(22px, 4vw, 32px); color: var(--accent2); margin-bottom: 1rem; }
.ga-main p, .ga-main li, .ga-main dd { overflow-wrap: break-word; }

/* ── Hero ── */
.ga-hero { margin-top: 0; }
.crumb-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem 1rem; margin-bottom: 1.5rem; }
.crumb-row .breadcrumb { margin-bottom: 0; }

.lang-switch { display: inline-flex; flex: none; border: 0.5px solid var(--border); border-radius: 100px; background: var(--bg2); overflow: hidden; font-size: 12.5px; font-weight: 600; }
.lang-switch a, .lang-switch span { display: inline-flex; align-items: center; min-height: 2.25rem; padding: 0 0.9rem; color: var(--muted); text-decoration: none; }
.lang-switch a:hover { color: var(--text); }
.lang-switch a:focus-visible { outline-offset: -3px; }
.lang-switch [aria-current] { background: var(--accent); color: var(--accent-foreground); }

.ga-badge {
  display: inline-block;
  font-size: 12px; font-weight: 600;
  color: var(--accent2); background: var(--glow);
  border: 0.5px solid var(--border);
  padding: 0.35rem 0.9rem; border-radius: 100px;
  margin-bottom: 1rem;
}
.ga-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 8vw, 60px);
  font-weight: 800; line-height: 1.05; letter-spacing: -1.5px;
  color: var(--text); margin-bottom: 0.9rem;
}
.ga-subtitle {
  font-size: clamp(16px, 2.4vw, 20px); font-weight: 600; line-height: 1.5;
  color: var(--accent2); max-width: 42rem; margin-bottom: 1.1rem;
}
.ga-lead { font-size: 16px; line-height: 1.75; color: var(--text); max-width: 46rem; margin-bottom: 2rem; }

/* ── Facts (data snapshot) ── */
.ga-facts {
  display: grid; grid-template-columns: 1fr; gap: 1px;
  background: var(--border);
  border: 0.5px solid var(--border); border-radius: 8px; overflow: hidden;
}
.ga-fact { background: var(--bg2); padding: 0.9rem 1rem; }
.ga-fact dt { font-size: 12px; color: var(--muted); margin-bottom: 0.2rem; }
.ga-fact dd { font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.4; }
@media (min-width: 480px) {
  .ga-facts { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .ga-facts { grid-template-columns: repeat(4, 1fr); }
}

/* ── What the dashboard will show: three independent topics, not a sequence ── */
.ga-cards { list-style: none; display: grid; gap: 1rem; }
.ga-card { background: var(--bg2); border: 0.5px solid var(--border); border-top: 2px solid var(--accent); border-radius: 8px; padding: 1.1rem 1.1rem 1.2rem; }
.ga-card h3 { font-family: var(--font-display); font-size: 16px; font-weight: 800; letter-spacing: -0.2px; line-height: 1.35; color: var(--text); margin-bottom: 0.45rem; }
.ga-card p { font-size: 14px; color: var(--muted); line-height: 1.65; }
@media (min-width: 768px) {
  .ga-cards { grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
}

/* ── Data and limitations ── */
.ga-limits { list-style: none; border-top: 0.5px solid var(--border); max-width: 46rem; }
.ga-limits li { padding: 0.9rem 0; border-bottom: 0.5px solid var(--border); font-size: 14.5px; line-height: 1.7; color: var(--text); }
.ga-source { font-size: 14px; line-height: 1.7; color: var(--muted); max-width: 46rem; margin: 1.5rem 0 1rem; }

.ga-btn {
  display: inline-flex; align-items: center;
  font-weight: 700; font-size: 13.5px;
  padding: 0.8rem 1.5rem; border-radius: 4px;
  color: var(--accent2); text-decoration: none;
  border: 1px solid var(--accent); background: transparent;
  transition: background 0.2s;
}
.ga-btn:hover, .ga-btn:focus-visible { background: var(--glow); }
.ga-btn:focus-visible { outline: 2.5px solid var(--accent2); outline-offset: 2px; }

/* ── Status ── */
.ga-status { background: var(--bg2); border: 0.5px solid var(--border); border-radius: 8px; padding: clamp(1.5rem, 4.5vw, 2.25rem) !important; }
.ga-status h2 { font-family: var(--font-display); font-size: clamp(18px, 3vw, 24px); font-weight: 800; letter-spacing: -0.4px; color: var(--accent2); margin-bottom: 0.5rem; }
.ga-status p { font-size: 14px; line-height: 1.7; color: var(--muted); max-width: 40rem; }

@media (prefers-reduced-motion: reduce) {
  .ga-btn { transition: none; }
}
