/* Bridge Child — search result excerpts and existing mobile gutter. */
body.search-results .blog_holder .post_text_inner > .ll-search-excerpt {
  max-inline-size: 70ch;
  margin: .55em 0 0;
  color: inherit;
  font: inherit;
  font-size: 1rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

@media (max-width: 650px) {
  body.search .content_inner > .container > .container_inner.default_template_holder {
    width: var(--ll-mobile-content, calc(100vw - 2 * clamp(15px, 12.5vw - 35px, 25px)));
    max-width: 100%;
  }

  /* Match the outer gutter between consecutive cards. Preserve the final gap before pagination. */
  body.search-results .blog_holder.qode-search-results-one-columns > article:has(+ article) {
    margin-block-end: var(--ll-mobile-gutter, clamp(15px, 12.5vw - 35px, 25px));
  }

  body.search-results .blog_holder .post_text_inner {
    padding-inline: 16px;
  }

  .fullscreen_search_holder.ll-search-adapted .fullscreen_search_form .form_holder {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    grid-template-areas: "label label" "field submit";
    align-items: end;
    gap: .5rem .75rem;
    width: var(--ll-mobile-content, calc(100vw - 2 * clamp(15px, 12.5vw - 35px, 25px)));
    margin-inline: auto;
    text-align: start;
  }

  .fullscreen_search_holder.ll-search-adapted .fullscreen_search_form .form_holder > .search_label {
    display: none;
  }

  .fullscreen_search_holder.ll-search-adapted .ll-search-mobile-label {
    grid-area: label;
    display: block;
    font: 400 1.625rem/1.2 Lora, Georgia, serif;
  }

  .fullscreen_search_holder.ll-search-adapted .fullscreen_search_form .field_holder {
    grid-area: field;
    display: block;
    width: 100%;
    margin: 0;
  }

  .fullscreen_search_holder.ll-search-adapted .field_holder > input.search_field {
    position: absolute;
    inset: 0 auto auto 0;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: 0;
    clip-path: inset(50%);
    pointer-events: none;
  }

  .fullscreen_search_holder.ll-search-adapted .field_holder > .line {
    display: none;
  }

  .fullscreen_search_holder.ll-search-adapted .ll-search-mobile-query {
    display: block;
    box-sizing: border-box;
    width: 100%;
    height: auto;
    min-height: calc(2.7em + 18px);
    margin: 0;
    padding: 8px 10px;
    border: 1px solid currentColor;
    border-radius: 0;
    background: transparent;
    color: inherit;
    font: 400 1.25rem/1.35 Lora, Georgia, serif;
    resize: none;
  }

  .fullscreen_search_holder.ll-search-adapted .fullscreen_search_form .form_holder > .search_submit {
    grid-area: submit;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin: 0;
    font-size: 22px;
  }

  .fullscreen_search_holder.ll-search-adapted :is(.ll-search-mobile-query, .search_submit):focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
  }

  html[data-ll-theme="dark"] .fullscreen_search_holder.ll-search-adapted .ll-search-mobile-query {
    border-color: var(--ll-night-muted, #afaca8);
    caret-color: var(--ll-night-accent, #dfb45a);
  }

  html[data-ll-theme="dark"] .fullscreen_search_holder.ll-search-adapted .ll-search-mobile-query:focus-visible {
    outline-color: var(--ll-night-focus, #dfb45a);
  }
}

@media (min-width: 651px) {
  .fullscreen_search_holder :is(.ll-search-mobile-query, .ll-search-mobile-label) {
    display: none;
  }
}
