/* Native customer explorer. All styles are scoped to preserve the corporate shell. */
.customer-explorer {
  --muted: var(--ink-soft);
  --navy: var(--night-blue);
  --blue: var(--deep-blue);
  --teal: var(--light-blue);
  --amber: #f5971b;
  padding-bottom: 72px;
}
.customer-explorer button, .customer-explorer input, .customer-explorer select { font: inherit; }
.customer-explorer button { cursor: pointer; }
.customer-explorer .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.customer-explorer button:disabled { cursor: default; opacity: .5; }
.customer-explorer :is(button, a, input, select):focus-visible { outline: 3px solid var(--medium-blue); outline-offset: 4px; }
.customer-explorer .overview { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 0 0 72px; }
.customer-explorer .overview > div { border-left: 2px solid var(--teal); padding-left: 20px; }
.customer-explorer .overview strong { display: block; font-size: 32px; line-height: 1.3; }
.customer-explorer .overview span { display: block; font-size: 12px; line-height: 1.6; color: var(--muted); margin-top: 8px; max-width: 185px; }
.customer-explorer #explore { scroll-margin-top: 112px; }
.customer-explorer .explore-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 32px; }
.customer-explorer .explore-heading h2 { font-size: clamp(26px, 2.8vw, 38px); max-width: 720px; }
.customer-explorer .edition { flex-shrink: 0; font-size: 12px; text-align: right; color: var(--muted); }
.customer-explorer .tabs { display: flex; gap: 28px; overflow-x: auto; border-bottom: 1px solid var(--line); padding: 4px; }
.customer-explorer .tabs button { background: none; border: 0; border-bottom: 3px solid transparent; color: var(--muted); padding: 16px 0; white-space: nowrap; font-size: 14px; }
.customer-explorer .tabs button[aria-selected=true] { color: var(--ink); font-weight: 700; border-color: var(--ink); }
.customer-explorer .tabs button span { background: var(--paper); padding: 3px 7px; margin-left: 6px; border-radius: 4px; }
.customer-explorer .toolbar { display: flex; flex-wrap: wrap; align-items: end; gap: 16px; margin: 24px 0; }
.customer-explorer .toolbar label { font-size: 12px; color: var(--muted); font-weight: 600; }
.customer-explorer .toolbar select { display: block; margin-top: 6px; padding: 12px; border: 1px solid var(--line-strong); border-radius: 6px; height: 48px; font-size: 14px; background: white; color: var(--ink); max-width: 100%; }
.customer-explorer .search { display: flex; align-items: center; flex: 1 1 260px; padding: 0 14px; height: 48px; border: 1px solid var(--line-strong); border-radius: 6px; }
.customer-explorer .search span { font-size: 28px; margin-right: 12px; }
.customer-explorer .search input { width: 100%; min-width: 0; border: 0; color: var(--ink); background: white; font-size: 14px; }
.customer-explorer .quiet { padding: 12px 4px; border: 0; background: none; color: var(--blue); font-size: 14px; }
.customer-explorer .results-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 16px 0 24px; }
.customer-explorer .results-head p { margin: 0; color: var(--muted); font-size: 13px; }
.customer-explorer .view-switch { display: flex; flex-shrink: 0; border: 1px solid var(--line); border-radius: 6px; padding: 3px; }
.customer-explorer .view-switch button { padding: 8px 12px; border: 0; border-radius: 4px; background: white; color: var(--muted); font-size: 12px; }
.customer-explorer .view-switch button[aria-pressed=true] { background: var(--navy); color: white; }
.customer-explorer .grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.customer-explorer .card { display: flex; flex-direction: column; background: white; border: 1px solid var(--line); border-top: 3px solid var(--card-accent, var(--teal)); border-radius: 8px; overflow: hidden; }
.customer-explorer .card-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 24px 24px 0; }
.customer-explorer .status { padding: 5px 8px; font-size: 10px; line-height: 1.4; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; border: 1px solid var(--line-strong); border-radius: 4px; }
.customer-explorer .status[data-stage='Pilot'], .customer-explorer .status[data-stage='In development'] { background: #fff1dd; border-color: #f0cc99; }
.customer-explorer .status[data-stage='Partnership'], .customer-explorer .status[data-stage='Technology partner'], .customer-explorer .status[data-stage='Strategic partner'] { background: var(--mist); border-color: var(--teal); }
.customer-explorer .card-content { flex: 1; padding: 22px 24px; }
.customer-explorer .card h3 { font-size: 23px; margin: 0 0 8px; }
.customer-explorer .card h3 button { background: none; border: 0; padding: 0; text-align: left; font: inherit; color: inherit; }
.customer-explorer .place { color: var(--muted); font-size: 12px; margin: 0; }
.customer-explorer .description { font-size: 14px; line-height: 1.7; margin: 18px 0; }
.customer-explorer .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.customer-explorer .tag { background: var(--paper); border-radius: 4px; padding: 5px 8px; font-size: 11px; color: var(--muted); }
.customer-explorer .card-scale { display: flex; justify-content: space-between; align-items: start; gap: 12px; margin: 0 24px; padding: 18px 0; border-block: 1px solid var(--line); }
.customer-explorer .card-scale strong { display: block; font-size: 28px; font-weight: 800; line-height: 1.3; }
.customer-explorer .card-scale span { display: block; font-size: 12px; color: var(--muted); line-height: 1.6; margin-top: 6px; }
.customer-explorer .card-scale .metric-type { font-size: 10px; color: #806024; font-weight: 700; text-transform: uppercase; text-align: right; max-width: 95px; }
.customer-explorer .card-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 20px 24px; }
.customer-explorer .card-footer button { padding: 0; border: 0; background: none; font-size: 13px; font-weight: 700; color: var(--blue); }
.customer-explorer .compare-choice { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.customer-explorer .compare-choice input { width: 16px; height: 16px; accent-color: var(--blue); }
.customer-explorer .coverage { display: grid; grid-template-columns: 150px 1fr; gap: 24px; border-top: 1px solid var(--line); margin-top: 40px; padding-top: 24px; font-size: 13px; }
.customer-explorer .coverage p { color: var(--muted); margin: 0; font-size: 12px; }
.customer-explorer .section-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; font-size: 24px; margin: 32px 0 24px; }
.customer-explorer .section-title span { font-size: 13px; font-weight: 400; color: var(--muted); }
.customer-explorer .empty { text-align: center; padding: 56px 24px; border: 1px dashed var(--line-strong); border-radius: 8px; }
.customer-explorer .empty h2 { font-size: 28px; }
.customer-explorer .empty p { color: var(--muted); }
.customer-explorer .no-data { font-size: 17px !important; }
.customer-explorer .logo-frame { display: flex; align-items: center; width: 116px; height: 58px; background: white; border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; overflow: hidden; }
.customer-explorer .logo-frame img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; object-position: left center; }
.customer-explorer .monogram { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: var(--tone); color: white; border-radius: 6px; font-weight: 800; }
.customer-explorer .text-logo { width: 170px; gap: 9px; }
.customer-explorer .text-logo > img { width: 36px; height: 36px; flex: 0 0 36px; }
.customer-explorer .logo-copy { display: flex; min-width: 0; flex-direction: column; line-height: 1; }
.customer-explorer .logo-copy b { font-size: 22px; font-weight: 800; white-space: nowrap; }
.customer-explorer .logo-copy em { font: inherit; font-style: normal; }
.customer-explorer .logo-copy small { margin-top: 6px; white-space: nowrap; font-size: 5px; letter-spacing: .7px; }
.customer-explorer .logo-good .logo-copy b { color: #2f80ed; font-size: 19px; }
.customer-explorer .logo-buna .logo-copy b { color: #6d4026; }
.customer-explorer .logo-buna .logo-copy em { color: #39814d; }
.customer-explorer dialog { color: var(--ink); background: white; border: 0; border-radius: 8px; padding: 40px; width: 740px; max-width: calc(100vw - 32px); max-height: 90dvh; overflow: auto; box-shadow: 0 24px 90px #0005; }
.customer-explorer dialog::backdrop { background: #101730b8; }
.customer-explorer dialog .close { position: absolute; top: 12px; right: 16px; width: 38px; height: 38px; border: 0; background: var(--paper); color: var(--ink); border-radius: 50%; font-size: 24px; }
.customer-explorer dialog h2 { font-size: 34px; margin: 16px 0 8px; }
.customer-explorer dialog h3 { font-size: 17px; margin: 28px 0 12px; }
.customer-explorer dialog p { color: var(--muted); font-size: 14px; }
.customer-explorer dialog ul { padding-left: 24px; font-size: 14px; }
.customer-explorer .detail-logo { width: 220px; height: 90px; padding: 12px 16px; }
.customer-explorer .detail-logo.text-logo { width: 255px; }
.customer-explorer .detail-monogram { width: 68px; height: 68px; font-size: 24px; }
.customer-explorer .detail-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.customer-explorer .detail-tags span { background: var(--mist); padding: 6px 9px; border-radius: 4px; font-size: 12px; }
.customer-explorer .detail-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.customer-explorer .detail-metric { padding: 18px; border: 1px solid var(--line); border-radius: 6px; }
.customer-explorer .detail-metric strong { display: block; font-size: 28px; }
.customer-explorer .detail-metric span { display: block; font-size: 14px; margin: 8px 0; }
.customer-explorer .detail-metric small { display: block; font-size: 12px; color: #806024; }
.customer-explorer .journey { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; counter-reset: journey-step; }
.customer-explorer .journey > div { background: var(--paper); padding: 16px; font-size: 13px; border-radius: 6px; }
.customer-explorer .journey > div::before { counter-increment: journey-step; content: '0' counter(journey-step); display: block; margin-bottom: 8px; color: var(--blue); font-weight: 700; }
.customer-explorer .note { margin: 20px 0; padding: 14px 16px; background: #fff6e8; border-left: 3px solid var(--amber); font-size: 13px; }
.customer-explorer .source { border-top: 1px solid var(--line); padding: 12px 0; font-size: 13px; }
.customer-explorer .source a { color: var(--blue); }
.customer-explorer .source small { display: block; color: var(--muted); font-size: 12px; }
.customer-explorer .external { display: inline-block; border: 1px solid var(--ink); padding: 12px 16px; border-radius: 4px; margin: 16px 8px 0 0; font-size: 13px; font-weight: 600; background: white; color: var(--ink); }
.customer-explorer .compare-bar { display: flex; align-items: center; gap: 18px; position: fixed; z-index: 90; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--navy); color: white; width: max-content; max-width: calc(100vw - 24px); border-radius: 8px; padding: 14px 20px; box-shadow: 0 8px 30px #0003; font-size: 14px; }
.customer-explorer .compare-bar[hidden] { display: none; }
.customer-explorer .compare-bar button { border: 0; border-radius: 4px; background: white; color: var(--navy); padding: 10px 14px; font-size: 13px; font-weight: 700; }
.customer-explorer .compare-bar .clear { background: transparent; color: white; font-weight: 400; }
.customer-explorer .compare-dialog { width: 1120px; }
.customer-explorer #comparison { overflow-x: auto; margin-top: 24px; }
.customer-explorer table { width: 100%; border-collapse: collapse; min-width: 620px; table-layout: fixed; }
.customer-explorer th, .customer-explorer td { padding: 16px; border: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 13px; overflow-wrap: anywhere; }
.customer-explorer th { background: var(--paper); font-weight: 700; }
.customer-explorer th:first-child { width: 132px; }
.customer-explorer td small { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; }
.customer-explorer td p { margin: 0 0 12px; }
@media (max-width: 1050px) {
  .customer-explorer .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .customer-explorer .search { flex-basis: 100%; }
}
@media (max-width: 620px) {
  .customer-explorer .overview { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; margin-bottom: 48px; }
  .customer-explorer .overview > div { padding-left: 12px; }
  .customer-explorer .overview span { font-size: 11px; }
  .customer-explorer .explore-heading { display: block; }
  .customer-explorer .edition { text-align: left; margin-top: 16px; }
  .customer-explorer .tabs { gap: 20px; }
  .customer-explorer .tabs button { font-size: 12px; }
  .customer-explorer .toolbar { gap: 12px; }
  .customer-explorer .toolbar > label:not(.search) { flex: 1 1 130px; min-width: 0; }
  .customer-explorer .toolbar select { width: 100%; font-size: 12px; }
  .customer-explorer .results-head p { font-size: 11px; }
  .customer-explorer .grid { grid-template-columns: minmax(0, 1fr); }
  .customer-explorer .coverage { grid-template-columns: 1fr; gap: 12px; }
  .customer-explorer dialog { padding: 36px 20px 24px; }
  .customer-explorer dialog h2 { font-size: 28px; }
  .customer-explorer .journey, .customer-explorer .detail-metrics { grid-template-columns: 1fr; }
  .customer-explorer .compare-bar { gap: 6px; padding: 10px; font-size: 11px; }
  .customer-explorer .compare-bar button { font-size: 11px; padding: 10px; }
}
