:root {
  --nr-blue: #061b52;
  --nr-blue-2: #0b327d;
  --nr-orange: #ff6900;
  --nr-ink: #0d204e;
  --nr-muted: #68738c;
  --nr-line: #e1e7f0;
  --nr-soft: #f6f8fc;
  --nr-shadow: 0 10px 30px rgba(11, 35, 88, .09);
}

.nb-reference-home {
  overflow: hidden;
  background: #fff;
  color: var(--nr-ink);
  font-family: Inter, Arial, sans-serif;
  font-size: 16px;
}

.nb-reference-home *,
.nb-reference-home *::before,
.nb-reference-home *::after {
  box-sizing: border-box;
}

.nb-reference-home a {
  color: inherit;
  text-decoration: none;
}

.nb-reference-home img {
  max-width: 100%;
}

.nb-rwrap {
  width: min(1536px, calc(100% - 64px));
  margin-inline: auto;
}

.nb-scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity .72s cubic-bezier(.2, .7, .2, 1),
    transform .72s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--nb-reveal-delay, 0ms);
  will-change: opacity, transform;
}

.nb-scroll-reveal.is-visible {
  opacity: 1;
  transform: none;
}

.nb-rsection {
  padding: 68px 0;
}

.nb-rsection--tight {
  padding-top: 24px;
}

.nb-rheading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.nb-rheading h2,
.nb-rtrust-title {
  margin: 0;
  color: var(--nr-ink);
  font-size: clamp(28px, 2vw, 36px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.15;
}

.nb-rheading > a {
  flex: 0 0 auto;
  color: var(--nr-blue-2);
  font-size: 14px;
  font-weight: 800;
}

.nb-rheading > a i,
.nb-rjourney em i,
.nb-rformats em i,
.nb-rbloggrid > a span i {
  margin-left: 4px;
  transition: transform .2s ease;
}

.nb-rheading > a:hover i,
.nb-rjourney:hover em i,
.nb-rformats > a:hover em i,
.nb-rbloggrid > a:hover span i {
  transform: translateX(3px);
}

.nb-rbutton {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 26px;
  border: 1px solid var(--nr-orange);
  border-radius: 4px;
  background: var(--nr-orange);
  color: #fff !important;
  font-size: 14px;
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.nb-rbutton:hover {
  transform: translateY(-2px);
  box-shadow: 0 9px 22px rgba(255, 105, 0, .23);
}

.nb-rbutton--outline {
  border-color: rgba(255, 255, 255, .75);
  background: transparent;
}

/* Hero */
.nb-rhero {
  position: relative;
  overflow: visible;
  background: var(--nr-blue);
  color: #fff;
}

.nb-rhero__backdrop {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(4, 20, 63, .99) 0%, rgba(7, 31, 83, .97) 42%, rgba(9, 33, 78, .52) 74%, rgba(8, 24, 61, .3) 100%),
    url('/static/assets/img/1800x500/img2.jpg') center / cover no-repeat;
}

.nb-rhero__backdrop::after {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 78% 45%, rgba(255, 255, 255, .13), transparent 42%);
  content: "";
}

.nb-rhero__layout {
  position: relative;
  display: grid;
  min-height: clamp(610px, calc(100svh - 174px), 860px);
  grid-template-columns: minmax(470px, .9fr) minmax(640px, 1.1fr);
  align-items: center;
  gap: 34px;
  padding-bottom: 132px;
}

.nb-rhero__copy {
  max-width: 680px;
  padding: 78px 0 92px;
}

.nb-rhero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(58px, 4.7vw, 82px);
  font-weight: 800;
  letter-spacing: -.055em;
  line-height: 1.01;
}

.nb-rhero h1 strong {
  color: var(--nr-orange);
  font-weight: inherit;
}

.nb-rhero__copy p {
  max-width: 620px;
  margin: 28px 0 34px;
  color: rgba(255, 255, 255, .9);
  font-size: 18px;
  line-height: 1.65;
}

.nb-rhero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
}

.nb-rhero__books {
  position: relative;
  display: flex;
  height: 470px;
  align-items: center;
  justify-content: center;
  padding: 8px 0 40px;
}

.nb-rhero__art-link {
  display: block;
  width: 100%;
  max-width: 720px;
  transform: translateY(5px);
  transition: transform .3s ease, filter .3s ease;
}

.nb-rhero__art-link picture {
  display: block;
}

.nb-rhero__art-link:hover {
  filter: brightness(1.035);
  transform: translateY(-2px);
}

.nb-rhero__art {
  display: block;
  width: 100%;
  height: auto;
  max-height: 430px;
  object-fit: contain;
  filter: drop-shadow(0 28px 32px rgba(0, 0, 0, .3));
}

/* Service strip */
.nb-rbenefits {
  position: absolute;
  right: 0;
  bottom: 22px;
  left: 0;
  z-index: 5;
  color: var(--nr-ink);
}

.nb-rbenefits__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 23px 20px;
  border: 1px solid var(--nr-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--nr-shadow);
}

.nb-rbenefits__grid > div {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 15px;
  padding: 4px 21px;
  border-right: 1px solid var(--nr-line);
}

.nb-rbenefits__grid > div:last-child {
  border-right: 0;
}

.nb-rbenefits__grid > div > i {
  flex: 0 0 auto;
  color: var(--nr-blue-2);
  font-size: 34px;
}

.nb-rbenefits__grid > div > .bi-whatsapp {
  color: #1ebc62;
}

.nb-rbenefits b,
.nb-rbenefits small {
  display: block;
}

.nb-rbenefits b {
  font-size: 14px;
  line-height: 1.3;
}

.nb-rbenefits small {
  margin-top: 4px;
  color: var(--nr-muted);
  font-size: 12px;
  line-height: 1.4;
}

/* Audience cards */
.nb-rjourneys {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
}

.nb-rjourney {
  display: flex;
  min-height: 255px;
  flex-direction: column;
  align-items: center;
  padding: 30px 20px 24px;
  border: 1px solid var(--nr-line);
  border-radius: 9px;
  background: #fff;
  text-align: center;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.nb-rjourney:hover {
  transform: translateY(-4px);
  border-color: #cdd9ec;
  box-shadow: var(--nr-shadow);
}

.nb-rjourney > i {
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  margin-bottom: 13px;
  border-radius: 50%;
  background: #eef3ff;
  color: var(--nr-blue-2);
  font-size: 40px;
}

.nb-rjourney:nth-child(2) > i,
.nb-rjourney:nth-child(5) > i { background: #fff1e8; color: #d85a05; }
.nb-rjourney:nth-child(3) > i { background: #ecf7f0; color: #157944; }
.nb-rjourney:nth-child(4) > i { background: #fff5df; color: #b56100; }

.nb-rjourney b,
.nb-rjourney small,
.nb-rjourney em {
  display: block;
}

.nb-rjourney b {
  font-size: 15px;
  line-height: 1.3;
}

.nb-rjourney small {
  min-height: 54px;
  margin: 11px 0 14px;
  color: var(--nr-muted);
  font-size: 13px;
  line-height: 1.5;
}

.nb-rjourney em {
  margin-top: auto;
  color: var(--nr-orange);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

/* Main categories use database names and catalogue URLs. */
.nb-rcategories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  gap: 16px;
}

.nb-rcategory {
  display: flex;
  min-height: 118px;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 18px 14px;
  border: 1px solid var(--nr-line);
  border-radius: 8px;
  background: #fff;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.nb-rcategory:hover {
  transform: translateY(-3px);
  border-color: #cdd8eb;
  box-shadow: 0 7px 20px rgba(11, 35, 88, .08);
}

.nb-rcategory i {
  flex: 0 0 auto;
  color: var(--nr-blue-2);
  font-size: 31px;
}

.nb-rcategory:nth-child(3n + 2) i { color: #d9620e; }
.nb-rcategory:nth-child(3n) i { color: #188354; }

.nb-rcategory span {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
}

/* Product cards */
.nb-rsection--products {
  padding-bottom: 48px;
}

.nb-rproducts {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 26px;
}

.nb-rempty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 30px;
  border: 1px solid var(--nr-line);
  color: var(--nr-muted);
  text-align: center;
}

/* Reading formats */
.nb-rformats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.nb-rformats > a {
  position: relative;
  min-height: 205px;
  overflow: hidden;
  padding: 32px 145px 26px 27px;
  border: 1px solid var(--nr-line);
  border-radius: 9px;
  background: linear-gradient(135deg, #fff, #f2f5fa);
  transition: transform .2s ease, box-shadow .2s ease;
}

.nb-rformats > a:hover {
  transform: translateY(-3px);
  box-shadow: var(--nr-shadow);
}

.nb-rformats > a > i:first-child {
  position: absolute;
  right: 18px;
  bottom: 12px;
  color: rgba(8, 43, 111, .87);
  font-size: 104px;
  line-height: 1;
}

.nb-rformats b,
.nb-rformats small,
.nb-rformats em {
  position: relative;
  display: block;
}

.nb-rformats b {
  font-size: 18px;
}

.nb-rformats small {
  min-height: 50px;
  margin: 12px 0 15px;
  color: var(--nr-muted);
  font-size: 13px;
  line-height: 1.45;
}

.nb-rformats em {
  color: var(--nr-blue-2);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

/* Institutional banner */
.nb-rinstitution {
  position: relative;
  display: grid;
  min-height: 345px;
  grid-template-columns: 1.15fr .85fr;
  gap: 34px;
  overflow: hidden;
  padding: 52px 58px 76px;
  border-radius: 11px;
  background:
    linear-gradient(100deg, rgba(4, 24, 76, .99), rgba(9, 42, 111, .93)),
    url('/static/assets/img/1800x500/img1.jpg') center / cover no-repeat;
  color: #fff;
}

.nb-rinstitution::after {
  position: absolute;
  right: -38px;
  bottom: -83px;
  width: 300px;
  height: 245px;
  border: 13px solid rgba(255, 255, 255, .12);
  border-radius: 18px;
  content: "";
  transform: rotate(-11deg);
}

.nb-rinstitution p {
  margin: 0 0 3px;
  font-size: 28px;
  font-weight: 800;
}

.nb-rinstitution h2 {
  margin: 0;
  color: var(--nr-orange);
  font-size: 39px;
  font-weight: 800;
  letter-spacing: -.03em;
}

.nb-rinstitution > div > span {
  display: block;
  max-width: 720px;
  margin-top: 17px;
  color: rgba(255, 255, 255, .87);
  font-size: 14px;
  line-height: 1.65;
}

.nb-rinstitution__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 25px;
}

.nb-rinstitution ul {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: center;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nb-rinstitution li {
  font-size: 15px;
  font-weight: 700;
}

.nb-rinstitution li i {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  font-size: 43px;
}

.nb-rinstitution__footer {
  position: absolute;
  z-index: 1;
  bottom: 22px;
  left: 58px;
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
}

.nb-rinstitution__footer span {
  font-size: 11px;
  font-weight: 700;
}

.nb-rinstitution__footer i {
  margin-right: 5px;
  color: var(--nr-orange);
}

/* Trust strip */
.nb-rtrust-title {
  margin-bottom: 22px;
  font-size: 25px;
}

.nb-rsocialproof {
  display: grid;
  grid-template-columns: 1.1fr repeat(4, .8fr) 2.1fr;
  overflow: hidden;
  border: 1px solid var(--nr-line);
  border-radius: 9px;
  background: #fff;
}

.nb-rsocialproof > div,
.nb-rsocialproof > strong,
.nb-rsocialproof blockquote {
  display: flex;
  min-width: 0;
  min-height: 155px;
  flex-direction: column;
  justify-content: center;
  margin: 0;
  padding: 18px;
  border-right: 1px solid var(--nr-line);
}

.nb-rsocialproof > div b {
  font-size: 27px;
}

.nb-rsocialproof > div b span {
  display: block;
  margin-top: 3px;
}

.nb-rsocialproof > div i {
  color: #ffad00;
  font-size: 15px;
}

.nb-rsocialproof > div small {
  margin-top: 7px;
  color: var(--nr-muted);
  font-size: 11px;
}

.nb-rsocialproof > strong {
  align-items: center;
  color: var(--nr-blue-2);
  font-size: 17px;
  line-height: 1.25;
  text-align: center;
}

.nb-rsocialproof blockquote {
  border-right: 0;
  color: var(--nr-ink);
  font-size: 13px;
  line-height: 1.55;
}

.nb-rsocialproof cite {
  display: block;
  margin-top: 9px;
  color: var(--nr-blue-2);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

/* Blog and recommendation */
.nb-rsection--blog {
  padding-bottom: 58px;
}

.nb-rbloggrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) 1.12fr;
  gap: 20px;
}

.nb-rbloggrid > a,
.nb-rrecommend {
  min-width: 0;
  min-height: 285px;
  overflow: hidden;
  border: 1px solid var(--nr-line);
  border-radius: 9px;
  background: #fff;
}

.nb-rbloggrid > a {
  transition: transform .2s ease, box-shadow .2s ease;
}

.nb-rbloggrid > a:hover {
  transform: translateY(-3px);
  box-shadow: var(--nr-shadow);
}

.nb-rbloggrid > a img {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: cover;
  background: var(--nr-soft);
}

.nb-rbloggrid > a b,
.nb-rbloggrid > a span {
  display: block;
  padding: 0 13px;
}

.nb-rbloggrid > a b {
  min-height: 48px;
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.45;
}

.nb-rbloggrid > a span {
  margin-top: 9px;
  color: var(--nr-blue-2);
  font-size: 11px;
  font-weight: 800;
}

.nb-rrecommend {
  position: relative;
  padding: 31px 28px;
  background: linear-gradient(135deg, #fff, #edf3ff);
}

.nb-rrecommend > i {
  position: absolute;
  top: 18px;
  right: 18px;
  color: var(--nr-blue-2);
  font-size: 46px;
}

.nb-rrecommend h3 {
  max-width: 240px;
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
}

.nb-rrecommend p {
  max-width: 290px;
  margin: 14px 0 20px;
  color: var(--nr-muted);
  font-size: 13px;
  line-height: 1.5;
}

.nb-rrecommend .nb-rbutton {
  min-height: 44px;
  padding: 0 17px;
  font-size: 11px;
}

/* Shared footer continuation */
.site-footer_v2_newton,
.nb-footer-modern {
  background: #071d55 !important;
}

.nb-footer-modern {
  border-top: 0 !important;
}

.nb-footer-modern .nb-footer-modern__main {
  gap: 28px;
  padding: 43px 0 29px;
}

.nb-footer-modern .nb-footer-modern__brand p,
.nb-footer-modern .nb-footer-modern__newsletter p,
.nb-footer-modern a,
.nb-footer-modern address,
.nb-footer-modern__bottom p {
  color: rgba(255, 255, 255, .76) !important;
  font-size: 11px;
}

.nb-footer-modern h4,
.nb-footer-modern h5 {
  margin-bottom: 12px;
  color: #fff !important;
  font-size: 10px;
}

.nb-footer-modern li + li { margin-top: 7px; }
.nb-footer-modern .nb-home-v2-footer__logo { height: 34px; filter: brightness(0) invert(1); }
.nb-footer-modern__social { margin-top: 14px; }
.nb-footer-modern__social a { width: 28px; height: 28px; border-color: rgba(255, 255, 255, .25); color: #fff !important; }
.nb-footer-modern__newsletter { padding: 0; }
.nb-footer-modern__form { margin-top: 12px; --nb-footer-newsletter-height: 36px; }
.nb-footer-modern__form button { width: 82px; border-radius: 4px; background: #ff6900; }
.nb-footer-modern__form button::after { content: 'Subscribe'; font-size: 10px; font-weight: 800; }
.nb-footer-modern__form button i { display: none; }
.nb-footer-modern__bottom { padding: 15px 0; border-color: rgba(255, 255, 255, .18); }

/* Reference layout: a compact, continuous storefront at every desktop width. */
.nb-rwrap { width: min(1360px, 90%); }
.nb-reference-home { background: #fdfdfd; }
.nb-reference-home > .nb-rsection {
  content-visibility: auto;
  contain-intrinsic-size: auto 520px;
}
.nb-rsection, .nb-rsection--tight { padding: 16px 0; }
.nb-rsection--audiences { padding-top: 92px; }
.nb-rheading { margin-bottom: 16px; gap: 16px; }
.nb-rheading h2, .nb-rtrust-title { font-size: clamp(20px, 1.8vw, 27px); letter-spacing: -.035em; }
.nb-rheading > a { font-size: 12px; }
.nb-rbutton { min-height: 48px; padding: 0 23px; font-size: 13px; border-radius: 4px; }
.nb-rhero { padding-bottom: 62px; }
.nb-rhero__backdrop { background: url('/static/assets/img/home/generated/reference-bookstore-hero.webp') center / cover no-repeat; }
.nb-rhero__backdrop::after { background: linear-gradient(90deg, rgba(3, 17, 57, .3), transparent 65%); }
.nb-rhero__layout { display: block; min-height: 0; padding-bottom: 0; }
.nb-rhero__copy { width: 46%; max-width: 590px; padding: 48px 0 22px; }
.nb-rhero h1 { font-size: clamp(34px, 3.65vw, 56px); line-height: 1.06; letter-spacing: -.035em; }
.nb-rhero__copy p { max-width: 420px; margin: 19px 0 22px; font-size: 15px; line-height: 1.55; }
.nb-rbenefits { bottom: -54px; }
.nb-rbenefits__grid { padding: 22px 12px; box-shadow: 0 2px 8px #071d5508; }
.nb-rbenefits__grid > div { padding: 5px 15px; gap: 12px; }
.nb-rbenefits b { font-size: 12px; }
.nb-rbenefits small { font-size: 11px; }
.nb-rbenefits__grid > div > i { font-size: 31px; }
.nb-rjourneys { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.nb-rjourney { min-height: 215px; padding: 18px 12px; border-radius: 9px; }
.nb-rjourney__illustration { display: grid; place-items: center; height: 67px; margin-bottom: 13px; font-size: 49px; line-height: 1; filter: drop-shadow(0 3px 1px #071d5518); }
.nb-rjourney:nth-child(4) .nb-rjourney__illustration { color: #bb622b; text-shadow: 1px 1px #071d55; }
.nb-rjourney b { font-size: 14px; }
.nb-rjourney small { min-height: 42px; margin: 12px 0; color: #39435a; font-size: 12px; }
.nb-rcategories { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; }
.nb-rcategory { min-height: 110px; flex-direction: column; gap: 9px; padding: 12px 8px; }
.nb-rcategory span { font-size: 11px; }
.nb-rcategory .nb-rcategory__illustration { font-size: 31px; line-height: 1.1; }
.nb-rproducts { gap: 18px; }
.nb-rformats { gap: 16px; }
.nb-rformats > a { min-height: 165px; padding: 20px 49% 16px 16px; background: #f6f5f3; }
.nb-rformats > a > i:first-child { display: none; }
.nb-rformats > a::before { content: ''; position: absolute; right: 0; top: 0; width: 49%; height: 100%; background-image: url('/static/assets/img/home/generated/reading-formats.png'); background-size: 400% 100%; background-repeat: no-repeat; }
.nb-rformats > a:nth-child(1)::before { background-position: 0% center; }
.nb-rformats > a:nth-child(2)::before { background-position: 33.333% center; }
.nb-rformats > a:nth-child(3)::before { background-position: 66.667% center; }
.nb-rformats > a:nth-child(4)::before { background-position: 100% center; }
.nb-rformats b { font-size: 17px; }
.nb-rformats small { min-height: 49px; margin: 10px 0 13px; font-size: 12px; color: #39435a; }
.nb-rformats em { font-size: 11px; white-space: nowrap; }
.nb-rinstitution { min-height: 255px; grid-template-columns: 1fr 1.15fr; gap: 28px; padding: 30px 220px 58px 28px; background: linear-gradient(90deg, #04153bf2, #061b52eb), url('/static/assets/img/home/generated/reference-bookstore-hero.webp') center / cover; }
.nb-rinstitution::after { right: -42px; bottom: -8px; width: 230px; height: 245px; border: 0; border-radius: 0; background: url('/static/assets/img/home/generated/hero-bookshelf-v2.webp') center / contain no-repeat; transform: rotate(-9deg); }
.nb-rinstitution p { font-size: 23px; }
.nb-rinstitution h2 { font-size: 27px; }
.nb-rinstitution > div > span { margin-top: 12px; font-size: 13px; }
.nb-rinstitution ul { grid-template-columns: repeat(5, minmax(0, 1fr)); align-content: start; gap: 15px; padding-top: 12px; text-align: center; }
.nb-rinstitution li { font-size: 11px; }
.nb-rinstitution li i { font-size: 34px; }
.nb-rinstitution__actions { margin-top: 19px; }
.nb-rinstitution__actions .nb-rbutton { min-height: 41px; padding: 0 14px; font-size: 11px; }
.nb-rinstitution__footer { left: 28px; bottom: 22px; gap: 18px; }
.nb-rtrust-title { margin-bottom: 14px; font-size: 21px; }
.nb-rsocialproof > div, .nb-rsocialproof > strong, .nb-rsocialproof blockquote { min-height: 150px; padding: 20px; }
.nb-rsocialproof > strong { font-family: Georgia, serif; font-size: 20px; }
.nb-rsocialproof > strong:nth-of-type(3) { color: #14593e; font-size: 36px; font-style: italic; }
.nb-rsocialproof > strong:nth-of-type(4) { color: #af183c; font-size: 25px; font-style: italic; }
.nb-rsocialproof blockquote { font-size: 12px; }
.nb-rsocialproof blockquote::before { content: '“'; height: 26px; color: var(--nr-blue); font: bold 40px/1 Georgia, serif; }
.nb-rbloggrid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.nb-rbloggrid > a, .nb-rrecommend { min-height: 205px; }
.nb-rbloggrid > a img { height: 95px; }
.nb-rbloggrid > a b { margin-top: 12px; font-size: 13px; }
.nb-rbloggrid > a span { padding-bottom: 15px; }
.nb-rrecommend { padding: 21px 20px; }
.nb-rrecommend > i { font-size: 35px; opacity: .25; }
.nb-rrecommend h3 { position: relative; font-size: 17px; }
.nb-rrecommend p { margin: 12px 0; font-size: 12px; }
.nb-rrecommend .nb-rbutton { padding: 0 12px; font-size: 10px; min-height: 38px; }
.nb-rsection--blog { padding-bottom: 24px; }
.nb-rnewsletter { background: #061b48; color: white; border-bottom: 1px solid #ffffff26; }
.nb-rnewsletter__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 45px; align-items: center; padding: 23px 0; }
.nb-rnewsletter__intro { display: flex; align-items: center; gap: 25px; }
.nb-rnewsletter__intro > i { font-size: 58px; color: #b4c6f2; }
.nb-rnewsletter h2 { margin: 0 0 7px; color: white; font-size: 22px; }
.nb-rnewsletter p { margin: 0; color: #e2e8f4; font-size: 12px; line-height: 1.5; }
#nb-home-newsletter h5, #nb-home-newsletter .nb-footer-modern__newsletter > p { display: none; }
#nb-home-newsletter .nb-footer-modern__form { display: flex; gap: 5px; margin: 0; }
#nb-home-newsletter input { min-width: 0; width: 100%; height: 45px; border: 1px solid #c5cede; border-radius: 5px; padding: 0 15px; font-size: 13px; background: white; }
#nb-home-newsletter button { flex: 0 0 135px; height: 45px; border: 0; border-radius: 5px; background: #ff6900; color: white; }
#nb-home-newsletter::after { content: 'No spam. Unsubscribe anytime.'; display: block; margin-top: 8px; text-align: center; font-size: 10px; }
body:has(.nb-reference-home) .nb-footer-modern { border-top: 0 !important; }
body:has(.nb-reference-home) .nb-footer-modern .container { width: min(1360px, 90%); max-width: none; padding: 0; }
body:has(.nb-reference-home) .nb-footer-modern__main { grid-template-columns: 1.5fr repeat(3, 1fr); padding: 26px 0; gap: 60px; }
body:has(.nb-reference-home) .nb-footer-modern__main h4 { color: white !important; }
body:has(.nb-reference-home) .nb-footer-modern__bottom { padding: 12px 0; }
@media (min-width: 992px) {
  body:has(.nb-reference-home) .nb-nav__row, body:has(.nb-reference-home) .nb-nav__utility-inner { width: min(1360px, 90%); }
  body:has(.nb-reference-home) .nb-nav__row { grid-template-columns: 240px minmax(0,1fr) auto; grid-template-rows: 88px 48px; }
  body:has(.nb-reference-home) .nb-nav__brand img { height: 48px; }
  body:has(.nb-reference-home) .nb-nav__links { justify-content: center; }
}
@media (max-width: 1100px) {
  .nb-rhero__copy { width: 48%; }
  .nb-rhero__copy p { max-width: 350px; font-size: 13px; }
  .nb-rbenefits__grid > div { padding: 4px 8px; gap: 8px; }
  .nb-rbenefits__grid > div > i { font-size: 25px; }
  .nb-rbenefits b { font-size: 10px; }
  .nb-rbenefits small { font-size: 9px; }
  .nb-rjourney { padding: 15px 8px; min-height: 200px; }
  .nb-rjourney b { font-size: 12px; }
  .nb-rjourney small { font-size: 10px; }
  .nb-rformats > a { padding-left: 12px; }
  .nb-rformats b { font-size: 15px; }
  .nb-rformats em { font-size: 9px; }
  .nb-rinstitution { padding-right: 140px; grid-template-columns: 1fr 1fr; }
  .nb-rinstitution::after { width: 165px; }
  .nb-rinstitution p { font-size: 19px; }
  .nb-rinstitution ul { gap: 8px; }
  .nb-rsocialproof > div, .nb-rsocialproof > strong, .nb-rsocialproof blockquote { padding: 12px; }
}
@media (max-width: 760px) {
  .nb-rbenefits__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; gap: 0; padding: 10px 6px; }
  .nb-rbenefits__grid > div { min-width: 0; width: auto; flex: none; padding: 9px 8px; border-right: 1px solid var(--nr-line); }
  .nb-rbenefits__grid > div:nth-child(2n) { border-right: 0; }
  .nb-rbenefits__grid > div:nth-child(n+3) { border-top: 1px solid var(--nr-line); }
  .nb-rbenefits b { font-size: 11px; }
  .nb-rbenefits small { font-size: 10px; }
  .nb-rhero__backdrop { aspect-ratio: 1.8 / 1; min-height: 190px; }
  .nb-rhero__backdrop img { min-height: 190px; }
  .nb-rcategories { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; overflow: visible; gap: 12px; padding: 6px 2px 16px; }
  .nb-rcategories > .nb-rcategory { min-width: 0; width: auto; flex: none; min-height: 190px; padding: 20px 14px; }
}

@media (max-width: 760px) {
  .nb-rwrap { width: calc(100% - 32px); }
  .nb-rhero { padding-bottom: 0; }
  .nb-rhero__backdrop { background-position: 63% top; background-size: auto 340px; }
  .nb-rhero__backdrop::after { background: linear-gradient(90deg, #04153bed, #04153b70); }
  .nb-rhero__copy { width: 75%; padding: 32px 0 22px; }
  .nb-rhero h1 { font-size: clamp(29px, 5.3vw, 40px); }
  .nb-rhero__copy p { font-size: 13px; }
  .nb-rhero__actions { gap: 8px; }
  .nb-rbutton { min-height: 43px; padding: 0 14px; font-size: 11px; }
  .nb-rbenefits { position: relative; bottom: auto; padding-bottom: 16px; }
  .nb-rbenefits__grid { display: flex; overflow-x: auto; padding: 12px 8px; scroll-snap-type: x mandatory; }
  .nb-rbenefits__grid > div { flex: 0 0 210px; scroll-snap-align: start; padding: 4px 12px; }
  .nb-rbenefits b { font-size: 12px; }
  .nb-rbenefits small { font-size: 11px; }
  .nb-rsection--audiences { padding-top: 24px; }
  .nb-rheading { gap: 10px; }
  .nb-rheading h2 { font-size: 20px; }
  .nb-rheading > a { font-size: 10px; }
  .nb-rjourneys { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
  .nb-rjourney { min-height: 195px; }
  .nb-rjourney__illustration { font-size: 39px; height: 53px; }
  .nb-rcategories { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .nb-rcategory { min-height: 103px; }
  .nb-rproducts { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(145px, 29%); grid-template-columns: none; overflow-x: auto; gap: 10px; padding-bottom: 10px; scroll-snap-type: x mandatory; }
  .nb-rformats { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .nb-rformats > a { min-height: 160px; }
  .nb-rinstitution { grid-template-columns: 1fr; padding: 24px 24px 75px; gap: 20px; }
  .nb-rinstitution > div:first-child { position: relative; z-index: 1; }
  .nb-rinstitution > div > span { max-width: 420px; }
  .nb-rinstitution ul { max-width: 80%; }
  .nb-rinstitution::after { opacity: .3; }
  .nb-rinstitution__footer { left: 24px; right: 24px; gap: 8px 14px; }
  .nb-rinstitution__footer span { font-size: 10px; }
  .nb-rsocialproof { grid-template-columns: repeat(5,minmax(0,1fr)); }
  .nb-rsocialproof > div, .nb-rsocialproof > strong { min-height: 105px; padding: 8px; }
  .nb-rsocialproof > strong { font-size: 12px; }
  .nb-rsocialproof > strong:nth-of-type(3) { font-size: 24px; }
  .nb-rsocialproof > strong:nth-of-type(4) { font-size: 20px; }
  .nb-rsocialproof > div b { font-size: 21px; }
  .nb-rsocialproof > div i { font-size: 9px; }
  .nb-rsocialproof > div small { font-size: 9px; }
  .nb-rsocialproof blockquote { grid-column: 1/-1; min-height: 0; border-top: 1px solid var(--nr-line); }
  .nb-rbloggrid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .nb-rnewsletter__inner { grid-template-columns: 1fr; gap: 18px; }
  .nb-rnewsletter h2 { font-size: 20px; }
  body:has(.nb-reference-home) .nb-footer-modern__main { grid-template-columns: repeat(3,1fr); gap: 24px; }
  body:has(.nb-reference-home) .nb-footer-modern__brand { grid-column: 1/-1; }
}
@media (max-width: 420px) {
  .nb-rhero__copy { width: 100%; }
  .nb-rhero__backdrop::after { background: #04153bbd; }
  .nb-rjourneys { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .nb-rcategories { gap: 6px; }
  .nb-rcategory { padding: 10px 4px; }
  .nb-rcategory span { font-size: 9px; }
  .nb-rformats > a { padding-right: 40%; }
  .nb-rformats > a::before { width: 40%; }
  .nb-rformats em { white-space: normal; }
  .nb-rbloggrid { grid-template-columns: 1fr; }
  #nb-home-newsletter button { flex-basis: 100px; }
}
@media (prefers-reduced-motion: reduce) {
  .nb-reference-home *, .nb-reference-home *::before, .nb-reference-home *::after { transition: none !important; scroll-behavior: auto !important; }
  .nb-scroll-reveal { opacity: 1; transform: none; transition: none; }
}
/* Keep shared footer rules from reducing contrast on the home page. */
body:has(.nb-reference-home) .nb-footer-modern .nb-footer-modern__main a,
body:has(.nb-reference-home) .nb-footer-modern .nb-footer-modern__social a i { color: #e4eaf6 !important; }
body:has(.nb-reference-home) .nb-footer-modern .nb-footer-modern__main a:hover { color: #ff8a25 !important; }
@media (min-width: 761px) and (max-width: 991px) {
  .nb-rjourneys { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nb-rformats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nb-rproducts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nb-rinstitution { padding-right: 28px; }
  .nb-rinstitution::after { display: none; }
}
@media (max-width: 760px) {
  .nb-rinstitution { padding-bottom: 24px; }
  .nb-rinstitution__footer { position: relative; left: auto; right: auto; bottom: auto; }
  .nb-rinstitution ul { max-width: 100%; }
}
/* Each main chapter gets a viewport, with content allowed to grow beyond it. */
.nb-reference-home { --nb-header-height: 178px; }
.nb-rhero {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--nb-header-height));
  min-height: calc(100svh - var(--nb-header-height));
  padding: 0;
}
.nb-rhero__layout { display: flex; flex: 1; align-items: center; }
.nb-rhero__copy { width: 48%; max-width: 660px; padding: 64px 0 48px; }
.nb-rhero h1 { font-size: clamp(40px, 4.2vw, 72px); line-height: 1.08; }
.nb-rhero__copy p { max-width: 500px; margin: 26px 0 30px; font-size: 17px; line-height: 1.7; }
.nb-rhero__actions .nb-rbutton { min-height: 54px; padding: 0 26px; font-size: 14px; }
.nb-rbenefits { position: relative; bottom: auto; padding: 0 0 28px; }
.nb-rbenefits__grid { padding: 24px 16px; }
.nb-rbenefits b { font-size: 13px; }
.nb-rbenefits small { font-size: 12px; }
.nb-rsection, .nb-rsection--tight {
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(64px, 9vh, 128px) 0;
  border-bottom: 1px solid #e9edf4;
}
.nb-rsection:nth-of-type(even) { background: #f4f7fc; }
.nb-rsection:nth-of-type(odd) { background: #fff; }
.nb-rheading { margin-bottom: clamp(30px, 5vh, 60px); align-items: center; }
.nb-rheading h2, .nb-rtrust-title { font-size: clamp(28px, 2.6vw, 42px); line-height: 1.2; }
.nb-rheading > a { font-size: 14px; }
.nb-rjourneys { gap: 20px; }
.nb-rjourney { min-height: 310px; padding: 32px 18px; justify-content: center; }
.nb-rjourney__illustration { height: 85px; margin-bottom: 25px; font-size: 62px; }
.nb-rjourney b { font-size: 17px; }
.nb-rjourney small { margin: 17px 0 24px; font-size: 14px; line-height: 1.6; }
.nb-rjourney em { font-size: 13px; }
.nb-rcategories { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.nb-rcategory { min-height: 180px; padding: 24px; gap: 20px; }
.nb-rcategory .nb-rcategory__illustration { font-size: 45px; }
.nb-rcategory span { font-size: 15px; }
.nb-rproducts { gap: 20px; }
.nb-rformats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.nb-rformats > a { min-height: 240px; padding: 32px 49% 30px 30px; }
.nb-rformats b { font-size: 25px; }
.nb-rformats small { min-height: 70px; margin: 18px 0 24px; font-size: 16px; line-height: 1.6; }
.nb-rformats em { font-size: 14px; white-space: normal; }
.nb-rinstitution { min-height: 490px; align-items: center; padding: 60px 190px 100px 48px; gap: 36px; }
.nb-rinstitution p { font-size: 30px; }
.nb-rinstitution h2 { font-size: 38px; }
.nb-rinstitution > div > span { margin-top: 24px; font-size: 16px; line-height: 1.8; }
.nb-rinstitution ul { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 20px; }
.nb-rinstitution li { font-size: 13px; }
.nb-rinstitution li i { font-size: 40px; }
.nb-rinstitution__actions { margin-top: 30px; }
.nb-rinstitution__actions .nb-rbutton { min-height: 48px; font-size: 12px; }
.nb-rinstitution__footer { left: 48px; bottom: 32px; gap: 24px; }
.nb-rtrust-title { margin-bottom: 42px; }
.nb-rsocialproof > div, .nb-rsocialproof > strong, .nb-rsocialproof blockquote { min-height: 240px; padding: 24px; }
.nb-rsocialproof blockquote { font-size: 15px; }
.nb-rbloggrid { gap: 24px; }
.nb-rbloggrid > a, .nb-rrecommend { min-height: 360px; }
.nb-rbloggrid > a img { height: 190px; }
.nb-rbloggrid > a b { margin-top: 22px; min-height: 65px; font-size: 16px; }
.nb-rbloggrid > a span { margin-top: 16px; font-size: 13px; }
.nb-rrecommend { display: flex; flex-direction: column; justify-content: center; padding: 30px 24px; }
.nb-rrecommend h3 { font-size: 24px; }
.nb-rrecommend p { margin: 20px 0 25px; font-size: 15px; }
.nb-rrecommend .nb-rbutton { font-size: 12px; min-height: 46px; }
@media (max-width: 1100px) {
  .nb-rjourneys { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nb-rjourney { min-height: 250px; }
  .nb-rjourney__illustration { height: 60px; font-size: 48px; margin-bottom: 15px; }
  .nb-rinstitution { padding-right: 40px; }
  .nb-rinstitution::after { opacity: .15; }
  .nb-rsocialproof { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .nb-rsocialproof blockquote { grid-column: 1 / -1; min-height: 160px; border-top: 1px solid var(--nr-line); }
  .nb-rsocialproof > div, .nb-rsocialproof > strong { padding: 15px; min-height: 170px; }
}
@media (max-width: 760px) {
  .nb-reference-home { --nb-header-height: 108px; }
  .nb-rhero__copy { width: 100%; max-width: 540px; padding: 48px 0 32px; }
  .nb-rhero h1 { font-size: clamp(36px, 7.5vw, 52px); }
  .nb-rhero__copy p { font-size: 15px; }
  .nb-rhero__backdrop { background-size: cover; }
  .nb-rhero__backdrop::after { background: linear-gradient(90deg, #04153bf5, #04153b99); }
  .nb-rbenefits { padding-bottom: 20px; }
  .nb-rbenefits__grid { padding: 14px 8px; }
  .nb-rsection, .nb-rsection--tight { padding: 56px 0; }
  .nb-rheading { align-items: flex-start; margin-bottom: 30px; }
  .nb-rheading h2, .nb-rtrust-title { font-size: 28px; }
  .nb-rheading > a { font-size: 11px; margin-top: 8px; }
  .nb-rjourneys { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .nb-rjourney { min-height: 250px; padding: 24px 12px; }
  .nb-rjourney b { font-size: 15px; }
  .nb-rjourney small { font-size: 13px; }
  .nb-rcategories { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .nb-rcategory { min-height: 150px; padding: 18px 12px; }
  .nb-rcategory span { font-size: 13px; }
  .nb-rproducts { grid-auto-columns: minmax(210px, 70%); }
  .nb-rformats { grid-template-columns: 1fr; gap: 18px; }
  .nb-rformats > a { min-height: 220px; padding: 26px 49% 24px 22px; }
  .nb-rformats > a::before { width: 49%; }
  .nb-rformats b { font-size: 22px; }
  .nb-rformats small { font-size: 14px; min-height: 55px; }
  .nb-rformats em { font-size: 12px; }
  .nb-rinstitution { padding: 34px 24px; min-height: 0; gap: 34px; }
  .nb-rinstitution p { font-size: 25px; }
  .nb-rinstitution h2 { font-size: 32px; }
  .nb-rinstitution > div > span { font-size: 15px; }
  .nb-rinstitution ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nb-rinstitution__footer { left: auto; bottom: auto; gap: 16px; }
  .nb-rsocialproof { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nb-rsocialproof > div { grid-column: 1 / -1; align-items: center; }
  .nb-rsocialproof > strong { font-size: 18px; }
  .nb-rsocialproof > div i { font-size: 15px; }
  .nb-rsocialproof > div small { font-size: 12px; }
  .nb-rbloggrid { grid-template-columns: 1fr; }
}
/* Stable card widths; touch, trackpad and keyboard scrolling at every size. */
.nb-rjourneys,
.nb-rcategories {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  overflow-x: auto;
  padding: 6px 4px 16px;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.nb-rjourneys::-webkit-scrollbar,
.nb-rcategories::-webkit-scrollbar { display: none; }
.nb-rjourneys > .nb-rjourney {
  flex: 0 0 288px;
  min-height: 320px;
  padding: 30px 20px;
  scroll-snap-align: start;
}
.nb-rcategories > .nb-rcategory {
  flex: 0 0 220px;
  min-height: 190px;
  padding: 24px 18px;
  scroll-snap-align: start;
}
.nb-rjourney .nb-rjourney__illustration {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin-bottom: 24px;
  border-radius: 18px;
  background: #eef3fc;
  color: var(--nr-blue-2);
  font-size: 40px;
  filter: none;
  text-shadow: none;
}
.nb-rjourney .nb-rjourney__illustration i { line-height: 1; }
.nb-rcategory .nb-rcategory__illustration i { font-size: 38px; color: var(--nr-blue-2); }
.nb-rjourneys:focus-visible,
.nb-rcategories:focus-visible { outline: 2px solid var(--nr-blue-2); outline-offset: 4px; }
.nb-rjourney:focus-visible,
.nb-rcategory:focus-visible { outline: 2px solid var(--nr-orange); outline-offset: 2px; }

/* Reuse the shop card component; only the horizontal row belongs to home. */
.nb-home-books.nb-product-grid--carousel > .nb-product { flex: 0 0 260px; }
/* Content-led sections: keep the opening hero tall without empty full screens. */
.nb-rsection, .nb-rsection--tight {
  min-height: 0;
  padding: clamp(40px, 4vw, 64px) 0;
}
.nb-rheading, .nb-rtrust-title { margin-bottom: 30px; }
/* Each quarter of the format photograph has a native 3:4 aspect ratio. */
.nb-rformats > a::before {
  width: min(44%, 156px);
  height: auto;
  aspect-ratio: 3 / 4;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  background-size: 400% 100%;
}
.nb-rformats > a { background: #f6f5f3; }
.nb-rsocialproof > .nb-rpartner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  min-height: 170px;
  border-right: 1px solid var(--nr-line);
}
.nb-rpartner img { width: 100%; height: 92px; object-fit: contain; }
.nb-rsocialproof > div, .nb-rsocialproof blockquote { min-height: 170px; }
@media (max-width: 760px) {
  .nb-rsocialproof > .nb-rpartner { min-height: 140px; }
  .nb-rsocialproof > .nb-rpartner { grid-column: auto; }
  .nb-rformats > a::before { right: 12px; width: min(44%, 140px); }
}
/* Fit the complete hero artwork, including the book at the right edge. */
.nb-rhero { background: #041238; }
.nb-rhero__backdrop { bottom: 150px; background: none; }
.nb-rhero__backdrop img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.nb-rhero__backdrop::after { background: linear-gradient(90deg, #041238b3, transparent 65%); }
.nb-rhero__layout { position: relative; z-index: 1; }
.nb-rbenefits { width: 100%; padding: 20px 0 28px; }
.nb-rbenefits__grid { margin-inline: auto; align-items: center; }
.nb-rhero__explore { display: inline-flex; gap: 12px; align-items: center; margin-top: 26px; color: #dce7ff !important; font-size: 13px; }
.nb-book-controls { display: flex; justify-content: flex-end; gap: 8px; margin: -12px 0 22px; }
.nb-book-controls[hidden] { display: none; }
.nb-book-controls button { min-height: 40px; padding: 8px 14px; border: 1px solid var(--nr-line); border-radius: 5px; background: #fff; color: var(--nr-blue); font-size: 12px; cursor: pointer; }
.nb-book-controls button:hover { border-color: var(--nr-orange); }
.nb-book-controls button:focus-visible, .nb-home-books:focus-visible { outline: 2px solid var(--nr-orange); outline-offset: 3px; }
@media (max-width: 760px) {
  .nb-rhero .nb-rbenefits {
    position: relative;
    inset: auto;
    transform: none;
    padding: 0 0 16px;
  }
  .nb-rbenefits__grid {
    display: flex;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    gap: 0;
    padding: 12px 8px;
    border-radius: 10px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .nb-rbenefits__grid::-webkit-scrollbar { display: none; }
  .nb-rbenefits__grid > div {
    flex: 0 0 215px;
    min-width: 215px;
    scroll-snap-align: start;
    border-right: 1px solid var(--nr-line);
    padding: 5px 14px;
  }
  .nb-rcategories {
    display: flex;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    gap: 12px;
    padding: 6px 2px 16px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .nb-rcategories::-webkit-scrollbar { display: none; }
  .nb-rcategories > .nb-rcategory {
    flex: 0 0 220px;
    min-width: 220px;
    scroll-snap-align: start;
  }
  .nb-rhero__layout { order: 1; }
  .nb-rhero__backdrop { position: relative; inset: auto; order: 2; aspect-ratio: 2.35 / 1; width: 100%; }
  .nb-rhero__backdrop::after { display: none; }
  .nb-rbenefits { order: 3; }
  .nb-rhero__copy { padding-bottom: 24px; }
}
/* Isolated artwork sits directly on the format card surface. */
.nb-rformats > a::before {
  background-image: url('/static/assets/img/home/generated/reading-formats-transparent.webp');
  width: min(42%, 180px);
  right: 24px;
}
.nb-rformats > a { min-height: 260px; }
/* Four database-driven editorial tiles fill the rail and scroll on small screens. */
.nb-rcategories > .nb-rcategory {
  flex: 1 0 260px;
  min-height: 245px;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
  gap: 14px;
  padding: 26px;
  border-radius: 12px;
  background: linear-gradient(135deg, #edf3ff, #fff);
}
.nb-rcategories > .nb-rcategory:nth-child(2) { background: linear-gradient(135deg, #fff2e8, #fff); }
.nb-rcategories > .nb-rcategory:nth-child(3) { background: linear-gradient(135deg, #edf6f2, #fff); }
.nb-rcategories > .nb-rcategory:nth-child(4) { background: linear-gradient(135deg, #f3effb, #fff); }
.nb-rcategory .nb-rcategory__illustration { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 12px; background: #fff; }
.nb-rcategory .nb-rcategory__illustration i { font-size: 26px; }
.nb-rcategory .nb-rcategory__name { font-size: 19px; }
.nb-rcategory small { color: var(--nr-muted); font-size: 13px; line-height: 1.6; }
.nb-rcategory em { margin-top: auto; color: var(--nr-blue-2); font-size: 12px; font-weight: 700; font-style: normal; }
.nb-rcategory em i { font-size: 14px; margin-left: 8px; }
.nb-rbloggrid > a { display: flex; flex-direction: column; min-height: 0; padding-bottom: 22px; }
.nb-rbloggrid > a b { min-height: 0; margin: 18px 0 0; padding-inline: 20px; line-height: 1.5; }
.nb-rbloggrid .nb-rblog-excerpt { margin: 10px 20px 0; color: var(--nr-muted); font-size: 14px; line-height: 1.65; }
.nb-rbloggrid > a > span { padding: 0 20px; margin-top: 18px; }
.nb-rrecommend { min-height: 0; }
@media (max-width: 760px) {
  .nb-rcategories > .nb-rcategory { flex: 0 0 280px; }
  .nb-rformats > a::before { width: min(42%, 155px); right: 12px; }
}

/* Calm category feedback without lifting the card out of the row. */
.nb-rcategories > .nb-rcategory { transition: background .18s ease, border-color .18s ease; }
.nb-rcategories > .nb-rcategory:hover,
.nb-rcategories > .nb-rcategory:focus-visible { transform: none; background: #f4f7fc; border-color: #b9c9e4; box-shadow: none; color: var(--nr-blue-2); }

/* Anchor the benefits card halfway across the hero's lower boundary. */
.nb-rhero { padding-bottom: 64px; }
.nb-rhero__backdrop { bottom: 0; }
.nb-rhero__backdrop img { display: block; object-fit: contain; object-position: center bottom; }
.nb-rhero .nb-rbenefits {
  position: absolute;
  bottom: 0;
  padding: 0;
  transform: translateY(50%);
}
@media (max-width: 760px) {
  .nb-rhero .nb-rbenefits { position: relative; inset: auto; transform: none; padding: 0 0 16px; }
  .nb-rbenefits__grid { display: flex; width: 100%; max-width: 100%; overflow-x: auto; flex-wrap: nowrap; gap: 0; padding: 12px 8px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .nb-rbenefits__grid::-webkit-scrollbar { display: none; }
  .nb-rbenefits__grid > div { flex: 0 0 215px; min-width: 215px; scroll-snap-align: start; padding: 5px 14px; }
  .nb-rcategories { display: flex; width: 100%; max-width: 100%; overflow-x: auto; flex-wrap: nowrap; gap: 12px; padding: 6px 2px 16px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .nb-rcategories::-webkit-scrollbar { display: none; }
  .nb-rcategories > .nb-rcategory { flex: 0 0 220px; min-width: 220px; scroll-snap-align: start; }
}
.nb-rsection.nb-rsection--audiences { padding-top: 120px; }
@media (max-width: 760px) {
  .nb-rhero { padding-bottom: 0; }
  .nb-rhero__backdrop { bottom: auto; }
  .nb-rhero__backdrop img { object-fit: contain; }
  .nb-rsection.nb-rsection--audiences { padding-top: 100px; }
}

/* Give each reading journey its own colour and a more intentional hierarchy. */
.nb-discovery-eyebrow { margin: 0 0 10px; color: #ad4400; font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.nb-discovery-intro { margin: 13px 0 0; color: #60708b; font-size: 15px; line-height: 1.6; }
.nb-rsection--audiences .nb-rheading { align-items: center; margin-bottom: 18px; }
.nb-journey-controls { margin: 0 0 12px; }
.nb-journey-controls button { width: 44px; height: 44px; border-radius: 50%; }
.nb-rjourneys > .nb-rjourney {
 --journey-tint: #eaf1ff; --journey-accent: #194c9c;
 position: relative; isolation: isolate; overflow: hidden;
 min-height: 294px; padding: 25px; align-items: flex-start; justify-content: flex-start;
 border-radius: 16px; background: linear-gradient(145deg, var(--journey-tint), #fff 85%);
 text-align: left; border-color: #dfe6f1;
}
.nb-rjourney:nth-child(2) { --journey-tint: #fff0e3; --journey-accent: #a44817; }
.nb-rjourney:nth-child(3) { --journey-tint: #e4f4ed; --journey-accent: #236750; }
.nb-rjourney:nth-child(4) { --journey-tint: #f0eafa; --journey-accent: #6d4894; }
.nb-rjourney:nth-child(5) { --journey-tint: #fff2d9; --journey-accent: #886014; }
.nb-rjourney:nth-child(6) { --journey-tint: #e5f3f6; --journey-accent: #246778; }
.nb-rjourneys > .nb-rjourney::before { content: ''; position: absolute; z-index: -1; width: 150px; height: 150px; top: -60px; right: -45px; border: 22px solid var(--journey-tint); border-radius: 50%; }
.nb-rjourney .nb-rjourney__illustration { width: 68px; height: 68px; margin-bottom: 22px; border: 1px solid #ffffffb3; border-radius: 17px; background: #ffffffcc; color: var(--journey-accent); font-size: 36px; box-shadow: 0 5px 14px #10215008; }
.nb-rjourneys .nb-rjourney b { font-size: 19px; letter-spacing: -.025em; }
.nb-rjourneys .nb-rjourney small { margin: 10px 0 22px; min-height: 0; color: #4c5b73; font-size: 13px; line-height: 1.65; }
.nb-rjourneys .nb-rjourney em { display: flex; align-items: center; justify-content: space-between; align-self: stretch; margin-top: auto; padding-top: 15px; border-top: 1px solid #10215012; color: var(--journey-accent); font-size: 12px; }
.nb-rjourney em i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--journey-tint); }
.nb-rjourneys > .nb-rjourney:hover { border-color: var(--journey-accent); box-shadow: 0 8px 20px #1021500c; transform: translateY(-2px); }
@media (max-width: 560px) {
 .nb-discovery-intro { font-size: 13px; max-width: 270px; }
 .nb-discovery-eyebrow { font-size: 10px; }
 .nb-rjourneys > .nb-rjourney { flex-basis: min(288px, 82vw); min-height: 284px; padding: 22px; }
}

/* Five institution types share one row, with swipe access on narrow screens. */
.nb-rinstitution ul { grid-template-columns: repeat(5, minmax(110px, 1fr)); gap: 14px; max-width: 100%; min-width: 0; overflow-x: auto; padding: 12px 0; scrollbar-width: thin; }
.nb-rinstitution li { white-space: nowrap; text-align: center; font-size: 12px; }
@media (min-width: 1100px) {
 .nb-rinstitution { grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr); padding-right: 48px; }
 .nb-rinstitution ul { gap: 10px; }
}
.nb-rsocialproof > .nb-testimonials { display: flex; flex-direction: column; align-items: stretch; justify-content: center; min-width: 0; border-right: 0; }
.nb-testimonials blockquote { margin: 0; padding: 0; min-height: 0; border: 0; }
.nb-testimonials [hidden] { display: none !important; }
.nb-testimonials__controls { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
.nb-testimonials__controls button { border: 1px solid #dce4f0; border-radius: 6px; background: #fff; color: #102150; min-height: 36px; padding: 6px 10px; font-size: 12px; cursor: pointer; }
.nb-testimonials__controls span { color: #66728f; font-size: 12px; }
.nb-testimonials__controls button:focus-visible { outline: 2px solid #ff6900; outline-offset: 2px; }
@media (max-width: 1100px) { .nb-rsocialproof > .nb-testimonials { grid-column: 1 / -1; border-top: 1px solid #e0e7f1; } }

@media (max-width: 760px) {
  .nb-rhero .nb-rbenefits { position: relative; inset: auto; transform: none; padding: 0 0 16px; }
  .nb-rbenefits__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; gap: 0; padding: 10px 6px; }
  .nb-rbenefits__grid > div { min-width: 0; width: auto; flex: none; padding: 9px 8px; border-right: 1px solid var(--nr-line); }
  .nb-rbenefits__grid > div:nth-child(2n) { border-right: 0; }
  .nb-rbenefits__grid > div:nth-child(n+3) { border-top: 1px solid var(--nr-line); }
  .nb-rbenefits b { font-size: 11px; }
  .nb-rbenefits small { font-size: 10px; }
  .nb-rhero__backdrop { aspect-ratio: 1.8 / 1; min-height: 190px; }
  .nb-rhero__backdrop img { min-height: 190px; }
}

/* Homepage book details: title, author, rating, price, then format. */
.nb-reference-home .nb-home-card__rating { margin-top: 4px; }
.nb-reference-home .nb-home-card__type {
  margin-top: 3px;
  color: var(--nb-muted);
  font-size: 12px;
  line-height: 1.4;
}

.nb-reference-home .nb-product__title { min-height: 0; }
.nb-reference-home .nb-product__title a {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: unset;
  line-clamp: unset;
}
.nb-reference-home .nb-product__media { aspect-ratio: 4 / 5; }
.nb-reference-home .nb-product__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.nb-reference-home .nb-home-card__rating { display: flex; align-items: center; gap: 6px; }
.nb-home-card__stars { position: relative; display: inline-block; color: #b9bec5; font-size: 16px; line-height: 1; letter-spacing: 2px; }
.nb-home-card__stars-filled { position: absolute; top: 0; left: 0; overflow: hidden; color: #f5bd16; white-space: nowrap; }

/* Leave room around the carousel cards for their shadows. */
.nb-reference-home .nb-home-books { padding: 12px 10px 24px; scroll-padding-inline: 10px; }
.nb-reference-home .nb-home-books > .nb-product {
  padding: 5px 12px 12px;
  border: 0;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(16, 33, 80, .07);
}
.nb-reference-home .nb-home-books .nb-product__media { height: 215px; aspect-ratio: auto; border-radius: 6px; }
.nb-reference-home .nb-home-books .nb-product__media img {
  position: absolute;
  top: 5px;
  left: 12.5%;
  width: 75%;
  height: calc(100% - 10px);
}
.nb-reference-home .nb-home-books .nb-product__body { padding: 6px 0 4px; }
.nb-reference-home .nb-home-books .nb-product__author { margin-top: 3px; }
.nb-reference-home .nb-home-books .nb-product__bottom { margin-top: 4px; }

.nb-reference-home .nb-rsection--products { padding-block: 40px 42px; }
.nb-reference-home .nb-rsection--products .nb-rheading { margin-bottom: 20px; }
.nb-reference-home .nb-book-controls { margin-bottom: 12px; }

.nb-reference-home .nb-home-books .nb-icon-btn {
  border: 1px solid #fff;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 3px 9px rgba(16, 33, 80, .14);
}
.nb-reference-home .nb-home-books .nb-icon-btn:hover,
.nb-reference-home .nb-home-books .nb-icon-btn:focus-visible {
  border-color: #fff;
  background: #fff;
  color: var(--nb-orange);
  box-shadow: 0 4px 12px rgba(16, 33, 80, .18);
}

@media (max-width: 600px) { .nb-reference-home .nb-home-books .nb-product__media { height: 165px; } }
