/* MVP 2026-11-23: audit fixes. Lives outside design/ so a design sync does not drop it. */

/* Case navigation on translated case pages: same look as the Spanish /casos/ pages. */
.case-footer a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.case-footer { margin-top: clamp(2rem, 6vw, 5rem); padding-block: clamp(2.5rem, 6vw, 5rem); background: #f4f5f1; color: #071b2d; }
.case-footer h2 { font-size: clamp(2rem, 6vw, 5rem); line-height: 1.02; }
.case-footer .case-contact { margin-top: 1.3rem; padding: .75rem 1.15rem; background: #071b2d; color: #f5f7ff; font-weight: 650; }
.case-navigation { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .4rem 1rem; border-top: 1px solid #bec6cf; padding-top: .6rem; margin-top: 2rem; }
.case-navigation a:hover { color: #0057bd; }
.case-product-link { margin-block: 1.5rem 0; }

/* Projects grid with eight cases: featured case full width, image cards in halves, compact cases in thirds. */
@media (min-width: 35.01rem) {
  .work[data-view] .work-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .work[data-view] .work-grid > .case { grid-column: span 3; }
  .work[data-view] .work-grid > .case-featured { grid-column: 1 / -1; }
}
@media (min-width: 48.01rem) {
  .work[data-view] .work-grid > .case-compact { grid-column: span 2; }
}
#case-status { min-height: 1.6em; }

/* Smoother filtering and summaries; nothing moves when the visitor prefers reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .work-grid > .case:not([hidden]) { animation: rg-case-in 300ms cubic-bezier(.2, .75, .3, 1) both; }
  .case-detail::details-content { opacity: 0; transition: opacity 220ms ease, content-visibility 220ms allow-discrete; }
  .case-detail[open]::details-content { opacity: 1; }
}
@keyframes rg-case-in { from { opacity: 0; transform: translateY(.6rem); } to { opacity: 1; transform: none; } }
