/* CSS Document */
    /* COLOUR PALETTE AND DESIGN TOKENS with WCAG AAA compliant catios */

    :root {
      --bg-color: #0f172a;           /* Deep Slate / Dark Navy */
      --card-bg: #1e293b;            /* Elevated Slate */
      --text-main: #f8fafc;          /* High contrast off-white */
      --text-muted: #94a3b8;         /* Accessible secondary text */
      --accent: #38bdf8;             /* High visibility Sky Blue */
      --accent-hover: #7dd3fc;
      --border-color: #334155;
	  --button-primary-color: #0f172a;
	  --mark: lightblue;
      
      --font-stack: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
      --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    }

/* Automatic Light Mode (respects user system preferences while maintaining contrast) */
    @media (prefers-color-scheme: light) {
      :root {
        --bg-color: #f8fafc;
        --card-bg: #ffffff;
        --text-main: #0f172a;
        --text-muted: #475569;
        --accent: #0284c7;
        --accent-hover: #0369a1;
        --border-color: #cbd5e1;
		--button-primary-color: #ffffff;
		--mark: lightblue;
      }
    }

    /* Respect Reduced Motion Preferences */
    @media (prefers-reduced-motion: reduce) {
      *, ::before, ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
      }
    }

    /* RESET AND STICKY FOOTER GRID */
    *, *::before, *::after {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    html, body {
      height: 100%;
    }

    body {
      font-family: var(--font-stack);
      background-color: var(--bg-color);
      color: var(--text-main);
      line-height: 1.6;
      font-size: 1.125rem; /* 18px base */
      
      /* Sticky Footer CSS Grid Layout */
      display: grid;
      grid-template-rows: auto 1fr auto;
      grid-template-columns: 100%;
    }

    /* Accessible Focus States */
    :focus-visible {
      outline: 3px solid var(--accent);
      outline-offset: 4px;
      border-radius: 2px;
    }

    /* Skip Link for Keyboard Navigation */
    .skip-link {
      position: absolute;
      top: -100px;
      left: 1rem;
      background: var(--accent);
      color: #0f172a;
      padding: 0.75rem 1.25rem;
      font-weight: bold;
      text-decoration: none;
      z-index: 100;
      border-radius: 4px;
    }

    .skip-link:focus {
      top: 1rem;
    }
	abbr {
	text-decoration:none;
	border-bottom:1px dashed var(--text-main);
	}
	mark, 
	.mark {
	  background-color: var(--mark);
	  padding:0.15em 0.5em;
	  margin: 0 0.15em;
	  border-radius:0.2em;
	  }
	  mark::before {
	  content: " [highlight start] ";
	  clip: rect(0 0 0 0);
	  clip-path: inset(50%);
	  height: 1px;
	  overflow: hidden;
	  position: absolute;
	  white-space: nowrap;
	  width: 1px;
	}
	mark::after {
	  content: " [highlight end] ";
	  clip: rect(0 0 0 0);
	  clip-path: inset(50%);
	  height: 1px;
	  overflow: hidden;
	  position: absolute;
	  white-space: nowrap;
	  width: 1px;
	}

/* LAYOUT AND SECTIONS */

    .container {
      width: 100%;
      max-width: 900px;
      margin: 0 auto;
      padding: 0 1.5rem;
    }

    header {
      padding: 2.5rem 0 1.5rem 0;
      border-bottom: 1px solid var(--border-color);
    }

    .brand-mark {
      font-size: 1.25rem;
      font-weight: 700;
      letter-spacing: -0.02em;
      color: var(--text-main);
      text-decoration: none;
    }

    .brand-mark span {
      color: var(--accent);
    }

    main {
      padding: 4rem 0;
      display: flex;
      flex-direction: column;
      justify-content: center;
    }
	
/* ACCESSIBLE NAVIGATION */

/* Header Container */
.site-header {
  background-color: #0f172a;
  border-bottom: 1px solid #334155;
  position: relative;
  z-index: 100;
}

.header-container {
  width: 100%;
  padding: 1rem 1.5rem;
  display: flex;
  align-items:flex-start;
  justify-content: space-between;
}

.brand-link {
  font-size: 1.25rem;
  font-weight: 800;
  color: #f8fafc;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand-accent {
  color: #38bdf8;
}

/* Focus States (WCAG Compliant) */
.brand-link:focus-visible,
.nav-link:focus-visible,
.menu-toggle:focus-visible {
  outline: 3px solid #38bdf8;
  outline-offset: 4px;
  border-radius: 2px;
}

/* Mobile Toggle Button (Visible by default in Base CSS) */
.menu-toggle {
  display: inline-flex;
  background: transparent;
  border: 1px solid #334155;
  color: #f8fafc;
  padding: 0.5rem 0.85rem;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  border-radius: 6px;
  align-items: center;
  gap: 0.5rem;
}

.menu-toggle:hover {
  border-color: #38bdf8;
  color: #38bdf8;
}
.toggle-text {
	margin-left:0.5em;
}

/* CSS Hamburger Icon */
.hamburger-box {
  width: 18px;
  height: 12px;
  display: inline-block;
  position: relative;
}

.hamburger-inner, 
.hamburger-inner::before, 
.hamburger-inner::after {
  width: 18px;
  height: 2px;
  background-color: currentColor;
  position: absolute;
  transition: transform 0.2s ease;
}

.hamburger-inner { top: 5px; }
.hamburger-inner::before { content: ""; top: -5px; left: 0; }
.hamburger-inner::after { content: ""; top: 5px; left: 0; }

/* Primary Mobile Navigation Drawer (Hidden by default) */
.primary-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: #0f172a;
  border-bottom: 2px solid #38bdf8;
  padding: 1.5rem;
  display: none; /* Controlled by JS aria-expanded / data-open */
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
}

/* Revealed state when expanded on mobile */
.primary-nav[data-open="true"] {
  display: block;
}

.nav-list {
  display: flex;
  align-items: flex-end;
  flex-direction:column;
  flex-wrap: wrap;
  gap: 1rem; /* 16px gap */
  list-style: none;
  margin: 0;
  padding: 0 0.5em 0 0;
}

/* Force 2 items per row on narrow screens */
.nav-item {
  flex: 0 0 calc(100% - 0.5rem); /* 50% minus half the gap */
  text-align:right;
  width:100%;
 }

/* Unconstrained single line on full desktop */
@media (min-width: 900px) {
  .nav-item {
    flex: 0 1 auto; /* Natural content width */
	width:auto;
  }
  .nav-link:hover {
  color: #38bdf8;
  border-bottom:1px solid #38bdf8;
  }
}

.nav-link {
  display: block;
  color: #f8fafc;
  text-decoration: none;
  font-weight: 400;
  font-size: 1.15rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #1e293b;
  transition: color 0.15s ease;
}

.nav-link:hover {
  color: #38bdf8;
}

/* DESKTOP / TABLET BREAKPOINT (MOBILE-FIRST ENHANCEMENT) */

@media (min-width: 600px) {
  .header-container {
    max-width: 1100px;
    margin: 0 auto;
  }

  /* Hide mobile toggle on larger viewports */
  .menu-toggle {
    display: none;
  }

  /* Reset Navigation Drawer to Inline Row Header Layout */
  .primary-nav {
    position: static;
    display: block !important; /* Overrides JS display toggle */
    background-color: transparent;
    border-bottom: none;
    padding: 0;
    box-shadow: none;
  }

  .nav-list {
    flex-direction: row;
    gap: 1.5rem;
  }

  .nav-link {
    display: inline;
    font-size: 1rem;
    padding: 0.5rem 0.25rem;
    border-bottom: none;
  }
}

/* PAGE CONTENT */
    .status-badge {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      font-size: 0.875rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: var(--accent);
      background: rgba(56, 189, 248, 0.1);
      padding: 0.35rem 0.75rem;
      border-radius: 20px;
      border: 1px solid rgba(56, 189, 248, 0.3);
      width: fit-content;
      margin-bottom: 1.5rem;
    }

    .status-dot {
      width: 8px;
      height: 8px;
      background-color: var(--accent);
      border-radius: 50%;
    }

    h1 {
      font-size: clamp(2rem, 5vw, 3.25rem);
      line-height: 1.15;
      font-weight: 800;
      letter-spacing: -0.03em;
      margin-bottom: 1.5rem;
    }

    .hero-lead {
      font-size: 1.35rem;
      color: var(--text-muted);
      max-width: 75ch;
      margin-bottom: 2.5rem;
    }

    .pillars-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 1.5rem;
      margin: 2rem 0 3rem 0;
    }

    .pillar-card {
      background: var(--card-bg);
      border: 1px solid var(--border-color);
      padding: 1.5rem;
      border-radius: 8px;
    }

    .pillar-card h2 {
      font-size: 1.15rem;
      margin-bottom: 0.5rem;
      color: var(--text-main);
    }

    .pillar-card p {
      font-size: 0.95rem;
      color: var(--text-muted);
    }

    .cta-group {
      display: flex;
      flex-wrap: wrap;
      gap: 1rem;
      align-items: center;
    }

    .button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 0.85rem 1.5rem;
      font-weight: 600;
      font-size: 1rem;
      text-decoration: none;
      border-radius: 6px;
      transition: background-color 0.15s ease, border-color 0.15s ease;
    }

    .button-primary {
      background-color: var(--accent);
      color: var(--button-primary-color);
    }

    .button-primary:hover {
      background-color: var(--accent-hover);
    }

    .button-secondary {
      background-color: transparent;
      color: var(--text-main);
      border: 1px solid var(--border-color);
    }

    .button-secondary:hover {
      border-color: var(--accent);
      color: var(--accent);
    }

    footer {
      border-top: 1px solid var(--border-color);
      padding: 2rem 0;
      font-size: 0.9rem;
      color: var(--text-muted);
    }

    .footer-content {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      align-items: center;
      gap: 1rem;
    }

    .footer-links {
      display: flex;
      gap: 1.5rem;
      list-style: none;
    }

    .footer-links a {
      color: var(--text-muted);
      text-decoration: underline;
      text-underline-offset: 4px;
    }

    .footer-links a:hover {
      color: var(--accent);
    }
	
/* Invisible and A11Y */
.sr-only {
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	}
