/* design/site/feedback.css
 * Reader feedback (feedback.js), linked only on the pages that carry it: the card mid-page, the speech mark after a
 * paragraph, the panel under it, the end-of-page question on Go deeper pages, the Comments on switch and the footer's
 * Give feedback. A quiet layer in the site's own tokens: no new colour, no new type size.
 */
.fbk-card { display: grid; gap: var(--space-10); justify-items: start; max-width: var(--measure); margin: var(--space-40) 0; padding: var(--space-20) var(--space-24);
  border-radius: var(--r-lg); background: var(--paper); box-shadow: var(--ring-1) var(--line-strong); }
.fbk-k { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: var(--text-label); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-dim); }
.fbk-t { margin: 0; font-size: 1.0625rem; line-height: 1.5; color: var(--ink); max-width: 52ch; }
.fbk-t:focus { outline: none; }
.fbk-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-8) var(--space-16); }
.fbk-q { min-height: 44px; padding: 0 var(--space-4); border: 0; background: transparent; color: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: .9375rem;
  text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: .2em; cursor: pointer; }
.fbk-q:hover { text-decoration-color: currentColor; }

.fbk-mk { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin: calc(-1 * var(--space-6)) 0 calc(-1 * var(--space-6)) var(--space-4);
  padding: 0; border: 0; border-radius: var(--r-round); background: transparent; color: var(--ink-dim); vertical-align: middle; cursor: pointer;
  transition: color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out); }
.fbk-mk svg { width: 18px; height: 18px; }
.fbk-nw { white-space: nowrap; }
.fbk-mk:hover, .fbk-mk[aria-expanded="true"] { color: var(--action); background: var(--action-tint); }
.fbk-mk.sent { color: var(--action); }
.fbk-mk.sent svg path { fill: currentColor; }
/* less clutter (the operator, 2026-10-19): with a mouse a mark shows only on the hovered paragraph, or when focused,
   open or used; on touch screens, which have no hover, every mark shows, fainter */
@media (hover: hover) and (pointer: fine) {
  .fbk-mk { opacity: 0; transition: opacity var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out); }
  p:hover .fbk-mk, .fbk-mk:focus-visible, .fbk-mk[aria-expanded="true"], .fbk-mk.sent { opacity: 1; }
}
@media (hover: none) { .fbk-mk:not([aria-expanded="true"]):not(.sent) { opacity: .55; } }

.fbk-panel { max-width: var(--measure); margin: 0 0 var(--space-24); padding: var(--space-16) var(--space-20); border-radius: var(--r-md); background: var(--paper); box-shadow: var(--ring-1) var(--line-strong); }
.fbk-form { display: grid; gap: var(--space-12); justify-items: start; }
.fbk-h { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: var(--text-title); line-height: 1.2; letter-spacing: -0.015em; }
.fbk-re { display: flex; flex-wrap: wrap; gap: var(--space-8); }
.fbk-chip { min-height: 40px; padding: 0 var(--space-16); border: 0; border-radius: var(--r-pill); background: var(--ground); color: var(--ink); box-shadow: var(--ring-1) var(--line-strong);
  font-family: var(--font-display); font-weight: 600; font-size: .9375rem; cursor: pointer; }
.fbk-chip:hover { box-shadow: var(--ring-15) var(--ink); }
.fbk-chip[aria-pressed="true"] { background: var(--action); color: var(--on-action); box-shadow: none; }
.fbk-l { display: grid; gap: var(--space-6); width: 100%; font-family: var(--font-display); font-weight: 500; font-size: .875rem; color: var(--ink-dim); }
.fbk-ta { width: 100%; min-height: 5.5rem; padding: var(--space-10) var(--space-14); border: 1.5px solid var(--line-strong); border-radius: var(--r-md); background: var(--ground); color: var(--ink);
  font-family: var(--font-body); font-size: 1rem; line-height: 1.5; resize: vertical; }
.fbk-ta:focus { outline: none; border-color: var(--action); box-shadow: var(--halo-4) color-mix(in srgb, var(--action) 18%, transparent); }
.fbk-em { width: 100%; display: grid; gap: var(--space-6); }
/* the Turnstile check: empty unless Turnstile asks for a click (2026-10-19) */
.fbk-ts:empty { display: none; }
.fbk-em-in { height: 44px; }
.fbk-note { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: .875rem; line-height: 1.45; color: var(--ink-dim); }
.fbk-note .fbk-q { min-height: 32px; font-size: .875rem; }
.fbk-addr { font-family: var(--font-mono); font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }
.fbk-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.fbk-st { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: .875rem; color: var(--ink); }
.fbk-st:empty { display: none; }
.fbk-thanks { gap: var(--space-4); }

.fbk-end { max-width: var(--measure); margin: var(--space-56) 0 var(--space-40); padding: var(--space-24); border-radius: var(--r-lg); background: var(--paper); box-shadow: var(--ring-1) var(--line-strong); }

.fbk-pill { position: fixed; left: 16px; bottom: 16px; z-index: 30; display: inline-flex; align-items: center; gap: var(--space-8); min-height: 44px; padding: 0 var(--space-6) 0 var(--space-16);
  border-radius: var(--r-pill); background: var(--paper); color: var(--ink); box-shadow: var(--sh-float); font-family: var(--font-display); font-weight: 600; font-size: .875rem; }
.fbk-pill > span::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: var(--space-8); border-radius: var(--r-round); background: var(--action); vertical-align: middle; }
.fbk-pill .fbk-q { font-size: .875rem; color: var(--ink-dim); }
.fbk-pill.off > span::before { background: var(--line-strong); }
/* where the left menu shows (site.css hides .rail at 1100px and below), its switch replaces the pill */
@media (min-width: 1100.02px) { .fbk-pill { display: none; } }
.fbk-rail { margin-top: var(--space-16); }
.fbk-switch { display: inline-flex; align-items: center; gap: var(--space-10); min-height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer;
  font-family: var(--font-display); font-weight: 600; font-size: .875rem; color: var(--ink); }
.fbk-switch-t { position: relative; width: 34px; height: 20px; border-radius: var(--r-pill); background: var(--line-strong); transition: background var(--dur-fast) var(--ease-out); }
.fbk-switch-t::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: var(--r-round); background: var(--paper);
  box-shadow: var(--sh-float); transition: transform var(--dur-fast) var(--ease-out); }
.fbk-switch[aria-checked="true"] .fbk-switch-t { background: var(--action); }
.fbk-switch[aria-checked="true"] .fbk-switch-t::after { transform: translateX(14px); }
.fbk-switch:focus-visible { outline: 2px solid var(--action); outline-offset: 4px; border-radius: var(--r-sm); }

/* the footer's Give feedback, a button dressed as the legal row's links (site.css .foot-row .legal a) */
.fbk-foot { display: inline-flex; align-items: center; min-height: 44px; margin: 0; padding: 0; border: 0; background: transparent; cursor: pointer;
  font-family: var(--font-display); font-weight: 500; font-size: .875rem; line-height: 1.4; color: var(--on-stage-dim); text-decoration: none; }
.fbk-foot:hover { color: var(--stage-ink); text-decoration: underline; }

@media (prefers-reduced-motion: reduce) { .fbk-mk, .fbk-switch-t, .fbk-switch-t::after { transition: none; } }
