/* New components are isolated. Original homepage CSS and typography stay unchanged. */
.nm-address {
  position: relative;
  z-index: 6;
  text-align: left;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 5px 24px #10111608;
  color: var(--ink);
}
.nm-address > label {
  display: block;
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 10px;
}
.nm-address-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
}
.nm-address-field {
  position: relative;
  flex: 1;
  min-width: 0;
}
.nm-address input {
  width: 100%;
  height: 54px;
  padding: 0 16px;
  background: #f8f9fb;
  border: 1px solid #d9dce4;
  border-radius: 12px;
  font-size: 16px;
  color: var(--ink);
}
.nm-address .yellow-button {
  padding: 12px 22px;
  white-space: nowrap;
  border-radius: 999px;
}
.nm-help {
  font-size: 13px;
  color: #596174;
  line-height: 1.8;
  margin: 10px 0 0;
}
.nm-home-search {
  margin-top: 20px;
  margin-bottom: 22px;
}
.nm-home-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 20px;
  margin-top: 12px;
  font-size: 14px;
}
.nm-home-links a {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.nm-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin: 5px 0 0;
  padding: 6px;
  list-style: none;
  background: white;
  border: 1px solid #d9dce4;
  border-radius: 12px;
  box-shadow: 0 14px 40px #0002;
  max-height: 360px;
  overflow: auto;
  z-index: 40;
}
.nm-suggestions[hidden] {
  display: none;
}
.nm-suggestions li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
}
.nm-suggestions li small {
  font-size: 12px;
  color: #596174;
  overflow-wrap: anywhere;
}
.nm-suggestions li[aria-selected='true'],
.nm-suggestions li:hover {
  background: #fff5c2;
}
.nm-page {
  max-width: 1320px;
  margin: auto;
  padding: 28px 32px 84px;
  line-height: 1.7;
  color: var(--ink);
}
.nm-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: #596174;
  margin-bottom: 25px;
}
.nm-breadcrumb a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.nm-intro {
  padding: 30px 0 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 30px;
}
.nm-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #685400;
  margin-bottom: 10px;
}
.nm-intro h1 {
  font-size: clamp(27px, 3.2vw, 42px);
  line-height: 1.3;
  letter-spacing: -0.03em;
  max-width: 920px;
}
.nm-intro > p {
  max-width: 820px;
  margin-top: 16px;
  color: #596174;
}
.nm-intro .nm-eyebrow {
  margin-top: 0;
  color: #685400;
}
.nm-page h2 {
  font-size: 23px;
  line-height: 1.45;
  margin-bottom: 16px;
}
.nm-page h3 {
  font-size: 18px;
}
.nm-page p + p {
  margin-top: 10px;
}
.nm-page .yellow-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 13px 20px;
  border-radius: 10px;
  min-height: 48px;
  color: #101116;
  font-weight: 700;
  background: var(--yellow);
  font-size: 14px;
}
.nm-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 18px;
  border: 1px solid #d3d7e2;
  border-radius: 10px;
  background: white;
  font-size: 14px;
  font-weight: 600;
}
.nm-secondary:hover {
  background: #f8f9fb;
}
.nm-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.nm-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 24px 0;
}
.nm-subnav a {
  font-size: 14px;
  border: 1px solid #d9dce4;
  padding: 8px 14px;
  border-radius: 30px;
  background: #fff;
}
.nm-subnav a[aria-current='page'] {
  background: #101116;
  color: white;
  border-color: #101116;
}
.nm-notice {
  padding: 20px 24px;
  background: #fffae4;
  border: 1px solid #f1e7ae;
  border-radius: 14px;
  font-size: 14px;
}
.nm-notice strong {
  display: block;
  font-size: 16px;
  margin-bottom: 6px;
}
.nm-notice a {
  text-decoration: underline;
  font-weight: 700;
}
.nm-page .nm-notice {
  margin-bottom: 24px;
}
.nm-listing {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin-top: 26px;
}
.nm-filters {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #f9fafc;
  padding: 20px;
}
.nm-filters > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 18px;
}
.nm-filter-body {
  padding-top: 20px;
}
.nm-filter-body label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}
.nm-filter-body select,
.nm-filter-body input {
  display: block;
  width: 100%;
  min-width: 0;
  height: 44px;
  border: 1px solid #d3d7e2;
  border-radius: 8px;
  padding: 7px 9px;
  margin-top: 6px;
  background: #fff;
  font-size: 14px;
  color: #101116;
}
.nm-filter-body .nm-secondary {
  width: 100%;
}
.nm-result-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.nm-result-toolbar p {
  font-size: 14px;
  color: #596174;
}
.nm-result-toolbar strong {
  color: #101116;
  font-size: 20px;
}
.nm-result-toolbar select {
  height: 44px;
  border: 1px solid #d3d7e2;
  border-radius: 8px;
  background: white;
  padding: 8px;
  font-size: 14px;
  max-width: 100%;
}
.nm-plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.nm-plan-card {
  border: 1px solid #e1e4eb;
  border-radius: 18px;
  background: white;
  padding: 23px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  box-shadow: 0 3px 14px #10111604;
}
.nm-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  gap: 12px;
}
.nm-tag {
  font-size: 12px;
  border-radius: 5px;
  padding: 3px 9px;
  background: #fff4b5;
  color: #594800;
  font-weight: 600;
}
.nm-favorite {
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 24px;
  flex-shrink: 0;
}
.nm-favorite[aria-pressed='true'] {
  background: #fff0bb;
  color: #9a4317;
}
.nm-provider-logo {
  width: 92px;
  height: 38px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 14px;
}
.nm-plan-card h2 {
  font-size: 18px;
  margin-bottom: 8px;
  overflow-wrap: anywhere;
  line-height: 1.6;
}
.nm-plan-card h2 a:hover {
  text-decoration: underline;
}
.nm-verification {
  font-size: 12px;
  color: #655a40;
  margin-bottom: 12px;
}
.nm-price {
  margin: 6px 0 20px;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 9px;
}
.nm-price span {
  font-size: 34px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.nm-price small {
  font-size: 12px;
  color: #596174;
}
.nm-price strong {
  font-size: 21px;
}
.nm-card-specs {
  margin: 0;
  border-top: 1px solid var(--border);
  padding-top: 12px;
  font-size: 13px;
}
.nm-card-specs div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 0;
}
.nm-card-specs dt {
  color: #596174;
  flex-shrink: 0;
}
.nm-card-specs dd {
  margin: 0;
  text-align: right;
  overflow-wrap: anywhere;
}
.nm-card-bottom {
  margin-top: auto;
  padding-top: 22px;
}
.nm-card-bottom .yellow-button {
  width: 100%;
}
.nm-compare-check {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  margin: 14px 0 0;
  cursor: pointer;
  min-height: 30px;
}
.nm-compare-check input {
  width: 17px;
  height: 17px;
  accent-color: #5d5100;
}
.nm-empty {
  padding: 40px 24px;
  border: 1px dashed #c6ccd7;
  border-radius: 16px;
  background: #fafbfc;
  grid-column: 1/-1;
}
.nm-empty p {
  color: #596174;
  margin-bottom: 20px;
}
.nm-empty .yellow-button {
  margin: 8px;
}
.nm-contact {
  padding: 24px 0;
  margin: 0 0 20px;
  border-bottom: 1px solid var(--border);
}
.nm-detail-lead {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: start;
}
.nm-detail-lead > div > p:last-child {
  max-width: 720px;
  color: #596174;
}
.nm-english {
  font-size: 22px;
  margin: 8px 0 20px;
}
.nm-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  align-items: start;
}
.nm-panel {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 14px;
}
.nm-panel > a {
  display: block;
  margin-top: 20px;
}
.nm-panel details {
  margin-top: 24px;
}
.nm-panel summary {
  cursor: pointer;
  font-weight: 700;
}
.nm-spec-table {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  font-size: 14px;
}
.nm-spec-table > div {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  border-bottom: 1px solid var(--border);
}
.nm-spec-table > div:last-child {
  border: 0;
}
.nm-spec-table dt {
  padding: 13px 16px;
  background: #f7f8fa;
  color: #596174;
}
.nm-spec-table dd {
  margin: 0;
  padding: 13px 16px;
  overflow-wrap: anywhere;
  white-space: pre-line;
}
.nm-source {
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.nm-section {
  margin-top: 40px;
}
.nm-section > p {
  margin-bottom: 18px;
  color: #596174;
}
.nm-estate-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 16px;
  margin: 24px 0;
}
.nm-estate-controls label {
  font-size: 14px;
  flex: 1;
  min-width: 180px;
}
.nm-estate-controls select,
.nm-estate-controls input {
  display: block;
  width: 100%;
  height: 46px;
  border: 1px solid #d3d7e2;
  border-radius: 8px;
  padding: 8px;
  margin-top: 6px;
  background: #fff;
}
.nm-districts {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0;
}
.nm-districts a {
  display: flex;
  flex-direction: column;
  gap: 5px;
  border: 1px solid #e1e4eb;
  border-radius: 10px;
  padding: 14px;
  font-weight: 600;
  font-size: 14px;
}
.nm-districts a small {
  font-size: 11px;
  color: #596174;
  font-weight: 400;
}
.nm-districts a:hover,
.nm-districts a[aria-current='true'] {
  border-color: #d7b800;
  background: #fff9da;
}
.nm-estate-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.nm-estate-card {
  border: 1px solid #e1e4eb;
  border-radius: 12px;
  padding: 19px;
  display: block;
  min-width: 0;
}
.nm-estate-card:hover {
  border-color: #b1990f;
  background: #fffdf4;
}
.nm-estate-card h2 {
  font-size: 17px;
  margin-bottom: 5px;
}
.nm-estate-card p {
  font-size: 12px;
  color: #596174;
  overflow-wrap: anywhere;
}
.nm-estate-card small {
  display: block;
  font-size: 12px;
  margin-top: 10px;
  color: #655a40;
}
.nm-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 28px 0;
}
.nm-directory {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.nm-directory a {
  display: block;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 25px;
}
.nm-directory h2 {
  font-size: 19px;
}
.nm-directory p {
  font-size: 14px;
  color: #596174;
}
.nm-compare-tray {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 50;
  background: #101116;
  color: white;
  padding: 14px 20px;
  border-radius: 14px;
  box-shadow: 0 6px 30px #0003;
  max-width: calc(100% - 24px);
}
.nm-compare-tray .yellow-button {
  color: #101116;
  white-space: nowrap;
  min-height: 40px;
  border-radius: 8px;
  font-size: 14px;
  padding: 8px 16px;
}
.nm-compare-tray button {
  color: white;
  white-space: nowrap;
  font-size: 13px;
}
.nm-compare-tray p {
  font-size: 14px;
  white-space: nowrap;
}
.nm-table-wrap {
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 14px;
  max-width: 100%;
  margin: 25px 0;
}
.nm-table {
  border-collapse: collapse;
  min-width: 620px;
  width: 100%;
  font-size: 14px;
}
.nm-table th,
.nm-table td {
  padding: 18px;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  vertical-align: top;
  text-align: left;
  min-width: 160px;
  max-width: 300px;
  overflow-wrap: anywhere;
}
.nm-table th {
  background: #f8f9fb;
}
.nm-table td a {
  text-decoration: underline;
}
.nm-table caption {
  caption-side: top;
  text-align: left;
  padding: 18px;
  font-size: 13px;
  color: #596174;
}
.nm-toast {
  position: fixed;
  left: 50%;
  bottom: 100px;
  transform: translateX(-50%);
  background: #101116;
  color: white;
  padding: 14px 20px;
  border-radius: 10px;
  z-index: 100;
  max-width: calc(100% - 32px);
  font-size: 14px;
}
.nm-dialog {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  width: 520px;
  max-width: calc(100% - 30px);
}
.nm-dialog::backdrop {
  background: #10111688;
}
.nm-dialog textarea {
  width: 100%;
  min-height: 160px;
  margin: 20px 0;
  font: inherit;
  padding: 12px;
  resize: vertical;
}
.nm-skip {
  position: fixed;
  top: -90px;
  left: 16px;
  background: #ffda22;
  padding: 12px;
  z-index: 100;
}
.nm-skip:focus {
  top: 10px;
}
.nm-inner-footer {
  border-top: 1px solid var(--border);
}
.nm-inner-footer .site-footer {
  margin: 0;
}
.nm-inner-footer a {
  font-size: 13px;
  margin: 8px;
}
.nm-page a:focus-visible,
.nm-page summary:focus-visible {
  outline: 3px solid #b99c00;
  outline-offset: 4px;
}
.nm-page [hidden] {
  display: none !important;
}
@media (min-width: 1600px) {
  .nm-page {
    max-width: 1430px;
  }
  .nm-plan-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 1023px) {
  .nm-page {
    padding: 24px 24px 90px;
  }
  .nm-listing {
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 20px;
  }
  .nm-plan-grid {
    grid-template-columns: 1fr;
  }
  .nm-districts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .nm-estate-grid,
  .nm-directory {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .nm-detail-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .nm-detail-lead {
    gap: 24px;
  }
}
@media (max-width: 767px) {
  .nm-address {
    padding: 16px;
    border-radius: 13px;
  }
  .nm-address-row {
    flex-direction: column;
    gap: 10px;
  }
  .nm-address input {
    height: 50px;
    font-size: 16px;
    padding: 0 12px;
  }
  .nm-address .yellow-button {
    width: 100%;
    min-height: 48px;
  }
  .nm-address > label {
    font-size: 16px;
  }
  .nm-home-search {
    margin-bottom: 18px;
  }
  .nm-home-links {
    font-size: 13px;
    gap: 8px 14px;
  }
  .nm-page {
    padding: 18px 16px 100px;
  }
  .nm-intro {
    padding: 15px 0 25px;
    margin-bottom: 24px;
  }
  .nm-breadcrumb {
    font-size: 12px;
    margin-bottom: 16px;
  }
  .nm-listing {
    display: block;
  }
  .nm-filters {
    margin-bottom: 22px;
    padding: 16px;
  }
  .nm-plan-grid,
  .nm-estate-grid,
  .nm-directory,
  .nm-detail-lead {
    grid-template-columns: 1fr;
  }
  .nm-plan-card {
    padding: 21px;
  }
  .nm-districts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .nm-districts a {
    padding: 10px;
    font-size: 13px;
  }
  .nm-districts a small {
    font-size: 10px;
  }
  .nm-spec-table > div {
    grid-template-columns: 110px minmax(0, 1fr);
  }
  .nm-spec-table dt,
  .nm-spec-table dd {
    padding: 11px 12px;
  }
  .nm-compare-tray {
    bottom: 16px;
    gap: 9px;
    padding: 10px 12px;
  }
  .nm-compare-tray p {
    font-size: 12px;
  }
  .nm-compare-tray .yellow-button {
    padding: 8px 12px;
  }
  .nm-result-toolbar {
    align-items: start;
  }
  .nm-notice {
    padding: 18px;
  }
  .nm-detail-lead {
    gap: 20px;
  }
  .nm-page .nm-detail-lead .nm-notice {
    margin-bottom: 0;
  }
  .nm-english {
    font-size: 19px;
  }
}

/* Existing homepage styles are unchanged; these rules only support real links and unknown prices. */
.plan-card h3 a {
  color: inherit;
  text-decoration: none;
}
.plan-card h3 a:hover {
  text-decoration: underline;
}
.plan-price > .nm-home-ask {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.4;
}
.plan-card > a.provider-logo {
  display: block;
}
.plan-cta {
  text-decoration: none;
}
