/* Shared organization navigation and program pages. */
:root {
  --boc-bg: #f6f1e8;
  --boc-card: #fbf8f2;
  --boc-ink: #221a14;
  --boc-muted: #5b5048;
  --boc-line: #d8d0c5;
  --boc-accent: #79571c;
  --boc-green: #285c45;
  --boc-red: #9d4239;
}
html {
  background: var(--boc-bg);
}
body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.62), transparent 38%),
    radial-gradient(circle at 90% 15%, rgba(201, 159, 59, 0.08), transparent 28%),
    var(--boc-bg);
  background-attachment: fixed;
}
.boc-document {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-weight: 400;
  margin: 0;
  color: var(--boc-ink);
  font:
    16px/1.7 Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
.boc-document * {
  box-sizing: border-box;
}
.boc-document a {
  color: var(--boc-accent);
  text-underline-offset: 4px;
}
.boc-document a:hover {
  text-decoration-thickness: 2px;
}
.boc-document a.email {
  display: inline-block;
  margin: 12px 0;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--boc-ink);
  color: var(--boc-card);
  text-decoration: none;
}
.boc-document a.email:hover {
  background: #44362b;
}
.boc-document a.email:focus-visible {
  outline-offset: 5px;
}

.boc-document :focus-visible,
.boc-nav a:focus-visible,
.boc-skip:focus {
  outline: 3px solid #9d7025;
  outline-offset: 5px;
}
.boc-header,
.boc-main,
.boc-footer {
  width: min(100% - 48px, 1120px);
  margin-inline: auto;
}
.boc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--boc-line);
}
.boc-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--boc-ink) !important;
  font-weight: 400;
  letter-spacing: -0.04em;
  text-decoration: none;
  white-space: nowrap;
  font-size: 21px;
}
.boc-brand span {
  color: var(--boc-accent);
  margin-left: -9px;
}
.boc-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  font:
    600 15px/1.5 Inter,
    system-ui,
    sans-serif;
}
.boc-nav a {
  display: inline-block;
  color: var(--boc-muted);
  padding: 8px 0;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.boc-nav a:hover,
.boc-nav a[aria-current] {
  color: var(--boc-ink);
  border-color: var(--boc-accent);
}
.boc-skip {
  position: absolute;
  left: 20px;
  top: -100px;
  z-index: 10;
  background: white;
  color: var(--boc-ink);
  padding: 12px 18px;
}
.boc-skip:focus {
  top: 12px;
}
.boc-main {
  width: min(100% - 48px, 1040px);
  padding: 48px 0 64px;
}
.boc-document h1 {
  font-weight: 400;
}
.boc-document h2,
.boc-document h3 {
  font-weight: 500;
}
.boc-main h1 {
  font-size: clamp(34px, 4.5vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.055em;
  max-width: 950px;
  margin: 20px 0 28px;
}
.boc-main h2 {
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.035em;
  margin: 0 0 22px;
}
.boc-main h3 {
  font-size: 21px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}
.boc-main > h2 {
  margin-top: 36px;
}
.boc-document code {
  background: #eee7dc;
  padding: 0.15em 0.35em;
}
.boc-main p {
  color: var(--boc-muted);
  margin: 0 0 20px;
}
.boc-main li {
  color: var(--boc-muted);
  margin-bottom: 10px;
}
.boc-main ul,
.boc-main ol {
  padding-left: 24px;
}
.boc-kicker {
  font:
    500 13px/1.6 "JetBrains Mono",
    ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--boc-accent) !important;
  margin-bottom: 16px !important;
}
.boc-lead {
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.55;
  max-width: 810px;
}
.boc-status {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--boc-line);
  padding: 5px 13px;
  border-radius: 24px;
  color: var(--boc-muted);
  margin: 0 0 24px;
  background: var(--boc-card);
}
.boc-section {
  padding: 36px 0;
  border-top: 1px solid var(--boc-line);
  margin-top: 40px;
}
.boc-section:last-child {
  padding-bottom: 0;
}
.boc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.boc-grid > *,
.boc-mobile-feature > * {
  min-width: 0;
}
.boc-card {
  border: 1px solid var(--boc-line);
  background: var(--boc-card);
  border-radius: 18px;
  padding: 32px;
}
.boc-card p:last-child {
  margin-bottom: 0;
}
.boc-card h2 {
  font-size: 28px;
}
.boc-card a {
  font-weight: 600;
}
.boc-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 32px;
}
.boc-facts dt {
  font-size: 14px;
  font-weight: 650;
  color: var(--boc-muted);
  margin-bottom: 4px;
}
.boc-facts dd {
  margin: 0 0 24px;
}
.boc-facts address {
  font-style: normal;
}

.boc-callout {
  border-left: 3px solid var(--boc-accent);
  padding: 20px 24px;
  background: #eee6d8;
  border-radius: 0 12px 12px 0;
  margin: 28px 0;
}
.boc-callout p:last-child {
  margin-bottom: 0;
}
.boc-link {
  display: inline-block;
  font-size: 16px;
  font-weight: 650;
  padding: 10px 0;
}
.boc-steps {
  list-style: none;
  padding: 0 !important;
  counter-reset: steps;
}
.boc-steps li {
  counter-increment: steps;
  position: relative;
  padding: 0 0 24px 48px;
}
.boc-steps li::before {
  content: counter(steps, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1px;
  color: var(--boc-accent);
  font: 600 16px/1.7 monospace;
}
.boc-steps strong {
  display: block;
  color: var(--boc-ink);
}
.boc-figure {
  margin: 40px 0 0;
}
.boc-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--boc-line);
  border-radius: 14px;
  background: #f5f6f2;
}
.boc-figure a {
  display: block;
}
.boc-figure figcaption,
.boc-caption {
  font-size: 14px;
  line-height: 1.6;
  color: var(--boc-muted);
  margin-top: 14px;
}
.boc-mobile-feature {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 72px;
  align-items: center;
}
.boc-mobile-feature .boc-figure {
  margin: 0;
}
.boc-mobile-feature img {
  max-width: 330px;
  margin: auto;
}
.boc-history {
  border-left: 1px solid var(--boc-line);
  padding-left: 28px;
  margin: 24px 0;
}
.boc-history article + article {
  margin-top: 28px;
}
.boc-history time,
.boc-history .boc-date {
  font-size: 14px;
  color: var(--boc-accent);
  font-weight: 650;
}
.boc-history h3 {
  margin-top: 8px;
}
.boc-footer {
  --boc-accent: #79571c;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  line-height: 1.7;
  border-top: 1px solid var(--boc-line);
  padding: 36px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  font-size: 15px;
}
.boc-footer p {
  color: var(--boc-muted);
  margin: 10px 0 0;
}
.boc-footer nav {
  display: flex;
  gap: 10px 24px;
  flex-wrap: wrap;
  align-content: start;
}
.boc-footer a {
  color: var(--boc-accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.boc-footer .boc-brand {
  text-decoration: none;
}
.boc-footer .boc-brand span {
  color: #c99f3b;
}
.boc-legal {
  grid-column: 1/-1;
  font-size: 14px;
}
/* Static concept illustration: no input controls, medical images, or model output. */
.fcancer {
  --boc-accent: var(--boc-red);
}
.guarddog {
  --boc-accent: var(--boc-green);
}
.research-preview {
  border-radius: 20px;
  border: 1px solid #cdd7d7;
  background: #fff;
  overflow: hidden;
  margin-top: 40px;
  color: #20363b;
  font-size: 15px;
  box-shadow: 0 20px 60px #221a1410;
}
.research-preview p {
  color: #52666b;
  font-size: 15px;
}
.research-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 28px;
  background: #edf2f1;
  border-bottom: 1px solid #d4dedd;
}
.research-brand {
  font-size: 23px;
  font-weight: 750;
  letter-spacing: -0.04em;
}
.research-brand span {
  color: #9d4239;
}
.research-label {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 650;
  color: #52666b;
}
.research-workspace {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 32px;
  padding: 32px;
}
.research-scan {
  background: #15272d;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}
.research-scan svg {
  width: 100%;
  max-width: 300px;
  height: auto;
}
.research-scan p {
  color: #c3d2d5;
  margin: 10px 0 0;
  font-size: 13px;
}
.research-preview .research-title {
  font-size: 22px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #20363b;
  margin: 10px 0 14px;
}
.research-preview ul {
  list-style: none;
  padding: 0;
  margin: 22px 0;
}
.research-preview li {
  padding: 12px 0;
  border-bottom: 1px solid #d4dedd;
  font-size: 15px;
  color: #52666b;
}
.research-preview li strong {
  display: block;
  color: #20363b;
}
.research-note {
  margin: 0 !important;
  padding: 16px 28px;
  background: #f6f0e8;
  border-top: 1px solid #e1d7c9;
  font-size: 13px !important;
  color: #66513b !important;
}
.home-nav {
  width: min(100% - 48px, 1040px);
  margin: 0 auto;
  border-bottom: 1px solid var(--boc-line);
  padding: 14px 0;
}
.home-nav .boc-nav {
  justify-content: center;
}
.home-mission {
  margin: 0 0 48px;
  padding: 24px 28px;
  border-left: 3px solid #9b7829;
  background: #eee6d8;
  border-radius: 0 14px 14px 0;
}
.home-mission h2 {
  margin: 0 0 12px;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.home-mission p {
  margin: 0 0 10px;
  color: #5b5048;
  font-size: 17px;
  line-height: 1.7;
}
.home-mission a,
.project-card .boc-link {
  color: #79571c;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.project-card .boc-link {
  margin-top: auto;
}
.project-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
@media (max-width: 760px) {
  .boc-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 22px 0;
  }
  .boc-header,
  .boc-main,
  .boc-footer {
    width: calc(100% - 40px);
  }
  .boc-brand {
    font-size: 20px;
  }
  .boc-nav {
    width: 100%;
    justify-content: space-between;
    gap: 4px 12px;
    font-size: 14px;
  }
  .boc-main {
    padding: 40px 0 56px;
  }
  .boc-main h1 {
    font-size: clamp(34px, 8vw, 42px);
  }
  .boc-grid,
  .boc-facts,
  .boc-mobile-feature {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .boc-card {
    padding: 24px;
  }
  .boc-section {
    padding-top: 36px;
    margin-top: 36px;
  }
  .boc-footer {
    grid-template-columns: 1fr;
  }
  .boc-figure {
    margin-top: 28px;
  }
  .boc-mobile-feature {
    gap: 32px;
  }
  .research-top {
    padding: 18px;
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
  .research-workspace {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 24px;
  }
  .research-note {
    padding: 16px 20px;
  }
  .home-nav {
    width: calc(100% - 40px);
  }
  .home-nav .boc-nav {
    justify-content: flex-start;
  }
  .home-mission {
    padding: 20px;
  }

}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }
}

/* Preserve the homepage logo and wordmark in inner-page headers. */
.boc-header .boc-brand {
  gap: 14px;
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 1;
  font-size: clamp(1.4rem, 4vw, 2rem);
}
.boc-header .boc-logo-mark {
  display: block;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
}
.boc-header .boc-wordmark {
  color: var(--boc-ink);
  margin: 0;
}
.boc-header .boc-ai {
  color: #c99f3b;
  margin: 0;
}
@media (max-width: 760px) {
  .boc-header .boc-brand {
    gap: 10px;
    font-size: clamp(1.15rem, 6vw, 1.45rem);
    letter-spacing: -0.05em;
  }
  .boc-header .boc-logo-mark {
    width: 34px;
    height: 34px;
  }
}
@media (max-width: 430px) {
  .boc-header .boc-brand {
    align-items: flex-start;
  }
  .boc-header .boc-wordmark {
    padding-top: 4px;
    white-space: normal;
  }
  .boc-header .boc-logo-mark {
    width: 32px;
    height: 32px;
  }
}

    .nonprofit-info {
      position: relative;
      display: inline-block;
    }

    .nonprofit-info a {
      text-decoration: underline;
      text-decoration-color: var(--boc-muted);
      text-underline-offset: 4px;
    }

    .nonprofit-info a:focus-visible {
      outline: 2px solid var(--boc-ink);
      outline-offset: 4px;
      border-radius: 2px;
    }

    .nonprofit-tooltip {
      position: absolute;
      bottom: 100%;
      left: 0;

      z-index: 2;
      width: min(18rem, calc(100vw - 64px));
      padding: 12px 16px;
      border: 1px solid var(--boc-line);
      border-radius: 10px;
      background: var(--boc-card);
      color: var(--boc-ink);
      box-shadow: 0 2px 8px rgba(34, 26, 20, 0.06);
      font-size: 0.88rem;
      font-family: Inter, system-ui, sans-serif;
      letter-spacing: normal;
      text-align: left;
      visibility: hidden;
    }

    .nonprofit-info:not(.tooltip-dismissed):hover .nonprofit-tooltip,
    .nonprofit-info:not(.tooltip-dismissed):focus-within .nonprofit-tooltip {
      visibility: visible;
    }


/* Shared program identities, matching the homepage cards. */
    .project-title {
      display: flex;
      align-items: center;
      gap: 16px;
      margin-bottom: 20px;
    }

    .project-dot {
      width: 20px;
      height: 20px;
      border-radius: 999px;
      flex: 0 0 auto;
      box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.35);
    }

    .project-dot.red {
      background: linear-gradient(145deg, #ef4e35, #c83e2e);
    }

    .project-dot.green {
      background: linear-gradient(145deg, #74aa70, #4d8756);
    }

    .project-title :is(h1, h2, h3) {
      margin: 0;
      font-size: clamp(1.62rem, 4vw, 2.08rem);
      line-height: 1.05;
      letter-spacing: -0.055em;
      font-weight: 700;
    }

    .project-title .red-text {
      color: #ef4e35;
    }
