/* ==========================================================================
   Progressive enhancements — samui-infotech.com
   Modern CSS the validators don't support yet. Purely visual extras:
   without this file, cards still open/close and pages still navigate.
   Load as an external file in the footer (not render-blocking).
   ========================================================================== */

/* Tool cards: smooth open/close of <details> ------------------------------ */

.tool-card {
  interpolate-size: allow-keywords;
}

.tool-card::details-content {
  block-size: 0;
  overflow: hidden;
  transition: block-size 0.3s ease, content-visibility 0.3s ease allow-discrete;
}

.tool-card[open]::details-content {
  block-size: auto;
}

@media (prefers-reduced-motion: reduce) {
  .tool-card::details-content {
    transition: none;
  }
}

/* Cross-document page transitions ---------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }

  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: var(--dur-medium);
    animation-timing-function: var(--ease-out);
  }

  #brx-header {
    view-transition-name: site-header;
  }
}