/* GTA Innovation Funding — Bootstrap 5 brand layer for /dev_private_bs
   Loaded AFTER bootstrap.min.css. No Tailwind. */

:root {
  --gta-background: #fafaf9;
  --gta-foreground: #111419;
  --gta-surface: #ffffff;
  --gta-surface-2: #f2f3f5;
  --gta-muted: #5a5e65;
  --gta-border: #dcdee2;
  --gta-primary: #0077ea;
  --gta-primary-2: #00afd5;
  --gta-primary-fg: #fcfcfc;
  --gta-destructive: #e7000b;
  --gta-ink: #0e1116;
  --gta-ink-fg: #f9fafb;
  --gta-hairline: rgba(255, 255, 255, 0.14);
  --gta-radius: 0.375rem;
  --gta-radius-sm: 0.125rem;
  --gta-shadow-card: 0 1px 2px rgba(17, 20, 25, 0.06), 0 16px 40px -24px rgba(17, 20, 25, 0.22);

  --bs-primary: #0077ea;
  --bs-primary-rgb: 0, 119, 234;
  --bs-link-color: #0077ea;
  --bs-link-hover-color: #0064c6;
  --bs-border-color: #dcdee2;
  --bs-body-bg: #fafaf9;
  --bs-body-color: #111419;
  --bs-body-font-family: "Montserrat", ui-sans-serif, system-ui, sans-serif;
}

body {
  font-family: var(--bs-body-font-family);
  background-color: var(--gta-background);
  color: var(--gta-foreground);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  letter-spacing: -0.02em;
  font-weight: 800;
}

/* Match homepage (Tailwind) h3 scale: text-2xl, text-xl, text-lg */
h3.fs-3 {
  font-size: 1.5rem !important;
}
h3.fs-4 {
  font-size: 1.25rem !important;
}
h3.fs-5 {
  font-size: 1.125rem !important;
}

/* Match the homepage container: max-w-6xl + px-5 */
.container.shell,
.shell {
  max-width: 72rem;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}


.section-pad {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.hero-pad {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

@media (min-width: 576px) {
  .hero-pad {
    padding-top: 8rem;
    padding-bottom: 8rem;
  }
}

/* Match homepage card grid gaps: gap-8 = 2rem, gap-6 = 1.5rem */
.g-cards {
  --bs-gutter-x: 2rem;
  --bs-gutter-y: 2rem;
}

.mt-cards {
  margin-top: 4rem;
}

/* ---------- brand primitives ---------- */

.eyebrow {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0;
}

.text-brand {
  color: var(--gta-primary) !important;
}

.text-muted-brand {
  color: var(--gta-muted) !important;
}

.accent-rule {
  background-image: linear-gradient(90deg, var(--gta-primary) 0%, var(--gta-primary-2) 100%);
  height: 3px;
  width: 3.5rem;
  border-radius: 999px;
}

.ink-panel {
  background-image: linear-gradient(140deg, #090c12 0%, #0e1a2b 55%, #09294d 100%);
  color: var(--gta-ink-fg);
  position: relative;
  overflow: hidden;
}

.ink-panel h1,
.ink-panel h2,
.ink-panel h3,
.ink-panel h4,
.ink-panel .ink-strong {
  color: var(--gta-ink-fg);
}

.ink-glow {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  background: rgba(0, 119, 234, 0.25);
  filter: blur(80px);
  width: 28rem;
  height: 28rem;
  top: -6rem;
  right: -6rem;
}

.ink-glow-left {
  top: auto;
  right: auto;
  bottom: 0;
  left: -8rem;
  width: 26rem;
  height: 26rem;
  background: rgba(0, 119, 234, 0.2);
}

.ink-text-80 {
  color: rgba(249, 250, 251, 0.8);
}

.ink-text-75 {
  color: rgba(249, 250, 251, 0.75);
}

.ink-text-70 {
  color: rgba(249, 250, 251, 0.7);
}

.ink-text-65 {
  color: rgba(249, 250, 251, 0.65);
}

.ink-text-90 {
  color: rgba(249, 250, 251, 0.9);
}

.ink-text-55 {
  color: rgba(249, 250, 251, 0.55);
}

.ink-box {
  border: 1px solid var(--gta-hairline);
  background: rgba(249, 250, 251, 0.05);
  border-radius: var(--gta-radius);
  backdrop-filter: blur(6px);
  padding: 2rem;
}

  .ink-box-sm {
    border: 1px solid var(--gta-hairline);
    background: rgba(249, 250, 251, 0.05);
    border-radius: var(--gta-radius-sm);
  }

  /* Resource / sponsor panels — vibrant GTA brand yellow with dark ink text
     and a dark ink button so they pop off the light page. */
  .resource-panel {
    background-image:
      radial-gradient(120% 90% at 100% 0%, rgba(255, 247, 204, 0.6) 0%, transparent 60%),
      linear-gradient(150deg, #ffd100 0%, #f5c400 55%, #e6b800 100%);
    color: var(--gta-ink);
    border: 1px solid rgba(50, 55, 60, 0.25);
  }

  .resource-panel h1,
  .resource-panel h2,
  .resource-panel h3,
  .resource-panel h4,
  .resource-panel .ink-strong {
    color: var(--gta-ink);
  }

  /* Keep the helper opacity text classes readable on the yellow panel */
  .resource-panel .ink-text-80,
  .resource-panel .ink-text-90 {
    color: rgba(14, 17, 22, 0.88);
  }

  .resource-panel .ink-text-75,
  .resource-panel .ink-text-70 {
    color: rgba(14, 17, 22, 0.8);
  }

  .resource-panel .ink-text-65,
  .resource-panel .ink-text-55 {
    color: rgba(14, 17, 22, 0.72);
  }

  .resource-panel .eyebrow {
    color: rgba(14, 17, 22, 0.7);
  }

  .resource-panel .hairline-top {
    border-top-color: rgba(50, 55, 60, 0.25);
  }

  .resource-panel .btn-ink-outline {
    border-color: rgba(50, 55, 60, 0.4);
    color: var(--gta-ink);
  }

  .resource-panel .btn-ink-outline:hover,
  .resource-panel .btn-ink-outline:focus {
    background-color: rgba(50, 55, 60, 0.12);
    color: var(--gta-ink);
  }

  .resource-panel .link-brand {
    color: var(--gta-primary);
  }

  .resource-panel .linkedin-link {
    color: var(--gta-primary);
  }

  /* Dark ink button on the yellow panel for strong contrast */
  .resource-panel .btn-brand {
    background-color: var(--gta-ink);
    color: #ffd100;
    border-color: var(--gta-ink);
  }

  .resource-panel .btn-brand:hover,
  .resource-panel .btn-brand:focus {
    background-color: #1a1f25;
    color: #ffd100;
    opacity: 0.92;
  }

  .resource-panel .bullet-list > li::before {
    background-color: rgba(50, 55, 60, 0.7);
  }

  .resource-panel .text-brand {
    color: var(--gta-primary) !important;
  }

.hairline-top {
  border-top: 1px solid var(--gta-hairline);
}

.card-soft {
  background-color: var(--gta-surface);
  border: 1px solid var(--gta-border);
  box-shadow: var(--gta-shadow-card);
  border-radius: var(--gta-radius);
  padding: 2rem;
}

.bg-surface {
  background-color: var(--gta-surface);
}

.bg-surface-2 {
  background-color: var(--gta-surface-2);
}

.border-y-brand {
  border-top: 1px solid var(--gta-border);
  border-bottom: 1px solid var(--gta-border);
}

/* ---------- buttons ---------- */

.btn-brand {
  background-color: var(--gta-primary);
  color: var(--gta-primary-fg);
  border: 1px solid var(--gta-primary);
  border-radius: var(--gta-radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.75rem 1.25rem;
}

.btn-brand:hover,
.btn-brand:focus {
  background-color: var(--gta-primary);
  color: var(--gta-primary-fg);
  opacity: 0.9;
}

.btn-brand:disabled {
  opacity: 0.6;
}

.btn-brand-sm {
  padding: 0.625rem 1rem;
}

.btn-brand-xs {
  padding: 0.5rem 0.75rem;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
}

.btn-ink-outline {
  border: 1px solid var(--gta-hairline);
  color: var(--gta-ink-fg);
  border-radius: var(--gta-radius-sm);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.75rem 1.25rem;
}

.btn-ink-outline:hover,
.btn-ink-outline:focus {
  background-color: rgba(249, 250, 251, 0.1);
  color: var(--gta-ink-fg);
}

/* ---------- header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  border-bottom: 1px solid rgba(220, 222, 226, 0.7);
  background-color: rgba(250, 250, 249, 0.9);
  backdrop-filter: blur(8px);
}

.brand-logo {
  height: 3.5rem;
  width: auto;
  max-width: 100%;
}

@media (max-width: 575.98px) {
  .brand-logo {
    height: auto;
    width: 100%;
    max-width: 16rem;
  }
  /* Header: logo shrinks to leave room for Register + menu buttons */
  .site-header > .shell > a:first-child {
    flex: 1 1 auto !important;
    min-width: 0;
  }
  .site-header .brand-logo {
    width: auto;
    height: auto;
    max-height: 2.75rem;
    max-width: 100%;
  }
}

/* Prevent stray sideways scrolling from gutters / decorative glows */
html, body { overflow-x: hidden; }
img { max-width: 100%; }

.nav-link-brand {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gta-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav-link-brand:hover {
  color: var(--gta-foreground);
}

.mobile-nav .nav-link-brand {
  display: block;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(220, 222, 226, 0.5);
}

.mobile-nav .nav-link-brand:last-child {
  border-bottom: 0;
}

.menu-btn {
  height: 2.5rem;
  width: 2.5rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--gta-border);
  border-radius: var(--gta-radius-sm);
  background: transparent;
  color: var(--gta-foreground);
  flex-shrink: 0;
}

.menu-btn svg {
  height: 1.25rem;
  width: 1.25rem;
}

/* ---------- lists ---------- */

.bullet-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bullet-list > li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.875rem 0;
}

.bullet-list.divided > li {
  border-bottom: 1px solid var(--gta-border);
}

.bullet-list.divided {
  border-top: 1px solid var(--gta-border);
  border-bottom: 1px solid var(--gta-border);
}

.bullet-list.divided > li:last-child {
  border-bottom: 0;
}

.bullet-list.tight > li {
  padding: 0.3125rem 0;
  gap: 0.75rem;
}

.bullet-list > li::before {
  content: "";
  flex-shrink: 0;
  margin-top: 0.5rem;
  height: 0.375rem;
  width: 0.375rem;
  border-radius: 50%;
  background-color: var(--gta-primary);
}

.bullet-list.negative > li::before {
  margin-top: 0.375rem;
  height: 0.875rem;
  width: 0.875rem;
  background: transparent;
  border: 2px solid rgba(231, 0, 11, 0.6);
}

/* ---------- grid tiles (what we do) ---------- */

.tile-grid {
  border: 1px solid var(--gta-border);
  border-radius: var(--gta-radius);
  overflow: hidden;
  background-color: var(--gta-border);
  display: grid;
  gap: 1px;
  grid-template-columns: 1fr;
}

@media (min-width: 576px) {
  .tile-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .tile-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.tile-grid > div {
  padding: 2rem;
  background-color: var(--gta-surface);
}

.tile-grid > div.tile-alt {
  background-color: var(--gta-surface-2);
}

/* ---------- people ---------- */

.person-photo-wrap {
  overflow: hidden;
  border: 1px solid var(--gta-border);
  background-color: var(--gta-surface);
  border-radius: var(--gta-radius);
}

.person-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  display: block;
}

.person-photo-richard {
  object-position: 65% center;
}

.linkedin-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gta-primary);
  text-decoration: none;
}

.linkedin-link:hover {
  text-decoration: underline;
}

.linkedin-link svg {
  height: 0.875rem;
  width: 0.875rem;
}

/* ---------- join rows ---------- */

.join-rows {
  border-top: 1px solid var(--gta-hairline);
  border-bottom: 1px solid var(--gta-hairline);
}

.join-rows > .join-row {
  border-bottom: 1px solid var(--gta-hairline);
  padding: 1.5rem 0;
}

.join-rows > .join-row:last-child {
  border-bottom: 0;
}

/* ---------- form ---------- */

.form-label-brand {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(249, 250, 251, 0.7);
  margin-bottom: 0.5rem;
}

.form-control-ink,
.form-select-ink {
  width: 100%;
  border-radius: var(--gta-radius-sm);
  border: 1px solid var(--gta-hairline);
  background-color: rgba(249, 250, 251, 0.05);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--gta-ink-fg);
}

.form-control-ink::placeholder {
  color: rgba(249, 250, 251, 0.4);
}

.form-control-ink:focus,
.form-select-ink:focus {
  border-color: var(--gta-primary);
  outline: none;
  box-shadow: none;
  background-color: rgba(249, 250, 251, 0.07);
  color: var(--gta-ink-fg);
}

.form-select-ink option {
  color: var(--gta-foreground);
}

.success-box {
  border: 1px solid rgba(0, 119, 234, 0.4);
  background-color: rgba(0, 119, 234, 0.1);
  border-radius: var(--gta-radius-sm);
  padding: 1.5rem;
}

.text-destructive {
  color: var(--gta-destructive);
}

.link-brand {
  color: var(--gta-primary);
  font-weight: 600;
  text-decoration: none;
}

.link-brand:hover {
  text-decoration: underline;
  color: var(--gta-primary);
}

/* ---------- type helpers ---------- */

.fs-hero {
  font-size: 2.25rem;
  line-height: 1.05;
}

@media (min-width: 576px) {
  .fs-hero {
    font-size: 3.75rem;
  }
}

.fs-hero-sub {
  font-size: 1.25rem;
  font-weight: 500;
}

@media (min-width: 576px) {
  .fs-hero-sub {
    font-size: 1.5rem;
  }
}

.fs-h2 {
  font-size: 1.875rem;
}

@media (min-width: 576px) {
  .fs-h2 {
    font-size: 2.25rem;
  }
}

.fs-13 {
  font-size: 0.8125rem;
}

.fs-14 {
  font-size: 0.875rem;
}

.fs-12 {
  font-size: 0.75rem;
}

.lh-relaxed {
  line-height: 1.65;
}

.tracking-wide-sm {
  letter-spacing: 0.12em;
}

.scroll-offset {
  scroll-margin-top: 5rem;
}
