/* Shared visual language: clear hierarchy, quiet green surfaces and generous reading space. */
body.site-a {
  --a-bg: #faf9f6;
  --a-ink: #182629;
  --a-muted: #4d625b;
  --a-accent: #1d5d55;
  --a-tint: #e8f4ee;
  --a-soft: #eef5f0;
  --a-line: #d7e6dc;
  --a-radius: 18px;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}
body.site-a .a-serif, body.site-a .a-page em,
body.site-a .official-intro h1, body.site-a .official-stage h3,
body.site-a .official-feature h2 { font-family: inherit; }
body.site-a .a-page em { font-style: normal; color: #176e5b; }
body.site-a .a-page-head { padding: clamp(2.5rem, 5vw, 4.5rem) 0 2rem; }
body.site-a .a-page-head h1, body.site-a .official-intro h1,
body.site-a .library-hero h1 { letter-spacing: -.045em; line-height: 1.2; }
body.site-a .a-page-head > p { max-width: 50rem; line-height: 1.8; }
body.site-a .a-eyebrow, body.site-a .official-label { color: #176e5b; letter-spacing: .06em; }
body.site-a .a-btn { border-radius: 12px; min-height: 46px; }
body.site-a .a-btn.a-primary { border-radius: 999px; background: #1d5d55; border-color: #1d5d55; }
body.site-a .a-btn.a-primary:hover { background: #164a44; }
body.site-a .a-card, body.site-a .a-level-card, body.site-a .a-news-card,
body.site-a .library-card, body.site-a .library-controls { border-color: #d7e6dc; border-radius: 18px; box-shadow: none; }
body.site-a a.a-card:hover, body.site-a .library-card:hover { box-shadow: 0 12px 30px #183b2c10; }
body.site-a .a-credential, body.site-a .a-activation-card { background: #e8f4ee; }
body.site-a .a-section { border-color: #d7e6dc; }
body.site-a .a-pill { background: #e8f4ee; color: #205b49; }
body.site-a .a-pill.a-lock { background: #eef0ed; color: #52625b; }
body.site-a .a-price-card.a-price-featured { border-color: var(--a-accent); }
body.site-a .a-ref-banner { background: #e6f1e5; color: #294d39 !important; }
body.site-a .site-footer { background: #edf5ef; border-color: #d7e6dc; }
body.site-a .a-form input, body.site-a .a-form textarea, body.site-a .a-form select { border-radius: 10px; }

/* Discovery pages use the same feature panel as the home page. */
body.site-a .official-feature { border: 1px solid #cce2d9; border-radius: 24px; background: #e8f4ee; box-shadow: none; padding: clamp(1.5rem, 3vw, 2.75rem); }
body.site-a .official-feature h2 { font-weight: 700; letter-spacing: -.035em; }
body.site-a .library-hero { min-height: 210px; }
body.site-a .library-controls { background: #fff; }
body.site-a .library-filter-options button[aria-pressed=true] { background: #dcefe3; color: #195843; }
body.site-a .library-card { transition: box-shadow .18s ease, transform .18s ease; }
body.site-a .library-cover { border-radius: 17px 17px 0 0; }
body.site-a .library-search { border-radius: 12px; }

/* Course and article pages stay comfortable for sustained reading. */
body.site-a .official-intro { padding: clamp(2.5rem, 5vw, 4.5rem) 0 2rem; }
body.site-a .official-intro h1 { font-weight: 700; }
body.site-a .official-stage { padding: 1.5rem; margin: 0 0 12px; border: 1px solid #d7e6dc; border-radius: 18px; background: #fff; }
body.site-a .official-stage h3 { font-weight: 700; }
body.site-a .official-toc { background: #eef5f0; border: 1px solid #d7e6dc; border-radius: 16px; padding: 1rem; }
body.site-a .official-reader .course-content { line-height: 1.95; }
body.site-a .course-exercise { background: #e8f4ee; border-radius: 0 14px 14px 0; }
body.site-a .course-reading { border-color: #d7e6dc; border-radius: 14px; }
body.site-a .news-feed { border-radius: 18px; }
body.site-a .a-news-article { line-height: 1.95; }

@media (max-width: 760px) {
  body.site-a .a-page-head { padding: 2rem 0 1.4rem; }
  body.site-a .a-page-head h1 { font-size: clamp(2rem, 8vw, 2.7rem); }
  body.site-a .official-intro { padding: 2rem 0 1.5rem; }
  body.site-a .official-stage { gap: .8rem; padding: 1.25rem; }
  body.site-a .official-toc { position: static; padding: 1rem; }
  body.site-a .library-hero { min-height: 0; padding: 2.2rem 0 1.5rem; }
  body.site-a .library-controls { border-radius: 16px; }
  body.site-a .a-nav-account { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  body.site-a .library-card { transition: none; }
  body.site-a .library-card:hover { transform: none; }
}
