.manual-body {
  background: #f6f7fb;
}

.manual-body .site-header {
  background: rgba(255, 255, 255, .9);
}

.manual-hero {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 86px 0 64px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
  gap: 56px;
  align-items: center;
}

.manual-hero h1 {
  margin-bottom: 20px;
  font-size: clamp(48px, 7vw, 86px);
}

.manual-hero > div > p:not(.eyebrow) {
  max-width: 760px;
  color: #46556c;
  font-size: 20px;
}

.manual-principles {
  padding: 30px;
  border: 1px solid rgba(49, 93, 255, .16);
  border-radius: 28px;
  background: linear-gradient(145deg, #fff, #eef3ff);
  box-shadow: 0 24px 64px rgba(38, 52, 78, .1);
}

.manual-principles strong {
  display: block;
  margin-bottom: 18px;
  color: #183e9e;
  font-size: 15px;
}

.manual-principles p {
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid rgba(32, 42, 62, .1);
  font-weight: 800;
}

.manual-principles p:last-child {
  border-bottom: 0;
}

.manual-index-section,
.manual-topic-section,
.manual-tool-callout,
.manual-notice {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.manual-topic-section {
  padding: 0 0 32px;
}

.manual-topic-card {
  display: block;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid rgba(49, 93, 255, .16);
  border-radius: 28px;
  background: linear-gradient(145deg, #fff, #edf3ff);
  box-shadow: 0 18px 54px rgba(38, 52, 78, .08);
  transition: transform .2s ease, box-shadow .2s ease;
}

.manual-topic-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 64px rgba(38, 52, 78, .12);
}

.manual-topic-card span {
  color: #315dff;
  font-size: 13px;
  font-weight: 900;
}

.manual-topic-card h2 {
  margin: 12px 0 12px;
  font-size: clamp(28px, 4vw, 42px);
}

.manual-topic-card p {
  max-width: 850px;
  color: #526078;
  font-size: 17px;
}

.manual-topic-card strong {
  color: #183e9e;
}

.manual-index-section {
  padding: 46px 0 80px;
}

.part-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.part-card {
  padding: 26px;
  border: 1px solid rgba(32, 42, 62, .1);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(38, 52, 78, .06);
}

.part-card > p {
  margin-bottom: 18px;
  color: #183e9e;
  font-size: 14px;
  font-weight: 900;
}

.part-card a {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 10px;
  align-items: baseline;
  padding: 12px 0;
  border-top: 1px solid rgba(32, 42, 62, .08);
}

.part-card a span {
  color: #6e7a8d;
  font-size: 13px;
  font-weight: 900;
}

.part-card a:hover strong {
  color: #315dff;
}

.manual-tool-callout {
  margin-bottom: 32px;
  padding: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-radius: 28px;
  color: #fff;
  background: linear-gradient(135deg, #172033, #183e9e);
}

.manual-tool-callout h2 {
  margin-bottom: 8px;
  font-size: 30px;
}

.manual-tool-callout p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, .76);
}

.manual-tool-callout .eyebrow {
  color: #9db4ff;
}

.manual-tool-callout .btn {
  flex: 0 0 auto;
  background: #fff;
  color: #183e9e;
}

.manual-notice {
  margin-bottom: 86px;
  padding: 28px 32px;
  border-left: 5px solid #ffb36c;
  border-radius: 18px;
  background: #fff8ed;
}

.manual-notice h2 {
  margin-bottom: 8px;
  font-size: 20px;
}

.manual-notice p {
  margin-bottom: 0;
  color: #5f6675;
}

.manual-layout {
  width: min(1400px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 300px minmax(0, 880px);
  justify-content: center;
  gap: 46px;
  padding: 36px 0 86px;
}

.manual-sidebar {
  position: sticky;
  top: 92px;
  align-self: start;
  max-height: calc(100vh - 118px);
  overflow: auto;
  padding: 22px;
  border: 1px solid rgba(32, 42, 62, .1);
  border-radius: 22px;
  background: #fff;
}

.manual-home-link {
  display: block;
  padding-bottom: 16px;
  color: #183e9e;
  font-size: 19px;
  font-weight: 900;
}

.manual-topic-link {
  display: block;
  margin-bottom: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(49, 93, 255, .14);
  border-radius: 12px;
  color: #183e9e;
  font-size: 13px;
  font-weight: 900;
  background: #f2f6ff;
}

.manual-topic-link:hover,
.manual-topic-link.is-current {
  color: #fff;
  background: #315dff;
}

.manual-topic-article h1 + p,
.manual-topic-article h1 + p + p,
.manual-topic-article h1 + p + p + p,
.manual-topic-article h1 + p + p + p + p {
  margin-bottom: 6px;
  color: #6d788a;
  font-size: 14px;
}

.manual-sidebar section {
  margin-top: 18px;
}

.manual-sidebar h3 {
  margin-bottom: 8px;
  color: #6d788a;
  font-size: 12px;
}

.manual-sidebar section a {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 8px;
  padding: 7px 0;
  color: #445167;
  font-size: 13px;
  line-height: 1.35;
}

.manual-sidebar section a span {
  color: #8993a3;
  font-weight: 900;
}

.manual-sidebar section a:hover {
  color: #315dff;
}

.manual-tools-link {
  display: block;
  margin-top: 22px;
  padding: 12px 14px;
  border-radius: 12px;
  color: #fff;
  text-align: center;
  font-size: 13px;
  font-weight: 900;
  background: #315dff;
}

.manual-main {
  min-width: 0;
}

.manual-breadcrumb {
  display: flex;
  gap: 10px;
  margin: 8px 0 18px;
  color: #7b8597;
  font-size: 13px;
}

.manual-breadcrumb a {
  color: #315dff;
  font-weight: 800;
}

.manual-article {
  padding: clamp(28px, 5vw, 64px);
  border: 1px solid rgba(32, 42, 62, .1);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(38, 52, 78, .06);
}

.manual-article h1 {
  margin-bottom: 28px;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.16;
}

.manual-article h2 {
  margin: 54px 0 20px;
  padding-top: 8px;
  font-size: 30px;
  line-height: 1.3;
}

.manual-article h3 {
  margin: 36px 0 14px;
  font-size: 22px;
}

.manual-article h4 {
  margin: 26px 0 12px;
  font-size: 18px;
}

.manual-article p,
.manual-article li {
  color: #38465b;
  font-size: 17px;
}

.manual-article strong {
  color: #172033;
}

.manual-article blockquote {
  margin: 24px 0;
  padding: 18px 22px;
  border-left: 4px solid #315dff;
  background: #f2f5ff;
}

.manual-article table {
  width: 100%;
  margin: 24px 0;
  border-collapse: collapse;
  font-size: 15px;
}

.manual-article th,
.manual-article td {
  padding: 12px 14px;
  border: 1px solid #dfe4ee;
  text-align: left;
  vertical-align: top;
}

.manual-article th {
  background: #eef3ff;
}

.manual-article h1 + p,
.manual-article h1 + p + p,
.manual-article h1 + p + p + p,
.manual-article h1 + p + p + p + p {
  color: #657186;
  font-size: 14px;
}

.manual-article h3:first-of-type + table {
  border: 2px solid rgba(49, 93, 255, .22);
}

.chapter-pagination {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 22px;
}

.chapter-pagination a {
  padding: 18px 20px;
  border: 1px solid rgba(32, 42, 62, .1);
  border-radius: 16px;
  background: #fff;
  font-weight: 800;
}

.chapter-pagination a:last-child {
  text-align: right;
}

.chapter-pagination a:hover {
  color: #315dff;
  border-color: rgba(49, 93, 255, .28);
}

.tool-library-hero,
.tool-library-section,
.tool-boundary,
.tool-page-main {
  width: min(1160px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}

.tool-library-hero {
  padding: 78px 0 54px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr);
  gap: 48px;
  align-items: center;
}

.tool-library-hero h1 {
  margin-bottom: 20px;
  font-size: clamp(46px, 7vw, 78px);
}

.tool-library-hero > div > p:not(.eyebrow) {
  max-width: 760px;
  color: #4a5870;
  font-size: 19px;
}

.tool-library-hero aside {
  padding: 26px;
  border-radius: 24px;
  color: #fff;
  background: #172033;
}

.tool-library-hero aside strong {
  display: block;
  margin-bottom: 12px;
}

.tool-library-hero aside p {
  margin: 0;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.tool-library-hero aside p:last-child {
  border-bottom: 0;
}

.tool-library-section {
  padding: 36px 0 66px;
}

.tool-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.tool-card {
  padding: 30px;
  border: 1px solid rgba(32, 42, 62, .1);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(38, 52, 78, .06);
  transition: transform .2s ease, box-shadow .2s ease;
}

.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 54px rgba(38, 52, 78, .12);
}

.tool-card h2 {
  margin: 14px 0 10px;
  font-size: 28px;
}

.tool-card p {
  color: #5b687c;
}

.tool-card > strong {
  color: #315dff;
  font-size: 14px;
}

.tool-type {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  color: #183e9e;
  font-size: 12px;
  font-weight: 900;
  background: #eef3ff;
}

.pending-tools {
  border-top: 1px solid rgba(32, 42, 62, .1);
}

.pending-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.pending-grid article {
  padding: 22px;
  border: 1px dashed rgba(32, 42, 62, .18);
  border-radius: 18px;
  background: rgba(255, 255, 255, .56);
}

.pending-grid span {
  display: block;
  margin-bottom: 8px;
  color: #8a95a7;
  font-size: 12px;
  font-weight: 900;
}

.pending-grid strong {
  display: block;
  margin-bottom: 8px;
}

.pending-grid p {
  margin-bottom: 0;
  color: #6b7586;
  font-size: 14px;
}

.tool-boundary {
  margin-bottom: 80px;
  padding: 30px;
  border-left: 5px solid #ffb36c;
  border-radius: 18px;
  background: #fff8ed;
}

.tool-boundary h2 {
  margin-bottom: 8px;
  font-size: 22px;
}

.tool-boundary p {
  margin-bottom: 0;
  color: #5f6675;
}

.tool-page-main {
  padding: 34px 0 86px;
}

.tool-breadcrumb {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  color: #7b8597;
  font-size: 13px;
}

.tool-breadcrumb a {
  color: #315dff;
  font-weight: 800;
}

.tool-page-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
  gap: 42px;
  align-items: center;
  margin-bottom: 24px;
  padding: 42px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(38, 52, 78, .06);
}

.tool-page-heading h1 {
  margin-bottom: 14px;
  font-size: clamp(38px, 5vw, 58px);
}

.tool-page-heading > div > p:not(.eyebrow) {
  margin-bottom: 0;
  color: #536177;
  font-size: 17px;
}

.tool-page-heading aside {
  padding: 22px;
  border-radius: 18px;
  background: #eef3ff;
}

.tool-page-heading aside strong {
  display: block;
  margin-bottom: 8px;
  color: #183e9e;
}

.tool-page-heading aside p {
  margin-bottom: 0;
  color: #536177;
  font-size: 14px;
}

.tool-actions {
  position: sticky;
  top: 78px;
  z-index: 5;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 16px;
  padding: 10px;
  border: 1px solid rgba(32, 42, 62, .08);
  border-radius: 16px;
  background: rgba(246, 247, 251, .92);
  backdrop-filter: blur(12px);
}

.tool-actions button {
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font: inherit;
  font-weight: 900;
  background: #315dff;
  cursor: pointer;
}

.tool-actions .secondary-action {
  color: #465267;
  background: #fff;
  border: 1px solid rgba(32, 42, 62, .14);
}

.tool-form {
  display: grid;
  gap: 20px;
}

.tool-form > section,
.tool-help {
  padding: 32px;
  border: 1px solid rgba(32, 42, 62, .1);
  border-radius: 22px;
  background: #fff;
}

.tool-form h2,
.tool-help h2 {
  margin-bottom: 20px;
  font-size: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.form-grid label,
.score-rows label {
  display: grid;
  gap: 7px;
  color: #35435a;
  font-size: 14px;
  font-weight: 800;
}

.form-grid .wide {
  grid-column: 1 / -1;
}

.form-grid input,
.form-grid textarea,
.form-grid select,
.score-rows select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cfd6e3;
  border-radius: 12px;
  color: #172033;
  background: #fbfcff;
  font: inherit;
  font-weight: 500;
}

.form-grid textarea {
  resize: vertical;
}

.form-grid input:focus,
.form-grid textarea:focus,
.form-grid select:focus,
.score-rows select:focus {
  border-color: #315dff;
  outline: 3px solid rgba(49, 93, 255, .12);
}

.score-rows {
  display: grid;
  gap: 12px;
}

.score-rows label {
  grid-template-columns: minmax(0, 1fr) minmax(210px, 290px);
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(32, 42, 62, .08);
}

.score-rows label:last-child {
  border-bottom: 0;
}

.score-rows span {
  display: grid;
  gap: 4px;
}

.score-rows small,
.field-note {
  color: #738094;
  font-weight: 500;
}

.result-panel,
.roi-results,
.scenario-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.result-panel > div,
.roi-results article,
.scenario-grid article {
  padding: 20px;
  border-radius: 16px;
  background: #eef3ff;
}

.result-panel span,
.roi-results span,
.scenario-grid span,
.scenario-grid small {
  display: block;
  color: #68758a;
  font-size: 13px;
}

.result-panel strong,
.roi-results strong,
.scenario-grid strong {
  display: block;
  margin-top: 6px;
  color: #183e9e;
  font-size: 24px;
}

.result-panel .wide-result {
  grid-column: 1 / -1;
}

.roi-results,
.scenario-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.scenario-grid article:nth-child(1) {
  background: #fff5ea;
}

.scenario-grid article:nth-child(3) {
  background: #eefaf6;
}

.tool-help {
  margin-top: 20px;
  border-left: 5px solid #66d5bd;
}

.tool-help a {
  display: inline-flex;
  margin-top: 12px;
  color: #315dff;
  font-weight: 900;
}

@media (max-width: 980px) {
  .manual-hero,
  .manual-layout,
  .tool-library-hero,
  .tool-page-heading {
    grid-template-columns: 1fr;
  }

  .manual-sidebar {
    position: static;
    max-height: none;
  }

  .manual-sidebar section {
    display: none;
  }
}

@media (max-width: 720px) {
  .manual-hero {
    padding-top: 54px;
  }

  .part-grid {
    grid-template-columns: 1fr;
  }

  .tool-card-grid,
  .pending-grid {
    grid-template-columns: 1fr;
  }

  .manual-tool-callout {
    align-items: flex-start;
    flex-direction: column;
  }

  .manual-layout {
    width: min(100% - 20px, 880px);
    padding-top: 18px;
  }

  .manual-article {
    padding: 24px 18px;
    border-radius: 20px;
  }

  .manual-article h2 {
    font-size: 25px;
  }

  .manual-article table {
    display: block;
    overflow-x: auto;
  }

  .chapter-pagination {
    grid-template-columns: 1fr;
  }

  .form-grid,
  .result-panel,
  .roi-results,
  .scenario-grid {
    grid-template-columns: 1fr;
  }

  .form-grid .wide,
  .result-panel .wide-result {
    grid-column: auto;
  }

  .score-rows label {
    grid-template-columns: 1fr;
  }

  .chapter-pagination a:last-child {
    text-align: left;
  }
}

@media print {
  .tool-page .site-header,
  .tool-actions,
  .tool-breadcrumb,
  .tool-help {
    display: none !important;
  }

  .tool-page-main {
    width: 100%;
    padding: 0;
  }

  .tool-page-heading,
  .tool-form > section {
    break-inside: avoid;
    box-shadow: none;
  }

  .tool-page-heading {
    padding: 18px 0;
  }

  .tool-page-heading aside {
    border: 1px solid #d8deea;
  }

  .tool-form > section {
    padding: 20px 0;
    border: 0;
    border-top: 1px solid #d8deea;
    border-radius: 0;
  }

  .form-grid input,
  .form-grid textarea,
  .form-grid select,
  .score-rows select {
    background: #fff;
  }
}
