/* Match main site .container: 1140px, 2.5rem side gutters */
.pulse-wrap {
  width: min(100% - 2.5rem, 1140px);
}

.aws-brief {
  background: #fff;
  padding: 2.5rem 0 3rem;
}

.aws-box {
  position: relative;
  width: 100%;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 35, 64, 0.05);
  padding: 1.75rem 1.75rem 2rem;
  box-sizing: border-box;
}

.aws-box::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px #e6e6e6;
}

.aws-box > * {
  position: relative;
  z-index: 2;
}

.aws-brief__title {
  margin: 0 0 0.2rem;
  font-family: "Montserrat", "Segoe UI", sans-serif;
  font-size: clamp(1.575rem, 2.88vw, 2.25rem);
  font-weight: 550;
  line-height: 1.15;
  color: var(--pulse-navy);
  letter-spacing: -0.02em;
}

.aws-disclaimer {
  margin: 0 0 1.5rem;
  font-family: "Source Sans Pro", "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.4;
  color: #c62828;
}

.aws-box,
.aws-prompt,
.aws-meta,
.aws-email,
.aws-search__hint,
.aws-q-label,
.aws-status,
.aws-follow,
.aws-chip {
  font-family: "Source Sans Pro", "Source Sans 3", "Segoe UI", sans-serif;
}

.aws-meta {
  list-style: none;
  margin: 0 0 1.35rem;
  padding: 0;
}

.aws-meta li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--pulse-border);
}

.aws-meta li span,
.aws-prompt,
.aws-search__hint,
.aws-email,
.aws-q-label,
.aws-status,
.aws-follow {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.4;
  color: #7a7a7a;
}

.aws-meta li strong,
.aws-prompt strong,
.aws-box .pulse-card__title {
  font-family: "Source Sans Pro", "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 1.275rem;
  font-weight: 550;
  letter-spacing: 0.01em;
  line-height: 1.15;
  color: #002340;
}

.aws-meta li strong {
  text-align: right;
}

.aws-prompt {
  margin: 0 0 1.75rem;
}

.aws-search .pulse-search__row,
#followup-form .pulse-search__row {
  max-width: none;
}

.aws-box .pulse-search__input {
  border: 2px solid #d0d5dd;
  background: #fff;
}

.aws-box .pulse-results__label {
  margin-bottom: 0.15rem;
}

.aws-search__label {
  display: block;
  margin-bottom: 0.15rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--pulse-muted);
}

.aws-box--result {
  margin-top: 1.5rem;
}

.aws-status {
  margin: 0.85rem 0 0;
}

.aws-status.is-error {
  color: #9b1c1c;
}

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

.aws-span {
  grid-column: 1 / -1;
}

.aws-email p {
  margin: 0 0 0.85rem;
  font-size: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  color: inherit;
}

.aws-email ul {
  margin: 0 0 0.85rem;
  padding-left: 1.2rem;
}

.aws-email a {
  color: #4466a5;
}

.aws-q-label {
  display: block;
  margin-bottom: 0.15rem;
}

.aws-examples-label {
  margin-top: 1rem;
}

.aws-chips {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  margin: 0.15rem 0 0;
}

.aws-chip {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: none;
  color: var(--pulse-navy);
  padding: 0.15rem 0;
  cursor: pointer;
}

.aws-chip:hover {
  background: #e8edf2;
}

.aws-box .pulse-search__input.aws-input-preload {
  color: #9aa3ad;
}

#followup-thread {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.25rem;
}

/* Empty thread still had margin-top and flexed, adding gap above the
   disclaimer on demo-2 (demo-1 keeps this node inside a hidden card). */
#followup-thread:empty {
  display: none;
  margin-top: 0;
}

.aws-thread-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.aws-msg {
  max-width: 78%;
  padding: 0.7rem 0.95rem;
  border-radius: 12px;
  line-height: 1.4;
}

.aws-msg--q {
  align-self: flex-end;
  background: #e4eaf1;
  color: var(--pulse-navy);
}

.aws-msg--a {
  align-self: flex-start;
  background: #f3f5f7;
  color: var(--pulse-text);
}

.aws-msg p {
  margin: 0 0 0.45rem;
}

.aws-msg p:last-child,
.aws-msg ul:last-child {
  margin-bottom: 0;
}

.aws-msg ul {
  margin: 0.25rem 0 0;
  padding-left: 1.15rem;
}

.aws-msg a {
  color: #4466a5;
}

.pulse-search__btn,
.pulse-cta__btn,
.pulse-back,
.aws-chip {
  font-family: "Montserrat", "Segoe UI", sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

.aws-box .pulse-search__btn {
  min-width: 13.25rem;
  box-sizing: border-box;
}

.pulse-cta .aws-cta-heading {
  margin: 0 auto 0.85rem;
  max-width: 52rem;
  text-align: center;
  white-space: normal;
  overflow-wrap: break-word;
  text-wrap: balance;
}

.pulse-cta .pulse-cta__btn {
  margin: 0.35rem 0 1.15rem;
}

.pulse-cta p.aws-cta-line {
  margin: 0 auto;
  max-width: none;
  text-align: center;
  line-height: 1.3;
}

.pulse-search__btn:disabled {
  opacity: 0.55;
  cursor: wait;
}


/* ── Shared button standard (2026-09 button audit) ──────────────────────────
   One size/type spec for every CTA button, matching homepage .btn in style.css:
   Montserrat 600, 0.92rem, 0.02em tracking, 1.25 line-height, 3rem tall,
   20rem wide (fits the longest label, "Email Barry@CommunitasIQ.com").
   Colors are unchanged and still come from each button's own rules. */
.pulse-search__btn,
.pulse-cta__btn,
button.pulse-cta__btn,
.aws-box .pulse-search__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 3rem;
  min-width: min(200px, 100%);
  max-width: 100%;
  padding: 0.7rem 1.5rem;
  border: 2px solid transparent;
  border-radius: 4px;
  font-family: "Montserrat", "Segoe UI", sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0.02em;
  line-height: 1.25;
  text-transform: none;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

/* Contact "Send It" stays centered under the form */
.pulse-search__btn.ciq-contact-submit {
  display: flex;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

/* Demo page starts with the info box (intro + green divider removed).
   Same top space the old intro had. Backup: ai-work-sample.css.bak-nohero */
main > .aws-brief--first { padding-top: 2.25rem; }

/* Demo 1 call to action: more room between the Contact Us button and the
   "example product" line, less room between that line and the footer.
   Backup: ai-work-sample.css.bak-ctaspace */
.aws-brief--first + .pulse-cta p.aws-cta-line { margin-top: 1.75rem; }
.aws-brief--first + .pulse-cta { padding-bottom: 1.5rem; }
@media (max-width: 760px) {
  .aws-brief--first + .pulse-cta { padding-bottom: 1.5rem; }
}

/* Demo 1: heading centred between the info box and the Contact Us button.
   Backup: ai-work-sample.css.bak-ctatop */
.aws-brief--first + .pulse-cta { padding-top: 1.5rem; }
@media (max-width: 760px) {
  .aws-brief--first + .pulse-cta { padding-top: 1.5rem; }
}
