/* Shared interaction language: calm at rest, responsive on hover, focus and press. */
a, button, summary, [role="button"], .checklist label { -webkit-tap-highlight-color: #45617c18; }
a { text-underline-offset: .22em; transition: color .2s ease, text-decoration-color .2s ease, text-underline-offset .2s ease; }
button, [role="button"], .cta, .floating-cta, .quick-paths a, .chapter a,
.guide-view, .guide-nav a, .parent-nav a, .course-preview-link {
  transition: translate .24s cubic-bezier(.2,.75,.25,1), scale .16s ease, box-shadow .24s ease, background-color .24s ease, border-color .24s ease, color .2s ease;
}
.cta, .quick-paths a, button { position: relative; overflow: hidden; isolation: isolate; }
.cta::after, .floating-cta::after, .quick-paths a::after, button::after {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: -40% -70%;
  background: linear-gradient(110deg, transparent 42%, #ffffff30 50%, transparent 58%);
  opacity: 0;
  transform: translateX(-65%);
  transition: transform .65s cubic-bezier(.2,.7,.25,1), opacity .3s ease;
}
.floating-cta { overflow: hidden; }
.cta > span[aria-hidden], .guide-view > span[aria-hidden] { transition: transform .24s ease; }
summary { cursor: pointer; transition: color .2s ease, background-color .2s ease, translate .2s ease; }
.checklist label { cursor: pointer; transition: background-color .2s ease, border-color .2s ease, color .2s ease; }
.check-square { transition: transform .2s ease, background-color .2s ease, border-color .2s ease; }
@media (hover: hover) and (pointer: fine) {
  button:not(:disabled):hover, [role="button"]:not([aria-disabled="true"]):hover,
  .cta:hover, .floating-cta:hover, .quick-paths a:hover, .chapter a:hover,
  .guide-view:hover, .guide-nav a:hover, .parent-nav a:hover, .course-preview-link:hover { translate: 0 -2px; }
  .cta:hover::after, .floating-cta:hover::after, .quick-paths a:hover::after, button:not(:disabled):hover::after { opacity: 1; transform: translateX(65%); }
  .cta:hover > span[aria-hidden], .guide-view:hover > span[aria-hidden] { transform: translate(-2px, 2px); }
  .quick-paths a:hover { border-color: #ffffffd9; }
  summary:hover { color: #45617c; translate: -2px 0; }
  .checklist label:hover { background-color: #ffffff45; }
  .checklist label:hover .check-square { transform: scale(1.06); }
  .site-footer a:hover, .guide-footer a:hover, .course-preview-link:hover, .guide-view:hover { text-underline-offset: .35em; }
}
.cta:focus-visible::after, .floating-cta:focus-visible::after, .quick-paths a:focus-visible::after, button:focus-visible::after { opacity: 1; transform: translateX(65%); }
summary:focus-visible, .guide-view:focus-visible, .guide-nav a:focus-visible,
.parent-nav a:focus-visible, .course-preview-link:focus-visible { outline: 2px solid #45617c; outline-offset: 5px; border-radius: 4px; }
button:not(:disabled):active, [role="button"]:not([aria-disabled="true"]):active,
.cta:active, .floating-cta:active, .quick-paths a:active, .chapter a:active,
.guide-view:active, .guide-nav a:active, .parent-nav a:active, .course-preview-link:active { translate: 0 0; scale: .98; }
summary:active { translate: -1px 0; }
button:disabled { animation: none; translate: none; scale: none; }
button:disabled::after { display: none; }
details[open] > :not(summary) { animation: disclosure-reveal .24s ease-out; }
@keyframes disclosure-reveal { from { opacity: .4; translate: 0 -3px; } to { opacity: 1; translate: 0 0; } }
@media (prefers-reduced-motion: reduce) {
  a, button, summary, [role="button"], .checklist label, .check-square,
  .cta > span[aria-hidden], .guide-view > span[aria-hidden] { transition: none !important; translate: none !important; scale: none !important; }
  .cta::after, .floating-cta::after, .quick-paths a::after, button::after { display: none; }
  details[open] > :not(summary) { animation: none; }
}
body:has(.static-story) :is(a, button, summary, [role="button"], .checklist label, .check-square) { transition: none !important; translate: none !important; scale: none !important; }
body:has(.static-story) :is(.cta, .floating-cta, .quick-paths a, button)::after { display: none; }
body:has(.static-story) details[open] > :not(summary) { animation: none; }
