/* One small, finite motion language: the things children use while learning. */
.home-page { --motion-quick: 160ms; --motion-feedback: 240ms; --motion-ease: cubic-bezier(.16,1,.3,1); }
.learning-mark { display: block; width: 104px; height: 104px; pointer-events: none; }
.learning-mark svg { display: block; width: 100%; height: 100%; overflow: visible; }
.learning-mark :is(.mark-part-a,.mark-part-b,.mark-part-c) { transform-box: view-box; transform-origin: 60px 60px; }
.service-hero-media { position: relative; min-width: 0; }
.learning-mark--hero { position: absolute; top: -36px; right: -20px; width: 100px; height: 100px; background: #fff; border-radius: 50%; }
.home-page :is(#courses,#questions) > .container { position: relative; }
.learning-mark--section { position: absolute; top: -42px; right: 8px; width: 104px; height: 104px; }
.home-page:not(.inner-page) #courses .section-heading-pair > p { padding-right: 116px; }
.home-page:not(.inner-page) #questions > .container > h2 { padding-right: 124px; }
.inner-page .service-hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 24px; margin-top: 28px; }
.inner-page .service-hero-actions .inner-enroll { margin-top: 0; }
.inner-hero-more { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; color: var(--site-text-color); font-size: 15px; font-weight: 500; text-decoration: none; }
.inner-hero-more svg { transition: transform var(--motion-feedback) var(--motion-ease); }
.inner-hero-more:hover { color: var(--site-heading-color); }
.inner-hero-more:is(:hover,:focus-visible) svg { transform: translateY(3px); }
.inner-page button.inner-text-link { padding: 0; border: 0; background: transparent; text-align: left; }
.inner-page .inner-enroll { transition: background-color var(--motion-quick) ease; }
.inner-page .inner-go { transition: background-color var(--motion-quick) ease; }
.inner-page :is(.inner-related-link,.blog-story):is(:hover,:focus-visible) .inner-go { background: #f2bf00; }
.article-toc a { position: relative; padding-left: 16px; transition: color var(--motion-quick) ease; }
.article-toc a::before { content: ''; position: absolute; left: 0; top: 21px; width: 6px; height: 6px; border-radius: 50%; background: var(--znayka-accent); opacity: 0; transition: opacity var(--motion-quick) ease; }
.article-toc a[aria-current="location"] { color: var(--site-heading-color); font-weight: 500; }
.article-toc a[aria-current="location"]::before { opacity: 1; }
.lower-faq-item summary:focus-visible .lower-faq-toggle { background: var(--znayka-accent); }
/* Keep these scenes readable at rest. Only their internal pieces move. */
@media (prefers-reduced-motion: no-preference) {
  .learning-mark[data-section-accent="blocks"].is-accent-playing .mark-part-a { animation: mark-block-settle 1500ms var(--motion-ease) both; }
  .learning-mark[data-section-accent="blocks"].is-accent-playing .mark-part-b { animation: mark-circle-roll 1700ms var(--motion-ease) both; }
  .learning-mark[data-section-accent="blocks"].is-accent-playing .mark-part-c { animation: mark-block-settle 1900ms var(--motion-ease) both; }
  .learning-mark[data-section-accent="book"].is-accent-playing .mark-part-b { transform-origin: 60px 60px; animation: mark-page-turn 1800ms var(--motion-ease) both; }
  .learning-mark[data-section-accent="book"].is-accent-playing .mark-part-c { animation: mark-bookmark 1800ms var(--motion-ease) both; }
  .learning-mark[data-section-accent="pencil"].is-accent-playing :is(.mark-part-a,.mark-part-b) { animation: mark-write 1900ms var(--motion-ease) both; }
  .learning-mark[data-section-accent="pencil"].is-accent-playing .mark-part-c { transform-origin: 56px 101px; animation: mark-written-line 1900ms var(--motion-ease) both; }
  .learning-mark[data-section-accent="abacus"].is-accent-playing .mark-part-b { animation: mark-beads-top 1800ms var(--motion-ease) both; }
  .learning-mark[data-section-accent="abacus"].is-accent-playing .mark-part-c { animation: mark-beads-bottom 2100ms var(--motion-ease) both; }
  .learning-mark[data-section-accent="dialogue"].is-accent-playing .mark-part-a { transform-origin: 82px 82px; animation: mark-reply 1800ms var(--motion-ease) both; }
  .learning-mark[data-section-accent="dialogue"].is-accent-playing .mark-part-c { animation: mark-speak 1800ms ease both; }
}
@keyframes mark-block-settle { 0%,100% { transform: none; } 18% { transform: translateY(-7px) rotate(-4deg); } 65% { transform: none; } }
@keyframes mark-circle-roll { 0%,100% { transform: none; } 25% { transform: translate(5px,-4px) rotate(14deg); } 70% { transform: none; } }
@keyframes mark-page-turn { 0%,100% { transform: scaleX(1); } 25% { transform: scaleX(.65); } 65% { transform: scaleX(1); } }
@keyframes mark-bookmark { 0%,100% { transform: none; } 25% { transform: translateY(-4px); } 65% { transform: none; } }
@keyframes mark-write { 0%,100% { transform: none; } 20% { transform: translate(-4px,1px) rotate(-3deg); } 55% { transform: translate(3px,-1px) rotate(2deg); } 80% { transform: none; } }
@keyframes mark-written-line { 0%,100% { transform: scaleX(1); } 15% { transform: scaleX(.35); } 65% { transform: scaleX(1); } }
@keyframes mark-beads-top { 0%,100% { transform: none; } 28%,55% { transform: translateX(6px); } 85% { transform: none; } }
@keyframes mark-beads-bottom { 0%,100% { transform: none; } 36%,60% { transform: translateX(10px); } 90% { transform: none; } }
@keyframes mark-reply { 0%,100% { transform: none; } 25% { transform: translate(3px,3px) scale(.96); } 65% { transform: none; } }
@keyframes mark-speak { 0%,100% { opacity: 1; } 28% { opacity: .4; } 60% { opacity: 1; } }
@media (max-width: 991px) {
  .learning-mark--hero { width: 82px; height: 82px; top: -28px; right: -12px; }
  .learning-mark--section { width: 84px; height: 84px; top: -30px; right: 0; }
  .home-page:not(.inner-page) #courses .section-heading-pair > p { padding-right: 88px; }
}
@media (max-width: 767px) {
  .home-page:not(.inner-page) #courses .section-heading-pair > h2 { padding-right: 88px; }
  .home-page:not(.inner-page) #courses .section-heading-pair > p { padding-right: 0; }
  .home-page:not(.inner-page) #questions > .container > h2 { padding-right: 88px; }
}
@media (max-width: 599px) {
  .learning-mark--hero { width: 76px; height: 76px; top: -26px; right: -6px; }
  .learning-mark--section { width: 72px; height: 72px; top: -14px; right: 0; }
  .inner-page .service-hero-actions { gap: 2px; margin-top: 22px; }
  .inner-page .service-hero-actions .inner-enroll { margin-top: 0; }
  .inner-hero-more { width: 100%; }
  .article-toc a::before { top: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .learning-mark * { animation: none !important; }
  .inner-hero-more:is(:hover,:focus-visible) svg,
  .inner-page :is(.inner-related-link,.blog-story):is(:hover,:focus-visible) .inner-go svg { transform: none; transition: none; }
}
.article-contents > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; cursor: pointer; list-style: none; }
.article-contents > summary::-webkit-details-marker { display: none; }
.article-contents > summary svg { flex: 0 0 18px; transition: transform var(--motion-feedback) var(--motion-ease); }
.article-contents[open] > summary svg { transform: rotate(180deg); }
@media (min-width: 992px) { .article-contents > summary { margin-top: -12px; } }
@media (max-width: 991px) {
  .article-contents { border-block: 1px solid var(--znayka-line); }
  .article-contents > summary { margin: 0 !important; padding-block: 12px; }
  .article-contents[open] > nav { padding-bottom: 8px; }
  .article-toc li { border: 0; }
}
@media (prefers-reduced-motion: reduce) { .article-contents > summary svg { transition: none; } }
