/* v0.9.12: normalize Astra shell spacing on every NMD Master post.
   The stylesheet is now enqueued for both plugin-generated posts and manual/demo
   posts that contain .nmd-phone-post, so these rules actually execute on both. */
body.single-post.nmd-master-post #content,
body.single-post.nmd-master-post .site-content {
  padding-top: 0 !important;
  margin-top: 0 !important;
}
body.single-post.nmd-master-post #content > .ast-container,
body.single-post.nmd-master-post .site-content > .ast-container {
  padding-top: 0 !important;
  margin-top: 0 !important;
}
body.single-post.nmd-master-post #primary {
  margin-top: 12px !important;
  padding-top: 0 !important;
}
body.single-post.nmd-master-post .ast-article-single {
  margin-top: 0 !important;
  padding-top: 16px !important;
}
@media (max-width: 921px) {
  body.single-post.nmd-master-post #primary { margin-top: 8px !important; }
  body.single-post.nmd-master-post .ast-article-single { padding-top: 12px !important; }
}
@media (max-width: 544px) {
  body.single-post.nmd-master-post #primary { margin-top: 6px !important; }
  body.single-post.nmd-master-post .ast-article-single { padding-top: 10px !important; }
}

/* v0.9.9: theme-shell cleanup for NMD generated posts only.
   The Master Demo already contains its own phone H1, so Astra's duplicate
   post title/date/author header is hidden. The large gap below the site
   navigation is also reduced, while normal site posts remain untouched. */
body.nmd-generated-post .entry-header {
  display: none !important;
}

body.nmd-generated-post.ast-separate-container #primary,
body.nmd-generated-post #primary {
  margin-top: 20px !important;
}

body.nmd-generated-post.ast-separate-container .ast-article-single,
body.nmd-generated-post .ast-article-single {
  padding-top: 24px !important;
}

body.nmd-generated-post .entry-content {
  margin-top: 0 !important;
}

/* v0.9.10: Astra uses separate responsive container spacing on tablet/mobile.
   Remove that outer shell gap only for NMD-generated posts. The spacing inside
   the Master Demo post remains unchanged. */
@media (max-width: 921px) {
  body.nmd-generated-post #content,
  body.nmd-generated-post .site-content {
    padding-top: 0 !important;
    margin-top: 0 !important;
  }

  body.nmd-generated-post #content > .ast-container,
  body.nmd-generated-post .site-content > .ast-container,
  body.nmd-generated-post .ast-container {
    padding-top: 0 !important;
    margin-top: 0 !important;
  }

  body.nmd-generated-post.ast-separate-container #primary,
  body.nmd-generated-post #primary {
    padding-top: 0 !important;
    margin-top: 12px !important;
  }

  body.nmd-generated-post.ast-separate-container .ast-article-single,
  body.nmd-generated-post .ast-article-single {
    margin-top: 0 !important;
    padding-top: 16px !important;
  }
}

@media (max-width: 544px) {
  body.nmd-generated-post.ast-separate-container #primary,
  body.nmd-generated-post #primary {
    margin-top: 8px !important;
  }

  body.nmd-generated-post.ast-separate-container .ast-article-single,
  body.nmd-generated-post .ast-article-single {
    padding-top: 14px !important;
  }
}

.nmd-phone-post {
    font-family: "Segoe UI", Arial, sans-serif;
    color: #111;
    line-height: 1.55;
  }

  .nmd-phone-hero {
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 24px;
    background: linear-gradient(135deg, #edf6ff, #ffffff);
    border: 1px solid #d8e8f7;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 24px;
  }

  .nmd-phone-img {
    width: 100%;
    max-width: 220px;
    object-fit: contain;
    margin: auto;
    display: block;
  }

  .nmd-image-placeholder {
    width: 100%;
    max-width: 220px;
    min-height: 240px;
    object-fit: contain;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    border: 2px dashed #c8d7e5;
    border-radius: 8px;
    color: #667;
    background: #fff;
  }

  .nmd-phone-post .nmd-phone-title {
    font-size: 32px;
    margin: 0 0 8px;
    font-weight: 800 !important;
    color: #111;
  }

  .nmd-phone-subtitle {
    color: #555;
    margin-bottom: 16px;
    font-size: 16px;
  }

  .nmd-quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }

  .nmd-quick-box {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
  }

  .nmd-quick-label {
    font-size: 12px;
    color: #777;
    margin-bottom: 4px;
  }

  .nmd-quick-value {
    font-size: 17px;
    font-weight: 800;
    color: #000;
  }

  .nmd-section-title {
    font-size: 24px;
    font-weight: 800;
    margin: 28px 0 14px;
    border-bottom: 3px solid #ff4500;
    display: inline-block;
    padding-bottom: 5px;
    color: #111;
  }

  .nmd-summary {
    background: #fff8f5;
    border-left: 4px solid #ff4500;
    padding: 14px 16px;
    border-radius: 6px;
    margin-bottom: 22px;
    color: #222;
  }

  .nmd-highlight-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
  }

  .nmd-highlight-card {
    background: #fff;
    border: 1px solid #eadfd9;
    border-radius: 8px;
    padding: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  }

  .nmd-highlight-card span {
    display: block;
    color: #ff4500;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 5px;
  }

  .nmd-highlight-card strong {
    display: block;
    color: #111;
    font-size: 16px;
    line-height: 1.35;
  }

  .nmd-spec-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    width: 100%;
    max-width: none;
    margin: 0 0 22px;
    box-sizing: border-box;
  }

  .nmd-spec-group {
    width: 100%;
    max-width: none;
    min-width: 0;
    box-sizing: border-box;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
  }

  .nmd-spec-group h3 {
    margin: 0;
    padding: 11px 14px;
    background: #fff5f0;
    color: #ff4500;
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    border-bottom: 1px solid #f0ddd4;
  }

  .nmd-spec-row {
    display: grid !important;
    grid-template-columns: 170px minmax(0, 1fr) !important;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    align-items: stretch;
    border-bottom: 1px solid #eee;
  }

  .nmd-spec-row:last-child {
    border-bottom: 0;
  }

  .nmd-spec-row span {
    display: flex;
    align-items: center;
    min-width: 0;
    box-sizing: border-box;
    background: #fafafa;
    padding: 11px 14px;
    font-weight: 700;
    color: #333;
    border-right: 1px solid #eee;
    overflow-wrap: anywhere;
  }

  .nmd-spec-row p {
    display: block;
    min-width: 0;
    box-sizing: border-box;
    margin: 0 !important;
    padding: 11px 14px;
    color: #111;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .nmd-procon {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    align-items: stretch;
    margin-bottom: 22px;
  }

  .nmd-procon-box {
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 0 18px 18px;
    background: #fff;
    min-height: 100%;
  }

  .nmd-procon-box h3 {
    margin: 0 -18px 16px;
    padding: 11px 14px;
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #fff5f0;
    color: #ff4500;
    border-bottom: 1px solid #f0ddd4;
    border-radius: 8px 8px 0 0;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.25;
  }

  .nmd-procon-box ul {
    margin: 0;
    padding-left: 24px;
    list-style: disc outside;
  }

  .nmd-procon-box li {
    margin: 0 0 10px;
    padding-left: 2px;
  }

  .nmd-procon-box li:last-child {
    margin-bottom: 0;
  }

  .nmd-procon-box li::marker {
    color: #ff4500;
    font-size: 1.05em;
  }

  .nmd-verdict {
    background: #f5f7f7;
    border-radius: 8px;
    padding: 16px;
    margin-top: 0;
    font-weight: 500;
  }

  @media (max-width: 600px) {
    .nmd-phone-hero {
      grid-template-columns: 1fr;
      text-align: center;
      padding: 14px;
    }

    .nmd-phone-post .nmd-phone-title {
      font-size: 28px;
    }

    .nmd-phone-subtitle {
      font-size: 15px;
    }

    .nmd-quick-grid {
      grid-template-columns: repeat(2, 1fr);
    }

    .nmd-section-title {
      font-size: 23px;
    }

    .nmd-highlight-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 10px;
    }

    .nmd-highlight-card {
      padding: 10px;
    }

    .nmd-highlight-card span {
      font-size: 12px;
    }

    .nmd-highlight-card strong {
      font-size: 13px;
    }

    .nmd-spec-list {
      gap: 12px;
      width: 100%;
    }

    .nmd-spec-group h3 {
      font-size: 14px;
      padding: 10px 12px;
    }

    /* MASTER DEMO MOBILE SPEC LAYOUT: keep label and value side-by-side. */
    .nmd-spec-row {
      grid-template-columns: 112px minmax(0, 1fr) !important;
    }

    .nmd-spec-row span {
      width: auto;
      border-right: 1px solid #eee;
      border-bottom: 0;
      padding: 10px 10px;
      font-size: 13px;
    }

    .nmd-spec-row p {
      width: auto;
      padding: 10px 10px;
      font-size: 13px;
      line-height: 1.45;
    }

    .nmd-procon {
      grid-template-columns: 1fr;
    }
  }
  .nmd-disclaimer{margin-top:24px;font-size:13px;color:#555;}

/* v0.12.0 NMD automatic internal linking - Master orange theme */
.nmd-discovery{margin-top:28px;font-family:"Segoe UI",Arial,sans-serif}.nmd-discovery h2{font-size:24px;line-height:1.3;margin:24px 0 14px;color:#1f2937}.nmd-explore-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.nmd-explore-card,.nmd-compare-link{border:1px solid #fed7aa;background:#fff7ed;color:#ea580c!important;border-radius:10px;padding:13px 14px;text-decoration:none!important;font-weight:700}.nmd-related-scroll,.nmd-compare-scroll{display:flex;gap:14px;overflow-x:auto;scroll-snap-type:x proximity;padding:2px 2px 10px;-webkit-overflow-scrolling:touch}.nmd-related-card{flex:0 0 190px;scroll-snap-align:start;border:1px solid #f1f1f1;border-radius:12px;background:#fff;padding:12px;text-decoration:none!important;color:#1f2937!important;box-shadow:0 2px 10px rgba(0,0,0,.04)}.nmd-related-card img{display:block;width:100%;height:130px;object-fit:contain;background:#fff;border-radius:8px;margin-bottom:9px}.nmd-related-card strong{display:block;font-size:15px;line-height:1.35}.nmd-related-card span{display:block;font-size:13px;margin-top:6px;color:#4b5563}.nmd-related-card em{display:block;font-style:normal;font-weight:700;color:#ea580c;margin-top:8px;font-size:13px}.nmd-compare-link{flex:0 0 auto;scroll-snap-align:start}.nmd-related-scroll::-webkit-scrollbar,.nmd-compare-scroll::-webkit-scrollbar{height:6px}.nmd-related-scroll::-webkit-scrollbar-thumb,.nmd-compare-scroll::-webkit-scrollbar-thumb{background:#fed7aa;border-radius:9px}@media(max-width:767px){.nmd-discovery h2{font-size:23px}.nmd-explore-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.nmd-explore-card{padding:11px;font-size:13px}.nmd-related-card{flex-basis:160px}.nmd-related-card img{height:112px}}

/* v0.15.5 - Polished automatic internal linking UI */
.nmd-discovery{margin-top:30px;font-family:"Segoe UI",Arial,sans-serif;color:#111827}
.nmd-discovery *{box-sizing:border-box}
.nmd-discovery-block{margin:0 0 18px;padding:16px;border:1px solid #e7e9ef;border-radius:14px;background:#fff;box-shadow:0 3px 14px rgba(15,23,42,.035)}
.nmd-discovery-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 14px}
.nmd-discovery-head h2{font-size:22px!important;line-height:1.25!important;margin:0!important;color:#0f172a!important;font-weight:800!important}
.nmd-discovery-head span{flex:0 0 auto;border:1px solid #dbeafe;background:#eff6ff;color:#1d4ed8;border-radius:999px;padding:5px 9px;font-size:12px;font-weight:700}
.nmd-related-scroll,.nmd-comparison-card-scroll{display:flex;gap:14px;overflow-x:auto;scroll-snap-type:x proximity;padding:2px 2px 9px;-webkit-overflow-scrolling:touch}
.nmd-related-scroll::-webkit-scrollbar,.nmd-comparison-card-scroll::-webkit-scrollbar{height:6px}.nmd-related-scroll::-webkit-scrollbar-thumb,.nmd-comparison-card-scroll::-webkit-scrollbar-thumb{background:#dbeafe;border-radius:999px}
.nmd-related-card{flex:0 0 190px;scroll-snap-align:start;border:1px solid #e5e7eb;border-radius:12px;background:#fff;padding:10px;text-decoration:none!important;color:#111827!important;box-shadow:0 2px 8px rgba(15,23,42,.04);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.nmd-related-card:hover{transform:translateY(-2px);border-color:#bfdbfe;box-shadow:0 7px 18px rgba(15,23,42,.08)}
.nmd-related-media{display:block;height:132px;border-radius:9px;background:#f8fafc;overflow:hidden;margin-bottom:9px}.nmd-related-media img,.nmd-link-phone-img{display:block;width:100%;height:100%;object-fit:contain!important;background:#fff}
.nmd-related-card strong{display:block;font-size:15px;line-height:1.35;color:#111827}.nmd-related-price{display:block;font-size:13px;margin-top:6px;color:#2563eb}.nmd-related-card em{display:block;font-style:normal;font-weight:700;color:#ea580c;margin-top:8px;font-size:13px}
.nmd-comparison-card{flex:0 0 255px;scroll-snap-align:start;border:1px solid #e5e7eb;border-radius:12px;background:#fff;padding:10px;text-decoration:none!important;color:#111827!important;box-shadow:0 2px 8px rgba(15,23,42,.04);transition:transform .18s ease,box-shadow .18s ease}
.nmd-comparison-card:hover{transform:translateY(-2px);box-shadow:0 7px 18px rgba(15,23,42,.08)}
.nmd-comparison-media{height:112px;display:grid;grid-template-columns:1fr 34px 1fr;align-items:center;gap:6px;background:#f8fafc;border-radius:9px;padding:8px;margin-bottom:9px}
.nmd-comparison-phone{height:94px;min-width:0}.nmd-comparison-phone img{width:100%;height:100%;object-fit:contain!important;background:transparent}.nmd-vs-badge{width:30px;height:30px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#ff5a00;color:#fff;font-size:11px;font-weight:900;box-shadow:0 3px 8px rgba(255,90,0,.28)}
.nmd-image-placeholder{display:flex;align-items:center;justify-content:center;height:100%;border:1px dashed #cbd5e1;border-radius:7px;color:#94a3b8;font-size:11px;background:#fff}
.nmd-comparison-card strong{display:block;text-align:center;font-size:14px;line-height:1.35;min-height:38px;color:#111827}.nmd-comparison-card em{display:block;text-align:center;margin-top:8px;padding:7px 8px;border:1px solid #c7d2fe;border-radius:7px;color:#4338ca;font-style:normal;font-weight:700;font-size:12px}
.nmd-explore-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.nmd-explore-card{min-height:72px;display:grid;grid-template-columns:38px minmax(0,1fr) 18px;align-items:center;gap:9px;border:1px solid #e5e7eb!important;background:#fff!important;color:#111827!important;border-radius:11px!important;padding:10px 11px!important;text-decoration:none!important;font-weight:400!important;transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease}
.nmd-explore-card:hover{transform:translateY(-1px);border-color:#bfdbfe!important;box-shadow:0 5px 15px rgba(15,23,42,.06)}
.nmd-explore-icon{width:36px;height:36px;border-radius:9px;display:flex;align-items:center;justify-content:center;background:#eff6ff;color:#2563eb;font-size:18px;font-weight:900}.nmd-explore-copy{min-width:0}.nmd-explore-copy strong{display:block;font-size:13px;line-height:1.3;color:#111827}.nmd-explore-copy small{display:block;margin-top:3px;font-size:11px;color:#64748b}.nmd-explore-card b{font-size:22px;line-height:1;color:#0f172a;text-align:right}
.nmd-phone-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.nmd-phone-detail-card{display:grid;grid-template-columns:84px minmax(0,1fr);gap:12px;align-items:center;min-height:104px;border:1px solid #e5e7eb;border-radius:12px;background:#fff;padding:10px;text-decoration:none!important;color:#111827!important}.nmd-phone-detail-media{display:block;width:84px;height:84px;background:#f8fafc;border-radius:9px;overflow:hidden}.nmd-phone-detail-body strong{display:block;font-size:15px;line-height:1.35}.nmd-phone-detail-body small{display:block;margin-top:5px;color:#2563eb;font-size:12px}.nmd-phone-detail-body em{display:block;margin-top:7px;color:#ea580c;font-style:normal;font-size:12px;font-weight:700}
.nmd-comparison-discovery .nmd-more-comparisons-block{margin-bottom:0}
@media(max-width:767px){
  .nmd-discovery-block{padding:13px;border-radius:12px}.nmd-discovery-head h2{font-size:19px!important}.nmd-discovery-head span{font-size:10px;padding:4px 7px}
  .nmd-related-card{flex-basis:158px}.nmd-related-media{height:112px}.nmd-comparison-card{flex-basis:228px}.nmd-comparison-media{height:102px}.nmd-comparison-phone{height:84px}
  .nmd-explore-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.nmd-explore-card{grid-template-columns:32px minmax(0,1fr) 14px;gap:7px;min-height:66px;padding:8px!important}.nmd-explore-icon{width:31px;height:31px;font-size:15px}.nmd-explore-copy strong{font-size:12px}.nmd-explore-copy small{font-size:10px}
  .nmd-phone-detail-grid{grid-template-columns:1fr}.nmd-phone-detail-card{grid-template-columns:72px minmax(0,1fr);min-height:92px}.nmd-phone-detail-media{width:72px;height:72px}
}


/* v0.15.6 - Reference-style horizontal discovery carousels */
.nmd-discovery{
  width:100%;max-width:100%;overflow:hidden;margin-top:30px;
}
.nmd-discovery-block{
  width:100%;max-width:100%;overflow:hidden;margin:0 0 18px;padding:18px 16px 14px;
  border:1px solid #e6eaf0;border-radius:14px;background:#fff;box-shadow:0 3px 14px rgba(15,23,42,.035);
}
.nmd-discovery-head{margin-bottom:14px}
.nmd-discovery-head h2{font-size:22px!important;line-height:1.25!important;color:#111827!important}
.nmd-discovery-head span{background:#eef5ff;border-color:#cfe0ff;color:#2457d6;padding:4px 8px;font-size:11px}

/* Every discovery row scrolls sideways. Never shrink cards to fit the column. */
.nmd-related-scroll,
.nmd-comparison-card-scroll,
.nmd-explore-grid,
.nmd-phone-detail-grid{
  display:flex!important;
  flex-wrap:nowrap!important;
  align-items:stretch;
  gap:14px!important;
  width:100%;max-width:100%;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  padding:2px 2px 12px!important;
  scroll-snap-type:x mandatory;
  scroll-behavior:smooth;
  overscroll-behavior-inline:contain;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:thin;
  scrollbar-color:#ffd3ad #fff3e8;
}
.nmd-related-scroll::-webkit-scrollbar,
.nmd-comparison-card-scroll::-webkit-scrollbar,
.nmd-explore-grid::-webkit-scrollbar,
.nmd-phone-detail-grid::-webkit-scrollbar{height:7px}
.nmd-related-scroll::-webkit-scrollbar-track,
.nmd-comparison-card-scroll::-webkit-scrollbar-track,
.nmd-explore-grid::-webkit-scrollbar-track,
.nmd-phone-detail-grid::-webkit-scrollbar-track{background:#fff3e8;border-radius:999px}
.nmd-related-scroll::-webkit-scrollbar-thumb,
.nmd-comparison-card-scroll::-webkit-scrollbar-thumb,
.nmd-explore-grid::-webkit-scrollbar-thumb,
.nmd-phone-detail-grid::-webkit-scrollbar-thumb{background:#ffc894;border-radius:999px}

/* You May Also Like */
.nmd-related-card{
  flex:0 0 195px!important;width:195px;min-width:195px;max-width:195px;
  scroll-snap-align:start;border:1px solid #e7e9ee;border-radius:12px;background:#fff;
  padding:11px!important;box-shadow:0 2px 8px rgba(15,23,42,.045);
}
.nmd-related-media{height:142px!important;margin-bottom:10px;border-radius:9px;background:#fafafa}
.nmd-related-media img{width:100%!important;height:100%!important;object-fit:contain!important;padding:3px}
.nmd-related-card strong{font-size:14px!important;line-height:1.35!important;min-height:38px;color:#111827!important}
.nmd-related-price{font-size:12px!important;color:#2563eb!important;margin-top:5px!important}
.nmd-related-card em{font-size:12px!important;margin-top:8px!important;color:#ff5a00!important}

/* Compare With / More Comparisons: two equal phone panels + central VS */
.nmd-comparison-card{
  flex:0 0 285px!important;width:285px;min-width:285px;max-width:285px;
  scroll-snap-align:start;border:1px solid #e5e7eb;border-radius:12px;background:#fff;
  padding:12px!important;box-shadow:0 2px 8px rgba(15,23,42,.045);overflow:hidden;
}
.nmd-comparison-media{
  display:grid!important;grid-template-columns:minmax(0,1fr) 34px minmax(0,1fr)!important;
  align-items:center!important;gap:7px!important;width:100%;height:132px!important;
  padding:9px!important;margin:0 0 10px!important;border-radius:10px;background:#f8fafc;overflow:hidden;
}
.nmd-comparison-phone{
  display:flex!important;align-items:center!important;justify-content:center!important;
  width:100%!important;min-width:0!important;height:110px!important;overflow:hidden;border-radius:8px;background:#fff;
}
.nmd-comparison-phone img{
  display:block!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;
  object-fit:contain!important;margin:0!important;padding:3px!important;background:#fff!important;
}
.nmd-image-placeholder{width:100%;height:100%;font-size:10px}
.nmd-vs-badge{position:relative;z-index:2;width:30px!important;height:30px!important;min-width:30px;background:#ff5a00!important}
.nmd-comparison-card strong{font-size:13px!important;line-height:1.35!important;min-height:36px!important;text-align:center!important;overflow-wrap:anywhere}
.nmd-comparison-card em{font-size:11px!important;padding:7px 6px!important;margin-top:8px!important}

/* Explore More: reference-like wide quick-browse cards, also horizontally scrollable */
.nmd-explore-card{
  flex:0 0 205px!important;width:205px;min-width:205px;max-width:205px;
  scroll-snap-align:start;display:grid!important;grid-template-columns:40px minmax(0,1fr) 16px!important;
  align-items:center!important;gap:10px!important;min-height:78px!important;
  padding:11px 12px!important;border:1px solid #e5e7eb!important;border-radius:11px!important;background:#fff!important;
}
.nmd-explore-icon{width:38px!important;height:38px!important;min-width:38px;border-radius:9px;background:#eef5ff!important;color:#2563eb!important}
.nmd-explore-copy{min-width:0!important;overflow:hidden}
.nmd-explore-copy strong{
  display:block!important;font-size:13px!important;line-height:1.3!important;color:#111827!important;
  white-space:normal!important;word-break:normal!important;overflow-wrap:normal!important;hyphens:none!important;
}
.nmd-explore-copy small{font-size:10px!important;line-height:1.3!important;color:#64748b!important;margin-top:4px!important}
.nmd-explore-card b{font-size:20px!important}

/* Comparison page phone-detail cards */
.nmd-phone-detail-card{
  flex:0 0 255px!important;width:255px;min-width:255px;max-width:255px;
  scroll-snap-align:start;display:grid!important;grid-template-columns:92px minmax(0,1fr)!important;
  gap:12px!important;align-items:center!important;min-height:112px!important;padding:10px!important;
  border:1px solid #e5e7eb;border-radius:12px;background:#fff;text-decoration:none!important;color:#111827!important;
}
.nmd-phone-detail-media{width:92px!important;height:92px!important;border-radius:9px;background:#f8fafc;overflow:hidden}
.nmd-phone-detail-media img{width:100%!important;height:100%!important;object-fit:contain!important;padding:3px}
.nmd-phone-detail-body{min-width:0}.nmd-phone-detail-body strong{font-size:14px!important;line-height:1.35!important;overflow-wrap:anywhere}

@media (max-width:767px){
  .nmd-discovery-block{padding:14px 12px 11px}
  .nmd-discovery-head h2{font-size:19px!important}
  .nmd-related-scroll,.nmd-comparison-card-scroll,.nmd-explore-grid,.nmd-phone-detail-grid{gap:10px!important;padding-bottom:10px!important}
  .nmd-related-card{flex-basis:166px!important;width:166px;min-width:166px;max-width:166px;padding:9px!important}
  .nmd-related-media{height:118px!important}.nmd-related-card strong{font-size:12px!important;min-height:34px}
  .nmd-comparison-card{flex-basis:245px!important;width:245px;min-width:245px;max-width:245px;padding:9px!important}
  .nmd-comparison-media{height:112px!important;grid-template-columns:minmax(0,1fr) 30px minmax(0,1fr)!important;padding:7px!important}
  .nmd-comparison-phone{height:92px!important}.nmd-vs-badge{width:27px!important;height:27px!important;min-width:27px;font-size:9px!important}
  .nmd-explore-card{flex-basis:188px!important;width:188px;min-width:188px;max-width:188px;grid-template-columns:36px minmax(0,1fr) 14px!important;min-height:72px!important;padding:9px 10px!important}
  .nmd-explore-icon{width:34px!important;height:34px!important;min-width:34px}.nmd-explore-copy strong{font-size:12px!important}
  .nmd-phone-detail-card{flex-basis:225px!important;width:225px;min-width:225px;max-width:225px;grid-template-columns:74px minmax(0,1fr)!important;min-height:94px!important}
  .nmd-phone-detail-media{width:74px!important;height:74px!important}
}

/* v0.15.8 – NMD orange discovery UI, matched to approved reference */
.nmd-discovery{--nmd-orange:#ff5a00;--nmd-orange-soft:#fff4ed;--nmd-orange-line:#ffb98f}
.nmd-discovery-block{padding:16px 14px 12px!important;border-radius:14px!important}
.nmd-discovery-head{margin-bottom:10px!important}
.nmd-discovery-head span{background:#fff7f2!important;border:1px solid #ffc7a6!important;color:#ff5a00!important}
.nmd-explore-grid,.nmd-related-scroll,.nmd-comparison-card-scroll,.nmd-phone-detail-grid{gap:12px!important;padding:2px 1px 9px!important}
.nmd-explore-card,.nmd-related-card,.nmd-comparison-card,.nmd-phone-detail-card{transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease}
.nmd-explore-card:hover,.nmd-explore-card:focus-visible,.nmd-related-card:hover,.nmd-related-card:focus-visible,.nmd-comparison-card:hover,.nmd-comparison-card:focus-visible,.nmd-phone-detail-card:hover,.nmd-phone-detail-card:focus-visible{border-color:#ff5a00!important;box-shadow:0 4px 15px rgba(255,90,0,.12)!important;outline:none}
.nmd-explore-card{flex-basis:210px!important;width:210px;min-width:210px;max-width:210px;border-color:#ffd0b5!important;background:#fff!important}
.nmd-explore-icon{width:42px!important;height:42px!important;min-width:42px!important;border-radius:50%!important;background:#fff1e8!important;color:#ff5a00!important;font-size:20px!important;font-weight:800!important}
.nmd-explore-copy strong{font-size:13px!important}.nmd-explore-card b{color:#ff5a00!important}

/* Related cards: no price; compact vertical whitespace + home-card style specs. */
.nmd-related-card{flex-basis:205px!important;width:205px;min-width:205px;max-width:205px;padding:9px!important;border-color:#e5e7eb!important}
.nmd-related-media{height:132px!important;margin-bottom:7px!important}
.nmd-related-card strong{min-height:0!important;margin:0 0 7px!important;font-size:13px!important}
.nmd-related-price{display:none!important}
.nmd-related-specs{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px!important;margin:4px 0 7px!important;padding-top:7px!important;border-top:1px solid #f0f0f0}
.nmd-related-specs span{display:flex!important;min-width:0;flex-direction:column;align-items:center;gap:3px;text-align:center}
.nmd-related-specs i{display:flex;width:25px;height:25px;align-items:center;justify-content:center;border:1px solid #ffd0b5;border-radius:50%;background:#fff5ef;color:#ff5a00;font-style:normal;font-size:11px;line-height:1}
.nmd-related-specs b{display:block;max-width:100%;font-size:9px!important;line-height:1.15!important;color:#111827!important;font-weight:600!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nmd-related-card em{margin-top:2px!important;color:#ff5a00!important;font-weight:600}

.nmd-comparison-card{border-color:#e5e7eb!important}.nmd-comparison-card em{border:1px solid #ffb98f!important;color:#ff5a00!important;background:#fff!important;border-radius:7px!important;font-weight:600}
.nmd-comparison-card:hover em{background:#fff6f0!important}
.nmd-vs-badge{background:#ff5a00!important;color:#fff!important}

@media (max-width:767px){
 .nmd-discovery-block{padding:13px 11px 10px!important}
 .nmd-explore-card{flex-basis:190px!important;width:190px;min-width:190px;max-width:190px}
 .nmd-related-card{flex-basis:184px!important;width:184px;min-width:184px;max-width:184px;padding:8px!important}
 .nmd-related-media{height:116px!important;margin-bottom:6px!important}
 .nmd-related-specs{gap:2px!important;margin-bottom:6px!important}.nmd-related-specs i{width:23px;height:23px}.nmd-related-specs b{font-size:8px!important}
}

/* v0.15.9 – discovery polish: fix clipped hover borders, tighter related cards, real SVG quick-browse icons */
.nmd-discovery{--nmd-orange:#ff5a00;--nmd-orange-soft:#fff4ed;--nmd-orange-line:#ffb98f}

/* Give the first/last cards breathing room so their vertical hover border never gets clipped by the scroller. */
.nmd-related-scroll,
.nmd-comparison-card-scroll,
.nmd-explore-grid,
.nmd-phone-detail-grid{
  box-sizing:border-box!important;
  padding:4px 6px 10px!important;
  scroll-padding-inline:6px;
}
.nmd-explore-card,
.nmd-related-card,
.nmd-comparison-card,
.nmd-phone-detail-card{
  transform:none!important;
  box-sizing:border-box!important;
}
.nmd-explore-card:hover,.nmd-explore-card:focus-visible,
.nmd-related-card:hover,.nmd-related-card:focus-visible,
.nmd-comparison-card:hover,.nmd-comparison-card:focus-visible,
.nmd-phone-detail-card:hover,.nmd-phone-detail-card:focus-visible{
  transform:none!important;
  border-color:var(--nmd-orange)!important;
  box-shadow:0 4px 15px rgba(255,90,0,.12)!important;
}

/* Explore More: actual NMD-style phone/RAM/storage/price SVG icons. */
.nmd-explore-icon{
  width:42px!important;height:42px!important;min-width:42px!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  border:1px solid #ffd1b7!important;border-radius:50%!important;
  background:#fff4ed!important;color:var(--nmd-orange)!important;
}
.nmd-explore-icon svg{display:block;width:21px;height:21px;fill:currentColor}
.nmd-explore-card:hover .nmd-explore-icon,.nmd-explore-card:focus-visible .nmd-explore-icon{
  background:#fff0e6!important;border-color:var(--nmd-orange)!important;
}

/* You May Also Like: remove the four mini-spec rows and cut the side whitespace roughly in half. */
.nmd-related-card{
  flex-basis:195px!important;width:195px!important;min-width:195px!important;max-width:195px!important;
  padding:5px!important;
}
.nmd-related-media{
  height:132px!important;margin:0 0 6px!important;border-radius:8px!important;overflow:hidden!important;
}
.nmd-related-media img{
  display:block!important;width:100%!important;height:100%!important;object-fit:contain!important;padding:0!important;margin:0!important;
}
.nmd-related-card strong{
  display:block!important;min-height:0!important;margin:0!important;padding:2px 4px 0!important;
  font-size:13px!important;line-height:1.35!important;
}
.nmd-related-specs{display:none!important}
.nmd-related-price{display:none!important}
.nmd-related-card em{
  display:block!important;margin:7px 0 2px!important;padding:0 4px!important;
  color:var(--nmd-orange)!important;font-size:12px!important;font-weight:600!important;
}

@media (max-width:767px){
  .nmd-related-scroll,.nmd-comparison-card-scroll,.nmd-explore-grid,.nmd-phone-detail-grid{padding:4px 5px 9px!important}
  .nmd-related-card{flex-basis:176px!important;width:176px!important;min-width:176px!important;max-width:176px!important;padding:4px!important}
  .nmd-related-media{height:116px!important;margin-bottom:5px!important}
  .nmd-related-card strong{padding-left:3px!important;padding-right:3px!important;font-size:12px!important}
  .nmd-related-card em{padding-left:3px!important;padding-right:3px!important}
  .nmd-explore-icon{width:38px!important;height:38px!important;min-width:38px!important}
  .nmd-explore-icon svg{width:19px;height:19px}
}

/* v0.16.0 final discovery-card refinements */
.nmd-discovery .nmd-related-card{
  padding:2px!important;
}
.nmd-discovery .nmd-related-media{
  margin:0 0 5px!important;
  border-radius:8px!important;
  overflow:hidden!important;
}
.nmd-discovery .nmd-related-media img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
  object-fit:contain!important;
}
.nmd-discovery .nmd-related-card strong,
.nmd-discovery .nmd-related-card em{
  padding-left:3px!important;
  padding-right:3px!important;
}
/* Hide every legacy mini-spec container from older cached/generated discovery markup. */
.nmd-discovery .nmd-related-card .nmd-related-specs,
.nmd-discovery .nmd-related-card .md-mobile-specs,
.nmd-discovery .nmd-related-card .md-mobile-spec,
.nmd-discovery .nmd-related-card .nmd-related-price{
  display:none!important;
}
/* Exact orange SVG treatment for Brand/Phone, RAM, Storage and Price cards. */
.nmd-discovery .nmd-explore-icon{
  width:42px!important;
  height:42px!important;
  min-width:42px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  border:1px solid #ffd1b7!important;
  border-radius:50%!important;
  background:#fff4ed!important;
  color:#ff5a00!important;
}
.nmd-discovery .nmd-explore-icon svg{
  width:22px!important;
  height:22px!important;
  display:block!important;
  fill:currentColor!important;
}
.nmd-discovery .nmd-explore-card:hover,
.nmd-discovery .nmd-explore-card:focus-visible{
  border-color:#ff5a00!important;
  box-shadow:0 4px 15px rgba(255,90,0,.14)!important;
}
@media (max-width:767px){
  .nmd-discovery .nmd-related-card{padding:2px!important}
  .nmd-discovery .nmd-related-card strong,
  .nmd-discovery .nmd-related-card em{padding-left:2px!important;padding-right:2px!important}
}

/* v0.16.1 – You May Also Like exact edge-to-edge media + tighter text position */
.nmd-discovery .nmd-related-card{
  padding:0!important;
  overflow:hidden!important;
}
.nmd-discovery .nmd-related-media{
  display:block!important;
  width:100%!important;
  height:132px!important;
  margin:0!important;
  padding:0!important;
  border-radius:0!important;
  overflow:hidden!important;
  background:#fff!important;
}
.nmd-discovery .nmd-related-media img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
  object-fit:cover!important;
  border-radius:0!important;
}
.nmd-discovery .nmd-related-card strong{
  display:block!important;
  margin:-2px 0 0!important;
  padding:7px 8px 0!important;
  min-height:0!important;
}
.nmd-discovery .nmd-related-card em{
  display:block!important;
  margin:0 0 7px!important;
  padding:5px 8px 0!important;
}
.nmd-discovery .nmd-related-card .nmd-related-specs,
.nmd-discovery .nmd-related-card .md-mobile-specs,
.nmd-discovery .nmd-related-card .md-mobile-spec,
.nmd-discovery .nmd-related-card .nmd-related-price{
  display:none!important;
}
@media (max-width:767px){
  .nmd-discovery .nmd-related-media{height:116px!important}
  .nmd-discovery .nmd-related-card strong{padding:7px 7px 0!important}
  .nmd-discovery .nmd-related-card em{padding:5px 7px 0!important}
}

/* v0.16.2 – You May Also Like: zero horizontal media gap only; keep top breathing room; name 3px lower */
.nmd-discovery .nmd-related-card{
  padding:8px 0 0!important;
  overflow:hidden!important;
}
.nmd-discovery .nmd-related-media{
  display:block!important;
  width:100%!important;
  height:132px!important;
  margin:0 0 7px!important;
  padding:0!important;
  border-radius:8px 8px 0 0!important;
  overflow:hidden!important;
  background:#fff!important;
}
.nmd-discovery .nmd-related-media img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
  object-fit:contain!important;
  object-position:center!important;
}
.nmd-discovery .nmd-related-card strong{
  display:block!important;
  margin:0!important;
  padding:10px 8px 0!important;
  min-height:0!important;
}
.nmd-discovery .nmd-related-card em{
  display:block!important;
  margin:0 0 7px!important;
  padding:5px 8px 0!important;
}
.nmd-discovery .nmd-related-card .nmd-related-specs,
.nmd-discovery .nmd-related-card .md-mobile-specs,
.nmd-discovery .nmd-related-card .md-mobile-spec,
.nmd-discovery .nmd-related-card .nmd-related-price{display:none!important;}
@media (max-width:767px){
  .nmd-discovery .nmd-related-card{padding:7px 0 0!important;}
  .nmd-discovery .nmd-related-media{height:116px!important;margin-bottom:7px!important;}
  .nmd-discovery .nmd-related-card strong{padding:10px 7px 0!important;}
  .nmd-discovery .nmd-related-card em{padding:5px 7px 0!important;}
}


/* v0.16.3 – You May Also Like: reduce the gap above Phone Name by exactly 6px */
.nmd-discovery .nmd-related-card strong{
  padding-top:4px!important;
}
@media (max-width:767px){
  .nmd-discovery .nmd-related-card strong{padding-top:1px!important;}
}

/* v0.16.4 – You May Also Like: reduce Phone Name top spacing by a further 2px only */
.nmd-discovery .nmd-related-card strong{
  padding-top:2px!important;
}
@media (max-width:767px){
  .nmd-discovery .nmd-related-card strong{padding-top:0!important;}
}

/* v0.16.5 – You May Also Like: reduce Phone Name upper gap by a further 3px only */
.nmd-discovery .nmd-related-card strong{
  position:relative!important;
  top:-3px!important;
}
\n\n/* v0.16.6 – Compare With: remove inner image whitespace only, making both phones larger */
.nmd-discovery .nmd-comparison-media{
  padding:3px!important;
}
.nmd-discovery .nmd-comparison-phone{
  height:126px!important;
  padding:0!important;
  margin:0!important;
  overflow:hidden!important;
  background:#fff!important;
}
.nmd-discovery .nmd-comparison-phone img,
.nmd-discovery .nmd-comparison-phone .nmd-link-phone-img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  max-height:none!important;
  margin:0!important;
  padding:0!important;
  object-fit:contain!important;
  object-position:center!important;
}
@media (max-width:767px){
  .nmd-discovery .nmd-comparison-media{padding:3px!important;}
  .nmd-discovery .nmd-comparison-phone{height:106px!important;}
}


/* v0.16.7 – shorter discovery headings + breathing room around title vs */
.nmd-discovery .nmd-comparison-card strong .nmd-title-vs{
  display:inline-block!important;
  margin-left:4px!important;
  margin-right:4px!important;
}

/* v0.16.9 – Compare With: reduce the gap below the comparison title by a further 6px only */
.nmd-discovery .nmd-comparison-card > strong{
  position:relative!important;
  top:8px!important;
}


/* v0.16.11 – Compare With: move only the comparison title 3px upward, reducing the gap above the title */

/* v0.16.12 – Single phone post > Compare With cards only:
   title top gap -4px from v0.16.11; title-to-button visual gap +2px net. */
body.single-post .nmd-discovery .nmd-compare-block .nmd-comparison-card > strong{
  top:8px!important;
}
body.single-post .nmd-discovery .nmd-compare-block .nmd-comparison-card > em{
  position:relative!important;
  top:-2px!important;
}

/* v0.16.13 – Batched single-post discovery spacing refinements.
   1) Compare With: reduce the title's upper space by a further 1px.
   2) Explore More: add 3px between the icon area and text on every card.
   3) Related Phones: add 3px left breathing room for title/action on every card. */
body.single-post .nmd-discovery .nmd-compare-block .nmd-comparison-card > strong{
  top:7px!important;
}
body.single-post .nmd-discovery .nmd-explore-card .nmd-explore-copy{
  position:relative!important;
  left:3px!important;
}
body.single-post .nmd-discovery .nmd-related-card > strong,
body.single-post .nmd-discovery .nmd-related-card > em{
  padding-left:11px!important;
}
@media (max-width:767px){
  body.single-post .nmd-discovery .nmd-related-card > strong,
  body.single-post .nmd-discovery .nmd-related-card > em{
    padding-left:10px!important;
  }
}


/* v0.16.17 – Discovery header actions: useful dynamic links instead of static badges. */
.nmd-discovery-head-link{
  flex:0 0 auto;background:#fff7f2!important;border:1px solid #ffc7a6!important;color:#ff5a00!important;
  border-radius:999px;padding:4px 8px;font-size:11px;font-weight:700;text-decoration:none!important;line-height:1.35;
}
.nmd-discovery-head-link:hover,.nmd-discovery-head-link:focus{color:#e84f00!important;text-decoration:none!important;background:#fff2e9!important}
@media(max-width:767px){.nmd-discovery-head-link{font-size:10px;padding:4px 7px}}

/* v0.16.19 — Mobile + Popular Comparisons category archives.
   Match the homepage card language and replace the default Astra blog archive. */
body.nmd-custom-category-archive #content,
body.nmd-custom-category-archive .site-content{padding-top:0!important;margin-top:0!important}
body.nmd-custom-category-archive #content>.ast-container,
body.nmd-custom-category-archive .site-content>.ast-container{max-width:none!important;padding:0!important;margin:0!important;display:block!important}
body.nmd-custom-category-archive #primary{width:100%!important;max-width:none!important;margin:0!important;padding:0!important;border:0!important}
body.nmd-custom-category-archive #secondary{display:none!important}
.nmd-category-main{background:#fff;min-height:520px;font-family:"Segoe UI",Arial,sans-serif;color:#111827}
.nmd-category-wrap{width:min(100% - 48px,1460px);margin:0 auto;padding:34px 0 44px}
.nmd-category-pill-wrap{text-align:center;margin:0 0 30px}
.nmd-category-pill{display:inline-flex!important;align-items:center;justify-content:center;margin:0!important;padding:8px 22px!important;border-radius:999px;background:#ff4b0b;color:#fff!important;font-size:24px!important;line-height:1.25!important;font-weight:800!important;letter-spacing:0!important;border:0!important;box-shadow:none!important}

.nmd-archive-mobile-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.nmd-archive-mobile-card{display:block;min-width:0;overflow:hidden;background:#fff;border:1px solid #dedede;border-radius:4px;text-decoration:none!important;color:#111!important;box-shadow:0 1px 4px rgba(15,23,42,.04);transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}
.nmd-archive-mobile-card:hover{transform:translateY(-2px);border-color:#ffb38b;box-shadow:0 5px 16px rgba(15,23,42,.08)}
.nmd-archive-mobile-media{height:220px;background:#f7f7f7;overflow:hidden;display:flex;align-items:center;justify-content:center}
.nmd-archive-mobile-media img{width:100%;height:100%;display:block;object-fit:cover!important;margin:0!important}
.nmd-archive-image-placeholder{width:100%;height:100%;background:#f5f5f5}
.nmd-archive-mobile-title{font-size:15px;font-weight:800;line-height:1.35;padding:10px 12px 9px;border-bottom:1px solid #ececec;white-space:normal;overflow-wrap:anywhere}
.nmd-archive-mobile-specs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:2px;padding:12px 6px 13px}
.nmd-archive-spec{display:flex;min-width:0;flex-direction:column;align-items:center;justify-content:flex-start;gap:6px;text-align:center}
.nmd-archive-spec-icon{display:flex!important;align-items:center;justify-content:center;width:32px;height:32px;min-width:32px;border:1px solid #ffc6aa;border-radius:50%;color:#ff4b0b;line-height:1!important}
.nmd-archive-spec-icon svg{width:16px;height:16px;display:block;fill:currentColor}
.nmd-archive-spec b{display:block;max-width:100%;font-size:11px;line-height:1.15;font-weight:700;color:#343434;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.nmd-archive-comparison-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.nmd-archive-vs-card{display:block;min-width:0;background:#fff;border:1px solid #d9d9d9;border-radius:9px;padding:22px 20px 16px;text-decoration:none!important;color:#111!important;transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}
.nmd-archive-vs-card:hover{transform:translateY(-2px);border-color:#ffb38b;box-shadow:0 5px 16px rgba(15,23,42,.07)}
.nmd-archive-vs-images{display:grid;grid-template-columns:minmax(0,1fr) 58px minmax(0,1fr);align-items:center;gap:10px;min-height:165px}
.nmd-archive-vs-phone{height:165px;display:flex;align-items:center;justify-content:center;min-width:0}
.nmd-archive-vs-phone img{display:block;width:100%;height:100%;object-fit:contain!important;margin:0!important;background:transparent!important}
.nmd-archive-vs-badge{justify-self:center;display:flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:50%;background:#ff4b0b;color:#fff;font-size:13px;font-weight:900;box-shadow:0 3px 8px rgba(255,75,11,.24)}
.nmd-archive-vs-names{display:grid;grid-template-columns:1fr 1fr;gap:32px;margin-top:10px;text-align:center;font-size:15px;line-height:1.3;font-weight:700}
.nmd-archive-vs-names span{min-width:0;overflow-wrap:anywhere}

.nmd-archive-pagination{display:flex;justify-content:center;align-items:center;gap:8px;margin:34px 0 0;flex-wrap:wrap}
.nmd-archive-pagination .page-numbers{display:flex;align-items:center;justify-content:center;min-width:38px;height:38px;padding:0 11px;border:1px solid #ffc3a5;border-radius:999px;background:#fff;color:#ff4b0b!important;text-decoration:none!important;font-weight:700;font-size:14px}
.nmd-archive-pagination .page-numbers.current,.nmd-archive-pagination a.page-numbers:hover{background:#ff4b0b;color:#fff!important;border-color:#ff4b0b}
.nmd-archive-empty{text-align:center;padding:42px 10px;color:#64748b;font-size:16px}

@media (max-width:1100px){
  .nmd-category-wrap{width:min(100% - 32px,1100px)}
  .nmd-archive-mobile-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .nmd-archive-comparison-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:720px){
  .nmd-category-wrap{width:calc(100% - 22px);padding:22px 0 34px}
  .nmd-category-pill-wrap{margin-bottom:20px}
  .nmd-category-pill{font-size:19px!important;padding:7px 19px!important}

  /* v0.16.22 — Mobile category archive: match homepage Latest Mobiles mobile layout.
     One full-width card per row; desktop/tablet layout above 720px is untouched. */
  .nmd-archive-mobile-grid{grid-template-columns:1fr;gap:18px}
  .nmd-archive-mobile-card{width:100%}
  .nmd-archive-mobile-media{height:auto;aspect-ratio:16/9}
  .nmd-archive-mobile-title{font-size:20px;line-height:1.3;padding:14px 18px 13px}
  .nmd-archive-mobile-specs{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:14px 12px 16px}
  .nmd-archive-spec{gap:7px}
  .nmd-archive-spec-icon{width:34px;height:34px;min-width:34px}
  .nmd-archive-spec-icon svg{width:17px;height:17px}
  .nmd-archive-spec b{font-size:13px;line-height:1.15;overflow:visible;text-overflow:clip}

  .nmd-archive-comparison-grid{grid-template-columns:1fr;gap:12px}
  .nmd-archive-vs-card{padding:13px 10px 12px}
  .nmd-archive-vs-images{grid-template-columns:minmax(0,1fr) 42px minmax(0,1fr);min-height:125px;gap:5px}
  .nmd-archive-vs-phone{height:125px}
  .nmd-archive-vs-badge{width:34px;height:34px;font-size:10px}
  .nmd-archive-vs-names{font-size:13px;gap:20px;margin-top:7px}
}
@media (max-width:420px){
  .nmd-archive-mobile-title{font-size:18px;padding:13px 16px 12px}
  .nmd-archive-mobile-specs{padding:13px 8px 15px;gap:4px}
  .nmd-archive-spec-icon{width:32px;height:32px;min-width:32px}
  .nmd-archive-spec-icon svg{width:16px;height:16px}
  .nmd-archive-spec b{font-size:12px}
}

/* v0.16.21 — Mobile archive mini-spec icon/text sizing matched to homepage Latest Mobiles cards. */

/* v0.16.25 — Search results: cards first, pagination last, NMD orange active page. */
body.nmd-custom-search-archive #content,
body.nmd-custom-search-archive .site-content{padding-top:0!important;margin-top:0!important}
body.nmd-custom-search-archive #content>.ast-container,
body.nmd-custom-search-archive .site-content>.ast-container{max-width:none!important;padding:0!important;margin:0!important;display:block!important}
body.nmd-custom-search-archive #primary{width:100%!important;max-width:none!important;margin:0!important;padding:0!important;border:0!important}
body.nmd-custom-search-archive #secondary{display:none!important}
.nmd-search-pagination{margin-top:34px!important;margin-bottom:0!important}
.nmd-search-pagination .page-numbers.current{background:#ff4b0b!important;border-color:#ff4b0b!important;color:#fff!important}


/* v0.16.60 — Previous / Next navigation: rigid single-row layout.
   Astra's own navigation CSS sets anchor max-width, mobile inline-flex, hidden
   title paragraphs and relative SVG offsets. NMD overrides every one of those
   properties here so both cards share one row, one height and one baseline. */
body.nmd-generated-post .post-navigation,
body.nmd-generated-post .navigation.post-navigation,
body.nmd-generated-post .ast-post-navigation{
  box-sizing:border-box!important;width:100%!important;max-width:900px!important;
  margin:18px auto 20px!important;padding:0 16px!important;border:0!important;background:transparent!important;
}
body.nmd-generated-post .post-navigation .nav-links,
body.nmd-generated-post .navigation.post-navigation .nav-links,
body.nmd-generated-post .ast-post-navigation .nav-links{
  box-sizing:border-box!important;width:100%!important;max-width:820px!important;margin:0 auto!important;padding:0!important;
  display:flex!important;flex-flow:row nowrap!important;align-items:stretch!important;justify-content:space-between!important;gap:12px!important;
  position:relative!important;border:0!important;background:transparent!important;
}
body.nmd-generated-post .post-navigation .nav-links::before,
body.nmd-generated-post .post-navigation .nav-links::after,
body.nmd-generated-post .navigation.post-navigation .nav-links::before,
body.nmd-generated-post .navigation.post-navigation .nav-links::after,
body.nmd-generated-post .ast-post-navigation .nav-links::before,
body.nmd-generated-post .ast-post-navigation .nav-links::after,
body.nmd-generated-post .post-navigation .nav-previous::before,
body.nmd-generated-post .post-navigation .nav-previous::after,
body.nmd-generated-post .post-navigation .nav-next::before,
body.nmd-generated-post .post-navigation .nav-next::after{content:none!important;display:none!important}
body.nmd-generated-post .post-navigation .nav-previous,
body.nmd-generated-post .post-navigation .nav-next,
body.nmd-generated-post .navigation.post-navigation .nav-previous,
body.nmd-generated-post .navigation.post-navigation .nav-next,
body.nmd-generated-post .ast-post-navigation .nav-previous,
body.nmd-generated-post .ast-post-navigation .nav-next{
  box-sizing:border-box!important;position:static!important;inset:auto!important;float:none!important;transform:none!important;
  display:flex!important;flex:1 1 0!important;width:0!important;min-width:0!important;max-width:none!important;height:auto!important;
  margin:0!important;padding:0!important;align-self:stretch!important;
}
body.nmd-generated-post .post-navigation .nav-previous a,
body.nmd-generated-post .post-navigation .nav-next a,
body.nmd-generated-post .navigation.post-navigation .nav-previous a,
body.nmd-generated-post .navigation.post-navigation .nav-next a,
body.nmd-generated-post .ast-post-navigation .nav-previous a,
body.nmd-generated-post .ast-post-navigation .nav-next a{
  box-sizing:border-box!important;display:flex!important;flex:1 1 100%!important;flex-direction:column!important;justify-content:center!important;
  width:100%!important;max-width:none!important;min-width:0!important;min-height:54px!important;height:auto!important;
  margin:0!important;padding:7px 12px!important;background:#fff!important;border:1px solid #e4e7ec!important;border-radius:12px!important;
  box-shadow:0 2px 8px rgba(15,23,42,.05)!important;color:#1f2937!important;text-decoration:none!important;overflow:hidden!important;
  transition:border-color .16s ease,box-shadow .16s ease,background-color .16s ease!important;
}
body.nmd-generated-post .post-navigation .nav-previous a,
body.nmd-generated-post .navigation.post-navigation .nav-previous a,
body.nmd-generated-post .ast-post-navigation .nav-previous a{text-align:left!important;align-items:flex-start!important}
body.nmd-generated-post .post-navigation .nav-next a,
body.nmd-generated-post .navigation.post-navigation .nav-next a,
body.nmd-generated-post .ast-post-navigation .nav-next a{text-align:right!important;align-items:flex-end!important}
body.nmd-generated-post .post-navigation a:hover,
body.nmd-generated-post .navigation.post-navigation a:hover,
body.nmd-generated-post .ast-post-navigation a:hover{border-color:#ff4b0b!important;background:#fffaf7!important;box-shadow:0 4px 12px rgba(255,75,11,.09)!important;color:#111827!important}
body.nmd-generated-post .post-navigation .nmd-nav-label,
body.nmd-generated-post .navigation.post-navigation .nmd-nav-label,
body.nmd-generated-post .ast-post-navigation .nmd-nav-label{
  display:flex!important;flex-flow:row nowrap!important;align-items:center!important;justify-content:flex-start!important;gap:5px!important;
  margin:0!important;padding:0!important;height:14px!important;min-height:14px!important;color:#ff4b0b!important;font-size:12px!important;
  line-height:14px!important;font-weight:800!important;letter-spacing:.03em!important;text-transform:uppercase!important;white-space:nowrap!important;
}
body.nmd-generated-post .post-navigation .nav-next .nmd-nav-label,
body.nmd-generated-post .navigation.post-navigation .nav-next .nmd-nav-label,
body.nmd-generated-post .ast-post-navigation .nav-next .nmd-nav-label{justify-content:flex-end!important}
body.nmd-generated-post .post-navigation .nmd-nav-word,
body.nmd-generated-post .navigation.post-navigation .nmd-nav-word,
body.nmd-generated-post .ast-post-navigation .nmd-nav-word{
  display:block!important;margin:0!important;padding:0!important;height:14px!important;line-height:14px!important;
}
body.nmd-generated-post .post-navigation .nmd-nav-arrow,
body.nmd-generated-post .navigation.post-navigation .nmd-nav-arrow,
body.nmd-generated-post .ast-post-navigation .nmd-nav-arrow{
  display:flex!important;align-items:center!important;justify-content:center!important;flex:0 0 12px!important;width:12px!important;height:14px!important;
  margin:0!important;padding:0!important;line-height:0!important;position:static!important;top:auto!important;transform:none!important;vertical-align:baseline!important;color:#ff4b0b!important;
}
body.nmd-generated-post .post-navigation .nmd-nav-arrow svg,
body.nmd-generated-post .navigation.post-navigation .nmd-nav-arrow svg,
body.nmd-generated-post .ast-post-navigation .nmd-nav-arrow svg{
  display:block!important;position:static!important;top:auto!important;transform:none!important;width:12px!important;height:12px!important;margin:0!important;padding:0!important;fill:currentColor!important;
}
body.nmd-generated-post .post-navigation .nmd-nav-title,
body.nmd-generated-post .navigation.post-navigation .nmd-nav-title,
body.nmd-generated-post .ast-post-navigation .nmd-nav-title{
  display:-webkit-box!important;width:100%!important;min-width:0!important;margin:3px 0 0!important;padding:0!important;color:#1f2937!important;
  font-size:15px!important;line-height:18px!important;font-weight:600!important;text-transform:none!important;letter-spacing:0!important;white-space:normal!important;
  overflow:hidden!important;text-overflow:ellipsis!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;
}
body.nmd-generated-post.single .post-navigation a p{display:block!important;margin:3px 0 0!important}
@media (max-width:600px){
  body.nmd-generated-post .post-navigation,body.nmd-generated-post .navigation.post-navigation,body.nmd-generated-post .ast-post-navigation{margin:16px auto 18px!important;padding:0 10px!important}
  body.nmd-generated-post .post-navigation .nav-links,body.nmd-generated-post .navigation.post-navigation .nav-links,body.nmd-generated-post .ast-post-navigation .nav-links{display:flex!important;flex-flow:row nowrap!important;gap:8px!important;padding:0!important}
  body.nmd-generated-post .post-navigation .nav-previous,body.nmd-generated-post .post-navigation .nav-next,body.nmd-generated-post .navigation.post-navigation .nav-previous,body.nmd-generated-post .navigation.post-navigation .nav-next{flex:1 1 0!important;width:0!important;min-width:0!important}
  body.nmd-generated-post .post-navigation .nav-previous a,body.nmd-generated-post .post-navigation .nav-next a,body.nmd-generated-post .navigation.post-navigation .nav-previous a,body.nmd-generated-post .navigation.post-navigation .nav-next a{min-height:50px!important;padding:6px 9px!important}
  body.nmd-generated-post .post-navigation .nmd-nav-label,body.nmd-generated-post .navigation.post-navigation .nmd-nav-label,body.nmd-generated-post .ast-post-navigation .nmd-nav-label{height:13px!important;min-height:13px!important;font-size:10px!important;line-height:13px!important;gap:3px!important}
  body.nmd-generated-post .post-navigation .nmd-nav-word,body.nmd-generated-post .navigation.post-navigation .nmd-nav-word,body.nmd-generated-post .ast-post-navigation .nmd-nav-word{height:13px!important;line-height:13px!important}
  body.nmd-generated-post .post-navigation .nmd-nav-arrow,body.nmd-generated-post .navigation.post-navigation .nmd-nav-arrow,body.nmd-generated-post .ast-post-navigation .nmd-nav-arrow{flex-basis:11px!important;width:11px!important;height:13px!important}
  body.nmd-generated-post .post-navigation .nmd-nav-arrow svg,body.nmd-generated-post .navigation.post-navigation .nmd-nav-arrow svg,body.nmd-generated-post .ast-post-navigation .nmd-nav-arrow svg{width:11px!important;height:11px!important}
  body.nmd-generated-post .post-navigation .nmd-nav-title,body.nmd-generated-post .navigation.post-navigation .nmd-nav-title,body.nmd-generated-post .ast-post-navigation .nmd-nav-title{margin-top:2px!important;font-size:12px!important;line-height:15px!important}
}
@media (max-width:300px){
  body.nmd-generated-post .post-navigation .nav-links,body.nmd-generated-post .navigation.post-navigation .nav-links,body.nmd-generated-post .ast-post-navigation .nav-links{flex-direction:column!important}
  body.nmd-generated-post .post-navigation .nav-previous,body.nmd-generated-post .post-navigation .nav-next{width:100%!important;flex-basis:auto!important}
}
