/* ===================== ASK COINLOBSTER (shared card component) =====================
   The interactive question box rendered by src/assets/js/ask-box.js on the
   homepage hero (home-ai.ejs) and the classic landing (landing.ejs). NO model:
   every starter chip is one Redis read rendered as a data card, four zones and
   never a paragraph: subject + freshness pill, ONE number with its denominator,
   a flow bar and chips, one action.

   These .ask-* rules were shared out of landing.css so both pages render an
   identical card. Tokens are --cl-* from brand-character.css, which BOTH pages
   load. The page-specific WRAPPER (.lp-ask on landing, .hd-ask in the hero via
   ai-first.css) stays with each page; only the card itself lives here. */

.ask-head { text-align: center; margin-bottom: 20px; }

.ask-starters { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; }
.ask-starter { font-family: var(--cl-disp); font-size: 0.82rem; font-weight: 600; line-height: 1.25; color: var(--cl-cream); background: rgba(47,177,230,0.09); border: 1px solid rgba(47,177,230,0.28); border-radius: 999px; padding: 9px 16px; cursor: pointer; text-align: left; transition: background-color 0.14s ease-out, border-color 0.14s ease-out, transform 0.12s var(--cl-ease); }
.ask-starter:hover { background: rgba(47,177,230,0.18); border-color: var(--cl-sky); }
.ask-starter:active { transform: translateY(1px); }
.ask-starter.is-on { background: var(--cl-sky); border-color: var(--cl-sky); color: var(--cl-deep-ink); }

.ask-out { margin-top: 20px; }
.ask-card { background: rgba(10,30,48,0.7); border: 1px solid var(--cl-hair); border-radius: 14px; padding: 18px 20px; }
.ask-loading { color: var(--cl-cream-dim); font-size: 0.85rem; }
.ask-empty { margin: 0; color: var(--cl-cream-mut); font-size: 0.88rem; line-height: 1.45; }

/* One line, only when the answer is not literally what was asked (unparsed
   question, coin with no record, advice-shaped question). Never decorative. */
.ask-lead { margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px solid var(--cl-hair); font-size: 0.82rem; color: var(--cl-cream-mut); line-height: 1.4; }
.ask-cardhead { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.ask-subject { font-family: var(--cl-disp); font-size: 0.95rem; font-weight: 800; color: var(--cl-cream); letter-spacing: -0.01em; }
.ask-pill { font-family: var(--cl-mono); font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--cl-cream-dim); background: rgba(255,246,234,0.07); border-radius: 999px; padding: 3px 9px; }
.ask-pill-stale { color: var(--cl-gold); background: rgba(247,193,30,0.12); }

.ask-big { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.ask-big-v { font-family: var(--cl-disp); font-size: clamp(2rem, 5.5vw, 3rem); font-weight: 800; letter-spacing: -0.04em; color: var(--cl-cream); line-height: 1; }
.ask-big-v.ask-up { color: var(--cl-mint); }
.ask-big-v.ask-down { color: var(--cl-red); }
.ask-big-v.ask-flag { color: var(--cl-gold); }
.ask-big-l { font-size: 0.86rem; color: var(--cl-cream-mut); line-height: 1.35; }

.ask-bar { display: flex; height: 8px; border-radius: 999px; overflow: hidden; background: var(--cl-red); margin-bottom: 6px; }
.ask-bar-buy { display: block; height: 100%; background: var(--cl-mint); }
.ask-bar-legend { display: flex; justify-content: space-between; font-family: var(--cl-mono); font-size: 0.68rem; margin-bottom: 14px; }
.ask-leg-buy { color: var(--cl-mint); }
.ask-leg-sell { color: var(--cl-red); }

.ask-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ask-chip { display: inline-flex; flex-direction: column; gap: 1px; background: rgba(255,246,234,0.05); border: 1px solid var(--cl-hair); border-radius: 10px; padding: 7px 12px; }
.ask-chip b { font-family: var(--cl-mono); font-size: 0.85rem; font-weight: 700; color: var(--cl-cream); }
.ask-chip i { font-style: normal; font-size: 0.66rem; color: var(--cl-cream-dim); }
.ask-chip.ask-up b { color: var(--cl-mint); }
.ask-chip.ask-down b { color: var(--cl-red); }
.ask-chip.ask-flag b { color: var(--cl-gold); }

.ask-note { margin: 12px 0 0; font-size: 0.72rem; color: var(--cl-cream-dim); line-height: 1.4; }

.ask-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 18px; }
.ask-arm { font-family: var(--cl-disp); font-size: 0.9rem; font-weight: 700; color: #2a0b04; background: var(--cl-orange); border: none; border-radius: 100px; padding: 12px 22px; cursor: pointer; box-shadow: 0 5px 0 var(--cl-orange-deep); transition: transform 0.12s var(--cl-ease), box-shadow 0.12s var(--cl-ease); }
.ask-arm:hover { transform: translateY(2px); box-shadow: 0 3px 0 var(--cl-orange-deep); }
.ask-arm[disabled] { opacity: 0.6; cursor: default; transform: none; }
.ask-link { font-family: var(--cl-disp); font-size: 0.84rem; font-weight: 700; color: var(--cl-sky); text-decoration: none; }
.ask-link:hover { color: var(--cl-sky); text-decoration: underline; }

.ask-form { display: flex; gap: 8px; margin-top: 18px; justify-content: center; flex-wrap: wrap; }
.ask-input { flex: 1 1 320px; max-width: 420px; font-size: 0.88rem; color: var(--cl-cream); background: rgba(10,30,48,0.8); border: 1px solid var(--cl-hair); border-radius: 999px; padding: 11px 18px; }
.ask-input::placeholder { color: var(--cl-cream-dim); }
.ask-input:focus { outline: none; border-color: var(--cl-sky); }
.ask-send { font-family: var(--cl-disp); font-size: 0.86rem; font-weight: 700; color: var(--cl-cream); background: rgba(47,177,230,0.16); border: 1px solid rgba(47,177,230,0.35); border-radius: 999px; padding: 11px 22px; cursor: pointer; }
.ask-send:hover { background: rgba(47,177,230,0.28); }

/* The ceiling. Deliberately looks DIFFERENT from the answerable chips above:
   these do not answer here, they go to the connector, so they must not read as
   more of the same row. Dashed outline, no fill, arrow glyph. */
.ask-deeper { margin: 26px 0 0; padding-top: 20px; border-top: 1px solid var(--cl-hair); text-align: center; }
.ask-deeper-h { margin: 0 0 12px; font-size: 0.82rem; color: var(--cl-cream-mut); }
.ask-deeper-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 14px; }
.ask-deeper-chip { font-size: 0.78rem; font-weight: 600; color: var(--cl-cream-mut); background: transparent; border: 1px dashed rgba(255,246,234,0.28); border-radius: 999px; padding: 8px 15px; text-decoration: none; transition: color 0.14s ease-out, border-color 0.14s ease-out; }
.ask-deeper-chip::after { content: ' \2192'; color: var(--cl-sky); }
.ask-deeper-chip:hover { color: var(--cl-cream); border-color: var(--cl-sky); }
.ask-connect-cta { display: inline-flex; align-items: center; gap: 7px; font-family: var(--cl-disp); font-size: 0.84rem; font-weight: 700; color: var(--cl-sky); text-decoration: none; }
.ask-connect-cta:hover { color: var(--cl-sky); text-decoration: underline; }

/* Shown inside a card ONLY when the box could not answer. Its own row, tinted
   in the connector's blue so it reads as a different offer from the orange arm
   button rather than a third option of the same kind. */
.ask-ai { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 16px; padding: 13px 16px; background: rgba(47,177,230,0.1); border: 1px solid rgba(47,177,230,0.32); border-radius: 12px; }
.ask-ai-txt { display: flex; flex-direction: column; gap: 2px; }
.ask-ai-title { font-family: var(--cl-disp); font-size: 0.88rem; font-weight: 800; color: var(--cl-cream); }
.ask-ai-sub { font-size: 0.74rem; color: var(--cl-cream-mut); }
.ask-ai-go { flex: 0 0 auto; font-family: var(--cl-disp); font-size: 0.82rem; font-weight: 700; color: var(--cl-deep-ink); background: var(--cl-sky); border-radius: 100px; padding: 9px 18px; text-decoration: none; white-space: nowrap; }
.ask-ai-go:hover { color: var(--cl-deep-ink); filter: brightness(1.08); }

@media (max-width: 640px) {
    .ask-starter { font-size: 0.78rem; padding: 8px 13px; }
    .ask-card { padding: 15px 15px; }
    .ask-foot { gap: 12px; }
    .ask-arm { width: 100%; }
    .ask-ai-go { width: 100%; text-align: center; }
}
