/* === base/reset.css === */
/* ============================================
   CSS VARIABLES & RESET
   ============================================ */
:root {
  /* Badge colours (from AI Awareness 2026 badges) */
  --badge-safe: #93c5fd;
  --badge-smart: #fdba74;
  --badge-creative: #c4b5fd;
  --badge-responsible: #86efac;
  --badge-future: #f9a8d4;
  --badge-black: #1e1e1e;

  /* Brand palette: --green-* are monochrome (black/gray) for UI, not literal green. Kept for backward compatibility. */
  --green-50: #fafafa;
  --green-100: #f0f0f0;
  --green-200: #e5e5e5;
  --green-300: #d4d4d4;
  --green-400: #737373;
  --green-500: #525252;
  --green-600: #1e1e1e;
  --green-700: #1e1e1e;
  --green-800: #1e1e1e;
  --green-900: #1e1e1e;

  /* Accent colours (actual green, purple, blue, amber for highlights and single-resource) */
  --accent-green: #22c55e;
  --accent-green-light: #dcfce7;
  --accent-green-dark: #15803d;
  --accent-purple: #7c3aed;
  --accent-purple-mid: #6b21a8;
  --accent-purple-dark: #5b1b8a;
  --accent-purple-light: #f3e8ff;
  --accent-blue: #2563eb;
  --accent-blue-light: #dbeafe;
  --accent-blue-dark: #1e40af;
  --accent-amber-light: #fef9c3;
  --accent-amber: #a16207;
  --accent-rose: #db2777;
  --accent-emerald: #059669;

  --white: #ffffff;
  --gray-50: #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #e5e5e5;
  --gray-300: #d4d4d4;
  --gray-400: #a3a3a3;
  --gray-500: #737373;
  --gray-600: #525252;
  --gray-700: #404040;
  --gray-800: #262626;
  --gray-900: #1e1e1e;

  --font-display: 'Intel Clear', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  --section-padding: clamp(3rem, 6vw, 5rem) 0;
  --container-width: min(1200px, 92vw);
  --border-radius: 4px;

  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--gray-800);
  background: var(--white);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Broken image fallback: hide broken img, show placeholder icon */
img.is-broken {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.broken-image-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 48px;
  background: var(--gray-100);
  color: var(--gray-400);
  border-radius: 0;
}

.broken-image-icon svg {
  width: 32px;
  height: 32px;
}

/* Keep parent layout when image is broken (e.g. partner logo, badge) */
.site-logo,
.hero-logo,
.partner-logo,
.principle-card .principle-badge,
.theme-link,
.display-board-real,
.display-board-examples__item {
  position: relative;
}

.partner-logo .broken-image-icon,
.principle-card .principle-badge .broken-image-icon {
  width: 100%;
  aspect-ratio: 1;
}

.theme-link .broken-image-icon {
  width: 100%;
  height: 100%;
  min-height: 60px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--gray-900);
  letter-spacing: -0.01em;
}

.container {
  width: var(--container-width);
  margin: 0 auto;
}


/* === base/shared.css === */
/* ============================================
   SHARED SECTION STYLES
   ============================================ */
/* Offset anchor targets so the fixed header doesn’t hide the section label when navigating */
#campaign,
#reach,
#aim,
#toolkit,
#contact,
#display-board {
  scroll-margin-top: 7rem; /* ~112px: clears fixed header (and admin bar when logged in) so section-label stays visible */
}

.section {
  padding: var(--section-padding);
}

/* Less air between hero (logo strip) and the next block (e.g. Campaign) */
.hero-section + .section {
  padding-top: clamp(1rem, 2.5vw, 1.75rem);
}

.section + .section {
  padding-top: 1rem;
}

@media screen and (max-width: 768px) {
  .section + .section {
    padding-top: 1.5rem;
  }

  .hero-section + .section {
    padding-top: 0.75rem;
  }
}


.section-label {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green-600);
  margin-bottom: 0.6rem;
  display: block;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--gray-700);
  max-width: 800px;
  line-height: 1.85;
}

.section--alt {
  background: var(--gray-50);
}


/* === base/animations.css === */
/* ============================================
   ANIMATIONS
   ============================================ */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Fallback for when JS is disabled or fails to load */
.no-js .fade-up {
  opacity: 1;
  transform: none;
}

/* Stagger: 1–5 use 0.1s steps; 6–9 use 0.05s steps for tighter spacing. */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.55s; }
.stagger-7 { transition-delay: 0.6s; }
.stagger-8 { transition-delay: 0.65s; }
.stagger-9 { transition-delay: 0.7s; }

@supports selector(:has(*)) {
  .resource-card,
  .contact-form,
  .saved-resources-panel {
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  @starting-style {
    .resource-card,
    .contact-form,
    .saved-resources-panel {
      opacity: 0;
      transform: translateY(10px);
    }
  }
}


/* === base/wp-core.css === */
/* ============================================
   WORDPRESS CORE STYLES
   ============================================ */
.alignnone { margin: 5px 20px 20px 0; }
.aligncenter { display: block; margin: 5px auto; }
.alignright { float: right; margin: 5px 0 20px 20px; }
.alignleft { float: left; margin: 5px 20px 20px 0; }

.wp-caption { max-width: 100%; }
.wp-caption-text { text-align: center; font-size: 0.85rem; color: var(--gray-500); }

@keyframes spin {
  to { transform: rotate(360deg); }
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

/* Honeypot: hidden from users, present for bots */
.aiad-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.pt-100 { padding-top: 100px; }
.mt-2rem { margin-top: 2rem; }
.mt-1-5rem { margin-top: 1.5rem; }
.mb-2rem { margin-bottom: 2rem; }

