/*
 * TAG Legal Desk v2.1: J224 (the Director, 30 Sep 2026: "in each job there should be a redo and the change thing",
 * "Tell Fred what to change needs to be at the top and bottom so it can be filled in any time").
 * js\job.js draws Tell Fred what to change twice: at the top of the job (right under its header and band, above the
 * emails, one compact line that grows) and at the bottom where it has always been. Both share one draft and send the
 * same amend. Redo it is the one button in each (Redo from scratch went on 7 Oct 2026: no server route).
 * Colours are the desk's own tokens, so light, dark, High contrast and forced colours follow them. Nothing here moves.
 */

/* ---------- the box at the top ---------- */
.ask-top { max-width: 1160px; margin: 0 auto 16px; padding: 10px 12px; gap: 6px; }
.ask-top-row { display: flex; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.ask-top label { flex: none; min-height: 44px; display: flex; align-items: center; font-size: .875rem; }
.ask.ask-top textarea { flex: 1 1 280px; width: auto; min-width: 0; min-height: 44px; padding: 10px 12px; }
.ask-top > .stages, .ask-top > .ask-off { padding: 2px 2px 0; }

/* ---------- both boxes ---------- */
.ask-btns { display: flex; align-items: center; justify-content: flex-end; gap: 6px; flex-wrap: wrap; }
.ask-top .ask-btns { flex: none; }
.ask .ask-off { color: var(--ink-2); font-weight: 600; }
.ask textarea[disabled] { opacity: .7; cursor: not-allowed; }
.ask .btn[disabled] { opacity: .5; cursor: not-allowed; }
.ask .btn-text[disabled]:hover { background: transparent; }

/* ---------- narrow screens: the label on its own line, then the words, then the button ---------- */
@media (max-width: 599px) {
  .ask-top { margin-bottom: 12px; }
  .ask-top-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .ask-top label { min-height: 0; }
  .ask-btns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px; }
  .ask-btns > .btn { min-width: 0; padding: 0 8px; font-size: .875rem; white-space: normal; text-align: center; line-height: 1.15; }
  .ask-btns > .btn:only-child { grid-column: 1 / -1; }
  .ask .row > .ask-btns { flex-basis: 100%; }
}

/* ---------- forced colours: an off box reads as off without its fade ---------- */
@media (forced-colors: active) {
  .ask .btn[disabled], .ask textarea[disabled] { opacity: 1; color: GrayText; border-color: GrayText; }
}
