/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

:root {
  color-scheme: light dark;
  --muted: light-dark(#666, #999);
  --line: light-dark(#ccc, #444);
}

body {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  line-height: 1.5;
  max-width: 60rem;
  margin: 0 auto;
  padding: 1rem;
}

header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: baseline;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
}

header nav {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  margin-left: auto;
}

h1 { font-size: 1.4rem; }
h2 { font-size: 1.1rem; margin-top: 2rem; }

small, .muted { color: var(--muted); }

.scroll { overflow-x: auto; }

table { width: 100%; border-collapse: collapse; }
th, td { padding: 0.25rem 1rem 0.25rem 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.num { text-align: right; white-space: nowrap; }

dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.25rem 1rem; }
dt { color: var(--muted); }
dd { margin: 0; overflow-wrap: anywhere; }

form div { margin-bottom: 0.75rem; }
label { display: block; }
input:not([type="submit"]), select, textarea { font: inherit; width: 100%; max-width: 28rem; box-sizing: border-box; }
fieldset { border: 0; padding: 0; margin: 0 0 0.75rem; }
legend { padding: 0; }
.inline-fields { display: flex; gap: 0.5rem; max-width: 28rem; margin: 0; }
.inline-fields select { width: auto; }
.inline-fields label { display: flex; gap: 0.25rem; align-items: baseline; }
.inline-fields label input { width: 6rem; }
.actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: baseline; }
.actions form { margin: 0; }
.notes { white-space: pre-wrap; }
footer { margin-top: 3rem; padding-top: 0.5rem; border-top: 1px solid var(--line); font-size: 0.85rem; }
.demo { padding: 0.5rem; border: 1px dashed var(--line); }
.notice { color: light-dark(#17692b, #6fcf8a); }
.alert, .errors { color: light-dark(#b3261e, #f28b82); }
