/* ==========================================================================
   SubInsider WordPress layer. The look of every ported page comes from astro.css
   (generated from the Astro build). This file only adds the self-hosted font,
   Elementor/WordPress fixes and the homepage section helpers.
   ========================================================================== */

@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-v20.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Images never zoom, shift or animate on hover. */
.elementor img, .elementor a img { transition: none !important; transform: none !important; }

/* Header/footer render the Astro markup; the Elementor location wrapper carries the stickiness. */
.elementor-location-header { position: sticky; top: 0; z-index: 60; }
.elementor-location-header .elementor-widget-shortcode, .elementor-location-footer .elementor-widget-shortcode { width: 100%; }
.elementor-widget-shortcode .elementor-shortcode > :first-child { margin-top: 0; }

/* Elementor resets figure margins inside widgets (.elementor .elementor-widget:not(...) figure { margin: 0 }).
   Restore the Astro values for the ported article markup. */
.elementor .prose figure.fig { margin: var(--space-6) 0 !important; }
.elementor .prose figure.ctable-wrap { margin: var(--space-5) 0 !important; }
.elementor .prose > figure:first-child { margin-top: 0 !important; }

/* Hub card titles were <h2> on the old site; they are divs now (no headings in cards)
   but keep the exact heading look: weight, tracking, balanced wrapping, ink colour. */
.card__title--h { font-weight: 800; letter-spacing: -0.025em; text-wrap: balance; color: var(--ink); }
