@use '../abstracts' as *;

// ============================================================
// Forms — the search form and the "Below the posts" widget area (.min-sub)
// Both get the design's one-line, underlined subscribe-form look
// ============================================================

// ---- Search form (searchform.php) ----
.search-form {
  display: flex;
  gap: 12px;
  max-width: 420px;


  .search-field {
    @include underline-field;
    -webkit-appearance: none;
    appearance: none;
  }

  .search-submit { @include text-button; }
}

// ---- Below the posts: widget area (a newsletter, say) ----
.min-sub {
  margin-top: 84px;
  padding-top: 30px;
  border-top: 1px solid var(--rule);

  .widget + .widget { margin-top: 28px; }

  .widget-title,
  .wp-block-heading {
    font-family: $font-serif;
    font-size: 17px;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: 10px;
  }

  p {
    font-size: 15px;
    font-weight: 300;
    color: var(--ink-soft);
    margin-bottom: 16px;
  }

  form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    max-width: 420px;
  }

  input[type="email"],
  input[type="text"],
  input[type="search"] { @include underline-field; }

  button,
  input[type="submit"] { @include text-button; }

  a { color: var(--accent-deep); }

  ul, ol { padding-left: 1.2em; color: var(--ink-soft); }
}
