/* ==========================================================================
   "No results found" panel  (site-wide)

   Shown in place of a listing's rows when a view comes back empty. Attached
   from drupal8_zymphonies_theme_no_results() only on the render where the
   panel actually appears, so a page that found its results never downloads
   this file.

   Every colour here is a literal rather than one of the theme's custom
   properties: the accessibility theme switcher (red-change.css,
   blue-change.css) repaints the site's chrome, and a panel that changed
   colour with it would read as part of the page furniture instead of as a
   message about the search that was just run. The neutral card below sits
   correctly on all three themes.
   ========================================================================== */

.zym-no-results {
  margin: 24px 0;
  padding: 34px 24px 30px;
  background: #fcfcfd;
  border: 1px dashed #cfd6dd;
  border-radius: 6px;
  text-align: center;
}

/* ---- Icon -------------------------------------------------------------- */

/* A magnifier with a minus inside it: "searched, found nothing". The tint is
   the theme's own accent at low saturation, so the panel still reads as part
   of this site and not as a browser error page. */
.zym-no-results__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  margin-bottom: 16px;
  background: #fdf0e6;
  border-radius: 50%;
  color: #c25f18;
}

/* The SVG inherits its stroke from the wrapper's `color`, which is what lets
   a per-view template override recolour the icon with one declaration. */
.zym-no-results__icon svg {
  display: block;
}

/* ---- Wording ----------------------------------------------------------- */

/* Marked up as paragraphs, not headings: a heading here would appear in the
   page outline and in a screen reader's heading list as though it were a
   section of the document, which it is not -- it is a transient message about
   one search. `role="status"` on the wrapper is what announces it instead. */
.zym-no-results__heading {
  margin: 0 0 8px;
  color: #1c1c1c;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
}

/* The search terms are quoted back inside this sentence and can be as long as
   whatever was pasted into the box, so `overflow-wrap` lets it break mid-word
   rather than widen the card. */
.zym-no-results__message {
  margin: 0 auto;
  max-width: 62ch;
  overflow-wrap: break-word;
  color: #3f4650;
  font-size: 15px;
  line-height: 1.65;
}

.zym-no-results__hint {
  margin: 6px auto 0;
  max-width: 62ch;
  color: #6b727c;
  font-size: 13.5px;
  line-height: 1.6;
}

/* ---- Clear search ------------------------------------------------------ */

.zym-no-results__actions {
  margin-top: 18px;
}

/* No !important: the accessibility themes restyle `a` by element, and a class
   selector already outranks that. Leaving it soft means those themes can
   still override the button deliberately if they ever need to. */
.zym-no-results__reset,
.zym-no-results__reset:visited {
  display: inline-block;
  padding: 9px 20px;
  background: #fff;
  border: 1px solid #c25f18;
  border-radius: 4px;
  color: #a8521a;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.zym-no-results__reset:hover,
.zym-no-results__reset:focus {
  background: #c25f18;
  border-color: #c25f18;
  color: #fff;
  text-decoration: none;
}

/* Keyboard focus has to stay visible once hover has filled the button with
   the same colour as its border, so the ring is drawn outside it. */
.zym-no-results__reset:focus-visible {
  outline: 2px solid #1c1c1c;
  outline-offset: 2px;
}

/* ---- Narrow screens ---------------------------------------------------- */

@media (max-width: 640px) {
  .zym-no-results {
    padding: 26px 16px 24px;
  }

  .zym-no-results__icon {
    width: 52px;
    height: 52px;
    margin-bottom: 12px;
  }

  .zym-no-results__heading {
    font-size: 17px;
  }

  .zym-no-results__message {
    font-size: 14px;
  }
}
