/* ==========================================================================
   Radar público — análise de compatibilidade
   ========================================================================== */

.home-radar-cta {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.public-radar-hero {
  padding: 5rem 0 2.5rem;
  text-align: center;
}

.public-radar-hero__content {
  max-width: 880px;
}

.public-radar-hero h1 {
  margin: 1rem auto;
  max-width: 820px;
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  line-height: 1.02;
}

.public-radar-hero p:not(.hero__eyebrow) {
  max-width: 760px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 1.125rem;
  line-height: 1.7;
}

.public-radar-workspace {
  padding-top: 1.5rem;
}

.public-radar-results {
  width: 100%;
  min-width: 0;
}

.public-radar-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 240px) minmax(
      220px,
      320px
    );
  gap: 1.5rem;
  align-items: end;
  margin-bottom: 1.25rem;
  min-width: 0;
}

.public-radar-toolbar > *,
.public-radar-toolbar label {
  min-width: 0;
}

.public-radar-toolbar h2 {
  margin: 0.35rem 0 0.75rem;
}

.public-radar-toolbar p {
  margin-bottom: 0;
}

.public-radar-toolbar label span {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.public-radar-toolbar input,
.public-radar-toolbar select {
  width: 100%;
}

.public-edicts-grid {
  width: 100%;
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.public-edict-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
}

.public-edict-card > *,
.public-edict-card .edict-header > * {
  min-width: 0;
  max-width: 100%;
}

.public-edict-card .edict-title,
.public-edict-card .edict-description,
.public-edict-card__included,
.public-opportunity-type {
  overflow-wrap: anywhere;
}

.public-edict-card .edict-description {
  display: -webkit-box;
  flex: 1;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
}

.public-edict-card__included {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.public-edict-card__context {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 0.75rem;
  align-items: center;
  margin: 0.75rem 0 0;
}

.public-opportunity-type {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}

.public-edict-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
  min-width: 0;
}

.public-edict-card__actions .btn {
  flex: 1 1 180px;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: normal;
}

.public-compatibility-dialog {
  width: min(920px, calc(100vw - 2rem));
  max-width: 920px;
  max-height: calc(100dvh - 2rem);
}

.public-compatibility-dialog,
.public-compatibility-dialog *,
.public-radar-profile,
.public-match-diagnosis {
  min-width: 0;
}

.public-compatibility-dialog a,
.public-compatibility-dialog dd,
.public-compatibility-dialog p,
.public-compatibility-dialog li {
  overflow-wrap: anywhere;
}

.public-radar-profile {
  margin-top: 1.5rem;
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  border-radius: 0.9rem;
  background: color-mix(in srgb, var(--accent) 5%, transparent);
}

.public-radar-profile h2 {
  margin: 0.35rem 0 0.75rem;
}

.public-radar-profile form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1rem;
  margin-top: 1.25rem;
}

.public-radar-profile label {
  align-self: end;
  margin-bottom: 0;
  font-weight: 700;
}

.public-radar-profile select,
.public-radar-profile textarea {
  width: 100%;
}

.public-radar-profile textarea,
.public-radar-profile .btn,
.public-radar-profile small,
.public-radar-feedback,
.public-radar-profile label[for="publicRadarSummary"] {
  grid-column: 1 / -1;
}

.public-radar-optional {
  color: var(--text-muted);
  font-weight: 400;
}

.public-radar-feedback {
  min-height: 1.5rem;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.public-match-diagnosis {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  border-radius: 0.9rem;
}

.public-match-diagnosis[hidden],
.public-radar-profile[hidden] {
  display: none;
}

.public-match-score {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-left: 5px solid var(--accent);
  border-radius: 0.65rem;
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}

.public-match-score--blocked {
  border-left-color: #b63d32;
  background: color-mix(in srgb, #b63d32 9%, transparent);
}

.public-match-score h2 {
  margin: 0.15rem 0;
  font-size: clamp(2.25rem, 8vw, 4rem);
  line-height: 1;
}

.public-match-score p {
  margin: 0;
}

.public-match-score meter {
  width: min(260px, 35vw);
  height: 1.2rem;
  accent-color: var(--accent);
}

.public-match-section {
  padding-top: 0.25rem;
}

.public-match-section h3 {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
}

.public-match-section p,
.public-match-section ul {
  margin-top: 0;
}

.public-match-section ul {
  margin-bottom: 0;
  padding-left: 1.25rem;
}

.public-match-section li + li {
  margin-top: 0.45rem;
}

.public-match-empty-state {
  margin-bottom: 0;
  color: var(--text-muted);
}

.public-match-components {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
}

.public-match-component {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.35rem 0.75rem;
  padding: 0.85rem;
  border: 1px solid var(--border-color);
  border-radius: 0.65rem;
}

.public-match-component dt {
  font-weight: 700;
}

.public-match-component dd {
  margin: 0;
}

.public-match-component__score {
  font-weight: 800;
}

.public-match-component__explanation {
  grid-column: 1 / -1;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.public-match-next-action {
  margin-bottom: 0;
  padding: 0.9rem 1rem;
  border-left: 4px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  font-weight: 700;
}

.public-match-disclaimer {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.public-radar-empty {
  grid-column: 1 / -1;
}

.public-radar-archive-link {
  margin: 1.5rem 0 0;
  text-align: right;
}

.public-radar-history-note {
  margin: 0 0 1.5rem;
  padding: 1rem 1.15rem;
  border-left: 4px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 7%, transparent);
  color: var(--text-muted);
}

/* Sprint 33 — ajustes estruturais da Home sob requisito permanente de acessibilidade. */
.page-home .hero > .container > .sr-only {
  position: static;
  width: auto;
  height: auto;
  margin: 1.25rem auto clamp(1.5rem, 4vw, 2.5rem);
  padding: 0;
  overflow: visible;
  clip: auto;
  clip-path: none;
  white-space: normal;
  max-width: 760px;
  color: var(--text-muted);
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.65;
  text-align: center;
}

.page-home .trust-signals {
  grid-template-columns: minmax(0, 1fr);
  max-width: 760px;
  margin: 2rem auto 0;
  align-items: start;
  justify-items: center;
}

.page-home .trust-signals li {
  justify-self: center;
  min-width: 0;
  max-width: 100%;
  width: fit-content;
  overflow-wrap: anywhere;
  text-align: center;
}

.page-home .trust-signals li:first-child {
  grid-column: 1;
  padding-left: 0;
  color: var(--text-main);
  font-weight: 800;
  text-align: center;
}

.page-home .trust-signals li:first-child::before {
  content: none;
}

.page-home .hero .plans-note {
  max-width: 760px;
  margin: 1.5rem auto 0;
  text-align: center;
}

.page-home .site-footer__inner {
  justify-content: center;
  text-align: center;
}

.page-home .site-footer__copy {
  flex: 0 1 100%;
  margin-inline: auto;
  text-align: center;
}

.page-home .site-footer__links {
  justify-content: center;
  width: 100%;
}

.page-home .site-footer__links a {
  overflow-wrap: anywhere;
}

@media (max-width: 720px) {
  .public-radar-hero {
    padding-top: 3rem;
  }

  .public-radar-toolbar,
  .public-edicts-grid,
  .public-radar-profile form,
  .public-match-components {
    grid-template-columns: minmax(0, 1fr);
  }

  .public-radar-toolbar {
    align-items: stretch;
  }

  .public-radar-profile label,
  .public-radar-profile select,
  .public-radar-profile textarea {
    grid-column: 1;
  }

  .public-edict-card__actions,
  .public-match-score {
    flex-direction: column;
    align-items: stretch;
  }

  .public-edict-card__actions .btn {
    flex: 0 0 auto;
    width: 100%;
    min-height: 44px;
  }

  .public-match-score meter {
    width: 100%;
  }

  .page-home .trust-signals {
    max-width: min(100%, 34rem);
  }
}
