.fc-discovery-v38 {
  --fc38-ink: #09223b;
  --fc38-muted: #52677b;
  --fc38-green: #087f6b;
  --fc38-green-dark: #075c50;
  --fc38-line: #d8e4e8;
  --fc38-soft: #f2f8f7;
  color: var(--fc38-ink);
}

.fc-discovery-shell-v38 {
  padding: clamp(1.1rem, 3vw, 2rem);
  border: 1px solid var(--fc38-line);
  border-radius: 24px;
  background: linear-gradient(145deg, #ffffff 0%, #f3faf8 100%);
  box-shadow: 0 18px 46px rgba(5, 44, 61, 0.08);
}

.fc-discovery-form-v38 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.65rem;
  max-width: 920px;
}

.fc-discovery-input-v38 {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
}

.fc-discovery-input-v38 > span {
  position: absolute;
  left: 1rem;
  z-index: 1;
  color: var(--fc38-green);
  font-size: 1.35rem;
  pointer-events: none;
}

.fc-discovery-input-v38 input {
  width: 100%;
  min-height: 52px;
  padding: 0.8rem 1rem 0.8rem 3rem;
  border: 2px solid #b8d0d2;
  border-radius: 14px;
  background: #fff;
  color: var(--fc38-ink);
  font: inherit;
  font-size: 1rem;
}

.fc-discovery-input-v38 input:focus {
  border-color: var(--fc38-green);
  outline: 3px solid rgba(8, 127, 107, 0.18);
  outline-offset: 1px;
}

.fc-discovery-form-v38 > button {
  min-height: 52px;
  padding: 0.7rem 1.2rem;
  border: 0;
  border-radius: 14px;
  background: var(--fc38-green);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.fc-discovery-form-v38 > button:hover,
.fc-discovery-form-v38 > button:focus-visible {
  background: var(--fc38-green-dark);
}

.fc-quick-queries-v38,
.fc-catalog-filters-v38 {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  padding: 0.8rem 0 0.25rem;
  scrollbar-width: thin;
}

.fc-quick-queries-v38 button,
.fc-catalog-filters-v38 button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--fc38-line);
  border-radius: 999px;
  background: #fff;
  color: var(--fc38-ink);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 750;
  cursor: pointer;
}

.fc-catalog-filters-v38 button.is-active,
.fc-catalog-filters-v38 button[aria-pressed="true"] {
  border-color: var(--fc38-green);
  background: var(--fc38-green);
  color: #fff;
}

.fc-discovery-status-v38 {
  margin: 0.9rem 0 0;
  color: var(--fc38-muted);
  font-size: 0.92rem;
}

.fc-discovery-results-v38 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}

.fc-discovery-card-v38 {
  display: flex;
  min-width: 0;
  min-height: 184px;
  flex-direction: column;
  padding: 1rem;
  border: 1px solid var(--fc38-line);
  border-radius: 17px;
  background: #fff;
  color: var(--fc38-ink);
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(7, 60, 73, 0.05);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.fc-discovery-card-v38:hover,
.fc-discovery-card-v38:focus-visible {
  border-color: #75b9ae;
  box-shadow: 0 14px 28px rgba(7, 60, 73, 0.11);
  transform: translateY(-2px);
  outline: none;
}

.fc-discovery-card-meta-v38 {
  color: var(--fc38-green-dark);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fc-discovery-card-v38 > strong {
  margin-top: 0.4rem;
  font-size: 1.07rem;
  line-height: 1.25;
}

.fc-discovery-card-v38 p {
  margin: 0.45rem 0 0;
  color: var(--fc38-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.fc-discovery-sensitive-v38 {
  margin-top: 0.65rem;
  color: #75531a;
  font-size: 0.72rem;
  line-height: 1.35;
}

.fc-discovery-card-action-v38 {
  margin-top: auto;
  padding-top: 0.85rem;
  color: var(--fc38-green-dark);
  font-weight: 850;
}

.fc-discovery-journeys-v38 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}

.fc-discovery-journeys-v38[hidden],
.fc-discovery-results-v38[hidden] {
  display: none !important;
}

.fc-journey-card-v38 {
  padding: 1.1rem;
  border: 1px solid #bfd8e4;
  border-radius: 18px;
  background: #f7fbff;
}

.fc-journey-label-v38 {
  color: #0b5c99;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.fc-journey-card-v38 h3 {
  margin: 0.3rem 0;
  color: var(--fc38-ink);
}

.fc-journey-card-v38 > p {
  margin: 0 0 0.7rem;
  color: var(--fc38-muted);
}

.fc-journey-steps-v38 {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: fc38-step;
}

.fc-journey-steps-v38 li {
  counter-increment: fc38-step;
}

.fc-journey-steps-v38 a {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 0.65rem;
  align-items: center;
  min-height: 48px;
  padding: 0.55rem 0.7rem;
  border-radius: 12px;
  background: #fff;
  color: var(--fc38-ink);
  text-decoration: none;
}

.fc-journey-steps-v38 a::before {
  grid-row: 1 / span 2;
  content: counter(fc38-step);
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: #dceff8;
  color: #075386;
  font-weight: 900;
}

.fc-journey-steps-v38 small {
  color: #0b5c99;
  font-size: 0.7rem;
  font-weight: 800;
}

.fc-journey-steps-v38 strong {
  font-size: 0.88rem;
}

.fc-directory-v38 {
  display: grid;
  gap: 0.75rem;
}

.fc-directory-v38 details {
  border: 1px solid var(--fc38-line);
  border-radius: 16px;
  background: #fff;
}

.fc-directory-v38 summary {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  color: var(--fc38-ink);
  font-weight: 850;
  cursor: pointer;
}

.fc-directory-links-v38 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  padding: 0 0.8rem 0.9rem;
}

.fc-directory-links-v38 a {
  display: flex;
  min-height: 46px;
  align-items: center;
  padding: 0.65rem 0.8rem;
  border-radius: 11px;
  background: var(--fc38-soft);
  color: var(--fc38-ink);
  font-weight: 720;
  text-decoration: none;
}

.fc-directory-links-v38 a:hover,
.fc-directory-links-v38 a:focus-visible {
  background: #dcefeb;
}

.fc-quality-flow-v38 {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 1rem 0;
  padding: 0;
  list-style: none;
  counter-reset: fc-quality;
}

.fc-quality-flow-v38 li {
  counter-increment: fc-quality;
  padding: 0.8rem;
  border-radius: 14px;
  background: #eaf6f3;
  color: var(--fc38-ink);
  font-weight: 800;
}

.fc-quality-flow-v38 li::before {
  content: counter(fc-quality) ". ";
  color: var(--fc38-green);
}

.fc-provenance-v38 {
  padding: 1rem;
  border-left: 4px solid var(--fc38-green);
  border-radius: 0 14px 14px 0;
  background: #f3f8f7;
  color: var(--fc38-muted);
}

.fc-provenance-v38 a {
  color: #075f52;
  font-weight: 750;
}

.fc-breadcrumb-v38 {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 1rem;
  color: var(--fc38-muted);
  font-size: 0.88rem;
}

.fc-breadcrumb-v38 a {
  color: #075f52;
}

.fc-auto-breadcrumb-v38 {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  width: min(1180px, calc(100% - 2rem));
  margin: 0.85rem auto;
  color: #52677b;
  font-size: 0.86rem;
}

.fc-auto-breadcrumb-v38 a {
  color: #075f52;
  font-weight: 720;
}

.fc-trust-note-v38 {
  width: min(1180px, calc(100% - 2rem));
  margin: 1.2rem auto;
  padding: 1rem;
  border: 1px solid #d1e1df;
  border-left: 4px solid #087f6b;
  border-radius: 0 14px 14px 0;
  background: #f4faf8;
  color: #425d67;
  font-size: 0.9rem;
  line-height: 1.5;
}

.fc-trust-note-v38 > strong {
  color: #09223b;
}

.fc-trust-note-v38 p {
  margin: 0.35rem 0 0.65rem;
}

.fc-trust-note-v38 div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.9rem;
}

.fc-trust-note-v38 a {
  color: #075f52;
  font-weight: 760;
}

html[data-nb-theme="dark"] .fc-discovery-v38 {
  --fc38-ink: #f2f8fa;
  --fc38-muted: #bdd0d8;
  --fc38-line: #365463;
  --fc38-soft: #1d3940;
}

html[data-nb-theme="dark"] .fc-discovery-shell-v38,
html[data-nb-theme="dark"] .fc-discovery-card-v38,
html[data-nb-theme="dark"] .fc-directory-v38 details,
html[data-nb-theme="dark"] .fc-quick-queries-v38 button,
html[data-nb-theme="dark"] .fc-catalog-filters-v38 button,
html[data-nb-theme="dark"] .fc-journey-steps-v38 a {
  background: #102b35;
}

html[data-nb-theme="dark"] .fc-discovery-input-v38 input {
  background: #0c2630;
  color: #fff;
}

html[data-nb-theme="dark"] .fc-journey-card-v38,
html[data-nb-theme="dark"] .fc-provenance-v38,
html[data-nb-theme="dark"] .fc-trust-note-v38 {
  background: #142f3b;
}

@media (max-width: 850px) {
  .fc-discovery-results-v38,
  .fc-directory-links-v38 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fc-quality-flow-v38 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .fc-discovery-shell-v38 {
    border-radius: 18px;
  }

  .fc-discovery-form-v38 {
    grid-template-columns: 1fr;
  }

  .fc-discovery-results-v38,
  .fc-discovery-journeys-v38,
  .fc-directory-links-v38,
  .fc-quality-flow-v38 {
    grid-template-columns: 1fr;
  }

  .fc-discovery-card-v38 {
    min-height: 164px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fc-discovery-card-v38 {
    transition: none;
  }
}
