/* NOI assurance mechanism page */
.nam-page { max-width: 1100px; }
.nam-page .narrow { max-width: 800px; }
.nam-steps { counter-reset: st; list-style: none; margin: 24px 0 8px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.nam-steps li { counter-increment: st; background: rgb(247,246,243); border-radius: 12px; padding: 18px 18px 16px; position: relative; font-size: 15px; line-height: 1.55; color: rgb(51,51,51); }
.nam-steps li::before { content: counter(st); display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: rgb(166,124,61); color: #fff; font-weight: 700; font-size: 14px; margin-bottom: 10px; }
.nam-steps b { display: block; color: rgb(26,26,24); font-size: 16px; margin-bottom: 4px; }
.nam-steps li:not(:last-child)::after { content: "→"; position: absolute; right: -13px; top: 18px; color: rgb(166,124,61); font-weight: 700; z-index: 1; }
#nam { margin: 26px 0 10px; display: grid; grid-template-columns: 320px 1fr; gap: 26px; align-items: start; }
.nam-controls { position: sticky; top: 84px; background: rgb(247,246,243); border-radius: 14px; padding: 18px 18px 14px; max-height: calc(100vh - 100px); overflow-y: auto; }
.nam-g { border: 0; margin: 0 0 14px; padding: 0; }
.nam-g legend, .nam-adv summary { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: rgb(143,106,50); padding: 0; margin-bottom: 8px; }
.nam-adv summary { cursor: pointer; margin-bottom: 10px; }
.nam-s { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: baseline; margin-bottom: 10px; }
.nam-sl { font-size: 13.5px; line-height: 1.35; color: rgb(51,51,51); }
.nam-s output { font-size: 13.5px; font-weight: 700; color: rgb(26,26,24); font-variant-numeric: tabular-nums; }
.nam-s input[type=range] { grid-column: 1 / -1; width: 100%; accent-color: rgb(166,124,61); margin: 2px 0 0; }
.nam-reset { font: inherit; font-size: 13px; font-weight: 600; color: rgb(68,68,68); background: #fff; border: 1px solid rgb(227,224,216); border-radius: 6px; padding: 7px 12px; cursor: pointer; }
.nam-chart { border: 1px solid rgb(227,224,216); border-radius: 12px; background: #fff; padding: 16px 14px 10px; margin-bottom: 18px; }
.nam-chart h3 { font-size: 16px; font-weight: 600; margin: 0 0 4px 6px; color: rgb(26,26,24); display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.nam-chart h3 button { font: inherit; font-size: 12.5px; font-weight: 600; color: rgb(143,106,50); background: #fff; border: 1px solid rgb(220,195,154); border-radius: 999px; padding: 4px 12px; cursor: pointer; white-space: nowrap; }
.nam-chart svg { display: block; width: 100%; height: auto; }
.nam-chart p { margin: 6px 6px 4px; font-size: 13px; line-height: 1.55; color: rgb(107,107,102); }
.nam-rights { font-size: 13px; line-height: 1.6; color: rgb(107,107,102); border-top: 1px solid rgb(226,222,214); margin-top: 40px; padding-top: 22px; max-width: 800px; }
@media (max-width: 1000px) {
  #nam { grid-template-columns: 1fr; }
  .nam-controls { position: static; max-height: none; }
  .nam-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
  .nam-adv, .nam-reset { grid-column: 1 / -1; justify-self: start; }
  .nam-advg { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
  .nam-steps { grid-template-columns: 1fr 1fr; }
  .nam-steps li::after { display: none; }
}
@media (max-width: 640px) {
  .nam-controls, .nam-advg { grid-template-columns: 1fr; }
  .nam-steps { grid-template-columns: 1fr; }
}

/* leverage feature */
.nam-lead { background: rgb(26,26,24); color: #f7f6f3; border-radius: 14px; padding: 22px 22px 18px; margin-bottom: 14px; }
.nam-lead-top { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.nam-lead-top b { display: block; font-size: 34px; line-height: 1.1; color: #fff; font-variant-numeric: tabular-nums; }
.nam-lead-top span { display: block; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: rgb(201,154,92); margin: 6px 0 4px; }
.nam-lead-top p { margin: 0; font-size: 13.5px; line-height: 1.5; color: #d9d6cf; }
.nam-vs { border-top: 1px solid #45433e; margin-top: 18px; padding-top: 14px; }
.nam-vs > p { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: rgb(201,154,92); }
.nam-vs-row { display: grid; grid-template-columns: 170px 1fr 110px; gap: 12px; align-items: center; margin-bottom: 8px; font-size: 14px; }
.nam-vs-row i { display: block; height: 16px; background: #34322e; border-radius: 8px; overflow: hidden; }
.nam-vs-row em { display: block; height: 100%; background: #8a877f; border-radius: 8px; }
.nam-vs-row.is-noi em { background: rgb(201,154,92); }
.nam-vs-row b { text-align: right; font-variant-numeric: tabular-nums; color: #fff; }
.nam-vs small { display: block; margin-top: 8px; font-size: 12.5px; line-height: 1.55; color: #b9b6ae; }
@media (max-width: 640px) { .nam-lead-top { grid-template-columns: 1fr; gap: 14px; } .nam-lead-top b { font-size: 28px; } .nam-vs-row { grid-template-columns: 1fr 90px; } .nam-vs-row span { grid-column: 1 / -1; } }

/* v4: measures panel above the tool, notes in place of tiles */
.nam-leadwrap { margin-top: 8px; }
.nam-leadwrap > h2, .nam-leadwrap > p { max-width: 800px; }
.nam-leadwrap .nam-lead { margin-top: 18px; padding: 26px 26px 20px; }
.nam-lead-top > div + div { border-left: 1px solid #45433e; padding-left: 20px; }
.nam-lead-top span { margin: 0 0 8px; }
.nam-lead-top b { margin-bottom: 8px; }
.nam-chart p.nam-note { margin: 2px 6px 10px; font-size: 14px; line-height: 1.55; color: rgb(51,51,51); }
.nam-chart p.nam-note b { color: rgb(26,26,24); }
@media (max-width: 640px) { .nam-lead-top > div + div { border-left: 0; padding-left: 0; border-top: 1px solid #45433e; padding-top: 14px; } .nam-chart h3 { flex-wrap: wrap; } }

.nam-vs small { margin-top: 0; }
