/* ─────────────────────────────────────────────────────
   SAVE.AG ASK LANDING — Clean utility search page
   The fast path for returning users and bookmarks.
   Brand variables: saveag-ui.css (loaded before this file)
───────────────────────────────────────────────────── */

.ask-landing {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 4rem 2.5rem 3rem;
  background: white;
}

.ask-landing-inner {
  max-width: 640px;
  width: 100%;
  text-align: center;
}

.ask-h1 {
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-secondary);
  margin: 0 0 0.8rem;
}

.ask-sub {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  margin: 0 0 2rem;
}

/* Search box — larger than homepage for utility focus */
.ask-search-wrap {
  position: relative;
  margin-bottom: 1.3rem;
  box-shadow: var(--shadow-md, 0 3px 6px rgba(0,0,0,0.15));
  border-radius: 6px;
}

.ask-search-input {
  box-sizing: border-box;
  width: 100%;
  padding: 1.1rem 3.6rem 1.1rem 1.4rem;
  font-size: 1rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  background: rgba(80, 108, 68, 0.06);
  border: 2px solid rgba(80, 108, 68, 0.15);
  border-radius: 6px;
  outline: none;
  color: var(--color-secondary);
  text-overflow: ellipsis;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.ask-search-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(80,108,68,0.12);
}
.ask-search-input::placeholder {
  color: #bbb;
}

.ask-search-submit {
  position: absolute;
  right: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-primary);
  border: none;
  border-radius: 4px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}
.ask-search-submit:hover {
  background: var(--color-secondary);
}
.ask-search-submit svg {
  width: 15px;
  height: 15px;
  stroke: var(--color-text-light);
  fill: none;
  stroke-width: 2.5;
}

/* Example chips */
.ask-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.ask-chip {
  background: transparent;
  border: 1px solid rgba(31,67,50,0.18);
  border-radius: 100px;
  padding: 0.3rem 0.85rem;
  font-size: 0.74rem;
  font-weight: 400;
  font-family: 'Poppins', sans-serif;
  color: var(--color-text-muted);
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.18s, color 0.18s;
}
.ask-chip:hover {
  border-color: var(--color-primary);
  color: var(--color-secondary);
}

/* About link */
.ask-about-link {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin: 0;
}
.ask-about-link a {
  color: var(--color-primary);
  text-decoration: none;
}
.ask-about-link a:hover {
  text-decoration: underline;
}

/* Focus indicators */
.ask-search-input:focus-visible,
.ask-search-submit:focus-visible,
.ask-chip:focus-visible {
  outline: 3px solid var(--color-accent-3, #6bafb2);
  outline-offset: 2px;
}


/* ── GATE RESPONSE (rag-answer-altitude Phase 4) ────── */
/* Applied when answer_altitude == "gate": canned message preceding source blocks. */
/* Rendered as <p class="gate-response"> in streaming SSE, and via .results-answer
   in the sync path. Both paths receive the same canned message text. */

.gate-response {
  color: var(--color-secondary, #1f4332);
  font-style: italic;
  border-left: 3px solid var(--color-accent-2, #c9863a);
  padding-left: 1rem;
  margin-bottom: 1rem;
}

/* In the sync results path the canned text sits inside .ai-response > p.
   When the gate fires we want the same amber-left-border treatment. */
.results-answer .ai-response p.gate-response {
  border-left: 3px solid var(--color-accent-2, #c9863a);
  padding-left: 1rem;
  font-style: italic;
  color: var(--color-secondary, #1f4332);
}

/* ── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 768px) {
  .ask-landing {
    padding: 2.5rem 1.2rem 2rem;
  }

  .ask-h1 {
    font-size: 1.4rem;
  }
}
