/* ============================================================
  NEB Junction – Custom Theme Stylesheet
   ============================================================ */

/* ── CSS Custom Properties ──────────────────────────────────── */
:root {
  --neb-dark: #282828;
  --neb-olive: #5c5c3d;
  --neb-lime: #E4F249;
  --neb-green: #4caf82;
  --neb-teal: #4cc4ff;
  --neb-hover: #28AFAF;
  --neb-blue: #29b6f6;
  --neb-brand-blue: #0073e6;
  --neb-purple: #7e57c2;
  --neb-white: #ffffff;
  --neb-light-bg: #f2f2f2;
  --neb-text: #282828;
  --neb-text-muted: #6b6b55;
  --font-main: "Titillium Web", "Arial", sans-serif;
  --font-inter: "Inter", sans-serif;
  --neb-consortium-mint: #8AE5C7;
}

/* ── Page-wide width constraint (82.5rem, sections with white bg) ── */
.neb-colorbar,
.neb-events,
.neb-kb-preview,
.neb-map,
.neb-faq,
.neb-funding,
.neb-partners,
.neb-footer {
  max-width: 82.5rem;
  margin-left: auto;
  margin-right: auto;
}

/* Sections with non-white backgrounds are full-bleed;
   their __inner / __card wrappers centre the content. */

/* ── Base Overrides ─────────────────────────────────────────── */
body {
  font-family: var(--font-main) !important;
  font-size: 1.375rem;
  line-height: 1.875rem;
  font-weight: 400;
  color: var(--neb-text);
  text-align: justify;
  overflow-x: hidden;
  letter-spacing: 0.02em;
}

/* Text utility classes */
.text-body {
  font-size: 1.375rem;
  line-height: 1.875rem;
  font-weight: 400;
  color: var(--neb-text);
  text-align: justify;
  letter-spacing: 0.02em;
}

@media (max-width: 768px) {
  .text-body {
    font-size: 1.125rem;
    line-height: 1.5rem;
  }
}

.text-medium {
  font-size: 1.125rem;
  line-height: 1.563rem;
  font-weight: 400;
  color: var(--neb-text);
  text-align: justify;
  letter-spacing: 0.009rem;
}

.text-small {
  font-size: 1rem;
  line-height: 1.44rem;
  font-weight: 400;
  color: var(--neb-text);
  text-align: justify;
  letter-spacing: 0.02em;
}

/* ── Typography Scale (Desktop) ─────────────────────────────── */
h1,
h2,
h3,
h4,
h5,
h6,
.neb-nav,
.neb-header,
.neb-btn,
.neb-gem-card__title,
.neb-news-card__title,
.neb-project-card__name,
.neb-impact__title,
.neb-welcome__title,
.neb-kb-preview__title {
  text-align: left;
}

h1 {
  font-family: var(--font-main);
  font-size: 5.375rem;
  line-height: 5.5rem;
  font-weight: 700;
  color: var(--neb-dark);
  margin: 0;
}

h2 {
  font-family: var(--font-main);
  font-size: 2.5rem;
  line-height: 3rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--neb-dark);
  vertical-align: middle;
  margin: 0;
}


@media (max-width: 768px) {
  h1 {
    font-size: 2.19rem;
    line-height: 2.5rem;
  }

  html,
  body {
    overflow-x: hidden;
  }

  body {
    font-size: 1.125rem;
    line-height: 1.5rem;
  }

  .text-small {
    font-size: 0.875rem;
    line-height: 1.5rem;
  }

  h2 {
    font-size: 1.75rem;
    line-height: 2.13rem;
  }

  h4,
  [class*="__subtitle"] {
    font-size: 1.125rem;
    line-height: 1.62rem;
    letter-spacing: 0;
  }
}

h3 {
  font-family: var(--font-main);
  font-size: 1.875rem;
  line-height: 2.25rem;
  font-weight: 600;
  letter-spacing: 0.6px;
  color: var(--neb-dark);
  margin: 0;
}

@media (max-width: 768px) {
  h3 {
    font-size: 1.25rem;
    line-height: 1.5rem;
    letter-spacing: 0.4px;
  }
}

h3.bold,
h3 strong {
  font-weight: 700;
}

h4,
.neb-btn {
  font-family: var(--font-main);
  font-size: 1.3rem;
  line-height: 1.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--neb-dark);
  margin: 0;
}

@media (max-width: 768px) {
  h4,
  .neb-btn {
    font-size: 1.125rem;
    line-height: 1.617rem;
  }
}

:where([class*="__subtitle"]) {
  font-family: var(--font-main);
  font-size: 1.3rem;
  line-height: 1.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--neb-dark);
  margin: 0;
}

h5,
h6 {
  font-family: var(--font-main);
  font-weight: 600;
  color: var(--neb-dark);
  margin-top: 0;
}

a {
  color: var(--neb-teal);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ── Skip Link ──────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -2.5rem;
  left: 0;
  background: var(--neb-lime);
  color: var(--neb-dark);
  padding: 0.5rem 1rem;
  z-index: 1000;
  font-weight: 700;
}

.skip-link:focus {
  top: 0;
}

/* ── Header / Navigation ─────────────────────────────────────── */
.neb-header {
  background: var(--neb-white);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 0.0625rem solid #e0e0e0;
  padding-top: 1rem;
}

.neb-header__inner {
  width: 100%;
  padding: 0rem 1rem 0rem 0rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  margin: 0 1rem 1rem 1rem;
}

.neb-header__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.neb-header__logo-img {
  height: 2.5rem;
  width: auto;
  display: block;
}

.neb-nav {
  display: flex;
  align-items: center;
  gap: 0.454rem;
  margin-right: 2.25rem;
}

/* Hamburger toggle – hidden on desktop */
.neb-nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.3125rem;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.625rem;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.neb-nav__toggle span {
  display: block;
  width: 1.375rem;
  height: 0.125rem;
  background: #1a1a1a;
  border-radius: 0.125rem;
  transition:
    transform 0.2s,
    opacity 0.2s;
}

/* Active (open) state – top/bottom bars form an X */
.neb-nav__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(0.4375rem) rotate(45deg);
}

.neb-nav__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.neb-nav__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-0.4375rem) rotate(-45deg);
}

.neb-nav__item {
  color: var(--neb-text);
  text-decoration: none;
  font-size: 1.3rem;
  line-height: 1.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  height: 2.188rem;
  padding: 0.188rem 0.938rem 0.25rem 0.938rem;
  gap: 0.454rem;
  border-radius: 3.754rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    color 0.15s,
    background 0.15s;
}

.neb-nav__item:hover {
  color: var(--neb-teal);
  background: transparent;
  text-decoration: none;
}

.neb-nav__item--active {
  color: var(--neb-dark);
  font-weight: 600;
  background: var(--neb-teal);
  border-radius: 3.754rem;
  padding: 0.188rem 0.938rem 0.250rem;
}

.neb-nav__item--active:hover {
  color: var(--neb-dark);
  background: var(--neb-teal);
}

/* ── Nav Knowledge Base dropdown ───────────────────────────── */
.neb-nav__dd {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.neb-nav__dd__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3125rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}

.neb-nav__dd--active .neb-nav__dd__btn {
  font-weight: 600;
  background: var(--neb-teal);
  border-radius: 3.7944rem;
  padding: 0.1875rem 0.9375rem 0.25rem;
  color: var(--neb-dark);
}

/* Split dropdown: About link navigates, chevron-only btn toggles panel */
.neb-nav__dd--split .neb-nav__item {
  padding-right: 0;
}

.neb-nav__dd--split .neb-nav__dd__btn {
  padding: 0 0.25rem;
}

/* Active: pill on wrapper so chevron sits inside it */
.neb-nav__dd--split.neb-nav__dd--active {
  background: var(--neb-teal);
  border-radius: 3.7944rem;
}

.neb-nav__dd--split.neb-nav__dd--active .neb-nav__item--active {
  background: none;
  padding-right: 0;
}

.neb-nav__dd--split.neb-nav__dd--active .neb-nav__item--active:hover {
  background: none;
}

.neb-nav__dd--split.neb-nav__dd--active .neb-nav__dd__btn {
  background: none;
  border-radius: 0;
  padding: 0 0.9375rem 0 0.25rem;
  font-weight: inherit;
}

.neb-nav__dd__chevron {
  transition: transform 0.2s;
  flex-shrink: 0;
}

.neb-nav__dd.open .neb-nav__dd__chevron {
  transform: rotate(180deg);
}

.neb-nav__dd__panel {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  min-width: 13.75rem;
  background: #fff;
  border: none;
  border-radius: 0.75rem;
  padding: 0.375rem 0;
  z-index: 200;
  box-shadow: 0 0.25rem 1.25rem rgba(0, 0, 0, 0.1);
}

.neb-nav__dd__panel[hidden] {
  display: none;
}

.neb-nav__dd__link {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0.3125rem 0.5rem;
  color: var(--neb-dark);
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.15s;
}

.neb-nav__dd__link::before {
  content: '→\00a0';
  flex-shrink: 0;
  width: 0;
  overflow: hidden;
  font-family: var(--font-inter);
  font-weight: 300;
  transition: width 0.2s ease;
}

.neb-nav__dd__link:hover,
.neb-nav__dd__link--active {
  color: var(--neb-dark);
  background: transparent;
  text-decoration: none;
}

.neb-nav__dd__link:hover::before,
.neb-nav__dd__link--active::before {
  width: 1.1em;
}

/* ── Front Page Hero ────────────────────────────────────────── */
.neb-hero {
  background: linear-gradient(135deg, #1565c0 0%, #1976d2 60%, #1e88e5 100%);
  color: var(--neb-white);
  text-align: left;
  position: relative;
  overflow: hidden;
  min-height: 80vh;
  min-height: 80svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  margin: 0 0 9.375rem;
}

.neb-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 82.5rem;
  padding: 11.375rem 3.125rem 3rem;
  width: 100%;
  box-sizing: border-box;
}

.neb-hero::before {
  content: "";
  position: absolute;
  top: -3.75rem;
  right: -3.75rem;
  width: 20rem;
  height: 20rem;
  border-radius: 50%;
  background: radial-gradient(circle,
      rgba(255, 255, 255, 0.08) 0%,
      transparent 70%);
  pointer-events: none;
}

.neb-hero::after {
  content: "";
  position: absolute;
  bottom: -5rem;
  left: -2.5rem;
  width: 16.25rem;
  height: 16.25rem;
  border-radius: 50%;
  background: radial-gradient(circle,
      rgba(38, 198, 218, 0.15) 0%,
      transparent 70%);
  pointer-events: none;
}

.neb-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.neb-hero__content {
  max-width: 40rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.neb-hero__dots {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 18.75rem;
  height: 18.75rem;
  background-image: radial-gradient(rgba(255, 255, 255, 0.18) 0.0938rem,
      transparent 0.0938rem);
  background-size: 1.25rem 1.25rem;
  pointer-events: none;
}

.neb-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.neb-hero__logo-img {
  height: 5rem;
  width: auto;
  display: block;
  filter: drop-shadow(0 0.0625rem 0.25rem rgba(0, 0, 0, 0.25));
}

.neb-logo-bubbles {
  display: grid;
  grid-template-columns: repeat(3, 1.5rem);
  grid-template-rows: repeat(2, 1.5rem);
  gap: 0.3125rem;
  align-content: center;
}

.neb-logo-bubbles .neb-bubble {
  width: 1.5rem;
  height: 1.5rem;
}

.neb-bubble {
  border-radius: 50%;
  display: block;
}

.neb-bubble--lg {
  width: 1.75rem;
  height: 1.75rem;
}

.neb-bubble--md {
  width: 1.375rem;
  height: 1.375rem;
}

.neb-bubble--sm {
  width: 1rem;
  height: 1rem;
}

.neb-bubble--xs {
  width: 0.75rem;
  height: 0.75rem;
}

.bubble-lime {
  background: var(--neb-lime);
}

.bubble-green {
  background: var(--neb-green);
}

.bubble-teal {
  background: var(--neb-teal);
}

.bubble-blue {
  background: var(--neb-blue);
}

.bubble-purple {
  background: var(--neb-purple);
}

.bubble-dark {
  background: rgba(255, 255, 255, 0.25);
}

.neb-logo-text {
  font-family: var(--font-main) !important;
  font-size: 3.2rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--neb-white);
  line-height: 1;
}

.neb-logo-text span {
  color: var(--neb-lime);
}

.neb-footer__logo-img {
  height: 2rem;
  width: auto;
  display: block;
  margin-bottom: 0.75rem;
}

.neb-hero__tagline {
  font-size: 1.1rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.25rem;
}

.neb-hero__title {
  letter-spacing: -0.0098em;
  color: var(--neb-white);
  align-self: flex-start;
}

.neb-hero__subtitle {
  font-size: 1.15rem;
  line-height: 1.7;
  font-weight: 300;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.85);
  max-width: 42.5rem;
  margin: 0 auto 2.5rem;
}

.neb-hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 5.125rem;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.neb-btn {
  display: inline-block;
  padding: 0.1875rem 0.6875rem;
  border-radius: 0.25rem;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.neb-btn:hover,
.neb-btn:focus,
.neb-btn:visited {
  text-decoration: none;
}

.neb-btn--primary {
  background: var(--neb-lime);
  color: var(--neb-dark);
}

.neb-btn--primary:hover {
  background: #c8d94f;
  color: var(--neb-dark);
  text-decoration: none;
}

.neb-btn--outline {
  background: transparent;
  color: var(--neb-white);
  border: 0.125rem solid rgba(255, 255, 255, 0.5);
}

.neb-btn--outline:hover {
  border-color: var(--neb-lime);
  color: var(--neb-lime);
  text-decoration: none;
}

.neb-btn--outline-light {
  background: transparent;
  color: var(--neb-white);
  border: 0.125rem solid rgba(255, 255, 255, 0.6);
}

.neb-btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--neb-white);
  color: var(--neb-white);
  text-decoration: none;
}

.neb-btn--secondary {
  background: var(--neb-dark);
  color: var(--neb-white);
}

.neb-btn--secondary:hover {
  background: var(--neb-olive);
  color: var(--neb-white);
  text-decoration: none;
}

.neb-btn--card {
  background: transparent;
  color: var(--neb-teal);
  border: 0.0625rem solid var(--neb-teal);
  padding: 0.625rem 1.25rem;
  font-size: 0.88rem;
}

.neb-btn--card:hover {
  background: var(--neb-teal);
  color: var(--neb-white);
  text-decoration: none;
}

/* Pill button: white bg, blue text — used on coloured (hero/newsletter) backgrounds */
.neb-btn--pill-white {
  background: var(--neb-white);
  color: var(--neb-brand-blue);
  border-radius: 6.25rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.15);
  border: none;
}

.neb-btn--pill-white:hover {
  background: rgba(255, 255, 255, 0.92);
  color: var(--neb-brand-blue);
  text-decoration: none;
  box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.2);
}

/* Pill button: white bg, dark/black text — used on light (white/light-bg) backgrounds */
.neb-btn--pill {
  background: var(--neb-white);
  color: var(--neb-dark);
  border-radius: 6.25rem;
  padding: 0.25rem 0.75rem;
  font-weight: 600;
  font-size: 1.3rem;
  border: 0.0625rem solid var(--neb-text);
  align-self: flex-start;
}

.neb-btn--pill:hover {
  background: var(--neb-white);
  color: var(--neb-hover);
  text-decoration: none;
  border-color: var(--neb-hover);
}

.neb-btn--outline-dark {
  background: transparent;
  color: var(--neb-dark);
  border: 0.0938rem solid var(--neb-dark);
  border-radius: 6.25rem;
}

.neb-btn--outline-dark:hover {
  background: var(--neb-dark);
  color: var(--neb-white);
  text-decoration: none;
}

.neb-btn--disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── Color Bar ──────────────────────────────────────────────── */
.neb-colorbar {
  display: flex;
  height: 0.375rem;
}

.neb-colorbar span {
  flex: 1;
}

.neb-colorbar .c1 {
  background: var(--neb-lime);
}

.neb-colorbar .c2 {
  background: var(--neb-green);
}

.neb-colorbar .c3 {
  background: var(--neb-teal);
}

.neb-colorbar .c4 {
  background: var(--neb-blue);
}

.neb-colorbar .c5 {
  background: var(--neb-purple);
}

/* ── Section shared typography ──────────────────────────────── */
.neb-section-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--neb-green);
  margin-bottom: 0.75rem;
}

.neb-section-eyebrow--light {
  color: var(--neb-lime);
}

.neb-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--neb-dark);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.neb-section-title--light {
  color: var(--neb-white);
}

.neb-section-body {
  text-align: left;
  margin-bottom: 2.5rem;
}

@media (max-width: 768px) {
  .neb-section-body {
    margin-bottom: 1.813rem;
    text-align: justify;
  }
}

.neb-section-body--light {
  color: rgba(255, 255, 255, 0.85);
}

.neb-section-subtitle {
  font-size: 1.05rem;
  color: var(--neb-text-muted);
  font-weight: 300;
  line-height: 1.6;
  max-width: 42.5rem;
  margin: 0 auto;
}

.neb-section-header {
  text-align: center;
  margin-bottom: 3.25rem;
}

/* ── Welcome Section ────────────────────────────────────────── */
.neb-welcome {
  padding: 6rem 2.5rem 6rem;
  margin-top: 10rem;
  background: var(--neb-light-bg);
}

.neb-welcome__inner {
  max-width: 75.625rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 9fr 11fr;
  column-gap: 5.625rem;
  align-items: start;
}

.neb-welcome__left {
  display: flex;
  flex-direction: column;
}

.neb-welcome__text {
  align-self: start;
}

.neb-welcome__title {
  margin-bottom: 1.25rem;
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.neb-welcome__title--below {
  opacity: 0;
  transform: translateX(2.5rem);
}

.neb-welcome__title--above {
  opacity: 0;
  transform: translateX(-2.5rem);
}

@media (prefers-reduced-motion: reduce) {
  .neb-welcome__title {
    transition: none;
  }

  .neb-welcome__title--below,
  .neb-welcome__title--above {
    opacity: 1;
    transform: none;
  }
}

.neb-welcome__cta {
  margin-top: 0;
  background: var(--neb-light-bg);
  align-self: flex-start;
}

.neb-welcome__values {
  grid-column: 2;
  align-self: stretch;
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 0.75rem;
}

.neb-value-card {
  background: var(--neb-white);
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.neb-value-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.neb-value-icon--beautiful {
  background: var(--neb-lime);
  color: var(--neb-dark);
}

.neb-value-icon--sustainable {
  background: #b2dfdb;
  color: #2e6b5e;
}

.neb-value-icon--inclusive {
  background: var(--neb-green);
  color: var(--neb-white);
}

.neb-value-icon-img {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  display: block;
}

.neb-value-content {
  flex: 1;
}

.neb-value-card h4 {
  margin: 0 0 0.25rem 0;
}

.neb-value-card p body {
  margin: 0;
}

/* ── NEB Junction News ──────────────────────────────────────── */
.neb-news {
  padding: 0 2.5rem 1.875rem;
  background: var(--neb-white);
  margin: 9.375rem auto;
}

.neb-news__inner {
  max-width: 75.625rem;
  margin: 0 auto;
}

.neb-news__header {
  margin-bottom: 0.5rem;
}

/* Extend carousel-wrap into section padding so arrows sit outside cards */
.neb-news .neb-carousel-wrap,
.neb-funding-cards .neb-carousel-wrap {
  margin-left: -3rem;
  margin-right: -3rem;
}

.neb-news__title {
  margin: 0;
}

.neb-news__view-all {
  display: inline-block;
  font-size: 1.3125rem;
  font-weight: 600;
  color: var(--neb-dark);
  text-decoration: none;
  margin-bottom: 1.5rem;
  transition: color 0.15s;
}

.neb-news__view-all:hover {
  color: var(--neb-hover);
  text-decoration: none;
}

.neb-events__footer {
  margin-top: 1.5rem;
}

.neb-events__empty {
  padding: 1.5rem 0;
  color: var(--neb-text-muted);
  font-size: 1rem;
}

.neb-news-card {
  background: #fff;
  border-radius: 1rem;
  padding: 1.25rem;
  box-sizing: border-box;
  overflow: hidden;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  border: 0.0719rem solid #282828;
}

.neb-news-card__badge {
  display: inline-block;
  align-self: flex-end;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 3.0469rem;
  background: #0073e5;
  color: var(--neb-white);
}

.neb-news-card__badge--project {
  background: #11a6a6;
  color: var(--neb-white);
}

.neb-news-card__badge--funding {
  background: #453366;
  color: var(--neb-white);
}

.neb-news-card__badge--manual {
  background: #E4F249;
  color: var(--neb-dark);
}

.neb-news-card__badge--survey {
  background: #33BF26;
  color: var(--neb-white);
}

.neb-news-card__badge--event,
.neb-news-card__badge--story {
  background: #11a6a6;
  color: var(--neb-white);
}

.neb-news-card__title {
  font-size: 1.3125rem;
  line-height: 1.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #282828;
  margin: 0;
}

.neb-news-card__text {
  font-size: 1rem;
  line-height: 1.4375rem;
  color: #282828;
  font-weight: 400;
  margin: 0;
  flex: 1;
  text-align: justify;
}

/* Mobile: also in carousel */
@media (max-width: 768px) {
  .neb-news {
    padding: 3.5rem 1.5rem;
    margin: 0;
  }

  .neb-news-card {
    flex: 0 0 82vw;
    scroll-snap-align: start;
    max-width: 20rem;
    aspect-ratio: unset;
  }

  .neb-news .neb-carousel-wrap {
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .neb-funding-cards .neb-carousel-wrap {
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }
}

/* ── Looking for Funding cards ──────────────────────────────── */
.neb-funding-cards {
  padding: 0 2.5rem 1.875rem;
  background: var(--neb-white);
  max-width: 82.5rem;
  margin: 9.375rem auto;
}

.neb-funding-cards__inner {
  max-width: 77rem;
  margin: 0 auto;
}

.neb-funding-cards__header {
  margin-bottom: 1.75rem;
}

.neb-funding-cards__title {
  margin: 0 0 0.625rem;
}

.neb-funding-cards__desc {
  font-size: 1.3125rem;
  color: var(--neb-text-muted);
  font-weight: 400;
  margin: 0;
  line-height: 1.75rem;
  max-width: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.neb-news-card__badge--funding {
  background: #4a3060;
  color: var(--neb-white);
}

.neb-funding-card__status {
  font-size: 0.8rem;
  color: var(--neb-text-muted);
  font-weight: 400;
  margin-top: auto;
}

@media (max-width: 768px) {
  .neb-funding-cards {
    padding: 3rem 1.5rem;
    margin: 0;
  }


  .neb-funding-card__status {
    margin-top: 0;
  }
}

/* ── Newsletter ─────────────────────────────────────────────── */
.neb-newsletter {
  background: #e4f249;
  padding: 2.5rem;
}

.neb-newsletter__btn--mobile {
  display: none;
}

.neb-newsletter__card {
  background: var(--neb-white);
  border-radius: 1rem;
  overflow: hidden;
  display: grid;
  grid-template-columns: 5fr 6fr;
  max-width: 77rem;
  margin: 0 auto;
}

.neb-newsletter__text {
  padding: 3rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 1.25rem;
}

.neb-newsletter__title {
  margin: 0;
  text-align: left;
}

.neb-newsletter__sub {
  font-size: 1.3125rem;
  line-height: 1.75rem;
  color: #282828;
  margin: 0;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.neb-newsletter__image {
  padding: 1.875rem 1.875rem 1.875rem 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.neb-newsletter__image-inner {
  display: contents;
}

.neb-newsletter__image img {
  width: 60%;
  aspect-ratio: 124 / 123;
  object-fit: cover;
  border-radius: 0.75rem;
  display: block;
}

@media (max-width: 900px) {
  .neb-newsletter__card {
    grid-template-columns: 1fr;
  }

  .neb-newsletter__image {
    min-height: 13.75rem;
  }

  .neb-newsletter__text {
    padding: 2rem 1.5rem;
  }
}

/* ── Stakeholder Assemblies ─────────────────────────────────── */
.neb-stakeholder {
  background: #4CC4FF;
  padding: 2.5rem;
  margin-top: 11.31rem;
}

.neb-stakeholder__card {
  background: var(--neb-white);
  border-radius: 1rem;
  overflow: hidden;
  display: grid;
  grid-template-columns: 6fr 5fr;
  margin: 0 auto;
  max-width: 74rem;
  height: 38.375rem;
}

.neb-stakeholder__image {
  padding: 3.8rem 0 3.8rem 3.5rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.neb-stakeholder__image img {
    width: 30.775rem;
    height: 30.775rem;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
  }

.neb-stakeholder__text {
  padding: 3.4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 1.25rem;
}

.neb-stakeholder__text > .neb-btn--pill{
  margin-top: 1.25rem;
}

.neb-stakeholder__title {
  margin: 0;
  text-align: left;
}

.neb-stakeholder__sub {
  font-size: 1.3125rem;
  line-height: 1.75rem;
  color: #282828;
  margin: 0;
  font-weight: 400;
  letter-spacing: 0.02em;
}

@media (max-width: 900px) {
  .neb-stakeholder__card {
    grid-template-columns: 1fr;
  }

  .neb-stakeholder__image {
    min-height: 13.75rem;
  }

  .neb-stakeholder__text {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 768px) {
  .neb-stakeholder {
    background: var(--neb-white);
    padding: 0;
    overflow: hidden;
    margin-top: 7.81rem;
  }

  .neb-stakeholder__card {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: none;
    height: auto;
    background: transparent;
    border-radius: 0;
    overflow: visible;
  }

  .neb-stakeholder__text {
    display: contents;
  }

  .neb-stakeholder__title {
    order: 1;
    padding: 0 1.25rem;
  }

  .neb-stakeholder__sub {
    order: 2;
    padding: 1rem 1.25rem 1.5rem;
  }

  .neb-stakeholder__image {
    order: 3;
    min-height: 0;
    margin: 2rem 0;
    padding: 2.5rem 2.125rem;
    box-sizing: border-box;

    background: var(--neb-white);
    border-radius: 1rem;

    box-shadow: 0 0 0 100vmax #4cc4ff;
    clip-path: inset(-2rem -100vmax);
  }

  .neb-stakeholder__image img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
  }

  .neb-stakeholder__text > .neb-btn--pill {
    order: 4;
    align-self: flex-start;
    margin: 2rem 1.25rem 0;
  }
}

/* ── Upcoming Events ────────────────────────────────────────── */
.neb-events {
  padding: 0 2.5rem 1.875rem;
  margin-top: 9.375rem;
  background: var(--neb-white);
}

.neb-events__inner {
  max-width: 77rem;
  margin: 0 auto;
}

.neb-events__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0;
}

.neb-events__title {
  margin: 0;
}

.neb-events__rule {
  border: none;
  border-top: 0.0625rem solid #282828;
  margin: 1rem 0 0;
}

.neb-events__view-all {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--neb-dark);
  white-space: nowrap;
  text-decoration: none;
}

.neb-events__view-all:hover {
  color: var(--neb-hover);
  text-decoration: none;
}

.neb-events__list {
  display: flex;
  flex-direction: column;
}

/* Desktop: flat list rows with dividers */
.neb-event-card {
  display: grid;
  grid-template-columns: 8.125rem 1fr;
  gap: 2rem;
  align-items: start;
  padding: 1.5rem 0;
  border-bottom: 0.0625rem solid #282828;
  text-decoration: none;
  background: transparent;
  border-radius: 0;
  transition: none;
}

.neb-event-card:hover {
  text-decoration: none;
}

.neb-event-card:hover .neb-event-card__title {
  color: var(--neb-teal);
}

.neb-event-card__date {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 0.375rem 0.625rem 0.375rem 0.375rem;
}

.neb-event-card__day {
  font-size: 2.5rem;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--neb-dark);
  white-space: nowrap;
}

.neb-event-card__month {
  font-size: 1.125rem;
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--neb-text-muted);
  white-space: nowrap;
  text-align: right;
}

.neb-event-card__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.neb-event-card__tags {
  margin-top: 0.625rem;
}

.neb-event-card__title {
  font-size: 1.875rem;
  line-height: 2.5625rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--neb-dark);
  margin: 0;
  transition: color 0.15s;
}

.neb-event-card__meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.neb-event-card__meta-item {
  display: flex;
  align-items: center;
  gap: 0.3125rem;
  font-size: 0.82rem;
  color: var(--neb-text-muted);
}

.neb-event-card__tags {
  display: flex;
  gap: 0.375rem;
  flex-wrap: wrap;
}

.neb-event-card__arrow {
  display: none;
}

.neb-tag--category {
  background: #e4f249 !important;
  color: #282828 !important;
  font-size: 0.875rem;
  line-height: 1.17rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.75rem;
  border-radius: 6.25rem;
  text-transform: uppercase;
  display: inline-block;
  text-align: left;
}

/* Meta item icons via ::before */
.neb-event-card__meta-item {
  position: relative;
  padding-left: 1.25rem;
}

.neb-event-card__meta-item::before {
  content: '';
  display: inline-block;
  width: 0.875rem;
  height: 0.875rem;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.neb-event-card__meta-item--external::before {
  background-image: url('/themes/custom/nebjunction/images/icon-external.svg');
}

.neb-event-card__meta-item--location::before {
  background-image: url('/themes/custom/nebjunction/images/icon-location.svg');
}

.neb-event-card__meta-item--streaming::before {
  background-image: url('/themes/custom/nebjunction/images/icon-streaming.svg');
}

/* Mobile: flat list layout like desktop */
@media (max-width: 768px) {
  .neb-events {
    padding: 3rem 1.5rem;
    margin: 0;
  }

  .neb-events__rule {
    margin-bottom: 0;
  }

  .neb-event-card {
    display: grid;
    grid-template-columns: 6.25rem 1fr;
    align-items: start;
    gap: 0.75rem;
    padding: 1.25rem 0;
    background: transparent;
    border: none;
    border-radius: 0;
    border-bottom: 0.0625rem solid #282828;
    margin-bottom: 0;
  }

  .neb-event-card__date {
    align-items: flex-end;
    padding: 0.25rem 0.5rem 0.25rem 0;
  }

  .neb-event-card__day {
    font-size: 1.75rem;
    line-height: 2.125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
  }

  .neb-event-card__month {
    font-size: 0.875rem;
    line-height: 1.2;
  }

  .neb-event-card__title {
    font-size: 1.125rem;
    line-height: 1.5rem;
    margin-bottom: 0.25rem;
  }

  .neb-event-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1rem;
    flex-direction: column;
  }

  .neb-event-card__tags {
    align-items: flex-start;
  }

  .neb-event-card__meta-item {
    font-size: 0.8rem;
  }

  .neb-event-card__arrow {
    display: none;
  }
}

/* ── Knowledge Base Preview ─────────────────────────────────── */
.neb-kb-preview {
  padding: 0 2rem 2rem;
  margin-top: 10rem;
  background: var(--neb-white);
}

.neb-kb-preview__inner {
  max-width: 82.5rem;
  margin: 0 auto;
}

.neb-kb-preview__header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.neb-kb-preview__title {
  margin: 0;
  padding-left: 3.4rem;
}

.neb-kb-preview__desc {
  padding-left: 3.4rem;
  padding-right: 3rem;
  margin: 1rem 0 0;
  font-size: 1.3rem;
  line-height: 1.75rem;
  color: var(--neb-text);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.neb-kb-gem-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.3125rem;
  font-weight: 600;
  line-height: 1.75rem;
  letter-spacing: 0em;
  color: var(--neb-dark);
  text-decoration: none;
  transition: color 0.2s;
}

.neb-kb-gem-link:hover {
  color: var(--neb-hover);
  text-decoration: none;
}

.neb-kb-gem-link__icon {
  width: 3.125rem;
  height: 3.125rem;
  flex-shrink: 0;
  display: block;
}

/* Carousel wrapper with arrow buttons */
.neb-carousel-wrap {
  position: relative;
  padding: 0 3rem;
}

.neb-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  background: #fff;
  border: none;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 0;
}

.neb-carousel-btn--prev {
  left: -0.75rem;
}

.neb-carousel-btn--next {
  right: -0.75rem;
}

/* Carousel: always horizontal scroll, 3 cards on desktop */
.neb-gem-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 0.375rem;
  -webkit-overflow-scrolling: touch;
  gap: 1.5rem;
  scrollbar-width: none;
  scroll-behavior: smooth;
  padding: 0.125rem 0.375rem 0.375rem;
  box-sizing: border-box;
}

.neb-gem-carousel::-webkit-scrollbar {
  display: none;
}

/* Each card = (100% − 2 gaps) / 3  →  exact third, no rounding drift */
.neb-gem-card,
.neb-project-card,
.neb-news-card {
  flex: 0 0 calc((100% - 3rem) / 3);
  min-width: 0;
  scroll-snap-align: start;
}

.neb-gem-card {
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: none;
  border: 0.0719rem solid #282828;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.neb-gem-card a:hover,
.neb-gem-card a:hover * {
  text-decoration: none;
}

.neb-gem-card__img-wrap {
  position: relative;
  padding: 0.75rem 0.75rem 0;
}

.neb-gem-card__img-placeholder {
  height: 11.25rem;
  width: 100%;
  border-radius: 0.5rem;
}

.neb-gem-card__img {
  width: 100%;
  height: 11.25rem;
  object-fit: cover;
  display: block;
  border-radius: 0.5rem;
}

.neb-gem-card__bookmark {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 2.5rem;
  height: 2.5rem;
  background: url("/themes/custom/nebjunction/images/Bookmark_Green.png") center/contain no-repeat;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 10;
}

.neb-gem-card__bookmark img {
  display: none;
}

.neb-gem-card__body {
  padding: 1.25rem 1.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  flex: 1;
}

.neb-gem-card__title {
  font-size: 1.3125rem;
  /* 1.3125rem */
  line-height: 1.75rem;
  /* 1.75rem */
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--neb-dark);
  margin: 0;
}

.neb-gem-card__text body.text-small {
  margin: 0;
  flex: 1;
}

.neb-gem-card__text {
  font-size: 1rem;
  /* 1rem */
  line-height: 1.4375rem;
  /* 1.4375rem */
  margin-top: 0;
}

.neb-gem-card__tag {
  color: #28282880;
  font-size: 1rem;
  /* 1rem */
  line-height: 1.4375rem;
  /* 1.4375rem */
  margin-top: auto;
}

.neb-gem-card__title a,
.neb-gem-card__title a:visited {
  color: #282828;
}

/* Sub-sections within KB preview */
.neb-kb-subsection {
  margin-top: 3rem;
}

.neb-kb-subsection .neb-gem-carousel {
  margin-top: 1.25rem;
}

/* Align heading and footer button with the first carousel card
   (carousel wrap adds 3rem padding for arrow buttons) */
.neb-kb-subsection .neb-kb-gem-link,
.neb-kb-subsection__footer {
  padding-left: 3.4rem;
}

.neb-kb-subsection__footer {
  margin-top: 1.25rem;
}

/* Share your Knowledge – desktop two-column layout */
.neb-kb-subsection--share {
  overflow: visible;
  display: grid;
  grid-template-columns: 3fr 3rem 2fr;
  min-height: 18.75rem;
  position: relative;
  margin-top: 15rem;
  margin-bottom: 2rem;
}

.neb-kb-subsection--share::before,
.neb-kb-subsection--share::after {
  content: "";
  position: absolute;
  width: 100vw;
  height: 0.0625rem;
  background: #282828;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.neb-kb-subsection--share::before {
  top: 0;
}

.neb-kb-subsection--share::after {
  bottom: 0;
}

.neb-share__left {
  padding: 3.4rem 3.4rem 3.4rem 3.4rem;
  background: var(--neb-white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

.neb-share__left .neb-btn--pill {
  margin-top: 0.75rem;
  align-self: flex-start;
  border: 0.0625rem solid #1a1a1a;
}

.neb-share__title {
  margin: 0;
}

.neb-share__text {
  font-size: 1.3125rem;
  color: var(--neb-text);
  font-weight: 400;
  line-height: 1.75rem;
  margin: 0;
}

.neb-share__right {
  grid-column: 3;
  position: relative;
  overflow: hidden;
}

.neb-share__right-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Decorative stacked cards */
.neb-share__deco-card {
  position: absolute;
  background: var(--neb-white);
  border-radius: 0.875rem;
  padding: 1.25rem;
  width: 16.875rem;
  box-shadow: 0 0.75rem 2.5rem rgba(0, 0, 0, 0.22);
  font-size: 0.82rem;
  color: var(--neb-text-muted);
  line-height: 1.55;
}

.neb-share__deco-card h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--neb-dark);
  margin: 0 0 0.625rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.neb-share__deco-card p {
  margin: 0 0 0.875rem;
}

.neb-share__deco-card span,
.neb-share__deco-card small {
  font-size: 0.75rem;
  color: var(--neb-text-muted);
  display: block;
}

.neb-share__deco-card--back {
  transform: rotate(-7deg);
  left: 10%;
  top: 50%;
  translate: 0 -50%;
  z-index: 1;
}

.neb-share__deco-card--front {
  transform: rotate(5deg);
  right: 8%;
  top: 50%;
  translate: 0 -55%;
  z-index: 2;
}

.neb-share__deco-img {
  height: 9.375rem;
  background: linear-gradient(135deg, #c8d8e8, #a0b8cc);
  border-radius: 0.625rem;
  margin-bottom: 0.875rem;
}

/* Desktop: hide mobile-only CTA */
.neb-share__cta--mobile {
  display: none;
}

/* Mobile: stack vertically */
@media (max-width: 900px) {
  .neb-kb-subsection--share {
    grid-template-columns: 1fr;
    margin-left: 0;
    margin-right: 0;
    margin-top: 3rem;
  }

  .neb-share__left {
    padding: 1.5rem 0rem 1rem;
  }

  .neb-share__right {
    grid-column: auto;
    min-height: 16.25rem;
    margin-left: -1.5rem;
    margin-right: -1.5rem;
  }

  .neb-kb-subsection--share::before,
  .neb-kb-subsection--share::after {
    display: none;
  }

  /* Button order: hide desktop button, show after image */
  .neb-share__cta--desktop {
    display: none;
  }

  .neb-share__cta--mobile {
    display: block;
    margin-top: 1.75rem;
  }
}

/* Project cards (text-only, no image) */
a.neb-project-card,
a.neb-project-card:hover,
a.neb-project-card:hover *,
a.neb-news-card,
a.neb-news-card:hover,
a.neb-news-card:hover * {
  color: inherit;
  text-decoration: none;
}

a.neb-news-card:hover .neb-news-card__badge:not(.neb-news-card__badge--manual) {
  color: var(--neb-white);
}

.neb-project-card {
  background: #fff;
  border-radius: 1rem;
  padding: 4.25rem 1.5rem 1.5rem;
  box-sizing: border-box;
  overflow: hidden;
  box-shadow: none;
  border: 0.0719rem solid #282828;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
}

.neb-project-card .neb-gem-card__bookmark {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-image: url("/themes/custom/nebjunction/images/Bookmark_Lime.png");
}

.neb-project-card .neb-gem-card__bookmark:hover {
  background-image: url("/themes/custom/nebjunction/images/Bookmark_Lime.png");
}

.neb-project-card__name {
  font-size: 1.3125rem;
  font-weight: 600;
  line-height: 1.75rem;
  color: var(--neb-dark);
  margin: 0;
  padding-right: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.neb-project-card__text {
  font-size: 1rem;
  line-height: 1.4375rem;
  color: #282828;
  font-weight: 400;
  margin: 0;
  flex: 1;
  text-align: justify;
}

.neb-project-card__meta {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  margin-top: 2.1875rem;
}

.neb-project-card__meta span {
  font-size: 1rem;
  line-height: 1.4375rem;
  color: #282828;
  font-weight: 400;
}

/* Mobile: horizontal scroll with snap */
@media (max-width: 768px) {
  .neb-gem-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
    padding-bottom: 0.75rem;
    /* hide scrollbar */
    scrollbar-width: none;
  }

  .neb-gem-carousel::-webkit-scrollbar {
    display: none;
  }

  .neb-gem-card,
  .neb-project-card,
  .neb-news-card {
    flex: 0 0 82vw;
    max-width: 20rem;
    aspect-ratio: unset;
  }

  .neb-carousel-btn {
    display: none;
  }
}

.neb-kb-preview__footer {
  margin-top: 2.5rem;
}

.neb-kb-card {
  background: var(--neb-white);
  border-radius: 0.5rem;
  padding: 2rem 1.75rem;
  border-top: 0.25rem solid var(--neb-teal);
  box-shadow: 0 0.125rem 1rem rgba(0, 0, 0, 0.07);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.neb-kb-card:hover {
  transform: translateY(-0.25rem);
  box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.12);
}

.neb-kb-card--gems {
  border-top-color: var(--neb-lime);
}

.neb-kb-card--projects {
  border-top-color: var(--neb-teal);
}

.neb-kb-card--share {
  border-top-color: var(--neb-green);
}

.neb-kb-card__icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--neb-light-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neb-teal);
}

.neb-kb-card--gems .neb-kb-card__icon {
  color: var(--neb-lime);
  background: rgba(212, 225, 87, 0.1);
}

.neb-kb-card--projects .neb-kb-card__icon {
  color: var(--neb-teal);
  background: rgba(38, 198, 218, 0.1);
}

.neb-kb-card--share .neb-kb-card__icon {
  color: var(--neb-green);
  background: rgba(76, 175, 130, 0.1);
}

.neb-kb-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--neb-dark);
  margin-bottom: 0;
}

.neb-kb-card__text {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--neb-text-muted);
  font-weight: 300;
  flex-grow: 1;
}

.neb-kb-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.neb-tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  background: var(--neb-light-bg);
  color: var(--neb-text-muted);
  padding: 0.25rem 0.625rem;
  border-radius: 6.25rem;
  text-transform: uppercase;
}

.neb-kb-cta {
  text-align: center;
  margin-top: 2.75rem;
}

/* ── Intro Section (legacy) ─────────────────────────────────── */
.neb-intro {
  background: var(--neb-light-bg);
  padding: 4rem 2.5rem;
  text-align: center;
}

.neb-intro__inner {
  max-width: 51.25rem;
  margin: 0 auto;
}

.neb-intro__eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--neb-green);
  margin-bottom: 1rem;
}

.neb-intro__text {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--neb-text);
  font-weight: 300;
}

/* ── Features Grid (legacy) ─────────────────────────────────── */
.neb-features {
  padding: 4.5rem 2.5rem;
  background: var(--neb-white);
}

.neb-features__header {
  text-align: center;
  margin-bottom: 3.25rem;
}

.neb-features__title {
  font-size: 1.9rem;
  color: var(--neb-dark);
  margin-bottom: 0.75rem;
}

.neb-features__subtitle {
  font-size: 1.05rem;
  font-weight: 300;
  letter-spacing: 0;
  color: var(--neb-text-muted);
}

.neb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16.25rem, 1fr));
  gap: 1.75rem;
  max-width: 75.625rem;
  margin: 0 auto;
}

.neb-card {
  background: var(--neb-white);
  border-radius: 0.5rem;
  padding: 2rem 1.75rem;
  border-top: 0.25rem solid var(--neb-teal);
  box-shadow: 0 0.125rem 1rem rgba(0, 0, 0, 0.07);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.neb-card:hover {
  transform: translateY(-0.25rem);
  box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.12);
}

.neb-card--lime {
  border-top-color: var(--neb-lime);
}

.neb-card--green {
  border-top-color: var(--neb-green);
}

.neb-card--teal {
  border-top-color: var(--neb-teal);
}

.neb-card--blue {
  border-top-color: var(--neb-blue);
}

.neb-card--purple {
  border-top-color: var(--neb-purple);
}

.neb-card__icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
}

.neb-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--neb-dark);
  margin-bottom: 0.625rem;
}

.neb-card__text {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--neb-text-muted);
  font-weight: 300;
}

/* ── NEB Pillars (legacy) ───────────────────────────────────── */
.neb-pillars {
  background: var(--neb-dark);
  color: var(--neb-white);
  padding: 4.5rem 2.5rem;
}

.neb-pillars__header {
  text-align: center;
  margin-bottom: 3rem;
}

.neb-pillars__title {
  font-size: 1.9rem;
  color: var(--neb-lime);
  margin-bottom: 0.75rem;
}

.neb-pillars__subtitle {
  font-weight: 300;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.7);
}

.neb-pillars-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr));
  gap: 1.25rem;
  max-width: 56.25rem;
  margin: 0 auto;
  list-style: none;
  padding: 0;
}

.neb-pillar {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 0.375rem;
  padding: 1.5rem 1.25rem;
  text-align: center;
  border: 0.0625rem solid rgba(255, 255, 255, 0.1);
}

.neb-pillar__dot {
  width: 0.875rem;
  height: 0.875rem;
  border-radius: 50%;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.neb-pillar__label {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}

/* ── Projects Map ───────────────────────────────────────────── */
.neb-map {
  padding: 0 2.5rem 1.875rem;
  margin-top: 9.375rem;
  background: var(--neb-white);
}

.neb-map__container {
  max-width: 75.625rem;
  margin: 0 auto 2rem;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 0.25rem 1.5rem rgba(0, 0, 0, 0.1);
  min-height: 30rem;
  background: #e8e8e0;
  position: relative;
}

/* Leaflet map */
#neb-leaflet-map {
  width: 100%;
  height: 30rem;
  border-radius: 0.5rem;
}

.neb-map__container>div {
  width: 100% !important;
  min-height: 30rem !important;
}

.neb-map__cta {
  text-align: center;
  margin-top: 0.5rem;
}

/* ── Funding Navigator ──────────────────────────────────────── */
.neb-funding {
  background: var(--neb-dark);
  padding: 0 2.5rem 1.875rem;
  margin-top: 9.375rem;
}

.neb-funding__inner {
  max-width: 56.25rem;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 3rem;
}

.neb-funding__icon {
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  width: 5.5rem;
  height: 5.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.neb-funding__text {
  flex: 1;
}

/* ── CTA Banner (legacy) ────────────────────────────────────── */
.neb-cta {
  background: linear-gradient(90deg, var(--neb-teal) 0%, var(--neb-blue) 100%);
  padding: 0 2.5rem 1.875rem;
  margin-top: 9.375rem;
  text-align: center;
}

.neb-cta__title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--neb-white);
  margin-bottom: 0.75rem;
}

.neb-cta__text {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 300;
  margin-bottom: 1.75rem;
}

.neb-cta .neb-btn--primary {
  background: var(--neb-white);
  color: var(--neb-dark);
}

.neb-cta .neb-btn--primary:hover {
  background: var(--neb-lime);
  color: var(--neb-dark);
}

/* ── Results & Impact ───────────────────────────────────────── */
.neb-impact {
  background: var(--neb-light-bg);
  padding: 6rem 2.5rem 6rem;
  margin-top: 10rem;
}

.neb-impact__inner {
  max-width: 75.625rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2.875rem;
}

.neb-impact__title {
  margin: 0 0 1rem;
}

.neb-impact__desc {
  font-size: 1.3rem;
  line-height: 1.75rem;
  color: var(--neb-text);
  font-weight: 400;
  letter-spacing: 0.02em;
  margin: 0;
}

.neb-impact__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 1fr;
  gap: 1rem;
}

@media (max-width: 768px) {
  .neb-impact {
    background: var(--neb-white);
    padding: 3.5rem 0;
    margin-top: 0rem;
  }

  .neb-impact__header {
    padding: 0 1.5rem;
  }

  .neb-impact__cards {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    background: var(--neb-light-bg);
    padding: 1.5rem;
  }
}

/* ── FAQ ────────────────────────────────────────────────────── */
.neb-faq {
  padding: 0 2.5rem 1.875rem;
  background: var(--neb-white);
  max-width: 82.5rem;
  margin: 9.375rem auto;
}

.neb-faq__inner {
  max-width: 77rem;
  margin: 0 auto;
}

.neb-faq__title {
  margin: 0 0 2.5rem;
  text-align: left;
}

.neb-faq__list {
  display: flex;
  flex-direction: column;
}

.neb-faq__item {
  background: transparent;
  border-radius: 0;
  border: none;
  border-top: 0.0625rem solid #282828;
  overflow: visible;
}

.neb-faq__item:last-child {
  border-bottom: 0.0625rem solid #282828;
}

.neb-faq__question {
  padding: 1.25rem 0;
  font-size: 1.3125rem;
  line-height: 1.75rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--neb-dark);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.15s;
  text-align: left;
}

.neb-faq__question::-webkit-details-marker {
  display: none;
}

.neb-faq__question::after {
  content: "+";
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--neb-dark);
  flex-shrink: 0;
  margin-left: 1.5rem;
}

.neb-faq__item[open] .neb-faq__question::after {
  content: "−";
}

.neb-faq__question:hover {
  color: var(--neb-teal);
}

.neb-faq__answer {
  padding: 0 0 1.5rem;
}

.neb-faq__answer p {
  font-size: 1.125rem;
  line-height: 1.5625rem;
  color: var(--neb-text);
  font-weight: 400;
  letter-spacing: 0.02em;
  margin: 0 0 0.75rem;
}

.neb-faq__answer ul {
  margin: 0 0 0.75rem;
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.neb-faq__answer li {
  font-size: 1.125rem;
  line-height: 1.5625rem;
  color: var(--neb-text);
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* ── Partners ───────────────────────────────────────────────── */
.neb-partners {
  padding: 3.125rem 2.5rem 6.25rem;
  background: var(--neb-white);
  text-align: center;
  overflow: hidden;
}

.neb-partners .neb-section-eyebrow {
  margin-bottom: 1.75rem;
}

.neb-partners__track {
  overflow: hidden;
  width: 100%;
  position: relative;
}

.neb-partners__logos {
  display: flex;
  gap: 3rem;
  align-items: center;
  width: max-content;
  animation: neb-scroll 28s linear infinite;
}

.neb-partners__logos:hover {
  animation-play-state: paused;
}

@keyframes neb-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.neb-partner-logo {
  height: 3rem;
  width: auto;
  max-width: 10rem;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.neb-partner-logo--lg {
  height: 4.5rem;
  max-width: 12.5rem;
}

.neb-partners__eu {
  margin-top: 1.75rem;
  color: var(--neb-text-muted);
  font-size: 0.8rem;
  max-width: 43.75rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* ── Follow Us ──────────────────────────────────────────────── */
.neb-follow {
  background: var(--neb-white);
  padding: 0;
  border-top: 0.0625rem solid #282828;
  border-bottom: 0.0625rem solid #282828;
  margin: 9.375rem auto;
}

.neb-follow__card {
  background: var(--neb-light-bg);
  max-width: 77rem;
  margin: 0 auto;
  padding: 2.5rem;
}

.neb-follow__title {
  margin: 0 0 1.5rem;
  text-align: left;
}

.neb-follow__img {
  width: 100%;
  display: block;
  border-radius: 0.5rem;
}

.neb-follow__handle {
  font-size: 1.125rem;
  line-height: 1.5625rem;
  color: var(--neb-text-muted);
  font-weight: 400;
  letter-spacing: 0.02em;
  margin: 1rem 0 0;
  text-align: left;
}

/* ── Footer ─────────────────────────────────────────────────── */
.neb-footer {
  background: var(--neb-white);
}

.neb-footer__inner {
  max-width: 75.625rem;
  margin: 0 auto;
  padding: 2.5rem 2.5rem 5.1875rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.neb-footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.neb-footer__logo-img {
  height: 2.25rem;
  width: auto;
}

.neb-footer__social-label {
  font-size: 0.88rem;
  color: var(--neb-text-muted);
  font-weight: 400;
}

.neb-footer__email {
  text-transform: none;
}

.neb-footer__email:hover {
  color: var(--neb-brand-blue);
  text-decoration: none;
}

.neb-footer__links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 2rem;
  margin-bottom: 2.5rem;
}

.neb-footer__nav,
.neb-footer__social-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.neb-footer__nav li a,
.neb-footer__social-list li a {
  font-family: var(--font-main);
  font-size: 1.3125rem;
  line-height: 2rem;
  font-weight: 400;
  letter-spacing: 0.42px;
  color: var(--neb-dark);
  text-decoration: none;
  transition: color 0.15s;
}

.neb-footer__nav li a:not(.neb-footer__email) {
  text-transform: uppercase;
}

.neb-footer__nav li a:hover,
.neb-footer__social-list li a:hover {
  color: var(--neb-brand-blue);
  text-decoration: none;
}

.neb-footer__legal-text {
  margin: 0;
}

.neb-footer__eu-funding-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.neb-footer__ec-logo {
  flex-shrink: 0;
  width: 6.6875rem;
  height: 4.5625rem;
  aspect-ratio: 107 / 73;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .neb-header__logo-img {
    height: 2rem;
    width: auto;
 
  }
  .neb-welcome__title {
    margin-bottom: 0.938rem;
  }

  .neb-welcome__inner {
    display: flex;
    flex-direction: column;
  }

  .neb-welcome__left {
    display: contents;
  }

  .neb-welcome__text {
    order: 1;
  }

  .neb-welcome__values {
    order: 2;
  }

  .neb-welcome__cta {
    order: 3;
  }

  .neb-kb-preview__desc {
    padding-left: 0;
    padding-right: 0;
  }

  .neb-welcome__values {
    grid-column: auto;
    grid-row: auto;
    background: var(--neb-light-bg);
    padding: 1.5rem;
  }

  .neb-value-card {
    padding: 0.875rem 1rem;
  }

  .neb-footer__inner {
    grid-template-columns: 1fr 1fr;
  }

  .neb-funding__inner {
    flex-direction: column;
    gap: 1.75rem;
  }

  .neb-funding__icon {
    margin: 0 auto;
  }

  .neb-funding__text {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .neb-header__inner {
    margin: 0.9rem;
  }

  .neb-header__logo-img {
    height: 2rem;
    width: auto;
  }

  .neb-nav__toggle {
    display: flex;
  }

  .neb-nav {
    display: none;
    position: absolute;
    top: 4rem;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--neb-white);
    padding: 0.75rem 1rem 1.25rem;
    box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.1);
    z-index: 99;
  }

  .neb-nav.neb-nav--open {
    display: flex;
  }

  .neb-nav__item {
    padding: 0.75rem 1rem;
    font-size: 1.125rem;
    line-height: 1.62rem;
    border-radius: 0.5rem;
  }

  /* KB dropdown: full-width column, button styled like other nav items */
  .neb-nav__dd {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .neb-nav__dd__btn {
    justify-content: center;
    padding: 0.75rem 1rem;
    font-size: 1.125rem;
    line-height: 1.62rem;
    border-radius: 0.5rem;
    width: 100%;
  }

  .neb-nav__dd--active .neb-nav__dd__btn {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
  }

  /* Split dropdown on mobile: link + chevron in same row */
  .neb-nav__dd--split {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: stretch;
  }

  .neb-nav__dd--split .neb-nav__item {
    height: auto;
    padding: 0.75rem 1rem;
    font-size: 1.125rem;
    line-height: 1.62rem;
    border-radius: 0.5rem;
    justify-content: center;
  }

  .neb-nav__dd--split .neb-nav__dd__btn {
    width: auto;
    padding: 0 0.75rem;
    border-radius: 0.5rem;
    font-size: 1.125rem;
    line-height: 1.62rem;
    justify-content: center;
    align-items: center;
  }

  .neb-nav__dd--split.neb-nav__dd--active .neb-nav__dd__btn {
    background: none;
    border-radius: 0.5rem;
    padding: 0 0.75rem;
    font-weight: inherit;
  }

  .neb-nav__dd--split .neb-nav__dd__panel {
    grid-column: 1 / -1;
  }

  /* Inline dropdown – no floating box */
  .neb-nav__dd__panel {
    position: static;
    min-width: 0;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: transparent;
    padding: 0.25rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }

  .neb-nav__dd__panel[hidden] {
    display: none;
  }

  .neb-nav__dd__link {
    padding: 0.75rem 1rem;
    font-size: 1.125rem;
    line-height: 1.62rem;
    border-radius: 0.5rem;
    background: var(--neb-light-bg);
    color: var(--neb-text);
  }

  .neb-hero {
    min-height: 0;
    margin-bottom: 0;
  }

  .neb-hero__inner {
    padding: 2rem 1.25rem 2rem;
  }

  .neb-btn {
    font-size: 1.125rem;
    line-height: 1.62rem;
    letter-spacing: 0;
  }

  .text-small {
    font-size: 0.875rem;
    line-height: 1.25rem;
  }

  .neb-welcome {
    background: var(--neb-white);
    margin-top: 0rem;
    padding: 3.563rem 0 0;
  }

  .neb-welcome__text {
    padding: 0 1.25rem;
  }

  .neb-welcome__cta {
    background: var(--neb-white);
    margin-top: 0.75rem;
    margin-left: 1.25rem;
  }

  .neb-kb-preview,
  .neb-funding,
  .neb-partners,
  .neb-features,
  .neb-intro,
  .neb-pillars,
  .neb-cta,
  .neb-funding-cards {
    padding: 3.5rem 1.5rem;
  }

  .neb-faq {
    padding: 3.5rem 1.5rem;
    margin: 0;
  }

  .neb-newsletter {
    background: var(--neb-white);
    padding: 0;
    margin: 9.375rem 0 0;
    display: flex;
    flex-direction: column;
  }

  .neb-newsletter__card {
    background: transparent;
    border-radius: 0;
    overflow: visible;
    display: flex;
    flex-direction: column;
  }

  .neb-newsletter__text {
    background: var(--neb-white);
    padding: 2rem 1.25rem;
    border-radius: 0;
  }

  .neb-newsletter__image {
    background: var(--neb-lime);
    padding: 1.875rem 0;
    min-height: auto;
    display: block;
    transform: scaleY(-1);
  }

  .neb-newsletter__image-inner {
    display: block;
    width: 100%;
    box-sizing: border-box;
    background: var(--neb-white);
    border-radius: 0.813rem;
    padding: 2.375rem 2.125rem 2.375rem 2.125rem;
    transform: scaleY(-1);
  }

  .neb-newsletter__image img {
    width: 100%;
    display: block;
    border-radius: 0rem;
    aspect-ratio: 124 / 123;
    object-fit: cover;
  }

  .neb-newsletter__btn--desktop {
    display: none;
  }

  .neb-newsletter__btn--mobile {
    display: inline-flex;
    margin-top: 1.875rem;
    margin-left: 1.25rem;
  }

  .neb-events {
    padding: 6.25rem 1.5rem;
  }

  .neb-event-card {
    gap: 1rem;
    padding: 1rem 1.25rem;
  }

  .neb-section-title {
    font-size: 1.6rem;
  }


  .neb-footer__inner {
    grid-template-columns: 1fr;
    padding: 2.5rem 1.5rem 1.5rem;
  }

  .neb-footer__nav li a {
    font-size: 0.875rem;
    line-height: 1.4375rem;
    font-weight: 400;
    letter-spacing: 0.109px;
    text-align: left;
    display: block;
  }

  .neb-footer__email {
    font-size: 0.875rem;
    line-height: 1.25rem;
    letter-spacing: 0.28px;
    text-align: justify;
  }

  .neb-footer__social-list li a {
    font-size: 0.875rem;
    line-height: 1.4375rem;
    font-weight: 400;
    letter-spacing: 0.109px;
    text-align: right;
    display: block;
  }

  .neb-footer__legal-text {
    font-size: 0.875rem;
    line-height: 1.4;
  }

  .neb-footer__eu-funding-row {
    display: flow-root;
  }

  .neb-footer__ec-logo {
    float: left;
    margin-top: 0.125rem;
    margin-right: 0.75rem;
    width: 4.8125rem;
    height: 3.25rem;
    aspect-ratio: 77 / 52;
  }

  /* ── KB Preview mobile overrides ── */
  .neb-kb-preview {
    margin-top: 2rem;
  }

  .neb-kb-preview__title {
    padding-left: 0;
  }

  .neb-kb-subsection .neb-kb-gem-link,
  .neb-kb-subsection__footer {
    padding-left: 0;
  }

  .neb-kb-subsection .neb-carousel-wrap {
    padding-left: 0;
    padding-right: 0;
  }
}

/* ── Drupal region wrappers cleanup ─────────────────────────── */
.neb-page-front .layout-container {
  max-width: 100%;
  padding: 0;
}

.neb-page-front .region-content .block-system-main-block {
  padding: 0;
}

.neb-page-front article.node--type-page {
  padding: 0;
}

.neb-page-front .node__content>*:first-child {
  margin-top: 0;
}

/* ── Gems Listing Page (/gems) ──────────────────────────────── */
.neb-gems-header {
  max-width: 75.625rem;
  margin: 0 auto;
  padding: 3.5rem 2.5rem 1.5rem;
}

.neb-gems-header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 0.5rem;
}

.neb-gems-subtitle {
  font-size: 1.05rem;
  color: var(--neb-text-muted);
  font-weight: 300;
  margin: 0;
}

/* ── Gems Filter – new design ───────────────────────────────── */
.neb-flt-search {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  border: 0.0938rem solid #1a1a1a;
  border-radius: 6.25rem;
  padding: 0.625rem 1.25rem;
  background: #fff;
  width: 17.5rem;
  margin-bottom: 0.75rem;
}

.neb-flt-search__input {
  border: none;
  outline: none;
  font-size: 1.125rem;
  font-family: var(--font-main);
  flex: 1;
  background: transparent;
  color: #1a1a1a;
}

.neb-flt-search__input::placeholder {
  color: #888;
  opacity: 1;
}

.neb-flt-search svg {
  color: #1a1a1a;
  flex-shrink: 0;
}

.neb-flt-search__clear {
  color: #1a1a1a;
  font-size: 1rem;
  text-decoration: none;
  flex-shrink: 0;
}

.neb-flt-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.neb-flt-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  margin-left: auto;
}

.neb-flt-action-btn:hover {
  text-decoration: none;
}

.neb-flt-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 0.0938rem solid #1a1a1a;
  border-radius: 6.25rem;
  background: #fff;
  font-weight: 600;
  padding: 0.27756rem 1.11038rem 0.27756rem 1.11063rem;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  color: inherit;
}

.neb-flt-icon-btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 0.0938rem solid #1a1a1a;
  background: #fff;
  color: #1a1a1a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  flex-shrink: 0;
}

.neb-flt-icon-btn--disabled {
  opacity: 0.4;
  pointer-events: none;
}

.neb-flt-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Custom dropdown pill */
.neb-flt-dd {
  position: relative;
}

.neb-flt-dd__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.69394rem;
  border: 0.0625rem solid #000000;
  border-radius: 6.25rem;
  background: #fff;
  color: #282828;
  font-family: var(--font-main);
  font-size: 1.3125rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s;
  white-space: nowrap;
  height: 2.42888rem;
  padding: 0.27756rem 1.11038rem 0.27756rem 1.11063rem;
  justify-content: center;
}

.neb-flt-dd__btn--active,
.neb-flt-dd.open .neb-flt-dd__btn {
  background: #fff;
  color: #282828;
}

.neb-flt-dd__btn--active svg,
.neb-flt-dd.open .neb-flt-dd__btn svg {
  stroke: #282828;
}

.neb-flt-dd__btn svg {
  transition: transform 0.2s;
  stroke: #1a1a1a;
}

.neb-flt-dd.open .neb-flt-dd__btn svg {
  transform: rotate(180deg);
}

/* Dropdown panel */
.neb-flt-dd__panel {
  display: none;
  position: absolute;
  top: calc(100% + 0.375rem);
  left: 0;
  min-width: 13.75rem;
  background: #fff;
  border: 0.0938rem solid #1a1a1a;
  border-radius: 0.75rem;
  padding: 0.5rem 0;
  z-index: 100;
  box-shadow: 0 0.25rem 1.25rem rgba(88, 101, 242, 0.12);
}

.neb-flt-dd.open .neb-flt-dd__panel {
  display: block;
}

.neb-flt-dd__option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.3125rem 0.75rem;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1.4375rem;
  color: var(--neb-dark);
  transition: background 0.1s;
}

.neb-flt-dd__option span {
  white-space: nowrap;
}

.neb-flt-dd__option:hover {
  background: #eeeffd;
}

.neb-flt-dd__option {
  text-align: left;
}

.neb-flt-dd__option span {
  text-align: left;
}

.neb-flt-dd__option input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 1.125rem;
  height: 1.125rem;
  border: 0.0312rem solid var(--neb-dark);
  border-radius: 50%;
  flex-shrink: 0;
  cursor: pointer;
  position: relative;
  transition: border-color 0.15s, background 0.15s;
}

.neb-flt-dd__option input[type="radio"]:checked::after {
  content: "";
  display: block;
  width: 0.625rem;
  height: 0.625rem;
  background: var(--neb-dark);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.neb-flt-dd__option input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 1.125rem;
  height: 1.125rem;
  border: 0.0312rem solid #282828;
  border-radius: 50%;
  flex-shrink: 0;
  cursor: pointer;
  position: relative;
  transition:
    border-color 0.15s,
    background 0.15s;
}

.neb-flt-dd__option input[type="checkbox"]:checked::after {
  content: "";
  display: block;
  width: 0.625rem;
  height: 0.625rem;
  background: #282828;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.neb-flt-dd__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.19669rem;
  height: 1.19669rem;
  border-radius: 50%;
  background: #8AE5C7;
  color: #282828;
  font-size: 0.81456rem;
  font-weight: 600;
  flex-shrink: 0;
}

/* ── Gems Filter Wrapper ────────────────────────────────────── */
.neb-gems-filter-wrap {
  padding-bottom: 0.8125rem;
  margin-bottom: 2.5rem;
  border-bottom: 0.0625rem solid #000;
}

/* Toggle button */
.neb-filter-toggle {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.75rem;
}

.neb-filter-toggle__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--neb-brand-blue);
  background: transparent;
  border: 0.0938rem solid var(--neb-brand-blue);
  border-radius: 6.25rem;
  padding: 0.375rem 1rem;
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s;
  font-family: var(--font-main);
}

.neb-filter-toggle__btn:hover {
  background: var(--neb-brand-blue);
  color: var(--neb-white);
}

/* Variant A: search bar + dropdowns */
.neb-filter-bar__form {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-wrap: wrap;
  padding: 0.75rem 0;
  border-top: 0.0625rem solid #282828;
  border-bottom: 0.0625rem solid #282828;
}

.neb-filter-bar__search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 0.0938rem solid rgba(21, 101, 192, 0.35);
  border-radius: 6.25rem;
  padding: 0.5rem 1rem;
  flex: 0 0 12.5rem;
}

.neb-filter-bar__input {
  border: none;
  outline: none;
  font-size: 0.88rem;
  font-family: var(--font-main);
  flex: 1;
  background: transparent;
  color: var(--neb-dark);
}

.neb-filter-bar__clear {
  color: var(--neb-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
}

/* Dropdown pills */
.neb-filter-dropdown {
  position: relative;
  border: 0.0938rem solid rgba(21, 101, 192, 0.35);
  border-radius: 6.25rem;
  overflow: hidden;
}

.neb-filter-dropdown--active {
  background: rgba(21, 101, 192, 0.08);
  border-color: var(--neb-brand-blue);
}

.neb-filter-dropdown__select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  font-family: var(--font-main);
}

.neb-filter-dropdown__label {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--neb-brand-blue);
  white-space: nowrap;
  pointer-events: none;
  min-width: 10rem;
}

/* Variant B: tag pill click filter */
.neb-filter-tags {
  padding: 1rem 0;
  border-top: 0.0625rem solid #282828;
}

.neb-filter-tags__group {
  margin-bottom: 1.25rem;
}

.neb-filter-tags__label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--neb-text-muted);
  margin-bottom: 0.625rem;
}

.neb-filter-tags__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.neb-filter-pill {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.375rem 0.875rem;
  border-radius: 6.25rem;
  text-decoration: none;
  background: rgba(21, 101, 192, 0.85);
  color: var(--neb-white);
  transition: background 0.15s;
}

.neb-filter-pill:hover {
  background: var(--neb-brand-blue);
  text-decoration: none;
  color: var(--neb-white);
}

.neb-filter-pill--outline {
  background: transparent;
  border: 0.0938rem solid rgba(0, 0, 0, 0.2);
  color: var(--neb-text);
}

.neb-filter-pill--outline:hover {
  border-color: var(--neb-brand-blue);
  color: var(--neb-brand-blue);
  background: transparent;
}

.neb-filter-pill--active {
  background: var(--neb-brand-blue) !important;
  color: var(--neb-white) !important;
  border-color: var(--neb-brand-blue) !important;
}

/* ── Gems Filter Bar ────────────────────────────────────────── */
.neb-gems-filters {
  max-width: 75.625rem;
  margin: 0 auto;
  padding: 0 2.5rem 2rem;
}

.neb-filter-form {
  background: #f5f7fa;
  border: 0.0625rem solid #e0e4ea;
  border-radius: 0.5rem;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
}

.neb-filter-form__fields {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  flex: 1;
}

.neb-filter-select {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 10rem;
  flex: 1;
}

.neb-filter-select label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--neb-text-muted);
}

.neb-filter-select select {
  border: 0.0625rem solid #d0d5dd;
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  color: var(--neb-dark);
  background: var(--neb-white);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23667085' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.625rem center;
  padding-right: 2rem;
  cursor: pointer;
}

.neb-filter-select select:focus {
  outline: none;
  border-color: var(--neb-brand-blue);
  box-shadow: 0 0 0 0.1875rem rgba(21, 101, 192, 0.12);
}

.neb-filter-form__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 0.0625rem;
}

.neb-filter__clear {
  font-size: 0.875rem;
  color: var(--neb-text-muted);
  text-decoration: underline;
  white-space: nowrap;
}

.neb-filter__clear:hover {
  color: var(--neb-brand-blue);
}

.neb-gems-empty {
  max-width: 75.625rem;
  margin: 0 auto;
  padding: 0 2.5rem 5rem;
  color: var(--neb-text-muted);
}

.neb-gems-grid {
  max-width: 75.625rem;
  margin: 0 auto;
  padding: 0 2.5rem 5rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(18.75rem, 1fr));
  gap: 1.75rem;
}

/* Mobile filter toggle: hidden on desktop */
.neb-flt-mobile-toggle {
  display: none;
}

/* ── Gem cards in listing use the same style as the landing page carousel ── */
/* .neb-gem-card base styles are defined in the carousel section above       */

/* Image link covers the full image wrap */
.neb-gem-card__img-link {
  display: block;
  text-decoration: none;
  line-height: 0;
}

@media (max-width: 768px) {

  .neb-gems-header,
  .neb-gems-grid {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .neb-gems-header {
    padding-top: 2.5rem;
  }

  /* ── Mobile filter toggle button ── */
  .neb-flt-mobile-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border: 0.0938rem solid #1a1a1a;
    border-radius: 6.25rem;
    background: var(--neb-white);
    font-size: 1rem;
    font-weight: 500;
    color: var(--neb-dark);
    cursor: pointer;
    margin-bottom: 1rem;
  }

  .neb-flt-mobile-toggle.is-active {
    background: var(--neb-light-bg);
  }

  /* Hide filter bar until toggle is pressed */
  .neb-filter-bar {
    display: none;
  }

  .neb-filter-bar.is-open {
    display: block;
  }

  /* Stack filter dropdowns full-width */
  .neb-flt-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .neb-flt-row {
    flex-direction: column !important;
    display: flex !important;
    gap: 0.5rem;
  }

  .neb-flt-dd {
    width: 100%;
  }

  .neb-flt-dd__btn {
    width: 100%;
    justify-content: space-between;
    font-size: 1rem;
  }

  .neb-flt-dd__panel {
    position: static;
    box-shadow: none;
    border: 0.0625rem solid #e0e0e0;
    margin-top: 0.25rem;
    border-radius: 0.5rem;
  }

  .neb-flt-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-left: 0;
  }

  .neb-flt-tags-btn {
    display: none;
  }

  .neb-flt-search {
    flex: 1 1 100%;
  }

  /* Cards in listing: fill full column width, auto height */
  .neb-gems-grid .neb-gem-card {
    max-width: none;
    flex: none;
    height: auto;
  }
}

/* ── NEB Gem Detail Page – redesigned ──────────────────────── */
.neb-gem-detail {
  max-width: 75.625rem;
  margin: 0 auto;
  padding: 2.5rem 2.5rem 5rem;
  position: relative;
}

.neb-gem-detail__back {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--neb-text-muted);
  text-decoration: none;
  margin-bottom: 1.5rem;
  transition: color 0.15s;
}

.neb-gem-detail__back:hover {
  color: var(--neb-brand-blue);
  text-decoration: none;
}

/* Nav row wrapping back link + badge */
.neb-gem-detail__nav {
  position: relative;
  margin-bottom: 0.5rem;
}

/* Badge — absolute top-right of the article */
.neb-gem-detail__type-badge {
  position: absolute;
  top: 0;
  right: 0;
  display: inline-block;
  font-size: 1.158rem;
  font-weight: 600;
  letter-spacing: 0.00906rem;
  line-height: 1.85531rem;
  text-transform: uppercase;
  padding: 0.2rem 0.9rem;
  border-radius: 3.474rem;
  background: #282828;
  color: #fff;
}


.neb-gem-detail__type-badge--learn-get-inspired,
.neb-gem-detail__type-badge--learn-amp\;-get-inspired,
.neb-gem-detail__type-badge--learn,
.neb-gem-detail__type-badge--inspire,
.neb-gem-detail__type-badge--case-study {
  background: #0073E5;
  color: #fff;
}

.neb-gem-detail__type-badge--take-action,
.neb-gem-detail__type-badge--resource {
  background: #282828;
  color: #fff;
}


/* Header */
.neb-gem-detail__header {
  padding: 0.5rem 0 1.5rem;
}

.neb-gem-detail__title {
  margin-bottom: 0.5rem;
}

.neb-gem-detail__subtitle {
  color: var(--neb-text);
  margin: 0;
  font-family: "Titillium Web", sans-serif;
  font-weight: 400;
  font-size: 1.875rem;
  /* 1.875rem */
  line-height: 2.5625rem;
  /* 2.5625rem */
  letter-spacing: 0.02em;
  text-align: justify;
}

/* Two-column: image + info card */
.neb-gem-detail__top-grid {
  display: grid;
  grid-template-columns: 662fr 379fr;
  gap: 1.9375rem;
  margin: 1.5rem 0;
  align-items: stretch;
}

.neb-gem-slideshow {
  position: relative;
  border-radius: 0.5rem;
  overflow: hidden;
}

.neb-gem-slide {
  display: none;
}

.neb-gem-slide--active {
  display: block;
}

.neb-gem-detail__header-img {
  display: block;
  object-fit: cover;
  width: 100%;
  aspect-ratio: 85/52;
  border-radius: 0.81125rem;
}

/* TEMP DEBUG - remove after diagnosis */
/* .neb-gem-detail__header-img {
  outline: 0.1875rem solid red;
  outline-offset: -0.1875rem;
} */

.neb-gem-slide .neb-carousel-btn--prev {
  left: 0.625rem;
}

.neb-gem-slide .neb-carousel-btn--next {
  right: 0.625rem;
}

.neb-gem-slide__dots {
  position: absolute;
  bottom: 0.625rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.375rem;
}

.neb-gem-slide__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: background 0.15s;
}

.neb-gem-slide__dot--active {
  background: var(--neb-white);
}

.neb-gem-detail__img-credits {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: var(--Number-5, 1.25rem);
  letter-spacing: 0.0175rem;
  margin: 0;
  text-shadow: 0 0.0625rem 0.125rem rgba(0, 0, 0, 0.6);
}

/* Info card (right column) */
.neb-gem-detail__info-card {
  box-sizing: border-box;
  width: 100%;
  border: 0.0625rem solid var(--neb-text);
  border-radius: 0.75rem;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.neb-gem-detail__info-type-label {
  color: var(--neb-text);
  text-align: right;
  align-self: flex-end;
  font-family: "Titillium Web", sans-serif;
  font-weight: 600;
  font-size: 1.1581rem;
  line-height: 1.8556rem;
  letter-spacing: 0.0078em;
  text-transform: uppercase;
}

.neb-gem-detail__info-type {
  margin-top: 4rem;
  margin-left: 1.1rem;
  color: var(--neb-dark);
  font-family: "Titillium Web", sans-serif;
  font-weight: 400;
  font-size: 2.5rem;
  line-height: 3rem;
  letter-spacing: 0.00975rem;
}

.neb-gem-detail__info-meta {
  margin-left: 1rem;
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: 0.75rem;
  row-gap: 0.5rem;
  padding-top: 0.75rem;
}

.neb-gem-detail__info-row {
  display: contents;
}

.neb-gem-detail__info-row dt {
  color: var(--neb-dark);
  font-family: "Titillium Web", sans-serif;
  font-weight: 600;
  font-size: 1.125rem;
  /* 1.125rem */
  line-height: 1.5rem;
  /* 1.5rem */
  letter-spacing: 0.00219rem;
}

.neb-gem-detail__info-row dd {
  color: var(--neb-text);
  margin: 0;
  margin-left: 2rem;
  font-family: Titillium Web;
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.5rem;
  letter-spacing: 0.00219rem;
}

.neb-gem-detail__related {
  border-top: 0.0625rem solid var(--neb-light-bg);
  padding-top: 0.75rem;
  font-size: 0.88rem;
}

.neb-gem-detail__related a {
  color: var(--neb-teal);
  font-weight: 600;
  text-decoration: none;
}

.neb-gem-detail__info-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-top: 0.0625rem solid var(--neb-light-bg);
  padding-top: 0.75rem;
  margin-top: 0.25rem;
}

.neb-gem-detail__info-links .neb-btn--pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.85rem;
  justify-content: center;
}

/* Tags row */
.neb-gem-detail__tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.neb-gem-detail__tag {
  border: 0.0625rem solid #282828;
  color: var(--neb-text-muted);
  background: transparent;
  font-size: 1.125rem;
  font-weight: 400;
  letter-spacing: 0.00881rem;
  line-height: 1.5rem;
  text-transform: uppercase;
  padding: 0.2rem 0.9rem;
  border-radius: 3.474rem;
}

.neb-gem-detail__tag:nth-child(n+6) {
  display: none;
}

/* Accordion sections */
.neb-gem-detail__sections {
  display: flex;
  flex-direction: column;
}

.neb-gem-section-acc {
  border-top: 0.0625rem solid var(--neb-text);
}

.neb-gem-section-acc:last-child {
  border-bottom: 0.0625rem solid var(--neb-text);
}

.neb-gem-section-acc__head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 0;
  cursor: pointer;
  list-style: none;
}

.neb-gem-section-acc__head::-webkit-details-marker {
  display: none;
}

.neb-gem-section-acc__left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.neb-gem-section-acc__title {
  font-family: var(--font-main);
  font-size: 1.875rem;
  line-height: 2.25rem;
  font-weight: 600;
  letter-spacing: 0.6px;
  color: var(--neb-dark);
  padding: 0.3125rem;
}

.neb-gem-section-acc__nut {
  font-family: "Titillium Web", sans-serif;
  font-weight: 400;
  font-size: 1.375rem;
  /* 1.375rem */
  line-height: 1.875rem;
  /* 1.875rem */
  letter-spacing: 0.02em;
  color: var(--neb-text);
  padding: 0.3125rem;
}

.neb-gem-section-acc__icon {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neb-text);
  margin-top: 0.0625rem;

  font-family: var(--font-inter);
  font-weight: 200;
  font-size: 3.125rem;
  line-height: 3.68375rem;
  letter-spacing: 0;
}

.neb-gem-section-acc__icon::after {
  content: "+";
}

.neb-gem-section-acc[open] .neb-gem-section-acc__icon::after {
  content: "−";
}

.neb-gem-section-acc__body {
  padding: 0 0 1.5rem;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--neb-text);

  /* font-family: "Titillium Web", sans-serif;
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.720625rem;
  letter-spacing: 0.002em;
  text-align: justify; */
}

.neb-gem-section-acc__body p {
  margin-bottom: 0.75rem;
}

.neb-gem-section-acc__body ul,
.neb-gem-section-acc__body ol {
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}

.neb-gem-section-acc__body li {
  margin-bottom: 0.375rem;
  font-family: "Titillium Web", sans-serif;
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.720625rem;
  letter-spacing: 0.002em;
  text-align: justify;
}

/* Bottom actions */
.neb-gem-detail__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  padding-top: 1.5rem;

}

.neb-gem-detail__actions .neb-btn--pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.88rem;
}

.neb-gem-detail__save-btn {
  border: 0.0938rem solid #282828;
  background: transparent;
  color: var(--neb-dark);
  font-family: var(--font-main);
}

.neb-gem-detail__funding-note {
  font-size: 0.82rem;
  color: var(--neb-text-muted);
  margin-top: 1rem;
  font-weight: 300;
}

.neb-tag--group {
  background: rgba(76, 175, 130, 0.1);
  color: #2e7d5e;
}

@media (max-width: 768px) {
  .neb-gem-detail {
    padding: 1.5rem 0 3.75rem;
  }

  .neb-gem-detail__top-grid {
    grid-template-columns: 1fr;
  }

  .neb-gem-detail__info-card {
    display: none;
  }

  .neb-gem-slide .neb-carousel-btn {
    display: none;
    position: relative;
  }

  .neb-gem-detail__tag {
    font-family: "Titillium Web", sans-serif;
    font-weight: 400;
    font-size: 0.875rem;
    line-height: 1.17rem;
    letter-spacing: 0.0078em;
    text-align: center;
  }

  .neb-gem-detail__nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1rem;
  }

  .neb-gem-detail__type-badge {
    position: static;
    order: 2;
    align-self: flex-end;
  }

  .neb-gem-detail__back {
    order: 1;
    margin-bottom: 0;
  }

  .neb-gem-detail__subtitle,
  .neb-gem-section-acc__title,
  .neb-gem-section-acc__nut {
    font-size: 1.25rem;
    line-height: 1.5rem;
    letter-spacing: 0.4px;
  }

}

/* ── Similar Content section (gem detail) ───────────────────── */
.neb-similar {
  margin-top: 0;
  padding: 3.75rem 0 5rem;
  background-color: #f2f2f2;
}

.neb-similar__inner {
  max-width: 75.625rem;
  margin: 0 auto;
  padding: 0 2.5rem;
}

.neb-similar__title {
  margin-bottom: 2rem;
}


@media (max-width: 768px) {
  .neb-similar__inner {
    padding: 0;
  }

  .neb-similar__title {
    padding: 0 1.5rem;
  }

  .neb-similar .neb-carousel-wrap {
    padding-left: 0;
    padding-right: 0;
  }
}

/* ── Project Map ─────────────────────────────────────────────── */
.neb-pmap {
  position: relative;
  height: calc(100vh - 4rem);
  width: 100%;
  background: #f2f2f2;
}

.neb-pmap__map {
  width: 100%;
  height: 100%;
  z-index: 1;
  background: #f2f2f2;
}

.neb-pmap__map.leaflet-container,
.neb-pmap .leaflet-container {
  background: #f2f2f2 !important;
}

/* Detail panel — overlays the map on the right, no own background */
.neb-pmap__panel {
  position: absolute;
  top: 50%;
  transform: translateY(-50%) translateX(1rem);
  right: max(1rem, calc((100% - 82.5rem) / 2));
  width: 25rem;
  max-height: calc(100% - 3rem);
  z-index: 800;
  background: transparent;
  padding: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s,
    transform 0.2s;
}

.neb-pmap__panel--open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) translateX(0);
}

.neb-pmap__close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 20;
  width: 1.75rem;
  height: 1.75rem;
  border: none;
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1;
  color: var(--neb-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0.0625rem 0.25rem rgba(0, 0, 0, 0.15);
  transition: color 0.15s;
}

.neb-pmap__close:hover {
  color: var(--neb-dark);
}

.neb-pmap-card__gem-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.neb-pmap-card__gem-icon {
  width: 3.125rem;
  height: 3.125rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.neb-pmap-card__gem-icon-img {
  width: 3.125rem;
  height: 3.125rem;
}

.neb-pmap-card__gem-link {
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 1.3125rem;
  line-height: 1.75rem;
  letter-spacing: 0;
  color: var(--neb-dark);
  text-decoration: none;
}

.neb-pmap-card__gem-link:not(.neb-pmap-card__gem-link--plain):hover {
  text-decoration: underline;
}

.neb-pmap-card__gem-link--plain {
  cursor: default;
}

.neb-pmap-card__links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  margin-left: auto;
}

.neb-pmap-card__link {
  font-family: var(--font-main);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.56rem;
  color: var(--neb-dark);
  text-decoration: none;
}

.neb-arrow {
  font-family: var(--font-inter);
  font-size: 1.3125rem;
  font-weight: 300;
  line-height: 1.75rem;
}

.neb-pmap-card__link:hover {
  text-decoration: underline;
}

.neb-pmap-card__top-btns {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: flex;
  gap: 0.375rem;
  align-items: center;
}

.neb-pmap-card__bookmark-btn {
  width: 2.5rem;
  height: 2.5rem;
  background: url("/themes/custom/nebjunction/images/Bookmark_Lime.png") center/contain no-repeat;
  border: none;
  padding: 0;
  cursor: pointer;
}

.neb-pmap-card__bookmark-btn img {
  display: none;
}

.neb-pmap-card__close-btn {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: #f0f0f0;
  border: none;
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--neb-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.15s,
    color 0.15s;
}

.neb-pmap-card__close-btn:hover {
  background: #e0e0e0;
  color: var(--neb-dark);
}

.neb-pmap-card {
  background: #fff;
  border-radius: 0.5rem;
  border: 0.0625rem solid rgba(0, 0, 0, 0.1);
  padding: 1.25rem;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
}

.neb-pmap__panel .neb-pmap-card__title {
  margin: 0;
  padding-right: 5rem;
}

.neb-pmap-card__desc {
  font-family: "Titillium Web", sans-serif;
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.5625rem;
  letter-spacing: 0.0078em;
  text-align: justify;
  color: var(--neb-text-muted);
  margin: 0;
}

.neb-pmap-card__meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 0.625rem;
}

.neb-pmap-card__meta-row {
  display: grid;
  grid-template-columns: 4.75rem 1fr;
  gap: 0.75rem;
  align-items: baseline;
}

.neb-pmap-card__meta-label {
  font-family: "Titillium Web", sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.5rem;
  color: var(--neb-text-muted);
}

.neb-pmap-card__meta-value {
  font-family: "Titillium Web", sans-serif;
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.5rem;
  color: var(--neb-dark);
}

.neb-pmap-card__award {
  font-size: 0.82rem;
  color: var(--neb-text-muted);
}

.neb-pmap-card__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
  padding-top: 0.75rem;
}

.neb-pmap-card__funding {
  background: var(--neb-lime);
  color: var(--neb-dark);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.5rem;
  padding: 0.25rem 0.625rem;
  border-radius: 6.25rem;
  letter-spacing: 0.0078em;
  justify-content: center;
  align-items: center;
  text-transform: uppercase;
}

/* ── Project Map Filters ──────────────────────────────────────── */
.neb-pmap-filters {
  position: absolute;
  top: 1rem;
  left: 1.0625rem;
  padding: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-wrap: wrap;
}

.neb-pmap-filter {
  appearance: none;
  background: #fff;
  border: 0.0625rem solid #000;
  border-radius: 6.25rem;
  height: 2.75rem;
  box-sizing: border-box;
  padding: 0 1.11rem;
  font-size: 1.3125rem;
  font-family: "Titillium Web", sans-serif;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.0234em;
  color: var(--neb-dark);
  cursor: pointer;
  box-shadow: 0 0.0625rem 0.25rem rgba(0, 0, 0, 0.1);
  transition: border-color 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.neb-pmap-filter-dropdown {
  position: relative;
}

.neb-pmap-filter__menu {
  position: absolute;
  top: calc(100% + 0.375rem);
  left: 0;
  min-width: 13.75rem;
  background: #fff;
  border: 0.0938rem solid #1a1a1a;
  border-radius: 0.75rem;
  z-index: 2000;
  padding: 0.5rem 0;
  max-height: 17.5rem;
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: 0 0.25rem 1.25rem rgba(88, 101, 242, 0.12);
}

.neb-pmap-filter .neb-flt-dd__chevron {
  transition: transform 0.2s;
}

.neb-pmap-filter--open .neb-flt-dd__chevron {
  transform: rotate(180deg);
}

.neb-pmap-filter__item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.3125rem 0.75rem;
  font-family: "Titillium Web", sans-serif;
  font-size: 1rem;
  color: var(--neb-dark);
  cursor: pointer;
  user-select: none;
  transition: background 0.1s;
}

.neb-pmap-filter__item:hover {
  background: #f0faf9;
}

.neb-pmap-filter__item input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  border: 0.0312rem solid #282828;
  background: #fff;
  flex-shrink: 0;
  cursor: pointer;
  transition: border-color 0.15s;
  position: relative;
}

.neb-pmap-filter__item input[type="checkbox"]:checked {
  border-color: #282828;
  background: #fff;
}

.neb-pmap-filter__reset {
  border: 0.0625rem solid #000;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  color: var(--neb-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  box-sizing: border-box;
  box-shadow: 0 0.0625rem 0.25rem rgba(0, 0, 0, 0.1);
  transition: border-color 0.15s, color 0.15s;
  opacity: 0.4;
  pointer-events: none;
}

.neb-pmap-filter__reset--active {
  opacity: 1;
  pointer-events: auto;
}

.neb-pmap-filter__item input[type="checkbox"]:checked::after {
  content: "";
  display: block;
  width: 0.625rem;
  height: 0.625rem;
  background: #282828;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.neb-pmap-filter__item span {
  white-space: nowrap;
}

/* Search widget */
.neb-pmap-search {
  display: flex;
  align-items: center;
  gap: 0;
}

.neb-pmap-search__btn {
  border: 0.0625rem solid #000;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  color: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  box-sizing: border-box;
  box-shadow: 0 0.0625rem 0.25rem rgba(0, 0, 0, 0.1);
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

/* .neb-pmap-search__btn.neb-pmap-filter--active {
  border-color: #28afaf;
  background: #edfaf8;
  color: #28afaf;
} */

.neb-pmap-search__input {
  width: 0;
  height: 2.75rem;
  box-sizing: border-box;
  opacity: 0;
  pointer-events: none;
  border: 0.0625rem solid #000;
  border-radius: 6.25rem;
  padding: 0 0.875rem;
  font-size: 1rem;
  font-family: "Titillium Web", sans-serif;
  color: var(--neb-dark);
  background: #fff;
  box-shadow: 0 0.0625rem 0.25rem rgba(0, 0, 0, 0.1);
  transition: width 0.25s ease, opacity 0.2s ease, margin 0.25s ease;
  outline: none;
  margin-right: 0;
  order: -1;
}

.neb-pmap-search--open .neb-pmap-search__input {
  width: 12.5rem;
  opacity: 1;
  pointer-events: auto;
  margin-right: 0.5rem;
}

/* Map legend */
.neb-pmap__legend {
  position: absolute;
  bottom: 1.75rem;
  left: 1.0625rem;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 0.625rem;
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  font-size: 1rem;
  color: var(--neb-dark);
  box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.12);
  pointer-events: none;
}

.neb-pmap__legend-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.neb-pmap__legend-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  flex-shrink: 0;
  margin: 0.25rem;
}

.neb-pmap__legend-dot--project {
  background: #1a1a1a;
  box-shadow: 0 0 0 0.125rem #fff, 0 0 0 0.25rem #1a1a1a;
}

.neb-pmap__legend-dot--area {
  background: #E4F249;
  box-shadow: 0 0 0 0.125rem #fff, 0 0 0 0.25rem #E4F249;
}

.neb-pmap__legend-dot--combined {
  background: #1a1a1a;
  box-shadow: 0 0 0 0.125rem #fff, 0 0 0 0.25rem #1a1a1a, 0 0 0 0.375rem #E4F249;
}

/* Mobile filter button — hidden on desktop */
.neb-pmap-filter-mobile-btn {
  display: none;
  align-items: center;
  gap: 0.375rem;
  background: rgba(255, 255, 255, 0.95);
  border: 0.0938rem solid rgba(0, 0, 0, 0.18);
  border-radius: 6.25rem;
  padding: 0.4375rem 1rem;
  font-family: "Titillium Web", sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--neb-dark);
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.2;
}

@media (max-width: 768px) {

  /* ── Map container ────────────────────────────────── */
  .neb-pmap {
    height: calc(100svh - 3.5rem);
  }

  /* ── Filter bar ───────────────────────────────────── */
  .neb-pmap-filters {
    top: 0.75rem;
    left: 0;
    right: 0;
    max-width: none;
    margin: 0;
    padding: 0 0.75rem;
    gap: 0.5rem;
    flex-wrap: nowrap;
    z-index: 1100;
  }

  .neb-pmap-filter-mobile-btn {
    display: inline-flex;
  }

  .neb-pmap-filters .neb-pmap-filter-dropdown {
    display: none;
  }

  .neb-pmap-filters.neb-pmap-filters--open {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.97);
    border-radius: 0.875rem;
    padding: 0.75rem;
    box-shadow: 0 0.25rem 1.5rem rgba(0, 0, 0, 0.14);
  }

  .neb-pmap-filters.neb-pmap-filters--open .neb-pmap-filter-mobile-btn {
    border-color: #28afaf;
    color: #28afaf;
  }

  .neb-pmap-filters.neb-pmap-filters--open .neb-pmap-filter-dropdown {
    display: block;
    width: 100%;
  }

  .neb-pmap-filters.neb-pmap-filters--open .neb-pmap-filter-dropdown .neb-pmap-filter {
    width: 100%;
    box-sizing: border-box;
  }

  .neb-pmap-filters.neb-pmap-filters--open .neb-pmap-filter__reset {
    align-self: flex-start;
  }

  .neb-pmap-filters .neb-pmap-search {
    display: none;
  }

  .neb-pmap-filters.neb-pmap-filters--open .neb-pmap-search {
    display: flex;
    width: 100%;
  }

  .neb-pmap-filters.neb-pmap-filters--open .neb-pmap-search--open .neb-pmap-search__input {
    flex: 1;
    width: auto;
  }

  /* ── Panel as bottom sheet ────────────────────────── */
  .neb-pmap__panel {
    position: fixed !important;
    top: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: 80vh;
    overflow: hidden;
    border-radius: 1rem 1rem 0 0;
    transform: translateY(100%) !important;
    transition: transform 0.3s ease !important;
    box-shadow: 0 -0.25rem 1.5rem rgba(0, 0, 0, 0.14);
    z-index: 2000;
    background: #fff;
    padding: 0;
    gap: 0;
    opacity: 1;
    pointer-events: none;
  }

  /* Drag handle */
  .neb-pmap__panel::before {
    content: "";
    display: block;
    width: 2.5rem;
    height: 0.25rem;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 0.125rem;
    margin: 0.75rem auto 0.5rem;
    flex-shrink: 0;
  }

  /* Peek: shows title + description only */
  .neb-pmap__panel--peek {
    transform: translateY(calc(100% - 16.25rem)) !important;
    pointer-events: auto;
    overflow: hidden;
  }

  .neb-pmap__panel--peek .neb-pmap-card__meta,
  .neb-pmap__panel--peek .neb-pmap-card__actions,
  .neb-pmap__panel--peek .neb-pmap-card__gem-row {
    display: none !important;
  }

  /* Full open */
  .neb-pmap__panel--open {
    transform: translateY(0) !important;
    pointer-events: auto;
    overflow-y: auto;
  }

  /* Card typography on mobile */
  .neb-pmap-card {
    padding: 0.875rem;
  }

  .neb-pmap__panel .neb-pmap-card__title {
    padding-right: 3.25rem;
  }

  .neb-pmap-card__desc {
    font-size: 0.875rem;
    line-height: 1.3125rem;
  }
}

.neb-coming-soon {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40vh;
  padding: 3rem 1.5rem;
  text-align: center;
}

.neb-coming-soon p {
  font-size: 1.15rem;
  color: #555;
  max-width: 30rem;
}

/* Marker cluster badge */
.neb-pmap-cluster {
  background: #453366;
  border-radius: 6.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4375rem;
  padding: 0.3125rem 0.625rem 0.3125rem 0.4375rem;
  height: 2rem;
  box-sizing: border-box;
  white-space: nowrap;
  box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.28);
}

.neb-pmap-cluster__dot {
  width: 1.125rem;
  height: 1.125rem;
  background: #28AFAF;
  border-radius: 50%;
  flex-shrink: 0;
}

.neb-pmap-cluster span {
  color: #fff;
  font-family: "Titillium Web", sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25rem;
  letter-spacing: 0.02em;
}

/* Hover tooltip: project name — custom div, positioned via JS */
.neb-pmap-tooltip {
  position: absolute;
  background: #E4F249;
  color: #1a1a1a;
  border-radius: 0.375rem;
  padding: 0.375rem 0.75rem;
  font-family: "Titillium Web", sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.15);
  pointer-events: none;
  z-index: 700;
  opacity: 0;
  transform: translateX(-50%) translateY(calc(-100% + 0.375rem));
  transition: opacity 0.22s ease-out, transform 0.22s ease-out;
}

.neb-pmap-tooltip--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(-100%);
}

/* Custom Leaflet marker — size set dynamically via JS iconSize */
.neb-pmap-marker {
  outline: none;
}

.neb-pmap-marker span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #28afaf;
  box-shadow: 0 0.0625rem 0.25rem rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition:
    background 0.15s,
    box-shadow 0.15s;
}

.neb-pmap-marker--active span {
  background: #1a1a1a;
  box-shadow:
    0 0 0 0.125rem #fff,
    0 0 0 0.25rem #1a1a1a;
}

.neb-pmap-marker--combined span {
  background: #28AFAF;
  box-shadow: 0 0.0625rem 0.25rem rgba(0, 0, 0, 0.25);
}

.neb-pmap-marker--active.neb-pmap-marker--combined span {
  background: #1a1a1a;
  box-shadow:
    0 0 0 0.125rem #fff,
    0 0 0 0.25rem #1a1a1a;
}

@media (max-width: 768px) {
  .neb-pmap {
    height: calc(100vh - 4rem);
  }

  .neb-pmap__panel {
    width: calc(100% - 2rem);
    top: auto;
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
    max-height: 55%;
  }
}

/* ── Login Page ─────────────────────────────────────────────── */
.neb-login-overlay {
  background: linear-gradient(135deg, #1565c0 0%, #1976d2 60%, #1e88e5 100%);
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-main);
}

.neb-login-wrap {
  width: 100%;
  max-width: 27.5rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.neb-login-card {
  background: var(--neb-white);
  border-radius: 0.75rem;
  padding: 3rem 2.5rem 2.5rem;
  width: 100%;
  box-shadow: 0 0.5rem 2.5rem rgba(0, 0, 0, 0.18);
}

.neb-login-card__logo {
  text-align: center;
  margin-bottom: 1.75rem;
}

.neb-login-card__logo img {
  height: 3.25rem;
  width: auto;
}

.neb-login-card__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--neb-dark);
  margin: 0 0 0.375rem;
  text-align: center;
}

.neb-login-card__subtitle {
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--neb-text-muted);
  text-align: center;
  margin: 0 0 1.75rem;
}

/* Drupal form elements inside login card */
.neb-login-card .form-item {
  margin-bottom: 1.125rem;
}

.neb-login-card label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--neb-dark);
  margin-bottom: 0.375rem;
}

.neb-login-card input[type="text"],
.neb-login-card input[type="password"],
.neb-login-card input[type="email"] {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 0.0625rem solid #d0d5dd;
  border-radius: 0.375rem;
  font-size: 0.95rem;
  font-family: var(--font-main);
  color: var(--neb-dark);
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.neb-login-card input[type="text"]:focus,
.neb-login-card input[type="password"]:focus {
  outline: none;
  border-color: var(--neb-brand-blue);
  box-shadow: 0 0 0 0.1875rem rgba(21, 101, 192, 0.12);
}

.neb-login-card input[type="submit"],
.neb-login-card .button {
  width: 100%;
  padding: 0.75rem;
  background: var(--neb-brand-blue);
  color: var(--neb-white);
  border: none;
  border-radius: 0.375rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-main);
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 0.5rem;
}

.neb-login-card input[type="submit"]:hover,
.neb-login-card .button:hover {
  background: #1976d2;
}

.neb-login-card .item-list {
  display: none;
}

.neb-login-footer {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
  text-align: center;
}

.neb-login-footer a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: underline;
}

/* ── Default page main content area ────────────────────────── */
.neb-page-main {
  min-height: 60vh;
  max-width: 75.625rem;
  margin: 0 auto;
  padding: 2.5rem 2.5rem 5rem;
}

@media (max-width: 768px) {
  .neb-page-main {
    padding: 0 1.5rem;
  }
}

.neb-page-main:has(.neb-pmap),
.neb-page-main:has(.neb-about) {
  padding: 0;
  max-width: none;
  min-height: 0;
}

/* Gems and gem detail pages handle their own max-width/padding */
.neb-page-main .neb-gems-header,
.neb-page-main .neb-gems-filters,
.neb-page-main .neb-gems-grid {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.neb-page-main .neb-similar {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}

/* Override Leaflet's default gray background */
#neb-project-map.leaflet-container {
  background: #fff;
}

/* ── Coming Soon Modal ────────────────────────────────────────────── */
.neb-csm {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.neb-csm--open {
  display: flex;
}

.neb-csm__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.neb-csm__card {
  position: relative;
  background: var(--neb-white);
  border-radius: 1rem;
  box-shadow: 0 0.5rem 3rem rgba(0, 0, 0, 0.10);
  width: 100%;
  max-width: 30.688rem;
  max-height: 20.375rem;
  z-index: 1;
}

.neb-csm__header {
  display: flex;

}

.neb-csm__close {
  position: absolute;
  top: 0.875rem;
  right: 0.875rem;
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  color: #555;
  line-height: 1;
  padding: 0.25rem 0.375rem;
}

.neb-csm__close:hover {
  color: #000;
}

.neb-csm__title {
  margin-top: 4.375rem;
  margin-left: 5.063rem;
}

.neb-csm__icon {
  width: 3.813rem;
  height: 3.813rem;
  margin-top: 3.063rem;
  margin-left: 4.313rem;
  flex-shrink: 0;
}

.neb-csm__text {
  margin-top: 0.625rem;
  margin-left: 5.063rem;
  max-width: 20.625rem;
}

.neb-csm__ok {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 5.063rem;
  margin-bottom: 3.134rem;
  gap: 0.694rem;
}

@media (max-width: 768px) {
  .neb-csm__card {
    width: 23.5rem;
    max-width: calc(100vw - 2.5rem);
    min-height: 16.625rem;
    height: auto;
    max-height: none;
    border-radius: 1rem;
    box-shadow: 0 0.125rem 0.625rem 0 rgba(0, 0, 0, 0.10);
  }

  .neb-csm__header {
    margin-top: 3rem;
    margin-left: 2.5625rem;
    margin-right: 2.5625rem;
  }

  .neb-csm__title {
    margin-top: 0;
    margin-left: 0;
  }

  .neb-csm__icon {
    width: 3.25rem;
    height: 3.25rem;
    margin-top: 0;
    margin-left: auto;
  }

  .neb-csm__text {
    margin-top: 0.9375rem;
    margin-left: 2.5625rem;
  }

  .neb-csm__ok {
    margin-top: 1.25rem;
    margin-left: 2.5625rem;
    margin-bottom: 1.5rem;
  }
}

/* ── About Page ──────────────────────────────────────────────── */

.neb-page-main:has(.neb-about) {
  padding: 0;
  max-width: none;
  min-height: 0;
}

/* Hero */
.neb-front-hero {
  min-height: 0;
  aspect-ratio: 183 / 103;
}

@media (max-width: 768px) {
  .neb-front-hero {
    aspect-ratio: unset;
    min-height: 260px;
  }
}

.neb-about-hero {
  margin-bottom: 0;
  justify-content: flex-end;
  min-height: 0;
  aspect-ratio: 252 / 107;
}

.neb-about-hero .neb-hero__inner {
  padding-top: 3rem;
}

.neb-about-hero__title {
  color: var(--neb-white);
  margin: 0 0 0.813rem;
}

.neb-about-breadcrumb {
  color: var(--neb-white);
}

.neb-about-breadcrumb a {
  color: var(--neb-white);
  text-decoration: none;
}

.neb-about-breadcrumb a:hover {
  text-decoration: none;
}

.neb-about-spacer {
  height: 11.25rem;
  background: var(--neb-white);
}

/* Vision */
.neb-vision {
  padding: 6.25rem 2.5rem;
  background: var(--neb-light-bg);
}

.neb-vision__inner {
  max-width: 66.988rem;
  margin: 0 auto;
}

.neb-vision__title {
  margin-bottom: 1rem;
}

.neb-vision__desc {
  margin-bottom: 3rem;
}

.neb-vision__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  row-gap: 2.125rem;
  column-gap: 3.75rem;
}

.neb-vision-card {
  background: var(--neb-white);
  border-radius: 1.299rem;
  padding: 1.875rem 1.875rem;
  display: inline-flex;
  gap: 1.25rem;
  align-items: center;
  justify-content: center;
}

.neb-vision-card__icon {
  width: 5rem;
  height: 5rem;
  flex-shrink: 0;
}

.neb-vision-card__body {
  flex: 1;
}

.neb-vision-card__title {
  margin: 0 0 0.375rem;
}

.neb-vision-card__text {
  margin: 0;
  align-self: stretch;
}

/* Consortium */

.neb-consortium {
  margin-top: 10rem;
}

.neb-consortium__header {
  background: var(--neb-white);
  padding: 3rem 2.5rem 1.875rem;
}

.neb-consortium__header-inner {
  max-width: 66.988rem;
  margin: 0 auto;
}

.neb-consortium__title {
  margin-bottom: 1rem;
}

.neb-consortium__band {
  background: var(--neb-consortium-mint);
  padding: 5rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3.75rem;
}

.neb-consortium__carousel-wrap {
  max-width: 75.625rem;
  margin: 0 auto;
  position: relative;
  padding: 0 3.5rem;
}

.neb-consortium__carousel {
  overflow: hidden;
  max-width: 66.988rem;
  padding: 0 0.125rem;
}

.neb-consortium__track {
  display: flex;
  gap: 1.75rem;
  width: 100%;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.neb-consortium__page {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1.75rem;
  row-gap: 2.5rem;
  flex: 0 0 100%;
  box-sizing: border-box;
  align-items: start;
}


.neb-consortium__nav--prev {
  left: 0;
}

.neb-consortium__nav--next {
  right: 0;
}

.neb-consortium-card {
  background: var(--neb-white);
  border-radius: 1.3125rem;
  border: 0.0719rem solid var(--neb-dark);
  padding: 2.5rem 1.5625rem;
  box-sizing: border-box;
  min-width: 0;
  display: flex;
  flex-direction: column;
}


#consortium-prev:disabled,
#consortium-next:disabled {
  opacity: 1;
  cursor: pointer;
  pointer-events: auto;
}

.neb-consortium-card__name {
  margin: 0 0 0.875rem;
  text-transform: uppercase;
}

.neb-consortium-card__desc-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-bottom: 1.25rem;
}

.neb-consortium-card__desc {
  margin: 0;
}

.neb-consortium-card__expand {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-top: 0.375rem;
  align-self: flex-end;
  line-height: 0;
  color: var(--neb-dark);
}

.neb-consortium-card__expand svg {
  display: block;
  transition: transform 0.2s;
}

.neb-consortium-card__expand[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.neb-consortium-card__divider {
  border: none;
  border-top: 0.0625rem solid var(--neb-text);
  margin: 0 0 0.875rem;
}

.neb-consortium-card__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
}

.neb-consortium-card__meta {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.neb-consortium-card__role {
  margin: 0 0 0.1875rem;
}

.neb-consortium-card__years {
  margin: 0 0 0.125rem;
}

.neb-consortium-card__location {
  margin: 0;
}

.neb-consortium-card__logo {
  width: 10rem;
  height: 4.5rem;
  object-fit: contain;
  object-position: center;
  display: block;
  flex-shrink: 0;
  margin-right: 0.375rem;
  margin-bottom: 0.375rem;
}

/* Glossary */
.neb-glossary {
  background: var(--neb-lime);
  padding: 3.75rem 10.5rem 3.8125rem 10.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.neb-glossary__card {
  display: flex;
  max-width: 74rem;
  width: 100%;
  height: 38rem;
  padding: 11.875rem 3.438rem 13.125rem 3.438rem;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.625rem;
  background: var(--neb-white);
  border-radius: 1.25rem;
  overflow: hidden;
  position: relative;
  box-sizing: border-box;
}

.neb-glossary__left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  width: 28rem;
}

.neb-glossary__title {
  margin: 0;
}

.neb-glossary__desc {
  color: var(--neb-text);
  margin: 0;
  line-height: 1.5;
}

.neb-glossary__right {
  position: absolute;
  top: 3.75rem;
  right: 3.4375rem;
}

.neb-glossary__btn {
  margin-top: 1.875rem;
}

.neb-glossary__img-wrap {
  display: contents;
}

.neb-glossary__img {
  width: 31.0625rem;
  height: 30.8125rem;
  aspect-ratio: 124 / 123;
  object-fit: cover;
  display: block;
}

.neb-glossary__img-placeholder {
  width: 100%;
  height: 16.25rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #d0ead0 0%, #b8d8c8 100%);
}

/* Contact */
.neb-contact {
  background: var(--neb-light-bg);
  margin: 11.25rem auto;
}

.neb-contact__inner {
  max-width: 74rem;
  margin: 0 auto;
  padding: 7.188rem clamp(2rem, 5vw, 13.75rem);
  display: flex;
  gap: 0.625rem;
  align-items: flex-start;
  align-self: stretch;
}

.neb-contact__left {
  display: flex;
  padding: 0 2.063rem 4.686rem 3.438rem;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  min-width: 0;
}

.neb-contact__title {
  margin-bottom: 1.25rem;
}

.neb-contact__desc {
  margin-top: 0rem;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.neb-contact__info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.neb-contact__info-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.neb-contact__info-icon {
  width: 3.2957rem;
  height: 3.1263rem;
  object-fit: contain;
  flex-shrink: 0;
  margin-top: 0.0625rem;
}

.neb-contact__info-link {
  color: var(--neb-dark);
  text-decoration: none;
}

.neb-contact__info-link:hover {
  text-decoration: underline;
}

.neb-contact__form-wrap {
  display: grid;
  row-gap: 1.25rem;
  column-gap: 2.313rem;
  background: var(--neb-white);
  min-height: 35.8125rem;
  border-radius: 1.313rem;
  padding: 3.125rem;
}

@media (min-width: 769px) {
  .neb-contact__form-wrap {
    max-width: 32.0625rem;
    flex: 1 1 39.5625rem;
  }

  .neb-contact__info-item {
    font-size: 1.3125rem;
    line-height: 1.75rem;
    margin: 1.25rem 0;
  }
}


.neb-contact__form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.neb-contact__form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.neb-contact__field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.neb-contact__field label {
  font-size: 1.3125rem;
  line-height: 1.75rem;
  font-weight: 600;
}

.neb-contact__field input,
.neb-contact__field textarea {
  border: 0.0625rem solid rgba(40, 40, 40, 0.50);
  border-radius: 0.625rem;
  padding: 0.625rem 0.875rem;
  font-family: var(--font-main);
  font-size: 1.3125rem;
  line-height: 1.75rem;
  color: var(--neb-dark);
  background: var(--neb-white);
  outline: none;
  transition: border-color 0.15s;
  box-sizing: border-box;
  width: 100%;
}

.neb-contact__field input::placeholder,
.neb-contact__field textarea::placeholder {
  color: rgba(40, 40, 40, 0.20);
}

.neb-contact__field input:focus,
.neb-contact__field textarea:focus {
  border-color: var(--neb-teal);
}

.neb-contact__field textarea {
  resize: vertical;
  min-height: 15.75rem;
}

.neb-contact__submit {
  margin-top: 1.25rem;
}

/* About page responsive */
@media (max-width: 768px) {
  .neb-about {
    overflow-x: hidden;
  }


  .neb-about-hero {
     width: 100%;
    height: 18.4375rem;
    overflow: hidden;
  }

   .neb-about-hero video {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
  }

  .neb-about-spacer {
    height: 3.75rem;
  }

  .neb-about-breadcrumb {
    color: var(--neb-white);
  }

  .neb-about-breadcrumb a {
    color: var(--neb-white);
  }

  .neb-vision {
    padding: 3rem 1.25rem;
     hyphens: auto;
    overflow-wrap: break-word;
  }

  .neb-vision__desc {
    margin-bottom: 1.25rem;
  }

  .neb-vision__cards {
    grid-template-columns: 1fr;
  }

  .neb-vision {
    background: var(--neb-white);
    padding: 0;
  }

  .neb-vision__header {
    padding: 0 1.25rem;
  }

  .neb-vision__cards {
    background: var(--neb-light-bg);
    padding: 2.5rem 1.25rem;
    grid-template-columns: 1fr;
  }

  .neb-vision-card {
    align-items: flex-start;
  }

  .neb-vision-card__icon {
    width: 3.25rem;
    height: 3.25rem;
  }

  .neb-consortium {
    margin-top: 6.25rem;
    hyphens: auto;
    overflow-wrap: break-word;
  }

  .neb-consortium__header {
    padding: 0rem 1.25rem 1.875rem;
  }

  .neb-consortium__desc{
    margin-block-end: 0;
  }

  .neb-consortium__band {
    padding: 2rem 0;
  }

  .neb-consortium__carousel-wrap {
    padding: 0 1.25rem;
    width: 100%;
    box-sizing: border-box;
  }

  /* JS-powered infinite carousel on mobile — same logic as desktop, 1 card per page */
  .neb-consortium__carousel {
    overflow: hidden;
    max-width: none;
    padding: 0;
    width: 100%;
  }

  .neb-consortium__track {
    display: flex;
  }

  .neb-consortium__page {
    grid-template-columns: minmax(0, 1fr);
    /* Safety: hide any second card that may end up in a page due to timing */
  }

  .neb-consortium__page .neb-consortium-card ~ .neb-consortium-card {
    display: none;
  }

  .neb-carousel-btn {
    display: none;
  }

  .neb-consortium-card {
    padding: 2.188rem 1.25rem;
    box-sizing: border-box;
  }

  .neb-consortium-card__logo {
    width: 7rem;
    height: 3.25rem;
  }

  .neb-glossary {
    padding: 0;
    background: transparent;
  }

  .neb-glossary__card {
    width: 100%;
    height: auto;
    min-height: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
    overflow: visible;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .neb-glossary__left {
    background: var(--neb-white);
    padding: 2rem 1.25rem 1.25rem;
    width: 100%;
    box-sizing: border-box;
    gap: 0.938rem;
  }

  /* Lime outer frame: height 27.75rem, padding 1.875rem 0 */
  .neb-glossary__right {
    position: static;
    background: var(--neb-lime);
    height: 27.75rem;
    padding: 1.875rem 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
  }

  /* White inner frame */
  .neb-glossary__img-wrap {
    background: var(--neb-white);
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2.373rem 2.140rem 2.334rem;
    box-sizing: border-box;
  }

  .neb-glossary__img {
    width: 19.337rem;
    height: 19.181rem;
    aspect-ratio: 124 / 123;
  }

  .neb-glossary__btn {
    margin: 2rem 1.25rem 0;
  }


   .neb-contact {
    padding: 3rem 1.25rem;
    padding-top: 0;
    margin: 6.25rem auto;
    background: #fff;
  }

  .neb-contact__title{
    margin-bottom: 0.94rem;
  }

  .neb-contact__info-icon {
    width: 2.5558rem;
    height: 2.5558rem;
  }

  .neb-contact__field label,
  .neb-contact__field input,
  .neb-contact__field textarea {
    font-size: 1.125rem;
  }

  .neb-contact__field textarea {
  min-height: 9.75rem;
}

  .neb-contact__inner {
    flex-direction: column;
    width: 100%;
    padding: 0;
    gap: 2.5rem;
  }

  .neb-contact__left {
    width: 100%;
    padding: 0;
    box-sizing: border-box;
  }

  .neb-contact__desc{
    margin-bottom: 0;
  }

  .neb-contact__info{
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
    gap: 1.56rem;
  }

  .neb-contact__form-row {
    grid-template-columns: 1fr;
  }

  .neb-contact__form-wrap {
     position: relative;
    width: 100%;
    max-width: none;
    padding: 1.5rem;
    box-sizing: border-box;
    background: #fff;
  border-radius: 1.25rem;
   box-shadow: 0 0 0 100vmax var(--neb-light-bg);
  clip-path: inset(-2rem -100vmax);
  }

}

/* ── GLOSSARY PAGE ── */
.neb-glossary-page {
  background: var(--neb-white);
  min-height: 100vh;
  padding: 9.4375rem 2.5rem 5rem;
}

.neb-glossary-page__inner {
  max-width: 75.625rem;
  margin: 0 auto;
  padding: 0 2.5rem;
  box-sizing: border-box;
}

.neb-glossary-page__title {
  margin: 0rem 0 1rem;
}

.neb-glossary-page__desc {
  margin: 0 0 4.1875rem;
  color: var(--neb-dark);
}

.neb-glossary-page__desc-link {
  color: var(--neb-dark);
  font-weight: 600;
}

/* Alphabet filter */
.neb-glossary-page__filter {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 1.875rem;
}

.neb-glossary-page__filter-letters-wrap {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  opacity: 0;
}

.neb-glossary-page__filter-letters-wrap.is-ready {
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 0.5rem;
  opacity: 1;
}

.neb-glossary-page__filter-letters {
  display: grid;
  justify-items: center;
  border: 0.0625rem solid var(--neb-dark);
  border-radius: 62.4375rem;
  padding: 0.188rem 0.375rem;
}

.neb-glossary-page__filter-btn[data-letter="all"] {
  border: 0.0625rem solid var(--neb-text);
  margin-top: 0.188rem;
}

.neb-glossary-page__filter-btn {
  background: transparent;
  border: none;
  border-radius: 62.4375rem;
  padding: 0.25rem 0.8125rem;
  font-size: 1.3125rem;
  line-height: 1.75rem;
  font-weight: 600;
  letter-spacing: 0.0234em;
  color: var(--neb-dark);
  cursor: pointer;
  transition: background 0.15s;
}

.neb-glossary-page__filter-btn--active {
  background: var(--neb-lime);
}

.neb-glossary-page__divider {
  border: none;
  border-top: 0.0625rem solid var(--neb-text);
  margin: 0 0 3.125rem;
}

/* Letter group */
.neb-glossary-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 7.5rem;
}

.neb-glossary-group__letter {
  margin-bottom: 1rem;
}

@media (min-width: 759px) {
  .neb-glossary-group {
    display: block;
    position: relative;
    padding-left: 4.75rem;
  }

  .neb-glossary-group__letter {
    position: absolute;
    left: 0;
    top: 1.25rem;
  }
}

.neb-glossary-group__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.8125rem;
  height: 3.8125rem;
  border-radius: 50%;
  background: var(--neb-lime);
  color: var(--neb-dark);
  font-size: 2.5rem;
  line-height: 3rem;
  font-weight: 600;
  letter-spacing: 0.05rem;
}

/* Individual entry */
.neb-glossary-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6.75rem;
  padding: 0.625rem 0 0 2.8rem;
}

.neb-glossary-entry__text {
  flex: 1;
  min-width: 0;
  padding-left: 0.625rem;
}

.neb-glossary-entry__title {
  margin: 0 0 0.625rem;
}

.neb-glossary-entry__body {
  display: none;
  margin: 0;
  max-width: 50rem;
}


.neb-glossary-entry__toggle {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font-family: var(--font-inter);
  font-size: 3.125rem;
  font-weight: 200;
  line-height: 1;
  letter-spacing: 0;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.neb-glossary-entry__toggle.is-active {
  transform: rotate(45deg);
}

.neb-glossary-entry__divider {
  border: none;
  border-top: 0.0625rem solid var(--neb-dark);
  margin: 1.875rem 0 1.875rem 2.8rem;
}

.neb-glossary-group>.neb-glossary-entry__divider:last-child {
  display: none;
}

/* Empty state – no entries for selected letter */
.neb-glossary-empty-state {
  display: none;
}

.neb-glossary-empty-state.is-visible {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.25rem;
}

.neb-glossary-empty-state__visual {
  position: relative;
  display: inline-block;
}

.neb-glossary-empty-state__abc {
  display: block;
  width: 13rem;
}

.neb-glossary-empty-state__lens {
  position: absolute;
  width: 3.5rem;
  bottom: -2rem;
  left: 50%;
  transform: translateX(-50%);
}

.neb-glossary-empty-state__msg {
  margin: 0;
  text-align: center;
  max-width: 21rem;
}

@media (min-width: 759px) {
  .neb-glossary-empty-state.is-visible {
    padding: 5rem 0 8.75rem;
    border: 0.0625rem solid var(--neb-dark);
    border-radius: 1rem;
    background: var(--neb-white);
    min-height: 20rem;
  }
}

@media (max-width: 758px) {
  .neb-glossary-empty-state.is-visible {
    border: 0.0625rem solid var(--neb-dark);
    border-radius: 1rem;
    padding: 3.5rem 1.9375rem 3.4375rem 1.875rem;
    margin: 1.25rem 0 2.5rem;
    gap: 0.875rem;
    background: var(--neb-white);
  }

  .neb-glossary-empty-state__abc {
    width: 9.625rem;
  }

  .neb-glossary-empty-state__lens {
    width: 2.75rem;
    bottom: -1.75rem;
  }

  .neb-glossary-empty-state__msg {
    margin: 1.875rem 0 0 0;
    max-width: 20.188rem;
  }
}

/* page-main override so the glossary gets full width */
.neb-page-main:has(.neb-glossary-page) {
  padding: 0;
  max-width: none;
  min-height: 0;
}

@media (max-width: 758px) {
  .neb-glossary-page {
    padding: 3.125rem 1.25rem 3.5rem;
  }

  .neb-glossary-page__inner {
    padding: 0 0;
  }

  .neb-glossary-entry__text {
    padding: 0 0.625rem;
  }

  .neb-glossary-page__desc {
    margin-bottom: 1.875rem;
  }

  /* Bubble grid + full-width grey background */
  .neb-glossary-page__filter {
    display: grid;
    grid-template-columns: repeat(auto-fill, 2.875rem);
    justify-content: center;
    gap: 0.75rem;
    row-gap: 1.25rem;
    margin-bottom: 0;
    background-color: var(--neb-light-bg);
    border-top: 0.0625rem solid var(--neb-text);
    padding: 1.4375rem 3.5%;
    margin-left: -1.25rem;
    margin-right: -1.25rem;
  }

  .neb-glossary-page__filter > .neb-glossary-page__filter-btn {
    order: 999;
    display: flex;
    width: 3.625rem;
    height: 2.5625rem;
    padding: 4.441px 17.766px 4.441px 17.77px;
    justify-content: center;
    align-items: center;
    border-radius: 66.621px;
    border: 1px solid var(--neb-dark);
    background: var(--neb-white);
  }

  .neb-glossary-page__filter-letters-wrap {
    display: contents;
  }

  .neb-glossary-page__filter-letters {
    display: contents;
    border: none;
    border-radius: 0;
    padding: 0;
  }

  .neb-glossary-page__filter-btn {
    background-color: var(--neb-white);
    padding: 0;
    width: 2.875rem;
    height: 2.5625rem;
    border: 0.0625rem solid var(--neb-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .neb-glossary-page__filter-btn--active {
    background: var(--neb-lime) !important;
  }

  .neb-glossary-group__letter {
    margin-bottom: 1.875rem;
  }

  .neb-glossary-page__divider {
    margin-left: -1.25rem;
    margin-right: -1.25rem;
    margin-bottom: 3.125rem;
  }

  .neb-glossary-group__badge {
    font-size: 1.75rem;
    line-height: 2.125rem;
    /* 121.429% */
    letter-spacing: 0.56px;
    width: 3.3125rem;
    height: 3.3125rem;
  }

  .neb-glossary-entry {
    gap: 0.75rem;
  }

  .neb-glossary-entry__body {
    hyphens: auto;
  }

  .neb-glossary-entry {
    padding-left: 0;
    align-items: center;
    padding-top: 0;
  }

  .neb-glossary-entry__divider {
    margin-left: 0;
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
  }

  .neb-glossary-entry__toggle {
    font-size: 2.1875rem;
  }

  .neb-glossary-entry__toggle:hover {
    opacity: 1;
  }
}