/* Site-wide additions that the original stylesheets don't cover.
   Kept separate so globals.css / content-pages.css stay as they were. */

/* Item links (/projects/#glue, /about/#snuh …): stop below the sticky header
   and briefly glow in the site's violet when arrived at. */
.catalog-card, .record, .experience-card, .portfolio-detail, .cert-group,
.sbg-event, .research-feature, .sbg-section { scroll-margin-top:110px; }
.is-targeted { animation:item-target 2.6s ease-out; }
@keyframes item-target {
  0%, 30% { box-shadow:0 0 0 3px rgba(154,112,221,.75), 0 0 0 12px rgba(154,112,221,.16); }
  100%    { box-shadow:0 0 0 3px rgba(154,112,221,0),   0 0 0 12px rgba(154,112,221,0); }
}
@media (prefers-reduced-motion:reduce) {
  .is-targeted { animation:none; outline:3px solid rgba(154,112,221,.75); outline-offset:4px; }
}

/* "View details" on project and portfolio cards: the filled pill, so it reads
   as the main action next to external links. */
.card-actions a.card-details { background:var(--ink); color:var(--paper); border-color:var(--ink); }
.card-actions a.card-details:hover { background:transparent; color:var(--ink); }
/* Space between a portfolio entry's content (gallery, embed, VS Code previewer…)
   and its button row; collapses with the margin of a list or gallery above. */
.portfolio-detail-body > .card-actions { margin-top:28px; }
