/*
 * Pagefind's Default UI (pagefind-ui.css) ships its own reset and a small
 * set of CSS custom properties for theming (see node_modules-generated
 * _site/pagefind/pagefind-ui.css, :root block). This stylesheet only
 * retargets those custom properties (plus a handful of layout tweaks) at
 * the values already defined in opensense2023.webflow.css's :root block
 * so results on /search read as part of the site rather than a bolted-on
 * widget. Pixel-perfect parity with the rest of the design system is not
 * the goal here — "sensible and on-brand" is.
 */

.pagefind-ui {
  --pagefind-ui-primary: var(--royal-blue, #0066eb);
  --pagefind-ui-text: var(--dark-gray, #4a5568);
  --pagefind-ui-background: var(--white, #fff);
  --pagefind-ui-border: var(--_apps---colors--border, #e7e7e7);
  --pagefind-ui-tag: var(--light-blue-2, #f8f9fb);
  --pagefind-ui-border-width: 2px;
  --pagefind-ui-border-radius: 0.625rem;
  --pagefind-ui-image-border-radius: 0.625rem;
  --pagefind-ui-image-box-ratio: 3 / 2;
  --pagefind-ui-font: Rubik, sans-serif;
  max-width: 48rem;
  margin: 0 auto;
}

/* Search input — matched to .filters-library_search-input's rounding,
   border color, and hover/focus color instead of Pagefind's flat grey. */
.pagefind-ui__search-input {
  color: var(--midnight-blue, #21333d);
  font-family: Rubik, sans-serif;
  font-weight: 400;
  transition: border-color 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.pagefind-ui__search-input:hover,
.pagefind-ui__search-input:focus {
  border-color: #c2c8d8;
  outline: none;
}

.pagefind-ui__search-input::placeholder {
  color: #a0adb6;
}

/* Result titles/links use the site's link color and heading weight rather
   than Pagefind's default near-black. */
.pagefind-ui__result-title {
  font-family: Rubik, sans-serif;
}

.pagefind-ui__result-link {
  color: var(--midnight-blue, #21333d);
}

.pagefind-ui__result-link:hover {
  color: var(--royal-blue, #0066eb);
}

.pagefind-ui__result-excerpt {
  color: var(--dark-gray, #4a5568);
  font-family: Rubik, sans-serif;
}

.pagefind-ui__result-excerpt mark {
  background: none;
  color: var(--royal-blue, #0066eb);
  font-weight: 500;
}

.pagefind-ui__message {
  font-family: Rubik, sans-serif;
  color: var(--dark-gray, #4a5568);
}

.pagefind-ui__button {
  font-family: Rubik, sans-serif;
  font-weight: 500;
}

.pagefind-ui__button:hover {
  background: var(--light-blue-2, #f8f9fb);
}
