/* Ask for a study (js/ask.js), design canvas page 3 · Generate: boards Generate A and D. Phone first.
   Also the plain #/requests placeholder (js/requests.js). Tokens from site.css and home.css. */

body[data-view="ask"] .wrap { max-width: 430px; padding: 0 20px 0; }

.ask { display: flex; flex-direction: column; gap: 22px; font: 400 15px/1.5 var(--ui); color: var(--text); padding-bottom: 40px; }
.ask a { color: inherit; text-decoration: none; }
.ask-form { display: flex; flex-direction: column; gap: 22px; }
.ask-xs { font-size: 12px; line-height: 1.4; }
.ask-sm { font-size: 13px; }
.ask-muted { color: var(--muted); }
.ask-text { color: var(--text); }
.ask-gold { color: var(--gold) !important; }
.ask-center { text-align: center; }
.ask-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.ask-head { display: flex; align-items: center; height: 44px; margin: 0 -8px -12px; }
.ask-back { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 8px; font-size: 13px; color: var(--muted) !important; }
.ask-back-i { width: 18px; height: 18px; transform: rotate(180deg); }
.ask-back:focus-visible, .ask-chip:focus-visible, .ask-tile:focus-visible, .ask-btn:focus-visible, .ask-again:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.ask-h1 { font: 400 32px/1.12 var(--read); margin: 0; letter-spacing: -.005em; }
.ask-help { margin: 6px 0 0; }
.ask-lab { font: 600 11px/1.4 var(--ui); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }

.ask-field { display: flex; flex-direction: column; gap: 10px; }
.ask-field[hidden] { display: none; }
.ask-box {
  width: 100%; resize: vertical; min-height: 110px; padding: 14px; border: 1px solid var(--gold); border-radius: 12px;
  background: var(--panel); color: var(--text); font: 400 17px/1.45 var(--read); outline: none;
}
.ask-box-quiet { border-color: var(--line-strong); font-size: 16px; min-height: 88px; }
.ask-box-quiet:focus { border-color: var(--gold); }

/* "Make it as": a row of template tiles that scrolls sideways when there are more than fit. */
.ask-tiles { display: flex; gap: 10px; overflow-x: auto; margin-right: -20px; padding-right: 20px; scrollbar-width: none; }
.ask-tiles::-webkit-scrollbar { display: none; }
.ask-tile {
  flex: none; width: 150px; min-height: 112px; padding: 14px; border: 1px solid var(--line-strong); border-radius: 14px;
  background: var(--panel); display: flex; flex-direction: column; gap: 6px; text-align: left; color: var(--text);
  font: inherit; cursor: pointer;
}
.ask-tile.on { border-color: var(--gold); background: var(--keywash); }
.ask-tile-name { font: 400 18px/1.2 var(--read); }
.ask-tile-desc { font-size: 12px; line-height: 1.35; color: var(--muted); }

/* Lens and template chips */
.ask-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.ask-chip {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--line-strong);
  border-radius: 999px; background: transparent; color: var(--muted); font: 500 13px/1 var(--ui); cursor: pointer;
}
.ask-chip.on { background: var(--keywash); border-color: var(--gold); color: var(--text); }

/* Optional title: a quiet link until opened */
.ask-title-wrap { display: flex; flex-direction: column; }
.ask-title-wrap [hidden] { display: none; }
.ask-more {
  align-self: flex-start; min-height: 44px; padding: 0; border: 0; background: none; color: var(--muted);
  font: 500 13px/1 var(--ui); text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.ask-more:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.ask-title {
  width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 12px;
  background: var(--panel); color: var(--text); font: 400 17px/1.3 var(--read); outline: none;
}
.ask-title:focus { border-color: var(--gold); }
.ask-title::placeholder { color: var(--muted); }

.ask-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 18px; width: 100%;
  border-radius: 12px; border: 1px solid var(--gold); background: var(--gold); color: var(--ground); font: 500 15px/1 var(--ui); cursor: pointer;
}
.ask-btn:disabled { opacity: .6; cursor: default; }
.ask-note:empty { display: none; }
.ask-note { margin: 0; text-align: center; }

/* Study this: the verse it starts from */
.ask-from { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.ask-verse { font: italic 400 17px/1.4 var(--read); margin: 0; }

/* Your requests */
.ask-yours { border-top: 1px solid var(--line); padding-top: 16px; display: flex; flex-direction: column; gap: 2px; }
.ask-yrow { display: flex; align-items: center; gap: 12px; min-height: 56px; }
.ask-ring { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--gold); flex: none; }
.ask-yicon { width: 14px; height: 14px; color: var(--text); }
.ask-ybody { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ask-yt { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ask-again {
  min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--gold); font: 400 13px var(--ui); cursor: pointer; flex: none;
}

/* #/requests placeholder: plain, dark, no design work */
.rq { font-family: var(--ui); font-size: 15px; display: flex; flex-direction: column; gap: 16px; }
.rq-form { display: flex; flex-direction: column; gap: 12px; }
.rq-form label { display: flex; flex-direction: column; gap: 4px; }
.rq textarea, .rq select, .rq button {
  font: inherit; color: var(--text); background: var(--panel); border: 1px solid var(--line-strong); border-radius: 10px; padding: 10px;
}
.rq button { min-height: 44px; cursor: pointer; align-self: flex-start; padding: 0 16px; }
.rq-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.rq-list li { padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
