/* Questions, ratings and "Needs you" (FEATURES 10, 11, 14): the open question in an ice box with the answer under
   it, answered questions as question-then-answer pairs, the four faces with their words, and what a request on the
   requester's Home needs from them. */

.asks, .rate { display: grid; gap: 14px; }
.asks .link-btn, .rate .link-btn { justify-self: start; padding: 0; color: var(--navy); }

/* The open question: flat ice, the question big. */
.ask-open { display: grid; gap: 6px; padding: 16px; border-radius: 14px; background: var(--ice); }
.ask-for { display: flex; align-items: center; gap: 8px; color: var(--navy); font-weight: 900; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.ask-for .ic { width: 20px; height: 20px; color: var(--deep); }
.ask-q { color: var(--navy); font-weight: 800; font-size: 20px; line-height: 1.35; overflow-wrap: anywhere; white-space: pre-line; }
.ask-q.small { font-size: 18px; padding: 12px 14px; border-radius: 12px; background: var(--ice); }
.ask-by { color: var(--gray); font-size: 17px; }
.ask-answer { display: grid; gap: 10px; justify-items: start; }
.ask-answer .field { width: 100%; }

/* Answered questions: the question, who asked, then the answer under a hairline. */
.qa { list-style: none; padding: 0; display: grid; gap: 12px; }
.qa li { display: grid; gap: 4px; padding: 14px 16px; border: 1px solid var(--hair); border-radius: 14px; }
.qa-q { color: var(--navy); font-weight: 800; overflow-wrap: anywhere; white-space: pre-line; }
.qa-a { margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--hair); color: var(--navy); overflow-wrap: anywhere; white-space: pre-line; }

/* The four faces: one row of equal buttons, the word under each face. */
.faces { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; max-width: 520px; }
.face-btn {
  display: grid; justify-items: center; gap: 6px; min-height: 88px; padding: 12px 4px; border: 1px solid var(--hair); border-radius: 16px;
  background: var(--white); color: var(--navy); font: inherit; font-weight: 800; cursor: pointer;
}
.face-btn .face { width: 36px; height: 36px; stroke-width: 1.6; color: var(--deep); }
.face-btn span { font-size: 17px; line-height: 1.2; text-align: center; overflow-wrap: anywhere; }
.face-btn:hover { border-color: var(--navy); }
.face-btn[aria-checked="true"] { background: var(--fill); border-color: var(--fill); color: var(--on-fill); }
.face-btn[aria-checked="true"] .face { color: var(--fill-icon); }
.rated { display: flex; align-items: center; gap: 10px; color: var(--navy); font-weight: 800; overflow-wrap: anywhere; }
.rated .face { width: 32px; height: 32px; color: var(--deep); }
.rated-note { color: var(--navy); padding: 12px 14px; border-radius: 12px; background: var(--off); overflow-wrap: anywhere; white-space: pre-line; }

/* "Needs you": what each one needs, above its row. */
.needs-you .reqs > li + li { border-top: 1px solid var(--hair); }
.need-what { display: flex; align-items: flex-start; gap: 8px; margin: 10px 12px 0; color: var(--navy); font-weight: 800; overflow-wrap: anywhere; }
.need-what .ic { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--deep); }
.need-what span { min-width: 0; }
.needs-retry { margin: 0 12px 12px; }

@media (prefers-reduced-motion: no-preference) {
  .face-btn { transition: background .15s var(--ease), border-color .15s var(--ease); }
}
