.quarto-light {
  background-color: #fffdf9;
}

#quarto-sidebar .sidebar-header {
  background: #bad9f3;
  border-bottom: 0.25rem solid #4386c1;
  border-radius: 0.4rem;
  padding: 1rem !important;
}

#quarto-sidebar .sidebar-title a {
  color: #18354f;
}

#quarto-sidebar .sidebar-title a:hover,
#quarto-sidebar .sidebar-title a:focus-visible {
  color: #18354f;
  text-decoration: underline;
}

#quarto-header .quarto-secondary-nav {
  background: #bad9f3;
  border-bottom: 0.2rem solid #4386c1;
}

#quarto-header .quarto-secondary-nav a,
#quarto-header .quarto-secondary-nav button {
  color: #18354f;
}

#quarto-header .quarto-secondary-nav a:focus-visible,
#quarto-header .quarto-secondary-nav button:focus-visible {
  outline: 2px solid #18354f;
  outline-offset: 2px;
}

main a:not(.anchorjs-link),
#quarto-sidebar .sidebar-link.active,
#TOC .nav-link.active {
  color: #245b90;
}

.book-home #title-block-header {
  background: #bad9f3;
  border-bottom: 0.3rem solid #4386c1;
  border-radius: 0.5rem;
  color: #18354f;
  padding: clamp(1.25rem, 3vw, 2.5rem);
}

.book-home #title-block-header .title,
.book-home #title-block-header .subtitle,
.book-home #title-block-header .quarto-title-meta-heading,
.book-home #title-block-header .quarto-title-meta-contents {
  color: #18354f;
}

.pm-box,
.bridge,
.todo,
.example,
.note {
  border-left: 0.25rem solid #5b7c99;
  background: #f5f7fa;
  padding: 0.75rem 1rem;
  margin: 1rem 0;
}

.todo {
  border-left-color: #d97706;
  background: #fff7ed;
}

.book-map {
  margin: 1.5rem 0;
}

.book-map-part {
  --map-accent: #28668e;
  background: #f1f5f8;
  border-radius: 0.6rem;
  margin: 0 0 2rem;
  padding: 1rem;
  position: relative;
}

.book-map-part > p {
  margin: 0 0 0.75rem;
}

.book-map-part > ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: 0.7rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.book-map-part > ul > li {
  margin: 0;
}

.book-map-part > ul > li > a {
  align-items: center;
  background: #fff;
  border: 2px solid var(--map-accent);
  border-radius: 0.4rem;
  color: #17364b;
  display: flex;
  height: 100%;
  min-height: 5rem;
  padding: 0.75rem;
  text-decoration: none;
}

.book-map-part > ul > li > a:hover,
.book-map-part > ul > li > a:focus-visible {
  background: #e5eef5;
  text-decoration: underline;
}

.book-map-part > ul > li > a:focus-visible {
  outline: 3px solid #142b3c;
  outline-offset: 3px;
}

.book-map-foundations::after,
.book-map-workflow:not(.book-map-last-workflow)::after {
  color: #425466;
  content: "↓";
  font-size: 1.5rem;
  left: 50%;
  line-height: 1;
  position: absolute;
  top: calc(100% + 0.2rem);
  transform: translateX(-50%);
}

.book-map-applications {
  --map-accent: #a25a16;
  background: #fbf3eb;
}

.book-map-capstone {
  --map-accent: #70538d;
  background: #f5f1f8;
}

.evaluation-platform {
  overflow-x: auto;
  padding: 0.3rem;
}

.evaluation-platform:focus-visible {
  outline: 3px solid #142b3c;
  outline-offset: 3px;
}

.evaluation-platform-content {
  min-width: 80rem;
}

.evaluation-platform-layers {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.evaluation-platform-layer {
  --platform-accent: #5075a5;
  --platform-background: #dbe8f9;
  --platform-card: #abc5e6;
  background: var(--platform-background);
  border: 1px solid var(--platform-accent);
  border-radius: 0.5rem;
  padding: 0.8rem;
  position: relative;
  text-align: center;
}

.evaluation-platform-layer:not(:last-child)::after {
  border-top: 2px solid #171d20;
  content: "";
  left: 100%;
  position: absolute;
  top: 50%;
  width: 2.5rem;
}

.evaluation-platform-layer:not(:first-child)::before {
  border-bottom: 0.4rem solid transparent;
  border-left: 0.6rem solid #171d20;
  border-top: 0.4rem solid transparent;
  content: "";
  left: -0.75rem;
  position: absolute;
  top: calc(50% - 0.4rem);
}

.evaluation-platform-layer > p:first-child {
  color: #101820;
  min-height: 3.2rem;
}

.evaluation-platform-layer > p:last-child {
  color: #101820;
  font-size: 0.9rem;
  margin-bottom: 0;
}

.evaluation-platform-layer > ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.evaluation-platform-layer > ul > li {
  background: var(--platform-card);
  border: 1px solid var(--platform-accent);
  border-radius: 0.6rem;
  color: #101820;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 0.6rem;
  min-height: 4.5rem;
  padding: 0.65rem;
  position: relative;
  text-align: center;
}

.evaluation-platform-execution > ul > li:nth-child(2) {
  margin-bottom: 1.6rem;
}

.evaluation-platform-execution > ul > li:nth-child(2)::after {
  color: #171d20;
  content: "↕";
  font-size: 1.3rem;
  left: 50%;
  line-height: 1;
  position: absolute;
  top: calc(100% + 0.1rem);
  transform: translateX(-50%);
}

.evaluation-platform-decisions > ul > li:nth-child(2) {
  margin-bottom: 1.6rem;
}

.evaluation-platform-decisions > ul > li:nth-child(2)::after {
  color: #171d20;
  content: "↑";
  font-size: 1.3rem;
  left: 50%;
  line-height: 1;
  position: absolute;
  top: calc(100% + 0.1rem);
  transform: translateX(-50%);
}

.evaluation-platform-execution {
  --platform-accent: #816495;
  --platform-background: #dfd6e7;
  --platform-card: #ded3e4;
}

.evaluation-platform-scoring {
  --platform-accent: #408486;
  --platform-background: #d5eaeb;
  --platform-card: #a0d0d4;
}

.evaluation-platform-analysis {
  --platform-accent: #ae7f30;
  --platform-background: #fdf0cd;
  --platform-card: #f7dca5;
}

.evaluation-platform-decisions {
  --platform-accent: #607d7c;
  --platform-background: #ccd6d5;
  --platform-card: #95aba9;
}

.evaluation-platform-return {
  border-bottom: 2px solid #171d20;
  border-left: 2px solid #171d20;
  border-right: 2px solid #171d20;
  height: 1.5rem;
  margin: 0 10%;
  position: relative;
}

.evaluation-platform-return::before {
  border-bottom: 0.6rem solid #171d20;
  border-left: 0.4rem solid transparent;
  border-right: 0.4rem solid transparent;
  content: "";
  left: -0.46rem;
  position: absolute;
  top: -0.1rem;
}

.evaluation-platform-feedback {
  background: #f3f5f5;
  border: 1px solid #607d7c;
  border-left: 0.35rem solid #607d7c;
  border-radius: 0.35rem;
  color: #101820;
  margin-top: 0.5rem;
  padding: 0.7rem 0.9rem;
  text-align: center;
}

.evaluation-platform-feedback > p {
  margin: 0;
}

@media print {
  .book-map-part {
    break-inside: avoid;
  }
}

.cold-start-map {
  overflow-x: auto;
  padding: 0.3rem;
}

.cold-start-map:focus-visible {
  outline: 3px solid #142b3c;
  outline-offset: 3px;
}

.cold-start-map > ol {
  counter-reset: cold-start-step;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(5rem, auto));
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  min-width: 39rem;
  padding: 0;
}

.cold-start-map > ol::before {
  align-self: center;
  color: #245b90;
  content: "Review and improve";
  font-weight: 600;
  grid-area: 2 / 2;
  text-align: center;
}

.cold-start-map > ol > li {
  align-items: center;
  background: #f1f5f8;
  border: 2px solid #4386c1;
  border-radius: 0.5rem;
  color: #17364b;
  counter-increment: cold-start-step;
  display: flex;
  gap: 0.6rem;
  margin: 0;
  padding: 0.75rem;
  position: relative;
}

.cold-start-map > ol > li::before {
  color: #245b90;
  content: counter(cold-start-step);
  font-weight: 700;
}

.cold-start-map > ol > li:nth-child(1) { grid-area: 1 / 1; }
.cold-start-map > ol > li:nth-child(2) { grid-area: 1 / 2; }
.cold-start-map > ol > li:nth-child(3) { grid-area: 1 / 3; }
.cold-start-map > ol > li:nth-child(4) { grid-area: 2 / 3; }
.cold-start-map > ol > li:nth-child(5) { grid-area: 3 / 3; }
.cold-start-map > ol > li:nth-child(6) { grid-area: 3 / 2; }
.cold-start-map > ol > li:nth-child(7) { grid-area: 3 / 1; }
.cold-start-map > ol > li:nth-child(8) { grid-area: 2 / 1; }

.cold-start-map > ol > li::after {
  color: #245b90;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
  position: absolute;
}

.cold-start-map > ol > li:nth-child(-n+2)::after {
  content: "→";
  left: calc(100% + 0.35rem);
}

.cold-start-map > ol > li:nth-child(3)::after,
.cold-start-map > ol > li:nth-child(4)::after {
  content: "↓";
  left: 50%;
  top: calc(100% + 0.2rem);
  transform: translateX(-50%);
}

.cold-start-map > ol > li:nth-child(5)::after,
.cold-start-map > ol > li:nth-child(6)::after {
  content: "←";
  right: calc(100% + 0.35rem);
}

.cold-start-map > ol > li:nth-child(7)::after,
.cold-start-map > ol > li:nth-child(8)::after {
  bottom: calc(100% + 0.2rem);
  content: "↑";
  left: 50%;
  transform: translateX(-50%);
}

@media print {
  .cold-start-map > ol {
    min-width: 0;
  }
}

.chapter-relationship-map {
  overflow-x: auto;
}

.chapter-relationship-map .cell-output-display {
  overflow: visible;
}

.chapter-relationship-map svg {
  min-width: 850px;
}

.chapter-relationship-map:focus-visible {
  outline: 3px solid #142b3c;
  outline-offset: 3px;
}

@media print {
  .chapter-relationship-map svg {
    min-width: 0;
  }
}
