/* Optional feedback box (static/feedback.js): a quiet card, not a modal.
   Blue so it reads as separate from the green research controls (Sam, 19 Nov 2026). */
.feedback-card {
  --fb-blue: #2a5ea8; --fb-blue-hover: #234f8f; --fb-tint: #f1f6fd; --fb-line: #c9daf1; --fb-ring: rgb(42 94 168 / 14%);
  box-sizing: border-box; width: min(720px, 100%); margin: 10px 0 18px; padding: 8px 8px 8px 12px;
  border: 1px solid var(--fb-line); border-radius: 10px; background: var(--fb-tint);
  box-shadow: 0 1px 2px rgb(16 24 40 / 4%); opacity: 0; transform: translateY(6px); transition: opacity .45s ease, transform .45s ease;
}
.feedback-card.is-shown { opacity: 1; transform: none; }
/* On the home page the bar is centred; its contents stay left-aligned. */
.feedback-card[data-placement="home"] { margin: -6px auto 22px; }
.feedback-form { display: flex; align-items: flex-end; gap: 8px; }
.feedback-label { flex: none; align-self: center; padding: 2px 9px 2px 0; border-right: 1px solid var(--fb-line); color: var(--fb-blue); font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.feedback-field { position: relative; flex: 1; min-width: 0; }
.feedback-input { display: block; box-sizing: border-box; width: 100%; min-height: 34px; max-height: 120px; margin: 0; padding: 7px 2px; border: 0; outline: none; resize: none; background: transparent; color: var(--ink); font: inherit; font-size: 14px; line-height: 20px; text-align: left; }
.feedback-hint { position: absolute; inset: 7px auto auto 2px; max-width: 100%; overflow: hidden; color: #5f7391; font-size: 14px; line-height: 20px; text-align: left; white-space: nowrap; text-overflow: ellipsis; pointer-events: none; opacity: .9; transition: opacity .26s ease; }
.feedback-hint.is-fading { opacity: 0; }
.feedback-send { flex: none; height: 32px; padding: 0 14px; border: 1px solid var(--fb-blue); border-radius: 7px; background: var(--fb-blue); color: #fff; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: background-color .2s ease; }
.feedback-send:not(:disabled):hover { border-color: var(--fb-blue-hover); background: var(--fb-blue-hover); }
.feedback-send:disabled { border-color: var(--fb-line); background: transparent; color: #7d8ea8; cursor: default; }
.feedback-close { flex: none; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 7px; background: transparent; color: #6b7d97; cursor: pointer; }
.feedback-close:hover, .feedback-close:focus-visible { background: rgb(42 94 168 / 9%); color: var(--fb-blue); }
.feedback-send:focus-visible, .feedback-close:focus-visible { outline: 2px solid var(--fb-blue); outline-offset: 2px; }
.feedback-card .feedback-input:focus, .feedback-card .feedback-input:focus-visible { border: 0; outline: none; box-shadow: none; background: transparent; }
.feedback-card:focus-within { border-color: color-mix(in srgb, var(--fb-blue) 55%, var(--fb-line)); box-shadow: 0 0 0 3px var(--fb-ring); }
.feedback-status { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.feedback-status:empty { display: none; }
.feedback-status:not(:empty) { margin-top: 6px; }
.feedback-card.is-thanked .feedback-form { display: none; }
.feedback-card.is-thanked .feedback-status { margin: 0; padding: 6px 0; color: var(--fb-blue); font-size: 14px; font-weight: 500; }
@media (max-width: 768px) {
  .feedback-card { margin: 8px 0 14px; padding: 8px 8px 8px 12px; }
  .feedback-card[data-placement="home"] { margin: 0 auto 16px; }
  .feedback-form { flex-wrap: wrap; row-gap: 2px; }
  .feedback-label { flex-basis: 100%; padding: 2px 0 0; border-right: 0; font-size: 10.5px; }
  .feedback-input { min-height: 40px; font-size: 16px; }
  .feedback-hint { inset: 8px 0 auto 2px; white-space: normal; font-size: 14px; line-height: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .feedback-card, .feedback-hint { transition: none; transform: none; }
}
