body > header:has(.quick-research) { row-gap: 10px; }
.quick-research {
  grid-column: 1 / -1;
  grid-row: 2;
  justify-self: center;
  width: min(100%, 620px);
  padding: 2px 0 1px;
  text-align: center;
}
.quick-research[hidden] { display: none; }
.quick-research-heading {
  margin: 0 0 9px;
  color: #163c37;
  font: 600 20px/1.3 Manrope, system-ui, sans-serif;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.quick-research-heading strong { color: var(--accent, #895634); font-weight: 700; }
.quick-research-form {
  display: flex;
  align-items: center;
  gap: 5px;
  width: min(100%, 440px);
  margin: 0 auto;
  padding: 4px;
  border: 1px solid #89563480;
  border-radius: 28px;
  background: #fffdf8;
}
.quick-research-form:focus-within { outline: 2px solid #895634; outline-offset: 2px; }
.quick-research-form input {
  flex: 1;
  min-width: 0;
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  border-radius: 24px;
  padding: 9px 13px;
  color: #163c37;
  font: 400 16px/1.25 Manrope, system-ui, sans-serif;
}
.quick-research-form input::placeholder { color: #69776d; opacity: 1; }
.quick-research-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 19px;
  border: 0;
  border-radius: 23px;
  background: #163c37;
  color: #fffdf8;
  font: 700 14px/1.2 Manrope, system-ui, sans-serif;
}
.quick-research-form button:hover { background: #24534a; }
.quick-research-form button span { color: #e4bc99; font-size: 18px; }
@media (max-width: 1024px) {
  .quick-research { grid-row: 3; }
}
@media (max-width: 680px) {
  body > header:has(.quick-research) { row-gap: 5px; }
  .quick-research { padding: 6px 0 5px; }
  .quick-research-heading { font-size: 17px; margin-bottom: 7px; }
  .quick-research-form button { padding-inline: 15px; min-height: 40px; }
}
@media (max-height: 500px) and (min-width: 681px) {
  .quick-research { display: flex; align-items: center; gap: 16px; width: min(100%, 800px); }
  .quick-research-heading { margin: 0; flex: 1; font-size: 17px; }
  .quick-research-form { flex: 1; }
}
/* Compact mobile shortcut: two-line label and URL form share one row. */
@media (max-width: 680px) {
  .quick-research {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 5px 0;
    text-align: left;
  }
  .quick-research-heading {
    flex: 0 0 44%;
    min-width: 0;
    margin: 0;
    font-size: clamp(12px, 3.1vw, 14px);
    line-height: 1.3;
    letter-spacing: -.025em;
    text-wrap: initial;
  }
  .quick-research-heading strong { display: block; }
  .quick-research-form {
    flex: 1;
    min-width: 0;
    width: auto;
    margin: 0;
    padding: 3px;
    gap: 2px;
  }
  .quick-research-form input { padding: 7px 7px; font-size: 16px; }
  .quick-research-form button {
    min-height: 36px;
    padding: 0 10px;
    font-size: 12px;
    gap: 0;
  }
  .quick-research-form button span { display: none; }
  html[lang="de"] .quick-research-heading,
  html[lang="fr"] .quick-research-heading { font-size: clamp(11px, 2.9vw, 13px); }
}
