html {
  font-size: 12px !important;
}

body {
  font-size: 12px !important;
}

h1, .h1 { font-size: 2rem !important; }
h2, .h2 { font-size: 1.65rem !important; }
h3, .h3 { font-size: 1.4rem !important; }
h4, .h4 { font-size: 1.2rem !important; }
h5, .h5 { font-size: 1.05rem !important; }
h6, .h6 { font-size: 0.95rem !important; }

.navbar-brand,
.navbar-title,
.nav-link,
.dropdown-item,
.menu-text {
  font-size: 0.9rem !important;
}

:root {
  --ahri-blue: #004d82;
  --ahri-blue-deep: #00365b;
  --ahri-blue-light: #eaf2f8;
  --ahri-orange: #f57f29;
  --aphrc-green: #79c149;
  --surface: #ffffff;
  --surface-muted: #f8fbfe;
  --ink: #1d2c3b;
  --ink-soft: #4f6172;
  --line: #d7e2ec;
}

body {
  color: var(--ink);
  background:
    linear-gradient(90deg, #ffffff 0%, #ffffff 78%, #f5f9fc 100%);
}

/* Full-width page layout with controlled breathing room */
#quarto-content.quarto-container,
#quarto-content.quarto-container.page-layout-full {
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

#quarto-document-content.content {
  max-width: 100% !important;
  margin: 0 auto;
  padding-left: clamp(1rem, 2.8vw, 2.8rem);
  padding-right: clamp(1rem, 2.8vw, 2.8rem);
}

.home-page #title-block-header {
  display: none;
}

#title-block-header {
  display: block;
  max-width: 100%;
  margin: 0 auto 1.4rem;
  padding: 1rem clamp(1rem, 2.8vw, 2.8rem) 0.9rem;
  border-top: 4px solid var(--ahri-blue);
  border-bottom: 1px solid #dde8f2;
}

#title-block-header .title {
  color: var(--ahri-blue-deep);
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

#title-block-header .subtitle {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.45;
  margin-top: 0.1rem;
}

#title-block-header .description,
#title-block-header .quarto-title-meta {
  color: var(--ink-soft);
}

#quarto-margin-sidebar nav[role="doc-toc"] a,
#quarto-margin-sidebar .toc-active a {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

#quarto-margin-sidebar .toc-active ul {
  padding-right: 0.25rem;
}

#quarto-margin-sidebar {
  overflow-wrap: anywhere;
}

.section-nav {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-top: 4px solid var(--ahri-orange);
  box-shadow: 0 12px 28px rgba(0, 31, 63, 0.08);
}

.section-nav__eyebrow {
  color: var(--ahri-blue);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin: 0 0 0.35rem;
  text-transform: uppercase;
}

.section-nav__title {
  display: none;
}

.section-nav__list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.section-nav__link {
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--ink);
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  padding: 0.7rem 0.85rem;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.section-nav__link:hover,
.section-nav__link:focus {
  background: #f9fcff;
  border-color: #9dc2de;
  box-shadow: 0 10px 20px rgba(0, 31, 63, 0.08);
  color: var(--ahri-blue-deep);
  transform: translateX(2px);
}

.section-nav__link.is-active {
  background: linear-gradient(135deg, var(--ahri-blue-deep), var(--ahri-blue));
  border-color: var(--ahri-blue-deep);
  box-shadow: 0 14px 28px rgba(0, 31, 63, 0.16);
  color: #ffffff;
}

@media (min-width: 1200px) {
  body.has-section-nav #quarto-content {
    box-sizing: border-box;
    padding-left: clamp(17rem, 19vw, 18.75rem) !important;
  }

  .section-nav {
    left: clamp(0.85rem, 1.6vw, 1.4rem);
    max-height: calc(100vh - 8.6rem);
    overflow-y: auto;
    padding: 1rem;
    position: fixed;
    top: 6.7rem;
    width: clamp(14.5rem, 15vw, 16.5rem);
    z-index: 998;
  }

  body.quarto-dashboard.has-section-nav #quarto-content {
    padding-left: clamp(17rem, 19vw, 18.75rem) !important;
  }

  body.quarto-dashboard .section-nav {
    top: 9.8rem;
  }

  #quarto-margin-sidebar {
    max-width: min(20rem, 22vw);
  }
}

@media (max-width: 1199px) {
  body.has-section-nav #quarto-content {
    padding-left: 0 !important;
  }

  .section-nav {
    margin: 1rem clamp(1rem, 2.8vw, 2.8rem) 0.4rem;
    padding: 0.9rem;
  }

  .section-nav__list {
    gap: 0.55rem;
  }
}

.navbar {
  background: var(--ahri-blue-deep);
  border-bottom: 2px solid rgba(245, 127, 41, 0.9);
  box-shadow: 0 3px 12px rgba(0, 31, 63, 0.28);
}

.navbar .navbar-brand,
.navbar .nav-link {
  color: #ffffff !important;
  font-weight: 600;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus,
.navbar .nav-link.active,
.navbar .show > .nav-link {
  color: #ffffff !important;
  background: rgba(245, 127, 41, 0.2);
  border-radius: 0;
}

/* Footer */
.nav-footer {
  background: #0f2237;
  color: #dbe6f1;
  border-top: 2px solid rgba(245, 127, 41, 0.9);
  margin-top: 1.4rem;
  padding: 1rem clamp(1rem, 2.8vw, 2.8rem);
}

.nav-footer a {
  color: #ffffff;
}

.nav-footer .nav-footer-left,
.nav-footer .nav-footer-right {
  font-size: 0.9rem;
  line-height: 1.45;
}

.nav-footer .nav-footer-right {
  text-align: right;
}

.footer-logos {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.8rem;
}

.footer-logos p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: nowrap;
}

.footer-logo {
  display: block;
  height: 46px;
  max-height: 46px;
  width: auto;
  object-fit: contain;
  background: #ffffff;
  padding: 0.2rem 0.35rem;
}

/* Dashboard uses fill layout; keep footer compact and avoid logo-box stretching */
body.quarto-dashboard .nav-footer {
  margin-top: 0.4rem;
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}

body.quarto-dashboard .nav-footer .nav-footer-right {
  text-align: right;
}

body.quarto-dashboard .footer-logos {
  align-items: center;
  gap: 0.6rem;
}

body.quarto-dashboard .footer-logos p {
  margin: 0;
  gap: 0.6rem;
  flex-wrap: nowrap;
}

body.quarto-dashboard .footer-logo {
  height: 34px;
  max-height: 34px;
  padding: 0;
  background: transparent;
}

/* Dashboard fill mode can apply broad image sizing; force footer logos to keep natural ratio */
body.quarto-dashboard .nav-footer .footer-logos .footer-logo,
body.quarto-dashboard .nav-footer .footer-logos .footer-logo[width],
body.quarto-dashboard .nav-footer .footer-logos img.footer-logo[width="100%"] {
  display: inline-block !important;
  width: auto !important;
  max-width: none !important;
  height: 34px !important;
  max-height: 34px !important;
  min-height: 34px !important;
  object-fit: contain !important;
  aspect-ratio: auto !important;
}

.top-logo-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin: 1rem 0 1rem;
}

/* Quarto often wraps each logo image in a paragraph within the custom div */
.top-logo-strip > p {
  margin: 0;
  display: flex;
  align-items: stretch;
}

.top-logo-strip > p .partner-logo {
  width: min(100%, 320px);
  margin: 0 auto;
  padding: 0.65rem;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.top-logo-strip > p .partner-logo--ahri {
  background: var(--ahri-blue);
  border-color: #003559;
}

.top-logo-strip > p .partner-logo--aphrc {
  background: #ffffff;
  border-color: #cadcc0;
}

.top-logo-strip > p .partner-logo--wellcome {
  background: #ffffff;
  border-color: #bfd0e0;
}

.home-hero {
  margin: 0 0 1.4rem;
  padding: 0.95rem 0 0.5rem;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  border-top: 4px solid var(--ahri-blue);
  border-bottom: 1px solid #dde8f2;
}

.home-hero__title-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
}

.home-hero__title-copy {
  min-width: 0;
  max-width: none;
  width: 100%;
  order: 2;
}

.home-hero__title-logo-wrap {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: linear-gradient(120deg, var(--ahri-blue-deep), var(--ahri-blue));
  padding: 0.2rem 0.7rem 0.45rem;
  order: 1;
  align-self: start;
}

.home-hero__title-logo-wrap p {
  margin: 0;
  display: flex;
}

.home-hero__title-logo {
  width: min(100%, 360px);
  max-height: 112px;
  height: auto;
  object-fit: contain;
}

.home-hero__eyebrow {
  margin: 0 0 0.45rem;
  color: var(--ahri-blue);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.79rem;
  font-weight: 700;
}

.home-hero h1 {
  margin: 0;
  color: var(--ahri-blue-deep);
  font-size: clamp(3.1725rem, 7.29vw, 5.13rem) !important;
  line-height: 1.08;
}

.project-subtitle {
  margin: 0.45rem 0 1rem;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.45;
  border-left: 3px solid rgba(245, 127, 41, 0.9);
  padding-left: 0.65rem;
  max-width: none;
  width: 100%;
  white-space: normal;
  overflow: visible;
  overflow-wrap: anywhere;
  word-break: normal;
}

.home-hero__content > p {
  margin-bottom: 1rem;
  color: var(--ink-soft);
  font-size: 1.03rem;
  line-height: 1.65;
  max-width: none;
  width: 100%;
  white-space: normal;
  overflow: visible;
  overflow-wrap: anywhere;
  word-break: normal;
}

.home-content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.4rem;
  align-items: start;
  margin-top: 1.1rem;
}

.home-content-layout__left {
  border-right: 2px solid rgba(245, 127, 41, 0.45);
  padding-right: 0.85rem;
}

.metric-column {
  position: sticky;
  top: 92px;
}

.metric-column--horizontal {
  position: static;
  top: auto;
  margin-top: 0.45rem;
}

.metric-column__eyebrow {
  margin: 0 0 0.75rem;
  color: var(--ahri-blue);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.home-content-layout__left .metric-row {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 0.85rem;
  margin-top: 0;
}

.metric-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.1rem;
}

.metric-column--horizontal .metric-row {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  overflow-x: auto;
  margin-top: 0.65rem;
  padding-bottom: 0.2rem;
}

.metric-column--horizontal .metric-card {
  width: 170px;
  max-width: 170px;
  flex: 0 0 170px;
}

.metric-card {
  --ring-gradient: conic-gradient(
    from 145deg,
    rgba(0, 77, 130, 0.92) 0 72%,
    rgba(245, 127, 41, 0.92) 72% 100%
  );
  width: 170px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: transparent;
  border: 0;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  position: relative;
  overflow: hidden;
}

.metric-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--ring-gradient);
  z-index: 0;
  animation: snapshot-ring-spin 10s linear infinite;
}

.metric-card::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffffff, #f5f9fc);
  z-index: 1;
}

.metric-card__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 0.65rem;
}

.metric-card:nth-child(even) {
  --ring-gradient: conic-gradient(
    from 200deg,
    rgba(245, 127, 41, 0.9) 0 30%,
    rgba(0, 77, 130, 0.94) 30% 100%
  );
}

@keyframes snapshot-ring-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .metric-card::after {
    animation-duration: 20s;
  }
}

.metric-card__value {
  margin: 0;
  color: var(--ahri-blue-deep);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.08;
}

.metric-card__label {
  margin: 0.25rem 0 0;
  color: var(--ink-soft);
  font-size: 0.8rem;
  line-height: 1.28;
}

.home-hero__logos {
  display: grid;
  gap: 0.9rem;
  width: 100%;
}

.logo-panel {
  min-height: 112px;
  border-radius: 0;
  padding: 0.95rem;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 0;
  background: #ffffff;
}

.logo-panel--ahri {
  background: var(--ahri-blue);
  border-color: #003559;
}

.logo-panel--aphrc {
  background: #ffffff;
  border-color: #cadcc0;
}

.logo-panel--wellcome {
  background: #ffffff;
  border-color: #bfd0e0;
}

.partner-logo {
  width: min(100%, 285px);
  height: auto;
  object-fit: contain;
}

.partner-logo--ahri {
  max-height: 84px;
}

.partner-logo--aphrc {
  max-height: 94px;
}

.partner-logo--wellcome {
  max-height: 70px;
}

/* Compatibility for existing rendered pages where logos are wrapped in <p> */
.home-hero__logos > p {
  margin: 0;
  width: 100%;
  display: grid;
  gap: 0.9rem;
}

.home-hero__logos > p .partner-logo {
  width: min(100%, 320px);
  justify-self: center;
  padding: 0.95rem;
  border: 0;
  border-radius: 0;
}

.home-hero__logos > p .partner-logo--ahri {
  background: var(--ahri-blue);
  border-color: #003559;
}

.home-hero__logos > p .partner-logo--aphrc {
  background: #ffffff;
  border-color: #cadcc0;
}

#quarto-document-content > section.level2,
.home-content-layout__right > section.level2 {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0 0 0 1.1rem;
  margin: 1.9rem 0;
  box-shadow: none;
  border-left: 2px solid #dce7f3;
}

#study-design {
  max-width: 1080px;
}

#quarto-document-content > section.level2 > h2,
.home-content-layout__right > section.level2 > h2 {
  margin-top: 0;
  margin-bottom: 0.65rem;
  color: var(--ahri-blue-deep);
  padding-left: 0;
  border: 0;
  border-bottom: 2px solid rgba(245, 127, 41, 0.7);
  display: inline-block;
  padding-bottom: 0.2rem;
  font-size: 1.34rem;
  letter-spacing: 0.01em;
}

#quarto-document-content > section.level2 > section.level3 > h3,
.home-content-layout__right > section.level2 > section.level3 > h3 {
  margin-top: 1rem;
  margin-bottom: 0.55rem;
  color: var(--ahri-blue-deep);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.3;
}

#quarto-document-content > section.level2 > section.level3 > section.level4 > h4,
.home-content-layout__right > section.level2 > section.level3 > section.level4 > h4 {
  margin-top: 0.85rem;
  margin-bottom: 0.45rem;
  color: var(--ahri-blue);
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.3;
}

#quarto-document-content > section.level2 > p,
.home-content-layout__right > section.level2 > p {
  color: var(--ink-soft);
  line-height: 1.66;
}

.contribution-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 0.85rem;
}

.contribution-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0.35rem 0 0.2rem;
  box-shadow: none;
  border-top: 2px solid rgba(0, 77, 130, 0.2);
}

.contribution-card p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.58;
}

.study-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.study-flow__step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.7rem;
  align-items: start;
}

.study-flow__badge {
  width: 2rem;
  height: 2rem;
  margin-top: 0.06rem;
  border-radius: 50%;
  border: 2px solid var(--ahri-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--ahri-blue-deep);
  background: linear-gradient(145deg, #ffffff 30%, #fff3e9 100%);
}

.study-flow__content h3 {
  margin: 0 0 0.38rem;
  color: var(--ahri-blue);
  font-size: 1.03rem;
  line-height: 1.25;
}

.study-flow__content p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.55;
}

.study-flow__arrow {
  align-self: center;
  width: 2.3rem;
  height: 1px;
  background: #b5cbdf;
  position: relative;
}

.study-flow__arrow::after {
  content: "";
  position: absolute;
  right: -1px;
  top: -4px;
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 7px solid var(--ahri-orange);
}

.study-map {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.7rem;
}

.study-map__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px minmax(0, 1fr) 120px minmax(0, 1fr);
  gap: 0.55rem;
  align-items: stretch;
}

.study-map__node {
  background: linear-gradient(145deg, #ffffff, #f8fbff);
  border-left: 4px solid rgba(0, 77, 130, 0.75);
  padding: 0.75rem 0.8rem;
}

.study-map__node--analysis {
  border-left-color: rgba(245, 127, 41, 0.9);
  background: linear-gradient(145deg, #ffffff, #fff8f1);
}

.study-map__node--ycc {
  border-left-color: #2f8f5c;
  background: linear-gradient(145deg, #ffffff, #f6fff8);
}

.study-map__node h3 {
  margin: 0 0 0.35rem;
  color: var(--ahri-blue);
  font-size: 0.98rem;
  line-height: 1.26;
}

.study-map__node p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.5;
  font-size: 0.88rem;
}

.study-map__connector {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.2rem;
  color: #35536d;
  font-size: 0.71rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
  line-height: 1.3;
  isolation: isolate;
}

.study-map__connector::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  right: 0.2rem;
  top: 50%;
  height: 2px;
  background: #b8cde0;
  transform: translateY(-50%);
  z-index: 0;
}

.study-map__connector--to-analysis::after {
  content: "";
  position: absolute;
  right: -0.1rem;
  top: calc(50% - 5px);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 9px solid var(--ahri-orange);
  z-index: 1;
}

.study-map__connector--from-ycc::after {
  content: "";
  position: absolute;
  left: -0.1rem;
  top: calc(50% - 5px);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-right: 9px solid #2f8f5c;
  z-index: 1;
}

.study-map__connector-label {
  position: relative;
  z-index: 2;
  display: inline-block;
  padding: 0.08rem 0.3rem;
  background: rgba(248, 251, 255, 0.96);
  border-radius: 999px;
  white-space: nowrap;
}

.study-map__result {
  border-left: 4px solid var(--ahri-blue);
  border-top: 3px solid rgba(245, 127, 41, 0.9);
  background: linear-gradient(130deg, rgba(0, 77, 130, 0.08), rgba(245, 127, 41, 0.15), #ffffff);
  padding: 0.85rem 0.95rem;
}

.study-map__result h3 {
  margin: 0 0 0.3rem;
  color: var(--ahri-blue-deep);
  font-size: 1rem;
  line-height: 1.25;
}

.study-map__result p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.56;
  font-size: 0.91rem;
}

.contribution-card {
  position: relative;
  background: transparent;
  padding-left: 0;
}

.contribution-card::before {
  content: none;
}

.cohort-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.4rem 0 0.85rem;
}

.cohort-tag {
  display: inline-flex;
  align-items: center;
  padding: 0;
  border-radius: 0;
  font-size: 0.86rem;
  font-weight: 600;
  color: #274863;
  background: transparent;
  border: 0;
}

.cohort-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-right: 0.38rem;
  background: var(--aphrc-green);
  display: inline-block;
}

.impact-banner {
  margin-top: 1.15rem;
  padding: 1rem 1.05rem 1.05rem;
  border-radius: 0;
  background: linear-gradient(
    122deg,
    rgba(0, 77, 130, 0.1) 0%,
    rgba(245, 127, 41, 0.2) 60%,
    #ffffff 100%
  );
  color: var(--ink);
  border-top: 3px solid var(--ahri-orange);
  border-left: 4px solid var(--ahri-blue);
}

.impact-banner h3 {
  color: var(--ahri-blue-deep);
  margin: 0 0 0.42rem;
  font-size: 1.16rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.impact-banner p {
  margin: 0;
  color: var(--ahri-blue-deep);
  font-size: 1.03rem;
  line-height: 1.62;
}

.workflow-snapshot {
  margin-top: 1rem;
  padding: 1.2rem 1.15rem 1.25rem;
  background:
    radial-gradient(900px 420px at 8% 12%, rgba(0, 77, 130, 0.08), transparent 60%),
    radial-gradient(780px 360px at 92% 18%, rgba(121, 193, 73, 0.12), transparent 58%),
    linear-gradient(135deg, #f7fbff 0%, #fff8f1 48%, #f8fff7 100%);
  border-top: 4px solid var(--ahri-blue);
  border-bottom: 2px solid rgba(245, 127, 41, 0.35);
}

.workflow-snapshot__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 50px minmax(0, 1.15fr) 50px minmax(0, 1fr);
  gap: 0.8rem;
  align-items: stretch;
}

.workflow-lane {
  display: grid;
  gap: 0.75rem;
  align-content: start;
}

.workflow-lane__eyebrow {
  margin: 0;
  color: var(--ahri-blue-deep);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.workflow-card,
.workflow-output-group {
  position: relative;
  padding: 0.95rem 0.95rem 0.9rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 34px -28px rgba(0, 54, 91, 0.42);
  overflow: hidden;
}

.workflow-card::before,
.workflow-output-group::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
}

.workflow-card h3,
.workflow-output-group h3 {
  margin: 0 0 0.35rem;
  color: var(--ahri-blue-deep);
  font-size: 1.02rem;
  line-height: 1.25;
}

.workflow-card p,
.workflow-output-group p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.56;
  font-size: 0.94rem;
}

.workflow-card--blue::before {
  background: linear-gradient(180deg, #003f6b, #0e74b2);
}

.workflow-card--teal::before {
  background: linear-gradient(180deg, #0d9488, #23b5a8);
}

.workflow-card--green::before {
  background: linear-gradient(180deg, #4e9e1c, #8fd15e);
}

.workflow-card--orange::before {
  background: linear-gradient(180deg, #df6c16, #ff9a45);
}

.workflow-bridge {
  display: grid;
  place-items: center;
}

.workflow-bridge__line {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(0, 77, 130, 0.5), rgba(245, 127, 41, 0.7));
}

.workflow-bridge__arrow {
  width: 0;
  height: 0;
  margin-top: -12px;
  justify-self: end;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 13px solid var(--ahri-orange);
}

.workflow-stack {
  display: grid;
  gap: 0.55rem;
}

.workflow-mini {
  padding: 0.7rem 0.8rem;
  color: #173146;
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.35;
  box-shadow: 0 14px 24px -24px rgba(0, 54, 91, 0.48);
}

.workflow-mini--amber {
  background: linear-gradient(135deg, rgba(255, 191, 71, 0.3), rgba(255, 245, 221, 0.92));
  border-left: 5px solid #d98700;
}

.workflow-mini--coral {
  background: linear-gradient(135deg, rgba(255, 127, 80, 0.28), rgba(255, 242, 236, 0.96));
  border-left: 5px solid #e1672f;
}

.workflow-mini--purple {
  background: linear-gradient(135deg, rgba(104, 92, 232, 0.2), rgba(243, 241, 255, 0.97));
  border-left: 5px solid #6257d5;
}

.workflow-mini--navy {
  background: linear-gradient(135deg, rgba(0, 77, 130, 0.18), rgba(240, 248, 255, 0.97));
  border-left: 5px solid #004d82;
}

.workflow-mini--mint {
  background: linear-gradient(135deg, rgba(121, 193, 73, 0.22), rgba(245, 255, 243, 0.97));
  border-left: 5px solid #64ad2c;
}

.workflow-output-group::before {
  background: linear-gradient(180deg, #004d82, #f57f29);
}

.workflow-output-group--light {
  background: rgba(255, 255, 255, 0.82);
}

.aim-dag {
  margin-top: 0.85rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(0, 77, 130, 0.24);
}

.aim-dag p {
  margin: 0;
}

.aim-dag figure {
  margin: 0 auto;
}

.aim-dag a {
  display: block;
}

.aim-dag img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 1000px;
  margin: 0 auto;
  cursor: zoom-in;
}

.aim-dag figcaption {
  margin-top: 0.45rem;
  text-align: center;
}

table {
  background: #ffffff;
  border: 0;
}

main.content table td,
main.content table th {
  overflow-wrap: anywhere;
}

thead th {
  background: var(--ahri-blue-light);
  color: var(--ahri-blue-deep);
}

/* Presentations page */
.presentation-list {
  display: grid;
  gap: 1.35rem;
  margin: 0.4rem 0 0;
}

.presentation-item {
  display: grid;
  grid-template-columns: minmax(300px, 38%) minmax(0, 1fr);
  gap: 1.2rem;
  align-items: start;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0 0 1.35rem;
  box-shadow: none;
  border-bottom: 1px solid rgba(245, 127, 41, 0.34);
}

.presentation-item:last-child {
  border-bottom: 0;
  padding-bottom: 0.2rem;
}

.presentation-item__preview {
  display: grid;
  gap: 0.45rem;
  padding-top: 0.15rem;
}

.presentation-embed {
  width: 100%;
  height: 235px;
  border: 0;
  border-radius: 0;
  background: #ffffff;
  box-shadow: 0 16px 24px -22px rgba(0, 54, 91, 0.55);
}

.presentation-link {
  margin: 0;
  font-size: 0.9rem;
}

.presentation-link a {
  color: var(--ahri-blue);
  font-weight: 600;
}

.presentation-item__details h3 {
  position: relative;
  padding-left: 0.75rem;
  margin: 0 0 0.5rem;
  color: var(--ahri-blue-deep);
  font-size: 1.16rem;
}

.presentation-item__details h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 4px;
  height: 1em;
  background: var(--ahri-orange);
}

.presentation-item__details p {
  margin: 0 0 0.5rem;
  color: var(--ink-soft);
  line-height: 1.58;
}

.presentation-item__details ul {
  margin: 0.35rem 0 0 1rem;
  color: var(--ink-soft);
}

.presentation-item__details li {
  margin-bottom: 0.18rem;
}

.presentation-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 235px;
  border: 0;
  border-radius: 0;
  background: linear-gradient(135deg, #f6f9fc, #eef4fa);
  color: var(--ink-soft);
  font-weight: 600;
  box-shadow: none;
}

/* Dashboard */
.dashboard-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 0.9rem;
  margin: 0.5rem 0 1.2rem;
}

.dashboard-kpi-card {
  background: linear-gradient(145deg, #ffffff, #f2f8fd);
  border-top: 3px solid var(--ahri-blue);
  border-bottom: 1px solid rgba(245, 127, 41, 0.5);
  padding: 0.75rem 0.8rem 0.7rem;
}

.dashboard-kpi-label {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
}

.dashboard-kpi-value {
  margin: 0.3rem 0 0.15rem;
  color: var(--ahri-blue-deep);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.1;
}

.dashboard-kpi-note {
  margin: 0;
  color: #5a6b7d;
  font-size: 0.78rem;
  line-height: 1.3;
}

/* Dashboard valuebox typography tuning */
body.quarto-dashboard .card.valuebox .card-body {
  padding: 0.6rem 0.8rem;
  display: flex;
  align-items: center;
}

/* Force icon-left valuebox layout */
body.quarto-dashboard .card.valuebox.showcase-left-center .value-box-grid,
body.quarto-dashboard .card.valuebox .value-box-grid {
  display: grid !important;
  grid-template-columns: auto 1fr !important;
  grid-template-rows: 1fr !important;
  grid-template-areas: "left right" !important;
  column-gap: 0.6rem;
  align-items: center !important;
  width: 100%;
  height: 100%;
}

body.quarto-dashboard .card.valuebox.showcase-left-center .value-box-showcase,
body.quarto-dashboard .card.valuebox .value-box-showcase {
  grid-area: left !important;
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
}

body.quarto-dashboard .card.valuebox.showcase-left-center .value-box-area,
body.quarto-dashboard .card.valuebox .value-box-area {
  grid-area: right !important;
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

body.quarto-dashboard .card.valuebox .value-box-title {
  margin: 0 0 0.12rem;
  font-size: 0.78rem;
  line-height: 1.15;
  letter-spacing: 0.02em;
}

body.quarto-dashboard .card.valuebox .value-box-value {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.05;
  font-weight: 700;
}

body.quarto-dashboard .card.valuebox .value-box-showcase i {
  font-size: 1rem;
}

.crosstalk-input {
  margin-bottom: 0.8rem;
}

.dashboard-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.65rem;
  margin-bottom: 0.9rem;
}

.crosstalk-input label {
  color: var(--ahri-blue-deep);
  font-weight: 700;
  font-size: 0.84rem;
}

.dataTables_wrapper {
  font-size: 0.92rem;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
  border: 1px solid #cad9e7;
  border-radius: 0;
}

@media (max-width: 1150px) {
  .study-map__row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .study-map__connector {
    justify-content: flex-start;
    text-align: left;
    padding: 0.35rem 0.55rem;
    border-left: 3px solid rgba(245, 127, 41, 0.75);
    background: linear-gradient(90deg, rgba(0, 77, 130, 0.06), rgba(245, 127, 41, 0.09));
  }

  .study-map__connector::before,
  .study-map__connector::after {
    content: none;
  }

  .study-map__connector--from-ycc {
    border-left-color: rgba(47, 143, 92, 0.75);
  }

  .study-flow {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .study-flow__arrow {
    width: 1px;
    height: 1.3rem;
    justify-self: start;
    margin-left: 1rem;
  }

  .study-flow__arrow::after {
    left: -3px;
    right: auto;
    top: auto;
    bottom: -1px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 7px solid var(--ahri-orange);
    border-bottom: 0;
  }

  .study-flow__step {
    padding-bottom: 0.05rem;
  }

  .contribution-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .top-logo-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-hero {
    padding: 0.7rem 0 0.4rem;
  }

  .logo-panel {
    min-height: 96px;
  }

  .presentation-item {
    grid-template-columns: minmax(260px, 40%) minmax(0, 1fr);
  }

  .home-content-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .workflow-snapshot__grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .workflow-bridge {
    min-height: 26px;
  }

  .workflow-bridge__line {
    width: 6px;
    height: 100%;
    min-height: 22px;
    background: linear-gradient(180deg, rgba(0, 77, 130, 0.5), rgba(245, 127, 41, 0.7));
  }

  .workflow-bridge__arrow {
    margin-top: 0;
    margin-left: -10px;
    justify-self: center;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 13px solid var(--ahri-orange);
    border-bottom: 0;
  }

}

@media (max-width: 700px) {
  .contribution-grid,
  .top-logo-strip {
    grid-template-columns: 1fr;
  }

  #quarto-document-content > section.level2,
  .home-content-layout__right > section.level2 {
    padding: 1rem;
    border-left: 0;
    border-top: 2px solid #dce7f3;
  }

  .presentation-item {
    grid-template-columns: 1fr;
  }

  .presentation-embed,
  .presentation-placeholder {
    height: 220px;
  }

  .home-hero__title-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.7rem;
    align-items: start;
  }

  .home-hero__title-logo-wrap {
    justify-content: flex-start;
    width: 100%;
    max-width: 100%;
    padding: 0.25rem 0.6rem 0.45rem;
  }

  .home-hero__title-logo {
    width: min(100%, 300px);
    max-height: 88px;
  }

  .nav-footer .nav-footer-right {
    text-align: left;
    margin-top: 0.45rem;
  }

  .footer-logos {
    justify-content: flex-start;
  }

  .footer-logos p {
    gap: 0.55rem;
  }

  .metric-row {
    gap: 0.6rem;
    justify-content: flex-start;
  }

  .metric-card {
    width: min(46%, 160px);
  }

  .home-content-layout {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .workflow-snapshot {
    padding: 0.95rem 0.85rem 1rem;
  }

  .home-content-layout__left {
    border-right: 0;
    border-bottom: 2px solid rgba(245, 127, 41, 0.45);
    padding-right: 0;
    padding-bottom: 0.75rem;
  }

  .metric-column {
    position: static;
  }

  .home-content-layout__left .metric-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.6rem;
  }

  .home-content-layout__left .metric-column.metric-column--horizontal .metric-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.2rem;
  }

  .home-content-layout__left .metric-column.metric-column--horizontal .metric-card {
    width: 160px;
    max-width: 160px;
    flex: 0 0 160px;
  }
}

.module-summary-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

.module-summary-card,
.dashboard-note-card,
.dashboard-dag-card {
  background: linear-gradient(145deg, #ffffff, #f7fbff);
  border-left: 4px solid var(--ahri-blue);
  border-bottom: 1px solid rgba(245, 127, 41, 0.45);
  padding: 0.9rem 1rem;
}

.module-summary-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}

.module-summary-card__top h4,
.dashboard-note-card h4,
.dashboard-dag-card h4 {
  margin: 0;
  color: var(--ahri-blue-deep);
  font-size: 1rem;
}

.module-summary-card__purpose,
.module-summary-card__text,
.dashboard-note-card p,
.dashboard-dag-card p {
  margin: 0 0 0.55rem;
  color: var(--ink-soft);
  line-height: 1.4;
}

.module-summary-card__label {
  margin: 0.35rem 0 0.1rem;
  color: #5a6b7d;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 6.25rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.status-chip--ready {
  background: #d9f2e3;
  color: #11653b;
}

.status-chip--partial {
  background: #fff0cf;
  color: #9b5b00;
}

.status-chip--simulated {
  background: #e6ecff;
  color: #304c9b;
}

.status-chip--blocked {
  background: #f9d9d9;
  color: #8b1e1e;
}

.dashboard-empty-state,
.dashboard-visual-card,
.dashboard-metric-card,
.policy-control-panel {
  background: linear-gradient(145deg, #ffffff, #f7fbff);
  border-left: 4px solid var(--ahri-blue);
  border-bottom: 1px solid rgba(245, 127, 41, 0.4);
  padding: 1rem 1.1rem;
}

.dashboard-empty-state {
  color: var(--ink-soft);
  min-height: 120px;
  display: flex;
  align-items: center;
}

.dashboard-visual-card {
  padding: 0.8rem;
}

.dashboard-dag-image {
  width: 100%;
  height: auto;
  display: block;
}

.dashboard-selector-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.dashboard-selector-row label {
  font-weight: 700;
  color: var(--ahri-blue-deep);
}

.dashboard-select-control {
  min-width: 320px;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(12, 74, 120, 0.2);
  border-radius: 0.5rem;
  background: #fff;
}

.dashboard-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.dashboard-metric-card {
  border-left-color: #f57f29;
}

.dashboard-metric-card__label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #5a6b7d;
  margin-bottom: 0.4rem;
}

.dashboard-metric-card__value {
  display: block;
  font-size: 1.45rem;
  line-height: 1.1;
  font-weight: 800;
  color: var(--ahri-blue-deep);
  margin-bottom: 0.2rem;
}

.dashboard-metric-card__sub {
  display: block;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.policy-control-panel__title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ahri-blue-deep);
  margin-bottom: 0.35rem;
}

.policy-control-panel__sub {
  color: var(--ink-soft);
  margin-bottom: 0.8rem;
}

.policy-slider {
  width: 100%;
  margin: 0.55rem 0 0.35rem;
}

.policy-slider-readout {
  font-weight: 700;
  color: #5a6b7d;
  margin-bottom: 0.85rem;
}

.policy-bar-stack {
  display: grid;
  gap: 0.7rem;
}

.policy-bar-row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 0.8rem;
  align-items: center;
}

.policy-bar-row span {
  font-weight: 700;
  color: var(--ahri-blue-deep);
}

.policy-bar {
  height: 14px;
  background: #e8edf2;
  border-radius: 999px;
  overflow: hidden;
}

.policy-bar__fill {
  height: 100%;
  border-radius: 999px;
}

.policy-bar__fill--baseline {
  background: linear-gradient(90deg, #0c4a78, #2b7bbb);
}

.policy-bar__fill--simulated {
  background: linear-gradient(90deg, #f57f29, #f2b134);
}

.mediation-forest-panel {
  width: 100%;
}

@media (max-width: 992px) {
  .dashboard-metric-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-select-control {
    min-width: 100%;
  }

  .policy-bar-row {
    grid-template-columns: 1fr;
  }
}

.dashboard-mini-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--ink-soft);
}

.dashboard-mini-list li {
  margin-bottom: 0.35rem;
}

.dashboard-dag-image {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 0.5rem;
  border: 1px solid #d9e4ef;
  background: #ffffff;
}

.dashboard-muted {
  color: #5a6b7d;
  font-size: 0.9rem;
}

body.quarto-dashboard pre {
  border: 1px solid #d9e4ef;
  background: #f8fbfe;
  padding: 0.7rem 0.85rem;
}

.quarto-listing-container-grid {
  margin-top: 1.5rem;
}

.quarto-listing-container-grid .quarto-grid-item.card {
  border: 1px solid rgba(0, 77, 130, 0.12);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(234, 242, 248, 0.72) 0%, rgba(255, 255, 255, 0.98) 100%);
  box-shadow: 0 18px 38px rgba(8, 41, 71, 0.08);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.quarto-listing-container-grid .quarto-grid-item.card:hover,
.quarto-listing-container-grid .quarto-grid-item.card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(245, 127, 41, 0.55);
  box-shadow: 0 22px 42px rgba(8, 41, 71, 0.14);
}

.quarto-listing-container-grid .card-body {
  padding: 1.35rem 1.35rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.quarto-listing-container-grid .listing-title,
.quarto-listing-container-grid .card-title {
  margin: 0;
  font-size: 1.16rem;
  line-height: 1.35;
  color: var(--ahri-blue-deep);
}

.quarto-listing-container-grid .listing-title a,
.quarto-listing-container-grid .card-title a {
  color: inherit;
  text-decoration: none;
}

.quarto-listing-container-grid .listing-title a:hover,
.quarto-listing-container-grid .card-title a:hover {
  color: var(--ahri-orange);
}

.quarto-listing-container-grid .listing-description,
.quarto-listing-container-grid .card-text {
  color: var(--ink-soft);
  font-size: 0.97rem;
  line-height: 1.65;
}

.quarto-listing-container-grid .listing-description p,
.quarto-listing-container-grid .card-text p {
  margin-bottom: 0;
}

.quarto-listing-container-grid .card-attribution,
.quarto-listing-container-grid .metadata {
  margin-top: auto;
  padding-top: 0.4rem;
  border-top: 1px solid rgba(0, 77, 130, 0.08);
}

.quarto-listing-container-default .quarto-post {
  gap: 1.1rem;
  align-items: flex-start;
}

.quarto-listing-container-default .body {
  min-width: 0;
}

.quarto-listing-container-default .listing-title {
  margin-bottom: 0.4rem;
  font-size: 1.08rem;
  line-height: 1.35;
}

.quarto-listing-container-default .listing-title a {
  color: var(--ahri-blue-deep);
  text-decoration: none;
}

.quarto-listing-container-default .listing-title a:hover {
  color: var(--ahri-orange);
}

.quarto-listing-container-default .listing-description {
  font-size: 0.96rem;
  line-height: 1.62;
}

.quarto-listing-container-default .metadata {
  flex: 0 0 auto;
  width: auto;
  min-width: 6.75rem;
  max-width: 7.5rem;
  text-align: right;
}

.quarto-listing-container-default .listing-date {
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--ink-soft);
}

@media (max-width: 900px) {
  .quarto-listing-container-default .quarto-post {
    display: block;
  }

  .quarto-listing-container-default .metadata {
    min-width: 0;
    max-width: none;
    margin-top: 0.65rem;
    text-align: left;
  }
}

.overview-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem;
  margin-top: 1.6rem;
}

.overview-card {
  --overview-accent: #13877b;
  --overview-accent-soft: rgba(19, 135, 123, 0.12);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  min-height: 100%;
  padding: 1.6rem 1.45rem 1.45rem;
  border: 1px solid rgba(21, 64, 104, 0.16);
  border-top: 5px solid var(--overview-accent);
  border-radius: 0.5rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 249, 252, 0.98) 100%);
  box-shadow: 0 10px 26px rgba(12, 35, 64, 0.08);
}

.overview-card--teal {
  --overview-accent: #14867d;
  --overview-accent-soft: rgba(20, 134, 125, 0.14);
}

.overview-card--blue {
  --overview-accent: #2d5b9c;
  --overview-accent-soft: rgba(45, 91, 156, 0.14);
}

.overview-card--orange {
  --overview-accent: #de7f28;
  --overview-accent-soft: rgba(222, 127, 40, 0.14);
}

.overview-card--berry {
  --overview-accent: #b85274;
  --overview-accent-soft: rgba(184, 82, 116, 0.14);
}

.overview-card--mint {
  --overview-accent: #3d8f62;
  --overview-accent-soft: rgba(61, 143, 98, 0.14);
}

.overview-card__header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.overview-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.85rem;
  color: var(--overview-accent);
  background: var(--overview-accent-soft);
  font-size: 1.35rem;
  line-height: 1;
}

.overview-card__title {
  margin: 0;
  color: #324d7b;
  font-size: 1.15rem;
  line-height: 1.25;
}

.overview-card__description {
  margin: 0;
  color: #314256;
  font-size: 1rem;
  line-height: 1.65;
}

.overview-card__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--overview-accent);
  border-radius: 0.45rem;
  color: var(--overview-accent);
  background: #ffffff;
  font-size: 0.96rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.overview-card__action:hover,
.overview-card__action:focus {
  color: #ffffff;
  background: var(--overview-accent);
  text-decoration: none;
  transform: translateY(-1px);
}

@media (max-width: 991px) {
  .overview-card-grid {
    grid-template-columns: 1fr;
  }
}

.overview-card > p:last-of-type {
  margin: 0;
}

.deliverable-status-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
  margin: 0 0 0.5rem;
}

.deliverable-status-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 8.5rem;
  margin: 0;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid currentColor;
  box-shadow: none;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.deliverable-status-box p {
  margin: 0;
  text-align: center;
}

header#title-block-header + .deliverable-status-row {
  margin-top: 0;
}

header#title-block-header + .deliverable-status-row + section.level2 h2 {
  margin-top: 0;
}

.deliverable-status-box--not-started {
  color: #5e6772;
  background: #edf1f5;
}

.deliverable-status-box--ongoing {
  color: #0f6b61;
  background: rgba(19, 135, 123, 0.16);
}

.deliverable-status-box--on-pause {
  color: #8a5a12;
  background: rgba(245, 166, 35, 0.18);
}

.deliverable-status-box--completed {
  color: #0e4f8a;
  background: rgba(49, 130, 206, 0.16);
}

.deliverable-top-actions {
  display: flex;
  align-items: center;
  margin: 0;
}

.deliverable-inline-note {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.35;
}

.deliverable-report-panel {
  margin: 0.8rem 0 1.35rem;
  padding: 0;
  border: 1px solid rgba(0, 77, 130, 0.12);
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(243, 247, 251, 0.98) 100%);
  box-shadow: 0 16px 32px rgba(8, 41, 71, 0.08);
  overflow: hidden;
}

.deliverable-report-panel summary {
  list-style: none;
  cursor: pointer;
  padding: 0.9rem 1.15rem;
  font-weight: 700;
  color: var(--ahri-blue-deep);
  background: rgba(0, 77, 130, 0.04);
  border-bottom: 1px solid rgba(0, 77, 130, 0.08);
}

.deliverable-report-panel summary::-webkit-details-marker {
  display: none;
}

.deliverable-report-panel[open] summary {
  border-bottom-color: rgba(0, 77, 130, 0.1);
}

.deliverable-report-panel > *:not(summary) {
  margin-left: 1.15rem;
  margin-right: 1.15rem;
}

.deliverable-report-panel > p {
  margin-top: 1rem;
  margin-bottom: 1rem;
  color: var(--ink-soft);
  line-height: 1.7;
}

.deliverable-report-panel h3,
.deliverable-report-panel h4 {
  margin-top: 1.15rem;
  margin-bottom: 0.55rem;
}

.deliverable-report-figure {
  margin: 1rem 0 0.85rem;
}

.deliverable-report-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(0, 77, 130, 0.1);
  border-radius: 0.85rem;
  background: #ffffff;
}

.deliverable-report-figure figcaption {
  margin-top: 0.5rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.5;
}

.deliverable-report-panel .quarto-layout-panel {
  margin: 1rem 0 0.3rem;
}

.deliverable-report-panel .quarto-layout-panel .quarto-figure {
  margin-bottom: 0.85rem;
}

.deliverable-report-panel .quarto-layout-panel .figure {
  margin-bottom: 0;
}

.deliverable-report-panel .quarto-layout-panel figcaption {
  margin-top: 0.45rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.45;
}

.deliverable-manual-caption {
  margin: 0.2rem 0 1rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.5;
}

.deliverable-manual-caption strong {
  color: var(--ahri-blue-deep);
}

.deliverable-method-figure img {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  max-width: 56rem;
  margin: 0 auto;
}

.deliverable-report-table-wrap {
  margin: 1rem 0 0.9rem;
  overflow-x: auto;
  border: 1px solid rgba(0, 77, 130, 0.08);
  border-radius: 0.85rem;
  background: #ffffff;
}

.deliverable-report-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 44rem;
}

.deliverable-report-table caption {
  caption-side: top;
  padding: 0.85rem 1rem 0.4rem;
  text-align: left;
  color: var(--ahri-blue-deep);
  font-size: 0.94rem;
}

.deliverable-report-table th,
.deliverable-report-table td {
  padding: 0.72rem 0.9rem;
  border-top: 1px solid rgba(0, 77, 130, 0.08);
  vertical-align: top;
  text-align: left;
  line-height: 1.5;
  font-size: 0.93rem;
}

.deliverable-report-table thead th {
  border-top: 0;
  background: rgba(0, 77, 130, 0.04);
  color: var(--ahri-blue-deep);
  font-weight: 700;
}

.deliverable-downloads {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin: 1rem 1.15rem 0.25rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.deliverable-downloads--inline {
  margin: 0;
  gap: 0.45rem;
}

.deliverable-downloads--inline p {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
}

.deliverable-downloads span {
  font-weight: 700;
  color: var(--ahri-blue-deep);
}

.deliverable-downloads a {
  display: inline-block;
  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(0, 77, 130, 0.18);
  border-radius: 999px;
  color: var(--ahri-blue-deep);
  font-weight: 700;
  text-decoration: none;
  background: #ffffff;
  font-size: 0.88rem;
  line-height: 1.1;
}

.deliverable-downloads a:hover,
.deliverable-downloads a:focus {
  color: #ffffff;
  background: var(--ahri-blue-deep);
  text-decoration: none;
}

.deliverable-embed-panel {
  margin: 1rem 1.15rem 0.8rem;
  border: 1px solid rgba(0, 77, 130, 0.08);
  border-radius: 0.9rem;
  background: rgba(248, 251, 254, 0.92);
  overflow: hidden;
}

.deliverable-embed-panel summary {
  list-style: none;
  cursor: pointer;
  padding: 0.8rem 1rem;
  font-weight: 700;
  color: var(--ahri-blue-deep);
  background: rgba(0, 77, 130, 0.03);
  border-bottom: 1px solid rgba(0, 77, 130, 0.08);
}

.deliverable-embed-panel summary::-webkit-details-marker {
  display: none;
}

.deliverable-slide-embed {
  width: calc(100% - 2rem);
  height: 23rem;
  margin: 1rem;
  border: 0;
  border-radius: 0.9rem;
  box-shadow: inset 0 0 0 1px rgba(0, 77, 130, 0.08), 0 10px 22px rgba(8, 41, 71, 0.08);
  background: #f3f7fb;
}

.deliverable-slide-link {
  margin: -0.15rem 1rem 1rem;
  font-size: 0.95rem;
}

.deliverable-slide-link a {
  display: inline-block;
  padding: 0.55rem 0.85rem;
  border: 1px solid rgba(0, 77, 130, 0.18);
  border-radius: 999px;
  color: var(--ahri-blue-deep);
  font-weight: 700;
  text-decoration: none;
  background: #ffffff;
}

.deliverable-slide-link a:hover,
.deliverable-slide-link a:focus {
  color: #ffffff;
  background: var(--ahri-blue-deep);
  text-decoration: none;
}

@media (max-width: 991px) {
  .deliverable-status-row {
    align-items: stretch;
  }

  .deliverable-top-actions {
    display: flex;
    margin: 0;
  }

  .deliverable-downloads--inline {
    width: 100%;
    gap: 0.5rem;
  }

  .deliverable-downloads--inline p {
    width: 100%;
  }

  .deliverable-slide-embed {
    width: calc(100% - 1.5rem);
    height: 19rem;
    margin-left: 0.75rem;
    margin-right: 0.75rem;
  }

  .deliverable-report-table {
    min-width: 0;
  }
}
