/* NepalTechHub Phase 19E-1/19E-2 — Compare Page Premium UX
 * Presentation-only. Existing compare AJAX/search/decision logic remains authoritative.
 */
body.nth-phase19e-compare {
  --nth-e-ink:#0f172a;
  --nth-e-muted:#64748b;
  --nth-e-line:#dbe5f1;
  --nth-e-blue:#2563eb;
  --nth-e-blue-dark:#1d4ed8;
  --nth-e-blue-soft:#eff6ff;
  --nth-e-green:#047857;
  --nth-e-bg:#f6f9fd;
  --nth-e-card:#fff;
  background:var(--nth-e-bg);
}

body.nth-phase19e-compare .nth-cmp{
  width:min(100%,1280px);
  margin:24px auto 56px;
  padding-inline:clamp(12px,2.5vw,22px);
}

body.nth-phase19e-compare .nth-cmp-hero{
  position:relative;
  overflow:hidden;
  padding:clamp(22px,4vw,34px);
  border:1px solid #d8e6fb;
  border-radius:24px;
  background:
    radial-gradient(circle at 95% 10%,rgba(37,99,235,.13),transparent 34%),
    linear-gradient(135deg,#fff 0%,#f7fbff 65%,#eef5ff 100%);
  box-shadow:0 18px 42px rgba(15,23,42,.06);
}
body.nth-phase19e-compare .nth-cmp-hero h1{
  font-size:clamp(32px,5vw,52px);
  letter-spacing:-.045em;
  line-height:1.02;
  color:var(--nth-e-ink);
}
body.nth-phase19e-compare .nth-cmp-hero p{
  max-width:800px;
  font-size:15px;
  line-height:1.7;
}
body.nth-phase19e-compare .nth-cmp-hero-badge{
  border:1px solid #bfdbfe;
  background:rgba(239,246,255,.9);
  color:var(--nth-e-blue-dark);
  min-height:36px;
  padding-inline:13px;
}
body.nth-phase19e-compare .nth-cmp-hero-points{gap:9px;margin-top:18px}
body.nth-phase19e-compare .nth-cmp-hero-points span{
  min-height:34px;
  padding:7px 11px;
  border-color:#dfe8f3;
  border-radius:999px;
  box-shadow:0 3px 10px rgba(15,23,42,.03);
}

body.nth-phase19e-compare .nth-cmp-builder{
  margin-top:18px;
  padding:clamp(16px,2.5vw,24px);
  border:1px solid var(--nth-e-line);
  border-radius:22px;
  background:rgba(255,255,255,.98);
  box-shadow:0 16px 36px rgba(15,23,42,.055);
}
body.nth-phase19e-compare .nth-builder-head{
  align-items:flex-end;
  margin-top:18px;
  margin-bottom:11px;
  padding-top:16px;
  border-top:1px solid #edf2f7;
}
body.nth-phase19e-compare .nth-builder-head:first-of-type{
  margin-top:0;
  padding-top:0;
  border-top:0;
}
body.nth-phase19e-compare .nth-builder-head strong{
  color:var(--nth-e-ink);
  font-size:15px;
  letter-spacing:-.01em;
}
body.nth-phase19e-compare .nth-builder-head span{font-size:12px;line-height:1.45;text-align:right}

body.nth-phase19e-compare .nth-p19e-selection-status{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:0 0 16px;
  padding:12px 14px;
  border:1px solid #dbeafe;
  border-radius:16px;
  background:linear-gradient(180deg,#f8fbff,#fff);
}
body.nth-phase19e-compare .nth-p19e-status-copy{min-width:0}
body.nth-phase19e-compare .nth-p19e-status-copy strong{
  display:block;
  color:var(--nth-e-ink);
  font-size:13px;
  line-height:1.3;
}
body.nth-phase19e-compare .nth-p19e-status-copy span{
  display:block;
  margin-top:2px;
  color:var(--nth-e-muted);
  font-size:11px;
  font-weight:700;
}
body.nth-phase19e-compare .nth-p19e-status-count{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  min-height:36px;
  padding:7px 11px;
  border-radius:999px;
  background:var(--nth-e-blue-soft);
  color:var(--nth-e-blue-dark);
  font-size:12px;
  font-weight:900;
  white-space:nowrap;
}
body.nth-phase19e-compare .nth-p19e-selection-status[data-ready="1"] .nth-p19e-status-count{
  background:#ecfdf5;
  color:#047857;
}

body.nth-phase19e-compare .nth-type-tabs{
  gap:8px;
  margin-inline:-2px;
  padding:2px 2px 10px;
  scrollbar-width:none;
  scroll-snap-type:x proximity;
}
body.nth-phase19e-compare .nth-type-tabs::-webkit-scrollbar{display:none}
body.nth-phase19e-compare .nth-type-tab{
  scroll-snap-align:start;
  min-height:42px;
  padding:9px 14px!important;
  border-color:#d9e3ef!important;
  background:#fff!important;
  color:#334155!important;
  font-size:13px;
  box-shadow:0 3px 10px rgba(15,23,42,.025)!important;
}
body.nth-phase19e-compare .nth-type-tab.active{
  border-color:var(--nth-e-blue)!important;
  background:var(--nth-e-blue)!important;
  color:#fff!important;
  box-shadow:0 8px 18px rgba(37,99,235,.2)!important;
}

body.nth-phase19e-compare .nth-cmp-selectors{gap:12px}
body.nth-phase19e-compare .nth-search-wrap{
  min-height:112px;
  padding:14px;
  border-color:#dce6f2;
  border-radius:16px;
  background:#fbfdff;
  transition:border-color .16s ease,box-shadow .16s ease,background .16s ease;
}
body.nth-phase19e-compare .nth-search-wrap:focus-within{
  border-color:#93c5fd;
  background:#fff;
  box-shadow:0 0 0 4px rgba(37,99,235,.07);
}
body.nth-phase19e-compare .nth-search-wrap.nth-p19e-slot-filled{
  border-color:#bfdbfe;
  background:#f8fbff;
}
body.nth-phase19e-compare .nth-search-input{
  min-height:48px;
  padding:11px 42px 11px 13px;
  border-color:#cfdbea;
  border-radius:12px;
  color:var(--nth-e-ink);
  font-size:15px;
  background:#fff;
}
body.nth-phase19e-compare .nth-search-clear,
body.nth-phase19e-compare .nth-pill-remove{
  color:#64748b!important;
  background:transparent!important;
  box-shadow:none!important;
}
body.nth-phase19e-compare .nth-search-clear:focus-visible,
body.nth-phase19e-compare .nth-pill-remove:focus-visible{
  outline:3px solid rgba(37,99,235,.24)!important;
  outline-offset:2px;
}
body.nth-phase19e-compare .nth-suggestions{
  margin-top:5px;
  border-color:#cbd9ea;
  border-radius:14px;
  box-shadow:0 18px 34px rgba(15,23,42,.14);
  overflow:hidden auto;
}
body.nth-phase19e-compare .nth-suggestion{
  min-height:56px;
  padding:10px 12px;
  border-bottom-color:#eef2f7;
}
body.nth-phase19e-compare .nth-suggestion[aria-selected="true"],
body.nth-phase19e-compare .nth-suggestion.focused{
  background:#eff6ff;
  color:#1d4ed8;
  outline:none;
}
body.nth-phase19e-compare .nth-selected-pill{
  min-height:60px;
  border-color:#bfdbfe;
  border-radius:13px;
  background:#eff6ff;
}
body.nth-phase19e-compare .nth-selected-pill img{width:44px;height:44px}
body.nth-phase19e-compare .nth-selected-pill-name{font-size:13px}
body.nth-phase19e-compare .nth-selected-pill-price{margin-top:3px;color:#047857;font-size:12px}

body.nth-phase19e-compare .nth-builder-actions{align-items:stretch}
body.nth-phase19e-compare #nthCompareBtn{
  min-height:52px;
  border-radius:14px!important;
  background:linear-gradient(135deg,#2563eb,#1d4ed8)!important;
  box-shadow:0 10px 20px rgba(37,99,235,.18)!important;
}
body.nth-phase19e-compare #nthCompareBtn:disabled{
  background:#e8eef7!important;
  color:#718096!important;
  box-shadow:none!important;
  opacity:1;
}
body.nth-phase19e-compare .nth-toolbar{gap:8px}
body.nth-phase19e-compare .nth-tbtn{
  min-height:46px;
  padding:9px 14px!important;
  border-color:#d5e0ed!important;
  color:#334155!important;
  background:#fff!important;
}
body.nth-phase19e-compare .nth-tbtn:focus-visible,
body.nth-phase19e-compare #nthCompareBtn:focus-visible,
body.nth-phase19e-compare .nth-type-tab:focus-visible,
body.nth-phase19e-compare .nth-cmp-diff-toggle:focus-visible{
  outline:3px solid rgba(37,99,235,.28)!important;
  outline-offset:2px;
}

/* Result presentation: existing decision logic remains authoritative. */
body.nth-phase19e-compare #nthResult{scroll-margin-top:18px}
body.nth-phase19e-compare #nthCompareTable{
  display:grid;
  gap:14px;
}
body.nth-phase19e-compare .nth-cmp-decision,
body.nth-phase19e-compare .nth-cmp-nepal-value{
  padding:clamp(15px,2.5vw,20px);
  border:1px solid var(--nth-e-line);
  border-radius:20px;
  background:#fff;
  box-shadow:0 12px 28px rgba(15,23,42,.045);
  margin:0;
}
body.nth-phase19e-compare .nth-cmp-decision-intro h2{font-size:clamp(22px,3vw,30px);letter-spacing:-.025em}
body.nth-phase19e-compare .nth-cmp-decision-intro p{font-size:13px;line-height:1.6}
body.nth-phase19e-compare .nth-cmp-decision-badge,
body.nth-phase19e-compare .nth-cmp-nv-badge{border:1px solid #bfdbfe}
body.nth-phase19e-compare .nth-cmp-price-delta{
  border-radius:14px;
  background:#ecfdf5;
  border-color:#bbf7d0;
}
body.nth-phase19e-compare .nth-cmp-keydiff{
  border-color:#e2e8f0;
  border-radius:15px;
  background:#fbfdff;
}
body.nth-phase19e-compare .nth-cmp-keydiff-row{border:1px solid #edf2f7;background:#fff}
body.nth-phase19e-compare .nth-cmp-reason-card,
body.nth-phase19e-compare .nth-cmp-nv-card{
  border-color:#dfe8f3;
  border-radius:15px;
  box-shadow:0 5px 14px rgba(15,23,42,.025);
}
body.nth-phase19e-compare .nth-cmp-nv-card h4,
body.nth-phase19e-compare .nth-cmp-reason-card h4{font-size:14px}
body.nth-phase19e-compare .nth-cmp-nv-price{font-size:18px}

body.nth-phase19e-compare .nth-cmp-sticky-context{
  --nth-compare-sticky-top:8px;
  margin:0;
  padding:9px;
  border-color:#cfe0f7;
  border-radius:16px;
  box-shadow:0 12px 28px rgba(15,23,42,.08);
}
body.admin-bar.nth-phase19e-compare .nth-cmp-sticky-context{--nth-compare-sticky-top:40px}
body.nth-phase19e-compare .nth-cmp-sticky-item{
  min-height:54px;
  padding:7px 9px;
  border:1px solid #e6edf6;
  border-radius:11px;
  background:#fff;
}
body.nth-phase19e-compare .nth-cmp-sticky-item a{font-size:12px}
body.nth-phase19e-compare .nth-cmp-sticky-item span{font-size:12px}

body.nth-phase19e-compare .nth-cmp-controls{
  position:sticky;
  top:calc(var(--nth-compare-sticky-top,8px) + 74px);
  z-index:18;
  margin:0;
  padding:10px 12px;
  border-color:#d8e3f0;
  border-radius:14px;
  background:rgba(248,250,252,.96);
  backdrop-filter:blur(8px);
}
body.nth-phase19e-compare .nth-cmp-controls strong{font-size:14px}
body.nth-phase19e-compare .nth-cmp-diff-toggle{
  min-height:42px;
  padding:8px 13px!important;
  border:1px solid #cbd5e1!important;
  border-radius:999px!important;
  background:#fff!important;
  color:#334155!important;
  box-shadow:none!important;
}
body.nth-phase19e-compare .nth-cmp-diff-toggle[aria-pressed="true"]{
  border-color:var(--nth-e-blue)!important;
  background:var(--nth-e-blue)!important;
  color:#fff!important;
}

body.nth-phase19e-compare .nth-p19e-table-hint{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin:0;
  padding:9px 11px;
  border:1px solid #dbeafe;
  border-radius:12px;
  background:#f8fbff;
  color:#52637a;
  font-size:11px;
  font-weight:800;
}
body.nth-phase19e-compare .nth-p19e-table-hint span:last-child{color:#1d4ed8;white-space:nowrap}
body.nth-phase19e-compare .nth-cmpt-wrap{
  position:relative;
  overflow-x:auto;
  border:1px solid #dce5ef;
  border-radius:18px;
  background:#fff;
  box-shadow:0 12px 26px rgba(15,23,42,.04);
  scrollbar-width:thin;
  scroll-snap-type:x proximity;
  overscroll-behavior-x:contain;
}
body.nth-phase19e-compare .nth-cmpt{
  border:0;
  border-radius:0;
  min-width:700px;
}
body.nth-phase19e-compare .nth-cmpt.nth-cmpt-cols-3{min-width:940px}
body.nth-phase19e-compare .nth-cmpt th,
body.nth-phase19e-compare .nth-cmpt td{
  padding:12px 14px;
  border-color:#edf2f7;
  line-height:1.48;
}
body.nth-phase19e-compare .nth-cmpt-head-row th{background:#f8fbff}
body.nth-phase19e-compare .nth-cmpt-prod img{width:76px;height:76px;border:1px solid #e5edf5}
body.nth-phase19e-compare .nth-cmpt-prod a{font-size:13px}
body.nth-phase19e-compare .nth-cmpt-prod-price{font-size:14px}
body.nth-phase19e-compare .nth-cmpt-cat-row th{
  background:#173b78;
  color:#fff;
  letter-spacing:.055em;
}
body.nth-phase19e-compare .nth-cmpt-label{
  width:25%;
  color:#52637a;
  background:#f8fafc;
  font-size:12px;
}
body.nth-phase19e-compare .nth-cmpt-val.diff{background:#fffbeb}

body.nth-phase19e-compare .nth-p19e-mobile-tray{display:none}
body.nth-phase19e-compare.nth-p19e-enhanced #nth-cmp-bar{display:none!important}

body.nth-phase19e-compare .nth-popular-comparisons{
  margin-top:24px;
  padding:clamp(15px,2.5vw,20px);
  border:1px solid var(--nth-e-line);
  border-radius:20px;
  background:#fff;
  box-shadow:0 12px 28px rgba(15,23,42,.04);
}
body.nth-phase19e-compare .nth-popular-card{border-radius:15px!important;border-color:#dfe8f3!important}

@media (max-width:760px){
  body.nth-phase19e-compare .nth-cmp{margin-top:12px;margin-bottom:34px;padding-inline:10px}
  body.nth-phase19e-compare .nth-cmp-hero{padding:20px 16px;border-radius:19px}
  body.nth-phase19e-compare .nth-cmp-hero h1{font-size:34px}
  body.nth-phase19e-compare .nth-cmp-hero p{font-size:14px}
  body.nth-phase19e-compare .nth-cmp-hero-points{display:grid;grid-template-columns:1fr 1fr}
  body.nth-phase19e-compare .nth-cmp-hero-points span{justify-content:center;text-align:center;line-height:1.3}
  body.nth-phase19e-compare .nth-cmp-builder{padding:13px;border-radius:18px}
  body.nth-phase19e-compare .nth-builder-head{display:block}
  body.nth-phase19e-compare .nth-builder-head span{display:block;margin-top:3px;text-align:left}
  body.nth-phase19e-compare .nth-p19e-selection-status{align-items:flex-start}
  body.nth-phase19e-compare .nth-cmp-selectors{gap:9px}
  body.nth-phase19e-compare .nth-search-wrap{min-height:104px;padding:12px}
  body.nth-phase19e-compare .nth-search-input{font-size:16px}
  body.nth-phase19e-compare .nth-toolbar{display:grid;grid-template-columns:1fr 1fr;width:100%}
  body.nth-phase19e-compare .nth-tbtn{justify-content:center;min-height:46px}
  body.nth-phase19e-compare .nth-cmp-decision,
  body.nth-phase19e-compare .nth-cmp-nepal-value{padding:14px;border-radius:17px}
  body.nth-phase19e-compare .nth-cmp-sticky-context{
    grid-auto-columns:minmax(170px,72vw);
    gap:7px;
    border-radius:14px;
    scroll-snap-type:x mandatory;
    overscroll-behavior-x:contain;
  }
  body.nth-phase19e-compare .nth-cmp-sticky-item{scroll-snap-align:start}
  body.nth-phase19e-compare .nth-cmp-controls{
    top:calc(var(--nth-compare-sticky-top,8px) + 72px);
    border-radius:13px;
  }
  body.nth-phase19e-compare .nth-cmpt{min-width:760px}
  body.nth-phase19e-compare .nth-cmpt.nth-cmpt-cols-3{min-width:980px}
  body.nth-phase19e-compare .nth-cmpt-label{
    position:sticky;
    left:0;
    z-index:4;
    width:150px;
    min-width:150px;
    box-shadow:4px 0 10px rgba(15,23,42,.06);
  }
  body.nth-phase19e-compare .nth-cmpt-head-row .nth-cmpt-corner{position:sticky;left:0;z-index:6;min-width:150px}
  body.nth-phase19e-compare .nth-p19e-table-hint{display:flex}
  body.nth-phase19e-compare .nth-p19e-mobile-tray{
    position:fixed;
    left:10px;
    right:10px;
    bottom:max(10px,env(safe-area-inset-bottom));
    z-index:9996;
    align-items:center;
    gap:10px;
    padding:10px;
    border:1px solid #cfe0f6;
    border-radius:18px;
    background:rgba(255,255,255,.97);
    box-shadow:0 18px 42px rgba(15,23,42,.2);
    backdrop-filter:blur(12px);
  }
  body.nth-phase19e-compare.nth-p19e-enhanced.nth-p19e-ready:not(.nth-p19e-results-visible) .nth-p19e-mobile-tray{display:flex}
  body.nth-phase19e-compare .nth-p19e-mobile-tray-copy{min-width:0;flex:1}
  body.nth-phase19e-compare .nth-p19e-mobile-tray-copy strong{display:block;color:#0f172a;font-size:12px}
  body.nth-phase19e-compare .nth-p19e-mobile-tray-copy span{display:block;margin-top:2px;color:#64748b;font-size:10px;font-weight:700}
  body.nth-phase19e-compare .nth-p19e-mobile-tray button{
    flex:0 0 auto;
    min-height:46px;
    padding:10px 16px!important;
    border:0!important;
    border-radius:13px!important;
    background:#2563eb!important;
    color:#fff!important;
    font-size:13px;
    font-weight:900;
    box-shadow:none!important;
  }
  body.nth-phase19e-compare.nth-p19e-ready:not(.nth-p19e-results-visible){padding-bottom:84px}
}

@media (max-width:430px){
  body.nth-phase19e-compare .nth-cmp-hero-points{grid-template-columns:1fr}
  body.nth-phase19e-compare .nth-p19e-selection-status{display:grid;grid-template-columns:1fr auto}
  body.nth-phase19e-compare .nth-p19e-status-copy span{max-width:235px}
}

@media (prefers-reduced-motion:reduce){
  body.nth-phase19e-compare *,body.nth-phase19e-compare *::before,body.nth-phase19e-compare *::after{scroll-behavior:auto!important;transition:none!important;animation-duration:.001ms!important}
}

@media print{
  body.nth-phase19e-compare .nth-cmp-builder,
  body.nth-phase19e-compare .nth-p19e-mobile-tray,
  body.nth-phase19e-compare .nth-cmp-controls,
  body.nth-phase19e-compare #nth-cmp-bar{display:none!important}
  body.nth-phase19e-compare .nth-cmp-sticky-context{position:static!important;box-shadow:none!important}
  body.nth-phase19e-compare .nth-cmpt-wrap{overflow:visible!important;border:0!important;box-shadow:none!important}
}
\n\n/* Phase 19E-2 — Decision Summary + Mobile Table Final Polish */\nbody.nth-phase19e-compare .nth-p19e2-result-bar{\n  display:flex;align-items:center;justify-content:space-between;gap:12px;\n  padding:12px 14px;border:1px solid #cfe0f7;border-radius:16px;\n  background:linear-gradient(180deg,#f8fbff,#fff);box-shadow:0 8px 20px rgba(15,23,42,.04);\n}\nbody.nth-phase19e-compare .nth-p19e2-result-copy{min-width:0}\nbody.nth-phase19e-compare .nth-p19e2-result-copy strong{display:block;color:#0f172a;font-size:14px}\nbody.nth-phase19e-compare .nth-p19e2-result-copy span{display:block;margin-top:2px;color:#64748b;font-size:11px;font-weight:700}\nbody.nth-phase19e-compare .nth-p19e2-result-actions{display:flex;gap:8px;flex:0 0 auto}\nbody.nth-phase19e-compare .nth-p19e2-result-actions button{\n  min-height:42px;padding:8px 12px!important;border:1px solid #cbd9ea!important;border-radius:11px!important;\n  background:#fff!important;color:#1e3a5f!important;font-size:12px;font-weight:850;box-shadow:none!important\n}\nbody.nth-phase19e-compare .nth-p19e2-result-actions button:last-child{border-color:#bfdbfe!important;background:#eff6ff!important;color:#1d4ed8!important}\nbody.nth-phase19e-compare .nth-p19e2-result-actions button:focus-visible{outline:3px solid rgba(37,99,235,.24)!important;outline-offset:2px}\nbody.nth-phase19e-compare .nth-cmp-decision{scroll-margin-top:96px}\nbody.nth-phase19e-compare .nth-cmpt-wrap{scroll-margin-top:150px}\nbody.nth-phase19e-compare .nth-p19e2-scroll-edge{position:relative}\nbody.nth-phase19e-compare .nth-p19e2-scroll-edge::after{\n  content:\"\";pointer-events:none;position:absolute;right:0;top:0;bottom:0;width:28px;z-index:7;\n  background:linear-gradient(90deg,rgba(255,255,255,0),rgba(255,255,255,.95));opacity:.9;transition:opacity .16s ease\n}\nbody.nth-phase19e-compare .nth-p19e2-scroll-edge[data-scroll-end=\"1\"]::after{opacity:0}\nbody.nth-phase19e-compare .nth-cmp-keydiff-values span{line-height:1.35}\nbody.nth-phase19e-compare #nthLoader[role=\"status\"]{color:#52637a;font-weight:750}\n@media(max-width:760px){\n  body.nth-phase19e-compare .nth-p19e2-result-bar{display:block;padding:11px 12px;border-radius:14px}\n  body.nth-phase19e-compare .nth-p19e2-result-actions{display:grid;grid-template-columns:1fr 1fr;margin-top:9px}\n  body.nth-phase19e-compare .nth-p19e2-result-actions button{width:100%;min-height:44px}\n  body.nth-phase19e-compare .nth-cmp-decision-intro{display:block}\n  body.nth-phase19e-compare .nth-cmp-decision-badge{display:inline-flex;margin-top:9px}\n  body.nth-phase19e-compare .nth-cmp-keydiff-values{display:grid;grid-template-columns:1fr;gap:6px}\n  body.nth-phase19e-compare .nth-cmp-keydiff-values span{display:block;width:100%}\n  body.nth-phase19e-compare .nth-cmp-reasons{grid-template-columns:1fr}\n  body.nth-phase19e-compare .nth-cmpt-wrap{max-width:100%;touch-action:pan-x pan-y}\n}\n