.nbl-library {
  --navy: #002147;
  --blue: #0057b8;
  --red: #d71920;
  --ink: #071b3a;
  --muted: #5c6d83;
  --line: #d7e2ef;
  --surface: #f4f7fb;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

.nbl-library * {
  box-sizing: border-box;
}

.nbl-library [hidden] {
  display: none !important;
}

.nbl-library-hero {
  padding: 10px 0 24px;
}

.nbl-library-hero .nbl-eyebrow,
.nbl-section-kicker {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.nbl-library-hero h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(34px, 5vw, 50px);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.05;
}

.nbl-library-hero .nbl-library-intro {
  width: max-content !important;
  max-width: none !important;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 17px;
  font-weight: 800 !important;
  line-height: 1.65;
  white-space: nowrap !important;
}

.nbl-recent-section {
  padding: 13px 15px 15px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(145deg, #f8fbff, #eef5fc);
  box-shadow: 0 7px 24px rgba(0, 33, 71, .09);
}

.nbl-recent-section .nbl-section-heading {
  margin-bottom: 10px;
}

.nbl-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.nbl-section-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.nbl-section-heading > p {
  margin: 0 0 2px;
  color: #68798f;
  font-size: 14px;
}

.nbl-report-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 300px));
  gap: 14px;
}

.nbl-library .nbl-recent-grid {
  grid-template-columns: repeat(3, minmax(0, 200px));
  gap: 10px;
}

.nbl-report-card {
  width: 100%;
  max-width: 300px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: inherit;
  box-shadow: 0 5px 18px rgba(0, 33, 71, .1);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

.nbl-library .nbl-recent-grid .nbl-report-card {
  max-width: 200px !important;
}

.nbl-report-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 33, 71, .16);
}

.nbl-card-cover {
  position: relative;
  display: flex;
  min-height: 64px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 9px 10px;
  background: linear-gradient(120deg, #3c4654, #68798f);
  color: #fff;
}

.nbl-card-cover::after {
  position: absolute;
  top: -38px;
  right: -32px;
  width: 68px;
  height: 68px;
  border: 11px solid rgba(255, 255, 255, .1);
  border-radius: 50%;
  content: "";
}

.nbl-card-cover[data-report-style*="concept-benchmark"] { background: linear-gradient(120deg, #002147, #0057b8); }
.nbl-card-cover[data-report-style*="consumer-pulse"] { background: linear-gradient(120deg, #064c4b, #138d85); }
.nbl-card-cover[data-report-style*="nobull-index"] { background: linear-gradient(135deg, #073c2f, #16966e); }
.nbl-card-cover[data-report-style*="industry-data"] { background: linear-gradient(135deg, #51141a, #d71920); }
.nbl-card-cover[data-report-style*="same-store"] { background: linear-gradient(135deg, #4b1d7a, #8358b3); }
.nbl-card-cover[data-report-style*="company-research"] { background: linear-gradient(120deg, #672600, #cf570e); }
.nbl-card-cover[data-report-style*="additional"] { background: linear-gradient(135deg, #4a2c00, #c68300); }
.nbl-card-cover[data-report-style*="databases"] { background: linear-gradient(135deg, #4a2c00, #c68300); }
.nbl-card-cover[data-report-style*="franchise-disclosure"] { background: linear-gradient(135deg, #3c4654, #68798f); }

.nbl-card-top {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 14px;
  justify-content: flex-end;
}

.nbl-latest {
  border-radius: 999px;
  background: #fff;
  padding: 3px 6px;
  color: var(--navy);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.nbl-card-cover > p {
  position: relative;
  z-index: 1;
  max-width: 94%;
  margin: 0;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .015em;
  line-height: 1.15;
  text-transform: uppercase;
}

.nbl-card-body {
  padding: 9px 10px 10px;
}

.nbl-card-body .nbl-date {
  margin: 0;
  color: #68798f;
  font-size: 10px;
  font-weight: 700;
}

.nbl-card-body h3 {
  min-height: 0;
  margin: 6px 0 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.35;
}

.nbl-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  padding-top: 7px;
  border-top: 1px solid #edf2f7;
}

.nbl-card-footer > span:first-child {
  max-width: 62%;
  overflow: hidden;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nbl-card-footer .nbl-card-action {
  max-width: none;
  margin-left: auto;
  color: var(--navy);
  font-weight: 800;
  white-space: nowrap;
}

.nbl-recent-grid .nbl-card-footer > span:first-child,
.nbl-recent-grid .nbl-card-footer a,
.nbl-recent-grid .nbl-card-footer .nbl-no-file {
  font-size: 10px;
}

.nbl-card-footer a,
.nbl-row-link {
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.nbl-card-footer a:hover,
.nbl-row-link:hover {
  color: var(--blue);
}

.nbl-archive-section {
  padding-top: 46px;
}

.nbl-archive-heading {
  margin-bottom: 18px;
}

.nbl-accordions {
  display: grid;
  gap: 12px;
}

.nbl-report-section {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 33, 71, .07);
}

.nbl-accordion-trigger {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0;
  padding: 20px 22px;
  border: 0;
  background: #fff;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  color-scheme: light;
}

.nbl-accordion-trigger:hover,
.nbl-accordion-trigger:focus,
.nbl-accordion-trigger:active,
.nbl-accordion-trigger[aria-expanded="true"] {
  background: #fff;
  color: var(--ink);
  filter: none;
}

.nbl-accordion-trigger:focus-visible {
  outline: 3px solid #0057b8;
  outline-offset: -3px;
}

.nbl-accordion-title {
  font-size: 19px;
  font-weight: 800;
  line-height: 1.25;
}

.nbl-accordion-meta {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 15px;
  color: #68798f;
  font-size: 13px;
  font-weight: 700;
}

.nbl-accordion-trigger:hover .nbl-accordion-meta,
.nbl-accordion-trigger[aria-expanded="true"] .nbl-accordion-meta {
  color: #68798f;
}

.nbl-chevron {
  width: 11px;
  height: 11px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-3px);
  transition: transform .18s ease;
}

.nbl-accordion-trigger[aria-expanded="true"] .nbl-chevron {
  transform: rotate(225deg) translate(-2px, -2px);
}

.nbl-accordion-panel {
  padding: 22px;
  border-top: 1px solid var(--line);
  background: #f9fbfd;
}

.nbl-series-banner {
  display: flex;
  justify-content: center;
  width: min(100%, 620px);
  margin: 0 auto 20px;
  padding: 8px 12px;
  border: 1px solid #d7e2ef;
  border-radius: 14px;
  background: #fff;
}

.nbl-series-banner img {
  display: block;
  width: min(100%, 580px);
  height: auto;
  max-height: 108px;
  object-fit: contain;
}

.nbl-series-carousel {
  display: block;
}

.nbl-carousel-viewport {
  min-width: 0;
  overflow: hidden;
}

.nbl-carousel-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 300px));
  justify-content: center;
  gap: 14px;
}

.nbl-series-card {
  display: flex;
  width: 100%;
  max-width: 300px;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid #cedceb;
  border-radius: 12px;
  background: #fff;
  color: #071b3a;
  box-shadow: 0 7px 20px rgba(0, 33, 71, .1);
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}

.nbl-library .nbl-series-card[hidden] {
  display: none !important;
}

.nbl-series-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 13px 27px rgba(0, 33, 71, .17);
}

.nbl-series-preview {
  display: flex;
  width: 100%;
  height: 118px;
  min-height: 118px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid #d7e2ef;
  background: #fff;
}

.nbl-series-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nbl-series-preview-empty {
  background: linear-gradient(135deg, #eef5fc, #e4edf7);
  color: #68798f;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
  text-align: center;
}

.nbl-series-card-copy {
  display: flex;
  min-width: 0;
  min-height: 82px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  background: #fff;
  text-align: center;
}

.nbl-series-card-copy time {
  color: rgba(255, 255, 255, .78);
  font-size: 11px;
  font-weight: 700;
}

.nbl-series-card-copy h3 {
  margin: 0 0 9px;
  color: #071b3a;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.28;
}

.nbl-series-action {
  margin-top: 0;
  color: #071b3a;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.nbl-carousel-controls {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}

.nbl-carousel-button {
  min-height: 46px;
  padding: 10px 18px;
  border: 0;
  border-radius: 9px;
  background: linear-gradient(180deg, #0057b8, #002147);
  color: #fff;
  font: 800 14px/1.2 Arial, sans-serif;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 33, 71, .2);
  transition: transform .18s ease, opacity .18s ease;
}

.nbl-carousel-prev { grid-column: 1; grid-row: 1; justify-self: start; }
.nbl-carousel-next { grid-column: 3; grid-row: 1; justify-self: end; padding-right: 24px; padding-left: 24px; }
.nbl-carousel-button:hover:not(:disabled) { transform: translateY(-2px); }
.nbl-carousel-button:disabled { visibility: hidden; }

.nbl-carousel-status {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  color: #5c6d83;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

@media (max-width: 980px) {
  .nbl-carousel-track { grid-template-columns: repeat(2, minmax(0, 300px)); }
  .nbl-series-card { max-width: 300px; }
}

@media (max-width: 640px) {
  .nbl-carousel-track { grid-template-columns: minmax(0, 1fr); }
  .nbl-series-card { max-width: 360px; margin: 0 auto; }
  .nbl-carousel-controls { grid-template-columns: 1fr 1fr; }
  .nbl-carousel-status { grid-column: 1 / -1; grid-row: 1; }
  .nbl-carousel-prev, .nbl-carousel-next { grid-row: 2; }
  .nbl-carousel-next { grid-column: 2; }
  .nbl-carousel-button { width: 100%; padding: 9px 10px; }
  .nbl-series-banner { padding: 8px; }
}

.nbl-section-tools {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 18px;
}

.nbl-section-tools label {
  display: grid;
  min-width: 190px;
  gap: 6px;
  margin: 0;
}

.nbl-section-tools label > span {
  color: #45566d;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.nbl-section-tools input,
.nbl-section-tools select {
  width: 100%;
  height: 44px;
  margin: 0;
  padding: 0 13px;
  border: 1px solid #cbd9e8;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  box-shadow: none;
}

.nbl-section-tools input:focus,
.nbl-section-tools select:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(0, 87, 184, .13);
}

.nbl-tool-search {
  flex: 1 1 340px;
}

.nbl-tool-sort {
  flex: 0 0 190px;
}

.nbl-report-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.nbl-report-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "date date" "copy copy" "concept link";
  align-content: start;
  align-items: start;
  gap: 10px 12px;
  min-height: 0;
  height: auto;
  align-self: start;
  padding: 16px;
  border: 1px solid #e0e9f2;
  border-radius: 11px;
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.nbl-report-row:hover {
  border-color: #b9cde2;
  box-shadow: 0 7px 18px rgba(0, 33, 71, .09);
  transform: translateY(-1px);
}

.nbl-row-date {
  grid-area: date;
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: #68798f;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.nbl-row-date strong {
  margin: 0;
  color: var(--navy);
  font-size: 17px;
}

.nbl-row-copy {
  grid-area: copy;
  min-width: 0;
  box-sizing: border-box;
  height: 100px;
  min-height: 100px;
  flex: 0 0 auto;
}

.nbl-row-copy h3 {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.nbl-row-copy p {
  overflow: hidden;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nbl-row-concept {
  grid-area: concept;
  align-self: end;
  overflow: hidden;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nbl-row-link,
.nbl-report-row .nbl-no-file {
  grid-area: link;
  align-self: end;
  justify-self: end;
  white-space: nowrap;
}

.nbl-report-row .nbl-no-file,
.nbl-card-footer .nbl-no-file {
  color: #7b8797;
  font-size: 13px;
  font-weight: 700;
}

.nbl-section-empty,
.nbl-empty-state {
  padding: 28px 18px;
  border: 1px dashed #b8cade;
  border-radius: 11px;
  background: #fff;
  text-align: center;
}

.nbl-section-empty {
  grid-column: 1 / -1;
}

.nbl-section-empty p,
.nbl-empty-state p {
  margin: 0;
  color: #68798f;
  font-size: 14px;
}

.nbl-login-required {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  text-align: center;
  box-shadow: 0 5px 18px rgba(0, 33, 71, .1);
}

.nbl-login-required p {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: 16px;
}

.nbl-primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--blue);
  padding: 11px 17px;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 980px) {
  .nbl-report-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .nbl-report-grid {
    grid-template-columns: repeat(2, minmax(0, 300px));
  }

  .nbl-library .nbl-recent-grid {
    grid-template-columns: repeat(2, minmax(0, 200px));
  }

  .nbl-report-row {
    grid-template-columns: 68px minmax(0, 1fr) 108px;
  }

  .nbl-row-concept {
    display: none;
  }
}

@media (max-width: 640px) {
  .nbl-report-list {
    grid-template-columns: 1fr;
  }
  .nbl-library-hero {
    padding-top: 10px;
  }

  .nbl-recent-section {
    padding: 18px;
  }

  .nbl-section-heading {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }

  .nbl-report-grid {
    grid-template-columns: 1fr;
  }

  .nbl-library .nbl-recent-grid {
    grid-template-columns: minmax(0, 200px);
  }

  .nbl-card-body h3 {
    min-height: 0;
  }

  .nbl-accordion-trigger {
    align-items: flex-start;
    padding: 17px;
  }

  .nbl-accordion-title {
    font-size: 16px;
  }

  .nbl-accordion-meta > span:first-child {
    display: none;
  }

  .nbl-accordion-panel {
    padding: 15px;
  }

  .nbl-section-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .nbl-section-tools label,
  .nbl-tool-search,
  .nbl-tool-sort {
    width: 100%;
    min-width: 0;
    flex: auto;
  }

  .nbl-report-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 14px;
    padding: 15px;
  }

  .nbl-row-date {
    grid-column: 1 / -1;
    display: flex;
    gap: 5px;
    align-items: baseline;
  }

  .nbl-row-date strong {
    margin: 0;
    font-size: 13px;
  }

  .nbl-row-copy p {
    white-space: normal;
  }
}
