/* tolafood.com, after styles.css: the feedback forms (docs/FEEDBACK.md). /feedback names this file; a food page
   loads it with "Report an error" (js/food.js), so it is no part of a food page's first load. */
.fb p{margin:0}
.fb fieldset{min-width:0;margin:0;padding:0;border:0}
.fb-choice{display:flex;align-items:center;gap:12px;min-height:44px;margin:0 -12px;padding:0 12px;border-radius:12px;font:400 16px/22px var(--font);cursor:pointer}
.fb-choice:hover,.fb-choice:has(:checked){background:var(--field)}
.fb-choice:has(:checked){font-weight:500}
.fb-choice:has(:focus-visible){outline:2px solid var(--ink);outline-offset:-2px}
.fb-choice input{width:18px;height:18px;margin:0;accent-color:var(--ink);outline:0;flex:none}
.fb-field{display:block;width:100%;min-height:96px;margin:0;padding:12px 14px;border:0;border-radius:14px;background:var(--field);color:var(--ink);font:400 16px/24px var(--font);resize:vertical}
.fb-field::placeholder{color:var(--ink-2);opacity:1}
.fb-field:focus-visible{border-radius:14px}
/* Under the field: what is sent (the same line says when it could not be sent), then Send */
.fb-row{display:grid;gap:16px;margin-top:12px}
.fb-row p{color:var(--ink-2);font:400 13px/20px var(--font)}
.fb-row p.fail{color:var(--ink);font-weight:500}
.fb .btn{height:44px}
.btn[aria-disabled=true]{cursor:default;opacity:.6}
/* Sent: a tick and the thanks */
.fb-ok{position:relative;display:flex;flex-direction:column;justify-content:center;min-height:44px;padding-left:58px;color:var(--ink-2);font:400 15px/22px var(--font)}
.fb-ok b{color:var(--ink);font:600 17px/24px var(--font);letter-spacing:-.01em}
.fb-ok::before{content:"";position:absolute;left:0;top:50%;width:44px;height:44px;margin-top:-22px;border-radius:50%;background:var(--field)}
.fb-ok::after{content:"";position:absolute;left:18px;top:50%;width:8px;height:14px;margin-top:-10px;border:solid var(--ink);border-width:0 2px 2px 0;border-radius:1px;transform:rotate(45deg)}

/* /feedback: the form is a card of the reading column; the reply line sits under it, quiet */
.fb-card{--field:var(--well);margin-top:24px;padding:20px;border-radius:24px;background:var(--surface)}
.fb-card .fb-field{min-height:168px}
.fb-card.fb-ok{min-height:84px;padding-left:78px}
.fb-card.fb-ok::before{left:20px}
.fb-card.fb-ok::after{left:38px}
.fb-card.fb-ok:focus{outline:0}
.doc .fb-note{margin:16px 0 0;padding:0 20px;color:var(--ink-2);font:400 15px/24px var(--font)}
.fb-note a{color:var(--ink)}
@media(min-width:720px){
 .fb-card .fb-row{grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:24px;margin-top:16px}
 .fb-card .btn{height:40px;min-width:96px}
}

/* "Report an error": a modal dialog (the native element: Escape closes it, focus stays inside and returns) */
.dlg{--field:var(--float-sel);width:min(440px,calc(100% - 24px));max-height:calc(100dvh - 24px);margin:auto;padding:0;border:0;border-radius:24px;background:var(--float);color:var(--ink);box-shadow:var(--shadow-float);overflow:auto;overscroll-behavior:contain}
.dlg::backdrop{background:light-dark(rgba(0,0,0,.32),rgba(0,0,0,.6))}
.dlg form{padding:20px 24px 24px}
.dlg-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:12px}
.dlg-head h2{outline:0;font:600 20px/28px var(--font);letter-spacing:-.015em}
.dlg-head p{color:var(--ink-2);font:400 15px/22px var(--font);overflow-wrap:anywhere}
.dlg-head .ib{margin:-6px -10px 0 0;background:var(--field)}
.dlg-head .ib:hover{background:var(--raised-2)}
.dlg .fb-field{margin-top:8px}
.dlg .fb-ok{margin:8px 0 24px}
.dlg .btn{width:100%}
@media(max-width:719px){
 .dlg form{padding:16px 20px 20px}
 .dlg-head .ib{width:40px;height:40px}
}
@media(prefers-reduced-motion:no-preference){
 .dlg,.dlg::backdrop{transition:opacity .18s,transform .18s cubic-bezier(.2,.8,.2,1),overlay .18s allow-discrete,display .18s allow-discrete;opacity:0}
 .dlg{transform:translateY(12px) scale(.98)}
 .dlg[open],.dlg[open]::backdrop{opacity:1;transform:none}
 @starting-style{
  .dlg[open],.dlg[open]::backdrop{opacity:0}
  .dlg[open]{transform:translateY(12px) scale(.98)}
 }
}
