/* Numerish Blog & Insights — Enterprise Discovery Experience r1
   Listing-only selectors. Complements server-rendered article taxonomy without
   replacing links, the publisher feed, filtering, or category semantics. */
#nbInsights.nb-insights {
  --explorer-magenta:#d11360;
  --explorer-magenta-dark:#a00845;
  --explorer-charcoal:#1b202b;
  --explorer-ink:#242735;
  --explorer-subtle:#647084;
}

/* Refined search navigator: dark ink, restrained glass/spotlight treatment */
#nbInsights .nb-discovery {
  position:relative;
  isolation:isolate;
  grid-template-columns:minmax(0,1fr) minmax(220px,265px);
  gap:17px 22px;
  margin:8px 0 0;
  padding:clamp(24px,3vw,42px);
  overflow:hidden;
  border:1px solid rgba(255,255,255,.13);
  border-radius:22px;
  background:
    radial-gradient(ellipse 58% 125% at 102% -36%,rgba(255,58,137,.31),transparent 68%),
    radial-gradient(circle at -12% 122%,rgba(139,102,181,.16),transparent 48%),
    linear-gradient(113deg,#202532 0%,#232632 53%,#312333 100%);
  box-shadow:0 16px 50px rgba(22,22,37,.14),0 2px 6px rgba(22,22,37,.06);
  color:#fff;
}
#nbInsights .nb-discovery::before {
  content:"";position:absolute;inset:0 auto auto 0;height:4px;width:100%;z-index:-1;
  background:linear-gradient(90deg,#ff0066 0%,#ff5a9b 26%,#fbb1d1 48%,transparent 83%);
}
#nbInsights .nb-discovery::after {
  content:"";position:absolute;width:270px;height:270px;right:-64px;top:-151px;
  border:1px solid rgba(255,255,255,.10);border-radius:50%;pointer-events:none;z-index:-1;
  box-shadow:0 0 0 35px rgba(255,255,255,.025),0 0 0 78px rgba(255,255,255,.016);
}
#nbInsights .nb-discovery-head {
  grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;
  min-width:0;gap:22px;padding-bottom:12px;
}
#nbInsights .nb-discovery-heading {min-width:0}
#nbInsights .nb-discovery-eyebrow {
  display:inline-flex;align-items:center;gap:10px;
  color:#ff9bc5;font:700 11px/1.5 "NB Inter",Arial,sans-serif;
  letter-spacing:.14em;text-transform:uppercase;margin:0 0 13px;
}
#nbInsights .nb-discovery-pulse {
  width:8px;height:8px;flex:0 0 8px;border-radius:50%;background:#ff5c9e;
  box-shadow:0 0 0 5px rgba(255,91,159,.14),0 0 18px rgba(255,91,159,.4);
}
#nbInsights .nb-discovery-head h3 {
  margin:0 0 8px;color:#fff;font:500 clamp(24px,2.5vw,32px)/1.2 "NB Instrument",Arial,sans-serif;
  letter-spacing:-.045em;
}
#nbInsights .nb-discovery-head p {
  margin:0;color:#c9c9d3;font-size:13.5px;line-height:1.65;max-width:55ch;
}
#nbInsights .nb-discovery-graphic {
  display:grid;place-items:center;flex:0 0 58px;width:58px;height:58px;
  border:1px solid rgba(255,255,255,.18);border-radius:16px;
  background:linear-gradient(145deg,rgba(255,255,255,.13),rgba(255,255,255,.02));
  box-shadow:0 7px 16px rgba(0,0,0,.1);color:#ff93c0;
}
#nbInsights .nb-discovery-graphic svg{width:26px;height:26px}
#nbInsights .nb-discovery label {
  margin:0 0 10px;color:#e5d9e2;font-size:11px;letter-spacing:.12em;font-weight:700;
}
#nbInsights .nb-search-field,#nbInsights .nb-sort-field{position:relative;min-width:0}
#nbInsights .nb-search-box{min-height:60px}
#nbInsights .nb-search-box>svg{
  left:19px;width:21px;height:21px;color:#7d7a8a;z-index:1;transition:color .18s ease;
}
#nbInsights #blogSearch,#nbInsights #blogSort {
  height:60px;width:100%;border:1px solid rgba(255,255,255,.26);border-radius:12px;
  background:#fff;color:#212735;box-shadow:0 5px 16px rgba(0,0,0,.075);
  font-family:"NB Inter",Arial,sans-serif;font-size:14px;font-weight:500;
  transition:box-shadow .2s ease,border-color .2s ease,transform .2s ease;
}
#nbInsights #blogSearch{padding:0 54px 0 54px}
#nbInsights #blogSearch::placeholder{color:#777f8f}
#nbInsights #blogSort{padding:0 38px 0 18px;color-scheme:light}
#nbInsights .nb-search-box:focus-within>svg{color:#b0084b}
#nbInsights #blogSearch:hover,#nbInsights #blogSort:hover {border-color:#f3a9c6}
#nbInsights #blogSearch:focus-visible,#nbInsights #blogSort:focus-visible {
  outline:3px solid #ff87bc;outline-offset:3px;border-color:#b1084c;
  box-shadow:0 0 0 5px rgba(255,80,144,.17),0 9px 28px rgba(0,0,0,.15);
}
#nbInsights .nb-clear-search{
  right:8px;top:8px;width:44px;height:44px;border-radius:10px;color:#526071;
  background:#f4f1f4;
}
#nbInsights .nb-clear-search:hover{background:#fce1ed;color:#990a44}
#nbInsights .nb-clear-search:focus-visible{outline:3px solid #ff87bc;outline-offset:2px}

/* Server taxonomy — aligned, spacious and fully visible at large breakpoints */
#nbInsights #articles.nb-topics-wrap {
  position:relative;display:block;min-width:0;
  padding:clamp(23px,2.6vw,35px);
  margin:24px 0 0;overflow:hidden;
  border:1px solid #e5e8f0;border-radius:22px;
  background:
    radial-gradient(circle at 96% 0%,rgba(255,0,102,.055),transparent 32%),
    linear-gradient(145deg,#fff 0%,#f9fafc 100%);
  box-shadow:0 8px 30px rgba(31,40,65,.045);
}
#nbInsights #articles.nb-topics-wrap::before {
  content:"";position:absolute;inset:0 auto auto 0;width:100%;height:3px;
  background:linear-gradient(90deg,#b20b51 0%,#ee6ea7 32%,transparent 82%);
  pointer-events:none;
}
#nbInsights #articles #blogCategories {min-width:0;width:100%}
#nbInsights #articles .bi-categories{
  display:block;width:100%;margin:0;padding:0;
  background:transparent;border:0;border-radius:0;box-shadow:none;
  color:#222735;
}
#nbInsights #articles .bi-desktop{display:block}
#nbInsights #articles .bi-mobile{display:none}
#nbInsights #articles .bi-desktop>h3{
  display:flex;align-items:center;gap:14px;min-height:42px;
  color:#202532;margin:0 0 25px;
  font:600 clamp(21px,2vw,27px)/1.3 "NB Instrument",Arial,sans-serif;
  letter-spacing:-.03em;
}
#nbInsights #articles .bi-desktop>h3::before{
  content:"";width:41px;height:41px;flex:0 0 41px;border-radius:12px;
  border:1px solid #f8c8de;
  background:
    radial-gradient(circle,#c10a54 0 2px,transparent 3px) 9px 9px / 12px 12px,
    linear-gradient(135deg,#ffe7f1,#fff5f9);
  box-shadow:inset 0 1px 0 #fff,0 4px 10px rgba(180,14,82,.075);
}
#nbInsights #articles .bi-desktop .bi-links {
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;margin:0;padding:0;list-style:none;align-items:stretch;
}
#nbInsights #articles .bi-links li{
  display:flex;min-width:0;min-height:0;margin:0;padding:0;
}
#nbInsights #articles .bi-cat {
  position:relative;display:flex;align-items:center;justify-content:flex-start;
  width:100%;min-height:65px;gap:11px;padding:12px 13px;
  border:1px solid #e1e4ec;border-radius:13px;
  background:linear-gradient(180deg,#fff,#fafbfc);
  color:#313746;text-align:left;text-decoration:none;
  font:600 13px/1.4 "NB Inter",Arial,sans-serif;
  overflow-wrap:anywhere;word-break:normal;
  box-shadow:0 2px 5px rgba(30,35,58,.025);
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease,background .18s ease,color .18s ease;
}
#nbInsights #articles .bi-cat::before{
  content:"";width:8px;height:8px;flex:0 0 8px;border-radius:3px;
  transform:rotate(45deg);background:#df8cab;
  box-shadow:0 0 0 4px #fbedf3;
}
#nbInsights #articles .bi-cat-count {
  display:grid;place-items:center;
  min-width:29px;height:28px;padding:0 7px;margin-left:auto;
  border-radius:8px;background:#f1f2f7;
  border:1px solid #e8e8ee;color:#6b7080;
  font:700 11px/1 "NB Inter",Arial,sans-serif;
  font-variant-numeric:tabular-nums;white-space:nowrap;
}
#nbInsights #articles .bi-cat:hover {
  transform:translateY(-3px);
  border-color:#e68aad;
  background:#fff;
  box-shadow:0 12px 24px rgba(158,28,80,.11);
  color:#98124a;text-decoration:none;
}
#nbInsights #articles .bi-cat:hover::before{background:#ca0b58;box-shadow:0 0 0 4px #fce0eb}
#nbInsights #articles .bi-cat:focus-visible {
  outline:3px solid #cb155d;outline-offset:3px;
  box-shadow:0 0 0 6px #fff;
}
#nbInsights #articles .bi-cat[aria-current="page"] {
  border-color:#a00b45;
  background:linear-gradient(115deg,#8b1244,#c50b58);
  color:#fff;
  box-shadow:0 10px 20px rgba(165,13,75,.22);
}
#nbInsights #articles .bi-cat[aria-current="page"]::before{
  background:#fff;box-shadow:0 0 0 4px rgba(255,255,255,.14);
}
#nbInsights #articles .bi-cat[aria-current="page"] .bi-cat-count {
  background:rgba(255,255,255,.19);color:#fff;
  border-color:rgba(255,255,255,.27);
}
#nbInsights #articles .bi-cat[aria-current="page"]:hover {
  transform:translateY(-2px);box-shadow:0 14px 25px rgba(165,13,75,.27);
}
#nbInsights .nb-results-bar {
  min-height:56px;padding:20px 3px 18px;margin-bottom:3px;
  border-bottom:1px solid #e9e9ee;
}
#nbInsights #blogResultsCount {
  color:var(--nb-muted);font-size:12px;font-weight:600;
}
#nbInsights .nb-results-note {color:#8e6a7b;font-size:10px;font-weight:700;letter-spacing:.12em}

/* Secondary colours when Numerish dark mode is selected */
html[data-theme="dark"] #nbInsights #articles.nb-topics-wrap {
  border-color:#41434c;background:
   radial-gradient(circle at 95% -5%,rgba(240,91,156,.1),transparent 37%),
   linear-gradient(145deg,#242730,#1d212b);
  box-shadow:0 8px 30px rgba(0,0,0,.09);
}
html[data-theme="dark"] #nbInsights #articles .bi-categories,
html[data-theme="dark"] #nbInsights #articles .bi-desktop>h3 {color:#f0f0f3}
html[data-theme="dark"] #nbInsights #articles .bi-cat {
  background:linear-gradient(150deg,#292c37,#272832);color:#f0f0f3;
  border-color:#414452;box-shadow:none;
}
html[data-theme="dark"] #nbInsights #articles .bi-cat::before {
  box-shadow:0 0 0 4px rgba(255,152,198,.09);
}
html[data-theme="dark"] #nbInsights #articles .bi-cat-count {
  background:#393e4b;color:#d5d6e0;border-color:#4a4c59;
}
html[data-theme="dark"] #nbInsights #articles .bi-cat:hover {
  background:#333440;border-color:#d86b9b;color:#ffd0e4;
}
html[data-theme="dark"] #nbInsights #articles .bi-cat[aria-current="page"] {
  background:linear-gradient(115deg,#8b1244,#c50b58);color:#fff;
  border-color:#d73777;box-shadow:0 10px 20px rgba(0,0,0,.2);
}
html[data-theme="dark"] #nbInsights #articles .bi-cat[aria-current="page"] .bi-cat-count {
  background:rgba(255,255,255,.19);color:#fff;border-color:rgba(255,255,255,.27);
}
html[data-theme="dark"] #nbInsights .nb-results-bar {border-color:#3a3e49}

/* Tablet: continuous grid with equal-height categories */
@media(max-width:1130px) {
  #nbInsights #articles .bi-desktop .bi-links {grid-template-columns:repeat(3,minmax(0,1fr))}
  #nbInsights #articles .bi-cat {min-height:66px}
}
@media(max-width:850px) {
  #nbInsights .nb-discovery{grid-template-columns:minmax(0,1fr) 215px}
  #nbInsights .nb-discovery-head h3 {font-size:26px}
  #nbInsights #articles .bi-desktop .bi-links {grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:680px) {
  #nbInsights .nb-discovery{grid-template-columns:minmax(0,1fr);gap:19px;padding:25px;border-radius:18px}
  #nbInsights .nb-discovery-head {padding-bottom:0}
  #nbInsights .nb-discovery-graphic{width:49px;height:49px;flex-basis:49px;border-radius:13px}
  #nbInsights .nb-discovery-head h3{font-size:25px}
  #nbInsights .nb-discovery-head p{font-size:12.5px}
  #nbInsights .nb-discovery label {margin-bottom:8px}
  #nbInsights #blogSearch,#nbInsights #blogSort{height:54px;font-size:16px}
  #nbInsights #blogSearch {padding-left:50px}
  #nbInsights .nb-search-box {min-height:54px}
  #nbInsights .nb-clear-search{top:5px;right:5px}
  #nbInsights #articles.nb-topics-wrap{border-radius:18px;padding:24px 0 19px;margin-top:19px}
  #nbInsights #articles .bi-desktop>h3{padding:0 22px;margin:0 0 19px;font-size:22px}
  #nbInsights #articles .bi-desktop .bi-links{
    display:flex;grid-template-columns:none;flex-wrap:nowrap;overflow-x:auto;
    overscroll-behavior-inline:contain;scroll-snap-type:x proximity;
    -webkit-overflow-scrolling:touch;
    gap:10px;padding:2px 22px 15px;margin:0;
    scrollbar-width:thin;scrollbar-color:#b7aab3 transparent;
  }
  #nbInsights #articles .bi-links li{
    width:clamp(208px,61vw,260px);flex:0 0 clamp(208px,61vw,260px);
    scroll-snap-align:start;
  }
  #nbInsights #articles .bi-cat{min-height:76px;white-space:normal;padding:12px 14px;font-size:13px}
  #nbInsights #articles .bi-desktop>h3::before{width:35px;height:35px;flex-basis:35px;border-radius:10px}
}
@media(max-width:390px) {
  #nbInsights .nb-discovery{padding:20px 17px}
  #nbInsights .nb-discovery-head {gap:12px}
  #nbInsights .nb-discovery-head h3{font-size:23px}
  #nbInsights .nb-discovery-graphic{width:44px;height:44px;flex-basis:44px}
  #nbInsights #articles .bi-desktop>h3{padding-inline:17px}
  #nbInsights #articles .bi-desktop .bi-links{padding-inline:17px}
  #nbInsights #articles .bi-links li{width:clamp(190px,68vw,245px);flex-basis:clamp(190px,68vw,245px)}
}
@media(prefers-reduced-motion:reduce){
  #nbInsights .nb-discovery *,#nbInsights #articles .bi-cat{
    transition:none!important;animation:none!important;
  }
  #nbInsights #articles .bi-cat:hover{transform:none!important}
}