/* Small, dependency-free interactions in the existing editorial palette. */
.hero-secondary-links { display: flex; align-items: center; justify-content: center; gap: 12px 28px; flex-wrap: wrap; margin-top: 15px; }
.hero-secondary-links .hero-course-link { margin-top: 0; }
.share-profile { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 6px 0; border: 0; background: transparent; color: var(--terracotta-dark); font-size: 13px; cursor: pointer; text-decoration: underline; text-underline-offset: 5px; }
.share-profile[hidden] { display: none; }
.share-profile svg { width: 19px; height: 19px; }
.share-profile:focus-visible, .whatsapp-bubble:focus-visible { outline: 3px solid var(--terracotta-dark); outline-offset: 5px; }
.quick-contact { position: fixed; right: max(24px, env(safe-area-inset-right, 0px)); bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 90; }
.whatsapp-bubble { display: flex; align-items: center; gap: 13px; border-radius: 40px; text-decoration: none; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.whatsapp-label { padding: 9px 15px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); color: var(--warm-gray); box-shadow: 0 5px 20px #2725240d; font-size: 11px; line-height: 1.5; }
.whatsapp-label strong { display: block; color: var(--charcoal); font-size: 13px; font-weight: 600; }
.whatsapp-icon { position: relative; display: grid; place-items: center; width: 58px; height: 58px; border: 1px solid #ffffff70; border-radius: 50%; background: #16784b; color: white; box-shadow: 0 5px 18px #125a4933; transition: transform 180ms ease; }
.whatsapp-icon svg { width: 29px; height: 29px; }
.whatsapp-icon::after { position: absolute; inset: -4px; border: 1px solid #16784b; border-radius: inherit; opacity: 0; content: ''; pointer-events: none; }
.menu-open .quick-contact { visibility: hidden; }
.site-footer { padding-bottom: 110px; }
.share-dialog { width: min(520px, calc(100% - 32px)); max-height: calc(100dvh - 48px); overflow-y: auto; padding: 38px; border: 1px solid var(--line); border-radius: 24px; background: var(--warm-white); color: var(--charcoal); box-shadow: var(--shadow-soft); }
.share-dialog::backdrop { background: #27252480; }
.share-dialog .eyebrow { margin-right: 20px; font-size: 11px; }
.share-dialog h2 { margin: 16px 0 12px; font-family: var(--serif); font-size: 34px; font-weight: 400; line-height: 1.1; letter-spacing: -.03em; }
.share-dialog p { color: var(--warm-gray); font-size: 14px; }
.share-close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--terracotta-dark); font-size: 30px; cursor: pointer; }
.share-dialog label { display: block; margin: 25px 0 8px; font-size: 12px; font-weight: 600; }
.share-dialog input { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--white); color: var(--charcoal); font-size: 13px; }
.share-dialog-actions { display: grid; gap: 10px; margin-top: 18px; }
.share-dialog .share-feedback { min-height: 42px; margin-bottom: 0; font-size: 12px; }
@media (hover: hover) and (pointer: fine) {
  .whatsapp-bubble:hover .whatsapp-icon { transform: translateY(-3px); }
  .course-recent { transition: transform 180ms var(--ease-out), border-color 180ms ease; }
  .course-recent:hover { transform: translateY(-3px); }
  .share-profile:hover { color: var(--charcoal); }
  .share-close:hover { background: var(--peach-100); }
}
@media (prefers-reduced-motion: no-preference) {
  .whatsapp-icon::after { animation: contact-halo 1400ms ease-out 600ms 2; }
  .share-dialog[open] { animation: detail-arrive 180ms var(--ease-out); }
}
@keyframes detail-arrive {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@keyframes contact-halo {
  from { opacity: .4; transform: scale(.95); }
  to { opacity: 0; transform: scale(1.28); }
}
@media (max-width: 600px) {
  .quick-contact { right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
  .whatsapp-label { display: none; }
  .whatsapp-icon { width: 48px; height: 48px; }
  .whatsapp-icon svg { width: 25px; height: 25px; }
  .hero-secondary-links { flex-direction: column; gap: 4px; }
  .share-dialog { padding: 28px 22px; }
  .share-dialog h2 { font-size: 30px; }
}
@media print {
  .quick-contact, .share-profile, .share-dialog { display: none !important; }
  .reveal, .hero-focus li { animation: none !important; opacity: 1 !important; transform: none !important; }
}
