/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

/* Albert Sans, the way evkenniscentrum.nl reads, with a system stack behind it
   for when there is no network. The app had no font styling at all, so every
   page was rendering in the browser's default serif. */
:root {
  --ink: #1a1a1a;
  --muted: #666;
  --line: #e2e2e2;
  --link: #0057b8;

  /* Albert Sans has no tabular figures, and its 1 is 306 units wide against
     635 for its 8, so a column of prices or dates wobbles from row to row.
     Figtree does have them, at the same cap height (70%) and x-height (50%) as
     Albert Sans, so numbers set in it line up without reading as another font.
     Anything that stacks figures gets .figures. */
  --figures: "Figtree", "Albert Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.figures {
  font-family: var(--figures);
  font-variant-numeric: tabular-nums;
}

body {
  font-family: "Albert Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  margin: 0;
  padding: 14px 18px;
}

h1, h2, h3 {
  font-weight: 600;
  letter-spacing: -0.01em;
}

a {
  color: var(--link);
}

a:hover {
  text-decoration: none;
}

input, select, button, textarea {
  font: inherit;
  color: inherit;
  padding: 4px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
}

button, input[type="submit"] {
  cursor: pointer;
  background: #f6f6f6;
}

button:hover, input[type="submit"]:hover {
  background: #eee;
}

/* Select boxes. The font they inherit from body is what makes them look like
   the rest of the page -- a form control does not inherit it on its own, which
   is why Bootstrap's reset sets it and why `font: inherit` above does the same
   job here. The shape is the other half: the native control is replaced by a
   chevron of our own, so it matches the text fields next to it. */
select:not([multiple]) {
  appearance: none;
  padding-right: 26px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23666' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
}

select[multiple] {
  padding-right: 6px;
}

input:focus, select:focus, textarea:focus {
  outline: 2px solid color-mix(in srgb, var(--link) 35%, transparent);
  outline-offset: 1px;
  border-color: var(--link);
}

/* The search form: a row of labelled fields that wraps. */
form label {
  color: var(--muted);
  font-size: 13px;
  margin-right: 2px;
}

form input[type="search"], form input[type="text"], form input[type="number"] {
  width: 8em;
}

/* The menu. Same on every page, the current one marked, and it carries the
   filter along so switching views does not lose what you typed. */
.menu {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin: -14px -18px 14px;
  padding: 0 12px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.menu-item {
  padding: 11px 14px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 2px solid transparent;
}

.menu-item:hover {
  color: var(--ink);
  background: #fafafa;
}

.menu-item.current {
  color: var(--ink);
  border-bottom-color: var(--link);
}

main {
  max-width: 1600px;
}

.notice:empty {
  display: none;
}

.notice {
  margin: 0 0 12px;
  padding: 8px 12px;
  border-radius: 6px;
  background: #eef7ee;
  border: 1px solid #cfe6cf;
  color: #205020;
}

.count {
  color: var(--muted);
  font-size: 13px;
  margin: 10px 0;
}

/* The filters: a label above each field, wrapping into as many rows as it
   needs, in a card so it reads as one thing rather than a run-on line. */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: end;
  padding: 12px 14px;
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.filters .filter {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.filters label {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
}

.filters .actions {
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.filters .clear {
  font-size: 13px;
  color: var(--muted);
}

h1 {
  font-size: 22px;
  margin: 14px 0 8px;
}
