/* Suggest an update. Loaded only on faire pages. */

.suggest-line{margin:8px 2px 16px}
.suggest-open{
  font:inherit;
  font-size:.95rem;
  font-weight:600;
  color:#6b1d2a;
  background:transparent;
  border:0;
  padding:10px 0;
  min-height:44px;
  text-decoration:underline;
  text-underline-offset:3px;
  cursor:pointer;
}
.suggest-open:hover{color:#4a1019}
.suggest-open:focus-visible{outline:3px solid #e0b84a;outline-offset:2px}

#suggest-dialog{
  position:fixed;
  inset:0;
  margin:auto;
  height:fit-content;
  font-family:var(--sans,Inter,system-ui,sans-serif);
  color:#f4ead5;
  background:
    linear-gradient(180deg,rgba(42,15,22,.97),rgba(32,12,18,.98));
  border:1px solid rgba(224,184,74,.55);
  border-radius:16px;
  padding:16px 16px 18px;
  width:min(480px,calc(100% - 32px));
  max-width:calc(100% - 32px);
  max-height:min(860px,calc(100dvh - 32px));
  overflow:auto;
  box-sizing:border-box;
  box-shadow:0 18px 40px rgba(0,0,0,.45);
}
#suggest-dialog::backdrop{background:rgba(16,8,12,.84)}
#suggest-dialog h2{
  margin:0;
  font-family:var(--serif,Georgia,serif);
  font-size:clamp(1.55rem,4vw,1.9rem);
  line-height:1.1;
  color:#e0b84a;
  font-weight:700;
}
.suggest-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}
.suggest-close{
  flex:0 0 auto;
  font:inherit;
  font-weight:600;
  font-size:.95rem;
  color:#f4ead5;
  background:transparent;
  border:1px solid rgba(224,184,74,.7);
  border-radius:999px;
  min-height:44px;
  padding:8px 14px;
  cursor:pointer;
}
.suggest-close:hover{background:rgba(224,184,74,.14)}
.suggest-close:focus-visible,.suggest-submit:focus-visible,.suggest-chip:focus-within,
#suggest-dialog input:focus-visible,#suggest-dialog textarea:focus-visible{
  outline:3px solid #e0b84a;
  outline-offset:2px;
}
#suggest-form{display:flex;flex-direction:column;gap:6px;margin:0}
#suggest-form label,#suggest-form legend{
  font-weight:600;
  font-size:.92rem;
  color:#f0d78c;
}
#suggest-form fieldset{border:0;margin:6px 0 0;padding:0;min-width:0}
#suggest-dialog input[type=text],
#suggest-dialog input[type=url],
#suggest-dialog input[type=email],
#suggest-dialog textarea{
  font:inherit;
  font-size:16px;
  width:100%;
  max-width:100%;
  box-sizing:border-box;
  color:#2a1d12;
  background:#fffdf8;
  border:1px solid rgba(224,184,74,.45);
  border-radius:10px;
  padding:10px 12px;
  margin:0 0 6px;
}
#suggest-faire{background:#efe4cc}
#suggest-dialog textarea{min-height:96px;resize:vertical}
.suggest-chips{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 4px}
.suggest-chip{
  position:relative;
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:8px 12px;
  border:1px solid rgba(224,184,74,.55);
  border-radius:999px;
  color:#f4ead5;
  background:transparent;
  font-weight:600;
  font-size:.92rem;
  cursor:pointer;
}
.suggest-chip input{
  position:absolute;
  opacity:0;
  width:1px;
  height:1px;
  margin:0;
}
.suggest-chip:has(input:checked){
  background:#e0b84a;
  color:#1e160d;
  border-color:#e0b84a;
}
.suggest-hp{
  position:absolute;
  left:0;
  top:0;
  width:1px;
  height:1px;
  padding:0;
  margin:0;
  border:0;
  overflow:hidden;
  clip:rect(0 0 0 0);
}
.suggest-err{min-height:0;margin:0;color:#ffc9c9;font-size:.92rem}
.suggest-err:empty{display:none}
.suggest-submit{
  font:inherit;
  font-weight:700;
  font-size:1rem;
  color:#1e160d;
  background:#e0b84a;
  border:0;
  border-radius:12px;
  min-height:48px;
  width:100%;
  margin-top:4px;
  cursor:pointer;
}
.suggest-submit:hover{background:#f0d78c}
.suggest-submit:disabled{opacity:.55;cursor:not-allowed}
.suggest-note{margin:8px 0 0;font-size:.86rem;line-height:1.4;color:#e0d0ae}
.suggest-thanks{margin:8px 0 0;font-family:var(--serif,Georgia,serif);font-size:1.25rem;line-height:1.35;color:#f4ead5}
.suggest-thanks:focus{outline:none}

@media (max-width:700px){
  #suggest-dialog{
    margin:0;
    top:0;
    right:0;
    bottom:0;
    left:0;
    width:100%;
    max-width:100%;
    height:100dvh;
    max-height:100dvh;
    border-radius:0;
    border-left:0;
    border-right:0;
    padding:16px 16px calc(16px + env(safe-area-inset-bottom));
  }
}
@media (prefers-reduced-motion:reduce){
  #suggest-dialog{scroll-behavior:auto}
}
