/* ask.allodi.us: on top of allodi.us's site.css (served from the main site's files by Caddy). */
.ask-head { padding: 2.5rem 0 1rem; }
.ask-head h1 { margin: 0 0 .5rem; }
.ask-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; background: var(--paper); }
.ask-form .row { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1rem; }
.ask-form .row > label { flex: 1 1 12rem; display: flex; flex-direction: column; gap: .35rem; font-weight: 600; }
.ask-form select, .ask-form textarea, .ask-gate input {
  font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--line-strong);
  border-radius: var(--radius); padding: .6rem .7rem; width: 100%; box-sizing: border-box; }
.ask-form textarea { min-height: 7rem; resize: vertical; }
.ask-form .qlabel { display: block; font-weight: 600; margin-bottom: .35rem; }
.ask-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; margin-top: .75rem;
  font-size: .9rem; color: var(--ink-2); }
.ask-meta button.linklike { background: none; border: 0; padding: 0; color: var(--accent); font: inherit;
  text-decoration: underline; cursor: pointer; }
.ask-thread { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.ask-q { font-weight: 600; border-left: 3px solid var(--accent); padding-left: .75rem; white-space: pre-wrap; }
.ask-a { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem; background: var(--paper-2); }
.ask-a p, .ask-a ul, .ask-a ol { margin: 0 0 .75rem; }
.ask-a p:last-child, .ask-a ul:last-child, .ask-a ol:last-child { margin-bottom: 0; }
.ask-sources { font-size: .9rem; color: var(--ink-2); margin-top: .75rem; }
.ask-status { margin-top: 1rem; min-height: 1.5rem; }
.ask-status.err { color: #a12a1a; }
.ask-gate { margin-top: 1.5rem; border: 1px solid var(--accent); border-radius: var(--radius); padding: 1.25rem;
  background: var(--accent-soft); }
.ask-gate h2 { margin-top: 0; font-size: 1.25rem; }
.ask-gate .row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: end; }
.ask-gate .row label { flex: 1 1 14rem; display: flex; flex-direction: column; gap: .35rem; font-weight: 600; }
.ask-gate .fine { font-size: .85rem; color: var(--ink-2); margin-bottom: 0; }
.ask-waiting::after { content: " ."; animation: askdots 1.2s steps(3, end) infinite; }
.ask-waiting-box { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.25rem; font-size: 1.1rem;
  border: 2px solid var(--accent); border-radius: var(--radius); background: var(--accent-soft);
  animation: askflash 1.6s ease-in-out infinite; }
.ask-spinner { flex: 0 0 auto; width: 1.4rem; height: 1.4rem; border-radius: 50%; border: 3px solid var(--accent);
  border-right-color: transparent; animation: askspin .9s linear infinite; }
@keyframes askflash { 0%, 100% { background: var(--accent-soft); } 50% { background: var(--paper); } }
@keyframes askspin { to { transform: rotate(360deg); } }
@keyframes askdots { 0% { content: " ."; } 33% { content: " .."; } 66% { content: " ..."; } }
@media (prefers-reduced-motion: reduce) {
  .ask-waiting::after { animation: none; content: " ..."; }
  .ask-waiting-box, .ask-spinner { animation: none; }
}
.ask-list { padding-left: 1.2rem; }
.ask-list li { margin-bottom: .4rem; }
.answer-body { max-width: var(--measure); }
.answer-body h2 { margin-top: 2rem; }
.answer-cta { margin: 2rem 0; }
[hidden] { display: none !important; }
@media (prefers-color-scheme: dark) { .ask-status.err { color: #f08a7a; } }
