/**
 * Brand Hub front-end styles.
 * Generic template — themed per brand/line via CSS variables.
 */

.nb-brand-hub {
  --nbbh-accent: #2f6b5a;
  --nbbh-line-accent: var(--nbbh-accent);
  --nbbh-line-accent-soft: color-mix(in srgb, var(--nbbh-line-accent) 14%, #fff);
  --nbbh-text: #2a2a2a;
  --nbbh-muted: #6b6b6b;
  --nbbh-surface: #f7f5f2;
  --nbbh-radius: 16px;
  --nbbh-shadow: 0 10px 30px rgba(30, 30, 30, 0.06);
}

.nbbh-brand,
.nbbh-line {
  position: relative;
  color: var(--nbbh-text);
  isolation: isolate;
}

.nbbh-brand > section,
.nbbh-line > section,
.nbbh-brand > .container,
.nbbh-line > .container,
.nbbh-body > section,
.nbbh-body > .container {
  position: relative;
  z-index: 1;
}

/* Content band under hero (pattern lives here, not on first banner) */
.nbbh-body {
  position: relative;
  isolation: isolate;
}

/* Decorative icon pattern */
.nbbh-pattern {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.nbbh-pattern--body {
  z-index: 0;
}

.nbbh-pattern__icon {
  position: absolute;
  opacity: 0.5;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transform: rotate(var(--nbbh-rot, 0deg));
}

/* —— Hero (brand) — full-bleed banner behind title —— */
.nbbh-hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(220px, 34vh, 360px);
  padding: 28px 0 32px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: #f3f1ee;
  background-image: var(--nbbh-hero-bg, none);
  background-size: cover;
  background-position: center;
}

.nbbh-hero__bg {
  position: absolute !important;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.nbbh-hero__bg-img,
.nbbh-hero__bg img {
  position: absolute !important;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  object-position: center;
  display: block;
}

.nbbh-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0.22) 45%, rgba(255, 255, 255, 0.06) 72%, rgba(255, 255, 255, 0) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.18) 100%);
}

.nbbh-hero.no-scrim .nbbh-hero__scrim,
.nbbh-hero:not(.has-scrim) .nbbh-hero__scrim {
  background: none;
  opacity: 0;
}

.nbbh-hero:not(.has-banner) .nbbh-hero__scrim {
  background: linear-gradient(180deg, #fff 0%, #f7f5f2 100%);
  opacity: 1;
}

.nbbh-hero:not(.has-banner).no-scrim .nbbh-hero__scrim {
  background: #f7f5f2;
  opacity: 1;
}

.nbbh-hero__inner {
  position: relative;
  z-index: 3;
  display: block;
  width: 100%;
}

.nbbh-hero__content {
  max-width: 36rem;
  animation: nbbh-fade-up 0.55s ease both;
}

.nbbh-hero__brand-name,
.nbbh-hero__logo {
  margin: 0 0 12px;
}

.nbbh-hero__logo img {
  max-height: 56px;
  width: auto;
}

.nbbh-hero__brand-name {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nbbh-hero__title {
  margin: 0 0 14px;
  font-size: clamp(1.6rem, 2.4vw, 2.35rem);
  font-weight: 800;
  line-height: 1.35;
  color: #1f1f1f;
}

.nbbh-hero__lead {
  margin: 0 0 22px;
  max-width: 34em;
  color: #3a3a3a;
  line-height: 1.85;
  font-size: 1rem;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 12px;
  backdrop-filter: blur(4px);
}

.nbbh-hero__crumbs,
.nbbh-line-hero__crumbs {
  margin-bottom: 14px;
}

/* —— Features / badges —— */
.nbbh-features,
.nbbh-badges,
.nbbh-benefits,
.nbbh-free-from {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nbbh-features__item,
.nbbh-badges__item,
.nbbh-benefits__item,
.nbbh-free-from__item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 140px;
  max-width: 200px;
}

.nbbh-features__icon,
.nbbh-badges__icon,
.nbbh-benefits__icon,
.nbbh-free-from__icon {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--nbbh-shadow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.nbbh-features__icon img,
.nbbh-badges__icon img,
.nbbh-benefits__icon img,
.nbbh-free-from__icon img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.nbbh-features__dot,
.nbbh-badges__dot,
.nbbh-benefits__dot,
.nbbh-free-from__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--nbbh-line-accent, var(--nbbh-accent));
}

.nbbh-features__label,
.nbbh-badges__label,
.nbbh-benefits__label,
.nbbh-free-from__label {
  font-size: 0.82rem;
  line-height: 1.45;
  color: #444;
}

/* —— Section heads —— */
.nbbh-section-head {
  text-align: center;
  margin: 0 0 28px;
}

.nbbh-section-head__title {
  margin: 0 0 8px;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 800;
}

.nbbh-section-head__sub {
  margin: 0;
  color: var(--nbbh-muted);
  font-size: 0.95rem;
}

/* —— Line cards —— */
.nbbh-lines {
  padding: 48px 0 24px;
}

.nbbh-lines__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.nbbh-lines__all {
  margin-top: 28px;
  text-align: center;
}

.nbbh-lines__all-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1.5px solid #1f6b5c;
  color: #1f6b5c;
  font-weight: 800;
  text-decoration: none;
  background: #fff;
  transition: background 0.2s ease, color 0.2s ease;
}

.nbbh-lines__all-btn:hover {
  background: #1f6b5c;
  color: #fff;
}

.nbbh-lines__all-hint {
  margin: 10px 0 0;
  font-size: 0.82rem;
  color: var(--nbbh-muted);
}

.nbbh-line-card {
  background: color-mix(in srgb, var(--nbbh-line-accent) 12%, #fff);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--nbbh-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.nbbh-line-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(30, 30, 30, 0.1);
}

.nbbh-line-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 16px 14px 18px;
  text-decoration: none;
  color: inherit;
}

.nbbh-line-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  margin: 0 0 14px;
  border-radius: 14px;
  overflow: hidden;
  background: color-mix(in srgb, var(--nbbh-line-accent) 8%, #fff);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.nbbh-line-card__media img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 14px;
}

.nbbh-line-card__icon {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--nbbh-shadow);
  overflow: hidden;
}

.nbbh-line-card__icon img {
  width: 20px;
  height: 20px;
}

.nbbh-line-card__title {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 800;
  color: color-mix(in srgb, var(--nbbh-line-accent) 70%, #1a1a1a);
}

.nbbh-line-card__desc {
  margin: 0 0 14px;
  flex: 1;
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--nbbh-muted);
}

.nbbh-line-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--nbbh-line-accent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}

/* —— Featured —— */
.nbbh-featured {
  padding: 32px 0 16px;
}

/* —— Why brand —— */
.nbbh-why {
  margin-top: 28px;
  padding: 48px 0;
  background: var(--nbbh-surface);
}

.nbbh-why__inner {
  display: grid;
  grid-template-columns: 1.45fr minmax(160px, 280px);
  gap: 28px;
  align-items: center;
  justify-content: space-between;
}

.nbbh-why__title {
  margin: 0 0 14px;
  font-size: 1.45rem;
  font-weight: 800;
}

.nbbh-why__text {
  color: var(--nbbh-muted);
  line-height: 1.85;
  margin-bottom: 20px;
}

.nbbh-why__text a,
.nbbh-line-about__body a {
  color: var(--pink-600, #d91f5e);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--pink-500, #ec2c6f) 45%, transparent);
  text-underline-offset: 3px;
}

.nbbh-why__media {
  max-width: 280px;
  width: 100%;
  margin-inline: auto;
}

.nbbh-why__media img {
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: contain;
  border-radius: var(--nbbh-radius);
  display: block;
}

/* —— CTA —— */
.nbbh-cta {
  padding: 18px 0;
  background: linear-gradient(90deg, #1f6b5c, #2f8a76);
  color: #fff;
}

.nbbh-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.nbbh-cta__text {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 600;
}

.nbbh-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 22px;
  border-radius: 999px;
  background: #fff;
  color: #1f6b5c;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.nbbh-cta__btn:hover {
  transform: scale(1.03);
}

/* —— Line hero (uses brand full-bleed hero shell) —— */
.nbbh-line-hero.nbbh-hero:not(.has-banner) {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--nbbh-line-accent) 16%, #fff) 0%, #fff 62%);
}

.nbbh-line-hero__brand {
  margin: 0 0 12px;
  font-size: 0.9rem;
}

.nbbh-line-hero__brand a {
  display: inline-flex;
  align-items: center;
  color: var(--nbbh-line-accent);
  font-weight: 700;
  text-decoration: none;
}

.nbbh-line-hero__brand-logo,
.nbbh-line-hero__brand img {
  display: block;
  width: auto;
  max-width: min(200px, 55vw);
  max-height: 52px;
  height: auto;
  object-fit: contain;
}

.nbbh-about {
  padding: 40px 0 20px;
}

.nbbh-about__card {
  max-width: 52rem;
  margin: 0 auto;
  padding: 28px 32px;
  border-radius: 20px;
  background: linear-gradient(180deg, #fff 0%, #f7f5f2 100%);
  box-shadow: var(--nbbh-shadow);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.nbbh-about__body {
  color: #3d3d3d;
  line-height: 2.05;
  font-size: 1.02rem;
  text-align: justify;
  word-spacing: 0.12em;
  letter-spacing: 0.015em;
  overflow-wrap: break-word;
  word-break: normal;
}

.nbbh-about__body > *:first-child {
  margin-top: 0;
}

.nbbh-about__body > *:last-child {
  margin-bottom: 0;
}

.nbbh-about__body p {
  margin: 0 0 1.15em;
  line-height: inherit;
  word-spacing: inherit;
}

.nbbh-about__body p:last-child {
  margin-bottom: 0;
}

.nbbh-about__body h2,
.nbbh-about__body h3,
.nbbh-about__body h4 {
  color: #1f1f1f;
  font-weight: 800;
  line-height: 1.6;
  margin: 1.6em 0 0.75em;
  word-spacing: 0.08em;
}

.nbbh-about__body h2 {
  font-size: 1.28em;
}

.nbbh-about__body h3 {
  font-size: 1.14em;
}

.nbbh-about__body h4 {
  font-size: 1.05em;
}

.nbbh-about__body img,
.nbbh-about__body figure {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0.35em auto 1.75em;
  border-radius: 14px;
}

.nbbh-about__body p:has(> img:only-child),
.nbbh-about__body p:has(> a:only-child > img:only-child) {
  margin: 0 0 1.75em;
}

.nbbh-about__body p:has(> img:only-child) img,
.nbbh-about__body p:has(> a:only-child > img:only-child) img {
  margin: 0 auto;
}

.nbbh-about__body img + h2,
.nbbh-about__body img + h3,
.nbbh-about__body figure + h2,
.nbbh-about__body figure + h3,
.nbbh-about__body p:has(img) + h2,
.nbbh-about__body p:has(img) + h3 {
  margin-top: 0.35em;
}

.nbbh-about__body h2 + p,
.nbbh-about__body h3 + p,
.nbbh-about__body h4 + p {
  margin-top: 0;
}

.nbbh-about__body a {
  color: var(--pink-600, #d91f5e);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--pink-500, #ec2c6f) 45%, transparent);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.nbbh-about__body a:hover,
.nbbh-about__body a:focus-visible {
  color: var(--pink-700, #b0164c);
  text-decoration-color: var(--pink-500, #ec2c6f);
}

.nbbh-about__body a:focus-visible {
  outline: 2px solid var(--pink-500, #ec2c6f);
  outline-offset: 2px;
  border-radius: 2px;
}

.nbbh-faq {
  padding: 28px 0 36px;
}

.nbbh-faq .nb-post-faq {
  margin: 0;
}

.nbbh-faq .nb-post-faq__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.nbbh-faq .nb-post-faq__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--nbbh-accent) 12%, #fff);
  color: var(--nbbh-accent);
  flex-shrink: 0;
}

.nbbh-faq .nb-post-faq__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--nbbh-text);
}

/* Self-contained FAQ accordion (brand hub does not load blog/branded FAQ CSS) */
.nbbh-faq .nb-post-faq .nb-section-title,
.nbbh-faq .nb-post-faq h2 {
  margin: 0 0 16px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--nbbh-text);
}

.nbbh-faq .nb-faq {
  margin: 0;
  display: grid;
  gap: 10px;
  width: 100%;
}

.nbbh-faq .nb-faq__item {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  width: 100%;
  box-shadow: 0 4px 14px rgba(30, 30, 30, 0.04);
}

.nbbh-faq .nb-faq__q {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 0;
  background: transparent;
  text-align: right;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  color: var(--nbbh-text);
  line-height: 1.55;
}

.nbbh-faq .nb-faq__q > span {
  flex: 1 1 auto;
  min-width: 0;
}

.nbbh-faq .nb-faq__q i {
  width: 22px;
  height: 22px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--nbbh-accent) 12%, #fff);
  color: var(--nbbh-accent);
  position: relative;
  flex-shrink: 0;
}

.nbbh-faq .nb-faq__q i::before,
.nbbh-faq .nb-faq__q i::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.nbbh-faq .nb-faq__q i::before {
  width: 10px;
  height: 2px;
}

.nbbh-faq .nb-faq__q i::after {
  width: 2px;
  height: 10px;
}

.nbbh-faq .nb-faq__item.is-open .nb-faq__q i::after {
  display: none;
}

.nbbh-faq .nb-faq__a {
  padding: 0 16px 14px;
  color: var(--nbbh-muted);
  line-height: 1.9;
  font-size: 0.92rem;
}

.nbbh-faq .nb-faq__a > *:last-child {
  margin-bottom: 0;
}

/* —— About line —— */
.nbbh-line-about {
  padding: 8px 0 28px;
}

.nbbh-line-about__box {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  padding: 22px;
  border-radius: var(--nbbh-radius);
  background: #f3f3f5;
}

.nbbh-line-about__title {
  margin: 0 0 10px;
  font-size: 1.15rem;
  font-weight: 800;
}

.nbbh-line-about__body {
  color: var(--nbbh-muted);
  line-height: 1.8;
  font-size: 0.95rem;
}

.nbbh-line-shop {
  padding-bottom: 28px;
}

/* —— Line why —— */
.nbbh-line-why {
  padding: 40px 0;
  background: var(--nbbh-surface);
}

.nbbh-line-why__inner {
  display: grid;
  grid-template-columns: 1.45fr minmax(160px, 260px);
  gap: 24px;
  align-items: center;
}

.nbbh-line-why__title {
  margin: 0 0 12px;
  font-size: 1.35rem;
  font-weight: 800;
}

.nbbh-line-why__text {
  color: var(--nbbh-muted);
  line-height: 1.8;
  margin-bottom: 18px;
}

.nbbh-line-why__media {
  max-width: 260px;
  width: 100%;
  margin-inline: auto;
}

.nbbh-line-why__media img {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: contain;
  border-radius: var(--nbbh-radius);
  display: block;
}

.nbbh-free-from__item {
  flex-direction: column;
  text-align: center;
  max-width: 110px;
  min-width: 90px;
}

.nbbh-free-from__icon {
  margin-bottom: 6px;
}

/* —— Motion —— */
@keyframes nbbh-fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nbbh-line-card {
  animation: nbbh-fade-up 0.55s ease both;
}

.nbbh-line-card:nth-child(2) { animation-delay: 0.05s; }
.nbbh-line-card:nth-child(3) { animation-delay: 0.1s; }
.nbbh-line-card:nth-child(4) { animation-delay: 0.15s; }
.nbbh-line-card:nth-child(5) { animation-delay: 0.2s; }

@media (prefers-reduced-motion: reduce) {
  .nbbh-hero__content,
  .nbbh-line-card {
    animation: none;
  }
  .nbbh-line-card:hover,
  .nbbh-cta__btn:hover {
    transform: none;
  }
}

/* —— Responsive —— */
@media (max-width: 1100px) {
  .nbbh-lines__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .nbbh-why__inner,
  .nbbh-line-about__box,
  .nbbh-line-why__inner {
    grid-template-columns: 1fr;
  }

  .nbbh-about__card {
    padding: 20px 18px;
    border-radius: 16px;
    margin-left: 4px;
    margin-right: 4px;
  }

  .nbbh-about__body {
    font-size: 0.95rem;
    line-height: 2;
    text-align: right;
    word-spacing: 0.1em;
  }

  .nbbh-about__body img,
  .nbbh-about__body figure,
  .nbbh-about__body p:has(> img:only-child),
  .nbbh-about__body p:has(> a:only-child > img:only-child) {
    margin-bottom: 1.5em;
  }

  .nbbh-about__body h2,
  .nbbh-about__body h3 {
    margin-top: 1.35em;
  }

  .nbbh-hero__lead {
    max-width: none;
    font-size: 0.92rem;
    padding: 10px 12px;
  }

  .nbbh-faq,
  .nbbh-why,
  .nbbh-featured {
    padding-left: 8px;
    padding-right: 8px;
  }

  .nbbh-hero {
    min-height: 240px;
    padding: 22px 0 26px;
  }

  .nbbh-hero.has-scrim .nbbh-hero__scrim {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.38) 55%, rgba(255, 255, 255, 0.5) 100%);
  }

  .nbbh-hero__content {
    max-width: none;
  }

  .nbbh-lines__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .nbbh-lines {
    padding-left: 16px;
    padding-right: 16px;
  }

  .nbbh-line-card__media {
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    margin-bottom: 12px;
  }

  .nbbh-line-card__media img {
    border-radius: 12px;
  }

  .nbbh-line-card__title {
    font-size: 0.95rem;
  }

  .nbbh-line-card__desc {
    font-size: 0.8rem;
    margin-bottom: 10px;
  }

  .nbbh-line-card__link {
    padding: 14px 14px 16px;
  }

  .nbbh-line-card__cta {
    min-height: 38px;
    font-size: 0.85rem;
  }

  .nbbh-cta__inner {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 520px) {
  .nbbh-lines {
    padding-left: 14px;
    padding-right: 14px;
    padding-top: 28px;
  }

  .nbbh-lines__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .nbbh-line-card {
    border-radius: 14px;
  }

  .nbbh-line-card__link {
    padding: 12px 12px 14px;
  }

  .nbbh-about {
    padding-left: 12px;
    padding-right: 12px;
  }

  .nbbh-about__card {
    padding: 18px 16px;
  }

  .nbbh-hero,
  .nbbh-line-hero {
    padding-top: 14px;
  }

  .nbbh-hero {
    min-height: 200px;
  }
}

/* —— Brand product shop (hub) —— */
.nbbh-brand-shop {
  padding: 28px 0 12px;
}

.nbbh-shop-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.nbbh-shop-quick__link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  color: var(--nbbh-text);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.nbbh-shop-quick__link:hover,
.nbbh-shop-quick__link.is-active {
  border-color: var(--nbbh-accent);
  background: color-mix(in srgb, var(--nbbh-accent) 10%, #fff);
  color: var(--nbbh-accent);
}

.nbbh-filter-line-page {
  margin-inline-start: 6px;
  font-size: 0.8rem;
  opacity: 0.7;
  text-decoration: none;
}

.nbbh-about__body {
  overflow-wrap: break-word;
  word-break: normal;
}

/* Pagination — match shop archive (hub is not always inside .woocommerce wrapper) */
.nbbh-brand-shop .nb-shop-pager-wrap nav.woocommerce-pagination {
  margin: 20px 0 8px;
}

.nbbh-brand-shop .nb-shop-pager-wrap nav.woocommerce-pagination ul {
  border: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nbbh-brand-shop .nb-shop-pager-wrap nav.woocommerce-pagination ul li {
  border: none;
  overflow: visible;
  float: none;
  margin: 0;
  background: transparent;
  list-style: none;
}

.nbbh-brand-shop .nb-shop-pager-wrap nav.woocommerce-pagination ul li a,
.nbbh-brand-shop .nb-shop-pager-wrap nav.woocommerce-pagination ul li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: 8px 12px;
  font-weight: 700;
  font-size: 13px;
  border-radius: 12px;
  border: 1px solid var(--border, #eee3ea);
  background: var(--bg-surface, #fff);
  color: var(--text-dark, #26232a);
  line-height: 1;
  box-sizing: border-box;
  text-decoration: none;
}

.nbbh-brand-shop .nb-shop-pager-wrap nav.woocommerce-pagination ul li a:hover {
  border-color: var(--pink-500, #ec2c6f);
  color: var(--pink-600, #d9256a);
}

.nbbh-brand-shop .nb-shop-pager-wrap nav.woocommerce-pagination ul li span.current,
.nbbh-brand-shop .nb-shop-pager-wrap nav.woocommerce-pagination ul li a.current,
.nbbh-brand-shop .nb-shop-pager-wrap nav.woocommerce-pagination ul li .page-numbers.current {
  border-color: var(--pink-500, #ec2c6f);
  background: var(--pink-500, #ec2c6f);
  color: #fff;
}

@media (max-width: 768px) {
  .nbbh-brand-shop .nb-shop-pager-wrap.is-scrollable,
  .nbbh-brand-shop .nb-shop-pager-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }

  .nbbh-brand-shop .nb-shop-pager-wrap nav.woocommerce-pagination ul {
    flex-wrap: nowrap;
    justify-content: flex-start;
    width: max-content;
    min-width: 100%;
  }
}

/* —— Line FAQ (demoted headings, SEO) —— */
.nbbh-faq-title {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--nbbh-text, inherit);
  margin: 1.4em 0 0.7em;
}

.nbbh-faq-q {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--nbbh-text, inherit);
  margin: 1.1em 0 0.4em;
}

span.nb-post-faq__title {
  display: block;
}

/* Tablet (521-860): two line cards per row instead of one giant card */
@media (min-width: 521px) and (max-width: 860px) {
  .nbbh-lines__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
/* Tablet hero: keep text beside the banner image, not on top of it */
@media (min-width: 600px) and (max-width: 860px) {
  .nbbh-hero__content {
    max-width: min(36rem, 62%);
  }
}


/* —— Dark mode —— */
html[data-theme="dark"] .nb-brand-hub {
  --nbbh-text: var(--text-dark, #f2eef1);
  --nbbh-muted: var(--text-mid, #b4adb6);
  --nbbh-surface: var(--bg-elevated, #221e24);
  --nbbh-shadow: none;
}

/* Line cards keep their pastel surface, so their text stays dark. */
html[data-theme="dark"] .nb-brand-hub .nbbh-line-card {
  --nbbh-text: #2a2a2a;
  --nbbh-muted: #6b6b6b;
}

html[data-theme="dark"] .nbbh-about__body,
html[data-theme="dark"] .nbbh-free-from__label {
  color: var(--text-mid, #b4adb6);
}

html[data-theme="dark"] .nbbh-about__body h2,
html[data-theme="dark"] .nbbh-about__body h3,
html[data-theme="dark"] .nbbh-about__body h4 {
  color: var(--text-dark, #f2eef1);
}

html[data-theme="dark"] .nbbh-about__card,
html[data-theme="dark"] .nbbh-shop-quick__link,
html[data-theme="dark"] .nbbh-faq .nb-faq__item,
html[data-theme="dark"] .nbbh-free-from__icon,
html[data-theme="dark"] .nbbh-line-about__box {
  background: var(--bg-elevated, #221e24);
  border-color: var(--border, #3a343c);
}

html[data-theme="dark"] .nbbh-shop-quick__link:hover,
html[data-theme="dark"] .nbbh-shop-quick__link.is-active {
  background: color-mix(in srgb, var(--nbbh-accent) 22%, var(--bg-elevated, #221e24));
}

/* Hero without a banner image: dark surface, light text (with a banner the text sits on the image). */
html[data-theme="dark"] .nbbh-hero:not(.has-banner) .nbbh-hero__scrim {
  background: linear-gradient(180deg, #221e24 0%, #1a171b 100%);
}

html[data-theme="dark"] .nbbh-hero:not(.has-banner) .nbbh-hero__title {
  color: var(--text-dark, #f2eef1);
}

html[data-theme="dark"] .nbbh-hero:not(.has-banner) .nbbh-hero__lead {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-mid, #b4adb6);
}
