/* RushMU UI - base: page ground, type, links, scrollbars, square corners. */

html {
  height: auto;
  overflow-x: hidden;
  scrollbar-gutter: auto;
  scrollbar-color: var(--rm-line-3) var(--rm-bg);
  scrollbar-width: thin;
}

body.rm {
  background: var(--rm-bg);
  color: var(--rm-tx);
  font-family: var(--rm-font);
  font-size: 14px;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
  cursor: url('/assets/normal.cur'), auto;
  height: auto;
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* No rounded corners anywhere. Add .rm-keep-round to the rare element that must stay round (status dots). */
body.rm *:not(.rm-keep-round),
body.rm *:not(.rm-keep-round)::before,
body.rm *:not(.rm-keep-round)::after {
  border-radius: 0 !important;
}

body.rm h1,
body.rm h2,
body.rm h3,
body.rm h4,
body.rm h5,
body.rm h6 {
  font-family: var(--rm-head);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--rm-cream);
  line-height: 1.15;
}

body.rm a {
  color: var(--rm-cream);
  text-decoration: none;
}

body.rm a:hover {
  color: var(--rm-gold);
}

body.rm ::selection {
  background: var(--rm-gold);
  color: #0e0f14;
}

body.rm hr {
  border: 0;
  border-top: 1px solid var(--rm-line-2);
  margin: 16px 0;
}

body.rm :focus-visible {
  outline: 2px solid var(--rm-gold);
  outline-offset: 2px;
}

body.rm ::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

body.rm ::-webkit-scrollbar-track {
  background: var(--rm-bg);
}

body.rm ::-webkit-scrollbar-thumb {
  background: var(--rm-line-3);
  border: 2px solid var(--rm-bg);
}

body.rm ::-webkit-scrollbar-thumb:hover {
  background: var(--rm-tx-3);
}

/* text helpers keep their old names, but with the new palette */
body.rm .text-muted,
body.rm .text-secondary {
  color: var(--rm-tx-2) !important;
}

body.rm .text-white {
  color: var(--rm-tx) !important;
}

body.rm .text-warning {
  color: var(--rm-gold) !important;
}

body.rm .text-success {
  color: var(--rm-ok) !important;
}

body.rm .text-danger {
  color: var(--rm-red) !important;
}

body.rm .text-info {
  color: var(--rm-cream) !important;
}

/* small shared pieces used by the shell and the pages */
.rm-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--rm-gold);
  color: #0e0f14;
  padding: 8px 14px;
  z-index: 1000;
}

.rm-skip:focus {
  left: 0;
}

.rm-label {
  font-family: var(--rm-head);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rm-tx-3);
}

.rm-mono {
  font-family: var(--rm-mono);
}

.rm-dim {
  color: var(--rm-tx-3);
}

.rm-badge {
  display: inline-block;
  min-width: 20px;
  padding: 0 6px;
  font: 500 11px/18px var(--rm-mono);
  text-align: center;
  background: var(--rm-bg-3);
  color: var(--rm-tx);
  border: 1px solid var(--rm-line-3);
}

.rm-badge--alert {
  background: var(--rm-red);
  border-color: var(--rm-red);
  color: #170604;
}

.rm-link-btn {
  background: none;
  border: 0;
  color: var(--rm-tx-2);
  font: 500 12px var(--rm-font);
  cursor: url('/assets/pointer.cur'), pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rm-link-btn:hover {
  color: var(--rm-gold);
}

/* the MU cursor: normal arrow everywhere, the MU hand on things that can be pressed */
body.rm a,
body.rm button,
body.rm .btn,
body.rm select,
body.rm label,
body.rm summary,
body.rm [role='button'],
body.rm input[type='checkbox'],
body.rm input[type='radio'],
body.rm input[type='submit'] {
  cursor: url('/assets/pointer.cur'), pointer;
}

body.rm input[type='text'],
body.rm input[type='password'],
body.rm input[type='number'],
body.rm input[type='email'],
body.rm input[type='search'],
body.rm textarea {
  cursor: text;
}
