/* Basic reset + typography */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Headings */

h1, h2, h3, h4 {
  margin: 0 0 0.5rem;
  font-weight: 600;
}

h1.site-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.page-content h1 {
  text-align: center;
  width: 100%;
  margin: 0.5rem auto 1rem auto; /* top, horizontal auto, bottom */
}

/* Links */

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Utility */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
/* ============================================================
   SAFARI FIX — REQUIRED FOR STICKY ELEMENTS AFTER DYNAMIC LOAD
   ============================================================ */

#include-wrapper {
  /* Safari MUST see a positioned ancestor for sticky */
  position: relative;
  z-index: 1;
  overflow: visible !important;
}

#include-wrapper * {
  position: relative;
}

/* ============================================================
   GLOBAL SVG ISOLATION — Prevents inherited hover/opacity/transform
   Fixes tiny “lift” and “colour shift” on all icons
   ============================================================ */

svg,
svg *,
use {
  transform: none !important;
  opacity: 1 !important;
  transition: none !important;
  mix-blend-mode: normal !important;
  isolation: isolate !important;
  filter: none !important;
}

