/* Shared styling. ASU maroon and gold. */

:root {
  --maroon: #8c1d40;
  --gold: #ffc627;
  --ink: #191919;
  --paper: #fafafa;
  --line: #d0d0d0;
  --muted: #5c5c5c;
  --ok: #216e39;
  --warn: #9a6700;
  --bad: #b42318;
  --radius: 6px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 0.5em;
}
h1 {
  font-size: 1.6rem;
}
h2 {
  font-size: 1.2rem;
}

a {
  color: var(--maroon);
}

.wrap {
  max-width: 940px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 4rem;
}

header.bar {
  background: var(--maroon);
  color: #fff;
  padding: 0.85rem 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: baseline;
  flex-wrap: wrap;
}
header.bar a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
}
header.bar .title {
  font-weight: 700;
}
header.bar .spacer {
  flex: 1;
}
/*
 * A ghost button is maroon-on-transparent, which inside the maroon bar is maroon on
 * maroon — present, focusable, and invisible. Found on the studio header; it was also
 * hiding Preview and Export in the technical view. In the bar, ghost means gold.
 */
header.bar button.ghost {
  color: var(--gold);
  border-color: var(--gold);
  background: transparent;
}
header.bar button.ghost:hover {
  background: rgba(255, 198, 39, 0.15);
}

button,
.btn {
  font: inherit;
  font-weight: 600;
  padding: 0.55rem 1rem;
  border: 1px solid var(--maroon);
  background: var(--maroon);
  color: #fff;
  border-radius: var(--radius);
  cursor: pointer;
}
button.ghost,
.btn.ghost {
  background: transparent;
  color: var(--maroon);
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

label {
  display: block;
  font-weight: 600;
  margin: 0.9rem 0 0.25rem;
}
input[type='text'],
input[type='number'],
select,
textarea {
  font: inherit;
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
textarea {
  min-height: 4.5rem;
}
.hint {
  color: var(--muted);
  font-size: 0.875rem;
  margin: 0.25rem 0 0;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin: 0 0 1rem;
}

.row {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: wrap;
}

.pill {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: #eee;
}
.pill.ok {
  background: #d7f0dd;
  color: var(--ok);
}
.pill.warn {
  background: #fdf1cd;
  color: var(--warn);
}
.pill.bad {
  background: #fde2e0;
  color: var(--bad);
}

.issues li {
  margin-bottom: 0.3rem;
}
.issues .err {
  color: var(--bad);
}
.issues .warn {
  color: var(--warn);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
th,
td {
  text-align: left;
  padding: 0.45rem 0.6rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  background: #f2f2f2;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
