/* Shared tokens and controls for the public site and the staff app. */
:root {
  --ink: #141414;
  --ink-2: #1f1f1f;
  --ink-3: #3a3a3a;
  --muted: #6b6b6b;
  --line: #e3e1de;
  --bg: #f5f4f2;
  --card: #ffffff;
  --accent: #e07a2c;
  --accent-ink: #1c0f04;
  --accent-dark: #b85e1a;
  --steel: #cfcfcf;
  --steel-dark: #8e8e8e;
  --ok: #1f8a4c;
  --warn: #b86a00;
  --danger: #c0392b;
  --info: #1f6fb2;
  --radius: 8px;
  --shadow: 0 1px 2px rgba(20, 20, 20, .06), 0 4px 14px rgba(20, 20, 20, .06);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.5; font-size: 15px; }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }

/* Text version of the company logo: brushed-steel GREAT WEST over orange REQUIP. */
.wordmark { display: inline-flex; flex-direction: column; align-items: center; line-height: .95; text-decoration: none; font-family: "Arial Black", "Segoe UI Black", "Segoe UI", Arial, sans-serif; font-weight: 900; text-transform: uppercase; }
.wordmark .wm-top { font-style: italic; letter-spacing: .01em; color: var(--steel); background: linear-gradient(180deg, #f4f4f4 0%, #c4c4c4 46%, #8d8d8d 54%, #dadada 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.wordmark .wm-mid { color: var(--accent); letter-spacing: .34em; margin-right: -.34em; font-size: .64em; margin-top: .1em; }
.wordmark .wm-tag { font-family: var(--font); font-weight: 600; color: var(--steel-dark); letter-spacing: .32em; margin-right: -.32em; font-size: .27em; margin-top: .55em; }
@media (forced-colors: active) { .wordmark .wm-top { -webkit-text-fill-color: currentColor; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 16px; border-radius: 6px; border: 1px solid var(--line); background: #fff; color: var(--ink);
  font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn:hover { border-color: var(--ink-3); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); }
.btn-danger { color: var(--danger); border-color: #e7c1bc; }
.btn-danger:hover { border-color: var(--danger); }
.btn-sm { padding: 5px 10px; font-size: 13px; }
.btn-link { border: 0; background: none; padding: 0; color: var(--info); font-weight: 600; cursor: pointer; font: inherit; text-decoration: underline; }

label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 4px; color: var(--ink-3); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=tel], input[type=date],
input[type=search], select, textarea {
  width: 100%; padding: 9px 11px; border: 1px solid #cfcdca; border-radius: 6px; font: inherit; background: #fff; color: var(--ink);
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus, .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent-dark); }
.field { margin-bottom: 14px; }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 3px; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 14px; color: var(--ink); }
.check input { width: 16px; height: 16px; }
.grid { display: grid; gap: 14px; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 760px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } }

.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .02em; background: #ebe9e6; color: var(--ink-3); white-space: nowrap; }
.badge.staging, .badge.draft { background: #ebe9e6; color: #4d4d4d; }
.badge.submitted, .badge.pending_approval, .badge.pending { background: #fde6d3; color: #8a4310; }
.badge.available, .badge.approved, .badge.signed { background: #d9f2e3; color: #14663a; }
.badge.sold { background: #dbe9f7; color: #164e80; }
.badge.rejected, .badge.void { background: #f8dcd8; color: #8f2317; }
.badge.archived, .badge.cancelled { background: #ececec; color: #6b6b6b; }

.notice { padding: 10px 14px; border-radius: 6px; background: #fdf0e6; border: 1px solid #efc6a2; color: #6b3510; margin-bottom: 14px; }
.notice.error { background: #fbe9e6; border-color: #efb9b1; color: #7d1f14; }
.notice.ok { background: #e3f5ea; border-color: #a9dcbc; color: #14532f; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.right { text-align: right; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
