/* GeoLira UI13: Community Pulse scope alignment refinement.
   Route logic is unchanged. This file only normalizes layout and alignment. */

.community-pulse-scope-panel {
  grid-template-columns: minmax(0, 1fr) minmax(12rem, 15rem);
  column-gap: clamp(1.25rem, 2.8vw, 2.5rem);
  row-gap: 1rem;
  min-height: 0;
}

.community-scope-copy {
  max-width: 56rem;
}

.community-pulse-scope-panel h2 {
  max-width: 24ch;
  margin: .18rem 0 .85rem;
  font-size: clamp(2rem, 3.15vw, 3.35rem);
  line-height: .99;
  letter-spacing: -.045em;
}

.community-scope-copy > p:not(.eyebrow) {
  max-width: 68ch;
}

.community-network-visual {
  width: clamp(11.5rem, 16vw, 14.5rem);
}

.community-scope-actions {
  display: grid;
  grid-template-columns: max-content max-content;
  justify-content: start;
  align-items: end;
  gap: .55rem 1rem;
  width: auto;
  max-width: none;
}

.community-scope-actions > .secondary-action {
  min-height: 3rem;
  align-self: end;
  white-space: nowrap;
}

.community-country-scope-form {
  display: grid;
  grid-template-columns: 8rem max-content;
  align-items: end;
  gap: .55rem .7rem;
  margin: 0;
}

.community-country-scope-form label {
  display: grid;
  gap: .38rem;
  margin: 0;
}

.community-country-scope-form input {
  width: 8rem;
  max-width: none;
  min-height: 3rem;
  box-sizing: border-box;
}

.community-country-scope-form .secondary-action {
  min-height: 3rem;
  white-space: nowrap;
}

.community-country-scope-form .form-message {
  grid-column: 1 / -1;
  margin: 0;
}

.community-country-scope-form .form-message:empty {
  display: none;
}

.community-pulse-scope-panel > .truth-note {
  margin-top: .15rem;
}

@media (max-width: 1100px) {
  .community-pulse-scope-panel {
    grid-template-columns: minmax(0, 1fr) 12rem;
  }

  .community-pulse-scope-panel h2 {
    max-width: 22ch;
  }

  .community-network-visual {
    width: 11.75rem;
  }
}

@media (max-width: 850px) {
  .community-pulse-scope-panel {
    grid-template-columns: 1fr;
    grid-template-areas: "copy" "visual" "actions" "truth";
  }

  .community-pulse-scope-panel h2 {
    max-width: 24ch;
  }

  .community-scope-actions {
    grid-template-columns: max-content minmax(0, max-content);
  }

  .community-network-visual {
    width: 11rem;
    margin: .25rem auto .4rem;
  }
}

@media (max-width: 650px) {
  .community-pulse-scope-panel h2 {
    max-width: 16ch;
  }

  .community-scope-actions {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .community-scope-actions > .secondary-action {
    width: 100%;
  }

  .community-country-scope-form {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .community-country-scope-form input,
  .community-country-scope-form .secondary-action {
    width: 100%;
    max-width: none;
  }

  .community-country-scope-form .form-message {
    grid-column: 1;
  }
}
