@import url("https://fonts.googleapis.com/css2?family=Inter+Tight:ital,wght@0,100..900;1,100..900&family=Sometype+Mono:ital,wght@0,400..700;1,400..700&display=swap");

h1,
h2 {
  margin-top: 2em !important;
  font-weight: bold;
}

h3 {
  font-weight: normal;
  font-size: 1.3em;
}

/* === Omni color palette classes === */

/* --- orange-red --- */
.orange-red-600 {
  color: #cc4100;
}
.orange-red-400 {
  color: #ff5e34;
}
.orange-red-200 {
  color: #ffc5aa;
}

/* --- golden yellow --- */
.golden-yellow-600 {
  color: #f7b925;
}
.golden-yellow-400 {
  color: #fdcb2b;
}
.golden-yellow-200 {
  color: #fde880;
}

/* --- olive green --- */
.olive-green-600 {
  color: #3b5530;
}
.olive-green-400 {
  color: #89a046;
}
.olive-green-200 {
  color: #b8c690;
}

/* --- teal --- */
.teal-600 {
  color: #41816f;
}
.teal-400 {
  color: #8ac0b3;
}
.teal-200 {
  color: #c5dfd9;
}

/* --- plum --- */
.plum-600 {
  color: #921c4c;
}
.plum-400 {
  color: #c65a8b;
}
.plum-200 {
  color: #dd9cb9;
}

/* --- periwinkle --- */
.periwinkle-600 {
  color: #5776b2;
}
.periwinkle-400 {
  color: #9ba8db;
}
.periwinkle-200 {
  color: #d4ddeb;
}

/* --- steel blue --- */
.steel-blue-600 {
  color: #405065;
}
.steel-blue-400 {
  color: #677384;
}
.steel-blue-200 {
  color: #bfcdd3;
}

/* --- navy --- */
.navy {
  color: #081c39;
}

/* === Stats counter grid (index.qmd) === */

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

.stat-card {
  background: #f5f7fa;
  border-radius: 8px;
  padding: 1.5rem 1rem 1.25rem 1rem;
  text-align: center;
}

.stat-number {
  font-family: 'Inter Tight', sans-serif;
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1;
  color: #081c39;
  margin-bottom: 0.5rem;
}

.stat-card:nth-child(2) .stat-number,
.stat-card:nth-child(4) .stat-number {
  color: #5776b2;
}

.stat-label {
  font-size: 0.875rem;
  color: #677384;
  line-height: 1.35;
}

/* === Navbar logo (Omni icon) === */

.navbar-brand img {
  max-height: 36px;
  width: auto;
}

/* === Hub logo in page body === */

.hub-page-logo {
  height: 96px; /* ~1 inch */
  width: auto;
  display: block;
  margin-bottom: 1.75rem;
}

/* === CloseRead journey map (journey.qmd) === */

/* Override CloseRead defaults: navy background, white narrative text */
:root {
  --cr-section-background-color: #081c39;
  --cr-narrative-text-color-sidebar: rgba(255, 255, 255, 0.9);
}

/* Cap the sticky column at the map width; give narrative the rest */
.cr-section.sidebar-right {
  grid-template-columns: minmax(300px, 420px) 1fr;
  column-gap: 0;
}

/* Reduce horizontal padding so narrative text hugs its column edge */
/* Reduce CloseRead's default 45svh trigger padding; keep inline padding tight */
.cr-section .narrative-col .trigger {
  padding-block: 12svh;
  padding-inline: 12px;
}

/* Force the journey map sticky visible throughout — only one sticky on this page */
#cr-map {
  opacity: 1 !important;
}

/* Landing hero: icon grid intro, full viewport, visible on page load */
.journey-hero {
  /* Break out of Quarto's content column to full viewport width */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  min-height: calc(100vh - 56px); /* 56px = navbar height */
  background: #081c39;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem;
}

.hub-hero-logo {
  /* Logo art has dark text; on the navy hero, sit it on a white chip for
     contrast. Thin padding so the logo nearly fills the chip. Remove the
     chip once a white-font logo exists. */
  max-height: 142px;
  width: auto;
  margin-bottom: 1.75rem;
  background: #ffffff;
  padding: 0.45rem 0.6rem;
  border-radius: 10px;
}

.journey-hero-title {
  font-family: 'Inter Tight', sans-serif;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.journey-hero-intro {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0 auto 2.75rem auto;
}

/* The seven-phase icon grid — vertical stack, icon left / text right */
.journey-icon-grid {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  max-width: 520px;
  margin: 0 auto;
  text-align: left;
}

.journey-grid-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
}

.journey-grid-item p {
  margin: 0;
}

.journey-grid-icon {
  width: 58px;
  height: 58px;
  flex-shrink: 0;
}

.grid-title {
  display: block;
  font-weight: 600;
  font-size: 1rem;
  color: white;
  margin-bottom: 0.15rem;
}

.grid-desc {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  line-height: 1.4;
}

.journey-grid-item .grid-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  background: #5776b2;
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  margin-right: 0.4rem;
  vertical-align: middle;
}

.journey-scroll-hint {
  margin-top: 2.5rem;
  color: #9ba8db;
  font-style: normal;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

/* Logo inside CloseRead sticky panel */
.hub-sticky-logo {
  max-height: 56px;
  width: auto;
  display: block;
  margin-bottom: 0.75rem;
}

/* Headings, links, blockquotes inside the narrative on dark background */
.cr-section .narrative-col .trigger .narrative h3 {
  color: white;
  font-weight: 600;
}

.cr-section .narrative-col .trigger .narrative blockquote {
  border-left: 3px solid #9ba8db;
  color: #d4ddeb;
  padding-left: 1rem;
  font-style: italic;
}

/* A little breathing room between paragraphs within each journey stage */
.cr-section .narrative-col .trigger .narrative p {
  margin-bottom: 1.2rem;
}

.journey-map-sticky {
  font-family: 'Inter Tight', sans-serif;
  padding: 1.25rem;
  background: #f5f7fa;
  border-radius: 10px;
  max-width: 320px;
  margin: 0 auto;
}

.journey-map-sticky h4 {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9ba8db;
  margin: 0 0 1rem 0;
  font-weight: 700;
}

.journey-stage {
  padding: 0.3rem 0.5rem;
  border-radius: 6px;
  margin-bottom: 0.2rem;
  transition: background 0.25s, color 0.25s;
  color: #677384;
  font-size: 0.875rem;
  line-height: 1.35;
}

/* Pandoc wraps inline content in <p>; use it as the flex row */
.journey-stage > p {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
}

/* Circular number badge */
.journey-stage .stage-num {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: #e0e6ed;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.68rem;
  color: #8a9caa;
  transition: background 0.25s, color 0.25s;
}

/* CloseRead applies .cr-focus to the focused element */
.journey-stage.cr-focus {
  background: #081c39;
  color: white;
}

.journey-stage.cr-focus .stage-num {
  background: #9ba8db;
  color: white;
}

/* Stage icon beside the narrative heading on the right */
.stage-head-icon {
  width: 3.2rem;
  height: 3.2rem;
  vertical-align: middle;
  margin-right: 0.6rem;
}

/* Active stage in the sticky map (driven by scroll-spy script) */
.journey-stage.is-active {
  color: #081c39;
  font-weight: 700;
}

.journey-stage.is-active .stage-num {
  background: #5776b2;
  color: white;
}

/* === Key Learning callouts (index.qmd) === */

.key-learning {
  border-left: 4px solid #f7b925;
  background: rgba(247, 185, 37, 0.07);
  border-radius: 0 6px 6px 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.925rem;
}

.key-learning p:last-child {
  margin-bottom: 0;
}

/* === Partner-reflection call-out (light pages: Findings, What's Next) === */

.partner-quote {
  border-left: 4px solid #5776b2;
  background: rgba(87, 118, 178, 0.06);
  border-radius: 0 6px 6px 0;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  font-style: italic;
  line-height: 1.5;
}

.partner-quote p:last-child {
  margin-bottom: 0;
}

.partner-quote .attr {
  display: block;
  margin-top: 0.5rem;
  font-style: normal;
  font-size: 0.85rem;
  color: #677384;
}

/* === Scroll prompt (index.qmd) === */

.scroll-prompt {
  text-align: center;
  color: #677384;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  margin: 0.5rem 0 1.5rem 0;
}

/* === Executive-summary download call-out (index.qmd) === */

.download-card {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  max-width: 640px;
  margin: 1.6rem auto;
  padding: 1rem 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
}

/* Pandoc wraps the icon and button in <p>; drop their default margins */
.download-card > p,
.download-card .dl-text p {
  margin: 0;
}

.download-card .dl-icon {
  font-size: 2.2rem;
  line-height: 1;
}

.download-card .dl-text {
  flex: 1 1 auto;
}

.download-card .dl-text strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.15rem;
}

.download-btn,
.download-btn:visited {
  display: inline-block;
  flex: 0 0 auto;
  background: #f7b925;          /* gold — high-contrast CTA on the navy page */
  color: #081c39 !important;
  font-weight: 600;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  text-decoration: none !important;
  white-space: nowrap;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.download-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
  color: #081c39 !important;
}

/* Stack the card on small screens so the button doesn't crowd the text */
@media (max-width: 520px) {
  .download-card {
    flex-direction: column;
    align-items: flex-start;
  }
}
