.cdp-directory {
  --cdp-navy: #0b1930;
  --cdp-blue: #155eef;
  --cdp-blue-dark: #1849a9;
  --cdp-cyan: #0ba5ec;
  --cdp-ink: #17223b;
  --cdp-muted: #60708b;
  --cdp-line: #dbe4f0;
  --cdp-panel: #f6f9fc;
  --cdp-white: #fff;
  color: var(--cdp-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 2rem auto;
  max-width: 1440px;
}

.cdp-directory *,
.cdp-directory *::before,
.cdp-directory *::after {
  box-sizing: border-box;
}

.cdp-directory button,
.cdp-directory input,
.cdp-directory select {
  font: inherit;
}

.cdp-hero {
  align-items: center;
  background:
    radial-gradient(circle at 85% 15%, rgba(11, 165, 236, .25), transparent 27%),
    linear-gradient(135deg, #0b1930 0%, #15386f 56%, #155eef 130%);
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(11, 25, 48, .18);
  color: var(--cdp-white);
  display: flex;
  justify-content: space-between;
  min-height: 220px;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 4rem);
  position: relative;
}

.cdp-hero::after {
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
  content: "";
  height: 260px;
  position: absolute;
  right: -80px;
  top: -95px;
  width: 260px;
}

.cdp-hero h2 {
  color: var(--cdp-white);
  font-size: clamp(2rem, 5vw, 3.6rem);
  letter-spacing: -.04em;
  line-height: 1.05;
  margin: .25rem 0 .8rem;
}

.cdp-hero p:not(.cdp-eyebrow) {
  color: #dce9ff;
  font-size: 1.05rem;
  margin: 0;
}

.cdp-eyebrow {
  color: #6ed1ff;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .15em;
  margin: 0;
  text-transform: uppercase;
}

.cdp-hero-stat {
  align-items: center;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  min-width: 150px;
  padding: 1.25rem 1.5rem;
  position: relative;
  text-align: center;
  z-index: 1;
}

.cdp-hero-stat strong {
  color: var(--cdp-white);
  font-size: 2rem;
  line-height: 1.1;
}

.cdp-hero-stat span {
  color: #dce9ff;
  font-size: .82rem;
  margin-top: .25rem;
}

.cdp-featured {
  margin: 2.5rem 0;
}

.cdp-featured[hidden] {
  display: none !important;
}

.cdp-section-heading h3 {
  color: var(--cdp-navy);
  font-size: 1.6rem;
  margin: .15rem 0 1rem;
}

.cdp-featured-grid,
.cdp-grid {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cdp-featured-card {
  border-color: #b9d6ff !important;
  box-shadow: 0 10px 30px rgba(21, 94, 239, .1) !important;
}

.cdp-featured-card::before {
  background: linear-gradient(90deg, var(--cdp-blue), var(--cdp-cyan));
}

.cdp-az {
  align-items: center;
  background: var(--cdp-white);
  border: 1px solid var(--cdp-line);
  border-radius: 16px;
  display: grid;
  gap: .25rem;
  grid-template-columns: minmax(48px, 1.35fr) repeat(26, minmax(24px, 1fr));
  margin: 2.5rem 0 1.5rem;
  padding: .7rem;
}

.cdp-letter {
  background: transparent;
  border: 0;
  border-radius: 9px;
  color: #465774;
  cursor: pointer;
  font-size: .82rem;
  font-weight: 750;
  height: 34px;
  min-width: 0;
  padding: 0 .2rem;
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
  width: 100%;
}

.cdp-letter:hover:not(:disabled) {
  background: #eaf2ff;
  color: var(--cdp-blue-dark);
  transform: translateY(-1px);
}

.cdp-letter.is-active {
  background: linear-gradient(135deg, var(--cdp-blue), var(--cdp-blue-dark));
  box-shadow: 0 5px 12px rgba(21, 94, 239, .22);
  color: var(--cdp-white);
}

.cdp-letter:disabled {
  color: #b7c1ce;
  cursor: not-allowed;
}

.cdp-layout {
  align-items: start;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(230px, 275px) minmax(0, 1fr);
}

.cdp-filters {
  background: linear-gradient(180deg, #f8fbff, #f3f7fb);
  border: 1px solid var(--cdp-line);
  border-radius: 18px;
  padding: 1.25rem;
  position: sticky;
  top: 2rem;
}

.cdp-filter-heading {
  align-items: center;
  border-bottom: 1px solid var(--cdp-line);
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.2rem;
  padding-bottom: .9rem;
}

.cdp-filter-heading h3 {
  color: var(--cdp-navy);
  font-size: 1.05rem;
  margin: 0;
}

.cdp-reset {
  background: transparent;
  border: 0;
  color: var(--cdp-blue-dark);
  cursor: pointer;
  font-size: .8rem;
  font-weight: 700;
  padding: .25rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cdp-field {
  border: 0;
  display: block;
  margin: 0 0 1.2rem;
  min-width: 0;
  padding: 0;
}

.cdp-field > span:first-child,
.cdp-field legend {
  color: #34435e;
  display: block;
  font-size: .78rem;
  font-weight: 750;
  margin-bottom: .45rem;
}

.cdp-search-wrap {
  display: block;
  max-width: 22rem;
  position: relative;
  width: 100%;
}

.cdp-search-wrap svg {
  color: #71809a;
  height: 18px;
  left: .8rem;
  pointer-events: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
}

.cdp-search,
.cdp-ticker-search,
.cdp-market {
  appearance: none;
  background: var(--cdp-white);
  border: 1px solid #cbd7e6;
  border-radius: 10px;
  color: var(--cdp-ink);
  min-height: 44px;
  outline: none;
  padding: .65rem .75rem;
  transition: border-color .18s ease, box-shadow .18s ease;
  width: 100%;
}

.cdp-directory .cdp-search,
.cdp-directory .cdp-ticker-search {
  box-sizing: border-box !important;
  display: block;
  font-size: .875rem;
  height: 44px !important;
  line-height: 1.25;
  margin: 0;
  max-height: 44px !important;
  min-height: 44px !important;
  padding-left: 2.45rem;
  width: 100% !important;
}

.cdp-market {
  background-image: linear-gradient(45deg, transparent 50%, #60708b 50%), linear-gradient(135deg, #60708b 50%, transparent 50%);
  background-position: calc(100% - 17px) 19px, calc(100% - 12px) 19px;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
  max-width: 22rem;
  padding-right: 2rem;
}

.cdp-market-tabs {
  display: grid;
  gap: .45rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cdp-market-tab {
  background: var(--cdp-white);
  border: 1px solid var(--cdp-line);
  border-radius: 9px;
  color: var(--cdp-ink);
  cursor: pointer;
  font-size: .78rem;
  font-weight: 750;
  line-height: 1.2;
  min-height: 42px;
  padding: .55rem .45rem;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.cdp-market-tab:hover {
  border-color: var(--cdp-blue);
  color: var(--cdp-blue-dark);
  transform: translateY(-1px);
}

.cdp-market-tab.is-active {
  background: linear-gradient(135deg, var(--cdp-blue), var(--cdp-blue-dark));
  border-color: var(--cdp-blue-dark);
  box-shadow: 0 5px 12px rgba(21, 94, 239, .18);
  color: #fff;
}

.cdp-market-tab:focus-visible {
  border-color: var(--cdp-blue);
  box-shadow: 0 0 0 3px rgba(21, 94, 239, .16);
  outline: none;
}

.cdp-search:focus,
.cdp-ticker-search:focus,
.cdp-market:focus,
.cdp-sector-picker:focus-within {
  border-color: var(--cdp-blue);
  box-shadow: 0 0 0 3px rgba(21, 94, 239, .12);
}

.cdp-sector-picker {
  background: var(--cdp-white);
  border: 1px solid #cbd7e6;
  border-radius: 10px;
}

.cdp-sector-picker summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  list-style: none;
  min-height: 44px;
  padding: .65rem .75rem;
}

.cdp-sector-picker summary::-webkit-details-marker {
  display: none;
}

.cdp-sector-picker summary svg {
  flex: 0 0 auto;
  height: 18px;
  transition: transform .18s ease;
  width: 18px;
}

.cdp-sector-picker[open] summary svg {
  transform: rotate(180deg);
}

.cdp-sector-options {
  border-top: 1px solid var(--cdp-line);
  max-height: 260px;
  overflow: auto;
  padding: .45rem;
}

.cdp-sector-options label {
  align-items: flex-start;
  border-radius: 7px;
  cursor: pointer;
  display: flex;
  font-size: .8rem;
  gap: .55rem;
  line-height: 1.35;
  padding: .45rem;
}

.cdp-sector-options label:hover {
  background: #edf4ff;
}

.cdp-sector-options input {
  accent-color: var(--cdp-blue);
  flex: 0 0 auto;
  margin: .12rem 0 0;
}

.cdp-results {
  min-width: 0;
}

.cdp-results-bar {
  align-items: center;
  background: var(--cdp-white);
  border: 1px solid var(--cdp-line);
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  min-height: 30px;
  padding: .75rem 1rem;
  scroll-margin-top: 2rem;
}

.cdp-result-count {
  color: var(--cdp-navy);
  font-size: .9rem;
  font-weight: 750;
  margin: 0;
}

.cdp-page-status {
  color: var(--cdp-muted);
  font-size: .8rem;
  margin: 0;
}

.cdp-card {
  background: var(--cdp-white);
  border: 1px solid var(--cdp-line);
  border-radius: 16px;
  box-shadow: 0 5px 18px rgba(38, 55, 82, .06);
  display: flex;
  flex-direction: column;
  min-height: 225px;
  overflow: hidden;
  padding: 1.2rem;
  position: relative;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.cdp-card::before {
  background: linear-gradient(90deg, #c9d7e8, #e3ebf4);
  content: "";
  height: 3px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.cdp-card:hover {
  border-color: #afc8ed;
  box-shadow: 0 16px 35px rgba(21, 51, 91, .13);
  transform: translateY(-4px);
}

.cdp-card[hidden] {
  display: none !important;
}

.cdp-card-topline {
  align-items: center;
  display: flex;
  gap: .6rem;
  justify-content: space-between;
}

.cdp-market-badge {
  border-radius: 999px;
  display: inline-flex;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .04em;
  padding: .32rem .6rem;
  text-transform: uppercase;
}

.cdp-market-main {
  background: #eaf2ff;
  color: #1849a9;
}

.cdp-market-aim {
  background: #e8f8f3;
  color: #08795d;
}

.cdp-market-aqse {
  background: #f3edff;
  color: #6941c6;
}

.cdp-ticker {
  color: #50617e;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: .76rem;
  font-weight: 750;
}

.cdp-card-body {
  flex: 1;
  padding: 1.25rem 0 1rem;
}

.cdp-card-body h3 {
  color: var(--cdp-navy);
  font-size: 1.05rem;
  letter-spacing: -.015em;
  line-height: 1.35;
  margin: 0 0 .55rem;
}

.cdp-sector-name {
  color: var(--cdp-muted);
  font-size: .8rem;
  line-height: 1.45;
  margin: 0;
}

.cdp-company-link {
  align-items: center;
  border-top: 1px solid #e8eef5;
  color: var(--cdp-blue-dark);
  display: flex;
  font-size: .76rem;
  font-weight: 750;
  gap: .35rem;
  justify-content: space-between;
  margin-top: auto;
  padding-top: .85rem;
  text-decoration: none;
}

.cdp-company-link:hover {
  color: var(--cdp-blue);
}

.cdp-company-link svg {
  flex: 0 0 auto;
  height: 18px;
  width: 18px;
}

.cdp-company-link.is-muted {
  color: #8b98aa;
  font-weight: 500;
}

.cdp-empty {
  background: var(--cdp-panel);
  border: 1px dashed #bdcadb;
  border-radius: 18px;
  padding: 4rem 1.5rem;
  text-align: center;
}

.cdp-empty[hidden],
.cdp-grid[hidden],
.cdp-pagination[hidden] {
  display: none !important;
}

.cdp-empty > span {
  align-items: center;
  background: #e8eef6;
  border-radius: 50%;
  color: #6c7c93;
  display: inline-flex;
  font-size: 1.25rem;
  font-weight: 800;
  height: 58px;
  justify-content: center;
  width: 58px;
}

.cdp-empty h3 {
  color: var(--cdp-navy);
  margin: 1rem 0 .35rem;
}

.cdp-empty p {
  color: var(--cdp-muted);
  margin: 0 0 1rem;
}

.cdp-reset-primary {
  background: var(--cdp-blue);
  border-radius: 9px;
  color: var(--cdp-white);
  padding: .65rem 1rem;
  text-decoration: none;
}

.cdp-pagination {
  align-items: center;
  display: flex;
  gap: .6rem;
  justify-content: center;
  margin-top: 2rem;
}

.cdp-branding {
  color: var(--cdp-muted);
  font-size: .8rem;
  line-height: 1.5;
  margin-top: 1rem;
  text-align: center;
}

.cdp-branding a {
  color: var(--cdp-blue-dark);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.cdp-branding a:hover,
.cdp-branding a:focus-visible {
  color: var(--cdp-blue);
}

.cdp-page-numbers {
  align-items: center;
  color: var(--cdp-muted);
  display: flex;
  gap: .35rem;
}

.cdp-page-button,
.cdp-page-number {
  background: var(--cdp-white);
  border: 1px solid var(--cdp-line);
  border-radius: 9px;
  color: #3d4d68;
  cursor: pointer;
  font-size: .78rem;
  font-weight: 700;
  min-height: 38px;
  padding: .5rem .75rem;
}

.cdp-page-number {
  min-width: 38px;
  padding: .5rem;
}

.cdp-page-number.is-current {
  background: var(--cdp-navy);
  border-color: var(--cdp-navy);
  color: var(--cdp-white);
}

.cdp-page-button:hover:not(:disabled),
.cdp-page-number:hover:not(.is-current) {
  border-color: var(--cdp-blue);
  color: var(--cdp-blue-dark);
}

.cdp-page-button:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.cdp-directory :focus-visible {
  outline: 3px solid rgba(11, 165, 236, .48);
  outline-offset: 2px;
}

.cdp-notice {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 10px;
  color: #9a3412;
  padding: 1rem;
}

/* Theme-specific rules. Shared layout and accessibility behaviour stay above. */
.cdp-directory.cdp-theme-professional {
  --cdp-theme-surface: #fff;
  --cdp-theme-text: #17223b;
}

.cdp-directory.cdp-theme-dark {
  --cdp-ink: #f9fafb;
  --cdp-muted: #cbd5e1;
  --cdp-line: #475569;
  --cdp-panel: #111827;
  --cdp-white: #1f2937;
  color: #f9fafb;
}

.cdp-directory.cdp-theme-dark .cdp-hero {
  background: linear-gradient(135deg, #020617, #172554);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .38);
}

.cdp-directory.cdp-theme-dark .cdp-az,
.cdp-directory.cdp-theme-dark .cdp-filters,
.cdp-directory.cdp-theme-dark .cdp-card,
.cdp-directory.cdp-theme-dark .cdp-empty {
  background: #1f2937;
  border-color: #475569;
}

.cdp-directory.cdp-theme-dark .cdp-filters {
  background: linear-gradient(180deg, #1f2937, #111827);
}

.cdp-directory.cdp-theme-dark .cdp-filter-heading h3,
.cdp-directory.cdp-theme-dark .cdp-field > span:first-child,
.cdp-directory.cdp-theme-dark .cdp-field legend,
.cdp-directory.cdp-theme-dark .cdp-result-count,
.cdp-directory.cdp-theme-dark .cdp-card-body h3,
.cdp-directory.cdp-theme-dark .cdp-empty h3,
.cdp-directory.cdp-theme-dark .cdp-section-heading h3 {
  color: #f9fafb;
}

.cdp-directory.cdp-theme-dark .cdp-search,
.cdp-directory.cdp-theme-dark .cdp-market,
.cdp-directory.cdp-theme-dark .cdp-sector-picker,
.cdp-directory.cdp-theme-dark .cdp-page-button,
.cdp-directory.cdp-theme-dark .cdp-page-number {
  background-color: #111827;
  border-color: #64748b;
  color: #f9fafb;
}

.cdp-directory.cdp-theme-dark .cdp-letter,
.cdp-directory.cdp-theme-dark .cdp-page-status,
.cdp-directory.cdp-theme-dark .cdp-sector-name,
.cdp-directory.cdp-theme-dark .cdp-ticker,
.cdp-directory.cdp-theme-dark .cdp-empty p {
  color: #cbd5e1;
}

.cdp-directory.cdp-theme-dark .cdp-company-link,
.cdp-directory.cdp-theme-dark .cdp-reset,
.cdp-directory.cdp-theme-dark .cdp-branding a {
  color: #93c5fd;
}

.cdp-directory.cdp-theme-dark .cdp-company-link,
.cdp-directory.cdp-theme-dark .cdp-sector-options {
  border-color: #475569;
}

.cdp-directory.cdp-theme-dark .cdp-sector-options label:hover,
.cdp-directory.cdp-theme-dark .cdp-letter:hover:not(:disabled) {
  background: #334155;
  color: #f9fafb;
}

.cdp-directory.cdp-theme-minimal .cdp-hero {
  background: #fff;
  border-bottom: 2px solid #111827;
  border-radius: 0;
  box-shadow: none;
  color: #111827;
  min-height: 170px;
  padding-inline: 0;
}

.cdp-directory.cdp-theme-minimal .cdp-hero::after {
  display: none;
}

.cdp-directory.cdp-theme-minimal .cdp-hero h2,
.cdp-directory.cdp-theme-minimal .cdp-hero p:not(.cdp-eyebrow),
.cdp-directory.cdp-theme-minimal .cdp-hero-stat strong,
.cdp-directory.cdp-theme-minimal .cdp-hero-stat span {
  color: #1f2937;
}

.cdp-directory.cdp-theme-minimal .cdp-eyebrow {
  color: #1d4ed8;
}

.cdp-directory.cdp-theme-minimal .cdp-hero-stat {
  background: transparent;
  border-color: #d1d5db;
}

.cdp-directory.cdp-theme-minimal .cdp-az,
.cdp-directory.cdp-theme-minimal .cdp-filters,
.cdp-directory.cdp-theme-minimal .cdp-card,
.cdp-directory.cdp-theme-minimal .cdp-empty {
  background: #fff;
  border-color: transparent;
  border-radius: 0;
  box-shadow: none;
}

.cdp-directory.cdp-theme-minimal .cdp-filters {
  border-right: 1px solid #e5e7eb;
  padding-left: 0;
}

.cdp-directory.cdp-theme-minimal .cdp-card {
  border-bottom: 1px solid #e5e7eb;
  padding-inline: .5rem;
}

.cdp-directory.cdp-theme-minimal .cdp-card::before {
  display: none;
}

.cdp-directory.cdp-theme-minimal .cdp-card:hover {
  background: #f9fafb;
  border-color: transparent transparent #d1d5db;
  box-shadow: none;
  transform: none;
}

.cdp-directory.cdp-theme-financial {
  --cdp-blue: #166534;
  --cdp-blue-dark: #14532d;
  --cdp-cyan: #0f766e;
  --cdp-line: #cbd5d0;
  --cdp-panel: #f3f6f4;
}

.cdp-directory.cdp-theme-financial .cdp-hero {
  background: #12372a;
  border-radius: 6px;
  box-shadow: none;
  min-height: 140px;
  padding: 1.5rem 2rem;
}

.cdp-directory.cdp-theme-financial .cdp-hero h2 {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
}

.cdp-directory.cdp-theme-financial .cdp-eyebrow {
  color: #a7f3d0;
}

.cdp-directory.cdp-theme-financial .cdp-az,
.cdp-directory.cdp-theme-financial .cdp-filters,
.cdp-directory.cdp-theme-financial .cdp-card {
  border-radius: 6px;
  box-shadow: none;
}

.cdp-directory.cdp-theme-financial .cdp-filters {
  background: #f3f6f4;
}

.cdp-directory.cdp-theme-financial .cdp-grid {
  gap: .35rem;
  grid-template-columns: 1fr;
}

.cdp-directory.cdp-theme-financial .cdp-card {
  align-items: center;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(150px, .7fr) minmax(240px, 1.5fr) minmax(170px, .7fr);
  min-height: 0;
  padding: .7rem 1rem;
}

.cdp-directory.cdp-theme-financial .cdp-card::before {
  bottom: 0;
  height: auto;
  right: auto;
  width: 4px;
}

.cdp-directory.cdp-theme-financial .cdp-card:hover {
  background: #f8faf9;
  box-shadow: none;
  transform: none;
}

.cdp-directory.cdp-theme-financial .cdp-card-body {
  padding: 0;
}

.cdp-directory.cdp-theme-financial .cdp-card-body h3 {
  font-size: .95rem;
  margin-bottom: .2rem;
}

.cdp-directory.cdp-theme-financial .cdp-company-link {
  border: 0;
  margin: 0;
  padding: .45rem 0;
}

.cdp-directory.cdp-theme-financial .cdp-ticker {
  border-radius: 4px;
  padding: .25rem .45rem;
}

.cdp-directory.cdp-theme-financial .cdp-market-main + .cdp-ticker {
  background: #dbeafe;
  color: #1e3a8a;
}

.cdp-directory.cdp-theme-financial .cdp-market-aim + .cdp-ticker {
  background: #d1fae5;
  color: #065f46;
}

.cdp-directory.cdp-theme-financial .cdp-market-aqse + .cdp-ticker {
  background: #ede9fe;
  color: #5b21b6;
}

.cdp-directory.cdp-theme-corporate {
  --cdp-navy: #102a43;
  --cdp-blue: #1d5fa7;
  --cdp-blue-dark: #164b85;
  --cdp-cyan: #2b8fcb;
  --cdp-ink: #14273d;
  --cdp-muted: #4d6178;
  --cdp-line: #c4d0dc;
  --cdp-panel: #eef3f8;
}

.cdp-directory.cdp-theme-corporate .cdp-hero {
  background: linear-gradient(120deg, #102a43 0%, #183f66 62%, #1d5fa7 130%);
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(16, 42, 67, .22);
}

.cdp-directory.cdp-theme-corporate .cdp-eyebrow {
  color: #8dd8ff;
}

.cdp-directory.cdp-theme-corporate .cdp-filters,
.cdp-directory.cdp-theme-corporate .cdp-results-bar {
  background: #eef3f8;
}

.cdp-directory.cdp-theme-corporate .cdp-card {
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(16, 42, 67, .08);
}

.cdp-directory.cdp-theme-corporate .cdp-card::before {
  background: #1d5fa7;
}

.cdp-directory.cdp-theme-azure {
  --cdp-navy: #0b3558;
  --cdp-blue: #0075ad;
  --cdp-blue-dark: #005ea8;
  --cdp-cyan: #19a6dc;
  --cdp-ink: #0b3558;
  --cdp-muted: #496a84;
  --cdp-line: #b9ddf2;
  --cdp-panel: #eef9ff;
}

.cdp-directory.cdp-theme-azure .cdp-hero {
  background: linear-gradient(135deg, #e8f6ff, #ccecff);
  border: 1px solid #a6d8f2;
  box-shadow: 0 16px 42px rgba(0, 94, 168, .12);
  color: #0b3558;
}

.cdp-directory.cdp-theme-azure .cdp-hero h2,
.cdp-directory.cdp-theme-azure .cdp-hero p:not(.cdp-eyebrow),
.cdp-directory.cdp-theme-azure .cdp-hero-stat strong,
.cdp-directory.cdp-theme-azure .cdp-hero-stat span {
  color: #0b3558;
}

.cdp-directory.cdp-theme-azure .cdp-eyebrow {
  color: #005ea8;
}

.cdp-directory.cdp-theme-azure .cdp-hero-stat {
  background: rgba(255, 255, 255, .72);
  border-color: #82c6ea;
}

.cdp-directory.cdp-theme-azure .cdp-az,
.cdp-directory.cdp-theme-azure .cdp-filters,
.cdp-directory.cdp-theme-azure .cdp-results-bar {
  background: #eef9ff;
}

.cdp-directory.cdp-theme-azure .cdp-card {
  box-shadow: 0 8px 24px rgba(8, 127, 194, .08);
}

.cdp-directory.cdp-theme-azure .cdp-card::before {
  background: linear-gradient(90deg, #19a6dc, #75d5f5);
}

.cdp-directory.cdp-theme-midnight {
  --cdp-navy: #f4f9ff;
  --cdp-blue: #2389cf;
  --cdp-blue-dark: #8ecbff;
  --cdp-cyan: #32b7ee;
  --cdp-ink: #f4f9ff;
  --cdp-muted: #b8cee5;
  --cdp-line: #2a4f75;
  --cdp-panel: #071426;
  --cdp-white: #0b1f3a;
  color: #f4f9ff;
}

.cdp-directory.cdp-theme-midnight .cdp-hero {
  background: radial-gradient(circle at 82% 20%, rgba(50, 183, 238, .24), transparent 28%), linear-gradient(135deg, #020814, #073768);
  border: 1px solid #245b89;
  box-shadow: 0 22px 52px rgba(2, 8, 20, .48);
}

.cdp-directory.cdp-theme-midnight .cdp-hero h2,
.cdp-directory.cdp-theme-midnight .cdp-hero p:not(.cdp-eyebrow),
.cdp-directory.cdp-theme-midnight .cdp-hero-stat strong,
.cdp-directory.cdp-theme-midnight .cdp-hero-stat span {
  color: #f4f9ff;
}

.cdp-directory.cdp-theme-midnight .cdp-eyebrow {
  color: #75c8ff;
}

.cdp-directory.cdp-theme-midnight .cdp-az,
.cdp-directory.cdp-theme-midnight .cdp-filters,
.cdp-directory.cdp-theme-midnight .cdp-results-bar,
.cdp-directory.cdp-theme-midnight .cdp-card,
.cdp-directory.cdp-theme-midnight .cdp-empty {
  background: #0b1f3a;
  border-color: #2a4f75;
}

.cdp-directory.cdp-theme-midnight .cdp-filters {
  background: linear-gradient(180deg, #0d2746, #071426);
}

.cdp-directory.cdp-theme-midnight .cdp-search,
.cdp-directory.cdp-theme-midnight .cdp-market,
.cdp-directory.cdp-theme-midnight .cdp-sector-picker,
.cdp-directory.cdp-theme-midnight .cdp-page-button,
.cdp-directory.cdp-theme-midnight .cdp-page-number {
  background-color: #071426;
  border-color: #3a6288;
  color: #f4f9ff;
}

.cdp-directory.cdp-theme-midnight .cdp-company-link,
.cdp-directory.cdp-theme-midnight .cdp-sector-options {
  border-color: #2a4f75;
}

.cdp-directory.cdp-theme-midnight .cdp-company-link,
.cdp-directory.cdp-theme-midnight .cdp-reset,
.cdp-directory.cdp-theme-midnight .cdp-branding a {
  color: #8ecbff;
}

.cdp-directory.cdp-theme-midnight .cdp-ticker,
.cdp-directory.cdp-theme-midnight .cdp-page-status,
.cdp-directory.cdp-theme-midnight .cdp-sector-name,
.cdp-directory.cdp-theme-midnight .cdp-empty p,
.cdp-directory.cdp-theme-midnight .cdp-letter {
  color: #b8cee5;
}

.cdp-directory.cdp-theme-midnight .cdp-letter.is-active,
.cdp-directory.cdp-theme-midnight .cdp-reset-primary,
.cdp-directory.cdp-theme-midnight .cdp-market-tab.is-active {
  background: linear-gradient(135deg, #75c8ff, #32b7ee);
  color: #061426;
}

.cdp-directory.cdp-theme-midnight .cdp-sector-options label:hover,
.cdp-directory.cdp-theme-midnight .cdp-letter:hover:not(:disabled) {
  background: #143657;
  color: #f4f9ff;
}

.cdp-directory.cdp-theme-midnight .cdp-empty > span {
  background: #143657;
  color: #dcecff;
}

.cdp-directory.cdp-theme-heritage {
  --cdp-navy: #4a1722;
  --cdp-blue: #8a2d3f;
  --cdp-blue-dark: #6d2030;
  --cdp-cyan: #c06b3e;
  --cdp-ink: #2d211f;
  --cdp-muted: #6b514b;
  --cdp-line: #dccdc1;
  --cdp-panel: #f7efe5;
  --cdp-white: #fffaf2;
}

.cdp-directory.cdp-theme-heritage .cdp-hero {
  background: linear-gradient(135deg, #4a1722, #76283a 70%, #9a4936);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(74, 23, 34, .2);
}

.cdp-directory.cdp-theme-heritage .cdp-hero h2,
.cdp-directory.cdp-theme-heritage .cdp-hero p:not(.cdp-eyebrow),
.cdp-directory.cdp-theme-heritage .cdp-hero-stat strong,
.cdp-directory.cdp-theme-heritage .cdp-hero-stat span {
  color: #fff8eb;
}

.cdp-directory.cdp-theme-heritage .cdp-eyebrow {
  color: #ffd79a;
}

.cdp-directory.cdp-theme-heritage .cdp-az,
.cdp-directory.cdp-theme-heritage .cdp-card,
.cdp-directory.cdp-theme-heritage .cdp-results-bar,
.cdp-directory.cdp-theme-heritage .cdp-empty {
  background: #fffaf2;
}

.cdp-directory.cdp-theme-heritage .cdp-filters {
  background: linear-gradient(180deg, #fffaf2, #f7efe5);
}

.cdp-directory.cdp-theme-heritage .cdp-card {
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(74, 23, 34, .07);
}

.cdp-directory.cdp-theme-heritage .cdp-card::before {
  background: linear-gradient(90deg, #8a2d3f, #c06b3e);
}

.cdp-directory.cdp-theme-heritage .cdp-company-link,
.cdp-directory.cdp-theme-heritage .cdp-sector-options {
  border-color: #dccdc1;
}

/* Ten additional reusable designs shared with SME Company Directory Pro. */
.cdp-directory.cdp-theme-emerald {
  --cdp-navy: #12372a;
  --cdp-blue: #16815f;
  --cdp-blue-dark: #0d6248;
  --cdp-cyan: #48b991;
  --cdp-ink: #173b30;
  --cdp-muted: #55766b;
  --cdp-line: #c6dfd5;
  --cdp-panel: #eef8f4;
}

.cdp-directory.cdp-theme-emerald .cdp-hero {
  background: radial-gradient(circle at 85% 10%, rgba(120, 226, 184, .3), transparent 28%), linear-gradient(135deg, #0d4b38, #16815f);
  border-radius: 28px 8px 28px 8px;
}

.cdp-directory.cdp-theme-emerald .cdp-card {
  border-radius: 24px 8px 24px 8px;
}

.cdp-directory.cdp-theme-sunset {
  --cdp-navy: #5c2318;
  --cdp-blue: #e05237;
  --cdp-blue-dark: #b83c27;
  --cdp-cyan: #f59e62;
  --cdp-ink: #45251f;
  --cdp-muted: #7d5a52;
  --cdp-line: #f0cfc4;
  --cdp-panel: #fff5ef;
  --cdp-white: #fffcfa;
}

.cdp-directory.cdp-theme-sunset .cdp-hero {
  background: linear-gradient(120deg, #a92d32, #e05237 58%, #f59e62);
  border-radius: 30px;
}

.cdp-directory.cdp-theme-sunset .cdp-card::before {
  background: linear-gradient(90deg, #e05237, #f59e62);
  height: 6px;
}

.cdp-directory.cdp-theme-plum {
  --cdp-navy: #3f174f;
  --cdp-blue: #8b3fa2;
  --cdp-blue-dark: #6d2f80;
  --cdp-cyan: #c46fcf;
  --cdp-ink: #40264a;
  --cdp-muted: #765f7e;
  --cdp-line: #decde4;
  --cdp-panel: #faf3fc;
}

.cdp-directory.cdp-theme-plum .cdp-hero {
  background: radial-gradient(circle at 78% 28%, rgba(231, 182, 239, .26), transparent 26%), linear-gradient(145deg, #32123f, #7d318f);
  box-shadow: 0 24px 55px rgba(63, 23, 79, .22);
}

.cdp-directory.cdp-theme-plum .cdp-card {
  box-shadow: 0 10px 26px rgba(63, 23, 79, .08);
}

.cdp-directory.cdp-theme-slate {
  --cdp-navy: #1e293b;
  --cdp-blue: #475569;
  --cdp-blue-dark: #334155;
  --cdp-cyan: #64748b;
  --cdp-ink: #1e293b;
  --cdp-muted: #64748b;
  --cdp-line: #cbd5e1;
  --cdp-panel: #f1f5f9;
}

.cdp-directory.cdp-theme-slate .cdp-hero,
.cdp-directory.cdp-theme-slate .cdp-card,
.cdp-directory.cdp-theme-slate .cdp-filters,
.cdp-directory.cdp-theme-slate .cdp-az {
  border-radius: 4px;
  box-shadow: none;
}

.cdp-directory.cdp-theme-slate .cdp-hero {
  background: linear-gradient(135deg, #1e293b, #475569);
}

.cdp-directory.cdp-theme-rose {
  --cdp-navy: #64263c;
  --cdp-blue: #c34972;
  --cdp-blue-dark: #9e3458;
  --cdp-cyan: #e984a6;
  --cdp-ink: #512b38;
  --cdp-muted: #80616c;
  --cdp-line: #efd1dc;
  --cdp-panel: #fff4f7;
  --cdp-white: #fffafb;
}

.cdp-directory.cdp-theme-rose .cdp-hero {
  background: linear-gradient(135deg, #7d2949, #c34972);
  border-radius: 18px 60px 18px 60px;
}

.cdp-directory.cdp-theme-rose .cdp-card {
  border-radius: 18px;
}

.cdp-directory.cdp-theme-forest {
  --cdp-navy: #183429;
  --cdp-blue: #397254;
  --cdp-blue-dark: #28573f;
  --cdp-cyan: #79a96f;
  --cdp-ink: #213b31;
  --cdp-muted: #60766d;
  --cdp-line: #cedbcf;
  --cdp-panel: #f0f5ef;
  --cdp-white: #fbfdf9;
}

.cdp-directory.cdp-theme-forest .cdp-hero {
  background: radial-gradient(circle at 90% 0, rgba(151, 190, 120, .28), transparent 33%), linear-gradient(135deg, #183429, #397254);
  border-bottom-left-radius: 50px;
  border-top-right-radius: 50px;
}

.cdp-directory.cdp-theme-forest .cdp-card::before {
  background: linear-gradient(90deg, #397254, #90b978);
}

.cdp-directory.cdp-theme-ocean {
  --cdp-navy: #073b4c;
  --cdp-blue: #0788a8;
  --cdp-blue-dark: #056982;
  --cdp-cyan: #20b7c9;
  --cdp-ink: #0d3d49;
  --cdp-muted: #527781;
  --cdp-line: #bfe0e5;
  --cdp-panel: #edfafa;
}

.cdp-directory.cdp-theme-ocean .cdp-hero {
  background: radial-gradient(circle at 85% 12%, rgba(99, 224, 225, .3), transparent 30%), linear-gradient(140deg, #06394b, #0788a8);
  border-radius: 12px 12px 52px 12px;
}

.cdp-directory.cdp-theme-ocean .cdp-card {
  box-shadow: 0 10px 28px rgba(7, 105, 130, .09);
}

.cdp-directory.cdp-theme-sand {
  --cdp-navy: #4c3822;
  --cdp-blue: #a36f32;
  --cdp-blue-dark: #7e5225;
  --cdp-cyan: #d0a45f;
  --cdp-ink: #433527;
  --cdp-muted: #756655;
  --cdp-line: #e2d5c3;
  --cdp-panel: #f8f1e7;
  --cdp-white: #fffcf6;
}

.cdp-directory.cdp-theme-sand .cdp-hero {
  background: linear-gradient(135deg, #5a4227, #9a6b36);
  border-radius: 6px 46px 6px 46px;
}

.cdp-directory.cdp-theme-sand .cdp-card,
.cdp-directory.cdp-theme-sand .cdp-filters {
  border-radius: 6px;
  box-shadow: 0 8px 22px rgba(76, 56, 34, .07);
}

.cdp-directory.cdp-theme-monochrome {
  --cdp-navy: #111;
  --cdp-blue: #222;
  --cdp-blue-dark: #000;
  --cdp-cyan: #666;
  --cdp-ink: #171717;
  --cdp-muted: #606060;
  --cdp-line: #cfcfcf;
  --cdp-panel: #f4f4f4;
}

.cdp-directory.cdp-theme-monochrome .cdp-hero {
  background: #111;
  border-radius: 0;
  box-shadow: 8px 8px 0 #d4d4d4;
}

.cdp-directory.cdp-theme-monochrome .cdp-card,
.cdp-directory.cdp-theme-monochrome .cdp-filters,
.cdp-directory.cdp-theme-monochrome .cdp-az {
  border-radius: 0;
  box-shadow: none;
}

.cdp-directory.cdp-theme-vibrant {
  --cdp-navy: #2c1458;
  --cdp-blue: #6c3cff;
  --cdp-blue-dark: #5126ce;
  --cdp-cyan: #00b8d9;
  --cdp-ink: #2c1458;
  --cdp-muted: #6d6089;
  --cdp-line: #d9d0f3;
  --cdp-panel: #f6f2ff;
}

.cdp-directory.cdp-theme-vibrant .cdp-hero {
  background: radial-gradient(circle at 82% 20%, rgba(0, 224, 198, .34), transparent 25%), linear-gradient(130deg, #471ca6, #7a3fff 62%, #00a9ce);
  border-radius: 32px;
  box-shadow: 0 22px 50px rgba(81, 38, 206, .24);
}

.cdp-directory.cdp-theme-vibrant .cdp-card::before {
  background: linear-gradient(90deg, #ff4d8d, #7a3fff, #00b8d9);
  height: 6px;
}

@media (max-width: 1100px) {
  .cdp-featured-grid,
  .cdp-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .cdp-layout {
    grid-template-columns: 1fr;
  }

  .cdp-filters {
    position: static;
  }

  .cdp-directory.cdp-theme-minimal .cdp-filters {
    border-bottom: 1px solid #e5e7eb;
    border-right: 0;
    padding-right: 0;
  }

  .cdp-directory.cdp-theme-financial .cdp-card {
    align-items: stretch;
    gap: .6rem;
    grid-template-columns: 1fr;
  }

  .cdp-directory.cdp-theme-financial .cdp-company-link {
    border-top: 1px solid #e2e8e5;
  }
}

@media (max-width: 640px) {
  .cdp-directory {
    margin: 1rem auto;
  }

  .cdp-search-wrap,
  .cdp-market {
    max-width: none;
  }

  .cdp-hero {
    align-items: flex-start;
    border-radius: 18px;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem 1.25rem;
  }

  .cdp-hero-stat {
    align-items: baseline;
    flex-direction: row;
    gap: .4rem;
    min-width: 0;
    padding: .75rem 1rem;
  }

  .cdp-hero-stat strong {
    font-size: 1.35rem;
  }

  .cdp-az {
    display: flex;
    flex-wrap: nowrap;
    margin-top: 1.5rem;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
  }

  .cdp-letter {
    flex: 0 0 auto;
    min-width: 34px;
    padding: 0 .45rem;
    width: auto;
  }

  .cdp-featured-grid,
  .cdp-grid {
    grid-template-columns: 1fr;
  }

  .cdp-results-bar {
    align-items: flex-start;
    flex-direction: column;
    gap: .25rem;
  }

  .cdp-pagination {
    flex-wrap: wrap;
  }

  .cdp-page-button {
    flex: 1 1 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cdp-directory *,
  .cdp-directory *::before,
  .cdp-directory *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

/* Wide directory layouts. */
.cdp-directory.cdp-theme-full-page {
  box-sizing: border-box;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  max-width: none;
  padding: 0 clamp(1rem, 3vw, 4rem) 3rem;
  width: 100vw;
}

.cdp-directory.cdp-theme-wide-four {
  box-sizing: border-box;
  max-width: 1800px;
  padding-left: clamp(1rem, 2.5vw, 3rem);
  padding-right: clamp(1rem, 2.5vw, 3rem);
  width: 100%;
}

@media (min-width: 1280px) {
  .cdp-directory.cdp-theme-wide-four .cdp-grid {
    gap: 1rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
