/* Shared corner treatment. Circular geometry keeps its circular profile. */
.skip-link, .article-skip { border-radius: 8px; }
@supports (corner-shape: squircle) {
  .site-header, .site-footer, .article-site-header, .article-footer { corner-shape: squircle; border-radius: 32px; }
  .content-panel { corner-shape: squircle; border-radius: 72px; }
  .about-board .about-card { corner-shape: squircle; border-radius: 40px; }
  .article-card { corner-shape: squircle; border-radius: 34px; }
  .article-layout > article { corner-shape: squircle; border-radius: 36px; }
  .about-controls button { corner-shape: squircle; border-radius: 20px; }
  .copy-contact, .toast, .skip-link, .article-skip, .error-home,
  .fallback-contacts a, .fallback-contacts button,
  .card-tags li, .draft-label,
  .prose img, .prose video, .prose iframe, .prose pre, .prose details, .prose code {
    corner-shape: squircle;
  }
  .copy-contact { border-radius: 8px; }.toast { border-radius: 12px; }
  .skip-link, .article-skip { border-radius: 14px; }.error-home { border-radius: 20px; }
  .card-tags li, .draft-label { border-radius: 6px; }
  .prose img, .prose video, .prose iframe, .prose pre, .prose details { border-radius: 14px; }
  .prose code { border-radius: 5px; }.prose pre code { border-radius: 0; }
  .shape-block { corner-shape: squircle; }
  .identity-surface, .identity-surface::after, .avatar, .ring-guide,
  .shape-circle, .shape-disc { corner-shape: round; }
  @media (max-width: 600px) {
    .content-panel { border-radius: 48px; }
    .article-layout > article { border-radius: 28px; }
    .about-controls button { border-radius: 18px; }
  }
}

/* Safari/WebKit builds that expose the explicit function use the same
   continuous curvature instead of approximating it with a circular radius. */
@supports (corner-shape: superellipse(2)) {
  .site-header, .site-footer, .article-site-header, .article-footer { corner-shape: superellipse(2); }
  .content-panel { corner-shape: superellipse(2); }
  .about-board .about-card, .article-card, .article-layout > article { corner-shape: superellipse(2); }
  .about-controls button, .copy-contact, .toast, .skip-link, .article-skip, .error-home,
  .fallback-contacts a, .fallback-contacts button, .card-tags li, .draft-label,
  .prose img, .prose video, .prose iframe, .prose pre, .prose details, .prose code { corner-shape: superellipse(2); }
}
