/* Keep featured artwork fully visible in archive cards. */
.ai-post-card .ai-post-image img {
  object-fit: contain !important;
  object-position: center !important;
}

/* Header search field and responsive placement before the quote button. */
#aysemece-logo-preview .ai-header-search {
  display: flex !important;
  flex: 0 1 220px;
  align-items: center;
  width: 220px;
  max-width: 100%;
  min-width: 0;
  height: 44px;
  margin: 0;
  border: 1px solid #e4e5dc;
  border-radius: 999px;
  padding: 0 12px;
  background: #f7f7f3;
  box-sizing: border-box;
}
#aysemece-logo-preview .ai-header-search:focus-within {
  border-color: #91a89b;
  box-shadow: 0 0 0 2px rgba(145, 168, 155, .22);
}
#aysemece-logo-preview .ai-header-search-submit {
  display: grid;
  flex: 0 0 24px;
  width: 24px;
  height: 28px;
  place-items: center;
  margin: 0;
  border: 0;
  padding: 0;
  color: #53636a;
  background: transparent;
  cursor: pointer;
}
#aysemece-logo-preview .ai-header-search-submit svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}
#aysemece-logo-preview .ai-header-search-input {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  height: auto;
  margin: 0;
  border: 0 !important;
  border-radius: 0;
  outline: 0;
  padding: 0 0 0 8px;
  color: #152733;
  background: transparent !important;
  box-shadow: none !important;
  font: inherit;
  font-size: 12px;
  line-height: 1.3;
}
#aysemece-logo-preview .ai-header-search-input::placeholder {
  color: #65747a;
  opacity: 1;
}
@media (max-width: 1200px) {
  #aysemece-logo-preview .ai-navlinks { display: none !important; }
  #aysemece-logo-preview .ai-nav-cta { display: inline-flex !important; flex: 0 0 auto; white-space: nowrap; }
  #aysemece-logo-preview .ai-mobile-menu { display: block !important; flex: 0 0 auto; color: #fff; }
  #aysemece-logo-preview .ai-mobile-menu nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 12;
    display: grid;
    gap: 12px;
    min-width: 210px;
    border: 1px solid #435660;
    border-radius: 7px;
    padding: 16px;
    background: #172a35;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .26);
  }
}
@media (max-width: 800px) {
  #aysemece-logo-preview .ai-nav { gap: 8px; }
  #aysemece-logo-preview .ai-header-search { flex-basis: clamp(145px, 22vw, 180px); width: clamp(145px, 22vw, 180px); }
  #aysemece-logo-preview .ai-nav-cta { gap: 7px; padding: 9px 10px; }
  #aysemece-logo-preview .ai-mobile-menu summary { padding-inline: 4px; }
}
@media (max-width: 600px) {
  #aysemece-logo-preview .ai-nav { flex-wrap: wrap; row-gap: 10px; padding-top: 10px; padding-bottom: 12px; }
  #aysemece-logo-preview .ai-brand { order: 1; }
  #aysemece-logo-preview .ai-mobile-menu { order: 2; margin-left: auto; }
  #aysemece-logo-preview .ai-header-search { order: 3; flex: 1 1 150px; width: auto; }
  #aysemece-logo-preview .ai-nav-cta { order: 4; }
}