/* courses.css — the page 课程 (owner decisions N196, N197: all 21 courses on one page; N190: rhythm, pictures, small
 * movements on arrival; N169: nothing folded). On top of home-sections.css (the shared look and its isolation from
 * Bricks: every selector here is under .astro-home.astro-courses, at least (0,3,0)).
 * Author: [ASTRO-S1] helper of the 命理学 iMac window — a17 supervisor (Claude Opus 5.5), 2026-11-15. New file.
 */
.astro-home.astro-courses { padding-top: var(--astro-header-h, 0px); padding-bottom: clamp(72px, 12vh, 140px); }
.astro-home.astro-courses .ac-top { padding-top: clamp(64px, 11vh, 128px); }
.astro-home.astro-courses .ac-h1 { font-size: clamp(32px, 3.4vw, 46px); }

/* the index of the four groups — visible, never folded */
.astro-home.astro-courses .ac-index { display: block; max-width: 1180px; margin: clamp(48px, 8vh, 88px) auto 0; padding: 0 var(--ah-x); box-sizing: border-box; }
.astro-home.astro-courses .ac-index__list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0;
  border-top: 1px solid var(--ah-line-2); border-bottom: 1px solid var(--ah-line);
}
.astro-home.astro-courses .ac-index__item { display: block; margin: 0; }
.astro-home.astro-courses .ac-index__item + .ac-index__item { border-left: 1px solid var(--ah-line); }
.astro-home.astro-courses .ac-index__link {
  display: flex; flex-direction: column; gap: 10px; padding: 22px 20px 20px;
  color: var(--ah-text); text-decoration: none; transition: background-color .2s var(--ah-ease), color .2s var(--ah-ease);
}
.astro-home.astro-courses .ac-index__link .ah-marks { color: var(--ah-lamp); }
.astro-home.astro-courses .ac-index__name { font-family: var(--ah-song); font-size: 19px; letter-spacing: .12em; line-height: 1.4; }
.astro-home.astro-courses .ac-index__range { font-family: var(--ah-mono); font-size: 13px; letter-spacing: .08em; color: var(--ah-lamp); }
.astro-home.astro-courses .ac-index__link:hover,
.astro-home.astro-courses .ac-index__link.is-here { background: rgba(226, 168, 71, .07); }
.astro-home.astro-courses .ac-index__link.is-here .ac-index__name { color: var(--ah-lamp); }
.astro-home.astro-courses.astro-courses .ac-index__link:focus-visible { outline: 2px solid var(--ah-cinnabar); outline-offset: -2px; }

/* anchors land below the fixed header */
.astro-home.astro-courses .ah-group,
.astro-home.astro-courses .ah-course { scroll-margin-top: calc(var(--astro-header-h, 0px) + 24px); }
.astro-home.astro-courses .ah-group__sticky { top: calc(var(--astro-header-h, 0px) + 32px); }

/* a group's opening draws in when it arrives (only once the module runs; static: as printed) */
.astro-home.astro-courses.is-live .ah-group > .ah-grid::before { transform-origin: left; transform: scaleX(.18); transition: transform .9s var(--ah-ease); }
.astro-home.astro-courses.is-live .ah-group.is-arrived > .ah-grid::before { transform: scaleX(1); }

/* the way on to 申请 */
.astro-home.astro-courses .ac-apply { max-width: 1180px; margin: clamp(72px, 12vh, 128px) auto 0; padding: 0 var(--ah-x); box-sizing: border-box; text-align: center; }

@media (max-width: 819.98px) {
  .astro-home.astro-courses .ac-index__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .astro-home.astro-courses .ac-index__item:nth-child(3) { border-left: 0; }
  .astro-home.astro-courses .ac-index__item:nth-child(n + 3) { border-top: 1px solid var(--ah-line); }
  .astro-home.astro-courses .ac-index__link { padding: 16px 14px; }
}
/* [ASTRO-R1] 2026-11-15 (owner decision N203, "Animate for everyone"): the reduced-motion rule that kept the groups'
   rule still is removed. */
