:root {
  --navy-950: #081a2f;
  --navy-900: #0c233f;
  --navy-800: #143654;
  --navy-700: #244b69;
  --blue-600: #176b87;
  --blue-100: #dff4f5;
  --teal-500: #38b2ac;
  --teal-300: #75d8d2;
  --ink: #152434;
  --muted: #5b6b7b;
  --line: #dfe6ec;
  --line-strong: #cdd8e1;
  --surface: #ffffff;
  --surface-soft: #f5f8fa;
  --surface-teal: #f0faf9;
  --ready: #1f7a58;
  --ready-bg: #e5f5ed;
  --ready-line: #b8e1cd;
  --explore: #9a5b08;
  --explore-bg: #fff4d9;
  --explore-line: #f0d591;
  --future: #4f5f71;
  --future-bg: #edf1f5;
  --future-line: #d2dce5;
  --shadow-sm: 0 1px 2px rgba(8, 26, 47, .05), 0 4px 14px rgba(8, 26, 47, .04);
  --shadow-lg: 0 24px 60px rgba(8, 26, 47, .22);
  --radius: 12px;
  --radius-lg: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--surface-soft);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  color: #fff;
  background: var(--navy-900);
  border-radius: 8px;
  transform: translateY(-140%);
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.site-header {
  color: #fff;
  background: var(--navy-950);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.header-inner {
  width: min(1440px, calc(100% - 48px));
  min-height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}

.brand-mark i {
  display: block;
  width: 5px;
  height: 24px;
  background: var(--teal-300);
  border-radius: 2px;
}

.brand-name {
  font-size: 19px;
  font-weight: 720;
  letter-spacing: -.02em;
}

.header-divider {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, .25);
}

.header-title {
  color: #dce8f0;
  font-size: 14px;
  font-weight: 600;
}

main {
  width: min(1440px, calc(100% - 48px));
  margin: 0 auto;
}

.intro {
  padding: 42px 0 28px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.intro-copy {
  max-width: 760px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 8px;
  color: var(--blue-600);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  color: var(--navy-950);
  font-size: clamp(32px, 3.3vw, 48px);
  line-height: 1.08;
  letter-spacing: -.035em;
}

.lede {
  max-width: 690px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.snapshot-note {
  flex: 0 0 auto;
  padding: 9px 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, .75);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
}

.recommendation-guide {
  padding: 22px;
  display: grid;
  grid-template-columns: minmax(210px, .65fr) minmax(0, 2fr);
  gap: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.guide-heading {
  padding: 4px 8px 4px 2px;
}

.guide-heading h2 {
  margin: 0;
  color: var(--navy-900);
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -.01em;
}

.guide-items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.guide-item {
  position: relative;
  min-height: 94px;
  padding: 16px 46px 15px 16px;
  background: #fff;
  border-right: 1px solid var(--line);
}

.guide-item:last-child {
  border-right: 0;
}

.guide-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
  color: var(--navy-900);
  font-size: 13px;
  font-weight: 760;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.guide-ready .status-dot {
  background: var(--ready);
  box-shadow: 0 0 0 4px var(--ready-bg);
}

.guide-explore .status-dot {
  background: var(--explore);
  box-shadow: 0 0 0 4px var(--explore-bg);
}

.guide-future .status-dot {
  background: var(--future);
  box-shadow: 0 0 0 4px var(--future-bg);
}

.guide-item p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.guide-count {
  position: absolute;
  top: 14px;
  right: 14px;
  color: #8a98a5;
  font-size: 11px;
  font-weight: 700;
}

.directory-shell {
  margin: 24px 0 36px;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 660px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.ecp-panel {
  min-width: 0;
  padding: 22px 16px 18px;
  background: #f8fafb;
  border-right: 1px solid var(--line);
}

.panel-heading,
.results-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.panel-heading {
  padding: 0 6px 16px;
}

.panel-heading h2,
.results-heading h2 {
  margin: 0;
  color: var(--navy-950);
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.panel-count,
.result-count {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.search-field {
  position: relative;
  display: block;
}

.search-field svg {
  position: absolute;
  top: 50%;
  left: 12px;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: #768695;
  stroke-width: 1.8;
  stroke-linecap: round;
  transform: translateY(-50%);
  pointer-events: none;
}

.search-field input,
.select-field select,
.mobile-ecp-control select {
  width: 100%;
  height: 42px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.search-field input {
  padding: 0 14px 0 38px;
}

.search-field input::placeholder {
  color: #8896a3;
}

.select-field select,
.mobile-ecp-control select {
  padding: 0 36px 0 12px;
}

.search-field input:focus,
.select-field select:focus,
.mobile-ecp-control select:focus {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(23, 107, 135, .13);
}

.compact-search {
  margin-bottom: 12px;
}

.ecp-list {
  height: 540px;
  padding: 0 3px 4px 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #c3ced7 transparent;
}

.ecp-button {
  width: 100%;
  min-height: 42px;
  margin: 2px 0;
  padding: 9px 10px 9px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #3f5366;
  background: transparent;
  border: 0;
  border-radius: 8px;
  text-align: left;
  transition: color .15s ease, background .15s ease;
}

.ecp-button:hover {
  color: var(--navy-900);
  background: #edf3f6;
}

.ecp-button.is-active {
  color: var(--navy-950);
  background: #dff2f2;
  box-shadow: inset 3px 0 0 var(--teal-500);
  font-weight: 720;
}

.ecp-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ecp-opportunity-count {
  min-width: 24px;
  padding: 2px 6px;
  color: #677786;
  background: rgba(255, 255, 255, .75);
  border: 1px solid rgba(205, 216, 225, .8);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
}

.ecp-button.is-active .ecp-opportunity-count {
  color: var(--blue-600);
  border-color: rgba(56, 178, 172, .3);
}

.ecp-no-results {
  padding: 20px 10px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.results-panel {
  min-width: 0;
  padding: 25px 26px 22px;
}

.results-heading {
  min-height: 52px;
  margin-bottom: 18px;
}

.results-heading h2 {
  font-size: 26px;
}

.result-count {
  padding: 6px 10px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.filters {
  margin-bottom: 18px;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(190px, 220px);
  align-items: end;
  gap: 10px;
}

.filter-label {
  margin: 0 0 6px 2px;
  display: block;
  color: #687889;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.2;
}

.clear-button {
  grid-column: 1 / -1;
  justify-self: end;
  margin-top: -3px;
  padding: 0 6px;
  color: var(--blue-600);
  background: transparent;
  border: 0;
  font-size: 13px;
  font-weight: 700;
}

.clear-button:hover {
  text-decoration: underline;
}

.table-frame {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

thead {
  background: #f5f8fa;
}

th {
  padding: 12px 14px;
  color: #637384;
  border-bottom: 1px solid var(--line-strong);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-align: left;
  text-transform: uppercase;
}

th:nth-child(1) {
  width: 27%;
}

th:nth-child(2) {
  width: 20%;
}

th:nth-child(3) {
  width: auto;
}

th.action-column {
  width: 42px;
}

.opportunity-row {
  position: relative;
  background: #fff;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background .15s ease;
}

.opportunity-row:last-child {
  border-bottom: 0;
}

.opportunity-row:hover,
.opportunity-row:focus-within {
  background: #f8fbfc;
}

.opportunity-row td {
  padding: 16px 14px;
  vertical-align: top;
}

.opportunity-title {
  color: var(--navy-900);
  font-size: 14px;
  font-weight: 740;
  line-height: 1.4;
}

.opportunity-summary {
  display: -webkit-box;
  overflow: hidden;
  color: #536576;
  font-size: 13px;
  line-height: 1.52;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.recommendation-badge {
  width: fit-content;
  max-width: 100%;
  padding: 5px 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 760;
  line-height: 1.25;
}

.recommendation-badge::before {
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 50%;
  content: "";
  flex: 0 0 auto;
}

.badge-ready {
  color: var(--ready);
  background: var(--ready-bg);
  border-color: var(--ready-line);
}

.badge-explore {
  color: var(--explore);
  background: var(--explore-bg);
  border-color: var(--explore-line);
}

.badge-future {
  color: var(--future);
  background: var(--future-bg);
  border-color: var(--future-line);
}

.row-open-button {
  width: 30px;
  height: 30px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  color: var(--blue-600);
  background: transparent;
  border: 0;
  border-radius: 7px;
}

.row-open-button:hover,
.row-open-button:focus-visible {
  background: var(--blue-100);
  outline: none;
}

.row-open-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.empty-state {
  padding: 70px 20px;
  text-align: center;
}

.empty-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  color: var(--blue-600);
  background: var(--blue-100);
  border-radius: 50%;
}

.empty-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.empty-state h3 {
  margin-bottom: 5px;
  color: var(--navy-900);
  font-size: 17px;
}

.empty-state p {
  margin-bottom: 15px;
  color: var(--muted);
  font-size: 13px;
}

.empty-state button {
  padding: 8px 12px;
  color: var(--blue-600);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
}

.table-hint {
  margin: 10px 2px 0;
  color: #7c8995;
  font-size: 11px;
}

.mobile-ecp-control {
  display: none;
}

footer {
  width: min(1440px, calc(100% - 48px));
  margin: 0 auto;
  padding: 2px 0 34px;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  color: #6c7b89;
  font-size: 11px;
}

footer p {
  margin: 0;
}

.drawer-layer {
  position: fixed;
  z-index: 50;
  inset: 0;
}

.drawer-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  background: rgba(8, 26, 47, .48);
  border: 0;
  cursor: default;
  backdrop-filter: blur(2px);
}

.detail-drawer {
  position: absolute;
  top: 0;
  right: 0;
  width: min(620px, 94vw);
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: var(--shadow-lg);
  animation: drawer-in .2s ease-out;
}

@keyframes drawer-in {
  from { transform: translateX(25px); opacity: .7; }
  to { transform: translateX(0); opacity: 1; }
}

.drawer-header {
  min-height: 94px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #fff;
  background: var(--navy-950);
}

.drawer-ecp-label {
  margin-bottom: 4px;
  color: #91a9ba;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.drawer-ecp {
  margin: 0;
  font-size: 19px;
  font-weight: 720;
  line-height: 1.3;
}

.drawer-close {
  width: 38px;
  height: 38px;
  padding: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
}

.drawer-close:hover,
.drawer-close:focus-visible {
  background: rgba(255, 255, 255, .16);
  outline: 2px solid var(--teal-300);
  outline-offset: 2px;
}

.drawer-close svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.drawer-body {
  padding: 26px 30px 36px;
  overflow-y: auto;
}

.drawer-body > h2 {
  margin-bottom: 24px;
  color: var(--navy-950);
  font-size: clamp(25px, 3vw, 33px);
  line-height: 1.2;
  letter-spacing: -.025em;
}

.detail-list {
  margin: 0;
}

.detail-section {
  padding: 19px 0;
  border-top: 1px solid var(--line);
}

.detail-section:first-child {
  padding-top: 0;
  border-top: 0;
}

.detail-section dt {
  margin-bottom: 7px;
  color: #687889;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.detail-section dd {
  margin: 0;
  color: #304355;
  font-size: 14px;
  line-height: 1.62;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.source-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue-600);
  font-weight: 730;
  text-decoration: none;
}

.source-link:hover {
  text-decoration: underline;
}

.source-link svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.follow-up-card {
  margin-top: 12px;
  padding: 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  background: var(--surface-teal);
  border: 1px solid #cbe9e5;
  border-radius: 13px;
}

.follow-up-card h3 {
  margin-bottom: 4px;
  color: var(--navy-900);
  font-size: 18px;
}

.follow-up-card p:not(.section-kicker) {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.follow-up-button {
  min-height: 42px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #fff;
  background: var(--navy-900);
  border-radius: 9px;
  font-size: 12px;
  font-weight: 760;
  text-decoration: none;
  white-space: nowrap;
}

.follow-up-button:hover,
.follow-up-button:focus-visible {
  background: var(--navy-800);
  outline: 3px solid rgba(56, 178, 172, .25);
  outline-offset: 2px;
}

.follow-up-button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.drawer-open {
  overflow: hidden;
}

.load-error {
  width: min(620px, calc(100% - 40px));
  margin: 90px auto;
  padding: 40px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-align: center;
}

.load-error h1 {
  font-size: 28px;
}

.load-error p {
  margin-bottom: 0;
  color: var(--muted);
}

@media (max-width: 1040px) {
  .recommendation-guide {
    grid-template-columns: 1fr;
  }

  .guide-heading {
    padding-bottom: 0;
  }

  .directory-shell {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .results-panel {
    padding: 22px 20px;
  }

  th:nth-child(1) {
    width: 30%;
  }

  th:nth-child(2) {
    width: 24%;
  }
}

@media (max-width: 820px) {
  .header-inner,
  main,
  footer {
    width: min(100% - 28px, 720px);
  }

  .intro {
    padding-top: 30px;
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .guide-items {
    grid-template-columns: 1fr;
  }

  .guide-item {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .guide-item:last-child {
    border-bottom: 0;
  }

  .directory-shell {
    display: block;
  }

  .ecp-panel {
    display: none;
  }

  .mobile-ecp-control {
    margin-bottom: 21px;
    display: block;
  }

  .mobile-ecp-control label {
    margin-bottom: 7px;
    display: block;
    color: #687889;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  footer {
    flex-direction: column;
    gap: 6px;
  }
}

@media (max-width: 620px) {
  .header-inner {
    min-height: 58px;
    gap: 10px;
  }

  .header-divider {
    height: 20px;
  }

  .header-title {
    max-width: 160px;
    font-size: 11px;
    line-height: 1.2;
  }

  .intro {
    padding: 26px 0 22px;
  }

  h1 {
    font-size: 34px;
  }

  .lede {
    font-size: 15px;
  }

  .recommendation-guide {
    padding: 17px;
  }

  .directory-shell {
    margin-top: 16px;
  }

  .results-panel {
    padding: 18px 14px;
  }

  .results-heading {
    align-items: flex-start;
  }

  .results-heading h2 {
    font-size: 22px;
  }

  .filters {
    grid-template-columns: 1fr;
  }

  .clear-button {
    justify-self: start;
    margin-top: 0;
  }

  .table-frame {
    border: 0;
    border-radius: 0;
    overflow: visible;
  }

  table,
  tbody {
    display: block;
  }

  thead {
    display: none;
  }

  .opportunity-row {
    margin-bottom: 10px;
    display: grid;
    grid-template-columns: 1fr auto;
    border: 1px solid var(--line);
    border-radius: 11px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(8, 26, 47, .04);
  }

  .opportunity-row:last-child {
    border-bottom: 1px solid var(--line);
  }

  .opportunity-row td {
    padding: 0 14px 13px;
    display: block;
  }

  .opportunity-row td:nth-child(1) {
    grid-column: 1;
    padding-top: 15px;
    padding-bottom: 9px;
  }

  .opportunity-row td:nth-child(2) {
    grid-column: 1;
  }

  .opportunity-row td:nth-child(3) {
    grid-column: 1 / -1;
    padding-top: 2px;
  }

  .opportunity-row td:nth-child(4) {
    grid-column: 2;
    grid-row: 1 / 3;
    padding: 14px 10px 0 0;
  }

  .opportunity-summary {
    -webkit-line-clamp: 4;
  }

  .table-hint {
    display: none;
  }

  .detail-drawer {
    width: 100%;
  }

  .drawer-header {
    min-height: 82px;
    padding: 16px 18px;
  }

  .drawer-ecp {
    font-size: 17px;
  }

  .drawer-body {
    padding: 22px 20px 28px;
  }

  .detail-grid {
    grid-template-columns: 1fr;
    gap: 19px;
  }

  .follow-up-card {
    grid-template-columns: 1fr;
  }

  .follow-up-button {
    width: 100%;
  }
}

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