/* ==========================================================================
   Components: buttons, forms, cards, tables, badges, tabs, dialogs, toasts.
   ========================================================================== */

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--surface);
  --btn-fg: var(--text);
  --btn-border: var(--border-strong);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 40px;
  padding: 0.5rem 1rem;
  border: 1px solid var(--btn-border);
  border-radius: var(--radius-sm);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
  user-select: none;
}
.btn:hover {
  text-decoration: none;
  background: var(--surface-2);
}
.btn:active {
  transform: translateY(1px);
}
.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}
.btn svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.btn-primary {
  --btn-fg: var(--on-brand);
  --btn-border: transparent;
  background: var(--brand-gradient);
  box-shadow: 0 4px 12px rgba(21, 87, 145, 0.25);
}
.btn-primary:hover {
  background: var(--brand-gradient);
  filter: brightness(1.06);
  box-shadow: 0 6px 16px rgba(21, 87, 145, 0.35);
}

.btn-secondary {
  --btn-bg: var(--surface-3);
  --btn-border: transparent;
}
.btn-secondary:hover {
  background: var(--border);
}

.btn-ghost {
  --btn-bg: transparent;
  --btn-border: transparent;
  --btn-fg: var(--text-2);
}
.btn-ghost:hover {
  background: var(--surface-3);
  color: var(--text);
}

.btn-danger {
  --btn-bg: var(--danger);
  --btn-fg: #fff;
  --btn-border: transparent;
}
.btn-danger:hover {
  background: #b93232;
}

.btn-outline-danger {
  --btn-fg: var(--danger-text);
  --btn-border: var(--danger-soft);
  --btn-bg: transparent;
}
.btn-outline-danger:hover {
  background: var(--danger-soft);
}

.btn-sm {
  min-height: 32px;
  padding: 0.3rem 0.7rem;
  font-size: var(--fs-xs);
}
.btn-lg {
  min-height: 48px;
  padding: 0.75rem 1.4rem;
  font-size: var(--fs-base);
}
.btn-block {
  width: 100%;
}
.btn-icon {
  min-height: 36px;
  width: 36px;
  padding: 0;
}
.btn-icon.btn-sm {
  width: 32px;
}

.btn.is-loading {
  color: transparent !important;
  pointer-events: none;
}
.btn.is-loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-color: var(--btn-fg) transparent var(--btn-fg) transparent;
  animation: spin 0.8s linear infinite;
}
.btn-primary.is-loading::after {
  border-color: #fff transparent #fff transparent;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  border-top-color: var(--primary);
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
}

/* ---------- Forms ---------- */
.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}
.field + .field {
  margin-top: 1rem;
}
/* Fields laid out in a grid are spaced by the grid gap, not by sibling margins. */
:is(.grid-2, .grid-3, .grid-4) > .field + .field {
  margin-top: 0;
}
.label {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text);
}
.label .optional {
  font-weight: 400;
  color: var(--muted);
}
.hint {
  font-size: var(--fs-xs);
  color: var(--muted);
}
.input[readonly],
.textarea[readonly] {
  background: var(--surface-2);
  color: var(--text-2);
}

.field-error {
  font-size: var(--fs-xs);
  color: var(--danger-text);
  font-weight: 600;
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 42px;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-size: var(--fs-base);
  line-height: 1.4;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input::placeholder,
.textarea::placeholder {
  color: var(--muted);
}
.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: var(--focus-ring);
}
.input:disabled,
.select:disabled,
.textarea:disabled {
  background: var(--surface-2);
  color: var(--muted);
  cursor: not-allowed;
}
.input[aria-invalid="true"],
.select[aria-invalid="true"],
.textarea[aria-invalid="true"] {
  border-color: var(--danger);
}
.textarea {
  min-height: 110px;
  resize: vertical;
}
.select {
  appearance: none;
  padding-right: 2.25rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237d849c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
}
.input-sm,
.select-sm {
  min-height: 34px;
  padding-top: 0.3rem;
  padding-bottom: 0.3rem;
  font-size: var(--fs-sm);
}

.input-group {
  position: relative;
  display: flex;
  align-items: stretch;
}
.input-group .input {
  flex: 1 1 auto;
  min-width: 0;
}
.input-group .input:not(:last-child) {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.input-group .addon,
.input-group > .btn {
  display: inline-flex;
  align-items: center;
  padding: 0 0.8rem;
  border: 1px solid var(--border-strong);
  border-left: 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--surface-2);
  color: var(--text-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  min-height: 42px;
}
.input-group > .btn:hover {
  background: var(--surface-3);
}

.otp-input {
  letter-spacing: 0.5em;
  text-align: center;
  font-size: 1.35rem;
  font-weight: 700;
  font-family: var(--font-mono);
}

.checkbox,
.radio {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.55rem;
  cursor: pointer;
  font-size: var(--fs-sm);
  color: var(--text);
}
.checkbox input,
.radio input {
  margin: 0.2rem 0 0;
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  flex: none;
}

/* Toggle switch: <label class="switch"><input type="checkbox"><span class="switch-track"></span><span>Label</span></label> */
.switch {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  font-size: var(--fs-sm);
}
.switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.switch-track {
  position: relative;
  width: 38px;
  height: 22px;
  flex: none;
  border-radius: var(--radius-pill);
  background: var(--border-strong);
  transition: background-color 0.15s ease;
}
.switch-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease;
}
.switch input:checked + .switch-track {
  background: var(--primary);
}
.switch input:checked + .switch-track::after {
  transform: translateX(16px);
}
.switch input:focus-visible + .switch-track {
  box-shadow: var(--focus-ring);
}
.switch input:disabled + .switch-track {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 1.5rem;
}
.form-grid {
  display: grid;
  gap: 1rem 1.25rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.form-grid .field + .field {
  margin-top: 0;
}
.form-grid .span-2 {
  grid-column: 1 / -1;
}
@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  min-width: 0;
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1.1rem 1.35rem 0;
}
.card-header h2,
.card-header h3 {
  font-size: var(--fs-md);
}
.card-header .sub {
  font-size: var(--fs-sm);
  color: var(--muted);
  margin-top: 0.15rem;
}
.card-body {
  padding: 1.1rem 1.35rem 1.35rem;
}
.card-footer {
  padding: 0.9rem 1.35rem;
  border-top: 1px solid var(--border);
}
.card-flush .card-body {
  padding: 0.75rem 0 0;
}

/* ---------- Stat tiles ---------- */
.kpi {
  padding: 1.1rem 1.25rem;
}
.kpi-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--fs-sm);
  color: var(--text-2);
  font-weight: 600;
}
.kpi-value {
  margin-top: 0.35rem;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}
.kpi-meta {
  margin-top: 0.3rem;
  font-size: var(--fs-xs);
  color: var(--muted);
}
.delta {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-weight: 700;
}
.delta.up { color: var(--ok-text); }
.delta.down { color: var(--danger-text); }
.delta.flat { color: var(--muted); }

.hero-figure {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

/* ---------- Tables ---------- */
.table-wrap {
  position: relative; /* keeps visually hidden cells inside the scroll box */
  width: 100%;
  overflow-x: auto;
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}
.table th {
  padding: 0.65rem 1rem;
  text-align: left;
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  background: var(--surface);
}
.table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  color: var(--text);
}
.table tbody tr:last-child td {
  border-bottom: 0;
}
.table td.num,
.table th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.table tr.clickable {
  cursor: pointer;
}
.table tr.clickable:hover td {
  background: var(--surface-2);
}
.table .cell-sub {
  display: block;
  font-size: var(--fs-xs);
  color: var(--muted);
}
.table-empty {
  padding: 2.5rem 1rem;
  text-align: center;
  color: var(--muted);
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.35rem;
  border-top: 1px solid var(--border);
  font-size: var(--fs-sm);
  color: var(--muted);
}

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.18rem 0.55rem;
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs);
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
  background: var(--neutral-soft);
  color: var(--text-2);
}
.badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.badge svg {
  width: 13px;
  height: 13px;
}
.badge-ok { background: var(--ok-soft); color: var(--ok-text); }
.badge-warn { background: var(--warn-soft); color: var(--warn-text); }
.badge-serious { background: var(--serious-soft); color: var(--serious-text); }
.badge-danger { background: var(--danger-soft); color: var(--danger-text); }
.badge-info { background: var(--info-soft); color: var(--info-text); }
.badge-brand { background: var(--primary-soft); color: var(--primary); }
.badge-pulse .dot {
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ---------- Alerts / banners ---------- */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: var(--info-soft);
  color: var(--text);
  font-size: var(--fs-sm);
}
.alert svg {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 0.1rem;
}
.alert-title {
  font-weight: 700;
}
.alert-info svg { color: var(--info-text); }
.alert-ok { background: var(--ok-soft); }
.alert-ok svg { color: var(--ok-text); }
.alert-warn { background: var(--warn-soft); }
.alert-warn svg { color: var(--warn-text); }
.alert-danger { background: var(--danger-soft); }
.alert-danger svg { color: var(--danger-text); }

/* ---------- Tabs & segmented control ---------- */
.tabs {
  display: flex;
  gap: 0.25rem;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}
.tab {
  padding: 0.65rem 0.9rem;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--text-2);
  font-size: var(--fs-sm);
  font-weight: 700;
  white-space: nowrap;
}
.tab:hover {
  color: var(--text);
}
.tab[aria-selected="true"] {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.segmented {
  display: inline-flex;
  padding: 3px;
  border-radius: var(--radius-sm);
  background: var(--surface-3);
  gap: 2px;
  flex-wrap: wrap;
}
.segmented button {
  padding: 0.35rem 0.75rem;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--text-2);
  font-size: var(--fs-xs);
  font-weight: 700;
}
.segmented button:hover {
  color: var(--text);
}
.segmented button[aria-pressed="true"] {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

/* ---------- Dialogs (native <dialog>) ---------- */
dialog.modal {
  width: min(560px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
dialog.modal.modal-lg {
  width: min(760px, calc(100vw - 2rem));
}
dialog.modal::backdrop {
  background: var(--overlay);
  backdrop-filter: blur(2px);
}
dialog.modal[open] {
  display: flex;
  flex-direction: column;
  animation: modal-in 0.16s ease-out;
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.4rem 0.4rem;
}
.modal-header h2 {
  font-size: var(--fs-lg);
}
.modal-header .sub {
  margin-top: 0.2rem;
  font-size: var(--fs-sm);
  color: var(--muted);
}
.modal-body {
  padding: 0.8rem 1.4rem 1.2rem;
  overflow-y: auto;
}
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  padding: 0.9rem 1.4rem;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
}

/* Drawer (side panel) built on <dialog> */
dialog.drawer {
  margin: 0 0 0 auto;
  width: min(520px, 100vw);
  height: 100vh;
  max-height: 100vh;
  padding: 0;
  border: 0;
  border-left: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-lg);
}
dialog.drawer[open] {
  display: flex;
  flex-direction: column;
  animation: drawer-in 0.2s ease-out;
}
dialog.drawer::backdrop {
  background: var(--overlay);
}
@keyframes drawer-in {
  from { transform: translateX(24px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
dialog.drawer .modal-body {
  flex: 1 1 auto;
}

/* ---------- Toasts ---------- */
.toasts {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: min(380px, calc(100vw - 2rem));
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.8rem 0.95rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-lg);
  font-size: var(--fs-sm);
  pointer-events: auto;
  animation: toast-in 0.2s ease-out;
}
.toast svg {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 0.05rem;
}
.toast-ok svg { color: var(--ok-text); }
.toast-error svg { color: var(--danger-text); }
.toast-info svg { color: var(--info-text); }
.toast-warn svg { color: var(--warn-text); }
.toast.is-leaving {
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.2s ease;
}
@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Misc ---------- */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 2.75rem 1.5rem;
  text-align: center;
  color: var(--muted);
}
.empty-state svg {
  width: 36px;
  height: 36px;
  color: var(--border-strong);
}
.empty-state h3 {
  color: var(--text);
  font-size: var(--fs-md);
}
.empty-state p {
  max-width: 420px;
  font-size: var(--fs-sm);
}

.copy-field {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.5rem 0.5rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  min-width: 0;
}
.copy-field .value {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.copy-field.wrap .value {
  white-space: normal;
  word-break: break-all;
}

.kv {
  display: grid;
  grid-template-columns: minmax(120px, 38%) minmax(0, 1fr);
  gap: 0.55rem 1rem;
  font-size: var(--fs-sm);
}
.kv dt {
  color: var(--muted);
}
.kv dd {
  margin: 0;
  color: var(--text);
  min-width: 0;
  word-break: break-word;
}

.list-plain {
  list-style: none;
  margin: 0;
  padding: 0;
}

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand-gradient);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 700;
  flex: none;
  text-transform: uppercase;
}

.coin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface-3);
  color: var(--text);
  font-size: 0.62rem;
  font-weight: 700;
  flex: none;
  letter-spacing: 0.02em;
}

.skeleton {
  display: block;
  height: 1em;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--surface-3) 25%, var(--surface-2) 50%, var(--surface-3) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s linear infinite;
}
@keyframes shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

.divider-text {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.divider-text::before,
.divider-text::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--border);
}

.progress {
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--primary-soft);
  overflow: hidden;
}
.progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
}
.progress.is-warn > span { background: var(--warn); }
.progress.is-danger > span { background: var(--danger); }

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
.timeline li {
  position: relative;
  padding: 0 0 1rem 1.6rem;
  font-size: var(--fs-sm);
}
.timeline li::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 16px;
  bottom: -2px;
  width: 2px;
  background: var(--border);
}
.timeline li:last-child::before {
  display: none;
}
.timeline .tl-dot {
  position: absolute;
  left: 0;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border-strong);
  box-shadow: 0 0 0 3px var(--surface);
}
.timeline .tl-dot.ok { background: var(--ok); }
.timeline .tl-dot.warn { background: var(--warn); }
.timeline .tl-dot.danger { background: var(--danger); }
.timeline .tl-dot.info { background: var(--info); }
.timeline .tl-time {
  display: block;
  font-size: var(--fs-xs);
  color: var(--muted);
}

.menu {
  position: absolute;
  z-index: 50;
  min-width: 200px;
  padding: 0.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
.menu-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.5rem 0.65rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text);
  font-size: var(--fs-sm);
  text-align: left;
  text-decoration: none;
}
.menu-item:hover {
  background: var(--surface-3);
  text-decoration: none;
}
.menu-item svg {
  width: 16px;
  height: 16px;
  color: var(--muted);
}
.menu-sep {
  height: 1px;
  margin: 0.3rem 0;
  background: var(--border);
}

/* ---------- Wordmark (text logo; also the fallback when the image logo fails) ---------- */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.wordmark:hover {
  text-decoration: none;
}
.wordmark .mark {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--brand-gradient);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
}
.wordmark .sub {
  color: var(--primary);
  font-weight: 600;
}
.wordmark.on-brand {
  color: #fff;
}
.wordmark.on-brand .mark {
  background: rgba(255, 255, 255, 0.16);
}
.wordmark.on-brand .sub {
  color: #9fd0ff;
}

