/*
 * CRM cost article body rebuilt from the approved editorial reference.
 * The hero, budget map and summary keep their established styles in
 * blog-crm-cost-v2.css. Everything from the estimate route downward is
 * composed here as one system instead of a stack of legacy card overrides.
 */

.cost-page .estimate-route {
  width: min(1280px, calc(100% - 56px));
  margin: 16px auto 0;
  padding: 20px 28px 22px;
  border: 1px solid #d6e4f5;
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}

.cost-page .estimate-route > h2 {
  margin: 0 0 14px;
  color: #11233d;
  font: 800 20px/1.25 Montserrat, "Open Sans", sans-serif;
}

.cost-page .estimate-route-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px minmax(0, 1fr) 32px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.cost-page .estimate-step {
  display: grid;
  grid-template-columns: 62px auto minmax(0, 1fr);
  align-items: center;
  column-gap: 12px;
  min-width: 0;
}

.cost-page .estimate-step > .estimate-icon {
  grid-row: 1;
  grid-column: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border: 1px solid #d6e4f5;
  border-radius: 50%;
  background: #f8fbff;
}

.cost-page .estimate-step > .estimate-icon img {
  width: 30px;
  height: 30px;
  filter: invert(34%) sepia(94%) saturate(2428%) hue-rotate(205deg) brightness(91%) contrast(94%);
  object-fit: contain;
}

.cost-page .estimate-step > span {
  grid-column: 2;
  color: #11233d;
  font: 800 15px/1.25 Montserrat, "Open Sans", sans-serif;
}

.cost-page .estimate-step > div {
  grid-column: 3;
  min-width: 0;
}

.cost-page .estimate-step h3 {
  margin: 0;
  color: #11233d;
  font: 800 15px/1.3 Montserrat, "Open Sans", sans-serif;
}

.cost-page .estimate-step p {
  margin: 5px 0 0;
  color: #5d6f87;
  font-size: 13px;
  line-height: 1.5;
}

.cost-page .estimate-route .route-arrow {
  width: 24px;
  height: 24px;
  opacity: .72;
}

.cost-page .article-reference-layout {
  width: min(1280px, calc(100% - 56px));
  margin: 26px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 2.05fr) minmax(280px, .95fr);
  gap: 28px;
  align-items: start;
}

.cost-page .article-reference-main {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

.cost-page .article-reference-main > .article-card,
.cost-page .article-reference-main > .source-box {
  margin: 0;
  padding: 26px 0;
  border: 0;
  border-top: 1px solid #dce6f2;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.cost-page .article-reference-main > #components {
  padding-top: 0;
  border-top: 0;
}

.cost-page .article-reference-main h2 {
  margin: 0;
  max-width: 760px;
  color: #11233d;
  font: 800 clamp(22px, 2vw, 30px)/1.22 Montserrat, "Open Sans", sans-serif;
  letter-spacing: -.018em;
}

.cost-page .article-reference-main .article-card > p,
.cost-page .article-reference-main .source-box > p {
  max-width: 760px;
  margin: 7px 0 0;
  color: #5d6f87;
  font-size: 15px;
  line-height: 1.58;
}

.cost-page .article-reference-main .article-card > p + p {
  margin-top: 10px;
}

.cost-page .reference-budget-table {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid #d6e4f5;
  border-radius: 8px;
  background: #fff;
}

/* The article hero follows the same 500px desktop rhythm as the service pages. */
@media (min-width: 901px) {
  .cost-page .cost-hero {
    height: 500px;
    min-height: 500px;
  }

  .cost-page .cost-hero-copy {
    padding-top: 22px;
    padding-bottom: 24px;
  }

  .cost-page .cost-hero h1 {
    margin-top: 16px;
    margin-bottom: 13px;
    font-size: clamp(42px, 3.05vw, 48px);
    line-height: 1.035;
  }

  .cost-page .cost-hero .article-deck {
    font-size: 16px;
    line-height: 1.55;
  }

  .cost-page .cost-hero .article-meta {
    margin-top: 17px;
  }

  .cost-page .cost-hero .hero-visual,
  .cost-page .cost-hero .hero-visual img {
    height: 500px;
    min-height: 500px;
  }
}

.cost-page .reference-budget-table .budget-table-head {
  display: grid;
  grid-template-columns: minmax(190px, .82fr) minmax(0, 1.22fr) minmax(0, 1.18fr);
  border: 0;
  background: #f8fbff;
}

.cost-page .reference-budget-table .budget-table-head > span {
  padding: 11px 14px;
  border-left: 1px solid #d6e4f5;
  color: #11233d;
  font: 800 13px/1.35 Montserrat, "Open Sans", sans-serif;
}

.cost-page .reference-budget-table .budget-table-head > span:first-child {
  border-left: 0;
}

.cost-page .reference-budget-table .budget-item {
  display: grid;
  grid-template-columns: 54px minmax(136px, .58fr) minmax(0, 1.22fr) minmax(0, 1.18fr);
  align-items: stretch;
  min-height: 86px;
  padding: 0;
  border: 0;
  border-top: 1px solid #d6e4f5;
  border-radius: 0;
  background: #fff;
}

.cost-page .reference-budget-table .budget-item > * {
  min-width: 0;
  margin: 0;
  padding: 14px;
  border-left: 1px solid #d6e4f5;
}

.cost-page .reference-budget-table .budget-item > :first-child {
  border-left: 0;
}

.cost-page .reference-budget-table .budget-item small {
  display: flex;
  grid-column: 1;
  grid-row: 1;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  margin: 0;
  padding: 11px 8px;
}

.cost-page .reference-budget-table .reference-icon-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid #cfe0f4;
  border-radius: 8px;
  background: #f8fbff;
}

.cost-page .reference-budget-table .reference-icon-shell img {
  width: 20px;
  height: 20px;
  filter: invert(34%) sepia(94%) saturate(2428%) hue-rotate(205deg) brightness(91%) contrast(94%);
}

.cost-page .reference-budget-table .budget-item:nth-child(5) .reference-icon-shell {
  border-color: #b8dfcf;
  background: #f3fbf7;
}

.cost-page .reference-budget-table .budget-item:nth-child(5) .reference-icon-shell img {
  filter: invert(43%) sepia(69%) saturate(584%) hue-rotate(107deg) brightness(85%) contrast(92%);
}

.cost-page .reference-budget-table .budget-item b {
  display: flex;
  grid-column: 2;
  grid-row: 1;
  align-items: center;
  margin-left: 0;
  color: #11233d;
  font: 800 14px/1.35 Montserrat, "Open Sans", sans-serif;
}

.cost-page .reference-budget-table .budget-item > span:not(.budget-impact) {
  display: flex;
  grid-column: 3;
  grid-row: 1;
  align-items: center;
  color: #4f6682;
  font-size: 13px;
  line-height: 1.48;
}

.cost-page .reference-budget-table .budget-item > .budget-impact {
  grid-column: 4;
  grid-row: 1;
}

.cost-page .reference-table-note {
  margin-top: 10px !important;
  color: #5d6f87 !important;
  font-size: 13px !important;
}

.cost-page .reference-lead-note,
.cost-page #main-idea .lead-note {
  margin: 0 0 12px;
  padding: 14px 16px;
  border: 1px solid #d6e4f5;
  border-left: 3px solid #0b64df;
  border-radius: 8px;
  background: #f8fbff;
  color: #304864;
  font-size: 14px;
  line-height: 1.55;
}

.cost-page .reference-impact-table {
  display: grid;
  gap: 0;
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid #d6e4f5;
  border-radius: 8px;
  background: #fff;
}

.cost-page .reference-impact-table .price-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 0;
  border-top: 1px solid #d6e4f5;
  background: #fff;
}

.cost-page .reference-impact-table .price-row:first-child {
  border-top: 0;
  background: #f8fbff;
}

.cost-page .reference-impact-table .price-row > * {
  padding: 12px 15px;
  border: 0;
  border-left: 1px solid #d6e4f5;
  color: #4f6682;
  font-size: 13px;
  line-height: 1.48;
}

.cost-page .reference-impact-table .price-row > :first-child {
  border-left: 0;
}

.cost-page .reference-impact-table .price-row:first-child strong:first-child {
  color: #12845e;
}

.cost-page .reference-impact-table .price-row:first-child strong:last-child {
  color: #e5484d;
}

.cost-page .reference-impact-table .price-row b {
  color: #11233d;
}

.cost-page .article-reference-main .scenario-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.cost-page .article-reference-main .scenario,
.cost-page .article-reference-main .hidden-item,
.cost-page .article-reference-main .faq-item {
  min-height: 0;
  padding: 16px;
  border: 1px solid #d6e4f5;
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}

.cost-page .article-reference-main .scenario small,
.cost-page .article-reference-main .hidden-item small {
  display: block;
  margin: 0 0 7px;
  color: #0b64df;
  font: 800 12px/1.35 Montserrat, "Open Sans", sans-serif;
  text-transform: uppercase;
}

.cost-page .article-reference-main .scenario b,
.cost-page .article-reference-main .hidden-item b,
.cost-page .article-reference-main .faq-item b {
  display: block;
  color: #11233d;
  font: 800 17px/1.3 Montserrat, "Open Sans", sans-serif;
}

.cost-page .article-reference-main .scenario span,
.cost-page .article-reference-main .hidden-item span,
.cost-page .article-reference-main .faq-item span {
  display: block;
  margin-top: 7px;
  color: #5d6f87;
  font-size: 14px;
  line-height: 1.55;
}

.cost-page .article-reference-main .hidden-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.cost-page .article-reference-main #how-to-reduce ul,
.cost-page .article-reference-main #estimate-checklist ul,
.cost-page .article-reference-main > .source-box:last-child ul {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.cost-page .article-reference-main #how-to-reduce li,
.cost-page .article-reference-main #estimate-checklist li,
.cost-page .article-reference-main > .source-box:last-child li {
  position: relative;
  margin: 7px 0;
  padding-left: 24px;
  color: #4f6682;
  font-size: 14px;
  line-height: 1.52;
}

.cost-page .article-reference-main #how-to-reduce li::before,
.cost-page .article-reference-main #estimate-checklist li::before,
.cost-page .article-reference-main > .source-box:last-child li::before {
  position: absolute;
  top: .1em;
  left: 0;
  color: #0b64df;
  content: "✓";
  font-weight: 800;
}

.cost-page .article-reference-main #estimate-checklist {
  margin: 4px 0;
  padding: 22px 24px;
  border: 1px solid #d6e4f5;
  border-radius: 8px;
  background: #f8fbff;
}

.cost-page .article-reference-main .faq-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.cost-page .article-reference-main .faq-item {
  padding: 15px 16px;
}

.cost-page .article-reference-main .faq-item b {
  font-size: 15px;
}

.cost-page .article-reference-main .faq-item span {
  font-size: 13px;
}

.cost-page .article-reference-main > .cta-soft {
  margin: 24px 0;
  padding: 28px 30px;
  border: 0;
  border-radius: 8px;
  background: #061b3a;
  box-shadow: none;
}

.cost-page .article-reference-main > .cta-soft .article-badge {
  display: inline-flex;
  align-items: center;
  margin-bottom: 12px;
  padding: 6px 9px;
  border: 1px solid #cfe0f4;
  border-radius: 999px;
  background: #fff;
  color: #0b64df;
  font: 800 11px/1.2 Montserrat, "Open Sans", sans-serif;
}

.cost-page .article-reference-main > .cta-soft h2 {
  max-width: 640px;
  color: #fff;
  font-size: clamp(24px, 2.3vw, 34px);
}

.cost-page .article-reference-main > .cta-soft p {
  max-width: 680px;
  margin-top: 8px;
  color: #d5e1ef;
  font-size: 14px;
  line-height: 1.55;
}

.cost-page .article-reference-main > .cta-soft .cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.cost-page .article-reference-main > .cta-soft .btn {
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 8px;
  font-size: 13px;
}

.cost-page .article-reference-main > .cta-soft .btn-main {
  border-color: #0b64df;
  background: #0b64df;
  color: #fff;
}

.cost-page .article-reference-main > .cta-soft .btn-alt {
  border-color: #cfe0f4;
  background: #fff;
  color: #11233d;
}

.cost-page .article-reference-aside {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.cost-page .article-reference-aside > h3 {
  margin: 0 0 -12px;
  padding: 17px 20px 14px;
  border: 1px solid #d6e4f5;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: #fff;
  color: #11233d;
  font: 800 17px/1.3 Montserrat, "Open Sans", sans-serif;
  text-transform: none;
}

.cost-page .article-reference-aside .toc {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 14px 20px 18px;
  border: 1px solid #d6e4f5;
  border-top: 0;
  border-radius: 0 0 8px 8px;
  background: #fff;
}

.cost-page .article-reference-aside .toc a {
  position: relative;
  padding-left: 10px;
  color: #0b64df;
  font-size: 13px;
  line-height: 1.38;
  text-decoration: none;
}

.cost-page .article-reference-aside .toc a:first-child::before {
  position: absolute;
  top: 1px;
  bottom: 1px;
  left: 0;
  width: 2px;
  border-radius: 2px;
  background: #0b64df;
  content: "";
}

.cost-page .article-reference-aside .aside-note {
  display: none;
}

.cost-page .article-reference-aside .aside-expertise,
.cost-page .article-reference-aside .aside-cta {
  margin: 0;
  padding: 20px;
  border: 1px solid #d6e4f5;
  border-radius: 8px;
  background: #f8fbff;
  box-shadow: none;
}

.cost-page .article-reference-aside .aside-expertise h3,
.cost-page .article-reference-aside .aside-cta h3 {
  margin: 0;
  color: #11233d;
  font: 800 16px/1.3 Montserrat, "Open Sans", sans-serif;
  text-transform: none;
}

.cost-page .article-reference-aside .aside-expertise p,
.cost-page .article-reference-aside .aside-cta p {
  margin: 8px 0 0;
  color: #5d6f87;
  font-size: 13px;
  line-height: 1.5;
}

.cost-page .article-reference-aside .aside-expertise a,
.cost-page .article-reference-aside .aside-cta > a:last-child {
  display: inline-flex;
  margin-top: 10px;
  color: #0b64df;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.cost-page .article-reference-aside .aside-cta > img {
  width: 42px;
  height: 42px;
  margin: 0 0 12px;
  padding: 8px;
  border: 1px solid #cfe0f4;
  border-radius: 8px;
  background: #fff;
}

.cost-page .article-reference-aside .aside-cta .btn {
  display: flex;
  width: 100%;
  min-height: 42px;
  margin-top: 14px;
  padding: 10px 14px;
  border: 1px solid #0b64df;
  border-radius: 8px;
  background: #0b64df;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

@media (hover: hover) and (pointer: fine) {
  .cost-page .article-reference-aside .toc a:hover,
  .cost-page .article-reference-aside .aside-expertise a:hover,
  .cost-page .article-reference-aside .aside-cta > a:last-child:hover {
    color: #084fae;
  }

  .cost-page .article-reference-main > .cta-soft .btn:hover,
  .cost-page .article-reference-aside .aside-cta .btn:hover {
    transform: translateY(-1px);
  }
}

.cost-page .article-reference-main > .cta-soft .btn:active,
.cost-page .article-reference-aside .aside-cta .btn:active {
  transform: scale(.97);
}

@media (min-width: 901px) and (max-width: 1180px) {
  .cost-page .estimate-route,
  .cost-page .article-reference-layout {
    width: calc(100% - 56px);
  }

  .cost-page .estimate-route {
    padding: 16px 20px 18px;
  }

  .cost-page .estimate-route > h2 {
    margin-bottom: 10px;
    font-size: 14px;
  }

  .cost-page .estimate-route-grid {
    grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr) 22px minmax(0, 1fr);
    gap: 8px;
  }

  .cost-page .estimate-step {
    grid-template-columns: 52px auto minmax(0, 1fr);
    column-gap: 8px;
  }

  .cost-page .estimate-step > .estimate-icon {
    width: 50px;
    height: 50px;
  }

  .cost-page .estimate-step > .estimate-icon img {
    width: 26px;
    height: 26px;
  }

  .cost-page .estimate-step > span,
  .cost-page .estimate-step h3 {
    font-size: 10px;
  }

  .cost-page .estimate-step p {
    margin-top: 3px;
    font-size: 8.5px;
    line-height: 1.45;
  }

  .cost-page .estimate-route .route-arrow {
    width: 18px;
    height: 18px;
  }

  .cost-page .article-reference-layout {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 20px;
    margin-top: 18px;
  }

  .cost-page .article-reference-main > .article-card,
  .cost-page .article-reference-main > .source-box {
    padding: 18px 0;
  }

  .cost-page .article-reference-main h2 {
    font-size: 18px;
  }

  .cost-page .article-reference-main .article-card > p,
  .cost-page .article-reference-main .source-box > p {
    margin-top: 5px;
    font-size: 9.5px;
    line-height: 1.48;
  }

  .cost-page .reference-budget-table {
    margin-top: 10px;
    border-radius: 5px;
  }

  .cost-page .reference-budget-table .budget-table-head {
    grid-template-columns: 150px minmax(0, 1fr) minmax(0, 1fr);
  }

  .cost-page .reference-budget-table .budget-table-head > span {
    padding: 7px 9px;
    font-size: 8px;
  }

  .cost-page .reference-budget-table .budget-item {
    grid-template-columns: 38px 112px minmax(0, 1fr) minmax(0, 1fr);
    min-height: 0;
  }

  .cost-page .reference-budget-table .budget-item > * {
    padding: 7px 9px;
  }

  .cost-page .reference-budget-table .budget-item small {
    padding: 7px 5px;
  }

  .cost-page .reference-budget-table .reference-icon-shell {
    width: 28px;
    height: 28px;
    border-radius: 6px;
  }

  .cost-page .reference-budget-table .reference-icon-shell img {
    width: 16px;
    height: 16px;
  }

  .cost-page .reference-budget-table .budget-item b {
    font-size: 9px;
  }

  .cost-page .reference-budget-table .budget-item > span {
    font-size: 8.5px;
    line-height: 1.35;
  }

  .cost-page .reference-table-note {
    margin-top: 7px !important;
    font-size: 8.5px !important;
  }

  .cost-page #main-idea .lead-note {
    padding: 10px 12px;
    font-size: 9px;
  }

  .cost-page .reference-impact-table {
    margin-top: 9px;
    border-radius: 5px;
  }

  .cost-page .reference-impact-table .price-row > * {
    padding: 7px 9px;
    font-size: 8.5px;
    line-height: 1.4;
  }

  .cost-page .article-reference-main .scenario-grid,
  .cost-page .article-reference-main .hidden-grid {
    gap: 9px;
    margin-top: 10px;
  }

  .cost-page .article-reference-main .scenario,
  .cost-page .article-reference-main .hidden-item,
  .cost-page .article-reference-main .faq-item {
    padding: 11px;
    border-radius: 6px;
  }

  .cost-page .article-reference-main .scenario small,
  .cost-page .article-reference-main .hidden-item small {
    margin-bottom: 5px;
    font-size: 8px;
  }

  .cost-page .article-reference-main .scenario b,
  .cost-page .article-reference-main .hidden-item b {
    font-size: 11px;
  }

  .cost-page .article-reference-main .scenario span,
  .cost-page .article-reference-main .hidden-item span {
    margin-top: 5px;
    font-size: 8.5px;
    line-height: 1.45;
  }

  .cost-page .article-reference-main #how-to-reduce li,
  .cost-page .article-reference-main #estimate-checklist li,
  .cost-page .article-reference-main > .source-box:last-child li {
    margin: 4px 0;
    padding-left: 18px;
    font-size: 9px;
  }

  .cost-page .article-reference-main #estimate-checklist {
    padding: 15px 17px;
  }

  .cost-page .article-reference-main .faq-item b {
    font-size: 10px;
  }

  .cost-page .article-reference-main .faq-item span {
    margin-top: 4px;
    font-size: 8.5px;
  }

  .cost-page .article-reference-main > .cta-soft {
    margin: 18px 0;
    padding: 20px;
  }

  .cost-page .article-reference-main > .cta-soft h2 {
    font-size: 20px;
  }

  .cost-page .article-reference-main > .cta-soft p {
    font-size: 9px;
  }

  .cost-page .article-reference-main > .cta-soft .btn {
    min-height: 34px;
    padding: 7px 11px;
    font-size: 9px;
  }

  .cost-page .article-reference-aside {
    gap: 8px;
  }

  .cost-page .article-reference-aside > h3 {
    margin-bottom: -8px;
    padding: 11px 14px 9px;
    font-size: 10px;
  }

  .cost-page .article-reference-aside .toc {
    gap: 4px;
    padding: 9px 14px 12px;
  }

  .cost-page .article-reference-aside .toc a {
    font-size: 8.5px;
  }

  .cost-page .article-reference-aside .aside-expertise,
  .cost-page .article-reference-aside .aside-cta {
    padding: 14px;
  }

  .cost-page .article-reference-aside .aside-expertise h3,
  .cost-page .article-reference-aside .aside-cta h3 {
    font-size: 10px;
  }

  .cost-page .article-reference-aside .aside-expertise p,
  .cost-page .article-reference-aside .aside-cta p,
  .cost-page .article-reference-aside .aside-expertise a,
  .cost-page .article-reference-aside .aside-cta > a:last-child {
    font-size: 8px;
  }

  .cost-page .article-reference-aside .aside-cta > img {
    width: 34px;
    height: 34px;
    margin-bottom: 8px;
  }

  .cost-page .article-reference-aside .aside-cta .btn {
    min-height: 32px;
    margin-top: 9px;
    padding: 7px 10px;
    font-size: 8.5px;
  }
}

@media (max-width: 900px) {
  .cost-page .estimate-route,
  .cost-page .article-reference-layout {
    width: calc(100% - 36px);
  }

  .cost-page .estimate-route {
    padding: 20px;
  }

  .cost-page .estimate-route-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .cost-page .estimate-route .route-arrow {
    display: none;
  }

  .cost-page .estimate-step {
    grid-template-columns: 52px auto minmax(0, 1fr);
    padding: 14px 0;
    border-top: 1px solid #dce6f2;
  }

  .cost-page .estimate-step:first-child {
    border-top: 0;
  }

  .cost-page .estimate-step > .estimate-icon {
    width: 46px;
    height: 46px;
  }

  .cost-page .estimate-step > .estimate-icon img {
    width: 24px;
    height: 24px;
  }

  .cost-page .estimate-step > span,
  .cost-page .estimate-step h3 {
    font-size: 14px;
  }

  .cost-page .estimate-step p {
    font-size: 13px;
  }

  .cost-page .article-reference-layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .cost-page .article-reference-main {
    width: 100%;
    order: 2;
  }

  .cost-page .article-reference-aside {
    position: static;
    width: 100%;
    order: 1;
  }

  .cost-page .article-reference-aside .aside-expertise,
  .cost-page .article-reference-aside .aside-cta,
  .cost-page .article-reference-aside .aside-note {
    display: none;
  }

  .cost-page .reference-budget-table {
    overflow-x: auto;
    overscroll-behavior-inline: contain;
  }

  .cost-page .reference-budget-table .budget-table-head,
  .cost-page .reference-budget-table .budget-item {
    min-width: 760px;
  }

  .cost-page .reference-budget-table .budget-table-head {
    grid-template-columns: 210px 275px 275px;
  }

  .cost-page .reference-budget-table .budget-item {
    grid-template-columns: 54px 156px 275px 275px;
  }

  .cost-page .article-reference-main .scenario-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .cost-page .estimate-route,
  .cost-page .article-reference-layout {
    width: calc(100% - 32px);
  }

  .cost-page .estimate-route {
    margin-top: 12px;
    padding: 18px 16px;
  }

  .cost-page .estimate-route > h2 {
    font-size: 20px;
  }

  .cost-page .article-reference-layout {
    margin-top: 18px;
  }

  .cost-page .article-reference-main > .article-card,
  .cost-page .article-reference-main > .source-box {
    padding: 24px 0;
  }

  .cost-page .article-reference-main h2 {
    font-size: 24px;
  }

  .cost-page .article-reference-main .article-card > p,
  .cost-page .article-reference-main .source-box > p {
    font-size: 16px;
    line-height: 1.62;
  }

  .cost-page .reference-budget-table {
    display: grid;
    gap: 10px;
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .cost-page .reference-budget-table .budget-table-head {
    display: none;
  }

  .cost-page .reference-budget-table .budget-item {
    min-width: 0;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    padding: 16px;
    overflow: hidden;
    border: 1px solid #d6e4f5;
    border-radius: 8px;
    background: #fff;
  }

  .cost-page .reference-budget-table .budget-item > small {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    padding: 0;
    border: 0;
  }

  .cost-page .reference-budget-table .budget-item > b {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    padding: 0 0 0 10px;
    border: 0;
    font-size: 17px;
  }

  .cost-page .reference-budget-table .budget-item > span:not(.reference-icon-shell) {
    grid-column: 1 / -1;
    padding: 13px 0 0;
    border: 0;
    font-size: 14px;
    line-height: 1.55;
  }

  .cost-page .reference-budget-table .budget-item > .budget-impact {
    margin-top: 12px;
    border-top: 1px solid #e2eaf4;
    color: #405873;
  }

  .cost-page .reference-impact-table {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .cost-page .reference-impact-table .price-row {
    grid-template-columns: 1fr;
    margin-top: 10px;
    overflow: hidden;
    border: 1px solid #d6e4f5;
    border-radius: 8px;
  }

  .cost-page .reference-impact-table .price-row:first-child {
    margin-top: 0;
  }

  .cost-page .reference-impact-table .price-row > * {
    padding: 13px 14px;
    border-top: 1px solid #d6e4f5;
    border-left: 0;
    font-size: 14px;
  }

  .cost-page .reference-impact-table .price-row > :first-child {
    border-top: 0;
  }

  .cost-page .article-reference-main .hidden-grid {
    grid-template-columns: 1fr;
  }

  .cost-page .article-reference-main .scenario,
  .cost-page .article-reference-main .hidden-item,
  .cost-page .article-reference-main .faq-item {
    padding: 16px;
  }

  .cost-page .article-reference-main .scenario small,
  .cost-page .article-reference-main .hidden-item small {
    font-size: 12px;
  }

  .cost-page .article-reference-main .scenario b,
  .cost-page .article-reference-main .hidden-item b {
    font-size: 19px;
  }

  .cost-page .article-reference-main .scenario span,
  .cost-page .article-reference-main .hidden-item span,
  .cost-page .article-reference-main .faq-item span {
    font-size: 15px;
  }

  .cost-page .article-reference-main #how-to-reduce li,
  .cost-page .article-reference-main #estimate-checklist li,
  .cost-page .article-reference-main > .source-box:last-child li {
    margin: 8px 0;
    font-size: 15px;
    line-height: 1.58;
  }

  .cost-page .article-reference-main #estimate-checklist {
    padding: 20px;
  }

  .cost-page .article-reference-main .faq-item b {
    font-size: 16px;
  }

  .cost-page .article-reference-main > .cta-soft {
    padding: 24px 20px;
  }

  .cost-page .article-reference-main > .cta-soft h2 {
    font-size: 27px;
  }

  .cost-page .article-reference-main > .cta-soft p {
    font-size: 15px;
  }

  .cost-page .article-reference-main > .cta-soft .cta-actions {
    display: grid;
  }

  .cost-page .article-reference-main > .cta-soft .btn {
    width: 100%;
    min-height: 46px;
    font-size: 14px;
  }

  .cost-page .article-reference-aside > h3 {
    padding: 15px 16px 12px;
    font-size: 17px;
  }

  .cost-page .article-reference-aside .toc {
    padding: 12px 16px 16px;
  }

  .cost-page .article-reference-aside .toc a {
    min-height: 34px;
    padding-top: 7px;
    padding-bottom: 7px;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cost-page .article-reference-main > .cta-soft .btn,
  .cost-page .article-reference-aside .aside-cta .btn {
    transition: none;
  }
}

/* Final visual and responsive QA pass.
   Keep this layer last: the earlier reference blocks preserve the approved
   composition, while these rules restore production reading sizes. */
.cost-page {
  padding-bottom: 0;
}

.cost-page .cost-breadcrumb {
  font-size: 14px;
}

.cost-page .cost-hero {
  grid-template-columns: minmax(0, .92fr) minmax(480px, 1.08fr);
  width: min(1280px, calc(100% - 40px));
  height: auto !important;
  min-height: 0;
  border: 1px solid #d6e4f5;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(40, 88, 145, .09);
}

.cost-page .cost-hero-copy {
  padding: 42px 44px;
}

.cost-page .cost-hero h1 {
  font-size: clamp(42px, 3.2vw, 52px);
}

.cost-page .cost-hero .article-deck {
  font-size: 18px;
}

.cost-page .cost-hero .hero-visual {
  height: auto;
  min-height: 430px;
  margin: 12px;
  border-radius: 8px;
}

.cost-page .cost-hero .hero-visual::before {
  display: none;
}

.cost-page .cost-hero .hero-visual img {
  position: absolute;
  inset: 0;
  height: 100% !important;
  min-height: 0;
  max-height: none !important;
  object-position: 52% 50%;
}

.cost-page .body-section-heading h2 {
  font-size: 32px;
}

.cost-page .body-section-heading p {
  font-size: 16px;
}

.cost-page .budget-node h3,
.cost-page .budget-factor h3 {
  font-size: 16px;
}

.cost-page .budget-node li,
.cost-page .budget-factor p {
  font-size: 14px;
  line-height: 1.5;
}

.cost-page .budget-map-feedback p,
.cost-page .budget-return-loop span {
  font-size: 14px;
  line-height: 1.55;
}

.cost-page .cost-summary-section h2,
.cost-page .estimate-route > h2 {
  font-size: 28px;
}

.cost-page .summary-intro p {
  font-size: 17px;
  line-height: 1.6;
}

.cost-page .scenario-grid--summary .scenario b {
  font-size: 19px;
}

.cost-page .scenario-grid--summary .scenario em {
  font-size: 14px;
}

.cost-page .scenario-grid--summary .scenario li,
.cost-page .scenario-grid--summary .summary-definition {
  font-size: 15px;
  line-height: 1.5;
}

.cost-page .estimate-step > span,
.cost-page .estimate-step h3 {
  font-size: 17px;
}

.cost-page .estimate-step p {
  font-size: 15px;
  line-height: 1.55;
}

.cost-page .article-reference-main h2 {
  font-size: clamp(28px, 2.5vw, 34px);
  line-height: 1.2;
}

.cost-page .article-reference-main .article-card > p,
.cost-page .article-reference-main .source-box > p {
  font-size: 18px;
  line-height: 1.65;
}

.cost-page .reference-budget-table .budget-table-head > span {
  font-size: 14px;
}

.cost-page .reference-budget-table .budget-item b {
  font-size: 16px;
}

.cost-page .reference-budget-table .budget-item > span:not(.reference-icon-shell) {
  font-size: 15px !important;
  line-height: 1.55;
}

.cost-page .reference-table-note,
.cost-page #main-idea .lead-note,
.cost-page .reference-impact-table .price-row > * {
  font-size: 16px !important;
  line-height: 1.55;
}

.cost-page .article-reference-main .scenario b,
.cost-page .article-reference-main .hidden-item b {
  font-size: 19px;
}

.cost-page .article-reference-main .scenario span,
.cost-page .article-reference-main .hidden-item span,
.cost-page .article-reference-main .faq-item span {
  font-size: 16px;
  line-height: 1.58;
}

.cost-page .article-reference-main .scenario small,
.cost-page .article-reference-main .hidden-item small {
  font-size: 12px;
}

.cost-page .article-reference-main #how-to-reduce li,
.cost-page .article-reference-main #estimate-checklist li,
.cost-page .article-reference-main > .source-box:last-child li {
  font-size: 16px;
  line-height: 1.6;
}

.cost-page .article-reference-main .faq-item b {
  font-size: 17px;
}

.cost-page .article-reference-main > .cta-soft p {
  font-size: 16px;
  line-height: 1.6;
}

.cost-page .article-reference-main > .cta-soft .btn {
  font-size: 14px;
}

.cost-page .article-reference-aside > h3 {
  font-size: 18px;
}

.cost-page .article-reference-aside .toc a,
.cost-page .article-reference-aside .aside-expertise p,
.cost-page .article-reference-aside .aside-cta p,
.cost-page .article-reference-aside .aside-expertise a,
.cost-page .article-reference-aside .aside-cta > a:last-child,
.cost-page .article-reference-aside .aside-cta .btn {
  font-size: 14px;
  line-height: 1.5;
}

.cost-page + .site-footer {
  margin-top: 0;
  padding-top: 0;
}

.cost-page + .site-footer .footer-main {
  padding-top: 36px;
}

@media (max-width: 1180px) {
  .cost-page .cost-hero {
    grid-template-columns: minmax(0, 1fr) minmax(430px, .95fr);
  }

  .cost-page .cost-hero-copy {
    padding: 34px;
  }

  .cost-page .cost-hero h1 {
    font-size: clamp(38px, 4.1vw, 46px);
  }

  .cost-page .article-reference-layout {
    gap: 26px;
  }

  .cost-page .article-reference-main > .article-card,
  .cost-page .article-reference-main > .source-box {
    padding: 24px 0;
  }

  /* The reference composition previously scaled the whole article down at
     tablet widths. Preserve the layout, but keep production reading sizes. */
  .cost-page .article-reference-main h2 {
    font-size: 30px !important;
  }

  .cost-page .article-reference-main .article-card > p,
  .cost-page .article-reference-main .source-box > p {
    font-size: 17px !important;
    line-height: 1.65 !important;
  }

  .cost-page .reference-budget-table .budget-table-head > span {
    font-size: 13px !important;
  }

  .cost-page .reference-budget-table .budget-item b {
    font-size: 16px !important;
  }

  .cost-page .reference-budget-table .budget-item > span:not(.reference-icon-shell) {
    font-size: 15px !important;
  }

  .cost-page .reference-table-note,
  .cost-page #main-idea .lead-note,
  .cost-page .reference-impact-table .price-row > * {
    font-size: 15px !important;
  }

  .cost-page .article-reference-main .scenario small,
  .cost-page .article-reference-main .hidden-item small {
    font-size: 12px !important;
  }

  .cost-page .article-reference-main .scenario b,
  .cost-page .article-reference-main .hidden-item b,
  .cost-page .article-reference-main .faq-item b {
    font-size: 17px !important;
  }

  .cost-page .article-reference-main .scenario span,
  .cost-page .article-reference-main .hidden-item span,
  .cost-page .article-reference-main .faq-item span {
    font-size: 15px !important;
    line-height: 1.58 !important;
  }

  .cost-page .article-reference-main #how-to-reduce li,
  .cost-page .article-reference-main #estimate-checklist li,
  .cost-page .article-reference-main > .source-box:last-child li {
    font-size: 15px !important;
    line-height: 1.6 !important;
  }

  .cost-page .article-reference-main > .cta-soft .article-badge {
    font-size: 12px !important;
  }

  .cost-page .article-reference-main > .cta-soft h2 {
    font-size: 28px !important;
  }

  .cost-page .article-reference-main > .cta-soft p {
    font-size: 16px !important;
  }

  .cost-page .article-reference-main > .cta-soft .btn {
    font-size: 14px !important;
  }

  .cost-page .article-reference-aside > h3,
  .cost-page .article-reference-aside .aside-expertise h3,
  .cost-page .article-reference-aside .aside-cta h3 {
    font-size: 16px !important;
  }

  .cost-page .article-reference-aside .toc a,
  .cost-page .article-reference-aside .aside-expertise p,
  .cost-page .article-reference-aside .aside-cta p,
  .cost-page .article-reference-aside .aside-expertise a,
  .cost-page .article-reference-aside .aside-cta > a:last-child,
  .cost-page .article-reference-aside .aside-cta .btn {
    font-size: 14px !important;
  }
}

@media (max-width: 900px) {
  .cost-page .cost-hero {
    grid-template-columns: 1fr;
    width: min(100% - 32px, 760px);
  }

  .cost-page .cost-hero-copy {
    padding: 32px 28px 26px;
  }

  .cost-page .cost-hero .hero-visual {
    min-height: 300px;
    margin: 0 18px 18px;
  }

  .cost-page .cost-hero .hero-visual img {
    min-height: 0;
  }

  .cost-page .article-reference-aside {
    display: none;
  }

  .cost-page .article-reference-main {
    order: 1;
  }
}

@media (max-width: 620px) {
  .cost-page .cost-breadcrumb {
    font-size: 13px;
  }

  .cost-page .cost-hero {
    width: min(100% - 24px, 760px);
  }

  .cost-page .cost-hero-copy {
    padding: 26px 20px 22px;
  }

  .cost-page .cost-hero h1 {
    font-size: clamp(32px, 8.5vw, 38px);
    line-height: 1.08;
  }

  .cost-page .cost-hero .article-deck {
    font-size: 17px;
  }

  .cost-page .cost-hero .hero-visual {
    min-height: 230px;
    margin: 0 10px 10px;
  }

  .cost-page .cost-hero .hero-visual img {
    min-height: 0;
  }

  .cost-page .body-section-heading h2,
  .cost-page .cost-summary-section h2,
  .cost-page .estimate-route > h2,
  .cost-page .article-reference-main h2 {
    font-size: 27px;
  }

  .cost-page .budget-node h3,
  .cost-page .budget-factor h3 {
    font-size: 17px;
  }

  .cost-page .budget-node li,
  .cost-page .budget-factor p,
  .cost-page .budget-map-feedback p,
  .cost-page .budget-return-loop span {
    font-size: 15px;
  }

  .cost-page .summary-intro p,
  .cost-page .article-reference-main .article-card > p,
  .cost-page .article-reference-main .source-box > p {
    font-size: 17px;
  }

  .cost-page .estimate-step > span,
  .cost-page .estimate-step h3 {
    font-size: 17px;
  }

  .cost-page .estimate-step p {
    font-size: 15px;
  }

  .cost-page .reference-budget-table .budget-item {
    grid-template-columns: 44px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    min-height: 0;
    padding: 16px;
  }

  .cost-page .reference-budget-table .budget-item > small {
    grid-column: 1;
    grid-row: 1;
  }

  .cost-page .reference-budget-table .budget-item > b {
    grid-column: 2;
    grid-row: 1;
    padding-left: 10px;
  }

  .cost-page .reference-budget-table .budget-item > span:not(.reference-icon-shell):not(.budget-impact) {
    grid-column: 1 / -1;
    grid-row: 2 !important;
    display: block;
    padding: 14px 0 0;
  }

  .cost-page .reference-budget-table .budget-item > .budget-impact {
    grid-column: 1 / -1;
    grid-row: 3 !important;
    display: block;
    margin-top: 14px;
    padding: 14px 0 0;
    border-top: 1px solid #e2eaf4;
  }

  .cost-page + .site-footer .footer-main {
    padding-top: 28px;
  }
}

/* Hero parity with the implementation service page:
   full-bleed photo to the right edge, with a soft fade under the copy. */
@media (min-width: 901px) {
  .cost-page .cost-hero {
    position: relative;
    isolation: isolate;
    display: block;
    width: 100%;
    height: 510px !important;
    min-height: 510px;
    margin: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
  }

  .cost-page .cost-hero-copy {
    position: relative;
    z-index: 5;
    width: min(42%, 560px);
    min-height: 510px;
    margin-left: max(20px, calc((100vw - 1280px) / 2));
    padding: 32px 22px 28px 0;
    justify-content: flex-start;
  }

  .cost-page .cost-hero h1 {
    max-width: 540px;
    margin: 18px 0 14px;
    font-size: clamp(42px, 3.2vw, 50px);
  }

  .cost-page .cost-hero .article-deck {
    max-width: 530px;
    min-height: calc(5 * 1.56em);
    font-size: 17px;
    line-height: 1.56;
  }

  .cost-page .cost-hero .article-meta {
    margin-top: 18px;
  }

  .cost-page .cost-hero .hero-visual {
    position: absolute;
    z-index: 0;
    inset: 0 0 0 max(0px, calc((100vw - 1280px) / 2));
    width: auto;
    height: 510px;
    min-height: 510px;
    margin: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: #f7fafc;
  }

  .cost-page .cost-hero .hero-visual::before {
    position: absolute;
    z-index: 2;
    inset: 0;
    display: block;
    width: auto;
    content: "";
    pointer-events: none;
    background: linear-gradient(
      90deg,
      #fff 0%,
      rgba(255, 255, 255, .98) 23%,
      rgba(255, 255, 255, .82) 36%,
      rgba(255, 255, 255, .24) 48%,
      rgba(255, 255, 255, 0) 62%
    );
  }

  .cost-page .cost-hero .hero-visual img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100% !important;
    min-height: 0;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover;
    object-position: 52% 48%;
    filter: saturate(.82) brightness(1.04);
  }
}

@media (min-width: 901px) and (max-width: 1180px) {
  .cost-page .cost-hero {
    height: 520px !important;
    min-height: 520px;
  }

  .cost-page .cost-hero-copy {
    width: 47%;
    min-height: 520px;
    padding-right: 18px;
  }

  .cost-page .cost-hero .hero-visual {
    height: 520px;
    min-height: 520px;
  }
}

@media (max-width: 900px) {
  .cost-page .cost-hero {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    height: auto !important;
    min-height: 0;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
  }

  .cost-page .cost-hero-copy {
    width: min(100% - 32px, 760px);
    margin: 0 auto;
    padding: 32px 0 28px;
  }

  .cost-page .cost-hero .hero-visual {
    position: relative;
    inset: auto;
    width: 100%;
    min-height: 300px;
    margin: 0;
    border: 0;
    border-radius: 0;
  }

  .cost-page .cost-hero .hero-visual::before {
    position: absolute;
    z-index: 2;
    inset: 0;
    display: block;
    width: auto;
    content: "";
    pointer-events: none;
    background: rgba(255, 255, 255, .08);
  }

  .cost-page .cost-hero .hero-visual img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100% !important;
    min-height: 0;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover;
    object-position: 52% 50%;
  }
}

@media (max-width: 620px) {
  .cost-page .cost-hero-copy {
    width: min(100% - 28px, 760px);
    padding: 26px 0 24px;
  }

  .cost-page .cost-hero .hero-visual {
    min-height: 260px;
  }
}

/* Keep the article trail inside the hero instead of a separate band. */
@media (min-width: 901px) {
  .cost-page .cost-hero > .cost-breadcrumb {
    position: absolute;
    z-index: 6;
    top: 6px;
    left: 50%;
    width: min(1280px, calc(100% - 40px));
    margin: 0;
    padding: 0;
    transform: translateX(-50%);
  }
}

@media (max-width: 900px) {
  .cost-page .cost-hero > .cost-breadcrumb {
    position: relative;
    z-index: 6;
    grid-row: 1;
    width: min(100% - 32px, 760px);
    margin: 0 auto;
    padding: 10px 0 0;
  }

  .cost-page .cost-hero-copy {
    grid-row: 2;
    padding-top: 22px;
  }

  .cost-page .cost-hero .hero-visual {
    grid-row: 3;
  }
}

@media (max-width: 620px) {
  .cost-page .cost-hero > .cost-breadcrumb {
    width: min(100% - 28px, 760px);
    padding-top: 6px;
  }

  .cost-page .cost-hero-copy {
    padding-top: 20px;
  }
}
